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