@everymatrix/general-logout 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DEjIkV1X.js → GeneralLogout-90I6wX8N.js} +547 -525
- package/components/{GeneralLogout-DUbY195l.js → GeneralLogout-BKgo8CdR.js} +564 -542
- package/components/GeneralLogout-l09Vae1O.cjs +5 -0
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
- package/components/GeneralLogout-dsqHnt6i.cjs +0 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function _t(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function qe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(_t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ar(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Tt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function _t(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 ur(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function _(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function hr(e, t, r) {
|
|
37
|
+
const n = lr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = I("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function lr(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,8 +49,8 @@ function sr(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function cr(e, t) {
|
|
53
|
+
return _(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
56
56
|
t
|
|
@@ -71,26 +71,26 @@ function K(e) {
|
|
|
71
71
|
function be(e) {
|
|
72
72
|
return document.createTextNode(e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function fr() {
|
|
75
75
|
return be(" ");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ht(e, t, r, n) {
|
|
78
78
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
79
79
|
}
|
|
80
80
|
function T(e, t, r) {
|
|
81
81
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function pr(e) {
|
|
84
84
|
return Array.from(e.childNodes);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Bt(e, t) {
|
|
87
87
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
88
88
|
t);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function dr(e, t, r, n) {
|
|
91
91
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function mr(e) {
|
|
94
94
|
const t = {};
|
|
95
95
|
return e.childNodes.forEach(
|
|
96
96
|
/** @param {Element} node */
|
|
@@ -99,77 +99,77 @@ function cr(e) {
|
|
|
99
99
|
}
|
|
100
100
|
), t;
|
|
101
101
|
}
|
|
102
|
-
let
|
|
102
|
+
let ze;
|
|
103
103
|
function te(e) {
|
|
104
|
-
|
|
104
|
+
ze = e;
|
|
105
105
|
}
|
|
106
|
-
const j = [],
|
|
106
|
+
const j = [], Oe = [];
|
|
107
107
|
let k = [];
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
function
|
|
111
|
-
|
|
108
|
+
const Ke = [], br = /* @__PURE__ */ Promise.resolve();
|
|
109
|
+
let Ie = !1;
|
|
110
|
+
function gr() {
|
|
111
|
+
Ie || (Ie = !0, br.then(O));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Le(e) {
|
|
114
114
|
k.push(e);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
let
|
|
116
|
+
const _e = /* @__PURE__ */ new Set();
|
|
117
|
+
let G = 0;
|
|
118
118
|
function O() {
|
|
119
|
-
if (
|
|
119
|
+
if (G !== 0)
|
|
120
120
|
return;
|
|
121
|
-
const e =
|
|
121
|
+
const e = ze;
|
|
122
122
|
do {
|
|
123
123
|
try {
|
|
124
|
-
for (;
|
|
125
|
-
const t = j[
|
|
126
|
-
|
|
124
|
+
for (; G < j.length; ) {
|
|
125
|
+
const t = j[G];
|
|
126
|
+
G++, te(t), yr(t.$$);
|
|
127
127
|
}
|
|
128
128
|
} catch (t) {
|
|
129
|
-
throw j.length = 0,
|
|
129
|
+
throw j.length = 0, G = 0, t;
|
|
130
130
|
}
|
|
131
|
-
for (te(null), j.length = 0,
|
|
131
|
+
for (te(null), j.length = 0, G = 0; Oe.length; ) Oe.pop()();
|
|
132
132
|
for (let t = 0; t < k.length; t += 1) {
|
|
133
133
|
const r = k[t];
|
|
134
|
-
|
|
134
|
+
_e.has(r) || (_e.add(r), r());
|
|
135
135
|
}
|
|
136
136
|
k.length = 0;
|
|
137
137
|
} while (j.length);
|
|
138
|
-
for (;
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
for (; Ke.length; )
|
|
139
|
+
Ke.pop()();
|
|
140
|
+
Ie = !1, _e.clear(), te(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function yr(e) {
|
|
143
143
|
if (e.fragment !== null) {
|
|
144
144
|
e.update(), ie(e.before_update);
|
|
145
145
|
const t = e.dirty;
|
|
146
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
146
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function vr(e) {
|
|
150
150
|
const t = [], r = [];
|
|
151
151
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
function
|
|
155
|
-
e && e.i && (
|
|
153
|
+
const Er = /* @__PURE__ */ new Set();
|
|
154
|
+
function xr(e, t) {
|
|
155
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function _r(e, t, r) {
|
|
158
158
|
const { fragment: n, after_update: i } = e.$$;
|
|
159
|
-
n && n.m(t, r),
|
|
160
|
-
const o = e.$$.on_mount.map(
|
|
159
|
+
n && n.m(t, r), Le(() => {
|
|
160
|
+
const o = e.$$.on_mount.map(_t).filter(We);
|
|
161
161
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
162
|
-
}), i.forEach(
|
|
162
|
+
}), i.forEach(Le);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Sr(e, t) {
|
|
165
165
|
const r = e.$$;
|
|
166
|
-
r.fragment !== null && (
|
|
166
|
+
r.fragment !== null && (vr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
168
|
+
function Tr(e, t) {
|
|
169
|
+
e.$$.dirty[0] === -1 && (j.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
const h =
|
|
171
|
+
function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
172
|
+
const h = ze;
|
|
173
173
|
te(e);
|
|
174
174
|
const u = e.$$ = {
|
|
175
175
|
fragment: null,
|
|
@@ -178,7 +178,7 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
178
178
|
props: o,
|
|
179
179
|
update: A,
|
|
180
180
|
not_equal: i,
|
|
181
|
-
bound:
|
|
181
|
+
bound: qe(),
|
|
182
182
|
// lifecycle
|
|
183
183
|
on_mount: [],
|
|
184
184
|
on_destroy: [],
|
|
@@ -187,7 +187,7 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
187
187
|
after_update: [],
|
|
188
188
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
189
189
|
// everything else
|
|
190
|
-
callbacks:
|
|
190
|
+
callbacks: qe(),
|
|
191
191
|
dirty: a,
|
|
192
192
|
skip_bound: !1,
|
|
193
193
|
root: t.target || h.$$.root
|
|
@@ -196,19 +196,19 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
196
196
|
let l = !1;
|
|
197
197
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
198
198
|
const y = p.length ? p[0] : c;
|
|
199
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l &&
|
|
199
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && Tr(e, f)), c;
|
|
200
200
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
201
201
|
if (t.hydrate) {
|
|
202
|
-
const f =
|
|
202
|
+
const f = pr(t.target);
|
|
203
203
|
u.fragment && u.fragment.l(f), f.forEach(Q);
|
|
204
204
|
} else
|
|
205
205
|
u.fragment && u.fragment.c();
|
|
206
|
-
t.intro &&
|
|
206
|
+
t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), O();
|
|
207
207
|
}
|
|
208
208
|
te(h);
|
|
209
209
|
}
|
|
210
|
-
let
|
|
211
|
-
typeof HTMLElement == "function" && (
|
|
210
|
+
let At;
|
|
211
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
212
212
|
/** The Svelte component constructor */
|
|
213
213
|
$$ctor;
|
|
214
214
|
/** Slots */
|
|
@@ -267,7 +267,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
267
267
|
};
|
|
268
268
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
269
269
|
return;
|
|
270
|
-
const t = {}, r =
|
|
270
|
+
const t = {}, r = mr(this);
|
|
271
271
|
for (const i of this.$$s)
|
|
272
272
|
i in r && (t[i] = [e(i)]);
|
|
273
273
|
for (const i of this.attributes) {
|
|
@@ -354,8 +354,8 @@ function le(e, t, r, n) {
|
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
let s = class extends
|
|
357
|
+
function Br(e, t, r, n, i, o) {
|
|
358
|
+
let s = class extends At {
|
|
359
359
|
constructor() {
|
|
360
360
|
super(e, r, i), this.$$p_d = t;
|
|
361
361
|
}
|
|
@@ -383,7 +383,7 @@ function Er(e, t, r, n, i, o) {
|
|
|
383
383
|
}), e.element = /** @type {any} */
|
|
384
384
|
s, s;
|
|
385
385
|
}
|
|
386
|
-
class
|
|
386
|
+
class Ar {
|
|
387
387
|
/**
|
|
388
388
|
* ### PRIVATE API
|
|
389
389
|
*
|
|
@@ -402,7 +402,7 @@ class Sr {
|
|
|
402
402
|
$$set = void 0;
|
|
403
403
|
/** @returns {void} */
|
|
404
404
|
$destroy() {
|
|
405
|
-
|
|
405
|
+
Sr(this, 1), this.$destroy = A;
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -411,7 +411,7 @@ class Sr {
|
|
|
411
411
|
* @returns {() => void}
|
|
412
412
|
*/
|
|
413
413
|
$on(t, r) {
|
|
414
|
-
if (!
|
|
414
|
+
if (!We(r))
|
|
415
415
|
return A;
|
|
416
416
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
417
417
|
return n.push(r), () => {
|
|
@@ -424,22 +424,22 @@ class Sr {
|
|
|
424
424
|
* @returns {void}
|
|
425
425
|
*/
|
|
426
426
|
$set(t) {
|
|
427
|
-
this.$$set && !
|
|
427
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
const
|
|
431
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
432
|
-
var
|
|
433
|
-
return
|
|
430
|
+
const wr = "4";
|
|
431
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
432
|
+
var Ne = function(e, t) {
|
|
433
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
434
434
|
r.__proto__ = n;
|
|
435
435
|
} || function(r, n) {
|
|
436
436
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
437
|
-
},
|
|
437
|
+
}, Ne(e, t);
|
|
438
438
|
};
|
|
439
439
|
function N(e, t) {
|
|
440
440
|
if (typeof t != "function" && t !== null)
|
|
441
441
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
442
|
-
|
|
442
|
+
Ne(e, t);
|
|
443
443
|
function r() {
|
|
444
444
|
this.constructor = e;
|
|
445
445
|
}
|
|
@@ -454,7 +454,7 @@ var g = function() {
|
|
|
454
454
|
return t;
|
|
455
455
|
}, g.apply(this, arguments);
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function Pr(e, t) {
|
|
458
458
|
var r = {};
|
|
459
459
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
460
460
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -462,7 +462,7 @@ function Hr(e, t) {
|
|
|
462
462
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
463
463
|
return r;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Me(e) {
|
|
466
466
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
467
467
|
if (r) return r.call(e);
|
|
468
468
|
if (e && typeof e.length == "number") return {
|
|
@@ -472,7 +472,7 @@ function Ne(e) {
|
|
|
472
472
|
};
|
|
473
473
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ce(e, t) {
|
|
476
476
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
477
477
|
if (!r) return e;
|
|
478
478
|
var n = r.call(e), i, o = [], s;
|
|
@@ -497,13 +497,13 @@ function V(e, t, r) {
|
|
|
497
497
|
function L(e) {
|
|
498
498
|
return typeof e == "function";
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function wt(e) {
|
|
501
501
|
var t = function(n) {
|
|
502
502
|
Error.call(n), n.stack = new Error().stack;
|
|
503
503
|
}, r = e(t);
|
|
504
504
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
505
505
|
}
|
|
506
|
-
var Se =
|
|
506
|
+
var Se = wt(function(e) {
|
|
507
507
|
return function(r) {
|
|
508
508
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
509
509
|
` + r.map(function(n, i) {
|
|
@@ -512,7 +512,7 @@ var Se = Ht(function(e) {
|
|
|
512
512
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
513
513
|
};
|
|
514
514
|
});
|
|
515
|
-
function
|
|
515
|
+
function $e(e, t) {
|
|
516
516
|
if (e) {
|
|
517
517
|
var r = e.indexOf(t);
|
|
518
518
|
0 <= r && e.splice(r, 1);
|
|
@@ -530,7 +530,7 @@ var ge = function() {
|
|
|
530
530
|
if (s)
|
|
531
531
|
if (this._parentage = null, Array.isArray(s))
|
|
532
532
|
try {
|
|
533
|
-
for (var a =
|
|
533
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
534
534
|
var u = h.value;
|
|
535
535
|
u.remove(this);
|
|
536
536
|
}
|
|
@@ -556,12 +556,12 @@ var ge = function() {
|
|
|
556
556
|
if (f) {
|
|
557
557
|
this._finalizers = null;
|
|
558
558
|
try {
|
|
559
|
-
for (var c =
|
|
559
|
+
for (var c = Me(f), p = c.next(); !p.done; p = c.next()) {
|
|
560
560
|
var y = p.value;
|
|
561
561
|
try {
|
|
562
|
-
|
|
562
|
+
et(y);
|
|
563
563
|
} catch (v) {
|
|
564
|
-
o = o ?? [], v instanceof Se ? o = V(V([],
|
|
564
|
+
o = o ?? [], v instanceof Se ? o = V(V([], Ce(o)), Ce(v.errors)) : o.push(v);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
} catch (v) {
|
|
@@ -581,7 +581,7 @@ var ge = function() {
|
|
|
581
581
|
var r;
|
|
582
582
|
if (t && t !== this)
|
|
583
583
|
if (this.closed)
|
|
584
|
-
|
|
584
|
+
et(t);
|
|
585
585
|
else {
|
|
586
586
|
if (t instanceof e) {
|
|
587
587
|
if (t.closed || t._hasParent(this))
|
|
@@ -598,52 +598,56 @@ var ge = function() {
|
|
|
598
598
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
599
599
|
}, e.prototype._removeParent = function(t) {
|
|
600
600
|
var r = this._parentage;
|
|
601
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
601
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
602
602
|
}, e.prototype.remove = function(t) {
|
|
603
603
|
var r = this._finalizers;
|
|
604
|
-
r &&
|
|
604
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
605
605
|
}, e.EMPTY = function() {
|
|
606
606
|
var t = new e();
|
|
607
607
|
return t.closed = !0, t;
|
|
608
608
|
}(), e;
|
|
609
|
-
}(),
|
|
610
|
-
function
|
|
609
|
+
}(), Pt = ge.EMPTY;
|
|
610
|
+
function Ot(e) {
|
|
611
611
|
return e instanceof ge || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function et(e) {
|
|
614
614
|
L(e) ? e() : e.unsubscribe();
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
var It = {
|
|
617
|
+
onUnhandledError: null,
|
|
618
|
+
onStoppedNotification: null,
|
|
619
|
+
Promise: void 0,
|
|
620
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
621
|
+
useDeprecatedNextContext: !1
|
|
622
|
+
}, Or = {
|
|
619
623
|
setTimeout: function(e, t) {
|
|
620
624
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
621
625
|
r[n - 2] = arguments[n];
|
|
622
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
626
|
+
return setTimeout.apply(void 0, V([e, t], Ce(r)));
|
|
623
627
|
},
|
|
624
628
|
clearTimeout: function(e) {
|
|
625
629
|
return clearTimeout(e);
|
|
626
630
|
},
|
|
627
631
|
delegate: void 0
|
|
628
632
|
};
|
|
629
|
-
function
|
|
630
|
-
|
|
633
|
+
function Ir(e) {
|
|
634
|
+
Or.setTimeout(function() {
|
|
631
635
|
throw e;
|
|
632
636
|
});
|
|
633
637
|
}
|
|
634
|
-
function
|
|
638
|
+
function tt() {
|
|
635
639
|
}
|
|
636
640
|
function ce(e) {
|
|
637
641
|
e();
|
|
638
642
|
}
|
|
639
|
-
var
|
|
643
|
+
var Lt = function(e) {
|
|
640
644
|
N(t, e);
|
|
641
645
|
function t(r) {
|
|
642
646
|
var n = e.call(this) || this;
|
|
643
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
647
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Cr, n;
|
|
644
648
|
}
|
|
645
649
|
return t.create = function(r, n, i) {
|
|
646
|
-
return new
|
|
650
|
+
return new Re(r, n, i);
|
|
647
651
|
}, t.prototype.next = function(r) {
|
|
648
652
|
this.isStopped || this._next(r);
|
|
649
653
|
}, t.prototype.error = function(r) {
|
|
@@ -667,7 +671,11 @@ var wt = function(e) {
|
|
|
667
671
|
this.unsubscribe();
|
|
668
672
|
}
|
|
669
673
|
}, t;
|
|
670
|
-
}(ge),
|
|
674
|
+
}(ge), Lr = Function.prototype.bind;
|
|
675
|
+
function Te(e, t) {
|
|
676
|
+
return Lr.call(e, t);
|
|
677
|
+
}
|
|
678
|
+
var Nr = function() {
|
|
671
679
|
function e(t) {
|
|
672
680
|
this.partialObserver = t;
|
|
673
681
|
}
|
|
@@ -698,43 +706,55 @@ var wt = function(e) {
|
|
|
698
706
|
ue(r);
|
|
699
707
|
}
|
|
700
708
|
}, e;
|
|
701
|
-
}(),
|
|
709
|
+
}(), Re = function(e) {
|
|
702
710
|
N(t, e);
|
|
703
711
|
function t(r, n, i) {
|
|
704
712
|
var o = e.call(this) || this, s;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
713
|
+
if (L(r) || !r)
|
|
714
|
+
s = {
|
|
715
|
+
next: r ?? void 0,
|
|
716
|
+
error: n ?? void 0,
|
|
717
|
+
complete: i ?? void 0
|
|
718
|
+
};
|
|
719
|
+
else {
|
|
720
|
+
var a;
|
|
721
|
+
o && It.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
722
|
+
return o.unsubscribe();
|
|
723
|
+
}, s = {
|
|
724
|
+
next: r.next && Te(r.next, a),
|
|
725
|
+
error: r.error && Te(r.error, a),
|
|
726
|
+
complete: r.complete && Te(r.complete, a)
|
|
727
|
+
}) : s = r;
|
|
728
|
+
}
|
|
729
|
+
return o.destination = new Nr(s), o;
|
|
710
730
|
}
|
|
711
731
|
return t;
|
|
712
|
-
}(
|
|
732
|
+
}(Lt);
|
|
713
733
|
function ue(e) {
|
|
714
|
-
|
|
734
|
+
Ir(e);
|
|
715
735
|
}
|
|
716
|
-
function
|
|
736
|
+
function Mr(e) {
|
|
717
737
|
throw e;
|
|
718
738
|
}
|
|
719
|
-
var
|
|
739
|
+
var Cr = {
|
|
720
740
|
closed: !0,
|
|
721
|
-
next:
|
|
722
|
-
error:
|
|
723
|
-
complete:
|
|
724
|
-
},
|
|
741
|
+
next: tt,
|
|
742
|
+
error: Mr,
|
|
743
|
+
complete: tt
|
|
744
|
+
}, $r = function() {
|
|
725
745
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
726
746
|
}();
|
|
727
|
-
function
|
|
747
|
+
function Rr(e) {
|
|
728
748
|
return e;
|
|
729
749
|
}
|
|
730
|
-
function
|
|
731
|
-
return e.length === 0 ?
|
|
750
|
+
function Ur(e) {
|
|
751
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
732
752
|
return e.reduce(function(n, i) {
|
|
733
753
|
return i(n);
|
|
734
754
|
}, r);
|
|
735
755
|
};
|
|
736
756
|
}
|
|
737
|
-
var
|
|
757
|
+
var rt = function() {
|
|
738
758
|
function e(t) {
|
|
739
759
|
t && (this._subscribe = t);
|
|
740
760
|
}
|
|
@@ -742,7 +762,7 @@ var Ke = function() {
|
|
|
742
762
|
var r = new e();
|
|
743
763
|
return r.source = this, r.operator = t, r;
|
|
744
764
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
745
|
-
var i = this, o =
|
|
765
|
+
var i = this, o = Gr(t) ? t : new Re(t, r, n);
|
|
746
766
|
return ce(function() {
|
|
747
767
|
var s = i, a = s.operator, h = s.source;
|
|
748
768
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -755,8 +775,8 @@ var Ke = function() {
|
|
|
755
775
|
}
|
|
756
776
|
}, e.prototype.forEach = function(t, r) {
|
|
757
777
|
var n = this;
|
|
758
|
-
return r =
|
|
759
|
-
var s = new
|
|
778
|
+
return r = nt(r), new r(function(i, o) {
|
|
779
|
+
var s = new Re({
|
|
760
780
|
next: function(a) {
|
|
761
781
|
try {
|
|
762
782
|
t(a);
|
|
@@ -772,15 +792,15 @@ var Ke = function() {
|
|
|
772
792
|
}, e.prototype._subscribe = function(t) {
|
|
773
793
|
var r;
|
|
774
794
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
775
|
-
}, e.prototype[
|
|
795
|
+
}, e.prototype[$r] = function() {
|
|
776
796
|
return this;
|
|
777
797
|
}, e.prototype.pipe = function() {
|
|
778
798
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
779
799
|
t[r] = arguments[r];
|
|
780
|
-
return
|
|
800
|
+
return Ur(t)(this);
|
|
781
801
|
}, e.prototype.toPromise = function(t) {
|
|
782
802
|
var r = this;
|
|
783
|
-
return t =
|
|
803
|
+
return t = nt(t), new t(function(n, i) {
|
|
784
804
|
var o;
|
|
785
805
|
r.subscribe(function(s) {
|
|
786
806
|
return o = s;
|
|
@@ -794,32 +814,32 @@ var Ke = function() {
|
|
|
794
814
|
return new e(t);
|
|
795
815
|
}, e;
|
|
796
816
|
}();
|
|
797
|
-
function
|
|
817
|
+
function nt(e) {
|
|
798
818
|
var t;
|
|
799
|
-
return (t = e ??
|
|
819
|
+
return (t = e ?? It.Promise) !== null && t !== void 0 ? t : Promise;
|
|
800
820
|
}
|
|
801
|
-
function
|
|
821
|
+
function Dr(e) {
|
|
802
822
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
803
823
|
}
|
|
804
|
-
function
|
|
805
|
-
return e && e instanceof
|
|
824
|
+
function Gr(e) {
|
|
825
|
+
return e && e instanceof Lt || Dr(e) && Ot(e);
|
|
806
826
|
}
|
|
807
|
-
var
|
|
827
|
+
var Fr = wt(function(e) {
|
|
808
828
|
return function() {
|
|
809
829
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
810
830
|
};
|
|
811
|
-
}),
|
|
831
|
+
}), Nt = function(e) {
|
|
812
832
|
N(t, e);
|
|
813
833
|
function t() {
|
|
814
834
|
var r = e.call(this) || this;
|
|
815
835
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
816
836
|
}
|
|
817
837
|
return t.prototype.lift = function(r) {
|
|
818
|
-
var n = new
|
|
838
|
+
var n = new it(this, this);
|
|
819
839
|
return n.operator = r, n;
|
|
820
840
|
}, t.prototype._throwIfClosed = function() {
|
|
821
841
|
if (this.closed)
|
|
822
|
-
throw new
|
|
842
|
+
throw new Fr();
|
|
823
843
|
}, t.prototype.next = function(r) {
|
|
824
844
|
var n = this;
|
|
825
845
|
ce(function() {
|
|
@@ -827,7 +847,7 @@ var Rr = Ht(function(e) {
|
|
|
827
847
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
828
848
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
829
849
|
try {
|
|
830
|
-
for (var s =
|
|
850
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
831
851
|
var h = a.value;
|
|
832
852
|
h.next(r);
|
|
833
853
|
}
|
|
@@ -875,19 +895,19 @@ var Rr = Ht(function(e) {
|
|
|
875
895
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
876
896
|
}, t.prototype._innerSubscribe = function(r) {
|
|
877
897
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
878
|
-
return o || s ?
|
|
879
|
-
n.currentObservers = null,
|
|
898
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
899
|
+
n.currentObservers = null, $e(a, r);
|
|
880
900
|
}));
|
|
881
901
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
882
902
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
883
903
|
i ? r.error(o) : s && r.complete();
|
|
884
904
|
}, t.prototype.asObservable = function() {
|
|
885
|
-
var r = new
|
|
905
|
+
var r = new rt();
|
|
886
906
|
return r.source = this, r;
|
|
887
907
|
}, t.create = function(r, n) {
|
|
888
|
-
return new
|
|
908
|
+
return new it(r, n);
|
|
889
909
|
}, t;
|
|
890
|
-
}(
|
|
910
|
+
}(rt), it = function(e) {
|
|
891
911
|
N(t, e);
|
|
892
912
|
function t(r, n) {
|
|
893
913
|
var i = e.call(this) || this;
|
|
@@ -904,17 +924,17 @@ var Rr = Ht(function(e) {
|
|
|
904
924
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
905
925
|
}, t.prototype._subscribe = function(r) {
|
|
906
926
|
var n, i;
|
|
907
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
927
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
908
928
|
}, t;
|
|
909
|
-
}(
|
|
929
|
+
}(Nt), Mt = {
|
|
910
930
|
now: function() {
|
|
911
|
-
return (
|
|
931
|
+
return (Mt.delegate || Date).now();
|
|
912
932
|
},
|
|
913
933
|
delegate: void 0
|
|
914
|
-
},
|
|
934
|
+
}, jr = function(e) {
|
|
915
935
|
N(t, e);
|
|
916
936
|
function t(r, n, i) {
|
|
917
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
937
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
918
938
|
var o = e.call(this) || this;
|
|
919
939
|
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;
|
|
920
940
|
}
|
|
@@ -934,15 +954,15 @@ var Rr = Ht(function(e) {
|
|
|
934
954
|
u && o.splice(0, u + 1);
|
|
935
955
|
}
|
|
936
956
|
}, t;
|
|
937
|
-
}(
|
|
938
|
-
const
|
|
939
|
-
if (
|
|
940
|
-
const r = new
|
|
941
|
-
|
|
957
|
+
}(Nt);
|
|
958
|
+
const ot = [], st = {}, kr = (e, t = 0) => {
|
|
959
|
+
if (ot.indexOf(e) == -1) {
|
|
960
|
+
const r = new jr(t);
|
|
961
|
+
st[e] = r, ot.push(e);
|
|
942
962
|
}
|
|
943
|
-
return
|
|
963
|
+
return st[e];
|
|
944
964
|
}, F = [];
|
|
945
|
-
function
|
|
965
|
+
function Vr(e, t) {
|
|
946
966
|
return {
|
|
947
967
|
subscribe: ye(e, t).subscribe
|
|
948
968
|
};
|
|
@@ -951,7 +971,7 @@ function ye(e, t = A) {
|
|
|
951
971
|
let r;
|
|
952
972
|
const n = /* @__PURE__ */ new Set();
|
|
953
973
|
function i(a) {
|
|
954
|
-
if (
|
|
974
|
+
if (St(e, a) && (e = a, r)) {
|
|
955
975
|
const h = !F.length;
|
|
956
976
|
for (const u of n)
|
|
957
977
|
u[1](), F.push(u, e);
|
|
@@ -978,7 +998,7 @@ function J(e, t, r) {
|
|
|
978
998
|
if (!i.every(Boolean))
|
|
979
999
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
980
1000
|
const o = t.length < 2;
|
|
981
|
-
return
|
|
1001
|
+
return Vr(r, (s, a) => {
|
|
982
1002
|
let h = !1;
|
|
983
1003
|
const u = [];
|
|
984
1004
|
let l = 0, f = A;
|
|
@@ -987,9 +1007,9 @@ function J(e, t, r) {
|
|
|
987
1007
|
return;
|
|
988
1008
|
f();
|
|
989
1009
|
const y = t(n ? u[0] : u, s, a);
|
|
990
|
-
o ? s(y) : f =
|
|
1010
|
+
o ? s(y) : f = We(y) ? y : A;
|
|
991
1011
|
}, p = i.map(
|
|
992
|
-
(y, v) =>
|
|
1012
|
+
(y, v) => Tt(
|
|
993
1013
|
y,
|
|
994
1014
|
(H) => {
|
|
995
1015
|
u[v] = H, l &= ~(1 << v), h && c();
|
|
@@ -1004,70 +1024,70 @@ function J(e, t, r) {
|
|
|
1004
1024
|
};
|
|
1005
1025
|
});
|
|
1006
1026
|
}
|
|
1007
|
-
function
|
|
1027
|
+
function Xr(e) {
|
|
1008
1028
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1009
1029
|
}
|
|
1010
|
-
var
|
|
1011
|
-
return
|
|
1030
|
+
var Wr = function(t) {
|
|
1031
|
+
return zr(t) && !Zr(t);
|
|
1012
1032
|
};
|
|
1013
|
-
function
|
|
1033
|
+
function zr(e) {
|
|
1014
1034
|
return !!e && typeof e == "object";
|
|
1015
1035
|
}
|
|
1016
|
-
function
|
|
1036
|
+
function Zr(e) {
|
|
1017
1037
|
var t = Object.prototype.toString.call(e);
|
|
1018
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1038
|
+
return t === "[object RegExp]" || t === "[object Date]" || Yr(e);
|
|
1019
1039
|
}
|
|
1020
|
-
var
|
|
1021
|
-
function
|
|
1022
|
-
return e.$$typeof ===
|
|
1040
|
+
var Qr = typeof Symbol == "function" && Symbol.for, Jr = Qr ? Symbol.for("react.element") : 60103;
|
|
1041
|
+
function Yr(e) {
|
|
1042
|
+
return e.$$typeof === Jr;
|
|
1023
1043
|
}
|
|
1024
|
-
function
|
|
1044
|
+
function qr(e) {
|
|
1025
1045
|
return Array.isArray(e) ? [] : {};
|
|
1026
1046
|
}
|
|
1027
1047
|
function re(e, t) {
|
|
1028
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1048
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(qr(e), e, t) : e;
|
|
1029
1049
|
}
|
|
1030
|
-
function
|
|
1050
|
+
function Kr(e, t, r) {
|
|
1031
1051
|
return e.concat(t).map(function(n) {
|
|
1032
1052
|
return re(n, r);
|
|
1033
1053
|
});
|
|
1034
1054
|
}
|
|
1035
|
-
function
|
|
1055
|
+
function en(e, t) {
|
|
1036
1056
|
if (!t.customMerge)
|
|
1037
1057
|
return X;
|
|
1038
1058
|
var r = t.customMerge(e);
|
|
1039
1059
|
return typeof r == "function" ? r : X;
|
|
1040
1060
|
}
|
|
1041
|
-
function
|
|
1061
|
+
function tn(e) {
|
|
1042
1062
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1043
1063
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1044
1064
|
}) : [];
|
|
1045
1065
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return Object.keys(e).concat(
|
|
1066
|
+
function at(e) {
|
|
1067
|
+
return Object.keys(e).concat(tn(e));
|
|
1048
1068
|
}
|
|
1049
|
-
function
|
|
1069
|
+
function Ct(e, t) {
|
|
1050
1070
|
try {
|
|
1051
1071
|
return t in e;
|
|
1052
1072
|
} catch {
|
|
1053
1073
|
return !1;
|
|
1054
1074
|
}
|
|
1055
1075
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1076
|
+
function rn(e, t) {
|
|
1077
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1058
1078
|
}
|
|
1059
|
-
function
|
|
1079
|
+
function nn(e, t, r) {
|
|
1060
1080
|
var n = {};
|
|
1061
|
-
return r.isMergeableObject(e) &&
|
|
1081
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1062
1082
|
n[i] = re(e[i], r);
|
|
1063
|
-
}),
|
|
1064
|
-
|
|
1083
|
+
}), at(t).forEach(function(i) {
|
|
1084
|
+
rn(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1065
1085
|
}), n;
|
|
1066
1086
|
}
|
|
1067
1087
|
function X(e, t, r) {
|
|
1068
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1088
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1069
1089
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1070
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1090
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : re(t, r);
|
|
1071
1091
|
}
|
|
1072
1092
|
X.all = function(t, r) {
|
|
1073
1093
|
if (!Array.isArray(t))
|
|
@@ -1076,105 +1096,107 @@ X.all = function(t, r) {
|
|
|
1076
1096
|
return X(n, i, r);
|
|
1077
1097
|
}, {});
|
|
1078
1098
|
};
|
|
1079
|
-
var
|
|
1080
|
-
const
|
|
1081
|
-
function
|
|
1082
|
-
var r = t && t.cache ? t.cache :
|
|
1099
|
+
var on = X, sn = on;
|
|
1100
|
+
const an = /* @__PURE__ */ Xr(sn);
|
|
1101
|
+
function He(e, t) {
|
|
1102
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1083
1103
|
return i(e, {
|
|
1084
1104
|
cache: r,
|
|
1085
1105
|
serializer: n
|
|
1086
1106
|
});
|
|
1087
1107
|
}
|
|
1088
|
-
function
|
|
1108
|
+
function un(e) {
|
|
1089
1109
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1090
1110
|
}
|
|
1091
|
-
function
|
|
1092
|
-
var i =
|
|
1111
|
+
function $t(e, t, r, n) {
|
|
1112
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1093
1113
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1094
1114
|
}
|
|
1095
|
-
function
|
|
1115
|
+
function Rt(e, t, r) {
|
|
1096
1116
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1097
1117
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1098
1118
|
}
|
|
1099
|
-
function
|
|
1119
|
+
function Ze(e, t, r, n, i) {
|
|
1100
1120
|
return r.bind(t, e, n, i);
|
|
1101
1121
|
}
|
|
1102
|
-
function
|
|
1103
|
-
var r = e.length === 1 ?
|
|
1104
|
-
return
|
|
1122
|
+
function hn(e, t) {
|
|
1123
|
+
var r = e.length === 1 ? $t : Rt;
|
|
1124
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1125
|
+
}
|
|
1126
|
+
function ln(e, t) {
|
|
1127
|
+
return Ze(e, this, Rt, t.cache.create(), t.serializer);
|
|
1105
1128
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return
|
|
1129
|
+
function cn(e, t) {
|
|
1130
|
+
return Ze(e, this, $t, t.cache.create(), t.serializer);
|
|
1108
1131
|
}
|
|
1109
|
-
var
|
|
1132
|
+
var fn = function() {
|
|
1110
1133
|
return JSON.stringify(arguments);
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}()
|
|
1123
|
-
), ln = {
|
|
1134
|
+
};
|
|
1135
|
+
function Qe() {
|
|
1136
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1137
|
+
}
|
|
1138
|
+
Qe.prototype.get = function(e) {
|
|
1139
|
+
return this.cache[e];
|
|
1140
|
+
};
|
|
1141
|
+
Qe.prototype.set = function(e, t) {
|
|
1142
|
+
this.cache[e] = t;
|
|
1143
|
+
};
|
|
1144
|
+
var pn = {
|
|
1124
1145
|
create: function() {
|
|
1125
|
-
return new
|
|
1146
|
+
return new Qe();
|
|
1126
1147
|
}
|
|
1127
|
-
},
|
|
1128
|
-
variadic:
|
|
1148
|
+
}, Be = {
|
|
1149
|
+
variadic: ln,
|
|
1150
|
+
monadic: cn
|
|
1129
1151
|
}, d;
|
|
1130
1152
|
(function(e) {
|
|
1131
1153
|
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";
|
|
1132
1154
|
})(d || (d = {}));
|
|
1133
|
-
var
|
|
1155
|
+
var E;
|
|
1134
1156
|
(function(e) {
|
|
1135
1157
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1136
|
-
})(
|
|
1158
|
+
})(E || (E = {}));
|
|
1137
1159
|
var W;
|
|
1138
1160
|
(function(e) {
|
|
1139
1161
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1140
1162
|
})(W || (W = {}));
|
|
1141
|
-
function
|
|
1142
|
-
return e.type ===
|
|
1163
|
+
function ut(e) {
|
|
1164
|
+
return e.type === E.literal;
|
|
1143
1165
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return e.type ===
|
|
1166
|
+
function dn(e) {
|
|
1167
|
+
return e.type === E.argument;
|
|
1146
1168
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return e.type ===
|
|
1169
|
+
function Ut(e) {
|
|
1170
|
+
return e.type === E.number;
|
|
1149
1171
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return e.type ===
|
|
1172
|
+
function Dt(e) {
|
|
1173
|
+
return e.type === E.date;
|
|
1152
1174
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return e.type ===
|
|
1175
|
+
function Gt(e) {
|
|
1176
|
+
return e.type === E.time;
|
|
1155
1177
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e.type ===
|
|
1178
|
+
function Ft(e) {
|
|
1179
|
+
return e.type === E.select;
|
|
1158
1180
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return e.type ===
|
|
1181
|
+
function jt(e) {
|
|
1182
|
+
return e.type === E.plural;
|
|
1161
1183
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return e.type ===
|
|
1184
|
+
function mn(e) {
|
|
1185
|
+
return e.type === E.pound;
|
|
1164
1186
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return e.type ===
|
|
1187
|
+
function kt(e) {
|
|
1188
|
+
return e.type === E.tag;
|
|
1167
1189
|
}
|
|
1168
|
-
function
|
|
1190
|
+
function Vt(e) {
|
|
1169
1191
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1170
1192
|
}
|
|
1171
|
-
function
|
|
1193
|
+
function Ue(e) {
|
|
1172
1194
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1173
1195
|
}
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1196
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1197
|
+
function gn(e) {
|
|
1176
1198
|
var t = {};
|
|
1177
|
-
return e.replace(
|
|
1199
|
+
return e.replace(bn, function(r) {
|
|
1178
1200
|
var n = r.length;
|
|
1179
1201
|
switch (r[0]) {
|
|
1180
1202
|
case "G":
|
|
@@ -1263,11 +1285,11 @@ function dn(e) {
|
|
|
1263
1285
|
return "";
|
|
1264
1286
|
}), t;
|
|
1265
1287
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1288
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1289
|
+
function vn(e) {
|
|
1268
1290
|
if (e.length === 0)
|
|
1269
1291
|
throw new Error("Number skeleton cannot be empty");
|
|
1270
|
-
for (var t = e.split(
|
|
1292
|
+
for (var t = e.split(yn).filter(function(c) {
|
|
1271
1293
|
return c.length > 0;
|
|
1272
1294
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1273
1295
|
var o = i[n], s = o.split("/");
|
|
@@ -1282,17 +1304,17 @@ function bn(e) {
|
|
|
1282
1304
|
}
|
|
1283
1305
|
return r;
|
|
1284
1306
|
}
|
|
1285
|
-
function
|
|
1307
|
+
function En(e) {
|
|
1286
1308
|
return e.replace(/^(.*?)-/, "");
|
|
1287
1309
|
}
|
|
1288
|
-
var
|
|
1289
|
-
function
|
|
1310
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, xn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1311
|
+
function lt(e) {
|
|
1290
1312
|
var t = {};
|
|
1291
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1313
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
1292
1314
|
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)), "";
|
|
1293
1315
|
}), t;
|
|
1294
1316
|
}
|
|
1295
|
-
function
|
|
1317
|
+
function Zt(e) {
|
|
1296
1318
|
switch (e) {
|
|
1297
1319
|
case "sign-auto":
|
|
1298
1320
|
return {
|
|
@@ -1332,7 +1354,7 @@ function Vt(e) {
|
|
|
1332
1354
|
};
|
|
1333
1355
|
}
|
|
1334
1356
|
}
|
|
1335
|
-
function
|
|
1357
|
+
function _n(e) {
|
|
1336
1358
|
var t;
|
|
1337
1359
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1338
1360
|
notation: "engineering"
|
|
@@ -1340,17 +1362,17 @@ function vn(e) {
|
|
|
1340
1362
|
notation: "scientific"
|
|
1341
1363
|
}, e = e.slice(1)), t) {
|
|
1342
1364
|
var r = e.slice(0, 2);
|
|
1343
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1365
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1344
1366
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1345
1367
|
t.minimumIntegerDigits = e.length;
|
|
1346
1368
|
}
|
|
1347
1369
|
return t;
|
|
1348
1370
|
}
|
|
1349
|
-
function
|
|
1350
|
-
var t = {}, r =
|
|
1371
|
+
function ct(e) {
|
|
1372
|
+
var t = {}, r = Zt(e);
|
|
1351
1373
|
return r || t;
|
|
1352
1374
|
}
|
|
1353
|
-
function
|
|
1375
|
+
function Sn(e) {
|
|
1354
1376
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1355
1377
|
var i = n[r];
|
|
1356
1378
|
switch (i.stem) {
|
|
@@ -1374,7 +1396,7 @@ function xn(e) {
|
|
|
1374
1396
|
continue;
|
|
1375
1397
|
case "measure-unit":
|
|
1376
1398
|
case "unit":
|
|
1377
|
-
t.style = "unit", t.unit =
|
|
1399
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1378
1400
|
continue;
|
|
1379
1401
|
case "compact-short":
|
|
1380
1402
|
case "K":
|
|
@@ -1386,12 +1408,12 @@ function xn(e) {
|
|
|
1386
1408
|
continue;
|
|
1387
1409
|
case "scientific":
|
|
1388
1410
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1389
|
-
return g(g({}, h),
|
|
1411
|
+
return g(g({}, h), ct(u));
|
|
1390
1412
|
}, {}));
|
|
1391
1413
|
continue;
|
|
1392
1414
|
case "engineering":
|
|
1393
1415
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1394
|
-
return g(g({}, h),
|
|
1416
|
+
return g(g({}, h), ct(u));
|
|
1395
1417
|
}, {}));
|
|
1396
1418
|
continue;
|
|
1397
1419
|
case "notation-simple":
|
|
@@ -1436,7 +1458,7 @@ function xn(e) {
|
|
|
1436
1458
|
case "integer-width":
|
|
1437
1459
|
if (i.options.length > 1)
|
|
1438
1460
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1439
|
-
i.options[0].replace(
|
|
1461
|
+
i.options[0].replace(xn, function(h, u, l, f, c, p) {
|
|
1440
1462
|
if (u)
|
|
1441
1463
|
t.minimumIntegerDigits = l.length;
|
|
1442
1464
|
else {
|
|
@@ -1449,27 +1471,27 @@ function xn(e) {
|
|
|
1449
1471
|
});
|
|
1450
1472
|
continue;
|
|
1451
1473
|
}
|
|
1452
|
-
if (
|
|
1474
|
+
if (zt.test(i.stem)) {
|
|
1453
1475
|
t.minimumIntegerDigits = i.stem.length;
|
|
1454
1476
|
continue;
|
|
1455
1477
|
}
|
|
1456
|
-
if (
|
|
1478
|
+
if (ht.test(i.stem)) {
|
|
1457
1479
|
if (i.options.length > 1)
|
|
1458
1480
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1459
|
-
i.stem.replace(
|
|
1481
|
+
i.stem.replace(ht, function(h, u, l, f, c, p) {
|
|
1460
1482
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1461
1483
|
});
|
|
1462
1484
|
var o = i.options[0];
|
|
1463
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1485
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), lt(o)));
|
|
1464
1486
|
continue;
|
|
1465
1487
|
}
|
|
1466
|
-
if (
|
|
1467
|
-
t = g(g({}, t),
|
|
1488
|
+
if (Wt.test(i.stem)) {
|
|
1489
|
+
t = g(g({}, t), lt(i.stem));
|
|
1468
1490
|
continue;
|
|
1469
1491
|
}
|
|
1470
|
-
var s =
|
|
1492
|
+
var s = Zt(i.stem);
|
|
1471
1493
|
s && (t = g(g({}, t), s));
|
|
1472
|
-
var a =
|
|
1494
|
+
var a = _n(i.stem);
|
|
1473
1495
|
a && (t = g(g({}, t), a));
|
|
1474
1496
|
}
|
|
1475
1497
|
return t;
|
|
@@ -2889,13 +2911,13 @@ var he = {
|
|
|
2889
2911
|
"h"
|
|
2890
2912
|
]
|
|
2891
2913
|
};
|
|
2892
|
-
function
|
|
2914
|
+
function Tn(e, t) {
|
|
2893
2915
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2894
2916
|
var i = e.charAt(n);
|
|
2895
2917
|
if (i === "j") {
|
|
2896
2918
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2897
2919
|
o++, n++;
|
|
2898
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2920
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Hn(t);
|
|
2899
2921
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2900
2922
|
r += h;
|
|
2901
2923
|
for (; s-- > 0; )
|
|
@@ -2904,7 +2926,7 @@ function _n(e, t) {
|
|
|
2904
2926
|
}
|
|
2905
2927
|
return r;
|
|
2906
2928
|
}
|
|
2907
|
-
function
|
|
2929
|
+
function Hn(e) {
|
|
2908
2930
|
var t = e.hourCycle;
|
|
2909
2931
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2910
2932
|
e.hourCycles && // @ts-ignore
|
|
@@ -2926,20 +2948,20 @@ function En(e) {
|
|
|
2926
2948
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2927
2949
|
return i[0];
|
|
2928
2950
|
}
|
|
2929
|
-
var
|
|
2951
|
+
var Ae, Bn = new RegExp("^".concat(Xt.source, "*")), An = new RegExp("".concat(Xt.source, "*$"));
|
|
2930
2952
|
function m(e, t) {
|
|
2931
2953
|
return { start: e, end: t };
|
|
2932
2954
|
}
|
|
2933
|
-
var
|
|
2955
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Cn = Mn ? Number.isSafeInteger : function(e) {
|
|
2934
2956
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2935
|
-
},
|
|
2957
|
+
}, De = !0;
|
|
2936
2958
|
try {
|
|
2937
|
-
var
|
|
2938
|
-
|
|
2959
|
+
var $n = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2960
|
+
De = ((Ae = $n.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2939
2961
|
} catch {
|
|
2940
|
-
|
|
2962
|
+
De = !1;
|
|
2941
2963
|
}
|
|
2942
|
-
var
|
|
2964
|
+
var ft = wn ? (
|
|
2943
2965
|
// Native
|
|
2944
2966
|
function(t, r, n) {
|
|
2945
2967
|
return t.startsWith(r, n);
|
|
@@ -2949,7 +2971,7 @@ var ht = Hn ? (
|
|
|
2949
2971
|
function(t, r, n) {
|
|
2950
2972
|
return t.slice(n, n + r.length) === r;
|
|
2951
2973
|
}
|
|
2952
|
-
), Ge =
|
|
2974
|
+
), Ge = Pn ? String.fromCodePoint : (
|
|
2953
2975
|
// IE11
|
|
2954
2976
|
function() {
|
|
2955
2977
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2961,9 +2983,9 @@ var ht = Hn ? (
|
|
|
2961
2983
|
}
|
|
2962
2984
|
return n;
|
|
2963
2985
|
}
|
|
2964
|
-
),
|
|
2986
|
+
), pt = (
|
|
2965
2987
|
// native
|
|
2966
|
-
|
|
2988
|
+
On ? Object.fromEntries : (
|
|
2967
2989
|
// Ponyfill
|
|
2968
2990
|
function(t) {
|
|
2969
2991
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2973,7 +2995,7 @@ var ht = Hn ? (
|
|
|
2973
2995
|
return r;
|
|
2974
2996
|
}
|
|
2975
2997
|
)
|
|
2976
|
-
),
|
|
2998
|
+
), Qt = In ? (
|
|
2977
2999
|
// Native
|
|
2978
3000
|
function(t, r) {
|
|
2979
3001
|
return t.codePointAt(r);
|
|
@@ -2987,7 +3009,7 @@ var ht = Hn ? (
|
|
|
2987
3009
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2988
3010
|
}
|
|
2989
3011
|
}
|
|
2990
|
-
),
|
|
3012
|
+
), Rn = Ln ? (
|
|
2991
3013
|
// Native
|
|
2992
3014
|
function(t) {
|
|
2993
3015
|
return t.trimStart();
|
|
@@ -2995,9 +3017,9 @@ var ht = Hn ? (
|
|
|
2995
3017
|
) : (
|
|
2996
3018
|
// Ponyfill
|
|
2997
3019
|
function(t) {
|
|
2998
|
-
return t.replace(
|
|
3020
|
+
return t.replace(Bn, "");
|
|
2999
3021
|
}
|
|
3000
|
-
),
|
|
3022
|
+
), Un = Nn ? (
|
|
3001
3023
|
// Native
|
|
3002
3024
|
function(t) {
|
|
3003
3025
|
return t.trimEnd();
|
|
@@ -3005,32 +3027,32 @@ var ht = Hn ? (
|
|
|
3005
3027
|
) : (
|
|
3006
3028
|
// Ponyfill
|
|
3007
3029
|
function(t) {
|
|
3008
|
-
return t.replace(
|
|
3030
|
+
return t.replace(An, "");
|
|
3009
3031
|
}
|
|
3010
3032
|
);
|
|
3011
|
-
function
|
|
3033
|
+
function Jt(e, t) {
|
|
3012
3034
|
return new RegExp(e, t);
|
|
3013
3035
|
}
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3036
|
+
var Fe;
|
|
3037
|
+
if (De) {
|
|
3038
|
+
var dt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3039
|
+
Fe = function(t, r) {
|
|
3018
3040
|
var n;
|
|
3019
|
-
|
|
3020
|
-
var i =
|
|
3041
|
+
dt.lastIndex = r;
|
|
3042
|
+
var i = dt.exec(t);
|
|
3021
3043
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3022
3044
|
};
|
|
3023
3045
|
} else
|
|
3024
|
-
|
|
3046
|
+
Fe = function(t, r) {
|
|
3025
3047
|
for (var n = []; ; ) {
|
|
3026
|
-
var i =
|
|
3027
|
-
if (i === void 0 ||
|
|
3048
|
+
var i = Qt(t, r);
|
|
3049
|
+
if (i === void 0 || Yt(i) || jn(i))
|
|
3028
3050
|
break;
|
|
3029
3051
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3030
3052
|
}
|
|
3031
3053
|
return Ge.apply(void 0, n);
|
|
3032
3054
|
};
|
|
3033
|
-
var
|
|
3055
|
+
var Dn = (
|
|
3034
3056
|
/** @class */
|
|
3035
3057
|
function() {
|
|
3036
3058
|
function e(t, r) {
|
|
@@ -3054,14 +3076,14 @@ var $n = (
|
|
|
3054
3076
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3055
3077
|
var a = this.clonePosition();
|
|
3056
3078
|
this.bump(), i.push({
|
|
3057
|
-
type:
|
|
3079
|
+
type: E.pound,
|
|
3058
3080
|
location: m(a, this.clonePosition())
|
|
3059
3081
|
});
|
|
3060
3082
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3061
3083
|
if (n)
|
|
3062
3084
|
break;
|
|
3063
3085
|
return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3064
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3086
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3065
3087
|
var s = this.parseTag(t, r);
|
|
3066
3088
|
if (s.err)
|
|
3067
3089
|
return s;
|
|
@@ -3082,7 +3104,7 @@ var $n = (
|
|
|
3082
3104
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3083
3105
|
return {
|
|
3084
3106
|
val: {
|
|
3085
|
-
type:
|
|
3107
|
+
type: E.literal,
|
|
3086
3108
|
value: "<".concat(i, "/>"),
|
|
3087
3109
|
location: m(n, this.clonePosition())
|
|
3088
3110
|
},
|
|
@@ -3094,12 +3116,12 @@ var $n = (
|
|
|
3094
3116
|
return o;
|
|
3095
3117
|
var s = o.val, a = this.clonePosition();
|
|
3096
3118
|
if (this.bumpIf("</")) {
|
|
3097
|
-
if (this.isEOF() || !
|
|
3119
|
+
if (this.isEOF() || !je(this.char()))
|
|
3098
3120
|
return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
|
|
3099
3121
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3100
3122
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3101
3123
|
val: {
|
|
3102
|
-
type:
|
|
3124
|
+
type: E.tag,
|
|
3103
3125
|
value: i,
|
|
3104
3126
|
children: s,
|
|
3105
3127
|
location: m(n, this.clonePosition())
|
|
@@ -3112,7 +3134,7 @@ var $n = (
|
|
|
3112
3134
|
return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
|
|
3113
3135
|
}, e.prototype.parseTagName = function() {
|
|
3114
3136
|
var t = this.offset();
|
|
3115
|
-
for (this.bump(); !this.isEOF() &&
|
|
3137
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3116
3138
|
this.bump();
|
|
3117
3139
|
return this.message.slice(t, this.offset());
|
|
3118
3140
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3136,12 +3158,12 @@ var $n = (
|
|
|
3136
3158
|
}
|
|
3137
3159
|
var h = m(n, this.clonePosition());
|
|
3138
3160
|
return {
|
|
3139
|
-
val: { type:
|
|
3161
|
+
val: { type: E.literal, value: i, location: h },
|
|
3140
3162
|
err: null
|
|
3141
3163
|
};
|
|
3142
3164
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3143
3165
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3144
|
-
!
|
|
3166
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3145
3167
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3146
3168
|
if (this.isEOF() || this.char() !== 39)
|
|
3147
3169
|
return null;
|
|
@@ -3196,7 +3218,7 @@ var $n = (
|
|
|
3196
3218
|
case 125:
|
|
3197
3219
|
return this.bump(), {
|
|
3198
3220
|
val: {
|
|
3199
|
-
type:
|
|
3221
|
+
type: E.argument,
|
|
3200
3222
|
// value does not include the opening and closing braces.
|
|
3201
3223
|
value: i,
|
|
3202
3224
|
location: m(n, this.clonePosition())
|
|
@@ -3209,7 +3231,7 @@ var $n = (
|
|
|
3209
3231
|
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3210
3232
|
}
|
|
3211
3233
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3212
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3234
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3213
3235
|
this.bumpTo(i);
|
|
3214
3236
|
var o = this.clonePosition(), s = m(t, o);
|
|
3215
3237
|
return { value: n, location: s };
|
|
@@ -3228,7 +3250,7 @@ var $n = (
|
|
|
3228
3250
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3229
3251
|
if (f.err)
|
|
3230
3252
|
return f;
|
|
3231
|
-
var c =
|
|
3253
|
+
var c = Un(f.val);
|
|
3232
3254
|
if (c.length === 0)
|
|
3233
3255
|
return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3234
3256
|
var p = m(l, this.clonePosition());
|
|
@@ -3238,25 +3260,25 @@ var $n = (
|
|
|
3238
3260
|
if (y.err)
|
|
3239
3261
|
return y;
|
|
3240
3262
|
var v = m(i, this.clonePosition());
|
|
3241
|
-
if (u &&
|
|
3242
|
-
var H =
|
|
3263
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3264
|
+
var H = Rn(u.style.slice(2));
|
|
3243
3265
|
if (a === "number") {
|
|
3244
3266
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3245
3267
|
return f.err ? f : {
|
|
3246
|
-
val: { type:
|
|
3268
|
+
val: { type: E.number, value: n, location: v, style: f.val },
|
|
3247
3269
|
err: null
|
|
3248
3270
|
};
|
|
3249
3271
|
} else {
|
|
3250
3272
|
if (H.length === 0)
|
|
3251
3273
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, v);
|
|
3252
3274
|
var C = H;
|
|
3253
|
-
this.locale && (C =
|
|
3275
|
+
this.locale && (C = Tn(H, this.locale));
|
|
3254
3276
|
var c = {
|
|
3255
3277
|
type: W.dateTime,
|
|
3256
3278
|
pattern: C,
|
|
3257
3279
|
location: u.styleLocation,
|
|
3258
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3259
|
-
}, w = a === "date" ?
|
|
3280
|
+
parsedOptions: this.shouldParseSkeletons ? gn(C) : {}
|
|
3281
|
+
}, w = a === "date" ? E.date : E.time;
|
|
3260
3282
|
return {
|
|
3261
3283
|
val: { type: w, value: n, location: v, style: c },
|
|
3262
3284
|
err: null
|
|
@@ -3265,7 +3287,7 @@ var $n = (
|
|
|
3265
3287
|
}
|
|
3266
3288
|
return {
|
|
3267
3289
|
val: {
|
|
3268
|
-
type: a === "number" ?
|
|
3290
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3269
3291
|
value: n,
|
|
3270
3292
|
location: v,
|
|
3271
3293
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3290,26 +3312,26 @@ var $n = (
|
|
|
3290
3312
|
return f;
|
|
3291
3313
|
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), P = f.val;
|
|
3292
3314
|
}
|
|
3293
|
-
var
|
|
3294
|
-
if (
|
|
3295
|
-
return
|
|
3315
|
+
var D = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3316
|
+
if (D.err)
|
|
3317
|
+
return D;
|
|
3296
3318
|
var y = this.tryParseArgumentClose(i);
|
|
3297
3319
|
if (y.err)
|
|
3298
3320
|
return y;
|
|
3299
3321
|
var ae = m(i, this.clonePosition());
|
|
3300
3322
|
return a === "select" ? {
|
|
3301
3323
|
val: {
|
|
3302
|
-
type:
|
|
3324
|
+
type: E.select,
|
|
3303
3325
|
value: n,
|
|
3304
|
-
options:
|
|
3326
|
+
options: pt(D.val),
|
|
3305
3327
|
location: ae
|
|
3306
3328
|
},
|
|
3307
3329
|
err: null
|
|
3308
3330
|
} : {
|
|
3309
3331
|
val: {
|
|
3310
|
-
type:
|
|
3332
|
+
type: E.plural,
|
|
3311
3333
|
value: n,
|
|
3312
|
-
options:
|
|
3334
|
+
options: pt(D.val),
|
|
3313
3335
|
offset: P,
|
|
3314
3336
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3315
3337
|
location: ae
|
|
@@ -3360,7 +3382,7 @@ var $n = (
|
|
|
3360
3382
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3361
3383
|
var n = [];
|
|
3362
3384
|
try {
|
|
3363
|
-
n =
|
|
3385
|
+
n = vn(t);
|
|
3364
3386
|
} catch {
|
|
3365
3387
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3366
3388
|
}
|
|
@@ -3369,7 +3391,7 @@ var $n = (
|
|
|
3369
3391
|
type: W.number,
|
|
3370
3392
|
tokens: n,
|
|
3371
3393
|
location: r,
|
|
3372
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3394
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3373
3395
|
},
|
|
3374
3396
|
err: null
|
|
3375
3397
|
};
|
|
@@ -3417,7 +3439,7 @@ var $n = (
|
|
|
3417
3439
|
break;
|
|
3418
3440
|
}
|
|
3419
3441
|
var h = m(i, this.clonePosition());
|
|
3420
|
-
return o ? (s *= n,
|
|
3442
|
+
return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3421
3443
|
}, e.prototype.offset = function() {
|
|
3422
3444
|
return this.position.offset;
|
|
3423
3445
|
}, e.prototype.isEOF = function() {
|
|
@@ -3432,7 +3454,7 @@ var $n = (
|
|
|
3432
3454
|
var t = this.position.offset;
|
|
3433
3455
|
if (t >= this.message.length)
|
|
3434
3456
|
throw Error("out of bound");
|
|
3435
|
-
var r =
|
|
3457
|
+
var r = Qt(this.message, t);
|
|
3436
3458
|
if (r === void 0)
|
|
3437
3459
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3438
3460
|
return r;
|
|
@@ -3451,7 +3473,7 @@ var $n = (
|
|
|
3451
3473
|
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);
|
|
3452
3474
|
}
|
|
3453
3475
|
}, e.prototype.bumpIf = function(t) {
|
|
3454
|
-
if (
|
|
3476
|
+
if (ft(this.message, t, this.offset())) {
|
|
3455
3477
|
for (var r = 0; r < t.length; r++)
|
|
3456
3478
|
this.bump();
|
|
3457
3479
|
return !0;
|
|
@@ -3473,7 +3495,7 @@ var $n = (
|
|
|
3473
3495
|
break;
|
|
3474
3496
|
}
|
|
3475
3497
|
}, e.prototype.bumpSpace = function() {
|
|
3476
|
-
for (; !this.isEOF() &&
|
|
3498
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3477
3499
|
this.bump();
|
|
3478
3500
|
}, e.prototype.peek = function() {
|
|
3479
3501
|
if (this.isEOF())
|
|
@@ -3483,37 +3505,37 @@ var $n = (
|
|
|
3483
3505
|
}, e;
|
|
3484
3506
|
}()
|
|
3485
3507
|
);
|
|
3486
|
-
function
|
|
3508
|
+
function je(e) {
|
|
3487
3509
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3488
3510
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return
|
|
3511
|
+
function Gn(e) {
|
|
3512
|
+
return je(e) || e === 47;
|
|
3491
3513
|
}
|
|
3492
|
-
function
|
|
3514
|
+
function Fn(e) {
|
|
3493
3515
|
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;
|
|
3494
3516
|
}
|
|
3495
|
-
function
|
|
3517
|
+
function Yt(e) {
|
|
3496
3518
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3497
3519
|
}
|
|
3498
|
-
function
|
|
3520
|
+
function jn(e) {
|
|
3499
3521
|
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;
|
|
3500
3522
|
}
|
|
3501
|
-
function
|
|
3523
|
+
function ke(e) {
|
|
3502
3524
|
e.forEach(function(t) {
|
|
3503
|
-
if (delete t.location,
|
|
3525
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3504
3526
|
for (var r in t.options)
|
|
3505
|
-
delete t.options[r].location,
|
|
3506
|
-
else
|
|
3527
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3528
|
+
else Ut(t) && Vt(t.style) || (Dt(t) || Gt(t)) && Ue(t.style) ? delete t.style.location : kt(t) && ke(t.children);
|
|
3507
3529
|
});
|
|
3508
3530
|
}
|
|
3509
|
-
function
|
|
3531
|
+
function kn(e, t) {
|
|
3510
3532
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3511
|
-
var r = new
|
|
3533
|
+
var r = new Dn(e, t).parse();
|
|
3512
3534
|
if (r.err) {
|
|
3513
3535
|
var n = SyntaxError(d[r.err.kind]);
|
|
3514
3536
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3515
3537
|
}
|
|
3516
|
-
return t?.captureLocation ||
|
|
3538
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3517
3539
|
}
|
|
3518
3540
|
var z;
|
|
3519
3541
|
(function(e) {
|
|
@@ -3531,7 +3553,7 @@ var ve = (
|
|
|
3531
3553
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3532
3554
|
}, t;
|
|
3533
3555
|
}(Error)
|
|
3534
|
-
),
|
|
3556
|
+
), mt = (
|
|
3535
3557
|
/** @class */
|
|
3536
3558
|
function(e) {
|
|
3537
3559
|
N(t, e);
|
|
@@ -3540,7 +3562,7 @@ var ve = (
|
|
|
3540
3562
|
}
|
|
3541
3563
|
return t;
|
|
3542
3564
|
}(ve)
|
|
3543
|
-
),
|
|
3565
|
+
), Vn = (
|
|
3544
3566
|
/** @class */
|
|
3545
3567
|
function(e) {
|
|
3546
3568
|
N(t, e);
|
|
@@ -3549,7 +3571,7 @@ var ve = (
|
|
|
3549
3571
|
}
|
|
3550
3572
|
return t;
|
|
3551
3573
|
}(ve)
|
|
3552
|
-
),
|
|
3574
|
+
), Xn = (
|
|
3553
3575
|
/** @class */
|
|
3554
3576
|
function(e) {
|
|
3555
3577
|
N(t, e);
|
|
@@ -3558,100 +3580,100 @@ var ve = (
|
|
|
3558
3580
|
}
|
|
3559
3581
|
return t;
|
|
3560
3582
|
}(ve)
|
|
3561
|
-
),
|
|
3583
|
+
), x;
|
|
3562
3584
|
(function(e) {
|
|
3563
3585
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3564
|
-
})(
|
|
3565
|
-
function
|
|
3586
|
+
})(x || (x = {}));
|
|
3587
|
+
function Wn(e) {
|
|
3566
3588
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3567
3589
|
var n = t[t.length - 1];
|
|
3568
|
-
return !n || n.type !==
|
|
3590
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3569
3591
|
}, []);
|
|
3570
3592
|
}
|
|
3571
|
-
function
|
|
3593
|
+
function zn(e) {
|
|
3572
3594
|
return typeof e == "function";
|
|
3573
3595
|
}
|
|
3574
3596
|
function fe(e, t, r, n, i, o, s) {
|
|
3575
|
-
if (e.length === 1 &&
|
|
3597
|
+
if (e.length === 1 && ut(e[0]))
|
|
3576
3598
|
return [
|
|
3577
3599
|
{
|
|
3578
|
-
type:
|
|
3600
|
+
type: x.literal,
|
|
3579
3601
|
value: e[0].value
|
|
3580
3602
|
}
|
|
3581
3603
|
];
|
|
3582
3604
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3583
3605
|
var l = u[h];
|
|
3584
|
-
if (
|
|
3606
|
+
if (ut(l)) {
|
|
3585
3607
|
a.push({
|
|
3586
|
-
type:
|
|
3608
|
+
type: x.literal,
|
|
3587
3609
|
value: l.value
|
|
3588
3610
|
});
|
|
3589
3611
|
continue;
|
|
3590
3612
|
}
|
|
3591
|
-
if (
|
|
3613
|
+
if (mn(l)) {
|
|
3592
3614
|
typeof o == "number" && a.push({
|
|
3593
|
-
type:
|
|
3615
|
+
type: x.literal,
|
|
3594
3616
|
value: r.getNumberFormat(t).format(o)
|
|
3595
3617
|
});
|
|
3596
3618
|
continue;
|
|
3597
3619
|
}
|
|
3598
3620
|
var f = l.value;
|
|
3599
3621
|
if (!(i && f in i))
|
|
3600
|
-
throw new
|
|
3622
|
+
throw new Xn(f, s);
|
|
3601
3623
|
var c = i[f];
|
|
3602
|
-
if (
|
|
3624
|
+
if (dn(l)) {
|
|
3603
3625
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3604
|
-
type: typeof c == "string" ?
|
|
3626
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3605
3627
|
value: c
|
|
3606
3628
|
});
|
|
3607
3629
|
continue;
|
|
3608
3630
|
}
|
|
3609
|
-
if (
|
|
3610
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3631
|
+
if (Dt(l)) {
|
|
3632
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3611
3633
|
a.push({
|
|
3612
|
-
type:
|
|
3634
|
+
type: x.literal,
|
|
3613
3635
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3614
3636
|
});
|
|
3615
3637
|
continue;
|
|
3616
3638
|
}
|
|
3617
|
-
if (
|
|
3618
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3639
|
+
if (Gt(l)) {
|
|
3640
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3619
3641
|
a.push({
|
|
3620
|
-
type:
|
|
3642
|
+
type: x.literal,
|
|
3621
3643
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3622
3644
|
});
|
|
3623
3645
|
continue;
|
|
3624
3646
|
}
|
|
3625
|
-
if (
|
|
3626
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3647
|
+
if (Ut(l)) {
|
|
3648
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3627
3649
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3628
|
-
type:
|
|
3650
|
+
type: x.literal,
|
|
3629
3651
|
value: r.getNumberFormat(t, p).format(c)
|
|
3630
3652
|
});
|
|
3631
3653
|
continue;
|
|
3632
3654
|
}
|
|
3633
|
-
if (
|
|
3655
|
+
if (kt(l)) {
|
|
3634
3656
|
var y = l.children, v = l.value, H = i[v];
|
|
3635
|
-
if (!
|
|
3636
|
-
throw new
|
|
3657
|
+
if (!zn(H))
|
|
3658
|
+
throw new Vn(v, "function", s);
|
|
3637
3659
|
var C = fe(y, t, r, n, i, o), w = H(C.map(function(P) {
|
|
3638
3660
|
return P.value;
|
|
3639
3661
|
}));
|
|
3640
3662
|
Array.isArray(w) || (w = [w]), a.push.apply(a, w.map(function(P) {
|
|
3641
3663
|
return {
|
|
3642
|
-
type: typeof P == "string" ?
|
|
3664
|
+
type: typeof P == "string" ? x.literal : x.object,
|
|
3643
3665
|
value: P
|
|
3644
3666
|
};
|
|
3645
3667
|
}));
|
|
3646
3668
|
}
|
|
3647
|
-
if (
|
|
3669
|
+
if (Ft(l)) {
|
|
3648
3670
|
var S = l.options[c] || l.options.other;
|
|
3649
3671
|
if (!S)
|
|
3650
|
-
throw new
|
|
3672
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3651
3673
|
a.push.apply(a, fe(S.value, t, r, n, i));
|
|
3652
3674
|
continue;
|
|
3653
3675
|
}
|
|
3654
|
-
if (
|
|
3676
|
+
if (jt(l)) {
|
|
3655
3677
|
var S = l.options["=".concat(c)];
|
|
3656
3678
|
if (!S) {
|
|
3657
3679
|
if (!Intl.PluralRules)
|
|
@@ -3662,24 +3684,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3662
3684
|
S = l.options[$] || l.options.other;
|
|
3663
3685
|
}
|
|
3664
3686
|
if (!S)
|
|
3665
|
-
throw new
|
|
3687
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3666
3688
|
a.push.apply(a, fe(S.value, t, r, n, i, c - (l.offset || 0)));
|
|
3667
3689
|
continue;
|
|
3668
3690
|
}
|
|
3669
3691
|
}
|
|
3670
|
-
return
|
|
3692
|
+
return Wn(a);
|
|
3671
3693
|
}
|
|
3672
|
-
function
|
|
3694
|
+
function Zn(e, t) {
|
|
3673
3695
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3674
3696
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3675
3697
|
}, {})) : e;
|
|
3676
3698
|
}
|
|
3677
|
-
function
|
|
3699
|
+
function Qn(e, t) {
|
|
3678
3700
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3679
|
-
return r[n] =
|
|
3701
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3680
3702
|
}, g({}, e)) : e;
|
|
3681
3703
|
}
|
|
3682
|
-
function
|
|
3704
|
+
function we(e) {
|
|
3683
3705
|
return {
|
|
3684
3706
|
create: function() {
|
|
3685
3707
|
return {
|
|
@@ -3693,39 +3715,39 @@ function Ae(e) {
|
|
|
3693
3715
|
}
|
|
3694
3716
|
};
|
|
3695
3717
|
}
|
|
3696
|
-
function
|
|
3718
|
+
function Jn(e) {
|
|
3697
3719
|
return e === void 0 && (e = {
|
|
3698
3720
|
number: {},
|
|
3699
3721
|
dateTime: {},
|
|
3700
3722
|
pluralRules: {}
|
|
3701
3723
|
}), {
|
|
3702
|
-
getNumberFormat:
|
|
3724
|
+
getNumberFormat: He(function() {
|
|
3703
3725
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3704
3726
|
r[n] = arguments[n];
|
|
3705
3727
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3706
3728
|
}, {
|
|
3707
|
-
cache:
|
|
3708
|
-
strategy:
|
|
3729
|
+
cache: we(e.number),
|
|
3730
|
+
strategy: Be.variadic
|
|
3709
3731
|
}),
|
|
3710
|
-
getDateTimeFormat:
|
|
3732
|
+
getDateTimeFormat: He(function() {
|
|
3711
3733
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3712
3734
|
r[n] = arguments[n];
|
|
3713
3735
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3714
3736
|
}, {
|
|
3715
|
-
cache:
|
|
3716
|
-
strategy:
|
|
3737
|
+
cache: we(e.dateTime),
|
|
3738
|
+
strategy: Be.variadic
|
|
3717
3739
|
}),
|
|
3718
|
-
getPluralRules:
|
|
3740
|
+
getPluralRules: He(function() {
|
|
3719
3741
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3720
3742
|
r[n] = arguments[n];
|
|
3721
3743
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3722
3744
|
}, {
|
|
3723
|
-
cache:
|
|
3724
|
-
strategy:
|
|
3745
|
+
cache: we(e.pluralRules),
|
|
3746
|
+
strategy: Be.variadic
|
|
3725
3747
|
})
|
|
3726
3748
|
};
|
|
3727
3749
|
}
|
|
3728
|
-
var
|
|
3750
|
+
var Yn = (
|
|
3729
3751
|
/** @class */
|
|
3730
3752
|
function() {
|
|
3731
3753
|
function e(t, r, n, i) {
|
|
@@ -3740,7 +3762,7 @@ var Zn = (
|
|
|
3740
3762
|
if (u.length === 1)
|
|
3741
3763
|
return u[0].value;
|
|
3742
3764
|
var l = u.reduce(function(f, c) {
|
|
3743
|
-
return !f.length || c.type !==
|
|
3765
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3744
3766
|
}, []);
|
|
3745
3767
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3746
3768
|
}, this.formatToParts = function(h) {
|
|
@@ -3757,13 +3779,13 @@ var Zn = (
|
|
|
3757
3779
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3758
3780
|
var s = i || {};
|
|
3759
3781
|
s.formatters;
|
|
3760
|
-
var a =
|
|
3782
|
+
var a = Pr(s, ["formatters"]);
|
|
3761
3783
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3762
3784
|
} else
|
|
3763
3785
|
this.ast = t;
|
|
3764
3786
|
if (!Array.isArray(this.ast))
|
|
3765
3787
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3766
|
-
this.formats =
|
|
3788
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3767
3789
|
}
|
|
3768
3790
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3769
3791
|
get: function() {
|
|
@@ -3776,7 +3798,7 @@ var Zn = (
|
|
|
3776
3798
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3777
3799
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3778
3800
|
}
|
|
3779
|
-
}, e.__parse =
|
|
3801
|
+
}, e.__parse = kn, e.formats = {
|
|
3780
3802
|
number: {
|
|
3781
3803
|
integer: {
|
|
3782
3804
|
maximumFractionDigits: 0
|
|
@@ -3837,7 +3859,7 @@ var Zn = (
|
|
|
3837
3859
|
}, e;
|
|
3838
3860
|
}()
|
|
3839
3861
|
);
|
|
3840
|
-
function
|
|
3862
|
+
function qn(e, t) {
|
|
3841
3863
|
if (t == null)
|
|
3842
3864
|
return;
|
|
3843
3865
|
if (t in e)
|
|
@@ -3858,92 +3880,92 @@ function Qn(e, t) {
|
|
|
3858
3880
|
n = void 0;
|
|
3859
3881
|
return n;
|
|
3860
3882
|
}
|
|
3861
|
-
const M = {},
|
|
3883
|
+
const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), qt = (e, t) => {
|
|
3862
3884
|
if (t == null)
|
|
3863
3885
|
return;
|
|
3864
3886
|
if (t in M && e in M[t])
|
|
3865
3887
|
return M[t][e];
|
|
3866
|
-
const r =
|
|
3888
|
+
const r = Ee(t);
|
|
3867
3889
|
for (let n = 0; n < r.length; n++) {
|
|
3868
|
-
const i = r[n], o =
|
|
3890
|
+
const i = r[n], o = ti(i, e);
|
|
3869
3891
|
if (o)
|
|
3870
|
-
return
|
|
3892
|
+
return Kn(e, t, o);
|
|
3871
3893
|
}
|
|
3872
3894
|
};
|
|
3873
|
-
let
|
|
3895
|
+
let Je;
|
|
3874
3896
|
const se = ye({});
|
|
3875
|
-
function
|
|
3876
|
-
return
|
|
3897
|
+
function ei(e) {
|
|
3898
|
+
return Je[e] || null;
|
|
3877
3899
|
}
|
|
3878
|
-
function
|
|
3879
|
-
return e in
|
|
3900
|
+
function Kt(e) {
|
|
3901
|
+
return e in Je;
|
|
3880
3902
|
}
|
|
3881
|
-
function
|
|
3882
|
-
if (!
|
|
3903
|
+
function ti(e, t) {
|
|
3904
|
+
if (!Kt(e))
|
|
3883
3905
|
return null;
|
|
3884
|
-
const r =
|
|
3885
|
-
return
|
|
3906
|
+
const r = ei(e);
|
|
3907
|
+
return qn(r, t);
|
|
3886
3908
|
}
|
|
3887
|
-
function
|
|
3909
|
+
function ri(e) {
|
|
3888
3910
|
if (e == null)
|
|
3889
3911
|
return;
|
|
3890
|
-
const t =
|
|
3912
|
+
const t = Ee(e);
|
|
3891
3913
|
for (let r = 0; r < t.length; r++) {
|
|
3892
3914
|
const n = t[r];
|
|
3893
|
-
if (
|
|
3915
|
+
if (Kt(n))
|
|
3894
3916
|
return n;
|
|
3895
3917
|
}
|
|
3896
3918
|
}
|
|
3897
|
-
function
|
|
3898
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3919
|
+
function er(e, ...t) {
|
|
3920
|
+
delete M[e], se.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3899
3921
|
}
|
|
3900
3922
|
J(
|
|
3901
3923
|
[se],
|
|
3902
3924
|
([e]) => Object.keys(e)
|
|
3903
3925
|
);
|
|
3904
|
-
se.subscribe((e) =>
|
|
3926
|
+
se.subscribe((e) => Je = e);
|
|
3905
3927
|
const pe = {};
|
|
3906
|
-
function
|
|
3928
|
+
function ni(e, t) {
|
|
3907
3929
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3908
3930
|
}
|
|
3909
|
-
function
|
|
3931
|
+
function tr(e) {
|
|
3910
3932
|
return pe[e];
|
|
3911
3933
|
}
|
|
3912
|
-
function
|
|
3913
|
-
return
|
|
3914
|
-
const r =
|
|
3934
|
+
function ii(e) {
|
|
3935
|
+
return Ee(e).map((t) => {
|
|
3936
|
+
const r = tr(t);
|
|
3915
3937
|
return [t, r ? [...r] : []];
|
|
3916
3938
|
}).filter(([, t]) => t.length > 0);
|
|
3917
3939
|
}
|
|
3918
|
-
function
|
|
3919
|
-
return e == null ? !1 :
|
|
3940
|
+
function Ve(e) {
|
|
3941
|
+
return e == null ? !1 : Ee(e).some(
|
|
3920
3942
|
(t) => {
|
|
3921
3943
|
var r;
|
|
3922
|
-
return (r =
|
|
3944
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3923
3945
|
}
|
|
3924
3946
|
);
|
|
3925
3947
|
}
|
|
3926
|
-
function
|
|
3948
|
+
function oi(e, t) {
|
|
3927
3949
|
return Promise.all(
|
|
3928
|
-
t.map((n) => (
|
|
3929
|
-
).then((n) =>
|
|
3950
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3951
|
+
).then((n) => er(e, ...n));
|
|
3930
3952
|
}
|
|
3931
3953
|
const ee = {};
|
|
3932
|
-
function
|
|
3933
|
-
if (!
|
|
3954
|
+
function rr(e) {
|
|
3955
|
+
if (!Ve(e))
|
|
3934
3956
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3935
|
-
const t =
|
|
3957
|
+
const t = ii(e);
|
|
3936
3958
|
return ee[e] = Promise.all(
|
|
3937
3959
|
t.map(
|
|
3938
|
-
([r, n]) =>
|
|
3960
|
+
([r, n]) => oi(r, n)
|
|
3939
3961
|
)
|
|
3940
3962
|
).then(() => {
|
|
3941
|
-
if (
|
|
3942
|
-
return
|
|
3963
|
+
if (Ve(e))
|
|
3964
|
+
return rr(e);
|
|
3943
3965
|
delete ee[e];
|
|
3944
3966
|
}), ee[e];
|
|
3945
3967
|
}
|
|
3946
|
-
const
|
|
3968
|
+
const si = {
|
|
3947
3969
|
number: {
|
|
3948
3970
|
scientific: { notation: "scientific" },
|
|
3949
3971
|
engineering: { notation: "engineering" },
|
|
@@ -3972,78 +3994,78 @@ const ni = {
|
|
|
3972
3994
|
timeZoneName: "short"
|
|
3973
3995
|
}
|
|
3974
3996
|
}
|
|
3975
|
-
},
|
|
3997
|
+
}, ai = {
|
|
3976
3998
|
fallbackLocale: null,
|
|
3977
3999
|
loadingDelay: 200,
|
|
3978
|
-
formats:
|
|
4000
|
+
formats: si,
|
|
3979
4001
|
warnOnMissingMessages: !0,
|
|
3980
4002
|
handleMissingMessage: void 0,
|
|
3981
4003
|
ignoreTag: !0
|
|
3982
|
-
},
|
|
4004
|
+
}, ui = ai;
|
|
3983
4005
|
function Z() {
|
|
3984
|
-
return
|
|
4006
|
+
return ui;
|
|
3985
4007
|
}
|
|
3986
|
-
const
|
|
3987
|
-
var
|
|
4008
|
+
const Pe = ye(!1);
|
|
4009
|
+
var hi = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
3988
4010
|
for (var r in t || (t = {}))
|
|
3989
|
-
|
|
3990
|
-
if (
|
|
3991
|
-
for (var r of
|
|
3992
|
-
|
|
4011
|
+
fi.call(t, r) && gt(e, r, t[r]);
|
|
4012
|
+
if (bt)
|
|
4013
|
+
for (var r of bt(t))
|
|
4014
|
+
pi.call(t, r) && gt(e, r, t[r]);
|
|
3993
4015
|
return e;
|
|
3994
|
-
},
|
|
3995
|
-
let
|
|
4016
|
+
}, mi = (e, t) => li(e, ci(t));
|
|
4017
|
+
let Xe;
|
|
3996
4018
|
const de = ye(null);
|
|
3997
|
-
function
|
|
4019
|
+
function yt(e) {
|
|
3998
4020
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3999
4021
|
}
|
|
4000
|
-
function
|
|
4001
|
-
const r =
|
|
4002
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4022
|
+
function Ee(e, t = Z().fallbackLocale) {
|
|
4023
|
+
const r = yt(e);
|
|
4024
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4003
4025
|
}
|
|
4004
4026
|
function U() {
|
|
4005
|
-
return
|
|
4027
|
+
return Xe ?? void 0;
|
|
4006
4028
|
}
|
|
4007
4029
|
de.subscribe((e) => {
|
|
4008
|
-
|
|
4030
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4009
4031
|
});
|
|
4010
|
-
const
|
|
4011
|
-
if (e &&
|
|
4032
|
+
const bi = (e) => {
|
|
4033
|
+
if (e && ri(e) && Ve(e)) {
|
|
4012
4034
|
const { loadingDelay: t } = Z();
|
|
4013
4035
|
let r;
|
|
4014
4036
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4015
|
-
() =>
|
|
4037
|
+
() => Pe.set(!0),
|
|
4016
4038
|
t
|
|
4017
|
-
) :
|
|
4039
|
+
) : Pe.set(!0), rr(e).then(() => {
|
|
4018
4040
|
de.set(e);
|
|
4019
4041
|
}).finally(() => {
|
|
4020
|
-
clearTimeout(r),
|
|
4042
|
+
clearTimeout(r), Pe.set(!1);
|
|
4021
4043
|
});
|
|
4022
4044
|
}
|
|
4023
4045
|
return de.set(e);
|
|
4024
|
-
}, Y =
|
|
4025
|
-
set:
|
|
4026
|
-
}),
|
|
4046
|
+
}, Y = mi(di({}, de), {
|
|
4047
|
+
set: bi
|
|
4048
|
+
}), xe = (e) => {
|
|
4027
4049
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4028
4050
|
return (n) => {
|
|
4029
4051
|
const i = JSON.stringify(n);
|
|
4030
4052
|
return i in t ? t[i] : t[i] = e(n);
|
|
4031
4053
|
};
|
|
4032
4054
|
};
|
|
4033
|
-
var
|
|
4055
|
+
var gi = Object.defineProperty, me = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4034
4056
|
for (var r in t || (t = {}))
|
|
4035
|
-
|
|
4057
|
+
nr.call(t, r) && vt(e, r, t[r]);
|
|
4036
4058
|
if (me)
|
|
4037
4059
|
for (var r of me(t))
|
|
4038
|
-
|
|
4060
|
+
ir.call(t, r) && vt(e, r, t[r]);
|
|
4039
4061
|
return e;
|
|
4040
4062
|
}, q = (e, t) => {
|
|
4041
4063
|
var r = {};
|
|
4042
4064
|
for (var n in e)
|
|
4043
|
-
|
|
4065
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4044
4066
|
if (e != null && me)
|
|
4045
4067
|
for (var n of me(e))
|
|
4046
|
-
t.indexOf(n) < 0 &&
|
|
4068
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4047
4069
|
return r;
|
|
4048
4070
|
};
|
|
4049
4071
|
const ne = (e, t) => {
|
|
@@ -4051,21 +4073,21 @@ const ne = (e, t) => {
|
|
|
4051
4073
|
if (e in r && t in r[e])
|
|
4052
4074
|
return r[e][t];
|
|
4053
4075
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4054
|
-
},
|
|
4076
|
+
}, yi = xe(
|
|
4055
4077
|
(e) => {
|
|
4056
4078
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4057
4079
|
if (r == null)
|
|
4058
4080
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4059
4081
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4060
4082
|
}
|
|
4061
|
-
),
|
|
4083
|
+
), vi = xe(
|
|
4062
4084
|
(e) => {
|
|
4063
4085
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4064
4086
|
if (r == null)
|
|
4065
4087
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4066
4088
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4067
4089
|
}
|
|
4068
|
-
),
|
|
4090
|
+
), Ei = xe(
|
|
4069
4091
|
(e) => {
|
|
4070
4092
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4071
4093
|
if (r == null)
|
|
@@ -4074,33 +4096,33 @@ const ne = (e, t) => {
|
|
|
4074
4096
|
);
|
|
4075
4097
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4076
4098
|
}
|
|
4077
|
-
),
|
|
4099
|
+
), xi = (e = {}) => {
|
|
4078
4100
|
var t = e, {
|
|
4079
4101
|
locale: r = U()
|
|
4080
4102
|
} = t, n = q(t, [
|
|
4081
4103
|
"locale"
|
|
4082
4104
|
]);
|
|
4083
|
-
return
|
|
4084
|
-
},
|
|
4105
|
+
return yi(Ye({ locale: r }, n));
|
|
4106
|
+
}, _i = (e = {}) => {
|
|
4085
4107
|
var t = e, {
|
|
4086
4108
|
locale: r = U()
|
|
4087
4109
|
} = t, n = q(t, [
|
|
4088
4110
|
"locale"
|
|
4089
4111
|
]);
|
|
4090
|
-
return
|
|
4091
|
-
},
|
|
4112
|
+
return vi(Ye({ locale: r }, n));
|
|
4113
|
+
}, Si = (e = {}) => {
|
|
4092
4114
|
var t = e, {
|
|
4093
4115
|
locale: r = U()
|
|
4094
4116
|
} = t, n = q(t, [
|
|
4095
4117
|
"locale"
|
|
4096
4118
|
]);
|
|
4097
|
-
return
|
|
4098
|
-
},
|
|
4119
|
+
return Ei(Ye({ locale: r }, n));
|
|
4120
|
+
}, Ti = xe(
|
|
4099
4121
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4100
|
-
(e, t = U()) => new
|
|
4122
|
+
(e, t = U()) => new Yn(e, t, Z().formats, {
|
|
4101
4123
|
ignoreTag: Z().ignoreTag
|
|
4102
4124
|
})
|
|
4103
|
-
),
|
|
4125
|
+
), Hi = (e, t = {}) => {
|
|
4104
4126
|
var r, n, i, o;
|
|
4105
4127
|
let s = t;
|
|
4106
4128
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4113,7 +4135,7 @@ const ne = (e, t) => {
|
|
|
4113
4135
|
throw new Error(
|
|
4114
4136
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4115
4137
|
);
|
|
4116
|
-
let l =
|
|
4138
|
+
let l = qt(e, h);
|
|
4117
4139
|
if (!l)
|
|
4118
4140
|
l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4119
4141
|
else if (typeof l != "string")
|
|
@@ -4124,7 +4146,7 @@ const ne = (e, t) => {
|
|
|
4124
4146
|
return l;
|
|
4125
4147
|
let f = l;
|
|
4126
4148
|
try {
|
|
4127
|
-
f =
|
|
4149
|
+
f = Ti(l, h).format(a);
|
|
4128
4150
|
} catch (c) {
|
|
4129
4151
|
c instanceof Error && console.warn(
|
|
4130
4152
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4132,20 +4154,20 @@ const ne = (e, t) => {
|
|
|
4132
4154
|
);
|
|
4133
4155
|
}
|
|
4134
4156
|
return f;
|
|
4135
|
-
},
|
|
4136
|
-
J([Y], () =>
|
|
4137
|
-
J([Y], () =>
|
|
4138
|
-
J([Y], () =>
|
|
4139
|
-
J([Y, se], () =>
|
|
4140
|
-
window.emWidgets = { topic:
|
|
4141
|
-
const
|
|
4142
|
-
function
|
|
4143
|
-
|
|
4144
|
-
}
|
|
4145
|
-
function
|
|
4157
|
+
}, Bi = (e, t) => Si(t).format(e), Ai = (e, t) => _i(t).format(e), wi = (e, t) => xi(t).format(e), Pi = (e, t = U()) => qt(e, t), Oi = J([Y, se], () => Hi);
|
|
4158
|
+
J([Y], () => Bi);
|
|
4159
|
+
J([Y], () => Ai);
|
|
4160
|
+
J([Y], () => wi);
|
|
4161
|
+
J([Y, se], () => Pi);
|
|
4162
|
+
window.emWidgets = { topic: kr };
|
|
4163
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4164
|
+
function Et(e, t) {
|
|
4165
|
+
er(e, t);
|
|
4166
|
+
}
|
|
4167
|
+
function Li(e) {
|
|
4146
4168
|
Y.set(e);
|
|
4147
4169
|
}
|
|
4148
|
-
const
|
|
4170
|
+
const xt = {
|
|
4149
4171
|
en: {
|
|
4150
4172
|
logoutButton: "Logout"
|
|
4151
4173
|
},
|
|
@@ -4180,10 +4202,10 @@ const yt = {
|
|
|
4180
4202
|
logoutButton: "Logout"
|
|
4181
4203
|
}
|
|
4182
4204
|
};
|
|
4183
|
-
function
|
|
4184
|
-
|
|
4205
|
+
function Ni(e) {
|
|
4206
|
+
hr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4185
4207
|
}
|
|
4186
|
-
function
|
|
4208
|
+
function Mi(e) {
|
|
4187
4209
|
let t, r, n, i = (
|
|
4188
4210
|
/*$_*/
|
|
4189
4211
|
e[2]("logoutButton") + ""
|
|
@@ -4193,7 +4215,7 @@ function Ii(e) {
|
|
|
4193
4215
|
t = I("div"), r = I("button"), n = I("span"), o = be(i), T(t, "class", "GeneralLogout");
|
|
4194
4216
|
},
|
|
4195
4217
|
m(h, u) {
|
|
4196
|
-
oe(h, t, u),
|
|
4218
|
+
oe(h, t, u), _(t, r), _(r, n), _(n, o), s || (a = Ht(
|
|
4197
4219
|
r,
|
|
4198
4220
|
"click",
|
|
4199
4221
|
/*click_handler_1*/
|
|
@@ -4203,19 +4225,19 @@ function Ii(e) {
|
|
|
4203
4225
|
p(h, u) {
|
|
4204
4226
|
u & /*$_*/
|
|
4205
4227
|
4 && i !== (i = /*$_*/
|
|
4206
|
-
h[2]("logoutButton") + "") &&
|
|
4228
|
+
h[2]("logoutButton") + "") && Bt(o, i);
|
|
4207
4229
|
},
|
|
4208
4230
|
d(h) {
|
|
4209
4231
|
h && Q(t), s = !1, a();
|
|
4210
4232
|
}
|
|
4211
4233
|
};
|
|
4212
4234
|
}
|
|
4213
|
-
function
|
|
4235
|
+
function Ci(e) {
|
|
4214
4236
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4215
|
-
e[3] &&
|
|
4237
|
+
e[3] && $i(e);
|
|
4216
4238
|
return {
|
|
4217
4239
|
c() {
|
|
4218
|
-
t = I("p"), r = I("span"), n = K("svg"), i = K("defs"), o = K("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u =
|
|
4240
|
+
t = I("p"), r = I("span"), n = K("svg"), i = K("defs"), o = K("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = fr(), c && c.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), dr(r, "width", /*isMobile*/
|
|
4219
4241
|
e[3] ? (
|
|
4220
4242
|
/*mediaQuery*/
|
|
4221
4243
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4225,7 +4247,7 @@ function Li(e) {
|
|
|
4225
4247
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4226
4248
|
},
|
|
4227
4249
|
m(p, y) {
|
|
4228
|
-
oe(p, t, y),
|
|
4250
|
+
oe(p, t, y), _(t, r), _(r, n), _(n, i), _(i, o), _(o, s), _(n, a), _(n, h), _(t, u), c && c.m(t, null), l || (f = Ht(
|
|
4229
4251
|
t,
|
|
4230
4252
|
"click",
|
|
4231
4253
|
/*click_handler*/
|
|
@@ -4241,7 +4263,7 @@ function Li(e) {
|
|
|
4241
4263
|
}
|
|
4242
4264
|
};
|
|
4243
4265
|
}
|
|
4244
|
-
function
|
|
4266
|
+
function $i(e) {
|
|
4245
4267
|
let t, r = (
|
|
4246
4268
|
/*$_*/
|
|
4247
4269
|
e[2]("logoutButton") + ""
|
|
@@ -4251,24 +4273,24 @@ function Ni(e) {
|
|
|
4251
4273
|
t = I("span"), n = be(r), T(t, "class", "PlayerLogoutText");
|
|
4252
4274
|
},
|
|
4253
4275
|
m(i, o) {
|
|
4254
|
-
oe(i, t, o),
|
|
4276
|
+
oe(i, t, o), _(t, n);
|
|
4255
4277
|
},
|
|
4256
4278
|
p(i, o) {
|
|
4257
4279
|
o & /*$_*/
|
|
4258
4280
|
4 && r !== (r = /*$_*/
|
|
4259
|
-
i[2]("logoutButton") + "") &&
|
|
4281
|
+
i[2]("logoutButton") + "") && Bt(n, r);
|
|
4260
4282
|
},
|
|
4261
4283
|
d(i) {
|
|
4262
4284
|
i && Q(t);
|
|
4263
4285
|
}
|
|
4264
4286
|
};
|
|
4265
4287
|
}
|
|
4266
|
-
function
|
|
4288
|
+
function Ri(e) {
|
|
4267
4289
|
let t;
|
|
4268
4290
|
function r(o, s) {
|
|
4269
4291
|
return (
|
|
4270
4292
|
/*buttonlocation*/
|
|
4271
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4293
|
+
o[0] === "PlayerAccountMenu" ? Ci : Mi
|
|
4272
4294
|
);
|
|
4273
4295
|
}
|
|
4274
4296
|
let n = r(e), i = n(e);
|
|
@@ -4289,21 +4311,21 @@ function Mi(e) {
|
|
|
4289
4311
|
}
|
|
4290
4312
|
};
|
|
4291
4313
|
}
|
|
4292
|
-
function
|
|
4314
|
+
function Ui(e, t, r) {
|
|
4293
4315
|
let n;
|
|
4294
|
-
|
|
4295
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, f = "", c = !1, p, y = window.navigator.userAgent, v =
|
|
4316
|
+
ur(e, Oi, (b) => r(2, n = b));
|
|
4317
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, f = "", c = !1, p, y = window.navigator.userAgent, v = Ii(y) !== "PC";
|
|
4296
4318
|
const H = window.matchMedia("(min-width: 768px)"), C = () => {
|
|
4297
4319
|
fetch(l).then((B) => B.json()).then((B) => {
|
|
4298
4320
|
Object.keys(B).forEach((R) => {
|
|
4299
|
-
|
|
4321
|
+
Et(R, B[R]);
|
|
4300
4322
|
});
|
|
4301
4323
|
}).catch((B) => {
|
|
4302
4324
|
console.log(B);
|
|
4303
4325
|
});
|
|
4304
4326
|
};
|
|
4305
|
-
Object.keys(
|
|
4306
|
-
|
|
4327
|
+
Object.keys(xt).forEach((b) => {
|
|
4328
|
+
Et(b, xt[b]);
|
|
4307
4329
|
});
|
|
4308
4330
|
const w = () => {
|
|
4309
4331
|
let b = new Headers();
|
|
@@ -4313,11 +4335,11 @@ function Ci(e, t, r) {
|
|
|
4313
4335
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4314
4336
|
});
|
|
4315
4337
|
}, S = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", c = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", c = !0, console.error(f)), c), $ = () => {
|
|
4316
|
-
|
|
4338
|
+
Li(a);
|
|
4317
4339
|
}, P = () => {
|
|
4318
4340
|
let b = document.createElement("style");
|
|
4319
4341
|
b.innerHTML = h, p.appendChild(b);
|
|
4320
|
-
},
|
|
4342
|
+
}, D = () => {
|
|
4321
4343
|
let b = new URL(u), B = document.createElement("style");
|
|
4322
4344
|
fetch(b.href).then((R) => R.text()).then((R) => {
|
|
4323
4345
|
B.innerHTML = R, setTimeout(
|
|
@@ -4331,9 +4353,9 @@ function Ci(e, t, r) {
|
|
|
4331
4353
|
500
|
|
4332
4354
|
);
|
|
4333
4355
|
});
|
|
4334
|
-
}, ae = () => w(),
|
|
4335
|
-
function
|
|
4336
|
-
|
|
4356
|
+
}, ae = () => w(), or = () => w();
|
|
4357
|
+
function sr(b) {
|
|
4358
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4337
4359
|
p = b, r(1, p);
|
|
4338
4360
|
});
|
|
4339
4361
|
}
|
|
@@ -4344,7 +4366,7 @@ function Ci(e, t, r) {
|
|
|
4344
4366
|
193 && i && o && s && S(), e.$$.dirty & /*lang*/
|
|
4345
4367
|
256 && a && $(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4346
4368
|
514 && h && p && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4347
|
-
1026 && u && p &&
|
|
4369
|
+
1026 && u && p && D(), e.$$.dirty & /*translationurl*/
|
|
4348
4370
|
2048 && l && C();
|
|
4349
4371
|
}, [
|
|
4350
4372
|
s,
|
|
@@ -4360,18 +4382,18 @@ function Ci(e, t, r) {
|
|
|
4360
4382
|
u,
|
|
4361
4383
|
l,
|
|
4362
4384
|
ae,
|
|
4363
|
-
|
|
4364
|
-
|
|
4385
|
+
or,
|
|
4386
|
+
sr
|
|
4365
4387
|
];
|
|
4366
4388
|
}
|
|
4367
|
-
class
|
|
4389
|
+
class Di extends Ar {
|
|
4368
4390
|
constructor(t) {
|
|
4369
|
-
super(),
|
|
4391
|
+
super(), Hr(
|
|
4370
4392
|
this,
|
|
4371
4393
|
t,
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4394
|
+
Ui,
|
|
4395
|
+
Ri,
|
|
4396
|
+
St,
|
|
4375
4397
|
{
|
|
4376
4398
|
endpoint: 6,
|
|
4377
4399
|
session: 7,
|
|
@@ -4381,7 +4403,7 @@ class $i extends Sr {
|
|
|
4381
4403
|
clientstylingurl: 10,
|
|
4382
4404
|
translationurl: 11
|
|
4383
4405
|
},
|
|
4384
|
-
|
|
4406
|
+
Ni
|
|
4385
4407
|
);
|
|
4386
4408
|
}
|
|
4387
4409
|
get endpoint() {
|
|
@@ -4427,7 +4449,7 @@ class $i extends Sr {
|
|
|
4427
4449
|
this.$$set({ translationurl: t }), O();
|
|
4428
4450
|
}
|
|
4429
4451
|
}
|
|
4430
|
-
|
|
4452
|
+
Br(Di, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4431
4453
|
export {
|
|
4432
|
-
|
|
4454
|
+
Di as G
|
|
4433
4455
|
};
|