@everymatrix/player-transaction-history 1.77.20 → 1.77.21
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-B6yo4R0t.cjs +18 -0
- package/components/{PlayerTransactionHistory-DrCxcAOo.js → PlayerTransactionHistory-CjXe2mkN.js} +738 -695
- package/components/{PlayerTransactionHistory-BdTEvmgd.js → PlayerTransactionHistory-CrLY5TgC.js} +724 -681
- 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-CIfFw_dM.cjs +0 -18
package/components/{PlayerTransactionHistory-DrCxcAOo.js → PlayerTransactionHistory-CjXe2mkN.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 rt = (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 Ot(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 br(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 _r(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
|
-
function
|
|
212
|
-
const h =
|
|
213
|
-
|
|
211
|
+
function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
212
|
+
const h = ne;
|
|
213
|
+
te(e);
|
|
214
214
|
const u = e.$$ = {
|
|
215
215
|
fragment: null,
|
|
216
216
|
ctx: [],
|
|
@@ -218,7 +218,7 @@ function Nr(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 Nr(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 Nr(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" && (It = 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" && (It = 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 Lr(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 Cr {
|
|
|
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 Cr {
|
|
|
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 Cr {
|
|
|
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 $r(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 Re(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 Re(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 Ue(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 = Nt(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,52 +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
|
|
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);
|
|
685
666
|
}
|
|
686
|
-
function
|
|
687
|
-
|
|
667
|
+
function ct(e) {
|
|
668
|
+
N(e) ? e() : e.unsubscribe();
|
|
688
669
|
}
|
|
689
|
-
var
|
|
670
|
+
var Fr = {
|
|
690
671
|
Promise: void 0
|
|
691
|
-
},
|
|
672
|
+
}, jr = {
|
|
692
673
|
setTimeout: function(e, t) {
|
|
693
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
694
675
|
r[n - 2] = arguments[n];
|
|
695
|
-
return setTimeout.apply(void 0,
|
|
676
|
+
return setTimeout.apply(void 0, je([e, t], Fe(r)));
|
|
696
677
|
},
|
|
697
678
|
clearTimeout: function(e) {
|
|
698
679
|
return clearTimeout(e);
|
|
699
680
|
},
|
|
700
681
|
delegate: void 0
|
|
701
682
|
};
|
|
702
|
-
function
|
|
703
|
-
|
|
683
|
+
function kr(e) {
|
|
684
|
+
jr.setTimeout(function() {
|
|
704
685
|
throw e;
|
|
705
686
|
});
|
|
706
687
|
}
|
|
707
|
-
function
|
|
688
|
+
function ft() {
|
|
708
689
|
}
|
|
709
690
|
function me(e) {
|
|
710
691
|
e();
|
|
711
692
|
}
|
|
712
|
-
var
|
|
713
|
-
|
|
693
|
+
var Gt = function(e) {
|
|
694
|
+
ue(t, e);
|
|
714
695
|
function t(r) {
|
|
715
696
|
var n = e.call(this) || this;
|
|
716
|
-
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;
|
|
717
698
|
}
|
|
718
699
|
return t.create = function(r, n, i) {
|
|
719
|
-
return new
|
|
700
|
+
return new Ve(r, n, i);
|
|
720
701
|
}, t.prototype.next = function(r) {
|
|
721
702
|
this.isStopped || this._next(r);
|
|
722
703
|
}, t.prototype.error = function(r) {
|
|
@@ -740,7 +721,7 @@ var Mt = function(e) {
|
|
|
740
721
|
this.unsubscribe();
|
|
741
722
|
}
|
|
742
723
|
}, t;
|
|
743
|
-
}(
|
|
724
|
+
}(_e), Vr = function() {
|
|
744
725
|
function e(t) {
|
|
745
726
|
this.partialObserver = t;
|
|
746
727
|
}
|
|
@@ -771,43 +752,43 @@ var Mt = function(e) {
|
|
|
771
752
|
ce(r);
|
|
772
753
|
}
|
|
773
754
|
}, e;
|
|
774
|
-
}(),
|
|
775
|
-
|
|
755
|
+
}(), Ve = function(e) {
|
|
756
|
+
ue(t, e);
|
|
776
757
|
function t(r, n, i) {
|
|
777
758
|
var o = e.call(this) || this, s;
|
|
778
|
-
return
|
|
759
|
+
return N(r) || !r ? s = {
|
|
779
760
|
next: r != null ? r : void 0,
|
|
780
761
|
error: n != null ? n : void 0,
|
|
781
762
|
complete: i != null ? i : void 0
|
|
782
|
-
} : s = r, o.destination = new
|
|
763
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
783
764
|
}
|
|
784
765
|
return t;
|
|
785
|
-
}(
|
|
766
|
+
}(Gt);
|
|
786
767
|
function ce(e) {
|
|
787
|
-
|
|
768
|
+
kr(e);
|
|
788
769
|
}
|
|
789
|
-
function
|
|
770
|
+
function Xr(e) {
|
|
790
771
|
throw e;
|
|
791
772
|
}
|
|
792
|
-
var
|
|
773
|
+
var Wr = {
|
|
793
774
|
closed: !0,
|
|
794
|
-
next:
|
|
795
|
-
error:
|
|
796
|
-
complete:
|
|
797
|
-
},
|
|
775
|
+
next: ft,
|
|
776
|
+
error: Xr,
|
|
777
|
+
complete: ft
|
|
778
|
+
}, zr = function() {
|
|
798
779
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
799
780
|
}();
|
|
800
|
-
function
|
|
781
|
+
function Zr(e) {
|
|
801
782
|
return e;
|
|
802
783
|
}
|
|
803
|
-
function
|
|
804
|
-
return e.length === 0 ?
|
|
784
|
+
function Qr(e) {
|
|
785
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
805
786
|
return e.reduce(function(n, i) {
|
|
806
787
|
return i(n);
|
|
807
788
|
}, r);
|
|
808
789
|
};
|
|
809
790
|
}
|
|
810
|
-
var
|
|
791
|
+
var pt = function() {
|
|
811
792
|
function e(t) {
|
|
812
793
|
t && (this._subscribe = t);
|
|
813
794
|
}
|
|
@@ -815,7 +796,7 @@ var ut = function() {
|
|
|
815
796
|
var r = new e();
|
|
816
797
|
return r.source = this, r.operator = t, r;
|
|
817
798
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
818
|
-
var i = this, o =
|
|
799
|
+
var i = this, o = Jr(t) ? t : new Ve(t, r, n);
|
|
819
800
|
return me(function() {
|
|
820
801
|
var s = i, a = s.operator, h = s.source;
|
|
821
802
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -828,8 +809,8 @@ var ut = function() {
|
|
|
828
809
|
}
|
|
829
810
|
}, e.prototype.forEach = function(t, r) {
|
|
830
811
|
var n = this;
|
|
831
|
-
return r =
|
|
832
|
-
var s = new
|
|
812
|
+
return r = mt(r), new r(function(i, o) {
|
|
813
|
+
var s = new Ve({
|
|
833
814
|
next: function(a) {
|
|
834
815
|
try {
|
|
835
816
|
t(a);
|
|
@@ -845,15 +826,15 @@ var ut = function() {
|
|
|
845
826
|
}, e.prototype._subscribe = function(t) {
|
|
846
827
|
var r;
|
|
847
828
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
848
|
-
}, e.prototype[
|
|
829
|
+
}, e.prototype[zr] = function() {
|
|
849
830
|
return this;
|
|
850
831
|
}, e.prototype.pipe = function() {
|
|
851
832
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
852
833
|
t[r] = arguments[r];
|
|
853
|
-
return
|
|
834
|
+
return Qr(t)(this);
|
|
854
835
|
}, e.prototype.toPromise = function(t) {
|
|
855
836
|
var r = this;
|
|
856
|
-
return t =
|
|
837
|
+
return t = mt(t), new t(function(n, i) {
|
|
857
838
|
var o;
|
|
858
839
|
r.subscribe(function(s) {
|
|
859
840
|
return o = s;
|
|
@@ -867,32 +848,32 @@ var ut = function() {
|
|
|
867
848
|
return new e(t);
|
|
868
849
|
}, e;
|
|
869
850
|
}();
|
|
870
|
-
function
|
|
851
|
+
function mt(e) {
|
|
871
852
|
var t;
|
|
872
|
-
return (t = e != null ? e :
|
|
853
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
873
854
|
}
|
|
874
|
-
function
|
|
875
|
-
return e &&
|
|
855
|
+
function qr(e) {
|
|
856
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
876
857
|
}
|
|
877
|
-
function
|
|
878
|
-
return e && e instanceof
|
|
858
|
+
function Jr(e) {
|
|
859
|
+
return e && e instanceof Gt || qr(e) && Dt(e);
|
|
879
860
|
}
|
|
880
|
-
var
|
|
861
|
+
var Yr = Rt(function(e) {
|
|
881
862
|
return function() {
|
|
882
863
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
883
864
|
};
|
|
884
|
-
}),
|
|
885
|
-
|
|
865
|
+
}), Ft = function(e) {
|
|
866
|
+
ue(t, e);
|
|
886
867
|
function t() {
|
|
887
868
|
var r = e.call(this) || this;
|
|
888
869
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
889
870
|
}
|
|
890
871
|
return t.prototype.lift = function(r) {
|
|
891
|
-
var n = new
|
|
872
|
+
var n = new dt(this, this);
|
|
892
873
|
return n.operator = r, n;
|
|
893
874
|
}, t.prototype._throwIfClosed = function() {
|
|
894
875
|
if (this.closed)
|
|
895
|
-
throw new
|
|
876
|
+
throw new Yr();
|
|
896
877
|
}, t.prototype.next = function(r) {
|
|
897
878
|
var n = this;
|
|
898
879
|
me(function() {
|
|
@@ -900,7 +881,7 @@ var Zr = Nt(function(e) {
|
|
|
900
881
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
901
882
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
902
883
|
try {
|
|
903
|
-
for (var s =
|
|
884
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
904
885
|
var h = a.value;
|
|
905
886
|
h.next(r);
|
|
906
887
|
}
|
|
@@ -949,20 +930,20 @@ var Zr = Nt(function(e) {
|
|
|
949
930
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
950
931
|
}, t.prototype._innerSubscribe = function(r) {
|
|
951
932
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
952
|
-
return o || s ?
|
|
953
|
-
n.currentObservers = null,
|
|
933
|
+
return o || s ? Ut : (this.currentObservers = null, a.push(r), new _e(function() {
|
|
934
|
+
n.currentObservers = null, ke(a, r);
|
|
954
935
|
}));
|
|
955
936
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
956
937
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
957
938
|
i ? r.error(o) : s && r.complete();
|
|
958
939
|
}, t.prototype.asObservable = function() {
|
|
959
|
-
var r = new
|
|
940
|
+
var r = new pt();
|
|
960
941
|
return r.source = this, r;
|
|
961
942
|
}, t.create = function(r, n) {
|
|
962
|
-
return new
|
|
943
|
+
return new dt(r, n);
|
|
963
944
|
}, t;
|
|
964
|
-
}(
|
|
965
|
-
|
|
945
|
+
}(pt), dt = function(e) {
|
|
946
|
+
ue(t, e);
|
|
966
947
|
function t(r, n) {
|
|
967
948
|
var i = e.call(this) || this;
|
|
968
949
|
return i.destination = r, i.source = n, i;
|
|
@@ -978,17 +959,17 @@ var Zr = Nt(function(e) {
|
|
|
978
959
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
979
960
|
}, t.prototype._subscribe = function(r) {
|
|
980
961
|
var n, i;
|
|
981
|
-
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;
|
|
982
963
|
}, t;
|
|
983
|
-
}(
|
|
964
|
+
}(Ft), jt = {
|
|
984
965
|
now: function() {
|
|
985
|
-
return (
|
|
966
|
+
return (jt.delegate || Date).now();
|
|
986
967
|
},
|
|
987
968
|
delegate: void 0
|
|
988
|
-
},
|
|
989
|
-
|
|
969
|
+
}, Kr = function(e) {
|
|
970
|
+
ue(t, e);
|
|
990
971
|
function t(r, n, i) {
|
|
991
|
-
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);
|
|
992
973
|
var o = e.call(this) || this;
|
|
993
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;
|
|
994
975
|
}
|
|
@@ -1008,24 +989,24 @@ var Zr = Nt(function(e) {
|
|
|
1008
989
|
u && o.splice(0, u + 1);
|
|
1009
990
|
}
|
|
1010
991
|
}, t;
|
|
1011
|
-
}(
|
|
1012
|
-
const
|
|
1013
|
-
if (
|
|
1014
|
-
const r = new
|
|
1015
|
-
|
|
992
|
+
}(Ft);
|
|
993
|
+
const bt = [], yt = {}, en = (e, t = 0) => {
|
|
994
|
+
if (bt.indexOf(e) == -1) {
|
|
995
|
+
const r = new Kr(t);
|
|
996
|
+
yt[e] = r, bt.push(e);
|
|
1016
997
|
}
|
|
1017
|
-
return
|
|
998
|
+
return yt[e];
|
|
1018
999
|
}, k = [];
|
|
1019
|
-
function
|
|
1000
|
+
function tn(e, t) {
|
|
1020
1001
|
return {
|
|
1021
|
-
subscribe:
|
|
1002
|
+
subscribe: Ee(e, t).subscribe
|
|
1022
1003
|
};
|
|
1023
1004
|
}
|
|
1024
|
-
function
|
|
1005
|
+
function Ee(e, t = B) {
|
|
1025
1006
|
let r;
|
|
1026
1007
|
const n = /* @__PURE__ */ new Set();
|
|
1027
1008
|
function i(a) {
|
|
1028
|
-
if (
|
|
1009
|
+
if (Ct(e, a) && (e = a, r)) {
|
|
1029
1010
|
const h = !k.length;
|
|
1030
1011
|
for (const u of n)
|
|
1031
1012
|
u[1](), k.push(u, e);
|
|
@@ -1047,12 +1028,12 @@ function _e(e, t = B) {
|
|
|
1047
1028
|
}
|
|
1048
1029
|
return { set: i, update: o, subscribe: s };
|
|
1049
1030
|
}
|
|
1050
|
-
function
|
|
1031
|
+
function J(e, t, r) {
|
|
1051
1032
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1052
1033
|
if (!i.every(Boolean))
|
|
1053
1034
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1054
1035
|
const o = t.length < 2;
|
|
1055
|
-
return
|
|
1036
|
+
return tn(r, (s, a) => {
|
|
1056
1037
|
let h = !1;
|
|
1057
1038
|
const u = [];
|
|
1058
1039
|
let l = 0, c = B;
|
|
@@ -1060,11 +1041,11 @@ function Y(e, t, r) {
|
|
|
1060
1041
|
if (l)
|
|
1061
1042
|
return;
|
|
1062
1043
|
c();
|
|
1063
|
-
const
|
|
1064
|
-
o ? s(
|
|
1044
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1045
|
+
o ? s(g) : c = et(g) ? g : B;
|
|
1065
1046
|
}, p = i.map(
|
|
1066
|
-
(
|
|
1067
|
-
|
|
1047
|
+
(g, m) => Mt(
|
|
1048
|
+
g,
|
|
1068
1049
|
(T) => {
|
|
1069
1050
|
u[m] = T, l &= ~(1 << m), h && f();
|
|
1070
1051
|
},
|
|
@@ -1074,115 +1055,157 @@ function Y(e, t, r) {
|
|
|
1074
1055
|
)
|
|
1075
1056
|
);
|
|
1076
1057
|
return h = !0, f(), function() {
|
|
1077
|
-
|
|
1058
|
+
se(p), c(), h = !1;
|
|
1078
1059
|
};
|
|
1079
1060
|
});
|
|
1080
1061
|
}
|
|
1081
|
-
function
|
|
1062
|
+
function rn(e) {
|
|
1082
1063
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1083
1064
|
}
|
|
1084
|
-
var
|
|
1085
|
-
return
|
|
1065
|
+
var nn = function(t) {
|
|
1066
|
+
return on(t) && !sn(t);
|
|
1086
1067
|
};
|
|
1087
|
-
function
|
|
1068
|
+
function on(e) {
|
|
1088
1069
|
return !!e && typeof e == "object";
|
|
1089
1070
|
}
|
|
1090
|
-
function
|
|
1071
|
+
function sn(e) {
|
|
1091
1072
|
var t = Object.prototype.toString.call(e);
|
|
1092
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1073
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1093
1074
|
}
|
|
1094
|
-
var
|
|
1095
|
-
function
|
|
1096
|
-
return e.$$typeof ===
|
|
1075
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1076
|
+
function hn(e) {
|
|
1077
|
+
return e.$$typeof === un;
|
|
1097
1078
|
}
|
|
1098
|
-
function
|
|
1079
|
+
function ln(e) {
|
|
1099
1080
|
return Array.isArray(e) ? [] : {};
|
|
1100
1081
|
}
|
|
1101
|
-
function
|
|
1102
|
-
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;
|
|
1103
1084
|
}
|
|
1104
|
-
function
|
|
1085
|
+
function cn(e, t, r) {
|
|
1105
1086
|
return e.concat(t).map(function(n) {
|
|
1106
|
-
return
|
|
1087
|
+
return ie(n, r);
|
|
1107
1088
|
});
|
|
1108
1089
|
}
|
|
1109
|
-
function
|
|
1090
|
+
function fn(e, t) {
|
|
1110
1091
|
if (!t.customMerge)
|
|
1111
|
-
return
|
|
1092
|
+
return W;
|
|
1112
1093
|
var r = t.customMerge(e);
|
|
1113
|
-
return typeof r == "function" ? r :
|
|
1094
|
+
return typeof r == "function" ? r : W;
|
|
1114
1095
|
}
|
|
1115
|
-
function
|
|
1096
|
+
function pn(e) {
|
|
1116
1097
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1117
1098
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1118
1099
|
}) : [];
|
|
1119
1100
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return Object.keys(e).concat(
|
|
1101
|
+
function gt(e) {
|
|
1102
|
+
return Object.keys(e).concat(pn(e));
|
|
1122
1103
|
}
|
|
1123
|
-
function
|
|
1104
|
+
function kt(e, t) {
|
|
1124
1105
|
try {
|
|
1125
1106
|
return t in e;
|
|
1126
1107
|
} catch (r) {
|
|
1127
1108
|
return !1;
|
|
1128
1109
|
}
|
|
1129
1110
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return
|
|
1111
|
+
function mn(e, t) {
|
|
1112
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1132
1113
|
}
|
|
1133
|
-
function
|
|
1114
|
+
function dn(e, t, r) {
|
|
1134
1115
|
var n = {};
|
|
1135
|
-
return r.isMergeableObject(e) &&
|
|
1136
|
-
n[i] =
|
|
1137
|
-
}),
|
|
1138
|
-
|
|
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));
|
|
1139
1120
|
}), n;
|
|
1140
1121
|
}
|
|
1141
|
-
function
|
|
1142
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1122
|
+
function W(e, t, r) {
|
|
1123
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1143
1124
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1144
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1125
|
+
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ie(t, r);
|
|
1145
1126
|
}
|
|
1146
|
-
|
|
1127
|
+
W.all = function(t, r) {
|
|
1147
1128
|
if (!Array.isArray(t))
|
|
1148
1129
|
throw new Error("first argument should be an array");
|
|
1149
1130
|
return t.reduce(function(n, i) {
|
|
1150
|
-
return
|
|
1131
|
+
return W(n, i, r);
|
|
1151
1132
|
}, {});
|
|
1152
1133
|
};
|
|
1153
|
-
var
|
|
1154
|
-
const
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1134
|
+
var bn = W, yn = bn;
|
|
1135
|
+
const gn = /* @__PURE__ */ rn(yn);
|
|
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;
|
|
1157
1180
|
return i(e, {
|
|
1158
1181
|
cache: r,
|
|
1159
1182
|
serializer: n
|
|
1160
1183
|
});
|
|
1161
1184
|
}
|
|
1162
|
-
function
|
|
1185
|
+
function _n(e) {
|
|
1163
1186
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1164
1187
|
}
|
|
1165
|
-
function
|
|
1166
|
-
var i =
|
|
1188
|
+
function En(e, t, r, n) {
|
|
1189
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1167
1190
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1168
1191
|
}
|
|
1169
|
-
function
|
|
1192
|
+
function Vt(e, t, r) {
|
|
1170
1193
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1171
1194
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1172
1195
|
}
|
|
1173
|
-
function
|
|
1196
|
+
function Xt(e, t, r, n, i) {
|
|
1174
1197
|
return r.bind(t, e, n, i);
|
|
1175
1198
|
}
|
|
1176
|
-
function
|
|
1177
|
-
var r = e.length === 1 ?
|
|
1178
|
-
return
|
|
1199
|
+
function xn(e, t) {
|
|
1200
|
+
var r = e.length === 1 ? En : Vt;
|
|
1201
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1179
1202
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1203
|
+
function Tn(e, t) {
|
|
1204
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1182
1205
|
}
|
|
1183
|
-
var
|
|
1206
|
+
var Hn = function() {
|
|
1184
1207
|
return JSON.stringify(arguments);
|
|
1185
|
-
},
|
|
1208
|
+
}, Sn = (
|
|
1186
1209
|
/** @class */
|
|
1187
1210
|
function() {
|
|
1188
1211
|
function e() {
|
|
@@ -1194,61 +1217,71 @@ var vn = function() {
|
|
|
1194
1217
|
this.cache[t] = r;
|
|
1195
1218
|
}, e;
|
|
1196
1219
|
}()
|
|
1197
|
-
),
|
|
1220
|
+
), wn = {
|
|
1198
1221
|
create: function() {
|
|
1199
|
-
return new
|
|
1222
|
+
return new Sn();
|
|
1200
1223
|
}
|
|
1201
|
-
},
|
|
1202
|
-
variadic:
|
|
1203
|
-
},
|
|
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;
|
|
1204
1237
|
(function(e) {
|
|
1205
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";
|
|
1206
1239
|
})(d || (d = {}));
|
|
1207
|
-
var
|
|
1240
|
+
var v;
|
|
1208
1241
|
(function(e) {
|
|
1209
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";
|
|
1210
|
-
})(
|
|
1211
|
-
var
|
|
1243
|
+
})(v || (v = {}));
|
|
1244
|
+
var z;
|
|
1212
1245
|
(function(e) {
|
|
1213
1246
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1214
|
-
})(
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1247
|
+
})(z || (z = {}));
|
|
1248
|
+
function vt(e) {
|
|
1249
|
+
return e.type === v.literal;
|
|
1217
1250
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e.type ===
|
|
1251
|
+
function Bn(e) {
|
|
1252
|
+
return e.type === v.argument;
|
|
1220
1253
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1254
|
+
function Wt(e) {
|
|
1255
|
+
return e.type === v.number;
|
|
1223
1256
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1257
|
+
function zt(e) {
|
|
1258
|
+
return e.type === v.date;
|
|
1226
1259
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.type ===
|
|
1260
|
+
function Zt(e) {
|
|
1261
|
+
return e.type === v.time;
|
|
1229
1262
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1263
|
+
function Qt(e) {
|
|
1264
|
+
return e.type === v.select;
|
|
1232
1265
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1266
|
+
function qt(e) {
|
|
1267
|
+
return e.type === v.plural;
|
|
1235
1268
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1269
|
+
function An(e) {
|
|
1270
|
+
return e.type === v.pound;
|
|
1238
1271
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1272
|
+
function Jt(e) {
|
|
1273
|
+
return e.type === v.tag;
|
|
1241
1274
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1275
|
+
function Yt(e) {
|
|
1276
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1244
1277
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1278
|
+
function We(e) {
|
|
1279
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1247
1280
|
}
|
|
1248
|
-
var
|
|
1249
|
-
function
|
|
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) {
|
|
1250
1283
|
var t = {};
|
|
1251
|
-
return e.replace(
|
|
1284
|
+
return e.replace(Pn, function(r) {
|
|
1252
1285
|
var n = r.length;
|
|
1253
1286
|
switch (r[0]) {
|
|
1254
1287
|
case "G":
|
|
@@ -1337,11 +1370,21 @@ function Sn(e) {
|
|
|
1337
1370
|
return "";
|
|
1338
1371
|
}), t;
|
|
1339
1372
|
}
|
|
1340
|
-
var
|
|
1341
|
-
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) {
|
|
1342
1385
|
if (e.length === 0)
|
|
1343
1386
|
throw new Error("Number skeleton cannot be empty");
|
|
1344
|
-
for (var t = e.split(
|
|
1387
|
+
for (var t = e.split(In).filter(function(f) {
|
|
1345
1388
|
return f.length > 0;
|
|
1346
1389
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1347
1390
|
var o = i[n], s = o.split("/");
|
|
@@ -1356,17 +1399,17 @@ function Bn(e) {
|
|
|
1356
1399
|
}
|
|
1357
1400
|
return r;
|
|
1358
1401
|
}
|
|
1359
|
-
function
|
|
1402
|
+
function Ln(e) {
|
|
1360
1403
|
return e.replace(/^(.*?)-/, "");
|
|
1361
1404
|
}
|
|
1362
|
-
var
|
|
1363
|
-
function
|
|
1405
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1406
|
+
function Et(e) {
|
|
1364
1407
|
var t = {};
|
|
1365
|
-
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) {
|
|
1366
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)), "";
|
|
1367
1410
|
}), t;
|
|
1368
1411
|
}
|
|
1369
|
-
function
|
|
1412
|
+
function rr(e) {
|
|
1370
1413
|
switch (e) {
|
|
1371
1414
|
case "sign-auto":
|
|
1372
1415
|
return {
|
|
@@ -1406,7 +1449,7 @@ function Jt(e) {
|
|
|
1406
1449
|
};
|
|
1407
1450
|
}
|
|
1408
1451
|
}
|
|
1409
|
-
function
|
|
1452
|
+
function Mn(e) {
|
|
1410
1453
|
var t;
|
|
1411
1454
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1412
1455
|
notation: "engineering"
|
|
@@ -1414,17 +1457,17 @@ function On(e) {
|
|
|
1414
1457
|
notation: "scientific"
|
|
1415
1458
|
}, e = e.slice(1)), t) {
|
|
1416
1459
|
var r = e.slice(0, 2);
|
|
1417
|
-
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))
|
|
1418
1461
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1419
1462
|
t.minimumIntegerDigits = e.length;
|
|
1420
1463
|
}
|
|
1421
1464
|
return t;
|
|
1422
1465
|
}
|
|
1423
|
-
function
|
|
1424
|
-
var t = {}, r =
|
|
1466
|
+
function xt(e) {
|
|
1467
|
+
var t = {}, r = rr(e);
|
|
1425
1468
|
return r || t;
|
|
1426
1469
|
}
|
|
1427
|
-
function
|
|
1470
|
+
function $n(e) {
|
|
1428
1471
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1429
1472
|
var i = n[r];
|
|
1430
1473
|
switch (i.stem) {
|
|
@@ -1448,7 +1491,7 @@ function In(e) {
|
|
|
1448
1491
|
continue;
|
|
1449
1492
|
case "measure-unit":
|
|
1450
1493
|
case "unit":
|
|
1451
|
-
t.style = "unit", t.unit =
|
|
1494
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1452
1495
|
continue;
|
|
1453
1496
|
case "compact-short":
|
|
1454
1497
|
case "K":
|
|
@@ -1459,13 +1502,13 @@ function In(e) {
|
|
|
1459
1502
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1460
1503
|
continue;
|
|
1461
1504
|
case "scientific":
|
|
1462
|
-
t =
|
|
1463
|
-
return
|
|
1505
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1506
|
+
return _(_({}, h), xt(u));
|
|
1464
1507
|
}, {}));
|
|
1465
1508
|
continue;
|
|
1466
1509
|
case "engineering":
|
|
1467
|
-
t =
|
|
1468
|
-
return
|
|
1510
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1511
|
+
return _(_({}, h), xt(u));
|
|
1469
1512
|
}, {}));
|
|
1470
1513
|
continue;
|
|
1471
1514
|
case "notation-simple":
|
|
@@ -1510,7 +1553,7 @@ function In(e) {
|
|
|
1510
1553
|
case "integer-width":
|
|
1511
1554
|
if (i.options.length > 1)
|
|
1512
1555
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1513
|
-
i.options[0].replace(
|
|
1556
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1514
1557
|
if (u)
|
|
1515
1558
|
t.minimumIntegerDigits = l.length;
|
|
1516
1559
|
else {
|
|
@@ -1523,28 +1566,28 @@ function In(e) {
|
|
|
1523
1566
|
});
|
|
1524
1567
|
continue;
|
|
1525
1568
|
}
|
|
1526
|
-
if (
|
|
1569
|
+
if (tr.test(i.stem)) {
|
|
1527
1570
|
t.minimumIntegerDigits = i.stem.length;
|
|
1528
1571
|
continue;
|
|
1529
1572
|
}
|
|
1530
|
-
if (
|
|
1573
|
+
if (_t.test(i.stem)) {
|
|
1531
1574
|
if (i.options.length > 1)
|
|
1532
1575
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1533
|
-
i.stem.replace(
|
|
1576
|
+
i.stem.replace(_t, function(h, u, l, c, f, p) {
|
|
1534
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), "";
|
|
1535
1578
|
});
|
|
1536
1579
|
var o = i.options[0];
|
|
1537
|
-
o === "w" ? t =
|
|
1580
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1538
1581
|
continue;
|
|
1539
1582
|
}
|
|
1540
|
-
if (
|
|
1541
|
-
t =
|
|
1583
|
+
if (er.test(i.stem)) {
|
|
1584
|
+
t = _(_({}, t), Et(i.stem));
|
|
1542
1585
|
continue;
|
|
1543
1586
|
}
|
|
1544
|
-
var s =
|
|
1545
|
-
s && (t =
|
|
1546
|
-
var a =
|
|
1547
|
-
a && (t =
|
|
1587
|
+
var s = rr(i.stem);
|
|
1588
|
+
s && (t = _(_({}, t), s));
|
|
1589
|
+
var a = Mn(i.stem);
|
|
1590
|
+
a && (t = _(_({}, t), a));
|
|
1548
1591
|
}
|
|
1549
1592
|
return t;
|
|
1550
1593
|
}
|
|
@@ -2963,13 +3006,13 @@ var fe = {
|
|
|
2963
3006
|
"h"
|
|
2964
3007
|
]
|
|
2965
3008
|
};
|
|
2966
|
-
function
|
|
3009
|
+
function Rn(e, t) {
|
|
2967
3010
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2968
3011
|
var i = e.charAt(n);
|
|
2969
3012
|
if (i === "j") {
|
|
2970
3013
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2971
3014
|
o++, n++;
|
|
2972
|
-
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);
|
|
2973
3016
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2974
3017
|
r += h;
|
|
2975
3018
|
for (; s-- > 0; )
|
|
@@ -2979,7 +3022,7 @@ function Nn(e, t) {
|
|
|
2979
3022
|
}
|
|
2980
3023
|
return r;
|
|
2981
3024
|
}
|
|
2982
|
-
function
|
|
3025
|
+
function Un(e) {
|
|
2983
3026
|
var t = e.hourCycle;
|
|
2984
3027
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2985
3028
|
e.hourCycles && // @ts-ignore
|
|
@@ -3001,20 +3044,20 @@ function Ln(e) {
|
|
|
3001
3044
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
3002
3045
|
return i[0];
|
|
3003
3046
|
}
|
|
3004
|
-
var
|
|
3047
|
+
var Ne, Dn = new RegExp("^".concat(Kt.source, "*")), Gn = new RegExp("".concat(Kt.source, "*$"));
|
|
3005
3048
|
function b(e, t) {
|
|
3006
3049
|
return { start: e, end: t };
|
|
3007
3050
|
}
|
|
3008
|
-
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) {
|
|
3009
3052
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3010
|
-
},
|
|
3053
|
+
}, ze = !0;
|
|
3011
3054
|
try {
|
|
3012
|
-
var
|
|
3013
|
-
|
|
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";
|
|
3014
3057
|
} catch (e) {
|
|
3015
|
-
|
|
3058
|
+
ze = !1;
|
|
3016
3059
|
}
|
|
3017
|
-
var
|
|
3060
|
+
var Tt = Fn ? (
|
|
3018
3061
|
// Native
|
|
3019
3062
|
function(t, r, n) {
|
|
3020
3063
|
return t.startsWith(r, n);
|
|
@@ -3024,7 +3067,7 @@ var gt = $n ? (
|
|
|
3024
3067
|
function(t, r, n) {
|
|
3025
3068
|
return t.slice(n, n + r.length) === r;
|
|
3026
3069
|
}
|
|
3027
|
-
),
|
|
3070
|
+
), Ze = jn ? String.fromCodePoint : (
|
|
3028
3071
|
// IE11
|
|
3029
3072
|
function() {
|
|
3030
3073
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3036,9 +3079,9 @@ var gt = $n ? (
|
|
|
3036
3079
|
}
|
|
3037
3080
|
return n;
|
|
3038
3081
|
}
|
|
3039
|
-
),
|
|
3082
|
+
), Ht = (
|
|
3040
3083
|
// native
|
|
3041
|
-
|
|
3084
|
+
kn ? Object.fromEntries : (
|
|
3042
3085
|
// Ponyfill
|
|
3043
3086
|
function(t) {
|
|
3044
3087
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3048,7 +3091,7 @@ var gt = $n ? (
|
|
|
3048
3091
|
return r;
|
|
3049
3092
|
}
|
|
3050
3093
|
)
|
|
3051
|
-
),
|
|
3094
|
+
), nr = Vn ? (
|
|
3052
3095
|
// Native
|
|
3053
3096
|
function(t, r) {
|
|
3054
3097
|
return t.codePointAt(r);
|
|
@@ -3062,7 +3105,7 @@ var gt = $n ? (
|
|
|
3062
3105
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3063
3106
|
}
|
|
3064
3107
|
}
|
|
3065
|
-
),
|
|
3108
|
+
), qn = Xn ? (
|
|
3066
3109
|
// Native
|
|
3067
3110
|
function(t) {
|
|
3068
3111
|
return t.trimStart();
|
|
@@ -3070,9 +3113,9 @@ var gt = $n ? (
|
|
|
3070
3113
|
) : (
|
|
3071
3114
|
// Ponyfill
|
|
3072
3115
|
function(t) {
|
|
3073
|
-
return t.replace(
|
|
3116
|
+
return t.replace(Dn, "");
|
|
3074
3117
|
}
|
|
3075
|
-
),
|
|
3118
|
+
), Jn = Wn ? (
|
|
3076
3119
|
// Native
|
|
3077
3120
|
function(t) {
|
|
3078
3121
|
return t.trimEnd();
|
|
@@ -3080,32 +3123,32 @@ var gt = $n ? (
|
|
|
3080
3123
|
) : (
|
|
3081
3124
|
// Ponyfill
|
|
3082
3125
|
function(t) {
|
|
3083
|
-
return t.replace(
|
|
3126
|
+
return t.replace(Gn, "");
|
|
3084
3127
|
}
|
|
3085
3128
|
);
|
|
3086
|
-
function
|
|
3129
|
+
function ir(e, t) {
|
|
3087
3130
|
return new RegExp(e, t);
|
|
3088
3131
|
}
|
|
3089
|
-
var
|
|
3090
|
-
if (
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3132
|
+
var Qe;
|
|
3133
|
+
if (ze) {
|
|
3134
|
+
var St = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3135
|
+
Qe = function(t, r) {
|
|
3093
3136
|
var n;
|
|
3094
|
-
|
|
3095
|
-
var i =
|
|
3137
|
+
St.lastIndex = r;
|
|
3138
|
+
var i = St.exec(t);
|
|
3096
3139
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3097
3140
|
};
|
|
3098
3141
|
} else
|
|
3099
|
-
|
|
3142
|
+
Qe = function(t, r) {
|
|
3100
3143
|
for (var n = []; ; ) {
|
|
3101
|
-
var i =
|
|
3102
|
-
if (i === void 0 ||
|
|
3144
|
+
var i = nr(t, r);
|
|
3145
|
+
if (i === void 0 || or(i) || ti(i))
|
|
3103
3146
|
break;
|
|
3104
3147
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3105
3148
|
}
|
|
3106
|
-
return
|
|
3149
|
+
return Ze.apply(void 0, n);
|
|
3107
3150
|
};
|
|
3108
|
-
var
|
|
3151
|
+
var Yn = (
|
|
3109
3152
|
/** @class */
|
|
3110
3153
|
function() {
|
|
3111
3154
|
function e(t, r) {
|
|
@@ -3129,14 +3172,14 @@ var zn = (
|
|
|
3129
3172
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3130
3173
|
var a = this.clonePosition();
|
|
3131
3174
|
this.bump(), i.push({
|
|
3132
|
-
type:
|
|
3175
|
+
type: v.pound,
|
|
3133
3176
|
location: b(a, this.clonePosition())
|
|
3134
3177
|
});
|
|
3135
3178
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3136
3179
|
if (n)
|
|
3137
3180
|
break;
|
|
3138
3181
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3139
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3182
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
3140
3183
|
var s = this.parseTag(t, r);
|
|
3141
3184
|
if (s.err)
|
|
3142
3185
|
return s;
|
|
@@ -3157,7 +3200,7 @@ var zn = (
|
|
|
3157
3200
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3158
3201
|
return {
|
|
3159
3202
|
val: {
|
|
3160
|
-
type:
|
|
3203
|
+
type: v.literal,
|
|
3161
3204
|
value: "<".concat(i, "/>"),
|
|
3162
3205
|
location: b(n, this.clonePosition())
|
|
3163
3206
|
},
|
|
@@ -3169,12 +3212,12 @@ var zn = (
|
|
|
3169
3212
|
return o;
|
|
3170
3213
|
var s = o.val, a = this.clonePosition();
|
|
3171
3214
|
if (this.bumpIf("</")) {
|
|
3172
|
-
if (this.isEOF() || !
|
|
3215
|
+
if (this.isEOF() || !qe(this.char()))
|
|
3173
3216
|
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3174
3217
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3175
3218
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3176
3219
|
val: {
|
|
3177
|
-
type:
|
|
3220
|
+
type: v.tag,
|
|
3178
3221
|
value: i,
|
|
3179
3222
|
children: s,
|
|
3180
3223
|
location: b(n, this.clonePosition())
|
|
@@ -3187,7 +3230,7 @@ var zn = (
|
|
|
3187
3230
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3188
3231
|
}, e.prototype.parseTagName = function() {
|
|
3189
3232
|
var t = this.offset();
|
|
3190
|
-
for (this.bump(); !this.isEOF() &&
|
|
3233
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3191
3234
|
this.bump();
|
|
3192
3235
|
return this.message.slice(t, this.offset());
|
|
3193
3236
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3211,12 +3254,12 @@ var zn = (
|
|
|
3211
3254
|
}
|
|
3212
3255
|
var h = b(n, this.clonePosition());
|
|
3213
3256
|
return {
|
|
3214
|
-
val: { type:
|
|
3257
|
+
val: { type: v.literal, value: i, location: h },
|
|
3215
3258
|
err: null
|
|
3216
3259
|
};
|
|
3217
3260
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3218
3261
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3219
|
-
!
|
|
3262
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3220
3263
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3221
3264
|
if (this.isEOF() || this.char() !== 39)
|
|
3222
3265
|
return null;
|
|
@@ -3250,12 +3293,12 @@ var zn = (
|
|
|
3250
3293
|
r.push(n);
|
|
3251
3294
|
this.bump();
|
|
3252
3295
|
}
|
|
3253
|
-
return
|
|
3296
|
+
return Ze.apply(void 0, r);
|
|
3254
3297
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3255
3298
|
if (this.isEOF())
|
|
3256
3299
|
return null;
|
|
3257
3300
|
var n = this.char();
|
|
3258
|
-
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));
|
|
3259
3302
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3260
3303
|
var n = this.clonePosition();
|
|
3261
3304
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3271,7 +3314,7 @@ var zn = (
|
|
|
3271
3314
|
case 125:
|
|
3272
3315
|
return this.bump(), {
|
|
3273
3316
|
val: {
|
|
3274
|
-
type:
|
|
3317
|
+
type: v.argument,
|
|
3275
3318
|
// value does not include the opening and closing braces.
|
|
3276
3319
|
value: i,
|
|
3277
3320
|
location: b(n, this.clonePosition())
|
|
@@ -3284,7 +3327,7 @@ var zn = (
|
|
|
3284
3327
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3285
3328
|
}
|
|
3286
3329
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3287
|
-
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;
|
|
3288
3331
|
this.bumpTo(i);
|
|
3289
3332
|
var o = this.clonePosition(), s = b(t, o);
|
|
3290
3333
|
return { value: n, location: s };
|
|
@@ -3303,44 +3346,44 @@ var zn = (
|
|
|
3303
3346
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3304
3347
|
if (c.err)
|
|
3305
3348
|
return c;
|
|
3306
|
-
var f =
|
|
3349
|
+
var f = Jn(c.val);
|
|
3307
3350
|
if (f.length === 0)
|
|
3308
3351
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3309
3352
|
var p = b(l, this.clonePosition());
|
|
3310
3353
|
u = { style: f, styleLocation: p };
|
|
3311
3354
|
}
|
|
3312
|
-
var
|
|
3313
|
-
if (
|
|
3314
|
-
return
|
|
3355
|
+
var g = this.tryParseArgumentClose(i);
|
|
3356
|
+
if (g.err)
|
|
3357
|
+
return g;
|
|
3315
3358
|
var m = b(i, this.clonePosition());
|
|
3316
|
-
if (u &&
|
|
3317
|
-
var T =
|
|
3359
|
+
if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3360
|
+
var T = qn(u.style.slice(2));
|
|
3318
3361
|
if (a === "number") {
|
|
3319
3362
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3320
3363
|
return c.err ? c : {
|
|
3321
|
-
val: { type:
|
|
3364
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
|
3322
3365
|
err: null
|
|
3323
3366
|
};
|
|
3324
3367
|
} else {
|
|
3325
3368
|
if (T.length === 0)
|
|
3326
3369
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3327
3370
|
var R = T;
|
|
3328
|
-
this.locale && (R =
|
|
3371
|
+
this.locale && (R = Rn(T, this.locale));
|
|
3329
3372
|
var f = {
|
|
3330
|
-
type:
|
|
3373
|
+
type: z.dateTime,
|
|
3331
3374
|
pattern: R,
|
|
3332
3375
|
location: u.styleLocation,
|
|
3333
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3334
|
-
},
|
|
3376
|
+
parsedOptions: this.shouldParseSkeletons ? On(R) : {}
|
|
3377
|
+
}, O = a === "date" ? v.date : v.time;
|
|
3335
3378
|
return {
|
|
3336
|
-
val: { type:
|
|
3379
|
+
val: { type: O, value: n, location: m, style: f },
|
|
3337
3380
|
err: null
|
|
3338
3381
|
};
|
|
3339
3382
|
}
|
|
3340
3383
|
}
|
|
3341
3384
|
return {
|
|
3342
3385
|
val: {
|
|
3343
|
-
type: a === "number" ?
|
|
3386
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3344
3387
|
value: n,
|
|
3345
3388
|
location: m,
|
|
3346
3389
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3353,9 +3396,9 @@ var zn = (
|
|
|
3353
3396
|
case "select": {
|
|
3354
3397
|
var S = this.clonePosition();
|
|
3355
3398
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3356
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3399
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, ye({}, S)));
|
|
3357
3400
|
this.bumpSpace();
|
|
3358
|
-
var U = this.parseIdentifierIfPossible(),
|
|
3401
|
+
var U = this.parseIdentifierIfPossible(), I = 0;
|
|
3359
3402
|
if (a !== "select" && U.value === "offset") {
|
|
3360
3403
|
if (!this.bumpIf(":"))
|
|
3361
3404
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3363,31 +3406,31 @@ var zn = (
|
|
|
3363
3406
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3364
3407
|
if (c.err)
|
|
3365
3408
|
return c;
|
|
3366
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(),
|
|
3409
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), I = c.val;
|
|
3367
3410
|
}
|
|
3368
3411
|
var G = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3369
3412
|
if (G.err)
|
|
3370
3413
|
return G;
|
|
3371
|
-
var
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
var
|
|
3414
|
+
var g = this.tryParseArgumentClose(i);
|
|
3415
|
+
if (g.err)
|
|
3416
|
+
return g;
|
|
3417
|
+
var y = b(i, this.clonePosition());
|
|
3375
3418
|
return a === "select" ? {
|
|
3376
3419
|
val: {
|
|
3377
|
-
type:
|
|
3420
|
+
type: v.select,
|
|
3378
3421
|
value: n,
|
|
3379
|
-
options:
|
|
3380
|
-
location:
|
|
3422
|
+
options: Ht(G.val),
|
|
3423
|
+
location: y
|
|
3381
3424
|
},
|
|
3382
3425
|
err: null
|
|
3383
3426
|
} : {
|
|
3384
3427
|
val: {
|
|
3385
|
-
type:
|
|
3428
|
+
type: v.plural,
|
|
3386
3429
|
value: n,
|
|
3387
|
-
options:
|
|
3388
|
-
offset:
|
|
3430
|
+
options: Ht(G.val),
|
|
3431
|
+
offset: I,
|
|
3389
3432
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3390
|
-
location:
|
|
3433
|
+
location: y
|
|
3391
3434
|
},
|
|
3392
3435
|
err: null
|
|
3393
3436
|
};
|
|
@@ -3435,16 +3478,16 @@ var zn = (
|
|
|
3435
3478
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3436
3479
|
var n = [];
|
|
3437
3480
|
try {
|
|
3438
|
-
n =
|
|
3481
|
+
n = Nn(t);
|
|
3439
3482
|
} catch (i) {
|
|
3440
3483
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3441
3484
|
}
|
|
3442
3485
|
return {
|
|
3443
3486
|
val: {
|
|
3444
|
-
type:
|
|
3487
|
+
type: z.number,
|
|
3445
3488
|
tokens: n,
|
|
3446
3489
|
location: r,
|
|
3447
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3490
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3448
3491
|
},
|
|
3449
3492
|
err: null
|
|
3450
3493
|
};
|
|
@@ -3466,16 +3509,16 @@ var zn = (
|
|
|
3466
3509
|
var p = this.clonePosition();
|
|
3467
3510
|
if (!this.bumpIf("{"))
|
|
3468
3511
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3469
|
-
var
|
|
3470
|
-
if (
|
|
3471
|
-
return
|
|
3512
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3513
|
+
if (g.err)
|
|
3514
|
+
return g;
|
|
3472
3515
|
var m = this.tryParseArgumentClose(p);
|
|
3473
3516
|
if (m.err)
|
|
3474
3517
|
return m;
|
|
3475
3518
|
a.push([
|
|
3476
3519
|
u,
|
|
3477
3520
|
{
|
|
3478
|
-
value:
|
|
3521
|
+
value: g.val,
|
|
3479
3522
|
location: b(p, this.clonePosition())
|
|
3480
3523
|
}
|
|
3481
3524
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -3492,7 +3535,7 @@ var zn = (
|
|
|
3492
3535
|
break;
|
|
3493
3536
|
}
|
|
3494
3537
|
var h = b(i, this.clonePosition());
|
|
3495
|
-
return o ? (s *= n,
|
|
3538
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3496
3539
|
}, e.prototype.offset = function() {
|
|
3497
3540
|
return this.position.offset;
|
|
3498
3541
|
}, e.prototype.isEOF = function() {
|
|
@@ -3507,7 +3550,7 @@ var zn = (
|
|
|
3507
3550
|
var t = this.position.offset;
|
|
3508
3551
|
if (t >= this.message.length)
|
|
3509
3552
|
throw Error("out of bound");
|
|
3510
|
-
var r =
|
|
3553
|
+
var r = nr(this.message, t);
|
|
3511
3554
|
if (r === void 0)
|
|
3512
3555
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3513
3556
|
return r;
|
|
@@ -3526,7 +3569,7 @@ var zn = (
|
|
|
3526
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);
|
|
3527
3570
|
}
|
|
3528
3571
|
}, e.prototype.bumpIf = function(t) {
|
|
3529
|
-
if (
|
|
3572
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3530
3573
|
for (var r = 0; r < t.length; r++)
|
|
3531
3574
|
this.bump();
|
|
3532
3575
|
return !0;
|
|
@@ -3548,7 +3591,7 @@ var zn = (
|
|
|
3548
3591
|
break;
|
|
3549
3592
|
}
|
|
3550
3593
|
}, e.prototype.bumpSpace = function() {
|
|
3551
|
-
for (; !this.isEOF() &&
|
|
3594
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3552
3595
|
this.bump();
|
|
3553
3596
|
}, e.prototype.peek = function() {
|
|
3554
3597
|
if (this.isEOF())
|
|
@@ -3558,47 +3601,47 @@ var zn = (
|
|
|
3558
3601
|
}, e;
|
|
3559
3602
|
}()
|
|
3560
3603
|
);
|
|
3561
|
-
function
|
|
3604
|
+
function qe(e) {
|
|
3562
3605
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3563
3606
|
}
|
|
3564
|
-
function
|
|
3565
|
-
return
|
|
3607
|
+
function Kn(e) {
|
|
3608
|
+
return qe(e) || e === 47;
|
|
3566
3609
|
}
|
|
3567
|
-
function
|
|
3610
|
+
function ei(e) {
|
|
3568
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;
|
|
3569
3612
|
}
|
|
3570
|
-
function
|
|
3613
|
+
function or(e) {
|
|
3571
3614
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3572
3615
|
}
|
|
3573
|
-
function
|
|
3616
|
+
function ti(e) {
|
|
3574
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;
|
|
3575
3618
|
}
|
|
3576
|
-
function
|
|
3619
|
+
function Je(e) {
|
|
3577
3620
|
e.forEach(function(t) {
|
|
3578
|
-
if (delete t.location,
|
|
3621
|
+
if (delete t.location, Qt(t) || qt(t))
|
|
3579
3622
|
for (var r in t.options)
|
|
3580
|
-
delete t.options[r].location,
|
|
3623
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3581
3624
|
else
|
|
3582
|
-
|
|
3625
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && We(t.style) ? delete t.style.location : Jt(t) && Je(t.children);
|
|
3583
3626
|
});
|
|
3584
3627
|
}
|
|
3585
|
-
function
|
|
3586
|
-
t === void 0 && (t = {}), t =
|
|
3587
|
-
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();
|
|
3588
3631
|
if (r.err) {
|
|
3589
3632
|
var n = SyntaxError(d[r.err.kind]);
|
|
3590
3633
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3591
3634
|
}
|
|
3592
|
-
return t != null && t.captureLocation ||
|
|
3635
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3593
3636
|
}
|
|
3594
|
-
var
|
|
3637
|
+
var Z;
|
|
3595
3638
|
(function(e) {
|
|
3596
3639
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3597
|
-
})(
|
|
3598
|
-
var
|
|
3640
|
+
})(Z || (Z = {}));
|
|
3641
|
+
var Te = (
|
|
3599
3642
|
/** @class */
|
|
3600
3643
|
function(e) {
|
|
3601
|
-
|
|
3644
|
+
xe(t, e);
|
|
3602
3645
|
function t(r, n, i) {
|
|
3603
3646
|
var o = e.call(this, r) || this;
|
|
3604
3647
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3607,48 +3650,48 @@ var Ee = (
|
|
|
3607
3650
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3608
3651
|
}, t;
|
|
3609
3652
|
}(Error)
|
|
3610
|
-
),
|
|
3653
|
+
), wt = (
|
|
3611
3654
|
/** @class */
|
|
3612
3655
|
function(e) {
|
|
3613
|
-
|
|
3656
|
+
xe(t, e);
|
|
3614
3657
|
function t(r, n, i, o) {
|
|
3615
|
-
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;
|
|
3616
3659
|
}
|
|
3617
3660
|
return t;
|
|
3618
|
-
}(
|
|
3619
|
-
),
|
|
3661
|
+
}(Te)
|
|
3662
|
+
), ni = (
|
|
3620
3663
|
/** @class */
|
|
3621
3664
|
function(e) {
|
|
3622
|
-
|
|
3665
|
+
xe(t, e);
|
|
3623
3666
|
function t(r, n, i) {
|
|
3624
|
-
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;
|
|
3625
3668
|
}
|
|
3626
3669
|
return t;
|
|
3627
|
-
}(
|
|
3628
|
-
),
|
|
3670
|
+
}(Te)
|
|
3671
|
+
), ii = (
|
|
3629
3672
|
/** @class */
|
|
3630
3673
|
function(e) {
|
|
3631
|
-
|
|
3674
|
+
xe(t, e);
|
|
3632
3675
|
function t(r, n) {
|
|
3633
|
-
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;
|
|
3634
3677
|
}
|
|
3635
3678
|
return t;
|
|
3636
|
-
}(
|
|
3679
|
+
}(Te)
|
|
3637
3680
|
), H;
|
|
3638
3681
|
(function(e) {
|
|
3639
3682
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3640
3683
|
})(H || (H = {}));
|
|
3641
|
-
function
|
|
3684
|
+
function oi(e) {
|
|
3642
3685
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3643
3686
|
var n = t[t.length - 1];
|
|
3644
3687
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3645
3688
|
}, []);
|
|
3646
3689
|
}
|
|
3647
|
-
function
|
|
3690
|
+
function si(e) {
|
|
3648
3691
|
return typeof e == "function";
|
|
3649
3692
|
}
|
|
3650
3693
|
function de(e, t, r, n, i, o, s) {
|
|
3651
|
-
if (e.length === 1 &&
|
|
3694
|
+
if (e.length === 1 && vt(e[0]))
|
|
3652
3695
|
return [
|
|
3653
3696
|
{
|
|
3654
3697
|
type: H.literal,
|
|
@@ -3657,14 +3700,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3657
3700
|
];
|
|
3658
3701
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3659
3702
|
var l = u[h];
|
|
3660
|
-
if (
|
|
3703
|
+
if (vt(l)) {
|
|
3661
3704
|
a.push({
|
|
3662
3705
|
type: H.literal,
|
|
3663
3706
|
value: l.value
|
|
3664
3707
|
});
|
|
3665
3708
|
continue;
|
|
3666
3709
|
}
|
|
3667
|
-
if (
|
|
3710
|
+
if (An(l)) {
|
|
3668
3711
|
typeof o == "number" && a.push({
|
|
3669
3712
|
type: H.literal,
|
|
3670
3713
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3673,89 +3716,89 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3673
3716
|
}
|
|
3674
3717
|
var c = l.value;
|
|
3675
3718
|
if (!(i && c in i))
|
|
3676
|
-
throw new
|
|
3719
|
+
throw new ii(c, s);
|
|
3677
3720
|
var f = i[c];
|
|
3678
|
-
if (
|
|
3721
|
+
if (Bn(l)) {
|
|
3679
3722
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3680
3723
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3681
3724
|
value: f
|
|
3682
3725
|
});
|
|
3683
3726
|
continue;
|
|
3684
3727
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
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;
|
|
3687
3730
|
a.push({
|
|
3688
3731
|
type: H.literal,
|
|
3689
3732
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3690
3733
|
});
|
|
3691
3734
|
continue;
|
|
3692
3735
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
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;
|
|
3695
3738
|
a.push({
|
|
3696
3739
|
type: H.literal,
|
|
3697
3740
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3698
3741
|
});
|
|
3699
3742
|
continue;
|
|
3700
3743
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
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;
|
|
3703
3746
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3704
3747
|
type: H.literal,
|
|
3705
3748
|
value: r.getNumberFormat(t, p).format(f)
|
|
3706
3749
|
});
|
|
3707
3750
|
continue;
|
|
3708
3751
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
if (!
|
|
3712
|
-
throw new
|
|
3713
|
-
var R = de(
|
|
3714
|
-
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;
|
|
3715
3758
|
}));
|
|
3716
|
-
Array.isArray(
|
|
3759
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(I) {
|
|
3717
3760
|
return {
|
|
3718
|
-
type: typeof
|
|
3719
|
-
value:
|
|
3761
|
+
type: typeof I == "string" ? H.literal : H.object,
|
|
3762
|
+
value: I
|
|
3720
3763
|
};
|
|
3721
3764
|
}));
|
|
3722
3765
|
}
|
|
3723
|
-
if (
|
|
3766
|
+
if (Qt(l)) {
|
|
3724
3767
|
var S = l.options[f] || l.options.other;
|
|
3725
3768
|
if (!S)
|
|
3726
|
-
throw new
|
|
3769
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3727
3770
|
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3728
3771
|
continue;
|
|
3729
3772
|
}
|
|
3730
|
-
if (
|
|
3773
|
+
if (qt(l)) {
|
|
3731
3774
|
var S = l.options["=".concat(f)];
|
|
3732
3775
|
if (!S) {
|
|
3733
3776
|
if (!Intl.PluralRules)
|
|
3734
|
-
throw new
|
|
3777
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3735
3778
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3736
|
-
`,
|
|
3779
|
+
`, Z.MISSING_INTL_API, s);
|
|
3737
3780
|
var U = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3738
3781
|
S = l.options[U] || l.options.other;
|
|
3739
3782
|
}
|
|
3740
3783
|
if (!S)
|
|
3741
|
-
throw new
|
|
3784
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3742
3785
|
a.push.apply(a, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3743
3786
|
continue;
|
|
3744
3787
|
}
|
|
3745
3788
|
}
|
|
3746
|
-
return
|
|
3789
|
+
return oi(a);
|
|
3747
3790
|
}
|
|
3748
|
-
function
|
|
3749
|
-
return t ?
|
|
3750
|
-
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;
|
|
3751
3794
|
}, {})) : e;
|
|
3752
3795
|
}
|
|
3753
|
-
function
|
|
3796
|
+
function ui(e, t) {
|
|
3754
3797
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3755
|
-
return r[n] =
|
|
3756
|
-
},
|
|
3798
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3799
|
+
}, P({}, e)) : e;
|
|
3757
3800
|
}
|
|
3758
|
-
function
|
|
3801
|
+
function Le(e) {
|
|
3759
3802
|
return {
|
|
3760
3803
|
create: function() {
|
|
3761
3804
|
return {
|
|
@@ -3769,39 +3812,39 @@ function Oe(e) {
|
|
|
3769
3812
|
}
|
|
3770
3813
|
};
|
|
3771
3814
|
}
|
|
3772
|
-
function
|
|
3815
|
+
function hi(e) {
|
|
3773
3816
|
return e === void 0 && (e = {
|
|
3774
3817
|
number: {},
|
|
3775
3818
|
dateTime: {},
|
|
3776
3819
|
pluralRules: {}
|
|
3777
3820
|
}), {
|
|
3778
|
-
getNumberFormat:
|
|
3821
|
+
getNumberFormat: Oe(function() {
|
|
3779
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3823
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3824
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3782
3825
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3826
|
+
cache: Le(e.number),
|
|
3827
|
+
strategy: Ie.variadic
|
|
3785
3828
|
}),
|
|
3786
|
-
getDateTimeFormat:
|
|
3829
|
+
getDateTimeFormat: Oe(function() {
|
|
3787
3830
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3788
3831
|
r[n] = arguments[n];
|
|
3789
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3832
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3790
3833
|
}, {
|
|
3791
|
-
cache:
|
|
3792
|
-
strategy:
|
|
3834
|
+
cache: Le(e.dateTime),
|
|
3835
|
+
strategy: Ie.variadic
|
|
3793
3836
|
}),
|
|
3794
|
-
getPluralRules:
|
|
3837
|
+
getPluralRules: Oe(function() {
|
|
3795
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3839
|
r[n] = arguments[n];
|
|
3797
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3798
3841
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3842
|
+
cache: Le(e.pluralRules),
|
|
3843
|
+
strategy: Ie.variadic
|
|
3801
3844
|
})
|
|
3802
3845
|
};
|
|
3803
3846
|
}
|
|
3804
|
-
var
|
|
3847
|
+
var li = (
|
|
3805
3848
|
/** @class */
|
|
3806
3849
|
function() {
|
|
3807
3850
|
function e(t, r, n, i) {
|
|
@@ -3833,13 +3876,13 @@ var oi = (
|
|
|
3833
3876
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3834
3877
|
var s = i || {};
|
|
3835
3878
|
s.formatters;
|
|
3836
|
-
var a =
|
|
3837
|
-
this.ast = e.__parse(t,
|
|
3879
|
+
var a = vn(s, ["formatters"]);
|
|
3880
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3838
3881
|
} else
|
|
3839
3882
|
this.ast = t;
|
|
3840
3883
|
if (!Array.isArray(this.ast))
|
|
3841
3884
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3842
|
-
this.formats =
|
|
3885
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3843
3886
|
}
|
|
3844
3887
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3845
3888
|
get: function() {
|
|
@@ -3852,7 +3895,7 @@ var oi = (
|
|
|
3852
3895
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3853
3896
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3854
3897
|
}
|
|
3855
|
-
}, e.__parse =
|
|
3898
|
+
}, e.__parse = ri, e.formats = {
|
|
3856
3899
|
number: {
|
|
3857
3900
|
integer: {
|
|
3858
3901
|
maximumFractionDigits: 0
|
|
@@ -3913,7 +3956,7 @@ var oi = (
|
|
|
3913
3956
|
}, e;
|
|
3914
3957
|
}()
|
|
3915
3958
|
);
|
|
3916
|
-
function
|
|
3959
|
+
function ci(e, t) {
|
|
3917
3960
|
if (t == null)
|
|
3918
3961
|
return;
|
|
3919
3962
|
if (t in e)
|
|
@@ -3934,92 +3977,92 @@ function si(e, t) {
|
|
|
3934
3977
|
n = void 0;
|
|
3935
3978
|
return n;
|
|
3936
3979
|
}
|
|
3937
|
-
const $ = {},
|
|
3980
|
+
const $ = {}, fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
|
|
3938
3981
|
if (t == null)
|
|
3939
3982
|
return;
|
|
3940
3983
|
if (t in $ && e in $[t])
|
|
3941
3984
|
return $[t][e];
|
|
3942
|
-
const r =
|
|
3985
|
+
const r = He(t);
|
|
3943
3986
|
for (let n = 0; n < r.length; n++) {
|
|
3944
|
-
const i = r[n], o =
|
|
3987
|
+
const i = r[n], o = mi(i, e);
|
|
3945
3988
|
if (o)
|
|
3946
|
-
return
|
|
3989
|
+
return fi(e, t, o);
|
|
3947
3990
|
}
|
|
3948
3991
|
};
|
|
3949
|
-
let
|
|
3950
|
-
const he =
|
|
3951
|
-
function
|
|
3952
|
-
return
|
|
3992
|
+
let rt;
|
|
3993
|
+
const he = Ee({});
|
|
3994
|
+
function pi(e) {
|
|
3995
|
+
return rt[e] || null;
|
|
3953
3996
|
}
|
|
3954
|
-
function
|
|
3955
|
-
return e in
|
|
3997
|
+
function ar(e) {
|
|
3998
|
+
return e in rt;
|
|
3956
3999
|
}
|
|
3957
|
-
function
|
|
3958
|
-
if (!
|
|
4000
|
+
function mi(e, t) {
|
|
4001
|
+
if (!ar(e))
|
|
3959
4002
|
return null;
|
|
3960
|
-
const r =
|
|
3961
|
-
return
|
|
4003
|
+
const r = pi(e);
|
|
4004
|
+
return ci(r, t);
|
|
3962
4005
|
}
|
|
3963
|
-
function
|
|
4006
|
+
function di(e) {
|
|
3964
4007
|
if (e == null)
|
|
3965
4008
|
return;
|
|
3966
|
-
const t =
|
|
4009
|
+
const t = He(e);
|
|
3967
4010
|
for (let r = 0; r < t.length; r++) {
|
|
3968
4011
|
const n = t[r];
|
|
3969
|
-
if (
|
|
4012
|
+
if (ar(n))
|
|
3970
4013
|
return n;
|
|
3971
4014
|
}
|
|
3972
4015
|
}
|
|
3973
|
-
function
|
|
3974
|
-
delete $[e], he.update((r) => (r[e] =
|
|
4016
|
+
function ur(e, ...t) {
|
|
4017
|
+
delete $[e], he.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3975
4018
|
}
|
|
3976
|
-
|
|
4019
|
+
J(
|
|
3977
4020
|
[he],
|
|
3978
4021
|
([e]) => Object.keys(e)
|
|
3979
4022
|
);
|
|
3980
|
-
he.subscribe((e) =>
|
|
4023
|
+
he.subscribe((e) => rt = e);
|
|
3981
4024
|
const be = {};
|
|
3982
|
-
function
|
|
4025
|
+
function bi(e, t) {
|
|
3983
4026
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3984
4027
|
}
|
|
3985
|
-
function
|
|
4028
|
+
function hr(e) {
|
|
3986
4029
|
return be[e];
|
|
3987
4030
|
}
|
|
3988
|
-
function
|
|
3989
|
-
return
|
|
3990
|
-
const r =
|
|
4031
|
+
function yi(e) {
|
|
4032
|
+
return He(e).map((t) => {
|
|
4033
|
+
const r = hr(t);
|
|
3991
4034
|
return [t, r ? [...r] : []];
|
|
3992
4035
|
}).filter(([, t]) => t.length > 0);
|
|
3993
4036
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return e == null ? !1 :
|
|
4037
|
+
function Ye(e) {
|
|
4038
|
+
return e == null ? !1 : He(e).some(
|
|
3996
4039
|
(t) => {
|
|
3997
4040
|
var r;
|
|
3998
|
-
return (r =
|
|
4041
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
3999
4042
|
}
|
|
4000
4043
|
);
|
|
4001
4044
|
}
|
|
4002
|
-
function
|
|
4045
|
+
function gi(e, t) {
|
|
4003
4046
|
return Promise.all(
|
|
4004
|
-
t.map((n) => (
|
|
4005
|
-
).then((n) =>
|
|
4006
|
-
}
|
|
4007
|
-
const
|
|
4008
|
-
function
|
|
4009
|
-
if (!
|
|
4010
|
-
return e in
|
|
4011
|
-
const t =
|
|
4012
|
-
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(
|
|
4013
4056
|
t.map(
|
|
4014
|
-
([r, n]) =>
|
|
4057
|
+
([r, n]) => gi(r, n)
|
|
4015
4058
|
)
|
|
4016
4059
|
).then(() => {
|
|
4017
|
-
if (
|
|
4018
|
-
return
|
|
4019
|
-
delete
|
|
4020
|
-
}),
|
|
4060
|
+
if (Ye(e))
|
|
4061
|
+
return lr(e);
|
|
4062
|
+
delete ee[e];
|
|
4063
|
+
}), ee[e];
|
|
4021
4064
|
}
|
|
4022
|
-
const
|
|
4065
|
+
const vi = {
|
|
4023
4066
|
number: {
|
|
4024
4067
|
scientific: { notation: "scientific" },
|
|
4025
4068
|
engineering: { notation: "engineering" },
|
|
@@ -4048,135 +4091,135 @@ const mi = {
|
|
|
4048
4091
|
timeZoneName: "short"
|
|
4049
4092
|
}
|
|
4050
4093
|
}
|
|
4051
|
-
},
|
|
4094
|
+
}, _i = {
|
|
4052
4095
|
fallbackLocale: null,
|
|
4053
4096
|
loadingDelay: 200,
|
|
4054
|
-
formats:
|
|
4097
|
+
formats: vi,
|
|
4055
4098
|
warnOnMissingMessages: !0,
|
|
4056
4099
|
handleMissingMessage: void 0,
|
|
4057
4100
|
ignoreTag: !0
|
|
4058
|
-
},
|
|
4059
|
-
function
|
|
4060
|
-
return
|
|
4101
|
+
}, Ei = _i;
|
|
4102
|
+
function Q() {
|
|
4103
|
+
return Ei;
|
|
4061
4104
|
}
|
|
4062
|
-
const
|
|
4063
|
-
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) => {
|
|
4064
4107
|
for (var r in t || (t = {}))
|
|
4065
|
-
|
|
4066
|
-
if (
|
|
4067
|
-
for (var r of
|
|
4068
|
-
|
|
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]);
|
|
4069
4112
|
return e;
|
|
4070
|
-
},
|
|
4071
|
-
let
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4113
|
+
}, Ai = (e, t) => Ti(e, Hi(t));
|
|
4114
|
+
let Ke;
|
|
4115
|
+
const ge = Ee(null);
|
|
4116
|
+
function Pt(e) {
|
|
4074
4117
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4075
4118
|
}
|
|
4076
|
-
function
|
|
4077
|
-
const r =
|
|
4078
|
-
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;
|
|
4079
4122
|
}
|
|
4080
4123
|
function D() {
|
|
4081
|
-
return
|
|
4124
|
+
return Ke != null ? Ke : void 0;
|
|
4082
4125
|
}
|
|
4083
|
-
|
|
4084
|
-
|
|
4126
|
+
ge.subscribe((e) => {
|
|
4127
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4085
4128
|
});
|
|
4086
|
-
const
|
|
4087
|
-
if (e &&
|
|
4088
|
-
const { loadingDelay: t } =
|
|
4129
|
+
const Pi = (e) => {
|
|
4130
|
+
if (e && di(e) && Ye(e)) {
|
|
4131
|
+
const { loadingDelay: t } = Q();
|
|
4089
4132
|
let r;
|
|
4090
4133
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4091
|
-
() =>
|
|
4134
|
+
() => Ce.set(!0),
|
|
4092
4135
|
t
|
|
4093
|
-
) :
|
|
4094
|
-
|
|
4136
|
+
) : Ce.set(!0), lr(e).then(() => {
|
|
4137
|
+
ge.set(e);
|
|
4095
4138
|
}).finally(() => {
|
|
4096
|
-
clearTimeout(r),
|
|
4139
|
+
clearTimeout(r), Ce.set(!1);
|
|
4097
4140
|
});
|
|
4098
4141
|
}
|
|
4099
|
-
return
|
|
4100
|
-
},
|
|
4101
|
-
set:
|
|
4102
|
-
}),
|
|
4142
|
+
return ge.set(e);
|
|
4143
|
+
}, Y = Ai(Bi({}, ge), {
|
|
4144
|
+
set: Pi
|
|
4145
|
+
}), Se = (e) => {
|
|
4103
4146
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4104
4147
|
return (n) => {
|
|
4105
4148
|
const i = JSON.stringify(n);
|
|
4106
4149
|
return i in t ? t[i] : t[i] = e(n);
|
|
4107
4150
|
};
|
|
4108
4151
|
};
|
|
4109
|
-
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) => {
|
|
4110
4153
|
for (var r in t || (t = {}))
|
|
4111
|
-
|
|
4112
|
-
if (
|
|
4113
|
-
for (var r of
|
|
4114
|
-
|
|
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]);
|
|
4115
4158
|
return e;
|
|
4116
|
-
},
|
|
4159
|
+
}, K = (e, t) => {
|
|
4117
4160
|
var r = {};
|
|
4118
4161
|
for (var n in e)
|
|
4119
|
-
|
|
4120
|
-
if (e != null &&
|
|
4121
|
-
for (var n of
|
|
4122
|
-
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]);
|
|
4123
4166
|
return r;
|
|
4124
4167
|
};
|
|
4125
|
-
const
|
|
4126
|
-
const { formats: r } =
|
|
4168
|
+
const oe = (e, t) => {
|
|
4169
|
+
const { formats: r } = Q();
|
|
4127
4170
|
if (e in r && t in r[e])
|
|
4128
4171
|
return r[e][t];
|
|
4129
4172
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4130
|
-
},
|
|
4173
|
+
}, Ii = Se(
|
|
4131
4174
|
(e) => {
|
|
4132
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4175
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4133
4176
|
if (r == null)
|
|
4134
4177
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4135
|
-
return n && (i =
|
|
4178
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4136
4179
|
}
|
|
4137
|
-
),
|
|
4180
|
+
), Ni = Se(
|
|
4138
4181
|
(e) => {
|
|
4139
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4182
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4140
4183
|
if (r == null)
|
|
4141
4184
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4142
|
-
return n ? i =
|
|
4185
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4143
4186
|
}
|
|
4144
|
-
),
|
|
4187
|
+
), Li = Se(
|
|
4145
4188
|
(e) => {
|
|
4146
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4189
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4147
4190
|
if (r == null)
|
|
4148
4191
|
throw new Error(
|
|
4149
4192
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4150
4193
|
);
|
|
4151
|
-
return n ? i =
|
|
4194
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4152
4195
|
}
|
|
4153
|
-
),
|
|
4196
|
+
), Ci = (e = {}) => {
|
|
4154
4197
|
var t = e, {
|
|
4155
4198
|
locale: r = D()
|
|
4156
|
-
} = t, n =
|
|
4199
|
+
} = t, n = K(t, [
|
|
4157
4200
|
"locale"
|
|
4158
4201
|
]);
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4202
|
+
return Ii(nt({ locale: r }, n));
|
|
4203
|
+
}, Mi = (e = {}) => {
|
|
4161
4204
|
var t = e, {
|
|
4162
4205
|
locale: r = D()
|
|
4163
|
-
} = t, n =
|
|
4206
|
+
} = t, n = K(t, [
|
|
4164
4207
|
"locale"
|
|
4165
4208
|
]);
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4209
|
+
return Ni(nt({ locale: r }, n));
|
|
4210
|
+
}, $i = (e = {}) => {
|
|
4168
4211
|
var t = e, {
|
|
4169
4212
|
locale: r = D()
|
|
4170
|
-
} = t, n =
|
|
4213
|
+
} = t, n = K(t, [
|
|
4171
4214
|
"locale"
|
|
4172
4215
|
]);
|
|
4173
|
-
return
|
|
4174
|
-
},
|
|
4216
|
+
return Li(nt({ locale: r }, n));
|
|
4217
|
+
}, Ri = Se(
|
|
4175
4218
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4176
|
-
(e, t = D()) => new
|
|
4177
|
-
ignoreTag:
|
|
4219
|
+
(e, t = D()) => new li(e, t, Q().formats, {
|
|
4220
|
+
ignoreTag: Q().ignoreTag
|
|
4178
4221
|
})
|
|
4179
|
-
),
|
|
4222
|
+
), Ui = (e, t = {}) => {
|
|
4180
4223
|
var r, n, i, o;
|
|
4181
4224
|
let s = t;
|
|
4182
4225
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4189,9 +4232,9 @@ const se = (e, t) => {
|
|
|
4189
4232
|
throw new Error(
|
|
4190
4233
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4191
4234
|
);
|
|
4192
|
-
let l =
|
|
4235
|
+
let l = sr(e, h);
|
|
4193
4236
|
if (!l)
|
|
4194
|
-
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;
|
|
4195
4238
|
else if (typeof l != "string")
|
|
4196
4239
|
return console.warn(
|
|
4197
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.`
|
|
@@ -4200,7 +4243,7 @@ const se = (e, t) => {
|
|
|
4200
4243
|
return l;
|
|
4201
4244
|
let c = l;
|
|
4202
4245
|
try {
|
|
4203
|
-
c =
|
|
4246
|
+
c = Ri(l, h).format(a);
|
|
4204
4247
|
} catch (f) {
|
|
4205
4248
|
f instanceof Error && console.warn(
|
|
4206
4249
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4208,20 +4251,20 @@ const se = (e, t) => {
|
|
|
4208
4251
|
);
|
|
4209
4252
|
}
|
|
4210
4253
|
return c;
|
|
4211
|
-
},
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
window.emWidgets = { topic:
|
|
4217
|
-
const
|
|
4218
|
-
function
|
|
4219
|
-
|
|
4220
|
-
}
|
|
4221
|
-
function
|
|
4222
|
-
|
|
4223
|
-
}
|
|
4224
|
-
const
|
|
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);
|
|
4259
|
+
window.emWidgets = { topic: en };
|
|
4260
|
+
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4261
|
+
function It(e, t) {
|
|
4262
|
+
ur(e, t);
|
|
4263
|
+
}
|
|
4264
|
+
function Xi(e) {
|
|
4265
|
+
Y.set(e);
|
|
4266
|
+
}
|
|
4267
|
+
const Nt = {
|
|
4225
4268
|
en: {
|
|
4226
4269
|
titleTransactionHistory: "Transaction History",
|
|
4227
4270
|
loading: "Loading, please wait ..."
|
|
@@ -4263,13 +4306,13 @@ const Bt = {
|
|
|
4263
4306
|
loading: "Loading, please wait ..."
|
|
4264
4307
|
}
|
|
4265
4308
|
};
|
|
4266
|
-
function
|
|
4309
|
+
function Wi(e, t) {
|
|
4267
4310
|
if (e) {
|
|
4268
4311
|
const r = document.createElement("style");
|
|
4269
4312
|
r.innerHTML = t, e.appendChild(r);
|
|
4270
4313
|
}
|
|
4271
4314
|
}
|
|
4272
|
-
function
|
|
4315
|
+
function zi(e, t) {
|
|
4273
4316
|
const r = new URL(t);
|
|
4274
4317
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4275
4318
|
const i = document.createElement("style");
|
|
@@ -4278,7 +4321,7 @@ function ji(e, t) {
|
|
|
4278
4321
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4279
4322
|
});
|
|
4280
4323
|
}
|
|
4281
|
-
function
|
|
4324
|
+
function Zi(e, t, r) {
|
|
4282
4325
|
if (window.emMessageBus) {
|
|
4283
4326
|
const n = document.createElement("style");
|
|
4284
4327
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4286,20 +4329,20 @@ function ki(e, t, r) {
|
|
|
4286
4329
|
});
|
|
4287
4330
|
}
|
|
4288
4331
|
}
|
|
4289
|
-
function
|
|
4290
|
-
|
|
4332
|
+
function Qi(e) {
|
|
4333
|
+
_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}");
|
|
4291
4334
|
}
|
|
4292
|
-
function
|
|
4335
|
+
function qi(e) {
|
|
4293
4336
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4294
4337
|
/*$_*/
|
|
4295
4338
|
e[3]("titleTransactionHistory") + ""
|
|
4296
|
-
), f, p,
|
|
4339
|
+
), f, p, g;
|
|
4297
4340
|
return {
|
|
4298
4341
|
c() {
|
|
4299
|
-
t =
|
|
4342
|
+
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");
|
|
4300
4343
|
},
|
|
4301
4344
|
m(m, T) {
|
|
4302
|
-
|
|
4345
|
+
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(
|
|
4303
4346
|
t,
|
|
4304
4347
|
"click",
|
|
4305
4348
|
/*click_handler*/
|
|
@@ -4309,119 +4352,119 @@ function Xi(e) {
|
|
|
4309
4352
|
p(m, T) {
|
|
4310
4353
|
T & /*$_*/
|
|
4311
4354
|
8 && c !== (c = /*$_*/
|
|
4312
|
-
m[3]("titleTransactionHistory") + "") &&
|
|
4355
|
+
m[3]("titleTransactionHistory") + "") && tt(f, c);
|
|
4313
4356
|
},
|
|
4314
4357
|
d(m) {
|
|
4315
|
-
m &&
|
|
4358
|
+
m && q(t), p = !1, g();
|
|
4316
4359
|
}
|
|
4317
4360
|
};
|
|
4318
4361
|
}
|
|
4319
|
-
function
|
|
4362
|
+
function Ji(e) {
|
|
4320
4363
|
let t, r, n;
|
|
4321
4364
|
return {
|
|
4322
4365
|
c() {
|
|
4323
|
-
t =
|
|
4366
|
+
t = L("div"), r = L("iframe"), ht(r.src, n = /*iframeUrl*/
|
|
4324
4367
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4325
4368
|
},
|
|
4326
4369
|
m(i, o) {
|
|
4327
|
-
|
|
4370
|
+
ae(i, t, o), x(t, r);
|
|
4328
4371
|
},
|
|
4329
4372
|
p(i, o) {
|
|
4330
4373
|
o & /*iframeUrl*/
|
|
4331
|
-
4 && !
|
|
4374
|
+
4 && !ht(r.src, n = /*iframeUrl*/
|
|
4332
4375
|
i[2]) && E(r, "src", n);
|
|
4333
4376
|
},
|
|
4334
4377
|
d(i) {
|
|
4335
|
-
i &&
|
|
4378
|
+
i && q(t);
|
|
4336
4379
|
}
|
|
4337
4380
|
};
|
|
4338
4381
|
}
|
|
4339
|
-
function
|
|
4382
|
+
function Yi(e) {
|
|
4340
4383
|
let t, r = (
|
|
4341
4384
|
/*$_*/
|
|
4342
4385
|
e[3]("loading") + ""
|
|
4343
4386
|
), n;
|
|
4344
4387
|
return {
|
|
4345
4388
|
c() {
|
|
4346
|
-
t =
|
|
4389
|
+
t = L("p"), n = re(r);
|
|
4347
4390
|
},
|
|
4348
4391
|
m(i, o) {
|
|
4349
|
-
|
|
4392
|
+
ae(i, t, o), x(t, n);
|
|
4350
4393
|
},
|
|
4351
4394
|
p(i, o) {
|
|
4352
4395
|
o & /*$_*/
|
|
4353
4396
|
8 && r !== (r = /*$_*/
|
|
4354
|
-
i[3]("loading") + "") &&
|
|
4397
|
+
i[3]("loading") + "") && tt(n, r);
|
|
4355
4398
|
},
|
|
4356
4399
|
d(i) {
|
|
4357
|
-
i &&
|
|
4400
|
+
i && q(t);
|
|
4358
4401
|
}
|
|
4359
4402
|
};
|
|
4360
4403
|
}
|
|
4361
|
-
function
|
|
4404
|
+
function Ki(e) {
|
|
4362
4405
|
let t, r, n, i = (
|
|
4363
4406
|
/*$_*/
|
|
4364
4407
|
e[3]("titleTransactionHistory") + ""
|
|
4365
4408
|
), o, s, a = (
|
|
4366
4409
|
/*isMobile*/
|
|
4367
|
-
e[4] &&
|
|
4410
|
+
e[4] && qi(e)
|
|
4368
4411
|
);
|
|
4369
4412
|
function h(c, f) {
|
|
4370
4413
|
return (
|
|
4371
4414
|
/*isLoading*/
|
|
4372
|
-
c[1] ?
|
|
4415
|
+
c[1] ? Yi : Ji
|
|
4373
4416
|
);
|
|
4374
4417
|
}
|
|
4375
4418
|
let u = h(e), l = u(e);
|
|
4376
4419
|
return {
|
|
4377
4420
|
c() {
|
|
4378
|
-
t =
|
|
4421
|
+
t = L("div"), a && a.c(), r = Me(), n = L("h2"), o = re(i), s = Me(), l.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4379
4422
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4380
4423
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4381
4424
|
},
|
|
4382
4425
|
m(c, f) {
|
|
4383
|
-
|
|
4426
|
+
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);
|
|
4384
4427
|
},
|
|
4385
4428
|
p(c, [f]) {
|
|
4386
4429
|
/*isMobile*/
|
|
4387
4430
|
c[4] && a.p(c, f), f & /*$_*/
|
|
4388
4431
|
8 && i !== (i = /*$_*/
|
|
4389
|
-
c[3]("titleTransactionHistory") + "") &&
|
|
4432
|
+
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)));
|
|
4390
4433
|
},
|
|
4391
4434
|
i: B,
|
|
4392
4435
|
o: B,
|
|
4393
4436
|
d(c) {
|
|
4394
|
-
c &&
|
|
4437
|
+
c && q(t), a && a.d(), l.d(), e[15](null);
|
|
4395
4438
|
}
|
|
4396
4439
|
};
|
|
4397
4440
|
}
|
|
4398
|
-
function
|
|
4441
|
+
function eo(e, t, r) {
|
|
4399
4442
|
let n;
|
|
4400
|
-
|
|
4401
|
-
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,
|
|
4443
|
+
vr(e, ki, (y) => r(3, n = y));
|
|
4444
|
+
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 = "";
|
|
4402
4445
|
const R = () => {
|
|
4403
4446
|
fetch(c).then((C) => C.json()).then((C) => {
|
|
4404
4447
|
Object.keys(C).forEach((M) => {
|
|
4405
|
-
|
|
4448
|
+
It(M, C[M]);
|
|
4406
4449
|
});
|
|
4407
4450
|
}).catch((C) => {
|
|
4408
4451
|
console.log(C);
|
|
4409
4452
|
});
|
|
4410
4453
|
};
|
|
4411
|
-
Object.keys(
|
|
4412
|
-
|
|
4454
|
+
Object.keys(Nt).forEach((y) => {
|
|
4455
|
+
It(y, Nt[y]);
|
|
4413
4456
|
});
|
|
4414
|
-
const
|
|
4457
|
+
const O = () => {
|
|
4415
4458
|
window.postMessage(
|
|
4416
4459
|
{
|
|
4417
4460
|
type: "PlayerAccountMenuActive",
|
|
4418
|
-
isMobile:
|
|
4461
|
+
isMobile: g
|
|
4419
4462
|
},
|
|
4420
4463
|
window.location.href
|
|
4421
4464
|
);
|
|
4422
4465
|
}, S = () => {
|
|
4423
|
-
let
|
|
4424
|
-
|
|
4466
|
+
let y = new URL(`${i}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`);
|
|
4467
|
+
y.searchParams.append("language", a);
|
|
4425
4468
|
let C = {
|
|
4426
4469
|
method: "GET",
|
|
4427
4470
|
headers: {
|
|
@@ -4429,7 +4472,7 @@ function Qi(e, t, r) {
|
|
|
4429
4472
|
accept: "application/json"
|
|
4430
4473
|
}
|
|
4431
4474
|
};
|
|
4432
|
-
fetch(
|
|
4475
|
+
fetch(y.href, C).then((M) => M.json()).then(
|
|
4433
4476
|
(M) => {
|
|
4434
4477
|
r(1, m = !1), r(2, T = M.CashierUrl);
|
|
4435
4478
|
},
|
|
@@ -4438,33 +4481,33 @@ function Qi(e, t, r) {
|
|
|
4438
4481
|
}
|
|
4439
4482
|
);
|
|
4440
4483
|
}, U = () => {
|
|
4441
|
-
|
|
4484
|
+
Xi(a);
|
|
4442
4485
|
};
|
|
4443
|
-
|
|
4486
|
+
Br(() => () => {
|
|
4444
4487
|
});
|
|
4445
|
-
const
|
|
4446
|
-
function G(
|
|
4447
|
-
|
|
4448
|
-
f =
|
|
4488
|
+
const I = () => O();
|
|
4489
|
+
function G(y) {
|
|
4490
|
+
$e[y ? "unshift" : "push"](() => {
|
|
4491
|
+
f = y, r(0, f);
|
|
4449
4492
|
});
|
|
4450
4493
|
}
|
|
4451
|
-
return e.$$set = (
|
|
4452
|
-
"endpoint" in
|
|
4494
|
+
return e.$$set = (y) => {
|
|
4495
|
+
"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);
|
|
4453
4496
|
}, e.$$.update = () => {
|
|
4454
4497
|
e.$$.dirty & /*lang*/
|
|
4455
4498
|
512 && a && U(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4456
4499
|
960 && o && s && i && a && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4457
|
-
1025 && h && f &&
|
|
4458
|
-
2049 && u && f &&
|
|
4459
|
-
4097 && l && f &&
|
|
4500
|
+
1025 && h && f && Wi(f, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4501
|
+
2049 && u && f && zi(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4502
|
+
4097 && l && f && Zi(f, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4460
4503
|
8192 && c && R();
|
|
4461
4504
|
}, [
|
|
4462
4505
|
f,
|
|
4463
4506
|
m,
|
|
4464
4507
|
T,
|
|
4465
4508
|
n,
|
|
4466
|
-
|
|
4467
|
-
|
|
4509
|
+
g,
|
|
4510
|
+
O,
|
|
4468
4511
|
i,
|
|
4469
4512
|
o,
|
|
4470
4513
|
s,
|
|
@@ -4473,18 +4516,18 @@ function Qi(e, t, r) {
|
|
|
4473
4516
|
u,
|
|
4474
4517
|
l,
|
|
4475
4518
|
c,
|
|
4476
|
-
|
|
4519
|
+
I,
|
|
4477
4520
|
G
|
|
4478
4521
|
];
|
|
4479
4522
|
}
|
|
4480
|
-
class
|
|
4523
|
+
class to extends Dr {
|
|
4481
4524
|
constructor(t) {
|
|
4482
|
-
super(),
|
|
4525
|
+
super(), Rr(
|
|
4483
4526
|
this,
|
|
4484
4527
|
t,
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4528
|
+
eo,
|
|
4529
|
+
Ki,
|
|
4530
|
+
Ct,
|
|
4488
4531
|
{
|
|
4489
4532
|
endpoint: 6,
|
|
4490
4533
|
session: 7,
|
|
@@ -4495,7 +4538,7 @@ class qi extends Cr {
|
|
|
4495
4538
|
mbsource: 12,
|
|
4496
4539
|
translationurl: 13
|
|
4497
4540
|
},
|
|
4498
|
-
|
|
4541
|
+
Qi
|
|
4499
4542
|
);
|
|
4500
4543
|
}
|
|
4501
4544
|
get endpoint() {
|
|
@@ -4547,7 +4590,7 @@ class qi extends Cr {
|
|
|
4547
4590
|
this.$$set({ translationurl: t }), A();
|
|
4548
4591
|
}
|
|
4549
4592
|
}
|
|
4550
|
-
|
|
4593
|
+
Ur(to, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4551
4594
|
export {
|
|
4552
|
-
|
|
4595
|
+
to as default
|
|
4553
4596
|
};
|