@everymatrix/casino-tournaments-slider-controller 1.74.3 → 1.74.4
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/{CasinoTournamentsRank-EJ4CoSz6.js → CasinoTournamentsRank-CmoOfN4B.js} +13 -13
- package/components/{CasinoTournamentsRank-DLBpF4U2.js → CasinoTournamentsRank-DQ5CpdQF.js} +13 -13
- package/components/{CasinoTournamentsSliderController-N0wQdJoE.cjs → CasinoTournamentsSliderController-BCowjxb2.cjs} +6 -6
- package/components/{CasinoTournamentsSliderController-CDoidmOP.js → CasinoTournamentsSliderController-ChKkOpXG.js} +638 -640
- package/components/{CasinoTournamentsSliderController-B4dPqkkm.js → CasinoTournamentsSliderController-RdybOow7.js} +637 -639
- package/es2015/casino-tournaments-slider-controller.cjs +1 -1
- package/es2015/casino-tournaments-slider-controller.js +1 -1
- package/esnext/casino-tournaments-slider-controller.js +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
function
|
|
1
|
+
import { i as Vr, n as ze, s as Zr, r as gr, a as vr, b as qr, c as Yr, S as Wr, d as Kr, f as Ae, e as $r, g as Y, h as se, j as ge, k as h, x as yt, l as qe, m as C, o as at, t as wt, p as zt, q as en, u as Ye, v as tn, w as rn, y as nn, z as Vt, A as Er, B as J, C as on, D as br, E as Zt, F as an, G as qt, H as sn, I as un, J as it, K as ln } from "./CasinoTournamentsRank-CmoOfN4B.js";
|
|
2
|
+
function Yt(e, { delay: t = 0, duration: r = 400, easing: n = Vr } = {}) {
|
|
3
3
|
const i = +getComputedStyle(e).opacity;
|
|
4
4
|
return {
|
|
5
5
|
delay: t,
|
|
6
|
-
duration:
|
|
7
|
-
easing:
|
|
6
|
+
duration: r,
|
|
7
|
+
easing: n,
|
|
8
8
|
css: (o) => `opacity: ${o * i}`
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
const Pe = [];
|
|
12
|
-
function
|
|
12
|
+
function hn(e, t) {
|
|
13
13
|
return {
|
|
14
14
|
subscribe: ft(e, t).subscribe
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
function ft(e, t = ze) {
|
|
18
|
-
let
|
|
19
|
-
const
|
|
18
|
+
let r;
|
|
19
|
+
const n = /* @__PURE__ */ new Set();
|
|
20
20
|
function i(c) {
|
|
21
|
-
if (
|
|
21
|
+
if (vr(e, c) && (e = c, r)) {
|
|
22
22
|
const d = !Pe.length;
|
|
23
|
-
for (const u of
|
|
23
|
+
for (const u of n)
|
|
24
24
|
u[1](), Pe.push(u, e);
|
|
25
25
|
if (d) {
|
|
26
26
|
for (let u = 0; u < Pe.length; u += 2)
|
|
@@ -34,18 +34,18 @@ function ft(e, t = ze) {
|
|
|
34
34
|
}
|
|
35
35
|
function f(c, d = ze) {
|
|
36
36
|
const u = [c, d];
|
|
37
|
-
return
|
|
38
|
-
|
|
37
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || ze), c(e), () => {
|
|
38
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return { set: i, update: o, subscribe: f };
|
|
42
42
|
}
|
|
43
|
-
function Fe(e, t,
|
|
44
|
-
const
|
|
43
|
+
function Fe(e, t, r) {
|
|
44
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
45
45
|
if (!i.every(Boolean))
|
|
46
46
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
47
47
|
const o = t.length < 2;
|
|
48
|
-
return
|
|
48
|
+
return hn(r, (f, c) => {
|
|
49
49
|
let d = !1;
|
|
50
50
|
const u = [];
|
|
51
51
|
let l = 0, m = ze;
|
|
@@ -53,10 +53,10 @@ function Fe(e, t, n) {
|
|
|
53
53
|
if (l)
|
|
54
54
|
return;
|
|
55
55
|
m();
|
|
56
|
-
const U = t(
|
|
57
|
-
o ? f(U) : m =
|
|
56
|
+
const U = t(n ? u[0] : u, f, c);
|
|
57
|
+
o ? f(U) : m = qr(U) ? U : ze;
|
|
58
58
|
}, S = i.map(
|
|
59
|
-
(U, T) =>
|
|
59
|
+
(U, T) => Zr(
|
|
60
60
|
U,
|
|
61
61
|
(O) => {
|
|
62
62
|
u[T] = O, l &= ~(1 << T), d && g();
|
|
@@ -67,85 +67,85 @@ function Fe(e, t, n) {
|
|
|
67
67
|
)
|
|
68
68
|
);
|
|
69
69
|
return d = !0, g(), function() {
|
|
70
|
-
|
|
70
|
+
gr(S), m(), d = !1;
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
74
|
+
var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
75
|
+
function cn(e) {
|
|
76
76
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
return
|
|
78
|
+
var dn = function(t) {
|
|
79
|
+
return pn(t) && !An(t);
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function pn(e) {
|
|
82
82
|
return !!e && typeof e == "object";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function An(e) {
|
|
85
85
|
var t = Object.prototype.toString.call(e);
|
|
86
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
86
|
+
return t === "[object RegExp]" || t === "[object Date]" || vn(e);
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
return e.$$typeof ===
|
|
88
|
+
var mn = typeof Symbol == "function" && Symbol.for, gn = mn ? Symbol.for("react.element") : 60103;
|
|
89
|
+
function vn(e) {
|
|
90
|
+
return e.$$typeof === gn;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function En(e) {
|
|
93
93
|
return Array.isArray(e) ? [] : {};
|
|
94
94
|
}
|
|
95
95
|
function Ve(e, t) {
|
|
96
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Me(
|
|
96
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Me(En(e), e, t) : e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return e.concat(t).map(function(
|
|
100
|
-
return Ve(
|
|
98
|
+
function bn(e, t, r) {
|
|
99
|
+
return e.concat(t).map(function(n) {
|
|
100
|
+
return Ve(n, r);
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function yn(e, t) {
|
|
104
104
|
if (!t.customMerge)
|
|
105
105
|
return Me;
|
|
106
|
-
var
|
|
107
|
-
return typeof
|
|
106
|
+
var r = t.customMerge(e);
|
|
107
|
+
return typeof r == "function" ? r : Me;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function wn(e) {
|
|
110
110
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
111
111
|
return Object.propertyIsEnumerable.call(e, t);
|
|
112
112
|
}) : [];
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return Object.keys(e).concat(
|
|
114
|
+
function Wt(e) {
|
|
115
|
+
return Object.keys(e).concat(wn(e));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function yr(e, t) {
|
|
118
118
|
try {
|
|
119
119
|
return t in e;
|
|
120
120
|
} catch {
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function In(e, t) {
|
|
125
|
+
return yr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
var
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
}),
|
|
132
|
-
|
|
133
|
-
}),
|
|
127
|
+
function xn(e, t, r) {
|
|
128
|
+
var n = {};
|
|
129
|
+
return r.isMergeableObject(e) && Wt(e).forEach(function(i) {
|
|
130
|
+
n[i] = Ve(e[i], r);
|
|
131
|
+
}), Wt(t).forEach(function(i) {
|
|
132
|
+
In(e, i) || (yr(e, i) && r.isMergeableObject(t[i]) ? n[i] = yn(i, r)(e[i], t[i], r) : n[i] = Ve(t[i], r));
|
|
133
|
+
}), n;
|
|
134
134
|
}
|
|
135
|
-
function Me(e, t,
|
|
136
|
-
|
|
137
|
-
var
|
|
138
|
-
return o ?
|
|
135
|
+
function Me(e, t, r) {
|
|
136
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = Ve;
|
|
137
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
138
|
+
return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : Ve(t, r);
|
|
139
139
|
}
|
|
140
|
-
Me.all = function(t,
|
|
140
|
+
Me.all = function(t, r) {
|
|
141
141
|
if (!Array.isArray(t))
|
|
142
142
|
throw new Error("first argument should be an array");
|
|
143
|
-
return t.reduce(function(
|
|
144
|
-
return Me(
|
|
143
|
+
return t.reduce(function(n, i) {
|
|
144
|
+
return Me(n, i, r);
|
|
145
145
|
}, {});
|
|
146
146
|
};
|
|
147
|
-
var
|
|
148
|
-
const
|
|
147
|
+
var Bn = Me, Tn = Bn;
|
|
148
|
+
const Hn = /* @__PURE__ */ cn(Tn);
|
|
149
149
|
/*! *****************************************************************************
|
|
150
150
|
Copyright (c) Microsoft Corporation.
|
|
151
151
|
|
|
@@ -161,99 +161,97 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
161
161
|
PERFORMANCE OF THIS SOFTWARE.
|
|
162
162
|
***************************************************************************** */
|
|
163
163
|
var Ot = function(e, t) {
|
|
164
|
-
return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
165
|
-
|
|
166
|
-
} || function(
|
|
167
|
-
for (var i in
|
|
168
|
-
Object.prototype.hasOwnProperty.call(
|
|
164
|
+
return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
165
|
+
r.__proto__ = n;
|
|
166
|
+
} || function(r, n) {
|
|
167
|
+
for (var i in n)
|
|
168
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
169
169
|
}, Ot(e, t);
|
|
170
170
|
};
|
|
171
171
|
function ct(e, t) {
|
|
172
172
|
if (typeof t != "function" && t !== null)
|
|
173
173
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
174
174
|
Ot(e, t);
|
|
175
|
-
function
|
|
175
|
+
function r() {
|
|
176
176
|
this.constructor = e;
|
|
177
177
|
}
|
|
178
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
178
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
179
179
|
}
|
|
180
180
|
var F = function() {
|
|
181
181
|
return F = Object.assign || function(t) {
|
|
182
|
-
for (var
|
|
183
|
-
|
|
184
|
-
for (var o in
|
|
185
|
-
Object.prototype.hasOwnProperty.call(
|
|
182
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
183
|
+
r = arguments[n];
|
|
184
|
+
for (var o in r)
|
|
185
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
186
186
|
}
|
|
187
187
|
return t;
|
|
188
188
|
}, F.apply(this, arguments);
|
|
189
189
|
};
|
|
190
|
-
function
|
|
191
|
-
var
|
|
192
|
-
for (var
|
|
193
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
190
|
+
function Cn(e, t) {
|
|
191
|
+
var r = {};
|
|
192
|
+
for (var n in e)
|
|
193
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
194
194
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
195
|
-
for (var i = 0,
|
|
196
|
-
t.indexOf(
|
|
197
|
-
return
|
|
195
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
196
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
197
|
+
return r;
|
|
198
198
|
}
|
|
199
|
-
function It(e, t,
|
|
199
|
+
function It(e, t, r) {
|
|
200
200
|
if (arguments.length === 2)
|
|
201
|
-
for (var
|
|
202
|
-
(o || !(
|
|
201
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
202
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
203
203
|
return e.concat(o || t);
|
|
204
204
|
}
|
|
205
205
|
function xt(e, t) {
|
|
206
|
-
var
|
|
206
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Sn;
|
|
207
207
|
return i(e, {
|
|
208
|
-
cache:
|
|
209
|
-
serializer:
|
|
208
|
+
cache: r,
|
|
209
|
+
serializer: n
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Rn(e) {
|
|
213
213
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
var i =
|
|
217
|
-
return typeof o > "u" && (o = e.call(this,
|
|
215
|
+
function wr(e, t, r, n) {
|
|
216
|
+
var i = Rn(n) ? n : r(n), o = t.get(i);
|
|
217
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
var
|
|
221
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
219
|
+
function Ir(e, t, r) {
|
|
220
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
221
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
222
222
|
}
|
|
223
|
-
function _t(e, t,
|
|
224
|
-
return
|
|
223
|
+
function _t(e, t, r, n, i) {
|
|
224
|
+
return r.bind(t, e, n, i);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
var
|
|
228
|
-
return _t(e, this,
|
|
226
|
+
function Sn(e, t) {
|
|
227
|
+
var r = e.length === 1 ? wr : Ir;
|
|
228
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
return _t(e, this,
|
|
230
|
+
function On(e, t) {
|
|
231
|
+
return _t(e, this, Ir, t.cache.create(), t.serializer);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
return _t(e, this,
|
|
233
|
+
function Nn(e, t) {
|
|
234
|
+
return _t(e, this, wr, t.cache.create(), t.serializer);
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var Ln = function() {
|
|
237
237
|
return JSON.stringify(arguments);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}()
|
|
250
|
-
), Dr = {
|
|
238
|
+
};
|
|
239
|
+
function Qt() {
|
|
240
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
241
|
+
}
|
|
242
|
+
Qt.prototype.get = function(e) {
|
|
243
|
+
return this.cache[e];
|
|
244
|
+
};
|
|
245
|
+
Qt.prototype.set = function(e, t) {
|
|
246
|
+
this.cache[e] = t;
|
|
247
|
+
};
|
|
248
|
+
var Dn = {
|
|
251
249
|
create: function() {
|
|
252
|
-
return new
|
|
250
|
+
return new Qt();
|
|
253
251
|
}
|
|
254
252
|
}, Bt = {
|
|
255
|
-
variadic:
|
|
256
|
-
monadic:
|
|
253
|
+
variadic: On,
|
|
254
|
+
monadic: Nn
|
|
257
255
|
}, M;
|
|
258
256
|
(function(e) {
|
|
259
257
|
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";
|
|
@@ -266,50 +264,50 @@ var ke;
|
|
|
266
264
|
(function(e) {
|
|
267
265
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
268
266
|
})(ke || (ke = {}));
|
|
269
|
-
function
|
|
267
|
+
function Kt(e) {
|
|
270
268
|
return e.type === V.literal;
|
|
271
269
|
}
|
|
272
|
-
function
|
|
270
|
+
function Pn(e) {
|
|
273
271
|
return e.type === V.argument;
|
|
274
272
|
}
|
|
275
|
-
function
|
|
273
|
+
function xr(e) {
|
|
276
274
|
return e.type === V.number;
|
|
277
275
|
}
|
|
278
|
-
function
|
|
276
|
+
function Br(e) {
|
|
279
277
|
return e.type === V.date;
|
|
280
278
|
}
|
|
281
|
-
function
|
|
279
|
+
function Tr(e) {
|
|
282
280
|
return e.type === V.time;
|
|
283
281
|
}
|
|
284
|
-
function
|
|
282
|
+
function Hr(e) {
|
|
285
283
|
return e.type === V.select;
|
|
286
284
|
}
|
|
287
|
-
function
|
|
285
|
+
function Cr(e) {
|
|
288
286
|
return e.type === V.plural;
|
|
289
287
|
}
|
|
290
|
-
function
|
|
288
|
+
function Mn(e) {
|
|
291
289
|
return e.type === V.pound;
|
|
292
290
|
}
|
|
293
|
-
function
|
|
291
|
+
function Rr(e) {
|
|
294
292
|
return e.type === V.tag;
|
|
295
293
|
}
|
|
296
|
-
function
|
|
294
|
+
function Sr(e) {
|
|
297
295
|
return !!(e && typeof e == "object" && e.type === ke.number);
|
|
298
296
|
}
|
|
299
297
|
function Nt(e) {
|
|
300
298
|
return !!(e && typeof e == "object" && e.type === ke.dateTime);
|
|
301
299
|
}
|
|
302
|
-
var
|
|
303
|
-
function
|
|
300
|
+
var Or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kn = /(?:[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;
|
|
301
|
+
function Un(e) {
|
|
304
302
|
var t = {};
|
|
305
|
-
return e.replace(
|
|
306
|
-
var
|
|
307
|
-
switch (
|
|
303
|
+
return e.replace(kn, function(r) {
|
|
304
|
+
var n = r.length;
|
|
305
|
+
switch (r[0]) {
|
|
308
306
|
case "G":
|
|
309
|
-
t.era =
|
|
307
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
310
308
|
break;
|
|
311
309
|
case "y":
|
|
312
|
-
t.year =
|
|
310
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
313
311
|
break;
|
|
314
312
|
case "Y":
|
|
315
313
|
case "u":
|
|
@@ -321,30 +319,30 @@ function Ur(e) {
|
|
|
321
319
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
322
320
|
case "M":
|
|
323
321
|
case "L":
|
|
324
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
322
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
325
323
|
break;
|
|
326
324
|
case "w":
|
|
327
325
|
case "W":
|
|
328
326
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
329
327
|
case "d":
|
|
330
|
-
t.day = ["numeric", "2-digit"][
|
|
328
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
331
329
|
break;
|
|
332
330
|
case "D":
|
|
333
331
|
case "F":
|
|
334
332
|
case "g":
|
|
335
333
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
336
334
|
case "E":
|
|
337
|
-
t.weekday =
|
|
335
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
338
336
|
break;
|
|
339
337
|
case "e":
|
|
340
|
-
if (
|
|
338
|
+
if (n < 4)
|
|
341
339
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
342
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
340
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
343
341
|
break;
|
|
344
342
|
case "c":
|
|
345
|
-
if (
|
|
343
|
+
if (n < 4)
|
|
346
344
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
347
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
345
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
348
346
|
break;
|
|
349
347
|
case "a":
|
|
350
348
|
t.hour12 = !0;
|
|
@@ -353,32 +351,32 @@ function Ur(e) {
|
|
|
353
351
|
case "B":
|
|
354
352
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
355
353
|
case "h":
|
|
356
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
354
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
357
355
|
break;
|
|
358
356
|
case "H":
|
|
359
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
357
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
360
358
|
break;
|
|
361
359
|
case "K":
|
|
362
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
360
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
363
361
|
break;
|
|
364
362
|
case "k":
|
|
365
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
363
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
366
364
|
break;
|
|
367
365
|
case "j":
|
|
368
366
|
case "J":
|
|
369
367
|
case "C":
|
|
370
368
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
371
369
|
case "m":
|
|
372
|
-
t.minute = ["numeric", "2-digit"][
|
|
370
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
373
371
|
break;
|
|
374
372
|
case "s":
|
|
375
|
-
t.second = ["numeric", "2-digit"][
|
|
373
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
376
374
|
break;
|
|
377
375
|
case "S":
|
|
378
376
|
case "A":
|
|
379
377
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
380
378
|
case "z":
|
|
381
|
-
t.timeZoneName =
|
|
379
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
382
380
|
break;
|
|
383
381
|
case "Z":
|
|
384
382
|
case "O":
|
|
@@ -391,14 +389,14 @@ function Ur(e) {
|
|
|
391
389
|
return "";
|
|
392
390
|
}), t;
|
|
393
391
|
}
|
|
394
|
-
var
|
|
395
|
-
function
|
|
392
|
+
var Gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
393
|
+
function Fn(e) {
|
|
396
394
|
if (e.length === 0)
|
|
397
395
|
throw new Error("Number skeleton cannot be empty");
|
|
398
|
-
for (var t = e.split(
|
|
396
|
+
for (var t = e.split(Gn).filter(function(g) {
|
|
399
397
|
return g.length > 0;
|
|
400
|
-
}),
|
|
401
|
-
var o = i[
|
|
398
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
399
|
+
var o = i[n], f = o.split("/");
|
|
402
400
|
if (f.length === 0)
|
|
403
401
|
throw new Error("Invalid number skeleton");
|
|
404
402
|
for (var c = f[0], d = f.slice(1), u = 0, l = d; u < l.length; u++) {
|
|
@@ -406,21 +404,21 @@ function Fr(e) {
|
|
|
406
404
|
if (m.length === 0)
|
|
407
405
|
throw new Error("Invalid number skeleton");
|
|
408
406
|
}
|
|
409
|
-
|
|
407
|
+
r.push({ stem: c, options: d });
|
|
410
408
|
}
|
|
411
|
-
return
|
|
409
|
+
return r;
|
|
412
410
|
}
|
|
413
|
-
function
|
|
411
|
+
function _n(e) {
|
|
414
412
|
return e.replace(/^(.*?)-/, "");
|
|
415
413
|
}
|
|
416
|
-
var
|
|
417
|
-
function
|
|
414
|
+
var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nr = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, Lr = /^(0+)$/;
|
|
415
|
+
function er(e) {
|
|
418
416
|
var t = {};
|
|
419
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
420
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
417
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nr, function(r, n, i) {
|
|
418
|
+
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)), "";
|
|
421
419
|
}), t;
|
|
422
420
|
}
|
|
423
|
-
function
|
|
421
|
+
function Dr(e) {
|
|
424
422
|
switch (e) {
|
|
425
423
|
case "sign-auto":
|
|
426
424
|
return {
|
|
@@ -460,27 +458,27 @@ function Dn(e) {
|
|
|
460
458
|
};
|
|
461
459
|
}
|
|
462
460
|
}
|
|
463
|
-
function
|
|
461
|
+
function jn(e) {
|
|
464
462
|
var t;
|
|
465
463
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
466
464
|
notation: "engineering"
|
|
467
465
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
468
466
|
notation: "scientific"
|
|
469
467
|
}, e = e.slice(1)), t) {
|
|
470
|
-
var
|
|
471
|
-
if (
|
|
468
|
+
var r = e.slice(0, 2);
|
|
469
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lr.test(e))
|
|
472
470
|
throw new Error("Malformed concise eng/scientific notation");
|
|
473
471
|
t.minimumIntegerDigits = e.length;
|
|
474
472
|
}
|
|
475
473
|
return t;
|
|
476
474
|
}
|
|
477
|
-
function
|
|
478
|
-
var t = {},
|
|
479
|
-
return
|
|
475
|
+
function tr(e) {
|
|
476
|
+
var t = {}, r = Dr(e);
|
|
477
|
+
return r || t;
|
|
480
478
|
}
|
|
481
|
-
function
|
|
482
|
-
for (var t = {},
|
|
483
|
-
var i = r
|
|
479
|
+
function Jn(e) {
|
|
480
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
481
|
+
var i = n[r];
|
|
484
482
|
switch (i.stem) {
|
|
485
483
|
case "percent":
|
|
486
484
|
case "%":
|
|
@@ -502,7 +500,7 @@ function Jr(e) {
|
|
|
502
500
|
continue;
|
|
503
501
|
case "measure-unit":
|
|
504
502
|
case "unit":
|
|
505
|
-
t.style = "unit", t.unit =
|
|
503
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
506
504
|
continue;
|
|
507
505
|
case "compact-short":
|
|
508
506
|
case "K":
|
|
@@ -514,12 +512,12 @@ function Jr(e) {
|
|
|
514
512
|
continue;
|
|
515
513
|
case "scientific":
|
|
516
514
|
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(d, u) {
|
|
517
|
-
return F(F({}, d),
|
|
515
|
+
return F(F({}, d), tr(u));
|
|
518
516
|
}, {}));
|
|
519
517
|
continue;
|
|
520
518
|
case "engineering":
|
|
521
519
|
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(d, u) {
|
|
522
|
-
return F(F({}, d),
|
|
520
|
+
return F(F({}, d), tr(u));
|
|
523
521
|
}, {}));
|
|
524
522
|
continue;
|
|
525
523
|
case "notation-simple":
|
|
@@ -564,7 +562,7 @@ function Jr(e) {
|
|
|
564
562
|
case "integer-width":
|
|
565
563
|
if (i.options.length > 1)
|
|
566
564
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
567
|
-
i.options[0].replace(
|
|
565
|
+
i.options[0].replace(Qn, function(d, u, l, m, g, S) {
|
|
568
566
|
if (u)
|
|
569
567
|
t.minimumIntegerDigits = l.length;
|
|
570
568
|
else {
|
|
@@ -577,27 +575,27 @@ function Jr(e) {
|
|
|
577
575
|
});
|
|
578
576
|
continue;
|
|
579
577
|
}
|
|
580
|
-
if (
|
|
578
|
+
if (Lr.test(i.stem)) {
|
|
581
579
|
t.minimumIntegerDigits = i.stem.length;
|
|
582
580
|
continue;
|
|
583
581
|
}
|
|
584
|
-
if (
|
|
582
|
+
if ($t.test(i.stem)) {
|
|
585
583
|
if (i.options.length > 1)
|
|
586
584
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
587
|
-
i.stem.replace(
|
|
585
|
+
i.stem.replace($t, function(d, u, l, m, g, S) {
|
|
588
586
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && S ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + S.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
589
587
|
});
|
|
590
588
|
var o = i.options[0];
|
|
591
|
-
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t),
|
|
589
|
+
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), er(o)));
|
|
592
590
|
continue;
|
|
593
591
|
}
|
|
594
|
-
if (
|
|
595
|
-
t = F(F({}, t),
|
|
592
|
+
if (Nr.test(i.stem)) {
|
|
593
|
+
t = F(F({}, t), er(i.stem));
|
|
596
594
|
continue;
|
|
597
595
|
}
|
|
598
|
-
var f =
|
|
596
|
+
var f = Dr(i.stem);
|
|
599
597
|
f && (t = F(F({}, t), f));
|
|
600
|
-
var c =
|
|
598
|
+
var c = jn(i.stem);
|
|
601
599
|
c && (t = F(F({}, t), c));
|
|
602
600
|
}
|
|
603
601
|
return t;
|
|
@@ -2017,23 +2015,23 @@ var ot = {
|
|
|
2017
2015
|
"h"
|
|
2018
2016
|
]
|
|
2019
2017
|
};
|
|
2020
|
-
function
|
|
2021
|
-
for (var
|
|
2022
|
-
var i = e.charAt(
|
|
2018
|
+
function Xn(e, t) {
|
|
2019
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2020
|
+
var i = e.charAt(n);
|
|
2023
2021
|
if (i === "j") {
|
|
2024
|
-
for (var o = 0;
|
|
2025
|
-
o++,
|
|
2026
|
-
var f = 1 + (o & 1), c = o < 2 ? 1 : 3 + (o >> 1), d = "a", u =
|
|
2022
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2023
|
+
o++, n++;
|
|
2024
|
+
var f = 1 + (o & 1), c = o < 2 ? 1 : 3 + (o >> 1), d = "a", u = zn(t);
|
|
2027
2025
|
for ((u == "H" || u == "k") && (c = 0); c-- > 0; )
|
|
2028
|
-
|
|
2026
|
+
r += d;
|
|
2029
2027
|
for (; f-- > 0; )
|
|
2030
|
-
|
|
2028
|
+
r = u + r;
|
|
2031
2029
|
} else
|
|
2032
|
-
i === "J" ?
|
|
2030
|
+
i === "J" ? r += "H" : r += i;
|
|
2033
2031
|
}
|
|
2034
|
-
return
|
|
2032
|
+
return r;
|
|
2035
2033
|
}
|
|
2036
|
-
function
|
|
2034
|
+
function zn(e) {
|
|
2037
2035
|
var t = e.hourCycle;
|
|
2038
2036
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2039
2037
|
e.hourCycles && // @ts-ignore
|
|
@@ -2050,73 +2048,73 @@ function zr(e) {
|
|
|
2050
2048
|
default:
|
|
2051
2049
|
throw new Error("Invalid hourCycle");
|
|
2052
2050
|
}
|
|
2053
|
-
var
|
|
2054
|
-
|
|
2055
|
-
var i = ot[
|
|
2051
|
+
var r = e.language, n;
|
|
2052
|
+
r !== "root" && (n = e.maximize().region);
|
|
2053
|
+
var i = ot[n || ""] || ot[r || ""] || ot["".concat(r, "-001")] || ot["001"];
|
|
2056
2054
|
return i[0];
|
|
2057
2055
|
}
|
|
2058
|
-
var Tt,
|
|
2056
|
+
var Tt, Vn = new RegExp("^".concat(Or.source, "*")), Zn = new RegExp("".concat(Or.source, "*$"));
|
|
2059
2057
|
function k(e, t) {
|
|
2060
2058
|
return { start: e, end: t };
|
|
2061
2059
|
}
|
|
2062
|
-
var
|
|
2060
|
+
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yn = !!String.fromCodePoint, Wn = !!Object.fromEntries, Kn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
|
|
2063
2061
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2064
2062
|
}, Lt = !0;
|
|
2065
2063
|
try {
|
|
2066
|
-
var
|
|
2067
|
-
Lt = ((Tt =
|
|
2064
|
+
var ni = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2065
|
+
Lt = ((Tt = ni.exec("a")) === null || Tt === void 0 ? void 0 : Tt[0]) === "a";
|
|
2068
2066
|
} catch {
|
|
2069
2067
|
Lt = !1;
|
|
2070
2068
|
}
|
|
2071
|
-
var
|
|
2069
|
+
var rr = qn ? (
|
|
2072
2070
|
// Native
|
|
2073
|
-
function(t,
|
|
2074
|
-
return t.startsWith(
|
|
2071
|
+
function(t, r, n) {
|
|
2072
|
+
return t.startsWith(r, n);
|
|
2075
2073
|
}
|
|
2076
2074
|
) : (
|
|
2077
2075
|
// For IE11
|
|
2078
|
-
function(t,
|
|
2079
|
-
return t.slice(
|
|
2076
|
+
function(t, r, n) {
|
|
2077
|
+
return t.slice(n, n + r.length) === r;
|
|
2080
2078
|
}
|
|
2081
|
-
), Dt =
|
|
2079
|
+
), Dt = Yn ? String.fromCodePoint : (
|
|
2082
2080
|
// IE11
|
|
2083
2081
|
function() {
|
|
2084
|
-
for (var t = [],
|
|
2085
|
-
t[
|
|
2086
|
-
for (var
|
|
2082
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2083
|
+
t[r] = arguments[r];
|
|
2084
|
+
for (var n = "", i = t.length, o = 0, f; i > o; ) {
|
|
2087
2085
|
if (f = t[o++], f > 1114111)
|
|
2088
2086
|
throw RangeError(f + " is not a valid code point");
|
|
2089
|
-
|
|
2087
|
+
n += f < 65536 ? String.fromCharCode(f) : String.fromCharCode(((f -= 65536) >> 10) + 55296, f % 1024 + 56320);
|
|
2090
2088
|
}
|
|
2091
|
-
return
|
|
2089
|
+
return n;
|
|
2092
2090
|
}
|
|
2093
|
-
),
|
|
2091
|
+
), nr = (
|
|
2094
2092
|
// native
|
|
2095
|
-
|
|
2093
|
+
Wn ? Object.fromEntries : (
|
|
2096
2094
|
// Ponyfill
|
|
2097
2095
|
function(t) {
|
|
2098
|
-
for (var
|
|
2099
|
-
var o = i[
|
|
2100
|
-
|
|
2096
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2097
|
+
var o = i[n], f = o[0], c = o[1];
|
|
2098
|
+
r[f] = c;
|
|
2101
2099
|
}
|
|
2102
|
-
return
|
|
2100
|
+
return r;
|
|
2103
2101
|
}
|
|
2104
2102
|
)
|
|
2105
|
-
),
|
|
2103
|
+
), Pr = Kn ? (
|
|
2106
2104
|
// Native
|
|
2107
|
-
function(t,
|
|
2108
|
-
return t.codePointAt(
|
|
2105
|
+
function(t, r) {
|
|
2106
|
+
return t.codePointAt(r);
|
|
2109
2107
|
}
|
|
2110
2108
|
) : (
|
|
2111
2109
|
// IE 11
|
|
2112
|
-
function(t,
|
|
2113
|
-
var
|
|
2114
|
-
if (!(
|
|
2115
|
-
var i = t.charCodeAt(
|
|
2116
|
-
return i < 55296 || i > 56319 ||
|
|
2110
|
+
function(t, r) {
|
|
2111
|
+
var n = t.length;
|
|
2112
|
+
if (!(r < 0 || r >= n)) {
|
|
2113
|
+
var i = t.charCodeAt(r), o;
|
|
2114
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2117
2115
|
}
|
|
2118
2116
|
}
|
|
2119
|
-
), ii = $
|
|
2117
|
+
), ii = $n ? (
|
|
2120
2118
|
// Native
|
|
2121
2119
|
function(t) {
|
|
2122
2120
|
return t.trimStart();
|
|
@@ -2124,7 +2122,7 @@ var tn = qr ? (
|
|
|
2124
2122
|
) : (
|
|
2125
2123
|
// Ponyfill
|
|
2126
2124
|
function(t) {
|
|
2127
|
-
return t.replace(
|
|
2125
|
+
return t.replace(Vn, "");
|
|
2128
2126
|
}
|
|
2129
2127
|
), oi = ei ? (
|
|
2130
2128
|
// Native
|
|
@@ -2134,69 +2132,69 @@ var tn = qr ? (
|
|
|
2134
2132
|
) : (
|
|
2135
2133
|
// Ponyfill
|
|
2136
2134
|
function(t) {
|
|
2137
|
-
return t.replace(
|
|
2135
|
+
return t.replace(Zn, "");
|
|
2138
2136
|
}
|
|
2139
2137
|
);
|
|
2140
|
-
function
|
|
2138
|
+
function Mr(e, t) {
|
|
2141
2139
|
return new RegExp(e, t);
|
|
2142
2140
|
}
|
|
2143
2141
|
var Pt;
|
|
2144
2142
|
if (Lt) {
|
|
2145
|
-
var
|
|
2146
|
-
Pt = function(t,
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2149
|
-
var i =
|
|
2150
|
-
return (
|
|
2143
|
+
var ir = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2144
|
+
Pt = function(t, r) {
|
|
2145
|
+
var n;
|
|
2146
|
+
ir.lastIndex = r;
|
|
2147
|
+
var i = ir.exec(t);
|
|
2148
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2151
2149
|
};
|
|
2152
2150
|
} else
|
|
2153
|
-
Pt = function(t,
|
|
2154
|
-
for (var
|
|
2155
|
-
var i =
|
|
2156
|
-
if (i === void 0 ||
|
|
2151
|
+
Pt = function(t, r) {
|
|
2152
|
+
for (var n = []; ; ) {
|
|
2153
|
+
var i = Pr(t, r);
|
|
2154
|
+
if (i === void 0 || kr(i) || li(i))
|
|
2157
2155
|
break;
|
|
2158
|
-
|
|
2156
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2159
2157
|
}
|
|
2160
|
-
return Dt.apply(void 0,
|
|
2158
|
+
return Dt.apply(void 0, n);
|
|
2161
2159
|
};
|
|
2162
2160
|
var ai = (
|
|
2163
2161
|
/** @class */
|
|
2164
2162
|
function() {
|
|
2165
|
-
function e(t,
|
|
2166
|
-
|
|
2163
|
+
function e(t, r) {
|
|
2164
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2167
2165
|
}
|
|
2168
2166
|
return e.prototype.parse = function() {
|
|
2169
2167
|
if (this.offset() !== 0)
|
|
2170
2168
|
throw Error("parser can only be used once");
|
|
2171
2169
|
return this.parseMessage(0, "", !1);
|
|
2172
|
-
}, e.prototype.parseMessage = function(t,
|
|
2170
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2173
2171
|
for (var i = []; !this.isEOF(); ) {
|
|
2174
2172
|
var o = this.char();
|
|
2175
2173
|
if (o === 123) {
|
|
2176
|
-
var f = this.parseArgument(t,
|
|
2174
|
+
var f = this.parseArgument(t, n);
|
|
2177
2175
|
if (f.err)
|
|
2178
2176
|
return f;
|
|
2179
2177
|
i.push(f.val);
|
|
2180
2178
|
} else {
|
|
2181
2179
|
if (o === 125 && t > 0)
|
|
2182
2180
|
break;
|
|
2183
|
-
if (o === 35 && (
|
|
2181
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2184
2182
|
var c = this.clonePosition();
|
|
2185
2183
|
this.bump(), i.push({
|
|
2186
2184
|
type: V.pound,
|
|
2187
2185
|
location: k(c, this.clonePosition())
|
|
2188
2186
|
});
|
|
2189
2187
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2190
|
-
if (
|
|
2188
|
+
if (n)
|
|
2191
2189
|
break;
|
|
2192
2190
|
return this.error(M.UNMATCHED_CLOSING_TAG, k(this.clonePosition(), this.clonePosition()));
|
|
2193
2191
|
} else if (o === 60 && !this.ignoreTag && Mt(this.peek() || 0)) {
|
|
2194
|
-
var f = this.parseTag(t,
|
|
2192
|
+
var f = this.parseTag(t, r);
|
|
2195
2193
|
if (f.err)
|
|
2196
2194
|
return f;
|
|
2197
2195
|
i.push(f.val);
|
|
2198
2196
|
} else {
|
|
2199
|
-
var f = this.parseLiteral(t,
|
|
2197
|
+
var f = this.parseLiteral(t, r);
|
|
2200
2198
|
if (f.err)
|
|
2201
2199
|
return f;
|
|
2202
2200
|
i.push(f.val);
|
|
@@ -2204,8 +2202,8 @@ var ai = (
|
|
|
2204
2202
|
}
|
|
2205
2203
|
}
|
|
2206
2204
|
return { val: i, err: null };
|
|
2207
|
-
}, e.prototype.parseTag = function(t,
|
|
2208
|
-
var
|
|
2205
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2206
|
+
var n = this.clonePosition();
|
|
2209
2207
|
this.bump();
|
|
2210
2208
|
var i = this.parseTagName();
|
|
2211
2209
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2213,12 +2211,12 @@ var ai = (
|
|
|
2213
2211
|
val: {
|
|
2214
2212
|
type: V.literal,
|
|
2215
2213
|
value: "<".concat(i, "/>"),
|
|
2216
|
-
location: k(
|
|
2214
|
+
location: k(n, this.clonePosition())
|
|
2217
2215
|
},
|
|
2218
2216
|
err: null
|
|
2219
2217
|
};
|
|
2220
2218
|
if (this.bumpIf(">")) {
|
|
2221
|
-
var o = this.parseMessage(t + 1,
|
|
2219
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2222
2220
|
if (o.err)
|
|
2223
2221
|
return o;
|
|
2224
2222
|
var f = o.val, c = this.clonePosition();
|
|
@@ -2231,27 +2229,27 @@ var ai = (
|
|
|
2231
2229
|
type: V.tag,
|
|
2232
2230
|
value: i,
|
|
2233
2231
|
children: f,
|
|
2234
|
-
location: k(
|
|
2232
|
+
location: k(n, this.clonePosition())
|
|
2235
2233
|
},
|
|
2236
2234
|
err: null
|
|
2237
2235
|
} : this.error(M.INVALID_TAG, k(c, this.clonePosition())));
|
|
2238
2236
|
} else
|
|
2239
|
-
return this.error(M.UNCLOSED_TAG, k(
|
|
2237
|
+
return this.error(M.UNCLOSED_TAG, k(n, this.clonePosition()));
|
|
2240
2238
|
} else
|
|
2241
|
-
return this.error(M.INVALID_TAG, k(
|
|
2239
|
+
return this.error(M.INVALID_TAG, k(n, this.clonePosition()));
|
|
2242
2240
|
}, e.prototype.parseTagName = function() {
|
|
2243
2241
|
var t = this.offset();
|
|
2244
2242
|
for (this.bump(); !this.isEOF() && ui(this.char()); )
|
|
2245
2243
|
this.bump();
|
|
2246
2244
|
return this.message.slice(t, this.offset());
|
|
2247
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2248
|
-
for (var
|
|
2249
|
-
var o = this.tryParseQuote(
|
|
2245
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2246
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2247
|
+
var o = this.tryParseQuote(r);
|
|
2250
2248
|
if (o) {
|
|
2251
2249
|
i += o;
|
|
2252
2250
|
continue;
|
|
2253
2251
|
}
|
|
2254
|
-
var f = this.tryParseUnquoted(t,
|
|
2252
|
+
var f = this.tryParseUnquoted(t, r);
|
|
2255
2253
|
if (f) {
|
|
2256
2254
|
i += f;
|
|
2257
2255
|
continue;
|
|
@@ -2263,7 +2261,7 @@ var ai = (
|
|
|
2263
2261
|
}
|
|
2264
2262
|
break;
|
|
2265
2263
|
}
|
|
2266
|
-
var d = k(
|
|
2264
|
+
var d = k(n, this.clonePosition());
|
|
2267
2265
|
return {
|
|
2268
2266
|
val: { type: V.literal, value: i, location: d },
|
|
2269
2267
|
err: null
|
|
@@ -2290,37 +2288,37 @@ var ai = (
|
|
|
2290
2288
|
return null;
|
|
2291
2289
|
}
|
|
2292
2290
|
this.bump();
|
|
2293
|
-
var
|
|
2291
|
+
var r = [this.char()];
|
|
2294
2292
|
for (this.bump(); !this.isEOF(); ) {
|
|
2295
|
-
var
|
|
2296
|
-
if (
|
|
2293
|
+
var n = this.char();
|
|
2294
|
+
if (n === 39)
|
|
2297
2295
|
if (this.peek() === 39)
|
|
2298
|
-
|
|
2296
|
+
r.push(39), this.bump();
|
|
2299
2297
|
else {
|
|
2300
2298
|
this.bump();
|
|
2301
2299
|
break;
|
|
2302
2300
|
}
|
|
2303
2301
|
else
|
|
2304
|
-
|
|
2302
|
+
r.push(n);
|
|
2305
2303
|
this.bump();
|
|
2306
2304
|
}
|
|
2307
|
-
return Dt.apply(void 0,
|
|
2308
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2305
|
+
return Dt.apply(void 0, r);
|
|
2306
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2309
2307
|
if (this.isEOF())
|
|
2310
2308
|
return null;
|
|
2311
|
-
var
|
|
2312
|
-
return
|
|
2313
|
-
}, e.prototype.parseArgument = function(t,
|
|
2314
|
-
var
|
|
2309
|
+
var n = this.char();
|
|
2310
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Dt(n));
|
|
2311
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2312
|
+
var n = this.clonePosition();
|
|
2315
2313
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2316
|
-
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(
|
|
2314
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(n, this.clonePosition()));
|
|
2317
2315
|
if (this.char() === 125)
|
|
2318
|
-
return this.bump(), this.error(M.EMPTY_ARGUMENT, k(
|
|
2316
|
+
return this.bump(), this.error(M.EMPTY_ARGUMENT, k(n, this.clonePosition()));
|
|
2319
2317
|
var i = this.parseIdentifierIfPossible().value;
|
|
2320
2318
|
if (!i)
|
|
2321
|
-
return this.error(M.MALFORMED_ARGUMENT, k(
|
|
2319
|
+
return this.error(M.MALFORMED_ARGUMENT, k(n, this.clonePosition()));
|
|
2322
2320
|
if (this.bumpSpace(), this.isEOF())
|
|
2323
|
-
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(
|
|
2321
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(n, this.clonePosition()));
|
|
2324
2322
|
switch (this.char()) {
|
|
2325
2323
|
case 125:
|
|
2326
2324
|
return this.bump(), {
|
|
@@ -2328,21 +2326,21 @@ var ai = (
|
|
|
2328
2326
|
type: V.argument,
|
|
2329
2327
|
// value does not include the opening and closing braces.
|
|
2330
2328
|
value: i,
|
|
2331
|
-
location: k(
|
|
2329
|
+
location: k(n, this.clonePosition())
|
|
2332
2330
|
},
|
|
2333
2331
|
err: null
|
|
2334
2332
|
};
|
|
2335
2333
|
case 44:
|
|
2336
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(
|
|
2334
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2337
2335
|
default:
|
|
2338
|
-
return this.error(M.MALFORMED_ARGUMENT, k(
|
|
2336
|
+
return this.error(M.MALFORMED_ARGUMENT, k(n, this.clonePosition()));
|
|
2339
2337
|
}
|
|
2340
2338
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2341
|
-
var t = this.clonePosition(),
|
|
2339
|
+
var t = this.clonePosition(), r = this.offset(), n = Pt(this.message, r), i = r + n.length;
|
|
2342
2340
|
this.bumpTo(i);
|
|
2343
2341
|
var o = this.clonePosition(), f = k(t, o);
|
|
2344
|
-
return { value:
|
|
2345
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2342
|
+
return { value: n, location: f };
|
|
2343
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2346
2344
|
var o, f = this.clonePosition(), c = this.parseIdentifierIfPossible().value, d = this.clonePosition();
|
|
2347
2345
|
switch (c) {
|
|
2348
2346
|
case "":
|
|
@@ -2367,27 +2365,27 @@ var ai = (
|
|
|
2367
2365
|
if (U.err)
|
|
2368
2366
|
return U;
|
|
2369
2367
|
var T = k(i, this.clonePosition());
|
|
2370
|
-
if (u &&
|
|
2368
|
+
if (u && rr(u?.style, "::", 0)) {
|
|
2371
2369
|
var O = ii(u.style.slice(2));
|
|
2372
2370
|
if (c === "number") {
|
|
2373
2371
|
var m = this.parseNumberSkeletonFromString(O, u.styleLocation);
|
|
2374
2372
|
return m.err ? m : {
|
|
2375
|
-
val: { type: V.number, value:
|
|
2373
|
+
val: { type: V.number, value: n, location: T, style: m.val },
|
|
2376
2374
|
err: null
|
|
2377
2375
|
};
|
|
2378
2376
|
} else {
|
|
2379
2377
|
if (O.length === 0)
|
|
2380
2378
|
return this.error(M.EXPECT_DATE_TIME_SKELETON, T);
|
|
2381
2379
|
var I = O;
|
|
2382
|
-
this.locale && (I =
|
|
2380
|
+
this.locale && (I = Xn(O, this.locale));
|
|
2383
2381
|
var g = {
|
|
2384
2382
|
type: ke.dateTime,
|
|
2385
2383
|
pattern: I,
|
|
2386
2384
|
location: u.styleLocation,
|
|
2387
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2385
|
+
parsedOptions: this.shouldParseSkeletons ? Un(I) : {}
|
|
2388
2386
|
}, X = c === "date" ? V.date : V.time;
|
|
2389
2387
|
return {
|
|
2390
|
-
val: { type: X, value:
|
|
2388
|
+
val: { type: X, value: n, location: T, style: g },
|
|
2391
2389
|
err: null
|
|
2392
2390
|
};
|
|
2393
2391
|
}
|
|
@@ -2395,7 +2393,7 @@ var ai = (
|
|
|
2395
2393
|
return {
|
|
2396
2394
|
val: {
|
|
2397
2395
|
type: c === "number" ? V.number : c === "date" ? V.date : V.time,
|
|
2398
|
-
value:
|
|
2396
|
+
value: n,
|
|
2399
2397
|
location: T,
|
|
2400
2398
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2401
2399
|
},
|
|
@@ -2419,7 +2417,7 @@ var ai = (
|
|
|
2419
2417
|
return m;
|
|
2420
2418
|
this.bumpSpace(), G = this.parseIdentifierIfPossible(), N = m.val;
|
|
2421
2419
|
}
|
|
2422
|
-
var b = this.tryParsePluralOrSelectOptions(t, c,
|
|
2420
|
+
var b = this.tryParsePluralOrSelectOptions(t, c, r, G);
|
|
2423
2421
|
if (b.err)
|
|
2424
2422
|
return b;
|
|
2425
2423
|
var U = this.tryParseArgumentClose(i);
|
|
@@ -2429,16 +2427,16 @@ var ai = (
|
|
|
2429
2427
|
return c === "select" ? {
|
|
2430
2428
|
val: {
|
|
2431
2429
|
type: V.select,
|
|
2432
|
-
value:
|
|
2433
|
-
options:
|
|
2430
|
+
value: n,
|
|
2431
|
+
options: nr(b.val),
|
|
2434
2432
|
location: B
|
|
2435
2433
|
},
|
|
2436
2434
|
err: null
|
|
2437
2435
|
} : {
|
|
2438
2436
|
val: {
|
|
2439
2437
|
type: V.plural,
|
|
2440
|
-
value:
|
|
2441
|
-
options:
|
|
2438
|
+
value: n,
|
|
2439
|
+
options: nr(b.val),
|
|
2442
2440
|
offset: N,
|
|
2443
2441
|
pluralType: c === "plural" ? "cardinal" : "ordinal",
|
|
2444
2442
|
location: B
|
|
@@ -2452,9 +2450,9 @@ var ai = (
|
|
|
2452
2450
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2453
2451
|
return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, k(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2454
2452
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2455
|
-
for (var t = 0,
|
|
2456
|
-
var
|
|
2457
|
-
switch (
|
|
2453
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2454
|
+
var n = this.char();
|
|
2455
|
+
switch (n) {
|
|
2458
2456
|
case 39: {
|
|
2459
2457
|
this.bump();
|
|
2460
2458
|
var i = this.clonePosition();
|
|
@@ -2472,7 +2470,7 @@ var ai = (
|
|
|
2472
2470
|
t -= 1;
|
|
2473
2471
|
else
|
|
2474
2472
|
return {
|
|
2475
|
-
val: this.message.slice(
|
|
2473
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2476
2474
|
err: null
|
|
2477
2475
|
};
|
|
2478
2476
|
break;
|
|
@@ -2483,30 +2481,30 @@ var ai = (
|
|
|
2483
2481
|
}
|
|
2484
2482
|
}
|
|
2485
2483
|
return {
|
|
2486
|
-
val: this.message.slice(
|
|
2484
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2487
2485
|
err: null
|
|
2488
2486
|
};
|
|
2489
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2490
|
-
var
|
|
2487
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2488
|
+
var n = [];
|
|
2491
2489
|
try {
|
|
2492
|
-
|
|
2490
|
+
n = Fn(t);
|
|
2493
2491
|
} catch {
|
|
2494
|
-
return this.error(M.INVALID_NUMBER_SKELETON,
|
|
2492
|
+
return this.error(M.INVALID_NUMBER_SKELETON, r);
|
|
2495
2493
|
}
|
|
2496
2494
|
return {
|
|
2497
2495
|
val: {
|
|
2498
2496
|
type: ke.number,
|
|
2499
|
-
tokens:
|
|
2500
|
-
location:
|
|
2501
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2497
|
+
tokens: n,
|
|
2498
|
+
location: r,
|
|
2499
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
2502
2500
|
},
|
|
2503
2501
|
err: null
|
|
2504
2502
|
};
|
|
2505
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2503
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2506
2504
|
for (var o, f = !1, c = [], d = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2507
2505
|
if (u.length === 0) {
|
|
2508
2506
|
var m = this.clonePosition();
|
|
2509
|
-
if (
|
|
2507
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
2510
2508
|
var g = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2511
2509
|
if (g.err)
|
|
2512
2510
|
return g;
|
|
@@ -2515,12 +2513,12 @@ var ai = (
|
|
|
2515
2513
|
break;
|
|
2516
2514
|
}
|
|
2517
2515
|
if (d.has(u))
|
|
2518
|
-
return this.error(
|
|
2516
|
+
return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2519
2517
|
u === "other" && (f = !0), this.bumpSpace();
|
|
2520
2518
|
var S = this.clonePosition();
|
|
2521
2519
|
if (!this.bumpIf("{"))
|
|
2522
|
-
return this.error(
|
|
2523
|
-
var U = this.parseMessage(t + 1,
|
|
2520
|
+
return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, k(this.clonePosition(), this.clonePosition()));
|
|
2521
|
+
var U = this.parseMessage(t + 1, r, n);
|
|
2524
2522
|
if (U.err)
|
|
2525
2523
|
return U;
|
|
2526
2524
|
var T = this.tryParseArgumentClose(S);
|
|
@@ -2534,10 +2532,10 @@ var ai = (
|
|
|
2534
2532
|
}
|
|
2535
2533
|
]), d.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2536
2534
|
}
|
|
2537
|
-
return c.length === 0 ? this.error(
|
|
2538
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
2539
|
-
var
|
|
2540
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
2535
|
+
return c.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, k(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !f ? this.error(M.MISSING_OTHER_CLAUSE, k(this.clonePosition(), this.clonePosition())) : { val: c, err: null };
|
|
2536
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2537
|
+
var n = 1, i = this.clonePosition();
|
|
2538
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2541
2539
|
for (var o = !1, f = 0; !this.isEOF(); ) {
|
|
2542
2540
|
var c = this.char();
|
|
2543
2541
|
if (c >= 48 && c <= 57)
|
|
@@ -2546,7 +2544,7 @@ var ai = (
|
|
|
2546
2544
|
break;
|
|
2547
2545
|
}
|
|
2548
2546
|
var d = k(i, this.clonePosition());
|
|
2549
|
-
return o ? (f *=
|
|
2547
|
+
return o ? (f *= n, ri(f) ? { val: f, err: null } : this.error(r, d)) : this.error(t, d);
|
|
2550
2548
|
}, e.prototype.offset = function() {
|
|
2551
2549
|
return this.position.offset;
|
|
2552
2550
|
}, e.prototype.isEOF = function() {
|
|
@@ -2561,17 +2559,17 @@ var ai = (
|
|
|
2561
2559
|
var t = this.position.offset;
|
|
2562
2560
|
if (t >= this.message.length)
|
|
2563
2561
|
throw Error("out of bound");
|
|
2564
|
-
var
|
|
2565
|
-
if (
|
|
2562
|
+
var r = Pr(this.message, t);
|
|
2563
|
+
if (r === void 0)
|
|
2566
2564
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2567
|
-
return
|
|
2568
|
-
}, e.prototype.error = function(t,
|
|
2565
|
+
return r;
|
|
2566
|
+
}, e.prototype.error = function(t, r) {
|
|
2569
2567
|
return {
|
|
2570
2568
|
val: null,
|
|
2571
2569
|
err: {
|
|
2572
2570
|
kind: t,
|
|
2573
2571
|
message: this.message,
|
|
2574
|
-
location:
|
|
2572
|
+
location: r
|
|
2575
2573
|
}
|
|
2576
2574
|
};
|
|
2577
2575
|
}, e.prototype.bump = function() {
|
|
@@ -2580,35 +2578,35 @@ var ai = (
|
|
|
2580
2578
|
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);
|
|
2581
2579
|
}
|
|
2582
2580
|
}, e.prototype.bumpIf = function(t) {
|
|
2583
|
-
if (
|
|
2584
|
-
for (var
|
|
2581
|
+
if (rr(this.message, t, this.offset())) {
|
|
2582
|
+
for (var r = 0; r < t.length; r++)
|
|
2585
2583
|
this.bump();
|
|
2586
2584
|
return !0;
|
|
2587
2585
|
}
|
|
2588
2586
|
return !1;
|
|
2589
2587
|
}, e.prototype.bumpUntil = function(t) {
|
|
2590
|
-
var
|
|
2591
|
-
return
|
|
2588
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
2589
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
2592
2590
|
}, e.prototype.bumpTo = function(t) {
|
|
2593
2591
|
if (this.offset() > t)
|
|
2594
2592
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
2595
2593
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
2596
|
-
var
|
|
2597
|
-
if (
|
|
2594
|
+
var r = this.offset();
|
|
2595
|
+
if (r === t)
|
|
2598
2596
|
break;
|
|
2599
|
-
if (
|
|
2597
|
+
if (r > t)
|
|
2600
2598
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2601
2599
|
if (this.bump(), this.isEOF())
|
|
2602
2600
|
break;
|
|
2603
2601
|
}
|
|
2604
2602
|
}, e.prototype.bumpSpace = function() {
|
|
2605
|
-
for (; !this.isEOF() &&
|
|
2603
|
+
for (; !this.isEOF() && kr(this.char()); )
|
|
2606
2604
|
this.bump();
|
|
2607
2605
|
}, e.prototype.peek = function() {
|
|
2608
2606
|
if (this.isEOF())
|
|
2609
2607
|
return null;
|
|
2610
|
-
var t = this.char(),
|
|
2611
|
-
return
|
|
2608
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
2609
|
+
return n ?? null;
|
|
2612
2610
|
}, e;
|
|
2613
2611
|
}()
|
|
2614
2612
|
);
|
|
@@ -2621,7 +2619,7 @@ function si(e) {
|
|
|
2621
2619
|
function ui(e) {
|
|
2622
2620
|
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;
|
|
2623
2621
|
}
|
|
2624
|
-
function
|
|
2622
|
+
function kr(e) {
|
|
2625
2623
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2626
2624
|
}
|
|
2627
2625
|
function li(e) {
|
|
@@ -2629,21 +2627,21 @@ function li(e) {
|
|
|
2629
2627
|
}
|
|
2630
2628
|
function kt(e) {
|
|
2631
2629
|
e.forEach(function(t) {
|
|
2632
|
-
if (delete t.location,
|
|
2633
|
-
for (var
|
|
2634
|
-
delete t.options[
|
|
2630
|
+
if (delete t.location, Hr(t) || Cr(t))
|
|
2631
|
+
for (var r in t.options)
|
|
2632
|
+
delete t.options[r].location, kt(t.options[r].value);
|
|
2635
2633
|
else
|
|
2636
|
-
|
|
2634
|
+
xr(t) && Sr(t.style) || (Br(t) || Tr(t)) && Nt(t.style) ? delete t.style.location : Rr(t) && kt(t.children);
|
|
2637
2635
|
});
|
|
2638
2636
|
}
|
|
2639
2637
|
function hi(e, t) {
|
|
2640
2638
|
t === void 0 && (t = {}), t = F({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2643
|
-
var
|
|
2644
|
-
throw
|
|
2639
|
+
var r = new ai(e, t).parse();
|
|
2640
|
+
if (r.err) {
|
|
2641
|
+
var n = SyntaxError(M[r.err.kind]);
|
|
2642
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2645
2643
|
}
|
|
2646
|
-
return t?.captureLocation || kt(
|
|
2644
|
+
return t?.captureLocation || kt(r.val), r.val;
|
|
2647
2645
|
}
|
|
2648
2646
|
var Ue;
|
|
2649
2647
|
(function(e) {
|
|
@@ -2653,20 +2651,20 @@ var dt = (
|
|
|
2653
2651
|
/** @class */
|
|
2654
2652
|
function(e) {
|
|
2655
2653
|
ct(t, e);
|
|
2656
|
-
function t(
|
|
2657
|
-
var o = e.call(this,
|
|
2658
|
-
return o.code =
|
|
2654
|
+
function t(r, n, i) {
|
|
2655
|
+
var o = e.call(this, r) || this;
|
|
2656
|
+
return o.code = n, o.originalMessage = i, o;
|
|
2659
2657
|
}
|
|
2660
2658
|
return t.prototype.toString = function() {
|
|
2661
2659
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2662
2660
|
}, t;
|
|
2663
2661
|
}(Error)
|
|
2664
|
-
),
|
|
2662
|
+
), or = (
|
|
2665
2663
|
/** @class */
|
|
2666
2664
|
function(e) {
|
|
2667
2665
|
ct(t, e);
|
|
2668
|
-
function t(
|
|
2669
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
2666
|
+
function t(r, n, i, o) {
|
|
2667
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
|
|
2670
2668
|
}
|
|
2671
2669
|
return t;
|
|
2672
2670
|
}(dt)
|
|
@@ -2674,8 +2672,8 @@ var dt = (
|
|
|
2674
2672
|
/** @class */
|
|
2675
2673
|
function(e) {
|
|
2676
2674
|
ct(t, e);
|
|
2677
|
-
function t(
|
|
2678
|
-
return e.call(this, 'Value for "'.concat(
|
|
2675
|
+
function t(r, n, i) {
|
|
2676
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ue.INVALID_VALUE, i) || this;
|
|
2679
2677
|
}
|
|
2680
2678
|
return t;
|
|
2681
2679
|
}(dt)
|
|
@@ -2683,8 +2681,8 @@ var dt = (
|
|
|
2683
2681
|
/** @class */
|
|
2684
2682
|
function(e) {
|
|
2685
2683
|
ct(t, e);
|
|
2686
|
-
function t(
|
|
2687
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
2684
|
+
function t(r, n) {
|
|
2685
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ue.MISSING_VALUE, n) || this;
|
|
2688
2686
|
}
|
|
2689
2687
|
return t;
|
|
2690
2688
|
}(dt)
|
|
@@ -2693,16 +2691,16 @@ var dt = (
|
|
|
2693
2691
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2694
2692
|
})(ie || (ie = {}));
|
|
2695
2693
|
function di(e) {
|
|
2696
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
2697
|
-
var
|
|
2698
|
-
return !
|
|
2694
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2695
|
+
var n = t[t.length - 1];
|
|
2696
|
+
return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
|
|
2699
2697
|
}, []);
|
|
2700
2698
|
}
|
|
2701
2699
|
function pi(e) {
|
|
2702
2700
|
return typeof e == "function";
|
|
2703
2701
|
}
|
|
2704
|
-
function st(e, t,
|
|
2705
|
-
if (e.length === 1 &&
|
|
2702
|
+
function st(e, t, r, n, i, o, f) {
|
|
2703
|
+
if (e.length === 1 && Kt(e[0]))
|
|
2706
2704
|
return [
|
|
2707
2705
|
{
|
|
2708
2706
|
type: ie.literal,
|
|
@@ -2711,17 +2709,17 @@ function st(e, t, n, r, i, o, f) {
|
|
|
2711
2709
|
];
|
|
2712
2710
|
for (var c = [], d = 0, u = e; d < u.length; d++) {
|
|
2713
2711
|
var l = u[d];
|
|
2714
|
-
if (
|
|
2712
|
+
if (Kt(l)) {
|
|
2715
2713
|
c.push({
|
|
2716
2714
|
type: ie.literal,
|
|
2717
2715
|
value: l.value
|
|
2718
2716
|
});
|
|
2719
2717
|
continue;
|
|
2720
2718
|
}
|
|
2721
|
-
if (
|
|
2719
|
+
if (Mn(l)) {
|
|
2722
2720
|
typeof o == "number" && c.push({
|
|
2723
2721
|
type: ie.literal,
|
|
2724
|
-
value:
|
|
2722
|
+
value: r.getNumberFormat(t).format(o)
|
|
2725
2723
|
});
|
|
2726
2724
|
continue;
|
|
2727
2725
|
}
|
|
@@ -2729,42 +2727,42 @@ function st(e, t, n, r, i, o, f) {
|
|
|
2729
2727
|
if (!(i && m in i))
|
|
2730
2728
|
throw new ci(m, f);
|
|
2731
2729
|
var g = i[m];
|
|
2732
|
-
if (
|
|
2730
|
+
if (Pn(l)) {
|
|
2733
2731
|
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), c.push({
|
|
2734
2732
|
type: typeof g == "string" ? ie.literal : ie.object,
|
|
2735
2733
|
value: g
|
|
2736
2734
|
});
|
|
2737
2735
|
continue;
|
|
2738
2736
|
}
|
|
2739
|
-
if (
|
|
2740
|
-
var S = typeof l.style == "string" ?
|
|
2737
|
+
if (Br(l)) {
|
|
2738
|
+
var S = typeof l.style == "string" ? n.date[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
|
2741
2739
|
c.push({
|
|
2742
2740
|
type: ie.literal,
|
|
2743
|
-
value:
|
|
2741
|
+
value: r.getDateTimeFormat(t, S).format(g)
|
|
2744
2742
|
});
|
|
2745
2743
|
continue;
|
|
2746
2744
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
var S = typeof l.style == "string" ?
|
|
2745
|
+
if (Tr(l)) {
|
|
2746
|
+
var S = typeof l.style == "string" ? n.time[l.style] : Nt(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2749
2747
|
c.push({
|
|
2750
2748
|
type: ie.literal,
|
|
2751
|
-
value:
|
|
2749
|
+
value: r.getDateTimeFormat(t, S).format(g)
|
|
2752
2750
|
});
|
|
2753
2751
|
continue;
|
|
2754
2752
|
}
|
|
2755
|
-
if (
|
|
2756
|
-
var S = typeof l.style == "string" ?
|
|
2753
|
+
if (xr(l)) {
|
|
2754
|
+
var S = typeof l.style == "string" ? n.number[l.style] : Sr(l.style) ? l.style.parsedOptions : void 0;
|
|
2757
2755
|
S && S.scale && (g = g * (S.scale || 1)), c.push({
|
|
2758
2756
|
type: ie.literal,
|
|
2759
|
-
value:
|
|
2757
|
+
value: r.getNumberFormat(t, S).format(g)
|
|
2760
2758
|
});
|
|
2761
2759
|
continue;
|
|
2762
2760
|
}
|
|
2763
|
-
if (
|
|
2761
|
+
if (Rr(l)) {
|
|
2764
2762
|
var U = l.children, T = l.value, O = i[T];
|
|
2765
2763
|
if (!pi(O))
|
|
2766
2764
|
throw new fi(T, "function", f);
|
|
2767
|
-
var I = st(U, t,
|
|
2765
|
+
var I = st(U, t, r, n, i, o), X = O(I.map(function(N) {
|
|
2768
2766
|
return N.value;
|
|
2769
2767
|
}));
|
|
2770
2768
|
Array.isArray(X) || (X = [X]), c.push.apply(c, X.map(function(N) {
|
|
@@ -2774,39 +2772,39 @@ function st(e, t, n, r, i, o, f) {
|
|
|
2774
2772
|
};
|
|
2775
2773
|
}));
|
|
2776
2774
|
}
|
|
2777
|
-
if (
|
|
2775
|
+
if (Hr(l)) {
|
|
2778
2776
|
var H = l.options[g] || l.options.other;
|
|
2779
2777
|
if (!H)
|
|
2780
|
-
throw new
|
|
2781
|
-
c.push.apply(c, st(H.value, t,
|
|
2778
|
+
throw new or(l.value, g, Object.keys(l.options), f);
|
|
2779
|
+
c.push.apply(c, st(H.value, t, r, n, i));
|
|
2782
2780
|
continue;
|
|
2783
2781
|
}
|
|
2784
|
-
if (
|
|
2782
|
+
if (Cr(l)) {
|
|
2785
2783
|
var H = l.options["=".concat(g)];
|
|
2786
2784
|
if (!H) {
|
|
2787
2785
|
if (!Intl.PluralRules)
|
|
2788
2786
|
throw new dt(`Intl.PluralRules is not available in this environment.
|
|
2789
2787
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2790
2788
|
`, Ue.MISSING_INTL_API, f);
|
|
2791
|
-
var G =
|
|
2789
|
+
var G = r.getPluralRules(t, { type: l.pluralType }).select(g - (l.offset || 0));
|
|
2792
2790
|
H = l.options[G] || l.options.other;
|
|
2793
2791
|
}
|
|
2794
2792
|
if (!H)
|
|
2795
|
-
throw new
|
|
2796
|
-
c.push.apply(c, st(H.value, t,
|
|
2793
|
+
throw new or(l.value, g, Object.keys(l.options), f);
|
|
2794
|
+
c.push.apply(c, st(H.value, t, r, n, i, g - (l.offset || 0)));
|
|
2797
2795
|
continue;
|
|
2798
2796
|
}
|
|
2799
2797
|
}
|
|
2800
2798
|
return di(c);
|
|
2801
2799
|
}
|
|
2802
2800
|
function Ai(e, t) {
|
|
2803
|
-
return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
2804
|
-
return n
|
|
2801
|
+
return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2802
|
+
return r[n] = F(F({}, e[n]), t[n] || {}), r;
|
|
2805
2803
|
}, {})) : e;
|
|
2806
2804
|
}
|
|
2807
2805
|
function mi(e, t) {
|
|
2808
|
-
return t ? Object.keys(e).reduce(function(
|
|
2809
|
-
return n
|
|
2806
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2807
|
+
return r[n] = Ai(e[n], t[n]), r;
|
|
2810
2808
|
}, F({}, e)) : e;
|
|
2811
2809
|
}
|
|
2812
2810
|
function Ht(e) {
|
|
@@ -2816,8 +2814,8 @@ function Ht(e) {
|
|
|
2816
2814
|
get: function(t) {
|
|
2817
2815
|
return e[t];
|
|
2818
2816
|
},
|
|
2819
|
-
set: function(t,
|
|
2820
|
-
e[t] =
|
|
2817
|
+
set: function(t, r) {
|
|
2818
|
+
e[t] = r;
|
|
2821
2819
|
}
|
|
2822
2820
|
};
|
|
2823
2821
|
}
|
|
@@ -2830,25 +2828,25 @@ function gi(e) {
|
|
|
2830
2828
|
pluralRules: {}
|
|
2831
2829
|
}), {
|
|
2832
2830
|
getNumberFormat: xt(function() {
|
|
2833
|
-
for (var t,
|
|
2834
|
-
n
|
|
2835
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, It([void 0],
|
|
2831
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2832
|
+
r[n] = arguments[n];
|
|
2833
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, It([void 0], r, !1)))();
|
|
2836
2834
|
}, {
|
|
2837
2835
|
cache: Ht(e.number),
|
|
2838
2836
|
strategy: Bt.variadic
|
|
2839
2837
|
}),
|
|
2840
2838
|
getDateTimeFormat: xt(function() {
|
|
2841
|
-
for (var t,
|
|
2842
|
-
n
|
|
2843
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, It([void 0],
|
|
2839
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2840
|
+
r[n] = arguments[n];
|
|
2841
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, It([void 0], r, !1)))();
|
|
2844
2842
|
}, {
|
|
2845
2843
|
cache: Ht(e.dateTime),
|
|
2846
2844
|
strategy: Bt.variadic
|
|
2847
2845
|
}),
|
|
2848
2846
|
getPluralRules: xt(function() {
|
|
2849
|
-
for (var t,
|
|
2850
|
-
n
|
|
2851
|
-
return new ((t = Intl.PluralRules).bind.apply(t, It([void 0],
|
|
2847
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2848
|
+
r[n] = arguments[n];
|
|
2849
|
+
return new ((t = Intl.PluralRules).bind.apply(t, It([void 0], r, !1)))();
|
|
2852
2850
|
}, {
|
|
2853
2851
|
cache: Ht(e.pluralRules),
|
|
2854
2852
|
strategy: Bt.variadic
|
|
@@ -2858,8 +2856,8 @@ function gi(e) {
|
|
|
2858
2856
|
var vi = (
|
|
2859
2857
|
/** @class */
|
|
2860
2858
|
function() {
|
|
2861
|
-
function e(t,
|
|
2862
|
-
|
|
2859
|
+
function e(t, r, n, i) {
|
|
2860
|
+
r === void 0 && (r = e.defaultLocale);
|
|
2863
2861
|
var o = this;
|
|
2864
2862
|
if (this.formatterCache = {
|
|
2865
2863
|
number: {},
|
|
@@ -2882,18 +2880,18 @@ var vi = (
|
|
|
2882
2880
|
};
|
|
2883
2881
|
}, this.getAst = function() {
|
|
2884
2882
|
return o.ast;
|
|
2885
|
-
}, this.locales =
|
|
2883
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
2886
2884
|
if (this.message = t, !e.__parse)
|
|
2887
2885
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2888
2886
|
var f = i || {};
|
|
2889
2887
|
f.formatters;
|
|
2890
|
-
var c =
|
|
2888
|
+
var c = Cn(f, ["formatters"]);
|
|
2891
2889
|
this.ast = e.__parse(t, F(F({}, c), { locale: this.resolvedLocale }));
|
|
2892
2890
|
} else
|
|
2893
2891
|
this.ast = t;
|
|
2894
2892
|
if (!Array.isArray(this.ast))
|
|
2895
2893
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2896
|
-
this.formats = mi(e.formats,
|
|
2894
|
+
this.formats = mi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
|
2897
2895
|
}
|
|
2898
2896
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2899
2897
|
get: function() {
|
|
@@ -2903,8 +2901,8 @@ var vi = (
|
|
|
2903
2901
|
configurable: !0
|
|
2904
2902
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
2905
2903
|
if (!(typeof Intl.Locale > "u")) {
|
|
2906
|
-
var
|
|
2907
|
-
return
|
|
2904
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2905
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2908
2906
|
}
|
|
2909
2907
|
}, e.__parse = hi, e.formats = {
|
|
2910
2908
|
number: {
|
|
@@ -2972,104 +2970,104 @@ function Ei(e, t) {
|
|
|
2972
2970
|
return;
|
|
2973
2971
|
if (t in e)
|
|
2974
2972
|
return e[t];
|
|
2975
|
-
const
|
|
2976
|
-
let
|
|
2977
|
-
for (let i = 0; i <
|
|
2978
|
-
if (typeof
|
|
2973
|
+
const r = t.split(".");
|
|
2974
|
+
let n = e;
|
|
2975
|
+
for (let i = 0; i < r.length; i++)
|
|
2976
|
+
if (typeof n == "object") {
|
|
2979
2977
|
if (i > 0) {
|
|
2980
|
-
const o =
|
|
2981
|
-
if (o in
|
|
2982
|
-
|
|
2978
|
+
const o = r.slice(i, r.length).join(".");
|
|
2979
|
+
if (o in n) {
|
|
2980
|
+
n = n[o];
|
|
2983
2981
|
break;
|
|
2984
2982
|
}
|
|
2985
2983
|
}
|
|
2986
|
-
|
|
2984
|
+
n = n[r[i]];
|
|
2987
2985
|
} else
|
|
2988
|
-
|
|
2989
|
-
return
|
|
2986
|
+
n = void 0;
|
|
2987
|
+
return n;
|
|
2990
2988
|
}
|
|
2991
|
-
const Te = {}, bi = (e, t,
|
|
2989
|
+
const Te = {}, bi = (e, t, r) => r && (t in Te || (Te[t] = {}), e in Te[t] || (Te[t][e] = r), r), Ur = (e, t) => {
|
|
2992
2990
|
if (t == null)
|
|
2993
2991
|
return;
|
|
2994
2992
|
if (t in Te && e in Te[t])
|
|
2995
2993
|
return Te[t][e];
|
|
2996
|
-
const
|
|
2997
|
-
for (let
|
|
2998
|
-
const i = n
|
|
2994
|
+
const r = pt(t);
|
|
2995
|
+
for (let n = 0; n < r.length; n++) {
|
|
2996
|
+
const i = r[n], o = wi(i, e);
|
|
2999
2997
|
if (o)
|
|
3000
2998
|
return bi(e, t, o);
|
|
3001
2999
|
}
|
|
3002
3000
|
};
|
|
3003
|
-
let
|
|
3001
|
+
let jt;
|
|
3004
3002
|
const _e = ft({});
|
|
3005
3003
|
function yi(e) {
|
|
3006
|
-
return
|
|
3004
|
+
return jt[e] || null;
|
|
3007
3005
|
}
|
|
3008
|
-
function
|
|
3009
|
-
return e in
|
|
3006
|
+
function Gr(e) {
|
|
3007
|
+
return e in jt;
|
|
3010
3008
|
}
|
|
3011
3009
|
function wi(e, t) {
|
|
3012
|
-
if (!
|
|
3010
|
+
if (!Gr(e))
|
|
3013
3011
|
return null;
|
|
3014
|
-
const
|
|
3015
|
-
return Ei(
|
|
3012
|
+
const r = yi(e);
|
|
3013
|
+
return Ei(r, t);
|
|
3016
3014
|
}
|
|
3017
3015
|
function Ii(e) {
|
|
3018
3016
|
if (e == null)
|
|
3019
3017
|
return;
|
|
3020
3018
|
const t = pt(e);
|
|
3021
|
-
for (let
|
|
3022
|
-
const
|
|
3023
|
-
if (
|
|
3024
|
-
return
|
|
3019
|
+
for (let r = 0; r < t.length; r++) {
|
|
3020
|
+
const n = t[r];
|
|
3021
|
+
if (Gr(n))
|
|
3022
|
+
return n;
|
|
3025
3023
|
}
|
|
3026
3024
|
}
|
|
3027
|
-
function
|
|
3028
|
-
delete Te[e], _e.update((
|
|
3025
|
+
function Fr(e, ...t) {
|
|
3026
|
+
delete Te[e], _e.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
|
3029
3027
|
}
|
|
3030
3028
|
Fe(
|
|
3031
3029
|
[_e],
|
|
3032
3030
|
([e]) => Object.keys(e)
|
|
3033
3031
|
);
|
|
3034
|
-
_e.subscribe((e) =>
|
|
3032
|
+
_e.subscribe((e) => jt = e);
|
|
3035
3033
|
const ut = {};
|
|
3036
3034
|
function xi(e, t) {
|
|
3037
3035
|
ut[e].delete(t), ut[e].size === 0 && delete ut[e];
|
|
3038
3036
|
}
|
|
3039
|
-
function
|
|
3037
|
+
function _r(e) {
|
|
3040
3038
|
return ut[e];
|
|
3041
3039
|
}
|
|
3042
3040
|
function Bi(e) {
|
|
3043
3041
|
return pt(e).map((t) => {
|
|
3044
|
-
const
|
|
3045
|
-
return [t,
|
|
3042
|
+
const r = _r(t);
|
|
3043
|
+
return [t, r ? [...r] : []];
|
|
3046
3044
|
}).filter(([, t]) => t.length > 0);
|
|
3047
3045
|
}
|
|
3048
3046
|
function Ut(e) {
|
|
3049
3047
|
return e == null ? !1 : pt(e).some(
|
|
3050
3048
|
(t) => {
|
|
3051
|
-
var
|
|
3052
|
-
return (
|
|
3049
|
+
var r;
|
|
3050
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
3053
3051
|
}
|
|
3054
3052
|
);
|
|
3055
3053
|
}
|
|
3056
3054
|
function Ti(e, t) {
|
|
3057
3055
|
return Promise.all(
|
|
3058
|
-
t.map((
|
|
3059
|
-
).then((
|
|
3056
|
+
t.map((n) => (xi(e, n), n().then((i) => i.default || i)))
|
|
3057
|
+
).then((n) => Fr(e, ...n));
|
|
3060
3058
|
}
|
|
3061
3059
|
const Xe = {};
|
|
3062
|
-
function
|
|
3060
|
+
function Qr(e) {
|
|
3063
3061
|
if (!Ut(e))
|
|
3064
3062
|
return e in Xe ? Xe[e] : Promise.resolve();
|
|
3065
3063
|
const t = Bi(e);
|
|
3066
3064
|
return Xe[e] = Promise.all(
|
|
3067
3065
|
t.map(
|
|
3068
|
-
([
|
|
3066
|
+
([r, n]) => Ti(r, n)
|
|
3069
3067
|
)
|
|
3070
3068
|
).then(() => {
|
|
3071
3069
|
if (Ut(e))
|
|
3072
|
-
return
|
|
3070
|
+
return Qr(e);
|
|
3073
3071
|
delete Xe[e];
|
|
3074
3072
|
}), Xe[e];
|
|
3075
3073
|
}
|
|
@@ -3114,22 +3112,22 @@ function Ge() {
|
|
|
3114
3112
|
return Ri;
|
|
3115
3113
|
}
|
|
3116
3114
|
const Ct = ft(!1);
|
|
3117
|
-
var Si = Object.defineProperty, Oi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors,
|
|
3118
|
-
for (var
|
|
3119
|
-
Li.call(t,
|
|
3120
|
-
if (
|
|
3121
|
-
for (var
|
|
3122
|
-
Di.call(t,
|
|
3115
|
+
var Si = Object.defineProperty, Oi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, sr = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
3116
|
+
for (var r in t || (t = {}))
|
|
3117
|
+
Li.call(t, r) && sr(e, r, t[r]);
|
|
3118
|
+
if (ar)
|
|
3119
|
+
for (var r of ar(t))
|
|
3120
|
+
Di.call(t, r) && sr(e, r, t[r]);
|
|
3123
3121
|
return e;
|
|
3124
3122
|
}, Mi = (e, t) => Oi(e, Ni(t));
|
|
3125
3123
|
let Gt;
|
|
3126
3124
|
const lt = ft(null);
|
|
3127
|
-
function
|
|
3128
|
-
return e.split("-").map((t,
|
|
3125
|
+
function ur(e) {
|
|
3126
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3129
3127
|
}
|
|
3130
3128
|
function pt(e, t = Ge().fallbackLocale) {
|
|
3131
|
-
const
|
|
3132
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3129
|
+
const r = ur(e);
|
|
3130
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ur(t)])] : r;
|
|
3133
3131
|
}
|
|
3134
3132
|
function Oe() {
|
|
3135
3133
|
return Gt ?? void 0;
|
|
@@ -3140,14 +3138,14 @@ lt.subscribe((e) => {
|
|
|
3140
3138
|
const ki = (e) => {
|
|
3141
3139
|
if (e && Ii(e) && Ut(e)) {
|
|
3142
3140
|
const { loadingDelay: t } = Ge();
|
|
3143
|
-
let
|
|
3144
|
-
return typeof window < "u" && Oe() != null && t ?
|
|
3141
|
+
let r;
|
|
3142
|
+
return typeof window < "u" && Oe() != null && t ? r = window.setTimeout(
|
|
3145
3143
|
() => Ct.set(!0),
|
|
3146
3144
|
t
|
|
3147
|
-
) : Ct.set(!0),
|
|
3145
|
+
) : Ct.set(!0), Qr(e).then(() => {
|
|
3148
3146
|
lt.set(e);
|
|
3149
3147
|
}).finally(() => {
|
|
3150
|
-
clearTimeout(
|
|
3148
|
+
clearTimeout(r), Ct.set(!1);
|
|
3151
3149
|
});
|
|
3152
3150
|
}
|
|
3153
3151
|
return lt.set(e);
|
|
@@ -3155,83 +3153,83 @@ const ki = (e) => {
|
|
|
3155
3153
|
set: ki
|
|
3156
3154
|
}), At = (e) => {
|
|
3157
3155
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3158
|
-
return (
|
|
3159
|
-
const i = JSON.stringify(
|
|
3160
|
-
return i in t ? t[i] : t[i] = e(
|
|
3156
|
+
return (n) => {
|
|
3157
|
+
const i = JSON.stringify(n);
|
|
3158
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3161
3159
|
};
|
|
3162
3160
|
};
|
|
3163
|
-
var Ui = Object.defineProperty, ht = Object.getOwnPropertySymbols,
|
|
3164
|
-
for (var
|
|
3165
|
-
|
|
3161
|
+
var Ui = Object.defineProperty, ht = Object.getOwnPropertySymbols, jr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable, lr = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jt = (e, t) => {
|
|
3162
|
+
for (var r in t || (t = {}))
|
|
3163
|
+
jr.call(t, r) && lr(e, r, t[r]);
|
|
3166
3164
|
if (ht)
|
|
3167
|
-
for (var
|
|
3168
|
-
|
|
3165
|
+
for (var r of ht(t))
|
|
3166
|
+
Jr.call(t, r) && lr(e, r, t[r]);
|
|
3169
3167
|
return e;
|
|
3170
3168
|
}, Qe = (e, t) => {
|
|
3171
|
-
var
|
|
3172
|
-
for (var
|
|
3173
|
-
|
|
3169
|
+
var r = {};
|
|
3170
|
+
for (var n in e)
|
|
3171
|
+
jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3174
3172
|
if (e != null && ht)
|
|
3175
|
-
for (var
|
|
3176
|
-
t.indexOf(
|
|
3177
|
-
return
|
|
3173
|
+
for (var n of ht(e))
|
|
3174
|
+
t.indexOf(n) < 0 && Jr.call(e, n) && (r[n] = e[n]);
|
|
3175
|
+
return r;
|
|
3178
3176
|
};
|
|
3179
3177
|
const Ze = (e, t) => {
|
|
3180
|
-
const { formats:
|
|
3181
|
-
if (e in
|
|
3182
|
-
return
|
|
3178
|
+
const { formats: r } = Ge();
|
|
3179
|
+
if (e in r && t in r[e])
|
|
3180
|
+
return r[e][t];
|
|
3183
3181
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3184
3182
|
}, Gi = At(
|
|
3185
3183
|
(e) => {
|
|
3186
|
-
var t = e, { locale:
|
|
3187
|
-
if (
|
|
3184
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
3185
|
+
if (r == null)
|
|
3188
3186
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3189
|
-
return
|
|
3187
|
+
return n && (i = Ze("number", n)), new Intl.NumberFormat(r, i);
|
|
3190
3188
|
}
|
|
3191
3189
|
), Fi = At(
|
|
3192
3190
|
(e) => {
|
|
3193
|
-
var t = e, { locale:
|
|
3194
|
-
if (
|
|
3191
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
3192
|
+
if (r == null)
|
|
3195
3193
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3196
|
-
return
|
|
3194
|
+
return n ? i = Ze("date", n) : Object.keys(i).length === 0 && (i = Ze("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3197
3195
|
}
|
|
3198
3196
|
), _i = At(
|
|
3199
3197
|
(e) => {
|
|
3200
|
-
var t = e, { locale:
|
|
3201
|
-
if (
|
|
3198
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
3199
|
+
if (r == null)
|
|
3202
3200
|
throw new Error(
|
|
3203
3201
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3204
3202
|
);
|
|
3205
|
-
return
|
|
3203
|
+
return n ? i = Ze("time", n) : Object.keys(i).length === 0 && (i = Ze("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3206
3204
|
}
|
|
3207
3205
|
), Qi = (e = {}) => {
|
|
3208
3206
|
var t = e, {
|
|
3209
|
-
locale:
|
|
3210
|
-
} = t,
|
|
3207
|
+
locale: r = Oe()
|
|
3208
|
+
} = t, n = Qe(t, [
|
|
3211
3209
|
"locale"
|
|
3212
3210
|
]);
|
|
3213
|
-
return Gi(
|
|
3211
|
+
return Gi(Jt({ locale: r }, n));
|
|
3214
3212
|
}, ji = (e = {}) => {
|
|
3215
3213
|
var t = e, {
|
|
3216
|
-
locale:
|
|
3217
|
-
} = t,
|
|
3214
|
+
locale: r = Oe()
|
|
3215
|
+
} = t, n = Qe(t, [
|
|
3218
3216
|
"locale"
|
|
3219
3217
|
]);
|
|
3220
|
-
return Fi(
|
|
3218
|
+
return Fi(Jt({ locale: r }, n));
|
|
3221
3219
|
}, Ji = (e = {}) => {
|
|
3222
3220
|
var t = e, {
|
|
3223
|
-
locale:
|
|
3224
|
-
} = t,
|
|
3221
|
+
locale: r = Oe()
|
|
3222
|
+
} = t, n = Qe(t, [
|
|
3225
3223
|
"locale"
|
|
3226
3224
|
]);
|
|
3227
|
-
return _i(
|
|
3225
|
+
return _i(Jt({ locale: r }, n));
|
|
3228
3226
|
}, Xi = At(
|
|
3229
3227
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3230
3228
|
(e, t = Oe()) => new vi(e, t, Ge().formats, {
|
|
3231
3229
|
ignoreTag: Ge().ignoreTag
|
|
3232
3230
|
})
|
|
3233
3231
|
), zi = (e, t = {}) => {
|
|
3234
|
-
var
|
|
3232
|
+
var r, n, i, o;
|
|
3235
3233
|
let f = t;
|
|
3236
3234
|
typeof e == "object" && (f = e, e = f.id);
|
|
3237
3235
|
const {
|
|
@@ -3243,9 +3241,9 @@ const Ze = (e, t) => {
|
|
|
3243
3241
|
throw new Error(
|
|
3244
3242
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3245
3243
|
);
|
|
3246
|
-
let l =
|
|
3244
|
+
let l = Ur(e, d);
|
|
3247
3245
|
if (!l)
|
|
3248
|
-
l = (o = (i = (
|
|
3246
|
+
l = (o = (i = (n = (r = Ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: d, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3249
3247
|
else if (typeof l != "string")
|
|
3250
3248
|
return console.warn(
|
|
3251
3249
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3262,23 +3260,23 @@ const Ze = (e, t) => {
|
|
|
3262
3260
|
);
|
|
3263
3261
|
}
|
|
3264
3262
|
return m;
|
|
3265
|
-
}, Vi = (e, t) => Ji(t).format(e), Zi = (e, t) => ji(t).format(e), qi = (e, t) => Qi(t).format(e), Yi = (e, t = Oe()) =>
|
|
3263
|
+
}, Vi = (e, t) => Ji(t).format(e), Zi = (e, t) => ji(t).format(e), qi = (e, t) => Qi(t).format(e), Yi = (e, t = Oe()) => Ur(e, t), Wi = Fe([He, _e], () => zi);
|
|
3266
3264
|
Fe([He], () => Vi);
|
|
3267
3265
|
Fe([He], () => Zi);
|
|
3268
3266
|
Fe([He], () => qi);
|
|
3269
3267
|
Fe([He, _e], () => Yi);
|
|
3270
3268
|
function Ki({ withLocale: e, translations: t }) {
|
|
3271
|
-
He.subscribe((
|
|
3272
|
-
|
|
3269
|
+
He.subscribe((r) => {
|
|
3270
|
+
r == null && (_e.set(t), He.set(e));
|
|
3273
3271
|
});
|
|
3274
3272
|
}
|
|
3275
|
-
function
|
|
3276
|
-
|
|
3273
|
+
function hr(e, t) {
|
|
3274
|
+
Fr(e, t);
|
|
3277
3275
|
}
|
|
3278
3276
|
function $i(e) {
|
|
3279
3277
|
He.set(e);
|
|
3280
3278
|
}
|
|
3281
|
-
const
|
|
3279
|
+
const fr = {
|
|
3282
3280
|
en: {
|
|
3283
3281
|
loading: "Loading"
|
|
3284
3282
|
},
|
|
@@ -3311,8 +3309,8 @@ var Ft = { exports: {} };
|
|
|
3311
3309
|
* https://github.com/Yaffle/EventSource/
|
|
3312
3310
|
*/
|
|
3313
3311
|
(function(e, t) {
|
|
3314
|
-
(function(
|
|
3315
|
-
var
|
|
3312
|
+
(function(r) {
|
|
3313
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, f = r.XDomainRequest, c = r.ActiveXObject, d = r.EventSource, u = r.document, l = r.Promise, m = r.fetch, g = r.Response, S = r.TextDecoder, U = r.TextEncoder, T = r.AbortController;
|
|
3316
3314
|
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3317
3315
|
u.readyState = "complete";
|
|
3318
3316
|
}, !1)), o == null && c != null && (o = function() {
|
|
@@ -3437,7 +3435,7 @@ var Ft = { exports: {} };
|
|
|
3437
3435
|
}, s = function(E) {
|
|
3438
3436
|
p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && L(p.responseText === "" ? "error" : "load", E) : p.readyState === 3 ? "onprogress" in p || z() : p.readyState === 2 && R());
|
|
3439
3437
|
}, y = function() {
|
|
3440
|
-
w =
|
|
3438
|
+
w = n(function() {
|
|
3441
3439
|
y();
|
|
3442
3440
|
}, 500), p.readyState === 3 && z();
|
|
3443
3441
|
};
|
|
@@ -3449,7 +3447,7 @@ var Ft = { exports: {} };
|
|
|
3449
3447
|
L("abort", E);
|
|
3450
3448
|
}), "onprogress" in p && (p.onprogress = z), "onreadystatechange" in p && (p.onreadystatechange = function(E) {
|
|
3451
3449
|
s(E);
|
|
3452
|
-
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (A += (A.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(a, A, !0), "readyState" in p && (w =
|
|
3450
|
+
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (A += (A.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(a, A, !0), "readyState" in p && (w = n(function() {
|
|
3453
3451
|
y();
|
|
3454
3452
|
}, 0));
|
|
3455
3453
|
}, G.prototype.abort = function() {
|
|
@@ -3464,7 +3462,7 @@ var Ft = { exports: {} };
|
|
|
3464
3462
|
}, G.prototype.send = function() {
|
|
3465
3463
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
3466
3464
|
var a = this;
|
|
3467
|
-
a._sendTimeout =
|
|
3465
|
+
a._sendTimeout = n(function() {
|
|
3468
3466
|
a._sendTimeout = 0, a.send();
|
|
3469
3467
|
}, 4);
|
|
3470
3468
|
return;
|
|
@@ -3563,7 +3561,7 @@ var Ft = { exports: {} };
|
|
|
3563
3561
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
3564
3562
|
}
|
|
3565
3563
|
function ve(a) {
|
|
3566
|
-
|
|
3564
|
+
n(function() {
|
|
3567
3565
|
throw a;
|
|
3568
3566
|
}, 0);
|
|
3569
3567
|
}
|
|
@@ -3631,67 +3629,67 @@ var Ft = { exports: {} };
|
|
|
3631
3629
|
var gt = m != null && g != null && "body" in g.prototype;
|
|
3632
3630
|
function vt(a, A, v) {
|
|
3633
3631
|
A = String(A);
|
|
3634
|
-
var p = !!v.withCredentials, x = v.lastEventIdQueryParameterName || "lastEventId", w = Ce(1e3), R = Ne(v.heartbeatTimeout, 45e3), z = "", L = w, s = !1, y = 0, E = v.headers || {}, P = v.Transport, le = gt && P == null ? void 0 : new G(P != null ? new P() : et()), Re = P != null && typeof P != "string" ? new P() : le == null ? new ee() : new B(), ae = void 0, te = 0, pe = W, Le = "",
|
|
3632
|
+
var p = !!v.withCredentials, x = v.lastEventIdQueryParameterName || "lastEventId", w = Ce(1e3), R = Ne(v.heartbeatTimeout, 45e3), z = "", L = w, s = !1, y = 0, E = v.headers || {}, P = v.Transport, le = gt && P == null ? void 0 : new G(P != null ? new P() : et()), Re = P != null && typeof P != "string" ? new P() : le == null ? new ee() : new B(), ae = void 0, te = 0, pe = W, Le = "", rt = "", be = "", nt = "", re = de, Et = 0, Se = 0, Xr = function(K, q, he, fe) {
|
|
3635
3633
|
if (pe === me)
|
|
3636
3634
|
if (K === 200 && he != null && We.test(he)) {
|
|
3637
3635
|
pe = Ie, s = Date.now(), L = w, a.readyState = Ie;
|
|
3638
|
-
var
|
|
3636
|
+
var ne = new Z("open", {
|
|
3639
3637
|
status: K,
|
|
3640
3638
|
statusText: q,
|
|
3641
3639
|
headers: fe
|
|
3642
3640
|
});
|
|
3643
|
-
a.dispatchEvent(
|
|
3641
|
+
a.dispatchEvent(ne), Be(a, a.onopen, ne);
|
|
3644
3642
|
} else {
|
|
3645
3643
|
var $ = "";
|
|
3646
3644
|
K !== 200 ? (q && (q = q.replace(/\s+/g, " ")), $ = "EventSource's response has a status " + K + " " + q + " that is not 200. Aborting the connection.") : $ = "EventSource's response has a Content-Type specifying an unsupported type: " + (he == null ? "-" : he.replace(/\s+/g, " ")) + ". Aborting the connection.", bt();
|
|
3647
|
-
var
|
|
3645
|
+
var ne = new Z("error", {
|
|
3648
3646
|
status: K,
|
|
3649
3647
|
statusText: q,
|
|
3650
3648
|
headers: fe
|
|
3651
3649
|
});
|
|
3652
|
-
a.dispatchEvent(
|
|
3650
|
+
a.dispatchEvent(ne), Be(a, a.onerror, ne), console.error($);
|
|
3653
3651
|
}
|
|
3654
|
-
},
|
|
3652
|
+
}, zr = function(K) {
|
|
3655
3653
|
if (pe === Ie) {
|
|
3656
3654
|
for (var q = -1, he = 0; he < K.length; he += 1) {
|
|
3657
3655
|
var fe = K.charCodeAt(he);
|
|
3658
3656
|
(fe === 10 || fe === 13) && (q = he);
|
|
3659
3657
|
}
|
|
3660
|
-
var
|
|
3661
|
-
|
|
3662
|
-
for (var $ = 0; $ <
|
|
3663
|
-
var fe =
|
|
3664
|
-
if (
|
|
3665
|
-
|
|
3666
|
-
else if (
|
|
3667
|
-
if (
|
|
3668
|
-
|
|
3669
|
-
var ye =
|
|
3658
|
+
var ne = (q !== -1 ? nt : "") + K.slice(0, q + 1);
|
|
3659
|
+
nt = (q === -1 ? nt : "") + K.slice(q + 1), K !== "" && (s = Date.now(), y += K.length);
|
|
3660
|
+
for (var $ = 0; $ < ne.length; $ += 1) {
|
|
3661
|
+
var fe = ne.charCodeAt($);
|
|
3662
|
+
if (re === Ee && fe === 10)
|
|
3663
|
+
re = de;
|
|
3664
|
+
else if (re === Ee && (re = de), fe === 13 || fe === 10) {
|
|
3665
|
+
if (re !== de) {
|
|
3666
|
+
re === ce && (Se = $ + 1);
|
|
3667
|
+
var ye = ne.slice(Et, Se - 1), we = ne.slice(Se + (Se < $ && ne.charCodeAt(Se) === 32 ? 1 : 0), $);
|
|
3670
3668
|
ye === "data" ? (Le += `
|
|
3671
|
-
`, Le += we) : ye === "id" ?
|
|
3669
|
+
`, Le += we) : ye === "id" ? rt = we : ye === "event" ? be = we : ye === "retry" ? (w = Ne(we, w), L = w) : ye === "heartbeatTimeout" && (R = Ne(we, R), te !== 0 && (i(te), te = n(function() {
|
|
3672
3670
|
Je();
|
|
3673
3671
|
}, R)));
|
|
3674
3672
|
}
|
|
3675
|
-
if (
|
|
3673
|
+
if (re === de) {
|
|
3676
3674
|
if (Le !== "") {
|
|
3677
|
-
z =
|
|
3675
|
+
z = rt, be === "" && (be = "message");
|
|
3678
3676
|
var De = new _(be, {
|
|
3679
3677
|
data: Le.slice(1),
|
|
3680
|
-
lastEventId:
|
|
3678
|
+
lastEventId: rt
|
|
3681
3679
|
});
|
|
3682
3680
|
if (a.dispatchEvent(De), be === "open" ? Be(a, a.onopen, De) : be === "message" ? Be(a, a.onmessage, De) : be === "error" && Be(a, a.onerror, De), pe === xe)
|
|
3683
3681
|
return;
|
|
3684
3682
|
}
|
|
3685
3683
|
Le = "", be = "";
|
|
3686
3684
|
}
|
|
3687
|
-
|
|
3685
|
+
re = fe === 13 ? Ee : de;
|
|
3688
3686
|
} else
|
|
3689
|
-
|
|
3687
|
+
re === de && (Et = $, re = ce), re === ce ? fe === 58 && (Se = $ + 1, re = je) : re === je && (re = mt);
|
|
3690
3688
|
}
|
|
3691
3689
|
}
|
|
3692
|
-
},
|
|
3690
|
+
}, Xt = function(K) {
|
|
3693
3691
|
if (pe === Ie || pe === me) {
|
|
3694
|
-
pe = W, te !== 0 && (i(te), te = 0), te =
|
|
3692
|
+
pe = W, te !== 0 && (i(te), te = 0), te = n(function() {
|
|
3695
3693
|
Je();
|
|
3696
3694
|
}, L), L = Ce(Math.min(w * 16, L * 2)), a.readyState = me;
|
|
3697
3695
|
var q = new j("error", { error: K });
|
|
@@ -3702,18 +3700,18 @@ var Ft = { exports: {} };
|
|
|
3702
3700
|
}, Je = function() {
|
|
3703
3701
|
if (te = 0, pe !== W) {
|
|
3704
3702
|
if (!s && ae != null)
|
|
3705
|
-
|
|
3703
|
+
Xt(new Error("No activity within " + R + " milliseconds. " + (pe === me ? "No response received." : y + " chars received.") + " Reconnecting.")), ae != null && (ae.abort(), ae = void 0);
|
|
3706
3704
|
else {
|
|
3707
3705
|
var K = Math.max((s || Date.now()) + R - Date.now(), 1);
|
|
3708
|
-
s = !1, te =
|
|
3706
|
+
s = !1, te = n(function() {
|
|
3709
3707
|
Je();
|
|
3710
3708
|
}, K);
|
|
3711
3709
|
}
|
|
3712
3710
|
return;
|
|
3713
3711
|
}
|
|
3714
|
-
s = !1, y = 0, te =
|
|
3712
|
+
s = !1, y = 0, te = n(function() {
|
|
3715
3713
|
Je();
|
|
3716
|
-
}, R), pe = me, Le = "", be = "",
|
|
3714
|
+
}, R), pe = me, Le = "", be = "", rt = z, nt = "", Et = 0, Se = 0, re = de;
|
|
3717
3715
|
var q = A;
|
|
3718
3716
|
if (A.slice(0, 5) !== "data:" && A.slice(0, 5) !== "blob:" && z !== "") {
|
|
3719
3717
|
var he = A.indexOf("?");
|
|
@@ -3721,14 +3719,14 @@ var Ft = { exports: {} };
|
|
|
3721
3719
|
return De === x ? "" : we;
|
|
3722
3720
|
}), q += (A.indexOf("?") === -1 ? "?" : "&") + x + "=" + encodeURIComponent(z);
|
|
3723
3721
|
}
|
|
3724
|
-
var fe = a.withCredentials,
|
|
3725
|
-
|
|
3722
|
+
var fe = a.withCredentials, ne = {};
|
|
3723
|
+
ne.Accept = "text/event-stream";
|
|
3726
3724
|
var $ = a.headers;
|
|
3727
3725
|
if ($ != null)
|
|
3728
3726
|
for (var ye in $)
|
|
3729
|
-
Object.prototype.hasOwnProperty.call($, ye) && (
|
|
3727
|
+
Object.prototype.hasOwnProperty.call($, ye) && (ne[ye] = $[ye]);
|
|
3730
3728
|
try {
|
|
3731
|
-
ae = Re.open(le,
|
|
3729
|
+
ae = Re.open(le, Xr, zr, Xt, q, fe, ne);
|
|
3732
3730
|
} catch (we) {
|
|
3733
3731
|
throw bt(), we;
|
|
3734
3732
|
}
|
|
@@ -3747,7 +3745,7 @@ var Ft = { exports: {} };
|
|
|
3747
3745
|
}(function(a) {
|
|
3748
3746
|
a.EventSourcePolyfill = oe, a.NativeEventSource = d, a.EventSource = tt;
|
|
3749
3747
|
});
|
|
3750
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
3748
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : fn : globalThis);
|
|
3751
3749
|
})(Ft, Ft.exports);
|
|
3752
3750
|
var eo = Ft.exports;
|
|
3753
3751
|
const to = `
|
|
@@ -3755,35 +3753,35 @@ const to = `
|
|
|
3755
3753
|
`;
|
|
3756
3754
|
if (typeof window < "u") {
|
|
3757
3755
|
let e = function(t) {
|
|
3758
|
-
return function(...
|
|
3756
|
+
return function(...r) {
|
|
3759
3757
|
try {
|
|
3760
|
-
return t.apply(this,
|
|
3761
|
-
} catch (
|
|
3762
|
-
if (
|
|
3758
|
+
return t.apply(this, r);
|
|
3759
|
+
} catch (n) {
|
|
3760
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3763
3761
|
return !1;
|
|
3764
|
-
throw
|
|
3762
|
+
throw n;
|
|
3765
3763
|
}
|
|
3766
3764
|
};
|
|
3767
3765
|
};
|
|
3768
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsRank-
|
|
3766
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsRank-CmoOfN4B.js").then((t) => t.L).then(({ default: t }) => {
|
|
3769
3767
|
!customElements.get("casino-tournaments-rank") && customElements.define("casino-tournaments-rank", t.element);
|
|
3770
3768
|
});
|
|
3771
3769
|
}
|
|
3772
|
-
function
|
|
3773
|
-
$
|
|
3770
|
+
function ro(e) {
|
|
3771
|
+
$r(e, "svelte-8x54mj", ".casino-tournaments-slider-controller{position:relative;width:100%;background:#212223;color:#fff;display:inline-flex;padding:10px 5px;border:1px solid #ff8364;border-radius:5px;min-height:70px;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.5)}.TournamentInfo{width:calc(100% - 4px);padding:2px;display:flex;flex-direction:column;justify-content:center}.TournamentInfo .name{white-space:nowrap;width:99%;text-align:center;text-transform:capitalize;font-size:11px;margin-bottom:5px;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.TournamentInfo .TournamentNameLink{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.TournamentInfo .circle{text-align:center;height:7px;height:5px;margin-top:3px}.TournamentInfo .circle svg{color:#C4C4C4;margin:0 2px;vertical-align:top;margin-top:3px}.TournamentInfo .circle svg.active{color:white}.ArrowLeft{left:1px}.ArrowRight{right:1px}.ArrowLeft,.ArrowRight{position:absolute;cursor:pointer;top:calc(50% - 7px);margin:0px;display:flex;width:7px}.ArrowLeft.Disabled svg,.ArrowRight.Disabled svg{color:darkgrey}.ArrowLeft svg,.ArrowRight svg{vertical-align:middle;width:11px;height:11px;color:#FF8364}section#animator{position:absolute;right:0;top:0;opacity:0;display:none;cursor:pointer;text-align:center;align-items:center;flex-direction:column}section#animator .restoreButton{color:#000;display:inline-flex}casino-tournaments-rank::part(Rank),casino-tournaments-rank::part(Prize){background-color:transparent;padding:0px;margin:0px;line-height:14px}casino-tournaments-rank::part(RankText),casino-tournaments-rank::part(PrizeText){line-height:16px;margin:auto}casino-tournaments-rank::part(Rank_Arror_UP),casino-tournaments-rank::part(Rank_Arror_Down){padding:0px 3px}casino-tournaments-rank::part(PrizeText){font-weight:normal}casino-tournaments-rank::part(Rank){color:#ff8364;font-size:10px}casino-tournaments-rank::part(Prize){color:#fdd500;font-size:10px}");
|
|
3774
3772
|
}
|
|
3775
|
-
function
|
|
3776
|
-
const
|
|
3777
|
-
return
|
|
3773
|
+
function cr(e, t, r) {
|
|
3774
|
+
const n = e.slice();
|
|
3775
|
+
return n[63] = t[r], n[65] = r, n;
|
|
3778
3776
|
}
|
|
3779
|
-
function
|
|
3780
|
-
let t,
|
|
3777
|
+
function dr(e) {
|
|
3778
|
+
let t, r, n, i = (
|
|
3781
3779
|
/*$_*/
|
|
3782
3780
|
e[14]("loading") + ""
|
|
3783
3781
|
), o, f, c, d, u, l;
|
|
3784
3782
|
return {
|
|
3785
3783
|
c() {
|
|
3786
|
-
t = Y("div"),
|
|
3784
|
+
t = Y("div"), r = Y("div"), n = Y("span"), o = Er(i), f = ge(), c = Y("div"), d = Y("casino-tournaments-rank"), u = ge(), l = Y("div"), l.innerHTML = "", h(n, "part", "TournamentInfo_Name_link"), h(r, "part", "TournamentInfo_Name"), h(r, "class", "name"), J(d, "displayin", "col"), J(d, "showicon", "false"), J(d, "userrank", "-"), J(d, "prize", "-"), J(d, "overallrank", "-"), J(d, "tournamentid", ""), J(
|
|
3787
3785
|
d,
|
|
3788
3786
|
"mbsource",
|
|
3789
3787
|
/*mbsource*/
|
|
@@ -3798,15 +3796,15 @@ function dn(e) {
|
|
|
3798
3796
|
"clientstylingurl",
|
|
3799
3797
|
/*clientstylingurl*/
|
|
3800
3798
|
e[2]
|
|
3801
|
-
), h(c, "part", "TournamentInfo_Rank"), h(c, "class", "rank"), h(l, "part", "TournamentInfo_Points"), h(l, "class", "circle"), h(t, "part", "TournamentLoading"), h(t, "class", "TournamentInfo SearchLoading"),
|
|
3799
|
+
), h(c, "part", "TournamentInfo_Rank"), h(c, "class", "rank"), h(l, "part", "TournamentInfo_Points"), h(l, "class", "circle"), h(t, "part", "TournamentLoading"), h(t, "class", "TournamentInfo SearchLoading"), on(t, "height", "200px");
|
|
3802
3800
|
},
|
|
3803
3801
|
m(m, g) {
|
|
3804
|
-
qe(m, t, g), C(t,
|
|
3802
|
+
qe(m, t, g), C(t, r), C(r, n), C(n, o), C(t, f), C(t, c), C(c, d), C(t, u), C(t, l);
|
|
3805
3803
|
},
|
|
3806
3804
|
p(m, g) {
|
|
3807
3805
|
g[0] & /*$_*/
|
|
3808
3806
|
16384 && i !== (i = /*$_*/
|
|
3809
|
-
m[14]("loading") + "") &&
|
|
3807
|
+
m[14]("loading") + "") && br(o, i), g[0] & /*mbsource*/
|
|
3810
3808
|
8 && J(
|
|
3811
3809
|
d,
|
|
3812
3810
|
"mbsource",
|
|
@@ -3831,23 +3829,23 @@ function dn(e) {
|
|
|
3831
3829
|
}
|
|
3832
3830
|
};
|
|
3833
3831
|
}
|
|
3834
|
-
function
|
|
3835
|
-
let t,
|
|
3832
|
+
function pr(e) {
|
|
3833
|
+
let t, r, n, i = (
|
|
3836
3834
|
/*currentTournament*/
|
|
3837
3835
|
e[8].name + ""
|
|
3838
|
-
), o, f, c, d, u, l, m, g, S, U, T, O, I, X, H, G =
|
|
3836
|
+
), o, f, c, d, u, l, m, g, S, U, T, O, I, X, H, G = Zt(
|
|
3839
3837
|
/*tournamentList*/
|
|
3840
3838
|
e[5]
|
|
3841
3839
|
), N = [];
|
|
3842
3840
|
for (let b = 0; b < G.length; b += 1)
|
|
3843
|
-
N[b] =
|
|
3841
|
+
N[b] = Ar(cr(e, G, b));
|
|
3844
3842
|
return {
|
|
3845
3843
|
c() {
|
|
3846
|
-
t = Y("div"),
|
|
3844
|
+
t = Y("div"), r = Y("div"), n = Y("span"), o = Er(i), c = ge(), d = Y("div"), u = Y("casino-tournaments-rank"), U = ge(), T = Y("div");
|
|
3847
3845
|
for (let b = 0; b < N.length; b += 1)
|
|
3848
3846
|
N[b].c();
|
|
3849
|
-
h(
|
|
3850
|
-
e[8].name), h(
|
|
3847
|
+
h(n, "part", "TournamentInfo_Name_link"), h(n, "class", "TournamentNameLink"), h(n, "title", f = /*currentTournament*/
|
|
3848
|
+
e[8].name), h(r, "part", "TournamentInfo_Name"), h(r, "class", "name"), J(u, "displayin", "col"), J(u, "showicon", "false"), J(u, "userrank", l = /*currentTournament*/
|
|
3851
3849
|
e[8].rank), J(
|
|
3852
3850
|
u,
|
|
3853
3851
|
"mbsource",
|
|
@@ -3869,11 +3867,11 @@ function pn(e) {
|
|
|
3869
3867
|
), h(d, "part", "TournamentInfo_Rank"), h(d, "class", "rank"), h(T, "part", "TournamentInfo_Points"), h(T, "class", "circle"), h(t, "part", "TournamentInfo"), h(t, "class", "TournamentInfo");
|
|
3870
3868
|
},
|
|
3871
3869
|
m(b, B) {
|
|
3872
|
-
qe(b, t, B), C(t,
|
|
3870
|
+
qe(b, t, B), C(t, r), C(r, n), C(n, o), C(t, c), C(t, d), C(d, u), C(t, U), C(t, T);
|
|
3873
3871
|
for (let Q = 0; Q < N.length; Q += 1)
|
|
3874
3872
|
N[Q] && N[Q].m(T, null);
|
|
3875
3873
|
e[28](t), I = !0, X || (H = at(
|
|
3876
|
-
|
|
3874
|
+
n,
|
|
3877
3875
|
"click",
|
|
3878
3876
|
/*click_handler_1*/
|
|
3879
3877
|
e[27]
|
|
@@ -3882,9 +3880,9 @@ function pn(e) {
|
|
|
3882
3880
|
p(b, B) {
|
|
3883
3881
|
if ((!I || B[0] & /*currentTournament*/
|
|
3884
3882
|
256) && i !== (i = /*currentTournament*/
|
|
3885
|
-
b[8].name + "") &&
|
|
3883
|
+
b[8].name + "") && br(o, i), (!I || B[0] & /*currentTournament*/
|
|
3886
3884
|
256 && f !== (f = /*currentTournament*/
|
|
3887
|
-
b[8].name)) && h(
|
|
3885
|
+
b[8].name)) && h(n, "title", f), (!I || B[0] & /*currentTournament*/
|
|
3888
3886
|
256 && l !== (l = /*currentTournament*/
|
|
3889
3887
|
b[8].rank)) && J(u, "userrank", l), (!I || B[0] & /*mbsource*/
|
|
3890
3888
|
8) && J(
|
|
@@ -3912,14 +3910,14 @@ function pn(e) {
|
|
|
3912
3910
|
b[2]
|
|
3913
3911
|
), B[0] & /*currentTournamentIdx, tournamentList*/
|
|
3914
3912
|
96) {
|
|
3915
|
-
G =
|
|
3913
|
+
G = Zt(
|
|
3916
3914
|
/*tournamentList*/
|
|
3917
3915
|
b[5]
|
|
3918
3916
|
);
|
|
3919
3917
|
let Q;
|
|
3920
3918
|
for (Q = 0; Q < G.length; Q += 1) {
|
|
3921
|
-
const ee =
|
|
3922
|
-
N[Q] ? N[Q].p(ee, B) : (N[Q] =
|
|
3919
|
+
const ee = cr(b, G, Q);
|
|
3920
|
+
N[Q] ? N[Q].p(ee, B) : (N[Q] = Ar(ee), N[Q].c(), N[Q].m(T, null));
|
|
3923
3921
|
}
|
|
3924
3922
|
for (; Q < N.length; Q += 1)
|
|
3925
3923
|
N[Q].d(1);
|
|
@@ -3927,68 +3925,68 @@ function pn(e) {
|
|
|
3927
3925
|
}
|
|
3928
3926
|
},
|
|
3929
3927
|
i(b) {
|
|
3930
|
-
I || (b &&
|
|
3931
|
-
I && (O || (O =
|
|
3928
|
+
I || (b && an(() => {
|
|
3929
|
+
I && (O || (O = qt(t, Yt, { delay: 250, duration: 300 }, !0)), O.run(1));
|
|
3932
3930
|
}), I = !0);
|
|
3933
3931
|
},
|
|
3934
3932
|
o(b) {
|
|
3935
|
-
b && (O || (O =
|
|
3933
|
+
b && (O || (O = qt(t, Yt, { delay: 250, duration: 300 }, !1)), O.run(0)), I = !1;
|
|
3936
3934
|
},
|
|
3937
3935
|
d(b) {
|
|
3938
|
-
b && Ye(t),
|
|
3936
|
+
b && Ye(t), sn(N, b), e[28](null), b && O && O.end(), X = !1, H();
|
|
3939
3937
|
}
|
|
3940
3938
|
};
|
|
3941
3939
|
}
|
|
3942
|
-
function
|
|
3943
|
-
let t,
|
|
3940
|
+
function Ar(e) {
|
|
3941
|
+
let t, r, n;
|
|
3944
3942
|
return {
|
|
3945
3943
|
c() {
|
|
3946
|
-
t = se("svg"),
|
|
3944
|
+
t = se("svg"), r = se("circle"), h(r, "cx", "2.77888"), h(r, "cy", "2.50837"), h(r, "r", "2.28571"), h(r, "fill", "currentColor"), h(r, "stroke", "currentColor"), h(t, "class", n = /*currentTournamentIdx*/
|
|
3947
3945
|
e[6] == /*idx*/
|
|
3948
3946
|
e[65] ? "active" : ""), h(t, "width", "6"), h(t, "height", "5"), h(t, "viewBox", "0 0 6 5"), h(t, "fill", "none"), h(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
3949
3947
|
},
|
|
3950
3948
|
m(i, o) {
|
|
3951
|
-
qe(i, t, o), C(t,
|
|
3949
|
+
qe(i, t, o), C(t, r);
|
|
3952
3950
|
},
|
|
3953
3951
|
p(i, o) {
|
|
3954
3952
|
o[0] & /*currentTournamentIdx*/
|
|
3955
|
-
64 &&
|
|
3953
|
+
64 && n !== (n = /*currentTournamentIdx*/
|
|
3956
3954
|
i[6] == /*idx*/
|
|
3957
|
-
i[65] ? "active" : "") && h(t, "class",
|
|
3955
|
+
i[65] ? "active" : "") && h(t, "class", n);
|
|
3958
3956
|
},
|
|
3959
3957
|
d(i) {
|
|
3960
3958
|
i && Ye(t);
|
|
3961
3959
|
}
|
|
3962
3960
|
};
|
|
3963
3961
|
}
|
|
3964
|
-
function
|
|
3965
|
-
let t,
|
|
3962
|
+
function mr(e) {
|
|
3963
|
+
let t, r;
|
|
3966
3964
|
return {
|
|
3967
3965
|
c() {
|
|
3968
|
-
t = se("svg"),
|
|
3966
|
+
t = se("svg"), r = se("path"), h(r, "fill-rule", "evenodd"), h(r, "clip-rule", "evenodd"), h(r, "d", "M4.93488 5.75848L5.79688 4.89648L1.48689 0.586501L0.624894 1.4485L4.07278 4.89638L0.624326 8.34484L1.48632 9.20683L4.93478 5.75838L4.93488 5.75848Z"), h(t, "width", "6"), h(t, "height", "10"), h(t, "fill", "currentColor"), h(t, "viewBox", "0 0 6 10"), h(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
3969
3967
|
},
|
|
3970
|
-
m(
|
|
3971
|
-
qe(
|
|
3968
|
+
m(n, i) {
|
|
3969
|
+
qe(n, t, i), C(t, r);
|
|
3972
3970
|
},
|
|
3973
|
-
d(
|
|
3974
|
-
|
|
3971
|
+
d(n) {
|
|
3972
|
+
n && Ye(t);
|
|
3975
3973
|
}
|
|
3976
3974
|
};
|
|
3977
3975
|
}
|
|
3978
|
-
function
|
|
3979
|
-
let t,
|
|
3980
|
-
e[5] &&
|
|
3976
|
+
function no(e) {
|
|
3977
|
+
let t, r, n, i, o, f, c, d, u, l, m, g, S, U, T, O, I, X, H, G, N, b, B, Q, ee, ue, ve, D = !/*tournamentList*/
|
|
3978
|
+
e[5] && dr(e), _ = (
|
|
3981
3979
|
/*tournamentList*/
|
|
3982
3980
|
e[5] && /*tournamentList*/
|
|
3983
|
-
e[5].length > 0 &&
|
|
3981
|
+
e[5].length > 0 && pr(e)
|
|
3984
3982
|
), Z = (
|
|
3985
3983
|
/*isLast*/
|
|
3986
|
-
e[10] &&
|
|
3984
|
+
e[10] && mr()
|
|
3987
3985
|
);
|
|
3988
3986
|
return {
|
|
3989
3987
|
c() {
|
|
3990
|
-
t = Y("div"),
|
|
3991
|
-
(e[9] ? "Disabled" : "")), h(g, "fill-rule", "evenodd"), h(g, "clip-rule", "evenodd"), h(g, "d", "M4.93488 5.75848L5.79688 4.89648L1.48689 0.586501L0.624894 1.4485L4.07278 4.89638L0.624326 8.34484L1.48632 9.20683L4.93478 5.75838L4.93488 5.75848Z"), h(m, "width", "6"), h(m, "height", "10"), h(m, "fill", "currentColor"), h(m, "viewBox", "0 0 6 10"), h(m, "xmlns", "http://www.w3.org/2000/svg"), h(l, "part", "Tournaments_ArrowRight"), h(l, "class", "ArrowRight"), h(
|
|
3988
|
+
t = Y("div"), r = Y("div"), n = Y("div"), i = se("svg"), o = se("path"), c = ge(), D && D.c(), d = ge(), _ && _.c(), u = ge(), l = Y("div"), m = se("svg"), g = se("path"), S = ge(), Z && Z.c(), U = ge(), T = Y("section"), O = Y("div"), I = se("svg"), X = se("rect"), H = se("defs"), G = se("pattern"), N = se("use"), b = se("image"), Q = ge(), ee = Y("div"), ee.innerHTML = '<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>', h(o, "fill-rule", "evenodd"), h(o, "clip-rule", "evenodd"), h(o, "d", "M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"), h(i, "width", "6"), h(i, "height", "10"), h(i, "viewBox", "0 0 6 10"), h(i, "fill", "currentColor"), h(i, "xmlns", "http://www.w3.org/2000/svg"), h(n, "part", "Tournaments_ArrowLeft"), h(n, "class", f = "ArrowLeft " + /*isFirst*/
|
|
3989
|
+
(e[9] ? "Disabled" : "")), h(g, "fill-rule", "evenodd"), h(g, "clip-rule", "evenodd"), h(g, "d", "M4.93488 5.75848L5.79688 4.89648L1.48689 0.586501L0.624894 1.4485L4.07278 4.89638L0.624326 8.34484L1.48632 9.20683L4.93478 5.75838L4.93488 5.75848Z"), h(m, "width", "6"), h(m, "height", "10"), h(m, "fill", "currentColor"), h(m, "viewBox", "0 0 6 10"), h(m, "xmlns", "http://www.w3.org/2000/svg"), h(l, "part", "Tournaments_ArrowRight"), h(l, "class", "ArrowRight"), h(r, "part", "Tournaments"), h(r, "class", "casino-tournaments-slider-controller"), h(
|
|
3992
3990
|
X,
|
|
3993
3991
|
"width",
|
|
3994
3992
|
/*iconsize*/
|
|
@@ -4018,9 +4016,9 @@ function ro(e) {
|
|
|
4018
4016
|
e[0]}`), h(I, "fill", "none"), h(I, "xmlns", "http://www.w3.org/2000/svg"), h(I, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(O, "class", "svg"), h(O, "part", "Icon"), h(ee, "class", "restoreButton"), h(ee, "part", "RestoreButton"), h(T, "id", "animator"), h(T, "part", "Animator");
|
|
4019
4017
|
},
|
|
4020
4018
|
m(j, W) {
|
|
4021
|
-
qe(j, t, W), C(t,
|
|
4019
|
+
qe(j, t, W), C(t, r), C(r, n), C(n, i), C(i, o), C(r, c), D && D.m(r, null), C(r, d), _ && _.m(r, null), C(r, u), C(r, l), C(l, m), C(m, g), C(l, S), Z && Z.m(l, null), e[30](r), C(t, U), C(t, T), C(T, O), C(O, I), C(I, X), C(I, H), C(H, G), C(G, N), C(H, b), C(T, Q), C(T, ee), e[31](T), e[33](t), ue || (ve = [
|
|
4022
4020
|
at(
|
|
4023
|
-
|
|
4021
|
+
n,
|
|
4024
4022
|
"click",
|
|
4025
4023
|
/*click_handler*/
|
|
4026
4024
|
e[26]
|
|
@@ -4042,14 +4040,14 @@ function ro(e) {
|
|
|
4042
4040
|
p(j, W) {
|
|
4043
4041
|
W[0] & /*isFirst*/
|
|
4044
4042
|
512 && f !== (f = "ArrowLeft " + /*isFirst*/
|
|
4045
|
-
(j[9] ? "Disabled" : "")) && h(
|
|
4046
|
-
j[5] ? D && (D.d(1), D = null) : D ? D.p(j, W) : (D =
|
|
4043
|
+
(j[9] ? "Disabled" : "")) && h(n, "class", f), /*tournamentList*/
|
|
4044
|
+
j[5] ? D && (D.d(1), D = null) : D ? D.p(j, W) : (D = dr(j), D.c(), D.m(r, d)), /*tournamentList*/
|
|
4047
4045
|
j[5] && /*tournamentList*/
|
|
4048
4046
|
j[5].length > 0 ? _ ? (_.p(j, W), W[0] & /*tournamentList*/
|
|
4049
|
-
32 && wt(_, 1)) : (_ =
|
|
4047
|
+
32 && wt(_, 1)) : (_ = pr(j), _.c(), wt(_, 1), _.m(r, u)) : _ && (un(), zt(_, 1, 1, () => {
|
|
4050
4048
|
_ = null;
|
|
4051
|
-
}),
|
|
4052
|
-
j[10] ? Z || (Z =
|
|
4049
|
+
}), en()), /*isLast*/
|
|
4050
|
+
j[10] ? Z || (Z = mr(), Z.c(), Z.m(l, null)) : Z && (Z.d(1), Z = null), W[0] & /*iconsize*/
|
|
4053
4051
|
1 && h(
|
|
4054
4052
|
X,
|
|
4055
4053
|
"width",
|
|
@@ -4088,33 +4086,33 @@ function ro(e) {
|
|
|
4088
4086
|
wt(_);
|
|
4089
4087
|
},
|
|
4090
4088
|
o(j) {
|
|
4091
|
-
|
|
4089
|
+
zt(_);
|
|
4092
4090
|
},
|
|
4093
4091
|
d(j) {
|
|
4094
|
-
j && Ye(t), D && D.d(), _ && _.d(), Z && Z.d(), e[30](null), e[31](null), e[33](null), ue = !1,
|
|
4092
|
+
j && Ye(t), D && D.d(), _ && _.d(), Z && Z.d(), e[30](null), e[31](null), e[33](null), ue = !1, gr(ve);
|
|
4095
4093
|
}
|
|
4096
4094
|
};
|
|
4097
4095
|
}
|
|
4098
4096
|
let Rt = 1, St = 300;
|
|
4099
|
-
function io(e, t,
|
|
4100
|
-
let
|
|
4101
|
-
|
|
4097
|
+
function io(e, t, r) {
|
|
4098
|
+
let n, i;
|
|
4099
|
+
tn(e, Wi, (s) => r(14, i = s));
|
|
4102
4100
|
let { session: o = "" } = t, { endpoint: f = "" } = t, { lang: c = "en" } = t, { tournamentsshownnumber: d = 5 } = t, { looptime: u = "5" } = t, { iconsize: l = "9" } = t, { icon: m = "" } = t, { clientstyling: g = "" } = t, { clientstylingurl: S = "" } = t, { translationurl: U = "" } = t, { mbsource: T } = t, O, I = [], X, H = 0, G = !0, N = !1, b, B, Q = null, ee = null, ue, ve = !1, D, _;
|
|
4103
4101
|
Ki({ withLocale: "en", translations: {} });
|
|
4104
4102
|
const Z = () => {
|
|
4105
4103
|
fetch(U).then((y) => y.json()).then((y) => {
|
|
4106
4104
|
Object.keys(y).forEach((E) => {
|
|
4107
|
-
|
|
4105
|
+
hr(E, y[E]);
|
|
4108
4106
|
});
|
|
4109
4107
|
}).catch((y) => {
|
|
4110
4108
|
console.log(y);
|
|
4111
4109
|
});
|
|
4112
4110
|
};
|
|
4113
|
-
Object.keys(
|
|
4114
|
-
|
|
4111
|
+
Object.keys(fr).forEach((s) => {
|
|
4112
|
+
hr(s, fr[s]);
|
|
4115
4113
|
});
|
|
4116
4114
|
const j = (s) => {
|
|
4117
|
-
s.data && s.data.type == "TournamentList" &&
|
|
4115
|
+
s.data && s.data.type == "TournamentList" && r(5, I = s.data.tournamentList);
|
|
4118
4116
|
}, W = () => {
|
|
4119
4117
|
o.length > 0 && o != "false";
|
|
4120
4118
|
}, me = () => {
|
|
@@ -4122,7 +4120,7 @@ function io(e, t, n) {
|
|
|
4122
4120
|
}, Ie = () => {
|
|
4123
4121
|
I.length !== 0 && (ce.curTournament.hide(), setTimeout(
|
|
4124
4122
|
() => {
|
|
4125
|
-
|
|
4123
|
+
r(6, H = (H + 1) % I.length), ce.curTournament.show();
|
|
4126
4124
|
},
|
|
4127
4125
|
St * 1.5
|
|
4128
4126
|
));
|
|
@@ -4136,42 +4134,42 @@ function io(e, t, n) {
|
|
|
4136
4134
|
}, Ee = (s) => {
|
|
4137
4135
|
ce.curTournament.hide(), xe(), s > 0 && N && mt(), !(s > 0 && N || s < 0 && G) && setTimeout(
|
|
4138
4136
|
() => {
|
|
4139
|
-
|
|
4137
|
+
r(6, H = H + s), ce.curTournament.show();
|
|
4140
4138
|
},
|
|
4141
4139
|
St * 1.5
|
|
4142
4140
|
);
|
|
4143
4141
|
}, de = (s) => setTimeout(() => s(), Rt * 1e3), ce = {
|
|
4144
4142
|
icon: {
|
|
4145
4143
|
init() {
|
|
4146
|
-
|
|
4144
|
+
r(11, D.style.transition = `all ${Rt}s ease-in-out`, D);
|
|
4147
4145
|
},
|
|
4148
4146
|
show() {
|
|
4149
|
-
|
|
4147
|
+
r(11, D.style.display = "flex", D), de(() => r(11, D.style.opacity = "1", D));
|
|
4150
4148
|
},
|
|
4151
4149
|
hide() {
|
|
4152
|
-
|
|
4150
|
+
r(11, D.style.display = "none", D), r(11, D.style.opacity = "0", D);
|
|
4153
4151
|
}
|
|
4154
4152
|
},
|
|
4155
4153
|
slider: {
|
|
4156
4154
|
init() {
|
|
4157
|
-
|
|
4155
|
+
r(7, B.style.transition = `all ${Rt}s ease-in-out`, B);
|
|
4158
4156
|
},
|
|
4159
4157
|
show() {
|
|
4160
|
-
|
|
4158
|
+
r(7, B.style.opacity = "1", B), r(7, B.style.transform = null, B), document.querySelector("body").style["overflow-x"] = "hidden";
|
|
4161
4159
|
},
|
|
4162
4160
|
hide() {
|
|
4163
|
-
this.init(),
|
|
4161
|
+
this.init(), r(7, B.style.opacity = "0", B), r(7, B.style.transform = `translateX(${B.clientWidth + 20}px)`, B), de(() => document.querySelector("body").setAttribute("style", null));
|
|
4164
4162
|
}
|
|
4165
4163
|
},
|
|
4166
4164
|
curTournament: {
|
|
4167
4165
|
init() {
|
|
4168
|
-
|
|
4166
|
+
r(12, _.style.transition = `all ${St}ms linear`, _);
|
|
4169
4167
|
},
|
|
4170
4168
|
show() {
|
|
4171
|
-
|
|
4169
|
+
r(12, _.style.opacity = "1", _);
|
|
4172
4170
|
},
|
|
4173
4171
|
hide() {
|
|
4174
|
-
this.init(),
|
|
4172
|
+
this.init(), r(12, _.style.opacity = "0", _);
|
|
4175
4173
|
}
|
|
4176
4174
|
}
|
|
4177
4175
|
}, je = () => {
|
|
@@ -4205,7 +4203,7 @@ function io(e, t, n) {
|
|
|
4205
4203
|
}
|
|
4206
4204
|
},
|
|
4207
4205
|
window.location.href
|
|
4208
|
-
),
|
|
4206
|
+
), r(5, I[E] = y, I);
|
|
4209
4207
|
}, Ce = (s) => {
|
|
4210
4208
|
if (s.data)
|
|
4211
4209
|
try {
|
|
@@ -4247,15 +4245,15 @@ function io(e, t, n) {
|
|
|
4247
4245
|
$e(s.searchParams, 0, d), o && y.append("X-SessionID", o), fetch(s, { method: "GET", headers: y }).then((P) => P.json()).then((P) => {
|
|
4248
4246
|
if (!P.items)
|
|
4249
4247
|
return;
|
|
4250
|
-
|
|
4248
|
+
r(5, I = []), P.items.forEach((Re, ae) => {
|
|
4251
4249
|
I.push(We(Re));
|
|
4252
|
-
}),
|
|
4250
|
+
}), r(8, X = I[H]), vt(), xe();
|
|
4253
4251
|
});
|
|
4254
4252
|
};
|
|
4255
4253
|
let a = !1;
|
|
4256
|
-
|
|
4254
|
+
rn(() => (r(25, a = !0), window.addEventListener("message", j, !1), setTimeout(
|
|
4257
4255
|
() => {
|
|
4258
|
-
|
|
4256
|
+
r(18, c = "tr");
|
|
4259
4257
|
},
|
|
4260
4258
|
5e3
|
|
4261
4259
|
), () => {
|
|
@@ -4264,43 +4262,43 @@ function io(e, t, n) {
|
|
|
4264
4262
|
const A = () => Ee(-1), v = () => Ke(X.id);
|
|
4265
4263
|
function p(s) {
|
|
4266
4264
|
it[s ? "unshift" : "push"](() => {
|
|
4267
|
-
_ = s,
|
|
4265
|
+
_ = s, r(12, _);
|
|
4268
4266
|
});
|
|
4269
4267
|
}
|
|
4270
4268
|
const x = () => Ee(1);
|
|
4271
4269
|
function w(s) {
|
|
4272
4270
|
it[s ? "unshift" : "push"](() => {
|
|
4273
|
-
B = s,
|
|
4271
|
+
B = s, r(7, B);
|
|
4274
4272
|
});
|
|
4275
4273
|
}
|
|
4276
4274
|
function R(s) {
|
|
4277
4275
|
it[s ? "unshift" : "push"](() => {
|
|
4278
|
-
D = s,
|
|
4276
|
+
D = s, r(11, D);
|
|
4279
4277
|
});
|
|
4280
4278
|
}
|
|
4281
4279
|
const z = () => je();
|
|
4282
4280
|
function L(s) {
|
|
4283
4281
|
it[s ? "unshift" : "push"](() => {
|
|
4284
|
-
O = s,
|
|
4282
|
+
O = s, r(4, O);
|
|
4285
4283
|
});
|
|
4286
4284
|
}
|
|
4287
4285
|
return e.$$set = (s) => {
|
|
4288
|
-
"session" in s &&
|
|
4286
|
+
"session" in s && r(19, o = s.session), "endpoint" in s && r(20, f = s.endpoint), "lang" in s && r(18, c = s.lang), "tournamentsshownnumber" in s && r(21, d = s.tournamentsshownnumber), "looptime" in s && r(22, u = s.looptime), "iconsize" in s && r(0, l = s.iconsize), "icon" in s && r(23, m = s.icon), "clientstyling" in s && r(1, g = s.clientstyling), "clientstylingurl" in s && r(2, S = s.clientstylingurl), "translationurl" in s && r(24, U = s.translationurl), "mbsource" in s && r(3, T = s.mbsource);
|
|
4289
4287
|
}, e.$$.update = () => {
|
|
4290
4288
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4291
|
-
18 && g && O &&
|
|
4292
|
-
20 && S && O &&
|
|
4293
|
-
24 && T && O &&
|
|
4294
|
-
24 && T && O &&
|
|
4295
|
-
8388608 &&
|
|
4289
|
+
18 && g && O && ln(O, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4290
|
+
20 && S && O && nn(O, S), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4291
|
+
24 && T && O && Vt(O, `${T}.Style`), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4292
|
+
24 && T && O && Vt(O, `${T}.Style`), e.$$.dirty[0] & /*icon*/
|
|
4293
|
+
8388608 && r(13, n = m || to), e.$$.dirty[0] & /*isMounted, endpoint, tournamentsshownnumber, lang*/
|
|
4296
4294
|
36962304 && a && f && d && c && tt(), e.$$.dirty[0] & /*tourSlider*/
|
|
4297
4295
|
128 && B && gt(), e.$$.dirty[0] & /*session*/
|
|
4298
4296
|
524288 && o && W(), e.$$.dirty[0] & /*lang*/
|
|
4299
4297
|
262144 && c && me(), e.$$.dirty[0] & /*translationurl*/
|
|
4300
4298
|
16777216 && U && Z(), e.$$.dirty[0] & /*tournamentList, currentTournamentIdx*/
|
|
4301
|
-
96 &&
|
|
4302
|
-
96 &&
|
|
4303
|
-
64 &&
|
|
4299
|
+
96 && r(8, X = I[H]), e.$$.dirty[0] & /*currentTournamentIdx, tournamentList*/
|
|
4300
|
+
96 && r(10, N = H == I.length - 1), e.$$.dirty[0] & /*currentTournamentIdx*/
|
|
4301
|
+
64 && r(9, G = H == 0);
|
|
4304
4302
|
}, [
|
|
4305
4303
|
l,
|
|
4306
4304
|
g,
|
|
@@ -4315,7 +4313,7 @@ function io(e, t, n) {
|
|
|
4315
4313
|
N,
|
|
4316
4314
|
D,
|
|
4317
4315
|
_,
|
|
4318
|
-
|
|
4316
|
+
n,
|
|
4319
4317
|
i,
|
|
4320
4318
|
Ee,
|
|
4321
4319
|
je,
|
|
@@ -4338,14 +4336,14 @@ function io(e, t, n) {
|
|
|
4338
4336
|
L
|
|
4339
4337
|
];
|
|
4340
4338
|
}
|
|
4341
|
-
class oo extends
|
|
4339
|
+
class oo extends Wr {
|
|
4342
4340
|
constructor(t) {
|
|
4343
|
-
super(),
|
|
4341
|
+
super(), Kr(
|
|
4344
4342
|
this,
|
|
4345
4343
|
t,
|
|
4346
4344
|
io,
|
|
4347
|
-
|
|
4348
|
-
|
|
4345
|
+
no,
|
|
4346
|
+
vr,
|
|
4349
4347
|
{
|
|
4350
4348
|
session: 19,
|
|
4351
4349
|
endpoint: 20,
|
|
@@ -4359,7 +4357,7 @@ class oo extends Wn {
|
|
|
4359
4357
|
translationurl: 24,
|
|
4360
4358
|
mbsource: 3
|
|
4361
4359
|
},
|
|
4362
|
-
|
|
4360
|
+
ro,
|
|
4363
4361
|
[-1, -1, -1]
|
|
4364
4362
|
);
|
|
4365
4363
|
}
|
|
@@ -4430,7 +4428,7 @@ class oo extends Wn {
|
|
|
4430
4428
|
this.$$set({ mbsource: t }), Ae();
|
|
4431
4429
|
}
|
|
4432
4430
|
}
|
|
4433
|
-
|
|
4431
|
+
Yr(oo, { session: {}, endpoint: {}, lang: {}, tournamentsshownnumber: {}, looptime: {}, iconsize: {}, icon: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4434
4432
|
export {
|
|
4435
4433
|
oo as C
|
|
4436
4434
|
};
|