@everymatrix/casino-tournaments-controller 1.64.8 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsController-CUMRoST-.js → CasinoTournamentsController-B-3KvRFg.js} +1158 -1179
- package/components/{CasinoTournamentsController-WufarZ8q.js → CasinoTournamentsController-CWaYayO5.js} +1033 -1054
- package/components/CasinoTournamentsController-hMroYCVq.cjs +27 -0
- package/components/{CasinoTournamentsFilterController-D92H_sdr.cjs → CasinoTournamentsFilterController-CFZXXvdI.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-LT68fjHh.js → CasinoTournamentsFilterController-DAQ8lD4F.js} +20 -20
- package/components/{CasinoTournamentsFilterController-D8NP0ZIy.js → CasinoTournamentsFilterController-DoTBrefG.js} +22 -22
- package/components/{CasinoTournamentsListController-Dd8eFRxa.js → CasinoTournamentsListController-C_ssOmZ0.js} +21 -21
- package/components/{CasinoTournamentsListController-CwxI2YAB.cjs → CasinoTournamentsListController-CkLe4wOF.cjs} +2 -2
- package/components/{CasinoTournamentsListController-CGdBHJDM.js → CasinoTournamentsListController-DGb2Vxf4.js} +21 -21
- package/components/CasinoTournamentsThumbnail-BGjJFXJ4.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-BUZX068g.js → CasinoTournamentsThumbnail-D2kJPkRh.js} +308 -264
- package/components/{CasinoTournamentsThumbnail-Co9p08Wv.js → CasinoTournamentsThumbnail-rGM6du0q.js} +308 -264
- package/components/CasinoTournamentsThumbnailController-BNr36snI.js +1381 -0
- package/components/CasinoTournamentsThumbnailController-C8sZ89TB.js +1398 -0
- package/components/CasinoTournamentsThumbnailController-Dp0x8sF0.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-DsNTjv3C.cjs → CasinoTournamentsThumbnailDuration-4Vc-Z6lV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Dqd8KbyC.js → CasinoTournamentsThumbnailDuration-CzVBGv1j.js} +42 -42
- package/components/{CasinoTournamentsThumbnailDuration-ChCBh4j9.js → CasinoTournamentsThumbnailDuration-PfDdm056.js} +48 -48
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bn4nh16L.js → CasinoTournamentsThumbnailGamesSlider-B0lgG4Gf.js} +37 -37
- package/components/{CasinoTournamentsThumbnailGamesSlider-EO8q-zQo.js → CasinoTournamentsThumbnailGamesSlider-B6vtyr9U.js} +54 -54
- package/components/{CasinoTournamentsThumbnailGamesSlider-C7R-Ibu_.cjs → CasinoTournamentsThumbnailGamesSlider-D_KQWVhW.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-qJYsc_jA.js → CasinoTournamentsThumbnailPrizes-Czh7jFho.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-DdU80aCm.cjs → CasinoTournamentsThumbnailPrizes-Dv0zCdov.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D3W0vYEA.js → CasinoTournamentsThumbnailPrizes-OfLWNQL9.js} +15 -15
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/index-97d17652-BzQXAkmg.js +558 -0
- package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
- package/stencil/index-97d17652-mbOyENH9.js +542 -0
- package/stencil/index-b2193545-C2pLoBGJ.js +503 -0
- package/stencil/index-b2193545-CoXVDra7.js +519 -0
- package/stencil/index-b2193545-CwpolrjE.cjs +1 -0
- package/stencil/ui-image-BdKD9mn4.js +25 -0
- package/stencil/ui-image-Brhx0VeQ.js +7 -0
- package/stencil/ui-image-DEQHOm9Q.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-7wF4sIlr.js +39 -0
- package/stencil/ui-image-b7b48fe5-DQE3WxuL.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-kIlLPkYB.js +39 -0
- package/stencil/ui-image_2-CJHJWEhi.cjs +73 -0
- package/stencil/ui-image_2-Db7N7hzA.js +154 -0
- package/stencil/ui-image_2-oohpKuRS.js +154 -0
- package/stencil/ui-skeleton-06DDwuG9.cjs +1 -0
- package/stencil/ui-skeleton-1cb75d00-CoUSUuCH.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-DwCQPKmJ.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-HdJyBz6W.cjs +73 -0
- package/stencil/ui-skeleton-BhWinivj.js +11 -0
- package/stencil/ui-skeleton-DdjXy3Vl.js +29 -0
- package/components/CasinoTournamentsController-oGL-nV5r.cjs +0 -27
- package/components/CasinoTournamentsThumbnail-CrJ40CSh.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-Cq6mNACM.cjs +0 -1
- package/components/CasinoTournamentsThumbnailController-Y3QRiL5v.js +0 -1422
- package/components/CasinoTournamentsThumbnailController-_3hlkXv6.js +0 -1405
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var On = Object.defineProperty, In = Object.defineProperties;
|
|
2
|
+
var Ln = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var br = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nn = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Rt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Nn.call(t, r) && Rt(e, r, t[r]);
|
|
8
|
+
if (br)
|
|
9
|
+
for (var r of br(t))
|
|
10
|
+
Mn.call(t, r) && Rt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var fe = (e, t, r) => (
|
|
12
|
+
}, vr = (e, t) => In(e, Ln(t));
|
|
13
|
+
var fe = (e, t, r) => (Rt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Le = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -29,29 +29,29 @@ var Le = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function ce() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function zr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function yr() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ht(e) {
|
|
39
|
+
e.forEach(zr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function St(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Wr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let pt;
|
|
48
|
+
function ws(e, t) {
|
|
49
|
+
return e === t ? !0 : (pt || (pt = document.createElement("a")), pt.href = t, e === pt.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Rn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function qr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,23 +60,23 @@ function Jr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Dn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(qr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return e &&
|
|
66
|
+
function Ts(e) {
|
|
67
|
+
return e && St(e.destroy) ? e.destroy : ce;
|
|
68
68
|
}
|
|
69
69
|
function re(e, t) {
|
|
70
70
|
e.appendChild(t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const n =
|
|
72
|
+
function Fn(e, t, r) {
|
|
73
|
+
const n = Un(e);
|
|
74
74
|
if (!n.getElementById(t)) {
|
|
75
75
|
const i = z("style");
|
|
76
|
-
i.id = t, i.textContent = r,
|
|
76
|
+
i.id = t, i.textContent = r, Gn(n, i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Un(e) {
|
|
80
80
|
if (!e)
|
|
81
81
|
return document;
|
|
82
82
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -86,7 +86,7 @@ function Gn(e) {
|
|
|
86
86
|
t
|
|
87
87
|
) : e.ownerDocument;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Gn(e, t) {
|
|
90
90
|
return re(
|
|
91
91
|
/** @type {Document} */
|
|
92
92
|
e.head || e,
|
|
@@ -99,26 +99,26 @@ function de(e, t, r) {
|
|
|
99
99
|
function ne(e) {
|
|
100
100
|
e.parentNode && e.parentNode.removeChild(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ss(e, t) {
|
|
103
103
|
for (let r = 0; r < e.length; r += 1)
|
|
104
104
|
e[r] && e[r].d(t);
|
|
105
105
|
}
|
|
106
106
|
function z(e) {
|
|
107
107
|
return document.createElement(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function As(e) {
|
|
110
110
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
111
111
|
}
|
|
112
112
|
function Ne(e) {
|
|
113
113
|
return document.createTextNode(e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function zt() {
|
|
116
116
|
return Ne(" ");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function jn() {
|
|
119
119
|
return Ne("");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Wt(e, t, r, n) {
|
|
122
122
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
123
123
|
}
|
|
124
124
|
function U(e, t, r) {
|
|
@@ -128,18 +128,18 @@ function w(e, t, r) {
|
|
|
128
128
|
const n = t.toLowerCase();
|
|
129
129
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function $n(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function st(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Hs(e, t, r, n) {
|
|
139
139
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
140
140
|
}
|
|
141
141
|
let bt;
|
|
142
|
-
function
|
|
142
|
+
function kn() {
|
|
143
143
|
if (bt === void 0) {
|
|
144
144
|
bt = !1;
|
|
145
145
|
try {
|
|
@@ -157,9 +157,9 @@ function Bs(e, t) {
|
|
|
157
157
|
"style",
|
|
158
158
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
159
159
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
160
|
-
const i =
|
|
160
|
+
const i = kn();
|
|
161
161
|
let o;
|
|
162
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
162
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Wt(
|
|
163
163
|
window,
|
|
164
164
|
"message",
|
|
165
165
|
/** @param {MessageEvent} event */
|
|
@@ -167,15 +167,15 @@ function Bs(e, t) {
|
|
|
167
167
|
s.source === n.contentWindow && t();
|
|
168
168
|
}
|
|
169
169
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
170
|
-
o =
|
|
170
|
+
o = Wt(n.contentWindow, "resize", t), t();
|
|
171
171
|
}), re(e, n), () => {
|
|
172
172
|
(i || o && n.contentWindow) && o(), ne(n);
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Ps(e, t, r) {
|
|
176
176
|
e.classList.toggle(t, !!r);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Vn(e) {
|
|
179
179
|
const t = {};
|
|
180
180
|
return e.childNodes.forEach(
|
|
181
181
|
/** @param {Element} node */
|
|
@@ -184,90 +184,90 @@ function Xn(e) {
|
|
|
184
184
|
}
|
|
185
185
|
), t;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
let at;
|
|
188
|
+
function ot(e) {
|
|
189
|
+
at = e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
191
|
+
function Xn() {
|
|
192
|
+
if (!at)
|
|
193
193
|
throw new Error("Function called outside component initialization");
|
|
194
|
-
return
|
|
194
|
+
return at;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
196
|
+
function zn(e) {
|
|
197
|
+
Xn().$$.on_mount.push(e);
|
|
198
198
|
}
|
|
199
|
-
const $e = [],
|
|
199
|
+
const $e = [], qt = [];
|
|
200
200
|
let ke = [];
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
201
|
+
const Er = [], Wn = /* @__PURE__ */ Promise.resolve();
|
|
202
|
+
let Zt = !1;
|
|
203
|
+
function qn() {
|
|
204
|
+
Zt || (Zt = !0, Wn.then(F));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Jt(e) {
|
|
207
207
|
ke.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
210
210
|
let Ge = 0;
|
|
211
|
-
function
|
|
211
|
+
function F() {
|
|
212
212
|
if (Ge !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = at;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; Ge < $e.length; ) {
|
|
218
218
|
const t = $e[Ge];
|
|
219
|
-
Ge++,
|
|
219
|
+
Ge++, ot(t), Zn(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw $e.length = 0, Ge = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
225
|
-
|
|
224
|
+
for (ot(null), $e.length = 0, Ge = 0; qt.length; )
|
|
225
|
+
qt.pop()();
|
|
226
226
|
for (let t = 0; t < ke.length; t += 1) {
|
|
227
227
|
const r = ke[t];
|
|
228
|
-
|
|
228
|
+
Dt.has(r) || (Dt.add(r), r());
|
|
229
229
|
}
|
|
230
230
|
ke.length = 0;
|
|
231
231
|
} while ($e.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; Er.length; )
|
|
233
|
+
Er.pop()();
|
|
234
|
+
Zt = !1, Dt.clear(), ot(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Zn(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
|
-
e.update(),
|
|
238
|
+
e.update(), ht(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Jt);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Jn(e) {
|
|
244
244
|
const t = [], r = [];
|
|
245
245
|
ke.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ke = t;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
248
|
-
function
|
|
249
|
-
e && e.i && (
|
|
247
|
+
const Qn = /* @__PURE__ */ new Set();
|
|
248
|
+
function Yn(e, t) {
|
|
249
|
+
e && e.i && (Qn.delete(e), e.i(t));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Cs(e) {
|
|
252
252
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Kn(e, t, r) {
|
|
255
255
|
const { fragment: n, after_update: i } = e.$$;
|
|
256
|
-
n && n.m(t, r),
|
|
257
|
-
const o = e.$$.on_mount.map(
|
|
258
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
259
|
-
}), i.forEach(
|
|
256
|
+
n && n.m(t, r), Jt(() => {
|
|
257
|
+
const o = e.$$.on_mount.map(zr).filter(St);
|
|
258
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ht(o), e.$$.on_mount = [];
|
|
259
|
+
}), i.forEach(Jt);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ei(e, t) {
|
|
262
262
|
const r = e.$$;
|
|
263
|
-
r.fragment !== null && (
|
|
263
|
+
r.fragment !== null && (Jn(r.after_update), ht(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
e.$$.dirty[0] === -1 && ($e.push(e),
|
|
265
|
+
function ti(e, t) {
|
|
266
|
+
e.$$.dirty[0] === -1 && ($e.push(e), qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
const l =
|
|
270
|
-
|
|
268
|
+
function ri(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
269
|
+
const l = at;
|
|
270
|
+
ot(e);
|
|
271
271
|
const u = e.$$ = {
|
|
272
272
|
fragment: null,
|
|
273
273
|
ctx: [],
|
|
@@ -275,7 +275,7 @@ function ni(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
275
275
|
props: o,
|
|
276
276
|
update: ce,
|
|
277
277
|
not_equal: i,
|
|
278
|
-
bound:
|
|
278
|
+
bound: yr(),
|
|
279
279
|
// lifecycle
|
|
280
280
|
on_mount: [],
|
|
281
281
|
on_destroy: [],
|
|
@@ -284,28 +284,28 @@ function ni(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
284
284
|
after_update: [],
|
|
285
285
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
286
286
|
// everything else
|
|
287
|
-
callbacks:
|
|
287
|
+
callbacks: yr(),
|
|
288
288
|
dirty: a,
|
|
289
289
|
skip_bound: !1,
|
|
290
290
|
root: t.target || l.$$.root
|
|
291
291
|
};
|
|
292
292
|
s && s(u.root);
|
|
293
293
|
let c = !1;
|
|
294
|
-
if (u.ctx = r ? r(e, t.props || {}, (d,
|
|
295
|
-
const
|
|
296
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] =
|
|
297
|
-
}) : [], u.update(), c = !0,
|
|
294
|
+
if (u.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
|
|
295
|
+
const O = _.length ? _[0] : p;
|
|
296
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = O) && (!u.skip_bound && u.bound[d] && u.bound[d](O), c && ti(e, d)), p;
|
|
297
|
+
}) : [], u.update(), c = !0, ht(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
298
298
|
if (t.hydrate) {
|
|
299
|
-
const d =
|
|
299
|
+
const d = $n(t.target);
|
|
300
300
|
u.fragment && u.fragment.l(d), d.forEach(ne);
|
|
301
301
|
} else
|
|
302
302
|
u.fragment && u.fragment.c();
|
|
303
|
-
t.intro &&
|
|
303
|
+
t.intro && Yn(e.$$.fragment), Kn(e, t.target, t.anchor), F();
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
ot(l);
|
|
306
306
|
}
|
|
307
|
-
let
|
|
308
|
-
typeof HTMLElement == "function" && (
|
|
307
|
+
let Zr;
|
|
308
|
+
typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
309
309
|
constructor(t, r, n) {
|
|
310
310
|
super();
|
|
311
311
|
/** The Svelte component constructor */
|
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
|
|
|
366
366
|
};
|
|
367
367
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
368
368
|
return;
|
|
369
|
-
const r = {}, n =
|
|
369
|
+
const r = {}, n = Vn(this);
|
|
370
370
|
for (const o of this.$$s)
|
|
371
371
|
o in n && (r[o] = [t(o)]);
|
|
372
372
|
for (const o of this.attributes) {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
|
|
|
377
377
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
378
378
|
this.$$c = new this.$$ctor({
|
|
379
379
|
target: this.shadowRoot || this,
|
|
380
|
-
props:
|
|
380
|
+
props: vr(gr({}, this.$$d), {
|
|
381
381
|
$$slots: r,
|
|
382
382
|
$$scope: {
|
|
383
383
|
ctx: []
|
|
@@ -455,8 +455,8 @@ function yt(e, t, r, n) {
|
|
|
455
455
|
return t;
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
let s = class extends
|
|
458
|
+
function ni(e, t, r, n, i, o) {
|
|
459
|
+
let s = class extends Zr {
|
|
460
460
|
constructor() {
|
|
461
461
|
super(e, r, i), this.$$p_d = t;
|
|
462
462
|
}
|
|
@@ -486,7 +486,7 @@ function ii(e, t, r, n, i, o) {
|
|
|
486
486
|
}), e.element = /** @type {any} */
|
|
487
487
|
s, s;
|
|
488
488
|
}
|
|
489
|
-
class
|
|
489
|
+
class ii {
|
|
490
490
|
constructor() {
|
|
491
491
|
/**
|
|
492
492
|
* ### PRIVATE API
|
|
@@ -507,7 +507,7 @@ class oi {
|
|
|
507
507
|
}
|
|
508
508
|
/** @returns {void} */
|
|
509
509
|
$destroy() {
|
|
510
|
-
|
|
510
|
+
ei(this, 1), this.$destroy = ce;
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
513
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -516,7 +516,7 @@ class oi {
|
|
|
516
516
|
* @returns {() => void}
|
|
517
517
|
*/
|
|
518
518
|
$on(t, r) {
|
|
519
|
-
if (!
|
|
519
|
+
if (!St(r))
|
|
520
520
|
return ce;
|
|
521
521
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
522
522
|
return n.push(r), () => {
|
|
@@ -529,11 +529,11 @@ class oi {
|
|
|
529
529
|
* @returns {void}
|
|
530
530
|
*/
|
|
531
531
|
$set(t) {
|
|
532
|
-
this.$$set && !
|
|
532
|
+
this.$$set && !Rn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
535
|
+
const oi = "4";
|
|
536
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(oi);
|
|
537
537
|
/*! *****************************************************************************
|
|
538
538
|
Copyright (c) Microsoft Corporation.
|
|
539
539
|
|
|
@@ -548,24 +548,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
548
548
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
549
549
|
PERFORMANCE OF THIS SOFTWARE.
|
|
550
550
|
***************************************************************************** */
|
|
551
|
-
var
|
|
552
|
-
return
|
|
551
|
+
var Qt = function(e, t) {
|
|
552
|
+
return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
553
553
|
r.__proto__ = n;
|
|
554
554
|
} || function(r, n) {
|
|
555
555
|
for (var i in n)
|
|
556
556
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
557
|
-
},
|
|
557
|
+
}, Qt(e, t);
|
|
558
558
|
};
|
|
559
|
-
function
|
|
559
|
+
function we(e, t) {
|
|
560
560
|
if (typeof t != "function" && t !== null)
|
|
561
561
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
562
|
-
|
|
562
|
+
Qt(e, t);
|
|
563
563
|
function r() {
|
|
564
564
|
this.constructor = e;
|
|
565
565
|
}
|
|
566
566
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
var P = function() {
|
|
569
|
+
return P = Object.assign || function(t) {
|
|
570
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
571
|
+
r = arguments[n];
|
|
572
|
+
for (var o in r)
|
|
573
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
574
|
+
}
|
|
575
|
+
return t;
|
|
576
|
+
}, P.apply(this, arguments);
|
|
577
|
+
};
|
|
578
|
+
function si(e, t) {
|
|
579
|
+
var r = {};
|
|
580
|
+
for (var n in e)
|
|
581
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
582
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
583
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
584
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
585
|
+
return r;
|
|
586
|
+
}
|
|
587
|
+
function Yt(e) {
|
|
569
588
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
570
589
|
if (r)
|
|
571
590
|
return r.call(e);
|
|
@@ -577,7 +596,7 @@ function er(e) {
|
|
|
577
596
|
};
|
|
578
597
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
579
598
|
}
|
|
580
|
-
function
|
|
599
|
+
function Kt(e, t) {
|
|
581
600
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
582
601
|
if (!r)
|
|
583
602
|
return e;
|
|
@@ -597,22 +616,22 @@ function tr(e, t) {
|
|
|
597
616
|
}
|
|
598
617
|
return o;
|
|
599
618
|
}
|
|
600
|
-
function
|
|
601
|
-
if (arguments.length === 2)
|
|
619
|
+
function Ve(e, t, r) {
|
|
620
|
+
if (r || arguments.length === 2)
|
|
602
621
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
603
622
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
604
623
|
return e.concat(o || t);
|
|
605
624
|
}
|
|
606
|
-
function
|
|
625
|
+
function xe(e) {
|
|
607
626
|
return typeof e == "function";
|
|
608
627
|
}
|
|
609
|
-
function
|
|
628
|
+
function Jr(e) {
|
|
610
629
|
var t = function(n) {
|
|
611
630
|
Error.call(n), n.stack = new Error().stack;
|
|
612
631
|
}, r = e(t);
|
|
613
632
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
614
633
|
}
|
|
615
|
-
var
|
|
634
|
+
var Ft = Jr(function(e) {
|
|
616
635
|
return function(r) {
|
|
617
636
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
618
637
|
` + r.map(function(n, i) {
|
|
@@ -621,13 +640,13 @@ var Gt = Yr(function(e) {
|
|
|
621
640
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
622
641
|
};
|
|
623
642
|
});
|
|
624
|
-
function
|
|
643
|
+
function er(e, t) {
|
|
625
644
|
if (e) {
|
|
626
645
|
var r = e.indexOf(t);
|
|
627
646
|
0 <= r && e.splice(r, 1);
|
|
628
647
|
}
|
|
629
648
|
}
|
|
630
|
-
var
|
|
649
|
+
var At = function() {
|
|
631
650
|
function e(t) {
|
|
632
651
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
633
652
|
}
|
|
@@ -639,12 +658,12 @@ var Ht = function() {
|
|
|
639
658
|
if (s)
|
|
640
659
|
if (this._parentage = null, Array.isArray(s))
|
|
641
660
|
try {
|
|
642
|
-
for (var a =
|
|
661
|
+
for (var a = Yt(s), l = a.next(); !l.done; l = a.next()) {
|
|
643
662
|
var u = l.value;
|
|
644
663
|
u.remove(this);
|
|
645
664
|
}
|
|
646
|
-
} catch (
|
|
647
|
-
t = { error:
|
|
665
|
+
} catch (B) {
|
|
666
|
+
t = { error: B };
|
|
648
667
|
} finally {
|
|
649
668
|
try {
|
|
650
669
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -656,29 +675,29 @@ var Ht = function() {
|
|
|
656
675
|
else
|
|
657
676
|
s.remove(this);
|
|
658
677
|
var c = this.initialTeardown;
|
|
659
|
-
if (
|
|
678
|
+
if (xe(c))
|
|
660
679
|
try {
|
|
661
680
|
c();
|
|
662
|
-
} catch (
|
|
663
|
-
o =
|
|
681
|
+
} catch (B) {
|
|
682
|
+
o = B instanceof Ft ? B.errors : [B];
|
|
664
683
|
}
|
|
665
684
|
var d = this._finalizers;
|
|
666
685
|
if (d) {
|
|
667
686
|
this._finalizers = null;
|
|
668
687
|
try {
|
|
669
|
-
for (var
|
|
670
|
-
var
|
|
688
|
+
for (var p = Yt(d), _ = p.next(); !_.done; _ = p.next()) {
|
|
689
|
+
var O = _.value;
|
|
671
690
|
try {
|
|
672
|
-
|
|
673
|
-
} catch (
|
|
674
|
-
o = o != null ? o : [],
|
|
691
|
+
_r(O);
|
|
692
|
+
} catch (B) {
|
|
693
|
+
o = o != null ? o : [], B instanceof Ft ? o = Ve(Ve([], Kt(o)), Kt(B.errors)) : o.push(B);
|
|
675
694
|
}
|
|
676
695
|
}
|
|
677
|
-
} catch (
|
|
678
|
-
n = { error:
|
|
696
|
+
} catch (B) {
|
|
697
|
+
n = { error: B };
|
|
679
698
|
} finally {
|
|
680
699
|
try {
|
|
681
|
-
|
|
700
|
+
_ && !_.done && (i = p.return) && i.call(p);
|
|
682
701
|
} finally {
|
|
683
702
|
if (n)
|
|
684
703
|
throw n.error;
|
|
@@ -686,13 +705,13 @@ var Ht = function() {
|
|
|
686
705
|
}
|
|
687
706
|
}
|
|
688
707
|
if (o)
|
|
689
|
-
throw new
|
|
708
|
+
throw new Ft(o);
|
|
690
709
|
}
|
|
691
710
|
}, e.prototype.add = function(t) {
|
|
692
711
|
var r;
|
|
693
712
|
if (t && t !== this)
|
|
694
713
|
if (this.closed)
|
|
695
|
-
|
|
714
|
+
_r(t);
|
|
696
715
|
else {
|
|
697
716
|
if (t instanceof e) {
|
|
698
717
|
if (t.closed || t._hasParent(this))
|
|
@@ -709,52 +728,56 @@ var Ht = function() {
|
|
|
709
728
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
710
729
|
}, e.prototype._removeParent = function(t) {
|
|
711
730
|
var r = this._parentage;
|
|
712
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
731
|
+
r === t ? this._parentage = null : Array.isArray(r) && er(r, t);
|
|
713
732
|
}, e.prototype.remove = function(t) {
|
|
714
733
|
var r = this._finalizers;
|
|
715
|
-
r &&
|
|
734
|
+
r && er(r, t), t instanceof e && t._removeParent(this);
|
|
716
735
|
}, e.EMPTY = function() {
|
|
717
736
|
var t = new e();
|
|
718
737
|
return t.closed = !0, t;
|
|
719
738
|
}(), e;
|
|
720
|
-
}(),
|
|
721
|
-
function
|
|
722
|
-
return e instanceof
|
|
723
|
-
}
|
|
724
|
-
function
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
var
|
|
728
|
-
|
|
729
|
-
|
|
739
|
+
}(), Qr = At.EMPTY;
|
|
740
|
+
function Yr(e) {
|
|
741
|
+
return e instanceof At || e && "closed" in e && xe(e.remove) && xe(e.add) && xe(e.unsubscribe);
|
|
742
|
+
}
|
|
743
|
+
function _r(e) {
|
|
744
|
+
xe(e) ? e() : e.unsubscribe();
|
|
745
|
+
}
|
|
746
|
+
var Kr = {
|
|
747
|
+
onUnhandledError: null,
|
|
748
|
+
onStoppedNotification: null,
|
|
749
|
+
Promise: void 0,
|
|
750
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
751
|
+
useDeprecatedNextContext: !1
|
|
752
|
+
}, ai = {
|
|
730
753
|
setTimeout: function(e, t) {
|
|
731
754
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
732
755
|
r[n - 2] = arguments[n];
|
|
733
|
-
return setTimeout.apply(void 0,
|
|
756
|
+
return setTimeout.apply(void 0, Ve([e, t], Kt(r)));
|
|
734
757
|
},
|
|
735
758
|
clearTimeout: function(e) {
|
|
736
759
|
return clearTimeout(e);
|
|
737
760
|
},
|
|
738
761
|
delegate: void 0
|
|
739
762
|
};
|
|
740
|
-
function
|
|
741
|
-
|
|
763
|
+
function ui(e) {
|
|
764
|
+
ai.setTimeout(function() {
|
|
742
765
|
throw e;
|
|
743
766
|
});
|
|
744
767
|
}
|
|
745
|
-
function
|
|
768
|
+
function xr() {
|
|
746
769
|
}
|
|
747
|
-
function
|
|
770
|
+
function Et(e) {
|
|
748
771
|
e();
|
|
749
772
|
}
|
|
750
|
-
var
|
|
751
|
-
|
|
773
|
+
var en = function(e) {
|
|
774
|
+
we(t, e);
|
|
752
775
|
function t(r) {
|
|
753
776
|
var n = e.call(this) || this;
|
|
754
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
777
|
+
return n.isStopped = !1, r ? (n.destination = r, Yr(r) && r.add(n)) : n.destination = ci, n;
|
|
755
778
|
}
|
|
756
779
|
return t.create = function(r, n, i) {
|
|
757
|
-
return new
|
|
780
|
+
return new tr(r, n, i);
|
|
758
781
|
}, t.prototype.next = function(r) {
|
|
759
782
|
this.isStopped || this._next(r);
|
|
760
783
|
}, t.prototype.error = function(r) {
|
|
@@ -778,7 +801,11 @@ var tn = function(e) {
|
|
|
778
801
|
this.unsubscribe();
|
|
779
802
|
}
|
|
780
803
|
}, t;
|
|
781
|
-
}(
|
|
804
|
+
}(At), li = Function.prototype.bind;
|
|
805
|
+
function Ut(e, t) {
|
|
806
|
+
return li.call(e, t);
|
|
807
|
+
}
|
|
808
|
+
var hi = function() {
|
|
782
809
|
function e(t) {
|
|
783
810
|
this.partialObserver = t;
|
|
784
811
|
}
|
|
@@ -809,43 +836,55 @@ var tn = function(e) {
|
|
|
809
836
|
gt(r);
|
|
810
837
|
}
|
|
811
838
|
}, e;
|
|
812
|
-
}(),
|
|
813
|
-
|
|
839
|
+
}(), tr = function(e) {
|
|
840
|
+
we(t, e);
|
|
814
841
|
function t(r, n, i) {
|
|
815
842
|
var o = e.call(this) || this, s;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
843
|
+
if (xe(r) || !r)
|
|
844
|
+
s = {
|
|
845
|
+
next: r != null ? r : void 0,
|
|
846
|
+
error: n != null ? n : void 0,
|
|
847
|
+
complete: i != null ? i : void 0
|
|
848
|
+
};
|
|
849
|
+
else {
|
|
850
|
+
var a;
|
|
851
|
+
o && Kr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
852
|
+
return o.unsubscribe();
|
|
853
|
+
}, s = {
|
|
854
|
+
next: r.next && Ut(r.next, a),
|
|
855
|
+
error: r.error && Ut(r.error, a),
|
|
856
|
+
complete: r.complete && Ut(r.complete, a)
|
|
857
|
+
}) : s = r;
|
|
858
|
+
}
|
|
859
|
+
return o.destination = new hi(s), o;
|
|
821
860
|
}
|
|
822
861
|
return t;
|
|
823
|
-
}(
|
|
862
|
+
}(en);
|
|
824
863
|
function gt(e) {
|
|
825
|
-
|
|
864
|
+
ui(e);
|
|
826
865
|
}
|
|
827
866
|
function fi(e) {
|
|
828
867
|
throw e;
|
|
829
868
|
}
|
|
830
869
|
var ci = {
|
|
831
870
|
closed: !0,
|
|
832
|
-
next:
|
|
871
|
+
next: xr,
|
|
833
872
|
error: fi,
|
|
834
|
-
complete:
|
|
873
|
+
complete: xr
|
|
835
874
|
}, di = function() {
|
|
836
875
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
837
876
|
}();
|
|
838
|
-
function
|
|
877
|
+
function mi(e) {
|
|
839
878
|
return e;
|
|
840
879
|
}
|
|
841
|
-
function
|
|
842
|
-
return e.length === 0 ?
|
|
880
|
+
function pi(e) {
|
|
881
|
+
return e.length === 0 ? mi : e.length === 1 ? e[0] : function(r) {
|
|
843
882
|
return e.reduce(function(n, i) {
|
|
844
883
|
return i(n);
|
|
845
884
|
}, r);
|
|
846
885
|
};
|
|
847
886
|
}
|
|
848
|
-
var
|
|
887
|
+
var wr = function() {
|
|
849
888
|
function e(t) {
|
|
850
889
|
t && (this._subscribe = t);
|
|
851
890
|
}
|
|
@@ -853,8 +892,8 @@ var Sr = function() {
|
|
|
853
892
|
var r = new e();
|
|
854
893
|
return r.source = this, r.operator = t, r;
|
|
855
894
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
856
|
-
var i = this, o = gi(t) ? t : new
|
|
857
|
-
return
|
|
895
|
+
var i = this, o = gi(t) ? t : new tr(t, r, n);
|
|
896
|
+
return Et(function() {
|
|
858
897
|
var s = i, a = s.operator, l = s.source;
|
|
859
898
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
860
899
|
}), o;
|
|
@@ -866,8 +905,8 @@ var Sr = function() {
|
|
|
866
905
|
}
|
|
867
906
|
}, e.prototype.forEach = function(t, r) {
|
|
868
907
|
var n = this;
|
|
869
|
-
return r =
|
|
870
|
-
var s = new
|
|
908
|
+
return r = Tr(r), new r(function(i, o) {
|
|
909
|
+
var s = new tr({
|
|
871
910
|
next: function(a) {
|
|
872
911
|
try {
|
|
873
912
|
t(a);
|
|
@@ -888,10 +927,10 @@ var Sr = function() {
|
|
|
888
927
|
}, e.prototype.pipe = function() {
|
|
889
928
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
890
929
|
t[r] = arguments[r];
|
|
891
|
-
return
|
|
930
|
+
return pi(t)(this);
|
|
892
931
|
}, e.prototype.toPromise = function(t) {
|
|
893
932
|
var r = this;
|
|
894
|
-
return t =
|
|
933
|
+
return t = Tr(t), new t(function(n, i) {
|
|
895
934
|
var o;
|
|
896
935
|
r.subscribe(function(s) {
|
|
897
936
|
return o = s;
|
|
@@ -905,40 +944,40 @@ var Sr = function() {
|
|
|
905
944
|
return new e(t);
|
|
906
945
|
}, e;
|
|
907
946
|
}();
|
|
908
|
-
function
|
|
947
|
+
function Tr(e) {
|
|
909
948
|
var t;
|
|
910
|
-
return (t = e != null ? e :
|
|
949
|
+
return (t = e != null ? e : Kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
911
950
|
}
|
|
912
951
|
function bi(e) {
|
|
913
|
-
return e &&
|
|
952
|
+
return e && xe(e.next) && xe(e.error) && xe(e.complete);
|
|
914
953
|
}
|
|
915
954
|
function gi(e) {
|
|
916
|
-
return e && e instanceof
|
|
955
|
+
return e && e instanceof en || bi(e) && Yr(e);
|
|
917
956
|
}
|
|
918
|
-
var vi =
|
|
957
|
+
var vi = Jr(function(e) {
|
|
919
958
|
return function() {
|
|
920
959
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
921
960
|
};
|
|
922
|
-
}),
|
|
923
|
-
|
|
961
|
+
}), tn = function(e) {
|
|
962
|
+
we(t, e);
|
|
924
963
|
function t() {
|
|
925
964
|
var r = e.call(this) || this;
|
|
926
965
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
927
966
|
}
|
|
928
967
|
return t.prototype.lift = function(r) {
|
|
929
|
-
var n = new
|
|
968
|
+
var n = new Sr(this, this);
|
|
930
969
|
return n.operator = r, n;
|
|
931
970
|
}, t.prototype._throwIfClosed = function() {
|
|
932
971
|
if (this.closed)
|
|
933
972
|
throw new vi();
|
|
934
973
|
}, t.prototype.next = function(r) {
|
|
935
974
|
var n = this;
|
|
936
|
-
|
|
975
|
+
Et(function() {
|
|
937
976
|
var i, o;
|
|
938
977
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
939
978
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
940
979
|
try {
|
|
941
|
-
for (var s =
|
|
980
|
+
for (var s = Yt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
942
981
|
var l = a.value;
|
|
943
982
|
l.next(r);
|
|
944
983
|
}
|
|
@@ -956,7 +995,7 @@ var vi = Yr(function(e) {
|
|
|
956
995
|
});
|
|
957
996
|
}, t.prototype.error = function(r) {
|
|
958
997
|
var n = this;
|
|
959
|
-
|
|
998
|
+
Et(function() {
|
|
960
999
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
961
1000
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
962
1001
|
for (var i = n.observers; i.length; )
|
|
@@ -965,7 +1004,7 @@ var vi = Yr(function(e) {
|
|
|
965
1004
|
});
|
|
966
1005
|
}, t.prototype.complete = function() {
|
|
967
1006
|
var r = this;
|
|
968
|
-
|
|
1007
|
+
Et(function() {
|
|
969
1008
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
970
1009
|
r.isStopped = !0;
|
|
971
1010
|
for (var n = r.observers; n.length; )
|
|
@@ -987,20 +1026,20 @@ var vi = Yr(function(e) {
|
|
|
987
1026
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
988
1027
|
}, t.prototype._innerSubscribe = function(r) {
|
|
989
1028
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
990
|
-
return o || s ?
|
|
991
|
-
n.currentObservers = null,
|
|
1029
|
+
return o || s ? Qr : (this.currentObservers = null, a.push(r), new At(function() {
|
|
1030
|
+
n.currentObservers = null, er(a, r);
|
|
992
1031
|
}));
|
|
993
1032
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
994
1033
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
995
1034
|
i ? r.error(o) : s && r.complete();
|
|
996
1035
|
}, t.prototype.asObservable = function() {
|
|
997
|
-
var r = new
|
|
1036
|
+
var r = new wr();
|
|
998
1037
|
return r.source = this, r;
|
|
999
1038
|
}, t.create = function(r, n) {
|
|
1000
|
-
return new
|
|
1039
|
+
return new Sr(r, n);
|
|
1001
1040
|
}, t;
|
|
1002
|
-
}(
|
|
1003
|
-
|
|
1041
|
+
}(wr), Sr = function(e) {
|
|
1042
|
+
we(t, e);
|
|
1004
1043
|
function t(r, n) {
|
|
1005
1044
|
var i = e.call(this) || this;
|
|
1006
1045
|
return i.destination = r, i.source = n, i;
|
|
@@ -1016,17 +1055,17 @@ var vi = Yr(function(e) {
|
|
|
1016
1055
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1017
1056
|
}, t.prototype._subscribe = function(r) {
|
|
1018
1057
|
var n, i;
|
|
1019
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1058
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qr;
|
|
1020
1059
|
}, t;
|
|
1021
|
-
}(
|
|
1060
|
+
}(tn), rn = {
|
|
1022
1061
|
now: function() {
|
|
1023
|
-
return (
|
|
1062
|
+
return (rn.delegate || Date).now();
|
|
1024
1063
|
},
|
|
1025
1064
|
delegate: void 0
|
|
1026
1065
|
}, yi = function(e) {
|
|
1027
|
-
|
|
1066
|
+
we(t, e);
|
|
1028
1067
|
function t(r, n, i) {
|
|
1029
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1068
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = rn);
|
|
1030
1069
|
var o = e.call(this) || this;
|
|
1031
1070
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1032
1071
|
}
|
|
@@ -1046,24 +1085,24 @@ var vi = Yr(function(e) {
|
|
|
1046
1085
|
u && o.splice(0, u + 1);
|
|
1047
1086
|
}
|
|
1048
1087
|
}, t;
|
|
1049
|
-
}(
|
|
1050
|
-
const
|
|
1051
|
-
if (
|
|
1088
|
+
}(tn);
|
|
1089
|
+
const Ar = [], Hr = {}, Ei = (e, t = 0) => {
|
|
1090
|
+
if (Ar.indexOf(e) == -1) {
|
|
1052
1091
|
const r = new yi(t);
|
|
1053
|
-
|
|
1092
|
+
Hr[e] = r, Ar.push(e);
|
|
1054
1093
|
}
|
|
1055
|
-
return
|
|
1094
|
+
return Hr[e];
|
|
1056
1095
|
}, je = [];
|
|
1057
|
-
function
|
|
1096
|
+
function _i(e, t) {
|
|
1058
1097
|
return {
|
|
1059
|
-
subscribe:
|
|
1098
|
+
subscribe: Ht(e, t).subscribe
|
|
1060
1099
|
};
|
|
1061
1100
|
}
|
|
1062
|
-
function
|
|
1101
|
+
function Ht(e, t = ce) {
|
|
1063
1102
|
let r;
|
|
1064
1103
|
const n = /* @__PURE__ */ new Set();
|
|
1065
1104
|
function i(a) {
|
|
1066
|
-
if (
|
|
1105
|
+
if (Wr(e, a) && (e = a, r)) {
|
|
1067
1106
|
const l = !je.length;
|
|
1068
1107
|
for (const u of n)
|
|
1069
1108
|
u[1](), je.push(u, e);
|
|
@@ -1085,34 +1124,34 @@ function Pt(e, t = ce) {
|
|
|
1085
1124
|
}
|
|
1086
1125
|
return { set: i, update: o, subscribe: s };
|
|
1087
1126
|
}
|
|
1088
|
-
function
|
|
1127
|
+
function Ze(e, t, r) {
|
|
1089
1128
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1090
1129
|
if (!i.every(Boolean))
|
|
1091
1130
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1092
1131
|
const o = t.length < 2;
|
|
1093
|
-
return
|
|
1132
|
+
return _i(r, (s, a) => {
|
|
1094
1133
|
let l = !1;
|
|
1095
1134
|
const u = [];
|
|
1096
1135
|
let c = 0, d = ce;
|
|
1097
|
-
const
|
|
1136
|
+
const p = () => {
|
|
1098
1137
|
if (c)
|
|
1099
1138
|
return;
|
|
1100
1139
|
d();
|
|
1101
|
-
const
|
|
1102
|
-
o ? s(
|
|
1103
|
-
},
|
|
1104
|
-
(
|
|
1105
|
-
|
|
1140
|
+
const O = t(n ? u[0] : u, s, a);
|
|
1141
|
+
o ? s(O) : d = St(O) ? O : ce;
|
|
1142
|
+
}, _ = i.map(
|
|
1143
|
+
(O, B) => qr(
|
|
1144
|
+
O,
|
|
1106
1145
|
(ee) => {
|
|
1107
|
-
u[
|
|
1146
|
+
u[B] = ee, c &= ~(1 << B), l && p();
|
|
1108
1147
|
},
|
|
1109
1148
|
() => {
|
|
1110
|
-
c |= 1 <<
|
|
1149
|
+
c |= 1 << B;
|
|
1111
1150
|
}
|
|
1112
1151
|
)
|
|
1113
1152
|
);
|
|
1114
|
-
return l = !0,
|
|
1115
|
-
|
|
1153
|
+
return l = !0, p(), function() {
|
|
1154
|
+
ht(_), d(), l = !1;
|
|
1116
1155
|
};
|
|
1117
1156
|
});
|
|
1118
1157
|
}
|
|
@@ -1128,28 +1167,28 @@ function Si(e) {
|
|
|
1128
1167
|
}
|
|
1129
1168
|
function Ai(e) {
|
|
1130
1169
|
var t = Object.prototype.toString.call(e);
|
|
1131
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1170
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pi(e);
|
|
1132
1171
|
}
|
|
1133
|
-
var Hi = typeof Symbol == "function" && Symbol.for,
|
|
1134
|
-
function
|
|
1135
|
-
return e.$$typeof ===
|
|
1172
|
+
var Hi = typeof Symbol == "function" && Symbol.for, Bi = Hi ? Symbol.for("react.element") : 60103;
|
|
1173
|
+
function Pi(e) {
|
|
1174
|
+
return e.$$typeof === Bi;
|
|
1136
1175
|
}
|
|
1137
|
-
function
|
|
1176
|
+
function Ci(e) {
|
|
1138
1177
|
return Array.isArray(e) ? [] : {};
|
|
1139
1178
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1179
|
+
function ut(e, t) {
|
|
1180
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Xe(Ci(e), e, t) : e;
|
|
1142
1181
|
}
|
|
1143
|
-
function
|
|
1182
|
+
function Oi(e, t, r) {
|
|
1144
1183
|
return e.concat(t).map(function(n) {
|
|
1145
|
-
return
|
|
1184
|
+
return ut(n, r);
|
|
1146
1185
|
});
|
|
1147
1186
|
}
|
|
1148
1187
|
function Ii(e, t) {
|
|
1149
1188
|
if (!t.customMerge)
|
|
1150
|
-
return
|
|
1189
|
+
return Xe;
|
|
1151
1190
|
var r = t.customMerge(e);
|
|
1152
|
-
return typeof r == "function" ? r :
|
|
1191
|
+
return typeof r == "function" ? r : Xe;
|
|
1153
1192
|
}
|
|
1154
1193
|
function Li(e) {
|
|
1155
1194
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1159,7 +1198,7 @@ function Li(e) {
|
|
|
1159
1198
|
function Br(e) {
|
|
1160
1199
|
return Object.keys(e).concat(Li(e));
|
|
1161
1200
|
}
|
|
1162
|
-
function
|
|
1201
|
+
function nn(e, t) {
|
|
1163
1202
|
try {
|
|
1164
1203
|
return t in e;
|
|
1165
1204
|
} catch (r) {
|
|
@@ -1167,179 +1206,129 @@ function on(e, t) {
|
|
|
1167
1206
|
}
|
|
1168
1207
|
}
|
|
1169
1208
|
function Ni(e, t) {
|
|
1170
|
-
return
|
|
1209
|
+
return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1171
1210
|
}
|
|
1172
1211
|
function Mi(e, t, r) {
|
|
1173
1212
|
var n = {};
|
|
1174
1213
|
return r.isMergeableObject(e) && Br(e).forEach(function(i) {
|
|
1175
|
-
n[i] =
|
|
1214
|
+
n[i] = ut(e[i], r);
|
|
1176
1215
|
}), Br(t).forEach(function(i) {
|
|
1177
|
-
Ni(e, i) || (
|
|
1216
|
+
Ni(e, i) || (nn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ii(i, r)(e[i], t[i], r) : n[i] = ut(t[i], r));
|
|
1178
1217
|
}), n;
|
|
1179
1218
|
}
|
|
1180
|
-
function
|
|
1181
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1219
|
+
function Xe(e, t, r) {
|
|
1220
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Oi, r.isMergeableObject = r.isMergeableObject || Ti, r.cloneUnlessOtherwiseSpecified = ut;
|
|
1182
1221
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1183
|
-
return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) :
|
|
1222
|
+
return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) : ut(t, r);
|
|
1184
1223
|
}
|
|
1185
|
-
|
|
1224
|
+
Xe.all = function(t, r) {
|
|
1186
1225
|
if (!Array.isArray(t))
|
|
1187
1226
|
throw new Error("first argument should be an array");
|
|
1188
1227
|
return t.reduce(function(n, i) {
|
|
1189
|
-
return
|
|
1228
|
+
return Xe(n, i, r);
|
|
1190
1229
|
}, {});
|
|
1191
1230
|
};
|
|
1192
|
-
var Ri =
|
|
1231
|
+
var Ri = Xe, Di = Ri;
|
|
1193
1232
|
const Fi = /* @__PURE__ */ wi(Di);
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
r.__proto__ = n;
|
|
1197
|
-
} || function(r, n) {
|
|
1198
|
-
for (var i in n)
|
|
1199
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1200
|
-
}, or(e, t);
|
|
1201
|
-
};
|
|
1202
|
-
function Ot(e, t) {
|
|
1203
|
-
if (typeof t != "function" && t !== null)
|
|
1204
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1205
|
-
or(e, t);
|
|
1206
|
-
function r() {
|
|
1207
|
-
this.constructor = e;
|
|
1208
|
-
}
|
|
1209
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1210
|
-
}
|
|
1211
|
-
var ye = function() {
|
|
1212
|
-
return ye = Object.assign || function(t) {
|
|
1213
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1214
|
-
r = arguments[n];
|
|
1215
|
-
for (var o in r)
|
|
1216
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1217
|
-
}
|
|
1218
|
-
return t;
|
|
1219
|
-
}, ye.apply(this, arguments);
|
|
1220
|
-
};
|
|
1221
|
-
function Ui(e, t) {
|
|
1222
|
-
var r = {};
|
|
1223
|
-
for (var n in e)
|
|
1224
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1225
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1226
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1227
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1228
|
-
return r;
|
|
1229
|
-
}
|
|
1230
|
-
function jt(e, t, r) {
|
|
1231
|
-
if (r || arguments.length === 2)
|
|
1232
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1233
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1234
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1235
|
-
}
|
|
1236
|
-
function $t(e, t) {
|
|
1237
|
-
var r = t && t.cache ? t.cache : zi, n = t && t.serializer ? t.serializer : Vi, i = t && t.strategy ? t.strategy : $i;
|
|
1233
|
+
function Gt(e, t) {
|
|
1234
|
+
var r = t && t.cache ? t.cache : Vi, n = t && t.serializer ? t.serializer : ki, i = t && t.strategy ? t.strategy : Gi;
|
|
1238
1235
|
return i(e, {
|
|
1239
1236
|
cache: r,
|
|
1240
1237
|
serializer: n
|
|
1241
1238
|
});
|
|
1242
1239
|
}
|
|
1243
|
-
function
|
|
1240
|
+
function Ui(e) {
|
|
1244
1241
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1245
1242
|
}
|
|
1246
|
-
function
|
|
1247
|
-
var i =
|
|
1243
|
+
function on(e, t, r, n) {
|
|
1244
|
+
var i = Ui(n) ? n : r(n), o = t.get(i);
|
|
1248
1245
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1249
1246
|
}
|
|
1250
1247
|
function sn(e, t, r) {
|
|
1251
1248
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1252
1249
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1253
1250
|
}
|
|
1254
|
-
function
|
|
1251
|
+
function fr(e, t, r, n, i) {
|
|
1255
1252
|
return r.bind(t, e, n, i);
|
|
1256
1253
|
}
|
|
1257
|
-
function
|
|
1258
|
-
var r = e.length === 1 ?
|
|
1259
|
-
return
|
|
1254
|
+
function Gi(e, t) {
|
|
1255
|
+
var r = e.length === 1 ? on : sn;
|
|
1256
|
+
return fr(e, this, r, t.cache.create(), t.serializer);
|
|
1260
1257
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return
|
|
1258
|
+
function ji(e, t) {
|
|
1259
|
+
return fr(e, this, sn, t.cache.create(), t.serializer);
|
|
1263
1260
|
}
|
|
1264
|
-
|
|
1261
|
+
function $i(e, t) {
|
|
1262
|
+
return fr(e, this, on, t.cache.create(), t.serializer);
|
|
1263
|
+
}
|
|
1264
|
+
var ki = function() {
|
|
1265
1265
|
return JSON.stringify(arguments);
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}()
|
|
1278
|
-
), zi = {
|
|
1266
|
+
};
|
|
1267
|
+
function cr() {
|
|
1268
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1269
|
+
}
|
|
1270
|
+
cr.prototype.get = function(e) {
|
|
1271
|
+
return this.cache[e];
|
|
1272
|
+
};
|
|
1273
|
+
cr.prototype.set = function(e, t) {
|
|
1274
|
+
this.cache[e] = t;
|
|
1275
|
+
};
|
|
1276
|
+
var Vi = {
|
|
1279
1277
|
create: function() {
|
|
1280
|
-
return new
|
|
1278
|
+
return new cr();
|
|
1281
1279
|
}
|
|
1282
|
-
},
|
|
1283
|
-
variadic:
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1287
|
-
r = arguments[n];
|
|
1288
|
-
for (var o in r)
|
|
1289
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1290
|
-
}
|
|
1291
|
-
return t;
|
|
1292
|
-
}, wt.apply(this, arguments);
|
|
1293
|
-
};
|
|
1294
|
-
var A;
|
|
1280
|
+
}, jt = {
|
|
1281
|
+
variadic: ji,
|
|
1282
|
+
monadic: $i
|
|
1283
|
+
}, A;
|
|
1295
1284
|
(function(e) {
|
|
1296
1285
|
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";
|
|
1297
1286
|
})(A || (A = {}));
|
|
1298
|
-
var
|
|
1287
|
+
var D;
|
|
1299
1288
|
(function(e) {
|
|
1300
1289
|
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";
|
|
1301
|
-
})(
|
|
1302
|
-
var
|
|
1290
|
+
})(D || (D = {}));
|
|
1291
|
+
var ze;
|
|
1303
1292
|
(function(e) {
|
|
1304
1293
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1305
|
-
})(
|
|
1306
|
-
function
|
|
1307
|
-
return e.type ===
|
|
1294
|
+
})(ze || (ze = {}));
|
|
1295
|
+
function Pr(e) {
|
|
1296
|
+
return e.type === D.literal;
|
|
1308
1297
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return e.type ===
|
|
1298
|
+
function Xi(e) {
|
|
1299
|
+
return e.type === D.argument;
|
|
1300
|
+
}
|
|
1301
|
+
function an(e) {
|
|
1302
|
+
return e.type === D.number;
|
|
1311
1303
|
}
|
|
1312
1304
|
function un(e) {
|
|
1313
|
-
return e.type ===
|
|
1305
|
+
return e.type === D.date;
|
|
1314
1306
|
}
|
|
1315
1307
|
function ln(e) {
|
|
1316
|
-
return e.type ===
|
|
1308
|
+
return e.type === D.time;
|
|
1317
1309
|
}
|
|
1318
1310
|
function hn(e) {
|
|
1319
|
-
return e.type ===
|
|
1311
|
+
return e.type === D.select;
|
|
1320
1312
|
}
|
|
1321
1313
|
function fn(e) {
|
|
1322
|
-
return e.type ===
|
|
1314
|
+
return e.type === D.plural;
|
|
1323
1315
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return e.type ===
|
|
1316
|
+
function zi(e) {
|
|
1317
|
+
return e.type === D.pound;
|
|
1326
1318
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return e.type ===
|
|
1319
|
+
function cn(e) {
|
|
1320
|
+
return e.type === D.tag;
|
|
1329
1321
|
}
|
|
1330
1322
|
function dn(e) {
|
|
1331
|
-
return e.type ===
|
|
1332
|
-
}
|
|
1333
|
-
function pn(e) {
|
|
1334
|
-
return !!(e && typeof e == "object" && e.type === Xe.number);
|
|
1323
|
+
return !!(e && typeof e == "object" && e.type === ze.number);
|
|
1335
1324
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1325
|
+
function rr(e) {
|
|
1326
|
+
return !!(e && typeof e == "object" && e.type === ze.dateTime);
|
|
1338
1327
|
}
|
|
1339
|
-
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1340
|
-
function
|
|
1328
|
+
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wi = /(?:[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;
|
|
1329
|
+
function qi(e) {
|
|
1341
1330
|
var t = {};
|
|
1342
|
-
return e.replace(
|
|
1331
|
+
return e.replace(Wi, function(r) {
|
|
1343
1332
|
var n = r.length;
|
|
1344
1333
|
switch (r[0]) {
|
|
1345
1334
|
case "G":
|
|
@@ -1428,22 +1417,12 @@ function Ji(e) {
|
|
|
1428
1417
|
return "";
|
|
1429
1418
|
}), t;
|
|
1430
1419
|
}
|
|
1431
|
-
var
|
|
1432
|
-
|
|
1433
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1434
|
-
r = arguments[n];
|
|
1435
|
-
for (var o in r)
|
|
1436
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1437
|
-
}
|
|
1438
|
-
return t;
|
|
1439
|
-
}, F.apply(this, arguments);
|
|
1440
|
-
};
|
|
1441
|
-
var Qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1442
|
-
function Yi(e) {
|
|
1420
|
+
var Zi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1421
|
+
function Ji(e) {
|
|
1443
1422
|
if (e.length === 0)
|
|
1444
1423
|
throw new Error("Number skeleton cannot be empty");
|
|
1445
|
-
for (var t = e.split(
|
|
1446
|
-
return
|
|
1424
|
+
for (var t = e.split(Zi).filter(function(p) {
|
|
1425
|
+
return p.length > 0;
|
|
1447
1426
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1448
1427
|
var o = i[n], s = o.split("/");
|
|
1449
1428
|
if (s.length === 0)
|
|
@@ -1457,17 +1436,17 @@ function Yi(e) {
|
|
|
1457
1436
|
}
|
|
1458
1437
|
return r;
|
|
1459
1438
|
}
|
|
1460
|
-
function
|
|
1439
|
+
function Qi(e) {
|
|
1461
1440
|
return e.replace(/^(.*?)-/, "");
|
|
1462
1441
|
}
|
|
1463
|
-
var
|
|
1464
|
-
function
|
|
1442
|
+
var Cr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pn = /^(@+)?(\+|#+)?[rs]?$/g, Yi = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
|
|
1443
|
+
function Or(e) {
|
|
1465
1444
|
var t = {};
|
|
1466
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1445
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pn, function(r, n, i) {
|
|
1467
1446
|
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)), "";
|
|
1468
1447
|
}), t;
|
|
1469
1448
|
}
|
|
1470
|
-
function
|
|
1449
|
+
function gn(e) {
|
|
1471
1450
|
switch (e) {
|
|
1472
1451
|
case "sign-auto":
|
|
1473
1452
|
return {
|
|
@@ -1507,7 +1486,7 @@ function vn(e) {
|
|
|
1507
1486
|
};
|
|
1508
1487
|
}
|
|
1509
1488
|
}
|
|
1510
|
-
function
|
|
1489
|
+
function Ki(e) {
|
|
1511
1490
|
var t;
|
|
1512
1491
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1513
1492
|
notation: "engineering"
|
|
@@ -1515,17 +1494,17 @@ function to(e) {
|
|
|
1515
1494
|
notation: "scientific"
|
|
1516
1495
|
}, e = e.slice(1)), t) {
|
|
1517
1496
|
var r = e.slice(0, 2);
|
|
1518
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1497
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
|
|
1519
1498
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1520
1499
|
t.minimumIntegerDigits = e.length;
|
|
1521
1500
|
}
|
|
1522
1501
|
return t;
|
|
1523
1502
|
}
|
|
1524
|
-
function
|
|
1525
|
-
var t = {}, r =
|
|
1503
|
+
function Ir(e) {
|
|
1504
|
+
var t = {}, r = gn(e);
|
|
1526
1505
|
return r || t;
|
|
1527
1506
|
}
|
|
1528
|
-
function
|
|
1507
|
+
function eo(e) {
|
|
1529
1508
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1530
1509
|
var i = n[r];
|
|
1531
1510
|
switch (i.stem) {
|
|
@@ -1549,7 +1528,7 @@ function ro(e) {
|
|
|
1549
1528
|
continue;
|
|
1550
1529
|
case "measure-unit":
|
|
1551
1530
|
case "unit":
|
|
1552
|
-
t.style = "unit", t.unit =
|
|
1531
|
+
t.style = "unit", t.unit = Qi(i.options[0]);
|
|
1553
1532
|
continue;
|
|
1554
1533
|
case "compact-short":
|
|
1555
1534
|
case "K":
|
|
@@ -1560,13 +1539,13 @@ function ro(e) {
|
|
|
1560
1539
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1561
1540
|
continue;
|
|
1562
1541
|
case "scientific":
|
|
1563
|
-
t =
|
|
1564
|
-
return
|
|
1542
|
+
t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1543
|
+
return P(P({}, l), Ir(u));
|
|
1565
1544
|
}, {}));
|
|
1566
1545
|
continue;
|
|
1567
1546
|
case "engineering":
|
|
1568
|
-
t =
|
|
1569
|
-
return
|
|
1547
|
+
t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1548
|
+
return P(P({}, l), Ir(u));
|
|
1570
1549
|
}, {}));
|
|
1571
1550
|
continue;
|
|
1572
1551
|
case "notation-simple":
|
|
@@ -1611,41 +1590,41 @@ function ro(e) {
|
|
|
1611
1590
|
case "integer-width":
|
|
1612
1591
|
if (i.options.length > 1)
|
|
1613
1592
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1614
|
-
i.options[0].replace(
|
|
1593
|
+
i.options[0].replace(Yi, function(l, u, c, d, p, _) {
|
|
1615
1594
|
if (u)
|
|
1616
1595
|
t.minimumIntegerDigits = c.length;
|
|
1617
1596
|
else {
|
|
1618
|
-
if (d &&
|
|
1597
|
+
if (d && p)
|
|
1619
1598
|
throw new Error("We currently do not support maximum integer digits");
|
|
1620
|
-
if (
|
|
1599
|
+
if (_)
|
|
1621
1600
|
throw new Error("We currently do not support exact integer digits");
|
|
1622
1601
|
}
|
|
1623
1602
|
return "";
|
|
1624
1603
|
});
|
|
1625
1604
|
continue;
|
|
1626
1605
|
}
|
|
1627
|
-
if (
|
|
1606
|
+
if (bn.test(i.stem)) {
|
|
1628
1607
|
t.minimumIntegerDigits = i.stem.length;
|
|
1629
1608
|
continue;
|
|
1630
1609
|
}
|
|
1631
|
-
if (
|
|
1610
|
+
if (Cr.test(i.stem)) {
|
|
1632
1611
|
if (i.options.length > 1)
|
|
1633
1612
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1634
|
-
i.stem.replace(
|
|
1635
|
-
return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length :
|
|
1613
|
+
i.stem.replace(Cr, function(l, u, c, d, p, _) {
|
|
1614
|
+
return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1636
1615
|
});
|
|
1637
1616
|
var o = i.options[0];
|
|
1638
|
-
o === "w" ? t =
|
|
1617
|
+
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Or(o)));
|
|
1639
1618
|
continue;
|
|
1640
1619
|
}
|
|
1641
|
-
if (
|
|
1642
|
-
t =
|
|
1620
|
+
if (pn.test(i.stem)) {
|
|
1621
|
+
t = P(P({}, t), Or(i.stem));
|
|
1643
1622
|
continue;
|
|
1644
1623
|
}
|
|
1645
|
-
var s =
|
|
1646
|
-
s && (t =
|
|
1647
|
-
var a =
|
|
1648
|
-
a && (t =
|
|
1624
|
+
var s = gn(i.stem);
|
|
1625
|
+
s && (t = P(P({}, t), s));
|
|
1626
|
+
var a = Ki(i.stem);
|
|
1627
|
+
a && (t = P(P({}, t), a));
|
|
1649
1628
|
}
|
|
1650
1629
|
return t;
|
|
1651
1630
|
}
|
|
@@ -3064,13 +3043,13 @@ var vt = {
|
|
|
3064
3043
|
"h"
|
|
3065
3044
|
]
|
|
3066
3045
|
};
|
|
3067
|
-
function
|
|
3046
|
+
function to(e, t) {
|
|
3068
3047
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3069
3048
|
var i = e.charAt(n);
|
|
3070
3049
|
if (i === "j") {
|
|
3071
3050
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3072
3051
|
o++, n++;
|
|
3073
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3052
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ro(t);
|
|
3074
3053
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3075
3054
|
r += l;
|
|
3076
3055
|
for (; s-- > 0; )
|
|
@@ -3080,7 +3059,7 @@ function no(e, t) {
|
|
|
3080
3059
|
}
|
|
3081
3060
|
return r;
|
|
3082
3061
|
}
|
|
3083
|
-
function
|
|
3062
|
+
function ro(e) {
|
|
3084
3063
|
var t = e.hourCycle;
|
|
3085
3064
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3086
3065
|
e.hourCycles && // @ts-ignore
|
|
@@ -3102,20 +3081,20 @@ function io(e) {
|
|
|
3102
3081
|
var i = vt[n || ""] || vt[r || ""] || vt["".concat(r, "-001")] || vt["001"];
|
|
3103
3082
|
return i[0];
|
|
3104
3083
|
}
|
|
3105
|
-
var
|
|
3084
|
+
var $t, no = new RegExp("^".concat(mn.source, "*")), io = new RegExp("".concat(mn.source, "*$"));
|
|
3106
3085
|
function H(e, t) {
|
|
3107
3086
|
return { start: e, end: t };
|
|
3108
3087
|
}
|
|
3109
|
-
var
|
|
3088
|
+
var oo = !!String.prototype.startsWith && "_a".startsWith("a", 1), so = !!String.fromCodePoint, ao = !!Object.fromEntries, uo = !!String.prototype.codePointAt, lo = !!String.prototype.trimStart, ho = !!String.prototype.trimEnd, fo = !!Number.isSafeInteger, co = fo ? Number.isSafeInteger : function(e) {
|
|
3110
3089
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3111
|
-
},
|
|
3090
|
+
}, nr = !0;
|
|
3112
3091
|
try {
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3092
|
+
var mo = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3093
|
+
nr = (($t = mo.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
|
|
3115
3094
|
} catch (e) {
|
|
3116
|
-
|
|
3095
|
+
nr = !1;
|
|
3117
3096
|
}
|
|
3118
|
-
var
|
|
3097
|
+
var Lr = oo ? (
|
|
3119
3098
|
// Native
|
|
3120
3099
|
function(t, r, n) {
|
|
3121
3100
|
return t.startsWith(r, n);
|
|
@@ -3125,7 +3104,7 @@ var Mr = ao ? (
|
|
|
3125
3104
|
function(t, r, n) {
|
|
3126
3105
|
return t.slice(n, n + r.length) === r;
|
|
3127
3106
|
}
|
|
3128
|
-
),
|
|
3107
|
+
), ir = so ? String.fromCodePoint : (
|
|
3129
3108
|
// IE11
|
|
3130
3109
|
function() {
|
|
3131
3110
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3137,9 +3116,9 @@ var Mr = ao ? (
|
|
|
3137
3116
|
}
|
|
3138
3117
|
return n;
|
|
3139
3118
|
}
|
|
3140
|
-
),
|
|
3119
|
+
), Nr = (
|
|
3141
3120
|
// native
|
|
3142
|
-
|
|
3121
|
+
ao ? Object.fromEntries : (
|
|
3143
3122
|
// Ponyfill
|
|
3144
3123
|
function(t) {
|
|
3145
3124
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3149,7 +3128,7 @@ var Mr = ao ? (
|
|
|
3149
3128
|
return r;
|
|
3150
3129
|
}
|
|
3151
3130
|
)
|
|
3152
|
-
),
|
|
3131
|
+
), vn = uo ? (
|
|
3153
3132
|
// Native
|
|
3154
3133
|
function(t, r) {
|
|
3155
3134
|
return t.codePointAt(r);
|
|
@@ -3163,7 +3142,7 @@ var Mr = ao ? (
|
|
|
3163
3142
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3164
3143
|
}
|
|
3165
3144
|
}
|
|
3166
|
-
),
|
|
3145
|
+
), po = lo ? (
|
|
3167
3146
|
// Native
|
|
3168
3147
|
function(t) {
|
|
3169
3148
|
return t.trimStart();
|
|
@@ -3171,9 +3150,9 @@ var Mr = ao ? (
|
|
|
3171
3150
|
) : (
|
|
3172
3151
|
// Ponyfill
|
|
3173
3152
|
function(t) {
|
|
3174
|
-
return t.replace(
|
|
3153
|
+
return t.replace(no, "");
|
|
3175
3154
|
}
|
|
3176
|
-
),
|
|
3155
|
+
), bo = ho ? (
|
|
3177
3156
|
// Native
|
|
3178
3157
|
function(t) {
|
|
3179
3158
|
return t.trimEnd();
|
|
@@ -3181,32 +3160,32 @@ var Mr = ao ? (
|
|
|
3181
3160
|
) : (
|
|
3182
3161
|
// Ponyfill
|
|
3183
3162
|
function(t) {
|
|
3184
|
-
return t.replace(
|
|
3163
|
+
return t.replace(io, "");
|
|
3185
3164
|
}
|
|
3186
3165
|
);
|
|
3187
|
-
function
|
|
3166
|
+
function yn(e, t) {
|
|
3188
3167
|
return new RegExp(e, t);
|
|
3189
3168
|
}
|
|
3190
|
-
var
|
|
3191
|
-
if (
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3169
|
+
var or;
|
|
3170
|
+
if (nr) {
|
|
3171
|
+
var Mr = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3172
|
+
or = function(t, r) {
|
|
3194
3173
|
var n;
|
|
3195
|
-
|
|
3196
|
-
var i =
|
|
3174
|
+
Mr.lastIndex = r;
|
|
3175
|
+
var i = Mr.exec(t);
|
|
3197
3176
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3198
3177
|
};
|
|
3199
3178
|
} else
|
|
3200
|
-
|
|
3179
|
+
or = function(t, r) {
|
|
3201
3180
|
for (var n = []; ; ) {
|
|
3202
|
-
var i =
|
|
3203
|
-
if (i === void 0 || En(i) ||
|
|
3181
|
+
var i = vn(t, r);
|
|
3182
|
+
if (i === void 0 || En(i) || Eo(i))
|
|
3204
3183
|
break;
|
|
3205
3184
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3206
3185
|
}
|
|
3207
|
-
return
|
|
3186
|
+
return ir.apply(void 0, n);
|
|
3208
3187
|
};
|
|
3209
|
-
var
|
|
3188
|
+
var go = (
|
|
3210
3189
|
/** @class */
|
|
3211
3190
|
function() {
|
|
3212
3191
|
function e(t, r) {
|
|
@@ -3230,14 +3209,14 @@ var yo = (
|
|
|
3230
3209
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3231
3210
|
var a = this.clonePosition();
|
|
3232
3211
|
this.bump(), i.push({
|
|
3233
|
-
type:
|
|
3212
|
+
type: D.pound,
|
|
3234
3213
|
location: H(a, this.clonePosition())
|
|
3235
3214
|
});
|
|
3236
3215
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3237
3216
|
if (n)
|
|
3238
3217
|
break;
|
|
3239
3218
|
return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
3240
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3219
|
+
} else if (o === 60 && !this.ignoreTag && sr(this.peek() || 0)) {
|
|
3241
3220
|
var s = this.parseTag(t, r);
|
|
3242
3221
|
if (s.err)
|
|
3243
3222
|
return s;
|
|
@@ -3258,7 +3237,7 @@ var yo = (
|
|
|
3258
3237
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3259
3238
|
return {
|
|
3260
3239
|
val: {
|
|
3261
|
-
type:
|
|
3240
|
+
type: D.literal,
|
|
3262
3241
|
value: "<".concat(i, "/>"),
|
|
3263
3242
|
location: H(n, this.clonePosition())
|
|
3264
3243
|
},
|
|
@@ -3270,12 +3249,12 @@ var yo = (
|
|
|
3270
3249
|
return o;
|
|
3271
3250
|
var s = o.val, a = this.clonePosition();
|
|
3272
3251
|
if (this.bumpIf("</")) {
|
|
3273
|
-
if (this.isEOF() || !
|
|
3252
|
+
if (this.isEOF() || !sr(this.char()))
|
|
3274
3253
|
return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
|
|
3275
3254
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3276
3255
|
return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3277
3256
|
val: {
|
|
3278
|
-
type:
|
|
3257
|
+
type: D.tag,
|
|
3279
3258
|
value: i,
|
|
3280
3259
|
children: s,
|
|
3281
3260
|
location: H(n, this.clonePosition())
|
|
@@ -3288,7 +3267,7 @@ var yo = (
|
|
|
3288
3267
|
return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
|
|
3289
3268
|
}, e.prototype.parseTagName = function() {
|
|
3290
3269
|
var t = this.offset();
|
|
3291
|
-
for (this.bump(); !this.isEOF() &&
|
|
3270
|
+
for (this.bump(); !this.isEOF() && yo(this.char()); )
|
|
3292
3271
|
this.bump();
|
|
3293
3272
|
return this.message.slice(t, this.offset());
|
|
3294
3273
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3312,12 +3291,12 @@ var yo = (
|
|
|
3312
3291
|
}
|
|
3313
3292
|
var l = H(n, this.clonePosition());
|
|
3314
3293
|
return {
|
|
3315
|
-
val: { type:
|
|
3294
|
+
val: { type: D.literal, value: i, location: l },
|
|
3316
3295
|
err: null
|
|
3317
3296
|
};
|
|
3318
3297
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3319
3298
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3320
|
-
!
|
|
3299
|
+
!vo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3321
3300
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3322
3301
|
if (this.isEOF() || this.char() !== 39)
|
|
3323
3302
|
return null;
|
|
@@ -3351,12 +3330,12 @@ var yo = (
|
|
|
3351
3330
|
r.push(n);
|
|
3352
3331
|
this.bump();
|
|
3353
3332
|
}
|
|
3354
|
-
return
|
|
3333
|
+
return ir.apply(void 0, r);
|
|
3355
3334
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3356
3335
|
if (this.isEOF())
|
|
3357
3336
|
return null;
|
|
3358
3337
|
var n = this.char();
|
|
3359
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3338
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ir(n));
|
|
3360
3339
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3361
3340
|
var n = this.clonePosition();
|
|
3362
3341
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3372,7 +3351,7 @@ var yo = (
|
|
|
3372
3351
|
case 125:
|
|
3373
3352
|
return this.bump(), {
|
|
3374
3353
|
val: {
|
|
3375
|
-
type:
|
|
3354
|
+
type: D.argument,
|
|
3376
3355
|
// value does not include the opening and closing braces.
|
|
3377
3356
|
value: i,
|
|
3378
3357
|
location: H(n, this.clonePosition())
|
|
@@ -3385,7 +3364,7 @@ var yo = (
|
|
|
3385
3364
|
return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
3386
3365
|
}
|
|
3387
3366
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3388
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3367
|
+
var t = this.clonePosition(), r = this.offset(), n = or(this.message, r), i = r + n.length;
|
|
3389
3368
|
this.bumpTo(i);
|
|
3390
3369
|
var o = this.clonePosition(), s = H(t, o);
|
|
3391
3370
|
return { value: n, location: s };
|
|
@@ -3404,46 +3383,46 @@ var yo = (
|
|
|
3404
3383
|
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3405
3384
|
if (d.err)
|
|
3406
3385
|
return d;
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3386
|
+
var p = bo(d.val);
|
|
3387
|
+
if (p.length === 0)
|
|
3409
3388
|
return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
3410
|
-
var
|
|
3411
|
-
u = { style:
|
|
3389
|
+
var _ = H(c, this.clonePosition());
|
|
3390
|
+
u = { style: p, styleLocation: _ };
|
|
3412
3391
|
}
|
|
3413
|
-
var
|
|
3414
|
-
if (
|
|
3415
|
-
return
|
|
3416
|
-
var
|
|
3417
|
-
if (u &&
|
|
3418
|
-
var ee =
|
|
3392
|
+
var O = this.tryParseArgumentClose(i);
|
|
3393
|
+
if (O.err)
|
|
3394
|
+
return O;
|
|
3395
|
+
var B = H(i, this.clonePosition());
|
|
3396
|
+
if (u && Lr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3397
|
+
var ee = po(u.style.slice(2));
|
|
3419
3398
|
if (a === "number") {
|
|
3420
3399
|
var d = this.parseNumberSkeletonFromString(ee, u.styleLocation);
|
|
3421
3400
|
return d.err ? d : {
|
|
3422
|
-
val: { type:
|
|
3401
|
+
val: { type: D.number, value: n, location: B, style: d.val },
|
|
3423
3402
|
err: null
|
|
3424
3403
|
};
|
|
3425
3404
|
} else {
|
|
3426
3405
|
if (ee.length === 0)
|
|
3427
|
-
return this.error(A.EXPECT_DATE_TIME_SKELETON,
|
|
3428
|
-
var
|
|
3429
|
-
this.locale && (
|
|
3430
|
-
var
|
|
3431
|
-
type:
|
|
3432
|
-
pattern:
|
|
3406
|
+
return this.error(A.EXPECT_DATE_TIME_SKELETON, B);
|
|
3407
|
+
var me = ee;
|
|
3408
|
+
this.locale && (me = to(ee, this.locale));
|
|
3409
|
+
var p = {
|
|
3410
|
+
type: ze.dateTime,
|
|
3411
|
+
pattern: me,
|
|
3433
3412
|
location: u.styleLocation,
|
|
3434
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3435
|
-
}, ie = a === "date" ?
|
|
3413
|
+
parsedOptions: this.shouldParseSkeletons ? qi(me) : {}
|
|
3414
|
+
}, ie = a === "date" ? D.date : D.time;
|
|
3436
3415
|
return {
|
|
3437
|
-
val: { type: ie, value: n, location:
|
|
3416
|
+
val: { type: ie, value: n, location: B, style: p },
|
|
3438
3417
|
err: null
|
|
3439
3418
|
};
|
|
3440
3419
|
}
|
|
3441
3420
|
}
|
|
3442
3421
|
return {
|
|
3443
3422
|
val: {
|
|
3444
|
-
type: a === "number" ?
|
|
3423
|
+
type: a === "number" ? D.number : a === "date" ? D.date : D.time,
|
|
3445
3424
|
value: n,
|
|
3446
|
-
location:
|
|
3425
|
+
location: B,
|
|
3447
3426
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3448
3427
|
},
|
|
3449
3428
|
err: null
|
|
@@ -3452,9 +3431,9 @@ var yo = (
|
|
|
3452
3431
|
case "plural":
|
|
3453
3432
|
case "selectordinal":
|
|
3454
3433
|
case "select": {
|
|
3455
|
-
var
|
|
3434
|
+
var M = this.clonePosition();
|
|
3456
3435
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3457
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(
|
|
3436
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(M, P({}, M)));
|
|
3458
3437
|
this.bumpSpace();
|
|
3459
3438
|
var $ = this.parseIdentifierIfPossible(), Z = 0;
|
|
3460
3439
|
if (a !== "select" && $.value === "offset") {
|
|
@@ -3469,23 +3448,23 @@ var yo = (
|
|
|
3469
3448
|
var le = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3470
3449
|
if (le.err)
|
|
3471
3450
|
return le;
|
|
3472
|
-
var
|
|
3473
|
-
if (
|
|
3474
|
-
return
|
|
3451
|
+
var O = this.tryParseArgumentClose(i);
|
|
3452
|
+
if (O.err)
|
|
3453
|
+
return O;
|
|
3475
3454
|
var ge = H(i, this.clonePosition());
|
|
3476
3455
|
return a === "select" ? {
|
|
3477
3456
|
val: {
|
|
3478
|
-
type:
|
|
3457
|
+
type: D.select,
|
|
3479
3458
|
value: n,
|
|
3480
|
-
options:
|
|
3459
|
+
options: Nr(le.val),
|
|
3481
3460
|
location: ge
|
|
3482
3461
|
},
|
|
3483
3462
|
err: null
|
|
3484
3463
|
} : {
|
|
3485
3464
|
val: {
|
|
3486
|
-
type:
|
|
3465
|
+
type: D.plural,
|
|
3487
3466
|
value: n,
|
|
3488
|
-
options:
|
|
3467
|
+
options: Nr(le.val),
|
|
3489
3468
|
offset: Z,
|
|
3490
3469
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3491
3470
|
location: ge
|
|
@@ -3536,16 +3515,16 @@ var yo = (
|
|
|
3536
3515
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3537
3516
|
var n = [];
|
|
3538
3517
|
try {
|
|
3539
|
-
n =
|
|
3518
|
+
n = Ji(t);
|
|
3540
3519
|
} catch (i) {
|
|
3541
3520
|
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
3542
3521
|
}
|
|
3543
3522
|
return {
|
|
3544
3523
|
val: {
|
|
3545
|
-
type:
|
|
3524
|
+
type: ze.number,
|
|
3546
3525
|
tokens: n,
|
|
3547
3526
|
location: r,
|
|
3548
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3527
|
+
parsedOptions: this.shouldParseSkeletons ? eo(n) : {}
|
|
3549
3528
|
},
|
|
3550
3529
|
err: null
|
|
3551
3530
|
};
|
|
@@ -3554,9 +3533,9 @@ var yo = (
|
|
|
3554
3533
|
if (u.length === 0) {
|
|
3555
3534
|
var d = this.clonePosition();
|
|
3556
3535
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3557
|
-
var
|
|
3558
|
-
if (
|
|
3559
|
-
return
|
|
3536
|
+
var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3537
|
+
if (p.err)
|
|
3538
|
+
return p;
|
|
3560
3539
|
c = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3561
3540
|
} else
|
|
3562
3541
|
break;
|
|
@@ -3564,20 +3543,20 @@ var yo = (
|
|
|
3564
3543
|
if (l.has(u))
|
|
3565
3544
|
return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3566
3545
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3567
|
-
var
|
|
3546
|
+
var _ = this.clonePosition();
|
|
3568
3547
|
if (!this.bumpIf("{"))
|
|
3569
3548
|
return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3570
|
-
var
|
|
3549
|
+
var O = this.parseMessage(t + 1, r, n);
|
|
3550
|
+
if (O.err)
|
|
3551
|
+
return O;
|
|
3552
|
+
var B = this.tryParseArgumentClose(_);
|
|
3571
3553
|
if (B.err)
|
|
3572
3554
|
return B;
|
|
3573
|
-
var P = this.tryParseArgumentClose(E);
|
|
3574
|
-
if (P.err)
|
|
3575
|
-
return P;
|
|
3576
3555
|
a.push([
|
|
3577
3556
|
u,
|
|
3578
3557
|
{
|
|
3579
|
-
value:
|
|
3580
|
-
location: H(
|
|
3558
|
+
value: O.val,
|
|
3559
|
+
location: H(_, this.clonePosition())
|
|
3581
3560
|
}
|
|
3582
3561
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3583
3562
|
}
|
|
@@ -3593,7 +3572,7 @@ var yo = (
|
|
|
3593
3572
|
break;
|
|
3594
3573
|
}
|
|
3595
3574
|
var l = H(i, this.clonePosition());
|
|
3596
|
-
return o ? (s *= n,
|
|
3575
|
+
return o ? (s *= n, co(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3597
3576
|
}, e.prototype.offset = function() {
|
|
3598
3577
|
return this.position.offset;
|
|
3599
3578
|
}, e.prototype.isEOF = function() {
|
|
@@ -3608,7 +3587,7 @@ var yo = (
|
|
|
3608
3587
|
var t = this.position.offset;
|
|
3609
3588
|
if (t >= this.message.length)
|
|
3610
3589
|
throw Error("out of bound");
|
|
3611
|
-
var r =
|
|
3590
|
+
var r = vn(this.message, t);
|
|
3612
3591
|
if (r === void 0)
|
|
3613
3592
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3614
3593
|
return r;
|
|
@@ -3627,7 +3606,7 @@ var yo = (
|
|
|
3627
3606
|
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);
|
|
3628
3607
|
}
|
|
3629
3608
|
}, e.prototype.bumpIf = function(t) {
|
|
3630
|
-
if (
|
|
3609
|
+
if (Lr(this.message, t, this.offset())) {
|
|
3631
3610
|
for (var r = 0; r < t.length; r++)
|
|
3632
3611
|
this.bump();
|
|
3633
3612
|
return !0;
|
|
@@ -3659,47 +3638,47 @@ var yo = (
|
|
|
3659
3638
|
}, e;
|
|
3660
3639
|
}()
|
|
3661
3640
|
);
|
|
3662
|
-
function
|
|
3641
|
+
function sr(e) {
|
|
3663
3642
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3664
3643
|
}
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3644
|
+
function vo(e) {
|
|
3645
|
+
return sr(e) || e === 47;
|
|
3667
3646
|
}
|
|
3668
|
-
function
|
|
3647
|
+
function yo(e) {
|
|
3669
3648
|
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;
|
|
3670
3649
|
}
|
|
3671
3650
|
function En(e) {
|
|
3672
3651
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3673
3652
|
}
|
|
3674
|
-
function
|
|
3653
|
+
function Eo(e) {
|
|
3675
3654
|
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;
|
|
3676
3655
|
}
|
|
3677
|
-
function
|
|
3656
|
+
function ar(e) {
|
|
3678
3657
|
e.forEach(function(t) {
|
|
3679
|
-
if (delete t.location,
|
|
3658
|
+
if (delete t.location, hn(t) || fn(t))
|
|
3680
3659
|
for (var r in t.options)
|
|
3681
|
-
delete t.options[r].location,
|
|
3660
|
+
delete t.options[r].location, ar(t.options[r].value);
|
|
3682
3661
|
else
|
|
3683
|
-
|
|
3662
|
+
an(t) && dn(t.style) || (un(t) || ln(t)) && rr(t.style) ? delete t.style.location : cn(t) && ar(t.children);
|
|
3684
3663
|
});
|
|
3685
3664
|
}
|
|
3686
|
-
function
|
|
3687
|
-
t === void 0 && (t = {}), t =
|
|
3688
|
-
var r = new
|
|
3665
|
+
function _o(e, t) {
|
|
3666
|
+
t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3667
|
+
var r = new go(e, t).parse();
|
|
3689
3668
|
if (r.err) {
|
|
3690
3669
|
var n = SyntaxError(A[r.err.kind]);
|
|
3691
3670
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3692
3671
|
}
|
|
3693
|
-
return t != null && t.captureLocation ||
|
|
3672
|
+
return t != null && t.captureLocation || ar(r.val), r.val;
|
|
3694
3673
|
}
|
|
3695
|
-
var
|
|
3674
|
+
var We;
|
|
3696
3675
|
(function(e) {
|
|
3697
3676
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3698
|
-
})(
|
|
3677
|
+
})(We || (We = {}));
|
|
3699
3678
|
var Bt = (
|
|
3700
3679
|
/** @class */
|
|
3701
3680
|
function(e) {
|
|
3702
|
-
|
|
3681
|
+
we(t, e);
|
|
3703
3682
|
function t(r, n, i) {
|
|
3704
3683
|
var o = e.call(this, r) || this;
|
|
3705
3684
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3708,30 +3687,30 @@ var Bt = (
|
|
|
3708
3687
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3709
3688
|
}, t;
|
|
3710
3689
|
}(Error)
|
|
3711
|
-
),
|
|
3690
|
+
), Rr = (
|
|
3712
3691
|
/** @class */
|
|
3713
3692
|
function(e) {
|
|
3714
|
-
|
|
3693
|
+
we(t, e);
|
|
3715
3694
|
function t(r, n, i, o) {
|
|
3716
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3695
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), We.INVALID_VALUE, o) || this;
|
|
3717
3696
|
}
|
|
3718
3697
|
return t;
|
|
3719
3698
|
}(Bt)
|
|
3720
|
-
),
|
|
3699
|
+
), xo = (
|
|
3721
3700
|
/** @class */
|
|
3722
3701
|
function(e) {
|
|
3723
|
-
|
|
3702
|
+
we(t, e);
|
|
3724
3703
|
function t(r, n, i) {
|
|
3725
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3704
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), We.INVALID_VALUE, i) || this;
|
|
3726
3705
|
}
|
|
3727
3706
|
return t;
|
|
3728
3707
|
}(Bt)
|
|
3729
|
-
),
|
|
3708
|
+
), wo = (
|
|
3730
3709
|
/** @class */
|
|
3731
3710
|
function(e) {
|
|
3732
|
-
|
|
3711
|
+
we(t, e);
|
|
3733
3712
|
function t(r, n) {
|
|
3734
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3713
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), We.MISSING_VALUE, n) || this;
|
|
3735
3714
|
}
|
|
3736
3715
|
return t;
|
|
3737
3716
|
}(Bt)
|
|
@@ -3739,17 +3718,17 @@ var Bt = (
|
|
|
3739
3718
|
(function(e) {
|
|
3740
3719
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3741
3720
|
})(K || (K = {}));
|
|
3742
|
-
function
|
|
3721
|
+
function To(e) {
|
|
3743
3722
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3744
3723
|
var n = t[t.length - 1];
|
|
3745
3724
|
return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
|
|
3746
3725
|
}, []);
|
|
3747
3726
|
}
|
|
3748
|
-
function
|
|
3727
|
+
function So(e) {
|
|
3749
3728
|
return typeof e == "function";
|
|
3750
3729
|
}
|
|
3751
|
-
function
|
|
3752
|
-
if (e.length === 1 &&
|
|
3730
|
+
function _t(e, t, r, n, i, o, s) {
|
|
3731
|
+
if (e.length === 1 && Pr(e[0]))
|
|
3753
3732
|
return [
|
|
3754
3733
|
{
|
|
3755
3734
|
type: K.literal,
|
|
@@ -3758,14 +3737,14 @@ function Et(e, t, r, n, i, o, s) {
|
|
|
3758
3737
|
];
|
|
3759
3738
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3760
3739
|
var c = u[l];
|
|
3761
|
-
if (
|
|
3740
|
+
if (Pr(c)) {
|
|
3762
3741
|
a.push({
|
|
3763
3742
|
type: K.literal,
|
|
3764
3743
|
value: c.value
|
|
3765
3744
|
});
|
|
3766
3745
|
continue;
|
|
3767
3746
|
}
|
|
3768
|
-
if (
|
|
3747
|
+
if (zi(c)) {
|
|
3769
3748
|
typeof o == "number" && a.push({
|
|
3770
3749
|
type: K.literal,
|
|
3771
3750
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3774,44 +3753,44 @@ function Et(e, t, r, n, i, o, s) {
|
|
|
3774
3753
|
}
|
|
3775
3754
|
var d = c.value;
|
|
3776
3755
|
if (!(i && d in i))
|
|
3777
|
-
throw new
|
|
3778
|
-
var
|
|
3779
|
-
if (
|
|
3780
|
-
(!
|
|
3781
|
-
type: typeof
|
|
3782
|
-
value:
|
|
3756
|
+
throw new wo(d, s);
|
|
3757
|
+
var p = i[d];
|
|
3758
|
+
if (Xi(c)) {
|
|
3759
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3760
|
+
type: typeof p == "string" ? K.literal : K.object,
|
|
3761
|
+
value: p
|
|
3783
3762
|
});
|
|
3784
3763
|
continue;
|
|
3785
3764
|
}
|
|
3786
|
-
if (
|
|
3787
|
-
var
|
|
3765
|
+
if (un(c)) {
|
|
3766
|
+
var _ = typeof c.style == "string" ? n.date[c.style] : rr(c.style) ? c.style.parsedOptions : void 0;
|
|
3788
3767
|
a.push({
|
|
3789
3768
|
type: K.literal,
|
|
3790
|
-
value: r.getDateTimeFormat(t,
|
|
3769
|
+
value: r.getDateTimeFormat(t, _).format(p)
|
|
3791
3770
|
});
|
|
3792
3771
|
continue;
|
|
3793
3772
|
}
|
|
3794
|
-
if (
|
|
3795
|
-
var
|
|
3773
|
+
if (ln(c)) {
|
|
3774
|
+
var _ = typeof c.style == "string" ? n.time[c.style] : rr(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3796
3775
|
a.push({
|
|
3797
3776
|
type: K.literal,
|
|
3798
|
-
value: r.getDateTimeFormat(t,
|
|
3777
|
+
value: r.getDateTimeFormat(t, _).format(p)
|
|
3799
3778
|
});
|
|
3800
3779
|
continue;
|
|
3801
3780
|
}
|
|
3802
|
-
if (
|
|
3803
|
-
var
|
|
3804
|
-
|
|
3781
|
+
if (an(c)) {
|
|
3782
|
+
var _ = typeof c.style == "string" ? n.number[c.style] : dn(c.style) ? c.style.parsedOptions : void 0;
|
|
3783
|
+
_ && _.scale && (p = p * (_.scale || 1)), a.push({
|
|
3805
3784
|
type: K.literal,
|
|
3806
|
-
value: r.getNumberFormat(t,
|
|
3785
|
+
value: r.getNumberFormat(t, _).format(p)
|
|
3807
3786
|
});
|
|
3808
3787
|
continue;
|
|
3809
3788
|
}
|
|
3810
|
-
if (
|
|
3811
|
-
var
|
|
3812
|
-
if (!
|
|
3813
|
-
throw new
|
|
3814
|
-
var
|
|
3789
|
+
if (cn(c)) {
|
|
3790
|
+
var O = c.children, B = c.value, ee = i[B];
|
|
3791
|
+
if (!So(ee))
|
|
3792
|
+
throw new xo(B, "function", s);
|
|
3793
|
+
var me = _t(O, t, r, n, i, o), ie = ee(me.map(function(Z) {
|
|
3815
3794
|
return Z.value;
|
|
3816
3795
|
}));
|
|
3817
3796
|
Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
|
|
@@ -3821,42 +3800,42 @@ function Et(e, t, r, n, i, o, s) {
|
|
|
3821
3800
|
};
|
|
3822
3801
|
}));
|
|
3823
3802
|
}
|
|
3824
|
-
if (
|
|
3825
|
-
var
|
|
3826
|
-
if (!
|
|
3827
|
-
throw new
|
|
3828
|
-
a.push.apply(a,
|
|
3803
|
+
if (hn(c)) {
|
|
3804
|
+
var M = c.options[p] || c.options.other;
|
|
3805
|
+
if (!M)
|
|
3806
|
+
throw new Rr(c.value, p, Object.keys(c.options), s);
|
|
3807
|
+
a.push.apply(a, _t(M.value, t, r, n, i));
|
|
3829
3808
|
continue;
|
|
3830
3809
|
}
|
|
3831
|
-
if (
|
|
3832
|
-
var
|
|
3833
|
-
if (!
|
|
3810
|
+
if (fn(c)) {
|
|
3811
|
+
var M = c.options["=".concat(p)];
|
|
3812
|
+
if (!M) {
|
|
3834
3813
|
if (!Intl.PluralRules)
|
|
3835
3814
|
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3836
3815
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3837
|
-
`,
|
|
3838
|
-
var $ = r.getPluralRules(t, { type: c.pluralType }).select(
|
|
3839
|
-
|
|
3816
|
+
`, We.MISSING_INTL_API, s);
|
|
3817
|
+
var $ = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
|
|
3818
|
+
M = c.options[$] || c.options.other;
|
|
3840
3819
|
}
|
|
3841
|
-
if (!
|
|
3842
|
-
throw new
|
|
3843
|
-
a.push.apply(a,
|
|
3820
|
+
if (!M)
|
|
3821
|
+
throw new Rr(c.value, p, Object.keys(c.options), s);
|
|
3822
|
+
a.push.apply(a, _t(M.value, t, r, n, i, p - (c.offset || 0)));
|
|
3844
3823
|
continue;
|
|
3845
3824
|
}
|
|
3846
3825
|
}
|
|
3847
|
-
return
|
|
3826
|
+
return To(a);
|
|
3848
3827
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return t ?
|
|
3851
|
-
return r[n] =
|
|
3828
|
+
function Ao(e, t) {
|
|
3829
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3830
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3852
3831
|
}, {})) : e;
|
|
3853
3832
|
}
|
|
3854
|
-
function
|
|
3833
|
+
function Ho(e, t) {
|
|
3855
3834
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3856
|
-
return r[n] =
|
|
3857
|
-
},
|
|
3835
|
+
return r[n] = Ao(e[n], t[n]), r;
|
|
3836
|
+
}, P({}, e)) : e;
|
|
3858
3837
|
}
|
|
3859
|
-
function
|
|
3838
|
+
function kt(e) {
|
|
3860
3839
|
return {
|
|
3861
3840
|
create: function() {
|
|
3862
3841
|
return {
|
|
@@ -3876,33 +3855,33 @@ function Bo(e) {
|
|
|
3876
3855
|
dateTime: {},
|
|
3877
3856
|
pluralRules: {}
|
|
3878
3857
|
}), {
|
|
3879
|
-
getNumberFormat:
|
|
3858
|
+
getNumberFormat: Gt(function() {
|
|
3880
3859
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3881
3860
|
r[n] = arguments[n];
|
|
3882
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3861
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3883
3862
|
}, {
|
|
3884
|
-
cache:
|
|
3885
|
-
strategy:
|
|
3863
|
+
cache: kt(e.number),
|
|
3864
|
+
strategy: jt.variadic
|
|
3886
3865
|
}),
|
|
3887
|
-
getDateTimeFormat:
|
|
3866
|
+
getDateTimeFormat: Gt(function() {
|
|
3888
3867
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3889
3868
|
r[n] = arguments[n];
|
|
3890
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3869
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3891
3870
|
}, {
|
|
3892
|
-
cache:
|
|
3893
|
-
strategy:
|
|
3871
|
+
cache: kt(e.dateTime),
|
|
3872
|
+
strategy: jt.variadic
|
|
3894
3873
|
}),
|
|
3895
|
-
getPluralRules:
|
|
3874
|
+
getPluralRules: Gt(function() {
|
|
3896
3875
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3897
3876
|
r[n] = arguments[n];
|
|
3898
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3877
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3899
3878
|
}, {
|
|
3900
|
-
cache:
|
|
3901
|
-
strategy:
|
|
3879
|
+
cache: kt(e.pluralRules),
|
|
3880
|
+
strategy: jt.variadic
|
|
3902
3881
|
})
|
|
3903
3882
|
};
|
|
3904
3883
|
}
|
|
3905
|
-
var
|
|
3884
|
+
var Po = (
|
|
3906
3885
|
/** @class */
|
|
3907
3886
|
function() {
|
|
3908
3887
|
function e(t, r, n, i) {
|
|
@@ -3916,12 +3895,12 @@ var Co = (
|
|
|
3916
3895
|
var u = o.formatToParts(l);
|
|
3917
3896
|
if (u.length === 1)
|
|
3918
3897
|
return u[0].value;
|
|
3919
|
-
var c = u.reduce(function(d,
|
|
3920
|
-
return !d.length ||
|
|
3898
|
+
var c = u.reduce(function(d, p) {
|
|
3899
|
+
return !d.length || p.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
|
|
3921
3900
|
}, []);
|
|
3922
3901
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3923
3902
|
}, this.formatToParts = function(l) {
|
|
3924
|
-
return
|
|
3903
|
+
return _t(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3925
3904
|
}, this.resolvedOptions = function() {
|
|
3926
3905
|
var l;
|
|
3927
3906
|
return {
|
|
@@ -3934,13 +3913,13 @@ var Co = (
|
|
|
3934
3913
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3935
3914
|
var s = i || {};
|
|
3936
3915
|
s.formatters;
|
|
3937
|
-
var a =
|
|
3938
|
-
this.ast = e.__parse(t,
|
|
3916
|
+
var a = si(s, ["formatters"]);
|
|
3917
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3939
3918
|
} else
|
|
3940
3919
|
this.ast = t;
|
|
3941
3920
|
if (!Array.isArray(this.ast))
|
|
3942
3921
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3943
|
-
this.formats =
|
|
3922
|
+
this.formats = Ho(e.formats, n), this.formatters = i && i.formatters || Bo(this.formatterCache);
|
|
3944
3923
|
}
|
|
3945
3924
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3946
3925
|
get: function() {
|
|
@@ -3953,7 +3932,7 @@ var Co = (
|
|
|
3953
3932
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3954
3933
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3955
3934
|
}
|
|
3956
|
-
}, e.__parse =
|
|
3935
|
+
}, e.__parse = _o, e.formats = {
|
|
3957
3936
|
number: {
|
|
3958
3937
|
integer: {
|
|
3959
3938
|
maximumFractionDigits: 0
|
|
@@ -4014,7 +3993,7 @@ var Co = (
|
|
|
4014
3993
|
}, e;
|
|
4015
3994
|
}()
|
|
4016
3995
|
);
|
|
4017
|
-
function
|
|
3996
|
+
function Co(e, t) {
|
|
4018
3997
|
if (t == null)
|
|
4019
3998
|
return;
|
|
4020
3999
|
if (t in e)
|
|
@@ -4035,92 +4014,92 @@ function Io(e, t) {
|
|
|
4035
4014
|
n = void 0;
|
|
4036
4015
|
return n;
|
|
4037
4016
|
}
|
|
4038
|
-
const Ae = {},
|
|
4017
|
+
const Ae = {}, Oo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), _n = (e, t) => {
|
|
4039
4018
|
if (t == null)
|
|
4040
4019
|
return;
|
|
4041
4020
|
if (t in Ae && e in Ae[t])
|
|
4042
4021
|
return Ae[t][e];
|
|
4043
|
-
const r =
|
|
4022
|
+
const r = Pt(t);
|
|
4044
4023
|
for (let n = 0; n < r.length; n++) {
|
|
4045
|
-
const i = r[n], o =
|
|
4024
|
+
const i = r[n], o = Lo(i, e);
|
|
4046
4025
|
if (o)
|
|
4047
|
-
return
|
|
4026
|
+
return Oo(e, t, o);
|
|
4048
4027
|
}
|
|
4049
4028
|
};
|
|
4050
|
-
let
|
|
4051
|
-
const
|
|
4052
|
-
function
|
|
4053
|
-
return
|
|
4029
|
+
let dr;
|
|
4030
|
+
const Je = Ht({});
|
|
4031
|
+
function Io(e) {
|
|
4032
|
+
return dr[e] || null;
|
|
4054
4033
|
}
|
|
4055
|
-
function
|
|
4056
|
-
return e in
|
|
4034
|
+
function xn(e) {
|
|
4035
|
+
return e in dr;
|
|
4057
4036
|
}
|
|
4058
|
-
function
|
|
4059
|
-
if (!
|
|
4037
|
+
function Lo(e, t) {
|
|
4038
|
+
if (!xn(e))
|
|
4060
4039
|
return null;
|
|
4061
|
-
const r =
|
|
4062
|
-
return
|
|
4040
|
+
const r = Io(e);
|
|
4041
|
+
return Co(r, t);
|
|
4063
4042
|
}
|
|
4064
|
-
function
|
|
4043
|
+
function No(e) {
|
|
4065
4044
|
if (e == null)
|
|
4066
4045
|
return;
|
|
4067
|
-
const t =
|
|
4046
|
+
const t = Pt(e);
|
|
4068
4047
|
for (let r = 0; r < t.length; r++) {
|
|
4069
4048
|
const n = t[r];
|
|
4070
|
-
if (
|
|
4049
|
+
if (xn(n))
|
|
4071
4050
|
return n;
|
|
4072
4051
|
}
|
|
4073
4052
|
}
|
|
4074
|
-
function
|
|
4075
|
-
delete Ae[e],
|
|
4053
|
+
function wn(e, ...t) {
|
|
4054
|
+
delete Ae[e], Je.update((r) => (r[e] = Fi.all([r[e] || {}, ...t]), r));
|
|
4076
4055
|
}
|
|
4077
|
-
|
|
4078
|
-
[
|
|
4056
|
+
Ze(
|
|
4057
|
+
[Je],
|
|
4079
4058
|
([e]) => Object.keys(e)
|
|
4080
4059
|
);
|
|
4081
|
-
|
|
4060
|
+
Je.subscribe((e) => dr = e);
|
|
4082
4061
|
const xt = {};
|
|
4083
|
-
function
|
|
4062
|
+
function Mo(e, t) {
|
|
4084
4063
|
xt[e].delete(t), xt[e].size === 0 && delete xt[e];
|
|
4085
4064
|
}
|
|
4086
|
-
function
|
|
4065
|
+
function Tn(e) {
|
|
4087
4066
|
return xt[e];
|
|
4088
4067
|
}
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4091
|
-
const r =
|
|
4068
|
+
function Ro(e) {
|
|
4069
|
+
return Pt(e).map((t) => {
|
|
4070
|
+
const r = Tn(t);
|
|
4092
4071
|
return [t, r ? [...r] : []];
|
|
4093
4072
|
}).filter(([, t]) => t.length > 0);
|
|
4094
4073
|
}
|
|
4095
|
-
function
|
|
4096
|
-
return e == null ? !1 :
|
|
4074
|
+
function ur(e) {
|
|
4075
|
+
return e == null ? !1 : Pt(e).some(
|
|
4097
4076
|
(t) => {
|
|
4098
4077
|
var r;
|
|
4099
|
-
return (r =
|
|
4078
|
+
return (r = Tn(t)) == null ? void 0 : r.size;
|
|
4100
4079
|
}
|
|
4101
4080
|
);
|
|
4102
4081
|
}
|
|
4103
|
-
function
|
|
4082
|
+
function Do(e, t) {
|
|
4104
4083
|
return Promise.all(
|
|
4105
|
-
t.map((n) => (
|
|
4106
|
-
).then((n) =>
|
|
4107
|
-
}
|
|
4108
|
-
const
|
|
4109
|
-
function
|
|
4110
|
-
if (!
|
|
4111
|
-
return e in
|
|
4112
|
-
const t =
|
|
4113
|
-
return
|
|
4084
|
+
t.map((n) => (Mo(e, n), n().then((i) => i.default || i)))
|
|
4085
|
+
).then((n) => wn(e, ...n));
|
|
4086
|
+
}
|
|
4087
|
+
const it = {};
|
|
4088
|
+
function Sn(e) {
|
|
4089
|
+
if (!ur(e))
|
|
4090
|
+
return e in it ? it[e] : Promise.resolve();
|
|
4091
|
+
const t = Ro(e);
|
|
4092
|
+
return it[e] = Promise.all(
|
|
4114
4093
|
t.map(
|
|
4115
|
-
([r, n]) =>
|
|
4094
|
+
([r, n]) => Do(r, n)
|
|
4116
4095
|
)
|
|
4117
4096
|
).then(() => {
|
|
4118
|
-
if (
|
|
4119
|
-
return
|
|
4120
|
-
delete
|
|
4121
|
-
}),
|
|
4097
|
+
if (ur(e))
|
|
4098
|
+
return Sn(e);
|
|
4099
|
+
delete it[e];
|
|
4100
|
+
}), it[e];
|
|
4122
4101
|
}
|
|
4123
|
-
const
|
|
4102
|
+
const Fo = {
|
|
4124
4103
|
number: {
|
|
4125
4104
|
scientific: { notation: "scientific" },
|
|
4126
4105
|
engineering: { notation: "engineering" },
|
|
@@ -4149,135 +4128,135 @@ const Go = {
|
|
|
4149
4128
|
timeZoneName: "short"
|
|
4150
4129
|
}
|
|
4151
4130
|
}
|
|
4152
|
-
},
|
|
4131
|
+
}, Uo = {
|
|
4153
4132
|
fallbackLocale: null,
|
|
4154
4133
|
loadingDelay: 200,
|
|
4155
|
-
formats:
|
|
4134
|
+
formats: Fo,
|
|
4156
4135
|
warnOnMissingMessages: !0,
|
|
4157
4136
|
handleMissingMessage: void 0,
|
|
4158
4137
|
ignoreTag: !0
|
|
4159
|
-
},
|
|
4160
|
-
function
|
|
4161
|
-
return
|
|
4138
|
+
}, Go = Uo;
|
|
4139
|
+
function qe() {
|
|
4140
|
+
return Go;
|
|
4162
4141
|
}
|
|
4163
|
-
const
|
|
4164
|
-
var
|
|
4142
|
+
const Vt = Ht(!1);
|
|
4143
|
+
var jo = Object.defineProperty, $o = Object.defineProperties, ko = Object.getOwnPropertyDescriptors, Dr = Object.getOwnPropertySymbols, Vo = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, Fr = (e, t, r) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zo = (e, t) => {
|
|
4165
4144
|
for (var r in t || (t = {}))
|
|
4166
|
-
|
|
4167
|
-
if (
|
|
4168
|
-
for (var r of
|
|
4169
|
-
|
|
4145
|
+
Vo.call(t, r) && Fr(e, r, t[r]);
|
|
4146
|
+
if (Dr)
|
|
4147
|
+
for (var r of Dr(t))
|
|
4148
|
+
Xo.call(t, r) && Fr(e, r, t[r]);
|
|
4170
4149
|
return e;
|
|
4171
|
-
},
|
|
4172
|
-
let
|
|
4173
|
-
const
|
|
4174
|
-
function
|
|
4150
|
+
}, Wo = (e, t) => $o(e, ko(t));
|
|
4151
|
+
let lr;
|
|
4152
|
+
const wt = Ht(null);
|
|
4153
|
+
function Ur(e) {
|
|
4175
4154
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4176
4155
|
}
|
|
4177
|
-
function
|
|
4178
|
-
const r =
|
|
4179
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4156
|
+
function Pt(e, t = qe().fallbackLocale) {
|
|
4157
|
+
const r = Ur(e);
|
|
4158
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ur(t)])] : r;
|
|
4180
4159
|
}
|
|
4181
4160
|
function Me() {
|
|
4182
|
-
return
|
|
4161
|
+
return lr != null ? lr : void 0;
|
|
4183
4162
|
}
|
|
4184
|
-
|
|
4185
|
-
|
|
4163
|
+
wt.subscribe((e) => {
|
|
4164
|
+
lr = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4186
4165
|
});
|
|
4187
|
-
const
|
|
4188
|
-
if (e &&
|
|
4189
|
-
const { loadingDelay: t } =
|
|
4166
|
+
const qo = (e) => {
|
|
4167
|
+
if (e && No(e) && ur(e)) {
|
|
4168
|
+
const { loadingDelay: t } = qe();
|
|
4190
4169
|
let r;
|
|
4191
4170
|
return typeof window != "undefined" && Me() != null && t ? r = window.setTimeout(
|
|
4192
|
-
() =>
|
|
4171
|
+
() => Vt.set(!0),
|
|
4193
4172
|
t
|
|
4194
|
-
) :
|
|
4195
|
-
|
|
4173
|
+
) : Vt.set(!0), Sn(e).then(() => {
|
|
4174
|
+
wt.set(e);
|
|
4196
4175
|
}).finally(() => {
|
|
4197
|
-
clearTimeout(r),
|
|
4176
|
+
clearTimeout(r), Vt.set(!1);
|
|
4198
4177
|
});
|
|
4199
4178
|
}
|
|
4200
|
-
return
|
|
4201
|
-
}, He =
|
|
4202
|
-
set:
|
|
4203
|
-
}),
|
|
4179
|
+
return wt.set(e);
|
|
4180
|
+
}, He = Wo(zo({}, wt), {
|
|
4181
|
+
set: qo
|
|
4182
|
+
}), Ct = (e) => {
|
|
4204
4183
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4205
4184
|
return (n) => {
|
|
4206
4185
|
const i = JSON.stringify(n);
|
|
4207
4186
|
return i in t ? t[i] : t[i] = e(n);
|
|
4208
4187
|
};
|
|
4209
4188
|
};
|
|
4210
|
-
var
|
|
4189
|
+
var Zo = Object.defineProperty, Tt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mr = (e, t) => {
|
|
4211
4190
|
for (var r in t || (t = {}))
|
|
4212
|
-
|
|
4213
|
-
if (
|
|
4214
|
-
for (var r of
|
|
4215
|
-
|
|
4191
|
+
An.call(t, r) && Gr(e, r, t[r]);
|
|
4192
|
+
if (Tt)
|
|
4193
|
+
for (var r of Tt(t))
|
|
4194
|
+
Hn.call(t, r) && Gr(e, r, t[r]);
|
|
4216
4195
|
return e;
|
|
4217
|
-
},
|
|
4196
|
+
}, Qe = (e, t) => {
|
|
4218
4197
|
var r = {};
|
|
4219
4198
|
for (var n in e)
|
|
4220
|
-
|
|
4221
|
-
if (e != null &&
|
|
4222
|
-
for (var n of
|
|
4223
|
-
t.indexOf(n) < 0 &&
|
|
4199
|
+
An.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4200
|
+
if (e != null && Tt)
|
|
4201
|
+
for (var n of Tt(e))
|
|
4202
|
+
t.indexOf(n) < 0 && Hn.call(e, n) && (r[n] = e[n]);
|
|
4224
4203
|
return r;
|
|
4225
4204
|
};
|
|
4226
|
-
const
|
|
4227
|
-
const { formats: r } =
|
|
4205
|
+
const lt = (e, t) => {
|
|
4206
|
+
const { formats: r } = qe();
|
|
4228
4207
|
if (e in r && t in r[e])
|
|
4229
4208
|
return r[e][t];
|
|
4230
4209
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4231
|
-
},
|
|
4210
|
+
}, Jo = Ct(
|
|
4232
4211
|
(e) => {
|
|
4233
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4212
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
4234
4213
|
if (r == null)
|
|
4235
4214
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4236
|
-
return n && (i =
|
|
4215
|
+
return n && (i = lt("number", n)), new Intl.NumberFormat(r, i);
|
|
4237
4216
|
}
|
|
4238
|
-
),
|
|
4217
|
+
), Qo = Ct(
|
|
4239
4218
|
(e) => {
|
|
4240
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4219
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
4241
4220
|
if (r == null)
|
|
4242
4221
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4243
|
-
return n ? i =
|
|
4222
|
+
return n ? i = lt("date", n) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4244
4223
|
}
|
|
4245
|
-
),
|
|
4224
|
+
), Yo = Ct(
|
|
4246
4225
|
(e) => {
|
|
4247
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4226
|
+
var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
|
|
4248
4227
|
if (r == null)
|
|
4249
4228
|
throw new Error(
|
|
4250
4229
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4251
4230
|
);
|
|
4252
|
-
return n ? i =
|
|
4231
|
+
return n ? i = lt("time", n) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4253
4232
|
}
|
|
4254
|
-
),
|
|
4233
|
+
), Ko = (e = {}) => {
|
|
4255
4234
|
var t = e, {
|
|
4256
4235
|
locale: r = Me()
|
|
4257
|
-
} = t, n =
|
|
4236
|
+
} = t, n = Qe(t, [
|
|
4258
4237
|
"locale"
|
|
4259
4238
|
]);
|
|
4260
|
-
return
|
|
4261
|
-
},
|
|
4239
|
+
return Jo(mr({ locale: r }, n));
|
|
4240
|
+
}, es = (e = {}) => {
|
|
4262
4241
|
var t = e, {
|
|
4263
4242
|
locale: r = Me()
|
|
4264
|
-
} = t, n =
|
|
4243
|
+
} = t, n = Qe(t, [
|
|
4265
4244
|
"locale"
|
|
4266
4245
|
]);
|
|
4267
|
-
return
|
|
4268
|
-
},
|
|
4246
|
+
return Qo(mr({ locale: r }, n));
|
|
4247
|
+
}, ts = (e = {}) => {
|
|
4269
4248
|
var t = e, {
|
|
4270
4249
|
locale: r = Me()
|
|
4271
|
-
} = t, n =
|
|
4250
|
+
} = t, n = Qe(t, [
|
|
4272
4251
|
"locale"
|
|
4273
4252
|
]);
|
|
4274
|
-
return
|
|
4275
|
-
},
|
|
4253
|
+
return Yo(mr({ locale: r }, n));
|
|
4254
|
+
}, rs = Ct(
|
|
4276
4255
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4277
|
-
(e, t = Me()) => new
|
|
4278
|
-
ignoreTag:
|
|
4256
|
+
(e, t = Me()) => new Po(e, t, qe().formats, {
|
|
4257
|
+
ignoreTag: qe().ignoreTag
|
|
4279
4258
|
})
|
|
4280
|
-
),
|
|
4259
|
+
), ns = (e, t = {}) => {
|
|
4281
4260
|
var r, n, i, o;
|
|
4282
4261
|
let s = t;
|
|
4283
4262
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4290,9 +4269,9 @@ const ut = (e, t) => {
|
|
|
4290
4269
|
throw new Error(
|
|
4291
4270
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4292
4271
|
);
|
|
4293
|
-
let c =
|
|
4272
|
+
let c = _n(e, l);
|
|
4294
4273
|
if (!c)
|
|
4295
|
-
c = (o = (i = (n = (r =
|
|
4274
|
+
c = (o = (i = (n = (r = qe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4296
4275
|
else if (typeof c != "string")
|
|
4297
4276
|
return console.warn(
|
|
4298
4277
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4301,33 +4280,33 @@ const ut = (e, t) => {
|
|
|
4301
4280
|
return c;
|
|
4302
4281
|
let d = c;
|
|
4303
4282
|
try {
|
|
4304
|
-
d =
|
|
4305
|
-
} catch (
|
|
4306
|
-
|
|
4283
|
+
d = rs(c, l).format(a);
|
|
4284
|
+
} catch (p) {
|
|
4285
|
+
p instanceof Error && console.warn(
|
|
4307
4286
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4308
|
-
|
|
4287
|
+
p.message
|
|
4309
4288
|
);
|
|
4310
4289
|
}
|
|
4311
4290
|
return d;
|
|
4312
|
-
},
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
window.emWidgets = { topic:
|
|
4318
|
-
const
|
|
4319
|
-
function
|
|
4291
|
+
}, is = (e, t) => ts(t).format(e), os = (e, t) => es(t).format(e), ss = (e, t) => Ko(t).format(e), as = (e, t = Me()) => _n(e, t), us = Ze([He, Je], () => ns);
|
|
4292
|
+
Ze([He], () => is);
|
|
4293
|
+
Ze([He], () => os);
|
|
4294
|
+
Ze([He], () => ss);
|
|
4295
|
+
Ze([He, Je], () => as);
|
|
4296
|
+
window.emWidgets = { topic: Ei };
|
|
4297
|
+
const Os = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), ls = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4298
|
+
function hs({ withLocale: e, translations: t }) {
|
|
4320
4299
|
He.subscribe((r) => {
|
|
4321
|
-
r == null && (
|
|
4300
|
+
r == null && (Je.set(t), He.set(e));
|
|
4322
4301
|
});
|
|
4323
4302
|
}
|
|
4324
|
-
function
|
|
4325
|
-
|
|
4303
|
+
function Xt(e, t) {
|
|
4304
|
+
wn(e, t);
|
|
4326
4305
|
}
|
|
4327
|
-
function
|
|
4306
|
+
function jr(e) {
|
|
4328
4307
|
He.set(e);
|
|
4329
4308
|
}
|
|
4330
|
-
const
|
|
4309
|
+
const $r = {
|
|
4331
4310
|
en: {
|
|
4332
4311
|
500: "500 - Internal server error",
|
|
4333
4312
|
showMore: "Show more",
|
|
@@ -4395,7 +4374,7 @@ const Vr = {
|
|
|
4395
4374
|
noTournaments: "No tournaments found"
|
|
4396
4375
|
}
|
|
4397
4376
|
};
|
|
4398
|
-
var
|
|
4377
|
+
var hr = { exports: {} };
|
|
4399
4378
|
/** @license
|
|
4400
4379
|
* eventsource.js
|
|
4401
4380
|
* Available under MIT License (MIT)
|
|
@@ -4403,7 +4382,7 @@ var pr = { exports: {} };
|
|
|
4403
4382
|
*/
|
|
4404
4383
|
(function(e, t) {
|
|
4405
4384
|
(function(r) {
|
|
4406
|
-
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch,
|
|
4385
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
|
|
4407
4386
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
4408
4387
|
u.readyState = "complete";
|
|
4409
4388
|
}, !1)), o == null && a != null && (o = function() {
|
|
@@ -4414,16 +4393,16 @@ var pr = { exports: {} };
|
|
|
4414
4393
|
return b.prototype = h, new b();
|
|
4415
4394
|
}), Date.now || (Date.now = function() {
|
|
4416
4395
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4417
|
-
}),
|
|
4396
|
+
}), B == null) {
|
|
4418
4397
|
var ee = d;
|
|
4419
4398
|
d = function(h, b) {
|
|
4420
4399
|
var g = b.signal;
|
|
4421
|
-
return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(
|
|
4422
|
-
var y =
|
|
4400
|
+
return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
|
|
4401
|
+
var y = m.body.getReader();
|
|
4423
4402
|
return g._reader = y, g._aborted && g._reader.cancel(), {
|
|
4424
|
-
status:
|
|
4425
|
-
statusText:
|
|
4426
|
-
headers:
|
|
4403
|
+
status: m.status,
|
|
4404
|
+
statusText: m.statusText,
|
|
4405
|
+
headers: m.headers,
|
|
4427
4406
|
body: {
|
|
4428
4407
|
getReader: function() {
|
|
4429
4408
|
return y;
|
|
@@ -4431,7 +4410,7 @@ var pr = { exports: {} };
|
|
|
4431
4410
|
}
|
|
4432
4411
|
};
|
|
4433
4412
|
});
|
|
4434
|
-
},
|
|
4413
|
+
}, B = function() {
|
|
4435
4414
|
this.signal = {
|
|
4436
4415
|
_reader: null,
|
|
4437
4416
|
_aborted: !1
|
|
@@ -4440,108 +4419,108 @@ var pr = { exports: {} };
|
|
|
4440
4419
|
};
|
|
4441
4420
|
};
|
|
4442
4421
|
}
|
|
4443
|
-
function
|
|
4422
|
+
function me() {
|
|
4444
4423
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4445
4424
|
}
|
|
4446
|
-
|
|
4447
|
-
function b(
|
|
4448
|
-
if (
|
|
4449
|
-
return
|
|
4450
|
-
if (
|
|
4451
|
-
return
|
|
4452
|
-
if (
|
|
4453
|
-
return
|
|
4425
|
+
me.prototype.decode = function(h) {
|
|
4426
|
+
function b(C, L, E) {
|
|
4427
|
+
if (E === 1)
|
|
4428
|
+
return C >= 128 >> L && C << L <= 2047;
|
|
4429
|
+
if (E === 2)
|
|
4430
|
+
return C >= 2048 >> L && C << L <= 55295 || C >= 57344 >> L && C << L <= 65535;
|
|
4431
|
+
if (E === 3)
|
|
4432
|
+
return C >= 65536 >> L && C << L <= 1114111;
|
|
4454
4433
|
throw new Error();
|
|
4455
4434
|
}
|
|
4456
|
-
function g(
|
|
4457
|
-
if (
|
|
4458
|
-
return
|
|
4459
|
-
if (
|
|
4460
|
-
return
|
|
4461
|
-
if (
|
|
4435
|
+
function g(C, L) {
|
|
4436
|
+
if (C === 6 * 1)
|
|
4437
|
+
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
|
4438
|
+
if (C === 6 * 2)
|
|
4439
|
+
return L > 15 ? 3 : 2;
|
|
4440
|
+
if (C === 6 * 3)
|
|
4462
4441
|
return 3;
|
|
4463
4442
|
throw new Error();
|
|
4464
4443
|
}
|
|
4465
|
-
for (var
|
|
4466
|
-
var T = h[
|
|
4467
|
-
v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x =
|
|
4444
|
+
for (var m = 65533, y = "", v = this.bitsNeeded, x = this.codePoint, R = 0; R < h.length; R += 1) {
|
|
4445
|
+
var T = h[R];
|
|
4446
|
+
v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x = m, y += String.fromCharCode(x)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, x = T) : T >= 192 && T <= 223 ? (v = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, x = T & 7) : (v = 0, x = m), v !== 0 && !b(x, v, g(v, x)) && (v = 0, x = m)) : (v -= 6, x = x << 6 | T & 63), v === 0 && (x <= 65535 ? y += String.fromCharCode(x) : (y += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
|
|
4468
4447
|
}
|
|
4469
4448
|
return this.bitsNeeded = v, this.codePoint = x, y;
|
|
4470
4449
|
};
|
|
4471
4450
|
var ie = function() {
|
|
4472
4451
|
try {
|
|
4473
|
-
return new
|
|
4452
|
+
return new _().decode(new O().encode("test"), { stream: !0 }) === "test";
|
|
4474
4453
|
} catch (h) {
|
|
4475
4454
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4476
4455
|
}
|
|
4477
4456
|
return !1;
|
|
4478
4457
|
};
|
|
4479
|
-
(
|
|
4480
|
-
var
|
|
4458
|
+
(_ == null || O == null || !ie()) && (_ = me);
|
|
4459
|
+
var M = function() {
|
|
4481
4460
|
};
|
|
4482
4461
|
function $(h) {
|
|
4483
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4462
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = M, this.onload = M, this.onerror = M, this.onreadystatechange = M, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = M;
|
|
4484
4463
|
}
|
|
4485
4464
|
$.prototype.open = function(h, b) {
|
|
4486
4465
|
this._abort(!0);
|
|
4487
|
-
var g = this,
|
|
4488
|
-
this._abort = function(
|
|
4489
|
-
g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4,
|
|
4466
|
+
var g = this, m = this._xhr, y = 1, v = 0;
|
|
4467
|
+
this._abort = function(E) {
|
|
4468
|
+
g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, m.onload = M, m.onerror = M, m.onabort = M, m.onprogress = M, m.onreadystatechange = M, m.abort(), v !== 0 && (i(v), v = 0), E || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
|
|
4490
4469
|
};
|
|
4491
4470
|
var x = function() {
|
|
4492
4471
|
if (y === 1) {
|
|
4493
|
-
var
|
|
4494
|
-
if ("contentType" in
|
|
4495
|
-
|
|
4472
|
+
var E = 0, f = "", S = void 0;
|
|
4473
|
+
if ("contentType" in m)
|
|
4474
|
+
E = 200, f = "OK", S = m.contentType;
|
|
4496
4475
|
else
|
|
4497
4476
|
try {
|
|
4498
|
-
|
|
4499
|
-
} catch (
|
|
4500
|
-
|
|
4477
|
+
E = m.status, f = m.statusText, S = m.getResponseHeader("Content-Type");
|
|
4478
|
+
} catch (N) {
|
|
4479
|
+
E = 0, f = "", S = void 0;
|
|
4501
4480
|
}
|
|
4502
|
-
|
|
4481
|
+
E !== 0 && (y = 2, g.readyState = 2, g.status = E, g.statusText = f, g._contentType = S, g.onreadystatechange());
|
|
4503
4482
|
}
|
|
4504
|
-
},
|
|
4483
|
+
}, R = function() {
|
|
4505
4484
|
if (x(), y === 2 || y === 3) {
|
|
4506
4485
|
y = 3;
|
|
4507
|
-
var
|
|
4486
|
+
var E = "";
|
|
4508
4487
|
try {
|
|
4509
|
-
|
|
4488
|
+
E = m.responseText;
|
|
4510
4489
|
} catch (f) {
|
|
4511
4490
|
}
|
|
4512
|
-
g.readyState = 3, g.responseText =
|
|
4491
|
+
g.readyState = 3, g.responseText = E, g.onprogress();
|
|
4513
4492
|
}
|
|
4514
|
-
}, T = function(
|
|
4493
|
+
}, T = function(E, f) {
|
|
4515
4494
|
if ((f == null || f.preventDefault == null) && (f = {
|
|
4516
|
-
preventDefault:
|
|
4517
|
-
}),
|
|
4518
|
-
if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4,
|
|
4495
|
+
preventDefault: M
|
|
4496
|
+
}), R(), y === 1 || y === 2 || y === 3) {
|
|
4497
|
+
if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, E === "load")
|
|
4519
4498
|
g.onload(f);
|
|
4520
|
-
else if (
|
|
4499
|
+
else if (E === "error")
|
|
4521
4500
|
g.onerror(f);
|
|
4522
|
-
else if (
|
|
4501
|
+
else if (E === "abort")
|
|
4523
4502
|
g.onabort(f);
|
|
4524
4503
|
else
|
|
4525
4504
|
throw new TypeError();
|
|
4526
4505
|
g.onreadystatechange();
|
|
4527
4506
|
}
|
|
4528
|
-
},
|
|
4529
|
-
|
|
4530
|
-
},
|
|
4507
|
+
}, C = function(E) {
|
|
4508
|
+
m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && T(m.responseText === "" ? "error" : "load", E) : m.readyState === 3 ? "onprogress" in m || R() : m.readyState === 2 && x());
|
|
4509
|
+
}, L = function() {
|
|
4531
4510
|
v = n(function() {
|
|
4532
|
-
|
|
4533
|
-
}, 500),
|
|
4511
|
+
L();
|
|
4512
|
+
}, 500), m.readyState === 3 && R();
|
|
4534
4513
|
};
|
|
4535
|
-
"onload" in
|
|
4536
|
-
T("load",
|
|
4537
|
-
}), "onerror" in
|
|
4538
|
-
T("error",
|
|
4539
|
-
}), "onabort" in
|
|
4540
|
-
T("abort",
|
|
4541
|
-
}), "onprogress" in
|
|
4542
|
-
|
|
4543
|
-
}), ("contentType" in
|
|
4544
|
-
|
|
4514
|
+
"onload" in m && (m.onload = function(E) {
|
|
4515
|
+
T("load", E);
|
|
4516
|
+
}), "onerror" in m && (m.onerror = function(E) {
|
|
4517
|
+
T("error", E);
|
|
4518
|
+
}), "onabort" in m && (m.onabort = function(E) {
|
|
4519
|
+
T("abort", E);
|
|
4520
|
+
}), "onprogress" in m && (m.onprogress = R), "onreadystatechange" in m && (m.onreadystatechange = function(E) {
|
|
4521
|
+
C(E);
|
|
4522
|
+
}), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(h, b, !0), "readyState" in m && (v = n(function() {
|
|
4523
|
+
L();
|
|
4545
4524
|
}, 0));
|
|
4546
4525
|
}, $.prototype.abort = function() {
|
|
4547
4526
|
this._abort(!1);
|
|
@@ -4575,9 +4554,9 @@ var pr = { exports: {} };
|
|
|
4575
4554
|
}
|
|
4576
4555
|
function le(h) {
|
|
4577
4556
|
for (var b = /* @__PURE__ */ Object.create(null), g = h.split(`\r
|
|
4578
|
-
`),
|
|
4579
|
-
var y = g[
|
|
4580
|
-
b[Z(x)] =
|
|
4557
|
+
`), m = 0; m < g.length; m += 1) {
|
|
4558
|
+
var y = g[m], v = y.split(": "), x = v.shift(), R = v.join(": ");
|
|
4559
|
+
b[Z(x)] = R;
|
|
4581
4560
|
}
|
|
4582
4561
|
this._map = b;
|
|
4583
4562
|
}
|
|
@@ -4586,22 +4565,22 @@ var pr = { exports: {} };
|
|
|
4586
4565
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4587
4566
|
function ge() {
|
|
4588
4567
|
}
|
|
4589
|
-
ge.prototype.open = function(h, b, g,
|
|
4568
|
+
ge.prototype.open = function(h, b, g, m, y, v, x) {
|
|
4590
4569
|
h.open("GET", y);
|
|
4591
|
-
var
|
|
4570
|
+
var R = 0;
|
|
4592
4571
|
h.onprogress = function() {
|
|
4593
|
-
var
|
|
4594
|
-
|
|
4595
|
-
}, h.onerror = function(
|
|
4596
|
-
|
|
4572
|
+
var C = h.responseText, L = C.slice(R);
|
|
4573
|
+
R += L.length, g(L);
|
|
4574
|
+
}, h.onerror = function(C) {
|
|
4575
|
+
C.preventDefault(), m(new Error("NetworkError"));
|
|
4597
4576
|
}, h.onload = function() {
|
|
4598
|
-
|
|
4577
|
+
m(null);
|
|
4599
4578
|
}, h.onabort = function() {
|
|
4600
|
-
|
|
4579
|
+
m(null);
|
|
4601
4580
|
}, h.onreadystatechange = function() {
|
|
4602
4581
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4603
|
-
var
|
|
4604
|
-
b(
|
|
4582
|
+
var C = h.status, L = h.statusText, E = h.getResponseHeader("Content-Type"), f = h.getAllResponseHeaders();
|
|
4583
|
+
b(C, L, E, new le(f));
|
|
4605
4584
|
}
|
|
4606
4585
|
}, h.withCredentials = v;
|
|
4607
4586
|
for (var T in x)
|
|
@@ -4614,75 +4593,75 @@ var pr = { exports: {} };
|
|
|
4614
4593
|
Re.prototype.get = function(h) {
|
|
4615
4594
|
return this._headers.get(h);
|
|
4616
4595
|
};
|
|
4617
|
-
function
|
|
4596
|
+
function Be() {
|
|
4618
4597
|
}
|
|
4619
|
-
|
|
4620
|
-
var
|
|
4598
|
+
Be.prototype.open = function(h, b, g, m, y, v, x) {
|
|
4599
|
+
var R = null, T = new B(), C = T.signal, L = new _();
|
|
4621
4600
|
return d(y, {
|
|
4622
4601
|
headers: x,
|
|
4623
4602
|
credentials: v ? "include" : "same-origin",
|
|
4624
|
-
signal:
|
|
4603
|
+
signal: C,
|
|
4625
4604
|
cache: "no-store"
|
|
4626
|
-
}).then(function(
|
|
4627
|
-
return
|
|
4628
|
-
var
|
|
4629
|
-
|
|
4630
|
-
if (
|
|
4605
|
+
}).then(function(E) {
|
|
4606
|
+
return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Re(E.headers)), new c(function(f, S) {
|
|
4607
|
+
var N = function() {
|
|
4608
|
+
R.read().then(function(I) {
|
|
4609
|
+
if (I.done)
|
|
4631
4610
|
f(void 0);
|
|
4632
4611
|
else {
|
|
4633
|
-
var k =
|
|
4634
|
-
g(k),
|
|
4612
|
+
var k = L.decode(I.value, { stream: !0 });
|
|
4613
|
+
g(k), N();
|
|
4635
4614
|
}
|
|
4636
|
-
}).catch(function(
|
|
4637
|
-
S(
|
|
4615
|
+
}).catch(function(I) {
|
|
4616
|
+
S(I);
|
|
4638
4617
|
});
|
|
4639
4618
|
};
|
|
4640
|
-
|
|
4619
|
+
N();
|
|
4641
4620
|
});
|
|
4642
|
-
}).catch(function(
|
|
4643
|
-
if (
|
|
4644
|
-
return
|
|
4645
|
-
}).then(function(
|
|
4646
|
-
|
|
4621
|
+
}).catch(function(E) {
|
|
4622
|
+
if (E.name !== "AbortError")
|
|
4623
|
+
return E;
|
|
4624
|
+
}).then(function(E) {
|
|
4625
|
+
m(E);
|
|
4647
4626
|
}), {
|
|
4648
4627
|
abort: function() {
|
|
4649
|
-
|
|
4628
|
+
R != null && R.cancel(), T.abort();
|
|
4650
4629
|
}
|
|
4651
4630
|
};
|
|
4652
4631
|
};
|
|
4653
|
-
function
|
|
4632
|
+
function pe() {
|
|
4654
4633
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4655
4634
|
}
|
|
4656
|
-
function
|
|
4635
|
+
function Pe(h) {
|
|
4657
4636
|
n(function() {
|
|
4658
4637
|
throw h;
|
|
4659
4638
|
}, 0);
|
|
4660
4639
|
}
|
|
4661
|
-
|
|
4640
|
+
pe.prototype.dispatchEvent = function(h) {
|
|
4662
4641
|
h.target = this;
|
|
4663
4642
|
var b = this._listeners[h.type];
|
|
4664
4643
|
if (b != null)
|
|
4665
|
-
for (var g = b.length,
|
|
4666
|
-
var y = b[
|
|
4644
|
+
for (var g = b.length, m = 0; m < g; m += 1) {
|
|
4645
|
+
var y = b[m];
|
|
4667
4646
|
try {
|
|
4668
4647
|
typeof y.handleEvent == "function" ? y.handleEvent(h) : y.call(this, h);
|
|
4669
4648
|
} catch (v) {
|
|
4670
|
-
|
|
4649
|
+
Pe(v);
|
|
4671
4650
|
}
|
|
4672
4651
|
}
|
|
4673
|
-
},
|
|
4652
|
+
}, pe.prototype.addEventListener = function(h, b) {
|
|
4674
4653
|
h = String(h);
|
|
4675
|
-
var g = this._listeners,
|
|
4676
|
-
|
|
4677
|
-
for (var y = !1, v = 0; v <
|
|
4678
|
-
|
|
4679
|
-
y ||
|
|
4680
|
-
},
|
|
4654
|
+
var g = this._listeners, m = g[h];
|
|
4655
|
+
m == null && (m = [], g[h] = m);
|
|
4656
|
+
for (var y = !1, v = 0; v < m.length; v += 1)
|
|
4657
|
+
m[v] === b && (y = !0);
|
|
4658
|
+
y || m.push(b);
|
|
4659
|
+
}, pe.prototype.removeEventListener = function(h, b) {
|
|
4681
4660
|
h = String(h);
|
|
4682
|
-
var g = this._listeners,
|
|
4683
|
-
if (
|
|
4684
|
-
for (var y = [], v = 0; v <
|
|
4685
|
-
|
|
4661
|
+
var g = this._listeners, m = g[h];
|
|
4662
|
+
if (m != null) {
|
|
4663
|
+
for (var y = [], v = 0; v < m.length; v += 1)
|
|
4664
|
+
m[v] !== b && y.push(m[v]);
|
|
4686
4665
|
y.length === 0 ? delete g[h] : g[h] = y;
|
|
4687
4666
|
}
|
|
4688
4667
|
};
|
|
@@ -4693,40 +4672,40 @@ var pr = { exports: {} };
|
|
|
4693
4672
|
te.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
|
|
4694
4673
|
}
|
|
4695
4674
|
ft.prototype = Object.create(te.prototype);
|
|
4696
|
-
function
|
|
4675
|
+
function Ce(h, b) {
|
|
4697
4676
|
te.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
|
|
4698
4677
|
}
|
|
4699
|
-
|
|
4700
|
-
function
|
|
4678
|
+
Ce.prototype = Object.create(te.prototype);
|
|
4679
|
+
function Ye(h, b) {
|
|
4701
4680
|
te.call(this, h), this.error = b.error;
|
|
4702
4681
|
}
|
|
4703
|
-
|
|
4704
|
-
var
|
|
4682
|
+
Ye.prototype = Object.create(te.prototype);
|
|
4683
|
+
var Oe = -1, W = 0, he = 1, ve = 2, oe = -1, se = 0, ye = 1, Ke = 2, be = 3, et = /^text\/event\-stream(;.*)?$/i, ct = 1e3, Ot = 18e6, tt = function(h, b) {
|
|
4705
4684
|
var g = h == null ? b : parseInt(h, 10);
|
|
4706
4685
|
return g !== g && (g = b), De(g);
|
|
4707
4686
|
}, De = function(h) {
|
|
4708
|
-
return Math.min(Math.max(h, ct),
|
|
4687
|
+
return Math.min(Math.max(h, ct), Ot);
|
|
4709
4688
|
}, Te = function(h, b, g) {
|
|
4710
4689
|
try {
|
|
4711
4690
|
typeof b == "function" && b.call(h, g);
|
|
4712
|
-
} catch (
|
|
4713
|
-
|
|
4691
|
+
} catch (m) {
|
|
4692
|
+
Pe(m);
|
|
4714
4693
|
}
|
|
4715
4694
|
};
|
|
4716
4695
|
function J(h, b) {
|
|
4717
|
-
|
|
4696
|
+
pe.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, dt(this, h, b);
|
|
4718
4697
|
}
|
|
4719
|
-
function
|
|
4698
|
+
function It() {
|
|
4720
4699
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4721
4700
|
}
|
|
4722
|
-
var
|
|
4701
|
+
var Lt = d != null && p != null && "body" in p.prototype;
|
|
4723
4702
|
function dt(h, b, g) {
|
|
4724
4703
|
b = String(b);
|
|
4725
|
-
var
|
|
4704
|
+
var m = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = De(1e3), x = tt(g.heartbeatTimeout, 45e3), R = "", T = v, C = !1, L = 0, E = g.headers || {}, f = g.Transport, S = Lt && f == null ? void 0 : new $(f != null ? new f() : It()), N = f != null && typeof f != "string" ? new f() : S == null ? new Be() : new ge(), I = void 0, k = 0, q = Oe, Se = "", rt = "", G = "", mt = "", Q = se, Nt = 0, Ie = 0, Pn = function(V, j, ae, ue) {
|
|
4726
4705
|
if (q === W)
|
|
4727
|
-
if (V === 200 && ae != null &&
|
|
4728
|
-
q = he,
|
|
4729
|
-
var Y = new
|
|
4706
|
+
if (V === 200 && ae != null && et.test(ae)) {
|
|
4707
|
+
q = he, C = Date.now(), T = v, h.readyState = he;
|
|
4708
|
+
var Y = new Ce("open", {
|
|
4730
4709
|
status: V,
|
|
4731
4710
|
statusText: j,
|
|
4732
4711
|
headers: ue
|
|
@@ -4734,8 +4713,8 @@ var pr = { exports: {} };
|
|
|
4734
4713
|
h.dispatchEvent(Y), Te(h, h.onopen, Y);
|
|
4735
4714
|
} else {
|
|
4736
4715
|
var X = "";
|
|
4737
|
-
V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.",
|
|
4738
|
-
var Y = new
|
|
4716
|
+
V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Mt();
|
|
4717
|
+
var Y = new Ce("error", {
|
|
4739
4718
|
status: V,
|
|
4740
4719
|
statusText: j,
|
|
4741
4720
|
headers: ue
|
|
@@ -4748,27 +4727,27 @@ var pr = { exports: {} };
|
|
|
4748
4727
|
var ue = V.charCodeAt(ae);
|
|
4749
4728
|
(ue === 10 || ue === 13) && (j = ae);
|
|
4750
4729
|
}
|
|
4751
|
-
var Y = (j !== -1 ?
|
|
4752
|
-
|
|
4730
|
+
var Y = (j !== -1 ? mt : "") + V.slice(0, j + 1);
|
|
4731
|
+
mt = (j === -1 ? mt : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
|
|
4753
4732
|
for (var X = 0; X < Y.length; X += 1) {
|
|
4754
4733
|
var ue = Y.charCodeAt(X);
|
|
4755
4734
|
if (Q === oe && ue === 10)
|
|
4756
4735
|
Q = se;
|
|
4757
4736
|
else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
|
|
4758
4737
|
if (Q !== se) {
|
|
4759
|
-
Q ===
|
|
4760
|
-
var Ee = Y.slice(
|
|
4738
|
+
Q === ye && (Ie = X + 1);
|
|
4739
|
+
var Ee = Y.slice(Nt, Ie - 1), _e = Y.slice(Ie + (Ie < X && Y.charCodeAt(Ie) === 32 ? 1 : 0), X);
|
|
4761
4740
|
Ee === "data" ? (Se += `
|
|
4762
|
-
`, Se +=
|
|
4763
|
-
|
|
4741
|
+
`, Se += _e) : Ee === "id" ? rt = _e : Ee === "event" ? G = _e : Ee === "retry" ? (v = tt(_e, v), T = v) : Ee === "heartbeatTimeout" && (x = tt(_e, x), k !== 0 && (i(k), k = n(function() {
|
|
4742
|
+
nt();
|
|
4764
4743
|
}, x)));
|
|
4765
4744
|
}
|
|
4766
4745
|
if (Q === se) {
|
|
4767
4746
|
if (Se !== "") {
|
|
4768
|
-
|
|
4747
|
+
R = rt, G === "" && (G = "message");
|
|
4769
4748
|
var Ue = new ft(G, {
|
|
4770
4749
|
data: Se.slice(1),
|
|
4771
|
-
lastEventId:
|
|
4750
|
+
lastEventId: rt
|
|
4772
4751
|
});
|
|
4773
4752
|
if (h.dispatchEvent(Ue), G === "open" ? Te(h, h.onopen, Ue) : G === "message" ? Te(h, h.onmessage, Ue) : G === "error" && Te(h, h.onerror, Ue), q === ve)
|
|
4774
4753
|
return;
|
|
@@ -4777,40 +4756,40 @@ var pr = { exports: {} };
|
|
|
4777
4756
|
}
|
|
4778
4757
|
Q = ue === 13 ? oe : se;
|
|
4779
4758
|
} else
|
|
4780
|
-
Q === se && (
|
|
4759
|
+
Q === se && (Nt = X, Q = ye), Q === ye ? ue === 58 && (Ie = X + 1, Q = Ke) : Q === Ke && (Q = be);
|
|
4781
4760
|
}
|
|
4782
4761
|
}
|
|
4783
|
-
},
|
|
4762
|
+
}, pr = function(V) {
|
|
4784
4763
|
if (q === he || q === W) {
|
|
4785
|
-
q =
|
|
4786
|
-
|
|
4764
|
+
q = Oe, k !== 0 && (i(k), k = 0), k = n(function() {
|
|
4765
|
+
nt();
|
|
4787
4766
|
}, T), T = De(Math.min(v * 16, T * 2)), h.readyState = W;
|
|
4788
|
-
var j = new
|
|
4767
|
+
var j = new Ye("error", { error: V });
|
|
4789
4768
|
h.dispatchEvent(j), Te(h, h.onerror, j), V != null && console.error(V);
|
|
4790
4769
|
}
|
|
4791
|
-
},
|
|
4792
|
-
q = ve,
|
|
4793
|
-
},
|
|
4794
|
-
if (k = 0, q !==
|
|
4795
|
-
if (!
|
|
4796
|
-
|
|
4770
|
+
}, Mt = function() {
|
|
4771
|
+
q = ve, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), h.readyState = ve;
|
|
4772
|
+
}, nt = function() {
|
|
4773
|
+
if (k = 0, q !== Oe) {
|
|
4774
|
+
if (!C && I != null)
|
|
4775
|
+
pr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
|
|
4797
4776
|
else {
|
|
4798
|
-
var V = Math.max((
|
|
4799
|
-
|
|
4800
|
-
|
|
4777
|
+
var V = Math.max((C || Date.now()) + x - Date.now(), 1);
|
|
4778
|
+
C = !1, k = n(function() {
|
|
4779
|
+
nt();
|
|
4801
4780
|
}, V);
|
|
4802
4781
|
}
|
|
4803
4782
|
return;
|
|
4804
4783
|
}
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
}, x), q = W, Se = "", G = "",
|
|
4784
|
+
C = !1, L = 0, k = n(function() {
|
|
4785
|
+
nt();
|
|
4786
|
+
}, x), q = W, Se = "", G = "", rt = R, mt = "", Nt = 0, Ie = 0, Q = se;
|
|
4808
4787
|
var j = b;
|
|
4809
|
-
if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" &&
|
|
4788
|
+
if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && R !== "") {
|
|
4810
4789
|
var ae = b.indexOf("?");
|
|
4811
|
-
j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
4812
|
-
return Ue === y ? "" :
|
|
4813
|
-
}), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(
|
|
4790
|
+
j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Ue) {
|
|
4791
|
+
return Ue === y ? "" : _e;
|
|
4792
|
+
}), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(R);
|
|
4814
4793
|
}
|
|
4815
4794
|
var ue = h.withCredentials, Y = {};
|
|
4816
4795
|
Y.Accept = "text/event-stream";
|
|
@@ -4819,14 +4798,14 @@ var pr = { exports: {} };
|
|
|
4819
4798
|
for (var Ee in X)
|
|
4820
4799
|
Object.prototype.hasOwnProperty.call(X, Ee) && (Y[Ee] = X[Ee]);
|
|
4821
4800
|
try {
|
|
4822
|
-
|
|
4823
|
-
} catch (
|
|
4824
|
-
throw
|
|
4801
|
+
I = N.open(S, Pn, Cn, pr, j, ue, Y);
|
|
4802
|
+
} catch (_e) {
|
|
4803
|
+
throw Mt(), _e;
|
|
4825
4804
|
}
|
|
4826
4805
|
};
|
|
4827
|
-
h.url = b, h.readyState = W, h.withCredentials =
|
|
4806
|
+
h.url = b, h.readyState = W, h.withCredentials = m, h.headers = E, h._close = Mt, nt();
|
|
4828
4807
|
}
|
|
4829
|
-
J.prototype = Object.create(
|
|
4808
|
+
J.prototype = Object.create(pe.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ve, J.prototype.close = function() {
|
|
4830
4809
|
this._close();
|
|
4831
4810
|
}, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ve, J.prototype.withCredentials = void 0;
|
|
4832
4811
|
var Fe = l;
|
|
@@ -4839,8 +4818,8 @@ var pr = { exports: {} };
|
|
|
4839
4818
|
h.EventSourcePolyfill = J, h.NativeEventSource = l, h.EventSource = Fe;
|
|
4840
4819
|
});
|
|
4841
4820
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : xi : globalThis);
|
|
4842
|
-
})(
|
|
4843
|
-
var
|
|
4821
|
+
})(hr, hr.exports);
|
|
4822
|
+
var fs = hr.exports;
|
|
4844
4823
|
if (typeof window != "undefined") {
|
|
4845
4824
|
let e = function(t) {
|
|
4846
4825
|
return function(...r) {
|
|
@@ -4853,7 +4832,7 @@ if (typeof window != "undefined") {
|
|
|
4853
4832
|
}
|
|
4854
4833
|
};
|
|
4855
4834
|
};
|
|
4856
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-
|
|
4835
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-DoTBrefG.js").then(({ default: t }) => {
|
|
4857
4836
|
!customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
|
|
4858
4837
|
});
|
|
4859
4838
|
}
|
|
@@ -4869,52 +4848,52 @@ if (typeof window != "undefined") {
|
|
|
4869
4848
|
}
|
|
4870
4849
|
};
|
|
4871
4850
|
};
|
|
4872
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-
|
|
4851
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DGb2Vxf4.js").then(({ default: t }) => {
|
|
4873
4852
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
|
|
4874
4853
|
});
|
|
4875
4854
|
}
|
|
4876
|
-
const
|
|
4877
|
-
function
|
|
4878
|
-
|
|
4855
|
+
const kr = (e) => e.length > 0 && e != "false";
|
|
4856
|
+
function cs(e) {
|
|
4857
|
+
Fn(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
|
|
4879
4858
|
}
|
|
4880
|
-
function
|
|
4859
|
+
function ds(e) {
|
|
4881
4860
|
let t, r, n, i, o, s, a = (
|
|
4882
4861
|
/*filtersLoaded*/
|
|
4883
|
-
e[19] &&
|
|
4862
|
+
e[19] && Vr(e)
|
|
4884
4863
|
);
|
|
4885
|
-
function l(
|
|
4864
|
+
function l(p, _) {
|
|
4886
4865
|
return (
|
|
4887
4866
|
/*tournamentsNumber*/
|
|
4888
|
-
|
|
4867
|
+
p[20] == 0 ? bs : ps
|
|
4889
4868
|
);
|
|
4890
4869
|
}
|
|
4891
4870
|
let u = l(e), c = u(e), d = !/*allTournamentsShown*/
|
|
4892
|
-
e[21] &&
|
|
4871
|
+
e[21] && Xr(e);
|
|
4893
4872
|
return {
|
|
4894
4873
|
c() {
|
|
4895
|
-
t = z("div"), r = z("div"), n = z("div"), a && a.c(), i =
|
|
4874
|
+
t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = zt(), o = z("div"), c.c(), s = zt(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
|
|
4896
4875
|
},
|
|
4897
|
-
m(
|
|
4898
|
-
de(
|
|
4876
|
+
m(p, _) {
|
|
4877
|
+
de(p, t, _), re(t, r), re(r, n), a && a.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, s), d && d.m(r, null);
|
|
4899
4878
|
},
|
|
4900
|
-
p(
|
|
4879
|
+
p(p, _) {
|
|
4901
4880
|
/*filtersLoaded*/
|
|
4902
|
-
|
|
4903
|
-
|
|
4881
|
+
p[19] ? a ? a.p(p, _) : (a = Vr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), u === (u = l(p)) && c ? c.p(p, _) : (c.d(1), c = u(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
|
|
4882
|
+
p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Xr(p), d.c(), d.m(r, null));
|
|
4904
4883
|
},
|
|
4905
|
-
d(
|
|
4906
|
-
|
|
4884
|
+
d(p) {
|
|
4885
|
+
p && ne(t), a && a.d(), c.d(), d && d.d();
|
|
4907
4886
|
}
|
|
4908
4887
|
};
|
|
4909
4888
|
}
|
|
4910
|
-
function
|
|
4889
|
+
function ms(e) {
|
|
4911
4890
|
let t, r = (
|
|
4912
4891
|
/*$_*/
|
|
4913
4892
|
e[22]("500") + ""
|
|
4914
4893
|
), n, i, o, s;
|
|
4915
4894
|
return {
|
|
4916
4895
|
c() {
|
|
4917
|
-
t = z("p"), n = Ne(r), i =
|
|
4896
|
+
t = z("p"), n = Ne(r), i = zt(), o = z("p"), s = Ne(
|
|
4918
4897
|
/*error*/
|
|
4919
4898
|
e[17]
|
|
4920
4899
|
);
|
|
@@ -4925,8 +4904,8 @@ function bs(e) {
|
|
|
4925
4904
|
p(a, l) {
|
|
4926
4905
|
l[0] & /*$_*/
|
|
4927
4906
|
4194304 && r !== (r = /*$_*/
|
|
4928
|
-
a[22]("500") + "") &&
|
|
4929
|
-
131072 &&
|
|
4907
|
+
a[22]("500") + "") && st(n, r), l[0] & /*error*/
|
|
4908
|
+
131072 && st(
|
|
4930
4909
|
s,
|
|
4931
4910
|
/*error*/
|
|
4932
4911
|
a[17]
|
|
@@ -4937,7 +4916,7 @@ function bs(e) {
|
|
|
4937
4916
|
}
|
|
4938
4917
|
};
|
|
4939
4918
|
}
|
|
4940
|
-
function
|
|
4919
|
+
function Vr(e) {
|
|
4941
4920
|
let t;
|
|
4942
4921
|
return {
|
|
4943
4922
|
c() {
|
|
@@ -4956,7 +4935,7 @@ function zr(e) {
|
|
|
4956
4935
|
"translationurl",
|
|
4957
4936
|
/*translationurl*/
|
|
4958
4937
|
e[4]
|
|
4959
|
-
), w(t, "filters",
|
|
4938
|
+
), w(t, "filters", Es), w(
|
|
4960
4939
|
t,
|
|
4961
4940
|
"activefilters",
|
|
4962
4941
|
/*filters*/
|
|
@@ -4998,7 +4977,7 @@ function zr(e) {
|
|
|
4998
4977
|
}
|
|
4999
4978
|
};
|
|
5000
4979
|
}
|
|
5001
|
-
function
|
|
4980
|
+
function ps(e) {
|
|
5002
4981
|
let t;
|
|
5003
4982
|
return {
|
|
5004
4983
|
c() {
|
|
@@ -5172,18 +5151,18 @@ function gs(e) {
|
|
|
5172
5151
|
}
|
|
5173
5152
|
};
|
|
5174
5153
|
}
|
|
5175
|
-
function
|
|
5154
|
+
function bs(e) {
|
|
5176
5155
|
let t;
|
|
5177
5156
|
function r(o, s) {
|
|
5178
5157
|
return (
|
|
5179
5158
|
/*isLoading*/
|
|
5180
|
-
o[18] ?
|
|
5159
|
+
o[18] ? vs : gs
|
|
5181
5160
|
);
|
|
5182
5161
|
}
|
|
5183
5162
|
let n = r(e), i = n(e);
|
|
5184
5163
|
return {
|
|
5185
5164
|
c() {
|
|
5186
|
-
i.c(), t =
|
|
5165
|
+
i.c(), t = jn();
|
|
5187
5166
|
},
|
|
5188
5167
|
m(o, s) {
|
|
5189
5168
|
i.m(o, s), de(o, t, s);
|
|
@@ -5196,7 +5175,7 @@ function vs(e) {
|
|
|
5196
5175
|
}
|
|
5197
5176
|
};
|
|
5198
5177
|
}
|
|
5199
|
-
function
|
|
5178
|
+
function gs(e) {
|
|
5200
5179
|
let t, r = (
|
|
5201
5180
|
/*$_*/
|
|
5202
5181
|
e[22]("noTournaments") + ""
|
|
@@ -5211,14 +5190,14 @@ function ys(e) {
|
|
|
5211
5190
|
p(i, o) {
|
|
5212
5191
|
o[0] & /*$_*/
|
|
5213
5192
|
4194304 && r !== (r = /*$_*/
|
|
5214
|
-
i[22]("noTournaments") + "") &&
|
|
5193
|
+
i[22]("noTournaments") + "") && st(n, r);
|
|
5215
5194
|
},
|
|
5216
5195
|
d(i) {
|
|
5217
5196
|
i && ne(t);
|
|
5218
5197
|
}
|
|
5219
5198
|
};
|
|
5220
5199
|
}
|
|
5221
|
-
function
|
|
5200
|
+
function vs(e) {
|
|
5222
5201
|
let t, r = (
|
|
5223
5202
|
/*$_*/
|
|
5224
5203
|
e[22]("loading") + ""
|
|
@@ -5233,14 +5212,14 @@ function _s(e) {
|
|
|
5233
5212
|
p(i, o) {
|
|
5234
5213
|
o[0] & /*$_*/
|
|
5235
5214
|
4194304 && r !== (r = /*$_*/
|
|
5236
|
-
i[22]("loading") + "") &&
|
|
5215
|
+
i[22]("loading") + "") && st(n, r);
|
|
5237
5216
|
},
|
|
5238
5217
|
d(i) {
|
|
5239
5218
|
i && ne(t);
|
|
5240
5219
|
}
|
|
5241
5220
|
};
|
|
5242
5221
|
}
|
|
5243
|
-
function
|
|
5222
|
+
function Xr(e) {
|
|
5244
5223
|
let t, r, n, i = (
|
|
5245
5224
|
/*$_*/
|
|
5246
5225
|
e[22]("showMore") + ""
|
|
@@ -5250,7 +5229,7 @@ function Wr(e) {
|
|
|
5250
5229
|
t = z("div"), r = z("div"), n = z("button"), o = Ne(i), U(n, "class", "ShowMoreButton"), U(n, "part", "ShowMoreButton"), U(n, "title", "Show More"), U(r, "class", "CenterButton"), U(r, "part", "CenterButton"), U(t, "class", "ThirdRow"), U(t, "part", "ThirdRow");
|
|
5251
5230
|
},
|
|
5252
5231
|
m(l, u) {
|
|
5253
|
-
de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a =
|
|
5232
|
+
de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a = Wt(
|
|
5254
5233
|
n,
|
|
5255
5234
|
"click",
|
|
5256
5235
|
/*click_handler*/
|
|
@@ -5260,19 +5239,19 @@ function Wr(e) {
|
|
|
5260
5239
|
p(l, u) {
|
|
5261
5240
|
u[0] & /*$_*/
|
|
5262
5241
|
4194304 && i !== (i = /*$_*/
|
|
5263
|
-
l[22]("showMore") + "") &&
|
|
5242
|
+
l[22]("showMore") + "") && st(o, i);
|
|
5264
5243
|
},
|
|
5265
5244
|
d(l) {
|
|
5266
5245
|
l && ne(t), s = !1, a();
|
|
5267
5246
|
}
|
|
5268
5247
|
};
|
|
5269
5248
|
}
|
|
5270
|
-
function
|
|
5249
|
+
function ys(e) {
|
|
5271
5250
|
let t;
|
|
5272
5251
|
function r(o, s) {
|
|
5273
5252
|
return (
|
|
5274
5253
|
/*hasErrors*/
|
|
5275
|
-
o[16] ?
|
|
5254
|
+
o[16] ? ms : ds
|
|
5276
5255
|
);
|
|
5277
5256
|
}
|
|
5278
5257
|
let n = r(e), i = n(e);
|
|
@@ -5293,103 +5272,103 @@ function Es(e) {
|
|
|
5293
5272
|
}
|
|
5294
5273
|
};
|
|
5295
5274
|
}
|
|
5296
|
-
let
|
|
5297
|
-
function
|
|
5275
|
+
let Es = "All,Scheduled,Ongoing,Finished";
|
|
5276
|
+
function _s(e, t, r) {
|
|
5298
5277
|
let n;
|
|
5299
|
-
|
|
5300
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent:
|
|
5301
|
-
|
|
5302
|
-
const
|
|
5278
|
+
Dn(e, us, (f) => r(22, n = f));
|
|
5279
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: me = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Re = 1e3 } = t, Be = !1, pe = "", Pe = !1, te = "", ft = window.navigator.userAgent, Ce = !0, Ye = !1, Oe = !1, W, he = 0, ve = !1, oe = 6, se = !0, ye = [], Ke, be, et = !1, ct;
|
|
5280
|
+
hs({ withLocale: "en", translations: {} });
|
|
5281
|
+
const Ot = () => {
|
|
5303
5282
|
fetch(l).then((S) => S.json()).then((S) => {
|
|
5304
|
-
ct = S, Object.keys(S).forEach((
|
|
5305
|
-
|
|
5283
|
+
ct = S, Object.keys(S).forEach((N) => {
|
|
5284
|
+
Xt(N, S[N]);
|
|
5306
5285
|
});
|
|
5307
5286
|
}).catch((S) => {
|
|
5308
5287
|
console.log(S);
|
|
5309
5288
|
});
|
|
5310
|
-
},
|
|
5289
|
+
}, tt = (f) => {
|
|
5311
5290
|
f && Object.keys(f).forEach((S) => {
|
|
5312
|
-
|
|
5291
|
+
Xt(S, f[S]);
|
|
5313
5292
|
});
|
|
5314
5293
|
};
|
|
5315
|
-
Object.keys(
|
|
5316
|
-
|
|
5294
|
+
Object.keys($r).forEach((f) => {
|
|
5295
|
+
Xt(f, $r[f]);
|
|
5317
5296
|
});
|
|
5318
5297
|
const De = (f) => {
|
|
5319
|
-
f.data && f.data.type === "UserSessionID" && (
|
|
5320
|
-
}, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S,
|
|
5321
|
-
r(18,
|
|
5322
|
-
const
|
|
5298
|
+
f.data && f.data.type === "UserSessionID" && (Pe = !0, r(30, te = f.data.session), f.data.userid, J(s, 0, oe)), f.data && f.data.type === "TournamentsFiltersSelected" && (ye = f.data.filters, J(s, 0, oe)), f.data && f.data.type === "TournamentThumbnailMounted" && tt(ct);
|
|
5299
|
+
}, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S, N) => Le(this, null, function* () {
|
|
5300
|
+
r(18, Ce = !0), r(20, he = 0);
|
|
5301
|
+
const I = yield dt(f, S, N);
|
|
5323
5302
|
setTimeout(
|
|
5324
5303
|
() => {
|
|
5325
5304
|
window.postMessage(
|
|
5326
5305
|
{
|
|
5327
5306
|
type: "TournamentList",
|
|
5328
|
-
tournamentList:
|
|
5307
|
+
tournamentList: I.items
|
|
5329
5308
|
},
|
|
5330
5309
|
window.location.href
|
|
5331
5310
|
);
|
|
5332
5311
|
},
|
|
5333
5312
|
50
|
|
5334
|
-
), r(18,
|
|
5335
|
-
}),
|
|
5336
|
-
const
|
|
5313
|
+
), r(18, Ce = !1);
|
|
5314
|
+
}), It = (f, S, N) => Le(this, null, function* () {
|
|
5315
|
+
const I = yield dt(f, S, N);
|
|
5337
5316
|
window.postMessage(
|
|
5338
5317
|
{
|
|
5339
5318
|
type: "TournamentListShowMore",
|
|
5340
|
-
tournamentList:
|
|
5319
|
+
tournamentList: I.items
|
|
5341
5320
|
},
|
|
5342
5321
|
window.location.href
|
|
5343
5322
|
);
|
|
5344
|
-
}),
|
|
5323
|
+
}), Lt = () => {
|
|
5345
5324
|
const f = /* @__PURE__ */ new Date();
|
|
5346
5325
|
return $ ? f.setDate(f.getDate() - Number($)) : f.setMonth(f.getMonth() - 1), f.toISOString().substring(0, 10);
|
|
5347
|
-
}, dt = (f, S,
|
|
5348
|
-
let
|
|
5349
|
-
|
|
5350
|
-
const q = { StartTimeAfter:
|
|
5351
|
-
!
|
|
5326
|
+
}, dt = (f, S, N) => Le(this, null, function* () {
|
|
5327
|
+
let I = new URL(`${f}/v1/tournaments`), k = new Headers();
|
|
5328
|
+
I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", a);
|
|
5329
|
+
const q = { StartTimeAfter: Lt() };
|
|
5330
|
+
!kr(i) && Z === "false" && (q.tags = "no-role-set"), ye.length > 0 && ye[0] != "All" && (q.state = ye.map((G) => Te(G)).join("|"));
|
|
5352
5331
|
const Se = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
|
|
5353
|
-
return
|
|
5332
|
+
return I.searchParams.append("filter", Se), I.searchParams.append("platform", ls(ft)), ie && I.searchParams.append("sortType", ie), Pe && k.append("X-SessionID", te), fetch(I, {
|
|
5354
5333
|
method: "GET",
|
|
5355
5334
|
headers: k,
|
|
5356
5335
|
cache: "no-cache"
|
|
5357
|
-
}).then((G) => G.json()).then((G) => (
|
|
5336
|
+
}).then((G) => G.json()).then((G) => (Ke = I.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Oe || h(), G));
|
|
5358
5337
|
}), Fe = (f) => {
|
|
5359
5338
|
if (f.type != "message")
|
|
5360
5339
|
return;
|
|
5361
5340
|
let S = f.data;
|
|
5362
5341
|
if (S)
|
|
5363
5342
|
try {
|
|
5364
|
-
let
|
|
5365
|
-
if (!
|
|
5343
|
+
let N = JSON.parse(S);
|
|
5344
|
+
if (!N || !N.item)
|
|
5366
5345
|
return;
|
|
5367
|
-
let
|
|
5368
|
-
|
|
5346
|
+
let I = N.item;
|
|
5347
|
+
N.messageType == "TournamentUpdate" && window.postMessage(
|
|
5369
5348
|
{
|
|
5370
5349
|
type: "UpdateTournamentView",
|
|
5371
|
-
tournamentData:
|
|
5350
|
+
tournamentData: I
|
|
5372
5351
|
},
|
|
5373
5352
|
window.location.href
|
|
5374
|
-
),
|
|
5353
|
+
), N.messageType == "TournamentRemove" && window.postMessage(
|
|
5375
5354
|
{
|
|
5376
5355
|
type: "TournamentList",
|
|
5377
|
-
tournamentList:
|
|
5356
|
+
tournamentList: N.items
|
|
5378
5357
|
},
|
|
5379
5358
|
window.location.href
|
|
5380
5359
|
);
|
|
5381
|
-
} catch (
|
|
5382
|
-
console.error(
|
|
5360
|
+
} catch (N) {
|
|
5361
|
+
console.error(N);
|
|
5383
5362
|
}
|
|
5384
5363
|
}, h = () => {
|
|
5385
|
-
|
|
5364
|
+
Oe = !0, setTimeout(
|
|
5386
5365
|
() => {
|
|
5387
|
-
|
|
5366
|
+
Oe = !1;
|
|
5388
5367
|
},
|
|
5389
5368
|
1e3
|
|
5390
5369
|
), be && (be.removeEventListener("message", Fe), be.close());
|
|
5391
|
-
let f = `${s}/v1/tournaments/updates?${
|
|
5392
|
-
be = new
|
|
5370
|
+
let f = `${s}/v1/tournaments/updates?${Ke}`;
|
|
5371
|
+
be = new fs.EventSourcePolyfill(
|
|
5393
5372
|
f,
|
|
5394
5373
|
{
|
|
5395
5374
|
headers: {
|
|
@@ -5408,26 +5387,26 @@ function ws(e, t, r) {
|
|
|
5408
5387
|
limit: oe
|
|
5409
5388
|
},
|
|
5410
5389
|
window.location.href
|
|
5411
|
-
), yield
|
|
5412
|
-
}), g = () => (s || (r(17,
|
|
5390
|
+
), yield It(s, f, S), oe >= he && r(21, se = !0);
|
|
5391
|
+
}), g = () => (s || (r(17, pe = "Endpoint is missing! Please provide a valid endpointURL."), r(16, Be = !0), console.error(pe)), (!a || a.length != 2) && (r(17, pe = "Language is missing! Please provide a valid language (alpha2code)"), r(16, Be = !0), console.error(pe)), Be), m = () => {
|
|
5413
5392
|
if (!ve)
|
|
5414
5393
|
return !1;
|
|
5415
|
-
g() || (oe = parseInt(u, 10),
|
|
5394
|
+
g() || (oe = parseInt(u, 10), jr(a), J(s, 0, oe));
|
|
5416
5395
|
}, y = () => {
|
|
5417
|
-
|
|
5396
|
+
jr(a);
|
|
5418
5397
|
}, v = () => {
|
|
5419
|
-
|
|
5398
|
+
ye = d.split(","), r(19, Ye = !0);
|
|
5420
5399
|
}, x = () => {
|
|
5421
|
-
|
|
5422
|
-
},
|
|
5423
|
-
|
|
5400
|
+
kr(i) ? (Pe = !0, r(30, te = i)) : (Pe = !1, r(30, te = ""));
|
|
5401
|
+
}, R = () => Le(this, null, function* () {
|
|
5402
|
+
et || (et = !0, yield m(), et = !1);
|
|
5424
5403
|
}), T = () => {
|
|
5425
5404
|
let f = document.createElement("style");
|
|
5426
5405
|
f.innerHTML = le, W.appendChild(f);
|
|
5427
|
-
},
|
|
5406
|
+
}, C = () => {
|
|
5428
5407
|
let f = new URL(ge), S = document.createElement("style");
|
|
5429
|
-
fetch(f.href).then((
|
|
5430
|
-
S.innerHTML =
|
|
5408
|
+
fetch(f.href).then((N) => N.text()).then((N) => {
|
|
5409
|
+
S.innerHTML = N, setTimeout(
|
|
5431
5410
|
() => {
|
|
5432
5411
|
W.appendChild(S);
|
|
5433
5412
|
},
|
|
@@ -5439,7 +5418,7 @@ function ws(e, t, r) {
|
|
|
5439
5418
|
);
|
|
5440
5419
|
});
|
|
5441
5420
|
};
|
|
5442
|
-
|
|
5421
|
+
zn(() => (setTimeout(
|
|
5443
5422
|
() => {
|
|
5444
5423
|
r(31, ve = !0);
|
|
5445
5424
|
},
|
|
@@ -5447,26 +5426,26 @@ function ws(e, t, r) {
|
|
|
5447
5426
|
), window.addEventListener("message", De, !1), () => {
|
|
5448
5427
|
window.removeEventListener("message", De), be && (be.removeEventListener("message", Fe), be.close());
|
|
5449
5428
|
}));
|
|
5450
|
-
const
|
|
5451
|
-
function
|
|
5452
|
-
|
|
5429
|
+
const L = () => b();
|
|
5430
|
+
function E(f) {
|
|
5431
|
+
qt[f ? "unshift" : "push"](() => {
|
|
5453
5432
|
W = f, r(15, W);
|
|
5454
5433
|
});
|
|
5455
5434
|
}
|
|
5456
5435
|
return e.$$set = (f) => {
|
|
5457
|
-
"session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7,
|
|
5436
|
+
"session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7, p = f.loginevent), "registerevent" in f && r(8, _ = f.registerevent), "loginurl" in f && r(9, O = f.loginurl), "registerurl" in f && r(10, B = f.registerurl), "currency" in f && r(11, ee = f.currency), "keepbrowsercontext" in f && r(12, me = f.keepbrowsercontext), "sorttype" in f && r(25, ie = f.sorttype), "sortorder" in f && r(26, M = f.sortorder), "starttimeafter" in f && r(27, $ = f.starttimeafter), "showanonymoustournaments" in f && r(28, Z = f.showanonymoustournaments), "clientstyling" in f && r(13, le = f.clientstyling), "clientstylingurl" in f && r(14, ge = f.clientstylingurl), "delaybeforeload" in f && r(29, Re = f.delaybeforeload);
|
|
5458
5437
|
}, e.$$.update = () => {
|
|
5459
5438
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
5460
5439
|
40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
5461
|
-
49152 && W && ge &&
|
|
5440
|
+
49152 && W && ge && C(), e.$$.dirty[0] & /*userid*/
|
|
5462
5441
|
2, e.$$.dirty[0] & /*filters*/
|
|
5463
5442
|
64 && d && v(), e.$$.dirty[0] & /*lang*/
|
|
5464
5443
|
8 && a && y(), e.$$.dirty[0] & /*translationurl*/
|
|
5465
|
-
16 && l &&
|
|
5466
|
-
1 && ve &&
|
|
5444
|
+
16 && l && Ot(), e.$$.dirty[1] & /*isMounted*/
|
|
5445
|
+
1 && ve && m(), e.$$.dirty[0] & /*session*/
|
|
5467
5446
|
1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
|
|
5468
|
-
1073741824 && (te === "" || te) &&
|
|
5469
|
-
285212716 && s && u && c && a && Z &&
|
|
5447
|
+
1073741824 && (te === "" || te) && R(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
|
|
5448
|
+
285212716 && s && u && c && a && Z && R();
|
|
5470
5449
|
}, [
|
|
5471
5450
|
i,
|
|
5472
5451
|
o,
|
|
@@ -5475,43 +5454,43 @@ function ws(e, t, r) {
|
|
|
5475
5454
|
l,
|
|
5476
5455
|
u,
|
|
5477
5456
|
d,
|
|
5478
|
-
|
|
5479
|
-
|
|
5457
|
+
p,
|
|
5458
|
+
_,
|
|
5459
|
+
O,
|
|
5480
5460
|
B,
|
|
5481
|
-
P,
|
|
5482
5461
|
ee,
|
|
5483
|
-
|
|
5462
|
+
me,
|
|
5484
5463
|
le,
|
|
5485
5464
|
ge,
|
|
5486
5465
|
W,
|
|
5487
|
-
Pe,
|
|
5488
|
-
me,
|
|
5489
5466
|
Be,
|
|
5490
|
-
|
|
5467
|
+
pe,
|
|
5468
|
+
Ce,
|
|
5469
|
+
Ye,
|
|
5491
5470
|
he,
|
|
5492
5471
|
se,
|
|
5493
5472
|
n,
|
|
5494
5473
|
b,
|
|
5495
5474
|
c,
|
|
5496
5475
|
ie,
|
|
5497
|
-
|
|
5476
|
+
M,
|
|
5498
5477
|
$,
|
|
5499
5478
|
Z,
|
|
5500
5479
|
Re,
|
|
5501
5480
|
te,
|
|
5502
5481
|
ve,
|
|
5503
|
-
|
|
5504
|
-
|
|
5482
|
+
L,
|
|
5483
|
+
E
|
|
5505
5484
|
];
|
|
5506
5485
|
}
|
|
5507
|
-
class
|
|
5486
|
+
class Bn extends ii {
|
|
5508
5487
|
constructor(t) {
|
|
5509
|
-
super(),
|
|
5488
|
+
super(), ri(
|
|
5510
5489
|
this,
|
|
5511
5490
|
t,
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5491
|
+
_s,
|
|
5492
|
+
ys,
|
|
5493
|
+
Wr,
|
|
5515
5494
|
{
|
|
5516
5495
|
session: 0,
|
|
5517
5496
|
userid: 1,
|
|
@@ -5535,7 +5514,7 @@ class On extends oi {
|
|
|
5535
5514
|
clientstylingurl: 14,
|
|
5536
5515
|
delaybeforeload: 29
|
|
5537
5516
|
},
|
|
5538
|
-
|
|
5517
|
+
cs,
|
|
5539
5518
|
[-1, -1, -1]
|
|
5540
5519
|
);
|
|
5541
5520
|
}
|
|
@@ -5543,172 +5522,172 @@ class On extends oi {
|
|
|
5543
5522
|
return this.$$.ctx[0];
|
|
5544
5523
|
}
|
|
5545
5524
|
set session(t) {
|
|
5546
|
-
this.$$set({ session: t }),
|
|
5525
|
+
this.$$set({ session: t }), F();
|
|
5547
5526
|
}
|
|
5548
5527
|
get userid() {
|
|
5549
5528
|
return this.$$.ctx[1];
|
|
5550
5529
|
}
|
|
5551
5530
|
set userid(t) {
|
|
5552
|
-
this.$$set({ userid: t }),
|
|
5531
|
+
this.$$set({ userid: t }), F();
|
|
5553
5532
|
}
|
|
5554
5533
|
get endpoint() {
|
|
5555
5534
|
return this.$$.ctx[2];
|
|
5556
5535
|
}
|
|
5557
5536
|
set endpoint(t) {
|
|
5558
|
-
this.$$set({ endpoint: t }),
|
|
5537
|
+
this.$$set({ endpoint: t }), F();
|
|
5559
5538
|
}
|
|
5560
5539
|
get lang() {
|
|
5561
5540
|
return this.$$.ctx[3];
|
|
5562
5541
|
}
|
|
5563
5542
|
set lang(t) {
|
|
5564
|
-
this.$$set({ lang: t }),
|
|
5543
|
+
this.$$set({ lang: t }), F();
|
|
5565
5544
|
}
|
|
5566
5545
|
get translationurl() {
|
|
5567
5546
|
return this.$$.ctx[4];
|
|
5568
5547
|
}
|
|
5569
5548
|
set translationurl(t) {
|
|
5570
|
-
this.$$set({ translationurl: t }),
|
|
5549
|
+
this.$$set({ translationurl: t }), F();
|
|
5571
5550
|
}
|
|
5572
5551
|
get numberoftournaments() {
|
|
5573
5552
|
return this.$$.ctx[5];
|
|
5574
5553
|
}
|
|
5575
5554
|
set numberoftournaments(t) {
|
|
5576
|
-
this.$$set({ numberoftournaments: t }),
|
|
5555
|
+
this.$$set({ numberoftournaments: t }), F();
|
|
5577
5556
|
}
|
|
5578
5557
|
get showmorestep() {
|
|
5579
5558
|
return this.$$.ctx[24];
|
|
5580
5559
|
}
|
|
5581
5560
|
set showmorestep(t) {
|
|
5582
|
-
this.$$set({ showmorestep: t }),
|
|
5561
|
+
this.$$set({ showmorestep: t }), F();
|
|
5583
5562
|
}
|
|
5584
5563
|
get filters() {
|
|
5585
5564
|
return this.$$.ctx[6];
|
|
5586
5565
|
}
|
|
5587
5566
|
set filters(t) {
|
|
5588
|
-
this.$$set({ filters: t }),
|
|
5567
|
+
this.$$set({ filters: t }), F();
|
|
5589
5568
|
}
|
|
5590
5569
|
get loginevent() {
|
|
5591
5570
|
return this.$$.ctx[7];
|
|
5592
5571
|
}
|
|
5593
5572
|
set loginevent(t) {
|
|
5594
|
-
this.$$set({ loginevent: t }),
|
|
5573
|
+
this.$$set({ loginevent: t }), F();
|
|
5595
5574
|
}
|
|
5596
5575
|
get registerevent() {
|
|
5597
5576
|
return this.$$.ctx[8];
|
|
5598
5577
|
}
|
|
5599
5578
|
set registerevent(t) {
|
|
5600
|
-
this.$$set({ registerevent: t }),
|
|
5579
|
+
this.$$set({ registerevent: t }), F();
|
|
5601
5580
|
}
|
|
5602
5581
|
get loginurl() {
|
|
5603
5582
|
return this.$$.ctx[9];
|
|
5604
5583
|
}
|
|
5605
5584
|
set loginurl(t) {
|
|
5606
|
-
this.$$set({ loginurl: t }),
|
|
5585
|
+
this.$$set({ loginurl: t }), F();
|
|
5607
5586
|
}
|
|
5608
5587
|
get registerurl() {
|
|
5609
5588
|
return this.$$.ctx[10];
|
|
5610
5589
|
}
|
|
5611
5590
|
set registerurl(t) {
|
|
5612
|
-
this.$$set({ registerurl: t }),
|
|
5591
|
+
this.$$set({ registerurl: t }), F();
|
|
5613
5592
|
}
|
|
5614
5593
|
get currency() {
|
|
5615
5594
|
return this.$$.ctx[11];
|
|
5616
5595
|
}
|
|
5617
5596
|
set currency(t) {
|
|
5618
|
-
this.$$set({ currency: t }),
|
|
5597
|
+
this.$$set({ currency: t }), F();
|
|
5619
5598
|
}
|
|
5620
5599
|
get keepbrowsercontext() {
|
|
5621
5600
|
return this.$$.ctx[12];
|
|
5622
5601
|
}
|
|
5623
5602
|
set keepbrowsercontext(t) {
|
|
5624
|
-
this.$$set({ keepbrowsercontext: t }),
|
|
5603
|
+
this.$$set({ keepbrowsercontext: t }), F();
|
|
5625
5604
|
}
|
|
5626
5605
|
get sorttype() {
|
|
5627
5606
|
return this.$$.ctx[25];
|
|
5628
5607
|
}
|
|
5629
5608
|
set sorttype(t) {
|
|
5630
|
-
this.$$set({ sorttype: t }),
|
|
5609
|
+
this.$$set({ sorttype: t }), F();
|
|
5631
5610
|
}
|
|
5632
5611
|
get sortorder() {
|
|
5633
5612
|
return this.$$.ctx[26];
|
|
5634
5613
|
}
|
|
5635
5614
|
set sortorder(t) {
|
|
5636
|
-
this.$$set({ sortorder: t }),
|
|
5615
|
+
this.$$set({ sortorder: t }), F();
|
|
5637
5616
|
}
|
|
5638
5617
|
get starttimeafter() {
|
|
5639
5618
|
return this.$$.ctx[27];
|
|
5640
5619
|
}
|
|
5641
5620
|
set starttimeafter(t) {
|
|
5642
|
-
this.$$set({ starttimeafter: t }),
|
|
5621
|
+
this.$$set({ starttimeafter: t }), F();
|
|
5643
5622
|
}
|
|
5644
5623
|
get showanonymoustournaments() {
|
|
5645
5624
|
return this.$$.ctx[28];
|
|
5646
5625
|
}
|
|
5647
5626
|
set showanonymoustournaments(t) {
|
|
5648
|
-
this.$$set({ showanonymoustournaments: t }),
|
|
5627
|
+
this.$$set({ showanonymoustournaments: t }), F();
|
|
5649
5628
|
}
|
|
5650
5629
|
get clientstyling() {
|
|
5651
5630
|
return this.$$.ctx[13];
|
|
5652
5631
|
}
|
|
5653
5632
|
set clientstyling(t) {
|
|
5654
|
-
this.$$set({ clientstyling: t }),
|
|
5633
|
+
this.$$set({ clientstyling: t }), F();
|
|
5655
5634
|
}
|
|
5656
5635
|
get clientstylingurl() {
|
|
5657
5636
|
return this.$$.ctx[14];
|
|
5658
5637
|
}
|
|
5659
5638
|
set clientstylingurl(t) {
|
|
5660
|
-
this.$$set({ clientstylingurl: t }),
|
|
5639
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
5661
5640
|
}
|
|
5662
5641
|
get delaybeforeload() {
|
|
5663
5642
|
return this.$$.ctx[29];
|
|
5664
5643
|
}
|
|
5665
5644
|
set delaybeforeload(t) {
|
|
5666
|
-
this.$$set({ delaybeforeload: t }),
|
|
5645
|
+
this.$$set({ delaybeforeload: t }), F();
|
|
5667
5646
|
}
|
|
5668
5647
|
}
|
|
5669
|
-
|
|
5670
|
-
const
|
|
5648
|
+
ni(Bn, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
|
|
5649
|
+
const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5671
5650
|
__proto__: null,
|
|
5672
|
-
default:
|
|
5651
|
+
default: Bn
|
|
5673
5652
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5674
5653
|
export {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5654
|
+
us as $,
|
|
5655
|
+
Ts as A,
|
|
5656
|
+
St as B,
|
|
5657
|
+
ht as C,
|
|
5658
|
+
ws as D,
|
|
5659
|
+
Je as E,
|
|
5660
|
+
ls as F,
|
|
5661
|
+
Hs as G,
|
|
5662
|
+
Ps as H,
|
|
5663
|
+
Jt as I,
|
|
5664
|
+
Bs as J,
|
|
5665
|
+
Is as K,
|
|
5666
|
+
ii as S,
|
|
5667
|
+
wn as a,
|
|
5668
|
+
Fn as b,
|
|
5669
|
+
ni as c,
|
|
5670
|
+
U as d,
|
|
5692
5671
|
z as e,
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5672
|
+
F as f,
|
|
5673
|
+
Os as g,
|
|
5674
|
+
de as h,
|
|
5675
|
+
ri as i,
|
|
5676
|
+
ne as j,
|
|
5677
|
+
Dn as k,
|
|
5678
|
+
Cs as l,
|
|
5679
|
+
zt as m,
|
|
5701
5680
|
ce as n,
|
|
5702
5681
|
re as o,
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5682
|
+
st as p,
|
|
5683
|
+
Ss as q,
|
|
5684
|
+
Wt as r,
|
|
5685
|
+
Wr as s,
|
|
5707
5686
|
Ne as t,
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5687
|
+
qt as u,
|
|
5688
|
+
As as v,
|
|
5689
|
+
zn as w,
|
|
5690
|
+
jn as x,
|
|
5712
5691
|
w as y,
|
|
5713
5692
|
He as z
|
|
5714
5693
|
};
|