@everymatrix/casino-tournaments-details 1.77.26 → 1.77.28
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/{CasinoTournamentsDetails-UcM6ve2p.js → CasinoTournamentsDetails-B3OQdvCO.js} +687 -666
- package/components/{CasinoTournamentsDetails-DgPqdHqi.js → CasinoTournamentsDetails-BvYvOnXh.js} +712 -691
- package/components/CasinoTournamentsDetails-Su97SO8S.cjs +18 -0
- package/es2015/casino-tournaments-details.cjs +1 -1
- package/es2015/casino-tournaments-details.js +1 -1
- package/esnext/casino-tournaments-details.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsDetails-C0IAABZ3.cjs +0 -18
package/components/{CasinoTournamentsDetails-DgPqdHqi.js → CasinoTournamentsDetails-BvYvOnXh.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var sr = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var ur = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
hr.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var S = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, et = (e, t) => ar(e, ur(t));
|
|
13
|
+
var S = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,25 +29,25 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ht(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function rt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ee(e) {
|
|
39
|
+
e.forEach(Ht);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function te(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Bt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function fr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function cr(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function fr(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return e &&
|
|
59
|
+
function pr(e) {
|
|
60
|
+
return e && te(e.destroy) ? e.destroy : T;
|
|
61
61
|
}
|
|
62
62
|
function A(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function dr(e, t, r) {
|
|
66
|
+
const n = mr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = C("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function mr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,14 +79,14 @@ function dr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function br(e, t) {
|
|
83
83
|
return A(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function V(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
92
|
function N(e) {
|
|
@@ -98,13 +98,13 @@ function C(e) {
|
|
|
98
98
|
function ce(e) {
|
|
99
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function At(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function Pt() {
|
|
105
|
+
return At(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function vr(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
110
|
function v(e, t, r) {
|
|
@@ -113,11 +113,11 @@ function v(e, t, r) {
|
|
|
113
113
|
function gr(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function yr(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function _r(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -126,87 +126,87 @@ function yr(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let Y;
|
|
130
|
+
function J(e) {
|
|
131
|
+
Y = e;
|
|
132
132
|
}
|
|
133
133
|
function xr() {
|
|
134
|
-
if (!
|
|
134
|
+
if (!Y)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return Y;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Er(e) {
|
|
139
139
|
xr().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const D = [],
|
|
141
|
+
const D = [], Ie = [];
|
|
142
142
|
let U = [];
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
143
|
+
const nt = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
144
|
+
let Ce = !1;
|
|
145
|
+
function Tr() {
|
|
146
|
+
Ce || (Ce = !0, Sr.then(I));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Ne(e) {
|
|
149
149
|
U.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const Se = /* @__PURE__ */ new Set();
|
|
152
152
|
let $ = 0;
|
|
153
153
|
function I() {
|
|
154
154
|
if ($ !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = Y;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
159
|
for (; $ < D.length; ) {
|
|
160
160
|
const t = D[$];
|
|
161
|
-
$++,
|
|
161
|
+
$++, J(t), wr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
164
|
throw D.length = 0, $ = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
166
|
+
for (J(null), D.length = 0, $ = 0; Ie.length; )
|
|
167
|
+
Ie.pop()();
|
|
168
168
|
for (let t = 0; t < U.length; t += 1) {
|
|
169
169
|
const r = U[t];
|
|
170
|
-
|
|
170
|
+
Se.has(r) || (Se.add(r), r());
|
|
171
171
|
}
|
|
172
172
|
U.length = 0;
|
|
173
173
|
} while (D.length);
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
for (; nt.length; )
|
|
175
|
+
nt.pop()();
|
|
176
|
+
Ce = !1, Se.clear(), J(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function wr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), ee(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function Hr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
187
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const Br = /* @__PURE__ */ new Set();
|
|
190
|
+
function Ar(e, t) {
|
|
191
|
+
e && e.i && (Br.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Pr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const o = e.$$.on_mount.map(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Ne(() => {
|
|
196
|
+
const o = e.$$.on_mount.map(Ht).filter(te);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Ne);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Or(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (Hr(r.after_update),
|
|
202
|
+
r.fragment !== null && (Hr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
204
|
+
function Ir(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (D.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const h =
|
|
209
|
-
|
|
207
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
|
+
const h = Y;
|
|
209
|
+
J(e);
|
|
210
210
|
const u = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
@@ -214,7 +214,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
214
214
|
props: o,
|
|
215
215
|
update: T,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: rt(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,28 +223,28 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: rt(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || h.$$.root
|
|
230
230
|
};
|
|
231
231
|
s && s(u.root);
|
|
232
232
|
let l = !1;
|
|
233
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
234
|
-
const p =
|
|
235
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l &&
|
|
236
|
-
}) : [], u.update(), l = !0,
|
|
233
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
234
|
+
const p = b.length ? b[0] : c;
|
|
235
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && Ir(e, f)), c;
|
|
236
|
+
}) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
238
|
const f = gr(t.target);
|
|
239
239
|
u.fragment && u.fragment.l(f), f.forEach(N);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && Ar(e.$$.fragment), Pr(e, t.target, t.anchor), I();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
J(h);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Ot;
|
|
247
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
@@ -281,7 +281,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
connectedCallback() {
|
|
284
|
-
return
|
|
284
|
+
return tt(this, null, function* () {
|
|
285
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
286
|
let t = function(o) {
|
|
287
287
|
return () => {
|
|
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
297
|
m: function(u, l) {
|
|
298
|
-
|
|
298
|
+
V(u, s, l);
|
|
299
299
|
},
|
|
300
300
|
d: function(u) {
|
|
301
301
|
u && N(s);
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = _r(this);
|
|
309
309
|
for (const o of this.$$s)
|
|
310
310
|
o in n && (r[o] = [t(o)]);
|
|
311
311
|
for (const o of this.attributes) {
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
316
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
319
|
+
props: et(Ke({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -394,8 +394,8 @@ function ue(e, t, r, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let s = class extends
|
|
397
|
+
function Nr(e, t, r, n, i, o) {
|
|
398
|
+
let s = class extends Ot {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -425,7 +425,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
s, s;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class Lr {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class Nr {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
Or(this, 1), this.$destroy = T;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,7 +455,7 @@ class Nr {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
458
|
+
if (!te(r))
|
|
459
459
|
return T;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
@@ -468,18 +468,18 @@ class Nr {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
476
|
-
function
|
|
474
|
+
const Mr = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
|
|
476
|
+
function $r(e, t) {
|
|
477
477
|
if (e) {
|
|
478
478
|
const r = document.createElement("style");
|
|
479
479
|
r.innerHTML = t, e.appendChild(r);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Rr(e, t) {
|
|
483
483
|
const r = new URL(t);
|
|
484
484
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
485
485
|
const i = document.createElement("style");
|
|
@@ -488,7 +488,7 @@ function $r(e, t) {
|
|
|
488
488
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Dr(e, t, r) {
|
|
492
492
|
if (window.emMessageBus) {
|
|
493
493
|
const n = document.createElement("style");
|
|
494
494
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -510,43 +510,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
510
510
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
511
511
|
PERFORMANCE OF THIS SOFTWARE.
|
|
512
512
|
***************************************************************************** */
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var Le = function(e, t) {
|
|
514
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
515
515
|
r.__proto__ = n;
|
|
516
516
|
} || function(r, n) {
|
|
517
517
|
for (var i in n)
|
|
518
518
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
519
|
-
},
|
|
519
|
+
}, Le(e, t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function re(e, t) {
|
|
522
522
|
if (typeof t != "function" && t !== null)
|
|
523
523
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
524
|
-
|
|
524
|
+
Le(e, t);
|
|
525
525
|
function r() {
|
|
526
526
|
this.constructor = e;
|
|
527
527
|
}
|
|
528
528
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
529
529
|
}
|
|
530
|
-
|
|
531
|
-
return b = Object.assign || function(t) {
|
|
532
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
533
|
-
r = arguments[n];
|
|
534
|
-
for (var o in r)
|
|
535
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
536
|
-
}
|
|
537
|
-
return t;
|
|
538
|
-
}, b.apply(this, arguments);
|
|
539
|
-
};
|
|
540
|
-
function Dr(e, t) {
|
|
541
|
-
var r = {};
|
|
542
|
-
for (var n in e)
|
|
543
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
544
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
545
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
546
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
547
|
-
return r;
|
|
548
|
-
}
|
|
549
|
-
function Ne(e) {
|
|
530
|
+
function Me(e) {
|
|
550
531
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
551
532
|
if (r)
|
|
552
533
|
return r.call(e);
|
|
@@ -558,7 +539,7 @@ function Ne(e) {
|
|
|
558
539
|
};
|
|
559
540
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
560
541
|
}
|
|
561
|
-
function
|
|
542
|
+
function $e(e, t) {
|
|
562
543
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
563
544
|
if (!r)
|
|
564
545
|
return e;
|
|
@@ -578,22 +559,22 @@ function Le(e, t) {
|
|
|
578
559
|
}
|
|
579
560
|
return o;
|
|
580
561
|
}
|
|
581
|
-
function
|
|
582
|
-
if (
|
|
562
|
+
function Re(e, t, r) {
|
|
563
|
+
if (arguments.length === 2)
|
|
583
564
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
584
565
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
585
566
|
return e.concat(o || t);
|
|
586
567
|
}
|
|
587
|
-
function
|
|
568
|
+
function B(e) {
|
|
588
569
|
return typeof e == "function";
|
|
589
570
|
}
|
|
590
|
-
function
|
|
571
|
+
function It(e) {
|
|
591
572
|
var t = function(n) {
|
|
592
573
|
Error.call(n), n.stack = new Error().stack;
|
|
593
574
|
}, r = e(t);
|
|
594
575
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
595
576
|
}
|
|
596
|
-
var
|
|
577
|
+
var Te = It(function(e) {
|
|
597
578
|
return function(r) {
|
|
598
579
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
599
580
|
` + r.map(function(n, i) {
|
|
@@ -602,13 +583,13 @@ var Ee = Pt(function(e) {
|
|
|
602
583
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
603
584
|
};
|
|
604
585
|
});
|
|
605
|
-
function
|
|
586
|
+
function De(e, t) {
|
|
606
587
|
if (e) {
|
|
607
588
|
var r = e.indexOf(t);
|
|
608
589
|
0 <= r && e.splice(r, 1);
|
|
609
590
|
}
|
|
610
591
|
}
|
|
611
|
-
var
|
|
592
|
+
var be = function() {
|
|
612
593
|
function e(t) {
|
|
613
594
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
614
595
|
}
|
|
@@ -620,12 +601,12 @@ var me = function() {
|
|
|
620
601
|
if (s)
|
|
621
602
|
if (this._parentage = null, Array.isArray(s))
|
|
622
603
|
try {
|
|
623
|
-
for (var a =
|
|
604
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
624
605
|
var u = h.value;
|
|
625
606
|
u.remove(this);
|
|
626
607
|
}
|
|
627
|
-
} catch (
|
|
628
|
-
t = { error:
|
|
608
|
+
} catch (g) {
|
|
609
|
+
t = { error: g };
|
|
629
610
|
} finally {
|
|
630
611
|
try {
|
|
631
612
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -637,29 +618,29 @@ var me = function() {
|
|
|
637
618
|
else
|
|
638
619
|
s.remove(this);
|
|
639
620
|
var l = this.initialTeardown;
|
|
640
|
-
if (
|
|
621
|
+
if (B(l))
|
|
641
622
|
try {
|
|
642
623
|
l();
|
|
643
|
-
} catch (
|
|
644
|
-
o =
|
|
624
|
+
} catch (g) {
|
|
625
|
+
o = g instanceof Te ? g.errors : [g];
|
|
645
626
|
}
|
|
646
627
|
var f = this._finalizers;
|
|
647
628
|
if (f) {
|
|
648
629
|
this._finalizers = null;
|
|
649
630
|
try {
|
|
650
|
-
for (var c =
|
|
651
|
-
var p =
|
|
631
|
+
for (var c = Me(f), b = c.next(); !b.done; b = c.next()) {
|
|
632
|
+
var p = b.value;
|
|
652
633
|
try {
|
|
653
|
-
|
|
654
|
-
} catch (
|
|
655
|
-
o = o != null ? o : [],
|
|
634
|
+
it(p);
|
|
635
|
+
} catch (g) {
|
|
636
|
+
o = o != null ? o : [], g instanceof Te ? o = Re(Re([], $e(o)), $e(g.errors)) : o.push(g);
|
|
656
637
|
}
|
|
657
638
|
}
|
|
658
|
-
} catch (
|
|
659
|
-
n = { error:
|
|
639
|
+
} catch (g) {
|
|
640
|
+
n = { error: g };
|
|
660
641
|
} finally {
|
|
661
642
|
try {
|
|
662
|
-
|
|
643
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
663
644
|
} finally {
|
|
664
645
|
if (n)
|
|
665
646
|
throw n.error;
|
|
@@ -667,13 +648,13 @@ var me = function() {
|
|
|
667
648
|
}
|
|
668
649
|
}
|
|
669
650
|
if (o)
|
|
670
|
-
throw new
|
|
651
|
+
throw new Te(o);
|
|
671
652
|
}
|
|
672
653
|
}, e.prototype.add = function(t) {
|
|
673
654
|
var r;
|
|
674
655
|
if (t && t !== this)
|
|
675
656
|
if (this.closed)
|
|
676
|
-
|
|
657
|
+
it(t);
|
|
677
658
|
else {
|
|
678
659
|
if (t instanceof e) {
|
|
679
660
|
if (t.closed || t._hasParent(this))
|
|
@@ -690,56 +671,52 @@ var me = function() {
|
|
|
690
671
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
691
672
|
}, e.prototype._removeParent = function(t) {
|
|
692
673
|
var r = this._parentage;
|
|
693
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
674
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
694
675
|
}, e.prototype.remove = function(t) {
|
|
695
676
|
var r = this._finalizers;
|
|
696
|
-
r &&
|
|
677
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
697
678
|
}, e.EMPTY = function() {
|
|
698
679
|
var t = new e();
|
|
699
680
|
return t.closed = !0, t;
|
|
700
681
|
}(), e;
|
|
701
|
-
}(),
|
|
702
|
-
function
|
|
703
|
-
return e instanceof
|
|
704
|
-
}
|
|
705
|
-
function
|
|
706
|
-
|
|
707
|
-
}
|
|
708
|
-
var
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
Promise: void 0,
|
|
712
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
713
|
-
useDeprecatedNextContext: !1
|
|
714
|
-
}, Ur = {
|
|
682
|
+
}(), Ct = be.EMPTY;
|
|
683
|
+
function Nt(e) {
|
|
684
|
+
return e instanceof be || e && "closed" in e && B(e.remove) && B(e.add) && B(e.unsubscribe);
|
|
685
|
+
}
|
|
686
|
+
function it(e) {
|
|
687
|
+
B(e) ? e() : e.unsubscribe();
|
|
688
|
+
}
|
|
689
|
+
var Ur = {
|
|
690
|
+
Promise: void 0
|
|
691
|
+
}, Gr = {
|
|
715
692
|
setTimeout: function(e, t) {
|
|
716
693
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
717
694
|
r[n - 2] = arguments[n];
|
|
718
|
-
return setTimeout.apply(void 0,
|
|
695
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
719
696
|
},
|
|
720
697
|
clearTimeout: function(e) {
|
|
721
698
|
return clearTimeout(e);
|
|
722
699
|
},
|
|
723
700
|
delegate: void 0
|
|
724
701
|
};
|
|
725
|
-
function
|
|
726
|
-
|
|
702
|
+
function Fr(e) {
|
|
703
|
+
Gr.setTimeout(function() {
|
|
727
704
|
throw e;
|
|
728
705
|
});
|
|
729
706
|
}
|
|
730
|
-
function
|
|
707
|
+
function ot() {
|
|
731
708
|
}
|
|
732
709
|
function he(e) {
|
|
733
710
|
e();
|
|
734
711
|
}
|
|
735
|
-
var
|
|
736
|
-
|
|
712
|
+
var Lt = function(e) {
|
|
713
|
+
re(t, e);
|
|
737
714
|
function t(r) {
|
|
738
715
|
var n = e.call(this) || this;
|
|
739
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
716
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Vr, n;
|
|
740
717
|
}
|
|
741
718
|
return t.create = function(r, n, i) {
|
|
742
|
-
return new
|
|
719
|
+
return new Ue(r, n, i);
|
|
743
720
|
}, t.prototype.next = function(r) {
|
|
744
721
|
this.isStopped || this._next(r);
|
|
745
722
|
}, t.prototype.error = function(r) {
|
|
@@ -763,11 +740,7 @@ var Nt = function(e) {
|
|
|
763
740
|
this.unsubscribe();
|
|
764
741
|
}
|
|
765
742
|
}, t;
|
|
766
|
-
}(
|
|
767
|
-
function Se(e, t) {
|
|
768
|
-
return Fr.call(e, t);
|
|
769
|
-
}
|
|
770
|
-
var jr = function() {
|
|
743
|
+
}(be), jr = function() {
|
|
771
744
|
function e(t) {
|
|
772
745
|
this.partialObserver = t;
|
|
773
746
|
}
|
|
@@ -798,41 +771,29 @@ var jr = function() {
|
|
|
798
771
|
se(r);
|
|
799
772
|
}
|
|
800
773
|
}, e;
|
|
801
|
-
}(),
|
|
802
|
-
|
|
774
|
+
}(), Ue = function(e) {
|
|
775
|
+
re(t, e);
|
|
803
776
|
function t(r, n, i) {
|
|
804
777
|
var o = e.call(this) || this, s;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
};
|
|
811
|
-
else {
|
|
812
|
-
var a;
|
|
813
|
-
o && Ct.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
814
|
-
return o.unsubscribe();
|
|
815
|
-
}, s = {
|
|
816
|
-
next: r.next && Se(r.next, a),
|
|
817
|
-
error: r.error && Se(r.error, a),
|
|
818
|
-
complete: r.complete && Se(r.complete, a)
|
|
819
|
-
}) : s = r;
|
|
820
|
-
}
|
|
821
|
-
return o.destination = new jr(s), o;
|
|
778
|
+
return B(r) || !r ? s = {
|
|
779
|
+
next: r != null ? r : void 0,
|
|
780
|
+
error: n != null ? n : void 0,
|
|
781
|
+
complete: i != null ? i : void 0
|
|
782
|
+
} : s = r, o.destination = new jr(s), o;
|
|
822
783
|
}
|
|
823
784
|
return t;
|
|
824
|
-
}(
|
|
785
|
+
}(Lt);
|
|
825
786
|
function se(e) {
|
|
826
|
-
|
|
787
|
+
Fr(e);
|
|
827
788
|
}
|
|
828
789
|
function kr(e) {
|
|
829
790
|
throw e;
|
|
830
791
|
}
|
|
831
792
|
var Vr = {
|
|
832
793
|
closed: !0,
|
|
833
|
-
next:
|
|
794
|
+
next: ot,
|
|
834
795
|
error: kr,
|
|
835
|
-
complete:
|
|
796
|
+
complete: ot
|
|
836
797
|
}, Xr = function() {
|
|
837
798
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
838
799
|
}();
|
|
@@ -846,7 +807,7 @@ function zr(e) {
|
|
|
846
807
|
}, r);
|
|
847
808
|
};
|
|
848
809
|
}
|
|
849
|
-
var
|
|
810
|
+
var st = function() {
|
|
850
811
|
function e(t) {
|
|
851
812
|
t && (this._subscribe = t);
|
|
852
813
|
}
|
|
@@ -854,7 +815,7 @@ var it = function() {
|
|
|
854
815
|
var r = new e();
|
|
855
816
|
return r.source = this, r.operator = t, r;
|
|
856
817
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
857
|
-
var i = this, o = Qr(t) ? t : new
|
|
818
|
+
var i = this, o = Qr(t) ? t : new Ue(t, r, n);
|
|
858
819
|
return he(function() {
|
|
859
820
|
var s = i, a = s.operator, h = s.source;
|
|
860
821
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -867,8 +828,8 @@ var it = function() {
|
|
|
867
828
|
}
|
|
868
829
|
}, e.prototype.forEach = function(t, r) {
|
|
869
830
|
var n = this;
|
|
870
|
-
return r =
|
|
871
|
-
var s = new
|
|
831
|
+
return r = at(r), new r(function(i, o) {
|
|
832
|
+
var s = new Ue({
|
|
872
833
|
next: function(a) {
|
|
873
834
|
try {
|
|
874
835
|
t(a);
|
|
@@ -892,7 +853,7 @@ var it = function() {
|
|
|
892
853
|
return zr(t)(this);
|
|
893
854
|
}, e.prototype.toPromise = function(t) {
|
|
894
855
|
var r = this;
|
|
895
|
-
return t =
|
|
856
|
+
return t = at(t), new t(function(n, i) {
|
|
896
857
|
var o;
|
|
897
858
|
r.subscribe(function(s) {
|
|
898
859
|
return o = s;
|
|
@@ -906,28 +867,28 @@ var it = function() {
|
|
|
906
867
|
return new e(t);
|
|
907
868
|
}, e;
|
|
908
869
|
}();
|
|
909
|
-
function
|
|
870
|
+
function at(e) {
|
|
910
871
|
var t;
|
|
911
|
-
return (t = e != null ? e :
|
|
872
|
+
return (t = e != null ? e : Ur.Promise) !== null && t !== void 0 ? t : Promise;
|
|
912
873
|
}
|
|
913
874
|
function Zr(e) {
|
|
914
|
-
return e &&
|
|
875
|
+
return e && B(e.next) && B(e.error) && B(e.complete);
|
|
915
876
|
}
|
|
916
877
|
function Qr(e) {
|
|
917
|
-
return e && e instanceof
|
|
878
|
+
return e && e instanceof Lt || Zr(e) && Nt(e);
|
|
918
879
|
}
|
|
919
|
-
var Jr =
|
|
880
|
+
var Jr = It(function(e) {
|
|
920
881
|
return function() {
|
|
921
882
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
922
883
|
};
|
|
923
|
-
}),
|
|
924
|
-
|
|
884
|
+
}), Mt = function(e) {
|
|
885
|
+
re(t, e);
|
|
925
886
|
function t() {
|
|
926
887
|
var r = e.call(this) || this;
|
|
927
888
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
928
889
|
}
|
|
929
890
|
return t.prototype.lift = function(r) {
|
|
930
|
-
var n = new
|
|
891
|
+
var n = new ut(this, this);
|
|
931
892
|
return n.operator = r, n;
|
|
932
893
|
}, t.prototype._throwIfClosed = function() {
|
|
933
894
|
if (this.closed)
|
|
@@ -939,7 +900,7 @@ var Jr = Pt(function(e) {
|
|
|
939
900
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
940
901
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
941
902
|
try {
|
|
942
|
-
for (var s =
|
|
903
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
943
904
|
var h = a.value;
|
|
944
905
|
h.next(r);
|
|
945
906
|
}
|
|
@@ -988,20 +949,20 @@ var Jr = Pt(function(e) {
|
|
|
988
949
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
989
950
|
}, t.prototype._innerSubscribe = function(r) {
|
|
990
951
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
991
|
-
return o || s ?
|
|
992
|
-
n.currentObservers = null,
|
|
952
|
+
return o || s ? Ct : (this.currentObservers = null, a.push(r), new be(function() {
|
|
953
|
+
n.currentObservers = null, De(a, r);
|
|
993
954
|
}));
|
|
994
955
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
995
956
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
996
957
|
i ? r.error(o) : s && r.complete();
|
|
997
958
|
}, t.prototype.asObservable = function() {
|
|
998
|
-
var r = new
|
|
959
|
+
var r = new st();
|
|
999
960
|
return r.source = this, r;
|
|
1000
961
|
}, t.create = function(r, n) {
|
|
1001
|
-
return new
|
|
962
|
+
return new ut(r, n);
|
|
1002
963
|
}, t;
|
|
1003
|
-
}(
|
|
1004
|
-
|
|
964
|
+
}(st), ut = function(e) {
|
|
965
|
+
re(t, e);
|
|
1005
966
|
function t(r, n) {
|
|
1006
967
|
var i = e.call(this) || this;
|
|
1007
968
|
return i.destination = r, i.source = n, i;
|
|
@@ -1017,17 +978,17 @@ var Jr = Pt(function(e) {
|
|
|
1017
978
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1018
979
|
}, t.prototype._subscribe = function(r) {
|
|
1019
980
|
var n, i;
|
|
1020
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
981
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
1021
982
|
}, t;
|
|
1022
|
-
}(
|
|
983
|
+
}(Mt), $t = {
|
|
1023
984
|
now: function() {
|
|
1024
|
-
return (
|
|
985
|
+
return ($t.delegate || Date).now();
|
|
1025
986
|
},
|
|
1026
987
|
delegate: void 0
|
|
1027
988
|
}, Yr = function(e) {
|
|
1028
|
-
|
|
989
|
+
re(t, e);
|
|
1029
990
|
function t(r, n, i) {
|
|
1030
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
991
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
1031
992
|
var o = e.call(this) || this;
|
|
1032
993
|
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;
|
|
1033
994
|
}
|
|
@@ -1047,24 +1008,24 @@ var Jr = Pt(function(e) {
|
|
|
1047
1008
|
u && o.splice(0, u + 1);
|
|
1048
1009
|
}
|
|
1049
1010
|
}, t;
|
|
1050
|
-
}(
|
|
1051
|
-
const
|
|
1052
|
-
if (
|
|
1011
|
+
}(Mt);
|
|
1012
|
+
const ht = [], lt = {}, qr = (e, t = 0) => {
|
|
1013
|
+
if (ht.indexOf(e) == -1) {
|
|
1053
1014
|
const r = new Yr(t);
|
|
1054
|
-
|
|
1015
|
+
lt[e] = r, ht.push(e);
|
|
1055
1016
|
}
|
|
1056
|
-
return
|
|
1017
|
+
return lt[e];
|
|
1057
1018
|
}, R = [];
|
|
1058
1019
|
function Kr(e, t) {
|
|
1059
1020
|
return {
|
|
1060
|
-
subscribe:
|
|
1021
|
+
subscribe: ve(e, t).subscribe
|
|
1061
1022
|
};
|
|
1062
1023
|
}
|
|
1063
|
-
function
|
|
1024
|
+
function ve(e, t = T) {
|
|
1064
1025
|
let r;
|
|
1065
1026
|
const n = /* @__PURE__ */ new Set();
|
|
1066
1027
|
function i(a) {
|
|
1067
|
-
if (
|
|
1028
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1068
1029
|
const h = !R.length;
|
|
1069
1030
|
for (const u of n)
|
|
1070
1031
|
u[1](), R.push(u, e);
|
|
@@ -1086,7 +1047,7 @@ function be(e, t = T) {
|
|
|
1086
1047
|
}
|
|
1087
1048
|
return { set: i, update: o, subscribe: s };
|
|
1088
1049
|
}
|
|
1089
|
-
function
|
|
1050
|
+
function X(e, t, r) {
|
|
1090
1051
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1091
1052
|
if (!i.every(Boolean))
|
|
1092
1053
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1100,20 +1061,20 @@ function W(e, t, r) {
|
|
|
1100
1061
|
return;
|
|
1101
1062
|
f();
|
|
1102
1063
|
const p = t(n ? u[0] : u, s, a);
|
|
1103
|
-
o ? s(p) : f =
|
|
1104
|
-
},
|
|
1105
|
-
(p,
|
|
1064
|
+
o ? s(p) : f = te(p) ? p : T;
|
|
1065
|
+
}, b = i.map(
|
|
1066
|
+
(p, g) => cr(
|
|
1106
1067
|
p,
|
|
1107
1068
|
(E) => {
|
|
1108
|
-
u[
|
|
1069
|
+
u[g] = E, l &= ~(1 << g), h && c();
|
|
1109
1070
|
},
|
|
1110
1071
|
() => {
|
|
1111
|
-
l |= 1 <<
|
|
1072
|
+
l |= 1 << g;
|
|
1112
1073
|
}
|
|
1113
1074
|
)
|
|
1114
1075
|
);
|
|
1115
1076
|
return h = !0, c(), function() {
|
|
1116
|
-
|
|
1077
|
+
ee(b), f(), h = !1;
|
|
1117
1078
|
};
|
|
1118
1079
|
});
|
|
1119
1080
|
}
|
|
@@ -1137,29 +1098,29 @@ function an(e) {
|
|
|
1137
1098
|
function un(e) {
|
|
1138
1099
|
return Array.isArray(e) ? [] : {};
|
|
1139
1100
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1101
|
+
function q(e, t) {
|
|
1102
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(un(e), e, t) : e;
|
|
1142
1103
|
}
|
|
1143
1104
|
function hn(e, t, r) {
|
|
1144
1105
|
return e.concat(t).map(function(n) {
|
|
1145
|
-
return
|
|
1106
|
+
return q(n, r);
|
|
1146
1107
|
});
|
|
1147
1108
|
}
|
|
1148
1109
|
function ln(e, t) {
|
|
1149
1110
|
if (!t.customMerge)
|
|
1150
|
-
return
|
|
1111
|
+
return G;
|
|
1151
1112
|
var r = t.customMerge(e);
|
|
1152
|
-
return typeof r == "function" ? r :
|
|
1113
|
+
return typeof r == "function" ? r : G;
|
|
1153
1114
|
}
|
|
1154
1115
|
function fn(e) {
|
|
1155
1116
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1156
1117
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1157
1118
|
}) : [];
|
|
1158
1119
|
}
|
|
1159
|
-
function
|
|
1120
|
+
function ft(e) {
|
|
1160
1121
|
return Object.keys(e).concat(fn(e));
|
|
1161
1122
|
}
|
|
1162
|
-
function
|
|
1123
|
+
function Rt(e, t) {
|
|
1163
1124
|
try {
|
|
1164
1125
|
return t in e;
|
|
1165
1126
|
} catch (r) {
|
|
@@ -1167,32 +1128,74 @@ function $t(e, t) {
|
|
|
1167
1128
|
}
|
|
1168
1129
|
}
|
|
1169
1130
|
function cn(e, t) {
|
|
1170
|
-
return
|
|
1131
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1171
1132
|
}
|
|
1172
1133
|
function pn(e, t, r) {
|
|
1173
1134
|
var n = {};
|
|
1174
|
-
return r.isMergeableObject(e) &&
|
|
1175
|
-
n[i] =
|
|
1176
|
-
}),
|
|
1177
|
-
cn(e, i) || (
|
|
1135
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1136
|
+
n[i] = q(e[i], r);
|
|
1137
|
+
}), ft(t).forEach(function(i) {
|
|
1138
|
+
cn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1178
1139
|
}), n;
|
|
1179
1140
|
}
|
|
1180
|
-
function
|
|
1181
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified =
|
|
1141
|
+
function G(e, t, r) {
|
|
1142
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = q;
|
|
1182
1143
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1183
|
-
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) :
|
|
1144
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : q(t, r);
|
|
1184
1145
|
}
|
|
1185
|
-
|
|
1146
|
+
G.all = function(t, r) {
|
|
1186
1147
|
if (!Array.isArray(t))
|
|
1187
1148
|
throw new Error("first argument should be an array");
|
|
1188
1149
|
return t.reduce(function(n, i) {
|
|
1189
|
-
return
|
|
1150
|
+
return G(n, i, r);
|
|
1190
1151
|
}, {});
|
|
1191
1152
|
};
|
|
1192
|
-
var dn =
|
|
1153
|
+
var dn = G, mn = dn;
|
|
1193
1154
|
const bn = /* @__PURE__ */ en(mn);
|
|
1194
|
-
function
|
|
1195
|
-
|
|
1155
|
+
var Ge = function(e, t) {
|
|
1156
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1157
|
+
r.__proto__ = n;
|
|
1158
|
+
} || function(r, n) {
|
|
1159
|
+
for (var i in n)
|
|
1160
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1161
|
+
}, Ge(e, t);
|
|
1162
|
+
};
|
|
1163
|
+
function ge(e, t) {
|
|
1164
|
+
if (typeof t != "function" && t !== null)
|
|
1165
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1166
|
+
Ge(e, t);
|
|
1167
|
+
function r() {
|
|
1168
|
+
this.constructor = e;
|
|
1169
|
+
}
|
|
1170
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1171
|
+
}
|
|
1172
|
+
var H = function() {
|
|
1173
|
+
return H = Object.assign || function(t) {
|
|
1174
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1175
|
+
r = arguments[n];
|
|
1176
|
+
for (var o in r)
|
|
1177
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1178
|
+
}
|
|
1179
|
+
return t;
|
|
1180
|
+
}, H.apply(this, arguments);
|
|
1181
|
+
};
|
|
1182
|
+
function vn(e, t) {
|
|
1183
|
+
var r = {};
|
|
1184
|
+
for (var n in e)
|
|
1185
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1186
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1187
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1188
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1189
|
+
return r;
|
|
1190
|
+
}
|
|
1191
|
+
function we(e, t, r) {
|
|
1192
|
+
if (r || arguments.length === 2)
|
|
1193
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1194
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1195
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1196
|
+
}
|
|
1197
|
+
function He(e, t) {
|
|
1198
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : _n;
|
|
1196
1199
|
return i(e, {
|
|
1197
1200
|
cache: r,
|
|
1198
1201
|
serializer: n
|
|
@@ -1201,7 +1204,7 @@ function Te(e, t) {
|
|
|
1201
1204
|
function gn(e) {
|
|
1202
1205
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1203
1206
|
}
|
|
1204
|
-
function
|
|
1207
|
+
function yn(e, t, r, n) {
|
|
1205
1208
|
var i = gn(n) ? n : r(n), o = t.get(i);
|
|
1206
1209
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1207
1210
|
}
|
|
@@ -1209,87 +1212,95 @@ function Dt(e, t, r) {
|
|
|
1209
1212
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1210
1213
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1211
1214
|
}
|
|
1212
|
-
function
|
|
1215
|
+
function Ut(e, t, r, n, i) {
|
|
1213
1216
|
return r.bind(t, e, n, i);
|
|
1214
1217
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var r = e.length === 1 ?
|
|
1217
|
-
return
|
|
1218
|
-
}
|
|
1219
|
-
function yn(e, t) {
|
|
1220
|
-
return Xe(e, this, Dt, t.cache.create(), t.serializer);
|
|
1218
|
+
function _n(e, t) {
|
|
1219
|
+
var r = e.length === 1 ? yn : Dt;
|
|
1220
|
+
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
1221
1221
|
}
|
|
1222
1222
|
function xn(e, t) {
|
|
1223
|
-
return
|
|
1223
|
+
return Ut(e, this, Dt, t.cache.create(), t.serializer);
|
|
1224
1224
|
}
|
|
1225
|
-
var
|
|
1225
|
+
var En = function() {
|
|
1226
1226
|
return JSON.stringify(arguments);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1227
|
+
}, Sn = (
|
|
1228
|
+
/** @class */
|
|
1229
|
+
function() {
|
|
1230
|
+
function e() {
|
|
1231
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1232
|
+
}
|
|
1233
|
+
return e.prototype.get = function(t) {
|
|
1234
|
+
return this.cache[t];
|
|
1235
|
+
}, e.prototype.set = function(t, r) {
|
|
1236
|
+
this.cache[t] = r;
|
|
1237
|
+
}, e;
|
|
1238
|
+
}()
|
|
1239
|
+
), Tn = {
|
|
1238
1240
|
create: function() {
|
|
1239
|
-
return new
|
|
1241
|
+
return new Sn();
|
|
1240
1242
|
}
|
|
1241
|
-
},
|
|
1242
|
-
variadic:
|
|
1243
|
-
|
|
1244
|
-
|
|
1243
|
+
}, Be = {
|
|
1244
|
+
variadic: xn
|
|
1245
|
+
}, pe = function() {
|
|
1246
|
+
return pe = Object.assign || function(t) {
|
|
1247
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1248
|
+
r = arguments[n];
|
|
1249
|
+
for (var o in r)
|
|
1250
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1251
|
+
}
|
|
1252
|
+
return t;
|
|
1253
|
+
}, pe.apply(this, arguments);
|
|
1254
|
+
};
|
|
1255
|
+
var d;
|
|
1245
1256
|
(function(e) {
|
|
1246
1257
|
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";
|
|
1247
1258
|
})(d || (d = {}));
|
|
1248
|
-
var
|
|
1259
|
+
var y;
|
|
1249
1260
|
(function(e) {
|
|
1250
1261
|
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";
|
|
1251
|
-
})(
|
|
1252
|
-
var
|
|
1262
|
+
})(y || (y = {}));
|
|
1263
|
+
var F;
|
|
1253
1264
|
(function(e) {
|
|
1254
1265
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1255
|
-
})(
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1258
|
-
}
|
|
1259
|
-
function Sn(e) {
|
|
1260
|
-
return e.type === x.argument;
|
|
1266
|
+
})(F || (F = {}));
|
|
1267
|
+
function ct(e) {
|
|
1268
|
+
return e.type === y.literal;
|
|
1261
1269
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1270
|
+
function wn(e) {
|
|
1271
|
+
return e.type === y.argument;
|
|
1264
1272
|
}
|
|
1265
1273
|
function Gt(e) {
|
|
1266
|
-
return e.type ===
|
|
1274
|
+
return e.type === y.number;
|
|
1267
1275
|
}
|
|
1268
1276
|
function Ft(e) {
|
|
1269
|
-
return e.type ===
|
|
1277
|
+
return e.type === y.date;
|
|
1270
1278
|
}
|
|
1271
1279
|
function jt(e) {
|
|
1272
|
-
return e.type ===
|
|
1280
|
+
return e.type === y.time;
|
|
1273
1281
|
}
|
|
1274
1282
|
function kt(e) {
|
|
1275
|
-
return e.type ===
|
|
1276
|
-
}
|
|
1277
|
-
function Tn(e) {
|
|
1278
|
-
return e.type === x.pound;
|
|
1283
|
+
return e.type === y.select;
|
|
1279
1284
|
}
|
|
1280
1285
|
function Vt(e) {
|
|
1281
|
-
return e.type ===
|
|
1286
|
+
return e.type === y.plural;
|
|
1287
|
+
}
|
|
1288
|
+
function Hn(e) {
|
|
1289
|
+
return e.type === y.pound;
|
|
1282
1290
|
}
|
|
1283
1291
|
function Xt(e) {
|
|
1284
|
-
return
|
|
1292
|
+
return e.type === y.tag;
|
|
1285
1293
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1294
|
+
function Wt(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
1288
1296
|
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1297
|
+
function Fe(e) {
|
|
1298
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
1299
|
+
}
|
|
1300
|
+
var zt = /[ \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;
|
|
1301
|
+
function An(e) {
|
|
1291
1302
|
var t = {};
|
|
1292
|
-
return e.replace(
|
|
1303
|
+
return e.replace(Bn, function(r) {
|
|
1293
1304
|
var n = r.length;
|
|
1294
1305
|
switch (r[0]) {
|
|
1295
1306
|
case "G":
|
|
@@ -1378,11 +1389,21 @@ function wn(e) {
|
|
|
1378
1389
|
return "";
|
|
1379
1390
|
}), t;
|
|
1380
1391
|
}
|
|
1381
|
-
var
|
|
1382
|
-
function
|
|
1392
|
+
var _ = function() {
|
|
1393
|
+
return _ = Object.assign || function(t) {
|
|
1394
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1395
|
+
r = arguments[n];
|
|
1396
|
+
for (var o in r)
|
|
1397
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1398
|
+
}
|
|
1399
|
+
return t;
|
|
1400
|
+
}, _.apply(this, arguments);
|
|
1401
|
+
};
|
|
1402
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1403
|
+
function On(e) {
|
|
1383
1404
|
if (e.length === 0)
|
|
1384
1405
|
throw new Error("Number skeleton cannot be empty");
|
|
1385
|
-
for (var t = e.split(
|
|
1406
|
+
for (var t = e.split(Pn).filter(function(c) {
|
|
1386
1407
|
return c.length > 0;
|
|
1387
1408
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1388
1409
|
var o = i[n], s = o.split("/");
|
|
@@ -1397,17 +1418,17 @@ function An(e) {
|
|
|
1397
1418
|
}
|
|
1398
1419
|
return r;
|
|
1399
1420
|
}
|
|
1400
|
-
function
|
|
1421
|
+
function In(e) {
|
|
1401
1422
|
return e.replace(/^(.*?)-/, "");
|
|
1402
1423
|
}
|
|
1403
|
-
var
|
|
1404
|
-
function
|
|
1424
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1425
|
+
function dt(e) {
|
|
1405
1426
|
var t = {};
|
|
1406
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1427
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1407
1428
|
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)), "";
|
|
1408
1429
|
}), t;
|
|
1409
1430
|
}
|
|
1410
|
-
function
|
|
1431
|
+
function Jt(e) {
|
|
1411
1432
|
switch (e) {
|
|
1412
1433
|
case "sign-auto":
|
|
1413
1434
|
return {
|
|
@@ -1447,7 +1468,7 @@ function Qt(e) {
|
|
|
1447
1468
|
};
|
|
1448
1469
|
}
|
|
1449
1470
|
}
|
|
1450
|
-
function
|
|
1471
|
+
function Nn(e) {
|
|
1451
1472
|
var t;
|
|
1452
1473
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1453
1474
|
notation: "engineering"
|
|
@@ -1455,17 +1476,17 @@ function In(e) {
|
|
|
1455
1476
|
notation: "scientific"
|
|
1456
1477
|
}, e = e.slice(1)), t) {
|
|
1457
1478
|
var r = e.slice(0, 2);
|
|
1458
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1479
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1459
1480
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1460
1481
|
t.minimumIntegerDigits = e.length;
|
|
1461
1482
|
}
|
|
1462
1483
|
return t;
|
|
1463
1484
|
}
|
|
1464
|
-
function
|
|
1465
|
-
var t = {}, r =
|
|
1485
|
+
function mt(e) {
|
|
1486
|
+
var t = {}, r = Jt(e);
|
|
1466
1487
|
return r || t;
|
|
1467
1488
|
}
|
|
1468
|
-
function
|
|
1489
|
+
function Ln(e) {
|
|
1469
1490
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1470
1491
|
var i = n[r];
|
|
1471
1492
|
switch (i.stem) {
|
|
@@ -1489,7 +1510,7 @@ function Cn(e) {
|
|
|
1489
1510
|
continue;
|
|
1490
1511
|
case "measure-unit":
|
|
1491
1512
|
case "unit":
|
|
1492
|
-
t.style = "unit", t.unit =
|
|
1513
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1493
1514
|
continue;
|
|
1494
1515
|
case "compact-short":
|
|
1495
1516
|
case "K":
|
|
@@ -1500,13 +1521,13 @@ function Cn(e) {
|
|
|
1500
1521
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1501
1522
|
continue;
|
|
1502
1523
|
case "scientific":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1524
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1525
|
+
return _(_({}, h), mt(u));
|
|
1505
1526
|
}, {}));
|
|
1506
1527
|
continue;
|
|
1507
1528
|
case "engineering":
|
|
1508
|
-
t =
|
|
1509
|
-
return
|
|
1529
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1530
|
+
return _(_({}, h), mt(u));
|
|
1510
1531
|
}, {}));
|
|
1511
1532
|
continue;
|
|
1512
1533
|
case "notation-simple":
|
|
@@ -1551,41 +1572,41 @@ function Cn(e) {
|
|
|
1551
1572
|
case "integer-width":
|
|
1552
1573
|
if (i.options.length > 1)
|
|
1553
1574
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1554
|
-
i.options[0].replace(
|
|
1575
|
+
i.options[0].replace(Cn, function(h, u, l, f, c, b) {
|
|
1555
1576
|
if (u)
|
|
1556
1577
|
t.minimumIntegerDigits = l.length;
|
|
1557
1578
|
else {
|
|
1558
1579
|
if (f && c)
|
|
1559
1580
|
throw new Error("We currently do not support maximum integer digits");
|
|
1560
|
-
if (
|
|
1581
|
+
if (b)
|
|
1561
1582
|
throw new Error("We currently do not support exact integer digits");
|
|
1562
1583
|
}
|
|
1563
1584
|
return "";
|
|
1564
1585
|
});
|
|
1565
1586
|
continue;
|
|
1566
1587
|
}
|
|
1567
|
-
if (
|
|
1588
|
+
if (Qt.test(i.stem)) {
|
|
1568
1589
|
t.minimumIntegerDigits = i.stem.length;
|
|
1569
1590
|
continue;
|
|
1570
1591
|
}
|
|
1571
|
-
if (
|
|
1592
|
+
if (pt.test(i.stem)) {
|
|
1572
1593
|
if (i.options.length > 1)
|
|
1573
1594
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1574
|
-
i.stem.replace(
|
|
1575
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1595
|
+
i.stem.replace(pt, function(h, u, l, f, c, b) {
|
|
1596
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1576
1597
|
});
|
|
1577
1598
|
var o = i.options[0];
|
|
1578
|
-
o === "w" ? t =
|
|
1599
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), dt(o)));
|
|
1579
1600
|
continue;
|
|
1580
1601
|
}
|
|
1581
|
-
if (
|
|
1582
|
-
t =
|
|
1602
|
+
if (Zt.test(i.stem)) {
|
|
1603
|
+
t = _(_({}, t), dt(i.stem));
|
|
1583
1604
|
continue;
|
|
1584
1605
|
}
|
|
1585
|
-
var s =
|
|
1586
|
-
s && (t =
|
|
1587
|
-
var a =
|
|
1588
|
-
a && (t =
|
|
1606
|
+
var s = Jt(i.stem);
|
|
1607
|
+
s && (t = _(_({}, t), s));
|
|
1608
|
+
var a = Nn(i.stem);
|
|
1609
|
+
a && (t = _(_({}, t), a));
|
|
1589
1610
|
}
|
|
1590
1611
|
return t;
|
|
1591
1612
|
}
|
|
@@ -3004,13 +3025,13 @@ var ae = {
|
|
|
3004
3025
|
"h"
|
|
3005
3026
|
]
|
|
3006
3027
|
};
|
|
3007
|
-
function
|
|
3028
|
+
function Mn(e, t) {
|
|
3008
3029
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3009
3030
|
var i = e.charAt(n);
|
|
3010
3031
|
if (i === "j") {
|
|
3011
3032
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3012
3033
|
o++, n++;
|
|
3013
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3034
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = $n(t);
|
|
3014
3035
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3015
3036
|
r += h;
|
|
3016
3037
|
for (; s-- > 0; )
|
|
@@ -3020,7 +3041,7 @@ function Nn(e, t) {
|
|
|
3020
3041
|
}
|
|
3021
3042
|
return r;
|
|
3022
3043
|
}
|
|
3023
|
-
function
|
|
3044
|
+
function $n(e) {
|
|
3024
3045
|
var t = e.hourCycle;
|
|
3025
3046
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3026
3047
|
e.hourCycles && // @ts-ignore
|
|
@@ -3042,20 +3063,20 @@ function Ln(e) {
|
|
|
3042
3063
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3043
3064
|
return i[0];
|
|
3044
3065
|
}
|
|
3045
|
-
var
|
|
3066
|
+
var Ae, Rn = new RegExp("^".concat(zt.source, "*")), Dn = new RegExp("".concat(zt.source, "*$"));
|
|
3046
3067
|
function m(e, t) {
|
|
3047
3068
|
return { start: e, end: t };
|
|
3048
3069
|
}
|
|
3049
|
-
var
|
|
3070
|
+
var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, Wn = Xn ? Number.isSafeInteger : function(e) {
|
|
3050
3071
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3051
|
-
},
|
|
3072
|
+
}, je = !0;
|
|
3052
3073
|
try {
|
|
3053
|
-
var
|
|
3054
|
-
|
|
3074
|
+
var zn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3075
|
+
je = ((Ae = zn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3055
3076
|
} catch (e) {
|
|
3056
|
-
|
|
3077
|
+
je = !1;
|
|
3057
3078
|
}
|
|
3058
|
-
var
|
|
3079
|
+
var bt = Un ? (
|
|
3059
3080
|
// Native
|
|
3060
3081
|
function(t, r, n) {
|
|
3061
3082
|
return t.startsWith(r, n);
|
|
@@ -3065,7 +3086,7 @@ var dt = Rn ? (
|
|
|
3065
3086
|
function(t, r, n) {
|
|
3066
3087
|
return t.slice(n, n + r.length) === r;
|
|
3067
3088
|
}
|
|
3068
|
-
),
|
|
3089
|
+
), ke = Gn ? String.fromCodePoint : (
|
|
3069
3090
|
// IE11
|
|
3070
3091
|
function() {
|
|
3071
3092
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3077,9 +3098,9 @@ var dt = Rn ? (
|
|
|
3077
3098
|
}
|
|
3078
3099
|
return n;
|
|
3079
3100
|
}
|
|
3080
|
-
),
|
|
3101
|
+
), vt = (
|
|
3081
3102
|
// native
|
|
3082
|
-
|
|
3103
|
+
Fn ? Object.fromEntries : (
|
|
3083
3104
|
// Ponyfill
|
|
3084
3105
|
function(t) {
|
|
3085
3106
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3089,7 +3110,7 @@ var dt = Rn ? (
|
|
|
3089
3110
|
return r;
|
|
3090
3111
|
}
|
|
3091
3112
|
)
|
|
3092
|
-
),
|
|
3113
|
+
), Yt = jn ? (
|
|
3093
3114
|
// Native
|
|
3094
3115
|
function(t, r) {
|
|
3095
3116
|
return t.codePointAt(r);
|
|
@@ -3103,7 +3124,7 @@ var dt = Rn ? (
|
|
|
3103
3124
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3104
3125
|
}
|
|
3105
3126
|
}
|
|
3106
|
-
),
|
|
3127
|
+
), Zn = kn ? (
|
|
3107
3128
|
// Native
|
|
3108
3129
|
function(t) {
|
|
3109
3130
|
return t.trimStart();
|
|
@@ -3111,9 +3132,9 @@ var dt = Rn ? (
|
|
|
3111
3132
|
) : (
|
|
3112
3133
|
// Ponyfill
|
|
3113
3134
|
function(t) {
|
|
3114
|
-
return t.replace(
|
|
3135
|
+
return t.replace(Rn, "");
|
|
3115
3136
|
}
|
|
3116
|
-
),
|
|
3137
|
+
), Qn = Vn ? (
|
|
3117
3138
|
// Native
|
|
3118
3139
|
function(t) {
|
|
3119
3140
|
return t.trimEnd();
|
|
@@ -3121,32 +3142,32 @@ var dt = Rn ? (
|
|
|
3121
3142
|
) : (
|
|
3122
3143
|
// Ponyfill
|
|
3123
3144
|
function(t) {
|
|
3124
|
-
return t.replace(
|
|
3145
|
+
return t.replace(Dn, "");
|
|
3125
3146
|
}
|
|
3126
3147
|
);
|
|
3127
|
-
function
|
|
3148
|
+
function qt(e, t) {
|
|
3128
3149
|
return new RegExp(e, t);
|
|
3129
3150
|
}
|
|
3130
|
-
var
|
|
3131
|
-
if (
|
|
3132
|
-
var
|
|
3133
|
-
|
|
3151
|
+
var Ve;
|
|
3152
|
+
if (je) {
|
|
3153
|
+
var gt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3154
|
+
Ve = function(t, r) {
|
|
3134
3155
|
var n;
|
|
3135
|
-
|
|
3136
|
-
var i =
|
|
3156
|
+
gt.lastIndex = r;
|
|
3157
|
+
var i = gt.exec(t);
|
|
3137
3158
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3138
3159
|
};
|
|
3139
3160
|
} else
|
|
3140
|
-
|
|
3161
|
+
Ve = function(t, r) {
|
|
3141
3162
|
for (var n = []; ; ) {
|
|
3142
|
-
var i =
|
|
3143
|
-
if (i === void 0 ||
|
|
3163
|
+
var i = Yt(t, r);
|
|
3164
|
+
if (i === void 0 || Kt(i) || Kn(i))
|
|
3144
3165
|
break;
|
|
3145
3166
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3146
3167
|
}
|
|
3147
|
-
return
|
|
3168
|
+
return ke.apply(void 0, n);
|
|
3148
3169
|
};
|
|
3149
|
-
var
|
|
3170
|
+
var Jn = (
|
|
3150
3171
|
/** @class */
|
|
3151
3172
|
function() {
|
|
3152
3173
|
function e(t, r) {
|
|
@@ -3170,14 +3191,14 @@ var Zn = (
|
|
|
3170
3191
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3171
3192
|
var a = this.clonePosition();
|
|
3172
3193
|
this.bump(), i.push({
|
|
3173
|
-
type:
|
|
3194
|
+
type: y.pound,
|
|
3174
3195
|
location: m(a, this.clonePosition())
|
|
3175
3196
|
});
|
|
3176
3197
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3177
3198
|
if (n)
|
|
3178
3199
|
break;
|
|
3179
3200
|
return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3180
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3201
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3181
3202
|
var s = this.parseTag(t, r);
|
|
3182
3203
|
if (s.err)
|
|
3183
3204
|
return s;
|
|
@@ -3198,7 +3219,7 @@ var Zn = (
|
|
|
3198
3219
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3199
3220
|
return {
|
|
3200
3221
|
val: {
|
|
3201
|
-
type:
|
|
3222
|
+
type: y.literal,
|
|
3202
3223
|
value: "<".concat(i, "/>"),
|
|
3203
3224
|
location: m(n, this.clonePosition())
|
|
3204
3225
|
},
|
|
@@ -3210,12 +3231,12 @@ var Zn = (
|
|
|
3210
3231
|
return o;
|
|
3211
3232
|
var s = o.val, a = this.clonePosition();
|
|
3212
3233
|
if (this.bumpIf("</")) {
|
|
3213
|
-
if (this.isEOF() || !
|
|
3234
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3214
3235
|
return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
|
|
3215
3236
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3216
3237
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3217
3238
|
val: {
|
|
3218
|
-
type:
|
|
3239
|
+
type: y.tag,
|
|
3219
3240
|
value: i,
|
|
3220
3241
|
children: s,
|
|
3221
3242
|
location: m(n, this.clonePosition())
|
|
@@ -3228,7 +3249,7 @@ var Zn = (
|
|
|
3228
3249
|
return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
|
|
3229
3250
|
}, e.prototype.parseTagName = function() {
|
|
3230
3251
|
var t = this.offset();
|
|
3231
|
-
for (this.bump(); !this.isEOF() &&
|
|
3252
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3232
3253
|
this.bump();
|
|
3233
3254
|
return this.message.slice(t, this.offset());
|
|
3234
3255
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3252,12 +3273,12 @@ var Zn = (
|
|
|
3252
3273
|
}
|
|
3253
3274
|
var h = m(n, this.clonePosition());
|
|
3254
3275
|
return {
|
|
3255
|
-
val: { type:
|
|
3276
|
+
val: { type: y.literal, value: i, location: h },
|
|
3256
3277
|
err: null
|
|
3257
3278
|
};
|
|
3258
3279
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3259
3280
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3260
|
-
!
|
|
3281
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3261
3282
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3262
3283
|
if (this.isEOF() || this.char() !== 39)
|
|
3263
3284
|
return null;
|
|
@@ -3291,12 +3312,12 @@ var Zn = (
|
|
|
3291
3312
|
r.push(n);
|
|
3292
3313
|
this.bump();
|
|
3293
3314
|
}
|
|
3294
|
-
return
|
|
3315
|
+
return ke.apply(void 0, r);
|
|
3295
3316
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3296
3317
|
if (this.isEOF())
|
|
3297
3318
|
return null;
|
|
3298
3319
|
var n = this.char();
|
|
3299
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3320
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3300
3321
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3301
3322
|
var n = this.clonePosition();
|
|
3302
3323
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3312,7 +3333,7 @@ var Zn = (
|
|
|
3312
3333
|
case 125:
|
|
3313
3334
|
return this.bump(), {
|
|
3314
3335
|
val: {
|
|
3315
|
-
type:
|
|
3336
|
+
type: y.argument,
|
|
3316
3337
|
// value does not include the opening and closing braces.
|
|
3317
3338
|
value: i,
|
|
3318
3339
|
location: m(n, this.clonePosition())
|
|
@@ -3325,7 +3346,7 @@ var Zn = (
|
|
|
3325
3346
|
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3326
3347
|
}
|
|
3327
3348
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3328
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3349
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3329
3350
|
this.bumpTo(i);
|
|
3330
3351
|
var o = this.clonePosition(), s = m(t, o);
|
|
3331
3352
|
return { value: n, location: s };
|
|
@@ -3344,46 +3365,46 @@ var Zn = (
|
|
|
3344
3365
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3345
3366
|
if (f.err)
|
|
3346
3367
|
return f;
|
|
3347
|
-
var c =
|
|
3368
|
+
var c = Qn(f.val);
|
|
3348
3369
|
if (c.length === 0)
|
|
3349
3370
|
return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3350
|
-
var
|
|
3351
|
-
u = { style: c, styleLocation:
|
|
3371
|
+
var b = m(l, this.clonePosition());
|
|
3372
|
+
u = { style: c, styleLocation: b };
|
|
3352
3373
|
}
|
|
3353
3374
|
var p = this.tryParseArgumentClose(i);
|
|
3354
3375
|
if (p.err)
|
|
3355
3376
|
return p;
|
|
3356
|
-
var
|
|
3357
|
-
if (u &&
|
|
3358
|
-
var E =
|
|
3377
|
+
var g = m(i, this.clonePosition());
|
|
3378
|
+
if (u && bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3379
|
+
var E = Zn(u.style.slice(2));
|
|
3359
3380
|
if (a === "number") {
|
|
3360
3381
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3361
3382
|
return f.err ? f : {
|
|
3362
|
-
val: { type:
|
|
3383
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
3363
3384
|
err: null
|
|
3364
3385
|
};
|
|
3365
3386
|
} else {
|
|
3366
3387
|
if (E.length === 0)
|
|
3367
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
3368
|
-
var
|
|
3369
|
-
this.locale && (
|
|
3388
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3389
|
+
var z = E;
|
|
3390
|
+
this.locale && (z = Mn(E, this.locale));
|
|
3370
3391
|
var c = {
|
|
3371
|
-
type:
|
|
3372
|
-
pattern:
|
|
3392
|
+
type: F.dateTime,
|
|
3393
|
+
pattern: z,
|
|
3373
3394
|
location: u.styleLocation,
|
|
3374
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3375
|
-
}, M = a === "date" ?
|
|
3395
|
+
parsedOptions: this.shouldParseSkeletons ? An(z) : {}
|
|
3396
|
+
}, M = a === "date" ? y.date : y.time;
|
|
3376
3397
|
return {
|
|
3377
|
-
val: { type: M, value: n, location:
|
|
3398
|
+
val: { type: M, value: n, location: g, style: c },
|
|
3378
3399
|
err: null
|
|
3379
3400
|
};
|
|
3380
3401
|
}
|
|
3381
3402
|
}
|
|
3382
3403
|
return {
|
|
3383
3404
|
val: {
|
|
3384
|
-
type: a === "number" ?
|
|
3405
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3385
3406
|
value: n,
|
|
3386
|
-
location:
|
|
3407
|
+
location: g,
|
|
3387
3408
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3388
3409
|
},
|
|
3389
3410
|
err: null
|
|
@@ -3392,43 +3413,43 @@ var Zn = (
|
|
|
3392
3413
|
case "plural":
|
|
3393
3414
|
case "selectordinal":
|
|
3394
3415
|
case "select": {
|
|
3395
|
-
var
|
|
3416
|
+
var w = this.clonePosition();
|
|
3396
3417
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3397
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(
|
|
3418
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(w, pe({}, w)));
|
|
3398
3419
|
this.bumpSpace();
|
|
3399
|
-
var
|
|
3400
|
-
if (a !== "select" &&
|
|
3420
|
+
var Z = this.parseIdentifierIfPossible(), O = 0;
|
|
3421
|
+
if (a !== "select" && Z.value === "offset") {
|
|
3401
3422
|
if (!this.bumpIf(":"))
|
|
3402
3423
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3403
3424
|
this.bumpSpace();
|
|
3404
3425
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3405
3426
|
if (f.err)
|
|
3406
3427
|
return f;
|
|
3407
|
-
this.bumpSpace(),
|
|
3428
|
+
this.bumpSpace(), Z = this.parseIdentifierIfPossible(), O = f.val;
|
|
3408
3429
|
}
|
|
3409
|
-
var oe = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3430
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, r, Z);
|
|
3410
3431
|
if (oe.err)
|
|
3411
3432
|
return oe;
|
|
3412
3433
|
var p = this.tryParseArgumentClose(i);
|
|
3413
3434
|
if (p.err)
|
|
3414
3435
|
return p;
|
|
3415
|
-
var
|
|
3436
|
+
var Ye = m(i, this.clonePosition());
|
|
3416
3437
|
return a === "select" ? {
|
|
3417
3438
|
val: {
|
|
3418
|
-
type:
|
|
3439
|
+
type: y.select,
|
|
3419
3440
|
value: n,
|
|
3420
|
-
options:
|
|
3421
|
-
location:
|
|
3441
|
+
options: vt(oe.val),
|
|
3442
|
+
location: Ye
|
|
3422
3443
|
},
|
|
3423
3444
|
err: null
|
|
3424
3445
|
} : {
|
|
3425
3446
|
val: {
|
|
3426
|
-
type:
|
|
3447
|
+
type: y.plural,
|
|
3427
3448
|
value: n,
|
|
3428
|
-
options:
|
|
3449
|
+
options: vt(oe.val),
|
|
3429
3450
|
offset: O,
|
|
3430
3451
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3431
|
-
location:
|
|
3452
|
+
location: Ye
|
|
3432
3453
|
},
|
|
3433
3454
|
err: null
|
|
3434
3455
|
};
|
|
@@ -3476,16 +3497,16 @@ var Zn = (
|
|
|
3476
3497
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3477
3498
|
var n = [];
|
|
3478
3499
|
try {
|
|
3479
|
-
n =
|
|
3500
|
+
n = On(t);
|
|
3480
3501
|
} catch (i) {
|
|
3481
3502
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3482
3503
|
}
|
|
3483
3504
|
return {
|
|
3484
3505
|
val: {
|
|
3485
|
-
type:
|
|
3506
|
+
type: F.number,
|
|
3486
3507
|
tokens: n,
|
|
3487
3508
|
location: r,
|
|
3488
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3509
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
|
3489
3510
|
},
|
|
3490
3511
|
err: null
|
|
3491
3512
|
};
|
|
@@ -3504,20 +3525,20 @@ var Zn = (
|
|
|
3504
3525
|
if (h.has(u))
|
|
3505
3526
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3506
3527
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3507
|
-
var
|
|
3528
|
+
var b = this.clonePosition();
|
|
3508
3529
|
if (!this.bumpIf("{"))
|
|
3509
3530
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3510
3531
|
var p = this.parseMessage(t + 1, r, n);
|
|
3511
3532
|
if (p.err)
|
|
3512
3533
|
return p;
|
|
3513
|
-
var
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3534
|
+
var g = this.tryParseArgumentClose(b);
|
|
3535
|
+
if (g.err)
|
|
3536
|
+
return g;
|
|
3516
3537
|
a.push([
|
|
3517
3538
|
u,
|
|
3518
3539
|
{
|
|
3519
3540
|
value: p.val,
|
|
3520
|
-
location: m(
|
|
3541
|
+
location: m(b, this.clonePosition())
|
|
3521
3542
|
}
|
|
3522
3543
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3523
3544
|
}
|
|
@@ -3533,7 +3554,7 @@ var Zn = (
|
|
|
3533
3554
|
break;
|
|
3534
3555
|
}
|
|
3535
3556
|
var h = m(i, this.clonePosition());
|
|
3536
|
-
return o ? (s *= n,
|
|
3557
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3537
3558
|
}, e.prototype.offset = function() {
|
|
3538
3559
|
return this.position.offset;
|
|
3539
3560
|
}, e.prototype.isEOF = function() {
|
|
@@ -3548,7 +3569,7 @@ var Zn = (
|
|
|
3548
3569
|
var t = this.position.offset;
|
|
3549
3570
|
if (t >= this.message.length)
|
|
3550
3571
|
throw Error("out of bound");
|
|
3551
|
-
var r =
|
|
3572
|
+
var r = Yt(this.message, t);
|
|
3552
3573
|
if (r === void 0)
|
|
3553
3574
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3554
3575
|
return r;
|
|
@@ -3567,7 +3588,7 @@ var Zn = (
|
|
|
3567
3588
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3568
3589
|
}
|
|
3569
3590
|
}, e.prototype.bumpIf = function(t) {
|
|
3570
|
-
if (
|
|
3591
|
+
if (bt(this.message, t, this.offset())) {
|
|
3571
3592
|
for (var r = 0; r < t.length; r++)
|
|
3572
3593
|
this.bump();
|
|
3573
3594
|
return !0;
|
|
@@ -3589,7 +3610,7 @@ var Zn = (
|
|
|
3589
3610
|
break;
|
|
3590
3611
|
}
|
|
3591
3612
|
}, e.prototype.bumpSpace = function() {
|
|
3592
|
-
for (; !this.isEOF() &&
|
|
3613
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3593
3614
|
this.bump();
|
|
3594
3615
|
}, e.prototype.peek = function() {
|
|
3595
3616
|
if (this.isEOF())
|
|
@@ -3599,47 +3620,47 @@ var Zn = (
|
|
|
3599
3620
|
}, e;
|
|
3600
3621
|
}()
|
|
3601
3622
|
);
|
|
3602
|
-
function
|
|
3623
|
+
function Xe(e) {
|
|
3603
3624
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3604
3625
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3626
|
+
function Yn(e) {
|
|
3627
|
+
return Xe(e) || e === 47;
|
|
3607
3628
|
}
|
|
3608
|
-
function
|
|
3629
|
+
function qn(e) {
|
|
3609
3630
|
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;
|
|
3610
3631
|
}
|
|
3611
|
-
function
|
|
3632
|
+
function Kt(e) {
|
|
3612
3633
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3613
3634
|
}
|
|
3614
|
-
function
|
|
3635
|
+
function Kn(e) {
|
|
3615
3636
|
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;
|
|
3616
3637
|
}
|
|
3617
|
-
function
|
|
3638
|
+
function We(e) {
|
|
3618
3639
|
e.forEach(function(t) {
|
|
3619
|
-
if (delete t.location,
|
|
3640
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3620
3641
|
for (var r in t.options)
|
|
3621
|
-
delete t.options[r].location,
|
|
3642
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3622
3643
|
else
|
|
3623
|
-
|
|
3644
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Fe(t.style) ? delete t.style.location : Xt(t) && We(t.children);
|
|
3624
3645
|
});
|
|
3625
3646
|
}
|
|
3626
|
-
function
|
|
3627
|
-
t === void 0 && (t = {}), t =
|
|
3628
|
-
var r = new
|
|
3647
|
+
function ei(e, t) {
|
|
3648
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3649
|
+
var r = new Jn(e, t).parse();
|
|
3629
3650
|
if (r.err) {
|
|
3630
3651
|
var n = SyntaxError(d[r.err.kind]);
|
|
3631
3652
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3632
3653
|
}
|
|
3633
|
-
return t != null && t.captureLocation ||
|
|
3654
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3634
3655
|
}
|
|
3635
|
-
var
|
|
3656
|
+
var j;
|
|
3636
3657
|
(function(e) {
|
|
3637
3658
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3638
|
-
})(
|
|
3639
|
-
var
|
|
3659
|
+
})(j || (j = {}));
|
|
3660
|
+
var ye = (
|
|
3640
3661
|
/** @class */
|
|
3641
3662
|
function(e) {
|
|
3642
|
-
|
|
3663
|
+
ge(t, e);
|
|
3643
3664
|
function t(r, n, i) {
|
|
3644
3665
|
var o = e.call(this, r) || this;
|
|
3645
3666
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3648,155 +3669,155 @@ var ge = (
|
|
|
3648
3669
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3649
3670
|
}, t;
|
|
3650
3671
|
}(Error)
|
|
3651
|
-
),
|
|
3672
|
+
), yt = (
|
|
3652
3673
|
/** @class */
|
|
3653
3674
|
function(e) {
|
|
3654
|
-
|
|
3675
|
+
ge(t, e);
|
|
3655
3676
|
function t(r, n, i, o) {
|
|
3656
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3677
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3657
3678
|
}
|
|
3658
3679
|
return t;
|
|
3659
|
-
}(
|
|
3660
|
-
),
|
|
3680
|
+
}(ye)
|
|
3681
|
+
), ti = (
|
|
3661
3682
|
/** @class */
|
|
3662
3683
|
function(e) {
|
|
3663
|
-
|
|
3684
|
+
ge(t, e);
|
|
3664
3685
|
function t(r, n, i) {
|
|
3665
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3686
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3666
3687
|
}
|
|
3667
3688
|
return t;
|
|
3668
|
-
}(
|
|
3669
|
-
),
|
|
3689
|
+
}(ye)
|
|
3690
|
+
), ri = (
|
|
3670
3691
|
/** @class */
|
|
3671
3692
|
function(e) {
|
|
3672
|
-
|
|
3693
|
+
ge(t, e);
|
|
3673
3694
|
function t(r, n) {
|
|
3674
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3695
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3675
3696
|
}
|
|
3676
3697
|
return t;
|
|
3677
|
-
}(
|
|
3678
|
-
),
|
|
3698
|
+
}(ye)
|
|
3699
|
+
), x;
|
|
3679
3700
|
(function(e) {
|
|
3680
3701
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3681
|
-
})(
|
|
3682
|
-
function
|
|
3702
|
+
})(x || (x = {}));
|
|
3703
|
+
function ni(e) {
|
|
3683
3704
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3684
3705
|
var n = t[t.length - 1];
|
|
3685
|
-
return !n || n.type !==
|
|
3706
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3686
3707
|
}, []);
|
|
3687
3708
|
}
|
|
3688
|
-
function
|
|
3709
|
+
function ii(e) {
|
|
3689
3710
|
return typeof e == "function";
|
|
3690
3711
|
}
|
|
3691
3712
|
function le(e, t, r, n, i, o, s) {
|
|
3692
|
-
if (e.length === 1 &&
|
|
3713
|
+
if (e.length === 1 && ct(e[0]))
|
|
3693
3714
|
return [
|
|
3694
3715
|
{
|
|
3695
|
-
type:
|
|
3716
|
+
type: x.literal,
|
|
3696
3717
|
value: e[0].value
|
|
3697
3718
|
}
|
|
3698
3719
|
];
|
|
3699
3720
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3700
3721
|
var l = u[h];
|
|
3701
|
-
if (
|
|
3722
|
+
if (ct(l)) {
|
|
3702
3723
|
a.push({
|
|
3703
|
-
type:
|
|
3724
|
+
type: x.literal,
|
|
3704
3725
|
value: l.value
|
|
3705
3726
|
});
|
|
3706
3727
|
continue;
|
|
3707
3728
|
}
|
|
3708
|
-
if (
|
|
3729
|
+
if (Hn(l)) {
|
|
3709
3730
|
typeof o == "number" && a.push({
|
|
3710
|
-
type:
|
|
3731
|
+
type: x.literal,
|
|
3711
3732
|
value: r.getNumberFormat(t).format(o)
|
|
3712
3733
|
});
|
|
3713
3734
|
continue;
|
|
3714
3735
|
}
|
|
3715
3736
|
var f = l.value;
|
|
3716
3737
|
if (!(i && f in i))
|
|
3717
|
-
throw new
|
|
3738
|
+
throw new ri(f, s);
|
|
3718
3739
|
var c = i[f];
|
|
3719
|
-
if (
|
|
3740
|
+
if (wn(l)) {
|
|
3720
3741
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3721
|
-
type: typeof c == "string" ?
|
|
3742
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3722
3743
|
value: c
|
|
3723
3744
|
});
|
|
3724
3745
|
continue;
|
|
3725
3746
|
}
|
|
3726
|
-
if (
|
|
3727
|
-
var
|
|
3747
|
+
if (Ft(l)) {
|
|
3748
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3728
3749
|
a.push({
|
|
3729
|
-
type:
|
|
3730
|
-
value: r.getDateTimeFormat(t,
|
|
3750
|
+
type: x.literal,
|
|
3751
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3731
3752
|
});
|
|
3732
3753
|
continue;
|
|
3733
3754
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var
|
|
3755
|
+
if (jt(l)) {
|
|
3756
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3736
3757
|
a.push({
|
|
3737
|
-
type:
|
|
3738
|
-
value: r.getDateTimeFormat(t,
|
|
3758
|
+
type: x.literal,
|
|
3759
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3739
3760
|
});
|
|
3740
3761
|
continue;
|
|
3741
3762
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var
|
|
3744
|
-
|
|
3745
|
-
type:
|
|
3746
|
-
value: r.getNumberFormat(t,
|
|
3763
|
+
if (Gt(l)) {
|
|
3764
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3765
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3766
|
+
type: x.literal,
|
|
3767
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3747
3768
|
});
|
|
3748
3769
|
continue;
|
|
3749
3770
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var p = l.children,
|
|
3752
|
-
if (!
|
|
3753
|
-
throw new
|
|
3754
|
-
var
|
|
3771
|
+
if (Xt(l)) {
|
|
3772
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3773
|
+
if (!ii(E))
|
|
3774
|
+
throw new ti(g, "function", s);
|
|
3775
|
+
var z = le(p, t, r, n, i, o), M = E(z.map(function(O) {
|
|
3755
3776
|
return O.value;
|
|
3756
3777
|
}));
|
|
3757
3778
|
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(O) {
|
|
3758
3779
|
return {
|
|
3759
|
-
type: typeof O == "string" ?
|
|
3780
|
+
type: typeof O == "string" ? x.literal : x.object,
|
|
3760
3781
|
value: O
|
|
3761
3782
|
};
|
|
3762
3783
|
}));
|
|
3763
3784
|
}
|
|
3764
|
-
if (
|
|
3765
|
-
var
|
|
3766
|
-
if (!
|
|
3767
|
-
throw new
|
|
3768
|
-
a.push.apply(a, le(
|
|
3785
|
+
if (kt(l)) {
|
|
3786
|
+
var w = l.options[c] || l.options.other;
|
|
3787
|
+
if (!w)
|
|
3788
|
+
throw new yt(l.value, c, Object.keys(l.options), s);
|
|
3789
|
+
a.push.apply(a, le(w.value, t, r, n, i));
|
|
3769
3790
|
continue;
|
|
3770
3791
|
}
|
|
3771
|
-
if (
|
|
3772
|
-
var
|
|
3773
|
-
if (!
|
|
3792
|
+
if (Vt(l)) {
|
|
3793
|
+
var w = l.options["=".concat(c)];
|
|
3794
|
+
if (!w) {
|
|
3774
3795
|
if (!Intl.PluralRules)
|
|
3775
|
-
throw new
|
|
3796
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3776
3797
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3777
|
-
`,
|
|
3778
|
-
var
|
|
3779
|
-
|
|
3798
|
+
`, j.MISSING_INTL_API, s);
|
|
3799
|
+
var Z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3800
|
+
w = l.options[Z] || l.options.other;
|
|
3780
3801
|
}
|
|
3781
|
-
if (!
|
|
3782
|
-
throw new
|
|
3783
|
-
a.push.apply(a, le(
|
|
3802
|
+
if (!w)
|
|
3803
|
+
throw new yt(l.value, c, Object.keys(l.options), s);
|
|
3804
|
+
a.push.apply(a, le(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3784
3805
|
continue;
|
|
3785
3806
|
}
|
|
3786
3807
|
}
|
|
3787
|
-
return
|
|
3808
|
+
return ni(a);
|
|
3788
3809
|
}
|
|
3789
|
-
function
|
|
3790
|
-
return t ?
|
|
3791
|
-
return r[n] =
|
|
3810
|
+
function oi(e, t) {
|
|
3811
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3812
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
3792
3813
|
}, {})) : e;
|
|
3793
3814
|
}
|
|
3794
|
-
function
|
|
3815
|
+
function si(e, t) {
|
|
3795
3816
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3796
|
-
return r[n] =
|
|
3797
|
-
},
|
|
3817
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3818
|
+
}, H({}, e)) : e;
|
|
3798
3819
|
}
|
|
3799
|
-
function
|
|
3820
|
+
function Pe(e) {
|
|
3800
3821
|
return {
|
|
3801
3822
|
create: function() {
|
|
3802
3823
|
return {
|
|
@@ -3810,39 +3831,39 @@ function Be(e) {
|
|
|
3810
3831
|
}
|
|
3811
3832
|
};
|
|
3812
3833
|
}
|
|
3813
|
-
function
|
|
3834
|
+
function ai(e) {
|
|
3814
3835
|
return e === void 0 && (e = {
|
|
3815
3836
|
number: {},
|
|
3816
3837
|
dateTime: {},
|
|
3817
3838
|
pluralRules: {}
|
|
3818
3839
|
}), {
|
|
3819
|
-
getNumberFormat:
|
|
3840
|
+
getNumberFormat: He(function() {
|
|
3820
3841
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3821
3842
|
r[n] = arguments[n];
|
|
3822
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3843
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3823
3844
|
}, {
|
|
3824
|
-
cache:
|
|
3825
|
-
strategy:
|
|
3845
|
+
cache: Pe(e.number),
|
|
3846
|
+
strategy: Be.variadic
|
|
3826
3847
|
}),
|
|
3827
|
-
getDateTimeFormat:
|
|
3848
|
+
getDateTimeFormat: He(function() {
|
|
3828
3849
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3850
|
r[n] = arguments[n];
|
|
3830
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3851
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3831
3852
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3853
|
+
cache: Pe(e.dateTime),
|
|
3854
|
+
strategy: Be.variadic
|
|
3834
3855
|
}),
|
|
3835
|
-
getPluralRules:
|
|
3856
|
+
getPluralRules: He(function() {
|
|
3836
3857
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3837
3858
|
r[n] = arguments[n];
|
|
3838
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3859
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3839
3860
|
}, {
|
|
3840
|
-
cache:
|
|
3841
|
-
strategy:
|
|
3861
|
+
cache: Pe(e.pluralRules),
|
|
3862
|
+
strategy: Be.variadic
|
|
3842
3863
|
})
|
|
3843
3864
|
};
|
|
3844
3865
|
}
|
|
3845
|
-
var
|
|
3866
|
+
var ui = (
|
|
3846
3867
|
/** @class */
|
|
3847
3868
|
function() {
|
|
3848
3869
|
function e(t, r, n, i) {
|
|
@@ -3857,7 +3878,7 @@ var si = (
|
|
|
3857
3878
|
if (u.length === 1)
|
|
3858
3879
|
return u[0].value;
|
|
3859
3880
|
var l = u.reduce(function(f, c) {
|
|
3860
|
-
return !f.length || c.type !==
|
|
3881
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3861
3882
|
}, []);
|
|
3862
3883
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3863
3884
|
}, this.formatToParts = function(h) {
|
|
@@ -3874,13 +3895,13 @@ var si = (
|
|
|
3874
3895
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3875
3896
|
var s = i || {};
|
|
3876
3897
|
s.formatters;
|
|
3877
|
-
var a =
|
|
3878
|
-
this.ast = e.__parse(t,
|
|
3898
|
+
var a = vn(s, ["formatters"]);
|
|
3899
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
|
3879
3900
|
} else
|
|
3880
3901
|
this.ast = t;
|
|
3881
3902
|
if (!Array.isArray(this.ast))
|
|
3882
3903
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3883
|
-
this.formats =
|
|
3904
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3884
3905
|
}
|
|
3885
3906
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3886
3907
|
get: function() {
|
|
@@ -3893,7 +3914,7 @@ var si = (
|
|
|
3893
3914
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3894
3915
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3895
3916
|
}
|
|
3896
|
-
}, e.__parse =
|
|
3917
|
+
}, e.__parse = ei, e.formats = {
|
|
3897
3918
|
number: {
|
|
3898
3919
|
integer: {
|
|
3899
3920
|
maximumFractionDigits: 0
|
|
@@ -3954,7 +3975,7 @@ var si = (
|
|
|
3954
3975
|
}, e;
|
|
3955
3976
|
}()
|
|
3956
3977
|
);
|
|
3957
|
-
function
|
|
3978
|
+
function hi(e, t) {
|
|
3958
3979
|
if (t == null)
|
|
3959
3980
|
return;
|
|
3960
3981
|
if (t in e)
|
|
@@ -3975,92 +3996,92 @@ function ai(e, t) {
|
|
|
3975
3996
|
n = void 0;
|
|
3976
3997
|
return n;
|
|
3977
3998
|
}
|
|
3978
|
-
const P = {},
|
|
3999
|
+
const P = {}, li = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), er = (e, t) => {
|
|
3979
4000
|
if (t == null)
|
|
3980
4001
|
return;
|
|
3981
4002
|
if (t in P && e in P[t])
|
|
3982
4003
|
return P[t][e];
|
|
3983
|
-
const r =
|
|
4004
|
+
const r = _e(t);
|
|
3984
4005
|
for (let n = 0; n < r.length; n++) {
|
|
3985
|
-
const i = r[n], o =
|
|
4006
|
+
const i = r[n], o = ci(i, e);
|
|
3986
4007
|
if (o)
|
|
3987
|
-
return
|
|
4008
|
+
return li(e, t, o);
|
|
3988
4009
|
}
|
|
3989
4010
|
};
|
|
3990
|
-
let
|
|
3991
|
-
const ne =
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
4011
|
+
let Qe;
|
|
4012
|
+
const ne = ve({});
|
|
4013
|
+
function fi(e) {
|
|
4014
|
+
return Qe[e] || null;
|
|
3994
4015
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return e in
|
|
4016
|
+
function tr(e) {
|
|
4017
|
+
return e in Qe;
|
|
3997
4018
|
}
|
|
3998
|
-
function
|
|
3999
|
-
if (!
|
|
4019
|
+
function ci(e, t) {
|
|
4020
|
+
if (!tr(e))
|
|
4000
4021
|
return null;
|
|
4001
|
-
const r =
|
|
4002
|
-
return
|
|
4022
|
+
const r = fi(e);
|
|
4023
|
+
return hi(r, t);
|
|
4003
4024
|
}
|
|
4004
|
-
function
|
|
4025
|
+
function pi(e) {
|
|
4005
4026
|
if (e == null)
|
|
4006
4027
|
return;
|
|
4007
|
-
const t =
|
|
4028
|
+
const t = _e(e);
|
|
4008
4029
|
for (let r = 0; r < t.length; r++) {
|
|
4009
4030
|
const n = t[r];
|
|
4010
|
-
if (
|
|
4031
|
+
if (tr(n))
|
|
4011
4032
|
return n;
|
|
4012
4033
|
}
|
|
4013
4034
|
}
|
|
4014
|
-
function
|
|
4035
|
+
function di(e, ...t) {
|
|
4015
4036
|
delete P[e], ne.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
|
|
4016
4037
|
}
|
|
4017
|
-
|
|
4038
|
+
X(
|
|
4018
4039
|
[ne],
|
|
4019
4040
|
([e]) => Object.keys(e)
|
|
4020
4041
|
);
|
|
4021
|
-
ne.subscribe((e) =>
|
|
4042
|
+
ne.subscribe((e) => Qe = e);
|
|
4022
4043
|
const fe = {};
|
|
4023
|
-
function
|
|
4044
|
+
function mi(e, t) {
|
|
4024
4045
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4025
4046
|
}
|
|
4026
|
-
function
|
|
4047
|
+
function rr(e) {
|
|
4027
4048
|
return fe[e];
|
|
4028
4049
|
}
|
|
4029
|
-
function
|
|
4030
|
-
return
|
|
4031
|
-
const r =
|
|
4050
|
+
function bi(e) {
|
|
4051
|
+
return _e(e).map((t) => {
|
|
4052
|
+
const r = rr(t);
|
|
4032
4053
|
return [t, r ? [...r] : []];
|
|
4033
4054
|
}).filter(([, t]) => t.length > 0);
|
|
4034
4055
|
}
|
|
4035
|
-
function
|
|
4036
|
-
return e == null ? !1 :
|
|
4056
|
+
function ze(e) {
|
|
4057
|
+
return e == null ? !1 : _e(e).some(
|
|
4037
4058
|
(t) => {
|
|
4038
4059
|
var r;
|
|
4039
|
-
return (r =
|
|
4060
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
4040
4061
|
}
|
|
4041
4062
|
);
|
|
4042
4063
|
}
|
|
4043
|
-
function
|
|
4064
|
+
function vi(e, t) {
|
|
4044
4065
|
return Promise.all(
|
|
4045
|
-
t.map((n) => (
|
|
4046
|
-
).then((n) =>
|
|
4047
|
-
}
|
|
4048
|
-
const
|
|
4049
|
-
function
|
|
4050
|
-
if (!
|
|
4051
|
-
return e in
|
|
4052
|
-
const t =
|
|
4053
|
-
return
|
|
4066
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4067
|
+
).then((n) => di(e, ...n));
|
|
4068
|
+
}
|
|
4069
|
+
const Q = {};
|
|
4070
|
+
function nr(e) {
|
|
4071
|
+
if (!ze(e))
|
|
4072
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4073
|
+
const t = bi(e);
|
|
4074
|
+
return Q[e] = Promise.all(
|
|
4054
4075
|
t.map(
|
|
4055
|
-
([r, n]) =>
|
|
4076
|
+
([r, n]) => vi(r, n)
|
|
4056
4077
|
)
|
|
4057
4078
|
).then(() => {
|
|
4058
|
-
if (
|
|
4059
|
-
return
|
|
4060
|
-
delete
|
|
4061
|
-
}),
|
|
4079
|
+
if (ze(e))
|
|
4080
|
+
return nr(e);
|
|
4081
|
+
delete Q[e];
|
|
4082
|
+
}), Q[e];
|
|
4062
4083
|
}
|
|
4063
|
-
const
|
|
4084
|
+
const gi = {
|
|
4064
4085
|
number: {
|
|
4065
4086
|
scientific: { notation: "scientific" },
|
|
4066
4087
|
engineering: { notation: "engineering" },
|
|
@@ -4089,135 +4110,135 @@ const bi = {
|
|
|
4089
4110
|
timeZoneName: "short"
|
|
4090
4111
|
}
|
|
4091
4112
|
}
|
|
4092
|
-
},
|
|
4113
|
+
}, yi = {
|
|
4093
4114
|
fallbackLocale: null,
|
|
4094
4115
|
loadingDelay: 200,
|
|
4095
|
-
formats:
|
|
4116
|
+
formats: gi,
|
|
4096
4117
|
warnOnMissingMessages: !0,
|
|
4097
4118
|
handleMissingMessage: void 0,
|
|
4098
4119
|
ignoreTag: !0
|
|
4099
|
-
},
|
|
4100
|
-
function
|
|
4101
|
-
return
|
|
4120
|
+
}, _i = yi;
|
|
4121
|
+
function k() {
|
|
4122
|
+
return _i;
|
|
4102
4123
|
}
|
|
4103
|
-
const
|
|
4104
|
-
var
|
|
4124
|
+
const Oe = ve(!1);
|
|
4125
|
+
var xi = Object.defineProperty, Ei = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4105
4126
|
for (var r in t || (t = {}))
|
|
4106
|
-
|
|
4107
|
-
if (
|
|
4108
|
-
for (var r of
|
|
4109
|
-
|
|
4127
|
+
Ti.call(t, r) && xt(e, r, t[r]);
|
|
4128
|
+
if (_t)
|
|
4129
|
+
for (var r of _t(t))
|
|
4130
|
+
wi.call(t, r) && xt(e, r, t[r]);
|
|
4110
4131
|
return e;
|
|
4111
|
-
},
|
|
4112
|
-
let
|
|
4113
|
-
const
|
|
4114
|
-
function
|
|
4132
|
+
}, Bi = (e, t) => Ei(e, Si(t));
|
|
4133
|
+
let Ze;
|
|
4134
|
+
const de = ve(null);
|
|
4135
|
+
function Et(e) {
|
|
4115
4136
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4116
4137
|
}
|
|
4117
|
-
function
|
|
4118
|
-
const r =
|
|
4119
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4138
|
+
function _e(e, t = k().fallbackLocale) {
|
|
4139
|
+
const r = Et(e);
|
|
4140
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4120
4141
|
}
|
|
4121
4142
|
function L() {
|
|
4122
|
-
return
|
|
4143
|
+
return Ze != null ? Ze : void 0;
|
|
4123
4144
|
}
|
|
4124
|
-
|
|
4125
|
-
|
|
4145
|
+
de.subscribe((e) => {
|
|
4146
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4126
4147
|
});
|
|
4127
|
-
const
|
|
4128
|
-
if (e &&
|
|
4129
|
-
const { loadingDelay: t } =
|
|
4148
|
+
const Ai = (e) => {
|
|
4149
|
+
if (e && pi(e) && ze(e)) {
|
|
4150
|
+
const { loadingDelay: t } = k();
|
|
4130
4151
|
let r;
|
|
4131
4152
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
4132
|
-
() =>
|
|
4153
|
+
() => Oe.set(!0),
|
|
4133
4154
|
t
|
|
4134
|
-
) :
|
|
4135
|
-
|
|
4155
|
+
) : Oe.set(!0), nr(e).then(() => {
|
|
4156
|
+
de.set(e);
|
|
4136
4157
|
}).finally(() => {
|
|
4137
|
-
clearTimeout(r),
|
|
4158
|
+
clearTimeout(r), Oe.set(!1);
|
|
4138
4159
|
});
|
|
4139
4160
|
}
|
|
4140
|
-
return
|
|
4141
|
-
}, ie = Hi(
|
|
4142
|
-
set:
|
|
4143
|
-
}),
|
|
4161
|
+
return de.set(e);
|
|
4162
|
+
}, ie = Bi(Hi({}, de), {
|
|
4163
|
+
set: Ai
|
|
4164
|
+
}), xe = (e) => {
|
|
4144
4165
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4145
4166
|
return (n) => {
|
|
4146
4167
|
const i = JSON.stringify(n);
|
|
4147
4168
|
return i in t ? t[i] : t[i] = e(n);
|
|
4148
4169
|
};
|
|
4149
4170
|
};
|
|
4150
|
-
var
|
|
4171
|
+
var Pi = Object.defineProperty, me = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4151
4172
|
for (var r in t || (t = {}))
|
|
4152
|
-
|
|
4153
|
-
if (
|
|
4154
|
-
for (var r of
|
|
4155
|
-
|
|
4173
|
+
ir.call(t, r) && St(e, r, t[r]);
|
|
4174
|
+
if (me)
|
|
4175
|
+
for (var r of me(t))
|
|
4176
|
+
or.call(t, r) && St(e, r, t[r]);
|
|
4156
4177
|
return e;
|
|
4157
|
-
},
|
|
4178
|
+
}, W = (e, t) => {
|
|
4158
4179
|
var r = {};
|
|
4159
4180
|
for (var n in e)
|
|
4160
|
-
|
|
4161
|
-
if (e != null &&
|
|
4162
|
-
for (var n of
|
|
4163
|
-
t.indexOf(n) < 0 &&
|
|
4181
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4182
|
+
if (e != null && me)
|
|
4183
|
+
for (var n of me(e))
|
|
4184
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4164
4185
|
return r;
|
|
4165
4186
|
};
|
|
4166
|
-
const
|
|
4167
|
-
const { formats: r } =
|
|
4187
|
+
const K = (e, t) => {
|
|
4188
|
+
const { formats: r } = k();
|
|
4168
4189
|
if (e in r && t in r[e])
|
|
4169
4190
|
return r[e][t];
|
|
4170
4191
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4171
|
-
},
|
|
4192
|
+
}, Oi = xe(
|
|
4172
4193
|
(e) => {
|
|
4173
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4194
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4174
4195
|
if (r == null)
|
|
4175
4196
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4176
|
-
return n && (i =
|
|
4197
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
4177
4198
|
}
|
|
4178
|
-
),
|
|
4199
|
+
), Ii = xe(
|
|
4179
4200
|
(e) => {
|
|
4180
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4201
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4181
4202
|
if (r == null)
|
|
4182
4203
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4183
|
-
return n ? i =
|
|
4204
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4184
4205
|
}
|
|
4185
|
-
),
|
|
4206
|
+
), Ci = xe(
|
|
4186
4207
|
(e) => {
|
|
4187
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4208
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4188
4209
|
if (r == null)
|
|
4189
4210
|
throw new Error(
|
|
4190
4211
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4191
4212
|
);
|
|
4192
|
-
return n ? i =
|
|
4213
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4193
4214
|
}
|
|
4194
|
-
),
|
|
4215
|
+
), Ni = (e = {}) => {
|
|
4195
4216
|
var t = e, {
|
|
4196
4217
|
locale: r = L()
|
|
4197
|
-
} = t, n =
|
|
4218
|
+
} = t, n = W(t, [
|
|
4198
4219
|
"locale"
|
|
4199
4220
|
]);
|
|
4200
|
-
return
|
|
4201
|
-
},
|
|
4221
|
+
return Oi(Je({ locale: r }, n));
|
|
4222
|
+
}, Li = (e = {}) => {
|
|
4202
4223
|
var t = e, {
|
|
4203
4224
|
locale: r = L()
|
|
4204
|
-
} = t, n =
|
|
4225
|
+
} = t, n = W(t, [
|
|
4205
4226
|
"locale"
|
|
4206
4227
|
]);
|
|
4207
|
-
return
|
|
4208
|
-
},
|
|
4228
|
+
return Ii(Je({ locale: r }, n));
|
|
4229
|
+
}, Mi = (e = {}) => {
|
|
4209
4230
|
var t = e, {
|
|
4210
4231
|
locale: r = L()
|
|
4211
|
-
} = t, n =
|
|
4232
|
+
} = t, n = W(t, [
|
|
4212
4233
|
"locale"
|
|
4213
4234
|
]);
|
|
4214
|
-
return
|
|
4215
|
-
},
|
|
4235
|
+
return Ci(Je({ locale: r }, n));
|
|
4236
|
+
}, $i = xe(
|
|
4216
4237
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4217
|
-
(e, t = L()) => new
|
|
4218
|
-
ignoreTag:
|
|
4238
|
+
(e, t = L()) => new ui(e, t, k().formats, {
|
|
4239
|
+
ignoreTag: k().ignoreTag
|
|
4219
4240
|
})
|
|
4220
|
-
),
|
|
4241
|
+
), Ri = (e, t = {}) => {
|
|
4221
4242
|
var r, n, i, o;
|
|
4222
4243
|
let s = t;
|
|
4223
4244
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4230,9 +4251,9 @@ const ee = (e, t) => {
|
|
|
4230
4251
|
throw new Error(
|
|
4231
4252
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4232
4253
|
);
|
|
4233
|
-
let l =
|
|
4254
|
+
let l = er(e, h);
|
|
4234
4255
|
if (!l)
|
|
4235
|
-
l = (o = (i = (n = (r =
|
|
4256
|
+
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4236
4257
|
else if (typeof l != "string")
|
|
4237
4258
|
return console.warn(
|
|
4238
4259
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4241,7 +4262,7 @@ const ee = (e, t) => {
|
|
|
4241
4262
|
return l;
|
|
4242
4263
|
let f = l;
|
|
4243
4264
|
try {
|
|
4244
|
-
f =
|
|
4265
|
+
f = $i(l, h).format(a);
|
|
4245
4266
|
} catch (c) {
|
|
4246
4267
|
c instanceof Error && console.warn(
|
|
4247
4268
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4249,35 +4270,35 @@ const ee = (e, t) => {
|
|
|
4249
4270
|
);
|
|
4250
4271
|
}
|
|
4251
4272
|
return f;
|
|
4252
|
-
},
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4273
|
+
}, Di = (e, t) => Mi(t).format(e), Ui = (e, t) => Li(t).format(e), Gi = (e, t) => Ni(t).format(e), Fi = (e, t = L()) => er(e, t);
|
|
4274
|
+
X([ie, ne], () => Ri);
|
|
4275
|
+
X([ie], () => Di);
|
|
4276
|
+
X([ie], () => Ui);
|
|
4277
|
+
X([ie], () => Gi);
|
|
4278
|
+
X([ie, ne], () => Fi);
|
|
4258
4279
|
window.emWidgets = { topic: qr };
|
|
4259
|
-
const
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4280
|
+
const ji = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4281
|
+
function ki(e) {
|
|
4282
|
+
dr(e, "svelte-q9wa7c", "*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsCard.Mobile{margin:10px 0}.DetailsCard.Mobile .DetailsTitle{padding:0 10px;height:30px}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:var(--emw--border-radius-medium, 10px)}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px)}");
|
|
4262
4283
|
}
|
|
4263
|
-
function
|
|
4284
|
+
function Tt(e) {
|
|
4264
4285
|
let t, r, n, i, o, s, a;
|
|
4265
4286
|
function h(f, c) {
|
|
4266
4287
|
return (
|
|
4267
4288
|
/*collapsed*/
|
|
4268
|
-
f[3] ?
|
|
4289
|
+
f[3] ? Vi : Xi
|
|
4269
4290
|
);
|
|
4270
4291
|
}
|
|
4271
4292
|
let u = h(e), l = u(e);
|
|
4272
4293
|
return {
|
|
4273
4294
|
c() {
|
|
4274
|
-
t = C("div"), r = C("p"), n =
|
|
4295
|
+
t = C("div"), r = C("p"), n = At(
|
|
4275
4296
|
/*title*/
|
|
4276
4297
|
e[0]
|
|
4277
|
-
), i =
|
|
4298
|
+
), i = Pt(), o = C("div"), l.c(), v(r, "class", "Title"), v(r, "part", "Title"), v(o, "class", "CollapseButtonDetails"), v(o, "part", "CollapseButtonDetails"), v(t, "class", "DetailsTitle"), v(t, "part", "DetailsTitle");
|
|
4278
4299
|
},
|
|
4279
4300
|
m(f, c) {
|
|
4280
|
-
|
|
4301
|
+
V(f, t, c), A(t, r), A(r, n), A(t, i), A(t, o), l.m(o, null), s || (a = vr(
|
|
4281
4302
|
t,
|
|
4282
4303
|
"click",
|
|
4283
4304
|
/*collapseText*/
|
|
@@ -4286,7 +4307,7 @@ function Et(e) {
|
|
|
4286
4307
|
},
|
|
4287
4308
|
p(f, c) {
|
|
4288
4309
|
c & /*title*/
|
|
4289
|
-
1 &&
|
|
4310
|
+
1 && yr(
|
|
4290
4311
|
n,
|
|
4291
4312
|
/*title*/
|
|
4292
4313
|
f[0]
|
|
@@ -4297,42 +4318,42 @@ function Et(e) {
|
|
|
4297
4318
|
}
|
|
4298
4319
|
};
|
|
4299
4320
|
}
|
|
4300
|
-
function
|
|
4321
|
+
function Vi(e) {
|
|
4301
4322
|
let t, r;
|
|
4302
4323
|
return {
|
|
4303
4324
|
c() {
|
|
4304
4325
|
t = ce("svg"), r = ce("path"), v(r, "d", "M6 9l6 6 6-6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4305
4326
|
},
|
|
4306
4327
|
m(n, i) {
|
|
4307
|
-
|
|
4328
|
+
V(n, t, i), A(t, r);
|
|
4308
4329
|
},
|
|
4309
4330
|
d(n) {
|
|
4310
4331
|
n && N(t);
|
|
4311
4332
|
}
|
|
4312
4333
|
};
|
|
4313
4334
|
}
|
|
4314
|
-
function
|
|
4335
|
+
function Xi(e) {
|
|
4315
4336
|
let t, r;
|
|
4316
4337
|
return {
|
|
4317
4338
|
c() {
|
|
4318
4339
|
t = ce("svg"), r = ce("path"), v(r, "d", "M18 15l-6-6-6 6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4319
4340
|
},
|
|
4320
4341
|
m(n, i) {
|
|
4321
|
-
|
|
4342
|
+
V(n, t, i), A(t, r);
|
|
4322
4343
|
},
|
|
4323
4344
|
d(n) {
|
|
4324
4345
|
n && N(t);
|
|
4325
4346
|
}
|
|
4326
4347
|
};
|
|
4327
4348
|
}
|
|
4328
|
-
function
|
|
4349
|
+
function wt(e) {
|
|
4329
4350
|
let t, r, n, i;
|
|
4330
4351
|
return {
|
|
4331
4352
|
c() {
|
|
4332
4353
|
t = C("div"), t.innerHTML = "", v(t, "class", "DetailsContent sc"), v(t, "part", "DetailsContent");
|
|
4333
4354
|
},
|
|
4334
4355
|
m(o, s) {
|
|
4335
|
-
|
|
4356
|
+
V(o, t, s), n || (i = pr(r = /*setContent*/
|
|
4336
4357
|
e[6].call(
|
|
4337
4358
|
null,
|
|
4338
4359
|
t,
|
|
@@ -4341,7 +4362,7 @@ function St(e) {
|
|
|
4341
4362
|
)), n = !0);
|
|
4342
4363
|
},
|
|
4343
4364
|
p(o, s) {
|
|
4344
|
-
r &&
|
|
4365
|
+
r && te(r.update) && s & /*text*/
|
|
4345
4366
|
2 && r.update.call(
|
|
4346
4367
|
null,
|
|
4347
4368
|
/*text*/
|
|
@@ -4353,30 +4374,30 @@ function St(e) {
|
|
|
4353
4374
|
}
|
|
4354
4375
|
};
|
|
4355
4376
|
}
|
|
4356
|
-
function
|
|
4377
|
+
function Wi(e) {
|
|
4357
4378
|
let t, r, n = (
|
|
4358
4379
|
/*title*/
|
|
4359
|
-
e[0] &&
|
|
4380
|
+
e[0] && Tt(e)
|
|
4360
4381
|
), i = (
|
|
4361
4382
|
/*text*/
|
|
4362
4383
|
e[1] && !/*collapsed*/
|
|
4363
|
-
e[3] &&
|
|
4384
|
+
e[3] && wt(e)
|
|
4364
4385
|
);
|
|
4365
4386
|
return {
|
|
4366
4387
|
c() {
|
|
4367
|
-
t = C("div"), n && n.c(), r =
|
|
4388
|
+
t = C("div"), n && n.c(), r = Pt(), i && i.c(), v(t, "class", "DetailsCard " + (ji(
|
|
4368
4389
|
/*userAgent*/
|
|
4369
4390
|
e[4]
|
|
4370
4391
|
) ? "Mobile" : "")), v(t, "part", "DetailsCard");
|
|
4371
4392
|
},
|
|
4372
4393
|
m(o, s) {
|
|
4373
|
-
|
|
4394
|
+
V(o, t, s), n && n.m(t, null), A(t, r), i && i.m(t, null), e[10](t);
|
|
4374
4395
|
},
|
|
4375
4396
|
p(o, [s]) {
|
|
4376
4397
|
/*title*/
|
|
4377
|
-
o[0] ? n ? n.p(o, s) : (n =
|
|
4398
|
+
o[0] ? n ? n.p(o, s) : (n = Tt(o), n.c(), n.m(t, r)) : n && (n.d(1), n = null), /*text*/
|
|
4378
4399
|
o[1] && !/*collapsed*/
|
|
4379
|
-
o[3] ? i ? i.p(o, s) : (i =
|
|
4400
|
+
o[3] ? i ? i.p(o, s) : (i = wt(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
4380
4401
|
},
|
|
4381
4402
|
i: T,
|
|
4382
4403
|
o: T,
|
|
@@ -4385,18 +4406,18 @@ function Vi(e) {
|
|
|
4385
4406
|
}
|
|
4386
4407
|
};
|
|
4387
4408
|
}
|
|
4388
|
-
function
|
|
4409
|
+
function zi(e, t, r) {
|
|
4389
4410
|
let { title: n = "" } = t, { text: i = "" } = t, { mbsource: o } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, h, u = !1, l = window.navigator.userAgent;
|
|
4390
4411
|
const f = () => {
|
|
4391
4412
|
r(3, u = !u);
|
|
4392
|
-
}, c = (p,
|
|
4413
|
+
}, c = (p, g) => {
|
|
4393
4414
|
let E = document.createElement("div");
|
|
4394
|
-
E.innerHTML =
|
|
4415
|
+
E.innerHTML = g, p.append(E);
|
|
4395
4416
|
};
|
|
4396
|
-
|
|
4417
|
+
Er(() => () => {
|
|
4397
4418
|
});
|
|
4398
|
-
function
|
|
4399
|
-
|
|
4419
|
+
function b(p) {
|
|
4420
|
+
Ie[p ? "unshift" : "push"](() => {
|
|
4400
4421
|
h = p, r(2, h);
|
|
4401
4422
|
});
|
|
4402
4423
|
}
|
|
@@ -4404,9 +4425,9 @@ function Xi(e, t, r) {
|
|
|
4404
4425
|
"title" in p && r(0, n = p.title), "text" in p && r(1, i = p.text), "mbsource" in p && r(7, o = p.mbsource), "clientstyling" in p && r(8, s = p.clientstyling), "clientstylingurl" in p && r(9, a = p.clientstylingurl);
|
|
4405
4426
|
}, e.$$.update = () => {
|
|
4406
4427
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4407
|
-
260 && s && h &&
|
|
4408
|
-
516 && a && h &&
|
|
4409
|
-
132 && o && h &&
|
|
4428
|
+
260 && s && h && $r(h, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4429
|
+
516 && a && h && Rr(h, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4430
|
+
132 && o && h && Dr(h, `${o}.Style`);
|
|
4410
4431
|
}, [
|
|
4411
4432
|
n,
|
|
4412
4433
|
i,
|
|
@@ -4418,17 +4439,17 @@ function Xi(e, t, r) {
|
|
|
4418
4439
|
o,
|
|
4419
4440
|
s,
|
|
4420
4441
|
a,
|
|
4421
|
-
|
|
4442
|
+
b
|
|
4422
4443
|
];
|
|
4423
4444
|
}
|
|
4424
|
-
class
|
|
4445
|
+
class Zi extends Lr {
|
|
4425
4446
|
constructor(t) {
|
|
4426
|
-
super(),
|
|
4447
|
+
super(), Cr(
|
|
4427
4448
|
this,
|
|
4428
4449
|
t,
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4450
|
+
zi,
|
|
4451
|
+
Wi,
|
|
4452
|
+
Bt,
|
|
4432
4453
|
{
|
|
4433
4454
|
title: 0,
|
|
4434
4455
|
text: 1,
|
|
@@ -4436,7 +4457,7 @@ class Wi extends Nr {
|
|
|
4436
4457
|
clientstyling: 8,
|
|
4437
4458
|
clientstylingurl: 9
|
|
4438
4459
|
},
|
|
4439
|
-
|
|
4460
|
+
ki
|
|
4440
4461
|
);
|
|
4441
4462
|
}
|
|
4442
4463
|
get title() {
|
|
@@ -4470,7 +4491,7 @@ class Wi extends Nr {
|
|
|
4470
4491
|
this.$$set({ clientstylingurl: t }), I();
|
|
4471
4492
|
}
|
|
4472
4493
|
}
|
|
4473
|
-
|
|
4494
|
+
Nr(Zi, { title: {}, text: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4474
4495
|
export {
|
|
4475
|
-
|
|
4496
|
+
Zi as default
|
|
4476
4497
|
};
|