@everymatrix/player-withdrawal 1.74.10 → 1.75.0
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/{PlayerWithdrawal-BI9vpGt7.js → PlayerWithdrawal-BBK2hYjm.js} +615 -601
- package/components/PlayerWithdrawal-BOYroasA.cjs +18 -0
- package/components/{PlayerWithdrawal-Cwx-esQe.js → PlayerWithdrawal-BX2bNsuJ.js} +625 -611
- package/es2015/player-withdrawal.cjs +1 -1
- package/es2015/player-withdrawal.js +1 -1
- package/esnext/player-withdrawal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerWithdrawal-DD8V7DhE.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ht(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Ht);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let le;
|
|
19
|
-
function
|
|
19
|
+
function rt(e, t) {
|
|
20
20
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function lr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Ht(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function cr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function fr(e, t, r) {
|
|
41
|
+
const n = pr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = I("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, dr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function pr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function lr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function dr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -76,23 +76,23 @@ function G(e) {
|
|
|
76
76
|
function re(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ne() {
|
|
80
80
|
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function mr(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function E(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function br(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Je(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function gr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -105,22 +105,22 @@ let ne;
|
|
|
105
105
|
function te(e) {
|
|
106
106
|
ne = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function yr() {
|
|
109
109
|
if (!ne)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
111
|
return ne;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function vr(e) {
|
|
114
|
+
yr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Le = [];
|
|
117
117
|
let W = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Me = !1;
|
|
120
|
+
function Er() {
|
|
121
|
+
Me || (Me = !0, _r.then(H));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ce(e) {
|
|
124
124
|
W.push(e);
|
|
125
125
|
}
|
|
126
126
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -133,53 +133,53 @@ function H() {
|
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++, te(t),
|
|
136
|
+
F++, te(t), xr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (te(null), k.length = 0, F = 0;
|
|
142
|
-
|
|
141
|
+
for (te(null), k.length = 0, F = 0; Le.length; )
|
|
142
|
+
Le.pop()();
|
|
143
143
|
for (let t = 0; t < W.length; t += 1) {
|
|
144
144
|
const r = W[t];
|
|
145
145
|
Se.has(r) || (Se.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
W.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; nt.length; )
|
|
150
|
+
nt.pop()();
|
|
151
|
+
Me = !1, Se.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function xr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
155
|
e.update(), se(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function wr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
165
|
+
function Tr(e, t) {
|
|
166
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Hr(e, t, r) {
|
|
169
169
|
const { fragment: n, after_update: i } = e.$$;
|
|
170
|
-
n && n.m(t, r),
|
|
171
|
-
const o = e.$$.on_mount.map(
|
|
170
|
+
n && n.m(t, r), Ce(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(Ht).filter(Qe);
|
|
172
172
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
-
}), i.forEach(
|
|
173
|
+
}), i.forEach(Ce);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Br(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (wr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
179
|
+
function Pr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
183
|
const l = ne;
|
|
184
184
|
te(e);
|
|
185
185
|
const u = e.$$ = {
|
|
@@ -189,7 +189,7 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: B,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: tt(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,28 +198,28 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: tt(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
205
205
|
};
|
|
206
206
|
a && a(u.root);
|
|
207
207
|
let h = !1;
|
|
208
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
209
|
-
const m =
|
|
210
|
-
return u.ctx && i(u.ctx[
|
|
211
|
-
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
208
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
|
+
const m = p.length ? p[0] : f;
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && Pr(e, c)), f;
|
|
211
|
+
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const
|
|
214
|
-
u.fragment && u.fragment.l(
|
|
213
|
+
const c = br(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), H();
|
|
218
218
|
}
|
|
219
219
|
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let At;
|
|
222
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -278,12 +278,12 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = gr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
285
285
|
const o = this.$$g_p(i.name);
|
|
286
|
-
o in this.$$d || (this.$$d[o] =
|
|
286
|
+
o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
|
|
287
287
|
}
|
|
288
288
|
for (const i in this.$$p_d)
|
|
289
289
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
301
301
|
this.$$r = !0;
|
|
302
302
|
for (const i in this.$$p_d)
|
|
303
303
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
304
|
-
const o =
|
|
304
|
+
const o = pe(
|
|
305
305
|
i,
|
|
306
306
|
this.$$d[i],
|
|
307
307
|
this.$$p_d,
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
323
323
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
324
324
|
// and setting attributes through setAttribute etc, this is helpful
|
|
325
325
|
attributeChangedCallback(e, t, r) {
|
|
326
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
326
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
327
327
|
}
|
|
328
328
|
disconnectedCallback() {
|
|
329
329
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
336
336
|
) || e;
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function pe(e, t, r, n) {
|
|
340
340
|
const i = r[e]?.type;
|
|
341
341
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
342
342
|
return t;
|
|
@@ -365,8 +365,8 @@ function de(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function Or(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends At {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -382,7 +382,7 @@ function Br(e, t, r, n, i, o) {
|
|
|
382
382
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
383
383
|
},
|
|
384
384
|
set(l) {
|
|
385
|
-
l =
|
|
385
|
+
l = pe(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}), n.forEach((s) => {
|
|
@@ -394,7 +394,7 @@ function Br(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Ir {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Pr {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Br(this, 1), this.$destroy = B;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Pr {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Qe(r))
|
|
426
426
|
return B;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,18 +435,18 @@ class Pr {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
443
|
-
function
|
|
441
|
+
const Nr = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
443
|
+
function Lr(e, t) {
|
|
444
444
|
if (e) {
|
|
445
445
|
const r = document.createElement("style");
|
|
446
446
|
r.innerHTML = t, e.appendChild(r);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Mr(e, t) {
|
|
450
450
|
const r = new URL(t);
|
|
451
451
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
452
452
|
const i = document.createElement("style");
|
|
@@ -455,7 +455,7 @@ function Ir(e, t) {
|
|
|
455
455
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Cr(e, t, r) {
|
|
459
459
|
if (window.emMessageBus) {
|
|
460
460
|
const n = document.createElement("style");
|
|
461
461
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -477,18 +477,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
477
477
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
478
478
|
PERFORMANCE OF THIS SOFTWARE.
|
|
479
479
|
***************************************************************************** */
|
|
480
|
-
var
|
|
481
|
-
return
|
|
480
|
+
var Re = function(e, t) {
|
|
481
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
482
482
|
r.__proto__ = n;
|
|
483
483
|
} || function(r, n) {
|
|
484
484
|
for (var i in n)
|
|
485
485
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
486
|
-
},
|
|
486
|
+
}, Re(e, t);
|
|
487
487
|
};
|
|
488
488
|
function N(e, t) {
|
|
489
489
|
if (typeof t != "function" && t !== null)
|
|
490
490
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
491
|
-
|
|
491
|
+
Re(e, t);
|
|
492
492
|
function r() {
|
|
493
493
|
this.constructor = e;
|
|
494
494
|
}
|
|
@@ -504,7 +504,7 @@ var v = function() {
|
|
|
504
504
|
return t;
|
|
505
505
|
}, v.apply(this, arguments);
|
|
506
506
|
};
|
|
507
|
-
function
|
|
507
|
+
function Rr(e, t) {
|
|
508
508
|
var r = {};
|
|
509
509
|
for (var n in e)
|
|
510
510
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -513,7 +513,7 @@ function Lr(e, t) {
|
|
|
513
513
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
514
514
|
return r;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function $e(e) {
|
|
517
517
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
518
518
|
if (r)
|
|
519
519
|
return r.call(e);
|
|
@@ -525,7 +525,7 @@ function Re(e) {
|
|
|
525
525
|
};
|
|
526
526
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Ue(e, t) {
|
|
529
529
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
530
530
|
if (!r)
|
|
531
531
|
return e;
|
|
@@ -554,13 +554,13 @@ function V(e, t, r) {
|
|
|
554
554
|
function O(e) {
|
|
555
555
|
return typeof e == "function";
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ot(e) {
|
|
558
558
|
var t = function(n) {
|
|
559
559
|
Error.call(n), n.stack = new Error().stack;
|
|
560
560
|
}, r = e(t);
|
|
561
561
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
562
562
|
}
|
|
563
|
-
var Te =
|
|
563
|
+
var Te = Ot(function(e) {
|
|
564
564
|
return function(r) {
|
|
565
565
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
566
566
|
` + r.map(function(n, i) {
|
|
@@ -569,7 +569,7 @@ var Te = Pt(function(e) {
|
|
|
569
569
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function De(e, t) {
|
|
573
573
|
if (e) {
|
|
574
574
|
var r = e.indexOf(t);
|
|
575
575
|
0 <= r && e.splice(r, 1);
|
|
@@ -587,7 +587,7 @@ var ve = function() {
|
|
|
587
587
|
if (a)
|
|
588
588
|
if (this._parentage = null, Array.isArray(a))
|
|
589
589
|
try {
|
|
590
|
-
for (var s =
|
|
590
|
+
for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
|
|
591
591
|
var u = l.value;
|
|
592
592
|
u.remove(this);
|
|
593
593
|
}
|
|
@@ -610,23 +610,23 @@ var ve = function() {
|
|
|
610
610
|
} catch (g) {
|
|
611
611
|
o = g instanceof Te ? g.errors : [g];
|
|
612
612
|
}
|
|
613
|
-
var
|
|
614
|
-
if (
|
|
613
|
+
var c = this._finalizers;
|
|
614
|
+
if (c) {
|
|
615
615
|
this._finalizers = null;
|
|
616
616
|
try {
|
|
617
|
-
for (var
|
|
618
|
-
var m =
|
|
617
|
+
for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
|
|
618
|
+
var m = p.value;
|
|
619
619
|
try {
|
|
620
|
-
|
|
620
|
+
it(m);
|
|
621
621
|
} catch (g) {
|
|
622
|
-
o = o ?? [], g instanceof Te ? o = V(V([],
|
|
622
|
+
o = o ?? [], g instanceof Te ? o = V(V([], Ue(o)), Ue(g.errors)) : o.push(g);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
} catch (g) {
|
|
626
626
|
n = { error: g };
|
|
627
627
|
} finally {
|
|
628
628
|
try {
|
|
629
|
-
|
|
629
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
630
630
|
} finally {
|
|
631
631
|
if (n)
|
|
632
632
|
throw n.error;
|
|
@@ -640,7 +640,7 @@ var ve = function() {
|
|
|
640
640
|
var r;
|
|
641
641
|
if (t && t !== this)
|
|
642
642
|
if (this.closed)
|
|
643
|
-
|
|
643
|
+
it(t);
|
|
644
644
|
else {
|
|
645
645
|
if (t instanceof e) {
|
|
646
646
|
if (t.closed || t._hasParent(this))
|
|
@@ -657,56 +657,56 @@ var ve = function() {
|
|
|
657
657
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
658
658
|
}, e.prototype._removeParent = function(t) {
|
|
659
659
|
var r = this._parentage;
|
|
660
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
660
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
661
661
|
}, e.prototype.remove = function(t) {
|
|
662
662
|
var r = this._finalizers;
|
|
663
|
-
r &&
|
|
663
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
664
664
|
}, e.EMPTY = function() {
|
|
665
665
|
var t = new e();
|
|
666
666
|
return t.closed = !0, t;
|
|
667
667
|
}(), e;
|
|
668
|
-
}(),
|
|
669
|
-
function
|
|
668
|
+
}(), It = ve.EMPTY;
|
|
669
|
+
function Nt(e) {
|
|
670
670
|
return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function it(e) {
|
|
673
673
|
O(e) ? e() : e.unsubscribe();
|
|
674
674
|
}
|
|
675
|
-
var
|
|
675
|
+
var Lt = {
|
|
676
676
|
onUnhandledError: null,
|
|
677
677
|
onStoppedNotification: null,
|
|
678
678
|
Promise: void 0,
|
|
679
679
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
680
680
|
useDeprecatedNextContext: !1
|
|
681
|
-
},
|
|
681
|
+
}, $r = {
|
|
682
682
|
setTimeout: function(e, t) {
|
|
683
683
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
684
684
|
r[n - 2] = arguments[n];
|
|
685
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
685
|
+
return setTimeout.apply(void 0, V([e, t], Ue(r)));
|
|
686
686
|
},
|
|
687
687
|
clearTimeout: function(e) {
|
|
688
688
|
return clearTimeout(e);
|
|
689
689
|
},
|
|
690
690
|
delegate: void 0
|
|
691
691
|
};
|
|
692
|
-
function
|
|
693
|
-
|
|
692
|
+
function Ur(e) {
|
|
693
|
+
$r.setTimeout(function() {
|
|
694
694
|
throw e;
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function ot() {
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function de(e) {
|
|
700
700
|
e();
|
|
701
701
|
}
|
|
702
|
-
var
|
|
702
|
+
var Mt = function(e) {
|
|
703
703
|
N(t, e);
|
|
704
704
|
function t(r) {
|
|
705
705
|
var n = e.call(this) || this;
|
|
706
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
706
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = jr, n;
|
|
707
707
|
}
|
|
708
708
|
return t.create = function(r, n, i) {
|
|
709
|
-
return new
|
|
709
|
+
return new Ge(r, n, i);
|
|
710
710
|
}, t.prototype.next = function(r) {
|
|
711
711
|
this.isStopped || this._next(r);
|
|
712
712
|
}, t.prototype.error = function(r) {
|
|
@@ -730,7 +730,11 @@ var It = function(e) {
|
|
|
730
730
|
this.unsubscribe();
|
|
731
731
|
}
|
|
732
732
|
}, t;
|
|
733
|
-
}(ve),
|
|
733
|
+
}(ve), Dr = Function.prototype.bind;
|
|
734
|
+
function He(e, t) {
|
|
735
|
+
return Dr.call(e, t);
|
|
736
|
+
}
|
|
737
|
+
var Gr = function() {
|
|
734
738
|
function e(t) {
|
|
735
739
|
this.partialObserver = t;
|
|
736
740
|
}
|
|
@@ -740,7 +744,7 @@ var It = function(e) {
|
|
|
740
744
|
try {
|
|
741
745
|
r.next(t);
|
|
742
746
|
} catch (n) {
|
|
743
|
-
|
|
747
|
+
ce(n);
|
|
744
748
|
}
|
|
745
749
|
}, e.prototype.error = function(t) {
|
|
746
750
|
var r = this.partialObserver;
|
|
@@ -748,56 +752,68 @@ var It = function(e) {
|
|
|
748
752
|
try {
|
|
749
753
|
r.error(t);
|
|
750
754
|
} catch (n) {
|
|
751
|
-
|
|
755
|
+
ce(n);
|
|
752
756
|
}
|
|
753
757
|
else
|
|
754
|
-
|
|
758
|
+
ce(t);
|
|
755
759
|
}, e.prototype.complete = function() {
|
|
756
760
|
var t = this.partialObserver;
|
|
757
761
|
if (t.complete)
|
|
758
762
|
try {
|
|
759
763
|
t.complete();
|
|
760
764
|
} catch (r) {
|
|
761
|
-
|
|
765
|
+
ce(r);
|
|
762
766
|
}
|
|
763
767
|
}, e;
|
|
764
|
-
}(),
|
|
768
|
+
}(), Ge = function(e) {
|
|
765
769
|
N(t, e);
|
|
766
770
|
function t(r, n, i) {
|
|
767
771
|
var o = e.call(this) || this, a;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
772
|
+
if (O(r) || !r)
|
|
773
|
+
a = {
|
|
774
|
+
next: r ?? void 0,
|
|
775
|
+
error: n ?? void 0,
|
|
776
|
+
complete: i ?? void 0
|
|
777
|
+
};
|
|
778
|
+
else {
|
|
779
|
+
var s;
|
|
780
|
+
o && Lt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
781
|
+
return o.unsubscribe();
|
|
782
|
+
}, a = {
|
|
783
|
+
next: r.next && He(r.next, s),
|
|
784
|
+
error: r.error && He(r.error, s),
|
|
785
|
+
complete: r.complete && He(r.complete, s)
|
|
786
|
+
}) : a = r;
|
|
787
|
+
}
|
|
788
|
+
return o.destination = new Gr(a), o;
|
|
773
789
|
}
|
|
774
790
|
return t;
|
|
775
|
-
}(
|
|
776
|
-
function
|
|
777
|
-
|
|
791
|
+
}(Mt);
|
|
792
|
+
function ce(e) {
|
|
793
|
+
Ur(e);
|
|
778
794
|
}
|
|
779
|
-
function
|
|
795
|
+
function Fr(e) {
|
|
780
796
|
throw e;
|
|
781
797
|
}
|
|
782
|
-
var
|
|
798
|
+
var jr = {
|
|
783
799
|
closed: !0,
|
|
784
|
-
next:
|
|
785
|
-
error:
|
|
786
|
-
complete:
|
|
787
|
-
},
|
|
800
|
+
next: ot,
|
|
801
|
+
error: Fr,
|
|
802
|
+
complete: ot
|
|
803
|
+
}, kr = function() {
|
|
788
804
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
789
805
|
}();
|
|
790
|
-
function
|
|
806
|
+
function Wr(e) {
|
|
791
807
|
return e;
|
|
792
808
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.length === 0 ?
|
|
809
|
+
function Vr(e) {
|
|
810
|
+
return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
|
|
795
811
|
return e.reduce(function(n, i) {
|
|
796
812
|
return i(n);
|
|
797
813
|
}, r);
|
|
798
814
|
};
|
|
799
815
|
}
|
|
800
|
-
var
|
|
816
|
+
var st = function() {
|
|
801
817
|
function e(t) {
|
|
802
818
|
t && (this._subscribe = t);
|
|
803
819
|
}
|
|
@@ -805,8 +821,8 @@ var it = function() {
|
|
|
805
821
|
var r = new e();
|
|
806
822
|
return r.source = this, r.operator = t, r;
|
|
807
823
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
808
|
-
var i = this, o =
|
|
809
|
-
return
|
|
824
|
+
var i = this, o = zr(t) ? t : new Ge(t, r, n);
|
|
825
|
+
return de(function() {
|
|
810
826
|
var a = i, s = a.operator, l = a.source;
|
|
811
827
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
812
828
|
}), o;
|
|
@@ -818,8 +834,8 @@ var it = function() {
|
|
|
818
834
|
}
|
|
819
835
|
}, e.prototype.forEach = function(t, r) {
|
|
820
836
|
var n = this;
|
|
821
|
-
return r =
|
|
822
|
-
var a = new
|
|
837
|
+
return r = at(r), new r(function(i, o) {
|
|
838
|
+
var a = new Ge({
|
|
823
839
|
next: function(s) {
|
|
824
840
|
try {
|
|
825
841
|
t(s);
|
|
@@ -835,15 +851,15 @@ var it = function() {
|
|
|
835
851
|
}, e.prototype._subscribe = function(t) {
|
|
836
852
|
var r;
|
|
837
853
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
838
|
-
}, e.prototype[
|
|
854
|
+
}, e.prototype[kr] = function() {
|
|
839
855
|
return this;
|
|
840
856
|
}, e.prototype.pipe = function() {
|
|
841
857
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
842
858
|
t[r] = arguments[r];
|
|
843
|
-
return
|
|
859
|
+
return Vr(t)(this);
|
|
844
860
|
}, e.prototype.toPromise = function(t) {
|
|
845
861
|
var r = this;
|
|
846
|
-
return t =
|
|
862
|
+
return t = at(t), new t(function(n, i) {
|
|
847
863
|
var o;
|
|
848
864
|
r.subscribe(function(a) {
|
|
849
865
|
return o = a;
|
|
@@ -857,40 +873,40 @@ var it = function() {
|
|
|
857
873
|
return new e(t);
|
|
858
874
|
}, e;
|
|
859
875
|
}();
|
|
860
|
-
function
|
|
876
|
+
function at(e) {
|
|
861
877
|
var t;
|
|
862
|
-
return (t = e ??
|
|
878
|
+
return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
863
879
|
}
|
|
864
|
-
function
|
|
880
|
+
function Xr(e) {
|
|
865
881
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
866
882
|
}
|
|
867
|
-
function
|
|
868
|
-
return e && e instanceof
|
|
883
|
+
function zr(e) {
|
|
884
|
+
return e && e instanceof Mt || Xr(e) && Nt(e);
|
|
869
885
|
}
|
|
870
|
-
var
|
|
886
|
+
var Zr = Ot(function(e) {
|
|
871
887
|
return function() {
|
|
872
888
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
873
889
|
};
|
|
874
|
-
}),
|
|
890
|
+
}), Ct = function(e) {
|
|
875
891
|
N(t, e);
|
|
876
892
|
function t() {
|
|
877
893
|
var r = e.call(this) || this;
|
|
878
894
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
879
895
|
}
|
|
880
896
|
return t.prototype.lift = function(r) {
|
|
881
|
-
var n = new
|
|
897
|
+
var n = new ut(this, this);
|
|
882
898
|
return n.operator = r, n;
|
|
883
899
|
}, t.prototype._throwIfClosed = function() {
|
|
884
900
|
if (this.closed)
|
|
885
|
-
throw new
|
|
901
|
+
throw new Zr();
|
|
886
902
|
}, t.prototype.next = function(r) {
|
|
887
903
|
var n = this;
|
|
888
|
-
|
|
904
|
+
de(function() {
|
|
889
905
|
var i, o;
|
|
890
906
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
891
907
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
892
908
|
try {
|
|
893
|
-
for (var a =
|
|
909
|
+
for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
894
910
|
var l = s.value;
|
|
895
911
|
l.next(r);
|
|
896
912
|
}
|
|
@@ -908,7 +924,7 @@ var Vr = Pt(function(e) {
|
|
|
908
924
|
});
|
|
909
925
|
}, t.prototype.error = function(r) {
|
|
910
926
|
var n = this;
|
|
911
|
-
|
|
927
|
+
de(function() {
|
|
912
928
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
913
929
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
914
930
|
for (var i = n.observers; i.length; )
|
|
@@ -917,7 +933,7 @@ var Vr = Pt(function(e) {
|
|
|
917
933
|
});
|
|
918
934
|
}, t.prototype.complete = function() {
|
|
919
935
|
var r = this;
|
|
920
|
-
|
|
936
|
+
de(function() {
|
|
921
937
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
922
938
|
r.isStopped = !0;
|
|
923
939
|
for (var n = r.observers; n.length; )
|
|
@@ -939,19 +955,19 @@ var Vr = Pt(function(e) {
|
|
|
939
955
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
940
956
|
}, t.prototype._innerSubscribe = function(r) {
|
|
941
957
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
942
|
-
return o || a ?
|
|
943
|
-
n.currentObservers = null,
|
|
958
|
+
return o || a ? It : (this.currentObservers = null, s.push(r), new ve(function() {
|
|
959
|
+
n.currentObservers = null, De(s, r);
|
|
944
960
|
}));
|
|
945
961
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
946
962
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
947
963
|
i ? r.error(o) : a && r.complete();
|
|
948
964
|
}, t.prototype.asObservable = function() {
|
|
949
|
-
var r = new
|
|
965
|
+
var r = new st();
|
|
950
966
|
return r.source = this, r;
|
|
951
967
|
}, t.create = function(r, n) {
|
|
952
|
-
return new
|
|
968
|
+
return new ut(r, n);
|
|
953
969
|
}, t;
|
|
954
|
-
}(
|
|
970
|
+
}(st), ut = function(e) {
|
|
955
971
|
N(t, e);
|
|
956
972
|
function t(r, n) {
|
|
957
973
|
var i = e.call(this) || this;
|
|
@@ -968,17 +984,17 @@ var Vr = Pt(function(e) {
|
|
|
968
984
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
969
985
|
}, t.prototype._subscribe = function(r) {
|
|
970
986
|
var n, i;
|
|
971
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
987
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
972
988
|
}, t;
|
|
973
|
-
}(
|
|
989
|
+
}(Ct), Rt = {
|
|
974
990
|
now: function() {
|
|
975
|
-
return (
|
|
991
|
+
return (Rt.delegate || Date).now();
|
|
976
992
|
},
|
|
977
993
|
delegate: void 0
|
|
978
|
-
},
|
|
994
|
+
}, Qr = function(e) {
|
|
979
995
|
N(t, e);
|
|
980
996
|
function t(r, n, i) {
|
|
981
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
997
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
|
|
982
998
|
var o = e.call(this) || this;
|
|
983
999
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
984
1000
|
}
|
|
@@ -998,15 +1014,15 @@ var Vr = Pt(function(e) {
|
|
|
998
1014
|
u && o.splice(0, u + 1);
|
|
999
1015
|
}
|
|
1000
1016
|
}, t;
|
|
1001
|
-
}(
|
|
1002
|
-
const
|
|
1003
|
-
if (
|
|
1004
|
-
const r = new
|
|
1005
|
-
|
|
1017
|
+
}(Ct);
|
|
1018
|
+
const ht = [], lt = {}, Jr = (e, t = 0) => {
|
|
1019
|
+
if (ht.indexOf(e) == -1) {
|
|
1020
|
+
const r = new Qr(t);
|
|
1021
|
+
lt[e] = r, ht.push(e);
|
|
1006
1022
|
}
|
|
1007
|
-
return
|
|
1023
|
+
return lt[e];
|
|
1008
1024
|
}, j = [];
|
|
1009
|
-
function
|
|
1025
|
+
function qr(e, t) {
|
|
1010
1026
|
return {
|
|
1011
1027
|
subscribe: _e(e, t).subscribe
|
|
1012
1028
|
};
|
|
@@ -1015,7 +1031,7 @@ function _e(e, t = B) {
|
|
|
1015
1031
|
let r;
|
|
1016
1032
|
const n = /* @__PURE__ */ new Set();
|
|
1017
1033
|
function i(s) {
|
|
1018
|
-
if (
|
|
1034
|
+
if (Bt(e, s) && (e = s, r)) {
|
|
1019
1035
|
const l = !j.length;
|
|
1020
1036
|
for (const u of n)
|
|
1021
1037
|
u[1](), j.push(u, e);
|
|
@@ -1042,96 +1058,96 @@ function q(e, t, r) {
|
|
|
1042
1058
|
if (!i.every(Boolean))
|
|
1043
1059
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1044
1060
|
const o = t.length < 2;
|
|
1045
|
-
return
|
|
1061
|
+
return qr(r, (a, s) => {
|
|
1046
1062
|
let l = !1;
|
|
1047
1063
|
const u = [];
|
|
1048
|
-
let h = 0,
|
|
1049
|
-
const
|
|
1064
|
+
let h = 0, c = B;
|
|
1065
|
+
const f = () => {
|
|
1050
1066
|
if (h)
|
|
1051
1067
|
return;
|
|
1052
|
-
|
|
1068
|
+
c();
|
|
1053
1069
|
const m = t(n ? u[0] : u, a, s);
|
|
1054
|
-
o ? a(m) :
|
|
1055
|
-
},
|
|
1056
|
-
(m, g) =>
|
|
1070
|
+
o ? a(m) : c = Qe(m) ? m : B;
|
|
1071
|
+
}, p = i.map(
|
|
1072
|
+
(m, g) => Pt(
|
|
1057
1073
|
m,
|
|
1058
1074
|
(w) => {
|
|
1059
|
-
u[g] = w, h &= ~(1 << g), l &&
|
|
1075
|
+
u[g] = w, h &= ~(1 << g), l && f();
|
|
1060
1076
|
},
|
|
1061
1077
|
() => {
|
|
1062
1078
|
h |= 1 << g;
|
|
1063
1079
|
}
|
|
1064
1080
|
)
|
|
1065
1081
|
);
|
|
1066
|
-
return l = !0,
|
|
1067
|
-
se(
|
|
1082
|
+
return l = !0, f(), function() {
|
|
1083
|
+
se(p), c(), l = !1;
|
|
1068
1084
|
};
|
|
1069
1085
|
});
|
|
1070
1086
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1087
|
+
function Yr(e) {
|
|
1088
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1073
1089
|
}
|
|
1074
|
-
var
|
|
1075
|
-
return
|
|
1090
|
+
var Kr = function(t) {
|
|
1091
|
+
return en(t) && !tn(t);
|
|
1076
1092
|
};
|
|
1077
|
-
function
|
|
1093
|
+
function en(e) {
|
|
1078
1094
|
return !!e && typeof e == "object";
|
|
1079
1095
|
}
|
|
1080
|
-
function
|
|
1096
|
+
function tn(e) {
|
|
1081
1097
|
var t = Object.prototype.toString.call(e);
|
|
1082
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1098
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
1083
1099
|
}
|
|
1084
|
-
var
|
|
1085
|
-
function
|
|
1086
|
-
return e.$$typeof ===
|
|
1100
|
+
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
|
|
1101
|
+
function on(e) {
|
|
1102
|
+
return e.$$typeof === nn;
|
|
1087
1103
|
}
|
|
1088
|
-
function
|
|
1104
|
+
function sn(e) {
|
|
1089
1105
|
return Array.isArray(e) ? [] : {};
|
|
1090
1106
|
}
|
|
1091
1107
|
function ie(e, t) {
|
|
1092
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1108
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(sn(e), e, t) : e;
|
|
1093
1109
|
}
|
|
1094
|
-
function
|
|
1110
|
+
function an(e, t, r) {
|
|
1095
1111
|
return e.concat(t).map(function(n) {
|
|
1096
1112
|
return ie(n, r);
|
|
1097
1113
|
});
|
|
1098
1114
|
}
|
|
1099
|
-
function
|
|
1115
|
+
function un(e, t) {
|
|
1100
1116
|
if (!t.customMerge)
|
|
1101
1117
|
return X;
|
|
1102
1118
|
var r = t.customMerge(e);
|
|
1103
1119
|
return typeof r == "function" ? r : X;
|
|
1104
1120
|
}
|
|
1105
|
-
function
|
|
1121
|
+
function hn(e) {
|
|
1106
1122
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1107
1123
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1108
1124
|
}) : [];
|
|
1109
1125
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return Object.keys(e).concat(
|
|
1126
|
+
function ct(e) {
|
|
1127
|
+
return Object.keys(e).concat(hn(e));
|
|
1112
1128
|
}
|
|
1113
|
-
function
|
|
1129
|
+
function $t(e, t) {
|
|
1114
1130
|
try {
|
|
1115
1131
|
return t in e;
|
|
1116
1132
|
} catch {
|
|
1117
1133
|
return !1;
|
|
1118
1134
|
}
|
|
1119
1135
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return
|
|
1136
|
+
function ln(e, t) {
|
|
1137
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1122
1138
|
}
|
|
1123
|
-
function
|
|
1139
|
+
function cn(e, t, r) {
|
|
1124
1140
|
var n = {};
|
|
1125
|
-
return r.isMergeableObject(e) &&
|
|
1141
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1126
1142
|
n[i] = ie(e[i], r);
|
|
1127
|
-
}),
|
|
1128
|
-
|
|
1143
|
+
}), ct(t).forEach(function(i) {
|
|
1144
|
+
ln(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1129
1145
|
}), n;
|
|
1130
1146
|
}
|
|
1131
1147
|
function X(e, t, r) {
|
|
1132
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1148
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1133
1149
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1134
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1150
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ie(t, r);
|
|
1135
1151
|
}
|
|
1136
1152
|
X.all = function(t, r) {
|
|
1137
1153
|
if (!Array.isArray(t))
|
|
@@ -1140,60 +1156,58 @@ X.all = function(t, r) {
|
|
|
1140
1156
|
return X(n, i, r);
|
|
1141
1157
|
}, {});
|
|
1142
1158
|
};
|
|
1143
|
-
var
|
|
1144
|
-
const
|
|
1145
|
-
function
|
|
1146
|
-
var r = t && t.cache ? t.cache :
|
|
1159
|
+
var fn = X, pn = fn;
|
|
1160
|
+
const dn = /* @__PURE__ */ Yr(pn);
|
|
1161
|
+
function Be(e, t) {
|
|
1162
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : bn;
|
|
1147
1163
|
return i(e, {
|
|
1148
1164
|
cache: r,
|
|
1149
1165
|
serializer: n
|
|
1150
1166
|
});
|
|
1151
1167
|
}
|
|
1152
|
-
function
|
|
1168
|
+
function mn(e) {
|
|
1153
1169
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1154
1170
|
}
|
|
1155
|
-
function
|
|
1156
|
-
var i =
|
|
1171
|
+
function Ut(e, t, r, n) {
|
|
1172
|
+
var i = mn(n) ? n : r(n), o = t.get(i);
|
|
1157
1173
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1158
1174
|
}
|
|
1159
|
-
function
|
|
1175
|
+
function Dt(e, t, r) {
|
|
1160
1176
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1161
1177
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1162
1178
|
}
|
|
1163
|
-
function
|
|
1179
|
+
function qe(e, t, r, n, i) {
|
|
1164
1180
|
return r.bind(t, e, n, i);
|
|
1165
1181
|
}
|
|
1166
|
-
function
|
|
1167
|
-
var r = e.length === 1 ?
|
|
1168
|
-
return
|
|
1182
|
+
function bn(e, t) {
|
|
1183
|
+
var r = e.length === 1 ? Ut : Dt;
|
|
1184
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
1169
1185
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1186
|
+
function gn(e, t) {
|
|
1187
|
+
return qe(e, this, Dt, t.cache.create(), t.serializer);
|
|
1172
1188
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1189
|
+
function yn(e, t) {
|
|
1190
|
+
return qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1175
1191
|
}
|
|
1176
|
-
var
|
|
1192
|
+
var vn = function() {
|
|
1177
1193
|
return JSON.stringify(arguments);
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}()
|
|
1190
|
-
), yn = {
|
|
1194
|
+
};
|
|
1195
|
+
function Ye() {
|
|
1196
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1197
|
+
}
|
|
1198
|
+
Ye.prototype.get = function(e) {
|
|
1199
|
+
return this.cache[e];
|
|
1200
|
+
};
|
|
1201
|
+
Ye.prototype.set = function(e, t) {
|
|
1202
|
+
this.cache[e] = t;
|
|
1203
|
+
};
|
|
1204
|
+
var _n = {
|
|
1191
1205
|
create: function() {
|
|
1192
|
-
return new
|
|
1206
|
+
return new Ye();
|
|
1193
1207
|
}
|
|
1194
|
-
},
|
|
1195
|
-
variadic:
|
|
1196
|
-
monadic:
|
|
1208
|
+
}, Pe = {
|
|
1209
|
+
variadic: gn,
|
|
1210
|
+
monadic: yn
|
|
1197
1211
|
}, b;
|
|
1198
1212
|
(function(e) {
|
|
1199
1213
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -1206,43 +1220,43 @@ var z;
|
|
|
1206
1220
|
(function(e) {
|
|
1207
1221
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1208
1222
|
})(z || (z = {}));
|
|
1209
|
-
function
|
|
1223
|
+
function ft(e) {
|
|
1210
1224
|
return e.type === _.literal;
|
|
1211
1225
|
}
|
|
1212
|
-
function
|
|
1226
|
+
function En(e) {
|
|
1213
1227
|
return e.type === _.argument;
|
|
1214
1228
|
}
|
|
1215
|
-
function
|
|
1229
|
+
function Gt(e) {
|
|
1216
1230
|
return e.type === _.number;
|
|
1217
1231
|
}
|
|
1218
|
-
function
|
|
1232
|
+
function Ft(e) {
|
|
1219
1233
|
return e.type === _.date;
|
|
1220
1234
|
}
|
|
1221
|
-
function
|
|
1235
|
+
function jt(e) {
|
|
1222
1236
|
return e.type === _.time;
|
|
1223
1237
|
}
|
|
1224
|
-
function
|
|
1238
|
+
function kt(e) {
|
|
1225
1239
|
return e.type === _.select;
|
|
1226
1240
|
}
|
|
1227
|
-
function
|
|
1241
|
+
function Wt(e) {
|
|
1228
1242
|
return e.type === _.plural;
|
|
1229
1243
|
}
|
|
1230
|
-
function
|
|
1244
|
+
function xn(e) {
|
|
1231
1245
|
return e.type === _.pound;
|
|
1232
1246
|
}
|
|
1233
|
-
function
|
|
1247
|
+
function Vt(e) {
|
|
1234
1248
|
return e.type === _.tag;
|
|
1235
1249
|
}
|
|
1236
|
-
function
|
|
1250
|
+
function Xt(e) {
|
|
1237
1251
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1238
1252
|
}
|
|
1239
|
-
function
|
|
1253
|
+
function Fe(e) {
|
|
1240
1254
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1241
1255
|
}
|
|
1242
|
-
var
|
|
1243
|
-
function
|
|
1256
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
1257
|
+
function Sn(e) {
|
|
1244
1258
|
var t = {};
|
|
1245
|
-
return e.replace(
|
|
1259
|
+
return e.replace(wn, function(r) {
|
|
1246
1260
|
var n = r.length;
|
|
1247
1261
|
switch (r[0]) {
|
|
1248
1262
|
case "G":
|
|
@@ -1331,36 +1345,36 @@ function xn(e) {
|
|
|
1331
1345
|
return "";
|
|
1332
1346
|
}), t;
|
|
1333
1347
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1348
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1349
|
+
function Hn(e) {
|
|
1336
1350
|
if (e.length === 0)
|
|
1337
1351
|
throw new Error("Number skeleton cannot be empty");
|
|
1338
|
-
for (var t = e.split(
|
|
1339
|
-
return
|
|
1352
|
+
for (var t = e.split(Tn).filter(function(f) {
|
|
1353
|
+
return f.length > 0;
|
|
1340
1354
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1341
1355
|
var o = i[n], a = o.split("/");
|
|
1342
1356
|
if (a.length === 0)
|
|
1343
1357
|
throw new Error("Invalid number skeleton");
|
|
1344
1358
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1345
|
-
var
|
|
1346
|
-
if (
|
|
1359
|
+
var c = h[u];
|
|
1360
|
+
if (c.length === 0)
|
|
1347
1361
|
throw new Error("Invalid number skeleton");
|
|
1348
1362
|
}
|
|
1349
1363
|
r.push({ stem: s, options: l });
|
|
1350
1364
|
}
|
|
1351
1365
|
return r;
|
|
1352
1366
|
}
|
|
1353
|
-
function
|
|
1367
|
+
function Bn(e) {
|
|
1354
1368
|
return e.replace(/^(.*?)-/, "");
|
|
1355
1369
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1370
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1371
|
+
function dt(e) {
|
|
1358
1372
|
var t = {};
|
|
1359
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1373
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1360
1374
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1361
1375
|
}), t;
|
|
1362
1376
|
}
|
|
1363
|
-
function
|
|
1377
|
+
function Jt(e) {
|
|
1364
1378
|
switch (e) {
|
|
1365
1379
|
case "sign-auto":
|
|
1366
1380
|
return {
|
|
@@ -1400,7 +1414,7 @@ function zt(e) {
|
|
|
1400
1414
|
};
|
|
1401
1415
|
}
|
|
1402
1416
|
}
|
|
1403
|
-
function
|
|
1417
|
+
function An(e) {
|
|
1404
1418
|
var t;
|
|
1405
1419
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1406
1420
|
notation: "engineering"
|
|
@@ -1408,17 +1422,17 @@ function Bn(e) {
|
|
|
1408
1422
|
notation: "scientific"
|
|
1409
1423
|
}, e = e.slice(1)), t) {
|
|
1410
1424
|
var r = e.slice(0, 2);
|
|
1411
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1425
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1412
1426
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1413
1427
|
t.minimumIntegerDigits = e.length;
|
|
1414
1428
|
}
|
|
1415
1429
|
return t;
|
|
1416
1430
|
}
|
|
1417
|
-
function
|
|
1418
|
-
var t = {}, r =
|
|
1431
|
+
function mt(e) {
|
|
1432
|
+
var t = {}, r = Jt(e);
|
|
1419
1433
|
return r || t;
|
|
1420
1434
|
}
|
|
1421
|
-
function
|
|
1435
|
+
function On(e) {
|
|
1422
1436
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1423
1437
|
var i = n[r];
|
|
1424
1438
|
switch (i.stem) {
|
|
@@ -1442,7 +1456,7 @@ function Pn(e) {
|
|
|
1442
1456
|
continue;
|
|
1443
1457
|
case "measure-unit":
|
|
1444
1458
|
case "unit":
|
|
1445
|
-
t.style = "unit", t.unit =
|
|
1459
|
+
t.style = "unit", t.unit = Bn(i.options[0]);
|
|
1446
1460
|
continue;
|
|
1447
1461
|
case "compact-short":
|
|
1448
1462
|
case "K":
|
|
@@ -1454,12 +1468,12 @@ function Pn(e) {
|
|
|
1454
1468
|
continue;
|
|
1455
1469
|
case "scientific":
|
|
1456
1470
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1457
|
-
return v(v({}, l),
|
|
1471
|
+
return v(v({}, l), mt(u));
|
|
1458
1472
|
}, {}));
|
|
1459
1473
|
continue;
|
|
1460
1474
|
case "engineering":
|
|
1461
1475
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1462
|
-
return v(v({}, l),
|
|
1476
|
+
return v(v({}, l), mt(u));
|
|
1463
1477
|
}, {}));
|
|
1464
1478
|
continue;
|
|
1465
1479
|
case "notation-simple":
|
|
@@ -1504,45 +1518,45 @@ function Pn(e) {
|
|
|
1504
1518
|
case "integer-width":
|
|
1505
1519
|
if (i.options.length > 1)
|
|
1506
1520
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1507
|
-
i.options[0].replace(
|
|
1521
|
+
i.options[0].replace(Pn, function(l, u, h, c, f, p) {
|
|
1508
1522
|
if (u)
|
|
1509
1523
|
t.minimumIntegerDigits = h.length;
|
|
1510
1524
|
else {
|
|
1511
|
-
if (
|
|
1525
|
+
if (c && f)
|
|
1512
1526
|
throw new Error("We currently do not support maximum integer digits");
|
|
1513
|
-
if (
|
|
1527
|
+
if (p)
|
|
1514
1528
|
throw new Error("We currently do not support exact integer digits");
|
|
1515
1529
|
}
|
|
1516
1530
|
return "";
|
|
1517
1531
|
});
|
|
1518
1532
|
continue;
|
|
1519
1533
|
}
|
|
1520
|
-
if (
|
|
1534
|
+
if (Qt.test(i.stem)) {
|
|
1521
1535
|
t.minimumIntegerDigits = i.stem.length;
|
|
1522
1536
|
continue;
|
|
1523
1537
|
}
|
|
1524
|
-
if (
|
|
1538
|
+
if (pt.test(i.stem)) {
|
|
1525
1539
|
if (i.options.length > 1)
|
|
1526
1540
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1527
|
-
i.stem.replace(
|
|
1528
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1541
|
+
i.stem.replace(pt, function(l, u, h, c, f, p) {
|
|
1542
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1529
1543
|
});
|
|
1530
1544
|
var o = i.options[0];
|
|
1531
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1545
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), dt(o)));
|
|
1532
1546
|
continue;
|
|
1533
1547
|
}
|
|
1534
|
-
if (
|
|
1535
|
-
t = v(v({}, t),
|
|
1548
|
+
if (Zt.test(i.stem)) {
|
|
1549
|
+
t = v(v({}, t), dt(i.stem));
|
|
1536
1550
|
continue;
|
|
1537
1551
|
}
|
|
1538
|
-
var a =
|
|
1552
|
+
var a = Jt(i.stem);
|
|
1539
1553
|
a && (t = v(v({}, t), a));
|
|
1540
|
-
var s =
|
|
1554
|
+
var s = An(i.stem);
|
|
1541
1555
|
s && (t = v(v({}, t), s));
|
|
1542
1556
|
}
|
|
1543
1557
|
return t;
|
|
1544
1558
|
}
|
|
1545
|
-
var
|
|
1559
|
+
var fe = {
|
|
1546
1560
|
"001": [
|
|
1547
1561
|
"H",
|
|
1548
1562
|
"h"
|
|
@@ -2957,13 +2971,13 @@ var ce = {
|
|
|
2957
2971
|
"h"
|
|
2958
2972
|
]
|
|
2959
2973
|
};
|
|
2960
|
-
function
|
|
2974
|
+
function In(e, t) {
|
|
2961
2975
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2962
2976
|
var i = e.charAt(n);
|
|
2963
2977
|
if (i === "j") {
|
|
2964
2978
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2965
2979
|
o++, n++;
|
|
2966
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2980
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Nn(t);
|
|
2967
2981
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2968
2982
|
r += l;
|
|
2969
2983
|
for (; a-- > 0; )
|
|
@@ -2973,7 +2987,7 @@ function An(e, t) {
|
|
|
2973
2987
|
}
|
|
2974
2988
|
return r;
|
|
2975
2989
|
}
|
|
2976
|
-
function
|
|
2990
|
+
function Nn(e) {
|
|
2977
2991
|
var t = e.hourCycle;
|
|
2978
2992
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2979
2993
|
e.hourCycles && // @ts-ignore
|
|
@@ -2992,23 +3006,23 @@ function On(e) {
|
|
|
2992
3006
|
}
|
|
2993
3007
|
var r = e.language, n;
|
|
2994
3008
|
r !== "root" && (n = e.maximize().region);
|
|
2995
|
-
var i =
|
|
3009
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2996
3010
|
return i[0];
|
|
2997
3011
|
}
|
|
2998
|
-
var
|
|
3012
|
+
var Ae, Ln = new RegExp("^".concat(zt.source, "*")), Mn = new RegExp("".concat(zt.source, "*$"));
|
|
2999
3013
|
function y(e, t) {
|
|
3000
3014
|
return { start: e, end: t };
|
|
3001
3015
|
}
|
|
3002
|
-
var
|
|
3016
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, $n = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Fn = !!Number.isSafeInteger, jn = Fn ? Number.isSafeInteger : function(e) {
|
|
3003
3017
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3004
|
-
},
|
|
3018
|
+
}, je = !0;
|
|
3005
3019
|
try {
|
|
3006
|
-
var
|
|
3007
|
-
|
|
3020
|
+
var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3021
|
+
je = ((Ae = kn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3008
3022
|
} catch {
|
|
3009
|
-
|
|
3023
|
+
je = !1;
|
|
3010
3024
|
}
|
|
3011
|
-
var
|
|
3025
|
+
var bt = Cn ? (
|
|
3012
3026
|
// Native
|
|
3013
3027
|
function(t, r, n) {
|
|
3014
3028
|
return t.startsWith(r, n);
|
|
@@ -3018,7 +3032,7 @@ var pt = Ln ? (
|
|
|
3018
3032
|
function(t, r, n) {
|
|
3019
3033
|
return t.slice(n, n + r.length) === r;
|
|
3020
3034
|
}
|
|
3021
|
-
),
|
|
3035
|
+
), ke = Rn ? String.fromCodePoint : (
|
|
3022
3036
|
// IE11
|
|
3023
3037
|
function() {
|
|
3024
3038
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3030,9 +3044,9 @@ var pt = Ln ? (
|
|
|
3030
3044
|
}
|
|
3031
3045
|
return n;
|
|
3032
3046
|
}
|
|
3033
|
-
),
|
|
3047
|
+
), gt = (
|
|
3034
3048
|
// native
|
|
3035
|
-
|
|
3049
|
+
$n ? Object.fromEntries : (
|
|
3036
3050
|
// Ponyfill
|
|
3037
3051
|
function(t) {
|
|
3038
3052
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3042,7 +3056,7 @@ var pt = Ln ? (
|
|
|
3042
3056
|
return r;
|
|
3043
3057
|
}
|
|
3044
3058
|
)
|
|
3045
|
-
),
|
|
3059
|
+
), qt = Un ? (
|
|
3046
3060
|
// Native
|
|
3047
3061
|
function(t, r) {
|
|
3048
3062
|
return t.codePointAt(r);
|
|
@@ -3056,7 +3070,7 @@ var pt = Ln ? (
|
|
|
3056
3070
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3057
3071
|
}
|
|
3058
3072
|
}
|
|
3059
|
-
),
|
|
3073
|
+
), Wn = Dn ? (
|
|
3060
3074
|
// Native
|
|
3061
3075
|
function(t) {
|
|
3062
3076
|
return t.trimStart();
|
|
@@ -3064,9 +3078,9 @@ var pt = Ln ? (
|
|
|
3064
3078
|
) : (
|
|
3065
3079
|
// Ponyfill
|
|
3066
3080
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3081
|
+
return t.replace(Ln, "");
|
|
3068
3082
|
}
|
|
3069
|
-
),
|
|
3083
|
+
), Vn = Gn ? (
|
|
3070
3084
|
// Native
|
|
3071
3085
|
function(t) {
|
|
3072
3086
|
return t.trimEnd();
|
|
@@ -3074,32 +3088,32 @@ var pt = Ln ? (
|
|
|
3074
3088
|
) : (
|
|
3075
3089
|
// Ponyfill
|
|
3076
3090
|
function(t) {
|
|
3077
|
-
return t.replace(
|
|
3091
|
+
return t.replace(Mn, "");
|
|
3078
3092
|
}
|
|
3079
3093
|
);
|
|
3080
|
-
function
|
|
3094
|
+
function Yt(e, t) {
|
|
3081
3095
|
return new RegExp(e, t);
|
|
3082
3096
|
}
|
|
3083
|
-
var
|
|
3084
|
-
if (
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3097
|
+
var We;
|
|
3098
|
+
if (je) {
|
|
3099
|
+
var yt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3100
|
+
We = function(t, r) {
|
|
3087
3101
|
var n;
|
|
3088
|
-
|
|
3089
|
-
var i =
|
|
3102
|
+
yt.lastIndex = r;
|
|
3103
|
+
var i = yt.exec(t);
|
|
3090
3104
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3091
3105
|
};
|
|
3092
3106
|
} else
|
|
3093
|
-
|
|
3107
|
+
We = function(t, r) {
|
|
3094
3108
|
for (var n = []; ; ) {
|
|
3095
|
-
var i =
|
|
3096
|
-
if (i === void 0 ||
|
|
3109
|
+
var i = qt(t, r);
|
|
3110
|
+
if (i === void 0 || Kt(i) || Qn(i))
|
|
3097
3111
|
break;
|
|
3098
3112
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3099
3113
|
}
|
|
3100
|
-
return
|
|
3114
|
+
return ke.apply(void 0, n);
|
|
3101
3115
|
};
|
|
3102
|
-
var
|
|
3116
|
+
var Xn = (
|
|
3103
3117
|
/** @class */
|
|
3104
3118
|
function() {
|
|
3105
3119
|
function e(t, r) {
|
|
@@ -3130,7 +3144,7 @@ var Wn = (
|
|
|
3130
3144
|
if (n)
|
|
3131
3145
|
break;
|
|
3132
3146
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3133
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3147
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3134
3148
|
var a = this.parseTag(t, r);
|
|
3135
3149
|
if (a.err)
|
|
3136
3150
|
return a;
|
|
@@ -3163,7 +3177,7 @@ var Wn = (
|
|
|
3163
3177
|
return o;
|
|
3164
3178
|
var a = o.val, s = this.clonePosition();
|
|
3165
3179
|
if (this.bumpIf("</")) {
|
|
3166
|
-
if (this.isEOF() || !
|
|
3180
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3167
3181
|
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3168
3182
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3169
3183
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3181,7 +3195,7 @@ var Wn = (
|
|
|
3181
3195
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3182
3196
|
}, e.prototype.parseTagName = function() {
|
|
3183
3197
|
var t = this.offset();
|
|
3184
|
-
for (this.bump(); !this.isEOF() &&
|
|
3198
|
+
for (this.bump(); !this.isEOF() && Zn(this.char()); )
|
|
3185
3199
|
this.bump();
|
|
3186
3200
|
return this.message.slice(t, this.offset());
|
|
3187
3201
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3210,7 +3224,7 @@ var Wn = (
|
|
|
3210
3224
|
};
|
|
3211
3225
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3212
3226
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3213
|
-
!
|
|
3227
|
+
!zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3214
3228
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3215
3229
|
if (this.isEOF() || this.char() !== 39)
|
|
3216
3230
|
return null;
|
|
@@ -3244,12 +3258,12 @@ var Wn = (
|
|
|
3244
3258
|
r.push(n);
|
|
3245
3259
|
this.bump();
|
|
3246
3260
|
}
|
|
3247
|
-
return
|
|
3261
|
+
return ke.apply(void 0, r);
|
|
3248
3262
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3249
3263
|
if (this.isEOF())
|
|
3250
3264
|
return null;
|
|
3251
3265
|
var n = this.char();
|
|
3252
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3266
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3253
3267
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3254
3268
|
var n = this.clonePosition();
|
|
3255
3269
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3278,7 +3292,7 @@ var Wn = (
|
|
|
3278
3292
|
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3279
3293
|
}
|
|
3280
3294
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3281
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3295
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3282
3296
|
this.bumpTo(i);
|
|
3283
3297
|
var o = this.clonePosition(), a = y(t, o);
|
|
3284
3298
|
return { value: n, location: a };
|
|
@@ -3294,40 +3308,40 @@ var Wn = (
|
|
|
3294
3308
|
var u = null;
|
|
3295
3309
|
if (this.bumpIf(",")) {
|
|
3296
3310
|
this.bumpSpace();
|
|
3297
|
-
var h = this.clonePosition(),
|
|
3298
|
-
if (
|
|
3299
|
-
return
|
|
3300
|
-
var
|
|
3301
|
-
if (
|
|
3311
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3312
|
+
if (c.err)
|
|
3313
|
+
return c;
|
|
3314
|
+
var f = Vn(c.val);
|
|
3315
|
+
if (f.length === 0)
|
|
3302
3316
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3303
|
-
var
|
|
3304
|
-
u = { style:
|
|
3317
|
+
var p = y(h, this.clonePosition());
|
|
3318
|
+
u = { style: f, styleLocation: p };
|
|
3305
3319
|
}
|
|
3306
3320
|
var m = this.tryParseArgumentClose(i);
|
|
3307
3321
|
if (m.err)
|
|
3308
3322
|
return m;
|
|
3309
3323
|
var g = y(i, this.clonePosition());
|
|
3310
|
-
if (u &&
|
|
3311
|
-
var w =
|
|
3324
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3325
|
+
var w = Wn(u.style.slice(2));
|
|
3312
3326
|
if (s === "number") {
|
|
3313
|
-
var
|
|
3314
|
-
return
|
|
3315
|
-
val: { type: _.number, value: n, location: g, style:
|
|
3327
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3328
|
+
return c.err ? c : {
|
|
3329
|
+
val: { type: _.number, value: n, location: g, style: c.val },
|
|
3316
3330
|
err: null
|
|
3317
3331
|
};
|
|
3318
3332
|
} else {
|
|
3319
3333
|
if (w.length === 0)
|
|
3320
3334
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
|
|
3321
3335
|
var L = w;
|
|
3322
|
-
this.locale && (L =
|
|
3323
|
-
var
|
|
3336
|
+
this.locale && (L = In(w, this.locale));
|
|
3337
|
+
var f = {
|
|
3324
3338
|
type: z.dateTime,
|
|
3325
3339
|
pattern: L,
|
|
3326
3340
|
location: u.styleLocation,
|
|
3327
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3341
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(L) : {}
|
|
3328
3342
|
}, P = s === "date" ? _.date : _.time;
|
|
3329
3343
|
return {
|
|
3330
|
-
val: { type: P, value: n, location: g, style:
|
|
3344
|
+
val: { type: P, value: n, location: g, style: f },
|
|
3331
3345
|
err: null
|
|
3332
3346
|
};
|
|
3333
3347
|
}
|
|
@@ -3354,10 +3368,10 @@ var Wn = (
|
|
|
3354
3368
|
if (!this.bumpIf(":"))
|
|
3355
3369
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3356
3370
|
this.bumpSpace();
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3359
|
-
return
|
|
3360
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A =
|
|
3371
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3372
|
+
if (c.err)
|
|
3373
|
+
return c;
|
|
3374
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
|
|
3361
3375
|
}
|
|
3362
3376
|
var U = this.tryParsePluralOrSelectOptions(t, s, r, $);
|
|
3363
3377
|
if (U.err)
|
|
@@ -3370,7 +3384,7 @@ var Wn = (
|
|
|
3370
3384
|
val: {
|
|
3371
3385
|
type: _.select,
|
|
3372
3386
|
value: n,
|
|
3373
|
-
options:
|
|
3387
|
+
options: gt(U.val),
|
|
3374
3388
|
location: he
|
|
3375
3389
|
},
|
|
3376
3390
|
err: null
|
|
@@ -3378,7 +3392,7 @@ var Wn = (
|
|
|
3378
3392
|
val: {
|
|
3379
3393
|
type: _.plural,
|
|
3380
3394
|
value: n,
|
|
3381
|
-
options:
|
|
3395
|
+
options: gt(U.val),
|
|
3382
3396
|
offset: A,
|
|
3383
3397
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3384
3398
|
location: he
|
|
@@ -3429,7 +3443,7 @@ var Wn = (
|
|
|
3429
3443
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3430
3444
|
var n = [];
|
|
3431
3445
|
try {
|
|
3432
|
-
n =
|
|
3446
|
+
n = Hn(t);
|
|
3433
3447
|
} catch {
|
|
3434
3448
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3435
3449
|
}
|
|
@@ -3438,39 +3452,39 @@ var Wn = (
|
|
|
3438
3452
|
type: z.number,
|
|
3439
3453
|
tokens: n,
|
|
3440
3454
|
location: r,
|
|
3441
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3455
|
+
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
3442
3456
|
},
|
|
3443
3457
|
err: null
|
|
3444
3458
|
};
|
|
3445
3459
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3446
3460
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3447
3461
|
if (u.length === 0) {
|
|
3448
|
-
var
|
|
3462
|
+
var c = this.clonePosition();
|
|
3449
3463
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3450
|
-
var
|
|
3451
|
-
if (
|
|
3452
|
-
return
|
|
3453
|
-
h = y(
|
|
3464
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3465
|
+
if (f.err)
|
|
3466
|
+
return f;
|
|
3467
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3454
3468
|
} else
|
|
3455
3469
|
break;
|
|
3456
3470
|
}
|
|
3457
3471
|
if (l.has(u))
|
|
3458
3472
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3459
3473
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3460
|
-
var
|
|
3474
|
+
var p = this.clonePosition();
|
|
3461
3475
|
if (!this.bumpIf("{"))
|
|
3462
3476
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3463
3477
|
var m = this.parseMessage(t + 1, r, n);
|
|
3464
3478
|
if (m.err)
|
|
3465
3479
|
return m;
|
|
3466
|
-
var g = this.tryParseArgumentClose(
|
|
3480
|
+
var g = this.tryParseArgumentClose(p);
|
|
3467
3481
|
if (g.err)
|
|
3468
3482
|
return g;
|
|
3469
3483
|
s.push([
|
|
3470
3484
|
u,
|
|
3471
3485
|
{
|
|
3472
3486
|
value: m.val,
|
|
3473
|
-
location: y(
|
|
3487
|
+
location: y(p, this.clonePosition())
|
|
3474
3488
|
}
|
|
3475
3489
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3476
3490
|
}
|
|
@@ -3486,7 +3500,7 @@ var Wn = (
|
|
|
3486
3500
|
break;
|
|
3487
3501
|
}
|
|
3488
3502
|
var l = y(i, this.clonePosition());
|
|
3489
|
-
return o ? (a *= n,
|
|
3503
|
+
return o ? (a *= n, jn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3490
3504
|
}, e.prototype.offset = function() {
|
|
3491
3505
|
return this.position.offset;
|
|
3492
3506
|
}, e.prototype.isEOF = function() {
|
|
@@ -3501,7 +3515,7 @@ var Wn = (
|
|
|
3501
3515
|
var t = this.position.offset;
|
|
3502
3516
|
if (t >= this.message.length)
|
|
3503
3517
|
throw Error("out of bound");
|
|
3504
|
-
var r =
|
|
3518
|
+
var r = qt(this.message, t);
|
|
3505
3519
|
if (r === void 0)
|
|
3506
3520
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3507
3521
|
return r;
|
|
@@ -3520,7 +3534,7 @@ var Wn = (
|
|
|
3520
3534
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3521
3535
|
}
|
|
3522
3536
|
}, e.prototype.bumpIf = function(t) {
|
|
3523
|
-
if (
|
|
3537
|
+
if (bt(this.message, t, this.offset())) {
|
|
3524
3538
|
for (var r = 0; r < t.length; r++)
|
|
3525
3539
|
this.bump();
|
|
3526
3540
|
return !0;
|
|
@@ -3542,7 +3556,7 @@ var Wn = (
|
|
|
3542
3556
|
break;
|
|
3543
3557
|
}
|
|
3544
3558
|
}, e.prototype.bumpSpace = function() {
|
|
3545
|
-
for (; !this.isEOF() &&
|
|
3559
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3546
3560
|
this.bump();
|
|
3547
3561
|
}, e.prototype.peek = function() {
|
|
3548
3562
|
if (this.isEOF())
|
|
@@ -3552,38 +3566,38 @@ var Wn = (
|
|
|
3552
3566
|
}, e;
|
|
3553
3567
|
}()
|
|
3554
3568
|
);
|
|
3555
|
-
function
|
|
3569
|
+
function Ve(e) {
|
|
3556
3570
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3557
3571
|
}
|
|
3558
|
-
function
|
|
3559
|
-
return
|
|
3572
|
+
function zn(e) {
|
|
3573
|
+
return Ve(e) || e === 47;
|
|
3560
3574
|
}
|
|
3561
|
-
function
|
|
3575
|
+
function Zn(e) {
|
|
3562
3576
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3563
3577
|
}
|
|
3564
|
-
function
|
|
3578
|
+
function Kt(e) {
|
|
3565
3579
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3566
3580
|
}
|
|
3567
|
-
function
|
|
3581
|
+
function Qn(e) {
|
|
3568
3582
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3569
3583
|
}
|
|
3570
|
-
function
|
|
3584
|
+
function Xe(e) {
|
|
3571
3585
|
e.forEach(function(t) {
|
|
3572
|
-
if (delete t.location,
|
|
3586
|
+
if (delete t.location, kt(t) || Wt(t))
|
|
3573
3587
|
for (var r in t.options)
|
|
3574
|
-
delete t.options[r].location,
|
|
3588
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3575
3589
|
else
|
|
3576
|
-
|
|
3590
|
+
Gt(t) && Xt(t.style) || (Ft(t) || jt(t)) && Fe(t.style) ? delete t.style.location : Vt(t) && Xe(t.children);
|
|
3577
3591
|
});
|
|
3578
3592
|
}
|
|
3579
|
-
function
|
|
3593
|
+
function Jn(e, t) {
|
|
3580
3594
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3581
|
-
var r = new
|
|
3595
|
+
var r = new Xn(e, t).parse();
|
|
3582
3596
|
if (r.err) {
|
|
3583
3597
|
var n = SyntaxError(b[r.err.kind]);
|
|
3584
3598
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3585
3599
|
}
|
|
3586
|
-
return t?.captureLocation ||
|
|
3600
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3587
3601
|
}
|
|
3588
3602
|
var Z;
|
|
3589
3603
|
(function(e) {
|
|
@@ -3601,7 +3615,7 @@ var Ee = (
|
|
|
3601
3615
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3602
3616
|
}, t;
|
|
3603
3617
|
}(Error)
|
|
3604
|
-
),
|
|
3618
|
+
), vt = (
|
|
3605
3619
|
/** @class */
|
|
3606
3620
|
function(e) {
|
|
3607
3621
|
N(t, e);
|
|
@@ -3610,7 +3624,7 @@ var Ee = (
|
|
|
3610
3624
|
}
|
|
3611
3625
|
return t;
|
|
3612
3626
|
}(Ee)
|
|
3613
|
-
),
|
|
3627
|
+
), qn = (
|
|
3614
3628
|
/** @class */
|
|
3615
3629
|
function(e) {
|
|
3616
3630
|
N(t, e);
|
|
@@ -3619,7 +3633,7 @@ var Ee = (
|
|
|
3619
3633
|
}
|
|
3620
3634
|
return t;
|
|
3621
3635
|
}(Ee)
|
|
3622
|
-
),
|
|
3636
|
+
), Yn = (
|
|
3623
3637
|
/** @class */
|
|
3624
3638
|
function(e) {
|
|
3625
3639
|
N(t, e);
|
|
@@ -3632,17 +3646,17 @@ var Ee = (
|
|
|
3632
3646
|
(function(e) {
|
|
3633
3647
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3634
3648
|
})(S || (S = {}));
|
|
3635
|
-
function
|
|
3649
|
+
function Kn(e) {
|
|
3636
3650
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3637
3651
|
var n = t[t.length - 1];
|
|
3638
3652
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3639
3653
|
}, []);
|
|
3640
3654
|
}
|
|
3641
|
-
function
|
|
3655
|
+
function ei(e) {
|
|
3642
3656
|
return typeof e == "function";
|
|
3643
3657
|
}
|
|
3644
3658
|
function me(e, t, r, n, i, o, a) {
|
|
3645
|
-
if (e.length === 1 &&
|
|
3659
|
+
if (e.length === 1 && ft(e[0]))
|
|
3646
3660
|
return [
|
|
3647
3661
|
{
|
|
3648
3662
|
type: S.literal,
|
|
@@ -3651,59 +3665,59 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3651
3665
|
];
|
|
3652
3666
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3653
3667
|
var h = u[l];
|
|
3654
|
-
if (
|
|
3668
|
+
if (ft(h)) {
|
|
3655
3669
|
s.push({
|
|
3656
3670
|
type: S.literal,
|
|
3657
3671
|
value: h.value
|
|
3658
3672
|
});
|
|
3659
3673
|
continue;
|
|
3660
3674
|
}
|
|
3661
|
-
if (
|
|
3675
|
+
if (xn(h)) {
|
|
3662
3676
|
typeof o == "number" && s.push({
|
|
3663
3677
|
type: S.literal,
|
|
3664
3678
|
value: r.getNumberFormat(t).format(o)
|
|
3665
3679
|
});
|
|
3666
3680
|
continue;
|
|
3667
3681
|
}
|
|
3668
|
-
var
|
|
3669
|
-
if (!(i &&
|
|
3670
|
-
throw new
|
|
3671
|
-
var
|
|
3672
|
-
if (
|
|
3673
|
-
(!
|
|
3674
|
-
type: typeof
|
|
3675
|
-
value:
|
|
3682
|
+
var c = h.value;
|
|
3683
|
+
if (!(i && c in i))
|
|
3684
|
+
throw new Yn(c, a);
|
|
3685
|
+
var f = i[c];
|
|
3686
|
+
if (En(h)) {
|
|
3687
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3688
|
+
type: typeof f == "string" ? S.literal : S.object,
|
|
3689
|
+
value: f
|
|
3676
3690
|
});
|
|
3677
3691
|
continue;
|
|
3678
3692
|
}
|
|
3679
|
-
if (
|
|
3680
|
-
var
|
|
3693
|
+
if (Ft(h)) {
|
|
3694
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3681
3695
|
s.push({
|
|
3682
3696
|
type: S.literal,
|
|
3683
|
-
value: r.getDateTimeFormat(t,
|
|
3697
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3684
3698
|
});
|
|
3685
3699
|
continue;
|
|
3686
3700
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var
|
|
3701
|
+
if (jt(h)) {
|
|
3702
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3689
3703
|
s.push({
|
|
3690
3704
|
type: S.literal,
|
|
3691
|
-
value: r.getDateTimeFormat(t,
|
|
3705
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3692
3706
|
});
|
|
3693
3707
|
continue;
|
|
3694
3708
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var
|
|
3697
|
-
|
|
3709
|
+
if (Gt(h)) {
|
|
3710
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Xt(h.style) ? h.style.parsedOptions : void 0;
|
|
3711
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3698
3712
|
type: S.literal,
|
|
3699
|
-
value: r.getNumberFormat(t,
|
|
3713
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3700
3714
|
});
|
|
3701
3715
|
continue;
|
|
3702
3716
|
}
|
|
3703
|
-
if (
|
|
3717
|
+
if (Vt(h)) {
|
|
3704
3718
|
var m = h.children, g = h.value, w = i[g];
|
|
3705
|
-
if (!
|
|
3706
|
-
throw new
|
|
3719
|
+
if (!ei(w))
|
|
3720
|
+
throw new qn(g, "function", a);
|
|
3707
3721
|
var L = me(m, t, r, n, i, o), P = w(L.map(function(A) {
|
|
3708
3722
|
return A.value;
|
|
3709
3723
|
}));
|
|
@@ -3714,42 +3728,42 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3714
3728
|
};
|
|
3715
3729
|
}));
|
|
3716
3730
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var T = h.options[
|
|
3731
|
+
if (kt(h)) {
|
|
3732
|
+
var T = h.options[f] || h.options.other;
|
|
3719
3733
|
if (!T)
|
|
3720
|
-
throw new
|
|
3734
|
+
throw new vt(h.value, f, Object.keys(h.options), a);
|
|
3721
3735
|
s.push.apply(s, me(T.value, t, r, n, i));
|
|
3722
3736
|
continue;
|
|
3723
3737
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var T = h.options["=".concat(
|
|
3738
|
+
if (Wt(h)) {
|
|
3739
|
+
var T = h.options["=".concat(f)];
|
|
3726
3740
|
if (!T) {
|
|
3727
3741
|
if (!Intl.PluralRules)
|
|
3728
3742
|
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3729
3743
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3730
3744
|
`, Z.MISSING_INTL_API, a);
|
|
3731
|
-
var $ = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3745
|
+
var $ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3732
3746
|
T = h.options[$] || h.options.other;
|
|
3733
3747
|
}
|
|
3734
3748
|
if (!T)
|
|
3735
|
-
throw new
|
|
3736
|
-
s.push.apply(s, me(T.value, t, r, n, i,
|
|
3749
|
+
throw new vt(h.value, f, Object.keys(h.options), a);
|
|
3750
|
+
s.push.apply(s, me(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3737
3751
|
continue;
|
|
3738
3752
|
}
|
|
3739
3753
|
}
|
|
3740
|
-
return
|
|
3754
|
+
return Kn(s);
|
|
3741
3755
|
}
|
|
3742
|
-
function
|
|
3756
|
+
function ti(e, t) {
|
|
3743
3757
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3744
3758
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3745
3759
|
}, {})) : e;
|
|
3746
3760
|
}
|
|
3747
|
-
function
|
|
3761
|
+
function ri(e, t) {
|
|
3748
3762
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3749
|
-
return r[n] =
|
|
3763
|
+
return r[n] = ti(e[n], t[n]), r;
|
|
3750
3764
|
}, v({}, e)) : e;
|
|
3751
3765
|
}
|
|
3752
|
-
function
|
|
3766
|
+
function Oe(e) {
|
|
3753
3767
|
return {
|
|
3754
3768
|
create: function() {
|
|
3755
3769
|
return {
|
|
@@ -3763,39 +3777,39 @@ function Ae(e) {
|
|
|
3763
3777
|
}
|
|
3764
3778
|
};
|
|
3765
3779
|
}
|
|
3766
|
-
function
|
|
3780
|
+
function ni(e) {
|
|
3767
3781
|
return e === void 0 && (e = {
|
|
3768
3782
|
number: {},
|
|
3769
3783
|
dateTime: {},
|
|
3770
3784
|
pluralRules: {}
|
|
3771
3785
|
}), {
|
|
3772
|
-
getNumberFormat:
|
|
3786
|
+
getNumberFormat: Be(function() {
|
|
3773
3787
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3774
3788
|
r[n] = arguments[n];
|
|
3775
3789
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3776
3790
|
}, {
|
|
3777
|
-
cache:
|
|
3778
|
-
strategy:
|
|
3791
|
+
cache: Oe(e.number),
|
|
3792
|
+
strategy: Pe.variadic
|
|
3779
3793
|
}),
|
|
3780
|
-
getDateTimeFormat:
|
|
3794
|
+
getDateTimeFormat: Be(function() {
|
|
3781
3795
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3782
3796
|
r[n] = arguments[n];
|
|
3783
3797
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3784
3798
|
}, {
|
|
3785
|
-
cache:
|
|
3786
|
-
strategy:
|
|
3799
|
+
cache: Oe(e.dateTime),
|
|
3800
|
+
strategy: Pe.variadic
|
|
3787
3801
|
}),
|
|
3788
|
-
getPluralRules:
|
|
3802
|
+
getPluralRules: Be(function() {
|
|
3789
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3790
3804
|
r[n] = arguments[n];
|
|
3791
3805
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3792
3806
|
}, {
|
|
3793
|
-
cache:
|
|
3794
|
-
strategy:
|
|
3807
|
+
cache: Oe(e.pluralRules),
|
|
3808
|
+
strategy: Pe.variadic
|
|
3795
3809
|
})
|
|
3796
3810
|
};
|
|
3797
3811
|
}
|
|
3798
|
-
var
|
|
3812
|
+
var ii = (
|
|
3799
3813
|
/** @class */
|
|
3800
3814
|
function() {
|
|
3801
3815
|
function e(t, r, n, i) {
|
|
@@ -3809,8 +3823,8 @@ var ri = (
|
|
|
3809
3823
|
var u = o.formatToParts(l);
|
|
3810
3824
|
if (u.length === 1)
|
|
3811
3825
|
return u[0].value;
|
|
3812
|
-
var h = u.reduce(function(
|
|
3813
|
-
return !
|
|
3826
|
+
var h = u.reduce(function(c, f) {
|
|
3827
|
+
return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3814
3828
|
}, []);
|
|
3815
3829
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3816
3830
|
}, this.formatToParts = function(l) {
|
|
@@ -3827,13 +3841,13 @@ var ri = (
|
|
|
3827
3841
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3828
3842
|
var a = i || {};
|
|
3829
3843
|
a.formatters;
|
|
3830
|
-
var s =
|
|
3844
|
+
var s = Rr(a, ["formatters"]);
|
|
3831
3845
|
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3832
3846
|
} else
|
|
3833
3847
|
this.ast = t;
|
|
3834
3848
|
if (!Array.isArray(this.ast))
|
|
3835
3849
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3836
|
-
this.formats =
|
|
3850
|
+
this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
|
|
3837
3851
|
}
|
|
3838
3852
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3839
3853
|
get: function() {
|
|
@@ -3846,7 +3860,7 @@ var ri = (
|
|
|
3846
3860
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3847
3861
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3848
3862
|
}
|
|
3849
|
-
}, e.__parse =
|
|
3863
|
+
}, e.__parse = Jn, e.formats = {
|
|
3850
3864
|
number: {
|
|
3851
3865
|
integer: {
|
|
3852
3866
|
maximumFractionDigits: 0
|
|
@@ -3907,7 +3921,7 @@ var ri = (
|
|
|
3907
3921
|
}, e;
|
|
3908
3922
|
}()
|
|
3909
3923
|
);
|
|
3910
|
-
function
|
|
3924
|
+
function oi(e, t) {
|
|
3911
3925
|
if (t == null)
|
|
3912
3926
|
return;
|
|
3913
3927
|
if (t in e)
|
|
@@ -3928,92 +3942,92 @@ function ni(e, t) {
|
|
|
3928
3942
|
n = void 0;
|
|
3929
3943
|
return n;
|
|
3930
3944
|
}
|
|
3931
|
-
const R = {},
|
|
3945
|
+
const R = {}, si = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), er = (e, t) => {
|
|
3932
3946
|
if (t == null)
|
|
3933
3947
|
return;
|
|
3934
3948
|
if (t in R && e in R[t])
|
|
3935
3949
|
return R[t][e];
|
|
3936
3950
|
const r = xe(t);
|
|
3937
3951
|
for (let n = 0; n < r.length; n++) {
|
|
3938
|
-
const i = r[n], o =
|
|
3952
|
+
const i = r[n], o = ui(i, e);
|
|
3939
3953
|
if (o)
|
|
3940
|
-
return
|
|
3954
|
+
return si(e, t, o);
|
|
3941
3955
|
}
|
|
3942
3956
|
};
|
|
3943
|
-
let
|
|
3957
|
+
let Ke;
|
|
3944
3958
|
const ue = _e({});
|
|
3945
|
-
function
|
|
3946
|
-
return
|
|
3959
|
+
function ai(e) {
|
|
3960
|
+
return Ke[e] || null;
|
|
3947
3961
|
}
|
|
3948
|
-
function
|
|
3949
|
-
return e in
|
|
3962
|
+
function tr(e) {
|
|
3963
|
+
return e in Ke;
|
|
3950
3964
|
}
|
|
3951
|
-
function
|
|
3952
|
-
if (!
|
|
3965
|
+
function ui(e, t) {
|
|
3966
|
+
if (!tr(e))
|
|
3953
3967
|
return null;
|
|
3954
|
-
const r =
|
|
3955
|
-
return
|
|
3968
|
+
const r = ai(e);
|
|
3969
|
+
return oi(r, t);
|
|
3956
3970
|
}
|
|
3957
|
-
function
|
|
3971
|
+
function hi(e) {
|
|
3958
3972
|
if (e == null)
|
|
3959
3973
|
return;
|
|
3960
3974
|
const t = xe(e);
|
|
3961
3975
|
for (let r = 0; r < t.length; r++) {
|
|
3962
3976
|
const n = t[r];
|
|
3963
|
-
if (
|
|
3977
|
+
if (tr(n))
|
|
3964
3978
|
return n;
|
|
3965
3979
|
}
|
|
3966
3980
|
}
|
|
3967
|
-
function
|
|
3968
|
-
delete R[e], ue.update((r) => (r[e] =
|
|
3981
|
+
function rr(e, ...t) {
|
|
3982
|
+
delete R[e], ue.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
|
|
3969
3983
|
}
|
|
3970
3984
|
q(
|
|
3971
3985
|
[ue],
|
|
3972
3986
|
([e]) => Object.keys(e)
|
|
3973
3987
|
);
|
|
3974
|
-
ue.subscribe((e) =>
|
|
3988
|
+
ue.subscribe((e) => Ke = e);
|
|
3975
3989
|
const be = {};
|
|
3976
|
-
function
|
|
3990
|
+
function li(e, t) {
|
|
3977
3991
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3978
3992
|
}
|
|
3979
|
-
function
|
|
3993
|
+
function nr(e) {
|
|
3980
3994
|
return be[e];
|
|
3981
3995
|
}
|
|
3982
|
-
function
|
|
3996
|
+
function ci(e) {
|
|
3983
3997
|
return xe(e).map((t) => {
|
|
3984
|
-
const r =
|
|
3998
|
+
const r = nr(t);
|
|
3985
3999
|
return [t, r ? [...r] : []];
|
|
3986
4000
|
}).filter(([, t]) => t.length > 0);
|
|
3987
4001
|
}
|
|
3988
|
-
function
|
|
4002
|
+
function ze(e) {
|
|
3989
4003
|
return e == null ? !1 : xe(e).some(
|
|
3990
4004
|
(t) => {
|
|
3991
4005
|
var r;
|
|
3992
|
-
return (r =
|
|
4006
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3993
4007
|
}
|
|
3994
4008
|
);
|
|
3995
4009
|
}
|
|
3996
|
-
function
|
|
4010
|
+
function fi(e, t) {
|
|
3997
4011
|
return Promise.all(
|
|
3998
|
-
t.map((n) => (
|
|
3999
|
-
).then((n) =>
|
|
4012
|
+
t.map((n) => (li(e, n), n().then((i) => i.default || i)))
|
|
4013
|
+
).then((n) => rr(e, ...n));
|
|
4000
4014
|
}
|
|
4001
4015
|
const ee = {};
|
|
4002
|
-
function
|
|
4003
|
-
if (!
|
|
4016
|
+
function ir(e) {
|
|
4017
|
+
if (!ze(e))
|
|
4004
4018
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4005
|
-
const t =
|
|
4019
|
+
const t = ci(e);
|
|
4006
4020
|
return ee[e] = Promise.all(
|
|
4007
4021
|
t.map(
|
|
4008
|
-
([r, n]) =>
|
|
4022
|
+
([r, n]) => fi(r, n)
|
|
4009
4023
|
)
|
|
4010
4024
|
).then(() => {
|
|
4011
|
-
if (
|
|
4012
|
-
return
|
|
4025
|
+
if (ze(e))
|
|
4026
|
+
return ir(e);
|
|
4013
4027
|
delete ee[e];
|
|
4014
4028
|
}), ee[e];
|
|
4015
4029
|
}
|
|
4016
|
-
const
|
|
4030
|
+
const pi = {
|
|
4017
4031
|
number: {
|
|
4018
4032
|
scientific: { notation: "scientific" },
|
|
4019
4033
|
engineering: { notation: "engineering" },
|
|
@@ -4042,57 +4056,57 @@ const fi = {
|
|
|
4042
4056
|
timeZoneName: "short"
|
|
4043
4057
|
}
|
|
4044
4058
|
}
|
|
4045
|
-
},
|
|
4059
|
+
}, di = {
|
|
4046
4060
|
fallbackLocale: null,
|
|
4047
4061
|
loadingDelay: 200,
|
|
4048
|
-
formats:
|
|
4062
|
+
formats: pi,
|
|
4049
4063
|
warnOnMissingMessages: !0,
|
|
4050
4064
|
handleMissingMessage: void 0,
|
|
4051
4065
|
ignoreTag: !0
|
|
4052
|
-
},
|
|
4066
|
+
}, mi = di;
|
|
4053
4067
|
function Q() {
|
|
4054
|
-
return
|
|
4055
|
-
}
|
|
4056
|
-
const
|
|
4057
|
-
var
|
|
4058
|
-
for (var r in t)
|
|
4059
|
-
|
|
4060
|
-
if (
|
|
4061
|
-
for (var r of
|
|
4062
|
-
|
|
4068
|
+
return mi;
|
|
4069
|
+
}
|
|
4070
|
+
const Ie = _e(!1);
|
|
4071
|
+
var bi = Object.defineProperty, gi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
4072
|
+
for (var r in t || (t = {}))
|
|
4073
|
+
vi.call(t, r) && Et(e, r, t[r]);
|
|
4074
|
+
if (_t)
|
|
4075
|
+
for (var r of _t(t))
|
|
4076
|
+
_i.call(t, r) && Et(e, r, t[r]);
|
|
4063
4077
|
return e;
|
|
4064
|
-
},
|
|
4065
|
-
let
|
|
4078
|
+
}, xi = (e, t) => gi(e, yi(t));
|
|
4079
|
+
let Ze;
|
|
4066
4080
|
const ge = _e(null);
|
|
4067
|
-
function
|
|
4081
|
+
function xt(e) {
|
|
4068
4082
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4069
4083
|
}
|
|
4070
4084
|
function xe(e, t = Q().fallbackLocale) {
|
|
4071
|
-
const r =
|
|
4072
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
const r = xt(e);
|
|
4086
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4073
4087
|
}
|
|
4074
4088
|
function D() {
|
|
4075
|
-
return
|
|
4089
|
+
return Ze ?? void 0;
|
|
4076
4090
|
}
|
|
4077
4091
|
ge.subscribe((e) => {
|
|
4078
|
-
|
|
4092
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4079
4093
|
});
|
|
4080
|
-
const
|
|
4081
|
-
if (e &&
|
|
4094
|
+
const wi = (e) => {
|
|
4095
|
+
if (e && hi(e) && ze(e)) {
|
|
4082
4096
|
const { loadingDelay: t } = Q();
|
|
4083
4097
|
let r;
|
|
4084
4098
|
return typeof window < "u" && D() != null && t ? r = window.setTimeout(
|
|
4085
|
-
() =>
|
|
4099
|
+
() => Ie.set(!0),
|
|
4086
4100
|
t
|
|
4087
|
-
) :
|
|
4101
|
+
) : Ie.set(!0), ir(e).then(() => {
|
|
4088
4102
|
ge.set(e);
|
|
4089
4103
|
}).finally(() => {
|
|
4090
|
-
clearTimeout(r),
|
|
4104
|
+
clearTimeout(r), Ie.set(!1);
|
|
4091
4105
|
});
|
|
4092
4106
|
}
|
|
4093
4107
|
return ge.set(e);
|
|
4094
|
-
}, Y =
|
|
4095
|
-
set:
|
|
4108
|
+
}, Y = xi(Ei({}, ge), {
|
|
4109
|
+
set: wi
|
|
4096
4110
|
}), we = (e) => {
|
|
4097
4111
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4098
4112
|
return (n) => {
|
|
@@ -4100,20 +4114,20 @@ const Ei = (e) => {
|
|
|
4100
4114
|
return i in t ? t[i] : t[i] = e(n);
|
|
4101
4115
|
};
|
|
4102
4116
|
};
|
|
4103
|
-
var
|
|
4117
|
+
var Si = Object.defineProperty, ye = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4104
4118
|
for (var r in t || (t = {}))
|
|
4105
|
-
|
|
4119
|
+
or.call(t, r) && wt(e, r, t[r]);
|
|
4106
4120
|
if (ye)
|
|
4107
4121
|
for (var r of ye(t))
|
|
4108
|
-
|
|
4122
|
+
sr.call(t, r) && wt(e, r, t[r]);
|
|
4109
4123
|
return e;
|
|
4110
4124
|
}, K = (e, t) => {
|
|
4111
4125
|
var r = {};
|
|
4112
4126
|
for (var n in e)
|
|
4113
|
-
|
|
4127
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4114
4128
|
if (e != null && ye)
|
|
4115
4129
|
for (var n of ye(e))
|
|
4116
|
-
t.indexOf(n) < 0 &&
|
|
4130
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4117
4131
|
return r;
|
|
4118
4132
|
};
|
|
4119
4133
|
const oe = (e, t) => {
|
|
@@ -4121,21 +4135,21 @@ const oe = (e, t) => {
|
|
|
4121
4135
|
if (e in r && t in r[e])
|
|
4122
4136
|
return r[e][t];
|
|
4123
4137
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4124
|
-
},
|
|
4138
|
+
}, Ti = we(
|
|
4125
4139
|
(e) => {
|
|
4126
4140
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4127
4141
|
if (r == null)
|
|
4128
4142
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4129
4143
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4130
4144
|
}
|
|
4131
|
-
),
|
|
4145
|
+
), Hi = we(
|
|
4132
4146
|
(e) => {
|
|
4133
4147
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4134
4148
|
if (r == null)
|
|
4135
4149
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4136
4150
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4137
4151
|
}
|
|
4138
|
-
),
|
|
4152
|
+
), Bi = we(
|
|
4139
4153
|
(e) => {
|
|
4140
4154
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4141
4155
|
if (r == null)
|
|
@@ -4144,33 +4158,33 @@ const oe = (e, t) => {
|
|
|
4144
4158
|
);
|
|
4145
4159
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4146
4160
|
}
|
|
4147
|
-
),
|
|
4161
|
+
), Pi = (e = {}) => {
|
|
4148
4162
|
var t = e, {
|
|
4149
4163
|
locale: r = D()
|
|
4150
4164
|
} = t, n = K(t, [
|
|
4151
4165
|
"locale"
|
|
4152
4166
|
]);
|
|
4153
|
-
return
|
|
4154
|
-
},
|
|
4167
|
+
return Ti(et({ locale: r }, n));
|
|
4168
|
+
}, Ai = (e = {}) => {
|
|
4155
4169
|
var t = e, {
|
|
4156
4170
|
locale: r = D()
|
|
4157
4171
|
} = t, n = K(t, [
|
|
4158
4172
|
"locale"
|
|
4159
4173
|
]);
|
|
4160
|
-
return
|
|
4161
|
-
},
|
|
4174
|
+
return Hi(et({ locale: r }, n));
|
|
4175
|
+
}, Oi = (e = {}) => {
|
|
4162
4176
|
var t = e, {
|
|
4163
4177
|
locale: r = D()
|
|
4164
4178
|
} = t, n = K(t, [
|
|
4165
4179
|
"locale"
|
|
4166
4180
|
]);
|
|
4167
|
-
return
|
|
4168
|
-
},
|
|
4181
|
+
return Bi(et({ locale: r }, n));
|
|
4182
|
+
}, Ii = we(
|
|
4169
4183
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4170
|
-
(e, t = D()) => new
|
|
4184
|
+
(e, t = D()) => new ii(e, t, Q().formats, {
|
|
4171
4185
|
ignoreTag: Q().ignoreTag
|
|
4172
4186
|
})
|
|
4173
|
-
),
|
|
4187
|
+
), Ni = (e, t = {}) => {
|
|
4174
4188
|
var r, n, i, o;
|
|
4175
4189
|
let a = t;
|
|
4176
4190
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4183,7 +4197,7 @@ const oe = (e, t) => {
|
|
|
4183
4197
|
throw new Error(
|
|
4184
4198
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4185
4199
|
);
|
|
4186
|
-
let h =
|
|
4200
|
+
let h = er(e, l);
|
|
4187
4201
|
if (!h)
|
|
4188
4202
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4189
4203
|
else if (typeof h != "string")
|
|
@@ -4192,30 +4206,30 @@ const oe = (e, t) => {
|
|
|
4192
4206
|
), h;
|
|
4193
4207
|
if (!s)
|
|
4194
4208
|
return h;
|
|
4195
|
-
let
|
|
4209
|
+
let c = h;
|
|
4196
4210
|
try {
|
|
4197
|
-
|
|
4198
|
-
} catch (
|
|
4199
|
-
|
|
4211
|
+
c = Ii(h, l).format(s);
|
|
4212
|
+
} catch (f) {
|
|
4213
|
+
f instanceof Error && console.warn(
|
|
4200
4214
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4201
|
-
|
|
4215
|
+
f.message
|
|
4202
4216
|
);
|
|
4203
4217
|
}
|
|
4204
|
-
return
|
|
4205
|
-
},
|
|
4206
|
-
q([Y], () => Ii);
|
|
4207
|
-
q([Y], () => Ni);
|
|
4218
|
+
return c;
|
|
4219
|
+
}, Li = (e, t) => Oi(t).format(e), Mi = (e, t) => Ai(t).format(e), Ci = (e, t) => Pi(t).format(e), Ri = (e, t = D()) => er(e, t), $i = q([Y, ue], () => Ni);
|
|
4208
4220
|
q([Y], () => Li);
|
|
4209
|
-
q([Y
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4221
|
+
q([Y], () => Mi);
|
|
4222
|
+
q([Y], () => Ci);
|
|
4223
|
+
q([Y, ue], () => Ri);
|
|
4224
|
+
window.emWidgets = { topic: Jr };
|
|
4225
|
+
const Ui = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4226
|
+
function St(e, t) {
|
|
4227
|
+
rr(e, t);
|
|
4214
4228
|
}
|
|
4215
|
-
function
|
|
4229
|
+
function Di(e) {
|
|
4216
4230
|
Y.set(e);
|
|
4217
4231
|
}
|
|
4218
|
-
const
|
|
4232
|
+
const Tt = {
|
|
4219
4233
|
en: {
|
|
4220
4234
|
titlePlayerWithdrawal: "Withdrawal",
|
|
4221
4235
|
loading: "Loading, please wait ..."
|
|
@@ -4249,41 +4263,41 @@ const wt = {
|
|
|
4249
4263
|
loading: "Loading, please wait ..."
|
|
4250
4264
|
}
|
|
4251
4265
|
};
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4266
|
+
function Gi(e) {
|
|
4267
|
+
fr(e, "svelte-19p9ovb", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
|
|
4254
4268
|
}
|
|
4255
|
-
function
|
|
4256
|
-
let t, r, n, i, o, a, s, l, u, h,
|
|
4269
|
+
function Fi(e) {
|
|
4270
|
+
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4257
4271
|
/*$_*/
|
|
4258
4272
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4259
|
-
),
|
|
4273
|
+
), f, p, m;
|
|
4260
4274
|
return {
|
|
4261
4275
|
c() {
|
|
4262
|
-
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u =
|
|
4276
|
+
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ne(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
|
|
4263
4277
|
},
|
|
4264
4278
|
m(g, w) {
|
|
4265
|
-
ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h,
|
|
4279
|
+
ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (m = mr(
|
|
4266
4280
|
t,
|
|
4267
4281
|
"click",
|
|
4268
4282
|
/*click_handler*/
|
|
4269
4283
|
e[16]
|
|
4270
|
-
),
|
|
4284
|
+
), p = !0);
|
|
4271
4285
|
},
|
|
4272
4286
|
p(g, w) {
|
|
4273
4287
|
w & /*$_*/
|
|
4274
|
-
8 &&
|
|
4275
|
-
g[3]("titlePlayerWithdrawal") + "") &&
|
|
4288
|
+
8 && c !== (c = /*$_*/
|
|
4289
|
+
g[3]("titlePlayerWithdrawal") + "") && Je(f, c);
|
|
4276
4290
|
},
|
|
4277
4291
|
d(g) {
|
|
4278
|
-
g && J(t),
|
|
4292
|
+
g && J(t), p = !1, m();
|
|
4279
4293
|
}
|
|
4280
4294
|
};
|
|
4281
4295
|
}
|
|
4282
|
-
function
|
|
4296
|
+
function ji(e) {
|
|
4283
4297
|
let t, r, n;
|
|
4284
4298
|
return {
|
|
4285
4299
|
c() {
|
|
4286
|
-
t = I("div"), r = I("iframe"),
|
|
4300
|
+
t = I("div"), r = I("iframe"), rt(r.src, n = /*iframeUrl*/
|
|
4287
4301
|
e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
|
|
4288
4302
|
},
|
|
4289
4303
|
m(i, o) {
|
|
@@ -4291,7 +4305,7 @@ function Gi(e) {
|
|
|
4291
4305
|
},
|
|
4292
4306
|
p(i, o) {
|
|
4293
4307
|
o & /*iframeUrl*/
|
|
4294
|
-
4 && !
|
|
4308
|
+
4 && !rt(r.src, n = /*iframeUrl*/
|
|
4295
4309
|
i[2]) && E(r, "src", n);
|
|
4296
4310
|
},
|
|
4297
4311
|
d(i) {
|
|
@@ -4299,7 +4313,7 @@ function Gi(e) {
|
|
|
4299
4313
|
}
|
|
4300
4314
|
};
|
|
4301
4315
|
}
|
|
4302
|
-
function
|
|
4316
|
+
function ki(e) {
|
|
4303
4317
|
let t, r = (
|
|
4304
4318
|
/*$_*/
|
|
4305
4319
|
e[3]("loading") + ""
|
|
@@ -4314,65 +4328,65 @@ function Fi(e) {
|
|
|
4314
4328
|
p(i, o) {
|
|
4315
4329
|
o & /*$_*/
|
|
4316
4330
|
8 && r !== (r = /*$_*/
|
|
4317
|
-
i[3]("loading") + "") &&
|
|
4331
|
+
i[3]("loading") + "") && Je(n, r);
|
|
4318
4332
|
},
|
|
4319
4333
|
d(i) {
|
|
4320
4334
|
i && J(t);
|
|
4321
4335
|
}
|
|
4322
4336
|
};
|
|
4323
4337
|
}
|
|
4324
|
-
function
|
|
4338
|
+
function Wi(e) {
|
|
4325
4339
|
let t, r, n, i = (
|
|
4326
4340
|
/*$_*/
|
|
4327
4341
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4328
4342
|
), o, a, s = (
|
|
4329
4343
|
/*isMobile*/
|
|
4330
|
-
e[4] &&
|
|
4344
|
+
e[4] && Fi(e)
|
|
4331
4345
|
);
|
|
4332
|
-
function l(
|
|
4346
|
+
function l(c, f) {
|
|
4333
4347
|
return (
|
|
4334
4348
|
/*isLoading*/
|
|
4335
|
-
|
|
4349
|
+
c[1] ? ki : ji
|
|
4336
4350
|
);
|
|
4337
4351
|
}
|
|
4338
4352
|
let u = l(e), h = u(e);
|
|
4339
4353
|
return {
|
|
4340
4354
|
c() {
|
|
4341
|
-
t = I("div"), s && s.c(), r =
|
|
4355
|
+
t = I("div"), s && s.c(), r = Ne(), n = I("h2"), o = re(i), a = Ne(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
|
|
4342
4356
|
(e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
|
|
4343
4357
|
(e[4] ? "WithdrawalWrapperMobile" : ""));
|
|
4344
4358
|
},
|
|
4345
|
-
m(
|
|
4346
|
-
ae(
|
|
4359
|
+
m(c, f) {
|
|
4360
|
+
ae(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[17](t);
|
|
4347
4361
|
},
|
|
4348
|
-
p(
|
|
4362
|
+
p(c, [f]) {
|
|
4349
4363
|
/*isMobile*/
|
|
4350
|
-
|
|
4364
|
+
c[4] && s.p(c, f), f & /*$_*/
|
|
4351
4365
|
8 && i !== (i = /*$_*/
|
|
4352
|
-
|
|
4366
|
+
c[3]("titlePlayerWithdrawal") + "") && Je(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4353
4367
|
},
|
|
4354
4368
|
i: B,
|
|
4355
4369
|
o: B,
|
|
4356
|
-
d(
|
|
4357
|
-
|
|
4370
|
+
d(c) {
|
|
4371
|
+
c && J(t), s && s.d(), h.d(), e[17](null);
|
|
4358
4372
|
}
|
|
4359
4373
|
};
|
|
4360
4374
|
}
|
|
4361
|
-
function
|
|
4375
|
+
function Vi(e, t, r) {
|
|
4362
4376
|
let n;
|
|
4363
|
-
|
|
4364
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4377
|
+
cr(e, $i, (d) => r(3, n = d));
|
|
4378
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, { currency: p = "" } = t, m, g = window.navigator.userAgent, w = Ui(g) !== "PC", L = !0, P = 0, T = "";
|
|
4365
4379
|
const $ = () => {
|
|
4366
|
-
fetch(
|
|
4380
|
+
fetch(f).then((M) => M.json()).then((M) => {
|
|
4367
4381
|
Object.keys(M).forEach((C) => {
|
|
4368
|
-
|
|
4382
|
+
St(C, M[C]);
|
|
4369
4383
|
});
|
|
4370
4384
|
}).catch((M) => {
|
|
4371
4385
|
console.log(M);
|
|
4372
4386
|
});
|
|
4373
4387
|
};
|
|
4374
|
-
Object.keys(
|
|
4375
|
-
|
|
4388
|
+
Object.keys(Tt).forEach((d) => {
|
|
4389
|
+
St(d, Tt[d]);
|
|
4376
4390
|
});
|
|
4377
4391
|
const A = () => {
|
|
4378
4392
|
window.postMessage(
|
|
@@ -4382,14 +4396,14 @@ function ki(e, t, r) {
|
|
|
4382
4396
|
},
|
|
4383
4397
|
window.location.href
|
|
4384
4398
|
);
|
|
4385
|
-
}, U = (
|
|
4386
|
-
if (
|
|
4387
|
-
switch (
|
|
4399
|
+
}, U = (d) => {
|
|
4400
|
+
if (d.data) {
|
|
4401
|
+
switch (d.data.type) {
|
|
4388
4402
|
case "ProfileDetailsData":
|
|
4389
|
-
r(6,
|
|
4403
|
+
r(6, p = d.data.profileDetails.currency);
|
|
4390
4404
|
break;
|
|
4391
4405
|
}
|
|
4392
|
-
switch (
|
|
4406
|
+
switch (d.data.redirect) {
|
|
4393
4407
|
case "mm-hc-casino":
|
|
4394
4408
|
window.postMessage({ type: "GoToCasino" }, window.location.href);
|
|
4395
4409
|
break;
|
|
@@ -4413,9 +4427,9 @@ function ki(e, t, r) {
|
|
|
4413
4427
|
}
|
|
4414
4428
|
}
|
|
4415
4429
|
}, he = () => {
|
|
4416
|
-
let
|
|
4417
|
-
if (
|
|
4418
|
-
switch (
|
|
4430
|
+
let d = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
|
|
4431
|
+
if (d.searchParams.append("language", s), l)
|
|
4432
|
+
switch (p) {
|
|
4419
4433
|
case "USD":
|
|
4420
4434
|
P = 0.4;
|
|
4421
4435
|
break;
|
|
@@ -4427,14 +4441,14 @@ function ki(e, t, r) {
|
|
|
4427
4441
|
method: "POST",
|
|
4428
4442
|
headers: {
|
|
4429
4443
|
"X-SessionId": o,
|
|
4430
|
-
currency:
|
|
4444
|
+
currency: p || "EUR",
|
|
4431
4445
|
amount: P,
|
|
4432
4446
|
cashierMode: "Default",
|
|
4433
4447
|
IsShortCashier: !1,
|
|
4434
4448
|
accept: "application/json"
|
|
4435
4449
|
}
|
|
4436
4450
|
};
|
|
4437
|
-
fetch(
|
|
4451
|
+
fetch(d.href, M).then((C) => C.json()).then(
|
|
4438
4452
|
(C) => {
|
|
4439
4453
|
r(1, L = !1), r(2, T = C.CashierUrl);
|
|
4440
4454
|
},
|
|
@@ -4442,28 +4456,28 @@ function ki(e, t, r) {
|
|
|
4442
4456
|
console.error(C);
|
|
4443
4457
|
}
|
|
4444
4458
|
);
|
|
4445
|
-
},
|
|
4446
|
-
|
|
4459
|
+
}, ar = () => {
|
|
4460
|
+
Di(s);
|
|
4447
4461
|
};
|
|
4448
|
-
|
|
4462
|
+
vr(() => (window.addEventListener("message", U, !1), () => {
|
|
4449
4463
|
window.removeEventListener("message", U);
|
|
4450
4464
|
}));
|
|
4451
|
-
const
|
|
4452
|
-
function
|
|
4453
|
-
|
|
4454
|
-
m =
|
|
4465
|
+
const ur = () => A();
|
|
4466
|
+
function hr(d) {
|
|
4467
|
+
Le[d ? "unshift" : "push"](() => {
|
|
4468
|
+
m = d, r(0, m);
|
|
4455
4469
|
});
|
|
4456
4470
|
}
|
|
4457
|
-
return e.$$set = (
|
|
4458
|
-
"endpoint" in
|
|
4471
|
+
return e.$$set = (d) => {
|
|
4472
|
+
"endpoint" in d && r(7, i = d.endpoint), "session" in d && r(8, o = d.session), "playerid" in d && r(9, a = d.playerid), "lang" in d && r(10, s = d.lang), "hasdefaultamount" in d && r(11, l = d.hasdefaultamount), "clientstyling" in d && r(12, u = d.clientstyling), "clientstylingurl" in d && r(13, h = d.clientstylingurl), "mbsource" in d && r(14, c = d.mbsource), "translationurl" in d && r(15, f = d.translationurl), "currency" in d && r(6, p = d.currency);
|
|
4459
4473
|
}, e.$$.update = () => {
|
|
4460
4474
|
e.$$.dirty & /*lang*/
|
|
4461
|
-
1024 && s &&
|
|
4462
|
-
4097 && u && m &&
|
|
4463
|
-
8193 && h && m &&
|
|
4464
|
-
16385 &&
|
|
4465
|
-
32768 &&
|
|
4466
|
-
1984 && o && a && i &&
|
|
4475
|
+
1024 && s && ar(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4476
|
+
4097 && u && m && Lr(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4477
|
+
8193 && h && m && Mr(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4478
|
+
16385 && c && m && Cr(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4479
|
+
32768 && f && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
|
|
4480
|
+
1984 && o && a && i && p && s && he();
|
|
4467
4481
|
}, [
|
|
4468
4482
|
m,
|
|
4469
4483
|
L,
|
|
@@ -4471,7 +4485,7 @@ function ki(e, t, r) {
|
|
|
4471
4485
|
n,
|
|
4472
4486
|
w,
|
|
4473
4487
|
A,
|
|
4474
|
-
|
|
4488
|
+
p,
|
|
4475
4489
|
i,
|
|
4476
4490
|
o,
|
|
4477
4491
|
a,
|
|
@@ -4479,20 +4493,20 @@ function ki(e, t, r) {
|
|
|
4479
4493
|
l,
|
|
4480
4494
|
u,
|
|
4481
4495
|
h,
|
|
4482
|
-
f,
|
|
4483
4496
|
c,
|
|
4484
|
-
|
|
4485
|
-
|
|
4497
|
+
f,
|
|
4498
|
+
ur,
|
|
4499
|
+
hr
|
|
4486
4500
|
];
|
|
4487
4501
|
}
|
|
4488
|
-
class
|
|
4502
|
+
class Xi extends Ir {
|
|
4489
4503
|
constructor(t) {
|
|
4490
|
-
super(),
|
|
4504
|
+
super(), Ar(
|
|
4491
4505
|
this,
|
|
4492
4506
|
t,
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4507
|
+
Vi,
|
|
4508
|
+
Wi,
|
|
4509
|
+
Bt,
|
|
4496
4510
|
{
|
|
4497
4511
|
endpoint: 7,
|
|
4498
4512
|
session: 8,
|
|
@@ -4505,7 +4519,7 @@ class Wi extends Pr {
|
|
|
4505
4519
|
translationurl: 15,
|
|
4506
4520
|
currency: 6
|
|
4507
4521
|
},
|
|
4508
|
-
|
|
4522
|
+
Gi
|
|
4509
4523
|
);
|
|
4510
4524
|
}
|
|
4511
4525
|
get endpoint() {
|
|
@@ -4569,7 +4583,7 @@ class Wi extends Pr {
|
|
|
4569
4583
|
this.$$set({ currency: t }), H();
|
|
4570
4584
|
}
|
|
4571
4585
|
}
|
|
4572
|
-
|
|
4586
|
+
Or(Xi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
|
|
4573
4587
|
export {
|
|
4574
|
-
|
|
4588
|
+
Xi as P
|
|
4575
4589
|
};
|