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