@everymatrix/casino-lobby 1.54.6 → 1.54.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCalendar-BlfnJwZ-.cjs +9 -0
- package/components/{CasinoCalendar-Ic3lq1UY.js → CasinoCalendar-CKCvu8d9.js} +1370 -1378
- package/components/CasinoCalendar-D3cTwZsW.js +5197 -0
- package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-B7hChP4v.js} +90 -90
- package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +701 -0
- package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-1iPwEmjb.js} +46 -46
- package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +315 -0
- package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +1 -0
- package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-06Zx2Iq-.js} +29 -29
- package/components/CasinoCategoriesSlider-Bjd1r5S5.js +606 -0
- package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +1 -0
- package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-BQPjVzK8.js} +58 -58
- package/components/CasinoCollectionsProviders-CSISd5u6.cjs +1 -0
- package/components/CasinoCollectionsProviders-CVDFBiI0.js +664 -0
- package/components/{CasinoFavoritesSection-D4Du3N5n.js → CasinoFavoritesSection-BtAZ0obR.js} +16 -16
- package/components/CasinoFavoritesSection-CeNe7gym.js +439 -0
- package/components/CasinoFavoritesSection-D7g9PfaJ.cjs +1 -0
- package/components/CasinoFilter-C10Tgn3c.cjs +1 -0
- package/components/CasinoFilter-CT6gjm3V.js +634 -0
- package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-ckjDwsuD.js} +55 -55
- package/components/CasinoGamePage-BXEw8hFH.js +4300 -0
- package/components/{CasinoGamePage-C0VvUfCV.js → CasinoGamePage-CtPmWXKS.js} +90 -90
- package/components/CasinoGamePage-DishJnnG.cjs +18 -0
- package/components/{CasinoGameThumbnail-C-zG9Jn9.js → CasinoGameThumbnail-CPtgI_Ou.js} +63 -63
- package/components/CasinoGameThumbnail-DEA-lJVL.cjs +38 -0
- package/components/CasinoGameThumbnail-DlUjmcUF.js +1850 -0
- package/components/CasinoGamesCategorySection-C004qi0F.cjs +1 -0
- package/components/CasinoGamesCategorySection-DNDGzt_C.js +3032 -0
- package/components/{CasinoGamesCategorySection-DVd_DDkc.js → CasinoGamesCategorySection-DeKVT6Qy.js} +125 -125
- package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-D3s92J-3.js} +68 -68
- package/components/CasinoJackpotBanner-q02RPv4N.js +618 -0
- package/components/CasinoJackpotBanner-uWVFzOiI.cjs +1 -0
- package/components/{CasinoLastPlayedSection-VbQH2qG2.js → CasinoLastPlayedSection-CRSWVIu_.js} +29 -29
- package/components/CasinoLastPlayedSection-tgXO-MUK.cjs +1 -0
- package/components/CasinoLastPlayedSection-vWwXDUsk.js +566 -0
- package/components/CasinoLobby-CzD2DAYm.cjs +1 -0
- package/components/{CasinoLobby-CSsnpzSn.js → CasinoLobby-aK6BWuTG.js} +49 -49
- package/components/CasinoLobby-cHs3HImA.js +2337 -0
- package/components/{CasinoModal-z0xixUlG.js → CasinoModal-C1oW3YF4.js} +69 -69
- package/components/CasinoModal-DRtZi6gR.cjs +1 -0
- package/components/CasinoModal-IbVlgg7Z.js +372 -0
- package/components/CasinoMostPlayedSection-1h4sJVZB.cjs +1 -0
- package/components/{CasinoMostPlayedSection-BIXY9riB.js → CasinoMostPlayedSection-CqCeL-T3.js} +32 -32
- package/components/CasinoMostPlayedSection-GdgKELMj.js +583 -0
- package/components/CasinoMyGames-B_NJlfMk.cjs +1 -0
- package/components/{CasinoMyGames-DqRPb7fX.js → CasinoMyGames-C96xDtTs.js} +52 -52
- package/components/CasinoMyGames-crupH86Y.js +1318 -0
- package/components/CasinoPage-BP3C9X12.cjs +1 -0
- package/components/{CasinoPage-Cm-vD67m.js → CasinoPage-BmaJqL6b.js} +123 -123
- package/components/CasinoPage-LZWtHc8W.js +3550 -0
- package/components/CasinoRandomGame-C6-dDxie.cjs +2 -0
- package/components/CasinoRandomGame-DXFHIw0O.js +668 -0
- package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-Df62wtxc.js} +51 -51
- package/components/CasinoSearch-BcFA6QGN.js +1072 -0
- package/components/CasinoSearch-Dnm7_nuc.cjs +1 -0
- package/components/{CasinoSearch-BEXK-fFP.js → CasinoSearch-akpXIDh-.js} +83 -83
- package/components/CasinoSlider-BDjskQjI.cjs +1 -0
- package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-BWEc4YT5.js} +78 -78
- package/components/CasinoSlider-BjpV4pLV.js +806 -0
- package/components/CasinoSort-CS53Uvnz.cjs +1 -0
- package/components/CasinoSort-DFdgT3Dt.js +432 -0
- package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-DFljh5Sg.js} +16 -16
- package/components/CasinoWinners-6mr0X-kZ.js +971 -0
- package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-CADOvOsd.js} +62 -62
- package/components/CasinoWinners-DU3xFq2b.cjs +1 -0
- package/components/GeneralAnimationLoading-BG_QynCK.cjs +1 -0
- package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-CX9baArf.js} +8 -8
- package/components/GeneralAnimationLoading-DVLCsjn0.js +75 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/esnext/casino-lobby.js +1 -1
- package/package.json +4 -1
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-CoygOtgn.js} +1 -1
- package/stencil/casino-play-random-game-DjMkr-Sg.cjs +371 -0
- package/stencil/casino-play-random-game-DkjQlTyE.js +577 -0
- package/stencil/index-f923e8d1-D64rZ7vf.js +645 -0
- package/stencil/index-f923e8d1-D8EldEUs.js +629 -0
- package/stencil/index-f923e8d1-QzT30J3F.cjs +1 -0
- package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
3
|
+
const Br = (e) => e;
|
|
4
|
+
function Or(e, t) {
|
|
5
|
+
for (const r in t) e[r] = t[r];
|
|
6
6
|
return (
|
|
7
7
|
/** @type {T & S} */
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ut(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function lt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function k(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Ut);
|
|
19
19
|
}
|
|
20
20
|
function de(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Gt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let be;
|
|
27
|
-
function
|
|
27
|
+
function _o(e, t) {
|
|
28
28
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ir(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ft(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
|
-
for (const
|
|
36
|
-
|
|
35
|
+
for (const n of t)
|
|
36
|
+
n(void 0);
|
|
37
37
|
return B;
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
return
|
|
39
|
+
const r = e.subscribe(...t);
|
|
40
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function Cr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(Ft(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function vo(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = jt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] &&
|
|
51
|
+
function jt(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? Or(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
if (e[2] &&
|
|
56
|
-
const i = e[2](r
|
|
54
|
+
function Eo(e, t, r, n) {
|
|
55
|
+
if (e[2] && n) {
|
|
56
|
+
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
58
58
|
return i;
|
|
59
59
|
if (typeof i == "object") {
|
|
60
|
-
const
|
|
61
|
-
for (let
|
|
62
|
-
s
|
|
63
|
-
return
|
|
60
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
61
|
+
for (let s = 0; s < a; s += 1)
|
|
62
|
+
o[s] = t.dirty[s] | i[s];
|
|
63
|
+
return o;
|
|
64
64
|
}
|
|
65
65
|
return t.dirty | i;
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function xo(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = jt(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function wo(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
|
-
const t = [],
|
|
78
|
-
for (let
|
|
79
|
-
t[
|
|
77
|
+
const t = [], r = e.ctx.length / 32;
|
|
78
|
+
for (let n = 0; n < r; n++)
|
|
79
|
+
t[n] = -1;
|
|
80
80
|
return t;
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function So(e) {
|
|
85
85
|
return e && de(e.destroy) ? e.destroy : B;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
88
|
-
let
|
|
87
|
+
const kt = typeof window < "u";
|
|
88
|
+
let Lr = kt ? () => window.performance.now() : () => Date.now(), it = kt ? (e) => requestAnimationFrame(e) : B;
|
|
89
89
|
const J = /* @__PURE__ */ new Set();
|
|
90
|
-
function
|
|
90
|
+
function Vt(e) {
|
|
91
91
|
J.forEach((t) => {
|
|
92
92
|
t.c(e) || (J.delete(t), t.f());
|
|
93
|
-
}), J.size !== 0 && it(
|
|
93
|
+
}), J.size !== 0 && it(Vt);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Nr(e) {
|
|
96
96
|
let t;
|
|
97
|
-
return J.size === 0 && it(
|
|
98
|
-
promise: new Promise((
|
|
99
|
-
J.add(t = { c: e, f:
|
|
97
|
+
return J.size === 0 && it(Vt), {
|
|
98
|
+
promise: new Promise((r) => {
|
|
99
|
+
J.add(t = { c: e, f: r });
|
|
100
100
|
}),
|
|
101
101
|
abort() {
|
|
102
102
|
J.delete(t);
|
|
@@ -106,14 +106,14 @@ function Rn(e) {
|
|
|
106
106
|
function pe(e, t) {
|
|
107
107
|
e.appendChild(t);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
if (!
|
|
109
|
+
function Mr(e, t, r) {
|
|
110
|
+
const n = ot(e);
|
|
111
|
+
if (!n.getElementById(t)) {
|
|
112
112
|
const i = R("style");
|
|
113
|
-
i.id = t, i.textContent =
|
|
113
|
+
i.id = t, i.textContent = r, Xt(n, i);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ot(e) {
|
|
117
117
|
if (!e) return document;
|
|
118
118
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
119
119
|
return t && /** @type {ShadowRoot} */
|
|
@@ -122,72 +122,72 @@ function st(e) {
|
|
|
122
122
|
t
|
|
123
123
|
) : e.ownerDocument;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Rr(e) {
|
|
126
126
|
const t = R("style");
|
|
127
|
-
return t.textContent = "/* empty */",
|
|
127
|
+
return t.textContent = "/* empty */", Xt(ot(e), t), t.sheet;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Xt(e, t) {
|
|
130
130
|
return pe(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function V(e, t,
|
|
137
|
-
e.insertBefore(t,
|
|
136
|
+
function V(e, t, r) {
|
|
137
|
+
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
139
|
function $(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
for (let
|
|
144
|
-
e[
|
|
142
|
+
function $r(e, t) {
|
|
143
|
+
for (let r = 0; r < e.length; r += 1)
|
|
144
|
+
e[r] && e[r].d(t);
|
|
145
145
|
}
|
|
146
146
|
function R(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Dr(e) {
|
|
150
150
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function st(e) {
|
|
153
153
|
return document.createTextNode(e);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function Ur() {
|
|
156
|
+
return st(" ");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
158
|
+
function To() {
|
|
159
|
+
return st("");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
return e.addEventListener(t,
|
|
161
|
+
function ht(e, t, r, n) {
|
|
162
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ho(e) {
|
|
165
165
|
return function(t) {
|
|
166
166
|
return t.stopPropagation(), e.call(this, t);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function X(e, t,
|
|
170
|
-
|
|
169
|
+
function X(e, t, r) {
|
|
170
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
171
171
|
}
|
|
172
|
-
function y(e, t,
|
|
173
|
-
const
|
|
174
|
-
|
|
172
|
+
function y(e, t, r) {
|
|
173
|
+
const n = t.toLowerCase();
|
|
174
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : X(e, t, r);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Gr(e) {
|
|
177
177
|
return Array.from(e.childNodes);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Fr(e, t) {
|
|
180
180
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
181
181
|
t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Po(e, t) {
|
|
184
184
|
e.value = t ?? "";
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
186
|
+
function Ao(e, t, r, n) {
|
|
187
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
188
188
|
}
|
|
189
189
|
let ye;
|
|
190
|
-
function
|
|
190
|
+
function jr() {
|
|
191
191
|
if (ye === void 0) {
|
|
192
192
|
ye = !1;
|
|
193
193
|
try {
|
|
@@ -198,35 +198,35 @@ function Vn() {
|
|
|
198
198
|
}
|
|
199
199
|
return ye;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Bo(e, t) {
|
|
202
202
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
203
|
-
const
|
|
204
|
-
|
|
203
|
+
const n = R("iframe");
|
|
204
|
+
n.setAttribute(
|
|
205
205
|
"style",
|
|
206
206
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
207
|
-
),
|
|
208
|
-
const i =
|
|
209
|
-
let
|
|
210
|
-
return i ? (
|
|
207
|
+
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
208
|
+
const i = jr();
|
|
209
|
+
let o;
|
|
210
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = ht(
|
|
211
211
|
window,
|
|
212
212
|
"message",
|
|
213
213
|
/** @param {MessageEvent} event */
|
|
214
214
|
(a) => {
|
|
215
|
-
a.source ===
|
|
215
|
+
a.source === n.contentWindow && t();
|
|
216
216
|
}
|
|
217
|
-
)) : (
|
|
218
|
-
|
|
219
|
-
}), pe(e,
|
|
220
|
-
(i ||
|
|
217
|
+
)) : (n.src = "about:blank", n.onload = () => {
|
|
218
|
+
o = ht(n.contentWindow, "resize", t), t();
|
|
219
|
+
}), pe(e, n), () => {
|
|
220
|
+
(i || o && n.contentWindow) && o(), $(n);
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
e.classList.toggle(t, !!
|
|
223
|
+
function Oo(e, t, r) {
|
|
224
|
+
e.classList.toggle(t, !!r);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
226
|
+
function kr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
227
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
228
228
|
}
|
|
229
|
-
class
|
|
229
|
+
class Io {
|
|
230
230
|
/**
|
|
231
231
|
* @private
|
|
232
232
|
* @default false
|
|
@@ -256,17 +256,17 @@ class Is {
|
|
|
256
256
|
* @param {HTMLElement | SVGElement} anchor
|
|
257
257
|
* @returns {void}
|
|
258
258
|
*/
|
|
259
|
-
m(t,
|
|
260
|
-
this.e || (this.is_svg ? this.e =
|
|
259
|
+
m(t, r, n = null) {
|
|
260
|
+
this.e || (this.is_svg ? this.e = Dr(
|
|
261
261
|
/** @type {keyof SVGElementTagNameMap} */
|
|
262
|
-
|
|
262
|
+
r.nodeName
|
|
263
263
|
) : this.e = R(
|
|
264
264
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
265
|
-
|
|
266
|
-
), this.t =
|
|
265
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
266
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
267
267
|
/** @type {HTMLTemplateElement} */
|
|
268
|
-
|
|
269
|
-
), this.c(t)), this.i(
|
|
268
|
+
r.content
|
|
269
|
+
), this.c(t)), this.i(n);
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* @param {string} html
|
|
@@ -280,8 +280,8 @@ class Is {
|
|
|
280
280
|
/**
|
|
281
281
|
* @returns {void} */
|
|
282
282
|
i(t) {
|
|
283
|
-
for (let
|
|
284
|
-
V(this.t, this.n[
|
|
283
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
284
|
+
V(this.t, this.n[r], t);
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
287
|
* @param {string} html
|
|
@@ -296,49 +296,49 @@ class Is {
|
|
|
296
296
|
this.n.forEach($);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Vr(e) {
|
|
300
300
|
const t = {};
|
|
301
301
|
return e.childNodes.forEach(
|
|
302
302
|
/** @param {Element} node */
|
|
303
|
-
(
|
|
304
|
-
t[
|
|
303
|
+
(r) => {
|
|
304
|
+
t[r.slot || "default"] = !0;
|
|
305
305
|
}
|
|
306
306
|
), t;
|
|
307
307
|
}
|
|
308
308
|
const Te = /* @__PURE__ */ new Map();
|
|
309
309
|
let He = 0;
|
|
310
|
-
function
|
|
311
|
-
let t = 5381,
|
|
312
|
-
for (;
|
|
310
|
+
function Xr(e) {
|
|
311
|
+
let t = 5381, r = e.length;
|
|
312
|
+
for (; r--; ) t = (t << 5) - t ^ e.charCodeAt(r);
|
|
313
313
|
return t >>> 0;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
const
|
|
317
|
-
return Te.set(e,
|
|
315
|
+
function Wr(e, t) {
|
|
316
|
+
const r = { stylesheet: Rr(t), rules: {} };
|
|
317
|
+
return Te.set(e, r), r;
|
|
318
318
|
}
|
|
319
|
-
function ct(e, t,
|
|
320
|
-
const l = 16.666 /
|
|
319
|
+
function ct(e, t, r, n, i, o, a, s = 0) {
|
|
320
|
+
const l = 16.666 / n;
|
|
321
321
|
let u = `{
|
|
322
322
|
`;
|
|
323
323
|
for (let E = 0; E <= 1; E += l) {
|
|
324
|
-
const S = t + (
|
|
324
|
+
const S = t + (r - t) * o(E);
|
|
325
325
|
u += E * 100 + `%{${a(S, 1 - S)}}
|
|
326
326
|
`;
|
|
327
327
|
}
|
|
328
|
-
const h = u + `100% {${a(
|
|
329
|
-
}`,
|
|
330
|
-
d[
|
|
328
|
+
const h = u + `100% {${a(r, 1 - r)}}
|
|
329
|
+
}`, c = `__svelte_${Xr(h)}_${s}`, f = ot(e), { stylesheet: p, rules: d } = Te.get(f) || Wr(f, e);
|
|
330
|
+
d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
|
|
331
331
|
const m = e.style.animation || "";
|
|
332
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
332
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, He += 1, c;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
const
|
|
336
|
-
t ? (
|
|
334
|
+
function zr(e, t) {
|
|
335
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
336
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
337
337
|
// remove all Svelte animations
|
|
338
|
-
), i =
|
|
339
|
-
i && (e.style.animation =
|
|
338
|
+
), i = r.length - n.length;
|
|
339
|
+
i && (e.style.animation = n.join(", "), He -= i, He || qr());
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function qr() {
|
|
342
342
|
it(() => {
|
|
343
343
|
He || (Te.forEach((e) => {
|
|
344
344
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -350,25 +350,25 @@ let he;
|
|
|
350
350
|
function le(e) {
|
|
351
351
|
he = e;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Wt() {
|
|
354
354
|
if (!he) throw new Error("Function called outside component initialization");
|
|
355
355
|
return he;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
357
|
+
function Co(e) {
|
|
358
|
+
Wt().$$.before_update.push(e);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function Zr(e) {
|
|
361
|
+
Wt().$$.on_mount.push(e);
|
|
362
362
|
}
|
|
363
363
|
const Q = [], ke = [];
|
|
364
364
|
let Y = [];
|
|
365
|
-
const
|
|
365
|
+
const ft = [], zt = /* @__PURE__ */ Promise.resolve();
|
|
366
366
|
let Ve = !1;
|
|
367
|
-
function
|
|
368
|
-
Ve || (Ve = !0,
|
|
367
|
+
function qt() {
|
|
368
|
+
Ve || (Ve = !0, zt.then(D));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function Lo() {
|
|
371
|
+
return qt(), zt;
|
|
372
372
|
}
|
|
373
373
|
function Pe(e) {
|
|
374
374
|
Y.push(e);
|
|
@@ -383,45 +383,45 @@ function D() {
|
|
|
383
383
|
try {
|
|
384
384
|
for (; q < Q.length; ) {
|
|
385
385
|
const t = Q[q];
|
|
386
|
-
q++, le(t),
|
|
386
|
+
q++, le(t), Qr(t.$$);
|
|
387
387
|
}
|
|
388
388
|
} catch (t) {
|
|
389
389
|
throw Q.length = 0, q = 0, t;
|
|
390
390
|
}
|
|
391
391
|
for (le(null), Q.length = 0, q = 0; ke.length; ) ke.pop()();
|
|
392
392
|
for (let t = 0; t < Y.length; t += 1) {
|
|
393
|
-
const
|
|
394
|
-
Me.has(
|
|
393
|
+
const r = Y[t];
|
|
394
|
+
Me.has(r) || (Me.add(r), r());
|
|
395
395
|
}
|
|
396
396
|
Y.length = 0;
|
|
397
397
|
} while (Q.length);
|
|
398
|
-
for (;
|
|
399
|
-
|
|
398
|
+
for (; ft.length; )
|
|
399
|
+
ft.pop()();
|
|
400
400
|
Ve = !1, Me.clear(), le(e);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Qr(e) {
|
|
403
403
|
if (e.fragment !== null) {
|
|
404
404
|
e.update(), k(e.before_update);
|
|
405
405
|
const t = e.dirty;
|
|
406
406
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
const t = [],
|
|
411
|
-
Y.forEach((
|
|
409
|
+
function Jr(e) {
|
|
410
|
+
const t = [], r = [];
|
|
411
|
+
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
412
412
|
}
|
|
413
413
|
let ae;
|
|
414
|
-
function
|
|
414
|
+
function Yr() {
|
|
415
415
|
return ae || (ae = Promise.resolve(), ae.then(() => {
|
|
416
416
|
ae = null;
|
|
417
417
|
})), ae;
|
|
418
418
|
}
|
|
419
|
-
function Re(e, t,
|
|
420
|
-
e.dispatchEvent(
|
|
419
|
+
function Re(e, t, r) {
|
|
420
|
+
e.dispatchEvent(kr(`${t ? "intro" : "outro"}${r}`));
|
|
421
421
|
}
|
|
422
422
|
const ve = /* @__PURE__ */ new Set();
|
|
423
423
|
let U;
|
|
424
|
-
function
|
|
424
|
+
function No() {
|
|
425
425
|
U = {
|
|
426
426
|
r: 0,
|
|
427
427
|
c: [],
|
|
@@ -429,27 +429,27 @@ function Ns() {
|
|
|
429
429
|
// parent group
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Mo() {
|
|
433
433
|
U.r || k(U.c), U = U.p;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Zt(e, t) {
|
|
436
436
|
e && e.i && (ve.delete(e), e.i(t));
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Ro(e, t, r, n) {
|
|
439
439
|
if (e && e.o) {
|
|
440
440
|
if (ve.has(e)) return;
|
|
441
441
|
ve.add(e), U.c.push(() => {
|
|
442
|
-
ve.delete(e),
|
|
442
|
+
ve.delete(e), n && (r && e.d(1), n());
|
|
443
443
|
}), e.o(t);
|
|
444
|
-
} else
|
|
444
|
+
} else n && n();
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
function $
|
|
448
|
-
let
|
|
449
|
-
function
|
|
450
|
-
u &&
|
|
446
|
+
const Kr = { duration: 0 };
|
|
447
|
+
function $o(e, t, r, n) {
|
|
448
|
+
let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
|
|
449
|
+
function c() {
|
|
450
|
+
u && zr(e, u);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function f(d, m) {
|
|
453
453
|
const E = (
|
|
454
454
|
/** @type {Program['d']} */
|
|
455
455
|
d.b - a
|
|
@@ -468,101 +468,101 @@ function $s(e, t, n, r) {
|
|
|
468
468
|
const {
|
|
469
469
|
delay: m = 0,
|
|
470
470
|
duration: E = 300,
|
|
471
|
-
easing: S =
|
|
471
|
+
easing: S = Br,
|
|
472
472
|
tick: H = B,
|
|
473
473
|
css: T
|
|
474
|
-
} =
|
|
475
|
-
start:
|
|
474
|
+
} = o || Kr, O = {
|
|
475
|
+
start: Lr() + m,
|
|
476
476
|
b: d
|
|
477
477
|
};
|
|
478
478
|
d || (O.group = U, U.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
479
|
-
e.inert, e.inert = !0)),
|
|
480
|
-
if (l && P > l.start && (
|
|
479
|
+
e.inert, e.inert = !0)), s || l ? l = O : (T && (c(), u = ct(e, a, d, E, m, S, T)), d && H(0, 1), s = f(O, E), Pe(() => Re(e, d, "start")), Nr((P) => {
|
|
480
|
+
if (l && P > l.start && (s = f(l, E), l = null, Re(e, s.b, "start"), T && (c(), u = ct(
|
|
481
481
|
e,
|
|
482
482
|
a,
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
s.b,
|
|
484
|
+
s.duration,
|
|
485
485
|
0,
|
|
486
486
|
S,
|
|
487
|
-
|
|
488
|
-
))),
|
|
489
|
-
if (P >=
|
|
490
|
-
H(a =
|
|
491
|
-
else if (P >=
|
|
492
|
-
const C = P -
|
|
493
|
-
a =
|
|
487
|
+
o.css
|
|
488
|
+
))), s) {
|
|
489
|
+
if (P >= s.end)
|
|
490
|
+
H(a = s.b, 1 - a), Re(e, s.b, "end"), l || (s.b ? c() : --s.group.r || k(s.group.c)), s = null;
|
|
491
|
+
else if (P >= s.start) {
|
|
492
|
+
const C = P - s.start;
|
|
493
|
+
a = s.a + s.d * S(C / s.duration), H(a, 1 - a);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
return !!(
|
|
496
|
+
return !!(s || l);
|
|
497
497
|
}));
|
|
498
498
|
}
|
|
499
499
|
return {
|
|
500
500
|
run(d) {
|
|
501
|
-
de(
|
|
502
|
-
|
|
501
|
+
de(o) ? Yr().then(() => {
|
|
502
|
+
o = o({ direction: d ? "in" : "out" }), p(d);
|
|
503
503
|
}) : p(d);
|
|
504
504
|
},
|
|
505
505
|
end() {
|
|
506
|
-
|
|
506
|
+
c(), s = l = null;
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function dt(e) {
|
|
511
511
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Do(e, t) {
|
|
514
514
|
e.d(1), t.delete(e.key);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
let
|
|
516
|
+
function Uo(e, t, r, n, i, o, a, s, l, u, h, c) {
|
|
517
|
+
let f = e.length, p = o.length, d = f;
|
|
518
518
|
const m = {};
|
|
519
519
|
for (; d--; ) m[e[d].key] = d;
|
|
520
520
|
const E = [], S = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), T = [];
|
|
521
521
|
for (d = p; d--; ) {
|
|
522
|
-
const x =
|
|
522
|
+
const x = c(i, o, d), L = r(x);
|
|
523
523
|
let N = a.get(L);
|
|
524
524
|
N ? T.push(() => N.p(x, t)) : (N = u(L, x), N.c()), S.set(L, E[d] = N), L in m && H.set(L, Math.abs(d - m[L]));
|
|
525
525
|
}
|
|
526
526
|
const O = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
|
527
527
|
function C(x) {
|
|
528
|
-
|
|
528
|
+
Zt(x, 1), x.m(s, h), a.set(x.key, x), h = x.first, p--;
|
|
529
529
|
}
|
|
530
|
-
for (;
|
|
531
|
-
const x = E[p - 1], L = e[
|
|
532
|
-
x === L ? (h = x.first,
|
|
530
|
+
for (; f && p; ) {
|
|
531
|
+
const x = E[p - 1], L = e[f - 1], N = x.key, z = L.key;
|
|
532
|
+
x === L ? (h = x.first, f--, p--) : S.has(z) ? !a.has(N) || O.has(N) ? C(x) : P.has(z) ? f-- : H.get(N) > H.get(z) ? (P.add(N), C(x)) : (O.add(z), f--) : (l(L, a), f--);
|
|
533
533
|
}
|
|
534
|
-
for (;
|
|
535
|
-
const x = e[
|
|
534
|
+
for (; f--; ) {
|
|
535
|
+
const x = e[f];
|
|
536
536
|
S.has(x.key) || l(x, a);
|
|
537
537
|
}
|
|
538
538
|
for (; p; ) C(E[p - 1]);
|
|
539
539
|
return k(T), E;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
const { fragment:
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
541
|
+
function en(e, t, r) {
|
|
542
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
543
|
+
n && n.m(t, r), Pe(() => {
|
|
544
|
+
const o = e.$$.on_mount.map(Ut).filter(de);
|
|
545
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : k(o), e.$$.on_mount = [];
|
|
546
546
|
}), i.forEach(Pe);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
const
|
|
550
|
-
|
|
548
|
+
function tn(e, t) {
|
|
549
|
+
const r = e.$$;
|
|
550
|
+
r.fragment !== null && (Jr(r.after_update), k(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
552
|
+
function rn(e, t) {
|
|
553
|
+
e.$$.dirty[0] === -1 && (Q.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function nn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
556
556
|
const l = he;
|
|
557
557
|
le(e);
|
|
558
558
|
const u = e.$$ = {
|
|
559
559
|
fragment: null,
|
|
560
560
|
ctx: [],
|
|
561
561
|
// state
|
|
562
|
-
props:
|
|
562
|
+
props: o,
|
|
563
563
|
update: B,
|
|
564
564
|
not_equal: i,
|
|
565
|
-
bound:
|
|
565
|
+
bound: lt(),
|
|
566
566
|
// lifecycle
|
|
567
567
|
on_mount: [],
|
|
568
568
|
on_destroy: [],
|
|
@@ -571,28 +571,28 @@ function sr(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
|
571
571
|
after_update: [],
|
|
572
572
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
573
573
|
// everything else
|
|
574
|
-
callbacks:
|
|
575
|
-
dirty:
|
|
574
|
+
callbacks: lt(),
|
|
575
|
+
dirty: s,
|
|
576
576
|
skip_bound: !1,
|
|
577
577
|
root: t.target || l.$$.root
|
|
578
578
|
};
|
|
579
579
|
a && a(u.root);
|
|
580
580
|
let h = !1;
|
|
581
|
-
if (u.ctx =
|
|
582
|
-
const d = p.length ? p[0] :
|
|
583
|
-
return u.ctx && i(u.ctx[
|
|
584
|
-
}) : [], u.update(), h = !0, k(u.before_update), u.fragment =
|
|
581
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
582
|
+
const d = p.length ? p[0] : f;
|
|
583
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && rn(e, c)), f;
|
|
584
|
+
}) : [], u.update(), h = !0, k(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
585
585
|
if (t.hydrate) {
|
|
586
|
-
const
|
|
587
|
-
u.fragment && u.fragment.l(
|
|
586
|
+
const c = Gr(t.target);
|
|
587
|
+
u.fragment && u.fragment.l(c), c.forEach($);
|
|
588
588
|
} else
|
|
589
589
|
u.fragment && u.fragment.c();
|
|
590
|
-
t.intro &&
|
|
590
|
+
t.intro && Zt(e.$$.fragment), en(e, t.target, t.anchor), D();
|
|
591
591
|
}
|
|
592
592
|
le(l);
|
|
593
593
|
}
|
|
594
|
-
let
|
|
595
|
-
typeof HTMLElement == "function" && (
|
|
594
|
+
let Qt;
|
|
595
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
596
596
|
/** The Svelte component constructor */
|
|
597
597
|
$$ctor;
|
|
598
598
|
/** Slots */
|
|
@@ -611,52 +611,52 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
611
611
|
$$l = {};
|
|
612
612
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
613
613
|
$$l_u = /* @__PURE__ */ new Map();
|
|
614
|
-
constructor(e, t,
|
|
615
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
614
|
+
constructor(e, t, r) {
|
|
615
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
616
616
|
}
|
|
617
|
-
addEventListener(e, t,
|
|
617
|
+
addEventListener(e, t, r) {
|
|
618
618
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
619
|
-
const
|
|
620
|
-
this.$$l_u.set(t,
|
|
619
|
+
const n = this.$$c.$on(e, t);
|
|
620
|
+
this.$$l_u.set(t, n);
|
|
621
621
|
}
|
|
622
|
-
super.addEventListener(e, t,
|
|
622
|
+
super.addEventListener(e, t, r);
|
|
623
623
|
}
|
|
624
|
-
removeEventListener(e, t,
|
|
625
|
-
if (super.removeEventListener(e, t,
|
|
626
|
-
const
|
|
627
|
-
|
|
624
|
+
removeEventListener(e, t, r) {
|
|
625
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
626
|
+
const n = this.$$l_u.get(t);
|
|
627
|
+
n && (n(), this.$$l_u.delete(t));
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
async connectedCallback() {
|
|
631
631
|
if (this.$$cn = !0, !this.$$c) {
|
|
632
632
|
let e = function(i) {
|
|
633
633
|
return () => {
|
|
634
|
-
let
|
|
634
|
+
let o;
|
|
635
635
|
return {
|
|
636
636
|
c: function() {
|
|
637
|
-
|
|
637
|
+
o = R("slot"), i !== "default" && X(o, "name", i);
|
|
638
638
|
},
|
|
639
639
|
/**
|
|
640
640
|
* @param {HTMLElement} target
|
|
641
641
|
* @param {HTMLElement} [anchor]
|
|
642
642
|
*/
|
|
643
643
|
m: function(l, u) {
|
|
644
|
-
V(l,
|
|
644
|
+
V(l, o, u);
|
|
645
645
|
},
|
|
646
646
|
d: function(l) {
|
|
647
|
-
l && $(
|
|
647
|
+
l && $(o);
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
};
|
|
651
651
|
};
|
|
652
652
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
653
653
|
return;
|
|
654
|
-
const t = {},
|
|
654
|
+
const t = {}, r = Vr(this);
|
|
655
655
|
for (const i of this.$$s)
|
|
656
|
-
i in
|
|
656
|
+
i in r && (t[i] = [e(i)]);
|
|
657
657
|
for (const i of this.attributes) {
|
|
658
|
-
const
|
|
659
|
-
|
|
658
|
+
const o = this.$$g_p(i.name);
|
|
659
|
+
o in this.$$d || (this.$$d[o] = Ee(o, i.value, this.$$p_d, "toProp"));
|
|
660
660
|
}
|
|
661
661
|
for (const i in this.$$p_d)
|
|
662
662
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -670,33 +670,33 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
|
-
const
|
|
673
|
+
const n = () => {
|
|
674
674
|
this.$$r = !0;
|
|
675
675
|
for (const i in this.$$p_d)
|
|
676
676
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
677
|
-
const
|
|
677
|
+
const o = Ee(
|
|
678
678
|
i,
|
|
679
679
|
this.$$d[i],
|
|
680
680
|
this.$$p_d,
|
|
681
681
|
"toAttribute"
|
|
682
682
|
);
|
|
683
|
-
|
|
683
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
684
684
|
}
|
|
685
685
|
this.$$r = !1;
|
|
686
686
|
};
|
|
687
|
-
this.$$c.$$.after_update.push(
|
|
687
|
+
this.$$c.$$.after_update.push(n), n();
|
|
688
688
|
for (const i in this.$$l)
|
|
689
|
-
for (const
|
|
690
|
-
const a = this.$$c.$on(i,
|
|
691
|
-
this.$$l_u.set(
|
|
689
|
+
for (const o of this.$$l[i]) {
|
|
690
|
+
const a = this.$$c.$on(i, o);
|
|
691
|
+
this.$$l_u.set(o, a);
|
|
692
692
|
}
|
|
693
693
|
this.$$l = {};
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
697
697
|
// and setting attributes through setAttribute etc, this is helpful
|
|
698
|
-
attributeChangedCallback(e, t,
|
|
699
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ee(e,
|
|
698
|
+
attributeChangedCallback(e, t, r) {
|
|
699
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ee(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
700
700
|
}
|
|
701
701
|
disconnectedCallback() {
|
|
702
702
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -709,11 +709,11 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
709
709
|
) || e;
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
|
-
function Ee(e, t,
|
|
713
|
-
const i =
|
|
714
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
712
|
+
function Ee(e, t, r, n) {
|
|
713
|
+
const i = r[e]?.type;
|
|
714
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
715
715
|
return t;
|
|
716
|
-
if (
|
|
716
|
+
if (n === "toAttribute")
|
|
717
717
|
switch (i) {
|
|
718
718
|
case "Object":
|
|
719
719
|
case "Array":
|
|
@@ -738,36 +738,36 @@ function Ee(e, t, n, r) {
|
|
|
738
738
|
return t;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
let a = class extends
|
|
741
|
+
function on(e, t, r, n, i, o) {
|
|
742
|
+
let a = class extends Qt {
|
|
743
743
|
constructor() {
|
|
744
|
-
super(e,
|
|
744
|
+
super(e, r, i), this.$$p_d = t;
|
|
745
745
|
}
|
|
746
746
|
static get observedAttributes() {
|
|
747
747
|
return Object.keys(t).map(
|
|
748
|
-
(
|
|
748
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
749
749
|
);
|
|
750
750
|
}
|
|
751
751
|
};
|
|
752
|
-
return Object.keys(t).forEach((
|
|
753
|
-
Object.defineProperty(a.prototype,
|
|
752
|
+
return Object.keys(t).forEach((s) => {
|
|
753
|
+
Object.defineProperty(a.prototype, s, {
|
|
754
754
|
get() {
|
|
755
|
-
return this.$$c &&
|
|
755
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
756
756
|
},
|
|
757
757
|
set(l) {
|
|
758
|
-
l = Ee(
|
|
758
|
+
l = Ee(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
759
759
|
}
|
|
760
760
|
});
|
|
761
|
-
}),
|
|
762
|
-
Object.defineProperty(a.prototype,
|
|
761
|
+
}), n.forEach((s) => {
|
|
762
|
+
Object.defineProperty(a.prototype, s, {
|
|
763
763
|
get() {
|
|
764
|
-
return this.$$c?.[
|
|
764
|
+
return this.$$c?.[s];
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
767
|
}), e.element = /** @type {any} */
|
|
768
768
|
a, a;
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class sn {
|
|
771
771
|
/**
|
|
772
772
|
* ### PRIVATE API
|
|
773
773
|
*
|
|
@@ -786,7 +786,7 @@ class ar {
|
|
|
786
786
|
$$set = void 0;
|
|
787
787
|
/** @returns {void} */
|
|
788
788
|
$destroy() {
|
|
789
|
-
|
|
789
|
+
tn(this, 1), this.$destroy = B;
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
792
792
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -794,13 +794,13 @@ class ar {
|
|
|
794
794
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
795
795
|
* @returns {() => void}
|
|
796
796
|
*/
|
|
797
|
-
$on(t,
|
|
798
|
-
if (!de(
|
|
797
|
+
$on(t, r) {
|
|
798
|
+
if (!de(r))
|
|
799
799
|
return B;
|
|
800
|
-
const
|
|
801
|
-
return
|
|
802
|
-
const i =
|
|
803
|
-
i !== -1 &&
|
|
800
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
801
|
+
return n.push(r), () => {
|
|
802
|
+
const i = n.indexOf(r);
|
|
803
|
+
i !== -1 && n.splice(i, 1);
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
@@ -808,98 +808,98 @@ class ar {
|
|
|
808
808
|
* @returns {void}
|
|
809
809
|
*/
|
|
810
810
|
$set(t) {
|
|
811
|
-
this.$$set && !
|
|
811
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
const
|
|
815
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
814
|
+
const an = "4";
|
|
815
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(an);
|
|
816
816
|
var Xe = function(e, t) {
|
|
817
|
-
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
818
|
-
|
|
819
|
-
} || function(
|
|
820
|
-
for (var i in
|
|
817
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
818
|
+
r.__proto__ = n;
|
|
819
|
+
} || function(r, n) {
|
|
820
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
821
821
|
}, Xe(e, t);
|
|
822
822
|
};
|
|
823
823
|
function F(e, t) {
|
|
824
824
|
if (typeof t != "function" && t !== null)
|
|
825
825
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
826
826
|
Xe(e, t);
|
|
827
|
-
function
|
|
827
|
+
function r() {
|
|
828
828
|
this.constructor = e;
|
|
829
829
|
}
|
|
830
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
830
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
831
831
|
}
|
|
832
832
|
var v = function() {
|
|
833
833
|
return v = Object.assign || function(t) {
|
|
834
|
-
for (var
|
|
835
|
-
|
|
836
|
-
for (var
|
|
834
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
835
|
+
r = arguments[n];
|
|
836
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
837
837
|
}
|
|
838
838
|
return t;
|
|
839
839
|
}, v.apply(this, arguments);
|
|
840
840
|
};
|
|
841
|
-
function
|
|
842
|
-
var
|
|
843
|
-
for (var
|
|
841
|
+
function un(e, t) {
|
|
842
|
+
var r = {};
|
|
843
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
844
844
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
845
|
-
for (var i = 0,
|
|
846
|
-
t.indexOf(
|
|
847
|
-
return
|
|
845
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
846
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
847
|
+
return r;
|
|
848
848
|
}
|
|
849
849
|
function We(e) {
|
|
850
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
851
|
-
if (
|
|
850
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
851
|
+
if (r) return r.call(e);
|
|
852
852
|
if (e && typeof e.length == "number") return {
|
|
853
853
|
next: function() {
|
|
854
|
-
return e &&
|
|
854
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
857
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
858
858
|
}
|
|
859
859
|
function ze(e, t) {
|
|
860
|
-
var
|
|
861
|
-
if (!
|
|
862
|
-
var
|
|
860
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
861
|
+
if (!r) return e;
|
|
862
|
+
var n = r.call(e), i, o = [], a;
|
|
863
863
|
try {
|
|
864
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
865
|
-
} catch (
|
|
866
|
-
a = { error:
|
|
864
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
865
|
+
} catch (s) {
|
|
866
|
+
a = { error: s };
|
|
867
867
|
} finally {
|
|
868
868
|
try {
|
|
869
|
-
i && !i.done && (
|
|
869
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
870
870
|
} finally {
|
|
871
871
|
if (a) throw a.error;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
|
-
return
|
|
874
|
+
return o;
|
|
875
875
|
}
|
|
876
|
-
function K(e, t,
|
|
877
|
-
if (
|
|
878
|
-
(
|
|
879
|
-
return e.concat(
|
|
876
|
+
function K(e, t, r) {
|
|
877
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
878
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
879
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
880
880
|
}
|
|
881
881
|
function G(e) {
|
|
882
882
|
return typeof e == "function";
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
var t = function(
|
|
886
|
-
Error.call(
|
|
887
|
-
},
|
|
888
|
-
return
|
|
889
|
-
}
|
|
890
|
-
var $e =
|
|
891
|
-
return function(
|
|
892
|
-
e(this), this.message =
|
|
893
|
-
` +
|
|
894
|
-
return i + 1 + ") " +
|
|
884
|
+
function Jt(e) {
|
|
885
|
+
var t = function(n) {
|
|
886
|
+
Error.call(n), n.stack = new Error().stack;
|
|
887
|
+
}, r = e(t);
|
|
888
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
889
|
+
}
|
|
890
|
+
var $e = Jt(function(e) {
|
|
891
|
+
return function(r) {
|
|
892
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
893
|
+
` + r.map(function(n, i) {
|
|
894
|
+
return i + 1 + ") " + n.toString();
|
|
895
895
|
}).join(`
|
|
896
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
896
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
897
897
|
};
|
|
898
898
|
});
|
|
899
899
|
function qe(e, t) {
|
|
900
900
|
if (e) {
|
|
901
|
-
var
|
|
902
|
-
0 <=
|
|
901
|
+
var r = e.indexOf(t);
|
|
902
|
+
0 <= r && e.splice(r, 1);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
var Oe = function() {
|
|
@@ -907,14 +907,14 @@ var Oe = function() {
|
|
|
907
907
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
908
908
|
}
|
|
909
909
|
return e.prototype.unsubscribe = function() {
|
|
910
|
-
var t,
|
|
910
|
+
var t, r, n, i, o;
|
|
911
911
|
if (!this.closed) {
|
|
912
912
|
this.closed = !0;
|
|
913
913
|
var a = this._parentage;
|
|
914
914
|
if (a)
|
|
915
915
|
if (this._parentage = null, Array.isArray(a))
|
|
916
916
|
try {
|
|
917
|
-
for (var
|
|
917
|
+
for (var s = We(a), l = s.next(); !l.done; l = s.next()) {
|
|
918
918
|
var u = l.value;
|
|
919
919
|
u.remove(this);
|
|
920
920
|
}
|
|
@@ -922,7 +922,7 @@ var Oe = function() {
|
|
|
922
922
|
t = { error: m };
|
|
923
923
|
} finally {
|
|
924
924
|
try {
|
|
925
|
-
l && !l.done && (
|
|
925
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
926
926
|
} finally {
|
|
927
927
|
if (t) throw t.error;
|
|
928
928
|
}
|
|
@@ -934,117 +934,113 @@ var Oe = function() {
|
|
|
934
934
|
try {
|
|
935
935
|
h();
|
|
936
936
|
} catch (m) {
|
|
937
|
-
|
|
937
|
+
o = m instanceof $e ? m.errors : [m];
|
|
938
938
|
}
|
|
939
|
-
var
|
|
940
|
-
if (
|
|
939
|
+
var c = this._finalizers;
|
|
940
|
+
if (c) {
|
|
941
941
|
this._finalizers = null;
|
|
942
942
|
try {
|
|
943
|
-
for (var
|
|
943
|
+
for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
|
|
944
944
|
var d = p.value;
|
|
945
945
|
try {
|
|
946
|
-
|
|
946
|
+
pt(d);
|
|
947
947
|
} catch (m) {
|
|
948
|
-
|
|
948
|
+
o = o ?? [], m instanceof $e ? o = K(K([], ze(o)), ze(m.errors)) : o.push(m);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
} catch (m) {
|
|
952
|
-
|
|
952
|
+
n = { error: m };
|
|
953
953
|
} finally {
|
|
954
954
|
try {
|
|
955
|
-
p && !p.done && (i =
|
|
955
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
956
956
|
} finally {
|
|
957
|
-
if (
|
|
957
|
+
if (n) throw n.error;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
if (
|
|
962
|
-
throw new $e(
|
|
961
|
+
if (o)
|
|
962
|
+
throw new $e(o);
|
|
963
963
|
}
|
|
964
964
|
}, e.prototype.add = function(t) {
|
|
965
|
-
var
|
|
965
|
+
var r;
|
|
966
966
|
if (t && t !== this)
|
|
967
967
|
if (this.closed)
|
|
968
|
-
|
|
968
|
+
pt(t);
|
|
969
969
|
else {
|
|
970
970
|
if (t instanceof e) {
|
|
971
971
|
if (t.closed || t._hasParent(this))
|
|
972
972
|
return;
|
|
973
973
|
t._addParent(this);
|
|
974
974
|
}
|
|
975
|
-
(this._finalizers = (
|
|
975
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
976
976
|
}
|
|
977
977
|
}, e.prototype._hasParent = function(t) {
|
|
978
|
-
var
|
|
979
|
-
return
|
|
978
|
+
var r = this._parentage;
|
|
979
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
980
980
|
}, e.prototype._addParent = function(t) {
|
|
981
|
-
var
|
|
982
|
-
this._parentage = Array.isArray(
|
|
981
|
+
var r = this._parentage;
|
|
982
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
983
983
|
}, e.prototype._removeParent = function(t) {
|
|
984
|
-
var
|
|
985
|
-
|
|
984
|
+
var r = this._parentage;
|
|
985
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
986
986
|
}, e.prototype.remove = function(t) {
|
|
987
|
-
var
|
|
988
|
-
|
|
987
|
+
var r = this._finalizers;
|
|
988
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
989
989
|
}, e.EMPTY = function() {
|
|
990
990
|
var t = new e();
|
|
991
991
|
return t.closed = !0, t;
|
|
992
992
|
}(), e;
|
|
993
|
-
}(),
|
|
994
|
-
function
|
|
993
|
+
}(), Yt = Oe.EMPTY;
|
|
994
|
+
function Kt(e) {
|
|
995
995
|
return e instanceof Oe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function pt(e) {
|
|
998
998
|
G(e) ? e() : e.unsubscribe();
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
Promise: void 0,
|
|
1004
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
1005
|
-
useDeprecatedNextContext: !1
|
|
1006
|
-
}, fr = {
|
|
1000
|
+
var ln = {
|
|
1001
|
+
Promise: void 0
|
|
1002
|
+
}, hn = {
|
|
1007
1003
|
setTimeout: function(e, t) {
|
|
1008
|
-
for (var
|
|
1009
|
-
n
|
|
1010
|
-
return setTimeout.apply(void 0, K([e, t], ze(
|
|
1004
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
1005
|
+
r[n - 2] = arguments[n];
|
|
1006
|
+
return setTimeout.apply(void 0, K([e, t], ze(r)));
|
|
1011
1007
|
},
|
|
1012
1008
|
clearTimeout: function(e) {
|
|
1013
1009
|
return clearTimeout(e);
|
|
1014
1010
|
},
|
|
1015
1011
|
delegate: void 0
|
|
1016
1012
|
};
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1013
|
+
function cn(e) {
|
|
1014
|
+
hn.setTimeout(function() {
|
|
1019
1015
|
throw e;
|
|
1020
1016
|
});
|
|
1021
1017
|
}
|
|
1022
|
-
function
|
|
1018
|
+
function mt() {
|
|
1023
1019
|
}
|
|
1024
1020
|
function xe(e) {
|
|
1025
1021
|
e();
|
|
1026
1022
|
}
|
|
1027
|
-
var
|
|
1023
|
+
var er = function(e) {
|
|
1028
1024
|
F(t, e);
|
|
1029
|
-
function t(
|
|
1030
|
-
var
|
|
1031
|
-
return
|
|
1025
|
+
function t(r) {
|
|
1026
|
+
var n = e.call(this) || this;
|
|
1027
|
+
return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = pn, n;
|
|
1032
1028
|
}
|
|
1033
|
-
return t.create = function(
|
|
1034
|
-
return new Ze(
|
|
1035
|
-
}, t.prototype.next = function(
|
|
1036
|
-
this.isStopped || this._next(
|
|
1037
|
-
}, t.prototype.error = function(
|
|
1038
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
1029
|
+
return t.create = function(r, n, i) {
|
|
1030
|
+
return new Ze(r, n, i);
|
|
1031
|
+
}, t.prototype.next = function(r) {
|
|
1032
|
+
this.isStopped || this._next(r);
|
|
1033
|
+
}, t.prototype.error = function(r) {
|
|
1034
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
1039
1035
|
}, t.prototype.complete = function() {
|
|
1040
1036
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
1041
1037
|
}, t.prototype.unsubscribe = function() {
|
|
1042
1038
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
1043
|
-
}, t.prototype._next = function(
|
|
1044
|
-
this.destination.next(
|
|
1045
|
-
}, t.prototype._error = function(
|
|
1039
|
+
}, t.prototype._next = function(r) {
|
|
1040
|
+
this.destination.next(r);
|
|
1041
|
+
}, t.prototype._error = function(r) {
|
|
1046
1042
|
try {
|
|
1047
|
-
this.destination.error(
|
|
1043
|
+
this.destination.error(r);
|
|
1048
1044
|
} finally {
|
|
1049
1045
|
this.unsubscribe();
|
|
1050
1046
|
}
|
|
@@ -1055,25 +1051,25 @@ var tn = function(e) {
|
|
|
1055
1051
|
this.unsubscribe();
|
|
1056
1052
|
}
|
|
1057
1053
|
}, t;
|
|
1058
|
-
}(Oe),
|
|
1054
|
+
}(Oe), fn = function() {
|
|
1059
1055
|
function e(t) {
|
|
1060
1056
|
this.partialObserver = t;
|
|
1061
1057
|
}
|
|
1062
1058
|
return e.prototype.next = function(t) {
|
|
1063
|
-
var
|
|
1064
|
-
if (
|
|
1059
|
+
var r = this.partialObserver;
|
|
1060
|
+
if (r.next)
|
|
1065
1061
|
try {
|
|
1066
|
-
|
|
1067
|
-
} catch (
|
|
1068
|
-
ge(
|
|
1062
|
+
r.next(t);
|
|
1063
|
+
} catch (n) {
|
|
1064
|
+
ge(n);
|
|
1069
1065
|
}
|
|
1070
1066
|
}, e.prototype.error = function(t) {
|
|
1071
|
-
var
|
|
1072
|
-
if (
|
|
1067
|
+
var r = this.partialObserver;
|
|
1068
|
+
if (r.error)
|
|
1073
1069
|
try {
|
|
1074
|
-
|
|
1075
|
-
} catch (
|
|
1076
|
-
ge(
|
|
1070
|
+
r.error(t);
|
|
1071
|
+
} catch (n) {
|
|
1072
|
+
ge(n);
|
|
1077
1073
|
}
|
|
1078
1074
|
else
|
|
1079
1075
|
ge(t);
|
|
@@ -1082,266 +1078,266 @@ var tn = function(e) {
|
|
|
1082
1078
|
if (t.complete)
|
|
1083
1079
|
try {
|
|
1084
1080
|
t.complete();
|
|
1085
|
-
} catch (
|
|
1086
|
-
ge(
|
|
1081
|
+
} catch (r) {
|
|
1082
|
+
ge(r);
|
|
1087
1083
|
}
|
|
1088
1084
|
}, e;
|
|
1089
1085
|
}(), Ze = function(e) {
|
|
1090
1086
|
F(t, e);
|
|
1091
|
-
function t(
|
|
1092
|
-
var
|
|
1093
|
-
return G(
|
|
1094
|
-
next:
|
|
1095
|
-
error:
|
|
1087
|
+
function t(r, n, i) {
|
|
1088
|
+
var o = e.call(this) || this, a;
|
|
1089
|
+
return G(r) || !r ? a = {
|
|
1090
|
+
next: r ?? void 0,
|
|
1091
|
+
error: n ?? void 0,
|
|
1096
1092
|
complete: i ?? void 0
|
|
1097
|
-
} : a =
|
|
1093
|
+
} : a = r, o.destination = new fn(a), o;
|
|
1098
1094
|
}
|
|
1099
1095
|
return t;
|
|
1100
|
-
}(
|
|
1096
|
+
}(er);
|
|
1101
1097
|
function ge(e) {
|
|
1102
|
-
|
|
1098
|
+
cn(e);
|
|
1103
1099
|
}
|
|
1104
|
-
function
|
|
1100
|
+
function dn(e) {
|
|
1105
1101
|
throw e;
|
|
1106
1102
|
}
|
|
1107
|
-
var
|
|
1103
|
+
var pn = {
|
|
1108
1104
|
closed: !0,
|
|
1109
|
-
next:
|
|
1110
|
-
error:
|
|
1111
|
-
complete:
|
|
1112
|
-
},
|
|
1105
|
+
next: mt,
|
|
1106
|
+
error: dn,
|
|
1107
|
+
complete: mt
|
|
1108
|
+
}, mn = function() {
|
|
1113
1109
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1114
1110
|
}();
|
|
1115
|
-
function
|
|
1111
|
+
function bn(e) {
|
|
1116
1112
|
return e;
|
|
1117
1113
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return e.length === 0 ?
|
|
1120
|
-
return e.reduce(function(
|
|
1121
|
-
return i(
|
|
1122
|
-
},
|
|
1114
|
+
function yn(e) {
|
|
1115
|
+
return e.length === 0 ? bn : e.length === 1 ? e[0] : function(r) {
|
|
1116
|
+
return e.reduce(function(n, i) {
|
|
1117
|
+
return i(n);
|
|
1118
|
+
}, r);
|
|
1123
1119
|
};
|
|
1124
1120
|
}
|
|
1125
|
-
var
|
|
1121
|
+
var bt = function() {
|
|
1126
1122
|
function e(t) {
|
|
1127
1123
|
t && (this._subscribe = t);
|
|
1128
1124
|
}
|
|
1129
1125
|
return e.prototype.lift = function(t) {
|
|
1130
|
-
var
|
|
1131
|
-
return
|
|
1132
|
-
}, e.prototype.subscribe = function(t,
|
|
1133
|
-
var i = this,
|
|
1126
|
+
var r = new e();
|
|
1127
|
+
return r.source = this, r.operator = t, r;
|
|
1128
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1129
|
+
var i = this, o = _n(t) ? t : new Ze(t, r, n);
|
|
1134
1130
|
return xe(function() {
|
|
1135
|
-
var a = i,
|
|
1136
|
-
|
|
1137
|
-
}),
|
|
1131
|
+
var a = i, s = a.operator, l = a.source;
|
|
1132
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1133
|
+
}), o;
|
|
1138
1134
|
}, e.prototype._trySubscribe = function(t) {
|
|
1139
1135
|
try {
|
|
1140
1136
|
return this._subscribe(t);
|
|
1141
|
-
} catch (
|
|
1142
|
-
t.error(
|
|
1137
|
+
} catch (r) {
|
|
1138
|
+
t.error(r);
|
|
1143
1139
|
}
|
|
1144
|
-
}, e.prototype.forEach = function(t,
|
|
1145
|
-
var
|
|
1146
|
-
return
|
|
1140
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1141
|
+
var n = this;
|
|
1142
|
+
return r = yt(r), new r(function(i, o) {
|
|
1147
1143
|
var a = new Ze({
|
|
1148
|
-
next: function(
|
|
1144
|
+
next: function(s) {
|
|
1149
1145
|
try {
|
|
1150
|
-
t(
|
|
1146
|
+
t(s);
|
|
1151
1147
|
} catch (l) {
|
|
1152
|
-
|
|
1148
|
+
o(l), a.unsubscribe();
|
|
1153
1149
|
}
|
|
1154
1150
|
},
|
|
1155
|
-
error:
|
|
1151
|
+
error: o,
|
|
1156
1152
|
complete: i
|
|
1157
1153
|
});
|
|
1158
|
-
|
|
1154
|
+
n.subscribe(a);
|
|
1159
1155
|
});
|
|
1160
1156
|
}, e.prototype._subscribe = function(t) {
|
|
1161
|
-
var
|
|
1162
|
-
return (
|
|
1163
|
-
}, e.prototype[
|
|
1157
|
+
var r;
|
|
1158
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1159
|
+
}, e.prototype[mn] = function() {
|
|
1164
1160
|
return this;
|
|
1165
1161
|
}, e.prototype.pipe = function() {
|
|
1166
|
-
for (var t = [],
|
|
1167
|
-
t[
|
|
1168
|
-
return
|
|
1162
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1163
|
+
t[r] = arguments[r];
|
|
1164
|
+
return yn(t)(this);
|
|
1169
1165
|
}, e.prototype.toPromise = function(t) {
|
|
1170
|
-
var
|
|
1171
|
-
return t =
|
|
1172
|
-
var
|
|
1173
|
-
|
|
1174
|
-
return
|
|
1166
|
+
var r = this;
|
|
1167
|
+
return t = yt(t), new t(function(n, i) {
|
|
1168
|
+
var o;
|
|
1169
|
+
r.subscribe(function(a) {
|
|
1170
|
+
return o = a;
|
|
1175
1171
|
}, function(a) {
|
|
1176
1172
|
return i(a);
|
|
1177
1173
|
}, function() {
|
|
1178
|
-
return
|
|
1174
|
+
return n(o);
|
|
1179
1175
|
});
|
|
1180
1176
|
});
|
|
1181
1177
|
}, e.create = function(t) {
|
|
1182
1178
|
return new e(t);
|
|
1183
1179
|
}, e;
|
|
1184
1180
|
}();
|
|
1185
|
-
function
|
|
1181
|
+
function yt(e) {
|
|
1186
1182
|
var t;
|
|
1187
|
-
return (t = e ??
|
|
1183
|
+
return (t = e ?? ln.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1188
1184
|
}
|
|
1189
|
-
function
|
|
1185
|
+
function gn(e) {
|
|
1190
1186
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
1191
1187
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e && e instanceof
|
|
1188
|
+
function _n(e) {
|
|
1189
|
+
return e && e instanceof er || gn(e) && Kt(e);
|
|
1194
1190
|
}
|
|
1195
|
-
var
|
|
1191
|
+
var vn = Jt(function(e) {
|
|
1196
1192
|
return function() {
|
|
1197
1193
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1198
1194
|
};
|
|
1199
|
-
}),
|
|
1195
|
+
}), tr = function(e) {
|
|
1200
1196
|
F(t, e);
|
|
1201
1197
|
function t() {
|
|
1202
|
-
var
|
|
1203
|
-
return
|
|
1198
|
+
var r = e.call(this) || this;
|
|
1199
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1204
1200
|
}
|
|
1205
|
-
return t.prototype.lift = function(
|
|
1206
|
-
var
|
|
1207
|
-
return
|
|
1201
|
+
return t.prototype.lift = function(r) {
|
|
1202
|
+
var n = new gt(this, this);
|
|
1203
|
+
return n.operator = r, n;
|
|
1208
1204
|
}, t.prototype._throwIfClosed = function() {
|
|
1209
1205
|
if (this.closed)
|
|
1210
|
-
throw new
|
|
1211
|
-
}, t.prototype.next = function(
|
|
1212
|
-
var
|
|
1206
|
+
throw new vn();
|
|
1207
|
+
}, t.prototype.next = function(r) {
|
|
1208
|
+
var n = this;
|
|
1213
1209
|
xe(function() {
|
|
1214
|
-
var i,
|
|
1215
|
-
if (
|
|
1216
|
-
|
|
1210
|
+
var i, o;
|
|
1211
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1212
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1217
1213
|
try {
|
|
1218
|
-
for (var a = We(
|
|
1219
|
-
var l =
|
|
1220
|
-
l.next(
|
|
1214
|
+
for (var a = We(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1215
|
+
var l = s.value;
|
|
1216
|
+
l.next(r);
|
|
1221
1217
|
}
|
|
1222
1218
|
} catch (u) {
|
|
1223
1219
|
i = { error: u };
|
|
1224
1220
|
} finally {
|
|
1225
1221
|
try {
|
|
1226
|
-
|
|
1222
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
1227
1223
|
} finally {
|
|
1228
1224
|
if (i) throw i.error;
|
|
1229
1225
|
}
|
|
1230
1226
|
}
|
|
1231
1227
|
}
|
|
1232
1228
|
});
|
|
1233
|
-
}, t.prototype.error = function(
|
|
1234
|
-
var
|
|
1229
|
+
}, t.prototype.error = function(r) {
|
|
1230
|
+
var n = this;
|
|
1235
1231
|
xe(function() {
|
|
1236
|
-
if (
|
|
1237
|
-
|
|
1238
|
-
for (var i =
|
|
1239
|
-
i.shift().error(
|
|
1232
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1233
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1234
|
+
for (var i = n.observers; i.length; )
|
|
1235
|
+
i.shift().error(r);
|
|
1240
1236
|
}
|
|
1241
1237
|
});
|
|
1242
1238
|
}, t.prototype.complete = function() {
|
|
1243
|
-
var
|
|
1239
|
+
var r = this;
|
|
1244
1240
|
xe(function() {
|
|
1245
|
-
if (
|
|
1246
|
-
|
|
1247
|
-
for (var
|
|
1248
|
-
|
|
1241
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1242
|
+
r.isStopped = !0;
|
|
1243
|
+
for (var n = r.observers; n.length; )
|
|
1244
|
+
n.shift().complete();
|
|
1249
1245
|
}
|
|
1250
1246
|
});
|
|
1251
1247
|
}, t.prototype.unsubscribe = function() {
|
|
1252
1248
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1253
1249
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1254
1250
|
get: function() {
|
|
1255
|
-
var
|
|
1256
|
-
return ((
|
|
1251
|
+
var r;
|
|
1252
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1257
1253
|
},
|
|
1258
1254
|
enumerable: !1,
|
|
1259
1255
|
configurable: !0
|
|
1260
|
-
}), t.prototype._trySubscribe = function(
|
|
1261
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1262
|
-
}, t.prototype._subscribe = function(
|
|
1263
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1264
|
-
}, t.prototype._innerSubscribe = function(
|
|
1265
|
-
var
|
|
1266
|
-
return
|
|
1267
|
-
|
|
1256
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1257
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1258
|
+
}, t.prototype._subscribe = function(r) {
|
|
1259
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1260
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1261
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1262
|
+
return o || a ? Yt : (this.currentObservers = null, s.push(r), new Oe(function() {
|
|
1263
|
+
n.currentObservers = null, qe(s, r);
|
|
1268
1264
|
}));
|
|
1269
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1270
|
-
var
|
|
1271
|
-
i ?
|
|
1265
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1266
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1267
|
+
i ? r.error(o) : a && r.complete();
|
|
1272
1268
|
}, t.prototype.asObservable = function() {
|
|
1273
|
-
var
|
|
1274
|
-
return
|
|
1275
|
-
}, t.create = function(
|
|
1276
|
-
return new
|
|
1269
|
+
var r = new bt();
|
|
1270
|
+
return r.source = this, r;
|
|
1271
|
+
}, t.create = function(r, n) {
|
|
1272
|
+
return new gt(r, n);
|
|
1277
1273
|
}, t;
|
|
1278
|
-
}(
|
|
1274
|
+
}(bt), gt = function(e) {
|
|
1279
1275
|
F(t, e);
|
|
1280
|
-
function t(
|
|
1276
|
+
function t(r, n) {
|
|
1281
1277
|
var i = e.call(this) || this;
|
|
1282
|
-
return i.destination =
|
|
1278
|
+
return i.destination = r, i.source = n, i;
|
|
1283
1279
|
}
|
|
1284
|
-
return t.prototype.next = function(
|
|
1285
|
-
var
|
|
1286
|
-
(i = (
|
|
1287
|
-
}, t.prototype.error = function(
|
|
1288
|
-
var
|
|
1289
|
-
(i = (
|
|
1280
|
+
return t.prototype.next = function(r) {
|
|
1281
|
+
var n, i;
|
|
1282
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1283
|
+
}, t.prototype.error = function(r) {
|
|
1284
|
+
var n, i;
|
|
1285
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1290
1286
|
}, t.prototype.complete = function() {
|
|
1291
|
-
var
|
|
1292
|
-
(
|
|
1293
|
-
}, t.prototype._subscribe = function(
|
|
1294
|
-
var
|
|
1295
|
-
return (i = (
|
|
1287
|
+
var r, n;
|
|
1288
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1289
|
+
}, t.prototype._subscribe = function(r) {
|
|
1290
|
+
var n, i;
|
|
1291
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
|
|
1296
1292
|
}, t;
|
|
1297
|
-
}(
|
|
1293
|
+
}(tr), rr = {
|
|
1298
1294
|
now: function() {
|
|
1299
|
-
return (
|
|
1295
|
+
return (rr.delegate || Date).now();
|
|
1300
1296
|
},
|
|
1301
1297
|
delegate: void 0
|
|
1302
|
-
},
|
|
1298
|
+
}, En = function(e) {
|
|
1303
1299
|
F(t, e);
|
|
1304
|
-
function t(
|
|
1305
|
-
|
|
1306
|
-
var
|
|
1307
|
-
return
|
|
1300
|
+
function t(r, n, i) {
|
|
1301
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = rr);
|
|
1302
|
+
var o = e.call(this) || this;
|
|
1303
|
+
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;
|
|
1308
1304
|
}
|
|
1309
|
-
return t.prototype.next = function(
|
|
1310
|
-
var
|
|
1311
|
-
i || (
|
|
1312
|
-
}, t.prototype._subscribe = function(
|
|
1305
|
+
return t.prototype.next = function(r) {
|
|
1306
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1307
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1308
|
+
}, t.prototype._subscribe = function(r) {
|
|
1313
1309
|
this._throwIfClosed(), this._trimBuffer();
|
|
1314
|
-
for (var
|
|
1315
|
-
|
|
1316
|
-
return this._checkFinalizedStatuses(
|
|
1310
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1311
|
+
r.next(s[l]);
|
|
1312
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1317
1313
|
}, t.prototype._trimBuffer = function() {
|
|
1318
|
-
var
|
|
1319
|
-
if (
|
|
1320
|
-
for (var l = i.now(), u = 0, h = 1; h <
|
|
1314
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1315
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1316
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1321
1317
|
u = h;
|
|
1322
|
-
u &&
|
|
1318
|
+
u && o.splice(0, u + 1);
|
|
1323
1319
|
}
|
|
1324
1320
|
}, t;
|
|
1325
|
-
}(
|
|
1326
|
-
const
|
|
1327
|
-
if (
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1321
|
+
}(tr);
|
|
1322
|
+
const _t = [], vt = {}, xn = (e, t = 0) => {
|
|
1323
|
+
if (_t.indexOf(e) == -1) {
|
|
1324
|
+
const r = new En(t);
|
|
1325
|
+
vt[e] = r, _t.push(e);
|
|
1330
1326
|
}
|
|
1331
|
-
return
|
|
1327
|
+
return vt[e];
|
|
1332
1328
|
}, Z = [];
|
|
1333
|
-
function
|
|
1329
|
+
function wn(e, t) {
|
|
1334
1330
|
return {
|
|
1335
1331
|
subscribe: Ie(e, t).subscribe
|
|
1336
1332
|
};
|
|
1337
1333
|
}
|
|
1338
1334
|
function Ie(e, t = B) {
|
|
1339
|
-
let
|
|
1340
|
-
const
|
|
1341
|
-
function i(
|
|
1342
|
-
if (
|
|
1335
|
+
let r;
|
|
1336
|
+
const n = /* @__PURE__ */ new Set();
|
|
1337
|
+
function i(s) {
|
|
1338
|
+
if (Gt(e, s) && (e = s, r)) {
|
|
1343
1339
|
const l = !Z.length;
|
|
1344
|
-
for (const u of
|
|
1340
|
+
for (const u of n)
|
|
1345
1341
|
u[1](), Z.push(u, e);
|
|
1346
1342
|
if (l) {
|
|
1347
1343
|
for (let u = 0; u < Z.length; u += 2)
|
|
@@ -1350,156 +1346,153 @@ function Ie(e, t = B) {
|
|
|
1350
1346
|
}
|
|
1351
1347
|
}
|
|
1352
1348
|
}
|
|
1353
|
-
function s
|
|
1354
|
-
i(
|
|
1349
|
+
function o(s) {
|
|
1350
|
+
i(s(e));
|
|
1355
1351
|
}
|
|
1356
|
-
function a(
|
|
1357
|
-
const u = [
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1352
|
+
function a(s, l = B) {
|
|
1353
|
+
const u = [s, l];
|
|
1354
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), s(e), () => {
|
|
1355
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1360
1356
|
};
|
|
1361
1357
|
}
|
|
1362
|
-
return { set: i, update:
|
|
1358
|
+
return { set: i, update: o, subscribe: a };
|
|
1363
1359
|
}
|
|
1364
|
-
function ie(e, t,
|
|
1365
|
-
const
|
|
1360
|
+
function ie(e, t, r) {
|
|
1361
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1366
1362
|
if (!i.every(Boolean))
|
|
1367
1363
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1368
|
-
const
|
|
1369
|
-
return
|
|
1364
|
+
const o = t.length < 2;
|
|
1365
|
+
return wn(r, (a, s) => {
|
|
1370
1366
|
let l = !1;
|
|
1371
1367
|
const u = [];
|
|
1372
|
-
let h = 0,
|
|
1373
|
-
const
|
|
1368
|
+
let h = 0, c = B;
|
|
1369
|
+
const f = () => {
|
|
1374
1370
|
if (h)
|
|
1375
1371
|
return;
|
|
1376
|
-
|
|
1377
|
-
const d = t(
|
|
1378
|
-
|
|
1372
|
+
c();
|
|
1373
|
+
const d = t(n ? u[0] : u, a, s);
|
|
1374
|
+
o ? a(d) : c = de(d) ? d : B;
|
|
1379
1375
|
}, p = i.map(
|
|
1380
|
-
(d, m) =>
|
|
1376
|
+
(d, m) => Ft(
|
|
1381
1377
|
d,
|
|
1382
1378
|
(E) => {
|
|
1383
|
-
u[m] = E, h &= ~(1 << m), l &&
|
|
1379
|
+
u[m] = E, h &= ~(1 << m), l && f();
|
|
1384
1380
|
},
|
|
1385
1381
|
() => {
|
|
1386
1382
|
h |= 1 << m;
|
|
1387
1383
|
}
|
|
1388
1384
|
)
|
|
1389
1385
|
);
|
|
1390
|
-
return l = !0,
|
|
1391
|
-
k(p),
|
|
1386
|
+
return l = !0, f(), function() {
|
|
1387
|
+
k(p), c(), l = !1;
|
|
1392
1388
|
};
|
|
1393
1389
|
});
|
|
1394
1390
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1391
|
+
function Sn(e) {
|
|
1392
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1397
1393
|
}
|
|
1398
|
-
var
|
|
1399
|
-
return
|
|
1394
|
+
var Tn = function(t) {
|
|
1395
|
+
return Hn(t) && !Pn(t);
|
|
1400
1396
|
};
|
|
1401
|
-
function
|
|
1397
|
+
function Hn(e) {
|
|
1402
1398
|
return !!e && typeof e == "object";
|
|
1403
1399
|
}
|
|
1404
|
-
function
|
|
1400
|
+
function Pn(e) {
|
|
1405
1401
|
var t = Object.prototype.toString.call(e);
|
|
1406
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1402
|
+
return t === "[object RegExp]" || t === "[object Date]" || On(e);
|
|
1407
1403
|
}
|
|
1408
|
-
var
|
|
1409
|
-
function
|
|
1410
|
-
return e.$$typeof ===
|
|
1404
|
+
var An = typeof Symbol == "function" && Symbol.for, Bn = An ? Symbol.for("react.element") : 60103;
|
|
1405
|
+
function On(e) {
|
|
1406
|
+
return e.$$typeof === Bn;
|
|
1411
1407
|
}
|
|
1412
|
-
function
|
|
1408
|
+
function In(e) {
|
|
1413
1409
|
return Array.isArray(e) ? [] : {};
|
|
1414
1410
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
|
1411
|
+
function ce(e, t) {
|
|
1412
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(In(e), e, t) : e;
|
|
1417
1413
|
}
|
|
1418
|
-
function
|
|
1419
|
-
return e.concat(t).map(function(
|
|
1420
|
-
return
|
|
1414
|
+
function Cn(e, t, r) {
|
|
1415
|
+
return e.concat(t).map(function(n) {
|
|
1416
|
+
return ce(n, r);
|
|
1421
1417
|
});
|
|
1422
1418
|
}
|
|
1423
|
-
function
|
|
1419
|
+
function Ln(e, t) {
|
|
1424
1420
|
if (!t.customMerge)
|
|
1425
1421
|
return ee;
|
|
1426
|
-
var
|
|
1427
|
-
return typeof
|
|
1422
|
+
var r = t.customMerge(e);
|
|
1423
|
+
return typeof r == "function" ? r : ee;
|
|
1428
1424
|
}
|
|
1429
|
-
function
|
|
1425
|
+
function Nn(e) {
|
|
1430
1426
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1431
1427
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1432
1428
|
}) : [];
|
|
1433
1429
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return Object.keys(e).concat(
|
|
1430
|
+
function Et(e) {
|
|
1431
|
+
return Object.keys(e).concat(Nn(e));
|
|
1436
1432
|
}
|
|
1437
|
-
function
|
|
1433
|
+
function nr(e, t) {
|
|
1438
1434
|
try {
|
|
1439
1435
|
return t in e;
|
|
1440
1436
|
} catch {
|
|
1441
1437
|
return !1;
|
|
1442
1438
|
}
|
|
1443
1439
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return
|
|
1440
|
+
function Mn(e, t) {
|
|
1441
|
+
return nr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1446
1442
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var
|
|
1449
|
-
return
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
1452
|
-
|
|
1453
|
-
}),
|
|
1454
|
-
}
|
|
1455
|
-
function ee(e, t,
|
|
1456
|
-
|
|
1457
|
-
var
|
|
1458
|
-
return
|
|
1459
|
-
}
|
|
1460
|
-
ee.all = function(t,
|
|
1443
|
+
function Rn(e, t, r) {
|
|
1444
|
+
var n = {};
|
|
1445
|
+
return r.isMergeableObject(e) && Et(e).forEach(function(i) {
|
|
1446
|
+
n[i] = ce(e[i], r);
|
|
1447
|
+
}), Et(t).forEach(function(i) {
|
|
1448
|
+
Mn(e, i) || (nr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ln(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1449
|
+
}), n;
|
|
1450
|
+
}
|
|
1451
|
+
function ee(e, t, r) {
|
|
1452
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cn, r.isMergeableObject = r.isMergeableObject || Tn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1453
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1454
|
+
return o ? n ? r.arrayMerge(e, t, r) : Rn(e, t, r) : ce(t, r);
|
|
1455
|
+
}
|
|
1456
|
+
ee.all = function(t, r) {
|
|
1461
1457
|
if (!Array.isArray(t))
|
|
1462
1458
|
throw new Error("first argument should be an array");
|
|
1463
|
-
return t.reduce(function(
|
|
1464
|
-
return ee(
|
|
1459
|
+
return t.reduce(function(n, i) {
|
|
1460
|
+
return ee(n, i, r);
|
|
1465
1461
|
}, {});
|
|
1466
1462
|
};
|
|
1467
|
-
var
|
|
1468
|
-
const
|
|
1463
|
+
var $n = ee, Dn = $n;
|
|
1464
|
+
const Un = /* @__PURE__ */ Sn(Dn);
|
|
1469
1465
|
function De(e, t) {
|
|
1470
|
-
var
|
|
1466
|
+
var r = t && t.cache ? t.cache : Wn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : jn;
|
|
1471
1467
|
return i(e, {
|
|
1472
|
-
cache:
|
|
1473
|
-
serializer:
|
|
1468
|
+
cache: r,
|
|
1469
|
+
serializer: n
|
|
1474
1470
|
});
|
|
1475
1471
|
}
|
|
1476
|
-
function
|
|
1472
|
+
function Gn(e) {
|
|
1477
1473
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1478
1474
|
}
|
|
1479
|
-
function
|
|
1480
|
-
var i =
|
|
1481
|
-
return typeof
|
|
1482
|
-
}
|
|
1483
|
-
function an(e, t, n) {
|
|
1484
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
1485
|
-
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
1475
|
+
function Fn(e, t, r, n) {
|
|
1476
|
+
var i = Gn(n) ? n : r(n), o = t.get(i);
|
|
1477
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1486
1478
|
}
|
|
1487
|
-
function
|
|
1488
|
-
|
|
1479
|
+
function ir(e, t, r) {
|
|
1480
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1481
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1489
1482
|
}
|
|
1490
|
-
function
|
|
1491
|
-
|
|
1492
|
-
return at(e, this, n, t.cache.create(), t.serializer);
|
|
1483
|
+
function or(e, t, r, n, i) {
|
|
1484
|
+
return r.bind(t, e, n, i);
|
|
1493
1485
|
}
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1486
|
+
function jn(e, t) {
|
|
1487
|
+
var r = e.length === 1 ? Fn : ir;
|
|
1488
|
+
return or(e, this, r, t.cache.create(), t.serializer);
|
|
1496
1489
|
}
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1490
|
+
function kn(e, t) {
|
|
1491
|
+
return or(e, this, ir, t.cache.create(), t.serializer);
|
|
1499
1492
|
}
|
|
1500
|
-
var
|
|
1493
|
+
var Vn = function() {
|
|
1501
1494
|
return JSON.stringify(arguments);
|
|
1502
|
-
},
|
|
1495
|
+
}, Xn = (
|
|
1503
1496
|
/** @class */
|
|
1504
1497
|
function() {
|
|
1505
1498
|
function e() {
|
|
@@ -1507,17 +1500,16 @@ var Xr = function() {
|
|
|
1507
1500
|
}
|
|
1508
1501
|
return e.prototype.get = function(t) {
|
|
1509
1502
|
return this.cache[t];
|
|
1510
|
-
}, e.prototype.set = function(t,
|
|
1511
|
-
this.cache[t] =
|
|
1503
|
+
}, e.prototype.set = function(t, r) {
|
|
1504
|
+
this.cache[t] = r;
|
|
1512
1505
|
}, e;
|
|
1513
1506
|
}()
|
|
1514
|
-
),
|
|
1507
|
+
), Wn = {
|
|
1515
1508
|
create: function() {
|
|
1516
|
-
return new
|
|
1509
|
+
return new Xn();
|
|
1517
1510
|
}
|
|
1518
1511
|
}, Ue = {
|
|
1519
|
-
variadic:
|
|
1520
|
-
monadic: Vr
|
|
1512
|
+
variadic: kn
|
|
1521
1513
|
}, g;
|
|
1522
1514
|
(function(e) {
|
|
1523
1515
|
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";
|
|
@@ -1530,50 +1522,50 @@ var te;
|
|
|
1530
1522
|
(function(e) {
|
|
1531
1523
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1532
1524
|
})(te || (te = {}));
|
|
1533
|
-
function
|
|
1525
|
+
function xt(e) {
|
|
1534
1526
|
return e.type === w.literal;
|
|
1535
1527
|
}
|
|
1536
|
-
function
|
|
1528
|
+
function zn(e) {
|
|
1537
1529
|
return e.type === w.argument;
|
|
1538
1530
|
}
|
|
1539
|
-
function
|
|
1531
|
+
function sr(e) {
|
|
1540
1532
|
return e.type === w.number;
|
|
1541
1533
|
}
|
|
1542
|
-
function
|
|
1534
|
+
function ar(e) {
|
|
1543
1535
|
return e.type === w.date;
|
|
1544
1536
|
}
|
|
1545
|
-
function
|
|
1537
|
+
function ur(e) {
|
|
1546
1538
|
return e.type === w.time;
|
|
1547
1539
|
}
|
|
1548
|
-
function
|
|
1540
|
+
function lr(e) {
|
|
1549
1541
|
return e.type === w.select;
|
|
1550
1542
|
}
|
|
1551
|
-
function
|
|
1543
|
+
function hr(e) {
|
|
1552
1544
|
return e.type === w.plural;
|
|
1553
1545
|
}
|
|
1554
|
-
function
|
|
1546
|
+
function qn(e) {
|
|
1555
1547
|
return e.type === w.pound;
|
|
1556
1548
|
}
|
|
1557
|
-
function
|
|
1549
|
+
function cr(e) {
|
|
1558
1550
|
return e.type === w.tag;
|
|
1559
1551
|
}
|
|
1560
|
-
function
|
|
1552
|
+
function fr(e) {
|
|
1561
1553
|
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1562
1554
|
}
|
|
1563
1555
|
function Qe(e) {
|
|
1564
1556
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
1565
1557
|
}
|
|
1566
|
-
var
|
|
1567
|
-
function
|
|
1558
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zn = /(?:[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;
|
|
1559
|
+
function Qn(e) {
|
|
1568
1560
|
var t = {};
|
|
1569
|
-
return e.replace(
|
|
1570
|
-
var
|
|
1571
|
-
switch (
|
|
1561
|
+
return e.replace(Zn, function(r) {
|
|
1562
|
+
var n = r.length;
|
|
1563
|
+
switch (r[0]) {
|
|
1572
1564
|
case "G":
|
|
1573
|
-
t.era =
|
|
1565
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1574
1566
|
break;
|
|
1575
1567
|
case "y":
|
|
1576
|
-
t.year =
|
|
1568
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1577
1569
|
break;
|
|
1578
1570
|
case "Y":
|
|
1579
1571
|
case "u":
|
|
@@ -1585,30 +1577,30 @@ function Jr(e) {
|
|
|
1585
1577
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1586
1578
|
case "M":
|
|
1587
1579
|
case "L":
|
|
1588
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1580
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1589
1581
|
break;
|
|
1590
1582
|
case "w":
|
|
1591
1583
|
case "W":
|
|
1592
1584
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1593
1585
|
case "d":
|
|
1594
|
-
t.day = ["numeric", "2-digit"][
|
|
1586
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1595
1587
|
break;
|
|
1596
1588
|
case "D":
|
|
1597
1589
|
case "F":
|
|
1598
1590
|
case "g":
|
|
1599
1591
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1600
1592
|
case "E":
|
|
1601
|
-
t.weekday =
|
|
1593
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1602
1594
|
break;
|
|
1603
1595
|
case "e":
|
|
1604
|
-
if (
|
|
1596
|
+
if (n < 4)
|
|
1605
1597
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1606
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1598
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1607
1599
|
break;
|
|
1608
1600
|
case "c":
|
|
1609
|
-
if (
|
|
1601
|
+
if (n < 4)
|
|
1610
1602
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1611
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1603
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1612
1604
|
break;
|
|
1613
1605
|
case "a":
|
|
1614
1606
|
t.hour12 = !0;
|
|
@@ -1617,32 +1609,32 @@ function Jr(e) {
|
|
|
1617
1609
|
case "B":
|
|
1618
1610
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1619
1611
|
case "h":
|
|
1620
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1612
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1621
1613
|
break;
|
|
1622
1614
|
case "H":
|
|
1623
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1615
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1624
1616
|
break;
|
|
1625
1617
|
case "K":
|
|
1626
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1618
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1627
1619
|
break;
|
|
1628
1620
|
case "k":
|
|
1629
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1621
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1630
1622
|
break;
|
|
1631
1623
|
case "j":
|
|
1632
1624
|
case "J":
|
|
1633
1625
|
case "C":
|
|
1634
1626
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1635
1627
|
case "m":
|
|
1636
|
-
t.minute = ["numeric", "2-digit"][
|
|
1628
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1637
1629
|
break;
|
|
1638
1630
|
case "s":
|
|
1639
|
-
t.second = ["numeric", "2-digit"][
|
|
1631
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1640
1632
|
break;
|
|
1641
1633
|
case "S":
|
|
1642
1634
|
case "A":
|
|
1643
1635
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1644
1636
|
case "z":
|
|
1645
|
-
t.timeZoneName =
|
|
1637
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1646
1638
|
break;
|
|
1647
1639
|
case "Z":
|
|
1648
1640
|
case "O":
|
|
@@ -1655,36 +1647,36 @@ function Jr(e) {
|
|
|
1655
1647
|
return "";
|
|
1656
1648
|
}), t;
|
|
1657
1649
|
}
|
|
1658
|
-
var
|
|
1659
|
-
function
|
|
1650
|
+
var Jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1651
|
+
function Yn(e) {
|
|
1660
1652
|
if (e.length === 0)
|
|
1661
1653
|
throw new Error("Number skeleton cannot be empty");
|
|
1662
|
-
for (var t = e.split(
|
|
1663
|
-
return
|
|
1664
|
-
}),
|
|
1665
|
-
var
|
|
1654
|
+
for (var t = e.split(Jn).filter(function(f) {
|
|
1655
|
+
return f.length > 0;
|
|
1656
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1657
|
+
var o = i[n], a = o.split("/");
|
|
1666
1658
|
if (a.length === 0)
|
|
1667
1659
|
throw new Error("Invalid number skeleton");
|
|
1668
|
-
for (var
|
|
1669
|
-
var
|
|
1670
|
-
if (
|
|
1660
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1661
|
+
var c = h[u];
|
|
1662
|
+
if (c.length === 0)
|
|
1671
1663
|
throw new Error("Invalid number skeleton");
|
|
1672
1664
|
}
|
|
1673
|
-
|
|
1665
|
+
r.push({ stem: s, options: l });
|
|
1674
1666
|
}
|
|
1675
|
-
return
|
|
1667
|
+
return r;
|
|
1676
1668
|
}
|
|
1677
|
-
function
|
|
1669
|
+
function Kn(e) {
|
|
1678
1670
|
return e.replace(/^(.*?)-/, "");
|
|
1679
1671
|
}
|
|
1680
|
-
var
|
|
1681
|
-
function
|
|
1672
|
+
var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
1673
|
+
function St(e) {
|
|
1682
1674
|
var t = {};
|
|
1683
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1684
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1675
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
1676
|
+
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)), "";
|
|
1685
1677
|
}), t;
|
|
1686
1678
|
}
|
|
1687
|
-
function
|
|
1679
|
+
function br(e) {
|
|
1688
1680
|
switch (e) {
|
|
1689
1681
|
case "sign-auto":
|
|
1690
1682
|
return {
|
|
@@ -1724,27 +1716,27 @@ function gn(e) {
|
|
|
1724
1716
|
};
|
|
1725
1717
|
}
|
|
1726
1718
|
}
|
|
1727
|
-
function
|
|
1719
|
+
function ti(e) {
|
|
1728
1720
|
var t;
|
|
1729
1721
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1730
1722
|
notation: "engineering"
|
|
1731
1723
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1732
1724
|
notation: "scientific"
|
|
1733
1725
|
}, e = e.slice(1)), t) {
|
|
1734
|
-
var
|
|
1735
|
-
if (
|
|
1726
|
+
var r = e.slice(0, 2);
|
|
1727
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
1736
1728
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1737
1729
|
t.minimumIntegerDigits = e.length;
|
|
1738
1730
|
}
|
|
1739
1731
|
return t;
|
|
1740
1732
|
}
|
|
1741
|
-
function
|
|
1742
|
-
var t = {},
|
|
1743
|
-
return
|
|
1733
|
+
function Tt(e) {
|
|
1734
|
+
var t = {}, r = br(e);
|
|
1735
|
+
return r || t;
|
|
1744
1736
|
}
|
|
1745
1737
|
function ri(e) {
|
|
1746
|
-
for (var t = {},
|
|
1747
|
-
var i = r
|
|
1738
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1739
|
+
var i = n[r];
|
|
1748
1740
|
switch (i.stem) {
|
|
1749
1741
|
case "percent":
|
|
1750
1742
|
case "%":
|
|
@@ -1766,7 +1758,7 @@ function ri(e) {
|
|
|
1766
1758
|
continue;
|
|
1767
1759
|
case "measure-unit":
|
|
1768
1760
|
case "unit":
|
|
1769
|
-
t.style = "unit", t.unit =
|
|
1761
|
+
t.style = "unit", t.unit = Kn(i.options[0]);
|
|
1770
1762
|
continue;
|
|
1771
1763
|
case "compact-short":
|
|
1772
1764
|
case "K":
|
|
@@ -1778,12 +1770,12 @@ function ri(e) {
|
|
|
1778
1770
|
continue;
|
|
1779
1771
|
case "scientific":
|
|
1780
1772
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1781
|
-
return v(v({}, l),
|
|
1773
|
+
return v(v({}, l), Tt(u));
|
|
1782
1774
|
}, {}));
|
|
1783
1775
|
continue;
|
|
1784
1776
|
case "engineering":
|
|
1785
1777
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1786
|
-
return v(v({}, l),
|
|
1778
|
+
return v(v({}, l), Tt(u));
|
|
1787
1779
|
}, {}));
|
|
1788
1780
|
continue;
|
|
1789
1781
|
case "notation-simple":
|
|
@@ -1828,11 +1820,11 @@ function ri(e) {
|
|
|
1828
1820
|
case "integer-width":
|
|
1829
1821
|
if (i.options.length > 1)
|
|
1830
1822
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1831
|
-
i.options[0].replace(
|
|
1823
|
+
i.options[0].replace(ei, function(l, u, h, c, f, p) {
|
|
1832
1824
|
if (u)
|
|
1833
1825
|
t.minimumIntegerDigits = h.length;
|
|
1834
1826
|
else {
|
|
1835
|
-
if (
|
|
1827
|
+
if (c && f)
|
|
1836
1828
|
throw new Error("We currently do not support maximum integer digits");
|
|
1837
1829
|
if (p)
|
|
1838
1830
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1841,28 +1833,28 @@ function ri(e) {
|
|
|
1841
1833
|
});
|
|
1842
1834
|
continue;
|
|
1843
1835
|
}
|
|
1844
|
-
if (
|
|
1836
|
+
if (mr.test(i.stem)) {
|
|
1845
1837
|
t.minimumIntegerDigits = i.stem.length;
|
|
1846
1838
|
continue;
|
|
1847
1839
|
}
|
|
1848
|
-
if (
|
|
1840
|
+
if (wt.test(i.stem)) {
|
|
1849
1841
|
if (i.options.length > 1)
|
|
1850
1842
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1851
|
-
i.stem.replace(
|
|
1852
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1843
|
+
i.stem.replace(wt, function(l, u, h, c, f, p) {
|
|
1844
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1853
1845
|
});
|
|
1854
|
-
var
|
|
1855
|
-
|
|
1846
|
+
var o = i.options[0];
|
|
1847
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), St(o)));
|
|
1856
1848
|
continue;
|
|
1857
1849
|
}
|
|
1858
|
-
if (
|
|
1859
|
-
t = v(v({}, t),
|
|
1850
|
+
if (pr.test(i.stem)) {
|
|
1851
|
+
t = v(v({}, t), St(i.stem));
|
|
1860
1852
|
continue;
|
|
1861
1853
|
}
|
|
1862
|
-
var a =
|
|
1854
|
+
var a = br(i.stem);
|
|
1863
1855
|
a && (t = v(v({}, t), a));
|
|
1864
|
-
var
|
|
1865
|
-
|
|
1856
|
+
var s = ti(i.stem);
|
|
1857
|
+
s && (t = v(v({}, t), s));
|
|
1866
1858
|
}
|
|
1867
1859
|
return t;
|
|
1868
1860
|
}
|
|
@@ -3281,22 +3273,22 @@ var _e = {
|
|
|
3281
3273
|
"h"
|
|
3282
3274
|
]
|
|
3283
3275
|
};
|
|
3284
|
-
function
|
|
3285
|
-
for (var
|
|
3286
|
-
var i = e.charAt(
|
|
3276
|
+
function ni(e, t) {
|
|
3277
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3278
|
+
var i = e.charAt(n);
|
|
3287
3279
|
if (i === "j") {
|
|
3288
|
-
for (var
|
|
3289
|
-
|
|
3290
|
-
var a = 1 + (
|
|
3291
|
-
for ((u == "H" || u == "k") && (
|
|
3292
|
-
|
|
3280
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3281
|
+
o++, n++;
|
|
3282
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ii(t);
|
|
3283
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3284
|
+
r += l;
|
|
3293
3285
|
for (; a-- > 0; )
|
|
3294
|
-
|
|
3295
|
-
} else i === "J" ?
|
|
3286
|
+
r = u + r;
|
|
3287
|
+
} else i === "J" ? r += "H" : r += i;
|
|
3296
3288
|
}
|
|
3297
|
-
return
|
|
3289
|
+
return r;
|
|
3298
3290
|
}
|
|
3299
|
-
function
|
|
3291
|
+
function ii(e) {
|
|
3300
3292
|
var t = e.hourCycle;
|
|
3301
3293
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3302
3294
|
e.hourCycles && // @ts-ignore
|
|
@@ -3313,73 +3305,73 @@ function si(e) {
|
|
|
3313
3305
|
default:
|
|
3314
3306
|
throw new Error("Invalid hourCycle");
|
|
3315
3307
|
}
|
|
3316
|
-
var
|
|
3317
|
-
|
|
3318
|
-
var i = _e[
|
|
3308
|
+
var r = e.language, n;
|
|
3309
|
+
r !== "root" && (n = e.maximize().region);
|
|
3310
|
+
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
3319
3311
|
return i[0];
|
|
3320
3312
|
}
|
|
3321
|
-
var Ge, oi = new RegExp("^".concat(
|
|
3313
|
+
var Ge, oi = new RegExp("^".concat(dr.source, "*")), si = new RegExp("".concat(dr.source, "*$"));
|
|
3322
3314
|
function _(e, t) {
|
|
3323
3315
|
return { start: e, end: t };
|
|
3324
3316
|
}
|
|
3325
|
-
var
|
|
3317
|
+
var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, li = !!Object.fromEntries, hi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, di = !!Number.isSafeInteger, pi = di ? Number.isSafeInteger : function(e) {
|
|
3326
3318
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3327
3319
|
}, Je = !0;
|
|
3328
3320
|
try {
|
|
3329
|
-
var
|
|
3330
|
-
Je = ((Ge =
|
|
3321
|
+
var mi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3322
|
+
Je = ((Ge = mi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3331
3323
|
} catch {
|
|
3332
3324
|
Je = !1;
|
|
3333
3325
|
}
|
|
3334
|
-
var
|
|
3326
|
+
var Ht = ai ? (
|
|
3335
3327
|
// Native
|
|
3336
|
-
function(t,
|
|
3337
|
-
return t.startsWith(
|
|
3328
|
+
function(t, r, n) {
|
|
3329
|
+
return t.startsWith(r, n);
|
|
3338
3330
|
}
|
|
3339
3331
|
) : (
|
|
3340
3332
|
// For IE11
|
|
3341
|
-
function(t,
|
|
3342
|
-
return t.slice(
|
|
3333
|
+
function(t, r, n) {
|
|
3334
|
+
return t.slice(n, n + r.length) === r;
|
|
3343
3335
|
}
|
|
3344
|
-
), Ye =
|
|
3336
|
+
), Ye = ui ? String.fromCodePoint : (
|
|
3345
3337
|
// IE11
|
|
3346
3338
|
function() {
|
|
3347
|
-
for (var t = [],
|
|
3348
|
-
t[
|
|
3349
|
-
for (var
|
|
3350
|
-
if (a = t[
|
|
3339
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3340
|
+
t[r] = arguments[r];
|
|
3341
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3342
|
+
if (a = t[o++], a > 1114111)
|
|
3351
3343
|
throw RangeError(a + " is not a valid code point");
|
|
3352
|
-
|
|
3344
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3353
3345
|
}
|
|
3354
|
-
return
|
|
3346
|
+
return n;
|
|
3355
3347
|
}
|
|
3356
|
-
),
|
|
3348
|
+
), Pt = (
|
|
3357
3349
|
// native
|
|
3358
|
-
|
|
3350
|
+
li ? Object.fromEntries : (
|
|
3359
3351
|
// Ponyfill
|
|
3360
3352
|
function(t) {
|
|
3361
|
-
for (var
|
|
3362
|
-
var
|
|
3363
|
-
|
|
3353
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3354
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3355
|
+
r[a] = s;
|
|
3364
3356
|
}
|
|
3365
|
-
return
|
|
3357
|
+
return r;
|
|
3366
3358
|
}
|
|
3367
3359
|
)
|
|
3368
|
-
),
|
|
3360
|
+
), yr = hi ? (
|
|
3369
3361
|
// Native
|
|
3370
|
-
function(t,
|
|
3371
|
-
return t.codePointAt(
|
|
3362
|
+
function(t, r) {
|
|
3363
|
+
return t.codePointAt(r);
|
|
3372
3364
|
}
|
|
3373
3365
|
) : (
|
|
3374
3366
|
// IE 11
|
|
3375
|
-
function(t,
|
|
3376
|
-
var
|
|
3377
|
-
if (!(
|
|
3378
|
-
var i = t.charCodeAt(
|
|
3379
|
-
return i < 55296 || i > 56319 ||
|
|
3367
|
+
function(t, r) {
|
|
3368
|
+
var n = t.length;
|
|
3369
|
+
if (!(r < 0 || r >= n)) {
|
|
3370
|
+
var i = t.charCodeAt(r), o;
|
|
3371
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3380
3372
|
}
|
|
3381
3373
|
}
|
|
3382
|
-
),
|
|
3374
|
+
), bi = ci ? (
|
|
3383
3375
|
// Native
|
|
3384
3376
|
function(t) {
|
|
3385
3377
|
return t.trimStart();
|
|
@@ -3389,7 +3381,7 @@ var Pt = ui ? (
|
|
|
3389
3381
|
function(t) {
|
|
3390
3382
|
return t.replace(oi, "");
|
|
3391
3383
|
}
|
|
3392
|
-
),
|
|
3384
|
+
), yi = fi ? (
|
|
3393
3385
|
// Native
|
|
3394
3386
|
function(t) {
|
|
3395
3387
|
return t.trimEnd();
|
|
@@ -3397,69 +3389,69 @@ var Pt = ui ? (
|
|
|
3397
3389
|
) : (
|
|
3398
3390
|
// Ponyfill
|
|
3399
3391
|
function(t) {
|
|
3400
|
-
return t.replace(
|
|
3392
|
+
return t.replace(si, "");
|
|
3401
3393
|
}
|
|
3402
3394
|
);
|
|
3403
|
-
function
|
|
3395
|
+
function gr(e, t) {
|
|
3404
3396
|
return new RegExp(e, t);
|
|
3405
3397
|
}
|
|
3406
3398
|
var Ke;
|
|
3407
3399
|
if (Je) {
|
|
3408
|
-
var
|
|
3409
|
-
Ke = function(t,
|
|
3410
|
-
var
|
|
3411
|
-
|
|
3412
|
-
var i =
|
|
3413
|
-
return (
|
|
3400
|
+
var At = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3401
|
+
Ke = function(t, r) {
|
|
3402
|
+
var n;
|
|
3403
|
+
At.lastIndex = r;
|
|
3404
|
+
var i = At.exec(t);
|
|
3405
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3414
3406
|
};
|
|
3415
3407
|
} else
|
|
3416
|
-
Ke = function(t,
|
|
3417
|
-
for (var
|
|
3418
|
-
var i =
|
|
3419
|
-
if (i === void 0 ||
|
|
3408
|
+
Ke = function(t, r) {
|
|
3409
|
+
for (var n = []; ; ) {
|
|
3410
|
+
var i = yr(t, r);
|
|
3411
|
+
if (i === void 0 || _r(i) || Ei(i))
|
|
3420
3412
|
break;
|
|
3421
|
-
|
|
3413
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3422
3414
|
}
|
|
3423
|
-
return Ye.apply(void 0,
|
|
3415
|
+
return Ye.apply(void 0, n);
|
|
3424
3416
|
};
|
|
3425
|
-
var
|
|
3417
|
+
var gi = (
|
|
3426
3418
|
/** @class */
|
|
3427
3419
|
function() {
|
|
3428
|
-
function e(t,
|
|
3429
|
-
|
|
3420
|
+
function e(t, r) {
|
|
3421
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3430
3422
|
}
|
|
3431
3423
|
return e.prototype.parse = function() {
|
|
3432
3424
|
if (this.offset() !== 0)
|
|
3433
3425
|
throw Error("parser can only be used once");
|
|
3434
3426
|
return this.parseMessage(0, "", !1);
|
|
3435
|
-
}, e.prototype.parseMessage = function(t,
|
|
3427
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3436
3428
|
for (var i = []; !this.isEOF(); ) {
|
|
3437
|
-
var
|
|
3438
|
-
if (
|
|
3439
|
-
var a = this.parseArgument(t,
|
|
3429
|
+
var o = this.char();
|
|
3430
|
+
if (o === 123) {
|
|
3431
|
+
var a = this.parseArgument(t, n);
|
|
3440
3432
|
if (a.err)
|
|
3441
3433
|
return a;
|
|
3442
3434
|
i.push(a.val);
|
|
3443
3435
|
} else {
|
|
3444
|
-
if (
|
|
3436
|
+
if (o === 125 && t > 0)
|
|
3445
3437
|
break;
|
|
3446
|
-
if (
|
|
3447
|
-
var
|
|
3438
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3439
|
+
var s = this.clonePosition();
|
|
3448
3440
|
this.bump(), i.push({
|
|
3449
3441
|
type: w.pound,
|
|
3450
|
-
location: _(
|
|
3442
|
+
location: _(s, this.clonePosition())
|
|
3451
3443
|
});
|
|
3452
|
-
} else if (
|
|
3453
|
-
if (
|
|
3444
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3445
|
+
if (n)
|
|
3454
3446
|
break;
|
|
3455
3447
|
return this.error(g.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3456
|
-
} else if (
|
|
3457
|
-
var a = this.parseTag(t,
|
|
3448
|
+
} else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
|
3449
|
+
var a = this.parseTag(t, r);
|
|
3458
3450
|
if (a.err)
|
|
3459
3451
|
return a;
|
|
3460
3452
|
i.push(a.val);
|
|
3461
3453
|
} else {
|
|
3462
|
-
var a = this.parseLiteral(t,
|
|
3454
|
+
var a = this.parseLiteral(t, r);
|
|
3463
3455
|
if (a.err)
|
|
3464
3456
|
return a;
|
|
3465
3457
|
i.push(a.val);
|
|
@@ -3467,8 +3459,8 @@ var _i = (
|
|
|
3467
3459
|
}
|
|
3468
3460
|
}
|
|
3469
3461
|
return { val: i, err: null };
|
|
3470
|
-
}, e.prototype.parseTag = function(t,
|
|
3471
|
-
var
|
|
3462
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3463
|
+
var n = this.clonePosition();
|
|
3472
3464
|
this.bump();
|
|
3473
3465
|
var i = this.parseTagName();
|
|
3474
3466
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3476,64 +3468,64 @@ var _i = (
|
|
|
3476
3468
|
val: {
|
|
3477
3469
|
type: w.literal,
|
|
3478
3470
|
value: "<".concat(i, "/>"),
|
|
3479
|
-
location: _(
|
|
3471
|
+
location: _(n, this.clonePosition())
|
|
3480
3472
|
},
|
|
3481
3473
|
err: null
|
|
3482
3474
|
};
|
|
3483
3475
|
if (this.bumpIf(">")) {
|
|
3484
|
-
var
|
|
3485
|
-
if (
|
|
3486
|
-
return
|
|
3487
|
-
var a =
|
|
3476
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3477
|
+
if (o.err)
|
|
3478
|
+
return o;
|
|
3479
|
+
var a = o.val, s = this.clonePosition();
|
|
3488
3480
|
if (this.bumpIf("</")) {
|
|
3489
3481
|
if (this.isEOF() || !et(this.char()))
|
|
3490
|
-
return this.error(g.INVALID_TAG, _(
|
|
3482
|
+
return this.error(g.INVALID_TAG, _(s, this.clonePosition()));
|
|
3491
3483
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3492
3484
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3493
3485
|
val: {
|
|
3494
3486
|
type: w.tag,
|
|
3495
3487
|
value: i,
|
|
3496
3488
|
children: a,
|
|
3497
|
-
location: _(
|
|
3489
|
+
location: _(n, this.clonePosition())
|
|
3498
3490
|
},
|
|
3499
3491
|
err: null
|
|
3500
|
-
} : this.error(g.INVALID_TAG, _(
|
|
3492
|
+
} : this.error(g.INVALID_TAG, _(s, this.clonePosition())));
|
|
3501
3493
|
} else
|
|
3502
|
-
return this.error(g.UNCLOSED_TAG, _(
|
|
3494
|
+
return this.error(g.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
3503
3495
|
} else
|
|
3504
|
-
return this.error(g.INVALID_TAG, _(
|
|
3496
|
+
return this.error(g.INVALID_TAG, _(n, this.clonePosition()));
|
|
3505
3497
|
}, e.prototype.parseTagName = function() {
|
|
3506
3498
|
var t = this.offset();
|
|
3507
|
-
for (this.bump(); !this.isEOF() &&
|
|
3499
|
+
for (this.bump(); !this.isEOF() && vi(this.char()); )
|
|
3508
3500
|
this.bump();
|
|
3509
3501
|
return this.message.slice(t, this.offset());
|
|
3510
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3511
|
-
for (var
|
|
3512
|
-
var
|
|
3513
|
-
if (
|
|
3514
|
-
i +=
|
|
3502
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3503
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3504
|
+
var o = this.tryParseQuote(r);
|
|
3505
|
+
if (o) {
|
|
3506
|
+
i += o;
|
|
3515
3507
|
continue;
|
|
3516
3508
|
}
|
|
3517
|
-
var a = this.tryParseUnquoted(t,
|
|
3509
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3518
3510
|
if (a) {
|
|
3519
3511
|
i += a;
|
|
3520
3512
|
continue;
|
|
3521
3513
|
}
|
|
3522
|
-
var
|
|
3523
|
-
if (
|
|
3524
|
-
i +=
|
|
3514
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3515
|
+
if (s) {
|
|
3516
|
+
i += s;
|
|
3525
3517
|
continue;
|
|
3526
3518
|
}
|
|
3527
3519
|
break;
|
|
3528
3520
|
}
|
|
3529
|
-
var l = _(
|
|
3521
|
+
var l = _(n, this.clonePosition());
|
|
3530
3522
|
return {
|
|
3531
3523
|
val: { type: w.literal, value: i, location: l },
|
|
3532
3524
|
err: null
|
|
3533
3525
|
};
|
|
3534
3526
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3535
3527
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3536
|
-
!
|
|
3528
|
+
!_i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3537
3529
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3538
3530
|
if (this.isEOF() || this.char() !== 39)
|
|
3539
3531
|
return null;
|
|
@@ -3553,37 +3545,37 @@ var _i = (
|
|
|
3553
3545
|
return null;
|
|
3554
3546
|
}
|
|
3555
3547
|
this.bump();
|
|
3556
|
-
var
|
|
3548
|
+
var r = [this.char()];
|
|
3557
3549
|
for (this.bump(); !this.isEOF(); ) {
|
|
3558
|
-
var
|
|
3559
|
-
if (
|
|
3550
|
+
var n = this.char();
|
|
3551
|
+
if (n === 39)
|
|
3560
3552
|
if (this.peek() === 39)
|
|
3561
|
-
|
|
3553
|
+
r.push(39), this.bump();
|
|
3562
3554
|
else {
|
|
3563
3555
|
this.bump();
|
|
3564
3556
|
break;
|
|
3565
3557
|
}
|
|
3566
3558
|
else
|
|
3567
|
-
|
|
3559
|
+
r.push(n);
|
|
3568
3560
|
this.bump();
|
|
3569
3561
|
}
|
|
3570
|
-
return Ye.apply(void 0,
|
|
3571
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3562
|
+
return Ye.apply(void 0, r);
|
|
3563
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3572
3564
|
if (this.isEOF())
|
|
3573
3565
|
return null;
|
|
3574
|
-
var
|
|
3575
|
-
return
|
|
3576
|
-
}, e.prototype.parseArgument = function(t,
|
|
3577
|
-
var
|
|
3566
|
+
var n = this.char();
|
|
3567
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
|
3568
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3569
|
+
var n = this.clonePosition();
|
|
3578
3570
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3579
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3571
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3580
3572
|
if (this.char() === 125)
|
|
3581
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT, _(
|
|
3573
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
3582
3574
|
var i = this.parseIdentifierIfPossible().value;
|
|
3583
3575
|
if (!i)
|
|
3584
|
-
return this.error(g.MALFORMED_ARGUMENT, _(
|
|
3576
|
+
return this.error(g.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3585
3577
|
if (this.bumpSpace(), this.isEOF())
|
|
3586
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3578
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3587
3579
|
switch (this.char()) {
|
|
3588
3580
|
case 125:
|
|
3589
3581
|
return this.bump(), {
|
|
@@ -3591,23 +3583,23 @@ var _i = (
|
|
|
3591
3583
|
type: w.argument,
|
|
3592
3584
|
// value does not include the opening and closing braces.
|
|
3593
3585
|
value: i,
|
|
3594
|
-
location: _(
|
|
3586
|
+
location: _(n, this.clonePosition())
|
|
3595
3587
|
},
|
|
3596
3588
|
err: null
|
|
3597
3589
|
};
|
|
3598
3590
|
case 44:
|
|
3599
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3591
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3600
3592
|
default:
|
|
3601
|
-
return this.error(g.MALFORMED_ARGUMENT, _(
|
|
3593
|
+
return this.error(g.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3602
3594
|
}
|
|
3603
3595
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3604
|
-
var t = this.clonePosition(),
|
|
3596
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
|
3605
3597
|
this.bumpTo(i);
|
|
3606
|
-
var
|
|
3607
|
-
return { value:
|
|
3608
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3609
|
-
var
|
|
3610
|
-
switch (
|
|
3598
|
+
var o = this.clonePosition(), a = _(t, o);
|
|
3599
|
+
return { value: n, location: a };
|
|
3600
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3601
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3602
|
+
switch (s) {
|
|
3611
3603
|
case "":
|
|
3612
3604
|
return this.error(g.EXPECT_ARGUMENT_TYPE, _(a, l));
|
|
3613
3605
|
case "number":
|
|
@@ -3617,50 +3609,50 @@ var _i = (
|
|
|
3617
3609
|
var u = null;
|
|
3618
3610
|
if (this.bumpIf(",")) {
|
|
3619
3611
|
this.bumpSpace();
|
|
3620
|
-
var h = this.clonePosition(),
|
|
3621
|
-
if (
|
|
3622
|
-
return
|
|
3623
|
-
var
|
|
3624
|
-
if (
|
|
3612
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3613
|
+
if (c.err)
|
|
3614
|
+
return c;
|
|
3615
|
+
var f = yi(c.val);
|
|
3616
|
+
if (f.length === 0)
|
|
3625
3617
|
return this.error(g.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3626
3618
|
var p = _(h, this.clonePosition());
|
|
3627
|
-
u = { style:
|
|
3619
|
+
u = { style: f, styleLocation: p };
|
|
3628
3620
|
}
|
|
3629
3621
|
var d = this.tryParseArgumentClose(i);
|
|
3630
3622
|
if (d.err)
|
|
3631
3623
|
return d;
|
|
3632
3624
|
var m = _(i, this.clonePosition());
|
|
3633
|
-
if (u &&
|
|
3634
|
-
var E =
|
|
3635
|
-
if (
|
|
3636
|
-
var
|
|
3637
|
-
return
|
|
3638
|
-
val: { type: w.number, value:
|
|
3625
|
+
if (u && Ht(u?.style, "::", 0)) {
|
|
3626
|
+
var E = bi(u.style.slice(2));
|
|
3627
|
+
if (s === "number") {
|
|
3628
|
+
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3629
|
+
return c.err ? c : {
|
|
3630
|
+
val: { type: w.number, value: n, location: m, style: c.val },
|
|
3639
3631
|
err: null
|
|
3640
3632
|
};
|
|
3641
3633
|
} else {
|
|
3642
3634
|
if (E.length === 0)
|
|
3643
3635
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
|
|
3644
3636
|
var S = E;
|
|
3645
|
-
this.locale && (S =
|
|
3646
|
-
var
|
|
3637
|
+
this.locale && (S = ni(E, this.locale));
|
|
3638
|
+
var f = {
|
|
3647
3639
|
type: te.dateTime,
|
|
3648
3640
|
pattern: S,
|
|
3649
3641
|
location: u.styleLocation,
|
|
3650
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3651
|
-
}, H =
|
|
3642
|
+
parsedOptions: this.shouldParseSkeletons ? Qn(S) : {}
|
|
3643
|
+
}, H = s === "date" ? w.date : w.time;
|
|
3652
3644
|
return {
|
|
3653
|
-
val: { type: H, value:
|
|
3645
|
+
val: { type: H, value: n, location: m, style: f },
|
|
3654
3646
|
err: null
|
|
3655
3647
|
};
|
|
3656
3648
|
}
|
|
3657
3649
|
}
|
|
3658
3650
|
return {
|
|
3659
3651
|
val: {
|
|
3660
|
-
type:
|
|
3661
|
-
value:
|
|
3652
|
+
type: s === "number" ? w.number : s === "date" ? w.date : w.time,
|
|
3653
|
+
value: n,
|
|
3662
3654
|
location: m,
|
|
3663
|
-
style: (
|
|
3655
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3664
3656
|
},
|
|
3665
3657
|
err: null
|
|
3666
3658
|
};
|
|
@@ -3673,37 +3665,37 @@ var _i = (
|
|
|
3673
3665
|
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, _(T, v({}, T)));
|
|
3674
3666
|
this.bumpSpace();
|
|
3675
3667
|
var O = this.parseIdentifierIfPossible(), P = 0;
|
|
3676
|
-
if (
|
|
3668
|
+
if (s !== "select" && O.value === "offset") {
|
|
3677
3669
|
if (!this.bumpIf(":"))
|
|
3678
3670
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3679
3671
|
this.bumpSpace();
|
|
3680
|
-
var
|
|
3681
|
-
if (
|
|
3682
|
-
return
|
|
3683
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P =
|
|
3672
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3673
|
+
if (c.err)
|
|
3674
|
+
return c;
|
|
3675
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = c.val;
|
|
3684
3676
|
}
|
|
3685
|
-
var C = this.tryParsePluralOrSelectOptions(t,
|
|
3677
|
+
var C = this.tryParsePluralOrSelectOptions(t, s, r, O);
|
|
3686
3678
|
if (C.err)
|
|
3687
3679
|
return C;
|
|
3688
3680
|
var d = this.tryParseArgumentClose(i);
|
|
3689
3681
|
if (d.err)
|
|
3690
3682
|
return d;
|
|
3691
3683
|
var x = _(i, this.clonePosition());
|
|
3692
|
-
return
|
|
3684
|
+
return s === "select" ? {
|
|
3693
3685
|
val: {
|
|
3694
3686
|
type: w.select,
|
|
3695
|
-
value:
|
|
3696
|
-
options:
|
|
3687
|
+
value: n,
|
|
3688
|
+
options: Pt(C.val),
|
|
3697
3689
|
location: x
|
|
3698
3690
|
},
|
|
3699
3691
|
err: null
|
|
3700
3692
|
} : {
|
|
3701
3693
|
val: {
|
|
3702
3694
|
type: w.plural,
|
|
3703
|
-
value:
|
|
3704
|
-
options:
|
|
3695
|
+
value: n,
|
|
3696
|
+
options: Pt(C.val),
|
|
3705
3697
|
offset: P,
|
|
3706
|
-
pluralType:
|
|
3698
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3707
3699
|
location: x
|
|
3708
3700
|
},
|
|
3709
3701
|
err: null
|
|
@@ -3715,9 +3707,9 @@ var _i = (
|
|
|
3715
3707
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3716
3708
|
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3717
3709
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3718
|
-
for (var t = 0,
|
|
3719
|
-
var
|
|
3720
|
-
switch (
|
|
3710
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3711
|
+
var n = this.char();
|
|
3712
|
+
switch (n) {
|
|
3721
3713
|
case 39: {
|
|
3722
3714
|
this.bump();
|
|
3723
3715
|
var i = this.clonePosition();
|
|
@@ -3735,7 +3727,7 @@ var _i = (
|
|
|
3735
3727
|
t -= 1;
|
|
3736
3728
|
else
|
|
3737
3729
|
return {
|
|
3738
|
-
val: this.message.slice(
|
|
3730
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3739
3731
|
err: null
|
|
3740
3732
|
};
|
|
3741
3733
|
break;
|
|
@@ -3746,70 +3738,70 @@ var _i = (
|
|
|
3746
3738
|
}
|
|
3747
3739
|
}
|
|
3748
3740
|
return {
|
|
3749
|
-
val: this.message.slice(
|
|
3741
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3750
3742
|
err: null
|
|
3751
3743
|
};
|
|
3752
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3753
|
-
var
|
|
3744
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3745
|
+
var n = [];
|
|
3754
3746
|
try {
|
|
3755
|
-
|
|
3747
|
+
n = Yn(t);
|
|
3756
3748
|
} catch {
|
|
3757
|
-
return this.error(g.INVALID_NUMBER_SKELETON,
|
|
3749
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3758
3750
|
}
|
|
3759
3751
|
return {
|
|
3760
3752
|
val: {
|
|
3761
3753
|
type: te.number,
|
|
3762
|
-
tokens:
|
|
3763
|
-
location:
|
|
3764
|
-
parsedOptions: this.shouldParseSkeletons ? ri(
|
|
3754
|
+
tokens: n,
|
|
3755
|
+
location: r,
|
|
3756
|
+
parsedOptions: this.shouldParseSkeletons ? ri(n) : {}
|
|
3765
3757
|
},
|
|
3766
3758
|
err: null
|
|
3767
3759
|
};
|
|
3768
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3769
|
-
for (var
|
|
3760
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3761
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3770
3762
|
if (u.length === 0) {
|
|
3771
|
-
var
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3774
|
-
if (
|
|
3775
|
-
return
|
|
3776
|
-
h = _(
|
|
3763
|
+
var c = this.clonePosition();
|
|
3764
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3765
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3766
|
+
if (f.err)
|
|
3767
|
+
return f;
|
|
3768
|
+
h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3777
3769
|
} else
|
|
3778
3770
|
break;
|
|
3779
3771
|
}
|
|
3780
3772
|
if (l.has(u))
|
|
3781
|
-
return this.error(
|
|
3773
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3782
3774
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3783
3775
|
var p = this.clonePosition();
|
|
3784
3776
|
if (!this.bumpIf("{"))
|
|
3785
|
-
return this.error(
|
|
3786
|
-
var d = this.parseMessage(t + 1,
|
|
3777
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3778
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3787
3779
|
if (d.err)
|
|
3788
3780
|
return d;
|
|
3789
3781
|
var m = this.tryParseArgumentClose(p);
|
|
3790
3782
|
if (m.err)
|
|
3791
3783
|
return m;
|
|
3792
|
-
|
|
3784
|
+
s.push([
|
|
3793
3785
|
u,
|
|
3794
3786
|
{
|
|
3795
3787
|
value: d.val,
|
|
3796
3788
|
location: _(p, this.clonePosition())
|
|
3797
3789
|
}
|
|
3798
|
-
]), l.add(u), this.bumpSpace(),
|
|
3790
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3799
3791
|
}
|
|
3800
|
-
return
|
|
3801
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3802
|
-
var
|
|
3803
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3804
|
-
for (var
|
|
3805
|
-
var
|
|
3806
|
-
if (
|
|
3807
|
-
|
|
3792
|
+
return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3793
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3794
|
+
var n = 1, i = this.clonePosition();
|
|
3795
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3796
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3797
|
+
var s = this.char();
|
|
3798
|
+
if (s >= 48 && s <= 57)
|
|
3799
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3808
3800
|
else
|
|
3809
3801
|
break;
|
|
3810
3802
|
}
|
|
3811
3803
|
var l = _(i, this.clonePosition());
|
|
3812
|
-
return
|
|
3804
|
+
return o ? (a *= n, pi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3813
3805
|
}, e.prototype.offset = function() {
|
|
3814
3806
|
return this.position.offset;
|
|
3815
3807
|
}, e.prototype.isEOF = function() {
|
|
@@ -3824,17 +3816,17 @@ var _i = (
|
|
|
3824
3816
|
var t = this.position.offset;
|
|
3825
3817
|
if (t >= this.message.length)
|
|
3826
3818
|
throw Error("out of bound");
|
|
3827
|
-
var
|
|
3828
|
-
if (
|
|
3819
|
+
var r = yr(this.message, t);
|
|
3820
|
+
if (r === void 0)
|
|
3829
3821
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3830
|
-
return
|
|
3831
|
-
}, e.prototype.error = function(t,
|
|
3822
|
+
return r;
|
|
3823
|
+
}, e.prototype.error = function(t, r) {
|
|
3832
3824
|
return {
|
|
3833
3825
|
val: null,
|
|
3834
3826
|
err: {
|
|
3835
3827
|
kind: t,
|
|
3836
3828
|
message: this.message,
|
|
3837
|
-
location:
|
|
3829
|
+
location: r
|
|
3838
3830
|
}
|
|
3839
3831
|
};
|
|
3840
3832
|
}, e.prototype.bump = function() {
|
|
@@ -3843,110 +3835,110 @@ var _i = (
|
|
|
3843
3835
|
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);
|
|
3844
3836
|
}
|
|
3845
3837
|
}, e.prototype.bumpIf = function(t) {
|
|
3846
|
-
if (
|
|
3847
|
-
for (var
|
|
3838
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3839
|
+
for (var r = 0; r < t.length; r++)
|
|
3848
3840
|
this.bump();
|
|
3849
3841
|
return !0;
|
|
3850
3842
|
}
|
|
3851
3843
|
return !1;
|
|
3852
3844
|
}, e.prototype.bumpUntil = function(t) {
|
|
3853
|
-
var
|
|
3854
|
-
return
|
|
3845
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3846
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3855
3847
|
}, e.prototype.bumpTo = function(t) {
|
|
3856
3848
|
if (this.offset() > t)
|
|
3857
3849
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3858
3850
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3859
|
-
var
|
|
3860
|
-
if (
|
|
3851
|
+
var r = this.offset();
|
|
3852
|
+
if (r === t)
|
|
3861
3853
|
break;
|
|
3862
|
-
if (
|
|
3854
|
+
if (r > t)
|
|
3863
3855
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3864
3856
|
if (this.bump(), this.isEOF())
|
|
3865
3857
|
break;
|
|
3866
3858
|
}
|
|
3867
3859
|
}, e.prototype.bumpSpace = function() {
|
|
3868
|
-
for (; !this.isEOF() &&
|
|
3860
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
3869
3861
|
this.bump();
|
|
3870
3862
|
}, e.prototype.peek = function() {
|
|
3871
3863
|
if (this.isEOF())
|
|
3872
3864
|
return null;
|
|
3873
|
-
var t = this.char(),
|
|
3874
|
-
return
|
|
3865
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3866
|
+
return n ?? null;
|
|
3875
3867
|
}, e;
|
|
3876
3868
|
}()
|
|
3877
3869
|
);
|
|
3878
3870
|
function et(e) {
|
|
3879
3871
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3880
3872
|
}
|
|
3881
|
-
function
|
|
3873
|
+
function _i(e) {
|
|
3882
3874
|
return et(e) || e === 47;
|
|
3883
3875
|
}
|
|
3884
|
-
function
|
|
3876
|
+
function vi(e) {
|
|
3885
3877
|
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;
|
|
3886
3878
|
}
|
|
3887
|
-
function
|
|
3879
|
+
function _r(e) {
|
|
3888
3880
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3889
3881
|
}
|
|
3890
|
-
function
|
|
3882
|
+
function Ei(e) {
|
|
3891
3883
|
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;
|
|
3892
3884
|
}
|
|
3893
3885
|
function tt(e) {
|
|
3894
3886
|
e.forEach(function(t) {
|
|
3895
|
-
if (delete t.location,
|
|
3896
|
-
for (var
|
|
3897
|
-
delete t.options[
|
|
3898
|
-
else
|
|
3887
|
+
if (delete t.location, lr(t) || hr(t))
|
|
3888
|
+
for (var r in t.options)
|
|
3889
|
+
delete t.options[r].location, tt(t.options[r].value);
|
|
3890
|
+
else sr(t) && fr(t.style) || (ar(t) || ur(t)) && Qe(t.style) ? delete t.style.location : cr(t) && tt(t.children);
|
|
3899
3891
|
});
|
|
3900
3892
|
}
|
|
3901
|
-
function
|
|
3893
|
+
function xi(e, t) {
|
|
3902
3894
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3903
|
-
var
|
|
3904
|
-
if (
|
|
3905
|
-
var
|
|
3906
|
-
throw
|
|
3895
|
+
var r = new gi(e, t).parse();
|
|
3896
|
+
if (r.err) {
|
|
3897
|
+
var n = SyntaxError(g[r.err.kind]);
|
|
3898
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3907
3899
|
}
|
|
3908
|
-
return t?.captureLocation || tt(
|
|
3900
|
+
return t?.captureLocation || tt(r.val), r.val;
|
|
3909
3901
|
}
|
|
3910
|
-
var
|
|
3902
|
+
var re;
|
|
3911
3903
|
(function(e) {
|
|
3912
3904
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3913
|
-
})(
|
|
3905
|
+
})(re || (re = {}));
|
|
3914
3906
|
var Ce = (
|
|
3915
3907
|
/** @class */
|
|
3916
3908
|
function(e) {
|
|
3917
3909
|
F(t, e);
|
|
3918
|
-
function t(
|
|
3919
|
-
var
|
|
3920
|
-
return
|
|
3910
|
+
function t(r, n, i) {
|
|
3911
|
+
var o = e.call(this, r) || this;
|
|
3912
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3921
3913
|
}
|
|
3922
3914
|
return t.prototype.toString = function() {
|
|
3923
3915
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3924
3916
|
}, t;
|
|
3925
3917
|
}(Error)
|
|
3926
|
-
),
|
|
3918
|
+
), Bt = (
|
|
3927
3919
|
/** @class */
|
|
3928
3920
|
function(e) {
|
|
3929
3921
|
F(t, e);
|
|
3930
|
-
function t(
|
|
3931
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3922
|
+
function t(r, n, i, o) {
|
|
3923
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3932
3924
|
}
|
|
3933
3925
|
return t;
|
|
3934
3926
|
}(Ce)
|
|
3935
|
-
),
|
|
3927
|
+
), wi = (
|
|
3936
3928
|
/** @class */
|
|
3937
3929
|
function(e) {
|
|
3938
3930
|
F(t, e);
|
|
3939
|
-
function t(
|
|
3940
|
-
return e.call(this, 'Value for "'.concat(
|
|
3931
|
+
function t(r, n, i) {
|
|
3932
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
3941
3933
|
}
|
|
3942
3934
|
return t;
|
|
3943
3935
|
}(Ce)
|
|
3944
|
-
),
|
|
3936
|
+
), Si = (
|
|
3945
3937
|
/** @class */
|
|
3946
3938
|
function(e) {
|
|
3947
3939
|
F(t, e);
|
|
3948
|
-
function t(
|
|
3949
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3940
|
+
function t(r, n) {
|
|
3941
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
3950
3942
|
}
|
|
3951
3943
|
return t;
|
|
3952
3944
|
}(Ce)
|
|
@@ -3954,121 +3946,121 @@ var Ce = (
|
|
|
3954
3946
|
(function(e) {
|
|
3955
3947
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3956
3948
|
})(A || (A = {}));
|
|
3957
|
-
function
|
|
3958
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3959
|
-
var
|
|
3960
|
-
return !
|
|
3949
|
+
function Ti(e) {
|
|
3950
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3951
|
+
var n = t[t.length - 1];
|
|
3952
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3961
3953
|
}, []);
|
|
3962
3954
|
}
|
|
3963
|
-
function
|
|
3955
|
+
function Hi(e) {
|
|
3964
3956
|
return typeof e == "function";
|
|
3965
3957
|
}
|
|
3966
|
-
function we(e, t,
|
|
3967
|
-
if (e.length === 1 &&
|
|
3958
|
+
function we(e, t, r, n, i, o, a) {
|
|
3959
|
+
if (e.length === 1 && xt(e[0]))
|
|
3968
3960
|
return [
|
|
3969
3961
|
{
|
|
3970
3962
|
type: A.literal,
|
|
3971
3963
|
value: e[0].value
|
|
3972
3964
|
}
|
|
3973
3965
|
];
|
|
3974
|
-
for (var
|
|
3966
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3975
3967
|
var h = u[l];
|
|
3976
|
-
if (
|
|
3977
|
-
|
|
3968
|
+
if (xt(h)) {
|
|
3969
|
+
s.push({
|
|
3978
3970
|
type: A.literal,
|
|
3979
3971
|
value: h.value
|
|
3980
3972
|
});
|
|
3981
3973
|
continue;
|
|
3982
3974
|
}
|
|
3983
|
-
if (
|
|
3984
|
-
typeof
|
|
3975
|
+
if (qn(h)) {
|
|
3976
|
+
typeof o == "number" && s.push({
|
|
3985
3977
|
type: A.literal,
|
|
3986
|
-
value:
|
|
3978
|
+
value: r.getNumberFormat(t).format(o)
|
|
3987
3979
|
});
|
|
3988
3980
|
continue;
|
|
3989
3981
|
}
|
|
3990
|
-
var
|
|
3991
|
-
if (!(i &&
|
|
3992
|
-
throw new
|
|
3993
|
-
var
|
|
3994
|
-
if (
|
|
3995
|
-
(!
|
|
3996
|
-
type: typeof
|
|
3997
|
-
value:
|
|
3982
|
+
var c = h.value;
|
|
3983
|
+
if (!(i && c in i))
|
|
3984
|
+
throw new Si(c, a);
|
|
3985
|
+
var f = i[c];
|
|
3986
|
+
if (zn(h)) {
|
|
3987
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3988
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3989
|
+
value: f
|
|
3998
3990
|
});
|
|
3999
3991
|
continue;
|
|
4000
3992
|
}
|
|
4001
|
-
if (
|
|
4002
|
-
var p = typeof h.style == "string" ?
|
|
4003
|
-
|
|
3993
|
+
if (ar(h)) {
|
|
3994
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3995
|
+
s.push({
|
|
4004
3996
|
type: A.literal,
|
|
4005
|
-
value:
|
|
3997
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
4006
3998
|
});
|
|
4007
3999
|
continue;
|
|
4008
4000
|
}
|
|
4009
|
-
if (
|
|
4010
|
-
var p = typeof h.style == "string" ?
|
|
4011
|
-
|
|
4001
|
+
if (ur(h)) {
|
|
4002
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
4003
|
+
s.push({
|
|
4012
4004
|
type: A.literal,
|
|
4013
|
-
value:
|
|
4005
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
4014
4006
|
});
|
|
4015
4007
|
continue;
|
|
4016
4008
|
}
|
|
4017
|
-
if (
|
|
4018
|
-
var p = typeof h.style == "string" ?
|
|
4019
|
-
p && p.scale && (
|
|
4009
|
+
if (sr(h)) {
|
|
4010
|
+
var p = typeof h.style == "string" ? n.number[h.style] : fr(h.style) ? h.style.parsedOptions : void 0;
|
|
4011
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
4020
4012
|
type: A.literal,
|
|
4021
|
-
value:
|
|
4013
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
4022
4014
|
});
|
|
4023
4015
|
continue;
|
|
4024
4016
|
}
|
|
4025
|
-
if (
|
|
4017
|
+
if (cr(h)) {
|
|
4026
4018
|
var d = h.children, m = h.value, E = i[m];
|
|
4027
|
-
if (!
|
|
4028
|
-
throw new
|
|
4029
|
-
var S = we(d, t,
|
|
4019
|
+
if (!Hi(E))
|
|
4020
|
+
throw new wi(m, "function", a);
|
|
4021
|
+
var S = we(d, t, r, n, i, o), H = E(S.map(function(P) {
|
|
4030
4022
|
return P.value;
|
|
4031
4023
|
}));
|
|
4032
|
-
Array.isArray(H) || (H = [H]),
|
|
4024
|
+
Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(P) {
|
|
4033
4025
|
return {
|
|
4034
4026
|
type: typeof P == "string" ? A.literal : A.object,
|
|
4035
4027
|
value: P
|
|
4036
4028
|
};
|
|
4037
4029
|
}));
|
|
4038
4030
|
}
|
|
4039
|
-
if (
|
|
4040
|
-
var T = h.options[
|
|
4031
|
+
if (lr(h)) {
|
|
4032
|
+
var T = h.options[f] || h.options.other;
|
|
4041
4033
|
if (!T)
|
|
4042
|
-
throw new
|
|
4043
|
-
|
|
4034
|
+
throw new Bt(h.value, f, Object.keys(h.options), a);
|
|
4035
|
+
s.push.apply(s, we(T.value, t, r, n, i));
|
|
4044
4036
|
continue;
|
|
4045
4037
|
}
|
|
4046
|
-
if (
|
|
4047
|
-
var T = h.options["=".concat(
|
|
4038
|
+
if (hr(h)) {
|
|
4039
|
+
var T = h.options["=".concat(f)];
|
|
4048
4040
|
if (!T) {
|
|
4049
4041
|
if (!Intl.PluralRules)
|
|
4050
4042
|
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
4051
4043
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4052
|
-
`,
|
|
4053
|
-
var O =
|
|
4044
|
+
`, re.MISSING_INTL_API, a);
|
|
4045
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
4054
4046
|
T = h.options[O] || h.options.other;
|
|
4055
4047
|
}
|
|
4056
4048
|
if (!T)
|
|
4057
|
-
throw new
|
|
4058
|
-
|
|
4049
|
+
throw new Bt(h.value, f, Object.keys(h.options), a);
|
|
4050
|
+
s.push.apply(s, we(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
4059
4051
|
continue;
|
|
4060
4052
|
}
|
|
4061
4053
|
}
|
|
4062
|
-
return
|
|
4054
|
+
return Ti(s);
|
|
4063
4055
|
}
|
|
4064
|
-
function
|
|
4065
|
-
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
4066
|
-
return n
|
|
4056
|
+
function Pi(e, t) {
|
|
4057
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4058
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
4067
4059
|
}, {})) : e;
|
|
4068
4060
|
}
|
|
4069
|
-
function
|
|
4070
|
-
return t ? Object.keys(e).reduce(function(
|
|
4071
|
-
return n
|
|
4061
|
+
function Ai(e, t) {
|
|
4062
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4063
|
+
return r[n] = Pi(e[n], t[n]), r;
|
|
4072
4064
|
}, v({}, e)) : e;
|
|
4073
4065
|
}
|
|
4074
4066
|
function Fe(e) {
|
|
@@ -4078,84 +4070,84 @@ function Fe(e) {
|
|
|
4078
4070
|
get: function(t) {
|
|
4079
4071
|
return e[t];
|
|
4080
4072
|
},
|
|
4081
|
-
set: function(t,
|
|
4082
|
-
e[t] =
|
|
4073
|
+
set: function(t, r) {
|
|
4074
|
+
e[t] = r;
|
|
4083
4075
|
}
|
|
4084
4076
|
};
|
|
4085
4077
|
}
|
|
4086
4078
|
};
|
|
4087
4079
|
}
|
|
4088
|
-
function
|
|
4080
|
+
function Bi(e) {
|
|
4089
4081
|
return e === void 0 && (e = {
|
|
4090
4082
|
number: {},
|
|
4091
4083
|
dateTime: {},
|
|
4092
4084
|
pluralRules: {}
|
|
4093
4085
|
}), {
|
|
4094
4086
|
getNumberFormat: De(function() {
|
|
4095
|
-
for (var t,
|
|
4096
|
-
n
|
|
4097
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0],
|
|
4087
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4088
|
+
r[n] = arguments[n];
|
|
4089
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
4098
4090
|
}, {
|
|
4099
4091
|
cache: Fe(e.number),
|
|
4100
4092
|
strategy: Ue.variadic
|
|
4101
4093
|
}),
|
|
4102
4094
|
getDateTimeFormat: De(function() {
|
|
4103
|
-
for (var t,
|
|
4104
|
-
n
|
|
4105
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0],
|
|
4095
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4096
|
+
r[n] = arguments[n];
|
|
4097
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
4106
4098
|
}, {
|
|
4107
4099
|
cache: Fe(e.dateTime),
|
|
4108
4100
|
strategy: Ue.variadic
|
|
4109
4101
|
}),
|
|
4110
4102
|
getPluralRules: De(function() {
|
|
4111
|
-
for (var t,
|
|
4112
|
-
n
|
|
4113
|
-
return new ((t = Intl.PluralRules).bind.apply(t, K([void 0],
|
|
4103
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4104
|
+
r[n] = arguments[n];
|
|
4105
|
+
return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
|
|
4114
4106
|
}, {
|
|
4115
4107
|
cache: Fe(e.pluralRules),
|
|
4116
4108
|
strategy: Ue.variadic
|
|
4117
4109
|
})
|
|
4118
4110
|
};
|
|
4119
4111
|
}
|
|
4120
|
-
var
|
|
4112
|
+
var Oi = (
|
|
4121
4113
|
/** @class */
|
|
4122
4114
|
function() {
|
|
4123
|
-
function e(t,
|
|
4124
|
-
|
|
4125
|
-
var
|
|
4115
|
+
function e(t, r, n, i) {
|
|
4116
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4117
|
+
var o = this;
|
|
4126
4118
|
if (this.formatterCache = {
|
|
4127
4119
|
number: {},
|
|
4128
4120
|
dateTime: {},
|
|
4129
4121
|
pluralRules: {}
|
|
4130
4122
|
}, this.format = function(l) {
|
|
4131
|
-
var u =
|
|
4123
|
+
var u = o.formatToParts(l);
|
|
4132
4124
|
if (u.length === 1)
|
|
4133
4125
|
return u[0].value;
|
|
4134
|
-
var h = u.reduce(function(
|
|
4135
|
-
return !
|
|
4126
|
+
var h = u.reduce(function(c, f) {
|
|
4127
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4136
4128
|
}, []);
|
|
4137
4129
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4138
4130
|
}, this.formatToParts = function(l) {
|
|
4139
|
-
return we(
|
|
4131
|
+
return we(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4140
4132
|
}, this.resolvedOptions = function() {
|
|
4141
4133
|
var l;
|
|
4142
4134
|
return {
|
|
4143
|
-
locale: ((l =
|
|
4135
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4144
4136
|
};
|
|
4145
4137
|
}, this.getAst = function() {
|
|
4146
|
-
return
|
|
4147
|
-
}, this.locales =
|
|
4138
|
+
return o.ast;
|
|
4139
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4148
4140
|
if (this.message = t, !e.__parse)
|
|
4149
4141
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4150
4142
|
var a = i || {};
|
|
4151
4143
|
a.formatters;
|
|
4152
|
-
var
|
|
4153
|
-
this.ast = e.__parse(t, v(v({},
|
|
4144
|
+
var s = un(a, ["formatters"]);
|
|
4145
|
+
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
4154
4146
|
} else
|
|
4155
4147
|
this.ast = t;
|
|
4156
4148
|
if (!Array.isArray(this.ast))
|
|
4157
4149
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4158
|
-
this.formats =
|
|
4150
|
+
this.formats = Ai(e.formats, n), this.formatters = i && i.formatters || Bi(this.formatterCache);
|
|
4159
4151
|
}
|
|
4160
4152
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4161
4153
|
get: function() {
|
|
@@ -4165,10 +4157,10 @@ var Ii = (
|
|
|
4165
4157
|
configurable: !0
|
|
4166
4158
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4167
4159
|
if (!(typeof Intl.Locale > "u")) {
|
|
4168
|
-
var
|
|
4169
|
-
return
|
|
4160
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4161
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4170
4162
|
}
|
|
4171
|
-
}, e.__parse =
|
|
4163
|
+
}, e.__parse = xi, e.formats = {
|
|
4172
4164
|
number: {
|
|
4173
4165
|
integer: {
|
|
4174
4166
|
maximumFractionDigits: 0
|
|
@@ -4229,113 +4221,113 @@ var Ii = (
|
|
|
4229
4221
|
}, e;
|
|
4230
4222
|
}()
|
|
4231
4223
|
);
|
|
4232
|
-
function
|
|
4224
|
+
function Ii(e, t) {
|
|
4233
4225
|
if (t == null)
|
|
4234
4226
|
return;
|
|
4235
4227
|
if (t in e)
|
|
4236
4228
|
return e[t];
|
|
4237
|
-
const
|
|
4238
|
-
let
|
|
4239
|
-
for (let i = 0; i <
|
|
4240
|
-
if (typeof
|
|
4229
|
+
const r = t.split(".");
|
|
4230
|
+
let n = e;
|
|
4231
|
+
for (let i = 0; i < r.length; i++)
|
|
4232
|
+
if (typeof n == "object") {
|
|
4241
4233
|
if (i > 0) {
|
|
4242
|
-
const
|
|
4243
|
-
if (
|
|
4244
|
-
|
|
4234
|
+
const o = r.slice(i, r.length).join(".");
|
|
4235
|
+
if (o in n) {
|
|
4236
|
+
n = n[o];
|
|
4245
4237
|
break;
|
|
4246
4238
|
}
|
|
4247
4239
|
}
|
|
4248
|
-
|
|
4240
|
+
n = n[r[i]];
|
|
4249
4241
|
} else
|
|
4250
|
-
|
|
4251
|
-
return
|
|
4242
|
+
n = void 0;
|
|
4243
|
+
return n;
|
|
4252
4244
|
}
|
|
4253
|
-
const j = {},
|
|
4245
|
+
const j = {}, Ci = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), vr = (e, t) => {
|
|
4254
4246
|
if (t == null)
|
|
4255
4247
|
return;
|
|
4256
4248
|
if (t in j && e in j[t])
|
|
4257
4249
|
return j[t][e];
|
|
4258
|
-
const
|
|
4259
|
-
for (let
|
|
4260
|
-
const i = n
|
|
4261
|
-
if (
|
|
4262
|
-
return
|
|
4250
|
+
const r = Le(t);
|
|
4251
|
+
for (let n = 0; n < r.length; n++) {
|
|
4252
|
+
const i = r[n], o = Ni(i, e);
|
|
4253
|
+
if (o)
|
|
4254
|
+
return Ci(e, t, o);
|
|
4263
4255
|
}
|
|
4264
4256
|
};
|
|
4265
|
-
let
|
|
4257
|
+
let at;
|
|
4266
4258
|
const me = Ie({});
|
|
4267
|
-
function
|
|
4268
|
-
return
|
|
4259
|
+
function Li(e) {
|
|
4260
|
+
return at[e] || null;
|
|
4269
4261
|
}
|
|
4270
|
-
function
|
|
4271
|
-
return e in
|
|
4262
|
+
function Er(e) {
|
|
4263
|
+
return e in at;
|
|
4272
4264
|
}
|
|
4273
|
-
function
|
|
4274
|
-
if (!
|
|
4265
|
+
function Ni(e, t) {
|
|
4266
|
+
if (!Er(e))
|
|
4275
4267
|
return null;
|
|
4276
|
-
const
|
|
4277
|
-
return
|
|
4268
|
+
const r = Li(e);
|
|
4269
|
+
return Ii(r, t);
|
|
4278
4270
|
}
|
|
4279
|
-
function
|
|
4271
|
+
function Mi(e) {
|
|
4280
4272
|
if (e == null)
|
|
4281
4273
|
return;
|
|
4282
4274
|
const t = Le(e);
|
|
4283
|
-
for (let
|
|
4284
|
-
const
|
|
4285
|
-
if (
|
|
4286
|
-
return
|
|
4275
|
+
for (let r = 0; r < t.length; r++) {
|
|
4276
|
+
const n = t[r];
|
|
4277
|
+
if (Er(n))
|
|
4278
|
+
return n;
|
|
4287
4279
|
}
|
|
4288
4280
|
}
|
|
4289
|
-
function
|
|
4290
|
-
delete j[e], me.update((
|
|
4281
|
+
function xr(e, ...t) {
|
|
4282
|
+
delete j[e], me.update((r) => (r[e] = Un.all([r[e] || {}, ...t]), r));
|
|
4291
4283
|
}
|
|
4292
4284
|
ie(
|
|
4293
4285
|
[me],
|
|
4294
4286
|
([e]) => Object.keys(e)
|
|
4295
4287
|
);
|
|
4296
|
-
me.subscribe((e) =>
|
|
4288
|
+
me.subscribe((e) => at = e);
|
|
4297
4289
|
const Se = {};
|
|
4298
|
-
function
|
|
4290
|
+
function Ri(e, t) {
|
|
4299
4291
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4300
4292
|
}
|
|
4301
|
-
function
|
|
4293
|
+
function wr(e) {
|
|
4302
4294
|
return Se[e];
|
|
4303
4295
|
}
|
|
4304
|
-
function
|
|
4296
|
+
function $i(e) {
|
|
4305
4297
|
return Le(e).map((t) => {
|
|
4306
|
-
const
|
|
4307
|
-
return [t,
|
|
4298
|
+
const r = wr(t);
|
|
4299
|
+
return [t, r ? [...r] : []];
|
|
4308
4300
|
}).filter(([, t]) => t.length > 0);
|
|
4309
4301
|
}
|
|
4310
|
-
function
|
|
4302
|
+
function rt(e) {
|
|
4311
4303
|
return e == null ? !1 : Le(e).some(
|
|
4312
4304
|
(t) => {
|
|
4313
|
-
var
|
|
4314
|
-
return (
|
|
4305
|
+
var r;
|
|
4306
|
+
return (r = wr(t)) == null ? void 0 : r.size;
|
|
4315
4307
|
}
|
|
4316
4308
|
);
|
|
4317
4309
|
}
|
|
4318
|
-
function
|
|
4310
|
+
function Di(e, t) {
|
|
4319
4311
|
return Promise.all(
|
|
4320
|
-
t.map((
|
|
4321
|
-
).then((
|
|
4312
|
+
t.map((n) => (Ri(e, n), n().then((i) => i.default || i)))
|
|
4313
|
+
).then((n) => xr(e, ...n));
|
|
4322
4314
|
}
|
|
4323
4315
|
const ue = {};
|
|
4324
|
-
function
|
|
4325
|
-
if (!
|
|
4316
|
+
function Sr(e) {
|
|
4317
|
+
if (!rt(e))
|
|
4326
4318
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4327
|
-
const t =
|
|
4319
|
+
const t = $i(e);
|
|
4328
4320
|
return ue[e] = Promise.all(
|
|
4329
4321
|
t.map(
|
|
4330
|
-
([
|
|
4322
|
+
([r, n]) => Di(r, n)
|
|
4331
4323
|
)
|
|
4332
4324
|
).then(() => {
|
|
4333
|
-
if (
|
|
4334
|
-
return
|
|
4325
|
+
if (rt(e))
|
|
4326
|
+
return Sr(e);
|
|
4335
4327
|
delete ue[e];
|
|
4336
4328
|
}), ue[e];
|
|
4337
4329
|
}
|
|
4338
|
-
const
|
|
4330
|
+
const Ui = {
|
|
4339
4331
|
number: {
|
|
4340
4332
|
scientific: { notation: "scientific" },
|
|
4341
4333
|
engineering: { notation: "engineering" },
|
|
@@ -4364,140 +4356,140 @@ const Gi = {
|
|
|
4364
4356
|
timeZoneName: "short"
|
|
4365
4357
|
}
|
|
4366
4358
|
}
|
|
4367
|
-
},
|
|
4359
|
+
}, Gi = {
|
|
4368
4360
|
fallbackLocale: null,
|
|
4369
4361
|
loadingDelay: 200,
|
|
4370
|
-
formats:
|
|
4362
|
+
formats: Ui,
|
|
4371
4363
|
warnOnMissingMessages: !0,
|
|
4372
4364
|
handleMissingMessage: void 0,
|
|
4373
4365
|
ignoreTag: !0
|
|
4374
|
-
},
|
|
4375
|
-
function
|
|
4376
|
-
return
|
|
4366
|
+
}, Fi = Gi;
|
|
4367
|
+
function ne() {
|
|
4368
|
+
return Fi;
|
|
4377
4369
|
}
|
|
4378
4370
|
const je = Ie(!1);
|
|
4379
|
-
var
|
|
4380
|
-
for (var
|
|
4381
|
-
|
|
4382
|
-
if (
|
|
4383
|
-
for (var
|
|
4384
|
-
|
|
4371
|
+
var ji = Object.defineProperty, ki = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Wi = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
|
|
4372
|
+
for (var r in t || (t = {}))
|
|
4373
|
+
Xi.call(t, r) && It(e, r, t[r]);
|
|
4374
|
+
if (Ot)
|
|
4375
|
+
for (var r of Ot(t))
|
|
4376
|
+
Wi.call(t, r) && It(e, r, t[r]);
|
|
4385
4377
|
return e;
|
|
4386
|
-
},
|
|
4387
|
-
let
|
|
4378
|
+
}, qi = (e, t) => ki(e, Vi(t));
|
|
4379
|
+
let nt;
|
|
4388
4380
|
const Ae = Ie(null);
|
|
4389
|
-
function
|
|
4390
|
-
return e.split("-").map((t,
|
|
4381
|
+
function Ct(e) {
|
|
4382
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4391
4383
|
}
|
|
4392
|
-
function Le(e, t =
|
|
4393
|
-
const
|
|
4394
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4384
|
+
function Le(e, t = ne().fallbackLocale) {
|
|
4385
|
+
const r = Ct(e);
|
|
4386
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4395
4387
|
}
|
|
4396
4388
|
function W() {
|
|
4397
|
-
return
|
|
4389
|
+
return nt ?? void 0;
|
|
4398
4390
|
}
|
|
4399
4391
|
Ae.subscribe((e) => {
|
|
4400
|
-
|
|
4392
|
+
nt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4401
4393
|
});
|
|
4402
|
-
const
|
|
4403
|
-
if (e &&
|
|
4404
|
-
const { loadingDelay: t } =
|
|
4405
|
-
let
|
|
4406
|
-
return typeof window < "u" && W() != null && t ?
|
|
4394
|
+
const Zi = (e) => {
|
|
4395
|
+
if (e && Mi(e) && rt(e)) {
|
|
4396
|
+
const { loadingDelay: t } = ne();
|
|
4397
|
+
let r;
|
|
4398
|
+
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
4407
4399
|
() => je.set(!0),
|
|
4408
4400
|
t
|
|
4409
|
-
) : je.set(!0),
|
|
4401
|
+
) : je.set(!0), Sr(e).then(() => {
|
|
4410
4402
|
Ae.set(e);
|
|
4411
4403
|
}).finally(() => {
|
|
4412
|
-
clearTimeout(
|
|
4404
|
+
clearTimeout(r), je.set(!1);
|
|
4413
4405
|
});
|
|
4414
4406
|
}
|
|
4415
4407
|
return Ae.set(e);
|
|
4416
|
-
},
|
|
4417
|
-
set:
|
|
4408
|
+
}, oe = qi(zi({}, Ae), {
|
|
4409
|
+
set: Zi
|
|
4418
4410
|
}), Ne = (e) => {
|
|
4419
4411
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4420
|
-
return (
|
|
4421
|
-
const i = JSON.stringify(
|
|
4422
|
-
return i in t ? t[i] : t[i] = e(
|
|
4412
|
+
return (n) => {
|
|
4413
|
+
const i = JSON.stringify(n);
|
|
4414
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4423
4415
|
};
|
|
4424
4416
|
};
|
|
4425
|
-
var
|
|
4426
|
-
for (var
|
|
4427
|
-
|
|
4417
|
+
var Qi = Object.defineProperty, Be = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
|
4418
|
+
for (var r in t || (t = {}))
|
|
4419
|
+
Tr.call(t, r) && Lt(e, r, t[r]);
|
|
4428
4420
|
if (Be)
|
|
4429
|
-
for (var
|
|
4430
|
-
|
|
4421
|
+
for (var r of Be(t))
|
|
4422
|
+
Hr.call(t, r) && Lt(e, r, t[r]);
|
|
4431
4423
|
return e;
|
|
4432
|
-
},
|
|
4433
|
-
var
|
|
4434
|
-
for (var
|
|
4435
|
-
|
|
4424
|
+
}, se = (e, t) => {
|
|
4425
|
+
var r = {};
|
|
4426
|
+
for (var n in e)
|
|
4427
|
+
Tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4436
4428
|
if (e != null && Be)
|
|
4437
|
-
for (var
|
|
4438
|
-
t.indexOf(
|
|
4439
|
-
return
|
|
4429
|
+
for (var n of Be(e))
|
|
4430
|
+
t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
|
|
4431
|
+
return r;
|
|
4440
4432
|
};
|
|
4441
|
-
const
|
|
4442
|
-
const { formats:
|
|
4443
|
-
if (e in
|
|
4444
|
-
return
|
|
4433
|
+
const fe = (e, t) => {
|
|
4434
|
+
const { formats: r } = ne();
|
|
4435
|
+
if (e in r && t in r[e])
|
|
4436
|
+
return r[e][t];
|
|
4445
4437
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4446
|
-
},
|
|
4438
|
+
}, Ji = Ne(
|
|
4447
4439
|
(e) => {
|
|
4448
|
-
var t = e, { locale:
|
|
4449
|
-
if (
|
|
4440
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4441
|
+
if (r == null)
|
|
4450
4442
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4451
|
-
return
|
|
4443
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
4452
4444
|
}
|
|
4453
|
-
),
|
|
4445
|
+
), Yi = Ne(
|
|
4454
4446
|
(e) => {
|
|
4455
|
-
var t = e, { locale:
|
|
4456
|
-
if (
|
|
4447
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4448
|
+
if (r == null)
|
|
4457
4449
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4458
|
-
return
|
|
4450
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4459
4451
|
}
|
|
4460
|
-
),
|
|
4452
|
+
), Ki = Ne(
|
|
4461
4453
|
(e) => {
|
|
4462
|
-
var t = e, { locale:
|
|
4463
|
-
if (
|
|
4454
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4455
|
+
if (r == null)
|
|
4464
4456
|
throw new Error(
|
|
4465
4457
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4466
4458
|
);
|
|
4467
|
-
return
|
|
4459
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4468
4460
|
}
|
|
4469
|
-
),
|
|
4461
|
+
), eo = (e = {}) => {
|
|
4470
4462
|
var t = e, {
|
|
4471
|
-
locale:
|
|
4472
|
-
} = t,
|
|
4463
|
+
locale: r = W()
|
|
4464
|
+
} = t, n = se(t, [
|
|
4473
4465
|
"locale"
|
|
4474
4466
|
]);
|
|
4475
|
-
return
|
|
4476
|
-
},
|
|
4467
|
+
return Ji(ut({ locale: r }, n));
|
|
4468
|
+
}, to = (e = {}) => {
|
|
4477
4469
|
var t = e, {
|
|
4478
|
-
locale:
|
|
4479
|
-
} = t,
|
|
4470
|
+
locale: r = W()
|
|
4471
|
+
} = t, n = se(t, [
|
|
4480
4472
|
"locale"
|
|
4481
4473
|
]);
|
|
4482
|
-
return
|
|
4483
|
-
},
|
|
4474
|
+
return Yi(ut({ locale: r }, n));
|
|
4475
|
+
}, ro = (e = {}) => {
|
|
4484
4476
|
var t = e, {
|
|
4485
|
-
locale:
|
|
4486
|
-
} = t,
|
|
4477
|
+
locale: r = W()
|
|
4478
|
+
} = t, n = se(t, [
|
|
4487
4479
|
"locale"
|
|
4488
4480
|
]);
|
|
4489
|
-
return
|
|
4490
|
-
},
|
|
4481
|
+
return Ki(ut({ locale: r }, n));
|
|
4482
|
+
}, no = Ne(
|
|
4491
4483
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4492
|
-
(e, t = W()) => new
|
|
4493
|
-
ignoreTag:
|
|
4484
|
+
(e, t = W()) => new Oi(e, t, ne().formats, {
|
|
4485
|
+
ignoreTag: ne().ignoreTag
|
|
4494
4486
|
})
|
|
4495
|
-
),
|
|
4496
|
-
var
|
|
4487
|
+
), io = (e, t = {}) => {
|
|
4488
|
+
var r, n, i, o;
|
|
4497
4489
|
let a = t;
|
|
4498
4490
|
typeof e == "object" && (a = e, e = a.id);
|
|
4499
4491
|
const {
|
|
4500
|
-
values:
|
|
4492
|
+
values: s,
|
|
4501
4493
|
locale: l = W(),
|
|
4502
4494
|
default: u
|
|
4503
4495
|
} = a;
|
|
@@ -4505,60 +4497,60 @@ const ce = (e, t) => {
|
|
|
4505
4497
|
throw new Error(
|
|
4506
4498
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4507
4499
|
);
|
|
4508
|
-
let h =
|
|
4500
|
+
let h = vr(e, l);
|
|
4509
4501
|
if (!h)
|
|
4510
|
-
h = (
|
|
4502
|
+
h = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4511
4503
|
else if (typeof h != "string")
|
|
4512
4504
|
return console.warn(
|
|
4513
4505
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4514
4506
|
), h;
|
|
4515
|
-
if (!
|
|
4507
|
+
if (!s)
|
|
4516
4508
|
return h;
|
|
4517
|
-
let
|
|
4509
|
+
let c = h;
|
|
4518
4510
|
try {
|
|
4519
|
-
|
|
4520
|
-
} catch (
|
|
4521
|
-
|
|
4511
|
+
c = no(h, l).format(s);
|
|
4512
|
+
} catch (f) {
|
|
4513
|
+
f instanceof Error && console.warn(
|
|
4522
4514
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4523
|
-
|
|
4515
|
+
f.message
|
|
4524
4516
|
);
|
|
4525
4517
|
}
|
|
4526
|
-
return
|
|
4527
|
-
},
|
|
4528
|
-
ie([
|
|
4529
|
-
ie([
|
|
4530
|
-
ie([
|
|
4531
|
-
ie([
|
|
4532
|
-
window.emWidgets = { topic:
|
|
4533
|
-
const
|
|
4534
|
-
function
|
|
4535
|
-
const
|
|
4536
|
-
return
|
|
4537
|
-
if (
|
|
4538
|
-
return
|
|
4539
|
-
}) : t = e.filter((
|
|
4540
|
-
if (
|
|
4541
|
-
return
|
|
4518
|
+
return c;
|
|
4519
|
+
}, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = W()) => vr(e, t), lo = ie([oe, me], () => io);
|
|
4520
|
+
ie([oe], () => oo);
|
|
4521
|
+
ie([oe], () => so);
|
|
4522
|
+
ie([oe], () => ao);
|
|
4523
|
+
ie([oe, me], () => uo);
|
|
4524
|
+
window.emWidgets = { topic: xn };
|
|
4525
|
+
const Pr = (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)), ho = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4526
|
+
function Go(e, t) {
|
|
4527
|
+
const r = window.navigator.userAgent;
|
|
4528
|
+
return Pr(r) ? t = e.filter((n) => {
|
|
4529
|
+
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
4530
|
+
return n;
|
|
4531
|
+
}) : t = e.filter((n) => {
|
|
4532
|
+
if (n.gameModel && n.gameModel.platform.includes("PC"))
|
|
4533
|
+
return n;
|
|
4542
4534
|
}), t;
|
|
4543
4535
|
}
|
|
4544
|
-
function
|
|
4545
|
-
return new Promise((
|
|
4536
|
+
function Fo(e, t) {
|
|
4537
|
+
return new Promise((r, n) => {
|
|
4546
4538
|
const i = new Headers();
|
|
4547
4539
|
i.append("X-SessionID", t);
|
|
4548
|
-
const
|
|
4540
|
+
const o = {
|
|
4549
4541
|
method: "GET",
|
|
4550
4542
|
headers: i
|
|
4551
4543
|
};
|
|
4552
|
-
fetch(`${e}/v1/player/session/player`,
|
|
4544
|
+
fetch(`${e}/v1/player/session/player`, o).then((a) => a.json()).then((a) => r(a)).catch((a) => n(a));
|
|
4553
4545
|
});
|
|
4554
4546
|
}
|
|
4555
|
-
function
|
|
4556
|
-
|
|
4547
|
+
function Nt(e, t) {
|
|
4548
|
+
xr(e, t);
|
|
4557
4549
|
}
|
|
4558
|
-
function
|
|
4559
|
-
|
|
4550
|
+
function co(e) {
|
|
4551
|
+
oe.set(e);
|
|
4560
4552
|
}
|
|
4561
|
-
const
|
|
4553
|
+
const Mt = {
|
|
4562
4554
|
en: {
|
|
4563
4555
|
error: "500 Error - Internal Server Error"
|
|
4564
4556
|
},
|
|
@@ -4580,140 +4572,140 @@ const Rt = {
|
|
|
4580
4572
|
};
|
|
4581
4573
|
if (typeof window < "u") {
|
|
4582
4574
|
let e = function(t) {
|
|
4583
|
-
return function(...
|
|
4575
|
+
return function(...r) {
|
|
4584
4576
|
try {
|
|
4585
|
-
return t.apply(this,
|
|
4586
|
-
} catch (
|
|
4587
|
-
if (
|
|
4577
|
+
return t.apply(this, r);
|
|
4578
|
+
} catch (n) {
|
|
4579
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
4588
4580
|
return !1;
|
|
4589
|
-
throw
|
|
4581
|
+
throw n;
|
|
4590
4582
|
}
|
|
4591
4583
|
};
|
|
4592
4584
|
};
|
|
4593
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4585
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-B7hChP4v.js").then(({ default: t }) => {
|
|
4594
4586
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4595
4587
|
});
|
|
4596
4588
|
}
|
|
4597
4589
|
if (typeof window < "u") {
|
|
4598
4590
|
let e = function(t) {
|
|
4599
|
-
return function(...
|
|
4591
|
+
return function(...r) {
|
|
4600
4592
|
try {
|
|
4601
|
-
return t.apply(this,
|
|
4602
|
-
} catch (
|
|
4603
|
-
if (
|
|
4593
|
+
return t.apply(this, r);
|
|
4594
|
+
} catch (n) {
|
|
4595
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
4604
4596
|
return !1;
|
|
4605
|
-
throw
|
|
4597
|
+
throw n;
|
|
4606
4598
|
}
|
|
4607
4599
|
};
|
|
4608
4600
|
};
|
|
4609
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-
|
|
4601
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-BNNa1Jdv.js").then(({ default: t }) => {
|
|
4610
4602
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4611
4603
|
});
|
|
4612
4604
|
}
|
|
4613
|
-
function
|
|
4614
|
-
|
|
4605
|
+
function fo(e) {
|
|
4606
|
+
Mr(e, "svelte-1bqenf9", `.CasinoCalendarItem.svelte-1bqenf9{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-1bqenf9{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-1bqenf9{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-1bqenf9{display:block;width:80px;height:80px;margin:0 auto
|
|
4615
4607
|
}.LoadingSpinner.svelte-1bqenf9:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:svelte-1bqenf9-LoadingSpinner 1.2s linear infinite}@keyframes svelte-1bqenf9-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4616
4608
|
}
|
|
4617
|
-
function
|
|
4618
|
-
const
|
|
4619
|
-
return
|
|
4609
|
+
function Rt(e, t, r) {
|
|
4610
|
+
const n = e.slice();
|
|
4611
|
+
return n[26] = t[r], n[28] = r, n;
|
|
4620
4612
|
}
|
|
4621
|
-
function
|
|
4622
|
-
let t,
|
|
4613
|
+
function po(e) {
|
|
4614
|
+
let t, r, n, i = dt(
|
|
4623
4615
|
/*calendarCollections*/
|
|
4624
4616
|
e[5]
|
|
4625
|
-
),
|
|
4626
|
-
for (let
|
|
4627
|
-
s
|
|
4617
|
+
), o = [];
|
|
4618
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4619
|
+
o[s] = $t(Rt(e, i, s));
|
|
4628
4620
|
let a = (
|
|
4629
4621
|
/*calendarModalOpened*/
|
|
4630
|
-
e[10] == !0 &&
|
|
4622
|
+
e[10] == !0 && Dt(e)
|
|
4631
4623
|
);
|
|
4632
4624
|
return {
|
|
4633
4625
|
c() {
|
|
4634
4626
|
t = R("div");
|
|
4635
|
-
for (let
|
|
4636
|
-
s
|
|
4637
|
-
|
|
4627
|
+
for (let s = 0; s < o.length; s += 1)
|
|
4628
|
+
o[s].c();
|
|
4629
|
+
r = Ur(), a && a.c(), X(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4638
4630
|
(e[9] ? "Mobile" : "") + " svelte-1bqenf9");
|
|
4639
4631
|
},
|
|
4640
|
-
m(
|
|
4641
|
-
V(
|
|
4642
|
-
for (let u = 0; u <
|
|
4643
|
-
|
|
4644
|
-
pe(t,
|
|
4632
|
+
m(s, l) {
|
|
4633
|
+
V(s, t, l);
|
|
4634
|
+
for (let u = 0; u < o.length; u += 1)
|
|
4635
|
+
o[u] && o[u].m(t, null);
|
|
4636
|
+
pe(t, r), a && a.m(t, null);
|
|
4645
4637
|
},
|
|
4646
|
-
p(
|
|
4638
|
+
p(s, l) {
|
|
4647
4639
|
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
|
|
4648
4640
|
47) {
|
|
4649
|
-
i =
|
|
4641
|
+
i = dt(
|
|
4650
4642
|
/*calendarCollections*/
|
|
4651
|
-
|
|
4643
|
+
s[5]
|
|
4652
4644
|
);
|
|
4653
4645
|
let u;
|
|
4654
4646
|
for (u = 0; u < i.length; u += 1) {
|
|
4655
|
-
const h =
|
|
4656
|
-
|
|
4647
|
+
const h = Rt(s, i, u);
|
|
4648
|
+
o[u] ? o[u].p(h, l) : (o[u] = $t(h), o[u].c(), o[u].m(t, r));
|
|
4657
4649
|
}
|
|
4658
|
-
for (; u <
|
|
4659
|
-
|
|
4660
|
-
|
|
4650
|
+
for (; u < o.length; u += 1)
|
|
4651
|
+
o[u].d(1);
|
|
4652
|
+
o.length = i.length;
|
|
4661
4653
|
}
|
|
4662
4654
|
/*calendarModalOpened*/
|
|
4663
|
-
|
|
4664
|
-
512 &&
|
|
4665
|
-
(
|
|
4655
|
+
s[10] == !0 ? a ? a.p(s, l) : (a = Dt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
|
|
4656
|
+
512 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4657
|
+
(s[9] ? "Mobile" : "") + " svelte-1bqenf9") && X(t, "class", n);
|
|
4666
4658
|
},
|
|
4667
|
-
d(
|
|
4668
|
-
|
|
4659
|
+
d(s) {
|
|
4660
|
+
s && $(t), $r(o, s), a && a.d();
|
|
4669
4661
|
}
|
|
4670
4662
|
};
|
|
4671
4663
|
}
|
|
4672
|
-
function
|
|
4664
|
+
function mo(e) {
|
|
4673
4665
|
let t;
|
|
4674
4666
|
return {
|
|
4675
4667
|
c() {
|
|
4676
4668
|
t = R("div"), X(t, "class", "LoadingSpinner svelte-1bqenf9");
|
|
4677
4669
|
},
|
|
4678
|
-
m(
|
|
4679
|
-
V(
|
|
4670
|
+
m(r, n) {
|
|
4671
|
+
V(r, t, n);
|
|
4680
4672
|
},
|
|
4681
4673
|
p: B,
|
|
4682
|
-
d(
|
|
4683
|
-
|
|
4674
|
+
d(r) {
|
|
4675
|
+
r && $(t);
|
|
4684
4676
|
}
|
|
4685
4677
|
};
|
|
4686
4678
|
}
|
|
4687
|
-
function
|
|
4688
|
-
let t,
|
|
4679
|
+
function bo(e) {
|
|
4680
|
+
let t, r = (
|
|
4689
4681
|
/*$_*/
|
|
4690
4682
|
e[11]("error") + ""
|
|
4691
|
-
),
|
|
4683
|
+
), n;
|
|
4692
4684
|
return {
|
|
4693
4685
|
c() {
|
|
4694
|
-
t = R("p"),
|
|
4686
|
+
t = R("p"), n = st(r), X(t, "class", "SearchLoading");
|
|
4695
4687
|
},
|
|
4696
|
-
m(i,
|
|
4697
|
-
V(i, t,
|
|
4688
|
+
m(i, o) {
|
|
4689
|
+
V(i, t, o), pe(t, n);
|
|
4698
4690
|
},
|
|
4699
|
-
p(i,
|
|
4700
|
-
|
|
4701
|
-
2048 &&
|
|
4702
|
-
i[11]("error") + "") &&
|
|
4691
|
+
p(i, o) {
|
|
4692
|
+
o & /*$_*/
|
|
4693
|
+
2048 && r !== (r = /*$_*/
|
|
4694
|
+
i[11]("error") + "") && Fr(n, r);
|
|
4703
4695
|
},
|
|
4704
4696
|
d(i) {
|
|
4705
4697
|
i && $(t);
|
|
4706
4698
|
}
|
|
4707
4699
|
};
|
|
4708
4700
|
}
|
|
4709
|
-
function
|
|
4710
|
-
let t,
|
|
4701
|
+
function $t(e) {
|
|
4702
|
+
let t, r, n, i, o, a;
|
|
4711
4703
|
return {
|
|
4712
4704
|
c() {
|
|
4713
|
-
t = R("casino-calendar-daily-item"), y(t, "dailybackground",
|
|
4714
|
-
e[26].dailyBackground), y(t, "dailyicon",
|
|
4705
|
+
t = R("casino-calendar-daily-item"), y(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4706
|
+
e[26].dailyBackground), y(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4715
4707
|
e[26].dailyIcon), y(t, "dailyday", i = /*dailyCalendarData*/
|
|
4716
|
-
e[26].dailyDay), y(t, "dailydescription",
|
|
4708
|
+
e[26].dailyDay), y(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4717
4709
|
e[26].dailyDescription), y(t, "dailybuttontitle", a = /*dailyCalendarData*/
|
|
4718
4710
|
e[26].dailyButtonTitle), y(
|
|
4719
4711
|
t,
|
|
@@ -4742,156 +4734,156 @@ function Dt(e) {
|
|
|
4742
4734
|
e[3]
|
|
4743
4735
|
);
|
|
4744
4736
|
},
|
|
4745
|
-
m(
|
|
4746
|
-
V(
|
|
4737
|
+
m(s, l) {
|
|
4738
|
+
V(s, t, l);
|
|
4747
4739
|
},
|
|
4748
|
-
p(
|
|
4740
|
+
p(s, l) {
|
|
4749
4741
|
l & /*calendarCollections*/
|
|
4750
|
-
32 && n !== (n = /*dailyCalendarData*/
|
|
4751
|
-
o[26].dailyBackground) && y(t, "dailybackground", n), l & /*calendarCollections*/
|
|
4752
4742
|
32 && r !== (r = /*dailyCalendarData*/
|
|
4753
|
-
|
|
4743
|
+
s[26].dailyBackground) && y(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4744
|
+
32 && n !== (n = /*dailyCalendarData*/
|
|
4745
|
+
s[26].dailyIcon) && y(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4754
4746
|
32 && i !== (i = /*dailyCalendarData*/
|
|
4755
|
-
|
|
4756
|
-
32 &&
|
|
4757
|
-
|
|
4747
|
+
s[26].dailyDay) && y(t, "dailyday", i), l & /*calendarCollections*/
|
|
4748
|
+
32 && o !== (o = /*dailyCalendarData*/
|
|
4749
|
+
s[26].dailyDescription) && y(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4758
4750
|
32 && a !== (a = /*dailyCalendarData*/
|
|
4759
|
-
|
|
4751
|
+
s[26].dailyButtonTitle) && y(t, "dailybuttontitle", a), l & /*lang*/
|
|
4760
4752
|
1 && y(
|
|
4761
4753
|
t,
|
|
4762
4754
|
"lang",
|
|
4763
4755
|
/*lang*/
|
|
4764
|
-
|
|
4756
|
+
s[0]
|
|
4765
4757
|
), l & /*clientstyling*/
|
|
4766
4758
|
2 && y(
|
|
4767
4759
|
t,
|
|
4768
4760
|
"clientstyling",
|
|
4769
4761
|
/*clientstyling*/
|
|
4770
|
-
|
|
4762
|
+
s[1]
|
|
4771
4763
|
), l & /*clientstylingurl*/
|
|
4772
4764
|
4 && y(
|
|
4773
4765
|
t,
|
|
4774
4766
|
"clientstylingurl",
|
|
4775
4767
|
/*clientstylingurl*/
|
|
4776
|
-
|
|
4768
|
+
s[2]
|
|
4777
4769
|
), l & /*translationurl*/
|
|
4778
4770
|
8 && y(
|
|
4779
4771
|
t,
|
|
4780
4772
|
"translationurl",
|
|
4781
4773
|
/*translationurl*/
|
|
4782
|
-
|
|
4774
|
+
s[3]
|
|
4783
4775
|
);
|
|
4784
4776
|
},
|
|
4785
|
-
d(
|
|
4786
|
-
|
|
4777
|
+
d(s) {
|
|
4778
|
+
s && $(t);
|
|
4787
4779
|
}
|
|
4788
4780
|
};
|
|
4789
4781
|
}
|
|
4790
|
-
function
|
|
4791
|
-
let t,
|
|
4782
|
+
function Dt(e) {
|
|
4783
|
+
let t, r, n, i, o, a, s, l;
|
|
4792
4784
|
return {
|
|
4793
4785
|
c() {
|
|
4794
|
-
t = R("div"),
|
|
4786
|
+
t = R("div"), r = R("casino-calendar-daily-details"), y(r, "dailybackground", n = /*calendarCollections*/
|
|
4795
4787
|
e[5][
|
|
4796
4788
|
/*selectedIndex*/
|
|
4797
4789
|
e[6]
|
|
4798
|
-
].dailyBackground), y(
|
|
4790
|
+
].dailyBackground), y(r, "dailybuttontitle", i = /*calendarCollections*/
|
|
4799
4791
|
e[5][
|
|
4800
4792
|
/*selectedIndex*/
|
|
4801
4793
|
e[6]
|
|
4802
|
-
].dailyButtonTitle), y(
|
|
4794
|
+
].dailyButtonTitle), y(r, "dailyday", o = /*calendarCollections*/
|
|
4803
4795
|
e[5][
|
|
4804
4796
|
/*selectedIndex*/
|
|
4805
4797
|
e[6]
|
|
4806
|
-
].dailyDay), y(
|
|
4798
|
+
].dailyDay), y(r, "dailydescription", a = /*calendarCollections*/
|
|
4807
4799
|
e[5][
|
|
4808
4800
|
/*selectedIndex*/
|
|
4809
4801
|
e[6]
|
|
4810
|
-
].dailyDescription), y(
|
|
4802
|
+
].dailyDescription), y(r, "dailyicon", s = /*calendarCollections*/
|
|
4811
4803
|
e[5][
|
|
4812
4804
|
/*selectedIndex*/
|
|
4813
4805
|
e[6]
|
|
4814
|
-
].dailyIcon), y(
|
|
4806
|
+
].dailyIcon), y(r, "dailytitle", l = /*calendarCollections*/
|
|
4815
4807
|
e[5][
|
|
4816
4808
|
/*selectedIndex*/
|
|
4817
4809
|
e[6]
|
|
4818
4810
|
].dailyTitle), y(
|
|
4819
|
-
|
|
4811
|
+
r,
|
|
4820
4812
|
"lang",
|
|
4821
4813
|
/*lang*/
|
|
4822
4814
|
e[0]
|
|
4823
4815
|
), y(
|
|
4824
|
-
|
|
4816
|
+
r,
|
|
4825
4817
|
"clientstyling",
|
|
4826
4818
|
/*clientstyling*/
|
|
4827
4819
|
e[1]
|
|
4828
4820
|
), y(
|
|
4829
|
-
|
|
4821
|
+
r,
|
|
4830
4822
|
"clientstylingurl",
|
|
4831
4823
|
/*clientstylingurl*/
|
|
4832
4824
|
e[2]
|
|
4833
4825
|
), y(
|
|
4834
|
-
|
|
4826
|
+
r,
|
|
4835
4827
|
"translationurl",
|
|
4836
4828
|
/*translationurl*/
|
|
4837
4829
|
e[3]
|
|
4838
4830
|
), X(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
|
|
4839
4831
|
},
|
|
4840
4832
|
m(u, h) {
|
|
4841
|
-
V(u, t, h), pe(t,
|
|
4833
|
+
V(u, t, h), pe(t, r);
|
|
4842
4834
|
},
|
|
4843
4835
|
p(u, h) {
|
|
4844
4836
|
h & /*calendarCollections, selectedIndex*/
|
|
4845
|
-
96 &&
|
|
4837
|
+
96 && n !== (n = /*calendarCollections*/
|
|
4846
4838
|
u[5][
|
|
4847
4839
|
/*selectedIndex*/
|
|
4848
4840
|
u[6]
|
|
4849
|
-
].dailyBackground) && y(
|
|
4841
|
+
].dailyBackground) && y(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
|
|
4850
4842
|
96 && i !== (i = /*calendarCollections*/
|
|
4851
4843
|
u[5][
|
|
4852
4844
|
/*selectedIndex*/
|
|
4853
4845
|
u[6]
|
|
4854
|
-
].dailyButtonTitle) && y(
|
|
4855
|
-
96 &&
|
|
4846
|
+
].dailyButtonTitle) && y(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4847
|
+
96 && o !== (o = /*calendarCollections*/
|
|
4856
4848
|
u[5][
|
|
4857
4849
|
/*selectedIndex*/
|
|
4858
4850
|
u[6]
|
|
4859
|
-
].dailyDay) && y(
|
|
4851
|
+
].dailyDay) && y(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4860
4852
|
96 && a !== (a = /*calendarCollections*/
|
|
4861
4853
|
u[5][
|
|
4862
4854
|
/*selectedIndex*/
|
|
4863
4855
|
u[6]
|
|
4864
|
-
].dailyDescription) && y(
|
|
4865
|
-
96 &&
|
|
4856
|
+
].dailyDescription) && y(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
|
|
4857
|
+
96 && s !== (s = /*calendarCollections*/
|
|
4866
4858
|
u[5][
|
|
4867
4859
|
/*selectedIndex*/
|
|
4868
4860
|
u[6]
|
|
4869
|
-
].dailyIcon) && y(
|
|
4861
|
+
].dailyIcon) && y(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
|
|
4870
4862
|
96 && l !== (l = /*calendarCollections*/
|
|
4871
4863
|
u[5][
|
|
4872
4864
|
/*selectedIndex*/
|
|
4873
4865
|
u[6]
|
|
4874
|
-
].dailyTitle) && y(
|
|
4866
|
+
].dailyTitle) && y(r, "dailytitle", l), h & /*lang*/
|
|
4875
4867
|
1 && y(
|
|
4876
|
-
|
|
4868
|
+
r,
|
|
4877
4869
|
"lang",
|
|
4878
4870
|
/*lang*/
|
|
4879
4871
|
u[0]
|
|
4880
4872
|
), h & /*clientstyling*/
|
|
4881
4873
|
2 && y(
|
|
4882
|
-
|
|
4874
|
+
r,
|
|
4883
4875
|
"clientstyling",
|
|
4884
4876
|
/*clientstyling*/
|
|
4885
4877
|
u[1]
|
|
4886
4878
|
), h & /*clientstylingurl*/
|
|
4887
4879
|
4 && y(
|
|
4888
|
-
|
|
4880
|
+
r,
|
|
4889
4881
|
"clientstylingurl",
|
|
4890
4882
|
/*clientstylingurl*/
|
|
4891
4883
|
u[2]
|
|
4892
4884
|
), h & /*translationurl*/
|
|
4893
4885
|
8 && y(
|
|
4894
|
-
|
|
4886
|
+
r,
|
|
4895
4887
|
"translationurl",
|
|
4896
4888
|
/*translationurl*/
|
|
4897
4889
|
u[3]
|
|
@@ -4902,76 +4894,76 @@ function Ut(e) {
|
|
|
4902
4894
|
}
|
|
4903
4895
|
};
|
|
4904
4896
|
}
|
|
4905
|
-
function
|
|
4897
|
+
function yo(e) {
|
|
4906
4898
|
let t;
|
|
4907
|
-
function
|
|
4899
|
+
function r(o, a) {
|
|
4908
4900
|
if (
|
|
4909
4901
|
/*hasErrors*/
|
|
4910
|
-
|
|
4911
|
-
) return
|
|
4902
|
+
o[8]
|
|
4903
|
+
) return bo;
|
|
4912
4904
|
if (
|
|
4913
4905
|
/*isLoading*/
|
|
4914
|
-
|
|
4915
|
-
) return
|
|
4906
|
+
o[7]
|
|
4907
|
+
) return mo;
|
|
4916
4908
|
if (
|
|
4917
4909
|
/*calendarCollections*/
|
|
4918
|
-
|
|
4919
|
-
) return
|
|
4910
|
+
o[5]?.length
|
|
4911
|
+
) return po;
|
|
4920
4912
|
}
|
|
4921
|
-
let
|
|
4913
|
+
let n = r(e), i = n && n(e);
|
|
4922
4914
|
return {
|
|
4923
4915
|
c() {
|
|
4924
4916
|
t = R("div"), i && i.c();
|
|
4925
4917
|
},
|
|
4926
|
-
m(
|
|
4927
|
-
V(
|
|
4918
|
+
m(o, a) {
|
|
4919
|
+
V(o, t, a), i && i.m(t, null), e[15](t);
|
|
4928
4920
|
},
|
|
4929
|
-
p(
|
|
4930
|
-
|
|
4921
|
+
p(o, [a]) {
|
|
4922
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4931
4923
|
},
|
|
4932
4924
|
i: B,
|
|
4933
4925
|
o: B,
|
|
4934
|
-
d(
|
|
4935
|
-
|
|
4926
|
+
d(o) {
|
|
4927
|
+
o && $(t), i && i.d(), e[15](null);
|
|
4936
4928
|
}
|
|
4937
4929
|
};
|
|
4938
4930
|
}
|
|
4939
|
-
function
|
|
4940
|
-
let
|
|
4941
|
-
|
|
4942
|
-
let { cmsendpoint: i = "" } = t, { env:
|
|
4931
|
+
function go(e, t, r) {
|
|
4932
|
+
let n;
|
|
4933
|
+
Cr(e, lo, (b) => r(11, n = b));
|
|
4934
|
+
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, d = !0, m = !1, E = !1, S = window.navigator.userAgent, H = !1;
|
|
4943
4935
|
const T = () => {
|
|
4944
|
-
|
|
4936
|
+
co(s);
|
|
4945
4937
|
};
|
|
4946
|
-
Object.keys(
|
|
4947
|
-
|
|
4938
|
+
Object.keys(Mt).forEach((b) => {
|
|
4939
|
+
Nt(b, Mt[b]);
|
|
4948
4940
|
});
|
|
4949
4941
|
const O = () => {
|
|
4950
4942
|
let b = h;
|
|
4951
4943
|
if (b)
|
|
4952
4944
|
return fetch(b).then((I) => I.json()).then((I) => {
|
|
4953
4945
|
Object.keys(I).forEach((M) => {
|
|
4954
|
-
|
|
4946
|
+
Nt(M, I[M]);
|
|
4955
4947
|
});
|
|
4956
4948
|
}).catch((I) => {
|
|
4957
4949
|
console.log(I);
|
|
4958
4950
|
});
|
|
4959
4951
|
}, P = () => {
|
|
4960
|
-
|
|
4961
|
-
let b = new URL(`${i}/${
|
|
4962
|
-
b.searchParams.append("userRoles", a), b.searchParams.append("env",
|
|
4963
|
-
let I =
|
|
4952
|
+
r(7, d = !0);
|
|
4953
|
+
let b = new URL(`${i}/${s}/daily-calendar`);
|
|
4954
|
+
b.searchParams.append("userRoles", a), b.searchParams.append("env", o);
|
|
4955
|
+
let I = ho(S);
|
|
4964
4956
|
I && (I === "PC" ? b.searchParams.append("device", "dk") : I === "iPad" || I === "iPhone" ? b.searchParams.append("device", "ios") : b.searchParams.append("device", "mtWeb")), fetch(b.href).then((M) => M.json()).then((M) => {
|
|
4965
|
-
|
|
4957
|
+
r(5, f = M);
|
|
4966
4958
|
}).catch((M) => {
|
|
4967
|
-
console.log(M),
|
|
4959
|
+
console.log(M), r(8, m = !0);
|
|
4968
4960
|
}).finally(() => {
|
|
4969
|
-
|
|
4961
|
+
r(7, d = !1);
|
|
4970
4962
|
});
|
|
4971
4963
|
}, C = () => {
|
|
4972
4964
|
P();
|
|
4973
4965
|
}, x = (b) => {
|
|
4974
|
-
b.data && b.data.type == "OpenCalendar" && (
|
|
4966
|
+
b.data && b.data.type == "OpenCalendar" && (r(6, p = b.data.index), r(10, H = !0), window.postMessage(
|
|
4975
4967
|
{
|
|
4976
4968
|
type: "ShowModal",
|
|
4977
4969
|
selectedIndex: p,
|
|
@@ -4980,17 +4972,17 @@ function gs(e, t, n) {
|
|
|
4980
4972
|
window.location.href
|
|
4981
4973
|
), window.postMessage({
|
|
4982
4974
|
type: "DailyEventsData",
|
|
4983
|
-
data:
|
|
4984
|
-
})), b.data && b.data.type == "ModalClosed" &&
|
|
4975
|
+
data: f[p]?.dailyEvents
|
|
4976
|
+
})), b.data && b.data.type == "ModalClosed" && r(10, H = !1);
|
|
4985
4977
|
}, L = () => {
|
|
4986
4978
|
let b = document.createElement("style");
|
|
4987
|
-
b.innerHTML = l,
|
|
4979
|
+
b.innerHTML = l, c.appendChild(b);
|
|
4988
4980
|
}, N = () => {
|
|
4989
4981
|
let b = new URL(u), I = document.createElement("style");
|
|
4990
4982
|
fetch(b.href).then((M) => M.text()).then((M) => {
|
|
4991
4983
|
I.innerHTML = M, setTimeout(
|
|
4992
4984
|
() => {
|
|
4993
|
-
|
|
4985
|
+
c.appendChild(I);
|
|
4994
4986
|
},
|
|
4995
4987
|
1
|
|
4996
4988
|
), setTimeout(
|
|
@@ -5000,50 +4992,50 @@ function gs(e, t, n) {
|
|
|
5000
4992
|
);
|
|
5001
4993
|
});
|
|
5002
4994
|
};
|
|
5003
|
-
|
|
4995
|
+
Zr(() => (window.addEventListener("message", x, !1), Pr(S) && r(9, E = !0), () => {
|
|
5004
4996
|
window.removeEventListener("message", x);
|
|
5005
4997
|
}));
|
|
5006
4998
|
function z(b) {
|
|
5007
4999
|
ke[b ? "unshift" : "push"](() => {
|
|
5008
|
-
|
|
5000
|
+
c = b, r(4, c);
|
|
5009
5001
|
});
|
|
5010
5002
|
}
|
|
5011
5003
|
return e.$$set = (b) => {
|
|
5012
|
-
"cmsendpoint" in b &&
|
|
5004
|
+
"cmsendpoint" in b && r(12, i = b.cmsendpoint), "env" in b && r(13, o = b.env), "userroles" in b && r(14, a = b.userroles), "lang" in b && r(0, s = b.lang), "clientstyling" in b && r(1, l = b.clientstyling), "clientstylingurl" in b && r(2, u = b.clientstylingurl), "translationurl" in b && r(3, h = b.translationurl);
|
|
5013
5005
|
}, e.$$.update = () => {
|
|
5014
5006
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
5015
|
-
28673 && i &&
|
|
5016
|
-
18 && l &&
|
|
5017
|
-
20 && u &&
|
|
5018
|
-
1 &&
|
|
5019
|
-
9 &&
|
|
5007
|
+
28673 && i && s && o && a && C(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
5008
|
+
18 && l && c && L(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
5009
|
+
20 && u && c && N(), e.$$.dirty & /*lang*/
|
|
5010
|
+
1 && s && T(), e.$$.dirty & /*lang, translationurl*/
|
|
5011
|
+
9 && s && h && O();
|
|
5020
5012
|
}, [
|
|
5021
|
-
|
|
5013
|
+
s,
|
|
5022
5014
|
l,
|
|
5023
5015
|
u,
|
|
5024
5016
|
h,
|
|
5025
|
-
f,
|
|
5026
5017
|
c,
|
|
5018
|
+
f,
|
|
5027
5019
|
p,
|
|
5028
5020
|
d,
|
|
5029
5021
|
m,
|
|
5030
5022
|
E,
|
|
5031
5023
|
H,
|
|
5032
|
-
|
|
5024
|
+
n,
|
|
5033
5025
|
i,
|
|
5034
|
-
|
|
5026
|
+
o,
|
|
5035
5027
|
a,
|
|
5036
5028
|
z
|
|
5037
5029
|
];
|
|
5038
5030
|
}
|
|
5039
|
-
class
|
|
5031
|
+
class Ar extends sn {
|
|
5040
5032
|
constructor(t) {
|
|
5041
|
-
super(),
|
|
5033
|
+
super(), nn(
|
|
5042
5034
|
this,
|
|
5043
5035
|
t,
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5036
|
+
go,
|
|
5037
|
+
yo,
|
|
5038
|
+
Gt,
|
|
5047
5039
|
{
|
|
5048
5040
|
cmsendpoint: 12,
|
|
5049
5041
|
env: 13,
|
|
@@ -5053,7 +5045,7 @@ class On extends ar {
|
|
|
5053
5045
|
clientstylingurl: 2,
|
|
5054
5046
|
translationurl: 3
|
|
5055
5047
|
},
|
|
5056
|
-
|
|
5048
|
+
fo
|
|
5057
5049
|
);
|
|
5058
5050
|
}
|
|
5059
5051
|
get cmsendpoint() {
|
|
@@ -5099,68 +5091,68 @@ class On extends ar {
|
|
|
5099
5091
|
this.$$set({ translationurl: t }), D();
|
|
5100
5092
|
}
|
|
5101
5093
|
}
|
|
5102
|
-
|
|
5103
|
-
const
|
|
5094
|
+
on(Ar, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
5095
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5104
5096
|
__proto__: null,
|
|
5105
|
-
default:
|
|
5097
|
+
default: Ar
|
|
5106
5098
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5107
5099
|
export {
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5100
|
+
oe as $,
|
|
5101
|
+
ht as A,
|
|
5102
|
+
Ur as B,
|
|
5103
|
+
ke as C,
|
|
5104
|
+
_o as D,
|
|
5105
|
+
Dr as E,
|
|
5106
|
+
To as F,
|
|
5107
|
+
Ao as G,
|
|
5108
|
+
Io as H,
|
|
5109
|
+
on as I,
|
|
5110
|
+
lo as J,
|
|
5111
|
+
ho as K,
|
|
5120
5112
|
y as L,
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5113
|
+
So as M,
|
|
5114
|
+
Lo as N,
|
|
5115
|
+
Bo as O,
|
|
5116
|
+
Pe as P,
|
|
5125
5117
|
k as Q,
|
|
5126
|
-
|
|
5127
|
-
|
|
5118
|
+
Ho as R,
|
|
5119
|
+
sn as S,
|
|
5128
5120
|
me as T,
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
$
|
|
5121
|
+
Po as U,
|
|
5122
|
+
Co as V,
|
|
5123
|
+
Fo as W,
|
|
5124
|
+
Oo as X,
|
|
5125
|
+
Go as Y,
|
|
5126
|
+
Uo as Z,
|
|
5127
|
+
Do as _,
|
|
5128
|
+
xr as a,
|
|
5129
|
+
Br as a0,
|
|
5130
|
+
$o as a1,
|
|
5139
5131
|
de as a2,
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5132
|
+
jo as a3,
|
|
5133
|
+
Mr as b,
|
|
5134
|
+
Zt as c,
|
|
5135
|
+
$ as d,
|
|
5136
|
+
Mo as e,
|
|
5145
5137
|
D as f,
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5138
|
+
No as g,
|
|
5139
|
+
V as h,
|
|
5140
|
+
nn as i,
|
|
5141
|
+
R as j,
|
|
5142
|
+
Cr as k,
|
|
5143
|
+
Pr as l,
|
|
5144
|
+
Fr as m,
|
|
5145
|
+
B as n,
|
|
5146
|
+
Zr as o,
|
|
5147
|
+
pe as p,
|
|
5148
|
+
st as q,
|
|
5149
|
+
X as r,
|
|
5150
|
+
Gt as s,
|
|
5151
|
+
Ro as t,
|
|
5152
|
+
vo as u,
|
|
5153
|
+
dt as v,
|
|
5154
|
+
$r as w,
|
|
5155
|
+
xo as x,
|
|
5156
|
+
wo as y,
|
|
5157
|
+
Eo as z
|
|
5166
5158
|
};
|