@everymatrix/player-withdrawal 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerWithdrawal-DFs78tXu.js → PlayerWithdrawal-BI9vpGt7.js} +820 -855
- package/components/{PlayerWithdrawal-BFT0lWci.js → PlayerWithdrawal-Cwx-esQe.js} +824 -859
- package/components/PlayerWithdrawal-DD8V7DhE.cjs +18 -0
- 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-XQt2pqw-.cjs +0 -18
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
function
|
|
1
|
+
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(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 et(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 ar(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ht(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
29
|
-
return
|
|
29
|
+
return B;
|
|
30
30
|
}
|
|
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 ur(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function hr(e, t, r) {
|
|
41
|
+
const n = lr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = I("style");
|
|
44
|
+
i.id = t, i.textContent = r, fr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,45 +54,45 @@ function dr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function fr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ae(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function J(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function I(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function G(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function re(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Ie() {
|
|
80
|
+
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function cr(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 dr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qe(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,95 +101,95 @@ function gr(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let ne;
|
|
105
|
+
function te(e) {
|
|
106
|
+
ne = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
108
|
+
function mr() {
|
|
109
|
+
if (!ne)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return ne;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function br(e) {
|
|
114
|
+
mr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ne = [];
|
|
117
117
|
let W = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const tt = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Le = !1;
|
|
120
|
+
function yr() {
|
|
121
|
+
Le || (Le = !0, gr.then(H));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Me(e) {
|
|
124
124
|
W.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const Se = /* @__PURE__ */ new Set();
|
|
127
127
|
let F = 0;
|
|
128
128
|
function H() {
|
|
129
129
|
if (F !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = ne;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++,
|
|
136
|
+
F++, te(t), vr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
141
|
+
for (te(null), k.length = 0, F = 0; Ne.length; )
|
|
142
|
+
Ne.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 (; tt.length; )
|
|
150
|
+
tt.pop()();
|
|
151
|
+
Le = !1, Se.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function vr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
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(Me);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function _r(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 Er = /* @__PURE__ */ new Set();
|
|
165
|
+
function xr(e, t) {
|
|
166
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function wr(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(
|
|
172
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
173
|
-
}), i.forEach(
|
|
170
|
+
n && n.m(t, r), Me(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(St).filter(Ze);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
+
}), i.forEach(Me);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Sr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (_r(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 Tr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const l =
|
|
184
|
-
|
|
182
|
+
function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
|
+
const l = ne;
|
|
184
|
+
te(e);
|
|
185
185
|
const u = e.$$ = {
|
|
186
186
|
fragment: null,
|
|
187
187
|
ctx: [],
|
|
188
188
|
// state
|
|
189
189
|
props: o,
|
|
190
|
-
update:
|
|
190
|
+
update: B,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: Ke(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,28 +198,28 @@ function Or(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: Ke(),
|
|
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
|
|
209
|
-
const m =
|
|
210
|
-
return u.ctx && i(u.ctx[
|
|
211
|
-
})
|
|
208
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
|
209
|
+
const m = d.length ? d[0] : c;
|
|
210
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Tr(e, f)), c;
|
|
211
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const
|
|
214
|
-
u.fragment && u.fragment.l(
|
|
213
|
+
const f = dr(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(f), f.forEach(J);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && xr(e.$$.fragment), wr(e, t.target, t.anchor), H();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let Bt;
|
|
222
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -261,29 +261,29 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
261
261
|
let o;
|
|
262
262
|
return {
|
|
263
263
|
c: function() {
|
|
264
|
-
o =
|
|
264
|
+
o = I("slot"), i !== "default" && E(o, "name", i);
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
* @param {HTMLElement} target
|
|
268
268
|
* @param {HTMLElement} [anchor]
|
|
269
269
|
*/
|
|
270
270
|
m: function(l, u) {
|
|
271
|
-
|
|
271
|
+
ae(l, o, u);
|
|
272
272
|
},
|
|
273
273
|
d: function(l) {
|
|
274
|
-
l &&
|
|
274
|
+
l && J(o);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = pr(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] = de(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" && (It = 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 = de(
|
|
305
305
|
i,
|
|
306
306
|
this.$$d[i],
|
|
307
307
|
this.$$p_d,
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (It = 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] = de(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" && (It = class extends HTMLElement {
|
|
|
336
336
|
) || e;
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function de(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 pe(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function Br(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends Bt {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -382,7 +382,7 @@ function Ir(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 = de(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 Ir(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Pr {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Nr {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Sr(this, 1), this.$destroy = B;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,8 +422,8 @@ class Nr {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
426
|
-
return
|
|
425
|
+
if (!Ze(r))
|
|
426
|
+
return B;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
429
429
|
const i = n.indexOf(r);
|
|
@@ -435,18 +435,18 @@ class Nr {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !ar(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 Ar = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
443
|
+
function Or(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 Ir(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 Cr(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 Nr(e, t, r) {
|
|
459
459
|
if (window.emMessageBus) {
|
|
460
460
|
const n = document.createElement("style");
|
|
461
461
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -477,24 +477,43 @@ 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 Ce = function(e, t) {
|
|
481
|
+
return Ce = 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
|
+
}, Ce(e, t);
|
|
487
487
|
};
|
|
488
|
-
function
|
|
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
|
+
Ce(e, t);
|
|
492
492
|
function r() {
|
|
493
493
|
this.constructor = e;
|
|
494
494
|
}
|
|
495
495
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
var v = function() {
|
|
498
|
+
return v = Object.assign || function(t) {
|
|
499
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
500
|
+
r = arguments[n];
|
|
501
|
+
for (var o in r)
|
|
502
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
503
|
+
}
|
|
504
|
+
return t;
|
|
505
|
+
}, v.apply(this, arguments);
|
|
506
|
+
};
|
|
507
|
+
function Lr(e, t) {
|
|
508
|
+
var r = {};
|
|
509
|
+
for (var n in e)
|
|
510
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
511
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
512
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
513
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
514
|
+
return r;
|
|
515
|
+
}
|
|
516
|
+
function Re(e) {
|
|
498
517
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
499
518
|
if (r)
|
|
500
519
|
return r.call(e);
|
|
@@ -506,7 +525,7 @@ function De(e) {
|
|
|
506
525
|
};
|
|
507
526
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
508
527
|
}
|
|
509
|
-
function
|
|
528
|
+
function $e(e, t) {
|
|
510
529
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
511
530
|
if (!r)
|
|
512
531
|
return e;
|
|
@@ -526,22 +545,22 @@ function Ge(e, t) {
|
|
|
526
545
|
}
|
|
527
546
|
return o;
|
|
528
547
|
}
|
|
529
|
-
function
|
|
530
|
-
if (arguments.length === 2)
|
|
548
|
+
function V(e, t, r) {
|
|
549
|
+
if (r || arguments.length === 2)
|
|
531
550
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
532
551
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
533
552
|
return e.concat(o || t);
|
|
534
553
|
}
|
|
535
|
-
function
|
|
554
|
+
function O(e) {
|
|
536
555
|
return typeof e == "function";
|
|
537
556
|
}
|
|
538
|
-
function
|
|
557
|
+
function Pt(e) {
|
|
539
558
|
var t = function(n) {
|
|
540
559
|
Error.call(n), n.stack = new Error().stack;
|
|
541
560
|
}, r = e(t);
|
|
542
561
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
543
562
|
}
|
|
544
|
-
var
|
|
563
|
+
var Te = Pt(function(e) {
|
|
545
564
|
return function(r) {
|
|
546
565
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
547
566
|
` + r.map(function(n, i) {
|
|
@@ -550,13 +569,13 @@ var Pe = Nt(function(e) {
|
|
|
550
569
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
551
570
|
};
|
|
552
571
|
});
|
|
553
|
-
function
|
|
572
|
+
function Ue(e, t) {
|
|
554
573
|
if (e) {
|
|
555
574
|
var r = e.indexOf(t);
|
|
556
575
|
0 <= r && e.splice(r, 1);
|
|
557
576
|
}
|
|
558
577
|
}
|
|
559
|
-
var
|
|
578
|
+
var ve = function() {
|
|
560
579
|
function e(t) {
|
|
561
580
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
562
581
|
}
|
|
@@ -568,12 +587,12 @@ var _e = function() {
|
|
|
568
587
|
if (a)
|
|
569
588
|
if (this._parentage = null, Array.isArray(a))
|
|
570
589
|
try {
|
|
571
|
-
for (var s =
|
|
590
|
+
for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
|
|
572
591
|
var u = l.value;
|
|
573
592
|
u.remove(this);
|
|
574
593
|
}
|
|
575
|
-
} catch (
|
|
576
|
-
t = { error:
|
|
594
|
+
} catch (g) {
|
|
595
|
+
t = { error: g };
|
|
577
596
|
} finally {
|
|
578
597
|
try {
|
|
579
598
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -585,29 +604,29 @@ var _e = function() {
|
|
|
585
604
|
else
|
|
586
605
|
a.remove(this);
|
|
587
606
|
var h = this.initialTeardown;
|
|
588
|
-
if (
|
|
607
|
+
if (O(h))
|
|
589
608
|
try {
|
|
590
609
|
h();
|
|
591
|
-
} catch (
|
|
592
|
-
o =
|
|
610
|
+
} catch (g) {
|
|
611
|
+
o = g instanceof Te ? g.errors : [g];
|
|
593
612
|
}
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
613
|
+
var f = this._finalizers;
|
|
614
|
+
if (f) {
|
|
596
615
|
this._finalizers = null;
|
|
597
616
|
try {
|
|
598
|
-
for (var
|
|
599
|
-
var m =
|
|
617
|
+
for (var c = Re(f), d = c.next(); !d.done; d = c.next()) {
|
|
618
|
+
var m = d.value;
|
|
600
619
|
try {
|
|
601
|
-
|
|
602
|
-
} catch (
|
|
603
|
-
o = o ?? [],
|
|
620
|
+
rt(m);
|
|
621
|
+
} catch (g) {
|
|
622
|
+
o = o ?? [], g instanceof Te ? o = V(V([], $e(o)), $e(g.errors)) : o.push(g);
|
|
604
623
|
}
|
|
605
624
|
}
|
|
606
|
-
} catch (
|
|
607
|
-
n = { error:
|
|
625
|
+
} catch (g) {
|
|
626
|
+
n = { error: g };
|
|
608
627
|
} finally {
|
|
609
628
|
try {
|
|
610
|
-
|
|
629
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
611
630
|
} finally {
|
|
612
631
|
if (n)
|
|
613
632
|
throw n.error;
|
|
@@ -615,13 +634,13 @@ var _e = function() {
|
|
|
615
634
|
}
|
|
616
635
|
}
|
|
617
636
|
if (o)
|
|
618
|
-
throw new
|
|
637
|
+
throw new Te(o);
|
|
619
638
|
}
|
|
620
639
|
}, e.prototype.add = function(t) {
|
|
621
640
|
var r;
|
|
622
641
|
if (t && t !== this)
|
|
623
642
|
if (this.closed)
|
|
624
|
-
|
|
643
|
+
rt(t);
|
|
625
644
|
else {
|
|
626
645
|
if (t instanceof e) {
|
|
627
646
|
if (t.closed || t._hasParent(this))
|
|
@@ -638,52 +657,56 @@ var _e = function() {
|
|
|
638
657
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
639
658
|
}, e.prototype._removeParent = function(t) {
|
|
640
659
|
var r = this._parentage;
|
|
641
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
660
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
642
661
|
}, e.prototype.remove = function(t) {
|
|
643
662
|
var r = this._finalizers;
|
|
644
|
-
r &&
|
|
663
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
645
664
|
}, e.EMPTY = function() {
|
|
646
665
|
var t = new e();
|
|
647
666
|
return t.closed = !0, t;
|
|
648
667
|
}(), e;
|
|
649
|
-
}(),
|
|
650
|
-
function
|
|
651
|
-
return e instanceof
|
|
652
|
-
}
|
|
653
|
-
function
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
-
|
|
668
|
+
}(), At = ve.EMPTY;
|
|
669
|
+
function Ot(e) {
|
|
670
|
+
return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
671
|
+
}
|
|
672
|
+
function rt(e) {
|
|
673
|
+
O(e) ? e() : e.unsubscribe();
|
|
674
|
+
}
|
|
675
|
+
var Mr = {
|
|
676
|
+
onUnhandledError: null,
|
|
677
|
+
onStoppedNotification: null,
|
|
678
|
+
Promise: void 0,
|
|
679
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
680
|
+
useDeprecatedNextContext: !1
|
|
681
|
+
}, Cr = {
|
|
659
682
|
setTimeout: function(e, t) {
|
|
660
683
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
661
684
|
r[n - 2] = arguments[n];
|
|
662
|
-
return setTimeout.apply(void 0,
|
|
685
|
+
return setTimeout.apply(void 0, V([e, t], $e(r)));
|
|
663
686
|
},
|
|
664
687
|
clearTimeout: function(e) {
|
|
665
688
|
return clearTimeout(e);
|
|
666
689
|
},
|
|
667
690
|
delegate: void 0
|
|
668
691
|
};
|
|
669
|
-
function
|
|
670
|
-
|
|
692
|
+
function Rr(e) {
|
|
693
|
+
Cr.setTimeout(function() {
|
|
671
694
|
throw e;
|
|
672
695
|
});
|
|
673
696
|
}
|
|
674
|
-
function
|
|
697
|
+
function nt() {
|
|
675
698
|
}
|
|
676
|
-
function
|
|
699
|
+
function pe(e) {
|
|
677
700
|
e();
|
|
678
701
|
}
|
|
679
|
-
var
|
|
680
|
-
|
|
702
|
+
var It = function(e) {
|
|
703
|
+
N(t, e);
|
|
681
704
|
function t(r) {
|
|
682
705
|
var n = e.call(this) || this;
|
|
683
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
706
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Dr, n;
|
|
684
707
|
}
|
|
685
708
|
return t.create = function(r, n, i) {
|
|
686
|
-
return new
|
|
709
|
+
return new De(r, n, i);
|
|
687
710
|
}, t.prototype.next = function(r) {
|
|
688
711
|
this.isStopped || this._next(r);
|
|
689
712
|
}, t.prototype.error = function(r) {
|
|
@@ -707,7 +730,7 @@ var Ct = function(e) {
|
|
|
707
730
|
this.unsubscribe();
|
|
708
731
|
}
|
|
709
732
|
}, t;
|
|
710
|
-
}(
|
|
733
|
+
}(ve), $r = function() {
|
|
711
734
|
function e(t) {
|
|
712
735
|
this.partialObserver = t;
|
|
713
736
|
}
|
|
@@ -717,7 +740,7 @@ var Ct = function(e) {
|
|
|
717
740
|
try {
|
|
718
741
|
r.next(t);
|
|
719
742
|
} catch (n) {
|
|
720
|
-
|
|
743
|
+
fe(n);
|
|
721
744
|
}
|
|
722
745
|
}, e.prototype.error = function(t) {
|
|
723
746
|
var r = this.partialObserver;
|
|
@@ -725,56 +748,56 @@ var Ct = function(e) {
|
|
|
725
748
|
try {
|
|
726
749
|
r.error(t);
|
|
727
750
|
} catch (n) {
|
|
728
|
-
|
|
751
|
+
fe(n);
|
|
729
752
|
}
|
|
730
753
|
else
|
|
731
|
-
|
|
754
|
+
fe(t);
|
|
732
755
|
}, e.prototype.complete = function() {
|
|
733
756
|
var t = this.partialObserver;
|
|
734
757
|
if (t.complete)
|
|
735
758
|
try {
|
|
736
759
|
t.complete();
|
|
737
760
|
} catch (r) {
|
|
738
|
-
|
|
761
|
+
fe(r);
|
|
739
762
|
}
|
|
740
763
|
}, e;
|
|
741
|
-
}(),
|
|
742
|
-
|
|
764
|
+
}(), De = function(e) {
|
|
765
|
+
N(t, e);
|
|
743
766
|
function t(r, n, i) {
|
|
744
767
|
var o = e.call(this) || this, a;
|
|
745
|
-
return
|
|
768
|
+
return O(r) || !r ? a = {
|
|
746
769
|
next: r ?? void 0,
|
|
747
770
|
error: n ?? void 0,
|
|
748
771
|
complete: i ?? void 0
|
|
749
|
-
} : a = r, o.destination = new
|
|
772
|
+
} : a = r, o.destination = new $r(a), o;
|
|
750
773
|
}
|
|
751
774
|
return t;
|
|
752
|
-
}(
|
|
753
|
-
function
|
|
754
|
-
|
|
775
|
+
}(It);
|
|
776
|
+
function fe(e) {
|
|
777
|
+
Rr(e);
|
|
755
778
|
}
|
|
756
|
-
function
|
|
779
|
+
function Ur(e) {
|
|
757
780
|
throw e;
|
|
758
781
|
}
|
|
759
|
-
var
|
|
782
|
+
var Dr = {
|
|
760
783
|
closed: !0,
|
|
761
|
-
next:
|
|
762
|
-
error:
|
|
763
|
-
complete:
|
|
764
|
-
},
|
|
784
|
+
next: nt,
|
|
785
|
+
error: Ur,
|
|
786
|
+
complete: nt
|
|
787
|
+
}, Gr = function() {
|
|
765
788
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
766
789
|
}();
|
|
767
|
-
function
|
|
790
|
+
function Fr(e) {
|
|
768
791
|
return e;
|
|
769
792
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.length === 0 ?
|
|
793
|
+
function jr(e) {
|
|
794
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
|
|
772
795
|
return e.reduce(function(n, i) {
|
|
773
796
|
return i(n);
|
|
774
797
|
}, r);
|
|
775
798
|
};
|
|
776
799
|
}
|
|
777
|
-
var
|
|
800
|
+
var it = function() {
|
|
778
801
|
function e(t) {
|
|
779
802
|
t && (this._subscribe = t);
|
|
780
803
|
}
|
|
@@ -782,8 +805,8 @@ var ut = function() {
|
|
|
782
805
|
var r = new e();
|
|
783
806
|
return r.source = this, r.operator = t, r;
|
|
784
807
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
785
|
-
var i = this, o =
|
|
786
|
-
return
|
|
808
|
+
var i = this, o = Wr(t) ? t : new De(t, r, n);
|
|
809
|
+
return pe(function() {
|
|
787
810
|
var a = i, s = a.operator, l = a.source;
|
|
788
811
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
789
812
|
}), o;
|
|
@@ -795,8 +818,8 @@ var ut = function() {
|
|
|
795
818
|
}
|
|
796
819
|
}, e.prototype.forEach = function(t, r) {
|
|
797
820
|
var n = this;
|
|
798
|
-
return r =
|
|
799
|
-
var a = new
|
|
821
|
+
return r = ot(r), new r(function(i, o) {
|
|
822
|
+
var a = new De({
|
|
800
823
|
next: function(s) {
|
|
801
824
|
try {
|
|
802
825
|
t(s);
|
|
@@ -812,15 +835,15 @@ var ut = function() {
|
|
|
812
835
|
}, e.prototype._subscribe = function(t) {
|
|
813
836
|
var r;
|
|
814
837
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
815
|
-
}, e.prototype[
|
|
838
|
+
}, e.prototype[Gr] = function() {
|
|
816
839
|
return this;
|
|
817
840
|
}, e.prototype.pipe = function() {
|
|
818
841
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
819
842
|
t[r] = arguments[r];
|
|
820
|
-
return
|
|
843
|
+
return jr(t)(this);
|
|
821
844
|
}, e.prototype.toPromise = function(t) {
|
|
822
845
|
var r = this;
|
|
823
|
-
return t =
|
|
846
|
+
return t = ot(t), new t(function(n, i) {
|
|
824
847
|
var o;
|
|
825
848
|
r.subscribe(function(a) {
|
|
826
849
|
return o = a;
|
|
@@ -834,40 +857,40 @@ var ut = function() {
|
|
|
834
857
|
return new e(t);
|
|
835
858
|
}, e;
|
|
836
859
|
}();
|
|
837
|
-
function
|
|
860
|
+
function ot(e) {
|
|
838
861
|
var t;
|
|
839
|
-
return (t = e ??
|
|
862
|
+
return (t = e ?? Mr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
840
863
|
}
|
|
841
|
-
function
|
|
842
|
-
return e &&
|
|
864
|
+
function kr(e) {
|
|
865
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
843
866
|
}
|
|
844
|
-
function
|
|
845
|
-
return e && e instanceof
|
|
867
|
+
function Wr(e) {
|
|
868
|
+
return e && e instanceof It || kr(e) && Ot(e);
|
|
846
869
|
}
|
|
847
|
-
var
|
|
870
|
+
var Vr = Pt(function(e) {
|
|
848
871
|
return function() {
|
|
849
872
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
850
873
|
};
|
|
851
|
-
}),
|
|
852
|
-
|
|
874
|
+
}), Nt = function(e) {
|
|
875
|
+
N(t, e);
|
|
853
876
|
function t() {
|
|
854
877
|
var r = e.call(this) || this;
|
|
855
878
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
856
879
|
}
|
|
857
880
|
return t.prototype.lift = function(r) {
|
|
858
|
-
var n = new
|
|
881
|
+
var n = new st(this, this);
|
|
859
882
|
return n.operator = r, n;
|
|
860
883
|
}, t.prototype._throwIfClosed = function() {
|
|
861
884
|
if (this.closed)
|
|
862
|
-
throw new
|
|
885
|
+
throw new Vr();
|
|
863
886
|
}, t.prototype.next = function(r) {
|
|
864
887
|
var n = this;
|
|
865
|
-
|
|
888
|
+
pe(function() {
|
|
866
889
|
var i, o;
|
|
867
890
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
868
891
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
869
892
|
try {
|
|
870
|
-
for (var a =
|
|
893
|
+
for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
871
894
|
var l = s.value;
|
|
872
895
|
l.next(r);
|
|
873
896
|
}
|
|
@@ -885,7 +908,7 @@ var Zr = Nt(function(e) {
|
|
|
885
908
|
});
|
|
886
909
|
}, t.prototype.error = function(r) {
|
|
887
910
|
var n = this;
|
|
888
|
-
|
|
911
|
+
pe(function() {
|
|
889
912
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
890
913
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
891
914
|
for (var i = n.observers; i.length; )
|
|
@@ -894,7 +917,7 @@ var Zr = Nt(function(e) {
|
|
|
894
917
|
});
|
|
895
918
|
}, t.prototype.complete = function() {
|
|
896
919
|
var r = this;
|
|
897
|
-
|
|
920
|
+
pe(function() {
|
|
898
921
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
899
922
|
r.isStopped = !0;
|
|
900
923
|
for (var n = r.observers; n.length; )
|
|
@@ -916,20 +939,20 @@ var Zr = Nt(function(e) {
|
|
|
916
939
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
917
940
|
}, t.prototype._innerSubscribe = function(r) {
|
|
918
941
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
919
|
-
return o || a ?
|
|
920
|
-
n.currentObservers = null,
|
|
942
|
+
return o || a ? At : (this.currentObservers = null, s.push(r), new ve(function() {
|
|
943
|
+
n.currentObservers = null, Ue(s, r);
|
|
921
944
|
}));
|
|
922
945
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
923
946
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
924
947
|
i ? r.error(o) : a && r.complete();
|
|
925
948
|
}, t.prototype.asObservable = function() {
|
|
926
|
-
var r = new
|
|
949
|
+
var r = new it();
|
|
927
950
|
return r.source = this, r;
|
|
928
951
|
}, t.create = function(r, n) {
|
|
929
|
-
return new
|
|
952
|
+
return new st(r, n);
|
|
930
953
|
}, t;
|
|
931
|
-
}(
|
|
932
|
-
|
|
954
|
+
}(it), st = function(e) {
|
|
955
|
+
N(t, e);
|
|
933
956
|
function t(r, n) {
|
|
934
957
|
var i = e.call(this) || this;
|
|
935
958
|
return i.destination = r, i.source = n, i;
|
|
@@ -945,17 +968,17 @@ var Zr = Nt(function(e) {
|
|
|
945
968
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
946
969
|
}, t.prototype._subscribe = function(r) {
|
|
947
970
|
var n, i;
|
|
948
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
971
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
949
972
|
}, t;
|
|
950
|
-
}(
|
|
973
|
+
}(Nt), Lt = {
|
|
951
974
|
now: function() {
|
|
952
|
-
return (
|
|
975
|
+
return (Lt.delegate || Date).now();
|
|
953
976
|
},
|
|
954
977
|
delegate: void 0
|
|
955
|
-
},
|
|
956
|
-
|
|
978
|
+
}, Xr = function(e) {
|
|
979
|
+
N(t, e);
|
|
957
980
|
function t(r, n, i) {
|
|
958
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
981
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
959
982
|
var o = e.call(this) || this;
|
|
960
983
|
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;
|
|
961
984
|
}
|
|
@@ -975,24 +998,24 @@ var Zr = Nt(function(e) {
|
|
|
975
998
|
u && o.splice(0, u + 1);
|
|
976
999
|
}
|
|
977
1000
|
}, t;
|
|
978
|
-
}(
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
const r = new
|
|
982
|
-
|
|
1001
|
+
}(Nt);
|
|
1002
|
+
const at = [], ut = {}, zr = (e, t = 0) => {
|
|
1003
|
+
if (at.indexOf(e) == -1) {
|
|
1004
|
+
const r = new Xr(t);
|
|
1005
|
+
ut[e] = r, at.push(e);
|
|
983
1006
|
}
|
|
984
|
-
return
|
|
1007
|
+
return ut[e];
|
|
985
1008
|
}, j = [];
|
|
986
|
-
function
|
|
1009
|
+
function Zr(e, t) {
|
|
987
1010
|
return {
|
|
988
|
-
subscribe:
|
|
1011
|
+
subscribe: _e(e, t).subscribe
|
|
989
1012
|
};
|
|
990
1013
|
}
|
|
991
|
-
function
|
|
1014
|
+
function _e(e, t = B) {
|
|
992
1015
|
let r;
|
|
993
1016
|
const n = /* @__PURE__ */ new Set();
|
|
994
1017
|
function i(s) {
|
|
995
|
-
if (
|
|
1018
|
+
if (Tt(e, s) && (e = s, r)) {
|
|
996
1019
|
const l = !j.length;
|
|
997
1020
|
for (const u of n)
|
|
998
1021
|
u[1](), j.push(u, e);
|
|
@@ -1006,192 +1029,153 @@ function Ee(e, t = P) {
|
|
|
1006
1029
|
function o(s) {
|
|
1007
1030
|
i(s(e));
|
|
1008
1031
|
}
|
|
1009
|
-
function a(s, l =
|
|
1032
|
+
function a(s, l = B) {
|
|
1010
1033
|
const u = [s, l];
|
|
1011
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1034
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), s(e), () => {
|
|
1012
1035
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1013
1036
|
};
|
|
1014
1037
|
}
|
|
1015
1038
|
return { set: i, update: o, subscribe: a };
|
|
1016
1039
|
}
|
|
1017
|
-
function
|
|
1040
|
+
function q(e, t, r) {
|
|
1018
1041
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1019
1042
|
if (!i.every(Boolean))
|
|
1020
1043
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1021
1044
|
const o = t.length < 2;
|
|
1022
|
-
return
|
|
1045
|
+
return Zr(r, (a, s) => {
|
|
1023
1046
|
let l = !1;
|
|
1024
1047
|
const u = [];
|
|
1025
|
-
let h = 0,
|
|
1026
|
-
const
|
|
1048
|
+
let h = 0, f = B;
|
|
1049
|
+
const c = () => {
|
|
1027
1050
|
if (h)
|
|
1028
1051
|
return;
|
|
1029
|
-
|
|
1052
|
+
f();
|
|
1030
1053
|
const m = t(n ? u[0] : u, a, s);
|
|
1031
|
-
o ? a(m) :
|
|
1032
|
-
},
|
|
1033
|
-
(m,
|
|
1054
|
+
o ? a(m) : f = Ze(m) ? m : B;
|
|
1055
|
+
}, d = i.map(
|
|
1056
|
+
(m, g) => Ht(
|
|
1034
1057
|
m,
|
|
1035
1058
|
(w) => {
|
|
1036
|
-
u[
|
|
1059
|
+
u[g] = w, h &= ~(1 << g), l && c();
|
|
1037
1060
|
},
|
|
1038
1061
|
() => {
|
|
1039
|
-
h |= 1 <<
|
|
1062
|
+
h |= 1 << g;
|
|
1040
1063
|
}
|
|
1041
1064
|
)
|
|
1042
1065
|
);
|
|
1043
|
-
return l = !0,
|
|
1044
|
-
|
|
1066
|
+
return l = !0, c(), function() {
|
|
1067
|
+
se(d), f(), l = !1;
|
|
1045
1068
|
};
|
|
1046
1069
|
});
|
|
1047
1070
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return e
|
|
1071
|
+
function Qr(e) {
|
|
1072
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1050
1073
|
}
|
|
1051
|
-
var
|
|
1052
|
-
return
|
|
1074
|
+
var Jr = function(t) {
|
|
1075
|
+
return qr(t) && !Yr(t);
|
|
1053
1076
|
};
|
|
1054
|
-
function
|
|
1077
|
+
function qr(e) {
|
|
1055
1078
|
return !!e && typeof e == "object";
|
|
1056
1079
|
}
|
|
1057
|
-
function
|
|
1080
|
+
function Yr(e) {
|
|
1058
1081
|
var t = Object.prototype.toString.call(e);
|
|
1059
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1082
|
+
return t === "[object RegExp]" || t === "[object Date]" || tn(e);
|
|
1060
1083
|
}
|
|
1061
|
-
var
|
|
1062
|
-
function
|
|
1063
|
-
return e.$$typeof ===
|
|
1084
|
+
var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
|
|
1085
|
+
function tn(e) {
|
|
1086
|
+
return e.$$typeof === en;
|
|
1064
1087
|
}
|
|
1065
|
-
function
|
|
1088
|
+
function rn(e) {
|
|
1066
1089
|
return Array.isArray(e) ? [] : {};
|
|
1067
1090
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1091
|
+
function ie(e, t) {
|
|
1092
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(rn(e), e, t) : e;
|
|
1070
1093
|
}
|
|
1071
|
-
function
|
|
1094
|
+
function nn(e, t, r) {
|
|
1072
1095
|
return e.concat(t).map(function(n) {
|
|
1073
|
-
return
|
|
1096
|
+
return ie(n, r);
|
|
1074
1097
|
});
|
|
1075
1098
|
}
|
|
1076
|
-
function
|
|
1099
|
+
function on(e, t) {
|
|
1077
1100
|
if (!t.customMerge)
|
|
1078
|
-
return
|
|
1101
|
+
return X;
|
|
1079
1102
|
var r = t.customMerge(e);
|
|
1080
|
-
return typeof r == "function" ? r :
|
|
1103
|
+
return typeof r == "function" ? r : X;
|
|
1081
1104
|
}
|
|
1082
|
-
function
|
|
1105
|
+
function sn(e) {
|
|
1083
1106
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1084
1107
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1085
1108
|
}) : [];
|
|
1086
1109
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return Object.keys(e).concat(
|
|
1110
|
+
function ht(e) {
|
|
1111
|
+
return Object.keys(e).concat(sn(e));
|
|
1089
1112
|
}
|
|
1090
|
-
function
|
|
1113
|
+
function Mt(e, t) {
|
|
1091
1114
|
try {
|
|
1092
1115
|
return t in e;
|
|
1093
1116
|
} catch {
|
|
1094
1117
|
return !1;
|
|
1095
1118
|
}
|
|
1096
1119
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1120
|
+
function an(e, t) {
|
|
1121
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1099
1122
|
}
|
|
1100
|
-
function
|
|
1123
|
+
function un(e, t, r) {
|
|
1101
1124
|
var n = {};
|
|
1102
|
-
return r.isMergeableObject(e) &&
|
|
1103
|
-
n[i] =
|
|
1104
|
-
}),
|
|
1105
|
-
|
|
1125
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1126
|
+
n[i] = ie(e[i], r);
|
|
1127
|
+
}), ht(t).forEach(function(i) {
|
|
1128
|
+
an(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1106
1129
|
}), n;
|
|
1107
1130
|
}
|
|
1108
|
-
function
|
|
1109
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1131
|
+
function X(e, t, r) {
|
|
1132
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1110
1133
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1111
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1134
|
+
return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : ie(t, r);
|
|
1112
1135
|
}
|
|
1113
|
-
|
|
1136
|
+
X.all = function(t, r) {
|
|
1114
1137
|
if (!Array.isArray(t))
|
|
1115
1138
|
throw new Error("first argument should be an array");
|
|
1116
1139
|
return t.reduce(function(n, i) {
|
|
1117
|
-
return
|
|
1140
|
+
return X(n, i, r);
|
|
1118
1141
|
}, {});
|
|
1119
1142
|
};
|
|
1120
|
-
var
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
r.__proto__ = n;
|
|
1125
|
-
} || function(r, n) {
|
|
1126
|
-
for (var i in n)
|
|
1127
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1128
|
-
}, We(e, t);
|
|
1129
|
-
};
|
|
1130
|
-
function xe(e, t) {
|
|
1131
|
-
if (typeof t != "function" && t !== null)
|
|
1132
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1133
|
-
We(e, t);
|
|
1134
|
-
function r() {
|
|
1135
|
-
this.constructor = e;
|
|
1136
|
-
}
|
|
1137
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1138
|
-
}
|
|
1139
|
-
var O = function() {
|
|
1140
|
-
return O = Object.assign || function(t) {
|
|
1141
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1142
|
-
r = arguments[n];
|
|
1143
|
-
for (var o in r)
|
|
1144
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1145
|
-
}
|
|
1146
|
-
return t;
|
|
1147
|
-
}, O.apply(this, arguments);
|
|
1148
|
-
};
|
|
1149
|
-
function mn(e, t) {
|
|
1150
|
-
var r = {};
|
|
1151
|
-
for (var n in e)
|
|
1152
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1153
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1154
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1155
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1156
|
-
return r;
|
|
1157
|
-
}
|
|
1158
|
-
function Be(e, t, r) {
|
|
1159
|
-
if (r || arguments.length === 2)
|
|
1160
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1161
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1162
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1163
|
-
}
|
|
1164
|
-
function Ae(e, t) {
|
|
1165
|
-
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : gn;
|
|
1143
|
+
var hn = X, ln = hn;
|
|
1144
|
+
const fn = /* @__PURE__ */ Qr(ln);
|
|
1145
|
+
function He(e, t) {
|
|
1146
|
+
var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : dn;
|
|
1166
1147
|
return i(e, {
|
|
1167
1148
|
cache: r,
|
|
1168
1149
|
serializer: n
|
|
1169
1150
|
});
|
|
1170
1151
|
}
|
|
1171
|
-
function
|
|
1152
|
+
function cn(e) {
|
|
1172
1153
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1173
1154
|
}
|
|
1174
|
-
function
|
|
1175
|
-
var i =
|
|
1155
|
+
function Ct(e, t, r, n) {
|
|
1156
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1176
1157
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1177
1158
|
}
|
|
1178
|
-
function
|
|
1159
|
+
function Rt(e, t, r) {
|
|
1179
1160
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1180
1161
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1181
1162
|
}
|
|
1182
|
-
function
|
|
1163
|
+
function Je(e, t, r, n, i) {
|
|
1183
1164
|
return r.bind(t, e, n, i);
|
|
1184
1165
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var r = e.length === 1 ?
|
|
1187
|
-
return
|
|
1166
|
+
function dn(e, t) {
|
|
1167
|
+
var r = e.length === 1 ? Ct : Rt;
|
|
1168
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1188
1169
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1170
|
+
function pn(e, t) {
|
|
1171
|
+
return Je(e, this, Rt, t.cache.create(), t.serializer);
|
|
1191
1172
|
}
|
|
1192
|
-
|
|
1173
|
+
function mn(e, t) {
|
|
1174
|
+
return Je(e, this, Ct, t.cache.create(), t.serializer);
|
|
1175
|
+
}
|
|
1176
|
+
var bn = function() {
|
|
1193
1177
|
return JSON.stringify(arguments);
|
|
1194
|
-
},
|
|
1178
|
+
}, gn = (
|
|
1195
1179
|
/** @class */
|
|
1196
1180
|
function() {
|
|
1197
1181
|
function e() {
|
|
@@ -1203,71 +1187,62 @@ var _n = function() {
|
|
|
1203
1187
|
this.cache[t] = r;
|
|
1204
1188
|
}, e;
|
|
1205
1189
|
}()
|
|
1206
|
-
),
|
|
1190
|
+
), yn = {
|
|
1207
1191
|
create: function() {
|
|
1208
|
-
return new
|
|
1192
|
+
return new gn();
|
|
1209
1193
|
}
|
|
1210
|
-
},
|
|
1211
|
-
variadic:
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1215
|
-
r = arguments[n];
|
|
1216
|
-
for (var o in r)
|
|
1217
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1218
|
-
}
|
|
1219
|
-
return t;
|
|
1220
|
-
}, ye.apply(this, arguments);
|
|
1221
|
-
};
|
|
1222
|
-
var b;
|
|
1194
|
+
}, Be = {
|
|
1195
|
+
variadic: pn,
|
|
1196
|
+
monadic: mn
|
|
1197
|
+
}, b;
|
|
1223
1198
|
(function(e) {
|
|
1224
1199
|
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";
|
|
1225
1200
|
})(b || (b = {}));
|
|
1226
|
-
var
|
|
1201
|
+
var _;
|
|
1227
1202
|
(function(e) {
|
|
1228
1203
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1229
|
-
})(
|
|
1230
|
-
var
|
|
1204
|
+
})(_ || (_ = {}));
|
|
1205
|
+
var z;
|
|
1231
1206
|
(function(e) {
|
|
1232
1207
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1233
|
-
})(
|
|
1234
|
-
function
|
|
1235
|
-
return e.type ===
|
|
1208
|
+
})(z || (z = {}));
|
|
1209
|
+
function lt(e) {
|
|
1210
|
+
return e.type === _.literal;
|
|
1236
1211
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1212
|
+
function vn(e) {
|
|
1213
|
+
return e.type === _.argument;
|
|
1239
1214
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return e.type ===
|
|
1215
|
+
function $t(e) {
|
|
1216
|
+
return e.type === _.number;
|
|
1242
1217
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1218
|
+
function Ut(e) {
|
|
1219
|
+
return e.type === _.date;
|
|
1245
1220
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return e.type ===
|
|
1221
|
+
function Dt(e) {
|
|
1222
|
+
return e.type === _.time;
|
|
1248
1223
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return e.type ===
|
|
1224
|
+
function Gt(e) {
|
|
1225
|
+
return e.type === _.select;
|
|
1251
1226
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return e.type ===
|
|
1227
|
+
function Ft(e) {
|
|
1228
|
+
return e.type === _.plural;
|
|
1254
1229
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return e.type ===
|
|
1230
|
+
function _n(e) {
|
|
1231
|
+
return e.type === _.pound;
|
|
1257
1232
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return e.type ===
|
|
1233
|
+
function jt(e) {
|
|
1234
|
+
return e.type === _.tag;
|
|
1260
1235
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1236
|
+
function kt(e) {
|
|
1237
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1263
1238
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1239
|
+
function Ge(e) {
|
|
1240
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1266
1241
|
}
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1242
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
|
|
1243
|
+
function xn(e) {
|
|
1269
1244
|
var t = {};
|
|
1270
|
-
return e.replace(
|
|
1245
|
+
return e.replace(En, function(r) {
|
|
1271
1246
|
var n = r.length;
|
|
1272
1247
|
switch (r[0]) {
|
|
1273
1248
|
case "G":
|
|
@@ -1356,46 +1331,36 @@ function Hn(e) {
|
|
|
1356
1331
|
return "";
|
|
1357
1332
|
}), t;
|
|
1358
1333
|
}
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1361
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1362
|
-
r = arguments[n];
|
|
1363
|
-
for (var o in r)
|
|
1364
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1365
|
-
}
|
|
1366
|
-
return t;
|
|
1367
|
-
}, _.apply(this, arguments);
|
|
1368
|
-
};
|
|
1369
|
-
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1370
|
-
function Bn(e) {
|
|
1334
|
+
var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1335
|
+
function Sn(e) {
|
|
1371
1336
|
if (e.length === 0)
|
|
1372
1337
|
throw new Error("Number skeleton cannot be empty");
|
|
1373
|
-
for (var t = e.split(
|
|
1374
|
-
return
|
|
1338
|
+
for (var t = e.split(wn).filter(function(c) {
|
|
1339
|
+
return c.length > 0;
|
|
1375
1340
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1376
1341
|
var o = i[n], a = o.split("/");
|
|
1377
1342
|
if (a.length === 0)
|
|
1378
1343
|
throw new Error("Invalid number skeleton");
|
|
1379
1344
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1380
|
-
var
|
|
1381
|
-
if (
|
|
1345
|
+
var f = h[u];
|
|
1346
|
+
if (f.length === 0)
|
|
1382
1347
|
throw new Error("Invalid number skeleton");
|
|
1383
1348
|
}
|
|
1384
1349
|
r.push({ stem: s, options: l });
|
|
1385
1350
|
}
|
|
1386
1351
|
return r;
|
|
1387
1352
|
}
|
|
1388
|
-
function
|
|
1353
|
+
function Tn(e) {
|
|
1389
1354
|
return e.replace(/^(.*?)-/, "");
|
|
1390
1355
|
}
|
|
1391
|
-
var
|
|
1392
|
-
function
|
|
1356
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1357
|
+
function ct(e) {
|
|
1393
1358
|
var t = {};
|
|
1394
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1359
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1395
1360
|
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)), "";
|
|
1396
1361
|
}), t;
|
|
1397
1362
|
}
|
|
1398
|
-
function
|
|
1363
|
+
function zt(e) {
|
|
1399
1364
|
switch (e) {
|
|
1400
1365
|
case "sign-auto":
|
|
1401
1366
|
return {
|
|
@@ -1435,7 +1400,7 @@ function qt(e) {
|
|
|
1435
1400
|
};
|
|
1436
1401
|
}
|
|
1437
1402
|
}
|
|
1438
|
-
function
|
|
1403
|
+
function Bn(e) {
|
|
1439
1404
|
var t;
|
|
1440
1405
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1441
1406
|
notation: "engineering"
|
|
@@ -1443,17 +1408,17 @@ function In(e) {
|
|
|
1443
1408
|
notation: "scientific"
|
|
1444
1409
|
}, e = e.slice(1)), t) {
|
|
1445
1410
|
var r = e.slice(0, 2);
|
|
1446
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1411
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
1447
1412
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1448
1413
|
t.minimumIntegerDigits = e.length;
|
|
1449
1414
|
}
|
|
1450
1415
|
return t;
|
|
1451
1416
|
}
|
|
1452
|
-
function
|
|
1453
|
-
var t = {}, r =
|
|
1417
|
+
function dt(e) {
|
|
1418
|
+
var t = {}, r = zt(e);
|
|
1454
1419
|
return r || t;
|
|
1455
1420
|
}
|
|
1456
|
-
function
|
|
1421
|
+
function Pn(e) {
|
|
1457
1422
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1458
1423
|
var i = n[r];
|
|
1459
1424
|
switch (i.stem) {
|
|
@@ -1477,7 +1442,7 @@ function Nn(e) {
|
|
|
1477
1442
|
continue;
|
|
1478
1443
|
case "measure-unit":
|
|
1479
1444
|
case "unit":
|
|
1480
|
-
t.style = "unit", t.unit =
|
|
1445
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1481
1446
|
continue;
|
|
1482
1447
|
case "compact-short":
|
|
1483
1448
|
case "K":
|
|
@@ -1488,13 +1453,13 @@ function Nn(e) {
|
|
|
1488
1453
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1489
1454
|
continue;
|
|
1490
1455
|
case "scientific":
|
|
1491
|
-
t =
|
|
1492
|
-
return
|
|
1456
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1457
|
+
return v(v({}, l), dt(u));
|
|
1493
1458
|
}, {}));
|
|
1494
1459
|
continue;
|
|
1495
1460
|
case "engineering":
|
|
1496
|
-
t =
|
|
1497
|
-
return
|
|
1461
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1462
|
+
return v(v({}, l), dt(u));
|
|
1498
1463
|
}, {}));
|
|
1499
1464
|
continue;
|
|
1500
1465
|
case "notation-simple":
|
|
@@ -1539,45 +1504,45 @@ function Nn(e) {
|
|
|
1539
1504
|
case "integer-width":
|
|
1540
1505
|
if (i.options.length > 1)
|
|
1541
1506
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1542
|
-
i.options[0].replace(
|
|
1507
|
+
i.options[0].replace(Hn, function(l, u, h, f, c, d) {
|
|
1543
1508
|
if (u)
|
|
1544
1509
|
t.minimumIntegerDigits = h.length;
|
|
1545
1510
|
else {
|
|
1546
|
-
if (
|
|
1511
|
+
if (f && c)
|
|
1547
1512
|
throw new Error("We currently do not support maximum integer digits");
|
|
1548
|
-
if (
|
|
1513
|
+
if (d)
|
|
1549
1514
|
throw new Error("We currently do not support exact integer digits");
|
|
1550
1515
|
}
|
|
1551
1516
|
return "";
|
|
1552
1517
|
});
|
|
1553
1518
|
continue;
|
|
1554
1519
|
}
|
|
1555
|
-
if (
|
|
1520
|
+
if (Xt.test(i.stem)) {
|
|
1556
1521
|
t.minimumIntegerDigits = i.stem.length;
|
|
1557
1522
|
continue;
|
|
1558
1523
|
}
|
|
1559
|
-
if (
|
|
1524
|
+
if (ft.test(i.stem)) {
|
|
1560
1525
|
if (i.options.length > 1)
|
|
1561
1526
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1562
|
-
i.stem.replace(
|
|
1563
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1527
|
+
i.stem.replace(ft, function(l, u, h, f, c, d) {
|
|
1528
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1564
1529
|
});
|
|
1565
1530
|
var o = i.options[0];
|
|
1566
|
-
o === "w" ? t =
|
|
1531
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
|
|
1567
1532
|
continue;
|
|
1568
1533
|
}
|
|
1569
|
-
if (
|
|
1570
|
-
t =
|
|
1534
|
+
if (Vt.test(i.stem)) {
|
|
1535
|
+
t = v(v({}, t), ct(i.stem));
|
|
1571
1536
|
continue;
|
|
1572
1537
|
}
|
|
1573
|
-
var a =
|
|
1574
|
-
a && (t =
|
|
1575
|
-
var s =
|
|
1576
|
-
s && (t =
|
|
1538
|
+
var a = zt(i.stem);
|
|
1539
|
+
a && (t = v(v({}, t), a));
|
|
1540
|
+
var s = Bn(i.stem);
|
|
1541
|
+
s && (t = v(v({}, t), s));
|
|
1577
1542
|
}
|
|
1578
1543
|
return t;
|
|
1579
1544
|
}
|
|
1580
|
-
var
|
|
1545
|
+
var ce = {
|
|
1581
1546
|
"001": [
|
|
1582
1547
|
"H",
|
|
1583
1548
|
"h"
|
|
@@ -2992,13 +2957,13 @@ var fe = {
|
|
|
2992
2957
|
"h"
|
|
2993
2958
|
]
|
|
2994
2959
|
};
|
|
2995
|
-
function
|
|
2960
|
+
function An(e, t) {
|
|
2996
2961
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2997
2962
|
var i = e.charAt(n);
|
|
2998
2963
|
if (i === "j") {
|
|
2999
2964
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3000
2965
|
o++, n++;
|
|
3001
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2966
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = On(t);
|
|
3002
2967
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3003
2968
|
r += l;
|
|
3004
2969
|
for (; a-- > 0; )
|
|
@@ -3008,7 +2973,7 @@ function Ln(e, t) {
|
|
|
3008
2973
|
}
|
|
3009
2974
|
return r;
|
|
3010
2975
|
}
|
|
3011
|
-
function
|
|
2976
|
+
function On(e) {
|
|
3012
2977
|
var t = e.hourCycle;
|
|
3013
2978
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3014
2979
|
e.hourCycles && // @ts-ignore
|
|
@@ -3027,23 +2992,23 @@ function Mn(e) {
|
|
|
3027
2992
|
}
|
|
3028
2993
|
var r = e.language, n;
|
|
3029
2994
|
r !== "root" && (n = e.maximize().region);
|
|
3030
|
-
var i =
|
|
2995
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3031
2996
|
return i[0];
|
|
3032
2997
|
}
|
|
3033
|
-
var
|
|
3034
|
-
function
|
|
2998
|
+
var Pe, In = new RegExp("^".concat(Wt.source, "*")), Nn = new RegExp("".concat(Wt.source, "*$"));
|
|
2999
|
+
function y(e, t) {
|
|
3035
3000
|
return { start: e, end: t };
|
|
3036
3001
|
}
|
|
3037
|
-
var
|
|
3002
|
+
var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Cn = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Un = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Gn = Dn ? Number.isSafeInteger : function(e) {
|
|
3038
3003
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3039
|
-
},
|
|
3004
|
+
}, Fe = !0;
|
|
3040
3005
|
try {
|
|
3041
|
-
var
|
|
3042
|
-
|
|
3006
|
+
var Fn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3007
|
+
Fe = ((Pe = Fn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3043
3008
|
} catch {
|
|
3044
|
-
|
|
3009
|
+
Fe = !1;
|
|
3045
3010
|
}
|
|
3046
|
-
var
|
|
3011
|
+
var pt = Ln ? (
|
|
3047
3012
|
// Native
|
|
3048
3013
|
function(t, r, n) {
|
|
3049
3014
|
return t.startsWith(r, n);
|
|
@@ -3053,7 +3018,7 @@ var gt = $n ? (
|
|
|
3053
3018
|
function(t, r, n) {
|
|
3054
3019
|
return t.slice(n, n + r.length) === r;
|
|
3055
3020
|
}
|
|
3056
|
-
),
|
|
3021
|
+
), je = Mn ? String.fromCodePoint : (
|
|
3057
3022
|
// IE11
|
|
3058
3023
|
function() {
|
|
3059
3024
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3065,9 +3030,9 @@ var gt = $n ? (
|
|
|
3065
3030
|
}
|
|
3066
3031
|
return n;
|
|
3067
3032
|
}
|
|
3068
|
-
),
|
|
3033
|
+
), mt = (
|
|
3069
3034
|
// native
|
|
3070
|
-
|
|
3035
|
+
Cn ? Object.fromEntries : (
|
|
3071
3036
|
// Ponyfill
|
|
3072
3037
|
function(t) {
|
|
3073
3038
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3077,7 +3042,7 @@ var gt = $n ? (
|
|
|
3077
3042
|
return r;
|
|
3078
3043
|
}
|
|
3079
3044
|
)
|
|
3080
|
-
),
|
|
3045
|
+
), Zt = Rn ? (
|
|
3081
3046
|
// Native
|
|
3082
3047
|
function(t, r) {
|
|
3083
3048
|
return t.codePointAt(r);
|
|
@@ -3091,7 +3056,7 @@ var gt = $n ? (
|
|
|
3091
3056
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3092
3057
|
}
|
|
3093
3058
|
}
|
|
3094
|
-
),
|
|
3059
|
+
), jn = $n ? (
|
|
3095
3060
|
// Native
|
|
3096
3061
|
function(t) {
|
|
3097
3062
|
return t.trimStart();
|
|
@@ -3099,9 +3064,9 @@ var gt = $n ? (
|
|
|
3099
3064
|
) : (
|
|
3100
3065
|
// Ponyfill
|
|
3101
3066
|
function(t) {
|
|
3102
|
-
return t.replace(
|
|
3067
|
+
return t.replace(In, "");
|
|
3103
3068
|
}
|
|
3104
|
-
),
|
|
3069
|
+
), kn = Un ? (
|
|
3105
3070
|
// Native
|
|
3106
3071
|
function(t) {
|
|
3107
3072
|
return t.trimEnd();
|
|
@@ -3109,32 +3074,32 @@ var gt = $n ? (
|
|
|
3109
3074
|
) : (
|
|
3110
3075
|
// Ponyfill
|
|
3111
3076
|
function(t) {
|
|
3112
|
-
return t.replace(
|
|
3077
|
+
return t.replace(Nn, "");
|
|
3113
3078
|
}
|
|
3114
3079
|
);
|
|
3115
|
-
function
|
|
3080
|
+
function Qt(e, t) {
|
|
3116
3081
|
return new RegExp(e, t);
|
|
3117
3082
|
}
|
|
3118
|
-
var
|
|
3119
|
-
if (
|
|
3120
|
-
var
|
|
3121
|
-
|
|
3083
|
+
var ke;
|
|
3084
|
+
if (Fe) {
|
|
3085
|
+
var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3086
|
+
ke = function(t, r) {
|
|
3122
3087
|
var n;
|
|
3123
|
-
|
|
3124
|
-
var i =
|
|
3088
|
+
bt.lastIndex = r;
|
|
3089
|
+
var i = bt.exec(t);
|
|
3125
3090
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3126
3091
|
};
|
|
3127
3092
|
} else
|
|
3128
|
-
|
|
3093
|
+
ke = function(t, r) {
|
|
3129
3094
|
for (var n = []; ; ) {
|
|
3130
|
-
var i =
|
|
3131
|
-
if (i === void 0 ||
|
|
3095
|
+
var i = Zt(t, r);
|
|
3096
|
+
if (i === void 0 || Jt(i) || zn(i))
|
|
3132
3097
|
break;
|
|
3133
3098
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3134
3099
|
}
|
|
3135
|
-
return
|
|
3100
|
+
return je.apply(void 0, n);
|
|
3136
3101
|
};
|
|
3137
|
-
var
|
|
3102
|
+
var Wn = (
|
|
3138
3103
|
/** @class */
|
|
3139
3104
|
function() {
|
|
3140
3105
|
function e(t, r) {
|
|
@@ -3158,14 +3123,14 @@ var Zn = (
|
|
|
3158
3123
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3159
3124
|
var s = this.clonePosition();
|
|
3160
3125
|
this.bump(), i.push({
|
|
3161
|
-
type:
|
|
3162
|
-
location:
|
|
3126
|
+
type: _.pound,
|
|
3127
|
+
location: y(s, this.clonePosition())
|
|
3163
3128
|
});
|
|
3164
3129
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3165
3130
|
if (n)
|
|
3166
3131
|
break;
|
|
3167
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3168
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3132
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3133
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3169
3134
|
var a = this.parseTag(t, r);
|
|
3170
3135
|
if (a.err)
|
|
3171
3136
|
return a;
|
|
@@ -3186,9 +3151,9 @@ var Zn = (
|
|
|
3186
3151
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3187
3152
|
return {
|
|
3188
3153
|
val: {
|
|
3189
|
-
type:
|
|
3154
|
+
type: _.literal,
|
|
3190
3155
|
value: "<".concat(i, "/>"),
|
|
3191
|
-
location:
|
|
3156
|
+
location: y(n, this.clonePosition())
|
|
3192
3157
|
},
|
|
3193
3158
|
err: null
|
|
3194
3159
|
};
|
|
@@ -3198,25 +3163,25 @@ var Zn = (
|
|
|
3198
3163
|
return o;
|
|
3199
3164
|
var a = o.val, s = this.clonePosition();
|
|
3200
3165
|
if (this.bumpIf("</")) {
|
|
3201
|
-
if (this.isEOF() || !
|
|
3202
|
-
return this.error(b.INVALID_TAG,
|
|
3166
|
+
if (this.isEOF() || !We(this.char()))
|
|
3167
|
+
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3203
3168
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3204
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3169
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3205
3170
|
val: {
|
|
3206
|
-
type:
|
|
3171
|
+
type: _.tag,
|
|
3207
3172
|
value: i,
|
|
3208
3173
|
children: a,
|
|
3209
|
-
location:
|
|
3174
|
+
location: y(n, this.clonePosition())
|
|
3210
3175
|
},
|
|
3211
3176
|
err: null
|
|
3212
|
-
} : this.error(b.INVALID_TAG,
|
|
3177
|
+
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
3213
3178
|
} else
|
|
3214
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3179
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3215
3180
|
} else
|
|
3216
|
-
return this.error(b.INVALID_TAG,
|
|
3181
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3217
3182
|
}, e.prototype.parseTagName = function() {
|
|
3218
3183
|
var t = this.offset();
|
|
3219
|
-
for (this.bump(); !this.isEOF() &&
|
|
3184
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3220
3185
|
this.bump();
|
|
3221
3186
|
return this.message.slice(t, this.offset());
|
|
3222
3187
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3238,14 +3203,14 @@ var Zn = (
|
|
|
3238
3203
|
}
|
|
3239
3204
|
break;
|
|
3240
3205
|
}
|
|
3241
|
-
var l =
|
|
3206
|
+
var l = y(n, this.clonePosition());
|
|
3242
3207
|
return {
|
|
3243
|
-
val: { type:
|
|
3208
|
+
val: { type: _.literal, value: i, location: l },
|
|
3244
3209
|
err: null
|
|
3245
3210
|
};
|
|
3246
3211
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3247
3212
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3248
|
-
!
|
|
3213
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3249
3214
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3250
3215
|
if (this.isEOF() || this.char() !== 39)
|
|
3251
3216
|
return null;
|
|
@@ -3279,49 +3244,49 @@ var Zn = (
|
|
|
3279
3244
|
r.push(n);
|
|
3280
3245
|
this.bump();
|
|
3281
3246
|
}
|
|
3282
|
-
return
|
|
3247
|
+
return je.apply(void 0, r);
|
|
3283
3248
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3284
3249
|
if (this.isEOF())
|
|
3285
3250
|
return null;
|
|
3286
3251
|
var n = this.char();
|
|
3287
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3252
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3288
3253
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3289
3254
|
var n = this.clonePosition();
|
|
3290
3255
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3291
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3256
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3292
3257
|
if (this.char() === 125)
|
|
3293
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3258
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3294
3259
|
var i = this.parseIdentifierIfPossible().value;
|
|
3295
3260
|
if (!i)
|
|
3296
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3261
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3297
3262
|
if (this.bumpSpace(), this.isEOF())
|
|
3298
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3263
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3299
3264
|
switch (this.char()) {
|
|
3300
3265
|
case 125:
|
|
3301
3266
|
return this.bump(), {
|
|
3302
3267
|
val: {
|
|
3303
|
-
type:
|
|
3268
|
+
type: _.argument,
|
|
3304
3269
|
// value does not include the opening and closing braces.
|
|
3305
3270
|
value: i,
|
|
3306
|
-
location:
|
|
3271
|
+
location: y(n, this.clonePosition())
|
|
3307
3272
|
},
|
|
3308
3273
|
err: null
|
|
3309
3274
|
};
|
|
3310
3275
|
case 44:
|
|
3311
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3276
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3312
3277
|
default:
|
|
3313
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3278
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3314
3279
|
}
|
|
3315
3280
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3316
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3281
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3317
3282
|
this.bumpTo(i);
|
|
3318
|
-
var o = this.clonePosition(), a =
|
|
3283
|
+
var o = this.clonePosition(), a = y(t, o);
|
|
3319
3284
|
return { value: n, location: a };
|
|
3320
3285
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3321
3286
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3322
3287
|
switch (s) {
|
|
3323
3288
|
case "":
|
|
3324
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3289
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
|
|
3325
3290
|
case "number":
|
|
3326
3291
|
case "date":
|
|
3327
3292
|
case "time": {
|
|
@@ -3329,49 +3294,49 @@ var Zn = (
|
|
|
3329
3294
|
var u = null;
|
|
3330
3295
|
if (this.bumpIf(",")) {
|
|
3331
3296
|
this.bumpSpace();
|
|
3332
|
-
var h = this.clonePosition(),
|
|
3333
|
-
if (
|
|
3334
|
-
return
|
|
3335
|
-
var
|
|
3336
|
-
if (
|
|
3337
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3338
|
-
var
|
|
3339
|
-
u = { style:
|
|
3297
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3298
|
+
if (f.err)
|
|
3299
|
+
return f;
|
|
3300
|
+
var c = kn(f.val);
|
|
3301
|
+
if (c.length === 0)
|
|
3302
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3303
|
+
var d = y(h, this.clonePosition());
|
|
3304
|
+
u = { style: c, styleLocation: d };
|
|
3340
3305
|
}
|
|
3341
3306
|
var m = this.tryParseArgumentClose(i);
|
|
3342
3307
|
if (m.err)
|
|
3343
3308
|
return m;
|
|
3344
|
-
var
|
|
3345
|
-
if (u &&
|
|
3346
|
-
var w =
|
|
3309
|
+
var g = y(i, this.clonePosition());
|
|
3310
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3311
|
+
var w = jn(u.style.slice(2));
|
|
3347
3312
|
if (s === "number") {
|
|
3348
|
-
var
|
|
3349
|
-
return
|
|
3350
|
-
val: { type:
|
|
3313
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3314
|
+
return f.err ? f : {
|
|
3315
|
+
val: { type: _.number, value: n, location: g, style: f.val },
|
|
3351
3316
|
err: null
|
|
3352
3317
|
};
|
|
3353
3318
|
} else {
|
|
3354
3319
|
if (w.length === 0)
|
|
3355
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3320
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
|
|
3356
3321
|
var L = w;
|
|
3357
|
-
this.locale && (L =
|
|
3358
|
-
var
|
|
3359
|
-
type:
|
|
3322
|
+
this.locale && (L = An(w, this.locale));
|
|
3323
|
+
var c = {
|
|
3324
|
+
type: z.dateTime,
|
|
3360
3325
|
pattern: L,
|
|
3361
3326
|
location: u.styleLocation,
|
|
3362
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3363
|
-
},
|
|
3327
|
+
parsedOptions: this.shouldParseSkeletons ? xn(L) : {}
|
|
3328
|
+
}, P = s === "date" ? _.date : _.time;
|
|
3364
3329
|
return {
|
|
3365
|
-
val: { type:
|
|
3330
|
+
val: { type: P, value: n, location: g, style: c },
|
|
3366
3331
|
err: null
|
|
3367
3332
|
};
|
|
3368
3333
|
}
|
|
3369
3334
|
}
|
|
3370
3335
|
return {
|
|
3371
3336
|
val: {
|
|
3372
|
-
type: s === "number" ?
|
|
3337
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3373
3338
|
value: n,
|
|
3374
|
-
location:
|
|
3339
|
+
location: g,
|
|
3375
3340
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3376
3341
|
},
|
|
3377
3342
|
err: null
|
|
@@ -3382,17 +3347,17 @@ var Zn = (
|
|
|
3382
3347
|
case "select": {
|
|
3383
3348
|
var T = this.clonePosition();
|
|
3384
3349
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3385
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3350
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
|
|
3386
3351
|
this.bumpSpace();
|
|
3387
3352
|
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3388
3353
|
if (s !== "select" && $.value === "offset") {
|
|
3389
3354
|
if (!this.bumpIf(":"))
|
|
3390
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3355
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3391
3356
|
this.bumpSpace();
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3394
|
-
return
|
|
3395
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A =
|
|
3357
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3358
|
+
if (f.err)
|
|
3359
|
+
return f;
|
|
3360
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
|
|
3396
3361
|
}
|
|
3397
3362
|
var U = this.tryParsePluralOrSelectOptions(t, s, r, $);
|
|
3398
3363
|
if (U.err)
|
|
@@ -3400,20 +3365,20 @@ var Zn = (
|
|
|
3400
3365
|
var m = this.tryParseArgumentClose(i);
|
|
3401
3366
|
if (m.err)
|
|
3402
3367
|
return m;
|
|
3403
|
-
var he =
|
|
3368
|
+
var he = y(i, this.clonePosition());
|
|
3404
3369
|
return s === "select" ? {
|
|
3405
3370
|
val: {
|
|
3406
|
-
type:
|
|
3371
|
+
type: _.select,
|
|
3407
3372
|
value: n,
|
|
3408
|
-
options:
|
|
3373
|
+
options: mt(U.val),
|
|
3409
3374
|
location: he
|
|
3410
3375
|
},
|
|
3411
3376
|
err: null
|
|
3412
3377
|
} : {
|
|
3413
3378
|
val: {
|
|
3414
|
-
type:
|
|
3379
|
+
type: _.plural,
|
|
3415
3380
|
value: n,
|
|
3416
|
-
options:
|
|
3381
|
+
options: mt(U.val),
|
|
3417
3382
|
offset: A,
|
|
3418
3383
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3419
3384
|
location: he
|
|
@@ -3422,10 +3387,10 @@ var Zn = (
|
|
|
3422
3387
|
};
|
|
3423
3388
|
}
|
|
3424
3389
|
default:
|
|
3425
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3390
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
|
|
3426
3391
|
}
|
|
3427
3392
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3428
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3393
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3429
3394
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3430
3395
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3431
3396
|
var n = this.char();
|
|
@@ -3434,7 +3399,7 @@ var Zn = (
|
|
|
3434
3399
|
this.bump();
|
|
3435
3400
|
var i = this.clonePosition();
|
|
3436
3401
|
if (!this.bumpUntil("'"))
|
|
3437
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3402
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3438
3403
|
this.bump();
|
|
3439
3404
|
break;
|
|
3440
3405
|
}
|
|
@@ -3464,52 +3429,52 @@ var Zn = (
|
|
|
3464
3429
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3465
3430
|
var n = [];
|
|
3466
3431
|
try {
|
|
3467
|
-
n =
|
|
3432
|
+
n = Sn(t);
|
|
3468
3433
|
} catch {
|
|
3469
3434
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3470
3435
|
}
|
|
3471
3436
|
return {
|
|
3472
3437
|
val: {
|
|
3473
|
-
type:
|
|
3438
|
+
type: z.number,
|
|
3474
3439
|
tokens: n,
|
|
3475
3440
|
location: r,
|
|
3476
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3441
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
|
3477
3442
|
},
|
|
3478
3443
|
err: null
|
|
3479
3444
|
};
|
|
3480
3445
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3481
3446
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3482
3447
|
if (u.length === 0) {
|
|
3483
|
-
var
|
|
3448
|
+
var f = this.clonePosition();
|
|
3484
3449
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3485
|
-
var
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3488
|
-
h =
|
|
3450
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3451
|
+
if (c.err)
|
|
3452
|
+
return c;
|
|
3453
|
+
h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3489
3454
|
} else
|
|
3490
3455
|
break;
|
|
3491
3456
|
}
|
|
3492
3457
|
if (l.has(u))
|
|
3493
3458
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3494
3459
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3495
|
-
var
|
|
3460
|
+
var d = this.clonePosition();
|
|
3496
3461
|
if (!this.bumpIf("{"))
|
|
3497
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3462
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3498
3463
|
var m = this.parseMessage(t + 1, r, n);
|
|
3499
3464
|
if (m.err)
|
|
3500
3465
|
return m;
|
|
3501
|
-
var
|
|
3502
|
-
if (
|
|
3503
|
-
return
|
|
3466
|
+
var g = this.tryParseArgumentClose(d);
|
|
3467
|
+
if (g.err)
|
|
3468
|
+
return g;
|
|
3504
3469
|
s.push([
|
|
3505
3470
|
u,
|
|
3506
3471
|
{
|
|
3507
3472
|
value: m.val,
|
|
3508
|
-
location:
|
|
3473
|
+
location: y(d, this.clonePosition())
|
|
3509
3474
|
}
|
|
3510
3475
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3511
3476
|
}
|
|
3512
|
-
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3477
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3513
3478
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3514
3479
|
var n = 1, i = this.clonePosition();
|
|
3515
3480
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3520,8 +3485,8 @@ var Zn = (
|
|
|
3520
3485
|
else
|
|
3521
3486
|
break;
|
|
3522
3487
|
}
|
|
3523
|
-
var l =
|
|
3524
|
-
return o ? (a *= n,
|
|
3488
|
+
var l = y(i, this.clonePosition());
|
|
3489
|
+
return o ? (a *= n, Gn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3525
3490
|
}, e.prototype.offset = function() {
|
|
3526
3491
|
return this.position.offset;
|
|
3527
3492
|
}, e.prototype.isEOF = function() {
|
|
@@ -3536,7 +3501,7 @@ var Zn = (
|
|
|
3536
3501
|
var t = this.position.offset;
|
|
3537
3502
|
if (t >= this.message.length)
|
|
3538
3503
|
throw Error("out of bound");
|
|
3539
|
-
var r =
|
|
3504
|
+
var r = Zt(this.message, t);
|
|
3540
3505
|
if (r === void 0)
|
|
3541
3506
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3542
3507
|
return r;
|
|
@@ -3555,7 +3520,7 @@ var Zn = (
|
|
|
3555
3520
|
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);
|
|
3556
3521
|
}
|
|
3557
3522
|
}, e.prototype.bumpIf = function(t) {
|
|
3558
|
-
if (
|
|
3523
|
+
if (pt(this.message, t, this.offset())) {
|
|
3559
3524
|
for (var r = 0; r < t.length; r++)
|
|
3560
3525
|
this.bump();
|
|
3561
3526
|
return !0;
|
|
@@ -3577,7 +3542,7 @@ var Zn = (
|
|
|
3577
3542
|
break;
|
|
3578
3543
|
}
|
|
3579
3544
|
}, e.prototype.bumpSpace = function() {
|
|
3580
|
-
for (; !this.isEOF() &&
|
|
3545
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3581
3546
|
this.bump();
|
|
3582
3547
|
}, e.prototype.peek = function() {
|
|
3583
3548
|
if (this.isEOF())
|
|
@@ -3587,47 +3552,47 @@ var Zn = (
|
|
|
3587
3552
|
}, e;
|
|
3588
3553
|
}()
|
|
3589
3554
|
);
|
|
3590
|
-
function
|
|
3555
|
+
function We(e) {
|
|
3591
3556
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3592
3557
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3558
|
+
function Vn(e) {
|
|
3559
|
+
return We(e) || e === 47;
|
|
3595
3560
|
}
|
|
3596
|
-
function
|
|
3561
|
+
function Xn(e) {
|
|
3597
3562
|
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;
|
|
3598
3563
|
}
|
|
3599
|
-
function
|
|
3564
|
+
function Jt(e) {
|
|
3600
3565
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3601
3566
|
}
|
|
3602
|
-
function
|
|
3567
|
+
function zn(e) {
|
|
3603
3568
|
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;
|
|
3604
3569
|
}
|
|
3605
|
-
function
|
|
3570
|
+
function Ve(e) {
|
|
3606
3571
|
e.forEach(function(t) {
|
|
3607
|
-
if (delete t.location,
|
|
3572
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3608
3573
|
for (var r in t.options)
|
|
3609
|
-
delete t.options[r].location,
|
|
3574
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3610
3575
|
else
|
|
3611
|
-
|
|
3576
|
+
$t(t) && kt(t.style) || (Ut(t) || Dt(t)) && Ge(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
|
|
3612
3577
|
});
|
|
3613
3578
|
}
|
|
3614
|
-
function
|
|
3615
|
-
t === void 0 && (t = {}), t =
|
|
3616
|
-
var r = new
|
|
3579
|
+
function Zn(e, t) {
|
|
3580
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3581
|
+
var r = new Wn(e, t).parse();
|
|
3617
3582
|
if (r.err) {
|
|
3618
3583
|
var n = SyntaxError(b[r.err.kind]);
|
|
3619
3584
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3620
3585
|
}
|
|
3621
|
-
return t?.captureLocation ||
|
|
3586
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3622
3587
|
}
|
|
3623
|
-
var
|
|
3588
|
+
var Z;
|
|
3624
3589
|
(function(e) {
|
|
3625
3590
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3626
|
-
})(
|
|
3627
|
-
var
|
|
3591
|
+
})(Z || (Z = {}));
|
|
3592
|
+
var Ee = (
|
|
3628
3593
|
/** @class */
|
|
3629
3594
|
function(e) {
|
|
3630
|
-
|
|
3595
|
+
N(t, e);
|
|
3631
3596
|
function t(r, n, i) {
|
|
3632
3597
|
var o = e.call(this, r) || this;
|
|
3633
3598
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3636,48 +3601,48 @@ var we = (
|
|
|
3636
3601
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3637
3602
|
}, t;
|
|
3638
3603
|
}(Error)
|
|
3639
|
-
),
|
|
3604
|
+
), gt = (
|
|
3640
3605
|
/** @class */
|
|
3641
3606
|
function(e) {
|
|
3642
|
-
|
|
3607
|
+
N(t, e);
|
|
3643
3608
|
function t(r, n, i, o) {
|
|
3644
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3609
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3645
3610
|
}
|
|
3646
3611
|
return t;
|
|
3647
|
-
}(
|
|
3648
|
-
),
|
|
3612
|
+
}(Ee)
|
|
3613
|
+
), Qn = (
|
|
3649
3614
|
/** @class */
|
|
3650
3615
|
function(e) {
|
|
3651
|
-
|
|
3616
|
+
N(t, e);
|
|
3652
3617
|
function t(r, n, i) {
|
|
3653
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3618
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3654
3619
|
}
|
|
3655
3620
|
return t;
|
|
3656
|
-
}(
|
|
3657
|
-
),
|
|
3621
|
+
}(Ee)
|
|
3622
|
+
), Jn = (
|
|
3658
3623
|
/** @class */
|
|
3659
3624
|
function(e) {
|
|
3660
|
-
|
|
3625
|
+
N(t, e);
|
|
3661
3626
|
function t(r, n) {
|
|
3662
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3627
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3663
3628
|
}
|
|
3664
3629
|
return t;
|
|
3665
|
-
}(
|
|
3630
|
+
}(Ee)
|
|
3666
3631
|
), S;
|
|
3667
3632
|
(function(e) {
|
|
3668
3633
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3669
3634
|
})(S || (S = {}));
|
|
3670
|
-
function
|
|
3635
|
+
function qn(e) {
|
|
3671
3636
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3672
3637
|
var n = t[t.length - 1];
|
|
3673
3638
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3674
3639
|
}, []);
|
|
3675
3640
|
}
|
|
3676
|
-
function
|
|
3641
|
+
function Yn(e) {
|
|
3677
3642
|
return typeof e == "function";
|
|
3678
3643
|
}
|
|
3679
3644
|
function me(e, t, r, n, i, o, a) {
|
|
3680
|
-
if (e.length === 1 &&
|
|
3645
|
+
if (e.length === 1 && lt(e[0]))
|
|
3681
3646
|
return [
|
|
3682
3647
|
{
|
|
3683
3648
|
type: S.literal,
|
|
@@ -3686,105 +3651,105 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3686
3651
|
];
|
|
3687
3652
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3688
3653
|
var h = u[l];
|
|
3689
|
-
if (
|
|
3654
|
+
if (lt(h)) {
|
|
3690
3655
|
s.push({
|
|
3691
3656
|
type: S.literal,
|
|
3692
3657
|
value: h.value
|
|
3693
3658
|
});
|
|
3694
3659
|
continue;
|
|
3695
3660
|
}
|
|
3696
|
-
if (
|
|
3661
|
+
if (_n(h)) {
|
|
3697
3662
|
typeof o == "number" && s.push({
|
|
3698
3663
|
type: S.literal,
|
|
3699
3664
|
value: r.getNumberFormat(t).format(o)
|
|
3700
3665
|
});
|
|
3701
3666
|
continue;
|
|
3702
3667
|
}
|
|
3703
|
-
var
|
|
3704
|
-
if (!(i &&
|
|
3705
|
-
throw new
|
|
3706
|
-
var
|
|
3707
|
-
if (
|
|
3708
|
-
(!
|
|
3709
|
-
type: typeof
|
|
3710
|
-
value:
|
|
3668
|
+
var f = h.value;
|
|
3669
|
+
if (!(i && f in i))
|
|
3670
|
+
throw new Jn(f, a);
|
|
3671
|
+
var c = i[f];
|
|
3672
|
+
if (vn(h)) {
|
|
3673
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3674
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
3675
|
+
value: c
|
|
3711
3676
|
});
|
|
3712
3677
|
continue;
|
|
3713
3678
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3679
|
+
if (Ut(h)) {
|
|
3680
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3716
3681
|
s.push({
|
|
3717
3682
|
type: S.literal,
|
|
3718
|
-
value: r.getDateTimeFormat(t,
|
|
3683
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3719
3684
|
});
|
|
3720
3685
|
continue;
|
|
3721
3686
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3687
|
+
if (Dt(h)) {
|
|
3688
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3724
3689
|
s.push({
|
|
3725
3690
|
type: S.literal,
|
|
3726
|
-
value: r.getDateTimeFormat(t,
|
|
3691
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3727
3692
|
});
|
|
3728
3693
|
continue;
|
|
3729
3694
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
|
|
3695
|
+
if ($t(h)) {
|
|
3696
|
+
var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3697
|
+
d && d.scale && (c = c * (d.scale || 1)), s.push({
|
|
3733
3698
|
type: S.literal,
|
|
3734
|
-
value: r.getNumberFormat(t,
|
|
3699
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3735
3700
|
});
|
|
3736
3701
|
continue;
|
|
3737
3702
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var m = h.children,
|
|
3740
|
-
if (!
|
|
3741
|
-
throw new
|
|
3742
|
-
var L = me(m, t, r, n, i, o),
|
|
3703
|
+
if (jt(h)) {
|
|
3704
|
+
var m = h.children, g = h.value, w = i[g];
|
|
3705
|
+
if (!Yn(w))
|
|
3706
|
+
throw new Qn(g, "function", a);
|
|
3707
|
+
var L = me(m, t, r, n, i, o), P = w(L.map(function(A) {
|
|
3743
3708
|
return A.value;
|
|
3744
3709
|
}));
|
|
3745
|
-
Array.isArray(
|
|
3710
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(A) {
|
|
3746
3711
|
return {
|
|
3747
3712
|
type: typeof A == "string" ? S.literal : S.object,
|
|
3748
3713
|
value: A
|
|
3749
3714
|
};
|
|
3750
3715
|
}));
|
|
3751
3716
|
}
|
|
3752
|
-
if (
|
|
3753
|
-
var T = h.options[
|
|
3717
|
+
if (Gt(h)) {
|
|
3718
|
+
var T = h.options[c] || h.options.other;
|
|
3754
3719
|
if (!T)
|
|
3755
|
-
throw new
|
|
3720
|
+
throw new gt(h.value, c, Object.keys(h.options), a);
|
|
3756
3721
|
s.push.apply(s, me(T.value, t, r, n, i));
|
|
3757
3722
|
continue;
|
|
3758
3723
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var T = h.options["=".concat(
|
|
3724
|
+
if (Ft(h)) {
|
|
3725
|
+
var T = h.options["=".concat(c)];
|
|
3761
3726
|
if (!T) {
|
|
3762
3727
|
if (!Intl.PluralRules)
|
|
3763
|
-
throw new
|
|
3728
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3764
3729
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3765
|
-
`,
|
|
3766
|
-
var $ = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3730
|
+
`, Z.MISSING_INTL_API, a);
|
|
3731
|
+
var $ = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3767
3732
|
T = h.options[$] || h.options.other;
|
|
3768
3733
|
}
|
|
3769
3734
|
if (!T)
|
|
3770
|
-
throw new
|
|
3771
|
-
s.push.apply(s, me(T.value, t, r, n, i,
|
|
3735
|
+
throw new gt(h.value, c, Object.keys(h.options), a);
|
|
3736
|
+
s.push.apply(s, me(T.value, t, r, n, i, c - (h.offset || 0)));
|
|
3772
3737
|
continue;
|
|
3773
3738
|
}
|
|
3774
3739
|
}
|
|
3775
|
-
return
|
|
3740
|
+
return qn(s);
|
|
3776
3741
|
}
|
|
3777
|
-
function
|
|
3778
|
-
return t ?
|
|
3779
|
-
return r[n] =
|
|
3742
|
+
function Kn(e, t) {
|
|
3743
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3744
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3780
3745
|
}, {})) : e;
|
|
3781
3746
|
}
|
|
3782
|
-
function
|
|
3747
|
+
function ei(e, t) {
|
|
3783
3748
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3784
|
-
return r[n] =
|
|
3785
|
-
},
|
|
3749
|
+
return r[n] = Kn(e[n], t[n]), r;
|
|
3750
|
+
}, v({}, e)) : e;
|
|
3786
3751
|
}
|
|
3787
|
-
function
|
|
3752
|
+
function Ae(e) {
|
|
3788
3753
|
return {
|
|
3789
3754
|
create: function() {
|
|
3790
3755
|
return {
|
|
@@ -3798,39 +3763,39 @@ function Ne(e) {
|
|
|
3798
3763
|
}
|
|
3799
3764
|
};
|
|
3800
3765
|
}
|
|
3801
|
-
function
|
|
3766
|
+
function ti(e) {
|
|
3802
3767
|
return e === void 0 && (e = {
|
|
3803
3768
|
number: {},
|
|
3804
3769
|
dateTime: {},
|
|
3805
3770
|
pluralRules: {}
|
|
3806
3771
|
}), {
|
|
3807
|
-
getNumberFormat:
|
|
3772
|
+
getNumberFormat: He(function() {
|
|
3808
3773
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3809
3774
|
r[n] = arguments[n];
|
|
3810
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3775
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3811
3776
|
}, {
|
|
3812
|
-
cache:
|
|
3813
|
-
strategy:
|
|
3777
|
+
cache: Ae(e.number),
|
|
3778
|
+
strategy: Be.variadic
|
|
3814
3779
|
}),
|
|
3815
|
-
getDateTimeFormat:
|
|
3780
|
+
getDateTimeFormat: He(function() {
|
|
3816
3781
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3782
|
r[n] = arguments[n];
|
|
3818
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3783
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3819
3784
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3785
|
+
cache: Ae(e.dateTime),
|
|
3786
|
+
strategy: Be.variadic
|
|
3822
3787
|
}),
|
|
3823
|
-
getPluralRules:
|
|
3788
|
+
getPluralRules: He(function() {
|
|
3824
3789
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3825
3790
|
r[n] = arguments[n];
|
|
3826
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3791
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3827
3792
|
}, {
|
|
3828
|
-
cache:
|
|
3829
|
-
strategy:
|
|
3793
|
+
cache: Ae(e.pluralRules),
|
|
3794
|
+
strategy: Be.variadic
|
|
3830
3795
|
})
|
|
3831
3796
|
};
|
|
3832
3797
|
}
|
|
3833
|
-
var
|
|
3798
|
+
var ri = (
|
|
3834
3799
|
/** @class */
|
|
3835
3800
|
function() {
|
|
3836
3801
|
function e(t, r, n, i) {
|
|
@@ -3844,8 +3809,8 @@ var si = (
|
|
|
3844
3809
|
var u = o.formatToParts(l);
|
|
3845
3810
|
if (u.length === 1)
|
|
3846
3811
|
return u[0].value;
|
|
3847
|
-
var h = u.reduce(function(
|
|
3848
|
-
return !
|
|
3812
|
+
var h = u.reduce(function(f, c) {
|
|
3813
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3849
3814
|
}, []);
|
|
3850
3815
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3851
3816
|
}, this.formatToParts = function(l) {
|
|
@@ -3862,13 +3827,13 @@ var si = (
|
|
|
3862
3827
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3863
3828
|
var a = i || {};
|
|
3864
3829
|
a.formatters;
|
|
3865
|
-
var s =
|
|
3866
|
-
this.ast = e.__parse(t,
|
|
3830
|
+
var s = Lr(a, ["formatters"]);
|
|
3831
|
+
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3867
3832
|
} else
|
|
3868
3833
|
this.ast = t;
|
|
3869
3834
|
if (!Array.isArray(this.ast))
|
|
3870
3835
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3871
|
-
this.formats =
|
|
3836
|
+
this.formats = ei(e.formats, n), this.formatters = i && i.formatters || ti(this.formatterCache);
|
|
3872
3837
|
}
|
|
3873
3838
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3874
3839
|
get: function() {
|
|
@@ -3881,7 +3846,7 @@ var si = (
|
|
|
3881
3846
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3882
3847
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3883
3848
|
}
|
|
3884
|
-
}, e.__parse =
|
|
3849
|
+
}, e.__parse = Zn, e.formats = {
|
|
3885
3850
|
number: {
|
|
3886
3851
|
integer: {
|
|
3887
3852
|
maximumFractionDigits: 0
|
|
@@ -3942,7 +3907,7 @@ var si = (
|
|
|
3942
3907
|
}, e;
|
|
3943
3908
|
}()
|
|
3944
3909
|
);
|
|
3945
|
-
function
|
|
3910
|
+
function ni(e, t) {
|
|
3946
3911
|
if (t == null)
|
|
3947
3912
|
return;
|
|
3948
3913
|
if (t in e)
|
|
@@ -3963,92 +3928,92 @@ function ai(e, t) {
|
|
|
3963
3928
|
n = void 0;
|
|
3964
3929
|
return n;
|
|
3965
3930
|
}
|
|
3966
|
-
const R = {},
|
|
3931
|
+
const R = {}, ii = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), qt = (e, t) => {
|
|
3967
3932
|
if (t == null)
|
|
3968
3933
|
return;
|
|
3969
3934
|
if (t in R && e in R[t])
|
|
3970
3935
|
return R[t][e];
|
|
3971
|
-
const r =
|
|
3936
|
+
const r = xe(t);
|
|
3972
3937
|
for (let n = 0; n < r.length; n++) {
|
|
3973
|
-
const i = r[n], o =
|
|
3938
|
+
const i = r[n], o = si(i, e);
|
|
3974
3939
|
if (o)
|
|
3975
|
-
return
|
|
3940
|
+
return ii(e, t, o);
|
|
3976
3941
|
}
|
|
3977
3942
|
};
|
|
3978
|
-
let
|
|
3979
|
-
const ue =
|
|
3980
|
-
function
|
|
3981
|
-
return
|
|
3943
|
+
let qe;
|
|
3944
|
+
const ue = _e({});
|
|
3945
|
+
function oi(e) {
|
|
3946
|
+
return qe[e] || null;
|
|
3982
3947
|
}
|
|
3983
|
-
function
|
|
3984
|
-
return e in
|
|
3948
|
+
function Yt(e) {
|
|
3949
|
+
return e in qe;
|
|
3985
3950
|
}
|
|
3986
|
-
function
|
|
3987
|
-
if (!
|
|
3951
|
+
function si(e, t) {
|
|
3952
|
+
if (!Yt(e))
|
|
3988
3953
|
return null;
|
|
3989
|
-
const r =
|
|
3990
|
-
return
|
|
3954
|
+
const r = oi(e);
|
|
3955
|
+
return ni(r, t);
|
|
3991
3956
|
}
|
|
3992
|
-
function
|
|
3957
|
+
function ai(e) {
|
|
3993
3958
|
if (e == null)
|
|
3994
3959
|
return;
|
|
3995
|
-
const t =
|
|
3960
|
+
const t = xe(e);
|
|
3996
3961
|
for (let r = 0; r < t.length; r++) {
|
|
3997
3962
|
const n = t[r];
|
|
3998
|
-
if (
|
|
3963
|
+
if (Yt(n))
|
|
3999
3964
|
return n;
|
|
4000
3965
|
}
|
|
4001
3966
|
}
|
|
4002
|
-
function
|
|
4003
|
-
delete R[e], ue.update((r) => (r[e] =
|
|
3967
|
+
function Kt(e, ...t) {
|
|
3968
|
+
delete R[e], ue.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
|
|
4004
3969
|
}
|
|
4005
|
-
|
|
3970
|
+
q(
|
|
4006
3971
|
[ue],
|
|
4007
3972
|
([e]) => Object.keys(e)
|
|
4008
3973
|
);
|
|
4009
|
-
ue.subscribe((e) =>
|
|
3974
|
+
ue.subscribe((e) => qe = e);
|
|
4010
3975
|
const be = {};
|
|
4011
|
-
function
|
|
3976
|
+
function ui(e, t) {
|
|
4012
3977
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4013
3978
|
}
|
|
4014
|
-
function
|
|
3979
|
+
function er(e) {
|
|
4015
3980
|
return be[e];
|
|
4016
3981
|
}
|
|
4017
|
-
function
|
|
4018
|
-
return
|
|
4019
|
-
const r =
|
|
3982
|
+
function hi(e) {
|
|
3983
|
+
return xe(e).map((t) => {
|
|
3984
|
+
const r = er(t);
|
|
4020
3985
|
return [t, r ? [...r] : []];
|
|
4021
3986
|
}).filter(([, t]) => t.length > 0);
|
|
4022
3987
|
}
|
|
4023
|
-
function
|
|
4024
|
-
return e == null ? !1 :
|
|
3988
|
+
function Xe(e) {
|
|
3989
|
+
return e == null ? !1 : xe(e).some(
|
|
4025
3990
|
(t) => {
|
|
4026
3991
|
var r;
|
|
4027
|
-
return (r =
|
|
3992
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
4028
3993
|
}
|
|
4029
3994
|
);
|
|
4030
3995
|
}
|
|
4031
|
-
function
|
|
3996
|
+
function li(e, t) {
|
|
4032
3997
|
return Promise.all(
|
|
4033
|
-
t.map((n) => (
|
|
4034
|
-
).then((n) =>
|
|
4035
|
-
}
|
|
4036
|
-
const
|
|
4037
|
-
function
|
|
4038
|
-
if (!
|
|
4039
|
-
return e in
|
|
4040
|
-
const t =
|
|
4041
|
-
return
|
|
3998
|
+
t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
|
|
3999
|
+
).then((n) => Kt(e, ...n));
|
|
4000
|
+
}
|
|
4001
|
+
const ee = {};
|
|
4002
|
+
function tr(e) {
|
|
4003
|
+
if (!Xe(e))
|
|
4004
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4005
|
+
const t = hi(e);
|
|
4006
|
+
return ee[e] = Promise.all(
|
|
4042
4007
|
t.map(
|
|
4043
|
-
([r, n]) =>
|
|
4008
|
+
([r, n]) => li(r, n)
|
|
4044
4009
|
)
|
|
4045
4010
|
).then(() => {
|
|
4046
|
-
if (
|
|
4047
|
-
return
|
|
4048
|
-
delete
|
|
4049
|
-
}),
|
|
4011
|
+
if (Xe(e))
|
|
4012
|
+
return tr(e);
|
|
4013
|
+
delete ee[e];
|
|
4014
|
+
}), ee[e];
|
|
4050
4015
|
}
|
|
4051
|
-
const
|
|
4016
|
+
const fi = {
|
|
4052
4017
|
number: {
|
|
4053
4018
|
scientific: { notation: "scientific" },
|
|
4054
4019
|
engineering: { notation: "engineering" },
|
|
@@ -4077,135 +4042,135 @@ const mi = {
|
|
|
4077
4042
|
timeZoneName: "short"
|
|
4078
4043
|
}
|
|
4079
4044
|
}
|
|
4080
|
-
},
|
|
4045
|
+
}, ci = {
|
|
4081
4046
|
fallbackLocale: null,
|
|
4082
4047
|
loadingDelay: 200,
|
|
4083
|
-
formats:
|
|
4048
|
+
formats: fi,
|
|
4084
4049
|
warnOnMissingMessages: !0,
|
|
4085
4050
|
handleMissingMessage: void 0,
|
|
4086
4051
|
ignoreTag: !0
|
|
4087
|
-
},
|
|
4088
|
-
function
|
|
4089
|
-
return
|
|
4090
|
-
}
|
|
4091
|
-
const
|
|
4092
|
-
var
|
|
4093
|
-
for (var r in t
|
|
4094
|
-
|
|
4095
|
-
if (
|
|
4096
|
-
for (var r of
|
|
4097
|
-
|
|
4052
|
+
}, di = ci;
|
|
4053
|
+
function Q() {
|
|
4054
|
+
return di;
|
|
4055
|
+
}
|
|
4056
|
+
const Oe = _e(!1);
|
|
4057
|
+
var pi = Object.defineProperty, mi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
|
|
4058
|
+
for (var r in t)
|
|
4059
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
4060
|
+
if (yt)
|
|
4061
|
+
for (var r of yt(t))
|
|
4062
|
+
yi.call(t, r) && vt(e, r, t[r]);
|
|
4098
4063
|
return e;
|
|
4099
|
-
},
|
|
4100
|
-
let
|
|
4101
|
-
const ge =
|
|
4102
|
-
function
|
|
4064
|
+
}, _i = (e, t) => mi(e, bi(t));
|
|
4065
|
+
let ze;
|
|
4066
|
+
const ge = _e(null);
|
|
4067
|
+
function _t(e) {
|
|
4103
4068
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4104
4069
|
}
|
|
4105
|
-
function
|
|
4106
|
-
const r =
|
|
4107
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4070
|
+
function xe(e, t = Q().fallbackLocale) {
|
|
4071
|
+
const r = _t(e);
|
|
4072
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4108
4073
|
}
|
|
4109
4074
|
function D() {
|
|
4110
|
-
return
|
|
4075
|
+
return ze ?? void 0;
|
|
4111
4076
|
}
|
|
4112
4077
|
ge.subscribe((e) => {
|
|
4113
|
-
|
|
4078
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4114
4079
|
});
|
|
4115
|
-
const
|
|
4116
|
-
if (e &&
|
|
4117
|
-
const { loadingDelay: t } =
|
|
4080
|
+
const Ei = (e) => {
|
|
4081
|
+
if (e && ai(e) && Xe(e)) {
|
|
4082
|
+
const { loadingDelay: t } = Q();
|
|
4118
4083
|
let r;
|
|
4119
4084
|
return typeof window < "u" && D() != null && t ? r = window.setTimeout(
|
|
4120
|
-
() =>
|
|
4085
|
+
() => Oe.set(!0),
|
|
4121
4086
|
t
|
|
4122
|
-
) :
|
|
4087
|
+
) : Oe.set(!0), tr(e).then(() => {
|
|
4123
4088
|
ge.set(e);
|
|
4124
4089
|
}).finally(() => {
|
|
4125
|
-
clearTimeout(r),
|
|
4090
|
+
clearTimeout(r), Oe.set(!1);
|
|
4126
4091
|
});
|
|
4127
4092
|
}
|
|
4128
4093
|
return ge.set(e);
|
|
4129
|
-
},
|
|
4130
|
-
set:
|
|
4131
|
-
}),
|
|
4094
|
+
}, Y = _i(vi({}, ge), {
|
|
4095
|
+
set: Ei
|
|
4096
|
+
}), we = (e) => {
|
|
4132
4097
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4133
4098
|
return (n) => {
|
|
4134
4099
|
const i = JSON.stringify(n);
|
|
4135
4100
|
return i in t ? t[i] : t[i] = e(n);
|
|
4136
4101
|
};
|
|
4137
4102
|
};
|
|
4138
|
-
var
|
|
4103
|
+
var xi = Object.defineProperty, ye = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4139
4104
|
for (var r in t || (t = {}))
|
|
4140
|
-
|
|
4141
|
-
if (
|
|
4142
|
-
for (var r of
|
|
4143
|
-
|
|
4105
|
+
rr.call(t, r) && Et(e, r, t[r]);
|
|
4106
|
+
if (ye)
|
|
4107
|
+
for (var r of ye(t))
|
|
4108
|
+
nr.call(t, r) && Et(e, r, t[r]);
|
|
4144
4109
|
return e;
|
|
4145
|
-
},
|
|
4110
|
+
}, K = (e, t) => {
|
|
4146
4111
|
var r = {};
|
|
4147
4112
|
for (var n in e)
|
|
4148
|
-
|
|
4149
|
-
if (e != null &&
|
|
4150
|
-
for (var n of
|
|
4151
|
-
t.indexOf(n) < 0 &&
|
|
4113
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4114
|
+
if (e != null && ye)
|
|
4115
|
+
for (var n of ye(e))
|
|
4116
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4152
4117
|
return r;
|
|
4153
4118
|
};
|
|
4154
|
-
const
|
|
4155
|
-
const { formats: r } =
|
|
4119
|
+
const oe = (e, t) => {
|
|
4120
|
+
const { formats: r } = Q();
|
|
4156
4121
|
if (e in r && t in r[e])
|
|
4157
4122
|
return r[e][t];
|
|
4158
4123
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4159
|
-
},
|
|
4124
|
+
}, wi = we(
|
|
4160
4125
|
(e) => {
|
|
4161
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4126
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4162
4127
|
if (r == null)
|
|
4163
4128
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4164
|
-
return n && (i =
|
|
4129
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4165
4130
|
}
|
|
4166
|
-
),
|
|
4131
|
+
), Si = we(
|
|
4167
4132
|
(e) => {
|
|
4168
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4133
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4169
4134
|
if (r == null)
|
|
4170
4135
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4171
|
-
return n ? i =
|
|
4136
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4172
4137
|
}
|
|
4173
|
-
),
|
|
4138
|
+
), Ti = we(
|
|
4174
4139
|
(e) => {
|
|
4175
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4140
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4176
4141
|
if (r == null)
|
|
4177
4142
|
throw new Error(
|
|
4178
4143
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4179
4144
|
);
|
|
4180
|
-
return n ? i =
|
|
4145
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4181
4146
|
}
|
|
4182
|
-
),
|
|
4147
|
+
), Hi = (e = {}) => {
|
|
4183
4148
|
var t = e, {
|
|
4184
4149
|
locale: r = D()
|
|
4185
|
-
} = t, n =
|
|
4150
|
+
} = t, n = K(t, [
|
|
4186
4151
|
"locale"
|
|
4187
4152
|
]);
|
|
4188
|
-
return
|
|
4189
|
-
},
|
|
4153
|
+
return wi(Ye({ locale: r }, n));
|
|
4154
|
+
}, Bi = (e = {}) => {
|
|
4190
4155
|
var t = e, {
|
|
4191
4156
|
locale: r = D()
|
|
4192
|
-
} = t, n =
|
|
4157
|
+
} = t, n = K(t, [
|
|
4193
4158
|
"locale"
|
|
4194
4159
|
]);
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4160
|
+
return Si(Ye({ locale: r }, n));
|
|
4161
|
+
}, Pi = (e = {}) => {
|
|
4197
4162
|
var t = e, {
|
|
4198
4163
|
locale: r = D()
|
|
4199
|
-
} = t, n =
|
|
4164
|
+
} = t, n = K(t, [
|
|
4200
4165
|
"locale"
|
|
4201
4166
|
]);
|
|
4202
|
-
return
|
|
4203
|
-
},
|
|
4167
|
+
return Ti(Ye({ locale: r }, n));
|
|
4168
|
+
}, Ai = we(
|
|
4204
4169
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4205
|
-
(e, t = D()) => new
|
|
4206
|
-
ignoreTag:
|
|
4170
|
+
(e, t = D()) => new ri(e, t, Q().formats, {
|
|
4171
|
+
ignoreTag: Q().ignoreTag
|
|
4207
4172
|
})
|
|
4208
|
-
),
|
|
4173
|
+
), Oi = (e, t = {}) => {
|
|
4209
4174
|
var r, n, i, o;
|
|
4210
4175
|
let a = t;
|
|
4211
4176
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4218,39 +4183,39 @@ const ie = (e, t) => {
|
|
|
4218
4183
|
throw new Error(
|
|
4219
4184
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4220
4185
|
);
|
|
4221
|
-
let h =
|
|
4186
|
+
let h = qt(e, l);
|
|
4222
4187
|
if (!h)
|
|
4223
|
-
h = (o = (i = (n = (r =
|
|
4188
|
+
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;
|
|
4224
4189
|
else if (typeof h != "string")
|
|
4225
4190
|
return console.warn(
|
|
4226
4191
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4227
4192
|
), h;
|
|
4228
4193
|
if (!s)
|
|
4229
4194
|
return h;
|
|
4230
|
-
let
|
|
4195
|
+
let f = h;
|
|
4231
4196
|
try {
|
|
4232
|
-
|
|
4233
|
-
} catch (
|
|
4234
|
-
|
|
4197
|
+
f = Ai(h, l).format(s);
|
|
4198
|
+
} catch (c) {
|
|
4199
|
+
c instanceof Error && console.warn(
|
|
4235
4200
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4236
|
-
|
|
4201
|
+
c.message
|
|
4237
4202
|
);
|
|
4238
4203
|
}
|
|
4239
|
-
return
|
|
4240
|
-
},
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
window.emWidgets = { topic:
|
|
4246
|
-
const
|
|
4247
|
-
function
|
|
4248
|
-
|
|
4249
|
-
}
|
|
4250
|
-
function
|
|
4251
|
-
|
|
4252
|
-
}
|
|
4253
|
-
const
|
|
4204
|
+
return f;
|
|
4205
|
+
}, Ii = (e, t) => Pi(t).format(e), Ni = (e, t) => Bi(t).format(e), Li = (e, t) => Hi(t).format(e), Mi = (e, t = D()) => qt(e, t), Ci = q([Y, ue], () => Oi);
|
|
4206
|
+
q([Y], () => Ii);
|
|
4207
|
+
q([Y], () => Ni);
|
|
4208
|
+
q([Y], () => Li);
|
|
4209
|
+
q([Y, ue], () => Mi);
|
|
4210
|
+
window.emWidgets = { topic: zr };
|
|
4211
|
+
const Ri = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4212
|
+
function xt(e, t) {
|
|
4213
|
+
Kt(e, t);
|
|
4214
|
+
}
|
|
4215
|
+
function $i(e) {
|
|
4216
|
+
Y.set(e);
|
|
4217
|
+
}
|
|
4218
|
+
const wt = {
|
|
4254
4219
|
en: {
|
|
4255
4220
|
titlePlayerWithdrawal: "Withdrawal",
|
|
4256
4221
|
loading: "Loading, please wait ..."
|
|
@@ -4284,130 +4249,130 @@ const Pt = {
|
|
|
4284
4249
|
loading: "Loading, please wait ..."
|
|
4285
4250
|
}
|
|
4286
4251
|
};
|
|
4287
|
-
function
|
|
4288
|
-
|
|
4252
|
+
function Ui(e) {
|
|
4253
|
+
hr(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)}");
|
|
4289
4254
|
}
|
|
4290
|
-
function
|
|
4291
|
-
let t, r, n, i, o, a, s, l, u, h,
|
|
4255
|
+
function Di(e) {
|
|
4256
|
+
let t, r, n, i, o, a, s, l, u, h, f = (
|
|
4292
4257
|
/*$_*/
|
|
4293
4258
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4294
|
-
),
|
|
4259
|
+
), c, d, m;
|
|
4295
4260
|
return {
|
|
4296
4261
|
c() {
|
|
4297
|
-
t =
|
|
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 = Ie(), h = I("h2"), c = re(f), 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");
|
|
4298
4263
|
},
|
|
4299
|
-
m(
|
|
4300
|
-
|
|
4264
|
+
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, c), d || (m = cr(
|
|
4301
4266
|
t,
|
|
4302
4267
|
"click",
|
|
4303
4268
|
/*click_handler*/
|
|
4304
4269
|
e[16]
|
|
4305
|
-
),
|
|
4270
|
+
), d = !0);
|
|
4306
4271
|
},
|
|
4307
|
-
p(
|
|
4272
|
+
p(g, w) {
|
|
4308
4273
|
w & /*$_*/
|
|
4309
|
-
8 &&
|
|
4310
|
-
|
|
4274
|
+
8 && f !== (f = /*$_*/
|
|
4275
|
+
g[3]("titlePlayerWithdrawal") + "") && Qe(c, f);
|
|
4311
4276
|
},
|
|
4312
|
-
d(
|
|
4313
|
-
|
|
4277
|
+
d(g) {
|
|
4278
|
+
g && J(t), d = !1, m();
|
|
4314
4279
|
}
|
|
4315
4280
|
};
|
|
4316
4281
|
}
|
|
4317
|
-
function
|
|
4282
|
+
function Gi(e) {
|
|
4318
4283
|
let t, r, n;
|
|
4319
4284
|
return {
|
|
4320
4285
|
c() {
|
|
4321
|
-
t =
|
|
4286
|
+
t = I("div"), r = I("iframe"), et(r.src, n = /*iframeUrl*/
|
|
4322
4287
|
e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
|
|
4323
4288
|
},
|
|
4324
4289
|
m(i, o) {
|
|
4325
|
-
|
|
4290
|
+
ae(i, t, o), x(t, r);
|
|
4326
4291
|
},
|
|
4327
4292
|
p(i, o) {
|
|
4328
4293
|
o & /*iframeUrl*/
|
|
4329
|
-
4 && !
|
|
4294
|
+
4 && !et(r.src, n = /*iframeUrl*/
|
|
4330
4295
|
i[2]) && E(r, "src", n);
|
|
4331
4296
|
},
|
|
4332
4297
|
d(i) {
|
|
4333
|
-
i &&
|
|
4298
|
+
i && J(t);
|
|
4334
4299
|
}
|
|
4335
4300
|
};
|
|
4336
4301
|
}
|
|
4337
|
-
function
|
|
4302
|
+
function Fi(e) {
|
|
4338
4303
|
let t, r = (
|
|
4339
4304
|
/*$_*/
|
|
4340
4305
|
e[3]("loading") + ""
|
|
4341
4306
|
), n;
|
|
4342
4307
|
return {
|
|
4343
4308
|
c() {
|
|
4344
|
-
t =
|
|
4309
|
+
t = I("p"), n = re(r);
|
|
4345
4310
|
},
|
|
4346
4311
|
m(i, o) {
|
|
4347
|
-
|
|
4312
|
+
ae(i, t, o), x(t, n);
|
|
4348
4313
|
},
|
|
4349
4314
|
p(i, o) {
|
|
4350
4315
|
o & /*$_*/
|
|
4351
4316
|
8 && r !== (r = /*$_*/
|
|
4352
|
-
i[3]("loading") + "") &&
|
|
4317
|
+
i[3]("loading") + "") && Qe(n, r);
|
|
4353
4318
|
},
|
|
4354
4319
|
d(i) {
|
|
4355
|
-
i &&
|
|
4320
|
+
i && J(t);
|
|
4356
4321
|
}
|
|
4357
4322
|
};
|
|
4358
4323
|
}
|
|
4359
|
-
function
|
|
4324
|
+
function ji(e) {
|
|
4360
4325
|
let t, r, n, i = (
|
|
4361
4326
|
/*$_*/
|
|
4362
4327
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4363
4328
|
), o, a, s = (
|
|
4364
4329
|
/*isMobile*/
|
|
4365
|
-
e[4] &&
|
|
4330
|
+
e[4] && Di(e)
|
|
4366
4331
|
);
|
|
4367
|
-
function l(
|
|
4332
|
+
function l(f, c) {
|
|
4368
4333
|
return (
|
|
4369
4334
|
/*isLoading*/
|
|
4370
|
-
|
|
4335
|
+
f[1] ? Fi : Gi
|
|
4371
4336
|
);
|
|
4372
4337
|
}
|
|
4373
4338
|
let u = l(e), h = u(e);
|
|
4374
4339
|
return {
|
|
4375
4340
|
c() {
|
|
4376
|
-
t =
|
|
4341
|
+
t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
|
|
4377
4342
|
(e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
|
|
4378
4343
|
(e[4] ? "WithdrawalWrapperMobile" : ""));
|
|
4379
4344
|
},
|
|
4380
|
-
m(
|
|
4381
|
-
|
|
4345
|
+
m(f, c) {
|
|
4346
|
+
ae(f, t, c), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[17](t);
|
|
4382
4347
|
},
|
|
4383
|
-
p(
|
|
4348
|
+
p(f, [c]) {
|
|
4384
4349
|
/*isMobile*/
|
|
4385
|
-
|
|
4350
|
+
f[4] && s.p(f, c), c & /*$_*/
|
|
4386
4351
|
8 && i !== (i = /*$_*/
|
|
4387
|
-
|
|
4352
|
+
f[3]("titlePlayerWithdrawal") + "") && Qe(o, i), u === (u = l(f)) && h ? h.p(f, c) : (h.d(1), h = u(f), h && (h.c(), h.m(t, null)));
|
|
4388
4353
|
},
|
|
4389
|
-
i:
|
|
4390
|
-
o:
|
|
4391
|
-
d(
|
|
4392
|
-
|
|
4354
|
+
i: B,
|
|
4355
|
+
o: B,
|
|
4356
|
+
d(f) {
|
|
4357
|
+
f && J(t), s && s.d(), h.d(), e[17](null);
|
|
4393
4358
|
}
|
|
4394
4359
|
};
|
|
4395
4360
|
}
|
|
4396
|
-
function
|
|
4361
|
+
function ki(e, t, r) {
|
|
4397
4362
|
let n;
|
|
4398
|
-
|
|
4399
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4363
|
+
ur(e, Ci, (p) => r(3, n = p));
|
|
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: f } = t, { translationurl: c = "" } = t, { currency: d = "" } = t, m, g = window.navigator.userAgent, w = Ri(g) !== "PC", L = !0, P = 0, T = "";
|
|
4400
4365
|
const $ = () => {
|
|
4401
|
-
fetch(
|
|
4366
|
+
fetch(c).then((M) => M.json()).then((M) => {
|
|
4402
4367
|
Object.keys(M).forEach((C) => {
|
|
4403
|
-
|
|
4368
|
+
xt(C, M[C]);
|
|
4404
4369
|
});
|
|
4405
4370
|
}).catch((M) => {
|
|
4406
4371
|
console.log(M);
|
|
4407
4372
|
});
|
|
4408
4373
|
};
|
|
4409
|
-
Object.keys(
|
|
4410
|
-
|
|
4374
|
+
Object.keys(wt).forEach((p) => {
|
|
4375
|
+
xt(p, wt[p]);
|
|
4411
4376
|
});
|
|
4412
4377
|
const A = () => {
|
|
4413
4378
|
window.postMessage(
|
|
@@ -4417,14 +4382,14 @@ function zi(e, t, r) {
|
|
|
4417
4382
|
},
|
|
4418
4383
|
window.location.href
|
|
4419
4384
|
);
|
|
4420
|
-
}, U = (
|
|
4421
|
-
if (
|
|
4422
|
-
switch (
|
|
4385
|
+
}, U = (p) => {
|
|
4386
|
+
if (p.data) {
|
|
4387
|
+
switch (p.data.type) {
|
|
4423
4388
|
case "ProfileDetailsData":
|
|
4424
|
-
r(6,
|
|
4389
|
+
r(6, d = p.data.profileDetails.currency);
|
|
4425
4390
|
break;
|
|
4426
4391
|
}
|
|
4427
|
-
switch (
|
|
4392
|
+
switch (p.data.redirect) {
|
|
4428
4393
|
case "mm-hc-casino":
|
|
4429
4394
|
window.postMessage({ type: "GoToCasino" }, window.location.href);
|
|
4430
4395
|
break;
|
|
@@ -4448,28 +4413,28 @@ function zi(e, t, r) {
|
|
|
4448
4413
|
}
|
|
4449
4414
|
}
|
|
4450
4415
|
}, he = () => {
|
|
4451
|
-
let
|
|
4452
|
-
if (
|
|
4453
|
-
switch (
|
|
4416
|
+
let p = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
|
|
4417
|
+
if (p.searchParams.append("language", s), l)
|
|
4418
|
+
switch (d) {
|
|
4454
4419
|
case "USD":
|
|
4455
|
-
|
|
4420
|
+
P = 0.4;
|
|
4456
4421
|
break;
|
|
4457
4422
|
case "CDF":
|
|
4458
|
-
|
|
4423
|
+
P = 1e3;
|
|
4459
4424
|
break;
|
|
4460
4425
|
}
|
|
4461
4426
|
let M = {
|
|
4462
4427
|
method: "POST",
|
|
4463
4428
|
headers: {
|
|
4464
4429
|
"X-SessionId": o,
|
|
4465
|
-
currency:
|
|
4466
|
-
amount:
|
|
4430
|
+
currency: d || "EUR",
|
|
4431
|
+
amount: P,
|
|
4467
4432
|
cashierMode: "Default",
|
|
4468
4433
|
IsShortCashier: !1,
|
|
4469
4434
|
accept: "application/json"
|
|
4470
4435
|
}
|
|
4471
4436
|
};
|
|
4472
|
-
fetch(
|
|
4437
|
+
fetch(p.href, M).then((C) => C.json()).then(
|
|
4473
4438
|
(C) => {
|
|
4474
4439
|
r(1, L = !1), r(2, T = C.CashierUrl);
|
|
4475
4440
|
},
|
|
@@ -4477,28 +4442,28 @@ function zi(e, t, r) {
|
|
|
4477
4442
|
console.error(C);
|
|
4478
4443
|
}
|
|
4479
4444
|
);
|
|
4480
|
-
},
|
|
4481
|
-
|
|
4445
|
+
}, ir = () => {
|
|
4446
|
+
$i(s);
|
|
4482
4447
|
};
|
|
4483
|
-
|
|
4448
|
+
br(() => (window.addEventListener("message", U, !1), () => {
|
|
4484
4449
|
window.removeEventListener("message", U);
|
|
4485
4450
|
}));
|
|
4486
|
-
const
|
|
4487
|
-
function
|
|
4488
|
-
|
|
4489
|
-
m =
|
|
4451
|
+
const or = () => A();
|
|
4452
|
+
function sr(p) {
|
|
4453
|
+
Ne[p ? "unshift" : "push"](() => {
|
|
4454
|
+
m = p, r(0, m);
|
|
4490
4455
|
});
|
|
4491
4456
|
}
|
|
4492
|
-
return e.$$set = (
|
|
4493
|
-
"endpoint" in
|
|
4457
|
+
return e.$$set = (p) => {
|
|
4458
|
+
"endpoint" in p && r(7, i = p.endpoint), "session" in p && r(8, o = p.session), "playerid" in p && r(9, a = p.playerid), "lang" in p && r(10, s = p.lang), "hasdefaultamount" in p && r(11, l = p.hasdefaultamount), "clientstyling" in p && r(12, u = p.clientstyling), "clientstylingurl" in p && r(13, h = p.clientstylingurl), "mbsource" in p && r(14, f = p.mbsource), "translationurl" in p && r(15, c = p.translationurl), "currency" in p && r(6, d = p.currency);
|
|
4494
4459
|
}, e.$$.update = () => {
|
|
4495
4460
|
e.$$.dirty & /*lang*/
|
|
4496
|
-
1024 && s &&
|
|
4497
|
-
4097 && u && m &&
|
|
4498
|
-
8193 && h && m &&
|
|
4499
|
-
16385 &&
|
|
4500
|
-
32768 &&
|
|
4501
|
-
1984 && o && a && i &&
|
|
4461
|
+
1024 && s && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4462
|
+
4097 && u && m && Or(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4463
|
+
8193 && h && m && Ir(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4464
|
+
16385 && f && m && Nr(m, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4465
|
+
32768 && c && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
|
|
4466
|
+
1984 && o && a && i && d && s && he();
|
|
4502
4467
|
}, [
|
|
4503
4468
|
m,
|
|
4504
4469
|
L,
|
|
@@ -4506,7 +4471,7 @@ function zi(e, t, r) {
|
|
|
4506
4471
|
n,
|
|
4507
4472
|
w,
|
|
4508
4473
|
A,
|
|
4509
|
-
|
|
4474
|
+
d,
|
|
4510
4475
|
i,
|
|
4511
4476
|
o,
|
|
4512
4477
|
a,
|
|
@@ -4514,20 +4479,20 @@ function zi(e, t, r) {
|
|
|
4514
4479
|
l,
|
|
4515
4480
|
u,
|
|
4516
4481
|
h,
|
|
4517
|
-
c,
|
|
4518
4482
|
f,
|
|
4519
|
-
|
|
4520
|
-
|
|
4483
|
+
c,
|
|
4484
|
+
or,
|
|
4485
|
+
sr
|
|
4521
4486
|
];
|
|
4522
4487
|
}
|
|
4523
|
-
class
|
|
4488
|
+
class Wi extends Pr {
|
|
4524
4489
|
constructor(t) {
|
|
4525
|
-
super(),
|
|
4490
|
+
super(), Hr(
|
|
4526
4491
|
this,
|
|
4527
4492
|
t,
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4493
|
+
ki,
|
|
4494
|
+
ji,
|
|
4495
|
+
Tt,
|
|
4531
4496
|
{
|
|
4532
4497
|
endpoint: 7,
|
|
4533
4498
|
session: 8,
|
|
@@ -4540,7 +4505,7 @@ class Zi extends Nr {
|
|
|
4540
4505
|
translationurl: 15,
|
|
4541
4506
|
currency: 6
|
|
4542
4507
|
},
|
|
4543
|
-
|
|
4508
|
+
Ui
|
|
4544
4509
|
);
|
|
4545
4510
|
}
|
|
4546
4511
|
get endpoint() {
|
|
@@ -4604,7 +4569,7 @@ class Zi extends Nr {
|
|
|
4604
4569
|
this.$$set({ currency: t }), H();
|
|
4605
4570
|
}
|
|
4606
4571
|
}
|
|
4607
|
-
|
|
4572
|
+
Br(Wi, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
|
|
4608
4573
|
export {
|
|
4609
|
-
|
|
4574
|
+
Wi as P
|
|
4610
4575
|
};
|