@everymatrix/player-panic-button 1.56.0 → 1.56.2
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/{PlayerPanicButton-CprVufCa.js → PlayerPanicButton-CMxIa9tY.js} +619 -566
- package/components/{PlayerPanicButton-CX8hzfH6.js → PlayerPanicButton-XcPPb-PX.js} +740 -687
- package/components/PlayerPanicButton-zVpAbTil.cjs +18 -0
- package/es2015/player-panic-button.cjs +1 -1
- package/es2015/player-panic-button.js +1 -1
- package/esnext/player-panic-button.js +1 -1
- package/package.json +1 -1
- package/components/PlayerPanicButton-BF-dgO92.cjs +0 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function T() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Et(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function te(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Et);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ke(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _t(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function St(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,21 +27,22 @@ function xt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(St(t, r));
|
|
32
32
|
}
|
|
33
33
|
function ae(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = sr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = J("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, ar(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!e)
|
|
43
|
+
function sr(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -49,39 +50,39 @@ function rr(e) {
|
|
|
49
50
|
t
|
|
50
51
|
) : e.ownerDocument;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function ar(e, t) {
|
|
53
54
|
return ae(
|
|
54
55
|
/** @type {Document} */
|
|
55
56
|
e.head || e,
|
|
56
57
|
t
|
|
57
58
|
), t.sheet;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function Bt(e, t, r) {
|
|
60
61
|
e.insertBefore(t, r || null);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Ve(e) {
|
|
63
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
65
|
}
|
|
65
66
|
function J(e) {
|
|
66
67
|
return document.createElement(e);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function ur(e) {
|
|
69
70
|
return document.createTextNode(e);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function L(e, t, r) {
|
|
72
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function hr(e) {
|
|
75
76
|
return Array.from(e.childNodes);
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function lr(e, t) {
|
|
78
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
79
80
|
t);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function Ye(e, t, r) {
|
|
82
83
|
e.classList.toggle(t, !!r);
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function cr(e) {
|
|
85
86
|
const t = {};
|
|
86
87
|
return e.childNodes.forEach(
|
|
87
88
|
/** @param {Element} node */
|
|
@@ -94,22 +95,23 @@ let q;
|
|
|
94
95
|
function Y(e) {
|
|
95
96
|
q = e;
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
-
if (!q)
|
|
98
|
+
function fr() {
|
|
99
|
+
if (!q)
|
|
100
|
+
throw new Error("Function called outside component initialization");
|
|
99
101
|
return q;
|
|
100
102
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
+
function pr(e) {
|
|
104
|
+
fr().$$.on_mount.push(e);
|
|
103
105
|
}
|
|
104
106
|
const U = [], fe = [];
|
|
105
|
-
let
|
|
106
|
-
const
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let F = [];
|
|
108
|
+
const qe = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
109
|
+
let Pe = !1;
|
|
110
|
+
function dr() {
|
|
111
|
+
Pe || (Pe = !0, mr.then(H));
|
|
110
112
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
113
|
+
function Ae(e) {
|
|
114
|
+
F.push(e);
|
|
113
115
|
}
|
|
114
116
|
const xe = /* @__PURE__ */ new Set();
|
|
115
117
|
let R = 0;
|
|
@@ -121,52 +123,53 @@ function H() {
|
|
|
121
123
|
try {
|
|
122
124
|
for (; R < U.length; ) {
|
|
123
125
|
const t = U[R];
|
|
124
|
-
R++, Y(t),
|
|
126
|
+
R++, Y(t), br(t.$$);
|
|
125
127
|
}
|
|
126
128
|
} catch (t) {
|
|
127
129
|
throw U.length = 0, R = 0, t;
|
|
128
130
|
}
|
|
129
|
-
for (Y(null), U.length = 0, R = 0; fe.length; )
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
for (Y(null), U.length = 0, R = 0; fe.length; )
|
|
132
|
+
fe.pop()();
|
|
133
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
134
|
+
const r = F[t];
|
|
132
135
|
xe.has(r) || (xe.add(r), r());
|
|
133
136
|
}
|
|
134
|
-
|
|
137
|
+
F.length = 0;
|
|
135
138
|
} while (U.length);
|
|
136
|
-
for (;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
for (; qe.length; )
|
|
140
|
+
qe.pop()();
|
|
141
|
+
Pe = !1, xe.clear(), Y(e);
|
|
139
142
|
}
|
|
140
|
-
function
|
|
143
|
+
function br(e) {
|
|
141
144
|
if (e.fragment !== null) {
|
|
142
145
|
e.update(), te(e.before_update);
|
|
143
146
|
const t = e.dirty;
|
|
144
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
147
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
|
-
function
|
|
150
|
+
function gr(e) {
|
|
148
151
|
const t = [], r = [];
|
|
149
|
-
|
|
152
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
150
153
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
153
|
-
e && e.i && (
|
|
154
|
+
const yr = /* @__PURE__ */ new Set();
|
|
155
|
+
function vr(e, t) {
|
|
156
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
154
157
|
}
|
|
155
|
-
function
|
|
158
|
+
function xr(e, t, r) {
|
|
156
159
|
const { fragment: n, after_update: i } = e.$$;
|
|
157
|
-
n && n.m(t, r),
|
|
158
|
-
const o = e.$$.on_mount.map(
|
|
160
|
+
n && n.m(t, r), Ae(() => {
|
|
161
|
+
const o = e.$$.on_mount.map(Et).filter(ke);
|
|
159
162
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
160
|
-
}), i.forEach(
|
|
163
|
+
}), i.forEach(Ae);
|
|
161
164
|
}
|
|
162
|
-
function
|
|
165
|
+
function Er(e, t) {
|
|
163
166
|
const r = e.$$;
|
|
164
|
-
r.fragment !== null && (
|
|
167
|
+
r.fragment !== null && (gr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
165
168
|
}
|
|
166
|
-
function
|
|
167
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
|
169
|
+
function _r(e, t) {
|
|
170
|
+
e.$$.dirty[0] === -1 && (U.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
168
171
|
}
|
|
169
|
-
function
|
|
172
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
170
173
|
const u = q;
|
|
171
174
|
Y(e);
|
|
172
175
|
const h = e.$$ = {
|
|
@@ -176,7 +179,7 @@ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
176
179
|
props: o,
|
|
177
180
|
update: T,
|
|
178
181
|
not_equal: i,
|
|
179
|
-
bound:
|
|
182
|
+
bound: Je(),
|
|
180
183
|
// lifecycle
|
|
181
184
|
on_mount: [],
|
|
182
185
|
on_destroy: [],
|
|
@@ -185,28 +188,28 @@ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
188
|
after_update: [],
|
|
186
189
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
187
190
|
// everything else
|
|
188
|
-
callbacks:
|
|
189
|
-
dirty:
|
|
191
|
+
callbacks: Je(),
|
|
192
|
+
dirty: s,
|
|
190
193
|
skip_bound: !1,
|
|
191
194
|
root: t.target || u.$$.root
|
|
192
195
|
};
|
|
193
|
-
|
|
196
|
+
a && a(h.root);
|
|
194
197
|
let l = !1;
|
|
195
198
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
196
|
-
const
|
|
197
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] =
|
|
199
|
+
const y = m.length ? m[0] : f;
|
|
200
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && _r(e, c)), f;
|
|
198
201
|
}) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
199
202
|
if (t.hydrate) {
|
|
200
|
-
const c =
|
|
201
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
203
|
+
const c = hr(t.target);
|
|
204
|
+
h.fragment && h.fragment.l(c), c.forEach(Ve);
|
|
202
205
|
} else
|
|
203
206
|
h.fragment && h.fragment.c();
|
|
204
|
-
t.intro &&
|
|
207
|
+
t.intro && vr(e.$$.fragment), xr(e, t.target, t.anchor), H();
|
|
205
208
|
}
|
|
206
209
|
Y(u);
|
|
207
210
|
}
|
|
208
|
-
let
|
|
209
|
-
typeof HTMLElement == "function" && (
|
|
211
|
+
let Tt;
|
|
212
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
210
213
|
/** The Svelte component constructor */
|
|
211
214
|
$$ctor;
|
|
212
215
|
/** Slots */
|
|
@@ -248,24 +251,24 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
248
251
|
let o;
|
|
249
252
|
return {
|
|
250
253
|
c: function() {
|
|
251
|
-
o = J("slot"), i !== "default" &&
|
|
254
|
+
o = J("slot"), i !== "default" && L(o, "name", i);
|
|
252
255
|
},
|
|
253
256
|
/**
|
|
254
257
|
* @param {HTMLElement} target
|
|
255
258
|
* @param {HTMLElement} [anchor]
|
|
256
259
|
*/
|
|
257
260
|
m: function(u, h) {
|
|
258
|
-
|
|
261
|
+
Bt(u, o, h);
|
|
259
262
|
},
|
|
260
263
|
d: function(u) {
|
|
261
|
-
u &&
|
|
264
|
+
u && Ve(o);
|
|
262
265
|
}
|
|
263
266
|
};
|
|
264
267
|
};
|
|
265
268
|
};
|
|
266
269
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
267
270
|
return;
|
|
268
|
-
const t = {}, r =
|
|
271
|
+
const t = {}, r = cr(this);
|
|
269
272
|
for (const i of this.$$s)
|
|
270
273
|
i in r && (t[i] = [e(i)]);
|
|
271
274
|
for (const i of this.attributes) {
|
|
@@ -301,8 +304,8 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
301
304
|
this.$$c.$$.after_update.push(n), n();
|
|
302
305
|
for (const i in this.$$l)
|
|
303
306
|
for (const o of this.$$l[i]) {
|
|
304
|
-
const
|
|
305
|
-
this.$$l_u.set(o,
|
|
307
|
+
const a = this.$$c.$on(i, o);
|
|
308
|
+
this.$$l_u.set(o, a);
|
|
306
309
|
}
|
|
307
310
|
this.$$l = {};
|
|
308
311
|
}
|
|
@@ -352,36 +355,36 @@ function ue(e, t, r, n) {
|
|
|
352
355
|
return t;
|
|
353
356
|
}
|
|
354
357
|
}
|
|
355
|
-
function
|
|
356
|
-
let
|
|
358
|
+
function Br(e, t, r, n, i, o) {
|
|
359
|
+
let a = class extends Tt {
|
|
357
360
|
constructor() {
|
|
358
361
|
super(e, r, i), this.$$p_d = t;
|
|
359
362
|
}
|
|
360
363
|
static get observedAttributes() {
|
|
361
364
|
return Object.keys(t).map(
|
|
362
|
-
(
|
|
365
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
363
366
|
);
|
|
364
367
|
}
|
|
365
368
|
};
|
|
366
|
-
return Object.keys(t).forEach((
|
|
367
|
-
Object.defineProperty(
|
|
369
|
+
return Object.keys(t).forEach((s) => {
|
|
370
|
+
Object.defineProperty(a.prototype, s, {
|
|
368
371
|
get() {
|
|
369
|
-
return this.$$c &&
|
|
372
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
370
373
|
},
|
|
371
374
|
set(u) {
|
|
372
|
-
u = ue(
|
|
375
|
+
u = ue(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
373
376
|
}
|
|
374
377
|
});
|
|
375
|
-
}), n.forEach((
|
|
376
|
-
Object.defineProperty(
|
|
378
|
+
}), n.forEach((s) => {
|
|
379
|
+
Object.defineProperty(a.prototype, s, {
|
|
377
380
|
get() {
|
|
378
|
-
return this.$$c?.[
|
|
381
|
+
return this.$$c?.[s];
|
|
379
382
|
}
|
|
380
383
|
});
|
|
381
384
|
}), e.element = /** @type {any} */
|
|
382
|
-
|
|
385
|
+
a, a;
|
|
383
386
|
}
|
|
384
|
-
class
|
|
387
|
+
class Tr {
|
|
385
388
|
/**
|
|
386
389
|
* ### PRIVATE API
|
|
387
390
|
*
|
|
@@ -400,7 +403,7 @@ class Er {
|
|
|
400
403
|
$$set = void 0;
|
|
401
404
|
/** @returns {void} */
|
|
402
405
|
$destroy() {
|
|
403
|
-
|
|
406
|
+
Er(this, 1), this.$destroy = T;
|
|
404
407
|
}
|
|
405
408
|
/**
|
|
406
409
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -409,7 +412,7 @@ class Er {
|
|
|
409
412
|
* @returns {() => void}
|
|
410
413
|
*/
|
|
411
414
|
$on(t, r) {
|
|
412
|
-
if (!
|
|
415
|
+
if (!ke(r))
|
|
413
416
|
return T;
|
|
414
417
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
415
418
|
return n.push(r), () => {
|
|
@@ -422,18 +425,18 @@ class Er {
|
|
|
422
425
|
* @returns {void}
|
|
423
426
|
*/
|
|
424
427
|
$set(t) {
|
|
425
|
-
this.$$set && !
|
|
428
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
426
429
|
}
|
|
427
430
|
}
|
|
428
|
-
const
|
|
429
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
430
|
-
function
|
|
431
|
+
const wr = "4";
|
|
432
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
433
|
+
function Hr(e, t) {
|
|
431
434
|
if (e) {
|
|
432
435
|
const r = document.createElement("style");
|
|
433
436
|
r.innerHTML = t, e.appendChild(r);
|
|
434
437
|
}
|
|
435
438
|
}
|
|
436
|
-
function
|
|
439
|
+
function Pr(e, t) {
|
|
437
440
|
const r = new URL(t);
|
|
438
441
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
439
442
|
const i = document.createElement("style");
|
|
@@ -442,7 +445,7 @@ function Br(e, t) {
|
|
|
442
445
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
443
446
|
});
|
|
444
447
|
}
|
|
445
|
-
function
|
|
448
|
+
function Ar(e, t, r) {
|
|
446
449
|
if (window.emMessageBus) {
|
|
447
450
|
const n = document.createElement("style");
|
|
448
451
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -450,17 +453,32 @@ function Tr(e, t, r) {
|
|
|
450
453
|
});
|
|
451
454
|
}
|
|
452
455
|
}
|
|
453
|
-
|
|
454
|
-
|
|
456
|
+
/*! *****************************************************************************
|
|
457
|
+
Copyright (c) Microsoft Corporation.
|
|
458
|
+
|
|
459
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
460
|
+
purpose with or without fee is hereby granted.
|
|
461
|
+
|
|
462
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
463
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
464
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
465
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
466
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
467
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
468
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
469
|
+
***************************************************************************** */
|
|
470
|
+
var Oe = function(e, t) {
|
|
471
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
455
472
|
r.__proto__ = n;
|
|
456
473
|
} || function(r, n) {
|
|
457
|
-
for (var i in n)
|
|
458
|
-
|
|
474
|
+
for (var i in n)
|
|
475
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
476
|
+
}, Oe(e, t);
|
|
459
477
|
};
|
|
460
478
|
function A(e, t) {
|
|
461
479
|
if (typeof t != "function" && t !== null)
|
|
462
480
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
463
|
-
|
|
481
|
+
Oe(e, t);
|
|
464
482
|
function r() {
|
|
465
483
|
this.constructor = e;
|
|
466
484
|
}
|
|
@@ -470,61 +488,69 @@ var b = function() {
|
|
|
470
488
|
return b = Object.assign || function(t) {
|
|
471
489
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
472
490
|
r = arguments[n];
|
|
473
|
-
for (var o in r)
|
|
491
|
+
for (var o in r)
|
|
492
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
474
493
|
}
|
|
475
494
|
return t;
|
|
476
495
|
}, b.apply(this, arguments);
|
|
477
496
|
};
|
|
478
|
-
function
|
|
497
|
+
function Or(e, t) {
|
|
479
498
|
var r = {};
|
|
480
|
-
for (var n in e)
|
|
499
|
+
for (var n in e)
|
|
500
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
481
501
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
482
502
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
483
503
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
484
504
|
return r;
|
|
485
505
|
}
|
|
486
|
-
function
|
|
506
|
+
function Ie(e) {
|
|
487
507
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
488
|
-
if (r)
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
508
|
+
if (r)
|
|
509
|
+
return r.call(e);
|
|
510
|
+
if (e && typeof e.length == "number")
|
|
511
|
+
return {
|
|
512
|
+
next: function() {
|
|
513
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
514
|
+
}
|
|
515
|
+
};
|
|
494
516
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
495
517
|
}
|
|
496
|
-
function
|
|
518
|
+
function Ce(e, t) {
|
|
497
519
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
498
|
-
if (!r)
|
|
499
|
-
|
|
520
|
+
if (!r)
|
|
521
|
+
return e;
|
|
522
|
+
var n = r.call(e), i, o = [], a;
|
|
500
523
|
try {
|
|
501
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
502
|
-
|
|
503
|
-
|
|
524
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
525
|
+
o.push(i.value);
|
|
526
|
+
} catch (s) {
|
|
527
|
+
a = { error: s };
|
|
504
528
|
} finally {
|
|
505
529
|
try {
|
|
506
530
|
i && !i.done && (r = n.return) && r.call(n);
|
|
507
531
|
} finally {
|
|
508
|
-
if (
|
|
532
|
+
if (a)
|
|
533
|
+
throw a.error;
|
|
509
534
|
}
|
|
510
535
|
}
|
|
511
536
|
return o;
|
|
512
537
|
}
|
|
513
|
-
function
|
|
514
|
-
if (r || arguments.length === 2)
|
|
515
|
-
(
|
|
516
|
-
|
|
538
|
+
function G(e, t, r) {
|
|
539
|
+
if (r || arguments.length === 2)
|
|
540
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
541
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
542
|
+
return e.concat(o || t);
|
|
517
543
|
}
|
|
518
544
|
function P(e) {
|
|
519
545
|
return typeof e == "function";
|
|
520
546
|
}
|
|
521
|
-
function
|
|
547
|
+
function wt(e) {
|
|
522
548
|
var t = function(n) {
|
|
523
549
|
Error.call(n), n.stack = new Error().stack;
|
|
524
550
|
}, r = e(t);
|
|
525
551
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
526
552
|
}
|
|
527
|
-
var Ee =
|
|
553
|
+
var Ee = wt(function(e) {
|
|
528
554
|
return function(r) {
|
|
529
555
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
530
556
|
` + r.map(function(n, i) {
|
|
@@ -533,7 +559,7 @@ var Ee = St(function(e) {
|
|
|
533
559
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
534
560
|
};
|
|
535
561
|
});
|
|
536
|
-
function
|
|
562
|
+
function Le(e, t) {
|
|
537
563
|
if (e) {
|
|
538
564
|
var r = e.indexOf(t);
|
|
539
565
|
0 <= r && e.splice(r, 1);
|
|
@@ -547,11 +573,11 @@ var de = function() {
|
|
|
547
573
|
var t, r, n, i, o;
|
|
548
574
|
if (!this.closed) {
|
|
549
575
|
this.closed = !0;
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
552
|
-
if (this._parentage = null, Array.isArray(
|
|
576
|
+
var a = this._parentage;
|
|
577
|
+
if (a)
|
|
578
|
+
if (this._parentage = null, Array.isArray(a))
|
|
553
579
|
try {
|
|
554
|
-
for (var
|
|
580
|
+
for (var s = Ie(a), u = s.next(); !u.done; u = s.next()) {
|
|
555
581
|
var h = u.value;
|
|
556
582
|
h.remove(this);
|
|
557
583
|
}
|
|
@@ -559,13 +585,14 @@ var de = function() {
|
|
|
559
585
|
t = { error: g };
|
|
560
586
|
} finally {
|
|
561
587
|
try {
|
|
562
|
-
u && !u.done && (r =
|
|
588
|
+
u && !u.done && (r = s.return) && r.call(s);
|
|
563
589
|
} finally {
|
|
564
|
-
if (t)
|
|
590
|
+
if (t)
|
|
591
|
+
throw t.error;
|
|
565
592
|
}
|
|
566
593
|
}
|
|
567
594
|
else
|
|
568
|
-
|
|
595
|
+
a.remove(this);
|
|
569
596
|
var l = this.initialTeardown;
|
|
570
597
|
if (P(l))
|
|
571
598
|
try {
|
|
@@ -577,12 +604,12 @@ var de = function() {
|
|
|
577
604
|
if (c) {
|
|
578
605
|
this._finalizers = null;
|
|
579
606
|
try {
|
|
580
|
-
for (var f =
|
|
581
|
-
var
|
|
607
|
+
for (var f = Ie(c), m = f.next(); !m.done; m = f.next()) {
|
|
608
|
+
var y = m.value;
|
|
582
609
|
try {
|
|
583
|
-
|
|
610
|
+
Ke(y);
|
|
584
611
|
} catch (g) {
|
|
585
|
-
o = o ?? [], g instanceof Ee ? o =
|
|
612
|
+
o = o ?? [], g instanceof Ee ? o = G(G([], Ce(o)), Ce(g.errors)) : o.push(g);
|
|
586
613
|
}
|
|
587
614
|
}
|
|
588
615
|
} catch (g) {
|
|
@@ -591,7 +618,8 @@ var de = function() {
|
|
|
591
618
|
try {
|
|
592
619
|
m && !m.done && (i = f.return) && i.call(f);
|
|
593
620
|
} finally {
|
|
594
|
-
if (n)
|
|
621
|
+
if (n)
|
|
622
|
+
throw n.error;
|
|
595
623
|
}
|
|
596
624
|
}
|
|
597
625
|
}
|
|
@@ -602,7 +630,7 @@ var de = function() {
|
|
|
602
630
|
var r;
|
|
603
631
|
if (t && t !== this)
|
|
604
632
|
if (this.closed)
|
|
605
|
-
|
|
633
|
+
Ke(t);
|
|
606
634
|
else {
|
|
607
635
|
if (t instanceof e) {
|
|
608
636
|
if (t.closed || t._hasParent(this))
|
|
@@ -619,49 +647,53 @@ var de = function() {
|
|
|
619
647
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
620
648
|
}, e.prototype._removeParent = function(t) {
|
|
621
649
|
var r = this._parentage;
|
|
622
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
650
|
+
r === t ? this._parentage = null : Array.isArray(r) && Le(r, t);
|
|
623
651
|
}, e.prototype.remove = function(t) {
|
|
624
652
|
var r = this._finalizers;
|
|
625
|
-
r &&
|
|
653
|
+
r && Le(r, t), t instanceof e && t._removeParent(this);
|
|
626
654
|
}, e.EMPTY = function() {
|
|
627
655
|
var t = new e();
|
|
628
656
|
return t.closed = !0, t;
|
|
629
657
|
}(), e;
|
|
630
|
-
}(),
|
|
631
|
-
function
|
|
658
|
+
}(), Ht = de.EMPTY;
|
|
659
|
+
function Pt(e) {
|
|
632
660
|
return e instanceof de || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
633
661
|
}
|
|
634
|
-
function
|
|
662
|
+
function Ke(e) {
|
|
635
663
|
P(e) ? e() : e.unsubscribe();
|
|
636
664
|
}
|
|
637
|
-
var
|
|
638
|
-
|
|
639
|
-
|
|
665
|
+
var At = {
|
|
666
|
+
onUnhandledError: null,
|
|
667
|
+
onStoppedNotification: null,
|
|
668
|
+
Promise: void 0,
|
|
669
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
670
|
+
useDeprecatedNextContext: !1
|
|
671
|
+
}, Ir = {
|
|
640
672
|
setTimeout: function(e, t) {
|
|
641
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
642
674
|
r[n - 2] = arguments[n];
|
|
643
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, G([e, t], Ce(r)));
|
|
644
676
|
},
|
|
645
677
|
clearTimeout: function(e) {
|
|
646
678
|
return clearTimeout(e);
|
|
647
679
|
},
|
|
648
680
|
delegate: void 0
|
|
649
681
|
};
|
|
650
|
-
function
|
|
651
|
-
|
|
682
|
+
function Cr(e) {
|
|
683
|
+
Ir.setTimeout(function() {
|
|
652
684
|
throw e;
|
|
653
685
|
});
|
|
654
686
|
}
|
|
655
|
-
function
|
|
687
|
+
function et() {
|
|
656
688
|
}
|
|
657
689
|
function he(e) {
|
|
658
690
|
e();
|
|
659
691
|
}
|
|
660
|
-
var
|
|
692
|
+
var Ot = function(e) {
|
|
661
693
|
A(t, e);
|
|
662
694
|
function t(r) {
|
|
663
695
|
var n = e.call(this) || this;
|
|
664
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = $r, n;
|
|
665
697
|
}
|
|
666
698
|
return t.create = function(r, n, i) {
|
|
667
699
|
return new Ne(r, n, i);
|
|
@@ -688,7 +720,11 @@ var wt = function(e) {
|
|
|
688
720
|
this.unsubscribe();
|
|
689
721
|
}
|
|
690
722
|
}, t;
|
|
691
|
-
}(de),
|
|
723
|
+
}(de), Lr = Function.prototype.bind;
|
|
724
|
+
function _e(e, t) {
|
|
725
|
+
return Lr.call(e, t);
|
|
726
|
+
}
|
|
727
|
+
var Nr = function() {
|
|
692
728
|
function e(t) {
|
|
693
729
|
this.partialObserver = t;
|
|
694
730
|
}
|
|
@@ -722,40 +758,52 @@ var wt = function(e) {
|
|
|
722
758
|
}(), Ne = function(e) {
|
|
723
759
|
A(t, e);
|
|
724
760
|
function t(r, n, i) {
|
|
725
|
-
var o = e.call(this) || this,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
761
|
+
var o = e.call(this) || this, a;
|
|
762
|
+
if (P(r) || !r)
|
|
763
|
+
a = {
|
|
764
|
+
next: r ?? void 0,
|
|
765
|
+
error: n ?? void 0,
|
|
766
|
+
complete: i ?? void 0
|
|
767
|
+
};
|
|
768
|
+
else {
|
|
769
|
+
var s;
|
|
770
|
+
o && At.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
771
|
+
return o.unsubscribe();
|
|
772
|
+
}, a = {
|
|
773
|
+
next: r.next && _e(r.next, s),
|
|
774
|
+
error: r.error && _e(r.error, s),
|
|
775
|
+
complete: r.complete && _e(r.complete, s)
|
|
776
|
+
}) : a = r;
|
|
777
|
+
}
|
|
778
|
+
return o.destination = new Nr(a), o;
|
|
731
779
|
}
|
|
732
780
|
return t;
|
|
733
|
-
}(
|
|
781
|
+
}(Ot);
|
|
734
782
|
function ie(e) {
|
|
735
|
-
|
|
783
|
+
Cr(e);
|
|
736
784
|
}
|
|
737
|
-
function
|
|
785
|
+
function Mr(e) {
|
|
738
786
|
throw e;
|
|
739
787
|
}
|
|
740
|
-
var
|
|
788
|
+
var $r = {
|
|
741
789
|
closed: !0,
|
|
742
|
-
next:
|
|
743
|
-
error:
|
|
744
|
-
complete:
|
|
745
|
-
},
|
|
790
|
+
next: et,
|
|
791
|
+
error: Mr,
|
|
792
|
+
complete: et
|
|
793
|
+
}, Rr = function() {
|
|
746
794
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
747
795
|
}();
|
|
748
|
-
function
|
|
796
|
+
function Dr(e) {
|
|
749
797
|
return e;
|
|
750
798
|
}
|
|
751
|
-
function
|
|
752
|
-
return e.length === 0 ?
|
|
799
|
+
function Ur(e) {
|
|
800
|
+
return e.length === 0 ? Dr : e.length === 1 ? e[0] : function(r) {
|
|
753
801
|
return e.reduce(function(n, i) {
|
|
754
802
|
return i(n);
|
|
755
803
|
}, r);
|
|
756
804
|
};
|
|
757
805
|
}
|
|
758
|
-
var
|
|
806
|
+
var tt = function() {
|
|
759
807
|
function e(t) {
|
|
760
808
|
t && (this._subscribe = t);
|
|
761
809
|
}
|
|
@@ -763,10 +811,10 @@ var qe = function() {
|
|
|
763
811
|
var r = new e();
|
|
764
812
|
return r.source = this, r.operator = t, r;
|
|
765
813
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
766
|
-
var i = this, o =
|
|
814
|
+
var i = this, o = Gr(t) ? t : new Ne(t, r, n);
|
|
767
815
|
return he(function() {
|
|
768
|
-
var
|
|
769
|
-
o.add(
|
|
816
|
+
var a = i, s = a.operator, u = a.source;
|
|
817
|
+
o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
770
818
|
}), o;
|
|
771
819
|
}, e.prototype._trySubscribe = function(t) {
|
|
772
820
|
try {
|
|
@@ -776,37 +824,37 @@ var qe = function() {
|
|
|
776
824
|
}
|
|
777
825
|
}, e.prototype.forEach = function(t, r) {
|
|
778
826
|
var n = this;
|
|
779
|
-
return r =
|
|
780
|
-
var
|
|
781
|
-
next: function(
|
|
827
|
+
return r = rt(r), new r(function(i, o) {
|
|
828
|
+
var a = new Ne({
|
|
829
|
+
next: function(s) {
|
|
782
830
|
try {
|
|
783
|
-
t(
|
|
831
|
+
t(s);
|
|
784
832
|
} catch (u) {
|
|
785
|
-
o(u),
|
|
833
|
+
o(u), a.unsubscribe();
|
|
786
834
|
}
|
|
787
835
|
},
|
|
788
836
|
error: o,
|
|
789
837
|
complete: i
|
|
790
838
|
});
|
|
791
|
-
n.subscribe(
|
|
839
|
+
n.subscribe(a);
|
|
792
840
|
});
|
|
793
841
|
}, e.prototype._subscribe = function(t) {
|
|
794
842
|
var r;
|
|
795
843
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
796
|
-
}, e.prototype[
|
|
844
|
+
}, e.prototype[Rr] = function() {
|
|
797
845
|
return this;
|
|
798
846
|
}, e.prototype.pipe = function() {
|
|
799
847
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
800
848
|
t[r] = arguments[r];
|
|
801
|
-
return
|
|
849
|
+
return Ur(t)(this);
|
|
802
850
|
}, e.prototype.toPromise = function(t) {
|
|
803
851
|
var r = this;
|
|
804
|
-
return t =
|
|
852
|
+
return t = rt(t), new t(function(n, i) {
|
|
805
853
|
var o;
|
|
806
|
-
r.subscribe(function(
|
|
807
|
-
return o =
|
|
808
|
-
}, function(
|
|
809
|
-
return i(
|
|
854
|
+
r.subscribe(function(a) {
|
|
855
|
+
return o = a;
|
|
856
|
+
}, function(a) {
|
|
857
|
+
return i(a);
|
|
810
858
|
}, function() {
|
|
811
859
|
return n(o);
|
|
812
860
|
});
|
|
@@ -815,32 +863,32 @@ var qe = function() {
|
|
|
815
863
|
return new e(t);
|
|
816
864
|
}, e;
|
|
817
865
|
}();
|
|
818
|
-
function
|
|
866
|
+
function rt(e) {
|
|
819
867
|
var t;
|
|
820
|
-
return (t = e ??
|
|
868
|
+
return (t = e ?? At.Promise) !== null && t !== void 0 ? t : Promise;
|
|
821
869
|
}
|
|
822
|
-
function
|
|
870
|
+
function Fr(e) {
|
|
823
871
|
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
824
872
|
}
|
|
825
|
-
function
|
|
826
|
-
return e && e instanceof
|
|
873
|
+
function Gr(e) {
|
|
874
|
+
return e && e instanceof Ot || Fr(e) && Pt(e);
|
|
827
875
|
}
|
|
828
|
-
var
|
|
876
|
+
var jr = wt(function(e) {
|
|
829
877
|
return function() {
|
|
830
878
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
831
879
|
};
|
|
832
|
-
}),
|
|
880
|
+
}), It = function(e) {
|
|
833
881
|
A(t, e);
|
|
834
882
|
function t() {
|
|
835
883
|
var r = e.call(this) || this;
|
|
836
884
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
837
885
|
}
|
|
838
886
|
return t.prototype.lift = function(r) {
|
|
839
|
-
var n = new
|
|
887
|
+
var n = new nt(this, this);
|
|
840
888
|
return n.operator = r, n;
|
|
841
889
|
}, t.prototype._throwIfClosed = function() {
|
|
842
890
|
if (this.closed)
|
|
843
|
-
throw new
|
|
891
|
+
throw new jr();
|
|
844
892
|
}, t.prototype.next = function(r) {
|
|
845
893
|
var n = this;
|
|
846
894
|
he(function() {
|
|
@@ -848,17 +896,18 @@ var Dr = St(function(e) {
|
|
|
848
896
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
849
897
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
850
898
|
try {
|
|
851
|
-
for (var
|
|
852
|
-
var u =
|
|
899
|
+
for (var a = Ie(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
900
|
+
var u = s.value;
|
|
853
901
|
u.next(r);
|
|
854
902
|
}
|
|
855
903
|
} catch (h) {
|
|
856
904
|
i = { error: h };
|
|
857
905
|
} finally {
|
|
858
906
|
try {
|
|
859
|
-
|
|
907
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
860
908
|
} finally {
|
|
861
|
-
if (i)
|
|
909
|
+
if (i)
|
|
910
|
+
throw i.error;
|
|
862
911
|
}
|
|
863
912
|
}
|
|
864
913
|
}
|
|
@@ -895,20 +944,20 @@ var Dr = St(function(e) {
|
|
|
895
944
|
}, t.prototype._subscribe = function(r) {
|
|
896
945
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
897
946
|
}, t.prototype._innerSubscribe = function(r) {
|
|
898
|
-
var n = this, i = this, o = i.hasError,
|
|
899
|
-
return o ||
|
|
900
|
-
n.currentObservers = null,
|
|
947
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
948
|
+
return o || a ? Ht : (this.currentObservers = null, s.push(r), new de(function() {
|
|
949
|
+
n.currentObservers = null, Le(s, r);
|
|
901
950
|
}));
|
|
902
951
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
903
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
904
|
-
i ? r.error(o) :
|
|
952
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
953
|
+
i ? r.error(o) : a && r.complete();
|
|
905
954
|
}, t.prototype.asObservable = function() {
|
|
906
|
-
var r = new
|
|
955
|
+
var r = new tt();
|
|
907
956
|
return r.source = this, r;
|
|
908
957
|
}, t.create = function(r, n) {
|
|
909
|
-
return new
|
|
958
|
+
return new nt(r, n);
|
|
910
959
|
}, t;
|
|
911
|
-
}(
|
|
960
|
+
}(tt), nt = function(e) {
|
|
912
961
|
A(t, e);
|
|
913
962
|
function t(r, n) {
|
|
914
963
|
var i = e.call(this) || this;
|
|
@@ -925,45 +974,45 @@ var Dr = St(function(e) {
|
|
|
925
974
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
926
975
|
}, t.prototype._subscribe = function(r) {
|
|
927
976
|
var n, i;
|
|
928
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
977
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
|
|
929
978
|
}, t;
|
|
930
|
-
}(
|
|
979
|
+
}(It), Ct = {
|
|
931
980
|
now: function() {
|
|
932
|
-
return (
|
|
981
|
+
return (Ct.delegate || Date).now();
|
|
933
982
|
},
|
|
934
983
|
delegate: void 0
|
|
935
|
-
},
|
|
984
|
+
}, kr = function(e) {
|
|
936
985
|
A(t, e);
|
|
937
986
|
function t(r, n, i) {
|
|
938
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
987
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
939
988
|
var o = e.call(this) || this;
|
|
940
989
|
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;
|
|
941
990
|
}
|
|
942
991
|
return t.prototype.next = function(r) {
|
|
943
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
944
|
-
i || (o.push(r), !
|
|
992
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
|
|
993
|
+
i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
945
994
|
}, t.prototype._subscribe = function(r) {
|
|
946
995
|
this._throwIfClosed(), this._trimBuffer();
|
|
947
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
948
|
-
r.next(
|
|
996
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
|
|
997
|
+
r.next(s[u]);
|
|
949
998
|
return this._checkFinalizedStatuses(r), n;
|
|
950
999
|
}, t.prototype._trimBuffer = function() {
|
|
951
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
952
|
-
if (n < 1 / 0 &&
|
|
1000
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1001
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
953
1002
|
for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
|
|
954
1003
|
h = l;
|
|
955
1004
|
h && o.splice(0, h + 1);
|
|
956
1005
|
}
|
|
957
1006
|
}, t;
|
|
958
|
-
}(
|
|
959
|
-
const
|
|
960
|
-
if (
|
|
961
|
-
const r = new
|
|
962
|
-
|
|
1007
|
+
}(It);
|
|
1008
|
+
const it = [], ot = {}, Vr = (e, t = 0) => {
|
|
1009
|
+
if (it.indexOf(e) == -1) {
|
|
1010
|
+
const r = new kr(t);
|
|
1011
|
+
ot[e] = r, it.push(e);
|
|
963
1012
|
}
|
|
964
|
-
return
|
|
1013
|
+
return ot[e];
|
|
965
1014
|
}, D = [];
|
|
966
|
-
function
|
|
1015
|
+
function zr(e, t) {
|
|
967
1016
|
return {
|
|
968
1017
|
subscribe: be(e, t).subscribe
|
|
969
1018
|
};
|
|
@@ -971,8 +1020,8 @@ function Fr(e, t) {
|
|
|
971
1020
|
function be(e, t = T) {
|
|
972
1021
|
let r;
|
|
973
1022
|
const n = /* @__PURE__ */ new Set();
|
|
974
|
-
function i(
|
|
975
|
-
if (
|
|
1023
|
+
function i(s) {
|
|
1024
|
+
if (_t(e, s) && (e = s, r)) {
|
|
976
1025
|
const u = !D.length;
|
|
977
1026
|
for (const h of n)
|
|
978
1027
|
h[1](), D.push(h, e);
|
|
@@ -983,23 +1032,23 @@ function be(e, t = T) {
|
|
|
983
1032
|
}
|
|
984
1033
|
}
|
|
985
1034
|
}
|
|
986
|
-
function o(
|
|
987
|
-
i(
|
|
1035
|
+
function o(s) {
|
|
1036
|
+
i(s(e));
|
|
988
1037
|
}
|
|
989
|
-
function s
|
|
990
|
-
const h = [
|
|
991
|
-
return n.add(h), n.size === 1 && (r = t(i, o) || T),
|
|
1038
|
+
function a(s, u = T) {
|
|
1039
|
+
const h = [s, u];
|
|
1040
|
+
return n.add(h), n.size === 1 && (r = t(i, o) || T), s(e), () => {
|
|
992
1041
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
993
1042
|
};
|
|
994
1043
|
}
|
|
995
|
-
return { set: i, update: o, subscribe:
|
|
1044
|
+
return { set: i, update: o, subscribe: a };
|
|
996
1045
|
}
|
|
997
|
-
function
|
|
1046
|
+
function X(e, t, r) {
|
|
998
1047
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
999
1048
|
if (!i.every(Boolean))
|
|
1000
1049
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1001
1050
|
const o = t.length < 2;
|
|
1002
|
-
return
|
|
1051
|
+
return zr(r, (a, s) => {
|
|
1003
1052
|
let u = !1;
|
|
1004
1053
|
const h = [];
|
|
1005
1054
|
let l = 0, c = T;
|
|
@@ -1007,11 +1056,11 @@ function z(e, t, r) {
|
|
|
1007
1056
|
if (l)
|
|
1008
1057
|
return;
|
|
1009
1058
|
c();
|
|
1010
|
-
const
|
|
1011
|
-
o ?
|
|
1059
|
+
const y = t(n ? h[0] : h, a, s);
|
|
1060
|
+
o ? a(y) : c = ke(y) ? y : T;
|
|
1012
1061
|
}, m = i.map(
|
|
1013
|
-
(
|
|
1014
|
-
|
|
1062
|
+
(y, g) => St(
|
|
1063
|
+
y,
|
|
1015
1064
|
(B) => {
|
|
1016
1065
|
h[g] = B, l &= ~(1 << g), u && f();
|
|
1017
1066
|
},
|
|
@@ -1025,70 +1074,70 @@ function z(e, t, r) {
|
|
|
1025
1074
|
};
|
|
1026
1075
|
});
|
|
1027
1076
|
}
|
|
1028
|
-
function
|
|
1077
|
+
function Xr(e) {
|
|
1029
1078
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1030
1079
|
}
|
|
1031
|
-
var
|
|
1032
|
-
return
|
|
1080
|
+
var Wr = function(t) {
|
|
1081
|
+
return Zr(t) && !Qr(t);
|
|
1033
1082
|
};
|
|
1034
|
-
function
|
|
1083
|
+
function Zr(e) {
|
|
1035
1084
|
return !!e && typeof e == "object";
|
|
1036
1085
|
}
|
|
1037
|
-
function
|
|
1086
|
+
function Qr(e) {
|
|
1038
1087
|
var t = Object.prototype.toString.call(e);
|
|
1039
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1088
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
1040
1089
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1043
|
-
return e.$$typeof ===
|
|
1090
|
+
var Jr = typeof Symbol == "function" && Symbol.for, Yr = Jr ? Symbol.for("react.element") : 60103;
|
|
1091
|
+
function qr(e) {
|
|
1092
|
+
return e.$$typeof === Yr;
|
|
1044
1093
|
}
|
|
1045
|
-
function
|
|
1094
|
+
function Kr(e) {
|
|
1046
1095
|
return Array.isArray(e) ? [] : {};
|
|
1047
1096
|
}
|
|
1048
1097
|
function K(e, t) {
|
|
1049
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
|
1098
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Kr(e), e, t) : e;
|
|
1050
1099
|
}
|
|
1051
|
-
function
|
|
1100
|
+
function en(e, t, r) {
|
|
1052
1101
|
return e.concat(t).map(function(n) {
|
|
1053
1102
|
return K(n, r);
|
|
1054
1103
|
});
|
|
1055
1104
|
}
|
|
1056
|
-
function
|
|
1105
|
+
function tn(e, t) {
|
|
1057
1106
|
if (!t.customMerge)
|
|
1058
1107
|
return j;
|
|
1059
1108
|
var r = t.customMerge(e);
|
|
1060
1109
|
return typeof r == "function" ? r : j;
|
|
1061
1110
|
}
|
|
1062
|
-
function
|
|
1111
|
+
function rn(e) {
|
|
1063
1112
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1064
1113
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1065
1114
|
}) : [];
|
|
1066
1115
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return Object.keys(e).concat(
|
|
1116
|
+
function st(e) {
|
|
1117
|
+
return Object.keys(e).concat(rn(e));
|
|
1069
1118
|
}
|
|
1070
|
-
function
|
|
1119
|
+
function Lt(e, t) {
|
|
1071
1120
|
try {
|
|
1072
1121
|
return t in e;
|
|
1073
1122
|
} catch {
|
|
1074
1123
|
return !1;
|
|
1075
1124
|
}
|
|
1076
1125
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return
|
|
1126
|
+
function nn(e, t) {
|
|
1127
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1079
1128
|
}
|
|
1080
|
-
function
|
|
1129
|
+
function on(e, t, r) {
|
|
1081
1130
|
var n = {};
|
|
1082
|
-
return r.isMergeableObject(e) &&
|
|
1131
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1083
1132
|
n[i] = K(e[i], r);
|
|
1084
|
-
}),
|
|
1085
|
-
|
|
1133
|
+
}), st(t).forEach(function(i) {
|
|
1134
|
+
nn(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1086
1135
|
}), n;
|
|
1087
1136
|
}
|
|
1088
1137
|
function j(e, t, r) {
|
|
1089
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = K;
|
|
1090
1139
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1091
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1140
|
+
return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : K(t, r);
|
|
1092
1141
|
}
|
|
1093
1142
|
j.all = function(t, r) {
|
|
1094
1143
|
if (!Array.isArray(t))
|
|
@@ -1097,56 +1146,58 @@ j.all = function(t, r) {
|
|
|
1097
1146
|
return j(n, i, r);
|
|
1098
1147
|
}, {});
|
|
1099
1148
|
};
|
|
1100
|
-
var
|
|
1101
|
-
const
|
|
1102
|
-
function
|
|
1103
|
-
var r = t && t.cache ? t.cache :
|
|
1149
|
+
var sn = j, an = sn;
|
|
1150
|
+
const un = /* @__PURE__ */ Xr(an);
|
|
1151
|
+
function Se(e, t) {
|
|
1152
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : ln;
|
|
1104
1153
|
return i(e, {
|
|
1105
1154
|
cache: r,
|
|
1106
1155
|
serializer: n
|
|
1107
1156
|
});
|
|
1108
1157
|
}
|
|
1109
|
-
function
|
|
1158
|
+
function hn(e) {
|
|
1110
1159
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1111
1160
|
}
|
|
1112
|
-
function
|
|
1113
|
-
var i =
|
|
1161
|
+
function Nt(e, t, r, n) {
|
|
1162
|
+
var i = hn(n) ? n : r(n), o = t.get(i);
|
|
1114
1163
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1115
1164
|
}
|
|
1116
|
-
function
|
|
1165
|
+
function Mt(e, t, r) {
|
|
1117
1166
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1118
1167
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1119
1168
|
}
|
|
1120
|
-
function
|
|
1169
|
+
function ze(e, t, r, n, i) {
|
|
1121
1170
|
return r.bind(t, e, n, i);
|
|
1122
1171
|
}
|
|
1123
|
-
function
|
|
1124
|
-
var r = e.length === 1 ?
|
|
1125
|
-
return
|
|
1172
|
+
function ln(e, t) {
|
|
1173
|
+
var r = e.length === 1 ? Nt : Mt;
|
|
1174
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
1175
|
+
}
|
|
1176
|
+
function cn(e, t) {
|
|
1177
|
+
return ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
1126
1178
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1179
|
+
function fn(e, t) {
|
|
1180
|
+
return ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
1129
1181
|
}
|
|
1130
|
-
var
|
|
1182
|
+
var pn = function() {
|
|
1131
1183
|
return JSON.stringify(arguments);
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
}()
|
|
1144
|
-
), cn = {
|
|
1184
|
+
};
|
|
1185
|
+
function Xe() {
|
|
1186
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1187
|
+
}
|
|
1188
|
+
Xe.prototype.get = function(e) {
|
|
1189
|
+
return this.cache[e];
|
|
1190
|
+
};
|
|
1191
|
+
Xe.prototype.set = function(e, t) {
|
|
1192
|
+
this.cache[e] = t;
|
|
1193
|
+
};
|
|
1194
|
+
var mn = {
|
|
1145
1195
|
create: function() {
|
|
1146
|
-
return new
|
|
1196
|
+
return new Xe();
|
|
1147
1197
|
}
|
|
1148
|
-
},
|
|
1149
|
-
variadic:
|
|
1198
|
+
}, Be = {
|
|
1199
|
+
variadic: cn,
|
|
1200
|
+
monadic: fn
|
|
1150
1201
|
}, p;
|
|
1151
1202
|
(function(e) {
|
|
1152
1203
|
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";
|
|
@@ -1159,43 +1210,43 @@ var k;
|
|
|
1159
1210
|
(function(e) {
|
|
1160
1211
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1161
1212
|
})(k || (k = {}));
|
|
1162
|
-
function
|
|
1213
|
+
function at(e) {
|
|
1163
1214
|
return e.type === x.literal;
|
|
1164
1215
|
}
|
|
1165
|
-
function
|
|
1216
|
+
function dn(e) {
|
|
1166
1217
|
return e.type === x.argument;
|
|
1167
1218
|
}
|
|
1168
|
-
function
|
|
1219
|
+
function $t(e) {
|
|
1169
1220
|
return e.type === x.number;
|
|
1170
1221
|
}
|
|
1171
|
-
function
|
|
1222
|
+
function Rt(e) {
|
|
1172
1223
|
return e.type === x.date;
|
|
1173
1224
|
}
|
|
1174
|
-
function
|
|
1225
|
+
function Dt(e) {
|
|
1175
1226
|
return e.type === x.time;
|
|
1176
1227
|
}
|
|
1177
|
-
function
|
|
1228
|
+
function Ut(e) {
|
|
1178
1229
|
return e.type === x.select;
|
|
1179
1230
|
}
|
|
1180
|
-
function
|
|
1231
|
+
function Ft(e) {
|
|
1181
1232
|
return e.type === x.plural;
|
|
1182
1233
|
}
|
|
1183
|
-
function
|
|
1234
|
+
function bn(e) {
|
|
1184
1235
|
return e.type === x.pound;
|
|
1185
1236
|
}
|
|
1186
|
-
function
|
|
1237
|
+
function Gt(e) {
|
|
1187
1238
|
return e.type === x.tag;
|
|
1188
1239
|
}
|
|
1189
|
-
function
|
|
1240
|
+
function jt(e) {
|
|
1190
1241
|
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1191
1242
|
}
|
|
1192
|
-
function
|
|
1243
|
+
function Me(e) {
|
|
1193
1244
|
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1194
1245
|
}
|
|
1195
|
-
var
|
|
1196
|
-
function
|
|
1246
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1247
|
+
function yn(e) {
|
|
1197
1248
|
var t = {};
|
|
1198
|
-
return e.replace(
|
|
1249
|
+
return e.replace(gn, function(r) {
|
|
1199
1250
|
var n = r.length;
|
|
1200
1251
|
switch (r[0]) {
|
|
1201
1252
|
case "G":
|
|
@@ -1284,36 +1335,36 @@ function dn(e) {
|
|
|
1284
1335
|
return "";
|
|
1285
1336
|
}), t;
|
|
1286
1337
|
}
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
1338
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1339
|
+
function xn(e) {
|
|
1289
1340
|
if (e.length === 0)
|
|
1290
1341
|
throw new Error("Number skeleton cannot be empty");
|
|
1291
|
-
for (var t = e.split(
|
|
1342
|
+
for (var t = e.split(vn).filter(function(f) {
|
|
1292
1343
|
return f.length > 0;
|
|
1293
1344
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1294
|
-
var o = i[n],
|
|
1295
|
-
if (
|
|
1345
|
+
var o = i[n], a = o.split("/");
|
|
1346
|
+
if (a.length === 0)
|
|
1296
1347
|
throw new Error("Invalid number skeleton");
|
|
1297
|
-
for (var
|
|
1348
|
+
for (var s = a[0], u = a.slice(1), h = 0, l = u; h < l.length; h++) {
|
|
1298
1349
|
var c = l[h];
|
|
1299
1350
|
if (c.length === 0)
|
|
1300
1351
|
throw new Error("Invalid number skeleton");
|
|
1301
1352
|
}
|
|
1302
|
-
r.push({ stem:
|
|
1353
|
+
r.push({ stem: s, options: u });
|
|
1303
1354
|
}
|
|
1304
1355
|
return r;
|
|
1305
1356
|
}
|
|
1306
|
-
function
|
|
1357
|
+
function En(e) {
|
|
1307
1358
|
return e.replace(/^(.*?)-/, "");
|
|
1308
1359
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1360
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1361
|
+
function ht(e) {
|
|
1311
1362
|
var t = {};
|
|
1312
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1363
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1313
1364
|
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)), "";
|
|
1314
1365
|
}), t;
|
|
1315
1366
|
}
|
|
1316
|
-
function
|
|
1367
|
+
function Xt(e) {
|
|
1317
1368
|
switch (e) {
|
|
1318
1369
|
case "sign-auto":
|
|
1319
1370
|
return {
|
|
@@ -1353,7 +1404,7 @@ function jt(e) {
|
|
|
1353
1404
|
};
|
|
1354
1405
|
}
|
|
1355
1406
|
}
|
|
1356
|
-
function
|
|
1407
|
+
function Sn(e) {
|
|
1357
1408
|
var t;
|
|
1358
1409
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1359
1410
|
notation: "engineering"
|
|
@@ -1361,17 +1412,17 @@ function xn(e) {
|
|
|
1361
1412
|
notation: "scientific"
|
|
1362
1413
|
}, e = e.slice(1)), t) {
|
|
1363
1414
|
var r = e.slice(0, 2);
|
|
1364
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1415
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1365
1416
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1366
1417
|
t.minimumIntegerDigits = e.length;
|
|
1367
1418
|
}
|
|
1368
1419
|
return t;
|
|
1369
1420
|
}
|
|
1370
|
-
function
|
|
1371
|
-
var t = {}, r =
|
|
1421
|
+
function lt(e) {
|
|
1422
|
+
var t = {}, r = Xt(e);
|
|
1372
1423
|
return r || t;
|
|
1373
1424
|
}
|
|
1374
|
-
function
|
|
1425
|
+
function Bn(e) {
|
|
1375
1426
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1376
1427
|
var i = n[r];
|
|
1377
1428
|
switch (i.stem) {
|
|
@@ -1395,7 +1446,7 @@ function En(e) {
|
|
|
1395
1446
|
continue;
|
|
1396
1447
|
case "measure-unit":
|
|
1397
1448
|
case "unit":
|
|
1398
|
-
t.style = "unit", t.unit =
|
|
1449
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1399
1450
|
continue;
|
|
1400
1451
|
case "compact-short":
|
|
1401
1452
|
case "K":
|
|
@@ -1407,12 +1458,12 @@ function En(e) {
|
|
|
1407
1458
|
continue;
|
|
1408
1459
|
case "scientific":
|
|
1409
1460
|
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1410
|
-
return b(b({}, u),
|
|
1461
|
+
return b(b({}, u), lt(h));
|
|
1411
1462
|
}, {}));
|
|
1412
1463
|
continue;
|
|
1413
1464
|
case "engineering":
|
|
1414
1465
|
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1415
|
-
return b(b({}, u),
|
|
1466
|
+
return b(b({}, u), lt(h));
|
|
1416
1467
|
}, {}));
|
|
1417
1468
|
continue;
|
|
1418
1469
|
case "notation-simple":
|
|
@@ -1457,7 +1508,7 @@ function En(e) {
|
|
|
1457
1508
|
case "integer-width":
|
|
1458
1509
|
if (i.options.length > 1)
|
|
1459
1510
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1460
|
-
i.options[0].replace(
|
|
1511
|
+
i.options[0].replace(_n, function(u, h, l, c, f, m) {
|
|
1461
1512
|
if (h)
|
|
1462
1513
|
t.minimumIntegerDigits = l.length;
|
|
1463
1514
|
else {
|
|
@@ -1470,28 +1521,28 @@ function En(e) {
|
|
|
1470
1521
|
});
|
|
1471
1522
|
continue;
|
|
1472
1523
|
}
|
|
1473
|
-
if (
|
|
1524
|
+
if (zt.test(i.stem)) {
|
|
1474
1525
|
t.minimumIntegerDigits = i.stem.length;
|
|
1475
1526
|
continue;
|
|
1476
1527
|
}
|
|
1477
|
-
if (
|
|
1528
|
+
if (ut.test(i.stem)) {
|
|
1478
1529
|
if (i.options.length > 1)
|
|
1479
1530
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1480
|
-
i.stem.replace(
|
|
1531
|
+
i.stem.replace(ut, function(u, h, l, c, f, m) {
|
|
1481
1532
|
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1482
1533
|
});
|
|
1483
1534
|
var o = i.options[0];
|
|
1484
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1535
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ht(o)));
|
|
1485
1536
|
continue;
|
|
1486
1537
|
}
|
|
1487
|
-
if (
|
|
1488
|
-
t = b(b({}, t),
|
|
1538
|
+
if (Vt.test(i.stem)) {
|
|
1539
|
+
t = b(b({}, t), ht(i.stem));
|
|
1489
1540
|
continue;
|
|
1490
1541
|
}
|
|
1491
|
-
var
|
|
1492
|
-
s && (t = b(b({}, t), s));
|
|
1493
|
-
var a = xn(i.stem);
|
|
1542
|
+
var a = Xt(i.stem);
|
|
1494
1543
|
a && (t = b(b({}, t), a));
|
|
1544
|
+
var s = Sn(i.stem);
|
|
1545
|
+
s && (t = b(b({}, t), s));
|
|
1495
1546
|
}
|
|
1496
1547
|
return t;
|
|
1497
1548
|
}
|
|
@@ -2910,22 +2961,23 @@ var oe = {
|
|
|
2910
2961
|
"h"
|
|
2911
2962
|
]
|
|
2912
2963
|
};
|
|
2913
|
-
function
|
|
2964
|
+
function Tn(e, t) {
|
|
2914
2965
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2915
2966
|
var i = e.charAt(n);
|
|
2916
2967
|
if (i === "j") {
|
|
2917
2968
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2918
2969
|
o++, n++;
|
|
2919
|
-
var
|
|
2920
|
-
for ((h == "H" || h == "k") && (
|
|
2970
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = wn(t);
|
|
2971
|
+
for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
|
|
2921
2972
|
r += u;
|
|
2922
|
-
for (;
|
|
2973
|
+
for (; a-- > 0; )
|
|
2923
2974
|
r = h + r;
|
|
2924
|
-
} else
|
|
2975
|
+
} else
|
|
2976
|
+
i === "J" ? r += "H" : r += i;
|
|
2925
2977
|
}
|
|
2926
2978
|
return r;
|
|
2927
2979
|
}
|
|
2928
|
-
function
|
|
2980
|
+
function wn(e) {
|
|
2929
2981
|
var t = e.hourCycle;
|
|
2930
2982
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2931
2983
|
e.hourCycles && // @ts-ignore
|
|
@@ -2947,20 +2999,20 @@ function Sn(e) {
|
|
|
2947
2999
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2948
3000
|
return i[0];
|
|
2949
3001
|
}
|
|
2950
|
-
var
|
|
3002
|
+
var Te, Hn = new RegExp("^".concat(kt.source, "*")), Pn = new RegExp("".concat(kt.source, "*$"));
|
|
2951
3003
|
function d(e, t) {
|
|
2952
3004
|
return { start: e, end: t };
|
|
2953
3005
|
}
|
|
2954
|
-
var
|
|
3006
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
|
|
2955
3007
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2956
|
-
},
|
|
3008
|
+
}, $e = !0;
|
|
2957
3009
|
try {
|
|
2958
|
-
var
|
|
2959
|
-
|
|
3010
|
+
var Rn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3011
|
+
$e = ((Te = Rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2960
3012
|
} catch {
|
|
2961
|
-
|
|
3013
|
+
$e = !1;
|
|
2962
3014
|
}
|
|
2963
|
-
var
|
|
3015
|
+
var ct = An ? (
|
|
2964
3016
|
// Native
|
|
2965
3017
|
function(t, r, n) {
|
|
2966
3018
|
return t.startsWith(r, n);
|
|
@@ -2970,31 +3022,31 @@ var ut = wn ? (
|
|
|
2970
3022
|
function(t, r, n) {
|
|
2971
3023
|
return t.slice(n, n + r.length) === r;
|
|
2972
3024
|
}
|
|
2973
|
-
),
|
|
3025
|
+
), Re = On ? String.fromCodePoint : (
|
|
2974
3026
|
// IE11
|
|
2975
3027
|
function() {
|
|
2976
3028
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2977
3029
|
t[r] = arguments[r];
|
|
2978
|
-
for (var n = "", i = t.length, o = 0,
|
|
2979
|
-
if (
|
|
2980
|
-
throw RangeError(
|
|
2981
|
-
n +=
|
|
3030
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3031
|
+
if (a = t[o++], a > 1114111)
|
|
3032
|
+
throw RangeError(a + " is not a valid code point");
|
|
3033
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2982
3034
|
}
|
|
2983
3035
|
return n;
|
|
2984
3036
|
}
|
|
2985
|
-
),
|
|
3037
|
+
), ft = (
|
|
2986
3038
|
// native
|
|
2987
|
-
|
|
3039
|
+
In ? Object.fromEntries : (
|
|
2988
3040
|
// Ponyfill
|
|
2989
3041
|
function(t) {
|
|
2990
3042
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2991
|
-
var o = i[n],
|
|
2992
|
-
r[
|
|
3043
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3044
|
+
r[a] = s;
|
|
2993
3045
|
}
|
|
2994
3046
|
return r;
|
|
2995
3047
|
}
|
|
2996
3048
|
)
|
|
2997
|
-
),
|
|
3049
|
+
), Wt = Cn ? (
|
|
2998
3050
|
// Native
|
|
2999
3051
|
function(t, r) {
|
|
3000
3052
|
return t.codePointAt(r);
|
|
@@ -3008,7 +3060,7 @@ var ut = wn ? (
|
|
|
3008
3060
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3009
3061
|
}
|
|
3010
3062
|
}
|
|
3011
|
-
),
|
|
3063
|
+
), Dn = Ln ? (
|
|
3012
3064
|
// Native
|
|
3013
3065
|
function(t) {
|
|
3014
3066
|
return t.trimStart();
|
|
@@ -3016,9 +3068,9 @@ var ut = wn ? (
|
|
|
3016
3068
|
) : (
|
|
3017
3069
|
// Ponyfill
|
|
3018
3070
|
function(t) {
|
|
3019
|
-
return t.replace(
|
|
3071
|
+
return t.replace(Hn, "");
|
|
3020
3072
|
}
|
|
3021
|
-
),
|
|
3073
|
+
), Un = Nn ? (
|
|
3022
3074
|
// Native
|
|
3023
3075
|
function(t) {
|
|
3024
3076
|
return t.trimEnd();
|
|
@@ -3026,32 +3078,32 @@ var ut = wn ? (
|
|
|
3026
3078
|
) : (
|
|
3027
3079
|
// Ponyfill
|
|
3028
3080
|
function(t) {
|
|
3029
|
-
return t.replace(
|
|
3081
|
+
return t.replace(Pn, "");
|
|
3030
3082
|
}
|
|
3031
3083
|
);
|
|
3032
|
-
function
|
|
3084
|
+
function Zt(e, t) {
|
|
3033
3085
|
return new RegExp(e, t);
|
|
3034
3086
|
}
|
|
3035
|
-
var
|
|
3036
|
-
if (
|
|
3037
|
-
var
|
|
3038
|
-
|
|
3087
|
+
var De;
|
|
3088
|
+
if ($e) {
|
|
3089
|
+
var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3090
|
+
De = function(t, r) {
|
|
3039
3091
|
var n;
|
|
3040
|
-
|
|
3041
|
-
var i =
|
|
3092
|
+
pt.lastIndex = r;
|
|
3093
|
+
var i = pt.exec(t);
|
|
3042
3094
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3043
3095
|
};
|
|
3044
3096
|
} else
|
|
3045
|
-
|
|
3097
|
+
De = function(t, r) {
|
|
3046
3098
|
for (var n = []; ; ) {
|
|
3047
|
-
var i =
|
|
3048
|
-
if (i === void 0 ||
|
|
3099
|
+
var i = Wt(t, r);
|
|
3100
|
+
if (i === void 0 || Qt(i) || kn(i))
|
|
3049
3101
|
break;
|
|
3050
3102
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3051
3103
|
}
|
|
3052
|
-
return
|
|
3104
|
+
return Re.apply(void 0, n);
|
|
3053
3105
|
};
|
|
3054
|
-
var
|
|
3106
|
+
var Fn = (
|
|
3055
3107
|
/** @class */
|
|
3056
3108
|
function() {
|
|
3057
3109
|
function e(t, r) {
|
|
@@ -3065,33 +3117,33 @@ var Rn = (
|
|
|
3065
3117
|
for (var i = []; !this.isEOF(); ) {
|
|
3066
3118
|
var o = this.char();
|
|
3067
3119
|
if (o === 123) {
|
|
3068
|
-
var
|
|
3069
|
-
if (
|
|
3070
|
-
return
|
|
3071
|
-
i.push(
|
|
3120
|
+
var a = this.parseArgument(t, n);
|
|
3121
|
+
if (a.err)
|
|
3122
|
+
return a;
|
|
3123
|
+
i.push(a.val);
|
|
3072
3124
|
} else {
|
|
3073
3125
|
if (o === 125 && t > 0)
|
|
3074
3126
|
break;
|
|
3075
3127
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3076
|
-
var
|
|
3128
|
+
var s = this.clonePosition();
|
|
3077
3129
|
this.bump(), i.push({
|
|
3078
3130
|
type: x.pound,
|
|
3079
|
-
location: d(
|
|
3131
|
+
location: d(s, this.clonePosition())
|
|
3080
3132
|
});
|
|
3081
3133
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3082
3134
|
if (n)
|
|
3083
3135
|
break;
|
|
3084
3136
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3085
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3086
|
-
var
|
|
3087
|
-
if (
|
|
3088
|
-
return
|
|
3089
|
-
i.push(
|
|
3137
|
+
} else if (o === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
3138
|
+
var a = this.parseTag(t, r);
|
|
3139
|
+
if (a.err)
|
|
3140
|
+
return a;
|
|
3141
|
+
i.push(a.val);
|
|
3090
3142
|
} else {
|
|
3091
|
-
var
|
|
3092
|
-
if (
|
|
3093
|
-
return
|
|
3094
|
-
i.push(
|
|
3143
|
+
var a = this.parseLiteral(t, r);
|
|
3144
|
+
if (a.err)
|
|
3145
|
+
return a;
|
|
3146
|
+
i.push(a.val);
|
|
3095
3147
|
}
|
|
3096
3148
|
}
|
|
3097
3149
|
}
|
|
@@ -3113,27 +3165,27 @@ var Rn = (
|
|
|
3113
3165
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3114
3166
|
if (o.err)
|
|
3115
3167
|
return o;
|
|
3116
|
-
var
|
|
3168
|
+
var a = o.val, s = this.clonePosition();
|
|
3117
3169
|
if (this.bumpIf("</")) {
|
|
3118
|
-
if (this.isEOF() || !
|
|
3119
|
-
return this.error(p.INVALID_TAG, d(
|
|
3170
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
3171
|
+
return this.error(p.INVALID_TAG, d(s, this.clonePosition()));
|
|
3120
3172
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3121
3173
|
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3122
3174
|
val: {
|
|
3123
3175
|
type: x.tag,
|
|
3124
3176
|
value: i,
|
|
3125
|
-
children:
|
|
3177
|
+
children: a,
|
|
3126
3178
|
location: d(n, this.clonePosition())
|
|
3127
3179
|
},
|
|
3128
3180
|
err: null
|
|
3129
|
-
} : this.error(p.INVALID_TAG, d(
|
|
3181
|
+
} : this.error(p.INVALID_TAG, d(s, this.clonePosition())));
|
|
3130
3182
|
} else
|
|
3131
3183
|
return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3132
3184
|
} else
|
|
3133
3185
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3134
3186
|
}, e.prototype.parseTagName = function() {
|
|
3135
3187
|
var t = this.offset();
|
|
3136
|
-
for (this.bump(); !this.isEOF() &&
|
|
3188
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
3137
3189
|
this.bump();
|
|
3138
3190
|
return this.message.slice(t, this.offset());
|
|
3139
3191
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3143,16 +3195,16 @@ var Rn = (
|
|
|
3143
3195
|
i += o;
|
|
3144
3196
|
continue;
|
|
3145
3197
|
}
|
|
3146
|
-
var
|
|
3147
|
-
if (s) {
|
|
3148
|
-
i += s;
|
|
3149
|
-
continue;
|
|
3150
|
-
}
|
|
3151
|
-
var a = this.tryParseLeftAngleBracket();
|
|
3198
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3152
3199
|
if (a) {
|
|
3153
3200
|
i += a;
|
|
3154
3201
|
continue;
|
|
3155
3202
|
}
|
|
3203
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3204
|
+
if (s) {
|
|
3205
|
+
i += s;
|
|
3206
|
+
continue;
|
|
3207
|
+
}
|
|
3156
3208
|
break;
|
|
3157
3209
|
}
|
|
3158
3210
|
var u = d(n, this.clonePosition());
|
|
@@ -3162,7 +3214,7 @@ var Rn = (
|
|
|
3162
3214
|
};
|
|
3163
3215
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3164
3216
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3165
|
-
!
|
|
3217
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3166
3218
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3167
3219
|
if (this.isEOF() || this.char() !== 39)
|
|
3168
3220
|
return null;
|
|
@@ -3196,12 +3248,12 @@ var Rn = (
|
|
|
3196
3248
|
r.push(n);
|
|
3197
3249
|
this.bump();
|
|
3198
3250
|
}
|
|
3199
|
-
return
|
|
3251
|
+
return Re.apply(void 0, r);
|
|
3200
3252
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3201
3253
|
if (this.isEOF())
|
|
3202
3254
|
return null;
|
|
3203
3255
|
var n = this.char();
|
|
3204
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3256
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
3205
3257
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3206
3258
|
var n = this.clonePosition();
|
|
3207
3259
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3230,15 +3282,15 @@ var Rn = (
|
|
|
3230
3282
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3231
3283
|
}
|
|
3232
3284
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3233
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3285
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3234
3286
|
this.bumpTo(i);
|
|
3235
|
-
var o = this.clonePosition(),
|
|
3236
|
-
return { value: n, location:
|
|
3287
|
+
var o = this.clonePosition(), a = d(t, o);
|
|
3288
|
+
return { value: n, location: a };
|
|
3237
3289
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3238
|
-
var o,
|
|
3239
|
-
switch (
|
|
3290
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3291
|
+
switch (s) {
|
|
3240
3292
|
case "":
|
|
3241
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, d(
|
|
3293
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, d(a, u));
|
|
3242
3294
|
case "number":
|
|
3243
3295
|
case "date":
|
|
3244
3296
|
case "time": {
|
|
@@ -3249,19 +3301,19 @@ var Rn = (
|
|
|
3249
3301
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3250
3302
|
if (c.err)
|
|
3251
3303
|
return c;
|
|
3252
|
-
var f =
|
|
3304
|
+
var f = Un(c.val);
|
|
3253
3305
|
if (f.length === 0)
|
|
3254
3306
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3255
3307
|
var m = d(l, this.clonePosition());
|
|
3256
3308
|
h = { style: f, styleLocation: m };
|
|
3257
3309
|
}
|
|
3258
|
-
var
|
|
3259
|
-
if (
|
|
3260
|
-
return
|
|
3310
|
+
var y = this.tryParseArgumentClose(i);
|
|
3311
|
+
if (y.err)
|
|
3312
|
+
return y;
|
|
3261
3313
|
var g = d(i, this.clonePosition());
|
|
3262
|
-
if (h &&
|
|
3263
|
-
var B =
|
|
3264
|
-
if (
|
|
3314
|
+
if (h && ct(h?.style, "::", 0)) {
|
|
3315
|
+
var B = Dn(h.style.slice(2));
|
|
3316
|
+
if (s === "number") {
|
|
3265
3317
|
var c = this.parseNumberSkeletonFromString(B, h.styleLocation);
|
|
3266
3318
|
return c.err ? c : {
|
|
3267
3319
|
val: { type: x.number, value: n, location: g, style: c.val },
|
|
@@ -3271,13 +3323,13 @@ var Rn = (
|
|
|
3271
3323
|
if (B.length === 0)
|
|
3272
3324
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3273
3325
|
var C = B;
|
|
3274
|
-
this.locale && (C =
|
|
3326
|
+
this.locale && (C = Tn(B, this.locale));
|
|
3275
3327
|
var f = {
|
|
3276
3328
|
type: k.dateTime,
|
|
3277
3329
|
pattern: C,
|
|
3278
3330
|
location: h.styleLocation,
|
|
3279
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3280
|
-
}, O =
|
|
3331
|
+
parsedOptions: this.shouldParseSkeletons ? yn(C) : {}
|
|
3332
|
+
}, O = s === "date" ? x.date : x.time;
|
|
3281
3333
|
return {
|
|
3282
3334
|
val: { type: O, value: n, location: g, style: f },
|
|
3283
3335
|
err: null
|
|
@@ -3286,7 +3338,7 @@ var Rn = (
|
|
|
3286
3338
|
}
|
|
3287
3339
|
return {
|
|
3288
3340
|
val: {
|
|
3289
|
-
type:
|
|
3341
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3290
3342
|
value: n,
|
|
3291
3343
|
location: g,
|
|
3292
3344
|
style: (o = h?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3302,7 +3354,7 @@ var Rn = (
|
|
|
3302
3354
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
|
|
3303
3355
|
this.bumpSpace();
|
|
3304
3356
|
var w = this.parseIdentifierIfPossible(), S = 0;
|
|
3305
|
-
if (
|
|
3357
|
+
if (s !== "select" && w.value === "offset") {
|
|
3306
3358
|
if (!this.bumpIf(":"))
|
|
3307
3359
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3308
3360
|
this.bumpSpace();
|
|
@@ -3311,18 +3363,18 @@ var Rn = (
|
|
|
3311
3363
|
return c;
|
|
3312
3364
|
this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = c.val;
|
|
3313
3365
|
}
|
|
3314
|
-
var M = this.tryParsePluralOrSelectOptions(t,
|
|
3366
|
+
var M = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3315
3367
|
if (M.err)
|
|
3316
3368
|
return M;
|
|
3317
|
-
var
|
|
3318
|
-
if (
|
|
3319
|
-
return
|
|
3369
|
+
var y = this.tryParseArgumentClose(i);
|
|
3370
|
+
if (y.err)
|
|
3371
|
+
return y;
|
|
3320
3372
|
var ne = d(i, this.clonePosition());
|
|
3321
|
-
return
|
|
3373
|
+
return s === "select" ? {
|
|
3322
3374
|
val: {
|
|
3323
3375
|
type: x.select,
|
|
3324
3376
|
value: n,
|
|
3325
|
-
options:
|
|
3377
|
+
options: ft(M.val),
|
|
3326
3378
|
location: ne
|
|
3327
3379
|
},
|
|
3328
3380
|
err: null
|
|
@@ -3330,16 +3382,16 @@ var Rn = (
|
|
|
3330
3382
|
val: {
|
|
3331
3383
|
type: x.plural,
|
|
3332
3384
|
value: n,
|
|
3333
|
-
options:
|
|
3385
|
+
options: ft(M.val),
|
|
3334
3386
|
offset: S,
|
|
3335
|
-
pluralType:
|
|
3387
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3336
3388
|
location: ne
|
|
3337
3389
|
},
|
|
3338
3390
|
err: null
|
|
3339
3391
|
};
|
|
3340
3392
|
}
|
|
3341
3393
|
default:
|
|
3342
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, d(
|
|
3394
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, d(a, u));
|
|
3343
3395
|
}
|
|
3344
3396
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3345
3397
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3381,7 +3433,7 @@ var Rn = (
|
|
|
3381
3433
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3382
3434
|
var n = [];
|
|
3383
3435
|
try {
|
|
3384
|
-
n =
|
|
3436
|
+
n = xn(t);
|
|
3385
3437
|
} catch {
|
|
3386
3438
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3387
3439
|
}
|
|
@@ -3390,12 +3442,12 @@ var Rn = (
|
|
|
3390
3442
|
type: k.number,
|
|
3391
3443
|
tokens: n,
|
|
3392
3444
|
location: r,
|
|
3393
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3445
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3394
3446
|
},
|
|
3395
3447
|
err: null
|
|
3396
3448
|
};
|
|
3397
3449
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3398
|
-
for (var o,
|
|
3450
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
|
3399
3451
|
if (h.length === 0) {
|
|
3400
3452
|
var c = this.clonePosition();
|
|
3401
3453
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3408,37 +3460,37 @@ var Rn = (
|
|
|
3408
3460
|
}
|
|
3409
3461
|
if (u.has(h))
|
|
3410
3462
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3411
|
-
h === "other" && (
|
|
3463
|
+
h === "other" && (a = !0), this.bumpSpace();
|
|
3412
3464
|
var m = this.clonePosition();
|
|
3413
3465
|
if (!this.bumpIf("{"))
|
|
3414
3466
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3415
|
-
var
|
|
3416
|
-
if (
|
|
3417
|
-
return
|
|
3467
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3468
|
+
if (y.err)
|
|
3469
|
+
return y;
|
|
3418
3470
|
var g = this.tryParseArgumentClose(m);
|
|
3419
3471
|
if (g.err)
|
|
3420
3472
|
return g;
|
|
3421
|
-
|
|
3473
|
+
s.push([
|
|
3422
3474
|
h,
|
|
3423
3475
|
{
|
|
3424
|
-
value:
|
|
3476
|
+
value: y.val,
|
|
3425
3477
|
location: d(m, this.clonePosition())
|
|
3426
3478
|
}
|
|
3427
3479
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3428
3480
|
}
|
|
3429
|
-
return
|
|
3481
|
+
return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3430
3482
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3431
3483
|
var n = 1, i = this.clonePosition();
|
|
3432
3484
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3433
|
-
for (var o = !1,
|
|
3434
|
-
var
|
|
3435
|
-
if (
|
|
3436
|
-
o = !0,
|
|
3485
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3486
|
+
var s = this.char();
|
|
3487
|
+
if (s >= 48 && s <= 57)
|
|
3488
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3437
3489
|
else
|
|
3438
3490
|
break;
|
|
3439
3491
|
}
|
|
3440
3492
|
var u = d(i, this.clonePosition());
|
|
3441
|
-
return o ? (
|
|
3493
|
+
return o ? (a *= n, $n(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3442
3494
|
}, e.prototype.offset = function() {
|
|
3443
3495
|
return this.position.offset;
|
|
3444
3496
|
}, e.prototype.isEOF = function() {
|
|
@@ -3453,7 +3505,7 @@ var Rn = (
|
|
|
3453
3505
|
var t = this.position.offset;
|
|
3454
3506
|
if (t >= this.message.length)
|
|
3455
3507
|
throw Error("out of bound");
|
|
3456
|
-
var r =
|
|
3508
|
+
var r = Wt(this.message, t);
|
|
3457
3509
|
if (r === void 0)
|
|
3458
3510
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3459
3511
|
return r;
|
|
@@ -3472,7 +3524,7 @@ var Rn = (
|
|
|
3472
3524
|
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);
|
|
3473
3525
|
}
|
|
3474
3526
|
}, e.prototype.bumpIf = function(t) {
|
|
3475
|
-
if (
|
|
3527
|
+
if (ct(this.message, t, this.offset())) {
|
|
3476
3528
|
for (var r = 0; r < t.length; r++)
|
|
3477
3529
|
this.bump();
|
|
3478
3530
|
return !0;
|
|
@@ -3494,7 +3546,7 @@ var Rn = (
|
|
|
3494
3546
|
break;
|
|
3495
3547
|
}
|
|
3496
3548
|
}, e.prototype.bumpSpace = function() {
|
|
3497
|
-
for (; !this.isEOF() &&
|
|
3549
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3498
3550
|
this.bump();
|
|
3499
3551
|
}, e.prototype.peek = function() {
|
|
3500
3552
|
if (this.isEOF())
|
|
@@ -3504,37 +3556,38 @@ var Rn = (
|
|
|
3504
3556
|
}, e;
|
|
3505
3557
|
}()
|
|
3506
3558
|
);
|
|
3507
|
-
function
|
|
3559
|
+
function Ue(e) {
|
|
3508
3560
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3509
3561
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3562
|
+
function Gn(e) {
|
|
3563
|
+
return Ue(e) || e === 47;
|
|
3512
3564
|
}
|
|
3513
|
-
function
|
|
3565
|
+
function jn(e) {
|
|
3514
3566
|
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;
|
|
3515
3567
|
}
|
|
3516
|
-
function
|
|
3568
|
+
function Qt(e) {
|
|
3517
3569
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3518
3570
|
}
|
|
3519
|
-
function
|
|
3571
|
+
function kn(e) {
|
|
3520
3572
|
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;
|
|
3521
3573
|
}
|
|
3522
|
-
function
|
|
3574
|
+
function Fe(e) {
|
|
3523
3575
|
e.forEach(function(t) {
|
|
3524
|
-
if (delete t.location,
|
|
3576
|
+
if (delete t.location, Ut(t) || Ft(t))
|
|
3525
3577
|
for (var r in t.options)
|
|
3526
|
-
delete t.options[r].location,
|
|
3527
|
-
else
|
|
3578
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3579
|
+
else
|
|
3580
|
+
$t(t) && jt(t.style) || (Rt(t) || Dt(t)) && Me(t.style) ? delete t.style.location : Gt(t) && Fe(t.children);
|
|
3528
3581
|
});
|
|
3529
3582
|
}
|
|
3530
|
-
function
|
|
3583
|
+
function Vn(e, t) {
|
|
3531
3584
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3532
|
-
var r = new
|
|
3585
|
+
var r = new Fn(e, t).parse();
|
|
3533
3586
|
if (r.err) {
|
|
3534
3587
|
var n = SyntaxError(p[r.err.kind]);
|
|
3535
3588
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3536
3589
|
}
|
|
3537
|
-
return t?.captureLocation ||
|
|
3590
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3538
3591
|
}
|
|
3539
3592
|
var V;
|
|
3540
3593
|
(function(e) {
|
|
@@ -3552,7 +3605,7 @@ var ge = (
|
|
|
3552
3605
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3553
3606
|
}, t;
|
|
3554
3607
|
}(Error)
|
|
3555
|
-
),
|
|
3608
|
+
), mt = (
|
|
3556
3609
|
/** @class */
|
|
3557
3610
|
function(e) {
|
|
3558
3611
|
A(t, e);
|
|
@@ -3561,7 +3614,7 @@ var ge = (
|
|
|
3561
3614
|
}
|
|
3562
3615
|
return t;
|
|
3563
3616
|
}(ge)
|
|
3564
|
-
),
|
|
3617
|
+
), zn = (
|
|
3565
3618
|
/** @class */
|
|
3566
3619
|
function(e) {
|
|
3567
3620
|
A(t, e);
|
|
@@ -3570,7 +3623,7 @@ var ge = (
|
|
|
3570
3623
|
}
|
|
3571
3624
|
return t;
|
|
3572
3625
|
}(ge)
|
|
3573
|
-
),
|
|
3626
|
+
), Xn = (
|
|
3574
3627
|
/** @class */
|
|
3575
3628
|
function(e) {
|
|
3576
3629
|
A(t, e);
|
|
@@ -3583,34 +3636,34 @@ var ge = (
|
|
|
3583
3636
|
(function(e) {
|
|
3584
3637
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3585
3638
|
})(E || (E = {}));
|
|
3586
|
-
function
|
|
3639
|
+
function Wn(e) {
|
|
3587
3640
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3588
3641
|
var n = t[t.length - 1];
|
|
3589
3642
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3590
3643
|
}, []);
|
|
3591
3644
|
}
|
|
3592
|
-
function
|
|
3645
|
+
function Zn(e) {
|
|
3593
3646
|
return typeof e == "function";
|
|
3594
3647
|
}
|
|
3595
|
-
function le(e, t, r, n, i, o,
|
|
3596
|
-
if (e.length === 1 &&
|
|
3648
|
+
function le(e, t, r, n, i, o, a) {
|
|
3649
|
+
if (e.length === 1 && at(e[0]))
|
|
3597
3650
|
return [
|
|
3598
3651
|
{
|
|
3599
3652
|
type: E.literal,
|
|
3600
3653
|
value: e[0].value
|
|
3601
3654
|
}
|
|
3602
3655
|
];
|
|
3603
|
-
for (var
|
|
3656
|
+
for (var s = [], u = 0, h = e; u < h.length; u++) {
|
|
3604
3657
|
var l = h[u];
|
|
3605
|
-
if (
|
|
3606
|
-
|
|
3658
|
+
if (at(l)) {
|
|
3659
|
+
s.push({
|
|
3607
3660
|
type: E.literal,
|
|
3608
3661
|
value: l.value
|
|
3609
3662
|
});
|
|
3610
3663
|
continue;
|
|
3611
3664
|
}
|
|
3612
|
-
if (
|
|
3613
|
-
typeof o == "number" &&
|
|
3665
|
+
if (bn(l)) {
|
|
3666
|
+
typeof o == "number" && s.push({
|
|
3614
3667
|
type: E.literal,
|
|
3615
3668
|
value: r.getNumberFormat(t).format(o)
|
|
3616
3669
|
});
|
|
@@ -3618,89 +3671,89 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3618
3671
|
}
|
|
3619
3672
|
var c = l.value;
|
|
3620
3673
|
if (!(i && c in i))
|
|
3621
|
-
throw new
|
|
3674
|
+
throw new Xn(c, a);
|
|
3622
3675
|
var f = i[c];
|
|
3623
|
-
if (
|
|
3624
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3676
|
+
if (dn(l)) {
|
|
3677
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3625
3678
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3626
3679
|
value: f
|
|
3627
3680
|
});
|
|
3628
3681
|
continue;
|
|
3629
3682
|
}
|
|
3630
|
-
if (
|
|
3631
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3632
|
-
|
|
3683
|
+
if (Rt(l)) {
|
|
3684
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3685
|
+
s.push({
|
|
3633
3686
|
type: E.literal,
|
|
3634
3687
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3635
3688
|
});
|
|
3636
3689
|
continue;
|
|
3637
3690
|
}
|
|
3638
|
-
if (
|
|
3639
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3640
|
-
|
|
3691
|
+
if (Dt(l)) {
|
|
3692
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3693
|
+
s.push({
|
|
3641
3694
|
type: E.literal,
|
|
3642
3695
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3643
3696
|
});
|
|
3644
3697
|
continue;
|
|
3645
3698
|
}
|
|
3646
|
-
if (
|
|
3647
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3648
|
-
m && m.scale && (f = f * (m.scale || 1)),
|
|
3699
|
+
if ($t(l)) {
|
|
3700
|
+
var m = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3701
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3649
3702
|
type: E.literal,
|
|
3650
3703
|
value: r.getNumberFormat(t, m).format(f)
|
|
3651
3704
|
});
|
|
3652
3705
|
continue;
|
|
3653
3706
|
}
|
|
3654
|
-
if (
|
|
3655
|
-
var
|
|
3656
|
-
if (!
|
|
3657
|
-
throw new
|
|
3658
|
-
var C = le(
|
|
3707
|
+
if (Gt(l)) {
|
|
3708
|
+
var y = l.children, g = l.value, B = i[g];
|
|
3709
|
+
if (!Zn(B))
|
|
3710
|
+
throw new zn(g, "function", a);
|
|
3711
|
+
var C = le(y, t, r, n, i, o), O = B(C.map(function(S) {
|
|
3659
3712
|
return S.value;
|
|
3660
3713
|
}));
|
|
3661
|
-
Array.isArray(O) || (O = [O]),
|
|
3714
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
|
|
3662
3715
|
return {
|
|
3663
3716
|
type: typeof S == "string" ? E.literal : E.object,
|
|
3664
3717
|
value: S
|
|
3665
3718
|
};
|
|
3666
3719
|
}));
|
|
3667
3720
|
}
|
|
3668
|
-
if (
|
|
3721
|
+
if (Ut(l)) {
|
|
3669
3722
|
var _ = l.options[f] || l.options.other;
|
|
3670
3723
|
if (!_)
|
|
3671
|
-
throw new
|
|
3672
|
-
|
|
3724
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3725
|
+
s.push.apply(s, le(_.value, t, r, n, i));
|
|
3673
3726
|
continue;
|
|
3674
3727
|
}
|
|
3675
|
-
if (
|
|
3728
|
+
if (Ft(l)) {
|
|
3676
3729
|
var _ = l.options["=".concat(f)];
|
|
3677
3730
|
if (!_) {
|
|
3678
3731
|
if (!Intl.PluralRules)
|
|
3679
3732
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3680
3733
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3681
|
-
`, V.MISSING_INTL_API,
|
|
3734
|
+
`, V.MISSING_INTL_API, a);
|
|
3682
3735
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3683
3736
|
_ = l.options[w] || l.options.other;
|
|
3684
3737
|
}
|
|
3685
3738
|
if (!_)
|
|
3686
|
-
throw new
|
|
3687
|
-
|
|
3739
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3740
|
+
s.push.apply(s, le(_.value, t, r, n, i, f - (l.offset || 0)));
|
|
3688
3741
|
continue;
|
|
3689
3742
|
}
|
|
3690
3743
|
}
|
|
3691
|
-
return
|
|
3744
|
+
return Wn(s);
|
|
3692
3745
|
}
|
|
3693
|
-
function
|
|
3746
|
+
function Qn(e, t) {
|
|
3694
3747
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3695
3748
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3696
3749
|
}, {})) : e;
|
|
3697
3750
|
}
|
|
3698
|
-
function
|
|
3751
|
+
function Jn(e, t) {
|
|
3699
3752
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3700
|
-
return r[n] =
|
|
3753
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3701
3754
|
}, b({}, e)) : e;
|
|
3702
3755
|
}
|
|
3703
|
-
function
|
|
3756
|
+
function we(e) {
|
|
3704
3757
|
return {
|
|
3705
3758
|
create: function() {
|
|
3706
3759
|
return {
|
|
@@ -3714,39 +3767,39 @@ function Te(e) {
|
|
|
3714
3767
|
}
|
|
3715
3768
|
};
|
|
3716
3769
|
}
|
|
3717
|
-
function
|
|
3770
|
+
function Yn(e) {
|
|
3718
3771
|
return e === void 0 && (e = {
|
|
3719
3772
|
number: {},
|
|
3720
3773
|
dateTime: {},
|
|
3721
3774
|
pluralRules: {}
|
|
3722
3775
|
}), {
|
|
3723
|
-
getNumberFormat:
|
|
3776
|
+
getNumberFormat: Se(function() {
|
|
3724
3777
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3725
3778
|
r[n] = arguments[n];
|
|
3726
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3779
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3727
3780
|
}, {
|
|
3728
|
-
cache:
|
|
3729
|
-
strategy:
|
|
3781
|
+
cache: we(e.number),
|
|
3782
|
+
strategy: Be.variadic
|
|
3730
3783
|
}),
|
|
3731
|
-
getDateTimeFormat:
|
|
3784
|
+
getDateTimeFormat: Se(function() {
|
|
3732
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3733
3786
|
r[n] = arguments[n];
|
|
3734
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3787
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3735
3788
|
}, {
|
|
3736
|
-
cache:
|
|
3737
|
-
strategy:
|
|
3789
|
+
cache: we(e.dateTime),
|
|
3790
|
+
strategy: Be.variadic
|
|
3738
3791
|
}),
|
|
3739
|
-
getPluralRules:
|
|
3792
|
+
getPluralRules: Se(function() {
|
|
3740
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3741
3794
|
r[n] = arguments[n];
|
|
3742
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
|
|
3743
3796
|
}, {
|
|
3744
|
-
cache:
|
|
3745
|
-
strategy:
|
|
3797
|
+
cache: we(e.pluralRules),
|
|
3798
|
+
strategy: Be.variadic
|
|
3746
3799
|
})
|
|
3747
3800
|
};
|
|
3748
3801
|
}
|
|
3749
|
-
var
|
|
3802
|
+
var qn = (
|
|
3750
3803
|
/** @class */
|
|
3751
3804
|
function() {
|
|
3752
3805
|
function e(t, r, n, i) {
|
|
@@ -3776,15 +3829,15 @@ var Qn = (
|
|
|
3776
3829
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3777
3830
|
if (this.message = t, !e.__parse)
|
|
3778
3831
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3779
|
-
var
|
|
3780
|
-
|
|
3781
|
-
var
|
|
3782
|
-
this.ast = e.__parse(t, b(b({},
|
|
3832
|
+
var a = i || {};
|
|
3833
|
+
a.formatters;
|
|
3834
|
+
var s = Or(a, ["formatters"]);
|
|
3835
|
+
this.ast = e.__parse(t, b(b({}, s), { locale: this.resolvedLocale }));
|
|
3783
3836
|
} else
|
|
3784
3837
|
this.ast = t;
|
|
3785
3838
|
if (!Array.isArray(this.ast))
|
|
3786
3839
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3787
|
-
this.formats =
|
|
3840
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3788
3841
|
}
|
|
3789
3842
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3790
3843
|
get: function() {
|
|
@@ -3797,7 +3850,7 @@ var Qn = (
|
|
|
3797
3850
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3798
3851
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3799
3852
|
}
|
|
3800
|
-
}, e.__parse =
|
|
3853
|
+
}, e.__parse = Vn, e.formats = {
|
|
3801
3854
|
number: {
|
|
3802
3855
|
integer: {
|
|
3803
3856
|
maximumFractionDigits: 0
|
|
@@ -3858,7 +3911,7 @@ var Qn = (
|
|
|
3858
3911
|
}, e;
|
|
3859
3912
|
}()
|
|
3860
3913
|
);
|
|
3861
|
-
function
|
|
3914
|
+
function Kn(e, t) {
|
|
3862
3915
|
if (t == null)
|
|
3863
3916
|
return;
|
|
3864
3917
|
if (t in e)
|
|
@@ -3879,92 +3932,92 @@ function Jn(e, t) {
|
|
|
3879
3932
|
n = void 0;
|
|
3880
3933
|
return n;
|
|
3881
3934
|
}
|
|
3882
|
-
const I = {},
|
|
3935
|
+
const I = {}, ei = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
|
|
3883
3936
|
if (t == null)
|
|
3884
3937
|
return;
|
|
3885
3938
|
if (t in I && e in I[t])
|
|
3886
3939
|
return I[t][e];
|
|
3887
|
-
const r =
|
|
3940
|
+
const r = ye(t);
|
|
3888
3941
|
for (let n = 0; n < r.length; n++) {
|
|
3889
|
-
const i = r[n], o =
|
|
3942
|
+
const i = r[n], o = ri(i, e);
|
|
3890
3943
|
if (o)
|
|
3891
|
-
return
|
|
3944
|
+
return ei(e, t, o);
|
|
3892
3945
|
}
|
|
3893
3946
|
};
|
|
3894
|
-
let
|
|
3947
|
+
let We;
|
|
3895
3948
|
const re = be({});
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3949
|
+
function ti(e) {
|
|
3950
|
+
return We[e] || null;
|
|
3898
3951
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return e in
|
|
3952
|
+
function Yt(e) {
|
|
3953
|
+
return e in We;
|
|
3901
3954
|
}
|
|
3902
|
-
function
|
|
3903
|
-
if (!
|
|
3955
|
+
function ri(e, t) {
|
|
3956
|
+
if (!Yt(e))
|
|
3904
3957
|
return null;
|
|
3905
|
-
const r =
|
|
3906
|
-
return
|
|
3958
|
+
const r = ti(e);
|
|
3959
|
+
return Kn(r, t);
|
|
3907
3960
|
}
|
|
3908
|
-
function
|
|
3961
|
+
function ni(e) {
|
|
3909
3962
|
if (e == null)
|
|
3910
3963
|
return;
|
|
3911
|
-
const t =
|
|
3964
|
+
const t = ye(e);
|
|
3912
3965
|
for (let r = 0; r < t.length; r++) {
|
|
3913
3966
|
const n = t[r];
|
|
3914
|
-
if (
|
|
3967
|
+
if (Yt(n))
|
|
3915
3968
|
return n;
|
|
3916
3969
|
}
|
|
3917
3970
|
}
|
|
3918
|
-
function
|
|
3919
|
-
delete I[e], re.update((r) => (r[e] =
|
|
3971
|
+
function qt(e, ...t) {
|
|
3972
|
+
delete I[e], re.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
|
|
3920
3973
|
}
|
|
3921
|
-
|
|
3974
|
+
X(
|
|
3922
3975
|
[re],
|
|
3923
3976
|
([e]) => Object.keys(e)
|
|
3924
3977
|
);
|
|
3925
|
-
re.subscribe((e) =>
|
|
3978
|
+
re.subscribe((e) => We = e);
|
|
3926
3979
|
const ce = {};
|
|
3927
|
-
function
|
|
3980
|
+
function ii(e, t) {
|
|
3928
3981
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3929
3982
|
}
|
|
3930
|
-
function
|
|
3983
|
+
function Kt(e) {
|
|
3931
3984
|
return ce[e];
|
|
3932
3985
|
}
|
|
3933
|
-
function
|
|
3934
|
-
return
|
|
3935
|
-
const r =
|
|
3986
|
+
function oi(e) {
|
|
3987
|
+
return ye(e).map((t) => {
|
|
3988
|
+
const r = Kt(t);
|
|
3936
3989
|
return [t, r ? [...r] : []];
|
|
3937
3990
|
}).filter(([, t]) => t.length > 0);
|
|
3938
3991
|
}
|
|
3939
3992
|
function Ge(e) {
|
|
3940
|
-
return e == null ? !1 :
|
|
3993
|
+
return e == null ? !1 : ye(e).some(
|
|
3941
3994
|
(t) => {
|
|
3942
3995
|
var r;
|
|
3943
|
-
return (r =
|
|
3996
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3944
3997
|
}
|
|
3945
3998
|
);
|
|
3946
3999
|
}
|
|
3947
|
-
function
|
|
4000
|
+
function si(e, t) {
|
|
3948
4001
|
return Promise.all(
|
|
3949
|
-
t.map((n) => (
|
|
3950
|
-
).then((n) =>
|
|
4002
|
+
t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
|
|
4003
|
+
).then((n) => qt(e, ...n));
|
|
3951
4004
|
}
|
|
3952
4005
|
const Q = {};
|
|
3953
|
-
function
|
|
4006
|
+
function er(e) {
|
|
3954
4007
|
if (!Ge(e))
|
|
3955
4008
|
return e in Q ? Q[e] : Promise.resolve();
|
|
3956
|
-
const t =
|
|
4009
|
+
const t = oi(e);
|
|
3957
4010
|
return Q[e] = Promise.all(
|
|
3958
4011
|
t.map(
|
|
3959
|
-
([r, n]) =>
|
|
4012
|
+
([r, n]) => si(r, n)
|
|
3960
4013
|
)
|
|
3961
4014
|
).then(() => {
|
|
3962
4015
|
if (Ge(e))
|
|
3963
|
-
return
|
|
4016
|
+
return er(e);
|
|
3964
4017
|
delete Q[e];
|
|
3965
4018
|
}), Q[e];
|
|
3966
4019
|
}
|
|
3967
|
-
const
|
|
4020
|
+
const ai = {
|
|
3968
4021
|
number: {
|
|
3969
4022
|
scientific: { notation: "scientific" },
|
|
3970
4023
|
engineering: { notation: "engineering" },
|
|
@@ -3993,100 +4046,100 @@ const ii = {
|
|
|
3993
4046
|
timeZoneName: "short"
|
|
3994
4047
|
}
|
|
3995
4048
|
}
|
|
3996
|
-
},
|
|
4049
|
+
}, ui = {
|
|
3997
4050
|
fallbackLocale: null,
|
|
3998
4051
|
loadingDelay: 200,
|
|
3999
|
-
formats:
|
|
4052
|
+
formats: ai,
|
|
4000
4053
|
warnOnMissingMessages: !0,
|
|
4001
4054
|
handleMissingMessage: void 0,
|
|
4002
4055
|
ignoreTag: !0
|
|
4003
|
-
},
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
4056
|
+
}, hi = ui;
|
|
4057
|
+
function z() {
|
|
4058
|
+
return hi;
|
|
4006
4059
|
}
|
|
4007
|
-
const
|
|
4008
|
-
var
|
|
4060
|
+
const He = be(!1);
|
|
4061
|
+
var li = Object.defineProperty, ci = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4009
4062
|
for (var r in t || (t = {}))
|
|
4010
|
-
|
|
4011
|
-
if (
|
|
4012
|
-
for (var r of
|
|
4013
|
-
|
|
4063
|
+
pi.call(t, r) && bt(e, r, t[r]);
|
|
4064
|
+
if (dt)
|
|
4065
|
+
for (var r of dt(t))
|
|
4066
|
+
mi.call(t, r) && bt(e, r, t[r]);
|
|
4014
4067
|
return e;
|
|
4015
|
-
},
|
|
4016
|
-
let
|
|
4068
|
+
}, bi = (e, t) => ci(e, fi(t));
|
|
4069
|
+
let je;
|
|
4017
4070
|
const pe = be(null);
|
|
4018
|
-
function
|
|
4071
|
+
function gt(e) {
|
|
4019
4072
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4020
4073
|
}
|
|
4021
|
-
function
|
|
4022
|
-
const r =
|
|
4023
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4074
|
+
function ye(e, t = z().fallbackLocale) {
|
|
4075
|
+
const r = gt(e);
|
|
4076
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4024
4077
|
}
|
|
4025
|
-
function
|
|
4026
|
-
return
|
|
4078
|
+
function N() {
|
|
4079
|
+
return je ?? void 0;
|
|
4027
4080
|
}
|
|
4028
4081
|
pe.subscribe((e) => {
|
|
4029
|
-
|
|
4082
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4030
4083
|
});
|
|
4031
|
-
const
|
|
4032
|
-
if (e &&
|
|
4033
|
-
const { loadingDelay: t } =
|
|
4084
|
+
const gi = (e) => {
|
|
4085
|
+
if (e && ni(e) && Ge(e)) {
|
|
4086
|
+
const { loadingDelay: t } = z();
|
|
4034
4087
|
let r;
|
|
4035
|
-
return typeof window < "u" &&
|
|
4036
|
-
() =>
|
|
4088
|
+
return typeof window < "u" && N() != null && t ? r = window.setTimeout(
|
|
4089
|
+
() => He.set(!0),
|
|
4037
4090
|
t
|
|
4038
|
-
) :
|
|
4091
|
+
) : He.set(!0), er(e).then(() => {
|
|
4039
4092
|
pe.set(e);
|
|
4040
4093
|
}).finally(() => {
|
|
4041
|
-
clearTimeout(r),
|
|
4094
|
+
clearTimeout(r), He.set(!1);
|
|
4042
4095
|
});
|
|
4043
4096
|
}
|
|
4044
4097
|
return pe.set(e);
|
|
4045
|
-
}, W =
|
|
4046
|
-
set:
|
|
4047
|
-
}),
|
|
4098
|
+
}, W = bi(di({}, pe), {
|
|
4099
|
+
set: gi
|
|
4100
|
+
}), ve = (e) => {
|
|
4048
4101
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4049
4102
|
return (n) => {
|
|
4050
4103
|
const i = JSON.stringify(n);
|
|
4051
4104
|
return i in t ? t[i] : t[i] = e(n);
|
|
4052
4105
|
};
|
|
4053
4106
|
};
|
|
4054
|
-
var
|
|
4107
|
+
var yi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4055
4108
|
for (var r in t || (t = {}))
|
|
4056
|
-
|
|
4109
|
+
tr.call(t, r) && yt(e, r, t[r]);
|
|
4057
4110
|
if (me)
|
|
4058
4111
|
for (var r of me(t))
|
|
4059
|
-
|
|
4112
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4060
4113
|
return e;
|
|
4061
4114
|
}, Z = (e, t) => {
|
|
4062
4115
|
var r = {};
|
|
4063
4116
|
for (var n in e)
|
|
4064
|
-
|
|
4117
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4065
4118
|
if (e != null && me)
|
|
4066
4119
|
for (var n of me(e))
|
|
4067
|
-
t.indexOf(n) < 0 &&
|
|
4120
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4068
4121
|
return r;
|
|
4069
4122
|
};
|
|
4070
4123
|
const ee = (e, t) => {
|
|
4071
|
-
const { formats: r } =
|
|
4124
|
+
const { formats: r } = z();
|
|
4072
4125
|
if (e in r && t in r[e])
|
|
4073
4126
|
return r[e][t];
|
|
4074
4127
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4075
|
-
},
|
|
4128
|
+
}, vi = ve(
|
|
4076
4129
|
(e) => {
|
|
4077
4130
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4078
4131
|
if (r == null)
|
|
4079
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4080
4133
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4081
4134
|
}
|
|
4082
|
-
),
|
|
4135
|
+
), xi = ve(
|
|
4083
4136
|
(e) => {
|
|
4084
4137
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4085
4138
|
if (r == null)
|
|
4086
4139
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4087
4140
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4088
4141
|
}
|
|
4089
|
-
),
|
|
4142
|
+
), Ei = ve(
|
|
4090
4143
|
(e) => {
|
|
4091
4144
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4092
4145
|
if (r == null)
|
|
@@ -4095,57 +4148,57 @@ const ee = (e, t) => {
|
|
|
4095
4148
|
);
|
|
4096
4149
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4097
4150
|
}
|
|
4098
|
-
),
|
|
4151
|
+
), _i = (e = {}) => {
|
|
4099
4152
|
var t = e, {
|
|
4100
|
-
locale: r =
|
|
4153
|
+
locale: r = N()
|
|
4101
4154
|
} = t, n = Z(t, [
|
|
4102
4155
|
"locale"
|
|
4103
4156
|
]);
|
|
4104
|
-
return
|
|
4105
|
-
},
|
|
4157
|
+
return vi(Ze({ locale: r }, n));
|
|
4158
|
+
}, Si = (e = {}) => {
|
|
4106
4159
|
var t = e, {
|
|
4107
|
-
locale: r =
|
|
4160
|
+
locale: r = N()
|
|
4108
4161
|
} = t, n = Z(t, [
|
|
4109
4162
|
"locale"
|
|
4110
4163
|
]);
|
|
4111
|
-
return
|
|
4112
|
-
},
|
|
4164
|
+
return xi(Ze({ locale: r }, n));
|
|
4165
|
+
}, Bi = (e = {}) => {
|
|
4113
4166
|
var t = e, {
|
|
4114
|
-
locale: r =
|
|
4167
|
+
locale: r = N()
|
|
4115
4168
|
} = t, n = Z(t, [
|
|
4116
4169
|
"locale"
|
|
4117
4170
|
]);
|
|
4118
|
-
return
|
|
4119
|
-
},
|
|
4171
|
+
return Ei(Ze({ locale: r }, n));
|
|
4172
|
+
}, Ti = ve(
|
|
4120
4173
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4121
|
-
(e, t =
|
|
4122
|
-
ignoreTag:
|
|
4174
|
+
(e, t = N()) => new qn(e, t, z().formats, {
|
|
4175
|
+
ignoreTag: z().ignoreTag
|
|
4123
4176
|
})
|
|
4124
|
-
),
|
|
4177
|
+
), wi = (e, t = {}) => {
|
|
4125
4178
|
var r, n, i, o;
|
|
4126
|
-
let
|
|
4127
|
-
typeof e == "object" && (
|
|
4179
|
+
let a = t;
|
|
4180
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4128
4181
|
const {
|
|
4129
|
-
values:
|
|
4130
|
-
locale: u =
|
|
4182
|
+
values: s,
|
|
4183
|
+
locale: u = N(),
|
|
4131
4184
|
default: h
|
|
4132
|
-
} =
|
|
4185
|
+
} = a;
|
|
4133
4186
|
if (u == null)
|
|
4134
4187
|
throw new Error(
|
|
4135
4188
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4136
4189
|
);
|
|
4137
|
-
let l =
|
|
4190
|
+
let l = Jt(e, u);
|
|
4138
4191
|
if (!l)
|
|
4139
|
-
l = (o = (i = (n = (r =
|
|
4192
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4140
4193
|
else if (typeof l != "string")
|
|
4141
4194
|
return console.warn(
|
|
4142
4195
|
`[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.`
|
|
4143
4196
|
), l;
|
|
4144
|
-
if (!
|
|
4197
|
+
if (!s)
|
|
4145
4198
|
return l;
|
|
4146
4199
|
let c = l;
|
|
4147
4200
|
try {
|
|
4148
|
-
c =
|
|
4201
|
+
c = Ti(l, u).format(s);
|
|
4149
4202
|
} catch (f) {
|
|
4150
4203
|
f instanceof Error && console.warn(
|
|
4151
4204
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4153,20 +4206,20 @@ const ee = (e, t) => {
|
|
|
4153
4206
|
);
|
|
4154
4207
|
}
|
|
4155
4208
|
return c;
|
|
4156
|
-
},
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
window.emWidgets = { topic:
|
|
4209
|
+
}, Hi = (e, t) => Bi(t).format(e), Pi = (e, t) => Si(t).format(e), Ai = (e, t) => _i(t).format(e), Oi = (e, t = N()) => Jt(e, t), Ii = X([W, re], () => wi);
|
|
4210
|
+
X([W], () => Hi);
|
|
4211
|
+
X([W], () => Pi);
|
|
4212
|
+
X([W], () => Ai);
|
|
4213
|
+
X([W, re], () => Oi);
|
|
4214
|
+
window.emWidgets = { topic: Vr };
|
|
4162
4215
|
const se = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4163
|
-
function
|
|
4164
|
-
|
|
4216
|
+
function vt(e, t) {
|
|
4217
|
+
qt(e, t);
|
|
4165
4218
|
}
|
|
4166
|
-
function
|
|
4219
|
+
function Ci(e) {
|
|
4167
4220
|
W.set(e);
|
|
4168
4221
|
}
|
|
4169
|
-
const
|
|
4222
|
+
const xt = {
|
|
4170
4223
|
en: {
|
|
4171
4224
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4172
4225
|
},
|
|
@@ -4207,113 +4260,113 @@ const gt = {
|
|
|
4207
4260
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4208
4261
|
}
|
|
4209
4262
|
};
|
|
4210
|
-
function
|
|
4211
|
-
|
|
4263
|
+
function Li(e) {
|
|
4264
|
+
or(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4212
4265
|
}
|
|
4213
|
-
function
|
|
4266
|
+
function Ni(e) {
|
|
4214
4267
|
let t, r, n, i = (
|
|
4215
4268
|
/*customtext*/
|
|
4216
4269
|
(e[0] || /*$_*/
|
|
4217
4270
|
e[5]("panicButtonString")) + ""
|
|
4218
|
-
), o,
|
|
4271
|
+
), o, a;
|
|
4219
4272
|
return {
|
|
4220
4273
|
c() {
|
|
4221
|
-
t = J("div"), r = J("div"), n = J("button"), o =
|
|
4274
|
+
t = J("div"), r = J("div"), n = J("button"), o = ur(i), L(n, "class", "PanicButton " + (se(
|
|
4222
4275
|
/*userAgent*/
|
|
4223
4276
|
e[6]
|
|
4224
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4277
|
+
) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (se(
|
|
4225
4278
|
/*userAgent*/
|
|
4226
4279
|
e[6]
|
|
4227
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4280
|
+
) !== "PC" ? "PanicButtonMobile" : "")), Ye(
|
|
4228
4281
|
n,
|
|
4229
4282
|
"PanicButtonAnimation",
|
|
4230
4283
|
/*panicLoading*/
|
|
4231
4284
|
e[4]
|
|
4232
|
-
),
|
|
4285
|
+
), L(r, "class", "PanicSection " + (se(
|
|
4233
4286
|
/*userAgent*/
|
|
4234
4287
|
e[6]
|
|
4235
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4288
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (se(
|
|
4236
4289
|
/*userAgent*/
|
|
4237
4290
|
e[6]
|
|
4238
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4291
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", a = /*alternativestyling*/
|
|
4239
4292
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4240
4293
|
},
|
|
4241
|
-
m(
|
|
4242
|
-
|
|
4294
|
+
m(s, u) {
|
|
4295
|
+
Bt(s, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
|
|
4243
4296
|
},
|
|
4244
|
-
p(
|
|
4297
|
+
p(s, [u]) {
|
|
4245
4298
|
u & /*customtext, $_*/
|
|
4246
4299
|
33 && i !== (i = /*customtext*/
|
|
4247
|
-
(
|
|
4248
|
-
|
|
4249
|
-
16 &&
|
|
4300
|
+
(s[0] || /*$_*/
|
|
4301
|
+
s[5]("panicButtonString")) + "") && lr(o, i), u & /*panicLoading*/
|
|
4302
|
+
16 && Ye(
|
|
4250
4303
|
n,
|
|
4251
4304
|
"PanicButtonAnimation",
|
|
4252
4305
|
/*panicLoading*/
|
|
4253
|
-
|
|
4306
|
+
s[4]
|
|
4254
4307
|
), u & /*alternativestyling*/
|
|
4255
|
-
2 &&
|
|
4256
|
-
|
|
4308
|
+
2 && a !== (a = /*alternativestyling*/
|
|
4309
|
+
s[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", a);
|
|
4257
4310
|
},
|
|
4258
4311
|
i: T,
|
|
4259
4312
|
o: T,
|
|
4260
|
-
d(
|
|
4261
|
-
|
|
4313
|
+
d(s) {
|
|
4314
|
+
s && Ve(t), e[12](null), e[13](null);
|
|
4262
4315
|
}
|
|
4263
4316
|
};
|
|
4264
4317
|
}
|
|
4265
|
-
function
|
|
4318
|
+
function Mi(e, t, r) {
|
|
4266
4319
|
let n;
|
|
4267
|
-
|
|
4268
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling:
|
|
4320
|
+
ir(e, Ii, (v) => r(5, n = v));
|
|
4321
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, y = 0, g, B = window.navigator.userAgent;
|
|
4269
4322
|
const C = () => {
|
|
4270
4323
|
fetch(l).then(($) => $.json()).then(($) => {
|
|
4271
|
-
Object.keys($).forEach((
|
|
4272
|
-
|
|
4324
|
+
Object.keys($).forEach((Qe) => {
|
|
4325
|
+
vt(Qe, $[Qe]);
|
|
4273
4326
|
});
|
|
4274
4327
|
}).catch(($) => {
|
|
4275
4328
|
console.log($);
|
|
4276
4329
|
});
|
|
4277
4330
|
};
|
|
4278
|
-
Object.keys(
|
|
4279
|
-
|
|
4331
|
+
Object.keys(xt).forEach((v) => {
|
|
4332
|
+
vt(v, xt[v]);
|
|
4280
4333
|
});
|
|
4281
4334
|
const O = () => {
|
|
4282
4335
|
c?.addEventListener("mousedown", w, !1), c?.addEventListener("touchstart", w, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
|
|
4283
4336
|
}, _ = () => {
|
|
4284
4337
|
r(4, m = !1), c?.removeEventListener("mousedown", w), c?.removeEventListener("touchstart", w), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
|
|
4285
4338
|
}, w = () => {
|
|
4286
|
-
|
|
4339
|
+
y = 0, r(4, m = !0), g = setInterval(
|
|
4287
4340
|
() => {
|
|
4288
|
-
|
|
4341
|
+
y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4289
4342
|
},
|
|
4290
4343
|
1e3
|
|
4291
4344
|
);
|
|
4292
4345
|
}, S = () => {
|
|
4293
4346
|
r(4, m = !1), clearInterval(g);
|
|
4294
4347
|
};
|
|
4295
|
-
|
|
4348
|
+
pr(() => () => {
|
|
4296
4349
|
_();
|
|
4297
4350
|
});
|
|
4298
|
-
function M(
|
|
4299
|
-
fe[
|
|
4300
|
-
c =
|
|
4351
|
+
function M(v) {
|
|
4352
|
+
fe[v ? "unshift" : "push"](() => {
|
|
4353
|
+
c = v, r(2, c);
|
|
4301
4354
|
});
|
|
4302
4355
|
}
|
|
4303
|
-
function ne(
|
|
4304
|
-
fe[
|
|
4305
|
-
f =
|
|
4356
|
+
function ne(v) {
|
|
4357
|
+
fe[v ? "unshift" : "push"](() => {
|
|
4358
|
+
f = v, r(3, f);
|
|
4306
4359
|
});
|
|
4307
4360
|
}
|
|
4308
|
-
return e.$$set = (
|
|
4309
|
-
"lang" in
|
|
4361
|
+
return e.$$set = (v) => {
|
|
4362
|
+
"lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8, a = v.clientstyling), "clientstylingurl" in v && r(9, s = v.clientstylingurl), "mbsource" in v && r(10, u = v.mbsource), "alternativestyling" in v && r(1, h = v.alternativestyling), "translationurl" in v && r(11, l = v.translationurl);
|
|
4310
4363
|
}, e.$$.update = () => {
|
|
4311
4364
|
e.$$.dirty & /*panicButton*/
|
|
4312
4365
|
4 && c && O(), e.$$.dirty & /*lang*/
|
|
4313
|
-
128 && i &&
|
|
4314
|
-
264 &&
|
|
4315
|
-
520 &&
|
|
4316
|
-
1032 && u && f &&
|
|
4366
|
+
128 && i && Ci(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4367
|
+
264 && a && f && Hr(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4368
|
+
520 && s && f && Pr(f, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4369
|
+
1032 && u && f && Ar(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4317
4370
|
2048 && l && C();
|
|
4318
4371
|
}, [
|
|
4319
4372
|
o,
|
|
@@ -4324,22 +4377,22 @@ function Ci(e, t, r) {
|
|
|
4324
4377
|
n,
|
|
4325
4378
|
B,
|
|
4326
4379
|
i,
|
|
4327
|
-
s,
|
|
4328
4380
|
a,
|
|
4381
|
+
s,
|
|
4329
4382
|
u,
|
|
4330
4383
|
l,
|
|
4331
4384
|
M,
|
|
4332
4385
|
ne
|
|
4333
4386
|
];
|
|
4334
4387
|
}
|
|
4335
|
-
class
|
|
4388
|
+
class $i extends Tr {
|
|
4336
4389
|
constructor(t) {
|
|
4337
|
-
super(),
|
|
4390
|
+
super(), Sr(
|
|
4338
4391
|
this,
|
|
4339
4392
|
t,
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4393
|
+
Mi,
|
|
4394
|
+
Ni,
|
|
4395
|
+
_t,
|
|
4343
4396
|
{
|
|
4344
4397
|
lang: 7,
|
|
4345
4398
|
customtext: 0,
|
|
@@ -4349,7 +4402,7 @@ class Ni extends Er {
|
|
|
4349
4402
|
alternativestyling: 1,
|
|
4350
4403
|
translationurl: 11
|
|
4351
4404
|
},
|
|
4352
|
-
|
|
4405
|
+
Li
|
|
4353
4406
|
);
|
|
4354
4407
|
}
|
|
4355
4408
|
get lang() {
|
|
@@ -4395,7 +4448,7 @@ class Ni extends Er {
|
|
|
4395
4448
|
this.$$set({ translationurl: t }), H();
|
|
4396
4449
|
}
|
|
4397
4450
|
}
|
|
4398
|
-
|
|
4451
|
+
Br($i, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4399
4452
|
export {
|
|
4400
|
-
|
|
4453
|
+
$i as P
|
|
4401
4454
|
};
|