@everymatrix/player-account-balance-modal-nd 1.85.0 → 1.85.1
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-BcZWa9Oa.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-D_n2-ofG.js → PlayerAccountBalanceModalNd-CLis6uHE.js} +735 -727
- package/components/{PlayerAccountBalanceModalNd-4oW5u8Ml.js → PlayerAccountBalanceModalNd-DvTSmRL2.js} +715 -707
- 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-ByOqNjcv.cjs +0 -24
|
@@ -10,7 +10,7 @@ var Dt = Math.pow, It = (e, t, n) => t in e ? Nr(e, t, { enumerable: !0, configu
|
|
|
10
10
|
Fr.call(t, n) && It(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ft = (e, t) => Ir(e, Dr(t));
|
|
13
|
-
var
|
|
13
|
+
var ge = (e, t, n) => (It(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var Gt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var Gt = (e, t, n) => new Promise((r, i) => {
|
|
|
27
27
|
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ye() {
|
|
31
31
|
}
|
|
32
32
|
function Jn(e) {
|
|
33
33
|
return e();
|
|
@@ -35,7 +35,7 @@ function Jn(e) {
|
|
|
35
35
|
function _n() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ye(e) {
|
|
39
39
|
e.forEach(Jn);
|
|
40
40
|
}
|
|
41
41
|
function mn(e) {
|
|
@@ -51,7 +51,7 @@ function er(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return ye;
|
|
55
55
|
}
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -86,10 +86,10 @@ function Vr(e, t) {
|
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function _e(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ve(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function tr(e, t) {
|
|
@@ -102,16 +102,16 @@ function V(e) {
|
|
|
102
102
|
function En(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ce(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Ae() {
|
|
109
|
+
return Ce(" ");
|
|
110
110
|
}
|
|
111
111
|
function Xr() {
|
|
112
|
-
return
|
|
112
|
+
return Ce("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function at(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
116
|
}
|
|
117
117
|
function R(e, t, n) {
|
|
@@ -120,7 +120,7 @@ function R(e, t, n) {
|
|
|
120
120
|
function zr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ie(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
@@ -133,96 +133,96 @@ function Wr(e) {
|
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let st;
|
|
137
|
+
function ot(e) {
|
|
138
|
+
st = e;
|
|
139
139
|
}
|
|
140
140
|
function Zr() {
|
|
141
|
-
if (!
|
|
141
|
+
if (!st)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
|
-
return
|
|
143
|
+
return st;
|
|
144
144
|
}
|
|
145
145
|
function qr(e) {
|
|
146
146
|
Zr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
148
|
+
const Ve = [], qt = [];
|
|
149
|
+
let Xe = [];
|
|
150
150
|
const xn = [], Yr = /* @__PURE__ */ Promise.resolve();
|
|
151
151
|
let Yt = !1;
|
|
152
152
|
function Qr() {
|
|
153
153
|
Yt || (Yt = !0, Yr.then(Y));
|
|
154
154
|
}
|
|
155
155
|
function Qt(e) {
|
|
156
|
-
|
|
156
|
+
Xe.push(e);
|
|
157
157
|
}
|
|
158
158
|
const jt = /* @__PURE__ */ new Set();
|
|
159
|
-
let
|
|
159
|
+
let ke = 0;
|
|
160
160
|
function Y() {
|
|
161
|
-
if (
|
|
161
|
+
if (ke !== 0)
|
|
162
162
|
return;
|
|
163
|
-
const e =
|
|
163
|
+
const e = st;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t = ke
|
|
168
|
-
|
|
166
|
+
for (; ke < Ve.length; ) {
|
|
167
|
+
const t = Ve[ke];
|
|
168
|
+
ke++, ot(t), Jr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw
|
|
171
|
+
throw Ve.length = 0, ke = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (
|
|
173
|
+
for (ot(null), Ve.length = 0, ke = 0; qt.length; )
|
|
174
174
|
qt.pop()();
|
|
175
|
-
for (let t = 0; t <
|
|
176
|
-
const n =
|
|
175
|
+
for (let t = 0; t < Xe.length; t += 1) {
|
|
176
|
+
const n = Xe[t];
|
|
177
177
|
jt.has(n) || (jt.add(n), n());
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
179
|
+
Xe.length = 0;
|
|
180
|
+
} while (Ve.length);
|
|
181
181
|
for (; xn.length; )
|
|
182
182
|
xn.pop()();
|
|
183
|
-
Yt = !1, jt.clear(),
|
|
183
|
+
Yt = !1, jt.clear(), ot(e);
|
|
184
184
|
}
|
|
185
185
|
function Jr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), Ye(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
189
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function Kr(e) {
|
|
193
193
|
const t = [], n = [];
|
|
194
|
-
|
|
194
|
+
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
195
195
|
}
|
|
196
196
|
const ei = /* @__PURE__ */ new Set();
|
|
197
197
|
function ti(e, t) {
|
|
198
198
|
e && e.i && (ei.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function vt(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
203
|
function ni(e, t, n) {
|
|
204
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
205
205
|
r && r.m(t, n), Qt(() => {
|
|
206
206
|
const o = e.$$.on_mount.map(Jn).filter(mn);
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ye(o), e.$$.on_mount = [];
|
|
208
208
|
}), i.forEach(Qt);
|
|
209
209
|
}
|
|
210
210
|
function ri(e, t) {
|
|
211
211
|
const n = e.$$;
|
|
212
|
-
n.fragment !== null && (Kr(n.after_update),
|
|
212
|
+
n.fragment !== null && (Kr(n.after_update), Ye(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
213
213
|
}
|
|
214
214
|
function ii(e, t) {
|
|
215
|
-
e.$$.dirty[0] === -1 && (
|
|
215
|
+
e.$$.dirty[0] === -1 && (Ve.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
217
|
function oi(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
218
|
-
const l =
|
|
219
|
-
|
|
218
|
+
const l = st;
|
|
219
|
+
ot(e);
|
|
220
220
|
const u = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
223
223
|
// state
|
|
224
224
|
props: o,
|
|
225
|
-
update:
|
|
225
|
+
update: ye,
|
|
226
226
|
not_equal: i,
|
|
227
227
|
bound: _n(),
|
|
228
228
|
// lifecycle
|
|
@@ -240,41 +240,41 @@ function oi(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
240
240
|
};
|
|
241
241
|
a && a(u.root);
|
|
242
242
|
let f = !1;
|
|
243
|
-
if (u.ctx = n ? n(e, t.props || {}, (b,
|
|
244
|
-
const
|
|
245
|
-
return u.ctx && i(u.ctx[b], u.ctx[b] =
|
|
246
|
-
}) : [], u.update(), f = !0,
|
|
243
|
+
if (u.ctx = n ? n(e, t.props || {}, (b, p, ...y) => {
|
|
244
|
+
const E = y.length ? y[0] : p;
|
|
245
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && ii(e, b)), p;
|
|
246
|
+
}) : [], u.update(), f = !0, Ye(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
248
|
const b = zr(t.target);
|
|
249
|
-
u.fragment && u.fragment.l(b), b.forEach(
|
|
249
|
+
u.fragment && u.fragment.l(b), b.forEach(ve);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
252
|
t.intro && ti(e.$$.fragment), ni(e, t.target, t.anchor), Y();
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
ot(l);
|
|
255
255
|
}
|
|
256
256
|
let nr;
|
|
257
257
|
typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
258
258
|
constructor(t, n, r) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
|
-
|
|
261
|
+
ge(this, "$$ctor");
|
|
262
262
|
/** Slots */
|
|
263
|
-
|
|
263
|
+
ge(this, "$$s");
|
|
264
264
|
/** The Svelte component instance */
|
|
265
|
-
|
|
265
|
+
ge(this, "$$c");
|
|
266
266
|
/** Whether or not the custom element is connected */
|
|
267
|
-
|
|
267
|
+
ge(this, "$$cn", !1);
|
|
268
268
|
/** Component props data */
|
|
269
|
-
|
|
269
|
+
ge(this, "$$d", {});
|
|
270
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
271
|
-
|
|
271
|
+
ge(this, "$$r", !1);
|
|
272
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
273
|
-
|
|
273
|
+
ge(this, "$$p_d", {});
|
|
274
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
275
|
-
|
|
275
|
+
ge(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
|
-
|
|
277
|
+
ge(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
278
278
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
279
279
|
}
|
|
280
280
|
addEventListener(t, n, r) {
|
|
@@ -305,10 +305,10 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
305
305
|
* @param {HTMLElement} [anchor]
|
|
306
306
|
*/
|
|
307
307
|
m: function(u, f) {
|
|
308
|
-
|
|
308
|
+
_e(u, a, f);
|
|
309
309
|
},
|
|
310
310
|
d: function(u) {
|
|
311
|
-
u &&
|
|
311
|
+
u && ve(a);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
};
|
|
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
320
320
|
o in r && (n[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
322
322
|
const a = this.$$g_p(o.name);
|
|
323
|
-
a in this.$$d || (this.$$d[a] =
|
|
323
|
+
a in this.$$d || (this.$$d[a] = mt(a, o.value, this.$$p_d, "toProp"));
|
|
324
324
|
}
|
|
325
325
|
for (const o in this.$$p_d)
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
337
337
|
this.$$r = !0;
|
|
338
338
|
for (const o in this.$$p_d)
|
|
339
339
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
340
|
-
const a =
|
|
340
|
+
const a = mt(
|
|
341
341
|
o,
|
|
342
342
|
this.$$d[o],
|
|
343
343
|
this.$$p_d,
|
|
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
361
361
|
// and setting attributes through setAttribute etc, this is helpful
|
|
362
362
|
attributeChangedCallback(t, n, r) {
|
|
363
363
|
var i;
|
|
364
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
364
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = mt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
365
365
|
}
|
|
366
366
|
disconnectedCallback() {
|
|
367
367
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -374,7 +374,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
374
374
|
) || t;
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
|
-
function
|
|
377
|
+
function mt(e, t, n, r) {
|
|
378
378
|
var o;
|
|
379
379
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
380
380
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -422,7 +422,7 @@ function ai(e, t, n, r, i, o) {
|
|
|
422
422
|
},
|
|
423
423
|
set(l) {
|
|
424
424
|
var u;
|
|
425
|
-
l =
|
|
425
|
+
l = mt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
}), r.forEach((s) => {
|
|
@@ -444,7 +444,7 @@ class si {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
ge(this, "$$");
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
450
450
|
*
|
|
@@ -452,11 +452,11 @@ class si {
|
|
|
452
452
|
*
|
|
453
453
|
* @type {any}
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
ge(this, "$$set");
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
ri(this, 1), this.$destroy =
|
|
459
|
+
ri(this, 1), this.$destroy = ye;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -466,7 +466,7 @@ class si {
|
|
|
466
466
|
*/
|
|
467
467
|
$on(t, n) {
|
|
468
468
|
if (!mn(n))
|
|
469
|
-
return
|
|
469
|
+
return ye;
|
|
470
470
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return r.push(n), () => {
|
|
472
472
|
const i = r.indexOf(n);
|
|
@@ -506,39 +506,39 @@ function hi(e, t, n) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const $e = [];
|
|
510
510
|
function fi(e, t) {
|
|
511
511
|
return {
|
|
512
|
-
subscribe:
|
|
512
|
+
subscribe: wt(e, t).subscribe
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function wt(e, t = ye) {
|
|
516
516
|
let n;
|
|
517
517
|
const r = /* @__PURE__ */ new Set();
|
|
518
518
|
function i(s) {
|
|
519
519
|
if (Kn(e, s) && (e = s, n)) {
|
|
520
|
-
const l =
|
|
520
|
+
const l = !$e.length;
|
|
521
521
|
for (const u of r)
|
|
522
|
-
u[1](),
|
|
522
|
+
u[1](), $e.push(u, e);
|
|
523
523
|
if (l) {
|
|
524
|
-
for (let u = 0; u <
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
for (let u = 0; u < $e.length; u += 2)
|
|
525
|
+
$e[u][0]($e[u + 1]);
|
|
526
|
+
$e.length = 0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
function o(s) {
|
|
531
531
|
i(s(e));
|
|
532
532
|
}
|
|
533
|
-
function a(s, l =
|
|
533
|
+
function a(s, l = ye) {
|
|
534
534
|
const u = [s, l];
|
|
535
|
-
return r.add(u), r.size === 1 && (n = t(i, o) ||
|
|
535
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || ye), s(e), () => {
|
|
536
536
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
return { set: i, update: o, subscribe: a };
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Qe(e, t, n) {
|
|
542
542
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
543
543
|
if (!i.every(Boolean))
|
|
544
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -546,26 +546,26 @@ function qe(e, t, n) {
|
|
|
546
546
|
return fi(n, (a, s) => {
|
|
547
547
|
let l = !1;
|
|
548
548
|
const u = [];
|
|
549
|
-
let f = 0, b =
|
|
550
|
-
const
|
|
549
|
+
let f = 0, b = ye;
|
|
550
|
+
const p = () => {
|
|
551
551
|
if (f)
|
|
552
552
|
return;
|
|
553
553
|
b();
|
|
554
|
-
const
|
|
555
|
-
o ? a(
|
|
556
|
-
},
|
|
557
|
-
(
|
|
558
|
-
|
|
554
|
+
const E = t(r ? u[0] : u, a, s);
|
|
555
|
+
o ? a(E) : b = mn(E) ? E : ye;
|
|
556
|
+
}, y = i.map(
|
|
557
|
+
(E, B) => er(
|
|
558
|
+
E,
|
|
559
559
|
(Q) => {
|
|
560
|
-
u[
|
|
560
|
+
u[B] = Q, f &= ~(1 << B), l && p();
|
|
561
561
|
},
|
|
562
562
|
() => {
|
|
563
|
-
f |= 1 <<
|
|
563
|
+
f |= 1 << B;
|
|
564
564
|
}
|
|
565
565
|
)
|
|
566
566
|
);
|
|
567
|
-
return l = !0,
|
|
568
|
-
|
|
567
|
+
return l = !0, p(), function() {
|
|
568
|
+
Ye(y), b(), l = !1;
|
|
569
569
|
};
|
|
570
570
|
});
|
|
571
571
|
}
|
|
@@ -590,19 +590,19 @@ function _i(e) {
|
|
|
590
590
|
function Ei(e) {
|
|
591
591
|
return Array.isArray(e) ? [] : {};
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
593
|
+
function ut(e, t) {
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ze(Ei(e), e, t) : e;
|
|
595
595
|
}
|
|
596
596
|
function xi(e, t, n) {
|
|
597
597
|
return e.concat(t).map(function(r) {
|
|
598
|
-
return
|
|
598
|
+
return ut(r, n);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function wi(e, t) {
|
|
602
602
|
if (!t.customMerge)
|
|
603
|
-
return
|
|
603
|
+
return ze;
|
|
604
604
|
var n = t.customMerge(e);
|
|
605
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : ze;
|
|
606
606
|
}
|
|
607
607
|
function Si(e) {
|
|
608
608
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -625,24 +625,24 @@ function Bi(e, t) {
|
|
|
625
625
|
function Ti(e, t, n) {
|
|
626
626
|
var r = {};
|
|
627
627
|
return n.isMergeableObject(e) && wn(e).forEach(function(i) {
|
|
628
|
-
r[i] =
|
|
628
|
+
r[i] = ut(e[i], n);
|
|
629
629
|
}), wn(t).forEach(function(i) {
|
|
630
|
-
Bi(e, i) || (rr(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] =
|
|
630
|
+
Bi(e, i) || (rr(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] = ut(t[i], n));
|
|
631
631
|
}), r;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified =
|
|
633
|
+
function ze(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified = ut;
|
|
635
635
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
636
|
-
return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) :
|
|
636
|
+
return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) : ut(t, n);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
ze.all = function(t, n) {
|
|
639
639
|
if (!Array.isArray(t))
|
|
640
640
|
throw new Error("first argument should be an array");
|
|
641
641
|
return t.reduce(function(r, i) {
|
|
642
|
-
return
|
|
642
|
+
return ze(r, i, n);
|
|
643
643
|
}, {});
|
|
644
644
|
};
|
|
645
|
-
var Ai =
|
|
645
|
+
var Ai = ze, Ci = Ai;
|
|
646
646
|
const Hi = /* @__PURE__ */ pi(Ci);
|
|
647
647
|
var Jt = function(e, t) {
|
|
648
648
|
return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
@@ -652,7 +652,7 @@ var Jt = function(e, t) {
|
|
|
652
652
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
653
653
|
}, Jt(e, t);
|
|
654
654
|
};
|
|
655
|
-
function
|
|
655
|
+
function St(e, t) {
|
|
656
656
|
if (typeof t != "function" && t !== null)
|
|
657
657
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
658
658
|
Jt(e, t);
|
|
@@ -661,15 +661,15 @@ function Bt(e, t) {
|
|
|
661
661
|
}
|
|
662
662
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
663
663
|
}
|
|
664
|
-
var
|
|
665
|
-
return
|
|
664
|
+
var Te = function() {
|
|
665
|
+
return Te = Object.assign || function(t) {
|
|
666
666
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
667
667
|
n = arguments[r];
|
|
668
668
|
for (var o in n)
|
|
669
669
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
670
670
|
}
|
|
671
671
|
return t;
|
|
672
|
-
},
|
|
672
|
+
}, Te.apply(this, arguments);
|
|
673
673
|
};
|
|
674
674
|
function Oi(e, t) {
|
|
675
675
|
var n = {};
|
|
@@ -734,15 +734,15 @@ var Ni = function() {
|
|
|
734
734
|
}
|
|
735
735
|
}, Vt = {
|
|
736
736
|
variadic: Pi
|
|
737
|
-
},
|
|
738
|
-
return
|
|
737
|
+
}, _t = function() {
|
|
738
|
+
return _t = Object.assign || function(t) {
|
|
739
739
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
740
740
|
n = arguments[r];
|
|
741
741
|
for (var o in n)
|
|
742
742
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
743
743
|
}
|
|
744
744
|
return t;
|
|
745
|
-
},
|
|
745
|
+
}, _t.apply(this, arguments);
|
|
746
746
|
};
|
|
747
747
|
var L;
|
|
748
748
|
(function(e) {
|
|
@@ -752,10 +752,10 @@ var $;
|
|
|
752
752
|
(function(e) {
|
|
753
753
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
754
754
|
})($ || ($ = {}));
|
|
755
|
-
var
|
|
755
|
+
var We;
|
|
756
756
|
(function(e) {
|
|
757
757
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
758
|
-
})(
|
|
758
|
+
})(We || (We = {}));
|
|
759
759
|
function Sn(e) {
|
|
760
760
|
return e.type === $.literal;
|
|
761
761
|
}
|
|
@@ -784,10 +784,10 @@ function hr(e) {
|
|
|
784
784
|
return e.type === $.tag;
|
|
785
785
|
}
|
|
786
786
|
function fr(e) {
|
|
787
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === We.number);
|
|
788
788
|
}
|
|
789
789
|
function Kt(e) {
|
|
790
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === We.dateTime);
|
|
791
791
|
}
|
|
792
792
|
var dr = /[ \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;
|
|
793
793
|
function ji(e) {
|
|
@@ -895,8 +895,8 @@ var ki = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
895
895
|
function $i(e) {
|
|
896
896
|
if (e.length === 0)
|
|
897
897
|
throw new Error("Number skeleton cannot be empty");
|
|
898
|
-
for (var t = e.split(ki).filter(function(
|
|
899
|
-
return
|
|
898
|
+
for (var t = e.split(ki).filter(function(p) {
|
|
899
|
+
return p.length > 0;
|
|
900
900
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
901
901
|
var o = i[r], a = o.split("/");
|
|
902
902
|
if (a.length === 0)
|
|
@@ -1064,13 +1064,13 @@ function Wi(e) {
|
|
|
1064
1064
|
case "integer-width":
|
|
1065
1065
|
if (i.options.length > 1)
|
|
1066
1066
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1067
|
-
i.options[0].replace(Xi, function(l, u, f, b,
|
|
1067
|
+
i.options[0].replace(Xi, function(l, u, f, b, p, y) {
|
|
1068
1068
|
if (u)
|
|
1069
1069
|
t.minimumIntegerDigits = f.length;
|
|
1070
1070
|
else {
|
|
1071
|
-
if (b &&
|
|
1071
|
+
if (b && p)
|
|
1072
1072
|
throw new Error("We currently do not support maximum integer digits");
|
|
1073
|
-
if (
|
|
1073
|
+
if (y)
|
|
1074
1074
|
throw new Error("We currently do not support exact integer digits");
|
|
1075
1075
|
}
|
|
1076
1076
|
return "";
|
|
@@ -1084,8 +1084,8 @@ function Wi(e) {
|
|
|
1084
1084
|
if (Bn.test(i.stem)) {
|
|
1085
1085
|
if (i.options.length > 1)
|
|
1086
1086
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1087
|
-
i.stem.replace(Bn, function(l, u, f, b,
|
|
1088
|
-
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length :
|
|
1087
|
+
i.stem.replace(Bn, function(l, u, f, b, p, y) {
|
|
1088
|
+
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1089
1089
|
});
|
|
1090
1090
|
var o = i.options[0];
|
|
1091
1091
|
o === "w" ? t = W(W({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = W(W({}, t), Tn(o)));
|
|
@@ -1102,7 +1102,7 @@ function Wi(e) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return t;
|
|
1104
1104
|
}
|
|
1105
|
-
var
|
|
1105
|
+
var dt = {
|
|
1106
1106
|
"001": [
|
|
1107
1107
|
"H",
|
|
1108
1108
|
"h"
|
|
@@ -2552,7 +2552,7 @@ function qi(e) {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
var n = e.language, r;
|
|
2554
2554
|
n !== "root" && (r = e.maximize().region);
|
|
2555
|
-
var i =
|
|
2555
|
+
var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
|
|
2556
2556
|
return i[0];
|
|
2557
2557
|
}
|
|
2558
2558
|
var Xt, Yi = new RegExp("^".concat(dr.source, "*")), Qi = new RegExp("".concat(dr.source, "*$"));
|
|
@@ -2857,37 +2857,37 @@ var lo = (
|
|
|
2857
2857
|
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2858
2858
|
if (b.err)
|
|
2859
2859
|
return b;
|
|
2860
|
-
var
|
|
2861
|
-
if (
|
|
2860
|
+
var p = uo(b.val);
|
|
2861
|
+
if (p.length === 0)
|
|
2862
2862
|
return this.error(L.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2863
|
-
var
|
|
2864
|
-
u = { style:
|
|
2863
|
+
var y = M(f, this.clonePosition());
|
|
2864
|
+
u = { style: p, styleLocation: y };
|
|
2865
2865
|
}
|
|
2866
|
-
var
|
|
2867
|
-
if (
|
|
2868
|
-
return
|
|
2869
|
-
var
|
|
2866
|
+
var E = this.tryParseArgumentClose(i);
|
|
2867
|
+
if (E.err)
|
|
2868
|
+
return E;
|
|
2869
|
+
var B = M(i, this.clonePosition());
|
|
2870
2870
|
if (u && Cn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2871
2871
|
var Q = so(u.style.slice(2));
|
|
2872
2872
|
if (s === "number") {
|
|
2873
2873
|
var b = this.parseNumberSkeletonFromString(Q, u.styleLocation);
|
|
2874
2874
|
return b.err ? b : {
|
|
2875
|
-
val: { type: $.number, value: r, location:
|
|
2875
|
+
val: { type: $.number, value: r, location: B, style: b.val },
|
|
2876
2876
|
err: null
|
|
2877
2877
|
};
|
|
2878
2878
|
} else {
|
|
2879
2879
|
if (Q.length === 0)
|
|
2880
|
-
return this.error(L.EXPECT_DATE_TIME_SKELETON,
|
|
2880
|
+
return this.error(L.EXPECT_DATE_TIME_SKELETON, B);
|
|
2881
2881
|
var re = Q;
|
|
2882
2882
|
this.locale && (re = Zi(Q, this.locale));
|
|
2883
|
-
var
|
|
2884
|
-
type:
|
|
2883
|
+
var p = {
|
|
2884
|
+
type: We.dateTime,
|
|
2885
2885
|
pattern: re,
|
|
2886
2886
|
location: u.styleLocation,
|
|
2887
2887
|
parsedOptions: this.shouldParseSkeletons ? ji(re) : {}
|
|
2888
2888
|
}, oe = s === "date" ? $.date : $.time;
|
|
2889
2889
|
return {
|
|
2890
|
-
val: { type: oe, value: r, location:
|
|
2890
|
+
val: { type: oe, value: r, location: B, style: p },
|
|
2891
2891
|
err: null
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
@@ -2896,7 +2896,7 @@ var lo = (
|
|
|
2896
2896
|
val: {
|
|
2897
2897
|
type: s === "number" ? $.number : s === "date" ? $.date : $.time,
|
|
2898
2898
|
value: r,
|
|
2899
|
-
location:
|
|
2899
|
+
location: B,
|
|
2900
2900
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2901
2901
|
},
|
|
2902
2902
|
err: null
|
|
@@ -2907,7 +2907,7 @@ var lo = (
|
|
|
2907
2907
|
case "select": {
|
|
2908
2908
|
var I = this.clonePosition();
|
|
2909
2909
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2910
|
-
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, M(I,
|
|
2910
|
+
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, M(I, _t({}, I)));
|
|
2911
2911
|
this.bumpSpace();
|
|
2912
2912
|
var k = this.parseIdentifierIfPossible(), Z = 0;
|
|
2913
2913
|
if (s !== "select" && k.value === "offset") {
|
|
@@ -2922,9 +2922,9 @@ var lo = (
|
|
|
2922
2922
|
var ie = this.tryParsePluralOrSelectOptions(t, s, n, k);
|
|
2923
2923
|
if (ie.err)
|
|
2924
2924
|
return ie;
|
|
2925
|
-
var
|
|
2926
|
-
if (
|
|
2927
|
-
return
|
|
2925
|
+
var E = this.tryParseArgumentClose(i);
|
|
2926
|
+
if (E.err)
|
|
2927
|
+
return E;
|
|
2928
2928
|
var K = M(i, this.clonePosition());
|
|
2929
2929
|
return s === "select" ? {
|
|
2930
2930
|
val: {
|
|
@@ -2995,7 +2995,7 @@ var lo = (
|
|
|
2995
2995
|
}
|
|
2996
2996
|
return {
|
|
2997
2997
|
val: {
|
|
2998
|
-
type:
|
|
2998
|
+
type: We.number,
|
|
2999
2999
|
tokens: r,
|
|
3000
3000
|
location: n,
|
|
3001
3001
|
parsedOptions: this.shouldParseSkeletons ? Wi(r) : {}
|
|
@@ -3007,9 +3007,9 @@ var lo = (
|
|
|
3007
3007
|
if (u.length === 0) {
|
|
3008
3008
|
var b = this.clonePosition();
|
|
3009
3009
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3010
|
-
var
|
|
3011
|
-
if (
|
|
3012
|
-
return
|
|
3010
|
+
var p = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3011
|
+
if (p.err)
|
|
3012
|
+
return p;
|
|
3013
3013
|
f = M(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
|
|
3014
3014
|
} else
|
|
3015
3015
|
break;
|
|
@@ -3017,20 +3017,20 @@ var lo = (
|
|
|
3017
3017
|
if (l.has(u))
|
|
3018
3018
|
return this.error(n === "select" ? L.DUPLICATE_SELECT_ARGUMENT_SELECTOR : L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3019
3019
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3020
|
-
var
|
|
3020
|
+
var y = this.clonePosition();
|
|
3021
3021
|
if (!this.bumpIf("{"))
|
|
3022
3022
|
return this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
3023
|
-
var
|
|
3024
|
-
if (
|
|
3025
|
-
return
|
|
3026
|
-
var
|
|
3027
|
-
if (
|
|
3028
|
-
return
|
|
3023
|
+
var E = this.parseMessage(t + 1, n, r);
|
|
3024
|
+
if (E.err)
|
|
3025
|
+
return E;
|
|
3026
|
+
var B = this.tryParseArgumentClose(y);
|
|
3027
|
+
if (B.err)
|
|
3028
|
+
return B;
|
|
3029
3029
|
s.push([
|
|
3030
3030
|
u,
|
|
3031
3031
|
{
|
|
3032
|
-
value:
|
|
3033
|
-
location: M(
|
|
3032
|
+
value: E.val,
|
|
3033
|
+
location: M(y, this.clonePosition())
|
|
3034
3034
|
}
|
|
3035
3035
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3036
3036
|
}
|
|
@@ -3137,7 +3137,7 @@ function on(e) {
|
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
3139
3139
|
function po(e, t) {
|
|
3140
|
-
t === void 0 && (t = {}), t =
|
|
3140
|
+
t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3141
3141
|
var n = new lo(e, t).parse();
|
|
3142
3142
|
if (n.err) {
|
|
3143
3143
|
var r = SyntaxError(L[n.err.kind]);
|
|
@@ -3145,14 +3145,14 @@ function po(e, t) {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
return t != null && t.captureLocation || on(n.val), n.val;
|
|
3147
3147
|
}
|
|
3148
|
-
var
|
|
3148
|
+
var Ze;
|
|
3149
3149
|
(function(e) {
|
|
3150
3150
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3151
|
-
})(
|
|
3152
|
-
var
|
|
3151
|
+
})(Ze || (Ze = {}));
|
|
3152
|
+
var Bt = (
|
|
3153
3153
|
/** @class */
|
|
3154
3154
|
function(e) {
|
|
3155
|
-
|
|
3155
|
+
St(t, e);
|
|
3156
3156
|
function t(n, r, i) {
|
|
3157
3157
|
var o = e.call(this, n) || this;
|
|
3158
3158
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3164,48 +3164,48 @@ var Tt = (
|
|
|
3164
3164
|
), Ln = (
|
|
3165
3165
|
/** @class */
|
|
3166
3166
|
function(e) {
|
|
3167
|
-
|
|
3167
|
+
St(t, e);
|
|
3168
3168
|
function t(n, r, i, o) {
|
|
3169
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3169
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ze.INVALID_VALUE, o) || this;
|
|
3170
3170
|
}
|
|
3171
3171
|
return t;
|
|
3172
|
-
}(
|
|
3172
|
+
}(Bt)
|
|
3173
3173
|
), mo = (
|
|
3174
3174
|
/** @class */
|
|
3175
3175
|
function(e) {
|
|
3176
|
-
|
|
3176
|
+
St(t, e);
|
|
3177
3177
|
function t(n, r, i) {
|
|
3178
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3178
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ze.INVALID_VALUE, i) || this;
|
|
3179
3179
|
}
|
|
3180
3180
|
return t;
|
|
3181
|
-
}(
|
|
3181
|
+
}(Bt)
|
|
3182
3182
|
), bo = (
|
|
3183
3183
|
/** @class */
|
|
3184
3184
|
function(e) {
|
|
3185
|
-
|
|
3185
|
+
St(t, e);
|
|
3186
3186
|
function t(n, r) {
|
|
3187
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3187
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ze.MISSING_VALUE, r) || this;
|
|
3188
3188
|
}
|
|
3189
3189
|
return t;
|
|
3190
|
-
}(
|
|
3191
|
-
),
|
|
3190
|
+
}(Bt)
|
|
3191
|
+
), ue;
|
|
3192
3192
|
(function(e) {
|
|
3193
3193
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3194
|
-
})(
|
|
3194
|
+
})(ue || (ue = {}));
|
|
3195
3195
|
function go(e) {
|
|
3196
3196
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3197
3197
|
var r = t[t.length - 1];
|
|
3198
|
-
return !r || r.type !==
|
|
3198
|
+
return !r || r.type !== ue.literal || n.type !== ue.literal ? t.push(n) : r.value += n.value, t;
|
|
3199
3199
|
}, []);
|
|
3200
3200
|
}
|
|
3201
3201
|
function yo(e) {
|
|
3202
3202
|
return typeof e == "function";
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3204
|
+
function bt(e, t, n, r, i, o, a) {
|
|
3205
3205
|
if (e.length === 1 && Sn(e[0]))
|
|
3206
3206
|
return [
|
|
3207
3207
|
{
|
|
3208
|
-
type:
|
|
3208
|
+
type: ue.literal,
|
|
3209
3209
|
value: e[0].value
|
|
3210
3210
|
}
|
|
3211
3211
|
];
|
|
@@ -3213,14 +3213,14 @@ function gt(e, t, n, r, i, o, a) {
|
|
|
3213
3213
|
var f = u[l];
|
|
3214
3214
|
if (Sn(f)) {
|
|
3215
3215
|
s.push({
|
|
3216
|
-
type:
|
|
3216
|
+
type: ue.literal,
|
|
3217
3217
|
value: f.value
|
|
3218
3218
|
});
|
|
3219
3219
|
continue;
|
|
3220
3220
|
}
|
|
3221
3221
|
if (Fi(f)) {
|
|
3222
3222
|
typeof o == "number" && s.push({
|
|
3223
|
-
type:
|
|
3223
|
+
type: ue.literal,
|
|
3224
3224
|
value: n.getNumberFormat(t).format(o)
|
|
3225
3225
|
});
|
|
3226
3226
|
continue;
|
|
@@ -3228,86 +3228,86 @@ function gt(e, t, n, r, i, o, a) {
|
|
|
3228
3228
|
var b = f.value;
|
|
3229
3229
|
if (!(i && b in i))
|
|
3230
3230
|
throw new bo(b, a);
|
|
3231
|
-
var
|
|
3231
|
+
var p = i[b];
|
|
3232
3232
|
if (Ui(f)) {
|
|
3233
|
-
(!
|
|
3234
|
-
type: typeof
|
|
3235
|
-
value:
|
|
3233
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
|
|
3234
|
+
type: typeof p == "string" ? ue.literal : ue.object,
|
|
3235
|
+
value: p
|
|
3236
3236
|
});
|
|
3237
3237
|
continue;
|
|
3238
3238
|
}
|
|
3239
3239
|
if (sr(f)) {
|
|
3240
|
-
var
|
|
3240
|
+
var y = typeof f.style == "string" ? r.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
|
|
3241
3241
|
s.push({
|
|
3242
|
-
type:
|
|
3243
|
-
value: n.getDateTimeFormat(t,
|
|
3242
|
+
type: ue.literal,
|
|
3243
|
+
value: n.getDateTimeFormat(t, y).format(p)
|
|
3244
3244
|
});
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (ur(f)) {
|
|
3248
|
-
var
|
|
3248
|
+
var y = typeof f.style == "string" ? r.time[f.style] : Kt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3249
3249
|
s.push({
|
|
3250
|
-
type:
|
|
3251
|
-
value: n.getDateTimeFormat(t,
|
|
3250
|
+
type: ue.literal,
|
|
3251
|
+
value: n.getDateTimeFormat(t, y).format(p)
|
|
3252
3252
|
});
|
|
3253
3253
|
continue;
|
|
3254
3254
|
}
|
|
3255
3255
|
if (ar(f)) {
|
|
3256
|
-
var
|
|
3257
|
-
|
|
3258
|
-
type:
|
|
3259
|
-
value: n.getNumberFormat(t,
|
|
3256
|
+
var y = typeof f.style == "string" ? r.number[f.style] : fr(f.style) ? f.style.parsedOptions : void 0;
|
|
3257
|
+
y && y.scale && (p = p * (y.scale || 1)), s.push({
|
|
3258
|
+
type: ue.literal,
|
|
3259
|
+
value: n.getNumberFormat(t, y).format(p)
|
|
3260
3260
|
});
|
|
3261
3261
|
continue;
|
|
3262
3262
|
}
|
|
3263
3263
|
if (hr(f)) {
|
|
3264
|
-
var
|
|
3264
|
+
var E = f.children, B = f.value, Q = i[B];
|
|
3265
3265
|
if (!yo(Q))
|
|
3266
|
-
throw new mo(
|
|
3267
|
-
var re =
|
|
3266
|
+
throw new mo(B, "function", a);
|
|
3267
|
+
var re = bt(E, t, n, r, i, o), oe = Q(re.map(function(Z) {
|
|
3268
3268
|
return Z.value;
|
|
3269
3269
|
}));
|
|
3270
3270
|
Array.isArray(oe) || (oe = [oe]), s.push.apply(s, oe.map(function(Z) {
|
|
3271
3271
|
return {
|
|
3272
|
-
type: typeof Z == "string" ?
|
|
3272
|
+
type: typeof Z == "string" ? ue.literal : ue.object,
|
|
3273
3273
|
value: Z
|
|
3274
3274
|
};
|
|
3275
3275
|
}));
|
|
3276
3276
|
}
|
|
3277
3277
|
if (lr(f)) {
|
|
3278
|
-
var I = f.options[
|
|
3278
|
+
var I = f.options[p] || f.options.other;
|
|
3279
3279
|
if (!I)
|
|
3280
|
-
throw new Ln(f.value,
|
|
3281
|
-
s.push.apply(s,
|
|
3280
|
+
throw new Ln(f.value, p, Object.keys(f.options), a);
|
|
3281
|
+
s.push.apply(s, bt(I.value, t, n, r, i));
|
|
3282
3282
|
continue;
|
|
3283
3283
|
}
|
|
3284
3284
|
if (cr(f)) {
|
|
3285
|
-
var I = f.options["=".concat(
|
|
3285
|
+
var I = f.options["=".concat(p)];
|
|
3286
3286
|
if (!I) {
|
|
3287
3287
|
if (!Intl.PluralRules)
|
|
3288
|
-
throw new
|
|
3288
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3289
3289
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3290
|
-
`,
|
|
3291
|
-
var k = n.getPluralRules(t, { type: f.pluralType }).select(
|
|
3290
|
+
`, Ze.MISSING_INTL_API, a);
|
|
3291
|
+
var k = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
|
|
3292
3292
|
I = f.options[k] || f.options.other;
|
|
3293
3293
|
}
|
|
3294
3294
|
if (!I)
|
|
3295
|
-
throw new Ln(f.value,
|
|
3296
|
-
s.push.apply(s,
|
|
3295
|
+
throw new Ln(f.value, p, Object.keys(f.options), a);
|
|
3296
|
+
s.push.apply(s, bt(I.value, t, n, r, i, p - (f.offset || 0)));
|
|
3297
3297
|
continue;
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
3300
3300
|
return go(s);
|
|
3301
3301
|
}
|
|
3302
3302
|
function vo(e, t) {
|
|
3303
|
-
return t ?
|
|
3304
|
-
return n[r] =
|
|
3303
|
+
return t ? Te(Te(Te({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3304
|
+
return n[r] = Te(Te({}, e[r]), t[r] || {}), n;
|
|
3305
3305
|
}, {})) : e;
|
|
3306
3306
|
}
|
|
3307
3307
|
function _o(e, t) {
|
|
3308
3308
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3309
3309
|
return n[r] = vo(e[r], t[r]), n;
|
|
3310
|
-
},
|
|
3310
|
+
}, Te({}, e)) : e;
|
|
3311
3311
|
}
|
|
3312
3312
|
function zt(e) {
|
|
3313
3313
|
return {
|
|
@@ -3369,12 +3369,12 @@ var xo = (
|
|
|
3369
3369
|
var u = o.formatToParts(l);
|
|
3370
3370
|
if (u.length === 1)
|
|
3371
3371
|
return u[0].value;
|
|
3372
|
-
var f = u.reduce(function(b,
|
|
3373
|
-
return !b.length ||
|
|
3372
|
+
var f = u.reduce(function(b, p) {
|
|
3373
|
+
return !b.length || p.type !== ue.literal || typeof b[b.length - 1] != "string" ? b.push(p.value) : b[b.length - 1] += p.value, b;
|
|
3374
3374
|
}, []);
|
|
3375
3375
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3376
3376
|
}, this.formatToParts = function(l) {
|
|
3377
|
-
return
|
|
3377
|
+
return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3378
3378
|
}, this.resolvedOptions = function() {
|
|
3379
3379
|
var l;
|
|
3380
3380
|
return {
|
|
@@ -3388,7 +3388,7 @@ var xo = (
|
|
|
3388
3388
|
var a = i || {};
|
|
3389
3389
|
a.formatters;
|
|
3390
3390
|
var s = Oi(a, ["formatters"]);
|
|
3391
|
-
this.ast = e.__parse(t,
|
|
3391
|
+
this.ast = e.__parse(t, Te(Te({}, s), { locale: this.resolvedLocale }));
|
|
3392
3392
|
} else
|
|
3393
3393
|
this.ast = t;
|
|
3394
3394
|
if (!Array.isArray(this.ast))
|
|
@@ -3488,12 +3488,12 @@ function wo(e, t) {
|
|
|
3488
3488
|
r = void 0;
|
|
3489
3489
|
return r;
|
|
3490
3490
|
}
|
|
3491
|
-
const
|
|
3491
|
+
const Ne = {}, So = (e, t, n) => n && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = n), n), _r = (e, t) => {
|
|
3492
3492
|
if (t == null)
|
|
3493
3493
|
return;
|
|
3494
|
-
if (t in
|
|
3495
|
-
return
|
|
3496
|
-
const n =
|
|
3494
|
+
if (t in Ne && e in Ne[t])
|
|
3495
|
+
return Ne[t][e];
|
|
3496
|
+
const n = Tt(t);
|
|
3497
3497
|
for (let r = 0; r < n.length; r++) {
|
|
3498
3498
|
const i = n[r], o = To(i, e);
|
|
3499
3499
|
if (o)
|
|
@@ -3501,7 +3501,7 @@ const Me = {}, So = (e, t, n) => n && (t in Me || (Me[t] = {}), e in Me[t] || (M
|
|
|
3501
3501
|
}
|
|
3502
3502
|
};
|
|
3503
3503
|
let bn;
|
|
3504
|
-
const
|
|
3504
|
+
const ct = wt({});
|
|
3505
3505
|
function Bo(e) {
|
|
3506
3506
|
return bn[e] || null;
|
|
3507
3507
|
}
|
|
@@ -3517,7 +3517,7 @@ function To(e, t) {
|
|
|
3517
3517
|
function Ao(e) {
|
|
3518
3518
|
if (e == null)
|
|
3519
3519
|
return;
|
|
3520
|
-
const t =
|
|
3520
|
+
const t = Tt(e);
|
|
3521
3521
|
for (let n = 0; n < t.length; n++) {
|
|
3522
3522
|
const r = t[n];
|
|
3523
3523
|
if (Er(r))
|
|
@@ -3525,28 +3525,28 @@ function Ao(e) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
3527
|
function xr(e, ...t) {
|
|
3528
|
-
delete
|
|
3528
|
+
delete Ne[e], ct.update((n) => (n[e] = Hi.all([n[e] || {}, ...t]), n));
|
|
3529
3529
|
}
|
|
3530
|
-
|
|
3531
|
-
[
|
|
3530
|
+
Qe(
|
|
3531
|
+
[ct],
|
|
3532
3532
|
([e]) => Object.keys(e)
|
|
3533
3533
|
);
|
|
3534
|
-
|
|
3535
|
-
const
|
|
3534
|
+
ct.subscribe((e) => bn = e);
|
|
3535
|
+
const gt = {};
|
|
3536
3536
|
function Co(e, t) {
|
|
3537
|
-
|
|
3537
|
+
gt[e].delete(t), gt[e].size === 0 && delete gt[e];
|
|
3538
3538
|
}
|
|
3539
3539
|
function wr(e) {
|
|
3540
|
-
return
|
|
3540
|
+
return gt[e];
|
|
3541
3541
|
}
|
|
3542
3542
|
function Ho(e) {
|
|
3543
|
-
return
|
|
3543
|
+
return Tt(e).map((t) => {
|
|
3544
3544
|
const n = wr(t);
|
|
3545
3545
|
return [t, n ? [...n] : []];
|
|
3546
3546
|
}).filter(([, t]) => t.length > 0);
|
|
3547
3547
|
}
|
|
3548
3548
|
function an(e) {
|
|
3549
|
-
return e == null ? !1 :
|
|
3549
|
+
return e == null ? !1 : Tt(e).some(
|
|
3550
3550
|
(t) => {
|
|
3551
3551
|
var n;
|
|
3552
3552
|
return (n = wr(t)) == null ? void 0 : n.size;
|
|
@@ -3558,20 +3558,20 @@ function Oo(e, t) {
|
|
|
3558
3558
|
t.map((r) => (Co(e, r), r().then((i) => i.default || i)))
|
|
3559
3559
|
).then((r) => xr(e, ...r));
|
|
3560
3560
|
}
|
|
3561
|
-
const
|
|
3561
|
+
const it = {};
|
|
3562
3562
|
function Sr(e) {
|
|
3563
3563
|
if (!an(e))
|
|
3564
|
-
return e in
|
|
3564
|
+
return e in it ? it[e] : Promise.resolve();
|
|
3565
3565
|
const t = Ho(e);
|
|
3566
|
-
return
|
|
3566
|
+
return it[e] = Promise.all(
|
|
3567
3567
|
t.map(
|
|
3568
3568
|
([n, r]) => Oo(n, r)
|
|
3569
3569
|
)
|
|
3570
3570
|
).then(() => {
|
|
3571
3571
|
if (an(e))
|
|
3572
3572
|
return Sr(e);
|
|
3573
|
-
delete
|
|
3574
|
-
}),
|
|
3573
|
+
delete it[e];
|
|
3574
|
+
}), it[e];
|
|
3575
3575
|
}
|
|
3576
3576
|
const Lo = {
|
|
3577
3577
|
number: {
|
|
@@ -3610,10 +3610,10 @@ const Lo = {
|
|
|
3610
3610
|
handleMissingMessage: void 0,
|
|
3611
3611
|
ignoreTag: !0
|
|
3612
3612
|
}, Mo = Ro;
|
|
3613
|
-
function
|
|
3613
|
+
function qe() {
|
|
3614
3614
|
return Mo;
|
|
3615
3615
|
}
|
|
3616
|
-
const Wt =
|
|
3616
|
+
const Wt = wt(!1);
|
|
3617
3617
|
var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Rn = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Uo = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fo = (e, t) => {
|
|
3618
3618
|
for (var n in t || (t = {}))
|
|
3619
3619
|
Do.call(t, n) && Mn(e, n, t[n]);
|
|
@@ -3623,112 +3623,112 @@ var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwn
|
|
|
3623
3623
|
return e;
|
|
3624
3624
|
}, Go = (e, t) => No(e, Io(t));
|
|
3625
3625
|
let sn;
|
|
3626
|
-
const
|
|
3626
|
+
const Et = wt(null);
|
|
3627
3627
|
function Pn(e) {
|
|
3628
3628
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function Tt(e, t = qe().fallbackLocale) {
|
|
3631
3631
|
const n = Pn(e);
|
|
3632
3632
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Pn(t)])] : n;
|
|
3633
3633
|
}
|
|
3634
3634
|
function Ue() {
|
|
3635
3635
|
return sn != null ? sn : void 0;
|
|
3636
3636
|
}
|
|
3637
|
-
|
|
3637
|
+
Et.subscribe((e) => {
|
|
3638
3638
|
sn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3639
3639
|
});
|
|
3640
3640
|
const jo = (e) => {
|
|
3641
3641
|
if (e && Ao(e) && an(e)) {
|
|
3642
|
-
const { loadingDelay: t } =
|
|
3642
|
+
const { loadingDelay: t } = qe();
|
|
3643
3643
|
let n;
|
|
3644
3644
|
return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
|
|
3645
3645
|
() => Wt.set(!0),
|
|
3646
3646
|
t
|
|
3647
3647
|
) : Wt.set(!0), Sr(e).then(() => {
|
|
3648
|
-
|
|
3648
|
+
Et.set(e);
|
|
3649
3649
|
}).finally(() => {
|
|
3650
3650
|
clearTimeout(n), Wt.set(!1);
|
|
3651
3651
|
});
|
|
3652
3652
|
}
|
|
3653
|
-
return
|
|
3654
|
-
},
|
|
3653
|
+
return Et.set(e);
|
|
3654
|
+
}, Je = Go(Fo({}, Et), {
|
|
3655
3655
|
set: jo
|
|
3656
|
-
}),
|
|
3656
|
+
}), At = (e) => {
|
|
3657
3657
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3658
3658
|
return (r) => {
|
|
3659
3659
|
const i = JSON.stringify(r);
|
|
3660
3660
|
return i in t ? t[i] : t[i] = e(r);
|
|
3661
3661
|
};
|
|
3662
3662
|
};
|
|
3663
|
-
var ko = Object.defineProperty,
|
|
3663
|
+
var ko = Object.defineProperty, xt = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Nn = (e, t, n) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gn = (e, t) => {
|
|
3664
3664
|
for (var n in t || (t = {}))
|
|
3665
3665
|
Br.call(t, n) && Nn(e, n, t[n]);
|
|
3666
|
-
if (
|
|
3667
|
-
for (var n of
|
|
3666
|
+
if (xt)
|
|
3667
|
+
for (var n of xt(t))
|
|
3668
3668
|
Tr.call(t, n) && Nn(e, n, t[n]);
|
|
3669
3669
|
return e;
|
|
3670
|
-
},
|
|
3670
|
+
}, Ke = (e, t) => {
|
|
3671
3671
|
var n = {};
|
|
3672
3672
|
for (var r in e)
|
|
3673
3673
|
Br.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3674
|
-
if (e != null &&
|
|
3675
|
-
for (var r of
|
|
3674
|
+
if (e != null && xt)
|
|
3675
|
+
for (var r of xt(e))
|
|
3676
3676
|
t.indexOf(r) < 0 && Tr.call(e, r) && (n[r] = e[r]);
|
|
3677
3677
|
return n;
|
|
3678
3678
|
};
|
|
3679
|
-
const
|
|
3680
|
-
const { formats: n } =
|
|
3679
|
+
const lt = (e, t) => {
|
|
3680
|
+
const { formats: n } = qe();
|
|
3681
3681
|
if (e in n && t in n[e])
|
|
3682
3682
|
return n[e][t];
|
|
3683
3683
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3684
|
-
}, $o =
|
|
3684
|
+
}, $o = At(
|
|
3685
3685
|
(e) => {
|
|
3686
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3686
|
+
var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
|
|
3687
3687
|
if (n == null)
|
|
3688
3688
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3689
|
-
return r && (i =
|
|
3689
|
+
return r && (i = lt("number", r)), new Intl.NumberFormat(n, i);
|
|
3690
3690
|
}
|
|
3691
|
-
), Vo =
|
|
3691
|
+
), Vo = At(
|
|
3692
3692
|
(e) => {
|
|
3693
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3693
|
+
var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
|
|
3694
3694
|
if (n == null)
|
|
3695
3695
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3696
|
-
return r ? i =
|
|
3696
|
+
return r ? i = lt("date", r) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3697
3697
|
}
|
|
3698
|
-
), Xo =
|
|
3698
|
+
), Xo = At(
|
|
3699
3699
|
(e) => {
|
|
3700
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3700
|
+
var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
|
|
3701
3701
|
if (n == null)
|
|
3702
3702
|
throw new Error(
|
|
3703
3703
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3704
3704
|
);
|
|
3705
|
-
return r ? i =
|
|
3705
|
+
return r ? i = lt("time", r) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3706
3706
|
}
|
|
3707
3707
|
), zo = (e = {}) => {
|
|
3708
3708
|
var t = e, {
|
|
3709
3709
|
locale: n = Ue()
|
|
3710
|
-
} = t, r =
|
|
3710
|
+
} = t, r = Ke(t, [
|
|
3711
3711
|
"locale"
|
|
3712
3712
|
]);
|
|
3713
3713
|
return $o(gn({ locale: n }, r));
|
|
3714
3714
|
}, Wo = (e = {}) => {
|
|
3715
3715
|
var t = e, {
|
|
3716
3716
|
locale: n = Ue()
|
|
3717
|
-
} = t, r =
|
|
3717
|
+
} = t, r = Ke(t, [
|
|
3718
3718
|
"locale"
|
|
3719
3719
|
]);
|
|
3720
3720
|
return Vo(gn({ locale: n }, r));
|
|
3721
3721
|
}, Zo = (e = {}) => {
|
|
3722
3722
|
var t = e, {
|
|
3723
3723
|
locale: n = Ue()
|
|
3724
|
-
} = t, r =
|
|
3724
|
+
} = t, r = Ke(t, [
|
|
3725
3725
|
"locale"
|
|
3726
3726
|
]);
|
|
3727
3727
|
return Xo(gn({ locale: n }, r));
|
|
3728
|
-
}, qo =
|
|
3728
|
+
}, qo = At(
|
|
3729
3729
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3730
|
-
(e, t = Ue()) => new xo(e, t,
|
|
3731
|
-
ignoreTag:
|
|
3730
|
+
(e, t = Ue()) => new xo(e, t, qe().formats, {
|
|
3731
|
+
ignoreTag: qe().ignoreTag
|
|
3732
3732
|
})
|
|
3733
3733
|
), Yo = (e, t = {}) => {
|
|
3734
3734
|
var n, r, i, o;
|
|
@@ -3745,7 +3745,7 @@ const ut = (e, t) => {
|
|
|
3745
3745
|
);
|
|
3746
3746
|
let f = _r(e, l);
|
|
3747
3747
|
if (!f)
|
|
3748
|
-
f = (o = (i = (r = (n =
|
|
3748
|
+
f = (o = (i = (r = (n = qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3749
3749
|
else if (typeof f != "string")
|
|
3750
3750
|
return console.warn(
|
|
3751
3751
|
`[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.`
|
|
@@ -3755,23 +3755,23 @@ const ut = (e, t) => {
|
|
|
3755
3755
|
let b = f;
|
|
3756
3756
|
try {
|
|
3757
3757
|
b = qo(f, l).format(s);
|
|
3758
|
-
} catch (
|
|
3759
|
-
|
|
3758
|
+
} catch (p) {
|
|
3759
|
+
p instanceof Error && console.warn(
|
|
3760
3760
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3761
|
-
|
|
3761
|
+
p.message
|
|
3762
3762
|
);
|
|
3763
3763
|
}
|
|
3764
3764
|
return b;
|
|
3765
|
-
}, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Ue()) => _r(e, t), ta =
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3765
|
+
}, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Ue()) => _r(e, t), ta = Qe([Je, ct], () => Yo);
|
|
3766
|
+
Qe([Je], () => Qo);
|
|
3767
|
+
Qe([Je], () => Jo);
|
|
3768
|
+
Qe([Je], () => Ko);
|
|
3769
|
+
Qe([Je, ct], () => ea);
|
|
3770
3770
|
function In(e, t) {
|
|
3771
3771
|
xr(e, t);
|
|
3772
3772
|
}
|
|
3773
3773
|
function na(e) {
|
|
3774
|
-
|
|
3774
|
+
Je.set(e);
|
|
3775
3775
|
}
|
|
3776
3776
|
const Dn = {
|
|
3777
3777
|
en: {
|
|
@@ -3999,7 +3999,7 @@ var un = { exports: {} };
|
|
|
3999
3999
|
*/
|
|
4000
4000
|
(function(e, t) {
|
|
4001
4001
|
(function(n) {
|
|
4002
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch,
|
|
4002
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, B = n.AbortController;
|
|
4003
4003
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
|
|
4004
4004
|
u.readyState = "complete";
|
|
4005
4005
|
}, !1)), o == null && s != null && (o = function() {
|
|
@@ -4010,24 +4010,24 @@ var un = { exports: {} };
|
|
|
4010
4010
|
return g.prototype = c, new g();
|
|
4011
4011
|
}), Date.now || (Date.now = function() {
|
|
4012
4012
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4013
|
-
}),
|
|
4013
|
+
}), B == null) {
|
|
4014
4014
|
var Q = b;
|
|
4015
4015
|
b = function(c, g) {
|
|
4016
|
-
var
|
|
4016
|
+
var w = g.signal;
|
|
4017
4017
|
return Q(c, { headers: g.headers, credentials: g.credentials, cache: g.cache }).then(function(m) {
|
|
4018
|
-
var
|
|
4019
|
-
return
|
|
4018
|
+
var A = m.body.getReader();
|
|
4019
|
+
return w._reader = A, w._aborted && w._reader.cancel(), {
|
|
4020
4020
|
status: m.status,
|
|
4021
4021
|
statusText: m.statusText,
|
|
4022
4022
|
headers: m.headers,
|
|
4023
4023
|
body: {
|
|
4024
4024
|
getReader: function() {
|
|
4025
|
-
return
|
|
4025
|
+
return A;
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
4028
|
};
|
|
4029
4029
|
});
|
|
4030
|
-
},
|
|
4030
|
+
}, B = function() {
|
|
4031
4031
|
this.signal = {
|
|
4032
4032
|
_reader: null,
|
|
4033
4033
|
_aborted: !1
|
|
@@ -4040,16 +4040,16 @@ var un = { exports: {} };
|
|
|
4040
4040
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4041
4041
|
}
|
|
4042
4042
|
re.prototype.decode = function(c) {
|
|
4043
|
-
function g(D, h,
|
|
4044
|
-
if (
|
|
4043
|
+
function g(D, h, d) {
|
|
4044
|
+
if (d === 1)
|
|
4045
4045
|
return D >= 128 >> h && D << h <= 2047;
|
|
4046
|
-
if (
|
|
4046
|
+
if (d === 2)
|
|
4047
4047
|
return D >= 2048 >> h && D << h <= 55295 || D >= 57344 >> h && D << h <= 65535;
|
|
4048
|
-
if (
|
|
4048
|
+
if (d === 3)
|
|
4049
4049
|
return D >= 65536 >> h && D << h <= 1114111;
|
|
4050
4050
|
throw new Error();
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function w(D, h) {
|
|
4053
4053
|
if (D === 6 * 1)
|
|
4054
4054
|
return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
|
|
4055
4055
|
if (D === 6 * 2)
|
|
@@ -4058,21 +4058,21 @@ var un = { exports: {} };
|
|
|
4058
4058
|
return 3;
|
|
4059
4059
|
throw new Error();
|
|
4060
4060
|
}
|
|
4061
|
-
for (var m = 65533,
|
|
4061
|
+
for (var m = 65533, A = "", S = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
|
|
4062
4062
|
var O = c[G];
|
|
4063
|
-
S !== 0 && (O < 128 || O > 191 || !g(C << 6 | O & 63, S - 6,
|
|
4063
|
+
S !== 0 && (O < 128 || O > 191 || !g(C << 6 | O & 63, S - 6, w(S, C))) && (S = 0, C = m, A += String.fromCharCode(C)), S === 0 ? (O >= 0 && O <= 127 ? (S = 0, C = O) : O >= 192 && O <= 223 ? (S = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (S = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (S = 6 * 3, C = O & 7) : (S = 0, C = m), S !== 0 && !g(C, S, w(S, C)) && (S = 0, C = m)) : (S -= 6, C = C << 6 | O & 63), S === 0 && (C <= 65535 ? A += String.fromCharCode(C) : (A += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
|
|
4064
4064
|
}
|
|
4065
|
-
return this.bitsNeeded = S, this.codePoint = C,
|
|
4065
|
+
return this.bitsNeeded = S, this.codePoint = C, A;
|
|
4066
4066
|
};
|
|
4067
4067
|
var oe = function() {
|
|
4068
4068
|
try {
|
|
4069
|
-
return new
|
|
4069
|
+
return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
|
|
4070
4070
|
} catch (c) {
|
|
4071
4071
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
|
|
4072
4072
|
}
|
|
4073
4073
|
return !1;
|
|
4074
4074
|
};
|
|
4075
|
-
(
|
|
4075
|
+
(y == null || E == null || !oe()) && (y = re);
|
|
4076
4076
|
var I = function() {
|
|
4077
4077
|
};
|
|
4078
4078
|
function k(c) {
|
|
@@ -4080,62 +4080,62 @@ var un = { exports: {} };
|
|
|
4080
4080
|
}
|
|
4081
4081
|
k.prototype.open = function(c, g) {
|
|
4082
4082
|
this._abort(!0);
|
|
4083
|
-
var
|
|
4084
|
-
this._abort = function(
|
|
4085
|
-
|
|
4083
|
+
var w = this, m = this._xhr, A = 1, S = 0;
|
|
4084
|
+
this._abort = function(d) {
|
|
4085
|
+
w._sendTimeout !== 0 && (i(w._sendTimeout), w._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), S !== 0 && (i(S), S = 0), d || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), A = 0;
|
|
4086
4086
|
};
|
|
4087
4087
|
var C = function() {
|
|
4088
|
-
if (
|
|
4089
|
-
var
|
|
4088
|
+
if (A === 1) {
|
|
4089
|
+
var d = 0, v = "", T = void 0;
|
|
4090
4090
|
if ("contentType" in m)
|
|
4091
|
-
|
|
4091
|
+
d = 200, v = "OK", T = m.contentType;
|
|
4092
4092
|
else
|
|
4093
4093
|
try {
|
|
4094
|
-
|
|
4094
|
+
d = m.status, v = m.statusText, T = m.getResponseHeader("Content-Type");
|
|
4095
4095
|
} catch (U) {
|
|
4096
|
-
|
|
4096
|
+
d = 0, v = "", T = void 0;
|
|
4097
4097
|
}
|
|
4098
|
-
|
|
4098
|
+
d !== 0 && (A = 2, w.readyState = 2, w.status = d, w.statusText = v, w._contentType = T, w.onreadystatechange());
|
|
4099
4099
|
}
|
|
4100
4100
|
}, G = function() {
|
|
4101
|
-
if (C(),
|
|
4102
|
-
|
|
4103
|
-
var
|
|
4101
|
+
if (C(), A === 2 || A === 3) {
|
|
4102
|
+
A = 3;
|
|
4103
|
+
var d = "";
|
|
4104
4104
|
try {
|
|
4105
|
-
|
|
4106
|
-
} catch (
|
|
4105
|
+
d = m.responseText;
|
|
4106
|
+
} catch (v) {
|
|
4107
4107
|
}
|
|
4108
|
-
|
|
4108
|
+
w.readyState = 3, w.responseText = d, w.onprogress();
|
|
4109
4109
|
}
|
|
4110
|
-
}, O = function(
|
|
4111
|
-
if ((
|
|
4110
|
+
}, O = function(d, v) {
|
|
4111
|
+
if ((v == null || v.preventDefault == null) && (v = {
|
|
4112
4112
|
preventDefault: I
|
|
4113
|
-
}), G(),
|
|
4114
|
-
if (
|
|
4115
|
-
|
|
4116
|
-
else if (
|
|
4117
|
-
|
|
4118
|
-
else if (
|
|
4119
|
-
|
|
4113
|
+
}), G(), A === 1 || A === 2 || A === 3) {
|
|
4114
|
+
if (A = 4, S !== 0 && (i(S), S = 0), w.readyState = 4, d === "load")
|
|
4115
|
+
w.onload(v);
|
|
4116
|
+
else if (d === "error")
|
|
4117
|
+
w.onerror(v);
|
|
4118
|
+
else if (d === "abort")
|
|
4119
|
+
w.onabort(v);
|
|
4120
4120
|
else
|
|
4121
4121
|
throw new TypeError();
|
|
4122
|
-
|
|
4122
|
+
w.onreadystatechange();
|
|
4123
4123
|
}
|
|
4124
|
-
}, D = function(
|
|
4125
|
-
m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && O(m.responseText === "" ? "error" : "load",
|
|
4124
|
+
}, D = function(d) {
|
|
4125
|
+
m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && O(m.responseText === "" ? "error" : "load", d) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
|
|
4126
4126
|
}, h = function() {
|
|
4127
4127
|
S = r(function() {
|
|
4128
4128
|
h();
|
|
4129
4129
|
}, 500), m.readyState === 3 && G();
|
|
4130
4130
|
};
|
|
4131
|
-
"onload" in m && (m.onload = function(
|
|
4132
|
-
O("load",
|
|
4133
|
-
}), "onerror" in m && (m.onerror = function(
|
|
4134
|
-
O("error",
|
|
4135
|
-
}), "onabort" in m && (m.onabort = function(
|
|
4136
|
-
O("abort",
|
|
4137
|
-
}), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(
|
|
4138
|
-
D(
|
|
4131
|
+
"onload" in m && (m.onload = function(d) {
|
|
4132
|
+
O("load", d);
|
|
4133
|
+
}), "onerror" in m && (m.onerror = function(d) {
|
|
4134
|
+
O("error", d);
|
|
4135
|
+
}), "onabort" in m && (m.onabort = function(d) {
|
|
4136
|
+
O("abort", d);
|
|
4137
|
+
}), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(d) {
|
|
4138
|
+
D(d);
|
|
4139
4139
|
}), ("contentType" in m || !("ontimeout" in o.prototype)) && (g += (g.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(c, g, !0), "readyState" in m && (S = r(function() {
|
|
4140
4140
|
h();
|
|
4141
4141
|
}, 0));
|
|
@@ -4144,8 +4144,8 @@ var un = { exports: {} };
|
|
|
4144
4144
|
}, k.prototype.getResponseHeader = function(c) {
|
|
4145
4145
|
return this._contentType;
|
|
4146
4146
|
}, k.prototype.setRequestHeader = function(c, g) {
|
|
4147
|
-
var
|
|
4148
|
-
"setRequestHeader" in
|
|
4147
|
+
var w = this._xhr;
|
|
4148
|
+
"setRequestHeader" in w && w.setRequestHeader(c, g);
|
|
4149
4149
|
}, k.prototype.getAllResponseHeaders = function() {
|
|
4150
4150
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4151
4151
|
}, k.prototype.send = function() {
|
|
@@ -4160,8 +4160,8 @@ var un = { exports: {} };
|
|
|
4160
4160
|
"withCredentials" in g && (g.withCredentials = this.withCredentials);
|
|
4161
4161
|
try {
|
|
4162
4162
|
g.send(void 0);
|
|
4163
|
-
} catch (
|
|
4164
|
-
throw
|
|
4163
|
+
} catch (w) {
|
|
4164
|
+
throw w;
|
|
4165
4165
|
}
|
|
4166
4166
|
};
|
|
4167
4167
|
function Z(c) {
|
|
@@ -4170,9 +4170,9 @@ var un = { exports: {} };
|
|
|
4170
4170
|
});
|
|
4171
4171
|
}
|
|
4172
4172
|
function ie(c) {
|
|
4173
|
-
for (var g = /* @__PURE__ */ Object.create(null),
|
|
4174
|
-
`), m = 0; m <
|
|
4175
|
-
var
|
|
4173
|
+
for (var g = /* @__PURE__ */ Object.create(null), w = c.split(`\r
|
|
4174
|
+
`), m = 0; m < w.length; m += 1) {
|
|
4175
|
+
var A = w[m], S = A.split(": "), C = S.shift(), G = S.join(": ");
|
|
4176
4176
|
g[Z(C)] = G;
|
|
4177
4177
|
}
|
|
4178
4178
|
this._map = g;
|
|
@@ -4182,12 +4182,12 @@ var un = { exports: {} };
|
|
|
4182
4182
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4183
4183
|
function K() {
|
|
4184
4184
|
}
|
|
4185
|
-
K.prototype.open = function(c, g,
|
|
4186
|
-
c.open("GET",
|
|
4185
|
+
K.prototype.open = function(c, g, w, m, A, S, C) {
|
|
4186
|
+
c.open("GET", A);
|
|
4187
4187
|
var G = 0;
|
|
4188
4188
|
c.onprogress = function() {
|
|
4189
4189
|
var D = c.responseText, h = D.slice(G);
|
|
4190
|
-
G += h.length,
|
|
4190
|
+
G += h.length, w(h);
|
|
4191
4191
|
}, c.onerror = function(D) {
|
|
4192
4192
|
D.preventDefault(), m(new Error("NetworkError"));
|
|
4193
4193
|
}, c.onload = function() {
|
|
@@ -4196,8 +4196,8 @@ var un = { exports: {} };
|
|
|
4196
4196
|
m(null);
|
|
4197
4197
|
}, c.onreadystatechange = function() {
|
|
4198
4198
|
if (c.readyState === o.HEADERS_RECEIVED) {
|
|
4199
|
-
var D = c.status, h = c.statusText,
|
|
4200
|
-
g(D, h,
|
|
4199
|
+
var D = c.status, h = c.statusText, d = c.getResponseHeader("Content-Type"), v = c.getAllResponseHeaders();
|
|
4200
|
+
g(D, h, d, new ie(v));
|
|
4201
4201
|
}
|
|
4202
4202
|
}, c.withCredentials = S;
|
|
4203
4203
|
for (var O in C)
|
|
@@ -4212,34 +4212,34 @@ var un = { exports: {} };
|
|
|
4212
4212
|
};
|
|
4213
4213
|
function X() {
|
|
4214
4214
|
}
|
|
4215
|
-
X.prototype.open = function(c, g,
|
|
4216
|
-
var G = null, O = new
|
|
4217
|
-
return b(
|
|
4215
|
+
X.prototype.open = function(c, g, w, m, A, S, C) {
|
|
4216
|
+
var G = null, O = new B(), D = O.signal, h = new y();
|
|
4217
|
+
return b(A, {
|
|
4218
4218
|
headers: C,
|
|
4219
4219
|
credentials: S ? "include" : "same-origin",
|
|
4220
4220
|
signal: D,
|
|
4221
4221
|
cache: "no-store"
|
|
4222
|
-
}).then(function(
|
|
4223
|
-
return G =
|
|
4222
|
+
}).then(function(d) {
|
|
4223
|
+
return G = d.body.getReader(), g(d.status, d.statusText, d.headers.get("Content-Type"), new te(d.headers)), new f(function(v, T) {
|
|
4224
4224
|
var U = function() {
|
|
4225
4225
|
G.read().then(function(H) {
|
|
4226
4226
|
if (H.done)
|
|
4227
|
-
|
|
4227
|
+
v(void 0);
|
|
4228
4228
|
else {
|
|
4229
|
-
var
|
|
4230
|
-
x
|
|
4229
|
+
var x = h.decode(H.value, { stream: !0 });
|
|
4230
|
+
w(x), U();
|
|
4231
4231
|
}
|
|
4232
4232
|
}).catch(function(H) {
|
|
4233
|
-
|
|
4233
|
+
T(H);
|
|
4234
4234
|
});
|
|
4235
4235
|
};
|
|
4236
4236
|
U();
|
|
4237
4237
|
});
|
|
4238
|
-
}).catch(function(
|
|
4239
|
-
if (
|
|
4240
|
-
return
|
|
4241
|
-
}).then(function(
|
|
4242
|
-
m(
|
|
4238
|
+
}).catch(function(d) {
|
|
4239
|
+
if (d.name !== "AbortError")
|
|
4240
|
+
return d;
|
|
4241
|
+
}).then(function(d) {
|
|
4242
|
+
m(d);
|
|
4243
4243
|
}), {
|
|
4244
4244
|
abort: function() {
|
|
4245
4245
|
G != null && G.cancel(), O.abort();
|
|
@@ -4258,28 +4258,28 @@ var un = { exports: {} };
|
|
|
4258
4258
|
c.target = this;
|
|
4259
4259
|
var g = this._listeners[c.type];
|
|
4260
4260
|
if (g != null)
|
|
4261
|
-
for (var
|
|
4262
|
-
var
|
|
4261
|
+
for (var w = g.length, m = 0; m < w; m += 1) {
|
|
4262
|
+
var A = g[m];
|
|
4263
4263
|
try {
|
|
4264
|
-
typeof
|
|
4264
|
+
typeof A.handleEvent == "function" ? A.handleEvent(c) : A.call(this, c);
|
|
4265
4265
|
} catch (S) {
|
|
4266
4266
|
N(S);
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
}, F.prototype.addEventListener = function(c, g) {
|
|
4270
4270
|
c = String(c);
|
|
4271
|
-
var
|
|
4272
|
-
m == null && (m = [],
|
|
4273
|
-
for (var
|
|
4274
|
-
m[S] === g && (
|
|
4275
|
-
|
|
4271
|
+
var w = this._listeners, m = w[c];
|
|
4272
|
+
m == null && (m = [], w[c] = m);
|
|
4273
|
+
for (var A = !1, S = 0; S < m.length; S += 1)
|
|
4274
|
+
m[S] === g && (A = !0);
|
|
4275
|
+
A || m.push(g);
|
|
4276
4276
|
}, F.prototype.removeEventListener = function(c, g) {
|
|
4277
4277
|
c = String(c);
|
|
4278
|
-
var
|
|
4278
|
+
var w = this._listeners, m = w[c];
|
|
4279
4279
|
if (m != null) {
|
|
4280
|
-
for (var
|
|
4281
|
-
m[S] !== g &&
|
|
4282
|
-
|
|
4280
|
+
for (var A = [], S = 0; S < m.length; S += 1)
|
|
4281
|
+
m[S] !== g && A.push(m[S]);
|
|
4282
|
+
A.length === 0 ? delete w[c] : w[c] = A;
|
|
4283
4283
|
}
|
|
4284
4284
|
};
|
|
4285
4285
|
function q(c) {
|
|
@@ -4293,146 +4293,146 @@ var un = { exports: {} };
|
|
|
4293
4293
|
q.call(this, c), this.status = g.status, this.statusText = g.statusText, this.headers = g.headers;
|
|
4294
4294
|
}
|
|
4295
4295
|
fe.prototype = Object.create(q.prototype);
|
|
4296
|
-
function
|
|
4296
|
+
function He(c, g) {
|
|
4297
4297
|
q.call(this, c), this.error = g.error;
|
|
4298
4298
|
}
|
|
4299
|
-
|
|
4300
|
-
var
|
|
4301
|
-
var
|
|
4302
|
-
return
|
|
4303
|
-
},
|
|
4304
|
-
return Math.min(Math.max(c,
|
|
4305
|
-
},
|
|
4299
|
+
He.prototype = Object.create(q.prototype);
|
|
4300
|
+
var me = -1, le = 0, Oe = 1, _ = 2, Le = -1, Ee = 0, xe = 1, Fe = 2, Ht = 3, Ot = /^text\/event\-stream(;.*)?$/i, Lt = 1e3, et = 18e6, Ge = function(c, g) {
|
|
4301
|
+
var w = c == null ? g : parseInt(c, 10);
|
|
4302
|
+
return w !== w && (w = g), tt(w);
|
|
4303
|
+
}, tt = function(c) {
|
|
4304
|
+
return Math.min(Math.max(c, Lt), et);
|
|
4305
|
+
}, we = function(c, g, w) {
|
|
4306
4306
|
try {
|
|
4307
|
-
typeof g == "function" && g.call(c,
|
|
4307
|
+
typeof g == "function" && g.call(c, w);
|
|
4308
4308
|
} catch (m) {
|
|
4309
4309
|
N(m);
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
4312
|
-
function
|
|
4312
|
+
function ce(c, g) {
|
|
4313
4313
|
F.call(this), g = g || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Mt(this, c, g);
|
|
4314
4314
|
}
|
|
4315
|
-
function
|
|
4315
|
+
function Rt() {
|
|
4316
4316
|
return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
|
|
4317
4317
|
}
|
|
4318
|
-
var
|
|
4319
|
-
function Mt(c, g,
|
|
4318
|
+
var nt = b != null && p != null && "body" in p.prototype;
|
|
4319
|
+
function Mt(c, g, w) {
|
|
4320
4320
|
g = String(g);
|
|
4321
|
-
var m = !!
|
|
4322
|
-
if (j ===
|
|
4323
|
-
if (ee === 200 &&
|
|
4324
|
-
j =
|
|
4325
|
-
var
|
|
4321
|
+
var m = !!w.withCredentials, A = w.lastEventIdQueryParameterName || "lastEventId", S = tt(1e3), C = Ge(w.heartbeatTimeout, 45e3), G = "", O = S, D = !1, h = 0, d = w.headers || {}, v = w.Transport, T = nt && v == null ? void 0 : new k(v != null ? new v() : Rt()), U = v != null && typeof v != "string" ? new v() : T == null ? new X() : new K(), H = void 0, x = 0, j = me, he = "", Se = "", be = "", Be = "", ae = Ee, Pt = 0, De = 0, Mr = function(ee, J, de, pe) {
|
|
4322
|
+
if (j === le)
|
|
4323
|
+
if (ee === 200 && de != null && Ot.test(de)) {
|
|
4324
|
+
j = Oe, D = Date.now(), O = S, c.readyState = Oe;
|
|
4325
|
+
var se = new fe("open", {
|
|
4326
4326
|
status: ee,
|
|
4327
4327
|
statusText: J,
|
|
4328
|
-
headers:
|
|
4328
|
+
headers: pe
|
|
4329
4329
|
});
|
|
4330
|
-
c.dispatchEvent(
|
|
4330
|
+
c.dispatchEvent(se), we(c, c.onopen, se);
|
|
4331
4331
|
} else {
|
|
4332
4332
|
var ne = "";
|
|
4333
|
-
ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), ne = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : ne = "EventSource's response has a Content-Type specifying an unsupported type: " + (
|
|
4334
|
-
var
|
|
4333
|
+
ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), ne = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : ne = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", Nt();
|
|
4334
|
+
var se = new fe("error", {
|
|
4335
4335
|
status: ee,
|
|
4336
4336
|
statusText: J,
|
|
4337
|
-
headers:
|
|
4337
|
+
headers: pe
|
|
4338
4338
|
});
|
|
4339
|
-
c.dispatchEvent(
|
|
4339
|
+
c.dispatchEvent(se), we(c, c.onerror, se), console.error(ne);
|
|
4340
4340
|
}
|
|
4341
4341
|
}, Pr = function(ee) {
|
|
4342
|
-
if (j ===
|
|
4343
|
-
for (var J = -1,
|
|
4344
|
-
var
|
|
4345
|
-
(
|
|
4342
|
+
if (j === Oe) {
|
|
4343
|
+
for (var J = -1, de = 0; de < ee.length; de += 1) {
|
|
4344
|
+
var pe = ee.charCodeAt(de);
|
|
4345
|
+
(pe === 10 || pe === 13) && (J = de);
|
|
4346
4346
|
}
|
|
4347
|
-
var
|
|
4348
|
-
|
|
4349
|
-
for (var ne = 0; ne <
|
|
4350
|
-
var
|
|
4351
|
-
if (
|
|
4352
|
-
|
|
4353
|
-
else if (
|
|
4354
|
-
if (
|
|
4355
|
-
|
|
4356
|
-
var
|
|
4357
|
-
|
|
4358
|
-
`, he +=
|
|
4359
|
-
|
|
4347
|
+
var se = (J !== -1 ? Be : "") + ee.slice(0, J + 1);
|
|
4348
|
+
Be = (J === -1 ? Be : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
|
|
4349
|
+
for (var ne = 0; ne < se.length; ne += 1) {
|
|
4350
|
+
var pe = se.charCodeAt(ne);
|
|
4351
|
+
if (ae === Le && pe === 10)
|
|
4352
|
+
ae = Ee;
|
|
4353
|
+
else if (ae === Le && (ae = Ee), pe === 13 || pe === 10) {
|
|
4354
|
+
if (ae !== Ee) {
|
|
4355
|
+
ae === xe && (De = ne + 1);
|
|
4356
|
+
var Re = se.slice(Pt, De - 1), Me = se.slice(De + (De < ne && se.charCodeAt(De) === 32 ? 1 : 0), ne);
|
|
4357
|
+
Re === "data" ? (he += `
|
|
4358
|
+
`, he += Me) : Re === "id" ? Se = Me : Re === "event" ? be = Me : Re === "retry" ? (S = Ge(Me, S), O = S) : Re === "heartbeatTimeout" && (C = Ge(Me, C), x !== 0 && (i(x), x = r(function() {
|
|
4359
|
+
rt();
|
|
4360
4360
|
}, C)));
|
|
4361
4361
|
}
|
|
4362
|
-
if (
|
|
4362
|
+
if (ae === Ee) {
|
|
4363
4363
|
if (he !== "") {
|
|
4364
|
-
G =
|
|
4365
|
-
var
|
|
4364
|
+
G = Se, be === "" && (be = "message");
|
|
4365
|
+
var je = new z(be, {
|
|
4366
4366
|
data: he.slice(1),
|
|
4367
|
-
lastEventId:
|
|
4367
|
+
lastEventId: Se
|
|
4368
4368
|
});
|
|
4369
|
-
if (c.dispatchEvent(
|
|
4369
|
+
if (c.dispatchEvent(je), be === "open" ? we(c, c.onopen, je) : be === "message" ? we(c, c.onmessage, je) : be === "error" && we(c, c.onerror, je), j === _)
|
|
4370
4370
|
return;
|
|
4371
4371
|
}
|
|
4372
|
-
he = "",
|
|
4372
|
+
he = "", be = "";
|
|
4373
4373
|
}
|
|
4374
|
-
|
|
4374
|
+
ae = pe === 13 ? Le : Ee;
|
|
4375
4375
|
} else
|
|
4376
|
-
|
|
4376
|
+
ae === Ee && (Pt = ne, ae = xe), ae === xe ? pe === 58 && (De = ne + 1, ae = Fe) : ae === Fe && (ae = Ht);
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
4379
|
}, yn = function(ee) {
|
|
4380
|
-
if (j ===
|
|
4381
|
-
j =
|
|
4382
|
-
|
|
4383
|
-
}, O), O =
|
|
4384
|
-
var J = new
|
|
4385
|
-
c.dispatchEvent(J),
|
|
4380
|
+
if (j === Oe || j === le) {
|
|
4381
|
+
j = me, x !== 0 && (i(x), x = 0), x = r(function() {
|
|
4382
|
+
rt();
|
|
4383
|
+
}, O), O = tt(Math.min(S * 16, O * 2)), c.readyState = le;
|
|
4384
|
+
var J = new He("error", { error: ee });
|
|
4385
|
+
c.dispatchEvent(J), we(c, c.onerror, J), ee != null && console.error(ee);
|
|
4386
4386
|
}
|
|
4387
4387
|
}, Nt = function() {
|
|
4388
|
-
j =
|
|
4389
|
-
},
|
|
4390
|
-
if (
|
|
4388
|
+
j = _, H != null && (H.abort(), H = void 0), x !== 0 && (i(x), x = 0), c.readyState = _;
|
|
4389
|
+
}, rt = function() {
|
|
4390
|
+
if (x = 0, j !== me) {
|
|
4391
4391
|
if (!D && H != null)
|
|
4392
|
-
yn(new Error("No activity within " + C + " milliseconds. " + (j ===
|
|
4392
|
+
yn(new Error("No activity within " + C + " milliseconds. " + (j === le ? "No response received." : h + " chars received.") + " Reconnecting.")), H != null && (H.abort(), H = void 0);
|
|
4393
4393
|
else {
|
|
4394
4394
|
var ee = Math.max((D || Date.now()) + C - Date.now(), 1);
|
|
4395
|
-
D = !1,
|
|
4396
|
-
|
|
4395
|
+
D = !1, x = r(function() {
|
|
4396
|
+
rt();
|
|
4397
4397
|
}, ee);
|
|
4398
4398
|
}
|
|
4399
4399
|
return;
|
|
4400
4400
|
}
|
|
4401
|
-
D = !1, h = 0,
|
|
4402
|
-
|
|
4403
|
-
}, C), j =
|
|
4401
|
+
D = !1, h = 0, x = r(function() {
|
|
4402
|
+
rt();
|
|
4403
|
+
}, C), j = le, he = "", be = "", Se = G, Be = "", Pt = 0, De = 0, ae = Ee;
|
|
4404
4404
|
var J = g;
|
|
4405
4405
|
if (g.slice(0, 5) !== "data:" && g.slice(0, 5) !== "blob:" && G !== "") {
|
|
4406
|
-
var
|
|
4407
|
-
J =
|
|
4408
|
-
return
|
|
4409
|
-
}), J += (g.indexOf("?") === -1 ? "?" : "&") +
|
|
4406
|
+
var de = g.indexOf("?");
|
|
4407
|
+
J = de === -1 ? g : g.slice(0, de + 1) + g.slice(de + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Me, je) {
|
|
4408
|
+
return je === A ? "" : Me;
|
|
4409
|
+
}), J += (g.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(G);
|
|
4410
4410
|
}
|
|
4411
|
-
var
|
|
4412
|
-
|
|
4411
|
+
var pe = c.withCredentials, se = {};
|
|
4412
|
+
se.Accept = "text/event-stream";
|
|
4413
4413
|
var ne = c.headers;
|
|
4414
4414
|
if (ne != null)
|
|
4415
|
-
for (var
|
|
4416
|
-
Object.prototype.hasOwnProperty.call(ne,
|
|
4415
|
+
for (var Re in ne)
|
|
4416
|
+
Object.prototype.hasOwnProperty.call(ne, Re) && (se[Re] = ne[Re]);
|
|
4417
4417
|
try {
|
|
4418
|
-
H = U.open(
|
|
4419
|
-
} catch (
|
|
4420
|
-
throw Nt(),
|
|
4418
|
+
H = U.open(T, Mr, Pr, yn, J, pe, se);
|
|
4419
|
+
} catch (Me) {
|
|
4420
|
+
throw Nt(), Me;
|
|
4421
4421
|
}
|
|
4422
4422
|
};
|
|
4423
|
-
c.url = g, c.readyState =
|
|
4423
|
+
c.url = g, c.readyState = le, c.withCredentials = m, c.headers = d, c._close = Nt, rt();
|
|
4424
4424
|
}
|
|
4425
|
-
|
|
4425
|
+
ce.prototype = Object.create(F.prototype), ce.prototype.CONNECTING = le, ce.prototype.OPEN = Oe, ce.prototype.CLOSED = _, ce.prototype.close = function() {
|
|
4426
4426
|
this._close();
|
|
4427
|
-
},
|
|
4428
|
-
var
|
|
4429
|
-
o != null && (l == null || !("withCredentials" in l.prototype)) && (
|
|
4427
|
+
}, ce.CONNECTING = le, ce.OPEN = Oe, ce.CLOSED = _, ce.prototype.withCredentials = void 0;
|
|
4428
|
+
var ft = l;
|
|
4429
|
+
o != null && (l == null || !("withCredentials" in l.prototype)) && (ft = ce), function(c) {
|
|
4430
4430
|
{
|
|
4431
4431
|
var g = c(t);
|
|
4432
4432
|
g !== void 0 && (e.exports = g);
|
|
4433
4433
|
}
|
|
4434
4434
|
}(function(c) {
|
|
4435
|
-
c.EventSourcePolyfill =
|
|
4435
|
+
c.EventSourcePolyfill = ce, c.NativeEventSource = l, c.EventSource = ft;
|
|
4436
4436
|
});
|
|
4437
4437
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : di : globalThis);
|
|
4438
4438
|
})(un, un.exports);
|
|
@@ -4459,7 +4459,7 @@ var ln = function(e, t) {
|
|
|
4459
4459
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
4460
4460
|
}, ln(e, t);
|
|
4461
4461
|
};
|
|
4462
|
-
function
|
|
4462
|
+
function ht(e, t) {
|
|
4463
4463
|
if (typeof t != "function" && t !== null)
|
|
4464
4464
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4465
4465
|
ln(e, t);
|
|
@@ -4506,7 +4506,7 @@ function fn(e, t, n) {
|
|
|
4506
4506
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
4507
4507
|
return e.concat(o || t);
|
|
4508
4508
|
}
|
|
4509
|
-
function
|
|
4509
|
+
function Pe(e) {
|
|
4510
4510
|
return typeof e == "function";
|
|
4511
4511
|
}
|
|
4512
4512
|
function Ar(e) {
|
|
@@ -4530,7 +4530,7 @@ function dn(e, t) {
|
|
|
4530
4530
|
0 <= n && e.splice(n, 1);
|
|
4531
4531
|
}
|
|
4532
4532
|
}
|
|
4533
|
-
var
|
|
4533
|
+
var Ct = function() {
|
|
4534
4534
|
function e(t) {
|
|
4535
4535
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4536
4536
|
}
|
|
@@ -4546,8 +4546,8 @@ var Ht = function() {
|
|
|
4546
4546
|
var u = l.value;
|
|
4547
4547
|
u.remove(this);
|
|
4548
4548
|
}
|
|
4549
|
-
} catch (
|
|
4550
|
-
t = { error:
|
|
4549
|
+
} catch (B) {
|
|
4550
|
+
t = { error: B };
|
|
4551
4551
|
} finally {
|
|
4552
4552
|
try {
|
|
4553
4553
|
l && !l.done && (n = s.return) && n.call(s);
|
|
@@ -4559,29 +4559,29 @@ var Ht = function() {
|
|
|
4559
4559
|
else
|
|
4560
4560
|
a.remove(this);
|
|
4561
4561
|
var f = this.initialTeardown;
|
|
4562
|
-
if (
|
|
4562
|
+
if (Pe(f))
|
|
4563
4563
|
try {
|
|
4564
4564
|
f();
|
|
4565
|
-
} catch (
|
|
4566
|
-
o =
|
|
4565
|
+
} catch (B) {
|
|
4566
|
+
o = B instanceof Zt ? B.errors : [B];
|
|
4567
4567
|
}
|
|
4568
4568
|
var b = this._finalizers;
|
|
4569
4569
|
if (b) {
|
|
4570
4570
|
this._finalizers = null;
|
|
4571
4571
|
try {
|
|
4572
|
-
for (var
|
|
4573
|
-
var
|
|
4572
|
+
for (var p = cn(b), y = p.next(); !y.done; y = p.next()) {
|
|
4573
|
+
var E = y.value;
|
|
4574
4574
|
try {
|
|
4575
|
-
Un(
|
|
4576
|
-
} catch (
|
|
4577
|
-
o = o != null ? o : [],
|
|
4575
|
+
Un(E);
|
|
4576
|
+
} catch (B) {
|
|
4577
|
+
o = o != null ? o : [], B instanceof Zt ? o = fn(fn([], hn(o)), hn(B.errors)) : o.push(B);
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
|
-
} catch (
|
|
4581
|
-
r = { error:
|
|
4580
|
+
} catch (B) {
|
|
4581
|
+
r = { error: B };
|
|
4582
4582
|
} finally {
|
|
4583
4583
|
try {
|
|
4584
|
-
|
|
4584
|
+
y && !y.done && (i = p.return) && i.call(p);
|
|
4585
4585
|
} finally {
|
|
4586
4586
|
if (r)
|
|
4587
4587
|
throw r.error;
|
|
@@ -4620,12 +4620,12 @@ var Ht = function() {
|
|
|
4620
4620
|
var t = new e();
|
|
4621
4621
|
return t.closed = !0, t;
|
|
4622
4622
|
}(), e;
|
|
4623
|
-
}(), Cr =
|
|
4623
|
+
}(), Cr = Ct.EMPTY;
|
|
4624
4624
|
function Hr(e) {
|
|
4625
|
-
return e instanceof
|
|
4625
|
+
return e instanceof Ct || e && "closed" in e && Pe(e.remove) && Pe(e.add) && Pe(e.unsubscribe);
|
|
4626
4626
|
}
|
|
4627
4627
|
function Un(e) {
|
|
4628
|
-
|
|
4628
|
+
Pe(e) ? e() : e.unsubscribe();
|
|
4629
4629
|
}
|
|
4630
4630
|
var ia = {
|
|
4631
4631
|
Promise: void 0
|
|
@@ -4647,11 +4647,11 @@ function aa(e) {
|
|
|
4647
4647
|
}
|
|
4648
4648
|
function Fn() {
|
|
4649
4649
|
}
|
|
4650
|
-
function
|
|
4650
|
+
function yt(e) {
|
|
4651
4651
|
e();
|
|
4652
4652
|
}
|
|
4653
4653
|
var Or = function(e) {
|
|
4654
|
-
|
|
4654
|
+
ht(t, e);
|
|
4655
4655
|
function t(n) {
|
|
4656
4656
|
var r = e.call(this) || this;
|
|
4657
4657
|
return r.isStopped = !1, n ? (r.destination = n, Hr(n) && n.add(r)) : r.destination = la, r;
|
|
@@ -4681,7 +4681,7 @@ var Or = function(e) {
|
|
|
4681
4681
|
this.unsubscribe();
|
|
4682
4682
|
}
|
|
4683
4683
|
}, t;
|
|
4684
|
-
}(
|
|
4684
|
+
}(Ct), sa = function() {
|
|
4685
4685
|
function e(t) {
|
|
4686
4686
|
this.partialObserver = t;
|
|
4687
4687
|
}
|
|
@@ -4691,7 +4691,7 @@ var Or = function(e) {
|
|
|
4691
4691
|
try {
|
|
4692
4692
|
n.next(t);
|
|
4693
4693
|
} catch (r) {
|
|
4694
|
-
|
|
4694
|
+
pt(r);
|
|
4695
4695
|
}
|
|
4696
4696
|
}, e.prototype.error = function(t) {
|
|
4697
4697
|
var n = this.partialObserver;
|
|
@@ -4699,24 +4699,24 @@ var Or = function(e) {
|
|
|
4699
4699
|
try {
|
|
4700
4700
|
n.error(t);
|
|
4701
4701
|
} catch (r) {
|
|
4702
|
-
|
|
4702
|
+
pt(r);
|
|
4703
4703
|
}
|
|
4704
4704
|
else
|
|
4705
|
-
|
|
4705
|
+
pt(t);
|
|
4706
4706
|
}, e.prototype.complete = function() {
|
|
4707
4707
|
var t = this.partialObserver;
|
|
4708
4708
|
if (t.complete)
|
|
4709
4709
|
try {
|
|
4710
4710
|
t.complete();
|
|
4711
4711
|
} catch (n) {
|
|
4712
|
-
|
|
4712
|
+
pt(n);
|
|
4713
4713
|
}
|
|
4714
4714
|
}, e;
|
|
4715
4715
|
}(), pn = function(e) {
|
|
4716
|
-
|
|
4716
|
+
ht(t, e);
|
|
4717
4717
|
function t(n, r, i) {
|
|
4718
4718
|
var o = e.call(this) || this, a;
|
|
4719
|
-
return
|
|
4719
|
+
return Pe(n) || !n ? a = {
|
|
4720
4720
|
next: n != null ? n : void 0,
|
|
4721
4721
|
error: r != null ? r : void 0,
|
|
4722
4722
|
complete: i != null ? i : void 0
|
|
@@ -4724,7 +4724,7 @@ var Or = function(e) {
|
|
|
4724
4724
|
}
|
|
4725
4725
|
return t;
|
|
4726
4726
|
}(Or);
|
|
4727
|
-
function
|
|
4727
|
+
function pt(e) {
|
|
4728
4728
|
aa(e);
|
|
4729
4729
|
}
|
|
4730
4730
|
function ua(e) {
|
|
@@ -4757,7 +4757,7 @@ var Gn = function() {
|
|
|
4757
4757
|
return n.source = this, n.operator = t, n;
|
|
4758
4758
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
4759
4759
|
var i = this, o = pa(t) ? t : new pn(t, n, r);
|
|
4760
|
-
return
|
|
4760
|
+
return yt(function() {
|
|
4761
4761
|
var a = i, s = a.operator, l = a.source;
|
|
4762
4762
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4763
4763
|
}), o;
|
|
@@ -4813,7 +4813,7 @@ function jn(e) {
|
|
|
4813
4813
|
return (t = e != null ? e : ia.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4814
4814
|
}
|
|
4815
4815
|
function da(e) {
|
|
4816
|
-
return e &&
|
|
4816
|
+
return e && Pe(e.next) && Pe(e.error) && Pe(e.complete);
|
|
4817
4817
|
}
|
|
4818
4818
|
function pa(e) {
|
|
4819
4819
|
return e && e instanceof Or || da(e) && Hr(e);
|
|
@@ -4823,7 +4823,7 @@ var ma = Ar(function(e) {
|
|
|
4823
4823
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4824
4824
|
};
|
|
4825
4825
|
}), Lr = function(e) {
|
|
4826
|
-
|
|
4826
|
+
ht(t, e);
|
|
4827
4827
|
function t() {
|
|
4828
4828
|
var n = e.call(this) || this;
|
|
4829
4829
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
@@ -4836,7 +4836,7 @@ var ma = Ar(function(e) {
|
|
|
4836
4836
|
throw new ma();
|
|
4837
4837
|
}, t.prototype.next = function(n) {
|
|
4838
4838
|
var r = this;
|
|
4839
|
-
|
|
4839
|
+
yt(function() {
|
|
4840
4840
|
var i, o;
|
|
4841
4841
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4842
4842
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
@@ -4859,7 +4859,7 @@ var ma = Ar(function(e) {
|
|
|
4859
4859
|
});
|
|
4860
4860
|
}, t.prototype.error = function(n) {
|
|
4861
4861
|
var r = this;
|
|
4862
|
-
|
|
4862
|
+
yt(function() {
|
|
4863
4863
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4864
4864
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
4865
4865
|
for (var i = r.observers; i.length; )
|
|
@@ -4868,7 +4868,7 @@ var ma = Ar(function(e) {
|
|
|
4868
4868
|
});
|
|
4869
4869
|
}, t.prototype.complete = function() {
|
|
4870
4870
|
var n = this;
|
|
4871
|
-
|
|
4871
|
+
yt(function() {
|
|
4872
4872
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4873
4873
|
n.isStopped = !0;
|
|
4874
4874
|
for (var r = n.observers; r.length; )
|
|
@@ -4890,7 +4890,7 @@ var ma = Ar(function(e) {
|
|
|
4890
4890
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4891
4891
|
}, t.prototype._innerSubscribe = function(n) {
|
|
4892
4892
|
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
4893
|
-
return o || a ? Cr : (this.currentObservers = null, s.push(n), new
|
|
4893
|
+
return o || a ? Cr : (this.currentObservers = null, s.push(n), new Ct(function() {
|
|
4894
4894
|
r.currentObservers = null, dn(s, n);
|
|
4895
4895
|
}));
|
|
4896
4896
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
@@ -4903,7 +4903,7 @@ var ma = Ar(function(e) {
|
|
|
4903
4903
|
return new kn(n, r);
|
|
4904
4904
|
}, t;
|
|
4905
4905
|
}(Gn), kn = function(e) {
|
|
4906
|
-
|
|
4906
|
+
ht(t, e);
|
|
4907
4907
|
function t(n, r) {
|
|
4908
4908
|
var i = e.call(this) || this;
|
|
4909
4909
|
return i.destination = n, i.source = r, i;
|
|
@@ -4927,7 +4927,7 @@ var ma = Ar(function(e) {
|
|
|
4927
4927
|
},
|
|
4928
4928
|
delegate: void 0
|
|
4929
4929
|
}, ba = function(e) {
|
|
4930
|
-
|
|
4930
|
+
ht(t, e);
|
|
4931
4931
|
function t(n, r, i) {
|
|
4932
4932
|
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Rr);
|
|
4933
4933
|
var o = e.call(this) || this;
|
|
@@ -4971,65 +4971,72 @@ function zn(e, t, n) {
|
|
|
4971
4971
|
return r[63] = t[n], r;
|
|
4972
4972
|
}
|
|
4973
4973
|
function _a(e) {
|
|
4974
|
-
let t, n, r, i, o, a, s, l, u, f, b,
|
|
4974
|
+
let t, n, r, i, o, a, s, l, u, f, b, p, y = (
|
|
4975
4975
|
/*showBalance*/
|
|
4976
4976
|
e[5] && Wn(e)
|
|
4977
4977
|
);
|
|
4978
4978
|
return {
|
|
4979
4979
|
c() {
|
|
4980
|
-
t = V("button"), n = V("p"),
|
|
4981
|
-
|
|
4980
|
+
t = V("button"), n = V("p"), r = Ce(
|
|
4981
|
+
/*displayBalance*/
|
|
4982
|
+
e[7]
|
|
4983
|
+
), i = Ae(), o = V("span"), a = En("svg"), s = En("path"), u = Ae(), y && y.c(), f = Xr(), R(s, "id", "arrow"), R(s, "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"), R(s, "transform", "translate(-274.511 -441.088)"), R(s, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(o, "class", l = /*isModalDisplayed*/
|
|
4982
4984
|
e[4] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
|
|
4983
4985
|
},
|
|
4984
|
-
m(
|
|
4985
|
-
|
|
4986
|
+
m(E, B) {
|
|
4987
|
+
_e(E, t, B), P(t, n), P(n, r), P(t, i), P(t, o), P(o, a), P(a, s), _e(E, u, B), y && y.m(E, B), _e(E, f, B), b || (p = at(
|
|
4986
4988
|
t,
|
|
4987
4989
|
"click",
|
|
4988
4990
|
/*click_handler*/
|
|
4989
4991
|
e[31]
|
|
4990
|
-
),
|
|
4992
|
+
), b = !0);
|
|
4991
4993
|
},
|
|
4992
|
-
p(
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4994
|
+
p(E, B) {
|
|
4995
|
+
B[0] & /*displayBalance*/
|
|
4996
|
+
128 && Ie(
|
|
4997
|
+
r,
|
|
4998
|
+
/*displayBalance*/
|
|
4999
|
+
E[7]
|
|
5000
|
+
), B[0] & /*isModalDisplayed*/
|
|
5001
|
+
16 && l !== (l = /*isModalDisplayed*/
|
|
5002
|
+
E[4] ? "TriangleActive" : "TriangleInactive") && R(o, "class", l), /*showBalance*/
|
|
5003
|
+
E[5] ? y ? y.p(E, B) : (y = Wn(E), y.c(), y.m(f.parentNode, f)) : y && (y.d(1), y = null);
|
|
4997
5004
|
},
|
|
4998
|
-
d(
|
|
4999
|
-
|
|
5005
|
+
d(E) {
|
|
5006
|
+
E && (ve(t), ve(u), ve(f)), y && y.d(E), b = !1, p();
|
|
5000
5007
|
}
|
|
5001
5008
|
};
|
|
5002
5009
|
}
|
|
5003
5010
|
function Ea(e) {
|
|
5004
5011
|
let t, n = (
|
|
5005
5012
|
/*$_*/
|
|
5006
|
-
e[
|
|
5013
|
+
e[8]("Loading") + ""
|
|
5007
5014
|
), r;
|
|
5008
5015
|
return {
|
|
5009
5016
|
c() {
|
|
5010
|
-
t = V("p"), r =
|
|
5017
|
+
t = V("p"), r = Ce(n), R(t, "class", "Loading");
|
|
5011
5018
|
},
|
|
5012
5019
|
m(i, o) {
|
|
5013
|
-
|
|
5020
|
+
_e(i, t, o), P(t, r);
|
|
5014
5021
|
},
|
|
5015
5022
|
p(i, o) {
|
|
5016
5023
|
o[0] & /*$_*/
|
|
5017
|
-
|
|
5018
|
-
i[
|
|
5024
|
+
256 && n !== (n = /*$_*/
|
|
5025
|
+
i[8]("Loading") + "") && Ie(r, n);
|
|
5019
5026
|
},
|
|
5020
5027
|
d(i) {
|
|
5021
|
-
i &&
|
|
5028
|
+
i && ve(t);
|
|
5022
5029
|
}
|
|
5023
5030
|
};
|
|
5024
5031
|
}
|
|
5025
5032
|
function Wn(e) {
|
|
5026
5033
|
let t, n, r, i, o, a, s, l, u = (
|
|
5027
5034
|
/*$_*/
|
|
5028
|
-
e[
|
|
5029
|
-
), f, b,
|
|
5035
|
+
e[8]("Title") + ""
|
|
5036
|
+
), f, b, p, y, E, B, Q = (
|
|
5030
5037
|
/*$_*/
|
|
5031
|
-
e[
|
|
5032
|
-
), re, oe, I, k, Z, ie, K, te =
|
|
5038
|
+
e[8]("DepositButton") + ""
|
|
5039
|
+
), re, oe, I, k, Z, ie, K, te = vt(Object.keys(
|
|
5033
5040
|
/*balances*/
|
|
5034
5041
|
e[2]
|
|
5035
5042
|
)), X = [];
|
|
@@ -5041,28 +5048,28 @@ function Wn(e) {
|
|
|
5041
5048
|
);
|
|
5042
5049
|
return {
|
|
5043
5050
|
c() {
|
|
5044
|
-
t = V("div"), n = V("button"), i =
|
|
5051
|
+
t = V("div"), n = V("button"), i = Ae(), o = V("div"), a = V("div"), s = V("div"), l = V("p"), f = Ce(u), b = Ae(), p = V("div");
|
|
5045
5052
|
for (let N = 0; N < X.length; N += 1)
|
|
5046
5053
|
X[N].c();
|
|
5047
|
-
|
|
5048
|
-
(e[4] ? "Open" : "")), R(l, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(
|
|
5054
|
+
y = Ae(), E = V("div"), B = V("button"), re = Ce(Q), oe = Ae(), F && F.c(), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5055
|
+
(e[4] ? "Open" : "")), R(l, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(p, "class", "BalanceModalBody"), R(B, "class", "BalanceModalAction DepositButton"), R(E, "class", "BalanceModalFooter"), R(a, "class", I = "ModalContent " + /*isModalDisplayed*/
|
|
5049
5056
|
(e[4] ? "Open" : "")), R(o, "class", k = "BalanceModal " + /*isModalDisplayed*/
|
|
5050
5057
|
(e[4] ? "Open" : "")), R(t, "class", Z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5051
5058
|
(e[4] ? "Open" : ""));
|
|
5052
5059
|
},
|
|
5053
5060
|
m(N, q) {
|
|
5054
|
-
|
|
5061
|
+
_e(N, t, q), P(t, n), P(t, i), P(t, o), P(o, a), P(a, s), P(s, l), P(l, f), P(a, b), P(a, p);
|
|
5055
5062
|
for (let z = 0; z < X.length; z += 1)
|
|
5056
|
-
X[z] && X[z].m(
|
|
5057
|
-
P(a,
|
|
5058
|
-
|
|
5063
|
+
X[z] && X[z].m(p, null);
|
|
5064
|
+
P(a, y), P(a, E), P(E, B), P(B, re), P(E, oe), F && F.m(E, null), ie || (K = [
|
|
5065
|
+
at(
|
|
5059
5066
|
n,
|
|
5060
5067
|
"click",
|
|
5061
5068
|
/*click_handler_1*/
|
|
5062
5069
|
e[32]
|
|
5063
5070
|
),
|
|
5064
|
-
|
|
5065
|
-
|
|
5071
|
+
at(
|
|
5072
|
+
B,
|
|
5066
5073
|
"click",
|
|
5067
5074
|
/*click_handler_2*/
|
|
5068
5075
|
e[33]
|
|
@@ -5073,26 +5080,26 @@ function Wn(e) {
|
|
|
5073
5080
|
if (q[0] & /*isModalDisplayed*/
|
|
5074
5081
|
16 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5075
5082
|
(N[4] ? "Open" : "")) && R(n, "class", r), q[0] & /*$_*/
|
|
5076
|
-
|
|
5077
|
-
N[
|
|
5078
|
-
|
|
5079
|
-
te =
|
|
5083
|
+
256 && u !== (u = /*$_*/
|
|
5084
|
+
N[8]("Title") + "") && Ie(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
|
|
5085
|
+
5380) {
|
|
5086
|
+
te = vt(Object.keys(
|
|
5080
5087
|
/*balances*/
|
|
5081
5088
|
N[2]
|
|
5082
5089
|
));
|
|
5083
5090
|
let z;
|
|
5084
5091
|
for (z = 0; z < te.length; z += 1) {
|
|
5085
5092
|
const fe = Xn(N, te, z);
|
|
5086
|
-
X[z] ? X[z].p(fe, q) : (X[z] = qn(fe), X[z].c(), X[z].m(
|
|
5093
|
+
X[z] ? X[z].p(fe, q) : (X[z] = qn(fe), X[z].c(), X[z].m(p, null));
|
|
5087
5094
|
}
|
|
5088
5095
|
for (; z < X.length; z += 1)
|
|
5089
5096
|
X[z].d(1);
|
|
5090
5097
|
X.length = te.length;
|
|
5091
5098
|
}
|
|
5092
5099
|
q[0] & /*$_*/
|
|
5093
|
-
|
|
5094
|
-
N[
|
|
5095
|
-
N[0] === "true" ? F ? F.p(N, q) : (F = Yn(N), F.c(), F.m(
|
|
5100
|
+
256 && Q !== (Q = /*$_*/
|
|
5101
|
+
N[8]("DepositButton") + "") && Ie(re, Q), /*balancelimitsbutton*/
|
|
5102
|
+
N[0] === "true" ? F ? F.p(N, q) : (F = Yn(N), F.c(), F.m(E, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
|
|
5096
5103
|
16 && I !== (I = "ModalContent " + /*isModalDisplayed*/
|
|
5097
5104
|
(N[4] ? "Open" : "")) && R(a, "class", I), q[0] & /*isModalDisplayed*/
|
|
5098
5105
|
16 && k !== (k = "BalanceModal " + /*isModalDisplayed*/
|
|
@@ -5101,62 +5108,62 @@ function Wn(e) {
|
|
|
5101
5108
|
(N[4] ? "Open" : "")) && R(t, "class", Z);
|
|
5102
5109
|
},
|
|
5103
5110
|
d(N) {
|
|
5104
|
-
N &&
|
|
5111
|
+
N && ve(t), tr(X, N), F && F.d(), ie = !1, Ye(K);
|
|
5105
5112
|
}
|
|
5106
5113
|
};
|
|
5107
5114
|
}
|
|
5108
5115
|
function Zn(e) {
|
|
5109
5116
|
let t, n, r = (
|
|
5110
5117
|
/*$_*/
|
|
5111
|
-
e[
|
|
5118
|
+
e[8](
|
|
5112
5119
|
/*k*/
|
|
5113
5120
|
e[60]
|
|
5114
5121
|
) + ""
|
|
5115
5122
|
), i, o, a = (
|
|
5116
5123
|
/*getProductType*/
|
|
5117
|
-
e[
|
|
5124
|
+
e[12](
|
|
5118
5125
|
/*balance*/
|
|
5119
5126
|
e[63]
|
|
5120
5127
|
) + ""
|
|
5121
5128
|
), s, l, u, f, b = (
|
|
5122
5129
|
/*formatBalance*/
|
|
5123
|
-
e[
|
|
5130
|
+
e[10](
|
|
5124
5131
|
/*balance*/
|
|
5125
5132
|
e[63].amount
|
|
5126
5133
|
) + ""
|
|
5127
|
-
),
|
|
5134
|
+
), p;
|
|
5128
5135
|
return {
|
|
5129
5136
|
c() {
|
|
5130
|
-
t = V("div"), n = V("p"), i =
|
|
5137
|
+
t = V("div"), n = V("p"), i = Ce(r), o = Ae(), s = Ce(a), l = Ae(), u = V("p"), f = V("span"), p = Ce(b), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(u, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
|
|
5131
5138
|
},
|
|
5132
|
-
m(
|
|
5133
|
-
|
|
5139
|
+
m(y, E) {
|
|
5140
|
+
_e(y, t, E), P(t, n), P(n, i), P(n, o), P(n, s), P(t, l), P(t, u), P(u, f), P(f, p);
|
|
5134
5141
|
},
|
|
5135
|
-
p(
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5142
|
+
p(y, E) {
|
|
5143
|
+
E[0] & /*$_, balances*/
|
|
5144
|
+
260 && r !== (r = /*$_*/
|
|
5145
|
+
y[8](
|
|
5139
5146
|
/*k*/
|
|
5140
|
-
|
|
5141
|
-
) + "") &&
|
|
5147
|
+
y[60]
|
|
5148
|
+
) + "") && Ie(i, r), E[0] & /*balances*/
|
|
5142
5149
|
4 && a !== (a = /*getProductType*/
|
|
5143
|
-
|
|
5150
|
+
y[12](
|
|
5144
5151
|
/*balance*/
|
|
5145
|
-
|
|
5146
|
-
) + "") &&
|
|
5152
|
+
y[63]
|
|
5153
|
+
) + "") && Ie(s, a), E[0] & /*balances*/
|
|
5147
5154
|
4 && b !== (b = /*formatBalance*/
|
|
5148
|
-
|
|
5155
|
+
y[10](
|
|
5149
5156
|
/*balance*/
|
|
5150
|
-
|
|
5151
|
-
) + "") &&
|
|
5157
|
+
y[63].amount
|
|
5158
|
+
) + "") && Ie(p, b);
|
|
5152
5159
|
},
|
|
5153
|
-
d(
|
|
5154
|
-
|
|
5160
|
+
d(y) {
|
|
5161
|
+
y && ve(t);
|
|
5155
5162
|
}
|
|
5156
5163
|
};
|
|
5157
5164
|
}
|
|
5158
5165
|
function qn(e) {
|
|
5159
|
-
let t, n, r =
|
|
5166
|
+
let t, n, r = vt(
|
|
5160
5167
|
/*balances*/
|
|
5161
5168
|
e[2][
|
|
5162
5169
|
/*k*/
|
|
@@ -5170,18 +5177,18 @@ function qn(e) {
|
|
|
5170
5177
|
t = V("div");
|
|
5171
5178
|
for (let o = 0; o < i.length; o += 1)
|
|
5172
5179
|
i[o].c();
|
|
5173
|
-
n =
|
|
5180
|
+
n = Ae(), R(t, "class", "BalanceModalRowBoth");
|
|
5174
5181
|
},
|
|
5175
5182
|
m(o, a) {
|
|
5176
|
-
|
|
5183
|
+
_e(o, t, a);
|
|
5177
5184
|
for (let s = 0; s < i.length; s += 1)
|
|
5178
5185
|
i[s] && i[s].m(t, null);
|
|
5179
5186
|
P(t, n);
|
|
5180
5187
|
},
|
|
5181
5188
|
p(o, a) {
|
|
5182
5189
|
if (a[0] & /*formatBalance, balances, getProductType, $_*/
|
|
5183
|
-
|
|
5184
|
-
r =
|
|
5190
|
+
5380) {
|
|
5191
|
+
r = vt(
|
|
5185
5192
|
/*balances*/
|
|
5186
5193
|
o[2][
|
|
5187
5194
|
/*k*/
|
|
@@ -5199,21 +5206,21 @@ function qn(e) {
|
|
|
5199
5206
|
}
|
|
5200
5207
|
},
|
|
5201
5208
|
d(o) {
|
|
5202
|
-
o &&
|
|
5209
|
+
o && ve(t), tr(i, o);
|
|
5203
5210
|
}
|
|
5204
5211
|
};
|
|
5205
5212
|
}
|
|
5206
5213
|
function Yn(e) {
|
|
5207
5214
|
let t, n = (
|
|
5208
5215
|
/*$_*/
|
|
5209
|
-
e[
|
|
5216
|
+
e[8]("LimitsButton") + ""
|
|
5210
5217
|
), r, i, o;
|
|
5211
5218
|
return {
|
|
5212
5219
|
c() {
|
|
5213
|
-
t = V("button"), r =
|
|
5220
|
+
t = V("button"), r = Ce(n), R(t, "class", "BalanceModalAction LimitsButton");
|
|
5214
5221
|
},
|
|
5215
5222
|
m(a, s) {
|
|
5216
|
-
|
|
5223
|
+
_e(a, t, s), P(t, r), i || (o = at(
|
|
5217
5224
|
t,
|
|
5218
5225
|
"click",
|
|
5219
5226
|
/*click_handler_3*/
|
|
@@ -5222,11 +5229,11 @@ function Yn(e) {
|
|
|
5222
5229
|
},
|
|
5223
5230
|
p(a, s) {
|
|
5224
5231
|
s[0] & /*$_*/
|
|
5225
|
-
|
|
5226
|
-
a[
|
|
5232
|
+
256 && n !== (n = /*$_*/
|
|
5233
|
+
a[8]("LimitsButton") + "") && Ie(r, n);
|
|
5227
5234
|
},
|
|
5228
5235
|
d(a) {
|
|
5229
|
-
a &&
|
|
5236
|
+
a && ve(t), i = !1, o();
|
|
5230
5237
|
}
|
|
5231
5238
|
};
|
|
5232
5239
|
}
|
|
@@ -5237,16 +5244,16 @@ function Qn(e) {
|
|
|
5237
5244
|
t = V("button"), R(t, "class", "ShowBalanceModalOverlay");
|
|
5238
5245
|
},
|
|
5239
5246
|
m(i, o) {
|
|
5240
|
-
|
|
5247
|
+
_e(i, t, o), n || (r = at(
|
|
5241
5248
|
t,
|
|
5242
5249
|
"click",
|
|
5243
5250
|
/*click_handler_4*/
|
|
5244
5251
|
e[35]
|
|
5245
5252
|
), n = !0);
|
|
5246
5253
|
},
|
|
5247
|
-
p:
|
|
5254
|
+
p: ye,
|
|
5248
5255
|
d(i) {
|
|
5249
|
-
i &&
|
|
5256
|
+
i && ve(t), n = !1, r();
|
|
5250
5257
|
}
|
|
5251
5258
|
};
|
|
5252
5259
|
}
|
|
@@ -5264,11 +5271,11 @@ function xa(e) {
|
|
|
5264
5271
|
);
|
|
5265
5272
|
return {
|
|
5266
5273
|
c() {
|
|
5267
|
-
t = V("div"), n = V("div"), s.c(), i =
|
|
5274
|
+
t = V("div"), n = V("div"), s.c(), i = Ae(), l && l.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
|
|
5268
5275
|
(e[6] ? "Mobile" : ""));
|
|
5269
5276
|
},
|
|
5270
5277
|
m(u, f) {
|
|
5271
|
-
|
|
5278
|
+
_e(u, t, f), P(t, n), s.m(n, null), P(t, i), l && l.m(t, null), e[36](t);
|
|
5272
5279
|
},
|
|
5273
5280
|
p(u, f) {
|
|
5274
5281
|
a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(n, null))), f[0] & /*mobileView*/
|
|
@@ -5276,22 +5283,22 @@ function xa(e) {
|
|
|
5276
5283
|
(u[6] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
|
|
5277
5284
|
u[5] ? l ? l.p(u, f) : (l = Qn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
5278
5285
|
},
|
|
5279
|
-
i:
|
|
5280
|
-
o:
|
|
5286
|
+
i: ye,
|
|
5287
|
+
o: ye,
|
|
5281
5288
|
d(u) {
|
|
5282
|
-
u &&
|
|
5289
|
+
u && ve(t), s.d(), l && l.d(), e[36](null);
|
|
5283
5290
|
}
|
|
5284
5291
|
};
|
|
5285
5292
|
}
|
|
5286
5293
|
function wa(e, t, n) {
|
|
5287
5294
|
let r;
|
|
5288
|
-
jr(e, ta, (h) => n(
|
|
5289
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion:
|
|
5290
|
-
const
|
|
5291
|
-
fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((
|
|
5295
|
+
jr(e, ta, (h) => n(8, r = h));
|
|
5296
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: re = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: k = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, N = !1, q = !1, z = window.navigator.userAgent, fe, He = "", me = [], le, Oe = "0";
|
|
5297
|
+
const _ = {}, Le = ["totalCashAmount", "totalRealAmount"], Ee = () => {
|
|
5298
|
+
fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((d) => In(d, h[d]))).catch((h) => console.log(h));
|
|
5292
5299
|
};
|
|
5293
5300
|
Object.keys(Dn).forEach((h) => In(h, Dn[h]));
|
|
5294
|
-
const
|
|
5301
|
+
const xe = (h) => {
|
|
5295
5302
|
switch (h) {
|
|
5296
5303
|
case "balance":
|
|
5297
5304
|
window.postMessage(
|
|
@@ -5317,48 +5324,48 @@ function wa(e, t, n) {
|
|
|
5317
5324
|
);
|
|
5318
5325
|
break;
|
|
5319
5326
|
}
|
|
5320
|
-
},
|
|
5327
|
+
}, Fe = (h) => {
|
|
5321
5328
|
if (ie)
|
|
5322
|
-
return
|
|
5323
|
-
const
|
|
5329
|
+
return Ht(h);
|
|
5330
|
+
const d = oe || s, v = {
|
|
5324
5331
|
style: "currency",
|
|
5325
|
-
currency:
|
|
5332
|
+
currency: He,
|
|
5326
5333
|
useGrouping: !0,
|
|
5327
5334
|
currencyDisplay: I || "code",
|
|
5328
5335
|
maximumFractionDigits: k === "" || isNaN(Number(k)) ? 2 : Number(k),
|
|
5329
5336
|
minimumFractionDigits: Z === "" || isNaN(Number(Z)) ? 0 : Number(Z)
|
|
5330
5337
|
};
|
|
5331
|
-
return new Intl.NumberFormat(
|
|
5332
|
-
},
|
|
5333
|
-
const
|
|
5334
|
-
let
|
|
5335
|
-
for (const
|
|
5336
|
-
switch (
|
|
5338
|
+
return new Intl.NumberFormat(d, v).format(h);
|
|
5339
|
+
}, Ht = (h) => {
|
|
5340
|
+
const d = [];
|
|
5341
|
+
let v = "";
|
|
5342
|
+
for (const T of ie)
|
|
5343
|
+
switch (T) {
|
|
5337
5344
|
default:
|
|
5338
|
-
|
|
5345
|
+
v += T;
|
|
5339
5346
|
break;
|
|
5340
5347
|
case "{":
|
|
5341
|
-
|
|
5348
|
+
v && d.push(v), v = "";
|
|
5342
5349
|
break;
|
|
5343
5350
|
case "}":
|
|
5344
|
-
const [U, H] =
|
|
5345
|
-
if (
|
|
5346
|
-
|
|
5351
|
+
const [U, H] = v.split("|");
|
|
5352
|
+
if (v = "", U.toLowerCase() === "currency")
|
|
5353
|
+
v = He;
|
|
5347
5354
|
else if (U.toLowerCase() === "amount") {
|
|
5348
|
-
let
|
|
5349
|
-
H && (H[0] !== " " && (
|
|
5350
|
-
let [
|
|
5351
|
-
|
|
5352
|
-
for (let
|
|
5353
|
-
(
|
|
5354
|
-
|
|
5355
|
+
let x = ",", j = ".", he = 2;
|
|
5356
|
+
H && (H[0] !== " " && (x = H[0]), H[1] !== " " && (j = H[1]), H[2] !== " " && !isNaN(Number(H[2])) && (he = Number(H[2])));
|
|
5357
|
+
let [Se, be] = String(Math.floor(h * Dt(10, he)) / Dt(10, he)).split(".");
|
|
5358
|
+
v += Se[0];
|
|
5359
|
+
for (let Be = 1; Be < Se.length; ++Be)
|
|
5360
|
+
(Se.length - Be) % 3 === 0 ? v += x + Se[Be] : v += Se[Be];
|
|
5361
|
+
be && (v += j + be);
|
|
5355
5362
|
}
|
|
5356
|
-
|
|
5363
|
+
v && d.push(v), v = "";
|
|
5357
5364
|
break;
|
|
5358
5365
|
}
|
|
5359
|
-
return
|
|
5366
|
+
return d.push(v), d.join("");
|
|
5360
5367
|
}, Ot = () => Gt(this, null, function* () {
|
|
5361
|
-
var
|
|
5368
|
+
var d, v, T;
|
|
5362
5369
|
n(3, te = !0);
|
|
5363
5370
|
const h = new URL(`${a}/v1/player/${i}/account`);
|
|
5364
5371
|
try {
|
|
@@ -5367,22 +5374,22 @@ function wa(e, t, n) {
|
|
|
5367
5374
|
headers: { "X-SessionID": o }
|
|
5368
5375
|
}), H = yield U.json();
|
|
5369
5376
|
if (U.ok)
|
|
5370
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
5377
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), me = H.items, He = (d = me.find((x) => x.displayName === "Casino")) == null ? void 0 : d.currency, n(2, _.Total = [{ amount: H.totalAmount[He] }], _), n(
|
|
5371
5378
|
2,
|
|
5372
|
-
|
|
5379
|
+
_.Real = [
|
|
5373
5380
|
{
|
|
5374
|
-
amount: (
|
|
5381
|
+
amount: (v = me.find((x) => x.displayName === "Casino")) == null ? void 0 : v.balanceAmount
|
|
5375
5382
|
}
|
|
5376
5383
|
],
|
|
5377
|
-
|
|
5384
|
+
_
|
|
5378
5385
|
), n(
|
|
5379
5386
|
2,
|
|
5380
|
-
|
|
5387
|
+
_.Bonus = [
|
|
5381
5388
|
{
|
|
5382
|
-
amount: (
|
|
5389
|
+
amount: (T = me.find((x) => x.displayName === "UBS")) == null ? void 0 : T.balanceAmount
|
|
5383
5390
|
}
|
|
5384
5391
|
],
|
|
5385
|
-
|
|
5392
|
+
_
|
|
5386
5393
|
);
|
|
5387
5394
|
else
|
|
5388
5395
|
throw new Error("Failed to fetch balance data !");
|
|
@@ -5393,32 +5400,32 @@ function wa(e, t, n) {
|
|
|
5393
5400
|
}
|
|
5394
5401
|
}), Lt = () => {
|
|
5395
5402
|
n(3, te = !0);
|
|
5396
|
-
const h = new URL(`${a}/v2/player/${i}/balance`),
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
const U =
|
|
5400
|
-
if (
|
|
5401
|
-
|
|
5403
|
+
const h = new URL(`${a}/v2/player/${i}/balance`), d = new Headers();
|
|
5404
|
+
d.append("X-SessionID", o), fetch(h, { method: "GET", headers: d }).then((T) => T.json()).then((T) => {
|
|
5405
|
+
T[E] || n(13, E = Le[0]);
|
|
5406
|
+
const U = T.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
|
|
5407
|
+
if (He = U.currency, F = !!U.productType, n(2, _.Total = [{ amount: 0 }], _), n(2, _.Real = [], _), n(2, _.Bonus = [], _), n(2, _.Credit = [], _), !F) {
|
|
5408
|
+
le = {
|
|
5402
5409
|
lastOrdinaryAfterAmount: 0,
|
|
5403
5410
|
showCreditLineAfterAmount: !1
|
|
5404
|
-
}, n(2,
|
|
5405
|
-
for (const
|
|
5406
|
-
switch (
|
|
5411
|
+
}, n(2, _.Total[0].amount = T[E][He], _);
|
|
5412
|
+
for (const x of T.items)
|
|
5413
|
+
switch (x.type) {
|
|
5407
5414
|
case "Bonus":
|
|
5408
|
-
|
|
5415
|
+
_.Bonus.length === 0 ? _.Bonus.push({ amount: x.amount }) : n(2, _.Bonus[0].amount += x.amount, _);
|
|
5409
5416
|
break;
|
|
5410
5417
|
case "Real":
|
|
5411
|
-
if (
|
|
5418
|
+
if (x.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: x.creditLine }), E === "totalRealAmount")
|
|
5412
5419
|
continue;
|
|
5413
|
-
|
|
5420
|
+
_.Real.length === 0 ? _.Real.push({ amount: x.amount }) : n(2, _.Real[0].amount += x.amount, _);
|
|
5414
5421
|
break;
|
|
5415
5422
|
}
|
|
5416
|
-
for (const [
|
|
5417
|
-
j.length < 1 && delete
|
|
5423
|
+
for (const [x, j] of Object.entries(_))
|
|
5424
|
+
j.length < 1 && delete _[x];
|
|
5418
5425
|
n(3, te = !1);
|
|
5419
5426
|
return;
|
|
5420
5427
|
}
|
|
5421
|
-
|
|
5428
|
+
le = {
|
|
5422
5429
|
Casino: {
|
|
5423
5430
|
lastOrdinaryAfterAmount: 0,
|
|
5424
5431
|
showCreditLineAfterAmount: !1
|
|
@@ -5428,124 +5435,124 @@ function wa(e, t, n) {
|
|
|
5428
5435
|
showCreditLineAfterAmount: !1
|
|
5429
5436
|
}
|
|
5430
5437
|
};
|
|
5431
|
-
let H =
|
|
5432
|
-
|
|
5433
|
-
for (const
|
|
5438
|
+
let H = T.items;
|
|
5439
|
+
y && y !== "All" && (H = T.items.filter((x) => x.productType === y));
|
|
5440
|
+
for (const x of H) {
|
|
5434
5441
|
let j;
|
|
5435
|
-
switch (
|
|
5442
|
+
switch (x.type) {
|
|
5436
5443
|
case "Bonus":
|
|
5437
|
-
j =
|
|
5438
|
-
amount:
|
|
5439
|
-
productType:
|
|
5444
|
+
j = _.Bonus.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Bonus[j].amount += x.amount, _) : _.Bonus.push({
|
|
5445
|
+
amount: x.amount,
|
|
5446
|
+
productType: x.productType
|
|
5440
5447
|
});
|
|
5441
5448
|
break;
|
|
5442
5449
|
case "Real":
|
|
5443
|
-
|
|
5444
|
-
amount:
|
|
5445
|
-
productType:
|
|
5446
|
-
}), j =
|
|
5447
|
-
amount:
|
|
5448
|
-
productType:
|
|
5450
|
+
x.creditLine && _.Credit.push({
|
|
5451
|
+
amount: x.creditLine,
|
|
5452
|
+
productType: x.productType
|
|
5453
|
+
}), j = _.Real.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Real[j].amount += x.amount, _) : _.Real.push({
|
|
5454
|
+
amount: x.amount,
|
|
5455
|
+
productType: x.productType
|
|
5449
5456
|
});
|
|
5450
5457
|
break;
|
|
5451
5458
|
}
|
|
5452
5459
|
}
|
|
5453
|
-
|
|
5454
|
-
for (const [
|
|
5455
|
-
j.length < 1 && delete
|
|
5456
|
-
window.postMessage({ type: "playerBalanceInfo", balance:
|
|
5457
|
-
}).catch((
|
|
5458
|
-
throw n(3, te = !1), console.log("Balance fetch error",
|
|
5460
|
+
ce();
|
|
5461
|
+
for (const [x, j] of Object.entries(_))
|
|
5462
|
+
j.length < 1 && delete _[x];
|
|
5463
|
+
window.postMessage({ type: "playerBalanceInfo", balance: T }, window.location.href), n(3, te = !1);
|
|
5464
|
+
}).catch((T) => {
|
|
5465
|
+
throw n(3, te = !1), console.log("Balance fetch error", T), new Error("Failed to fetch balance data!");
|
|
5459
5466
|
});
|
|
5460
|
-
},
|
|
5467
|
+
}, et = () => {
|
|
5461
5468
|
if (fe && fe.close(), o.length < 1)
|
|
5462
5469
|
return;
|
|
5463
|
-
let h,
|
|
5464
|
-
switch (
|
|
5470
|
+
let h, d;
|
|
5471
|
+
switch (p) {
|
|
5465
5472
|
case "gm16":
|
|
5466
|
-
h = new URL(`${a}/v2/player/${i}/information/updates`),
|
|
5473
|
+
h = new URL(`${a}/v2/player/${i}/information/updates`), d = (U) => Rt(U);
|
|
5467
5474
|
break;
|
|
5468
5475
|
case "gmcore":
|
|
5469
|
-
h = new URL(`${a}/v1/player/${i}/balance/updates`),
|
|
5476
|
+
h = new URL(`${a}/v1/player/${i}/balance/updates`), d = (U) => tt(U);
|
|
5470
5477
|
break;
|
|
5471
5478
|
}
|
|
5472
|
-
const
|
|
5479
|
+
const v = {
|
|
5473
5480
|
accept: "text/event-stream",
|
|
5474
5481
|
"X-SessionId": o
|
|
5475
|
-
},
|
|
5476
|
-
fe =
|
|
5477
|
-
},
|
|
5478
|
-
let
|
|
5482
|
+
}, T = new ra.EventSourcePolyfill(h, { headers: v });
|
|
5483
|
+
fe = T, T.addEventListener("message", d);
|
|
5484
|
+
}, Ge = (h) => {
|
|
5485
|
+
let d;
|
|
5479
5486
|
try {
|
|
5480
|
-
|
|
5481
|
-
} catch (
|
|
5482
|
-
console.log("Balance stream failed: ",
|
|
5487
|
+
d = JSON.parse(h);
|
|
5488
|
+
} catch (v) {
|
|
5489
|
+
console.log("Balance stream failed: ", v);
|
|
5483
5490
|
return;
|
|
5484
5491
|
}
|
|
5485
|
-
return
|
|
5486
|
-
},
|
|
5492
|
+
return d;
|
|
5493
|
+
}, tt = (h) => {
|
|
5487
5494
|
var U, H;
|
|
5488
|
-
const
|
|
5489
|
-
if (!
|
|
5490
|
-
|
|
5495
|
+
const d = Ge(h.data);
|
|
5496
|
+
if (!d) {
|
|
5497
|
+
et();
|
|
5491
5498
|
return;
|
|
5492
5499
|
}
|
|
5493
|
-
let
|
|
5494
|
-
const
|
|
5495
|
-
|
|
5496
|
-
balanceAmount:
|
|
5497
|
-
})),
|
|
5498
|
-
},
|
|
5499
|
-
let
|
|
5500
|
-
switch (
|
|
5500
|
+
let v = "0";
|
|
5501
|
+
const T = d.balanceChange;
|
|
5502
|
+
me = me.map((x) => (T && T[x.id] && (x = Ft(Ut({}, x), {
|
|
5503
|
+
balanceAmount: T[x.id].afterAmount
|
|
5504
|
+
})), v = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(v)).toString(), x)), n(2, _.Real = [{ amount: (U = me[0]) == null ? void 0 : U.balanceAmount }], _), n(2, _.Bonus = [{ amount: (H = me[1]) == null ? void 0 : H.balanceAmount }], _), n(2, _.Total = [{ amount: Number(v) }], _);
|
|
5505
|
+
}, we = (h, d, v) => {
|
|
5506
|
+
let T = null;
|
|
5507
|
+
switch (v.walletAccountType) {
|
|
5501
5508
|
case "Ordinary":
|
|
5502
|
-
(
|
|
5509
|
+
(v.afterAmount !== v.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = v.afterAmount, d.showCreditLineAfterAmount || (T = v.afterAmount));
|
|
5503
5510
|
break;
|
|
5504
5511
|
case "CreditLine":
|
|
5505
|
-
|
|
5512
|
+
v.afterAmount !== 0 ? (T = v.afterAmount, d.showCreditLineAfterAmount = !0) : (T = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
|
|
5506
5513
|
break;
|
|
5507
5514
|
default:
|
|
5508
|
-
|
|
5515
|
+
T = v.afterAmount;
|
|
5509
5516
|
}
|
|
5510
|
-
return
|
|
5511
|
-
},
|
|
5512
|
-
switch (
|
|
5517
|
+
return T === null ? h : T;
|
|
5518
|
+
}, ce = () => {
|
|
5519
|
+
switch (E) {
|
|
5513
5520
|
case "totalCashAmount":
|
|
5514
5521
|
let h = 0;
|
|
5515
|
-
for (const
|
|
5516
|
-
for (const
|
|
5517
|
-
h += Math.max(
|
|
5518
|
-
n(2,
|
|
5522
|
+
for (const v of ["Real", "Bonus"])
|
|
5523
|
+
for (const T of _[v])
|
|
5524
|
+
h += Math.max(T.amount, 0);
|
|
5525
|
+
n(2, _.Total[0].amount = h, _);
|
|
5519
5526
|
break;
|
|
5520
5527
|
case "totalRealAmount":
|
|
5521
5528
|
if (!F)
|
|
5522
5529
|
return;
|
|
5523
|
-
let
|
|
5524
|
-
for (const
|
|
5525
|
-
|
|
5526
|
-
n(2,
|
|
5530
|
+
let d = 0;
|
|
5531
|
+
for (const v of _.Real)
|
|
5532
|
+
d += v.amount;
|
|
5533
|
+
n(2, _.Total[0].amount = d, _);
|
|
5527
5534
|
}
|
|
5528
|
-
},
|
|
5529
|
-
const
|
|
5530
|
-
if (!
|
|
5531
|
-
|
|
5535
|
+
}, Rt = (h) => {
|
|
5536
|
+
const d = Ge(h.data);
|
|
5537
|
+
if (!d) {
|
|
5538
|
+
et();
|
|
5532
5539
|
return;
|
|
5533
5540
|
}
|
|
5534
|
-
if (
|
|
5541
|
+
if (Mt(d == null ? void 0 : d.type) || d.type !== "BALANCE_UPDATE_V2")
|
|
5535
5542
|
return;
|
|
5536
|
-
const
|
|
5537
|
-
for (const [
|
|
5538
|
-
if (
|
|
5539
|
-
for (const H of
|
|
5543
|
+
const v = d.body.balanceChange;
|
|
5544
|
+
for (const [T, U] of Object.entries(v))
|
|
5545
|
+
if (E === "totalRealAmount" && T === "Real" && !F && n(2, _.Total[0].amount = we(_.Total[0].amount, le, U), _), !!_[T])
|
|
5546
|
+
for (const H of _[T]) {
|
|
5540
5547
|
if (!F) {
|
|
5541
|
-
H.amount =
|
|
5548
|
+
H.amount = T === "Real" ? we(H.amount, le, U) : U.afterAmount;
|
|
5542
5549
|
continue;
|
|
5543
5550
|
}
|
|
5544
|
-
U.productType === H.productType && (H.amount =
|
|
5551
|
+
U.productType === H.productType && (H.amount = T === "Real" ? we(H.amount, le[H.productType], U) : U.afterAmount);
|
|
5545
5552
|
}
|
|
5546
|
-
|
|
5547
|
-
},
|
|
5548
|
-
switch (
|
|
5553
|
+
ce();
|
|
5554
|
+
}, nt = (h) => {
|
|
5555
|
+
switch (xe("closebalance"), h) {
|
|
5549
5556
|
case "deposit":
|
|
5550
5557
|
window.postMessage({ type: "GoToDeposit" }, window.location.href);
|
|
5551
5558
|
break;
|
|
@@ -5554,10 +5561,10 @@ function wa(e, t, n) {
|
|
|
5554
5561
|
break;
|
|
5555
5562
|
}
|
|
5556
5563
|
typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5557
|
-
},
|
|
5558
|
-
|
|
5559
|
-
},
|
|
5560
|
-
switch (na(s),
|
|
5564
|
+
}, Mt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ft = () => {
|
|
5565
|
+
Le.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${Le}. Using default value ('${Le[0]}').`), n(13, E = Le[0]));
|
|
5566
|
+
}, c = () => {
|
|
5567
|
+
switch (na(s), ft(), p) {
|
|
5561
5568
|
case "gmcore":
|
|
5562
5569
|
Ot();
|
|
5563
5570
|
break;
|
|
@@ -5565,66 +5572,67 @@ function wa(e, t, n) {
|
|
|
5565
5572
|
Lt();
|
|
5566
5573
|
break;
|
|
5567
5574
|
default:
|
|
5568
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5575
|
+
throw Error(`Invalid apiversion attribute: ${p}`);
|
|
5569
5576
|
}
|
|
5570
|
-
},
|
|
5571
|
-
const { data: { type:
|
|
5572
|
-
switch (
|
|
5577
|
+
}, g = (h) => {
|
|
5578
|
+
const { data: { type: d } = {} } = h || {};
|
|
5579
|
+
switch (d) {
|
|
5573
5580
|
case "LogoutSuccessfull":
|
|
5574
5581
|
fe.close();
|
|
5575
5582
|
break;
|
|
5576
5583
|
case "CloseBalance":
|
|
5577
|
-
|
|
5584
|
+
xe("closebalance");
|
|
5578
5585
|
break;
|
|
5579
5586
|
}
|
|
5580
|
-
},
|
|
5587
|
+
}, w = () => {
|
|
5581
5588
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5582
|
-
},
|
|
5583
|
-
const
|
|
5584
|
-
return !h.productType ||
|
|
5585
|
-
}, m = () => {
|
|
5586
|
-
switch (A) {
|
|
5587
|
-
case "Real":
|
|
5588
|
-
return v.Real ? Pe(v.Real[0].amount) : "0";
|
|
5589
|
-
default:
|
|
5590
|
-
return v.Total ? Pe(v.Total[0].amount) : "0";
|
|
5591
|
-
}
|
|
5589
|
+
}, m = (h) => {
|
|
5590
|
+
const d = re.split(",").map((v) => v.trim());
|
|
5591
|
+
return !h.productType || d.includes(h.productType) ? "" : r(h.productType);
|
|
5592
5592
|
};
|
|
5593
|
-
qr(() => (window.addEventListener("message",
|
|
5594
|
-
window.removeEventListener("message",
|
|
5593
|
+
qr(() => (window.addEventListener("message", g, !1), n(6, q = ya(z)), () => {
|
|
5594
|
+
window.removeEventListener("message", g), fe && fe.close();
|
|
5595
5595
|
}));
|
|
5596
|
-
const
|
|
5596
|
+
const A = () => xe("balance"), S = () => xe("closebalance"), C = () => nt("deposit"), G = () => nt("limits"), O = () => xe("closebalance");
|
|
5597
5597
|
function D(h) {
|
|
5598
5598
|
qt[h ? "unshift" : "push"](() => {
|
|
5599
5599
|
K = h, n(1, K);
|
|
5600
5600
|
});
|
|
5601
5601
|
}
|
|
5602
5602
|
return e.$$set = (h) => {
|
|
5603
|
-
"userid" in h && n(14, i = h.userid), "session" in h && n(15, o = h.session), "endpoint" in h && n(16, a = h.endpoint), "lang" in h && n(17, s = h.lang), "mbsource" in h && n(18, l = h.mbsource), "clientstyling" in h && n(19, u = h.clientstyling), "clientstylingurl" in h && n(20, f = h.clientstylingurl), "translationurl" in h && n(21, b = h.translationurl), "gmversion" in h && n(22,
|
|
5603
|
+
"userid" in h && n(14, i = h.userid), "session" in h && n(15, o = h.session), "endpoint" in h && n(16, a = h.endpoint), "lang" in h && n(17, s = h.lang), "mbsource" in h && n(18, l = h.mbsource), "clientstyling" in h && n(19, u = h.clientstyling), "clientstylingurl" in h && n(20, f = h.clientstylingurl), "translationurl" in h && n(21, b = h.translationurl), "gmversion" in h && n(22, p = h.gmversion), "displaybalanceoption" in h && n(23, y = h.displaybalanceoption), "totalcalculationmode" in h && n(13, E = h.totalcalculationmode), "primarybalancemode" in h && n(24, B = h.primarybalancemode), "balancelimitsbutton" in h && n(0, Q = h.balancelimitsbutton), "hideproducttype" in h && n(25, re = h.hideproducttype), "currencylocale" in h && n(26, oe = h.currencylocale), "currencydisplay" in h && n(27, I = h.currencydisplay), "maximumfractiondigits" in h && n(28, k = h.maximumfractiondigits), "minimumfractiondigits" in h && n(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && n(30, ie = h.customdisplayformat);
|
|
5604
5604
|
}, e.$$.update = () => {
|
|
5605
5605
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5606
|
-
12828672 && a && i && o && s &&
|
|
5607
|
-
4308992 && a && i && o &&
|
|
5608
|
-
2097152 && b &&
|
|
5609
|
-
4 &&
|
|
5606
|
+
12828672 && a && i && o && s && p && y && c(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5607
|
+
4308992 && a && i && o && p && et(), e.$$.dirty[0] & /*translationurl*/
|
|
5608
|
+
2097152 && b && Ee(), e.$$.dirty[0] & /*balances*/
|
|
5609
|
+
4 && _.Total && w(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5610
5610
|
524290 && u && K && li(K, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5611
5611
|
1048578 && f && K && ci(K, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5612
|
-
262146 && l && K && hi(K, `${l}.Style`)
|
|
5612
|
+
262146 && l && K && hi(K, `${l}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
|
|
5613
|
+
16777220 && n(7, Oe = (() => {
|
|
5614
|
+
switch (B) {
|
|
5615
|
+
case "Real":
|
|
5616
|
+
return _.Real ? Fe(_.Real[0].amount) : "0";
|
|
5617
|
+
default:
|
|
5618
|
+
return _.Total ? Fe(_.Total[0].amount) : "0";
|
|
5619
|
+
}
|
|
5620
|
+
})());
|
|
5613
5621
|
}, [
|
|
5614
5622
|
Q,
|
|
5615
5623
|
K,
|
|
5616
|
-
|
|
5624
|
+
_,
|
|
5617
5625
|
te,
|
|
5618
5626
|
X,
|
|
5619
5627
|
N,
|
|
5620
5628
|
q,
|
|
5629
|
+
Oe,
|
|
5621
5630
|
r,
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
x,
|
|
5631
|
+
xe,
|
|
5632
|
+
Fe,
|
|
5633
|
+
nt,
|
|
5626
5634
|
m,
|
|
5627
|
-
|
|
5635
|
+
E,
|
|
5628
5636
|
i,
|
|
5629
5637
|
o,
|
|
5630
5638
|
a,
|
|
@@ -5633,16 +5641,16 @@ function wa(e, t, n) {
|
|
|
5633
5641
|
u,
|
|
5634
5642
|
f,
|
|
5635
5643
|
b,
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5644
|
+
p,
|
|
5645
|
+
y,
|
|
5646
|
+
B,
|
|
5639
5647
|
re,
|
|
5640
5648
|
oe,
|
|
5641
5649
|
I,
|
|
5642
5650
|
k,
|
|
5643
5651
|
Z,
|
|
5644
5652
|
ie,
|
|
5645
|
-
|
|
5653
|
+
A,
|
|
5646
5654
|
S,
|
|
5647
5655
|
C,
|
|
5648
5656
|
G,
|