@everymatrix/player-account-balance-modal-nd 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountBalanceModalNd-DhxTyQKU.js → PlayerAccountBalanceModalNd-B7S7eU3k.js} +1288 -1260
- package/components/{PlayerAccountBalanceModalNd-Bmecg9Hv.js → PlayerAccountBalanceModalNd-BfEhgy99.js} +1418 -1390
- package/components/PlayerAccountBalanceModalNd-aNPhb5wJ.cjs +28 -0
- 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-B0yfSLU3.cjs +0 -15
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Rt = (e, t, n) => t in e ?
|
|
1
|
+
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var un = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Rt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
mr.call(t, n) && Rt(e, n, t[n]);
|
|
8
|
+
if (un)
|
|
9
|
+
for (var n of un(t))
|
|
10
|
+
gr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Mt = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Mt = (e, t) => dr(e, pr(t));
|
|
13
|
+
var ue = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var Nt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var
|
|
15
|
+
var a = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, s);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ce() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Nn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function cn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function je(e) {
|
|
39
|
+
e.forEach(Nn);
|
|
40
40
|
}
|
|
41
41
|
function tn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function In(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function br(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return ce;
|
|
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 yr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Pn(t, n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function H(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function vr(e, t, n) {
|
|
66
|
+
const r = Er(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const i = k("style");
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
69
|
+
i.id = t, i.textContent = n, xr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (!e)
|
|
72
|
+
function Er(e) {
|
|
73
|
+
if (!e)
|
|
74
|
+
return document;
|
|
74
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
76
|
return t && /** @type {ShadowRoot} */
|
|
76
77
|
t.host ? (
|
|
@@ -78,52 +79,52 @@ function yr(e) {
|
|
|
78
79
|
t
|
|
79
80
|
) : e.ownerDocument;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
82
|
+
function xr(e, t) {
|
|
83
|
+
return H(
|
|
83
84
|
/** @type {Document} */
|
|
84
85
|
e.head || e,
|
|
85
86
|
t
|
|
86
87
|
), t.sheet;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function be(e, t, n) {
|
|
89
90
|
e.insertBefore(t, n || null);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function me(e) {
|
|
92
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function Dn(e, t) {
|
|
95
96
|
for (let n = 0; n < e.length; n += 1)
|
|
96
97
|
e[n] && e[n].d(t);
|
|
97
98
|
}
|
|
98
99
|
function k(e) {
|
|
99
100
|
return document.createElement(e);
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function hn(e) {
|
|
102
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function pe(e) {
|
|
105
106
|
return document.createTextNode(e);
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
108
|
+
function ge() {
|
|
109
|
+
return pe(" ");
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
111
|
+
function _r() {
|
|
112
|
+
return pe("");
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
+
function gt(e, t, n, r) {
|
|
114
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function M(e, t, n) {
|
|
117
118
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function Br(e) {
|
|
120
121
|
return Array.from(e.childNodes);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function we(e, t) {
|
|
123
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
124
125
|
t);
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
127
128
|
const t = {};
|
|
128
129
|
return e.childNodes.forEach(
|
|
129
130
|
/** @param {Element} node */
|
|
@@ -132,96 +133,98 @@ function _r(e) {
|
|
|
132
133
|
}
|
|
133
134
|
), t;
|
|
134
135
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
136
|
+
let et;
|
|
137
|
+
function Ke(e) {
|
|
138
|
+
et = e;
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!
|
|
141
|
-
|
|
140
|
+
function wr() {
|
|
141
|
+
if (!et)
|
|
142
|
+
throw new Error("Function called outside component initialization");
|
|
143
|
+
return et;
|
|
142
144
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
+
function Sr(e) {
|
|
146
|
+
wr().$$.on_mount.push(e);
|
|
145
147
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
148
|
+
const Pe = [], jt = [];
|
|
149
|
+
let De = [];
|
|
150
|
+
const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
149
151
|
let kt = !1;
|
|
150
|
-
function
|
|
151
|
-
kt || (kt = !0,
|
|
152
|
+
function Cr() {
|
|
153
|
+
kt || (kt = !0, Ar.then(J));
|
|
152
154
|
}
|
|
153
155
|
function Vt(e) {
|
|
154
|
-
|
|
156
|
+
De.push(e);
|
|
155
157
|
}
|
|
156
158
|
const It = /* @__PURE__ */ new Set();
|
|
157
|
-
let
|
|
159
|
+
let Ne = 0;
|
|
158
160
|
function J() {
|
|
159
|
-
if (
|
|
161
|
+
if (Ne !== 0)
|
|
160
162
|
return;
|
|
161
|
-
const e =
|
|
163
|
+
const e = et;
|
|
162
164
|
do {
|
|
163
165
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const t =
|
|
166
|
-
|
|
166
|
+
for (; Ne < Pe.length; ) {
|
|
167
|
+
const t = Pe[Ne];
|
|
168
|
+
Ne++, Ke(t), Hr(t.$$);
|
|
167
169
|
}
|
|
168
170
|
} catch (t) {
|
|
169
|
-
throw
|
|
171
|
+
throw Pe.length = 0, Ne = 0, t;
|
|
170
172
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
for (Ke(null), Pe.length = 0, Ne = 0; jt.length; )
|
|
174
|
+
jt.pop()();
|
|
175
|
+
for (let t = 0; t < De.length; t += 1) {
|
|
176
|
+
const n = De[t];
|
|
174
177
|
It.has(n) || (It.add(n), n());
|
|
175
178
|
}
|
|
176
|
-
|
|
177
|
-
} while (
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
kt = !1, It.clear(),
|
|
179
|
+
De.length = 0;
|
|
180
|
+
} while (Pe.length);
|
|
181
|
+
for (; fn.length; )
|
|
182
|
+
fn.pop()();
|
|
183
|
+
kt = !1, It.clear(), Ke(e);
|
|
181
184
|
}
|
|
182
|
-
function
|
|
185
|
+
function Hr(e) {
|
|
183
186
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
187
|
+
e.update(), je(e.before_update);
|
|
185
188
|
const t = e.dirty;
|
|
186
189
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
|
|
187
190
|
}
|
|
188
191
|
}
|
|
189
|
-
function
|
|
192
|
+
function Or(e) {
|
|
190
193
|
const t = [], n = [];
|
|
191
|
-
|
|
194
|
+
De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
|
|
192
195
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
196
|
+
const Rr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Lr(e, t) {
|
|
198
|
+
e && e.i && (Rr.delete(e), e.i(t));
|
|
196
199
|
}
|
|
197
|
-
function
|
|
200
|
+
function bt(e) {
|
|
198
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function Mr(e, t, n) {
|
|
201
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
202
205
|
r && r.m(t, n), Vt(() => {
|
|
203
|
-
const
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
206
|
+
const a = e.$$.on_mount.map(Nn).filter(tn);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : je(a), e.$$.on_mount = [];
|
|
205
208
|
}), i.forEach(Vt);
|
|
206
209
|
}
|
|
207
|
-
function
|
|
210
|
+
function Nr(e, t) {
|
|
208
211
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (
|
|
212
|
+
n.fragment !== null && (Or(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
210
213
|
}
|
|
211
|
-
function
|
|
212
|
-
e.$$.dirty[0] === -1 && (
|
|
214
|
+
function Ir(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (Pe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
216
|
}
|
|
214
|
-
function
|
|
215
|
-
const c =
|
|
216
|
-
|
|
217
|
+
function Pr(e, t, n, r, i, a, s = null, o = [-1]) {
|
|
218
|
+
const c = et;
|
|
219
|
+
Ke(e);
|
|
217
220
|
const u = e.$$ = {
|
|
218
221
|
fragment: null,
|
|
219
222
|
ctx: [],
|
|
220
223
|
// state
|
|
221
|
-
props:
|
|
222
|
-
update:
|
|
224
|
+
props: a,
|
|
225
|
+
update: ce,
|
|
223
226
|
not_equal: i,
|
|
224
|
-
bound:
|
|
227
|
+
bound: cn(),
|
|
225
228
|
// lifecycle
|
|
226
229
|
on_mount: [],
|
|
227
230
|
on_destroy: [],
|
|
@@ -230,48 +233,48 @@ function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
230
233
|
after_update: [],
|
|
231
234
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
232
235
|
// everything else
|
|
233
|
-
callbacks:
|
|
234
|
-
dirty:
|
|
236
|
+
callbacks: cn(),
|
|
237
|
+
dirty: o,
|
|
235
238
|
skip_bound: !1,
|
|
236
239
|
root: t.target || c.$$.root
|
|
237
240
|
};
|
|
238
|
-
|
|
239
|
-
let
|
|
240
|
-
if (u.ctx = n ? n(e, t.props || {}, (g, b, ...
|
|
241
|
-
const
|
|
242
|
-
return u.ctx && i(u.ctx[g], u.ctx[g] =
|
|
243
|
-
}) : [], u.update(),
|
|
241
|
+
s && s(u.root);
|
|
242
|
+
let f = !1;
|
|
243
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ...B) => {
|
|
244
|
+
const T = B.length ? B[0] : b;
|
|
245
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = T) && (!u.skip_bound && u.bound[g] && u.bound[g](T), f && Ir(e, g)), b;
|
|
246
|
+
}) : [], u.update(), f = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
244
247
|
if (t.hydrate) {
|
|
245
|
-
const g =
|
|
246
|
-
u.fragment && u.fragment.l(g), g.forEach(
|
|
248
|
+
const g = Br(t.target);
|
|
249
|
+
u.fragment && u.fragment.l(g), g.forEach(me);
|
|
247
250
|
} else
|
|
248
251
|
u.fragment && u.fragment.c();
|
|
249
|
-
t.intro &&
|
|
252
|
+
t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), J();
|
|
250
253
|
}
|
|
251
|
-
|
|
254
|
+
Ke(c);
|
|
252
255
|
}
|
|
253
|
-
let
|
|
254
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Un;
|
|
257
|
+
typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
255
258
|
constructor(t, n, r) {
|
|
256
259
|
super();
|
|
257
260
|
/** The Svelte component constructor */
|
|
258
|
-
|
|
261
|
+
ue(this, "$$ctor");
|
|
259
262
|
/** Slots */
|
|
260
|
-
|
|
263
|
+
ue(this, "$$s");
|
|
261
264
|
/** The Svelte component instance */
|
|
262
|
-
|
|
265
|
+
ue(this, "$$c");
|
|
263
266
|
/** Whether or not the custom element is connected */
|
|
264
|
-
|
|
267
|
+
ue(this, "$$cn", !1);
|
|
265
268
|
/** Component props data */
|
|
266
|
-
|
|
269
|
+
ue(this, "$$d", {});
|
|
267
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
268
|
-
|
|
271
|
+
ue(this, "$$r", !1);
|
|
269
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
270
|
-
|
|
273
|
+
ue(this, "$$p_d", {});
|
|
271
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
272
|
-
|
|
275
|
+
ue(this, "$$l", {});
|
|
273
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
274
|
-
|
|
277
|
+
ue(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
275
278
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
276
279
|
}
|
|
277
280
|
addEventListener(t, n, r) {
|
|
@@ -290,37 +293,37 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
290
293
|
connectedCallback() {
|
|
291
294
|
return Nt(this, null, function* () {
|
|
292
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
293
|
-
let t = function(
|
|
296
|
+
let t = function(a) {
|
|
294
297
|
return () => {
|
|
295
|
-
let
|
|
298
|
+
let s;
|
|
296
299
|
return {
|
|
297
300
|
c: function() {
|
|
298
|
-
|
|
301
|
+
s = k("slot"), a !== "default" && M(s, "name", a);
|
|
299
302
|
},
|
|
300
303
|
/**
|
|
301
304
|
* @param {HTMLElement} target
|
|
302
305
|
* @param {HTMLElement} [anchor]
|
|
303
306
|
*/
|
|
304
|
-
m: function(u,
|
|
305
|
-
|
|
307
|
+
m: function(u, f) {
|
|
308
|
+
be(u, s, f);
|
|
306
309
|
},
|
|
307
310
|
d: function(u) {
|
|
308
|
-
u &&
|
|
311
|
+
u && me(s);
|
|
309
312
|
}
|
|
310
313
|
};
|
|
311
314
|
};
|
|
312
315
|
};
|
|
313
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
314
317
|
return;
|
|
315
|
-
const n = {}, r =
|
|
316
|
-
for (const
|
|
317
|
-
|
|
318
|
-
for (const
|
|
319
|
-
const
|
|
320
|
-
|
|
318
|
+
const n = {}, r = Tr(this);
|
|
319
|
+
for (const a of this.$$s)
|
|
320
|
+
a in r && (n[a] = [t(a)]);
|
|
321
|
+
for (const a of this.attributes) {
|
|
322
|
+
const s = this.$$g_p(a.name);
|
|
323
|
+
s in this.$$d || (this.$$d[s] = ft(s, a.value, this.$$p_d, "toProp"));
|
|
321
324
|
}
|
|
322
|
-
for (const
|
|
323
|
-
!(
|
|
325
|
+
for (const a in this.$$p_d)
|
|
326
|
+
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
324
327
|
this.$$c = new this.$$ctor({
|
|
325
328
|
target: this.shadowRoot || this,
|
|
326
329
|
props: Mt(Lt({}, this.$$d), {
|
|
@@ -332,23 +335,23 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
332
335
|
});
|
|
333
336
|
const i = () => {
|
|
334
337
|
this.$$r = !0;
|
|
335
|
-
for (const
|
|
336
|
-
if (this.$$d[
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
this.$$d[
|
|
338
|
+
for (const a in this.$$p_d)
|
|
339
|
+
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
340
|
+
const s = ft(
|
|
341
|
+
a,
|
|
342
|
+
this.$$d[a],
|
|
340
343
|
this.$$p_d,
|
|
341
344
|
"toAttribute"
|
|
342
345
|
);
|
|
343
|
-
|
|
346
|
+
s == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, s);
|
|
344
347
|
}
|
|
345
348
|
this.$$r = !1;
|
|
346
349
|
};
|
|
347
350
|
this.$$c.$$.after_update.push(i), i();
|
|
348
|
-
for (const
|
|
349
|
-
for (const
|
|
350
|
-
const
|
|
351
|
-
this.$$l_u.set(
|
|
351
|
+
for (const a in this.$$l)
|
|
352
|
+
for (const s of this.$$l[a]) {
|
|
353
|
+
const o = this.$$c.$on(a, s);
|
|
354
|
+
this.$$l_u.set(s, o);
|
|
352
355
|
}
|
|
353
356
|
this.$$l = {};
|
|
354
357
|
}
|
|
@@ -358,7 +361,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
358
361
|
// and setting attributes through setAttribute etc, this is helpful
|
|
359
362
|
attributeChangedCallback(t, n, r) {
|
|
360
363
|
var i;
|
|
361
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
364
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
362
365
|
}
|
|
363
366
|
disconnectedCallback() {
|
|
364
367
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -371,9 +374,9 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
371
374
|
) || t;
|
|
372
375
|
}
|
|
373
376
|
});
|
|
374
|
-
function
|
|
375
|
-
var
|
|
376
|
-
const i = (
|
|
377
|
+
function ft(e, t, n, r) {
|
|
378
|
+
var a;
|
|
379
|
+
const i = (a = n[e]) == null ? void 0 : a.type;
|
|
377
380
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
378
381
|
return t;
|
|
379
382
|
if (r === "toAttribute")
|
|
@@ -401,38 +404,38 @@ function ht(e, t, n, r) {
|
|
|
401
404
|
return t;
|
|
402
405
|
}
|
|
403
406
|
}
|
|
404
|
-
function
|
|
405
|
-
let
|
|
407
|
+
function Dr(e, t, n, r, i, a) {
|
|
408
|
+
let s = class extends Un {
|
|
406
409
|
constructor() {
|
|
407
410
|
super(e, n, i), this.$$p_d = t;
|
|
408
411
|
}
|
|
409
412
|
static get observedAttributes() {
|
|
410
413
|
return Object.keys(t).map(
|
|
411
|
-
(
|
|
414
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
412
415
|
);
|
|
413
416
|
}
|
|
414
417
|
};
|
|
415
|
-
return Object.keys(t).forEach((
|
|
416
|
-
Object.defineProperty(
|
|
418
|
+
return Object.keys(t).forEach((o) => {
|
|
419
|
+
Object.defineProperty(s.prototype, o, {
|
|
417
420
|
get() {
|
|
418
|
-
return this.$$c &&
|
|
421
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
419
422
|
},
|
|
420
423
|
set(c) {
|
|
421
424
|
var u;
|
|
422
|
-
c =
|
|
425
|
+
c = ft(o, c, t), this.$$d[o] = c, (u = this.$$c) == null || u.$set({ [o]: c });
|
|
423
426
|
}
|
|
424
427
|
});
|
|
425
|
-
}), r.forEach((
|
|
426
|
-
Object.defineProperty(
|
|
428
|
+
}), r.forEach((o) => {
|
|
429
|
+
Object.defineProperty(s.prototype, o, {
|
|
427
430
|
get() {
|
|
428
431
|
var c;
|
|
429
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
432
|
+
return (c = this.$$c) == null ? void 0 : c[o];
|
|
430
433
|
}
|
|
431
434
|
});
|
|
432
435
|
}), e.element = /** @type {any} */
|
|
433
|
-
|
|
436
|
+
s, s;
|
|
434
437
|
}
|
|
435
|
-
class
|
|
438
|
+
class Ur {
|
|
436
439
|
constructor() {
|
|
437
440
|
/**
|
|
438
441
|
* ### PRIVATE API
|
|
@@ -441,7 +444,7 @@ class Pr {
|
|
|
441
444
|
*
|
|
442
445
|
* @type {any}
|
|
443
446
|
*/
|
|
444
|
-
|
|
447
|
+
ue(this, "$$");
|
|
445
448
|
/**
|
|
446
449
|
* ### PRIVATE API
|
|
447
450
|
*
|
|
@@ -449,11 +452,11 @@ class Pr {
|
|
|
449
452
|
*
|
|
450
453
|
* @type {any}
|
|
451
454
|
*/
|
|
452
|
-
|
|
455
|
+
ue(this, "$$set");
|
|
453
456
|
}
|
|
454
457
|
/** @returns {void} */
|
|
455
458
|
$destroy() {
|
|
456
|
-
|
|
459
|
+
Nr(this, 1), this.$destroy = ce;
|
|
457
460
|
}
|
|
458
461
|
/**
|
|
459
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -463,7 +466,7 @@ class Pr {
|
|
|
463
466
|
*/
|
|
464
467
|
$on(t, n) {
|
|
465
468
|
if (!tn(n))
|
|
466
|
-
return
|
|
469
|
+
return ce;
|
|
467
470
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
468
471
|
return r.push(n), () => {
|
|
469
472
|
const i = r.indexOf(n);
|
|
@@ -475,18 +478,18 @@ class Pr {
|
|
|
475
478
|
* @returns {void}
|
|
476
479
|
*/
|
|
477
480
|
$set(t) {
|
|
478
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
479
482
|
}
|
|
480
483
|
}
|
|
481
|
-
const
|
|
482
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
483
|
-
function
|
|
484
|
+
const Fr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
486
|
+
function Gr(e, t) {
|
|
484
487
|
if (e) {
|
|
485
488
|
const n = document.createElement("style");
|
|
486
489
|
n.innerHTML = t, e.appendChild(n);
|
|
487
490
|
}
|
|
488
491
|
}
|
|
489
|
-
function
|
|
492
|
+
function $r(e, t) {
|
|
490
493
|
const n = new URL(t);
|
|
491
494
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
492
495
|
const i = document.createElement("style");
|
|
@@ -495,7 +498,7 @@ function Fr(e, t) {
|
|
|
495
498
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
496
499
|
});
|
|
497
500
|
}
|
|
498
|
-
function
|
|
501
|
+
function jr(e, t, n) {
|
|
499
502
|
if (window.emMessageBus) {
|
|
500
503
|
const r = document.createElement("style");
|
|
501
504
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -503,152 +506,167 @@ function Gr(e, t, n) {
|
|
|
503
506
|
});
|
|
504
507
|
}
|
|
505
508
|
}
|
|
506
|
-
const
|
|
507
|
-
function
|
|
509
|
+
const Ie = [];
|
|
510
|
+
function kr(e, t) {
|
|
508
511
|
return {
|
|
509
|
-
subscribe:
|
|
512
|
+
subscribe: Et(e, t).subscribe
|
|
510
513
|
};
|
|
511
514
|
}
|
|
512
|
-
function
|
|
515
|
+
function Et(e, t = ce) {
|
|
513
516
|
let n;
|
|
514
517
|
const r = /* @__PURE__ */ new Set();
|
|
515
|
-
function i(
|
|
516
|
-
if (
|
|
517
|
-
const c = !
|
|
518
|
+
function i(o) {
|
|
519
|
+
if (In(e, o) && (e = o, n)) {
|
|
520
|
+
const c = !Ie.length;
|
|
518
521
|
for (const u of r)
|
|
519
|
-
u[1](),
|
|
522
|
+
u[1](), Ie.push(u, e);
|
|
520
523
|
if (c) {
|
|
521
|
-
for (let u = 0; u <
|
|
522
|
-
|
|
523
|
-
|
|
524
|
+
for (let u = 0; u < Ie.length; u += 2)
|
|
525
|
+
Ie[u][0](Ie[u + 1]);
|
|
526
|
+
Ie.length = 0;
|
|
524
527
|
}
|
|
525
528
|
}
|
|
526
529
|
}
|
|
527
|
-
function o
|
|
528
|
-
i(
|
|
530
|
+
function a(o) {
|
|
531
|
+
i(o(e));
|
|
529
532
|
}
|
|
530
|
-
function
|
|
531
|
-
const u = [
|
|
532
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
533
|
+
function s(o, c = ce) {
|
|
534
|
+
const u = [o, c];
|
|
535
|
+
return r.add(u), r.size === 1 && (n = t(i, a) || ce), o(e), () => {
|
|
533
536
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
534
537
|
};
|
|
535
538
|
}
|
|
536
|
-
return { set: i, update:
|
|
539
|
+
return { set: i, update: a, subscribe: s };
|
|
537
540
|
}
|
|
538
|
-
function
|
|
541
|
+
function ke(e, t, n) {
|
|
539
542
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
540
543
|
if (!i.every(Boolean))
|
|
541
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
542
|
-
const
|
|
543
|
-
return
|
|
545
|
+
const a = t.length < 2;
|
|
546
|
+
return kr(n, (s, o) => {
|
|
544
547
|
let c = !1;
|
|
545
548
|
const u = [];
|
|
546
|
-
let
|
|
549
|
+
let f = 0, g = ce;
|
|
547
550
|
const b = () => {
|
|
548
|
-
if (
|
|
551
|
+
if (f)
|
|
549
552
|
return;
|
|
550
553
|
g();
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
(
|
|
555
|
-
|
|
556
|
-
(
|
|
557
|
-
u[
|
|
554
|
+
const T = t(r ? u[0] : u, s, o);
|
|
555
|
+
a ? s(T) : g = tn(T) ? T : ce;
|
|
556
|
+
}, B = i.map(
|
|
557
|
+
(T, S) => Pn(
|
|
558
|
+
T,
|
|
559
|
+
(_) => {
|
|
560
|
+
u[S] = _, f &= ~(1 << S), c && b();
|
|
558
561
|
},
|
|
559
562
|
() => {
|
|
560
|
-
|
|
563
|
+
f |= 1 << S;
|
|
561
564
|
}
|
|
562
565
|
)
|
|
563
566
|
);
|
|
564
567
|
return c = !0, b(), function() {
|
|
565
|
-
|
|
568
|
+
je(B), g(), c = !1;
|
|
566
569
|
};
|
|
567
570
|
});
|
|
568
571
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
572
|
+
var Vr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
573
|
+
function Xr(e) {
|
|
571
574
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
572
575
|
}
|
|
573
|
-
var
|
|
574
|
-
return
|
|
576
|
+
var zr = function(t) {
|
|
577
|
+
return Wr(t) && !Zr(t);
|
|
575
578
|
};
|
|
576
|
-
function
|
|
579
|
+
function Wr(e) {
|
|
577
580
|
return !!e && typeof e == "object";
|
|
578
581
|
}
|
|
579
|
-
function
|
|
582
|
+
function Zr(e) {
|
|
580
583
|
var t = Object.prototype.toString.call(e);
|
|
581
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
584
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
582
585
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
return e.$$typeof ===
|
|
586
|
+
var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
|
|
587
|
+
function Jr(e) {
|
|
588
|
+
return e.$$typeof === Qr;
|
|
586
589
|
}
|
|
587
|
-
function
|
|
590
|
+
function Yr(e) {
|
|
588
591
|
return Array.isArray(e) ? [] : {};
|
|
589
592
|
}
|
|
590
|
-
function
|
|
591
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
593
|
+
function tt(e, t) {
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Yr(e), e, t) : e;
|
|
592
595
|
}
|
|
593
|
-
function
|
|
596
|
+
function Kr(e, t, n) {
|
|
594
597
|
return e.concat(t).map(function(r) {
|
|
595
|
-
return
|
|
598
|
+
return tt(r, n);
|
|
596
599
|
});
|
|
597
600
|
}
|
|
598
|
-
function
|
|
601
|
+
function ei(e, t) {
|
|
599
602
|
if (!t.customMerge)
|
|
600
|
-
return
|
|
603
|
+
return Ue;
|
|
601
604
|
var n = t.customMerge(e);
|
|
602
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : Ue;
|
|
603
606
|
}
|
|
604
|
-
function
|
|
607
|
+
function ti(e) {
|
|
605
608
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
606
609
|
return Object.propertyIsEnumerable.call(e, t);
|
|
607
610
|
}) : [];
|
|
608
611
|
}
|
|
609
|
-
function
|
|
610
|
-
return Object.keys(e).concat(
|
|
612
|
+
function dn(e) {
|
|
613
|
+
return Object.keys(e).concat(ti(e));
|
|
611
614
|
}
|
|
612
|
-
function
|
|
615
|
+
function Fn(e, t) {
|
|
613
616
|
try {
|
|
614
617
|
return t in e;
|
|
615
618
|
} catch (n) {
|
|
616
619
|
return !1;
|
|
617
620
|
}
|
|
618
621
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
622
|
+
function ni(e, t) {
|
|
623
|
+
return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
621
624
|
}
|
|
622
|
-
function
|
|
625
|
+
function ri(e, t, n) {
|
|
623
626
|
var r = {};
|
|
624
|
-
return n.isMergeableObject(e) &&
|
|
625
|
-
r[i] =
|
|
626
|
-
}),
|
|
627
|
-
|
|
627
|
+
return n.isMergeableObject(e) && dn(e).forEach(function(i) {
|
|
628
|
+
r[i] = tt(e[i], n);
|
|
629
|
+
}), dn(t).forEach(function(i) {
|
|
630
|
+
ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
|
|
628
631
|
}), r;
|
|
629
632
|
}
|
|
630
|
-
function
|
|
631
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
632
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
633
|
-
return
|
|
633
|
+
function Ue(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = tt;
|
|
635
|
+
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
636
|
+
return a ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : tt(t, n);
|
|
634
637
|
}
|
|
635
|
-
|
|
638
|
+
Ue.all = function(t, n) {
|
|
636
639
|
if (!Array.isArray(t))
|
|
637
640
|
throw new Error("first argument should be an array");
|
|
638
641
|
return t.reduce(function(r, i) {
|
|
639
|
-
return
|
|
642
|
+
return Ue(r, i, n);
|
|
640
643
|
}, {});
|
|
641
644
|
};
|
|
642
|
-
var
|
|
643
|
-
const
|
|
645
|
+
var ii = Ue, ai = ii;
|
|
646
|
+
const oi = /* @__PURE__ */ Xr(ai);
|
|
647
|
+
/*! *****************************************************************************
|
|
648
|
+
Copyright (c) Microsoft Corporation.
|
|
649
|
+
|
|
650
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
651
|
+
purpose with or without fee is hereby granted.
|
|
652
|
+
|
|
653
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
654
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
655
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
656
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
657
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
658
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
660
|
+
***************************************************************************** */
|
|
644
661
|
var Xt = function(e, t) {
|
|
645
662
|
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
646
663
|
n.__proto__ = r;
|
|
647
664
|
} || function(n, r) {
|
|
648
|
-
for (var i in r)
|
|
665
|
+
for (var i in r)
|
|
666
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
649
667
|
}, Xt(e, t);
|
|
650
668
|
};
|
|
651
|
-
function
|
|
669
|
+
function xt(e, t) {
|
|
652
670
|
if (typeof t != "function" && t !== null)
|
|
653
671
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
654
672
|
Xt(e, t);
|
|
@@ -661,121 +679,126 @@ var I = function() {
|
|
|
661
679
|
return I = Object.assign || function(t) {
|
|
662
680
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
663
681
|
n = arguments[r];
|
|
664
|
-
for (var
|
|
682
|
+
for (var a in n)
|
|
683
|
+
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
665
684
|
}
|
|
666
685
|
return t;
|
|
667
686
|
}, I.apply(this, arguments);
|
|
668
687
|
};
|
|
669
|
-
function
|
|
688
|
+
function si(e, t) {
|
|
670
689
|
var n = {};
|
|
671
|
-
for (var r in e)
|
|
690
|
+
for (var r in e)
|
|
691
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
672
692
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
673
693
|
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
674
694
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
675
695
|
return n;
|
|
676
696
|
}
|
|
677
697
|
function Pt(e, t, n) {
|
|
678
|
-
if (
|
|
679
|
-
(
|
|
680
|
-
|
|
698
|
+
if (arguments.length === 2)
|
|
699
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
700
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
701
|
+
return e.concat(a || t);
|
|
681
702
|
}
|
|
682
703
|
function Dt(e, t) {
|
|
683
|
-
var n = t && t.cache ? t.cache :
|
|
704
|
+
var n = t && t.cache ? t.cache : di, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ui;
|
|
684
705
|
return i(e, {
|
|
685
706
|
cache: n,
|
|
686
707
|
serializer: r
|
|
687
708
|
});
|
|
688
709
|
}
|
|
689
|
-
function
|
|
710
|
+
function li(e) {
|
|
690
711
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
712
|
}
|
|
692
|
-
function
|
|
693
|
-
var i =
|
|
694
|
-
return typeof
|
|
713
|
+
function Gn(e, t, n, r) {
|
|
714
|
+
var i = li(r) ? r : n(r), a = t.get(i);
|
|
715
|
+
return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
|
|
695
716
|
}
|
|
696
|
-
function
|
|
697
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
698
|
-
return typeof
|
|
717
|
+
function $n(e, t, n) {
|
|
718
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
719
|
+
return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
699
720
|
}
|
|
700
|
-
function
|
|
721
|
+
function nn(e, t, n, r, i) {
|
|
701
722
|
return n.bind(t, e, r, i);
|
|
702
723
|
}
|
|
703
|
-
function li(e, t) {
|
|
704
|
-
var n = e.length === 1 ? si : Un;
|
|
705
|
-
return Fn(e, this, n, t.cache.create(), t.serializer);
|
|
706
|
-
}
|
|
707
724
|
function ui(e, t) {
|
|
708
|
-
|
|
725
|
+
var n = e.length === 1 ? Gn : $n;
|
|
726
|
+
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
727
|
+
}
|
|
728
|
+
function ci(e, t) {
|
|
729
|
+
return nn(e, this, $n, t.cache.create(), t.serializer);
|
|
709
730
|
}
|
|
710
|
-
|
|
731
|
+
function hi(e, t) {
|
|
732
|
+
return nn(e, this, Gn, t.cache.create(), t.serializer);
|
|
733
|
+
}
|
|
734
|
+
var fi = function() {
|
|
711
735
|
return JSON.stringify(arguments);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}()
|
|
724
|
-
), fi = {
|
|
736
|
+
};
|
|
737
|
+
function rn() {
|
|
738
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
739
|
+
}
|
|
740
|
+
rn.prototype.get = function(e) {
|
|
741
|
+
return this.cache[e];
|
|
742
|
+
};
|
|
743
|
+
rn.prototype.set = function(e, t) {
|
|
744
|
+
this.cache[e] = t;
|
|
745
|
+
};
|
|
746
|
+
var di = {
|
|
725
747
|
create: function() {
|
|
726
|
-
return new
|
|
748
|
+
return new rn();
|
|
727
749
|
}
|
|
728
750
|
}, Ut = {
|
|
729
|
-
variadic:
|
|
730
|
-
|
|
751
|
+
variadic: ci,
|
|
752
|
+
monadic: hi
|
|
753
|
+
}, R;
|
|
731
754
|
(function(e) {
|
|
732
755
|
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";
|
|
733
|
-
})(
|
|
756
|
+
})(R || (R = {}));
|
|
734
757
|
var j;
|
|
735
758
|
(function(e) {
|
|
736
759
|
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";
|
|
737
760
|
})(j || (j = {}));
|
|
738
|
-
var
|
|
761
|
+
var Fe;
|
|
739
762
|
(function(e) {
|
|
740
763
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
741
|
-
})(
|
|
742
|
-
function
|
|
764
|
+
})(Fe || (Fe = {}));
|
|
765
|
+
function pn(e) {
|
|
743
766
|
return e.type === j.literal;
|
|
744
767
|
}
|
|
745
|
-
function
|
|
768
|
+
function pi(e) {
|
|
746
769
|
return e.type === j.argument;
|
|
747
770
|
}
|
|
748
|
-
function
|
|
771
|
+
function jn(e) {
|
|
749
772
|
return e.type === j.number;
|
|
750
773
|
}
|
|
751
|
-
function
|
|
774
|
+
function kn(e) {
|
|
752
775
|
return e.type === j.date;
|
|
753
776
|
}
|
|
754
|
-
function
|
|
777
|
+
function Vn(e) {
|
|
755
778
|
return e.type === j.time;
|
|
756
779
|
}
|
|
757
|
-
function
|
|
780
|
+
function Xn(e) {
|
|
758
781
|
return e.type === j.select;
|
|
759
782
|
}
|
|
760
|
-
function
|
|
783
|
+
function zn(e) {
|
|
761
784
|
return e.type === j.plural;
|
|
762
785
|
}
|
|
763
|
-
function
|
|
786
|
+
function mi(e) {
|
|
764
787
|
return e.type === j.pound;
|
|
765
788
|
}
|
|
766
|
-
function
|
|
789
|
+
function Wn(e) {
|
|
767
790
|
return e.type === j.tag;
|
|
768
791
|
}
|
|
769
|
-
function
|
|
770
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
792
|
+
function Zn(e) {
|
|
793
|
+
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
771
794
|
}
|
|
772
795
|
function zt(e) {
|
|
773
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
796
|
+
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
774
797
|
}
|
|
775
|
-
var
|
|
776
|
-
function
|
|
798
|
+
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[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;
|
|
799
|
+
function bi(e) {
|
|
777
800
|
var t = {};
|
|
778
|
-
return e.replace(
|
|
801
|
+
return e.replace(gi, function(n) {
|
|
779
802
|
var r = n.length;
|
|
780
803
|
switch (n[0]) {
|
|
781
804
|
case "G":
|
|
@@ -864,36 +887,36 @@ function gi(e) {
|
|
|
864
887
|
return "";
|
|
865
888
|
}), t;
|
|
866
889
|
}
|
|
867
|
-
var
|
|
868
|
-
function
|
|
890
|
+
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
891
|
+
function vi(e) {
|
|
869
892
|
if (e.length === 0)
|
|
870
893
|
throw new Error("Number skeleton cannot be empty");
|
|
871
|
-
for (var t = e.split(
|
|
894
|
+
for (var t = e.split(yi).filter(function(b) {
|
|
872
895
|
return b.length > 0;
|
|
873
896
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
874
|
-
var
|
|
875
|
-
if (
|
|
897
|
+
var a = i[r], s = a.split("/");
|
|
898
|
+
if (s.length === 0)
|
|
876
899
|
throw new Error("Invalid number skeleton");
|
|
877
|
-
for (var
|
|
878
|
-
var g =
|
|
900
|
+
for (var o = s[0], c = s.slice(1), u = 0, f = c; u < f.length; u++) {
|
|
901
|
+
var g = f[u];
|
|
879
902
|
if (g.length === 0)
|
|
880
903
|
throw new Error("Invalid number skeleton");
|
|
881
904
|
}
|
|
882
|
-
n.push({ stem:
|
|
905
|
+
n.push({ stem: o, options: c });
|
|
883
906
|
}
|
|
884
907
|
return n;
|
|
885
908
|
}
|
|
886
|
-
function
|
|
909
|
+
function Ei(e) {
|
|
887
910
|
return e.replace(/^(.*?)-/, "");
|
|
888
911
|
}
|
|
889
|
-
var
|
|
890
|
-
function
|
|
912
|
+
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, xi = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
|
|
913
|
+
function gn(e) {
|
|
891
914
|
var t = {};
|
|
892
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
915
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
|
|
893
916
|
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)), "";
|
|
894
917
|
}), t;
|
|
895
918
|
}
|
|
896
|
-
function
|
|
919
|
+
function Yn(e) {
|
|
897
920
|
switch (e) {
|
|
898
921
|
case "sign-auto":
|
|
899
922
|
return {
|
|
@@ -933,7 +956,7 @@ function Qn(e) {
|
|
|
933
956
|
};
|
|
934
957
|
}
|
|
935
958
|
}
|
|
936
|
-
function
|
|
959
|
+
function _i(e) {
|
|
937
960
|
var t;
|
|
938
961
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
939
962
|
notation: "engineering"
|
|
@@ -941,17 +964,17 @@ function xi(e) {
|
|
|
941
964
|
notation: "scientific"
|
|
942
965
|
}, e = e.slice(1)), t) {
|
|
943
966
|
var n = e.slice(0, 2);
|
|
944
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
967
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
|
|
945
968
|
throw new Error("Malformed concise eng/scientific notation");
|
|
946
969
|
t.minimumIntegerDigits = e.length;
|
|
947
970
|
}
|
|
948
971
|
return t;
|
|
949
972
|
}
|
|
950
|
-
function
|
|
951
|
-
var t = {}, n =
|
|
973
|
+
function bn(e) {
|
|
974
|
+
var t = {}, n = Yn(e);
|
|
952
975
|
return n || t;
|
|
953
976
|
}
|
|
954
|
-
function
|
|
977
|
+
function Bi(e) {
|
|
955
978
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
956
979
|
var i = r[n];
|
|
957
980
|
switch (i.stem) {
|
|
@@ -975,7 +998,7 @@ function _i(e) {
|
|
|
975
998
|
continue;
|
|
976
999
|
case "measure-unit":
|
|
977
1000
|
case "unit":
|
|
978
|
-
t.style = "unit", t.unit =
|
|
1001
|
+
t.style = "unit", t.unit = Ei(i.options[0]);
|
|
979
1002
|
continue;
|
|
980
1003
|
case "compact-short":
|
|
981
1004
|
case "K":
|
|
@@ -987,12 +1010,12 @@ function _i(e) {
|
|
|
987
1010
|
continue;
|
|
988
1011
|
case "scientific":
|
|
989
1012
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
990
|
-
return I(I({}, c),
|
|
1013
|
+
return I(I({}, c), bn(u));
|
|
991
1014
|
}, {}));
|
|
992
1015
|
continue;
|
|
993
1016
|
case "engineering":
|
|
994
1017
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
995
|
-
return I(I({}, c),
|
|
1018
|
+
return I(I({}, c), bn(u));
|
|
996
1019
|
}, {}));
|
|
997
1020
|
continue;
|
|
998
1021
|
case "notation-simple":
|
|
@@ -1037,45 +1060,45 @@ function _i(e) {
|
|
|
1037
1060
|
case "integer-width":
|
|
1038
1061
|
if (i.options.length > 1)
|
|
1039
1062
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1040
|
-
i.options[0].replace(
|
|
1063
|
+
i.options[0].replace(xi, function(c, u, f, g, b, B) {
|
|
1041
1064
|
if (u)
|
|
1042
|
-
t.minimumIntegerDigits =
|
|
1065
|
+
t.minimumIntegerDigits = f.length;
|
|
1043
1066
|
else {
|
|
1044
1067
|
if (g && b)
|
|
1045
1068
|
throw new Error("We currently do not support maximum integer digits");
|
|
1046
|
-
if (
|
|
1069
|
+
if (B)
|
|
1047
1070
|
throw new Error("We currently do not support exact integer digits");
|
|
1048
1071
|
}
|
|
1049
1072
|
return "";
|
|
1050
1073
|
});
|
|
1051
1074
|
continue;
|
|
1052
1075
|
}
|
|
1053
|
-
if (
|
|
1076
|
+
if (Jn.test(i.stem)) {
|
|
1054
1077
|
t.minimumIntegerDigits = i.stem.length;
|
|
1055
1078
|
continue;
|
|
1056
1079
|
}
|
|
1057
|
-
if (
|
|
1080
|
+
if (mn.test(i.stem)) {
|
|
1058
1081
|
if (i.options.length > 1)
|
|
1059
1082
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1060
|
-
i.stem.replace(
|
|
1061
|
-
return
|
|
1083
|
+
i.stem.replace(mn, function(c, u, f, g, b, B) {
|
|
1084
|
+
return f === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && B ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + B.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1062
1085
|
});
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1086
|
+
var a = i.options[0];
|
|
1087
|
+
a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), gn(a)));
|
|
1065
1088
|
continue;
|
|
1066
1089
|
}
|
|
1067
|
-
if (
|
|
1068
|
-
t = I(I({}, t),
|
|
1090
|
+
if (Qn.test(i.stem)) {
|
|
1091
|
+
t = I(I({}, t), gn(i.stem));
|
|
1069
1092
|
continue;
|
|
1070
1093
|
}
|
|
1071
|
-
var
|
|
1072
|
-
l && (t = I(I({}, t), l));
|
|
1073
|
-
var s = xi(i.stem);
|
|
1094
|
+
var s = Yn(i.stem);
|
|
1074
1095
|
s && (t = I(I({}, t), s));
|
|
1096
|
+
var o = _i(i.stem);
|
|
1097
|
+
o && (t = I(I({}, t), o));
|
|
1075
1098
|
}
|
|
1076
1099
|
return t;
|
|
1077
1100
|
}
|
|
1078
|
-
var
|
|
1101
|
+
var ht = {
|
|
1079
1102
|
"001": [
|
|
1080
1103
|
"H",
|
|
1081
1104
|
"h"
|
|
@@ -2490,22 +2513,23 @@ var ct = {
|
|
|
2490
2513
|
"h"
|
|
2491
2514
|
]
|
|
2492
2515
|
};
|
|
2493
|
-
function
|
|
2516
|
+
function Ti(e, t) {
|
|
2494
2517
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2495
2518
|
var i = e.charAt(r);
|
|
2496
2519
|
if (i === "j") {
|
|
2497
|
-
for (var
|
|
2498
|
-
|
|
2499
|
-
var
|
|
2500
|
-
for ((u == "H" || u == "k") && (
|
|
2520
|
+
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2521
|
+
a++, r++;
|
|
2522
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = wi(t);
|
|
2523
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2501
2524
|
n += c;
|
|
2502
|
-
for (;
|
|
2525
|
+
for (; s-- > 0; )
|
|
2503
2526
|
n = u + n;
|
|
2504
|
-
} else
|
|
2527
|
+
} else
|
|
2528
|
+
i === "J" ? n += "H" : n += i;
|
|
2505
2529
|
}
|
|
2506
2530
|
return n;
|
|
2507
2531
|
}
|
|
2508
|
-
function
|
|
2532
|
+
function wi(e) {
|
|
2509
2533
|
var t = e.hourCycle;
|
|
2510
2534
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2511
2535
|
e.hourCycles && // @ts-ignore
|
|
@@ -2524,23 +2548,23 @@ function Ti(e) {
|
|
|
2524
2548
|
}
|
|
2525
2549
|
var n = e.language, r;
|
|
2526
2550
|
n !== "root" && (r = e.maximize().region);
|
|
2527
|
-
var i =
|
|
2551
|
+
var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
|
|
2528
2552
|
return i[0];
|
|
2529
2553
|
}
|
|
2530
|
-
var Ft,
|
|
2531
|
-
function
|
|
2554
|
+
var Ft, Si = new RegExp("^".concat(qn.source, "*")), Ai = new RegExp("".concat(qn.source, "*$"));
|
|
2555
|
+
function L(e, t) {
|
|
2532
2556
|
return { start: e, end: t };
|
|
2533
2557
|
}
|
|
2534
|
-
var
|
|
2558
|
+
var Ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ii = Ni ? Number.isSafeInteger : function(e) {
|
|
2535
2559
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2536
2560
|
}, Wt = !0;
|
|
2537
2561
|
try {
|
|
2538
|
-
var
|
|
2539
|
-
Wt = ((Ft =
|
|
2562
|
+
var Pi = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2563
|
+
Wt = ((Ft = Pi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
2540
2564
|
} catch (e) {
|
|
2541
2565
|
Wt = !1;
|
|
2542
2566
|
}
|
|
2543
|
-
var
|
|
2567
|
+
var yn = Ci ? (
|
|
2544
2568
|
// Native
|
|
2545
2569
|
function(t, n, r) {
|
|
2546
2570
|
return t.startsWith(n, r);
|
|
@@ -2550,31 +2574,31 @@ var gn = Ai ? (
|
|
|
2550
2574
|
function(t, n, r) {
|
|
2551
2575
|
return t.slice(r, r + n.length) === n;
|
|
2552
2576
|
}
|
|
2553
|
-
), Zt =
|
|
2577
|
+
), Zt = Hi ? String.fromCodePoint : (
|
|
2554
2578
|
// IE11
|
|
2555
2579
|
function() {
|
|
2556
2580
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2557
2581
|
t[n] = arguments[n];
|
|
2558
|
-
for (var r = "", i = t.length,
|
|
2559
|
-
if (
|
|
2560
|
-
throw RangeError(
|
|
2561
|
-
r +=
|
|
2582
|
+
for (var r = "", i = t.length, a = 0, s; i > a; ) {
|
|
2583
|
+
if (s = t[a++], s > 1114111)
|
|
2584
|
+
throw RangeError(s + " is not a valid code point");
|
|
2585
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2562
2586
|
}
|
|
2563
2587
|
return r;
|
|
2564
2588
|
}
|
|
2565
|
-
),
|
|
2589
|
+
), vn = (
|
|
2566
2590
|
// native
|
|
2567
|
-
|
|
2591
|
+
Oi ? Object.fromEntries : (
|
|
2568
2592
|
// Ponyfill
|
|
2569
2593
|
function(t) {
|
|
2570
2594
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2571
|
-
var
|
|
2572
|
-
n[
|
|
2595
|
+
var a = i[r], s = a[0], o = a[1];
|
|
2596
|
+
n[s] = o;
|
|
2573
2597
|
}
|
|
2574
2598
|
return n;
|
|
2575
2599
|
}
|
|
2576
2600
|
)
|
|
2577
|
-
),
|
|
2601
|
+
), Kn = Ri ? (
|
|
2578
2602
|
// Native
|
|
2579
2603
|
function(t, n) {
|
|
2580
2604
|
return t.codePointAt(n);
|
|
@@ -2584,11 +2608,11 @@ var gn = Ai ? (
|
|
|
2584
2608
|
function(t, n) {
|
|
2585
2609
|
var r = t.length;
|
|
2586
2610
|
if (!(n < 0 || n >= r)) {
|
|
2587
|
-
var i = t.charCodeAt(n),
|
|
2588
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2611
|
+
var i = t.charCodeAt(n), a;
|
|
2612
|
+
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2589
2613
|
}
|
|
2590
2614
|
}
|
|
2591
|
-
),
|
|
2615
|
+
), Di = Li ? (
|
|
2592
2616
|
// Native
|
|
2593
2617
|
function(t) {
|
|
2594
2618
|
return t.trimStart();
|
|
@@ -2596,9 +2620,9 @@ var gn = Ai ? (
|
|
|
2596
2620
|
) : (
|
|
2597
2621
|
// Ponyfill
|
|
2598
2622
|
function(t) {
|
|
2599
|
-
return t.replace(
|
|
2623
|
+
return t.replace(Si, "");
|
|
2600
2624
|
}
|
|
2601
|
-
),
|
|
2625
|
+
), Ui = Mi ? (
|
|
2602
2626
|
// Native
|
|
2603
2627
|
function(t) {
|
|
2604
2628
|
return t.trimEnd();
|
|
@@ -2606,32 +2630,32 @@ var gn = Ai ? (
|
|
|
2606
2630
|
) : (
|
|
2607
2631
|
// Ponyfill
|
|
2608
2632
|
function(t) {
|
|
2609
|
-
return t.replace(
|
|
2633
|
+
return t.replace(Ai, "");
|
|
2610
2634
|
}
|
|
2611
2635
|
);
|
|
2612
|
-
function
|
|
2636
|
+
function er(e, t) {
|
|
2613
2637
|
return new RegExp(e, t);
|
|
2614
2638
|
}
|
|
2615
2639
|
var qt;
|
|
2616
2640
|
if (Wt) {
|
|
2617
|
-
var
|
|
2641
|
+
var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2618
2642
|
qt = function(t, n) {
|
|
2619
2643
|
var r;
|
|
2620
|
-
|
|
2621
|
-
var i =
|
|
2644
|
+
En.lastIndex = n;
|
|
2645
|
+
var i = En.exec(t);
|
|
2622
2646
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2623
2647
|
};
|
|
2624
2648
|
} else
|
|
2625
2649
|
qt = function(t, n) {
|
|
2626
2650
|
for (var r = []; ; ) {
|
|
2627
|
-
var i =
|
|
2628
|
-
if (i === void 0 ||
|
|
2651
|
+
var i = Kn(t, n);
|
|
2652
|
+
if (i === void 0 || tr(i) || ji(i))
|
|
2629
2653
|
break;
|
|
2630
2654
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2631
2655
|
}
|
|
2632
2656
|
return Zt.apply(void 0, r);
|
|
2633
2657
|
};
|
|
2634
|
-
var
|
|
2658
|
+
var Fi = (
|
|
2635
2659
|
/** @class */
|
|
2636
2660
|
function() {
|
|
2637
2661
|
function e(t, n) {
|
|
@@ -2643,35 +2667,35 @@ var Ui = (
|
|
|
2643
2667
|
return this.parseMessage(0, "", !1);
|
|
2644
2668
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2645
2669
|
for (var i = []; !this.isEOF(); ) {
|
|
2646
|
-
var
|
|
2647
|
-
if (
|
|
2648
|
-
var
|
|
2649
|
-
if (
|
|
2650
|
-
return
|
|
2651
|
-
i.push(
|
|
2670
|
+
var a = this.char();
|
|
2671
|
+
if (a === 123) {
|
|
2672
|
+
var s = this.parseArgument(t, r);
|
|
2673
|
+
if (s.err)
|
|
2674
|
+
return s;
|
|
2675
|
+
i.push(s.val);
|
|
2652
2676
|
} else {
|
|
2653
|
-
if (
|
|
2677
|
+
if (a === 125 && t > 0)
|
|
2654
2678
|
break;
|
|
2655
|
-
if (
|
|
2656
|
-
var
|
|
2679
|
+
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2680
|
+
var o = this.clonePosition();
|
|
2657
2681
|
this.bump(), i.push({
|
|
2658
2682
|
type: j.pound,
|
|
2659
|
-
location:
|
|
2683
|
+
location: L(o, this.clonePosition())
|
|
2660
2684
|
});
|
|
2661
|
-
} else if (
|
|
2685
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2662
2686
|
if (r)
|
|
2663
2687
|
break;
|
|
2664
|
-
return this.error(
|
|
2665
|
-
} else if (
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2668
|
-
return
|
|
2669
|
-
i.push(
|
|
2688
|
+
return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2689
|
+
} else if (a === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
|
|
2690
|
+
var s = this.parseTag(t, n);
|
|
2691
|
+
if (s.err)
|
|
2692
|
+
return s;
|
|
2693
|
+
i.push(s.val);
|
|
2670
2694
|
} else {
|
|
2671
|
-
var
|
|
2672
|
-
if (
|
|
2673
|
-
return
|
|
2674
|
-
i.push(
|
|
2695
|
+
var s = this.parseLiteral(t, n);
|
|
2696
|
+
if (s.err)
|
|
2697
|
+
return s;
|
|
2698
|
+
i.push(s.val);
|
|
2675
2699
|
}
|
|
2676
2700
|
}
|
|
2677
2701
|
}
|
|
@@ -2685,64 +2709,64 @@ var Ui = (
|
|
|
2685
2709
|
val: {
|
|
2686
2710
|
type: j.literal,
|
|
2687
2711
|
value: "<".concat(i, "/>"),
|
|
2688
|
-
location:
|
|
2712
|
+
location: L(r, this.clonePosition())
|
|
2689
2713
|
},
|
|
2690
2714
|
err: null
|
|
2691
2715
|
};
|
|
2692
2716
|
if (this.bumpIf(">")) {
|
|
2693
|
-
var
|
|
2694
|
-
if (
|
|
2695
|
-
return
|
|
2696
|
-
var
|
|
2717
|
+
var a = this.parseMessage(t + 1, n, !0);
|
|
2718
|
+
if (a.err)
|
|
2719
|
+
return a;
|
|
2720
|
+
var s = a.val, o = this.clonePosition();
|
|
2697
2721
|
if (this.bumpIf("</")) {
|
|
2698
2722
|
if (this.isEOF() || !Qt(this.char()))
|
|
2699
|
-
return this.error(
|
|
2723
|
+
return this.error(R.INVALID_TAG, L(o, this.clonePosition()));
|
|
2700
2724
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2701
|
-
return i !== u ? this.error(
|
|
2725
|
+
return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2702
2726
|
val: {
|
|
2703
2727
|
type: j.tag,
|
|
2704
2728
|
value: i,
|
|
2705
|
-
children:
|
|
2706
|
-
location:
|
|
2729
|
+
children: s,
|
|
2730
|
+
location: L(r, this.clonePosition())
|
|
2707
2731
|
},
|
|
2708
2732
|
err: null
|
|
2709
|
-
} : this.error(
|
|
2733
|
+
} : this.error(R.INVALID_TAG, L(o, this.clonePosition())));
|
|
2710
2734
|
} else
|
|
2711
|
-
return this.error(
|
|
2735
|
+
return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2712
2736
|
} else
|
|
2713
|
-
return this.error(
|
|
2737
|
+
return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
|
|
2714
2738
|
}, e.prototype.parseTagName = function() {
|
|
2715
2739
|
var t = this.offset();
|
|
2716
|
-
for (this.bump(); !this.isEOF() &&
|
|
2740
|
+
for (this.bump(); !this.isEOF() && $i(this.char()); )
|
|
2717
2741
|
this.bump();
|
|
2718
2742
|
return this.message.slice(t, this.offset());
|
|
2719
2743
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2720
2744
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2723
|
-
i +=
|
|
2724
|
-
continue;
|
|
2725
|
-
}
|
|
2726
|
-
var l = this.tryParseUnquoted(t, n);
|
|
2727
|
-
if (l) {
|
|
2728
|
-
i += l;
|
|
2745
|
+
var a = this.tryParseQuote(n);
|
|
2746
|
+
if (a) {
|
|
2747
|
+
i += a;
|
|
2729
2748
|
continue;
|
|
2730
2749
|
}
|
|
2731
|
-
var s = this.
|
|
2750
|
+
var s = this.tryParseUnquoted(t, n);
|
|
2732
2751
|
if (s) {
|
|
2733
2752
|
i += s;
|
|
2734
2753
|
continue;
|
|
2735
2754
|
}
|
|
2755
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2756
|
+
if (o) {
|
|
2757
|
+
i += o;
|
|
2758
|
+
continue;
|
|
2759
|
+
}
|
|
2736
2760
|
break;
|
|
2737
2761
|
}
|
|
2738
|
-
var c =
|
|
2762
|
+
var c = L(r, this.clonePosition());
|
|
2739
2763
|
return {
|
|
2740
2764
|
val: { type: j.literal, value: i, location: c },
|
|
2741
2765
|
err: null
|
|
2742
2766
|
};
|
|
2743
2767
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2744
2768
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2745
|
-
!
|
|
2769
|
+
!Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2746
2770
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2747
2771
|
if (this.isEOF() || this.char() !== 39)
|
|
2748
2772
|
return null;
|
|
@@ -2785,14 +2809,14 @@ var Ui = (
|
|
|
2785
2809
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2786
2810
|
var r = this.clonePosition();
|
|
2787
2811
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2788
|
-
return this.error(
|
|
2812
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2789
2813
|
if (this.char() === 125)
|
|
2790
|
-
return this.bump(), this.error(
|
|
2814
|
+
return this.bump(), this.error(R.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2791
2815
|
var i = this.parseIdentifierIfPossible().value;
|
|
2792
2816
|
if (!i)
|
|
2793
|
-
return this.error(
|
|
2817
|
+
return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2794
2818
|
if (this.bumpSpace(), this.isEOF())
|
|
2795
|
-
return this.error(
|
|
2819
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2796
2820
|
switch (this.char()) {
|
|
2797
2821
|
case 125:
|
|
2798
2822
|
return this.bump(), {
|
|
@@ -2800,25 +2824,25 @@ var Ui = (
|
|
|
2800
2824
|
type: j.argument,
|
|
2801
2825
|
// value does not include the opening and closing braces.
|
|
2802
2826
|
value: i,
|
|
2803
|
-
location:
|
|
2827
|
+
location: L(r, this.clonePosition())
|
|
2804
2828
|
},
|
|
2805
2829
|
err: null
|
|
2806
2830
|
};
|
|
2807
2831
|
case 44:
|
|
2808
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2832
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2809
2833
|
default:
|
|
2810
|
-
return this.error(
|
|
2834
|
+
return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2811
2835
|
}
|
|
2812
2836
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2813
2837
|
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2814
2838
|
this.bumpTo(i);
|
|
2815
|
-
var
|
|
2816
|
-
return { value: r, location:
|
|
2839
|
+
var a = this.clonePosition(), s = L(t, a);
|
|
2840
|
+
return { value: r, location: s };
|
|
2817
2841
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2818
|
-
var
|
|
2819
|
-
switch (
|
|
2842
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2843
|
+
switch (o) {
|
|
2820
2844
|
case "":
|
|
2821
|
-
return this.error(
|
|
2845
|
+
return this.error(R.EXPECT_ARGUMENT_TYPE, L(s, c));
|
|
2822
2846
|
case "number":
|
|
2823
2847
|
case "date":
|
|
2824
2848
|
case "time": {
|
|
@@ -2826,50 +2850,50 @@ var Ui = (
|
|
|
2826
2850
|
var u = null;
|
|
2827
2851
|
if (this.bumpIf(",")) {
|
|
2828
2852
|
this.bumpSpace();
|
|
2829
|
-
var
|
|
2853
|
+
var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2830
2854
|
if (g.err)
|
|
2831
2855
|
return g;
|
|
2832
|
-
var b =
|
|
2856
|
+
var b = Ui(g.val);
|
|
2833
2857
|
if (b.length === 0)
|
|
2834
|
-
return this.error(
|
|
2835
|
-
var
|
|
2836
|
-
u = { style: b, styleLocation:
|
|
2858
|
+
return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2859
|
+
var B = L(f, this.clonePosition());
|
|
2860
|
+
u = { style: b, styleLocation: B };
|
|
2837
2861
|
}
|
|
2838
|
-
var
|
|
2839
|
-
if (
|
|
2840
|
-
return
|
|
2841
|
-
var
|
|
2842
|
-
if (u &&
|
|
2843
|
-
var
|
|
2844
|
-
if (
|
|
2845
|
-
var g = this.parseNumberSkeletonFromString(
|
|
2862
|
+
var T = this.tryParseArgumentClose(i);
|
|
2863
|
+
if (T.err)
|
|
2864
|
+
return T;
|
|
2865
|
+
var S = L(i, this.clonePosition());
|
|
2866
|
+
if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2867
|
+
var _ = Di(u.style.slice(2));
|
|
2868
|
+
if (o === "number") {
|
|
2869
|
+
var g = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2846
2870
|
return g.err ? g : {
|
|
2847
|
-
val: { type: j.number, value: r, location:
|
|
2871
|
+
val: { type: j.number, value: r, location: S, style: g.val },
|
|
2848
2872
|
err: null
|
|
2849
2873
|
};
|
|
2850
2874
|
} else {
|
|
2851
|
-
if (
|
|
2852
|
-
return this.error(
|
|
2853
|
-
var
|
|
2854
|
-
this.locale && (
|
|
2875
|
+
if (_.length === 0)
|
|
2876
|
+
return this.error(R.EXPECT_DATE_TIME_SKELETON, S);
|
|
2877
|
+
var C = _;
|
|
2878
|
+
this.locale && (C = Ti(_, this.locale));
|
|
2855
2879
|
var b = {
|
|
2856
|
-
type:
|
|
2857
|
-
pattern:
|
|
2880
|
+
type: Fe.dateTime,
|
|
2881
|
+
pattern: C,
|
|
2858
2882
|
location: u.styleLocation,
|
|
2859
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2860
|
-
}, D =
|
|
2883
|
+
parsedOptions: this.shouldParseSkeletons ? bi(C) : {}
|
|
2884
|
+
}, D = o === "date" ? j.date : j.time;
|
|
2861
2885
|
return {
|
|
2862
|
-
val: { type: D, value: r, location:
|
|
2886
|
+
val: { type: D, value: r, location: S, style: b },
|
|
2863
2887
|
err: null
|
|
2864
2888
|
};
|
|
2865
2889
|
}
|
|
2866
2890
|
}
|
|
2867
2891
|
return {
|
|
2868
2892
|
val: {
|
|
2869
|
-
type:
|
|
2893
|
+
type: o === "number" ? j.number : o === "date" ? j.date : j.time,
|
|
2870
2894
|
value: r,
|
|
2871
|
-
location:
|
|
2872
|
-
style: (
|
|
2895
|
+
location: S,
|
|
2896
|
+
style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
|
|
2873
2897
|
},
|
|
2874
2898
|
err: null
|
|
2875
2899
|
};
|
|
@@ -2877,52 +2901,52 @@ var Ui = (
|
|
|
2877
2901
|
case "plural":
|
|
2878
2902
|
case "selectordinal":
|
|
2879
2903
|
case "select": {
|
|
2880
|
-
var
|
|
2904
|
+
var O = this.clonePosition();
|
|
2881
2905
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2882
|
-
return this.error(
|
|
2906
|
+
return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
|
|
2883
2907
|
this.bumpSpace();
|
|
2884
|
-
var U = this.parseIdentifierIfPossible(),
|
|
2885
|
-
if (
|
|
2908
|
+
var U = this.parseIdentifierIfPossible(), q = 0;
|
|
2909
|
+
if (o !== "select" && U.value === "offset") {
|
|
2886
2910
|
if (!this.bumpIf(":"))
|
|
2887
|
-
return this.error(
|
|
2911
|
+
return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2888
2912
|
this.bumpSpace();
|
|
2889
|
-
var g = this.tryParseDecimalInteger(
|
|
2913
|
+
var g = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2890
2914
|
if (g.err)
|
|
2891
2915
|
return g;
|
|
2892
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(),
|
|
2916
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), q = g.val;
|
|
2893
2917
|
}
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2897
|
-
var
|
|
2898
|
-
if (
|
|
2899
|
-
return
|
|
2900
|
-
var
|
|
2901
|
-
return
|
|
2918
|
+
var re = this.tryParsePluralOrSelectOptions(t, o, n, U);
|
|
2919
|
+
if (re.err)
|
|
2920
|
+
return re;
|
|
2921
|
+
var T = this.tryParseArgumentClose(i);
|
|
2922
|
+
if (T.err)
|
|
2923
|
+
return T;
|
|
2924
|
+
var z = L(i, this.clonePosition());
|
|
2925
|
+
return o === "select" ? {
|
|
2902
2926
|
val: {
|
|
2903
2927
|
type: j.select,
|
|
2904
2928
|
value: r,
|
|
2905
|
-
options:
|
|
2906
|
-
location:
|
|
2929
|
+
options: vn(re.val),
|
|
2930
|
+
location: z
|
|
2907
2931
|
},
|
|
2908
2932
|
err: null
|
|
2909
2933
|
} : {
|
|
2910
2934
|
val: {
|
|
2911
2935
|
type: j.plural,
|
|
2912
2936
|
value: r,
|
|
2913
|
-
options:
|
|
2914
|
-
offset:
|
|
2915
|
-
pluralType:
|
|
2916
|
-
location:
|
|
2937
|
+
options: vn(re.val),
|
|
2938
|
+
offset: q,
|
|
2939
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2940
|
+
location: z
|
|
2917
2941
|
},
|
|
2918
2942
|
err: null
|
|
2919
2943
|
};
|
|
2920
2944
|
}
|
|
2921
2945
|
default:
|
|
2922
|
-
return this.error(
|
|
2946
|
+
return this.error(R.INVALID_ARGUMENT_TYPE, L(s, c));
|
|
2923
2947
|
}
|
|
2924
2948
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2925
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2949
|
+
return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2926
2950
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2927
2951
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2928
2952
|
var r = this.char();
|
|
@@ -2931,7 +2955,7 @@ var Ui = (
|
|
|
2931
2955
|
this.bump();
|
|
2932
2956
|
var i = this.clonePosition();
|
|
2933
2957
|
if (!this.bumpUntil("'"))
|
|
2934
|
-
return this.error(
|
|
2958
|
+
return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2935
2959
|
this.bump();
|
|
2936
2960
|
break;
|
|
2937
2961
|
}
|
|
@@ -2961,64 +2985,64 @@ var Ui = (
|
|
|
2961
2985
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2962
2986
|
var r = [];
|
|
2963
2987
|
try {
|
|
2964
|
-
r =
|
|
2988
|
+
r = vi(t);
|
|
2965
2989
|
} catch (i) {
|
|
2966
|
-
return this.error(
|
|
2990
|
+
return this.error(R.INVALID_NUMBER_SKELETON, n);
|
|
2967
2991
|
}
|
|
2968
2992
|
return {
|
|
2969
2993
|
val: {
|
|
2970
|
-
type:
|
|
2994
|
+
type: Fe.number,
|
|
2971
2995
|
tokens: r,
|
|
2972
2996
|
location: n,
|
|
2973
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2997
|
+
parsedOptions: this.shouldParseSkeletons ? Bi(r) : {}
|
|
2974
2998
|
},
|
|
2975
2999
|
err: null
|
|
2976
3000
|
};
|
|
2977
3001
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2978
|
-
for (var
|
|
3002
|
+
for (var a, s = !1, o = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
2979
3003
|
if (u.length === 0) {
|
|
2980
3004
|
var g = this.clonePosition();
|
|
2981
3005
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2982
|
-
var b = this.tryParseDecimalInteger(
|
|
3006
|
+
var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2983
3007
|
if (b.err)
|
|
2984
3008
|
return b;
|
|
2985
|
-
|
|
3009
|
+
f = L(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
|
|
2986
3010
|
} else
|
|
2987
3011
|
break;
|
|
2988
3012
|
}
|
|
2989
3013
|
if (c.has(u))
|
|
2990
|
-
return this.error(n === "select" ?
|
|
2991
|
-
u === "other" && (
|
|
2992
|
-
var
|
|
3014
|
+
return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3015
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3016
|
+
var B = this.clonePosition();
|
|
2993
3017
|
if (!this.bumpIf("{"))
|
|
2994
|
-
return this.error(n === "select" ?
|
|
2995
|
-
var
|
|
2996
|
-
if (B.err)
|
|
2997
|
-
return B;
|
|
2998
|
-
var T = this.tryParseArgumentClose(_);
|
|
3018
|
+
return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
3019
|
+
var T = this.parseMessage(t + 1, n, r);
|
|
2999
3020
|
if (T.err)
|
|
3000
3021
|
return T;
|
|
3001
|
-
|
|
3022
|
+
var S = this.tryParseArgumentClose(B);
|
|
3023
|
+
if (S.err)
|
|
3024
|
+
return S;
|
|
3025
|
+
o.push([
|
|
3002
3026
|
u,
|
|
3003
3027
|
{
|
|
3004
|
-
value:
|
|
3005
|
-
location:
|
|
3028
|
+
value: T.val,
|
|
3029
|
+
location: L(B, this.clonePosition())
|
|
3006
3030
|
}
|
|
3007
|
-
]), c.add(u), this.bumpSpace(),
|
|
3031
|
+
]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, f = a.location;
|
|
3008
3032
|
}
|
|
3009
|
-
return
|
|
3033
|
+
return o.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3010
3034
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3011
3035
|
var r = 1, i = this.clonePosition();
|
|
3012
3036
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3013
|
-
for (var
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
|
|
3037
|
+
for (var a = !1, s = 0; !this.isEOF(); ) {
|
|
3038
|
+
var o = this.char();
|
|
3039
|
+
if (o >= 48 && o <= 57)
|
|
3040
|
+
a = !0, s = s * 10 + (o - 48), this.bump();
|
|
3017
3041
|
else
|
|
3018
3042
|
break;
|
|
3019
3043
|
}
|
|
3020
|
-
var c =
|
|
3021
|
-
return
|
|
3044
|
+
var c = L(i, this.clonePosition());
|
|
3045
|
+
return a ? (s *= r, Ii(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3022
3046
|
}, e.prototype.offset = function() {
|
|
3023
3047
|
return this.position.offset;
|
|
3024
3048
|
}, e.prototype.isEOF = function() {
|
|
@@ -3033,7 +3057,7 @@ var Ui = (
|
|
|
3033
3057
|
var t = this.position.offset;
|
|
3034
3058
|
if (t >= this.message.length)
|
|
3035
3059
|
throw Error("out of bound");
|
|
3036
|
-
var n =
|
|
3060
|
+
var n = Kn(this.message, t);
|
|
3037
3061
|
if (n === void 0)
|
|
3038
3062
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3039
3063
|
return n;
|
|
@@ -3052,7 +3076,7 @@ var Ui = (
|
|
|
3052
3076
|
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);
|
|
3053
3077
|
}
|
|
3054
3078
|
}, e.prototype.bumpIf = function(t) {
|
|
3055
|
-
if (
|
|
3079
|
+
if (yn(this.message, t, this.offset())) {
|
|
3056
3080
|
for (var n = 0; n < t.length; n++)
|
|
3057
3081
|
this.bump();
|
|
3058
3082
|
return !0;
|
|
@@ -3074,7 +3098,7 @@ var Ui = (
|
|
|
3074
3098
|
break;
|
|
3075
3099
|
}
|
|
3076
3100
|
}, e.prototype.bumpSpace = function() {
|
|
3077
|
-
for (; !this.isEOF() &&
|
|
3101
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3078
3102
|
this.bump();
|
|
3079
3103
|
}, e.prototype.peek = function() {
|
|
3080
3104
|
if (this.isEOF())
|
|
@@ -3087,197 +3111,198 @@ var Ui = (
|
|
|
3087
3111
|
function Qt(e) {
|
|
3088
3112
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3089
3113
|
}
|
|
3090
|
-
function
|
|
3114
|
+
function Gi(e) {
|
|
3091
3115
|
return Qt(e) || e === 47;
|
|
3092
3116
|
}
|
|
3093
|
-
function
|
|
3117
|
+
function $i(e) {
|
|
3094
3118
|
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;
|
|
3095
3119
|
}
|
|
3096
|
-
function
|
|
3120
|
+
function tr(e) {
|
|
3097
3121
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3098
3122
|
}
|
|
3099
|
-
function
|
|
3123
|
+
function ji(e) {
|
|
3100
3124
|
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;
|
|
3101
3125
|
}
|
|
3102
3126
|
function Jt(e) {
|
|
3103
3127
|
e.forEach(function(t) {
|
|
3104
|
-
if (delete t.location,
|
|
3128
|
+
if (delete t.location, Xn(t) || zn(t))
|
|
3105
3129
|
for (var n in t.options)
|
|
3106
3130
|
delete t.options[n].location, Jt(t.options[n].value);
|
|
3107
|
-
else
|
|
3131
|
+
else
|
|
3132
|
+
jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && zt(t.style) ? delete t.style.location : Wn(t) && Jt(t.children);
|
|
3108
3133
|
});
|
|
3109
3134
|
}
|
|
3110
|
-
function
|
|
3135
|
+
function ki(e, t) {
|
|
3111
3136
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3112
|
-
var n = new
|
|
3137
|
+
var n = new Fi(e, t).parse();
|
|
3113
3138
|
if (n.err) {
|
|
3114
|
-
var r = SyntaxError(
|
|
3139
|
+
var r = SyntaxError(R[n.err.kind]);
|
|
3115
3140
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3116
3141
|
}
|
|
3117
3142
|
return t != null && t.captureLocation || Jt(n.val), n.val;
|
|
3118
3143
|
}
|
|
3119
|
-
var
|
|
3144
|
+
var Ge;
|
|
3120
3145
|
(function(e) {
|
|
3121
3146
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3122
|
-
})(
|
|
3123
|
-
var
|
|
3147
|
+
})(Ge || (Ge = {}));
|
|
3148
|
+
var _t = (
|
|
3124
3149
|
/** @class */
|
|
3125
3150
|
function(e) {
|
|
3126
|
-
|
|
3151
|
+
xt(t, e);
|
|
3127
3152
|
function t(n, r, i) {
|
|
3128
|
-
var
|
|
3129
|
-
return
|
|
3153
|
+
var a = e.call(this, n) || this;
|
|
3154
|
+
return a.code = r, a.originalMessage = i, a;
|
|
3130
3155
|
}
|
|
3131
3156
|
return t.prototype.toString = function() {
|
|
3132
3157
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3133
3158
|
}, t;
|
|
3134
3159
|
}(Error)
|
|
3135
|
-
),
|
|
3160
|
+
), xn = (
|
|
3136
3161
|
/** @class */
|
|
3137
3162
|
function(e) {
|
|
3138
|
-
|
|
3139
|
-
function t(n, r, i,
|
|
3140
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3163
|
+
xt(t, e);
|
|
3164
|
+
function t(n, r, i, a) {
|
|
3165
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
|
|
3141
3166
|
}
|
|
3142
3167
|
return t;
|
|
3143
|
-
}(
|
|
3144
|
-
),
|
|
3168
|
+
}(_t)
|
|
3169
|
+
), Vi = (
|
|
3145
3170
|
/** @class */
|
|
3146
3171
|
function(e) {
|
|
3147
|
-
|
|
3172
|
+
xt(t, e);
|
|
3148
3173
|
function t(n, r, i) {
|
|
3149
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3174
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
|
|
3150
3175
|
}
|
|
3151
3176
|
return t;
|
|
3152
|
-
}(
|
|
3153
|
-
),
|
|
3177
|
+
}(_t)
|
|
3178
|
+
), Xi = (
|
|
3154
3179
|
/** @class */
|
|
3155
3180
|
function(e) {
|
|
3156
|
-
|
|
3181
|
+
xt(t, e);
|
|
3157
3182
|
function t(n, r) {
|
|
3158
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3183
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
|
|
3159
3184
|
}
|
|
3160
3185
|
return t;
|
|
3161
|
-
}(
|
|
3186
|
+
}(_t)
|
|
3162
3187
|
), ne;
|
|
3163
3188
|
(function(e) {
|
|
3164
3189
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3165
3190
|
})(ne || (ne = {}));
|
|
3166
|
-
function
|
|
3191
|
+
function zi(e) {
|
|
3167
3192
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3168
3193
|
var r = t[t.length - 1];
|
|
3169
3194
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3170
3195
|
}, []);
|
|
3171
3196
|
}
|
|
3172
|
-
function
|
|
3197
|
+
function Wi(e) {
|
|
3173
3198
|
return typeof e == "function";
|
|
3174
3199
|
}
|
|
3175
|
-
function
|
|
3176
|
-
if (e.length === 1 &&
|
|
3200
|
+
function dt(e, t, n, r, i, a, s) {
|
|
3201
|
+
if (e.length === 1 && pn(e[0]))
|
|
3177
3202
|
return [
|
|
3178
3203
|
{
|
|
3179
3204
|
type: ne.literal,
|
|
3180
3205
|
value: e[0].value
|
|
3181
3206
|
}
|
|
3182
3207
|
];
|
|
3183
|
-
for (var
|
|
3184
|
-
var
|
|
3185
|
-
if (
|
|
3186
|
-
|
|
3208
|
+
for (var o = [], c = 0, u = e; c < u.length; c++) {
|
|
3209
|
+
var f = u[c];
|
|
3210
|
+
if (pn(f)) {
|
|
3211
|
+
o.push({
|
|
3187
3212
|
type: ne.literal,
|
|
3188
|
-
value:
|
|
3213
|
+
value: f.value
|
|
3189
3214
|
});
|
|
3190
3215
|
continue;
|
|
3191
3216
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
typeof
|
|
3217
|
+
if (mi(f)) {
|
|
3218
|
+
typeof a == "number" && o.push({
|
|
3194
3219
|
type: ne.literal,
|
|
3195
|
-
value: n.getNumberFormat(t).format(
|
|
3220
|
+
value: n.getNumberFormat(t).format(a)
|
|
3196
3221
|
});
|
|
3197
3222
|
continue;
|
|
3198
3223
|
}
|
|
3199
|
-
var g =
|
|
3224
|
+
var g = f.value;
|
|
3200
3225
|
if (!(i && g in i))
|
|
3201
|
-
throw new
|
|
3226
|
+
throw new Xi(g, s);
|
|
3202
3227
|
var b = i[g];
|
|
3203
|
-
if (
|
|
3204
|
-
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""),
|
|
3228
|
+
if (pi(f)) {
|
|
3229
|
+
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), o.push({
|
|
3205
3230
|
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3206
3231
|
value: b
|
|
3207
3232
|
});
|
|
3208
3233
|
continue;
|
|
3209
3234
|
}
|
|
3210
|
-
if (
|
|
3211
|
-
var
|
|
3212
|
-
|
|
3235
|
+
if (kn(f)) {
|
|
3236
|
+
var B = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
|
|
3237
|
+
o.push({
|
|
3213
3238
|
type: ne.literal,
|
|
3214
|
-
value: n.getDateTimeFormat(t,
|
|
3239
|
+
value: n.getDateTimeFormat(t, B).format(b)
|
|
3215
3240
|
});
|
|
3216
3241
|
continue;
|
|
3217
3242
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3243
|
+
if (Vn(f)) {
|
|
3244
|
+
var B = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3245
|
+
o.push({
|
|
3221
3246
|
type: ne.literal,
|
|
3222
|
-
value: n.getDateTimeFormat(t,
|
|
3247
|
+
value: n.getDateTimeFormat(t, B).format(b)
|
|
3223
3248
|
});
|
|
3224
3249
|
continue;
|
|
3225
3250
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3228
|
-
|
|
3251
|
+
if (jn(f)) {
|
|
3252
|
+
var B = typeof f.style == "string" ? r.number[f.style] : Zn(f.style) ? f.style.parsedOptions : void 0;
|
|
3253
|
+
B && B.scale && (b = b * (B.scale || 1)), o.push({
|
|
3229
3254
|
type: ne.literal,
|
|
3230
|
-
value: n.getNumberFormat(t,
|
|
3255
|
+
value: n.getNumberFormat(t, B).format(b)
|
|
3231
3256
|
});
|
|
3232
3257
|
continue;
|
|
3233
3258
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
if (!
|
|
3237
|
-
throw new
|
|
3238
|
-
var
|
|
3239
|
-
return
|
|
3259
|
+
if (Wn(f)) {
|
|
3260
|
+
var T = f.children, S = f.value, _ = i[S];
|
|
3261
|
+
if (!Wi(_))
|
|
3262
|
+
throw new Vi(S, "function", s);
|
|
3263
|
+
var C = dt(T, t, n, r, i, a), D = _(C.map(function(q) {
|
|
3264
|
+
return q.value;
|
|
3240
3265
|
}));
|
|
3241
|
-
Array.isArray(D) || (D = [D]),
|
|
3266
|
+
Array.isArray(D) || (D = [D]), o.push.apply(o, D.map(function(q) {
|
|
3242
3267
|
return {
|
|
3243
|
-
type: typeof
|
|
3244
|
-
value:
|
|
3268
|
+
type: typeof q == "string" ? ne.literal : ne.object,
|
|
3269
|
+
value: q
|
|
3245
3270
|
};
|
|
3246
3271
|
}));
|
|
3247
3272
|
}
|
|
3248
|
-
if (
|
|
3249
|
-
var
|
|
3250
|
-
if (!
|
|
3251
|
-
throw new
|
|
3252
|
-
|
|
3273
|
+
if (Xn(f)) {
|
|
3274
|
+
var O = f.options[b] || f.options.other;
|
|
3275
|
+
if (!O)
|
|
3276
|
+
throw new xn(f.value, b, Object.keys(f.options), s);
|
|
3277
|
+
o.push.apply(o, dt(O.value, t, n, r, i));
|
|
3253
3278
|
continue;
|
|
3254
3279
|
}
|
|
3255
|
-
if (
|
|
3256
|
-
var
|
|
3257
|
-
if (!
|
|
3280
|
+
if (zn(f)) {
|
|
3281
|
+
var O = f.options["=".concat(b)];
|
|
3282
|
+
if (!O) {
|
|
3258
3283
|
if (!Intl.PluralRules)
|
|
3259
|
-
throw new
|
|
3284
|
+
throw new _t(`Intl.PluralRules is not available in this environment.
|
|
3260
3285
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3261
|
-
`,
|
|
3262
|
-
var U = n.getPluralRules(t, { type:
|
|
3263
|
-
|
|
3286
|
+
`, Ge.MISSING_INTL_API, s);
|
|
3287
|
+
var U = n.getPluralRules(t, { type: f.pluralType }).select(b - (f.offset || 0));
|
|
3288
|
+
O = f.options[U] || f.options.other;
|
|
3264
3289
|
}
|
|
3265
|
-
if (!
|
|
3266
|
-
throw new
|
|
3267
|
-
|
|
3290
|
+
if (!O)
|
|
3291
|
+
throw new xn(f.value, b, Object.keys(f.options), s);
|
|
3292
|
+
o.push.apply(o, dt(O.value, t, n, r, i, b - (f.offset || 0)));
|
|
3268
3293
|
continue;
|
|
3269
3294
|
}
|
|
3270
3295
|
}
|
|
3271
|
-
return
|
|
3296
|
+
return zi(o);
|
|
3272
3297
|
}
|
|
3273
|
-
function
|
|
3298
|
+
function Zi(e, t) {
|
|
3274
3299
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3275
3300
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3276
3301
|
}, {})) : e;
|
|
3277
3302
|
}
|
|
3278
|
-
function
|
|
3303
|
+
function qi(e, t) {
|
|
3279
3304
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3280
|
-
return n[r] =
|
|
3305
|
+
return n[r] = Zi(e[r], t[r]), n;
|
|
3281
3306
|
}, I({}, e)) : e;
|
|
3282
3307
|
}
|
|
3283
3308
|
function Gt(e) {
|
|
@@ -3294,7 +3319,7 @@ function Gt(e) {
|
|
|
3294
3319
|
}
|
|
3295
3320
|
};
|
|
3296
3321
|
}
|
|
3297
|
-
function
|
|
3322
|
+
function Qi(e) {
|
|
3298
3323
|
return e === void 0 && (e = {
|
|
3299
3324
|
number: {},
|
|
3300
3325
|
dateTime: {},
|
|
@@ -3326,45 +3351,45 @@ function qi(e) {
|
|
|
3326
3351
|
})
|
|
3327
3352
|
};
|
|
3328
3353
|
}
|
|
3329
|
-
var
|
|
3354
|
+
var Ji = (
|
|
3330
3355
|
/** @class */
|
|
3331
3356
|
function() {
|
|
3332
3357
|
function e(t, n, r, i) {
|
|
3333
3358
|
n === void 0 && (n = e.defaultLocale);
|
|
3334
|
-
var
|
|
3359
|
+
var a = this;
|
|
3335
3360
|
if (this.formatterCache = {
|
|
3336
3361
|
number: {},
|
|
3337
3362
|
dateTime: {},
|
|
3338
3363
|
pluralRules: {}
|
|
3339
3364
|
}, this.format = function(c) {
|
|
3340
|
-
var u =
|
|
3365
|
+
var u = a.formatToParts(c);
|
|
3341
3366
|
if (u.length === 1)
|
|
3342
3367
|
return u[0].value;
|
|
3343
|
-
var
|
|
3368
|
+
var f = u.reduce(function(g, b) {
|
|
3344
3369
|
return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3345
3370
|
}, []);
|
|
3346
|
-
return
|
|
3371
|
+
return f.length <= 1 ? f[0] || "" : f;
|
|
3347
3372
|
}, this.formatToParts = function(c) {
|
|
3348
|
-
return
|
|
3373
|
+
return dt(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
|
|
3349
3374
|
}, this.resolvedOptions = function() {
|
|
3350
3375
|
var c;
|
|
3351
3376
|
return {
|
|
3352
|
-
locale: ((c =
|
|
3377
|
+
locale: ((c = a.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3353
3378
|
};
|
|
3354
3379
|
}, this.getAst = function() {
|
|
3355
|
-
return
|
|
3380
|
+
return a.ast;
|
|
3356
3381
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3357
3382
|
if (this.message = t, !e.__parse)
|
|
3358
3383
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3359
|
-
var
|
|
3360
|
-
|
|
3361
|
-
var
|
|
3362
|
-
this.ast = e.__parse(t, I(I({},
|
|
3384
|
+
var s = i || {};
|
|
3385
|
+
s.formatters;
|
|
3386
|
+
var o = si(s, ["formatters"]);
|
|
3387
|
+
this.ast = e.__parse(t, I(I({}, o), { locale: this.resolvedLocale }));
|
|
3363
3388
|
} else
|
|
3364
3389
|
this.ast = t;
|
|
3365
3390
|
if (!Array.isArray(this.ast))
|
|
3366
3391
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3367
|
-
this.formats =
|
|
3392
|
+
this.formats = qi(e.formats, r), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3368
3393
|
}
|
|
3369
3394
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3370
3395
|
get: function() {
|
|
@@ -3377,7 +3402,7 @@ var Qi = (
|
|
|
3377
3402
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3378
3403
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3379
3404
|
}
|
|
3380
|
-
}, e.__parse =
|
|
3405
|
+
}, e.__parse = ki, e.formats = {
|
|
3381
3406
|
number: {
|
|
3382
3407
|
integer: {
|
|
3383
3408
|
maximumFractionDigits: 0
|
|
@@ -3438,7 +3463,7 @@ var Qi = (
|
|
|
3438
3463
|
}, e;
|
|
3439
3464
|
}()
|
|
3440
3465
|
);
|
|
3441
|
-
function
|
|
3466
|
+
function Yi(e, t) {
|
|
3442
3467
|
if (t == null)
|
|
3443
3468
|
return;
|
|
3444
3469
|
if (t in e)
|
|
@@ -3448,9 +3473,9 @@ function Ji(e, t) {
|
|
|
3448
3473
|
for (let i = 0; i < n.length; i++)
|
|
3449
3474
|
if (typeof r == "object") {
|
|
3450
3475
|
if (i > 0) {
|
|
3451
|
-
const
|
|
3452
|
-
if (
|
|
3453
|
-
r = r[
|
|
3476
|
+
const a = n.slice(i, n.length).join(".");
|
|
3477
|
+
if (a in r) {
|
|
3478
|
+
r = r[a];
|
|
3454
3479
|
break;
|
|
3455
3480
|
}
|
|
3456
3481
|
}
|
|
@@ -3459,92 +3484,92 @@ function Ji(e, t) {
|
|
|
3459
3484
|
r = void 0;
|
|
3460
3485
|
return r;
|
|
3461
3486
|
}
|
|
3462
|
-
const
|
|
3487
|
+
const Ae = {}, Ki = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
|
|
3463
3488
|
if (t == null)
|
|
3464
3489
|
return;
|
|
3465
|
-
if (t in
|
|
3466
|
-
return
|
|
3467
|
-
const n =
|
|
3490
|
+
if (t in Ae && e in Ae[t])
|
|
3491
|
+
return Ae[t][e];
|
|
3492
|
+
const n = Bt(t);
|
|
3468
3493
|
for (let r = 0; r < n.length; r++) {
|
|
3469
|
-
const i = n[r],
|
|
3470
|
-
if (
|
|
3471
|
-
return
|
|
3494
|
+
const i = n[r], a = ta(i, e);
|
|
3495
|
+
if (a)
|
|
3496
|
+
return Ki(e, t, a);
|
|
3472
3497
|
}
|
|
3473
3498
|
};
|
|
3474
|
-
let
|
|
3475
|
-
const
|
|
3476
|
-
function
|
|
3477
|
-
return
|
|
3499
|
+
let an;
|
|
3500
|
+
const rt = Et({});
|
|
3501
|
+
function ea(e) {
|
|
3502
|
+
return an[e] || null;
|
|
3478
3503
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return e in
|
|
3504
|
+
function rr(e) {
|
|
3505
|
+
return e in an;
|
|
3481
3506
|
}
|
|
3482
|
-
function
|
|
3483
|
-
if (!
|
|
3507
|
+
function ta(e, t) {
|
|
3508
|
+
if (!rr(e))
|
|
3484
3509
|
return null;
|
|
3485
|
-
const n =
|
|
3486
|
-
return
|
|
3510
|
+
const n = ea(e);
|
|
3511
|
+
return Yi(n, t);
|
|
3487
3512
|
}
|
|
3488
|
-
function
|
|
3513
|
+
function na(e) {
|
|
3489
3514
|
if (e == null)
|
|
3490
3515
|
return;
|
|
3491
|
-
const t =
|
|
3516
|
+
const t = Bt(e);
|
|
3492
3517
|
for (let n = 0; n < t.length; n++) {
|
|
3493
3518
|
const r = t[n];
|
|
3494
|
-
if (
|
|
3519
|
+
if (rr(r))
|
|
3495
3520
|
return r;
|
|
3496
3521
|
}
|
|
3497
3522
|
}
|
|
3498
|
-
function
|
|
3499
|
-
delete
|
|
3523
|
+
function ir(e, ...t) {
|
|
3524
|
+
delete Ae[e], rt.update((n) => (n[e] = oi.all([n[e] || {}, ...t]), n));
|
|
3500
3525
|
}
|
|
3501
|
-
|
|
3502
|
-
[
|
|
3526
|
+
ke(
|
|
3527
|
+
[rt],
|
|
3503
3528
|
([e]) => Object.keys(e)
|
|
3504
3529
|
);
|
|
3505
|
-
|
|
3506
|
-
const
|
|
3507
|
-
function
|
|
3508
|
-
|
|
3530
|
+
rt.subscribe((e) => an = e);
|
|
3531
|
+
const pt = {};
|
|
3532
|
+
function ra(e, t) {
|
|
3533
|
+
pt[e].delete(t), pt[e].size === 0 && delete pt[e];
|
|
3509
3534
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3535
|
+
function ar(e) {
|
|
3536
|
+
return pt[e];
|
|
3512
3537
|
}
|
|
3513
|
-
function
|
|
3514
|
-
return
|
|
3515
|
-
const n =
|
|
3538
|
+
function ia(e) {
|
|
3539
|
+
return Bt(e).map((t) => {
|
|
3540
|
+
const n = ar(t);
|
|
3516
3541
|
return [t, n ? [...n] : []];
|
|
3517
3542
|
}).filter(([, t]) => t.length > 0);
|
|
3518
3543
|
}
|
|
3519
3544
|
function Yt(e) {
|
|
3520
|
-
return e == null ? !1 :
|
|
3545
|
+
return e == null ? !1 : Bt(e).some(
|
|
3521
3546
|
(t) => {
|
|
3522
3547
|
var n;
|
|
3523
|
-
return (n =
|
|
3548
|
+
return (n = ar(t)) == null ? void 0 : n.size;
|
|
3524
3549
|
}
|
|
3525
3550
|
);
|
|
3526
3551
|
}
|
|
3527
|
-
function
|
|
3552
|
+
function aa(e, t) {
|
|
3528
3553
|
return Promise.all(
|
|
3529
|
-
t.map((r) => (
|
|
3530
|
-
).then((r) =>
|
|
3554
|
+
t.map((r) => (ra(e, r), r().then((i) => i.default || i)))
|
|
3555
|
+
).then((r) => ir(e, ...r));
|
|
3531
3556
|
}
|
|
3532
|
-
const
|
|
3533
|
-
function
|
|
3557
|
+
const Ye = {};
|
|
3558
|
+
function or(e) {
|
|
3534
3559
|
if (!Yt(e))
|
|
3535
|
-
return e in
|
|
3536
|
-
const t =
|
|
3537
|
-
return
|
|
3560
|
+
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3561
|
+
const t = ia(e);
|
|
3562
|
+
return Ye[e] = Promise.all(
|
|
3538
3563
|
t.map(
|
|
3539
|
-
([n, r]) =>
|
|
3564
|
+
([n, r]) => aa(n, r)
|
|
3540
3565
|
)
|
|
3541
3566
|
).then(() => {
|
|
3542
3567
|
if (Yt(e))
|
|
3543
|
-
return
|
|
3544
|
-
delete
|
|
3545
|
-
}),
|
|
3568
|
+
return or(e);
|
|
3569
|
+
delete Ye[e];
|
|
3570
|
+
}), Ye[e];
|
|
3546
3571
|
}
|
|
3547
|
-
const
|
|
3572
|
+
const oa = {
|
|
3548
3573
|
number: {
|
|
3549
3574
|
scientific: { notation: "scientific" },
|
|
3550
3575
|
engineering: { notation: "engineering" },
|
|
@@ -3573,159 +3598,159 @@ const oo = {
|
|
|
3573
3598
|
timeZoneName: "short"
|
|
3574
3599
|
}
|
|
3575
3600
|
}
|
|
3576
|
-
},
|
|
3601
|
+
}, sa = {
|
|
3577
3602
|
fallbackLocale: null,
|
|
3578
3603
|
loadingDelay: 200,
|
|
3579
|
-
formats:
|
|
3604
|
+
formats: oa,
|
|
3580
3605
|
warnOnMissingMessages: !0,
|
|
3581
3606
|
handleMissingMessage: void 0,
|
|
3582
3607
|
ignoreTag: !0
|
|
3583
|
-
},
|
|
3584
|
-
function
|
|
3585
|
-
return
|
|
3608
|
+
}, la = sa;
|
|
3609
|
+
function $e() {
|
|
3610
|
+
return la;
|
|
3586
3611
|
}
|
|
3587
|
-
const $t =
|
|
3588
|
-
var
|
|
3612
|
+
const $t = Et(!1);
|
|
3613
|
+
var ua = Object.defineProperty, ca = Object.defineProperties, ha = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, fa = Object.prototype.hasOwnProperty, da = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pa = (e, t) => {
|
|
3589
3614
|
for (var n in t || (t = {}))
|
|
3590
|
-
|
|
3591
|
-
if (
|
|
3592
|
-
for (var n of
|
|
3593
|
-
|
|
3615
|
+
fa.call(t, n) && Bn(e, n, t[n]);
|
|
3616
|
+
if (_n)
|
|
3617
|
+
for (var n of _n(t))
|
|
3618
|
+
da.call(t, n) && Bn(e, n, t[n]);
|
|
3594
3619
|
return e;
|
|
3595
|
-
},
|
|
3620
|
+
}, ma = (e, t) => ca(e, ha(t));
|
|
3596
3621
|
let Kt;
|
|
3597
|
-
const
|
|
3598
|
-
function
|
|
3622
|
+
const yt = Et(null);
|
|
3623
|
+
function Tn(e) {
|
|
3599
3624
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3600
3625
|
}
|
|
3601
|
-
function
|
|
3602
|
-
const n =
|
|
3603
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3626
|
+
function Bt(e, t = $e().fallbackLocale) {
|
|
3627
|
+
const n = Tn(e);
|
|
3628
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
|
|
3604
3629
|
}
|
|
3605
3630
|
function Oe() {
|
|
3606
3631
|
return Kt != null ? Kt : void 0;
|
|
3607
3632
|
}
|
|
3608
|
-
|
|
3633
|
+
yt.subscribe((e) => {
|
|
3609
3634
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3610
3635
|
});
|
|
3611
|
-
const
|
|
3612
|
-
if (e &&
|
|
3613
|
-
const { loadingDelay: t } =
|
|
3636
|
+
const ga = (e) => {
|
|
3637
|
+
if (e && na(e) && Yt(e)) {
|
|
3638
|
+
const { loadingDelay: t } = $e();
|
|
3614
3639
|
let n;
|
|
3615
3640
|
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3616
3641
|
() => $t.set(!0),
|
|
3617
3642
|
t
|
|
3618
|
-
) : $t.set(!0),
|
|
3619
|
-
|
|
3643
|
+
) : $t.set(!0), or(e).then(() => {
|
|
3644
|
+
yt.set(e);
|
|
3620
3645
|
}).finally(() => {
|
|
3621
3646
|
clearTimeout(n), $t.set(!1);
|
|
3622
3647
|
});
|
|
3623
3648
|
}
|
|
3624
|
-
return
|
|
3625
|
-
},
|
|
3626
|
-
set:
|
|
3627
|
-
}),
|
|
3649
|
+
return yt.set(e);
|
|
3650
|
+
}, Ve = ma(pa({}, yt), {
|
|
3651
|
+
set: ga
|
|
3652
|
+
}), Tt = (e) => {
|
|
3628
3653
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3629
3654
|
return (r) => {
|
|
3630
3655
|
const i = JSON.stringify(r);
|
|
3631
3656
|
return i in t ? t[i] : t[i] = e(r);
|
|
3632
3657
|
};
|
|
3633
3658
|
};
|
|
3634
|
-
var
|
|
3659
|
+
var ba = Object.defineProperty, vt = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
|
|
3635
3660
|
for (var n in t || (t = {}))
|
|
3636
|
-
|
|
3637
|
-
if (
|
|
3638
|
-
for (var n of
|
|
3639
|
-
|
|
3661
|
+
sr.call(t, n) && wn(e, n, t[n]);
|
|
3662
|
+
if (vt)
|
|
3663
|
+
for (var n of vt(t))
|
|
3664
|
+
lr.call(t, n) && wn(e, n, t[n]);
|
|
3640
3665
|
return e;
|
|
3641
|
-
},
|
|
3666
|
+
}, Xe = (e, t) => {
|
|
3642
3667
|
var n = {};
|
|
3643
3668
|
for (var r in e)
|
|
3644
|
-
|
|
3645
|
-
if (e != null &&
|
|
3646
|
-
for (var r of
|
|
3647
|
-
t.indexOf(r) < 0 &&
|
|
3669
|
+
sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3670
|
+
if (e != null && vt)
|
|
3671
|
+
for (var r of vt(e))
|
|
3672
|
+
t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
|
|
3648
3673
|
return n;
|
|
3649
3674
|
};
|
|
3650
|
-
const
|
|
3651
|
-
const { formats: n } =
|
|
3675
|
+
const nt = (e, t) => {
|
|
3676
|
+
const { formats: n } = $e();
|
|
3652
3677
|
if (e in n && t in n[e])
|
|
3653
3678
|
return n[e][t];
|
|
3654
3679
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3655
|
-
},
|
|
3680
|
+
}, ya = Tt(
|
|
3656
3681
|
(e) => {
|
|
3657
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3682
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3658
3683
|
if (n == null)
|
|
3659
3684
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3660
|
-
return r && (i =
|
|
3685
|
+
return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
|
|
3661
3686
|
}
|
|
3662
|
-
),
|
|
3687
|
+
), va = Tt(
|
|
3663
3688
|
(e) => {
|
|
3664
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3689
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3665
3690
|
if (n == null)
|
|
3666
3691
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3667
|
-
return r ? i =
|
|
3692
|
+
return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3668
3693
|
}
|
|
3669
|
-
),
|
|
3694
|
+
), Ea = Tt(
|
|
3670
3695
|
(e) => {
|
|
3671
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3696
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3672
3697
|
if (n == null)
|
|
3673
3698
|
throw new Error(
|
|
3674
3699
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3675
3700
|
);
|
|
3676
|
-
return r ? i =
|
|
3701
|
+
return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3677
3702
|
}
|
|
3678
|
-
),
|
|
3703
|
+
), xa = (e = {}) => {
|
|
3679
3704
|
var t = e, {
|
|
3680
3705
|
locale: n = Oe()
|
|
3681
|
-
} = t, r =
|
|
3706
|
+
} = t, r = Xe(t, [
|
|
3682
3707
|
"locale"
|
|
3683
3708
|
]);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3709
|
+
return ya(on({ locale: n }, r));
|
|
3710
|
+
}, _a = (e = {}) => {
|
|
3686
3711
|
var t = e, {
|
|
3687
3712
|
locale: n = Oe()
|
|
3688
|
-
} = t, r =
|
|
3713
|
+
} = t, r = Xe(t, [
|
|
3689
3714
|
"locale"
|
|
3690
3715
|
]);
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3716
|
+
return va(on({ locale: n }, r));
|
|
3717
|
+
}, Ba = (e = {}) => {
|
|
3693
3718
|
var t = e, {
|
|
3694
3719
|
locale: n = Oe()
|
|
3695
|
-
} = t, r =
|
|
3720
|
+
} = t, r = Xe(t, [
|
|
3696
3721
|
"locale"
|
|
3697
3722
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3723
|
+
return Ea(on({ locale: n }, r));
|
|
3724
|
+
}, Ta = Tt(
|
|
3700
3725
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3701
|
-
(e, t = Oe()) => new
|
|
3702
|
-
ignoreTag:
|
|
3726
|
+
(e, t = Oe()) => new Ji(e, t, $e().formats, {
|
|
3727
|
+
ignoreTag: $e().ignoreTag
|
|
3703
3728
|
})
|
|
3704
|
-
),
|
|
3705
|
-
var n, r, i,
|
|
3706
|
-
let
|
|
3707
|
-
typeof e == "object" && (
|
|
3729
|
+
), wa = (e, t = {}) => {
|
|
3730
|
+
var n, r, i, a;
|
|
3731
|
+
let s = t;
|
|
3732
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3708
3733
|
const {
|
|
3709
|
-
values:
|
|
3734
|
+
values: o,
|
|
3710
3735
|
locale: c = Oe(),
|
|
3711
3736
|
default: u
|
|
3712
|
-
} =
|
|
3737
|
+
} = s;
|
|
3713
3738
|
if (c == null)
|
|
3714
3739
|
throw new Error(
|
|
3715
3740
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3716
3741
|
);
|
|
3717
|
-
let
|
|
3718
|
-
if (!
|
|
3719
|
-
|
|
3720
|
-
else if (typeof
|
|
3742
|
+
let f = nr(e, c);
|
|
3743
|
+
if (!f)
|
|
3744
|
+
f = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3745
|
+
else if (typeof f != "string")
|
|
3721
3746
|
return console.warn(
|
|
3722
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3723
|
-
),
|
|
3724
|
-
if (!
|
|
3725
|
-
return
|
|
3726
|
-
let g =
|
|
3747
|
+
`[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.`
|
|
3748
|
+
), f;
|
|
3749
|
+
if (!o)
|
|
3750
|
+
return f;
|
|
3751
|
+
let g = f;
|
|
3727
3752
|
try {
|
|
3728
|
-
g =
|
|
3753
|
+
g = Ta(f, c).format(o);
|
|
3729
3754
|
} catch (b) {
|
|
3730
3755
|
b instanceof Error && console.warn(
|
|
3731
3756
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3733,18 +3758,18 @@ const rt = (e, t) => {
|
|
|
3733
3758
|
);
|
|
3734
3759
|
}
|
|
3735
3760
|
return g;
|
|
3736
|
-
},
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
function
|
|
3742
|
-
|
|
3743
|
-
}
|
|
3744
|
-
function
|
|
3745
|
-
|
|
3746
|
-
}
|
|
3747
|
-
const
|
|
3761
|
+
}, Sa = (e, t) => Ba(t).format(e), Aa = (e, t) => _a(t).format(e), Ca = (e, t) => xa(t).format(e), Ha = (e, t = Oe()) => nr(e, t), Oa = ke([Ve, rt], () => wa);
|
|
3762
|
+
ke([Ve], () => Sa);
|
|
3763
|
+
ke([Ve], () => Aa);
|
|
3764
|
+
ke([Ve], () => Ca);
|
|
3765
|
+
ke([Ve, rt], () => Ha);
|
|
3766
|
+
function Sn(e, t) {
|
|
3767
|
+
ir(e, t);
|
|
3768
|
+
}
|
|
3769
|
+
function Ra(e) {
|
|
3770
|
+
Ve.set(e);
|
|
3771
|
+
}
|
|
3772
|
+
const An = {
|
|
3748
3773
|
en: {
|
|
3749
3774
|
Title: "Your Balance",
|
|
3750
3775
|
Total: "Total Balance",
|
|
@@ -3952,35 +3977,35 @@ var en = { exports: {} };
|
|
|
3952
3977
|
*/
|
|
3953
3978
|
(function(e, t) {
|
|
3954
3979
|
(function(n) {
|
|
3955
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3956
|
-
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3980
|
+
var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, s = n.XDomainRequest, o = n.ActiveXObject, c = n.EventSource, u = n.document, f = n.Promise, g = n.fetch, b = n.Response, B = n.TextDecoder, T = n.TextEncoder, S = n.AbortController;
|
|
3981
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3957
3982
|
u.readyState = "complete";
|
|
3958
|
-
}, !1)),
|
|
3959
|
-
return new
|
|
3960
|
-
}), Object.create == null && (Object.create = function(
|
|
3961
|
-
function
|
|
3983
|
+
}, !1)), a == null && o != null && (a = function() {
|
|
3984
|
+
return new o("Microsoft.XMLHTTP");
|
|
3985
|
+
}), Object.create == null && (Object.create = function(h) {
|
|
3986
|
+
function l() {
|
|
3962
3987
|
}
|
|
3963
|
-
return
|
|
3988
|
+
return l.prototype = h, new l();
|
|
3964
3989
|
}), Date.now || (Date.now = function() {
|
|
3965
3990
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3966
|
-
}),
|
|
3967
|
-
var
|
|
3968
|
-
g = function(
|
|
3969
|
-
var p =
|
|
3970
|
-
return
|
|
3971
|
-
var
|
|
3972
|
-
return p._reader =
|
|
3973
|
-
status:
|
|
3974
|
-
statusText:
|
|
3975
|
-
headers:
|
|
3991
|
+
}), S == null) {
|
|
3992
|
+
var _ = g;
|
|
3993
|
+
g = function(h, l) {
|
|
3994
|
+
var p = l.signal;
|
|
3995
|
+
return _(h, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(d) {
|
|
3996
|
+
var m = d.body.getReader();
|
|
3997
|
+
return p._reader = m, p._aborted && p._reader.cancel(), {
|
|
3998
|
+
status: d.status,
|
|
3999
|
+
statusText: d.statusText,
|
|
4000
|
+
headers: d.headers,
|
|
3976
4001
|
body: {
|
|
3977
4002
|
getReader: function() {
|
|
3978
|
-
return
|
|
4003
|
+
return m;
|
|
3979
4004
|
}
|
|
3980
4005
|
}
|
|
3981
4006
|
};
|
|
3982
4007
|
});
|
|
3983
|
-
},
|
|
4008
|
+
}, S = function() {
|
|
3984
4009
|
this.signal = {
|
|
3985
4010
|
_reader: null,
|
|
3986
4011
|
_aborted: !1
|
|
@@ -3989,407 +4014,407 @@ var en = { exports: {} };
|
|
|
3989
4014
|
};
|
|
3990
4015
|
};
|
|
3991
4016
|
}
|
|
3992
|
-
function
|
|
4017
|
+
function C() {
|
|
3993
4018
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3994
4019
|
}
|
|
3995
|
-
|
|
3996
|
-
function
|
|
3997
|
-
if (
|
|
3998
|
-
return
|
|
3999
|
-
if (
|
|
4000
|
-
return
|
|
4001
|
-
if (
|
|
4002
|
-
return
|
|
4020
|
+
C.prototype.decode = function(h) {
|
|
4021
|
+
function l(N, G, A) {
|
|
4022
|
+
if (A === 1)
|
|
4023
|
+
return N >= 128 >> G && N << G <= 2047;
|
|
4024
|
+
if (A === 2)
|
|
4025
|
+
return N >= 2048 >> G && N << G <= 55295 || N >= 57344 >> G && N << G <= 65535;
|
|
4026
|
+
if (A === 3)
|
|
4027
|
+
return N >= 65536 >> G && N << G <= 1114111;
|
|
4003
4028
|
throw new Error();
|
|
4004
4029
|
}
|
|
4005
|
-
function p(
|
|
4006
|
-
if (
|
|
4030
|
+
function p(N, G) {
|
|
4031
|
+
if (N === 6 * 1)
|
|
4007
4032
|
return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
|
|
4008
|
-
if (
|
|
4033
|
+
if (N === 6 * 2)
|
|
4009
4034
|
return G > 15 ? 3 : 2;
|
|
4010
|
-
if (
|
|
4035
|
+
if (N === 6 * 3)
|
|
4011
4036
|
return 3;
|
|
4012
4037
|
throw new Error();
|
|
4013
4038
|
}
|
|
4014
|
-
for (var
|
|
4015
|
-
var
|
|
4016
|
-
|
|
4039
|
+
for (var d = 65533, m = "", y = this.bitsNeeded, x = this.codePoint, v = 0; v < h.length; v += 1) {
|
|
4040
|
+
var w = h[v];
|
|
4041
|
+
y !== 0 && (w < 128 || w > 191 || !l(x << 6 | w & 63, y - 6, p(y, x))) && (y = 0, x = d, m += String.fromCharCode(x)), y === 0 ? (w >= 0 && w <= 127 ? (y = 0, x = w) : w >= 192 && w <= 223 ? (y = 6 * 1, x = w & 31) : w >= 224 && w <= 239 ? (y = 6 * 2, x = w & 15) : w >= 240 && w <= 247 ? (y = 6 * 3, x = w & 7) : (y = 0, x = d), y !== 0 && !l(x, y, p(y, x)) && (y = 0, x = d)) : (y -= 6, x = x << 6 | w & 63), y === 0 && (x <= 65535 ? m += String.fromCharCode(x) : (m += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
|
|
4017
4042
|
}
|
|
4018
|
-
return this.bitsNeeded =
|
|
4043
|
+
return this.bitsNeeded = y, this.codePoint = x, m;
|
|
4019
4044
|
};
|
|
4020
4045
|
var D = function() {
|
|
4021
4046
|
try {
|
|
4022
|
-
return new
|
|
4023
|
-
} catch (
|
|
4024
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4047
|
+
return new B().decode(new T().encode("test"), { stream: !0 }) === "test";
|
|
4048
|
+
} catch (h) {
|
|
4049
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4025
4050
|
}
|
|
4026
4051
|
return !1;
|
|
4027
4052
|
};
|
|
4028
|
-
(
|
|
4029
|
-
var
|
|
4053
|
+
(B == null || T == null || !D()) && (B = C);
|
|
4054
|
+
var O = function() {
|
|
4030
4055
|
};
|
|
4031
|
-
function U(
|
|
4032
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4056
|
+
function U(h) {
|
|
4057
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = O;
|
|
4033
4058
|
}
|
|
4034
|
-
U.prototype.open = function(
|
|
4059
|
+
U.prototype.open = function(h, l) {
|
|
4035
4060
|
this._abort(!0);
|
|
4036
|
-
var p = this,
|
|
4037
|
-
this._abort = function(
|
|
4038
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
4061
|
+
var p = this, d = this._xhr, m = 1, y = 0;
|
|
4062
|
+
this._abort = function(A) {
|
|
4063
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, d.onload = O, d.onerror = O, d.onabort = O, d.onprogress = O, d.onreadystatechange = O, d.abort(), y !== 0 && (i(y), y = 0), A || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
|
|
4039
4064
|
};
|
|
4040
|
-
var
|
|
4041
|
-
if (
|
|
4042
|
-
var
|
|
4043
|
-
if ("contentType" in
|
|
4044
|
-
|
|
4065
|
+
var x = function() {
|
|
4066
|
+
if (m === 1) {
|
|
4067
|
+
var A = 0, V = "", xe = void 0;
|
|
4068
|
+
if ("contentType" in d)
|
|
4069
|
+
A = 200, V = "OK", xe = d.contentType;
|
|
4045
4070
|
else
|
|
4046
4071
|
try {
|
|
4047
|
-
|
|
4048
|
-
} catch (
|
|
4049
|
-
|
|
4072
|
+
A = d.status, V = d.statusText, xe = d.getResponseHeader("Content-Type");
|
|
4073
|
+
} catch (Qe) {
|
|
4074
|
+
A = 0, V = "", xe = void 0;
|
|
4050
4075
|
}
|
|
4051
|
-
|
|
4076
|
+
A !== 0 && (m = 2, p.readyState = 2, p.status = A, p.statusText = V, p._contentType = xe, p.onreadystatechange());
|
|
4052
4077
|
}
|
|
4053
|
-
},
|
|
4054
|
-
if (
|
|
4055
|
-
|
|
4056
|
-
var
|
|
4078
|
+
}, v = function() {
|
|
4079
|
+
if (x(), m === 2 || m === 3) {
|
|
4080
|
+
m = 3;
|
|
4081
|
+
var A = "";
|
|
4057
4082
|
try {
|
|
4058
|
-
|
|
4083
|
+
A = d.responseText;
|
|
4059
4084
|
} catch (V) {
|
|
4060
4085
|
}
|
|
4061
|
-
p.readyState = 3, p.responseText =
|
|
4086
|
+
p.readyState = 3, p.responseText = A, p.onprogress();
|
|
4062
4087
|
}
|
|
4063
|
-
},
|
|
4088
|
+
}, w = function(A, V) {
|
|
4064
4089
|
if ((V == null || V.preventDefault == null) && (V = {
|
|
4065
|
-
preventDefault:
|
|
4066
|
-
}),
|
|
4067
|
-
if (
|
|
4090
|
+
preventDefault: O
|
|
4091
|
+
}), v(), m === 1 || m === 2 || m === 3) {
|
|
4092
|
+
if (m = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, A === "load")
|
|
4068
4093
|
p.onload(V);
|
|
4069
|
-
else if (
|
|
4094
|
+
else if (A === "error")
|
|
4070
4095
|
p.onerror(V);
|
|
4071
|
-
else if (
|
|
4096
|
+
else if (A === "abort")
|
|
4072
4097
|
p.onabort(V);
|
|
4073
4098
|
else
|
|
4074
4099
|
throw new TypeError();
|
|
4075
4100
|
p.onreadystatechange();
|
|
4076
4101
|
}
|
|
4077
|
-
},
|
|
4078
|
-
|
|
4102
|
+
}, N = function(A) {
|
|
4103
|
+
d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && w(d.responseText === "" ? "error" : "load", A) : d.readyState === 3 ? "onprogress" in d || v() : d.readyState === 2 && x());
|
|
4079
4104
|
}, G = function() {
|
|
4080
|
-
|
|
4105
|
+
y = r(function() {
|
|
4081
4106
|
G();
|
|
4082
|
-
}, 500),
|
|
4107
|
+
}, 500), d.readyState === 3 && v();
|
|
4083
4108
|
};
|
|
4084
|
-
"onload" in
|
|
4085
|
-
|
|
4086
|
-
}), "onerror" in
|
|
4087
|
-
|
|
4088
|
-
}), "onabort" in
|
|
4089
|
-
|
|
4090
|
-
}), "onprogress" in
|
|
4091
|
-
|
|
4092
|
-
}), ("contentType" in
|
|
4109
|
+
"onload" in d && (d.onload = function(A) {
|
|
4110
|
+
w("load", A);
|
|
4111
|
+
}), "onerror" in d && (d.onerror = function(A) {
|
|
4112
|
+
w("error", A);
|
|
4113
|
+
}), "onabort" in d && (d.onabort = function(A) {
|
|
4114
|
+
w("abort", A);
|
|
4115
|
+
}), "onprogress" in d && (d.onprogress = v), "onreadystatechange" in d && (d.onreadystatechange = function(A) {
|
|
4116
|
+
N(A);
|
|
4117
|
+
}), ("contentType" in d || !("ontimeout" in a.prototype)) && (l += (l.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(h, l, !0), "readyState" in d && (y = r(function() {
|
|
4093
4118
|
G();
|
|
4094
4119
|
}, 0));
|
|
4095
4120
|
}, U.prototype.abort = function() {
|
|
4096
4121
|
this._abort(!1);
|
|
4097
|
-
}, U.prototype.getResponseHeader = function(
|
|
4122
|
+
}, U.prototype.getResponseHeader = function(h) {
|
|
4098
4123
|
return this._contentType;
|
|
4099
|
-
}, U.prototype.setRequestHeader = function(
|
|
4124
|
+
}, U.prototype.setRequestHeader = function(h, l) {
|
|
4100
4125
|
var p = this._xhr;
|
|
4101
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4126
|
+
"setRequestHeader" in p && p.setRequestHeader(h, l);
|
|
4102
4127
|
}, U.prototype.getAllResponseHeaders = function() {
|
|
4103
4128
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4104
4129
|
}, U.prototype.send = function() {
|
|
4105
|
-
if ((!("ontimeout" in
|
|
4106
|
-
var
|
|
4107
|
-
|
|
4108
|
-
|
|
4130
|
+
if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4131
|
+
var h = this;
|
|
4132
|
+
h._sendTimeout = r(function() {
|
|
4133
|
+
h._sendTimeout = 0, h.send();
|
|
4109
4134
|
}, 4);
|
|
4110
4135
|
return;
|
|
4111
4136
|
}
|
|
4112
|
-
var
|
|
4113
|
-
"withCredentials" in
|
|
4137
|
+
var l = this._xhr;
|
|
4138
|
+
"withCredentials" in l && (l.withCredentials = this.withCredentials);
|
|
4114
4139
|
try {
|
|
4115
|
-
|
|
4140
|
+
l.send(void 0);
|
|
4116
4141
|
} catch (p) {
|
|
4117
4142
|
throw p;
|
|
4118
4143
|
}
|
|
4119
4144
|
};
|
|
4120
|
-
function
|
|
4121
|
-
return
|
|
4122
|
-
return String.fromCharCode(
|
|
4145
|
+
function q(h) {
|
|
4146
|
+
return h.replace(/[A-Z]/g, function(l) {
|
|
4147
|
+
return String.fromCharCode(l.charCodeAt(0) + 32);
|
|
4123
4148
|
});
|
|
4124
4149
|
}
|
|
4125
|
-
function
|
|
4126
|
-
for (var
|
|
4127
|
-
`),
|
|
4128
|
-
var
|
|
4129
|
-
|
|
4150
|
+
function re(h) {
|
|
4151
|
+
for (var l = /* @__PURE__ */ Object.create(null), p = h.split(`\r
|
|
4152
|
+
`), d = 0; d < p.length; d += 1) {
|
|
4153
|
+
var m = p[d], y = m.split(": "), x = y.shift(), v = y.join(": ");
|
|
4154
|
+
l[q(x)] = v;
|
|
4130
4155
|
}
|
|
4131
|
-
this._map =
|
|
4156
|
+
this._map = l;
|
|
4132
4157
|
}
|
|
4133
|
-
|
|
4134
|
-
return this._map[
|
|
4135
|
-
},
|
|
4136
|
-
function
|
|
4158
|
+
re.prototype.get = function(h) {
|
|
4159
|
+
return this._map[q(h)];
|
|
4160
|
+
}, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
|
|
4161
|
+
function z() {
|
|
4137
4162
|
}
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
var
|
|
4141
|
-
|
|
4142
|
-
var
|
|
4143
|
-
|
|
4144
|
-
},
|
|
4145
|
-
|
|
4146
|
-
},
|
|
4147
|
-
|
|
4148
|
-
},
|
|
4149
|
-
|
|
4150
|
-
},
|
|
4151
|
-
if (
|
|
4152
|
-
var
|
|
4153
|
-
|
|
4163
|
+
z.prototype.open = function(h, l, p, d, m, y, x) {
|
|
4164
|
+
h.open("GET", m);
|
|
4165
|
+
var v = 0;
|
|
4166
|
+
h.onprogress = function() {
|
|
4167
|
+
var N = h.responseText, G = N.slice(v);
|
|
4168
|
+
v += G.length, p(G);
|
|
4169
|
+
}, h.onerror = function(N) {
|
|
4170
|
+
N.preventDefault(), d(new Error("NetworkError"));
|
|
4171
|
+
}, h.onload = function() {
|
|
4172
|
+
d(null);
|
|
4173
|
+
}, h.onabort = function() {
|
|
4174
|
+
d(null);
|
|
4175
|
+
}, h.onreadystatechange = function() {
|
|
4176
|
+
if (h.readyState === a.HEADERS_RECEIVED) {
|
|
4177
|
+
var N = h.status, G = h.statusText, A = h.getResponseHeader("Content-Type"), V = h.getAllResponseHeaders();
|
|
4178
|
+
l(N, G, A, new re(V));
|
|
4154
4179
|
}
|
|
4155
|
-
},
|
|
4156
|
-
for (var
|
|
4157
|
-
Object.prototype.hasOwnProperty.call(
|
|
4158
|
-
return
|
|
4180
|
+
}, h.withCredentials = y;
|
|
4181
|
+
for (var w in x)
|
|
4182
|
+
Object.prototype.hasOwnProperty.call(x, w) && h.setRequestHeader(w, x[w]);
|
|
4183
|
+
return h.send(), h;
|
|
4159
4184
|
};
|
|
4160
|
-
function
|
|
4161
|
-
this._headers =
|
|
4185
|
+
function X(h) {
|
|
4186
|
+
this._headers = h;
|
|
4162
4187
|
}
|
|
4163
|
-
|
|
4164
|
-
return this._headers.get(
|
|
4188
|
+
X.prototype.get = function(h) {
|
|
4189
|
+
return this._headers.get(h);
|
|
4165
4190
|
};
|
|
4166
|
-
function
|
|
4191
|
+
function P() {
|
|
4167
4192
|
}
|
|
4168
|
-
|
|
4169
|
-
var
|
|
4170
|
-
return g(
|
|
4171
|
-
headers:
|
|
4172
|
-
credentials:
|
|
4173
|
-
signal:
|
|
4193
|
+
P.prototype.open = function(h, l, p, d, m, y, x) {
|
|
4194
|
+
var v = null, w = new S(), N = w.signal, G = new B();
|
|
4195
|
+
return g(m, {
|
|
4196
|
+
headers: x,
|
|
4197
|
+
credentials: y ? "include" : "same-origin",
|
|
4198
|
+
signal: N,
|
|
4174
4199
|
cache: "no-store"
|
|
4175
|
-
}).then(function(
|
|
4176
|
-
return
|
|
4177
|
-
var
|
|
4178
|
-
|
|
4179
|
-
if (
|
|
4200
|
+
}).then(function(A) {
|
|
4201
|
+
return v = A.body.getReader(), l(A.status, A.statusText, A.headers.get("Content-Type"), new X(A.headers)), new f(function(V, xe) {
|
|
4202
|
+
var Qe = function() {
|
|
4203
|
+
v.read().then(function(ae) {
|
|
4204
|
+
if (ae.done)
|
|
4180
4205
|
V(void 0);
|
|
4181
4206
|
else {
|
|
4182
|
-
var K = G.decode(
|
|
4183
|
-
p(K),
|
|
4207
|
+
var K = G.decode(ae.value, { stream: !0 });
|
|
4208
|
+
p(K), Qe();
|
|
4184
4209
|
}
|
|
4185
|
-
}).catch(function(
|
|
4186
|
-
|
|
4210
|
+
}).catch(function(ae) {
|
|
4211
|
+
xe(ae);
|
|
4187
4212
|
});
|
|
4188
4213
|
};
|
|
4189
|
-
|
|
4214
|
+
Qe();
|
|
4190
4215
|
});
|
|
4191
|
-
}).catch(function(
|
|
4192
|
-
if (
|
|
4193
|
-
return
|
|
4194
|
-
}).then(function(
|
|
4195
|
-
|
|
4216
|
+
}).catch(function(A) {
|
|
4217
|
+
if (A.name !== "AbortError")
|
|
4218
|
+
return A;
|
|
4219
|
+
}).then(function(A) {
|
|
4220
|
+
d(A);
|
|
4196
4221
|
}), {
|
|
4197
4222
|
abort: function() {
|
|
4198
|
-
|
|
4223
|
+
v != null && v.cancel(), w.abort();
|
|
4199
4224
|
}
|
|
4200
4225
|
};
|
|
4201
4226
|
};
|
|
4202
|
-
function
|
|
4227
|
+
function $() {
|
|
4203
4228
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4204
4229
|
}
|
|
4205
|
-
function F(
|
|
4230
|
+
function F(h) {
|
|
4206
4231
|
r(function() {
|
|
4207
|
-
throw
|
|
4232
|
+
throw h;
|
|
4208
4233
|
}, 0);
|
|
4209
4234
|
}
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
var
|
|
4213
|
-
if (
|
|
4214
|
-
for (var p =
|
|
4215
|
-
var
|
|
4235
|
+
$.prototype.dispatchEvent = function(h) {
|
|
4236
|
+
h.target = this;
|
|
4237
|
+
var l = this._listeners[h.type];
|
|
4238
|
+
if (l != null)
|
|
4239
|
+
for (var p = l.length, d = 0; d < p; d += 1) {
|
|
4240
|
+
var m = l[d];
|
|
4216
4241
|
try {
|
|
4217
|
-
typeof
|
|
4218
|
-
} catch (
|
|
4219
|
-
F(
|
|
4242
|
+
typeof m.handleEvent == "function" ? m.handleEvent(h) : m.call(this, h);
|
|
4243
|
+
} catch (y) {
|
|
4244
|
+
F(y);
|
|
4220
4245
|
}
|
|
4221
4246
|
}
|
|
4222
|
-
},
|
|
4223
|
-
|
|
4224
|
-
var p = this._listeners,
|
|
4225
|
-
|
|
4226
|
-
for (var
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
},
|
|
4230
|
-
|
|
4231
|
-
var p = this._listeners,
|
|
4232
|
-
if (
|
|
4233
|
-
for (var
|
|
4234
|
-
|
|
4235
|
-
|
|
4247
|
+
}, $.prototype.addEventListener = function(h, l) {
|
|
4248
|
+
h = String(h);
|
|
4249
|
+
var p = this._listeners, d = p[h];
|
|
4250
|
+
d == null && (d = [], p[h] = d);
|
|
4251
|
+
for (var m = !1, y = 0; y < d.length; y += 1)
|
|
4252
|
+
d[y] === l && (m = !0);
|
|
4253
|
+
m || d.push(l);
|
|
4254
|
+
}, $.prototype.removeEventListener = function(h, l) {
|
|
4255
|
+
h = String(h);
|
|
4256
|
+
var p = this._listeners, d = p[h];
|
|
4257
|
+
if (d != null) {
|
|
4258
|
+
for (var m = [], y = 0; y < d.length; y += 1)
|
|
4259
|
+
d[y] !== l && m.push(d[y]);
|
|
4260
|
+
m.length === 0 ? delete p[h] : p[h] = m;
|
|
4236
4261
|
}
|
|
4237
4262
|
};
|
|
4238
|
-
function
|
|
4239
|
-
this.type =
|
|
4263
|
+
function Y(h) {
|
|
4264
|
+
this.type = h, this.target = void 0;
|
|
4240
4265
|
}
|
|
4241
|
-
function
|
|
4242
|
-
|
|
4266
|
+
function E(h, l) {
|
|
4267
|
+
Y.call(this, h), this.data = l.data, this.lastEventId = l.lastEventId;
|
|
4243
4268
|
}
|
|
4244
|
-
|
|
4245
|
-
function
|
|
4246
|
-
|
|
4269
|
+
E.prototype = Object.create(Y.prototype);
|
|
4270
|
+
function ye(h, l) {
|
|
4271
|
+
Y.call(this, h), this.status = l.status, this.statusText = l.statusText, this.headers = l.headers;
|
|
4247
4272
|
}
|
|
4248
|
-
|
|
4249
|
-
function
|
|
4250
|
-
|
|
4273
|
+
ye.prototype = Object.create(Y.prototype);
|
|
4274
|
+
function it(h, l) {
|
|
4275
|
+
Y.call(this, h), this.error = l.error;
|
|
4251
4276
|
}
|
|
4252
|
-
|
|
4253
|
-
var
|
|
4254
|
-
var p =
|
|
4255
|
-
return p !== p && (p =
|
|
4256
|
-
},
|
|
4257
|
-
return Math.min(Math.max(
|
|
4258
|
-
},
|
|
4277
|
+
it.prototype = Object.create(Y.prototype);
|
|
4278
|
+
var ve = -1, he = 0, Se = 1, Ce = 2, ze = -1, le = 0, Re = 1, at = 2, We = 3, ot = /^text\/event\-stream(;.*)?$/i, wt = 1e3, st = 18e6, Ze = function(h, l) {
|
|
4279
|
+
var p = h == null ? l : parseInt(h, 10);
|
|
4280
|
+
return p !== p && (p = l), qe(p);
|
|
4281
|
+
}, qe = function(h) {
|
|
4282
|
+
return Math.min(Math.max(h, wt), st);
|
|
4283
|
+
}, Ee = function(h, l, p) {
|
|
4259
4284
|
try {
|
|
4260
|
-
typeof
|
|
4261
|
-
} catch (
|
|
4262
|
-
F(
|
|
4285
|
+
typeof l == "function" && l.call(h, p);
|
|
4286
|
+
} catch (d) {
|
|
4287
|
+
F(d);
|
|
4263
4288
|
}
|
|
4264
4289
|
};
|
|
4265
|
-
function
|
|
4266
|
-
|
|
4290
|
+
function ie(h, l) {
|
|
4291
|
+
$.call(this), l = l || {}, 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, Ct(this, h, l);
|
|
4267
4292
|
}
|
|
4268
4293
|
function St() {
|
|
4269
|
-
return
|
|
4294
|
+
return a != null && "withCredentials" in a.prototype || s == null ? new a() : new s();
|
|
4270
4295
|
}
|
|
4271
4296
|
var At = g != null && b != null && "body" in b.prototype;
|
|
4272
|
-
function Ct(
|
|
4273
|
-
|
|
4274
|
-
var
|
|
4275
|
-
if (
|
|
4276
|
-
if (Z === 200 && oe != null &&
|
|
4277
|
-
|
|
4278
|
-
var te = new
|
|
4297
|
+
function Ct(h, l, p) {
|
|
4298
|
+
l = String(l);
|
|
4299
|
+
var d = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", y = qe(1e3), x = Ze(p.heartbeatTimeout, 45e3), v = "", w = y, N = !1, G = 0, A = p.headers || {}, V = p.Transport, xe = At && V == null ? void 0 : new U(V != null ? new V() : St()), Qe = V != null && typeof V != "string" ? new V() : xe == null ? new P() : new z(), ae = void 0, K = 0, fe = ve, Le = "", ut = "", _e = "", ct = "", ee = le, Ht = 0, He = 0, cr = function(Z, W, oe, se) {
|
|
4300
|
+
if (fe === he)
|
|
4301
|
+
if (Z === 200 && oe != null && ot.test(oe)) {
|
|
4302
|
+
fe = Se, N = Date.now(), w = y, h.readyState = Se;
|
|
4303
|
+
var te = new ye("open", {
|
|
4279
4304
|
status: Z,
|
|
4280
|
-
statusText:
|
|
4281
|
-
headers:
|
|
4305
|
+
statusText: W,
|
|
4306
|
+
headers: se
|
|
4282
4307
|
});
|
|
4283
|
-
|
|
4308
|
+
h.dispatchEvent(te), Ee(h, h.onopen, te);
|
|
4284
4309
|
} else {
|
|
4285
4310
|
var Q = "";
|
|
4286
|
-
Z !== 200 ? (
|
|
4287
|
-
var te = new
|
|
4311
|
+
Z !== 200 ? (W && (W = W.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + W + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4312
|
+
var te = new ye("error", {
|
|
4288
4313
|
status: Z,
|
|
4289
|
-
statusText:
|
|
4290
|
-
headers:
|
|
4314
|
+
statusText: W,
|
|
4315
|
+
headers: se
|
|
4291
4316
|
});
|
|
4292
|
-
|
|
4317
|
+
h.dispatchEvent(te), Ee(h, h.onerror, te), console.error(Q);
|
|
4293
4318
|
}
|
|
4294
|
-
},
|
|
4295
|
-
if (
|
|
4296
|
-
for (var
|
|
4297
|
-
var
|
|
4298
|
-
(
|
|
4319
|
+
}, hr = function(Z) {
|
|
4320
|
+
if (fe === Se) {
|
|
4321
|
+
for (var W = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4322
|
+
var se = Z.charCodeAt(oe);
|
|
4323
|
+
(se === 10 || se === 13) && (W = oe);
|
|
4299
4324
|
}
|
|
4300
|
-
var te = (
|
|
4301
|
-
|
|
4325
|
+
var te = (W !== -1 ? ct : "") + Z.slice(0, W + 1);
|
|
4326
|
+
ct = (W === -1 ? ct : "") + Z.slice(W + 1), Z !== "" && (N = Date.now(), G += Z.length);
|
|
4302
4327
|
for (var Q = 0; Q < te.length; Q += 1) {
|
|
4303
|
-
var
|
|
4304
|
-
if (ee ===
|
|
4305
|
-
ee =
|
|
4306
|
-
else if (ee ===
|
|
4307
|
-
if (ee !==
|
|
4308
|
-
ee ===
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4311
|
-
`,
|
|
4312
|
-
|
|
4313
|
-
},
|
|
4328
|
+
var se = te.charCodeAt(Q);
|
|
4329
|
+
if (ee === ze && se === 10)
|
|
4330
|
+
ee = le;
|
|
4331
|
+
else if (ee === ze && (ee = le), se === 13 || se === 10) {
|
|
4332
|
+
if (ee !== le) {
|
|
4333
|
+
ee === Re && (He = Q + 1);
|
|
4334
|
+
var Be = te.slice(Ht, He - 1), Te = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
|
|
4335
|
+
Be === "data" ? (Le += `
|
|
4336
|
+
`, Le += Te) : Be === "id" ? ut = Te : Be === "event" ? _e = Te : Be === "retry" ? (y = Ze(Te, y), w = y) : Be === "heartbeatTimeout" && (x = Ze(Te, x), K !== 0 && (i(K), K = r(function() {
|
|
4337
|
+
Je();
|
|
4338
|
+
}, x)));
|
|
4314
4339
|
}
|
|
4315
|
-
if (ee ===
|
|
4316
|
-
if (
|
|
4317
|
-
|
|
4318
|
-
var
|
|
4319
|
-
data:
|
|
4320
|
-
lastEventId:
|
|
4340
|
+
if (ee === le) {
|
|
4341
|
+
if (Le !== "") {
|
|
4342
|
+
v = ut, _e === "" && (_e = "message");
|
|
4343
|
+
var Me = new E(_e, {
|
|
4344
|
+
data: Le.slice(1),
|
|
4345
|
+
lastEventId: ut
|
|
4321
4346
|
});
|
|
4322
|
-
if (
|
|
4347
|
+
if (h.dispatchEvent(Me), _e === "open" ? Ee(h, h.onopen, Me) : _e === "message" ? Ee(h, h.onmessage, Me) : _e === "error" && Ee(h, h.onerror, Me), fe === Ce)
|
|
4323
4348
|
return;
|
|
4324
4349
|
}
|
|
4325
|
-
|
|
4350
|
+
Le = "", _e = "";
|
|
4326
4351
|
}
|
|
4327
|
-
ee =
|
|
4352
|
+
ee = se === 13 ? ze : le;
|
|
4328
4353
|
} else
|
|
4329
|
-
ee ===
|
|
4354
|
+
ee === le && (Ht = Q, ee = Re), ee === Re ? se === 58 && (He = Q + 1, ee = at) : ee === at && (ee = We);
|
|
4330
4355
|
}
|
|
4331
4356
|
}
|
|
4332
|
-
},
|
|
4333
|
-
if (
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
},
|
|
4337
|
-
var
|
|
4338
|
-
|
|
4357
|
+
}, ln = function(Z) {
|
|
4358
|
+
if (fe === Se || fe === he) {
|
|
4359
|
+
fe = ve, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4360
|
+
Je();
|
|
4361
|
+
}, w), w = qe(Math.min(y * 16, w * 2)), h.readyState = he;
|
|
4362
|
+
var W = new it("error", { error: Z });
|
|
4363
|
+
h.dispatchEvent(W), Ee(h, h.onerror, W), Z != null && console.error(Z);
|
|
4339
4364
|
}
|
|
4340
4365
|
}, Ot = function() {
|
|
4341
|
-
|
|
4342
|
-
},
|
|
4343
|
-
if (K = 0,
|
|
4344
|
-
if (!
|
|
4345
|
-
|
|
4366
|
+
fe = Ce, ae != null && (ae.abort(), ae = void 0), K !== 0 && (i(K), K = 0), h.readyState = Ce;
|
|
4367
|
+
}, Je = function() {
|
|
4368
|
+
if (K = 0, fe !== ve) {
|
|
4369
|
+
if (!N && ae != null)
|
|
4370
|
+
ln(new Error("No activity within " + x + " milliseconds. " + (fe === he ? "No response received." : G + " chars received.") + " Reconnecting.")), ae != null && (ae.abort(), ae = void 0);
|
|
4346
4371
|
else {
|
|
4347
|
-
var Z = Math.max((
|
|
4348
|
-
|
|
4349
|
-
|
|
4372
|
+
var Z = Math.max((N || Date.now()) + x - Date.now(), 1);
|
|
4373
|
+
N = !1, K = r(function() {
|
|
4374
|
+
Je();
|
|
4350
4375
|
}, Z);
|
|
4351
4376
|
}
|
|
4352
4377
|
return;
|
|
4353
4378
|
}
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
},
|
|
4357
|
-
var
|
|
4358
|
-
if (
|
|
4359
|
-
var oe =
|
|
4360
|
-
|
|
4361
|
-
return
|
|
4362
|
-
}),
|
|
4379
|
+
N = !1, G = 0, K = r(function() {
|
|
4380
|
+
Je();
|
|
4381
|
+
}, x), fe = he, Le = "", _e = "", ut = v, ct = "", Ht = 0, He = 0, ee = le;
|
|
4382
|
+
var W = l;
|
|
4383
|
+
if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" && v !== "") {
|
|
4384
|
+
var oe = l.indexOf("?");
|
|
4385
|
+
W = oe === -1 ? l : l.slice(0, oe + 1) + l.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Te, Me) {
|
|
4386
|
+
return Me === m ? "" : Te;
|
|
4387
|
+
}), W += (l.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(v);
|
|
4363
4388
|
}
|
|
4364
|
-
var
|
|
4389
|
+
var se = h.withCredentials, te = {};
|
|
4365
4390
|
te.Accept = "text/event-stream";
|
|
4366
|
-
var Q =
|
|
4391
|
+
var Q = h.headers;
|
|
4367
4392
|
if (Q != null)
|
|
4368
|
-
for (var
|
|
4369
|
-
Object.prototype.hasOwnProperty.call(Q,
|
|
4393
|
+
for (var Be in Q)
|
|
4394
|
+
Object.prototype.hasOwnProperty.call(Q, Be) && (te[Be] = Q[Be]);
|
|
4370
4395
|
try {
|
|
4371
|
-
|
|
4372
|
-
} catch (
|
|
4373
|
-
throw Ot(),
|
|
4396
|
+
ae = Qe.open(xe, cr, hr, ln, W, se, te);
|
|
4397
|
+
} catch (Te) {
|
|
4398
|
+
throw Ot(), Te;
|
|
4374
4399
|
}
|
|
4375
4400
|
};
|
|
4376
|
-
|
|
4401
|
+
h.url = l, h.readyState = he, h.withCredentials = d, h.headers = A, h._close = Ot, Je();
|
|
4377
4402
|
}
|
|
4378
|
-
|
|
4403
|
+
ie.prototype = Object.create($.prototype), ie.prototype.CONNECTING = he, ie.prototype.OPEN = Se, ie.prototype.CLOSED = Ce, ie.prototype.close = function() {
|
|
4379
4404
|
this._close();
|
|
4380
|
-
},
|
|
4381
|
-
var
|
|
4382
|
-
|
|
4405
|
+
}, ie.CONNECTING = he, ie.OPEN = Se, ie.CLOSED = Ce, ie.prototype.withCredentials = void 0;
|
|
4406
|
+
var lt = c;
|
|
4407
|
+
a != null && (c == null || !("withCredentials" in c.prototype)) && (lt = ie), function(h) {
|
|
4383
4408
|
{
|
|
4384
|
-
var
|
|
4385
|
-
|
|
4409
|
+
var l = h(t);
|
|
4410
|
+
l !== void 0 && (e.exports = l);
|
|
4386
4411
|
}
|
|
4387
|
-
}(function(
|
|
4388
|
-
|
|
4412
|
+
}(function(h) {
|
|
4413
|
+
h.EventSourcePolyfill = ie, h.NativeEventSource = c, h.EventSource = lt;
|
|
4389
4414
|
});
|
|
4390
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4415
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
|
|
4391
4416
|
})(en, en.exports);
|
|
4392
|
-
var
|
|
4417
|
+
var La = en.exports;
|
|
4393
4418
|
/*!
|
|
4394
4419
|
* currency.js - v2.0.4
|
|
4395
4420
|
* http://scurker.github.io/currency.js
|
|
@@ -4397,7 +4422,7 @@ var Lo = en.exports;
|
|
|
4397
4422
|
* Copyright (c) 2021 Jason Wilson
|
|
4398
4423
|
* Released under MIT license
|
|
4399
4424
|
*/
|
|
4400
|
-
var
|
|
4425
|
+
var Ma = {
|
|
4401
4426
|
symbol: "$",
|
|
4402
4427
|
separator: ",",
|
|
4403
4428
|
decimal: ".",
|
|
@@ -4405,43 +4430,43 @@ var Mo = {
|
|
|
4405
4430
|
precision: 2,
|
|
4406
4431
|
pattern: "!#",
|
|
4407
4432
|
negativePattern: "-!#",
|
|
4408
|
-
format:
|
|
4433
|
+
format: Da,
|
|
4409
4434
|
fromCents: !1
|
|
4410
|
-
},
|
|
4435
|
+
}, ur = function(t) {
|
|
4411
4436
|
return Math.round(t);
|
|
4412
|
-
},
|
|
4437
|
+
}, sn = function(t) {
|
|
4413
4438
|
return Math.pow(10, t);
|
|
4414
|
-
},
|
|
4415
|
-
return
|
|
4416
|
-
},
|
|
4417
|
-
function
|
|
4439
|
+
}, Na = function(t, n) {
|
|
4440
|
+
return ur(t / n) * n;
|
|
4441
|
+
}, Ia = /(\d)(?=(\d{3})+\b)/g, Pa = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4442
|
+
function de(e, t) {
|
|
4418
4443
|
var n = this;
|
|
4419
|
-
if (!(n instanceof
|
|
4420
|
-
return new
|
|
4421
|
-
var r = Object.assign({},
|
|
4422
|
-
n.intValue =
|
|
4423
|
-
}
|
|
4424
|
-
function
|
|
4425
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal,
|
|
4426
|
-
if (
|
|
4444
|
+
if (!(n instanceof de))
|
|
4445
|
+
return new de(e, t);
|
|
4446
|
+
var r = Object.assign({}, Ma, t), i = sn(r.precision), a = mt(e, r);
|
|
4447
|
+
n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Pa : r.groups = Ia, this.s = r, this.p = i;
|
|
4448
|
+
}
|
|
4449
|
+
function mt(e, t) {
|
|
4450
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, s = t.precision, o = t.fromCents, c = sn(s), u = typeof e == "number", f = e instanceof de;
|
|
4451
|
+
if (f && o)
|
|
4427
4452
|
return e.intValue;
|
|
4428
|
-
if (u ||
|
|
4429
|
-
r =
|
|
4453
|
+
if (u || f)
|
|
4454
|
+
r = f ? e.value : e;
|
|
4430
4455
|
else if (typeof e == "string") {
|
|
4431
4456
|
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4432
4457
|
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
4433
4458
|
} else {
|
|
4434
|
-
if (
|
|
4459
|
+
if (a)
|
|
4435
4460
|
throw Error("Invalid Input");
|
|
4436
4461
|
r = 0;
|
|
4437
4462
|
}
|
|
4438
|
-
return
|
|
4463
|
+
return o || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
|
|
4439
4464
|
}
|
|
4440
|
-
function
|
|
4441
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol,
|
|
4442
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(
|
|
4465
|
+
function Da(e, t) {
|
|
4466
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, s = t.decimal, o = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], f = c[1];
|
|
4467
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(o, "$1" + a) + (f ? s + f : ""));
|
|
4443
4468
|
}
|
|
4444
|
-
|
|
4469
|
+
de.prototype = {
|
|
4445
4470
|
/**
|
|
4446
4471
|
* Adds values together.
|
|
4447
4472
|
* @param {number} number
|
|
@@ -4449,7 +4474,7 @@ he.prototype = {
|
|
|
4449
4474
|
*/
|
|
4450
4475
|
add: function(t) {
|
|
4451
4476
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4452
|
-
return
|
|
4477
|
+
return de((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4453
4478
|
},
|
|
4454
4479
|
/**
|
|
4455
4480
|
* Subtracts value.
|
|
@@ -4458,7 +4483,7 @@ he.prototype = {
|
|
|
4458
4483
|
*/
|
|
4459
4484
|
subtract: function(t) {
|
|
4460
4485
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4461
|
-
return
|
|
4486
|
+
return de((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4462
4487
|
},
|
|
4463
4488
|
/**
|
|
4464
4489
|
* Multiplies values.
|
|
@@ -4467,7 +4492,7 @@ he.prototype = {
|
|
|
4467
4492
|
*/
|
|
4468
4493
|
multiply: function(t) {
|
|
4469
4494
|
var n = this.intValue, r = this.s;
|
|
4470
|
-
return
|
|
4495
|
+
return de((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
|
|
4471
4496
|
},
|
|
4472
4497
|
/**
|
|
4473
4498
|
* Divides value.
|
|
@@ -4476,7 +4501,7 @@ he.prototype = {
|
|
|
4476
4501
|
*/
|
|
4477
4502
|
divide: function(t) {
|
|
4478
4503
|
var n = this.intValue, r = this.s;
|
|
4479
|
-
return
|
|
4504
|
+
return de(n /= mt(t, r, !1), r);
|
|
4480
4505
|
},
|
|
4481
4506
|
/**
|
|
4482
4507
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4485,11 +4510,11 @@ he.prototype = {
|
|
|
4485
4510
|
* @returns {array}
|
|
4486
4511
|
*/
|
|
4487
4512
|
distribute: function(t) {
|
|
4488
|
-
for (var n = this.intValue, r = this.p, i = this.s,
|
|
4489
|
-
var u =
|
|
4490
|
-
|
|
4513
|
+
for (var n = this.intValue, r = this.p, i = this.s, a = [], s = Math[n >= 0 ? "floor" : "ceil"](n / t), o = Math.abs(n - s * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4514
|
+
var u = de(s / c, i);
|
|
4515
|
+
o-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), a.push(u);
|
|
4491
4516
|
}
|
|
4492
|
-
return
|
|
4517
|
+
return a;
|
|
4493
4518
|
},
|
|
4494
4519
|
/**
|
|
4495
4520
|
* Returns the dollar value.
|
|
@@ -4521,7 +4546,7 @@ he.prototype = {
|
|
|
4521
4546
|
*/
|
|
4522
4547
|
toString: function() {
|
|
4523
4548
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4524
|
-
return
|
|
4549
|
+
return Na(t / n, r.increment).toFixed(r.precision);
|
|
4525
4550
|
},
|
|
4526
4551
|
/**
|
|
4527
4552
|
* Value for JSON serialization.
|
|
@@ -4531,18 +4556,18 @@ he.prototype = {
|
|
|
4531
4556
|
return this.value;
|
|
4532
4557
|
}
|
|
4533
4558
|
};
|
|
4534
|
-
function
|
|
4535
|
-
|
|
4559
|
+
function Ua(e) {
|
|
4560
|
+
vr(e, "svelte-1tsugyl", '*,*::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;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, #D0046C));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;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}');
|
|
4536
4561
|
}
|
|
4537
|
-
function
|
|
4562
|
+
function Cn(e, t, n) {
|
|
4538
4563
|
const r = e.slice();
|
|
4539
4564
|
return r[50] = t[n], r;
|
|
4540
4565
|
}
|
|
4541
|
-
function
|
|
4566
|
+
function Hn(e, t, n) {
|
|
4542
4567
|
const r = e.slice();
|
|
4543
4568
|
return r[53] = t[n], r;
|
|
4544
4569
|
}
|
|
4545
|
-
function
|
|
4570
|
+
function Fa(e) {
|
|
4546
4571
|
let t, n, r = (
|
|
4547
4572
|
/*balances*/
|
|
4548
4573
|
(e[1].Total ? (
|
|
@@ -4552,158 +4577,158 @@ function Fo(e) {
|
|
|
4552
4577
|
e[1].Total[0].amount
|
|
4553
4578
|
)
|
|
4554
4579
|
) : "0") + ""
|
|
4555
|
-
), i,
|
|
4580
|
+
), i, a, s, o, c, u, f, g, b, B, T, S, _ = (
|
|
4556
4581
|
/*showBalance*/
|
|
4557
|
-
e[4] &&
|
|
4582
|
+
e[4] && On(e)
|
|
4558
4583
|
);
|
|
4559
4584
|
return {
|
|
4560
4585
|
c() {
|
|
4561
|
-
t = k("div"), n = k("p"), i =
|
|
4586
|
+
t = k("div"), n = k("p"), i = pe(r), a = ge(), s = pe(
|
|
4562
4587
|
/*currency*/
|
|
4563
4588
|
e[5]
|
|
4564
|
-
),
|
|
4565
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4589
|
+
), o = ge(), c = k("span"), u = hn("svg"), f = hn("path"), b = ge(), _ && _.c(), B = _r(), M(f, "id", "arrow"), M(f, "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(f, "transform", "translate(-274.511 -441.088)"), M(f, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", g = /*modalOpened*/
|
|
4590
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4566
4591
|
},
|
|
4567
|
-
m(
|
|
4568
|
-
|
|
4592
|
+
m(C, D) {
|
|
4593
|
+
be(C, t, D), H(t, n), H(n, i), H(n, a), H(n, s), H(t, o), H(t, c), H(c, u), H(u, f), be(C, b, D), _ && _.m(C, D), be(C, B, D), T || (S = gt(
|
|
4569
4594
|
t,
|
|
4570
4595
|
"click",
|
|
4571
4596
|
/*click_handler*/
|
|
4572
4597
|
e[25]
|
|
4573
|
-
),
|
|
4598
|
+
), T = !0);
|
|
4574
4599
|
},
|
|
4575
|
-
p(
|
|
4600
|
+
p(C, D) {
|
|
4576
4601
|
D[0] & /*balances*/
|
|
4577
4602
|
2 && r !== (r = /*balances*/
|
|
4578
|
-
(
|
|
4603
|
+
(C[1].Total ? (
|
|
4579
4604
|
/*formatBalance*/
|
|
4580
|
-
|
|
4605
|
+
C[8](
|
|
4581
4606
|
/*balances*/
|
|
4582
|
-
|
|
4607
|
+
C[1].Total[0].amount
|
|
4583
4608
|
)
|
|
4584
|
-
) : "0") + "") &&
|
|
4585
|
-
32 &&
|
|
4586
|
-
|
|
4609
|
+
) : "0") + "") && we(i, r), D[0] & /*currency*/
|
|
4610
|
+
32 && we(
|
|
4611
|
+
s,
|
|
4587
4612
|
/*currency*/
|
|
4588
|
-
|
|
4613
|
+
C[5]
|
|
4589
4614
|
), D[0] & /*modalOpened*/
|
|
4590
4615
|
8 && g !== (g = /*modalOpened*/
|
|
4591
|
-
|
|
4592
|
-
|
|
4616
|
+
C[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", g), /*showBalance*/
|
|
4617
|
+
C[4] ? _ ? _.p(C, D) : (_ = On(C), _.c(), _.m(B.parentNode, B)) : _ && (_.d(1), _ = null);
|
|
4593
4618
|
},
|
|
4594
|
-
d(
|
|
4595
|
-
|
|
4619
|
+
d(C) {
|
|
4620
|
+
C && (me(t), me(b), me(B)), _ && _.d(C), T = !1, S();
|
|
4596
4621
|
}
|
|
4597
4622
|
};
|
|
4598
4623
|
}
|
|
4599
|
-
function
|
|
4624
|
+
function Ga(e) {
|
|
4600
4625
|
let t, n = (
|
|
4601
4626
|
/*$_*/
|
|
4602
4627
|
e[6]("Loading") + ""
|
|
4603
4628
|
), r;
|
|
4604
4629
|
return {
|
|
4605
4630
|
c() {
|
|
4606
|
-
t = k("p"), r =
|
|
4631
|
+
t = k("p"), r = pe(n), M(t, "class", "Loading");
|
|
4607
4632
|
},
|
|
4608
|
-
m(i,
|
|
4609
|
-
|
|
4633
|
+
m(i, a) {
|
|
4634
|
+
be(i, t, a), H(t, r);
|
|
4610
4635
|
},
|
|
4611
|
-
p(i,
|
|
4612
|
-
|
|
4636
|
+
p(i, a) {
|
|
4637
|
+
a[0] & /*$_*/
|
|
4613
4638
|
64 && n !== (n = /*$_*/
|
|
4614
|
-
i[6]("Loading") + "") &&
|
|
4639
|
+
i[6]("Loading") + "") && we(r, n);
|
|
4615
4640
|
},
|
|
4616
4641
|
d(i) {
|
|
4617
|
-
i &&
|
|
4642
|
+
i && me(t);
|
|
4618
4643
|
}
|
|
4619
4644
|
};
|
|
4620
4645
|
}
|
|
4621
|
-
function
|
|
4622
|
-
let t, n, r, i,
|
|
4646
|
+
function On(e) {
|
|
4647
|
+
let t, n, r, i, a, s, o, c, u = (
|
|
4623
4648
|
/*$_*/
|
|
4624
4649
|
e[6]("Title") + ""
|
|
4625
|
-
),
|
|
4650
|
+
), f, g, b, B, T, S, _ = (
|
|
4626
4651
|
/*$_*/
|
|
4627
4652
|
e[6]("DepositButton") + ""
|
|
4628
|
-
),
|
|
4653
|
+
), C, D, O, U, q, re, z = bt(Object.keys(
|
|
4629
4654
|
/*balances*/
|
|
4630
4655
|
e[1]
|
|
4631
|
-
)),
|
|
4632
|
-
for (let
|
|
4633
|
-
|
|
4656
|
+
)), X = [];
|
|
4657
|
+
for (let P = 0; P < z.length; P += 1)
|
|
4658
|
+
X[P] = Ln(Cn(e, z, P));
|
|
4634
4659
|
return {
|
|
4635
4660
|
c() {
|
|
4636
|
-
t = k("div"), n = k("div"), i =
|
|
4637
|
-
for (let
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
(e[3] ? "Open" : "")),
|
|
4641
|
-
(e[3] ? "Open" : "")),
|
|
4642
|
-
(e[3] ? "Open" : "")),
|
|
4661
|
+
t = k("div"), n = k("div"), i = ge(), a = k("div"), s = k("div"), o = k("div"), c = k("p"), f = pe(u), g = ge(), b = k("div");
|
|
4662
|
+
for (let P = 0; P < X.length; P += 1)
|
|
4663
|
+
X[P].c();
|
|
4664
|
+
B = ge(), T = k("div"), S = k("button"), C = pe(_), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4665
|
+
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(o, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(S, "class", "BalanceModalAction"), M(T, "class", "BalanceModalFooter"), M(s, "class", D = "ModalContent " + /*modalOpened*/
|
|
4666
|
+
(e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
|
|
4667
|
+
(e[3] ? "Open" : "")), M(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4643
4668
|
(e[3] ? "Open" : ""));
|
|
4644
4669
|
},
|
|
4645
|
-
m(
|
|
4646
|
-
|
|
4647
|
-
for (let F = 0; F <
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4670
|
+
m(P, $) {
|
|
4671
|
+
be(P, t, $), H(t, n), H(t, i), H(t, a), H(a, s), H(s, o), H(o, c), H(c, f), H(s, g), H(s, b);
|
|
4672
|
+
for (let F = 0; F < X.length; F += 1)
|
|
4673
|
+
X[F] && X[F].m(b, null);
|
|
4674
|
+
H(s, B), H(s, T), H(T, S), H(S, C), q || (re = [
|
|
4675
|
+
gt(
|
|
4651
4676
|
n,
|
|
4652
4677
|
"click",
|
|
4653
4678
|
/*click_handler_1*/
|
|
4654
4679
|
e[26]
|
|
4655
4680
|
),
|
|
4656
|
-
|
|
4657
|
-
|
|
4681
|
+
gt(
|
|
4682
|
+
S,
|
|
4658
4683
|
"click",
|
|
4659
4684
|
/*click_handler_2*/
|
|
4660
4685
|
e[27]
|
|
4661
4686
|
)
|
|
4662
|
-
],
|
|
4687
|
+
], q = !0);
|
|
4663
4688
|
},
|
|
4664
|
-
p(
|
|
4665
|
-
if (
|
|
4689
|
+
p(P, $) {
|
|
4690
|
+
if ($[0] & /*modalOpened*/
|
|
4666
4691
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4667
|
-
(
|
|
4692
|
+
(P[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
|
|
4668
4693
|
64 && u !== (u = /*$_*/
|
|
4669
|
-
|
|
4694
|
+
P[6]("Title") + "") && we(f, u), $[0] & /*balances, currency, formatBalance, $_*/
|
|
4670
4695
|
354) {
|
|
4671
|
-
|
|
4696
|
+
z = bt(Object.keys(
|
|
4672
4697
|
/*balances*/
|
|
4673
|
-
|
|
4698
|
+
P[1]
|
|
4674
4699
|
));
|
|
4675
4700
|
let F;
|
|
4676
|
-
for (F = 0; F <
|
|
4677
|
-
const
|
|
4678
|
-
|
|
4701
|
+
for (F = 0; F < z.length; F += 1) {
|
|
4702
|
+
const Y = Cn(P, z, F);
|
|
4703
|
+
X[F] ? X[F].p(Y, $) : (X[F] = Ln(Y), X[F].c(), X[F].m(b, null));
|
|
4679
4704
|
}
|
|
4680
|
-
for (; F <
|
|
4681
|
-
|
|
4682
|
-
|
|
4705
|
+
for (; F < X.length; F += 1)
|
|
4706
|
+
X[F].d(1);
|
|
4707
|
+
X.length = z.length;
|
|
4683
4708
|
}
|
|
4684
|
-
|
|
4685
|
-
64 &&
|
|
4686
|
-
|
|
4709
|
+
$[0] & /*$_*/
|
|
4710
|
+
64 && _ !== (_ = /*$_*/
|
|
4711
|
+
P[6]("DepositButton") + "") && we(C, _), $[0] & /*modalOpened*/
|
|
4687
4712
|
8 && D !== (D = "ModalContent " + /*modalOpened*/
|
|
4688
|
-
(
|
|
4689
|
-
8 &&
|
|
4690
|
-
(
|
|
4713
|
+
(P[3] ? "Open" : "")) && M(s, "class", D), $[0] & /*modalOpened*/
|
|
4714
|
+
8 && O !== (O = "BalanceModal " + /*modalOpened*/
|
|
4715
|
+
(P[3] ? "Open" : "")) && M(a, "class", O), $[0] & /*modalOpened*/
|
|
4691
4716
|
8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4692
|
-
(
|
|
4717
|
+
(P[3] ? "Open" : "")) && M(t, "class", U);
|
|
4693
4718
|
},
|
|
4694
|
-
d(
|
|
4695
|
-
|
|
4719
|
+
d(P) {
|
|
4720
|
+
P && me(t), Dn(X, P), q = !1, je(re);
|
|
4696
4721
|
}
|
|
4697
4722
|
};
|
|
4698
4723
|
}
|
|
4699
|
-
function
|
|
4724
|
+
function Rn(e) {
|
|
4700
4725
|
let t, n, r = (
|
|
4701
4726
|
/*$_*/
|
|
4702
4727
|
e[6](
|
|
4703
4728
|
/*k*/
|
|
4704
4729
|
e[50]
|
|
4705
4730
|
) + ""
|
|
4706
|
-
), i,
|
|
4731
|
+
), i, a, s = (
|
|
4707
4732
|
/*b*/
|
|
4708
4733
|
(e[53].productType ? (
|
|
4709
4734
|
/*$_*/
|
|
@@ -4712,7 +4737,7 @@ function Hn(e) {
|
|
|
4712
4737
|
e[53].productType
|
|
4713
4738
|
)
|
|
4714
4739
|
) : "") + ""
|
|
4715
|
-
),
|
|
4740
|
+
), o, c, u, f, g = (
|
|
4716
4741
|
/*b*/
|
|
4717
4742
|
(e[53].amount ? (
|
|
4718
4743
|
/*formatBalance*/
|
|
@@ -4721,159 +4746,159 @@ function Hn(e) {
|
|
|
4721
4746
|
e[53].amount
|
|
4722
4747
|
)
|
|
4723
4748
|
) : "0") + ""
|
|
4724
|
-
), b,
|
|
4749
|
+
), b, B, T, S;
|
|
4725
4750
|
return {
|
|
4726
4751
|
c() {
|
|
4727
|
-
t = k("div"), n = k("p"), i =
|
|
4752
|
+
t = k("div"), n = k("p"), i = pe(r), a = ge(), o = pe(s), c = ge(), u = k("p"), f = k("span"), b = pe(g), B = ge(), T = k("span"), S = pe(
|
|
4728
4753
|
/*currency*/
|
|
4729
4754
|
e[5]
|
|
4730
|
-
),
|
|
4755
|
+
), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(T, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4731
4756
|
},
|
|
4732
|
-
m(
|
|
4733
|
-
|
|
4757
|
+
m(_, C) {
|
|
4758
|
+
be(_, t, C), H(t, n), H(n, i), H(n, a), H(n, o), H(t, c), H(t, u), H(u, f), H(f, b), H(u, B), H(u, T), H(T, S);
|
|
4734
4759
|
},
|
|
4735
|
-
p(
|
|
4736
|
-
|
|
4760
|
+
p(_, C) {
|
|
4761
|
+
C[0] & /*$_, balances*/
|
|
4737
4762
|
66 && r !== (r = /*$_*/
|
|
4738
|
-
|
|
4763
|
+
_[6](
|
|
4739
4764
|
/*k*/
|
|
4740
|
-
|
|
4741
|
-
) + "") &&
|
|
4742
|
-
66 &&
|
|
4743
|
-
(
|
|
4765
|
+
_[50]
|
|
4766
|
+
) + "") && we(i, r), C[0] & /*balances, $_*/
|
|
4767
|
+
66 && s !== (s = /*b*/
|
|
4768
|
+
(_[53].productType ? (
|
|
4744
4769
|
/*$_*/
|
|
4745
|
-
|
|
4770
|
+
_[6](
|
|
4746
4771
|
/*b*/
|
|
4747
|
-
|
|
4772
|
+
_[53].productType
|
|
4748
4773
|
)
|
|
4749
|
-
) : "") + "") &&
|
|
4774
|
+
) : "") + "") && we(o, s), C[0] & /*balances*/
|
|
4750
4775
|
2 && g !== (g = /*b*/
|
|
4751
|
-
(
|
|
4776
|
+
(_[53].amount ? (
|
|
4752
4777
|
/*formatBalance*/
|
|
4753
|
-
|
|
4778
|
+
_[8](
|
|
4754
4779
|
/*b*/
|
|
4755
|
-
|
|
4780
|
+
_[53].amount
|
|
4756
4781
|
)
|
|
4757
|
-
) : "0") + "") &&
|
|
4758
|
-
32 &&
|
|
4759
|
-
|
|
4782
|
+
) : "0") + "") && we(b, g), C[0] & /*currency*/
|
|
4783
|
+
32 && we(
|
|
4784
|
+
S,
|
|
4760
4785
|
/*currency*/
|
|
4761
|
-
|
|
4786
|
+
_[5]
|
|
4762
4787
|
);
|
|
4763
4788
|
},
|
|
4764
|
-
d(
|
|
4765
|
-
|
|
4789
|
+
d(_) {
|
|
4790
|
+
_ && me(t);
|
|
4766
4791
|
}
|
|
4767
4792
|
};
|
|
4768
4793
|
}
|
|
4769
|
-
function
|
|
4770
|
-
let t, n, r =
|
|
4794
|
+
function Ln(e) {
|
|
4795
|
+
let t, n, r = bt(
|
|
4771
4796
|
/*balances*/
|
|
4772
4797
|
e[1][
|
|
4773
4798
|
/*k*/
|
|
4774
4799
|
e[50]
|
|
4775
4800
|
]
|
|
4776
4801
|
), i = [];
|
|
4777
|
-
for (let
|
|
4778
|
-
i[
|
|
4802
|
+
for (let a = 0; a < r.length; a += 1)
|
|
4803
|
+
i[a] = Rn(Hn(e, r, a));
|
|
4779
4804
|
return {
|
|
4780
4805
|
c() {
|
|
4781
4806
|
t = k("div");
|
|
4782
|
-
for (let
|
|
4783
|
-
i[
|
|
4784
|
-
n =
|
|
4807
|
+
for (let a = 0; a < i.length; a += 1)
|
|
4808
|
+
i[a].c();
|
|
4809
|
+
n = ge(), M(t, "class", "BalanceModalRowBoth");
|
|
4785
4810
|
},
|
|
4786
|
-
m(
|
|
4787
|
-
|
|
4788
|
-
for (let
|
|
4789
|
-
i[
|
|
4790
|
-
|
|
4811
|
+
m(a, s) {
|
|
4812
|
+
be(a, t, s);
|
|
4813
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4814
|
+
i[o] && i[o].m(t, null);
|
|
4815
|
+
H(t, n);
|
|
4791
4816
|
},
|
|
4792
|
-
p(
|
|
4793
|
-
if (
|
|
4817
|
+
p(a, s) {
|
|
4818
|
+
if (s[0] & /*currency, balances, formatBalance, $_*/
|
|
4794
4819
|
354) {
|
|
4795
|
-
r =
|
|
4820
|
+
r = bt(
|
|
4796
4821
|
/*balances*/
|
|
4797
|
-
|
|
4822
|
+
a[1][
|
|
4798
4823
|
/*k*/
|
|
4799
|
-
|
|
4824
|
+
a[50]
|
|
4800
4825
|
]
|
|
4801
4826
|
);
|
|
4802
|
-
let
|
|
4803
|
-
for (
|
|
4804
|
-
const c =
|
|
4805
|
-
i[
|
|
4827
|
+
let o;
|
|
4828
|
+
for (o = 0; o < r.length; o += 1) {
|
|
4829
|
+
const c = Hn(a, r, o);
|
|
4830
|
+
i[o] ? i[o].p(c, s) : (i[o] = Rn(c), i[o].c(), i[o].m(t, n));
|
|
4806
4831
|
}
|
|
4807
|
-
for (;
|
|
4808
|
-
i[
|
|
4832
|
+
for (; o < i.length; o += 1)
|
|
4833
|
+
i[o].d(1);
|
|
4809
4834
|
i.length = r.length;
|
|
4810
4835
|
}
|
|
4811
4836
|
},
|
|
4812
|
-
d(
|
|
4813
|
-
|
|
4837
|
+
d(a) {
|
|
4838
|
+
a && me(t), Dn(i, a);
|
|
4814
4839
|
}
|
|
4815
4840
|
};
|
|
4816
4841
|
}
|
|
4817
|
-
function
|
|
4842
|
+
function Mn(e) {
|
|
4818
4843
|
let t, n, r;
|
|
4819
4844
|
return {
|
|
4820
4845
|
c() {
|
|
4821
|
-
t = k("div"),
|
|
4846
|
+
t = k("div"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4822
4847
|
},
|
|
4823
|
-
m(i,
|
|
4824
|
-
|
|
4848
|
+
m(i, a) {
|
|
4849
|
+
be(i, t, a), n || (r = gt(
|
|
4825
4850
|
t,
|
|
4826
4851
|
"click",
|
|
4827
4852
|
/*click_handler_3*/
|
|
4828
4853
|
e[28]
|
|
4829
4854
|
), n = !0);
|
|
4830
4855
|
},
|
|
4831
|
-
p:
|
|
4856
|
+
p: ce,
|
|
4832
4857
|
d(i) {
|
|
4833
|
-
i &&
|
|
4858
|
+
i && me(t), n = !1, r();
|
|
4834
4859
|
}
|
|
4835
4860
|
};
|
|
4836
4861
|
}
|
|
4837
|
-
function $
|
|
4862
|
+
function $a(e) {
|
|
4838
4863
|
let t, n, r;
|
|
4839
4864
|
function i(c, u) {
|
|
4840
4865
|
return (
|
|
4841
4866
|
/*isLoading*/
|
|
4842
|
-
c[2] ?
|
|
4867
|
+
c[2] ? Ga : Fa
|
|
4843
4868
|
);
|
|
4844
4869
|
}
|
|
4845
|
-
let
|
|
4870
|
+
let a = i(e), s = a(e), o = (
|
|
4846
4871
|
/*showBalance*/
|
|
4847
|
-
e[4] &&
|
|
4872
|
+
e[4] && Mn(e)
|
|
4848
4873
|
);
|
|
4849
4874
|
return {
|
|
4850
4875
|
c() {
|
|
4851
|
-
t = k("div"), n = k("div"),
|
|
4876
|
+
t = k("div"), n = k("div"), s.c(), r = ge(), o && o.c(), M(n, "class", "ShowBalance");
|
|
4852
4877
|
},
|
|
4853
4878
|
m(c, u) {
|
|
4854
|
-
|
|
4879
|
+
be(c, t, u), H(t, n), s.m(n, null), H(t, r), o && o.m(t, null), e[29](t);
|
|
4855
4880
|
},
|
|
4856
4881
|
p(c, u) {
|
|
4857
|
-
|
|
4858
|
-
c[4] ?
|
|
4882
|
+
a === (a = i(c)) && s ? s.p(c, u) : (s.d(1), s = a(c), s && (s.c(), s.m(n, null))), /*showBalance*/
|
|
4883
|
+
c[4] ? o ? o.p(c, u) : (o = Mn(c), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4859
4884
|
},
|
|
4860
|
-
i:
|
|
4861
|
-
o:
|
|
4885
|
+
i: ce,
|
|
4886
|
+
o: ce,
|
|
4862
4887
|
d(c) {
|
|
4863
|
-
c &&
|
|
4888
|
+
c && me(t), s.d(), o && o.d(), e[29](null);
|
|
4864
4889
|
}
|
|
4865
4890
|
};
|
|
4866
4891
|
}
|
|
4867
|
-
function
|
|
4892
|
+
function ja(e, t, n) {
|
|
4868
4893
|
let r;
|
|
4869
|
-
|
|
4870
|
-
let { userid: i = "" } = t, { session:
|
|
4871
|
-
const
|
|
4872
|
-
fetch(g).then((
|
|
4894
|
+
yr(e, Oa, (l) => n(6, r = l));
|
|
4895
|
+
let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: s = "" } = t, { lang: o = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: B = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: D = "" } = t, O, U, q, re, z, X = !1, P = "", $ = [], F, Y = !1;
|
|
4896
|
+
const E = {}, ye = ["totalCashAmount", "totalRealAmount"], it = () => {
|
|
4897
|
+
fetch(g).then((l) => l.json()).then((l) => Object.keys(l).forEach((p) => Sn(p, l[p]))).catch((l) => console.log(l));
|
|
4873
4898
|
};
|
|
4874
|
-
Object.keys(
|
|
4875
|
-
const
|
|
4876
|
-
switch (
|
|
4899
|
+
Object.keys(An).forEach((l) => Sn(l, An[l]));
|
|
4900
|
+
const ve = (l) => {
|
|
4901
|
+
switch (l) {
|
|
4877
4902
|
case "balance":
|
|
4878
4903
|
window.postMessage(
|
|
4879
4904
|
{
|
|
@@ -4881,10 +4906,10 @@ function jo(e, t, n) {
|
|
|
4881
4906
|
status: "open"
|
|
4882
4907
|
},
|
|
4883
4908
|
window.location.href
|
|
4884
|
-
), n(4,
|
|
4909
|
+
), n(4, X = !0), setTimeout(() => n(3, re = !0), 150);
|
|
4885
4910
|
break;
|
|
4886
4911
|
case "closebalance":
|
|
4887
|
-
n(3,
|
|
4912
|
+
n(3, re = !1), window.postMessage(
|
|
4888
4913
|
{
|
|
4889
4914
|
type: "BalanceModalStatus",
|
|
4890
4915
|
status: "close"
|
|
@@ -4892,86 +4917,87 @@ function jo(e, t, n) {
|
|
|
4892
4917
|
window.location.href
|
|
4893
4918
|
), setTimeout(
|
|
4894
4919
|
() => {
|
|
4895
|
-
n(4,
|
|
4920
|
+
n(4, X = !1);
|
|
4896
4921
|
},
|
|
4897
4922
|
150
|
|
4898
4923
|
);
|
|
4899
4924
|
break;
|
|
4900
4925
|
}
|
|
4901
|
-
},
|
|
4902
|
-
if (b.includes(
|
|
4926
|
+
}, he = () => {
|
|
4927
|
+
if (b.includes(o))
|
|
4903
4928
|
return b;
|
|
4904
|
-
},
|
|
4905
|
-
separator:
|
|
4906
|
-
decimal:
|
|
4929
|
+
}, Se = (l) => b ? new Intl.NumberFormat(he(), { useGrouping: !0 }).format(l) : _ && C ? de(l, {
|
|
4930
|
+
separator: _,
|
|
4931
|
+
decimal: C,
|
|
4907
4932
|
symbol: "",
|
|
4908
4933
|
precision: parseInt(D || "2", 10)
|
|
4909
|
-
}).format() :
|
|
4934
|
+
}).format() : de(l, {
|
|
4910
4935
|
separator: ".",
|
|
4911
4936
|
decimal: ",",
|
|
4912
4937
|
symbol: "",
|
|
4913
4938
|
precision: parseInt(D || "2", 10)
|
|
4914
|
-
}).format(),
|
|
4915
|
-
var
|
|
4916
|
-
n(2,
|
|
4917
|
-
const
|
|
4939
|
+
}).format(), Ce = () => Nt(this, null, function* () {
|
|
4940
|
+
var p, d, m;
|
|
4941
|
+
n(2, O = !0);
|
|
4942
|
+
const l = new URL(`${s}/v1/player/${i}/account`);
|
|
4918
4943
|
try {
|
|
4919
|
-
const
|
|
4944
|
+
const y = yield fetch(l, {
|
|
4920
4945
|
method: "GET",
|
|
4921
|
-
headers: { "X-SessionID":
|
|
4922
|
-
}),
|
|
4923
|
-
if (
|
|
4924
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4946
|
+
headers: { "X-SessionID": a }
|
|
4947
|
+
}), x = yield y.json();
|
|
4948
|
+
if (y.ok)
|
|
4949
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = x.items, n(5, P = (p = $.find((v) => v.displayName === "Casino")) == null ? void 0 : p.currency), n(1, E.Total = [{ amount: x.totalAmount[P] }], E), n(
|
|
4925
4950
|
1,
|
|
4926
|
-
|
|
4951
|
+
E.Real = [
|
|
4927
4952
|
{
|
|
4928
|
-
amount: (
|
|
4953
|
+
amount: (d = $.find((v) => v.displayName === "Casino")) == null ? void 0 : d.balanceAmount
|
|
4929
4954
|
}
|
|
4930
4955
|
],
|
|
4931
|
-
|
|
4956
|
+
E
|
|
4932
4957
|
), n(
|
|
4933
4958
|
1,
|
|
4934
|
-
|
|
4959
|
+
E.Bonus = [
|
|
4935
4960
|
{
|
|
4936
|
-
amount: (
|
|
4961
|
+
amount: (m = $.find((v) => v.displayName === "UBS")) == null ? void 0 : m.balanceAmount
|
|
4937
4962
|
}
|
|
4938
4963
|
],
|
|
4939
|
-
|
|
4964
|
+
E
|
|
4940
4965
|
);
|
|
4941
4966
|
else
|
|
4942
4967
|
throw new Error("Failed to fetch balance data !");
|
|
4943
|
-
} catch (
|
|
4944
|
-
console.log("Balance error: ",
|
|
4968
|
+
} catch (y) {
|
|
4969
|
+
console.log("Balance error: ", y);
|
|
4945
4970
|
} finally {
|
|
4946
|
-
n(2,
|
|
4971
|
+
n(2, O = !1);
|
|
4947
4972
|
}
|
|
4948
|
-
}),
|
|
4949
|
-
n(2,
|
|
4950
|
-
const
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
const
|
|
4954
|
-
if (n(5,
|
|
4955
|
-
|
|
4973
|
+
}), ze = () => {
|
|
4974
|
+
n(2, O = !0);
|
|
4975
|
+
const l = new URL(`${s}/v2/player/${i}/balance`), p = new Headers();
|
|
4976
|
+
p.append("X-SessionID", a), fetch(l, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
|
|
4977
|
+
m[S] || n(10, S = ye[0]);
|
|
4978
|
+
const y = m.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
|
|
4979
|
+
if (n(5, P = y.currency), Y = !!y.productType, n(1, E.Total = [{ amount: 0 }], E), n(1, E.Real = [], E), n(1, E.Bonus = [], E), n(1, E.Credit = [], E), !Y) {
|
|
4980
|
+
F = {
|
|
4956
4981
|
lastOrdinaryAfterAmount: 0,
|
|
4957
4982
|
showCreditLineAfterAmount: !1
|
|
4958
|
-
}, n(1,
|
|
4959
|
-
for (const
|
|
4960
|
-
switch (
|
|
4983
|
+
}, n(1, E.Total[0].amount = m[S][P], E);
|
|
4984
|
+
for (const v of m.items)
|
|
4985
|
+
switch (v.type) {
|
|
4961
4986
|
case "Bonus":
|
|
4962
|
-
|
|
4987
|
+
E.Bonus.length === 0 ? E.Bonus.push({ amount: v.amount }) : n(1, E.Bonus[0].amount += v.amount, E);
|
|
4963
4988
|
break;
|
|
4964
4989
|
case "Real":
|
|
4965
|
-
if (
|
|
4966
|
-
|
|
4990
|
+
if (v.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: v.creditLine }), S === "totalRealAmount")
|
|
4991
|
+
continue;
|
|
4992
|
+
E.Real.length === 0 ? E.Real.push({ amount: v.amount }) : n(1, E.Real[0].amount += v.amount, E);
|
|
4967
4993
|
break;
|
|
4968
4994
|
}
|
|
4969
|
-
for (const [
|
|
4970
|
-
|
|
4971
|
-
n(2,
|
|
4995
|
+
for (const [v, w] of Object.entries(E))
|
|
4996
|
+
w.length < 1 && delete E[v];
|
|
4997
|
+
n(2, O = !1);
|
|
4972
4998
|
return;
|
|
4973
4999
|
}
|
|
4974
|
-
|
|
5000
|
+
F = {
|
|
4975
5001
|
Casino: {
|
|
4976
5002
|
lastOrdinaryAfterAmount: 0,
|
|
4977
5003
|
showCreditLineAfterAmount: !1
|
|
@@ -4981,200 +5007,202 @@ function jo(e, t, n) {
|
|
|
4981
5007
|
showCreditLineAfterAmount: !1
|
|
4982
5008
|
}
|
|
4983
5009
|
};
|
|
4984
|
-
let
|
|
4985
|
-
|
|
4986
|
-
for (const
|
|
4987
|
-
let
|
|
4988
|
-
switch (
|
|
5010
|
+
let x = m.items;
|
|
5011
|
+
T && T !== "All" && (x = m.items.filter((v) => v.productType === T));
|
|
5012
|
+
for (const v of x) {
|
|
5013
|
+
let w;
|
|
5014
|
+
switch (v.type) {
|
|
4989
5015
|
case "Bonus":
|
|
4990
|
-
|
|
4991
|
-
amount:
|
|
4992
|
-
productType:
|
|
5016
|
+
w = E.Bonus.findIndex((N) => N.productType === v.productType), w > 0 ? n(1, E.Bonus[w].amount += v.amount, E) : E.Bonus.push({
|
|
5017
|
+
amount: v.amount,
|
|
5018
|
+
productType: v.productType
|
|
4993
5019
|
});
|
|
4994
5020
|
break;
|
|
4995
5021
|
case "Real":
|
|
4996
|
-
|
|
4997
|
-
amount:
|
|
4998
|
-
productType:
|
|
4999
|
-
}),
|
|
5000
|
-
amount:
|
|
5001
|
-
productType:
|
|
5022
|
+
v.creditLine && E.Credit.push({
|
|
5023
|
+
amount: v.creditLine,
|
|
5024
|
+
productType: v.productType
|
|
5025
|
+
}), w = E.Real.findIndex((N) => N.productType === v.productType), w > 0 ? n(1, E.Real[w].amount += v.amount, E) : E.Real.push({
|
|
5026
|
+
amount: v.amount,
|
|
5027
|
+
productType: v.productType
|
|
5002
5028
|
});
|
|
5003
5029
|
break;
|
|
5004
5030
|
}
|
|
5005
5031
|
}
|
|
5006
5032
|
ot();
|
|
5007
|
-
for (const [
|
|
5008
|
-
|
|
5009
|
-
n(2,
|
|
5010
|
-
}).catch((
|
|
5011
|
-
throw n(2,
|
|
5033
|
+
for (const [v, w] of Object.entries(E))
|
|
5034
|
+
w.length < 1 && delete E[v];
|
|
5035
|
+
n(2, O = !1);
|
|
5036
|
+
}).catch((m) => {
|
|
5037
|
+
throw n(2, O = !1), new Error("Failed to fetch balance data !");
|
|
5012
5038
|
});
|
|
5013
|
-
},
|
|
5014
|
-
if (
|
|
5015
|
-
|
|
5016
|
-
|
|
5039
|
+
}, le = () => {
|
|
5040
|
+
if (z && z.close(), a.length < 1)
|
|
5041
|
+
return;
|
|
5042
|
+
let l, p;
|
|
5043
|
+
switch (B) {
|
|
5017
5044
|
case "gm16":
|
|
5018
|
-
|
|
5045
|
+
l = new URL(`${s}/v2/player/${i}/information/updates`), p = (y) => wt(y);
|
|
5019
5046
|
break;
|
|
5020
5047
|
case "gmcore":
|
|
5021
|
-
|
|
5048
|
+
l = new URL(`${s}/v1/player/${i}/balance/updates`), p = (y) => at(y);
|
|
5022
5049
|
break;
|
|
5023
5050
|
}
|
|
5024
|
-
const
|
|
5051
|
+
const d = {
|
|
5025
5052
|
accept: "text/event-stream",
|
|
5026
|
-
"X-SessionId":
|
|
5027
|
-
},
|
|
5028
|
-
|
|
5029
|
-
},
|
|
5030
|
-
let
|
|
5053
|
+
"X-SessionId": a
|
|
5054
|
+
}, m = new La.EventSourcePolyfill(l, { headers: d });
|
|
5055
|
+
z = m, m.addEventListener("message", p);
|
|
5056
|
+
}, Re = (l) => {
|
|
5057
|
+
let p;
|
|
5031
5058
|
try {
|
|
5032
|
-
|
|
5033
|
-
} catch (
|
|
5034
|
-
console.log("Balance stream failed: ",
|
|
5059
|
+
p = JSON.parse(l);
|
|
5060
|
+
} catch (d) {
|
|
5061
|
+
console.log("Balance stream failed: ", d);
|
|
5035
5062
|
return;
|
|
5036
5063
|
}
|
|
5037
|
-
return
|
|
5038
|
-
},
|
|
5039
|
-
var
|
|
5040
|
-
const
|
|
5041
|
-
if (!
|
|
5042
|
-
|
|
5064
|
+
return p;
|
|
5065
|
+
}, at = (l) => {
|
|
5066
|
+
var y, x;
|
|
5067
|
+
const p = Re(l.data);
|
|
5068
|
+
if (!p) {
|
|
5069
|
+
le();
|
|
5043
5070
|
return;
|
|
5044
5071
|
}
|
|
5045
|
-
let
|
|
5046
|
-
const
|
|
5047
|
-
|
|
5048
|
-
balanceAmount:
|
|
5049
|
-
})),
|
|
5050
|
-
},
|
|
5051
|
-
let
|
|
5052
|
-
switch (
|
|
5072
|
+
let d = "0";
|
|
5073
|
+
const m = p.balanceChange;
|
|
5074
|
+
$ = $.map((v) => (m && m[v.id] && (v = Mt(Lt({}, v), {
|
|
5075
|
+
balanceAmount: m[v.id].afterAmount
|
|
5076
|
+
})), d = (parseFloat(v == null ? void 0 : v.balanceAmount) + parseFloat(d)).toString(), v)), n(1, E.Real = [{ amount: (y = $[0]) == null ? void 0 : y.balanceAmount }], E), n(1, E.Bonus = [{ amount: (x = $[1]) == null ? void 0 : x.balanceAmount }], E), n(1, E.Total = [{ amount: Number(d) }], E);
|
|
5077
|
+
}, We = (l, p, d) => {
|
|
5078
|
+
let m = null;
|
|
5079
|
+
switch (d.walletAccountType) {
|
|
5053
5080
|
case "Ordinary":
|
|
5054
|
-
|
|
5081
|
+
d.afterAmount !== d.affectedAmount && (p.lastOrdinaryAfterAmount = d.afterAmount, p.showCreditLineAfterAmount || (m = d.afterAmount));
|
|
5055
5082
|
break;
|
|
5056
5083
|
case "CreditLine":
|
|
5057
|
-
|
|
5084
|
+
d.afterAmount !== 0 ? (m = d.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
|
|
5058
5085
|
break;
|
|
5059
5086
|
default:
|
|
5060
|
-
|
|
5087
|
+
m = d.afterAmount;
|
|
5061
5088
|
}
|
|
5062
|
-
return
|
|
5089
|
+
return m === null ? l : m;
|
|
5063
5090
|
}, ot = () => {
|
|
5064
|
-
switch (
|
|
5091
|
+
switch (S) {
|
|
5065
5092
|
case "totalCashAmount":
|
|
5066
|
-
let
|
|
5067
|
-
for (const
|
|
5068
|
-
for (const
|
|
5069
|
-
|
|
5070
|
-
n(1,
|
|
5093
|
+
let l = 0;
|
|
5094
|
+
for (const d of ["Real", "Bonus"])
|
|
5095
|
+
for (const m of E[d])
|
|
5096
|
+
l += Math.max(m.amount, 0);
|
|
5097
|
+
n(1, E.Total[0].amount = l, E);
|
|
5071
5098
|
break;
|
|
5072
5099
|
case "totalRealAmount":
|
|
5073
|
-
if (!
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5100
|
+
if (!Y)
|
|
5101
|
+
return;
|
|
5102
|
+
let p = 0;
|
|
5103
|
+
for (const d of E.Real)
|
|
5104
|
+
p += d.amount;
|
|
5105
|
+
n(1, E.Total[0].amount = p, E);
|
|
5078
5106
|
}
|
|
5079
|
-
},
|
|
5080
|
-
const
|
|
5081
|
-
if (!
|
|
5082
|
-
|
|
5107
|
+
}, wt = (l) => {
|
|
5108
|
+
const p = Re(l.data);
|
|
5109
|
+
if (!p) {
|
|
5110
|
+
le();
|
|
5083
5111
|
return;
|
|
5084
5112
|
}
|
|
5085
|
-
if (
|
|
5113
|
+
if (p.type !== "BALANCE_UPDATE_V2")
|
|
5086
5114
|
return;
|
|
5087
|
-
const
|
|
5088
|
-
for (const [
|
|
5089
|
-
if (
|
|
5090
|
-
for (const
|
|
5091
|
-
if (!
|
|
5092
|
-
|
|
5115
|
+
const d = p.body.balanceChange;
|
|
5116
|
+
for (const [m, y] of Object.entries(d))
|
|
5117
|
+
if (S === "totalRealAmount" && m === "Real" && !Y && n(1, E.Total[0].amount = We(E.Total[0].amount, F, y), E), !!E[m])
|
|
5118
|
+
for (const x of E[m]) {
|
|
5119
|
+
if (!Y) {
|
|
5120
|
+
x.amount = m === "Real" ? We(x.amount, F, y) : y.afterAmount;
|
|
5093
5121
|
continue;
|
|
5094
5122
|
}
|
|
5095
|
-
|
|
5123
|
+
y.productType === x.productType && (x.amount = m === "Real" ? We(x.amount, F[x.productType], y) : y.afterAmount);
|
|
5096
5124
|
}
|
|
5097
5125
|
ot();
|
|
5098
|
-
},
|
|
5099
|
-
|
|
5100
|
-
},
|
|
5101
|
-
|
|
5102
|
-
},
|
|
5103
|
-
switch (
|
|
5126
|
+
}, st = () => {
|
|
5127
|
+
ve("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5128
|
+
}, Ze = () => {
|
|
5129
|
+
ye.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, S = ye[0]));
|
|
5130
|
+
}, qe = () => {
|
|
5131
|
+
switch (Ra(o), Ze(), B) {
|
|
5104
5132
|
case "gmcore":
|
|
5105
|
-
|
|
5133
|
+
Ce();
|
|
5106
5134
|
break;
|
|
5107
5135
|
case "gm16":
|
|
5108
|
-
|
|
5136
|
+
ze();
|
|
5109
5137
|
break;
|
|
5110
5138
|
default:
|
|
5111
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5139
|
+
throw Error(`Invalid apiversion attribute: ${B}`);
|
|
5112
5140
|
}
|
|
5113
|
-
},
|
|
5141
|
+
}, Ee = (l) => l.data && l.data.type === "LogoutSuccessfull" && z.close(), ie = () => {
|
|
5114
5142
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5115
5143
|
};
|
|
5116
|
-
|
|
5117
|
-
window.removeEventListener("message",
|
|
5144
|
+
Sr(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5145
|
+
window.emMessageBus && q && q.unsubscribe(), window.removeEventListener("message", Ee), z && z.close();
|
|
5118
5146
|
}));
|
|
5119
|
-
const
|
|
5120
|
-
function
|
|
5121
|
-
jt[
|
|
5122
|
-
U =
|
|
5147
|
+
const St = () => ve("balance"), At = () => ve("closebalance"), Ct = () => st(), lt = () => ve("closeBalance");
|
|
5148
|
+
function h(l) {
|
|
5149
|
+
jt[l ? "unshift" : "push"](() => {
|
|
5150
|
+
U = l, n(0, U);
|
|
5123
5151
|
});
|
|
5124
5152
|
}
|
|
5125
|
-
return e.$$set = (
|
|
5126
|
-
"userid" in
|
|
5153
|
+
return e.$$set = (l) => {
|
|
5154
|
+
"userid" in l && n(11, i = l.userid), "session" in l && n(12, a = l.session), "endpoint" in l && n(13, s = l.endpoint), "lang" in l && n(14, o = l.lang), "mbsource" in l && n(15, c = l.mbsource), "clientstyling" in l && n(16, u = l.clientstyling), "clientstylingurl" in l && n(17, f = l.clientstylingurl), "translationurl" in l && n(18, g = l.translationurl), "customlocaleidentifier" in l && n(19, b = l.customlocaleidentifier), "gmversion" in l && n(20, B = l.gmversion), "displaybalanceoption" in l && n(21, T = l.displaybalanceoption), "totalcalculationmode" in l && n(10, S = l.totalcalculationmode), "currencyseparator" in l && n(22, _ = l.currencyseparator), "currencydecimal" in l && n(23, C = l.currencydecimal), "currencyprecision" in l && n(24, D = l.currencyprecision);
|
|
5127
5155
|
}, e.$$.update = () => {
|
|
5128
5156
|
e.$$.dirty[0] & /*lang*/
|
|
5129
|
-
16384 &&
|
|
5130
|
-
3176448 &&
|
|
5131
|
-
1062912 &&
|
|
5132
|
-
262144 && g &&
|
|
5133
|
-
2 &&
|
|
5134
|
-
65537 && u && U &&
|
|
5135
|
-
131073 &&
|
|
5136
|
-
32769 && c && U &&
|
|
5157
|
+
16384 && o && he(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5158
|
+
3176448 && s && i && a && o && B && T && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5159
|
+
1062912 && s && i && a && B && le(), e.$$.dirty[0] & /*translationurl*/
|
|
5160
|
+
262144 && g && it(), e.$$.dirty[0] & /*balances*/
|
|
5161
|
+
2 && E.Total && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5162
|
+
65537 && u && U && Gr(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5163
|
+
131073 && f && U && $r(U, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5164
|
+
32769 && c && U && jr(U, `${c}.Style`);
|
|
5137
5165
|
}, [
|
|
5138
5166
|
U,
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5167
|
+
E,
|
|
5168
|
+
O,
|
|
5169
|
+
re,
|
|
5170
|
+
X,
|
|
5171
|
+
P,
|
|
5144
5172
|
r,
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5173
|
+
ve,
|
|
5174
|
+
Se,
|
|
5175
|
+
st,
|
|
5176
|
+
S,
|
|
5149
5177
|
i,
|
|
5150
|
-
|
|
5151
|
-
l,
|
|
5178
|
+
a,
|
|
5152
5179
|
s,
|
|
5180
|
+
o,
|
|
5153
5181
|
c,
|
|
5154
5182
|
u,
|
|
5155
|
-
|
|
5183
|
+
f,
|
|
5156
5184
|
g,
|
|
5157
5185
|
b,
|
|
5158
|
-
_,
|
|
5159
5186
|
B,
|
|
5160
|
-
|
|
5161
|
-
|
|
5187
|
+
T,
|
|
5188
|
+
_,
|
|
5189
|
+
C,
|
|
5162
5190
|
D,
|
|
5163
|
-
re,
|
|
5164
5191
|
St,
|
|
5165
5192
|
At,
|
|
5166
5193
|
Ct,
|
|
5167
|
-
|
|
5194
|
+
lt,
|
|
5195
|
+
h
|
|
5168
5196
|
];
|
|
5169
5197
|
}
|
|
5170
|
-
class
|
|
5198
|
+
class ka extends Ur {
|
|
5171
5199
|
constructor(t) {
|
|
5172
|
-
super(),
|
|
5200
|
+
super(), Pr(
|
|
5173
5201
|
this,
|
|
5174
5202
|
t,
|
|
5175
|
-
|
|
5176
|
-
$
|
|
5177
|
-
|
|
5203
|
+
ja,
|
|
5204
|
+
$a,
|
|
5205
|
+
In,
|
|
5178
5206
|
{
|
|
5179
5207
|
userid: 11,
|
|
5180
5208
|
session: 12,
|
|
@@ -5192,7 +5220,7 @@ class ko extends Pr {
|
|
|
5192
5220
|
currencydecimal: 23,
|
|
5193
5221
|
currencyprecision: 24
|
|
5194
5222
|
},
|
|
5195
|
-
|
|
5223
|
+
Ua,
|
|
5196
5224
|
[-1, -1]
|
|
5197
5225
|
);
|
|
5198
5226
|
}
|
|
@@ -5287,7 +5315,7 @@ class ko extends Pr {
|
|
|
5287
5315
|
this.$$set({ currencyprecision: t }), J();
|
|
5288
5316
|
}
|
|
5289
5317
|
}
|
|
5290
|
-
|
|
5318
|
+
Dr(ka, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5291
5319
|
export {
|
|
5292
|
-
|
|
5320
|
+
ka as default
|
|
5293
5321
|
};
|