@everymatrix/casino-tournaments-thumbnail-controller 1.76.3 → 1.76.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnail-DRbucqVi.js → CasinoTournamentsThumbnail-Bc--CoFr.js} +858 -892
- package/components/{CasinoTournamentsThumbnail-uI6apv_h.js → CasinoTournamentsThumbnail-DkKIM4pw.js} +844 -878
- package/components/CasinoTournamentsThumbnail-p9EHTztQ.cjs +6 -0
- package/components/{CasinoTournamentsThumbnailController-Bum_v86m.js → CasinoTournamentsThumbnailController-CTbAnla0.js} +323 -258
- package/components/CasinoTournamentsThumbnailController-CbvkX9jG.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-yd-WZbJL.js → CasinoTournamentsThumbnailController-NqZC1FgH.js} +344 -279
- package/components/{CasinoTournamentsThumbnailDuration-DqM8QDXb.js → CasinoTournamentsThumbnailDuration-B_vBmHSH.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-BpulUcjo.cjs → CasinoTournamentsThumbnailDuration-C1FtYd6r.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-KmTYzO0U.js → CasinoTournamentsThumbnailDuration-ZZxthyPi.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGamesSlider-DcBTvroG.cjs → CasinoTournamentsThumbnailGamesSlider-CFUZKTBR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-cAFxrIEC.js → CasinoTournamentsThumbnailGamesSlider-Cvorm8VZ.js} +88 -88
- package/components/{CasinoTournamentsThumbnailGamesSlider-CDOuc7y9.js → CasinoTournamentsThumbnailGamesSlider-DxBwitF7.js} +88 -88
- package/components/{CasinoTournamentsThumbnailPrizes-BWO5mWgv.cjs → CasinoTournamentsThumbnailPrizes-BxL4G5lm.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DFfUKF7v.js → CasinoTournamentsThumbnailPrizes-CFRjJtza.js} +85 -85
- package/components/{CasinoTournamentsThumbnailPrizes-Dsf4LpR4.js → CasinoTournamentsThumbnailPrizes-CFX2aUmz.js} +85 -85
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BS7xFIk4.js +503 -0
- package/stencil/index-b2193545-BTdVi7--.cjs +1 -0
- package/stencil/index-b2193545-rfNAj6ri.js +519 -0
- package/stencil/{ui-image-DBXtq7Sy.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-BNRjOSaN.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-D9tkwepr.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-CKaouoPt.cjs → ui-skeleton-B0BB970e.cjs} +1 -1
- package/stencil/{ui-skeleton-BecGfbnY.js → ui-skeleton-D8L-WY77.js} +2 -2
- package/stencil/{ui-skeleton-DXmvn9dE.js → ui-skeleton-DSebcnN1.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-BVAHFeog.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8tswdmF8.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-kPD5RoB3.cjs → ui-skeleton-ae35c6f2-DDiK5zGt.cjs} +1 -1
- package/components/CasinoTournamentsThumbnail-DZHxPcle.cjs +0 -19
- package/components/CasinoTournamentsThumbnailController-B_o9fbWC.cjs +0 -3
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-CD_KQ0BB.js +0 -519
- package/stencil/index-b2193545-CrHhiaNt.js +0 -503
- package/stencil/index-b2193545-ngvz84TK.cjs +0 -1
package/components/{CasinoTournamentsThumbnail-uI6apv_h.js → CasinoTournamentsThumbnail-DkKIM4pw.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
2
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-skeleton-DSebcnN1.js";
|
|
2
|
+
import "../stencil/ui-image-CXqPvnQ2.js";
|
|
3
3
|
function U() {
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function wt(e) {
|
|
6
6
|
return e();
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function it() {
|
|
9
9
|
return /* @__PURE__ */ Object.create(null);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
e.forEach(
|
|
11
|
+
function z(e) {
|
|
12
|
+
e.forEach(wt);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function be(e) {
|
|
15
15
|
return typeof e == "function";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Bt(e, t) {
|
|
18
18
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
return e === t ? !0 : (
|
|
20
|
+
let pe;
|
|
21
|
+
function $e(e, t) {
|
|
22
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
23
23
|
}
|
|
24
24
|
function fr(e) {
|
|
25
25
|
return Object.keys(e).length === 0;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function It(e, ...t) {
|
|
28
28
|
if (e == null) {
|
|
29
29
|
for (const n of t)
|
|
30
30
|
n(void 0);
|
|
@@ -33,23 +33,23 @@ function Bt(e, ...t) {
|
|
|
33
33
|
const r = e.subscribe(...t);
|
|
34
34
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
e.$$.on_destroy.push(
|
|
36
|
+
function mr(e, t, r) {
|
|
37
|
+
e.$$.on_destroy.push(It(t, r));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return e &&
|
|
39
|
+
function ge(e) {
|
|
40
|
+
return e && be(e.destroy) ? e.destroy : U;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function T(e, t) {
|
|
43
43
|
e.appendChild(t);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const n =
|
|
45
|
+
function dr(e, t, r) {
|
|
46
|
+
const n = br(e);
|
|
47
47
|
if (!n.getElementById(t)) {
|
|
48
48
|
const i = w("style");
|
|
49
|
-
i.id = t, i.textContent = r,
|
|
49
|
+
i.id = t, i.textContent = r, gr(n, i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function br(e) {
|
|
53
53
|
if (!e)
|
|
54
54
|
return document;
|
|
55
55
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -59,27 +59,27 @@ function dr(e) {
|
|
|
59
59
|
t
|
|
60
60
|
) : e.ownerDocument;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function gr(e, t) {
|
|
63
|
+
return T(
|
|
64
64
|
/** @type {Document} */
|
|
65
65
|
e.head || e,
|
|
66
66
|
t
|
|
67
67
|
), t.sheet;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function P(e, t, r) {
|
|
70
70
|
e.insertBefore(t, r || null);
|
|
71
71
|
}
|
|
72
72
|
function I(e) {
|
|
73
73
|
e.parentNode && e.parentNode.removeChild(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Di(e, t) {
|
|
76
76
|
for (let r = 0; r < e.length; r += 1)
|
|
77
77
|
e[r] && e[r].d(t);
|
|
78
78
|
}
|
|
79
79
|
function w(e) {
|
|
80
80
|
return document.createElement(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ki(e) {
|
|
83
83
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
84
84
|
}
|
|
85
85
|
function D(e) {
|
|
@@ -88,51 +88,51 @@ function D(e) {
|
|
|
88
88
|
function G() {
|
|
89
89
|
return D(" ");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function pr() {
|
|
92
92
|
return D("");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function te(e, t, r, n) {
|
|
95
95
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
96
96
|
}
|
|
97
97
|
function b(e, t, r) {
|
|
98
98
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function K(e, t, r) {
|
|
101
101
|
const n = t.toLowerCase();
|
|
102
102
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : b(e, t, r);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function yr(e) {
|
|
105
105
|
return Array.from(e.childNodes);
|
|
106
106
|
}
|
|
107
107
|
function F(e, t) {
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ui(e, t, r, n) {
|
|
112
112
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
113
113
|
}
|
|
114
|
-
let
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
117
|
-
|
|
114
|
+
let ye;
|
|
115
|
+
function _r() {
|
|
116
|
+
if (ye === void 0) {
|
|
117
|
+
ye = !1;
|
|
118
118
|
try {
|
|
119
119
|
typeof window < "u" && window.parent && window.parent.document;
|
|
120
120
|
} catch {
|
|
121
|
-
|
|
121
|
+
ye = !0;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return ye;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Fi(e, t) {
|
|
127
127
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
128
128
|
const n = w("iframe");
|
|
129
129
|
n.setAttribute(
|
|
130
130
|
"style",
|
|
131
131
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
132
132
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
133
|
-
const i =
|
|
133
|
+
const i = _r();
|
|
134
134
|
let s;
|
|
135
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
135
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = te(
|
|
136
136
|
window,
|
|
137
137
|
"message",
|
|
138
138
|
/** @param {MessageEvent} event */
|
|
@@ -140,15 +140,15 @@ function Ui(e, t) {
|
|
|
140
140
|
a.source === n.contentWindow && t();
|
|
141
141
|
}
|
|
142
142
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
143
|
-
s =
|
|
144
|
-
}),
|
|
143
|
+
s = te(n.contentWindow, "resize", t), t();
|
|
144
|
+
}), T(e, n), () => {
|
|
145
145
|
(i || s && n.contentWindow) && s(), I(n);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Gi(e, t, r) {
|
|
149
149
|
e.classList.toggle(t, !!r);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function vr(e) {
|
|
152
152
|
const t = {};
|
|
153
153
|
return e.childNodes.forEach(
|
|
154
154
|
/** @param {Element} node */
|
|
@@ -158,89 +158,89 @@ function _r(e) {
|
|
|
158
158
|
), t;
|
|
159
159
|
}
|
|
160
160
|
let fe;
|
|
161
|
-
function
|
|
161
|
+
function ce(e) {
|
|
162
162
|
fe = e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Er() {
|
|
165
165
|
if (!fe)
|
|
166
166
|
throw new Error("Function called outside component initialization");
|
|
167
167
|
return fe;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function xr(e) {
|
|
170
|
+
Er().$$.on_mount.push(e);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
function
|
|
177
|
-
|
|
172
|
+
const Y = [], je = [];
|
|
173
|
+
let ee = [];
|
|
174
|
+
const st = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
175
|
+
let Ve = !1;
|
|
176
|
+
function Tr() {
|
|
177
|
+
Ve || (Ve = !0, Sr.then(C));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
179
|
+
function ze(e) {
|
|
180
|
+
ee.push(e);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
let
|
|
182
|
+
const Le = /* @__PURE__ */ new Set();
|
|
183
|
+
let q = 0;
|
|
184
184
|
function C() {
|
|
185
|
-
if (
|
|
185
|
+
if (q !== 0)
|
|
186
186
|
return;
|
|
187
187
|
const e = fe;
|
|
188
188
|
do {
|
|
189
189
|
try {
|
|
190
|
-
for (;
|
|
191
|
-
const t =
|
|
192
|
-
|
|
190
|
+
for (; q < Y.length; ) {
|
|
191
|
+
const t = Y[q];
|
|
192
|
+
q++, ce(t), Ar(t.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (t) {
|
|
195
|
-
throw
|
|
195
|
+
throw Y.length = 0, q = 0, t;
|
|
196
196
|
}
|
|
197
|
-
for (
|
|
198
|
-
|
|
199
|
-
for (let t = 0; t <
|
|
200
|
-
const r =
|
|
201
|
-
|
|
197
|
+
for (ce(null), Y.length = 0, q = 0; je.length; )
|
|
198
|
+
je.pop()();
|
|
199
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
200
|
+
const r = ee[t];
|
|
201
|
+
Le.has(r) || (Le.add(r), r());
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
} while (
|
|
205
|
-
for (;
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
ee.length = 0;
|
|
204
|
+
} while (Y.length);
|
|
205
|
+
for (; st.length; )
|
|
206
|
+
st.pop()();
|
|
207
|
+
Ve = !1, Le.clear(), ce(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ar(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
|
-
e.update(),
|
|
211
|
+
e.update(), z(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
213
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Hr(e) {
|
|
217
217
|
const t = [], r = [];
|
|
218
|
-
|
|
218
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
e && e.i && (
|
|
220
|
+
const Cr = /* @__PURE__ */ new Set();
|
|
221
|
+
function wr(e, t) {
|
|
222
|
+
e && e.i && (Cr.delete(e), e.i(t));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function $i(e) {
|
|
225
225
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Br(e, t, r) {
|
|
228
228
|
const { fragment: n, after_update: i } = e.$$;
|
|
229
|
-
n && n.m(t, r),
|
|
230
|
-
const s = e.$$.on_mount.map(
|
|
231
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
232
|
-
}), i.forEach(
|
|
229
|
+
n && n.m(t, r), ze(() => {
|
|
230
|
+
const s = e.$$.on_mount.map(wt).filter(be);
|
|
231
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
232
|
+
}), i.forEach(ze);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ir(e, t) {
|
|
235
235
|
const r = e.$$;
|
|
236
|
-
r.fragment !== null && (
|
|
236
|
+
r.fragment !== null && (Hr(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
e.$$.dirty[0] === -1 && (
|
|
238
|
+
function Or(e, t) {
|
|
239
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
240
240
|
}
|
|
241
241
|
function Nr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
242
242
|
const l = fe;
|
|
243
|
-
|
|
243
|
+
ce(e);
|
|
244
244
|
const u = e.$$ = {
|
|
245
245
|
fragment: null,
|
|
246
246
|
ctx: [],
|
|
@@ -248,7 +248,7 @@ function Nr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
248
248
|
props: s,
|
|
249
249
|
update: U,
|
|
250
250
|
not_equal: i,
|
|
251
|
-
bound:
|
|
251
|
+
bound: it(),
|
|
252
252
|
// lifecycle
|
|
253
253
|
on_mount: [],
|
|
254
254
|
on_destroy: [],
|
|
@@ -257,28 +257,28 @@ function Nr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
257
257
|
after_update: [],
|
|
258
258
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
259
259
|
// everything else
|
|
260
|
-
callbacks:
|
|
260
|
+
callbacks: it(),
|
|
261
261
|
dirty: o,
|
|
262
262
|
skip_bound: !1,
|
|
263
263
|
root: t.target || l.$$.root
|
|
264
264
|
};
|
|
265
265
|
a && a(u.root);
|
|
266
266
|
let h = !1;
|
|
267
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
268
|
-
const E =
|
|
269
|
-
return u.ctx && i(u.ctx[
|
|
270
|
-
}) : [], u.update(), h = !0,
|
|
267
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...x) => {
|
|
268
|
+
const E = x.length ? x[0] : c;
|
|
269
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), h && Or(e, f)), c;
|
|
270
|
+
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
271
271
|
if (t.hydrate) {
|
|
272
|
-
const
|
|
273
|
-
u.fragment && u.fragment.l(
|
|
272
|
+
const f = yr(t.target);
|
|
273
|
+
u.fragment && u.fragment.l(f), f.forEach(I);
|
|
274
274
|
} else
|
|
275
275
|
u.fragment && u.fragment.c();
|
|
276
|
-
t.intro &&
|
|
276
|
+
t.intro && wr(e.$$.fragment), Br(e, t.target, t.anchor), C();
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
ce(l);
|
|
279
279
|
}
|
|
280
|
-
let
|
|
281
|
-
typeof HTMLElement == "function" && (
|
|
280
|
+
let Ot;
|
|
281
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
282
282
|
/** The Svelte component constructor */
|
|
283
283
|
$$ctor;
|
|
284
284
|
/** Slots */
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
327
327
|
* @param {HTMLElement} [anchor]
|
|
328
328
|
*/
|
|
329
329
|
m: function(l, u) {
|
|
330
|
-
|
|
330
|
+
P(l, s, u);
|
|
331
331
|
},
|
|
332
332
|
d: function(l) {
|
|
333
333
|
l && I(s);
|
|
@@ -337,12 +337,12 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
337
337
|
};
|
|
338
338
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
339
339
|
return;
|
|
340
|
-
const t = {}, r =
|
|
340
|
+
const t = {}, r = vr(this);
|
|
341
341
|
for (const i of this.$$s)
|
|
342
342
|
i in r && (t[i] = [e(i)]);
|
|
343
343
|
for (const i of this.attributes) {
|
|
344
344
|
const s = this.$$g_p(i.name);
|
|
345
|
-
s in this.$$d || (this.$$d[s] =
|
|
345
|
+
s in this.$$d || (this.$$d[s] = ve(s, i.value, this.$$p_d, "toProp"));
|
|
346
346
|
}
|
|
347
347
|
for (const i in this.$$p_d)
|
|
348
348
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -360,7 +360,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
360
360
|
this.$$r = !0;
|
|
361
361
|
for (const i in this.$$p_d)
|
|
362
362
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
363
|
-
const s =
|
|
363
|
+
const s = ve(
|
|
364
364
|
i,
|
|
365
365
|
this.$$d[i],
|
|
366
366
|
this.$$p_d,
|
|
@@ -382,7 +382,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
382
382
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
383
383
|
// and setting attributes through setAttribute etc, this is helpful
|
|
384
384
|
attributeChangedCallback(e, t, r) {
|
|
385
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
385
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
386
386
|
}
|
|
387
387
|
disconnectedCallback() {
|
|
388
388
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -395,7 +395,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
395
395
|
) || e;
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
function
|
|
398
|
+
function ve(e, t, r, n) {
|
|
399
399
|
const i = r[e]?.type;
|
|
400
400
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
401
401
|
return t;
|
|
@@ -424,8 +424,8 @@ function _e(e, t, r, n) {
|
|
|
424
424
|
return t;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
let a = class extends
|
|
427
|
+
function Pr(e, t, r, n, i, s) {
|
|
428
|
+
let a = class extends Ot {
|
|
429
429
|
constructor() {
|
|
430
430
|
super(e, r, i), this.$$p_d = t;
|
|
431
431
|
}
|
|
@@ -441,7 +441,7 @@ function Mr(e, t, r, n, i, s) {
|
|
|
441
441
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
442
442
|
},
|
|
443
443
|
set(l) {
|
|
444
|
-
l =
|
|
444
|
+
l = ve(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), n.forEach((o) => {
|
|
@@ -453,7 +453,7 @@ function Mr(e, t, r, n, i, s) {
|
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
454
|
a, a;
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class Mr {
|
|
457
457
|
/**
|
|
458
458
|
* ### PRIVATE API
|
|
459
459
|
*
|
|
@@ -472,7 +472,7 @@ class Or {
|
|
|
472
472
|
$$set = void 0;
|
|
473
473
|
/** @returns {void} */
|
|
474
474
|
$destroy() {
|
|
475
|
-
|
|
475
|
+
Ir(this, 1), this.$destroy = U;
|
|
476
476
|
}
|
|
477
477
|
/**
|
|
478
478
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -481,7 +481,7 @@ class Or {
|
|
|
481
481
|
* @returns {() => void}
|
|
482
482
|
*/
|
|
483
483
|
$on(t, r) {
|
|
484
|
-
if (!
|
|
484
|
+
if (!be(r))
|
|
485
485
|
return U;
|
|
486
486
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
487
487
|
return n.push(r), () => {
|
|
@@ -497,114 +497,26 @@ class Or {
|
|
|
497
497
|
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
-
|
|
503
|
-
Copyright (c) Microsoft Corporation.
|
|
504
|
-
|
|
505
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
506
|
-
purpose with or without fee is hereby granted.
|
|
507
|
-
|
|
508
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
509
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
510
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
511
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
512
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
513
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
514
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
515
|
-
***************************************************************************** */
|
|
516
|
-
var Ve = function(e, t) {
|
|
517
|
-
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
518
|
-
r.__proto__ = n;
|
|
519
|
-
} || function(r, n) {
|
|
520
|
-
for (var i in n)
|
|
521
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
522
|
-
}, Ve(e, t);
|
|
523
|
-
};
|
|
524
|
-
function Te(e, t) {
|
|
525
|
-
if (typeof t != "function" && t !== null)
|
|
526
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
527
|
-
Ve(e, t);
|
|
528
|
-
function r() {
|
|
529
|
-
this.constructor = e;
|
|
530
|
-
}
|
|
531
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
532
|
-
}
|
|
533
|
-
var S = function() {
|
|
534
|
-
return S = Object.assign || function(t) {
|
|
535
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
536
|
-
r = arguments[n];
|
|
537
|
-
for (var s in r)
|
|
538
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
539
|
-
}
|
|
540
|
-
return t;
|
|
541
|
-
}, S.apply(this, arguments);
|
|
542
|
-
};
|
|
543
|
-
function Lr(e, t) {
|
|
544
|
-
var r = {};
|
|
545
|
-
for (var n in e)
|
|
546
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
547
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
548
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
549
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
550
|
-
return r;
|
|
551
|
-
}
|
|
552
|
-
function $i(e) {
|
|
553
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
554
|
-
if (r)
|
|
555
|
-
return r.call(e);
|
|
556
|
-
if (e && typeof e.length == "number")
|
|
557
|
-
return {
|
|
558
|
-
next: function() {
|
|
559
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
563
|
-
}
|
|
564
|
-
function ji(e, t) {
|
|
565
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
566
|
-
if (!r)
|
|
567
|
-
return e;
|
|
568
|
-
var n = r.call(e), i, s = [], a;
|
|
569
|
-
try {
|
|
570
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
571
|
-
s.push(i.value);
|
|
572
|
-
} catch (o) {
|
|
573
|
-
a = { error: o };
|
|
574
|
-
} finally {
|
|
575
|
-
try {
|
|
576
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
577
|
-
} finally {
|
|
578
|
-
if (a)
|
|
579
|
-
throw a.error;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
return s;
|
|
583
|
-
}
|
|
584
|
-
function Pe(e, t, r) {
|
|
585
|
-
if (r || arguments.length === 2)
|
|
586
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
587
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
588
|
-
return e.concat(s || t);
|
|
589
|
-
}
|
|
590
|
-
const q = [];
|
|
500
|
+
const Lr = "4";
|
|
501
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
502
|
+
const Q = [];
|
|
591
503
|
function Rr(e, t) {
|
|
592
504
|
return {
|
|
593
|
-
subscribe:
|
|
505
|
+
subscribe: He(e, t).subscribe
|
|
594
506
|
};
|
|
595
507
|
}
|
|
596
|
-
function
|
|
508
|
+
function He(e, t = U) {
|
|
597
509
|
let r;
|
|
598
510
|
const n = /* @__PURE__ */ new Set();
|
|
599
511
|
function i(o) {
|
|
600
|
-
if (
|
|
601
|
-
const l = !
|
|
512
|
+
if (Bt(e, o) && (e = o, r)) {
|
|
513
|
+
const l = !Q.length;
|
|
602
514
|
for (const u of n)
|
|
603
|
-
u[1](),
|
|
515
|
+
u[1](), Q.push(u, e);
|
|
604
516
|
if (l) {
|
|
605
|
-
for (let u = 0; u <
|
|
606
|
-
|
|
607
|
-
|
|
517
|
+
for (let u = 0; u < Q.length; u += 2)
|
|
518
|
+
Q[u][0](Q[u + 1]);
|
|
519
|
+
Q.length = 0;
|
|
608
520
|
}
|
|
609
521
|
}
|
|
610
522
|
}
|
|
@@ -619,7 +531,7 @@ function Ae(e, t = U) {
|
|
|
619
531
|
}
|
|
620
532
|
return { set: i, update: s, subscribe: a };
|
|
621
533
|
}
|
|
622
|
-
function
|
|
534
|
+
function ae(e, t, r) {
|
|
623
535
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
624
536
|
if (!i.every(Boolean))
|
|
625
537
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -627,31 +539,31 @@ function se(e, t, r) {
|
|
|
627
539
|
return Rr(r, (a, o) => {
|
|
628
540
|
let l = !1;
|
|
629
541
|
const u = [];
|
|
630
|
-
let h = 0,
|
|
631
|
-
const
|
|
542
|
+
let h = 0, f = U;
|
|
543
|
+
const c = () => {
|
|
632
544
|
if (h)
|
|
633
545
|
return;
|
|
634
|
-
|
|
546
|
+
f();
|
|
635
547
|
const E = t(n ? u[0] : u, a, o);
|
|
636
|
-
s ? a(E) :
|
|
637
|
-
},
|
|
638
|
-
(E, g) =>
|
|
548
|
+
s ? a(E) : f = be(E) ? E : U;
|
|
549
|
+
}, x = i.map(
|
|
550
|
+
(E, g) => It(
|
|
639
551
|
E,
|
|
640
552
|
(y) => {
|
|
641
|
-
u[g] = y, h &= ~(1 << g), l &&
|
|
553
|
+
u[g] = y, h &= ~(1 << g), l && c();
|
|
642
554
|
},
|
|
643
555
|
() => {
|
|
644
556
|
h |= 1 << g;
|
|
645
557
|
}
|
|
646
558
|
)
|
|
647
559
|
);
|
|
648
|
-
return l = !0,
|
|
649
|
-
|
|
560
|
+
return l = !0, c(), function() {
|
|
561
|
+
z(x), f(), l = !1;
|
|
650
562
|
};
|
|
651
563
|
});
|
|
652
564
|
}
|
|
653
565
|
function Dr(e) {
|
|
654
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
566
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
655
567
|
}
|
|
656
568
|
var kr = function(t) {
|
|
657
569
|
return Ur(t) && !Fr(t);
|
|
@@ -670,26 +582,26 @@ function jr(e) {
|
|
|
670
582
|
function Vr(e) {
|
|
671
583
|
return Array.isArray(e) ? [] : {};
|
|
672
584
|
}
|
|
673
|
-
function
|
|
674
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
585
|
+
function me(e, t) {
|
|
586
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Vr(e), e, t) : e;
|
|
675
587
|
}
|
|
676
588
|
function zr(e, t, r) {
|
|
677
589
|
return e.concat(t).map(function(n) {
|
|
678
|
-
return
|
|
590
|
+
return me(n, r);
|
|
679
591
|
});
|
|
680
592
|
}
|
|
681
593
|
function Jr(e, t) {
|
|
682
594
|
if (!t.customMerge)
|
|
683
|
-
return
|
|
595
|
+
return re;
|
|
684
596
|
var r = t.customMerge(e);
|
|
685
|
-
return typeof r == "function" ? r :
|
|
597
|
+
return typeof r == "function" ? r : re;
|
|
686
598
|
}
|
|
687
599
|
function Wr(e) {
|
|
688
600
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
689
601
|
return Object.propertyIsEnumerable.call(e, t);
|
|
690
602
|
}) : [];
|
|
691
603
|
}
|
|
692
|
-
function
|
|
604
|
+
function at(e) {
|
|
693
605
|
return Object.keys(e).concat(Wr(e));
|
|
694
606
|
}
|
|
695
607
|
function Nt(e, t) {
|
|
@@ -704,60 +616,99 @@ function Xr(e, t) {
|
|
|
704
616
|
}
|
|
705
617
|
function Zr(e, t, r) {
|
|
706
618
|
var n = {};
|
|
707
|
-
return r.isMergeableObject(e) &&
|
|
708
|
-
n[i] =
|
|
709
|
-
}),
|
|
710
|
-
Xr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] =
|
|
619
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
620
|
+
n[i] = me(e[i], r);
|
|
621
|
+
}), at(t).forEach(function(i) {
|
|
622
|
+
Xr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
711
623
|
}), n;
|
|
712
624
|
}
|
|
713
|
-
function
|
|
714
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified =
|
|
625
|
+
function re(e, t, r) {
|
|
626
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified = me;
|
|
715
627
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
716
|
-
return s ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) :
|
|
628
|
+
return s ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) : me(t, r);
|
|
717
629
|
}
|
|
718
|
-
|
|
630
|
+
re.all = function(t, r) {
|
|
719
631
|
if (!Array.isArray(t))
|
|
720
632
|
throw new Error("first argument should be an array");
|
|
721
633
|
return t.reduce(function(n, i) {
|
|
722
|
-
return
|
|
634
|
+
return re(n, i, r);
|
|
723
635
|
}, {});
|
|
724
636
|
};
|
|
725
|
-
var qr =
|
|
637
|
+
var qr = re, Qr = qr;
|
|
726
638
|
const Yr = /* @__PURE__ */ Dr(Qr);
|
|
727
|
-
function
|
|
728
|
-
|
|
639
|
+
var Je = function(e, t) {
|
|
640
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
641
|
+
r.__proto__ = n;
|
|
642
|
+
} || function(r, n) {
|
|
643
|
+
for (var i in n)
|
|
644
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
645
|
+
}, Je(e, t);
|
|
646
|
+
};
|
|
647
|
+
function Ce(e, t) {
|
|
648
|
+
if (typeof t != "function" && t !== null)
|
|
649
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
650
|
+
Je(e, t);
|
|
651
|
+
function r() {
|
|
652
|
+
this.constructor = e;
|
|
653
|
+
}
|
|
654
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
655
|
+
}
|
|
656
|
+
var $ = function() {
|
|
657
|
+
return $ = Object.assign || function(t) {
|
|
658
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
659
|
+
r = arguments[n];
|
|
660
|
+
for (var s in r)
|
|
661
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
662
|
+
}
|
|
663
|
+
return t;
|
|
664
|
+
}, $.apply(this, arguments);
|
|
665
|
+
};
|
|
666
|
+
function Kr(e, t) {
|
|
667
|
+
var r = {};
|
|
668
|
+
for (var n in e)
|
|
669
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
670
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
671
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
672
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
673
|
+
return r;
|
|
674
|
+
}
|
|
675
|
+
function Re(e, t, r) {
|
|
676
|
+
if (r || arguments.length === 2)
|
|
677
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
678
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
679
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
680
|
+
}
|
|
681
|
+
function De(e, t) {
|
|
682
|
+
var r = t && t.cache ? t.cache : on, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : rn;
|
|
729
683
|
return i(e, {
|
|
730
684
|
cache: r,
|
|
731
685
|
serializer: n
|
|
732
686
|
});
|
|
733
687
|
}
|
|
734
|
-
function
|
|
688
|
+
function en(e) {
|
|
735
689
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
736
690
|
}
|
|
737
|
-
function
|
|
738
|
-
var i =
|
|
691
|
+
function tn(e, t, r, n) {
|
|
692
|
+
var i = en(n) ? n : r(n), s = t.get(i);
|
|
739
693
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
740
694
|
}
|
|
741
|
-
function
|
|
695
|
+
function Pt(e, t, r) {
|
|
742
696
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
743
697
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
744
698
|
}
|
|
745
|
-
function
|
|
699
|
+
function Mt(e, t, r, n, i) {
|
|
746
700
|
return r.bind(t, e, n, i);
|
|
747
701
|
}
|
|
748
|
-
function en(e, t) {
|
|
749
|
-
var r = e.length === 1 ? Mt : Ot;
|
|
750
|
-
return Ke(e, this, r, t.cache.create(), t.serializer);
|
|
751
|
-
}
|
|
752
|
-
function tn(e, t) {
|
|
753
|
-
return Ke(e, this, Ot, t.cache.create(), t.serializer);
|
|
754
|
-
}
|
|
755
702
|
function rn(e, t) {
|
|
756
|
-
|
|
703
|
+
var r = e.length === 1 ? tn : Pt;
|
|
704
|
+
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
705
|
+
}
|
|
706
|
+
function nn(e, t) {
|
|
707
|
+
return Mt(e, this, Pt, t.cache.create(), t.serializer);
|
|
757
708
|
}
|
|
758
|
-
var
|
|
709
|
+
var sn = function() {
|
|
759
710
|
return JSON.stringify(arguments);
|
|
760
|
-
},
|
|
711
|
+
}, an = (
|
|
761
712
|
/** @class */
|
|
762
713
|
function() {
|
|
763
714
|
function e() {
|
|
@@ -769,62 +720,71 @@ var nn = function() {
|
|
|
769
720
|
this.cache[t] = r;
|
|
770
721
|
}, e;
|
|
771
722
|
}()
|
|
772
|
-
),
|
|
723
|
+
), on = {
|
|
773
724
|
create: function() {
|
|
774
|
-
return new
|
|
725
|
+
return new an();
|
|
775
726
|
}
|
|
776
|
-
},
|
|
777
|
-
variadic:
|
|
778
|
-
|
|
779
|
-
|
|
727
|
+
}, ke = {
|
|
728
|
+
variadic: nn
|
|
729
|
+
}, Se = function() {
|
|
730
|
+
return Se = Object.assign || function(t) {
|
|
731
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
732
|
+
r = arguments[n];
|
|
733
|
+
for (var s in r)
|
|
734
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
735
|
+
}
|
|
736
|
+
return t;
|
|
737
|
+
}, Se.apply(this, arguments);
|
|
738
|
+
};
|
|
739
|
+
var p;
|
|
780
740
|
(function(e) {
|
|
781
741
|
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";
|
|
782
742
|
})(p || (p = {}));
|
|
783
|
-
var
|
|
743
|
+
var A;
|
|
784
744
|
(function(e) {
|
|
785
745
|
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";
|
|
786
|
-
})(
|
|
787
|
-
var
|
|
746
|
+
})(A || (A = {}));
|
|
747
|
+
var ne;
|
|
788
748
|
(function(e) {
|
|
789
749
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
790
|
-
})(
|
|
791
|
-
function
|
|
792
|
-
return e.type ===
|
|
793
|
-
}
|
|
794
|
-
function on(e) {
|
|
795
|
-
return e.type === H.argument;
|
|
750
|
+
})(ne || (ne = {}));
|
|
751
|
+
function ot(e) {
|
|
752
|
+
return e.type === A.literal;
|
|
796
753
|
}
|
|
797
|
-
function
|
|
798
|
-
return e.type ===
|
|
754
|
+
function un(e) {
|
|
755
|
+
return e.type === A.argument;
|
|
799
756
|
}
|
|
800
757
|
function Lt(e) {
|
|
801
|
-
return e.type ===
|
|
758
|
+
return e.type === A.number;
|
|
802
759
|
}
|
|
803
760
|
function Rt(e) {
|
|
804
|
-
return e.type ===
|
|
761
|
+
return e.type === A.date;
|
|
805
762
|
}
|
|
806
763
|
function Dt(e) {
|
|
807
|
-
return e.type ===
|
|
764
|
+
return e.type === A.time;
|
|
808
765
|
}
|
|
809
766
|
function kt(e) {
|
|
810
|
-
return e.type ===
|
|
811
|
-
}
|
|
812
|
-
function un(e) {
|
|
813
|
-
return e.type === H.pound;
|
|
767
|
+
return e.type === A.select;
|
|
814
768
|
}
|
|
815
769
|
function Ut(e) {
|
|
816
|
-
return e.type ===
|
|
770
|
+
return e.type === A.plural;
|
|
771
|
+
}
|
|
772
|
+
function ln(e) {
|
|
773
|
+
return e.type === A.pound;
|
|
817
774
|
}
|
|
818
775
|
function Ft(e) {
|
|
819
|
-
return
|
|
776
|
+
return e.type === A.tag;
|
|
820
777
|
}
|
|
821
|
-
function
|
|
822
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
778
|
+
function Gt(e) {
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
823
780
|
}
|
|
824
|
-
|
|
825
|
-
|
|
781
|
+
function We(e) {
|
|
782
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
783
|
+
}
|
|
784
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hn = /(?:[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;
|
|
785
|
+
function cn(e) {
|
|
826
786
|
var t = {};
|
|
827
|
-
return e.replace(
|
|
787
|
+
return e.replace(hn, function(r) {
|
|
828
788
|
var n = r.length;
|
|
829
789
|
switch (r[0]) {
|
|
830
790
|
case "G":
|
|
@@ -913,36 +873,46 @@ function hn(e) {
|
|
|
913
873
|
return "";
|
|
914
874
|
}), t;
|
|
915
875
|
}
|
|
876
|
+
var H = function() {
|
|
877
|
+
return H = Object.assign || function(t) {
|
|
878
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
879
|
+
r = arguments[n];
|
|
880
|
+
for (var s in r)
|
|
881
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
882
|
+
}
|
|
883
|
+
return t;
|
|
884
|
+
}, H.apply(this, arguments);
|
|
885
|
+
};
|
|
916
886
|
var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
917
|
-
function
|
|
887
|
+
function mn(e) {
|
|
918
888
|
if (e.length === 0)
|
|
919
889
|
throw new Error("Number skeleton cannot be empty");
|
|
920
|
-
for (var t = e.split(fn).filter(function(
|
|
921
|
-
return
|
|
890
|
+
for (var t = e.split(fn).filter(function(c) {
|
|
891
|
+
return c.length > 0;
|
|
922
892
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
923
893
|
var s = i[n], a = s.split("/");
|
|
924
894
|
if (a.length === 0)
|
|
925
895
|
throw new Error("Invalid number skeleton");
|
|
926
896
|
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
927
|
-
var
|
|
928
|
-
if (
|
|
897
|
+
var f = h[u];
|
|
898
|
+
if (f.length === 0)
|
|
929
899
|
throw new Error("Invalid number skeleton");
|
|
930
900
|
}
|
|
931
901
|
r.push({ stem: o, options: l });
|
|
932
902
|
}
|
|
933
903
|
return r;
|
|
934
904
|
}
|
|
935
|
-
function
|
|
905
|
+
function dn(e) {
|
|
936
906
|
return e.replace(/^(.*?)-/, "");
|
|
937
907
|
}
|
|
938
|
-
var
|
|
939
|
-
function
|
|
908
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
909
|
+
function lt(e) {
|
|
940
910
|
var t = {};
|
|
941
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
911
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
942
912
|
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)), "";
|
|
943
913
|
}), t;
|
|
944
914
|
}
|
|
945
|
-
function
|
|
915
|
+
function zt(e) {
|
|
946
916
|
switch (e) {
|
|
947
917
|
case "sign-auto":
|
|
948
918
|
return {
|
|
@@ -982,7 +952,7 @@ function Vt(e) {
|
|
|
982
952
|
};
|
|
983
953
|
}
|
|
984
954
|
}
|
|
985
|
-
function
|
|
955
|
+
function gn(e) {
|
|
986
956
|
var t;
|
|
987
957
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
988
958
|
notation: "engineering"
|
|
@@ -990,17 +960,17 @@ function bn(e) {
|
|
|
990
960
|
notation: "scientific"
|
|
991
961
|
}, e = e.slice(1)), t) {
|
|
992
962
|
var r = e.slice(0, 2);
|
|
993
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
963
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
994
964
|
throw new Error("Malformed concise eng/scientific notation");
|
|
995
965
|
t.minimumIntegerDigits = e.length;
|
|
996
966
|
}
|
|
997
967
|
return t;
|
|
998
968
|
}
|
|
999
|
-
function
|
|
1000
|
-
var t = {}, r =
|
|
969
|
+
function ht(e) {
|
|
970
|
+
var t = {}, r = zt(e);
|
|
1001
971
|
return r || t;
|
|
1002
972
|
}
|
|
1003
|
-
function
|
|
973
|
+
function pn(e) {
|
|
1004
974
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1005
975
|
var i = n[r];
|
|
1006
976
|
switch (i.stem) {
|
|
@@ -1024,7 +994,7 @@ function gn(e) {
|
|
|
1024
994
|
continue;
|
|
1025
995
|
case "measure-unit":
|
|
1026
996
|
case "unit":
|
|
1027
|
-
t.style = "unit", t.unit =
|
|
997
|
+
t.style = "unit", t.unit = dn(i.options[0]);
|
|
1028
998
|
continue;
|
|
1029
999
|
case "compact-short":
|
|
1030
1000
|
case "K":
|
|
@@ -1035,13 +1005,13 @@ function gn(e) {
|
|
|
1035
1005
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1036
1006
|
continue;
|
|
1037
1007
|
case "scientific":
|
|
1038
|
-
t =
|
|
1039
|
-
return
|
|
1008
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1009
|
+
return H(H({}, l), ht(u));
|
|
1040
1010
|
}, {}));
|
|
1041
1011
|
continue;
|
|
1042
1012
|
case "engineering":
|
|
1043
|
-
t =
|
|
1044
|
-
return
|
|
1013
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1014
|
+
return H(H({}, l), ht(u));
|
|
1045
1015
|
}, {}));
|
|
1046
1016
|
continue;
|
|
1047
1017
|
case "notation-simple":
|
|
@@ -1086,45 +1056,45 @@ function gn(e) {
|
|
|
1086
1056
|
case "integer-width":
|
|
1087
1057
|
if (i.options.length > 1)
|
|
1088
1058
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1089
|
-
i.options[0].replace(
|
|
1059
|
+
i.options[0].replace(bn, function(l, u, h, f, c, x) {
|
|
1090
1060
|
if (u)
|
|
1091
1061
|
t.minimumIntegerDigits = h.length;
|
|
1092
1062
|
else {
|
|
1093
|
-
if (
|
|
1063
|
+
if (f && c)
|
|
1094
1064
|
throw new Error("We currently do not support maximum integer digits");
|
|
1095
|
-
if (
|
|
1065
|
+
if (x)
|
|
1096
1066
|
throw new Error("We currently do not support exact integer digits");
|
|
1097
1067
|
}
|
|
1098
1068
|
return "";
|
|
1099
1069
|
});
|
|
1100
1070
|
continue;
|
|
1101
1071
|
}
|
|
1102
|
-
if (
|
|
1072
|
+
if (Vt.test(i.stem)) {
|
|
1103
1073
|
t.minimumIntegerDigits = i.stem.length;
|
|
1104
1074
|
continue;
|
|
1105
1075
|
}
|
|
1106
|
-
if (
|
|
1076
|
+
if (ut.test(i.stem)) {
|
|
1107
1077
|
if (i.options.length > 1)
|
|
1108
1078
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1109
|
-
i.stem.replace(
|
|
1110
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1079
|
+
i.stem.replace(ut, function(l, u, h, f, c, x) {
|
|
1080
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && x ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1111
1081
|
});
|
|
1112
1082
|
var s = i.options[0];
|
|
1113
|
-
s === "w" ? t =
|
|
1083
|
+
s === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = H(H({}, t), lt(s)));
|
|
1114
1084
|
continue;
|
|
1115
1085
|
}
|
|
1116
|
-
if (
|
|
1117
|
-
t =
|
|
1086
|
+
if (jt.test(i.stem)) {
|
|
1087
|
+
t = H(H({}, t), lt(i.stem));
|
|
1118
1088
|
continue;
|
|
1119
1089
|
}
|
|
1120
|
-
var a =
|
|
1121
|
-
a && (t =
|
|
1122
|
-
var o =
|
|
1123
|
-
o && (t =
|
|
1090
|
+
var a = zt(i.stem);
|
|
1091
|
+
a && (t = H(H({}, t), a));
|
|
1092
|
+
var o = gn(i.stem);
|
|
1093
|
+
o && (t = H(H({}, t), o));
|
|
1124
1094
|
}
|
|
1125
1095
|
return t;
|
|
1126
1096
|
}
|
|
1127
|
-
var
|
|
1097
|
+
var _e = {
|
|
1128
1098
|
"001": [
|
|
1129
1099
|
"H",
|
|
1130
1100
|
"h"
|
|
@@ -2539,13 +2509,13 @@ var ye = {
|
|
|
2539
2509
|
"h"
|
|
2540
2510
|
]
|
|
2541
2511
|
};
|
|
2542
|
-
function
|
|
2512
|
+
function yn(e, t) {
|
|
2543
2513
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2544
2514
|
var i = e.charAt(n);
|
|
2545
2515
|
if (i === "j") {
|
|
2546
2516
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2547
2517
|
s++, n++;
|
|
2548
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2518
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = _n(t);
|
|
2549
2519
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2550
2520
|
r += l;
|
|
2551
2521
|
for (; a-- > 0; )
|
|
@@ -2555,7 +2525,7 @@ function pn(e, t) {
|
|
|
2555
2525
|
}
|
|
2556
2526
|
return r;
|
|
2557
2527
|
}
|
|
2558
|
-
function
|
|
2528
|
+
function _n(e) {
|
|
2559
2529
|
var t = e.hourCycle;
|
|
2560
2530
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2561
2531
|
e.hourCycles && // @ts-ignore
|
|
@@ -2574,23 +2544,23 @@ function yn(e) {
|
|
|
2574
2544
|
}
|
|
2575
2545
|
var r = e.language, n;
|
|
2576
2546
|
r !== "root" && (n = e.maximize().region);
|
|
2577
|
-
var i =
|
|
2547
|
+
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
2578
2548
|
return i[0];
|
|
2579
2549
|
}
|
|
2580
|
-
var
|
|
2581
|
-
function
|
|
2550
|
+
var Ue, vn = new RegExp("^".concat($t.source, "*")), En = new RegExp("".concat($t.source, "*$"));
|
|
2551
|
+
function v(e, t) {
|
|
2582
2552
|
return { start: e, end: t };
|
|
2583
2553
|
}
|
|
2584
|
-
var
|
|
2554
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sn = !!String.fromCodePoint, Tn = !!Object.fromEntries, An = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Bn = wn ? Number.isSafeInteger : function(e) {
|
|
2585
2555
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2586
|
-
},
|
|
2556
|
+
}, Xe = !0;
|
|
2587
2557
|
try {
|
|
2588
|
-
var
|
|
2589
|
-
|
|
2558
|
+
var In = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
+
Xe = ((Ue = In.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2590
2560
|
} catch {
|
|
2591
|
-
|
|
2561
|
+
Xe = !1;
|
|
2592
2562
|
}
|
|
2593
|
-
var
|
|
2563
|
+
var ct = xn ? (
|
|
2594
2564
|
// Native
|
|
2595
2565
|
function(t, r, n) {
|
|
2596
2566
|
return t.startsWith(r, n);
|
|
@@ -2600,7 +2570,7 @@ var ht = En ? (
|
|
|
2600
2570
|
function(t, r, n) {
|
|
2601
2571
|
return t.slice(n, n + r.length) === r;
|
|
2602
2572
|
}
|
|
2603
|
-
),
|
|
2573
|
+
), Ze = Sn ? String.fromCodePoint : (
|
|
2604
2574
|
// IE11
|
|
2605
2575
|
function() {
|
|
2606
2576
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2614,7 +2584,7 @@ var ht = En ? (
|
|
|
2614
2584
|
}
|
|
2615
2585
|
), ft = (
|
|
2616
2586
|
// native
|
|
2617
|
-
|
|
2587
|
+
Tn ? Object.fromEntries : (
|
|
2618
2588
|
// Ponyfill
|
|
2619
2589
|
function(t) {
|
|
2620
2590
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2624,7 +2594,7 @@ var ht = En ? (
|
|
|
2624
2594
|
return r;
|
|
2625
2595
|
}
|
|
2626
2596
|
)
|
|
2627
|
-
),
|
|
2597
|
+
), Jt = An ? (
|
|
2628
2598
|
// Native
|
|
2629
2599
|
function(t, r) {
|
|
2630
2600
|
return t.codePointAt(r);
|
|
@@ -2638,7 +2608,7 @@ var ht = En ? (
|
|
|
2638
2608
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2639
2609
|
}
|
|
2640
2610
|
}
|
|
2641
|
-
),
|
|
2611
|
+
), On = Hn ? (
|
|
2642
2612
|
// Native
|
|
2643
2613
|
function(t) {
|
|
2644
2614
|
return t.trimStart();
|
|
@@ -2646,9 +2616,9 @@ var ht = En ? (
|
|
|
2646
2616
|
) : (
|
|
2647
2617
|
// Ponyfill
|
|
2648
2618
|
function(t) {
|
|
2649
|
-
return t.replace(
|
|
2619
|
+
return t.replace(vn, "");
|
|
2650
2620
|
}
|
|
2651
|
-
), Nn =
|
|
2621
|
+
), Nn = Cn ? (
|
|
2652
2622
|
// Native
|
|
2653
2623
|
function(t) {
|
|
2654
2624
|
return t.trimEnd();
|
|
@@ -2656,32 +2626,32 @@ var ht = En ? (
|
|
|
2656
2626
|
) : (
|
|
2657
2627
|
// Ponyfill
|
|
2658
2628
|
function(t) {
|
|
2659
|
-
return t.replace(
|
|
2629
|
+
return t.replace(En, "");
|
|
2660
2630
|
}
|
|
2661
2631
|
);
|
|
2662
|
-
function
|
|
2632
|
+
function Wt(e, t) {
|
|
2663
2633
|
return new RegExp(e, t);
|
|
2664
2634
|
}
|
|
2665
|
-
var
|
|
2666
|
-
if (
|
|
2667
|
-
var
|
|
2668
|
-
|
|
2635
|
+
var qe;
|
|
2636
|
+
if (Xe) {
|
|
2637
|
+
var mt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2638
|
+
qe = function(t, r) {
|
|
2669
2639
|
var n;
|
|
2670
|
-
|
|
2671
|
-
var i =
|
|
2640
|
+
mt.lastIndex = r;
|
|
2641
|
+
var i = mt.exec(t);
|
|
2672
2642
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2673
2643
|
};
|
|
2674
2644
|
} else
|
|
2675
|
-
|
|
2645
|
+
qe = function(t, r) {
|
|
2676
2646
|
for (var n = []; ; ) {
|
|
2677
|
-
var i =
|
|
2678
|
-
if (i === void 0 ||
|
|
2647
|
+
var i = Jt(t, r);
|
|
2648
|
+
if (i === void 0 || Xt(i) || Rn(i))
|
|
2679
2649
|
break;
|
|
2680
2650
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2681
2651
|
}
|
|
2682
|
-
return
|
|
2652
|
+
return Ze.apply(void 0, n);
|
|
2683
2653
|
};
|
|
2684
|
-
var
|
|
2654
|
+
var Pn = (
|
|
2685
2655
|
/** @class */
|
|
2686
2656
|
function() {
|
|
2687
2657
|
function e(t, r) {
|
|
@@ -2705,14 +2675,14 @@ var Mn = (
|
|
|
2705
2675
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2706
2676
|
var o = this.clonePosition();
|
|
2707
2677
|
this.bump(), i.push({
|
|
2708
|
-
type:
|
|
2709
|
-
location:
|
|
2678
|
+
type: A.pound,
|
|
2679
|
+
location: v(o, this.clonePosition())
|
|
2710
2680
|
});
|
|
2711
2681
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2712
2682
|
if (n)
|
|
2713
2683
|
break;
|
|
2714
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2715
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2684
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2685
|
+
} else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
2716
2686
|
var a = this.parseTag(t, r);
|
|
2717
2687
|
if (a.err)
|
|
2718
2688
|
return a;
|
|
@@ -2733,9 +2703,9 @@ var Mn = (
|
|
|
2733
2703
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2734
2704
|
return {
|
|
2735
2705
|
val: {
|
|
2736
|
-
type:
|
|
2706
|
+
type: A.literal,
|
|
2737
2707
|
value: "<".concat(i, "/>"),
|
|
2738
|
-
location:
|
|
2708
|
+
location: v(n, this.clonePosition())
|
|
2739
2709
|
},
|
|
2740
2710
|
err: null
|
|
2741
2711
|
};
|
|
@@ -2745,25 +2715,25 @@ var Mn = (
|
|
|
2745
2715
|
return s;
|
|
2746
2716
|
var a = s.val, o = this.clonePosition();
|
|
2747
2717
|
if (this.bumpIf("</")) {
|
|
2748
|
-
if (this.isEOF() || !
|
|
2749
|
-
return this.error(p.INVALID_TAG,
|
|
2718
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
2719
|
+
return this.error(p.INVALID_TAG, v(o, this.clonePosition()));
|
|
2750
2720
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2751
|
-
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2721
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2752
2722
|
val: {
|
|
2753
|
-
type:
|
|
2723
|
+
type: A.tag,
|
|
2754
2724
|
value: i,
|
|
2755
2725
|
children: a,
|
|
2756
|
-
location:
|
|
2726
|
+
location: v(n, this.clonePosition())
|
|
2757
2727
|
},
|
|
2758
2728
|
err: null
|
|
2759
|
-
} : this.error(p.INVALID_TAG,
|
|
2729
|
+
} : this.error(p.INVALID_TAG, v(o, this.clonePosition())));
|
|
2760
2730
|
} else
|
|
2761
|
-
return this.error(p.UNCLOSED_TAG,
|
|
2731
|
+
return this.error(p.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2762
2732
|
} else
|
|
2763
|
-
return this.error(p.INVALID_TAG,
|
|
2733
|
+
return this.error(p.INVALID_TAG, v(n, this.clonePosition()));
|
|
2764
2734
|
}, e.prototype.parseTagName = function() {
|
|
2765
2735
|
var t = this.offset();
|
|
2766
|
-
for (this.bump(); !this.isEOF() &&
|
|
2736
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2767
2737
|
this.bump();
|
|
2768
2738
|
return this.message.slice(t, this.offset());
|
|
2769
2739
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2785,14 +2755,14 @@ var Mn = (
|
|
|
2785
2755
|
}
|
|
2786
2756
|
break;
|
|
2787
2757
|
}
|
|
2788
|
-
var l =
|
|
2758
|
+
var l = v(n, this.clonePosition());
|
|
2789
2759
|
return {
|
|
2790
|
-
val: { type:
|
|
2760
|
+
val: { type: A.literal, value: i, location: l },
|
|
2791
2761
|
err: null
|
|
2792
2762
|
};
|
|
2793
2763
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2794
2764
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2795
|
-
!
|
|
2765
|
+
!Mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2796
2766
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2797
2767
|
if (this.isEOF() || this.char() !== 39)
|
|
2798
2768
|
return null;
|
|
@@ -2826,49 +2796,49 @@ var Mn = (
|
|
|
2826
2796
|
r.push(n);
|
|
2827
2797
|
this.bump();
|
|
2828
2798
|
}
|
|
2829
|
-
return
|
|
2799
|
+
return Ze.apply(void 0, r);
|
|
2830
2800
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2831
2801
|
if (this.isEOF())
|
|
2832
2802
|
return null;
|
|
2833
2803
|
var n = this.char();
|
|
2834
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2804
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
2835
2805
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2836
2806
|
var n = this.clonePosition();
|
|
2837
2807
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2838
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2808
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2839
2809
|
if (this.char() === 125)
|
|
2840
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
2810
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2841
2811
|
var i = this.parseIdentifierIfPossible().value;
|
|
2842
2812
|
if (!i)
|
|
2843
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2813
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2844
2814
|
if (this.bumpSpace(), this.isEOF())
|
|
2845
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2815
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2846
2816
|
switch (this.char()) {
|
|
2847
2817
|
case 125:
|
|
2848
2818
|
return this.bump(), {
|
|
2849
2819
|
val: {
|
|
2850
|
-
type:
|
|
2820
|
+
type: A.argument,
|
|
2851
2821
|
// value does not include the opening and closing braces.
|
|
2852
2822
|
value: i,
|
|
2853
|
-
location:
|
|
2823
|
+
location: v(n, this.clonePosition())
|
|
2854
2824
|
},
|
|
2855
2825
|
err: null
|
|
2856
2826
|
};
|
|
2857
2827
|
case 44:
|
|
2858
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2828
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2859
2829
|
default:
|
|
2860
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2830
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2861
2831
|
}
|
|
2862
2832
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2863
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2833
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
2864
2834
|
this.bumpTo(i);
|
|
2865
|
-
var s = this.clonePosition(), a =
|
|
2835
|
+
var s = this.clonePosition(), a = v(t, s);
|
|
2866
2836
|
return { value: n, location: a };
|
|
2867
2837
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2868
2838
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2869
2839
|
switch (o) {
|
|
2870
2840
|
case "":
|
|
2871
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
2841
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
2872
2842
|
case "number":
|
|
2873
2843
|
case "date":
|
|
2874
2844
|
case "time": {
|
|
@@ -2876,47 +2846,47 @@ var Mn = (
|
|
|
2876
2846
|
var u = null;
|
|
2877
2847
|
if (this.bumpIf(",")) {
|
|
2878
2848
|
this.bumpSpace();
|
|
2879
|
-
var h = this.clonePosition(),
|
|
2880
|
-
if (
|
|
2881
|
-
return
|
|
2882
|
-
var
|
|
2883
|
-
if (
|
|
2884
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
2885
|
-
var
|
|
2886
|
-
u = { style:
|
|
2849
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2850
|
+
if (f.err)
|
|
2851
|
+
return f;
|
|
2852
|
+
var c = Nn(f.val);
|
|
2853
|
+
if (c.length === 0)
|
|
2854
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2855
|
+
var x = v(h, this.clonePosition());
|
|
2856
|
+
u = { style: c, styleLocation: x };
|
|
2887
2857
|
}
|
|
2888
2858
|
var E = this.tryParseArgumentClose(i);
|
|
2889
2859
|
if (E.err)
|
|
2890
2860
|
return E;
|
|
2891
|
-
var g =
|
|
2892
|
-
if (u &&
|
|
2893
|
-
var y =
|
|
2861
|
+
var g = v(i, this.clonePosition());
|
|
2862
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
2863
|
+
var y = On(u.style.slice(2));
|
|
2894
2864
|
if (o === "number") {
|
|
2895
|
-
var
|
|
2896
|
-
return
|
|
2897
|
-
val: { type:
|
|
2865
|
+
var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
2866
|
+
return f.err ? f : {
|
|
2867
|
+
val: { type: A.number, value: n, location: g, style: f.val },
|
|
2898
2868
|
err: null
|
|
2899
2869
|
};
|
|
2900
2870
|
} else {
|
|
2901
2871
|
if (y.length === 0)
|
|
2902
2872
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2903
|
-
var
|
|
2904
|
-
this.locale && (
|
|
2905
|
-
var
|
|
2906
|
-
type:
|
|
2907
|
-
pattern:
|
|
2873
|
+
var S = y;
|
|
2874
|
+
this.locale && (S = yn(y, this.locale));
|
|
2875
|
+
var c = {
|
|
2876
|
+
type: ne.dateTime,
|
|
2877
|
+
pattern: S,
|
|
2908
2878
|
location: u.styleLocation,
|
|
2909
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2910
|
-
}, d = o === "date" ?
|
|
2879
|
+
parsedOptions: this.shouldParseSkeletons ? cn(S) : {}
|
|
2880
|
+
}, d = o === "date" ? A.date : A.time;
|
|
2911
2881
|
return {
|
|
2912
|
-
val: { type: d, value: n, location: g, style:
|
|
2882
|
+
val: { type: d, value: n, location: g, style: c },
|
|
2913
2883
|
err: null
|
|
2914
2884
|
};
|
|
2915
2885
|
}
|
|
2916
2886
|
}
|
|
2917
2887
|
return {
|
|
2918
2888
|
val: {
|
|
2919
|
-
type: o === "number" ?
|
|
2889
|
+
type: o === "number" ? A.number : o === "date" ? A.date : A.time,
|
|
2920
2890
|
value: n,
|
|
2921
2891
|
location: g,
|
|
2922
2892
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2929,17 +2899,17 @@ var Mn = (
|
|
|
2929
2899
|
case "select": {
|
|
2930
2900
|
var _ = this.clonePosition();
|
|
2931
2901
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2932
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2902
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(_, Se({}, _)));
|
|
2933
2903
|
this.bumpSpace();
|
|
2934
|
-
var B = this.parseIdentifierIfPossible(),
|
|
2904
|
+
var B = this.parseIdentifierIfPossible(), M = 0;
|
|
2935
2905
|
if (o !== "select" && B.value === "offset") {
|
|
2936
2906
|
if (!this.bumpIf(":"))
|
|
2937
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2907
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
2938
2908
|
this.bumpSpace();
|
|
2939
|
-
var
|
|
2940
|
-
if (
|
|
2941
|
-
return
|
|
2942
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(),
|
|
2909
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2910
|
+
if (f.err)
|
|
2911
|
+
return f;
|
|
2912
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), M = f.val;
|
|
2943
2913
|
}
|
|
2944
2914
|
var k = this.tryParsePluralOrSelectOptions(t, o, r, B);
|
|
2945
2915
|
if (k.err)
|
|
@@ -2947,10 +2917,10 @@ var Mn = (
|
|
|
2947
2917
|
var E = this.tryParseArgumentClose(i);
|
|
2948
2918
|
if (E.err)
|
|
2949
2919
|
return E;
|
|
2950
|
-
var L =
|
|
2920
|
+
var L = v(i, this.clonePosition());
|
|
2951
2921
|
return o === "select" ? {
|
|
2952
2922
|
val: {
|
|
2953
|
-
type:
|
|
2923
|
+
type: A.select,
|
|
2954
2924
|
value: n,
|
|
2955
2925
|
options: ft(k.val),
|
|
2956
2926
|
location: L
|
|
@@ -2958,10 +2928,10 @@ var Mn = (
|
|
|
2958
2928
|
err: null
|
|
2959
2929
|
} : {
|
|
2960
2930
|
val: {
|
|
2961
|
-
type:
|
|
2931
|
+
type: A.plural,
|
|
2962
2932
|
value: n,
|
|
2963
2933
|
options: ft(k.val),
|
|
2964
|
-
offset:
|
|
2934
|
+
offset: M,
|
|
2965
2935
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2966
2936
|
location: L
|
|
2967
2937
|
},
|
|
@@ -2969,10 +2939,10 @@ var Mn = (
|
|
|
2969
2939
|
};
|
|
2970
2940
|
}
|
|
2971
2941
|
default:
|
|
2972
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
2942
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
2973
2943
|
}
|
|
2974
2944
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2975
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2945
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2976
2946
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2977
2947
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2978
2948
|
var n = this.char();
|
|
@@ -2981,7 +2951,7 @@ var Mn = (
|
|
|
2981
2951
|
this.bump();
|
|
2982
2952
|
var i = this.clonePosition();
|
|
2983
2953
|
if (!this.bumpUntil("'"))
|
|
2984
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2954
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
2985
2955
|
this.bump();
|
|
2986
2956
|
break;
|
|
2987
2957
|
}
|
|
@@ -3011,52 +2981,52 @@ var Mn = (
|
|
|
3011
2981
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3012
2982
|
var n = [];
|
|
3013
2983
|
try {
|
|
3014
|
-
n =
|
|
2984
|
+
n = mn(t);
|
|
3015
2985
|
} catch {
|
|
3016
2986
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3017
2987
|
}
|
|
3018
2988
|
return {
|
|
3019
2989
|
val: {
|
|
3020
|
-
type:
|
|
2990
|
+
type: ne.number,
|
|
3021
2991
|
tokens: n,
|
|
3022
2992
|
location: r,
|
|
3023
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2993
|
+
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
3024
2994
|
},
|
|
3025
2995
|
err: null
|
|
3026
2996
|
};
|
|
3027
2997
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3028
2998
|
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3029
2999
|
if (u.length === 0) {
|
|
3030
|
-
var
|
|
3000
|
+
var f = this.clonePosition();
|
|
3031
3001
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3032
|
-
var
|
|
3033
|
-
if (
|
|
3034
|
-
return
|
|
3035
|
-
h =
|
|
3002
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3003
|
+
if (c.err)
|
|
3004
|
+
return c;
|
|
3005
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3036
3006
|
} else
|
|
3037
3007
|
break;
|
|
3038
3008
|
}
|
|
3039
3009
|
if (l.has(u))
|
|
3040
3010
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3041
3011
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3042
|
-
var
|
|
3012
|
+
var x = this.clonePosition();
|
|
3043
3013
|
if (!this.bumpIf("{"))
|
|
3044
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3014
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3045
3015
|
var E = this.parseMessage(t + 1, r, n);
|
|
3046
3016
|
if (E.err)
|
|
3047
3017
|
return E;
|
|
3048
|
-
var g = this.tryParseArgumentClose(
|
|
3018
|
+
var g = this.tryParseArgumentClose(x);
|
|
3049
3019
|
if (g.err)
|
|
3050
3020
|
return g;
|
|
3051
3021
|
o.push([
|
|
3052
3022
|
u,
|
|
3053
3023
|
{
|
|
3054
3024
|
value: E.val,
|
|
3055
|
-
location: x
|
|
3025
|
+
location: v(x, this.clonePosition())
|
|
3056
3026
|
}
|
|
3057
3027
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3058
3028
|
}
|
|
3059
|
-
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3029
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3060
3030
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3061
3031
|
var n = 1, i = this.clonePosition();
|
|
3062
3032
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3067,8 +3037,8 @@ var Mn = (
|
|
|
3067
3037
|
else
|
|
3068
3038
|
break;
|
|
3069
3039
|
}
|
|
3070
|
-
var l =
|
|
3071
|
-
return s ? (a *= n,
|
|
3040
|
+
var l = v(i, this.clonePosition());
|
|
3041
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3072
3042
|
}, e.prototype.offset = function() {
|
|
3073
3043
|
return this.position.offset;
|
|
3074
3044
|
}, e.prototype.isEOF = function() {
|
|
@@ -3083,7 +3053,7 @@ var Mn = (
|
|
|
3083
3053
|
var t = this.position.offset;
|
|
3084
3054
|
if (t >= this.message.length)
|
|
3085
3055
|
throw Error("out of bound");
|
|
3086
|
-
var r =
|
|
3056
|
+
var r = Jt(this.message, t);
|
|
3087
3057
|
if (r === void 0)
|
|
3088
3058
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3089
3059
|
return r;
|
|
@@ -3102,7 +3072,7 @@ var Mn = (
|
|
|
3102
3072
|
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);
|
|
3103
3073
|
}
|
|
3104
3074
|
}, e.prototype.bumpIf = function(t) {
|
|
3105
|
-
if (
|
|
3075
|
+
if (ct(this.message, t, this.offset())) {
|
|
3106
3076
|
for (var r = 0; r < t.length; r++)
|
|
3107
3077
|
this.bump();
|
|
3108
3078
|
return !0;
|
|
@@ -3124,7 +3094,7 @@ var Mn = (
|
|
|
3124
3094
|
break;
|
|
3125
3095
|
}
|
|
3126
3096
|
}, e.prototype.bumpSpace = function() {
|
|
3127
|
-
for (; !this.isEOF() &&
|
|
3097
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3128
3098
|
this.bump();
|
|
3129
3099
|
}, e.prototype.peek = function() {
|
|
3130
3100
|
if (this.isEOF())
|
|
@@ -3134,47 +3104,47 @@ var Mn = (
|
|
|
3134
3104
|
}, e;
|
|
3135
3105
|
}()
|
|
3136
3106
|
);
|
|
3137
|
-
function
|
|
3107
|
+
function Qe(e) {
|
|
3138
3108
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3139
3109
|
}
|
|
3140
|
-
function
|
|
3141
|
-
return
|
|
3110
|
+
function Mn(e) {
|
|
3111
|
+
return Qe(e) || e === 47;
|
|
3142
3112
|
}
|
|
3143
|
-
function
|
|
3113
|
+
function Ln(e) {
|
|
3144
3114
|
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;
|
|
3145
3115
|
}
|
|
3146
|
-
function
|
|
3116
|
+
function Xt(e) {
|
|
3147
3117
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3148
3118
|
}
|
|
3149
|
-
function
|
|
3119
|
+
function Rn(e) {
|
|
3150
3120
|
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;
|
|
3151
3121
|
}
|
|
3152
|
-
function
|
|
3122
|
+
function Ye(e) {
|
|
3153
3123
|
e.forEach(function(t) {
|
|
3154
|
-
if (delete t.location,
|
|
3124
|
+
if (delete t.location, kt(t) || Ut(t))
|
|
3155
3125
|
for (var r in t.options)
|
|
3156
|
-
delete t.options[r].location,
|
|
3126
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
|
3157
3127
|
else
|
|
3158
|
-
|
|
3128
|
+
Lt(t) && Gt(t.style) || (Rt(t) || Dt(t)) && We(t.style) ? delete t.style.location : Ft(t) && Ye(t.children);
|
|
3159
3129
|
});
|
|
3160
3130
|
}
|
|
3161
|
-
function
|
|
3162
|
-
t === void 0 && (t = {}), t =
|
|
3163
|
-
var r = new
|
|
3131
|
+
function Dn(e, t) {
|
|
3132
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3133
|
+
var r = new Pn(e, t).parse();
|
|
3164
3134
|
if (r.err) {
|
|
3165
3135
|
var n = SyntaxError(p[r.err.kind]);
|
|
3166
3136
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3167
3137
|
}
|
|
3168
|
-
return t?.captureLocation ||
|
|
3138
|
+
return t?.captureLocation || Ye(r.val), r.val;
|
|
3169
3139
|
}
|
|
3170
|
-
var
|
|
3140
|
+
var ie;
|
|
3171
3141
|
(function(e) {
|
|
3172
3142
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3173
|
-
})(
|
|
3174
|
-
var
|
|
3143
|
+
})(ie || (ie = {}));
|
|
3144
|
+
var we = (
|
|
3175
3145
|
/** @class */
|
|
3176
3146
|
function(e) {
|
|
3177
|
-
|
|
3147
|
+
Ce(t, e);
|
|
3178
3148
|
function t(r, n, i) {
|
|
3179
3149
|
var s = e.call(this, r) || this;
|
|
3180
3150
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3183,48 +3153,48 @@ var He = (
|
|
|
3183
3153
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3184
3154
|
}, t;
|
|
3185
3155
|
}(Error)
|
|
3186
|
-
),
|
|
3156
|
+
), dt = (
|
|
3187
3157
|
/** @class */
|
|
3188
3158
|
function(e) {
|
|
3189
|
-
|
|
3159
|
+
Ce(t, e);
|
|
3190
3160
|
function t(r, n, i, s) {
|
|
3191
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3161
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
|
|
3192
3162
|
}
|
|
3193
3163
|
return t;
|
|
3194
|
-
}(
|
|
3195
|
-
),
|
|
3164
|
+
}(we)
|
|
3165
|
+
), kn = (
|
|
3196
3166
|
/** @class */
|
|
3197
3167
|
function(e) {
|
|
3198
|
-
|
|
3168
|
+
Ce(t, e);
|
|
3199
3169
|
function t(r, n, i) {
|
|
3200
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3170
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3201
3171
|
}
|
|
3202
3172
|
return t;
|
|
3203
|
-
}(
|
|
3204
|
-
),
|
|
3173
|
+
}(we)
|
|
3174
|
+
), Un = (
|
|
3205
3175
|
/** @class */
|
|
3206
3176
|
function(e) {
|
|
3207
|
-
|
|
3177
|
+
Ce(t, e);
|
|
3208
3178
|
function t(r, n) {
|
|
3209
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3179
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3210
3180
|
}
|
|
3211
3181
|
return t;
|
|
3212
|
-
}(
|
|
3182
|
+
}(we)
|
|
3213
3183
|
), R;
|
|
3214
3184
|
(function(e) {
|
|
3215
3185
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3216
3186
|
})(R || (R = {}));
|
|
3217
|
-
function
|
|
3187
|
+
function Fn(e) {
|
|
3218
3188
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3219
3189
|
var n = t[t.length - 1];
|
|
3220
3190
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3221
3191
|
}, []);
|
|
3222
3192
|
}
|
|
3223
|
-
function
|
|
3193
|
+
function Gn(e) {
|
|
3224
3194
|
return typeof e == "function";
|
|
3225
3195
|
}
|
|
3226
|
-
function
|
|
3227
|
-
if (e.length === 1 &&
|
|
3196
|
+
function Ee(e, t, r, n, i, s, a) {
|
|
3197
|
+
if (e.length === 1 && ot(e[0]))
|
|
3228
3198
|
return [
|
|
3229
3199
|
{
|
|
3230
3200
|
type: R.literal,
|
|
@@ -3233,105 +3203,105 @@ function xe(e, t, r, n, i, s, a) {
|
|
|
3233
3203
|
];
|
|
3234
3204
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3235
3205
|
var h = u[l];
|
|
3236
|
-
if (
|
|
3206
|
+
if (ot(h)) {
|
|
3237
3207
|
o.push({
|
|
3238
3208
|
type: R.literal,
|
|
3239
3209
|
value: h.value
|
|
3240
3210
|
});
|
|
3241
3211
|
continue;
|
|
3242
3212
|
}
|
|
3243
|
-
if (
|
|
3213
|
+
if (ln(h)) {
|
|
3244
3214
|
typeof s == "number" && o.push({
|
|
3245
3215
|
type: R.literal,
|
|
3246
3216
|
value: r.getNumberFormat(t).format(s)
|
|
3247
3217
|
});
|
|
3248
3218
|
continue;
|
|
3249
3219
|
}
|
|
3250
|
-
var
|
|
3251
|
-
if (!(i &&
|
|
3252
|
-
throw new
|
|
3253
|
-
var
|
|
3254
|
-
if (
|
|
3255
|
-
(!
|
|
3256
|
-
type: typeof
|
|
3257
|
-
value:
|
|
3220
|
+
var f = h.value;
|
|
3221
|
+
if (!(i && f in i))
|
|
3222
|
+
throw new Un(f, a);
|
|
3223
|
+
var c = i[f];
|
|
3224
|
+
if (un(h)) {
|
|
3225
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3226
|
+
type: typeof c == "string" ? R.literal : R.object,
|
|
3227
|
+
value: c
|
|
3258
3228
|
});
|
|
3259
3229
|
continue;
|
|
3260
3230
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var
|
|
3231
|
+
if (Rt(h)) {
|
|
3232
|
+
var x = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3263
3233
|
o.push({
|
|
3264
3234
|
type: R.literal,
|
|
3265
|
-
value: r.getDateTimeFormat(t,
|
|
3235
|
+
value: r.getDateTimeFormat(t, x).format(c)
|
|
3266
3236
|
});
|
|
3267
3237
|
continue;
|
|
3268
3238
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
var
|
|
3239
|
+
if (Dt(h)) {
|
|
3240
|
+
var x = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3271
3241
|
o.push({
|
|
3272
3242
|
type: R.literal,
|
|
3273
|
-
value: r.getDateTimeFormat(t,
|
|
3243
|
+
value: r.getDateTimeFormat(t, x).format(c)
|
|
3274
3244
|
});
|
|
3275
3245
|
continue;
|
|
3276
3246
|
}
|
|
3277
|
-
if (
|
|
3278
|
-
var
|
|
3279
|
-
|
|
3247
|
+
if (Lt(h)) {
|
|
3248
|
+
var x = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3249
|
+
x && x.scale && (c = c * (x.scale || 1)), o.push({
|
|
3280
3250
|
type: R.literal,
|
|
3281
|
-
value: r.getNumberFormat(t,
|
|
3251
|
+
value: r.getNumberFormat(t, x).format(c)
|
|
3282
3252
|
});
|
|
3283
3253
|
continue;
|
|
3284
3254
|
}
|
|
3285
|
-
if (
|
|
3255
|
+
if (Ft(h)) {
|
|
3286
3256
|
var E = h.children, g = h.value, y = i[g];
|
|
3287
|
-
if (!
|
|
3288
|
-
throw new
|
|
3289
|
-
var
|
|
3290
|
-
return
|
|
3257
|
+
if (!Gn(y))
|
|
3258
|
+
throw new kn(g, "function", a);
|
|
3259
|
+
var S = Ee(E, t, r, n, i, s), d = y(S.map(function(M) {
|
|
3260
|
+
return M.value;
|
|
3291
3261
|
}));
|
|
3292
|
-
Array.isArray(d) || (d = [d]), o.push.apply(o, d.map(function(
|
|
3262
|
+
Array.isArray(d) || (d = [d]), o.push.apply(o, d.map(function(M) {
|
|
3293
3263
|
return {
|
|
3294
|
-
type: typeof
|
|
3295
|
-
value:
|
|
3264
|
+
type: typeof M == "string" ? R.literal : R.object,
|
|
3265
|
+
value: M
|
|
3296
3266
|
};
|
|
3297
3267
|
}));
|
|
3298
3268
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
var _ = h.options[
|
|
3269
|
+
if (kt(h)) {
|
|
3270
|
+
var _ = h.options[c] || h.options.other;
|
|
3301
3271
|
if (!_)
|
|
3302
|
-
throw new
|
|
3303
|
-
o.push.apply(o,
|
|
3272
|
+
throw new dt(h.value, c, Object.keys(h.options), a);
|
|
3273
|
+
o.push.apply(o, Ee(_.value, t, r, n, i));
|
|
3304
3274
|
continue;
|
|
3305
3275
|
}
|
|
3306
|
-
if (
|
|
3307
|
-
var _ = h.options["=".concat(
|
|
3276
|
+
if (Ut(h)) {
|
|
3277
|
+
var _ = h.options["=".concat(c)];
|
|
3308
3278
|
if (!_) {
|
|
3309
3279
|
if (!Intl.PluralRules)
|
|
3310
|
-
throw new
|
|
3280
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3311
3281
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3312
|
-
`,
|
|
3313
|
-
var B = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3282
|
+
`, ie.MISSING_INTL_API, a);
|
|
3283
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3314
3284
|
_ = h.options[B] || h.options.other;
|
|
3315
3285
|
}
|
|
3316
3286
|
if (!_)
|
|
3317
|
-
throw new
|
|
3318
|
-
o.push.apply(o,
|
|
3287
|
+
throw new dt(h.value, c, Object.keys(h.options), a);
|
|
3288
|
+
o.push.apply(o, Ee(_.value, t, r, n, i, c - (h.offset || 0)));
|
|
3319
3289
|
continue;
|
|
3320
3290
|
}
|
|
3321
3291
|
}
|
|
3322
|
-
return
|
|
3292
|
+
return Fn(o);
|
|
3323
3293
|
}
|
|
3324
|
-
function
|
|
3325
|
-
return t ?
|
|
3326
|
-
return r[n] =
|
|
3294
|
+
function $n(e, t) {
|
|
3295
|
+
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3296
|
+
return r[n] = $($({}, e[n]), t[n] || {}), r;
|
|
3327
3297
|
}, {})) : e;
|
|
3328
3298
|
}
|
|
3329
|
-
function
|
|
3299
|
+
function jn(e, t) {
|
|
3330
3300
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3331
|
-
return r[n] =
|
|
3332
|
-
},
|
|
3301
|
+
return r[n] = $n(e[n], t[n]), r;
|
|
3302
|
+
}, $({}, e)) : e;
|
|
3333
3303
|
}
|
|
3334
|
-
function
|
|
3304
|
+
function Fe(e) {
|
|
3335
3305
|
return {
|
|
3336
3306
|
create: function() {
|
|
3337
3307
|
return {
|
|
@@ -3345,39 +3315,39 @@ function ke(e) {
|
|
|
3345
3315
|
}
|
|
3346
3316
|
};
|
|
3347
3317
|
}
|
|
3348
|
-
function
|
|
3318
|
+
function Vn(e) {
|
|
3349
3319
|
return e === void 0 && (e = {
|
|
3350
3320
|
number: {},
|
|
3351
3321
|
dateTime: {},
|
|
3352
3322
|
pluralRules: {}
|
|
3353
3323
|
}), {
|
|
3354
|
-
getNumberFormat:
|
|
3324
|
+
getNumberFormat: De(function() {
|
|
3355
3325
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3356
3326
|
r[n] = arguments[n];
|
|
3357
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3327
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3358
3328
|
}, {
|
|
3359
|
-
cache:
|
|
3360
|
-
strategy:
|
|
3329
|
+
cache: Fe(e.number),
|
|
3330
|
+
strategy: ke.variadic
|
|
3361
3331
|
}),
|
|
3362
|
-
getDateTimeFormat:
|
|
3332
|
+
getDateTimeFormat: De(function() {
|
|
3363
3333
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3364
3334
|
r[n] = arguments[n];
|
|
3365
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3366
3336
|
}, {
|
|
3367
|
-
cache:
|
|
3368
|
-
strategy:
|
|
3337
|
+
cache: Fe(e.dateTime),
|
|
3338
|
+
strategy: ke.variadic
|
|
3369
3339
|
}),
|
|
3370
|
-
getPluralRules:
|
|
3340
|
+
getPluralRules: De(function() {
|
|
3371
3341
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3372
3342
|
r[n] = arguments[n];
|
|
3373
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3343
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
3374
3344
|
}, {
|
|
3375
|
-
cache:
|
|
3376
|
-
strategy:
|
|
3345
|
+
cache: Fe(e.pluralRules),
|
|
3346
|
+
strategy: ke.variadic
|
|
3377
3347
|
})
|
|
3378
3348
|
};
|
|
3379
3349
|
}
|
|
3380
|
-
var
|
|
3350
|
+
var zn = (
|
|
3381
3351
|
/** @class */
|
|
3382
3352
|
function() {
|
|
3383
3353
|
function e(t, r, n, i) {
|
|
@@ -3391,12 +3361,12 @@ var Vn = (
|
|
|
3391
3361
|
var u = s.formatToParts(l);
|
|
3392
3362
|
if (u.length === 1)
|
|
3393
3363
|
return u[0].value;
|
|
3394
|
-
var h = u.reduce(function(
|
|
3395
|
-
return !
|
|
3364
|
+
var h = u.reduce(function(f, c) {
|
|
3365
|
+
return !f.length || c.type !== R.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3396
3366
|
}, []);
|
|
3397
3367
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3398
3368
|
}, this.formatToParts = function(l) {
|
|
3399
|
-
return
|
|
3369
|
+
return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3400
3370
|
}, this.resolvedOptions = function() {
|
|
3401
3371
|
var l;
|
|
3402
3372
|
return {
|
|
@@ -3409,13 +3379,13 @@ var Vn = (
|
|
|
3409
3379
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3410
3380
|
var a = i || {};
|
|
3411
3381
|
a.formatters;
|
|
3412
|
-
var o =
|
|
3413
|
-
this.ast = e.__parse(t,
|
|
3382
|
+
var o = Kr(a, ["formatters"]);
|
|
3383
|
+
this.ast = e.__parse(t, $($({}, o), { locale: this.resolvedLocale }));
|
|
3414
3384
|
} else
|
|
3415
3385
|
this.ast = t;
|
|
3416
3386
|
if (!Array.isArray(this.ast))
|
|
3417
3387
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3418
|
-
this.formats =
|
|
3388
|
+
this.formats = jn(e.formats, n), this.formatters = i && i.formatters || Vn(this.formatterCache);
|
|
3419
3389
|
}
|
|
3420
3390
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3421
3391
|
get: function() {
|
|
@@ -3428,7 +3398,7 @@ var Vn = (
|
|
|
3428
3398
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3429
3399
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3430
3400
|
}
|
|
3431
|
-
}, e.__parse =
|
|
3401
|
+
}, e.__parse = Dn, e.formats = {
|
|
3432
3402
|
number: {
|
|
3433
3403
|
integer: {
|
|
3434
3404
|
maximumFractionDigits: 0
|
|
@@ -3489,7 +3459,7 @@ var Vn = (
|
|
|
3489
3459
|
}, e;
|
|
3490
3460
|
}()
|
|
3491
3461
|
);
|
|
3492
|
-
function
|
|
3462
|
+
function Jn(e, t) {
|
|
3493
3463
|
if (t == null)
|
|
3494
3464
|
return;
|
|
3495
3465
|
if (t in e)
|
|
@@ -3510,92 +3480,92 @@ function zn(e, t) {
|
|
|
3510
3480
|
n = void 0;
|
|
3511
3481
|
return n;
|
|
3512
3482
|
}
|
|
3513
|
-
const
|
|
3483
|
+
const j = {}, Wn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Zt = (e, t) => {
|
|
3514
3484
|
if (t == null)
|
|
3515
3485
|
return;
|
|
3516
|
-
if (t in
|
|
3517
|
-
return
|
|
3518
|
-
const r =
|
|
3486
|
+
if (t in j && e in j[t])
|
|
3487
|
+
return j[t][e];
|
|
3488
|
+
const r = Be(t);
|
|
3519
3489
|
for (let n = 0; n < r.length; n++) {
|
|
3520
|
-
const i = r[n], s =
|
|
3490
|
+
const i = r[n], s = Zn(i, e);
|
|
3521
3491
|
if (s)
|
|
3522
|
-
return
|
|
3492
|
+
return Wn(e, t, s);
|
|
3523
3493
|
}
|
|
3524
3494
|
};
|
|
3525
|
-
let
|
|
3526
|
-
const
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3495
|
+
let tt;
|
|
3496
|
+
const oe = He({});
|
|
3497
|
+
function Xn(e) {
|
|
3498
|
+
return tt[e] || null;
|
|
3529
3499
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return e in
|
|
3500
|
+
function qt(e) {
|
|
3501
|
+
return e in tt;
|
|
3532
3502
|
}
|
|
3533
|
-
function
|
|
3534
|
-
if (!
|
|
3503
|
+
function Zn(e, t) {
|
|
3504
|
+
if (!qt(e))
|
|
3535
3505
|
return null;
|
|
3536
|
-
const r =
|
|
3537
|
-
return
|
|
3506
|
+
const r = Xn(e);
|
|
3507
|
+
return Jn(r, t);
|
|
3538
3508
|
}
|
|
3539
|
-
function
|
|
3509
|
+
function qn(e) {
|
|
3540
3510
|
if (e == null)
|
|
3541
3511
|
return;
|
|
3542
|
-
const t =
|
|
3512
|
+
const t = Be(e);
|
|
3543
3513
|
for (let r = 0; r < t.length; r++) {
|
|
3544
3514
|
const n = t[r];
|
|
3545
|
-
if (
|
|
3515
|
+
if (qt(n))
|
|
3546
3516
|
return n;
|
|
3547
3517
|
}
|
|
3548
3518
|
}
|
|
3549
|
-
function
|
|
3550
|
-
delete
|
|
3519
|
+
function Qt(e, ...t) {
|
|
3520
|
+
delete j[e], oe.update((r) => (r[e] = Yr.all([r[e] || {}, ...t]), r));
|
|
3551
3521
|
}
|
|
3552
|
-
|
|
3553
|
-
[
|
|
3522
|
+
ae(
|
|
3523
|
+
[oe],
|
|
3554
3524
|
([e]) => Object.keys(e)
|
|
3555
3525
|
);
|
|
3556
|
-
|
|
3557
|
-
const
|
|
3558
|
-
function
|
|
3559
|
-
|
|
3526
|
+
oe.subscribe((e) => tt = e);
|
|
3527
|
+
const xe = {};
|
|
3528
|
+
function Qn(e, t) {
|
|
3529
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3560
3530
|
}
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3531
|
+
function Yt(e) {
|
|
3532
|
+
return xe[e];
|
|
3563
3533
|
}
|
|
3564
|
-
function
|
|
3565
|
-
return
|
|
3566
|
-
const r =
|
|
3534
|
+
function Yn(e) {
|
|
3535
|
+
return Be(e).map((t) => {
|
|
3536
|
+
const r = Yt(t);
|
|
3567
3537
|
return [t, r ? [...r] : []];
|
|
3568
3538
|
}).filter(([, t]) => t.length > 0);
|
|
3569
3539
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return e == null ? !1 :
|
|
3540
|
+
function Ke(e) {
|
|
3541
|
+
return e == null ? !1 : Be(e).some(
|
|
3572
3542
|
(t) => {
|
|
3573
3543
|
var r;
|
|
3574
|
-
return (r =
|
|
3544
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3575
3545
|
}
|
|
3576
3546
|
);
|
|
3577
3547
|
}
|
|
3578
|
-
function
|
|
3548
|
+
function Kn(e, t) {
|
|
3579
3549
|
return Promise.all(
|
|
3580
|
-
t.map((n) => (
|
|
3581
|
-
).then((n) =>
|
|
3582
|
-
}
|
|
3583
|
-
const
|
|
3584
|
-
function
|
|
3585
|
-
if (!
|
|
3586
|
-
return e in
|
|
3587
|
-
const t =
|
|
3588
|
-
return
|
|
3550
|
+
t.map((n) => (Qn(e, n), n().then((i) => i.default || i)))
|
|
3551
|
+
).then((n) => Qt(e, ...n));
|
|
3552
|
+
}
|
|
3553
|
+
const he = {};
|
|
3554
|
+
function Kt(e) {
|
|
3555
|
+
if (!Ke(e))
|
|
3556
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3557
|
+
const t = Yn(e);
|
|
3558
|
+
return he[e] = Promise.all(
|
|
3589
3559
|
t.map(
|
|
3590
|
-
([r, n]) =>
|
|
3560
|
+
([r, n]) => Kn(r, n)
|
|
3591
3561
|
)
|
|
3592
3562
|
).then(() => {
|
|
3593
|
-
if (
|
|
3594
|
-
return
|
|
3595
|
-
delete
|
|
3596
|
-
}),
|
|
3563
|
+
if (Ke(e))
|
|
3564
|
+
return Kt(e);
|
|
3565
|
+
delete he[e];
|
|
3566
|
+
}), he[e];
|
|
3597
3567
|
}
|
|
3598
|
-
const
|
|
3568
|
+
const ei = {
|
|
3599
3569
|
number: {
|
|
3600
3570
|
scientific: { notation: "scientific" },
|
|
3601
3571
|
engineering: { notation: "engineering" },
|
|
@@ -3624,178 +3594,178 @@ const Kn = {
|
|
|
3624
3594
|
timeZoneName: "short"
|
|
3625
3595
|
}
|
|
3626
3596
|
}
|
|
3627
|
-
},
|
|
3597
|
+
}, ti = {
|
|
3628
3598
|
fallbackLocale: null,
|
|
3629
3599
|
loadingDelay: 200,
|
|
3630
|
-
formats:
|
|
3600
|
+
formats: ei,
|
|
3631
3601
|
warnOnMissingMessages: !0,
|
|
3632
3602
|
handleMissingMessage: void 0,
|
|
3633
3603
|
ignoreTag: !0
|
|
3634
|
-
},
|
|
3635
|
-
function
|
|
3636
|
-
return
|
|
3637
|
-
}
|
|
3638
|
-
const
|
|
3639
|
-
var
|
|
3640
|
-
for (var r in t)
|
|
3641
|
-
|
|
3642
|
-
if (
|
|
3643
|
-
for (var r of
|
|
3644
|
-
|
|
3604
|
+
}, ri = ti;
|
|
3605
|
+
function se() {
|
|
3606
|
+
return ri;
|
|
3607
|
+
}
|
|
3608
|
+
const Ge = He(!1);
|
|
3609
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3610
|
+
for (var r in t || (t = {}))
|
|
3611
|
+
ai.call(t, r) && gt(e, r, t[r]);
|
|
3612
|
+
if (bt)
|
|
3613
|
+
for (var r of bt(t))
|
|
3614
|
+
oi.call(t, r) && gt(e, r, t[r]);
|
|
3645
3615
|
return e;
|
|
3646
|
-
},
|
|
3647
|
-
let
|
|
3648
|
-
const
|
|
3649
|
-
function
|
|
3616
|
+
}, li = (e, t) => ii(e, si(t));
|
|
3617
|
+
let et;
|
|
3618
|
+
const Te = He(null);
|
|
3619
|
+
function pt(e) {
|
|
3650
3620
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3651
3621
|
}
|
|
3652
|
-
function
|
|
3653
|
-
const r =
|
|
3654
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3622
|
+
function Be(e, t = se().fallbackLocale) {
|
|
3623
|
+
const r = pt(e);
|
|
3624
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3655
3625
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return
|
|
3626
|
+
function W() {
|
|
3627
|
+
return et ?? void 0;
|
|
3658
3628
|
}
|
|
3659
|
-
|
|
3660
|
-
|
|
3629
|
+
Te.subscribe((e) => {
|
|
3630
|
+
et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3661
3631
|
});
|
|
3662
|
-
const
|
|
3663
|
-
if (e &&
|
|
3664
|
-
const { loadingDelay: t } =
|
|
3632
|
+
const hi = (e) => {
|
|
3633
|
+
if (e && qn(e) && Ke(e)) {
|
|
3634
|
+
const { loadingDelay: t } = se();
|
|
3665
3635
|
let r;
|
|
3666
|
-
return typeof window < "u" &&
|
|
3667
|
-
() =>
|
|
3636
|
+
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
3637
|
+
() => Ge.set(!0),
|
|
3668
3638
|
t
|
|
3669
|
-
) :
|
|
3670
|
-
|
|
3639
|
+
) : Ge.set(!0), Kt(e).then(() => {
|
|
3640
|
+
Te.set(e);
|
|
3671
3641
|
}).finally(() => {
|
|
3672
|
-
clearTimeout(r),
|
|
3642
|
+
clearTimeout(r), Ge.set(!1);
|
|
3673
3643
|
});
|
|
3674
3644
|
}
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
-
set:
|
|
3678
|
-
}),
|
|
3645
|
+
return Te.set(e);
|
|
3646
|
+
}, V = li(ui({}, Te), {
|
|
3647
|
+
set: hi
|
|
3648
|
+
}), Ie = (e) => {
|
|
3679
3649
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3650
|
return (n) => {
|
|
3681
3651
|
const i = JSON.stringify(n);
|
|
3682
3652
|
return i in t ? t[i] : t[i] = e(n);
|
|
3683
3653
|
};
|
|
3684
3654
|
};
|
|
3685
|
-
var
|
|
3655
|
+
var ci = Object.defineProperty, Ae = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
3686
3656
|
for (var r in t || (t = {}))
|
|
3687
|
-
|
|
3688
|
-
if (
|
|
3689
|
-
for (var r of
|
|
3690
|
-
|
|
3657
|
+
er.call(t, r) && yt(e, r, t[r]);
|
|
3658
|
+
if (Ae)
|
|
3659
|
+
for (var r of Ae(t))
|
|
3660
|
+
tr.call(t, r) && yt(e, r, t[r]);
|
|
3691
3661
|
return e;
|
|
3692
|
-
},
|
|
3662
|
+
}, ue = (e, t) => {
|
|
3693
3663
|
var r = {};
|
|
3694
3664
|
for (var n in e)
|
|
3695
|
-
|
|
3696
|
-
if (e != null &&
|
|
3697
|
-
for (var n of
|
|
3698
|
-
t.indexOf(n) < 0 &&
|
|
3665
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3666
|
+
if (e != null && Ae)
|
|
3667
|
+
for (var n of Ae(e))
|
|
3668
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3699
3669
|
return r;
|
|
3700
3670
|
};
|
|
3701
|
-
const
|
|
3702
|
-
const { formats: r } =
|
|
3671
|
+
const de = (e, t) => {
|
|
3672
|
+
const { formats: r } = se();
|
|
3703
3673
|
if (e in r && t in r[e])
|
|
3704
3674
|
return r[e][t];
|
|
3705
3675
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
|
-
}, fi =
|
|
3676
|
+
}, fi = Ie(
|
|
3707
3677
|
(e) => {
|
|
3708
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3678
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3709
3679
|
if (r == null)
|
|
3710
3680
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
|
-
return n && (i =
|
|
3681
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3712
3682
|
}
|
|
3713
|
-
),
|
|
3683
|
+
), mi = Ie(
|
|
3714
3684
|
(e) => {
|
|
3715
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3716
3686
|
if (r == null)
|
|
3717
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
|
-
return n ? i =
|
|
3688
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3719
3689
|
}
|
|
3720
|
-
),
|
|
3690
|
+
), di = Ie(
|
|
3721
3691
|
(e) => {
|
|
3722
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3723
3693
|
if (r == null)
|
|
3724
3694
|
throw new Error(
|
|
3725
3695
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3726
3696
|
);
|
|
3727
|
-
return n ? i =
|
|
3697
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3728
3698
|
}
|
|
3729
|
-
),
|
|
3699
|
+
), bi = (e = {}) => {
|
|
3730
3700
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3732
|
-
} = t, n =
|
|
3701
|
+
locale: r = W()
|
|
3702
|
+
} = t, n = ue(t, [
|
|
3733
3703
|
"locale"
|
|
3734
3704
|
]);
|
|
3735
|
-
return fi(
|
|
3736
|
-
},
|
|
3705
|
+
return fi(rt({ locale: r }, n));
|
|
3706
|
+
}, gi = (e = {}) => {
|
|
3737
3707
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3739
|
-
} = t, n =
|
|
3708
|
+
locale: r = W()
|
|
3709
|
+
} = t, n = ue(t, [
|
|
3740
3710
|
"locale"
|
|
3741
3711
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3712
|
+
return mi(rt({ locale: r }, n));
|
|
3713
|
+
}, pi = (e = {}) => {
|
|
3744
3714
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3746
|
-
} = t, n =
|
|
3715
|
+
locale: r = W()
|
|
3716
|
+
} = t, n = ue(t, [
|
|
3747
3717
|
"locale"
|
|
3748
3718
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3719
|
+
return di(rt({ locale: r }, n));
|
|
3720
|
+
}, yi = Ie(
|
|
3751
3721
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3753
|
-
ignoreTag:
|
|
3722
|
+
(e, t = W()) => new zn(e, t, se().formats, {
|
|
3723
|
+
ignoreTag: se().ignoreTag
|
|
3754
3724
|
})
|
|
3755
|
-
),
|
|
3725
|
+
), _i = (e, t = {}) => {
|
|
3756
3726
|
var r, n, i, s;
|
|
3757
3727
|
let a = t;
|
|
3758
3728
|
typeof e == "object" && (a = e, e = a.id);
|
|
3759
3729
|
const {
|
|
3760
3730
|
values: o,
|
|
3761
|
-
locale: l =
|
|
3731
|
+
locale: l = W(),
|
|
3762
3732
|
default: u
|
|
3763
3733
|
} = a;
|
|
3764
3734
|
if (l == null)
|
|
3765
3735
|
throw new Error(
|
|
3766
3736
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3767
3737
|
);
|
|
3768
|
-
let h =
|
|
3738
|
+
let h = Zt(e, l);
|
|
3769
3739
|
if (!h)
|
|
3770
|
-
h = (s = (i = (n = (r =
|
|
3740
|
+
h = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3771
3741
|
else if (typeof h != "string")
|
|
3772
3742
|
return console.warn(
|
|
3773
3743
|
`[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.`
|
|
3774
3744
|
), h;
|
|
3775
3745
|
if (!o)
|
|
3776
3746
|
return h;
|
|
3777
|
-
let
|
|
3747
|
+
let f = h;
|
|
3778
3748
|
try {
|
|
3779
|
-
|
|
3780
|
-
} catch (
|
|
3781
|
-
|
|
3749
|
+
f = yi(h, l).format(o);
|
|
3750
|
+
} catch (c) {
|
|
3751
|
+
c instanceof Error && console.warn(
|
|
3782
3752
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3783
|
-
|
|
3753
|
+
c.message
|
|
3784
3754
|
);
|
|
3785
3755
|
}
|
|
3786
|
-
return
|
|
3787
|
-
},
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
function
|
|
3756
|
+
return f;
|
|
3757
|
+
}, vi = (e, t) => pi(t).format(e), Ei = (e, t) => gi(t).format(e), xi = (e, t) => bi(t).format(e), Si = (e, t = W()) => Zt(e, t), Ti = ae([V, oe], () => _i);
|
|
3758
|
+
ae([V], () => vi);
|
|
3759
|
+
ae([V], () => Ei);
|
|
3760
|
+
ae([V], () => xi);
|
|
3761
|
+
ae([V, oe], () => Si);
|
|
3762
|
+
function Ai(e, t) {
|
|
3793
3763
|
if (e) {
|
|
3794
3764
|
const r = document.createElement("style");
|
|
3795
3765
|
r.innerHTML = t, e.appendChild(r);
|
|
3796
3766
|
}
|
|
3797
3767
|
}
|
|
3798
|
-
function
|
|
3768
|
+
function Hi(e, t) {
|
|
3799
3769
|
const r = new URL(t);
|
|
3800
3770
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3801
3771
|
const i = document.createElement("style");
|
|
@@ -3804,7 +3774,7 @@ function Ai(e, t) {
|
|
|
3804
3774
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3805
3775
|
});
|
|
3806
3776
|
}
|
|
3807
|
-
function
|
|
3777
|
+
function Ci(e, t, r) {
|
|
3808
3778
|
if (window.emMessageBus) {
|
|
3809
3779
|
const n = document.createElement("style");
|
|
3810
3780
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3812,18 +3782,18 @@ function Hi(e, t, r) {
|
|
|
3812
3782
|
});
|
|
3813
3783
|
}
|
|
3814
3784
|
}
|
|
3815
|
-
function
|
|
3816
|
-
|
|
3817
|
-
r == null && (
|
|
3785
|
+
function wi({ withLocale: e, translations: t }) {
|
|
3786
|
+
V.subscribe((r) => {
|
|
3787
|
+
r == null && (oe.set(t), V.set(e));
|
|
3818
3788
|
});
|
|
3819
3789
|
}
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3790
|
+
function _t(e, t) {
|
|
3791
|
+
Qt(e, t);
|
|
3822
3792
|
}
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3793
|
+
function Bi(e) {
|
|
3794
|
+
V.set(e);
|
|
3825
3795
|
}
|
|
3826
|
-
const
|
|
3796
|
+
const vt = {
|
|
3827
3797
|
en: {
|
|
3828
3798
|
enrolled: "Enrolled",
|
|
3829
3799
|
scoreCriteria: "Score Criteria",
|
|
@@ -4155,53 +4125,53 @@ const _t = {
|
|
|
4155
4125
|
December: "December"
|
|
4156
4126
|
}
|
|
4157
4127
|
};
|
|
4158
|
-
function
|
|
4159
|
-
|
|
4128
|
+
function Ii(e) {
|
|
4129
|
+
dr(e, "svelte-52u9sp", ':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{cursor:pointer;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{cursor:pointer;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}');
|
|
4160
4130
|
}
|
|
4161
|
-
function
|
|
4131
|
+
function Et(e) {
|
|
4162
4132
|
let t, r, n;
|
|
4163
4133
|
return {
|
|
4164
4134
|
c() {
|
|
4165
4135
|
t = w("div"), t.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', r = G(), n = w("div"), n.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', b(t, "class", "Skeleton CardImg"), b(n, "class", "Details"), b(n, "part", "Details");
|
|
4166
4136
|
},
|
|
4167
4137
|
m(i, s) {
|
|
4168
|
-
|
|
4138
|
+
P(i, t, s), P(i, r, s), P(i, n, s);
|
|
4169
4139
|
},
|
|
4170
4140
|
d(i) {
|
|
4171
4141
|
i && (I(t), I(r), I(n));
|
|
4172
4142
|
}
|
|
4173
4143
|
};
|
|
4174
4144
|
}
|
|
4175
|
-
function
|
|
4176
|
-
let t, r, n, i, s, a, o, l, u, h,
|
|
4145
|
+
function xt(e) {
|
|
4146
|
+
let t, r, n, i, s, a, o, l, u, h, f = (
|
|
4177
4147
|
/*status*/
|
|
4178
|
-
e[0] &&
|
|
4179
|
-
),
|
|
4148
|
+
e[0] && St(e)
|
|
4149
|
+
), c = (
|
|
4180
4150
|
/*showenrolled*/
|
|
4181
|
-
e[6] == "true" &&
|
|
4151
|
+
e[6] == "true" && Tt(e)
|
|
4182
4152
|
);
|
|
4183
|
-
function
|
|
4153
|
+
function x(d, _) {
|
|
4184
4154
|
return (
|
|
4185
4155
|
/*thumbnail*/
|
|
4186
|
-
d[3] ? Ni :
|
|
4156
|
+
d[3] ? Ni : Oi
|
|
4187
4157
|
);
|
|
4188
4158
|
}
|
|
4189
|
-
let E =
|
|
4159
|
+
let E = x(e), g = E(e), y = (
|
|
4190
4160
|
/*startdate*/
|
|
4191
|
-
e[2] &&
|
|
4192
|
-
),
|
|
4161
|
+
e[2] && Ht(e)
|
|
4162
|
+
), S = (
|
|
4193
4163
|
/*isLoggedIn*/
|
|
4194
|
-
e[11] &&
|
|
4164
|
+
e[11] && Ct(e)
|
|
4195
4165
|
);
|
|
4196
4166
|
return {
|
|
4197
4167
|
c() {
|
|
4198
|
-
|
|
4168
|
+
f && f.c(), t = G(), c && c.c(), r = G(), g.c(), n = G(), i = w("div"), s = w("div"), a = D(
|
|
4199
4169
|
/*title*/
|
|
4200
4170
|
e[1]
|
|
4201
|
-
), o = G(), y && y.c(), l = G(),
|
|
4171
|
+
), o = G(), y && y.c(), l = G(), S && S.c(), b(s, "class", "Title"), b(s, "part", "Title"), b(i, "class", "Details"), b(i, "part", "Details");
|
|
4202
4172
|
},
|
|
4203
4173
|
m(d, _) {
|
|
4204
|
-
|
|
4174
|
+
f && f.m(d, _), P(d, t, _), c && c.m(d, _), P(d, r, _), g.m(d, _), P(d, n, _), P(d, i, _), T(i, s), T(s, a), T(i, o), y && y.m(i, null), T(i, l), S && S.m(i, null), u || (h = te(
|
|
4205
4175
|
s,
|
|
4206
4176
|
"click",
|
|
4207
4177
|
/*detailsAction*/
|
|
@@ -4210,22 +4180,22 @@ function Et(e) {
|
|
|
4210
4180
|
},
|
|
4211
4181
|
p(d, _) {
|
|
4212
4182
|
/*status*/
|
|
4213
|
-
d[0] ?
|
|
4214
|
-
d[6] == "true" ?
|
|
4183
|
+
d[0] ? f ? f.p(d, _) : (f = St(d), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), /*showenrolled*/
|
|
4184
|
+
d[6] == "true" ? c ? c.p(d, _) : (c = Tt(d), c.c(), c.m(r.parentNode, r)) : c && (c.d(1), c = null), E === (E = x(d)) && g ? g.p(d, _) : (g.d(1), g = E(d), g && (g.c(), g.m(n.parentNode, n))), _[0] & /*title*/
|
|
4215
4185
|
2 && F(
|
|
4216
4186
|
a,
|
|
4217
4187
|
/*title*/
|
|
4218
4188
|
d[1]
|
|
4219
4189
|
), /*startdate*/
|
|
4220
|
-
d[2] ? y ? y.p(d, _) : (y =
|
|
4221
|
-
d[11] ?
|
|
4190
|
+
d[2] ? y ? y.p(d, _) : (y = Ht(d), y.c(), y.m(i, l)) : y && (y.d(1), y = null), /*isLoggedIn*/
|
|
4191
|
+
d[11] ? S ? S.p(d, _) : (S = Ct(d), S.c(), S.m(i, null)) : S && (S.d(1), S = null);
|
|
4222
4192
|
},
|
|
4223
4193
|
d(d) {
|
|
4224
|
-
d && (I(t), I(r), I(n), I(i)),
|
|
4194
|
+
d && (I(t), I(r), I(n), I(i)), f && f.d(d), c && c.d(d), g.d(d), y && y.d(), S && S.d(), u = !1, h();
|
|
4225
4195
|
}
|
|
4226
4196
|
};
|
|
4227
4197
|
}
|
|
4228
|
-
function
|
|
4198
|
+
function St(e) {
|
|
4229
4199
|
let t, r, n, i, s, a;
|
|
4230
4200
|
return {
|
|
4231
4201
|
c() {
|
|
@@ -4237,7 +4207,7 @@ function vt(e) {
|
|
|
4237
4207
|
e[14]);
|
|
4238
4208
|
},
|
|
4239
4209
|
m(o, l) {
|
|
4240
|
-
|
|
4210
|
+
P(o, t, l), T(t, r), s || (a = ge(
|
|
4241
4211
|
/*matchStatus*/
|
|
4242
4212
|
e[17].call(null, t)
|
|
4243
4213
|
), s = !0);
|
|
@@ -4259,28 +4229,28 @@ function vt(e) {
|
|
|
4259
4229
|
}
|
|
4260
4230
|
};
|
|
4261
4231
|
}
|
|
4262
|
-
function
|
|
4232
|
+
function Tt(e) {
|
|
4263
4233
|
let t, r = (
|
|
4264
4234
|
/*userenrolled*/
|
|
4265
|
-
e[4] &&
|
|
4235
|
+
e[4] && At(e)
|
|
4266
4236
|
);
|
|
4267
4237
|
return {
|
|
4268
4238
|
c() {
|
|
4269
|
-
r && r.c(), t =
|
|
4239
|
+
r && r.c(), t = pr();
|
|
4270
4240
|
},
|
|
4271
4241
|
m(n, i) {
|
|
4272
|
-
r && r.m(n, i),
|
|
4242
|
+
r && r.m(n, i), P(n, t, i);
|
|
4273
4243
|
},
|
|
4274
4244
|
p(n, i) {
|
|
4275
4245
|
/*userenrolled*/
|
|
4276
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4246
|
+
n[4] ? r ? r.p(n, i) : (r = At(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4277
4247
|
},
|
|
4278
4248
|
d(n) {
|
|
4279
4249
|
n && I(t), r && r.d(n);
|
|
4280
4250
|
}
|
|
4281
4251
|
};
|
|
4282
4252
|
}
|
|
4283
|
-
function
|
|
4253
|
+
function At(e) {
|
|
4284
4254
|
let t, r = (
|
|
4285
4255
|
/*$_*/
|
|
4286
4256
|
e[15]("enrolled") + ""
|
|
@@ -4290,7 +4260,7 @@ function Tt(e) {
|
|
|
4290
4260
|
t = w("div"), n = D(r), b(t, "class", "Enrolled"), b(t, "part", "Enrolled");
|
|
4291
4261
|
},
|
|
4292
4262
|
m(i, s) {
|
|
4293
|
-
|
|
4263
|
+
P(i, t, s), T(t, n);
|
|
4294
4264
|
},
|
|
4295
4265
|
p(i, s) {
|
|
4296
4266
|
s[0] & /*$_*/
|
|
@@ -4302,23 +4272,23 @@ function Tt(e) {
|
|
|
4302
4272
|
}
|
|
4303
4273
|
};
|
|
4304
4274
|
}
|
|
4305
|
-
function
|
|
4275
|
+
function Oi(e) {
|
|
4306
4276
|
let t, r, n, i, s, a, o;
|
|
4307
4277
|
return {
|
|
4308
4278
|
c() {
|
|
4309
|
-
t = w("div"), r = w("ui-image"),
|
|
4279
|
+
t = w("div"), r = w("ui-image"), $e(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || K(r, "src", n), K(r, "alt", "icon"), b(t, "class", i = "CardImg " + /*status*/
|
|
4310
4280
|
(e[0] == "Closing" || /*status*/
|
|
4311
4281
|
e[0] == "Closed" ? "CardImgFinished" : "")), b(t, "part", s = "CardImg " + /*status*/
|
|
4312
4282
|
(e[0] == "Closing" || /*status*/
|
|
4313
4283
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4314
4284
|
},
|
|
4315
4285
|
m(l, u) {
|
|
4316
|
-
|
|
4317
|
-
|
|
4286
|
+
P(l, t, u), T(t, r), a || (o = [
|
|
4287
|
+
ge(
|
|
4318
4288
|
/*matchStatus*/
|
|
4319
4289
|
e[17].call(null, t)
|
|
4320
4290
|
),
|
|
4321
|
-
|
|
4291
|
+
te(
|
|
4322
4292
|
t,
|
|
4323
4293
|
"click",
|
|
4324
4294
|
/*detailsAction*/
|
|
@@ -4336,7 +4306,7 @@ function Ii(e) {
|
|
|
4336
4306
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "part", s);
|
|
4337
4307
|
},
|
|
4338
4308
|
d(l) {
|
|
4339
|
-
l && I(t), a = !1,
|
|
4309
|
+
l && I(t), a = !1, z(o);
|
|
4340
4310
|
}
|
|
4341
4311
|
};
|
|
4342
4312
|
}
|
|
@@ -4344,20 +4314,20 @@ function Ni(e) {
|
|
|
4344
4314
|
let t, r, n, i, s, a, o;
|
|
4345
4315
|
return {
|
|
4346
4316
|
c() {
|
|
4347
|
-
t = w("div"), r = w("ui-image"),
|
|
4348
|
-
e[3]) ||
|
|
4317
|
+
t = w("div"), r = w("ui-image"), K(r, "class", "UIImage"), $e(r.src, n = /*thumbnail*/
|
|
4318
|
+
e[3]) || K(r, "src", n), K(r, "alt", "icon"), b(t, "class", i = "CardImg " + /*status*/
|
|
4349
4319
|
(e[0] == "Closing" || /*status*/
|
|
4350
4320
|
e[0] == "Closed" ? "CardImgFinished" : "")), b(t, "part", s = "CardImg " + /*status*/
|
|
4351
4321
|
(e[0] == "Closing" || /*status*/
|
|
4352
4322
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4353
4323
|
},
|
|
4354
4324
|
m(l, u) {
|
|
4355
|
-
|
|
4356
|
-
|
|
4325
|
+
P(l, t, u), T(t, r), a || (o = [
|
|
4326
|
+
ge(
|
|
4357
4327
|
/*matchStatus*/
|
|
4358
4328
|
e[17].call(null, t)
|
|
4359
4329
|
),
|
|
4360
|
-
|
|
4330
|
+
te(
|
|
4361
4331
|
t,
|
|
4362
4332
|
"click",
|
|
4363
4333
|
/*detailsAction*/
|
|
@@ -4367,8 +4337,8 @@ function Ni(e) {
|
|
|
4367
4337
|
},
|
|
4368
4338
|
p(l, u) {
|
|
4369
4339
|
u[0] & /*thumbnail*/
|
|
4370
|
-
8 &&
|
|
4371
|
-
l[3]) &&
|
|
4340
|
+
8 && !$e(r.src, n = /*thumbnail*/
|
|
4341
|
+
l[3]) && K(r, "src", n), u[0] & /*status*/
|
|
4372
4342
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4373
4343
|
(l[0] == "Closing" || /*status*/
|
|
4374
4344
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "class", i), u[0] & /*status*/
|
|
@@ -4377,11 +4347,11 @@ function Ni(e) {
|
|
|
4377
4347
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "part", s);
|
|
4378
4348
|
},
|
|
4379
4349
|
d(l) {
|
|
4380
|
-
l && I(t), a = !1,
|
|
4350
|
+
l && I(t), a = !1, z(o);
|
|
4381
4351
|
}
|
|
4382
4352
|
};
|
|
4383
4353
|
}
|
|
4384
|
-
function
|
|
4354
|
+
function Ht(e) {
|
|
4385
4355
|
let t, r, n, i, s;
|
|
4386
4356
|
return {
|
|
4387
4357
|
c() {
|
|
@@ -4391,7 +4361,7 @@ function At(e) {
|
|
|
4391
4361
|
), b(t, "class", "Date"), b(t, "part", "Date");
|
|
4392
4362
|
},
|
|
4393
4363
|
m(a, o) {
|
|
4394
|
-
|
|
4364
|
+
P(a, t, o), T(t, r), i || (s = ge(n = /*formatDate*/
|
|
4395
4365
|
e[16].call(
|
|
4396
4366
|
null,
|
|
4397
4367
|
t,
|
|
@@ -4405,7 +4375,7 @@ function At(e) {
|
|
|
4405
4375
|
r,
|
|
4406
4376
|
/*shownDate*/
|
|
4407
4377
|
a[10]
|
|
4408
|
-
), n &&
|
|
4378
|
+
), n && be(n.update) && o[0] & /*startdate*/
|
|
4409
4379
|
4 && n.update.call(
|
|
4410
4380
|
null,
|
|
4411
4381
|
/*startdate*/
|
|
@@ -4417,20 +4387,20 @@ function At(e) {
|
|
|
4417
4387
|
}
|
|
4418
4388
|
};
|
|
4419
4389
|
}
|
|
4420
|
-
function
|
|
4390
|
+
function Ct(e) {
|
|
4421
4391
|
let t, r, n = (
|
|
4422
4392
|
/*$_*/
|
|
4423
4393
|
e[15]("scoreCriteria") + ""
|
|
4424
4394
|
), i, s, a, o, l, u = (
|
|
4425
4395
|
/*$_*/
|
|
4426
4396
|
e[15]("minbet") + ""
|
|
4427
|
-
), h,
|
|
4397
|
+
), h, f, c, x, E, g, y, S = (
|
|
4428
4398
|
/*$_*/
|
|
4429
4399
|
e[15]("seegames") + ""
|
|
4430
|
-
), d, _, B,
|
|
4400
|
+
), d, _, B, M = (
|
|
4431
4401
|
/*$_*/
|
|
4432
4402
|
e[15]("here") + ""
|
|
4433
|
-
), k, L,
|
|
4403
|
+
), k, L, X, J;
|
|
4434
4404
|
return {
|
|
4435
4405
|
c() {
|
|
4436
4406
|
t = w("div"), r = w("p"), i = D(n), s = D(`:
|
|
@@ -4439,10 +4409,10 @@ function Ht(e) {
|
|
|
4439
4409
|
/*showScoreCriteria*/
|
|
4440
4410
|
e[13]
|
|
4441
4411
|
), l = D(`
|
|
4442
|
-
(`), h = D(u),
|
|
4412
|
+
(`), h = D(u), f = G(), c = D(
|
|
4443
4413
|
/*minbetcount*/
|
|
4444
4414
|
e[5]
|
|
4445
|
-
),
|
|
4415
|
+
), x = D(")"), E = G(), g = w("div"), y = w("p"), d = D(S), _ = G(), B = w("a"), k = D(M), b(a, "part", "ScoreCriteriaSpan"), b(r, "part", "ScoreCriteriaP"), b(t, "class", "ScoreCriteria"), b(t, "part", "ScoreCriteria"), b(B, "part", "GamesAnchor"), b(
|
|
4446
4416
|
B,
|
|
4447
4417
|
"href",
|
|
4448
4418
|
/*gameurl*/
|
|
@@ -4450,61 +4420,61 @@ function Ht(e) {
|
|
|
4450
4420
|
), b(B, "target", L = /*keepbrowsercontext*/
|
|
4451
4421
|
e[8] === "true" ? "_self" : "_blank"), b(y, "part", "GamesP"), b(g, "class", "Games"), b(g, "part", "Games");
|
|
4452
4422
|
},
|
|
4453
|
-
m(
|
|
4454
|
-
O
|
|
4455
|
-
|
|
4423
|
+
m(O, N) {
|
|
4424
|
+
P(O, t, N), T(t, r), T(r, i), T(r, s), T(r, a), T(a, o), T(r, l), T(r, h), T(r, f), T(r, c), T(r, x), P(O, E, N), P(O, g, N), T(g, y), T(y, d), T(y, _), T(y, B), T(B, k), X || (J = [
|
|
4425
|
+
ge(
|
|
4456
4426
|
/*matchScoreCriteria*/
|
|
4457
4427
|
e[18].call(null, a)
|
|
4458
4428
|
),
|
|
4459
|
-
|
|
4429
|
+
te(
|
|
4460
4430
|
B,
|
|
4461
4431
|
"click",
|
|
4462
4432
|
/*tournamentGamesClicked*/
|
|
4463
4433
|
e[19]
|
|
4464
4434
|
)
|
|
4465
|
-
],
|
|
4435
|
+
], X = !0);
|
|
4466
4436
|
},
|
|
4467
|
-
p(
|
|
4468
|
-
|
|
4437
|
+
p(O, N) {
|
|
4438
|
+
N[0] & /*$_*/
|
|
4469
4439
|
32768 && n !== (n = /*$_*/
|
|
4470
|
-
|
|
4440
|
+
O[15]("scoreCriteria") + "") && F(i, n), N[0] & /*showScoreCriteria*/
|
|
4471
4441
|
8192 && F(
|
|
4472
4442
|
o,
|
|
4473
4443
|
/*showScoreCriteria*/
|
|
4474
|
-
|
|
4475
|
-
),
|
|
4444
|
+
O[13]
|
|
4445
|
+
), N[0] & /*$_*/
|
|
4476
4446
|
32768 && u !== (u = /*$_*/
|
|
4477
|
-
|
|
4447
|
+
O[15]("minbet") + "") && F(h, u), N[0] & /*minbetcount*/
|
|
4478
4448
|
32 && F(
|
|
4479
|
-
|
|
4449
|
+
c,
|
|
4480
4450
|
/*minbetcount*/
|
|
4481
|
-
|
|
4482
|
-
),
|
|
4483
|
-
32768 &&
|
|
4484
|
-
|
|
4485
|
-
32768 &&
|
|
4486
|
-
|
|
4451
|
+
O[5]
|
|
4452
|
+
), N[0] & /*$_*/
|
|
4453
|
+
32768 && S !== (S = /*$_*/
|
|
4454
|
+
O[15]("seegames") + "") && F(d, S), N[0] & /*$_*/
|
|
4455
|
+
32768 && M !== (M = /*$_*/
|
|
4456
|
+
O[15]("here") + "") && F(k, M), N[0] & /*gameurl*/
|
|
4487
4457
|
128 && b(
|
|
4488
4458
|
B,
|
|
4489
4459
|
"href",
|
|
4490
4460
|
/*gameurl*/
|
|
4491
|
-
|
|
4492
|
-
),
|
|
4461
|
+
O[7]
|
|
4462
|
+
), N[0] & /*keepbrowsercontext*/
|
|
4493
4463
|
256 && L !== (L = /*keepbrowsercontext*/
|
|
4494
|
-
|
|
4464
|
+
O[8] === "true" ? "_self" : "_blank") && b(B, "target", L);
|
|
4495
4465
|
},
|
|
4496
|
-
d(
|
|
4497
|
-
|
|
4466
|
+
d(O) {
|
|
4467
|
+
O && (I(t), I(E), I(g)), X = !1, z(J);
|
|
4498
4468
|
}
|
|
4499
4469
|
};
|
|
4500
4470
|
}
|
|
4501
|
-
function
|
|
4471
|
+
function Pi(e) {
|
|
4502
4472
|
let t, r, n, i = (
|
|
4503
4473
|
/*title*/
|
|
4504
|
-
e[1] === "undefined" &&
|
|
4474
|
+
e[1] === "undefined" && Et()
|
|
4505
4475
|
), s = (
|
|
4506
4476
|
/*title*/
|
|
4507
|
-
e[1] !== "undefined" &&
|
|
4477
|
+
e[1] !== "undefined" && xt(e)
|
|
4508
4478
|
);
|
|
4509
4479
|
return {
|
|
4510
4480
|
c() {
|
|
@@ -4512,12 +4482,12 @@ function Mi(e) {
|
|
|
4512
4482
|
e[1] === "undefined" ? "Loading" : ""}`), b(t, "part", "Thumbnail");
|
|
4513
4483
|
},
|
|
4514
4484
|
m(a, o) {
|
|
4515
|
-
|
|
4485
|
+
P(a, t, o), i && i.m(t, null), T(t, r), s && s.m(t, null), e[31](t);
|
|
4516
4486
|
},
|
|
4517
4487
|
p(a, o) {
|
|
4518
4488
|
/*title*/
|
|
4519
|
-
a[1] === "undefined" ? i || (i =
|
|
4520
|
-
a[1] !== "undefined" ? s ? s.p(a, o) : (s =
|
|
4489
|
+
a[1] === "undefined" ? i || (i = Et(), i.c(), i.m(t, r)) : i && (i.d(1), i = null), /*title*/
|
|
4490
|
+
a[1] !== "undefined" ? s ? s.p(a, o) : (s = xt(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), o[0] & /*title*/
|
|
4521
4491
|
2 && n !== (n = `Thumbnail ${/*title*/
|
|
4522
4492
|
a[1] === "undefined" ? "Loading" : ""}`) && b(t, "class", n);
|
|
4523
4493
|
},
|
|
@@ -4528,41 +4498,41 @@ function Mi(e) {
|
|
|
4528
4498
|
}
|
|
4529
4499
|
};
|
|
4530
4500
|
}
|
|
4531
|
-
function
|
|
4501
|
+
function Mi(e, t, r) {
|
|
4532
4502
|
let n;
|
|
4533
|
-
|
|
4534
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled:
|
|
4535
|
-
|
|
4536
|
-
const
|
|
4537
|
-
fetch(
|
|
4538
|
-
Object.keys(m).forEach((
|
|
4539
|
-
|
|
4503
|
+
mr(e, Ti, (m) => r(15, n = m));
|
|
4504
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: x = "" } = t, { showenrolled: E = "false" } = t, { detailsevent: g = "" } = t, { gameurl: y = "" } = t, { lang: S = "en" } = t, { keepbrowsercontext: d = "false" } = t, { clientstyling: _ = "" } = t, { clientstylingurl: B = "" } = t, { translationurl: M = "" } = t, { mbsource: k } = t, L, X = "", J = !1, O = "", N = "", le = "";
|
|
4505
|
+
wi({ withLocale: "en", translations: {} });
|
|
4506
|
+
const nr = () => {
|
|
4507
|
+
fetch(M).then((m) => m.json()).then((m) => {
|
|
4508
|
+
Object.keys(m).forEach((Z) => {
|
|
4509
|
+
_t(Z, m[Z]);
|
|
4540
4510
|
}), o && Me();
|
|
4541
4511
|
}).catch((m) => {
|
|
4542
4512
|
console.log(m);
|
|
4543
4513
|
});
|
|
4544
4514
|
};
|
|
4545
|
-
Object.keys(
|
|
4546
|
-
|
|
4515
|
+
Object.keys(vt).forEach((m) => {
|
|
4516
|
+
_t(m, vt[m]);
|
|
4547
4517
|
});
|
|
4548
|
-
const
|
|
4549
|
-
m.data && (m.data && m.data.type == "SessionID" && r(11,
|
|
4550
|
-
},
|
|
4518
|
+
const nt = (m) => {
|
|
4519
|
+
m.data && (m.data && m.data.type == "SessionID" && r(11, J = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
|
|
4520
|
+
}, Oe = () => {
|
|
4551
4521
|
const m = { month: "long" };
|
|
4552
|
-
let
|
|
4522
|
+
let Z = new Date(o), ur = new Intl.DateTimeFormat("en", m).format(Z), lr = Z.getDate(), hr = Z.toLocaleString("en-GB", {
|
|
4553
4523
|
hour: "numeric",
|
|
4554
4524
|
minute: "numeric",
|
|
4555
4525
|
hour12: !1
|
|
4556
4526
|
});
|
|
4557
|
-
const
|
|
4558
|
-
r(10,
|
|
4559
|
-
}, Ie = () => {
|
|
4560
|
-
l == "Unstarted" && (r(12, N = n("scheduled")), r(14, ue = "StatusUnstarted")), l == "Running" && (r(12, N = n("ongoing")), r(14, ue = "StatusRunning")), (l == "Closed" || l == "Closing") && r(12, N = n("finished")), l == "Closed" && r(14, ue = "StatusClosed"), l == "Closing" && r(14, ue = "StatusClosing");
|
|
4527
|
+
const cr = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4528
|
+
r(10, X = `${lr} ` + n(`${ur}`) + ", " + cr() + ` ${hr}`);
|
|
4561
4529
|
}, Ne = () => {
|
|
4562
|
-
|
|
4563
|
-
},
|
|
4564
|
-
|
|
4530
|
+
l == "Unstarted" && (r(12, O = n("scheduled")), r(14, le = "StatusUnstarted")), l == "Running" && (r(12, O = n("ongoing")), r(14, le = "StatusRunning")), (l == "Closed" || l == "Closing") && r(12, O = n("finished")), l == "Closed" && r(14, le = "StatusClosed"), l == "Closing" && r(14, le = "StatusClosing");
|
|
4531
|
+
}, Pe = () => {
|
|
4532
|
+
c == "BetCount" && r(13, N = n("betCount")), c == "MaxWinStakeRatio" && r(13, N = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(13, N = n("winStakeRatio")), c == "Stake" && r(13, N = n("stake"));
|
|
4565
4533
|
}, ir = () => {
|
|
4534
|
+
window.postMessage({ type: "tournamentGamesClicked", tourid: u }, window.location.href);
|
|
4535
|
+
}, sr = () => {
|
|
4566
4536
|
g && window.postMessage(
|
|
4567
4537
|
{
|
|
4568
4538
|
type: g,
|
|
@@ -4571,76 +4541,76 @@ function Oi(e, t, r) {
|
|
|
4571
4541
|
},
|
|
4572
4542
|
window.location.href
|
|
4573
4543
|
);
|
|
4574
|
-
},
|
|
4575
|
-
i.length > 0 && i != "false" ? r(11,
|
|
4544
|
+
}, ar = () => {
|
|
4545
|
+
i.length > 0 && i != "false" ? r(11, J = !0) : r(11, J = !1);
|
|
4576
4546
|
};
|
|
4577
|
-
|
|
4578
|
-
window.removeEventListener("message",
|
|
4547
|
+
xr(() => (setTimeout(() => Me(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", nt, !1), () => {
|
|
4548
|
+
window.removeEventListener("message", nt);
|
|
4579
4549
|
}));
|
|
4580
4550
|
const Me = () => {
|
|
4581
|
-
|
|
4551
|
+
Bi(S), Pe(), Ne(), o && Oe();
|
|
4582
4552
|
};
|
|
4583
|
-
function
|
|
4584
|
-
|
|
4553
|
+
function or(m) {
|
|
4554
|
+
je[m ? "unshift" : "push"](() => {
|
|
4585
4555
|
L = m, r(9, L);
|
|
4586
4556
|
});
|
|
4587
4557
|
}
|
|
4588
4558
|
return e.$$set = (m) => {
|
|
4589
|
-
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(23, u = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4,
|
|
4559
|
+
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(23, u = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4, f = m.userenrolled), "scorecriteria" in m && r(24, c = m.scorecriteria), "minbetcount" in m && r(5, x = m.minbetcount), "showenrolled" in m && r(6, E = m.showenrolled), "detailsevent" in m && r(25, g = m.detailsevent), "gameurl" in m && r(7, y = m.gameurl), "lang" in m && r(26, S = m.lang), "keepbrowsercontext" in m && r(8, d = m.keepbrowsercontext), "clientstyling" in m && r(27, _ = m.clientstyling), "clientstylingurl" in m && r(28, B = m.clientstylingurl), "translationurl" in m && r(29, M = m.translationurl), "mbsource" in m && r(30, k = m.mbsource);
|
|
4590
4560
|
}, e.$$.update = () => {
|
|
4591
4561
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4592
|
-
134218240 && _ && L &&
|
|
4593
|
-
268435968 && B && L &&
|
|
4594
|
-
1073742336 && k && L &&
|
|
4595
|
-
536870912 &&
|
|
4596
|
-
2097152 && i &&
|
|
4597
|
-
1 && l &&
|
|
4598
|
-
67108866 && a &&
|
|
4599
|
-
4 && o &&
|
|
4600
|
-
16777216 &&
|
|
4562
|
+
134218240 && _ && L && Ai(L, _), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4563
|
+
268435968 && B && L && Hi(L, B), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4564
|
+
1073742336 && k && L && Ci(L, `${k}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4565
|
+
536870912 && M && nr(), e.$$.dirty[0] & /*session*/
|
|
4566
|
+
2097152 && i && ar(), e.$$.dirty[0] & /*status*/
|
|
4567
|
+
1 && l && Ne(), e.$$.dirty[0] & /*title, lang*/
|
|
4568
|
+
67108866 && a && S && Me(), e.$$.dirty[0] & /*startdate*/
|
|
4569
|
+
4 && o && Oe(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4570
|
+
16777216 && c && Pe();
|
|
4601
4571
|
}, [
|
|
4602
4572
|
l,
|
|
4603
4573
|
a,
|
|
4604
4574
|
o,
|
|
4605
4575
|
h,
|
|
4606
|
-
|
|
4607
|
-
|
|
4576
|
+
f,
|
|
4577
|
+
x,
|
|
4608
4578
|
E,
|
|
4609
4579
|
y,
|
|
4610
4580
|
d,
|
|
4611
4581
|
L,
|
|
4612
|
-
|
|
4613
|
-
|
|
4582
|
+
X,
|
|
4583
|
+
J,
|
|
4584
|
+
O,
|
|
4614
4585
|
N,
|
|
4615
|
-
|
|
4616
|
-
ue,
|
|
4586
|
+
le,
|
|
4617
4587
|
n,
|
|
4618
|
-
|
|
4619
|
-
Ie,
|
|
4588
|
+
Oe,
|
|
4620
4589
|
Ne,
|
|
4621
|
-
|
|
4590
|
+
Pe,
|
|
4622
4591
|
ir,
|
|
4592
|
+
sr,
|
|
4623
4593
|
i,
|
|
4624
4594
|
s,
|
|
4625
4595
|
u,
|
|
4626
|
-
|
|
4596
|
+
c,
|
|
4627
4597
|
g,
|
|
4628
|
-
|
|
4598
|
+
S,
|
|
4629
4599
|
_,
|
|
4630
4600
|
B,
|
|
4631
|
-
|
|
4601
|
+
M,
|
|
4632
4602
|
k,
|
|
4633
|
-
|
|
4603
|
+
or
|
|
4634
4604
|
];
|
|
4635
4605
|
}
|
|
4636
|
-
class
|
|
4606
|
+
class rr extends Mr {
|
|
4637
4607
|
constructor(t) {
|
|
4638
4608
|
super(), Nr(
|
|
4639
4609
|
this,
|
|
4640
4610
|
t,
|
|
4641
|
-
Oi,
|
|
4642
4611
|
Mi,
|
|
4643
|
-
|
|
4612
|
+
Pi,
|
|
4613
|
+
Bt,
|
|
4644
4614
|
{
|
|
4645
4615
|
session: 21,
|
|
4646
4616
|
userid: 22,
|
|
@@ -4662,7 +4632,7 @@ class tr extends Or {
|
|
|
4662
4632
|
translationurl: 29,
|
|
4663
4633
|
mbsource: 30
|
|
4664
4634
|
},
|
|
4665
|
-
|
|
4635
|
+
Ii,
|
|
4666
4636
|
[-1, -1]
|
|
4667
4637
|
);
|
|
4668
4638
|
}
|
|
@@ -4781,54 +4751,50 @@ class tr extends Or {
|
|
|
4781
4751
|
this.$$set({ mbsource: t }), C();
|
|
4782
4752
|
}
|
|
4783
4753
|
}
|
|
4784
|
-
|
|
4785
|
-
const
|
|
4754
|
+
Pr(rr, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, detailsevent: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4755
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4786
4756
|
__proto__: null,
|
|
4787
|
-
default:
|
|
4757
|
+
default: rr
|
|
4788
4758
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4789
4759
|
export {
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4760
|
+
V as $,
|
|
4761
|
+
Ti as A,
|
|
4762
|
+
Ai as B,
|
|
4763
|
+
Hi as C,
|
|
4764
|
+
Ci as D,
|
|
4765
|
+
Ui as E,
|
|
4766
|
+
$i as F,
|
|
4797
4767
|
Di as G,
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
qt as e,
|
|
4813
|
-
Mr as f,
|
|
4814
|
-
C as g,
|
|
4815
|
-
mr as h,
|
|
4768
|
+
Gi as H,
|
|
4769
|
+
Fi as I,
|
|
4770
|
+
ze as J,
|
|
4771
|
+
$e as K,
|
|
4772
|
+
ji as L,
|
|
4773
|
+
Mr as S,
|
|
4774
|
+
oe as a,
|
|
4775
|
+
Qt as b,
|
|
4776
|
+
Pr as c,
|
|
4777
|
+
dr as d,
|
|
4778
|
+
I as e,
|
|
4779
|
+
C as f,
|
|
4780
|
+
K as g,
|
|
4781
|
+
b as h,
|
|
4816
4782
|
Nr as i,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4783
|
+
P as j,
|
|
4784
|
+
T as k,
|
|
4785
|
+
w as l,
|
|
4786
|
+
G as m,
|
|
4787
|
+
U as n,
|
|
4788
|
+
mr as o,
|
|
4789
|
+
xr as p,
|
|
4790
|
+
je as q,
|
|
4791
|
+
pr as r,
|
|
4792
|
+
Bt as s,
|
|
4793
|
+
ge as t,
|
|
4794
|
+
F as u,
|
|
4795
|
+
D as v,
|
|
4796
|
+
z as w,
|
|
4797
|
+
te as x,
|
|
4798
|
+
be as y,
|
|
4799
|
+
ki as z
|
|
4834
4800
|
};
|