@everymatrix/player-transaction-history 1.77.18 → 1.77.20
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/{PlayerTransactionHistory-CrLY5TgC.js → PlayerTransactionHistory-BdTEvmgd.js} +681 -724
- package/components/PlayerTransactionHistory-CIfFw_dM.cjs +18 -0
- package/components/{PlayerTransactionHistory-CjXe2mkN.js → PlayerTransactionHistory-DrCxcAOo.js} +695 -738
- package/es2015/player-transaction-history.cjs +1 -1
- package/es2015/player-transaction-history.js +1 -1
- package/esnext/player-transaction-history.js +1 -1
- package/package.json +1 -1
- package/components/PlayerTransactionHistory-B6yo4R0t.cjs +0 -18
package/components/{PlayerTransactionHistory-CrLY5TgC.js → PlayerTransactionHistory-BdTEvmgd.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function xt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(xt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
|
-
function
|
|
19
|
+
function Ye(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 rr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ht(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Pt(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 nr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ir(e, t, r) {
|
|
41
|
+
const n = or(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, sr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function or(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,45 +54,45 @@ function lr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function sr(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 q(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 Oe() {
|
|
80
|
+
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ar(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 ur(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ze(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function hr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,87 +101,87 @@ function mr(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 lr() {
|
|
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 cr(e) {
|
|
114
|
+
lr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ie = [];
|
|
117
117
|
let V = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const Ke = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Ne = !1;
|
|
120
|
+
function pr() {
|
|
121
|
+
Ne || (Ne = !0, fr.then(B));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Le(e) {
|
|
124
124
|
V.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const Te = /* @__PURE__ */ new Set();
|
|
127
127
|
let F = 0;
|
|
128
128
|
function B() {
|
|
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), mr(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; Ie.length; )
|
|
142
|
+
Ie.pop()();
|
|
143
143
|
for (let t = 0; t < V.length; t += 1) {
|
|
144
144
|
const r = V[t];
|
|
145
|
-
|
|
145
|
+
Te.has(r) || (Te.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
V.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; Ke.length; )
|
|
150
|
+
Ke.pop()();
|
|
151
|
+
Ne = !1, Te.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function mr(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(Le);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function dr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const br = /* @__PURE__ */ new Set();
|
|
165
|
+
function yr(e, t) {
|
|
166
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function gr(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), Le(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(xt).filter(ze);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
+
}), i.forEach(Le);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function vr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (dr(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 _r(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const l =
|
|
184
|
-
|
|
182
|
+
function Er(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 wr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: w,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: Je(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,7 +198,7 @@ function wr(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: Je(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
@@ -206,20 +206,20 @@ function wr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
206
206
|
a && a(u.root);
|
|
207
207
|
let h = !1;
|
|
208
208
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
|
-
const
|
|
210
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
211
|
-
}) : [], u.update(), h = !0,
|
|
209
|
+
const v = p.length ? p[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 && _r(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 = ur(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && yr(e.$$.fragment), gr(e, t.target, t.anchor), B();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let St;
|
|
222
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -261,24 +261,24 @@ 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 && q(o);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = hr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
@@ -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 xr(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends St {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -394,7 +394,7 @@ function Br(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Tr {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Ar {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
vr(this, 1), this.$destroy = w;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Ar {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!ze(r))
|
|
426
426
|
return w;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,11 +435,11 @@ class Ar {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !rr(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 Hr = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
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 Ce = function(e, t) {
|
|
458
|
+
return Ce = 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
|
+
}, Ce(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
|
+
Ce(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 y = function() {
|
|
475
|
+
return y = 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
|
+
}, y.apply(this, arguments);
|
|
483
|
+
};
|
|
484
|
+
function Sr(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 Me(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 X(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 wt(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 He = wt(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 we = It(function(e) {
|
|
|
527
546
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
528
547
|
};
|
|
529
548
|
});
|
|
530
|
-
function
|
|
549
|
+
function Re(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 ge = function() {
|
|
537
556
|
function e(t) {
|
|
538
557
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
539
558
|
}
|
|
@@ -545,7 +564,7 @@ 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 = Me(a), l = s.next(); !l.done; l = s.next()) {
|
|
549
568
|
var u = l.value;
|
|
550
569
|
u.remove(this);
|
|
551
570
|
}
|
|
@@ -562,22 +581,22 @@ 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
587
|
} catch (m) {
|
|
569
|
-
o = m instanceof
|
|
588
|
+
o = m instanceof He ? m.errors : [m];
|
|
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 = Me(c), p = f.next(); !p.done; p = f.next()) {
|
|
595
|
+
var v = p.value;
|
|
577
596
|
try {
|
|
578
|
-
|
|
597
|
+
et(v);
|
|
579
598
|
} catch (m) {
|
|
580
|
-
o = o ?? [], m instanceof
|
|
599
|
+
o = o ?? [], m instanceof He ? o = X(X([], $e(o)), $e(m.errors)) : o.push(m);
|
|
581
600
|
}
|
|
582
601
|
}
|
|
583
602
|
} catch (m) {
|
|
@@ -592,13 +611,13 @@ var ve = function() {
|
|
|
592
611
|
}
|
|
593
612
|
}
|
|
594
613
|
if (o)
|
|
595
|
-
throw new
|
|
614
|
+
throw new He(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
|
+
et(t);
|
|
602
621
|
else {
|
|
603
622
|
if (t instanceof e) {
|
|
604
623
|
if (t.closed || t._hasParent(this))
|
|
@@ -615,52 +634,52 @@ 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) && Re(r, t);
|
|
619
638
|
}, e.prototype.remove = function(t) {
|
|
620
639
|
var r = this._finalizers;
|
|
621
|
-
r &&
|
|
640
|
+
r && Re(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
|
|
645
|
+
}(), Bt = ge.EMPTY;
|
|
646
|
+
function At(e) {
|
|
647
|
+
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
629
648
|
}
|
|
630
|
-
function
|
|
631
|
-
|
|
649
|
+
function et(e) {
|
|
650
|
+
O(e) ? e() : e.unsubscribe();
|
|
632
651
|
}
|
|
633
|
-
var
|
|
652
|
+
var wr = {
|
|
634
653
|
Promise: void 0
|
|
635
|
-
},
|
|
654
|
+
}, Br = {
|
|
636
655
|
setTimeout: function(e, t) {
|
|
637
656
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
638
657
|
r[n - 2] = arguments[n];
|
|
639
|
-
return setTimeout.apply(void 0,
|
|
658
|
+
return setTimeout.apply(void 0, X([e, t], $e(r)));
|
|
640
659
|
},
|
|
641
660
|
clearTimeout: function(e) {
|
|
642
661
|
return clearTimeout(e);
|
|
643
662
|
},
|
|
644
663
|
delegate: void 0
|
|
645
664
|
};
|
|
646
|
-
function
|
|
647
|
-
|
|
665
|
+
function Ar(e) {
|
|
666
|
+
Br.setTimeout(function() {
|
|
648
667
|
throw e;
|
|
649
668
|
});
|
|
650
669
|
}
|
|
651
|
-
function
|
|
670
|
+
function tt() {
|
|
652
671
|
}
|
|
653
672
|
function pe(e) {
|
|
654
673
|
e();
|
|
655
674
|
}
|
|
656
|
-
var
|
|
657
|
-
|
|
675
|
+
var Pt = function(e) {
|
|
676
|
+
N(t, e);
|
|
658
677
|
function t(r) {
|
|
659
678
|
var n = e.call(this) || this;
|
|
660
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
679
|
+
return n.isStopped = !1, r ? (n.destination = r, At(r) && r.add(n)) : n.destination = Ir, n;
|
|
661
680
|
}
|
|
662
681
|
return t.create = function(r, n, i) {
|
|
663
|
-
return new
|
|
682
|
+
return new Ue(r, n, i);
|
|
664
683
|
}, t.prototype.next = function(r) {
|
|
665
684
|
this.isStopped || this._next(r);
|
|
666
685
|
}, t.prototype.error = function(r) {
|
|
@@ -684,7 +703,7 @@ var Ct = function(e) {
|
|
|
684
703
|
this.unsubscribe();
|
|
685
704
|
}
|
|
686
705
|
}, t;
|
|
687
|
-
}(
|
|
706
|
+
}(ge), Pr = function() {
|
|
688
707
|
function e(t) {
|
|
689
708
|
this.partialObserver = t;
|
|
690
709
|
}
|
|
@@ -715,43 +734,43 @@ var Ct = function(e) {
|
|
|
715
734
|
le(r);
|
|
716
735
|
}
|
|
717
736
|
}, e;
|
|
718
|
-
}(),
|
|
719
|
-
|
|
737
|
+
}(), Ue = function(e) {
|
|
738
|
+
N(t, e);
|
|
720
739
|
function t(r, n, i) {
|
|
721
740
|
var o = e.call(this) || this, a;
|
|
722
|
-
return
|
|
741
|
+
return O(r) || !r ? a = {
|
|
723
742
|
next: r ?? void 0,
|
|
724
743
|
error: n ?? void 0,
|
|
725
744
|
complete: i ?? void 0
|
|
726
|
-
} : a = r, o.destination = new
|
|
745
|
+
} : a = r, o.destination = new Pr(a), o;
|
|
727
746
|
}
|
|
728
747
|
return t;
|
|
729
|
-
}(
|
|
748
|
+
}(Pt);
|
|
730
749
|
function le(e) {
|
|
731
|
-
|
|
750
|
+
Ar(e);
|
|
732
751
|
}
|
|
733
|
-
function
|
|
752
|
+
function Or(e) {
|
|
734
753
|
throw e;
|
|
735
754
|
}
|
|
736
|
-
var
|
|
755
|
+
var Ir = {
|
|
737
756
|
closed: !0,
|
|
738
|
-
next:
|
|
739
|
-
error:
|
|
740
|
-
complete:
|
|
741
|
-
},
|
|
757
|
+
next: tt,
|
|
758
|
+
error: Or,
|
|
759
|
+
complete: tt
|
|
760
|
+
}, Nr = function() {
|
|
742
761
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
743
762
|
}();
|
|
744
|
-
function
|
|
763
|
+
function Lr(e) {
|
|
745
764
|
return e;
|
|
746
765
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.length === 0 ?
|
|
766
|
+
function Cr(e) {
|
|
767
|
+
return e.length === 0 ? Lr : e.length === 1 ? e[0] : function(r) {
|
|
749
768
|
return e.reduce(function(n, i) {
|
|
750
769
|
return i(n);
|
|
751
770
|
}, r);
|
|
752
771
|
};
|
|
753
772
|
}
|
|
754
|
-
var
|
|
773
|
+
var rt = function() {
|
|
755
774
|
function e(t) {
|
|
756
775
|
t && (this._subscribe = t);
|
|
757
776
|
}
|
|
@@ -759,7 +778,7 @@ var at = function() {
|
|
|
759
778
|
var r = new e();
|
|
760
779
|
return r.source = this, r.operator = t, r;
|
|
761
780
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
762
|
-
var i = this, o =
|
|
781
|
+
var i = this, o = $r(t) ? t : new Ue(t, r, n);
|
|
763
782
|
return pe(function() {
|
|
764
783
|
var a = i, s = a.operator, l = a.source;
|
|
765
784
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -772,8 +791,8 @@ var at = function() {
|
|
|
772
791
|
}
|
|
773
792
|
}, e.prototype.forEach = function(t, r) {
|
|
774
793
|
var n = this;
|
|
775
|
-
return r =
|
|
776
|
-
var a = new
|
|
794
|
+
return r = nt(r), new r(function(i, o) {
|
|
795
|
+
var a = new Ue({
|
|
777
796
|
next: function(s) {
|
|
778
797
|
try {
|
|
779
798
|
t(s);
|
|
@@ -789,15 +808,15 @@ var at = function() {
|
|
|
789
808
|
}, e.prototype._subscribe = function(t) {
|
|
790
809
|
var r;
|
|
791
810
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
792
|
-
}, e.prototype[
|
|
811
|
+
}, e.prototype[Nr] = function() {
|
|
793
812
|
return this;
|
|
794
813
|
}, e.prototype.pipe = function() {
|
|
795
814
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
796
815
|
t[r] = arguments[r];
|
|
797
|
-
return
|
|
816
|
+
return Cr(t)(this);
|
|
798
817
|
}, e.prototype.toPromise = function(t) {
|
|
799
818
|
var r = this;
|
|
800
|
-
return t =
|
|
819
|
+
return t = nt(t), new t(function(n, i) {
|
|
801
820
|
var o;
|
|
802
821
|
r.subscribe(function(a) {
|
|
803
822
|
return o = a;
|
|
@@ -811,32 +830,32 @@ var at = function() {
|
|
|
811
830
|
return new e(t);
|
|
812
831
|
}, e;
|
|
813
832
|
}();
|
|
814
|
-
function
|
|
833
|
+
function nt(e) {
|
|
815
834
|
var t;
|
|
816
|
-
return (t = e ??
|
|
835
|
+
return (t = e ?? wr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
817
836
|
}
|
|
818
|
-
function
|
|
819
|
-
return e &&
|
|
837
|
+
function Mr(e) {
|
|
838
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
820
839
|
}
|
|
821
|
-
function
|
|
822
|
-
return e && e instanceof
|
|
840
|
+
function $r(e) {
|
|
841
|
+
return e && e instanceof Pt || Mr(e) && At(e);
|
|
823
842
|
}
|
|
824
|
-
var
|
|
843
|
+
var Rr = wt(function(e) {
|
|
825
844
|
return function() {
|
|
826
845
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
827
846
|
};
|
|
828
|
-
}),
|
|
829
|
-
|
|
847
|
+
}), Ot = function(e) {
|
|
848
|
+
N(t, e);
|
|
830
849
|
function t() {
|
|
831
850
|
var r = e.call(this) || this;
|
|
832
851
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
833
852
|
}
|
|
834
853
|
return t.prototype.lift = function(r) {
|
|
835
|
-
var n = new
|
|
854
|
+
var n = new it(this, this);
|
|
836
855
|
return n.operator = r, n;
|
|
837
856
|
}, t.prototype._throwIfClosed = function() {
|
|
838
857
|
if (this.closed)
|
|
839
|
-
throw new
|
|
858
|
+
throw new Rr();
|
|
840
859
|
}, t.prototype.next = function(r) {
|
|
841
860
|
var n = this;
|
|
842
861
|
pe(function() {
|
|
@@ -844,7 +863,7 @@ var Fr = It(function(e) {
|
|
|
844
863
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
845
864
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
846
865
|
try {
|
|
847
|
-
for (var a =
|
|
866
|
+
for (var a = Me(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
848
867
|
var l = s.value;
|
|
849
868
|
l.next(r);
|
|
850
869
|
}
|
|
@@ -893,20 +912,20 @@ var Fr = It(function(e) {
|
|
|
893
912
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
894
913
|
}, t.prototype._innerSubscribe = function(r) {
|
|
895
914
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
896
|
-
return o || a ?
|
|
897
|
-
n.currentObservers = null,
|
|
915
|
+
return o || a ? Bt : (this.currentObservers = null, s.push(r), new ge(function() {
|
|
916
|
+
n.currentObservers = null, Re(s, r);
|
|
898
917
|
}));
|
|
899
918
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
900
919
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
901
920
|
i ? r.error(o) : a && r.complete();
|
|
902
921
|
}, t.prototype.asObservable = function() {
|
|
903
|
-
var r = new
|
|
922
|
+
var r = new rt();
|
|
904
923
|
return r.source = this, r;
|
|
905
924
|
}, t.create = function(r, n) {
|
|
906
|
-
return new
|
|
925
|
+
return new it(r, n);
|
|
907
926
|
}, t;
|
|
908
|
-
}(
|
|
909
|
-
|
|
927
|
+
}(rt), it = function(e) {
|
|
928
|
+
N(t, e);
|
|
910
929
|
function t(r, n) {
|
|
911
930
|
var i = e.call(this) || this;
|
|
912
931
|
return i.destination = r, i.source = n, i;
|
|
@@ -922,17 +941,17 @@ var Fr = It(function(e) {
|
|
|
922
941
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
923
942
|
}, t.prototype._subscribe = function(r) {
|
|
924
943
|
var n, i;
|
|
925
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
944
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Bt;
|
|
926
945
|
}, t;
|
|
927
|
-
}(
|
|
946
|
+
}(Ot), It = {
|
|
928
947
|
now: function() {
|
|
929
|
-
return (
|
|
948
|
+
return (It.delegate || Date).now();
|
|
930
949
|
},
|
|
931
950
|
delegate: void 0
|
|
932
|
-
},
|
|
933
|
-
|
|
951
|
+
}, Ur = function(e) {
|
|
952
|
+
N(t, e);
|
|
934
953
|
function t(r, n, i) {
|
|
935
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
954
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = It);
|
|
936
955
|
var o = e.call(this) || this;
|
|
937
956
|
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
957
|
}
|
|
@@ -952,24 +971,24 @@ var Fr = It(function(e) {
|
|
|
952
971
|
u && o.splice(0, u + 1);
|
|
953
972
|
}
|
|
954
973
|
}, t;
|
|
955
|
-
}(
|
|
956
|
-
const
|
|
957
|
-
if (
|
|
958
|
-
const r = new
|
|
959
|
-
|
|
974
|
+
}(Ot);
|
|
975
|
+
const ot = [], st = {}, Dr = (e, t = 0) => {
|
|
976
|
+
if (ot.indexOf(e) == -1) {
|
|
977
|
+
const r = new Ur(t);
|
|
978
|
+
st[e] = r, ot.push(e);
|
|
960
979
|
}
|
|
961
|
-
return
|
|
980
|
+
return st[e];
|
|
962
981
|
}, j = [];
|
|
963
|
-
function
|
|
982
|
+
function Gr(e, t) {
|
|
964
983
|
return {
|
|
965
|
-
subscribe:
|
|
984
|
+
subscribe: ve(e, t).subscribe
|
|
966
985
|
};
|
|
967
986
|
}
|
|
968
|
-
function
|
|
987
|
+
function ve(e, t = w) {
|
|
969
988
|
let r;
|
|
970
989
|
const n = /* @__PURE__ */ new Set();
|
|
971
990
|
function i(s) {
|
|
972
|
-
if (
|
|
991
|
+
if (Tt(e, s) && (e = s, r)) {
|
|
973
992
|
const l = !j.length;
|
|
974
993
|
for (const u of n)
|
|
975
994
|
u[1](), j.push(u, e);
|
|
@@ -991,12 +1010,12 @@ function _e(e, t = w) {
|
|
|
991
1010
|
}
|
|
992
1011
|
return { set: i, update: o, subscribe: a };
|
|
993
1012
|
}
|
|
994
|
-
function
|
|
1013
|
+
function J(e, t, r) {
|
|
995
1014
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
996
1015
|
if (!i.every(Boolean))
|
|
997
1016
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
998
1017
|
const o = t.length < 2;
|
|
999
|
-
return
|
|
1018
|
+
return Gr(r, (a, s) => {
|
|
1000
1019
|
let l = !1;
|
|
1001
1020
|
const u = [];
|
|
1002
1021
|
let h = 0, c = w;
|
|
@@ -1004,11 +1023,11 @@ function q(e, t, r) {
|
|
|
1004
1023
|
if (h)
|
|
1005
1024
|
return;
|
|
1006
1025
|
c();
|
|
1007
|
-
const
|
|
1008
|
-
o ? a(
|
|
1026
|
+
const v = t(n ? u[0] : u, a, s);
|
|
1027
|
+
o ? a(v) : c = ze(v) ? v : w;
|
|
1009
1028
|
}, p = i.map(
|
|
1010
|
-
(
|
|
1011
|
-
|
|
1029
|
+
(v, m) => Ht(
|
|
1030
|
+
v,
|
|
1012
1031
|
(T) => {
|
|
1013
1032
|
u[m] = T, h &= ~(1 << m), l && f();
|
|
1014
1033
|
},
|
|
@@ -1018,157 +1037,115 @@ function q(e, t, r) {
|
|
|
1018
1037
|
)
|
|
1019
1038
|
);
|
|
1020
1039
|
return l = !0, f(), function() {
|
|
1021
|
-
|
|
1040
|
+
se(p), c(), l = !1;
|
|
1022
1041
|
};
|
|
1023
1042
|
});
|
|
1024
1043
|
}
|
|
1025
|
-
function
|
|
1044
|
+
function Fr(e) {
|
|
1026
1045
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1027
1046
|
}
|
|
1028
|
-
var
|
|
1029
|
-
return
|
|
1047
|
+
var jr = function(t) {
|
|
1048
|
+
return kr(t) && !Vr(t);
|
|
1030
1049
|
};
|
|
1031
|
-
function
|
|
1050
|
+
function kr(e) {
|
|
1032
1051
|
return !!e && typeof e == "object";
|
|
1033
1052
|
}
|
|
1034
|
-
function
|
|
1053
|
+
function Vr(e) {
|
|
1035
1054
|
var t = Object.prototype.toString.call(e);
|
|
1036
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1055
|
+
return t === "[object RegExp]" || t === "[object Date]" || zr(e);
|
|
1037
1056
|
}
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1040
|
-
return e.$$typeof ===
|
|
1057
|
+
var Xr = typeof Symbol == "function" && Symbol.for, Wr = Xr ? Symbol.for("react.element") : 60103;
|
|
1058
|
+
function zr(e) {
|
|
1059
|
+
return e.$$typeof === Wr;
|
|
1041
1060
|
}
|
|
1042
|
-
function
|
|
1061
|
+
function Zr(e) {
|
|
1043
1062
|
return Array.isArray(e) ? [] : {};
|
|
1044
1063
|
}
|
|
1045
|
-
function
|
|
1046
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1064
|
+
function ie(e, t) {
|
|
1065
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(Zr(e), e, t) : e;
|
|
1047
1066
|
}
|
|
1048
|
-
function
|
|
1067
|
+
function Qr(e, t, r) {
|
|
1049
1068
|
return e.concat(t).map(function(n) {
|
|
1050
|
-
return
|
|
1069
|
+
return ie(n, r);
|
|
1051
1070
|
});
|
|
1052
1071
|
}
|
|
1053
|
-
function
|
|
1072
|
+
function qr(e, t) {
|
|
1054
1073
|
if (!t.customMerge)
|
|
1055
|
-
return
|
|
1074
|
+
return W;
|
|
1056
1075
|
var r = t.customMerge(e);
|
|
1057
|
-
return typeof r == "function" ? r :
|
|
1076
|
+
return typeof r == "function" ? r : W;
|
|
1058
1077
|
}
|
|
1059
|
-
function
|
|
1078
|
+
function Jr(e) {
|
|
1060
1079
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1061
1080
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1062
1081
|
}) : [];
|
|
1063
1082
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return Object.keys(e).concat(
|
|
1083
|
+
function at(e) {
|
|
1084
|
+
return Object.keys(e).concat(Jr(e));
|
|
1066
1085
|
}
|
|
1067
|
-
function
|
|
1086
|
+
function Nt(e, t) {
|
|
1068
1087
|
try {
|
|
1069
1088
|
return t in e;
|
|
1070
1089
|
} catch {
|
|
1071
1090
|
return !1;
|
|
1072
1091
|
}
|
|
1073
1092
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1093
|
+
function Yr(e, t) {
|
|
1094
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1076
1095
|
}
|
|
1077
|
-
function
|
|
1096
|
+
function Kr(e, t, r) {
|
|
1078
1097
|
var n = {};
|
|
1079
|
-
return r.isMergeableObject(e) &&
|
|
1080
|
-
n[i] =
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1098
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1099
|
+
n[i] = ie(e[i], r);
|
|
1100
|
+
}), at(t).forEach(function(i) {
|
|
1101
|
+
Yr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = qr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1083
1102
|
}), n;
|
|
1084
1103
|
}
|
|
1085
|
-
function
|
|
1086
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1104
|
+
function W(e, t, r) {
|
|
1105
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1087
1106
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1088
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1107
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : ie(t, r);
|
|
1089
1108
|
}
|
|
1090
|
-
|
|
1109
|
+
W.all = function(t, r) {
|
|
1091
1110
|
if (!Array.isArray(t))
|
|
1092
1111
|
throw new Error("first argument should be an array");
|
|
1093
1112
|
return t.reduce(function(n, i) {
|
|
1094
|
-
return
|
|
1113
|
+
return W(n, i, r);
|
|
1095
1114
|
}, {});
|
|
1096
1115
|
};
|
|
1097
|
-
var
|
|
1098
|
-
const
|
|
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 A = function() {
|
|
1117
|
-
return A = 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
|
-
}, A.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 Be(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 Ae(e, t) {
|
|
1142
|
-
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
|
|
1116
|
+
var en = W, tn = en;
|
|
1117
|
+
const rn = /* @__PURE__ */ Fr(tn);
|
|
1118
|
+
function Se(e, t) {
|
|
1119
|
+
var r = t && t.cache ? t.cache : ln, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : sn;
|
|
1143
1120
|
return i(e, {
|
|
1144
1121
|
cache: r,
|
|
1145
1122
|
serializer: n
|
|
1146
1123
|
});
|
|
1147
1124
|
}
|
|
1148
|
-
function
|
|
1125
|
+
function nn(e) {
|
|
1149
1126
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1150
1127
|
}
|
|
1151
|
-
function
|
|
1152
|
-
var i =
|
|
1128
|
+
function on(e, t, r, n) {
|
|
1129
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
1153
1130
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1154
1131
|
}
|
|
1155
|
-
function
|
|
1132
|
+
function Lt(e, t, r) {
|
|
1156
1133
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1157
1134
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1158
1135
|
}
|
|
1159
|
-
function
|
|
1136
|
+
function Ct(e, t, r, n, i) {
|
|
1160
1137
|
return r.bind(t, e, n, i);
|
|
1161
1138
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var r = e.length === 1 ?
|
|
1164
|
-
return
|
|
1139
|
+
function sn(e, t) {
|
|
1140
|
+
var r = e.length === 1 ? on : Lt;
|
|
1141
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
1165
1142
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
1143
|
+
function an(e, t) {
|
|
1144
|
+
return Ct(e, this, Lt, t.cache.create(), t.serializer);
|
|
1168
1145
|
}
|
|
1169
|
-
var
|
|
1146
|
+
var un = function() {
|
|
1170
1147
|
return JSON.stringify(arguments);
|
|
1171
|
-
},
|
|
1148
|
+
}, hn = (
|
|
1172
1149
|
/** @class */
|
|
1173
1150
|
function() {
|
|
1174
1151
|
function e() {
|
|
@@ -1180,71 +1157,61 @@ var pn = function() {
|
|
|
1180
1157
|
this.cache[t] = r;
|
|
1181
1158
|
}, e;
|
|
1182
1159
|
}()
|
|
1183
|
-
),
|
|
1160
|
+
), ln = {
|
|
1184
1161
|
create: function() {
|
|
1185
|
-
return new
|
|
1162
|
+
return new hn();
|
|
1186
1163
|
}
|
|
1187
|
-
},
|
|
1188
|
-
variadic:
|
|
1189
|
-
},
|
|
1190
|
-
return be = Object.assign || function(t) {
|
|
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 d;
|
|
1164
|
+
}, we = {
|
|
1165
|
+
variadic: an
|
|
1166
|
+
}, d;
|
|
1200
1167
|
(function(e) {
|
|
1201
1168
|
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
1169
|
})(d || (d = {}));
|
|
1203
|
-
var
|
|
1170
|
+
var _;
|
|
1204
1171
|
(function(e) {
|
|
1205
1172
|
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
|
|
1173
|
+
})(_ || (_ = {}));
|
|
1174
|
+
var z;
|
|
1208
1175
|
(function(e) {
|
|
1209
1176
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1210
|
-
})(
|
|
1211
|
-
function
|
|
1212
|
-
return e.type ===
|
|
1177
|
+
})(z || (z = {}));
|
|
1178
|
+
function ut(e) {
|
|
1179
|
+
return e.type === _.literal;
|
|
1213
1180
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1181
|
+
function cn(e) {
|
|
1182
|
+
return e.type === _.argument;
|
|
1216
1183
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1184
|
+
function Mt(e) {
|
|
1185
|
+
return e.type === _.number;
|
|
1219
1186
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1187
|
+
function $t(e) {
|
|
1188
|
+
return e.type === _.date;
|
|
1222
1189
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return e.type ===
|
|
1190
|
+
function Rt(e) {
|
|
1191
|
+
return e.type === _.time;
|
|
1225
1192
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return e.type ===
|
|
1193
|
+
function Ut(e) {
|
|
1194
|
+
return e.type === _.select;
|
|
1228
1195
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return e.type ===
|
|
1196
|
+
function Dt(e) {
|
|
1197
|
+
return e.type === _.plural;
|
|
1231
1198
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return e.type ===
|
|
1199
|
+
function fn(e) {
|
|
1200
|
+
return e.type === _.pound;
|
|
1234
1201
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1202
|
+
function Gt(e) {
|
|
1203
|
+
return e.type === _.tag;
|
|
1237
1204
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1205
|
+
function Ft(e) {
|
|
1206
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1240
1207
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1208
|
+
function De(e) {
|
|
1209
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1243
1210
|
}
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1211
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
|
|
1212
|
+
function mn(e) {
|
|
1246
1213
|
var t = {};
|
|
1247
|
-
return e.replace(
|
|
1214
|
+
return e.replace(pn, function(r) {
|
|
1248
1215
|
var n = r.length;
|
|
1249
1216
|
switch (r[0]) {
|
|
1250
1217
|
case "G":
|
|
@@ -1333,21 +1300,11 @@ function vn(e) {
|
|
|
1333
1300
|
return "";
|
|
1334
1301
|
}), t;
|
|
1335
1302
|
}
|
|
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) {
|
|
1303
|
+
var dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1304
|
+
function bn(e) {
|
|
1348
1305
|
if (e.length === 0)
|
|
1349
1306
|
throw new Error("Number skeleton cannot be empty");
|
|
1350
|
-
for (var t = e.split(
|
|
1307
|
+
for (var t = e.split(dn).filter(function(f) {
|
|
1351
1308
|
return f.length > 0;
|
|
1352
1309
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1353
1310
|
var o = i[n], a = o.split("/");
|
|
@@ -1362,17 +1319,17 @@ function En(e) {
|
|
|
1362
1319
|
}
|
|
1363
1320
|
return r;
|
|
1364
1321
|
}
|
|
1365
|
-
function
|
|
1322
|
+
function yn(e) {
|
|
1366
1323
|
return e.replace(/^(.*?)-/, "");
|
|
1367
1324
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1325
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, gn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
1326
|
+
function lt(e) {
|
|
1370
1327
|
var t = {};
|
|
1371
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1328
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
1372
1329
|
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
1330
|
}), t;
|
|
1374
1331
|
}
|
|
1375
|
-
function
|
|
1332
|
+
function Xt(e) {
|
|
1376
1333
|
switch (e) {
|
|
1377
1334
|
case "sign-auto":
|
|
1378
1335
|
return {
|
|
@@ -1412,7 +1369,7 @@ function qt(e) {
|
|
|
1412
1369
|
};
|
|
1413
1370
|
}
|
|
1414
1371
|
}
|
|
1415
|
-
function
|
|
1372
|
+
function vn(e) {
|
|
1416
1373
|
var t;
|
|
1417
1374
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1418
1375
|
notation: "engineering"
|
|
@@ -1420,17 +1377,17 @@ function Hn(e) {
|
|
|
1420
1377
|
notation: "scientific"
|
|
1421
1378
|
}, e = e.slice(1)), t) {
|
|
1422
1379
|
var r = e.slice(0, 2);
|
|
1423
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1380
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
1424
1381
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1425
1382
|
t.minimumIntegerDigits = e.length;
|
|
1426
1383
|
}
|
|
1427
1384
|
return t;
|
|
1428
1385
|
}
|
|
1429
|
-
function
|
|
1430
|
-
var t = {}, r =
|
|
1386
|
+
function ct(e) {
|
|
1387
|
+
var t = {}, r = Xt(e);
|
|
1431
1388
|
return r || t;
|
|
1432
1389
|
}
|
|
1433
|
-
function
|
|
1390
|
+
function _n(e) {
|
|
1434
1391
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1435
1392
|
var i = n[r];
|
|
1436
1393
|
switch (i.stem) {
|
|
@@ -1454,7 +1411,7 @@ function Sn(e) {
|
|
|
1454
1411
|
continue;
|
|
1455
1412
|
case "measure-unit":
|
|
1456
1413
|
case "unit":
|
|
1457
|
-
t.style = "unit", t.unit =
|
|
1414
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1458
1415
|
continue;
|
|
1459
1416
|
case "compact-short":
|
|
1460
1417
|
case "K":
|
|
@@ -1465,13 +1422,13 @@ function Sn(e) {
|
|
|
1465
1422
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1466
1423
|
continue;
|
|
1467
1424
|
case "scientific":
|
|
1468
|
-
t =
|
|
1469
|
-
return
|
|
1425
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1426
|
+
return y(y({}, l), ct(u));
|
|
1470
1427
|
}, {}));
|
|
1471
1428
|
continue;
|
|
1472
1429
|
case "engineering":
|
|
1473
|
-
t =
|
|
1474
|
-
return
|
|
1430
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1431
|
+
return y(y({}, l), ct(u));
|
|
1475
1432
|
}, {}));
|
|
1476
1433
|
continue;
|
|
1477
1434
|
case "notation-simple":
|
|
@@ -1516,7 +1473,7 @@ function Sn(e) {
|
|
|
1516
1473
|
case "integer-width":
|
|
1517
1474
|
if (i.options.length > 1)
|
|
1518
1475
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1519
|
-
i.options[0].replace(
|
|
1476
|
+
i.options[0].replace(gn, function(l, u, h, c, f, p) {
|
|
1520
1477
|
if (u)
|
|
1521
1478
|
t.minimumIntegerDigits = h.length;
|
|
1522
1479
|
else {
|
|
@@ -1529,28 +1486,28 @@ function Sn(e) {
|
|
|
1529
1486
|
});
|
|
1530
1487
|
continue;
|
|
1531
1488
|
}
|
|
1532
|
-
if (
|
|
1489
|
+
if (Vt.test(i.stem)) {
|
|
1533
1490
|
t.minimumIntegerDigits = i.stem.length;
|
|
1534
1491
|
continue;
|
|
1535
1492
|
}
|
|
1536
|
-
if (
|
|
1493
|
+
if (ht.test(i.stem)) {
|
|
1537
1494
|
if (i.options.length > 1)
|
|
1538
1495
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1539
|
-
i.stem.replace(
|
|
1496
|
+
i.stem.replace(ht, function(l, u, h, c, f, p) {
|
|
1540
1497
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1541
1498
|
});
|
|
1542
1499
|
var o = i.options[0];
|
|
1543
|
-
o === "w" ? t =
|
|
1500
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), lt(o)));
|
|
1544
1501
|
continue;
|
|
1545
1502
|
}
|
|
1546
|
-
if (
|
|
1547
|
-
t =
|
|
1503
|
+
if (kt.test(i.stem)) {
|
|
1504
|
+
t = y(y({}, t), lt(i.stem));
|
|
1548
1505
|
continue;
|
|
1549
1506
|
}
|
|
1550
|
-
var a =
|
|
1551
|
-
a && (t =
|
|
1552
|
-
var s =
|
|
1553
|
-
s && (t =
|
|
1507
|
+
var a = Xt(i.stem);
|
|
1508
|
+
a && (t = y(y({}, t), a));
|
|
1509
|
+
var s = vn(i.stem);
|
|
1510
|
+
s && (t = y(y({}, t), s));
|
|
1554
1511
|
}
|
|
1555
1512
|
return t;
|
|
1556
1513
|
}
|
|
@@ -2969,13 +2926,13 @@ var ce = {
|
|
|
2969
2926
|
"h"
|
|
2970
2927
|
]
|
|
2971
2928
|
};
|
|
2972
|
-
function
|
|
2929
|
+
function En(e, t) {
|
|
2973
2930
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2974
2931
|
var i = e.charAt(n);
|
|
2975
2932
|
if (i === "j") {
|
|
2976
2933
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2977
2934
|
o++, n++;
|
|
2978
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2935
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = xn(t);
|
|
2979
2936
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2980
2937
|
r += l;
|
|
2981
2938
|
for (; a-- > 0; )
|
|
@@ -2985,7 +2942,7 @@ function wn(e, t) {
|
|
|
2985
2942
|
}
|
|
2986
2943
|
return r;
|
|
2987
2944
|
}
|
|
2988
|
-
function
|
|
2945
|
+
function xn(e) {
|
|
2989
2946
|
var t = e.hourCycle;
|
|
2990
2947
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2991
2948
|
e.hourCycles && // @ts-ignore
|
|
@@ -3007,20 +2964,20 @@ function Bn(e) {
|
|
|
3007
2964
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3008
2965
|
return i[0];
|
|
3009
2966
|
}
|
|
3010
|
-
var
|
|
2967
|
+
var Be, Tn = new RegExp("^".concat(jt.source, "*")), Hn = new RegExp("".concat(jt.source, "*$"));
|
|
3011
2968
|
function b(e, t) {
|
|
3012
2969
|
return { start: e, end: t };
|
|
3013
2970
|
}
|
|
3014
|
-
var
|
|
2971
|
+
var Sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), wn = !!String.fromCodePoint, Bn = !!Object.fromEntries, An = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, On = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Nn = In ? Number.isSafeInteger : function(e) {
|
|
3015
2972
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3016
|
-
},
|
|
2973
|
+
}, Ge = !0;
|
|
3017
2974
|
try {
|
|
3018
|
-
var
|
|
3019
|
-
|
|
2975
|
+
var Ln = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2976
|
+
Ge = ((Be = Ln.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3020
2977
|
} catch {
|
|
3021
|
-
|
|
2978
|
+
Ge = !1;
|
|
3022
2979
|
}
|
|
3023
|
-
var
|
|
2980
|
+
var ft = Sn ? (
|
|
3024
2981
|
// Native
|
|
3025
2982
|
function(t, r, n) {
|
|
3026
2983
|
return t.startsWith(r, n);
|
|
@@ -3030,7 +2987,7 @@ var yt = On ? (
|
|
|
3030
2987
|
function(t, r, n) {
|
|
3031
2988
|
return t.slice(n, n + r.length) === r;
|
|
3032
2989
|
}
|
|
3033
|
-
),
|
|
2990
|
+
), Fe = wn ? String.fromCodePoint : (
|
|
3034
2991
|
// IE11
|
|
3035
2992
|
function() {
|
|
3036
2993
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3042,9 +2999,9 @@ var yt = On ? (
|
|
|
3042
2999
|
}
|
|
3043
3000
|
return n;
|
|
3044
3001
|
}
|
|
3045
|
-
),
|
|
3002
|
+
), pt = (
|
|
3046
3003
|
// native
|
|
3047
|
-
|
|
3004
|
+
Bn ? Object.fromEntries : (
|
|
3048
3005
|
// Ponyfill
|
|
3049
3006
|
function(t) {
|
|
3050
3007
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3054,7 +3011,7 @@ var yt = On ? (
|
|
|
3054
3011
|
return r;
|
|
3055
3012
|
}
|
|
3056
3013
|
)
|
|
3057
|
-
),
|
|
3014
|
+
), Wt = An ? (
|
|
3058
3015
|
// Native
|
|
3059
3016
|
function(t, r) {
|
|
3060
3017
|
return t.codePointAt(r);
|
|
@@ -3068,7 +3025,7 @@ var yt = On ? (
|
|
|
3068
3025
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3069
3026
|
}
|
|
3070
3027
|
}
|
|
3071
|
-
),
|
|
3028
|
+
), Cn = Pn ? (
|
|
3072
3029
|
// Native
|
|
3073
3030
|
function(t) {
|
|
3074
3031
|
return t.trimStart();
|
|
@@ -3076,9 +3033,9 @@ var yt = On ? (
|
|
|
3076
3033
|
) : (
|
|
3077
3034
|
// Ponyfill
|
|
3078
3035
|
function(t) {
|
|
3079
|
-
return t.replace(
|
|
3036
|
+
return t.replace(Tn, "");
|
|
3080
3037
|
}
|
|
3081
|
-
),
|
|
3038
|
+
), Mn = On ? (
|
|
3082
3039
|
// Native
|
|
3083
3040
|
function(t) {
|
|
3084
3041
|
return t.trimEnd();
|
|
@@ -3086,32 +3043,32 @@ var yt = On ? (
|
|
|
3086
3043
|
) : (
|
|
3087
3044
|
// Ponyfill
|
|
3088
3045
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3046
|
+
return t.replace(Hn, "");
|
|
3090
3047
|
}
|
|
3091
3048
|
);
|
|
3092
|
-
function
|
|
3049
|
+
function zt(e, t) {
|
|
3093
3050
|
return new RegExp(e, t);
|
|
3094
3051
|
}
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3052
|
+
var je;
|
|
3053
|
+
if (Ge) {
|
|
3054
|
+
var mt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
|
+
je = function(t, r) {
|
|
3099
3056
|
var n;
|
|
3100
|
-
|
|
3101
|
-
var i =
|
|
3057
|
+
mt.lastIndex = r;
|
|
3058
|
+
var i = mt.exec(t);
|
|
3102
3059
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3103
3060
|
};
|
|
3104
3061
|
} else
|
|
3105
|
-
|
|
3062
|
+
je = function(t, r) {
|
|
3106
3063
|
for (var n = []; ; ) {
|
|
3107
|
-
var i =
|
|
3108
|
-
if (i === void 0 ||
|
|
3064
|
+
var i = Wt(t, r);
|
|
3065
|
+
if (i === void 0 || Zt(i) || Dn(i))
|
|
3109
3066
|
break;
|
|
3110
3067
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3111
3068
|
}
|
|
3112
|
-
return
|
|
3069
|
+
return Fe.apply(void 0, n);
|
|
3113
3070
|
};
|
|
3114
|
-
var
|
|
3071
|
+
var $n = (
|
|
3115
3072
|
/** @class */
|
|
3116
3073
|
function() {
|
|
3117
3074
|
function e(t, r) {
|
|
@@ -3135,14 +3092,14 @@ var Fn = (
|
|
|
3135
3092
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3136
3093
|
var s = this.clonePosition();
|
|
3137
3094
|
this.bump(), i.push({
|
|
3138
|
-
type:
|
|
3095
|
+
type: _.pound,
|
|
3139
3096
|
location: b(s, this.clonePosition())
|
|
3140
3097
|
});
|
|
3141
3098
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3142
3099
|
if (n)
|
|
3143
3100
|
break;
|
|
3144
3101
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3145
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3102
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3146
3103
|
var a = this.parseTag(t, r);
|
|
3147
3104
|
if (a.err)
|
|
3148
3105
|
return a;
|
|
@@ -3163,7 +3120,7 @@ var Fn = (
|
|
|
3163
3120
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3164
3121
|
return {
|
|
3165
3122
|
val: {
|
|
3166
|
-
type:
|
|
3123
|
+
type: _.literal,
|
|
3167
3124
|
value: "<".concat(i, "/>"),
|
|
3168
3125
|
location: b(n, this.clonePosition())
|
|
3169
3126
|
},
|
|
@@ -3175,12 +3132,12 @@ var Fn = (
|
|
|
3175
3132
|
return o;
|
|
3176
3133
|
var a = o.val, s = this.clonePosition();
|
|
3177
3134
|
if (this.bumpIf("</")) {
|
|
3178
|
-
if (this.isEOF() || !
|
|
3135
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3179
3136
|
return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
|
|
3180
3137
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3181
3138
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3182
3139
|
val: {
|
|
3183
|
-
type:
|
|
3140
|
+
type: _.tag,
|
|
3184
3141
|
value: i,
|
|
3185
3142
|
children: a,
|
|
3186
3143
|
location: b(n, this.clonePosition())
|
|
@@ -3193,7 +3150,7 @@ var Fn = (
|
|
|
3193
3150
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3194
3151
|
}, e.prototype.parseTagName = function() {
|
|
3195
3152
|
var t = this.offset();
|
|
3196
|
-
for (this.bump(); !this.isEOF() &&
|
|
3153
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
3197
3154
|
this.bump();
|
|
3198
3155
|
return this.message.slice(t, this.offset());
|
|
3199
3156
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3217,12 +3174,12 @@ var Fn = (
|
|
|
3217
3174
|
}
|
|
3218
3175
|
var l = b(n, this.clonePosition());
|
|
3219
3176
|
return {
|
|
3220
|
-
val: { type:
|
|
3177
|
+
val: { type: _.literal, value: i, location: l },
|
|
3221
3178
|
err: null
|
|
3222
3179
|
};
|
|
3223
3180
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3224
3181
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3225
|
-
!
|
|
3182
|
+
!Rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3226
3183
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3227
3184
|
if (this.isEOF() || this.char() !== 39)
|
|
3228
3185
|
return null;
|
|
@@ -3256,12 +3213,12 @@ var Fn = (
|
|
|
3256
3213
|
r.push(n);
|
|
3257
3214
|
this.bump();
|
|
3258
3215
|
}
|
|
3259
|
-
return
|
|
3216
|
+
return Fe.apply(void 0, r);
|
|
3260
3217
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3261
3218
|
if (this.isEOF())
|
|
3262
3219
|
return null;
|
|
3263
3220
|
var n = this.char();
|
|
3264
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3221
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3265
3222
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3266
3223
|
var n = this.clonePosition();
|
|
3267
3224
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3277,7 +3234,7 @@ var Fn = (
|
|
|
3277
3234
|
case 125:
|
|
3278
3235
|
return this.bump(), {
|
|
3279
3236
|
val: {
|
|
3280
|
-
type:
|
|
3237
|
+
type: _.argument,
|
|
3281
3238
|
// value does not include the opening and closing braces.
|
|
3282
3239
|
value: i,
|
|
3283
3240
|
location: b(n, this.clonePosition())
|
|
@@ -3290,7 +3247,7 @@ var Fn = (
|
|
|
3290
3247
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3291
3248
|
}
|
|
3292
3249
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3293
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3250
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3294
3251
|
this.bumpTo(i);
|
|
3295
3252
|
var o = this.clonePosition(), a = b(t, o);
|
|
3296
3253
|
return { value: n, location: a };
|
|
@@ -3309,44 +3266,44 @@ var Fn = (
|
|
|
3309
3266
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3310
3267
|
if (c.err)
|
|
3311
3268
|
return c;
|
|
3312
|
-
var f =
|
|
3269
|
+
var f = Mn(c.val);
|
|
3313
3270
|
if (f.length === 0)
|
|
3314
3271
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3315
3272
|
var p = b(h, this.clonePosition());
|
|
3316
3273
|
u = { style: f, styleLocation: p };
|
|
3317
3274
|
}
|
|
3318
|
-
var
|
|
3319
|
-
if (
|
|
3320
|
-
return
|
|
3275
|
+
var v = this.tryParseArgumentClose(i);
|
|
3276
|
+
if (v.err)
|
|
3277
|
+
return v;
|
|
3321
3278
|
var m = b(i, this.clonePosition());
|
|
3322
|
-
if (u &&
|
|
3323
|
-
var T =
|
|
3279
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3280
|
+
var T = Cn(u.style.slice(2));
|
|
3324
3281
|
if (s === "number") {
|
|
3325
3282
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3326
3283
|
return c.err ? c : {
|
|
3327
|
-
val: { type:
|
|
3284
|
+
val: { type: _.number, value: n, location: m, style: c.val },
|
|
3328
3285
|
err: null
|
|
3329
3286
|
};
|
|
3330
3287
|
} else {
|
|
3331
3288
|
if (T.length === 0)
|
|
3332
3289
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3333
3290
|
var $ = T;
|
|
3334
|
-
this.locale && ($ =
|
|
3291
|
+
this.locale && ($ = En(T, this.locale));
|
|
3335
3292
|
var f = {
|
|
3336
|
-
type:
|
|
3293
|
+
type: z.dateTime,
|
|
3337
3294
|
pattern: $,
|
|
3338
3295
|
location: u.styleLocation,
|
|
3339
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3340
|
-
},
|
|
3296
|
+
parsedOptions: this.shouldParseSkeletons ? mn($) : {}
|
|
3297
|
+
}, A = s === "date" ? _.date : _.time;
|
|
3341
3298
|
return {
|
|
3342
|
-
val: { type:
|
|
3299
|
+
val: { type: A, value: n, location: m, style: f },
|
|
3343
3300
|
err: null
|
|
3344
3301
|
};
|
|
3345
3302
|
}
|
|
3346
3303
|
}
|
|
3347
3304
|
return {
|
|
3348
3305
|
val: {
|
|
3349
|
-
type: s === "number" ?
|
|
3306
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3350
3307
|
value: n,
|
|
3351
3308
|
location: m,
|
|
3352
3309
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3359,9 +3316,9 @@ var Fn = (
|
|
|
3359
3316
|
case "select": {
|
|
3360
3317
|
var S = this.clonePosition();
|
|
3361
3318
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3362
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3319
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
|
|
3363
3320
|
this.bumpSpace();
|
|
3364
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3321
|
+
var R = this.parseIdentifierIfPossible(), P = 0;
|
|
3365
3322
|
if (s !== "select" && R.value === "offset") {
|
|
3366
3323
|
if (!this.bumpIf(":"))
|
|
3367
3324
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3369,31 +3326,31 @@ var Fn = (
|
|
|
3369
3326
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3370
3327
|
if (c.err)
|
|
3371
3328
|
return c;
|
|
3372
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3329
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
|
|
3373
3330
|
}
|
|
3374
3331
|
var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
|
3375
3332
|
if (D.err)
|
|
3376
3333
|
return D;
|
|
3377
|
-
var
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3380
|
-
var
|
|
3334
|
+
var v = this.tryParseArgumentClose(i);
|
|
3335
|
+
if (v.err)
|
|
3336
|
+
return v;
|
|
3337
|
+
var g = b(i, this.clonePosition());
|
|
3381
3338
|
return s === "select" ? {
|
|
3382
3339
|
val: {
|
|
3383
|
-
type:
|
|
3340
|
+
type: _.select,
|
|
3384
3341
|
value: n,
|
|
3385
|
-
options:
|
|
3386
|
-
location:
|
|
3342
|
+
options: pt(D.val),
|
|
3343
|
+
location: g
|
|
3387
3344
|
},
|
|
3388
3345
|
err: null
|
|
3389
3346
|
} : {
|
|
3390
3347
|
val: {
|
|
3391
|
-
type:
|
|
3348
|
+
type: _.plural,
|
|
3392
3349
|
value: n,
|
|
3393
|
-
options:
|
|
3394
|
-
offset:
|
|
3350
|
+
options: pt(D.val),
|
|
3351
|
+
offset: P,
|
|
3395
3352
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3396
|
-
location:
|
|
3353
|
+
location: g
|
|
3397
3354
|
},
|
|
3398
3355
|
err: null
|
|
3399
3356
|
};
|
|
@@ -3441,16 +3398,16 @@ var Fn = (
|
|
|
3441
3398
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3442
3399
|
var n = [];
|
|
3443
3400
|
try {
|
|
3444
|
-
n =
|
|
3401
|
+
n = bn(t);
|
|
3445
3402
|
} catch {
|
|
3446
3403
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3447
3404
|
}
|
|
3448
3405
|
return {
|
|
3449
3406
|
val: {
|
|
3450
|
-
type:
|
|
3407
|
+
type: z.number,
|
|
3451
3408
|
tokens: n,
|
|
3452
3409
|
location: r,
|
|
3453
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3410
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
3454
3411
|
},
|
|
3455
3412
|
err: null
|
|
3456
3413
|
};
|
|
@@ -3472,16 +3429,16 @@ var Fn = (
|
|
|
3472
3429
|
var p = this.clonePosition();
|
|
3473
3430
|
if (!this.bumpIf("{"))
|
|
3474
3431
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3475
|
-
var
|
|
3476
|
-
if (
|
|
3477
|
-
return
|
|
3432
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3433
|
+
if (v.err)
|
|
3434
|
+
return v;
|
|
3478
3435
|
var m = this.tryParseArgumentClose(p);
|
|
3479
3436
|
if (m.err)
|
|
3480
3437
|
return m;
|
|
3481
3438
|
s.push([
|
|
3482
3439
|
u,
|
|
3483
3440
|
{
|
|
3484
|
-
value:
|
|
3441
|
+
value: v.val,
|
|
3485
3442
|
location: b(p, this.clonePosition())
|
|
3486
3443
|
}
|
|
3487
3444
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
@@ -3498,7 +3455,7 @@ var Fn = (
|
|
|
3498
3455
|
break;
|
|
3499
3456
|
}
|
|
3500
3457
|
var l = b(i, this.clonePosition());
|
|
3501
|
-
return o ? (a *= n,
|
|
3458
|
+
return o ? (a *= n, Nn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3502
3459
|
}, e.prototype.offset = function() {
|
|
3503
3460
|
return this.position.offset;
|
|
3504
3461
|
}, e.prototype.isEOF = function() {
|
|
@@ -3513,7 +3470,7 @@ var Fn = (
|
|
|
3513
3470
|
var t = this.position.offset;
|
|
3514
3471
|
if (t >= this.message.length)
|
|
3515
3472
|
throw Error("out of bound");
|
|
3516
|
-
var r =
|
|
3473
|
+
var r = Wt(this.message, t);
|
|
3517
3474
|
if (r === void 0)
|
|
3518
3475
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3519
3476
|
return r;
|
|
@@ -3532,7 +3489,7 @@ var Fn = (
|
|
|
3532
3489
|
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
3490
|
}
|
|
3534
3491
|
}, e.prototype.bumpIf = function(t) {
|
|
3535
|
-
if (
|
|
3492
|
+
if (ft(this.message, t, this.offset())) {
|
|
3536
3493
|
for (var r = 0; r < t.length; r++)
|
|
3537
3494
|
this.bump();
|
|
3538
3495
|
return !0;
|
|
@@ -3554,7 +3511,7 @@ var Fn = (
|
|
|
3554
3511
|
break;
|
|
3555
3512
|
}
|
|
3556
3513
|
}, e.prototype.bumpSpace = function() {
|
|
3557
|
-
for (; !this.isEOF() &&
|
|
3514
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3558
3515
|
this.bump();
|
|
3559
3516
|
}, e.prototype.peek = function() {
|
|
3560
3517
|
if (this.isEOF())
|
|
@@ -3564,47 +3521,47 @@ var Fn = (
|
|
|
3564
3521
|
}, e;
|
|
3565
3522
|
}()
|
|
3566
3523
|
);
|
|
3567
|
-
function
|
|
3524
|
+
function ke(e) {
|
|
3568
3525
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3569
3526
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3527
|
+
function Rn(e) {
|
|
3528
|
+
return ke(e) || e === 47;
|
|
3572
3529
|
}
|
|
3573
|
-
function
|
|
3530
|
+
function Un(e) {
|
|
3574
3531
|
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
3532
|
}
|
|
3576
|
-
function
|
|
3533
|
+
function Zt(e) {
|
|
3577
3534
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3578
3535
|
}
|
|
3579
|
-
function
|
|
3536
|
+
function Dn(e) {
|
|
3580
3537
|
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
3538
|
}
|
|
3582
|
-
function
|
|
3539
|
+
function Ve(e) {
|
|
3583
3540
|
e.forEach(function(t) {
|
|
3584
|
-
if (delete t.location,
|
|
3541
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3585
3542
|
for (var r in t.options)
|
|
3586
|
-
delete t.options[r].location,
|
|
3543
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3587
3544
|
else
|
|
3588
|
-
|
|
3545
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
|
|
3589
3546
|
});
|
|
3590
3547
|
}
|
|
3591
|
-
function
|
|
3592
|
-
t === void 0 && (t = {}), t =
|
|
3593
|
-
var r = new
|
|
3548
|
+
function Gn(e, t) {
|
|
3549
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3550
|
+
var r = new $n(e, t).parse();
|
|
3594
3551
|
if (r.err) {
|
|
3595
3552
|
var n = SyntaxError(d[r.err.kind]);
|
|
3596
3553
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3597
3554
|
}
|
|
3598
|
-
return t?.captureLocation ||
|
|
3555
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3599
3556
|
}
|
|
3600
|
-
var
|
|
3557
|
+
var Z;
|
|
3601
3558
|
(function(e) {
|
|
3602
3559
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3603
|
-
})(
|
|
3604
|
-
var
|
|
3560
|
+
})(Z || (Z = {}));
|
|
3561
|
+
var _e = (
|
|
3605
3562
|
/** @class */
|
|
3606
3563
|
function(e) {
|
|
3607
|
-
|
|
3564
|
+
N(t, e);
|
|
3608
3565
|
function t(r, n, i) {
|
|
3609
3566
|
var o = e.call(this, r) || this;
|
|
3610
3567
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3613,48 +3570,48 @@ var xe = (
|
|
|
3613
3570
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3614
3571
|
}, t;
|
|
3615
3572
|
}(Error)
|
|
3616
|
-
),
|
|
3573
|
+
), dt = (
|
|
3617
3574
|
/** @class */
|
|
3618
3575
|
function(e) {
|
|
3619
|
-
|
|
3576
|
+
N(t, e);
|
|
3620
3577
|
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('", "'), '"'),
|
|
3578
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3622
3579
|
}
|
|
3623
3580
|
return t;
|
|
3624
|
-
}(
|
|
3625
|
-
),
|
|
3581
|
+
}(_e)
|
|
3582
|
+
), Fn = (
|
|
3626
3583
|
/** @class */
|
|
3627
3584
|
function(e) {
|
|
3628
|
-
|
|
3585
|
+
N(t, e);
|
|
3629
3586
|
function t(r, n, i) {
|
|
3630
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3587
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3631
3588
|
}
|
|
3632
3589
|
return t;
|
|
3633
|
-
}(
|
|
3634
|
-
),
|
|
3590
|
+
}(_e)
|
|
3591
|
+
), jn = (
|
|
3635
3592
|
/** @class */
|
|
3636
3593
|
function(e) {
|
|
3637
|
-
|
|
3594
|
+
N(t, e);
|
|
3638
3595
|
function t(r, n) {
|
|
3639
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3596
|
+
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
3597
|
}
|
|
3641
3598
|
return t;
|
|
3642
|
-
}(
|
|
3599
|
+
}(_e)
|
|
3643
3600
|
), H;
|
|
3644
3601
|
(function(e) {
|
|
3645
3602
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3646
3603
|
})(H || (H = {}));
|
|
3647
|
-
function
|
|
3604
|
+
function kn(e) {
|
|
3648
3605
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3649
3606
|
var n = t[t.length - 1];
|
|
3650
3607
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3651
3608
|
}, []);
|
|
3652
3609
|
}
|
|
3653
|
-
function
|
|
3610
|
+
function Vn(e) {
|
|
3654
3611
|
return typeof e == "function";
|
|
3655
3612
|
}
|
|
3656
3613
|
function me(e, t, r, n, i, o, a) {
|
|
3657
|
-
if (e.length === 1 &&
|
|
3614
|
+
if (e.length === 1 && ut(e[0]))
|
|
3658
3615
|
return [
|
|
3659
3616
|
{
|
|
3660
3617
|
type: H.literal,
|
|
@@ -3663,14 +3620,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3663
3620
|
];
|
|
3664
3621
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3665
3622
|
var h = u[l];
|
|
3666
|
-
if (
|
|
3623
|
+
if (ut(h)) {
|
|
3667
3624
|
s.push({
|
|
3668
3625
|
type: H.literal,
|
|
3669
3626
|
value: h.value
|
|
3670
3627
|
});
|
|
3671
3628
|
continue;
|
|
3672
3629
|
}
|
|
3673
|
-
if (
|
|
3630
|
+
if (fn(h)) {
|
|
3674
3631
|
typeof o == "number" && s.push({
|
|
3675
3632
|
type: H.literal,
|
|
3676
3633
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3679,89 +3636,89 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3679
3636
|
}
|
|
3680
3637
|
var c = h.value;
|
|
3681
3638
|
if (!(i && c in i))
|
|
3682
|
-
throw new
|
|
3639
|
+
throw new jn(c, a);
|
|
3683
3640
|
var f = i[c];
|
|
3684
|
-
if (
|
|
3641
|
+
if (cn(h)) {
|
|
3685
3642
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3686
3643
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3687
3644
|
value: f
|
|
3688
3645
|
});
|
|
3689
3646
|
continue;
|
|
3690
3647
|
}
|
|
3691
|
-
if (
|
|
3692
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3648
|
+
if ($t(h)) {
|
|
3649
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3693
3650
|
s.push({
|
|
3694
3651
|
type: H.literal,
|
|
3695
3652
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3696
3653
|
});
|
|
3697
3654
|
continue;
|
|
3698
3655
|
}
|
|
3699
|
-
if (
|
|
3700
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3656
|
+
if (Rt(h)) {
|
|
3657
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3701
3658
|
s.push({
|
|
3702
3659
|
type: H.literal,
|
|
3703
3660
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3704
3661
|
});
|
|
3705
3662
|
continue;
|
|
3706
3663
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3664
|
+
if (Mt(h)) {
|
|
3665
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3709
3666
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3710
3667
|
type: H.literal,
|
|
3711
3668
|
value: r.getNumberFormat(t, p).format(f)
|
|
3712
3669
|
});
|
|
3713
3670
|
continue;
|
|
3714
3671
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3717
|
-
if (!
|
|
3718
|
-
throw new
|
|
3719
|
-
var $ = me(
|
|
3720
|
-
return
|
|
3672
|
+
if (Gt(h)) {
|
|
3673
|
+
var v = h.children, m = h.value, T = i[m];
|
|
3674
|
+
if (!Vn(T))
|
|
3675
|
+
throw new Fn(m, "function", a);
|
|
3676
|
+
var $ = me(v, t, r, n, i, o), A = T($.map(function(P) {
|
|
3677
|
+
return P.value;
|
|
3721
3678
|
}));
|
|
3722
|
-
Array.isArray(
|
|
3679
|
+
Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(P) {
|
|
3723
3680
|
return {
|
|
3724
|
-
type: typeof
|
|
3725
|
-
value:
|
|
3681
|
+
type: typeof P == "string" ? H.literal : H.object,
|
|
3682
|
+
value: P
|
|
3726
3683
|
};
|
|
3727
3684
|
}));
|
|
3728
3685
|
}
|
|
3729
|
-
if (
|
|
3686
|
+
if (Ut(h)) {
|
|
3730
3687
|
var S = h.options[f] || h.options.other;
|
|
3731
3688
|
if (!S)
|
|
3732
|
-
throw new
|
|
3689
|
+
throw new dt(h.value, f, Object.keys(h.options), a);
|
|
3733
3690
|
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3734
3691
|
continue;
|
|
3735
3692
|
}
|
|
3736
|
-
if (
|
|
3693
|
+
if (Dt(h)) {
|
|
3737
3694
|
var S = h.options["=".concat(f)];
|
|
3738
3695
|
if (!S) {
|
|
3739
3696
|
if (!Intl.PluralRules)
|
|
3740
|
-
throw new
|
|
3697
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3741
3698
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3742
|
-
`,
|
|
3699
|
+
`, Z.MISSING_INTL_API, a);
|
|
3743
3700
|
var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3744
3701
|
S = h.options[R] || h.options.other;
|
|
3745
3702
|
}
|
|
3746
3703
|
if (!S)
|
|
3747
|
-
throw new
|
|
3704
|
+
throw new dt(h.value, f, Object.keys(h.options), a);
|
|
3748
3705
|
s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3749
3706
|
continue;
|
|
3750
3707
|
}
|
|
3751
3708
|
}
|
|
3752
|
-
return
|
|
3709
|
+
return kn(s);
|
|
3753
3710
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return t ?
|
|
3756
|
-
return r[n] =
|
|
3711
|
+
function Xn(e, t) {
|
|
3712
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3713
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3757
3714
|
}, {})) : e;
|
|
3758
3715
|
}
|
|
3759
|
-
function
|
|
3716
|
+
function Wn(e, t) {
|
|
3760
3717
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3761
|
-
return r[n] =
|
|
3762
|
-
},
|
|
3718
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
3719
|
+
}, y({}, e)) : e;
|
|
3763
3720
|
}
|
|
3764
|
-
function
|
|
3721
|
+
function Ae(e) {
|
|
3765
3722
|
return {
|
|
3766
3723
|
create: function() {
|
|
3767
3724
|
return {
|
|
@@ -3775,39 +3732,39 @@ function Ie(e) {
|
|
|
3775
3732
|
}
|
|
3776
3733
|
};
|
|
3777
3734
|
}
|
|
3778
|
-
function
|
|
3735
|
+
function zn(e) {
|
|
3779
3736
|
return e === void 0 && (e = {
|
|
3780
3737
|
number: {},
|
|
3781
3738
|
dateTime: {},
|
|
3782
3739
|
pluralRules: {}
|
|
3783
3740
|
}), {
|
|
3784
|
-
getNumberFormat:
|
|
3741
|
+
getNumberFormat: Se(function() {
|
|
3785
3742
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3743
|
r[n] = arguments[n];
|
|
3787
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3744
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3788
3745
|
}, {
|
|
3789
|
-
cache:
|
|
3790
|
-
strategy:
|
|
3746
|
+
cache: Ae(e.number),
|
|
3747
|
+
strategy: we.variadic
|
|
3791
3748
|
}),
|
|
3792
|
-
getDateTimeFormat:
|
|
3749
|
+
getDateTimeFormat: Se(function() {
|
|
3793
3750
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3751
|
r[n] = arguments[n];
|
|
3795
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3752
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3796
3753
|
}, {
|
|
3797
|
-
cache:
|
|
3798
|
-
strategy:
|
|
3754
|
+
cache: Ae(e.dateTime),
|
|
3755
|
+
strategy: we.variadic
|
|
3799
3756
|
}),
|
|
3800
|
-
getPluralRules:
|
|
3757
|
+
getPluralRules: Se(function() {
|
|
3801
3758
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3802
3759
|
r[n] = arguments[n];
|
|
3803
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3760
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3804
3761
|
}, {
|
|
3805
|
-
cache:
|
|
3806
|
-
strategy:
|
|
3762
|
+
cache: Ae(e.pluralRules),
|
|
3763
|
+
strategy: we.variadic
|
|
3807
3764
|
})
|
|
3808
3765
|
};
|
|
3809
3766
|
}
|
|
3810
|
-
var
|
|
3767
|
+
var Zn = (
|
|
3811
3768
|
/** @class */
|
|
3812
3769
|
function() {
|
|
3813
3770
|
function e(t, r, n, i) {
|
|
@@ -3839,13 +3796,13 @@ var Kn = (
|
|
|
3839
3796
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3840
3797
|
var a = i || {};
|
|
3841
3798
|
a.formatters;
|
|
3842
|
-
var s =
|
|
3843
|
-
this.ast = e.__parse(t,
|
|
3799
|
+
var s = Sr(a, ["formatters"]);
|
|
3800
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3844
3801
|
} else
|
|
3845
3802
|
this.ast = t;
|
|
3846
3803
|
if (!Array.isArray(this.ast))
|
|
3847
3804
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3848
|
-
this.formats =
|
|
3805
|
+
this.formats = Wn(e.formats, n), this.formatters = i && i.formatters || zn(this.formatterCache);
|
|
3849
3806
|
}
|
|
3850
3807
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3851
3808
|
get: function() {
|
|
@@ -3858,7 +3815,7 @@ var Kn = (
|
|
|
3858
3815
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3859
3816
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3860
3817
|
}
|
|
3861
|
-
}, e.__parse =
|
|
3818
|
+
}, e.__parse = Gn, e.formats = {
|
|
3862
3819
|
number: {
|
|
3863
3820
|
integer: {
|
|
3864
3821
|
maximumFractionDigits: 0
|
|
@@ -3919,7 +3876,7 @@ var Kn = (
|
|
|
3919
3876
|
}, e;
|
|
3920
3877
|
}()
|
|
3921
3878
|
);
|
|
3922
|
-
function
|
|
3879
|
+
function Qn(e, t) {
|
|
3923
3880
|
if (t == null)
|
|
3924
3881
|
return;
|
|
3925
3882
|
if (t in e)
|
|
@@ -3940,92 +3897,92 @@ function ei(e, t) {
|
|
|
3940
3897
|
n = void 0;
|
|
3941
3898
|
return n;
|
|
3942
3899
|
}
|
|
3943
|
-
const M = {},
|
|
3900
|
+
const M = {}, qn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Qt = (e, t) => {
|
|
3944
3901
|
if (t == null)
|
|
3945
3902
|
return;
|
|
3946
3903
|
if (t in M && e in M[t])
|
|
3947
3904
|
return M[t][e];
|
|
3948
|
-
const r =
|
|
3905
|
+
const r = Ee(t);
|
|
3949
3906
|
for (let n = 0; n < r.length; n++) {
|
|
3950
|
-
const i = r[n], o =
|
|
3907
|
+
const i = r[n], o = Yn(i, e);
|
|
3951
3908
|
if (o)
|
|
3952
|
-
return
|
|
3909
|
+
return qn(e, t, o);
|
|
3953
3910
|
}
|
|
3954
3911
|
};
|
|
3955
|
-
let
|
|
3956
|
-
const ue =
|
|
3957
|
-
function
|
|
3958
|
-
return
|
|
3912
|
+
let Qe;
|
|
3913
|
+
const ue = ve({});
|
|
3914
|
+
function Jn(e) {
|
|
3915
|
+
return Qe[e] || null;
|
|
3959
3916
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return e in
|
|
3917
|
+
function qt(e) {
|
|
3918
|
+
return e in Qe;
|
|
3962
3919
|
}
|
|
3963
|
-
function
|
|
3964
|
-
if (!
|
|
3920
|
+
function Yn(e, t) {
|
|
3921
|
+
if (!qt(e))
|
|
3965
3922
|
return null;
|
|
3966
|
-
const r =
|
|
3967
|
-
return
|
|
3923
|
+
const r = Jn(e);
|
|
3924
|
+
return Qn(r, t);
|
|
3968
3925
|
}
|
|
3969
|
-
function
|
|
3926
|
+
function Kn(e) {
|
|
3970
3927
|
if (e == null)
|
|
3971
3928
|
return;
|
|
3972
|
-
const t =
|
|
3929
|
+
const t = Ee(e);
|
|
3973
3930
|
for (let r = 0; r < t.length; r++) {
|
|
3974
3931
|
const n = t[r];
|
|
3975
|
-
if (
|
|
3932
|
+
if (qt(n))
|
|
3976
3933
|
return n;
|
|
3977
3934
|
}
|
|
3978
3935
|
}
|
|
3979
|
-
function
|
|
3980
|
-
delete M[e], ue.update((r) => (r[e] =
|
|
3936
|
+
function Jt(e, ...t) {
|
|
3937
|
+
delete M[e], ue.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3981
3938
|
}
|
|
3982
|
-
|
|
3939
|
+
J(
|
|
3983
3940
|
[ue],
|
|
3984
3941
|
([e]) => Object.keys(e)
|
|
3985
3942
|
);
|
|
3986
|
-
ue.subscribe((e) =>
|
|
3943
|
+
ue.subscribe((e) => Qe = e);
|
|
3987
3944
|
const de = {};
|
|
3988
|
-
function
|
|
3945
|
+
function ei(e, t) {
|
|
3989
3946
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3990
3947
|
}
|
|
3991
|
-
function
|
|
3948
|
+
function Yt(e) {
|
|
3992
3949
|
return de[e];
|
|
3993
3950
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return
|
|
3996
|
-
const r =
|
|
3951
|
+
function ti(e) {
|
|
3952
|
+
return Ee(e).map((t) => {
|
|
3953
|
+
const r = Yt(t);
|
|
3997
3954
|
return [t, r ? [...r] : []];
|
|
3998
3955
|
}).filter(([, t]) => t.length > 0);
|
|
3999
3956
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return e == null ? !1 :
|
|
3957
|
+
function Xe(e) {
|
|
3958
|
+
return e == null ? !1 : Ee(e).some(
|
|
4002
3959
|
(t) => {
|
|
4003
3960
|
var r;
|
|
4004
|
-
return (r =
|
|
3961
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
4005
3962
|
}
|
|
4006
3963
|
);
|
|
4007
3964
|
}
|
|
4008
|
-
function
|
|
3965
|
+
function ri(e, t) {
|
|
4009
3966
|
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
|
|
3967
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3968
|
+
).then((n) => Jt(e, ...n));
|
|
3969
|
+
}
|
|
3970
|
+
const ee = {};
|
|
3971
|
+
function Kt(e) {
|
|
3972
|
+
if (!Xe(e))
|
|
3973
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
3974
|
+
const t = ti(e);
|
|
3975
|
+
return ee[e] = Promise.all(
|
|
4019
3976
|
t.map(
|
|
4020
|
-
([r, n]) =>
|
|
3977
|
+
([r, n]) => ri(r, n)
|
|
4021
3978
|
)
|
|
4022
3979
|
).then(() => {
|
|
4023
|
-
if (
|
|
4024
|
-
return
|
|
4025
|
-
delete
|
|
4026
|
-
}),
|
|
3980
|
+
if (Xe(e))
|
|
3981
|
+
return Kt(e);
|
|
3982
|
+
delete ee[e];
|
|
3983
|
+
}), ee[e];
|
|
4027
3984
|
}
|
|
4028
|
-
const
|
|
3985
|
+
const ni = {
|
|
4029
3986
|
number: {
|
|
4030
3987
|
scientific: { notation: "scientific" },
|
|
4031
3988
|
engineering: { notation: "engineering" },
|
|
@@ -4054,135 +4011,135 @@ const ui = {
|
|
|
4054
4011
|
timeZoneName: "short"
|
|
4055
4012
|
}
|
|
4056
4013
|
}
|
|
4057
|
-
},
|
|
4014
|
+
}, ii = {
|
|
4058
4015
|
fallbackLocale: null,
|
|
4059
4016
|
loadingDelay: 200,
|
|
4060
|
-
formats:
|
|
4017
|
+
formats: ni,
|
|
4061
4018
|
warnOnMissingMessages: !0,
|
|
4062
4019
|
handleMissingMessage: void 0,
|
|
4063
4020
|
ignoreTag: !0
|
|
4064
|
-
},
|
|
4065
|
-
function
|
|
4066
|
-
return
|
|
4021
|
+
}, oi = ii;
|
|
4022
|
+
function Q() {
|
|
4023
|
+
return oi;
|
|
4067
4024
|
}
|
|
4068
|
-
const
|
|
4069
|
-
var
|
|
4025
|
+
const Pe = ve(!1);
|
|
4026
|
+
var si = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
|
|
4070
4027
|
for (var r in t || (t = {}))
|
|
4071
|
-
|
|
4072
|
-
if (
|
|
4073
|
-
for (var r of
|
|
4074
|
-
|
|
4028
|
+
hi.call(t, r) && yt(e, r, t[r]);
|
|
4029
|
+
if (bt)
|
|
4030
|
+
for (var r of bt(t))
|
|
4031
|
+
li.call(t, r) && yt(e, r, t[r]);
|
|
4075
4032
|
return e;
|
|
4076
|
-
},
|
|
4077
|
-
let
|
|
4078
|
-
const
|
|
4079
|
-
function
|
|
4033
|
+
}, fi = (e, t) => ai(e, ui(t));
|
|
4034
|
+
let We;
|
|
4035
|
+
const be = ve(null);
|
|
4036
|
+
function gt(e) {
|
|
4080
4037
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4081
4038
|
}
|
|
4082
|
-
function
|
|
4083
|
-
const r =
|
|
4084
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4039
|
+
function Ee(e, t = Q().fallbackLocale) {
|
|
4040
|
+
const r = gt(e);
|
|
4041
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4085
4042
|
}
|
|
4086
4043
|
function U() {
|
|
4087
|
-
return
|
|
4044
|
+
return We ?? void 0;
|
|
4088
4045
|
}
|
|
4089
|
-
|
|
4090
|
-
|
|
4046
|
+
be.subscribe((e) => {
|
|
4047
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4091
4048
|
});
|
|
4092
|
-
const
|
|
4093
|
-
if (e &&
|
|
4094
|
-
const { loadingDelay: t } =
|
|
4049
|
+
const pi = (e) => {
|
|
4050
|
+
if (e && Kn(e) && Xe(e)) {
|
|
4051
|
+
const { loadingDelay: t } = Q();
|
|
4095
4052
|
let r;
|
|
4096
4053
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4097
|
-
() =>
|
|
4054
|
+
() => Pe.set(!0),
|
|
4098
4055
|
t
|
|
4099
|
-
) :
|
|
4100
|
-
|
|
4056
|
+
) : Pe.set(!0), Kt(e).then(() => {
|
|
4057
|
+
be.set(e);
|
|
4101
4058
|
}).finally(() => {
|
|
4102
|
-
clearTimeout(r),
|
|
4059
|
+
clearTimeout(r), Pe.set(!1);
|
|
4103
4060
|
});
|
|
4104
4061
|
}
|
|
4105
|
-
return
|
|
4106
|
-
},
|
|
4107
|
-
set:
|
|
4108
|
-
}),
|
|
4062
|
+
return be.set(e);
|
|
4063
|
+
}, Y = fi(ci({}, be), {
|
|
4064
|
+
set: pi
|
|
4065
|
+
}), xe = (e) => {
|
|
4109
4066
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4110
4067
|
return (n) => {
|
|
4111
4068
|
const i = JSON.stringify(n);
|
|
4112
4069
|
return i in t ? t[i] : t[i] = e(n);
|
|
4113
4070
|
};
|
|
4114
4071
|
};
|
|
4115
|
-
var
|
|
4072
|
+
var mi = Object.defineProperty, ye = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4116
4073
|
for (var r in t || (t = {}))
|
|
4117
|
-
|
|
4118
|
-
if (
|
|
4119
|
-
for (var r of
|
|
4120
|
-
|
|
4074
|
+
er.call(t, r) && vt(e, r, t[r]);
|
|
4075
|
+
if (ye)
|
|
4076
|
+
for (var r of ye(t))
|
|
4077
|
+
tr.call(t, r) && vt(e, r, t[r]);
|
|
4121
4078
|
return e;
|
|
4122
|
-
},
|
|
4079
|
+
}, K = (e, t) => {
|
|
4123
4080
|
var r = {};
|
|
4124
4081
|
for (var n in e)
|
|
4125
|
-
|
|
4126
|
-
if (e != null &&
|
|
4127
|
-
for (var n of
|
|
4128
|
-
t.indexOf(n) < 0 &&
|
|
4082
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4083
|
+
if (e != null && ye)
|
|
4084
|
+
for (var n of ye(e))
|
|
4085
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
4129
4086
|
return r;
|
|
4130
4087
|
};
|
|
4131
|
-
const
|
|
4132
|
-
const { formats: r } =
|
|
4088
|
+
const oe = (e, t) => {
|
|
4089
|
+
const { formats: r } = Q();
|
|
4133
4090
|
if (e in r && t in r[e])
|
|
4134
4091
|
return r[e][t];
|
|
4135
4092
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4136
|
-
},
|
|
4093
|
+
}, di = xe(
|
|
4137
4094
|
(e) => {
|
|
4138
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4095
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4139
4096
|
if (r == null)
|
|
4140
4097
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4141
|
-
return n && (i =
|
|
4098
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4142
4099
|
}
|
|
4143
|
-
),
|
|
4100
|
+
), bi = xe(
|
|
4144
4101
|
(e) => {
|
|
4145
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4102
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4146
4103
|
if (r == null)
|
|
4147
4104
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4148
|
-
return n ? i =
|
|
4105
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4149
4106
|
}
|
|
4150
|
-
),
|
|
4107
|
+
), yi = xe(
|
|
4151
4108
|
(e) => {
|
|
4152
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4109
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4153
4110
|
if (r == null)
|
|
4154
4111
|
throw new Error(
|
|
4155
4112
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4156
4113
|
);
|
|
4157
|
-
return n ? i =
|
|
4114
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4158
4115
|
}
|
|
4159
|
-
),
|
|
4116
|
+
), gi = (e = {}) => {
|
|
4160
4117
|
var t = e, {
|
|
4161
4118
|
locale: r = U()
|
|
4162
|
-
} = t, n =
|
|
4119
|
+
} = t, n = K(t, [
|
|
4163
4120
|
"locale"
|
|
4164
4121
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4122
|
+
return di(qe({ locale: r }, n));
|
|
4123
|
+
}, vi = (e = {}) => {
|
|
4167
4124
|
var t = e, {
|
|
4168
4125
|
locale: r = U()
|
|
4169
|
-
} = t, n =
|
|
4126
|
+
} = t, n = K(t, [
|
|
4170
4127
|
"locale"
|
|
4171
4128
|
]);
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4129
|
+
return bi(qe({ locale: r }, n));
|
|
4130
|
+
}, _i = (e = {}) => {
|
|
4174
4131
|
var t = e, {
|
|
4175
4132
|
locale: r = U()
|
|
4176
|
-
} = t, n =
|
|
4133
|
+
} = t, n = K(t, [
|
|
4177
4134
|
"locale"
|
|
4178
4135
|
]);
|
|
4179
|
-
return
|
|
4180
|
-
},
|
|
4136
|
+
return yi(qe({ locale: r }, n));
|
|
4137
|
+
}, Ei = xe(
|
|
4181
4138
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4182
|
-
(e, t = U()) => new
|
|
4183
|
-
ignoreTag:
|
|
4139
|
+
(e, t = U()) => new Zn(e, t, Q().formats, {
|
|
4140
|
+
ignoreTag: Q().ignoreTag
|
|
4184
4141
|
})
|
|
4185
|
-
),
|
|
4142
|
+
), xi = (e, t = {}) => {
|
|
4186
4143
|
var r, n, i, o;
|
|
4187
4144
|
let a = t;
|
|
4188
4145
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4195,9 +4152,9 @@ const ie = (e, t) => {
|
|
|
4195
4152
|
throw new Error(
|
|
4196
4153
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4197
4154
|
);
|
|
4198
|
-
let h =
|
|
4155
|
+
let h = Qt(e, l);
|
|
4199
4156
|
if (!h)
|
|
4200
|
-
h = (o = (i = (n = (r =
|
|
4157
|
+
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
4158
|
else if (typeof h != "string")
|
|
4202
4159
|
return console.warn(
|
|
4203
4160
|
`[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 +4163,7 @@ const ie = (e, t) => {
|
|
|
4206
4163
|
return h;
|
|
4207
4164
|
let c = h;
|
|
4208
4165
|
try {
|
|
4209
|
-
c =
|
|
4166
|
+
c = Ei(h, l).format(s);
|
|
4210
4167
|
} catch (f) {
|
|
4211
4168
|
f instanceof Error && console.warn(
|
|
4212
4169
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4214,20 +4171,20 @@ const ie = (e, t) => {
|
|
|
4214
4171
|
);
|
|
4215
4172
|
}
|
|
4216
4173
|
return c;
|
|
4217
|
-
},
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
window.emWidgets = { topic:
|
|
4223
|
-
const
|
|
4224
|
-
function
|
|
4225
|
-
|
|
4226
|
-
}
|
|
4227
|
-
function
|
|
4228
|
-
|
|
4229
|
-
}
|
|
4230
|
-
const
|
|
4174
|
+
}, Ti = (e, t) => _i(t).format(e), Hi = (e, t) => vi(t).format(e), Si = (e, t) => gi(t).format(e), wi = (e, t = U()) => Qt(e, t), Bi = J([Y, ue], () => xi);
|
|
4175
|
+
J([Y], () => Ti);
|
|
4176
|
+
J([Y], () => Hi);
|
|
4177
|
+
J([Y], () => Si);
|
|
4178
|
+
J([Y, ue], () => wi);
|
|
4179
|
+
window.emWidgets = { topic: Dr };
|
|
4180
|
+
const Ai = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4181
|
+
function _t(e, t) {
|
|
4182
|
+
Jt(e, t);
|
|
4183
|
+
}
|
|
4184
|
+
function Pi(e) {
|
|
4185
|
+
Y.set(e);
|
|
4186
|
+
}
|
|
4187
|
+
const Et = {
|
|
4231
4188
|
en: {
|
|
4232
4189
|
titleTransactionHistory: "Transaction History",
|
|
4233
4190
|
loading: "Loading, please wait ..."
|
|
@@ -4269,13 +4226,13 @@ const wt = {
|
|
|
4269
4226
|
loading: "Loading, please wait ..."
|
|
4270
4227
|
}
|
|
4271
4228
|
};
|
|
4272
|
-
function
|
|
4229
|
+
function Oi(e, t) {
|
|
4273
4230
|
if (e) {
|
|
4274
4231
|
const r = document.createElement("style");
|
|
4275
4232
|
r.innerHTML = t, e.appendChild(r);
|
|
4276
4233
|
}
|
|
4277
4234
|
}
|
|
4278
|
-
function
|
|
4235
|
+
function Ii(e, t) {
|
|
4279
4236
|
const r = new URL(t);
|
|
4280
4237
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4281
4238
|
const i = document.createElement("style");
|
|
@@ -4284,7 +4241,7 @@ function $i(e, t) {
|
|
|
4284
4241
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4285
4242
|
});
|
|
4286
4243
|
}
|
|
4287
|
-
function
|
|
4244
|
+
function Ni(e, t, r) {
|
|
4288
4245
|
if (window.emMessageBus) {
|
|
4289
4246
|
const n = document.createElement("style");
|
|
4290
4247
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4292,20 +4249,20 @@ function Ri(e, t, r) {
|
|
|
4292
4249
|
});
|
|
4293
4250
|
}
|
|
4294
4251
|
}
|
|
4295
|
-
function
|
|
4296
|
-
|
|
4252
|
+
function Li(e) {
|
|
4253
|
+
ir(e, "svelte-1v10tii", ".TransactionHistoryWrapper{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%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{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))}.TransactionHistoryTitle{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)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4297
4254
|
}
|
|
4298
|
-
function
|
|
4255
|
+
function Ci(e) {
|
|
4299
4256
|
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4300
4257
|
/*$_*/
|
|
4301
4258
|
e[3]("titleTransactionHistory") + ""
|
|
4302
|
-
), f, p,
|
|
4259
|
+
), f, p, v;
|
|
4303
4260
|
return {
|
|
4304
4261
|
c() {
|
|
4305
|
-
t =
|
|
4262
|
+
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Oe(), 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", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4306
4263
|
},
|
|
4307
4264
|
m(m, T) {
|
|
4308
|
-
|
|
4265
|
+
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v = ar(
|
|
4309
4266
|
t,
|
|
4310
4267
|
"click",
|
|
4311
4268
|
/*click_handler*/
|
|
@@ -4315,119 +4272,119 @@ function Di(e) {
|
|
|
4315
4272
|
p(m, T) {
|
|
4316
4273
|
T & /*$_*/
|
|
4317
4274
|
8 && c !== (c = /*$_*/
|
|
4318
|
-
m[3]("titleTransactionHistory") + "") &&
|
|
4275
|
+
m[3]("titleTransactionHistory") + "") && Ze(f, c);
|
|
4319
4276
|
},
|
|
4320
4277
|
d(m) {
|
|
4321
|
-
m &&
|
|
4278
|
+
m && q(t), p = !1, v();
|
|
4322
4279
|
}
|
|
4323
4280
|
};
|
|
4324
4281
|
}
|
|
4325
|
-
function
|
|
4282
|
+
function Mi(e) {
|
|
4326
4283
|
let t, r, n;
|
|
4327
4284
|
return {
|
|
4328
4285
|
c() {
|
|
4329
|
-
t =
|
|
4286
|
+
t = I("div"), r = I("iframe"), Ye(r.src, n = /*iframeUrl*/
|
|
4330
4287
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4331
4288
|
},
|
|
4332
4289
|
m(i, o) {
|
|
4333
|
-
|
|
4290
|
+
ae(i, t, o), x(t, r);
|
|
4334
4291
|
},
|
|
4335
4292
|
p(i, o) {
|
|
4336
4293
|
o & /*iframeUrl*/
|
|
4337
|
-
4 && !
|
|
4294
|
+
4 && !Ye(r.src, n = /*iframeUrl*/
|
|
4338
4295
|
i[2]) && E(r, "src", n);
|
|
4339
4296
|
},
|
|
4340
4297
|
d(i) {
|
|
4341
|
-
i &&
|
|
4298
|
+
i && q(t);
|
|
4342
4299
|
}
|
|
4343
4300
|
};
|
|
4344
4301
|
}
|
|
4345
|
-
function
|
|
4302
|
+
function $i(e) {
|
|
4346
4303
|
let t, r = (
|
|
4347
4304
|
/*$_*/
|
|
4348
4305
|
e[3]("loading") + ""
|
|
4349
4306
|
), n;
|
|
4350
4307
|
return {
|
|
4351
4308
|
c() {
|
|
4352
|
-
t =
|
|
4309
|
+
t = I("p"), n = re(r);
|
|
4353
4310
|
},
|
|
4354
4311
|
m(i, o) {
|
|
4355
|
-
|
|
4312
|
+
ae(i, t, o), x(t, n);
|
|
4356
4313
|
},
|
|
4357
4314
|
p(i, o) {
|
|
4358
4315
|
o & /*$_*/
|
|
4359
4316
|
8 && r !== (r = /*$_*/
|
|
4360
|
-
i[3]("loading") + "") &&
|
|
4317
|
+
i[3]("loading") + "") && Ze(n, r);
|
|
4361
4318
|
},
|
|
4362
4319
|
d(i) {
|
|
4363
|
-
i &&
|
|
4320
|
+
i && q(t);
|
|
4364
4321
|
}
|
|
4365
4322
|
};
|
|
4366
4323
|
}
|
|
4367
|
-
function
|
|
4324
|
+
function Ri(e) {
|
|
4368
4325
|
let t, r, n, i = (
|
|
4369
4326
|
/*$_*/
|
|
4370
4327
|
e[3]("titleTransactionHistory") + ""
|
|
4371
4328
|
), o, a, s = (
|
|
4372
4329
|
/*isMobile*/
|
|
4373
|
-
e[4] &&
|
|
4330
|
+
e[4] && Ci(e)
|
|
4374
4331
|
);
|
|
4375
4332
|
function l(c, f) {
|
|
4376
4333
|
return (
|
|
4377
4334
|
/*isLoading*/
|
|
4378
|
-
c[1] ?
|
|
4335
|
+
c[1] ? $i : Mi
|
|
4379
4336
|
);
|
|
4380
4337
|
}
|
|
4381
4338
|
let u = l(e), h = u(e);
|
|
4382
4339
|
return {
|
|
4383
4340
|
c() {
|
|
4384
|
-
t =
|
|
4341
|
+
t = I("div"), s && s.c(), r = Oe(), n = I("h2"), o = re(i), a = Oe(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4385
4342
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4386
4343
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4387
4344
|
},
|
|
4388
4345
|
m(c, f) {
|
|
4389
|
-
|
|
4346
|
+
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);
|
|
4390
4347
|
},
|
|
4391
4348
|
p(c, [f]) {
|
|
4392
4349
|
/*isMobile*/
|
|
4393
4350
|
c[4] && s.p(c, f), f & /*$_*/
|
|
4394
4351
|
8 && i !== (i = /*$_*/
|
|
4395
|
-
c[3]("titleTransactionHistory") + "") &&
|
|
4352
|
+
c[3]("titleTransactionHistory") + "") && Ze(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4396
4353
|
},
|
|
4397
4354
|
i: w,
|
|
4398
4355
|
o: w,
|
|
4399
4356
|
d(c) {
|
|
4400
|
-
c &&
|
|
4357
|
+
c && q(t), s && s.d(), h.d(), e[15](null);
|
|
4401
4358
|
}
|
|
4402
4359
|
};
|
|
4403
4360
|
}
|
|
4404
|
-
function
|
|
4361
|
+
function Ui(e, t, r) {
|
|
4405
4362
|
let n;
|
|
4406
|
-
|
|
4407
|
-
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, p = window.navigator.userAgent,
|
|
4363
|
+
nr(e, Bi, (g) => r(3, n = g));
|
|
4364
|
+
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, p = window.navigator.userAgent, v = Ai(p) !== "PC", m = !0, T = "";
|
|
4408
4365
|
const $ = () => {
|
|
4409
4366
|
fetch(c).then((L) => L.json()).then((L) => {
|
|
4410
4367
|
Object.keys(L).forEach((C) => {
|
|
4411
|
-
|
|
4368
|
+
_t(C, L[C]);
|
|
4412
4369
|
});
|
|
4413
4370
|
}).catch((L) => {
|
|
4414
4371
|
console.log(L);
|
|
4415
4372
|
});
|
|
4416
4373
|
};
|
|
4417
|
-
Object.keys(
|
|
4418
|
-
|
|
4374
|
+
Object.keys(Et).forEach((g) => {
|
|
4375
|
+
_t(g, Et[g]);
|
|
4419
4376
|
});
|
|
4420
|
-
const
|
|
4377
|
+
const A = () => {
|
|
4421
4378
|
window.postMessage(
|
|
4422
4379
|
{
|
|
4423
4380
|
type: "PlayerAccountMenuActive",
|
|
4424
|
-
isMobile:
|
|
4381
|
+
isMobile: v
|
|
4425
4382
|
},
|
|
4426
4383
|
window.location.href
|
|
4427
4384
|
);
|
|
4428
4385
|
}, S = () => {
|
|
4429
|
-
let
|
|
4430
|
-
|
|
4386
|
+
let g = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
|
|
4387
|
+
g.searchParams.append("language", s);
|
|
4431
4388
|
let L = {
|
|
4432
4389
|
method: "GET",
|
|
4433
4390
|
headers: {
|
|
@@ -4435,7 +4392,7 @@ function ki(e, t, r) {
|
|
|
4435
4392
|
accept: "application/json"
|
|
4436
4393
|
}
|
|
4437
4394
|
};
|
|
4438
|
-
fetch(
|
|
4395
|
+
fetch(g.href, L).then((C) => C.json()).then(
|
|
4439
4396
|
(C) => {
|
|
4440
4397
|
r(1, m = !1), r(2, T = C.CashierUrl);
|
|
4441
4398
|
},
|
|
@@ -4444,33 +4401,33 @@ function ki(e, t, r) {
|
|
|
4444
4401
|
}
|
|
4445
4402
|
);
|
|
4446
4403
|
}, R = () => {
|
|
4447
|
-
|
|
4404
|
+
Pi(s);
|
|
4448
4405
|
};
|
|
4449
|
-
|
|
4406
|
+
cr(() => () => {
|
|
4450
4407
|
});
|
|
4451
|
-
const
|
|
4452
|
-
function D(
|
|
4453
|
-
|
|
4454
|
-
f =
|
|
4408
|
+
const P = () => A();
|
|
4409
|
+
function D(g) {
|
|
4410
|
+
Ie[g ? "unshift" : "push"](() => {
|
|
4411
|
+
f = g, r(0, f);
|
|
4455
4412
|
});
|
|
4456
4413
|
}
|
|
4457
|
-
return e.$$set = (
|
|
4458
|
-
"endpoint" in
|
|
4414
|
+
return e.$$set = (g) => {
|
|
4415
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, h = g.mbsource), "translationurl" in g && r(13, c = g.translationurl);
|
|
4459
4416
|
}, e.$$.update = () => {
|
|
4460
4417
|
e.$$.dirty & /*lang*/
|
|
4461
4418
|
512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4462
4419
|
960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4463
|
-
1025 && l && f &&
|
|
4464
|
-
2049 && u && f &&
|
|
4465
|
-
4097 && h && f &&
|
|
4420
|
+
1025 && l && f && Oi(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4421
|
+
2049 && u && f && Ii(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4422
|
+
4097 && h && f && Ni(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4466
4423
|
8192 && c && $();
|
|
4467
4424
|
}, [
|
|
4468
4425
|
f,
|
|
4469
4426
|
m,
|
|
4470
4427
|
T,
|
|
4471
4428
|
n,
|
|
4472
|
-
|
|
4473
|
-
|
|
4429
|
+
v,
|
|
4430
|
+
A,
|
|
4474
4431
|
i,
|
|
4475
4432
|
o,
|
|
4476
4433
|
a,
|
|
@@ -4479,18 +4436,18 @@ function ki(e, t, r) {
|
|
|
4479
4436
|
u,
|
|
4480
4437
|
h,
|
|
4481
4438
|
c,
|
|
4482
|
-
|
|
4439
|
+
P,
|
|
4483
4440
|
D
|
|
4484
4441
|
];
|
|
4485
4442
|
}
|
|
4486
|
-
class
|
|
4443
|
+
class Di extends Tr {
|
|
4487
4444
|
constructor(t) {
|
|
4488
|
-
super(),
|
|
4445
|
+
super(), Er(
|
|
4489
4446
|
this,
|
|
4490
4447
|
t,
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4448
|
+
Ui,
|
|
4449
|
+
Ri,
|
|
4450
|
+
Tt,
|
|
4494
4451
|
{
|
|
4495
4452
|
endpoint: 6,
|
|
4496
4453
|
session: 7,
|
|
@@ -4501,7 +4458,7 @@ class Vi extends Ar {
|
|
|
4501
4458
|
mbsource: 12,
|
|
4502
4459
|
translationurl: 13
|
|
4503
4460
|
},
|
|
4504
|
-
|
|
4461
|
+
Li
|
|
4505
4462
|
);
|
|
4506
4463
|
}
|
|
4507
4464
|
get endpoint() {
|
|
@@ -4553,7 +4510,7 @@ class Vi extends Ar {
|
|
|
4553
4510
|
this.$$set({ translationurl: t }), B();
|
|
4554
4511
|
}
|
|
4555
4512
|
}
|
|
4556
|
-
|
|
4513
|
+
xr(Di, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4557
4514
|
export {
|
|
4558
|
-
|
|
4515
|
+
Di as P
|
|
4559
4516
|
};
|