@everymatrix/player-transaction-history 1.74.3 → 1.74.4
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-D5hdtz_N.js → PlayerTransactionHistory-Bx2_JL-P.js} +657 -643
- package/components/PlayerTransactionHistory-Cys_phhX.cjs +18 -0
- package/components/{PlayerTransactionHistory-D4qzBHFZ.js → PlayerTransactionHistory-Dxsb4pyZ.js} +641 -627
- 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-BdSKOFDT.cjs +0 -18
package/components/{PlayerTransactionHistory-D4qzBHFZ.js → PlayerTransactionHistory-Dxsb4pyZ.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
|
-
function
|
|
19
|
+
function tt(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Bt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function St(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ur(e, t, r) {
|
|
41
|
+
const n = hr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = I("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function sr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function lr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -76,23 +76,23 @@ function G(e) {
|
|
|
76
76
|
function re(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ie() {
|
|
80
80
|
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function cr(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function E(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function fr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qe(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -105,22 +105,22 @@ let ne;
|
|
|
105
105
|
function te(e) {
|
|
106
106
|
ne = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function mr() {
|
|
109
109
|
if (!ne)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
111
|
return ne;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function dr(e) {
|
|
114
|
+
mr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ne = [];
|
|
117
117
|
let V = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const rt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Le = !1;
|
|
120
|
+
function yr() {
|
|
121
|
+
Le || (Le = !0, br.then(B));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ce(e) {
|
|
124
124
|
V.push(e);
|
|
125
125
|
}
|
|
126
126
|
const Te = /* @__PURE__ */ new Set();
|
|
@@ -133,53 +133,53 @@ function B() {
|
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++, te(t),
|
|
136
|
+
F++, te(t), gr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (te(null), k.length = 0, F = 0;
|
|
142
|
-
|
|
141
|
+
for (te(null), k.length = 0, F = 0; Ne.length; )
|
|
142
|
+
Ne.pop()();
|
|
143
143
|
for (let t = 0; t < V.length; t += 1) {
|
|
144
144
|
const r = V[t];
|
|
145
145
|
Te.has(r) || (Te.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
V.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; rt.length; )
|
|
150
|
+
rt.pop()();
|
|
151
|
+
Le = !1, Te.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function gr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
155
|
e.update(), se(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const _r = /* @__PURE__ */ new Set();
|
|
165
|
+
function Er(e, t) {
|
|
166
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function xr(e, t, r) {
|
|
169
169
|
const { fragment: n, after_update: i } = e.$$;
|
|
170
|
-
n && n.m(t, r),
|
|
171
|
-
const o = e.$$.on_mount.map(
|
|
170
|
+
n && n.m(t, r), Ce(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(St).filter(Ze);
|
|
172
172
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
-
}), i.forEach(
|
|
173
|
+
}), i.forEach(Ce);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Tr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (vr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
179
|
+
function Hr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
183
|
const l = ne;
|
|
184
184
|
te(e);
|
|
185
185
|
const u = e.$$ = {
|
|
@@ -189,7 +189,7 @@ function xr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: w,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: et(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,28 +198,28 @@ function xr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: et(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
205
205
|
};
|
|
206
206
|
a && a(u.root);
|
|
207
207
|
let h = !1;
|
|
208
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
209
|
-
const v =
|
|
210
|
-
return u.ctx && i(u.ctx[
|
|
211
|
-
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
208
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
|
+
const v = p.length ? p[0] : f;
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Hr(e, c)), f;
|
|
211
|
+
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const
|
|
214
|
-
u.fragment && u.fragment.l(
|
|
213
|
+
const c = fr(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), B();
|
|
218
218
|
}
|
|
219
219
|
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let At;
|
|
222
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -278,12 +278,12 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = pr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
285
285
|
const o = this.$$g_p(i.name);
|
|
286
|
-
o in this.$$d || (this.$$d[o] =
|
|
286
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
287
287
|
}
|
|
288
288
|
for (const i in this.$$p_d)
|
|
289
289
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
301
301
|
this.$$r = !0;
|
|
302
302
|
for (const i in this.$$p_d)
|
|
303
303
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
304
|
-
const o =
|
|
304
|
+
const o = fe(
|
|
305
305
|
i,
|
|
306
306
|
this.$$d[i],
|
|
307
307
|
this.$$p_d,
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
323
323
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
324
324
|
// and setting attributes through setAttribute etc, this is helpful
|
|
325
325
|
attributeChangedCallback(e, t, r) {
|
|
326
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
326
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
327
327
|
}
|
|
328
328
|
disconnectedCallback() {
|
|
329
329
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
336
336
|
) || e;
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function fe(e, t, r, n) {
|
|
340
340
|
const i = r[e]?.type;
|
|
341
341
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
342
342
|
return t;
|
|
@@ -365,8 +365,8 @@ function ce(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function wr(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends At {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -382,7 +382,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
382
382
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
383
383
|
},
|
|
384
384
|
set(l) {
|
|
385
|
-
l =
|
|
385
|
+
l = fe(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}), n.forEach((s) => {
|
|
@@ -394,7 +394,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Br {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Hr {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Tr(this, 1), this.$destroy = w;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Hr {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ze(r))
|
|
426
426
|
return w;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,11 +435,11 @@ class Hr {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
441
|
+
const Ar = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
443
443
|
/*! *****************************************************************************
|
|
444
444
|
Copyright (c) Microsoft Corporation.
|
|
445
445
|
|
|
@@ -454,18 +454,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
454
454
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
455
455
|
PERFORMANCE OF THIS SOFTWARE.
|
|
456
456
|
***************************************************************************** */
|
|
457
|
-
var
|
|
458
|
-
return
|
|
457
|
+
var Me = function(e, t) {
|
|
458
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
459
459
|
r.__proto__ = n;
|
|
460
460
|
} || function(r, n) {
|
|
461
461
|
for (var i in n)
|
|
462
462
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
463
|
-
},
|
|
463
|
+
}, Me(e, t);
|
|
464
464
|
};
|
|
465
465
|
function N(e, t) {
|
|
466
466
|
if (typeof t != "function" && t !== null)
|
|
467
467
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
468
|
-
|
|
468
|
+
Me(e, t);
|
|
469
469
|
function r() {
|
|
470
470
|
this.constructor = e;
|
|
471
471
|
}
|
|
@@ -481,7 +481,7 @@ var y = function() {
|
|
|
481
481
|
return t;
|
|
482
482
|
}, y.apply(this, arguments);
|
|
483
483
|
};
|
|
484
|
-
function
|
|
484
|
+
function Pr(e, t) {
|
|
485
485
|
var r = {};
|
|
486
486
|
for (var n in e)
|
|
487
487
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -490,7 +490,7 @@ function wr(e, t) {
|
|
|
490
490
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
491
491
|
return r;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function $e(e) {
|
|
494
494
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
495
495
|
if (r)
|
|
496
496
|
return r.call(e);
|
|
@@ -502,7 +502,7 @@ function Me(e) {
|
|
|
502
502
|
};
|
|
503
503
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Re(e, t) {
|
|
506
506
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
507
507
|
if (!r)
|
|
508
508
|
return e;
|
|
@@ -531,13 +531,13 @@ function X(e, t, r) {
|
|
|
531
531
|
function O(e) {
|
|
532
532
|
return typeof e == "function";
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Pt(e) {
|
|
535
535
|
var t = function(n) {
|
|
536
536
|
Error.call(n), n.stack = new Error().stack;
|
|
537
537
|
}, r = e(t);
|
|
538
538
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
539
539
|
}
|
|
540
|
-
var He =
|
|
540
|
+
var He = Pt(function(e) {
|
|
541
541
|
return function(r) {
|
|
542
542
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
543
543
|
` + r.map(function(n, i) {
|
|
@@ -546,7 +546,7 @@ var He = Bt(function(e) {
|
|
|
546
546
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
547
547
|
};
|
|
548
548
|
});
|
|
549
|
-
function
|
|
549
|
+
function Ue(e, t) {
|
|
550
550
|
if (e) {
|
|
551
551
|
var r = e.indexOf(t);
|
|
552
552
|
0 <= r && e.splice(r, 1);
|
|
@@ -564,12 +564,12 @@ var ge = function() {
|
|
|
564
564
|
if (a)
|
|
565
565
|
if (this._parentage = null, Array.isArray(a))
|
|
566
566
|
try {
|
|
567
|
-
for (var s =
|
|
567
|
+
for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
|
|
568
568
|
var u = l.value;
|
|
569
569
|
u.remove(this);
|
|
570
570
|
}
|
|
571
|
-
} catch (
|
|
572
|
-
t = { error:
|
|
571
|
+
} catch (m) {
|
|
572
|
+
t = { error: m };
|
|
573
573
|
} finally {
|
|
574
574
|
try {
|
|
575
575
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -584,26 +584,26 @@ var ge = function() {
|
|
|
584
584
|
if (O(h))
|
|
585
585
|
try {
|
|
586
586
|
h();
|
|
587
|
-
} catch (
|
|
588
|
-
o =
|
|
587
|
+
} catch (m) {
|
|
588
|
+
o = m instanceof He ? m.errors : [m];
|
|
589
589
|
}
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
590
|
+
var c = this._finalizers;
|
|
591
|
+
if (c) {
|
|
592
592
|
this._finalizers = null;
|
|
593
593
|
try {
|
|
594
|
-
for (var
|
|
595
|
-
var v =
|
|
594
|
+
for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
|
|
595
|
+
var v = p.value;
|
|
596
596
|
try {
|
|
597
|
-
|
|
598
|
-
} catch (
|
|
599
|
-
o = o ?? [],
|
|
597
|
+
nt(v);
|
|
598
|
+
} catch (m) {
|
|
599
|
+
o = o ?? [], m instanceof He ? o = X(X([], Re(o)), Re(m.errors)) : o.push(m);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
} catch (
|
|
603
|
-
n = { error:
|
|
602
|
+
} catch (m) {
|
|
603
|
+
n = { error: m };
|
|
604
604
|
} finally {
|
|
605
605
|
try {
|
|
606
|
-
|
|
606
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
607
607
|
} finally {
|
|
608
608
|
if (n)
|
|
609
609
|
throw n.error;
|
|
@@ -617,7 +617,7 @@ var ge = function() {
|
|
|
617
617
|
var r;
|
|
618
618
|
if (t && t !== this)
|
|
619
619
|
if (this.closed)
|
|
620
|
-
|
|
620
|
+
nt(t);
|
|
621
621
|
else {
|
|
622
622
|
if (t instanceof e) {
|
|
623
623
|
if (t.closed || t._hasParent(this))
|
|
@@ -634,56 +634,56 @@ var ge = function() {
|
|
|
634
634
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
635
635
|
}, e.prototype._removeParent = function(t) {
|
|
636
636
|
var r = this._parentage;
|
|
637
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
637
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
638
638
|
}, e.prototype.remove = function(t) {
|
|
639
639
|
var r = this._finalizers;
|
|
640
|
-
r &&
|
|
640
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
641
641
|
}, e.EMPTY = function() {
|
|
642
642
|
var t = new e();
|
|
643
643
|
return t.closed = !0, t;
|
|
644
644
|
}(), e;
|
|
645
|
-
}(),
|
|
646
|
-
function
|
|
645
|
+
}(), Ot = ge.EMPTY;
|
|
646
|
+
function It(e) {
|
|
647
647
|
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function nt(e) {
|
|
650
650
|
O(e) ? e() : e.unsubscribe();
|
|
651
651
|
}
|
|
652
|
-
var
|
|
652
|
+
var Nt = {
|
|
653
653
|
onUnhandledError: null,
|
|
654
654
|
onStoppedNotification: null,
|
|
655
655
|
Promise: void 0,
|
|
656
656
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
657
657
|
useDeprecatedNextContext: !1
|
|
658
|
-
},
|
|
658
|
+
}, Or = {
|
|
659
659
|
setTimeout: function(e, t) {
|
|
660
660
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
661
661
|
r[n - 2] = arguments[n];
|
|
662
|
-
return setTimeout.apply(void 0, X([e, t],
|
|
662
|
+
return setTimeout.apply(void 0, X([e, t], Re(r)));
|
|
663
663
|
},
|
|
664
664
|
clearTimeout: function(e) {
|
|
665
665
|
return clearTimeout(e);
|
|
666
666
|
},
|
|
667
667
|
delegate: void 0
|
|
668
668
|
};
|
|
669
|
-
function
|
|
670
|
-
|
|
669
|
+
function Ir(e) {
|
|
670
|
+
Or.setTimeout(function() {
|
|
671
671
|
throw e;
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function it() {
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function pe(e) {
|
|
677
677
|
e();
|
|
678
678
|
}
|
|
679
|
-
var
|
|
679
|
+
var Lt = function(e) {
|
|
680
680
|
N(t, e);
|
|
681
681
|
function t(r) {
|
|
682
682
|
var n = e.call(this) || this;
|
|
683
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
683
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Mr, n;
|
|
684
684
|
}
|
|
685
685
|
return t.create = function(r, n, i) {
|
|
686
|
-
return new
|
|
686
|
+
return new De(r, n, i);
|
|
687
687
|
}, t.prototype.next = function(r) {
|
|
688
688
|
this.isStopped || this._next(r);
|
|
689
689
|
}, t.prototype.error = function(r) {
|
|
@@ -707,7 +707,11 @@ var Ot = function(e) {
|
|
|
707
707
|
this.unsubscribe();
|
|
708
708
|
}
|
|
709
709
|
}, t;
|
|
710
|
-
}(ge),
|
|
710
|
+
}(ge), Nr = Function.prototype.bind;
|
|
711
|
+
function Se(e, t) {
|
|
712
|
+
return Nr.call(e, t);
|
|
713
|
+
}
|
|
714
|
+
var Lr = function() {
|
|
711
715
|
function e(t) {
|
|
712
716
|
this.partialObserver = t;
|
|
713
717
|
}
|
|
@@ -738,43 +742,55 @@ var Ot = function(e) {
|
|
|
738
742
|
le(r);
|
|
739
743
|
}
|
|
740
744
|
}, e;
|
|
741
|
-
}(),
|
|
745
|
+
}(), De = function(e) {
|
|
742
746
|
N(t, e);
|
|
743
747
|
function t(r, n, i) {
|
|
744
748
|
var o = e.call(this) || this, a;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
749
|
+
if (O(r) || !r)
|
|
750
|
+
a = {
|
|
751
|
+
next: r ?? void 0,
|
|
752
|
+
error: n ?? void 0,
|
|
753
|
+
complete: i ?? void 0
|
|
754
|
+
};
|
|
755
|
+
else {
|
|
756
|
+
var s;
|
|
757
|
+
o && Nt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
758
|
+
return o.unsubscribe();
|
|
759
|
+
}, a = {
|
|
760
|
+
next: r.next && Se(r.next, s),
|
|
761
|
+
error: r.error && Se(r.error, s),
|
|
762
|
+
complete: r.complete && Se(r.complete, s)
|
|
763
|
+
}) : a = r;
|
|
764
|
+
}
|
|
765
|
+
return o.destination = new Lr(a), o;
|
|
750
766
|
}
|
|
751
767
|
return t;
|
|
752
|
-
}(
|
|
768
|
+
}(Lt);
|
|
753
769
|
function le(e) {
|
|
754
|
-
|
|
770
|
+
Ir(e);
|
|
755
771
|
}
|
|
756
|
-
function
|
|
772
|
+
function Cr(e) {
|
|
757
773
|
throw e;
|
|
758
774
|
}
|
|
759
|
-
var
|
|
775
|
+
var Mr = {
|
|
760
776
|
closed: !0,
|
|
761
|
-
next:
|
|
762
|
-
error:
|
|
763
|
-
complete:
|
|
764
|
-
},
|
|
777
|
+
next: it,
|
|
778
|
+
error: Cr,
|
|
779
|
+
complete: it
|
|
780
|
+
}, $r = function() {
|
|
765
781
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
766
782
|
}();
|
|
767
|
-
function
|
|
783
|
+
function Rr(e) {
|
|
768
784
|
return e;
|
|
769
785
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.length === 0 ?
|
|
786
|
+
function Ur(e) {
|
|
787
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
772
788
|
return e.reduce(function(n, i) {
|
|
773
789
|
return i(n);
|
|
774
790
|
}, r);
|
|
775
791
|
};
|
|
776
792
|
}
|
|
777
|
-
var
|
|
793
|
+
var ot = function() {
|
|
778
794
|
function e(t) {
|
|
779
795
|
t && (this._subscribe = t);
|
|
780
796
|
}
|
|
@@ -782,8 +798,8 @@ var nt = function() {
|
|
|
782
798
|
var r = new e();
|
|
783
799
|
return r.source = this, r.operator = t, r;
|
|
784
800
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
785
|
-
var i = this, o =
|
|
786
|
-
return
|
|
801
|
+
var i = this, o = Gr(t) ? t : new De(t, r, n);
|
|
802
|
+
return pe(function() {
|
|
787
803
|
var a = i, s = a.operator, l = a.source;
|
|
788
804
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
789
805
|
}), o;
|
|
@@ -795,8 +811,8 @@ var nt = function() {
|
|
|
795
811
|
}
|
|
796
812
|
}, e.prototype.forEach = function(t, r) {
|
|
797
813
|
var n = this;
|
|
798
|
-
return r =
|
|
799
|
-
var a = new
|
|
814
|
+
return r = st(r), new r(function(i, o) {
|
|
815
|
+
var a = new De({
|
|
800
816
|
next: function(s) {
|
|
801
817
|
try {
|
|
802
818
|
t(s);
|
|
@@ -812,15 +828,15 @@ var nt = function() {
|
|
|
812
828
|
}, e.prototype._subscribe = function(t) {
|
|
813
829
|
var r;
|
|
814
830
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
815
|
-
}, e.prototype[
|
|
831
|
+
}, e.prototype[$r] = function() {
|
|
816
832
|
return this;
|
|
817
833
|
}, e.prototype.pipe = function() {
|
|
818
834
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
819
835
|
t[r] = arguments[r];
|
|
820
|
-
return
|
|
836
|
+
return Ur(t)(this);
|
|
821
837
|
}, e.prototype.toPromise = function(t) {
|
|
822
838
|
var r = this;
|
|
823
|
-
return t =
|
|
839
|
+
return t = st(t), new t(function(n, i) {
|
|
824
840
|
var o;
|
|
825
841
|
r.subscribe(function(a) {
|
|
826
842
|
return o = a;
|
|
@@ -834,40 +850,40 @@ var nt = function() {
|
|
|
834
850
|
return new e(t);
|
|
835
851
|
}, e;
|
|
836
852
|
}();
|
|
837
|
-
function
|
|
853
|
+
function st(e) {
|
|
838
854
|
var t;
|
|
839
|
-
return (t = e ??
|
|
855
|
+
return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
840
856
|
}
|
|
841
|
-
function
|
|
857
|
+
function Dr(e) {
|
|
842
858
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
843
859
|
}
|
|
844
|
-
function
|
|
845
|
-
return e && e instanceof
|
|
860
|
+
function Gr(e) {
|
|
861
|
+
return e && e instanceof Lt || Dr(e) && It(e);
|
|
846
862
|
}
|
|
847
|
-
var
|
|
863
|
+
var Fr = Pt(function(e) {
|
|
848
864
|
return function() {
|
|
849
865
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
850
866
|
};
|
|
851
|
-
}),
|
|
867
|
+
}), Ct = function(e) {
|
|
852
868
|
N(t, e);
|
|
853
869
|
function t() {
|
|
854
870
|
var r = e.call(this) || this;
|
|
855
871
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
856
872
|
}
|
|
857
873
|
return t.prototype.lift = function(r) {
|
|
858
|
-
var n = new
|
|
874
|
+
var n = new at(this, this);
|
|
859
875
|
return n.operator = r, n;
|
|
860
876
|
}, t.prototype._throwIfClosed = function() {
|
|
861
877
|
if (this.closed)
|
|
862
|
-
throw new
|
|
878
|
+
throw new Fr();
|
|
863
879
|
}, t.prototype.next = function(r) {
|
|
864
880
|
var n = this;
|
|
865
|
-
|
|
881
|
+
pe(function() {
|
|
866
882
|
var i, o;
|
|
867
883
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
868
884
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
869
885
|
try {
|
|
870
|
-
for (var a =
|
|
886
|
+
for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
871
887
|
var l = s.value;
|
|
872
888
|
l.next(r);
|
|
873
889
|
}
|
|
@@ -885,7 +901,7 @@ var Ur = Bt(function(e) {
|
|
|
885
901
|
});
|
|
886
902
|
}, t.prototype.error = function(r) {
|
|
887
903
|
var n = this;
|
|
888
|
-
|
|
904
|
+
pe(function() {
|
|
889
905
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
890
906
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
891
907
|
for (var i = n.observers; i.length; )
|
|
@@ -894,7 +910,7 @@ var Ur = Bt(function(e) {
|
|
|
894
910
|
});
|
|
895
911
|
}, t.prototype.complete = function() {
|
|
896
912
|
var r = this;
|
|
897
|
-
|
|
913
|
+
pe(function() {
|
|
898
914
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
899
915
|
r.isStopped = !0;
|
|
900
916
|
for (var n = r.observers; n.length; )
|
|
@@ -916,19 +932,19 @@ var Ur = Bt(function(e) {
|
|
|
916
932
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
917
933
|
}, t.prototype._innerSubscribe = function(r) {
|
|
918
934
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
919
|
-
return o || a ?
|
|
920
|
-
n.currentObservers = null,
|
|
935
|
+
return o || a ? Ot : (this.currentObservers = null, s.push(r), new ge(function() {
|
|
936
|
+
n.currentObservers = null, Ue(s, r);
|
|
921
937
|
}));
|
|
922
938
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
923
939
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
924
940
|
i ? r.error(o) : a && r.complete();
|
|
925
941
|
}, t.prototype.asObservable = function() {
|
|
926
|
-
var r = new
|
|
942
|
+
var r = new ot();
|
|
927
943
|
return r.source = this, r;
|
|
928
944
|
}, t.create = function(r, n) {
|
|
929
|
-
return new
|
|
945
|
+
return new at(r, n);
|
|
930
946
|
}, t;
|
|
931
|
-
}(
|
|
947
|
+
}(ot), at = function(e) {
|
|
932
948
|
N(t, e);
|
|
933
949
|
function t(r, n) {
|
|
934
950
|
var i = e.call(this) || this;
|
|
@@ -945,17 +961,17 @@ var Ur = Bt(function(e) {
|
|
|
945
961
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
946
962
|
}, t.prototype._subscribe = function(r) {
|
|
947
963
|
var n, i;
|
|
948
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
964
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
949
965
|
}, t;
|
|
950
|
-
}(
|
|
966
|
+
}(Ct), Mt = {
|
|
951
967
|
now: function() {
|
|
952
|
-
return (
|
|
968
|
+
return (Mt.delegate || Date).now();
|
|
953
969
|
},
|
|
954
970
|
delegate: void 0
|
|
955
|
-
},
|
|
971
|
+
}, jr = function(e) {
|
|
956
972
|
N(t, e);
|
|
957
973
|
function t(r, n, i) {
|
|
958
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
974
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
959
975
|
var o = e.call(this) || this;
|
|
960
976
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
961
977
|
}
|
|
@@ -975,15 +991,15 @@ var Ur = Bt(function(e) {
|
|
|
975
991
|
u && o.splice(0, u + 1);
|
|
976
992
|
}
|
|
977
993
|
}, t;
|
|
978
|
-
}(
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
const r = new
|
|
982
|
-
|
|
994
|
+
}(Ct);
|
|
995
|
+
const ut = [], ht = {}, kr = (e, t = 0) => {
|
|
996
|
+
if (ut.indexOf(e) == -1) {
|
|
997
|
+
const r = new jr(t);
|
|
998
|
+
ht[e] = r, ut.push(e);
|
|
983
999
|
}
|
|
984
|
-
return
|
|
1000
|
+
return ht[e];
|
|
985
1001
|
}, j = [];
|
|
986
|
-
function
|
|
1002
|
+
function Vr(e, t) {
|
|
987
1003
|
return {
|
|
988
1004
|
subscribe: ve(e, t).subscribe
|
|
989
1005
|
};
|
|
@@ -992,7 +1008,7 @@ function ve(e, t = w) {
|
|
|
992
1008
|
let r;
|
|
993
1009
|
const n = /* @__PURE__ */ new Set();
|
|
994
1010
|
function i(s) {
|
|
995
|
-
if (
|
|
1011
|
+
if (wt(e, s) && (e = s, r)) {
|
|
996
1012
|
const l = !j.length;
|
|
997
1013
|
for (const u of n)
|
|
998
1014
|
u[1](), j.push(u, e);
|
|
@@ -1019,96 +1035,96 @@ function J(e, t, r) {
|
|
|
1019
1035
|
if (!i.every(Boolean))
|
|
1020
1036
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1021
1037
|
const o = t.length < 2;
|
|
1022
|
-
return
|
|
1038
|
+
return Vr(r, (a, s) => {
|
|
1023
1039
|
let l = !1;
|
|
1024
1040
|
const u = [];
|
|
1025
|
-
let h = 0,
|
|
1026
|
-
const
|
|
1041
|
+
let h = 0, c = w;
|
|
1042
|
+
const f = () => {
|
|
1027
1043
|
if (h)
|
|
1028
1044
|
return;
|
|
1029
|
-
|
|
1045
|
+
c();
|
|
1030
1046
|
const v = t(n ? u[0] : u, a, s);
|
|
1031
|
-
o ? a(v) :
|
|
1032
|
-
},
|
|
1033
|
-
(v,
|
|
1047
|
+
o ? a(v) : c = Ze(v) ? v : w;
|
|
1048
|
+
}, p = i.map(
|
|
1049
|
+
(v, m) => Bt(
|
|
1034
1050
|
v,
|
|
1035
1051
|
(T) => {
|
|
1036
|
-
u[
|
|
1052
|
+
u[m] = T, h &= ~(1 << m), l && f();
|
|
1037
1053
|
},
|
|
1038
1054
|
() => {
|
|
1039
|
-
h |= 1 <<
|
|
1055
|
+
h |= 1 << m;
|
|
1040
1056
|
}
|
|
1041
1057
|
)
|
|
1042
1058
|
);
|
|
1043
|
-
return l = !0,
|
|
1044
|
-
se(
|
|
1059
|
+
return l = !0, f(), function() {
|
|
1060
|
+
se(p), c(), l = !1;
|
|
1045
1061
|
};
|
|
1046
1062
|
});
|
|
1047
1063
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1064
|
+
function Xr(e) {
|
|
1065
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1050
1066
|
}
|
|
1051
|
-
var
|
|
1052
|
-
return
|
|
1067
|
+
var Wr = function(t) {
|
|
1068
|
+
return zr(t) && !Zr(t);
|
|
1053
1069
|
};
|
|
1054
|
-
function
|
|
1070
|
+
function zr(e) {
|
|
1055
1071
|
return !!e && typeof e == "object";
|
|
1056
1072
|
}
|
|
1057
|
-
function
|
|
1073
|
+
function Zr(e) {
|
|
1058
1074
|
var t = Object.prototype.toString.call(e);
|
|
1059
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1075
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
1060
1076
|
}
|
|
1061
|
-
var
|
|
1062
|
-
function
|
|
1063
|
-
return e.$$typeof ===
|
|
1077
|
+
var Qr = typeof Symbol == "function" && Symbol.for, qr = Qr ? Symbol.for("react.element") : 60103;
|
|
1078
|
+
function Jr(e) {
|
|
1079
|
+
return e.$$typeof === qr;
|
|
1064
1080
|
}
|
|
1065
|
-
function
|
|
1081
|
+
function Yr(e) {
|
|
1066
1082
|
return Array.isArray(e) ? [] : {};
|
|
1067
1083
|
}
|
|
1068
1084
|
function ie(e, t) {
|
|
1069
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? W(
|
|
1085
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(Yr(e), e, t) : e;
|
|
1070
1086
|
}
|
|
1071
|
-
function
|
|
1087
|
+
function Kr(e, t, r) {
|
|
1072
1088
|
return e.concat(t).map(function(n) {
|
|
1073
1089
|
return ie(n, r);
|
|
1074
1090
|
});
|
|
1075
1091
|
}
|
|
1076
|
-
function
|
|
1092
|
+
function en(e, t) {
|
|
1077
1093
|
if (!t.customMerge)
|
|
1078
1094
|
return W;
|
|
1079
1095
|
var r = t.customMerge(e);
|
|
1080
1096
|
return typeof r == "function" ? r : W;
|
|
1081
1097
|
}
|
|
1082
|
-
function
|
|
1098
|
+
function tn(e) {
|
|
1083
1099
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1084
1100
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1085
1101
|
}) : [];
|
|
1086
1102
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return Object.keys(e).concat(
|
|
1103
|
+
function lt(e) {
|
|
1104
|
+
return Object.keys(e).concat(tn(e));
|
|
1089
1105
|
}
|
|
1090
|
-
function
|
|
1106
|
+
function $t(e, t) {
|
|
1091
1107
|
try {
|
|
1092
1108
|
return t in e;
|
|
1093
1109
|
} catch {
|
|
1094
1110
|
return !1;
|
|
1095
1111
|
}
|
|
1096
1112
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1113
|
+
function rn(e, t) {
|
|
1114
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1099
1115
|
}
|
|
1100
|
-
function
|
|
1116
|
+
function nn(e, t, r) {
|
|
1101
1117
|
var n = {};
|
|
1102
|
-
return r.isMergeableObject(e) &&
|
|
1118
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1103
1119
|
n[i] = ie(e[i], r);
|
|
1104
|
-
}),
|
|
1105
|
-
|
|
1120
|
+
}), lt(t).forEach(function(i) {
|
|
1121
|
+
rn(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1106
1122
|
}), n;
|
|
1107
1123
|
}
|
|
1108
1124
|
function W(e, t, r) {
|
|
1109
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1125
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1110
1126
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1111
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1127
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ie(t, r);
|
|
1112
1128
|
}
|
|
1113
1129
|
W.all = function(t, r) {
|
|
1114
1130
|
if (!Array.isArray(t))
|
|
@@ -1117,64 +1133,62 @@ W.all = function(t, r) {
|
|
|
1117
1133
|
return W(n, i, r);
|
|
1118
1134
|
}, {});
|
|
1119
1135
|
};
|
|
1120
|
-
var
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1123
|
-
var r = t && t.cache ? t.cache :
|
|
1136
|
+
var on = W, sn = on;
|
|
1137
|
+
const an = /* @__PURE__ */ Xr(sn);
|
|
1138
|
+
function we(e, t) {
|
|
1139
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1124
1140
|
return i(e, {
|
|
1125
1141
|
cache: r,
|
|
1126
1142
|
serializer: n
|
|
1127
1143
|
});
|
|
1128
1144
|
}
|
|
1129
|
-
function
|
|
1145
|
+
function un(e) {
|
|
1130
1146
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1131
1147
|
}
|
|
1132
|
-
function
|
|
1133
|
-
var i =
|
|
1148
|
+
function Rt(e, t, r, n) {
|
|
1149
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1134
1150
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1135
1151
|
}
|
|
1136
|
-
function
|
|
1152
|
+
function Ut(e, t, r) {
|
|
1137
1153
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1138
1154
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1139
1155
|
}
|
|
1140
|
-
function
|
|
1156
|
+
function qe(e, t, r, n, i) {
|
|
1141
1157
|
return r.bind(t, e, n, i);
|
|
1142
1158
|
}
|
|
1143
|
-
function
|
|
1144
|
-
var r = e.length === 1 ?
|
|
1145
|
-
return
|
|
1159
|
+
function hn(e, t) {
|
|
1160
|
+
var r = e.length === 1 ? Rt : Ut;
|
|
1161
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
1146
1162
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1163
|
+
function ln(e, t) {
|
|
1164
|
+
return qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1166
|
+
function cn(e, t) {
|
|
1167
|
+
return qe(e, this, Rt, t.cache.create(), t.serializer);
|
|
1152
1168
|
}
|
|
1153
|
-
var
|
|
1169
|
+
var fn = function() {
|
|
1154
1170
|
return JSON.stringify(arguments);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
}()
|
|
1167
|
-
), fn = {
|
|
1171
|
+
};
|
|
1172
|
+
function Je() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
Je.prototype.get = function(e) {
|
|
1176
|
+
return this.cache[e];
|
|
1177
|
+
};
|
|
1178
|
+
Je.prototype.set = function(e, t) {
|
|
1179
|
+
this.cache[e] = t;
|
|
1180
|
+
};
|
|
1181
|
+
var pn = {
|
|
1168
1182
|
create: function() {
|
|
1169
|
-
return new
|
|
1183
|
+
return new Je();
|
|
1170
1184
|
}
|
|
1171
|
-
},
|
|
1172
|
-
variadic:
|
|
1173
|
-
monadic:
|
|
1174
|
-
},
|
|
1185
|
+
}, Be = {
|
|
1186
|
+
variadic: ln,
|
|
1187
|
+
monadic: cn
|
|
1188
|
+
}, d;
|
|
1175
1189
|
(function(e) {
|
|
1176
1190
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1177
|
-
})(
|
|
1191
|
+
})(d || (d = {}));
|
|
1178
1192
|
var _;
|
|
1179
1193
|
(function(e) {
|
|
1180
1194
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1183,43 +1197,43 @@ var z;
|
|
|
1183
1197
|
(function(e) {
|
|
1184
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1185
1199
|
})(z || (z = {}));
|
|
1186
|
-
function
|
|
1200
|
+
function ct(e) {
|
|
1187
1201
|
return e.type === _.literal;
|
|
1188
1202
|
}
|
|
1189
|
-
function
|
|
1203
|
+
function mn(e) {
|
|
1190
1204
|
return e.type === _.argument;
|
|
1191
1205
|
}
|
|
1192
|
-
function
|
|
1206
|
+
function Dt(e) {
|
|
1193
1207
|
return e.type === _.number;
|
|
1194
1208
|
}
|
|
1195
|
-
function
|
|
1209
|
+
function Gt(e) {
|
|
1196
1210
|
return e.type === _.date;
|
|
1197
1211
|
}
|
|
1198
|
-
function
|
|
1212
|
+
function Ft(e) {
|
|
1199
1213
|
return e.type === _.time;
|
|
1200
1214
|
}
|
|
1201
|
-
function
|
|
1215
|
+
function jt(e) {
|
|
1202
1216
|
return e.type === _.select;
|
|
1203
1217
|
}
|
|
1204
|
-
function
|
|
1218
|
+
function kt(e) {
|
|
1205
1219
|
return e.type === _.plural;
|
|
1206
1220
|
}
|
|
1207
1221
|
function dn(e) {
|
|
1208
1222
|
return e.type === _.pound;
|
|
1209
1223
|
}
|
|
1210
|
-
function
|
|
1224
|
+
function Vt(e) {
|
|
1211
1225
|
return e.type === _.tag;
|
|
1212
1226
|
}
|
|
1213
|
-
function
|
|
1227
|
+
function Xt(e) {
|
|
1214
1228
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1215
1229
|
}
|
|
1216
|
-
function
|
|
1230
|
+
function Ge(e) {
|
|
1217
1231
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1218
1232
|
}
|
|
1219
|
-
var
|
|
1220
|
-
function
|
|
1233
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1234
|
+
function yn(e) {
|
|
1221
1235
|
var t = {};
|
|
1222
|
-
return e.replace(
|
|
1236
|
+
return e.replace(bn, function(r) {
|
|
1223
1237
|
var n = r.length;
|
|
1224
1238
|
switch (r[0]) {
|
|
1225
1239
|
case "G":
|
|
@@ -1308,36 +1322,36 @@ function mn(e) {
|
|
|
1308
1322
|
return "";
|
|
1309
1323
|
}), t;
|
|
1310
1324
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1325
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function vn(e) {
|
|
1313
1327
|
if (e.length === 0)
|
|
1314
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1315
|
-
for (var t = e.split(
|
|
1316
|
-
return
|
|
1329
|
+
for (var t = e.split(gn).filter(function(f) {
|
|
1330
|
+
return f.length > 0;
|
|
1317
1331
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1318
1332
|
var o = i[n], a = o.split("/");
|
|
1319
1333
|
if (a.length === 0)
|
|
1320
1334
|
throw new Error("Invalid number skeleton");
|
|
1321
1335
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1322
|
-
var
|
|
1323
|
-
if (
|
|
1336
|
+
var c = h[u];
|
|
1337
|
+
if (c.length === 0)
|
|
1324
1338
|
throw new Error("Invalid number skeleton");
|
|
1325
1339
|
}
|
|
1326
1340
|
r.push({ stem: s, options: l });
|
|
1327
1341
|
}
|
|
1328
1342
|
return r;
|
|
1329
1343
|
}
|
|
1330
|
-
function
|
|
1344
|
+
function _n(e) {
|
|
1331
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1332
1346
|
}
|
|
1333
|
-
var
|
|
1334
|
-
function
|
|
1347
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1348
|
+
function pt(e) {
|
|
1335
1349
|
var t = {};
|
|
1336
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1337
1351
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1338
1352
|
}), t;
|
|
1339
1353
|
}
|
|
1340
|
-
function
|
|
1354
|
+
function Qt(e) {
|
|
1341
1355
|
switch (e) {
|
|
1342
1356
|
case "sign-auto":
|
|
1343
1357
|
return {
|
|
@@ -1377,7 +1391,7 @@ function Wt(e) {
|
|
|
1377
1391
|
};
|
|
1378
1392
|
}
|
|
1379
1393
|
}
|
|
1380
|
-
function
|
|
1394
|
+
function xn(e) {
|
|
1381
1395
|
var t;
|
|
1382
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1383
1397
|
notation: "engineering"
|
|
@@ -1385,17 +1399,17 @@ function _n(e) {
|
|
|
1385
1399
|
notation: "scientific"
|
|
1386
1400
|
}, e = e.slice(1)), t) {
|
|
1387
1401
|
var r = e.slice(0, 2);
|
|
1388
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1389
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1390
1404
|
t.minimumIntegerDigits = e.length;
|
|
1391
1405
|
}
|
|
1392
1406
|
return t;
|
|
1393
1407
|
}
|
|
1394
|
-
function
|
|
1395
|
-
var t = {}, r =
|
|
1408
|
+
function mt(e) {
|
|
1409
|
+
var t = {}, r = Qt(e);
|
|
1396
1410
|
return r || t;
|
|
1397
1411
|
}
|
|
1398
|
-
function
|
|
1412
|
+
function Tn(e) {
|
|
1399
1413
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1400
1414
|
var i = n[r];
|
|
1401
1415
|
switch (i.stem) {
|
|
@@ -1419,7 +1433,7 @@ function En(e) {
|
|
|
1419
1433
|
continue;
|
|
1420
1434
|
case "measure-unit":
|
|
1421
1435
|
case "unit":
|
|
1422
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1423
1437
|
continue;
|
|
1424
1438
|
case "compact-short":
|
|
1425
1439
|
case "K":
|
|
@@ -1431,12 +1445,12 @@ function En(e) {
|
|
|
1431
1445
|
continue;
|
|
1432
1446
|
case "scientific":
|
|
1433
1447
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1434
|
-
return y(y({}, l),
|
|
1448
|
+
return y(y({}, l), mt(u));
|
|
1435
1449
|
}, {}));
|
|
1436
1450
|
continue;
|
|
1437
1451
|
case "engineering":
|
|
1438
1452
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1439
|
-
return y(y({}, l),
|
|
1453
|
+
return y(y({}, l), mt(u));
|
|
1440
1454
|
}, {}));
|
|
1441
1455
|
continue;
|
|
1442
1456
|
case "notation-simple":
|
|
@@ -1481,45 +1495,45 @@ function En(e) {
|
|
|
1481
1495
|
case "integer-width":
|
|
1482
1496
|
if (i.options.length > 1)
|
|
1483
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1484
|
-
i.options[0].replace(
|
|
1498
|
+
i.options[0].replace(En, function(l, u, h, c, f, p) {
|
|
1485
1499
|
if (u)
|
|
1486
1500
|
t.minimumIntegerDigits = h.length;
|
|
1487
1501
|
else {
|
|
1488
|
-
if (
|
|
1502
|
+
if (c && f)
|
|
1489
1503
|
throw new Error("We currently do not support maximum integer digits");
|
|
1490
|
-
if (
|
|
1504
|
+
if (p)
|
|
1491
1505
|
throw new Error("We currently do not support exact integer digits");
|
|
1492
1506
|
}
|
|
1493
1507
|
return "";
|
|
1494
1508
|
});
|
|
1495
1509
|
continue;
|
|
1496
1510
|
}
|
|
1497
|
-
if (
|
|
1511
|
+
if (Zt.test(i.stem)) {
|
|
1498
1512
|
t.minimumIntegerDigits = i.stem.length;
|
|
1499
1513
|
continue;
|
|
1500
1514
|
}
|
|
1501
|
-
if (
|
|
1515
|
+
if (ft.test(i.stem)) {
|
|
1502
1516
|
if (i.options.length > 1)
|
|
1503
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1504
|
-
i.stem.replace(
|
|
1505
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1518
|
+
i.stem.replace(ft, function(l, u, h, c, f, p) {
|
|
1519
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1506
1520
|
});
|
|
1507
1521
|
var o = i.options[0];
|
|
1508
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1522
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), pt(o)));
|
|
1509
1523
|
continue;
|
|
1510
1524
|
}
|
|
1511
|
-
if (
|
|
1512
|
-
t = y(y({}, t),
|
|
1525
|
+
if (zt.test(i.stem)) {
|
|
1526
|
+
t = y(y({}, t), pt(i.stem));
|
|
1513
1527
|
continue;
|
|
1514
1528
|
}
|
|
1515
|
-
var a =
|
|
1529
|
+
var a = Qt(i.stem);
|
|
1516
1530
|
a && (t = y(y({}, t), a));
|
|
1517
|
-
var s =
|
|
1531
|
+
var s = xn(i.stem);
|
|
1518
1532
|
s && (t = y(y({}, t), s));
|
|
1519
1533
|
}
|
|
1520
1534
|
return t;
|
|
1521
1535
|
}
|
|
1522
|
-
var
|
|
1536
|
+
var ce = {
|
|
1523
1537
|
"001": [
|
|
1524
1538
|
"H",
|
|
1525
1539
|
"h"
|
|
@@ -2934,13 +2948,13 @@ var fe = {
|
|
|
2934
2948
|
"h"
|
|
2935
2949
|
]
|
|
2936
2950
|
};
|
|
2937
|
-
function
|
|
2951
|
+
function Hn(e, t) {
|
|
2938
2952
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2939
2953
|
var i = e.charAt(n);
|
|
2940
2954
|
if (i === "j") {
|
|
2941
2955
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2942
2956
|
o++, n++;
|
|
2943
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2957
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Sn(t);
|
|
2944
2958
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2945
2959
|
r += l;
|
|
2946
2960
|
for (; a-- > 0; )
|
|
@@ -2950,7 +2964,7 @@ function xn(e, t) {
|
|
|
2950
2964
|
}
|
|
2951
2965
|
return r;
|
|
2952
2966
|
}
|
|
2953
|
-
function
|
|
2967
|
+
function Sn(e) {
|
|
2954
2968
|
var t = e.hourCycle;
|
|
2955
2969
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2956
2970
|
e.hourCycles && // @ts-ignore
|
|
@@ -2969,23 +2983,23 @@ function Tn(e) {
|
|
|
2969
2983
|
}
|
|
2970
2984
|
var r = e.language, n;
|
|
2971
2985
|
r !== "root" && (n = e.maximize().region);
|
|
2972
|
-
var i =
|
|
2986
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2973
2987
|
return i[0];
|
|
2974
2988
|
}
|
|
2975
|
-
var
|
|
2989
|
+
var Ae, wn = new RegExp("^".concat(Wt.source, "*")), Bn = new RegExp("".concat(Wt.source, "*$"));
|
|
2976
2990
|
function b(e, t) {
|
|
2977
2991
|
return { start: e, end: t };
|
|
2978
2992
|
}
|
|
2979
|
-
var
|
|
2993
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Cn = !!Number.isSafeInteger, Mn = Cn ? Number.isSafeInteger : function(e) {
|
|
2980
2994
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2981
|
-
},
|
|
2995
|
+
}, Fe = !0;
|
|
2982
2996
|
try {
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2997
|
+
var $n = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2998
|
+
Fe = ((Ae = $n.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2985
2999
|
} catch {
|
|
2986
|
-
|
|
3000
|
+
Fe = !1;
|
|
2987
3001
|
}
|
|
2988
|
-
var dt =
|
|
3002
|
+
var dt = An ? (
|
|
2989
3003
|
// Native
|
|
2990
3004
|
function(t, r, n) {
|
|
2991
3005
|
return t.startsWith(r, n);
|
|
@@ -2995,7 +3009,7 @@ var dt = wn ? (
|
|
|
2995
3009
|
function(t, r, n) {
|
|
2996
3010
|
return t.slice(n, n + r.length) === r;
|
|
2997
3011
|
}
|
|
2998
|
-
),
|
|
3012
|
+
), je = Pn ? String.fromCodePoint : (
|
|
2999
3013
|
// IE11
|
|
3000
3014
|
function() {
|
|
3001
3015
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3007,9 +3021,9 @@ var dt = wn ? (
|
|
|
3007
3021
|
}
|
|
3008
3022
|
return n;
|
|
3009
3023
|
}
|
|
3010
|
-
),
|
|
3024
|
+
), bt = (
|
|
3011
3025
|
// native
|
|
3012
|
-
|
|
3026
|
+
On ? Object.fromEntries : (
|
|
3013
3027
|
// Ponyfill
|
|
3014
3028
|
function(t) {
|
|
3015
3029
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3019,7 +3033,7 @@ var dt = wn ? (
|
|
|
3019
3033
|
return r;
|
|
3020
3034
|
}
|
|
3021
3035
|
)
|
|
3022
|
-
),
|
|
3036
|
+
), qt = In ? (
|
|
3023
3037
|
// Native
|
|
3024
3038
|
function(t, r) {
|
|
3025
3039
|
return t.codePointAt(r);
|
|
@@ -3033,7 +3047,7 @@ var dt = wn ? (
|
|
|
3033
3047
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3034
3048
|
}
|
|
3035
3049
|
}
|
|
3036
|
-
),
|
|
3050
|
+
), Rn = Nn ? (
|
|
3037
3051
|
// Native
|
|
3038
3052
|
function(t) {
|
|
3039
3053
|
return t.trimStart();
|
|
@@ -3041,9 +3055,9 @@ var dt = wn ? (
|
|
|
3041
3055
|
) : (
|
|
3042
3056
|
// Ponyfill
|
|
3043
3057
|
function(t) {
|
|
3044
|
-
return t.replace(
|
|
3058
|
+
return t.replace(wn, "");
|
|
3045
3059
|
}
|
|
3046
|
-
),
|
|
3060
|
+
), Un = Ln ? (
|
|
3047
3061
|
// Native
|
|
3048
3062
|
function(t) {
|
|
3049
3063
|
return t.trimEnd();
|
|
@@ -3051,32 +3065,32 @@ var dt = wn ? (
|
|
|
3051
3065
|
) : (
|
|
3052
3066
|
// Ponyfill
|
|
3053
3067
|
function(t) {
|
|
3054
|
-
return t.replace(
|
|
3068
|
+
return t.replace(Bn, "");
|
|
3055
3069
|
}
|
|
3056
3070
|
);
|
|
3057
|
-
function
|
|
3071
|
+
function Jt(e, t) {
|
|
3058
3072
|
return new RegExp(e, t);
|
|
3059
3073
|
}
|
|
3060
|
-
var
|
|
3061
|
-
if (
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3074
|
+
var ke;
|
|
3075
|
+
if (Fe) {
|
|
3076
|
+
var yt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
ke = function(t, r) {
|
|
3064
3078
|
var n;
|
|
3065
|
-
|
|
3066
|
-
var i =
|
|
3079
|
+
yt.lastIndex = r;
|
|
3080
|
+
var i = yt.exec(t);
|
|
3067
3081
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3068
3082
|
};
|
|
3069
3083
|
} else
|
|
3070
|
-
|
|
3084
|
+
ke = function(t, r) {
|
|
3071
3085
|
for (var n = []; ; ) {
|
|
3072
|
-
var i =
|
|
3073
|
-
if (i === void 0 ||
|
|
3086
|
+
var i = qt(t, r);
|
|
3087
|
+
if (i === void 0 || Yt(i) || jn(i))
|
|
3074
3088
|
break;
|
|
3075
3089
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3076
3090
|
}
|
|
3077
|
-
return
|
|
3091
|
+
return je.apply(void 0, n);
|
|
3078
3092
|
};
|
|
3079
|
-
var
|
|
3093
|
+
var Dn = (
|
|
3080
3094
|
/** @class */
|
|
3081
3095
|
function() {
|
|
3082
3096
|
function e(t, r) {
|
|
@@ -3106,8 +3120,8 @@ var Rn = (
|
|
|
3106
3120
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3107
3121
|
if (n)
|
|
3108
3122
|
break;
|
|
3109
|
-
return this.error(
|
|
3110
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3123
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3124
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3111
3125
|
var a = this.parseTag(t, r);
|
|
3112
3126
|
if (a.err)
|
|
3113
3127
|
return a;
|
|
@@ -3140,10 +3154,10 @@ var Rn = (
|
|
|
3140
3154
|
return o;
|
|
3141
3155
|
var a = o.val, s = this.clonePosition();
|
|
3142
3156
|
if (this.bumpIf("</")) {
|
|
3143
|
-
if (this.isEOF() || !
|
|
3144
|
-
return this.error(
|
|
3157
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3158
|
+
return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
|
|
3145
3159
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3146
|
-
return i !== u ? this.error(
|
|
3160
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3147
3161
|
val: {
|
|
3148
3162
|
type: _.tag,
|
|
3149
3163
|
value: i,
|
|
@@ -3151,14 +3165,14 @@ var Rn = (
|
|
|
3151
3165
|
location: b(n, this.clonePosition())
|
|
3152
3166
|
},
|
|
3153
3167
|
err: null
|
|
3154
|
-
} : this.error(
|
|
3168
|
+
} : this.error(d.INVALID_TAG, b(s, this.clonePosition())));
|
|
3155
3169
|
} else
|
|
3156
|
-
return this.error(
|
|
3170
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3157
3171
|
} else
|
|
3158
|
-
return this.error(
|
|
3172
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3159
3173
|
}, e.prototype.parseTagName = function() {
|
|
3160
3174
|
var t = this.offset();
|
|
3161
|
-
for (this.bump(); !this.isEOF() &&
|
|
3175
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3162
3176
|
this.bump();
|
|
3163
3177
|
return this.message.slice(t, this.offset());
|
|
3164
3178
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3187,7 +3201,7 @@ var Rn = (
|
|
|
3187
3201
|
};
|
|
3188
3202
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3189
3203
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3190
|
-
!
|
|
3204
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3191
3205
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3192
3206
|
if (this.isEOF() || this.char() !== 39)
|
|
3193
3207
|
return null;
|
|
@@ -3221,23 +3235,23 @@ var Rn = (
|
|
|
3221
3235
|
r.push(n);
|
|
3222
3236
|
this.bump();
|
|
3223
3237
|
}
|
|
3224
|
-
return
|
|
3238
|
+
return je.apply(void 0, r);
|
|
3225
3239
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3226
3240
|
if (this.isEOF())
|
|
3227
3241
|
return null;
|
|
3228
3242
|
var n = this.char();
|
|
3229
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3243
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3230
3244
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3231
3245
|
var n = this.clonePosition();
|
|
3232
3246
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3233
|
-
return this.error(
|
|
3247
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3234
3248
|
if (this.char() === 125)
|
|
3235
|
-
return this.bump(), this.error(
|
|
3249
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3236
3250
|
var i = this.parseIdentifierIfPossible().value;
|
|
3237
3251
|
if (!i)
|
|
3238
|
-
return this.error(
|
|
3252
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3239
3253
|
if (this.bumpSpace(), this.isEOF())
|
|
3240
|
-
return this.error(
|
|
3254
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3241
3255
|
switch (this.char()) {
|
|
3242
3256
|
case 125:
|
|
3243
3257
|
return this.bump(), {
|
|
@@ -3250,12 +3264,12 @@ var Rn = (
|
|
|
3250
3264
|
err: null
|
|
3251
3265
|
};
|
|
3252
3266
|
case 44:
|
|
3253
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3267
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3254
3268
|
default:
|
|
3255
|
-
return this.error(
|
|
3269
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3256
3270
|
}
|
|
3257
3271
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3258
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3272
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3259
3273
|
this.bumpTo(i);
|
|
3260
3274
|
var o = this.clonePosition(), a = b(t, o);
|
|
3261
3275
|
return { value: n, location: a };
|
|
@@ -3263,7 +3277,7 @@ var Rn = (
|
|
|
3263
3277
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3264
3278
|
switch (s) {
|
|
3265
3279
|
case "":
|
|
3266
|
-
return this.error(
|
|
3280
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
3267
3281
|
case "number":
|
|
3268
3282
|
case "date":
|
|
3269
3283
|
case "time": {
|
|
@@ -3271,40 +3285,40 @@ var Rn = (
|
|
|
3271
3285
|
var u = null;
|
|
3272
3286
|
if (this.bumpIf(",")) {
|
|
3273
3287
|
this.bumpSpace();
|
|
3274
|
-
var h = this.clonePosition(),
|
|
3275
|
-
if (
|
|
3276
|
-
return
|
|
3277
|
-
var
|
|
3278
|
-
if (
|
|
3279
|
-
return this.error(
|
|
3280
|
-
var
|
|
3281
|
-
u = { style:
|
|
3288
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3289
|
+
if (c.err)
|
|
3290
|
+
return c;
|
|
3291
|
+
var f = Un(c.val);
|
|
3292
|
+
if (f.length === 0)
|
|
3293
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3294
|
+
var p = b(h, this.clonePosition());
|
|
3295
|
+
u = { style: f, styleLocation: p };
|
|
3282
3296
|
}
|
|
3283
3297
|
var v = this.tryParseArgumentClose(i);
|
|
3284
3298
|
if (v.err)
|
|
3285
3299
|
return v;
|
|
3286
|
-
var
|
|
3300
|
+
var m = b(i, this.clonePosition());
|
|
3287
3301
|
if (u && dt(u?.style, "::", 0)) {
|
|
3288
|
-
var T =
|
|
3302
|
+
var T = Rn(u.style.slice(2));
|
|
3289
3303
|
if (s === "number") {
|
|
3290
|
-
var
|
|
3291
|
-
return
|
|
3292
|
-
val: { type: _.number, value: n, location:
|
|
3304
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3305
|
+
return c.err ? c : {
|
|
3306
|
+
val: { type: _.number, value: n, location: m, style: c.val },
|
|
3293
3307
|
err: null
|
|
3294
3308
|
};
|
|
3295
3309
|
} else {
|
|
3296
3310
|
if (T.length === 0)
|
|
3297
|
-
return this.error(
|
|
3311
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3298
3312
|
var $ = T;
|
|
3299
|
-
this.locale && ($ =
|
|
3300
|
-
var
|
|
3313
|
+
this.locale && ($ = Hn(T, this.locale));
|
|
3314
|
+
var f = {
|
|
3301
3315
|
type: z.dateTime,
|
|
3302
3316
|
pattern: $,
|
|
3303
3317
|
location: u.styleLocation,
|
|
3304
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
+
parsedOptions: this.shouldParseSkeletons ? yn($) : {}
|
|
3305
3319
|
}, A = s === "date" ? _.date : _.time;
|
|
3306
3320
|
return {
|
|
3307
|
-
val: { type: A, value: n, location:
|
|
3321
|
+
val: { type: A, value: n, location: m, style: f },
|
|
3308
3322
|
err: null
|
|
3309
3323
|
};
|
|
3310
3324
|
}
|
|
@@ -3313,7 +3327,7 @@ var Rn = (
|
|
|
3313
3327
|
val: {
|
|
3314
3328
|
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3315
3329
|
value: n,
|
|
3316
|
-
location:
|
|
3330
|
+
location: m,
|
|
3317
3331
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3318
3332
|
},
|
|
3319
3333
|
err: null
|
|
@@ -3324,17 +3338,17 @@ var Rn = (
|
|
|
3324
3338
|
case "select": {
|
|
3325
3339
|
var S = this.clonePosition();
|
|
3326
3340
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3327
|
-
return this.error(
|
|
3341
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
|
|
3328
3342
|
this.bumpSpace();
|
|
3329
3343
|
var R = this.parseIdentifierIfPossible(), P = 0;
|
|
3330
3344
|
if (s !== "select" && R.value === "offset") {
|
|
3331
3345
|
if (!this.bumpIf(":"))
|
|
3332
|
-
return this.error(
|
|
3346
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3333
3347
|
this.bumpSpace();
|
|
3334
|
-
var
|
|
3335
|
-
if (
|
|
3336
|
-
return
|
|
3337
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P =
|
|
3348
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3349
|
+
if (c.err)
|
|
3350
|
+
return c;
|
|
3351
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
|
|
3338
3352
|
}
|
|
3339
3353
|
var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
|
3340
3354
|
if (D.err)
|
|
@@ -3347,7 +3361,7 @@ var Rn = (
|
|
|
3347
3361
|
val: {
|
|
3348
3362
|
type: _.select,
|
|
3349
3363
|
value: n,
|
|
3350
|
-
options:
|
|
3364
|
+
options: bt(D.val),
|
|
3351
3365
|
location: g
|
|
3352
3366
|
},
|
|
3353
3367
|
err: null
|
|
@@ -3355,7 +3369,7 @@ var Rn = (
|
|
|
3355
3369
|
val: {
|
|
3356
3370
|
type: _.plural,
|
|
3357
3371
|
value: n,
|
|
3358
|
-
options:
|
|
3372
|
+
options: bt(D.val),
|
|
3359
3373
|
offset: P,
|
|
3360
3374
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3361
3375
|
location: g
|
|
@@ -3364,10 +3378,10 @@ var Rn = (
|
|
|
3364
3378
|
};
|
|
3365
3379
|
}
|
|
3366
3380
|
default:
|
|
3367
|
-
return this.error(
|
|
3381
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
3368
3382
|
}
|
|
3369
3383
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3370
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3384
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3371
3385
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3372
3386
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3373
3387
|
var n = this.char();
|
|
@@ -3376,7 +3390,7 @@ var Rn = (
|
|
|
3376
3390
|
this.bump();
|
|
3377
3391
|
var i = this.clonePosition();
|
|
3378
3392
|
if (!this.bumpUntil("'"))
|
|
3379
|
-
return this.error(
|
|
3393
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3380
3394
|
this.bump();
|
|
3381
3395
|
break;
|
|
3382
3396
|
}
|
|
@@ -3406,52 +3420,52 @@ var Rn = (
|
|
|
3406
3420
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3407
3421
|
var n = [];
|
|
3408
3422
|
try {
|
|
3409
|
-
n =
|
|
3423
|
+
n = vn(t);
|
|
3410
3424
|
} catch {
|
|
3411
|
-
return this.error(
|
|
3425
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3412
3426
|
}
|
|
3413
3427
|
return {
|
|
3414
3428
|
val: {
|
|
3415
3429
|
type: z.number,
|
|
3416
3430
|
tokens: n,
|
|
3417
3431
|
location: r,
|
|
3418
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3432
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3419
3433
|
},
|
|
3420
3434
|
err: null
|
|
3421
3435
|
};
|
|
3422
3436
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3423
3437
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3424
3438
|
if (u.length === 0) {
|
|
3425
|
-
var
|
|
3439
|
+
var c = this.clonePosition();
|
|
3426
3440
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3427
|
-
var
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3430
|
-
h = b(
|
|
3441
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3442
|
+
if (f.err)
|
|
3443
|
+
return f;
|
|
3444
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3431
3445
|
} else
|
|
3432
3446
|
break;
|
|
3433
3447
|
}
|
|
3434
3448
|
if (l.has(u))
|
|
3435
|
-
return this.error(r === "select" ?
|
|
3449
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3436
3450
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3437
|
-
var
|
|
3451
|
+
var p = this.clonePosition();
|
|
3438
3452
|
if (!this.bumpIf("{"))
|
|
3439
|
-
return this.error(r === "select" ?
|
|
3453
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3440
3454
|
var v = this.parseMessage(t + 1, r, n);
|
|
3441
3455
|
if (v.err)
|
|
3442
3456
|
return v;
|
|
3443
|
-
var
|
|
3444
|
-
if (
|
|
3445
|
-
return
|
|
3457
|
+
var m = this.tryParseArgumentClose(p);
|
|
3458
|
+
if (m.err)
|
|
3459
|
+
return m;
|
|
3446
3460
|
s.push([
|
|
3447
3461
|
u,
|
|
3448
3462
|
{
|
|
3449
3463
|
value: v.val,
|
|
3450
|
-
location: b(
|
|
3464
|
+
location: b(p, this.clonePosition())
|
|
3451
3465
|
}
|
|
3452
3466
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3453
3467
|
}
|
|
3454
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3468
|
+
return s.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3455
3469
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3456
3470
|
var n = 1, i = this.clonePosition();
|
|
3457
3471
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3463,7 +3477,7 @@ var Rn = (
|
|
|
3463
3477
|
break;
|
|
3464
3478
|
}
|
|
3465
3479
|
var l = b(i, this.clonePosition());
|
|
3466
|
-
return o ? (a *= n,
|
|
3480
|
+
return o ? (a *= n, Mn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3467
3481
|
}, e.prototype.offset = function() {
|
|
3468
3482
|
return this.position.offset;
|
|
3469
3483
|
}, e.prototype.isEOF = function() {
|
|
@@ -3478,7 +3492,7 @@ var Rn = (
|
|
|
3478
3492
|
var t = this.position.offset;
|
|
3479
3493
|
if (t >= this.message.length)
|
|
3480
3494
|
throw Error("out of bound");
|
|
3481
|
-
var r =
|
|
3495
|
+
var r = qt(this.message, t);
|
|
3482
3496
|
if (r === void 0)
|
|
3483
3497
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3484
3498
|
return r;
|
|
@@ -3519,7 +3533,7 @@ var Rn = (
|
|
|
3519
3533
|
break;
|
|
3520
3534
|
}
|
|
3521
3535
|
}, e.prototype.bumpSpace = function() {
|
|
3522
|
-
for (; !this.isEOF() &&
|
|
3536
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3523
3537
|
this.bump();
|
|
3524
3538
|
}, e.prototype.peek = function() {
|
|
3525
3539
|
if (this.isEOF())
|
|
@@ -3529,38 +3543,38 @@ var Rn = (
|
|
|
3529
3543
|
}, e;
|
|
3530
3544
|
}()
|
|
3531
3545
|
);
|
|
3532
|
-
function
|
|
3546
|
+
function Ve(e) {
|
|
3533
3547
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3534
3548
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3549
|
+
function Gn(e) {
|
|
3550
|
+
return Ve(e) || e === 47;
|
|
3537
3551
|
}
|
|
3538
|
-
function
|
|
3552
|
+
function Fn(e) {
|
|
3539
3553
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3540
3554
|
}
|
|
3541
|
-
function
|
|
3555
|
+
function Yt(e) {
|
|
3542
3556
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3543
3557
|
}
|
|
3544
|
-
function
|
|
3558
|
+
function jn(e) {
|
|
3545
3559
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3546
3560
|
}
|
|
3547
|
-
function
|
|
3561
|
+
function Xe(e) {
|
|
3548
3562
|
e.forEach(function(t) {
|
|
3549
|
-
if (delete t.location,
|
|
3563
|
+
if (delete t.location, jt(t) || kt(t))
|
|
3550
3564
|
for (var r in t.options)
|
|
3551
|
-
delete t.options[r].location,
|
|
3565
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3552
3566
|
else
|
|
3553
|
-
|
|
3567
|
+
Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && Ge(t.style) ? delete t.style.location : Vt(t) && Xe(t.children);
|
|
3554
3568
|
});
|
|
3555
3569
|
}
|
|
3556
|
-
function
|
|
3570
|
+
function kn(e, t) {
|
|
3557
3571
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3558
|
-
var r = new
|
|
3572
|
+
var r = new Dn(e, t).parse();
|
|
3559
3573
|
if (r.err) {
|
|
3560
|
-
var n = SyntaxError(
|
|
3574
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3561
3575
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3562
3576
|
}
|
|
3563
|
-
return t?.captureLocation ||
|
|
3577
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3564
3578
|
}
|
|
3565
3579
|
var Z;
|
|
3566
3580
|
(function(e) {
|
|
@@ -3578,7 +3592,7 @@ var _e = (
|
|
|
3578
3592
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3579
3593
|
}, t;
|
|
3580
3594
|
}(Error)
|
|
3581
|
-
),
|
|
3595
|
+
), gt = (
|
|
3582
3596
|
/** @class */
|
|
3583
3597
|
function(e) {
|
|
3584
3598
|
N(t, e);
|
|
@@ -3587,7 +3601,7 @@ var _e = (
|
|
|
3587
3601
|
}
|
|
3588
3602
|
return t;
|
|
3589
3603
|
}(_e)
|
|
3590
|
-
),
|
|
3604
|
+
), Vn = (
|
|
3591
3605
|
/** @class */
|
|
3592
3606
|
function(e) {
|
|
3593
3607
|
N(t, e);
|
|
@@ -3596,7 +3610,7 @@ var _e = (
|
|
|
3596
3610
|
}
|
|
3597
3611
|
return t;
|
|
3598
3612
|
}(_e)
|
|
3599
|
-
),
|
|
3613
|
+
), Xn = (
|
|
3600
3614
|
/** @class */
|
|
3601
3615
|
function(e) {
|
|
3602
3616
|
N(t, e);
|
|
@@ -3609,17 +3623,17 @@ var _e = (
|
|
|
3609
3623
|
(function(e) {
|
|
3610
3624
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3611
3625
|
})(H || (H = {}));
|
|
3612
|
-
function
|
|
3626
|
+
function Wn(e) {
|
|
3613
3627
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3614
3628
|
var n = t[t.length - 1];
|
|
3615
3629
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3616
3630
|
}, []);
|
|
3617
3631
|
}
|
|
3618
|
-
function
|
|
3632
|
+
function zn(e) {
|
|
3619
3633
|
return typeof e == "function";
|
|
3620
3634
|
}
|
|
3621
|
-
function
|
|
3622
|
-
if (e.length === 1 &&
|
|
3635
|
+
function me(e, t, r, n, i, o, a) {
|
|
3636
|
+
if (e.length === 1 && ct(e[0]))
|
|
3623
3637
|
return [
|
|
3624
3638
|
{
|
|
3625
3639
|
type: H.literal,
|
|
@@ -3628,7 +3642,7 @@ function pe(e, t, r, n, i, o, a) {
|
|
|
3628
3642
|
];
|
|
3629
3643
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3630
3644
|
var h = u[l];
|
|
3631
|
-
if (
|
|
3645
|
+
if (ct(h)) {
|
|
3632
3646
|
s.push({
|
|
3633
3647
|
type: H.literal,
|
|
3634
3648
|
value: h.value
|
|
@@ -3642,46 +3656,46 @@ function pe(e, t, r, n, i, o, a) {
|
|
|
3642
3656
|
});
|
|
3643
3657
|
continue;
|
|
3644
3658
|
}
|
|
3645
|
-
var
|
|
3646
|
-
if (!(i &&
|
|
3647
|
-
throw new
|
|
3648
|
-
var
|
|
3649
|
-
if (
|
|
3650
|
-
(!
|
|
3651
|
-
type: typeof
|
|
3652
|
-
value:
|
|
3659
|
+
var c = h.value;
|
|
3660
|
+
if (!(i && c in i))
|
|
3661
|
+
throw new Xn(c, a);
|
|
3662
|
+
var f = i[c];
|
|
3663
|
+
if (mn(h)) {
|
|
3664
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3665
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3666
|
+
value: f
|
|
3653
3667
|
});
|
|
3654
3668
|
continue;
|
|
3655
3669
|
}
|
|
3656
|
-
if (
|
|
3657
|
-
var
|
|
3670
|
+
if (Gt(h)) {
|
|
3671
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3658
3672
|
s.push({
|
|
3659
3673
|
type: H.literal,
|
|
3660
|
-
value: r.getDateTimeFormat(t,
|
|
3674
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3661
3675
|
});
|
|
3662
3676
|
continue;
|
|
3663
3677
|
}
|
|
3664
|
-
if (
|
|
3665
|
-
var
|
|
3678
|
+
if (Ft(h)) {
|
|
3679
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3666
3680
|
s.push({
|
|
3667
3681
|
type: H.literal,
|
|
3668
|
-
value: r.getDateTimeFormat(t,
|
|
3682
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3669
3683
|
});
|
|
3670
3684
|
continue;
|
|
3671
3685
|
}
|
|
3672
|
-
if (
|
|
3673
|
-
var
|
|
3674
|
-
|
|
3686
|
+
if (Dt(h)) {
|
|
3687
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Xt(h.style) ? h.style.parsedOptions : void 0;
|
|
3688
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3675
3689
|
type: H.literal,
|
|
3676
|
-
value: r.getNumberFormat(t,
|
|
3690
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3677
3691
|
});
|
|
3678
3692
|
continue;
|
|
3679
3693
|
}
|
|
3680
|
-
if (
|
|
3681
|
-
var v = h.children,
|
|
3682
|
-
if (!
|
|
3683
|
-
throw new
|
|
3684
|
-
var $ =
|
|
3694
|
+
if (Vt(h)) {
|
|
3695
|
+
var v = h.children, m = h.value, T = i[m];
|
|
3696
|
+
if (!zn(T))
|
|
3697
|
+
throw new Vn(m, "function", a);
|
|
3698
|
+
var $ = me(v, t, r, n, i, o), A = T($.map(function(P) {
|
|
3685
3699
|
return P.value;
|
|
3686
3700
|
}));
|
|
3687
3701
|
Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(P) {
|
|
@@ -3691,42 +3705,42 @@ function pe(e, t, r, n, i, o, a) {
|
|
|
3691
3705
|
};
|
|
3692
3706
|
}));
|
|
3693
3707
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var S = h.options[
|
|
3708
|
+
if (jt(h)) {
|
|
3709
|
+
var S = h.options[f] || h.options.other;
|
|
3696
3710
|
if (!S)
|
|
3697
|
-
throw new
|
|
3698
|
-
s.push.apply(s,
|
|
3711
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3712
|
+
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3699
3713
|
continue;
|
|
3700
3714
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var S = h.options["=".concat(
|
|
3715
|
+
if (kt(h)) {
|
|
3716
|
+
var S = h.options["=".concat(f)];
|
|
3703
3717
|
if (!S) {
|
|
3704
3718
|
if (!Intl.PluralRules)
|
|
3705
3719
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3706
3720
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3707
3721
|
`, Z.MISSING_INTL_API, a);
|
|
3708
|
-
var R = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3722
|
+
var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3709
3723
|
S = h.options[R] || h.options.other;
|
|
3710
3724
|
}
|
|
3711
3725
|
if (!S)
|
|
3712
|
-
throw new
|
|
3713
|
-
s.push.apply(s,
|
|
3726
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3727
|
+
s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3714
3728
|
continue;
|
|
3715
3729
|
}
|
|
3716
3730
|
}
|
|
3717
|
-
return
|
|
3731
|
+
return Wn(s);
|
|
3718
3732
|
}
|
|
3719
|
-
function
|
|
3733
|
+
function Zn(e, t) {
|
|
3720
3734
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3721
3735
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3722
3736
|
}, {})) : e;
|
|
3723
3737
|
}
|
|
3724
|
-
function
|
|
3738
|
+
function Qn(e, t) {
|
|
3725
3739
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3726
|
-
return r[n] =
|
|
3740
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3727
3741
|
}, y({}, e)) : e;
|
|
3728
3742
|
}
|
|
3729
|
-
function
|
|
3743
|
+
function Pe(e) {
|
|
3730
3744
|
return {
|
|
3731
3745
|
create: function() {
|
|
3732
3746
|
return {
|
|
@@ -3740,39 +3754,39 @@ function Ae(e) {
|
|
|
3740
3754
|
}
|
|
3741
3755
|
};
|
|
3742
3756
|
}
|
|
3743
|
-
function
|
|
3757
|
+
function qn(e) {
|
|
3744
3758
|
return e === void 0 && (e = {
|
|
3745
3759
|
number: {},
|
|
3746
3760
|
dateTime: {},
|
|
3747
3761
|
pluralRules: {}
|
|
3748
3762
|
}), {
|
|
3749
|
-
getNumberFormat:
|
|
3763
|
+
getNumberFormat: we(function() {
|
|
3750
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3751
3765
|
r[n] = arguments[n];
|
|
3752
3766
|
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3753
3767
|
}, {
|
|
3754
|
-
cache:
|
|
3755
|
-
strategy:
|
|
3768
|
+
cache: Pe(e.number),
|
|
3769
|
+
strategy: Be.variadic
|
|
3756
3770
|
}),
|
|
3757
|
-
getDateTimeFormat:
|
|
3771
|
+
getDateTimeFormat: we(function() {
|
|
3758
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3759
3773
|
r[n] = arguments[n];
|
|
3760
3774
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3761
3775
|
}, {
|
|
3762
|
-
cache:
|
|
3763
|
-
strategy:
|
|
3776
|
+
cache: Pe(e.dateTime),
|
|
3777
|
+
strategy: Be.variadic
|
|
3764
3778
|
}),
|
|
3765
|
-
getPluralRules:
|
|
3779
|
+
getPluralRules: we(function() {
|
|
3766
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3767
3781
|
r[n] = arguments[n];
|
|
3768
3782
|
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3769
3783
|
}, {
|
|
3770
|
-
cache:
|
|
3771
|
-
strategy:
|
|
3784
|
+
cache: Pe(e.pluralRules),
|
|
3785
|
+
strategy: Be.variadic
|
|
3772
3786
|
})
|
|
3773
3787
|
};
|
|
3774
3788
|
}
|
|
3775
|
-
var
|
|
3789
|
+
var Jn = (
|
|
3776
3790
|
/** @class */
|
|
3777
3791
|
function() {
|
|
3778
3792
|
function e(t, r, n, i) {
|
|
@@ -3786,12 +3800,12 @@ var Qn = (
|
|
|
3786
3800
|
var u = o.formatToParts(l);
|
|
3787
3801
|
if (u.length === 1)
|
|
3788
3802
|
return u[0].value;
|
|
3789
|
-
var h = u.reduce(function(
|
|
3790
|
-
return !
|
|
3803
|
+
var h = u.reduce(function(c, f) {
|
|
3804
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3791
3805
|
}, []);
|
|
3792
3806
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3793
3807
|
}, this.formatToParts = function(l) {
|
|
3794
|
-
return
|
|
3808
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3795
3809
|
}, this.resolvedOptions = function() {
|
|
3796
3810
|
var l;
|
|
3797
3811
|
return {
|
|
@@ -3804,13 +3818,13 @@ var Qn = (
|
|
|
3804
3818
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3805
3819
|
var a = i || {};
|
|
3806
3820
|
a.formatters;
|
|
3807
|
-
var s =
|
|
3821
|
+
var s = Pr(a, ["formatters"]);
|
|
3808
3822
|
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3809
3823
|
} else
|
|
3810
3824
|
this.ast = t;
|
|
3811
3825
|
if (!Array.isArray(this.ast))
|
|
3812
3826
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3813
|
-
this.formats =
|
|
3827
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
|
|
3814
3828
|
}
|
|
3815
3829
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3816
3830
|
get: function() {
|
|
@@ -3823,7 +3837,7 @@ var Qn = (
|
|
|
3823
3837
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3824
3838
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3825
3839
|
}
|
|
3826
|
-
}, e.__parse =
|
|
3840
|
+
}, e.__parse = kn, e.formats = {
|
|
3827
3841
|
number: {
|
|
3828
3842
|
integer: {
|
|
3829
3843
|
maximumFractionDigits: 0
|
|
@@ -3884,7 +3898,7 @@ var Qn = (
|
|
|
3884
3898
|
}, e;
|
|
3885
3899
|
}()
|
|
3886
3900
|
);
|
|
3887
|
-
function
|
|
3901
|
+
function Yn(e, t) {
|
|
3888
3902
|
if (t == null)
|
|
3889
3903
|
return;
|
|
3890
3904
|
if (t in e)
|
|
@@ -3905,92 +3919,92 @@ function qn(e, t) {
|
|
|
3905
3919
|
n = void 0;
|
|
3906
3920
|
return n;
|
|
3907
3921
|
}
|
|
3908
|
-
const M = {},
|
|
3922
|
+
const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
|
|
3909
3923
|
if (t == null)
|
|
3910
3924
|
return;
|
|
3911
3925
|
if (t in M && e in M[t])
|
|
3912
3926
|
return M[t][e];
|
|
3913
3927
|
const r = Ee(t);
|
|
3914
3928
|
for (let n = 0; n < r.length; n++) {
|
|
3915
|
-
const i = r[n], o =
|
|
3929
|
+
const i = r[n], o = ti(i, e);
|
|
3916
3930
|
if (o)
|
|
3917
|
-
return
|
|
3931
|
+
return Kn(e, t, o);
|
|
3918
3932
|
}
|
|
3919
3933
|
};
|
|
3920
|
-
let
|
|
3934
|
+
let Ye;
|
|
3921
3935
|
const ue = ve({});
|
|
3922
|
-
function
|
|
3923
|
-
return
|
|
3936
|
+
function ei(e) {
|
|
3937
|
+
return Ye[e] || null;
|
|
3924
3938
|
}
|
|
3925
|
-
function
|
|
3926
|
-
return e in
|
|
3939
|
+
function er(e) {
|
|
3940
|
+
return e in Ye;
|
|
3927
3941
|
}
|
|
3928
|
-
function
|
|
3929
|
-
if (!
|
|
3942
|
+
function ti(e, t) {
|
|
3943
|
+
if (!er(e))
|
|
3930
3944
|
return null;
|
|
3931
|
-
const r =
|
|
3932
|
-
return
|
|
3945
|
+
const r = ei(e);
|
|
3946
|
+
return Yn(r, t);
|
|
3933
3947
|
}
|
|
3934
|
-
function
|
|
3948
|
+
function ri(e) {
|
|
3935
3949
|
if (e == null)
|
|
3936
3950
|
return;
|
|
3937
3951
|
const t = Ee(e);
|
|
3938
3952
|
for (let r = 0; r < t.length; r++) {
|
|
3939
3953
|
const n = t[r];
|
|
3940
|
-
if (
|
|
3954
|
+
if (er(n))
|
|
3941
3955
|
return n;
|
|
3942
3956
|
}
|
|
3943
3957
|
}
|
|
3944
|
-
function
|
|
3945
|
-
delete M[e], ue.update((r) => (r[e] =
|
|
3958
|
+
function tr(e, ...t) {
|
|
3959
|
+
delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3946
3960
|
}
|
|
3947
3961
|
J(
|
|
3948
3962
|
[ue],
|
|
3949
3963
|
([e]) => Object.keys(e)
|
|
3950
3964
|
);
|
|
3951
|
-
ue.subscribe((e) =>
|
|
3952
|
-
const
|
|
3953
|
-
function
|
|
3954
|
-
|
|
3965
|
+
ue.subscribe((e) => Ye = e);
|
|
3966
|
+
const de = {};
|
|
3967
|
+
function ni(e, t) {
|
|
3968
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3955
3969
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return
|
|
3970
|
+
function rr(e) {
|
|
3971
|
+
return de[e];
|
|
3958
3972
|
}
|
|
3959
|
-
function
|
|
3973
|
+
function ii(e) {
|
|
3960
3974
|
return Ee(e).map((t) => {
|
|
3961
|
-
const r =
|
|
3975
|
+
const r = rr(t);
|
|
3962
3976
|
return [t, r ? [...r] : []];
|
|
3963
3977
|
}).filter(([, t]) => t.length > 0);
|
|
3964
3978
|
}
|
|
3965
|
-
function
|
|
3979
|
+
function We(e) {
|
|
3966
3980
|
return e == null ? !1 : Ee(e).some(
|
|
3967
3981
|
(t) => {
|
|
3968
3982
|
var r;
|
|
3969
|
-
return (r =
|
|
3983
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3970
3984
|
}
|
|
3971
3985
|
);
|
|
3972
3986
|
}
|
|
3973
|
-
function
|
|
3987
|
+
function oi(e, t) {
|
|
3974
3988
|
return Promise.all(
|
|
3975
|
-
t.map((n) => (
|
|
3976
|
-
).then((n) =>
|
|
3989
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3990
|
+
).then((n) => tr(e, ...n));
|
|
3977
3991
|
}
|
|
3978
3992
|
const ee = {};
|
|
3979
|
-
function
|
|
3980
|
-
if (!
|
|
3993
|
+
function nr(e) {
|
|
3994
|
+
if (!We(e))
|
|
3981
3995
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3982
|
-
const t =
|
|
3996
|
+
const t = ii(e);
|
|
3983
3997
|
return ee[e] = Promise.all(
|
|
3984
3998
|
t.map(
|
|
3985
|
-
([r, n]) =>
|
|
3999
|
+
([r, n]) => oi(r, n)
|
|
3986
4000
|
)
|
|
3987
4001
|
).then(() => {
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
4002
|
+
if (We(e))
|
|
4003
|
+
return nr(e);
|
|
3990
4004
|
delete ee[e];
|
|
3991
4005
|
}), ee[e];
|
|
3992
4006
|
}
|
|
3993
|
-
const
|
|
4007
|
+
const si = {
|
|
3994
4008
|
number: {
|
|
3995
4009
|
scientific: { notation: "scientific" },
|
|
3996
4010
|
engineering: { notation: "engineering" },
|
|
@@ -4019,57 +4033,57 @@ const ii = {
|
|
|
4019
4033
|
timeZoneName: "short"
|
|
4020
4034
|
}
|
|
4021
4035
|
}
|
|
4022
|
-
},
|
|
4036
|
+
}, ai = {
|
|
4023
4037
|
fallbackLocale: null,
|
|
4024
4038
|
loadingDelay: 200,
|
|
4025
|
-
formats:
|
|
4039
|
+
formats: si,
|
|
4026
4040
|
warnOnMissingMessages: !0,
|
|
4027
4041
|
handleMissingMessage: void 0,
|
|
4028
4042
|
ignoreTag: !0
|
|
4029
|
-
},
|
|
4043
|
+
}, ui = ai;
|
|
4030
4044
|
function Q() {
|
|
4031
|
-
return
|
|
4032
|
-
}
|
|
4033
|
-
const
|
|
4034
|
-
var
|
|
4035
|
-
for (var r in t)
|
|
4036
|
-
|
|
4037
|
-
if (
|
|
4038
|
-
for (var r of
|
|
4039
|
-
|
|
4045
|
+
return ui;
|
|
4046
|
+
}
|
|
4047
|
+
const Oe = ve(!1);
|
|
4048
|
+
var hi = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4049
|
+
for (var r in t || (t = {}))
|
|
4050
|
+
fi.call(t, r) && _t(e, r, t[r]);
|
|
4051
|
+
if (vt)
|
|
4052
|
+
for (var r of vt(t))
|
|
4053
|
+
pi.call(t, r) && _t(e, r, t[r]);
|
|
4040
4054
|
return e;
|
|
4041
|
-
}, di = (e, t) =>
|
|
4042
|
-
let
|
|
4055
|
+
}, di = (e, t) => li(e, ci(t));
|
|
4056
|
+
let ze;
|
|
4043
4057
|
const be = ve(null);
|
|
4044
|
-
function
|
|
4058
|
+
function Et(e) {
|
|
4045
4059
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4046
4060
|
}
|
|
4047
4061
|
function Ee(e, t = Q().fallbackLocale) {
|
|
4048
|
-
const r =
|
|
4049
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4062
|
+
const r = Et(e);
|
|
4063
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4050
4064
|
}
|
|
4051
4065
|
function U() {
|
|
4052
|
-
return
|
|
4066
|
+
return ze ?? void 0;
|
|
4053
4067
|
}
|
|
4054
4068
|
be.subscribe((e) => {
|
|
4055
|
-
|
|
4069
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4056
4070
|
});
|
|
4057
|
-
const
|
|
4058
|
-
if (e &&
|
|
4071
|
+
const bi = (e) => {
|
|
4072
|
+
if (e && ri(e) && We(e)) {
|
|
4059
4073
|
const { loadingDelay: t } = Q();
|
|
4060
4074
|
let r;
|
|
4061
4075
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4062
|
-
() =>
|
|
4076
|
+
() => Oe.set(!0),
|
|
4063
4077
|
t
|
|
4064
|
-
) :
|
|
4078
|
+
) : Oe.set(!0), nr(e).then(() => {
|
|
4065
4079
|
be.set(e);
|
|
4066
4080
|
}).finally(() => {
|
|
4067
|
-
clearTimeout(r),
|
|
4081
|
+
clearTimeout(r), Oe.set(!1);
|
|
4068
4082
|
});
|
|
4069
4083
|
}
|
|
4070
4084
|
return be.set(e);
|
|
4071
|
-
}, Y = di(
|
|
4072
|
-
set:
|
|
4085
|
+
}, Y = di(mi({}, be), {
|
|
4086
|
+
set: bi
|
|
4073
4087
|
}), xe = (e) => {
|
|
4074
4088
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4075
4089
|
return (n) => {
|
|
@@ -4077,20 +4091,20 @@ const pi = (e) => {
|
|
|
4077
4091
|
return i in t ? t[i] : t[i] = e(n);
|
|
4078
4092
|
};
|
|
4079
4093
|
};
|
|
4080
|
-
var
|
|
4094
|
+
var yi = Object.defineProperty, ye = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4081
4095
|
for (var r in t || (t = {}))
|
|
4082
|
-
|
|
4096
|
+
ir.call(t, r) && xt(e, r, t[r]);
|
|
4083
4097
|
if (ye)
|
|
4084
4098
|
for (var r of ye(t))
|
|
4085
|
-
|
|
4099
|
+
or.call(t, r) && xt(e, r, t[r]);
|
|
4086
4100
|
return e;
|
|
4087
4101
|
}, K = (e, t) => {
|
|
4088
4102
|
var r = {};
|
|
4089
4103
|
for (var n in e)
|
|
4090
|
-
|
|
4104
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4091
4105
|
if (e != null && ye)
|
|
4092
4106
|
for (var n of ye(e))
|
|
4093
|
-
t.indexOf(n) < 0 &&
|
|
4107
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4094
4108
|
return r;
|
|
4095
4109
|
};
|
|
4096
4110
|
const oe = (e, t) => {
|
|
@@ -4098,21 +4112,21 @@ const oe = (e, t) => {
|
|
|
4098
4112
|
if (e in r && t in r[e])
|
|
4099
4113
|
return r[e][t];
|
|
4100
4114
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4101
|
-
},
|
|
4115
|
+
}, gi = xe(
|
|
4102
4116
|
(e) => {
|
|
4103
4117
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4104
4118
|
if (r == null)
|
|
4105
4119
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4106
4120
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4107
4121
|
}
|
|
4108
|
-
),
|
|
4122
|
+
), vi = xe(
|
|
4109
4123
|
(e) => {
|
|
4110
4124
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4111
4125
|
if (r == null)
|
|
4112
4126
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4113
4127
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4114
4128
|
}
|
|
4115
|
-
),
|
|
4129
|
+
), _i = xe(
|
|
4116
4130
|
(e) => {
|
|
4117
4131
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4118
4132
|
if (r == null)
|
|
@@ -4121,33 +4135,33 @@ const oe = (e, t) => {
|
|
|
4121
4135
|
);
|
|
4122
4136
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4123
4137
|
}
|
|
4124
|
-
),
|
|
4138
|
+
), Ei = (e = {}) => {
|
|
4125
4139
|
var t = e, {
|
|
4126
4140
|
locale: r = U()
|
|
4127
4141
|
} = t, n = K(t, [
|
|
4128
4142
|
"locale"
|
|
4129
4143
|
]);
|
|
4130
|
-
return
|
|
4131
|
-
},
|
|
4144
|
+
return gi(Ke({ locale: r }, n));
|
|
4145
|
+
}, xi = (e = {}) => {
|
|
4132
4146
|
var t = e, {
|
|
4133
4147
|
locale: r = U()
|
|
4134
4148
|
} = t, n = K(t, [
|
|
4135
4149
|
"locale"
|
|
4136
4150
|
]);
|
|
4137
|
-
return
|
|
4138
|
-
},
|
|
4151
|
+
return vi(Ke({ locale: r }, n));
|
|
4152
|
+
}, Ti = (e = {}) => {
|
|
4139
4153
|
var t = e, {
|
|
4140
4154
|
locale: r = U()
|
|
4141
4155
|
} = t, n = K(t, [
|
|
4142
4156
|
"locale"
|
|
4143
4157
|
]);
|
|
4144
|
-
return
|
|
4145
|
-
},
|
|
4158
|
+
return _i(Ke({ locale: r }, n));
|
|
4159
|
+
}, Hi = xe(
|
|
4146
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4147
|
-
(e, t = U()) => new
|
|
4161
|
+
(e, t = U()) => new Jn(e, t, Q().formats, {
|
|
4148
4162
|
ignoreTag: Q().ignoreTag
|
|
4149
4163
|
})
|
|
4150
|
-
),
|
|
4164
|
+
), Si = (e, t = {}) => {
|
|
4151
4165
|
var r, n, i, o;
|
|
4152
4166
|
let a = t;
|
|
4153
4167
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4160,7 +4174,7 @@ const oe = (e, t) => {
|
|
|
4160
4174
|
throw new Error(
|
|
4161
4175
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4162
4176
|
);
|
|
4163
|
-
let h =
|
|
4177
|
+
let h = Kt(e, l);
|
|
4164
4178
|
if (!h)
|
|
4165
4179
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4166
4180
|
else if (typeof h != "string")
|
|
@@ -4169,30 +4183,30 @@ const oe = (e, t) => {
|
|
|
4169
4183
|
), h;
|
|
4170
4184
|
if (!s)
|
|
4171
4185
|
return h;
|
|
4172
|
-
let
|
|
4186
|
+
let c = h;
|
|
4173
4187
|
try {
|
|
4174
|
-
|
|
4175
|
-
} catch (
|
|
4176
|
-
|
|
4188
|
+
c = Hi(h, l).format(s);
|
|
4189
|
+
} catch (f) {
|
|
4190
|
+
f instanceof Error && console.warn(
|
|
4177
4191
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4178
|
-
|
|
4192
|
+
f.message
|
|
4179
4193
|
);
|
|
4180
4194
|
}
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4183
|
-
J([Y], () => Hi);
|
|
4184
|
-
J([Y], () => Si);
|
|
4195
|
+
return c;
|
|
4196
|
+
}, wi = (e, t) => Ti(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => Ei(t).format(e), Pi = (e, t = U()) => Kt(e, t), Oi = J([Y, ue], () => Si);
|
|
4185
4197
|
J([Y], () => wi);
|
|
4186
|
-
J([Y
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4198
|
+
J([Y], () => Bi);
|
|
4199
|
+
J([Y], () => Ai);
|
|
4200
|
+
J([Y, ue], () => Pi);
|
|
4201
|
+
window.emWidgets = { topic: kr };
|
|
4202
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4203
|
+
function Tt(e, t) {
|
|
4204
|
+
tr(e, t);
|
|
4205
|
+
}
|
|
4206
|
+
function Ni(e) {
|
|
4193
4207
|
Y.set(e);
|
|
4194
4208
|
}
|
|
4195
|
-
const
|
|
4209
|
+
const Ht = {
|
|
4196
4210
|
en: {
|
|
4197
4211
|
titleTransactionHistory: "Transaction History",
|
|
4198
4212
|
loading: "Loading, please wait ..."
|
|
@@ -4234,13 +4248,13 @@ const xt = {
|
|
|
4234
4248
|
loading: "Loading, please wait ..."
|
|
4235
4249
|
}
|
|
4236
4250
|
};
|
|
4237
|
-
function
|
|
4251
|
+
function Li(e, t) {
|
|
4238
4252
|
if (e) {
|
|
4239
4253
|
const r = document.createElement("style");
|
|
4240
4254
|
r.innerHTML = t, e.appendChild(r);
|
|
4241
4255
|
}
|
|
4242
4256
|
}
|
|
4243
|
-
function
|
|
4257
|
+
function Ci(e, t) {
|
|
4244
4258
|
const r = new URL(t);
|
|
4245
4259
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4246
4260
|
const i = document.createElement("style");
|
|
@@ -4249,7 +4263,7 @@ function Ni(e, t) {
|
|
|
4249
4263
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4250
4264
|
});
|
|
4251
4265
|
}
|
|
4252
|
-
function
|
|
4266
|
+
function Mi(e, t, r) {
|
|
4253
4267
|
if (window.emMessageBus) {
|
|
4254
4268
|
const n = document.createElement("style");
|
|
4255
4269
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4257,41 +4271,41 @@ function Li(e, t, r) {
|
|
|
4257
4271
|
});
|
|
4258
4272
|
}
|
|
4259
4273
|
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4274
|
+
function $i(e) {
|
|
4275
|
+
ur(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}");
|
|
4262
4276
|
}
|
|
4263
|
-
function
|
|
4264
|
-
let t, r, n, i, o, a, s, l, u, h,
|
|
4277
|
+
function Ri(e) {
|
|
4278
|
+
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4265
4279
|
/*$_*/
|
|
4266
4280
|
e[3]("titleTransactionHistory") + ""
|
|
4267
|
-
),
|
|
4281
|
+
), f, p, v;
|
|
4268
4282
|
return {
|
|
4269
4283
|
c() {
|
|
4270
|
-
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u =
|
|
4284
|
+
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4271
4285
|
},
|
|
4272
|
-
m(
|
|
4273
|
-
ae(
|
|
4286
|
+
m(m, T) {
|
|
4287
|
+
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v = cr(
|
|
4274
4288
|
t,
|
|
4275
4289
|
"click",
|
|
4276
4290
|
/*click_handler*/
|
|
4277
4291
|
e[14]
|
|
4278
|
-
),
|
|
4292
|
+
), p = !0);
|
|
4279
4293
|
},
|
|
4280
|
-
p(
|
|
4294
|
+
p(m, T) {
|
|
4281
4295
|
T & /*$_*/
|
|
4282
|
-
8 &&
|
|
4283
|
-
|
|
4296
|
+
8 && c !== (c = /*$_*/
|
|
4297
|
+
m[3]("titleTransactionHistory") + "") && Qe(f, c);
|
|
4284
4298
|
},
|
|
4285
|
-
d(
|
|
4286
|
-
|
|
4299
|
+
d(m) {
|
|
4300
|
+
m && q(t), p = !1, v();
|
|
4287
4301
|
}
|
|
4288
4302
|
};
|
|
4289
4303
|
}
|
|
4290
|
-
function
|
|
4304
|
+
function Ui(e) {
|
|
4291
4305
|
let t, r, n;
|
|
4292
4306
|
return {
|
|
4293
4307
|
c() {
|
|
4294
|
-
t = I("div"), r = I("iframe"),
|
|
4308
|
+
t = I("div"), r = I("iframe"), tt(r.src, n = /*iframeUrl*/
|
|
4295
4309
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4296
4310
|
},
|
|
4297
4311
|
m(i, o) {
|
|
@@ -4299,7 +4313,7 @@ function $i(e) {
|
|
|
4299
4313
|
},
|
|
4300
4314
|
p(i, o) {
|
|
4301
4315
|
o & /*iframeUrl*/
|
|
4302
|
-
4 && !
|
|
4316
|
+
4 && !tt(r.src, n = /*iframeUrl*/
|
|
4303
4317
|
i[2]) && E(r, "src", n);
|
|
4304
4318
|
},
|
|
4305
4319
|
d(i) {
|
|
@@ -4307,7 +4321,7 @@ function $i(e) {
|
|
|
4307
4321
|
}
|
|
4308
4322
|
};
|
|
4309
4323
|
}
|
|
4310
|
-
function
|
|
4324
|
+
function Di(e) {
|
|
4311
4325
|
let t, r = (
|
|
4312
4326
|
/*$_*/
|
|
4313
4327
|
e[3]("loading") + ""
|
|
@@ -4322,65 +4336,65 @@ function Ri(e) {
|
|
|
4322
4336
|
p(i, o) {
|
|
4323
4337
|
o & /*$_*/
|
|
4324
4338
|
8 && r !== (r = /*$_*/
|
|
4325
|
-
i[3]("loading") + "") &&
|
|
4339
|
+
i[3]("loading") + "") && Qe(n, r);
|
|
4326
4340
|
},
|
|
4327
4341
|
d(i) {
|
|
4328
4342
|
i && q(t);
|
|
4329
4343
|
}
|
|
4330
4344
|
};
|
|
4331
4345
|
}
|
|
4332
|
-
function
|
|
4346
|
+
function Gi(e) {
|
|
4333
4347
|
let t, r, n, i = (
|
|
4334
4348
|
/*$_*/
|
|
4335
4349
|
e[3]("titleTransactionHistory") + ""
|
|
4336
4350
|
), o, a, s = (
|
|
4337
4351
|
/*isMobile*/
|
|
4338
|
-
e[4] &&
|
|
4352
|
+
e[4] && Ri(e)
|
|
4339
4353
|
);
|
|
4340
|
-
function l(
|
|
4354
|
+
function l(c, f) {
|
|
4341
4355
|
return (
|
|
4342
4356
|
/*isLoading*/
|
|
4343
|
-
|
|
4357
|
+
c[1] ? Di : Ui
|
|
4344
4358
|
);
|
|
4345
4359
|
}
|
|
4346
4360
|
let u = l(e), h = u(e);
|
|
4347
4361
|
return {
|
|
4348
4362
|
c() {
|
|
4349
|
-
t = I("div"), s && s.c(), r =
|
|
4363
|
+
t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4350
4364
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4351
4365
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4352
4366
|
},
|
|
4353
|
-
m(
|
|
4354
|
-
ae(
|
|
4367
|
+
m(c, f) {
|
|
4368
|
+
ae(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
|
|
4355
4369
|
},
|
|
4356
|
-
p(
|
|
4370
|
+
p(c, [f]) {
|
|
4357
4371
|
/*isMobile*/
|
|
4358
|
-
|
|
4372
|
+
c[4] && s.p(c, f), f & /*$_*/
|
|
4359
4373
|
8 && i !== (i = /*$_*/
|
|
4360
|
-
|
|
4374
|
+
c[3]("titleTransactionHistory") + "") && Qe(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4361
4375
|
},
|
|
4362
4376
|
i: w,
|
|
4363
4377
|
o: w,
|
|
4364
|
-
d(
|
|
4365
|
-
|
|
4378
|
+
d(c) {
|
|
4379
|
+
c && q(t), s && s.d(), h.d(), e[15](null);
|
|
4366
4380
|
}
|
|
4367
4381
|
};
|
|
4368
4382
|
}
|
|
4369
|
-
function
|
|
4383
|
+
function Fi(e, t, r) {
|
|
4370
4384
|
let n;
|
|
4371
|
-
|
|
4372
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl:
|
|
4385
|
+
ar(e, Oi, (g) => r(3, n = g));
|
|
4386
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, v = Ii(p) !== "PC", m = !0, T = "";
|
|
4373
4387
|
const $ = () => {
|
|
4374
|
-
fetch(
|
|
4388
|
+
fetch(c).then((L) => L.json()).then((L) => {
|
|
4375
4389
|
Object.keys(L).forEach((C) => {
|
|
4376
|
-
|
|
4390
|
+
Tt(C, L[C]);
|
|
4377
4391
|
});
|
|
4378
4392
|
}).catch((L) => {
|
|
4379
4393
|
console.log(L);
|
|
4380
4394
|
});
|
|
4381
4395
|
};
|
|
4382
|
-
Object.keys(
|
|
4383
|
-
|
|
4396
|
+
Object.keys(Ht).forEach((g) => {
|
|
4397
|
+
Tt(g, Ht[g]);
|
|
4384
4398
|
});
|
|
4385
4399
|
const A = () => {
|
|
4386
4400
|
window.postMessage(
|
|
@@ -4402,36 +4416,36 @@ function Di(e, t, r) {
|
|
|
4402
4416
|
};
|
|
4403
4417
|
fetch(g.href, L).then((C) => C.json()).then(
|
|
4404
4418
|
(C) => {
|
|
4405
|
-
r(1,
|
|
4419
|
+
r(1, m = !1), r(2, T = C.CashierUrl);
|
|
4406
4420
|
},
|
|
4407
4421
|
(C) => {
|
|
4408
4422
|
console.error(C);
|
|
4409
4423
|
}
|
|
4410
4424
|
);
|
|
4411
4425
|
}, R = () => {
|
|
4412
|
-
|
|
4426
|
+
Ni(s);
|
|
4413
4427
|
};
|
|
4414
|
-
|
|
4428
|
+
dr(() => () => {
|
|
4415
4429
|
});
|
|
4416
4430
|
const P = () => A();
|
|
4417
4431
|
function D(g) {
|
|
4418
|
-
|
|
4419
|
-
|
|
4432
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4433
|
+
f = g, r(0, f);
|
|
4420
4434
|
});
|
|
4421
4435
|
}
|
|
4422
4436
|
return e.$$set = (g) => {
|
|
4423
|
-
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, h = g.mbsource), "translationurl" in g && r(13,
|
|
4437
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, h = g.mbsource), "translationurl" in g && r(13, c = g.translationurl);
|
|
4424
4438
|
}, e.$$.update = () => {
|
|
4425
4439
|
e.$$.dirty & /*lang*/
|
|
4426
4440
|
512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4427
4441
|
960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4428
|
-
1025 && l &&
|
|
4429
|
-
2049 && u &&
|
|
4430
|
-
4097 && h &&
|
|
4431
|
-
8192 &&
|
|
4442
|
+
1025 && l && f && Li(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4443
|
+
2049 && u && f && Ci(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4444
|
+
4097 && h && f && Mi(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4445
|
+
8192 && c && $();
|
|
4432
4446
|
}, [
|
|
4433
|
-
|
|
4434
|
-
|
|
4447
|
+
f,
|
|
4448
|
+
m,
|
|
4435
4449
|
T,
|
|
4436
4450
|
n,
|
|
4437
4451
|
v,
|
|
@@ -4443,19 +4457,19 @@ function Di(e, t, r) {
|
|
|
4443
4457
|
l,
|
|
4444
4458
|
u,
|
|
4445
4459
|
h,
|
|
4446
|
-
|
|
4460
|
+
c,
|
|
4447
4461
|
P,
|
|
4448
4462
|
D
|
|
4449
4463
|
];
|
|
4450
4464
|
}
|
|
4451
|
-
class
|
|
4465
|
+
class ji extends Br {
|
|
4452
4466
|
constructor(t) {
|
|
4453
|
-
super(),
|
|
4467
|
+
super(), Sr(
|
|
4454
4468
|
this,
|
|
4455
4469
|
t,
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4470
|
+
Fi,
|
|
4471
|
+
Gi,
|
|
4472
|
+
wt,
|
|
4459
4473
|
{
|
|
4460
4474
|
endpoint: 6,
|
|
4461
4475
|
session: 7,
|
|
@@ -4466,7 +4480,7 @@ class Gi extends Hr {
|
|
|
4466
4480
|
mbsource: 12,
|
|
4467
4481
|
translationurl: 13
|
|
4468
4482
|
},
|
|
4469
|
-
|
|
4483
|
+
$i
|
|
4470
4484
|
);
|
|
4471
4485
|
}
|
|
4472
4486
|
get endpoint() {
|
|
@@ -4518,7 +4532,7 @@ class Gi extends Hr {
|
|
|
4518
4532
|
this.$$set({ translationurl: t }), B();
|
|
4519
4533
|
}
|
|
4520
4534
|
}
|
|
4521
|
-
|
|
4535
|
+
wr(ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4522
4536
|
export {
|
|
4523
|
-
|
|
4537
|
+
ji as P
|
|
4524
4538
|
};
|