@everymatrix/player-pending-withdrawals 1.76.13 → 1.76.14
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/{PlayerPendingWithdrawals-CbVNGlnB.js → PlayerPendingWithdrawals-DrC-o1gp.js} +730 -751
- package/components/PlayerPendingWithdrawals-WAR1IcCp.cjs +18 -0
- package/components/{PlayerPendingWithdrawals-DMwKsX1H.js → PlayerPendingWithdrawals-tcbVo63r.js} +743 -764
- package/es2015/player-pending-withdrawals.cjs +1 -1
- package/es2015/player-pending-withdrawals.js +1 -1
- package/esnext/player-pending-withdrawals.js +1 -1
- package/package.json +1 -1
- package/components/PlayerPendingWithdrawals-CN8U7Alh.cjs +0 -18
package/components/{PlayerPendingWithdrawals-CbVNGlnB.js → PlayerPendingWithdrawals-DrC-o1gp.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ht(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
|
-
function
|
|
19
|
+
function tt(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function At(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ur(e, t, r) {
|
|
41
|
+
const n = hr(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, lr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,41 +54,41 @@ function lr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function lr(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 fr(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
|
}
|
|
@@ -101,87 +101,87 @@ function dr(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 pr() {
|
|
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 mr(e) {
|
|
114
|
+
pr().$$.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 rt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Le = !1;
|
|
120
|
+
function gr() {
|
|
121
|
+
Le || (Le = !0, br.then(P));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ce(e) {
|
|
124
124
|
W.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const we = /* @__PURE__ */ new Set();
|
|
127
127
|
let F = 0;
|
|
128
128
|
function P() {
|
|
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), yr(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
|
+
we.has(r) || (we.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
W.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; rt.length; )
|
|
150
|
+
rt.pop()();
|
|
151
|
+
Le = !1, we.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function yr(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(Ce);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vr(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 _r = /* @__PURE__ */ new Set();
|
|
165
|
+
function Er(e, t) {
|
|
166
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function xr(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), Ce(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(Tt).filter(Ze);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
+
}), i.forEach(Ce);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function wr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (vr(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 Sr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const l =
|
|
184
|
-
|
|
182
|
+
function Tr(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: [],
|
|
@@ -189,7 +189,7 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: H,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: et(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,28 +198,28 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: et(),
|
|
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 ? r(e, t.props || {}, (c, f, ...
|
|
209
|
-
const
|
|
210
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
211
|
-
}) : [], u.update(), h = !0,
|
|
208
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
209
|
+
const v = d.length ? d[0] : f;
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Sr(e, c)), f;
|
|
211
|
+
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const c =
|
|
214
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
213
|
+
const c = fr(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), P();
|
|
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,17 +261,17 @@ typeof HTMLElement == "function" && (Ot = 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
|
};
|
|
@@ -365,8 +365,8 @@ function fe(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function Hr(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
|
}
|
|
@@ -394,7 +394,7 @@ function Pr(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 Br {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
wr(this, 1), this.$destroy = H;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Br {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ze(r))
|
|
426
426
|
return H;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,11 +435,11 @@ class Br {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !sr(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(
|
|
441
|
+
const Br = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
443
443
|
/*! *****************************************************************************
|
|
444
444
|
Copyright (c) Microsoft Corporation.
|
|
445
445
|
|
|
@@ -454,24 +454,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
454
454
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
455
455
|
PERFORMANCE OF THIS SOFTWARE.
|
|
456
456
|
***************************************************************************** */
|
|
457
|
-
var
|
|
458
|
-
return
|
|
457
|
+
var Me = function(e, t) {
|
|
458
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
459
459
|
r.__proto__ = n;
|
|
460
460
|
} || function(r, n) {
|
|
461
461
|
for (var i in n)
|
|
462
462
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
463
|
-
},
|
|
463
|
+
}, Me(e, t);
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function N(e, t) {
|
|
466
466
|
if (typeof t != "function" && t !== null)
|
|
467
467
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
468
|
-
|
|
468
|
+
Me(e, t);
|
|
469
469
|
function r() {
|
|
470
470
|
this.constructor = e;
|
|
471
471
|
}
|
|
472
472
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
var g = function() {
|
|
475
|
+
return g = Object.assign || function(t) {
|
|
476
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
477
|
+
r = arguments[n];
|
|
478
|
+
for (var o in r)
|
|
479
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
480
|
+
}
|
|
481
|
+
return t;
|
|
482
|
+
}, g.apply(this, arguments);
|
|
483
|
+
};
|
|
484
|
+
function Ar(e, t) {
|
|
485
|
+
var r = {};
|
|
486
|
+
for (var n in e)
|
|
487
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
488
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
489
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
490
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
491
|
+
return r;
|
|
492
|
+
}
|
|
493
|
+
function Re(e) {
|
|
475
494
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
476
495
|
if (r)
|
|
477
496
|
return r.call(e);
|
|
@@ -483,7 +502,7 @@ function Ue(e) {
|
|
|
483
502
|
};
|
|
484
503
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
485
504
|
}
|
|
486
|
-
function
|
|
505
|
+
function $e(e, t) {
|
|
487
506
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
488
507
|
if (!r)
|
|
489
508
|
return e;
|
|
@@ -503,22 +522,22 @@ function De(e, t) {
|
|
|
503
522
|
}
|
|
504
523
|
return o;
|
|
505
524
|
}
|
|
506
|
-
function
|
|
507
|
-
if (arguments.length === 2)
|
|
525
|
+
function V(e, t, r) {
|
|
526
|
+
if (r || arguments.length === 2)
|
|
508
527
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
509
528
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
510
529
|
return e.concat(o || t);
|
|
511
530
|
}
|
|
512
|
-
function
|
|
531
|
+
function O(e) {
|
|
513
532
|
return typeof e == "function";
|
|
514
533
|
}
|
|
515
|
-
function
|
|
534
|
+
function At(e) {
|
|
516
535
|
var t = function(n) {
|
|
517
536
|
Error.call(n), n.stack = new Error().stack;
|
|
518
537
|
}, r = e(t);
|
|
519
538
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
520
539
|
}
|
|
521
|
-
var
|
|
540
|
+
var Se = At(function(e) {
|
|
522
541
|
return function(r) {
|
|
523
542
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
524
543
|
` + r.map(function(n, i) {
|
|
@@ -527,13 +546,13 @@ var He = It(function(e) {
|
|
|
527
546
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
528
547
|
};
|
|
529
548
|
});
|
|
530
|
-
function
|
|
549
|
+
function Ue(e, t) {
|
|
531
550
|
if (e) {
|
|
532
551
|
var r = e.indexOf(t);
|
|
533
552
|
0 <= r && e.splice(r, 1);
|
|
534
553
|
}
|
|
535
554
|
}
|
|
536
|
-
var
|
|
555
|
+
var ye = function() {
|
|
537
556
|
function e(t) {
|
|
538
557
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
539
558
|
}
|
|
@@ -545,12 +564,12 @@ var ve = function() {
|
|
|
545
564
|
if (a)
|
|
546
565
|
if (this._parentage = null, Array.isArray(a))
|
|
547
566
|
try {
|
|
548
|
-
for (var s =
|
|
567
|
+
for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
|
|
549
568
|
var u = l.value;
|
|
550
569
|
u.remove(this);
|
|
551
570
|
}
|
|
552
|
-
} catch (
|
|
553
|
-
t = { error:
|
|
571
|
+
} catch (p) {
|
|
572
|
+
t = { error: p };
|
|
554
573
|
} finally {
|
|
555
574
|
try {
|
|
556
575
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -562,29 +581,29 @@ var ve = function() {
|
|
|
562
581
|
else
|
|
563
582
|
a.remove(this);
|
|
564
583
|
var h = this.initialTeardown;
|
|
565
|
-
if (
|
|
584
|
+
if (O(h))
|
|
566
585
|
try {
|
|
567
586
|
h();
|
|
568
|
-
} catch (
|
|
569
|
-
o =
|
|
587
|
+
} catch (p) {
|
|
588
|
+
o = p instanceof Se ? p.errors : [p];
|
|
570
589
|
}
|
|
571
590
|
var c = this._finalizers;
|
|
572
591
|
if (c) {
|
|
573
592
|
this._finalizers = null;
|
|
574
593
|
try {
|
|
575
|
-
for (var f =
|
|
576
|
-
var
|
|
594
|
+
for (var f = Re(c), d = f.next(); !d.done; d = f.next()) {
|
|
595
|
+
var v = d.value;
|
|
577
596
|
try {
|
|
578
|
-
|
|
579
|
-
} catch (
|
|
580
|
-
o = o ?? [],
|
|
597
|
+
nt(v);
|
|
598
|
+
} catch (p) {
|
|
599
|
+
o = o ?? [], p instanceof Se ? o = V(V([], $e(o)), $e(p.errors)) : o.push(p);
|
|
581
600
|
}
|
|
582
601
|
}
|
|
583
|
-
} catch (
|
|
584
|
-
n = { error:
|
|
602
|
+
} catch (p) {
|
|
603
|
+
n = { error: p };
|
|
585
604
|
} finally {
|
|
586
605
|
try {
|
|
587
|
-
|
|
606
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
588
607
|
} finally {
|
|
589
608
|
if (n)
|
|
590
609
|
throw n.error;
|
|
@@ -592,13 +611,13 @@ var ve = function() {
|
|
|
592
611
|
}
|
|
593
612
|
}
|
|
594
613
|
if (o)
|
|
595
|
-
throw new
|
|
614
|
+
throw new Se(o);
|
|
596
615
|
}
|
|
597
616
|
}, e.prototype.add = function(t) {
|
|
598
617
|
var r;
|
|
599
618
|
if (t && t !== this)
|
|
600
619
|
if (this.closed)
|
|
601
|
-
|
|
620
|
+
nt(t);
|
|
602
621
|
else {
|
|
603
622
|
if (t instanceof e) {
|
|
604
623
|
if (t.closed || t._hasParent(this))
|
|
@@ -615,52 +634,56 @@ var ve = function() {
|
|
|
615
634
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
616
635
|
}, e.prototype._removeParent = function(t) {
|
|
617
636
|
var r = this._parentage;
|
|
618
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
637
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
619
638
|
}, e.prototype.remove = function(t) {
|
|
620
639
|
var r = this._finalizers;
|
|
621
|
-
r &&
|
|
640
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
622
641
|
}, e.EMPTY = function() {
|
|
623
642
|
var t = new e();
|
|
624
643
|
return t.closed = !0, t;
|
|
625
644
|
}(), e;
|
|
626
|
-
}(),
|
|
627
|
-
function
|
|
628
|
-
return e instanceof
|
|
629
|
-
}
|
|
630
|
-
function
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
var
|
|
634
|
-
|
|
635
|
-
|
|
645
|
+
}(), Ot = ye.EMPTY;
|
|
646
|
+
function It(e) {
|
|
647
|
+
return e instanceof ye || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
648
|
+
}
|
|
649
|
+
function nt(e) {
|
|
650
|
+
O(e) ? e() : e.unsubscribe();
|
|
651
|
+
}
|
|
652
|
+
var Nt = {
|
|
653
|
+
onUnhandledError: null,
|
|
654
|
+
onStoppedNotification: null,
|
|
655
|
+
Promise: void 0,
|
|
656
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
657
|
+
useDeprecatedNextContext: !1
|
|
658
|
+
}, Or = {
|
|
636
659
|
setTimeout: function(e, t) {
|
|
637
660
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
638
661
|
r[n - 2] = arguments[n];
|
|
639
|
-
return setTimeout.apply(void 0,
|
|
662
|
+
return setTimeout.apply(void 0, V([e, t], $e(r)));
|
|
640
663
|
},
|
|
641
664
|
clearTimeout: function(e) {
|
|
642
665
|
return clearTimeout(e);
|
|
643
666
|
},
|
|
644
667
|
delegate: void 0
|
|
645
668
|
};
|
|
646
|
-
function
|
|
647
|
-
|
|
669
|
+
function Ir(e) {
|
|
670
|
+
Or.setTimeout(function() {
|
|
648
671
|
throw e;
|
|
649
672
|
});
|
|
650
673
|
}
|
|
651
|
-
function
|
|
674
|
+
function it() {
|
|
652
675
|
}
|
|
653
|
-
function
|
|
676
|
+
function de(e) {
|
|
654
677
|
e();
|
|
655
678
|
}
|
|
656
|
-
var
|
|
657
|
-
|
|
679
|
+
var Lt = function(e) {
|
|
680
|
+
N(t, e);
|
|
658
681
|
function t(r) {
|
|
659
682
|
var n = e.call(this) || this;
|
|
660
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
683
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Mr, n;
|
|
661
684
|
}
|
|
662
685
|
return t.create = function(r, n, i) {
|
|
663
|
-
return new
|
|
686
|
+
return new De(r, n, i);
|
|
664
687
|
}, t.prototype.next = function(r) {
|
|
665
688
|
this.isStopped || this._next(r);
|
|
666
689
|
}, t.prototype.error = function(r) {
|
|
@@ -684,7 +707,11 @@ var Ct = function(e) {
|
|
|
684
707
|
this.unsubscribe();
|
|
685
708
|
}
|
|
686
709
|
}, t;
|
|
687
|
-
}(
|
|
710
|
+
}(ye), Nr = Function.prototype.bind;
|
|
711
|
+
function Te(e, t) {
|
|
712
|
+
return Nr.call(e, t);
|
|
713
|
+
}
|
|
714
|
+
var Lr = function() {
|
|
688
715
|
function e(t) {
|
|
689
716
|
this.partialObserver = t;
|
|
690
717
|
}
|
|
@@ -715,43 +742,55 @@ var Ct = function(e) {
|
|
|
715
742
|
le(r);
|
|
716
743
|
}
|
|
717
744
|
}, e;
|
|
718
|
-
}(),
|
|
719
|
-
|
|
745
|
+
}(), De = function(e) {
|
|
746
|
+
N(t, e);
|
|
720
747
|
function t(r, n, i) {
|
|
721
748
|
var o = e.call(this) || this, a;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
749
|
+
if (O(r) || !r)
|
|
750
|
+
a = {
|
|
751
|
+
next: r ?? void 0,
|
|
752
|
+
error: n ?? void 0,
|
|
753
|
+
complete: i ?? void 0
|
|
754
|
+
};
|
|
755
|
+
else {
|
|
756
|
+
var s;
|
|
757
|
+
o && Nt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
758
|
+
return o.unsubscribe();
|
|
759
|
+
}, a = {
|
|
760
|
+
next: r.next && Te(r.next, s),
|
|
761
|
+
error: r.error && Te(r.error, s),
|
|
762
|
+
complete: r.complete && Te(r.complete, s)
|
|
763
|
+
}) : a = r;
|
|
764
|
+
}
|
|
765
|
+
return o.destination = new Lr(a), o;
|
|
727
766
|
}
|
|
728
767
|
return t;
|
|
729
|
-
}(
|
|
768
|
+
}(Lt);
|
|
730
769
|
function le(e) {
|
|
731
|
-
|
|
770
|
+
Ir(e);
|
|
732
771
|
}
|
|
733
772
|
function Cr(e) {
|
|
734
773
|
throw e;
|
|
735
774
|
}
|
|
736
775
|
var Mr = {
|
|
737
776
|
closed: !0,
|
|
738
|
-
next:
|
|
777
|
+
next: it,
|
|
739
778
|
error: Cr,
|
|
740
|
-
complete:
|
|
741
|
-
},
|
|
779
|
+
complete: it
|
|
780
|
+
}, Rr = function() {
|
|
742
781
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
743
782
|
}();
|
|
744
|
-
function
|
|
783
|
+
function $r(e) {
|
|
745
784
|
return e;
|
|
746
785
|
}
|
|
747
786
|
function Ur(e) {
|
|
748
|
-
return e.length === 0 ?
|
|
787
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
749
788
|
return e.reduce(function(n, i) {
|
|
750
789
|
return i(n);
|
|
751
790
|
}, r);
|
|
752
791
|
};
|
|
753
792
|
}
|
|
754
|
-
var
|
|
793
|
+
var ot = function() {
|
|
755
794
|
function e(t) {
|
|
756
795
|
t && (this._subscribe = t);
|
|
757
796
|
}
|
|
@@ -759,8 +798,8 @@ var at = function() {
|
|
|
759
798
|
var r = new e();
|
|
760
799
|
return r.source = this, r.operator = t, r;
|
|
761
800
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
762
|
-
var i = this, o = Gr(t) ? t : new
|
|
763
|
-
return
|
|
801
|
+
var i = this, o = Gr(t) ? t : new De(t, r, n);
|
|
802
|
+
return de(function() {
|
|
764
803
|
var a = i, s = a.operator, l = a.source;
|
|
765
804
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
766
805
|
}), o;
|
|
@@ -772,8 +811,8 @@ var at = function() {
|
|
|
772
811
|
}
|
|
773
812
|
}, e.prototype.forEach = function(t, r) {
|
|
774
813
|
var n = this;
|
|
775
|
-
return r =
|
|
776
|
-
var a = new
|
|
814
|
+
return r = st(r), new r(function(i, o) {
|
|
815
|
+
var a = new De({
|
|
777
816
|
next: function(s) {
|
|
778
817
|
try {
|
|
779
818
|
t(s);
|
|
@@ -789,7 +828,7 @@ var at = function() {
|
|
|
789
828
|
}, e.prototype._subscribe = function(t) {
|
|
790
829
|
var r;
|
|
791
830
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
792
|
-
}, e.prototype[
|
|
831
|
+
}, e.prototype[Rr] = function() {
|
|
793
832
|
return this;
|
|
794
833
|
}, e.prototype.pipe = function() {
|
|
795
834
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -797,7 +836,7 @@ var at = function() {
|
|
|
797
836
|
return Ur(t)(this);
|
|
798
837
|
}, e.prototype.toPromise = function(t) {
|
|
799
838
|
var r = this;
|
|
800
|
-
return t =
|
|
839
|
+
return t = st(t), new t(function(n, i) {
|
|
801
840
|
var o;
|
|
802
841
|
r.subscribe(function(a) {
|
|
803
842
|
return o = a;
|
|
@@ -811,40 +850,40 @@ var at = function() {
|
|
|
811
850
|
return new e(t);
|
|
812
851
|
}, e;
|
|
813
852
|
}();
|
|
814
|
-
function
|
|
853
|
+
function st(e) {
|
|
815
854
|
var t;
|
|
816
|
-
return (t = e ??
|
|
855
|
+
return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
817
856
|
}
|
|
818
857
|
function Dr(e) {
|
|
819
|
-
return e &&
|
|
858
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
820
859
|
}
|
|
821
860
|
function Gr(e) {
|
|
822
|
-
return e && e instanceof
|
|
861
|
+
return e && e instanceof Lt || Dr(e) && It(e);
|
|
823
862
|
}
|
|
824
|
-
var Fr =
|
|
863
|
+
var Fr = At(function(e) {
|
|
825
864
|
return function() {
|
|
826
865
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
827
866
|
};
|
|
828
|
-
}),
|
|
829
|
-
|
|
867
|
+
}), Ct = function(e) {
|
|
868
|
+
N(t, e);
|
|
830
869
|
function t() {
|
|
831
870
|
var r = e.call(this) || this;
|
|
832
871
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
833
872
|
}
|
|
834
873
|
return t.prototype.lift = function(r) {
|
|
835
|
-
var n = new
|
|
874
|
+
var n = new at(this, this);
|
|
836
875
|
return n.operator = r, n;
|
|
837
876
|
}, t.prototype._throwIfClosed = function() {
|
|
838
877
|
if (this.closed)
|
|
839
878
|
throw new Fr();
|
|
840
879
|
}, t.prototype.next = function(r) {
|
|
841
880
|
var n = this;
|
|
842
|
-
|
|
881
|
+
de(function() {
|
|
843
882
|
var i, o;
|
|
844
883
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
845
884
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
846
885
|
try {
|
|
847
|
-
for (var a =
|
|
886
|
+
for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
848
887
|
var l = s.value;
|
|
849
888
|
l.next(r);
|
|
850
889
|
}
|
|
@@ -862,7 +901,7 @@ var Fr = It(function(e) {
|
|
|
862
901
|
});
|
|
863
902
|
}, t.prototype.error = function(r) {
|
|
864
903
|
var n = this;
|
|
865
|
-
|
|
904
|
+
de(function() {
|
|
866
905
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
867
906
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
868
907
|
for (var i = n.observers; i.length; )
|
|
@@ -871,7 +910,7 @@ var Fr = It(function(e) {
|
|
|
871
910
|
});
|
|
872
911
|
}, t.prototype.complete = function() {
|
|
873
912
|
var r = this;
|
|
874
|
-
|
|
913
|
+
de(function() {
|
|
875
914
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
876
915
|
r.isStopped = !0;
|
|
877
916
|
for (var n = r.observers; n.length; )
|
|
@@ -893,20 +932,20 @@ var Fr = It(function(e) {
|
|
|
893
932
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
894
933
|
}, t.prototype._innerSubscribe = function(r) {
|
|
895
934
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
896
|
-
return o || a ?
|
|
897
|
-
n.currentObservers = null,
|
|
935
|
+
return o || a ? Ot : (this.currentObservers = null, s.push(r), new ye(function() {
|
|
936
|
+
n.currentObservers = null, Ue(s, r);
|
|
898
937
|
}));
|
|
899
938
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
900
939
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
901
940
|
i ? r.error(o) : a && r.complete();
|
|
902
941
|
}, t.prototype.asObservable = function() {
|
|
903
|
-
var r = new
|
|
942
|
+
var r = new ot();
|
|
904
943
|
return r.source = this, r;
|
|
905
944
|
}, t.create = function(r, n) {
|
|
906
|
-
return new
|
|
945
|
+
return new at(r, n);
|
|
907
946
|
}, t;
|
|
908
|
-
}(
|
|
909
|
-
|
|
947
|
+
}(ot), at = function(e) {
|
|
948
|
+
N(t, e);
|
|
910
949
|
function t(r, n) {
|
|
911
950
|
var i = e.call(this) || this;
|
|
912
951
|
return i.destination = r, i.source = n, i;
|
|
@@ -922,17 +961,17 @@ var Fr = It(function(e) {
|
|
|
922
961
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
923
962
|
}, t.prototype._subscribe = function(r) {
|
|
924
963
|
var n, i;
|
|
925
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
964
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
926
965
|
}, t;
|
|
927
|
-
}(
|
|
966
|
+
}(Ct), Mt = {
|
|
928
967
|
now: function() {
|
|
929
|
-
return (
|
|
968
|
+
return (Mt.delegate || Date).now();
|
|
930
969
|
},
|
|
931
970
|
delegate: void 0
|
|
932
971
|
}, jr = function(e) {
|
|
933
|
-
|
|
972
|
+
N(t, e);
|
|
934
973
|
function t(r, n, i) {
|
|
935
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
974
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
936
975
|
var o = e.call(this) || this;
|
|
937
976
|
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;
|
|
938
977
|
}
|
|
@@ -952,24 +991,24 @@ var Fr = It(function(e) {
|
|
|
952
991
|
u && o.splice(0, u + 1);
|
|
953
992
|
}
|
|
954
993
|
}, t;
|
|
955
|
-
}(
|
|
956
|
-
const
|
|
957
|
-
if (
|
|
994
|
+
}(Ct);
|
|
995
|
+
const ut = [], ht = {}, kr = (e, t = 0) => {
|
|
996
|
+
if (ut.indexOf(e) == -1) {
|
|
958
997
|
const r = new jr(t);
|
|
959
|
-
|
|
998
|
+
ht[e] = r, ut.push(e);
|
|
960
999
|
}
|
|
961
|
-
return
|
|
1000
|
+
return ht[e];
|
|
962
1001
|
}, j = [];
|
|
963
1002
|
function Wr(e, t) {
|
|
964
1003
|
return {
|
|
965
|
-
subscribe:
|
|
1004
|
+
subscribe: ve(e, t).subscribe
|
|
966
1005
|
};
|
|
967
1006
|
}
|
|
968
|
-
function
|
|
1007
|
+
function ve(e, t = H) {
|
|
969
1008
|
let r;
|
|
970
1009
|
const n = /* @__PURE__ */ new Set();
|
|
971
1010
|
function i(s) {
|
|
972
|
-
if (
|
|
1011
|
+
if (Ht(e, s) && (e = s, r)) {
|
|
973
1012
|
const l = !j.length;
|
|
974
1013
|
for (const u of n)
|
|
975
1014
|
u[1](), j.push(u, e);
|
|
@@ -991,7 +1030,7 @@ function _e(e, t = H) {
|
|
|
991
1030
|
}
|
|
992
1031
|
return { set: i, update: o, subscribe: a };
|
|
993
1032
|
}
|
|
994
|
-
function
|
|
1033
|
+
function Y(e, t, r) {
|
|
995
1034
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
996
1035
|
if (!i.every(Boolean))
|
|
997
1036
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1004,21 +1043,21 @@ function J(e, t, r) {
|
|
|
1004
1043
|
if (h)
|
|
1005
1044
|
return;
|
|
1006
1045
|
c();
|
|
1007
|
-
const
|
|
1008
|
-
o ? a(
|
|
1009
|
-
},
|
|
1010
|
-
(
|
|
1011
|
-
|
|
1046
|
+
const v = t(n ? u[0] : u, a, s);
|
|
1047
|
+
o ? a(v) : c = Ze(v) ? v : H;
|
|
1048
|
+
}, d = i.map(
|
|
1049
|
+
(v, p) => Pt(
|
|
1050
|
+
v,
|
|
1012
1051
|
(w) => {
|
|
1013
|
-
u[
|
|
1052
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1014
1053
|
},
|
|
1015
1054
|
() => {
|
|
1016
|
-
h |= 1 <<
|
|
1055
|
+
h |= 1 << p;
|
|
1017
1056
|
}
|
|
1018
1057
|
)
|
|
1019
1058
|
);
|
|
1020
1059
|
return l = !0, f(), function() {
|
|
1021
|
-
|
|
1060
|
+
se(d), c(), l = !1;
|
|
1022
1061
|
};
|
|
1023
1062
|
});
|
|
1024
1063
|
}
|
|
@@ -1042,26 +1081,26 @@ function Yr(e) {
|
|
|
1042
1081
|
function qr(e) {
|
|
1043
1082
|
return Array.isArray(e) ? [] : {};
|
|
1044
1083
|
}
|
|
1045
|
-
function
|
|
1046
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1084
|
+
function ie(e, t) {
|
|
1085
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(qr(e), e, t) : e;
|
|
1047
1086
|
}
|
|
1048
1087
|
function Kr(e, t, r) {
|
|
1049
1088
|
return e.concat(t).map(function(n) {
|
|
1050
|
-
return
|
|
1089
|
+
return ie(n, r);
|
|
1051
1090
|
});
|
|
1052
1091
|
}
|
|
1053
1092
|
function en(e, t) {
|
|
1054
1093
|
if (!t.customMerge)
|
|
1055
|
-
return
|
|
1094
|
+
return X;
|
|
1056
1095
|
var r = t.customMerge(e);
|
|
1057
|
-
return typeof r == "function" ? r :
|
|
1096
|
+
return typeof r == "function" ? r : X;
|
|
1058
1097
|
}
|
|
1059
1098
|
function tn(e) {
|
|
1060
1099
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1061
1100
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1062
1101
|
}) : [];
|
|
1063
1102
|
}
|
|
1064
|
-
function
|
|
1103
|
+
function lt(e) {
|
|
1065
1104
|
return Object.keys(e).concat(tn(e));
|
|
1066
1105
|
}
|
|
1067
1106
|
function Rt(e, t) {
|
|
@@ -1076,175 +1115,125 @@ function rn(e, t) {
|
|
|
1076
1115
|
}
|
|
1077
1116
|
function nn(e, t, r) {
|
|
1078
1117
|
var n = {};
|
|
1079
|
-
return r.isMergeableObject(e) &&
|
|
1080
|
-
n[i] =
|
|
1081
|
-
}),
|
|
1082
|
-
rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] =
|
|
1118
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1119
|
+
n[i] = ie(e[i], r);
|
|
1120
|
+
}), lt(t).forEach(function(i) {
|
|
1121
|
+
rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1083
1122
|
}), n;
|
|
1084
1123
|
}
|
|
1085
|
-
function
|
|
1086
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified =
|
|
1124
|
+
function X(e, t, r) {
|
|
1125
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1087
1126
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1088
|
-
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) :
|
|
1127
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ie(t, r);
|
|
1089
1128
|
}
|
|
1090
|
-
|
|
1129
|
+
X.all = function(t, r) {
|
|
1091
1130
|
if (!Array.isArray(t))
|
|
1092
1131
|
throw new Error("first argument should be an array");
|
|
1093
1132
|
return t.reduce(function(n, i) {
|
|
1094
|
-
return
|
|
1133
|
+
return X(n, i, r);
|
|
1095
1134
|
}, {});
|
|
1096
1135
|
};
|
|
1097
|
-
var on =
|
|
1136
|
+
var on = X, sn = on;
|
|
1098
1137
|
const an = /* @__PURE__ */ Vr(sn);
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
r.__proto__ = n;
|
|
1102
|
-
} || function(r, n) {
|
|
1103
|
-
for (var i in n)
|
|
1104
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1105
|
-
}, ke(e, t);
|
|
1106
|
-
};
|
|
1107
|
-
function Ee(e, t) {
|
|
1108
|
-
if (typeof t != "function" && t !== null)
|
|
1109
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1110
|
-
ke(e, t);
|
|
1111
|
-
function r() {
|
|
1112
|
-
this.constructor = e;
|
|
1113
|
-
}
|
|
1114
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1115
|
-
}
|
|
1116
|
-
var B = function() {
|
|
1117
|
-
return B = Object.assign || function(t) {
|
|
1118
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1119
|
-
r = arguments[n];
|
|
1120
|
-
for (var o in r)
|
|
1121
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1122
|
-
}
|
|
1123
|
-
return t;
|
|
1124
|
-
}, B.apply(this, arguments);
|
|
1125
|
-
};
|
|
1126
|
-
function un(e, t) {
|
|
1127
|
-
var r = {};
|
|
1128
|
-
for (var n in e)
|
|
1129
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1130
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1131
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1132
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1133
|
-
return r;
|
|
1134
|
-
}
|
|
1135
|
-
function Pe(e, t, r) {
|
|
1136
|
-
if (r || arguments.length === 2)
|
|
1137
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1138
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1139
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1140
|
-
}
|
|
1141
|
-
function Be(e, t) {
|
|
1142
|
-
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
|
|
1138
|
+
function He(e, t) {
|
|
1139
|
+
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1143
1140
|
return i(e, {
|
|
1144
1141
|
cache: r,
|
|
1145
1142
|
serializer: n
|
|
1146
1143
|
});
|
|
1147
1144
|
}
|
|
1148
|
-
function
|
|
1145
|
+
function un(e) {
|
|
1149
1146
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1150
1147
|
}
|
|
1151
|
-
function
|
|
1152
|
-
var i =
|
|
1148
|
+
function $t(e, t, r, n) {
|
|
1149
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1153
1150
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1154
1151
|
}
|
|
1155
1152
|
function Ut(e, t, r) {
|
|
1156
1153
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1157
1154
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1158
1155
|
}
|
|
1159
|
-
function
|
|
1156
|
+
function Je(e, t, r, n, i) {
|
|
1160
1157
|
return r.bind(t, e, n, i);
|
|
1161
1158
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var r = e.length === 1 ?
|
|
1164
|
-
return
|
|
1159
|
+
function hn(e, t) {
|
|
1160
|
+
var r = e.length === 1 ? $t : Ut;
|
|
1161
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1165
1162
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
1163
|
+
function ln(e, t) {
|
|
1164
|
+
return Je(e, this, Ut, t.cache.create(), t.serializer);
|
|
1165
|
+
}
|
|
1166
|
+
function cn(e, t) {
|
|
1167
|
+
return Je(e, this, $t, t.cache.create(), t.serializer);
|
|
1168
1168
|
}
|
|
1169
|
-
var
|
|
1169
|
+
var fn = function() {
|
|
1170
1170
|
return JSON.stringify(arguments);
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}()
|
|
1183
|
-
), mn = {
|
|
1171
|
+
};
|
|
1172
|
+
function Ye() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
Ye.prototype.get = function(e) {
|
|
1176
|
+
return this.cache[e];
|
|
1177
|
+
};
|
|
1178
|
+
Ye.prototype.set = function(e, t) {
|
|
1179
|
+
this.cache[e] = t;
|
|
1180
|
+
};
|
|
1181
|
+
var dn = {
|
|
1184
1182
|
create: function() {
|
|
1185
|
-
return new
|
|
1183
|
+
return new Ye();
|
|
1186
1184
|
}
|
|
1187
|
-
},
|
|
1188
|
-
variadic:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1192
|
-
r = arguments[n];
|
|
1193
|
-
for (var o in r)
|
|
1194
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1195
|
-
}
|
|
1196
|
-
return t;
|
|
1197
|
-
}, be.apply(this, arguments);
|
|
1198
|
-
};
|
|
1199
|
-
var m;
|
|
1185
|
+
}, Pe = {
|
|
1186
|
+
variadic: ln,
|
|
1187
|
+
monadic: cn
|
|
1188
|
+
}, m;
|
|
1200
1189
|
(function(e) {
|
|
1201
1190
|
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";
|
|
1202
1191
|
})(m || (m = {}));
|
|
1203
|
-
var
|
|
1192
|
+
var _;
|
|
1204
1193
|
(function(e) {
|
|
1205
1194
|
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";
|
|
1206
|
-
})(
|
|
1207
|
-
var
|
|
1195
|
+
})(_ || (_ = {}));
|
|
1196
|
+
var z;
|
|
1208
1197
|
(function(e) {
|
|
1209
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1210
|
-
})(
|
|
1211
|
-
function
|
|
1212
|
-
return e.type ===
|
|
1199
|
+
})(z || (z = {}));
|
|
1200
|
+
function ct(e) {
|
|
1201
|
+
return e.type === _.literal;
|
|
1213
1202
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1203
|
+
function pn(e) {
|
|
1204
|
+
return e.type === _.argument;
|
|
1205
|
+
}
|
|
1206
|
+
function Dt(e) {
|
|
1207
|
+
return e.type === _.number;
|
|
1216
1208
|
}
|
|
1217
1209
|
function Gt(e) {
|
|
1218
|
-
return e.type ===
|
|
1210
|
+
return e.type === _.date;
|
|
1219
1211
|
}
|
|
1220
1212
|
function Ft(e) {
|
|
1221
|
-
return e.type ===
|
|
1213
|
+
return e.type === _.time;
|
|
1222
1214
|
}
|
|
1223
1215
|
function jt(e) {
|
|
1224
|
-
return e.type ===
|
|
1216
|
+
return e.type === _.select;
|
|
1225
1217
|
}
|
|
1226
1218
|
function kt(e) {
|
|
1227
|
-
return e.type ===
|
|
1219
|
+
return e.type === _.plural;
|
|
1228
1220
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return e.type ===
|
|
1221
|
+
function mn(e) {
|
|
1222
|
+
return e.type === _.pound;
|
|
1231
1223
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return e.type ===
|
|
1224
|
+
function Wt(e) {
|
|
1225
|
+
return e.type === _.tag;
|
|
1234
1226
|
}
|
|
1235
1227
|
function Vt(e) {
|
|
1236
|
-
return e.type ===
|
|
1228
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1237
1229
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1230
|
+
function Ge(e) {
|
|
1231
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1240
1232
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}
|
|
1244
|
-
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
1245
|
-
function vn(e) {
|
|
1233
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1234
|
+
function gn(e) {
|
|
1246
1235
|
var t = {};
|
|
1247
|
-
return e.replace(
|
|
1236
|
+
return e.replace(bn, function(r) {
|
|
1248
1237
|
var n = r.length;
|
|
1249
1238
|
switch (r[0]) {
|
|
1250
1239
|
case "G":
|
|
@@ -1333,21 +1322,11 @@ function vn(e) {
|
|
|
1333
1322
|
return "";
|
|
1334
1323
|
}), t;
|
|
1335
1324
|
}
|
|
1336
|
-
var
|
|
1337
|
-
|
|
1338
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1339
|
-
r = arguments[n];
|
|
1340
|
-
for (var o in r)
|
|
1341
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1342
|
-
}
|
|
1343
|
-
return t;
|
|
1344
|
-
}, _.apply(this, arguments);
|
|
1345
|
-
};
|
|
1346
|
-
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1347
|
-
function En(e) {
|
|
1325
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function vn(e) {
|
|
1348
1327
|
if (e.length === 0)
|
|
1349
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1350
|
-
for (var t = e.split(
|
|
1329
|
+
for (var t = e.split(yn).filter(function(f) {
|
|
1351
1330
|
return f.length > 0;
|
|
1352
1331
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1353
1332
|
var o = i[n], a = o.split("/");
|
|
@@ -1362,17 +1341,17 @@ function En(e) {
|
|
|
1362
1341
|
}
|
|
1363
1342
|
return r;
|
|
1364
1343
|
}
|
|
1365
|
-
function
|
|
1344
|
+
function _n(e) {
|
|
1366
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1367
1346
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1347
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1348
|
+
function dt(e) {
|
|
1370
1349
|
var t = {};
|
|
1371
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1372
1351
|
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)), "";
|
|
1373
1352
|
}), t;
|
|
1374
1353
|
}
|
|
1375
|
-
function
|
|
1354
|
+
function Qt(e) {
|
|
1376
1355
|
switch (e) {
|
|
1377
1356
|
case "sign-auto":
|
|
1378
1357
|
return {
|
|
@@ -1412,7 +1391,7 @@ function Jt(e) {
|
|
|
1412
1391
|
};
|
|
1413
1392
|
}
|
|
1414
1393
|
}
|
|
1415
|
-
function
|
|
1394
|
+
function xn(e) {
|
|
1416
1395
|
var t;
|
|
1417
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1418
1397
|
notation: "engineering"
|
|
@@ -1420,17 +1399,17 @@ function Sn(e) {
|
|
|
1420
1399
|
notation: "scientific"
|
|
1421
1400
|
}, e = e.slice(1)), t) {
|
|
1422
1401
|
var r = e.slice(0, 2);
|
|
1423
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1424
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1425
1404
|
t.minimumIntegerDigits = e.length;
|
|
1426
1405
|
}
|
|
1427
1406
|
return t;
|
|
1428
1407
|
}
|
|
1429
|
-
function
|
|
1430
|
-
var t = {}, r =
|
|
1408
|
+
function pt(e) {
|
|
1409
|
+
var t = {}, r = Qt(e);
|
|
1431
1410
|
return r || t;
|
|
1432
1411
|
}
|
|
1433
|
-
function
|
|
1412
|
+
function wn(e) {
|
|
1434
1413
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1435
1414
|
var i = n[r];
|
|
1436
1415
|
switch (i.stem) {
|
|
@@ -1454,7 +1433,7 @@ function Tn(e) {
|
|
|
1454
1433
|
continue;
|
|
1455
1434
|
case "measure-unit":
|
|
1456
1435
|
case "unit":
|
|
1457
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1458
1437
|
continue;
|
|
1459
1438
|
case "compact-short":
|
|
1460
1439
|
case "K":
|
|
@@ -1465,13 +1444,13 @@ function Tn(e) {
|
|
|
1465
1444
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1466
1445
|
continue;
|
|
1467
1446
|
case "scientific":
|
|
1468
|
-
t =
|
|
1469
|
-
return
|
|
1447
|
+
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1448
|
+
return g(g({}, l), pt(u));
|
|
1470
1449
|
}, {}));
|
|
1471
1450
|
continue;
|
|
1472
1451
|
case "engineering":
|
|
1473
|
-
t =
|
|
1474
|
-
return
|
|
1452
|
+
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1453
|
+
return g(g({}, l), pt(u));
|
|
1475
1454
|
}, {}));
|
|
1476
1455
|
continue;
|
|
1477
1456
|
case "notation-simple":
|
|
@@ -1516,41 +1495,41 @@ function Tn(e) {
|
|
|
1516
1495
|
case "integer-width":
|
|
1517
1496
|
if (i.options.length > 1)
|
|
1518
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1519
|
-
i.options[0].replace(
|
|
1498
|
+
i.options[0].replace(En, function(l, u, h, c, f, d) {
|
|
1520
1499
|
if (u)
|
|
1521
1500
|
t.minimumIntegerDigits = h.length;
|
|
1522
1501
|
else {
|
|
1523
1502
|
if (c && f)
|
|
1524
1503
|
throw new Error("We currently do not support maximum integer digits");
|
|
1525
|
-
if (
|
|
1504
|
+
if (d)
|
|
1526
1505
|
throw new Error("We currently do not support exact integer digits");
|
|
1527
1506
|
}
|
|
1528
1507
|
return "";
|
|
1529
1508
|
});
|
|
1530
1509
|
continue;
|
|
1531
1510
|
}
|
|
1532
|
-
if (
|
|
1511
|
+
if (Zt.test(i.stem)) {
|
|
1533
1512
|
t.minimumIntegerDigits = i.stem.length;
|
|
1534
1513
|
continue;
|
|
1535
1514
|
}
|
|
1536
|
-
if (
|
|
1515
|
+
if (ft.test(i.stem)) {
|
|
1537
1516
|
if (i.options.length > 1)
|
|
1538
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1539
|
-
i.stem.replace(
|
|
1540
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1518
|
+
i.stem.replace(ft, function(l, u, h, c, f, d) {
|
|
1519
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1541
1520
|
});
|
|
1542
1521
|
var o = i.options[0];
|
|
1543
|
-
o === "w" ? t =
|
|
1522
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), dt(o)));
|
|
1544
1523
|
continue;
|
|
1545
1524
|
}
|
|
1546
|
-
if (
|
|
1547
|
-
t =
|
|
1525
|
+
if (zt.test(i.stem)) {
|
|
1526
|
+
t = g(g({}, t), dt(i.stem));
|
|
1548
1527
|
continue;
|
|
1549
1528
|
}
|
|
1550
|
-
var a =
|
|
1551
|
-
a && (t =
|
|
1552
|
-
var s =
|
|
1553
|
-
s && (t =
|
|
1529
|
+
var a = Qt(i.stem);
|
|
1530
|
+
a && (t = g(g({}, t), a));
|
|
1531
|
+
var s = xn(i.stem);
|
|
1532
|
+
s && (t = g(g({}, t), s));
|
|
1554
1533
|
}
|
|
1555
1534
|
return t;
|
|
1556
1535
|
}
|
|
@@ -2969,13 +2948,13 @@ var ce = {
|
|
|
2969
2948
|
"h"
|
|
2970
2949
|
]
|
|
2971
2950
|
};
|
|
2972
|
-
function
|
|
2951
|
+
function Sn(e, t) {
|
|
2973
2952
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2974
2953
|
var i = e.charAt(n);
|
|
2975
2954
|
if (i === "j") {
|
|
2976
2955
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2977
2956
|
o++, n++;
|
|
2978
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2957
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Tn(t);
|
|
2979
2958
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2980
2959
|
r += l;
|
|
2981
2960
|
for (; a-- > 0; )
|
|
@@ -2985,7 +2964,7 @@ function Hn(e, t) {
|
|
|
2985
2964
|
}
|
|
2986
2965
|
return r;
|
|
2987
2966
|
}
|
|
2988
|
-
function
|
|
2967
|
+
function Tn(e) {
|
|
2989
2968
|
var t = e.hourCycle;
|
|
2990
2969
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2991
2970
|
e.hourCycles && // @ts-ignore
|
|
@@ -3007,20 +2986,20 @@ function Pn(e) {
|
|
|
3007
2986
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3008
2987
|
return i[0];
|
|
3009
2988
|
}
|
|
3010
|
-
var
|
|
2989
|
+
var Be, Hn = new RegExp("^".concat(Xt.source, "*")), Pn = new RegExp("".concat(Xt.source, "*$"));
|
|
3011
2990
|
function b(e, t) {
|
|
3012
2991
|
return { start: e, end: t };
|
|
3013
2992
|
}
|
|
3014
|
-
var
|
|
2993
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Cn = !!Number.isSafeInteger, Mn = Cn ? Number.isSafeInteger : function(e) {
|
|
3015
2994
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3016
|
-
},
|
|
2995
|
+
}, Fe = !0;
|
|
3017
2996
|
try {
|
|
3018
|
-
var
|
|
3019
|
-
|
|
2997
|
+
var Rn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2998
|
+
Fe = ((Be = Rn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3020
2999
|
} catch {
|
|
3021
|
-
|
|
3000
|
+
Fe = !1;
|
|
3022
3001
|
}
|
|
3023
|
-
var
|
|
3002
|
+
var mt = Bn ? (
|
|
3024
3003
|
// Native
|
|
3025
3004
|
function(t, r, n) {
|
|
3026
3005
|
return t.startsWith(r, n);
|
|
@@ -3030,7 +3009,7 @@ var gt = On ? (
|
|
|
3030
3009
|
function(t, r, n) {
|
|
3031
3010
|
return t.slice(n, n + r.length) === r;
|
|
3032
3011
|
}
|
|
3033
|
-
),
|
|
3012
|
+
), je = An ? String.fromCodePoint : (
|
|
3034
3013
|
// IE11
|
|
3035
3014
|
function() {
|
|
3036
3015
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3042,9 +3021,9 @@ var gt = On ? (
|
|
|
3042
3021
|
}
|
|
3043
3022
|
return n;
|
|
3044
3023
|
}
|
|
3045
|
-
),
|
|
3024
|
+
), bt = (
|
|
3046
3025
|
// native
|
|
3047
|
-
|
|
3026
|
+
On ? Object.fromEntries : (
|
|
3048
3027
|
// Ponyfill
|
|
3049
3028
|
function(t) {
|
|
3050
3029
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3054,7 +3033,7 @@ var gt = On ? (
|
|
|
3054
3033
|
return r;
|
|
3055
3034
|
}
|
|
3056
3035
|
)
|
|
3057
|
-
),
|
|
3036
|
+
), Jt = In ? (
|
|
3058
3037
|
// Native
|
|
3059
3038
|
function(t, r) {
|
|
3060
3039
|
return t.codePointAt(r);
|
|
@@ -3068,7 +3047,7 @@ var gt = On ? (
|
|
|
3068
3047
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3069
3048
|
}
|
|
3070
3049
|
}
|
|
3071
|
-
),
|
|
3050
|
+
), $n = Nn ? (
|
|
3072
3051
|
// Native
|
|
3073
3052
|
function(t) {
|
|
3074
3053
|
return t.trimStart();
|
|
@@ -3076,9 +3055,9 @@ var gt = On ? (
|
|
|
3076
3055
|
) : (
|
|
3077
3056
|
// Ponyfill
|
|
3078
3057
|
function(t) {
|
|
3079
|
-
return t.replace(
|
|
3058
|
+
return t.replace(Hn, "");
|
|
3080
3059
|
}
|
|
3081
|
-
),
|
|
3060
|
+
), Un = Ln ? (
|
|
3082
3061
|
// Native
|
|
3083
3062
|
function(t) {
|
|
3084
3063
|
return t.trimEnd();
|
|
@@ -3086,32 +3065,32 @@ var gt = On ? (
|
|
|
3086
3065
|
) : (
|
|
3087
3066
|
// Ponyfill
|
|
3088
3067
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3068
|
+
return t.replace(Pn, "");
|
|
3090
3069
|
}
|
|
3091
3070
|
);
|
|
3092
|
-
function
|
|
3071
|
+
function Yt(e, t) {
|
|
3093
3072
|
return new RegExp(e, t);
|
|
3094
3073
|
}
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3074
|
+
var ke;
|
|
3075
|
+
if (Fe) {
|
|
3076
|
+
var gt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
ke = function(t, r) {
|
|
3099
3078
|
var n;
|
|
3100
|
-
|
|
3101
|
-
var i =
|
|
3079
|
+
gt.lastIndex = r;
|
|
3080
|
+
var i = gt.exec(t);
|
|
3102
3081
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3103
3082
|
};
|
|
3104
3083
|
} else
|
|
3105
|
-
|
|
3084
|
+
ke = function(t, r) {
|
|
3106
3085
|
for (var n = []; ; ) {
|
|
3107
|
-
var i =
|
|
3108
|
-
if (i === void 0 ||
|
|
3086
|
+
var i = Jt(t, r);
|
|
3087
|
+
if (i === void 0 || qt(i) || jn(i))
|
|
3109
3088
|
break;
|
|
3110
3089
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3111
3090
|
}
|
|
3112
|
-
return
|
|
3091
|
+
return je.apply(void 0, n);
|
|
3113
3092
|
};
|
|
3114
|
-
var
|
|
3093
|
+
var Dn = (
|
|
3115
3094
|
/** @class */
|
|
3116
3095
|
function() {
|
|
3117
3096
|
function e(t, r) {
|
|
@@ -3135,14 +3114,14 @@ var Fn = (
|
|
|
3135
3114
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3136
3115
|
var s = this.clonePosition();
|
|
3137
3116
|
this.bump(), i.push({
|
|
3138
|
-
type:
|
|
3117
|
+
type: _.pound,
|
|
3139
3118
|
location: b(s, this.clonePosition())
|
|
3140
3119
|
});
|
|
3141
3120
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3142
3121
|
if (n)
|
|
3143
3122
|
break;
|
|
3144
3123
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3145
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3124
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3146
3125
|
var a = this.parseTag(t, r);
|
|
3147
3126
|
if (a.err)
|
|
3148
3127
|
return a;
|
|
@@ -3163,7 +3142,7 @@ var Fn = (
|
|
|
3163
3142
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3164
3143
|
return {
|
|
3165
3144
|
val: {
|
|
3166
|
-
type:
|
|
3145
|
+
type: _.literal,
|
|
3167
3146
|
value: "<".concat(i, "/>"),
|
|
3168
3147
|
location: b(n, this.clonePosition())
|
|
3169
3148
|
},
|
|
@@ -3175,12 +3154,12 @@ var Fn = (
|
|
|
3175
3154
|
return o;
|
|
3176
3155
|
var a = o.val, s = this.clonePosition();
|
|
3177
3156
|
if (this.bumpIf("</")) {
|
|
3178
|
-
if (this.isEOF() || !
|
|
3157
|
+
if (this.isEOF() || !We(this.char()))
|
|
3179
3158
|
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
3180
3159
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3181
3160
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3182
3161
|
val: {
|
|
3183
|
-
type:
|
|
3162
|
+
type: _.tag,
|
|
3184
3163
|
value: i,
|
|
3185
3164
|
children: a,
|
|
3186
3165
|
location: b(n, this.clonePosition())
|
|
@@ -3193,7 +3172,7 @@ var Fn = (
|
|
|
3193
3172
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3194
3173
|
}, e.prototype.parseTagName = function() {
|
|
3195
3174
|
var t = this.offset();
|
|
3196
|
-
for (this.bump(); !this.isEOF() &&
|
|
3175
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3197
3176
|
this.bump();
|
|
3198
3177
|
return this.message.slice(t, this.offset());
|
|
3199
3178
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3217,12 +3196,12 @@ var Fn = (
|
|
|
3217
3196
|
}
|
|
3218
3197
|
var l = b(n, this.clonePosition());
|
|
3219
3198
|
return {
|
|
3220
|
-
val: { type:
|
|
3199
|
+
val: { type: _.literal, value: i, location: l },
|
|
3221
3200
|
err: null
|
|
3222
3201
|
};
|
|
3223
3202
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3224
3203
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3225
|
-
!
|
|
3204
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3226
3205
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3227
3206
|
if (this.isEOF() || this.char() !== 39)
|
|
3228
3207
|
return null;
|
|
@@ -3256,12 +3235,12 @@ var Fn = (
|
|
|
3256
3235
|
r.push(n);
|
|
3257
3236
|
this.bump();
|
|
3258
3237
|
}
|
|
3259
|
-
return
|
|
3238
|
+
return je.apply(void 0, r);
|
|
3260
3239
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3261
3240
|
if (this.isEOF())
|
|
3262
3241
|
return null;
|
|
3263
3242
|
var n = this.char();
|
|
3264
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3243
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3265
3244
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3266
3245
|
var n = this.clonePosition();
|
|
3267
3246
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3277,7 +3256,7 @@ var Fn = (
|
|
|
3277
3256
|
case 125:
|
|
3278
3257
|
return this.bump(), {
|
|
3279
3258
|
val: {
|
|
3280
|
-
type:
|
|
3259
|
+
type: _.argument,
|
|
3281
3260
|
// value does not include the opening and closing braces.
|
|
3282
3261
|
value: i,
|
|
3283
3262
|
location: b(n, this.clonePosition())
|
|
@@ -3290,7 +3269,7 @@ var Fn = (
|
|
|
3290
3269
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3291
3270
|
}
|
|
3292
3271
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3293
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3272
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3294
3273
|
this.bumpTo(i);
|
|
3295
3274
|
var o = this.clonePosition(), a = b(t, o);
|
|
3296
3275
|
return { value: n, location: a };
|
|
@@ -3309,46 +3288,46 @@ var Fn = (
|
|
|
3309
3288
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3310
3289
|
if (c.err)
|
|
3311
3290
|
return c;
|
|
3312
|
-
var f =
|
|
3291
|
+
var f = Un(c.val);
|
|
3313
3292
|
if (f.length === 0)
|
|
3314
3293
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3315
|
-
var
|
|
3316
|
-
u = { style: f, styleLocation:
|
|
3294
|
+
var d = b(h, this.clonePosition());
|
|
3295
|
+
u = { style: f, styleLocation: d };
|
|
3317
3296
|
}
|
|
3318
|
-
var
|
|
3319
|
-
if (
|
|
3320
|
-
return
|
|
3321
|
-
var
|
|
3322
|
-
if (u &&
|
|
3323
|
-
var w =
|
|
3297
|
+
var v = this.tryParseArgumentClose(i);
|
|
3298
|
+
if (v.err)
|
|
3299
|
+
return v;
|
|
3300
|
+
var p = b(i, this.clonePosition());
|
|
3301
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3302
|
+
var w = $n(u.style.slice(2));
|
|
3324
3303
|
if (s === "number") {
|
|
3325
3304
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3326
3305
|
return c.err ? c : {
|
|
3327
|
-
val: { type:
|
|
3306
|
+
val: { type: _.number, value: n, location: p, style: c.val },
|
|
3328
3307
|
err: null
|
|
3329
3308
|
};
|
|
3330
3309
|
} else {
|
|
3331
3310
|
if (w.length === 0)
|
|
3332
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3333
|
-
var
|
|
3334
|
-
this.locale && (
|
|
3311
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, p);
|
|
3312
|
+
var R = w;
|
|
3313
|
+
this.locale && (R = Sn(w, this.locale));
|
|
3335
3314
|
var f = {
|
|
3336
|
-
type:
|
|
3337
|
-
pattern:
|
|
3315
|
+
type: z.dateTime,
|
|
3316
|
+
pattern: R,
|
|
3338
3317
|
location: u.styleLocation,
|
|
3339
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3340
|
-
},
|
|
3318
|
+
parsedOptions: this.shouldParseSkeletons ? gn(R) : {}
|
|
3319
|
+
}, B = s === "date" ? _.date : _.time;
|
|
3341
3320
|
return {
|
|
3342
|
-
val: { type:
|
|
3321
|
+
val: { type: B, value: n, location: p, style: f },
|
|
3343
3322
|
err: null
|
|
3344
3323
|
};
|
|
3345
3324
|
}
|
|
3346
3325
|
}
|
|
3347
3326
|
return {
|
|
3348
3327
|
val: {
|
|
3349
|
-
type: s === "number" ?
|
|
3328
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3350
3329
|
value: n,
|
|
3351
|
-
location:
|
|
3330
|
+
location: p,
|
|
3352
3331
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3353
3332
|
},
|
|
3354
3333
|
err: null
|
|
@@ -3359,41 +3338,41 @@ var Fn = (
|
|
|
3359
3338
|
case "select": {
|
|
3360
3339
|
var T = this.clonePosition();
|
|
3361
3340
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3362
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T,
|
|
3341
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, g({}, T)));
|
|
3363
3342
|
this.bumpSpace();
|
|
3364
|
-
var
|
|
3365
|
-
if (s !== "select" &&
|
|
3343
|
+
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3344
|
+
if (s !== "select" && $.value === "offset") {
|
|
3366
3345
|
if (!this.bumpIf(":"))
|
|
3367
3346
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3368
3347
|
this.bumpSpace();
|
|
3369
3348
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3370
3349
|
if (c.err)
|
|
3371
3350
|
return c;
|
|
3372
|
-
this.bumpSpace(),
|
|
3351
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
|
|
3373
3352
|
}
|
|
3374
|
-
var D = this.tryParsePluralOrSelectOptions(t, s, r,
|
|
3353
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, r, $);
|
|
3375
3354
|
if (D.err)
|
|
3376
3355
|
return D;
|
|
3377
|
-
var
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3380
|
-
var
|
|
3356
|
+
var v = this.tryParseArgumentClose(i);
|
|
3357
|
+
if (v.err)
|
|
3358
|
+
return v;
|
|
3359
|
+
var y = b(i, this.clonePosition());
|
|
3381
3360
|
return s === "select" ? {
|
|
3382
3361
|
val: {
|
|
3383
|
-
type:
|
|
3362
|
+
type: _.select,
|
|
3384
3363
|
value: n,
|
|
3385
|
-
options:
|
|
3386
|
-
location:
|
|
3364
|
+
options: bt(D.val),
|
|
3365
|
+
location: y
|
|
3387
3366
|
},
|
|
3388
3367
|
err: null
|
|
3389
3368
|
} : {
|
|
3390
3369
|
val: {
|
|
3391
|
-
type:
|
|
3370
|
+
type: _.plural,
|
|
3392
3371
|
value: n,
|
|
3393
|
-
options:
|
|
3394
|
-
offset:
|
|
3372
|
+
options: bt(D.val),
|
|
3373
|
+
offset: A,
|
|
3395
3374
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3396
|
-
location:
|
|
3375
|
+
location: y
|
|
3397
3376
|
},
|
|
3398
3377
|
err: null
|
|
3399
3378
|
};
|
|
@@ -3441,16 +3420,16 @@ var Fn = (
|
|
|
3441
3420
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3442
3421
|
var n = [];
|
|
3443
3422
|
try {
|
|
3444
|
-
n =
|
|
3423
|
+
n = vn(t);
|
|
3445
3424
|
} catch {
|
|
3446
3425
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3447
3426
|
}
|
|
3448
3427
|
return {
|
|
3449
3428
|
val: {
|
|
3450
|
-
type:
|
|
3429
|
+
type: z.number,
|
|
3451
3430
|
tokens: n,
|
|
3452
3431
|
location: r,
|
|
3453
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3432
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3454
3433
|
},
|
|
3455
3434
|
err: null
|
|
3456
3435
|
};
|
|
@@ -3469,20 +3448,20 @@ var Fn = (
|
|
|
3469
3448
|
if (l.has(u))
|
|
3470
3449
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3471
3450
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3472
|
-
var
|
|
3451
|
+
var d = this.clonePosition();
|
|
3473
3452
|
if (!this.bumpIf("{"))
|
|
3474
3453
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3475
|
-
var
|
|
3476
|
-
if (
|
|
3477
|
-
return
|
|
3478
|
-
var
|
|
3479
|
-
if (
|
|
3480
|
-
return
|
|
3454
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3455
|
+
if (v.err)
|
|
3456
|
+
return v;
|
|
3457
|
+
var p = this.tryParseArgumentClose(d);
|
|
3458
|
+
if (p.err)
|
|
3459
|
+
return p;
|
|
3481
3460
|
s.push([
|
|
3482
3461
|
u,
|
|
3483
3462
|
{
|
|
3484
|
-
value:
|
|
3485
|
-
location: b(
|
|
3463
|
+
value: v.val,
|
|
3464
|
+
location: b(d, this.clonePosition())
|
|
3486
3465
|
}
|
|
3487
3466
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3488
3467
|
}
|
|
@@ -3498,7 +3477,7 @@ var Fn = (
|
|
|
3498
3477
|
break;
|
|
3499
3478
|
}
|
|
3500
3479
|
var l = b(i, this.clonePosition());
|
|
3501
|
-
return o ? (a *= n,
|
|
3480
|
+
return o ? (a *= n, Mn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3502
3481
|
}, e.prototype.offset = function() {
|
|
3503
3482
|
return this.position.offset;
|
|
3504
3483
|
}, e.prototype.isEOF = function() {
|
|
@@ -3513,7 +3492,7 @@ var Fn = (
|
|
|
3513
3492
|
var t = this.position.offset;
|
|
3514
3493
|
if (t >= this.message.length)
|
|
3515
3494
|
throw Error("out of bound");
|
|
3516
|
-
var r =
|
|
3495
|
+
var r = Jt(this.message, t);
|
|
3517
3496
|
if (r === void 0)
|
|
3518
3497
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3519
3498
|
return r;
|
|
@@ -3532,7 +3511,7 @@ var Fn = (
|
|
|
3532
3511
|
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);
|
|
3533
3512
|
}
|
|
3534
3513
|
}, e.prototype.bumpIf = function(t) {
|
|
3535
|
-
if (
|
|
3514
|
+
if (mt(this.message, t, this.offset())) {
|
|
3536
3515
|
for (var r = 0; r < t.length; r++)
|
|
3537
3516
|
this.bump();
|
|
3538
3517
|
return !0;
|
|
@@ -3554,7 +3533,7 @@ var Fn = (
|
|
|
3554
3533
|
break;
|
|
3555
3534
|
}
|
|
3556
3535
|
}, e.prototype.bumpSpace = function() {
|
|
3557
|
-
for (; !this.isEOF() &&
|
|
3536
|
+
for (; !this.isEOF() && qt(this.char()); )
|
|
3558
3537
|
this.bump();
|
|
3559
3538
|
}, e.prototype.peek = function() {
|
|
3560
3539
|
if (this.isEOF())
|
|
@@ -3564,47 +3543,47 @@ var Fn = (
|
|
|
3564
3543
|
}, e;
|
|
3565
3544
|
}()
|
|
3566
3545
|
);
|
|
3567
|
-
function
|
|
3546
|
+
function We(e) {
|
|
3568
3547
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3569
3548
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3549
|
+
function Gn(e) {
|
|
3550
|
+
return We(e) || e === 47;
|
|
3572
3551
|
}
|
|
3573
|
-
function
|
|
3552
|
+
function Fn(e) {
|
|
3574
3553
|
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;
|
|
3575
3554
|
}
|
|
3576
|
-
function
|
|
3555
|
+
function qt(e) {
|
|
3577
3556
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3578
3557
|
}
|
|
3579
|
-
function
|
|
3558
|
+
function jn(e) {
|
|
3580
3559
|
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;
|
|
3581
3560
|
}
|
|
3582
|
-
function
|
|
3561
|
+
function Ve(e) {
|
|
3583
3562
|
e.forEach(function(t) {
|
|
3584
|
-
if (delete t.location,
|
|
3563
|
+
if (delete t.location, jt(t) || kt(t))
|
|
3585
3564
|
for (var r in t.options)
|
|
3586
|
-
delete t.options[r].location,
|
|
3565
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3587
3566
|
else
|
|
3588
|
-
|
|
3567
|
+
Dt(t) && Vt(t.style) || (Gt(t) || Ft(t)) && Ge(t.style) ? delete t.style.location : Wt(t) && Ve(t.children);
|
|
3589
3568
|
});
|
|
3590
3569
|
}
|
|
3591
|
-
function
|
|
3592
|
-
t === void 0 && (t = {}), t =
|
|
3593
|
-
var r = new
|
|
3570
|
+
function kn(e, t) {
|
|
3571
|
+
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3572
|
+
var r = new Dn(e, t).parse();
|
|
3594
3573
|
if (r.err) {
|
|
3595
3574
|
var n = SyntaxError(m[r.err.kind]);
|
|
3596
3575
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3597
3576
|
}
|
|
3598
|
-
return t?.captureLocation ||
|
|
3577
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3599
3578
|
}
|
|
3600
|
-
var
|
|
3579
|
+
var Z;
|
|
3601
3580
|
(function(e) {
|
|
3602
3581
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3603
|
-
})(
|
|
3604
|
-
var
|
|
3582
|
+
})(Z || (Z = {}));
|
|
3583
|
+
var _e = (
|
|
3605
3584
|
/** @class */
|
|
3606
3585
|
function(e) {
|
|
3607
|
-
|
|
3586
|
+
N(t, e);
|
|
3608
3587
|
function t(r, n, i) {
|
|
3609
3588
|
var o = e.call(this, r) || this;
|
|
3610
3589
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3613,48 +3592,48 @@ var xe = (
|
|
|
3613
3592
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3614
3593
|
}, t;
|
|
3615
3594
|
}(Error)
|
|
3616
|
-
),
|
|
3595
|
+
), yt = (
|
|
3617
3596
|
/** @class */
|
|
3618
3597
|
function(e) {
|
|
3619
|
-
|
|
3598
|
+
N(t, e);
|
|
3620
3599
|
function t(r, n, i, o) {
|
|
3621
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3600
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3622
3601
|
}
|
|
3623
3602
|
return t;
|
|
3624
|
-
}(
|
|
3625
|
-
),
|
|
3603
|
+
}(_e)
|
|
3604
|
+
), Wn = (
|
|
3626
3605
|
/** @class */
|
|
3627
3606
|
function(e) {
|
|
3628
|
-
|
|
3607
|
+
N(t, e);
|
|
3629
3608
|
function t(r, n, i) {
|
|
3630
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3609
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3631
3610
|
}
|
|
3632
3611
|
return t;
|
|
3633
|
-
}(
|
|
3634
|
-
),
|
|
3612
|
+
}(_e)
|
|
3613
|
+
), Vn = (
|
|
3635
3614
|
/** @class */
|
|
3636
3615
|
function(e) {
|
|
3637
|
-
|
|
3616
|
+
N(t, e);
|
|
3638
3617
|
function t(r, n) {
|
|
3639
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3618
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3640
3619
|
}
|
|
3641
3620
|
return t;
|
|
3642
|
-
}(
|
|
3621
|
+
}(_e)
|
|
3643
3622
|
), S;
|
|
3644
3623
|
(function(e) {
|
|
3645
3624
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3646
3625
|
})(S || (S = {}));
|
|
3647
|
-
function
|
|
3626
|
+
function Xn(e) {
|
|
3648
3627
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3649
3628
|
var n = t[t.length - 1];
|
|
3650
3629
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3651
3630
|
}, []);
|
|
3652
3631
|
}
|
|
3653
|
-
function
|
|
3632
|
+
function zn(e) {
|
|
3654
3633
|
return typeof e == "function";
|
|
3655
3634
|
}
|
|
3656
|
-
function
|
|
3657
|
-
if (e.length === 1 &&
|
|
3635
|
+
function pe(e, t, r, n, i, o, a) {
|
|
3636
|
+
if (e.length === 1 && ct(e[0]))
|
|
3658
3637
|
return [
|
|
3659
3638
|
{
|
|
3660
3639
|
type: S.literal,
|
|
@@ -3663,14 +3642,14 @@ function de(e, t, r, n, i, o, a) {
|
|
|
3663
3642
|
];
|
|
3664
3643
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3665
3644
|
var h = u[l];
|
|
3666
|
-
if (
|
|
3645
|
+
if (ct(h)) {
|
|
3667
3646
|
s.push({
|
|
3668
3647
|
type: S.literal,
|
|
3669
3648
|
value: h.value
|
|
3670
3649
|
});
|
|
3671
3650
|
continue;
|
|
3672
3651
|
}
|
|
3673
|
-
if (
|
|
3652
|
+
if (mn(h)) {
|
|
3674
3653
|
typeof o == "number" && s.push({
|
|
3675
3654
|
type: S.literal,
|
|
3676
3655
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3679,89 +3658,89 @@ function de(e, t, r, n, i, o, a) {
|
|
|
3679
3658
|
}
|
|
3680
3659
|
var c = h.value;
|
|
3681
3660
|
if (!(i && c in i))
|
|
3682
|
-
throw new
|
|
3661
|
+
throw new Vn(c, a);
|
|
3683
3662
|
var f = i[c];
|
|
3684
|
-
if (
|
|
3663
|
+
if (pn(h)) {
|
|
3685
3664
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3686
3665
|
type: typeof f == "string" ? S.literal : S.object,
|
|
3687
3666
|
value: f
|
|
3688
3667
|
});
|
|
3689
3668
|
continue;
|
|
3690
3669
|
}
|
|
3691
|
-
if (
|
|
3692
|
-
var
|
|
3670
|
+
if (Gt(h)) {
|
|
3671
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3693
3672
|
s.push({
|
|
3694
3673
|
type: S.literal,
|
|
3695
|
-
value: r.getDateTimeFormat(t,
|
|
3674
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3696
3675
|
});
|
|
3697
3676
|
continue;
|
|
3698
3677
|
}
|
|
3699
|
-
if (
|
|
3700
|
-
var
|
|
3678
|
+
if (Ft(h)) {
|
|
3679
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3701
3680
|
s.push({
|
|
3702
3681
|
type: S.literal,
|
|
3703
|
-
value: r.getDateTimeFormat(t,
|
|
3682
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3704
3683
|
});
|
|
3705
3684
|
continue;
|
|
3706
3685
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3709
|
-
|
|
3686
|
+
if (Dt(h)) {
|
|
3687
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Vt(h.style) ? h.style.parsedOptions : void 0;
|
|
3688
|
+
d && d.scale && (f = f * (d.scale || 1)), s.push({
|
|
3710
3689
|
type: S.literal,
|
|
3711
|
-
value: r.getNumberFormat(t,
|
|
3690
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3712
3691
|
});
|
|
3713
3692
|
continue;
|
|
3714
3693
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3717
|
-
if (!
|
|
3718
|
-
throw new
|
|
3719
|
-
var
|
|
3720
|
-
return
|
|
3694
|
+
if (Wt(h)) {
|
|
3695
|
+
var v = h.children, p = h.value, w = i[p];
|
|
3696
|
+
if (!zn(w))
|
|
3697
|
+
throw new Wn(p, "function", a);
|
|
3698
|
+
var R = pe(v, t, r, n, i, o), B = w(R.map(function(A) {
|
|
3699
|
+
return A.value;
|
|
3721
3700
|
}));
|
|
3722
|
-
Array.isArray(
|
|
3701
|
+
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(A) {
|
|
3723
3702
|
return {
|
|
3724
|
-
type: typeof
|
|
3725
|
-
value:
|
|
3703
|
+
type: typeof A == "string" ? S.literal : S.object,
|
|
3704
|
+
value: A
|
|
3726
3705
|
};
|
|
3727
3706
|
}));
|
|
3728
3707
|
}
|
|
3729
|
-
if (
|
|
3708
|
+
if (jt(h)) {
|
|
3730
3709
|
var T = h.options[f] || h.options.other;
|
|
3731
3710
|
if (!T)
|
|
3732
|
-
throw new
|
|
3733
|
-
s.push.apply(s,
|
|
3711
|
+
throw new yt(h.value, f, Object.keys(h.options), a);
|
|
3712
|
+
s.push.apply(s, pe(T.value, t, r, n, i));
|
|
3734
3713
|
continue;
|
|
3735
3714
|
}
|
|
3736
|
-
if (
|
|
3715
|
+
if (kt(h)) {
|
|
3737
3716
|
var T = h.options["=".concat(f)];
|
|
3738
3717
|
if (!T) {
|
|
3739
3718
|
if (!Intl.PluralRules)
|
|
3740
|
-
throw new
|
|
3719
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3741
3720
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3742
|
-
`,
|
|
3743
|
-
var
|
|
3744
|
-
T = h.options[
|
|
3721
|
+
`, Z.MISSING_INTL_API, a);
|
|
3722
|
+
var $ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3723
|
+
T = h.options[$] || h.options.other;
|
|
3745
3724
|
}
|
|
3746
3725
|
if (!T)
|
|
3747
|
-
throw new
|
|
3748
|
-
s.push.apply(s,
|
|
3726
|
+
throw new yt(h.value, f, Object.keys(h.options), a);
|
|
3727
|
+
s.push.apply(s, pe(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3749
3728
|
continue;
|
|
3750
3729
|
}
|
|
3751
3730
|
}
|
|
3752
|
-
return
|
|
3731
|
+
return Xn(s);
|
|
3753
3732
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return t ?
|
|
3756
|
-
return r[n] =
|
|
3733
|
+
function Zn(e, t) {
|
|
3734
|
+
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3735
|
+
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3757
3736
|
}, {})) : e;
|
|
3758
3737
|
}
|
|
3759
|
-
function
|
|
3738
|
+
function Qn(e, t) {
|
|
3760
3739
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3761
|
-
return r[n] =
|
|
3762
|
-
},
|
|
3740
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3741
|
+
}, g({}, e)) : e;
|
|
3763
3742
|
}
|
|
3764
|
-
function
|
|
3743
|
+
function Ae(e) {
|
|
3765
3744
|
return {
|
|
3766
3745
|
create: function() {
|
|
3767
3746
|
return {
|
|
@@ -3775,39 +3754,39 @@ function Ie(e) {
|
|
|
3775
3754
|
}
|
|
3776
3755
|
};
|
|
3777
3756
|
}
|
|
3778
|
-
function
|
|
3757
|
+
function Jn(e) {
|
|
3779
3758
|
return e === void 0 && (e = {
|
|
3780
3759
|
number: {},
|
|
3781
3760
|
dateTime: {},
|
|
3782
3761
|
pluralRules: {}
|
|
3783
3762
|
}), {
|
|
3784
|
-
getNumberFormat:
|
|
3763
|
+
getNumberFormat: He(function() {
|
|
3785
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3765
|
r[n] = arguments[n];
|
|
3787
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3766
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3788
3767
|
}, {
|
|
3789
|
-
cache:
|
|
3790
|
-
strategy:
|
|
3768
|
+
cache: Ae(e.number),
|
|
3769
|
+
strategy: Pe.variadic
|
|
3791
3770
|
}),
|
|
3792
|
-
getDateTimeFormat:
|
|
3771
|
+
getDateTimeFormat: He(function() {
|
|
3793
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3773
|
r[n] = arguments[n];
|
|
3795
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3774
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3796
3775
|
}, {
|
|
3797
|
-
cache:
|
|
3798
|
-
strategy:
|
|
3776
|
+
cache: Ae(e.dateTime),
|
|
3777
|
+
strategy: Pe.variadic
|
|
3799
3778
|
}),
|
|
3800
|
-
getPluralRules:
|
|
3779
|
+
getPluralRules: He(function() {
|
|
3801
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3802
3781
|
r[n] = arguments[n];
|
|
3803
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3782
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3804
3783
|
}, {
|
|
3805
|
-
cache:
|
|
3806
|
-
strategy:
|
|
3784
|
+
cache: Ae(e.pluralRules),
|
|
3785
|
+
strategy: Pe.variadic
|
|
3807
3786
|
})
|
|
3808
3787
|
};
|
|
3809
3788
|
}
|
|
3810
|
-
var
|
|
3789
|
+
var Yn = (
|
|
3811
3790
|
/** @class */
|
|
3812
3791
|
function() {
|
|
3813
3792
|
function e(t, r, n, i) {
|
|
@@ -3826,7 +3805,7 @@ var Kn = (
|
|
|
3826
3805
|
}, []);
|
|
3827
3806
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3828
3807
|
}, this.formatToParts = function(l) {
|
|
3829
|
-
return
|
|
3808
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3830
3809
|
}, this.resolvedOptions = function() {
|
|
3831
3810
|
var l;
|
|
3832
3811
|
return {
|
|
@@ -3839,13 +3818,13 @@ var Kn = (
|
|
|
3839
3818
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3840
3819
|
var a = i || {};
|
|
3841
3820
|
a.formatters;
|
|
3842
|
-
var s =
|
|
3843
|
-
this.ast = e.__parse(t,
|
|
3821
|
+
var s = Ar(a, ["formatters"]);
|
|
3822
|
+
this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
|
|
3844
3823
|
} else
|
|
3845
3824
|
this.ast = t;
|
|
3846
3825
|
if (!Array.isArray(this.ast))
|
|
3847
3826
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3848
|
-
this.formats =
|
|
3827
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3849
3828
|
}
|
|
3850
3829
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3851
3830
|
get: function() {
|
|
@@ -3858,7 +3837,7 @@ var Kn = (
|
|
|
3858
3837
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3859
3838
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3860
3839
|
}
|
|
3861
|
-
}, e.__parse =
|
|
3840
|
+
}, e.__parse = kn, e.formats = {
|
|
3862
3841
|
number: {
|
|
3863
3842
|
integer: {
|
|
3864
3843
|
maximumFractionDigits: 0
|
|
@@ -3919,7 +3898,7 @@ var Kn = (
|
|
|
3919
3898
|
}, e;
|
|
3920
3899
|
}()
|
|
3921
3900
|
);
|
|
3922
|
-
function
|
|
3901
|
+
function qn(e, t) {
|
|
3923
3902
|
if (t == null)
|
|
3924
3903
|
return;
|
|
3925
3904
|
if (t in e)
|
|
@@ -3940,92 +3919,92 @@ function ei(e, t) {
|
|
|
3940
3919
|
n = void 0;
|
|
3941
3920
|
return n;
|
|
3942
3921
|
}
|
|
3943
|
-
const M = {},
|
|
3922
|
+
const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
|
|
3944
3923
|
if (t == null)
|
|
3945
3924
|
return;
|
|
3946
3925
|
if (t in M && e in M[t])
|
|
3947
3926
|
return M[t][e];
|
|
3948
|
-
const r =
|
|
3927
|
+
const r = Ee(t);
|
|
3949
3928
|
for (let n = 0; n < r.length; n++) {
|
|
3950
|
-
const i = r[n], o =
|
|
3929
|
+
const i = r[n], o = ti(i, e);
|
|
3951
3930
|
if (o)
|
|
3952
|
-
return
|
|
3931
|
+
return Kn(e, t, o);
|
|
3953
3932
|
}
|
|
3954
3933
|
};
|
|
3955
|
-
let
|
|
3956
|
-
const ue =
|
|
3957
|
-
function
|
|
3958
|
-
return
|
|
3934
|
+
let qe;
|
|
3935
|
+
const ue = ve({});
|
|
3936
|
+
function ei(e) {
|
|
3937
|
+
return qe[e] || null;
|
|
3959
3938
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return e in
|
|
3939
|
+
function er(e) {
|
|
3940
|
+
return e in qe;
|
|
3962
3941
|
}
|
|
3963
|
-
function
|
|
3964
|
-
if (!
|
|
3942
|
+
function ti(e, t) {
|
|
3943
|
+
if (!er(e))
|
|
3965
3944
|
return null;
|
|
3966
|
-
const r =
|
|
3967
|
-
return
|
|
3945
|
+
const r = ei(e);
|
|
3946
|
+
return qn(r, t);
|
|
3968
3947
|
}
|
|
3969
|
-
function
|
|
3948
|
+
function ri(e) {
|
|
3970
3949
|
if (e == null)
|
|
3971
3950
|
return;
|
|
3972
|
-
const t =
|
|
3951
|
+
const t = Ee(e);
|
|
3973
3952
|
for (let r = 0; r < t.length; r++) {
|
|
3974
3953
|
const n = t[r];
|
|
3975
|
-
if (
|
|
3954
|
+
if (er(n))
|
|
3976
3955
|
return n;
|
|
3977
3956
|
}
|
|
3978
3957
|
}
|
|
3979
|
-
function
|
|
3958
|
+
function tr(e, ...t) {
|
|
3980
3959
|
delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3981
3960
|
}
|
|
3982
|
-
|
|
3961
|
+
Y(
|
|
3983
3962
|
[ue],
|
|
3984
3963
|
([e]) => Object.keys(e)
|
|
3985
3964
|
);
|
|
3986
|
-
ue.subscribe((e) =>
|
|
3965
|
+
ue.subscribe((e) => qe = e);
|
|
3987
3966
|
const me = {};
|
|
3988
|
-
function
|
|
3967
|
+
function ni(e, t) {
|
|
3989
3968
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3990
3969
|
}
|
|
3991
|
-
function
|
|
3970
|
+
function rr(e) {
|
|
3992
3971
|
return me[e];
|
|
3993
3972
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return
|
|
3996
|
-
const r =
|
|
3973
|
+
function ii(e) {
|
|
3974
|
+
return Ee(e).map((t) => {
|
|
3975
|
+
const r = rr(t);
|
|
3997
3976
|
return [t, r ? [...r] : []];
|
|
3998
3977
|
}).filter(([, t]) => t.length > 0);
|
|
3999
3978
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return e == null ? !1 :
|
|
3979
|
+
function Xe(e) {
|
|
3980
|
+
return e == null ? !1 : Ee(e).some(
|
|
4002
3981
|
(t) => {
|
|
4003
3982
|
var r;
|
|
4004
|
-
return (r =
|
|
3983
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
4005
3984
|
}
|
|
4006
3985
|
);
|
|
4007
3986
|
}
|
|
4008
|
-
function
|
|
3987
|
+
function oi(e, t) {
|
|
4009
3988
|
return Promise.all(
|
|
4010
|
-
t.map((n) => (
|
|
4011
|
-
).then((n) =>
|
|
4012
|
-
}
|
|
4013
|
-
const
|
|
4014
|
-
function
|
|
4015
|
-
if (!
|
|
4016
|
-
return e in
|
|
4017
|
-
const t =
|
|
4018
|
-
return
|
|
3989
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3990
|
+
).then((n) => tr(e, ...n));
|
|
3991
|
+
}
|
|
3992
|
+
const ee = {};
|
|
3993
|
+
function nr(e) {
|
|
3994
|
+
if (!Xe(e))
|
|
3995
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
3996
|
+
const t = ii(e);
|
|
3997
|
+
return ee[e] = Promise.all(
|
|
4019
3998
|
t.map(
|
|
4020
|
-
([r, n]) =>
|
|
3999
|
+
([r, n]) => oi(r, n)
|
|
4021
4000
|
)
|
|
4022
4001
|
).then(() => {
|
|
4023
|
-
if (
|
|
4024
|
-
return
|
|
4025
|
-
delete
|
|
4026
|
-
}),
|
|
4002
|
+
if (Xe(e))
|
|
4003
|
+
return nr(e);
|
|
4004
|
+
delete ee[e];
|
|
4005
|
+
}), ee[e];
|
|
4027
4006
|
}
|
|
4028
|
-
const
|
|
4007
|
+
const si = {
|
|
4029
4008
|
number: {
|
|
4030
4009
|
scientific: { notation: "scientific" },
|
|
4031
4010
|
engineering: { notation: "engineering" },
|
|
@@ -4054,135 +4033,135 @@ const ui = {
|
|
|
4054
4033
|
timeZoneName: "short"
|
|
4055
4034
|
}
|
|
4056
4035
|
}
|
|
4057
|
-
},
|
|
4036
|
+
}, ai = {
|
|
4058
4037
|
fallbackLocale: null,
|
|
4059
4038
|
loadingDelay: 200,
|
|
4060
|
-
formats:
|
|
4039
|
+
formats: si,
|
|
4061
4040
|
warnOnMissingMessages: !0,
|
|
4062
4041
|
handleMissingMessage: void 0,
|
|
4063
4042
|
ignoreTag: !0
|
|
4064
|
-
},
|
|
4065
|
-
function
|
|
4066
|
-
return
|
|
4043
|
+
}, ui = ai;
|
|
4044
|
+
function Q() {
|
|
4045
|
+
return ui;
|
|
4067
4046
|
}
|
|
4068
|
-
const
|
|
4069
|
-
var
|
|
4047
|
+
const Oe = ve(!1);
|
|
4048
|
+
var hi = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
4070
4049
|
for (var r in t || (t = {}))
|
|
4071
|
-
|
|
4072
|
-
if (
|
|
4073
|
-
for (var r of
|
|
4074
|
-
|
|
4050
|
+
fi.call(t, r) && _t(e, r, t[r]);
|
|
4051
|
+
if (vt)
|
|
4052
|
+
for (var r of vt(t))
|
|
4053
|
+
di.call(t, r) && _t(e, r, t[r]);
|
|
4075
4054
|
return e;
|
|
4076
|
-
},
|
|
4077
|
-
let
|
|
4078
|
-
const
|
|
4079
|
-
function
|
|
4055
|
+
}, mi = (e, t) => li(e, ci(t));
|
|
4056
|
+
let ze;
|
|
4057
|
+
const be = ve(null);
|
|
4058
|
+
function Et(e) {
|
|
4080
4059
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4081
4060
|
}
|
|
4082
|
-
function
|
|
4083
|
-
const r =
|
|
4084
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4061
|
+
function Ee(e, t = Q().fallbackLocale) {
|
|
4062
|
+
const r = Et(e);
|
|
4063
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4085
4064
|
}
|
|
4086
4065
|
function U() {
|
|
4087
|
-
return
|
|
4066
|
+
return ze ?? void 0;
|
|
4088
4067
|
}
|
|
4089
|
-
|
|
4090
|
-
|
|
4068
|
+
be.subscribe((e) => {
|
|
4069
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4091
4070
|
});
|
|
4092
|
-
const
|
|
4093
|
-
if (e &&
|
|
4094
|
-
const { loadingDelay: t } =
|
|
4071
|
+
const bi = (e) => {
|
|
4072
|
+
if (e && ri(e) && Xe(e)) {
|
|
4073
|
+
const { loadingDelay: t } = Q();
|
|
4095
4074
|
let r;
|
|
4096
4075
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4097
|
-
() =>
|
|
4076
|
+
() => Oe.set(!0),
|
|
4098
4077
|
t
|
|
4099
|
-
) :
|
|
4100
|
-
|
|
4078
|
+
) : Oe.set(!0), nr(e).then(() => {
|
|
4079
|
+
be.set(e);
|
|
4101
4080
|
}).finally(() => {
|
|
4102
|
-
clearTimeout(r),
|
|
4081
|
+
clearTimeout(r), Oe.set(!1);
|
|
4103
4082
|
});
|
|
4104
4083
|
}
|
|
4105
|
-
return
|
|
4106
|
-
},
|
|
4107
|
-
set:
|
|
4108
|
-
}),
|
|
4084
|
+
return be.set(e);
|
|
4085
|
+
}, q = mi(pi({}, be), {
|
|
4086
|
+
set: bi
|
|
4087
|
+
}), xe = (e) => {
|
|
4109
4088
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4110
4089
|
return (n) => {
|
|
4111
4090
|
const i = JSON.stringify(n);
|
|
4112
4091
|
return i in t ? t[i] : t[i] = e(n);
|
|
4113
4092
|
};
|
|
4114
4093
|
};
|
|
4115
|
-
var
|
|
4094
|
+
var gi = Object.defineProperty, ge = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4116
4095
|
for (var r in t || (t = {}))
|
|
4117
|
-
|
|
4118
|
-
if (
|
|
4119
|
-
for (var r of
|
|
4120
|
-
|
|
4096
|
+
ir.call(t, r) && xt(e, r, t[r]);
|
|
4097
|
+
if (ge)
|
|
4098
|
+
for (var r of ge(t))
|
|
4099
|
+
or.call(t, r) && xt(e, r, t[r]);
|
|
4121
4100
|
return e;
|
|
4122
|
-
},
|
|
4101
|
+
}, K = (e, t) => {
|
|
4123
4102
|
var r = {};
|
|
4124
4103
|
for (var n in e)
|
|
4125
|
-
|
|
4126
|
-
if (e != null &&
|
|
4127
|
-
for (var n of
|
|
4128
|
-
t.indexOf(n) < 0 &&
|
|
4104
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4105
|
+
if (e != null && ge)
|
|
4106
|
+
for (var n of ge(e))
|
|
4107
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4129
4108
|
return r;
|
|
4130
4109
|
};
|
|
4131
|
-
const
|
|
4132
|
-
const { formats: r } =
|
|
4110
|
+
const oe = (e, t) => {
|
|
4111
|
+
const { formats: r } = Q();
|
|
4133
4112
|
if (e in r && t in r[e])
|
|
4134
4113
|
return r[e][t];
|
|
4135
4114
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4136
|
-
},
|
|
4115
|
+
}, yi = xe(
|
|
4137
4116
|
(e) => {
|
|
4138
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4117
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4139
4118
|
if (r == null)
|
|
4140
4119
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4141
|
-
return n && (i =
|
|
4120
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4142
4121
|
}
|
|
4143
|
-
),
|
|
4122
|
+
), vi = xe(
|
|
4144
4123
|
(e) => {
|
|
4145
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4124
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4146
4125
|
if (r == null)
|
|
4147
4126
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4148
|
-
return n ? i =
|
|
4127
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4149
4128
|
}
|
|
4150
|
-
),
|
|
4129
|
+
), _i = xe(
|
|
4151
4130
|
(e) => {
|
|
4152
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4131
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4153
4132
|
if (r == null)
|
|
4154
4133
|
throw new Error(
|
|
4155
4134
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4156
4135
|
);
|
|
4157
|
-
return n ? i =
|
|
4136
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4158
4137
|
}
|
|
4159
|
-
),
|
|
4138
|
+
), Ei = (e = {}) => {
|
|
4160
4139
|
var t = e, {
|
|
4161
4140
|
locale: r = U()
|
|
4162
|
-
} = t, n =
|
|
4141
|
+
} = t, n = K(t, [
|
|
4163
4142
|
"locale"
|
|
4164
4143
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4144
|
+
return yi(Ke({ locale: r }, n));
|
|
4145
|
+
}, xi = (e = {}) => {
|
|
4167
4146
|
var t = e, {
|
|
4168
4147
|
locale: r = U()
|
|
4169
|
-
} = t, n =
|
|
4148
|
+
} = t, n = K(t, [
|
|
4170
4149
|
"locale"
|
|
4171
4150
|
]);
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4151
|
+
return vi(Ke({ locale: r }, n));
|
|
4152
|
+
}, wi = (e = {}) => {
|
|
4174
4153
|
var t = e, {
|
|
4175
4154
|
locale: r = U()
|
|
4176
|
-
} = t, n =
|
|
4155
|
+
} = t, n = K(t, [
|
|
4177
4156
|
"locale"
|
|
4178
4157
|
]);
|
|
4179
|
-
return
|
|
4180
|
-
},
|
|
4158
|
+
return _i(Ke({ locale: r }, n));
|
|
4159
|
+
}, Si = xe(
|
|
4181
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4182
|
-
(e, t = U()) => new
|
|
4183
|
-
ignoreTag:
|
|
4161
|
+
(e, t = U()) => new Yn(e, t, Q().formats, {
|
|
4162
|
+
ignoreTag: Q().ignoreTag
|
|
4184
4163
|
})
|
|
4185
|
-
),
|
|
4164
|
+
), Ti = (e, t = {}) => {
|
|
4186
4165
|
var r, n, i, o;
|
|
4187
4166
|
let a = t;
|
|
4188
4167
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4195,9 +4174,9 @@ const ie = (e, t) => {
|
|
|
4195
4174
|
throw new Error(
|
|
4196
4175
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4197
4176
|
);
|
|
4198
|
-
let h =
|
|
4177
|
+
let h = Kt(e, l);
|
|
4199
4178
|
if (!h)
|
|
4200
|
-
h = (o = (i = (n = (r =
|
|
4179
|
+
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;
|
|
4201
4180
|
else if (typeof h != "string")
|
|
4202
4181
|
return console.warn(
|
|
4203
4182
|
`[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.`
|
|
@@ -4206,7 +4185,7 @@ const ie = (e, t) => {
|
|
|
4206
4185
|
return h;
|
|
4207
4186
|
let c = h;
|
|
4208
4187
|
try {
|
|
4209
|
-
c =
|
|
4188
|
+
c = Si(h, l).format(s);
|
|
4210
4189
|
} catch (f) {
|
|
4211
4190
|
f instanceof Error && console.warn(
|
|
4212
4191
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4214,20 +4193,20 @@ const ie = (e, t) => {
|
|
|
4214
4193
|
);
|
|
4215
4194
|
}
|
|
4216
4195
|
return c;
|
|
4217
|
-
},
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4196
|
+
}, Hi = (e, t) => wi(t).format(e), Pi = (e, t) => xi(t).format(e), Bi = (e, t) => Ei(t).format(e), Ai = (e, t = U()) => Kt(e, t), Oi = Y([q, ue], () => Ti);
|
|
4197
|
+
Y([q], () => Hi);
|
|
4198
|
+
Y([q], () => Pi);
|
|
4199
|
+
Y([q], () => Bi);
|
|
4200
|
+
Y([q, ue], () => Ai);
|
|
4222
4201
|
window.emWidgets = { topic: kr };
|
|
4223
|
-
const
|
|
4224
|
-
function
|
|
4225
|
-
|
|
4202
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4203
|
+
function wt(e, t) {
|
|
4204
|
+
tr(e, t);
|
|
4226
4205
|
}
|
|
4227
|
-
function
|
|
4228
|
-
|
|
4206
|
+
function Ni(e) {
|
|
4207
|
+
q.set(e);
|
|
4229
4208
|
}
|
|
4230
|
-
const
|
|
4209
|
+
const St = {
|
|
4231
4210
|
en: {
|
|
4232
4211
|
titlePendingWithdrawals: "Pending Withdrawal",
|
|
4233
4212
|
loading: "Loading, please wait ..."
|
|
@@ -4265,13 +4244,13 @@ const Ht = {
|
|
|
4265
4244
|
loading: "Loading, please wait ..."
|
|
4266
4245
|
}
|
|
4267
4246
|
};
|
|
4268
|
-
function
|
|
4247
|
+
function Li(e, t) {
|
|
4269
4248
|
if (e) {
|
|
4270
4249
|
const r = document.createElement("style");
|
|
4271
4250
|
r.innerHTML = t, e.appendChild(r);
|
|
4272
4251
|
}
|
|
4273
4252
|
}
|
|
4274
|
-
function
|
|
4253
|
+
function Ci(e, t) {
|
|
4275
4254
|
const r = new URL(t);
|
|
4276
4255
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4277
4256
|
const i = document.createElement("style");
|
|
@@ -4280,7 +4259,7 @@ function $i(e, t) {
|
|
|
4280
4259
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4281
4260
|
});
|
|
4282
4261
|
}
|
|
4283
|
-
function
|
|
4262
|
+
function Mi(e, t, r) {
|
|
4284
4263
|
if (window.emMessageBus) {
|
|
4285
4264
|
const n = document.createElement("style");
|
|
4286
4265
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4288,142 +4267,142 @@ function Ri(e, t, r) {
|
|
|
4288
4267
|
});
|
|
4289
4268
|
}
|
|
4290
4269
|
}
|
|
4291
|
-
function
|
|
4292
|
-
|
|
4270
|
+
function Ri(e) {
|
|
4271
|
+
ur(e, "svelte-1gwync8", ".PendingWithdrawalsWrapper{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%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.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))}.PendingWithdrawalsTitle{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)}.PendingWithdrawalsTitleMobile{font-size:var(--emw--size-standard, 16px)}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
|
|
4293
4272
|
}
|
|
4294
|
-
function
|
|
4273
|
+
function $i(e) {
|
|
4295
4274
|
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4296
4275
|
/*$_*/
|
|
4297
4276
|
e[3]("titlePendingWithdrawals") + ""
|
|
4298
|
-
), f,
|
|
4277
|
+
), f, d, v;
|
|
4299
4278
|
return {
|
|
4300
4279
|
c() {
|
|
4301
|
-
t =
|
|
4280
|
+
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"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "PendingWithdrawalsTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4302
4281
|
},
|
|
4303
|
-
m(
|
|
4304
|
-
|
|
4282
|
+
m(p, w) {
|
|
4283
|
+
ae(p, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), d || (v = cr(
|
|
4305
4284
|
t,
|
|
4306
4285
|
"click",
|
|
4307
4286
|
/*click_handler*/
|
|
4308
4287
|
e[14]
|
|
4309
|
-
),
|
|
4288
|
+
), d = !0);
|
|
4310
4289
|
},
|
|
4311
|
-
p(
|
|
4290
|
+
p(p, w) {
|
|
4312
4291
|
w & /*$_*/
|
|
4313
4292
|
8 && c !== (c = /*$_*/
|
|
4314
|
-
|
|
4293
|
+
p[3]("titlePendingWithdrawals") + "") && Qe(f, c);
|
|
4315
4294
|
},
|
|
4316
|
-
d(
|
|
4317
|
-
|
|
4295
|
+
d(p) {
|
|
4296
|
+
p && J(t), d = !1, v();
|
|
4318
4297
|
}
|
|
4319
4298
|
};
|
|
4320
4299
|
}
|
|
4321
|
-
function
|
|
4300
|
+
function Ui(e) {
|
|
4322
4301
|
let t, r, n;
|
|
4323
4302
|
return {
|
|
4324
4303
|
c() {
|
|
4325
|
-
t =
|
|
4304
|
+
t = I("div"), r = I("iframe"), tt(r.src, n = /*iframeUrl*/
|
|
4326
4305
|
e[2]) || E(r, "src", n), E(r, "title", "Pending Withdrawals Iframe"), E(t, "class", "PendingWithdrawalsIframeWrapper");
|
|
4327
4306
|
},
|
|
4328
4307
|
m(i, o) {
|
|
4329
|
-
|
|
4308
|
+
ae(i, t, o), x(t, r);
|
|
4330
4309
|
},
|
|
4331
4310
|
p(i, o) {
|
|
4332
4311
|
o & /*iframeUrl*/
|
|
4333
|
-
4 && !
|
|
4312
|
+
4 && !tt(r.src, n = /*iframeUrl*/
|
|
4334
4313
|
i[2]) && E(r, "src", n);
|
|
4335
4314
|
},
|
|
4336
4315
|
d(i) {
|
|
4337
|
-
i &&
|
|
4316
|
+
i && J(t);
|
|
4338
4317
|
}
|
|
4339
4318
|
};
|
|
4340
4319
|
}
|
|
4341
|
-
function
|
|
4320
|
+
function Di(e) {
|
|
4342
4321
|
let t, r = (
|
|
4343
4322
|
/*$_*/
|
|
4344
4323
|
e[3]("loading") + ""
|
|
4345
4324
|
), n;
|
|
4346
4325
|
return {
|
|
4347
4326
|
c() {
|
|
4348
|
-
t =
|
|
4327
|
+
t = I("p"), n = re(r);
|
|
4349
4328
|
},
|
|
4350
4329
|
m(i, o) {
|
|
4351
|
-
|
|
4330
|
+
ae(i, t, o), x(t, n);
|
|
4352
4331
|
},
|
|
4353
4332
|
p(i, o) {
|
|
4354
4333
|
o & /*$_*/
|
|
4355
4334
|
8 && r !== (r = /*$_*/
|
|
4356
|
-
i[3]("loading") + "") &&
|
|
4335
|
+
i[3]("loading") + "") && Qe(n, r);
|
|
4357
4336
|
},
|
|
4358
4337
|
d(i) {
|
|
4359
|
-
i &&
|
|
4338
|
+
i && J(t);
|
|
4360
4339
|
}
|
|
4361
4340
|
};
|
|
4362
4341
|
}
|
|
4363
|
-
function
|
|
4342
|
+
function Gi(e) {
|
|
4364
4343
|
let t, r, n, i = (
|
|
4365
4344
|
/*$_*/
|
|
4366
4345
|
e[3]("titlePendingWithdrawals") + ""
|
|
4367
4346
|
), o, a, s = (
|
|
4368
4347
|
/*isMobile*/
|
|
4369
|
-
e[4] &&
|
|
4348
|
+
e[4] && $i(e)
|
|
4370
4349
|
);
|
|
4371
4350
|
function l(c, f) {
|
|
4372
4351
|
return (
|
|
4373
4352
|
/*isLoading*/
|
|
4374
|
-
c[1] ?
|
|
4353
|
+
c[1] ? Di : Ui
|
|
4375
4354
|
);
|
|
4376
4355
|
}
|
|
4377
4356
|
let u = l(e), h = u(e);
|
|
4378
4357
|
return {
|
|
4379
4358
|
c() {
|
|
4380
|
-
t =
|
|
4359
|
+
t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "PendingWithdrawalsTitle " + /*isMobile*/
|
|
4381
4360
|
(e[4] ? "PendingWithdrawalsTitleNone" : "")), E(t, "class", "PendingWithdrawalsWrapper " + /*isMobile*/
|
|
4382
4361
|
(e[4] ? "PendingWithdrawalsWrapperMobile" : ""));
|
|
4383
4362
|
},
|
|
4384
4363
|
m(c, f) {
|
|
4385
|
-
|
|
4364
|
+
ae(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
|
|
4386
4365
|
},
|
|
4387
4366
|
p(c, [f]) {
|
|
4388
4367
|
/*isMobile*/
|
|
4389
4368
|
c[4] && s.p(c, f), f & /*$_*/
|
|
4390
4369
|
8 && i !== (i = /*$_*/
|
|
4391
|
-
c[3]("titlePendingWithdrawals") + "") &&
|
|
4370
|
+
c[3]("titlePendingWithdrawals") + "") && Qe(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4392
4371
|
},
|
|
4393
4372
|
i: H,
|
|
4394
4373
|
o: H,
|
|
4395
4374
|
d(c) {
|
|
4396
|
-
c &&
|
|
4375
|
+
c && J(t), s && s.d(), h.d(), e[15](null);
|
|
4397
4376
|
}
|
|
4398
4377
|
};
|
|
4399
4378
|
}
|
|
4400
|
-
function
|
|
4379
|
+
function Fi(e, t, r) {
|
|
4401
4380
|
let n;
|
|
4402
|
-
|
|
4403
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f,
|
|
4404
|
-
const
|
|
4381
|
+
ar(e, Oi, (y) => r(3, n = y));
|
|
4382
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, d = window.navigator.userAgent, v = Ii(d) !== "PC", p = !0, w = "";
|
|
4383
|
+
const R = () => {
|
|
4405
4384
|
fetch(c).then((L) => L.json()).then((L) => {
|
|
4406
4385
|
Object.keys(L).forEach((C) => {
|
|
4407
|
-
|
|
4386
|
+
wt(C, L[C]);
|
|
4408
4387
|
});
|
|
4409
4388
|
}).catch((L) => {
|
|
4410
4389
|
console.log(L);
|
|
4411
4390
|
});
|
|
4412
4391
|
};
|
|
4413
|
-
Object.keys(
|
|
4414
|
-
|
|
4392
|
+
Object.keys(St).forEach((y) => {
|
|
4393
|
+
wt(y, St[y]);
|
|
4415
4394
|
});
|
|
4416
|
-
const
|
|
4395
|
+
const B = () => {
|
|
4417
4396
|
window.postMessage(
|
|
4418
4397
|
{
|
|
4419
4398
|
type: "PlayerAccountMenuActive",
|
|
4420
|
-
isMobile:
|
|
4399
|
+
isMobile: v
|
|
4421
4400
|
},
|
|
4422
4401
|
window.location.href
|
|
4423
4402
|
);
|
|
4424
4403
|
}, T = () => {
|
|
4425
|
-
let
|
|
4426
|
-
|
|
4404
|
+
let y = new URL(`${i}/v1/player/${a}/hostedcashier/pendingwithdrawals`);
|
|
4405
|
+
y.searchParams.append("language", s);
|
|
4427
4406
|
let L = {
|
|
4428
4407
|
method: "GET",
|
|
4429
4408
|
headers: {
|
|
@@ -4431,42 +4410,42 @@ function ki(e, t, r) {
|
|
|
4431
4410
|
accept: "application/json"
|
|
4432
4411
|
}
|
|
4433
4412
|
};
|
|
4434
|
-
fetch(
|
|
4413
|
+
fetch(y.href, L).then((C) => C.json()).then(
|
|
4435
4414
|
(C) => {
|
|
4436
|
-
r(1,
|
|
4415
|
+
r(1, p = !1), r(2, w = C.CashierUrl);
|
|
4437
4416
|
},
|
|
4438
4417
|
(C) => {
|
|
4439
4418
|
console.error(C);
|
|
4440
4419
|
}
|
|
4441
4420
|
);
|
|
4442
|
-
},
|
|
4443
|
-
|
|
4421
|
+
}, $ = () => {
|
|
4422
|
+
Ni(s);
|
|
4444
4423
|
};
|
|
4445
|
-
|
|
4424
|
+
mr(() => () => {
|
|
4446
4425
|
});
|
|
4447
|
-
const
|
|
4448
|
-
function D(
|
|
4449
|
-
|
|
4450
|
-
f =
|
|
4426
|
+
const A = () => B();
|
|
4427
|
+
function D(y) {
|
|
4428
|
+
Ne[y ? "unshift" : "push"](() => {
|
|
4429
|
+
f = y, r(0, f);
|
|
4451
4430
|
});
|
|
4452
4431
|
}
|
|
4453
|
-
return e.$$set = (
|
|
4454
|
-
"endpoint" in
|
|
4432
|
+
return e.$$set = (y) => {
|
|
4433
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, a = y.playerid), "lang" in y && r(9, s = y.lang), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, h = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
|
|
4455
4434
|
}, e.$$.update = () => {
|
|
4456
4435
|
e.$$.dirty & /*lang*/
|
|
4457
|
-
512 && s &&
|
|
4436
|
+
512 && s && $(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4458
4437
|
960 && o && a && i && s && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4459
|
-
1025 && l && f &&
|
|
4460
|
-
2049 && u && f &&
|
|
4461
|
-
4097 && h && f &&
|
|
4462
|
-
8192 && c &&
|
|
4438
|
+
1025 && l && f && Li(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4439
|
+
2049 && u && f && Ci(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4440
|
+
4097 && h && f && Mi(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4441
|
+
8192 && c && R();
|
|
4463
4442
|
}, [
|
|
4464
4443
|
f,
|
|
4465
|
-
|
|
4444
|
+
p,
|
|
4466
4445
|
w,
|
|
4467
4446
|
n,
|
|
4468
|
-
|
|
4469
|
-
|
|
4447
|
+
v,
|
|
4448
|
+
B,
|
|
4470
4449
|
i,
|
|
4471
4450
|
o,
|
|
4472
4451
|
a,
|
|
@@ -4475,18 +4454,18 @@ function ki(e, t, r) {
|
|
|
4475
4454
|
u,
|
|
4476
4455
|
h,
|
|
4477
4456
|
c,
|
|
4478
|
-
|
|
4457
|
+
A,
|
|
4479
4458
|
D
|
|
4480
4459
|
];
|
|
4481
4460
|
}
|
|
4482
|
-
class
|
|
4461
|
+
class ji extends Pr {
|
|
4483
4462
|
constructor(t) {
|
|
4484
|
-
super(),
|
|
4463
|
+
super(), Tr(
|
|
4485
4464
|
this,
|
|
4486
4465
|
t,
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4466
|
+
Fi,
|
|
4467
|
+
Gi,
|
|
4468
|
+
Ht,
|
|
4490
4469
|
{
|
|
4491
4470
|
endpoint: 6,
|
|
4492
4471
|
session: 7,
|
|
@@ -4497,7 +4476,7 @@ class Wi extends Br {
|
|
|
4497
4476
|
mbsource: 12,
|
|
4498
4477
|
translationurl: 13
|
|
4499
4478
|
},
|
|
4500
|
-
|
|
4479
|
+
Ri
|
|
4501
4480
|
);
|
|
4502
4481
|
}
|
|
4503
4482
|
get endpoint() {
|
|
@@ -4549,7 +4528,7 @@ class Wi extends Br {
|
|
|
4549
4528
|
this.$$set({ translationurl: t }), P();
|
|
4550
4529
|
}
|
|
4551
4530
|
}
|
|
4552
|
-
|
|
4531
|
+
Hr(ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4553
4532
|
export {
|
|
4554
|
-
|
|
4533
|
+
ji as P
|
|
4555
4534
|
};
|