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