@everymatrix/player-account-balance-modal-nd 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-D5dg567p.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-B0LdCyHY.js → PlayerAccountBalanceModalNd-aF42S6lR.js} +1368 -1382
- package/components/{PlayerAccountBalanceModalNd-C6lbN4sl.js → PlayerAccountBalanceModalNd-lPXKhPip.js} +1441 -1455
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-BXdAvssr.cjs +0 -24
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Or = Object.defineProperty, Mr = Object.defineProperties;
|
|
2
|
+
var Rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var mn = Object.getOwnPropertySymbols;
|
|
4
|
+
var Lr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Nt = Math.pow, Pt = (e, t, n) => t in e ? Or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, It = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Lr.call(t, n) && Pt(e, n, t[n]);
|
|
8
|
+
if (mn)
|
|
9
|
+
for (var n of mn(t))
|
|
10
|
+
Pr.call(t, n) && Pt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Dt = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Dt = (e, t) => Mr(e, Rr(t));
|
|
13
|
+
var ce = (e, t, n) => (Pt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var Ut = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var o = (
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
s(n.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
s(n.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function he() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Wn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function bn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function We(e) {
|
|
39
|
+
e.forEach(Wn);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function cn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Zn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Nr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function qn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return he;
|
|
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 Ir(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(qn(t, n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function Dr(e, t, n) {
|
|
66
|
+
const r = Ur(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const i = j("style");
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
69
|
+
i.id = t, i.textContent = n, Fr(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,52 +79,52 @@ function jr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Fr(e, t) {
|
|
83
|
+
return P(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ge(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function pe(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Yn(e, t) {
|
|
96
96
|
for (let n = 0; n < e.length; n += 1)
|
|
97
97
|
e[n] && e[n].d(t);
|
|
98
98
|
}
|
|
99
99
|
function j(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function gn(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function we(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Se() {
|
|
109
|
+
return we(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function Gr() {
|
|
112
|
+
return we("");
|
|
113
113
|
}
|
|
114
114
|
function Et(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function M(e, t, n) {
|
|
118
118
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function jr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function Re(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function kr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -137,144 +137,144 @@ let it;
|
|
|
137
137
|
function rt(e) {
|
|
138
138
|
it = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function $r() {
|
|
141
141
|
if (!it)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return it;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Vr(e) {
|
|
146
|
+
$r().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
148
|
+
const Ge = [], zt = [];
|
|
149
|
+
let je = [];
|
|
150
|
+
const yn = [], Xr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Wt = !1;
|
|
152
|
+
function zr() {
|
|
153
|
+
Wt || (Wt = !0, Xr.then(Q));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
155
|
+
function Zt(e) {
|
|
156
|
+
je.push(e);
|
|
157
157
|
}
|
|
158
158
|
const Ft = /* @__PURE__ */ new Set();
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
159
|
+
let Ue = 0;
|
|
160
|
+
function Q() {
|
|
161
|
+
if (Ue !== 0)
|
|
162
162
|
return;
|
|
163
163
|
const e = it;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t =
|
|
168
|
-
|
|
166
|
+
for (; Ue < Ge.length; ) {
|
|
167
|
+
const t = Ge[Ue];
|
|
168
|
+
Ue++, rt(t), Wr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw
|
|
171
|
+
throw Ge.length = 0, Ue = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (rt(null),
|
|
174
|
-
|
|
175
|
-
for (let t = 0; t <
|
|
176
|
-
const n =
|
|
173
|
+
for (rt(null), Ge.length = 0, Ue = 0; zt.length; )
|
|
174
|
+
zt.pop()();
|
|
175
|
+
for (let t = 0; t < je.length; t += 1) {
|
|
176
|
+
const n = je[t];
|
|
177
177
|
Ft.has(n) || (Ft.add(n), n());
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
je.length = 0;
|
|
180
|
+
} while (Ge.length);
|
|
181
|
+
for (; yn.length; )
|
|
182
|
+
yn.pop()();
|
|
183
|
+
Wt = !1, Ft.clear(), rt(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Wr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), We(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Zr(e) {
|
|
193
193
|
const t = [], n = [];
|
|
194
|
-
|
|
194
|
+
je.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), je = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const qr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Yr(e, t) {
|
|
198
|
+
e && e.i && (qr.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
200
|
function _t(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Qr(e, t, n) {
|
|
204
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
205
|
-
r && r.m(t, n),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
208
|
-
}), i.forEach(
|
|
205
|
+
r && r.m(t, n), Zt(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Wn).filter(cn);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : We(o), e.$$.on_mount = [];
|
|
208
|
+
}), i.forEach(Zt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Jr(e, t) {
|
|
211
211
|
const n = e.$$;
|
|
212
|
-
n.fragment !== null && (
|
|
212
|
+
n.fragment !== null && (Zr(n.after_update), We(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (
|
|
214
|
+
function Kr(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (Ge.push(e), zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
217
|
+
function ei(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
218
|
+
const l = it;
|
|
219
219
|
rt(e);
|
|
220
|
-
const
|
|
220
|
+
const u = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
223
223
|
// state
|
|
224
224
|
props: o,
|
|
225
|
-
update:
|
|
225
|
+
update: he,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: bn(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
231
231
|
on_disconnect: [],
|
|
232
232
|
before_update: [],
|
|
233
233
|
after_update: [],
|
|
234
|
-
context: new Map(t.context || (
|
|
234
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
237
|
-
dirty:
|
|
236
|
+
callbacks: bn(),
|
|
237
|
+
dirty: s,
|
|
238
238
|
skip_bound: !1,
|
|
239
|
-
root: t.target ||
|
|
239
|
+
root: t.target || l.$$.root
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
a && a(u.root);
|
|
242
242
|
let f = !1;
|
|
243
|
-
if (
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
})
|
|
243
|
+
if (u.ctx = n(e, t.props || {}, (b, m, ...S) => {
|
|
244
|
+
const E = S.length ? S[0] : m;
|
|
245
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && Kr(e, b)), m;
|
|
246
|
+
}), u.update(), f = !0, We(u.before_update), u.fragment = r(u.ctx), t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const b =
|
|
249
|
-
|
|
248
|
+
const b = jr(t.target);
|
|
249
|
+
u.fragment && u.fragment.l(b), b.forEach(pe);
|
|
250
250
|
} else
|
|
251
|
-
|
|
252
|
-
t.intro &&
|
|
251
|
+
u.fragment && u.fragment.c();
|
|
252
|
+
t.intro && Yr(e.$$.fragment), Qr(e, t.target, t.anchor), Q();
|
|
253
253
|
}
|
|
254
|
-
rt(
|
|
254
|
+
rt(l);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Qn;
|
|
257
|
+
typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
258
258
|
constructor(t, n, r) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
|
-
|
|
261
|
+
ce(this, "$$ctor");
|
|
262
262
|
/** Slots */
|
|
263
|
-
|
|
263
|
+
ce(this, "$$s");
|
|
264
264
|
/** The Svelte component instance */
|
|
265
|
-
|
|
265
|
+
ce(this, "$$c");
|
|
266
266
|
/** Whether or not the custom element is connected */
|
|
267
|
-
|
|
267
|
+
ce(this, "$$cn", !1);
|
|
268
268
|
/** Component props data */
|
|
269
|
-
|
|
269
|
+
ce(this, "$$d", {});
|
|
270
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
271
|
-
|
|
271
|
+
ce(this, "$$r", !1);
|
|
272
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
273
|
-
|
|
273
|
+
ce(this, "$$p_d", {});
|
|
274
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
275
|
-
|
|
275
|
+
ce(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
|
-
|
|
277
|
+
ce(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
278
278
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
279
279
|
}
|
|
280
280
|
addEventListener(t, n, r) {
|
|
@@ -295,38 +295,38 @@ typeof HTMLElement == "function" && (Kn = class extends HTMLElement {
|
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
|
-
let
|
|
298
|
+
let a;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
|
|
301
|
+
a = j("slot"), o !== "default" && M(a, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
305
305
|
* @param {HTMLElement} [anchor]
|
|
306
306
|
*/
|
|
307
|
-
m: function(
|
|
308
|
-
|
|
307
|
+
m: function(u, f) {
|
|
308
|
+
ge(u, a, f);
|
|
309
309
|
},
|
|
310
|
-
d: function(
|
|
311
|
-
|
|
310
|
+
d: function(u) {
|
|
311
|
+
u && pe(a);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const n = {}, r =
|
|
318
|
+
const n = {}, r = kr(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in r && (n[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const a = this.$$g_p(o.name);
|
|
323
|
+
a in this.$$d || (this.$$d[a] = bt(a, o.value, this.$$p_d, "toProp"));
|
|
324
324
|
}
|
|
325
325
|
for (const o in this.$$p_d)
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props: Dt(
|
|
329
|
+
props: Dt(It({}, this.$$d), {
|
|
330
330
|
$$slots: n,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -337,21 +337,21 @@ typeof HTMLElement == "function" && (Kn = class extends HTMLElement {
|
|
|
337
337
|
this.$$r = !0;
|
|
338
338
|
for (const o in this.$$p_d)
|
|
339
339
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
340
|
-
const
|
|
340
|
+
const a = bt(
|
|
341
341
|
o,
|
|
342
342
|
this.$$d[o],
|
|
343
343
|
this.$$p_d,
|
|
344
344
|
"toAttribute"
|
|
345
345
|
);
|
|
346
|
-
|
|
346
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
347
347
|
}
|
|
348
348
|
this.$$r = !1;
|
|
349
349
|
};
|
|
350
350
|
this.$$c.$$.after_update.push(i), i();
|
|
351
351
|
for (const o in this.$$l)
|
|
352
|
-
for (const
|
|
353
|
-
const
|
|
354
|
-
this.$$l_u.set(
|
|
352
|
+
for (const a of this.$$l[o]) {
|
|
353
|
+
const s = this.$$c.$on(o, a);
|
|
354
|
+
this.$$l_u.set(a, s);
|
|
355
355
|
}
|
|
356
356
|
this.$$l = {};
|
|
357
357
|
}
|
|
@@ -404,38 +404,38 @@ function bt(e, t, n, r) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let
|
|
407
|
+
function ti(e, t, n, r, i, o) {
|
|
408
|
+
let a = class extends Qn {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, n, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
412
412
|
static get observedAttributes() {
|
|
413
413
|
return Object.keys(t).map(
|
|
414
|
-
(
|
|
414
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
return Object.keys(t).forEach((
|
|
419
|
-
Object.defineProperty(
|
|
418
|
+
return Object.keys(t).forEach((s) => {
|
|
419
|
+
Object.defineProperty(a.prototype, s, {
|
|
420
420
|
get() {
|
|
421
|
-
return this.$$c &&
|
|
421
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
422
422
|
},
|
|
423
|
-
set(
|
|
424
|
-
var
|
|
425
|
-
|
|
423
|
+
set(l) {
|
|
424
|
+
var u;
|
|
425
|
+
l = bt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
|
-
}), r.forEach((
|
|
429
|
-
Object.defineProperty(
|
|
428
|
+
}), r.forEach((s) => {
|
|
429
|
+
Object.defineProperty(a.prototype, s, {
|
|
430
430
|
get() {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var l;
|
|
432
|
+
return (l = this.$$c) == null ? void 0 : l[s];
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
|
-
|
|
436
|
+
a, a;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class ni {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -444,7 +444,7 @@ class oi {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
ce(this, "$$");
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
450
450
|
*
|
|
@@ -452,11 +452,11 @@ class oi {
|
|
|
452
452
|
*
|
|
453
453
|
* @type {any}
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
ce(this, "$$set");
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Jr(this, 1), this.$destroy = he;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,8 +465,8 @@ class oi {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, n) {
|
|
468
|
-
if (!
|
|
469
|
-
return
|
|
468
|
+
if (!cn(n))
|
|
469
|
+
return he;
|
|
470
470
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return r.push(n), () => {
|
|
472
472
|
const i = r.indexOf(n);
|
|
@@ -478,18 +478,18 @@ class oi {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !Nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
486
|
-
function
|
|
484
|
+
const ri = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ri);
|
|
486
|
+
function ii(e, t) {
|
|
487
487
|
if (e) {
|
|
488
488
|
const n = document.createElement("style");
|
|
489
489
|
n.innerHTML = t, e.appendChild(n);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function oi(e, t) {
|
|
493
493
|
const n = new URL(t);
|
|
494
494
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
495
495
|
const i = document.createElement("style");
|
|
@@ -498,7 +498,7 @@ function li(e, t) {
|
|
|
498
498
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ai(e, t, n) {
|
|
502
502
|
if (window.emMessageBus) {
|
|
503
503
|
const r = document.createElement("style");
|
|
504
504
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -506,144 +506,144 @@ function ui(e, t, n) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
function
|
|
509
|
+
const Fe = [];
|
|
510
|
+
function si(e, t) {
|
|
511
511
|
return {
|
|
512
512
|
subscribe: St(e, t).subscribe
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function St(e, t =
|
|
515
|
+
function St(e, t = he) {
|
|
516
516
|
let n;
|
|
517
517
|
const r = /* @__PURE__ */ new Set();
|
|
518
|
-
function i(
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
for (const
|
|
522
|
-
|
|
523
|
-
if (
|
|
524
|
-
for (let
|
|
525
|
-
|
|
526
|
-
|
|
518
|
+
function i(s) {
|
|
519
|
+
if (Zn(e, s) && (e = s, n)) {
|
|
520
|
+
const l = !Fe.length;
|
|
521
|
+
for (const u of r)
|
|
522
|
+
u[1](), Fe.push(u, e);
|
|
523
|
+
if (l) {
|
|
524
|
+
for (let u = 0; u < Fe.length; u += 2)
|
|
525
|
+
Fe[u][0](Fe[u + 1]);
|
|
526
|
+
Fe.length = 0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function o(
|
|
531
|
-
i(
|
|
530
|
+
function o(s) {
|
|
531
|
+
i(s(e));
|
|
532
532
|
}
|
|
533
|
-
function s
|
|
534
|
-
const
|
|
535
|
-
return r.add(
|
|
536
|
-
r.delete(
|
|
533
|
+
function a(s, l = he) {
|
|
534
|
+
const u = [s, l];
|
|
535
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || he), s(e), () => {
|
|
536
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
return { set: i, update: o, subscribe:
|
|
539
|
+
return { set: i, update: o, subscribe: a };
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ze(e, t, n) {
|
|
542
542
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
543
543
|
if (!i.every(Boolean))
|
|
544
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
545
545
|
const o = t.length < 2;
|
|
546
|
-
return
|
|
547
|
-
let
|
|
548
|
-
const
|
|
549
|
-
let f = 0, b =
|
|
546
|
+
return si(n, (a, s) => {
|
|
547
|
+
let l = !1;
|
|
548
|
+
const u = [];
|
|
549
|
+
let f = 0, b = he;
|
|
550
550
|
const m = () => {
|
|
551
551
|
if (f)
|
|
552
552
|
return;
|
|
553
553
|
b();
|
|
554
|
-
const
|
|
555
|
-
o ?
|
|
554
|
+
const E = t(r ? u[0] : u, a, s);
|
|
555
|
+
o ? a(E) : b = cn(E) ? E : he;
|
|
556
556
|
}, S = i.map(
|
|
557
|
-
(
|
|
558
|
-
|
|
559
|
-
(
|
|
560
|
-
|
|
557
|
+
(E, A) => qn(
|
|
558
|
+
E,
|
|
559
|
+
(I) => {
|
|
560
|
+
u[A] = I, f &= ~(1 << A), l && m();
|
|
561
561
|
},
|
|
562
562
|
() => {
|
|
563
|
-
f |= 1 <<
|
|
563
|
+
f |= 1 << A;
|
|
564
564
|
}
|
|
565
565
|
)
|
|
566
566
|
);
|
|
567
|
-
return
|
|
568
|
-
|
|
567
|
+
return l = !0, m(), function() {
|
|
568
|
+
We(S), b(), l = !1;
|
|
569
569
|
};
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
572
|
+
var ui = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
573
|
+
function li(e) {
|
|
574
574
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
return
|
|
576
|
+
var ci = function(t) {
|
|
577
|
+
return hi(t) && !fi(t);
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function hi(e) {
|
|
580
580
|
return !!e && typeof e == "object";
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function fi(e) {
|
|
583
583
|
var t = Object.prototype.toString.call(e);
|
|
584
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
584
|
+
return t === "[object RegExp]" || t === "[object Date]" || mi(e);
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return e.$$typeof ===
|
|
586
|
+
var di = typeof Symbol == "function" && Symbol.for, pi = di ? Symbol.for("react.element") : 60103;
|
|
587
|
+
function mi(e) {
|
|
588
|
+
return e.$$typeof === pi;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function bi(e) {
|
|
591
591
|
return Array.isArray(e) ? [] : {};
|
|
592
592
|
}
|
|
593
593
|
function ot(e, t) {
|
|
594
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(bi(e), e, t) : e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function gi(e, t, n) {
|
|
597
597
|
return e.concat(t).map(function(r) {
|
|
598
598
|
return ot(r, n);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function yi(e, t) {
|
|
602
602
|
if (!t.customMerge)
|
|
603
|
-
return
|
|
603
|
+
return $e;
|
|
604
604
|
var n = t.customMerge(e);
|
|
605
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : $e;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function vi(e) {
|
|
608
608
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
609
609
|
return Object.propertyIsEnumerable.call(e, t);
|
|
610
610
|
}) : [];
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
return Object.keys(e).concat(
|
|
612
|
+
function vn(e) {
|
|
613
|
+
return Object.keys(e).concat(vi(e));
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Jn(e, t) {
|
|
616
616
|
try {
|
|
617
617
|
return t in e;
|
|
618
618
|
} catch (n) {
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function Ei(e, t) {
|
|
623
|
+
return Jn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function _i(e, t, n) {
|
|
626
626
|
var r = {};
|
|
627
|
-
return n.isMergeableObject(e) &&
|
|
627
|
+
return n.isMergeableObject(e) && vn(e).forEach(function(i) {
|
|
628
628
|
r[i] = ot(e[i], n);
|
|
629
|
-
}),
|
|
630
|
-
|
|
629
|
+
}), vn(t).forEach(function(i) {
|
|
630
|
+
Ei(e, i) || (Jn(e, i) && n.isMergeableObject(t[i]) ? r[i] = yi(i, n)(e[i], t[i], n) : r[i] = ot(t[i], n));
|
|
631
631
|
}), r;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
633
|
+
function $e(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || gi, n.isMergeableObject = n.isMergeableObject || ci, n.cloneUnlessOtherwiseSpecified = ot;
|
|
635
635
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
636
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
636
|
+
return o ? r ? n.arrayMerge(e, t, n) : _i(e, t, n) : ot(t, n);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
$e.all = function(t, n) {
|
|
639
639
|
if (!Array.isArray(t))
|
|
640
640
|
throw new Error("first argument should be an array");
|
|
641
641
|
return t.reduce(function(r, i) {
|
|
642
|
-
return
|
|
642
|
+
return $e(r, i, n);
|
|
643
643
|
}, {});
|
|
644
644
|
};
|
|
645
|
-
var
|
|
646
|
-
const
|
|
645
|
+
var xi = $e, wi = xi;
|
|
646
|
+
const Si = /* @__PURE__ */ li(wi);
|
|
647
647
|
/*! *****************************************************************************
|
|
648
648
|
Copyright (c) Microsoft Corporation.
|
|
649
649
|
|
|
@@ -658,34 +658,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
658
658
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
659
|
PERFORMANCE OF THIS SOFTWARE.
|
|
660
660
|
***************************************************************************** */
|
|
661
|
-
var
|
|
662
|
-
return
|
|
661
|
+
var qt = function(e, t) {
|
|
662
|
+
return qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
663
663
|
n.__proto__ = r;
|
|
664
664
|
} || function(n, r) {
|
|
665
665
|
for (var i in r)
|
|
666
666
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
667
|
-
},
|
|
667
|
+
}, qt(e, t);
|
|
668
668
|
};
|
|
669
|
-
function
|
|
669
|
+
function Be(e, t) {
|
|
670
670
|
if (typeof t != "function" && t !== null)
|
|
671
671
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
672
|
-
|
|
672
|
+
qt(e, t);
|
|
673
673
|
function n() {
|
|
674
674
|
this.constructor = e;
|
|
675
675
|
}
|
|
676
676
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
677
677
|
}
|
|
678
|
-
var
|
|
679
|
-
return
|
|
678
|
+
var L = function() {
|
|
679
|
+
return L = Object.assign || function(t) {
|
|
680
680
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
681
681
|
n = arguments[r];
|
|
682
682
|
for (var o in n)
|
|
683
683
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
684
684
|
}
|
|
685
685
|
return t;
|
|
686
|
-
},
|
|
686
|
+
}, L.apply(this, arguments);
|
|
687
687
|
};
|
|
688
|
-
function
|
|
688
|
+
function Ti(e, t) {
|
|
689
689
|
var n = {};
|
|
690
690
|
for (var r in e)
|
|
691
691
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -694,7 +694,7 @@ function Ci(e, t) {
|
|
|
694
694
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
695
695
|
return n;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Yt(e) {
|
|
698
698
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
699
699
|
if (n)
|
|
700
700
|
return n.call(e);
|
|
@@ -706,131 +706,133 @@ function Qt(e) {
|
|
|
706
706
|
};
|
|
707
707
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Qt(e, t) {
|
|
710
710
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
711
711
|
if (!n)
|
|
712
712
|
return e;
|
|
713
|
-
var r = n.call(e), i, o = [],
|
|
713
|
+
var r = n.call(e), i, o = [], a;
|
|
714
714
|
try {
|
|
715
715
|
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
716
716
|
o.push(i.value);
|
|
717
|
-
} catch (
|
|
718
|
-
|
|
717
|
+
} catch (s) {
|
|
718
|
+
a = { error: s };
|
|
719
719
|
} finally {
|
|
720
720
|
try {
|
|
721
721
|
i && !i.done && (n = r.return) && n.call(r);
|
|
722
722
|
} finally {
|
|
723
|
-
if (
|
|
724
|
-
throw
|
|
723
|
+
if (a)
|
|
724
|
+
throw a.error;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
return o;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function ke(e, t, n) {
|
|
730
730
|
if (n || arguments.length === 2)
|
|
731
731
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
732
732
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
733
733
|
return e.concat(o || t);
|
|
734
734
|
}
|
|
735
735
|
function Gt(e, t) {
|
|
736
|
-
var n = t && t.cache ? t.cache :
|
|
736
|
+
var n = t && t.cache ? t.cache : Ri, r = t && t.serializer ? t.serializer : Oi, i = t && t.strategy ? t.strategy : Ai;
|
|
737
737
|
return i(e, {
|
|
738
738
|
cache: n,
|
|
739
739
|
serializer: r
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Bi(e) {
|
|
743
743
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var i =
|
|
745
|
+
function Kn(e, t, n, r) {
|
|
746
|
+
var i = Bi(r) ? r : n(r), o = t.get(i);
|
|
747
747
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function er(e, t, n) {
|
|
750
750
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
751
751
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function hn(e, t, n, r, i) {
|
|
754
754
|
return n.bind(t, e, r, i);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var n = e.length === 1 ?
|
|
758
|
-
return
|
|
756
|
+
function Ai(e, t) {
|
|
757
|
+
var n = e.length === 1 ? Kn : er;
|
|
758
|
+
return hn(e, this, n, t.cache.create(), t.serializer);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
760
|
+
function Ci(e, t) {
|
|
761
|
+
return hn(e, this, er, t.cache.create(), t.serializer);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
return
|
|
763
|
+
function Hi(e, t) {
|
|
764
|
+
return hn(e, this, Kn, t.cache.create(), t.serializer);
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var Oi = function() {
|
|
767
767
|
return JSON.stringify(arguments);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
768
|
+
}, Mi = (
|
|
769
|
+
/** @class */
|
|
770
|
+
function() {
|
|
771
|
+
function e() {
|
|
772
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
773
|
+
}
|
|
774
|
+
return e.prototype.get = function(t) {
|
|
775
|
+
return this.cache[t];
|
|
776
|
+
}, e.prototype.set = function(t, n) {
|
|
777
|
+
this.cache[t] = n;
|
|
778
|
+
}, e;
|
|
779
|
+
}()
|
|
780
|
+
), Ri = {
|
|
779
781
|
create: function() {
|
|
780
|
-
return new
|
|
782
|
+
return new Mi();
|
|
781
783
|
}
|
|
782
784
|
}, jt = {
|
|
783
|
-
variadic:
|
|
784
|
-
monadic:
|
|
785
|
-
},
|
|
785
|
+
variadic: Ci,
|
|
786
|
+
monadic: Hi
|
|
787
|
+
}, H;
|
|
786
788
|
(function(e) {
|
|
787
789
|
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";
|
|
788
|
-
})(
|
|
790
|
+
})(H || (H = {}));
|
|
789
791
|
var G;
|
|
790
792
|
(function(e) {
|
|
791
793
|
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";
|
|
792
794
|
})(G || (G = {}));
|
|
793
|
-
var
|
|
795
|
+
var Ve;
|
|
794
796
|
(function(e) {
|
|
795
797
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
796
|
-
})(
|
|
797
|
-
function
|
|
798
|
+
})(Ve || (Ve = {}));
|
|
799
|
+
function En(e) {
|
|
798
800
|
return e.type === G.literal;
|
|
799
801
|
}
|
|
800
|
-
function
|
|
802
|
+
function Li(e) {
|
|
801
803
|
return e.type === G.argument;
|
|
802
804
|
}
|
|
803
|
-
function
|
|
805
|
+
function tr(e) {
|
|
804
806
|
return e.type === G.number;
|
|
805
807
|
}
|
|
806
|
-
function
|
|
808
|
+
function nr(e) {
|
|
807
809
|
return e.type === G.date;
|
|
808
810
|
}
|
|
809
|
-
function
|
|
811
|
+
function rr(e) {
|
|
810
812
|
return e.type === G.time;
|
|
811
813
|
}
|
|
812
|
-
function
|
|
814
|
+
function ir(e) {
|
|
813
815
|
return e.type === G.select;
|
|
814
816
|
}
|
|
815
|
-
function
|
|
817
|
+
function or(e) {
|
|
816
818
|
return e.type === G.plural;
|
|
817
819
|
}
|
|
818
|
-
function
|
|
820
|
+
function Pi(e) {
|
|
819
821
|
return e.type === G.pound;
|
|
820
822
|
}
|
|
821
|
-
function
|
|
823
|
+
function ar(e) {
|
|
822
824
|
return e.type === G.tag;
|
|
823
825
|
}
|
|
824
|
-
function
|
|
825
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
826
|
+
function sr(e) {
|
|
827
|
+
return !!(e && typeof e == "object" && e.type === Ve.number);
|
|
826
828
|
}
|
|
827
|
-
function
|
|
828
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
829
|
+
function Jt(e) {
|
|
830
|
+
return !!(e && typeof e == "object" && e.type === Ve.dateTime);
|
|
829
831
|
}
|
|
830
|
-
var
|
|
831
|
-
function
|
|
832
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ni = /(?:[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;
|
|
833
|
+
function Ii(e) {
|
|
832
834
|
var t = {};
|
|
833
|
-
return e.replace(
|
|
835
|
+
return e.replace(Ni, function(n) {
|
|
834
836
|
var r = n.length;
|
|
835
837
|
switch (n[0]) {
|
|
836
838
|
case "G":
|
|
@@ -919,36 +921,36 @@ function Ui(e) {
|
|
|
919
921
|
return "";
|
|
920
922
|
}), t;
|
|
921
923
|
}
|
|
922
|
-
var
|
|
923
|
-
function
|
|
924
|
+
var Di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
925
|
+
function Ui(e) {
|
|
924
926
|
if (e.length === 0)
|
|
925
927
|
throw new Error("Number skeleton cannot be empty");
|
|
926
|
-
for (var t = e.split(
|
|
928
|
+
for (var t = e.split(Di).filter(function(m) {
|
|
927
929
|
return m.length > 0;
|
|
928
930
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
929
|
-
var o = i[r],
|
|
930
|
-
if (
|
|
931
|
+
var o = i[r], a = o.split("/");
|
|
932
|
+
if (a.length === 0)
|
|
931
933
|
throw new Error("Invalid number skeleton");
|
|
932
|
-
for (var
|
|
933
|
-
var b = f[
|
|
934
|
+
for (var s = a[0], l = a.slice(1), u = 0, f = l; u < f.length; u++) {
|
|
935
|
+
var b = f[u];
|
|
934
936
|
if (b.length === 0)
|
|
935
937
|
throw new Error("Invalid number skeleton");
|
|
936
938
|
}
|
|
937
|
-
n.push({ stem:
|
|
939
|
+
n.push({ stem: s, options: l });
|
|
938
940
|
}
|
|
939
941
|
return n;
|
|
940
942
|
}
|
|
941
|
-
function
|
|
943
|
+
function Fi(e) {
|
|
942
944
|
return e.replace(/^(.*?)-/, "");
|
|
943
945
|
}
|
|
944
|
-
var
|
|
945
|
-
function
|
|
946
|
+
var _n = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Gi = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
947
|
+
function xn(e) {
|
|
946
948
|
var t = {};
|
|
947
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
949
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(n, r, i) {
|
|
948
950
|
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)), "";
|
|
949
951
|
}), t;
|
|
950
952
|
}
|
|
951
|
-
function
|
|
953
|
+
function hr(e) {
|
|
952
954
|
switch (e) {
|
|
953
955
|
case "sign-auto":
|
|
954
956
|
return {
|
|
@@ -988,7 +990,7 @@ function dr(e) {
|
|
|
988
990
|
};
|
|
989
991
|
}
|
|
990
992
|
}
|
|
991
|
-
function
|
|
993
|
+
function ji(e) {
|
|
992
994
|
var t;
|
|
993
995
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
994
996
|
notation: "engineering"
|
|
@@ -996,17 +998,17 @@ function $i(e) {
|
|
|
996
998
|
notation: "scientific"
|
|
997
999
|
}, e = e.slice(1)), t) {
|
|
998
1000
|
var n = e.slice(0, 2);
|
|
999
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1001
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
|
1000
1002
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1001
1003
|
t.minimumIntegerDigits = e.length;
|
|
1002
1004
|
}
|
|
1003
1005
|
return t;
|
|
1004
1006
|
}
|
|
1005
|
-
function
|
|
1006
|
-
var t = {}, n =
|
|
1007
|
+
function wn(e) {
|
|
1008
|
+
var t = {}, n = hr(e);
|
|
1007
1009
|
return n || t;
|
|
1008
1010
|
}
|
|
1009
|
-
function
|
|
1011
|
+
function ki(e) {
|
|
1010
1012
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1011
1013
|
var i = r[n];
|
|
1012
1014
|
switch (i.stem) {
|
|
@@ -1030,7 +1032,7 @@ function Vi(e) {
|
|
|
1030
1032
|
continue;
|
|
1031
1033
|
case "measure-unit":
|
|
1032
1034
|
case "unit":
|
|
1033
|
-
t.style = "unit", t.unit =
|
|
1035
|
+
t.style = "unit", t.unit = Fi(i.options[0]);
|
|
1034
1036
|
continue;
|
|
1035
1037
|
case "compact-short":
|
|
1036
1038
|
case "K":
|
|
@@ -1041,13 +1043,13 @@ function Vi(e) {
|
|
|
1041
1043
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1042
1044
|
continue;
|
|
1043
1045
|
case "scientific":
|
|
1044
|
-
t =
|
|
1045
|
-
return
|
|
1046
|
+
t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1047
|
+
return L(L({}, l), wn(u));
|
|
1046
1048
|
}, {}));
|
|
1047
1049
|
continue;
|
|
1048
1050
|
case "engineering":
|
|
1049
|
-
t =
|
|
1050
|
-
return
|
|
1051
|
+
t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1052
|
+
return L(L({}, l), wn(u));
|
|
1051
1053
|
}, {}));
|
|
1052
1054
|
continue;
|
|
1053
1055
|
case "notation-simple":
|
|
@@ -1092,8 +1094,8 @@ function Vi(e) {
|
|
|
1092
1094
|
case "integer-width":
|
|
1093
1095
|
if (i.options.length > 1)
|
|
1094
1096
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1095
|
-
i.options[0].replace(
|
|
1096
|
-
if (
|
|
1097
|
+
i.options[0].replace(Gi, function(l, u, f, b, m, S) {
|
|
1098
|
+
if (u)
|
|
1097
1099
|
t.minimumIntegerDigits = f.length;
|
|
1098
1100
|
else {
|
|
1099
1101
|
if (b && m)
|
|
@@ -1105,28 +1107,28 @@ function Vi(e) {
|
|
|
1105
1107
|
});
|
|
1106
1108
|
continue;
|
|
1107
1109
|
}
|
|
1108
|
-
if (
|
|
1110
|
+
if (cr.test(i.stem)) {
|
|
1109
1111
|
t.minimumIntegerDigits = i.stem.length;
|
|
1110
1112
|
continue;
|
|
1111
1113
|
}
|
|
1112
|
-
if (
|
|
1114
|
+
if (_n.test(i.stem)) {
|
|
1113
1115
|
if (i.options.length > 1)
|
|
1114
1116
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1115
|
-
i.stem.replace(
|
|
1116
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
1117
|
+
i.stem.replace(_n, function(l, u, f, b, m, S) {
|
|
1118
|
+
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && S ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + S.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1117
1119
|
});
|
|
1118
1120
|
var o = i.options[0];
|
|
1119
|
-
o === "w" ? t =
|
|
1121
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), xn(o)));
|
|
1120
1122
|
continue;
|
|
1121
1123
|
}
|
|
1122
|
-
if (
|
|
1123
|
-
t =
|
|
1124
|
+
if (lr.test(i.stem)) {
|
|
1125
|
+
t = L(L({}, t), xn(i.stem));
|
|
1124
1126
|
continue;
|
|
1125
1127
|
}
|
|
1126
|
-
var
|
|
1127
|
-
|
|
1128
|
-
var
|
|
1129
|
-
|
|
1128
|
+
var a = hr(i.stem);
|
|
1129
|
+
a && (t = L(L({}, t), a));
|
|
1130
|
+
var s = ji(i.stem);
|
|
1131
|
+
s && (t = L(L({}, t), s));
|
|
1130
1132
|
}
|
|
1131
1133
|
return t;
|
|
1132
1134
|
}
|
|
@@ -2545,23 +2547,23 @@ var pt = {
|
|
|
2545
2547
|
"h"
|
|
2546
2548
|
]
|
|
2547
2549
|
};
|
|
2548
|
-
function
|
|
2550
|
+
function $i(e, t) {
|
|
2549
2551
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2550
2552
|
var i = e.charAt(r);
|
|
2551
2553
|
if (i === "j") {
|
|
2552
2554
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2553
2555
|
o++, r++;
|
|
2554
|
-
var
|
|
2555
|
-
for ((
|
|
2556
|
-
n +=
|
|
2557
|
-
for (;
|
|
2558
|
-
n =
|
|
2556
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Vi(t);
|
|
2557
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2558
|
+
n += l;
|
|
2559
|
+
for (; a-- > 0; )
|
|
2560
|
+
n = u + n;
|
|
2559
2561
|
} else
|
|
2560
2562
|
i === "J" ? n += "H" : n += i;
|
|
2561
2563
|
}
|
|
2562
2564
|
return n;
|
|
2563
2565
|
}
|
|
2564
|
-
function
|
|
2566
|
+
function Vi(e) {
|
|
2565
2567
|
var t = e.hourCycle;
|
|
2566
2568
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2567
2569
|
e.hourCycles && // @ts-ignore
|
|
@@ -2583,20 +2585,20 @@ function zi(e) {
|
|
|
2583
2585
|
var i = pt[r || ""] || pt[n || ""] || pt["".concat(n, "-001")] || pt["001"];
|
|
2584
2586
|
return i[0];
|
|
2585
2587
|
}
|
|
2586
|
-
var kt,
|
|
2587
|
-
function
|
|
2588
|
+
var kt, Xi = new RegExp("^".concat(ur.source, "*")), zi = new RegExp("".concat(ur.source, "*$"));
|
|
2589
|
+
function O(e, t) {
|
|
2588
2590
|
return { start: e, end: t };
|
|
2589
2591
|
}
|
|
2590
|
-
var
|
|
2592
|
+
var Wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zi = !!String.fromCodePoint, qi = !!Object.fromEntries, Yi = !!String.prototype.codePointAt, Qi = !!String.prototype.trimStart, Ji = !!String.prototype.trimEnd, Ki = !!Number.isSafeInteger, eo = Ki ? Number.isSafeInteger : function(e) {
|
|
2591
2593
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2592
|
-
},
|
|
2594
|
+
}, Kt = !0;
|
|
2593
2595
|
try {
|
|
2594
|
-
var
|
|
2595
|
-
|
|
2596
|
+
var to = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2597
|
+
Kt = ((kt = to.exec("a")) === null || kt === void 0 ? void 0 : kt[0]) === "a";
|
|
2596
2598
|
} catch (e) {
|
|
2597
|
-
|
|
2599
|
+
Kt = !1;
|
|
2598
2600
|
}
|
|
2599
|
-
var
|
|
2601
|
+
var Sn = Wi ? (
|
|
2600
2602
|
// Native
|
|
2601
2603
|
function(t, n, r) {
|
|
2602
2604
|
return t.startsWith(n, r);
|
|
@@ -2606,31 +2608,31 @@ var Bn = qi ? (
|
|
|
2606
2608
|
function(t, n, r) {
|
|
2607
2609
|
return t.slice(r, r + n.length) === n;
|
|
2608
2610
|
}
|
|
2609
|
-
),
|
|
2611
|
+
), en = Zi ? String.fromCodePoint : (
|
|
2610
2612
|
// IE11
|
|
2611
2613
|
function() {
|
|
2612
2614
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2613
2615
|
t[n] = arguments[n];
|
|
2614
|
-
for (var r = "", i = t.length, o = 0,
|
|
2615
|
-
if (
|
|
2616
|
-
throw RangeError(
|
|
2617
|
-
r +=
|
|
2616
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
2617
|
+
if (a = t[o++], a > 1114111)
|
|
2618
|
+
throw RangeError(a + " is not a valid code point");
|
|
2619
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2618
2620
|
}
|
|
2619
2621
|
return r;
|
|
2620
2622
|
}
|
|
2621
|
-
),
|
|
2623
|
+
), Tn = (
|
|
2622
2624
|
// native
|
|
2623
|
-
|
|
2625
|
+
qi ? Object.fromEntries : (
|
|
2624
2626
|
// Ponyfill
|
|
2625
2627
|
function(t) {
|
|
2626
2628
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2627
|
-
var o = i[r],
|
|
2628
|
-
n[
|
|
2629
|
+
var o = i[r], a = o[0], s = o[1];
|
|
2630
|
+
n[a] = s;
|
|
2629
2631
|
}
|
|
2630
2632
|
return n;
|
|
2631
2633
|
}
|
|
2632
2634
|
)
|
|
2633
|
-
),
|
|
2635
|
+
), fr = Yi ? (
|
|
2634
2636
|
// Native
|
|
2635
2637
|
function(t, n) {
|
|
2636
2638
|
return t.codePointAt(n);
|
|
@@ -2644,7 +2646,7 @@ var Bn = qi ? (
|
|
|
2644
2646
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2645
2647
|
}
|
|
2646
2648
|
}
|
|
2647
|
-
),
|
|
2649
|
+
), no = Qi ? (
|
|
2648
2650
|
// Native
|
|
2649
2651
|
function(t) {
|
|
2650
2652
|
return t.trimStart();
|
|
@@ -2652,9 +2654,9 @@ var Bn = qi ? (
|
|
|
2652
2654
|
) : (
|
|
2653
2655
|
// Ponyfill
|
|
2654
2656
|
function(t) {
|
|
2655
|
-
return t.replace(
|
|
2657
|
+
return t.replace(Xi, "");
|
|
2656
2658
|
}
|
|
2657
|
-
),
|
|
2659
|
+
), ro = Ji ? (
|
|
2658
2660
|
// Native
|
|
2659
2661
|
function(t) {
|
|
2660
2662
|
return t.trimEnd();
|
|
@@ -2662,32 +2664,32 @@ var Bn = qi ? (
|
|
|
2662
2664
|
) : (
|
|
2663
2665
|
// Ponyfill
|
|
2664
2666
|
function(t) {
|
|
2665
|
-
return t.replace(
|
|
2667
|
+
return t.replace(zi, "");
|
|
2666
2668
|
}
|
|
2667
2669
|
);
|
|
2668
|
-
function
|
|
2670
|
+
function dr(e, t) {
|
|
2669
2671
|
return new RegExp(e, t);
|
|
2670
2672
|
}
|
|
2671
|
-
var
|
|
2672
|
-
if (
|
|
2673
|
-
var
|
|
2674
|
-
|
|
2673
|
+
var tn;
|
|
2674
|
+
if (Kt) {
|
|
2675
|
+
var Bn = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2676
|
+
tn = function(t, n) {
|
|
2675
2677
|
var r;
|
|
2676
|
-
|
|
2677
|
-
var i =
|
|
2678
|
+
Bn.lastIndex = n;
|
|
2679
|
+
var i = Bn.exec(t);
|
|
2678
2680
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2679
2681
|
};
|
|
2680
2682
|
} else
|
|
2681
|
-
|
|
2683
|
+
tn = function(t, n) {
|
|
2682
2684
|
for (var r = []; ; ) {
|
|
2683
|
-
var i =
|
|
2684
|
-
if (i === void 0 ||
|
|
2685
|
+
var i = fr(t, n);
|
|
2686
|
+
if (i === void 0 || pr(i) || so(i))
|
|
2685
2687
|
break;
|
|
2686
2688
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2687
2689
|
}
|
|
2688
|
-
return
|
|
2690
|
+
return en.apply(void 0, r);
|
|
2689
2691
|
};
|
|
2690
|
-
var
|
|
2692
|
+
var io = (
|
|
2691
2693
|
/** @class */
|
|
2692
2694
|
function() {
|
|
2693
2695
|
function e(t, n) {
|
|
@@ -2701,33 +2703,33 @@ var ao = (
|
|
|
2701
2703
|
for (var i = []; !this.isEOF(); ) {
|
|
2702
2704
|
var o = this.char();
|
|
2703
2705
|
if (o === 123) {
|
|
2704
|
-
var
|
|
2705
|
-
if (
|
|
2706
|
-
return
|
|
2707
|
-
i.push(
|
|
2706
|
+
var a = this.parseArgument(t, r);
|
|
2707
|
+
if (a.err)
|
|
2708
|
+
return a;
|
|
2709
|
+
i.push(a.val);
|
|
2708
2710
|
} else {
|
|
2709
2711
|
if (o === 125 && t > 0)
|
|
2710
2712
|
break;
|
|
2711
2713
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2712
|
-
var
|
|
2714
|
+
var s = this.clonePosition();
|
|
2713
2715
|
this.bump(), i.push({
|
|
2714
2716
|
type: G.pound,
|
|
2715
|
-
location:
|
|
2717
|
+
location: O(s, this.clonePosition())
|
|
2716
2718
|
});
|
|
2717
2719
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2718
2720
|
if (r)
|
|
2719
2721
|
break;
|
|
2720
|
-
return this.error(
|
|
2721
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2722
|
-
var
|
|
2723
|
-
if (
|
|
2724
|
-
return
|
|
2725
|
-
i.push(
|
|
2722
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2723
|
+
} else if (o === 60 && !this.ignoreTag && nn(this.peek() || 0)) {
|
|
2724
|
+
var a = this.parseTag(t, n);
|
|
2725
|
+
if (a.err)
|
|
2726
|
+
return a;
|
|
2727
|
+
i.push(a.val);
|
|
2726
2728
|
} else {
|
|
2727
|
-
var
|
|
2728
|
-
if (
|
|
2729
|
-
return
|
|
2730
|
-
i.push(
|
|
2729
|
+
var a = this.parseLiteral(t, n);
|
|
2730
|
+
if (a.err)
|
|
2731
|
+
return a;
|
|
2732
|
+
i.push(a.val);
|
|
2731
2733
|
}
|
|
2732
2734
|
}
|
|
2733
2735
|
}
|
|
@@ -2741,7 +2743,7 @@ var ao = (
|
|
|
2741
2743
|
val: {
|
|
2742
2744
|
type: G.literal,
|
|
2743
2745
|
value: "<".concat(i, "/>"),
|
|
2744
|
-
location:
|
|
2746
|
+
location: O(r, this.clonePosition())
|
|
2745
2747
|
},
|
|
2746
2748
|
err: null
|
|
2747
2749
|
};
|
|
@@ -2749,27 +2751,27 @@ var ao = (
|
|
|
2749
2751
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2750
2752
|
if (o.err)
|
|
2751
2753
|
return o;
|
|
2752
|
-
var
|
|
2754
|
+
var a = o.val, s = this.clonePosition();
|
|
2753
2755
|
if (this.bumpIf("</")) {
|
|
2754
|
-
if (this.isEOF() || !
|
|
2755
|
-
return this.error(
|
|
2756
|
-
var
|
|
2757
|
-
return i !==
|
|
2756
|
+
if (this.isEOF() || !nn(this.char()))
|
|
2757
|
+
return this.error(H.INVALID_TAG, O(s, this.clonePosition()));
|
|
2758
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2759
|
+
return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2758
2760
|
val: {
|
|
2759
2761
|
type: G.tag,
|
|
2760
2762
|
value: i,
|
|
2761
|
-
children:
|
|
2762
|
-
location:
|
|
2763
|
+
children: a,
|
|
2764
|
+
location: O(r, this.clonePosition())
|
|
2763
2765
|
},
|
|
2764
2766
|
err: null
|
|
2765
|
-
} : this.error(
|
|
2767
|
+
} : this.error(H.INVALID_TAG, O(s, this.clonePosition())));
|
|
2766
2768
|
} else
|
|
2767
|
-
return this.error(
|
|
2769
|
+
return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
2768
2770
|
} else
|
|
2769
|
-
return this.error(
|
|
2771
|
+
return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
|
|
2770
2772
|
}, e.prototype.parseTagName = function() {
|
|
2771
2773
|
var t = this.offset();
|
|
2772
|
-
for (this.bump(); !this.isEOF() &&
|
|
2774
|
+
for (this.bump(); !this.isEOF() && ao(this.char()); )
|
|
2773
2775
|
this.bump();
|
|
2774
2776
|
return this.message.slice(t, this.offset());
|
|
2775
2777
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2779,26 +2781,26 @@ var ao = (
|
|
|
2779
2781
|
i += o;
|
|
2780
2782
|
continue;
|
|
2781
2783
|
}
|
|
2782
|
-
var
|
|
2783
|
-
if (s) {
|
|
2784
|
-
i += s;
|
|
2785
|
-
continue;
|
|
2786
|
-
}
|
|
2787
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2784
|
+
var a = this.tryParseUnquoted(t, n);
|
|
2788
2785
|
if (a) {
|
|
2789
2786
|
i += a;
|
|
2790
2787
|
continue;
|
|
2791
2788
|
}
|
|
2789
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2790
|
+
if (s) {
|
|
2791
|
+
i += s;
|
|
2792
|
+
continue;
|
|
2793
|
+
}
|
|
2792
2794
|
break;
|
|
2793
2795
|
}
|
|
2794
|
-
var
|
|
2796
|
+
var l = O(r, this.clonePosition());
|
|
2795
2797
|
return {
|
|
2796
|
-
val: { type: G.literal, value: i, location:
|
|
2798
|
+
val: { type: G.literal, value: i, location: l },
|
|
2797
2799
|
err: null
|
|
2798
2800
|
};
|
|
2799
2801
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2800
2802
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2801
|
-
!
|
|
2803
|
+
!oo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2802
2804
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2803
2805
|
if (this.isEOF() || this.char() !== 39)
|
|
2804
2806
|
return null;
|
|
@@ -2832,23 +2834,23 @@ var ao = (
|
|
|
2832
2834
|
n.push(r);
|
|
2833
2835
|
this.bump();
|
|
2834
2836
|
}
|
|
2835
|
-
return
|
|
2837
|
+
return en.apply(void 0, n);
|
|
2836
2838
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2837
2839
|
if (this.isEOF())
|
|
2838
2840
|
return null;
|
|
2839
2841
|
var r = this.char();
|
|
2840
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2842
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), en(r));
|
|
2841
2843
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2842
2844
|
var r = this.clonePosition();
|
|
2843
2845
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2844
|
-
return this.error(
|
|
2846
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2845
2847
|
if (this.char() === 125)
|
|
2846
|
-
return this.bump(), this.error(
|
|
2848
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
|
|
2847
2849
|
var i = this.parseIdentifierIfPossible().value;
|
|
2848
2850
|
if (!i)
|
|
2849
|
-
return this.error(
|
|
2851
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2850
2852
|
if (this.bumpSpace(), this.isEOF())
|
|
2851
|
-
return this.error(
|
|
2853
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2852
2854
|
switch (this.char()) {
|
|
2853
2855
|
case 125:
|
|
2854
2856
|
return this.bump(), {
|
|
@@ -2856,76 +2858,76 @@ var ao = (
|
|
|
2856
2858
|
type: G.argument,
|
|
2857
2859
|
// value does not include the opening and closing braces.
|
|
2858
2860
|
value: i,
|
|
2859
|
-
location:
|
|
2861
|
+
location: O(r, this.clonePosition())
|
|
2860
2862
|
},
|
|
2861
2863
|
err: null
|
|
2862
2864
|
};
|
|
2863
2865
|
case 44:
|
|
2864
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2866
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2865
2867
|
default:
|
|
2866
|
-
return this.error(
|
|
2868
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2867
2869
|
}
|
|
2868
2870
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2869
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2871
|
+
var t = this.clonePosition(), n = this.offset(), r = tn(this.message, n), i = n + r.length;
|
|
2870
2872
|
this.bumpTo(i);
|
|
2871
|
-
var o = this.clonePosition(),
|
|
2872
|
-
return { value: r, location:
|
|
2873
|
+
var o = this.clonePosition(), a = O(t, o);
|
|
2874
|
+
return { value: r, location: a };
|
|
2873
2875
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2874
|
-
var o,
|
|
2875
|
-
switch (
|
|
2876
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2877
|
+
switch (s) {
|
|
2876
2878
|
case "":
|
|
2877
|
-
return this.error(
|
|
2879
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, O(a, l));
|
|
2878
2880
|
case "number":
|
|
2879
2881
|
case "date":
|
|
2880
2882
|
case "time": {
|
|
2881
2883
|
this.bumpSpace();
|
|
2882
|
-
var
|
|
2884
|
+
var u = null;
|
|
2883
2885
|
if (this.bumpIf(",")) {
|
|
2884
2886
|
this.bumpSpace();
|
|
2885
2887
|
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2886
2888
|
if (b.err)
|
|
2887
2889
|
return b;
|
|
2888
|
-
var m =
|
|
2890
|
+
var m = ro(b.val);
|
|
2889
2891
|
if (m.length === 0)
|
|
2890
|
-
return this.error(
|
|
2891
|
-
var S =
|
|
2892
|
-
|
|
2892
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2893
|
+
var S = O(f, this.clonePosition());
|
|
2894
|
+
u = { style: m, styleLocation: S };
|
|
2893
2895
|
}
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2897
|
-
var
|
|
2898
|
-
if (
|
|
2899
|
-
var
|
|
2900
|
-
if (
|
|
2901
|
-
var b = this.parseNumberSkeletonFromString(
|
|
2896
|
+
var E = this.tryParseArgumentClose(i);
|
|
2897
|
+
if (E.err)
|
|
2898
|
+
return E;
|
|
2899
|
+
var A = O(i, this.clonePosition());
|
|
2900
|
+
if (u && Sn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2901
|
+
var I = no(u.style.slice(2));
|
|
2902
|
+
if (s === "number") {
|
|
2903
|
+
var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
|
|
2902
2904
|
return b.err ? b : {
|
|
2903
|
-
val: { type: G.number, value: r, location:
|
|
2905
|
+
val: { type: G.number, value: r, location: A, style: b.val },
|
|
2904
2906
|
err: null
|
|
2905
2907
|
};
|
|
2906
2908
|
} else {
|
|
2907
|
-
if (
|
|
2908
|
-
return this.error(
|
|
2909
|
-
var W =
|
|
2910
|
-
this.locale && (W =
|
|
2909
|
+
if (I.length === 0)
|
|
2910
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
|
|
2911
|
+
var W = I;
|
|
2912
|
+
this.locale && (W = $i(I, this.locale));
|
|
2911
2913
|
var m = {
|
|
2912
|
-
type:
|
|
2914
|
+
type: Ve.dateTime,
|
|
2913
2915
|
pattern: W,
|
|
2914
|
-
location:
|
|
2915
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2916
|
-
}, V =
|
|
2916
|
+
location: u.styleLocation,
|
|
2917
|
+
parsedOptions: this.shouldParseSkeletons ? Ii(W) : {}
|
|
2918
|
+
}, V = s === "date" ? G.date : G.time;
|
|
2917
2919
|
return {
|
|
2918
|
-
val: { type: V, value: r, location:
|
|
2920
|
+
val: { type: V, value: r, location: A, style: m },
|
|
2919
2921
|
err: null
|
|
2920
2922
|
};
|
|
2921
2923
|
}
|
|
2922
2924
|
}
|
|
2923
2925
|
return {
|
|
2924
2926
|
val: {
|
|
2925
|
-
type:
|
|
2927
|
+
type: s === "number" ? G.number : s === "date" ? G.date : G.time,
|
|
2926
2928
|
value: r,
|
|
2927
|
-
location:
|
|
2928
|
-
style: (o =
|
|
2929
|
+
location: A,
|
|
2930
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2929
2931
|
},
|
|
2930
2932
|
err: null
|
|
2931
2933
|
};
|
|
@@ -2933,52 +2935,52 @@ var ao = (
|
|
|
2933
2935
|
case "plural":
|
|
2934
2936
|
case "selectordinal":
|
|
2935
2937
|
case "select": {
|
|
2936
|
-
var
|
|
2938
|
+
var R = this.clonePosition();
|
|
2937
2939
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2938
|
-
return this.error(
|
|
2940
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
|
|
2939
2941
|
this.bumpSpace();
|
|
2940
|
-
var
|
|
2941
|
-
if (
|
|
2942
|
+
var D = this.parseIdentifierIfPossible(), k = 0;
|
|
2943
|
+
if (s !== "select" && D.value === "offset") {
|
|
2942
2944
|
if (!this.bumpIf(":"))
|
|
2943
|
-
return this.error(
|
|
2945
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2944
2946
|
this.bumpSpace();
|
|
2945
|
-
var b = this.tryParseDecimalInteger(
|
|
2947
|
+
var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2946
2948
|
if (b.err)
|
|
2947
2949
|
return b;
|
|
2948
|
-
this.bumpSpace(),
|
|
2950
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
|
|
2949
2951
|
}
|
|
2950
|
-
var
|
|
2951
|
-
if (
|
|
2952
|
-
return
|
|
2953
|
-
var
|
|
2954
|
-
if (
|
|
2955
|
-
return
|
|
2956
|
-
var
|
|
2957
|
-
return
|
|
2952
|
+
var oe = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2953
|
+
if (oe.err)
|
|
2954
|
+
return oe;
|
|
2955
|
+
var E = this.tryParseArgumentClose(i);
|
|
2956
|
+
if (E.err)
|
|
2957
|
+
return E;
|
|
2958
|
+
var Z = O(i, this.clonePosition());
|
|
2959
|
+
return s === "select" ? {
|
|
2958
2960
|
val: {
|
|
2959
2961
|
type: G.select,
|
|
2960
2962
|
value: r,
|
|
2961
|
-
options:
|
|
2962
|
-
location:
|
|
2963
|
+
options: Tn(oe.val),
|
|
2964
|
+
location: Z
|
|
2963
2965
|
},
|
|
2964
2966
|
err: null
|
|
2965
2967
|
} : {
|
|
2966
2968
|
val: {
|
|
2967
2969
|
type: G.plural,
|
|
2968
2970
|
value: r,
|
|
2969
|
-
options:
|
|
2970
|
-
offset:
|
|
2971
|
-
pluralType:
|
|
2972
|
-
location:
|
|
2971
|
+
options: Tn(oe.val),
|
|
2972
|
+
offset: k,
|
|
2973
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2974
|
+
location: Z
|
|
2973
2975
|
},
|
|
2974
2976
|
err: null
|
|
2975
2977
|
};
|
|
2976
2978
|
}
|
|
2977
2979
|
default:
|
|
2978
|
-
return this.error(
|
|
2980
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, O(a, l));
|
|
2979
2981
|
}
|
|
2980
2982
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2981
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2983
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2982
2984
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2983
2985
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2984
2986
|
var r = this.char();
|
|
@@ -2987,7 +2989,7 @@ var ao = (
|
|
|
2987
2989
|
this.bump();
|
|
2988
2990
|
var i = this.clonePosition();
|
|
2989
2991
|
if (!this.bumpUntil("'"))
|
|
2990
|
-
return this.error(
|
|
2992
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
|
|
2991
2993
|
this.bump();
|
|
2992
2994
|
break;
|
|
2993
2995
|
}
|
|
@@ -3017,64 +3019,64 @@ var ao = (
|
|
|
3017
3019
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3018
3020
|
var r = [];
|
|
3019
3021
|
try {
|
|
3020
|
-
r =
|
|
3022
|
+
r = Ui(t);
|
|
3021
3023
|
} catch (i) {
|
|
3022
|
-
return this.error(
|
|
3024
|
+
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
3023
3025
|
}
|
|
3024
3026
|
return {
|
|
3025
3027
|
val: {
|
|
3026
|
-
type:
|
|
3028
|
+
type: Ve.number,
|
|
3027
3029
|
tokens: r,
|
|
3028
3030
|
location: n,
|
|
3029
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3031
|
+
parsedOptions: this.shouldParseSkeletons ? ki(r) : {}
|
|
3030
3032
|
},
|
|
3031
3033
|
err: null
|
|
3032
3034
|
};
|
|
3033
3035
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3034
|
-
for (var o,
|
|
3035
|
-
if (
|
|
3036
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
3037
|
+
if (u.length === 0) {
|
|
3036
3038
|
var b = this.clonePosition();
|
|
3037
3039
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3038
|
-
var m = this.tryParseDecimalInteger(
|
|
3040
|
+
var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3039
3041
|
if (m.err)
|
|
3040
3042
|
return m;
|
|
3041
|
-
f =
|
|
3043
|
+
f = O(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
|
|
3042
3044
|
} else
|
|
3043
3045
|
break;
|
|
3044
3046
|
}
|
|
3045
|
-
if (
|
|
3046
|
-
return this.error(n === "select" ?
|
|
3047
|
-
|
|
3047
|
+
if (l.has(u))
|
|
3048
|
+
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3049
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3048
3050
|
var S = this.clonePosition();
|
|
3049
3051
|
if (!this.bumpIf("{"))
|
|
3050
|
-
return this.error(n === "select" ?
|
|
3051
|
-
var
|
|
3052
|
-
if (
|
|
3053
|
-
return
|
|
3054
|
-
var
|
|
3055
|
-
if (
|
|
3056
|
-
return
|
|
3057
|
-
|
|
3058
|
-
|
|
3052
|
+
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3053
|
+
var E = this.parseMessage(t + 1, n, r);
|
|
3054
|
+
if (E.err)
|
|
3055
|
+
return E;
|
|
3056
|
+
var A = this.tryParseArgumentClose(S);
|
|
3057
|
+
if (A.err)
|
|
3058
|
+
return A;
|
|
3059
|
+
s.push([
|
|
3060
|
+
u,
|
|
3059
3061
|
{
|
|
3060
|
-
value:
|
|
3061
|
-
location:
|
|
3062
|
+
value: E.val,
|
|
3063
|
+
location: O(S, this.clonePosition())
|
|
3062
3064
|
}
|
|
3063
|
-
]),
|
|
3065
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3064
3066
|
}
|
|
3065
|
-
return
|
|
3067
|
+
return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3066
3068
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3067
3069
|
var r = 1, i = this.clonePosition();
|
|
3068
3070
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3069
|
-
for (var o = !1,
|
|
3070
|
-
var
|
|
3071
|
-
if (
|
|
3072
|
-
o = !0,
|
|
3071
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3072
|
+
var s = this.char();
|
|
3073
|
+
if (s >= 48 && s <= 57)
|
|
3074
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3073
3075
|
else
|
|
3074
3076
|
break;
|
|
3075
3077
|
}
|
|
3076
|
-
var
|
|
3077
|
-
return o ? (
|
|
3078
|
+
var l = O(i, this.clonePosition());
|
|
3079
|
+
return o ? (a *= r, eo(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3078
3080
|
}, e.prototype.offset = function() {
|
|
3079
3081
|
return this.position.offset;
|
|
3080
3082
|
}, e.prototype.isEOF = function() {
|
|
@@ -3089,7 +3091,7 @@ var ao = (
|
|
|
3089
3091
|
var t = this.position.offset;
|
|
3090
3092
|
if (t >= this.message.length)
|
|
3091
3093
|
throw Error("out of bound");
|
|
3092
|
-
var n =
|
|
3094
|
+
var n = fr(this.message, t);
|
|
3093
3095
|
if (n === void 0)
|
|
3094
3096
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3095
3097
|
return n;
|
|
@@ -3108,7 +3110,7 @@ var ao = (
|
|
|
3108
3110
|
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);
|
|
3109
3111
|
}
|
|
3110
3112
|
}, e.prototype.bumpIf = function(t) {
|
|
3111
|
-
if (
|
|
3113
|
+
if (Sn(this.message, t, this.offset())) {
|
|
3112
3114
|
for (var n = 0; n < t.length; n++)
|
|
3113
3115
|
this.bump();
|
|
3114
3116
|
return !0;
|
|
@@ -3130,7 +3132,7 @@ var ao = (
|
|
|
3130
3132
|
break;
|
|
3131
3133
|
}
|
|
3132
3134
|
}, e.prototype.bumpSpace = function() {
|
|
3133
|
-
for (; !this.isEOF() &&
|
|
3135
|
+
for (; !this.isEOF() && pr(this.char()); )
|
|
3134
3136
|
this.bump();
|
|
3135
3137
|
}, e.prototype.peek = function() {
|
|
3136
3138
|
if (this.isEOF())
|
|
@@ -3140,47 +3142,47 @@ var ao = (
|
|
|
3140
3142
|
}, e;
|
|
3141
3143
|
}()
|
|
3142
3144
|
);
|
|
3143
|
-
function
|
|
3145
|
+
function nn(e) {
|
|
3144
3146
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3145
3147
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return
|
|
3148
|
+
function oo(e) {
|
|
3149
|
+
return nn(e) || e === 47;
|
|
3148
3150
|
}
|
|
3149
|
-
function
|
|
3151
|
+
function ao(e) {
|
|
3150
3152
|
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;
|
|
3151
3153
|
}
|
|
3152
|
-
function
|
|
3154
|
+
function pr(e) {
|
|
3153
3155
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3154
3156
|
}
|
|
3155
|
-
function
|
|
3157
|
+
function so(e) {
|
|
3156
3158
|
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;
|
|
3157
3159
|
}
|
|
3158
|
-
function
|
|
3160
|
+
function rn(e) {
|
|
3159
3161
|
e.forEach(function(t) {
|
|
3160
|
-
if (delete t.location,
|
|
3162
|
+
if (delete t.location, ir(t) || or(t))
|
|
3161
3163
|
for (var n in t.options)
|
|
3162
|
-
delete t.options[n].location,
|
|
3164
|
+
delete t.options[n].location, rn(t.options[n].value);
|
|
3163
3165
|
else
|
|
3164
|
-
|
|
3166
|
+
tr(t) && sr(t.style) || (nr(t) || rr(t)) && Jt(t.style) ? delete t.style.location : ar(t) && rn(t.children);
|
|
3165
3167
|
});
|
|
3166
3168
|
}
|
|
3167
|
-
function
|
|
3168
|
-
t === void 0 && (t = {}), t =
|
|
3169
|
-
var n = new
|
|
3169
|
+
function uo(e, t) {
|
|
3170
|
+
t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3171
|
+
var n = new io(e, t).parse();
|
|
3170
3172
|
if (n.err) {
|
|
3171
|
-
var r = SyntaxError(
|
|
3173
|
+
var r = SyntaxError(H[n.err.kind]);
|
|
3172
3174
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3173
3175
|
}
|
|
3174
|
-
return t != null && t.captureLocation ||
|
|
3176
|
+
return t != null && t.captureLocation || rn(n.val), n.val;
|
|
3175
3177
|
}
|
|
3176
|
-
var
|
|
3178
|
+
var Xe;
|
|
3177
3179
|
(function(e) {
|
|
3178
3180
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3179
|
-
})(
|
|
3181
|
+
})(Xe || (Xe = {}));
|
|
3180
3182
|
var Tt = (
|
|
3181
3183
|
/** @class */
|
|
3182
3184
|
function(e) {
|
|
3183
|
-
|
|
3185
|
+
Be(t, e);
|
|
3184
3186
|
function t(n, r, i) {
|
|
3185
3187
|
var o = e.call(this, n) || this;
|
|
3186
3188
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3189,153 +3191,153 @@ var Tt = (
|
|
|
3189
3191
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3190
3192
|
}, t;
|
|
3191
3193
|
}(Error)
|
|
3192
|
-
),
|
|
3194
|
+
), An = (
|
|
3193
3195
|
/** @class */
|
|
3194
3196
|
function(e) {
|
|
3195
|
-
|
|
3197
|
+
Be(t, e);
|
|
3196
3198
|
function t(n, r, i, o) {
|
|
3197
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3199
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
|
|
3198
3200
|
}
|
|
3199
3201
|
return t;
|
|
3200
3202
|
}(Tt)
|
|
3201
|
-
),
|
|
3203
|
+
), lo = (
|
|
3202
3204
|
/** @class */
|
|
3203
3205
|
function(e) {
|
|
3204
|
-
|
|
3206
|
+
Be(t, e);
|
|
3205
3207
|
function t(n, r, i) {
|
|
3206
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3208
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Xe.INVALID_VALUE, i) || this;
|
|
3207
3209
|
}
|
|
3208
3210
|
return t;
|
|
3209
3211
|
}(Tt)
|
|
3210
|
-
),
|
|
3212
|
+
), co = (
|
|
3211
3213
|
/** @class */
|
|
3212
3214
|
function(e) {
|
|
3213
|
-
|
|
3215
|
+
Be(t, e);
|
|
3214
3216
|
function t(n, r) {
|
|
3215
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3217
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Xe.MISSING_VALUE, r) || this;
|
|
3216
3218
|
}
|
|
3217
3219
|
return t;
|
|
3218
3220
|
}(Tt)
|
|
3219
|
-
),
|
|
3221
|
+
), ie;
|
|
3220
3222
|
(function(e) {
|
|
3221
3223
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3222
|
-
})(
|
|
3223
|
-
function
|
|
3224
|
+
})(ie || (ie = {}));
|
|
3225
|
+
function ho(e) {
|
|
3224
3226
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3225
3227
|
var r = t[t.length - 1];
|
|
3226
|
-
return !r || r.type !==
|
|
3228
|
+
return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
|
|
3227
3229
|
}, []);
|
|
3228
3230
|
}
|
|
3229
|
-
function
|
|
3231
|
+
function fo(e) {
|
|
3230
3232
|
return typeof e == "function";
|
|
3231
3233
|
}
|
|
3232
|
-
function gt(e, t, n, r, i, o,
|
|
3233
|
-
if (e.length === 1 &&
|
|
3234
|
+
function gt(e, t, n, r, i, o, a) {
|
|
3235
|
+
if (e.length === 1 && En(e[0]))
|
|
3234
3236
|
return [
|
|
3235
3237
|
{
|
|
3236
|
-
type:
|
|
3238
|
+
type: ie.literal,
|
|
3237
3239
|
value: e[0].value
|
|
3238
3240
|
}
|
|
3239
3241
|
];
|
|
3240
|
-
for (var
|
|
3241
|
-
var f = l
|
|
3242
|
-
if (
|
|
3243
|
-
|
|
3244
|
-
type:
|
|
3242
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3243
|
+
var f = u[l];
|
|
3244
|
+
if (En(f)) {
|
|
3245
|
+
s.push({
|
|
3246
|
+
type: ie.literal,
|
|
3245
3247
|
value: f.value
|
|
3246
3248
|
});
|
|
3247
3249
|
continue;
|
|
3248
3250
|
}
|
|
3249
|
-
if (
|
|
3250
|
-
typeof o == "number" &&
|
|
3251
|
-
type:
|
|
3251
|
+
if (Pi(f)) {
|
|
3252
|
+
typeof o == "number" && s.push({
|
|
3253
|
+
type: ie.literal,
|
|
3252
3254
|
value: n.getNumberFormat(t).format(o)
|
|
3253
3255
|
});
|
|
3254
3256
|
continue;
|
|
3255
3257
|
}
|
|
3256
3258
|
var b = f.value;
|
|
3257
3259
|
if (!(i && b in i))
|
|
3258
|
-
throw new
|
|
3260
|
+
throw new co(b, a);
|
|
3259
3261
|
var m = i[b];
|
|
3260
|
-
if (
|
|
3261
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3262
|
-
type: typeof m == "string" ?
|
|
3262
|
+
if (Li(f)) {
|
|
3263
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3264
|
+
type: typeof m == "string" ? ie.literal : ie.object,
|
|
3263
3265
|
value: m
|
|
3264
3266
|
});
|
|
3265
3267
|
continue;
|
|
3266
3268
|
}
|
|
3267
|
-
if (
|
|
3268
|
-
var S = typeof f.style == "string" ? r.date[f.style] :
|
|
3269
|
-
|
|
3270
|
-
type:
|
|
3269
|
+
if (nr(f)) {
|
|
3270
|
+
var S = typeof f.style == "string" ? r.date[f.style] : Jt(f.style) ? f.style.parsedOptions : void 0;
|
|
3271
|
+
s.push({
|
|
3272
|
+
type: ie.literal,
|
|
3271
3273
|
value: n.getDateTimeFormat(t, S).format(m)
|
|
3272
3274
|
});
|
|
3273
3275
|
continue;
|
|
3274
3276
|
}
|
|
3275
|
-
if (
|
|
3276
|
-
var S = typeof f.style == "string" ? r.time[f.style] :
|
|
3277
|
-
|
|
3278
|
-
type:
|
|
3277
|
+
if (rr(f)) {
|
|
3278
|
+
var S = typeof f.style == "string" ? r.time[f.style] : Jt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3279
|
+
s.push({
|
|
3280
|
+
type: ie.literal,
|
|
3279
3281
|
value: n.getDateTimeFormat(t, S).format(m)
|
|
3280
3282
|
});
|
|
3281
3283
|
continue;
|
|
3282
3284
|
}
|
|
3283
|
-
if (
|
|
3284
|
-
var S = typeof f.style == "string" ? r.number[f.style] :
|
|
3285
|
-
S && S.scale && (m = m * (S.scale || 1)),
|
|
3286
|
-
type:
|
|
3285
|
+
if (tr(f)) {
|
|
3286
|
+
var S = typeof f.style == "string" ? r.number[f.style] : sr(f.style) ? f.style.parsedOptions : void 0;
|
|
3287
|
+
S && S.scale && (m = m * (S.scale || 1)), s.push({
|
|
3288
|
+
type: ie.literal,
|
|
3287
3289
|
value: n.getNumberFormat(t, S).format(m)
|
|
3288
3290
|
});
|
|
3289
3291
|
continue;
|
|
3290
3292
|
}
|
|
3291
|
-
if (
|
|
3292
|
-
var
|
|
3293
|
-
if (!
|
|
3294
|
-
throw new
|
|
3295
|
-
var W = gt(
|
|
3296
|
-
return
|
|
3293
|
+
if (ar(f)) {
|
|
3294
|
+
var E = f.children, A = f.value, I = i[A];
|
|
3295
|
+
if (!fo(I))
|
|
3296
|
+
throw new lo(A, "function", a);
|
|
3297
|
+
var W = gt(E, t, n, r, i, o), V = I(W.map(function(k) {
|
|
3298
|
+
return k.value;
|
|
3297
3299
|
}));
|
|
3298
|
-
Array.isArray(V) || (V = [V]),
|
|
3300
|
+
Array.isArray(V) || (V = [V]), s.push.apply(s, V.map(function(k) {
|
|
3299
3301
|
return {
|
|
3300
|
-
type: typeof
|
|
3301
|
-
value:
|
|
3302
|
+
type: typeof k == "string" ? ie.literal : ie.object,
|
|
3303
|
+
value: k
|
|
3302
3304
|
};
|
|
3303
3305
|
}));
|
|
3304
3306
|
}
|
|
3305
|
-
if (
|
|
3306
|
-
var
|
|
3307
|
-
if (!
|
|
3308
|
-
throw new
|
|
3309
|
-
|
|
3307
|
+
if (ir(f)) {
|
|
3308
|
+
var R = f.options[m] || f.options.other;
|
|
3309
|
+
if (!R)
|
|
3310
|
+
throw new An(f.value, m, Object.keys(f.options), a);
|
|
3311
|
+
s.push.apply(s, gt(R.value, t, n, r, i));
|
|
3310
3312
|
continue;
|
|
3311
3313
|
}
|
|
3312
|
-
if (
|
|
3313
|
-
var
|
|
3314
|
-
if (!
|
|
3314
|
+
if (or(f)) {
|
|
3315
|
+
var R = f.options["=".concat(m)];
|
|
3316
|
+
if (!R) {
|
|
3315
3317
|
if (!Intl.PluralRules)
|
|
3316
3318
|
throw new Tt(`Intl.PluralRules is not available in this environment.
|
|
3317
3319
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3318
|
-
`,
|
|
3319
|
-
var
|
|
3320
|
-
|
|
3320
|
+
`, Xe.MISSING_INTL_API, a);
|
|
3321
|
+
var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
|
|
3322
|
+
R = f.options[D] || f.options.other;
|
|
3321
3323
|
}
|
|
3322
|
-
if (!
|
|
3323
|
-
throw new
|
|
3324
|
-
|
|
3324
|
+
if (!R)
|
|
3325
|
+
throw new An(f.value, m, Object.keys(f.options), a);
|
|
3326
|
+
s.push.apply(s, gt(R.value, t, n, r, i, m - (f.offset || 0)));
|
|
3325
3327
|
continue;
|
|
3326
3328
|
}
|
|
3327
3329
|
}
|
|
3328
|
-
return
|
|
3330
|
+
return ho(s);
|
|
3329
3331
|
}
|
|
3330
|
-
function
|
|
3331
|
-
return t ?
|
|
3332
|
-
return n[r] =
|
|
3332
|
+
function po(e, t) {
|
|
3333
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3334
|
+
return n[r] = L(L({}, e[r]), t[r] || {}), n;
|
|
3333
3335
|
}, {})) : e;
|
|
3334
3336
|
}
|
|
3335
|
-
function
|
|
3337
|
+
function mo(e, t) {
|
|
3336
3338
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3337
|
-
return n[r] =
|
|
3338
|
-
},
|
|
3339
|
+
return n[r] = po(e[r], t[r]), n;
|
|
3340
|
+
}, L({}, e)) : e;
|
|
3339
3341
|
}
|
|
3340
3342
|
function $t(e) {
|
|
3341
3343
|
return {
|
|
@@ -3351,7 +3353,7 @@ function $t(e) {
|
|
|
3351
3353
|
}
|
|
3352
3354
|
};
|
|
3353
3355
|
}
|
|
3354
|
-
function
|
|
3356
|
+
function bo(e) {
|
|
3355
3357
|
return e === void 0 && (e = {
|
|
3356
3358
|
number: {},
|
|
3357
3359
|
dateTime: {},
|
|
@@ -3360,7 +3362,7 @@ function yo(e) {
|
|
|
3360
3362
|
getNumberFormat: Gt(function() {
|
|
3361
3363
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3362
3364
|
n[r] = arguments[r];
|
|
3363
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3365
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ke([void 0], n, !1)))();
|
|
3364
3366
|
}, {
|
|
3365
3367
|
cache: $t(e.number),
|
|
3366
3368
|
strategy: jt.variadic
|
|
@@ -3368,7 +3370,7 @@ function yo(e) {
|
|
|
3368
3370
|
getDateTimeFormat: Gt(function() {
|
|
3369
3371
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3370
3372
|
n[r] = arguments[r];
|
|
3371
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3373
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ke([void 0], n, !1)))();
|
|
3372
3374
|
}, {
|
|
3373
3375
|
cache: $t(e.dateTime),
|
|
3374
3376
|
strategy: jt.variadic
|
|
@@ -3376,14 +3378,14 @@ function yo(e) {
|
|
|
3376
3378
|
getPluralRules: Gt(function() {
|
|
3377
3379
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3378
3380
|
n[r] = arguments[r];
|
|
3379
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3381
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ke([void 0], n, !1)))();
|
|
3380
3382
|
}, {
|
|
3381
3383
|
cache: $t(e.pluralRules),
|
|
3382
3384
|
strategy: jt.variadic
|
|
3383
3385
|
})
|
|
3384
3386
|
};
|
|
3385
3387
|
}
|
|
3386
|
-
var
|
|
3388
|
+
var go = (
|
|
3387
3389
|
/** @class */
|
|
3388
3390
|
function() {
|
|
3389
3391
|
function e(t, n, r, i) {
|
|
@@ -3393,35 +3395,35 @@ var vo = (
|
|
|
3393
3395
|
number: {},
|
|
3394
3396
|
dateTime: {},
|
|
3395
3397
|
pluralRules: {}
|
|
3396
|
-
}, this.format = function(
|
|
3397
|
-
var
|
|
3398
|
-
if (
|
|
3399
|
-
return
|
|
3400
|
-
var f =
|
|
3401
|
-
return !b.length || m.type !==
|
|
3398
|
+
}, this.format = function(l) {
|
|
3399
|
+
var u = o.formatToParts(l);
|
|
3400
|
+
if (u.length === 1)
|
|
3401
|
+
return u[0].value;
|
|
3402
|
+
var f = u.reduce(function(b, m) {
|
|
3403
|
+
return !b.length || m.type !== ie.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
|
|
3402
3404
|
}, []);
|
|
3403
3405
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3404
|
-
}, this.formatToParts = function(
|
|
3405
|
-
return gt(o.ast, o.locales, o.formatters, o.formats,
|
|
3406
|
+
}, this.formatToParts = function(l) {
|
|
3407
|
+
return gt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3406
3408
|
}, this.resolvedOptions = function() {
|
|
3407
|
-
var
|
|
3409
|
+
var l;
|
|
3408
3410
|
return {
|
|
3409
|
-
locale: ((
|
|
3411
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3410
3412
|
};
|
|
3411
3413
|
}, this.getAst = function() {
|
|
3412
3414
|
return o.ast;
|
|
3413
3415
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3414
3416
|
if (this.message = t, !e.__parse)
|
|
3415
3417
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3416
|
-
var
|
|
3417
|
-
|
|
3418
|
-
var
|
|
3419
|
-
this.ast = e.__parse(t,
|
|
3418
|
+
var a = i || {};
|
|
3419
|
+
a.formatters;
|
|
3420
|
+
var s = Ti(a, ["formatters"]);
|
|
3421
|
+
this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
|
|
3420
3422
|
} else
|
|
3421
3423
|
this.ast = t;
|
|
3422
3424
|
if (!Array.isArray(this.ast))
|
|
3423
3425
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3424
|
-
this.formats =
|
|
3426
|
+
this.formats = mo(e.formats, r), this.formatters = i && i.formatters || bo(this.formatterCache);
|
|
3425
3427
|
}
|
|
3426
3428
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3427
3429
|
get: function() {
|
|
@@ -3434,7 +3436,7 @@ var vo = (
|
|
|
3434
3436
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3435
3437
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3436
3438
|
}
|
|
3437
|
-
}, e.__parse =
|
|
3439
|
+
}, e.__parse = uo, e.formats = {
|
|
3438
3440
|
number: {
|
|
3439
3441
|
integer: {
|
|
3440
3442
|
maximumFractionDigits: 0
|
|
@@ -3495,7 +3497,7 @@ var vo = (
|
|
|
3495
3497
|
}, e;
|
|
3496
3498
|
}()
|
|
3497
3499
|
);
|
|
3498
|
-
function
|
|
3500
|
+
function yo(e, t) {
|
|
3499
3501
|
if (t == null)
|
|
3500
3502
|
return;
|
|
3501
3503
|
if (t in e)
|
|
@@ -3516,92 +3518,92 @@ function Eo(e, t) {
|
|
|
3516
3518
|
r = void 0;
|
|
3517
3519
|
return r;
|
|
3518
3520
|
}
|
|
3519
|
-
const
|
|
3521
|
+
const He = {}, vo = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), mr = (e, t) => {
|
|
3520
3522
|
if (t == null)
|
|
3521
3523
|
return;
|
|
3522
|
-
if (t in
|
|
3523
|
-
return
|
|
3524
|
+
if (t in He && e in He[t])
|
|
3525
|
+
return He[t][e];
|
|
3524
3526
|
const n = Bt(t);
|
|
3525
3527
|
for (let r = 0; r < n.length; r++) {
|
|
3526
|
-
const i = n[r], o =
|
|
3528
|
+
const i = n[r], o = _o(i, e);
|
|
3527
3529
|
if (o)
|
|
3528
|
-
return
|
|
3530
|
+
return vo(e, t, o);
|
|
3529
3531
|
}
|
|
3530
3532
|
};
|
|
3531
|
-
let
|
|
3533
|
+
let fn;
|
|
3532
3534
|
const st = St({});
|
|
3533
|
-
function
|
|
3534
|
-
return
|
|
3535
|
+
function Eo(e) {
|
|
3536
|
+
return fn[e] || null;
|
|
3535
3537
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e in
|
|
3538
|
+
function br(e) {
|
|
3539
|
+
return e in fn;
|
|
3538
3540
|
}
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3541
|
+
function _o(e, t) {
|
|
3542
|
+
if (!br(e))
|
|
3541
3543
|
return null;
|
|
3542
|
-
const n =
|
|
3543
|
-
return
|
|
3544
|
+
const n = Eo(e);
|
|
3545
|
+
return yo(n, t);
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3547
|
+
function xo(e) {
|
|
3546
3548
|
if (e == null)
|
|
3547
3549
|
return;
|
|
3548
3550
|
const t = Bt(e);
|
|
3549
3551
|
for (let n = 0; n < t.length; n++) {
|
|
3550
3552
|
const r = t[n];
|
|
3551
|
-
if (
|
|
3553
|
+
if (br(r))
|
|
3552
3554
|
return r;
|
|
3553
3555
|
}
|
|
3554
3556
|
}
|
|
3555
|
-
function
|
|
3556
|
-
delete
|
|
3557
|
+
function gr(e, ...t) {
|
|
3558
|
+
delete He[e], st.update((n) => (n[e] = Si.all([n[e] || {}, ...t]), n));
|
|
3557
3559
|
}
|
|
3558
|
-
|
|
3560
|
+
Ze(
|
|
3559
3561
|
[st],
|
|
3560
3562
|
([e]) => Object.keys(e)
|
|
3561
3563
|
);
|
|
3562
|
-
st.subscribe((e) =>
|
|
3564
|
+
st.subscribe((e) => fn = e);
|
|
3563
3565
|
const yt = {};
|
|
3564
|
-
function
|
|
3566
|
+
function wo(e, t) {
|
|
3565
3567
|
yt[e].delete(t), yt[e].size === 0 && delete yt[e];
|
|
3566
3568
|
}
|
|
3567
|
-
function
|
|
3569
|
+
function yr(e) {
|
|
3568
3570
|
return yt[e];
|
|
3569
3571
|
}
|
|
3570
|
-
function
|
|
3572
|
+
function So(e) {
|
|
3571
3573
|
return Bt(e).map((t) => {
|
|
3572
|
-
const n =
|
|
3574
|
+
const n = yr(t);
|
|
3573
3575
|
return [t, n ? [...n] : []];
|
|
3574
3576
|
}).filter(([, t]) => t.length > 0);
|
|
3575
3577
|
}
|
|
3576
|
-
function
|
|
3578
|
+
function on(e) {
|
|
3577
3579
|
return e == null ? !1 : Bt(e).some(
|
|
3578
3580
|
(t) => {
|
|
3579
3581
|
var n;
|
|
3580
|
-
return (n =
|
|
3582
|
+
return (n = yr(t)) == null ? void 0 : n.size;
|
|
3581
3583
|
}
|
|
3582
3584
|
);
|
|
3583
3585
|
}
|
|
3584
|
-
function
|
|
3586
|
+
function To(e, t) {
|
|
3585
3587
|
return Promise.all(
|
|
3586
|
-
t.map((r) => (
|
|
3587
|
-
).then((r) =>
|
|
3588
|
+
t.map((r) => (wo(e, r), r().then((i) => i.default || i)))
|
|
3589
|
+
).then((r) => gr(e, ...r));
|
|
3588
3590
|
}
|
|
3589
3591
|
const nt = {};
|
|
3590
|
-
function
|
|
3591
|
-
if (!
|
|
3592
|
+
function vr(e) {
|
|
3593
|
+
if (!on(e))
|
|
3592
3594
|
return e in nt ? nt[e] : Promise.resolve();
|
|
3593
|
-
const t =
|
|
3595
|
+
const t = So(e);
|
|
3594
3596
|
return nt[e] = Promise.all(
|
|
3595
3597
|
t.map(
|
|
3596
|
-
([n, r]) =>
|
|
3598
|
+
([n, r]) => To(n, r)
|
|
3597
3599
|
)
|
|
3598
3600
|
).then(() => {
|
|
3599
|
-
if (
|
|
3600
|
-
return
|
|
3601
|
+
if (on(e))
|
|
3602
|
+
return vr(e);
|
|
3601
3603
|
delete nt[e];
|
|
3602
3604
|
}), nt[e];
|
|
3603
3605
|
}
|
|
3604
|
-
const
|
|
3606
|
+
const Bo = {
|
|
3605
3607
|
number: {
|
|
3606
3608
|
scientific: { notation: "scientific" },
|
|
3607
3609
|
engineering: { notation: "engineering" },
|
|
@@ -3630,57 +3632,57 @@ const Co = {
|
|
|
3630
3632
|
timeZoneName: "short"
|
|
3631
3633
|
}
|
|
3632
3634
|
}
|
|
3633
|
-
},
|
|
3635
|
+
}, Ao = {
|
|
3634
3636
|
fallbackLocale: null,
|
|
3635
3637
|
loadingDelay: 200,
|
|
3636
|
-
formats:
|
|
3638
|
+
formats: Bo,
|
|
3637
3639
|
warnOnMissingMessages: !0,
|
|
3638
3640
|
handleMissingMessage: void 0,
|
|
3639
3641
|
ignoreTag: !0
|
|
3640
|
-
},
|
|
3641
|
-
function
|
|
3642
|
-
return
|
|
3642
|
+
}, Co = Ao;
|
|
3643
|
+
function ze() {
|
|
3644
|
+
return Co;
|
|
3643
3645
|
}
|
|
3644
3646
|
const Vt = St(!1);
|
|
3645
|
-
var
|
|
3646
|
-
for (var n in t
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
for (var n of
|
|
3650
|
-
|
|
3647
|
+
var Ho = Object.defineProperty, Oo = Object.defineProperties, Mo = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, Hn = (e, t, n) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Po = (e, t) => {
|
|
3648
|
+
for (var n in t)
|
|
3649
|
+
Ro.call(t, n) && Hn(e, n, t[n]);
|
|
3650
|
+
if (Cn)
|
|
3651
|
+
for (var n of Cn(t))
|
|
3652
|
+
Lo.call(t, n) && Hn(e, n, t[n]);
|
|
3651
3653
|
return e;
|
|
3652
|
-
},
|
|
3653
|
-
let
|
|
3654
|
+
}, No = (e, t) => Oo(e, Mo(t));
|
|
3655
|
+
let an;
|
|
3654
3656
|
const xt = St(null);
|
|
3655
|
-
function
|
|
3657
|
+
function On(e) {
|
|
3656
3658
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3657
3659
|
}
|
|
3658
|
-
function Bt(e, t =
|
|
3659
|
-
const n =
|
|
3660
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3660
|
+
function Bt(e, t = ze().fallbackLocale) {
|
|
3661
|
+
const n = On(e);
|
|
3662
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...On(t)])] : n;
|
|
3661
3663
|
}
|
|
3662
3664
|
function Le() {
|
|
3663
|
-
return
|
|
3665
|
+
return an != null ? an : void 0;
|
|
3664
3666
|
}
|
|
3665
3667
|
xt.subscribe((e) => {
|
|
3666
|
-
|
|
3668
|
+
an = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3667
3669
|
});
|
|
3668
|
-
const
|
|
3669
|
-
if (e &&
|
|
3670
|
-
const { loadingDelay: t } =
|
|
3670
|
+
const Io = (e) => {
|
|
3671
|
+
if (e && xo(e) && on(e)) {
|
|
3672
|
+
const { loadingDelay: t } = ze();
|
|
3671
3673
|
let n;
|
|
3672
3674
|
return typeof window != "undefined" && Le() != null && t ? n = window.setTimeout(
|
|
3673
3675
|
() => Vt.set(!0),
|
|
3674
3676
|
t
|
|
3675
|
-
) : Vt.set(!0),
|
|
3677
|
+
) : Vt.set(!0), vr(e).then(() => {
|
|
3676
3678
|
xt.set(e);
|
|
3677
3679
|
}).finally(() => {
|
|
3678
3680
|
clearTimeout(n), Vt.set(!1);
|
|
3679
3681
|
});
|
|
3680
3682
|
}
|
|
3681
3683
|
return xt.set(e);
|
|
3682
|
-
},
|
|
3683
|
-
set:
|
|
3684
|
+
}, qe = No(Po({}, xt), {
|
|
3685
|
+
set: Io
|
|
3684
3686
|
}), At = (e) => {
|
|
3685
3687
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3686
3688
|
return (r) => {
|
|
@@ -3688,101 +3690,101 @@ const Uo = (e) => {
|
|
|
3688
3690
|
return i in t ? t[i] : t[i] = e(r);
|
|
3689
3691
|
};
|
|
3690
3692
|
};
|
|
3691
|
-
var
|
|
3693
|
+
var Do = Object.defineProperty, wt = Object.getOwnPropertySymbols, Er = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, dn = (e, t) => {
|
|
3692
3694
|
for (var n in t || (t = {}))
|
|
3693
|
-
|
|
3695
|
+
Er.call(t, n) && Mn(e, n, t[n]);
|
|
3694
3696
|
if (wt)
|
|
3695
3697
|
for (var n of wt(t))
|
|
3696
|
-
|
|
3698
|
+
_r.call(t, n) && Mn(e, n, t[n]);
|
|
3697
3699
|
return e;
|
|
3698
|
-
},
|
|
3700
|
+
}, Ye = (e, t) => {
|
|
3699
3701
|
var n = {};
|
|
3700
3702
|
for (var r in e)
|
|
3701
|
-
|
|
3703
|
+
Er.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3702
3704
|
if (e != null && wt)
|
|
3703
3705
|
for (var r of wt(e))
|
|
3704
|
-
t.indexOf(r) < 0 &&
|
|
3706
|
+
t.indexOf(r) < 0 && _r.call(e, r) && (n[r] = e[r]);
|
|
3705
3707
|
return n;
|
|
3706
3708
|
};
|
|
3707
3709
|
const at = (e, t) => {
|
|
3708
|
-
const { formats: n } =
|
|
3710
|
+
const { formats: n } = ze();
|
|
3709
3711
|
if (e in n && t in n[e])
|
|
3710
3712
|
return n[e][t];
|
|
3711
3713
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3712
|
-
},
|
|
3714
|
+
}, Uo = At(
|
|
3713
3715
|
(e) => {
|
|
3714
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3716
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3715
3717
|
if (n == null)
|
|
3716
3718
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3717
3719
|
return r && (i = at("number", r)), new Intl.NumberFormat(n, i);
|
|
3718
3720
|
}
|
|
3719
|
-
),
|
|
3721
|
+
), Fo = At(
|
|
3720
3722
|
(e) => {
|
|
3721
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3723
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3722
3724
|
if (n == null)
|
|
3723
3725
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3724
3726
|
return r ? i = at("date", r) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3725
3727
|
}
|
|
3726
|
-
),
|
|
3728
|
+
), Go = At(
|
|
3727
3729
|
(e) => {
|
|
3728
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3730
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3729
3731
|
if (n == null)
|
|
3730
3732
|
throw new Error(
|
|
3731
3733
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3732
3734
|
);
|
|
3733
3735
|
return r ? i = at("time", r) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3734
3736
|
}
|
|
3735
|
-
),
|
|
3737
|
+
), jo = (e = {}) => {
|
|
3736
3738
|
var t = e, {
|
|
3737
3739
|
locale: n = Le()
|
|
3738
|
-
} = t, r =
|
|
3740
|
+
} = t, r = Ye(t, [
|
|
3739
3741
|
"locale"
|
|
3740
3742
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3743
|
+
return Uo(dn({ locale: n }, r));
|
|
3744
|
+
}, ko = (e = {}) => {
|
|
3743
3745
|
var t = e, {
|
|
3744
3746
|
locale: n = Le()
|
|
3745
|
-
} = t, r =
|
|
3747
|
+
} = t, r = Ye(t, [
|
|
3746
3748
|
"locale"
|
|
3747
3749
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3750
|
+
return Fo(dn({ locale: n }, r));
|
|
3751
|
+
}, $o = (e = {}) => {
|
|
3750
3752
|
var t = e, {
|
|
3751
3753
|
locale: n = Le()
|
|
3752
|
-
} = t, r =
|
|
3754
|
+
} = t, r = Ye(t, [
|
|
3753
3755
|
"locale"
|
|
3754
3756
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3757
|
+
return Go(dn({ locale: n }, r));
|
|
3758
|
+
}, Vo = At(
|
|
3757
3759
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3758
|
-
(e, t = Le()) => new
|
|
3759
|
-
ignoreTag:
|
|
3760
|
+
(e, t = Le()) => new go(e, t, ze().formats, {
|
|
3761
|
+
ignoreTag: ze().ignoreTag
|
|
3760
3762
|
})
|
|
3761
|
-
),
|
|
3763
|
+
), Xo = (e, t = {}) => {
|
|
3762
3764
|
var n, r, i, o;
|
|
3763
|
-
let
|
|
3764
|
-
typeof e == "object" && (
|
|
3765
|
+
let a = t;
|
|
3766
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3765
3767
|
const {
|
|
3766
|
-
values:
|
|
3767
|
-
locale:
|
|
3768
|
-
default:
|
|
3769
|
-
} =
|
|
3770
|
-
if (
|
|
3768
|
+
values: s,
|
|
3769
|
+
locale: l = Le(),
|
|
3770
|
+
default: u
|
|
3771
|
+
} = a;
|
|
3772
|
+
if (l == null)
|
|
3771
3773
|
throw new Error(
|
|
3772
3774
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3773
3775
|
);
|
|
3774
|
-
let f =
|
|
3776
|
+
let f = mr(e, l);
|
|
3775
3777
|
if (!f)
|
|
3776
|
-
f = (o = (i = (r = (n =
|
|
3778
|
+
f = (o = (i = (r = (n = ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3777
3779
|
else if (typeof f != "string")
|
|
3778
3780
|
return console.warn(
|
|
3779
3781
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3780
3782
|
), f;
|
|
3781
|
-
if (!
|
|
3783
|
+
if (!s)
|
|
3782
3784
|
return f;
|
|
3783
3785
|
let b = f;
|
|
3784
3786
|
try {
|
|
3785
|
-
b =
|
|
3787
|
+
b = Vo(f, l).format(s);
|
|
3786
3788
|
} catch (m) {
|
|
3787
3789
|
m instanceof Error && console.warn(
|
|
3788
3790
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3790,18 +3792,18 @@ const at = (e, t) => {
|
|
|
3790
3792
|
);
|
|
3791
3793
|
}
|
|
3792
3794
|
return b;
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
function
|
|
3799
|
-
|
|
3800
|
-
}
|
|
3801
|
-
function
|
|
3802
|
-
|
|
3803
|
-
}
|
|
3804
|
-
const
|
|
3795
|
+
}, zo = (e, t) => $o(t).format(e), Wo = (e, t) => ko(t).format(e), Zo = (e, t) => jo(t).format(e), qo = (e, t = Le()) => mr(e, t), Yo = Ze([qe, st], () => Xo);
|
|
3796
|
+
Ze([qe], () => zo);
|
|
3797
|
+
Ze([qe], () => Wo);
|
|
3798
|
+
Ze([qe], () => Zo);
|
|
3799
|
+
Ze([qe, st], () => qo);
|
|
3800
|
+
function Rn(e, t) {
|
|
3801
|
+
gr(e, t);
|
|
3802
|
+
}
|
|
3803
|
+
function Qo(e) {
|
|
3804
|
+
qe.set(e);
|
|
3805
|
+
}
|
|
3806
|
+
const Ln = {
|
|
3805
3807
|
en: {
|
|
3806
3808
|
Title: "Your Balance",
|
|
3807
3809
|
Total: "Total Balance",
|
|
@@ -4001,7 +4003,7 @@ const In = {
|
|
|
4001
4003
|
Loading: "Loading ..."
|
|
4002
4004
|
}
|
|
4003
4005
|
};
|
|
4004
|
-
var
|
|
4006
|
+
var sn = { exports: {} };
|
|
4005
4007
|
/** @license
|
|
4006
4008
|
* eventsource.js
|
|
4007
4009
|
* Available under MIT License (MIT)
|
|
@@ -4009,35 +4011,35 @@ var ln = { exports: {} };
|
|
|
4009
4011
|
*/
|
|
4010
4012
|
(function(e, t) {
|
|
4011
4013
|
(function(n) {
|
|
4012
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest,
|
|
4013
|
-
if (typeof window != "undefined" && typeof
|
|
4014
|
-
|
|
4015
|
-
}, !1)), o == null &&
|
|
4016
|
-
return new
|
|
4014
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, S = n.TextDecoder, E = n.TextEncoder, A = n.AbortController;
|
|
4015
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
4016
|
+
u.readyState = "complete";
|
|
4017
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
4018
|
+
return new s("Microsoft.XMLHTTP");
|
|
4017
4019
|
}), Object.create == null && (Object.create = function(h) {
|
|
4018
4020
|
function y() {
|
|
4019
4021
|
}
|
|
4020
4022
|
return y.prototype = h, new y();
|
|
4021
4023
|
}), Date.now || (Date.now = function() {
|
|
4022
4024
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4023
|
-
}),
|
|
4024
|
-
var
|
|
4025
|
+
}), A == null) {
|
|
4026
|
+
var I = b;
|
|
4025
4027
|
b = function(h, y) {
|
|
4026
|
-
var
|
|
4027
|
-
return
|
|
4028
|
-
var
|
|
4029
|
-
return
|
|
4028
|
+
var _ = y.signal;
|
|
4029
|
+
return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
|
|
4030
|
+
var c = g.body.getReader();
|
|
4031
|
+
return _._reader = c, _._aborted && _._reader.cancel(), {
|
|
4030
4032
|
status: g.status,
|
|
4031
4033
|
statusText: g.statusText,
|
|
4032
4034
|
headers: g.headers,
|
|
4033
4035
|
body: {
|
|
4034
4036
|
getReader: function() {
|
|
4035
|
-
return
|
|
4037
|
+
return c;
|
|
4036
4038
|
}
|
|
4037
4039
|
}
|
|
4038
4040
|
};
|
|
4039
4041
|
});
|
|
4040
|
-
},
|
|
4042
|
+
}, A = function() {
|
|
4041
4043
|
this.signal = {
|
|
4042
4044
|
_reader: null,
|
|
4043
4045
|
_aborted: !1
|
|
@@ -4050,116 +4052,116 @@ var ln = { exports: {} };
|
|
|
4050
4052
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4051
4053
|
}
|
|
4052
4054
|
W.prototype.decode = function(h) {
|
|
4053
|
-
function y(
|
|
4054
|
-
if (
|
|
4055
|
-
return
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4058
|
-
if (
|
|
4059
|
-
return
|
|
4055
|
+
function y(C, v, B) {
|
|
4056
|
+
if (B === 1)
|
|
4057
|
+
return C >= 128 >> v && C << v <= 2047;
|
|
4058
|
+
if (B === 2)
|
|
4059
|
+
return C >= 2048 >> v && C << v <= 55295 || C >= 57344 >> v && C << v <= 65535;
|
|
4060
|
+
if (B === 3)
|
|
4061
|
+
return C >= 65536 >> v && C << v <= 1114111;
|
|
4060
4062
|
throw new Error();
|
|
4061
4063
|
}
|
|
4062
|
-
function
|
|
4063
|
-
if (
|
|
4064
|
-
return
|
|
4065
|
-
if (
|
|
4066
|
-
return
|
|
4067
|
-
if (
|
|
4064
|
+
function _(C, v) {
|
|
4065
|
+
if (C === 6 * 1)
|
|
4066
|
+
return v >> 6 > 15 ? 3 : v > 31 ? 2 : 1;
|
|
4067
|
+
if (C === 6 * 2)
|
|
4068
|
+
return v > 15 ? 3 : 2;
|
|
4069
|
+
if (C === 6 * 3)
|
|
4068
4070
|
return 3;
|
|
4069
4071
|
throw new Error();
|
|
4070
4072
|
}
|
|
4071
|
-
for (var g = 65533,
|
|
4072
|
-
var
|
|
4073
|
-
|
|
4073
|
+
for (var g = 65533, c = "", d = this.bitsNeeded, p = this.codePoint, x = 0; x < h.length; x += 1) {
|
|
4074
|
+
var T = h[x];
|
|
4075
|
+
d !== 0 && (T < 128 || T > 191 || !y(p << 6 | T & 63, d - 6, _(d, p))) && (d = 0, p = g, c += String.fromCharCode(p)), d === 0 ? (T >= 0 && T <= 127 ? (d = 0, p = T) : T >= 192 && T <= 223 ? (d = 6 * 1, p = T & 31) : T >= 224 && T <= 239 ? (d = 6 * 2, p = T & 15) : T >= 240 && T <= 247 ? (d = 6 * 3, p = T & 7) : (d = 0, p = g), d !== 0 && !y(p, d, _(d, p)) && (d = 0, p = g)) : (d -= 6, p = p << 6 | T & 63), d === 0 && (p <= 65535 ? c += String.fromCharCode(p) : (c += String.fromCharCode(55296 + (p - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (p - 65535 - 1 & 1023))));
|
|
4074
4076
|
}
|
|
4075
|
-
return this.bitsNeeded =
|
|
4077
|
+
return this.bitsNeeded = d, this.codePoint = p, c;
|
|
4076
4078
|
};
|
|
4077
4079
|
var V = function() {
|
|
4078
4080
|
try {
|
|
4079
|
-
return new S().decode(new
|
|
4081
|
+
return new S().decode(new E().encode("test"), { stream: !0 }) === "test";
|
|
4080
4082
|
} catch (h) {
|
|
4081
4083
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4082
4084
|
}
|
|
4083
4085
|
return !1;
|
|
4084
4086
|
};
|
|
4085
|
-
(S == null ||
|
|
4086
|
-
var
|
|
4087
|
+
(S == null || E == null || !V()) && (S = W);
|
|
4088
|
+
var R = function() {
|
|
4087
4089
|
};
|
|
4088
|
-
function
|
|
4089
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4090
|
+
function D(h) {
|
|
4091
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = R;
|
|
4090
4092
|
}
|
|
4091
|
-
|
|
4093
|
+
D.prototype.open = function(h, y) {
|
|
4092
4094
|
this._abort(!0);
|
|
4093
|
-
var
|
|
4094
|
-
this._abort = function(
|
|
4095
|
-
|
|
4095
|
+
var _ = this, g = this._xhr, c = 1, d = 0;
|
|
4096
|
+
this._abort = function(B) {
|
|
4097
|
+
_._sendTimeout !== 0 && (i(_._sendTimeout), _._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, g.onload = R, g.onerror = R, g.onabort = R, g.onprogress = R, g.onreadystatechange = R, g.abort(), d !== 0 && (i(d), d = 0), B || (_.readyState = 4, _.onabort(null), _.onreadystatechange())), c = 0;
|
|
4096
4098
|
};
|
|
4097
4099
|
var p = function() {
|
|
4098
|
-
if (
|
|
4099
|
-
var
|
|
4100
|
+
if (c === 1) {
|
|
4101
|
+
var B = 0, N = "", ee = void 0;
|
|
4100
4102
|
if ("contentType" in g)
|
|
4101
|
-
|
|
4103
|
+
B = 200, N = "OK", ee = g.contentType;
|
|
4102
4104
|
else
|
|
4103
4105
|
try {
|
|
4104
|
-
|
|
4105
|
-
} catch (
|
|
4106
|
-
|
|
4106
|
+
B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
|
|
4107
|
+
} catch (Ce) {
|
|
4108
|
+
B = 0, N = "", ee = void 0;
|
|
4107
4109
|
}
|
|
4108
|
-
|
|
4110
|
+
B !== 0 && (c = 2, _.readyState = 2, _.status = B, _.statusText = N, _._contentType = ee, _.onreadystatechange());
|
|
4109
4111
|
}
|
|
4110
|
-
},
|
|
4111
|
-
if (p(),
|
|
4112
|
-
|
|
4113
|
-
var
|
|
4112
|
+
}, x = function() {
|
|
4113
|
+
if (p(), c === 2 || c === 3) {
|
|
4114
|
+
c = 3;
|
|
4115
|
+
var B = "";
|
|
4114
4116
|
try {
|
|
4115
|
-
|
|
4116
|
-
} catch (
|
|
4117
|
+
B = g.responseText;
|
|
4118
|
+
} catch (N) {
|
|
4117
4119
|
}
|
|
4118
|
-
|
|
4120
|
+
_.readyState = 3, _.responseText = B, _.onprogress();
|
|
4119
4121
|
}
|
|
4120
|
-
},
|
|
4121
|
-
if ((
|
|
4122
|
-
preventDefault:
|
|
4123
|
-
}),
|
|
4124
|
-
if (
|
|
4125
|
-
|
|
4126
|
-
else if (
|
|
4127
|
-
|
|
4128
|
-
else if (
|
|
4129
|
-
|
|
4122
|
+
}, T = function(B, N) {
|
|
4123
|
+
if ((N == null || N.preventDefault == null) && (N = {
|
|
4124
|
+
preventDefault: R
|
|
4125
|
+
}), x(), c === 1 || c === 2 || c === 3) {
|
|
4126
|
+
if (c = 4, d !== 0 && (i(d), d = 0), _.readyState = 4, B === "load")
|
|
4127
|
+
_.onload(N);
|
|
4128
|
+
else if (B === "error")
|
|
4129
|
+
_.onerror(N);
|
|
4130
|
+
else if (B === "abort")
|
|
4131
|
+
_.onabort(N);
|
|
4130
4132
|
else
|
|
4131
4133
|
throw new TypeError();
|
|
4132
|
-
|
|
4134
|
+
_.onreadystatechange();
|
|
4133
4135
|
}
|
|
4134
|
-
},
|
|
4135
|
-
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) &&
|
|
4136
|
-
},
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
}, 500), g.readyState === 3 &&
|
|
4136
|
+
}, C = function(B) {
|
|
4137
|
+
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || x() : g.readyState === 2 && p());
|
|
4138
|
+
}, v = function() {
|
|
4139
|
+
d = r(function() {
|
|
4140
|
+
v();
|
|
4141
|
+
}, 500), g.readyState === 3 && x();
|
|
4140
4142
|
};
|
|
4141
|
-
"onload" in g && (g.onload = function(
|
|
4142
|
-
|
|
4143
|
-
}), "onerror" in g && (g.onerror = function(
|
|
4144
|
-
|
|
4145
|
-
}), "onabort" in g && (g.onabort = function(
|
|
4146
|
-
|
|
4147
|
-
}), "onprogress" in g && (g.onprogress =
|
|
4148
|
-
B
|
|
4149
|
-
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (
|
|
4150
|
-
|
|
4143
|
+
"onload" in g && (g.onload = function(B) {
|
|
4144
|
+
T("load", B);
|
|
4145
|
+
}), "onerror" in g && (g.onerror = function(B) {
|
|
4146
|
+
T("error", B);
|
|
4147
|
+
}), "onabort" in g && (g.onabort = function(B) {
|
|
4148
|
+
T("abort", B);
|
|
4149
|
+
}), "onprogress" in g && (g.onprogress = x), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
|
|
4150
|
+
C(B);
|
|
4151
|
+
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
|
|
4152
|
+
v();
|
|
4151
4153
|
}, 0));
|
|
4152
|
-
},
|
|
4154
|
+
}, D.prototype.abort = function() {
|
|
4153
4155
|
this._abort(!1);
|
|
4154
|
-
},
|
|
4156
|
+
}, D.prototype.getResponseHeader = function(h) {
|
|
4155
4157
|
return this._contentType;
|
|
4156
|
-
},
|
|
4157
|
-
var
|
|
4158
|
-
"setRequestHeader" in
|
|
4159
|
-
},
|
|
4158
|
+
}, D.prototype.setRequestHeader = function(h, y) {
|
|
4159
|
+
var _ = this._xhr;
|
|
4160
|
+
"setRequestHeader" in _ && _.setRequestHeader(h, y);
|
|
4161
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4160
4162
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4161
|
-
},
|
|
4162
|
-
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) &&
|
|
4163
|
+
}, D.prototype.send = function() {
|
|
4164
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4163
4165
|
var h = this;
|
|
4164
4166
|
h._sendTimeout = r(function() {
|
|
4165
4167
|
h._sendTimeout = 0, h.send();
|
|
@@ -4170,293 +4172,293 @@ var ln = { exports: {} };
|
|
|
4170
4172
|
"withCredentials" in y && (y.withCredentials = this.withCredentials);
|
|
4171
4173
|
try {
|
|
4172
4174
|
y.send(void 0);
|
|
4173
|
-
} catch (
|
|
4174
|
-
throw
|
|
4175
|
+
} catch (_) {
|
|
4176
|
+
throw _;
|
|
4175
4177
|
}
|
|
4176
4178
|
};
|
|
4177
|
-
function
|
|
4179
|
+
function k(h) {
|
|
4178
4180
|
return h.replace(/[A-Z]/g, function(y) {
|
|
4179
4181
|
return String.fromCharCode(y.charCodeAt(0) + 32);
|
|
4180
4182
|
});
|
|
4181
4183
|
}
|
|
4182
|
-
function
|
|
4183
|
-
for (var y = /* @__PURE__ */ Object.create(null),
|
|
4184
|
-
`), g = 0; g <
|
|
4185
|
-
var
|
|
4186
|
-
y[
|
|
4184
|
+
function oe(h) {
|
|
4185
|
+
for (var y = /* @__PURE__ */ Object.create(null), _ = h.split(`\r
|
|
4186
|
+
`), g = 0; g < _.length; g += 1) {
|
|
4187
|
+
var c = _[g], d = c.split(": "), p = d.shift(), x = d.join(": ");
|
|
4188
|
+
y[k(p)] = x;
|
|
4187
4189
|
}
|
|
4188
4190
|
this._map = y;
|
|
4189
4191
|
}
|
|
4190
|
-
|
|
4191
|
-
return this._map[
|
|
4192
|
+
oe.prototype.get = function(h) {
|
|
4193
|
+
return this._map[k(h)];
|
|
4192
4194
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4193
|
-
function
|
|
4195
|
+
function Z() {
|
|
4194
4196
|
}
|
|
4195
|
-
|
|
4196
|
-
h.open("GET",
|
|
4197
|
-
var
|
|
4197
|
+
Z.prototype.open = function(h, y, _, g, c, d, p) {
|
|
4198
|
+
h.open("GET", c);
|
|
4199
|
+
var x = 0;
|
|
4198
4200
|
h.onprogress = function() {
|
|
4199
|
-
var
|
|
4200
|
-
|
|
4201
|
-
}, h.onerror = function(
|
|
4202
|
-
|
|
4201
|
+
var C = h.responseText, v = C.slice(x);
|
|
4202
|
+
x += v.length, _(v);
|
|
4203
|
+
}, h.onerror = function(C) {
|
|
4204
|
+
C.preventDefault(), g(new Error("NetworkError"));
|
|
4203
4205
|
}, h.onload = function() {
|
|
4204
4206
|
g(null);
|
|
4205
4207
|
}, h.onabort = function() {
|
|
4206
4208
|
g(null);
|
|
4207
4209
|
}, h.onreadystatechange = function() {
|
|
4208
4210
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4209
|
-
var
|
|
4210
|
-
y(
|
|
4211
|
+
var C = h.status, v = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
|
|
4212
|
+
y(C, v, B, new oe(N));
|
|
4211
4213
|
}
|
|
4212
|
-
}, h.withCredentials =
|
|
4213
|
-
for (var
|
|
4214
|
-
Object.prototype.hasOwnProperty.call(p,
|
|
4214
|
+
}, h.withCredentials = d;
|
|
4215
|
+
for (var T in p)
|
|
4216
|
+
Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
|
|
4215
4217
|
return h.send(), h;
|
|
4216
4218
|
};
|
|
4217
|
-
function
|
|
4219
|
+
function $(h) {
|
|
4218
4220
|
this._headers = h;
|
|
4219
4221
|
}
|
|
4220
|
-
|
|
4222
|
+
$.prototype.get = function(h) {
|
|
4221
4223
|
return this._headers.get(h);
|
|
4222
4224
|
};
|
|
4223
|
-
function
|
|
4225
|
+
function U() {
|
|
4224
4226
|
}
|
|
4225
|
-
|
|
4226
|
-
var
|
|
4227
|
-
return b(
|
|
4227
|
+
U.prototype.open = function(h, y, _, g, c, d, p) {
|
|
4228
|
+
var x = null, T = new A(), C = T.signal, v = new S();
|
|
4229
|
+
return b(c, {
|
|
4228
4230
|
headers: p,
|
|
4229
|
-
credentials:
|
|
4230
|
-
signal:
|
|
4231
|
+
credentials: d ? "include" : "same-origin",
|
|
4232
|
+
signal: C,
|
|
4231
4233
|
cache: "no-store"
|
|
4232
|
-
}).then(function(
|
|
4233
|
-
return
|
|
4234
|
-
var
|
|
4235
|
-
|
|
4236
|
-
if (
|
|
4237
|
-
|
|
4234
|
+
}).then(function(B) {
|
|
4235
|
+
return x = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
|
|
4236
|
+
var Ce = function() {
|
|
4237
|
+
x.read().then(function(X) {
|
|
4238
|
+
if (X.done)
|
|
4239
|
+
N(void 0);
|
|
4238
4240
|
else {
|
|
4239
|
-
var
|
|
4240
|
-
|
|
4241
|
+
var te = v.decode(X.value, { stream: !0 });
|
|
4242
|
+
_(te), Ce();
|
|
4241
4243
|
}
|
|
4242
|
-
}).catch(function(
|
|
4243
|
-
|
|
4244
|
+
}).catch(function(X) {
|
|
4245
|
+
ee(X);
|
|
4244
4246
|
});
|
|
4245
4247
|
};
|
|
4246
|
-
|
|
4248
|
+
Ce();
|
|
4247
4249
|
});
|
|
4248
|
-
}).catch(function(
|
|
4249
|
-
if (
|
|
4250
|
-
return
|
|
4251
|
-
}).then(function(
|
|
4252
|
-
g(
|
|
4250
|
+
}).catch(function(B) {
|
|
4251
|
+
if (B.name !== "AbortError")
|
|
4252
|
+
return B;
|
|
4253
|
+
}).then(function(B) {
|
|
4254
|
+
g(B);
|
|
4253
4255
|
}), {
|
|
4254
4256
|
abort: function() {
|
|
4255
|
-
|
|
4257
|
+
x != null && x.cancel(), T.abort();
|
|
4256
4258
|
}
|
|
4257
4259
|
};
|
|
4258
4260
|
};
|
|
4259
|
-
function
|
|
4261
|
+
function q() {
|
|
4260
4262
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4261
4263
|
}
|
|
4262
|
-
function
|
|
4264
|
+
function F(h) {
|
|
4263
4265
|
r(function() {
|
|
4264
4266
|
throw h;
|
|
4265
4267
|
}, 0);
|
|
4266
4268
|
}
|
|
4267
|
-
|
|
4269
|
+
q.prototype.dispatchEvent = function(h) {
|
|
4268
4270
|
h.target = this;
|
|
4269
4271
|
var y = this._listeners[h.type];
|
|
4270
4272
|
if (y != null)
|
|
4271
|
-
for (var
|
|
4272
|
-
var
|
|
4273
|
+
for (var _ = y.length, g = 0; g < _; g += 1) {
|
|
4274
|
+
var c = y[g];
|
|
4273
4275
|
try {
|
|
4274
|
-
typeof
|
|
4275
|
-
} catch (
|
|
4276
|
-
|
|
4276
|
+
typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
|
|
4277
|
+
} catch (d) {
|
|
4278
|
+
F(d);
|
|
4277
4279
|
}
|
|
4278
4280
|
}
|
|
4279
|
-
},
|
|
4281
|
+
}, q.prototype.addEventListener = function(h, y) {
|
|
4280
4282
|
h = String(h);
|
|
4281
|
-
var
|
|
4282
|
-
g == null && (g = [],
|
|
4283
|
-
for (var
|
|
4284
|
-
g[
|
|
4285
|
-
|
|
4286
|
-
},
|
|
4283
|
+
var _ = this._listeners, g = _[h];
|
|
4284
|
+
g == null && (g = [], _[h] = g);
|
|
4285
|
+
for (var c = !1, d = 0; d < g.length; d += 1)
|
|
4286
|
+
g[d] === y && (c = !0);
|
|
4287
|
+
c || g.push(y);
|
|
4288
|
+
}, q.prototype.removeEventListener = function(h, y) {
|
|
4287
4289
|
h = String(h);
|
|
4288
|
-
var
|
|
4290
|
+
var _ = this._listeners, g = _[h];
|
|
4289
4291
|
if (g != null) {
|
|
4290
|
-
for (var
|
|
4291
|
-
g[
|
|
4292
|
-
|
|
4292
|
+
for (var c = [], d = 0; d < g.length; d += 1)
|
|
4293
|
+
g[d] !== y && c.push(g[d]);
|
|
4294
|
+
c.length === 0 ? delete _[h] : _[h] = c;
|
|
4293
4295
|
}
|
|
4294
4296
|
};
|
|
4295
|
-
function
|
|
4297
|
+
function K(h) {
|
|
4296
4298
|
this.type = h, this.target = void 0;
|
|
4297
4299
|
}
|
|
4298
|
-
function
|
|
4299
|
-
|
|
4300
|
+
function fe(h, y) {
|
|
4301
|
+
K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
|
|
4300
4302
|
}
|
|
4301
|
-
|
|
4302
|
-
function
|
|
4303
|
-
|
|
4303
|
+
fe.prototype = Object.create(K.prototype);
|
|
4304
|
+
function ye(h, y) {
|
|
4305
|
+
K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
|
|
4304
4306
|
}
|
|
4305
|
-
|
|
4306
|
-
function
|
|
4307
|
-
|
|
4307
|
+
ye.prototype = Object.create(K.prototype);
|
|
4308
|
+
function w(h, y) {
|
|
4309
|
+
K.call(this, h), this.error = y.error;
|
|
4308
4310
|
}
|
|
4309
|
-
|
|
4310
|
-
var
|
|
4311
|
-
var
|
|
4312
|
-
return
|
|
4313
|
-
},
|
|
4314
|
-
return Math.min(Math.max(h,
|
|
4315
|
-
},
|
|
4311
|
+
w.prototype = Object.create(K.prototype);
|
|
4312
|
+
var ve = -1, me = 0, le = 1, Oe = 2, Qe = -1, be = 0, Je = 1, Pe = 2, ut = 3, Ht = /^text\/event\-stream(;.*)?$/i, Ke = 1e3, lt = 18e6, et = function(h, y) {
|
|
4313
|
+
var _ = h == null ? y : parseInt(h, 10);
|
|
4314
|
+
return _ !== _ && (_ = y), Ne(_);
|
|
4315
|
+
}, Ne = function(h) {
|
|
4316
|
+
return Math.min(Math.max(h, Ke), lt);
|
|
4317
|
+
}, Ae = function(h, y, _) {
|
|
4316
4318
|
try {
|
|
4317
|
-
typeof y == "function" && y.call(h,
|
|
4319
|
+
typeof y == "function" && y.call(h, _);
|
|
4318
4320
|
} catch (g) {
|
|
4319
|
-
|
|
4321
|
+
F(g);
|
|
4320
4322
|
}
|
|
4321
4323
|
};
|
|
4322
|
-
function
|
|
4323
|
-
|
|
4324
|
+
function ae(h, y) {
|
|
4325
|
+
q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Mt(this, h, y);
|
|
4324
4326
|
}
|
|
4325
4327
|
function Ot() {
|
|
4326
|
-
return o != null && "withCredentials" in o.prototype ||
|
|
4328
|
+
return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
|
|
4327
4329
|
}
|
|
4328
|
-
var
|
|
4329
|
-
function
|
|
4330
|
+
var ct = b != null && m != null && "body" in m.prototype;
|
|
4331
|
+
function Mt(h, y, _) {
|
|
4330
4332
|
y = String(y);
|
|
4331
|
-
var g = !!
|
|
4332
|
-
if (
|
|
4333
|
-
if (
|
|
4334
|
-
|
|
4335
|
-
var
|
|
4336
|
-
status:
|
|
4333
|
+
var g = !!_.withCredentials, c = _.lastEventIdQueryParameterName || "lastEventId", d = Ne(1e3), p = et(_.heartbeatTimeout, 45e3), x = "", T = d, C = !1, v = 0, B = _.headers || {}, N = _.Transport, ee = ct && N == null ? void 0 : new D(N != null ? new N() : Ot()), Ce = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, de = ve, Ie = "", ft = "", Ee = "", dt = "", ne = be, Rt = 0, Me = 0, Cr = function(Y, z, se, ue) {
|
|
4334
|
+
if (de === me)
|
|
4335
|
+
if (Y === 200 && se != null && Ht.test(se)) {
|
|
4336
|
+
de = le, C = Date.now(), T = d, h.readyState = le;
|
|
4337
|
+
var re = new ye("open", {
|
|
4338
|
+
status: Y,
|
|
4337
4339
|
statusText: z,
|
|
4338
4340
|
headers: ue
|
|
4339
4341
|
});
|
|
4340
|
-
h.dispatchEvent(
|
|
4342
|
+
h.dispatchEvent(re), Ae(h, h.onopen, re);
|
|
4341
4343
|
} else {
|
|
4342
|
-
var
|
|
4343
|
-
|
|
4344
|
-
var
|
|
4345
|
-
status:
|
|
4344
|
+
var J = "";
|
|
4345
|
+
Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
|
|
4346
|
+
var re = new ye("error", {
|
|
4347
|
+
status: Y,
|
|
4346
4348
|
statusText: z,
|
|
4347
4349
|
headers: ue
|
|
4348
4350
|
});
|
|
4349
|
-
h.dispatchEvent(
|
|
4351
|
+
h.dispatchEvent(re), Ae(h, h.onerror, re), console.error(J);
|
|
4350
4352
|
}
|
|
4351
|
-
},
|
|
4352
|
-
if (
|
|
4353
|
-
for (var z = -1,
|
|
4354
|
-
var ue =
|
|
4355
|
-
(ue === 10 || ue === 13) && (z =
|
|
4353
|
+
}, Hr = function(Y) {
|
|
4354
|
+
if (de === le) {
|
|
4355
|
+
for (var z = -1, se = 0; se < Y.length; se += 1) {
|
|
4356
|
+
var ue = Y.charCodeAt(se);
|
|
4357
|
+
(ue === 10 || ue === 13) && (z = se);
|
|
4356
4358
|
}
|
|
4357
|
-
var
|
|
4358
|
-
dt = (z === -1 ? dt : "") +
|
|
4359
|
-
for (var
|
|
4360
|
-
var ue =
|
|
4361
|
-
if (
|
|
4362
|
-
|
|
4363
|
-
else if (
|
|
4364
|
-
if (
|
|
4365
|
-
|
|
4366
|
-
var
|
|
4367
|
-
|
|
4368
|
-
`, Ie +=
|
|
4359
|
+
var re = (z !== -1 ? dt : "") + Y.slice(0, z + 1);
|
|
4360
|
+
dt = (z === -1 ? dt : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), v += Y.length);
|
|
4361
|
+
for (var J = 0; J < re.length; J += 1) {
|
|
4362
|
+
var ue = re.charCodeAt(J);
|
|
4363
|
+
if (ne === Qe && ue === 10)
|
|
4364
|
+
ne = be;
|
|
4365
|
+
else if (ne === Qe && (ne = be), ue === 13 || ue === 10) {
|
|
4366
|
+
if (ne !== be) {
|
|
4367
|
+
ne === Je && (Me = J + 1);
|
|
4368
|
+
var _e = re.slice(Rt, Me - 1), xe = re.slice(Me + (Me < J && re.charCodeAt(Me) === 32 ? 1 : 0), J);
|
|
4369
|
+
_e === "data" ? (Ie += `
|
|
4370
|
+
`, Ie += xe) : _e === "id" ? ft = xe : _e === "event" ? Ee = xe : _e === "retry" ? (d = et(xe, d), T = d) : _e === "heartbeatTimeout" && (p = et(xe, p), te !== 0 && (i(te), te = r(function() {
|
|
4369
4371
|
tt();
|
|
4370
4372
|
}, p)));
|
|
4371
4373
|
}
|
|
4372
|
-
if (
|
|
4374
|
+
if (ne === be) {
|
|
4373
4375
|
if (Ie !== "") {
|
|
4374
|
-
|
|
4375
|
-
var
|
|
4376
|
+
x = ft, Ee === "" && (Ee = "message");
|
|
4377
|
+
var De = new fe(Ee, {
|
|
4376
4378
|
data: Ie.slice(1),
|
|
4377
4379
|
lastEventId: ft
|
|
4378
4380
|
});
|
|
4379
|
-
if (h.dispatchEvent(
|
|
4381
|
+
if (h.dispatchEvent(De), Ee === "open" ? Ae(h, h.onopen, De) : Ee === "message" ? Ae(h, h.onmessage, De) : Ee === "error" && Ae(h, h.onerror, De), de === Oe)
|
|
4380
4382
|
return;
|
|
4381
4383
|
}
|
|
4382
|
-
Ie = "",
|
|
4384
|
+
Ie = "", Ee = "";
|
|
4383
4385
|
}
|
|
4384
|
-
|
|
4386
|
+
ne = ue === 13 ? Qe : be;
|
|
4385
4387
|
} else
|
|
4386
|
-
|
|
4388
|
+
ne === be && (Rt = J, ne = Je), ne === Je ? ue === 58 && (Me = J + 1, ne = Pe) : ne === Pe && (ne = ut);
|
|
4387
4389
|
}
|
|
4388
4390
|
}
|
|
4389
|
-
},
|
|
4390
|
-
if (
|
|
4391
|
-
|
|
4391
|
+
}, pn = function(Y) {
|
|
4392
|
+
if (de === le || de === me) {
|
|
4393
|
+
de = ve, te !== 0 && (i(te), te = 0), te = r(function() {
|
|
4392
4394
|
tt();
|
|
4393
|
-
},
|
|
4394
|
-
var z = new
|
|
4395
|
-
h.dispatchEvent(z),
|
|
4395
|
+
}, T), T = Ne(Math.min(d * 16, T * 2)), h.readyState = me;
|
|
4396
|
+
var z = new w("error", { error: Y });
|
|
4397
|
+
h.dispatchEvent(z), Ae(h, h.onerror, z), Y != null && console.error(Y);
|
|
4396
4398
|
}
|
|
4397
4399
|
}, Lt = function() {
|
|
4398
|
-
|
|
4400
|
+
de = Oe, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = Oe;
|
|
4399
4401
|
}, tt = function() {
|
|
4400
|
-
if (
|
|
4401
|
-
if (!
|
|
4402
|
-
|
|
4402
|
+
if (te = 0, de !== ve) {
|
|
4403
|
+
if (!C && X != null)
|
|
4404
|
+
pn(new Error("No activity within " + p + " milliseconds. " + (de === me ? "No response received." : v + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
|
|
4403
4405
|
else {
|
|
4404
|
-
var
|
|
4405
|
-
|
|
4406
|
+
var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
|
|
4407
|
+
C = !1, te = r(function() {
|
|
4406
4408
|
tt();
|
|
4407
|
-
},
|
|
4409
|
+
}, Y);
|
|
4408
4410
|
}
|
|
4409
4411
|
return;
|
|
4410
4412
|
}
|
|
4411
|
-
|
|
4413
|
+
C = !1, v = 0, te = r(function() {
|
|
4412
4414
|
tt();
|
|
4413
|
-
}, p),
|
|
4415
|
+
}, p), de = me, Ie = "", Ee = "", ft = x, dt = "", Rt = 0, Me = 0, ne = be;
|
|
4414
4416
|
var z = y;
|
|
4415
|
-
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" &&
|
|
4416
|
-
var
|
|
4417
|
-
z =
|
|
4418
|
-
return
|
|
4419
|
-
}), z += (y.indexOf("?") === -1 ? "?" : "&") +
|
|
4417
|
+
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && x !== "") {
|
|
4418
|
+
var se = y.indexOf("?");
|
|
4419
|
+
z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, De) {
|
|
4420
|
+
return De === c ? "" : xe;
|
|
4421
|
+
}), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(x);
|
|
4420
4422
|
}
|
|
4421
|
-
var ue = h.withCredentials,
|
|
4422
|
-
|
|
4423
|
-
var
|
|
4424
|
-
if (
|
|
4425
|
-
for (var
|
|
4426
|
-
Object.prototype.hasOwnProperty.call(
|
|
4423
|
+
var ue = h.withCredentials, re = {};
|
|
4424
|
+
re.Accept = "text/event-stream";
|
|
4425
|
+
var J = h.headers;
|
|
4426
|
+
if (J != null)
|
|
4427
|
+
for (var _e in J)
|
|
4428
|
+
Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
|
|
4427
4429
|
try {
|
|
4428
|
-
|
|
4429
|
-
} catch (
|
|
4430
|
-
throw Lt(),
|
|
4430
|
+
X = Ce.open(ee, Cr, Hr, pn, z, ue, re);
|
|
4431
|
+
} catch (xe) {
|
|
4432
|
+
throw Lt(), xe;
|
|
4431
4433
|
}
|
|
4432
4434
|
};
|
|
4433
|
-
h.url = y, h.readyState =
|
|
4435
|
+
h.url = y, h.readyState = me, h.withCredentials = g, h.headers = B, h._close = Lt, tt();
|
|
4434
4436
|
}
|
|
4435
|
-
|
|
4437
|
+
ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = me, ae.prototype.OPEN = le, ae.prototype.CLOSED = Oe, ae.prototype.close = function() {
|
|
4436
4438
|
this._close();
|
|
4437
|
-
},
|
|
4438
|
-
var ht =
|
|
4439
|
-
o != null && (
|
|
4439
|
+
}, ae.CONNECTING = me, ae.OPEN = le, ae.CLOSED = Oe, ae.prototype.withCredentials = void 0;
|
|
4440
|
+
var ht = l;
|
|
4441
|
+
o != null && (l == null || !("withCredentials" in l.prototype)) && (ht = ae), function(h) {
|
|
4440
4442
|
{
|
|
4441
4443
|
var y = h(t);
|
|
4442
4444
|
y !== void 0 && (e.exports = y);
|
|
4443
4445
|
}
|
|
4444
4446
|
}(function(h) {
|
|
4445
|
-
h.EventSourcePolyfill =
|
|
4447
|
+
h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ht;
|
|
4446
4448
|
});
|
|
4447
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4448
|
-
})(
|
|
4449
|
-
var
|
|
4450
|
-
function
|
|
4449
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : ui : globalThis);
|
|
4450
|
+
})(sn, sn.exports);
|
|
4451
|
+
var Jo = sn.exports;
|
|
4452
|
+
function Te(e) {
|
|
4451
4453
|
return typeof e == "function";
|
|
4452
4454
|
}
|
|
4453
|
-
function
|
|
4455
|
+
function xr(e) {
|
|
4454
4456
|
var t = function(r) {
|
|
4455
4457
|
Error.call(r), r.stack = new Error().stack;
|
|
4456
4458
|
}, n = e(t);
|
|
4457
4459
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
4458
4460
|
}
|
|
4459
|
-
var Xt =
|
|
4461
|
+
var Xt = xr(function(e) {
|
|
4460
4462
|
return function(n) {
|
|
4461
4463
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
4462
4464
|
` + n.map(function(r, i) {
|
|
@@ -4479,47 +4481,47 @@ var Ct = function() {
|
|
|
4479
4481
|
var t, n, r, i, o;
|
|
4480
4482
|
if (!this.closed) {
|
|
4481
4483
|
this.closed = !0;
|
|
4482
|
-
var
|
|
4483
|
-
if (
|
|
4484
|
-
if (this._parentage = null, Array.isArray(
|
|
4484
|
+
var a = this._parentage;
|
|
4485
|
+
if (a)
|
|
4486
|
+
if (this._parentage = null, Array.isArray(a))
|
|
4485
4487
|
try {
|
|
4486
|
-
for (var
|
|
4487
|
-
var
|
|
4488
|
-
|
|
4488
|
+
for (var s = Yt(a), l = s.next(); !l.done; l = s.next()) {
|
|
4489
|
+
var u = l.value;
|
|
4490
|
+
u.remove(this);
|
|
4489
4491
|
}
|
|
4490
|
-
} catch (
|
|
4491
|
-
t = { error:
|
|
4492
|
+
} catch (A) {
|
|
4493
|
+
t = { error: A };
|
|
4492
4494
|
} finally {
|
|
4493
4495
|
try {
|
|
4494
|
-
|
|
4496
|
+
l && !l.done && (n = s.return) && n.call(s);
|
|
4495
4497
|
} finally {
|
|
4496
4498
|
if (t)
|
|
4497
4499
|
throw t.error;
|
|
4498
4500
|
}
|
|
4499
4501
|
}
|
|
4500
4502
|
else
|
|
4501
|
-
|
|
4503
|
+
a.remove(this);
|
|
4502
4504
|
var f = this.initialTeardown;
|
|
4503
|
-
if (
|
|
4505
|
+
if (Te(f))
|
|
4504
4506
|
try {
|
|
4505
4507
|
f();
|
|
4506
|
-
} catch (
|
|
4507
|
-
o =
|
|
4508
|
+
} catch (A) {
|
|
4509
|
+
o = A instanceof Xt ? A.errors : [A];
|
|
4508
4510
|
}
|
|
4509
4511
|
var b = this._finalizers;
|
|
4510
4512
|
if (b) {
|
|
4511
4513
|
this._finalizers = null;
|
|
4512
4514
|
try {
|
|
4513
|
-
for (var m =
|
|
4514
|
-
var
|
|
4515
|
+
for (var m = Yt(b), S = m.next(); !S.done; S = m.next()) {
|
|
4516
|
+
var E = S.value;
|
|
4515
4517
|
try {
|
|
4516
|
-
|
|
4517
|
-
} catch (
|
|
4518
|
-
o = o != null ? o : [],
|
|
4518
|
+
Pn(E);
|
|
4519
|
+
} catch (A) {
|
|
4520
|
+
o = o != null ? o : [], A instanceof Xt ? o = ke(ke([], Qt(o)), Qt(A.errors)) : o.push(A);
|
|
4519
4521
|
}
|
|
4520
4522
|
}
|
|
4521
|
-
} catch (
|
|
4522
|
-
r = { error:
|
|
4523
|
+
} catch (A) {
|
|
4524
|
+
r = { error: A };
|
|
4523
4525
|
} finally {
|
|
4524
4526
|
try {
|
|
4525
4527
|
S && !S.done && (i = m.return) && i.call(m);
|
|
@@ -4536,7 +4538,7 @@ var Ct = function() {
|
|
|
4536
4538
|
var n;
|
|
4537
4539
|
if (t && t !== this)
|
|
4538
4540
|
if (this.closed)
|
|
4539
|
-
|
|
4541
|
+
Pn(t);
|
|
4540
4542
|
else {
|
|
4541
4543
|
if (t instanceof e) {
|
|
4542
4544
|
if (t.closed || t._hasParent(this))
|
|
@@ -4561,48 +4563,48 @@ var Ct = function() {
|
|
|
4561
4563
|
var t = new e();
|
|
4562
4564
|
return t.closed = !0, t;
|
|
4563
4565
|
}(), e;
|
|
4564
|
-
}(),
|
|
4565
|
-
function
|
|
4566
|
-
return e instanceof Ct || e && "closed" in e &&
|
|
4566
|
+
}(), wr = Ct.EMPTY;
|
|
4567
|
+
function Sr(e) {
|
|
4568
|
+
return e instanceof Ct || e && "closed" in e && Te(e.remove) && Te(e.add) && Te(e.unsubscribe);
|
|
4567
4569
|
}
|
|
4568
|
-
function
|
|
4569
|
-
|
|
4570
|
+
function Pn(e) {
|
|
4571
|
+
Te(e) ? e() : e.unsubscribe();
|
|
4570
4572
|
}
|
|
4571
|
-
var
|
|
4573
|
+
var Ko = {
|
|
4572
4574
|
onUnhandledError: null,
|
|
4573
4575
|
onStoppedNotification: null,
|
|
4574
4576
|
Promise: void 0,
|
|
4575
4577
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
4576
4578
|
useDeprecatedNextContext: !1
|
|
4577
|
-
},
|
|
4579
|
+
}, ea = {
|
|
4578
4580
|
setTimeout: function(e, t) {
|
|
4579
4581
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4580
4582
|
n[r - 2] = arguments[r];
|
|
4581
|
-
return setTimeout.apply(void 0,
|
|
4583
|
+
return setTimeout.apply(void 0, ke([e, t], Qt(n)));
|
|
4582
4584
|
},
|
|
4583
4585
|
clearTimeout: function(e) {
|
|
4584
4586
|
return clearTimeout(e);
|
|
4585
4587
|
},
|
|
4586
4588
|
delegate: void 0
|
|
4587
4589
|
};
|
|
4588
|
-
function
|
|
4589
|
-
|
|
4590
|
+
function ta(e) {
|
|
4591
|
+
ea.setTimeout(function() {
|
|
4590
4592
|
throw e;
|
|
4591
4593
|
});
|
|
4592
4594
|
}
|
|
4593
|
-
function
|
|
4595
|
+
function Nn() {
|
|
4594
4596
|
}
|
|
4595
4597
|
function vt(e) {
|
|
4596
4598
|
e();
|
|
4597
4599
|
}
|
|
4598
|
-
var
|
|
4599
|
-
|
|
4600
|
+
var Tr = function(e) {
|
|
4601
|
+
Be(t, e);
|
|
4600
4602
|
function t(n) {
|
|
4601
4603
|
var r = e.call(this) || this;
|
|
4602
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
4604
|
+
return r.isStopped = !1, n ? (r.destination = n, Sr(n) && n.add(r)) : r.destination = ia, r;
|
|
4603
4605
|
}
|
|
4604
4606
|
return t.create = function(n, r, i) {
|
|
4605
|
-
return new
|
|
4607
|
+
return new ln(n, r, i);
|
|
4606
4608
|
}, t.prototype.next = function(n) {
|
|
4607
4609
|
this.isStopped || this._next(n);
|
|
4608
4610
|
}, t.prototype.error = function(n) {
|
|
@@ -4626,11 +4628,7 @@ var Cr = function(e) {
|
|
|
4626
4628
|
this.unsubscribe();
|
|
4627
4629
|
}
|
|
4628
4630
|
}, t;
|
|
4629
|
-
}(Ct),
|
|
4630
|
-
function zt(e, t) {
|
|
4631
|
-
return ra.call(e, t);
|
|
4632
|
-
}
|
|
4633
|
-
var ia = function() {
|
|
4631
|
+
}(Ct), na = function() {
|
|
4634
4632
|
function e(t) {
|
|
4635
4633
|
this.partialObserver = t;
|
|
4636
4634
|
}
|
|
@@ -4661,55 +4659,43 @@ var ia = function() {
|
|
|
4661
4659
|
mt(n);
|
|
4662
4660
|
}
|
|
4663
4661
|
}, e;
|
|
4664
|
-
}(),
|
|
4665
|
-
|
|
4662
|
+
}(), ln = function(e) {
|
|
4663
|
+
Be(t, e);
|
|
4666
4664
|
function t(n, r, i) {
|
|
4667
|
-
var o = e.call(this) || this,
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
};
|
|
4674
|
-
else {
|
|
4675
|
-
var a;
|
|
4676
|
-
o && Ar.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
4677
|
-
return o.unsubscribe();
|
|
4678
|
-
}, s = {
|
|
4679
|
-
next: n.next && zt(n.next, a),
|
|
4680
|
-
error: n.error && zt(n.error, a),
|
|
4681
|
-
complete: n.complete && zt(n.complete, a)
|
|
4682
|
-
}) : s = n;
|
|
4683
|
-
}
|
|
4684
|
-
return o.destination = new ia(s), o;
|
|
4665
|
+
var o = e.call(this) || this, a;
|
|
4666
|
+
return Te(n) || !n ? a = {
|
|
4667
|
+
next: n != null ? n : void 0,
|
|
4668
|
+
error: r != null ? r : void 0,
|
|
4669
|
+
complete: i != null ? i : void 0
|
|
4670
|
+
} : a = n, o.destination = new na(a), o;
|
|
4685
4671
|
}
|
|
4686
4672
|
return t;
|
|
4687
|
-
}(
|
|
4673
|
+
}(Tr);
|
|
4688
4674
|
function mt(e) {
|
|
4689
|
-
|
|
4675
|
+
ta(e);
|
|
4690
4676
|
}
|
|
4691
|
-
function
|
|
4677
|
+
function ra(e) {
|
|
4692
4678
|
throw e;
|
|
4693
4679
|
}
|
|
4694
|
-
var
|
|
4680
|
+
var ia = {
|
|
4695
4681
|
closed: !0,
|
|
4696
|
-
next:
|
|
4697
|
-
error:
|
|
4698
|
-
complete:
|
|
4699
|
-
},
|
|
4682
|
+
next: Nn,
|
|
4683
|
+
error: ra,
|
|
4684
|
+
complete: Nn
|
|
4685
|
+
}, oa = function() {
|
|
4700
4686
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4701
4687
|
}();
|
|
4702
|
-
function
|
|
4688
|
+
function aa(e) {
|
|
4703
4689
|
return e;
|
|
4704
4690
|
}
|
|
4705
|
-
function
|
|
4706
|
-
return e.length === 0 ?
|
|
4691
|
+
function sa(e) {
|
|
4692
|
+
return e.length === 0 ? aa : e.length === 1 ? e[0] : function(n) {
|
|
4707
4693
|
return e.reduce(function(r, i) {
|
|
4708
4694
|
return i(r);
|
|
4709
4695
|
}, n);
|
|
4710
4696
|
};
|
|
4711
4697
|
}
|
|
4712
|
-
var
|
|
4698
|
+
var In = function() {
|
|
4713
4699
|
function e(t) {
|
|
4714
4700
|
t && (this._subscribe = t);
|
|
4715
4701
|
}
|
|
@@ -4717,10 +4703,10 @@ var Un = function() {
|
|
|
4717
4703
|
var n = new e();
|
|
4718
4704
|
return n.source = this, n.operator = t, n;
|
|
4719
4705
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
4720
|
-
var i = this, o =
|
|
4706
|
+
var i = this, o = la(t) ? t : new ln(t, n, r);
|
|
4721
4707
|
return vt(function() {
|
|
4722
|
-
var
|
|
4723
|
-
o.add(
|
|
4708
|
+
var a = i, s = a.operator, l = a.source;
|
|
4709
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4724
4710
|
}), o;
|
|
4725
4711
|
}, e.prototype._trySubscribe = function(t) {
|
|
4726
4712
|
try {
|
|
@@ -4730,37 +4716,37 @@ var Un = function() {
|
|
|
4730
4716
|
}
|
|
4731
4717
|
}, e.prototype.forEach = function(t, n) {
|
|
4732
4718
|
var r = this;
|
|
4733
|
-
return n =
|
|
4734
|
-
var
|
|
4735
|
-
next: function(
|
|
4719
|
+
return n = Dn(n), new n(function(i, o) {
|
|
4720
|
+
var a = new ln({
|
|
4721
|
+
next: function(s) {
|
|
4736
4722
|
try {
|
|
4737
|
-
t(
|
|
4738
|
-
} catch (
|
|
4739
|
-
o(
|
|
4723
|
+
t(s);
|
|
4724
|
+
} catch (l) {
|
|
4725
|
+
o(l), a.unsubscribe();
|
|
4740
4726
|
}
|
|
4741
4727
|
},
|
|
4742
4728
|
error: o,
|
|
4743
4729
|
complete: i
|
|
4744
4730
|
});
|
|
4745
|
-
r.subscribe(
|
|
4731
|
+
r.subscribe(a);
|
|
4746
4732
|
});
|
|
4747
4733
|
}, e.prototype._subscribe = function(t) {
|
|
4748
4734
|
var n;
|
|
4749
4735
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
4750
|
-
}, e.prototype[
|
|
4736
|
+
}, e.prototype[oa] = function() {
|
|
4751
4737
|
return this;
|
|
4752
4738
|
}, e.prototype.pipe = function() {
|
|
4753
4739
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
4754
4740
|
t[n] = arguments[n];
|
|
4755
|
-
return
|
|
4741
|
+
return sa(t)(this);
|
|
4756
4742
|
}, e.prototype.toPromise = function(t) {
|
|
4757
4743
|
var n = this;
|
|
4758
|
-
return t =
|
|
4744
|
+
return t = Dn(t), new t(function(r, i) {
|
|
4759
4745
|
var o;
|
|
4760
|
-
n.subscribe(function(
|
|
4761
|
-
return o =
|
|
4762
|
-
}, function(
|
|
4763
|
-
return i(
|
|
4746
|
+
n.subscribe(function(a) {
|
|
4747
|
+
return o = a;
|
|
4748
|
+
}, function(a) {
|
|
4749
|
+
return i(a);
|
|
4764
4750
|
}, function() {
|
|
4765
4751
|
return r(o);
|
|
4766
4752
|
});
|
|
@@ -4769,32 +4755,32 @@ var Un = function() {
|
|
|
4769
4755
|
return new e(t);
|
|
4770
4756
|
}, e;
|
|
4771
4757
|
}();
|
|
4772
|
-
function
|
|
4758
|
+
function Dn(e) {
|
|
4773
4759
|
var t;
|
|
4774
|
-
return (t = e != null ? e :
|
|
4760
|
+
return (t = e != null ? e : Ko.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4775
4761
|
}
|
|
4776
|
-
function
|
|
4777
|
-
return e &&
|
|
4762
|
+
function ua(e) {
|
|
4763
|
+
return e && Te(e.next) && Te(e.error) && Te(e.complete);
|
|
4778
4764
|
}
|
|
4779
|
-
function
|
|
4780
|
-
return e && e instanceof
|
|
4765
|
+
function la(e) {
|
|
4766
|
+
return e && e instanceof Tr || ua(e) && Sr(e);
|
|
4781
4767
|
}
|
|
4782
|
-
var
|
|
4768
|
+
var ca = xr(function(e) {
|
|
4783
4769
|
return function() {
|
|
4784
4770
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4785
4771
|
};
|
|
4786
|
-
}),
|
|
4787
|
-
|
|
4772
|
+
}), Br = function(e) {
|
|
4773
|
+
Be(t, e);
|
|
4788
4774
|
function t() {
|
|
4789
4775
|
var n = e.call(this) || this;
|
|
4790
4776
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
4791
4777
|
}
|
|
4792
4778
|
return t.prototype.lift = function(n) {
|
|
4793
|
-
var r = new
|
|
4779
|
+
var r = new Un(this, this);
|
|
4794
4780
|
return r.operator = n, r;
|
|
4795
4781
|
}, t.prototype._throwIfClosed = function() {
|
|
4796
4782
|
if (this.closed)
|
|
4797
|
-
throw new
|
|
4783
|
+
throw new ca();
|
|
4798
4784
|
}, t.prototype.next = function(n) {
|
|
4799
4785
|
var r = this;
|
|
4800
4786
|
vt(function() {
|
|
@@ -4802,15 +4788,15 @@ var fa = Sr(function(e) {
|
|
|
4802
4788
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4803
4789
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4804
4790
|
try {
|
|
4805
|
-
for (var
|
|
4806
|
-
var
|
|
4807
|
-
|
|
4791
|
+
for (var a = Yt(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
4792
|
+
var l = s.value;
|
|
4793
|
+
l.next(n);
|
|
4808
4794
|
}
|
|
4809
|
-
} catch (
|
|
4810
|
-
i = { error:
|
|
4795
|
+
} catch (u) {
|
|
4796
|
+
i = { error: u };
|
|
4811
4797
|
} finally {
|
|
4812
4798
|
try {
|
|
4813
|
-
|
|
4799
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
4814
4800
|
} finally {
|
|
4815
4801
|
if (i)
|
|
4816
4802
|
throw i.error;
|
|
@@ -4850,21 +4836,21 @@ var fa = Sr(function(e) {
|
|
|
4850
4836
|
}, t.prototype._subscribe = function(n) {
|
|
4851
4837
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4852
4838
|
}, t.prototype._innerSubscribe = function(n) {
|
|
4853
|
-
var r = this, i = this, o = i.hasError,
|
|
4854
|
-
return o ||
|
|
4855
|
-
r.currentObservers = null, un(
|
|
4839
|
+
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
4840
|
+
return o || a ? wr : (this.currentObservers = null, s.push(n), new Ct(function() {
|
|
4841
|
+
r.currentObservers = null, un(s, n);
|
|
4856
4842
|
}));
|
|
4857
4843
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
4858
|
-
var r = this, i = r.hasError, o = r.thrownError,
|
|
4859
|
-
i ? n.error(o) :
|
|
4844
|
+
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
4845
|
+
i ? n.error(o) : a && n.complete();
|
|
4860
4846
|
}, t.prototype.asObservable = function() {
|
|
4861
|
-
var n = new
|
|
4847
|
+
var n = new In();
|
|
4862
4848
|
return n.source = this, n;
|
|
4863
4849
|
}, t.create = function(n, r) {
|
|
4864
|
-
return new
|
|
4850
|
+
return new Un(n, r);
|
|
4865
4851
|
}, t;
|
|
4866
|
-
}(
|
|
4867
|
-
|
|
4852
|
+
}(In), Un = function(e) {
|
|
4853
|
+
Be(t, e);
|
|
4868
4854
|
function t(n, r) {
|
|
4869
4855
|
var i = e.call(this) || this;
|
|
4870
4856
|
return i.destination = n, i.source = r, i;
|
|
@@ -4880,58 +4866,58 @@ var fa = Sr(function(e) {
|
|
|
4880
4866
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
4881
4867
|
}, t.prototype._subscribe = function(n) {
|
|
4882
4868
|
var r, i;
|
|
4883
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
4869
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : wr;
|
|
4884
4870
|
}, t;
|
|
4885
|
-
}(
|
|
4871
|
+
}(Br), Ar = {
|
|
4886
4872
|
now: function() {
|
|
4887
|
-
return (
|
|
4873
|
+
return (Ar.delegate || Date).now();
|
|
4888
4874
|
},
|
|
4889
4875
|
delegate: void 0
|
|
4890
|
-
},
|
|
4891
|
-
|
|
4876
|
+
}, ha = function(e) {
|
|
4877
|
+
Be(t, e);
|
|
4892
4878
|
function t(n, r, i) {
|
|
4893
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
4879
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Ar);
|
|
4894
4880
|
var o = e.call(this) || this;
|
|
4895
4881
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
4896
4882
|
}
|
|
4897
4883
|
return t.prototype.next = function(n) {
|
|
4898
|
-
var r = this, i = r.isStopped, o = r._buffer,
|
|
4899
|
-
i || (o.push(n), !
|
|
4884
|
+
var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, l = r._windowTime;
|
|
4885
|
+
i || (o.push(n), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
4900
4886
|
}, t.prototype._subscribe = function(n) {
|
|
4901
4887
|
this._throwIfClosed(), this._trimBuffer();
|
|
4902
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow,
|
|
4903
|
-
n.next(
|
|
4888
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !n.closed; l += o ? 1 : 2)
|
|
4889
|
+
n.next(s[l]);
|
|
4904
4890
|
return this._checkFinalizedStatuses(n), r;
|
|
4905
4891
|
}, t.prototype._trimBuffer = function() {
|
|
4906
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer,
|
|
4907
|
-
if (r < 1 / 0 &&
|
|
4908
|
-
for (var
|
|
4909
|
-
|
|
4910
|
-
|
|
4892
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
|
|
4893
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
4894
|
+
for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
|
|
4895
|
+
u = f;
|
|
4896
|
+
u && o.splice(0, u + 1);
|
|
4911
4897
|
}
|
|
4912
4898
|
}, t;
|
|
4913
|
-
}(
|
|
4914
|
-
const
|
|
4915
|
-
if (
|
|
4916
|
-
const n = new
|
|
4917
|
-
|
|
4899
|
+
}(Br);
|
|
4900
|
+
const Fn = [], Gn = {}, fa = (e, t = 0) => {
|
|
4901
|
+
if (Fn.indexOf(e) == -1) {
|
|
4902
|
+
const n = new ha(t);
|
|
4903
|
+
Gn[e] = n, Fn.push(e);
|
|
4918
4904
|
}
|
|
4919
|
-
return
|
|
4905
|
+
return Gn[e];
|
|
4920
4906
|
};
|
|
4921
|
-
window.emWidgets = { topic:
|
|
4922
|
-
const
|
|
4923
|
-
function
|
|
4924
|
-
|
|
4907
|
+
window.emWidgets = { topic: fa };
|
|
4908
|
+
const da = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4909
|
+
function pa(e) {
|
|
4910
|
+
Dr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4925
4911
|
}
|
|
4926
|
-
function
|
|
4912
|
+
function jn(e, t, n) {
|
|
4927
4913
|
const r = e.slice();
|
|
4928
4914
|
return r[54] = t[n], r;
|
|
4929
4915
|
}
|
|
4930
|
-
function
|
|
4916
|
+
function kn(e, t, n) {
|
|
4931
4917
|
const r = e.slice();
|
|
4932
4918
|
return r[57] = t[n], r;
|
|
4933
4919
|
}
|
|
4934
|
-
function
|
|
4920
|
+
function ma(e) {
|
|
4935
4921
|
let t, n, r = (
|
|
4936
4922
|
/*balances*/
|
|
4937
4923
|
(e[1].Total ? (
|
|
@@ -4941,53 +4927,53 @@ function ga(e) {
|
|
|
4941
4927
|
e[1].Total[0].amount
|
|
4942
4928
|
)
|
|
4943
4929
|
) : "0") + ""
|
|
4944
|
-
), i, o, s,
|
|
4930
|
+
), i, o, a, s, l, u, f, b, m, S, E = (
|
|
4945
4931
|
/*showBalance*/
|
|
4946
|
-
e[4] &&
|
|
4932
|
+
e[4] && $n(e)
|
|
4947
4933
|
);
|
|
4948
4934
|
return {
|
|
4949
4935
|
c() {
|
|
4950
|
-
t = j("button"), n = j("p"), i =
|
|
4951
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4936
|
+
t = j("button"), n = j("p"), i = we(r), o = Se(), a = j("span"), s = gn("svg"), l = gn("path"), f = Se(), E && E.c(), b = Gr(), M(l, "id", "arrow"), M(l, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(s, "xmlns", "http://www.w3.org/2000/svg"), M(s, "width", "14"), M(s, "height", "6.835"), M(s, "viewBox", "0 0 14 6.835"), M(a, "class", u = /*isModalDisplayed*/
|
|
4937
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4952
4938
|
},
|
|
4953
|
-
m(
|
|
4954
|
-
|
|
4939
|
+
m(A, I) {
|
|
4940
|
+
ge(A, t, I), P(t, n), P(n, i), P(t, o), P(t, a), P(a, s), P(s, l), ge(A, f, I), E && E.m(A, I), ge(A, b, I), m || (S = Et(
|
|
4955
4941
|
t,
|
|
4956
4942
|
"click",
|
|
4957
4943
|
/*click_handler*/
|
|
4958
4944
|
e[26]
|
|
4959
4945
|
), m = !0);
|
|
4960
4946
|
},
|
|
4961
|
-
p(
|
|
4962
|
-
|
|
4947
|
+
p(A, I) {
|
|
4948
|
+
I[0] & /*balances*/
|
|
4963
4949
|
2 && r !== (r = /*balances*/
|
|
4964
|
-
(
|
|
4950
|
+
(A[1].Total ? (
|
|
4965
4951
|
/*formatBalance*/
|
|
4966
|
-
|
|
4952
|
+
A[8](
|
|
4967
4953
|
/*balances*/
|
|
4968
|
-
|
|
4954
|
+
A[1].Total[0].amount
|
|
4969
4955
|
)
|
|
4970
|
-
) : "0") + "") && Re(i, r),
|
|
4971
|
-
8 &&
|
|
4972
|
-
|
|
4973
|
-
|
|
4956
|
+
) : "0") + "") && Re(i, r), I[0] & /*isModalDisplayed*/
|
|
4957
|
+
8 && u !== (u = /*isModalDisplayed*/
|
|
4958
|
+
A[3] ? "TriangleActive" : "TriangleInactive") && M(a, "class", u), /*showBalance*/
|
|
4959
|
+
A[4] ? E ? E.p(A, I) : (E = $n(A), E.c(), E.m(b.parentNode, b)) : E && (E.d(1), E = null);
|
|
4974
4960
|
},
|
|
4975
|
-
d(
|
|
4976
|
-
|
|
4961
|
+
d(A) {
|
|
4962
|
+
A && (pe(t), pe(f), pe(b)), E && E.d(A), m = !1, S();
|
|
4977
4963
|
}
|
|
4978
4964
|
};
|
|
4979
4965
|
}
|
|
4980
|
-
function
|
|
4966
|
+
function ba(e) {
|
|
4981
4967
|
let t, n = (
|
|
4982
4968
|
/*$_*/
|
|
4983
4969
|
e[6]("Loading") + ""
|
|
4984
4970
|
), r;
|
|
4985
4971
|
return {
|
|
4986
4972
|
c() {
|
|
4987
|
-
t = j("p"), r =
|
|
4973
|
+
t = j("p"), r = we(n), M(t, "class", "Loading");
|
|
4988
4974
|
},
|
|
4989
4975
|
m(i, o) {
|
|
4990
|
-
|
|
4976
|
+
ge(i, t, o), P(t, r);
|
|
4991
4977
|
},
|
|
4992
4978
|
p(i, o) {
|
|
4993
4979
|
o[0] & /*$_*/
|
|
@@ -4995,39 +4981,39 @@ function ya(e) {
|
|
|
4995
4981
|
i[6]("Loading") + "") && Re(r, n);
|
|
4996
4982
|
},
|
|
4997
4983
|
d(i) {
|
|
4998
|
-
i &&
|
|
4984
|
+
i && pe(t);
|
|
4999
4985
|
}
|
|
5000
4986
|
};
|
|
5001
4987
|
}
|
|
5002
|
-
function
|
|
5003
|
-
let t, n, r, i, o, s,
|
|
4988
|
+
function $n(e) {
|
|
4989
|
+
let t, n, r, i, o, a, s, l, u = (
|
|
5004
4990
|
/*$_*/
|
|
5005
4991
|
e[6]("Title") + ""
|
|
5006
|
-
), f, b, m, S,
|
|
4992
|
+
), f, b, m, S, E, A, I = (
|
|
5007
4993
|
/*$_*/
|
|
5008
4994
|
e[6]("DepositButton") + ""
|
|
5009
|
-
), W, V,
|
|
4995
|
+
), W, V, R, D, k, oe, Z = _t(Object.keys(
|
|
5010
4996
|
/*balances*/
|
|
5011
4997
|
e[1]
|
|
5012
|
-
)),
|
|
5013
|
-
for (let
|
|
5014
|
-
|
|
4998
|
+
)), $ = [];
|
|
4999
|
+
for (let U = 0; U < Z.length; U += 1)
|
|
5000
|
+
$[U] = Xn(jn(e, Z, U));
|
|
5015
5001
|
return {
|
|
5016
5002
|
c() {
|
|
5017
|
-
t = j("div"), n = j("button"), i =
|
|
5018
|
-
for (let
|
|
5019
|
-
|
|
5020
|
-
S =
|
|
5021
|
-
(e[3] ? "Open" : "")),
|
|
5022
|
-
(e[3] ? "Open" : "")),
|
|
5023
|
-
(e[3] ? "Open" : "")),
|
|
5003
|
+
t = j("div"), n = j("button"), i = Se(), o = j("div"), a = j("div"), s = j("div"), l = j("p"), f = we(u), b = Se(), m = j("div");
|
|
5004
|
+
for (let U = 0; U < $.length; U += 1)
|
|
5005
|
+
$[U].c();
|
|
5006
|
+
S = Se(), E = j("div"), A = j("button"), W = we(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5007
|
+
(e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(E, "class", "BalanceModalFooter"), M(a, "class", V = "ModalContent " + /*isModalDisplayed*/
|
|
5008
|
+
(e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
|
|
5009
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5024
5010
|
(e[3] ? "Open" : ""));
|
|
5025
5011
|
},
|
|
5026
|
-
m(
|
|
5027
|
-
|
|
5028
|
-
for (let
|
|
5029
|
-
F
|
|
5030
|
-
|
|
5012
|
+
m(U, q) {
|
|
5013
|
+
ge(U, t, q), P(t, n), P(t, i), P(t, o), P(o, a), P(a, s), P(s, l), P(l, f), P(a, b), P(a, m);
|
|
5014
|
+
for (let F = 0; F < $.length; F += 1)
|
|
5015
|
+
$[F] && $[F].m(m, null);
|
|
5016
|
+
P(a, S), P(a, E), P(E, A), P(A, W), k || (oe = [
|
|
5031
5017
|
Et(
|
|
5032
5018
|
n,
|
|
5033
5019
|
"click",
|
|
@@ -5035,56 +5021,56 @@ function Xn(e) {
|
|
|
5035
5021
|
e[27]
|
|
5036
5022
|
),
|
|
5037
5023
|
Et(
|
|
5038
|
-
|
|
5024
|
+
A,
|
|
5039
5025
|
"click",
|
|
5040
5026
|
/*click_handler_2*/
|
|
5041
5027
|
e[28]
|
|
5042
5028
|
)
|
|
5043
|
-
],
|
|
5029
|
+
], k = !0);
|
|
5044
5030
|
},
|
|
5045
|
-
p(
|
|
5046
|
-
if (
|
|
5031
|
+
p(U, q) {
|
|
5032
|
+
if (q[0] & /*isModalDisplayed*/
|
|
5047
5033
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5048
|
-
(
|
|
5049
|
-
64 &&
|
|
5050
|
-
|
|
5034
|
+
(U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
|
|
5035
|
+
64 && u !== (u = /*$_*/
|
|
5036
|
+
U[6]("Title") + "") && Re(f, u), q[0] & /*balances, formatBalance, $_*/
|
|
5051
5037
|
322) {
|
|
5052
|
-
|
|
5038
|
+
Z = _t(Object.keys(
|
|
5053
5039
|
/*balances*/
|
|
5054
|
-
|
|
5040
|
+
U[1]
|
|
5055
5041
|
));
|
|
5056
|
-
let
|
|
5057
|
-
for (
|
|
5058
|
-
const
|
|
5059
|
-
F
|
|
5042
|
+
let F;
|
|
5043
|
+
for (F = 0; F < Z.length; F += 1) {
|
|
5044
|
+
const K = jn(U, Z, F);
|
|
5045
|
+
$[F] ? $[F].p(K, q) : ($[F] = Xn(K), $[F].c(), $[F].m(m, null));
|
|
5060
5046
|
}
|
|
5061
|
-
for (;
|
|
5062
|
-
F
|
|
5063
|
-
|
|
5047
|
+
for (; F < $.length; F += 1)
|
|
5048
|
+
$[F].d(1);
|
|
5049
|
+
$.length = Z.length;
|
|
5064
5050
|
}
|
|
5065
|
-
|
|
5066
|
-
64 &&
|
|
5067
|
-
|
|
5051
|
+
q[0] & /*$_*/
|
|
5052
|
+
64 && I !== (I = /*$_*/
|
|
5053
|
+
U[6]("DepositButton") + "") && Re(W, I), q[0] & /*isModalDisplayed*/
|
|
5068
5054
|
8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
|
|
5069
|
-
(
|
|
5070
|
-
8 &&
|
|
5071
|
-
(
|
|
5072
|
-
8 &&
|
|
5073
|
-
(
|
|
5055
|
+
(U[3] ? "Open" : "")) && M(a, "class", V), q[0] & /*isModalDisplayed*/
|
|
5056
|
+
8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
|
|
5057
|
+
(U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
|
|
5058
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5059
|
+
(U[3] ? "Open" : "")) && M(t, "class", D);
|
|
5074
5060
|
},
|
|
5075
|
-
d(
|
|
5076
|
-
|
|
5061
|
+
d(U) {
|
|
5062
|
+
U && pe(t), Yn($, U), k = !1, We(oe);
|
|
5077
5063
|
}
|
|
5078
5064
|
};
|
|
5079
5065
|
}
|
|
5080
|
-
function
|
|
5066
|
+
function Vn(e) {
|
|
5081
5067
|
let t, n, r = (
|
|
5082
5068
|
/*$_*/
|
|
5083
5069
|
e[6](
|
|
5084
5070
|
/*k*/
|
|
5085
5071
|
e[54]
|
|
5086
5072
|
) + ""
|
|
5087
|
-
), i, o,
|
|
5073
|
+
), i, o, a = (
|
|
5088
5074
|
/*b*/
|
|
5089
5075
|
(e[57].productType ? (
|
|
5090
5076
|
/*$_*/
|
|
@@ -5093,7 +5079,7 @@ function zn(e) {
|
|
|
5093
5079
|
e[57].productType
|
|
5094
5080
|
)
|
|
5095
5081
|
) : "") + ""
|
|
5096
|
-
),
|
|
5082
|
+
), s, l, u, f, b = (
|
|
5097
5083
|
/*formatBalance*/
|
|
5098
5084
|
e[8](
|
|
5099
5085
|
/*b*/
|
|
@@ -5102,26 +5088,26 @@ function zn(e) {
|
|
|
5102
5088
|
), m;
|
|
5103
5089
|
return {
|
|
5104
5090
|
c() {
|
|
5105
|
-
t = j("div"), n = j("p"), i =
|
|
5091
|
+
t = j("div"), n = j("p"), i = we(r), o = Se(), s = we(a), l = Se(), u = j("p"), f = j("span"), m = we(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
5106
5092
|
},
|
|
5107
|
-
m(S,
|
|
5108
|
-
|
|
5093
|
+
m(S, E) {
|
|
5094
|
+
ge(S, t, E), P(t, n), P(n, i), P(n, o), P(n, s), P(t, l), P(t, u), P(u, f), P(f, m);
|
|
5109
5095
|
},
|
|
5110
|
-
p(S,
|
|
5111
|
-
|
|
5096
|
+
p(S, E) {
|
|
5097
|
+
E[0] & /*$_, balances*/
|
|
5112
5098
|
66 && r !== (r = /*$_*/
|
|
5113
5099
|
S[6](
|
|
5114
5100
|
/*k*/
|
|
5115
5101
|
S[54]
|
|
5116
|
-
) + "") && Re(i, r),
|
|
5117
|
-
66 &&
|
|
5102
|
+
) + "") && Re(i, r), E[0] & /*balances, $_*/
|
|
5103
|
+
66 && a !== (a = /*b*/
|
|
5118
5104
|
(S[57].productType ? (
|
|
5119
5105
|
/*$_*/
|
|
5120
5106
|
S[6](
|
|
5121
5107
|
/*b*/
|
|
5122
5108
|
S[57].productType
|
|
5123
5109
|
)
|
|
5124
|
-
) : "") + "") && Re(
|
|
5110
|
+
) : "") + "") && Re(s, a), E[0] & /*balances*/
|
|
5125
5111
|
2 && b !== (b = /*formatBalance*/
|
|
5126
5112
|
S[8](
|
|
5127
5113
|
/*b*/
|
|
@@ -5129,11 +5115,11 @@ function zn(e) {
|
|
|
5129
5115
|
) + "") && Re(m, b);
|
|
5130
5116
|
},
|
|
5131
5117
|
d(S) {
|
|
5132
|
-
S &&
|
|
5118
|
+
S && pe(t);
|
|
5133
5119
|
}
|
|
5134
5120
|
};
|
|
5135
5121
|
}
|
|
5136
|
-
function
|
|
5122
|
+
function Xn(e) {
|
|
5137
5123
|
let t, n, r = _t(
|
|
5138
5124
|
/*balances*/
|
|
5139
5125
|
e[1][
|
|
@@ -5142,22 +5128,22 @@ function Wn(e) {
|
|
|
5142
5128
|
]
|
|
5143
5129
|
), i = [];
|
|
5144
5130
|
for (let o = 0; o < r.length; o += 1)
|
|
5145
|
-
i[o] =
|
|
5131
|
+
i[o] = Vn(kn(e, r, o));
|
|
5146
5132
|
return {
|
|
5147
5133
|
c() {
|
|
5148
5134
|
t = j("div");
|
|
5149
5135
|
for (let o = 0; o < i.length; o += 1)
|
|
5150
5136
|
i[o].c();
|
|
5151
|
-
n =
|
|
5137
|
+
n = Se(), M(t, "class", "BalanceModalRowBoth");
|
|
5152
5138
|
},
|
|
5153
|
-
m(o,
|
|
5154
|
-
|
|
5155
|
-
for (let
|
|
5156
|
-
i[
|
|
5157
|
-
|
|
5139
|
+
m(o, a) {
|
|
5140
|
+
ge(o, t, a);
|
|
5141
|
+
for (let s = 0; s < i.length; s += 1)
|
|
5142
|
+
i[s] && i[s].m(t, null);
|
|
5143
|
+
P(t, n);
|
|
5158
5144
|
},
|
|
5159
|
-
p(o,
|
|
5160
|
-
if (
|
|
5145
|
+
p(o, a) {
|
|
5146
|
+
if (a[0] & /*formatBalance, balances, $_*/
|
|
5161
5147
|
322) {
|
|
5162
5148
|
r = _t(
|
|
5163
5149
|
/*balances*/
|
|
@@ -5166,83 +5152,83 @@ function Wn(e) {
|
|
|
5166
5152
|
o[54]
|
|
5167
5153
|
]
|
|
5168
5154
|
);
|
|
5169
|
-
let
|
|
5170
|
-
for (
|
|
5171
|
-
const
|
|
5172
|
-
i[
|
|
5155
|
+
let s;
|
|
5156
|
+
for (s = 0; s < r.length; s += 1) {
|
|
5157
|
+
const l = kn(o, r, s);
|
|
5158
|
+
i[s] ? i[s].p(l, a) : (i[s] = Vn(l), i[s].c(), i[s].m(t, n));
|
|
5173
5159
|
}
|
|
5174
|
-
for (;
|
|
5175
|
-
i[
|
|
5160
|
+
for (; s < i.length; s += 1)
|
|
5161
|
+
i[s].d(1);
|
|
5176
5162
|
i.length = r.length;
|
|
5177
5163
|
}
|
|
5178
5164
|
},
|
|
5179
5165
|
d(o) {
|
|
5180
|
-
o &&
|
|
5166
|
+
o && pe(t), Yn(i, o);
|
|
5181
5167
|
}
|
|
5182
5168
|
};
|
|
5183
5169
|
}
|
|
5184
|
-
function
|
|
5170
|
+
function zn(e) {
|
|
5185
5171
|
let t, n, r;
|
|
5186
5172
|
return {
|
|
5187
5173
|
c() {
|
|
5188
|
-
t = j("button"),
|
|
5174
|
+
t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
5189
5175
|
},
|
|
5190
5176
|
m(i, o) {
|
|
5191
|
-
|
|
5177
|
+
ge(i, t, o), n || (r = Et(
|
|
5192
5178
|
t,
|
|
5193
5179
|
"click",
|
|
5194
5180
|
/*click_handler_3*/
|
|
5195
5181
|
e[29]
|
|
5196
5182
|
), n = !0);
|
|
5197
5183
|
},
|
|
5198
|
-
p:
|
|
5184
|
+
p: he,
|
|
5199
5185
|
d(i) {
|
|
5200
|
-
i &&
|
|
5186
|
+
i && pe(t), n = !1, r();
|
|
5201
5187
|
}
|
|
5202
5188
|
};
|
|
5203
5189
|
}
|
|
5204
|
-
function
|
|
5190
|
+
function ga(e) {
|
|
5205
5191
|
let t, n, r, i;
|
|
5206
|
-
function o(
|
|
5192
|
+
function o(u, f) {
|
|
5207
5193
|
return (
|
|
5208
5194
|
/*isLoading*/
|
|
5209
|
-
|
|
5195
|
+
u[2] ? ba : ma
|
|
5210
5196
|
);
|
|
5211
5197
|
}
|
|
5212
|
-
let
|
|
5198
|
+
let a = o(e), s = a(e), l = (
|
|
5213
5199
|
/*showBalance*/
|
|
5214
|
-
e[4] &&
|
|
5200
|
+
e[4] && zn(e)
|
|
5215
5201
|
);
|
|
5216
5202
|
return {
|
|
5217
5203
|
c() {
|
|
5218
|
-
t = j("div"), n = j("div"),
|
|
5204
|
+
t = j("div"), n = j("div"), s.c(), i = Se(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
|
|
5219
5205
|
(e[5] ? "Mobile" : ""));
|
|
5220
5206
|
},
|
|
5221
|
-
m(
|
|
5222
|
-
|
|
5207
|
+
m(u, f) {
|
|
5208
|
+
ge(u, t, f), P(t, n), s.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
|
|
5223
5209
|
},
|
|
5224
|
-
p(
|
|
5225
|
-
|
|
5210
|
+
p(u, f) {
|
|
5211
|
+
a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(n, null))), f[0] & /*mobileView*/
|
|
5226
5212
|
32 && r !== (r = "ShowBalance " + /*mobileView*/
|
|
5227
|
-
(
|
|
5228
|
-
|
|
5213
|
+
(u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
|
|
5214
|
+
u[4] ? l ? l.p(u, f) : (l = zn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
5229
5215
|
},
|
|
5230
|
-
i:
|
|
5231
|
-
o:
|
|
5232
|
-
d(
|
|
5233
|
-
|
|
5216
|
+
i: he,
|
|
5217
|
+
o: he,
|
|
5218
|
+
d(u) {
|
|
5219
|
+
u && pe(t), s.d(), l && l.d(), e[30](null);
|
|
5234
5220
|
}
|
|
5235
5221
|
};
|
|
5236
5222
|
}
|
|
5237
|
-
function
|
|
5223
|
+
function ya(e, t, n) {
|
|
5238
5224
|
let r;
|
|
5239
|
-
|
|
5240
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint:
|
|
5241
|
-
const
|
|
5242
|
-
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((
|
|
5225
|
+
Ir(e, Yo, (c) => n(6, r = c));
|
|
5226
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", fe = [], ye;
|
|
5227
|
+
const w = {}, ve = ["totalCashAmount", "totalRealAmount"], me = () => {
|
|
5228
|
+
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Rn(d, c[d]))).catch((c) => console.log(c));
|
|
5243
5229
|
};
|
|
5244
|
-
Object.keys(
|
|
5245
|
-
const
|
|
5230
|
+
Object.keys(Ln).forEach((c) => Rn(c, Ln[c]));
|
|
5231
|
+
const le = (c) => {
|
|
5246
5232
|
switch (c) {
|
|
5247
5233
|
case "balance":
|
|
5248
5234
|
window.postMessage(
|
|
@@ -5251,10 +5237,10 @@ function Ea(e, t, n) {
|
|
|
5251
5237
|
status: "open"
|
|
5252
5238
|
},
|
|
5253
5239
|
window.location.href
|
|
5254
|
-
), n(4,
|
|
5240
|
+
), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
|
|
5255
5241
|
break;
|
|
5256
5242
|
case "closebalance":
|
|
5257
|
-
n(3,
|
|
5243
|
+
n(3, oe = !1), window.postMessage(
|
|
5258
5244
|
{
|
|
5259
5245
|
type: "BalanceModalStatus",
|
|
5260
5246
|
status: "close"
|
|
@@ -5262,114 +5248,114 @@ function Ea(e, t, n) {
|
|
|
5262
5248
|
window.location.href
|
|
5263
5249
|
), setTimeout(
|
|
5264
5250
|
() => {
|
|
5265
|
-
n(4,
|
|
5251
|
+
n(4, $ = !1);
|
|
5266
5252
|
},
|
|
5267
5253
|
150
|
|
5268
5254
|
);
|
|
5269
5255
|
break;
|
|
5270
5256
|
}
|
|
5271
|
-
},
|
|
5272
|
-
if (
|
|
5273
|
-
return
|
|
5274
|
-
const
|
|
5257
|
+
}, Oe = (c) => {
|
|
5258
|
+
if (R)
|
|
5259
|
+
return Qe(c);
|
|
5260
|
+
const d = A || s, p = {
|
|
5275
5261
|
style: "currency",
|
|
5276
|
-
currency:
|
|
5262
|
+
currency: K,
|
|
5277
5263
|
useGrouping: !0,
|
|
5278
|
-
currencyDisplay:
|
|
5264
|
+
currencyDisplay: I || "code",
|
|
5279
5265
|
maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
|
|
5280
5266
|
minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
|
|
5281
5267
|
};
|
|
5282
|
-
return new Intl.NumberFormat(
|
|
5283
|
-
},
|
|
5284
|
-
const
|
|
5285
|
-
let
|
|
5286
|
-
for (const
|
|
5287
|
-
switch (
|
|
5268
|
+
return new Intl.NumberFormat(d, p).format(c);
|
|
5269
|
+
}, Qe = (c) => {
|
|
5270
|
+
const d = [];
|
|
5271
|
+
let p = "";
|
|
5272
|
+
for (const x of R)
|
|
5273
|
+
switch (x) {
|
|
5288
5274
|
default:
|
|
5289
|
-
|
|
5275
|
+
p += x;
|
|
5290
5276
|
break;
|
|
5291
5277
|
case "{":
|
|
5292
|
-
|
|
5278
|
+
p && d.push(p), p = "";
|
|
5293
5279
|
break;
|
|
5294
5280
|
case "}":
|
|
5295
|
-
const [
|
|
5296
|
-
if (
|
|
5297
|
-
|
|
5298
|
-
else if (
|
|
5299
|
-
let
|
|
5300
|
-
|
|
5301
|
-
let [
|
|
5302
|
-
|
|
5303
|
-
for (let
|
|
5304
|
-
(
|
|
5305
|
-
|
|
5281
|
+
const [T, C] = p.split("|");
|
|
5282
|
+
if (p = "", T.toLowerCase() === "currency")
|
|
5283
|
+
p = K;
|
|
5284
|
+
else if (T.toLowerCase() === "amount") {
|
|
5285
|
+
let v = ",", B = ".", N = 2;
|
|
5286
|
+
C && (C[0] !== " " && (v = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
|
|
5287
|
+
let [ee, Ce] = String(Math.floor(c * Nt(10, N)) / Nt(10, N)).split(".");
|
|
5288
|
+
p += ee[0];
|
|
5289
|
+
for (let X = 1; X < ee.length; ++X)
|
|
5290
|
+
(ee.length - X) % 3 === 0 ? p += v + ee[X] : p += ee[X];
|
|
5291
|
+
Ce && (p += B + Ce);
|
|
5306
5292
|
}
|
|
5307
|
-
|
|
5293
|
+
p && d.push(p), p = "";
|
|
5308
5294
|
break;
|
|
5309
5295
|
}
|
|
5310
|
-
return
|
|
5311
|
-
},
|
|
5312
|
-
var
|
|
5313
|
-
n(2,
|
|
5314
|
-
const c = new URL(`${
|
|
5296
|
+
return d.push(p), d.join("");
|
|
5297
|
+
}, be = () => Ut(this, null, function* () {
|
|
5298
|
+
var d, p, x;
|
|
5299
|
+
n(2, k = !0);
|
|
5300
|
+
const c = new URL(`${a}/v1/player/${i}/account`);
|
|
5315
5301
|
try {
|
|
5316
|
-
const
|
|
5302
|
+
const T = yield fetch(c, {
|
|
5317
5303
|
method: "GET",
|
|
5318
5304
|
headers: { "X-SessionID": o }
|
|
5319
|
-
}),
|
|
5320
|
-
if (
|
|
5321
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
5305
|
+
}), C = yield T.json();
|
|
5306
|
+
if (T.ok)
|
|
5307
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), fe = C.items, K = (d = fe.find((v) => v.displayName === "Casino")) == null ? void 0 : d.currency, n(1, w.Total = [{ amount: C.totalAmount[K] }], w), n(
|
|
5322
5308
|
1,
|
|
5323
|
-
|
|
5309
|
+
w.Real = [
|
|
5324
5310
|
{
|
|
5325
|
-
amount: (
|
|
5311
|
+
amount: (p = fe.find((v) => v.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
5326
5312
|
}
|
|
5327
5313
|
],
|
|
5328
|
-
|
|
5314
|
+
w
|
|
5329
5315
|
), n(
|
|
5330
5316
|
1,
|
|
5331
|
-
|
|
5317
|
+
w.Bonus = [
|
|
5332
5318
|
{
|
|
5333
|
-
amount: (
|
|
5319
|
+
amount: (x = fe.find((v) => v.displayName === "UBS")) == null ? void 0 : x.balanceAmount
|
|
5334
5320
|
}
|
|
5335
5321
|
],
|
|
5336
|
-
|
|
5322
|
+
w
|
|
5337
5323
|
);
|
|
5338
5324
|
else
|
|
5339
5325
|
throw new Error("Failed to fetch balance data !");
|
|
5340
|
-
} catch (
|
|
5341
|
-
console.log("Balance error: ",
|
|
5326
|
+
} catch (T) {
|
|
5327
|
+
console.log("Balance error: ", T);
|
|
5342
5328
|
} finally {
|
|
5343
|
-
n(2,
|
|
5329
|
+
n(2, k = !1);
|
|
5344
5330
|
}
|
|
5345
|
-
}),
|
|
5346
|
-
n(2,
|
|
5347
|
-
const c = new URL(`${
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
const
|
|
5351
|
-
if (
|
|
5352
|
-
|
|
5331
|
+
}), Je = () => {
|
|
5332
|
+
n(2, k = !0);
|
|
5333
|
+
const c = new URL(`${a}/v2/player/${i}/balance`), d = new Headers();
|
|
5334
|
+
d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((x) => x.json()).then((x) => {
|
|
5335
|
+
x[E] || n(10, E = ve[0]);
|
|
5336
|
+
const T = x.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
|
|
5337
|
+
if (K = T.currency, Z = !!T.productType, n(1, w.Total = [{ amount: 0 }], w), n(1, w.Real = [], w), n(1, w.Bonus = [], w), n(1, w.Credit = [], w), !Z) {
|
|
5338
|
+
ye = {
|
|
5353
5339
|
lastOrdinaryAfterAmount: 0,
|
|
5354
5340
|
showCreditLineAfterAmount: !1
|
|
5355
|
-
}, n(1,
|
|
5356
|
-
for (const
|
|
5357
|
-
switch (
|
|
5341
|
+
}, n(1, w.Total[0].amount = x[E][K], w);
|
|
5342
|
+
for (const v of x.items)
|
|
5343
|
+
switch (v.type) {
|
|
5358
5344
|
case "Bonus":
|
|
5359
|
-
|
|
5345
|
+
w.Bonus.length === 0 ? w.Bonus.push({ amount: v.amount }) : n(1, w.Bonus[0].amount += v.amount, w);
|
|
5360
5346
|
break;
|
|
5361
5347
|
case "Real":
|
|
5362
|
-
if (
|
|
5348
|
+
if (v.creditLine && w.Credit.length === 0 && w.Credit.push({ amount: v.creditLine }), E === "totalRealAmount")
|
|
5363
5349
|
continue;
|
|
5364
|
-
|
|
5350
|
+
w.Real.length === 0 ? w.Real.push({ amount: v.amount }) : n(1, w.Real[0].amount += v.amount, w);
|
|
5365
5351
|
break;
|
|
5366
5352
|
}
|
|
5367
|
-
for (const [
|
|
5368
|
-
|
|
5369
|
-
n(2,
|
|
5353
|
+
for (const [v, B] of Object.entries(w))
|
|
5354
|
+
B.length < 1 && delete w[v];
|
|
5355
|
+
n(2, k = !1);
|
|
5370
5356
|
return;
|
|
5371
5357
|
}
|
|
5372
|
-
|
|
5358
|
+
ye = {
|
|
5373
5359
|
Casino: {
|
|
5374
5360
|
lastOrdinaryAfterAmount: 0,
|
|
5375
5361
|
showCreditLineAfterAmount: !1
|
|
@@ -5379,202 +5365,202 @@ function Ea(e, t, n) {
|
|
|
5379
5365
|
showCreditLineAfterAmount: !1
|
|
5380
5366
|
}
|
|
5381
5367
|
};
|
|
5382
|
-
let
|
|
5383
|
-
S && S !== "All" && (
|
|
5384
|
-
for (const
|
|
5385
|
-
let
|
|
5386
|
-
switch (
|
|
5368
|
+
let C = x.items;
|
|
5369
|
+
S && S !== "All" && (C = x.items.filter((v) => v.productType === S));
|
|
5370
|
+
for (const v of C) {
|
|
5371
|
+
let B;
|
|
5372
|
+
switch (v.type) {
|
|
5387
5373
|
case "Bonus":
|
|
5388
|
-
|
|
5389
|
-
amount:
|
|
5390
|
-
productType:
|
|
5374
|
+
B = w.Bonus.findIndex((N) => N.productType === v.productType), B > 0 ? n(1, w.Bonus[B].amount += v.amount, w) : w.Bonus.push({
|
|
5375
|
+
amount: v.amount,
|
|
5376
|
+
productType: v.productType
|
|
5391
5377
|
});
|
|
5392
5378
|
break;
|
|
5393
5379
|
case "Real":
|
|
5394
|
-
|
|
5395
|
-
amount:
|
|
5396
|
-
productType:
|
|
5397
|
-
}),
|
|
5398
|
-
amount:
|
|
5399
|
-
productType:
|
|
5380
|
+
v.creditLine && w.Credit.push({
|
|
5381
|
+
amount: v.creditLine,
|
|
5382
|
+
productType: v.productType
|
|
5383
|
+
}), B = w.Real.findIndex((N) => N.productType === v.productType), B > 0 ? n(1, w.Real[B].amount += v.amount, w) : w.Real.push({
|
|
5384
|
+
amount: v.amount,
|
|
5385
|
+
productType: v.productType
|
|
5400
5386
|
});
|
|
5401
5387
|
break;
|
|
5402
5388
|
}
|
|
5403
5389
|
}
|
|
5404
|
-
|
|
5405
|
-
for (const [
|
|
5406
|
-
|
|
5407
|
-
n(2,
|
|
5408
|
-
}).catch((
|
|
5409
|
-
throw n(2,
|
|
5390
|
+
lt();
|
|
5391
|
+
for (const [v, B] of Object.entries(w))
|
|
5392
|
+
B.length < 1 && delete w[v];
|
|
5393
|
+
n(2, k = !1);
|
|
5394
|
+
}).catch((x) => {
|
|
5395
|
+
throw n(2, k = !1), console.log("Balance fetch error", x), new Error("Failed to fetch balance data!");
|
|
5410
5396
|
});
|
|
5411
|
-
},
|
|
5412
|
-
if (
|
|
5397
|
+
}, Pe = () => {
|
|
5398
|
+
if (F && F.close(), o.length < 1)
|
|
5413
5399
|
return;
|
|
5414
|
-
let c,
|
|
5400
|
+
let c, d;
|
|
5415
5401
|
switch (m) {
|
|
5416
5402
|
case "gm16":
|
|
5417
|
-
c = new URL(`${
|
|
5403
|
+
c = new URL(`${a}/v2/player/${i}/information/updates`), d = (T) => et(T);
|
|
5418
5404
|
break;
|
|
5419
5405
|
case "gmcore":
|
|
5420
|
-
c = new URL(`${
|
|
5406
|
+
c = new URL(`${a}/v1/player/${i}/balance/updates`), d = (T) => Ht(T);
|
|
5421
5407
|
break;
|
|
5422
5408
|
}
|
|
5423
|
-
const
|
|
5409
|
+
const p = {
|
|
5424
5410
|
accept: "text/event-stream",
|
|
5425
5411
|
"X-SessionId": o
|
|
5426
|
-
},
|
|
5427
|
-
|
|
5412
|
+
}, x = new Jo.EventSourcePolyfill(c, { headers: p });
|
|
5413
|
+
F = x, x.addEventListener("message", d);
|
|
5428
5414
|
}, ut = (c) => {
|
|
5429
|
-
let
|
|
5415
|
+
let d;
|
|
5430
5416
|
try {
|
|
5431
|
-
|
|
5432
|
-
} catch (
|
|
5433
|
-
console.log("Balance stream failed: ",
|
|
5417
|
+
d = JSON.parse(c);
|
|
5418
|
+
} catch (p) {
|
|
5419
|
+
console.log("Balance stream failed: ", p);
|
|
5434
5420
|
return;
|
|
5435
5421
|
}
|
|
5436
|
-
return
|
|
5422
|
+
return d;
|
|
5437
5423
|
}, Ht = (c) => {
|
|
5438
|
-
var
|
|
5439
|
-
const
|
|
5440
|
-
if (!
|
|
5441
|
-
|
|
5424
|
+
var T, C;
|
|
5425
|
+
const d = ut(c.data);
|
|
5426
|
+
if (!d) {
|
|
5427
|
+
Pe();
|
|
5442
5428
|
return;
|
|
5443
5429
|
}
|
|
5444
|
-
let
|
|
5445
|
-
const
|
|
5446
|
-
|
|
5447
|
-
balanceAmount: v
|
|
5448
|
-
})),
|
|
5449
|
-
}, Ke = (c,
|
|
5450
|
-
let
|
|
5451
|
-
switch (
|
|
5430
|
+
let p = "0";
|
|
5431
|
+
const x = d.balanceChange;
|
|
5432
|
+
fe = fe.map((v) => (x && x[v.id] && (v = Dt(It({}, v), {
|
|
5433
|
+
balanceAmount: x[v.id].afterAmount
|
|
5434
|
+
})), p = (parseFloat(v == null ? void 0 : v.balanceAmount) + parseFloat(p)).toString(), v)), n(1, w.Real = [{ amount: (T = fe[0]) == null ? void 0 : T.balanceAmount }], w), n(1, w.Bonus = [{ amount: (C = fe[1]) == null ? void 0 : C.balanceAmount }], w), n(1, w.Total = [{ amount: Number(p) }], w);
|
|
5435
|
+
}, Ke = (c, d, p) => {
|
|
5436
|
+
let x = null;
|
|
5437
|
+
switch (p.walletAccountType) {
|
|
5452
5438
|
case "Ordinary":
|
|
5453
|
-
(
|
|
5439
|
+
(p.afterAmount !== p.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = p.afterAmount, d.showCreditLineAfterAmount || (x = p.afterAmount));
|
|
5454
5440
|
break;
|
|
5455
5441
|
case "CreditLine":
|
|
5456
|
-
|
|
5442
|
+
p.afterAmount !== 0 ? (x = p.afterAmount, d.showCreditLineAfterAmount = !0) : (x = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
|
|
5457
5443
|
break;
|
|
5458
5444
|
default:
|
|
5459
|
-
|
|
5445
|
+
x = p.afterAmount;
|
|
5460
5446
|
}
|
|
5461
|
-
return
|
|
5462
|
-
},
|
|
5463
|
-
switch (
|
|
5447
|
+
return x === null ? c : x;
|
|
5448
|
+
}, lt = () => {
|
|
5449
|
+
switch (E) {
|
|
5464
5450
|
case "totalCashAmount":
|
|
5465
5451
|
let c = 0;
|
|
5466
|
-
for (const
|
|
5467
|
-
for (const
|
|
5468
|
-
c += Math.max(
|
|
5469
|
-
n(1,
|
|
5452
|
+
for (const p of ["Real", "Bonus"])
|
|
5453
|
+
for (const x of w[p])
|
|
5454
|
+
c += Math.max(x.amount, 0);
|
|
5455
|
+
n(1, w.Total[0].amount = c, w);
|
|
5470
5456
|
break;
|
|
5471
5457
|
case "totalRealAmount":
|
|
5472
|
-
if (!
|
|
5458
|
+
if (!Z)
|
|
5473
5459
|
return;
|
|
5474
|
-
let
|
|
5475
|
-
for (const
|
|
5476
|
-
|
|
5477
|
-
n(1,
|
|
5460
|
+
let d = 0;
|
|
5461
|
+
for (const p of w.Real)
|
|
5462
|
+
d += p.amount;
|
|
5463
|
+
n(1, w.Total[0].amount = d, w);
|
|
5478
5464
|
}
|
|
5479
5465
|
}, et = (c) => {
|
|
5480
|
-
const
|
|
5481
|
-
if (!
|
|
5482
|
-
|
|
5466
|
+
const d = ut(c.data);
|
|
5467
|
+
if (!d) {
|
|
5468
|
+
Pe();
|
|
5483
5469
|
return;
|
|
5484
5470
|
}
|
|
5485
|
-
if (
|
|
5471
|
+
if (Ae(d == null ? void 0 : d.type) || d.type !== "BALANCE_UPDATE_V2")
|
|
5486
5472
|
return;
|
|
5487
|
-
const
|
|
5488
|
-
for (const [
|
|
5489
|
-
if (
|
|
5490
|
-
for (const
|
|
5491
|
-
if (!
|
|
5492
|
-
|
|
5473
|
+
const p = d.body.balanceChange;
|
|
5474
|
+
for (const [x, T] of Object.entries(p))
|
|
5475
|
+
if (E === "totalRealAmount" && x === "Real" && !Z && n(1, w.Total[0].amount = Ke(w.Total[0].amount, ye, T), w), !!w[x])
|
|
5476
|
+
for (const C of w[x]) {
|
|
5477
|
+
if (!Z) {
|
|
5478
|
+
C.amount = x === "Real" ? Ke(C.amount, ye, T) : T.afterAmount;
|
|
5493
5479
|
continue;
|
|
5494
5480
|
}
|
|
5495
|
-
|
|
5481
|
+
T.productType === C.productType && (C.amount = x === "Real" ? Ke(C.amount, ye[C.productType], T) : T.afterAmount);
|
|
5496
5482
|
}
|
|
5497
|
-
|
|
5498
|
-
},
|
|
5499
|
-
|
|
5500
|
-
},
|
|
5501
|
-
|
|
5502
|
-
},
|
|
5503
|
-
switch (
|
|
5483
|
+
lt();
|
|
5484
|
+
}, Ne = () => {
|
|
5485
|
+
le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5486
|
+
}, Ae = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
|
|
5487
|
+
ve.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ve}. Using default value ('${ve[0]}').`), n(10, E = ve[0]));
|
|
5488
|
+
}, Ot = () => {
|
|
5489
|
+
switch (Qo(s), ae(), m) {
|
|
5504
5490
|
case "gmcore":
|
|
5505
|
-
|
|
5491
|
+
be();
|
|
5506
5492
|
break;
|
|
5507
5493
|
case "gm16":
|
|
5508
|
-
|
|
5494
|
+
Je();
|
|
5509
5495
|
break;
|
|
5510
5496
|
default:
|
|
5511
5497
|
throw Error(`Invalid apiversion attribute: ${m}`);
|
|
5512
5498
|
}
|
|
5513
|
-
}, ct = (c) => c.data && c.data.type === "LogoutSuccessfull" &&
|
|
5499
|
+
}, ct = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Mt = () => {
|
|
5514
5500
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5515
5501
|
};
|
|
5516
|
-
|
|
5517
|
-
window.
|
|
5502
|
+
Vr(() => (window.addEventListener("message", ct, !1), n(5, U = da(q)), () => {
|
|
5503
|
+
window.removeEventListener("message", ct), F && F.close();
|
|
5518
5504
|
}));
|
|
5519
|
-
const
|
|
5520
|
-
function
|
|
5521
|
-
|
|
5522
|
-
|
|
5505
|
+
const ht = () => le("balance"), h = () => le("closebalance"), y = () => Ne(), _ = () => le("closebalance");
|
|
5506
|
+
function g(c) {
|
|
5507
|
+
zt[c ? "unshift" : "push"](() => {
|
|
5508
|
+
D = c, n(0, D);
|
|
5523
5509
|
});
|
|
5524
5510
|
}
|
|
5525
5511
|
return e.$$set = (c) => {
|
|
5526
|
-
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13,
|
|
5512
|
+
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, a = c.endpoint), "lang" in c && n(14, s = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, S = c.displaybalanceoption), "totalcalculationmode" in c && n(10, E = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
|
|
5527
5513
|
}, e.$$.update = () => {
|
|
5528
5514
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5529
|
-
1603584 &&
|
|
5530
|
-
538624 &&
|
|
5531
|
-
262144 && b &&
|
|
5532
|
-
2 &&
|
|
5533
|
-
65537 &&
|
|
5534
|
-
131073 && f &&
|
|
5535
|
-
32769 &&
|
|
5515
|
+
1603584 && a && i && o && s && m && S && Ot(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5516
|
+
538624 && a && i && o && m && Pe(), e.$$.dirty[0] & /*translationurl*/
|
|
5517
|
+
262144 && b && me(), e.$$.dirty[0] & /*balances*/
|
|
5518
|
+
2 && w.Total && Mt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5519
|
+
65537 && u && D && ii(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5520
|
+
131073 && f && D && oi(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5521
|
+
32769 && l && D && ai(D, `${l}.Style`);
|
|
5536
5522
|
}, [
|
|
5537
|
-
U,
|
|
5538
|
-
x,
|
|
5539
|
-
Z,
|
|
5540
|
-
ee,
|
|
5541
5523
|
D,
|
|
5542
|
-
|
|
5524
|
+
w,
|
|
5525
|
+
k,
|
|
5526
|
+
oe,
|
|
5527
|
+
$,
|
|
5528
|
+
U,
|
|
5543
5529
|
r,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5530
|
+
le,
|
|
5531
|
+
Oe,
|
|
5532
|
+
Ne,
|
|
5533
|
+
E,
|
|
5548
5534
|
i,
|
|
5549
5535
|
o,
|
|
5550
|
-
s,
|
|
5551
5536
|
a,
|
|
5552
|
-
|
|
5537
|
+
s,
|
|
5553
5538
|
l,
|
|
5539
|
+
u,
|
|
5554
5540
|
f,
|
|
5555
5541
|
b,
|
|
5556
5542
|
m,
|
|
5557
5543
|
S,
|
|
5558
|
-
|
|
5559
|
-
|
|
5544
|
+
A,
|
|
5545
|
+
I,
|
|
5560
5546
|
W,
|
|
5561
5547
|
V,
|
|
5562
|
-
|
|
5548
|
+
R,
|
|
5549
|
+
ht,
|
|
5563
5550
|
h,
|
|
5564
5551
|
y,
|
|
5565
|
-
|
|
5566
|
-
g
|
|
5567
|
-
C
|
|
5552
|
+
_,
|
|
5553
|
+
g
|
|
5568
5554
|
];
|
|
5569
5555
|
}
|
|
5570
|
-
class
|
|
5556
|
+
class va extends ni {
|
|
5571
5557
|
constructor(t) {
|
|
5572
|
-
super(),
|
|
5558
|
+
super(), ei(
|
|
5573
5559
|
this,
|
|
5574
5560
|
t,
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5561
|
+
ya,
|
|
5562
|
+
ga,
|
|
5563
|
+
Zn,
|
|
5578
5564
|
{
|
|
5579
5565
|
userid: 11,
|
|
5580
5566
|
session: 12,
|
|
@@ -5593,7 +5579,7 @@ class _a extends oi {
|
|
|
5593
5579
|
minimumfractiondigits: 24,
|
|
5594
5580
|
customdisplayformat: 25
|
|
5595
5581
|
},
|
|
5596
|
-
|
|
5582
|
+
pa,
|
|
5597
5583
|
[-1, -1]
|
|
5598
5584
|
);
|
|
5599
5585
|
}
|
|
@@ -5601,100 +5587,100 @@ class _a extends oi {
|
|
|
5601
5587
|
return this.$$.ctx[11];
|
|
5602
5588
|
}
|
|
5603
5589
|
set userid(t) {
|
|
5604
|
-
this.$$set({ userid: t }),
|
|
5590
|
+
this.$$set({ userid: t }), Q();
|
|
5605
5591
|
}
|
|
5606
5592
|
get session() {
|
|
5607
5593
|
return this.$$.ctx[12];
|
|
5608
5594
|
}
|
|
5609
5595
|
set session(t) {
|
|
5610
|
-
this.$$set({ session: t }),
|
|
5596
|
+
this.$$set({ session: t }), Q();
|
|
5611
5597
|
}
|
|
5612
5598
|
get endpoint() {
|
|
5613
5599
|
return this.$$.ctx[13];
|
|
5614
5600
|
}
|
|
5615
5601
|
set endpoint(t) {
|
|
5616
|
-
this.$$set({ endpoint: t }),
|
|
5602
|
+
this.$$set({ endpoint: t }), Q();
|
|
5617
5603
|
}
|
|
5618
5604
|
get lang() {
|
|
5619
5605
|
return this.$$.ctx[14];
|
|
5620
5606
|
}
|
|
5621
5607
|
set lang(t) {
|
|
5622
|
-
this.$$set({ lang: t }),
|
|
5608
|
+
this.$$set({ lang: t }), Q();
|
|
5623
5609
|
}
|
|
5624
5610
|
get mbsource() {
|
|
5625
5611
|
return this.$$.ctx[15];
|
|
5626
5612
|
}
|
|
5627
5613
|
set mbsource(t) {
|
|
5628
|
-
this.$$set({ mbsource: t }),
|
|
5614
|
+
this.$$set({ mbsource: t }), Q();
|
|
5629
5615
|
}
|
|
5630
5616
|
get clientstyling() {
|
|
5631
5617
|
return this.$$.ctx[16];
|
|
5632
5618
|
}
|
|
5633
5619
|
set clientstyling(t) {
|
|
5634
|
-
this.$$set({ clientstyling: t }),
|
|
5620
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5635
5621
|
}
|
|
5636
5622
|
get clientstylingurl() {
|
|
5637
5623
|
return this.$$.ctx[17];
|
|
5638
5624
|
}
|
|
5639
5625
|
set clientstylingurl(t) {
|
|
5640
|
-
this.$$set({ clientstylingurl: t }),
|
|
5626
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5641
5627
|
}
|
|
5642
5628
|
get translationurl() {
|
|
5643
5629
|
return this.$$.ctx[18];
|
|
5644
5630
|
}
|
|
5645
5631
|
set translationurl(t) {
|
|
5646
|
-
this.$$set({ translationurl: t }),
|
|
5632
|
+
this.$$set({ translationurl: t }), Q();
|
|
5647
5633
|
}
|
|
5648
5634
|
get gmversion() {
|
|
5649
5635
|
return this.$$.ctx[19];
|
|
5650
5636
|
}
|
|
5651
5637
|
set gmversion(t) {
|
|
5652
|
-
this.$$set({ gmversion: t }),
|
|
5638
|
+
this.$$set({ gmversion: t }), Q();
|
|
5653
5639
|
}
|
|
5654
5640
|
get displaybalanceoption() {
|
|
5655
5641
|
return this.$$.ctx[20];
|
|
5656
5642
|
}
|
|
5657
5643
|
set displaybalanceoption(t) {
|
|
5658
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5644
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5659
5645
|
}
|
|
5660
5646
|
get totalcalculationmode() {
|
|
5661
5647
|
return this.$$.ctx[10];
|
|
5662
5648
|
}
|
|
5663
5649
|
set totalcalculationmode(t) {
|
|
5664
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5650
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5665
5651
|
}
|
|
5666
5652
|
get currencylocale() {
|
|
5667
5653
|
return this.$$.ctx[21];
|
|
5668
5654
|
}
|
|
5669
5655
|
set currencylocale(t) {
|
|
5670
|
-
this.$$set({ currencylocale: t }),
|
|
5656
|
+
this.$$set({ currencylocale: t }), Q();
|
|
5671
5657
|
}
|
|
5672
5658
|
get currencydisplay() {
|
|
5673
5659
|
return this.$$.ctx[22];
|
|
5674
5660
|
}
|
|
5675
5661
|
set currencydisplay(t) {
|
|
5676
|
-
this.$$set({ currencydisplay: t }),
|
|
5662
|
+
this.$$set({ currencydisplay: t }), Q();
|
|
5677
5663
|
}
|
|
5678
5664
|
get maximumfractiondigits() {
|
|
5679
5665
|
return this.$$.ctx[23];
|
|
5680
5666
|
}
|
|
5681
5667
|
set maximumfractiondigits(t) {
|
|
5682
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5668
|
+
this.$$set({ maximumfractiondigits: t }), Q();
|
|
5683
5669
|
}
|
|
5684
5670
|
get minimumfractiondigits() {
|
|
5685
5671
|
return this.$$.ctx[24];
|
|
5686
5672
|
}
|
|
5687
5673
|
set minimumfractiondigits(t) {
|
|
5688
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5674
|
+
this.$$set({ minimumfractiondigits: t }), Q();
|
|
5689
5675
|
}
|
|
5690
5676
|
get customdisplayformat() {
|
|
5691
5677
|
return this.$$.ctx[25];
|
|
5692
5678
|
}
|
|
5693
5679
|
set customdisplayformat(t) {
|
|
5694
|
-
this.$$set({ customdisplayformat: t }),
|
|
5680
|
+
this.$$set({ customdisplayformat: t }), Q();
|
|
5695
5681
|
}
|
|
5696
5682
|
}
|
|
5697
|
-
|
|
5683
|
+
ti(va, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5698
5684
|
export {
|
|
5699
|
-
|
|
5685
|
+
va as default
|
|
5700
5686
|
};
|