@everymatrix/player-account-notifications 1.86.4 → 1.86.5
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/{PlayerAccountNotifications-D5RlTGca.js → PlayerAccountNotifications-CFr5ray8.js} +672 -651
- package/components/PlayerAccountNotifications-Nvqp2Mxm.cjs +18 -0
- package/components/{PlayerAccountNotifications-DsUYh5cI.js → PlayerAccountNotifications-kA3mMYbu.js} +698 -677
- package/es2015/player-account-notifications.cjs +1 -1
- package/es2015/player-account-notifications.js +1 -1
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/{ui-skeleton-C7KTfaPd.cjs → ui-skeleton-BreIU6e5.cjs} +1 -1
- package/stencil/{ui-skeleton-Cn9Rv2BY.js → ui-skeleton-W50o8tfg.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-BA-lE0xf.js → ui-skeleton-ed169f8f-CVY4B-CP.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-cGTgZqRU.cjs → ui-skeleton-ed169f8f-CpiCXJrP.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-b70BXhTZ.js → ui-skeleton-ed169f8f-D3TjbVKy.js} +1 -1
- package/stencil/{ui-skeleton-YNoAIoec.js → ui-skeleton-xXZA3rYO.js} +2 -2
- package/components/PlayerAccountNotifications-BFlTyXBT.cjs +0 -18
- package/stencil/index-b2193545-CMoQ4Pov.js +0 -503
- package/stencil/index-b2193545-CQaBo5im.cjs +0 -1
- package/stencil/index-b2193545-DvP9W4Go.js +0 -519
package/components/{PlayerAccountNotifications-D5RlTGca.js → PlayerAccountNotifications-CFr5ray8.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
2
2
|
function H() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Bt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function et() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ne(e) {
|
|
11
|
+
e.forEach(Bt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function qe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ot(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let ae;
|
|
20
|
-
function
|
|
20
|
+
function tt(e, t) {
|
|
21
21
|
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function lr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function cr(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,17 +32,17 @@ function lr(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function w(e, t) {
|
|
36
36
|
e.appendChild(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const n =
|
|
38
|
+
function fr(e, t, r) {
|
|
39
|
+
const n = pr(e);
|
|
40
40
|
if (!n.getElementById(t)) {
|
|
41
41
|
const i = T("style");
|
|
42
|
-
i.id = t, i.textContent = r,
|
|
42
|
+
i.id = t, i.textContent = r, mr(n, i);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function pr(e) {
|
|
46
46
|
if (!e)
|
|
47
47
|
return document;
|
|
48
48
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -52,8 +52,8 @@ function fr(e) {
|
|
|
52
52
|
t
|
|
53
53
|
) : e.ownerDocument;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
55
|
+
function mr(e, t) {
|
|
56
|
+
return w(
|
|
57
57
|
/** @type {Document} */
|
|
58
58
|
e.head || e,
|
|
59
59
|
t
|
|
@@ -62,21 +62,21 @@ function pr(e, t) {
|
|
|
62
62
|
function M(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function I(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Nt(e, t) {
|
|
69
69
|
for (let r = 0; r < e.length; r += 1)
|
|
70
70
|
e[r] && e[r].d(t);
|
|
71
71
|
}
|
|
72
72
|
function T(e) {
|
|
73
73
|
return document.createElement(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function It(e) {
|
|
76
76
|
return document.createTextNode(e);
|
|
77
77
|
}
|
|
78
78
|
function le() {
|
|
79
|
-
return
|
|
79
|
+
return It(" ");
|
|
80
80
|
}
|
|
81
81
|
function x(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
@@ -85,17 +85,17 @@ function V(e, t, r) {
|
|
|
85
85
|
const n = t.toLowerCase();
|
|
86
86
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function dr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function br(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function rt(e, t, r, n) {
|
|
96
96
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function gr(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
@@ -104,90 +104,90 @@ function br(e) {
|
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let ee;
|
|
108
|
+
function K(e) {
|
|
109
|
+
ee = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (!
|
|
111
|
+
function yr() {
|
|
112
|
+
if (!ee)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
|
-
return
|
|
114
|
+
return ee;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function vr(e) {
|
|
117
|
+
yr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const k = [], Ce = [];
|
|
120
120
|
let X = [];
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
121
|
+
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let Le = !1;
|
|
123
|
+
function xr() {
|
|
124
|
+
Le || (Le = !0, _r.then(B));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Me(e) {
|
|
127
127
|
X.push(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const He = /* @__PURE__ */ new Set();
|
|
130
130
|
let F = 0;
|
|
131
131
|
function B() {
|
|
132
132
|
if (F !== 0)
|
|
133
133
|
return;
|
|
134
|
-
const e =
|
|
134
|
+
const e = ee;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (; F <
|
|
138
|
-
const t =
|
|
139
|
-
F++,
|
|
137
|
+
for (; F < k.length; ) {
|
|
138
|
+
const t = k[F];
|
|
139
|
+
F++, K(t), Er(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
|
-
throw
|
|
142
|
+
throw k.length = 0, F = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
145
|
-
|
|
144
|
+
for (K(null), k.length = 0, F = 0; Ce.length; )
|
|
145
|
+
Ce.pop()();
|
|
146
146
|
for (let t = 0; t < X.length; t += 1) {
|
|
147
147
|
const r = X[t];
|
|
148
|
-
|
|
148
|
+
He.has(r) || (He.add(r), r());
|
|
149
149
|
}
|
|
150
150
|
X.length = 0;
|
|
151
|
-
} while (
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
} while (k.length);
|
|
152
|
+
for (; nt.length; )
|
|
153
|
+
nt.pop()();
|
|
154
|
+
Le = !1, He.clear(), K(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Er(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), ne(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Sr(e) {
|
|
164
164
|
const t = [], r = [];
|
|
165
165
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Tr = /* @__PURE__ */ new Set();
|
|
168
|
+
function Hr(e, t) {
|
|
169
|
+
e && e.i && (Tr.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function de(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Ar(e, t, r) {
|
|
175
175
|
const { fragment: n, after_update: i } = e.$$;
|
|
176
|
-
n && n.m(t, r),
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
179
|
-
}), i.forEach(
|
|
176
|
+
n && n.m(t, r), Me(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Bt).filter(qe);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach(Me);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function wr(e, t) {
|
|
182
182
|
const r = e.$$;
|
|
183
|
-
r.fragment !== null && (
|
|
183
|
+
r.fragment !== null && (Sr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
184
184
|
}
|
|
185
185
|
function Pr(e, t) {
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
186
|
+
e.$$.dirty[0] === -1 && (k.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const h =
|
|
190
|
-
|
|
188
|
+
function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
189
|
+
const h = ee;
|
|
190
|
+
K(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
@@ -195,7 +195,7 @@ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
props: o,
|
|
196
196
|
update: H,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: et(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
@@ -204,7 +204,7 @@ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
after_update: [],
|
|
205
205
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: et(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
210
|
root: t.target || h.$$.root
|
|
@@ -214,18 +214,18 @@ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
214
214
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
215
215
|
const d = m.length ? m[0] : f;
|
|
216
216
|
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && Pr(e, c)), f;
|
|
217
|
-
}) : [], u.update(), l = !0,
|
|
217
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const c =
|
|
220
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
219
|
+
const c = dr(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && Hr(e.$$.fragment), Ar(e, t.target, t.anchor), B();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
K(h);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Ct;
|
|
228
|
+
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -277,14 +277,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
277
277
|
M(h, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(h) {
|
|
280
|
-
h &&
|
|
280
|
+
h && I(o);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {}, r =
|
|
287
|
+
const t = {}, r = gr(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
289
|
i in r && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
@@ -371,8 +371,8 @@ function ce(e, t, r, n) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let s = class extends
|
|
374
|
+
function Or(e, t, r, n, i, o) {
|
|
375
|
+
let s = class extends Ct {
|
|
376
376
|
constructor() {
|
|
377
377
|
super(e, r, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
@@ -419,7 +419,7 @@ class Nr {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
|
|
422
|
+
wr(this, 1), this.$destroy = H;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,7 +428,7 @@ class Nr {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, r) {
|
|
431
|
-
if (!
|
|
431
|
+
if (!qe(r))
|
|
432
432
|
return H;
|
|
433
433
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return n.push(r), () => {
|
|
@@ -441,11 +441,11 @@ class Nr {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
447
|
+
const Ir = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
449
449
|
/*! *****************************************************************************
|
|
450
450
|
Copyright (c) Microsoft Corporation.
|
|
451
451
|
|
|
@@ -460,43 +460,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
460
460
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
461
461
|
PERFORMANCE OF THIS SOFTWARE.
|
|
462
462
|
***************************************************************************** */
|
|
463
|
-
var
|
|
464
|
-
return
|
|
463
|
+
var $e = function(e, t) {
|
|
464
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
465
465
|
r.__proto__ = n;
|
|
466
466
|
} || function(r, n) {
|
|
467
467
|
for (var i in n)
|
|
468
468
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
469
|
-
},
|
|
469
|
+
}, $e(e, t);
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function ie(e, t) {
|
|
472
472
|
if (typeof t != "function" && t !== null)
|
|
473
473
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
474
|
-
|
|
474
|
+
$e(e, t);
|
|
475
475
|
function r() {
|
|
476
476
|
this.constructor = e;
|
|
477
477
|
}
|
|
478
478
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
479
479
|
}
|
|
480
|
-
|
|
481
|
-
return v = Object.assign || function(t) {
|
|
482
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
483
|
-
r = arguments[n];
|
|
484
|
-
for (var o in r)
|
|
485
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
486
|
-
}
|
|
487
|
-
return t;
|
|
488
|
-
}, v.apply(this, arguments);
|
|
489
|
-
};
|
|
490
|
-
function Ir(e, t) {
|
|
491
|
-
var r = {};
|
|
492
|
-
for (var n in e)
|
|
493
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
494
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
495
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
496
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
497
|
-
return r;
|
|
498
|
-
}
|
|
499
|
-
function Me(e) {
|
|
480
|
+
function Re(e) {
|
|
500
481
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
501
482
|
if (r)
|
|
502
483
|
return r.call(e);
|
|
@@ -508,7 +489,7 @@ function Me(e) {
|
|
|
508
489
|
};
|
|
509
490
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
510
491
|
}
|
|
511
|
-
function
|
|
492
|
+
function Ue(e, t) {
|
|
512
493
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
513
494
|
if (!r)
|
|
514
495
|
return e;
|
|
@@ -528,8 +509,8 @@ function $e(e, t) {
|
|
|
528
509
|
}
|
|
529
510
|
return o;
|
|
530
511
|
}
|
|
531
|
-
function
|
|
532
|
-
if (
|
|
512
|
+
function De(e, t, r) {
|
|
513
|
+
if (arguments.length === 2)
|
|
533
514
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
534
515
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
535
516
|
return e.concat(o || t);
|
|
@@ -537,13 +518,13 @@ function W(e, t, r) {
|
|
|
537
518
|
function N(e) {
|
|
538
519
|
return typeof e == "function";
|
|
539
520
|
}
|
|
540
|
-
function
|
|
521
|
+
function Lt(e) {
|
|
541
522
|
var t = function(n) {
|
|
542
523
|
Error.call(n), n.stack = new Error().stack;
|
|
543
524
|
}, r = e(t);
|
|
544
525
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
545
526
|
}
|
|
546
|
-
var
|
|
527
|
+
var Ae = Lt(function(e) {
|
|
547
528
|
return function(r) {
|
|
548
529
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
549
530
|
` + r.map(function(n, i) {
|
|
@@ -552,13 +533,13 @@ var Te = It(function(e) {
|
|
|
552
533
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
553
534
|
};
|
|
554
535
|
});
|
|
555
|
-
function
|
|
536
|
+
function Ge(e, t) {
|
|
556
537
|
if (e) {
|
|
557
538
|
var r = e.indexOf(t);
|
|
558
539
|
0 <= r && e.splice(r, 1);
|
|
559
540
|
}
|
|
560
541
|
}
|
|
561
|
-
var
|
|
542
|
+
var ve = function() {
|
|
562
543
|
function e(t) {
|
|
563
544
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
564
545
|
}
|
|
@@ -570,7 +551,7 @@ var ye = function() {
|
|
|
570
551
|
if (s)
|
|
571
552
|
if (this._parentage = null, Array.isArray(s))
|
|
572
553
|
try {
|
|
573
|
-
for (var a =
|
|
554
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
574
555
|
var u = h.value;
|
|
575
556
|
u.remove(this);
|
|
576
557
|
}
|
|
@@ -591,18 +572,18 @@ var ye = function() {
|
|
|
591
572
|
try {
|
|
592
573
|
l();
|
|
593
574
|
} catch (p) {
|
|
594
|
-
o = p instanceof
|
|
575
|
+
o = p instanceof Ae ? p.errors : [p];
|
|
595
576
|
}
|
|
596
577
|
var c = this._finalizers;
|
|
597
578
|
if (c) {
|
|
598
579
|
this._finalizers = null;
|
|
599
580
|
try {
|
|
600
|
-
for (var f =
|
|
581
|
+
for (var f = Re(c), m = f.next(); !m.done; m = f.next()) {
|
|
601
582
|
var d = m.value;
|
|
602
583
|
try {
|
|
603
|
-
|
|
584
|
+
it(d);
|
|
604
585
|
} catch (p) {
|
|
605
|
-
o = o ?? [], p instanceof
|
|
586
|
+
o = o ?? [], p instanceof Ae ? o = De(De([], Ue(o)), Ue(p.errors)) : o.push(p);
|
|
606
587
|
}
|
|
607
588
|
}
|
|
608
589
|
} catch (p) {
|
|
@@ -617,13 +598,13 @@ var ye = function() {
|
|
|
617
598
|
}
|
|
618
599
|
}
|
|
619
600
|
if (o)
|
|
620
|
-
throw new
|
|
601
|
+
throw new Ae(o);
|
|
621
602
|
}
|
|
622
603
|
}, e.prototype.add = function(t) {
|
|
623
604
|
var r;
|
|
624
605
|
if (t && t !== this)
|
|
625
606
|
if (this.closed)
|
|
626
|
-
|
|
607
|
+
it(t);
|
|
627
608
|
else {
|
|
628
609
|
if (t instanceof e) {
|
|
629
610
|
if (t.closed || t._hasParent(this))
|
|
@@ -640,56 +621,52 @@ var ye = function() {
|
|
|
640
621
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
641
622
|
}, e.prototype._removeParent = function(t) {
|
|
642
623
|
var r = this._parentage;
|
|
643
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
624
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
644
625
|
}, e.prototype.remove = function(t) {
|
|
645
626
|
var r = this._finalizers;
|
|
646
|
-
r &&
|
|
627
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
647
628
|
}, e.EMPTY = function() {
|
|
648
629
|
var t = new e();
|
|
649
630
|
return t.closed = !0, t;
|
|
650
631
|
}(), e;
|
|
651
|
-
}(),
|
|
652
|
-
function
|
|
653
|
-
return e instanceof
|
|
632
|
+
}(), Mt = ve.EMPTY;
|
|
633
|
+
function $t(e) {
|
|
634
|
+
return e instanceof ve || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
654
635
|
}
|
|
655
|
-
function
|
|
636
|
+
function it(e) {
|
|
656
637
|
N(e) ? e() : e.unsubscribe();
|
|
657
638
|
}
|
|
658
|
-
var
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
Promise: void 0,
|
|
662
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
663
|
-
useDeprecatedNextContext: !1
|
|
664
|
-
}, Cr = {
|
|
639
|
+
var Cr = {
|
|
640
|
+
Promise: void 0
|
|
641
|
+
}, Lr = {
|
|
665
642
|
setTimeout: function(e, t) {
|
|
666
643
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
667
644
|
r[n - 2] = arguments[n];
|
|
668
|
-
return setTimeout.apply(void 0,
|
|
645
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
669
646
|
},
|
|
670
647
|
clearTimeout: function(e) {
|
|
671
648
|
return clearTimeout(e);
|
|
672
649
|
},
|
|
673
650
|
delegate: void 0
|
|
674
651
|
};
|
|
675
|
-
function
|
|
676
|
-
|
|
652
|
+
function Mr(e) {
|
|
653
|
+
Lr.setTimeout(function() {
|
|
677
654
|
throw e;
|
|
678
655
|
});
|
|
679
656
|
}
|
|
680
|
-
function
|
|
657
|
+
function ot() {
|
|
681
658
|
}
|
|
682
659
|
function fe(e) {
|
|
683
660
|
e();
|
|
684
661
|
}
|
|
685
|
-
var
|
|
686
|
-
|
|
662
|
+
var Rt = function(e) {
|
|
663
|
+
ie(t, e);
|
|
687
664
|
function t(r) {
|
|
688
665
|
var n = e.call(this) || this;
|
|
689
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
666
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Ur, n;
|
|
690
667
|
}
|
|
691
668
|
return t.create = function(r, n, i) {
|
|
692
|
-
return new
|
|
669
|
+
return new Fe(r, n, i);
|
|
693
670
|
}, t.prototype.next = function(r) {
|
|
694
671
|
this.isStopped || this._next(r);
|
|
695
672
|
}, t.prototype.error = function(r) {
|
|
@@ -713,11 +690,7 @@ var $t = function(e) {
|
|
|
713
690
|
this.unsubscribe();
|
|
714
691
|
}
|
|
715
692
|
}, t;
|
|
716
|
-
}(
|
|
717
|
-
function He(e, t) {
|
|
718
|
-
return Mr.call(e, t);
|
|
719
|
-
}
|
|
720
|
-
var $r = function() {
|
|
693
|
+
}(ve), $r = function() {
|
|
721
694
|
function e(t) {
|
|
722
695
|
this.partialObserver = t;
|
|
723
696
|
}
|
|
@@ -748,41 +721,29 @@ var $r = function() {
|
|
|
748
721
|
ue(r);
|
|
749
722
|
}
|
|
750
723
|
}, e;
|
|
751
|
-
}(),
|
|
752
|
-
|
|
724
|
+
}(), Fe = function(e) {
|
|
725
|
+
ie(t, e);
|
|
753
726
|
function t(r, n, i) {
|
|
754
727
|
var o = e.call(this) || this, s;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
};
|
|
761
|
-
else {
|
|
762
|
-
var a;
|
|
763
|
-
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
764
|
-
return o.unsubscribe();
|
|
765
|
-
}, s = {
|
|
766
|
-
next: r.next && He(r.next, a),
|
|
767
|
-
error: r.error && He(r.error, a),
|
|
768
|
-
complete: r.complete && He(r.complete, a)
|
|
769
|
-
}) : s = r;
|
|
770
|
-
}
|
|
771
|
-
return o.destination = new $r(s), o;
|
|
728
|
+
return N(r) || !r ? s = {
|
|
729
|
+
next: r ?? void 0,
|
|
730
|
+
error: n ?? void 0,
|
|
731
|
+
complete: i ?? void 0
|
|
732
|
+
} : s = r, o.destination = new $r(s), o;
|
|
772
733
|
}
|
|
773
734
|
return t;
|
|
774
|
-
}(
|
|
735
|
+
}(Rt);
|
|
775
736
|
function ue(e) {
|
|
776
|
-
|
|
737
|
+
Mr(e);
|
|
777
738
|
}
|
|
778
739
|
function Rr(e) {
|
|
779
740
|
throw e;
|
|
780
741
|
}
|
|
781
742
|
var Ur = {
|
|
782
743
|
closed: !0,
|
|
783
|
-
next:
|
|
744
|
+
next: ot,
|
|
784
745
|
error: Rr,
|
|
785
|
-
complete:
|
|
746
|
+
complete: ot
|
|
786
747
|
}, Dr = function() {
|
|
787
748
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
788
749
|
}();
|
|
@@ -796,7 +757,7 @@ function Fr(e) {
|
|
|
796
757
|
}, r);
|
|
797
758
|
};
|
|
798
759
|
}
|
|
799
|
-
var
|
|
760
|
+
var st = function() {
|
|
800
761
|
function e(t) {
|
|
801
762
|
t && (this._subscribe = t);
|
|
802
763
|
}
|
|
@@ -804,7 +765,7 @@ var it = function() {
|
|
|
804
765
|
var r = new e();
|
|
805
766
|
return r.source = this, r.operator = t, r;
|
|
806
767
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
807
|
-
var i = this, o =
|
|
768
|
+
var i = this, o = kr(t) ? t : new Fe(t, r, n);
|
|
808
769
|
return fe(function() {
|
|
809
770
|
var s = i, a = s.operator, h = s.source;
|
|
810
771
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -817,8 +778,8 @@ var it = function() {
|
|
|
817
778
|
}
|
|
818
779
|
}, e.prototype.forEach = function(t, r) {
|
|
819
780
|
var n = this;
|
|
820
|
-
return r =
|
|
821
|
-
var s = new
|
|
781
|
+
return r = at(r), new r(function(i, o) {
|
|
782
|
+
var s = new Fe({
|
|
822
783
|
next: function(a) {
|
|
823
784
|
try {
|
|
824
785
|
t(a);
|
|
@@ -842,7 +803,7 @@ var it = function() {
|
|
|
842
803
|
return Fr(t)(this);
|
|
843
804
|
}, e.prototype.toPromise = function(t) {
|
|
844
805
|
var r = this;
|
|
845
|
-
return t =
|
|
806
|
+
return t = at(t), new t(function(n, i) {
|
|
846
807
|
var o;
|
|
847
808
|
r.subscribe(function(s) {
|
|
848
809
|
return o = s;
|
|
@@ -856,28 +817,28 @@ var it = function() {
|
|
|
856
817
|
return new e(t);
|
|
857
818
|
}, e;
|
|
858
819
|
}();
|
|
859
|
-
function
|
|
820
|
+
function at(e) {
|
|
860
821
|
var t;
|
|
861
|
-
return (t = e ??
|
|
822
|
+
return (t = e ?? Cr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
862
823
|
}
|
|
863
|
-
function
|
|
824
|
+
function jr(e) {
|
|
864
825
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
865
826
|
}
|
|
866
|
-
function
|
|
867
|
-
return e && e instanceof
|
|
827
|
+
function kr(e) {
|
|
828
|
+
return e && e instanceof Rt || jr(e) && $t(e);
|
|
868
829
|
}
|
|
869
|
-
var Vr =
|
|
830
|
+
var Vr = Lt(function(e) {
|
|
870
831
|
return function() {
|
|
871
832
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
872
833
|
};
|
|
873
|
-
}),
|
|
874
|
-
|
|
834
|
+
}), Ut = function(e) {
|
|
835
|
+
ie(t, e);
|
|
875
836
|
function t() {
|
|
876
837
|
var r = e.call(this) || this;
|
|
877
838
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
878
839
|
}
|
|
879
840
|
return t.prototype.lift = function(r) {
|
|
880
|
-
var n = new
|
|
841
|
+
var n = new ut(this, this);
|
|
881
842
|
return n.operator = r, n;
|
|
882
843
|
}, t.prototype._throwIfClosed = function() {
|
|
883
844
|
if (this.closed)
|
|
@@ -889,7 +850,7 @@ var Vr = It(function(e) {
|
|
|
889
850
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
890
851
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
891
852
|
try {
|
|
892
|
-
for (var s =
|
|
853
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
893
854
|
var h = a.value;
|
|
894
855
|
h.next(r);
|
|
895
856
|
}
|
|
@@ -938,20 +899,20 @@ var Vr = It(function(e) {
|
|
|
938
899
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
939
900
|
}, t.prototype._innerSubscribe = function(r) {
|
|
940
901
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
941
|
-
return o || s ?
|
|
942
|
-
n.currentObservers = null,
|
|
902
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
903
|
+
n.currentObservers = null, Ge(a, r);
|
|
943
904
|
}));
|
|
944
905
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
945
906
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
946
907
|
i ? r.error(o) : s && r.complete();
|
|
947
908
|
}, t.prototype.asObservable = function() {
|
|
948
|
-
var r = new
|
|
909
|
+
var r = new st();
|
|
949
910
|
return r.source = this, r;
|
|
950
911
|
}, t.create = function(r, n) {
|
|
951
|
-
return new
|
|
912
|
+
return new ut(r, n);
|
|
952
913
|
}, t;
|
|
953
|
-
}(
|
|
954
|
-
|
|
914
|
+
}(st), ut = function(e) {
|
|
915
|
+
ie(t, e);
|
|
955
916
|
function t(r, n) {
|
|
956
917
|
var i = e.call(this) || this;
|
|
957
918
|
return i.destination = r, i.source = n, i;
|
|
@@ -967,17 +928,17 @@ var Vr = It(function(e) {
|
|
|
967
928
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
968
929
|
}, t.prototype._subscribe = function(r) {
|
|
969
930
|
var n, i;
|
|
970
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
931
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
971
932
|
}, t;
|
|
972
|
-
}(
|
|
933
|
+
}(Ut), Dt = {
|
|
973
934
|
now: function() {
|
|
974
|
-
return (
|
|
935
|
+
return (Dt.delegate || Date).now();
|
|
975
936
|
},
|
|
976
937
|
delegate: void 0
|
|
977
938
|
}, Xr = function(e) {
|
|
978
|
-
|
|
939
|
+
ie(t, e);
|
|
979
940
|
function t(r, n, i) {
|
|
980
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
941
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
981
942
|
var o = e.call(this) || this;
|
|
982
943
|
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;
|
|
983
944
|
}
|
|
@@ -997,31 +958,31 @@ var Vr = It(function(e) {
|
|
|
997
958
|
u && o.splice(0, u + 1);
|
|
998
959
|
}
|
|
999
960
|
}, t;
|
|
1000
|
-
}(
|
|
1001
|
-
const
|
|
1002
|
-
if (
|
|
961
|
+
}(Ut);
|
|
962
|
+
const ht = [], lt = {}, Wr = (e, t = 0) => {
|
|
963
|
+
if (ht.indexOf(e) == -1) {
|
|
1003
964
|
const r = new Xr(t);
|
|
1004
|
-
|
|
965
|
+
lt[e] = r, ht.push(e);
|
|
1005
966
|
}
|
|
1006
|
-
return
|
|
1007
|
-
},
|
|
967
|
+
return lt[e];
|
|
968
|
+
}, j = [];
|
|
1008
969
|
function zr(e, t) {
|
|
1009
970
|
return {
|
|
1010
|
-
subscribe:
|
|
971
|
+
subscribe: _e(e, t).subscribe
|
|
1011
972
|
};
|
|
1012
973
|
}
|
|
1013
|
-
function
|
|
974
|
+
function _e(e, t = H) {
|
|
1014
975
|
let r;
|
|
1015
976
|
const n = /* @__PURE__ */ new Set();
|
|
1016
977
|
function i(a) {
|
|
1017
|
-
if (
|
|
1018
|
-
const h = !
|
|
978
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
979
|
+
const h = !j.length;
|
|
1019
980
|
for (const u of n)
|
|
1020
|
-
u[1](),
|
|
981
|
+
u[1](), j.push(u, e);
|
|
1021
982
|
if (h) {
|
|
1022
|
-
for (let u = 0; u <
|
|
1023
|
-
|
|
1024
|
-
|
|
983
|
+
for (let u = 0; u < j.length; u += 2)
|
|
984
|
+
j[u][0](j[u + 1]);
|
|
985
|
+
j.length = 0;
|
|
1025
986
|
}
|
|
1026
987
|
}
|
|
1027
988
|
}
|
|
@@ -1036,7 +997,7 @@ function ve(e, t = H) {
|
|
|
1036
997
|
}
|
|
1037
998
|
return { set: i, update: o, subscribe: s };
|
|
1038
999
|
}
|
|
1039
|
-
function
|
|
1000
|
+
function J(e, t, r) {
|
|
1040
1001
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1041
1002
|
if (!i.every(Boolean))
|
|
1042
1003
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1050,9 +1011,9 @@ function q(e, t, r) {
|
|
|
1050
1011
|
return;
|
|
1051
1012
|
c();
|
|
1052
1013
|
const d = t(n ? u[0] : u, s, a);
|
|
1053
|
-
o ? s(d) : c =
|
|
1014
|
+
o ? s(d) : c = qe(d) ? d : H;
|
|
1054
1015
|
}, m = i.map(
|
|
1055
|
-
(d, p) =>
|
|
1016
|
+
(d, p) => cr(
|
|
1056
1017
|
d,
|
|
1057
1018
|
(S) => {
|
|
1058
1019
|
u[p] = S, l &= ~(1 << p), h && f();
|
|
@@ -1063,7 +1024,7 @@ function q(e, t, r) {
|
|
|
1063
1024
|
)
|
|
1064
1025
|
);
|
|
1065
1026
|
return h = !0, f(), function() {
|
|
1066
|
-
|
|
1027
|
+
ne(m), c(), h = !1;
|
|
1067
1028
|
};
|
|
1068
1029
|
});
|
|
1069
1030
|
}
|
|
@@ -1087,29 +1048,29 @@ function en(e) {
|
|
|
1087
1048
|
function tn(e) {
|
|
1088
1049
|
return Array.isArray(e) ? [] : {};
|
|
1089
1050
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1051
|
+
function te(e, t) {
|
|
1052
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(tn(e), e, t) : e;
|
|
1092
1053
|
}
|
|
1093
1054
|
function rn(e, t, r) {
|
|
1094
1055
|
return e.concat(t).map(function(n) {
|
|
1095
|
-
return
|
|
1056
|
+
return te(n, r);
|
|
1096
1057
|
});
|
|
1097
1058
|
}
|
|
1098
1059
|
function nn(e, t) {
|
|
1099
1060
|
if (!t.customMerge)
|
|
1100
|
-
return
|
|
1061
|
+
return W;
|
|
1101
1062
|
var r = t.customMerge(e);
|
|
1102
|
-
return typeof r == "function" ? r :
|
|
1063
|
+
return typeof r == "function" ? r : W;
|
|
1103
1064
|
}
|
|
1104
1065
|
function on(e) {
|
|
1105
1066
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1106
1067
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1107
1068
|
}) : [];
|
|
1108
1069
|
}
|
|
1109
|
-
function
|
|
1070
|
+
function ct(e) {
|
|
1110
1071
|
return Object.keys(e).concat(on(e));
|
|
1111
1072
|
}
|
|
1112
|
-
function
|
|
1073
|
+
function Gt(e, t) {
|
|
1113
1074
|
try {
|
|
1114
1075
|
return t in e;
|
|
1115
1076
|
} catch {
|
|
@@ -1117,129 +1078,179 @@ function Dt(e, t) {
|
|
|
1117
1078
|
}
|
|
1118
1079
|
}
|
|
1119
1080
|
function sn(e, t) {
|
|
1120
|
-
return
|
|
1081
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1121
1082
|
}
|
|
1122
1083
|
function an(e, t, r) {
|
|
1123
1084
|
var n = {};
|
|
1124
|
-
return r.isMergeableObject(e) &&
|
|
1125
|
-
n[i] =
|
|
1126
|
-
}),
|
|
1127
|
-
sn(e, i) || (
|
|
1085
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1086
|
+
n[i] = te(e[i], r);
|
|
1087
|
+
}), ct(t).forEach(function(i) {
|
|
1088
|
+
sn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = nn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1128
1089
|
}), n;
|
|
1129
1090
|
}
|
|
1130
|
-
function
|
|
1131
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified =
|
|
1091
|
+
function W(e, t, r) {
|
|
1092
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1132
1093
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1133
|
-
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) :
|
|
1094
|
+
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) : te(t, r);
|
|
1134
1095
|
}
|
|
1135
|
-
|
|
1096
|
+
W.all = function(t, r) {
|
|
1136
1097
|
if (!Array.isArray(t))
|
|
1137
1098
|
throw new Error("first argument should be an array");
|
|
1138
1099
|
return t.reduce(function(n, i) {
|
|
1139
|
-
return
|
|
1100
|
+
return W(n, i, r);
|
|
1140
1101
|
}, {});
|
|
1141
1102
|
};
|
|
1142
|
-
var un =
|
|
1103
|
+
var un = W, hn = un;
|
|
1143
1104
|
const ln = /* @__PURE__ */ Zr(hn);
|
|
1144
|
-
function
|
|
1145
|
-
|
|
1105
|
+
var je = function(e, t) {
|
|
1106
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1107
|
+
r.__proto__ = n;
|
|
1108
|
+
} || function(r, n) {
|
|
1109
|
+
for (var i in n)
|
|
1110
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1111
|
+
}, je(e, t);
|
|
1112
|
+
};
|
|
1113
|
+
function xe(e, t) {
|
|
1114
|
+
if (typeof t != "function" && t !== null)
|
|
1115
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1116
|
+
je(e, t);
|
|
1117
|
+
function r() {
|
|
1118
|
+
this.constructor = e;
|
|
1119
|
+
}
|
|
1120
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1121
|
+
}
|
|
1122
|
+
var O = function() {
|
|
1123
|
+
return O = Object.assign || function(t) {
|
|
1124
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1125
|
+
r = arguments[n];
|
|
1126
|
+
for (var o in r)
|
|
1127
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1128
|
+
}
|
|
1129
|
+
return t;
|
|
1130
|
+
}, O.apply(this, arguments);
|
|
1131
|
+
};
|
|
1132
|
+
function cn(e, t) {
|
|
1133
|
+
var r = {};
|
|
1134
|
+
for (var n in e)
|
|
1135
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1136
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1137
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1138
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1139
|
+
return r;
|
|
1140
|
+
}
|
|
1141
|
+
function we(e, t, r) {
|
|
1142
|
+
if (r || arguments.length === 2)
|
|
1143
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1144
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1145
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1146
|
+
}
|
|
1147
|
+
function Pe(e, t) {
|
|
1148
|
+
var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : mn;
|
|
1146
1149
|
return i(e, {
|
|
1147
1150
|
cache: r,
|
|
1148
1151
|
serializer: n
|
|
1149
1152
|
});
|
|
1150
1153
|
}
|
|
1151
|
-
function
|
|
1154
|
+
function fn(e) {
|
|
1152
1155
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1153
1156
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var i =
|
|
1157
|
+
function pn(e, t, r, n) {
|
|
1158
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
1156
1159
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1157
1160
|
}
|
|
1158
1161
|
function Ft(e, t, r) {
|
|
1159
1162
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1160
1163
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1161
1164
|
}
|
|
1162
|
-
function
|
|
1165
|
+
function jt(e, t, r, n, i) {
|
|
1163
1166
|
return r.bind(t, e, n, i);
|
|
1164
1167
|
}
|
|
1165
|
-
function fn(e, t) {
|
|
1166
|
-
var r = e.length === 1 ? Gt : Ft;
|
|
1167
|
-
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1168
|
-
}
|
|
1169
|
-
function pn(e, t) {
|
|
1170
|
-
return Ze(e, this, Ft, t.cache.create(), t.serializer);
|
|
1171
|
-
}
|
|
1172
1168
|
function mn(e, t) {
|
|
1173
|
-
|
|
1169
|
+
var r = e.length === 1 ? pn : Ft;
|
|
1170
|
+
return jt(e, this, r, t.cache.create(), t.serializer);
|
|
1174
1171
|
}
|
|
1175
|
-
|
|
1176
|
-
return
|
|
1177
|
-
};
|
|
1178
|
-
function Qe() {
|
|
1179
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1172
|
+
function dn(e, t) {
|
|
1173
|
+
return jt(e, this, Ft, t.cache.create(), t.serializer);
|
|
1180
1174
|
}
|
|
1181
|
-
|
|
1182
|
-
return
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1175
|
+
var bn = function() {
|
|
1176
|
+
return JSON.stringify(arguments);
|
|
1177
|
+
}, gn = (
|
|
1178
|
+
/** @class */
|
|
1179
|
+
function() {
|
|
1180
|
+
function e() {
|
|
1181
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1182
|
+
}
|
|
1183
|
+
return e.prototype.get = function(t) {
|
|
1184
|
+
return this.cache[t];
|
|
1185
|
+
}, e.prototype.set = function(t, r) {
|
|
1186
|
+
this.cache[t] = r;
|
|
1187
|
+
}, e;
|
|
1188
|
+
}()
|
|
1189
|
+
), yn = {
|
|
1188
1190
|
create: function() {
|
|
1189
|
-
return new
|
|
1191
|
+
return new gn();
|
|
1190
1192
|
}
|
|
1191
|
-
},
|
|
1192
|
-
variadic:
|
|
1193
|
-
|
|
1194
|
-
|
|
1193
|
+
}, Be = {
|
|
1194
|
+
variadic: dn
|
|
1195
|
+
}, be = function() {
|
|
1196
|
+
return be = Object.assign || function(t) {
|
|
1197
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1198
|
+
r = arguments[n];
|
|
1199
|
+
for (var o in r)
|
|
1200
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1201
|
+
}
|
|
1202
|
+
return t;
|
|
1203
|
+
}, be.apply(this, arguments);
|
|
1204
|
+
};
|
|
1205
|
+
var b;
|
|
1195
1206
|
(function(e) {
|
|
1196
1207
|
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";
|
|
1197
1208
|
})(b || (b = {}));
|
|
1198
|
-
var
|
|
1209
|
+
var v;
|
|
1199
1210
|
(function(e) {
|
|
1200
1211
|
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";
|
|
1201
|
-
})(
|
|
1202
|
-
var
|
|
1212
|
+
})(v || (v = {}));
|
|
1213
|
+
var z;
|
|
1203
1214
|
(function(e) {
|
|
1204
1215
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1205
|
-
})(
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1216
|
+
})(z || (z = {}));
|
|
1217
|
+
function ft(e) {
|
|
1218
|
+
return e.type === v.literal;
|
|
1208
1219
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1220
|
+
function vn(e) {
|
|
1221
|
+
return e.type === v.argument;
|
|
1211
1222
|
}
|
|
1212
1223
|
function kt(e) {
|
|
1213
|
-
return e.type ===
|
|
1214
|
-
}
|
|
1215
|
-
function jt(e) {
|
|
1216
|
-
return e.type === _.date;
|
|
1224
|
+
return e.type === v.number;
|
|
1217
1225
|
}
|
|
1218
1226
|
function Vt(e) {
|
|
1219
|
-
return e.type ===
|
|
1227
|
+
return e.type === v.date;
|
|
1220
1228
|
}
|
|
1221
1229
|
function Xt(e) {
|
|
1222
|
-
return e.type ===
|
|
1230
|
+
return e.type === v.time;
|
|
1223
1231
|
}
|
|
1224
1232
|
function Wt(e) {
|
|
1225
|
-
return e.type ===
|
|
1226
|
-
}
|
|
1227
|
-
function yn(e) {
|
|
1228
|
-
return e.type === _.pound;
|
|
1233
|
+
return e.type === v.select;
|
|
1229
1234
|
}
|
|
1230
1235
|
function zt(e) {
|
|
1231
|
-
return e.type ===
|
|
1236
|
+
return e.type === v.plural;
|
|
1237
|
+
}
|
|
1238
|
+
function _n(e) {
|
|
1239
|
+
return e.type === v.pound;
|
|
1232
1240
|
}
|
|
1233
1241
|
function Zt(e) {
|
|
1234
|
-
return
|
|
1242
|
+
return e.type === v.tag;
|
|
1235
1243
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1244
|
+
function Qt(e) {
|
|
1245
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1238
1246
|
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1247
|
+
function ke(e) {
|
|
1248
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1249
|
+
}
|
|
1250
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xn = /(?:[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;
|
|
1251
|
+
function En(e) {
|
|
1241
1252
|
var t = {};
|
|
1242
|
-
return e.replace(
|
|
1253
|
+
return e.replace(xn, function(r) {
|
|
1243
1254
|
var n = r.length;
|
|
1244
1255
|
switch (r[0]) {
|
|
1245
1256
|
case "G":
|
|
@@ -1328,11 +1339,21 @@ function _n(e) {
|
|
|
1328
1339
|
return "";
|
|
1329
1340
|
}), t;
|
|
1330
1341
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function
|
|
1342
|
+
var _ = function() {
|
|
1343
|
+
return _ = Object.assign || function(t) {
|
|
1344
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1345
|
+
r = arguments[n];
|
|
1346
|
+
for (var o in r)
|
|
1347
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1348
|
+
}
|
|
1349
|
+
return t;
|
|
1350
|
+
}, _.apply(this, arguments);
|
|
1351
|
+
};
|
|
1352
|
+
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1353
|
+
function Tn(e) {
|
|
1333
1354
|
if (e.length === 0)
|
|
1334
1355
|
throw new Error("Number skeleton cannot be empty");
|
|
1335
|
-
for (var t = e.split(
|
|
1356
|
+
for (var t = e.split(Sn).filter(function(f) {
|
|
1336
1357
|
return f.length > 0;
|
|
1337
1358
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1338
1359
|
var o = i[n], s = o.split("/");
|
|
@@ -1347,17 +1368,17 @@ function En(e) {
|
|
|
1347
1368
|
}
|
|
1348
1369
|
return r;
|
|
1349
1370
|
}
|
|
1350
|
-
function
|
|
1371
|
+
function Hn(e) {
|
|
1351
1372
|
return e.replace(/^(.*?)-/, "");
|
|
1352
1373
|
}
|
|
1353
|
-
var
|
|
1354
|
-
function
|
|
1374
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, An = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1375
|
+
function mt(e) {
|
|
1355
1376
|
var t = {};
|
|
1356
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1377
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1357
1378
|
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)), "";
|
|
1358
1379
|
}), t;
|
|
1359
1380
|
}
|
|
1360
|
-
function
|
|
1381
|
+
function Kt(e) {
|
|
1361
1382
|
switch (e) {
|
|
1362
1383
|
case "sign-auto":
|
|
1363
1384
|
return {
|
|
@@ -1397,7 +1418,7 @@ function Yt(e) {
|
|
|
1397
1418
|
};
|
|
1398
1419
|
}
|
|
1399
1420
|
}
|
|
1400
|
-
function
|
|
1421
|
+
function wn(e) {
|
|
1401
1422
|
var t;
|
|
1402
1423
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1403
1424
|
notation: "engineering"
|
|
@@ -1405,17 +1426,17 @@ function Hn(e) {
|
|
|
1405
1426
|
notation: "scientific"
|
|
1406
1427
|
}, e = e.slice(1)), t) {
|
|
1407
1428
|
var r = e.slice(0, 2);
|
|
1408
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1429
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1409
1430
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1410
1431
|
t.minimumIntegerDigits = e.length;
|
|
1411
1432
|
}
|
|
1412
1433
|
return t;
|
|
1413
1434
|
}
|
|
1414
|
-
function
|
|
1415
|
-
var t = {}, r =
|
|
1435
|
+
function dt(e) {
|
|
1436
|
+
var t = {}, r = Kt(e);
|
|
1416
1437
|
return r || t;
|
|
1417
1438
|
}
|
|
1418
|
-
function
|
|
1439
|
+
function Pn(e) {
|
|
1419
1440
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1420
1441
|
var i = n[r];
|
|
1421
1442
|
switch (i.stem) {
|
|
@@ -1439,7 +1460,7 @@ function An(e) {
|
|
|
1439
1460
|
continue;
|
|
1440
1461
|
case "measure-unit":
|
|
1441
1462
|
case "unit":
|
|
1442
|
-
t.style = "unit", t.unit =
|
|
1463
|
+
t.style = "unit", t.unit = Hn(i.options[0]);
|
|
1443
1464
|
continue;
|
|
1444
1465
|
case "compact-short":
|
|
1445
1466
|
case "K":
|
|
@@ -1450,13 +1471,13 @@ function An(e) {
|
|
|
1450
1471
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1451
1472
|
continue;
|
|
1452
1473
|
case "scientific":
|
|
1453
|
-
t =
|
|
1454
|
-
return
|
|
1474
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1475
|
+
return _(_({}, h), dt(u));
|
|
1455
1476
|
}, {}));
|
|
1456
1477
|
continue;
|
|
1457
1478
|
case "engineering":
|
|
1458
|
-
t =
|
|
1459
|
-
return
|
|
1479
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1480
|
+
return _(_({}, h), dt(u));
|
|
1460
1481
|
}, {}));
|
|
1461
1482
|
continue;
|
|
1462
1483
|
case "notation-simple":
|
|
@@ -1501,7 +1522,7 @@ function An(e) {
|
|
|
1501
1522
|
case "integer-width":
|
|
1502
1523
|
if (i.options.length > 1)
|
|
1503
1524
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1504
|
-
i.options[0].replace(
|
|
1525
|
+
i.options[0].replace(An, function(h, u, l, c, f, m) {
|
|
1505
1526
|
if (u)
|
|
1506
1527
|
t.minimumIntegerDigits = l.length;
|
|
1507
1528
|
else {
|
|
@@ -1514,28 +1535,28 @@ function An(e) {
|
|
|
1514
1535
|
});
|
|
1515
1536
|
continue;
|
|
1516
1537
|
}
|
|
1517
|
-
if (
|
|
1538
|
+
if (Yt.test(i.stem)) {
|
|
1518
1539
|
t.minimumIntegerDigits = i.stem.length;
|
|
1519
1540
|
continue;
|
|
1520
1541
|
}
|
|
1521
|
-
if (
|
|
1542
|
+
if (pt.test(i.stem)) {
|
|
1522
1543
|
if (i.options.length > 1)
|
|
1523
1544
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1524
|
-
i.stem.replace(
|
|
1545
|
+
i.stem.replace(pt, function(h, u, l, c, f, m) {
|
|
1525
1546
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1526
1547
|
});
|
|
1527
1548
|
var o = i.options[0];
|
|
1528
|
-
o === "w" ? t =
|
|
1549
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), mt(o)));
|
|
1529
1550
|
continue;
|
|
1530
1551
|
}
|
|
1531
|
-
if (
|
|
1532
|
-
t =
|
|
1552
|
+
if (qt.test(i.stem)) {
|
|
1553
|
+
t = _(_({}, t), mt(i.stem));
|
|
1533
1554
|
continue;
|
|
1534
1555
|
}
|
|
1535
|
-
var s =
|
|
1536
|
-
s && (t =
|
|
1537
|
-
var a =
|
|
1538
|
-
a && (t =
|
|
1556
|
+
var s = Kt(i.stem);
|
|
1557
|
+
s && (t = _(_({}, t), s));
|
|
1558
|
+
var a = wn(i.stem);
|
|
1559
|
+
a && (t = _(_({}, t), a));
|
|
1539
1560
|
}
|
|
1540
1561
|
return t;
|
|
1541
1562
|
}
|
|
@@ -2954,13 +2975,13 @@ var he = {
|
|
|
2954
2975
|
"h"
|
|
2955
2976
|
]
|
|
2956
2977
|
};
|
|
2957
|
-
function
|
|
2978
|
+
function Bn(e, t) {
|
|
2958
2979
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2959
2980
|
var i = e.charAt(n);
|
|
2960
2981
|
if (i === "j") {
|
|
2961
2982
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2962
2983
|
o++, n++;
|
|
2963
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2984
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = On(t);
|
|
2964
2985
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2965
2986
|
r += h;
|
|
2966
2987
|
for (; s-- > 0; )
|
|
@@ -2970,7 +2991,7 @@ function Pn(e, t) {
|
|
|
2970
2991
|
}
|
|
2971
2992
|
return r;
|
|
2972
2993
|
}
|
|
2973
|
-
function
|
|
2994
|
+
function On(e) {
|
|
2974
2995
|
var t = e.hourCycle;
|
|
2975
2996
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2976
2997
|
e.hourCycles && // @ts-ignore
|
|
@@ -2992,20 +3013,20 @@ function wn(e) {
|
|
|
2992
3013
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2993
3014
|
return i[0];
|
|
2994
3015
|
}
|
|
2995
|
-
var
|
|
3016
|
+
var Oe, Nn = new RegExp("^".concat(Jt.source, "*")), In = new RegExp("".concat(Jt.source, "*$"));
|
|
2996
3017
|
function g(e, t) {
|
|
2997
3018
|
return { start: e, end: t };
|
|
2998
3019
|
}
|
|
2999
|
-
var
|
|
3020
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ln = !!String.fromCodePoint, Mn = !!Object.fromEntries, $n = !!String.prototype.codePointAt, Rn = !!String.prototype.trimStart, Un = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Gn = Dn ? Number.isSafeInteger : function(e) {
|
|
3000
3021
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3001
|
-
},
|
|
3022
|
+
}, Ve = !0;
|
|
3002
3023
|
try {
|
|
3003
|
-
var
|
|
3004
|
-
|
|
3024
|
+
var Fn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3025
|
+
Ve = ((Oe = Fn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3005
3026
|
} catch {
|
|
3006
|
-
|
|
3027
|
+
Ve = !1;
|
|
3007
3028
|
}
|
|
3008
|
-
var
|
|
3029
|
+
var bt = Cn ? (
|
|
3009
3030
|
// Native
|
|
3010
3031
|
function(t, r, n) {
|
|
3011
3032
|
return t.startsWith(r, n);
|
|
@@ -3015,7 +3036,7 @@ var mt = On ? (
|
|
|
3015
3036
|
function(t, r, n) {
|
|
3016
3037
|
return t.slice(n, n + r.length) === r;
|
|
3017
3038
|
}
|
|
3018
|
-
),
|
|
3039
|
+
), Xe = Ln ? String.fromCodePoint : (
|
|
3019
3040
|
// IE11
|
|
3020
3041
|
function() {
|
|
3021
3042
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3027,9 +3048,9 @@ var mt = On ? (
|
|
|
3027
3048
|
}
|
|
3028
3049
|
return n;
|
|
3029
3050
|
}
|
|
3030
|
-
),
|
|
3051
|
+
), gt = (
|
|
3031
3052
|
// native
|
|
3032
|
-
|
|
3053
|
+
Mn ? Object.fromEntries : (
|
|
3033
3054
|
// Ponyfill
|
|
3034
3055
|
function(t) {
|
|
3035
3056
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3039,7 +3060,7 @@ var mt = On ? (
|
|
|
3039
3060
|
return r;
|
|
3040
3061
|
}
|
|
3041
3062
|
)
|
|
3042
|
-
),
|
|
3063
|
+
), er = $n ? (
|
|
3043
3064
|
// Native
|
|
3044
3065
|
function(t, r) {
|
|
3045
3066
|
return t.codePointAt(r);
|
|
@@ -3053,7 +3074,7 @@ var mt = On ? (
|
|
|
3053
3074
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3054
3075
|
}
|
|
3055
3076
|
}
|
|
3056
|
-
),
|
|
3077
|
+
), jn = Rn ? (
|
|
3057
3078
|
// Native
|
|
3058
3079
|
function(t) {
|
|
3059
3080
|
return t.trimStart();
|
|
@@ -3061,9 +3082,9 @@ var mt = On ? (
|
|
|
3061
3082
|
) : (
|
|
3062
3083
|
// Ponyfill
|
|
3063
3084
|
function(t) {
|
|
3064
|
-
return t.replace(
|
|
3085
|
+
return t.replace(Nn, "");
|
|
3065
3086
|
}
|
|
3066
|
-
),
|
|
3087
|
+
), kn = Un ? (
|
|
3067
3088
|
// Native
|
|
3068
3089
|
function(t) {
|
|
3069
3090
|
return t.trimEnd();
|
|
@@ -3071,32 +3092,32 @@ var mt = On ? (
|
|
|
3071
3092
|
) : (
|
|
3072
3093
|
// Ponyfill
|
|
3073
3094
|
function(t) {
|
|
3074
|
-
return t.replace(
|
|
3095
|
+
return t.replace(In, "");
|
|
3075
3096
|
}
|
|
3076
3097
|
);
|
|
3077
|
-
function
|
|
3098
|
+
function tr(e, t) {
|
|
3078
3099
|
return new RegExp(e, t);
|
|
3079
3100
|
}
|
|
3080
|
-
var
|
|
3081
|
-
if (
|
|
3082
|
-
var
|
|
3083
|
-
|
|
3101
|
+
var We;
|
|
3102
|
+
if (Ve) {
|
|
3103
|
+
var yt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3104
|
+
We = function(t, r) {
|
|
3084
3105
|
var n;
|
|
3085
|
-
|
|
3086
|
-
var i =
|
|
3106
|
+
yt.lastIndex = r;
|
|
3107
|
+
var i = yt.exec(t);
|
|
3087
3108
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3088
3109
|
};
|
|
3089
3110
|
} else
|
|
3090
|
-
|
|
3111
|
+
We = function(t, r) {
|
|
3091
3112
|
for (var n = []; ; ) {
|
|
3092
|
-
var i =
|
|
3093
|
-
if (i === void 0 ||
|
|
3113
|
+
var i = er(t, r);
|
|
3114
|
+
if (i === void 0 || rr(i) || zn(i))
|
|
3094
3115
|
break;
|
|
3095
3116
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3096
3117
|
}
|
|
3097
|
-
return
|
|
3118
|
+
return Xe.apply(void 0, n);
|
|
3098
3119
|
};
|
|
3099
|
-
var
|
|
3120
|
+
var Vn = (
|
|
3100
3121
|
/** @class */
|
|
3101
3122
|
function() {
|
|
3102
3123
|
function e(t, r) {
|
|
@@ -3120,14 +3141,14 @@ var kn = (
|
|
|
3120
3141
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3121
3142
|
var a = this.clonePosition();
|
|
3122
3143
|
this.bump(), i.push({
|
|
3123
|
-
type:
|
|
3144
|
+
type: v.pound,
|
|
3124
3145
|
location: g(a, this.clonePosition())
|
|
3125
3146
|
});
|
|
3126
3147
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3127
3148
|
if (n)
|
|
3128
3149
|
break;
|
|
3129
3150
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3130
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3151
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3131
3152
|
var s = this.parseTag(t, r);
|
|
3132
3153
|
if (s.err)
|
|
3133
3154
|
return s;
|
|
@@ -3148,7 +3169,7 @@ var kn = (
|
|
|
3148
3169
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3149
3170
|
return {
|
|
3150
3171
|
val: {
|
|
3151
|
-
type:
|
|
3172
|
+
type: v.literal,
|
|
3152
3173
|
value: "<".concat(i, "/>"),
|
|
3153
3174
|
location: g(n, this.clonePosition())
|
|
3154
3175
|
},
|
|
@@ -3160,12 +3181,12 @@ var kn = (
|
|
|
3160
3181
|
return o;
|
|
3161
3182
|
var s = o.val, a = this.clonePosition();
|
|
3162
3183
|
if (this.bumpIf("</")) {
|
|
3163
|
-
if (this.isEOF() || !
|
|
3184
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3164
3185
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3165
3186
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3166
3187
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3167
3188
|
val: {
|
|
3168
|
-
type:
|
|
3189
|
+
type: v.tag,
|
|
3169
3190
|
value: i,
|
|
3170
3191
|
children: s,
|
|
3171
3192
|
location: g(n, this.clonePosition())
|
|
@@ -3178,7 +3199,7 @@ var kn = (
|
|
|
3178
3199
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3179
3200
|
}, e.prototype.parseTagName = function() {
|
|
3180
3201
|
var t = this.offset();
|
|
3181
|
-
for (this.bump(); !this.isEOF() &&
|
|
3202
|
+
for (this.bump(); !this.isEOF() && Wn(this.char()); )
|
|
3182
3203
|
this.bump();
|
|
3183
3204
|
return this.message.slice(t, this.offset());
|
|
3184
3205
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3202,12 +3223,12 @@ var kn = (
|
|
|
3202
3223
|
}
|
|
3203
3224
|
var h = g(n, this.clonePosition());
|
|
3204
3225
|
return {
|
|
3205
|
-
val: { type:
|
|
3226
|
+
val: { type: v.literal, value: i, location: h },
|
|
3206
3227
|
err: null
|
|
3207
3228
|
};
|
|
3208
3229
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3209
3230
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3210
|
-
!
|
|
3231
|
+
!Xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3211
3232
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3212
3233
|
if (this.isEOF() || this.char() !== 39)
|
|
3213
3234
|
return null;
|
|
@@ -3241,12 +3262,12 @@ var kn = (
|
|
|
3241
3262
|
r.push(n);
|
|
3242
3263
|
this.bump();
|
|
3243
3264
|
}
|
|
3244
|
-
return
|
|
3265
|
+
return Xe.apply(void 0, r);
|
|
3245
3266
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3246
3267
|
if (this.isEOF())
|
|
3247
3268
|
return null;
|
|
3248
3269
|
var n = this.char();
|
|
3249
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3270
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
3250
3271
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3251
3272
|
var n = this.clonePosition();
|
|
3252
3273
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3262,7 +3283,7 @@ var kn = (
|
|
|
3262
3283
|
case 125:
|
|
3263
3284
|
return this.bump(), {
|
|
3264
3285
|
val: {
|
|
3265
|
-
type:
|
|
3286
|
+
type: v.argument,
|
|
3266
3287
|
// value does not include the opening and closing braces.
|
|
3267
3288
|
value: i,
|
|
3268
3289
|
location: g(n, this.clonePosition())
|
|
@@ -3275,7 +3296,7 @@ var kn = (
|
|
|
3275
3296
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3276
3297
|
}
|
|
3277
3298
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3278
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3299
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3279
3300
|
this.bumpTo(i);
|
|
3280
3301
|
var o = this.clonePosition(), s = g(t, o);
|
|
3281
3302
|
return { value: n, location: s };
|
|
@@ -3294,7 +3315,7 @@ var kn = (
|
|
|
3294
3315
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3295
3316
|
if (c.err)
|
|
3296
3317
|
return c;
|
|
3297
|
-
var f =
|
|
3318
|
+
var f = kn(c.val);
|
|
3298
3319
|
if (f.length === 0)
|
|
3299
3320
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3300
3321
|
var m = g(l, this.clonePosition());
|
|
@@ -3304,25 +3325,25 @@ var kn = (
|
|
|
3304
3325
|
if (d.err)
|
|
3305
3326
|
return d;
|
|
3306
3327
|
var p = g(i, this.clonePosition());
|
|
3307
|
-
if (u &&
|
|
3308
|
-
var S =
|
|
3328
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3329
|
+
var S = jn(u.style.slice(2));
|
|
3309
3330
|
if (a === "number") {
|
|
3310
3331
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3311
3332
|
return c.err ? c : {
|
|
3312
|
-
val: { type:
|
|
3333
|
+
val: { type: v.number, value: n, location: p, style: c.val },
|
|
3313
3334
|
err: null
|
|
3314
3335
|
};
|
|
3315
3336
|
} else {
|
|
3316
3337
|
if (S.length === 0)
|
|
3317
3338
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3318
3339
|
var $ = S;
|
|
3319
|
-
this.locale && ($ =
|
|
3340
|
+
this.locale && ($ = Bn(S, this.locale));
|
|
3320
3341
|
var f = {
|
|
3321
|
-
type:
|
|
3342
|
+
type: z.dateTime,
|
|
3322
3343
|
pattern: $,
|
|
3323
3344
|
location: u.styleLocation,
|
|
3324
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3325
|
-
}, C = a === "date" ?
|
|
3345
|
+
parsedOptions: this.shouldParseSkeletons ? En($) : {}
|
|
3346
|
+
}, C = a === "date" ? v.date : v.time;
|
|
3326
3347
|
return {
|
|
3327
3348
|
val: { type: C, value: n, location: p, style: f },
|
|
3328
3349
|
err: null
|
|
@@ -3331,7 +3352,7 @@ var kn = (
|
|
|
3331
3352
|
}
|
|
3332
3353
|
return {
|
|
3333
3354
|
val: {
|
|
3334
|
-
type: a === "number" ?
|
|
3355
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3335
3356
|
value: n,
|
|
3336
3357
|
location: p,
|
|
3337
3358
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3344,9 +3365,9 @@ var kn = (
|
|
|
3344
3365
|
case "select": {
|
|
3345
3366
|
var A = this.clonePosition();
|
|
3346
3367
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3347
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A,
|
|
3368
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, be({}, A)));
|
|
3348
3369
|
this.bumpSpace();
|
|
3349
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3370
|
+
var R = this.parseIdentifierIfPossible(), P = 0;
|
|
3350
3371
|
if (a !== "select" && R.value === "offset") {
|
|
3351
3372
|
if (!this.bumpIf(":"))
|
|
3352
3373
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3354,7 +3375,7 @@ var kn = (
|
|
|
3354
3375
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3355
3376
|
if (c.err)
|
|
3356
3377
|
return c;
|
|
3357
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3378
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
|
|
3358
3379
|
}
|
|
3359
3380
|
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3360
3381
|
if (D.err)
|
|
@@ -3365,18 +3386,18 @@ var kn = (
|
|
|
3365
3386
|
var y = g(i, this.clonePosition());
|
|
3366
3387
|
return a === "select" ? {
|
|
3367
3388
|
val: {
|
|
3368
|
-
type:
|
|
3389
|
+
type: v.select,
|
|
3369
3390
|
value: n,
|
|
3370
|
-
options:
|
|
3391
|
+
options: gt(D.val),
|
|
3371
3392
|
location: y
|
|
3372
3393
|
},
|
|
3373
3394
|
err: null
|
|
3374
3395
|
} : {
|
|
3375
3396
|
val: {
|
|
3376
|
-
type:
|
|
3397
|
+
type: v.plural,
|
|
3377
3398
|
value: n,
|
|
3378
|
-
options:
|
|
3379
|
-
offset:
|
|
3399
|
+
options: gt(D.val),
|
|
3400
|
+
offset: P,
|
|
3380
3401
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3381
3402
|
location: y
|
|
3382
3403
|
},
|
|
@@ -3426,16 +3447,16 @@ var kn = (
|
|
|
3426
3447
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3427
3448
|
var n = [];
|
|
3428
3449
|
try {
|
|
3429
|
-
n =
|
|
3450
|
+
n = Tn(t);
|
|
3430
3451
|
} catch {
|
|
3431
3452
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3432
3453
|
}
|
|
3433
3454
|
return {
|
|
3434
3455
|
val: {
|
|
3435
|
-
type:
|
|
3456
|
+
type: z.number,
|
|
3436
3457
|
tokens: n,
|
|
3437
3458
|
location: r,
|
|
3438
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3459
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
|
3439
3460
|
},
|
|
3440
3461
|
err: null
|
|
3441
3462
|
};
|
|
@@ -3483,7 +3504,7 @@ var kn = (
|
|
|
3483
3504
|
break;
|
|
3484
3505
|
}
|
|
3485
3506
|
var h = g(i, this.clonePosition());
|
|
3486
|
-
return o ? (s *= n,
|
|
3507
|
+
return o ? (s *= n, Gn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3487
3508
|
}, e.prototype.offset = function() {
|
|
3488
3509
|
return this.position.offset;
|
|
3489
3510
|
}, e.prototype.isEOF = function() {
|
|
@@ -3498,7 +3519,7 @@ var kn = (
|
|
|
3498
3519
|
var t = this.position.offset;
|
|
3499
3520
|
if (t >= this.message.length)
|
|
3500
3521
|
throw Error("out of bound");
|
|
3501
|
-
var r =
|
|
3522
|
+
var r = er(this.message, t);
|
|
3502
3523
|
if (r === void 0)
|
|
3503
3524
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3504
3525
|
return r;
|
|
@@ -3517,7 +3538,7 @@ var kn = (
|
|
|
3517
3538
|
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);
|
|
3518
3539
|
}
|
|
3519
3540
|
}, e.prototype.bumpIf = function(t) {
|
|
3520
|
-
if (
|
|
3541
|
+
if (bt(this.message, t, this.offset())) {
|
|
3521
3542
|
for (var r = 0; r < t.length; r++)
|
|
3522
3543
|
this.bump();
|
|
3523
3544
|
return !0;
|
|
@@ -3539,7 +3560,7 @@ var kn = (
|
|
|
3539
3560
|
break;
|
|
3540
3561
|
}
|
|
3541
3562
|
}, e.prototype.bumpSpace = function() {
|
|
3542
|
-
for (; !this.isEOF() &&
|
|
3563
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3543
3564
|
this.bump();
|
|
3544
3565
|
}, e.prototype.peek = function() {
|
|
3545
3566
|
if (this.isEOF())
|
|
@@ -3549,47 +3570,47 @@ var kn = (
|
|
|
3549
3570
|
}, e;
|
|
3550
3571
|
}()
|
|
3551
3572
|
);
|
|
3552
|
-
function
|
|
3573
|
+
function ze(e) {
|
|
3553
3574
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3554
3575
|
}
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3576
|
+
function Xn(e) {
|
|
3577
|
+
return ze(e) || e === 47;
|
|
3557
3578
|
}
|
|
3558
|
-
function
|
|
3579
|
+
function Wn(e) {
|
|
3559
3580
|
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;
|
|
3560
3581
|
}
|
|
3561
|
-
function
|
|
3582
|
+
function rr(e) {
|
|
3562
3583
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3563
3584
|
}
|
|
3564
|
-
function
|
|
3585
|
+
function zn(e) {
|
|
3565
3586
|
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;
|
|
3566
3587
|
}
|
|
3567
|
-
function
|
|
3588
|
+
function Ze(e) {
|
|
3568
3589
|
e.forEach(function(t) {
|
|
3569
|
-
if (delete t.location,
|
|
3590
|
+
if (delete t.location, Wt(t) || zt(t))
|
|
3570
3591
|
for (var r in t.options)
|
|
3571
|
-
delete t.options[r].location,
|
|
3592
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3572
3593
|
else
|
|
3573
|
-
kt(t) &&
|
|
3594
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && ke(t.style) ? delete t.style.location : Zt(t) && Ze(t.children);
|
|
3574
3595
|
});
|
|
3575
3596
|
}
|
|
3576
|
-
function
|
|
3577
|
-
t === void 0 && (t = {}), t =
|
|
3578
|
-
var r = new
|
|
3597
|
+
function Zn(e, t) {
|
|
3598
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3599
|
+
var r = new Vn(e, t).parse();
|
|
3579
3600
|
if (r.err) {
|
|
3580
3601
|
var n = SyntaxError(b[r.err.kind]);
|
|
3581
3602
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3582
3603
|
}
|
|
3583
|
-
return t?.captureLocation ||
|
|
3604
|
+
return t?.captureLocation || Ze(r.val), r.val;
|
|
3584
3605
|
}
|
|
3585
|
-
var
|
|
3606
|
+
var Z;
|
|
3586
3607
|
(function(e) {
|
|
3587
3608
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3588
|
-
})(
|
|
3589
|
-
var
|
|
3609
|
+
})(Z || (Z = {}));
|
|
3610
|
+
var Ee = (
|
|
3590
3611
|
/** @class */
|
|
3591
3612
|
function(e) {
|
|
3592
|
-
|
|
3613
|
+
xe(t, e);
|
|
3593
3614
|
function t(r, n, i) {
|
|
3594
3615
|
var o = e.call(this, r) || this;
|
|
3595
3616
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3598,48 +3619,48 @@ var _e = (
|
|
|
3598
3619
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3599
3620
|
}, t;
|
|
3600
3621
|
}(Error)
|
|
3601
|
-
),
|
|
3622
|
+
), vt = (
|
|
3602
3623
|
/** @class */
|
|
3603
3624
|
function(e) {
|
|
3604
|
-
|
|
3625
|
+
xe(t, e);
|
|
3605
3626
|
function t(r, n, i, o) {
|
|
3606
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3627
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3607
3628
|
}
|
|
3608
3629
|
return t;
|
|
3609
|
-
}(
|
|
3610
|
-
),
|
|
3630
|
+
}(Ee)
|
|
3631
|
+
), Qn = (
|
|
3611
3632
|
/** @class */
|
|
3612
3633
|
function(e) {
|
|
3613
|
-
|
|
3634
|
+
xe(t, e);
|
|
3614
3635
|
function t(r, n, i) {
|
|
3615
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3636
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3616
3637
|
}
|
|
3617
3638
|
return t;
|
|
3618
|
-
}(
|
|
3619
|
-
),
|
|
3639
|
+
}(Ee)
|
|
3640
|
+
), Jn = (
|
|
3620
3641
|
/** @class */
|
|
3621
3642
|
function(e) {
|
|
3622
|
-
|
|
3643
|
+
xe(t, e);
|
|
3623
3644
|
function t(r, n) {
|
|
3624
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3645
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3625
3646
|
}
|
|
3626
3647
|
return t;
|
|
3627
|
-
}(
|
|
3648
|
+
}(Ee)
|
|
3628
3649
|
), E;
|
|
3629
3650
|
(function(e) {
|
|
3630
3651
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3631
3652
|
})(E || (E = {}));
|
|
3632
|
-
function
|
|
3653
|
+
function qn(e) {
|
|
3633
3654
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3634
3655
|
var n = t[t.length - 1];
|
|
3635
3656
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3636
3657
|
}, []);
|
|
3637
3658
|
}
|
|
3638
|
-
function
|
|
3659
|
+
function Yn(e) {
|
|
3639
3660
|
return typeof e == "function";
|
|
3640
3661
|
}
|
|
3641
3662
|
function pe(e, t, r, n, i, o, s) {
|
|
3642
|
-
if (e.length === 1 &&
|
|
3663
|
+
if (e.length === 1 && ft(e[0]))
|
|
3643
3664
|
return [
|
|
3644
3665
|
{
|
|
3645
3666
|
type: E.literal,
|
|
@@ -3648,14 +3669,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3648
3669
|
];
|
|
3649
3670
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3650
3671
|
var l = u[h];
|
|
3651
|
-
if (
|
|
3672
|
+
if (ft(l)) {
|
|
3652
3673
|
a.push({
|
|
3653
3674
|
type: E.literal,
|
|
3654
3675
|
value: l.value
|
|
3655
3676
|
});
|
|
3656
3677
|
continue;
|
|
3657
3678
|
}
|
|
3658
|
-
if (
|
|
3679
|
+
if (_n(l)) {
|
|
3659
3680
|
typeof o == "number" && a.push({
|
|
3660
3681
|
type: E.literal,
|
|
3661
3682
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3664,25 +3685,25 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3664
3685
|
}
|
|
3665
3686
|
var c = l.value;
|
|
3666
3687
|
if (!(i && c in i))
|
|
3667
|
-
throw new
|
|
3688
|
+
throw new Jn(c, s);
|
|
3668
3689
|
var f = i[c];
|
|
3669
|
-
if (
|
|
3690
|
+
if (vn(l)) {
|
|
3670
3691
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3671
3692
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3672
3693
|
value: f
|
|
3673
3694
|
});
|
|
3674
3695
|
continue;
|
|
3675
3696
|
}
|
|
3676
|
-
if (
|
|
3677
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3697
|
+
if (Vt(l)) {
|
|
3698
|
+
var m = typeof l.style == "string" ? n.date[l.style] : ke(l.style) ? l.style.parsedOptions : void 0;
|
|
3678
3699
|
a.push({
|
|
3679
3700
|
type: E.literal,
|
|
3680
3701
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3681
3702
|
});
|
|
3682
3703
|
continue;
|
|
3683
3704
|
}
|
|
3684
|
-
if (
|
|
3685
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3705
|
+
if (Xt(l)) {
|
|
3706
|
+
var m = typeof l.style == "string" ? n.time[l.style] : ke(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3686
3707
|
a.push({
|
|
3687
3708
|
type: E.literal,
|
|
3688
3709
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
@@ -3690,63 +3711,63 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3690
3711
|
continue;
|
|
3691
3712
|
}
|
|
3692
3713
|
if (kt(l)) {
|
|
3693
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3714
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3694
3715
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3695
3716
|
type: E.literal,
|
|
3696
3717
|
value: r.getNumberFormat(t, m).format(f)
|
|
3697
3718
|
});
|
|
3698
3719
|
continue;
|
|
3699
3720
|
}
|
|
3700
|
-
if (
|
|
3721
|
+
if (Zt(l)) {
|
|
3701
3722
|
var d = l.children, p = l.value, S = i[p];
|
|
3702
|
-
if (!
|
|
3703
|
-
throw new
|
|
3704
|
-
var $ = pe(d, t, r, n, i, o), C = S($.map(function(
|
|
3705
|
-
return
|
|
3723
|
+
if (!Yn(S))
|
|
3724
|
+
throw new Qn(p, "function", s);
|
|
3725
|
+
var $ = pe(d, t, r, n, i, o), C = S($.map(function(P) {
|
|
3726
|
+
return P.value;
|
|
3706
3727
|
}));
|
|
3707
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3728
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(P) {
|
|
3708
3729
|
return {
|
|
3709
|
-
type: typeof
|
|
3710
|
-
value:
|
|
3730
|
+
type: typeof P == "string" ? E.literal : E.object,
|
|
3731
|
+
value: P
|
|
3711
3732
|
};
|
|
3712
3733
|
}));
|
|
3713
3734
|
}
|
|
3714
|
-
if (
|
|
3735
|
+
if (Wt(l)) {
|
|
3715
3736
|
var A = l.options[f] || l.options.other;
|
|
3716
3737
|
if (!A)
|
|
3717
|
-
throw new
|
|
3738
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3718
3739
|
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3719
3740
|
continue;
|
|
3720
3741
|
}
|
|
3721
|
-
if (
|
|
3742
|
+
if (zt(l)) {
|
|
3722
3743
|
var A = l.options["=".concat(f)];
|
|
3723
3744
|
if (!A) {
|
|
3724
3745
|
if (!Intl.PluralRules)
|
|
3725
|
-
throw new
|
|
3746
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3726
3747
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3727
|
-
`,
|
|
3748
|
+
`, Z.MISSING_INTL_API, s);
|
|
3728
3749
|
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3729
3750
|
A = l.options[R] || l.options.other;
|
|
3730
3751
|
}
|
|
3731
3752
|
if (!A)
|
|
3732
|
-
throw new
|
|
3753
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3733
3754
|
a.push.apply(a, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3734
3755
|
continue;
|
|
3735
3756
|
}
|
|
3736
3757
|
}
|
|
3737
|
-
return
|
|
3758
|
+
return qn(a);
|
|
3738
3759
|
}
|
|
3739
|
-
function
|
|
3740
|
-
return t ?
|
|
3741
|
-
return r[n] =
|
|
3760
|
+
function Kn(e, t) {
|
|
3761
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3762
|
+
return r[n] = O(O({}, e[n]), t[n] || {}), r;
|
|
3742
3763
|
}, {})) : e;
|
|
3743
3764
|
}
|
|
3744
|
-
function
|
|
3765
|
+
function ei(e, t) {
|
|
3745
3766
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3746
|
-
return r[n] =
|
|
3747
|
-
},
|
|
3767
|
+
return r[n] = Kn(e[n], t[n]), r;
|
|
3768
|
+
}, O({}, e)) : e;
|
|
3748
3769
|
}
|
|
3749
|
-
function
|
|
3770
|
+
function Ne(e) {
|
|
3750
3771
|
return {
|
|
3751
3772
|
create: function() {
|
|
3752
3773
|
return {
|
|
@@ -3760,39 +3781,39 @@ function Be(e) {
|
|
|
3760
3781
|
}
|
|
3761
3782
|
};
|
|
3762
3783
|
}
|
|
3763
|
-
function
|
|
3784
|
+
function ti(e) {
|
|
3764
3785
|
return e === void 0 && (e = {
|
|
3765
3786
|
number: {},
|
|
3766
3787
|
dateTime: {},
|
|
3767
3788
|
pluralRules: {}
|
|
3768
3789
|
}), {
|
|
3769
|
-
getNumberFormat:
|
|
3790
|
+
getNumberFormat: Pe(function() {
|
|
3770
3791
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3771
3792
|
r[n] = arguments[n];
|
|
3772
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3793
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3773
3794
|
}, {
|
|
3774
|
-
cache:
|
|
3775
|
-
strategy:
|
|
3795
|
+
cache: Ne(e.number),
|
|
3796
|
+
strategy: Be.variadic
|
|
3776
3797
|
}),
|
|
3777
|
-
getDateTimeFormat:
|
|
3798
|
+
getDateTimeFormat: Pe(function() {
|
|
3778
3799
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3779
3800
|
r[n] = arguments[n];
|
|
3780
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3801
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3781
3802
|
}, {
|
|
3782
|
-
cache:
|
|
3783
|
-
strategy:
|
|
3803
|
+
cache: Ne(e.dateTime),
|
|
3804
|
+
strategy: Be.variadic
|
|
3784
3805
|
}),
|
|
3785
|
-
getPluralRules:
|
|
3806
|
+
getPluralRules: Pe(function() {
|
|
3786
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3787
3808
|
r[n] = arguments[n];
|
|
3788
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3789
3810
|
}, {
|
|
3790
|
-
cache:
|
|
3791
|
-
strategy:
|
|
3811
|
+
cache: Ne(e.pluralRules),
|
|
3812
|
+
strategy: Be.variadic
|
|
3792
3813
|
})
|
|
3793
3814
|
};
|
|
3794
3815
|
}
|
|
3795
|
-
var
|
|
3816
|
+
var ri = (
|
|
3796
3817
|
/** @class */
|
|
3797
3818
|
function() {
|
|
3798
3819
|
function e(t, r, n, i) {
|
|
@@ -3824,13 +3845,13 @@ var ei = (
|
|
|
3824
3845
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3825
3846
|
var s = i || {};
|
|
3826
3847
|
s.formatters;
|
|
3827
|
-
var a =
|
|
3828
|
-
this.ast = e.__parse(t,
|
|
3848
|
+
var a = cn(s, ["formatters"]);
|
|
3849
|
+
this.ast = e.__parse(t, O(O({}, a), { locale: this.resolvedLocale }));
|
|
3829
3850
|
} else
|
|
3830
3851
|
this.ast = t;
|
|
3831
3852
|
if (!Array.isArray(this.ast))
|
|
3832
3853
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3833
|
-
this.formats =
|
|
3854
|
+
this.formats = ei(e.formats, n), this.formatters = i && i.formatters || ti(this.formatterCache);
|
|
3834
3855
|
}
|
|
3835
3856
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3836
3857
|
get: function() {
|
|
@@ -3843,7 +3864,7 @@ var ei = (
|
|
|
3843
3864
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3844
3865
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3845
3866
|
}
|
|
3846
|
-
}, e.__parse =
|
|
3867
|
+
}, e.__parse = Zn, e.formats = {
|
|
3847
3868
|
number: {
|
|
3848
3869
|
integer: {
|
|
3849
3870
|
maximumFractionDigits: 0
|
|
@@ -3904,7 +3925,7 @@ var ei = (
|
|
|
3904
3925
|
}, e;
|
|
3905
3926
|
}()
|
|
3906
3927
|
);
|
|
3907
|
-
function
|
|
3928
|
+
function ni(e, t) {
|
|
3908
3929
|
if (t == null)
|
|
3909
3930
|
return;
|
|
3910
3931
|
if (t in e)
|
|
@@ -3925,92 +3946,92 @@ function ti(e, t) {
|
|
|
3925
3946
|
n = void 0;
|
|
3926
3947
|
return n;
|
|
3927
3948
|
}
|
|
3928
|
-
const L = {},
|
|
3949
|
+
const L = {}, ii = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), nr = (e, t) => {
|
|
3929
3950
|
if (t == null)
|
|
3930
3951
|
return;
|
|
3931
3952
|
if (t in L && e in L[t])
|
|
3932
3953
|
return L[t][e];
|
|
3933
|
-
const r =
|
|
3954
|
+
const r = Se(t);
|
|
3934
3955
|
for (let n = 0; n < r.length; n++) {
|
|
3935
|
-
const i = r[n], o =
|
|
3956
|
+
const i = r[n], o = si(i, e);
|
|
3936
3957
|
if (o)
|
|
3937
|
-
return
|
|
3958
|
+
return ii(e, t, o);
|
|
3938
3959
|
}
|
|
3939
3960
|
};
|
|
3940
|
-
let
|
|
3941
|
-
const oe =
|
|
3942
|
-
function
|
|
3943
|
-
return
|
|
3961
|
+
let Ye;
|
|
3962
|
+
const oe = _e({});
|
|
3963
|
+
function oi(e) {
|
|
3964
|
+
return Ye[e] || null;
|
|
3944
3965
|
}
|
|
3945
|
-
function
|
|
3946
|
-
return e in
|
|
3966
|
+
function ir(e) {
|
|
3967
|
+
return e in Ye;
|
|
3947
3968
|
}
|
|
3948
|
-
function
|
|
3949
|
-
if (!
|
|
3969
|
+
function si(e, t) {
|
|
3970
|
+
if (!ir(e))
|
|
3950
3971
|
return null;
|
|
3951
|
-
const r =
|
|
3952
|
-
return
|
|
3972
|
+
const r = oi(e);
|
|
3973
|
+
return ni(r, t);
|
|
3953
3974
|
}
|
|
3954
|
-
function
|
|
3975
|
+
function ai(e) {
|
|
3955
3976
|
if (e == null)
|
|
3956
3977
|
return;
|
|
3957
|
-
const t =
|
|
3978
|
+
const t = Se(e);
|
|
3958
3979
|
for (let r = 0; r < t.length; r++) {
|
|
3959
3980
|
const n = t[r];
|
|
3960
|
-
if (
|
|
3981
|
+
if (ir(n))
|
|
3961
3982
|
return n;
|
|
3962
3983
|
}
|
|
3963
3984
|
}
|
|
3964
|
-
function
|
|
3985
|
+
function ui(e, ...t) {
|
|
3965
3986
|
delete L[e], oe.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3966
3987
|
}
|
|
3967
|
-
|
|
3988
|
+
J(
|
|
3968
3989
|
[oe],
|
|
3969
3990
|
([e]) => Object.keys(e)
|
|
3970
3991
|
);
|
|
3971
|
-
oe.subscribe((e) =>
|
|
3992
|
+
oe.subscribe((e) => Ye = e);
|
|
3972
3993
|
const me = {};
|
|
3973
|
-
function
|
|
3994
|
+
function hi(e, t) {
|
|
3974
3995
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3975
3996
|
}
|
|
3976
|
-
function
|
|
3997
|
+
function or(e) {
|
|
3977
3998
|
return me[e];
|
|
3978
3999
|
}
|
|
3979
|
-
function
|
|
3980
|
-
return
|
|
3981
|
-
const r =
|
|
4000
|
+
function li(e) {
|
|
4001
|
+
return Se(e).map((t) => {
|
|
4002
|
+
const r = or(t);
|
|
3982
4003
|
return [t, r ? [...r] : []];
|
|
3983
4004
|
}).filter(([, t]) => t.length > 0);
|
|
3984
4005
|
}
|
|
3985
|
-
function
|
|
3986
|
-
return e == null ? !1 :
|
|
4006
|
+
function Qe(e) {
|
|
4007
|
+
return e == null ? !1 : Se(e).some(
|
|
3987
4008
|
(t) => {
|
|
3988
4009
|
var r;
|
|
3989
|
-
return (r =
|
|
4010
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
3990
4011
|
}
|
|
3991
4012
|
);
|
|
3992
4013
|
}
|
|
3993
|
-
function
|
|
4014
|
+
function ci(e, t) {
|
|
3994
4015
|
return Promise.all(
|
|
3995
|
-
t.map((n) => (
|
|
3996
|
-
).then((n) =>
|
|
3997
|
-
}
|
|
3998
|
-
const
|
|
3999
|
-
function
|
|
4000
|
-
if (!
|
|
4001
|
-
return e in
|
|
4002
|
-
const t =
|
|
4003
|
-
return
|
|
4016
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
4017
|
+
).then((n) => ui(e, ...n));
|
|
4018
|
+
}
|
|
4019
|
+
const Y = {};
|
|
4020
|
+
function sr(e) {
|
|
4021
|
+
if (!Qe(e))
|
|
4022
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
4023
|
+
const t = li(e);
|
|
4024
|
+
return Y[e] = Promise.all(
|
|
4004
4025
|
t.map(
|
|
4005
|
-
([r, n]) =>
|
|
4026
|
+
([r, n]) => ci(r, n)
|
|
4006
4027
|
)
|
|
4007
4028
|
).then(() => {
|
|
4008
|
-
if (
|
|
4009
|
-
return
|
|
4010
|
-
delete
|
|
4011
|
-
}),
|
|
4029
|
+
if (Qe(e))
|
|
4030
|
+
return sr(e);
|
|
4031
|
+
delete Y[e];
|
|
4032
|
+
}), Y[e];
|
|
4012
4033
|
}
|
|
4013
|
-
const
|
|
4034
|
+
const fi = {
|
|
4014
4035
|
number: {
|
|
4015
4036
|
scientific: { notation: "scientific" },
|
|
4016
4037
|
engineering: { notation: "engineering" },
|
|
@@ -4039,135 +4060,135 @@ const li = {
|
|
|
4039
4060
|
timeZoneName: "short"
|
|
4040
4061
|
}
|
|
4041
4062
|
}
|
|
4042
|
-
},
|
|
4063
|
+
}, pi = {
|
|
4043
4064
|
fallbackLocale: null,
|
|
4044
4065
|
loadingDelay: 200,
|
|
4045
|
-
formats:
|
|
4066
|
+
formats: fi,
|
|
4046
4067
|
warnOnMissingMessages: !0,
|
|
4047
4068
|
handleMissingMessage: void 0,
|
|
4048
4069
|
ignoreTag: !0
|
|
4049
|
-
},
|
|
4050
|
-
function
|
|
4051
|
-
return
|
|
4070
|
+
}, mi = pi;
|
|
4071
|
+
function Q() {
|
|
4072
|
+
return mi;
|
|
4052
4073
|
}
|
|
4053
|
-
const
|
|
4054
|
-
var
|
|
4074
|
+
const Ie = _e(!1);
|
|
4075
|
+
var di = Object.defineProperty, bi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => {
|
|
4055
4076
|
for (var r in t || (t = {}))
|
|
4056
|
-
|
|
4057
|
-
if (
|
|
4058
|
-
for (var r of
|
|
4059
|
-
|
|
4077
|
+
yi.call(t, r) && xt(e, r, t[r]);
|
|
4078
|
+
if (_t)
|
|
4079
|
+
for (var r of _t(t))
|
|
4080
|
+
vi.call(t, r) && xt(e, r, t[r]);
|
|
4060
4081
|
return e;
|
|
4061
|
-
},
|
|
4062
|
-
let
|
|
4063
|
-
const
|
|
4064
|
-
function
|
|
4082
|
+
}, xi = (e, t) => bi(e, gi(t));
|
|
4083
|
+
let Je;
|
|
4084
|
+
const ge = _e(null);
|
|
4085
|
+
function Et(e) {
|
|
4065
4086
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4066
4087
|
}
|
|
4067
|
-
function
|
|
4068
|
-
const r =
|
|
4069
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4088
|
+
function Se(e, t = Q().fallbackLocale) {
|
|
4089
|
+
const r = Et(e);
|
|
4090
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4070
4091
|
}
|
|
4071
4092
|
function U() {
|
|
4072
|
-
return
|
|
4093
|
+
return Je ?? void 0;
|
|
4073
4094
|
}
|
|
4074
|
-
|
|
4075
|
-
|
|
4095
|
+
ge.subscribe((e) => {
|
|
4096
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4076
4097
|
});
|
|
4077
|
-
const
|
|
4078
|
-
if (e &&
|
|
4079
|
-
const { loadingDelay: t } =
|
|
4098
|
+
const Ei = (e) => {
|
|
4099
|
+
if (e && ai(e) && Qe(e)) {
|
|
4100
|
+
const { loadingDelay: t } = Q();
|
|
4080
4101
|
let r;
|
|
4081
4102
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4082
|
-
() =>
|
|
4103
|
+
() => Ie.set(!0),
|
|
4083
4104
|
t
|
|
4084
|
-
) :
|
|
4085
|
-
|
|
4105
|
+
) : Ie.set(!0), sr(e).then(() => {
|
|
4106
|
+
ge.set(e);
|
|
4086
4107
|
}).finally(() => {
|
|
4087
|
-
clearTimeout(r),
|
|
4108
|
+
clearTimeout(r), Ie.set(!1);
|
|
4088
4109
|
});
|
|
4089
4110
|
}
|
|
4090
|
-
return
|
|
4091
|
-
}, se =
|
|
4092
|
-
set:
|
|
4093
|
-
}),
|
|
4111
|
+
return ge.set(e);
|
|
4112
|
+
}, se = xi(_i({}, ge), {
|
|
4113
|
+
set: Ei
|
|
4114
|
+
}), Te = (e) => {
|
|
4094
4115
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4095
4116
|
return (n) => {
|
|
4096
4117
|
const i = JSON.stringify(n);
|
|
4097
4118
|
return i in t ? t[i] : t[i] = e(n);
|
|
4098
4119
|
};
|
|
4099
4120
|
};
|
|
4100
|
-
var
|
|
4121
|
+
var Si = Object.defineProperty, ye = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4101
4122
|
for (var r in t || (t = {}))
|
|
4102
|
-
|
|
4103
|
-
if (
|
|
4104
|
-
for (var r of
|
|
4105
|
-
|
|
4123
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
4124
|
+
if (ye)
|
|
4125
|
+
for (var r of ye(t))
|
|
4126
|
+
ur.call(t, r) && St(e, r, t[r]);
|
|
4106
4127
|
return e;
|
|
4107
|
-
},
|
|
4128
|
+
}, q = (e, t) => {
|
|
4108
4129
|
var r = {};
|
|
4109
4130
|
for (var n in e)
|
|
4110
|
-
|
|
4111
|
-
if (e != null &&
|
|
4112
|
-
for (var n of
|
|
4113
|
-
t.indexOf(n) < 0 &&
|
|
4131
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4132
|
+
if (e != null && ye)
|
|
4133
|
+
for (var n of ye(e))
|
|
4134
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4114
4135
|
return r;
|
|
4115
4136
|
};
|
|
4116
|
-
const
|
|
4117
|
-
const { formats: r } =
|
|
4137
|
+
const re = (e, t) => {
|
|
4138
|
+
const { formats: r } = Q();
|
|
4118
4139
|
if (e in r && t in r[e])
|
|
4119
4140
|
return r[e][t];
|
|
4120
4141
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4121
|
-
},
|
|
4142
|
+
}, Ti = Te(
|
|
4122
4143
|
(e) => {
|
|
4123
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4144
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4124
4145
|
if (r == null)
|
|
4125
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4126
|
-
return n && (i =
|
|
4147
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4127
4148
|
}
|
|
4128
|
-
),
|
|
4149
|
+
), Hi = Te(
|
|
4129
4150
|
(e) => {
|
|
4130
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4131
4152
|
if (r == null)
|
|
4132
4153
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4133
|
-
return n ? i =
|
|
4154
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4134
4155
|
}
|
|
4135
|
-
),
|
|
4156
|
+
), Ai = Te(
|
|
4136
4157
|
(e) => {
|
|
4137
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4158
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4138
4159
|
if (r == null)
|
|
4139
4160
|
throw new Error(
|
|
4140
4161
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4141
4162
|
);
|
|
4142
|
-
return n ? i =
|
|
4163
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4143
4164
|
}
|
|
4144
|
-
),
|
|
4165
|
+
), wi = (e = {}) => {
|
|
4145
4166
|
var t = e, {
|
|
4146
4167
|
locale: r = U()
|
|
4147
|
-
} = t, n =
|
|
4168
|
+
} = t, n = q(t, [
|
|
4148
4169
|
"locale"
|
|
4149
4170
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4171
|
+
return Ti(Ke({ locale: r }, n));
|
|
4172
|
+
}, Pi = (e = {}) => {
|
|
4152
4173
|
var t = e, {
|
|
4153
4174
|
locale: r = U()
|
|
4154
|
-
} = t, n =
|
|
4175
|
+
} = t, n = q(t, [
|
|
4155
4176
|
"locale"
|
|
4156
4177
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4178
|
+
return Hi(Ke({ locale: r }, n));
|
|
4179
|
+
}, Bi = (e = {}) => {
|
|
4159
4180
|
var t = e, {
|
|
4160
4181
|
locale: r = U()
|
|
4161
|
-
} = t, n =
|
|
4182
|
+
} = t, n = q(t, [
|
|
4162
4183
|
"locale"
|
|
4163
4184
|
]);
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4185
|
+
return Ai(Ke({ locale: r }, n));
|
|
4186
|
+
}, Oi = Te(
|
|
4166
4187
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4167
|
-
(e, t = U()) => new
|
|
4168
|
-
ignoreTag:
|
|
4188
|
+
(e, t = U()) => new ri(e, t, Q().formats, {
|
|
4189
|
+
ignoreTag: Q().ignoreTag
|
|
4169
4190
|
})
|
|
4170
|
-
),
|
|
4191
|
+
), Ni = (e, t = {}) => {
|
|
4171
4192
|
var r, n, i, o;
|
|
4172
4193
|
let s = t;
|
|
4173
4194
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4180,9 +4201,9 @@ const ne = (e, t) => {
|
|
|
4180
4201
|
throw new Error(
|
|
4181
4202
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4182
4203
|
);
|
|
4183
|
-
let l =
|
|
4204
|
+
let l = nr(e, h);
|
|
4184
4205
|
if (!l)
|
|
4185
|
-
l = (o = (i = (n = (r =
|
|
4206
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4186
4207
|
else if (typeof l != "string")
|
|
4187
4208
|
return console.warn(
|
|
4188
4209
|
`[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.`
|
|
@@ -4191,7 +4212,7 @@ const ne = (e, t) => {
|
|
|
4191
4212
|
return l;
|
|
4192
4213
|
let c = l;
|
|
4193
4214
|
try {
|
|
4194
|
-
c =
|
|
4215
|
+
c = Oi(l, h).format(a);
|
|
4195
4216
|
} catch (f) {
|
|
4196
4217
|
f instanceof Error && console.warn(
|
|
4197
4218
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4199,22 +4220,22 @@ const ne = (e, t) => {
|
|
|
4199
4220
|
);
|
|
4200
4221
|
}
|
|
4201
4222
|
return c;
|
|
4202
|
-
},
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4223
|
+
}, Ii = (e, t) => Bi(t).format(e), Ci = (e, t) => Pi(t).format(e), Li = (e, t) => wi(t).format(e), Mi = (e, t = U()) => nr(e, t);
|
|
4224
|
+
J([se, oe], () => Ni);
|
|
4225
|
+
J([se], () => Ii);
|
|
4226
|
+
J([se], () => Ci);
|
|
4227
|
+
J([se], () => Li);
|
|
4228
|
+
J([se, oe], () => Mi);
|
|
4208
4229
|
window.emWidgets = { topic: Wr };
|
|
4209
|
-
const
|
|
4230
|
+
const Tt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4210
4231
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4211
|
-
function
|
|
4232
|
+
function $i(e, t) {
|
|
4212
4233
|
if (e) {
|
|
4213
4234
|
const r = document.createElement("style");
|
|
4214
4235
|
r.innerHTML = t, e.appendChild(r);
|
|
4215
4236
|
}
|
|
4216
4237
|
}
|
|
4217
|
-
function
|
|
4238
|
+
function Ri(e, t) {
|
|
4218
4239
|
if (!e || !t)
|
|
4219
4240
|
return;
|
|
4220
4241
|
const r = new URL(t);
|
|
@@ -4225,7 +4246,7 @@ function Mi(e, t) {
|
|
|
4225
4246
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4226
4247
|
});
|
|
4227
4248
|
}
|
|
4228
|
-
function
|
|
4249
|
+
function Ui(e, t, r) {
|
|
4229
4250
|
if (window.emMessageBus) {
|
|
4230
4251
|
const n = document.createElement("style");
|
|
4231
4252
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4233,24 +4254,24 @@ function $i(e, t, r) {
|
|
|
4233
4254
|
});
|
|
4234
4255
|
}
|
|
4235
4256
|
}
|
|
4236
|
-
function
|
|
4237
|
-
|
|
4257
|
+
function Di(e) {
|
|
4258
|
+
fr(e, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4238
4259
|
}
|
|
4239
|
-
function
|
|
4260
|
+
function Ht(e, t, r) {
|
|
4240
4261
|
const n = e.slice();
|
|
4241
4262
|
return n[24] = t[r], n;
|
|
4242
4263
|
}
|
|
4243
|
-
function
|
|
4264
|
+
function At(e, t, r) {
|
|
4244
4265
|
const n = e.slice();
|
|
4245
4266
|
return n[21] = t[r], n;
|
|
4246
4267
|
}
|
|
4247
|
-
function
|
|
4268
|
+
function Gi(e) {
|
|
4248
4269
|
let t, r = de(
|
|
4249
4270
|
/*notificationsData*/
|
|
4250
4271
|
e[1]
|
|
4251
4272
|
), n = [];
|
|
4252
4273
|
for (let i = 0; i < r.length; i += 1)
|
|
4253
|
-
n[i] = Ht(
|
|
4274
|
+
n[i] = wt(Ht(e, r, i));
|
|
4254
4275
|
return {
|
|
4255
4276
|
c() {
|
|
4256
4277
|
t = T("div");
|
|
@@ -4274,8 +4295,8 @@ function Ui(e) {
|
|
|
4274
4295
|
);
|
|
4275
4296
|
let s;
|
|
4276
4297
|
for (s = 0; s < r.length; s += 1) {
|
|
4277
|
-
const a =
|
|
4278
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4298
|
+
const a = Ht(i, r, s);
|
|
4299
|
+
n[s] ? n[s].p(a, o) : (n[s] = wt(a), n[s].c(), n[s].m(t, null));
|
|
4279
4300
|
}
|
|
4280
4301
|
for (; s < n.length; s += 1)
|
|
4281
4302
|
n[s].d(1);
|
|
@@ -4283,14 +4304,14 @@ function Ui(e) {
|
|
|
4283
4304
|
}
|
|
4284
4305
|
},
|
|
4285
4306
|
d(i) {
|
|
4286
|
-
i &&
|
|
4307
|
+
i && I(t), Nt(n, i);
|
|
4287
4308
|
}
|
|
4288
4309
|
};
|
|
4289
4310
|
}
|
|
4290
|
-
function
|
|
4311
|
+
function Fi(e) {
|
|
4291
4312
|
let t, r, n = de({ length: 3 }), i = [];
|
|
4292
4313
|
for (let o = 0; o < n.length; o += 1)
|
|
4293
|
-
i[o] = At(
|
|
4314
|
+
i[o] = Pt(At(e, n, o));
|
|
4294
4315
|
return {
|
|
4295
4316
|
c() {
|
|
4296
4317
|
t = T("div"), r = T("div");
|
|
@@ -4299,7 +4320,7 @@ function Di(e) {
|
|
|
4299
4320
|
x(r, "class", "skeletonWrapper"), x(t, "class", "skeletonContainer");
|
|
4300
4321
|
},
|
|
4301
4322
|
m(o, s) {
|
|
4302
|
-
M(o, t, s),
|
|
4323
|
+
M(o, t, s), w(t, r);
|
|
4303
4324
|
for (let a = 0; a < i.length; a += 1)
|
|
4304
4325
|
i[a] && i[a].m(r, null);
|
|
4305
4326
|
},
|
|
@@ -4309,8 +4330,8 @@ function Di(e) {
|
|
|
4309
4330
|
n = de({ length: 3 });
|
|
4310
4331
|
let a;
|
|
4311
4332
|
for (a = 0; a < n.length; a += 1) {
|
|
4312
|
-
const h =
|
|
4313
|
-
i[a] ? i[a].p(h, s) : (i[a] =
|
|
4333
|
+
const h = At(o, n, a);
|
|
4334
|
+
i[a] ? i[a].p(h, s) : (i[a] = Pt(h), i[a].c(), i[a].m(r, null));
|
|
4314
4335
|
}
|
|
4315
4336
|
for (; a < i.length; a += 1)
|
|
4316
4337
|
i[a].d(1);
|
|
@@ -4318,11 +4339,11 @@ function Di(e) {
|
|
|
4318
4339
|
}
|
|
4319
4340
|
},
|
|
4320
4341
|
d(o) {
|
|
4321
|
-
o &&
|
|
4342
|
+
o && I(t), Nt(i, o);
|
|
4322
4343
|
}
|
|
4323
4344
|
};
|
|
4324
4345
|
}
|
|
4325
|
-
function
|
|
4346
|
+
function wt(e) {
|
|
4326
4347
|
let t, r, n, i, o, s, a, h = (
|
|
4327
4348
|
/*notification*/
|
|
4328
4349
|
e[24].title + ""
|
|
@@ -4332,9 +4353,9 @@ function Ht(e) {
|
|
|
4332
4353
|
), m;
|
|
4333
4354
|
return {
|
|
4334
4355
|
c() {
|
|
4335
|
-
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u =
|
|
4356
|
+
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u = It(h), l = le(), c = T("p"), m = le(), x(n, "class", "PlayerAccountNotificationIcon"), x(n, "width", "24px"), x(n, "height", "24px"), tt(n.src, i = /*notification*/
|
|
4336
4357
|
e[24].icon) || x(n, "src", i), x(n, "alt", o = /*notification*/
|
|
4337
|
-
e[24].title), x(a, "class", "PlayerAccountNotificationTitle"), x(r, "class", "PlayerAccountNotificationBoxHeader"), x(c, "class", "PlayerAccountNotificationText"), x(t, "class", "PlayerAccountNotificationBox"),
|
|
4358
|
+
e[24].title), x(a, "class", "PlayerAccountNotificationTitle"), x(r, "class", "PlayerAccountNotificationBoxHeader"), x(c, "class", "PlayerAccountNotificationText"), x(t, "class", "PlayerAccountNotificationBox"), rt(
|
|
4338
4359
|
t,
|
|
4339
4360
|
"background",
|
|
4340
4361
|
/*notification*/
|
|
@@ -4342,19 +4363,19 @@ function Ht(e) {
|
|
|
4342
4363
|
);
|
|
4343
4364
|
},
|
|
4344
4365
|
m(d, p) {
|
|
4345
|
-
M(d, t, p),
|
|
4366
|
+
M(d, t, p), w(t, r), w(r, n), w(r, s), w(r, a), w(a, u), w(t, l), w(t, c), c.innerHTML = f, w(t, m);
|
|
4346
4367
|
},
|
|
4347
4368
|
p(d, p) {
|
|
4348
4369
|
p & /*notificationsData*/
|
|
4349
|
-
2 && !
|
|
4370
|
+
2 && !tt(n.src, i = /*notification*/
|
|
4350
4371
|
d[24].icon) && x(n, "src", i), p & /*notificationsData*/
|
|
4351
4372
|
2 && o !== (o = /*notification*/
|
|
4352
4373
|
d[24].title) && x(n, "alt", o), p & /*notificationsData*/
|
|
4353
4374
|
2 && h !== (h = /*notification*/
|
|
4354
|
-
d[24].title + "") &&
|
|
4375
|
+
d[24].title + "") && br(u, h), p & /*notificationsData*/
|
|
4355
4376
|
2 && f !== (f = /*notification*/
|
|
4356
4377
|
d[24].description + "") && (c.innerHTML = f), p & /*notificationsData*/
|
|
4357
|
-
2 &&
|
|
4378
|
+
2 && rt(
|
|
4358
4379
|
t,
|
|
4359
4380
|
"background",
|
|
4360
4381
|
/*notification*/
|
|
@@ -4362,11 +4383,11 @@ function Ht(e) {
|
|
|
4362
4383
|
);
|
|
4363
4384
|
},
|
|
4364
4385
|
d(d) {
|
|
4365
|
-
d &&
|
|
4386
|
+
d && I(t);
|
|
4366
4387
|
}
|
|
4367
4388
|
};
|
|
4368
4389
|
}
|
|
4369
|
-
function
|
|
4390
|
+
function ji(e) {
|
|
4370
4391
|
let t;
|
|
4371
4392
|
return {
|
|
4372
4393
|
c() {
|
|
@@ -4383,11 +4404,11 @@ function Gi(e) {
|
|
|
4383
4404
|
},
|
|
4384
4405
|
p: H,
|
|
4385
4406
|
d(r) {
|
|
4386
|
-
r &&
|
|
4407
|
+
r && I(t);
|
|
4387
4408
|
}
|
|
4388
4409
|
};
|
|
4389
4410
|
}
|
|
4390
|
-
function
|
|
4411
|
+
function ki(e) {
|
|
4391
4412
|
let t;
|
|
4392
4413
|
return {
|
|
4393
4414
|
c() {
|
|
@@ -4398,16 +4419,16 @@ function Fi(e) {
|
|
|
4398
4419
|
},
|
|
4399
4420
|
p: H,
|
|
4400
4421
|
d(r) {
|
|
4401
|
-
r &&
|
|
4422
|
+
r && I(t);
|
|
4402
4423
|
}
|
|
4403
4424
|
};
|
|
4404
4425
|
}
|
|
4405
|
-
function
|
|
4426
|
+
function Pt(e) {
|
|
4406
4427
|
let t, r;
|
|
4407
4428
|
function n(s, a) {
|
|
4408
4429
|
return (
|
|
4409
4430
|
/*isMobile*/
|
|
4410
|
-
s[3] ?
|
|
4431
|
+
s[3] ? ji : ki
|
|
4411
4432
|
);
|
|
4412
4433
|
}
|
|
4413
4434
|
let o = n(e)(e);
|
|
@@ -4416,29 +4437,29 @@ function At(e) {
|
|
|
4416
4437
|
t = T("div"), o.c(), r = le(), x(t, "class", "skeletonNotification");
|
|
4417
4438
|
},
|
|
4418
4439
|
m(s, a) {
|
|
4419
|
-
M(s, t, a), o.m(t, null),
|
|
4440
|
+
M(s, t, a), o.m(t, null), w(t, r);
|
|
4420
4441
|
},
|
|
4421
4442
|
p(s, a) {
|
|
4422
4443
|
o.p(s, a);
|
|
4423
4444
|
},
|
|
4424
4445
|
d(s) {
|
|
4425
|
-
s &&
|
|
4446
|
+
s && I(t), o.d();
|
|
4426
4447
|
}
|
|
4427
4448
|
};
|
|
4428
4449
|
}
|
|
4429
|
-
function
|
|
4450
|
+
function Vi(e) {
|
|
4430
4451
|
let t;
|
|
4431
4452
|
function r(o, s) {
|
|
4432
4453
|
if (
|
|
4433
4454
|
/*skeletonLoading*/
|
|
4434
4455
|
o[2]
|
|
4435
4456
|
)
|
|
4436
|
-
return
|
|
4457
|
+
return Fi;
|
|
4437
4458
|
if (
|
|
4438
4459
|
/*notificationsData*/
|
|
4439
4460
|
o[1]?.length
|
|
4440
4461
|
)
|
|
4441
|
-
return
|
|
4462
|
+
return Gi;
|
|
4442
4463
|
}
|
|
4443
4464
|
let n = r(e), i = n && n(e);
|
|
4444
4465
|
return {
|
|
@@ -4454,23 +4475,23 @@ function ki(e) {
|
|
|
4454
4475
|
i: H,
|
|
4455
4476
|
o: H,
|
|
4456
4477
|
d(o) {
|
|
4457
|
-
o &&
|
|
4478
|
+
o && I(t), i && i.d(), e[13](null);
|
|
4458
4479
|
}
|
|
4459
4480
|
};
|
|
4460
4481
|
}
|
|
4461
|
-
function
|
|
4462
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, m = window.navigator.userAgent, d =
|
|
4482
|
+
function Xi(e, t, r) {
|
|
4483
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, m = window.navigator.userAgent, d = Tt(m) !== "PC", p = [], S = [], $ = A();
|
|
4463
4484
|
const C = window.matchMedia("(min-width: 768px)");
|
|
4464
4485
|
function A() {
|
|
4465
|
-
const y =
|
|
4486
|
+
const y = Tt(m);
|
|
4466
4487
|
if (y)
|
|
4467
4488
|
return y === "PC" ? "dk" : "mtWeb";
|
|
4468
4489
|
}
|
|
4469
4490
|
const R = () => {
|
|
4470
4491
|
const y = new URL(`${i}/${n}/support-information`);
|
|
4471
4492
|
y.searchParams.append("env", o), y.searchParams.append("userRoles", s), y.searchParams.append("device", $), fetch(y.href).then((G) => G.json()).then((G) => {
|
|
4472
|
-
G.length && (r(1, p = G[0].children), p?.forEach((
|
|
4473
|
-
S.length && (
|
|
4493
|
+
G.length && (r(1, p = G[0].children), p?.forEach((hr) => {
|
|
4494
|
+
S.length && (hr.backgroundColor = S[0], S.shift());
|
|
4474
4495
|
}));
|
|
4475
4496
|
}).catch((G) => {
|
|
4476
4497
|
console.error(G);
|
|
@@ -4482,13 +4503,13 @@ function ji(e, t, r) {
|
|
|
4482
4503
|
1e3
|
|
4483
4504
|
);
|
|
4484
4505
|
});
|
|
4485
|
-
},
|
|
4506
|
+
}, P = () => {
|
|
4486
4507
|
a.replace(" ", ""), S = a.split(",");
|
|
4487
4508
|
};
|
|
4488
|
-
|
|
4509
|
+
vr(() => () => {
|
|
4489
4510
|
});
|
|
4490
4511
|
function D(y) {
|
|
4491
|
-
|
|
4512
|
+
Ce[y ? "unshift" : "push"](() => {
|
|
4492
4513
|
c = y, r(0, c);
|
|
4493
4514
|
});
|
|
4494
4515
|
}
|
|
@@ -4496,12 +4517,12 @@ function ji(e, t, r) {
|
|
|
4496
4517
|
"lang" in y && r(5, n = y.lang), "cmsendpoint" in y && r(6, i = y.cmsendpoint), "env" in y && r(7, o = y.env), "userroles" in y && r(8, s = y.userroles), "customnotif" in y && r(9, a = y.customnotif), "clientstyling" in y && r(10, h = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, l = y.mbsource);
|
|
4497
4518
|
}, e.$$.update = () => {
|
|
4498
4519
|
e.$$.dirty & /*customnotif*/
|
|
4499
|
-
512 && a &&
|
|
4500
|
-
2 && p &&
|
|
4520
|
+
512 && a && P(), e.$$.dirty & /*notificationsData*/
|
|
4521
|
+
2 && p && P(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4501
4522
|
480 && s && i && o && n && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4502
|
-
1025 && h && c &&
|
|
4503
|
-
2049 && u && c &&
|
|
4504
|
-
4097 && l && c &&
|
|
4523
|
+
1025 && h && c && $i(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4524
|
+
2049 && u && c && Ri(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4525
|
+
4097 && l && c && Ui(c, `${l}.Style`);
|
|
4505
4526
|
}, [
|
|
4506
4527
|
c,
|
|
4507
4528
|
p,
|
|
@@ -4519,14 +4540,14 @@ function ji(e, t, r) {
|
|
|
4519
4540
|
D
|
|
4520
4541
|
];
|
|
4521
4542
|
}
|
|
4522
|
-
class
|
|
4543
|
+
class Wi extends Nr {
|
|
4523
4544
|
constructor(t) {
|
|
4524
|
-
super(),
|
|
4545
|
+
super(), Br(
|
|
4525
4546
|
this,
|
|
4526
4547
|
t,
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4548
|
+
Xi,
|
|
4549
|
+
Vi,
|
|
4550
|
+
Ot,
|
|
4530
4551
|
{
|
|
4531
4552
|
lang: 5,
|
|
4532
4553
|
cmsendpoint: 6,
|
|
@@ -4537,7 +4558,7 @@ class Vi extends Nr {
|
|
|
4537
4558
|
clientstylingurl: 11,
|
|
4538
4559
|
mbsource: 12
|
|
4539
4560
|
},
|
|
4540
|
-
|
|
4561
|
+
Di
|
|
4541
4562
|
);
|
|
4542
4563
|
}
|
|
4543
4564
|
get lang() {
|
|
@@ -4589,7 +4610,7 @@ class Vi extends Nr {
|
|
|
4589
4610
|
this.$$set({ mbsource: t }), B();
|
|
4590
4611
|
}
|
|
4591
4612
|
}
|
|
4592
|
-
|
|
4613
|
+
Or(Wi, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4593
4614
|
export {
|
|
4594
|
-
|
|
4615
|
+
Wi as P
|
|
4595
4616
|
};
|