@everymatrix/general-logout 1.76.1 → 1.76.3
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/{GeneralLogout-Cwvv1zzW.js → GeneralLogout-B08moOmV.js} +637 -651
- package/components/{GeneralLogout-BnOMXRHP.js → GeneralLogout-CjYbEKzP.js} +623 -637
- package/components/GeneralLogout-DpcP5J7P.cjs +18 -0
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
- package/components/GeneralLogout-CyyPBWdw.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Te = (e, t, r) => t in e ?
|
|
1
|
+
var lr = Object.defineProperty, fr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, r) => t in e ? lr(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
|
+
dr.call(t, r) && Te(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
pr.call(t, r) && Te(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, et = (e, t) => fr(e, cr(t));
|
|
13
13
|
var T = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
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 nt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function w() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function wt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function rt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function oe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(wt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ze(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function At(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function mr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function It(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function br(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function S(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function gr(e, t, r) {
|
|
66
|
+
const n = yr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = O("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, vr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function yr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,7 +79,7 @@ function _r(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function vr(e, t) {
|
|
83
83
|
return S(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
@@ -101,26 +101,26 @@ function K(e) {
|
|
|
101
101
|
function ge(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function xr() {
|
|
105
105
|
return ge(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ot(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
110
|
function H(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function _r(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function It(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Er(e, t, r, n) {
|
|
121
121
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Sr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -133,22 +133,22 @@ let re;
|
|
|
133
133
|
function te(e) {
|
|
134
134
|
re = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Tr() {
|
|
137
137
|
if (!re)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
139
|
return re;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function Hr(e) {
|
|
142
|
+
Tr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const j = [],
|
|
144
|
+
const j = [], Le = [];
|
|
145
145
|
let k = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const nt = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ne = !1;
|
|
148
|
+
function wr() {
|
|
149
|
+
Ne || (Ne = !0, Br.then(A));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Me(e) {
|
|
152
152
|
k.push(e);
|
|
153
153
|
}
|
|
154
154
|
const He = /* @__PURE__ */ new Set();
|
|
@@ -161,53 +161,53 @@ function A() {
|
|
|
161
161
|
try {
|
|
162
162
|
for (; G < j.length; ) {
|
|
163
163
|
const t = j[G];
|
|
164
|
-
G++, te(t),
|
|
164
|
+
G++, te(t), Ar(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw j.length = 0, G = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (te(null), j.length = 0, G = 0;
|
|
170
|
-
|
|
169
|
+
for (te(null), j.length = 0, G = 0; Le.length; )
|
|
170
|
+
Le.pop()();
|
|
171
171
|
for (let t = 0; t < k.length; t += 1) {
|
|
172
172
|
const r = k[t];
|
|
173
173
|
He.has(r) || (He.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
k.length = 0;
|
|
176
176
|
} while (j.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; nt.length; )
|
|
178
|
+
nt.pop()();
|
|
179
|
+
Ne = !1, He.clear(), te(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ar(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
183
|
e.update(), oe(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Pr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const Or = /* @__PURE__ */ new Set();
|
|
193
|
+
function Ir(e, t) {
|
|
194
|
+
e && e.i && (Or.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Lr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
198
|
+
n && n.m(t, r), Me(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(wt).filter(Ze);
|
|
200
200
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
201
|
-
}), i.forEach(
|
|
201
|
+
}), i.forEach(Me);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Nr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Pr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
207
|
+
function Mr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (j.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
211
|
const h = re;
|
|
212
212
|
te(e);
|
|
213
213
|
const u = e.$$ = {
|
|
@@ -217,7 +217,7 @@ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: w,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: rt(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,28 +226,28 @@ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: rt(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
s && s(u.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (u.ctx = r
|
|
237
|
-
const
|
|
238
|
-
return u.ctx && i(u.ctx[
|
|
239
|
-
})
|
|
236
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...d) => {
|
|
237
|
+
const p = d.length ? d[0] : f;
|
|
238
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Mr(e, c)), f;
|
|
239
|
+
}), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const
|
|
242
|
-
u.fragment && u.fragment.l(
|
|
241
|
+
const c = _r(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(c), c.forEach(Q);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Ir(e.$$.fragment), Lr(e, t.target, t.anchor), A();
|
|
246
246
|
}
|
|
247
247
|
te(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Lt;
|
|
250
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return tt(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
@@ -308,18 +308,18 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = Sr(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
315
315
|
const s = this.$$g_p(o.name);
|
|
316
|
-
s in this.$$d || (this.$$d[s] =
|
|
316
|
+
s in this.$$d || (this.$$d[s] = fe(s, o.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const o in this.$$p_d)
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: et(Ke({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const o in this.$$p_d)
|
|
332
332
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
333
|
-
const s =
|
|
333
|
+
const s = fe(
|
|
334
334
|
o,
|
|
335
335
|
this.$$d[o],
|
|
336
336
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(t, r, n) {
|
|
356
356
|
var i;
|
|
357
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
367
367
|
) || t;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function fe(e, t, r, n) {
|
|
371
371
|
var o;
|
|
372
372
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
373
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -397,8 +397,8 @@ function ce(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function $r(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Lt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -415,7 +415,7 @@ function Dr(e, t, r, n, i, o) {
|
|
|
415
415
|
},
|
|
416
416
|
set(h) {
|
|
417
417
|
var u;
|
|
418
|
-
h =
|
|
418
|
+
h = fe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}), n.forEach((a) => {
|
|
@@ -428,7 +428,7 @@ function Dr(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Rr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class Gr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Nr(this, 1), this.$destroy = w;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Gr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!Ze(r))
|
|
462
462
|
return w;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,11 +471,11 @@ class Gr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const Ur = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
479
479
|
/*! *****************************************************************************
|
|
480
480
|
Copyright (c) Microsoft Corporation.
|
|
481
481
|
|
|
@@ -490,18 +490,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
490
490
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
491
491
|
PERFORMANCE OF THIS SOFTWARE.
|
|
492
492
|
***************************************************************************** */
|
|
493
|
-
var
|
|
494
|
-
return
|
|
493
|
+
var Ce = function(e, t) {
|
|
494
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
495
495
|
r.__proto__ = n;
|
|
496
496
|
} || function(r, n) {
|
|
497
497
|
for (var i in n)
|
|
498
498
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
499
|
-
},
|
|
499
|
+
}, Ce(e, t);
|
|
500
500
|
};
|
|
501
501
|
function L(e, t) {
|
|
502
502
|
if (typeof t != "function" && t !== null)
|
|
503
503
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
504
|
-
|
|
504
|
+
Ce(e, t);
|
|
505
505
|
function r() {
|
|
506
506
|
this.constructor = e;
|
|
507
507
|
}
|
|
@@ -517,7 +517,7 @@ var g = function() {
|
|
|
517
517
|
return t;
|
|
518
518
|
}, g.apply(this, arguments);
|
|
519
519
|
};
|
|
520
|
-
function
|
|
520
|
+
function Dr(e, t) {
|
|
521
521
|
var r = {};
|
|
522
522
|
for (var n in e)
|
|
523
523
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -526,7 +526,7 @@ function jr(e, t) {
|
|
|
526
526
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
527
527
|
return r;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function $e(e) {
|
|
530
530
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
531
531
|
if (r)
|
|
532
532
|
return r.call(e);
|
|
@@ -538,7 +538,7 @@ function Re(e) {
|
|
|
538
538
|
};
|
|
539
539
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Re(e, t) {
|
|
542
542
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
543
543
|
if (!r)
|
|
544
544
|
return e;
|
|
@@ -567,13 +567,13 @@ function V(e, t, r) {
|
|
|
567
567
|
function I(e) {
|
|
568
568
|
return typeof e == "function";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Nt(e) {
|
|
571
571
|
var t = function(n) {
|
|
572
572
|
Error.call(n), n.stack = new Error().stack;
|
|
573
573
|
}, r = e(t);
|
|
574
574
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
575
575
|
}
|
|
576
|
-
var Be =
|
|
576
|
+
var Be = Nt(function(e) {
|
|
577
577
|
return function(r) {
|
|
578
578
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
579
579
|
` + r.map(function(n, i) {
|
|
@@ -582,7 +582,7 @@ var Be = Ct(function(e) {
|
|
|
582
582
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
583
583
|
};
|
|
584
584
|
});
|
|
585
|
-
function
|
|
585
|
+
function Ue(e, t) {
|
|
586
586
|
if (e) {
|
|
587
587
|
var r = e.indexOf(t);
|
|
588
588
|
0 <= r && e.splice(r, 1);
|
|
@@ -600,7 +600,7 @@ var ye = function() {
|
|
|
600
600
|
if (s)
|
|
601
601
|
if (this._parentage = null, Array.isArray(s))
|
|
602
602
|
try {
|
|
603
|
-
for (var a =
|
|
603
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
604
604
|
var u = h.value;
|
|
605
605
|
u.remove(this);
|
|
606
606
|
}
|
|
@@ -623,23 +623,23 @@ var ye = function() {
|
|
|
623
623
|
} catch (v) {
|
|
624
624
|
o = v instanceof Be ? v.errors : [v];
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
if (
|
|
626
|
+
var c = this._finalizers;
|
|
627
|
+
if (c) {
|
|
628
628
|
this._finalizers = null;
|
|
629
629
|
try {
|
|
630
|
-
for (var
|
|
631
|
-
var
|
|
630
|
+
for (var f = $e(c), d = f.next(); !d.done; d = f.next()) {
|
|
631
|
+
var p = d.value;
|
|
632
632
|
try {
|
|
633
|
-
|
|
633
|
+
it(p);
|
|
634
634
|
} catch (v) {
|
|
635
|
-
o = o != null ? o : [], v instanceof Be ? o = V(V([],
|
|
635
|
+
o = o != null ? o : [], v instanceof Be ? o = V(V([], Re(o)), Re(v.errors)) : o.push(v);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
} catch (v) {
|
|
639
639
|
n = { error: v };
|
|
640
640
|
} finally {
|
|
641
641
|
try {
|
|
642
|
-
|
|
642
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
643
643
|
} finally {
|
|
644
644
|
if (n)
|
|
645
645
|
throw n.error;
|
|
@@ -653,7 +653,7 @@ var ye = function() {
|
|
|
653
653
|
var r;
|
|
654
654
|
if (t && t !== this)
|
|
655
655
|
if (this.closed)
|
|
656
|
-
|
|
656
|
+
it(t);
|
|
657
657
|
else {
|
|
658
658
|
if (t instanceof e) {
|
|
659
659
|
if (t.closed || t._hasParent(this))
|
|
@@ -670,56 +670,56 @@ var ye = function() {
|
|
|
670
670
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
671
671
|
}, e.prototype._removeParent = function(t) {
|
|
672
672
|
var r = this._parentage;
|
|
673
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
673
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
674
674
|
}, e.prototype.remove = function(t) {
|
|
675
675
|
var r = this._finalizers;
|
|
676
|
-
r &&
|
|
676
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
677
677
|
}, e.EMPTY = function() {
|
|
678
678
|
var t = new e();
|
|
679
679
|
return t.closed = !0, t;
|
|
680
680
|
}(), e;
|
|
681
|
-
}(),
|
|
682
|
-
function
|
|
681
|
+
}(), Mt = ye.EMPTY;
|
|
682
|
+
function Ct(e) {
|
|
683
683
|
return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function it(e) {
|
|
686
686
|
I(e) ? e() : e.unsubscribe();
|
|
687
687
|
}
|
|
688
|
-
var
|
|
688
|
+
var Gr = {
|
|
689
689
|
onUnhandledError: null,
|
|
690
690
|
onStoppedNotification: null,
|
|
691
691
|
Promise: void 0,
|
|
692
692
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
693
693
|
useDeprecatedNextContext: !1
|
|
694
|
-
},
|
|
694
|
+
}, Fr = {
|
|
695
695
|
setTimeout: function(e, t) {
|
|
696
696
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
697
697
|
r[n - 2] = arguments[n];
|
|
698
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
698
|
+
return setTimeout.apply(void 0, V([e, t], Re(r)));
|
|
699
699
|
},
|
|
700
700
|
clearTimeout: function(e) {
|
|
701
701
|
return clearTimeout(e);
|
|
702
702
|
},
|
|
703
703
|
delegate: void 0
|
|
704
704
|
};
|
|
705
|
-
function
|
|
706
|
-
|
|
705
|
+
function jr(e) {
|
|
706
|
+
Fr.setTimeout(function() {
|
|
707
707
|
throw e;
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function ot() {
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function ce(e) {
|
|
713
713
|
e();
|
|
714
714
|
}
|
|
715
|
-
var
|
|
715
|
+
var $t = function(e) {
|
|
716
716
|
L(t, e);
|
|
717
717
|
function t(r) {
|
|
718
718
|
var n = e.call(this) || this;
|
|
719
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
719
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Xr, n;
|
|
720
720
|
}
|
|
721
721
|
return t.create = function(r, n, i) {
|
|
722
|
-
return new
|
|
722
|
+
return new De(r, n, i);
|
|
723
723
|
}, t.prototype.next = function(r) {
|
|
724
724
|
this.isStopped || this._next(r);
|
|
725
725
|
}, t.prototype.error = function(r) {
|
|
@@ -743,11 +743,7 @@ var Dt = function(e) {
|
|
|
743
743
|
this.unsubscribe();
|
|
744
744
|
}
|
|
745
745
|
}, t;
|
|
746
|
-
}(ye),
|
|
747
|
-
function we(e, t) {
|
|
748
|
-
return Xr.call(e, t);
|
|
749
|
-
}
|
|
750
|
-
var Wr = function() {
|
|
746
|
+
}(ye), kr = function() {
|
|
751
747
|
function e(t) {
|
|
752
748
|
this.partialObserver = t;
|
|
753
749
|
}
|
|
@@ -778,55 +774,43 @@ var Wr = function() {
|
|
|
778
774
|
he(r);
|
|
779
775
|
}
|
|
780
776
|
}, e;
|
|
781
|
-
}(),
|
|
777
|
+
}(), De = function(e) {
|
|
782
778
|
L(t, e);
|
|
783
779
|
function t(r, n, i) {
|
|
784
780
|
var o = e.call(this) || this, s;
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
};
|
|
791
|
-
else {
|
|
792
|
-
var a;
|
|
793
|
-
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
794
|
-
return o.unsubscribe();
|
|
795
|
-
}, s = {
|
|
796
|
-
next: r.next && we(r.next, a),
|
|
797
|
-
error: r.error && we(r.error, a),
|
|
798
|
-
complete: r.complete && we(r.complete, a)
|
|
799
|
-
}) : s = r;
|
|
800
|
-
}
|
|
801
|
-
return o.destination = new Wr(s), o;
|
|
781
|
+
return I(r) || !r ? s = {
|
|
782
|
+
next: r != null ? r : void 0,
|
|
783
|
+
error: n != null ? n : void 0,
|
|
784
|
+
complete: i != null ? i : void 0
|
|
785
|
+
} : s = r, o.destination = new kr(s), o;
|
|
802
786
|
}
|
|
803
787
|
return t;
|
|
804
|
-
}(
|
|
788
|
+
}($t);
|
|
805
789
|
function he(e) {
|
|
806
|
-
|
|
790
|
+
jr(e);
|
|
807
791
|
}
|
|
808
|
-
function
|
|
792
|
+
function Vr(e) {
|
|
809
793
|
throw e;
|
|
810
794
|
}
|
|
811
|
-
var
|
|
795
|
+
var Xr = {
|
|
812
796
|
closed: !0,
|
|
813
|
-
next:
|
|
814
|
-
error:
|
|
815
|
-
complete:
|
|
816
|
-
},
|
|
797
|
+
next: ot,
|
|
798
|
+
error: Vr,
|
|
799
|
+
complete: ot
|
|
800
|
+
}, Wr = function() {
|
|
817
801
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
818
802
|
}();
|
|
819
|
-
function
|
|
803
|
+
function zr(e) {
|
|
820
804
|
return e;
|
|
821
805
|
}
|
|
822
|
-
function
|
|
823
|
-
return e.length === 0 ?
|
|
806
|
+
function Zr(e) {
|
|
807
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
824
808
|
return e.reduce(function(n, i) {
|
|
825
809
|
return i(n);
|
|
826
810
|
}, r);
|
|
827
811
|
};
|
|
828
812
|
}
|
|
829
|
-
var
|
|
813
|
+
var st = function() {
|
|
830
814
|
function e(t) {
|
|
831
815
|
t && (this._subscribe = t);
|
|
832
816
|
}
|
|
@@ -834,8 +818,8 @@ var ut = function() {
|
|
|
834
818
|
var r = new e();
|
|
835
819
|
return r.source = this, r.operator = t, r;
|
|
836
820
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
837
|
-
var i = this, o =
|
|
838
|
-
return
|
|
821
|
+
var i = this, o = Jr(t) ? t : new De(t, r, n);
|
|
822
|
+
return ce(function() {
|
|
839
823
|
var s = i, a = s.operator, h = s.source;
|
|
840
824
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
841
825
|
}), o;
|
|
@@ -847,8 +831,8 @@ var ut = function() {
|
|
|
847
831
|
}
|
|
848
832
|
}, e.prototype.forEach = function(t, r) {
|
|
849
833
|
var n = this;
|
|
850
|
-
return r =
|
|
851
|
-
var s = new
|
|
834
|
+
return r = at(r), new r(function(i, o) {
|
|
835
|
+
var s = new De({
|
|
852
836
|
next: function(a) {
|
|
853
837
|
try {
|
|
854
838
|
t(a);
|
|
@@ -864,15 +848,15 @@ var ut = function() {
|
|
|
864
848
|
}, e.prototype._subscribe = function(t) {
|
|
865
849
|
var r;
|
|
866
850
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
867
|
-
}, e.prototype[
|
|
851
|
+
}, e.prototype[Wr] = function() {
|
|
868
852
|
return this;
|
|
869
853
|
}, e.prototype.pipe = function() {
|
|
870
854
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
871
855
|
t[r] = arguments[r];
|
|
872
|
-
return
|
|
856
|
+
return Zr(t)(this);
|
|
873
857
|
}, e.prototype.toPromise = function(t) {
|
|
874
858
|
var r = this;
|
|
875
|
-
return t =
|
|
859
|
+
return t = at(t), new t(function(n, i) {
|
|
876
860
|
var o;
|
|
877
861
|
r.subscribe(function(s) {
|
|
878
862
|
return o = s;
|
|
@@ -886,40 +870,40 @@ var ut = function() {
|
|
|
886
870
|
return new e(t);
|
|
887
871
|
}, e;
|
|
888
872
|
}();
|
|
889
|
-
function
|
|
873
|
+
function at(e) {
|
|
890
874
|
var t;
|
|
891
|
-
return (t = e != null ? e :
|
|
875
|
+
return (t = e != null ? e : Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
892
876
|
}
|
|
893
|
-
function
|
|
877
|
+
function Qr(e) {
|
|
894
878
|
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
895
879
|
}
|
|
896
|
-
function
|
|
897
|
-
return e && e instanceof
|
|
880
|
+
function Jr(e) {
|
|
881
|
+
return e && e instanceof $t || Qr(e) && Ct(e);
|
|
898
882
|
}
|
|
899
|
-
var
|
|
883
|
+
var Yr = Nt(function(e) {
|
|
900
884
|
return function() {
|
|
901
885
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
902
886
|
};
|
|
903
|
-
}),
|
|
887
|
+
}), Rt = function(e) {
|
|
904
888
|
L(t, e);
|
|
905
889
|
function t() {
|
|
906
890
|
var r = e.call(this) || this;
|
|
907
891
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
908
892
|
}
|
|
909
893
|
return t.prototype.lift = function(r) {
|
|
910
|
-
var n = new
|
|
894
|
+
var n = new ut(this, this);
|
|
911
895
|
return n.operator = r, n;
|
|
912
896
|
}, t.prototype._throwIfClosed = function() {
|
|
913
897
|
if (this.closed)
|
|
914
|
-
throw new
|
|
898
|
+
throw new Yr();
|
|
915
899
|
}, t.prototype.next = function(r) {
|
|
916
900
|
var n = this;
|
|
917
|
-
|
|
901
|
+
ce(function() {
|
|
918
902
|
var i, o;
|
|
919
903
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
920
904
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
921
905
|
try {
|
|
922
|
-
for (var s =
|
|
906
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
923
907
|
var h = a.value;
|
|
924
908
|
h.next(r);
|
|
925
909
|
}
|
|
@@ -937,7 +921,7 @@ var en = Ct(function(e) {
|
|
|
937
921
|
});
|
|
938
922
|
}, t.prototype.error = function(r) {
|
|
939
923
|
var n = this;
|
|
940
|
-
|
|
924
|
+
ce(function() {
|
|
941
925
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
942
926
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
943
927
|
for (var i = n.observers; i.length; )
|
|
@@ -946,7 +930,7 @@ var en = Ct(function(e) {
|
|
|
946
930
|
});
|
|
947
931
|
}, t.prototype.complete = function() {
|
|
948
932
|
var r = this;
|
|
949
|
-
|
|
933
|
+
ce(function() {
|
|
950
934
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
951
935
|
r.isStopped = !0;
|
|
952
936
|
for (var n = r.observers; n.length; )
|
|
@@ -968,19 +952,19 @@ var en = Ct(function(e) {
|
|
|
968
952
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
969
953
|
}, t.prototype._innerSubscribe = function(r) {
|
|
970
954
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
971
|
-
return o || s ?
|
|
972
|
-
n.currentObservers = null,
|
|
955
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
956
|
+
n.currentObservers = null, Ue(a, r);
|
|
973
957
|
}));
|
|
974
958
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
975
959
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
976
960
|
i ? r.error(o) : s && r.complete();
|
|
977
961
|
}, t.prototype.asObservable = function() {
|
|
978
|
-
var r = new
|
|
962
|
+
var r = new st();
|
|
979
963
|
return r.source = this, r;
|
|
980
964
|
}, t.create = function(r, n) {
|
|
981
|
-
return new
|
|
965
|
+
return new ut(r, n);
|
|
982
966
|
}, t;
|
|
983
|
-
}(
|
|
967
|
+
}(st), ut = function(e) {
|
|
984
968
|
L(t, e);
|
|
985
969
|
function t(r, n) {
|
|
986
970
|
var i = e.call(this) || this;
|
|
@@ -997,17 +981,17 @@ var en = Ct(function(e) {
|
|
|
997
981
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
998
982
|
}, t.prototype._subscribe = function(r) {
|
|
999
983
|
var n, i;
|
|
1000
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
984
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
1001
985
|
}, t;
|
|
1002
|
-
}(
|
|
986
|
+
}(Rt), Ut = {
|
|
1003
987
|
now: function() {
|
|
1004
|
-
return (
|
|
988
|
+
return (Ut.delegate || Date).now();
|
|
1005
989
|
},
|
|
1006
990
|
delegate: void 0
|
|
1007
|
-
},
|
|
991
|
+
}, qr = function(e) {
|
|
1008
992
|
L(t, e);
|
|
1009
993
|
function t(r, n, i) {
|
|
1010
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
994
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
1011
995
|
var o = e.call(this) || this;
|
|
1012
996
|
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;
|
|
1013
997
|
}
|
|
@@ -1027,15 +1011,15 @@ var en = Ct(function(e) {
|
|
|
1027
1011
|
u && o.splice(0, u + 1);
|
|
1028
1012
|
}
|
|
1029
1013
|
}, t;
|
|
1030
|
-
}(
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
const r = new
|
|
1034
|
-
|
|
1014
|
+
}(Rt);
|
|
1015
|
+
const ht = [], lt = {}, Kr = (e, t = 0) => {
|
|
1016
|
+
if (ht.indexOf(e) == -1) {
|
|
1017
|
+
const r = new qr(t);
|
|
1018
|
+
lt[e] = r, ht.push(e);
|
|
1035
1019
|
}
|
|
1036
|
-
return
|
|
1020
|
+
return lt[e];
|
|
1037
1021
|
}, F = [];
|
|
1038
|
-
function
|
|
1022
|
+
function en(e, t) {
|
|
1039
1023
|
return {
|
|
1040
1024
|
subscribe: ve(e, t).subscribe
|
|
1041
1025
|
};
|
|
@@ -1044,7 +1028,7 @@ function ve(e, t = w) {
|
|
|
1044
1028
|
let r;
|
|
1045
1029
|
const n = /* @__PURE__ */ new Set();
|
|
1046
1030
|
function i(a) {
|
|
1047
|
-
if (
|
|
1031
|
+
if (At(e, a) && (e = a, r)) {
|
|
1048
1032
|
const h = !F.length;
|
|
1049
1033
|
for (const u of n)
|
|
1050
1034
|
u[1](), F.push(u, e);
|
|
@@ -1071,96 +1055,96 @@ function J(e, t, r) {
|
|
|
1071
1055
|
if (!i.every(Boolean))
|
|
1072
1056
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1073
1057
|
const o = t.length < 2;
|
|
1074
|
-
return
|
|
1058
|
+
return en(r, (s, a) => {
|
|
1075
1059
|
let h = !1;
|
|
1076
1060
|
const u = [];
|
|
1077
|
-
let l = 0,
|
|
1078
|
-
const
|
|
1061
|
+
let l = 0, c = w;
|
|
1062
|
+
const f = () => {
|
|
1079
1063
|
if (l)
|
|
1080
1064
|
return;
|
|
1081
|
-
|
|
1082
|
-
const
|
|
1083
|
-
o ? s(
|
|
1084
|
-
},
|
|
1085
|
-
(
|
|
1086
|
-
|
|
1065
|
+
c();
|
|
1066
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1067
|
+
o ? s(p) : c = Ze(p) ? p : w;
|
|
1068
|
+
}, d = i.map(
|
|
1069
|
+
(p, v) => Pt(
|
|
1070
|
+
p,
|
|
1087
1071
|
(B) => {
|
|
1088
|
-
u[v] = B, l &= ~(1 << v), h &&
|
|
1072
|
+
u[v] = B, l &= ~(1 << v), h && f();
|
|
1089
1073
|
},
|
|
1090
1074
|
() => {
|
|
1091
1075
|
l |= 1 << v;
|
|
1092
1076
|
}
|
|
1093
1077
|
)
|
|
1094
1078
|
);
|
|
1095
|
-
return h = !0,
|
|
1096
|
-
oe(
|
|
1079
|
+
return h = !0, f(), function() {
|
|
1080
|
+
oe(d), c(), h = !1;
|
|
1097
1081
|
};
|
|
1098
1082
|
});
|
|
1099
1083
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return e
|
|
1084
|
+
function tn(e) {
|
|
1085
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1102
1086
|
}
|
|
1103
|
-
var
|
|
1104
|
-
return
|
|
1087
|
+
var rn = function(t) {
|
|
1088
|
+
return nn(t) && !on(t);
|
|
1105
1089
|
};
|
|
1106
|
-
function
|
|
1090
|
+
function nn(e) {
|
|
1107
1091
|
return !!e && typeof e == "object";
|
|
1108
1092
|
}
|
|
1109
|
-
function
|
|
1093
|
+
function on(e) {
|
|
1110
1094
|
var t = Object.prototype.toString.call(e);
|
|
1111
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1095
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
1112
1096
|
}
|
|
1113
|
-
var
|
|
1114
|
-
function
|
|
1115
|
-
return e.$$typeof ===
|
|
1097
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
1098
|
+
function un(e) {
|
|
1099
|
+
return e.$$typeof === an;
|
|
1116
1100
|
}
|
|
1117
|
-
function
|
|
1101
|
+
function hn(e) {
|
|
1118
1102
|
return Array.isArray(e) ? [] : {};
|
|
1119
1103
|
}
|
|
1120
1104
|
function ne(e, t) {
|
|
1121
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1105
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(hn(e), e, t) : e;
|
|
1122
1106
|
}
|
|
1123
|
-
function
|
|
1107
|
+
function ln(e, t, r) {
|
|
1124
1108
|
return e.concat(t).map(function(n) {
|
|
1125
1109
|
return ne(n, r);
|
|
1126
1110
|
});
|
|
1127
1111
|
}
|
|
1128
|
-
function
|
|
1112
|
+
function fn(e, t) {
|
|
1129
1113
|
if (!t.customMerge)
|
|
1130
1114
|
return X;
|
|
1131
1115
|
var r = t.customMerge(e);
|
|
1132
1116
|
return typeof r == "function" ? r : X;
|
|
1133
1117
|
}
|
|
1134
|
-
function
|
|
1118
|
+
function cn(e) {
|
|
1135
1119
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1136
1120
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1137
1121
|
}) : [];
|
|
1138
1122
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return Object.keys(e).concat(
|
|
1123
|
+
function ft(e) {
|
|
1124
|
+
return Object.keys(e).concat(cn(e));
|
|
1141
1125
|
}
|
|
1142
|
-
function
|
|
1126
|
+
function Dt(e, t) {
|
|
1143
1127
|
try {
|
|
1144
1128
|
return t in e;
|
|
1145
1129
|
} catch (r) {
|
|
1146
1130
|
return !1;
|
|
1147
1131
|
}
|
|
1148
1132
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1133
|
+
function dn(e, t) {
|
|
1134
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1151
1135
|
}
|
|
1152
|
-
function
|
|
1136
|
+
function pn(e, t, r) {
|
|
1153
1137
|
var n = {};
|
|
1154
|
-
return r.isMergeableObject(e) &&
|
|
1138
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1155
1139
|
n[i] = ne(e[i], r);
|
|
1156
|
-
}),
|
|
1157
|
-
|
|
1140
|
+
}), ft(t).forEach(function(i) {
|
|
1141
|
+
dn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1158
1142
|
}), n;
|
|
1159
1143
|
}
|
|
1160
1144
|
function X(e, t, r) {
|
|
1161
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1145
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1162
1146
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1163
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1147
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ne(t, r);
|
|
1164
1148
|
}
|
|
1165
1149
|
X.all = function(t, r) {
|
|
1166
1150
|
if (!Array.isArray(t))
|
|
@@ -1169,107 +1153,109 @@ X.all = function(t, r) {
|
|
|
1169
1153
|
return X(n, i, r);
|
|
1170
1154
|
}, {});
|
|
1171
1155
|
};
|
|
1172
|
-
var
|
|
1173
|
-
const
|
|
1174
|
-
function
|
|
1175
|
-
var r = t && t.cache ? t.cache :
|
|
1156
|
+
var mn = X, bn = mn;
|
|
1157
|
+
const gn = /* @__PURE__ */ tn(bn);
|
|
1158
|
+
function we(e, t) {
|
|
1159
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
|
|
1176
1160
|
return i(e, {
|
|
1177
1161
|
cache: r,
|
|
1178
1162
|
serializer: n
|
|
1179
1163
|
});
|
|
1180
1164
|
}
|
|
1181
|
-
function
|
|
1165
|
+
function yn(e) {
|
|
1182
1166
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1183
1167
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var i =
|
|
1168
|
+
function Gt(e, t, r, n) {
|
|
1169
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1186
1170
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1187
1171
|
}
|
|
1188
|
-
function
|
|
1172
|
+
function Ft(e, t, r) {
|
|
1189
1173
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1190
1174
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1191
1175
|
}
|
|
1192
|
-
function
|
|
1176
|
+
function Qe(e, t, r, n, i) {
|
|
1193
1177
|
return r.bind(t, e, n, i);
|
|
1194
1178
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var r = e.length === 1 ?
|
|
1197
|
-
return
|
|
1179
|
+
function vn(e, t) {
|
|
1180
|
+
var r = e.length === 1 ? Gt : Ft;
|
|
1181
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1198
1182
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1183
|
+
function xn(e, t) {
|
|
1184
|
+
return Qe(e, this, Ft, t.cache.create(), t.serializer);
|
|
1201
1185
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1186
|
+
function _n(e, t) {
|
|
1187
|
+
return Qe(e, this, Gt, t.cache.create(), t.serializer);
|
|
1204
1188
|
}
|
|
1205
|
-
var
|
|
1189
|
+
var En = function() {
|
|
1206
1190
|
return JSON.stringify(arguments);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1191
|
+
}, Sn = (
|
|
1192
|
+
/** @class */
|
|
1193
|
+
function() {
|
|
1194
|
+
function e() {
|
|
1195
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1196
|
+
}
|
|
1197
|
+
return e.prototype.get = function(t) {
|
|
1198
|
+
return this.cache[t];
|
|
1199
|
+
}, e.prototype.set = function(t, r) {
|
|
1200
|
+
this.cache[t] = r;
|
|
1201
|
+
}, e;
|
|
1202
|
+
}()
|
|
1203
|
+
), Tn = {
|
|
1218
1204
|
create: function() {
|
|
1219
|
-
return new
|
|
1205
|
+
return new Sn();
|
|
1220
1206
|
}
|
|
1221
|
-
},
|
|
1222
|
-
variadic:
|
|
1223
|
-
monadic:
|
|
1207
|
+
}, Ae = {
|
|
1208
|
+
variadic: xn,
|
|
1209
|
+
monadic: _n
|
|
1224
1210
|
}, m;
|
|
1225
1211
|
(function(e) {
|
|
1226
1212
|
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";
|
|
1227
1213
|
})(m || (m = {}));
|
|
1228
|
-
var
|
|
1214
|
+
var x;
|
|
1229
1215
|
(function(e) {
|
|
1230
1216
|
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";
|
|
1231
|
-
})(
|
|
1217
|
+
})(x || (x = {}));
|
|
1232
1218
|
var W;
|
|
1233
1219
|
(function(e) {
|
|
1234
1220
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1235
1221
|
})(W || (W = {}));
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1222
|
+
function ct(e) {
|
|
1223
|
+
return e.type === x.literal;
|
|
1238
1224
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1225
|
+
function Hn(e) {
|
|
1226
|
+
return e.type === x.argument;
|
|
1241
1227
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1228
|
+
function jt(e) {
|
|
1229
|
+
return e.type === x.number;
|
|
1244
1230
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1231
|
+
function kt(e) {
|
|
1232
|
+
return e.type === x.date;
|
|
1247
1233
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1234
|
+
function Vt(e) {
|
|
1235
|
+
return e.type === x.time;
|
|
1250
1236
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1237
|
+
function Xt(e) {
|
|
1238
|
+
return e.type === x.select;
|
|
1253
1239
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1240
|
+
function Wt(e) {
|
|
1241
|
+
return e.type === x.plural;
|
|
1256
1242
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1243
|
+
function Bn(e) {
|
|
1244
|
+
return e.type === x.pound;
|
|
1259
1245
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1246
|
+
function zt(e) {
|
|
1247
|
+
return e.type === x.tag;
|
|
1262
1248
|
}
|
|
1263
|
-
function
|
|
1249
|
+
function Zt(e) {
|
|
1264
1250
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1265
1251
|
}
|
|
1266
|
-
function
|
|
1252
|
+
function Ge(e) {
|
|
1267
1253
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1268
1254
|
}
|
|
1269
|
-
var
|
|
1270
|
-
function
|
|
1255
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
1256
|
+
function An(e) {
|
|
1271
1257
|
var t = {};
|
|
1272
|
-
return e.replace(
|
|
1258
|
+
return e.replace(wn, function(r) {
|
|
1273
1259
|
var n = r.length;
|
|
1274
1260
|
switch (r[0]) {
|
|
1275
1261
|
case "G":
|
|
@@ -1358,36 +1344,36 @@ function On(e) {
|
|
|
1358
1344
|
return "";
|
|
1359
1345
|
}), t;
|
|
1360
1346
|
}
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1347
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1348
|
+
function On(e) {
|
|
1363
1349
|
if (e.length === 0)
|
|
1364
1350
|
throw new Error("Number skeleton cannot be empty");
|
|
1365
|
-
for (var t = e.split(
|
|
1366
|
-
return
|
|
1351
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1352
|
+
return f.length > 0;
|
|
1367
1353
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1368
1354
|
var o = i[n], s = o.split("/");
|
|
1369
1355
|
if (s.length === 0)
|
|
1370
1356
|
throw new Error("Invalid number skeleton");
|
|
1371
1357
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1372
|
-
var
|
|
1373
|
-
if (
|
|
1358
|
+
var c = l[u];
|
|
1359
|
+
if (c.length === 0)
|
|
1374
1360
|
throw new Error("Invalid number skeleton");
|
|
1375
1361
|
}
|
|
1376
1362
|
r.push({ stem: a, options: h });
|
|
1377
1363
|
}
|
|
1378
1364
|
return r;
|
|
1379
1365
|
}
|
|
1380
|
-
function
|
|
1366
|
+
function In(e) {
|
|
1381
1367
|
return e.replace(/^(.*?)-/, "");
|
|
1382
1368
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1369
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1370
|
+
function pt(e) {
|
|
1385
1371
|
var t = {};
|
|
1386
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1372
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1387
1373
|
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)), "";
|
|
1388
1374
|
}), t;
|
|
1389
1375
|
}
|
|
1390
|
-
function
|
|
1376
|
+
function qt(e) {
|
|
1391
1377
|
switch (e) {
|
|
1392
1378
|
case "sign-auto":
|
|
1393
1379
|
return {
|
|
@@ -1427,7 +1413,7 @@ function tr(e) {
|
|
|
1427
1413
|
};
|
|
1428
1414
|
}
|
|
1429
1415
|
}
|
|
1430
|
-
function
|
|
1416
|
+
function Nn(e) {
|
|
1431
1417
|
var t;
|
|
1432
1418
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1433
1419
|
notation: "engineering"
|
|
@@ -1435,17 +1421,17 @@ function Cn(e) {
|
|
|
1435
1421
|
notation: "scientific"
|
|
1436
1422
|
}, e = e.slice(1)), t) {
|
|
1437
1423
|
var r = e.slice(0, 2);
|
|
1438
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1424
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1439
1425
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1440
1426
|
t.minimumIntegerDigits = e.length;
|
|
1441
1427
|
}
|
|
1442
1428
|
return t;
|
|
1443
1429
|
}
|
|
1444
|
-
function
|
|
1445
|
-
var t = {}, r =
|
|
1430
|
+
function mt(e) {
|
|
1431
|
+
var t = {}, r = qt(e);
|
|
1446
1432
|
return r || t;
|
|
1447
1433
|
}
|
|
1448
|
-
function
|
|
1434
|
+
function Mn(e) {
|
|
1449
1435
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1450
1436
|
var i = n[r];
|
|
1451
1437
|
switch (i.stem) {
|
|
@@ -1469,7 +1455,7 @@ function $n(e) {
|
|
|
1469
1455
|
continue;
|
|
1470
1456
|
case "measure-unit":
|
|
1471
1457
|
case "unit":
|
|
1472
|
-
t.style = "unit", t.unit =
|
|
1458
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1473
1459
|
continue;
|
|
1474
1460
|
case "compact-short":
|
|
1475
1461
|
case "K":
|
|
@@ -1481,12 +1467,12 @@ function $n(e) {
|
|
|
1481
1467
|
continue;
|
|
1482
1468
|
case "scientific":
|
|
1483
1469
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1484
|
-
return g(g({}, h),
|
|
1470
|
+
return g(g({}, h), mt(u));
|
|
1485
1471
|
}, {}));
|
|
1486
1472
|
continue;
|
|
1487
1473
|
case "engineering":
|
|
1488
1474
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1489
|
-
return g(g({}, h),
|
|
1475
|
+
return g(g({}, h), mt(u));
|
|
1490
1476
|
}, {}));
|
|
1491
1477
|
continue;
|
|
1492
1478
|
case "notation-simple":
|
|
@@ -1531,40 +1517,40 @@ function $n(e) {
|
|
|
1531
1517
|
case "integer-width":
|
|
1532
1518
|
if (i.options.length > 1)
|
|
1533
1519
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1534
|
-
i.options[0].replace(
|
|
1520
|
+
i.options[0].replace(Ln, function(h, u, l, c, f, d) {
|
|
1535
1521
|
if (u)
|
|
1536
1522
|
t.minimumIntegerDigits = l.length;
|
|
1537
1523
|
else {
|
|
1538
|
-
if (
|
|
1524
|
+
if (c && f)
|
|
1539
1525
|
throw new Error("We currently do not support maximum integer digits");
|
|
1540
|
-
if (
|
|
1526
|
+
if (d)
|
|
1541
1527
|
throw new Error("We currently do not support exact integer digits");
|
|
1542
1528
|
}
|
|
1543
1529
|
return "";
|
|
1544
1530
|
});
|
|
1545
1531
|
continue;
|
|
1546
1532
|
}
|
|
1547
|
-
if (
|
|
1533
|
+
if (Yt.test(i.stem)) {
|
|
1548
1534
|
t.minimumIntegerDigits = i.stem.length;
|
|
1549
1535
|
continue;
|
|
1550
1536
|
}
|
|
1551
|
-
if (
|
|
1537
|
+
if (dt.test(i.stem)) {
|
|
1552
1538
|
if (i.options.length > 1)
|
|
1553
1539
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1554
|
-
i.stem.replace(
|
|
1555
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1540
|
+
i.stem.replace(dt, function(h, u, l, c, f, d) {
|
|
1541
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1556
1542
|
});
|
|
1557
1543
|
var o = i.options[0];
|
|
1558
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1544
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), pt(o)));
|
|
1559
1545
|
continue;
|
|
1560
1546
|
}
|
|
1561
|
-
if (
|
|
1562
|
-
t = g(g({}, t),
|
|
1547
|
+
if (Jt.test(i.stem)) {
|
|
1548
|
+
t = g(g({}, t), pt(i.stem));
|
|
1563
1549
|
continue;
|
|
1564
1550
|
}
|
|
1565
|
-
var s =
|
|
1551
|
+
var s = qt(i.stem);
|
|
1566
1552
|
s && (t = g(g({}, t), s));
|
|
1567
|
-
var a =
|
|
1553
|
+
var a = Nn(i.stem);
|
|
1568
1554
|
a && (t = g(g({}, t), a));
|
|
1569
1555
|
}
|
|
1570
1556
|
return t;
|
|
@@ -2984,13 +2970,13 @@ var le = {
|
|
|
2984
2970
|
"h"
|
|
2985
2971
|
]
|
|
2986
2972
|
};
|
|
2987
|
-
function
|
|
2973
|
+
function Cn(e, t) {
|
|
2988
2974
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2989
2975
|
var i = e.charAt(n);
|
|
2990
2976
|
if (i === "j") {
|
|
2991
2977
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2992
2978
|
o++, n++;
|
|
2993
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2979
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = $n(t);
|
|
2994
2980
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2995
2981
|
r += h;
|
|
2996
2982
|
for (; s-- > 0; )
|
|
@@ -3000,7 +2986,7 @@ function Rn(e, t) {
|
|
|
3000
2986
|
}
|
|
3001
2987
|
return r;
|
|
3002
2988
|
}
|
|
3003
|
-
function
|
|
2989
|
+
function $n(e) {
|
|
3004
2990
|
var t = e.hourCycle;
|
|
3005
2991
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3006
2992
|
e.hourCycles && // @ts-ignore
|
|
@@ -3022,20 +3008,20 @@ function Un(e) {
|
|
|
3022
3008
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3023
3009
|
return i[0];
|
|
3024
3010
|
}
|
|
3025
|
-
var
|
|
3011
|
+
var Pe, Rn = new RegExp("^".concat(Qt.source, "*")), Un = new RegExp("".concat(Qt.source, "*$"));
|
|
3026
3012
|
function b(e, t) {
|
|
3027
3013
|
return { start: e, end: t };
|
|
3028
3014
|
}
|
|
3029
|
-
var
|
|
3015
|
+
var Dn = !!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) {
|
|
3030
3016
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3031
|
-
},
|
|
3017
|
+
}, Fe = !0;
|
|
3032
3018
|
try {
|
|
3033
|
-
var
|
|
3034
|
-
|
|
3019
|
+
var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3020
|
+
Fe = ((Pe = zn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3035
3021
|
} catch (e) {
|
|
3036
|
-
|
|
3022
|
+
Fe = !1;
|
|
3037
3023
|
}
|
|
3038
|
-
var
|
|
3024
|
+
var bt = Dn ? (
|
|
3039
3025
|
// Native
|
|
3040
3026
|
function(t, r, n) {
|
|
3041
3027
|
return t.startsWith(r, n);
|
|
@@ -3045,7 +3031,7 @@ var yt = Fn ? (
|
|
|
3045
3031
|
function(t, r, n) {
|
|
3046
3032
|
return t.slice(n, n + r.length) === r;
|
|
3047
3033
|
}
|
|
3048
|
-
),
|
|
3034
|
+
), je = Gn ? String.fromCodePoint : (
|
|
3049
3035
|
// IE11
|
|
3050
3036
|
function() {
|
|
3051
3037
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3057,9 +3043,9 @@ var yt = Fn ? (
|
|
|
3057
3043
|
}
|
|
3058
3044
|
return n;
|
|
3059
3045
|
}
|
|
3060
|
-
),
|
|
3046
|
+
), gt = (
|
|
3061
3047
|
// native
|
|
3062
|
-
|
|
3048
|
+
Fn ? Object.fromEntries : (
|
|
3063
3049
|
// Ponyfill
|
|
3064
3050
|
function(t) {
|
|
3065
3051
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3069,7 +3055,7 @@ var yt = Fn ? (
|
|
|
3069
3055
|
return r;
|
|
3070
3056
|
}
|
|
3071
3057
|
)
|
|
3072
|
-
),
|
|
3058
|
+
), Kt = jn ? (
|
|
3073
3059
|
// Native
|
|
3074
3060
|
function(t, r) {
|
|
3075
3061
|
return t.codePointAt(r);
|
|
@@ -3083,7 +3069,7 @@ var yt = Fn ? (
|
|
|
3083
3069
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3084
3070
|
}
|
|
3085
3071
|
}
|
|
3086
|
-
),
|
|
3072
|
+
), Zn = kn ? (
|
|
3087
3073
|
// Native
|
|
3088
3074
|
function(t) {
|
|
3089
3075
|
return t.trimStart();
|
|
@@ -3091,9 +3077,9 @@ var yt = Fn ? (
|
|
|
3091
3077
|
) : (
|
|
3092
3078
|
// Ponyfill
|
|
3093
3079
|
function(t) {
|
|
3094
|
-
return t.replace(
|
|
3080
|
+
return t.replace(Rn, "");
|
|
3095
3081
|
}
|
|
3096
|
-
),
|
|
3082
|
+
), Qn = Vn ? (
|
|
3097
3083
|
// Native
|
|
3098
3084
|
function(t) {
|
|
3099
3085
|
return t.trimEnd();
|
|
@@ -3101,32 +3087,32 @@ var yt = Fn ? (
|
|
|
3101
3087
|
) : (
|
|
3102
3088
|
// Ponyfill
|
|
3103
3089
|
function(t) {
|
|
3104
|
-
return t.replace(
|
|
3090
|
+
return t.replace(Un, "");
|
|
3105
3091
|
}
|
|
3106
3092
|
);
|
|
3107
|
-
function
|
|
3093
|
+
function er(e, t) {
|
|
3108
3094
|
return new RegExp(e, t);
|
|
3109
3095
|
}
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
var
|
|
3113
|
-
|
|
3096
|
+
var ke;
|
|
3097
|
+
if (Fe) {
|
|
3098
|
+
var yt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3099
|
+
ke = function(t, r) {
|
|
3114
3100
|
var n;
|
|
3115
|
-
|
|
3116
|
-
var i =
|
|
3101
|
+
yt.lastIndex = r;
|
|
3102
|
+
var i = yt.exec(t);
|
|
3117
3103
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3118
3104
|
};
|
|
3119
3105
|
} else
|
|
3120
|
-
|
|
3106
|
+
ke = function(t, r) {
|
|
3121
3107
|
for (var n = []; ; ) {
|
|
3122
|
-
var i =
|
|
3123
|
-
if (i === void 0 ||
|
|
3108
|
+
var i = Kt(t, r);
|
|
3109
|
+
if (i === void 0 || tr(i) || Kn(i))
|
|
3124
3110
|
break;
|
|
3125
3111
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3126
3112
|
}
|
|
3127
|
-
return
|
|
3113
|
+
return je.apply(void 0, n);
|
|
3128
3114
|
};
|
|
3129
|
-
var
|
|
3115
|
+
var Jn = (
|
|
3130
3116
|
/** @class */
|
|
3131
3117
|
function() {
|
|
3132
3118
|
function e(t, r) {
|
|
@@ -3150,14 +3136,14 @@ var qn = (
|
|
|
3150
3136
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3151
3137
|
var a = this.clonePosition();
|
|
3152
3138
|
this.bump(), i.push({
|
|
3153
|
-
type:
|
|
3139
|
+
type: x.pound,
|
|
3154
3140
|
location: b(a, this.clonePosition())
|
|
3155
3141
|
});
|
|
3156
3142
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3157
3143
|
if (n)
|
|
3158
3144
|
break;
|
|
3159
3145
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3160
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3146
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3161
3147
|
var s = this.parseTag(t, r);
|
|
3162
3148
|
if (s.err)
|
|
3163
3149
|
return s;
|
|
@@ -3178,7 +3164,7 @@ var qn = (
|
|
|
3178
3164
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3179
3165
|
return {
|
|
3180
3166
|
val: {
|
|
3181
|
-
type:
|
|
3167
|
+
type: x.literal,
|
|
3182
3168
|
value: "<".concat(i, "/>"),
|
|
3183
3169
|
location: b(n, this.clonePosition())
|
|
3184
3170
|
},
|
|
@@ -3190,12 +3176,12 @@ var qn = (
|
|
|
3190
3176
|
return o;
|
|
3191
3177
|
var s = o.val, a = this.clonePosition();
|
|
3192
3178
|
if (this.bumpIf("</")) {
|
|
3193
|
-
if (this.isEOF() || !
|
|
3179
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3194
3180
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3195
3181
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3196
3182
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3197
3183
|
val: {
|
|
3198
|
-
type:
|
|
3184
|
+
type: x.tag,
|
|
3199
3185
|
value: i,
|
|
3200
3186
|
children: s,
|
|
3201
3187
|
location: b(n, this.clonePosition())
|
|
@@ -3208,7 +3194,7 @@ var qn = (
|
|
|
3208
3194
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3209
3195
|
}, e.prototype.parseTagName = function() {
|
|
3210
3196
|
var t = this.offset();
|
|
3211
|
-
for (this.bump(); !this.isEOF() &&
|
|
3197
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3212
3198
|
this.bump();
|
|
3213
3199
|
return this.message.slice(t, this.offset());
|
|
3214
3200
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3232,12 +3218,12 @@ var qn = (
|
|
|
3232
3218
|
}
|
|
3233
3219
|
var h = b(n, this.clonePosition());
|
|
3234
3220
|
return {
|
|
3235
|
-
val: { type:
|
|
3221
|
+
val: { type: x.literal, value: i, location: h },
|
|
3236
3222
|
err: null
|
|
3237
3223
|
};
|
|
3238
3224
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3239
3225
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3240
|
-
!
|
|
3226
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3241
3227
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3242
3228
|
if (this.isEOF() || this.char() !== 39)
|
|
3243
3229
|
return null;
|
|
@@ -3271,12 +3257,12 @@ var qn = (
|
|
|
3271
3257
|
r.push(n);
|
|
3272
3258
|
this.bump();
|
|
3273
3259
|
}
|
|
3274
|
-
return
|
|
3260
|
+
return je.apply(void 0, r);
|
|
3275
3261
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3276
3262
|
if (this.isEOF())
|
|
3277
3263
|
return null;
|
|
3278
3264
|
var n = this.char();
|
|
3279
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3265
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3280
3266
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3281
3267
|
var n = this.clonePosition();
|
|
3282
3268
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3292,7 +3278,7 @@ var qn = (
|
|
|
3292
3278
|
case 125:
|
|
3293
3279
|
return this.bump(), {
|
|
3294
3280
|
val: {
|
|
3295
|
-
type:
|
|
3281
|
+
type: x.argument,
|
|
3296
3282
|
// value does not include the opening and closing braces.
|
|
3297
3283
|
value: i,
|
|
3298
3284
|
location: b(n, this.clonePosition())
|
|
@@ -3305,7 +3291,7 @@ var qn = (
|
|
|
3305
3291
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3306
3292
|
}
|
|
3307
3293
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3308
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3294
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3309
3295
|
this.bumpTo(i);
|
|
3310
3296
|
var o = this.clonePosition(), s = b(t, o);
|
|
3311
3297
|
return { value: n, location: s };
|
|
@@ -3321,47 +3307,47 @@ var qn = (
|
|
|
3321
3307
|
var u = null;
|
|
3322
3308
|
if (this.bumpIf(",")) {
|
|
3323
3309
|
this.bumpSpace();
|
|
3324
|
-
var l = this.clonePosition(),
|
|
3325
|
-
if (
|
|
3326
|
-
return
|
|
3327
|
-
var
|
|
3328
|
-
if (
|
|
3310
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3311
|
+
if (c.err)
|
|
3312
|
+
return c;
|
|
3313
|
+
var f = Qn(c.val);
|
|
3314
|
+
if (f.length === 0)
|
|
3329
3315
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3330
|
-
var
|
|
3331
|
-
u = { style:
|
|
3316
|
+
var d = b(l, this.clonePosition());
|
|
3317
|
+
u = { style: f, styleLocation: d };
|
|
3332
3318
|
}
|
|
3333
|
-
var
|
|
3334
|
-
if (
|
|
3335
|
-
return
|
|
3319
|
+
var p = this.tryParseArgumentClose(i);
|
|
3320
|
+
if (p.err)
|
|
3321
|
+
return p;
|
|
3336
3322
|
var v = b(i, this.clonePosition());
|
|
3337
|
-
if (u &&
|
|
3338
|
-
var B =
|
|
3323
|
+
if (u && bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3324
|
+
var B = Zn(u.style.slice(2));
|
|
3339
3325
|
if (a === "number") {
|
|
3340
|
-
var
|
|
3341
|
-
return
|
|
3342
|
-
val: { type:
|
|
3326
|
+
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3327
|
+
return c.err ? c : {
|
|
3328
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
|
3343
3329
|
err: null
|
|
3344
3330
|
};
|
|
3345
3331
|
} else {
|
|
3346
3332
|
if (B.length === 0)
|
|
3347
3333
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3348
3334
|
var $ = B;
|
|
3349
|
-
this.locale && ($ =
|
|
3350
|
-
var
|
|
3335
|
+
this.locale && ($ = Cn(B, this.locale));
|
|
3336
|
+
var f = {
|
|
3351
3337
|
type: W.dateTime,
|
|
3352
3338
|
pattern: $,
|
|
3353
3339
|
location: u.styleLocation,
|
|
3354
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3355
|
-
}, N = a === "date" ?
|
|
3340
|
+
parsedOptions: this.shouldParseSkeletons ? An($) : {}
|
|
3341
|
+
}, N = a === "date" ? x.date : x.time;
|
|
3356
3342
|
return {
|
|
3357
|
-
val: { type: N, value: n, location: v, style:
|
|
3343
|
+
val: { type: N, value: n, location: v, style: f },
|
|
3358
3344
|
err: null
|
|
3359
3345
|
};
|
|
3360
3346
|
}
|
|
3361
3347
|
}
|
|
3362
3348
|
return {
|
|
3363
3349
|
val: {
|
|
3364
|
-
type: a === "number" ?
|
|
3350
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3365
3351
|
value: n,
|
|
3366
3352
|
location: v,
|
|
3367
3353
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3372,40 +3358,40 @@ var qn = (
|
|
|
3372
3358
|
case "plural":
|
|
3373
3359
|
case "selectordinal":
|
|
3374
3360
|
case "select": {
|
|
3375
|
-
var
|
|
3361
|
+
var E = this.clonePosition();
|
|
3376
3362
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3377
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3363
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
|
|
3378
3364
|
this.bumpSpace();
|
|
3379
3365
|
var R = this.parseIdentifierIfPossible(), P = 0;
|
|
3380
3366
|
if (a !== "select" && R.value === "offset") {
|
|
3381
3367
|
if (!this.bumpIf(":"))
|
|
3382
3368
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3383
3369
|
this.bumpSpace();
|
|
3384
|
-
var
|
|
3385
|
-
if (
|
|
3386
|
-
return
|
|
3387
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P =
|
|
3370
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3371
|
+
if (c.err)
|
|
3372
|
+
return c;
|
|
3373
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
|
|
3388
3374
|
}
|
|
3389
3375
|
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3390
3376
|
if (D.err)
|
|
3391
3377
|
return D;
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3394
|
-
return
|
|
3378
|
+
var p = this.tryParseArgumentClose(i);
|
|
3379
|
+
if (p.err)
|
|
3380
|
+
return p;
|
|
3395
3381
|
var ue = b(i, this.clonePosition());
|
|
3396
3382
|
return a === "select" ? {
|
|
3397
3383
|
val: {
|
|
3398
|
-
type:
|
|
3384
|
+
type: x.select,
|
|
3399
3385
|
value: n,
|
|
3400
|
-
options:
|
|
3386
|
+
options: gt(D.val),
|
|
3401
3387
|
location: ue
|
|
3402
3388
|
},
|
|
3403
3389
|
err: null
|
|
3404
3390
|
} : {
|
|
3405
3391
|
val: {
|
|
3406
|
-
type:
|
|
3392
|
+
type: x.plural,
|
|
3407
3393
|
value: n,
|
|
3408
|
-
options:
|
|
3394
|
+
options: gt(D.val),
|
|
3409
3395
|
offset: P,
|
|
3410
3396
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3411
3397
|
location: ue
|
|
@@ -3456,7 +3442,7 @@ var qn = (
|
|
|
3456
3442
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3457
3443
|
var n = [];
|
|
3458
3444
|
try {
|
|
3459
|
-
n =
|
|
3445
|
+
n = On(t);
|
|
3460
3446
|
} catch (i) {
|
|
3461
3447
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3462
3448
|
}
|
|
@@ -3465,39 +3451,39 @@ var qn = (
|
|
|
3465
3451
|
type: W.number,
|
|
3466
3452
|
tokens: n,
|
|
3467
3453
|
location: r,
|
|
3468
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3454
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3469
3455
|
},
|
|
3470
3456
|
err: null
|
|
3471
3457
|
};
|
|
3472
3458
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3473
3459
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3474
3460
|
if (u.length === 0) {
|
|
3475
|
-
var
|
|
3461
|
+
var c = this.clonePosition();
|
|
3476
3462
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3477
|
-
var
|
|
3478
|
-
if (
|
|
3479
|
-
return
|
|
3480
|
-
l = b(
|
|
3463
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3464
|
+
if (f.err)
|
|
3465
|
+
return f;
|
|
3466
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3481
3467
|
} else
|
|
3482
3468
|
break;
|
|
3483
3469
|
}
|
|
3484
3470
|
if (h.has(u))
|
|
3485
3471
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3486
3472
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3487
|
-
var
|
|
3473
|
+
var d = this.clonePosition();
|
|
3488
3474
|
if (!this.bumpIf("{"))
|
|
3489
3475
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3490
|
-
var
|
|
3491
|
-
if (
|
|
3492
|
-
return
|
|
3493
|
-
var v = this.tryParseArgumentClose(
|
|
3476
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3477
|
+
if (p.err)
|
|
3478
|
+
return p;
|
|
3479
|
+
var v = this.tryParseArgumentClose(d);
|
|
3494
3480
|
if (v.err)
|
|
3495
3481
|
return v;
|
|
3496
3482
|
a.push([
|
|
3497
3483
|
u,
|
|
3498
3484
|
{
|
|
3499
|
-
value:
|
|
3500
|
-
location: b(
|
|
3485
|
+
value: p.val,
|
|
3486
|
+
location: b(d, this.clonePosition())
|
|
3501
3487
|
}
|
|
3502
3488
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3503
3489
|
}
|
|
@@ -3513,7 +3499,7 @@ var qn = (
|
|
|
3513
3499
|
break;
|
|
3514
3500
|
}
|
|
3515
3501
|
var h = b(i, this.clonePosition());
|
|
3516
|
-
return o ? (s *= n,
|
|
3502
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3517
3503
|
}, e.prototype.offset = function() {
|
|
3518
3504
|
return this.position.offset;
|
|
3519
3505
|
}, e.prototype.isEOF = function() {
|
|
@@ -3528,7 +3514,7 @@ var qn = (
|
|
|
3528
3514
|
var t = this.position.offset;
|
|
3529
3515
|
if (t >= this.message.length)
|
|
3530
3516
|
throw Error("out of bound");
|
|
3531
|
-
var r =
|
|
3517
|
+
var r = Kt(this.message, t);
|
|
3532
3518
|
if (r === void 0)
|
|
3533
3519
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3534
3520
|
return r;
|
|
@@ -3547,7 +3533,7 @@ var qn = (
|
|
|
3547
3533
|
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);
|
|
3548
3534
|
}
|
|
3549
3535
|
}, e.prototype.bumpIf = function(t) {
|
|
3550
|
-
if (
|
|
3536
|
+
if (bt(this.message, t, this.offset())) {
|
|
3551
3537
|
for (var r = 0; r < t.length; r++)
|
|
3552
3538
|
this.bump();
|
|
3553
3539
|
return !0;
|
|
@@ -3569,7 +3555,7 @@ var qn = (
|
|
|
3569
3555
|
break;
|
|
3570
3556
|
}
|
|
3571
3557
|
}, e.prototype.bumpSpace = function() {
|
|
3572
|
-
for (; !this.isEOF() &&
|
|
3558
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3573
3559
|
this.bump();
|
|
3574
3560
|
}, e.prototype.peek = function() {
|
|
3575
3561
|
if (this.isEOF())
|
|
@@ -3579,44 +3565,44 @@ var qn = (
|
|
|
3579
3565
|
}, e;
|
|
3580
3566
|
}()
|
|
3581
3567
|
);
|
|
3582
|
-
function
|
|
3568
|
+
function Ve(e) {
|
|
3583
3569
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3584
3570
|
}
|
|
3585
|
-
function
|
|
3586
|
-
return
|
|
3571
|
+
function Yn(e) {
|
|
3572
|
+
return Ve(e) || e === 47;
|
|
3587
3573
|
}
|
|
3588
|
-
function
|
|
3574
|
+
function qn(e) {
|
|
3589
3575
|
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;
|
|
3590
3576
|
}
|
|
3591
|
-
function
|
|
3577
|
+
function tr(e) {
|
|
3592
3578
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3593
3579
|
}
|
|
3594
|
-
function
|
|
3580
|
+
function Kn(e) {
|
|
3595
3581
|
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;
|
|
3596
3582
|
}
|
|
3597
|
-
function
|
|
3583
|
+
function Xe(e) {
|
|
3598
3584
|
e.forEach(function(t) {
|
|
3599
|
-
if (delete t.location,
|
|
3585
|
+
if (delete t.location, Xt(t) || Wt(t))
|
|
3600
3586
|
for (var r in t.options)
|
|
3601
|
-
delete t.options[r].location,
|
|
3587
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3602
3588
|
else
|
|
3603
|
-
|
|
3589
|
+
jt(t) && Zt(t.style) || (kt(t) || Vt(t)) && Ge(t.style) ? delete t.style.location : zt(t) && Xe(t.children);
|
|
3604
3590
|
});
|
|
3605
3591
|
}
|
|
3606
|
-
function
|
|
3592
|
+
function ei(e, t) {
|
|
3607
3593
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3608
|
-
var r = new
|
|
3594
|
+
var r = new Jn(e, t).parse();
|
|
3609
3595
|
if (r.err) {
|
|
3610
3596
|
var n = SyntaxError(m[r.err.kind]);
|
|
3611
3597
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3612
3598
|
}
|
|
3613
|
-
return t != null && t.captureLocation ||
|
|
3599
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3614
3600
|
}
|
|
3615
3601
|
var z;
|
|
3616
3602
|
(function(e) {
|
|
3617
3603
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3618
3604
|
})(z || (z = {}));
|
|
3619
|
-
var
|
|
3605
|
+
var xe = (
|
|
3620
3606
|
/** @class */
|
|
3621
3607
|
function(e) {
|
|
3622
3608
|
L(t, e);
|
|
@@ -3628,7 +3614,7 @@ var Ee = (
|
|
|
3628
3614
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3629
3615
|
}, t;
|
|
3630
3616
|
}(Error)
|
|
3631
|
-
),
|
|
3617
|
+
), vt = (
|
|
3632
3618
|
/** @class */
|
|
3633
3619
|
function(e) {
|
|
3634
3620
|
L(t, e);
|
|
@@ -3636,8 +3622,8 @@ var Ee = (
|
|
|
3636
3622
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3637
3623
|
}
|
|
3638
3624
|
return t;
|
|
3639
|
-
}(
|
|
3640
|
-
),
|
|
3625
|
+
}(xe)
|
|
3626
|
+
), ti = (
|
|
3641
3627
|
/** @class */
|
|
3642
3628
|
function(e) {
|
|
3643
3629
|
L(t, e);
|
|
@@ -3645,8 +3631,8 @@ var Ee = (
|
|
|
3645
3631
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3646
3632
|
}
|
|
3647
3633
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3634
|
+
}(xe)
|
|
3635
|
+
), ri = (
|
|
3650
3636
|
/** @class */
|
|
3651
3637
|
function(e) {
|
|
3652
3638
|
L(t, e);
|
|
@@ -3654,22 +3640,22 @@ var Ee = (
|
|
|
3654
3640
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3655
3641
|
}
|
|
3656
3642
|
return t;
|
|
3657
|
-
}(
|
|
3643
|
+
}(xe)
|
|
3658
3644
|
), _;
|
|
3659
3645
|
(function(e) {
|
|
3660
3646
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3661
3647
|
})(_ || (_ = {}));
|
|
3662
|
-
function
|
|
3648
|
+
function ni(e) {
|
|
3663
3649
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3664
3650
|
var n = t[t.length - 1];
|
|
3665
3651
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3666
3652
|
}, []);
|
|
3667
3653
|
}
|
|
3668
|
-
function
|
|
3654
|
+
function ii(e) {
|
|
3669
3655
|
return typeof e == "function";
|
|
3670
3656
|
}
|
|
3671
|
-
function
|
|
3672
|
-
if (e.length === 1 &&
|
|
3657
|
+
function de(e, t, r, n, i, o, s) {
|
|
3658
|
+
if (e.length === 1 && ct(e[0]))
|
|
3673
3659
|
return [
|
|
3674
3660
|
{
|
|
3675
3661
|
type: _.literal,
|
|
@@ -3678,60 +3664,60 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3678
3664
|
];
|
|
3679
3665
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3680
3666
|
var l = u[h];
|
|
3681
|
-
if (
|
|
3667
|
+
if (ct(l)) {
|
|
3682
3668
|
a.push({
|
|
3683
3669
|
type: _.literal,
|
|
3684
3670
|
value: l.value
|
|
3685
3671
|
});
|
|
3686
3672
|
continue;
|
|
3687
3673
|
}
|
|
3688
|
-
if (
|
|
3674
|
+
if (Bn(l)) {
|
|
3689
3675
|
typeof o == "number" && a.push({
|
|
3690
3676
|
type: _.literal,
|
|
3691
3677
|
value: r.getNumberFormat(t).format(o)
|
|
3692
3678
|
});
|
|
3693
3679
|
continue;
|
|
3694
3680
|
}
|
|
3695
|
-
var
|
|
3696
|
-
if (!(i &&
|
|
3697
|
-
throw new
|
|
3698
|
-
var
|
|
3699
|
-
if (
|
|
3700
|
-
(!
|
|
3701
|
-
type: typeof
|
|
3702
|
-
value:
|
|
3681
|
+
var c = l.value;
|
|
3682
|
+
if (!(i && c in i))
|
|
3683
|
+
throw new ri(c, s);
|
|
3684
|
+
var f = i[c];
|
|
3685
|
+
if (Hn(l)) {
|
|
3686
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3687
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3688
|
+
value: f
|
|
3703
3689
|
});
|
|
3704
3690
|
continue;
|
|
3705
3691
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var
|
|
3692
|
+
if (kt(l)) {
|
|
3693
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3708
3694
|
a.push({
|
|
3709
3695
|
type: _.literal,
|
|
3710
|
-
value: r.getDateTimeFormat(t,
|
|
3696
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3711
3697
|
});
|
|
3712
3698
|
continue;
|
|
3713
3699
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3700
|
+
if (Vt(l)) {
|
|
3701
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3716
3702
|
a.push({
|
|
3717
3703
|
type: _.literal,
|
|
3718
|
-
value: r.getDateTimeFormat(t,
|
|
3704
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3719
3705
|
});
|
|
3720
3706
|
continue;
|
|
3721
3707
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3724
|
-
|
|
3708
|
+
if (jt(l)) {
|
|
3709
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3710
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3725
3711
|
type: _.literal,
|
|
3726
|
-
value: r.getNumberFormat(t,
|
|
3712
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3727
3713
|
});
|
|
3728
3714
|
continue;
|
|
3729
3715
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
var $ =
|
|
3716
|
+
if (zt(l)) {
|
|
3717
|
+
var p = l.children, v = l.value, B = i[v];
|
|
3718
|
+
if (!ii(B))
|
|
3719
|
+
throw new ti(v, "function", s);
|
|
3720
|
+
var $ = de(p, t, r, n, i, o), N = B($.map(function(P) {
|
|
3735
3721
|
return P.value;
|
|
3736
3722
|
}));
|
|
3737
3723
|
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(P) {
|
|
@@ -3741,42 +3727,42 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3741
3727
|
};
|
|
3742
3728
|
}));
|
|
3743
3729
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3748
|
-
a.push.apply(a,
|
|
3730
|
+
if (Xt(l)) {
|
|
3731
|
+
var E = l.options[f] || l.options.other;
|
|
3732
|
+
if (!E)
|
|
3733
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3734
|
+
a.push.apply(a, de(E.value, t, r, n, i));
|
|
3749
3735
|
continue;
|
|
3750
3736
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3753
|
-
if (!
|
|
3737
|
+
if (Wt(l)) {
|
|
3738
|
+
var E = l.options["=".concat(f)];
|
|
3739
|
+
if (!E) {
|
|
3754
3740
|
if (!Intl.PluralRules)
|
|
3755
|
-
throw new
|
|
3741
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3756
3742
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3757
3743
|
`, z.MISSING_INTL_API, s);
|
|
3758
|
-
var R = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3759
|
-
|
|
3744
|
+
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3745
|
+
E = l.options[R] || l.options.other;
|
|
3760
3746
|
}
|
|
3761
|
-
if (!
|
|
3762
|
-
throw new
|
|
3763
|
-
a.push.apply(a,
|
|
3747
|
+
if (!E)
|
|
3748
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3749
|
+
a.push.apply(a, de(E.value, t, r, n, i, f - (l.offset || 0)));
|
|
3764
3750
|
continue;
|
|
3765
3751
|
}
|
|
3766
3752
|
}
|
|
3767
|
-
return
|
|
3753
|
+
return ni(a);
|
|
3768
3754
|
}
|
|
3769
|
-
function
|
|
3755
|
+
function oi(e, t) {
|
|
3770
3756
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3771
3757
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3772
3758
|
}, {})) : e;
|
|
3773
3759
|
}
|
|
3774
|
-
function
|
|
3760
|
+
function si(e, t) {
|
|
3775
3761
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3776
|
-
return r[n] =
|
|
3762
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3777
3763
|
}, g({}, e)) : e;
|
|
3778
3764
|
}
|
|
3779
|
-
function
|
|
3765
|
+
function Oe(e) {
|
|
3780
3766
|
return {
|
|
3781
3767
|
create: function() {
|
|
3782
3768
|
return {
|
|
@@ -3790,39 +3776,39 @@ function Ie(e) {
|
|
|
3790
3776
|
}
|
|
3791
3777
|
};
|
|
3792
3778
|
}
|
|
3793
|
-
function
|
|
3779
|
+
function ai(e) {
|
|
3794
3780
|
return e === void 0 && (e = {
|
|
3795
3781
|
number: {},
|
|
3796
3782
|
dateTime: {},
|
|
3797
3783
|
pluralRules: {}
|
|
3798
3784
|
}), {
|
|
3799
|
-
getNumberFormat:
|
|
3785
|
+
getNumberFormat: we(function() {
|
|
3800
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3787
|
r[n] = arguments[n];
|
|
3802
3788
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3803
3789
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3790
|
+
cache: Oe(e.number),
|
|
3791
|
+
strategy: Ae.variadic
|
|
3806
3792
|
}),
|
|
3807
|
-
getDateTimeFormat:
|
|
3793
|
+
getDateTimeFormat: we(function() {
|
|
3808
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3809
3795
|
r[n] = arguments[n];
|
|
3810
3796
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3811
3797
|
}, {
|
|
3812
|
-
cache:
|
|
3813
|
-
strategy:
|
|
3798
|
+
cache: Oe(e.dateTime),
|
|
3799
|
+
strategy: Ae.variadic
|
|
3814
3800
|
}),
|
|
3815
|
-
getPluralRules:
|
|
3801
|
+
getPluralRules: we(function() {
|
|
3816
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3803
|
r[n] = arguments[n];
|
|
3818
3804
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3819
3805
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3806
|
+
cache: Oe(e.pluralRules),
|
|
3807
|
+
strategy: Ae.variadic
|
|
3822
3808
|
})
|
|
3823
3809
|
};
|
|
3824
3810
|
}
|
|
3825
|
-
var
|
|
3811
|
+
var ui = (
|
|
3826
3812
|
/** @class */
|
|
3827
3813
|
function() {
|
|
3828
3814
|
function e(t, r, n, i) {
|
|
@@ -3836,12 +3822,12 @@ var li = (
|
|
|
3836
3822
|
var u = o.formatToParts(h);
|
|
3837
3823
|
if (u.length === 1)
|
|
3838
3824
|
return u[0].value;
|
|
3839
|
-
var l = u.reduce(function(
|
|
3840
|
-
return !
|
|
3825
|
+
var l = u.reduce(function(c, f) {
|
|
3826
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3841
3827
|
}, []);
|
|
3842
3828
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3843
3829
|
}, this.formatToParts = function(h) {
|
|
3844
|
-
return
|
|
3830
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3845
3831
|
}, this.resolvedOptions = function() {
|
|
3846
3832
|
var h;
|
|
3847
3833
|
return {
|
|
@@ -3854,13 +3840,13 @@ var li = (
|
|
|
3854
3840
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3855
3841
|
var s = i || {};
|
|
3856
3842
|
s.formatters;
|
|
3857
|
-
var a =
|
|
3843
|
+
var a = Dr(s, ["formatters"]);
|
|
3858
3844
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3859
3845
|
} else
|
|
3860
3846
|
this.ast = t;
|
|
3861
3847
|
if (!Array.isArray(this.ast))
|
|
3862
3848
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3863
|
-
this.formats =
|
|
3849
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3864
3850
|
}
|
|
3865
3851
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3866
3852
|
get: function() {
|
|
@@ -3873,7 +3859,7 @@ var li = (
|
|
|
3873
3859
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3874
3860
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3875
3861
|
}
|
|
3876
|
-
}, e.__parse =
|
|
3862
|
+
}, e.__parse = ei, e.formats = {
|
|
3877
3863
|
number: {
|
|
3878
3864
|
integer: {
|
|
3879
3865
|
maximumFractionDigits: 0
|
|
@@ -3934,7 +3920,7 @@ var li = (
|
|
|
3934
3920
|
}, e;
|
|
3935
3921
|
}()
|
|
3936
3922
|
);
|
|
3937
|
-
function
|
|
3923
|
+
function hi(e, t) {
|
|
3938
3924
|
if (t == null)
|
|
3939
3925
|
return;
|
|
3940
3926
|
if (t in e)
|
|
@@ -3955,92 +3941,92 @@ function ci(e, t) {
|
|
|
3955
3941
|
n = void 0;
|
|
3956
3942
|
return n;
|
|
3957
3943
|
}
|
|
3958
|
-
const C = {},
|
|
3944
|
+
const C = {}, li = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), rr = (e, t) => {
|
|
3959
3945
|
if (t == null)
|
|
3960
3946
|
return;
|
|
3961
3947
|
if (t in C && e in C[t])
|
|
3962
3948
|
return C[t][e];
|
|
3963
3949
|
const r = _e(t);
|
|
3964
3950
|
for (let n = 0; n < r.length; n++) {
|
|
3965
|
-
const i = r[n], o =
|
|
3951
|
+
const i = r[n], o = ci(i, e);
|
|
3966
3952
|
if (o)
|
|
3967
|
-
return
|
|
3953
|
+
return li(e, t, o);
|
|
3968
3954
|
}
|
|
3969
3955
|
};
|
|
3970
|
-
let
|
|
3956
|
+
let Je;
|
|
3971
3957
|
const ae = ve({});
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3958
|
+
function fi(e) {
|
|
3959
|
+
return Je[e] || null;
|
|
3974
3960
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e in
|
|
3961
|
+
function nr(e) {
|
|
3962
|
+
return e in Je;
|
|
3977
3963
|
}
|
|
3978
|
-
function
|
|
3979
|
-
if (!
|
|
3964
|
+
function ci(e, t) {
|
|
3965
|
+
if (!nr(e))
|
|
3980
3966
|
return null;
|
|
3981
|
-
const r =
|
|
3982
|
-
return
|
|
3967
|
+
const r = fi(e);
|
|
3968
|
+
return hi(r, t);
|
|
3983
3969
|
}
|
|
3984
|
-
function
|
|
3970
|
+
function di(e) {
|
|
3985
3971
|
if (e == null)
|
|
3986
3972
|
return;
|
|
3987
3973
|
const t = _e(e);
|
|
3988
3974
|
for (let r = 0; r < t.length; r++) {
|
|
3989
3975
|
const n = t[r];
|
|
3990
|
-
if (
|
|
3976
|
+
if (nr(n))
|
|
3991
3977
|
return n;
|
|
3992
3978
|
}
|
|
3993
3979
|
}
|
|
3994
|
-
function
|
|
3995
|
-
delete C[e], ae.update((r) => (r[e] =
|
|
3980
|
+
function ir(e, ...t) {
|
|
3981
|
+
delete C[e], ae.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3996
3982
|
}
|
|
3997
3983
|
J(
|
|
3998
3984
|
[ae],
|
|
3999
3985
|
([e]) => Object.keys(e)
|
|
4000
3986
|
);
|
|
4001
|
-
ae.subscribe((e) =>
|
|
4002
|
-
const
|
|
4003
|
-
function
|
|
4004
|
-
|
|
3987
|
+
ae.subscribe((e) => Je = e);
|
|
3988
|
+
const pe = {};
|
|
3989
|
+
function pi(e, t) {
|
|
3990
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4005
3991
|
}
|
|
4006
|
-
function
|
|
4007
|
-
return
|
|
3992
|
+
function or(e) {
|
|
3993
|
+
return pe[e];
|
|
4008
3994
|
}
|
|
4009
|
-
function
|
|
3995
|
+
function mi(e) {
|
|
4010
3996
|
return _e(e).map((t) => {
|
|
4011
|
-
const r =
|
|
3997
|
+
const r = or(t);
|
|
4012
3998
|
return [t, r ? [...r] : []];
|
|
4013
3999
|
}).filter(([, t]) => t.length > 0);
|
|
4014
4000
|
}
|
|
4015
|
-
function
|
|
4001
|
+
function We(e) {
|
|
4016
4002
|
return e == null ? !1 : _e(e).some(
|
|
4017
4003
|
(t) => {
|
|
4018
4004
|
var r;
|
|
4019
|
-
return (r =
|
|
4005
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4020
4006
|
}
|
|
4021
4007
|
);
|
|
4022
4008
|
}
|
|
4023
|
-
function
|
|
4009
|
+
function bi(e, t) {
|
|
4024
4010
|
return Promise.all(
|
|
4025
|
-
t.map((n) => (
|
|
4026
|
-
).then((n) =>
|
|
4011
|
+
t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
|
|
4012
|
+
).then((n) => ir(e, ...n));
|
|
4027
4013
|
}
|
|
4028
4014
|
const ee = {};
|
|
4029
|
-
function
|
|
4030
|
-
if (!
|
|
4015
|
+
function sr(e) {
|
|
4016
|
+
if (!We(e))
|
|
4031
4017
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4032
|
-
const t =
|
|
4018
|
+
const t = mi(e);
|
|
4033
4019
|
return ee[e] = Promise.all(
|
|
4034
4020
|
t.map(
|
|
4035
|
-
([r, n]) =>
|
|
4021
|
+
([r, n]) => bi(r, n)
|
|
4036
4022
|
)
|
|
4037
4023
|
).then(() => {
|
|
4038
|
-
if (
|
|
4039
|
-
return
|
|
4024
|
+
if (We(e))
|
|
4025
|
+
return sr(e);
|
|
4040
4026
|
delete ee[e];
|
|
4041
4027
|
}), ee[e];
|
|
4042
4028
|
}
|
|
4043
|
-
const
|
|
4029
|
+
const gi = {
|
|
4044
4030
|
number: {
|
|
4045
4031
|
scientific: { notation: "scientific" },
|
|
4046
4032
|
engineering: { notation: "engineering" },
|
|
@@ -4069,78 +4055,78 @@ const vi = {
|
|
|
4069
4055
|
timeZoneName: "short"
|
|
4070
4056
|
}
|
|
4071
4057
|
}
|
|
4072
|
-
},
|
|
4058
|
+
}, yi = {
|
|
4073
4059
|
fallbackLocale: null,
|
|
4074
4060
|
loadingDelay: 200,
|
|
4075
|
-
formats:
|
|
4061
|
+
formats: gi,
|
|
4076
4062
|
warnOnMissingMessages: !0,
|
|
4077
4063
|
handleMissingMessage: void 0,
|
|
4078
4064
|
ignoreTag: !0
|
|
4079
|
-
},
|
|
4065
|
+
}, vi = yi;
|
|
4080
4066
|
function Z() {
|
|
4081
|
-
return
|
|
4067
|
+
return vi;
|
|
4082
4068
|
}
|
|
4083
|
-
const
|
|
4084
|
-
var xi = Object.defineProperty,
|
|
4085
|
-
for (var r in t
|
|
4086
|
-
|
|
4069
|
+
const Ie = ve(!1);
|
|
4070
|
+
var xi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4071
|
+
for (var r in t)
|
|
4072
|
+
Si.call(t, r) && _t(e, r, t[r]);
|
|
4087
4073
|
if (xt)
|
|
4088
4074
|
for (var r of xt(t))
|
|
4089
|
-
|
|
4075
|
+
Ti.call(t, r) && _t(e, r, t[r]);
|
|
4090
4076
|
return e;
|
|
4091
|
-
},
|
|
4092
|
-
let
|
|
4077
|
+
}, Bi = (e, t) => _i(e, Ei(t));
|
|
4078
|
+
let ze;
|
|
4093
4079
|
const me = ve(null);
|
|
4094
|
-
function
|
|
4080
|
+
function Et(e) {
|
|
4095
4081
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4096
4082
|
}
|
|
4097
4083
|
function _e(e, t = Z().fallbackLocale) {
|
|
4098
|
-
const r =
|
|
4099
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4084
|
+
const r = Et(e);
|
|
4085
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4100
4086
|
}
|
|
4101
4087
|
function U() {
|
|
4102
|
-
return
|
|
4088
|
+
return ze != null ? ze : void 0;
|
|
4103
4089
|
}
|
|
4104
4090
|
me.subscribe((e) => {
|
|
4105
|
-
|
|
4091
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4106
4092
|
});
|
|
4107
|
-
const
|
|
4108
|
-
if (e &&
|
|
4093
|
+
const wi = (e) => {
|
|
4094
|
+
if (e && di(e) && We(e)) {
|
|
4109
4095
|
const { loadingDelay: t } = Z();
|
|
4110
4096
|
let r;
|
|
4111
4097
|
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
4112
|
-
() =>
|
|
4098
|
+
() => Ie.set(!0),
|
|
4113
4099
|
t
|
|
4114
|
-
) :
|
|
4100
|
+
) : Ie.set(!0), sr(e).then(() => {
|
|
4115
4101
|
me.set(e);
|
|
4116
4102
|
}).finally(() => {
|
|
4117
|
-
clearTimeout(r),
|
|
4103
|
+
clearTimeout(r), Ie.set(!1);
|
|
4118
4104
|
});
|
|
4119
4105
|
}
|
|
4120
4106
|
return me.set(e);
|
|
4121
|
-
}, Y =
|
|
4122
|
-
set:
|
|
4123
|
-
}),
|
|
4107
|
+
}, Y = Bi(Hi({}, me), {
|
|
4108
|
+
set: wi
|
|
4109
|
+
}), Ee = (e) => {
|
|
4124
4110
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4125
4111
|
return (n) => {
|
|
4126
4112
|
const i = JSON.stringify(n);
|
|
4127
4113
|
return i in t ? t[i] : t[i] = e(n);
|
|
4128
4114
|
};
|
|
4129
4115
|
};
|
|
4130
|
-
var
|
|
4116
|
+
var Ai = Object.defineProperty, be = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4131
4117
|
for (var r in t || (t = {}))
|
|
4132
|
-
|
|
4118
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
4133
4119
|
if (be)
|
|
4134
4120
|
for (var r of be(t))
|
|
4135
|
-
|
|
4121
|
+
ur.call(t, r) && St(e, r, t[r]);
|
|
4136
4122
|
return e;
|
|
4137
4123
|
}, q = (e, t) => {
|
|
4138
4124
|
var r = {};
|
|
4139
4125
|
for (var n in e)
|
|
4140
|
-
|
|
4126
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4141
4127
|
if (e != null && be)
|
|
4142
4128
|
for (var n of be(e))
|
|
4143
|
-
t.indexOf(n) < 0 &&
|
|
4129
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4144
4130
|
return r;
|
|
4145
4131
|
};
|
|
4146
4132
|
const ie = (e, t) => {
|
|
@@ -4148,21 +4134,21 @@ const ie = (e, t) => {
|
|
|
4148
4134
|
if (e in r && t in r[e])
|
|
4149
4135
|
return r[e][t];
|
|
4150
4136
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4151
|
-
},
|
|
4137
|
+
}, Pi = Ee(
|
|
4152
4138
|
(e) => {
|
|
4153
4139
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4154
4140
|
if (r == null)
|
|
4155
4141
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4156
4142
|
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4157
4143
|
}
|
|
4158
|
-
),
|
|
4144
|
+
), Oi = Ee(
|
|
4159
4145
|
(e) => {
|
|
4160
4146
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4161
4147
|
if (r == null)
|
|
4162
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4163
4149
|
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4164
4150
|
}
|
|
4165
|
-
),
|
|
4151
|
+
), Ii = Ee(
|
|
4166
4152
|
(e) => {
|
|
4167
4153
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4168
4154
|
if (r == null)
|
|
@@ -4171,33 +4157,33 @@ const ie = (e, t) => {
|
|
|
4171
4157
|
);
|
|
4172
4158
|
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4159
|
}
|
|
4174
|
-
),
|
|
4160
|
+
), Li = (e = {}) => {
|
|
4175
4161
|
var t = e, {
|
|
4176
4162
|
locale: r = U()
|
|
4177
4163
|
} = t, n = q(t, [
|
|
4178
4164
|
"locale"
|
|
4179
4165
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4166
|
+
return Pi(Ye({ locale: r }, n));
|
|
4167
|
+
}, Ni = (e = {}) => {
|
|
4182
4168
|
var t = e, {
|
|
4183
4169
|
locale: r = U()
|
|
4184
4170
|
} = t, n = q(t, [
|
|
4185
4171
|
"locale"
|
|
4186
4172
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4173
|
+
return Oi(Ye({ locale: r }, n));
|
|
4174
|
+
}, Mi = (e = {}) => {
|
|
4189
4175
|
var t = e, {
|
|
4190
4176
|
locale: r = U()
|
|
4191
4177
|
} = t, n = q(t, [
|
|
4192
4178
|
"locale"
|
|
4193
4179
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4180
|
+
return Ii(Ye({ locale: r }, n));
|
|
4181
|
+
}, Ci = Ee(
|
|
4196
4182
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4197
|
-
(e, t = U()) => new
|
|
4183
|
+
(e, t = U()) => new ui(e, t, Z().formats, {
|
|
4198
4184
|
ignoreTag: Z().ignoreTag
|
|
4199
4185
|
})
|
|
4200
|
-
),
|
|
4186
|
+
), $i = (e, t = {}) => {
|
|
4201
4187
|
var r, n, i, o;
|
|
4202
4188
|
let s = t;
|
|
4203
4189
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4210,7 +4196,7 @@ const ie = (e, t) => {
|
|
|
4210
4196
|
throw new Error(
|
|
4211
4197
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4212
4198
|
);
|
|
4213
|
-
let l =
|
|
4199
|
+
let l = rr(e, h);
|
|
4214
4200
|
if (!l)
|
|
4215
4201
|
l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4216
4202
|
else if (typeof l != "string")
|
|
@@ -4219,23 +4205,23 @@ const ie = (e, t) => {
|
|
|
4219
4205
|
), l;
|
|
4220
4206
|
if (!a)
|
|
4221
4207
|
return l;
|
|
4222
|
-
let
|
|
4208
|
+
let c = l;
|
|
4223
4209
|
try {
|
|
4224
|
-
|
|
4225
|
-
} catch (
|
|
4226
|
-
|
|
4210
|
+
c = Ci(l, h).format(a);
|
|
4211
|
+
} catch (f) {
|
|
4212
|
+
f instanceof Error && console.warn(
|
|
4227
4213
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4228
|
-
|
|
4214
|
+
f.message
|
|
4229
4215
|
);
|
|
4230
4216
|
}
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4217
|
+
return c;
|
|
4218
|
+
}, Ri = (e, t) => Mi(t).format(e), Ui = (e, t) => Ni(t).format(e), Di = (e, t) => Li(t).format(e), Gi = (e, t = U()) => rr(e, t), Fi = J([Y, ae], () => $i);
|
|
4219
|
+
J([Y], () => Ri);
|
|
4220
|
+
J([Y], () => Ui);
|
|
4233
4221
|
J([Y], () => Di);
|
|
4234
|
-
J([Y], () => Gi);
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
window.emWidgets = { topic: rn };
|
|
4238
|
-
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Xi = (e, t = {}) => {
|
|
4222
|
+
J([Y, ae], () => Gi);
|
|
4223
|
+
window.emWidgets = { topic: Kr };
|
|
4224
|
+
const ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", ki = (e, t = {}) => {
|
|
4239
4225
|
const r = new CustomEvent("track-custom-event", {
|
|
4240
4226
|
detail: {
|
|
4241
4227
|
type: e,
|
|
@@ -4246,13 +4232,13 @@ const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
|
|
|
4246
4232
|
});
|
|
4247
4233
|
document.dispatchEvent(r);
|
|
4248
4234
|
};
|
|
4249
|
-
function
|
|
4250
|
-
|
|
4235
|
+
function Tt(e, t) {
|
|
4236
|
+
ir(e, t);
|
|
4251
4237
|
}
|
|
4252
|
-
function
|
|
4238
|
+
function Vi(e) {
|
|
4253
4239
|
Y.set(e);
|
|
4254
4240
|
}
|
|
4255
|
-
const
|
|
4241
|
+
const Ht = {
|
|
4256
4242
|
en: {
|
|
4257
4243
|
logoutButton: "Logout"
|
|
4258
4244
|
},
|
|
@@ -4287,13 +4273,13 @@ const wt = {
|
|
|
4287
4273
|
logoutButton: "Logout"
|
|
4288
4274
|
}
|
|
4289
4275
|
};
|
|
4290
|
-
function
|
|
4276
|
+
function Bt(e, t) {
|
|
4291
4277
|
if (e) {
|
|
4292
4278
|
const r = document.createElement("style");
|
|
4293
4279
|
r.innerHTML = t, e.appendChild(r);
|
|
4294
4280
|
}
|
|
4295
4281
|
}
|
|
4296
|
-
function
|
|
4282
|
+
function Xi(e, t) {
|
|
4297
4283
|
const r = new URL(t);
|
|
4298
4284
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4299
4285
|
const i = document.createElement("style");
|
|
@@ -4302,7 +4288,7 @@ function zi(e, t) {
|
|
|
4302
4288
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4303
4289
|
});
|
|
4304
4290
|
}
|
|
4305
|
-
function
|
|
4291
|
+
function Wi(e, t, r) {
|
|
4306
4292
|
if (window.emMessageBus) {
|
|
4307
4293
|
const n = document.createElement("style");
|
|
4308
4294
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4310,10 +4296,10 @@ function Zi(e, t, r) {
|
|
|
4310
4296
|
});
|
|
4311
4297
|
}
|
|
4312
4298
|
}
|
|
4313
|
-
function
|
|
4314
|
-
|
|
4299
|
+
function zi(e) {
|
|
4300
|
+
gr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4315
4301
|
}
|
|
4316
|
-
function
|
|
4302
|
+
function Zi(e) {
|
|
4317
4303
|
let t, r, n, i = (
|
|
4318
4304
|
/*$_*/
|
|
4319
4305
|
e[2]("logoutButton") + ""
|
|
@@ -4323,7 +4309,7 @@ function Ji(e) {
|
|
|
4323
4309
|
t = O("div"), r = O("button"), n = O("span"), o = ge(i), H(t, "class", "GeneralLogout");
|
|
4324
4310
|
},
|
|
4325
4311
|
m(h, u) {
|
|
4326
|
-
se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a =
|
|
4312
|
+
se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Ot(
|
|
4327
4313
|
r,
|
|
4328
4314
|
"click",
|
|
4329
4315
|
/*click_handler_1*/
|
|
@@ -4333,19 +4319,19 @@ function Ji(e) {
|
|
|
4333
4319
|
p(h, u) {
|
|
4334
4320
|
u & /*$_*/
|
|
4335
4321
|
4 && i !== (i = /*$_*/
|
|
4336
|
-
h[2]("logoutButton") + "") &&
|
|
4322
|
+
h[2]("logoutButton") + "") && It(o, i);
|
|
4337
4323
|
},
|
|
4338
4324
|
d(h) {
|
|
4339
4325
|
h && Q(t), s = !1, a();
|
|
4340
4326
|
}
|
|
4341
4327
|
};
|
|
4342
4328
|
}
|
|
4343
|
-
function
|
|
4344
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4345
|
-
e[3] &&
|
|
4329
|
+
function Qi(e) {
|
|
4330
|
+
let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
|
|
4331
|
+
e[3] && Ji(e);
|
|
4346
4332
|
return {
|
|
4347
4333
|
c() {
|
|
4348
|
-
t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u =
|
|
4334
|
+
t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = xr(), f && f.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), Er(r, "width", /*isMobile*/
|
|
4349
4335
|
e[3] ? (
|
|
4350
4336
|
/*mediaQuery*/
|
|
4351
4337
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4354,24 +4340,24 @@ function Yi(e) {
|
|
|
4354
4340
|
(e[4].matches && /*isMobile*/
|
|
4355
4341
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4356
4342
|
},
|
|
4357
|
-
m(
|
|
4358
|
-
se(
|
|
4343
|
+
m(d, p) {
|
|
4344
|
+
se(d, t, p), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Ot(
|
|
4359
4345
|
t,
|
|
4360
4346
|
"click",
|
|
4361
4347
|
/*click_handler*/
|
|
4362
4348
|
e[13]
|
|
4363
4349
|
), l = !0);
|
|
4364
4350
|
},
|
|
4365
|
-
p(
|
|
4351
|
+
p(d, p) {
|
|
4366
4352
|
/*isMobile*/
|
|
4367
|
-
|
|
4353
|
+
d[3] || f.p(d, p);
|
|
4368
4354
|
},
|
|
4369
|
-
d(
|
|
4370
|
-
|
|
4355
|
+
d(d) {
|
|
4356
|
+
d && Q(t), f && f.d(), l = !1, c();
|
|
4371
4357
|
}
|
|
4372
4358
|
};
|
|
4373
4359
|
}
|
|
4374
|
-
function
|
|
4360
|
+
function Ji(e) {
|
|
4375
4361
|
let t, r = (
|
|
4376
4362
|
/*$_*/
|
|
4377
4363
|
e[2]("logoutButton") + ""
|
|
@@ -4386,19 +4372,19 @@ function qi(e) {
|
|
|
4386
4372
|
p(i, o) {
|
|
4387
4373
|
o & /*$_*/
|
|
4388
4374
|
4 && r !== (r = /*$_*/
|
|
4389
|
-
i[2]("logoutButton") + "") &&
|
|
4375
|
+
i[2]("logoutButton") + "") && It(n, r);
|
|
4390
4376
|
},
|
|
4391
4377
|
d(i) {
|
|
4392
4378
|
i && Q(t);
|
|
4393
4379
|
}
|
|
4394
4380
|
};
|
|
4395
4381
|
}
|
|
4396
|
-
function
|
|
4382
|
+
function Yi(e) {
|
|
4397
4383
|
let t;
|
|
4398
4384
|
function r(o, s) {
|
|
4399
4385
|
return (
|
|
4400
4386
|
/*buttonlocation*/
|
|
4401
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4387
|
+
o[0] === "PlayerAccountMenu" ? Qi : Zi
|
|
4402
4388
|
);
|
|
4403
4389
|
}
|
|
4404
4390
|
let n = r(e), i = n(e);
|
|
@@ -4419,78 +4405,78 @@ function Ki(e) {
|
|
|
4419
4405
|
}
|
|
4420
4406
|
};
|
|
4421
4407
|
}
|
|
4422
|
-
function
|
|
4408
|
+
function qi(e, t, r) {
|
|
4423
4409
|
let n;
|
|
4424
|
-
|
|
4425
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4410
|
+
br(e, Fi, (y) => r(2, n = y));
|
|
4411
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", d = !1, p, v = window.navigator.userAgent, B = ji(v) !== "PC";
|
|
4426
4412
|
const $ = window.matchMedia("(min-width: 768px)"), N = () => {
|
|
4427
|
-
fetch(
|
|
4413
|
+
fetch(c).then((M) => M.json()).then((M) => {
|
|
4428
4414
|
Object.keys(M).forEach((Se) => {
|
|
4429
|
-
|
|
4415
|
+
Tt(Se, M[Se]);
|
|
4430
4416
|
});
|
|
4431
4417
|
}).catch((M) => {
|
|
4432
4418
|
console.log(M);
|
|
4433
4419
|
});
|
|
4434
4420
|
};
|
|
4435
|
-
Object.keys(
|
|
4436
|
-
|
|
4421
|
+
Object.keys(Ht).forEach((y) => {
|
|
4422
|
+
Tt(y, Ht[y]);
|
|
4437
4423
|
});
|
|
4438
|
-
const
|
|
4424
|
+
const E = () => {
|
|
4439
4425
|
let y = new Headers();
|
|
4440
4426
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4441
4427
|
let M = { method: "DELETE", headers: y };
|
|
4442
4428
|
fetch(`${i}/v1/player/session/player`, M).then((Se) => {
|
|
4443
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4429
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), ki("logged_out", {});
|
|
4444
4430
|
});
|
|
4445
|
-
}, R = () => (i || (
|
|
4446
|
-
|
|
4431
|
+
}, R = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(f)), d), P = () => {
|
|
4432
|
+
Vi(a);
|
|
4447
4433
|
};
|
|
4448
|
-
|
|
4434
|
+
Hr(() => () => {
|
|
4449
4435
|
});
|
|
4450
|
-
const D = () =>
|
|
4451
|
-
function
|
|
4452
|
-
|
|
4453
|
-
|
|
4436
|
+
const D = () => E(), ue = () => E();
|
|
4437
|
+
function hr(y) {
|
|
4438
|
+
Le[y ? "unshift" : "push"](() => {
|
|
4439
|
+
p = y, r(1, p);
|
|
4454
4440
|
});
|
|
4455
4441
|
}
|
|
4456
4442
|
return e.$$set = (y) => {
|
|
4457
|
-
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12,
|
|
4443
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, c = y.translationurl);
|
|
4458
4444
|
}, e.$$.update = () => {
|
|
4459
4445
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4460
4446
|
193 && i && o && s && R(), e.$$.dirty & /*lang*/
|
|
4461
4447
|
256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4462
|
-
1026 && u &&
|
|
4463
|
-
1026 && u &&
|
|
4464
|
-
2050 && l &&
|
|
4465
|
-
514 && h &&
|
|
4466
|
-
4096 &&
|
|
4448
|
+
1026 && u && p && Bt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4449
|
+
1026 && u && p && Bt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4450
|
+
2050 && l && p && Xi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4451
|
+
514 && h && p && Wi(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4452
|
+
4096 && c && N();
|
|
4467
4453
|
}, [
|
|
4468
4454
|
s,
|
|
4469
|
-
|
|
4455
|
+
p,
|
|
4470
4456
|
n,
|
|
4471
4457
|
B,
|
|
4472
4458
|
$,
|
|
4473
|
-
|
|
4459
|
+
E,
|
|
4474
4460
|
i,
|
|
4475
4461
|
o,
|
|
4476
4462
|
a,
|
|
4477
4463
|
h,
|
|
4478
4464
|
u,
|
|
4479
4465
|
l,
|
|
4480
|
-
|
|
4466
|
+
c,
|
|
4481
4467
|
D,
|
|
4482
4468
|
ue,
|
|
4483
|
-
|
|
4469
|
+
hr
|
|
4484
4470
|
];
|
|
4485
4471
|
}
|
|
4486
|
-
class
|
|
4472
|
+
class Ki extends Rr {
|
|
4487
4473
|
constructor(t) {
|
|
4488
|
-
super(),
|
|
4474
|
+
super(), Cr(
|
|
4489
4475
|
this,
|
|
4490
4476
|
t,
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4477
|
+
qi,
|
|
4478
|
+
Yi,
|
|
4479
|
+
At,
|
|
4494
4480
|
{
|
|
4495
4481
|
endpoint: 6,
|
|
4496
4482
|
session: 7,
|
|
@@ -4501,7 +4487,7 @@ class to extends Gr {
|
|
|
4501
4487
|
clientstylingurl: 11,
|
|
4502
4488
|
translationurl: 12
|
|
4503
4489
|
},
|
|
4504
|
-
|
|
4490
|
+
zi
|
|
4505
4491
|
);
|
|
4506
4492
|
}
|
|
4507
4493
|
get endpoint() {
|
|
@@ -4553,7 +4539,7 @@ class to extends Gr {
|
|
|
4553
4539
|
this.$$set({ translationurl: t }), A();
|
|
4554
4540
|
}
|
|
4555
4541
|
}
|
|
4556
|
-
|
|
4542
|
+
$r(Ki, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4557
4543
|
export {
|
|
4558
|
-
|
|
4544
|
+
Ki as default
|
|
4559
4545
|
};
|