@everymatrix/general-logout 1.77.20 → 1.77.21
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-BhXy_vyo.cjs +18 -0
- package/components/{GeneralLogout-BXkyWzTF.js → GeneralLogout-BuKJGZNi.js} +755 -712
- package/components/{GeneralLogout-DA1kGP-v.js → GeneralLogout-CDz_Rii6.js} +741 -698
- 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-Dd11o51h.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ht(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ne(e) {
|
|
10
|
+
e.forEach(Ht);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ur(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Et(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function hr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function S(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function lr(e, t, r) {
|
|
37
|
+
const n = cr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = O("style");
|
|
40
|
+
i.id = t, i.textContent = r, fr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function cr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,48 +50,48 @@ function sr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function fr(e, t) {
|
|
54
54
|
return S(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ie(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function O(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Y(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ge(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function pr() {
|
|
76
|
+
return ge(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function At(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function T(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function dr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Pt(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function mr(e, t, r, n) {
|
|
92
92
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function br(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,87 +100,87 @@ function cr(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let ee;
|
|
104
|
+
function K(e) {
|
|
105
|
+
ee = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function gr() {
|
|
108
|
+
if (!ee)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return ee;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function yr(e) {
|
|
113
|
+
gr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const F = [],
|
|
115
|
+
const F = [], Ne = [];
|
|
116
116
|
let j = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const tt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Me = !1;
|
|
119
|
+
function _r() {
|
|
120
|
+
Me || (Me = !0, vr.then(w));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ce(e) {
|
|
123
123
|
j.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const He = /* @__PURE__ */ new Set();
|
|
126
126
|
let G = 0;
|
|
127
127
|
function w() {
|
|
128
128
|
if (G !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = ee;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
133
|
for (; G < F.length; ) {
|
|
134
134
|
const t = F[G];
|
|
135
|
-
G++,
|
|
135
|
+
G++, K(t), Er(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw F.length = 0, G = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
140
|
+
for (K(null), F.length = 0, G = 0; Ne.length; )
|
|
141
|
+
Ne.pop()();
|
|
142
142
|
for (let t = 0; t < j.length; t += 1) {
|
|
143
143
|
const r = j[t];
|
|
144
|
-
|
|
144
|
+
He.has(r) || (He.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
j.length = 0;
|
|
147
147
|
} while (F.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; tt.length; )
|
|
149
|
+
tt.pop()();
|
|
150
|
+
Me = !1, He.clear(), K(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Er(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), ne(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function xr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
164
|
+
function Tr(e, t) {
|
|
165
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Hr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Ce(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Ht).filter(Ye);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Ce);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Br(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (xr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
178
|
+
function wr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const h =
|
|
183
|
-
|
|
181
|
+
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
+
const h = ee;
|
|
183
|
+
K(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: B,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: et(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,7 +197,7 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: et(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
@@ -206,19 +206,19 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
let l = !1;
|
|
207
207
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
208
208
|
const d = p.length ? p[0] : c;
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && wr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = dr(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(z);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), w();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
K(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let Ot;
|
|
221
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,24 +260,24 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = O("slot"), i !== "default" && T(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
ie(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && z(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = br(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Pr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends Ot {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Or {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Hr {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
Br(this, 1), this.$destroy = B;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class Hr {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!Ye(r))
|
|
425
425
|
return B;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,11 +434,11 @@ class Hr {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
+
const Ir = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
442
442
|
/*! *****************************************************************************
|
|
443
443
|
Copyright (c) Microsoft Corporation.
|
|
444
444
|
|
|
@@ -453,43 +453,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
453
453
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
454
454
|
PERFORMANCE OF THIS SOFTWARE.
|
|
455
455
|
***************************************************************************** */
|
|
456
|
-
var
|
|
457
|
-
return
|
|
456
|
+
var $e = function(e, t) {
|
|
457
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
458
458
|
r.__proto__ = n;
|
|
459
459
|
} || function(r, n) {
|
|
460
460
|
for (var i in n)
|
|
461
461
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
|
-
},
|
|
462
|
+
}, $e(e, t);
|
|
463
463
|
};
|
|
464
|
-
function
|
|
464
|
+
function oe(e, t) {
|
|
465
465
|
if (typeof t != "function" && t !== null)
|
|
466
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
467
|
-
|
|
467
|
+
$e(e, t);
|
|
468
468
|
function r() {
|
|
469
469
|
this.constructor = e;
|
|
470
470
|
}
|
|
471
471
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
472
472
|
}
|
|
473
|
-
|
|
474
|
-
return g = Object.assign || function(t) {
|
|
475
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
476
|
-
r = arguments[n];
|
|
477
|
-
for (var o in r)
|
|
478
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
479
|
-
}
|
|
480
|
-
return t;
|
|
481
|
-
}, g.apply(this, arguments);
|
|
482
|
-
};
|
|
483
|
-
function wr(e, t) {
|
|
484
|
-
var r = {};
|
|
485
|
-
for (var n in e)
|
|
486
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
487
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
488
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
489
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
490
|
-
return r;
|
|
491
|
-
}
|
|
492
|
-
function Me(e) {
|
|
473
|
+
function Re(e) {
|
|
493
474
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
494
475
|
if (r)
|
|
495
476
|
return r.call(e);
|
|
@@ -501,7 +482,7 @@ function Me(e) {
|
|
|
501
482
|
};
|
|
502
483
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
503
484
|
}
|
|
504
|
-
function
|
|
485
|
+
function Ue(e, t) {
|
|
505
486
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
506
487
|
if (!r)
|
|
507
488
|
return e;
|
|
@@ -521,22 +502,22 @@ function Ce(e, t) {
|
|
|
521
502
|
}
|
|
522
503
|
return o;
|
|
523
504
|
}
|
|
524
|
-
function
|
|
525
|
-
if (
|
|
505
|
+
function Ge(e, t, r) {
|
|
506
|
+
if (arguments.length === 2)
|
|
526
507
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
527
508
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
528
509
|
return e.concat(o || t);
|
|
529
510
|
}
|
|
530
|
-
function
|
|
511
|
+
function I(e) {
|
|
531
512
|
return typeof e == "function";
|
|
532
513
|
}
|
|
533
|
-
function
|
|
514
|
+
function It(e) {
|
|
534
515
|
var t = function(n) {
|
|
535
516
|
Error.call(n), n.stack = new Error().stack;
|
|
536
517
|
}, r = e(t);
|
|
537
518
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
538
519
|
}
|
|
539
|
-
var
|
|
520
|
+
var Be = It(function(e) {
|
|
540
521
|
return function(r) {
|
|
541
522
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
542
523
|
` + r.map(function(n, i) {
|
|
@@ -545,13 +526,13 @@ var Te = Bt(function(e) {
|
|
|
545
526
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
546
527
|
};
|
|
547
528
|
});
|
|
548
|
-
function
|
|
529
|
+
function De(e, t) {
|
|
549
530
|
if (e) {
|
|
550
531
|
var r = e.indexOf(t);
|
|
551
532
|
0 <= r && e.splice(r, 1);
|
|
552
533
|
}
|
|
553
534
|
}
|
|
554
|
-
var
|
|
535
|
+
var ye = function() {
|
|
555
536
|
function e(t) {
|
|
556
537
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
557
538
|
}
|
|
@@ -563,12 +544,12 @@ var ge = function() {
|
|
|
563
544
|
if (s)
|
|
564
545
|
if (this._parentage = null, Array.isArray(s))
|
|
565
546
|
try {
|
|
566
|
-
for (var a =
|
|
547
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
567
548
|
var u = h.value;
|
|
568
549
|
u.remove(this);
|
|
569
550
|
}
|
|
570
|
-
} catch (
|
|
571
|
-
t = { error:
|
|
551
|
+
} catch (y) {
|
|
552
|
+
t = { error: y };
|
|
572
553
|
} finally {
|
|
573
554
|
try {
|
|
574
555
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -580,26 +561,26 @@ var ge = function() {
|
|
|
580
561
|
else
|
|
581
562
|
s.remove(this);
|
|
582
563
|
var l = this.initialTeardown;
|
|
583
|
-
if (
|
|
564
|
+
if (I(l))
|
|
584
565
|
try {
|
|
585
566
|
l();
|
|
586
|
-
} catch (
|
|
587
|
-
o =
|
|
567
|
+
} catch (y) {
|
|
568
|
+
o = y instanceof Be ? y.errors : [y];
|
|
588
569
|
}
|
|
589
570
|
var f = this._finalizers;
|
|
590
571
|
if (f) {
|
|
591
572
|
this._finalizers = null;
|
|
592
573
|
try {
|
|
593
|
-
for (var c =
|
|
574
|
+
for (var c = Re(f), p = c.next(); !p.done; p = c.next()) {
|
|
594
575
|
var d = p.value;
|
|
595
576
|
try {
|
|
596
|
-
|
|
597
|
-
} catch (
|
|
598
|
-
o = o ?? [],
|
|
577
|
+
rt(d);
|
|
578
|
+
} catch (y) {
|
|
579
|
+
o = o ?? [], y instanceof Be ? o = Ge(Ge([], Ue(o)), Ue(y.errors)) : o.push(y);
|
|
599
580
|
}
|
|
600
581
|
}
|
|
601
|
-
} catch (
|
|
602
|
-
n = { error:
|
|
582
|
+
} catch (y) {
|
|
583
|
+
n = { error: y };
|
|
603
584
|
} finally {
|
|
604
585
|
try {
|
|
605
586
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -610,13 +591,13 @@ var ge = function() {
|
|
|
610
591
|
}
|
|
611
592
|
}
|
|
612
593
|
if (o)
|
|
613
|
-
throw new
|
|
594
|
+
throw new Be(o);
|
|
614
595
|
}
|
|
615
596
|
}, e.prototype.add = function(t) {
|
|
616
597
|
var r;
|
|
617
598
|
if (t && t !== this)
|
|
618
599
|
if (this.closed)
|
|
619
|
-
|
|
600
|
+
rt(t);
|
|
620
601
|
else {
|
|
621
602
|
if (t instanceof e) {
|
|
622
603
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,52 +614,52 @@ var ge = function() {
|
|
|
633
614
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
634
615
|
}, e.prototype._removeParent = function(t) {
|
|
635
616
|
var r = this._parentage;
|
|
636
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
617
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
637
618
|
}, e.prototype.remove = function(t) {
|
|
638
619
|
var r = this._finalizers;
|
|
639
|
-
r &&
|
|
620
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
640
621
|
}, e.EMPTY = function() {
|
|
641
622
|
var t = new e();
|
|
642
623
|
return t.closed = !0, t;
|
|
643
624
|
}(), e;
|
|
644
|
-
}(),
|
|
645
|
-
function
|
|
646
|
-
return e instanceof
|
|
625
|
+
}(), Lt = ye.EMPTY;
|
|
626
|
+
function Nt(e) {
|
|
627
|
+
return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
647
628
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
629
|
+
function rt(e) {
|
|
630
|
+
I(e) ? e() : e.unsubscribe();
|
|
650
631
|
}
|
|
651
|
-
var
|
|
632
|
+
var Lr = {
|
|
652
633
|
Promise: void 0
|
|
653
|
-
},
|
|
634
|
+
}, Nr = {
|
|
654
635
|
setTimeout: function(e, t) {
|
|
655
636
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
656
637
|
r[n - 2] = arguments[n];
|
|
657
|
-
return setTimeout.apply(void 0,
|
|
638
|
+
return setTimeout.apply(void 0, Ge([e, t], Ue(r)));
|
|
658
639
|
},
|
|
659
640
|
clearTimeout: function(e) {
|
|
660
641
|
return clearTimeout(e);
|
|
661
642
|
},
|
|
662
643
|
delegate: void 0
|
|
663
644
|
};
|
|
664
|
-
function
|
|
665
|
-
|
|
645
|
+
function Mr(e) {
|
|
646
|
+
Nr.setTimeout(function() {
|
|
666
647
|
throw e;
|
|
667
648
|
});
|
|
668
649
|
}
|
|
669
|
-
function
|
|
650
|
+
function nt() {
|
|
670
651
|
}
|
|
671
652
|
function ce(e) {
|
|
672
653
|
e();
|
|
673
654
|
}
|
|
674
|
-
var
|
|
675
|
-
|
|
655
|
+
var Mt = function(e) {
|
|
656
|
+
oe(t, e);
|
|
676
657
|
function t(r) {
|
|
677
658
|
var n = e.call(this) || this;
|
|
678
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
659
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Rr, n;
|
|
679
660
|
}
|
|
680
661
|
return t.create = function(r, n, i) {
|
|
681
|
-
return new
|
|
662
|
+
return new Fe(r, n, i);
|
|
682
663
|
}, t.prototype.next = function(r) {
|
|
683
664
|
this.isStopped || this._next(r);
|
|
684
665
|
}, t.prototype.error = function(r) {
|
|
@@ -702,7 +683,7 @@ var Pt = function(e) {
|
|
|
702
683
|
this.unsubscribe();
|
|
703
684
|
}
|
|
704
685
|
}, t;
|
|
705
|
-
}(
|
|
686
|
+
}(ye), Cr = function() {
|
|
706
687
|
function e(t) {
|
|
707
688
|
this.partialObserver = t;
|
|
708
689
|
}
|
|
@@ -733,43 +714,43 @@ var Pt = function(e) {
|
|
|
733
714
|
ue(r);
|
|
734
715
|
}
|
|
735
716
|
}, e;
|
|
736
|
-
}(),
|
|
737
|
-
|
|
717
|
+
}(), Fe = function(e) {
|
|
718
|
+
oe(t, e);
|
|
738
719
|
function t(r, n, i) {
|
|
739
720
|
var o = e.call(this) || this, s;
|
|
740
|
-
return
|
|
721
|
+
return I(r) || !r ? s = {
|
|
741
722
|
next: r ?? void 0,
|
|
742
723
|
error: n ?? void 0,
|
|
743
724
|
complete: i ?? void 0
|
|
744
|
-
} : s = r, o.destination = new
|
|
725
|
+
} : s = r, o.destination = new Cr(s), o;
|
|
745
726
|
}
|
|
746
727
|
return t;
|
|
747
|
-
}(
|
|
728
|
+
}(Mt);
|
|
748
729
|
function ue(e) {
|
|
749
|
-
|
|
730
|
+
Mr(e);
|
|
750
731
|
}
|
|
751
|
-
function
|
|
732
|
+
function $r(e) {
|
|
752
733
|
throw e;
|
|
753
734
|
}
|
|
754
|
-
var
|
|
735
|
+
var Rr = {
|
|
755
736
|
closed: !0,
|
|
756
|
-
next:
|
|
757
|
-
error:
|
|
758
|
-
complete:
|
|
759
|
-
},
|
|
737
|
+
next: nt,
|
|
738
|
+
error: $r,
|
|
739
|
+
complete: nt
|
|
740
|
+
}, Ur = function() {
|
|
760
741
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
761
742
|
}();
|
|
762
|
-
function
|
|
743
|
+
function Gr(e) {
|
|
763
744
|
return e;
|
|
764
745
|
}
|
|
765
|
-
function
|
|
766
|
-
return e.length === 0 ?
|
|
746
|
+
function Dr(e) {
|
|
747
|
+
return e.length === 0 ? Gr : e.length === 1 ? e[0] : function(r) {
|
|
767
748
|
return e.reduce(function(n, i) {
|
|
768
749
|
return i(n);
|
|
769
750
|
}, r);
|
|
770
751
|
};
|
|
771
752
|
}
|
|
772
|
-
var
|
|
753
|
+
var it = function() {
|
|
773
754
|
function e(t) {
|
|
774
755
|
t && (this._subscribe = t);
|
|
775
756
|
}
|
|
@@ -777,7 +758,7 @@ var Ke = function() {
|
|
|
777
758
|
var r = new e();
|
|
778
759
|
return r.source = this, r.operator = t, r;
|
|
779
760
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
780
|
-
var i = this, o =
|
|
761
|
+
var i = this, o = jr(t) ? t : new Fe(t, r, n);
|
|
781
762
|
return ce(function() {
|
|
782
763
|
var s = i, a = s.operator, h = s.source;
|
|
783
764
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -790,8 +771,8 @@ var Ke = function() {
|
|
|
790
771
|
}
|
|
791
772
|
}, e.prototype.forEach = function(t, r) {
|
|
792
773
|
var n = this;
|
|
793
|
-
return r =
|
|
794
|
-
var s = new
|
|
774
|
+
return r = ot(r), new r(function(i, o) {
|
|
775
|
+
var s = new Fe({
|
|
795
776
|
next: function(a) {
|
|
796
777
|
try {
|
|
797
778
|
t(a);
|
|
@@ -807,15 +788,15 @@ var Ke = function() {
|
|
|
807
788
|
}, e.prototype._subscribe = function(t) {
|
|
808
789
|
var r;
|
|
809
790
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
810
|
-
}, e.prototype[
|
|
791
|
+
}, e.prototype[Ur] = function() {
|
|
811
792
|
return this;
|
|
812
793
|
}, e.prototype.pipe = function() {
|
|
813
794
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
814
795
|
t[r] = arguments[r];
|
|
815
|
-
return
|
|
796
|
+
return Dr(t)(this);
|
|
816
797
|
}, e.prototype.toPromise = function(t) {
|
|
817
798
|
var r = this;
|
|
818
|
-
return t =
|
|
799
|
+
return t = ot(t), new t(function(n, i) {
|
|
819
800
|
var o;
|
|
820
801
|
r.subscribe(function(s) {
|
|
821
802
|
return o = s;
|
|
@@ -829,32 +810,32 @@ var Ke = function() {
|
|
|
829
810
|
return new e(t);
|
|
830
811
|
}, e;
|
|
831
812
|
}();
|
|
832
|
-
function
|
|
813
|
+
function ot(e) {
|
|
833
814
|
var t;
|
|
834
|
-
return (t = e ??
|
|
815
|
+
return (t = e ?? Lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
835
816
|
}
|
|
836
|
-
function
|
|
837
|
-
return e &&
|
|
817
|
+
function Fr(e) {
|
|
818
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
838
819
|
}
|
|
839
|
-
function
|
|
840
|
-
return e && e instanceof
|
|
820
|
+
function jr(e) {
|
|
821
|
+
return e && e instanceof Mt || Fr(e) && Nt(e);
|
|
841
822
|
}
|
|
842
|
-
var
|
|
823
|
+
var kr = It(function(e) {
|
|
843
824
|
return function() {
|
|
844
825
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
845
826
|
};
|
|
846
|
-
}),
|
|
847
|
-
|
|
827
|
+
}), Ct = function(e) {
|
|
828
|
+
oe(t, e);
|
|
848
829
|
function t() {
|
|
849
830
|
var r = e.call(this) || this;
|
|
850
831
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
851
832
|
}
|
|
852
833
|
return t.prototype.lift = function(r) {
|
|
853
|
-
var n = new
|
|
834
|
+
var n = new st(this, this);
|
|
854
835
|
return n.operator = r, n;
|
|
855
836
|
}, t.prototype._throwIfClosed = function() {
|
|
856
837
|
if (this.closed)
|
|
857
|
-
throw new
|
|
838
|
+
throw new kr();
|
|
858
839
|
}, t.prototype.next = function(r) {
|
|
859
840
|
var n = this;
|
|
860
841
|
ce(function() {
|
|
@@ -862,7 +843,7 @@ var Gr = Bt(function(e) {
|
|
|
862
843
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
863
844
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
864
845
|
try {
|
|
865
|
-
for (var s =
|
|
846
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
866
847
|
var h = a.value;
|
|
867
848
|
h.next(r);
|
|
868
849
|
}
|
|
@@ -911,20 +892,20 @@ var Gr = Bt(function(e) {
|
|
|
911
892
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
912
893
|
}, t.prototype._innerSubscribe = function(r) {
|
|
913
894
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
914
|
-
return o || s ?
|
|
915
|
-
n.currentObservers = null,
|
|
895
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
896
|
+
n.currentObservers = null, De(a, r);
|
|
916
897
|
}));
|
|
917
898
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
918
899
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
919
900
|
i ? r.error(o) : s && r.complete();
|
|
920
901
|
}, t.prototype.asObservable = function() {
|
|
921
|
-
var r = new
|
|
902
|
+
var r = new it();
|
|
922
903
|
return r.source = this, r;
|
|
923
904
|
}, t.create = function(r, n) {
|
|
924
|
-
return new
|
|
905
|
+
return new st(r, n);
|
|
925
906
|
}, t;
|
|
926
|
-
}(
|
|
927
|
-
|
|
907
|
+
}(it), st = function(e) {
|
|
908
|
+
oe(t, e);
|
|
928
909
|
function t(r, n) {
|
|
929
910
|
var i = e.call(this) || this;
|
|
930
911
|
return i.destination = r, i.source = n, i;
|
|
@@ -940,17 +921,17 @@ var Gr = Bt(function(e) {
|
|
|
940
921
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
941
922
|
}, t.prototype._subscribe = function(r) {
|
|
942
923
|
var n, i;
|
|
943
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
|
|
944
925
|
}, t;
|
|
945
|
-
}(
|
|
926
|
+
}(Ct), $t = {
|
|
946
927
|
now: function() {
|
|
947
|
-
return (
|
|
928
|
+
return ($t.delegate || Date).now();
|
|
948
929
|
},
|
|
949
930
|
delegate: void 0
|
|
950
|
-
},
|
|
951
|
-
|
|
931
|
+
}, Vr = function(e) {
|
|
932
|
+
oe(t, e);
|
|
952
933
|
function t(r, n, i) {
|
|
953
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
954
935
|
var o = e.call(this) || this;
|
|
955
936
|
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;
|
|
956
937
|
}
|
|
@@ -970,24 +951,24 @@ var Gr = Bt(function(e) {
|
|
|
970
951
|
u && o.splice(0, u + 1);
|
|
971
952
|
}
|
|
972
953
|
}, t;
|
|
973
|
-
}(
|
|
974
|
-
const
|
|
975
|
-
if (
|
|
976
|
-
const r = new
|
|
977
|
-
|
|
954
|
+
}(Ct);
|
|
955
|
+
const at = [], ut = {}, Xr = (e, t = 0) => {
|
|
956
|
+
if (at.indexOf(e) == -1) {
|
|
957
|
+
const r = new Vr(t);
|
|
958
|
+
ut[e] = r, at.push(e);
|
|
978
959
|
}
|
|
979
|
-
return
|
|
960
|
+
return ut[e];
|
|
980
961
|
}, D = [];
|
|
981
|
-
function
|
|
962
|
+
function Wr(e, t) {
|
|
982
963
|
return {
|
|
983
|
-
subscribe:
|
|
964
|
+
subscribe: ve(e, t).subscribe
|
|
984
965
|
};
|
|
985
966
|
}
|
|
986
|
-
function
|
|
967
|
+
function ve(e, t = B) {
|
|
987
968
|
let r;
|
|
988
969
|
const n = /* @__PURE__ */ new Set();
|
|
989
970
|
function i(a) {
|
|
990
|
-
if (
|
|
971
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
991
972
|
const h = !D.length;
|
|
992
973
|
for (const u of n)
|
|
993
974
|
u[1](), D.push(u, e);
|
|
@@ -1009,12 +990,12 @@ function ye(e, t = B) {
|
|
|
1009
990
|
}
|
|
1010
991
|
return { set: i, update: o, subscribe: s };
|
|
1011
992
|
}
|
|
1012
|
-
function
|
|
993
|
+
function Z(e, t, r) {
|
|
1013
994
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1014
995
|
if (!i.every(Boolean))
|
|
1015
996
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1016
997
|
const o = t.length < 2;
|
|
1017
|
-
return
|
|
998
|
+
return Wr(r, (s, a) => {
|
|
1018
999
|
let h = !1;
|
|
1019
1000
|
const u = [];
|
|
1020
1001
|
let l = 0, f = B;
|
|
@@ -1023,128 +1004,170 @@ function Q(e, t, r) {
|
|
|
1023
1004
|
return;
|
|
1024
1005
|
f();
|
|
1025
1006
|
const d = t(n ? u[0] : u, s, a);
|
|
1026
|
-
o ? s(d) : f =
|
|
1007
|
+
o ? s(d) : f = Ye(d) ? d : B;
|
|
1027
1008
|
}, p = i.map(
|
|
1028
|
-
(d,
|
|
1009
|
+
(d, y) => wt(
|
|
1029
1010
|
d,
|
|
1030
1011
|
(H) => {
|
|
1031
|
-
u[
|
|
1012
|
+
u[y] = H, l &= ~(1 << y), h && c();
|
|
1032
1013
|
},
|
|
1033
1014
|
() => {
|
|
1034
|
-
l |= 1 <<
|
|
1015
|
+
l |= 1 << y;
|
|
1035
1016
|
}
|
|
1036
1017
|
)
|
|
1037
1018
|
);
|
|
1038
1019
|
return h = !0, c(), function() {
|
|
1039
|
-
|
|
1020
|
+
ne(p), f(), h = !1;
|
|
1040
1021
|
};
|
|
1041
1022
|
});
|
|
1042
1023
|
}
|
|
1043
|
-
function
|
|
1024
|
+
function zr(e) {
|
|
1044
1025
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1045
1026
|
}
|
|
1046
|
-
var
|
|
1047
|
-
return
|
|
1027
|
+
var Zr = function(t) {
|
|
1028
|
+
return Qr(t) && !Jr(t);
|
|
1048
1029
|
};
|
|
1049
|
-
function
|
|
1030
|
+
function Qr(e) {
|
|
1050
1031
|
return !!e && typeof e == "object";
|
|
1051
1032
|
}
|
|
1052
|
-
function
|
|
1033
|
+
function Jr(e) {
|
|
1053
1034
|
var t = Object.prototype.toString.call(e);
|
|
1054
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1035
|
+
return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
|
|
1055
1036
|
}
|
|
1056
|
-
var
|
|
1057
|
-
function
|
|
1058
|
-
return e.$$typeof ===
|
|
1037
|
+
var Yr = typeof Symbol == "function" && Symbol.for, qr = Yr ? Symbol.for("react.element") : 60103;
|
|
1038
|
+
function Kr(e) {
|
|
1039
|
+
return e.$$typeof === qr;
|
|
1059
1040
|
}
|
|
1060
|
-
function
|
|
1041
|
+
function en(e) {
|
|
1061
1042
|
return Array.isArray(e) ? [] : {};
|
|
1062
1043
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1044
|
+
function te(e, t) {
|
|
1045
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(en(e), e, t) : e;
|
|
1065
1046
|
}
|
|
1066
|
-
function
|
|
1047
|
+
function tn(e, t, r) {
|
|
1067
1048
|
return e.concat(t).map(function(n) {
|
|
1068
|
-
return
|
|
1049
|
+
return te(n, r);
|
|
1069
1050
|
});
|
|
1070
1051
|
}
|
|
1071
|
-
function
|
|
1052
|
+
function rn(e, t) {
|
|
1072
1053
|
if (!t.customMerge)
|
|
1073
|
-
return
|
|
1054
|
+
return k;
|
|
1074
1055
|
var r = t.customMerge(e);
|
|
1075
|
-
return typeof r == "function" ? r :
|
|
1056
|
+
return typeof r == "function" ? r : k;
|
|
1076
1057
|
}
|
|
1077
|
-
function
|
|
1058
|
+
function nn(e) {
|
|
1078
1059
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1079
1060
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1080
1061
|
}) : [];
|
|
1081
1062
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return Object.keys(e).concat(
|
|
1063
|
+
function ht(e) {
|
|
1064
|
+
return Object.keys(e).concat(nn(e));
|
|
1084
1065
|
}
|
|
1085
|
-
function
|
|
1066
|
+
function Rt(e, t) {
|
|
1086
1067
|
try {
|
|
1087
1068
|
return t in e;
|
|
1088
1069
|
} catch {
|
|
1089
1070
|
return !1;
|
|
1090
1071
|
}
|
|
1091
1072
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1073
|
+
function on(e, t) {
|
|
1074
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1094
1075
|
}
|
|
1095
|
-
function
|
|
1076
|
+
function sn(e, t, r) {
|
|
1096
1077
|
var n = {};
|
|
1097
|
-
return r.isMergeableObject(e) &&
|
|
1098
|
-
n[i] =
|
|
1099
|
-
}),
|
|
1100
|
-
|
|
1078
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1079
|
+
n[i] = te(e[i], r);
|
|
1080
|
+
}), ht(t).forEach(function(i) {
|
|
1081
|
+
on(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1101
1082
|
}), n;
|
|
1102
1083
|
}
|
|
1103
|
-
function
|
|
1104
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1084
|
+
function k(e, t, r) {
|
|
1085
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1105
1086
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1106
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1087
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : te(t, r);
|
|
1107
1088
|
}
|
|
1108
|
-
|
|
1089
|
+
k.all = function(t, r) {
|
|
1109
1090
|
if (!Array.isArray(t))
|
|
1110
1091
|
throw new Error("first argument should be an array");
|
|
1111
1092
|
return t.reduce(function(n, i) {
|
|
1112
|
-
return
|
|
1093
|
+
return k(n, i, r);
|
|
1113
1094
|
}, {});
|
|
1114
1095
|
};
|
|
1115
|
-
var
|
|
1116
|
-
const
|
|
1117
|
-
function
|
|
1118
|
-
|
|
1096
|
+
var an = k, un = an;
|
|
1097
|
+
const hn = /* @__PURE__ */ zr(un);
|
|
1098
|
+
var je = function(e, t) {
|
|
1099
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1100
|
+
r.__proto__ = n;
|
|
1101
|
+
} || function(r, n) {
|
|
1102
|
+
for (var i in n)
|
|
1103
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1104
|
+
}, je(e, t);
|
|
1105
|
+
};
|
|
1106
|
+
function _e(e, t) {
|
|
1107
|
+
if (typeof t != "function" && t !== null)
|
|
1108
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1109
|
+
je(e, t);
|
|
1110
|
+
function r() {
|
|
1111
|
+
this.constructor = e;
|
|
1112
|
+
}
|
|
1113
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1114
|
+
}
|
|
1115
|
+
var A = function() {
|
|
1116
|
+
return A = Object.assign || function(t) {
|
|
1117
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1118
|
+
r = arguments[n];
|
|
1119
|
+
for (var o in r)
|
|
1120
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1121
|
+
}
|
|
1122
|
+
return t;
|
|
1123
|
+
}, A.apply(this, arguments);
|
|
1124
|
+
};
|
|
1125
|
+
function ln(e, t) {
|
|
1126
|
+
var r = {};
|
|
1127
|
+
for (var n in e)
|
|
1128
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1129
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1130
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1131
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1132
|
+
return r;
|
|
1133
|
+
}
|
|
1134
|
+
function we(e, t, r) {
|
|
1135
|
+
if (r || arguments.length === 2)
|
|
1136
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1137
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1138
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1139
|
+
}
|
|
1140
|
+
function Ae(e, t) {
|
|
1141
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1119
1142
|
return i(e, {
|
|
1120
1143
|
cache: r,
|
|
1121
1144
|
serializer: n
|
|
1122
1145
|
});
|
|
1123
1146
|
}
|
|
1124
|
-
function
|
|
1147
|
+
function cn(e) {
|
|
1125
1148
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1126
1149
|
}
|
|
1127
|
-
function
|
|
1128
|
-
var i =
|
|
1150
|
+
function fn(e, t, r, n) {
|
|
1151
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1129
1152
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1130
1153
|
}
|
|
1131
|
-
function
|
|
1154
|
+
function Ut(e, t, r) {
|
|
1132
1155
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1133
1156
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1134
1157
|
}
|
|
1135
|
-
function
|
|
1158
|
+
function Gt(e, t, r, n, i) {
|
|
1136
1159
|
return r.bind(t, e, n, i);
|
|
1137
1160
|
}
|
|
1138
|
-
function
|
|
1139
|
-
var r = e.length === 1 ?
|
|
1140
|
-
return
|
|
1161
|
+
function pn(e, t) {
|
|
1162
|
+
var r = e.length === 1 ? fn : Ut;
|
|
1163
|
+
return Gt(e, this, r, t.cache.create(), t.serializer);
|
|
1141
1164
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1165
|
+
function dn(e, t) {
|
|
1166
|
+
return Gt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1144
1167
|
}
|
|
1145
|
-
var
|
|
1168
|
+
var mn = function() {
|
|
1146
1169
|
return JSON.stringify(arguments);
|
|
1147
|
-
},
|
|
1170
|
+
}, bn = (
|
|
1148
1171
|
/** @class */
|
|
1149
1172
|
function() {
|
|
1150
1173
|
function e() {
|
|
@@ -1156,61 +1179,71 @@ var ln = function() {
|
|
|
1156
1179
|
this.cache[t] = r;
|
|
1157
1180
|
}, e;
|
|
1158
1181
|
}()
|
|
1159
|
-
),
|
|
1182
|
+
), gn = {
|
|
1160
1183
|
create: function() {
|
|
1161
|
-
return new
|
|
1184
|
+
return new bn();
|
|
1162
1185
|
}
|
|
1163
|
-
},
|
|
1164
|
-
variadic:
|
|
1165
|
-
},
|
|
1186
|
+
}, Pe = {
|
|
1187
|
+
variadic: dn
|
|
1188
|
+
}, de = function() {
|
|
1189
|
+
return de = Object.assign || function(t) {
|
|
1190
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1191
|
+
r = arguments[n];
|
|
1192
|
+
for (var o in r)
|
|
1193
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1194
|
+
}
|
|
1195
|
+
return t;
|
|
1196
|
+
}, de.apply(this, arguments);
|
|
1197
|
+
};
|
|
1198
|
+
var m;
|
|
1166
1199
|
(function(e) {
|
|
1167
1200
|
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";
|
|
1168
1201
|
})(m || (m = {}));
|
|
1169
|
-
var
|
|
1202
|
+
var v;
|
|
1170
1203
|
(function(e) {
|
|
1171
1204
|
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";
|
|
1172
|
-
})(
|
|
1173
|
-
var
|
|
1205
|
+
})(v || (v = {}));
|
|
1206
|
+
var V;
|
|
1174
1207
|
(function(e) {
|
|
1175
1208
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1176
|
-
})(
|
|
1177
|
-
function
|
|
1178
|
-
return e.type ===
|
|
1209
|
+
})(V || (V = {}));
|
|
1210
|
+
function lt(e) {
|
|
1211
|
+
return e.type === v.literal;
|
|
1179
1212
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return e.type ===
|
|
1213
|
+
function yn(e) {
|
|
1214
|
+
return e.type === v.argument;
|
|
1182
1215
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return e.type ===
|
|
1216
|
+
function Dt(e) {
|
|
1217
|
+
return e.type === v.number;
|
|
1185
1218
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return e.type ===
|
|
1219
|
+
function Ft(e) {
|
|
1220
|
+
return e.type === v.date;
|
|
1188
1221
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return e.type ===
|
|
1222
|
+
function jt(e) {
|
|
1223
|
+
return e.type === v.time;
|
|
1191
1224
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e.type ===
|
|
1225
|
+
function kt(e) {
|
|
1226
|
+
return e.type === v.select;
|
|
1194
1227
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return e.type ===
|
|
1228
|
+
function Vt(e) {
|
|
1229
|
+
return e.type === v.plural;
|
|
1197
1230
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return e.type ===
|
|
1231
|
+
function vn(e) {
|
|
1232
|
+
return e.type === v.pound;
|
|
1200
1233
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return e.type ===
|
|
1234
|
+
function Xt(e) {
|
|
1235
|
+
return e.type === v.tag;
|
|
1203
1236
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1237
|
+
function Wt(e) {
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1206
1239
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1240
|
+
function ke(e) {
|
|
1241
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1209
1242
|
}
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1243
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1244
|
+
function En(e) {
|
|
1212
1245
|
var t = {};
|
|
1213
|
-
return e.replace(
|
|
1246
|
+
return e.replace(_n, function(r) {
|
|
1214
1247
|
var n = r.length;
|
|
1215
1248
|
switch (r[0]) {
|
|
1216
1249
|
case "G":
|
|
@@ -1299,11 +1332,21 @@ function bn(e) {
|
|
|
1299
1332
|
return "";
|
|
1300
1333
|
}), t;
|
|
1301
1334
|
}
|
|
1302
|
-
var
|
|
1303
|
-
function
|
|
1335
|
+
var _ = function() {
|
|
1336
|
+
return _ = Object.assign || function(t) {
|
|
1337
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1338
|
+
r = arguments[n];
|
|
1339
|
+
for (var o in r)
|
|
1340
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1341
|
+
}
|
|
1342
|
+
return t;
|
|
1343
|
+
}, _.apply(this, arguments);
|
|
1344
|
+
};
|
|
1345
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1346
|
+
function Sn(e) {
|
|
1304
1347
|
if (e.length === 0)
|
|
1305
1348
|
throw new Error("Number skeleton cannot be empty");
|
|
1306
|
-
for (var t = e.split(
|
|
1349
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1307
1350
|
return c.length > 0;
|
|
1308
1351
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1309
1352
|
var o = i[n], s = o.split("/");
|
|
@@ -1318,17 +1361,17 @@ function yn(e) {
|
|
|
1318
1361
|
}
|
|
1319
1362
|
return r;
|
|
1320
1363
|
}
|
|
1321
|
-
function
|
|
1364
|
+
function Tn(e) {
|
|
1322
1365
|
return e.replace(/^(.*?)-/, "");
|
|
1323
1366
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1367
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1368
|
+
function ft(e) {
|
|
1326
1369
|
var t = {};
|
|
1327
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1370
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1328
1371
|
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)), "";
|
|
1329
1372
|
}), t;
|
|
1330
1373
|
}
|
|
1331
|
-
function
|
|
1374
|
+
function Jt(e) {
|
|
1332
1375
|
switch (e) {
|
|
1333
1376
|
case "sign-auto":
|
|
1334
1377
|
return {
|
|
@@ -1368,7 +1411,7 @@ function Xt(e) {
|
|
|
1368
1411
|
};
|
|
1369
1412
|
}
|
|
1370
1413
|
}
|
|
1371
|
-
function
|
|
1414
|
+
function Bn(e) {
|
|
1372
1415
|
var t;
|
|
1373
1416
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1374
1417
|
notation: "engineering"
|
|
@@ -1376,17 +1419,17 @@ function xn(e) {
|
|
|
1376
1419
|
notation: "scientific"
|
|
1377
1420
|
}, e = e.slice(1)), t) {
|
|
1378
1421
|
var r = e.slice(0, 2);
|
|
1379
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1422
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1380
1423
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1381
1424
|
t.minimumIntegerDigits = e.length;
|
|
1382
1425
|
}
|
|
1383
1426
|
return t;
|
|
1384
1427
|
}
|
|
1385
|
-
function
|
|
1386
|
-
var t = {}, r =
|
|
1428
|
+
function pt(e) {
|
|
1429
|
+
var t = {}, r = Jt(e);
|
|
1387
1430
|
return r || t;
|
|
1388
1431
|
}
|
|
1389
|
-
function
|
|
1432
|
+
function wn(e) {
|
|
1390
1433
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1391
1434
|
var i = n[r];
|
|
1392
1435
|
switch (i.stem) {
|
|
@@ -1410,7 +1453,7 @@ function En(e) {
|
|
|
1410
1453
|
continue;
|
|
1411
1454
|
case "measure-unit":
|
|
1412
1455
|
case "unit":
|
|
1413
|
-
t.style = "unit", t.unit =
|
|
1456
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1414
1457
|
continue;
|
|
1415
1458
|
case "compact-short":
|
|
1416
1459
|
case "K":
|
|
@@ -1421,13 +1464,13 @@ function En(e) {
|
|
|
1421
1464
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1422
1465
|
continue;
|
|
1423
1466
|
case "scientific":
|
|
1424
|
-
t =
|
|
1425
|
-
return
|
|
1467
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1468
|
+
return _(_({}, h), pt(u));
|
|
1426
1469
|
}, {}));
|
|
1427
1470
|
continue;
|
|
1428
1471
|
case "engineering":
|
|
1429
|
-
t =
|
|
1430
|
-
return
|
|
1472
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1473
|
+
return _(_({}, h), pt(u));
|
|
1431
1474
|
}, {}));
|
|
1432
1475
|
continue;
|
|
1433
1476
|
case "notation-simple":
|
|
@@ -1472,7 +1515,7 @@ function En(e) {
|
|
|
1472
1515
|
case "integer-width":
|
|
1473
1516
|
if (i.options.length > 1)
|
|
1474
1517
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1475
|
-
i.options[0].replace(
|
|
1518
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, p) {
|
|
1476
1519
|
if (u)
|
|
1477
1520
|
t.minimumIntegerDigits = l.length;
|
|
1478
1521
|
else {
|
|
@@ -1485,28 +1528,28 @@ function En(e) {
|
|
|
1485
1528
|
});
|
|
1486
1529
|
continue;
|
|
1487
1530
|
}
|
|
1488
|
-
if (
|
|
1531
|
+
if (Qt.test(i.stem)) {
|
|
1489
1532
|
t.minimumIntegerDigits = i.stem.length;
|
|
1490
1533
|
continue;
|
|
1491
1534
|
}
|
|
1492
|
-
if (
|
|
1535
|
+
if (ct.test(i.stem)) {
|
|
1493
1536
|
if (i.options.length > 1)
|
|
1494
1537
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1495
|
-
i.stem.replace(
|
|
1538
|
+
i.stem.replace(ct, function(h, u, l, f, c, p) {
|
|
1496
1539
|
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), "";
|
|
1497
1540
|
});
|
|
1498
1541
|
var o = i.options[0];
|
|
1499
|
-
o === "w" ? t =
|
|
1542
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ft(o)));
|
|
1500
1543
|
continue;
|
|
1501
1544
|
}
|
|
1502
|
-
if (
|
|
1503
|
-
t =
|
|
1545
|
+
if (Zt.test(i.stem)) {
|
|
1546
|
+
t = _(_({}, t), ft(i.stem));
|
|
1504
1547
|
continue;
|
|
1505
1548
|
}
|
|
1506
|
-
var s =
|
|
1507
|
-
s && (t =
|
|
1508
|
-
var a =
|
|
1509
|
-
a && (t =
|
|
1549
|
+
var s = Jt(i.stem);
|
|
1550
|
+
s && (t = _(_({}, t), s));
|
|
1551
|
+
var a = Bn(i.stem);
|
|
1552
|
+
a && (t = _(_({}, t), a));
|
|
1510
1553
|
}
|
|
1511
1554
|
return t;
|
|
1512
1555
|
}
|
|
@@ -2925,13 +2968,13 @@ var he = {
|
|
|
2925
2968
|
"h"
|
|
2926
2969
|
]
|
|
2927
2970
|
};
|
|
2928
|
-
function
|
|
2971
|
+
function An(e, t) {
|
|
2929
2972
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2930
2973
|
var i = e.charAt(n);
|
|
2931
2974
|
if (i === "j") {
|
|
2932
2975
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2933
2976
|
o++, n++;
|
|
2934
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2977
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2935
2978
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2936
2979
|
r += h;
|
|
2937
2980
|
for (; s-- > 0; )
|
|
@@ -2941,7 +2984,7 @@ function Sn(e, t) {
|
|
|
2941
2984
|
}
|
|
2942
2985
|
return r;
|
|
2943
2986
|
}
|
|
2944
|
-
function
|
|
2987
|
+
function Pn(e) {
|
|
2945
2988
|
var t = e.hourCycle;
|
|
2946
2989
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2947
2990
|
e.hourCycles && // @ts-ignore
|
|
@@ -2963,20 +3006,20 @@ function Tn(e) {
|
|
|
2963
3006
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2964
3007
|
return i[0];
|
|
2965
3008
|
}
|
|
2966
|
-
var
|
|
3009
|
+
var Oe, On = new RegExp("^".concat(zt.source, "*")), In = new RegExp("".concat(zt.source, "*$"));
|
|
2967
3010
|
function b(e, t) {
|
|
2968
3011
|
return { start: e, end: t };
|
|
2969
3012
|
}
|
|
2970
|
-
var
|
|
3013
|
+
var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Gn = Un ? Number.isSafeInteger : function(e) {
|
|
2971
3014
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2972
|
-
},
|
|
3015
|
+
}, Ve = !0;
|
|
2973
3016
|
try {
|
|
2974
|
-
var
|
|
2975
|
-
|
|
3017
|
+
var Dn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3018
|
+
Ve = ((Oe = Dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2976
3019
|
} catch {
|
|
2977
|
-
|
|
3020
|
+
Ve = !1;
|
|
2978
3021
|
}
|
|
2979
|
-
var
|
|
3022
|
+
var dt = Ln ? (
|
|
2980
3023
|
// Native
|
|
2981
3024
|
function(t, r, n) {
|
|
2982
3025
|
return t.startsWith(r, n);
|
|
@@ -2986,7 +3029,7 @@ var ht = wn ? (
|
|
|
2986
3029
|
function(t, r, n) {
|
|
2987
3030
|
return t.slice(n, n + r.length) === r;
|
|
2988
3031
|
}
|
|
2989
|
-
),
|
|
3032
|
+
), Xe = Nn ? String.fromCodePoint : (
|
|
2990
3033
|
// IE11
|
|
2991
3034
|
function() {
|
|
2992
3035
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2998,9 +3041,9 @@ var ht = wn ? (
|
|
|
2998
3041
|
}
|
|
2999
3042
|
return n;
|
|
3000
3043
|
}
|
|
3001
|
-
),
|
|
3044
|
+
), mt = (
|
|
3002
3045
|
// native
|
|
3003
|
-
|
|
3046
|
+
Mn ? Object.fromEntries : (
|
|
3004
3047
|
// Ponyfill
|
|
3005
3048
|
function(t) {
|
|
3006
3049
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3010,7 +3053,7 @@ var ht = wn ? (
|
|
|
3010
3053
|
return r;
|
|
3011
3054
|
}
|
|
3012
3055
|
)
|
|
3013
|
-
),
|
|
3056
|
+
), Yt = Cn ? (
|
|
3014
3057
|
// Native
|
|
3015
3058
|
function(t, r) {
|
|
3016
3059
|
return t.codePointAt(r);
|
|
@@ -3024,7 +3067,7 @@ var ht = wn ? (
|
|
|
3024
3067
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3025
3068
|
}
|
|
3026
3069
|
}
|
|
3027
|
-
),
|
|
3070
|
+
), Fn = $n ? (
|
|
3028
3071
|
// Native
|
|
3029
3072
|
function(t) {
|
|
3030
3073
|
return t.trimStart();
|
|
@@ -3032,9 +3075,9 @@ var ht = wn ? (
|
|
|
3032
3075
|
) : (
|
|
3033
3076
|
// Ponyfill
|
|
3034
3077
|
function(t) {
|
|
3035
|
-
return t.replace(
|
|
3078
|
+
return t.replace(On, "");
|
|
3036
3079
|
}
|
|
3037
|
-
),
|
|
3080
|
+
), jn = Rn ? (
|
|
3038
3081
|
// Native
|
|
3039
3082
|
function(t) {
|
|
3040
3083
|
return t.trimEnd();
|
|
@@ -3042,32 +3085,32 @@ var ht = wn ? (
|
|
|
3042
3085
|
) : (
|
|
3043
3086
|
// Ponyfill
|
|
3044
3087
|
function(t) {
|
|
3045
|
-
return t.replace(
|
|
3088
|
+
return t.replace(In, "");
|
|
3046
3089
|
}
|
|
3047
3090
|
);
|
|
3048
|
-
function
|
|
3091
|
+
function qt(e, t) {
|
|
3049
3092
|
return new RegExp(e, t);
|
|
3050
3093
|
}
|
|
3051
|
-
var
|
|
3052
|
-
if (
|
|
3053
|
-
var
|
|
3054
|
-
|
|
3094
|
+
var We;
|
|
3095
|
+
if (Ve) {
|
|
3096
|
+
var bt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3097
|
+
We = function(t, r) {
|
|
3055
3098
|
var n;
|
|
3056
|
-
|
|
3057
|
-
var i =
|
|
3099
|
+
bt.lastIndex = r;
|
|
3100
|
+
var i = bt.exec(t);
|
|
3058
3101
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3059
3102
|
};
|
|
3060
3103
|
} else
|
|
3061
|
-
|
|
3104
|
+
We = function(t, r) {
|
|
3062
3105
|
for (var n = []; ; ) {
|
|
3063
|
-
var i =
|
|
3064
|
-
if (i === void 0 ||
|
|
3106
|
+
var i = Yt(t, r);
|
|
3107
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3065
3108
|
break;
|
|
3066
3109
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3067
3110
|
}
|
|
3068
|
-
return
|
|
3111
|
+
return Xe.apply(void 0, n);
|
|
3069
3112
|
};
|
|
3070
|
-
var
|
|
3113
|
+
var kn = (
|
|
3071
3114
|
/** @class */
|
|
3072
3115
|
function() {
|
|
3073
3116
|
function e(t, r) {
|
|
@@ -3091,14 +3134,14 @@ var Un = (
|
|
|
3091
3134
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3092
3135
|
var a = this.clonePosition();
|
|
3093
3136
|
this.bump(), i.push({
|
|
3094
|
-
type:
|
|
3137
|
+
type: v.pound,
|
|
3095
3138
|
location: b(a, this.clonePosition())
|
|
3096
3139
|
});
|
|
3097
3140
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3098
3141
|
if (n)
|
|
3099
3142
|
break;
|
|
3100
3143
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3101
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3144
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3102
3145
|
var s = this.parseTag(t, r);
|
|
3103
3146
|
if (s.err)
|
|
3104
3147
|
return s;
|
|
@@ -3119,7 +3162,7 @@ var Un = (
|
|
|
3119
3162
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3120
3163
|
return {
|
|
3121
3164
|
val: {
|
|
3122
|
-
type:
|
|
3165
|
+
type: v.literal,
|
|
3123
3166
|
value: "<".concat(i, "/>"),
|
|
3124
3167
|
location: b(n, this.clonePosition())
|
|
3125
3168
|
},
|
|
@@ -3131,12 +3174,12 @@ var Un = (
|
|
|
3131
3174
|
return o;
|
|
3132
3175
|
var s = o.val, a = this.clonePosition();
|
|
3133
3176
|
if (this.bumpIf("</")) {
|
|
3134
|
-
if (this.isEOF() || !
|
|
3177
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3135
3178
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3136
3179
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3137
3180
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3138
3181
|
val: {
|
|
3139
|
-
type:
|
|
3182
|
+
type: v.tag,
|
|
3140
3183
|
value: i,
|
|
3141
3184
|
children: s,
|
|
3142
3185
|
location: b(n, this.clonePosition())
|
|
@@ -3149,7 +3192,7 @@ var Un = (
|
|
|
3149
3192
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3150
3193
|
}, e.prototype.parseTagName = function() {
|
|
3151
3194
|
var t = this.offset();
|
|
3152
|
-
for (this.bump(); !this.isEOF() &&
|
|
3195
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3153
3196
|
this.bump();
|
|
3154
3197
|
return this.message.slice(t, this.offset());
|
|
3155
3198
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3173,12 +3216,12 @@ var Un = (
|
|
|
3173
3216
|
}
|
|
3174
3217
|
var h = b(n, this.clonePosition());
|
|
3175
3218
|
return {
|
|
3176
|
-
val: { type:
|
|
3219
|
+
val: { type: v.literal, value: i, location: h },
|
|
3177
3220
|
err: null
|
|
3178
3221
|
};
|
|
3179
3222
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3180
3223
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3181
|
-
!
|
|
3224
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3182
3225
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3183
3226
|
if (this.isEOF() || this.char() !== 39)
|
|
3184
3227
|
return null;
|
|
@@ -3212,12 +3255,12 @@ var Un = (
|
|
|
3212
3255
|
r.push(n);
|
|
3213
3256
|
this.bump();
|
|
3214
3257
|
}
|
|
3215
|
-
return
|
|
3258
|
+
return Xe.apply(void 0, r);
|
|
3216
3259
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3217
3260
|
if (this.isEOF())
|
|
3218
3261
|
return null;
|
|
3219
3262
|
var n = this.char();
|
|
3220
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3263
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
3221
3264
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3222
3265
|
var n = this.clonePosition();
|
|
3223
3266
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3233,7 +3276,7 @@ var Un = (
|
|
|
3233
3276
|
case 125:
|
|
3234
3277
|
return this.bump(), {
|
|
3235
3278
|
val: {
|
|
3236
|
-
type:
|
|
3279
|
+
type: v.argument,
|
|
3237
3280
|
// value does not include the opening and closing braces.
|
|
3238
3281
|
value: i,
|
|
3239
3282
|
location: b(n, this.clonePosition())
|
|
@@ -3246,7 +3289,7 @@ var Un = (
|
|
|
3246
3289
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3247
3290
|
}
|
|
3248
3291
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3249
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3292
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3250
3293
|
this.bumpTo(i);
|
|
3251
3294
|
var o = this.clonePosition(), s = b(t, o);
|
|
3252
3295
|
return { value: n, location: s };
|
|
@@ -3265,7 +3308,7 @@ var Un = (
|
|
|
3265
3308
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3266
3309
|
if (f.err)
|
|
3267
3310
|
return f;
|
|
3268
|
-
var c =
|
|
3311
|
+
var c = jn(f.val);
|
|
3269
3312
|
if (c.length === 0)
|
|
3270
3313
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3271
3314
|
var p = b(l, this.clonePosition());
|
|
@@ -3274,37 +3317,37 @@ var Un = (
|
|
|
3274
3317
|
var d = this.tryParseArgumentClose(i);
|
|
3275
3318
|
if (d.err)
|
|
3276
3319
|
return d;
|
|
3277
|
-
var
|
|
3278
|
-
if (u &&
|
|
3279
|
-
var H =
|
|
3320
|
+
var y = b(i, this.clonePosition());
|
|
3321
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3322
|
+
var H = Fn(u.style.slice(2));
|
|
3280
3323
|
if (a === "number") {
|
|
3281
3324
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3282
3325
|
return f.err ? f : {
|
|
3283
|
-
val: { type:
|
|
3326
|
+
val: { type: v.number, value: n, location: y, style: f.val },
|
|
3284
3327
|
err: null
|
|
3285
3328
|
};
|
|
3286
3329
|
} else {
|
|
3287
3330
|
if (H.length === 0)
|
|
3288
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3331
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
3289
3332
|
var C = H;
|
|
3290
|
-
this.locale && (C =
|
|
3333
|
+
this.locale && (C = An(H, this.locale));
|
|
3291
3334
|
var c = {
|
|
3292
|
-
type:
|
|
3335
|
+
type: V.dateTime,
|
|
3293
3336
|
pattern: C,
|
|
3294
3337
|
location: u.styleLocation,
|
|
3295
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3296
|
-
}, L = a === "date" ?
|
|
3338
|
+
parsedOptions: this.shouldParseSkeletons ? En(C) : {}
|
|
3339
|
+
}, L = a === "date" ? v.date : v.time;
|
|
3297
3340
|
return {
|
|
3298
|
-
val: { type: L, value: n, location:
|
|
3341
|
+
val: { type: L, value: n, location: y, style: c },
|
|
3299
3342
|
err: null
|
|
3300
3343
|
};
|
|
3301
3344
|
}
|
|
3302
3345
|
}
|
|
3303
3346
|
return {
|
|
3304
3347
|
val: {
|
|
3305
|
-
type: a === "number" ?
|
|
3348
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3306
3349
|
value: n,
|
|
3307
|
-
location:
|
|
3350
|
+
location: y,
|
|
3308
3351
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3309
3352
|
},
|
|
3310
3353
|
err: null
|
|
@@ -3313,11 +3356,11 @@ var Un = (
|
|
|
3313
3356
|
case "plural":
|
|
3314
3357
|
case "selectordinal":
|
|
3315
3358
|
case "select": {
|
|
3316
|
-
var
|
|
3359
|
+
var x = this.clonePosition();
|
|
3317
3360
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3318
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3361
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, de({}, x)));
|
|
3319
3362
|
this.bumpSpace();
|
|
3320
|
-
var $ = this.parseIdentifierIfPossible(),
|
|
3363
|
+
var $ = this.parseIdentifierIfPossible(), P = 0;
|
|
3321
3364
|
if (a !== "select" && $.value === "offset") {
|
|
3322
3365
|
if (!this.bumpIf(":"))
|
|
3323
3366
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3325,7 +3368,7 @@ var Un = (
|
|
|
3325
3368
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3326
3369
|
if (f.err)
|
|
3327
3370
|
return f;
|
|
3328
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(),
|
|
3371
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), P = f.val;
|
|
3329
3372
|
}
|
|
3330
3373
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3331
3374
|
if (U.err)
|
|
@@ -3336,18 +3379,18 @@ var Un = (
|
|
|
3336
3379
|
var ae = b(i, this.clonePosition());
|
|
3337
3380
|
return a === "select" ? {
|
|
3338
3381
|
val: {
|
|
3339
|
-
type:
|
|
3382
|
+
type: v.select,
|
|
3340
3383
|
value: n,
|
|
3341
|
-
options:
|
|
3384
|
+
options: mt(U.val),
|
|
3342
3385
|
location: ae
|
|
3343
3386
|
},
|
|
3344
3387
|
err: null
|
|
3345
3388
|
} : {
|
|
3346
3389
|
val: {
|
|
3347
|
-
type:
|
|
3390
|
+
type: v.plural,
|
|
3348
3391
|
value: n,
|
|
3349
|
-
options:
|
|
3350
|
-
offset:
|
|
3392
|
+
options: mt(U.val),
|
|
3393
|
+
offset: P,
|
|
3351
3394
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3352
3395
|
location: ae
|
|
3353
3396
|
},
|
|
@@ -3397,16 +3440,16 @@ var Un = (
|
|
|
3397
3440
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3398
3441
|
var n = [];
|
|
3399
3442
|
try {
|
|
3400
|
-
n =
|
|
3443
|
+
n = Sn(t);
|
|
3401
3444
|
} catch {
|
|
3402
3445
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3403
3446
|
}
|
|
3404
3447
|
return {
|
|
3405
3448
|
val: {
|
|
3406
|
-
type:
|
|
3449
|
+
type: V.number,
|
|
3407
3450
|
tokens: n,
|
|
3408
3451
|
location: r,
|
|
3409
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3452
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3410
3453
|
},
|
|
3411
3454
|
err: null
|
|
3412
3455
|
};
|
|
@@ -3431,9 +3474,9 @@ var Un = (
|
|
|
3431
3474
|
var d = this.parseMessage(t + 1, r, n);
|
|
3432
3475
|
if (d.err)
|
|
3433
3476
|
return d;
|
|
3434
|
-
var
|
|
3435
|
-
if (
|
|
3436
|
-
return
|
|
3477
|
+
var y = this.tryParseArgumentClose(p);
|
|
3478
|
+
if (y.err)
|
|
3479
|
+
return y;
|
|
3437
3480
|
a.push([
|
|
3438
3481
|
u,
|
|
3439
3482
|
{
|
|
@@ -3454,7 +3497,7 @@ var Un = (
|
|
|
3454
3497
|
break;
|
|
3455
3498
|
}
|
|
3456
3499
|
var h = b(i, this.clonePosition());
|
|
3457
|
-
return o ? (s *= n,
|
|
3500
|
+
return o ? (s *= n, Gn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3458
3501
|
}, e.prototype.offset = function() {
|
|
3459
3502
|
return this.position.offset;
|
|
3460
3503
|
}, e.prototype.isEOF = function() {
|
|
@@ -3469,7 +3512,7 @@ var Un = (
|
|
|
3469
3512
|
var t = this.position.offset;
|
|
3470
3513
|
if (t >= this.message.length)
|
|
3471
3514
|
throw Error("out of bound");
|
|
3472
|
-
var r =
|
|
3515
|
+
var r = Yt(this.message, t);
|
|
3473
3516
|
if (r === void 0)
|
|
3474
3517
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3475
3518
|
return r;
|
|
@@ -3488,7 +3531,7 @@ var Un = (
|
|
|
3488
3531
|
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);
|
|
3489
3532
|
}
|
|
3490
3533
|
}, e.prototype.bumpIf = function(t) {
|
|
3491
|
-
if (
|
|
3534
|
+
if (dt(this.message, t, this.offset())) {
|
|
3492
3535
|
for (var r = 0; r < t.length; r++)
|
|
3493
3536
|
this.bump();
|
|
3494
3537
|
return !0;
|
|
@@ -3510,7 +3553,7 @@ var Un = (
|
|
|
3510
3553
|
break;
|
|
3511
3554
|
}
|
|
3512
3555
|
}, e.prototype.bumpSpace = function() {
|
|
3513
|
-
for (; !this.isEOF() &&
|
|
3556
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3514
3557
|
this.bump();
|
|
3515
3558
|
}, e.prototype.peek = function() {
|
|
3516
3559
|
if (this.isEOF())
|
|
@@ -3520,47 +3563,47 @@ var Un = (
|
|
|
3520
3563
|
}, e;
|
|
3521
3564
|
}()
|
|
3522
3565
|
);
|
|
3523
|
-
function
|
|
3566
|
+
function ze(e) {
|
|
3524
3567
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3525
3568
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return
|
|
3569
|
+
function Vn(e) {
|
|
3570
|
+
return ze(e) || e === 47;
|
|
3528
3571
|
}
|
|
3529
|
-
function
|
|
3572
|
+
function Xn(e) {
|
|
3530
3573
|
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;
|
|
3531
3574
|
}
|
|
3532
|
-
function
|
|
3575
|
+
function Kt(e) {
|
|
3533
3576
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3534
3577
|
}
|
|
3535
|
-
function
|
|
3578
|
+
function Wn(e) {
|
|
3536
3579
|
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;
|
|
3537
3580
|
}
|
|
3538
|
-
function
|
|
3581
|
+
function Ze(e) {
|
|
3539
3582
|
e.forEach(function(t) {
|
|
3540
|
-
if (delete t.location,
|
|
3583
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3541
3584
|
for (var r in t.options)
|
|
3542
|
-
delete t.options[r].location,
|
|
3585
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3543
3586
|
else
|
|
3544
|
-
|
|
3587
|
+
Dt(t) && Wt(t.style) || (Ft(t) || jt(t)) && ke(t.style) ? delete t.style.location : Xt(t) && Ze(t.children);
|
|
3545
3588
|
});
|
|
3546
3589
|
}
|
|
3547
|
-
function
|
|
3548
|
-
t === void 0 && (t = {}), t =
|
|
3549
|
-
var r = new
|
|
3590
|
+
function zn(e, t) {
|
|
3591
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3592
|
+
var r = new kn(e, t).parse();
|
|
3550
3593
|
if (r.err) {
|
|
3551
3594
|
var n = SyntaxError(m[r.err.kind]);
|
|
3552
3595
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3553
3596
|
}
|
|
3554
|
-
return t?.captureLocation ||
|
|
3597
|
+
return t?.captureLocation || Ze(r.val), r.val;
|
|
3555
3598
|
}
|
|
3556
|
-
var
|
|
3599
|
+
var X;
|
|
3557
3600
|
(function(e) {
|
|
3558
3601
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3559
|
-
})(
|
|
3560
|
-
var
|
|
3602
|
+
})(X || (X = {}));
|
|
3603
|
+
var Ee = (
|
|
3561
3604
|
/** @class */
|
|
3562
3605
|
function(e) {
|
|
3563
|
-
|
|
3606
|
+
_e(t, e);
|
|
3564
3607
|
function t(r, n, i) {
|
|
3565
3608
|
var o = e.call(this, r) || this;
|
|
3566
3609
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3569,155 +3612,155 @@ var ve = (
|
|
|
3569
3612
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3570
3613
|
}, t;
|
|
3571
3614
|
}(Error)
|
|
3572
|
-
),
|
|
3615
|
+
), gt = (
|
|
3573
3616
|
/** @class */
|
|
3574
3617
|
function(e) {
|
|
3575
|
-
|
|
3618
|
+
_e(t, e);
|
|
3576
3619
|
function t(r, n, i, o) {
|
|
3577
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3620
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3578
3621
|
}
|
|
3579
3622
|
return t;
|
|
3580
|
-
}(
|
|
3581
|
-
),
|
|
3623
|
+
}(Ee)
|
|
3624
|
+
), Zn = (
|
|
3582
3625
|
/** @class */
|
|
3583
3626
|
function(e) {
|
|
3584
|
-
|
|
3627
|
+
_e(t, e);
|
|
3585
3628
|
function t(r, n, i) {
|
|
3586
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3629
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3587
3630
|
}
|
|
3588
3631
|
return t;
|
|
3589
|
-
}(
|
|
3590
|
-
),
|
|
3632
|
+
}(Ee)
|
|
3633
|
+
), Qn = (
|
|
3591
3634
|
/** @class */
|
|
3592
3635
|
function(e) {
|
|
3593
|
-
|
|
3636
|
+
_e(t, e);
|
|
3594
3637
|
function t(r, n) {
|
|
3595
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3638
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3596
3639
|
}
|
|
3597
3640
|
return t;
|
|
3598
|
-
}(
|
|
3599
|
-
),
|
|
3641
|
+
}(Ee)
|
|
3642
|
+
), E;
|
|
3600
3643
|
(function(e) {
|
|
3601
3644
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3602
|
-
})(
|
|
3603
|
-
function
|
|
3645
|
+
})(E || (E = {}));
|
|
3646
|
+
function Jn(e) {
|
|
3604
3647
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3605
3648
|
var n = t[t.length - 1];
|
|
3606
|
-
return !n || n.type !==
|
|
3649
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3607
3650
|
}, []);
|
|
3608
3651
|
}
|
|
3609
|
-
function
|
|
3652
|
+
function Yn(e) {
|
|
3610
3653
|
return typeof e == "function";
|
|
3611
3654
|
}
|
|
3612
3655
|
function fe(e, t, r, n, i, o, s) {
|
|
3613
|
-
if (e.length === 1 &&
|
|
3656
|
+
if (e.length === 1 && lt(e[0]))
|
|
3614
3657
|
return [
|
|
3615
3658
|
{
|
|
3616
|
-
type:
|
|
3659
|
+
type: E.literal,
|
|
3617
3660
|
value: e[0].value
|
|
3618
3661
|
}
|
|
3619
3662
|
];
|
|
3620
3663
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3621
3664
|
var l = u[h];
|
|
3622
|
-
if (
|
|
3665
|
+
if (lt(l)) {
|
|
3623
3666
|
a.push({
|
|
3624
|
-
type:
|
|
3667
|
+
type: E.literal,
|
|
3625
3668
|
value: l.value
|
|
3626
3669
|
});
|
|
3627
3670
|
continue;
|
|
3628
3671
|
}
|
|
3629
|
-
if (
|
|
3672
|
+
if (vn(l)) {
|
|
3630
3673
|
typeof o == "number" && a.push({
|
|
3631
|
-
type:
|
|
3674
|
+
type: E.literal,
|
|
3632
3675
|
value: r.getNumberFormat(t).format(o)
|
|
3633
3676
|
});
|
|
3634
3677
|
continue;
|
|
3635
3678
|
}
|
|
3636
3679
|
var f = l.value;
|
|
3637
3680
|
if (!(i && f in i))
|
|
3638
|
-
throw new
|
|
3681
|
+
throw new Qn(f, s);
|
|
3639
3682
|
var c = i[f];
|
|
3640
|
-
if (
|
|
3683
|
+
if (yn(l)) {
|
|
3641
3684
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3642
|
-
type: typeof c == "string" ?
|
|
3685
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3643
3686
|
value: c
|
|
3644
3687
|
});
|
|
3645
3688
|
continue;
|
|
3646
3689
|
}
|
|
3647
|
-
if (
|
|
3648
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3690
|
+
if (Ft(l)) {
|
|
3691
|
+
var p = typeof l.style == "string" ? n.date[l.style] : ke(l.style) ? l.style.parsedOptions : void 0;
|
|
3649
3692
|
a.push({
|
|
3650
|
-
type:
|
|
3693
|
+
type: E.literal,
|
|
3651
3694
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3652
3695
|
});
|
|
3653
3696
|
continue;
|
|
3654
3697
|
}
|
|
3655
|
-
if (
|
|
3656
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3698
|
+
if (jt(l)) {
|
|
3699
|
+
var p = typeof l.style == "string" ? n.time[l.style] : ke(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3657
3700
|
a.push({
|
|
3658
|
-
type:
|
|
3701
|
+
type: E.literal,
|
|
3659
3702
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3660
3703
|
});
|
|
3661
3704
|
continue;
|
|
3662
3705
|
}
|
|
3663
|
-
if (
|
|
3664
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3706
|
+
if (Dt(l)) {
|
|
3707
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3665
3708
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3666
|
-
type:
|
|
3709
|
+
type: E.literal,
|
|
3667
3710
|
value: r.getNumberFormat(t, p).format(c)
|
|
3668
3711
|
});
|
|
3669
3712
|
continue;
|
|
3670
3713
|
}
|
|
3671
|
-
if (
|
|
3672
|
-
var d = l.children,
|
|
3673
|
-
if (!
|
|
3674
|
-
throw new
|
|
3675
|
-
var C = fe(d, t, r, n, i, o), L = H(C.map(function(
|
|
3676
|
-
return
|
|
3714
|
+
if (Xt(l)) {
|
|
3715
|
+
var d = l.children, y = l.value, H = i[y];
|
|
3716
|
+
if (!Yn(H))
|
|
3717
|
+
throw new Zn(y, "function", s);
|
|
3718
|
+
var C = fe(d, t, r, n, i, o), L = H(C.map(function(P) {
|
|
3719
|
+
return P.value;
|
|
3677
3720
|
}));
|
|
3678
|
-
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(
|
|
3721
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(P) {
|
|
3679
3722
|
return {
|
|
3680
|
-
type: typeof
|
|
3681
|
-
value:
|
|
3723
|
+
type: typeof P == "string" ? E.literal : E.object,
|
|
3724
|
+
value: P
|
|
3682
3725
|
};
|
|
3683
3726
|
}));
|
|
3684
3727
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
if (!
|
|
3688
|
-
throw new
|
|
3689
|
-
a.push.apply(a, fe(
|
|
3728
|
+
if (kt(l)) {
|
|
3729
|
+
var x = l.options[c] || l.options.other;
|
|
3730
|
+
if (!x)
|
|
3731
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3732
|
+
a.push.apply(a, fe(x.value, t, r, n, i));
|
|
3690
3733
|
continue;
|
|
3691
3734
|
}
|
|
3692
|
-
if (
|
|
3693
|
-
var
|
|
3694
|
-
if (!
|
|
3735
|
+
if (Vt(l)) {
|
|
3736
|
+
var x = l.options["=".concat(c)];
|
|
3737
|
+
if (!x) {
|
|
3695
3738
|
if (!Intl.PluralRules)
|
|
3696
|
-
throw new
|
|
3739
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3697
3740
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3698
|
-
`,
|
|
3741
|
+
`, X.MISSING_INTL_API, s);
|
|
3699
3742
|
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3700
|
-
|
|
3743
|
+
x = l.options[$] || l.options.other;
|
|
3701
3744
|
}
|
|
3702
|
-
if (!
|
|
3703
|
-
throw new
|
|
3704
|
-
a.push.apply(a, fe(
|
|
3745
|
+
if (!x)
|
|
3746
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3747
|
+
a.push.apply(a, fe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3705
3748
|
continue;
|
|
3706
3749
|
}
|
|
3707
3750
|
}
|
|
3708
|
-
return
|
|
3751
|
+
return Jn(a);
|
|
3709
3752
|
}
|
|
3710
|
-
function
|
|
3711
|
-
return t ?
|
|
3712
|
-
return r[n] =
|
|
3753
|
+
function qn(e, t) {
|
|
3754
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3755
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3713
3756
|
}, {})) : e;
|
|
3714
3757
|
}
|
|
3715
|
-
function
|
|
3758
|
+
function Kn(e, t) {
|
|
3716
3759
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3717
|
-
return r[n] =
|
|
3718
|
-
},
|
|
3760
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3761
|
+
}, A({}, e)) : e;
|
|
3719
3762
|
}
|
|
3720
|
-
function
|
|
3763
|
+
function Ie(e) {
|
|
3721
3764
|
return {
|
|
3722
3765
|
create: function() {
|
|
3723
3766
|
return {
|
|
@@ -3731,39 +3774,39 @@ function Ae(e) {
|
|
|
3731
3774
|
}
|
|
3732
3775
|
};
|
|
3733
3776
|
}
|
|
3734
|
-
function
|
|
3777
|
+
function ei(e) {
|
|
3735
3778
|
return e === void 0 && (e = {
|
|
3736
3779
|
number: {},
|
|
3737
3780
|
dateTime: {},
|
|
3738
3781
|
pluralRules: {}
|
|
3739
3782
|
}), {
|
|
3740
|
-
getNumberFormat:
|
|
3783
|
+
getNumberFormat: Ae(function() {
|
|
3741
3784
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3742
3785
|
r[n] = arguments[n];
|
|
3743
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3786
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3744
3787
|
}, {
|
|
3745
|
-
cache:
|
|
3746
|
-
strategy:
|
|
3788
|
+
cache: Ie(e.number),
|
|
3789
|
+
strategy: Pe.variadic
|
|
3747
3790
|
}),
|
|
3748
|
-
getDateTimeFormat:
|
|
3791
|
+
getDateTimeFormat: Ae(function() {
|
|
3749
3792
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3750
3793
|
r[n] = arguments[n];
|
|
3751
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3794
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3752
3795
|
}, {
|
|
3753
|
-
cache:
|
|
3754
|
-
strategy:
|
|
3796
|
+
cache: Ie(e.dateTime),
|
|
3797
|
+
strategy: Pe.variadic
|
|
3755
3798
|
}),
|
|
3756
|
-
getPluralRules:
|
|
3799
|
+
getPluralRules: Ae(function() {
|
|
3757
3800
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3758
3801
|
r[n] = arguments[n];
|
|
3759
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3802
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3760
3803
|
}, {
|
|
3761
|
-
cache:
|
|
3762
|
-
strategy:
|
|
3804
|
+
cache: Ie(e.pluralRules),
|
|
3805
|
+
strategy: Pe.variadic
|
|
3763
3806
|
})
|
|
3764
3807
|
};
|
|
3765
3808
|
}
|
|
3766
|
-
var
|
|
3809
|
+
var ti = (
|
|
3767
3810
|
/** @class */
|
|
3768
3811
|
function() {
|
|
3769
3812
|
function e(t, r, n, i) {
|
|
@@ -3778,7 +3821,7 @@ var Jn = (
|
|
|
3778
3821
|
if (u.length === 1)
|
|
3779
3822
|
return u[0].value;
|
|
3780
3823
|
var l = u.reduce(function(f, c) {
|
|
3781
|
-
return !f.length || c.type !==
|
|
3824
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3782
3825
|
}, []);
|
|
3783
3826
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3784
3827
|
}, this.formatToParts = function(h) {
|
|
@@ -3795,13 +3838,13 @@ var Jn = (
|
|
|
3795
3838
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3796
3839
|
var s = i || {};
|
|
3797
3840
|
s.formatters;
|
|
3798
|
-
var a =
|
|
3799
|
-
this.ast = e.__parse(t,
|
|
3841
|
+
var a = ln(s, ["formatters"]);
|
|
3842
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3800
3843
|
} else
|
|
3801
3844
|
this.ast = t;
|
|
3802
3845
|
if (!Array.isArray(this.ast))
|
|
3803
3846
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3804
|
-
this.formats =
|
|
3847
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3805
3848
|
}
|
|
3806
3849
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3807
3850
|
get: function() {
|
|
@@ -3814,7 +3857,7 @@ var Jn = (
|
|
|
3814
3857
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3815
3858
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3816
3859
|
}
|
|
3817
|
-
}, e.__parse =
|
|
3860
|
+
}, e.__parse = zn, e.formats = {
|
|
3818
3861
|
number: {
|
|
3819
3862
|
integer: {
|
|
3820
3863
|
maximumFractionDigits: 0
|
|
@@ -3875,7 +3918,7 @@ var Jn = (
|
|
|
3875
3918
|
}, e;
|
|
3876
3919
|
}()
|
|
3877
3920
|
);
|
|
3878
|
-
function
|
|
3921
|
+
function ri(e, t) {
|
|
3879
3922
|
if (t == null)
|
|
3880
3923
|
return;
|
|
3881
3924
|
if (t in e)
|
|
@@ -3896,92 +3939,92 @@ function Yn(e, t) {
|
|
|
3896
3939
|
n = void 0;
|
|
3897
3940
|
return n;
|
|
3898
3941
|
}
|
|
3899
|
-
const M = {},
|
|
3942
|
+
const M = {}, ni = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
|
|
3900
3943
|
if (t == null)
|
|
3901
3944
|
return;
|
|
3902
3945
|
if (t in M && e in M[t])
|
|
3903
3946
|
return M[t][e];
|
|
3904
|
-
const r =
|
|
3947
|
+
const r = xe(t);
|
|
3905
3948
|
for (let n = 0; n < r.length; n++) {
|
|
3906
|
-
const i = r[n], o =
|
|
3949
|
+
const i = r[n], o = oi(i, e);
|
|
3907
3950
|
if (o)
|
|
3908
|
-
return
|
|
3951
|
+
return ni(e, t, o);
|
|
3909
3952
|
}
|
|
3910
3953
|
};
|
|
3911
|
-
let
|
|
3912
|
-
const se =
|
|
3913
|
-
function
|
|
3914
|
-
return
|
|
3954
|
+
let qe;
|
|
3955
|
+
const se = ve({});
|
|
3956
|
+
function ii(e) {
|
|
3957
|
+
return qe[e] || null;
|
|
3915
3958
|
}
|
|
3916
|
-
function
|
|
3917
|
-
return e in
|
|
3959
|
+
function tr(e) {
|
|
3960
|
+
return e in qe;
|
|
3918
3961
|
}
|
|
3919
|
-
function
|
|
3920
|
-
if (!
|
|
3962
|
+
function oi(e, t) {
|
|
3963
|
+
if (!tr(e))
|
|
3921
3964
|
return null;
|
|
3922
|
-
const r =
|
|
3923
|
-
return
|
|
3965
|
+
const r = ii(e);
|
|
3966
|
+
return ri(r, t);
|
|
3924
3967
|
}
|
|
3925
|
-
function
|
|
3968
|
+
function si(e) {
|
|
3926
3969
|
if (e == null)
|
|
3927
3970
|
return;
|
|
3928
|
-
const t =
|
|
3971
|
+
const t = xe(e);
|
|
3929
3972
|
for (let r = 0; r < t.length; r++) {
|
|
3930
3973
|
const n = t[r];
|
|
3931
|
-
if (
|
|
3974
|
+
if (tr(n))
|
|
3932
3975
|
return n;
|
|
3933
3976
|
}
|
|
3934
3977
|
}
|
|
3935
|
-
function
|
|
3936
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3978
|
+
function rr(e, ...t) {
|
|
3979
|
+
delete M[e], se.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
3937
3980
|
}
|
|
3938
|
-
|
|
3981
|
+
Z(
|
|
3939
3982
|
[se],
|
|
3940
3983
|
([e]) => Object.keys(e)
|
|
3941
3984
|
);
|
|
3942
|
-
se.subscribe((e) =>
|
|
3985
|
+
se.subscribe((e) => qe = e);
|
|
3943
3986
|
const pe = {};
|
|
3944
|
-
function
|
|
3987
|
+
function ai(e, t) {
|
|
3945
3988
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3946
3989
|
}
|
|
3947
|
-
function
|
|
3990
|
+
function nr(e) {
|
|
3948
3991
|
return pe[e];
|
|
3949
3992
|
}
|
|
3950
|
-
function
|
|
3951
|
-
return
|
|
3952
|
-
const r =
|
|
3993
|
+
function ui(e) {
|
|
3994
|
+
return xe(e).map((t) => {
|
|
3995
|
+
const r = nr(t);
|
|
3953
3996
|
return [t, r ? [...r] : []];
|
|
3954
3997
|
}).filter(([, t]) => t.length > 0);
|
|
3955
3998
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return e == null ? !1 :
|
|
3999
|
+
function Qe(e) {
|
|
4000
|
+
return e == null ? !1 : xe(e).some(
|
|
3958
4001
|
(t) => {
|
|
3959
4002
|
var r;
|
|
3960
|
-
return (r =
|
|
4003
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3961
4004
|
}
|
|
3962
4005
|
);
|
|
3963
4006
|
}
|
|
3964
|
-
function
|
|
4007
|
+
function hi(e, t) {
|
|
3965
4008
|
return Promise.all(
|
|
3966
|
-
t.map((n) => (
|
|
3967
|
-
).then((n) =>
|
|
3968
|
-
}
|
|
3969
|
-
const
|
|
3970
|
-
function
|
|
3971
|
-
if (!
|
|
3972
|
-
return e in
|
|
3973
|
-
const t =
|
|
3974
|
-
return
|
|
4009
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
4010
|
+
).then((n) => rr(e, ...n));
|
|
4011
|
+
}
|
|
4012
|
+
const q = {};
|
|
4013
|
+
function ir(e) {
|
|
4014
|
+
if (!Qe(e))
|
|
4015
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4016
|
+
const t = ui(e);
|
|
4017
|
+
return q[e] = Promise.all(
|
|
3975
4018
|
t.map(
|
|
3976
|
-
([r, n]) =>
|
|
4019
|
+
([r, n]) => hi(r, n)
|
|
3977
4020
|
)
|
|
3978
4021
|
).then(() => {
|
|
3979
|
-
if (
|
|
3980
|
-
return
|
|
3981
|
-
delete
|
|
3982
|
-
}),
|
|
4022
|
+
if (Qe(e))
|
|
4023
|
+
return ir(e);
|
|
4024
|
+
delete q[e];
|
|
4025
|
+
}), q[e];
|
|
3983
4026
|
}
|
|
3984
|
-
const
|
|
4027
|
+
const li = {
|
|
3985
4028
|
number: {
|
|
3986
4029
|
scientific: { notation: "scientific" },
|
|
3987
4030
|
engineering: { notation: "engineering" },
|
|
@@ -4010,135 +4053,135 @@ const oi = {
|
|
|
4010
4053
|
timeZoneName: "short"
|
|
4011
4054
|
}
|
|
4012
4055
|
}
|
|
4013
|
-
},
|
|
4056
|
+
}, ci = {
|
|
4014
4057
|
fallbackLocale: null,
|
|
4015
4058
|
loadingDelay: 200,
|
|
4016
|
-
formats:
|
|
4059
|
+
formats: li,
|
|
4017
4060
|
warnOnMissingMessages: !0,
|
|
4018
4061
|
handleMissingMessage: void 0,
|
|
4019
4062
|
ignoreTag: !0
|
|
4020
|
-
},
|
|
4021
|
-
function
|
|
4022
|
-
return
|
|
4063
|
+
}, fi = ci;
|
|
4064
|
+
function W() {
|
|
4065
|
+
return fi;
|
|
4023
4066
|
}
|
|
4024
|
-
const
|
|
4025
|
-
var
|
|
4067
|
+
const Le = ve(!1);
|
|
4068
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4026
4069
|
for (var r in t || (t = {}))
|
|
4027
|
-
|
|
4028
|
-
if (
|
|
4029
|
-
for (var r of
|
|
4030
|
-
|
|
4070
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
4071
|
+
if (yt)
|
|
4072
|
+
for (var r of yt(t))
|
|
4073
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
4031
4074
|
return e;
|
|
4032
|
-
},
|
|
4033
|
-
let
|
|
4034
|
-
const
|
|
4035
|
-
function
|
|
4075
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4076
|
+
let Je;
|
|
4077
|
+
const me = ve(null);
|
|
4078
|
+
function _t(e) {
|
|
4036
4079
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4037
4080
|
}
|
|
4038
|
-
function
|
|
4039
|
-
const r =
|
|
4040
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4081
|
+
function xe(e, t = W().fallbackLocale) {
|
|
4082
|
+
const r = _t(e);
|
|
4083
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4041
4084
|
}
|
|
4042
4085
|
function R() {
|
|
4043
|
-
return
|
|
4086
|
+
return Je ?? void 0;
|
|
4044
4087
|
}
|
|
4045
|
-
|
|
4046
|
-
|
|
4088
|
+
me.subscribe((e) => {
|
|
4089
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4047
4090
|
});
|
|
4048
|
-
const
|
|
4049
|
-
if (e &&
|
|
4050
|
-
const { loadingDelay: t } =
|
|
4091
|
+
const _i = (e) => {
|
|
4092
|
+
if (e && si(e) && Qe(e)) {
|
|
4093
|
+
const { loadingDelay: t } = W();
|
|
4051
4094
|
let r;
|
|
4052
4095
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4053
|
-
() =>
|
|
4096
|
+
() => Le.set(!0),
|
|
4054
4097
|
t
|
|
4055
|
-
) :
|
|
4056
|
-
|
|
4098
|
+
) : Le.set(!0), ir(e).then(() => {
|
|
4099
|
+
me.set(e);
|
|
4057
4100
|
}).finally(() => {
|
|
4058
|
-
clearTimeout(r),
|
|
4101
|
+
clearTimeout(r), Le.set(!1);
|
|
4059
4102
|
});
|
|
4060
4103
|
}
|
|
4061
|
-
return
|
|
4062
|
-
},
|
|
4063
|
-
set:
|
|
4064
|
-
}),
|
|
4104
|
+
return me.set(e);
|
|
4105
|
+
}, Q = vi(yi({}, me), {
|
|
4106
|
+
set: _i
|
|
4107
|
+
}), Se = (e) => {
|
|
4065
4108
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4066
4109
|
return (n) => {
|
|
4067
4110
|
const i = JSON.stringify(n);
|
|
4068
4111
|
return i in t ? t[i] : t[i] = e(n);
|
|
4069
4112
|
};
|
|
4070
4113
|
};
|
|
4071
|
-
var
|
|
4114
|
+
var Ei = Object.defineProperty, be = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4072
4115
|
for (var r in t || (t = {}))
|
|
4073
|
-
|
|
4074
|
-
if (
|
|
4075
|
-
for (var r of
|
|
4076
|
-
|
|
4116
|
+
or.call(t, r) && Et(e, r, t[r]);
|
|
4117
|
+
if (be)
|
|
4118
|
+
for (var r of be(t))
|
|
4119
|
+
sr.call(t, r) && Et(e, r, t[r]);
|
|
4077
4120
|
return e;
|
|
4078
|
-
},
|
|
4121
|
+
}, J = (e, t) => {
|
|
4079
4122
|
var r = {};
|
|
4080
4123
|
for (var n in e)
|
|
4081
|
-
|
|
4082
|
-
if (e != null &&
|
|
4083
|
-
for (var n of
|
|
4084
|
-
t.indexOf(n) < 0 &&
|
|
4124
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4125
|
+
if (e != null && be)
|
|
4126
|
+
for (var n of be(e))
|
|
4127
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4085
4128
|
return r;
|
|
4086
4129
|
};
|
|
4087
|
-
const
|
|
4088
|
-
const { formats: r } =
|
|
4130
|
+
const re = (e, t) => {
|
|
4131
|
+
const { formats: r } = W();
|
|
4089
4132
|
if (e in r && t in r[e])
|
|
4090
4133
|
return r[e][t];
|
|
4091
4134
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4092
|
-
},
|
|
4135
|
+
}, xi = Se(
|
|
4093
4136
|
(e) => {
|
|
4094
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4137
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4095
4138
|
if (r == null)
|
|
4096
4139
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4097
|
-
return n && (i =
|
|
4140
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4098
4141
|
}
|
|
4099
|
-
),
|
|
4142
|
+
), Si = Se(
|
|
4100
4143
|
(e) => {
|
|
4101
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4144
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4102
4145
|
if (r == null)
|
|
4103
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4104
|
-
return n ? i =
|
|
4147
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4105
4148
|
}
|
|
4106
|
-
),
|
|
4149
|
+
), Ti = Se(
|
|
4107
4150
|
(e) => {
|
|
4108
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4109
4152
|
if (r == null)
|
|
4110
4153
|
throw new Error(
|
|
4111
4154
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4112
4155
|
);
|
|
4113
|
-
return n ? i =
|
|
4156
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4114
4157
|
}
|
|
4115
|
-
),
|
|
4158
|
+
), Hi = (e = {}) => {
|
|
4116
4159
|
var t = e, {
|
|
4117
4160
|
locale: r = R()
|
|
4118
|
-
} = t, n =
|
|
4161
|
+
} = t, n = J(t, [
|
|
4119
4162
|
"locale"
|
|
4120
4163
|
]);
|
|
4121
|
-
return
|
|
4122
|
-
},
|
|
4164
|
+
return xi(Ke({ locale: r }, n));
|
|
4165
|
+
}, Bi = (e = {}) => {
|
|
4123
4166
|
var t = e, {
|
|
4124
4167
|
locale: r = R()
|
|
4125
|
-
} = t, n =
|
|
4168
|
+
} = t, n = J(t, [
|
|
4126
4169
|
"locale"
|
|
4127
4170
|
]);
|
|
4128
|
-
return
|
|
4129
|
-
},
|
|
4171
|
+
return Si(Ke({ locale: r }, n));
|
|
4172
|
+
}, wi = (e = {}) => {
|
|
4130
4173
|
var t = e, {
|
|
4131
4174
|
locale: r = R()
|
|
4132
|
-
} = t, n =
|
|
4175
|
+
} = t, n = J(t, [
|
|
4133
4176
|
"locale"
|
|
4134
4177
|
]);
|
|
4135
|
-
return
|
|
4136
|
-
},
|
|
4178
|
+
return Ti(Ke({ locale: r }, n));
|
|
4179
|
+
}, Ai = Se(
|
|
4137
4180
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4138
|
-
(e, t = R()) => new
|
|
4139
|
-
ignoreTag:
|
|
4181
|
+
(e, t = R()) => new ti(e, t, W().formats, {
|
|
4182
|
+
ignoreTag: W().ignoreTag
|
|
4140
4183
|
})
|
|
4141
|
-
),
|
|
4184
|
+
), Pi = (e, t = {}) => {
|
|
4142
4185
|
var r, n, i, o;
|
|
4143
4186
|
let s = t;
|
|
4144
4187
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4151,9 +4194,9 @@ const ne = (e, t) => {
|
|
|
4151
4194
|
throw new Error(
|
|
4152
4195
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4153
4196
|
);
|
|
4154
|
-
let l =
|
|
4197
|
+
let l = er(e, h);
|
|
4155
4198
|
if (!l)
|
|
4156
|
-
l = (o = (i = (n = (r =
|
|
4199
|
+
l = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4157
4200
|
else if (typeof l != "string")
|
|
4158
4201
|
return console.warn(
|
|
4159
4202
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4162,7 +4205,7 @@ const ne = (e, t) => {
|
|
|
4162
4205
|
return l;
|
|
4163
4206
|
let f = l;
|
|
4164
4207
|
try {
|
|
4165
|
-
f =
|
|
4208
|
+
f = Ai(l, h).format(a);
|
|
4166
4209
|
} catch (c) {
|
|
4167
4210
|
c instanceof Error && console.warn(
|
|
4168
4211
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4170,13 +4213,13 @@ const ne = (e, t) => {
|
|
|
4170
4213
|
);
|
|
4171
4214
|
}
|
|
4172
4215
|
return f;
|
|
4173
|
-
},
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
window.emWidgets = { topic:
|
|
4179
|
-
const
|
|
4216
|
+
}, Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Li = (e, t) => Hi(t).format(e), Ni = (e, t = R()) => er(e, t), Mi = Z([Q, se], () => Pi);
|
|
4217
|
+
Z([Q], () => Oi);
|
|
4218
|
+
Z([Q], () => Ii);
|
|
4219
|
+
Z([Q], () => Li);
|
|
4220
|
+
Z([Q, se], () => Ni);
|
|
4221
|
+
window.emWidgets = { topic: Xr };
|
|
4222
|
+
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", $i = (e, t = {}) => {
|
|
4180
4223
|
const r = new CustomEvent("track-custom-event", {
|
|
4181
4224
|
detail: {
|
|
4182
4225
|
type: e,
|
|
@@ -4187,13 +4230,13 @@ const Oi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
|
|
|
4187
4230
|
});
|
|
4188
4231
|
document.dispatchEvent(r);
|
|
4189
4232
|
};
|
|
4190
|
-
function
|
|
4191
|
-
|
|
4233
|
+
function xt(e, t) {
|
|
4234
|
+
rr(e, t);
|
|
4192
4235
|
}
|
|
4193
|
-
function
|
|
4194
|
-
|
|
4236
|
+
function Ri(e) {
|
|
4237
|
+
Q.set(e);
|
|
4195
4238
|
}
|
|
4196
|
-
const
|
|
4239
|
+
const St = {
|
|
4197
4240
|
en: {
|
|
4198
4241
|
logoutButton: "Logout"
|
|
4199
4242
|
},
|
|
@@ -4228,13 +4271,13 @@ const yt = {
|
|
|
4228
4271
|
logoutButton: "Logout"
|
|
4229
4272
|
}
|
|
4230
4273
|
};
|
|
4231
|
-
function
|
|
4274
|
+
function Tt(e, t) {
|
|
4232
4275
|
if (e) {
|
|
4233
4276
|
const r = document.createElement("style");
|
|
4234
4277
|
r.innerHTML = t, e.appendChild(r);
|
|
4235
4278
|
}
|
|
4236
4279
|
}
|
|
4237
|
-
function
|
|
4280
|
+
function Ui(e, t) {
|
|
4238
4281
|
const r = new URL(t);
|
|
4239
4282
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4240
4283
|
const i = document.createElement("style");
|
|
@@ -4243,7 +4286,7 @@ function Ni(e, t) {
|
|
|
4243
4286
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4244
4287
|
});
|
|
4245
4288
|
}
|
|
4246
|
-
function
|
|
4289
|
+
function Gi(e, t, r) {
|
|
4247
4290
|
if (window.emMessageBus) {
|
|
4248
4291
|
const n = document.createElement("style");
|
|
4249
4292
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4251,20 +4294,20 @@ function Mi(e, t, r) {
|
|
|
4251
4294
|
});
|
|
4252
4295
|
}
|
|
4253
4296
|
}
|
|
4254
|
-
function
|
|
4255
|
-
|
|
4297
|
+
function Di(e) {
|
|
4298
|
+
lr(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))}");
|
|
4256
4299
|
}
|
|
4257
|
-
function
|
|
4300
|
+
function Fi(e) {
|
|
4258
4301
|
let t, r, n, i = (
|
|
4259
4302
|
/*$_*/
|
|
4260
4303
|
e[2]("logoutButton") + ""
|
|
4261
4304
|
), o, s, a;
|
|
4262
4305
|
return {
|
|
4263
4306
|
c() {
|
|
4264
|
-
t =
|
|
4307
|
+
t = O("div"), r = O("button"), n = O("span"), o = ge(i), T(t, "class", "GeneralLogout");
|
|
4265
4308
|
},
|
|
4266
4309
|
m(h, u) {
|
|
4267
|
-
|
|
4310
|
+
ie(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = At(
|
|
4268
4311
|
r,
|
|
4269
4312
|
"click",
|
|
4270
4313
|
/*click_handler_1*/
|
|
@@ -4274,19 +4317,19 @@ function $i(e) {
|
|
|
4274
4317
|
p(h, u) {
|
|
4275
4318
|
u & /*$_*/
|
|
4276
4319
|
4 && i !== (i = /*$_*/
|
|
4277
|
-
h[2]("logoutButton") + "") &&
|
|
4320
|
+
h[2]("logoutButton") + "") && Pt(o, i);
|
|
4278
4321
|
},
|
|
4279
4322
|
d(h) {
|
|
4280
|
-
h &&
|
|
4323
|
+
h && z(t), s = !1, a();
|
|
4281
4324
|
}
|
|
4282
4325
|
};
|
|
4283
4326
|
}
|
|
4284
|
-
function
|
|
4327
|
+
function ji(e) {
|
|
4285
4328
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4286
|
-
e[3] &&
|
|
4329
|
+
e[3] && ki(e);
|
|
4287
4330
|
return {
|
|
4288
4331
|
c() {
|
|
4289
|
-
t =
|
|
4332
|
+
t = O("p"), r = O("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u = pr(), c && c.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(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"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(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"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), mr(r, "width", /*isMobile*/
|
|
4290
4333
|
e[3] ? (
|
|
4291
4334
|
/*mediaQuery*/
|
|
4292
4335
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4296,7 +4339,7 @@ function Ri(e) {
|
|
|
4296
4339
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4297
4340
|
},
|
|
4298
4341
|
m(p, d) {
|
|
4299
|
-
|
|
4342
|
+
ie(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 = At(
|
|
4300
4343
|
t,
|
|
4301
4344
|
"click",
|
|
4302
4345
|
/*click_handler*/
|
|
@@ -4308,47 +4351,47 @@ function Ri(e) {
|
|
|
4308
4351
|
p[3] || c.p(p, d);
|
|
4309
4352
|
},
|
|
4310
4353
|
d(p) {
|
|
4311
|
-
p &&
|
|
4354
|
+
p && z(t), c && c.d(), l = !1, f();
|
|
4312
4355
|
}
|
|
4313
4356
|
};
|
|
4314
4357
|
}
|
|
4315
|
-
function
|
|
4358
|
+
function ki(e) {
|
|
4316
4359
|
let t, r = (
|
|
4317
4360
|
/*$_*/
|
|
4318
4361
|
e[2]("logoutButton") + ""
|
|
4319
4362
|
), n;
|
|
4320
4363
|
return {
|
|
4321
4364
|
c() {
|
|
4322
|
-
t =
|
|
4365
|
+
t = O("span"), n = ge(r), T(t, "class", "PlayerLogoutText");
|
|
4323
4366
|
},
|
|
4324
4367
|
m(i, o) {
|
|
4325
|
-
|
|
4368
|
+
ie(i, t, o), S(t, n);
|
|
4326
4369
|
},
|
|
4327
4370
|
p(i, o) {
|
|
4328
4371
|
o & /*$_*/
|
|
4329
4372
|
4 && r !== (r = /*$_*/
|
|
4330
|
-
i[2]("logoutButton") + "") &&
|
|
4373
|
+
i[2]("logoutButton") + "") && Pt(n, r);
|
|
4331
4374
|
},
|
|
4332
4375
|
d(i) {
|
|
4333
|
-
i &&
|
|
4376
|
+
i && z(t);
|
|
4334
4377
|
}
|
|
4335
4378
|
};
|
|
4336
4379
|
}
|
|
4337
|
-
function
|
|
4380
|
+
function Vi(e) {
|
|
4338
4381
|
let t;
|
|
4339
4382
|
function r(o, s) {
|
|
4340
4383
|
return (
|
|
4341
4384
|
/*buttonlocation*/
|
|
4342
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4385
|
+
o[0] === "PlayerAccountMenu" ? ji : Fi
|
|
4343
4386
|
);
|
|
4344
4387
|
}
|
|
4345
4388
|
let n = r(e), i = n(e);
|
|
4346
4389
|
return {
|
|
4347
4390
|
c() {
|
|
4348
|
-
t =
|
|
4391
|
+
t = O("div"), i.c();
|
|
4349
4392
|
},
|
|
4350
4393
|
m(o, s) {
|
|
4351
|
-
|
|
4394
|
+
ie(o, t, s), i.m(t, null), e[15](t);
|
|
4352
4395
|
},
|
|
4353
4396
|
p(o, [s]) {
|
|
4354
4397
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4356,54 +4399,54 @@ function Gi(e) {
|
|
|
4356
4399
|
i: B,
|
|
4357
4400
|
o: B,
|
|
4358
4401
|
d(o) {
|
|
4359
|
-
o &&
|
|
4402
|
+
o && z(t), i.d(), e[15](null);
|
|
4360
4403
|
}
|
|
4361
4404
|
};
|
|
4362
4405
|
}
|
|
4363
|
-
function
|
|
4406
|
+
function Xi(e, t, r) {
|
|
4364
4407
|
let n;
|
|
4365
|
-
|
|
4366
|
-
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,
|
|
4408
|
+
hr(e, Mi, (g) => r(2, n = g));
|
|
4409
|
+
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, y = window.navigator.userAgent, H = Ci(y) !== "PC";
|
|
4367
4410
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4368
4411
|
fetch(f).then((N) => N.json()).then((N) => {
|
|
4369
|
-
Object.keys(N).forEach((
|
|
4370
|
-
|
|
4412
|
+
Object.keys(N).forEach((Te) => {
|
|
4413
|
+
xt(Te, N[Te]);
|
|
4371
4414
|
});
|
|
4372
4415
|
}).catch((N) => {
|
|
4373
4416
|
console.log(N);
|
|
4374
4417
|
});
|
|
4375
4418
|
};
|
|
4376
|
-
Object.keys(
|
|
4377
|
-
|
|
4419
|
+
Object.keys(St).forEach((g) => {
|
|
4420
|
+
xt(g, St[g]);
|
|
4378
4421
|
});
|
|
4379
|
-
const
|
|
4380
|
-
let
|
|
4381
|
-
|
|
4382
|
-
let N = { method: "DELETE", headers:
|
|
4383
|
-
fetch(`${i}/v1/player/session/player`, N).then((
|
|
4384
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4422
|
+
const x = () => {
|
|
4423
|
+
let g = new Headers();
|
|
4424
|
+
g.append("Content-type", "application/json"), g.append("X-SessionID", o);
|
|
4425
|
+
let N = { method: "DELETE", headers: g };
|
|
4426
|
+
fetch(`${i}/v1/player/session/player`, N).then((Te) => {
|
|
4427
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), $i("logged_out", {});
|
|
4385
4428
|
});
|
|
4386
|
-
}, $ = () => (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),
|
|
4387
|
-
|
|
4429
|
+
}, $ = () => (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 = () => {
|
|
4430
|
+
Ri(a);
|
|
4388
4431
|
};
|
|
4389
|
-
|
|
4432
|
+
yr(() => () => {
|
|
4390
4433
|
});
|
|
4391
|
-
const U = () =>
|
|
4392
|
-
function
|
|
4393
|
-
|
|
4394
|
-
d =
|
|
4434
|
+
const U = () => x(), ae = () => x();
|
|
4435
|
+
function ar(g) {
|
|
4436
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4437
|
+
d = g, r(1, d);
|
|
4395
4438
|
});
|
|
4396
4439
|
}
|
|
4397
|
-
return e.$$set = (
|
|
4398
|
-
"endpoint" in
|
|
4440
|
+
return e.$$set = (g) => {
|
|
4441
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "mbsource" in g && r(9, h = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, l = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
|
|
4399
4442
|
}, e.$$.update = () => {
|
|
4400
4443
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4401
4444
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4402
|
-
256 && a &&
|
|
4403
|
-
1026 && u && d &&
|
|
4404
|
-
1026 && u && d &&
|
|
4405
|
-
2050 && l && d &&
|
|
4406
|
-
514 && h && d &&
|
|
4445
|
+
256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4446
|
+
1026 && u && d && Tt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4447
|
+
1026 && u && d && Tt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4448
|
+
2050 && l && d && Ui(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4449
|
+
514 && h && d && Gi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4407
4450
|
4096 && f && L();
|
|
4408
4451
|
}, [
|
|
4409
4452
|
s,
|
|
@@ -4411,7 +4454,7 @@ function Di(e, t, r) {
|
|
|
4411
4454
|
n,
|
|
4412
4455
|
H,
|
|
4413
4456
|
C,
|
|
4414
|
-
|
|
4457
|
+
x,
|
|
4415
4458
|
i,
|
|
4416
4459
|
o,
|
|
4417
4460
|
a,
|
|
@@ -4421,17 +4464,17 @@ function Di(e, t, r) {
|
|
|
4421
4464
|
f,
|
|
4422
4465
|
U,
|
|
4423
4466
|
ae,
|
|
4424
|
-
|
|
4467
|
+
ar
|
|
4425
4468
|
];
|
|
4426
4469
|
}
|
|
4427
|
-
class
|
|
4470
|
+
class Wi extends Or {
|
|
4428
4471
|
constructor(t) {
|
|
4429
|
-
super(),
|
|
4472
|
+
super(), Ar(
|
|
4430
4473
|
this,
|
|
4431
4474
|
t,
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4475
|
+
Xi,
|
|
4476
|
+
Vi,
|
|
4477
|
+
Bt,
|
|
4435
4478
|
{
|
|
4436
4479
|
endpoint: 6,
|
|
4437
4480
|
session: 7,
|
|
@@ -4442,7 +4485,7 @@ class Fi extends Hr {
|
|
|
4442
4485
|
clientstylingurl: 11,
|
|
4443
4486
|
translationurl: 12
|
|
4444
4487
|
},
|
|
4445
|
-
|
|
4488
|
+
Di
|
|
4446
4489
|
);
|
|
4447
4490
|
}
|
|
4448
4491
|
get endpoint() {
|
|
@@ -4494,7 +4537,7 @@ class Fi extends Hr {
|
|
|
4494
4537
|
this.$$set({ translationurl: t }), w();
|
|
4495
4538
|
}
|
|
4496
4539
|
}
|
|
4497
|
-
|
|
4540
|
+
Pr(Wi, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4498
4541
|
export {
|
|
4499
|
-
|
|
4542
|
+
Wi as G
|
|
4500
4543
|
};
|