@everymatrix/casino-betslip-indicator 1.54.6 → 1.54.9
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/CasinoBetslipIndicator-CAB2obrZ.cjs +8 -0
- package/components/CasinoBetslipIndicator-CkjtCY_7.js +4367 -0
- package/components/{CasinoBetslipIndicator-CrhuupG5.js → CasinoBetslipIndicator-DzTvg3K-.js} +500 -508
- package/es2015/casino-betslip-indicator.cjs +1 -0
- package/es2015/casino-betslip-indicator.js +16 -0
- package/esnext/casino-betslip-indicator.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBetslipIndicator-CrhuupG5.js → CasinoBetslipIndicator-DzTvg3K-.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function T() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function pt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function K(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(pt);
|
|
11
11
|
}
|
|
12
12
|
function Ge(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function dt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function zt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Zt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -30,14 +30,14 @@ function Qt(e, ...t) {
|
|
|
30
30
|
function B(e, t) {
|
|
31
31
|
e.appendChild(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const n =
|
|
33
|
+
function Qt(e, t, r) {
|
|
34
|
+
const n = Jt(e);
|
|
35
35
|
if (!n.getElementById(t)) {
|
|
36
36
|
const i = D("style");
|
|
37
|
-
i.id = t, i.textContent = r,
|
|
37
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Jt(e) {
|
|
41
41
|
if (!e) return document;
|
|
42
42
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
43
43
|
return t && /** @type {ShadowRoot} */
|
|
@@ -46,7 +46,7 @@ function Yt(e) {
|
|
|
46
46
|
t
|
|
47
47
|
) : e.ownerDocument;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Yt(e, t) {
|
|
50
50
|
return B(
|
|
51
51
|
/** @type {Document} */
|
|
52
52
|
e.head || e,
|
|
@@ -65,29 +65,29 @@ function D(e) {
|
|
|
65
65
|
function N(e) {
|
|
66
66
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function bt(e) {
|
|
69
69
|
return document.createTextNode(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function qt() {
|
|
72
|
+
return bt(" ");
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Kt(e, t, r, n) {
|
|
75
75
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
76
76
|
}
|
|
77
77
|
function E(e, t, r) {
|
|
78
78
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function er(e) {
|
|
81
81
|
return Array.from(e.childNodes);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function tr(e, t) {
|
|
84
84
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
85
85
|
t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function rr(e, t, r, n) {
|
|
88
88
|
e.style.setProperty(t, r, "");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function nr(e) {
|
|
91
91
|
const t = {};
|
|
92
92
|
return e.childNodes.forEach(
|
|
93
93
|
/** @param {Element} node */
|
|
@@ -100,24 +100,24 @@ let J;
|
|
|
100
100
|
function Q(e) {
|
|
101
101
|
J = e;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ir() {
|
|
104
104
|
if (!J) throw new Error("Function called outside component initialization");
|
|
105
105
|
return J;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function or(e) {
|
|
108
|
+
ir().$$.on_mount.push(e);
|
|
109
109
|
}
|
|
110
110
|
const M = [], He = [];
|
|
111
111
|
let R = [];
|
|
112
|
-
const
|
|
112
|
+
const We = [], sr = /* @__PURE__ */ Promise.resolve();
|
|
113
113
|
let Te = !1;
|
|
114
|
-
function
|
|
115
|
-
Te || (Te = !0,
|
|
114
|
+
function ar() {
|
|
115
|
+
Te || (Te = !0, sr.then(le));
|
|
116
116
|
}
|
|
117
117
|
function Be(e) {
|
|
118
118
|
R.push(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const ye = /* @__PURE__ */ new Set();
|
|
121
121
|
let L = 0;
|
|
122
122
|
function le() {
|
|
123
123
|
if (L !== 0)
|
|
@@ -127,7 +127,7 @@ function le() {
|
|
|
127
127
|
try {
|
|
128
128
|
for (; L < M.length; ) {
|
|
129
129
|
const t = M[L];
|
|
130
|
-
L++, Q(t),
|
|
130
|
+
L++, Q(t), ur(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
133
|
throw M.length = 0, L = 0, t;
|
|
@@ -135,44 +135,44 @@ function le() {
|
|
|
135
135
|
for (Q(null), M.length = 0, L = 0; He.length; ) He.pop()();
|
|
136
136
|
for (let t = 0; t < R.length; t += 1) {
|
|
137
137
|
const r = R[t];
|
|
138
|
-
|
|
138
|
+
ye.has(r) || (ye.add(r), r());
|
|
139
139
|
}
|
|
140
140
|
R.length = 0;
|
|
141
141
|
} while (M.length);
|
|
142
|
-
for (;
|
|
143
|
-
|
|
144
|
-
Te = !1,
|
|
142
|
+
for (; We.length; )
|
|
143
|
+
We.pop()();
|
|
144
|
+
Te = !1, ye.clear(), Q(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ur(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
148
148
|
e.update(), K(e.before_update);
|
|
149
149
|
const t = e.dirty;
|
|
150
150
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Be);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function hr(e) {
|
|
154
154
|
const t = [], r = [];
|
|
155
155
|
R.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), R = t;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const lr = /* @__PURE__ */ new Set();
|
|
158
158
|
function cr(e, t) {
|
|
159
|
-
e && e.i && (
|
|
159
|
+
e && e.i && (lr.delete(e), e.i(t));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function fr(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
163
|
n && n.m(t, r), Be(() => {
|
|
164
|
-
const o = e.$$.on_mount.map(
|
|
164
|
+
const o = e.$$.on_mount.map(pt).filter(Ge);
|
|
165
165
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
166
166
|
}), i.forEach(Be);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function mr(e, t) {
|
|
169
169
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (
|
|
170
|
+
r.fragment !== null && (hr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
e.$$.dirty[0] === -1 && (M.push(e),
|
|
172
|
+
function pr(e, t) {
|
|
173
|
+
e.$$.dirty[0] === -1 && (M.push(e), ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
176
176
|
const h = J;
|
|
177
177
|
Q(e);
|
|
178
178
|
const u = e.$$ = {
|
|
@@ -182,7 +182,7 @@ function br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
182
182
|
props: o,
|
|
183
183
|
update: T,
|
|
184
184
|
not_equal: i,
|
|
185
|
-
bound:
|
|
185
|
+
bound: Xe(),
|
|
186
186
|
// lifecycle
|
|
187
187
|
on_mount: [],
|
|
188
188
|
on_destroy: [],
|
|
@@ -191,28 +191,28 @@ function br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
191
191
|
after_update: [],
|
|
192
192
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
193
193
|
// everything else
|
|
194
|
-
callbacks:
|
|
194
|
+
callbacks: Xe(),
|
|
195
195
|
dirty: a,
|
|
196
196
|
skip_bound: !1,
|
|
197
197
|
root: t.target || h.$$.root
|
|
198
198
|
};
|
|
199
199
|
s && s(u.root);
|
|
200
200
|
let l = !1;
|
|
201
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
202
|
-
const
|
|
203
|
-
return u.ctx && i(u.ctx[
|
|
204
|
-
}), u.update(), l = !0, K(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
201
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
202
|
+
const y = d.length ? d[0] : f;
|
|
203
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && pr(e, c)), f;
|
|
204
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
|
-
const
|
|
207
|
-
u.fragment && u.fragment.l(
|
|
206
|
+
const c = er(t.target);
|
|
207
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
208
208
|
} else
|
|
209
209
|
u.fragment && u.fragment.c();
|
|
210
|
-
t.intro && cr(e.$$.fragment),
|
|
210
|
+
t.intro && cr(e.$$.fragment), fr(e, t.target, t.anchor), le();
|
|
211
211
|
}
|
|
212
212
|
Q(h);
|
|
213
213
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
214
|
+
let vt;
|
|
215
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
216
216
|
/** The Svelte component constructor */
|
|
217
217
|
$$ctor;
|
|
218
218
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
271
271
|
};
|
|
272
272
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
273
|
return;
|
|
274
|
-
const t = {}, r =
|
|
274
|
+
const t = {}, r = nr(this);
|
|
275
275
|
for (const i of this.$$s)
|
|
276
276
|
i in r && (t[i] = [e(i)]);
|
|
277
277
|
for (const i of this.attributes) {
|
|
@@ -358,8 +358,8 @@ function se(e, t, r, n) {
|
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let s = class extends
|
|
361
|
+
function br(e, t, r, n, i, o) {
|
|
362
|
+
let s = class extends vt {
|
|
363
363
|
constructor() {
|
|
364
364
|
super(e, r, i), this.$$p_d = t;
|
|
365
365
|
}
|
|
@@ -387,7 +387,7 @@ function yr(e, t, r, n, i, o) {
|
|
|
387
387
|
}), e.element = /** @type {any} */
|
|
388
388
|
s, s;
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class vr {
|
|
391
391
|
/**
|
|
392
392
|
* ### PRIVATE API
|
|
393
393
|
*
|
|
@@ -406,7 +406,7 @@ class gr {
|
|
|
406
406
|
$$set = void 0;
|
|
407
407
|
/** @returns {void} */
|
|
408
408
|
$destroy() {
|
|
409
|
-
|
|
409
|
+
mr(this, 1), this.$destroy = T;
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,11 +428,11 @@ class gr {
|
|
|
428
428
|
* @returns {void}
|
|
429
429
|
*/
|
|
430
430
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
434
|
+
const yr = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yr);
|
|
436
436
|
var Ae = function(e, t) {
|
|
437
437
|
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
438
438
|
r.__proto__ = n;
|
|
@@ -449,16 +449,16 @@ function P(e, t) {
|
|
|
449
449
|
}
|
|
450
450
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
return
|
|
452
|
+
var v = function() {
|
|
453
|
+
return v = Object.assign || function(t) {
|
|
454
454
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
455
455
|
r = arguments[n];
|
|
456
456
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
457
457
|
}
|
|
458
458
|
return t;
|
|
459
|
-
},
|
|
459
|
+
}, v.apply(this, arguments);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function gr(e, t) {
|
|
462
462
|
var r = {};
|
|
463
463
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
464
464
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -501,13 +501,13 @@ function U(e, t, r) {
|
|
|
501
501
|
function A(e) {
|
|
502
502
|
return typeof e == "function";
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function yt(e) {
|
|
505
505
|
var t = function(n) {
|
|
506
506
|
Error.call(n), n.stack = new Error().stack;
|
|
507
507
|
}, r = e(t);
|
|
508
508
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
510
|
+
var ge = yt(function(e) {
|
|
511
511
|
return function(r) {
|
|
512
512
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
513
513
|
` + r.map(function(n, i) {
|
|
@@ -554,38 +554,38 @@ var me = function() {
|
|
|
554
554
|
try {
|
|
555
555
|
l();
|
|
556
556
|
} catch (m) {
|
|
557
|
-
o = m instanceof
|
|
557
|
+
o = m instanceof ge ? m.errors : [m];
|
|
558
558
|
}
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var c = this._finalizers;
|
|
560
|
+
if (c) {
|
|
561
561
|
this._finalizers = null;
|
|
562
562
|
try {
|
|
563
|
-
for (var
|
|
564
|
-
var
|
|
563
|
+
for (var f = Pe(c), d = f.next(); !d.done; d = f.next()) {
|
|
564
|
+
var y = d.value;
|
|
565
565
|
try {
|
|
566
|
-
|
|
566
|
+
ze(y);
|
|
567
567
|
} catch (m) {
|
|
568
|
-
o = o ?? [], m instanceof
|
|
568
|
+
o = o ?? [], m instanceof ge ? o = U(U([], Oe(o)), Oe(m.errors)) : o.push(m);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
} catch (m) {
|
|
572
572
|
n = { error: m };
|
|
573
573
|
} finally {
|
|
574
574
|
try {
|
|
575
|
-
d && !d.done && (i =
|
|
575
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
576
576
|
} finally {
|
|
577
577
|
if (n) throw n.error;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
if (o)
|
|
582
|
-
throw new
|
|
582
|
+
throw new ge(o);
|
|
583
583
|
}
|
|
584
584
|
}, e.prototype.add = function(t) {
|
|
585
585
|
var r;
|
|
586
586
|
if (t && t !== this)
|
|
587
587
|
if (this.closed)
|
|
588
|
-
|
|
588
|
+
ze(t);
|
|
589
589
|
else {
|
|
590
590
|
if (t instanceof e) {
|
|
591
591
|
if (t.closed || t._hasParent(this))
|
|
@@ -610,20 +610,16 @@ var me = function() {
|
|
|
610
610
|
var t = new e();
|
|
611
611
|
return t.closed = !0, t;
|
|
612
612
|
}(), e;
|
|
613
|
-
}(),
|
|
614
|
-
function
|
|
613
|
+
}(), gt = me.EMPTY;
|
|
614
|
+
function xt(e) {
|
|
615
615
|
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function ze(e) {
|
|
618
618
|
A(e) ? e() : e.unsubscribe();
|
|
619
619
|
}
|
|
620
|
-
var
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
Promise: void 0,
|
|
624
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
625
|
-
useDeprecatedNextContext: !1
|
|
626
|
-
}, Er = {
|
|
620
|
+
var xr = {
|
|
621
|
+
Promise: void 0
|
|
622
|
+
}, _r = {
|
|
627
623
|
setTimeout: function(e, t) {
|
|
628
624
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
629
625
|
r[n - 2] = arguments[n];
|
|
@@ -634,21 +630,21 @@ var _r = {
|
|
|
634
630
|
},
|
|
635
631
|
delegate: void 0
|
|
636
632
|
};
|
|
637
|
-
function
|
|
638
|
-
|
|
633
|
+
function Er(e) {
|
|
634
|
+
_r.setTimeout(function() {
|
|
639
635
|
throw e;
|
|
640
636
|
});
|
|
641
637
|
}
|
|
642
|
-
function
|
|
638
|
+
function Ze() {
|
|
643
639
|
}
|
|
644
640
|
function ae(e) {
|
|
645
641
|
e();
|
|
646
642
|
}
|
|
647
|
-
var
|
|
643
|
+
var _t = function(e) {
|
|
648
644
|
P(t, e);
|
|
649
645
|
function t(r) {
|
|
650
646
|
var n = e.call(this) || this;
|
|
651
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
647
|
+
return n.isStopped = !1, r ? (n.destination = r, xt(r) && r.add(n)) : n.destination = Hr, n;
|
|
652
648
|
}
|
|
653
649
|
return t.create = function(r, n, i) {
|
|
654
650
|
return new Ne(r, n, i);
|
|
@@ -675,7 +671,7 @@ var Et = function(e) {
|
|
|
675
671
|
this.unsubscribe();
|
|
676
672
|
}
|
|
677
673
|
}, t;
|
|
678
|
-
}(me),
|
|
674
|
+
}(me), Sr = function() {
|
|
679
675
|
function e(t) {
|
|
680
676
|
this.partialObserver = t;
|
|
681
677
|
}
|
|
@@ -714,35 +710,35 @@ var Et = function(e) {
|
|
|
714
710
|
next: r ?? void 0,
|
|
715
711
|
error: n ?? void 0,
|
|
716
712
|
complete: i ?? void 0
|
|
717
|
-
} : s = r, o.destination = new
|
|
713
|
+
} : s = r, o.destination = new Sr(s), o;
|
|
718
714
|
}
|
|
719
715
|
return t;
|
|
720
|
-
}(
|
|
716
|
+
}(_t);
|
|
721
717
|
function ie(e) {
|
|
722
|
-
|
|
718
|
+
Er(e);
|
|
723
719
|
}
|
|
724
|
-
function
|
|
720
|
+
function wr(e) {
|
|
725
721
|
throw e;
|
|
726
722
|
}
|
|
727
|
-
var
|
|
723
|
+
var Hr = {
|
|
728
724
|
closed: !0,
|
|
729
|
-
next:
|
|
730
|
-
error:
|
|
731
|
-
complete:
|
|
732
|
-
},
|
|
725
|
+
next: Ze,
|
|
726
|
+
error: wr,
|
|
727
|
+
complete: Ze
|
|
728
|
+
}, Tr = function() {
|
|
733
729
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
734
730
|
}();
|
|
735
|
-
function
|
|
731
|
+
function Br(e) {
|
|
736
732
|
return e;
|
|
737
733
|
}
|
|
738
|
-
function
|
|
739
|
-
return e.length === 0 ?
|
|
734
|
+
function Ar(e) {
|
|
735
|
+
return e.length === 0 ? Br : e.length === 1 ? e[0] : function(r) {
|
|
740
736
|
return e.reduce(function(n, i) {
|
|
741
737
|
return i(n);
|
|
742
738
|
}, r);
|
|
743
739
|
};
|
|
744
740
|
}
|
|
745
|
-
var
|
|
741
|
+
var Qe = function() {
|
|
746
742
|
function e(t) {
|
|
747
743
|
t && (this._subscribe = t);
|
|
748
744
|
}
|
|
@@ -750,7 +746,7 @@ var Je = function() {
|
|
|
750
746
|
var r = new e();
|
|
751
747
|
return r.source = this, r.operator = t, r;
|
|
752
748
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
753
|
-
var i = this, o =
|
|
749
|
+
var i = this, o = Or(t) ? t : new Ne(t, r, n);
|
|
754
750
|
return ae(function() {
|
|
755
751
|
var s = i, a = s.operator, h = s.source;
|
|
756
752
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -763,7 +759,7 @@ var Je = function() {
|
|
|
763
759
|
}
|
|
764
760
|
}, e.prototype.forEach = function(t, r) {
|
|
765
761
|
var n = this;
|
|
766
|
-
return r =
|
|
762
|
+
return r = Je(r), new r(function(i, o) {
|
|
767
763
|
var s = new Ne({
|
|
768
764
|
next: function(a) {
|
|
769
765
|
try {
|
|
@@ -780,15 +776,15 @@ var Je = function() {
|
|
|
780
776
|
}, e.prototype._subscribe = function(t) {
|
|
781
777
|
var r;
|
|
782
778
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
783
|
-
}, e.prototype[
|
|
779
|
+
}, e.prototype[Tr] = function() {
|
|
784
780
|
return this;
|
|
785
781
|
}, e.prototype.pipe = function() {
|
|
786
782
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
787
783
|
t[r] = arguments[r];
|
|
788
|
-
return
|
|
784
|
+
return Ar(t)(this);
|
|
789
785
|
}, e.prototype.toPromise = function(t) {
|
|
790
786
|
var r = this;
|
|
791
|
-
return t =
|
|
787
|
+
return t = Je(t), new t(function(n, i) {
|
|
792
788
|
var o;
|
|
793
789
|
r.subscribe(function(s) {
|
|
794
790
|
return o = s;
|
|
@@ -802,32 +798,32 @@ var Je = function() {
|
|
|
802
798
|
return new e(t);
|
|
803
799
|
}, e;
|
|
804
800
|
}();
|
|
805
|
-
function
|
|
801
|
+
function Je(e) {
|
|
806
802
|
var t;
|
|
807
|
-
return (t = e ??
|
|
803
|
+
return (t = e ?? xr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
808
804
|
}
|
|
809
|
-
function
|
|
805
|
+
function Pr(e) {
|
|
810
806
|
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
811
807
|
}
|
|
812
|
-
function
|
|
813
|
-
return e && e instanceof
|
|
808
|
+
function Or(e) {
|
|
809
|
+
return e && e instanceof _t || Pr(e) && xt(e);
|
|
814
810
|
}
|
|
815
|
-
var
|
|
811
|
+
var Ir = yt(function(e) {
|
|
816
812
|
return function() {
|
|
817
813
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
818
814
|
};
|
|
819
|
-
}),
|
|
815
|
+
}), Et = function(e) {
|
|
820
816
|
P(t, e);
|
|
821
817
|
function t() {
|
|
822
818
|
var r = e.call(this) || this;
|
|
823
819
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
824
820
|
}
|
|
825
821
|
return t.prototype.lift = function(r) {
|
|
826
|
-
var n = new
|
|
822
|
+
var n = new Ye(this, this);
|
|
827
823
|
return n.operator = r, n;
|
|
828
824
|
}, t.prototype._throwIfClosed = function() {
|
|
829
825
|
if (this.closed)
|
|
830
|
-
throw new
|
|
826
|
+
throw new Ir();
|
|
831
827
|
}, t.prototype.next = function(r) {
|
|
832
828
|
var n = this;
|
|
833
829
|
ae(function() {
|
|
@@ -883,19 +879,19 @@ var Nr = vt(function(e) {
|
|
|
883
879
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
884
880
|
}, t.prototype._innerSubscribe = function(r) {
|
|
885
881
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
886
|
-
return o || s ?
|
|
882
|
+
return o || s ? gt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
887
883
|
n.currentObservers = null, Ie(a, r);
|
|
888
884
|
}));
|
|
889
885
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
890
886
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
891
887
|
i ? r.error(o) : s && r.complete();
|
|
892
888
|
}, t.prototype.asObservable = function() {
|
|
893
|
-
var r = new
|
|
889
|
+
var r = new Qe();
|
|
894
890
|
return r.source = this, r;
|
|
895
891
|
}, t.create = function(r, n) {
|
|
896
|
-
return new
|
|
892
|
+
return new Ye(r, n);
|
|
897
893
|
}, t;
|
|
898
|
-
}(
|
|
894
|
+
}(Qe), Ye = function(e) {
|
|
899
895
|
P(t, e);
|
|
900
896
|
function t(r, n) {
|
|
901
897
|
var i = e.call(this) || this;
|
|
@@ -912,17 +908,17 @@ var Nr = vt(function(e) {
|
|
|
912
908
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
913
909
|
}, t.prototype._subscribe = function(r) {
|
|
914
910
|
var n, i;
|
|
915
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
911
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : gt;
|
|
916
912
|
}, t;
|
|
917
|
-
}(
|
|
913
|
+
}(Et), St = {
|
|
918
914
|
now: function() {
|
|
919
|
-
return (
|
|
915
|
+
return (St.delegate || Date).now();
|
|
920
916
|
},
|
|
921
917
|
delegate: void 0
|
|
922
|
-
},
|
|
918
|
+
}, Nr = function(e) {
|
|
923
919
|
P(t, e);
|
|
924
920
|
function t(r, n, i) {
|
|
925
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
921
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = St);
|
|
926
922
|
var o = e.call(this) || this;
|
|
927
923
|
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;
|
|
928
924
|
}
|
|
@@ -942,15 +938,15 @@ var Nr = vt(function(e) {
|
|
|
942
938
|
u && o.splice(0, u + 1);
|
|
943
939
|
}
|
|
944
940
|
}, t;
|
|
945
|
-
}(
|
|
946
|
-
const
|
|
947
|
-
if (
|
|
948
|
-
const r = new
|
|
949
|
-
|
|
941
|
+
}(Et);
|
|
942
|
+
const qe = [], Ke = {}, Cr = (e, t = 0) => {
|
|
943
|
+
if (qe.indexOf(e) == -1) {
|
|
944
|
+
const r = new Nr(t);
|
|
945
|
+
Ke[e] = r, qe.push(e);
|
|
950
946
|
}
|
|
951
|
-
return
|
|
947
|
+
return Ke[e];
|
|
952
948
|
}, $ = [];
|
|
953
|
-
function
|
|
949
|
+
function Lr(e, t) {
|
|
954
950
|
return {
|
|
955
951
|
subscribe: pe(e, t).subscribe
|
|
956
952
|
};
|
|
@@ -959,7 +955,7 @@ function pe(e, t = T) {
|
|
|
959
955
|
let r;
|
|
960
956
|
const n = /* @__PURE__ */ new Set();
|
|
961
957
|
function i(a) {
|
|
962
|
-
if (
|
|
958
|
+
if (dt(e, a) && (e = a, r)) {
|
|
963
959
|
const h = !$.length;
|
|
964
960
|
for (const u of n)
|
|
965
961
|
u[1](), $.push(u, e);
|
|
@@ -986,96 +982,96 @@ function X(e, t, r) {
|
|
|
986
982
|
if (!i.every(Boolean))
|
|
987
983
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
988
984
|
const o = t.length < 2;
|
|
989
|
-
return
|
|
985
|
+
return Lr(r, (s, a) => {
|
|
990
986
|
let h = !1;
|
|
991
987
|
const u = [];
|
|
992
|
-
let l = 0,
|
|
993
|
-
const
|
|
988
|
+
let l = 0, c = T;
|
|
989
|
+
const f = () => {
|
|
994
990
|
if (l)
|
|
995
991
|
return;
|
|
996
|
-
|
|
997
|
-
const
|
|
998
|
-
o ? s(
|
|
992
|
+
c();
|
|
993
|
+
const y = t(n ? u[0] : u, s, a);
|
|
994
|
+
o ? s(y) : c = Ge(y) ? y : T;
|
|
999
995
|
}, d = i.map(
|
|
1000
|
-
(
|
|
1001
|
-
|
|
996
|
+
(y, m) => Zt(
|
|
997
|
+
y,
|
|
1002
998
|
(_) => {
|
|
1003
|
-
u[m] = _, l &= ~(1 << m), h &&
|
|
999
|
+
u[m] = _, l &= ~(1 << m), h && f();
|
|
1004
1000
|
},
|
|
1005
1001
|
() => {
|
|
1006
1002
|
l |= 1 << m;
|
|
1007
1003
|
}
|
|
1008
1004
|
)
|
|
1009
1005
|
);
|
|
1010
|
-
return h = !0,
|
|
1011
|
-
K(d),
|
|
1006
|
+
return h = !0, f(), function() {
|
|
1007
|
+
K(d), c(), h = !1;
|
|
1012
1008
|
};
|
|
1013
1009
|
});
|
|
1014
1010
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1011
|
+
function $r(e) {
|
|
1012
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1017
1013
|
}
|
|
1018
|
-
var
|
|
1019
|
-
return
|
|
1014
|
+
var Mr = function(t) {
|
|
1015
|
+
return Rr(t) && !Ur(t);
|
|
1020
1016
|
};
|
|
1021
|
-
function
|
|
1017
|
+
function Rr(e) {
|
|
1022
1018
|
return !!e && typeof e == "object";
|
|
1023
1019
|
}
|
|
1024
|
-
function
|
|
1020
|
+
function Ur(e) {
|
|
1025
1021
|
var t = Object.prototype.toString.call(e);
|
|
1026
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1022
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
1027
1023
|
}
|
|
1028
|
-
var
|
|
1029
|
-
function
|
|
1030
|
-
return e.$$typeof ===
|
|
1024
|
+
var Dr = typeof Symbol == "function" && Symbol.for, Fr = Dr ? Symbol.for("react.element") : 60103;
|
|
1025
|
+
function Gr(e) {
|
|
1026
|
+
return e.$$typeof === Fr;
|
|
1031
1027
|
}
|
|
1032
|
-
function
|
|
1028
|
+
function jr(e) {
|
|
1033
1029
|
return Array.isArray(e) ? [] : {};
|
|
1034
1030
|
}
|
|
1035
1031
|
function Y(e, t) {
|
|
1036
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
1032
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(jr(e), e, t) : e;
|
|
1037
1033
|
}
|
|
1038
|
-
function
|
|
1034
|
+
function kr(e, t, r) {
|
|
1039
1035
|
return e.concat(t).map(function(n) {
|
|
1040
1036
|
return Y(n, r);
|
|
1041
1037
|
});
|
|
1042
1038
|
}
|
|
1043
|
-
function
|
|
1039
|
+
function Vr(e, t) {
|
|
1044
1040
|
if (!t.customMerge)
|
|
1045
1041
|
return F;
|
|
1046
1042
|
var r = t.customMerge(e);
|
|
1047
1043
|
return typeof r == "function" ? r : F;
|
|
1048
1044
|
}
|
|
1049
|
-
function
|
|
1045
|
+
function Xr(e) {
|
|
1050
1046
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1051
1047
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1052
1048
|
}) : [];
|
|
1053
1049
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return Object.keys(e).concat(
|
|
1050
|
+
function et(e) {
|
|
1051
|
+
return Object.keys(e).concat(Xr(e));
|
|
1056
1052
|
}
|
|
1057
|
-
function
|
|
1053
|
+
function wt(e, t) {
|
|
1058
1054
|
try {
|
|
1059
1055
|
return t in e;
|
|
1060
1056
|
} catch {
|
|
1061
1057
|
return !1;
|
|
1062
1058
|
}
|
|
1063
1059
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return
|
|
1060
|
+
function Wr(e, t) {
|
|
1061
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1066
1062
|
}
|
|
1067
|
-
function
|
|
1063
|
+
function zr(e, t, r) {
|
|
1068
1064
|
var n = {};
|
|
1069
|
-
return r.isMergeableObject(e) &&
|
|
1065
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
1070
1066
|
n[i] = Y(e[i], r);
|
|
1071
|
-
}),
|
|
1072
|
-
|
|
1067
|
+
}), et(t).forEach(function(i) {
|
|
1068
|
+
Wr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1073
1069
|
}), n;
|
|
1074
1070
|
}
|
|
1075
1071
|
function F(e, t, r) {
|
|
1076
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1072
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Mr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1077
1073
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1078
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1074
|
+
return o ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : Y(t, r);
|
|
1079
1075
|
}
|
|
1080
1076
|
F.all = function(t, r) {
|
|
1081
1077
|
if (!Array.isArray(t))
|
|
@@ -1084,42 +1080,39 @@ F.all = function(t, r) {
|
|
|
1084
1080
|
return F(n, i, r);
|
|
1085
1081
|
}, {});
|
|
1086
1082
|
};
|
|
1087
|
-
var
|
|
1088
|
-
const
|
|
1083
|
+
var Zr = F, Qr = Zr;
|
|
1084
|
+
const Jr = /* @__PURE__ */ $r(Qr);
|
|
1089
1085
|
function xe(e, t) {
|
|
1090
|
-
var r = t && t.cache ? t.cache :
|
|
1086
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : tn, i = t && t.strategy ? t.strategy : Kr;
|
|
1091
1087
|
return i(e, {
|
|
1092
1088
|
cache: r,
|
|
1093
1089
|
serializer: n
|
|
1094
1090
|
});
|
|
1095
1091
|
}
|
|
1096
|
-
function
|
|
1092
|
+
function Yr(e) {
|
|
1097
1093
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1098
1094
|
}
|
|
1099
|
-
function
|
|
1100
|
-
var i =
|
|
1095
|
+
function qr(e, t, r, n) {
|
|
1096
|
+
var i = Yr(n) ? n : r(n), o = t.get(i);
|
|
1101
1097
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1102
1098
|
}
|
|
1103
|
-
function
|
|
1099
|
+
function Ht(e, t, r) {
|
|
1104
1100
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1105
1101
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1106
1102
|
}
|
|
1107
|
-
function
|
|
1103
|
+
function Tt(e, t, r, n, i) {
|
|
1108
1104
|
return r.bind(t, e, n, i);
|
|
1109
1105
|
}
|
|
1110
1106
|
function Kr(e, t) {
|
|
1111
|
-
var r = e.length === 1 ?
|
|
1112
|
-
return
|
|
1107
|
+
var r = e.length === 1 ? qr : Ht;
|
|
1108
|
+
return Tt(e, this, r, t.cache.create(), t.serializer);
|
|
1113
1109
|
}
|
|
1114
1110
|
function en(e, t) {
|
|
1115
|
-
return
|
|
1116
|
-
}
|
|
1117
|
-
function tn(e, t) {
|
|
1118
|
-
return je(e, this, Tt, t.cache.create(), t.serializer);
|
|
1111
|
+
return Tt(e, this, Ht, t.cache.create(), t.serializer);
|
|
1119
1112
|
}
|
|
1120
|
-
var
|
|
1113
|
+
var tn = function() {
|
|
1121
1114
|
return JSON.stringify(arguments);
|
|
1122
|
-
},
|
|
1115
|
+
}, rn = (
|
|
1123
1116
|
/** @class */
|
|
1124
1117
|
function() {
|
|
1125
1118
|
function e() {
|
|
@@ -1131,13 +1124,12 @@ var rn = function() {
|
|
|
1131
1124
|
this.cache[t] = r;
|
|
1132
1125
|
}, e;
|
|
1133
1126
|
}()
|
|
1134
|
-
),
|
|
1127
|
+
), nn = {
|
|
1135
1128
|
create: function() {
|
|
1136
|
-
return new
|
|
1129
|
+
return new rn();
|
|
1137
1130
|
}
|
|
1138
1131
|
}, _e = {
|
|
1139
|
-
variadic: en
|
|
1140
|
-
monadic: tn
|
|
1132
|
+
variadic: en
|
|
1141
1133
|
}, p;
|
|
1142
1134
|
(function(e) {
|
|
1143
1135
|
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";
|
|
@@ -1150,43 +1142,43 @@ var G;
|
|
|
1150
1142
|
(function(e) {
|
|
1151
1143
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1152
1144
|
})(G || (G = {}));
|
|
1153
|
-
function
|
|
1145
|
+
function tt(e) {
|
|
1154
1146
|
return e.type === x.literal;
|
|
1155
1147
|
}
|
|
1156
|
-
function
|
|
1148
|
+
function on(e) {
|
|
1157
1149
|
return e.type === x.argument;
|
|
1158
1150
|
}
|
|
1159
|
-
function
|
|
1151
|
+
function Bt(e) {
|
|
1160
1152
|
return e.type === x.number;
|
|
1161
1153
|
}
|
|
1162
|
-
function
|
|
1154
|
+
function At(e) {
|
|
1163
1155
|
return e.type === x.date;
|
|
1164
1156
|
}
|
|
1165
|
-
function
|
|
1157
|
+
function Pt(e) {
|
|
1166
1158
|
return e.type === x.time;
|
|
1167
1159
|
}
|
|
1168
|
-
function
|
|
1160
|
+
function Ot(e) {
|
|
1169
1161
|
return e.type === x.select;
|
|
1170
1162
|
}
|
|
1171
|
-
function
|
|
1163
|
+
function It(e) {
|
|
1172
1164
|
return e.type === x.plural;
|
|
1173
1165
|
}
|
|
1174
|
-
function
|
|
1166
|
+
function sn(e) {
|
|
1175
1167
|
return e.type === x.pound;
|
|
1176
1168
|
}
|
|
1177
|
-
function
|
|
1169
|
+
function Nt(e) {
|
|
1178
1170
|
return e.type === x.tag;
|
|
1179
1171
|
}
|
|
1180
|
-
function
|
|
1172
|
+
function Ct(e) {
|
|
1181
1173
|
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1182
1174
|
}
|
|
1183
1175
|
function Ce(e) {
|
|
1184
1176
|
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1185
1177
|
}
|
|
1186
|
-
var
|
|
1187
|
-
function
|
|
1178
|
+
var Lt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
1179
|
+
function un(e) {
|
|
1188
1180
|
var t = {};
|
|
1189
|
-
return e.replace(
|
|
1181
|
+
return e.replace(an, function(r) {
|
|
1190
1182
|
var n = r.length;
|
|
1191
1183
|
switch (r[0]) {
|
|
1192
1184
|
case "G":
|
|
@@ -1275,19 +1267,19 @@ function hn(e) {
|
|
|
1275
1267
|
return "";
|
|
1276
1268
|
}), t;
|
|
1277
1269
|
}
|
|
1278
|
-
var
|
|
1279
|
-
function
|
|
1270
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1271
|
+
function ln(e) {
|
|
1280
1272
|
if (e.length === 0)
|
|
1281
1273
|
throw new Error("Number skeleton cannot be empty");
|
|
1282
|
-
for (var t = e.split(
|
|
1283
|
-
return
|
|
1274
|
+
for (var t = e.split(hn).filter(function(f) {
|
|
1275
|
+
return f.length > 0;
|
|
1284
1276
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1285
1277
|
var o = i[n], s = o.split("/");
|
|
1286
1278
|
if (s.length === 0)
|
|
1287
1279
|
throw new Error("Invalid number skeleton");
|
|
1288
1280
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1289
|
-
var
|
|
1290
|
-
if (
|
|
1281
|
+
var c = l[u];
|
|
1282
|
+
if (c.length === 0)
|
|
1291
1283
|
throw new Error("Invalid number skeleton");
|
|
1292
1284
|
}
|
|
1293
1285
|
r.push({ stem: a, options: h });
|
|
@@ -1297,14 +1289,14 @@ function fn(e) {
|
|
|
1297
1289
|
function cn(e) {
|
|
1298
1290
|
return e.replace(/^(.*?)-/, "");
|
|
1299
1291
|
}
|
|
1300
|
-
var
|
|
1301
|
-
function
|
|
1292
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
|
|
1293
|
+
function nt(e) {
|
|
1302
1294
|
var t = {};
|
|
1303
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1295
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
1304
1296
|
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)), "";
|
|
1305
1297
|
}), t;
|
|
1306
1298
|
}
|
|
1307
|
-
function
|
|
1299
|
+
function Rt(e) {
|
|
1308
1300
|
switch (e) {
|
|
1309
1301
|
case "sign-auto":
|
|
1310
1302
|
return {
|
|
@@ -1344,7 +1336,7 @@ function Ut(e) {
|
|
|
1344
1336
|
};
|
|
1345
1337
|
}
|
|
1346
1338
|
}
|
|
1347
|
-
function
|
|
1339
|
+
function mn(e) {
|
|
1348
1340
|
var t;
|
|
1349
1341
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1350
1342
|
notation: "engineering"
|
|
@@ -1352,17 +1344,17 @@ function pn(e) {
|
|
|
1352
1344
|
notation: "scientific"
|
|
1353
1345
|
}, e = e.slice(1)), t) {
|
|
1354
1346
|
var r = e.slice(0, 2);
|
|
1355
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1347
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
|
|
1356
1348
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1357
1349
|
t.minimumIntegerDigits = e.length;
|
|
1358
1350
|
}
|
|
1359
1351
|
return t;
|
|
1360
1352
|
}
|
|
1361
|
-
function
|
|
1362
|
-
var t = {}, r =
|
|
1353
|
+
function it(e) {
|
|
1354
|
+
var t = {}, r = Rt(e);
|
|
1363
1355
|
return r || t;
|
|
1364
1356
|
}
|
|
1365
|
-
function
|
|
1357
|
+
function pn(e) {
|
|
1366
1358
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1367
1359
|
var i = n[r];
|
|
1368
1360
|
switch (i.stem) {
|
|
@@ -1397,13 +1389,13 @@ function dn(e) {
|
|
|
1397
1389
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1398
1390
|
continue;
|
|
1399
1391
|
case "scientific":
|
|
1400
|
-
t =
|
|
1401
|
-
return
|
|
1392
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1393
|
+
return v(v({}, h), it(u));
|
|
1402
1394
|
}, {}));
|
|
1403
1395
|
continue;
|
|
1404
1396
|
case "engineering":
|
|
1405
|
-
t =
|
|
1406
|
-
return
|
|
1397
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1398
|
+
return v(v({}, h), it(u));
|
|
1407
1399
|
}, {}));
|
|
1408
1400
|
continue;
|
|
1409
1401
|
case "notation-simple":
|
|
@@ -1448,11 +1440,11 @@ function dn(e) {
|
|
|
1448
1440
|
case "integer-width":
|
|
1449
1441
|
if (i.options.length > 1)
|
|
1450
1442
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1451
|
-
i.options[0].replace(
|
|
1443
|
+
i.options[0].replace(fn, function(h, u, l, c, f, d) {
|
|
1452
1444
|
if (u)
|
|
1453
1445
|
t.minimumIntegerDigits = l.length;
|
|
1454
1446
|
else {
|
|
1455
|
-
if (
|
|
1447
|
+
if (c && f)
|
|
1456
1448
|
throw new Error("We currently do not support maximum integer digits");
|
|
1457
1449
|
if (d)
|
|
1458
1450
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1461,28 +1453,28 @@ function dn(e) {
|
|
|
1461
1453
|
});
|
|
1462
1454
|
continue;
|
|
1463
1455
|
}
|
|
1464
|
-
if (
|
|
1456
|
+
if (Mt.test(i.stem)) {
|
|
1465
1457
|
t.minimumIntegerDigits = i.stem.length;
|
|
1466
1458
|
continue;
|
|
1467
1459
|
}
|
|
1468
|
-
if (
|
|
1460
|
+
if (rt.test(i.stem)) {
|
|
1469
1461
|
if (i.options.length > 1)
|
|
1470
1462
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1471
|
-
i.stem.replace(
|
|
1472
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1463
|
+
i.stem.replace(rt, function(h, u, l, c, f, d) {
|
|
1464
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1473
1465
|
});
|
|
1474
1466
|
var o = i.options[0];
|
|
1475
|
-
o === "w" ? t =
|
|
1467
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), nt(o)));
|
|
1476
1468
|
continue;
|
|
1477
1469
|
}
|
|
1478
|
-
if (
|
|
1479
|
-
t =
|
|
1470
|
+
if ($t.test(i.stem)) {
|
|
1471
|
+
t = v(v({}, t), nt(i.stem));
|
|
1480
1472
|
continue;
|
|
1481
1473
|
}
|
|
1482
|
-
var s =
|
|
1483
|
-
s && (t =
|
|
1484
|
-
var a =
|
|
1485
|
-
a && (t =
|
|
1474
|
+
var s = Rt(i.stem);
|
|
1475
|
+
s && (t = v(v({}, t), s));
|
|
1476
|
+
var a = mn(i.stem);
|
|
1477
|
+
a && (t = v(v({}, t), a));
|
|
1486
1478
|
}
|
|
1487
1479
|
return t;
|
|
1488
1480
|
}
|
|
@@ -2901,13 +2893,13 @@ var oe = {
|
|
|
2901
2893
|
"h"
|
|
2902
2894
|
]
|
|
2903
2895
|
};
|
|
2904
|
-
function
|
|
2896
|
+
function dn(e, t) {
|
|
2905
2897
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2906
2898
|
var i = e.charAt(n);
|
|
2907
2899
|
if (i === "j") {
|
|
2908
2900
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2909
2901
|
o++, n++;
|
|
2910
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2902
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = bn(t);
|
|
2911
2903
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2912
2904
|
r += h;
|
|
2913
2905
|
for (; s-- > 0; )
|
|
@@ -2916,7 +2908,7 @@ function bn(e, t) {
|
|
|
2916
2908
|
}
|
|
2917
2909
|
return r;
|
|
2918
2910
|
}
|
|
2919
|
-
function
|
|
2911
|
+
function bn(e) {
|
|
2920
2912
|
var t = e.hourCycle;
|
|
2921
2913
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2922
2914
|
e.hourCycles && // @ts-ignore
|
|
@@ -2938,20 +2930,20 @@ function yn(e) {
|
|
|
2938
2930
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2939
2931
|
return i[0];
|
|
2940
2932
|
}
|
|
2941
|
-
var Ee,
|
|
2933
|
+
var Ee, vn = new RegExp("^".concat(Lt.source, "*")), yn = new RegExp("".concat(Lt.source, "*$"));
|
|
2942
2934
|
function b(e, t) {
|
|
2943
2935
|
return { start: e, end: t };
|
|
2944
2936
|
}
|
|
2945
|
-
var
|
|
2937
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, _n = !!Object.fromEntries, En = !!String.prototype.codePointAt, Sn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Tn = Hn ? Number.isSafeInteger : function(e) {
|
|
2946
2938
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2947
2939
|
}, Le = !0;
|
|
2948
2940
|
try {
|
|
2949
|
-
var
|
|
2950
|
-
Le = ((Ee =
|
|
2941
|
+
var Bn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2942
|
+
Le = ((Ee = Bn.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
|
2951
2943
|
} catch {
|
|
2952
2944
|
Le = !1;
|
|
2953
2945
|
}
|
|
2954
|
-
var
|
|
2946
|
+
var ot = gn ? (
|
|
2955
2947
|
// Native
|
|
2956
2948
|
function(t, r, n) {
|
|
2957
2949
|
return t.startsWith(r, n);
|
|
@@ -2961,7 +2953,7 @@ var st = xn ? (
|
|
|
2961
2953
|
function(t, r, n) {
|
|
2962
2954
|
return t.slice(n, n + r.length) === r;
|
|
2963
2955
|
}
|
|
2964
|
-
), $e =
|
|
2956
|
+
), $e = xn ? String.fromCodePoint : (
|
|
2965
2957
|
// IE11
|
|
2966
2958
|
function() {
|
|
2967
2959
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2973,9 +2965,9 @@ var st = xn ? (
|
|
|
2973
2965
|
}
|
|
2974
2966
|
return n;
|
|
2975
2967
|
}
|
|
2976
|
-
),
|
|
2968
|
+
), st = (
|
|
2977
2969
|
// native
|
|
2978
|
-
|
|
2970
|
+
_n ? Object.fromEntries : (
|
|
2979
2971
|
// Ponyfill
|
|
2980
2972
|
function(t) {
|
|
2981
2973
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2985,7 +2977,7 @@ var st = xn ? (
|
|
|
2985
2977
|
return r;
|
|
2986
2978
|
}
|
|
2987
2979
|
)
|
|
2988
|
-
),
|
|
2980
|
+
), Ut = En ? (
|
|
2989
2981
|
// Native
|
|
2990
2982
|
function(t, r) {
|
|
2991
2983
|
return t.codePointAt(r);
|
|
@@ -2999,7 +2991,7 @@ var st = xn ? (
|
|
|
2999
2991
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3000
2992
|
}
|
|
3001
2993
|
}
|
|
3002
|
-
),
|
|
2994
|
+
), An = Sn ? (
|
|
3003
2995
|
// Native
|
|
3004
2996
|
function(t) {
|
|
3005
2997
|
return t.trimStart();
|
|
@@ -3007,9 +2999,9 @@ var st = xn ? (
|
|
|
3007
2999
|
) : (
|
|
3008
3000
|
// Ponyfill
|
|
3009
3001
|
function(t) {
|
|
3010
|
-
return t.replace(
|
|
3002
|
+
return t.replace(vn, "");
|
|
3011
3003
|
}
|
|
3012
|
-
),
|
|
3004
|
+
), Pn = wn ? (
|
|
3013
3005
|
// Native
|
|
3014
3006
|
function(t) {
|
|
3015
3007
|
return t.trimEnd();
|
|
@@ -3017,32 +3009,32 @@ var st = xn ? (
|
|
|
3017
3009
|
) : (
|
|
3018
3010
|
// Ponyfill
|
|
3019
3011
|
function(t) {
|
|
3020
|
-
return t.replace(
|
|
3012
|
+
return t.replace(yn, "");
|
|
3021
3013
|
}
|
|
3022
3014
|
);
|
|
3023
|
-
function
|
|
3015
|
+
function Dt(e, t) {
|
|
3024
3016
|
return new RegExp(e, t);
|
|
3025
3017
|
}
|
|
3026
3018
|
var Me;
|
|
3027
3019
|
if (Le) {
|
|
3028
|
-
var
|
|
3020
|
+
var at = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3029
3021
|
Me = function(t, r) {
|
|
3030
3022
|
var n;
|
|
3031
|
-
|
|
3032
|
-
var i =
|
|
3023
|
+
at.lastIndex = r;
|
|
3024
|
+
var i = at.exec(t);
|
|
3033
3025
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3034
3026
|
};
|
|
3035
3027
|
} else
|
|
3036
3028
|
Me = function(t, r) {
|
|
3037
3029
|
for (var n = []; ; ) {
|
|
3038
|
-
var i =
|
|
3039
|
-
if (i === void 0 ||
|
|
3030
|
+
var i = Ut(t, r);
|
|
3031
|
+
if (i === void 0 || Ft(i) || Cn(i))
|
|
3040
3032
|
break;
|
|
3041
3033
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3042
3034
|
}
|
|
3043
3035
|
return $e.apply(void 0, n);
|
|
3044
3036
|
};
|
|
3045
|
-
var
|
|
3037
|
+
var On = (
|
|
3046
3038
|
/** @class */
|
|
3047
3039
|
function() {
|
|
3048
3040
|
function e(t, r) {
|
|
@@ -3124,7 +3116,7 @@ var In = (
|
|
|
3124
3116
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
3125
3117
|
}, e.prototype.parseTagName = function() {
|
|
3126
3118
|
var t = this.offset();
|
|
3127
|
-
for (this.bump(); !this.isEOF() &&
|
|
3119
|
+
for (this.bump(); !this.isEOF() && Nn(this.char()); )
|
|
3128
3120
|
this.bump();
|
|
3129
3121
|
return this.message.slice(t, this.offset());
|
|
3130
3122
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3153,7 +3145,7 @@ var In = (
|
|
|
3153
3145
|
};
|
|
3154
3146
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3155
3147
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3156
|
-
!
|
|
3148
|
+
!In(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3157
3149
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3158
3150
|
if (this.isEOF() || this.char() !== 39)
|
|
3159
3151
|
return null;
|
|
@@ -3237,40 +3229,40 @@ var In = (
|
|
|
3237
3229
|
var u = null;
|
|
3238
3230
|
if (this.bumpIf(",")) {
|
|
3239
3231
|
this.bumpSpace();
|
|
3240
|
-
var l = this.clonePosition(),
|
|
3241
|
-
if (
|
|
3242
|
-
return
|
|
3243
|
-
var
|
|
3244
|
-
if (
|
|
3232
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3233
|
+
if (c.err)
|
|
3234
|
+
return c;
|
|
3235
|
+
var f = Pn(c.val);
|
|
3236
|
+
if (f.length === 0)
|
|
3245
3237
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3246
3238
|
var d = b(l, this.clonePosition());
|
|
3247
|
-
u = { style:
|
|
3239
|
+
u = { style: f, styleLocation: d };
|
|
3248
3240
|
}
|
|
3249
|
-
var
|
|
3250
|
-
if (
|
|
3251
|
-
return
|
|
3241
|
+
var y = this.tryParseArgumentClose(i);
|
|
3242
|
+
if (y.err)
|
|
3243
|
+
return y;
|
|
3252
3244
|
var m = b(i, this.clonePosition());
|
|
3253
|
-
if (u &&
|
|
3254
|
-
var _ =
|
|
3245
|
+
if (u && ot(u?.style, "::", 0)) {
|
|
3246
|
+
var _ = An(u.style.slice(2));
|
|
3255
3247
|
if (a === "number") {
|
|
3256
|
-
var
|
|
3257
|
-
return
|
|
3258
|
-
val: { type: x.number, value: n, location: m, style:
|
|
3248
|
+
var c = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3249
|
+
return c.err ? c : {
|
|
3250
|
+
val: { type: x.number, value: n, location: m, style: c.val },
|
|
3259
3251
|
err: null
|
|
3260
3252
|
};
|
|
3261
3253
|
} else {
|
|
3262
3254
|
if (_.length === 0)
|
|
3263
3255
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
|
3264
|
-
var
|
|
3265
|
-
this.locale && (
|
|
3266
|
-
var
|
|
3256
|
+
var g = _;
|
|
3257
|
+
this.locale && (g = dn(_, this.locale));
|
|
3258
|
+
var f = {
|
|
3267
3259
|
type: G.dateTime,
|
|
3268
|
-
pattern:
|
|
3260
|
+
pattern: g,
|
|
3269
3261
|
location: u.styleLocation,
|
|
3270
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3262
|
+
parsedOptions: this.shouldParseSkeletons ? un(g) : {}
|
|
3271
3263
|
}, H = a === "date" ? x.date : x.time;
|
|
3272
3264
|
return {
|
|
3273
|
-
val: { type: H, value: n, location: m, style:
|
|
3265
|
+
val: { type: H, value: n, location: m, style: f },
|
|
3274
3266
|
err: null
|
|
3275
3267
|
};
|
|
3276
3268
|
}
|
|
@@ -3290,41 +3282,41 @@ var In = (
|
|
|
3290
3282
|
case "select": {
|
|
3291
3283
|
var S = this.clonePosition();
|
|
3292
3284
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3293
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3285
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, v({}, S)));
|
|
3294
3286
|
this.bumpSpace();
|
|
3295
3287
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
3296
3288
|
if (a !== "select" && z.value === "offset") {
|
|
3297
3289
|
if (!this.bumpIf(":"))
|
|
3298
3290
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3299
3291
|
this.bumpSpace();
|
|
3300
|
-
var
|
|
3301
|
-
if (
|
|
3302
|
-
return
|
|
3303
|
-
this.bumpSpace(), z = this.parseIdentifierIfPossible(), I =
|
|
3292
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3293
|
+
if (c.err)
|
|
3294
|
+
return c;
|
|
3295
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), I = c.val;
|
|
3304
3296
|
}
|
|
3305
3297
|
var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3306
3298
|
if (ne.err)
|
|
3307
3299
|
return ne;
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3310
|
-
return
|
|
3311
|
-
var
|
|
3300
|
+
var y = this.tryParseArgumentClose(i);
|
|
3301
|
+
if (y.err)
|
|
3302
|
+
return y;
|
|
3303
|
+
var Ve = b(i, this.clonePosition());
|
|
3312
3304
|
return a === "select" ? {
|
|
3313
3305
|
val: {
|
|
3314
3306
|
type: x.select,
|
|
3315
3307
|
value: n,
|
|
3316
|
-
options:
|
|
3317
|
-
location:
|
|
3308
|
+
options: st(ne.val),
|
|
3309
|
+
location: Ve
|
|
3318
3310
|
},
|
|
3319
3311
|
err: null
|
|
3320
3312
|
} : {
|
|
3321
3313
|
val: {
|
|
3322
3314
|
type: x.plural,
|
|
3323
3315
|
value: n,
|
|
3324
|
-
options:
|
|
3316
|
+
options: st(ne.val),
|
|
3325
3317
|
offset: I,
|
|
3326
3318
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3327
|
-
location:
|
|
3319
|
+
location: Ve
|
|
3328
3320
|
},
|
|
3329
3321
|
err: null
|
|
3330
3322
|
};
|
|
@@ -3372,7 +3364,7 @@ var In = (
|
|
|
3372
3364
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3373
3365
|
var n = [];
|
|
3374
3366
|
try {
|
|
3375
|
-
n =
|
|
3367
|
+
n = ln(t);
|
|
3376
3368
|
} catch {
|
|
3377
3369
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3378
3370
|
}
|
|
@@ -3381,19 +3373,19 @@ var In = (
|
|
|
3381
3373
|
type: G.number,
|
|
3382
3374
|
tokens: n,
|
|
3383
3375
|
location: r,
|
|
3384
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3376
|
+
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
3385
3377
|
},
|
|
3386
3378
|
err: null
|
|
3387
3379
|
};
|
|
3388
3380
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3389
3381
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3390
3382
|
if (u.length === 0) {
|
|
3391
|
-
var
|
|
3383
|
+
var c = this.clonePosition();
|
|
3392
3384
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3393
|
-
var
|
|
3394
|
-
if (
|
|
3395
|
-
return
|
|
3396
|
-
l = b(
|
|
3385
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3386
|
+
if (f.err)
|
|
3387
|
+
return f;
|
|
3388
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3397
3389
|
} else
|
|
3398
3390
|
break;
|
|
3399
3391
|
}
|
|
@@ -3403,16 +3395,16 @@ var In = (
|
|
|
3403
3395
|
var d = this.clonePosition();
|
|
3404
3396
|
if (!this.bumpIf("{"))
|
|
3405
3397
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3398
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3399
|
+
if (y.err)
|
|
3400
|
+
return y;
|
|
3409
3401
|
var m = this.tryParseArgumentClose(d);
|
|
3410
3402
|
if (m.err)
|
|
3411
3403
|
return m;
|
|
3412
3404
|
a.push([
|
|
3413
3405
|
u,
|
|
3414
3406
|
{
|
|
3415
|
-
value:
|
|
3407
|
+
value: y.val,
|
|
3416
3408
|
location: b(d, this.clonePosition())
|
|
3417
3409
|
}
|
|
3418
3410
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -3429,7 +3421,7 @@ var In = (
|
|
|
3429
3421
|
break;
|
|
3430
3422
|
}
|
|
3431
3423
|
var h = b(i, this.clonePosition());
|
|
3432
|
-
return o ? (s *= n,
|
|
3424
|
+
return o ? (s *= n, Tn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3433
3425
|
}, e.prototype.offset = function() {
|
|
3434
3426
|
return this.position.offset;
|
|
3435
3427
|
}, e.prototype.isEOF = function() {
|
|
@@ -3444,7 +3436,7 @@ var In = (
|
|
|
3444
3436
|
var t = this.position.offset;
|
|
3445
3437
|
if (t >= this.message.length)
|
|
3446
3438
|
throw Error("out of bound");
|
|
3447
|
-
var r =
|
|
3439
|
+
var r = Ut(this.message, t);
|
|
3448
3440
|
if (r === void 0)
|
|
3449
3441
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3450
3442
|
return r;
|
|
@@ -3463,7 +3455,7 @@ var In = (
|
|
|
3463
3455
|
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);
|
|
3464
3456
|
}
|
|
3465
3457
|
}, e.prototype.bumpIf = function(t) {
|
|
3466
|
-
if (
|
|
3458
|
+
if (ot(this.message, t, this.offset())) {
|
|
3467
3459
|
for (var r = 0; r < t.length; r++)
|
|
3468
3460
|
this.bump();
|
|
3469
3461
|
return !0;
|
|
@@ -3485,7 +3477,7 @@ var In = (
|
|
|
3485
3477
|
break;
|
|
3486
3478
|
}
|
|
3487
3479
|
}, e.prototype.bumpSpace = function() {
|
|
3488
|
-
for (; !this.isEOF() &&
|
|
3480
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3489
3481
|
this.bump();
|
|
3490
3482
|
}, e.prototype.peek = function() {
|
|
3491
3483
|
if (this.isEOF())
|
|
@@ -3498,29 +3490,29 @@ var In = (
|
|
|
3498
3490
|
function Re(e) {
|
|
3499
3491
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3500
3492
|
}
|
|
3501
|
-
function
|
|
3493
|
+
function In(e) {
|
|
3502
3494
|
return Re(e) || e === 47;
|
|
3503
3495
|
}
|
|
3504
|
-
function
|
|
3496
|
+
function Nn(e) {
|
|
3505
3497
|
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;
|
|
3506
3498
|
}
|
|
3507
|
-
function
|
|
3499
|
+
function Ft(e) {
|
|
3508
3500
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3509
3501
|
}
|
|
3510
|
-
function
|
|
3502
|
+
function Cn(e) {
|
|
3511
3503
|
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;
|
|
3512
3504
|
}
|
|
3513
3505
|
function Ue(e) {
|
|
3514
3506
|
e.forEach(function(t) {
|
|
3515
|
-
if (delete t.location,
|
|
3507
|
+
if (delete t.location, Ot(t) || It(t))
|
|
3516
3508
|
for (var r in t.options)
|
|
3517
3509
|
delete t.options[r].location, Ue(t.options[r].value);
|
|
3518
|
-
else
|
|
3510
|
+
else Bt(t) && Ct(t.style) || (At(t) || Pt(t)) && Ce(t.style) ? delete t.style.location : Nt(t) && Ue(t.children);
|
|
3519
3511
|
});
|
|
3520
3512
|
}
|
|
3521
|
-
function
|
|
3522
|
-
t === void 0 && (t = {}), t =
|
|
3523
|
-
var r = new
|
|
3513
|
+
function Ln(e, t) {
|
|
3514
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3515
|
+
var r = new On(e, t).parse();
|
|
3524
3516
|
if (r.err) {
|
|
3525
3517
|
var n = SyntaxError(p[r.err.kind]);
|
|
3526
3518
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3543,7 +3535,7 @@ var de = (
|
|
|
3543
3535
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3544
3536
|
}, t;
|
|
3545
3537
|
}(Error)
|
|
3546
|
-
),
|
|
3538
|
+
), ut = (
|
|
3547
3539
|
/** @class */
|
|
3548
3540
|
function(e) {
|
|
3549
3541
|
P(t, e);
|
|
@@ -3552,7 +3544,7 @@ var de = (
|
|
|
3552
3544
|
}
|
|
3553
3545
|
return t;
|
|
3554
3546
|
}(de)
|
|
3555
|
-
),
|
|
3547
|
+
), $n = (
|
|
3556
3548
|
/** @class */
|
|
3557
3549
|
function(e) {
|
|
3558
3550
|
P(t, e);
|
|
@@ -3561,7 +3553,7 @@ var de = (
|
|
|
3561
3553
|
}
|
|
3562
3554
|
return t;
|
|
3563
3555
|
}(de)
|
|
3564
|
-
),
|
|
3556
|
+
), Mn = (
|
|
3565
3557
|
/** @class */
|
|
3566
3558
|
function(e) {
|
|
3567
3559
|
P(t, e);
|
|
@@ -3574,17 +3566,17 @@ var de = (
|
|
|
3574
3566
|
(function(e) {
|
|
3575
3567
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3576
3568
|
})(w || (w = {}));
|
|
3577
|
-
function
|
|
3569
|
+
function Rn(e) {
|
|
3578
3570
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3579
3571
|
var n = t[t.length - 1];
|
|
3580
3572
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3581
3573
|
}, []);
|
|
3582
3574
|
}
|
|
3583
|
-
function
|
|
3575
|
+
function Un(e) {
|
|
3584
3576
|
return typeof e == "function";
|
|
3585
3577
|
}
|
|
3586
3578
|
function ue(e, t, r, n, i, o, s) {
|
|
3587
|
-
if (e.length === 1 &&
|
|
3579
|
+
if (e.length === 1 && tt(e[0]))
|
|
3588
3580
|
return [
|
|
3589
3581
|
{
|
|
3590
3582
|
type: w.literal,
|
|
@@ -3593,60 +3585,60 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3593
3585
|
];
|
|
3594
3586
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3595
3587
|
var l = u[h];
|
|
3596
|
-
if (
|
|
3588
|
+
if (tt(l)) {
|
|
3597
3589
|
a.push({
|
|
3598
3590
|
type: w.literal,
|
|
3599
3591
|
value: l.value
|
|
3600
3592
|
});
|
|
3601
3593
|
continue;
|
|
3602
3594
|
}
|
|
3603
|
-
if (
|
|
3595
|
+
if (sn(l)) {
|
|
3604
3596
|
typeof o == "number" && a.push({
|
|
3605
3597
|
type: w.literal,
|
|
3606
3598
|
value: r.getNumberFormat(t).format(o)
|
|
3607
3599
|
});
|
|
3608
3600
|
continue;
|
|
3609
3601
|
}
|
|
3610
|
-
var
|
|
3611
|
-
if (!(i &&
|
|
3612
|
-
throw new
|
|
3613
|
-
var
|
|
3614
|
-
if (
|
|
3615
|
-
(!
|
|
3616
|
-
type: typeof
|
|
3617
|
-
value:
|
|
3602
|
+
var c = l.value;
|
|
3603
|
+
if (!(i && c in i))
|
|
3604
|
+
throw new Mn(c, s);
|
|
3605
|
+
var f = i[c];
|
|
3606
|
+
if (on(l)) {
|
|
3607
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3608
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3609
|
+
value: f
|
|
3618
3610
|
});
|
|
3619
3611
|
continue;
|
|
3620
3612
|
}
|
|
3621
|
-
if (
|
|
3613
|
+
if (At(l)) {
|
|
3622
3614
|
var d = typeof l.style == "string" ? n.date[l.style] : Ce(l.style) ? l.style.parsedOptions : void 0;
|
|
3623
3615
|
a.push({
|
|
3624
3616
|
type: w.literal,
|
|
3625
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3617
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3626
3618
|
});
|
|
3627
3619
|
continue;
|
|
3628
3620
|
}
|
|
3629
|
-
if (
|
|
3621
|
+
if (Pt(l)) {
|
|
3630
3622
|
var d = typeof l.style == "string" ? n.time[l.style] : Ce(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3631
3623
|
a.push({
|
|
3632
3624
|
type: w.literal,
|
|
3633
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3625
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3634
3626
|
});
|
|
3635
3627
|
continue;
|
|
3636
3628
|
}
|
|
3637
|
-
if (
|
|
3638
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3639
|
-
d && d.scale && (
|
|
3629
|
+
if (Bt(l)) {
|
|
3630
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
|
|
3631
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3640
3632
|
type: w.literal,
|
|
3641
|
-
value: r.getNumberFormat(t, d).format(
|
|
3633
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3642
3634
|
});
|
|
3643
3635
|
continue;
|
|
3644
3636
|
}
|
|
3645
|
-
if (
|
|
3646
|
-
var
|
|
3647
|
-
if (!
|
|
3648
|
-
throw new
|
|
3649
|
-
var
|
|
3637
|
+
if (Nt(l)) {
|
|
3638
|
+
var y = l.children, m = l.value, _ = i[m];
|
|
3639
|
+
if (!Un(_))
|
|
3640
|
+
throw new $n(m, "function", s);
|
|
3641
|
+
var g = ue(y, t, r, n, i, o), H = _(g.map(function(I) {
|
|
3650
3642
|
return I.value;
|
|
3651
3643
|
}));
|
|
3652
3644
|
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(I) {
|
|
@@ -3656,40 +3648,40 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3656
3648
|
};
|
|
3657
3649
|
}));
|
|
3658
3650
|
}
|
|
3659
|
-
if (
|
|
3660
|
-
var S = l.options[
|
|
3651
|
+
if (Ot(l)) {
|
|
3652
|
+
var S = l.options[f] || l.options.other;
|
|
3661
3653
|
if (!S)
|
|
3662
|
-
throw new
|
|
3654
|
+
throw new ut(l.value, f, Object.keys(l.options), s);
|
|
3663
3655
|
a.push.apply(a, ue(S.value, t, r, n, i));
|
|
3664
3656
|
continue;
|
|
3665
3657
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
var S = l.options["=".concat(
|
|
3658
|
+
if (It(l)) {
|
|
3659
|
+
var S = l.options["=".concat(f)];
|
|
3668
3660
|
if (!S) {
|
|
3669
3661
|
if (!Intl.PluralRules)
|
|
3670
3662
|
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3671
3663
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3672
3664
|
`, j.MISSING_INTL_API, s);
|
|
3673
|
-
var z = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3665
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3674
3666
|
S = l.options[z] || l.options.other;
|
|
3675
3667
|
}
|
|
3676
3668
|
if (!S)
|
|
3677
|
-
throw new
|
|
3678
|
-
a.push.apply(a, ue(S.value, t, r, n, i,
|
|
3669
|
+
throw new ut(l.value, f, Object.keys(l.options), s);
|
|
3670
|
+
a.push.apply(a, ue(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3679
3671
|
continue;
|
|
3680
3672
|
}
|
|
3681
3673
|
}
|
|
3682
|
-
return
|
|
3674
|
+
return Rn(a);
|
|
3683
3675
|
}
|
|
3684
|
-
function
|
|
3685
|
-
return t ?
|
|
3686
|
-
return r[n] =
|
|
3676
|
+
function Dn(e, t) {
|
|
3677
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3678
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3687
3679
|
}, {})) : e;
|
|
3688
3680
|
}
|
|
3689
|
-
function
|
|
3681
|
+
function Fn(e, t) {
|
|
3690
3682
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3691
|
-
return r[n] =
|
|
3692
|
-
},
|
|
3683
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3684
|
+
}, v({}, e)) : e;
|
|
3693
3685
|
}
|
|
3694
3686
|
function Se(e) {
|
|
3695
3687
|
return {
|
|
@@ -3705,7 +3697,7 @@ function Se(e) {
|
|
|
3705
3697
|
}
|
|
3706
3698
|
};
|
|
3707
3699
|
}
|
|
3708
|
-
function
|
|
3700
|
+
function Gn(e) {
|
|
3709
3701
|
return e === void 0 && (e = {
|
|
3710
3702
|
number: {},
|
|
3711
3703
|
dateTime: {},
|
|
@@ -3737,7 +3729,7 @@ function jn(e) {
|
|
|
3737
3729
|
})
|
|
3738
3730
|
};
|
|
3739
3731
|
}
|
|
3740
|
-
var
|
|
3732
|
+
var jn = (
|
|
3741
3733
|
/** @class */
|
|
3742
3734
|
function() {
|
|
3743
3735
|
function e(t, r, n, i) {
|
|
@@ -3751,8 +3743,8 @@ var kn = (
|
|
|
3751
3743
|
var u = o.formatToParts(h);
|
|
3752
3744
|
if (u.length === 1)
|
|
3753
3745
|
return u[0].value;
|
|
3754
|
-
var l = u.reduce(function(
|
|
3755
|
-
return !
|
|
3746
|
+
var l = u.reduce(function(c, f) {
|
|
3747
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3756
3748
|
}, []);
|
|
3757
3749
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3758
3750
|
}, this.formatToParts = function(h) {
|
|
@@ -3769,13 +3761,13 @@ var kn = (
|
|
|
3769
3761
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3770
3762
|
var s = i || {};
|
|
3771
3763
|
s.formatters;
|
|
3772
|
-
var a =
|
|
3773
|
-
this.ast = e.__parse(t,
|
|
3764
|
+
var a = gr(s, ["formatters"]);
|
|
3765
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3774
3766
|
} else
|
|
3775
3767
|
this.ast = t;
|
|
3776
3768
|
if (!Array.isArray(this.ast))
|
|
3777
3769
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3778
|
-
this.formats =
|
|
3770
|
+
this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
|
|
3779
3771
|
}
|
|
3780
3772
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3781
3773
|
get: function() {
|
|
@@ -3788,7 +3780,7 @@ var kn = (
|
|
|
3788
3780
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3789
3781
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3790
3782
|
}
|
|
3791
|
-
}, e.__parse =
|
|
3783
|
+
}, e.__parse = Ln, e.formats = {
|
|
3792
3784
|
number: {
|
|
3793
3785
|
integer: {
|
|
3794
3786
|
maximumFractionDigits: 0
|
|
@@ -3849,7 +3841,7 @@ var kn = (
|
|
|
3849
3841
|
}, e;
|
|
3850
3842
|
}()
|
|
3851
3843
|
);
|
|
3852
|
-
function
|
|
3844
|
+
function kn(e, t) {
|
|
3853
3845
|
if (t == null)
|
|
3854
3846
|
return;
|
|
3855
3847
|
if (t in e)
|
|
@@ -3870,60 +3862,60 @@ function Vn(e, t) {
|
|
|
3870
3862
|
n = void 0;
|
|
3871
3863
|
return n;
|
|
3872
3864
|
}
|
|
3873
|
-
const O = {},
|
|
3865
|
+
const O = {}, Vn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Gt = (e, t) => {
|
|
3874
3866
|
if (t == null)
|
|
3875
3867
|
return;
|
|
3876
3868
|
if (t in O && e in O[t])
|
|
3877
3869
|
return O[t][e];
|
|
3878
3870
|
const r = be(t);
|
|
3879
3871
|
for (let n = 0; n < r.length; n++) {
|
|
3880
|
-
const i = r[n], o =
|
|
3872
|
+
const i = r[n], o = Wn(i, e);
|
|
3881
3873
|
if (o)
|
|
3882
|
-
return
|
|
3874
|
+
return Vn(e, t, o);
|
|
3883
3875
|
}
|
|
3884
3876
|
};
|
|
3885
|
-
let
|
|
3877
|
+
let je;
|
|
3886
3878
|
const te = pe({});
|
|
3887
|
-
function
|
|
3888
|
-
return
|
|
3879
|
+
function Xn(e) {
|
|
3880
|
+
return je[e] || null;
|
|
3889
3881
|
}
|
|
3890
|
-
function
|
|
3891
|
-
return e in
|
|
3882
|
+
function jt(e) {
|
|
3883
|
+
return e in je;
|
|
3892
3884
|
}
|
|
3893
|
-
function
|
|
3894
|
-
if (!
|
|
3885
|
+
function Wn(e, t) {
|
|
3886
|
+
if (!jt(e))
|
|
3895
3887
|
return null;
|
|
3896
|
-
const r =
|
|
3897
|
-
return
|
|
3888
|
+
const r = Xn(e);
|
|
3889
|
+
return kn(r, t);
|
|
3898
3890
|
}
|
|
3899
|
-
function
|
|
3891
|
+
function zn(e) {
|
|
3900
3892
|
if (e == null)
|
|
3901
3893
|
return;
|
|
3902
3894
|
const t = be(e);
|
|
3903
3895
|
for (let r = 0; r < t.length; r++) {
|
|
3904
3896
|
const n = t[r];
|
|
3905
|
-
if (
|
|
3897
|
+
if (jt(n))
|
|
3906
3898
|
return n;
|
|
3907
3899
|
}
|
|
3908
3900
|
}
|
|
3909
|
-
function
|
|
3910
|
-
delete O[e], te.update((r) => (r[e] =
|
|
3901
|
+
function Zn(e, ...t) {
|
|
3902
|
+
delete O[e], te.update((r) => (r[e] = Jr.all([r[e] || {}, ...t]), r));
|
|
3911
3903
|
}
|
|
3912
3904
|
X(
|
|
3913
3905
|
[te],
|
|
3914
3906
|
([e]) => Object.keys(e)
|
|
3915
3907
|
);
|
|
3916
|
-
te.subscribe((e) =>
|
|
3908
|
+
te.subscribe((e) => je = e);
|
|
3917
3909
|
const he = {};
|
|
3918
|
-
function
|
|
3910
|
+
function Qn(e, t) {
|
|
3919
3911
|
he[e].delete(t), he[e].size === 0 && delete he[e];
|
|
3920
3912
|
}
|
|
3921
|
-
function
|
|
3913
|
+
function kt(e) {
|
|
3922
3914
|
return he[e];
|
|
3923
3915
|
}
|
|
3924
|
-
function
|
|
3916
|
+
function Jn(e) {
|
|
3925
3917
|
return be(e).map((t) => {
|
|
3926
|
-
const r =
|
|
3918
|
+
const r = kt(t);
|
|
3927
3919
|
return [t, r ? [...r] : []];
|
|
3928
3920
|
}).filter(([, t]) => t.length > 0);
|
|
3929
3921
|
}
|
|
@@ -3931,31 +3923,31 @@ function De(e) {
|
|
|
3931
3923
|
return e == null ? !1 : be(e).some(
|
|
3932
3924
|
(t) => {
|
|
3933
3925
|
var r;
|
|
3934
|
-
return (r =
|
|
3926
|
+
return (r = kt(t)) == null ? void 0 : r.size;
|
|
3935
3927
|
}
|
|
3936
3928
|
);
|
|
3937
3929
|
}
|
|
3938
|
-
function
|
|
3930
|
+
function Yn(e, t) {
|
|
3939
3931
|
return Promise.all(
|
|
3940
|
-
t.map((n) => (
|
|
3941
|
-
).then((n) =>
|
|
3932
|
+
t.map((n) => (Qn(e, n), n().then((i) => i.default || i)))
|
|
3933
|
+
).then((n) => Zn(e, ...n));
|
|
3942
3934
|
}
|
|
3943
3935
|
const Z = {};
|
|
3944
|
-
function
|
|
3936
|
+
function Vt(e) {
|
|
3945
3937
|
if (!De(e))
|
|
3946
3938
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3947
|
-
const t =
|
|
3939
|
+
const t = Jn(e);
|
|
3948
3940
|
return Z[e] = Promise.all(
|
|
3949
3941
|
t.map(
|
|
3950
|
-
([r, n]) =>
|
|
3942
|
+
([r, n]) => Yn(r, n)
|
|
3951
3943
|
)
|
|
3952
3944
|
).then(() => {
|
|
3953
3945
|
if (De(e))
|
|
3954
|
-
return
|
|
3946
|
+
return Vt(e);
|
|
3955
3947
|
delete Z[e];
|
|
3956
3948
|
}), Z[e];
|
|
3957
3949
|
}
|
|
3958
|
-
const
|
|
3950
|
+
const qn = {
|
|
3959
3951
|
number: {
|
|
3960
3952
|
scientific: { notation: "scientific" },
|
|
3961
3953
|
engineering: { notation: "engineering" },
|
|
@@ -3984,28 +3976,28 @@ const Kn = {
|
|
|
3984
3976
|
timeZoneName: "short"
|
|
3985
3977
|
}
|
|
3986
3978
|
}
|
|
3987
|
-
},
|
|
3979
|
+
}, Kn = {
|
|
3988
3980
|
fallbackLocale: null,
|
|
3989
3981
|
loadingDelay: 200,
|
|
3990
|
-
formats:
|
|
3982
|
+
formats: qn,
|
|
3991
3983
|
warnOnMissingMessages: !0,
|
|
3992
3984
|
handleMissingMessage: void 0,
|
|
3993
3985
|
ignoreTag: !0
|
|
3994
|
-
},
|
|
3986
|
+
}, ei = Kn;
|
|
3995
3987
|
function k() {
|
|
3996
|
-
return
|
|
3988
|
+
return ei;
|
|
3997
3989
|
}
|
|
3998
3990
|
const we = pe(!1);
|
|
3999
|
-
var
|
|
4000
|
-
for (var r in t)
|
|
4001
|
-
|
|
4002
|
-
if (
|
|
4003
|
-
for (var r of
|
|
4004
|
-
|
|
3991
|
+
var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, si = (e, t) => {
|
|
3992
|
+
for (var r in t || (t = {}))
|
|
3993
|
+
ii.call(t, r) && lt(e, r, t[r]);
|
|
3994
|
+
if (ht)
|
|
3995
|
+
for (var r of ht(t))
|
|
3996
|
+
oi.call(t, r) && lt(e, r, t[r]);
|
|
4005
3997
|
return e;
|
|
4006
|
-
},
|
|
3998
|
+
}, ai = (e, t) => ri(e, ni(t));
|
|
4007
3999
|
let Fe;
|
|
4008
|
-
const
|
|
4000
|
+
const ce = pe(null);
|
|
4009
4001
|
function ct(e) {
|
|
4010
4002
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4011
4003
|
}
|
|
@@ -4016,46 +4008,46 @@ function be(e, t = k().fallbackLocale) {
|
|
|
4016
4008
|
function C() {
|
|
4017
4009
|
return Fe ?? void 0;
|
|
4018
4010
|
}
|
|
4019
|
-
|
|
4011
|
+
ce.subscribe((e) => {
|
|
4020
4012
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4021
4013
|
});
|
|
4022
|
-
const
|
|
4023
|
-
if (e &&
|
|
4014
|
+
const ui = (e) => {
|
|
4015
|
+
if (e && zn(e) && De(e)) {
|
|
4024
4016
|
const { loadingDelay: t } = k();
|
|
4025
4017
|
let r;
|
|
4026
4018
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4027
4019
|
() => we.set(!0),
|
|
4028
4020
|
t
|
|
4029
|
-
) : we.set(!0),
|
|
4030
|
-
|
|
4021
|
+
) : we.set(!0), Vt(e).then(() => {
|
|
4022
|
+
ce.set(e);
|
|
4031
4023
|
}).finally(() => {
|
|
4032
4024
|
clearTimeout(r), we.set(!1);
|
|
4033
4025
|
});
|
|
4034
4026
|
}
|
|
4035
|
-
return
|
|
4036
|
-
}, re =
|
|
4037
|
-
set:
|
|
4038
|
-
}),
|
|
4027
|
+
return ce.set(e);
|
|
4028
|
+
}, re = ai(si({}, ce), {
|
|
4029
|
+
set: ui
|
|
4030
|
+
}), ve = (e) => {
|
|
4039
4031
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4040
4032
|
return (n) => {
|
|
4041
4033
|
const i = JSON.stringify(n);
|
|
4042
4034
|
return i in t ? t[i] : t[i] = e(n);
|
|
4043
4035
|
};
|
|
4044
4036
|
};
|
|
4045
|
-
var
|
|
4037
|
+
var hi = Object.defineProperty, fe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
|
4046
4038
|
for (var r in t || (t = {}))
|
|
4047
|
-
|
|
4048
|
-
if (
|
|
4049
|
-
for (var r of
|
|
4050
|
-
|
|
4039
|
+
Xt.call(t, r) && ft(e, r, t[r]);
|
|
4040
|
+
if (fe)
|
|
4041
|
+
for (var r of fe(t))
|
|
4042
|
+
Wt.call(t, r) && ft(e, r, t[r]);
|
|
4051
4043
|
return e;
|
|
4052
4044
|
}, W = (e, t) => {
|
|
4053
4045
|
var r = {};
|
|
4054
4046
|
for (var n in e)
|
|
4055
|
-
|
|
4056
|
-
if (e != null &&
|
|
4057
|
-
for (var n of
|
|
4058
|
-
t.indexOf(n) < 0 &&
|
|
4047
|
+
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4048
|
+
if (e != null && fe)
|
|
4049
|
+
for (var n of fe(e))
|
|
4050
|
+
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
4059
4051
|
return r;
|
|
4060
4052
|
};
|
|
4061
4053
|
const q = (e, t) => {
|
|
@@ -4063,21 +4055,21 @@ const q = (e, t) => {
|
|
|
4063
4055
|
if (e in r && t in r[e])
|
|
4064
4056
|
return r[e][t];
|
|
4065
4057
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4066
|
-
},
|
|
4058
|
+
}, li = ve(
|
|
4067
4059
|
(e) => {
|
|
4068
4060
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4069
4061
|
if (r == null)
|
|
4070
4062
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4071
4063
|
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4072
4064
|
}
|
|
4073
|
-
), ci =
|
|
4065
|
+
), ci = ve(
|
|
4074
4066
|
(e) => {
|
|
4075
4067
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4076
4068
|
if (r == null)
|
|
4077
4069
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4078
4070
|
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4079
4071
|
}
|
|
4080
|
-
),
|
|
4072
|
+
), fi = ve(
|
|
4081
4073
|
(e) => {
|
|
4082
4074
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4083
4075
|
if (r == null)
|
|
@@ -4086,33 +4078,33 @@ const q = (e, t) => {
|
|
|
4086
4078
|
);
|
|
4087
4079
|
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4088
4080
|
}
|
|
4089
|
-
),
|
|
4081
|
+
), mi = (e = {}) => {
|
|
4090
4082
|
var t = e, {
|
|
4091
4083
|
locale: r = C()
|
|
4092
4084
|
} = t, n = W(t, [
|
|
4093
4085
|
"locale"
|
|
4094
4086
|
]);
|
|
4095
|
-
return
|
|
4096
|
-
},
|
|
4087
|
+
return li(ke({ locale: r }, n));
|
|
4088
|
+
}, pi = (e = {}) => {
|
|
4097
4089
|
var t = e, {
|
|
4098
4090
|
locale: r = C()
|
|
4099
4091
|
} = t, n = W(t, [
|
|
4100
4092
|
"locale"
|
|
4101
4093
|
]);
|
|
4102
|
-
return ci(
|
|
4103
|
-
},
|
|
4094
|
+
return ci(ke({ locale: r }, n));
|
|
4095
|
+
}, di = (e = {}) => {
|
|
4104
4096
|
var t = e, {
|
|
4105
4097
|
locale: r = C()
|
|
4106
4098
|
} = t, n = W(t, [
|
|
4107
4099
|
"locale"
|
|
4108
4100
|
]);
|
|
4109
|
-
return
|
|
4110
|
-
},
|
|
4101
|
+
return fi(ke({ locale: r }, n));
|
|
4102
|
+
}, bi = ve(
|
|
4111
4103
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4112
|
-
(e, t = C()) => new
|
|
4104
|
+
(e, t = C()) => new jn(e, t, k().formats, {
|
|
4113
4105
|
ignoreTag: k().ignoreTag
|
|
4114
4106
|
})
|
|
4115
|
-
),
|
|
4107
|
+
), vi = (e, t = {}) => {
|
|
4116
4108
|
var r, n, i, o;
|
|
4117
4109
|
let s = t;
|
|
4118
4110
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4125,7 +4117,7 @@ const q = (e, t) => {
|
|
|
4125
4117
|
throw new Error(
|
|
4126
4118
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4127
4119
|
);
|
|
4128
|
-
let l =
|
|
4120
|
+
let l = Gt(e, h);
|
|
4129
4121
|
if (!l)
|
|
4130
4122
|
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4131
4123
|
else if (typeof l != "string")
|
|
@@ -4134,64 +4126,64 @@ const q = (e, t) => {
|
|
|
4134
4126
|
), l;
|
|
4135
4127
|
if (!a)
|
|
4136
4128
|
return l;
|
|
4137
|
-
let
|
|
4129
|
+
let c = l;
|
|
4138
4130
|
try {
|
|
4139
|
-
|
|
4140
|
-
} catch (
|
|
4141
|
-
|
|
4131
|
+
c = bi(l, h).format(a);
|
|
4132
|
+
} catch (f) {
|
|
4133
|
+
f instanceof Error && console.warn(
|
|
4142
4134
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4143
|
-
|
|
4135
|
+
f.message
|
|
4144
4136
|
);
|
|
4145
4137
|
}
|
|
4146
|
-
return
|
|
4147
|
-
},
|
|
4148
|
-
X([re, te], () =>
|
|
4149
|
-
X([re], () =>
|
|
4138
|
+
return c;
|
|
4139
|
+
}, yi = (e, t) => di(t).format(e), gi = (e, t) => pi(t).format(e), xi = (e, t) => mi(t).format(e), _i = (e, t = C()) => Gt(e, t);
|
|
4140
|
+
X([re, te], () => vi);
|
|
4141
|
+
X([re], () => yi);
|
|
4142
|
+
X([re], () => gi);
|
|
4150
4143
|
X([re], () => xi);
|
|
4151
|
-
X([re], () => _i);
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
function d(_, v) {
|
|
4144
|
+
X([re, te], () => _i);
|
|
4145
|
+
window.emWidgets = { topic: Cr };
|
|
4146
|
+
const Ei = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4147
|
+
function Si(e) {
|
|
4148
|
+
Qt(e, "svelte-1mvysvb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.betslipIndicator{display:flex;align-items:center;justify-content:center;padding:15px 20px;position:fixed;bottom:20%;right:20px;color:#fff;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));box-shadow:0px 5px 30px var(--emw--color-gray-100, #E6E6E6);border-radius:50%;border:none}.betslipIndicator__icon{display:flex;width:20px;fill:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.betslipIndicator__number{display:flex;align-items:center;justify-content:center;position:absolute;right:0px;top:-10px;width:25px;height:25px;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));border-radius:50%}.loader{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:2px;margin:100px auto;width:1em;height:1em;border-radius:50%;position:relative;text-indent:-9999em;-webkit-animation:load4 1.3s infinite linear;animation:load4 1.3s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}@keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}");
|
|
4149
|
+
}
|
|
4150
|
+
function mt(e) {
|
|
4151
|
+
let t, r, n, i, o, s, a, h, u, l, c, f;
|
|
4152
|
+
function d(_, g) {
|
|
4161
4153
|
return (
|
|
4162
4154
|
/*isLoading*/
|
|
4163
|
-
_[3] ?
|
|
4155
|
+
_[3] ? Hi : wi
|
|
4164
4156
|
);
|
|
4165
4157
|
}
|
|
4166
|
-
let
|
|
4158
|
+
let y = d(e), m = y(e);
|
|
4167
4159
|
return {
|
|
4168
4160
|
c() {
|
|
4169
|
-
t = D("button"), r = D("small"), m.c(), n =
|
|
4161
|
+
t = D("button"), r = D("small"), m.c(), n = qt(), i = N("svg"), o = N("g"), s = N("path"), a = N("path"), h = N("path"), u = N("path"), l = N("path"), E(r, "class", "betslipIndicator__number"), E(s, "d", `M45,95c0,1.1,0.9,2,2,2h11c3.3,0,6-2.7,6-6V9c0-3.3-2.7-6-6-6H47c-1.1,0-2,0.9-2,2c0,7.2-5.8,13-13,13S19,12.2,19,5
|
|
4170
4162
|
c0-1.1-0.9-2-2-2H6C2.7,3,0,5.7,0,9v82c0,3.3,2.7,6,6,6h11c1.1,0,2-0.9,2-2c0-7.2,5.8-13,13-13S45,87.8,45,95z M32,78
|
|
4171
4163
|
c-8.6,0-15.9,6.4-16.9,15H6c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h9.1c1.2,9.3,9.7,15.9,19,14.8c7.7-1,13.8-7,14.8-14.8H58
|
|
4172
|
-
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`), E(a, "d", "M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"), E(h, "d", "M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"), E(u, "d", "M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"), E(l, "d", "M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"),
|
|
4164
|
+
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`), E(a, "d", "M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"), E(h, "d", "M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"), E(u, "d", "M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"), E(l, "d", "M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"), rr(i, "enable-background", "new 0 0 64 100"), E(i, "xml:space", "preserve"), E(t, "class", "betslipIndicator");
|
|
4173
4165
|
},
|
|
4174
|
-
m(_,
|
|
4175
|
-
ee(_, t,
|
|
4166
|
+
m(_, g) {
|
|
4167
|
+
ee(_, t, g), B(t, r), m.m(r, null), B(t, n), B(t, i), B(i, o), B(o, s), B(o, a), B(o, h), B(o, u), B(o, l), c || (f = Kt(
|
|
4176
4168
|
t,
|
|
4177
4169
|
"click",
|
|
4178
4170
|
/*click_handler*/
|
|
4179
4171
|
e[7]
|
|
4180
|
-
),
|
|
4172
|
+
), c = !0);
|
|
4181
4173
|
},
|
|
4182
|
-
p(_,
|
|
4183
|
-
|
|
4174
|
+
p(_, g) {
|
|
4175
|
+
y === (y = d(_)) && m ? m.p(_, g) : (m.d(1), m = y(_), m && (m.c(), m.m(r, null)));
|
|
4184
4176
|
},
|
|
4185
4177
|
d(_) {
|
|
4186
|
-
_ && V(t), m.d(),
|
|
4178
|
+
_ && V(t), m.d(), c = !1, f();
|
|
4187
4179
|
}
|
|
4188
4180
|
};
|
|
4189
4181
|
}
|
|
4190
|
-
function
|
|
4182
|
+
function wi(e) {
|
|
4191
4183
|
let t;
|
|
4192
4184
|
return {
|
|
4193
4185
|
c() {
|
|
4194
|
-
t =
|
|
4186
|
+
t = bt(
|
|
4195
4187
|
/*betNumber*/
|
|
4196
4188
|
e[1]
|
|
4197
4189
|
);
|
|
@@ -4201,7 +4193,7 @@ function Hi(e) {
|
|
|
4201
4193
|
},
|
|
4202
4194
|
p(r, n) {
|
|
4203
4195
|
n & /*betNumber*/
|
|
4204
|
-
2 &&
|
|
4196
|
+
2 && tr(
|
|
4205
4197
|
t,
|
|
4206
4198
|
/*betNumber*/
|
|
4207
4199
|
r[1]
|
|
@@ -4212,7 +4204,7 @@ function Hi(e) {
|
|
|
4212
4204
|
}
|
|
4213
4205
|
};
|
|
4214
4206
|
}
|
|
4215
|
-
function
|
|
4207
|
+
function Hi(e) {
|
|
4216
4208
|
let t;
|
|
4217
4209
|
return {
|
|
4218
4210
|
c() {
|
|
@@ -4227,11 +4219,11 @@ function Ti(e) {
|
|
|
4227
4219
|
}
|
|
4228
4220
|
};
|
|
4229
4221
|
}
|
|
4230
|
-
function
|
|
4222
|
+
function Ti(e) {
|
|
4231
4223
|
let t, r = (
|
|
4232
4224
|
/*mobileView*/
|
|
4233
4225
|
e[2] && /*betNumber*/
|
|
4234
|
-
e[1] > 0 &&
|
|
4226
|
+
e[1] > 0 && mt(e)
|
|
4235
4227
|
);
|
|
4236
4228
|
return {
|
|
4237
4229
|
c() {
|
|
@@ -4243,7 +4235,7 @@ function Bi(e) {
|
|
|
4243
4235
|
p(n, [i]) {
|
|
4244
4236
|
/*mobileView*/
|
|
4245
4237
|
n[2] && /*betNumber*/
|
|
4246
|
-
n[1] > 0 ? r ? r.p(n, i) : (r =
|
|
4238
|
+
n[1] > 0 ? r ? r.p(n, i) : (r = mt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4247
4239
|
},
|
|
4248
4240
|
i: T,
|
|
4249
4241
|
o: T,
|
|
@@ -4252,13 +4244,13 @@ function Bi(e) {
|
|
|
4252
4244
|
}
|
|
4253
4245
|
};
|
|
4254
4246
|
}
|
|
4255
|
-
function
|
|
4247
|
+
function Bi(e, t, r) {
|
|
4256
4248
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, o, s = window.navigator.userAgent, a = null, h = !1, u = !0;
|
|
4257
4249
|
const l = () => {
|
|
4258
4250
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4259
|
-
},
|
|
4251
|
+
}, c = (g, H) => {
|
|
4260
4252
|
o.dispatchEvent(new CustomEvent(
|
|
4261
|
-
|
|
4253
|
+
g,
|
|
4262
4254
|
{
|
|
4263
4255
|
detail: H,
|
|
4264
4256
|
composed: !0,
|
|
@@ -4266,20 +4258,20 @@ function Ai(e, t, r) {
|
|
|
4266
4258
|
// propagate across the shadow DOM
|
|
4267
4259
|
}
|
|
4268
4260
|
));
|
|
4269
|
-
},
|
|
4270
|
-
const { type: H, payload: S } =
|
|
4271
|
-
if (
|
|
4261
|
+
}, f = (g) => {
|
|
4262
|
+
const { type: H, payload: S } = g.data;
|
|
4263
|
+
if (g.data)
|
|
4272
4264
|
switch (H) {
|
|
4273
4265
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4274
4266
|
r(1, a = S.count), r(3, u = !1);
|
|
4275
4267
|
break;
|
|
4276
4268
|
}
|
|
4277
4269
|
}, d = () => {
|
|
4278
|
-
let
|
|
4279
|
-
|
|
4280
|
-
},
|
|
4281
|
-
let
|
|
4282
|
-
fetch(
|
|
4270
|
+
let g = document.createElement("style");
|
|
4271
|
+
g.innerHTML = n, o.appendChild(g);
|
|
4272
|
+
}, y = () => {
|
|
4273
|
+
let g = new URL(i), H = document.createElement("style");
|
|
4274
|
+
fetch(g.href).then((S) => S.text()).then((S) => {
|
|
4283
4275
|
H.innerHTML = S, setTimeout(
|
|
4284
4276
|
() => {
|
|
4285
4277
|
o.appendChild(H);
|
|
@@ -4288,36 +4280,36 @@ function Ai(e, t, r) {
|
|
|
4288
4280
|
);
|
|
4289
4281
|
});
|
|
4290
4282
|
};
|
|
4291
|
-
|
|
4292
|
-
window.removeEventListener("message",
|
|
4283
|
+
or(() => (l(), window.addEventListener("message", f, !1), Ei(s) && r(2, h = !0), () => {
|
|
4284
|
+
window.removeEventListener("message", f);
|
|
4293
4285
|
}));
|
|
4294
|
-
const m = (
|
|
4295
|
-
function _(
|
|
4296
|
-
He[
|
|
4297
|
-
o =
|
|
4286
|
+
const m = (g) => c("betslipClick", {});
|
|
4287
|
+
function _(g) {
|
|
4288
|
+
He[g ? "unshift" : "push"](() => {
|
|
4289
|
+
o = g, r(0, o);
|
|
4298
4290
|
});
|
|
4299
4291
|
}
|
|
4300
|
-
return e.$$set = (
|
|
4301
|
-
"clientstyling" in
|
|
4292
|
+
return e.$$set = (g) => {
|
|
4293
|
+
"clientstyling" in g && r(5, n = g.clientstyling), "clientstylingurl" in g && r(6, i = g.clientstylingurl);
|
|
4302
4294
|
}, e.$$.update = () => {
|
|
4303
4295
|
e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4304
|
-
65 && i && o &&
|
|
4296
|
+
65 && i && o && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4305
4297
|
33 && n && o && d();
|
|
4306
4298
|
}, [
|
|
4307
4299
|
o,
|
|
4308
4300
|
a,
|
|
4309
4301
|
h,
|
|
4310
4302
|
u,
|
|
4311
|
-
|
|
4303
|
+
c,
|
|
4312
4304
|
n,
|
|
4313
4305
|
i,
|
|
4314
4306
|
m,
|
|
4315
4307
|
_
|
|
4316
4308
|
];
|
|
4317
4309
|
}
|
|
4318
|
-
class
|
|
4310
|
+
class Ai extends vr {
|
|
4319
4311
|
constructor(t) {
|
|
4320
|
-
super(),
|
|
4312
|
+
super(), dr(this, t, Bi, Ti, dt, { clientstyling: 5, clientstylingurl: 6 }, Si);
|
|
4321
4313
|
}
|
|
4322
4314
|
get clientstyling() {
|
|
4323
4315
|
return this.$$.ctx[5];
|
|
@@ -4332,7 +4324,7 @@ class Pi extends gr {
|
|
|
4332
4324
|
this.$$set({ clientstylingurl: t }), le();
|
|
4333
4325
|
}
|
|
4334
4326
|
}
|
|
4335
|
-
|
|
4327
|
+
br(Ai, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4336
4328
|
export {
|
|
4337
|
-
|
|
4329
|
+
Ai as C
|
|
4338
4330
|
};
|