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