@everymatrix/player-transaction-history 1.86.3 → 1.86.5
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-CwobVkJM.js → PlayerTransactionHistory-BA42_QKW.js} +718 -697
- package/components/{PlayerTransactionHistory-B75Bj6Ho.js → PlayerTransactionHistory-BMxYVri3.js} +711 -690
- package/components/PlayerTransactionHistory-DQKL8r-V.cjs +18 -0
- 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-BxRWocSN.cjs +0 -18
package/components/{PlayerTransactionHistory-CwobVkJM.js → PlayerTransactionHistory-BA42_QKW.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var pr = Object.defineProperty, mr = Object.defineProperties;
|
|
2
|
+
var dr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var it = Object.getOwnPropertySymbols;
|
|
4
|
+
var br = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
br.call(t, r) && we(e, r, t[r]);
|
|
8
|
+
if (it)
|
|
9
|
+
for (var r of it(t))
|
|
10
|
+
yr.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var w = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, st = (e, t) => mr(e, dr(t));
|
|
13
|
+
var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var at = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Lt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ut() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function se(e) {
|
|
39
|
+
e.forEach(Lt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function et(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ct(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let le;
|
|
48
|
-
function
|
|
48
|
+
function ht(e, t) {
|
|
49
49
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function gr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Mt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function Lt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function vr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Mt(t, r));
|
|
65
65
|
}
|
|
66
66
|
function x(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function _r(e, t, r) {
|
|
70
|
+
const n = Er(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = L("style");
|
|
73
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Er(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,45 +83,45 @@ function _r(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function xr(e, t) {
|
|
87
87
|
return x(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ae(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function q(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function L(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function F(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function re(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Me() {
|
|
109
|
+
return re(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Tr(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function E(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Hr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function tt(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Sr(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -130,87 +130,87 @@ function Hr(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let ne;
|
|
134
|
+
function te(e) {
|
|
135
|
+
ne = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
137
|
+
function wr() {
|
|
138
|
+
if (!ne)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
|
-
return
|
|
140
|
+
return ne;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Br(e) {
|
|
143
|
+
wr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const V = [],
|
|
145
|
+
const V = [], $e = [];
|
|
146
146
|
let X = [];
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
function
|
|
150
|
-
|
|
147
|
+
const lt = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
148
|
+
let Re = !1;
|
|
149
|
+
function Pr() {
|
|
150
|
+
Re || (Re = !0, Ar.then(A));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ue(e) {
|
|
153
153
|
X.push(e);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Be = /* @__PURE__ */ new Set();
|
|
156
156
|
let j = 0;
|
|
157
157
|
function A() {
|
|
158
158
|
if (j !== 0)
|
|
159
159
|
return;
|
|
160
|
-
const e =
|
|
160
|
+
const e = ne;
|
|
161
161
|
do {
|
|
162
162
|
try {
|
|
163
163
|
for (; j < V.length; ) {
|
|
164
164
|
const t = V[j];
|
|
165
|
-
j++,
|
|
165
|
+
j++, te(t), Or(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw V.length = 0, j = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (
|
|
171
|
-
|
|
170
|
+
for (te(null), V.length = 0, j = 0; $e.length; )
|
|
171
|
+
$e.pop()();
|
|
172
172
|
for (let t = 0; t < X.length; t += 1) {
|
|
173
173
|
const r = X[t];
|
|
174
|
-
|
|
174
|
+
Be.has(r) || (Be.add(r), r());
|
|
175
175
|
}
|
|
176
176
|
X.length = 0;
|
|
177
177
|
} while (V.length);
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
for (; lt.length; )
|
|
179
|
+
lt.pop()();
|
|
180
|
+
Re = !1, Be.clear(), te(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Or(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), se(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ir(e) {
|
|
190
190
|
const t = [], r = [];
|
|
191
191
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Lr(e, t) {
|
|
195
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Cr(e, t, r) {
|
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
|
199
|
-
n && n.m(t, r),
|
|
200
|
-
const o = e.$$.on_mount.map(
|
|
201
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
202
|
-
}), i.forEach(
|
|
199
|
+
n && n.m(t, r), Ue(() => {
|
|
200
|
+
const o = e.$$.on_mount.map(Lt).filter(et);
|
|
201
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
202
|
+
}), i.forEach(Ue);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Mr(e, t) {
|
|
205
205
|
const r = e.$$;
|
|
206
|
-
r.fragment !== null && (
|
|
206
|
+
r.fragment !== null && (Ir(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
208
|
+
function $r(e, t) {
|
|
209
|
+
e.$$.dirty[0] === -1 && (V.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
210
210
|
}
|
|
211
211
|
function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
212
|
-
const h =
|
|
213
|
-
|
|
212
|
+
const h = ne;
|
|
213
|
+
te(e);
|
|
214
214
|
const u = e.$$ = {
|
|
215
215
|
fragment: null,
|
|
216
216
|
ctx: [],
|
|
@@ -218,7 +218,7 @@ function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
218
218
|
props: o,
|
|
219
219
|
update: B,
|
|
220
220
|
not_equal: i,
|
|
221
|
-
bound:
|
|
221
|
+
bound: ut(),
|
|
222
222
|
// lifecycle
|
|
223
223
|
on_mount: [],
|
|
224
224
|
on_destroy: [],
|
|
@@ -227,7 +227,7 @@ function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
227
227
|
after_update: [],
|
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
229
229
|
// everything else
|
|
230
|
-
callbacks:
|
|
230
|
+
callbacks: ut(),
|
|
231
231
|
dirty: a,
|
|
232
232
|
skip_bound: !1,
|
|
233
233
|
root: t.target || h.$$.root
|
|
@@ -235,20 +235,20 @@ function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
235
235
|
s && s(u.root);
|
|
236
236
|
let l = !1;
|
|
237
237
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
238
|
-
const
|
|
239
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
240
|
-
}) : [], u.update(), l = !0,
|
|
238
|
+
const g = p.length ? p[0] : f;
|
|
239
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && $r(e, c)), f;
|
|
240
|
+
}) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const c =
|
|
243
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
242
|
+
const c = Hr(t.target);
|
|
243
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
244
244
|
} else
|
|
245
245
|
u.fragment && u.fragment.c();
|
|
246
|
-
t.intro &&
|
|
246
|
+
t.intro && Lr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
te(h);
|
|
249
249
|
}
|
|
250
|
-
let
|
|
251
|
-
typeof HTMLElement == "function" && (
|
|
250
|
+
let $t;
|
|
251
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
252
252
|
constructor(t, r, n) {
|
|
253
253
|
super();
|
|
254
254
|
/** The Svelte component constructor */
|
|
@@ -285,31 +285,31 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
connectedCallback() {
|
|
288
|
-
return
|
|
288
|
+
return at(this, null, function* () {
|
|
289
289
|
if (this.$$cn = !0, !this.$$c) {
|
|
290
290
|
let t = function(o) {
|
|
291
291
|
return () => {
|
|
292
292
|
let s;
|
|
293
293
|
return {
|
|
294
294
|
c: function() {
|
|
295
|
-
s =
|
|
295
|
+
s = L("slot"), o !== "default" && E(s, "name", o);
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
298
|
* @param {HTMLElement} target
|
|
299
299
|
* @param {HTMLElement} [anchor]
|
|
300
300
|
*/
|
|
301
301
|
m: function(u, l) {
|
|
302
|
-
|
|
302
|
+
ae(u, s, l);
|
|
303
303
|
},
|
|
304
304
|
d: function(u) {
|
|
305
|
-
u &&
|
|
305
|
+
u && q(s);
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const r = {}, n =
|
|
312
|
+
const r = {}, n = Sr(this);
|
|
313
313
|
for (const o of this.$$s)
|
|
314
314
|
o in n && (r[o] = [t(o)]);
|
|
315
315
|
for (const o of this.attributes) {
|
|
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
320
320
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
321
321
|
this.$$c = new this.$$ctor({
|
|
322
322
|
target: this.shadowRoot || this,
|
|
323
|
-
props:
|
|
323
|
+
props: st(ot({}, this.$$d), {
|
|
324
324
|
$$slots: r,
|
|
325
325
|
$$scope: {
|
|
326
326
|
ctx: []
|
|
@@ -398,8 +398,8 @@ function pe(e, t, r, n) {
|
|
|
398
398
|
return t;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
let s = class extends
|
|
401
|
+
function Ur(e, t, r, n, i, o) {
|
|
402
|
+
let s = class extends $t {
|
|
403
403
|
constructor() {
|
|
404
404
|
super(e, r, i), this.$$p_d = t;
|
|
405
405
|
}
|
|
@@ -429,7 +429,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
429
429
|
}), e.element = /** @type {any} */
|
|
430
430
|
s, s;
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Dr {
|
|
433
433
|
constructor() {
|
|
434
434
|
/**
|
|
435
435
|
* ### PRIVATE API
|
|
@@ -450,7 +450,7 @@ class Ur {
|
|
|
450
450
|
}
|
|
451
451
|
/** @returns {void} */
|
|
452
452
|
$destroy() {
|
|
453
|
-
|
|
453
|
+
Mr(this, 1), this.$destroy = B;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -459,7 +459,7 @@ class Ur {
|
|
|
459
459
|
* @returns {() => void}
|
|
460
460
|
*/
|
|
461
461
|
$on(t, r) {
|
|
462
|
-
if (!
|
|
462
|
+
if (!et(r))
|
|
463
463
|
return B;
|
|
464
464
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
465
465
|
return n.push(r), () => {
|
|
@@ -472,11 +472,11 @@ class Ur {
|
|
|
472
472
|
* @returns {void}
|
|
473
473
|
*/
|
|
474
474
|
$set(t) {
|
|
475
|
-
this.$$set && !
|
|
475
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
const
|
|
479
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
478
|
+
const Gr = "4";
|
|
479
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
|
480
480
|
/*! *****************************************************************************
|
|
481
481
|
Copyright (c) Microsoft Corporation.
|
|
482
482
|
|
|
@@ -491,43 +491,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
491
491
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
492
492
|
PERFORMANCE OF THIS SOFTWARE.
|
|
493
493
|
***************************************************************************** */
|
|
494
|
-
var
|
|
495
|
-
return
|
|
494
|
+
var De = function(e, t) {
|
|
495
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
496
496
|
r.__proto__ = n;
|
|
497
497
|
} || function(r, n) {
|
|
498
498
|
for (var i in n)
|
|
499
499
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
500
|
-
},
|
|
500
|
+
}, De(e, t);
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function ue(e, t) {
|
|
503
503
|
if (typeof t != "function" && t !== null)
|
|
504
504
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
505
|
-
|
|
505
|
+
De(e, t);
|
|
506
506
|
function r() {
|
|
507
507
|
this.constructor = e;
|
|
508
508
|
}
|
|
509
509
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
510
510
|
}
|
|
511
|
-
|
|
512
|
-
return y = Object.assign || function(t) {
|
|
513
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
514
|
-
r = arguments[n];
|
|
515
|
-
for (var o in r)
|
|
516
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
517
|
-
}
|
|
518
|
-
return t;
|
|
519
|
-
}, y.apply(this, arguments);
|
|
520
|
-
};
|
|
521
|
-
function Gr(e, t) {
|
|
522
|
-
var r = {};
|
|
523
|
-
for (var n in e)
|
|
524
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
525
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
526
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
527
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
528
|
-
return r;
|
|
529
|
-
}
|
|
530
|
-
function Ue(e) {
|
|
511
|
+
function Ge(e) {
|
|
531
512
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
532
513
|
if (r)
|
|
533
514
|
return r.call(e);
|
|
@@ -539,7 +520,7 @@ function Ue(e) {
|
|
|
539
520
|
};
|
|
540
521
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
541
522
|
}
|
|
542
|
-
function
|
|
523
|
+
function Fe(e, t) {
|
|
543
524
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
544
525
|
if (!r)
|
|
545
526
|
return e;
|
|
@@ -559,22 +540,22 @@ function De(e, t) {
|
|
|
559
540
|
}
|
|
560
541
|
return o;
|
|
561
542
|
}
|
|
562
|
-
function
|
|
563
|
-
if (
|
|
543
|
+
function je(e, t, r) {
|
|
544
|
+
if (arguments.length === 2)
|
|
564
545
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
565
546
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
566
547
|
return e.concat(o || t);
|
|
567
548
|
}
|
|
568
|
-
function
|
|
549
|
+
function N(e) {
|
|
569
550
|
return typeof e == "function";
|
|
570
551
|
}
|
|
571
|
-
function
|
|
552
|
+
function Rt(e) {
|
|
572
553
|
var t = function(n) {
|
|
573
554
|
Error.call(n), n.stack = new Error().stack;
|
|
574
555
|
}, r = e(t);
|
|
575
556
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
576
557
|
}
|
|
577
|
-
var
|
|
558
|
+
var Ae = Rt(function(e) {
|
|
578
559
|
return function(r) {
|
|
579
560
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
580
561
|
` + r.map(function(n, i) {
|
|
@@ -583,13 +564,13 @@ var we = Mt(function(e) {
|
|
|
583
564
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
584
565
|
};
|
|
585
566
|
});
|
|
586
|
-
function
|
|
567
|
+
function ke(e, t) {
|
|
587
568
|
if (e) {
|
|
588
569
|
var r = e.indexOf(t);
|
|
589
570
|
0 <= r && e.splice(r, 1);
|
|
590
571
|
}
|
|
591
572
|
}
|
|
592
|
-
var
|
|
573
|
+
var _e = function() {
|
|
593
574
|
function e(t) {
|
|
594
575
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
595
576
|
}
|
|
@@ -601,7 +582,7 @@ var ve = function() {
|
|
|
601
582
|
if (s)
|
|
602
583
|
if (this._parentage = null, Array.isArray(s))
|
|
603
584
|
try {
|
|
604
|
-
for (var a =
|
|
585
|
+
for (var a = Ge(s), h = a.next(); !h.done; h = a.next()) {
|
|
605
586
|
var u = h.value;
|
|
606
587
|
u.remove(this);
|
|
607
588
|
}
|
|
@@ -618,22 +599,22 @@ var ve = function() {
|
|
|
618
599
|
else
|
|
619
600
|
s.remove(this);
|
|
620
601
|
var l = this.initialTeardown;
|
|
621
|
-
if (
|
|
602
|
+
if (N(l))
|
|
622
603
|
try {
|
|
623
604
|
l();
|
|
624
605
|
} catch (m) {
|
|
625
|
-
o = m instanceof
|
|
606
|
+
o = m instanceof Ae ? m.errors : [m];
|
|
626
607
|
}
|
|
627
608
|
var c = this._finalizers;
|
|
628
609
|
if (c) {
|
|
629
610
|
this._finalizers = null;
|
|
630
611
|
try {
|
|
631
|
-
for (var f =
|
|
632
|
-
var
|
|
612
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
613
|
+
var g = p.value;
|
|
633
614
|
try {
|
|
634
|
-
|
|
615
|
+
ct(g);
|
|
635
616
|
} catch (m) {
|
|
636
|
-
o = o != null ? o : [], m instanceof
|
|
617
|
+
o = o != null ? o : [], m instanceof Ae ? o = je(je([], Fe(o)), Fe(m.errors)) : o.push(m);
|
|
637
618
|
}
|
|
638
619
|
}
|
|
639
620
|
} catch (m) {
|
|
@@ -648,13 +629,13 @@ var ve = function() {
|
|
|
648
629
|
}
|
|
649
630
|
}
|
|
650
631
|
if (o)
|
|
651
|
-
throw new
|
|
632
|
+
throw new Ae(o);
|
|
652
633
|
}
|
|
653
634
|
}, e.prototype.add = function(t) {
|
|
654
635
|
var r;
|
|
655
636
|
if (t && t !== this)
|
|
656
637
|
if (this.closed)
|
|
657
|
-
|
|
638
|
+
ct(t);
|
|
658
639
|
else {
|
|
659
640
|
if (t instanceof e) {
|
|
660
641
|
if (t.closed || t._hasParent(this))
|
|
@@ -671,56 +652,52 @@ var ve = function() {
|
|
|
671
652
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
672
653
|
}, e.prototype._removeParent = function(t) {
|
|
673
654
|
var r = this._parentage;
|
|
674
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
655
|
+
r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
|
|
675
656
|
}, e.prototype.remove = function(t) {
|
|
676
657
|
var r = this._finalizers;
|
|
677
|
-
r &&
|
|
658
|
+
r && ke(r, t), t instanceof e && t._removeParent(this);
|
|
678
659
|
}, e.EMPTY = function() {
|
|
679
660
|
var t = new e();
|
|
680
661
|
return t.closed = !0, t;
|
|
681
662
|
}(), e;
|
|
682
|
-
}(),
|
|
683
|
-
function
|
|
684
|
-
return e instanceof
|
|
685
|
-
}
|
|
686
|
-
function
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
Promise: void 0,
|
|
693
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
694
|
-
useDeprecatedNextContext: !1
|
|
695
|
-
}, Fr = {
|
|
663
|
+
}(), Ut = _e.EMPTY;
|
|
664
|
+
function Dt(e) {
|
|
665
|
+
return e instanceof _e || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
666
|
+
}
|
|
667
|
+
function ct(e) {
|
|
668
|
+
N(e) ? e() : e.unsubscribe();
|
|
669
|
+
}
|
|
670
|
+
var Fr = {
|
|
671
|
+
Promise: void 0
|
|
672
|
+
}, jr = {
|
|
696
673
|
setTimeout: function(e, t) {
|
|
697
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
698
675
|
r[n - 2] = arguments[n];
|
|
699
|
-
return setTimeout.apply(void 0,
|
|
676
|
+
return setTimeout.apply(void 0, je([e, t], Fe(r)));
|
|
700
677
|
},
|
|
701
678
|
clearTimeout: function(e) {
|
|
702
679
|
return clearTimeout(e);
|
|
703
680
|
},
|
|
704
681
|
delegate: void 0
|
|
705
682
|
};
|
|
706
|
-
function
|
|
707
|
-
|
|
683
|
+
function kr(e) {
|
|
684
|
+
jr.setTimeout(function() {
|
|
708
685
|
throw e;
|
|
709
686
|
});
|
|
710
687
|
}
|
|
711
|
-
function
|
|
688
|
+
function ft() {
|
|
712
689
|
}
|
|
713
690
|
function me(e) {
|
|
714
691
|
e();
|
|
715
692
|
}
|
|
716
|
-
var
|
|
717
|
-
|
|
693
|
+
var Gt = function(e) {
|
|
694
|
+
ue(t, e);
|
|
718
695
|
function t(r) {
|
|
719
696
|
var n = e.call(this) || this;
|
|
720
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
697
|
+
return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = Wr, n;
|
|
721
698
|
}
|
|
722
699
|
return t.create = function(r, n, i) {
|
|
723
|
-
return new
|
|
700
|
+
return new Ve(r, n, i);
|
|
724
701
|
}, t.prototype.next = function(r) {
|
|
725
702
|
this.isStopped || this._next(r);
|
|
726
703
|
}, t.prototype.error = function(r) {
|
|
@@ -744,11 +721,7 @@ var Dt = function(e) {
|
|
|
744
721
|
this.unsubscribe();
|
|
745
722
|
}
|
|
746
723
|
}, t;
|
|
747
|
-
}(
|
|
748
|
-
function Be(e, t) {
|
|
749
|
-
return kr.call(e, t);
|
|
750
|
-
}
|
|
751
|
-
var Vr = function() {
|
|
724
|
+
}(_e), Vr = function() {
|
|
752
725
|
function e(t) {
|
|
753
726
|
this.partialObserver = t;
|
|
754
727
|
}
|
|
@@ -779,41 +752,29 @@ var Vr = function() {
|
|
|
779
752
|
ce(r);
|
|
780
753
|
}
|
|
781
754
|
}, e;
|
|
782
|
-
}(),
|
|
783
|
-
|
|
755
|
+
}(), Ve = function(e) {
|
|
756
|
+
ue(t, e);
|
|
784
757
|
function t(r, n, i) {
|
|
785
758
|
var o = e.call(this) || this, s;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
};
|
|
792
|
-
else {
|
|
793
|
-
var a;
|
|
794
|
-
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
795
|
-
return o.unsubscribe();
|
|
796
|
-
}, s = {
|
|
797
|
-
next: r.next && Be(r.next, a),
|
|
798
|
-
error: r.error && Be(r.error, a),
|
|
799
|
-
complete: r.complete && Be(r.complete, a)
|
|
800
|
-
}) : s = r;
|
|
801
|
-
}
|
|
802
|
-
return o.destination = new Vr(s), o;
|
|
759
|
+
return N(r) || !r ? s = {
|
|
760
|
+
next: r != null ? r : void 0,
|
|
761
|
+
error: n != null ? n : void 0,
|
|
762
|
+
complete: i != null ? i : void 0
|
|
763
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
803
764
|
}
|
|
804
765
|
return t;
|
|
805
|
-
}(
|
|
766
|
+
}(Gt);
|
|
806
767
|
function ce(e) {
|
|
807
|
-
|
|
768
|
+
kr(e);
|
|
808
769
|
}
|
|
809
770
|
function Xr(e) {
|
|
810
771
|
throw e;
|
|
811
772
|
}
|
|
812
773
|
var Wr = {
|
|
813
774
|
closed: !0,
|
|
814
|
-
next:
|
|
775
|
+
next: ft,
|
|
815
776
|
error: Xr,
|
|
816
|
-
complete:
|
|
777
|
+
complete: ft
|
|
817
778
|
}, zr = function() {
|
|
818
779
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
819
780
|
}();
|
|
@@ -827,7 +788,7 @@ function Qr(e) {
|
|
|
827
788
|
}, r);
|
|
828
789
|
};
|
|
829
790
|
}
|
|
830
|
-
var
|
|
791
|
+
var pt = function() {
|
|
831
792
|
function e(t) {
|
|
832
793
|
t && (this._subscribe = t);
|
|
833
794
|
}
|
|
@@ -835,7 +796,7 @@ var ct = function() {
|
|
|
835
796
|
var r = new e();
|
|
836
797
|
return r.source = this, r.operator = t, r;
|
|
837
798
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
838
|
-
var i = this, o = Jr(t) ? t : new
|
|
799
|
+
var i = this, o = Jr(t) ? t : new Ve(t, r, n);
|
|
839
800
|
return me(function() {
|
|
840
801
|
var s = i, a = s.operator, h = s.source;
|
|
841
802
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -848,8 +809,8 @@ var ct = function() {
|
|
|
848
809
|
}
|
|
849
810
|
}, e.prototype.forEach = function(t, r) {
|
|
850
811
|
var n = this;
|
|
851
|
-
return r =
|
|
852
|
-
var s = new
|
|
812
|
+
return r = mt(r), new r(function(i, o) {
|
|
813
|
+
var s = new Ve({
|
|
853
814
|
next: function(a) {
|
|
854
815
|
try {
|
|
855
816
|
t(a);
|
|
@@ -873,7 +834,7 @@ var ct = function() {
|
|
|
873
834
|
return Qr(t)(this);
|
|
874
835
|
}, e.prototype.toPromise = function(t) {
|
|
875
836
|
var r = this;
|
|
876
|
-
return t =
|
|
837
|
+
return t = mt(t), new t(function(n, i) {
|
|
877
838
|
var o;
|
|
878
839
|
r.subscribe(function(s) {
|
|
879
840
|
return o = s;
|
|
@@ -887,28 +848,28 @@ var ct = function() {
|
|
|
887
848
|
return new e(t);
|
|
888
849
|
}, e;
|
|
889
850
|
}();
|
|
890
|
-
function
|
|
851
|
+
function mt(e) {
|
|
891
852
|
var t;
|
|
892
|
-
return (t = e != null ? e :
|
|
853
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
893
854
|
}
|
|
894
855
|
function qr(e) {
|
|
895
|
-
return e &&
|
|
856
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
896
857
|
}
|
|
897
858
|
function Jr(e) {
|
|
898
|
-
return e && e instanceof
|
|
859
|
+
return e && e instanceof Gt || qr(e) && Dt(e);
|
|
899
860
|
}
|
|
900
|
-
var Yr =
|
|
861
|
+
var Yr = Rt(function(e) {
|
|
901
862
|
return function() {
|
|
902
863
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
903
864
|
};
|
|
904
|
-
}),
|
|
905
|
-
|
|
865
|
+
}), Ft = function(e) {
|
|
866
|
+
ue(t, e);
|
|
906
867
|
function t() {
|
|
907
868
|
var r = e.call(this) || this;
|
|
908
869
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
909
870
|
}
|
|
910
871
|
return t.prototype.lift = function(r) {
|
|
911
|
-
var n = new
|
|
872
|
+
var n = new dt(this, this);
|
|
912
873
|
return n.operator = r, n;
|
|
913
874
|
}, t.prototype._throwIfClosed = function() {
|
|
914
875
|
if (this.closed)
|
|
@@ -920,7 +881,7 @@ var Yr = Mt(function(e) {
|
|
|
920
881
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
921
882
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
922
883
|
try {
|
|
923
|
-
for (var s =
|
|
884
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
924
885
|
var h = a.value;
|
|
925
886
|
h.next(r);
|
|
926
887
|
}
|
|
@@ -969,20 +930,20 @@ var Yr = Mt(function(e) {
|
|
|
969
930
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
970
931
|
}, t.prototype._innerSubscribe = function(r) {
|
|
971
932
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
972
|
-
return o || s ?
|
|
973
|
-
n.currentObservers = null,
|
|
933
|
+
return o || s ? Ut : (this.currentObservers = null, a.push(r), new _e(function() {
|
|
934
|
+
n.currentObservers = null, ke(a, r);
|
|
974
935
|
}));
|
|
975
936
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
976
937
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
977
938
|
i ? r.error(o) : s && r.complete();
|
|
978
939
|
}, t.prototype.asObservable = function() {
|
|
979
|
-
var r = new
|
|
940
|
+
var r = new pt();
|
|
980
941
|
return r.source = this, r;
|
|
981
942
|
}, t.create = function(r, n) {
|
|
982
|
-
return new
|
|
943
|
+
return new dt(r, n);
|
|
983
944
|
}, t;
|
|
984
|
-
}(
|
|
985
|
-
|
|
945
|
+
}(pt), dt = function(e) {
|
|
946
|
+
ue(t, e);
|
|
986
947
|
function t(r, n) {
|
|
987
948
|
var i = e.call(this) || this;
|
|
988
949
|
return i.destination = r, i.source = n, i;
|
|
@@ -998,17 +959,17 @@ var Yr = Mt(function(e) {
|
|
|
998
959
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
999
960
|
}, t.prototype._subscribe = function(r) {
|
|
1000
961
|
var n, i;
|
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
962
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ut;
|
|
1002
963
|
}, t;
|
|
1003
|
-
}(
|
|
964
|
+
}(Ft), jt = {
|
|
1004
965
|
now: function() {
|
|
1005
|
-
return (
|
|
966
|
+
return (jt.delegate || Date).now();
|
|
1006
967
|
},
|
|
1007
968
|
delegate: void 0
|
|
1008
969
|
}, Kr = function(e) {
|
|
1009
|
-
|
|
970
|
+
ue(t, e);
|
|
1010
971
|
function t(r, n, i) {
|
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
972
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1012
973
|
var o = e.call(this) || this;
|
|
1013
974
|
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;
|
|
1014
975
|
}
|
|
@@ -1028,24 +989,24 @@ var Yr = Mt(function(e) {
|
|
|
1028
989
|
u && o.splice(0, u + 1);
|
|
1029
990
|
}
|
|
1030
991
|
}, t;
|
|
1031
|
-
}(
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
992
|
+
}(Ft);
|
|
993
|
+
const bt = [], yt = {}, en = (e, t = 0) => {
|
|
994
|
+
if (bt.indexOf(e) == -1) {
|
|
1034
995
|
const r = new Kr(t);
|
|
1035
|
-
|
|
996
|
+
yt[e] = r, bt.push(e);
|
|
1036
997
|
}
|
|
1037
|
-
return
|
|
998
|
+
return yt[e];
|
|
1038
999
|
}, k = [];
|
|
1039
1000
|
function tn(e, t) {
|
|
1040
1001
|
return {
|
|
1041
|
-
subscribe:
|
|
1002
|
+
subscribe: Ee(e, t).subscribe
|
|
1042
1003
|
};
|
|
1043
1004
|
}
|
|
1044
|
-
function
|
|
1005
|
+
function Ee(e, t = B) {
|
|
1045
1006
|
let r;
|
|
1046
1007
|
const n = /* @__PURE__ */ new Set();
|
|
1047
1008
|
function i(a) {
|
|
1048
|
-
if (
|
|
1009
|
+
if (Ct(e, a) && (e = a, r)) {
|
|
1049
1010
|
const h = !k.length;
|
|
1050
1011
|
for (const u of n)
|
|
1051
1012
|
u[1](), k.push(u, e);
|
|
@@ -1067,7 +1028,7 @@ function _e(e, t = B) {
|
|
|
1067
1028
|
}
|
|
1068
1029
|
return { set: i, update: o, subscribe: s };
|
|
1069
1030
|
}
|
|
1070
|
-
function
|
|
1031
|
+
function J(e, t, r) {
|
|
1071
1032
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1072
1033
|
if (!i.every(Boolean))
|
|
1073
1034
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1080,11 +1041,11 @@ function Y(e, t, r) {
|
|
|
1080
1041
|
if (l)
|
|
1081
1042
|
return;
|
|
1082
1043
|
c();
|
|
1083
|
-
const
|
|
1084
|
-
o ? s(
|
|
1044
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1045
|
+
o ? s(g) : c = et(g) ? g : B;
|
|
1085
1046
|
}, p = i.map(
|
|
1086
|
-
(
|
|
1087
|
-
|
|
1047
|
+
(g, m) => Mt(
|
|
1048
|
+
g,
|
|
1088
1049
|
(T) => {
|
|
1089
1050
|
u[m] = T, l &= ~(1 << m), h && f();
|
|
1090
1051
|
},
|
|
@@ -1094,7 +1055,7 @@ function Y(e, t, r) {
|
|
|
1094
1055
|
)
|
|
1095
1056
|
);
|
|
1096
1057
|
return h = !0, f(), function() {
|
|
1097
|
-
|
|
1058
|
+
se(p), c(), h = !1;
|
|
1098
1059
|
};
|
|
1099
1060
|
});
|
|
1100
1061
|
}
|
|
@@ -1118,29 +1079,29 @@ function hn(e) {
|
|
|
1118
1079
|
function ln(e) {
|
|
1119
1080
|
return Array.isArray(e) ? [] : {};
|
|
1120
1081
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1082
|
+
function ie(e, t) {
|
|
1083
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(ln(e), e, t) : e;
|
|
1123
1084
|
}
|
|
1124
1085
|
function cn(e, t, r) {
|
|
1125
1086
|
return e.concat(t).map(function(n) {
|
|
1126
|
-
return
|
|
1087
|
+
return ie(n, r);
|
|
1127
1088
|
});
|
|
1128
1089
|
}
|
|
1129
1090
|
function fn(e, t) {
|
|
1130
1091
|
if (!t.customMerge)
|
|
1131
|
-
return
|
|
1092
|
+
return W;
|
|
1132
1093
|
var r = t.customMerge(e);
|
|
1133
|
-
return typeof r == "function" ? r :
|
|
1094
|
+
return typeof r == "function" ? r : W;
|
|
1134
1095
|
}
|
|
1135
1096
|
function pn(e) {
|
|
1136
1097
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1137
1098
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1138
1099
|
}) : [];
|
|
1139
1100
|
}
|
|
1140
|
-
function
|
|
1101
|
+
function gt(e) {
|
|
1141
1102
|
return Object.keys(e).concat(pn(e));
|
|
1142
1103
|
}
|
|
1143
|
-
function
|
|
1104
|
+
function kt(e, t) {
|
|
1144
1105
|
try {
|
|
1145
1106
|
return t in e;
|
|
1146
1107
|
} catch (r) {
|
|
@@ -1148,129 +1109,179 @@ function jt(e, t) {
|
|
|
1148
1109
|
}
|
|
1149
1110
|
}
|
|
1150
1111
|
function mn(e, t) {
|
|
1151
|
-
return
|
|
1112
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1152
1113
|
}
|
|
1153
1114
|
function dn(e, t, r) {
|
|
1154
1115
|
var n = {};
|
|
1155
|
-
return r.isMergeableObject(e) &&
|
|
1156
|
-
n[i] =
|
|
1157
|
-
}),
|
|
1158
|
-
mn(e, i) || (
|
|
1116
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1117
|
+
n[i] = ie(e[i], r);
|
|
1118
|
+
}), gt(t).forEach(function(i) {
|
|
1119
|
+
mn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1159
1120
|
}), n;
|
|
1160
1121
|
}
|
|
1161
|
-
function
|
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified =
|
|
1122
|
+
function W(e, t, r) {
|
|
1123
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1163
1124
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1164
|
-
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) :
|
|
1125
|
+
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ie(t, r);
|
|
1165
1126
|
}
|
|
1166
|
-
|
|
1127
|
+
W.all = function(t, r) {
|
|
1167
1128
|
if (!Array.isArray(t))
|
|
1168
1129
|
throw new Error("first argument should be an array");
|
|
1169
1130
|
return t.reduce(function(n, i) {
|
|
1170
|
-
return
|
|
1131
|
+
return W(n, i, r);
|
|
1171
1132
|
}, {});
|
|
1172
1133
|
};
|
|
1173
|
-
var bn =
|
|
1134
|
+
var bn = W, yn = bn;
|
|
1174
1135
|
const gn = /* @__PURE__ */ rn(yn);
|
|
1175
|
-
function
|
|
1176
|
-
|
|
1136
|
+
var Xe = function(e, t) {
|
|
1137
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1138
|
+
r.__proto__ = n;
|
|
1139
|
+
} || function(r, n) {
|
|
1140
|
+
for (var i in n)
|
|
1141
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1142
|
+
}, Xe(e, t);
|
|
1143
|
+
};
|
|
1144
|
+
function xe(e, t) {
|
|
1145
|
+
if (typeof t != "function" && t !== null)
|
|
1146
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1147
|
+
Xe(e, t);
|
|
1148
|
+
function r() {
|
|
1149
|
+
this.constructor = e;
|
|
1150
|
+
}
|
|
1151
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1152
|
+
}
|
|
1153
|
+
var P = function() {
|
|
1154
|
+
return P = Object.assign || function(t) {
|
|
1155
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1156
|
+
r = arguments[n];
|
|
1157
|
+
for (var o in r)
|
|
1158
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1159
|
+
}
|
|
1160
|
+
return t;
|
|
1161
|
+
}, P.apply(this, arguments);
|
|
1162
|
+
};
|
|
1163
|
+
function vn(e, t) {
|
|
1164
|
+
var r = {};
|
|
1165
|
+
for (var n in e)
|
|
1166
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1167
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1168
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1169
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1170
|
+
return r;
|
|
1171
|
+
}
|
|
1172
|
+
function Pe(e, t, r) {
|
|
1173
|
+
if (r || arguments.length === 2)
|
|
1174
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1175
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1176
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1177
|
+
}
|
|
1178
|
+
function Oe(e, t) {
|
|
1179
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : xn;
|
|
1177
1180
|
return i(e, {
|
|
1178
1181
|
cache: r,
|
|
1179
1182
|
serializer: n
|
|
1180
1183
|
});
|
|
1181
1184
|
}
|
|
1182
|
-
function
|
|
1185
|
+
function _n(e) {
|
|
1183
1186
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1184
1187
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1188
|
+
function En(e, t, r, n) {
|
|
1189
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1187
1190
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1188
1191
|
}
|
|
1189
1192
|
function Vt(e, t, r) {
|
|
1190
1193
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1191
1194
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1192
1195
|
}
|
|
1193
|
-
function
|
|
1196
|
+
function Xt(e, t, r, n, i) {
|
|
1194
1197
|
return r.bind(t, e, n, i);
|
|
1195
1198
|
}
|
|
1196
|
-
function _n(e, t) {
|
|
1197
|
-
var r = e.length === 1 ? kt : Vt;
|
|
1198
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1199
|
-
}
|
|
1200
|
-
function En(e, t) {
|
|
1201
|
-
return Ye(e, this, Vt, t.cache.create(), t.serializer);
|
|
1202
|
-
}
|
|
1203
1199
|
function xn(e, t) {
|
|
1204
|
-
|
|
1200
|
+
var r = e.length === 1 ? En : Vt;
|
|
1201
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1205
1202
|
}
|
|
1206
|
-
|
|
1207
|
-
return
|
|
1208
|
-
};
|
|
1209
|
-
function Ke() {
|
|
1210
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1203
|
+
function Tn(e, t) {
|
|
1204
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1211
1205
|
}
|
|
1212
|
-
|
|
1213
|
-
return
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1206
|
+
var Hn = function() {
|
|
1207
|
+
return JSON.stringify(arguments);
|
|
1208
|
+
}, Sn = (
|
|
1209
|
+
/** @class */
|
|
1210
|
+
function() {
|
|
1211
|
+
function e() {
|
|
1212
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1213
|
+
}
|
|
1214
|
+
return e.prototype.get = function(t) {
|
|
1215
|
+
return this.cache[t];
|
|
1216
|
+
}, e.prototype.set = function(t, r) {
|
|
1217
|
+
this.cache[t] = r;
|
|
1218
|
+
}, e;
|
|
1219
|
+
}()
|
|
1220
|
+
), wn = {
|
|
1219
1221
|
create: function() {
|
|
1220
|
-
return new
|
|
1222
|
+
return new Sn();
|
|
1221
1223
|
}
|
|
1222
|
-
},
|
|
1223
|
-
variadic:
|
|
1224
|
-
|
|
1225
|
-
|
|
1224
|
+
}, Ie = {
|
|
1225
|
+
variadic: Tn
|
|
1226
|
+
}, ye = function() {
|
|
1227
|
+
return ye = Object.assign || function(t) {
|
|
1228
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1229
|
+
r = arguments[n];
|
|
1230
|
+
for (var o in r)
|
|
1231
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1232
|
+
}
|
|
1233
|
+
return t;
|
|
1234
|
+
}, ye.apply(this, arguments);
|
|
1235
|
+
};
|
|
1236
|
+
var d;
|
|
1226
1237
|
(function(e) {
|
|
1227
1238
|
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";
|
|
1228
1239
|
})(d || (d = {}));
|
|
1229
|
-
var
|
|
1240
|
+
var v;
|
|
1230
1241
|
(function(e) {
|
|
1231
1242
|
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";
|
|
1232
|
-
})(
|
|
1233
|
-
var
|
|
1243
|
+
})(v || (v = {}));
|
|
1244
|
+
var z;
|
|
1234
1245
|
(function(e) {
|
|
1235
1246
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1236
|
-
})(
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1239
|
-
}
|
|
1240
|
-
function Sn(e) {
|
|
1241
|
-
return e.type === _.argument;
|
|
1247
|
+
})(z || (z = {}));
|
|
1248
|
+
function vt(e) {
|
|
1249
|
+
return e.type === v.literal;
|
|
1242
1250
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1251
|
+
function Bn(e) {
|
|
1252
|
+
return e.type === v.argument;
|
|
1245
1253
|
}
|
|
1246
1254
|
function Wt(e) {
|
|
1247
|
-
return e.type ===
|
|
1255
|
+
return e.type === v.number;
|
|
1248
1256
|
}
|
|
1249
1257
|
function zt(e) {
|
|
1250
|
-
return e.type ===
|
|
1258
|
+
return e.type === v.date;
|
|
1251
1259
|
}
|
|
1252
1260
|
function Zt(e) {
|
|
1253
|
-
return e.type ===
|
|
1261
|
+
return e.type === v.time;
|
|
1254
1262
|
}
|
|
1255
1263
|
function Qt(e) {
|
|
1256
|
-
return e.type ===
|
|
1257
|
-
}
|
|
1258
|
-
function wn(e) {
|
|
1259
|
-
return e.type === _.pound;
|
|
1264
|
+
return e.type === v.select;
|
|
1260
1265
|
}
|
|
1261
1266
|
function qt(e) {
|
|
1262
|
-
return e.type ===
|
|
1267
|
+
return e.type === v.plural;
|
|
1268
|
+
}
|
|
1269
|
+
function An(e) {
|
|
1270
|
+
return e.type === v.pound;
|
|
1263
1271
|
}
|
|
1264
1272
|
function Jt(e) {
|
|
1265
|
-
return
|
|
1273
|
+
return e.type === v.tag;
|
|
1266
1274
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1275
|
+
function Yt(e) {
|
|
1276
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1269
1277
|
}
|
|
1270
|
-
|
|
1271
|
-
|
|
1278
|
+
function We(e) {
|
|
1279
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1280
|
+
}
|
|
1281
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1282
|
+
function On(e) {
|
|
1272
1283
|
var t = {};
|
|
1273
|
-
return e.replace(
|
|
1284
|
+
return e.replace(Pn, function(r) {
|
|
1274
1285
|
var n = r.length;
|
|
1275
1286
|
switch (r[0]) {
|
|
1276
1287
|
case "G":
|
|
@@ -1359,11 +1370,21 @@ function An(e) {
|
|
|
1359
1370
|
return "";
|
|
1360
1371
|
}), t;
|
|
1361
1372
|
}
|
|
1362
|
-
var
|
|
1363
|
-
function
|
|
1373
|
+
var _ = function() {
|
|
1374
|
+
return _ = Object.assign || function(t) {
|
|
1375
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1376
|
+
r = arguments[n];
|
|
1377
|
+
for (var o in r)
|
|
1378
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1379
|
+
}
|
|
1380
|
+
return t;
|
|
1381
|
+
}, _.apply(this, arguments);
|
|
1382
|
+
};
|
|
1383
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1384
|
+
function Nn(e) {
|
|
1364
1385
|
if (e.length === 0)
|
|
1365
1386
|
throw new Error("Number skeleton cannot be empty");
|
|
1366
|
-
for (var t = e.split(
|
|
1387
|
+
for (var t = e.split(In).filter(function(f) {
|
|
1367
1388
|
return f.length > 0;
|
|
1368
1389
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1369
1390
|
var o = i[n], s = o.split("/");
|
|
@@ -1378,17 +1399,17 @@ function On(e) {
|
|
|
1378
1399
|
}
|
|
1379
1400
|
return r;
|
|
1380
1401
|
}
|
|
1381
|
-
function
|
|
1402
|
+
function Ln(e) {
|
|
1382
1403
|
return e.replace(/^(.*?)-/, "");
|
|
1383
1404
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1405
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1406
|
+
function Et(e) {
|
|
1386
1407
|
var t = {};
|
|
1387
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1408
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1388
1409
|
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)), "";
|
|
1389
1410
|
}), t;
|
|
1390
1411
|
}
|
|
1391
|
-
function
|
|
1412
|
+
function rr(e) {
|
|
1392
1413
|
switch (e) {
|
|
1393
1414
|
case "sign-auto":
|
|
1394
1415
|
return {
|
|
@@ -1428,7 +1449,7 @@ function tr(e) {
|
|
|
1428
1449
|
};
|
|
1429
1450
|
}
|
|
1430
1451
|
}
|
|
1431
|
-
function
|
|
1452
|
+
function Mn(e) {
|
|
1432
1453
|
var t;
|
|
1433
1454
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1434
1455
|
notation: "engineering"
|
|
@@ -1436,17 +1457,17 @@ function Ln(e) {
|
|
|
1436
1457
|
notation: "scientific"
|
|
1437
1458
|
}, e = e.slice(1)), t) {
|
|
1438
1459
|
var r = e.slice(0, 2);
|
|
1439
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1460
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1440
1461
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1441
1462
|
t.minimumIntegerDigits = e.length;
|
|
1442
1463
|
}
|
|
1443
1464
|
return t;
|
|
1444
1465
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var t = {}, r =
|
|
1466
|
+
function xt(e) {
|
|
1467
|
+
var t = {}, r = rr(e);
|
|
1447
1468
|
return r || t;
|
|
1448
1469
|
}
|
|
1449
|
-
function
|
|
1470
|
+
function $n(e) {
|
|
1450
1471
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1451
1472
|
var i = n[r];
|
|
1452
1473
|
switch (i.stem) {
|
|
@@ -1470,7 +1491,7 @@ function Cn(e) {
|
|
|
1470
1491
|
continue;
|
|
1471
1492
|
case "measure-unit":
|
|
1472
1493
|
case "unit":
|
|
1473
|
-
t.style = "unit", t.unit =
|
|
1494
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1474
1495
|
continue;
|
|
1475
1496
|
case "compact-short":
|
|
1476
1497
|
case "K":
|
|
@@ -1481,13 +1502,13 @@ function Cn(e) {
|
|
|
1481
1502
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1482
1503
|
continue;
|
|
1483
1504
|
case "scientific":
|
|
1484
|
-
t =
|
|
1485
|
-
return
|
|
1505
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1506
|
+
return _(_({}, h), xt(u));
|
|
1486
1507
|
}, {}));
|
|
1487
1508
|
continue;
|
|
1488
1509
|
case "engineering":
|
|
1489
|
-
t =
|
|
1490
|
-
return
|
|
1510
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1511
|
+
return _(_({}, h), xt(u));
|
|
1491
1512
|
}, {}));
|
|
1492
1513
|
continue;
|
|
1493
1514
|
case "notation-simple":
|
|
@@ -1532,7 +1553,7 @@ function Cn(e) {
|
|
|
1532
1553
|
case "integer-width":
|
|
1533
1554
|
if (i.options.length > 1)
|
|
1534
1555
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1535
|
-
i.options[0].replace(
|
|
1556
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1536
1557
|
if (u)
|
|
1537
1558
|
t.minimumIntegerDigits = l.length;
|
|
1538
1559
|
else {
|
|
@@ -1545,28 +1566,28 @@ function Cn(e) {
|
|
|
1545
1566
|
});
|
|
1546
1567
|
continue;
|
|
1547
1568
|
}
|
|
1548
|
-
if (
|
|
1569
|
+
if (tr.test(i.stem)) {
|
|
1549
1570
|
t.minimumIntegerDigits = i.stem.length;
|
|
1550
1571
|
continue;
|
|
1551
1572
|
}
|
|
1552
|
-
if (
|
|
1573
|
+
if (_t.test(i.stem)) {
|
|
1553
1574
|
if (i.options.length > 1)
|
|
1554
1575
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1555
|
-
i.stem.replace(
|
|
1576
|
+
i.stem.replace(_t, function(h, u, l, c, f, p) {
|
|
1556
1577
|
return l === "*" ? 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), "";
|
|
1557
1578
|
});
|
|
1558
1579
|
var o = i.options[0];
|
|
1559
|
-
o === "w" ? t =
|
|
1580
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1560
1581
|
continue;
|
|
1561
1582
|
}
|
|
1562
|
-
if (
|
|
1563
|
-
t =
|
|
1583
|
+
if (er.test(i.stem)) {
|
|
1584
|
+
t = _(_({}, t), Et(i.stem));
|
|
1564
1585
|
continue;
|
|
1565
1586
|
}
|
|
1566
|
-
var s =
|
|
1567
|
-
s && (t =
|
|
1568
|
-
var a =
|
|
1569
|
-
a && (t =
|
|
1587
|
+
var s = rr(i.stem);
|
|
1588
|
+
s && (t = _(_({}, t), s));
|
|
1589
|
+
var a = Mn(i.stem);
|
|
1590
|
+
a && (t = _(_({}, t), a));
|
|
1570
1591
|
}
|
|
1571
1592
|
return t;
|
|
1572
1593
|
}
|
|
@@ -2985,13 +3006,13 @@ var fe = {
|
|
|
2985
3006
|
"h"
|
|
2986
3007
|
]
|
|
2987
3008
|
};
|
|
2988
|
-
function
|
|
3009
|
+
function Rn(e, t) {
|
|
2989
3010
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2990
3011
|
var i = e.charAt(n);
|
|
2991
3012
|
if (i === "j") {
|
|
2992
3013
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2993
3014
|
o++, n++;
|
|
2994
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3015
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
|
|
2995
3016
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2996
3017
|
r += h;
|
|
2997
3018
|
for (; s-- > 0; )
|
|
@@ -3001,7 +3022,7 @@ function Mn(e, t) {
|
|
|
3001
3022
|
}
|
|
3002
3023
|
return r;
|
|
3003
3024
|
}
|
|
3004
|
-
function
|
|
3025
|
+
function Un(e) {
|
|
3005
3026
|
var t = e.hourCycle;
|
|
3006
3027
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3007
3028
|
e.hourCycles && // @ts-ignore
|
|
@@ -3023,20 +3044,20 @@ function Rn(e) {
|
|
|
3023
3044
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
3024
3045
|
return i[0];
|
|
3025
3046
|
}
|
|
3026
|
-
var
|
|
3047
|
+
var Ne, Dn = new RegExp("^".concat(Kt.source, "*")), Gn = new RegExp("".concat(Kt.source, "*$"));
|
|
3027
3048
|
function b(e, t) {
|
|
3028
3049
|
return { start: e, end: t };
|
|
3029
3050
|
}
|
|
3030
|
-
var
|
|
3051
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
|
|
3031
3052
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3032
|
-
},
|
|
3053
|
+
}, ze = !0;
|
|
3033
3054
|
try {
|
|
3034
|
-
var
|
|
3035
|
-
|
|
3055
|
+
var Qn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3056
|
+
ze = ((Ne = Qn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
3036
3057
|
} catch (e) {
|
|
3037
|
-
|
|
3058
|
+
ze = !1;
|
|
3038
3059
|
}
|
|
3039
|
-
var
|
|
3060
|
+
var Tt = Fn ? (
|
|
3040
3061
|
// Native
|
|
3041
3062
|
function(t, r, n) {
|
|
3042
3063
|
return t.startsWith(r, n);
|
|
@@ -3046,7 +3067,7 @@ var Et = Dn ? (
|
|
|
3046
3067
|
function(t, r, n) {
|
|
3047
3068
|
return t.slice(n, n + r.length) === r;
|
|
3048
3069
|
}
|
|
3049
|
-
),
|
|
3070
|
+
), Ze = jn ? String.fromCodePoint : (
|
|
3050
3071
|
// IE11
|
|
3051
3072
|
function() {
|
|
3052
3073
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3058,9 +3079,9 @@ var Et = Dn ? (
|
|
|
3058
3079
|
}
|
|
3059
3080
|
return n;
|
|
3060
3081
|
}
|
|
3061
|
-
),
|
|
3082
|
+
), Ht = (
|
|
3062
3083
|
// native
|
|
3063
|
-
|
|
3084
|
+
kn ? Object.fromEntries : (
|
|
3064
3085
|
// Ponyfill
|
|
3065
3086
|
function(t) {
|
|
3066
3087
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3070,7 +3091,7 @@ var Et = Dn ? (
|
|
|
3070
3091
|
return r;
|
|
3071
3092
|
}
|
|
3072
3093
|
)
|
|
3073
|
-
),
|
|
3094
|
+
), nr = Vn ? (
|
|
3074
3095
|
// Native
|
|
3075
3096
|
function(t, r) {
|
|
3076
3097
|
return t.codePointAt(r);
|
|
@@ -3084,7 +3105,7 @@ var Et = Dn ? (
|
|
|
3084
3105
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3085
3106
|
}
|
|
3086
3107
|
}
|
|
3087
|
-
),
|
|
3108
|
+
), qn = Xn ? (
|
|
3088
3109
|
// Native
|
|
3089
3110
|
function(t) {
|
|
3090
3111
|
return t.trimStart();
|
|
@@ -3092,9 +3113,9 @@ var Et = Dn ? (
|
|
|
3092
3113
|
) : (
|
|
3093
3114
|
// Ponyfill
|
|
3094
3115
|
function(t) {
|
|
3095
|
-
return t.replace(
|
|
3116
|
+
return t.replace(Dn, "");
|
|
3096
3117
|
}
|
|
3097
|
-
),
|
|
3118
|
+
), Jn = Wn ? (
|
|
3098
3119
|
// Native
|
|
3099
3120
|
function(t) {
|
|
3100
3121
|
return t.trimEnd();
|
|
@@ -3102,32 +3123,32 @@ var Et = Dn ? (
|
|
|
3102
3123
|
) : (
|
|
3103
3124
|
// Ponyfill
|
|
3104
3125
|
function(t) {
|
|
3105
|
-
return t.replace(
|
|
3126
|
+
return t.replace(Gn, "");
|
|
3106
3127
|
}
|
|
3107
3128
|
);
|
|
3108
|
-
function
|
|
3129
|
+
function ir(e, t) {
|
|
3109
3130
|
return new RegExp(e, t);
|
|
3110
3131
|
}
|
|
3111
|
-
var
|
|
3112
|
-
if (
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3132
|
+
var Qe;
|
|
3133
|
+
if (ze) {
|
|
3134
|
+
var St = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3135
|
+
Qe = function(t, r) {
|
|
3115
3136
|
var n;
|
|
3116
|
-
|
|
3117
|
-
var i =
|
|
3137
|
+
St.lastIndex = r;
|
|
3138
|
+
var i = St.exec(t);
|
|
3118
3139
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3119
3140
|
};
|
|
3120
3141
|
} else
|
|
3121
|
-
|
|
3142
|
+
Qe = function(t, r) {
|
|
3122
3143
|
for (var n = []; ; ) {
|
|
3123
|
-
var i =
|
|
3124
|
-
if (i === void 0 ||
|
|
3144
|
+
var i = nr(t, r);
|
|
3145
|
+
if (i === void 0 || or(i) || ti(i))
|
|
3125
3146
|
break;
|
|
3126
3147
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3127
3148
|
}
|
|
3128
|
-
return
|
|
3149
|
+
return Ze.apply(void 0, n);
|
|
3129
3150
|
};
|
|
3130
|
-
var
|
|
3151
|
+
var Yn = (
|
|
3131
3152
|
/** @class */
|
|
3132
3153
|
function() {
|
|
3133
3154
|
function e(t, r) {
|
|
@@ -3151,14 +3172,14 @@ var qn = (
|
|
|
3151
3172
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3152
3173
|
var a = this.clonePosition();
|
|
3153
3174
|
this.bump(), i.push({
|
|
3154
|
-
type:
|
|
3175
|
+
type: v.pound,
|
|
3155
3176
|
location: b(a, this.clonePosition())
|
|
3156
3177
|
});
|
|
3157
3178
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3158
3179
|
if (n)
|
|
3159
3180
|
break;
|
|
3160
3181
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3161
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3182
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
3162
3183
|
var s = this.parseTag(t, r);
|
|
3163
3184
|
if (s.err)
|
|
3164
3185
|
return s;
|
|
@@ -3179,7 +3200,7 @@ var qn = (
|
|
|
3179
3200
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3180
3201
|
return {
|
|
3181
3202
|
val: {
|
|
3182
|
-
type:
|
|
3203
|
+
type: v.literal,
|
|
3183
3204
|
value: "<".concat(i, "/>"),
|
|
3184
3205
|
location: b(n, this.clonePosition())
|
|
3185
3206
|
},
|
|
@@ -3191,12 +3212,12 @@ var qn = (
|
|
|
3191
3212
|
return o;
|
|
3192
3213
|
var s = o.val, a = this.clonePosition();
|
|
3193
3214
|
if (this.bumpIf("</")) {
|
|
3194
|
-
if (this.isEOF() || !
|
|
3215
|
+
if (this.isEOF() || !qe(this.char()))
|
|
3195
3216
|
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3196
3217
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3197
3218
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3198
3219
|
val: {
|
|
3199
|
-
type:
|
|
3220
|
+
type: v.tag,
|
|
3200
3221
|
value: i,
|
|
3201
3222
|
children: s,
|
|
3202
3223
|
location: b(n, this.clonePosition())
|
|
@@ -3209,7 +3230,7 @@ var qn = (
|
|
|
3209
3230
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3210
3231
|
}, e.prototype.parseTagName = function() {
|
|
3211
3232
|
var t = this.offset();
|
|
3212
|
-
for (this.bump(); !this.isEOF() &&
|
|
3233
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3213
3234
|
this.bump();
|
|
3214
3235
|
return this.message.slice(t, this.offset());
|
|
3215
3236
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3233,12 +3254,12 @@ var qn = (
|
|
|
3233
3254
|
}
|
|
3234
3255
|
var h = b(n, this.clonePosition());
|
|
3235
3256
|
return {
|
|
3236
|
-
val: { type:
|
|
3257
|
+
val: { type: v.literal, value: i, location: h },
|
|
3237
3258
|
err: null
|
|
3238
3259
|
};
|
|
3239
3260
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3240
3261
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3241
|
-
!
|
|
3262
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3242
3263
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3243
3264
|
if (this.isEOF() || this.char() !== 39)
|
|
3244
3265
|
return null;
|
|
@@ -3272,12 +3293,12 @@ var qn = (
|
|
|
3272
3293
|
r.push(n);
|
|
3273
3294
|
this.bump();
|
|
3274
3295
|
}
|
|
3275
|
-
return
|
|
3296
|
+
return Ze.apply(void 0, r);
|
|
3276
3297
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3277
3298
|
if (this.isEOF())
|
|
3278
3299
|
return null;
|
|
3279
3300
|
var n = this.char();
|
|
3280
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3301
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
3281
3302
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3282
3303
|
var n = this.clonePosition();
|
|
3283
3304
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3293,7 +3314,7 @@ var qn = (
|
|
|
3293
3314
|
case 125:
|
|
3294
3315
|
return this.bump(), {
|
|
3295
3316
|
val: {
|
|
3296
|
-
type:
|
|
3317
|
+
type: v.argument,
|
|
3297
3318
|
// value does not include the opening and closing braces.
|
|
3298
3319
|
value: i,
|
|
3299
3320
|
location: b(n, this.clonePosition())
|
|
@@ -3306,7 +3327,7 @@ var qn = (
|
|
|
3306
3327
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3307
3328
|
}
|
|
3308
3329
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3309
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3330
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3310
3331
|
this.bumpTo(i);
|
|
3311
3332
|
var o = this.clonePosition(), s = b(t, o);
|
|
3312
3333
|
return { value: n, location: s };
|
|
@@ -3325,44 +3346,44 @@ var qn = (
|
|
|
3325
3346
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3326
3347
|
if (c.err)
|
|
3327
3348
|
return c;
|
|
3328
|
-
var f =
|
|
3349
|
+
var f = Jn(c.val);
|
|
3329
3350
|
if (f.length === 0)
|
|
3330
3351
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3331
3352
|
var p = b(l, this.clonePosition());
|
|
3332
3353
|
u = { style: f, styleLocation: p };
|
|
3333
3354
|
}
|
|
3334
|
-
var
|
|
3335
|
-
if (
|
|
3336
|
-
return
|
|
3355
|
+
var g = this.tryParseArgumentClose(i);
|
|
3356
|
+
if (g.err)
|
|
3357
|
+
return g;
|
|
3337
3358
|
var m = b(i, this.clonePosition());
|
|
3338
|
-
if (u &&
|
|
3339
|
-
var T =
|
|
3359
|
+
if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3360
|
+
var T = qn(u.style.slice(2));
|
|
3340
3361
|
if (a === "number") {
|
|
3341
3362
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3342
3363
|
return c.err ? c : {
|
|
3343
|
-
val: { type:
|
|
3364
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
|
3344
3365
|
err: null
|
|
3345
3366
|
};
|
|
3346
3367
|
} else {
|
|
3347
3368
|
if (T.length === 0)
|
|
3348
3369
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3349
|
-
var
|
|
3350
|
-
this.locale && (
|
|
3370
|
+
var R = T;
|
|
3371
|
+
this.locale && (R = Rn(T, this.locale));
|
|
3351
3372
|
var f = {
|
|
3352
|
-
type:
|
|
3353
|
-
pattern:
|
|
3373
|
+
type: z.dateTime,
|
|
3374
|
+
pattern: R,
|
|
3354
3375
|
location: u.styleLocation,
|
|
3355
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3356
|
-
},
|
|
3376
|
+
parsedOptions: this.shouldParseSkeletons ? On(R) : {}
|
|
3377
|
+
}, O = a === "date" ? v.date : v.time;
|
|
3357
3378
|
return {
|
|
3358
|
-
val: { type:
|
|
3379
|
+
val: { type: O, value: n, location: m, style: f },
|
|
3359
3380
|
err: null
|
|
3360
3381
|
};
|
|
3361
3382
|
}
|
|
3362
3383
|
}
|
|
3363
3384
|
return {
|
|
3364
3385
|
val: {
|
|
3365
|
-
type: a === "number" ?
|
|
3386
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3366
3387
|
value: n,
|
|
3367
3388
|
location: m,
|
|
3368
3389
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3375,9 +3396,9 @@ var qn = (
|
|
|
3375
3396
|
case "select": {
|
|
3376
3397
|
var S = this.clonePosition();
|
|
3377
3398
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3378
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3399
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, ye({}, S)));
|
|
3379
3400
|
this.bumpSpace();
|
|
3380
|
-
var U = this.parseIdentifierIfPossible(),
|
|
3401
|
+
var U = this.parseIdentifierIfPossible(), I = 0;
|
|
3381
3402
|
if (a !== "select" && U.value === "offset") {
|
|
3382
3403
|
if (!this.bumpIf(":"))
|
|
3383
3404
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3385,31 +3406,31 @@ var qn = (
|
|
|
3385
3406
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3386
3407
|
if (c.err)
|
|
3387
3408
|
return c;
|
|
3388
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(),
|
|
3409
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), I = c.val;
|
|
3389
3410
|
}
|
|
3390
3411
|
var G = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3391
3412
|
if (G.err)
|
|
3392
3413
|
return G;
|
|
3393
|
-
var
|
|
3394
|
-
if (
|
|
3395
|
-
return
|
|
3396
|
-
var
|
|
3414
|
+
var g = this.tryParseArgumentClose(i);
|
|
3415
|
+
if (g.err)
|
|
3416
|
+
return g;
|
|
3417
|
+
var y = b(i, this.clonePosition());
|
|
3397
3418
|
return a === "select" ? {
|
|
3398
3419
|
val: {
|
|
3399
|
-
type:
|
|
3420
|
+
type: v.select,
|
|
3400
3421
|
value: n,
|
|
3401
|
-
options:
|
|
3402
|
-
location:
|
|
3422
|
+
options: Ht(G.val),
|
|
3423
|
+
location: y
|
|
3403
3424
|
},
|
|
3404
3425
|
err: null
|
|
3405
3426
|
} : {
|
|
3406
3427
|
val: {
|
|
3407
|
-
type:
|
|
3428
|
+
type: v.plural,
|
|
3408
3429
|
value: n,
|
|
3409
|
-
options:
|
|
3410
|
-
offset:
|
|
3430
|
+
options: Ht(G.val),
|
|
3431
|
+
offset: I,
|
|
3411
3432
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3412
|
-
location:
|
|
3433
|
+
location: y
|
|
3413
3434
|
},
|
|
3414
3435
|
err: null
|
|
3415
3436
|
};
|
|
@@ -3457,16 +3478,16 @@ var qn = (
|
|
|
3457
3478
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3458
3479
|
var n = [];
|
|
3459
3480
|
try {
|
|
3460
|
-
n =
|
|
3481
|
+
n = Nn(t);
|
|
3461
3482
|
} catch (i) {
|
|
3462
3483
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3463
3484
|
}
|
|
3464
3485
|
return {
|
|
3465
3486
|
val: {
|
|
3466
|
-
type:
|
|
3487
|
+
type: z.number,
|
|
3467
3488
|
tokens: n,
|
|
3468
3489
|
location: r,
|
|
3469
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3490
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3470
3491
|
},
|
|
3471
3492
|
err: null
|
|
3472
3493
|
};
|
|
@@ -3488,16 +3509,16 @@ var qn = (
|
|
|
3488
3509
|
var p = this.clonePosition();
|
|
3489
3510
|
if (!this.bumpIf("{"))
|
|
3490
3511
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3491
|
-
var
|
|
3492
|
-
if (
|
|
3493
|
-
return
|
|
3512
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3513
|
+
if (g.err)
|
|
3514
|
+
return g;
|
|
3494
3515
|
var m = this.tryParseArgumentClose(p);
|
|
3495
3516
|
if (m.err)
|
|
3496
3517
|
return m;
|
|
3497
3518
|
a.push([
|
|
3498
3519
|
u,
|
|
3499
3520
|
{
|
|
3500
|
-
value:
|
|
3521
|
+
value: g.val,
|
|
3501
3522
|
location: b(p, this.clonePosition())
|
|
3502
3523
|
}
|
|
3503
3524
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -3514,7 +3535,7 @@ var qn = (
|
|
|
3514
3535
|
break;
|
|
3515
3536
|
}
|
|
3516
3537
|
var h = b(i, this.clonePosition());
|
|
3517
|
-
return o ? (s *= n,
|
|
3538
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3518
3539
|
}, e.prototype.offset = function() {
|
|
3519
3540
|
return this.position.offset;
|
|
3520
3541
|
}, e.prototype.isEOF = function() {
|
|
@@ -3529,7 +3550,7 @@ var qn = (
|
|
|
3529
3550
|
var t = this.position.offset;
|
|
3530
3551
|
if (t >= this.message.length)
|
|
3531
3552
|
throw Error("out of bound");
|
|
3532
|
-
var r =
|
|
3553
|
+
var r = nr(this.message, t);
|
|
3533
3554
|
if (r === void 0)
|
|
3534
3555
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3535
3556
|
return r;
|
|
@@ -3548,7 +3569,7 @@ var qn = (
|
|
|
3548
3569
|
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);
|
|
3549
3570
|
}
|
|
3550
3571
|
}, e.prototype.bumpIf = function(t) {
|
|
3551
|
-
if (
|
|
3572
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3552
3573
|
for (var r = 0; r < t.length; r++)
|
|
3553
3574
|
this.bump();
|
|
3554
3575
|
return !0;
|
|
@@ -3570,7 +3591,7 @@ var qn = (
|
|
|
3570
3591
|
break;
|
|
3571
3592
|
}
|
|
3572
3593
|
}, e.prototype.bumpSpace = function() {
|
|
3573
|
-
for (; !this.isEOF() &&
|
|
3594
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3574
3595
|
this.bump();
|
|
3575
3596
|
}, e.prototype.peek = function() {
|
|
3576
3597
|
if (this.isEOF())
|
|
@@ -3580,47 +3601,47 @@ var qn = (
|
|
|
3580
3601
|
}, e;
|
|
3581
3602
|
}()
|
|
3582
3603
|
);
|
|
3583
|
-
function
|
|
3604
|
+
function qe(e) {
|
|
3584
3605
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3585
3606
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return
|
|
3607
|
+
function Kn(e) {
|
|
3608
|
+
return qe(e) || e === 47;
|
|
3588
3609
|
}
|
|
3589
|
-
function
|
|
3610
|
+
function ei(e) {
|
|
3590
3611
|
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;
|
|
3591
3612
|
}
|
|
3592
|
-
function
|
|
3613
|
+
function or(e) {
|
|
3593
3614
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3594
3615
|
}
|
|
3595
|
-
function
|
|
3616
|
+
function ti(e) {
|
|
3596
3617
|
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;
|
|
3597
3618
|
}
|
|
3598
|
-
function
|
|
3619
|
+
function Je(e) {
|
|
3599
3620
|
e.forEach(function(t) {
|
|
3600
|
-
if (delete t.location,
|
|
3621
|
+
if (delete t.location, Qt(t) || qt(t))
|
|
3601
3622
|
for (var r in t.options)
|
|
3602
|
-
delete t.options[r].location,
|
|
3623
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3603
3624
|
else
|
|
3604
|
-
|
|
3625
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && We(t.style) ? delete t.style.location : Jt(t) && Je(t.children);
|
|
3605
3626
|
});
|
|
3606
3627
|
}
|
|
3607
|
-
function
|
|
3608
|
-
t === void 0 && (t = {}), t =
|
|
3609
|
-
var r = new
|
|
3628
|
+
function ri(e, t) {
|
|
3629
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3630
|
+
var r = new Yn(e, t).parse();
|
|
3610
3631
|
if (r.err) {
|
|
3611
3632
|
var n = SyntaxError(d[r.err.kind]);
|
|
3612
3633
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3613
3634
|
}
|
|
3614
|
-
return t != null && t.captureLocation ||
|
|
3635
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3615
3636
|
}
|
|
3616
|
-
var
|
|
3637
|
+
var Z;
|
|
3617
3638
|
(function(e) {
|
|
3618
3639
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3619
|
-
})(
|
|
3620
|
-
var
|
|
3640
|
+
})(Z || (Z = {}));
|
|
3641
|
+
var Te = (
|
|
3621
3642
|
/** @class */
|
|
3622
3643
|
function(e) {
|
|
3623
|
-
|
|
3644
|
+
xe(t, e);
|
|
3624
3645
|
function t(r, n, i) {
|
|
3625
3646
|
var o = e.call(this, r) || this;
|
|
3626
3647
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3629,48 +3650,48 @@ var Ee = (
|
|
|
3629
3650
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3630
3651
|
}, t;
|
|
3631
3652
|
}(Error)
|
|
3632
|
-
),
|
|
3653
|
+
), wt = (
|
|
3633
3654
|
/** @class */
|
|
3634
3655
|
function(e) {
|
|
3635
|
-
|
|
3656
|
+
xe(t, e);
|
|
3636
3657
|
function t(r, n, i, o) {
|
|
3637
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3658
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3638
3659
|
}
|
|
3639
3660
|
return t;
|
|
3640
|
-
}(
|
|
3641
|
-
),
|
|
3661
|
+
}(Te)
|
|
3662
|
+
), ni = (
|
|
3642
3663
|
/** @class */
|
|
3643
3664
|
function(e) {
|
|
3644
|
-
|
|
3665
|
+
xe(t, e);
|
|
3645
3666
|
function t(r, n, i) {
|
|
3646
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3667
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3647
3668
|
}
|
|
3648
3669
|
return t;
|
|
3649
|
-
}(
|
|
3650
|
-
),
|
|
3670
|
+
}(Te)
|
|
3671
|
+
), ii = (
|
|
3651
3672
|
/** @class */
|
|
3652
3673
|
function(e) {
|
|
3653
|
-
|
|
3674
|
+
xe(t, e);
|
|
3654
3675
|
function t(r, n) {
|
|
3655
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3676
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3656
3677
|
}
|
|
3657
3678
|
return t;
|
|
3658
|
-
}(
|
|
3679
|
+
}(Te)
|
|
3659
3680
|
), H;
|
|
3660
3681
|
(function(e) {
|
|
3661
3682
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3662
3683
|
})(H || (H = {}));
|
|
3663
|
-
function
|
|
3684
|
+
function oi(e) {
|
|
3664
3685
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3665
3686
|
var n = t[t.length - 1];
|
|
3666
3687
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3667
3688
|
}, []);
|
|
3668
3689
|
}
|
|
3669
|
-
function
|
|
3690
|
+
function si(e) {
|
|
3670
3691
|
return typeof e == "function";
|
|
3671
3692
|
}
|
|
3672
3693
|
function de(e, t, r, n, i, o, s) {
|
|
3673
|
-
if (e.length === 1 &&
|
|
3694
|
+
if (e.length === 1 && vt(e[0]))
|
|
3674
3695
|
return [
|
|
3675
3696
|
{
|
|
3676
3697
|
type: H.literal,
|
|
@@ -3679,14 +3700,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3679
3700
|
];
|
|
3680
3701
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3681
3702
|
var l = u[h];
|
|
3682
|
-
if (
|
|
3703
|
+
if (vt(l)) {
|
|
3683
3704
|
a.push({
|
|
3684
3705
|
type: H.literal,
|
|
3685
3706
|
value: l.value
|
|
3686
3707
|
});
|
|
3687
3708
|
continue;
|
|
3688
3709
|
}
|
|
3689
|
-
if (
|
|
3710
|
+
if (An(l)) {
|
|
3690
3711
|
typeof o == "number" && a.push({
|
|
3691
3712
|
type: H.literal,
|
|
3692
3713
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3695,89 +3716,89 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3695
3716
|
}
|
|
3696
3717
|
var c = l.value;
|
|
3697
3718
|
if (!(i && c in i))
|
|
3698
|
-
throw new
|
|
3719
|
+
throw new ii(c, s);
|
|
3699
3720
|
var f = i[c];
|
|
3700
|
-
if (
|
|
3721
|
+
if (Bn(l)) {
|
|
3701
3722
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3702
3723
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3703
3724
|
value: f
|
|
3704
3725
|
});
|
|
3705
3726
|
continue;
|
|
3706
3727
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3728
|
+
if (zt(l)) {
|
|
3729
|
+
var p = typeof l.style == "string" ? n.date[l.style] : We(l.style) ? l.style.parsedOptions : void 0;
|
|
3709
3730
|
a.push({
|
|
3710
3731
|
type: H.literal,
|
|
3711
3732
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3712
3733
|
});
|
|
3713
3734
|
continue;
|
|
3714
3735
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3736
|
+
if (Zt(l)) {
|
|
3737
|
+
var p = typeof l.style == "string" ? n.time[l.style] : We(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3717
3738
|
a.push({
|
|
3718
3739
|
type: H.literal,
|
|
3719
3740
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3720
3741
|
});
|
|
3721
3742
|
continue;
|
|
3722
3743
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3744
|
+
if (Wt(l)) {
|
|
3745
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3725
3746
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3726
3747
|
type: H.literal,
|
|
3727
3748
|
value: r.getNumberFormat(t, p).format(f)
|
|
3728
3749
|
});
|
|
3729
3750
|
continue;
|
|
3730
3751
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var
|
|
3733
|
-
if (!
|
|
3734
|
-
throw new
|
|
3735
|
-
var
|
|
3736
|
-
return
|
|
3752
|
+
if (Jt(l)) {
|
|
3753
|
+
var g = l.children, m = l.value, T = i[m];
|
|
3754
|
+
if (!si(T))
|
|
3755
|
+
throw new ni(m, "function", s);
|
|
3756
|
+
var R = de(g, t, r, n, i, o), O = T(R.map(function(I) {
|
|
3757
|
+
return I.value;
|
|
3737
3758
|
}));
|
|
3738
|
-
Array.isArray(
|
|
3759
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(I) {
|
|
3739
3760
|
return {
|
|
3740
|
-
type: typeof
|
|
3741
|
-
value:
|
|
3761
|
+
type: typeof I == "string" ? H.literal : H.object,
|
|
3762
|
+
value: I
|
|
3742
3763
|
};
|
|
3743
3764
|
}));
|
|
3744
3765
|
}
|
|
3745
|
-
if (
|
|
3766
|
+
if (Qt(l)) {
|
|
3746
3767
|
var S = l.options[f] || l.options.other;
|
|
3747
3768
|
if (!S)
|
|
3748
|
-
throw new
|
|
3769
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3749
3770
|
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3750
3771
|
continue;
|
|
3751
3772
|
}
|
|
3752
|
-
if (
|
|
3773
|
+
if (qt(l)) {
|
|
3753
3774
|
var S = l.options["=".concat(f)];
|
|
3754
3775
|
if (!S) {
|
|
3755
3776
|
if (!Intl.PluralRules)
|
|
3756
|
-
throw new
|
|
3777
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3757
3778
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3758
|
-
`,
|
|
3779
|
+
`, Z.MISSING_INTL_API, s);
|
|
3759
3780
|
var U = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3760
3781
|
S = l.options[U] || l.options.other;
|
|
3761
3782
|
}
|
|
3762
3783
|
if (!S)
|
|
3763
|
-
throw new
|
|
3784
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3764
3785
|
a.push.apply(a, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3765
3786
|
continue;
|
|
3766
3787
|
}
|
|
3767
3788
|
}
|
|
3768
|
-
return
|
|
3789
|
+
return oi(a);
|
|
3769
3790
|
}
|
|
3770
|
-
function
|
|
3771
|
-
return t ?
|
|
3772
|
-
return r[n] =
|
|
3791
|
+
function ai(e, t) {
|
|
3792
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3793
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3773
3794
|
}, {})) : e;
|
|
3774
3795
|
}
|
|
3775
|
-
function
|
|
3796
|
+
function ui(e, t) {
|
|
3776
3797
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3777
|
-
return r[n] =
|
|
3778
|
-
},
|
|
3798
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3799
|
+
}, P({}, e)) : e;
|
|
3779
3800
|
}
|
|
3780
|
-
function
|
|
3801
|
+
function Le(e) {
|
|
3781
3802
|
return {
|
|
3782
3803
|
create: function() {
|
|
3783
3804
|
return {
|
|
@@ -3791,39 +3812,39 @@ function Ie(e) {
|
|
|
3791
3812
|
}
|
|
3792
3813
|
};
|
|
3793
3814
|
}
|
|
3794
|
-
function
|
|
3815
|
+
function hi(e) {
|
|
3795
3816
|
return e === void 0 && (e = {
|
|
3796
3817
|
number: {},
|
|
3797
3818
|
dateTime: {},
|
|
3798
3819
|
pluralRules: {}
|
|
3799
3820
|
}), {
|
|
3800
|
-
getNumberFormat:
|
|
3821
|
+
getNumberFormat: Oe(function() {
|
|
3801
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3802
3823
|
r[n] = arguments[n];
|
|
3803
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3824
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3804
3825
|
}, {
|
|
3805
|
-
cache:
|
|
3806
|
-
strategy:
|
|
3826
|
+
cache: Le(e.number),
|
|
3827
|
+
strategy: Ie.variadic
|
|
3807
3828
|
}),
|
|
3808
|
-
getDateTimeFormat:
|
|
3829
|
+
getDateTimeFormat: Oe(function() {
|
|
3809
3830
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3810
3831
|
r[n] = arguments[n];
|
|
3811
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3832
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3812
3833
|
}, {
|
|
3813
|
-
cache:
|
|
3814
|
-
strategy:
|
|
3834
|
+
cache: Le(e.dateTime),
|
|
3835
|
+
strategy: Ie.variadic
|
|
3815
3836
|
}),
|
|
3816
|
-
getPluralRules:
|
|
3837
|
+
getPluralRules: Oe(function() {
|
|
3817
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3839
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3820
3841
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3842
|
+
cache: Le(e.pluralRules),
|
|
3843
|
+
strategy: Ie.variadic
|
|
3823
3844
|
})
|
|
3824
3845
|
};
|
|
3825
3846
|
}
|
|
3826
|
-
var
|
|
3847
|
+
var li = (
|
|
3827
3848
|
/** @class */
|
|
3828
3849
|
function() {
|
|
3829
3850
|
function e(t, r, n, i) {
|
|
@@ -3855,13 +3876,13 @@ var ui = (
|
|
|
3855
3876
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3856
3877
|
var s = i || {};
|
|
3857
3878
|
s.formatters;
|
|
3858
|
-
var a =
|
|
3859
|
-
this.ast = e.__parse(t,
|
|
3879
|
+
var a = vn(s, ["formatters"]);
|
|
3880
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3860
3881
|
} else
|
|
3861
3882
|
this.ast = t;
|
|
3862
3883
|
if (!Array.isArray(this.ast))
|
|
3863
3884
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3864
|
-
this.formats =
|
|
3885
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3865
3886
|
}
|
|
3866
3887
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3867
3888
|
get: function() {
|
|
@@ -3874,7 +3895,7 @@ var ui = (
|
|
|
3874
3895
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3875
3896
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3876
3897
|
}
|
|
3877
|
-
}, e.__parse =
|
|
3898
|
+
}, e.__parse = ri, e.formats = {
|
|
3878
3899
|
number: {
|
|
3879
3900
|
integer: {
|
|
3880
3901
|
maximumFractionDigits: 0
|
|
@@ -3935,7 +3956,7 @@ var ui = (
|
|
|
3935
3956
|
}, e;
|
|
3936
3957
|
}()
|
|
3937
3958
|
);
|
|
3938
|
-
function
|
|
3959
|
+
function ci(e, t) {
|
|
3939
3960
|
if (t == null)
|
|
3940
3961
|
return;
|
|
3941
3962
|
if (t in e)
|
|
@@ -3956,92 +3977,92 @@ function hi(e, t) {
|
|
|
3956
3977
|
n = void 0;
|
|
3957
3978
|
return n;
|
|
3958
3979
|
}
|
|
3959
|
-
const
|
|
3980
|
+
const $ = {}, fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
|
|
3960
3981
|
if (t == null)
|
|
3961
3982
|
return;
|
|
3962
|
-
if (t in
|
|
3963
|
-
return
|
|
3964
|
-
const r =
|
|
3983
|
+
if (t in $ && e in $[t])
|
|
3984
|
+
return $[t][e];
|
|
3985
|
+
const r = He(t);
|
|
3965
3986
|
for (let n = 0; n < r.length; n++) {
|
|
3966
|
-
const i = r[n], o =
|
|
3987
|
+
const i = r[n], o = mi(i, e);
|
|
3967
3988
|
if (o)
|
|
3968
|
-
return
|
|
3989
|
+
return fi(e, t, o);
|
|
3969
3990
|
}
|
|
3970
3991
|
};
|
|
3971
|
-
let
|
|
3972
|
-
const he =
|
|
3973
|
-
function
|
|
3974
|
-
return
|
|
3992
|
+
let rt;
|
|
3993
|
+
const he = Ee({});
|
|
3994
|
+
function pi(e) {
|
|
3995
|
+
return rt[e] || null;
|
|
3975
3996
|
}
|
|
3976
|
-
function
|
|
3977
|
-
return e in
|
|
3997
|
+
function ar(e) {
|
|
3998
|
+
return e in rt;
|
|
3978
3999
|
}
|
|
3979
|
-
function
|
|
3980
|
-
if (!
|
|
4000
|
+
function mi(e, t) {
|
|
4001
|
+
if (!ar(e))
|
|
3981
4002
|
return null;
|
|
3982
|
-
const r =
|
|
3983
|
-
return
|
|
4003
|
+
const r = pi(e);
|
|
4004
|
+
return ci(r, t);
|
|
3984
4005
|
}
|
|
3985
|
-
function
|
|
4006
|
+
function di(e) {
|
|
3986
4007
|
if (e == null)
|
|
3987
4008
|
return;
|
|
3988
|
-
const t =
|
|
4009
|
+
const t = He(e);
|
|
3989
4010
|
for (let r = 0; r < t.length; r++) {
|
|
3990
4011
|
const n = t[r];
|
|
3991
|
-
if (
|
|
4012
|
+
if (ar(n))
|
|
3992
4013
|
return n;
|
|
3993
4014
|
}
|
|
3994
4015
|
}
|
|
3995
|
-
function
|
|
3996
|
-
delete
|
|
4016
|
+
function ur(e, ...t) {
|
|
4017
|
+
delete $[e], he.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3997
4018
|
}
|
|
3998
|
-
|
|
4019
|
+
J(
|
|
3999
4020
|
[he],
|
|
4000
4021
|
([e]) => Object.keys(e)
|
|
4001
4022
|
);
|
|
4002
|
-
he.subscribe((e) =>
|
|
4023
|
+
he.subscribe((e) => rt = e);
|
|
4003
4024
|
const be = {};
|
|
4004
|
-
function
|
|
4025
|
+
function bi(e, t) {
|
|
4005
4026
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4006
4027
|
}
|
|
4007
|
-
function
|
|
4028
|
+
function hr(e) {
|
|
4008
4029
|
return be[e];
|
|
4009
4030
|
}
|
|
4010
|
-
function
|
|
4011
|
-
return
|
|
4012
|
-
const r =
|
|
4031
|
+
function yi(e) {
|
|
4032
|
+
return He(e).map((t) => {
|
|
4033
|
+
const r = hr(t);
|
|
4013
4034
|
return [t, r ? [...r] : []];
|
|
4014
4035
|
}).filter(([, t]) => t.length > 0);
|
|
4015
4036
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return e == null ? !1 :
|
|
4037
|
+
function Ye(e) {
|
|
4038
|
+
return e == null ? !1 : He(e).some(
|
|
4018
4039
|
(t) => {
|
|
4019
4040
|
var r;
|
|
4020
|
-
return (r =
|
|
4041
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
4021
4042
|
}
|
|
4022
4043
|
);
|
|
4023
4044
|
}
|
|
4024
|
-
function
|
|
4045
|
+
function gi(e, t) {
|
|
4025
4046
|
return Promise.all(
|
|
4026
|
-
t.map((n) => (
|
|
4027
|
-
).then((n) =>
|
|
4028
|
-
}
|
|
4029
|
-
const
|
|
4030
|
-
function
|
|
4031
|
-
if (!
|
|
4032
|
-
return e in
|
|
4033
|
-
const t =
|
|
4034
|
-
return
|
|
4047
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4048
|
+
).then((n) => ur(e, ...n));
|
|
4049
|
+
}
|
|
4050
|
+
const ee = {};
|
|
4051
|
+
function lr(e) {
|
|
4052
|
+
if (!Ye(e))
|
|
4053
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4054
|
+
const t = yi(e);
|
|
4055
|
+
return ee[e] = Promise.all(
|
|
4035
4056
|
t.map(
|
|
4036
|
-
([r, n]) =>
|
|
4057
|
+
([r, n]) => gi(r, n)
|
|
4037
4058
|
)
|
|
4038
4059
|
).then(() => {
|
|
4039
|
-
if (
|
|
4040
|
-
return
|
|
4041
|
-
delete
|
|
4042
|
-
}),
|
|
4060
|
+
if (Ye(e))
|
|
4061
|
+
return lr(e);
|
|
4062
|
+
delete ee[e];
|
|
4063
|
+
}), ee[e];
|
|
4043
4064
|
}
|
|
4044
|
-
const
|
|
4065
|
+
const vi = {
|
|
4045
4066
|
number: {
|
|
4046
4067
|
scientific: { notation: "scientific" },
|
|
4047
4068
|
engineering: { notation: "engineering" },
|
|
@@ -4070,135 +4091,135 @@ const yi = {
|
|
|
4070
4091
|
timeZoneName: "short"
|
|
4071
4092
|
}
|
|
4072
4093
|
}
|
|
4073
|
-
},
|
|
4094
|
+
}, _i = {
|
|
4074
4095
|
fallbackLocale: null,
|
|
4075
4096
|
loadingDelay: 200,
|
|
4076
|
-
formats:
|
|
4097
|
+
formats: vi,
|
|
4077
4098
|
warnOnMissingMessages: !0,
|
|
4078
4099
|
handleMissingMessage: void 0,
|
|
4079
4100
|
ignoreTag: !0
|
|
4080
|
-
},
|
|
4081
|
-
function
|
|
4082
|
-
return
|
|
4101
|
+
}, Ei = _i;
|
|
4102
|
+
function Q() {
|
|
4103
|
+
return Ei;
|
|
4083
4104
|
}
|
|
4084
|
-
const
|
|
4085
|
-
var
|
|
4105
|
+
const Ce = Ee(!1);
|
|
4106
|
+
var xi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4086
4107
|
for (var r in t || (t = {}))
|
|
4087
|
-
|
|
4088
|
-
if (
|
|
4089
|
-
for (var r of
|
|
4090
|
-
|
|
4108
|
+
Si.call(t, r) && At(e, r, t[r]);
|
|
4109
|
+
if (Bt)
|
|
4110
|
+
for (var r of Bt(t))
|
|
4111
|
+
wi.call(t, r) && At(e, r, t[r]);
|
|
4091
4112
|
return e;
|
|
4092
|
-
},
|
|
4093
|
-
let
|
|
4094
|
-
const
|
|
4095
|
-
function
|
|
4113
|
+
}, Ai = (e, t) => Ti(e, Hi(t));
|
|
4114
|
+
let Ke;
|
|
4115
|
+
const ge = Ee(null);
|
|
4116
|
+
function Pt(e) {
|
|
4096
4117
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4097
4118
|
}
|
|
4098
|
-
function
|
|
4099
|
-
const r =
|
|
4100
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4119
|
+
function He(e, t = Q().fallbackLocale) {
|
|
4120
|
+
const r = Pt(e);
|
|
4121
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4101
4122
|
}
|
|
4102
4123
|
function D() {
|
|
4103
|
-
return
|
|
4124
|
+
return Ke != null ? Ke : void 0;
|
|
4104
4125
|
}
|
|
4105
|
-
|
|
4106
|
-
|
|
4126
|
+
ge.subscribe((e) => {
|
|
4127
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4107
4128
|
});
|
|
4108
|
-
const
|
|
4109
|
-
if (e &&
|
|
4110
|
-
const { loadingDelay: t } =
|
|
4129
|
+
const Pi = (e) => {
|
|
4130
|
+
if (e && di(e) && Ye(e)) {
|
|
4131
|
+
const { loadingDelay: t } = Q();
|
|
4111
4132
|
let r;
|
|
4112
4133
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4113
|
-
() =>
|
|
4134
|
+
() => Ce.set(!0),
|
|
4114
4135
|
t
|
|
4115
|
-
) :
|
|
4116
|
-
|
|
4136
|
+
) : Ce.set(!0), lr(e).then(() => {
|
|
4137
|
+
ge.set(e);
|
|
4117
4138
|
}).finally(() => {
|
|
4118
|
-
clearTimeout(r),
|
|
4139
|
+
clearTimeout(r), Ce.set(!1);
|
|
4119
4140
|
});
|
|
4120
4141
|
}
|
|
4121
|
-
return
|
|
4122
|
-
},
|
|
4123
|
-
set:
|
|
4124
|
-
}),
|
|
4142
|
+
return ge.set(e);
|
|
4143
|
+
}, Y = Ai(Bi({}, ge), {
|
|
4144
|
+
set: Pi
|
|
4145
|
+
}), Se = (e) => {
|
|
4125
4146
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4126
4147
|
return (n) => {
|
|
4127
4148
|
const i = JSON.stringify(n);
|
|
4128
4149
|
return i in t ? t[i] : t[i] = e(n);
|
|
4129
4150
|
};
|
|
4130
4151
|
};
|
|
4131
|
-
var
|
|
4152
|
+
var Oi = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
4132
4153
|
for (var r in t || (t = {}))
|
|
4133
|
-
|
|
4134
|
-
if (
|
|
4135
|
-
for (var r of
|
|
4136
|
-
|
|
4154
|
+
cr.call(t, r) && Ot(e, r, t[r]);
|
|
4155
|
+
if (ve)
|
|
4156
|
+
for (var r of ve(t))
|
|
4157
|
+
fr.call(t, r) && Ot(e, r, t[r]);
|
|
4137
4158
|
return e;
|
|
4138
|
-
},
|
|
4159
|
+
}, K = (e, t) => {
|
|
4139
4160
|
var r = {};
|
|
4140
4161
|
for (var n in e)
|
|
4141
|
-
|
|
4142
|
-
if (e != null &&
|
|
4143
|
-
for (var n of
|
|
4144
|
-
t.indexOf(n) < 0 &&
|
|
4162
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4163
|
+
if (e != null && ve)
|
|
4164
|
+
for (var n of ve(e))
|
|
4165
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4145
4166
|
return r;
|
|
4146
4167
|
};
|
|
4147
|
-
const
|
|
4148
|
-
const { formats: r } =
|
|
4168
|
+
const oe = (e, t) => {
|
|
4169
|
+
const { formats: r } = Q();
|
|
4149
4170
|
if (e in r && t in r[e])
|
|
4150
4171
|
return r[e][t];
|
|
4151
4172
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4152
|
-
},
|
|
4173
|
+
}, Ii = Se(
|
|
4153
4174
|
(e) => {
|
|
4154
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4175
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4155
4176
|
if (r == null)
|
|
4156
4177
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4157
|
-
return n && (i =
|
|
4178
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4158
4179
|
}
|
|
4159
|
-
),
|
|
4180
|
+
), Ni = Se(
|
|
4160
4181
|
(e) => {
|
|
4161
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4182
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4162
4183
|
if (r == null)
|
|
4163
4184
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4164
|
-
return n ? i =
|
|
4185
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4165
4186
|
}
|
|
4166
|
-
),
|
|
4187
|
+
), Li = Se(
|
|
4167
4188
|
(e) => {
|
|
4168
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4189
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4169
4190
|
if (r == null)
|
|
4170
4191
|
throw new Error(
|
|
4171
4192
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4172
4193
|
);
|
|
4173
|
-
return n ? i =
|
|
4194
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4174
4195
|
}
|
|
4175
|
-
),
|
|
4196
|
+
), Ci = (e = {}) => {
|
|
4176
4197
|
var t = e, {
|
|
4177
4198
|
locale: r = D()
|
|
4178
|
-
} = t, n =
|
|
4199
|
+
} = t, n = K(t, [
|
|
4179
4200
|
"locale"
|
|
4180
4201
|
]);
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4202
|
+
return Ii(nt({ locale: r }, n));
|
|
4203
|
+
}, Mi = (e = {}) => {
|
|
4183
4204
|
var t = e, {
|
|
4184
4205
|
locale: r = D()
|
|
4185
|
-
} = t, n =
|
|
4206
|
+
} = t, n = K(t, [
|
|
4186
4207
|
"locale"
|
|
4187
4208
|
]);
|
|
4188
|
-
return
|
|
4189
|
-
},
|
|
4209
|
+
return Ni(nt({ locale: r }, n));
|
|
4210
|
+
}, $i = (e = {}) => {
|
|
4190
4211
|
var t = e, {
|
|
4191
4212
|
locale: r = D()
|
|
4192
|
-
} = t, n =
|
|
4213
|
+
} = t, n = K(t, [
|
|
4193
4214
|
"locale"
|
|
4194
4215
|
]);
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4216
|
+
return Li(nt({ locale: r }, n));
|
|
4217
|
+
}, Ri = Se(
|
|
4197
4218
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4198
|
-
(e, t = D()) => new
|
|
4199
|
-
ignoreTag:
|
|
4219
|
+
(e, t = D()) => new li(e, t, Q().formats, {
|
|
4220
|
+
ignoreTag: Q().ignoreTag
|
|
4200
4221
|
})
|
|
4201
|
-
),
|
|
4222
|
+
), Ui = (e, t = {}) => {
|
|
4202
4223
|
var r, n, i, o;
|
|
4203
4224
|
let s = t;
|
|
4204
4225
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4211,9 +4232,9 @@ const se = (e, t) => {
|
|
|
4211
4232
|
throw new Error(
|
|
4212
4233
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4213
4234
|
);
|
|
4214
|
-
let l =
|
|
4235
|
+
let l = sr(e, h);
|
|
4215
4236
|
if (!l)
|
|
4216
|
-
l = (o = (i = (n = (r =
|
|
4237
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4217
4238
|
else if (typeof l != "string")
|
|
4218
4239
|
return console.warn(
|
|
4219
4240
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4222,7 +4243,7 @@ const se = (e, t) => {
|
|
|
4222
4243
|
return l;
|
|
4223
4244
|
let c = l;
|
|
4224
4245
|
try {
|
|
4225
|
-
c =
|
|
4246
|
+
c = Ri(l, h).format(a);
|
|
4226
4247
|
} catch (f) {
|
|
4227
4248
|
f instanceof Error && console.warn(
|
|
4228
4249
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4230,21 +4251,21 @@ const se = (e, t) => {
|
|
|
4230
4251
|
);
|
|
4231
4252
|
}
|
|
4232
4253
|
return c;
|
|
4233
|
-
},
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4254
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), Fi = (e, t) => Ci(t).format(e), ji = (e, t = D()) => sr(e, t), ki = J([Y, he], () => Ui);
|
|
4255
|
+
J([Y], () => Di);
|
|
4256
|
+
J([Y], () => Gi);
|
|
4257
|
+
J([Y], () => Fi);
|
|
4258
|
+
J([Y, he], () => ji);
|
|
4238
4259
|
window.emWidgets = { topic: en };
|
|
4239
|
-
const
|
|
4260
|
+
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4240
4261
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4241
|
-
function
|
|
4242
|
-
|
|
4262
|
+
function It(e, t) {
|
|
4263
|
+
ur(e, t);
|
|
4243
4264
|
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4265
|
+
function Xi(e) {
|
|
4266
|
+
Y.set(e);
|
|
4246
4267
|
}
|
|
4247
|
-
const
|
|
4268
|
+
const Nt = {
|
|
4248
4269
|
en: {
|
|
4249
4270
|
titleTransactionHistory: "Transaction History",
|
|
4250
4271
|
loading: "Loading, please wait ..."
|
|
@@ -4286,13 +4307,13 @@ const Ot = {
|
|
|
4286
4307
|
loading: "Loading, please wait ..."
|
|
4287
4308
|
}
|
|
4288
4309
|
};
|
|
4289
|
-
function
|
|
4310
|
+
function Wi(e, t) {
|
|
4290
4311
|
if (e) {
|
|
4291
4312
|
const r = document.createElement("style");
|
|
4292
4313
|
r.innerHTML = t, e.appendChild(r);
|
|
4293
4314
|
}
|
|
4294
4315
|
}
|
|
4295
|
-
function
|
|
4316
|
+
function zi(e, t) {
|
|
4296
4317
|
if (!e || !t)
|
|
4297
4318
|
return;
|
|
4298
4319
|
const r = new URL(t);
|
|
@@ -4303,7 +4324,7 @@ function Xi(e, t) {
|
|
|
4303
4324
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4304
4325
|
});
|
|
4305
4326
|
}
|
|
4306
|
-
function
|
|
4327
|
+
function Zi(e, t, r) {
|
|
4307
4328
|
if (window.emMessageBus) {
|
|
4308
4329
|
const n = document.createElement("style");
|
|
4309
4330
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4311,20 +4332,20 @@ function Wi(e, t, r) {
|
|
|
4311
4332
|
});
|
|
4312
4333
|
}
|
|
4313
4334
|
}
|
|
4314
|
-
function
|
|
4315
|
-
|
|
4335
|
+
function Qi(e) {
|
|
4336
|
+
_r(e, "svelte-1v10tii", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4316
4337
|
}
|
|
4317
|
-
function
|
|
4338
|
+
function qi(e) {
|
|
4318
4339
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4319
4340
|
/*$_*/
|
|
4320
4341
|
e[3]("titleTransactionHistory") + ""
|
|
4321
|
-
), f, p,
|
|
4342
|
+
), f, p, g;
|
|
4322
4343
|
return {
|
|
4323
4344
|
c() {
|
|
4324
|
-
t =
|
|
4345
|
+
t = L("div"), r = F("svg"), n = F("defs"), i = F("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = F("g"), a = F("g"), h = F("path"), u = Me(), l = L("h2"), f = re(c), E(h, "class", "aaa"), E(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(h, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "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(l, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4325
4346
|
},
|
|
4326
4347
|
m(m, T) {
|
|
4327
|
-
|
|
4348
|
+
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, s), x(s, a), x(a, h), x(t, u), x(t, l), x(l, f), p || (g = Tr(
|
|
4328
4349
|
t,
|
|
4329
4350
|
"click",
|
|
4330
4351
|
/*click_handler*/
|
|
@@ -4334,119 +4355,119 @@ function Zi(e) {
|
|
|
4334
4355
|
p(m, T) {
|
|
4335
4356
|
T & /*$_*/
|
|
4336
4357
|
8 && c !== (c = /*$_*/
|
|
4337
|
-
m[3]("titleTransactionHistory") + "") &&
|
|
4358
|
+
m[3]("titleTransactionHistory") + "") && tt(f, c);
|
|
4338
4359
|
},
|
|
4339
4360
|
d(m) {
|
|
4340
|
-
m &&
|
|
4361
|
+
m && q(t), p = !1, g();
|
|
4341
4362
|
}
|
|
4342
4363
|
};
|
|
4343
4364
|
}
|
|
4344
|
-
function
|
|
4365
|
+
function Ji(e) {
|
|
4345
4366
|
let t, r, n;
|
|
4346
4367
|
return {
|
|
4347
4368
|
c() {
|
|
4348
|
-
t =
|
|
4369
|
+
t = L("div"), r = L("iframe"), ht(r.src, n = /*iframeUrl*/
|
|
4349
4370
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4350
4371
|
},
|
|
4351
4372
|
m(i, o) {
|
|
4352
|
-
|
|
4373
|
+
ae(i, t, o), x(t, r);
|
|
4353
4374
|
},
|
|
4354
4375
|
p(i, o) {
|
|
4355
4376
|
o & /*iframeUrl*/
|
|
4356
|
-
4 && !
|
|
4377
|
+
4 && !ht(r.src, n = /*iframeUrl*/
|
|
4357
4378
|
i[2]) && E(r, "src", n);
|
|
4358
4379
|
},
|
|
4359
4380
|
d(i) {
|
|
4360
|
-
i &&
|
|
4381
|
+
i && q(t);
|
|
4361
4382
|
}
|
|
4362
4383
|
};
|
|
4363
4384
|
}
|
|
4364
|
-
function
|
|
4385
|
+
function Yi(e) {
|
|
4365
4386
|
let t, r = (
|
|
4366
4387
|
/*$_*/
|
|
4367
4388
|
e[3]("loading") + ""
|
|
4368
4389
|
), n;
|
|
4369
4390
|
return {
|
|
4370
4391
|
c() {
|
|
4371
|
-
t =
|
|
4392
|
+
t = L("p"), n = re(r);
|
|
4372
4393
|
},
|
|
4373
4394
|
m(i, o) {
|
|
4374
|
-
|
|
4395
|
+
ae(i, t, o), x(t, n);
|
|
4375
4396
|
},
|
|
4376
4397
|
p(i, o) {
|
|
4377
4398
|
o & /*$_*/
|
|
4378
4399
|
8 && r !== (r = /*$_*/
|
|
4379
|
-
i[3]("loading") + "") &&
|
|
4400
|
+
i[3]("loading") + "") && tt(n, r);
|
|
4380
4401
|
},
|
|
4381
4402
|
d(i) {
|
|
4382
|
-
i &&
|
|
4403
|
+
i && q(t);
|
|
4383
4404
|
}
|
|
4384
4405
|
};
|
|
4385
4406
|
}
|
|
4386
|
-
function
|
|
4407
|
+
function Ki(e) {
|
|
4387
4408
|
let t, r, n, i = (
|
|
4388
4409
|
/*$_*/
|
|
4389
4410
|
e[3]("titleTransactionHistory") + ""
|
|
4390
4411
|
), o, s, a = (
|
|
4391
4412
|
/*isMobile*/
|
|
4392
|
-
e[4] &&
|
|
4413
|
+
e[4] && qi(e)
|
|
4393
4414
|
);
|
|
4394
4415
|
function h(c, f) {
|
|
4395
4416
|
return (
|
|
4396
4417
|
/*isLoading*/
|
|
4397
|
-
c[1] ?
|
|
4418
|
+
c[1] ? Yi : Ji
|
|
4398
4419
|
);
|
|
4399
4420
|
}
|
|
4400
4421
|
let u = h(e), l = u(e);
|
|
4401
4422
|
return {
|
|
4402
4423
|
c() {
|
|
4403
|
-
t =
|
|
4424
|
+
t = L("div"), a && a.c(), r = Me(), n = L("h2"), o = re(i), s = Me(), l.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4404
4425
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4405
4426
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4406
4427
|
},
|
|
4407
4428
|
m(c, f) {
|
|
4408
|
-
|
|
4429
|
+
ae(c, t, f), a && a.m(t, null), x(t, r), x(t, n), x(n, o), x(t, s), l.m(t, null), e[15](t);
|
|
4409
4430
|
},
|
|
4410
4431
|
p(c, [f]) {
|
|
4411
4432
|
/*isMobile*/
|
|
4412
4433
|
c[4] && a.p(c, f), f & /*$_*/
|
|
4413
4434
|
8 && i !== (i = /*$_*/
|
|
4414
|
-
c[3]("titleTransactionHistory") + "") &&
|
|
4435
|
+
c[3]("titleTransactionHistory") + "") && tt(o, i), u === (u = h(c)) && l ? l.p(c, f) : (l.d(1), l = u(c), l && (l.c(), l.m(t, null)));
|
|
4415
4436
|
},
|
|
4416
4437
|
i: B,
|
|
4417
4438
|
o: B,
|
|
4418
4439
|
d(c) {
|
|
4419
|
-
c &&
|
|
4440
|
+
c && q(t), a && a.d(), l.d(), e[15](null);
|
|
4420
4441
|
}
|
|
4421
4442
|
};
|
|
4422
4443
|
}
|
|
4423
|
-
function
|
|
4444
|
+
function eo(e, t, r) {
|
|
4424
4445
|
let n;
|
|
4425
|
-
|
|
4426
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent,
|
|
4427
|
-
const
|
|
4446
|
+
vr(e, ki, (y) => r(3, n = y));
|
|
4447
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, g = Vi(p) !== "PC", m = !0, T = "";
|
|
4448
|
+
const R = () => {
|
|
4428
4449
|
fetch(c).then((C) => C.json()).then((C) => {
|
|
4429
4450
|
Object.keys(C).forEach((M) => {
|
|
4430
|
-
|
|
4451
|
+
It(M, C[M]);
|
|
4431
4452
|
});
|
|
4432
4453
|
}).catch((C) => {
|
|
4433
4454
|
console.log(C);
|
|
4434
4455
|
});
|
|
4435
4456
|
};
|
|
4436
|
-
Object.keys(
|
|
4437
|
-
|
|
4457
|
+
Object.keys(Nt).forEach((y) => {
|
|
4458
|
+
It(y, Nt[y]);
|
|
4438
4459
|
});
|
|
4439
|
-
const
|
|
4460
|
+
const O = () => {
|
|
4440
4461
|
window.postMessage(
|
|
4441
4462
|
{
|
|
4442
4463
|
type: "PlayerAccountMenuActive",
|
|
4443
|
-
isMobile:
|
|
4464
|
+
isMobile: g
|
|
4444
4465
|
},
|
|
4445
4466
|
window.location.href
|
|
4446
4467
|
);
|
|
4447
4468
|
}, S = () => {
|
|
4448
|
-
let
|
|
4449
|
-
|
|
4469
|
+
let y = new URL(`${i}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`);
|
|
4470
|
+
y.searchParams.append("language", a);
|
|
4450
4471
|
let C = {
|
|
4451
4472
|
method: "GET",
|
|
4452
4473
|
headers: {
|
|
@@ -4454,7 +4475,7 @@ function Yi(e, t, r) {
|
|
|
4454
4475
|
accept: "application/json"
|
|
4455
4476
|
}
|
|
4456
4477
|
};
|
|
4457
|
-
fetch(
|
|
4478
|
+
fetch(y.href, C).then((M) => M.json()).then(
|
|
4458
4479
|
(M) => {
|
|
4459
4480
|
r(1, m = !1), r(2, T = M.CashierUrl);
|
|
4460
4481
|
},
|
|
@@ -4463,33 +4484,33 @@ function Yi(e, t, r) {
|
|
|
4463
4484
|
}
|
|
4464
4485
|
);
|
|
4465
4486
|
}, U = () => {
|
|
4466
|
-
|
|
4487
|
+
Xi(a);
|
|
4467
4488
|
};
|
|
4468
|
-
|
|
4489
|
+
Br(() => () => {
|
|
4469
4490
|
});
|
|
4470
|
-
const
|
|
4471
|
-
function G(
|
|
4472
|
-
|
|
4473
|
-
f =
|
|
4491
|
+
const I = () => O();
|
|
4492
|
+
function G(y) {
|
|
4493
|
+
$e[y ? "unshift" : "push"](() => {
|
|
4494
|
+
f = y, r(0, f);
|
|
4474
4495
|
});
|
|
4475
4496
|
}
|
|
4476
|
-
return e.$$set = (
|
|
4477
|
-
"endpoint" in
|
|
4497
|
+
return e.$$set = (y) => {
|
|
4498
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, s = y.playerid), "lang" in y && r(9, a = y.lang), "clientstyling" in y && r(10, h = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, l = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
|
|
4478
4499
|
}, e.$$.update = () => {
|
|
4479
4500
|
e.$$.dirty & /*lang*/
|
|
4480
4501
|
512 && a && U(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4481
4502
|
960 && o && s && i && a && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4482
|
-
1025 && h && f &&
|
|
4483
|
-
2049 && u && f &&
|
|
4484
|
-
4097 && l && f &&
|
|
4485
|
-
8192 && c &&
|
|
4503
|
+
1025 && h && f && Wi(f, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4504
|
+
2049 && u && f && zi(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4505
|
+
4097 && l && f && Zi(f, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4506
|
+
8192 && c && R();
|
|
4486
4507
|
}, [
|
|
4487
4508
|
f,
|
|
4488
4509
|
m,
|
|
4489
4510
|
T,
|
|
4490
4511
|
n,
|
|
4491
|
-
|
|
4492
|
-
|
|
4512
|
+
g,
|
|
4513
|
+
O,
|
|
4493
4514
|
i,
|
|
4494
4515
|
o,
|
|
4495
4516
|
s,
|
|
@@ -4498,18 +4519,18 @@ function Yi(e, t, r) {
|
|
|
4498
4519
|
u,
|
|
4499
4520
|
l,
|
|
4500
4521
|
c,
|
|
4501
|
-
|
|
4522
|
+
I,
|
|
4502
4523
|
G
|
|
4503
4524
|
];
|
|
4504
4525
|
}
|
|
4505
|
-
class
|
|
4526
|
+
class to extends Dr {
|
|
4506
4527
|
constructor(t) {
|
|
4507
4528
|
super(), Rr(
|
|
4508
4529
|
this,
|
|
4509
4530
|
t,
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4531
|
+
eo,
|
|
4532
|
+
Ki,
|
|
4533
|
+
Ct,
|
|
4513
4534
|
{
|
|
4514
4535
|
endpoint: 6,
|
|
4515
4536
|
session: 7,
|
|
@@ -4520,7 +4541,7 @@ class Ki extends Ur {
|
|
|
4520
4541
|
mbsource: 12,
|
|
4521
4542
|
translationurl: 13
|
|
4522
4543
|
},
|
|
4523
|
-
|
|
4544
|
+
Qi
|
|
4524
4545
|
);
|
|
4525
4546
|
}
|
|
4526
4547
|
get endpoint() {
|
|
@@ -4572,7 +4593,7 @@ class Ki extends Ur {
|
|
|
4572
4593
|
this.$$set({ translationurl: t }), A();
|
|
4573
4594
|
}
|
|
4574
4595
|
}
|
|
4575
|
-
|
|
4596
|
+
Ur(to, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4576
4597
|
export {
|
|
4577
|
-
|
|
4598
|
+
to as default
|
|
4578
4599
|
};
|