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