@everymatrix/casino-tournaments-thumbnail 1.65.3 → 1.66.1
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/{CasinoTournamentsThumbnail-yvPUnBTq.js → CasinoTournamentsThumbnail-C4ZApuHe.js} +822 -814
- package/components/CasinoTournamentsThumbnail-DCHi9Fyd.cjs +6 -0
- package/components/{CasinoTournamentsThumbnail-CaOt9UtO.js → CasinoTournamentsThumbnail-LcJEuWUZ.js} +902 -894
- package/es2015/casino-tournaments-thumbnail.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail.js +1 -1
- package/esnext/casino-tournaments-thumbnail.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/index-b2193545-BOMvxBzV.js +519 -0
- package/stencil/index-b2193545-CFn9dM-v.js +503 -0
- package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
- package/stencil/{ui-image-ClXqMGwp.js → ui-image-3hy4ZvUC.js} +1 -1
- package/stencil/{ui-image-YphrYZtA.js → ui-image-D0wxuPze.js} +1 -1
- package/stencil/{ui-image-Db5QCSmt.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-bf7NJcVF.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-nmwFu55Y.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-U47XWOV2.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
- package/stencil/{ui-skeleton-DSlZCsjK.js → ui-skeleton-CVBjRUvi.js} +2 -2
- package/stencil/{ui-skeleton-P9Vv-0Vy.js → ui-skeleton-RkXNxPG1.js} +2 -2
- package/stencil/{ui-skeleton-DXCQ8Yoq.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
- package/components/CasinoTournamentsThumbnail-FrytwrLA.cjs +0 -19
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
- package/stencil/index-b2193545-C1ayEiG4.js +0 -503
- package/stencil/index-b2193545-CyidmLE0.cjs +0 -1
- package/stencil/index-b2193545-s3PsNboB.js +0 -519
package/components/{CasinoTournamentsThumbnail-yvPUnBTq.js → CasinoTournamentsThumbnail-C4ZApuHe.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var br = Object.defineProperty, gr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, r) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
yr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
_r.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, ot = (e, t) => gr(e, pr(t));
|
|
13
|
+
var k = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ut = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
@@ -27,58 +27,58 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
31
|
-
import "../stencil/ui-image-
|
|
32
|
-
function
|
|
30
|
+
import "../stencil/ui-skeleton-CVBjRUvi.js";
|
|
31
|
+
import "../stencil/ui-image-3hy4ZvUC.js";
|
|
32
|
+
function U() {
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Pt(e) {
|
|
35
35
|
return e();
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function lt() {
|
|
38
38
|
return /* @__PURE__ */ Object.create(null);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
e.forEach(
|
|
40
|
+
function se(e) {
|
|
41
|
+
e.forEach(Pt);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function be(e) {
|
|
44
44
|
return typeof e == "function";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Mt(e, t) {
|
|
47
47
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
48
48
|
}
|
|
49
|
-
let
|
|
50
|
-
function
|
|
51
|
-
return e === t ? !0 : (
|
|
49
|
+
let pe;
|
|
50
|
+
function $e(e, t) {
|
|
51
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Er(e) {
|
|
54
54
|
return Object.keys(e).length === 0;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Lt(e, ...t) {
|
|
57
57
|
if (e == null) {
|
|
58
58
|
for (const n of t)
|
|
59
59
|
n(void 0);
|
|
60
|
-
return
|
|
60
|
+
return U;
|
|
61
61
|
}
|
|
62
62
|
const r = e.subscribe(...t);
|
|
63
63
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
e.$$.on_destroy.push(
|
|
65
|
+
function vr(e, t, r) {
|
|
66
|
+
e.$$.on_destroy.push(Lt(t, r));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return e &&
|
|
68
|
+
function ge(e) {
|
|
69
|
+
return e && be(e.destroy) ? e.destroy : U;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function x(e, t) {
|
|
72
72
|
e.appendChild(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const n =
|
|
74
|
+
function xr(e, t, r) {
|
|
75
|
+
const n = Sr(e);
|
|
76
76
|
if (!n.getElementById(t)) {
|
|
77
77
|
const i = B("style");
|
|
78
|
-
i.id = t, i.textContent = r,
|
|
78
|
+
i.id = t, i.textContent = r, Tr(n, i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Sr(e) {
|
|
82
82
|
if (!e)
|
|
83
83
|
return document;
|
|
84
84
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -88,8 +88,8 @@ function vr(e) {
|
|
|
88
88
|
t
|
|
89
89
|
) : e.ownerDocument;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function Tr(e, t) {
|
|
92
|
+
return x(
|
|
93
93
|
/** @type {Document} */
|
|
94
94
|
e.head || e,
|
|
95
95
|
t
|
|
@@ -98,7 +98,7 @@ function Sr(e, t) {
|
|
|
98
98
|
function O(e, t, r) {
|
|
99
99
|
e.insertBefore(t, r || null);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function I(e) {
|
|
102
102
|
e.parentNode && e.parentNode.removeChild(e);
|
|
103
103
|
}
|
|
104
104
|
function B(e) {
|
|
@@ -110,27 +110,27 @@ function L(e) {
|
|
|
110
110
|
function j() {
|
|
111
111
|
return L(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ar() {
|
|
114
114
|
return L("");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Hr(e, t, r, n) {
|
|
117
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
118
118
|
}
|
|
119
119
|
function p(e, t, r) {
|
|
120
120
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function K(e, t, r) {
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
124
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : p(e, t, r);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Cr(e) {
|
|
127
127
|
return Array.from(e.childNodes);
|
|
128
128
|
}
|
|
129
129
|
function $(e, t) {
|
|
130
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
131
131
|
t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Br(e) {
|
|
134
134
|
const t = {};
|
|
135
135
|
return e.childNodes.forEach(
|
|
136
136
|
/** @param {Element} node */
|
|
@@ -139,95 +139,95 @@ function Cr(e) {
|
|
|
139
139
|
}
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
let ce;
|
|
143
|
+
function fe(e) {
|
|
144
|
+
ce = e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
if (!
|
|
146
|
+
function wr() {
|
|
147
|
+
if (!ce)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
|
-
return
|
|
149
|
+
return ce;
|
|
150
150
|
}
|
|
151
151
|
function Ir(e) {
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
function
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
152
|
+
wr().$$.on_mount.push(e);
|
|
153
|
+
}
|
|
154
|
+
const Y = [], je = [];
|
|
155
|
+
let ee = [];
|
|
156
|
+
const ht = [], Nr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let Ve = !1;
|
|
158
|
+
function Or() {
|
|
159
|
+
Ve || (Ve = !0, Nr.then(w));
|
|
160
|
+
}
|
|
161
|
+
function Je(e) {
|
|
162
|
+
ee.push(e);
|
|
163
|
+
}
|
|
164
|
+
const Le = /* @__PURE__ */ new Set();
|
|
165
|
+
let q = 0;
|
|
166
|
+
function w() {
|
|
167
|
+
if (q !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const e =
|
|
169
|
+
const e = ce;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const t =
|
|
174
|
-
|
|
172
|
+
for (; q < Y.length; ) {
|
|
173
|
+
const t = Y[q];
|
|
174
|
+
q++, fe(t), Pr(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
|
-
throw
|
|
177
|
+
throw Y.length = 0, q = 0, t;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
|
|
181
|
-
for (let t = 0; t <
|
|
182
|
-
const r =
|
|
183
|
-
|
|
179
|
+
for (fe(null), Y.length = 0, q = 0; je.length; )
|
|
180
|
+
je.pop()();
|
|
181
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
182
|
+
const r = ee[t];
|
|
183
|
+
Le.has(r) || (Le.add(r), r());
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
} while (
|
|
187
|
-
for (;
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
ee.length = 0;
|
|
186
|
+
} while (Y.length);
|
|
187
|
+
for (; ht.length; )
|
|
188
|
+
ht.pop()();
|
|
189
|
+
Ve = !1, Le.clear(), fe(e);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Pr(e) {
|
|
192
192
|
if (e.fragment !== null) {
|
|
193
|
-
e.update(),
|
|
193
|
+
e.update(), se(e.before_update);
|
|
194
194
|
const t = e.dirty;
|
|
195
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Mr(e) {
|
|
199
199
|
const t = [], r = [];
|
|
200
|
-
|
|
200
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const Lr = /* @__PURE__ */ new Set();
|
|
203
203
|
function Rr(e, t) {
|
|
204
|
-
e && e.i && (
|
|
204
|
+
e && e.i && (Lr.delete(e), e.i(t));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Dr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Je(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Pt).filter(be);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Je);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function kr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (Mr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
function Ur(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const l =
|
|
222
|
-
|
|
220
|
+
function Fr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
221
|
+
const l = ce;
|
|
222
|
+
fe(e);
|
|
223
223
|
const o = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
226
226
|
// state
|
|
227
227
|
props: s,
|
|
228
|
-
update:
|
|
228
|
+
update: U,
|
|
229
229
|
not_equal: i,
|
|
230
|
-
bound:
|
|
230
|
+
bound: lt(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,48 +236,48 @@ function Ur(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
239
|
+
callbacks: lt(),
|
|
240
240
|
dirty: u,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || l.$$.root
|
|
243
243
|
};
|
|
244
244
|
a && a(o.root);
|
|
245
245
|
let h = !1;
|
|
246
|
-
if (o.ctx = r(e, t.props || {}, (
|
|
246
|
+
if (o.ctx = r ? r(e, t.props || {}, (m, f, ...g) => {
|
|
247
247
|
const b = g.length ? g[0] : f;
|
|
248
|
-
return o.ctx && i(o.ctx[
|
|
249
|
-
}), o.update(), h = !0,
|
|
248
|
+
return o.ctx && i(o.ctx[m], o.ctx[m] = b) && (!o.skip_bound && o.bound[m] && o.bound[m](b), h && Ur(e, m)), f;
|
|
249
|
+
}) : [], o.update(), h = !0, se(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const
|
|
252
|
-
o.fragment && o.fragment.l(
|
|
251
|
+
const m = Cr(t.target);
|
|
252
|
+
o.fragment && o.fragment.l(m), m.forEach(I);
|
|
253
253
|
} else
|
|
254
254
|
o.fragment && o.fragment.c();
|
|
255
|
-
t.intro && Rr(e.$$.fragment),
|
|
255
|
+
t.intro && Rr(e.$$.fragment), Dr(e, t.target, t.anchor), w();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
fe(l);
|
|
258
258
|
}
|
|
259
259
|
let Rt;
|
|
260
260
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
264
|
-
|
|
264
|
+
k(this, "$$ctor");
|
|
265
265
|
/** Slots */
|
|
266
|
-
|
|
266
|
+
k(this, "$$s");
|
|
267
267
|
/** The Svelte component instance */
|
|
268
|
-
|
|
268
|
+
k(this, "$$c");
|
|
269
269
|
/** Whether or not the custom element is connected */
|
|
270
|
-
|
|
270
|
+
k(this, "$$cn", !1);
|
|
271
271
|
/** Component props data */
|
|
272
|
-
|
|
272
|
+
k(this, "$$d", {});
|
|
273
273
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
274
|
-
|
|
274
|
+
k(this, "$$r", !1);
|
|
275
275
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
276
|
-
|
|
276
|
+
k(this, "$$p_d", {});
|
|
277
277
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
278
|
-
|
|
278
|
+
k(this, "$$l", {});
|
|
279
279
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
|
-
|
|
280
|
+
k(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
281
281
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
282
282
|
}
|
|
283
283
|
addEventListener(t, r, n) {
|
|
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return ut(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(s) {
|
|
300
300
|
return () => {
|
|
@@ -311,25 +311,25 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
311
311
|
O(o, a, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(o) {
|
|
314
|
-
o &&
|
|
314
|
+
o && I(a);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, n =
|
|
321
|
+
const r = {}, n = Br(this);
|
|
322
322
|
for (const s of this.$$s)
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const a = this.$$g_p(s.name);
|
|
326
|
-
a in this.$$d || (this.$$d[a] =
|
|
326
|
+
a in this.$$d || (this.$$d[a] = _e(a, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props: at(
|
|
332
|
+
props: ot(at({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const a =
|
|
343
|
+
const a = _e(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function _e(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -407,7 +407,7 @@ function ye(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Gr(e, t, r, n, i, s) {
|
|
411
411
|
let a = class extends Rt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -425,7 +425,7 @@ function Fr(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(l) {
|
|
427
427
|
var o;
|
|
428
|
-
l =
|
|
428
|
+
l = _e(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
@@ -438,7 +438,7 @@ function Fr(e, t, r, n, i, s) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
a, a;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class $r {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -447,7 +447,7 @@ class Gr {
|
|
|
447
447
|
*
|
|
448
448
|
* @type {any}
|
|
449
449
|
*/
|
|
450
|
-
|
|
450
|
+
k(this, "$$");
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -455,11 +455,11 @@ class Gr {
|
|
|
455
455
|
*
|
|
456
456
|
* @type {any}
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
k(this, "$$set");
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
kr(this, 1), this.$destroy = U;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,8 +468,8 @@ class Gr {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
472
|
-
return
|
|
471
|
+
if (!be(r))
|
|
472
|
+
return U;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
475
475
|
const i = n.indexOf(r);
|
|
@@ -481,60 +481,60 @@ class Gr {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
const
|
|
490
|
-
function
|
|
487
|
+
const jr = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
489
|
+
const Q = [];
|
|
490
|
+
function Vr(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: Ae(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Ae(e, t = U) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
500
|
-
const l = !
|
|
499
|
+
if (Mt(e, u) && (e = u, r)) {
|
|
500
|
+
const l = !Q.length;
|
|
501
501
|
for (const o of n)
|
|
502
|
-
o[1](),
|
|
502
|
+
o[1](), Q.push(o, e);
|
|
503
503
|
if (l) {
|
|
504
|
-
for (let o = 0; o <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let o = 0; o < Q.length; o += 2)
|
|
505
|
+
Q[o][0](Q[o + 1]);
|
|
506
|
+
Q.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
function s(u) {
|
|
511
511
|
i(u(e));
|
|
512
512
|
}
|
|
513
|
-
function a(u, l =
|
|
513
|
+
function a(u, l = U) {
|
|
514
514
|
const o = [u, l];
|
|
515
|
-
return n.add(o), n.size === 1 && (r = t(i, s) ||
|
|
515
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || U), u(e), () => {
|
|
516
516
|
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: a };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ae(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const s = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return Vr(r, (a, u) => {
|
|
527
527
|
let l = !1;
|
|
528
528
|
const o = [];
|
|
529
|
-
let h = 0,
|
|
529
|
+
let h = 0, m = U;
|
|
530
530
|
const f = () => {
|
|
531
531
|
if (h)
|
|
532
532
|
return;
|
|
533
|
-
|
|
533
|
+
m();
|
|
534
534
|
const b = t(n ? o[0] : o, a, u);
|
|
535
|
-
s ? a(b) :
|
|
535
|
+
s ? a(b) : m = be(b) ? b : U;
|
|
536
536
|
}, g = i.map(
|
|
537
|
-
(b, y) =>
|
|
537
|
+
(b, y) => Lt(
|
|
538
538
|
b,
|
|
539
539
|
(d) => {
|
|
540
540
|
o[y] = d, h &= ~(1 << y), l && f();
|
|
@@ -545,126 +545,112 @@ function se(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return l = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
se(g), m(), l = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
552
|
+
function Jr(e) {
|
|
553
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
return
|
|
555
|
+
var zr = function(t) {
|
|
556
|
+
return Wr(t) && !Xr(t);
|
|
557
557
|
};
|
|
558
|
-
function
|
|
558
|
+
function Wr(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Xr(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
564
|
-
}
|
|
565
|
-
var Xr = typeof Symbol == "function" && Symbol.for, Zr = Xr ? Symbol.for("react.element") : 60103;
|
|
566
|
-
function qr(e) {
|
|
567
|
-
return e.$$typeof === Zr;
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
568
564
|
}
|
|
565
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
569
566
|
function Qr(e) {
|
|
567
|
+
return e.$$typeof === qr;
|
|
568
|
+
}
|
|
569
|
+
function Yr(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function me(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Yr(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Kr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return me(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function en(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return te;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : te;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function tn(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function ft(e) {
|
|
592
|
+
return Object.keys(e).concat(tn(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Dt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function rn(e, t) {
|
|
602
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function nn(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
n[i] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
607
|
+
n[i] = me(e[i], r);
|
|
608
|
+
}), ft(t).forEach(function(i) {
|
|
609
|
+
rn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function te(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = me;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : me(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
te.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return te(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
-
purpose with or without fee is hereby granted.
|
|
631
|
-
|
|
632
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
-
***************************************************************************** */
|
|
640
|
-
var je = function(e, t) {
|
|
641
|
-
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
624
|
+
var sn = te, an = sn;
|
|
625
|
+
const on = /* @__PURE__ */ Jr(an);
|
|
626
|
+
var ze = function(e, t) {
|
|
627
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
642
628
|
r.__proto__ = n;
|
|
643
629
|
} || function(r, n) {
|
|
644
630
|
for (var i in n)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
646
|
-
},
|
|
632
|
+
}, ze(e, t);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function He(e, t) {
|
|
649
635
|
if (typeof t != "function" && t !== null)
|
|
650
636
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
|
-
|
|
637
|
+
ze(e, t);
|
|
652
638
|
function r() {
|
|
653
639
|
this.constructor = e;
|
|
654
640
|
}
|
|
655
641
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
656
642
|
}
|
|
657
|
-
var
|
|
658
|
-
return
|
|
643
|
+
var V = function() {
|
|
644
|
+
return V = Object.assign || function(t) {
|
|
659
645
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
660
646
|
r = arguments[n];
|
|
661
647
|
for (var s in r)
|
|
662
648
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
663
649
|
}
|
|
664
650
|
return t;
|
|
665
|
-
},
|
|
651
|
+
}, V.apply(this, arguments);
|
|
666
652
|
};
|
|
667
|
-
function
|
|
653
|
+
function un(e, t) {
|
|
668
654
|
var r = {};
|
|
669
655
|
for (var n in e)
|
|
670
656
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -673,46 +659,43 @@ function on(e, t) {
|
|
|
673
659
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
674
660
|
return r;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
if (arguments.length === 2)
|
|
662
|
+
function Re(e, t, r) {
|
|
663
|
+
if (r || arguments.length === 2)
|
|
678
664
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
679
665
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
680
|
-
return e.concat(s || t);
|
|
666
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
681
667
|
}
|
|
682
|
-
function
|
|
683
|
-
var r = t && t.cache ? t.cache :
|
|
668
|
+
function De(e, t) {
|
|
669
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
|
|
684
670
|
return i(e, {
|
|
685
671
|
cache: r,
|
|
686
672
|
serializer: n
|
|
687
673
|
});
|
|
688
674
|
}
|
|
689
|
-
function
|
|
675
|
+
function ln(e) {
|
|
690
676
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
677
|
}
|
|
692
|
-
function
|
|
693
|
-
var i =
|
|
678
|
+
function hn(e, t, r, n) {
|
|
679
|
+
var i = ln(n) ? n : r(n), s = t.get(i);
|
|
694
680
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
695
681
|
}
|
|
696
682
|
function kt(e, t, r) {
|
|
697
683
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
698
684
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
699
685
|
}
|
|
700
|
-
function
|
|
686
|
+
function Ut(e, t, r, n, i) {
|
|
701
687
|
return r.bind(t, e, n, i);
|
|
702
688
|
}
|
|
703
|
-
function ln(e, t) {
|
|
704
|
-
var r = e.length === 1 ? Dt : kt;
|
|
705
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
-
}
|
|
707
|
-
function hn(e, t) {
|
|
708
|
-
return Ye(e, this, kt, t.cache.create(), t.serializer);
|
|
709
|
-
}
|
|
710
689
|
function fn(e, t) {
|
|
711
|
-
|
|
690
|
+
var r = e.length === 1 ? hn : kt;
|
|
691
|
+
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
712
692
|
}
|
|
713
|
-
|
|
693
|
+
function cn(e, t) {
|
|
694
|
+
return Ut(e, this, kt, t.cache.create(), t.serializer);
|
|
695
|
+
}
|
|
696
|
+
var mn = function() {
|
|
714
697
|
return JSON.stringify(arguments);
|
|
715
|
-
},
|
|
698
|
+
}, dn = (
|
|
716
699
|
/** @class */
|
|
717
700
|
function() {
|
|
718
701
|
function e() {
|
|
@@ -724,62 +707,71 @@ var cn = function() {
|
|
|
724
707
|
this.cache[t] = r;
|
|
725
708
|
}, e;
|
|
726
709
|
}()
|
|
727
|
-
),
|
|
710
|
+
), bn = {
|
|
728
711
|
create: function() {
|
|
729
|
-
return new
|
|
712
|
+
return new dn();
|
|
730
713
|
}
|
|
731
|
-
},
|
|
732
|
-
variadic:
|
|
733
|
-
|
|
734
|
-
|
|
714
|
+
}, ke = {
|
|
715
|
+
variadic: cn
|
|
716
|
+
}, xe = function() {
|
|
717
|
+
return xe = Object.assign || function(t) {
|
|
718
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
+
r = arguments[n];
|
|
720
|
+
for (var s in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}, xe.apply(this, arguments);
|
|
725
|
+
};
|
|
726
|
+
var _;
|
|
735
727
|
(function(e) {
|
|
736
728
|
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";
|
|
737
729
|
})(_ || (_ = {}));
|
|
738
|
-
var
|
|
730
|
+
var S;
|
|
739
731
|
(function(e) {
|
|
740
732
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
741
|
-
})(
|
|
742
|
-
var
|
|
733
|
+
})(S || (S = {}));
|
|
734
|
+
var re;
|
|
743
735
|
(function(e) {
|
|
744
736
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
745
|
-
})(
|
|
746
|
-
function
|
|
747
|
-
return e.type ===
|
|
748
|
-
}
|
|
749
|
-
function bn(e) {
|
|
750
|
-
return e.type === T.argument;
|
|
737
|
+
})(re || (re = {}));
|
|
738
|
+
function ct(e) {
|
|
739
|
+
return e.type === S.literal;
|
|
751
740
|
}
|
|
752
|
-
function
|
|
753
|
-
return e.type ===
|
|
741
|
+
function gn(e) {
|
|
742
|
+
return e.type === S.argument;
|
|
754
743
|
}
|
|
755
744
|
function Ft(e) {
|
|
756
|
-
return e.type ===
|
|
745
|
+
return e.type === S.number;
|
|
757
746
|
}
|
|
758
747
|
function Gt(e) {
|
|
759
|
-
return e.type ===
|
|
748
|
+
return e.type === S.date;
|
|
760
749
|
}
|
|
761
750
|
function $t(e) {
|
|
762
|
-
return e.type ===
|
|
751
|
+
return e.type === S.time;
|
|
763
752
|
}
|
|
764
753
|
function jt(e) {
|
|
765
|
-
return e.type ===
|
|
766
|
-
}
|
|
767
|
-
function gn(e) {
|
|
768
|
-
return e.type === T.pound;
|
|
754
|
+
return e.type === S.select;
|
|
769
755
|
}
|
|
770
756
|
function Vt(e) {
|
|
771
|
-
return e.type ===
|
|
757
|
+
return e.type === S.plural;
|
|
758
|
+
}
|
|
759
|
+
function pn(e) {
|
|
760
|
+
return e.type === S.pound;
|
|
772
761
|
}
|
|
773
762
|
function Jt(e) {
|
|
774
|
-
return
|
|
763
|
+
return e.type === S.tag;
|
|
764
|
+
}
|
|
765
|
+
function zt(e) {
|
|
766
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
775
767
|
}
|
|
776
|
-
function
|
|
777
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
768
|
+
function We(e) {
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
778
770
|
}
|
|
779
|
-
var
|
|
780
|
-
function
|
|
771
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
772
|
+
function _n(e) {
|
|
781
773
|
var t = {};
|
|
782
|
-
return e.replace(
|
|
774
|
+
return e.replace(yn, function(r) {
|
|
783
775
|
var n = r.length;
|
|
784
776
|
switch (r[0]) {
|
|
785
777
|
case "G":
|
|
@@ -868,36 +860,46 @@ function yn(e) {
|
|
|
868
860
|
return "";
|
|
869
861
|
}), t;
|
|
870
862
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
863
|
+
var T = function() {
|
|
864
|
+
return T = Object.assign || function(t) {
|
|
865
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
+
r = arguments[n];
|
|
867
|
+
for (var s in r)
|
|
868
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
}, T.apply(this, arguments);
|
|
872
|
+
};
|
|
873
|
+
var En = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function vn(e) {
|
|
873
875
|
if (e.length === 0)
|
|
874
876
|
throw new Error("Number skeleton cannot be empty");
|
|
875
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(En).filter(function(f) {
|
|
876
878
|
return f.length > 0;
|
|
877
879
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
878
880
|
var s = i[n], a = s.split("/");
|
|
879
881
|
if (a.length === 0)
|
|
880
882
|
throw new Error("Invalid number skeleton");
|
|
881
883
|
for (var u = a[0], l = a.slice(1), o = 0, h = l; o < h.length; o++) {
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
884
|
+
var m = h[o];
|
|
885
|
+
if (m.length === 0)
|
|
884
886
|
throw new Error("Invalid number skeleton");
|
|
885
887
|
}
|
|
886
888
|
r.push({ stem: u, options: l });
|
|
887
889
|
}
|
|
888
890
|
return r;
|
|
889
891
|
}
|
|
890
|
-
function
|
|
892
|
+
function xn(e) {
|
|
891
893
|
return e.replace(/^(.*?)-/, "");
|
|
892
894
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
895
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
896
|
+
function dt(e) {
|
|
895
897
|
var t = {};
|
|
896
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
898
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
897
899
|
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)), "";
|
|
898
900
|
}), t;
|
|
899
901
|
}
|
|
900
|
-
function
|
|
902
|
+
function qt(e) {
|
|
901
903
|
switch (e) {
|
|
902
904
|
case "sign-auto":
|
|
903
905
|
return {
|
|
@@ -937,7 +939,7 @@ function Zt(e) {
|
|
|
937
939
|
};
|
|
938
940
|
}
|
|
939
941
|
}
|
|
940
|
-
function
|
|
942
|
+
function Tn(e) {
|
|
941
943
|
var t;
|
|
942
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
943
945
|
notation: "engineering"
|
|
@@ -945,17 +947,17 @@ function Sn(e) {
|
|
|
945
947
|
notation: "scientific"
|
|
946
948
|
}, e = e.slice(1)), t) {
|
|
947
949
|
var r = e.slice(0, 2);
|
|
948
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
950
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
949
951
|
throw new Error("Malformed concise eng/scientific notation");
|
|
950
952
|
t.minimumIntegerDigits = e.length;
|
|
951
953
|
}
|
|
952
954
|
return t;
|
|
953
955
|
}
|
|
954
|
-
function
|
|
955
|
-
var t = {}, r =
|
|
956
|
+
function bt(e) {
|
|
957
|
+
var t = {}, r = qt(e);
|
|
956
958
|
return r || t;
|
|
957
959
|
}
|
|
958
|
-
function
|
|
960
|
+
function An(e) {
|
|
959
961
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
960
962
|
var i = n[r];
|
|
961
963
|
switch (i.stem) {
|
|
@@ -979,7 +981,7 @@ function Tn(e) {
|
|
|
979
981
|
continue;
|
|
980
982
|
case "measure-unit":
|
|
981
983
|
case "unit":
|
|
982
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
983
985
|
continue;
|
|
984
986
|
case "compact-short":
|
|
985
987
|
case "K":
|
|
@@ -990,13 +992,13 @@ function Tn(e) {
|
|
|
990
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
991
993
|
continue;
|
|
992
994
|
case "scientific":
|
|
993
|
-
t =
|
|
994
|
-
return
|
|
995
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
996
|
+
return T(T({}, l), bt(o));
|
|
995
997
|
}, {}));
|
|
996
998
|
continue;
|
|
997
999
|
case "engineering":
|
|
998
|
-
t =
|
|
999
|
-
return
|
|
1000
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
1001
|
+
return T(T({}, l), bt(o));
|
|
1000
1002
|
}, {}));
|
|
1001
1003
|
continue;
|
|
1002
1004
|
case "notation-simple":
|
|
@@ -1041,11 +1043,11 @@ function Tn(e) {
|
|
|
1041
1043
|
case "integer-width":
|
|
1042
1044
|
if (i.options.length > 1)
|
|
1043
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1044
|
-
i.options[0].replace(
|
|
1046
|
+
i.options[0].replace(Sn, function(l, o, h, m, f, g) {
|
|
1045
1047
|
if (o)
|
|
1046
1048
|
t.minimumIntegerDigits = h.length;
|
|
1047
1049
|
else {
|
|
1048
|
-
if (
|
|
1050
|
+
if (m && f)
|
|
1049
1051
|
throw new Error("We currently do not support maximum integer digits");
|
|
1050
1052
|
if (g)
|
|
1051
1053
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1054,32 +1056,32 @@ function Tn(e) {
|
|
|
1054
1056
|
});
|
|
1055
1057
|
continue;
|
|
1056
1058
|
}
|
|
1057
|
-
if (
|
|
1059
|
+
if (Zt.test(i.stem)) {
|
|
1058
1060
|
t.minimumIntegerDigits = i.stem.length;
|
|
1059
1061
|
continue;
|
|
1060
1062
|
}
|
|
1061
|
-
if (
|
|
1063
|
+
if (mt.test(i.stem)) {
|
|
1062
1064
|
if (i.options.length > 1)
|
|
1063
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1064
|
-
i.stem.replace(
|
|
1065
|
-
return h === "*" ? t.minimumFractionDigits = o.length :
|
|
1066
|
+
i.stem.replace(mt, function(l, o, h, m, f, g) {
|
|
1067
|
+
return h === "*" ? t.minimumFractionDigits = o.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1066
1068
|
});
|
|
1067
1069
|
var s = i.options[0];
|
|
1068
|
-
s === "w" ? t =
|
|
1070
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), dt(s)));
|
|
1069
1071
|
continue;
|
|
1070
1072
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
t =
|
|
1073
|
+
if (Xt.test(i.stem)) {
|
|
1074
|
+
t = T(T({}, t), dt(i.stem));
|
|
1073
1075
|
continue;
|
|
1074
1076
|
}
|
|
1075
|
-
var a =
|
|
1076
|
-
a && (t =
|
|
1077
|
-
var u =
|
|
1078
|
-
u && (t =
|
|
1077
|
+
var a = qt(i.stem);
|
|
1078
|
+
a && (t = T(T({}, t), a));
|
|
1079
|
+
var u = Tn(i.stem);
|
|
1080
|
+
u && (t = T(T({}, t), u));
|
|
1079
1081
|
}
|
|
1080
1082
|
return t;
|
|
1081
1083
|
}
|
|
1082
|
-
var
|
|
1084
|
+
var ye = {
|
|
1083
1085
|
"001": [
|
|
1084
1086
|
"H",
|
|
1085
1087
|
"h"
|
|
@@ -2494,13 +2496,13 @@ var pe = {
|
|
|
2494
2496
|
"h"
|
|
2495
2497
|
]
|
|
2496
2498
|
};
|
|
2497
|
-
function
|
|
2499
|
+
function Hn(e, t) {
|
|
2498
2500
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2499
2501
|
var i = e.charAt(n);
|
|
2500
2502
|
if (i === "j") {
|
|
2501
2503
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2502
2504
|
s++, n++;
|
|
2503
|
-
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2505
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Cn(t);
|
|
2504
2506
|
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
|
2505
2507
|
r += l;
|
|
2506
2508
|
for (; a-- > 0; )
|
|
@@ -2510,7 +2512,7 @@ function An(e, t) {
|
|
|
2510
2512
|
}
|
|
2511
2513
|
return r;
|
|
2512
2514
|
}
|
|
2513
|
-
function
|
|
2515
|
+
function Cn(e) {
|
|
2514
2516
|
var t = e.hourCycle;
|
|
2515
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2516
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2529,23 +2531,23 @@ function Hn(e) {
|
|
|
2529
2531
|
}
|
|
2530
2532
|
var r = e.language, n;
|
|
2531
2533
|
r !== "root" && (n = e.maximize().region);
|
|
2532
|
-
var i =
|
|
2534
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2533
2535
|
return i[0];
|
|
2534
2536
|
}
|
|
2535
|
-
var
|
|
2536
|
-
function
|
|
2537
|
+
var Ue, Bn = new RegExp("^".concat(Wt.source, "*")), wn = new RegExp("".concat(Wt.source, "*$"));
|
|
2538
|
+
function E(e, t) {
|
|
2537
2539
|
return { start: e, end: t };
|
|
2538
2540
|
}
|
|
2539
|
-
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint,
|
|
2541
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, On = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Dn = Rn ? Number.isSafeInteger : function(e) {
|
|
2540
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2541
|
-
},
|
|
2543
|
+
}, Xe = !0;
|
|
2542
2544
|
try {
|
|
2543
|
-
var
|
|
2544
|
-
|
|
2545
|
+
var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
Xe = ((Ue = kn.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2545
2547
|
} catch (e) {
|
|
2546
|
-
|
|
2548
|
+
Xe = !1;
|
|
2547
2549
|
}
|
|
2548
|
-
var
|
|
2550
|
+
var gt = In ? (
|
|
2549
2551
|
// Native
|
|
2550
2552
|
function(t, r, n) {
|
|
2551
2553
|
return t.startsWith(r, n);
|
|
@@ -2555,7 +2557,7 @@ var bt = In ? (
|
|
|
2555
2557
|
function(t, r, n) {
|
|
2556
2558
|
return t.slice(n, n + r.length) === r;
|
|
2557
2559
|
}
|
|
2558
|
-
),
|
|
2560
|
+
), Ze = Nn ? String.fromCodePoint : (
|
|
2559
2561
|
// IE11
|
|
2560
2562
|
function() {
|
|
2561
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2567,9 +2569,9 @@ var bt = In ? (
|
|
|
2567
2569
|
}
|
|
2568
2570
|
return n;
|
|
2569
2571
|
}
|
|
2570
|
-
),
|
|
2572
|
+
), pt = (
|
|
2571
2573
|
// native
|
|
2572
|
-
|
|
2574
|
+
On ? Object.fromEntries : (
|
|
2573
2575
|
// Ponyfill
|
|
2574
2576
|
function(t) {
|
|
2575
2577
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2579,7 +2581,7 @@ var bt = In ? (
|
|
|
2579
2581
|
return r;
|
|
2580
2582
|
}
|
|
2581
2583
|
)
|
|
2582
|
-
),
|
|
2584
|
+
), Qt = Pn ? (
|
|
2583
2585
|
// Native
|
|
2584
2586
|
function(t, r) {
|
|
2585
2587
|
return t.codePointAt(r);
|
|
@@ -2593,7 +2595,7 @@ var bt = In ? (
|
|
|
2593
2595
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2594
2596
|
}
|
|
2595
2597
|
}
|
|
2596
|
-
),
|
|
2598
|
+
), Un = Mn ? (
|
|
2597
2599
|
// Native
|
|
2598
2600
|
function(t) {
|
|
2599
2601
|
return t.trimStart();
|
|
@@ -2601,9 +2603,9 @@ var bt = In ? (
|
|
|
2601
2603
|
) : (
|
|
2602
2604
|
// Ponyfill
|
|
2603
2605
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2606
|
+
return t.replace(Bn, "");
|
|
2605
2607
|
}
|
|
2606
|
-
),
|
|
2608
|
+
), Fn = Ln ? (
|
|
2607
2609
|
// Native
|
|
2608
2610
|
function(t) {
|
|
2609
2611
|
return t.trimEnd();
|
|
@@ -2611,32 +2613,32 @@ var bt = In ? (
|
|
|
2611
2613
|
) : (
|
|
2612
2614
|
// Ponyfill
|
|
2613
2615
|
function(t) {
|
|
2614
|
-
return t.replace(
|
|
2616
|
+
return t.replace(wn, "");
|
|
2615
2617
|
}
|
|
2616
2618
|
);
|
|
2617
|
-
function
|
|
2619
|
+
function Yt(e, t) {
|
|
2618
2620
|
return new RegExp(e, t);
|
|
2619
2621
|
}
|
|
2620
|
-
var
|
|
2621
|
-
if (
|
|
2622
|
-
var
|
|
2623
|
-
|
|
2622
|
+
var qe;
|
|
2623
|
+
if (Xe) {
|
|
2624
|
+
var yt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2625
|
+
qe = function(t, r) {
|
|
2624
2626
|
var n;
|
|
2625
|
-
|
|
2626
|
-
var i =
|
|
2627
|
+
yt.lastIndex = r;
|
|
2628
|
+
var i = yt.exec(t);
|
|
2627
2629
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2628
2630
|
};
|
|
2629
2631
|
} else
|
|
2630
|
-
|
|
2632
|
+
qe = function(t, r) {
|
|
2631
2633
|
for (var n = []; ; ) {
|
|
2632
|
-
var i =
|
|
2633
|
-
if (i === void 0 ||
|
|
2634
|
+
var i = Qt(t, r);
|
|
2635
|
+
if (i === void 0 || Kt(i) || Vn(i))
|
|
2634
2636
|
break;
|
|
2635
2637
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2636
2638
|
}
|
|
2637
|
-
return
|
|
2639
|
+
return Ze.apply(void 0, n);
|
|
2638
2640
|
};
|
|
2639
|
-
var
|
|
2641
|
+
var Gn = (
|
|
2640
2642
|
/** @class */
|
|
2641
2643
|
function() {
|
|
2642
2644
|
function e(t, r) {
|
|
@@ -2660,14 +2662,14 @@ var Fn = (
|
|
|
2660
2662
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2661
2663
|
var u = this.clonePosition();
|
|
2662
2664
|
this.bump(), i.push({
|
|
2663
|
-
type:
|
|
2664
|
-
location:
|
|
2665
|
+
type: S.pound,
|
|
2666
|
+
location: E(u, this.clonePosition())
|
|
2665
2667
|
});
|
|
2666
2668
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2667
2669
|
if (n)
|
|
2668
2670
|
break;
|
|
2669
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2670
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2671
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2672
|
+
} else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
2671
2673
|
var a = this.parseTag(t, r);
|
|
2672
2674
|
if (a.err)
|
|
2673
2675
|
return a;
|
|
@@ -2688,9 +2690,9 @@ var Fn = (
|
|
|
2688
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2689
2691
|
return {
|
|
2690
2692
|
val: {
|
|
2691
|
-
type:
|
|
2693
|
+
type: S.literal,
|
|
2692
2694
|
value: "<".concat(i, "/>"),
|
|
2693
|
-
location:
|
|
2695
|
+
location: E(n, this.clonePosition())
|
|
2694
2696
|
},
|
|
2695
2697
|
err: null
|
|
2696
2698
|
};
|
|
@@ -2700,25 +2702,25 @@ var Fn = (
|
|
|
2700
2702
|
return s;
|
|
2701
2703
|
var a = s.val, u = this.clonePosition();
|
|
2702
2704
|
if (this.bumpIf("</")) {
|
|
2703
|
-
if (this.isEOF() || !
|
|
2704
|
-
return this.error(_.INVALID_TAG,
|
|
2705
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
2706
|
+
return this.error(_.INVALID_TAG, E(u, this.clonePosition()));
|
|
2705
2707
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2706
|
-
return i !== o ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2708
|
+
return i !== o ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2707
2709
|
val: {
|
|
2708
|
-
type:
|
|
2710
|
+
type: S.tag,
|
|
2709
2711
|
value: i,
|
|
2710
2712
|
children: a,
|
|
2711
|
-
location:
|
|
2713
|
+
location: E(n, this.clonePosition())
|
|
2712
2714
|
},
|
|
2713
2715
|
err: null
|
|
2714
|
-
} : this.error(_.INVALID_TAG,
|
|
2716
|
+
} : this.error(_.INVALID_TAG, E(u, this.clonePosition())));
|
|
2715
2717
|
} else
|
|
2716
|
-
return this.error(_.UNCLOSED_TAG,
|
|
2718
|
+
return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
2717
2719
|
} else
|
|
2718
|
-
return this.error(_.INVALID_TAG,
|
|
2720
|
+
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2719
2721
|
}, e.prototype.parseTagName = function() {
|
|
2720
2722
|
var t = this.offset();
|
|
2721
|
-
for (this.bump(); !this.isEOF() &&
|
|
2723
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
2722
2724
|
this.bump();
|
|
2723
2725
|
return this.message.slice(t, this.offset());
|
|
2724
2726
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2740,14 +2742,14 @@ var Fn = (
|
|
|
2740
2742
|
}
|
|
2741
2743
|
break;
|
|
2742
2744
|
}
|
|
2743
|
-
var l =
|
|
2745
|
+
var l = E(n, this.clonePosition());
|
|
2744
2746
|
return {
|
|
2745
|
-
val: { type:
|
|
2747
|
+
val: { type: S.literal, value: i, location: l },
|
|
2746
2748
|
err: null
|
|
2747
2749
|
};
|
|
2748
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2749
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2750
|
-
|
|
2752
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2751
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2752
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2753
2755
|
return null;
|
|
@@ -2781,49 +2783,49 @@ var Fn = (
|
|
|
2781
2783
|
r.push(n);
|
|
2782
2784
|
this.bump();
|
|
2783
2785
|
}
|
|
2784
|
-
return
|
|
2786
|
+
return Ze.apply(void 0, r);
|
|
2785
2787
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2786
2788
|
if (this.isEOF())
|
|
2787
2789
|
return null;
|
|
2788
2790
|
var n = this.char();
|
|
2789
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2791
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
2790
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2791
2793
|
var n = this.clonePosition();
|
|
2792
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2793
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2795
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2794
2796
|
if (this.char() === 125)
|
|
2795
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
2797
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
2796
2798
|
var i = this.parseIdentifierIfPossible().value;
|
|
2797
2799
|
if (!i)
|
|
2798
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2800
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2799
2801
|
if (this.bumpSpace(), this.isEOF())
|
|
2800
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2802
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2801
2803
|
switch (this.char()) {
|
|
2802
2804
|
case 125:
|
|
2803
2805
|
return this.bump(), {
|
|
2804
2806
|
val: {
|
|
2805
|
-
type:
|
|
2807
|
+
type: S.argument,
|
|
2806
2808
|
// value does not include the opening and closing braces.
|
|
2807
2809
|
value: i,
|
|
2808
|
-
location:
|
|
2810
|
+
location: E(n, this.clonePosition())
|
|
2809
2811
|
},
|
|
2810
2812
|
err: null
|
|
2811
2813
|
};
|
|
2812
2814
|
case 44:
|
|
2813
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2815
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2814
2816
|
default:
|
|
2815
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2817
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2816
2818
|
}
|
|
2817
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2818
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2820
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
2819
2821
|
this.bumpTo(i);
|
|
2820
|
-
var s = this.clonePosition(), a =
|
|
2822
|
+
var s = this.clonePosition(), a = E(t, s);
|
|
2821
2823
|
return { value: n, location: a };
|
|
2822
2824
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2823
2825
|
var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2824
2826
|
switch (u) {
|
|
2825
2827
|
case "":
|
|
2826
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
2828
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
2827
2829
|
case "number":
|
|
2828
2830
|
case "date":
|
|
2829
2831
|
case "time": {
|
|
@@ -2831,38 +2833,38 @@ var Fn = (
|
|
|
2831
2833
|
var o = null;
|
|
2832
2834
|
if (this.bumpIf(",")) {
|
|
2833
2835
|
this.bumpSpace();
|
|
2834
|
-
var h = this.clonePosition(),
|
|
2835
|
-
if (
|
|
2836
|
-
return
|
|
2837
|
-
var f =
|
|
2836
|
+
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2837
|
+
if (m.err)
|
|
2838
|
+
return m;
|
|
2839
|
+
var f = Fn(m.val);
|
|
2838
2840
|
if (f.length === 0)
|
|
2839
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
2840
|
-
var g =
|
|
2841
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2842
|
+
var g = E(h, this.clonePosition());
|
|
2841
2843
|
o = { style: f, styleLocation: g };
|
|
2842
2844
|
}
|
|
2843
2845
|
var b = this.tryParseArgumentClose(i);
|
|
2844
2846
|
if (b.err)
|
|
2845
2847
|
return b;
|
|
2846
|
-
var y =
|
|
2847
|
-
if (o &&
|
|
2848
|
-
var d =
|
|
2848
|
+
var y = E(i, this.clonePosition());
|
|
2849
|
+
if (o && gt(o == null ? void 0 : o.style, "::", 0)) {
|
|
2850
|
+
var d = Un(o.style.slice(2));
|
|
2849
2851
|
if (u === "number") {
|
|
2850
|
-
var
|
|
2851
|
-
return
|
|
2852
|
-
val: { type:
|
|
2852
|
+
var m = this.parseNumberSkeletonFromString(d, o.styleLocation);
|
|
2853
|
+
return m.err ? m : {
|
|
2854
|
+
val: { type: S.number, value: n, location: y, style: m.val },
|
|
2853
2855
|
err: null
|
|
2854
2856
|
};
|
|
2855
2857
|
} else {
|
|
2856
2858
|
if (d.length === 0)
|
|
2857
2859
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, y);
|
|
2858
2860
|
var v = d;
|
|
2859
|
-
this.locale && (v =
|
|
2861
|
+
this.locale && (v = Hn(d, this.locale));
|
|
2860
2862
|
var f = {
|
|
2861
|
-
type:
|
|
2863
|
+
type: re.dateTime,
|
|
2862
2864
|
pattern: v,
|
|
2863
2865
|
location: o.styleLocation,
|
|
2864
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2865
|
-
}, P = u === "date" ?
|
|
2866
|
+
parsedOptions: this.shouldParseSkeletons ? _n(v) : {}
|
|
2867
|
+
}, P = u === "date" ? S.date : S.time;
|
|
2866
2868
|
return {
|
|
2867
2869
|
val: { type: P, value: n, location: y, style: f },
|
|
2868
2870
|
err: null
|
|
@@ -2871,7 +2873,7 @@ var Fn = (
|
|
|
2871
2873
|
}
|
|
2872
2874
|
return {
|
|
2873
2875
|
val: {
|
|
2874
|
-
type: u === "number" ?
|
|
2876
|
+
type: u === "number" ? S.number : u === "date" ? S.date : S.time,
|
|
2875
2877
|
value: n,
|
|
2876
2878
|
location: y,
|
|
2877
2879
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
@@ -2882,52 +2884,52 @@ var Fn = (
|
|
|
2882
2884
|
case "plural":
|
|
2883
2885
|
case "selectordinal":
|
|
2884
2886
|
case "select": {
|
|
2885
|
-
var
|
|
2887
|
+
var N = this.clonePosition();
|
|
2886
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2887
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2889
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(N, xe({}, N)));
|
|
2888
2890
|
this.bumpSpace();
|
|
2889
2891
|
var A = this.parseIdentifierIfPossible(), H = 0;
|
|
2890
2892
|
if (u !== "select" && A.value === "offset") {
|
|
2891
2893
|
if (!this.bumpIf(":"))
|
|
2892
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2894
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2893
2895
|
this.bumpSpace();
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2897
|
-
this.bumpSpace(), A = this.parseIdentifierIfPossible(), H =
|
|
2896
|
+
var m = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2897
|
+
if (m.err)
|
|
2898
|
+
return m;
|
|
2899
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), H = m.val;
|
|
2898
2900
|
}
|
|
2899
|
-
var
|
|
2900
|
-
if (
|
|
2901
|
-
return
|
|
2901
|
+
var F = this.tryParsePluralOrSelectOptions(t, u, r, A);
|
|
2902
|
+
if (F.err)
|
|
2903
|
+
return F;
|
|
2902
2904
|
var b = this.tryParseArgumentClose(i);
|
|
2903
2905
|
if (b.err)
|
|
2904
2906
|
return b;
|
|
2905
|
-
var
|
|
2907
|
+
var D = E(i, this.clonePosition());
|
|
2906
2908
|
return u === "select" ? {
|
|
2907
2909
|
val: {
|
|
2908
|
-
type:
|
|
2910
|
+
type: S.select,
|
|
2909
2911
|
value: n,
|
|
2910
|
-
options:
|
|
2911
|
-
location:
|
|
2912
|
+
options: pt(F.val),
|
|
2913
|
+
location: D
|
|
2912
2914
|
},
|
|
2913
2915
|
err: null
|
|
2914
2916
|
} : {
|
|
2915
2917
|
val: {
|
|
2916
|
-
type:
|
|
2918
|
+
type: S.plural,
|
|
2917
2919
|
value: n,
|
|
2918
|
-
options:
|
|
2920
|
+
options: pt(F.val),
|
|
2919
2921
|
offset: H,
|
|
2920
2922
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2921
|
-
location:
|
|
2923
|
+
location: D
|
|
2922
2924
|
},
|
|
2923
2925
|
err: null
|
|
2924
2926
|
};
|
|
2925
2927
|
}
|
|
2926
2928
|
default:
|
|
2927
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
2929
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
2928
2930
|
}
|
|
2929
2931
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2930
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2932
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2931
2933
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2932
2934
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2933
2935
|
var n = this.char();
|
|
@@ -2936,7 +2938,7 @@ var Fn = (
|
|
|
2936
2938
|
this.bump();
|
|
2937
2939
|
var i = this.clonePosition();
|
|
2938
2940
|
if (!this.bumpUntil("'"))
|
|
2939
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2941
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
2940
2942
|
this.bump();
|
|
2941
2943
|
break;
|
|
2942
2944
|
}
|
|
@@ -2966,28 +2968,28 @@ var Fn = (
|
|
|
2966
2968
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2967
2969
|
var n = [];
|
|
2968
2970
|
try {
|
|
2969
|
-
n =
|
|
2971
|
+
n = vn(t);
|
|
2970
2972
|
} catch (i) {
|
|
2971
2973
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
2972
2974
|
}
|
|
2973
2975
|
return {
|
|
2974
2976
|
val: {
|
|
2975
|
-
type:
|
|
2977
|
+
type: re.number,
|
|
2976
2978
|
tokens: n,
|
|
2977
2979
|
location: r,
|
|
2978
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
2979
2981
|
},
|
|
2980
2982
|
err: null
|
|
2981
2983
|
};
|
|
2982
2984
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2983
2985
|
for (var s, a = !1, u = [], l = /* @__PURE__ */ new Set(), o = i.value, h = i.location; ; ) {
|
|
2984
2986
|
if (o.length === 0) {
|
|
2985
|
-
var
|
|
2987
|
+
var m = this.clonePosition();
|
|
2986
2988
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2987
2989
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2988
2990
|
if (f.err)
|
|
2989
2991
|
return f;
|
|
2990
|
-
h =
|
|
2992
|
+
h = E(m, this.clonePosition()), o = this.message.slice(m.offset, this.offset());
|
|
2991
2993
|
} else
|
|
2992
2994
|
break;
|
|
2993
2995
|
}
|
|
@@ -2996,7 +2998,7 @@ var Fn = (
|
|
|
2996
2998
|
o === "other" && (a = !0), this.bumpSpace();
|
|
2997
2999
|
var g = this.clonePosition();
|
|
2998
3000
|
if (!this.bumpIf("{"))
|
|
2999
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3001
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3000
3002
|
var b = this.parseMessage(t + 1, r, n);
|
|
3001
3003
|
if (b.err)
|
|
3002
3004
|
return b;
|
|
@@ -3007,11 +3009,11 @@ var Fn = (
|
|
|
3007
3009
|
o,
|
|
3008
3010
|
{
|
|
3009
3011
|
value: b.val,
|
|
3010
|
-
location:
|
|
3012
|
+
location: E(g, this.clonePosition())
|
|
3011
3013
|
}
|
|
3012
3014
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
3013
3015
|
}
|
|
3014
|
-
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3016
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3015
3017
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3016
3018
|
var n = 1, i = this.clonePosition();
|
|
3017
3019
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3022,8 +3024,8 @@ var Fn = (
|
|
|
3022
3024
|
else
|
|
3023
3025
|
break;
|
|
3024
3026
|
}
|
|
3025
|
-
var l =
|
|
3026
|
-
return s ? (a *= n,
|
|
3027
|
+
var l = E(i, this.clonePosition());
|
|
3028
|
+
return s ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3027
3029
|
}, e.prototype.offset = function() {
|
|
3028
3030
|
return this.position.offset;
|
|
3029
3031
|
}, e.prototype.isEOF = function() {
|
|
@@ -3038,7 +3040,7 @@ var Fn = (
|
|
|
3038
3040
|
var t = this.position.offset;
|
|
3039
3041
|
if (t >= this.message.length)
|
|
3040
3042
|
throw Error("out of bound");
|
|
3041
|
-
var r =
|
|
3043
|
+
var r = Qt(this.message, t);
|
|
3042
3044
|
if (r === void 0)
|
|
3043
3045
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3044
3046
|
return r;
|
|
@@ -3057,7 +3059,7 @@ var Fn = (
|
|
|
3057
3059
|
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);
|
|
3058
3060
|
}
|
|
3059
3061
|
}, e.prototype.bumpIf = function(t) {
|
|
3060
|
-
if (
|
|
3062
|
+
if (gt(this.message, t, this.offset())) {
|
|
3061
3063
|
for (var r = 0; r < t.length; r++)
|
|
3062
3064
|
this.bump();
|
|
3063
3065
|
return !0;
|
|
@@ -3079,7 +3081,7 @@ var Fn = (
|
|
|
3079
3081
|
break;
|
|
3080
3082
|
}
|
|
3081
3083
|
}, e.prototype.bumpSpace = function() {
|
|
3082
|
-
for (; !this.isEOF() &&
|
|
3084
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3083
3085
|
this.bump();
|
|
3084
3086
|
}, e.prototype.peek = function() {
|
|
3085
3087
|
if (this.isEOF())
|
|
@@ -3089,47 +3091,47 @@ var Fn = (
|
|
|
3089
3091
|
}, e;
|
|
3090
3092
|
}()
|
|
3091
3093
|
);
|
|
3092
|
-
function
|
|
3094
|
+
function Qe(e) {
|
|
3093
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3094
3096
|
}
|
|
3095
|
-
function Gn(e) {
|
|
3096
|
-
return Xe(e) || e === 47;
|
|
3097
|
-
}
|
|
3098
3097
|
function $n(e) {
|
|
3098
|
+
return Qe(e) || e === 47;
|
|
3099
|
+
}
|
|
3100
|
+
function jn(e) {
|
|
3099
3101
|
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;
|
|
3100
3102
|
}
|
|
3101
|
-
function
|
|
3103
|
+
function Kt(e) {
|
|
3102
3104
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3103
3105
|
}
|
|
3104
|
-
function
|
|
3106
|
+
function Vn(e) {
|
|
3105
3107
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3106
3108
|
}
|
|
3107
|
-
function
|
|
3109
|
+
function Ye(e) {
|
|
3108
3110
|
e.forEach(function(t) {
|
|
3109
|
-
if (delete t.location,
|
|
3111
|
+
if (delete t.location, jt(t) || Vt(t))
|
|
3110
3112
|
for (var r in t.options)
|
|
3111
|
-
delete t.options[r].location,
|
|
3113
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
|
3112
3114
|
else
|
|
3113
|
-
|
|
3115
|
+
Ft(t) && zt(t.style) || (Gt(t) || $t(t)) && We(t.style) ? delete t.style.location : Jt(t) && Ye(t.children);
|
|
3114
3116
|
});
|
|
3115
3117
|
}
|
|
3116
|
-
function
|
|
3117
|
-
t === void 0 && (t = {}), t =
|
|
3118
|
-
var r = new
|
|
3118
|
+
function Jn(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
+
var r = new Gn(e, t).parse();
|
|
3119
3121
|
if (r.err) {
|
|
3120
3122
|
var n = SyntaxError(_[r.err.kind]);
|
|
3121
3123
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3122
3124
|
}
|
|
3123
|
-
return t != null && t.captureLocation ||
|
|
3125
|
+
return t != null && t.captureLocation || Ye(r.val), r.val;
|
|
3124
3126
|
}
|
|
3125
|
-
var
|
|
3127
|
+
var ne;
|
|
3126
3128
|
(function(e) {
|
|
3127
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3128
|
-
})(
|
|
3129
|
-
var
|
|
3130
|
+
})(ne || (ne = {}));
|
|
3131
|
+
var Ce = (
|
|
3130
3132
|
/** @class */
|
|
3131
3133
|
function(e) {
|
|
3132
|
-
|
|
3134
|
+
He(t, e);
|
|
3133
3135
|
function t(r, n, i) {
|
|
3134
3136
|
var s = e.call(this, r) || this;
|
|
3135
3137
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3138,155 +3140,155 @@ var Ae = (
|
|
|
3138
3140
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3139
3141
|
}, t;
|
|
3140
3142
|
}(Error)
|
|
3141
|
-
),
|
|
3143
|
+
), _t = (
|
|
3142
3144
|
/** @class */
|
|
3143
3145
|
function(e) {
|
|
3144
|
-
|
|
3146
|
+
He(t, e);
|
|
3145
3147
|
function t(r, n, i, s) {
|
|
3146
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, s) || this;
|
|
3147
3149
|
}
|
|
3148
3150
|
return t;
|
|
3149
|
-
}(
|
|
3150
|
-
),
|
|
3151
|
+
}(Ce)
|
|
3152
|
+
), zn = (
|
|
3151
3153
|
/** @class */
|
|
3152
3154
|
function(e) {
|
|
3153
|
-
|
|
3155
|
+
He(t, e);
|
|
3154
3156
|
function t(r, n, i) {
|
|
3155
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3156
3158
|
}
|
|
3157
3159
|
return t;
|
|
3158
|
-
}(
|
|
3159
|
-
),
|
|
3160
|
+
}(Ce)
|
|
3161
|
+
), Wn = (
|
|
3160
3162
|
/** @class */
|
|
3161
3163
|
function(e) {
|
|
3162
|
-
|
|
3164
|
+
He(t, e);
|
|
3163
3165
|
function t(r, n) {
|
|
3164
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3165
3167
|
}
|
|
3166
3168
|
return t;
|
|
3167
|
-
}(
|
|
3168
|
-
),
|
|
3169
|
+
}(Ce)
|
|
3170
|
+
), M;
|
|
3169
3171
|
(function(e) {
|
|
3170
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3171
|
-
})(
|
|
3172
|
-
function
|
|
3173
|
+
})(M || (M = {}));
|
|
3174
|
+
function Xn(e) {
|
|
3173
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3174
3176
|
var n = t[t.length - 1];
|
|
3175
|
-
return !n || n.type !==
|
|
3177
|
+
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3176
3178
|
}, []);
|
|
3177
3179
|
}
|
|
3178
|
-
function
|
|
3180
|
+
function Zn(e) {
|
|
3179
3181
|
return typeof e == "function";
|
|
3180
3182
|
}
|
|
3181
|
-
function
|
|
3182
|
-
if (e.length === 1 &&
|
|
3183
|
+
function Ee(e, t, r, n, i, s, a) {
|
|
3184
|
+
if (e.length === 1 && ct(e[0]))
|
|
3183
3185
|
return [
|
|
3184
3186
|
{
|
|
3185
|
-
type:
|
|
3187
|
+
type: M.literal,
|
|
3186
3188
|
value: e[0].value
|
|
3187
3189
|
}
|
|
3188
3190
|
];
|
|
3189
3191
|
for (var u = [], l = 0, o = e; l < o.length; l++) {
|
|
3190
3192
|
var h = o[l];
|
|
3191
|
-
if (
|
|
3193
|
+
if (ct(h)) {
|
|
3192
3194
|
u.push({
|
|
3193
|
-
type:
|
|
3195
|
+
type: M.literal,
|
|
3194
3196
|
value: h.value
|
|
3195
3197
|
});
|
|
3196
3198
|
continue;
|
|
3197
3199
|
}
|
|
3198
|
-
if (
|
|
3200
|
+
if (pn(h)) {
|
|
3199
3201
|
typeof s == "number" && u.push({
|
|
3200
|
-
type:
|
|
3202
|
+
type: M.literal,
|
|
3201
3203
|
value: r.getNumberFormat(t).format(s)
|
|
3202
3204
|
});
|
|
3203
3205
|
continue;
|
|
3204
3206
|
}
|
|
3205
|
-
var
|
|
3206
|
-
if (!(i &&
|
|
3207
|
-
throw new
|
|
3208
|
-
var f = i[
|
|
3209
|
-
if (
|
|
3207
|
+
var m = h.value;
|
|
3208
|
+
if (!(i && m in i))
|
|
3209
|
+
throw new Wn(m, a);
|
|
3210
|
+
var f = i[m];
|
|
3211
|
+
if (gn(h)) {
|
|
3210
3212
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3211
|
-
type: typeof f == "string" ?
|
|
3213
|
+
type: typeof f == "string" ? M.literal : M.object,
|
|
3212
3214
|
value: f
|
|
3213
3215
|
});
|
|
3214
3216
|
continue;
|
|
3215
3217
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3218
|
+
if (Gt(h)) {
|
|
3219
|
+
var g = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3218
3220
|
u.push({
|
|
3219
|
-
type:
|
|
3221
|
+
type: M.literal,
|
|
3220
3222
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3221
3223
|
});
|
|
3222
3224
|
continue;
|
|
3223
3225
|
}
|
|
3224
|
-
if (
|
|
3225
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3226
|
+
if ($t(h)) {
|
|
3227
|
+
var g = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3226
3228
|
u.push({
|
|
3227
|
-
type:
|
|
3229
|
+
type: M.literal,
|
|
3228
3230
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3229
3231
|
});
|
|
3230
3232
|
continue;
|
|
3231
3233
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3234
|
+
if (Ft(h)) {
|
|
3235
|
+
var g = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
|
|
3234
3236
|
g && g.scale && (f = f * (g.scale || 1)), u.push({
|
|
3235
|
-
type:
|
|
3237
|
+
type: M.literal,
|
|
3236
3238
|
value: r.getNumberFormat(t, g).format(f)
|
|
3237
3239
|
});
|
|
3238
3240
|
continue;
|
|
3239
3241
|
}
|
|
3240
|
-
if (
|
|
3242
|
+
if (Jt(h)) {
|
|
3241
3243
|
var b = h.children, y = h.value, d = i[y];
|
|
3242
|
-
if (!
|
|
3243
|
-
throw new
|
|
3244
|
-
var v =
|
|
3244
|
+
if (!Zn(d))
|
|
3245
|
+
throw new zn(y, "function", a);
|
|
3246
|
+
var v = Ee(b, t, r, n, i, s), P = d(v.map(function(H) {
|
|
3245
3247
|
return H.value;
|
|
3246
3248
|
}));
|
|
3247
3249
|
Array.isArray(P) || (P = [P]), u.push.apply(u, P.map(function(H) {
|
|
3248
3250
|
return {
|
|
3249
|
-
type: typeof H == "string" ?
|
|
3251
|
+
type: typeof H == "string" ? M.literal : M.object,
|
|
3250
3252
|
value: H
|
|
3251
3253
|
};
|
|
3252
3254
|
}));
|
|
3253
3255
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var
|
|
3256
|
-
if (!
|
|
3257
|
-
throw new
|
|
3258
|
-
u.push.apply(u,
|
|
3256
|
+
if (jt(h)) {
|
|
3257
|
+
var N = h.options[f] || h.options.other;
|
|
3258
|
+
if (!N)
|
|
3259
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3260
|
+
u.push.apply(u, Ee(N.value, t, r, n, i));
|
|
3259
3261
|
continue;
|
|
3260
3262
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var
|
|
3263
|
-
if (!
|
|
3263
|
+
if (Vt(h)) {
|
|
3264
|
+
var N = h.options["=".concat(f)];
|
|
3265
|
+
if (!N) {
|
|
3264
3266
|
if (!Intl.PluralRules)
|
|
3265
|
-
throw new
|
|
3267
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3266
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3267
|
-
`,
|
|
3269
|
+
`, ne.MISSING_INTL_API, a);
|
|
3268
3270
|
var A = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3269
|
-
|
|
3271
|
+
N = h.options[A] || h.options.other;
|
|
3270
3272
|
}
|
|
3271
|
-
if (!
|
|
3272
|
-
throw new
|
|
3273
|
-
u.push.apply(u,
|
|
3273
|
+
if (!N)
|
|
3274
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3275
|
+
u.push.apply(u, Ee(N.value, t, r, n, i, f - (h.offset || 0)));
|
|
3274
3276
|
continue;
|
|
3275
3277
|
}
|
|
3276
3278
|
}
|
|
3277
|
-
return
|
|
3279
|
+
return Xn(u);
|
|
3278
3280
|
}
|
|
3279
|
-
function
|
|
3280
|
-
return t ?
|
|
3281
|
-
return r[n] =
|
|
3281
|
+
function qn(e, t) {
|
|
3282
|
+
return t ? V(V(V({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3283
|
+
return r[n] = V(V({}, e[n]), t[n] || {}), r;
|
|
3282
3284
|
}, {})) : e;
|
|
3283
3285
|
}
|
|
3284
|
-
function
|
|
3286
|
+
function Qn(e, t) {
|
|
3285
3287
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3286
|
-
return r[n] =
|
|
3287
|
-
},
|
|
3288
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3289
|
+
}, V({}, e)) : e;
|
|
3288
3290
|
}
|
|
3289
|
-
function
|
|
3291
|
+
function Fe(e) {
|
|
3290
3292
|
return {
|
|
3291
3293
|
create: function() {
|
|
3292
3294
|
return {
|
|
@@ -3300,39 +3302,39 @@ function De(e) {
|
|
|
3300
3302
|
}
|
|
3301
3303
|
};
|
|
3302
3304
|
}
|
|
3303
|
-
function
|
|
3305
|
+
function Yn(e) {
|
|
3304
3306
|
return e === void 0 && (e = {
|
|
3305
3307
|
number: {},
|
|
3306
3308
|
dateTime: {},
|
|
3307
3309
|
pluralRules: {}
|
|
3308
3310
|
}), {
|
|
3309
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: De(function() {
|
|
3310
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3311
3313
|
r[n] = arguments[n];
|
|
3312
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3313
3315
|
}, {
|
|
3314
|
-
cache:
|
|
3315
|
-
strategy:
|
|
3316
|
+
cache: Fe(e.number),
|
|
3317
|
+
strategy: ke.variadic
|
|
3316
3318
|
}),
|
|
3317
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: De(function() {
|
|
3318
3320
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3319
3321
|
r[n] = arguments[n];
|
|
3320
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3321
3323
|
}, {
|
|
3322
|
-
cache:
|
|
3323
|
-
strategy:
|
|
3324
|
+
cache: Fe(e.dateTime),
|
|
3325
|
+
strategy: ke.variadic
|
|
3324
3326
|
}),
|
|
3325
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: De(function() {
|
|
3326
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3327
3329
|
r[n] = arguments[n];
|
|
3328
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
3329
3331
|
}, {
|
|
3330
|
-
cache:
|
|
3331
|
-
strategy:
|
|
3332
|
+
cache: Fe(e.pluralRules),
|
|
3333
|
+
strategy: ke.variadic
|
|
3332
3334
|
})
|
|
3333
3335
|
};
|
|
3334
3336
|
}
|
|
3335
|
-
var
|
|
3337
|
+
var Kn = (
|
|
3336
3338
|
/** @class */
|
|
3337
3339
|
function() {
|
|
3338
3340
|
function e(t, r, n, i) {
|
|
@@ -3346,12 +3348,12 @@ var Yn = (
|
|
|
3346
3348
|
var o = s.formatToParts(l);
|
|
3347
3349
|
if (o.length === 1)
|
|
3348
3350
|
return o[0].value;
|
|
3349
|
-
var h = o.reduce(function(
|
|
3350
|
-
return !
|
|
3351
|
+
var h = o.reduce(function(m, f) {
|
|
3352
|
+
return !m.length || f.type !== M.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
|
3351
3353
|
}, []);
|
|
3352
3354
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3353
3355
|
}, this.formatToParts = function(l) {
|
|
3354
|
-
return
|
|
3356
|
+
return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3355
3357
|
}, this.resolvedOptions = function() {
|
|
3356
3358
|
var l;
|
|
3357
3359
|
return {
|
|
@@ -3364,13 +3366,13 @@ var Yn = (
|
|
|
3364
3366
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3365
3367
|
var a = i || {};
|
|
3366
3368
|
a.formatters;
|
|
3367
|
-
var u =
|
|
3368
|
-
this.ast = e.__parse(t,
|
|
3369
|
+
var u = un(a, ["formatters"]);
|
|
3370
|
+
this.ast = e.__parse(t, V(V({}, u), { locale: this.resolvedLocale }));
|
|
3369
3371
|
} else
|
|
3370
3372
|
this.ast = t;
|
|
3371
3373
|
if (!Array.isArray(this.ast))
|
|
3372
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3373
|
-
this.formats =
|
|
3375
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3374
3376
|
}
|
|
3375
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3376
3378
|
get: function() {
|
|
@@ -3383,7 +3385,7 @@ var Yn = (
|
|
|
3383
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3384
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3385
3387
|
}
|
|
3386
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = Jn, e.formats = {
|
|
3387
3389
|
number: {
|
|
3388
3390
|
integer: {
|
|
3389
3391
|
maximumFractionDigits: 0
|
|
@@ -3444,7 +3446,7 @@ var Yn = (
|
|
|
3444
3446
|
}, e;
|
|
3445
3447
|
}()
|
|
3446
3448
|
);
|
|
3447
|
-
function
|
|
3449
|
+
function ei(e, t) {
|
|
3448
3450
|
if (t == null)
|
|
3449
3451
|
return;
|
|
3450
3452
|
if (t in e)
|
|
@@ -3465,92 +3467,92 @@ function Kn(e, t) {
|
|
|
3465
3467
|
n = void 0;
|
|
3466
3468
|
return n;
|
|
3467
3469
|
}
|
|
3468
|
-
const W = {},
|
|
3470
|
+
const W = {}, ti = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), er = (e, t) => {
|
|
3469
3471
|
if (t == null)
|
|
3470
3472
|
return;
|
|
3471
3473
|
if (t in W && e in W[t])
|
|
3472
3474
|
return W[t][e];
|
|
3473
|
-
const r =
|
|
3475
|
+
const r = Be(t);
|
|
3474
3476
|
for (let n = 0; n < r.length; n++) {
|
|
3475
|
-
const i = r[n], s =
|
|
3477
|
+
const i = r[n], s = ni(i, e);
|
|
3476
3478
|
if (s)
|
|
3477
|
-
return
|
|
3479
|
+
return ti(e, t, s);
|
|
3478
3480
|
}
|
|
3479
3481
|
};
|
|
3480
|
-
let
|
|
3481
|
-
const
|
|
3482
|
-
function
|
|
3483
|
-
return
|
|
3482
|
+
let tt;
|
|
3483
|
+
const oe = Ae({});
|
|
3484
|
+
function ri(e) {
|
|
3485
|
+
return tt[e] || null;
|
|
3484
3486
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e in
|
|
3487
|
+
function tr(e) {
|
|
3488
|
+
return e in tt;
|
|
3487
3489
|
}
|
|
3488
|
-
function
|
|
3489
|
-
if (!
|
|
3490
|
+
function ni(e, t) {
|
|
3491
|
+
if (!tr(e))
|
|
3490
3492
|
return null;
|
|
3491
|
-
const r =
|
|
3492
|
-
return
|
|
3493
|
+
const r = ri(e);
|
|
3494
|
+
return ei(r, t);
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3496
|
+
function ii(e) {
|
|
3495
3497
|
if (e == null)
|
|
3496
3498
|
return;
|
|
3497
|
-
const t =
|
|
3499
|
+
const t = Be(e);
|
|
3498
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3499
3501
|
const n = t[r];
|
|
3500
|
-
if (
|
|
3502
|
+
if (tr(n))
|
|
3501
3503
|
return n;
|
|
3502
3504
|
}
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3505
|
-
delete W[e],
|
|
3506
|
+
function rr(e, ...t) {
|
|
3507
|
+
delete W[e], oe.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3506
3508
|
}
|
|
3507
|
-
|
|
3508
|
-
[
|
|
3509
|
+
ae(
|
|
3510
|
+
[oe],
|
|
3509
3511
|
([e]) => Object.keys(e)
|
|
3510
3512
|
);
|
|
3511
|
-
|
|
3512
|
-
const
|
|
3513
|
-
function
|
|
3514
|
-
|
|
3513
|
+
oe.subscribe((e) => tt = e);
|
|
3514
|
+
const ve = {};
|
|
3515
|
+
function si(e, t) {
|
|
3516
|
+
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
3515
3517
|
}
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3518
|
+
function nr(e) {
|
|
3519
|
+
return ve[e];
|
|
3518
3520
|
}
|
|
3519
|
-
function
|
|
3520
|
-
return
|
|
3521
|
-
const r =
|
|
3521
|
+
function ai(e) {
|
|
3522
|
+
return Be(e).map((t) => {
|
|
3523
|
+
const r = nr(t);
|
|
3522
3524
|
return [t, r ? [...r] : []];
|
|
3523
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return e == null ? !1 :
|
|
3527
|
+
function Ke(e) {
|
|
3528
|
+
return e == null ? !1 : Be(e).some(
|
|
3527
3529
|
(t) => {
|
|
3528
3530
|
var r;
|
|
3529
|
-
return (r =
|
|
3531
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3530
3532
|
}
|
|
3531
3533
|
);
|
|
3532
3534
|
}
|
|
3533
|
-
function
|
|
3535
|
+
function oi(e, t) {
|
|
3534
3536
|
return Promise.all(
|
|
3535
|
-
t.map((n) => (
|
|
3536
|
-
).then((n) =>
|
|
3537
|
-
}
|
|
3538
|
-
const
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3541
|
-
return e in
|
|
3542
|
-
const t =
|
|
3543
|
-
return
|
|
3537
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
3538
|
+
).then((n) => rr(e, ...n));
|
|
3539
|
+
}
|
|
3540
|
+
const he = {};
|
|
3541
|
+
function ir(e) {
|
|
3542
|
+
if (!Ke(e))
|
|
3543
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3544
|
+
const t = ai(e);
|
|
3545
|
+
return he[e] = Promise.all(
|
|
3544
3546
|
t.map(
|
|
3545
|
-
([r, n]) =>
|
|
3547
|
+
([r, n]) => oi(r, n)
|
|
3546
3548
|
)
|
|
3547
3549
|
).then(() => {
|
|
3548
|
-
if (
|
|
3549
|
-
return
|
|
3550
|
-
delete
|
|
3551
|
-
}),
|
|
3550
|
+
if (Ke(e))
|
|
3551
|
+
return ir(e);
|
|
3552
|
+
delete he[e];
|
|
3553
|
+
}), he[e];
|
|
3552
3554
|
}
|
|
3553
|
-
const
|
|
3555
|
+
const ui = {
|
|
3554
3556
|
number: {
|
|
3555
3557
|
scientific: { notation: "scientific" },
|
|
3556
3558
|
engineering: { notation: "engineering" },
|
|
@@ -3579,178 +3581,183 @@ const oi = {
|
|
|
3579
3581
|
timeZoneName: "short"
|
|
3580
3582
|
}
|
|
3581
3583
|
}
|
|
3582
|
-
},
|
|
3584
|
+
}, li = {
|
|
3583
3585
|
fallbackLocale: null,
|
|
3584
3586
|
loadingDelay: 200,
|
|
3585
|
-
formats:
|
|
3587
|
+
formats: ui,
|
|
3586
3588
|
warnOnMissingMessages: !0,
|
|
3587
3589
|
handleMissingMessage: void 0,
|
|
3588
3590
|
ignoreTag: !0
|
|
3589
|
-
},
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3592
|
-
}
|
|
3593
|
-
const
|
|
3594
|
-
var
|
|
3595
|
-
for (var r in t)
|
|
3596
|
-
|
|
3597
|
-
if (
|
|
3598
|
-
for (var r of
|
|
3599
|
-
|
|
3591
|
+
}, hi = li;
|
|
3592
|
+
function ie() {
|
|
3593
|
+
return hi;
|
|
3594
|
+
}
|
|
3595
|
+
const Ge = Ae(!1);
|
|
3596
|
+
var fi = Object.defineProperty, ci = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
3597
|
+
for (var r in t || (t = {}))
|
|
3598
|
+
di.call(t, r) && vt(e, r, t[r]);
|
|
3599
|
+
if (Et)
|
|
3600
|
+
for (var r of Et(t))
|
|
3601
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
3600
3602
|
return e;
|
|
3601
|
-
},
|
|
3602
|
-
let
|
|
3603
|
-
const
|
|
3604
|
-
function
|
|
3603
|
+
}, pi = (e, t) => ci(e, mi(t));
|
|
3604
|
+
let et;
|
|
3605
|
+
const Se = Ae(null);
|
|
3606
|
+
function xt(e) {
|
|
3605
3607
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3606
3608
|
}
|
|
3607
|
-
function
|
|
3608
|
-
const r =
|
|
3609
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3609
|
+
function Be(e, t = ie().fallbackLocale) {
|
|
3610
|
+
const r = xt(e);
|
|
3611
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
3610
3612
|
}
|
|
3611
|
-
function
|
|
3612
|
-
return
|
|
3613
|
+
function Z() {
|
|
3614
|
+
return et != null ? et : void 0;
|
|
3613
3615
|
}
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
+
Se.subscribe((e) => {
|
|
3617
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3616
3618
|
});
|
|
3617
|
-
const
|
|
3618
|
-
if (e &&
|
|
3619
|
-
const { loadingDelay: t } =
|
|
3619
|
+
const yi = (e) => {
|
|
3620
|
+
if (e && ii(e) && Ke(e)) {
|
|
3621
|
+
const { loadingDelay: t } = ie();
|
|
3620
3622
|
let r;
|
|
3621
|
-
return typeof window != "undefined" &&
|
|
3622
|
-
() =>
|
|
3623
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
3624
|
+
() => Ge.set(!0),
|
|
3623
3625
|
t
|
|
3624
|
-
) :
|
|
3625
|
-
|
|
3626
|
+
) : Ge.set(!0), ir(e).then(() => {
|
|
3627
|
+
Se.set(e);
|
|
3626
3628
|
}).finally(() => {
|
|
3627
|
-
clearTimeout(r),
|
|
3629
|
+
clearTimeout(r), Ge.set(!1);
|
|
3628
3630
|
});
|
|
3629
3631
|
}
|
|
3630
|
-
return
|
|
3631
|
-
},
|
|
3632
|
-
set:
|
|
3633
|
-
}),
|
|
3632
|
+
return Se.set(e);
|
|
3633
|
+
}, X = pi(gi({}, Se), {
|
|
3634
|
+
set: yi
|
|
3635
|
+
}), we = (e) => {
|
|
3634
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3635
3637
|
return (n) => {
|
|
3636
3638
|
const i = JSON.stringify(n);
|
|
3637
3639
|
return i in t ? t[i] : t[i] = e(n);
|
|
3638
3640
|
};
|
|
3639
3641
|
};
|
|
3640
|
-
var
|
|
3642
|
+
var _i = Object.defineProperty, Te = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
3641
3643
|
for (var r in t || (t = {}))
|
|
3642
|
-
|
|
3643
|
-
if (
|
|
3644
|
-
for (var r of
|
|
3645
|
-
|
|
3644
|
+
sr.call(t, r) && St(e, r, t[r]);
|
|
3645
|
+
if (Te)
|
|
3646
|
+
for (var r of Te(t))
|
|
3647
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
3646
3648
|
return e;
|
|
3647
|
-
},
|
|
3649
|
+
}, ue = (e, t) => {
|
|
3648
3650
|
var r = {};
|
|
3649
3651
|
for (var n in e)
|
|
3650
|
-
|
|
3651
|
-
if (e != null &&
|
|
3652
|
-
for (var n of
|
|
3653
|
-
t.indexOf(n) < 0 &&
|
|
3652
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3653
|
+
if (e != null && Te)
|
|
3654
|
+
for (var n of Te(e))
|
|
3655
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3654
3656
|
return r;
|
|
3655
3657
|
};
|
|
3656
|
-
const
|
|
3657
|
-
const { formats: r } =
|
|
3658
|
+
const de = (e, t) => {
|
|
3659
|
+
const { formats: r } = ie();
|
|
3658
3660
|
if (e in r && t in r[e])
|
|
3659
3661
|
return r[e][t];
|
|
3660
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3661
|
-
},
|
|
3663
|
+
}, Ei = we(
|
|
3662
3664
|
(e) => {
|
|
3663
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3665
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3664
3666
|
if (r == null)
|
|
3665
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3666
|
-
return n && (i =
|
|
3668
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3667
3669
|
}
|
|
3668
|
-
),
|
|
3670
|
+
), vi = we(
|
|
3669
3671
|
(e) => {
|
|
3670
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3671
3673
|
if (r == null)
|
|
3672
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3673
|
-
return n ? i =
|
|
3675
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3674
3676
|
}
|
|
3675
|
-
),
|
|
3677
|
+
), xi = we(
|
|
3676
3678
|
(e) => {
|
|
3677
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3678
3680
|
if (r == null)
|
|
3679
3681
|
throw new Error(
|
|
3680
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3681
3683
|
);
|
|
3682
|
-
return n ? i =
|
|
3684
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3683
3685
|
}
|
|
3684
|
-
),
|
|
3686
|
+
), Si = (e = {}) => {
|
|
3685
3687
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3687
|
-
} = t, n =
|
|
3688
|
+
locale: r = Z()
|
|
3689
|
+
} = t, n = ue(t, [
|
|
3688
3690
|
"locale"
|
|
3689
3691
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3692
|
+
return Ei(rt({ locale: r }, n));
|
|
3693
|
+
}, Ti = (e = {}) => {
|
|
3692
3694
|
var t = e, {
|
|
3693
|
-
locale: r =
|
|
3694
|
-
} = t, n =
|
|
3695
|
+
locale: r = Z()
|
|
3696
|
+
} = t, n = ue(t, [
|
|
3695
3697
|
"locale"
|
|
3696
3698
|
]);
|
|
3697
|
-
return
|
|
3698
|
-
},
|
|
3699
|
+
return vi(rt({ locale: r }, n));
|
|
3700
|
+
}, Ai = (e = {}) => {
|
|
3699
3701
|
var t = e, {
|
|
3700
|
-
locale: r =
|
|
3701
|
-
} = t, n =
|
|
3702
|
+
locale: r = Z()
|
|
3703
|
+
} = t, n = ue(t, [
|
|
3702
3704
|
"locale"
|
|
3703
3705
|
]);
|
|
3704
|
-
return
|
|
3705
|
-
},
|
|
3706
|
+
return xi(rt({ locale: r }, n));
|
|
3707
|
+
}, Hi = we(
|
|
3706
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3707
|
-
(e, t =
|
|
3708
|
-
ignoreTag:
|
|
3709
|
+
(e, t = Z()) => new Kn(e, t, ie().formats, {
|
|
3710
|
+
ignoreTag: ie().ignoreTag
|
|
3709
3711
|
})
|
|
3710
|
-
),
|
|
3712
|
+
), Ci = (e, t = {}) => {
|
|
3711
3713
|
var r, n, i, s;
|
|
3712
3714
|
let a = t;
|
|
3713
3715
|
typeof e == "object" && (a = e, e = a.id);
|
|
3714
3716
|
const {
|
|
3715
3717
|
values: u,
|
|
3716
|
-
locale: l =
|
|
3718
|
+
locale: l = Z(),
|
|
3717
3719
|
default: o
|
|
3718
3720
|
} = a;
|
|
3719
3721
|
if (l == null)
|
|
3720
3722
|
throw new Error(
|
|
3721
3723
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3722
3724
|
);
|
|
3723
|
-
let h =
|
|
3725
|
+
let h = er(e, l);
|
|
3724
3726
|
if (!h)
|
|
3725
|
-
h = (s = (i = (n = (r =
|
|
3727
|
+
h = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3726
3728
|
else if (typeof h != "string")
|
|
3727
3729
|
return console.warn(
|
|
3728
3730
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3729
3731
|
), h;
|
|
3730
3732
|
if (!u)
|
|
3731
3733
|
return h;
|
|
3732
|
-
let
|
|
3734
|
+
let m = h;
|
|
3733
3735
|
try {
|
|
3734
|
-
|
|
3736
|
+
m = Hi(h, l).format(u);
|
|
3735
3737
|
} catch (f) {
|
|
3736
3738
|
f instanceof Error && console.warn(
|
|
3737
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3738
3740
|
f.message
|
|
3739
3741
|
);
|
|
3740
3742
|
}
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
function
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3743
|
+
return m;
|
|
3744
|
+
}, Bi = (e, t) => Ai(t).format(e), wi = (e, t) => Ti(t).format(e), Ii = (e, t) => Si(t).format(e), Ni = (e, t = Z()) => er(e, t), Oi = ae([X, oe], () => Ci);
|
|
3745
|
+
ae([X], () => Bi);
|
|
3746
|
+
ae([X], () => wi);
|
|
3747
|
+
ae([X], () => Ii);
|
|
3748
|
+
ae([X, oe], () => Ni);
|
|
3749
|
+
function Pi({ withLocale: e, translations: t }) {
|
|
3750
|
+
X.subscribe((r) => {
|
|
3751
|
+
r == null && (oe.set(t), X.set(e));
|
|
3752
|
+
});
|
|
3753
|
+
}
|
|
3754
|
+
function Tt(e, t) {
|
|
3755
|
+
rr(e, t);
|
|
3756
|
+
}
|
|
3757
|
+
function Mi(e) {
|
|
3758
|
+
X.set(e);
|
|
3759
|
+
}
|
|
3760
|
+
const At = {
|
|
3754
3761
|
en: {
|
|
3755
3762
|
enrolled: "Enrolled",
|
|
3756
3763
|
scoreCriteria: "Score Criteria",
|
|
@@ -4082,10 +4089,10 @@ const Tt = {
|
|
|
4082
4089
|
December: "December"
|
|
4083
4090
|
}
|
|
4084
4091
|
};
|
|
4085
|
-
function
|
|
4086
|
-
|
|
4092
|
+
function Li(e) {
|
|
4093
|
+
xr(e, "svelte-1bncdcr", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4087
4094
|
}
|
|
4088
|
-
function
|
|
4095
|
+
function Ht(e) {
|
|
4089
4096
|
let t, r, n;
|
|
4090
4097
|
return {
|
|
4091
4098
|
c() {
|
|
@@ -4095,30 +4102,30 @@ function At(e) {
|
|
|
4095
4102
|
O(i, t, s), O(i, r, s), O(i, n, s);
|
|
4096
4103
|
},
|
|
4097
4104
|
d(i) {
|
|
4098
|
-
i && (
|
|
4105
|
+
i && (I(t), I(r), I(n));
|
|
4099
4106
|
}
|
|
4100
4107
|
};
|
|
4101
4108
|
}
|
|
4102
|
-
function
|
|
4109
|
+
function Ct(e) {
|
|
4103
4110
|
let t, r, n, i, s, a, u, l, o = (
|
|
4104
4111
|
/*status*/
|
|
4105
|
-
e[0] &&
|
|
4112
|
+
e[0] && Bt(e)
|
|
4106
4113
|
), h = (
|
|
4107
4114
|
/*showenrolled*/
|
|
4108
|
-
e[7] == "true" &&
|
|
4115
|
+
e[7] == "true" && wt(e)
|
|
4109
4116
|
);
|
|
4110
|
-
function
|
|
4117
|
+
function m(d, v) {
|
|
4111
4118
|
return (
|
|
4112
4119
|
/*thumbnail*/
|
|
4113
|
-
d[4] ?
|
|
4120
|
+
d[4] ? Di : Ri
|
|
4114
4121
|
);
|
|
4115
4122
|
}
|
|
4116
|
-
let f =
|
|
4123
|
+
let f = m(e), g = f(e), b = (
|
|
4117
4124
|
/*startdate*/
|
|
4118
4125
|
e[2] && Nt(e)
|
|
4119
4126
|
), y = (
|
|
4120
4127
|
/*isLoggedIn*/
|
|
4121
|
-
e[12] &&
|
|
4128
|
+
e[12] && Ot(e)
|
|
4122
4129
|
);
|
|
4123
4130
|
return {
|
|
4124
4131
|
c() {
|
|
@@ -4128,26 +4135,26 @@ function Ht(e) {
|
|
|
4128
4135
|
), u = j(), b && b.c(), l = j(), y && y.c(), p(s, "class", "Title"), p(s, "part", "Title"), p(i, "class", "Details"), p(i, "part", "Details");
|
|
4129
4136
|
},
|
|
4130
4137
|
m(d, v) {
|
|
4131
|
-
o && o.m(d, v), O(d, t, v), h && h.m(d, v), O(d, r, v), g.m(d, v), O(d, n, v), O(d, i, v),
|
|
4138
|
+
o && o.m(d, v), O(d, t, v), h && h.m(d, v), O(d, r, v), g.m(d, v), O(d, n, v), O(d, i, v), x(i, s), x(s, a), x(i, u), b && b.m(i, null), x(i, l), y && y.m(i, null);
|
|
4132
4139
|
},
|
|
4133
4140
|
p(d, v) {
|
|
4134
4141
|
/*status*/
|
|
4135
|
-
d[0] ? o ? o.p(d, v) : (o =
|
|
4136
|
-
d[7] == "true" ? h ? h.p(d, v) : (h =
|
|
4142
|
+
d[0] ? o ? o.p(d, v) : (o = Bt(d), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null), /*showenrolled*/
|
|
4143
|
+
d[7] == "true" ? h ? h.p(d, v) : (h = wt(d), h.c(), h.m(r.parentNode, r)) : h && (h.d(1), h = null), f === (f = m(d)) && g ? g.p(d, v) : (g.d(1), g = f(d), g && (g.c(), g.m(n.parentNode, n))), v[0] & /*title*/
|
|
4137
4144
|
2 && $(
|
|
4138
4145
|
a,
|
|
4139
4146
|
/*title*/
|
|
4140
4147
|
d[1]
|
|
4141
4148
|
), /*startdate*/
|
|
4142
4149
|
d[2] ? b ? b.p(d, v) : (b = Nt(d), b.c(), b.m(i, l)) : b && (b.d(1), b = null), /*isLoggedIn*/
|
|
4143
|
-
d[12] ? y ? y.p(d, v) : (y =
|
|
4150
|
+
d[12] ? y ? y.p(d, v) : (y = Ot(d), y.c(), y.m(i, null)) : y && (y.d(1), y = null);
|
|
4144
4151
|
},
|
|
4145
4152
|
d(d) {
|
|
4146
|
-
d && (
|
|
4153
|
+
d && (I(t), I(r), I(n), I(i)), o && o.d(d), h && h.d(d), g.d(d), b && b.d(), y && y.d();
|
|
4147
4154
|
}
|
|
4148
4155
|
};
|
|
4149
4156
|
}
|
|
4150
|
-
function
|
|
4157
|
+
function Bt(e) {
|
|
4151
4158
|
let t, r, n, i, s, a;
|
|
4152
4159
|
return {
|
|
4153
4160
|
c() {
|
|
@@ -4159,7 +4166,7 @@ function Ct(e) {
|
|
|
4159
4166
|
e[15]);
|
|
4160
4167
|
},
|
|
4161
4168
|
m(u, l) {
|
|
4162
|
-
O(u, t, l),
|
|
4169
|
+
O(u, t, l), x(t, r), s || (a = ge(
|
|
4163
4170
|
/*matchStatus*/
|
|
4164
4171
|
e[18].call(null, t)
|
|
4165
4172
|
), s = !0);
|
|
@@ -4177,18 +4184,18 @@ function Ct(e) {
|
|
|
4177
4184
|
u[15]) && p(t, "part", i);
|
|
4178
4185
|
},
|
|
4179
4186
|
d(u) {
|
|
4180
|
-
u &&
|
|
4187
|
+
u && I(t), s = !1, a();
|
|
4181
4188
|
}
|
|
4182
4189
|
};
|
|
4183
4190
|
}
|
|
4184
|
-
function
|
|
4191
|
+
function wt(e) {
|
|
4185
4192
|
let t, r = (
|
|
4186
4193
|
/*userenrolled*/
|
|
4187
4194
|
e[5] && It(e)
|
|
4188
4195
|
);
|
|
4189
4196
|
return {
|
|
4190
4197
|
c() {
|
|
4191
|
-
r && r.c(), t =
|
|
4198
|
+
r && r.c(), t = Ar();
|
|
4192
4199
|
},
|
|
4193
4200
|
m(n, i) {
|
|
4194
4201
|
r && r.m(n, i), O(n, t, i);
|
|
@@ -4198,7 +4205,7 @@ function Bt(e) {
|
|
|
4198
4205
|
n[5] ? r ? r.p(n, i) : (r = It(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4199
4206
|
},
|
|
4200
4207
|
d(n) {
|
|
4201
|
-
n &&
|
|
4208
|
+
n && I(t), r && r.d(n);
|
|
4202
4209
|
}
|
|
4203
4210
|
};
|
|
4204
4211
|
}
|
|
@@ -4212,7 +4219,7 @@ function It(e) {
|
|
|
4212
4219
|
t = B("div"), n = L(r), p(t, "class", "Enrolled"), p(t, "part", "Enrolled");
|
|
4213
4220
|
},
|
|
4214
4221
|
m(i, s) {
|
|
4215
|
-
O(i, t, s),
|
|
4222
|
+
O(i, t, s), x(t, n);
|
|
4216
4223
|
},
|
|
4217
4224
|
p(i, s) {
|
|
4218
4225
|
s[0] & /*$_*/
|
|
@@ -4220,22 +4227,22 @@ function It(e) {
|
|
|
4220
4227
|
i[16]("enrolled") + "") && $(n, r);
|
|
4221
4228
|
},
|
|
4222
4229
|
d(i) {
|
|
4223
|
-
i &&
|
|
4230
|
+
i && I(t);
|
|
4224
4231
|
}
|
|
4225
4232
|
};
|
|
4226
4233
|
}
|
|
4227
|
-
function
|
|
4234
|
+
function Ri(e) {
|
|
4228
4235
|
let t, r, n, i, s, a, u;
|
|
4229
4236
|
return {
|
|
4230
4237
|
c() {
|
|
4231
|
-
t = B("div"), r = B("ui-image"),
|
|
4238
|
+
t = B("div"), r = B("ui-image"), $e(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || K(r, "src", n), K(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4232
4239
|
(e[0] == "Closing" || /*status*/
|
|
4233
4240
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4234
4241
|
(e[0] == "Closing" || /*status*/
|
|
4235
4242
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4236
4243
|
},
|
|
4237
4244
|
m(l, o) {
|
|
4238
|
-
O(l, t, o),
|
|
4245
|
+
O(l, t, o), x(t, r), a || (u = ge(
|
|
4239
4246
|
/*matchStatus*/
|
|
4240
4247
|
e[18].call(null, t)
|
|
4241
4248
|
), a = !0);
|
|
@@ -4250,31 +4257,31 @@ function Mi(e) {
|
|
|
4250
4257
|
l[0] == "Closed" ? "CardImgFinished" : "")) && p(t, "part", s);
|
|
4251
4258
|
},
|
|
4252
4259
|
d(l) {
|
|
4253
|
-
l &&
|
|
4260
|
+
l && I(t), a = !1, u();
|
|
4254
4261
|
}
|
|
4255
4262
|
};
|
|
4256
4263
|
}
|
|
4257
|
-
function
|
|
4264
|
+
function Di(e) {
|
|
4258
4265
|
let t, r, n, i, s, a, u;
|
|
4259
4266
|
return {
|
|
4260
4267
|
c() {
|
|
4261
|
-
t = B("div"), r = B("ui-image"),
|
|
4262
|
-
e[4]) ||
|
|
4268
|
+
t = B("div"), r = B("ui-image"), K(r, "class", "UIImage"), $e(r.src, n = /*thumbnail*/
|
|
4269
|
+
e[4]) || K(r, "src", n), K(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4263
4270
|
(e[0] == "Closing" || /*status*/
|
|
4264
4271
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4265
4272
|
(e[0] == "Closing" || /*status*/
|
|
4266
4273
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4267
4274
|
},
|
|
4268
4275
|
m(l, o) {
|
|
4269
|
-
O(l, t, o),
|
|
4276
|
+
O(l, t, o), x(t, r), a || (u = ge(
|
|
4270
4277
|
/*matchStatus*/
|
|
4271
4278
|
e[18].call(null, t)
|
|
4272
4279
|
), a = !0);
|
|
4273
4280
|
},
|
|
4274
4281
|
p(l, o) {
|
|
4275
4282
|
o[0] & /*thumbnail*/
|
|
4276
|
-
16 &&
|
|
4277
|
-
l[4]) &&
|
|
4283
|
+
16 && !$e(r.src, n = /*thumbnail*/
|
|
4284
|
+
l[4]) && K(r, "src", n), o[0] & /*status*/
|
|
4278
4285
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4279
4286
|
(l[0] == "Closing" || /*status*/
|
|
4280
4287
|
l[0] == "Closed" ? "CardImgFinished" : "")) && p(t, "class", i), o[0] & /*status*/
|
|
@@ -4283,7 +4290,7 @@ function Ri(e) {
|
|
|
4283
4290
|
l[0] == "Closed" ? "CardImgFinished" : "")) && p(t, "part", s);
|
|
4284
4291
|
},
|
|
4285
4292
|
d(l) {
|
|
4286
|
-
l &&
|
|
4293
|
+
l && I(t), a = !1, u();
|
|
4287
4294
|
}
|
|
4288
4295
|
};
|
|
4289
4296
|
}
|
|
@@ -4297,7 +4304,7 @@ function Nt(e) {
|
|
|
4297
4304
|
), p(t, "class", "Date"), p(t, "part", "Date");
|
|
4298
4305
|
},
|
|
4299
4306
|
m(a, u) {
|
|
4300
|
-
O(a, t, u),
|
|
4307
|
+
O(a, t, u), x(t, r), i || (s = ge(n = /*formatDate*/
|
|
4301
4308
|
e[17].call(
|
|
4302
4309
|
null,
|
|
4303
4310
|
t,
|
|
@@ -4311,7 +4318,7 @@ function Nt(e) {
|
|
|
4311
4318
|
r,
|
|
4312
4319
|
/*shownDate*/
|
|
4313
4320
|
a[11]
|
|
4314
|
-
), n &&
|
|
4321
|
+
), n && be(n.update) && u[0] & /*startdate*/
|
|
4315
4322
|
4 && n.update.call(
|
|
4316
4323
|
null,
|
|
4317
4324
|
/*startdate*/
|
|
@@ -4319,24 +4326,24 @@ function Nt(e) {
|
|
|
4319
4326
|
);
|
|
4320
4327
|
},
|
|
4321
4328
|
d(a) {
|
|
4322
|
-
a &&
|
|
4329
|
+
a && I(t), i = !1, s();
|
|
4323
4330
|
}
|
|
4324
4331
|
};
|
|
4325
4332
|
}
|
|
4326
|
-
function
|
|
4333
|
+
function Ot(e) {
|
|
4327
4334
|
let t, r, n = (
|
|
4328
4335
|
/*$_*/
|
|
4329
4336
|
e[16]("scoreCriteria") + ""
|
|
4330
4337
|
), i, s, a, u, l, o = (
|
|
4331
4338
|
/*$_*/
|
|
4332
4339
|
e[16]("minbet") + ""
|
|
4333
|
-
), h,
|
|
4340
|
+
), h, m, f, g, b, y, d, v = (
|
|
4334
4341
|
/*$_*/
|
|
4335
4342
|
e[16]("seegames") + ""
|
|
4336
|
-
), P,
|
|
4343
|
+
), P, N, A, H = (
|
|
4337
4344
|
/*$_*/
|
|
4338
4345
|
e[16]("here") + ""
|
|
4339
|
-
),
|
|
4346
|
+
), F, D, J, z;
|
|
4340
4347
|
return {
|
|
4341
4348
|
c() {
|
|
4342
4349
|
t = B("div"), r = B("p"), i = L(n), s = L(`:
|
|
@@ -4345,72 +4352,72 @@ function wt(e) {
|
|
|
4345
4352
|
/*showScoreCriteria*/
|
|
4346
4353
|
e[14]
|
|
4347
4354
|
), l = L(`
|
|
4348
|
-
(`), h = L(o),
|
|
4355
|
+
(`), h = L(o), m = j(), f = L(
|
|
4349
4356
|
/*minbetcount*/
|
|
4350
4357
|
e[6]
|
|
4351
|
-
), g = L(")"), b = j(), y = B("div"), d = B("p"), P = L(v),
|
|
4358
|
+
), g = L(")"), b = j(), y = B("div"), d = B("p"), P = L(v), N = j(), A = B("a"), F = L(H), p(a, "part", "ScoreCriteriaSpan"), p(r, "part", "ScoreCriteriaP"), p(t, "class", "ScoreCriteria"), p(t, "part", "ScoreCriteria"), p(A, "part", "GamesAnchor"), p(
|
|
4352
4359
|
A,
|
|
4353
4360
|
"href",
|
|
4354
4361
|
/*gameurl*/
|
|
4355
4362
|
e[8]
|
|
4356
|
-
), p(A, "target",
|
|
4363
|
+
), p(A, "target", D = /*keepbrowsercontext*/
|
|
4357
4364
|
e[9] === "true" ? "_self" : "_blank"), p(d, "part", "GamesP"), p(y, "class", "Games"), p(y, "part", "Games");
|
|
4358
4365
|
},
|
|
4359
|
-
m(C,
|
|
4360
|
-
O(C, t,
|
|
4361
|
-
|
|
4366
|
+
m(C, R) {
|
|
4367
|
+
O(C, t, R), x(t, r), x(r, i), x(r, s), x(r, a), x(a, u), x(r, l), x(r, h), x(r, m), x(r, f), x(r, g), O(C, b, R), O(C, y, R), x(y, d), x(d, P), x(d, N), x(d, A), x(A, F), J || (z = [
|
|
4368
|
+
ge(
|
|
4362
4369
|
/*matchScoreCriteria*/
|
|
4363
4370
|
e[19].call(null, a)
|
|
4364
4371
|
),
|
|
4365
|
-
|
|
4372
|
+
Hr(
|
|
4366
4373
|
A,
|
|
4367
4374
|
"click",
|
|
4368
4375
|
/*click_handler*/
|
|
4369
4376
|
e[28]
|
|
4370
4377
|
)
|
|
4371
|
-
],
|
|
4378
|
+
], J = !0);
|
|
4372
4379
|
},
|
|
4373
|
-
p(C,
|
|
4374
|
-
|
|
4380
|
+
p(C, R) {
|
|
4381
|
+
R[0] & /*$_*/
|
|
4375
4382
|
65536 && n !== (n = /*$_*/
|
|
4376
|
-
C[16]("scoreCriteria") + "") && $(i, n),
|
|
4383
|
+
C[16]("scoreCriteria") + "") && $(i, n), R[0] & /*showScoreCriteria*/
|
|
4377
4384
|
16384 && $(
|
|
4378
4385
|
u,
|
|
4379
4386
|
/*showScoreCriteria*/
|
|
4380
4387
|
C[14]
|
|
4381
|
-
),
|
|
4388
|
+
), R[0] & /*$_*/
|
|
4382
4389
|
65536 && o !== (o = /*$_*/
|
|
4383
|
-
C[16]("minbet") + "") && $(h, o),
|
|
4390
|
+
C[16]("minbet") + "") && $(h, o), R[0] & /*minbetcount*/
|
|
4384
4391
|
64 && $(
|
|
4385
4392
|
f,
|
|
4386
4393
|
/*minbetcount*/
|
|
4387
4394
|
C[6]
|
|
4388
|
-
),
|
|
4395
|
+
), R[0] & /*$_*/
|
|
4389
4396
|
65536 && v !== (v = /*$_*/
|
|
4390
|
-
C[16]("seegames") + "") && $(P, v),
|
|
4397
|
+
C[16]("seegames") + "") && $(P, v), R[0] & /*$_*/
|
|
4391
4398
|
65536 && H !== (H = /*$_*/
|
|
4392
|
-
C[16]("here") + "") && $(
|
|
4399
|
+
C[16]("here") + "") && $(F, H), R[0] & /*gameurl*/
|
|
4393
4400
|
256 && p(
|
|
4394
4401
|
A,
|
|
4395
4402
|
"href",
|
|
4396
4403
|
/*gameurl*/
|
|
4397
4404
|
C[8]
|
|
4398
|
-
),
|
|
4399
|
-
512 &&
|
|
4400
|
-
C[9] === "true" ? "_self" : "_blank") && p(A, "target",
|
|
4405
|
+
), R[0] & /*keepbrowsercontext*/
|
|
4406
|
+
512 && D !== (D = /*keepbrowsercontext*/
|
|
4407
|
+
C[9] === "true" ? "_self" : "_blank") && p(A, "target", D);
|
|
4401
4408
|
},
|
|
4402
4409
|
d(C) {
|
|
4403
|
-
C && (
|
|
4410
|
+
C && (I(t), I(b), I(y)), J = !1, se(z);
|
|
4404
4411
|
}
|
|
4405
4412
|
};
|
|
4406
4413
|
}
|
|
4407
|
-
function
|
|
4414
|
+
function ki(e) {
|
|
4408
4415
|
let t, r, n, i = (
|
|
4409
4416
|
/*title*/
|
|
4410
|
-
e[1] === "undefined" &&
|
|
4417
|
+
e[1] === "undefined" && Ht()
|
|
4411
4418
|
), s = (
|
|
4412
4419
|
/*title*/
|
|
4413
|
-
e[1] !== "undefined" &&
|
|
4420
|
+
e[1] !== "undefined" && Ct(e)
|
|
4414
4421
|
);
|
|
4415
4422
|
return {
|
|
4416
4423
|
c() {
|
|
@@ -4418,66 +4425,67 @@ function Li(e) {
|
|
|
4418
4425
|
e[1] === "undefined" ? "Loading" : ""}`), p(t, "part", "Thumbnail");
|
|
4419
4426
|
},
|
|
4420
4427
|
m(a, u) {
|
|
4421
|
-
O(a, t, u), i && i.m(t, null),
|
|
4428
|
+
O(a, t, u), i && i.m(t, null), x(t, r), s && s.m(t, null), e[29](t);
|
|
4422
4429
|
},
|
|
4423
4430
|
p(a, u) {
|
|
4424
4431
|
/*title*/
|
|
4425
|
-
a[1] === "undefined" ? i || (i =
|
|
4426
|
-
a[1] !== "undefined" ? s ? s.p(a, u) : (s =
|
|
4432
|
+
a[1] === "undefined" ? i || (i = Ht(), i.c(), i.m(t, r)) : i && (i.d(1), i = null), /*title*/
|
|
4433
|
+
a[1] !== "undefined" ? s ? s.p(a, u) : (s = Ct(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*title*/
|
|
4427
4434
|
2 && n !== (n = `Thumbnail ${/*title*/
|
|
4428
4435
|
a[1] === "undefined" ? "Loading" : ""}`) && p(t, "class", n);
|
|
4429
4436
|
},
|
|
4430
|
-
i:
|
|
4431
|
-
o:
|
|
4437
|
+
i: U,
|
|
4438
|
+
o: U,
|
|
4432
4439
|
d(a) {
|
|
4433
|
-
a &&
|
|
4440
|
+
a && I(t), i && i.d(), s && s.d(), e[29](null);
|
|
4434
4441
|
}
|
|
4435
4442
|
};
|
|
4436
4443
|
}
|
|
4437
|
-
function
|
|
4444
|
+
function Ui(e, t, r) {
|
|
4438
4445
|
let n;
|
|
4439
|
-
|
|
4440
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: u = "" } = t, { status: l = "" } = t, { tourid: o = "" } = t, { thumbnail: h = "" } = t, { userenrolled:
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4446
|
+
vr(e, Oi, (c) => r(16, n = c));
|
|
4447
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: u = "" } = t, { status: l = "" } = t, { tourid: o = "" } = t, { thumbnail: h = "" } = t, { userenrolled: m = "" } = t, { scorecriteria: f = "" } = t, { minbetcount: g = "" } = t, { showenrolled: b = "false" } = t, { gameurl: y = "" } = t, { lang: d = "en" } = t, { keepbrowsercontext: v = "false" } = t, { clientstyling: P = "" } = t, { clientstylingurl: N = "" } = t, { translationurl: A = "" } = t, H, F = "", D = !1, J = "", z = "", C = "";
|
|
4448
|
+
Pi({ withLocale: "en", translations: {} });
|
|
4449
|
+
const R = () => {
|
|
4450
|
+
fetch(A).then((c) => c.json()).then((c) => {
|
|
4451
|
+
Object.keys(c).forEach((G) => {
|
|
4452
|
+
Tt(G, c[G]);
|
|
4453
|
+
}), u && Pe();
|
|
4454
|
+
}).catch((c) => {
|
|
4455
|
+
console.log(c);
|
|
4448
4456
|
});
|
|
4449
4457
|
};
|
|
4450
|
-
Object.keys(
|
|
4451
|
-
|
|
4458
|
+
Object.keys(At).forEach((c) => {
|
|
4459
|
+
Tt(c, At[c]);
|
|
4452
4460
|
});
|
|
4453
|
-
const
|
|
4454
|
-
|
|
4455
|
-
},
|
|
4456
|
-
const
|
|
4457
|
-
let
|
|
4461
|
+
const nt = (c) => {
|
|
4462
|
+
c.data && (c.data && c.data.type == "SessionID" && r(12, D = !0), c.data.type == `TournamentStatus_${o}` && r(0, l = c.data.status));
|
|
4463
|
+
}, Ie = () => {
|
|
4464
|
+
const c = { month: "long" };
|
|
4465
|
+
let G = new Date(u), le = new Intl.DateTimeFormat("en", c).format(G), cr = G.getDate(), mr = G.toLocaleString("en-GB", {
|
|
4458
4466
|
hour: "numeric",
|
|
4459
4467
|
minute: "numeric",
|
|
4460
4468
|
hour12: !1
|
|
4461
4469
|
});
|
|
4462
|
-
const
|
|
4463
|
-
r(11,
|
|
4464
|
-
}, Ie = () => {
|
|
4465
|
-
l == "Unstarted" && (r(13, V = n("scheduled")), r(15, C = "StatusUnstarted")), l == "Running" && (r(13, V = n("ongoing")), r(15, C = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, V = n("finished")), l == "Closed" && r(15, C = "StatusClosed"), l == "Closing" && r(15, C = "StatusClosing");
|
|
4470
|
+
const dr = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4471
|
+
r(11, F = `${cr} ` + n(`${le}`) + ", " + dr() + ` ${mr}`);
|
|
4466
4472
|
}, Ne = () => {
|
|
4467
|
-
|
|
4468
|
-
},
|
|
4469
|
-
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4473
|
+
l == "Unstarted" && (r(13, J = n("scheduled")), r(15, C = "StatusUnstarted")), l == "Running" && (r(13, J = n("ongoing")), r(15, C = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, J = n("finished")), l == "Closed" && r(15, C = "StatusClosed"), l == "Closing" && r(15, C = "StatusClosing");
|
|
4474
|
+
}, Oe = () => {
|
|
4475
|
+
f == "BetCount" && r(14, z = n("betCount")), f == "MaxWinStakeRatio" && r(14, z = n("maxWinStakeRatio")), f == "WinStakeRatio" && r(14, z = n("winStakeRatio")), f == "Stake" && r(14, z = n("stake"));
|
|
4476
|
+
}, it = (c, G) => {
|
|
4477
|
+
window.postMessage({ type: "tournamentGamesClicked", tourId: G }, window.location.href);
|
|
4472
4478
|
}, or = () => {
|
|
4473
|
-
|
|
4474
|
-
m.innerHTML = P, H.appendChild(m);
|
|
4479
|
+
i.length > 0 && i != "false" ? r(12, D = !0) : r(12, D = !1);
|
|
4475
4480
|
}, ur = () => {
|
|
4476
|
-
let
|
|
4477
|
-
|
|
4478
|
-
|
|
4481
|
+
let c = document.createElement("style");
|
|
4482
|
+
c.innerHTML = P, H.appendChild(c);
|
|
4483
|
+
}, lr = () => {
|
|
4484
|
+
let c = new URL(N), G = document.createElement("style");
|
|
4485
|
+
fetch(c.href).then((le) => le.text()).then((le) => {
|
|
4486
|
+
G.innerHTML = le, setTimeout(
|
|
4479
4487
|
() => {
|
|
4480
|
-
H.appendChild(
|
|
4488
|
+
H.appendChild(G);
|
|
4481
4489
|
},
|
|
4482
4490
|
1
|
|
4483
4491
|
), setTimeout(
|
|
@@ -4487,70 +4495,70 @@ function Di(e, t, r) {
|
|
|
4487
4495
|
);
|
|
4488
4496
|
});
|
|
4489
4497
|
};
|
|
4490
|
-
Ir(() => (setTimeout(() =>
|
|
4491
|
-
window.removeEventListener("message",
|
|
4498
|
+
Ir(() => (setTimeout(() => Pe(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", nt, !1), () => {
|
|
4499
|
+
window.removeEventListener("message", nt);
|
|
4492
4500
|
}));
|
|
4493
|
-
const
|
|
4494
|
-
|
|
4495
|
-
},
|
|
4496
|
-
function
|
|
4497
|
-
|
|
4498
|
-
H =
|
|
4501
|
+
const Pe = () => {
|
|
4502
|
+
Mi(d), Oe(), Ne(), u && Ie();
|
|
4503
|
+
}, hr = () => it();
|
|
4504
|
+
function fr(c) {
|
|
4505
|
+
je[c ? "unshift" : "push"](() => {
|
|
4506
|
+
H = c, r(10, H);
|
|
4499
4507
|
});
|
|
4500
4508
|
}
|
|
4501
|
-
return e.$$set = (
|
|
4502
|
-
"session" in
|
|
4509
|
+
return e.$$set = (c) => {
|
|
4510
|
+
"session" in c && r(21, i = c.session), "userid" in c && r(22, s = c.userid), "title" in c && r(1, a = c.title), "startdate" in c && r(2, u = c.startdate), "status" in c && r(0, l = c.status), "tourid" in c && r(3, o = c.tourid), "thumbnail" in c && r(4, h = c.thumbnail), "userenrolled" in c && r(5, m = c.userenrolled), "scorecriteria" in c && r(23, f = c.scorecriteria), "minbetcount" in c && r(6, g = c.minbetcount), "showenrolled" in c && r(7, b = c.showenrolled), "gameurl" in c && r(8, y = c.gameurl), "lang" in c && r(24, d = c.lang), "keepbrowsercontext" in c && r(9, v = c.keepbrowsercontext), "clientstyling" in c && r(25, P = c.clientstyling), "clientstylingurl" in c && r(26, N = c.clientstylingurl), "translationurl" in c && r(27, A = c.translationurl);
|
|
4503
4511
|
}, e.$$.update = () => {
|
|
4504
4512
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
4505
|
-
33555456 && H && P &&
|
|
4506
|
-
67109888 && H &&
|
|
4507
|
-
134217728 && A &&
|
|
4508
|
-
2097152 && i &&
|
|
4509
|
-
1 && l &&
|
|
4510
|
-
16777218 && a && d &&
|
|
4511
|
-
4 && u &&
|
|
4512
|
-
8388608 && f &&
|
|
4513
|
+
33555456 && H && P && ur(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
4514
|
+
67109888 && H && N && lr(), e.$$.dirty[0] & /*translationurl*/
|
|
4515
|
+
134217728 && A && R(), e.$$.dirty[0] & /*session*/
|
|
4516
|
+
2097152 && i && or(), e.$$.dirty[0] & /*status*/
|
|
4517
|
+
1 && l && Ne(), e.$$.dirty[0] & /*title, lang*/
|
|
4518
|
+
16777218 && a && d && Pe(), e.$$.dirty[0] & /*startdate*/
|
|
4519
|
+
4 && u && Ie(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4520
|
+
8388608 && f && Oe();
|
|
4513
4521
|
}, [
|
|
4514
4522
|
l,
|
|
4515
4523
|
a,
|
|
4516
4524
|
u,
|
|
4517
4525
|
o,
|
|
4518
4526
|
h,
|
|
4519
|
-
|
|
4527
|
+
m,
|
|
4520
4528
|
g,
|
|
4521
4529
|
b,
|
|
4522
4530
|
y,
|
|
4523
4531
|
v,
|
|
4524
4532
|
H,
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
V,
|
|
4533
|
+
F,
|
|
4534
|
+
D,
|
|
4528
4535
|
J,
|
|
4536
|
+
z,
|
|
4529
4537
|
C,
|
|
4530
4538
|
n,
|
|
4531
|
-
Be,
|
|
4532
4539
|
Ie,
|
|
4533
4540
|
Ne,
|
|
4534
|
-
|
|
4541
|
+
Oe,
|
|
4542
|
+
it,
|
|
4535
4543
|
i,
|
|
4536
4544
|
s,
|
|
4537
4545
|
f,
|
|
4538
4546
|
d,
|
|
4539
4547
|
P,
|
|
4540
|
-
|
|
4548
|
+
N,
|
|
4541
4549
|
A,
|
|
4542
|
-
|
|
4543
|
-
|
|
4550
|
+
hr,
|
|
4551
|
+
fr
|
|
4544
4552
|
];
|
|
4545
4553
|
}
|
|
4546
|
-
class
|
|
4554
|
+
class Fi extends $r {
|
|
4547
4555
|
constructor(t) {
|
|
4548
|
-
super(),
|
|
4556
|
+
super(), Fr(
|
|
4549
4557
|
this,
|
|
4550
4558
|
t,
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4559
|
+
Ui,
|
|
4560
|
+
ki,
|
|
4561
|
+
Mt,
|
|
4554
4562
|
{
|
|
4555
4563
|
session: 21,
|
|
4556
4564
|
userid: 22,
|
|
@@ -4570,7 +4578,7 @@ class ki extends Gr {
|
|
|
4570
4578
|
clientstylingurl: 26,
|
|
4571
4579
|
translationurl: 27
|
|
4572
4580
|
},
|
|
4573
|
-
|
|
4581
|
+
Li,
|
|
4574
4582
|
[-1, -1]
|
|
4575
4583
|
);
|
|
4576
4584
|
}
|
|
@@ -4578,106 +4586,106 @@ class ki extends Gr {
|
|
|
4578
4586
|
return this.$$.ctx[21];
|
|
4579
4587
|
}
|
|
4580
4588
|
set session(t) {
|
|
4581
|
-
this.$$set({ session: t }),
|
|
4589
|
+
this.$$set({ session: t }), w();
|
|
4582
4590
|
}
|
|
4583
4591
|
get userid() {
|
|
4584
4592
|
return this.$$.ctx[22];
|
|
4585
4593
|
}
|
|
4586
4594
|
set userid(t) {
|
|
4587
|
-
this.$$set({ userid: t }),
|
|
4595
|
+
this.$$set({ userid: t }), w();
|
|
4588
4596
|
}
|
|
4589
4597
|
get title() {
|
|
4590
4598
|
return this.$$.ctx[1];
|
|
4591
4599
|
}
|
|
4592
4600
|
set title(t) {
|
|
4593
|
-
this.$$set({ title: t }),
|
|
4601
|
+
this.$$set({ title: t }), w();
|
|
4594
4602
|
}
|
|
4595
4603
|
get startdate() {
|
|
4596
4604
|
return this.$$.ctx[2];
|
|
4597
4605
|
}
|
|
4598
4606
|
set startdate(t) {
|
|
4599
|
-
this.$$set({ startdate: t }),
|
|
4607
|
+
this.$$set({ startdate: t }), w();
|
|
4600
4608
|
}
|
|
4601
4609
|
get status() {
|
|
4602
4610
|
return this.$$.ctx[0];
|
|
4603
4611
|
}
|
|
4604
4612
|
set status(t) {
|
|
4605
|
-
this.$$set({ status: t }),
|
|
4613
|
+
this.$$set({ status: t }), w();
|
|
4606
4614
|
}
|
|
4607
4615
|
get tourid() {
|
|
4608
4616
|
return this.$$.ctx[3];
|
|
4609
4617
|
}
|
|
4610
4618
|
set tourid(t) {
|
|
4611
|
-
this.$$set({ tourid: t }),
|
|
4619
|
+
this.$$set({ tourid: t }), w();
|
|
4612
4620
|
}
|
|
4613
4621
|
get thumbnail() {
|
|
4614
4622
|
return this.$$.ctx[4];
|
|
4615
4623
|
}
|
|
4616
4624
|
set thumbnail(t) {
|
|
4617
|
-
this.$$set({ thumbnail: t }),
|
|
4625
|
+
this.$$set({ thumbnail: t }), w();
|
|
4618
4626
|
}
|
|
4619
4627
|
get userenrolled() {
|
|
4620
4628
|
return this.$$.ctx[5];
|
|
4621
4629
|
}
|
|
4622
4630
|
set userenrolled(t) {
|
|
4623
|
-
this.$$set({ userenrolled: t }),
|
|
4631
|
+
this.$$set({ userenrolled: t }), w();
|
|
4624
4632
|
}
|
|
4625
4633
|
get scorecriteria() {
|
|
4626
4634
|
return this.$$.ctx[23];
|
|
4627
4635
|
}
|
|
4628
4636
|
set scorecriteria(t) {
|
|
4629
|
-
this.$$set({ scorecriteria: t }),
|
|
4637
|
+
this.$$set({ scorecriteria: t }), w();
|
|
4630
4638
|
}
|
|
4631
4639
|
get minbetcount() {
|
|
4632
4640
|
return this.$$.ctx[6];
|
|
4633
4641
|
}
|
|
4634
4642
|
set minbetcount(t) {
|
|
4635
|
-
this.$$set({ minbetcount: t }),
|
|
4643
|
+
this.$$set({ minbetcount: t }), w();
|
|
4636
4644
|
}
|
|
4637
4645
|
get showenrolled() {
|
|
4638
4646
|
return this.$$.ctx[7];
|
|
4639
4647
|
}
|
|
4640
4648
|
set showenrolled(t) {
|
|
4641
|
-
this.$$set({ showenrolled: t }),
|
|
4649
|
+
this.$$set({ showenrolled: t }), w();
|
|
4642
4650
|
}
|
|
4643
4651
|
get gameurl() {
|
|
4644
4652
|
return this.$$.ctx[8];
|
|
4645
4653
|
}
|
|
4646
4654
|
set gameurl(t) {
|
|
4647
|
-
this.$$set({ gameurl: t }),
|
|
4655
|
+
this.$$set({ gameurl: t }), w();
|
|
4648
4656
|
}
|
|
4649
4657
|
get lang() {
|
|
4650
4658
|
return this.$$.ctx[24];
|
|
4651
4659
|
}
|
|
4652
4660
|
set lang(t) {
|
|
4653
|
-
this.$$set({ lang: t }),
|
|
4661
|
+
this.$$set({ lang: t }), w();
|
|
4654
4662
|
}
|
|
4655
4663
|
get keepbrowsercontext() {
|
|
4656
4664
|
return this.$$.ctx[9];
|
|
4657
4665
|
}
|
|
4658
4666
|
set keepbrowsercontext(t) {
|
|
4659
|
-
this.$$set({ keepbrowsercontext: t }),
|
|
4667
|
+
this.$$set({ keepbrowsercontext: t }), w();
|
|
4660
4668
|
}
|
|
4661
4669
|
get clientstyling() {
|
|
4662
4670
|
return this.$$.ctx[25];
|
|
4663
4671
|
}
|
|
4664
4672
|
set clientstyling(t) {
|
|
4665
|
-
this.$$set({ clientstyling: t }),
|
|
4673
|
+
this.$$set({ clientstyling: t }), w();
|
|
4666
4674
|
}
|
|
4667
4675
|
get clientstylingurl() {
|
|
4668
4676
|
return this.$$.ctx[26];
|
|
4669
4677
|
}
|
|
4670
4678
|
set clientstylingurl(t) {
|
|
4671
|
-
this.$$set({ clientstylingurl: t }),
|
|
4679
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
4672
4680
|
}
|
|
4673
4681
|
get translationurl() {
|
|
4674
4682
|
return this.$$.ctx[27];
|
|
4675
4683
|
}
|
|
4676
4684
|
set translationurl(t) {
|
|
4677
|
-
this.$$set({ translationurl: t }),
|
|
4685
|
+
this.$$set({ translationurl: t }), w();
|
|
4678
4686
|
}
|
|
4679
4687
|
}
|
|
4680
|
-
|
|
4688
|
+
Gr(Fi, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4681
4689
|
export {
|
|
4682
|
-
|
|
4690
|
+
Fi as default
|
|
4683
4691
|
};
|