@everymatrix/casino-page-nd 1.48.0 → 1.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-pVpX-Ke1.js → CasinoCalendar-CxDSN6iE.js} +1158 -1128
- package/components/CasinoCalendar-DEwT2wxN.cjs +6 -0
- package/components/{CasinoCalendarDailyDetails-Ckfs_e45.cjs → CasinoCalendarDailyDetails-CfRqqaJ7.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-BHhY9ypY.js → CasinoCalendarDailyDetails-D1_fuwa2.js} +1 -1
- package/components/{CasinoCalendarDailyItem-DL8JD9pX.js → CasinoCalendarDailyItem--qoA25VJ.js} +1 -1
- package/components/{CasinoCalendarDailyItem-DLo_a51b.cjs → CasinoCalendarDailyItem-DTvFCUSz.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-Bm_Hg3sA.cjs → CasinoCollectionsProviders-BWuY4ubC.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-N_DT_pTF.js → CasinoCollectionsProviders-CUGjAo0-.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-DHh5urJy.cjs → CasinoFavoritesSectionNd-BjyqJ6Do.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-zRpL40sm.js → CasinoFavoritesSectionNd-DjwpaGCJ.js} +2 -2
- package/components/{CasinoFilter-3wP0WzFr.js → CasinoFilter-BuoksLy4.js} +1 -1
- package/components/{CasinoFilter-BPApME58.cjs → CasinoFilter-Cbz3OsDY.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-BL1T_Ubq.js → CasinoGameThumbnailNd-BJSaX82j.js} +1 -1
- package/components/{CasinoGameThumbnailNd-CYlOZXU1.cjs → CasinoGameThumbnailNd-Ddtm0W_J.cjs} +1 -1
- package/components/CasinoGamesCategorySectionNd-CGKgFLzv.cjs +1 -0
- package/components/{CasinoGamesCategorySectionNd-UmwUcDF_.js → CasinoGamesCategorySectionNd-E0QyOq6u.js} +1080 -1080
- package/components/{CasinoJackpotBanner-BweF75XP.cjs → CasinoJackpotBanner-CPkvWYVf.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CBdu85yt.js → CasinoJackpotBanner-Dnpx3OoA.js} +1 -1
- package/components/{CasinoLastPlayedSectionNd-D42K7URp.cjs → CasinoLastPlayedSectionNd-CIUguVSV.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-BVK8AjWk.js → CasinoLastPlayedSectionNd-DQr6_gS0.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-KBHwWU0c.cjs → CasinoMostPlayedSectionNd-DFYSWdvj.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-C8Bh6PX6.js → CasinoMostPlayedSectionNd-FRt99SHZ.js} +2 -2
- package/components/{CasinoMyGamesNd-DerlPrav.cjs → CasinoMyGamesNd-DXsyJN6q.cjs} +1 -1
- package/components/{CasinoMyGamesNd-BsF6E9mr.js → CasinoMyGamesNd-EkNdfhGt.js} +4 -4
- package/components/{CasinoPageNd-ClW6Iikv.js → CasinoPageNd-CV0N0ohi.js} +48 -48
- package/components/{CasinoPageNd-BDNAfiSf.cjs → CasinoPageNd-DWTarmcM.cjs} +1 -1
- package/components/{CasinoRandomGame-CuTTaEzm.js → CasinoRandomGame-CB4D9rh1.js} +1 -1
- package/components/{CasinoRandomGame-DXI0Y4jZ.cjs → CasinoRandomGame-ChM2hlET.cjs} +1 -1
- package/components/{CasinoSearchNd-C2_ntZnt.js → CasinoSearchNd-C4tRU3nq.js} +3 -3
- package/components/{CasinoSearchNd-fj4QgtFt.cjs → CasinoSearchNd-D7Uwl9gv.cjs} +1 -1
- package/components/{CasinoSort-BMASc29H.js → CasinoSort-AKrigoJE.js} +1 -1
- package/components/{CasinoSort-BvQ_4G3H.cjs → CasinoSort-C8xPMpEj.cjs} +1 -1
- package/components/{CasinoWinners-C3SkXv0Z.js → CasinoWinners-BKHyEtAJ.js} +2 -2
- package/components/{CasinoWinners-V4jbYRnK.cjs → CasinoWinners-C9VUisa9.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CwBVP5uB.cjs → GeneralAnimationLoading-Bqep_PhQ.cjs} +1 -1
- package/components/{GeneralAnimationLoading-fooTxdgx.js → GeneralAnimationLoading-bPPVriHt.js} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCalendar-CCJYEXf4.cjs +0 -6
- package/components/CasinoGamesCategorySectionNd-D5sdz-QF.cjs +0 -1
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var xr = Object.defineProperty, Sr = Object.defineProperties;
|
|
2
|
+
var wr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var nt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Tr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Pe = (e, t, r) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Tr.call(t, r) && Pe(e, r, t[r]);
|
|
8
|
+
if (nt)
|
|
9
|
+
for (var r of nt(t))
|
|
10
|
+
Hr.call(t, r) && Pe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, ot = (e, t) => Sr(e, wr(t));
|
|
13
|
+
var T = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function P() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Br(e, t) {
|
|
33
33
|
for (const r in t) e[r] = t[r];
|
|
34
34
|
return (
|
|
35
35
|
/** @type {T & S} */
|
|
36
36
|
e
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Mt(e) {
|
|
40
40
|
return e();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function at() {
|
|
43
43
|
return /* @__PURE__ */ Object.create(null);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
e.forEach(
|
|
45
|
+
function k(e) {
|
|
46
|
+
e.forEach(Mt);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ee(e) {
|
|
49
49
|
return typeof e == "function";
|
|
50
50
|
}
|
|
51
51
|
function Nt(e, t) {
|
|
52
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
53
|
}
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
return e === t ? !0 : (
|
|
54
|
+
let he;
|
|
55
|
+
function io(e, t) {
|
|
56
|
+
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Pr(e) {
|
|
59
59
|
return Object.keys(e).length === 0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Rt(e, ...t) {
|
|
62
62
|
if (e == null) {
|
|
63
63
|
for (const n of t)
|
|
64
64
|
n(void 0);
|
|
65
|
-
return
|
|
65
|
+
return P;
|
|
66
66
|
}
|
|
67
67
|
const r = e.subscribe(...t);
|
|
68
68
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
e.$$.on_destroy.push(
|
|
70
|
+
function oo(e, t, r) {
|
|
71
|
+
e.$$.on_destroy.push(Rt(t, r));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function so(e, t, r, n) {
|
|
74
74
|
if (e) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = $t(e, t, r, n);
|
|
76
76
|
return e[0](i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return e[1] && n ?
|
|
79
|
+
function $t(e, t, r, n) {
|
|
80
|
+
return e[1] && n ? Br(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ao(e, t, r, n) {
|
|
83
83
|
if (e[2] && n) {
|
|
84
84
|
const i = e[2](n(r));
|
|
85
85
|
if (t.dirty === void 0)
|
|
86
86
|
return i;
|
|
87
87
|
if (typeof i == "object") {
|
|
88
|
-
const o = [],
|
|
89
|
-
for (let
|
|
90
|
-
o[
|
|
88
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
89
|
+
for (let a = 0; a < s; a += 1)
|
|
90
|
+
o[a] = t.dirty[a] | i[a];
|
|
91
91
|
return o;
|
|
92
92
|
}
|
|
93
93
|
return t.dirty | i;
|
|
94
94
|
}
|
|
95
95
|
return t.dirty;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function uo(e, t, r, n, i, o) {
|
|
98
98
|
if (i) {
|
|
99
|
-
const
|
|
100
|
-
e.p(
|
|
99
|
+
const s = $t(t, r, n, o);
|
|
100
|
+
e.p(s, i);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function lo(e) {
|
|
104
104
|
if (e.ctx.length > 32) {
|
|
105
105
|
const t = [], r = e.ctx.length / 32;
|
|
106
106
|
for (let n = 0; n < r; n++)
|
|
@@ -109,20 +109,20 @@ function uo(e) {
|
|
|
109
109
|
}
|
|
110
110
|
return -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return e &&
|
|
112
|
+
function ho(e) {
|
|
113
|
+
return e && Ee(e.destroy) ? e.destroy : P;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function xe(e, t) {
|
|
116
116
|
e.appendChild(t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
const n =
|
|
118
|
+
function Ar(e, t, r) {
|
|
119
|
+
const n = Or(e);
|
|
120
120
|
if (!n.getElementById(t)) {
|
|
121
|
-
const i =
|
|
122
|
-
i.id = t, i.textContent = r,
|
|
121
|
+
const i = I("style");
|
|
122
|
+
i.id = t, i.textContent = r, Cr(n, i);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Or(e) {
|
|
126
126
|
if (!e) return document;
|
|
127
127
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
128
128
|
return t && /** @type {ShadowRoot} */
|
|
@@ -131,118 +131,118 @@ function Pr(e) {
|
|
|
131
131
|
t
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Cr(e, t) {
|
|
135
|
+
return xe(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function F(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function N(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ir(e, t) {
|
|
148
148
|
for (let r = 0; r < e.length; r += 1)
|
|
149
149
|
e[r] && e[r].d(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function I(e) {
|
|
152
152
|
return document.createElement(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Lr(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Dt(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function Mr() {
|
|
161
|
+
return Dt(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function co() {
|
|
164
|
+
return Dt("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ut(e, t, r, n) {
|
|
167
167
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function fo(e) {
|
|
170
170
|
return function(t) {
|
|
171
171
|
return t.stopPropagation(), e.call(this, t);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function $(e, t, r) {
|
|
175
175
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function y(e, t, r) {
|
|
178
178
|
const n = t.toLowerCase();
|
|
179
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
179
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Nr(e) {
|
|
182
182
|
return Array.from(e.childNodes);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function po(e, t) {
|
|
185
185
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
186
186
|
t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function mo(e, t) {
|
|
189
189
|
e.value = t == null ? "" : t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function bo(e, t, r, n) {
|
|
192
192
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
193
193
|
}
|
|
194
|
-
let
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
197
|
-
|
|
194
|
+
let ce;
|
|
195
|
+
function Rr() {
|
|
196
|
+
if (ce === void 0) {
|
|
197
|
+
ce = !1;
|
|
198
198
|
try {
|
|
199
199
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
200
200
|
} catch (e) {
|
|
201
|
-
|
|
201
|
+
ce = !0;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
return
|
|
204
|
+
return ce;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function yo(e, t) {
|
|
207
207
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
208
|
-
const n =
|
|
208
|
+
const n = I("iframe");
|
|
209
209
|
n.setAttribute(
|
|
210
210
|
"style",
|
|
211
211
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
212
212
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
213
|
-
const i =
|
|
213
|
+
const i = Rr();
|
|
214
214
|
let o;
|
|
215
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
215
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = ut(
|
|
216
216
|
window,
|
|
217
217
|
"message",
|
|
218
218
|
/** @param {MessageEvent} event */
|
|
219
|
-
(
|
|
220
|
-
|
|
219
|
+
(s) => {
|
|
220
|
+
s.source === n.contentWindow && t();
|
|
221
221
|
}
|
|
222
222
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
223
|
-
o =
|
|
224
|
-
}),
|
|
225
|
-
(i || o && n.contentWindow) && o(),
|
|
223
|
+
o = ut(n.contentWindow, "resize", t), t();
|
|
224
|
+
}), xe(e, n), () => {
|
|
225
|
+
(i || o && n.contentWindow) && o(), N(n);
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function go(e, t, r) {
|
|
229
229
|
e.classList.toggle(t, !!r);
|
|
230
230
|
}
|
|
231
|
-
class
|
|
231
|
+
class vo {
|
|
232
232
|
constructor(t = !1) {
|
|
233
233
|
/**
|
|
234
234
|
* @private
|
|
235
235
|
* @default false
|
|
236
236
|
*/
|
|
237
|
-
|
|
237
|
+
T(this, "is_svg", !1);
|
|
238
238
|
/** parent for creating node */
|
|
239
|
-
|
|
239
|
+
T(this, "e");
|
|
240
240
|
/** html tag nodes */
|
|
241
|
-
|
|
241
|
+
T(this, "n");
|
|
242
242
|
/** target */
|
|
243
|
-
|
|
243
|
+
T(this, "t");
|
|
244
244
|
/** anchor */
|
|
245
|
-
|
|
245
|
+
T(this, "a");
|
|
246
246
|
this.is_svg = t, this.e = this.n = null;
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
@@ -259,10 +259,10 @@ class go {
|
|
|
259
259
|
* @returns {void}
|
|
260
260
|
*/
|
|
261
261
|
m(t, r, n = null) {
|
|
262
|
-
this.e || (this.is_svg ? this.e =
|
|
262
|
+
this.e || (this.is_svg ? this.e = Lr(
|
|
263
263
|
/** @type {keyof SVGElementTagNameMap} */
|
|
264
264
|
r.nodeName
|
|
265
|
-
) : this.e =
|
|
265
|
+
) : this.e = I(
|
|
266
266
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
267
267
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
268
268
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -283,7 +283,7 @@ class go {
|
|
|
283
283
|
* @returns {void} */
|
|
284
284
|
i(t) {
|
|
285
285
|
for (let r = 0; r < this.n.length; r += 1)
|
|
286
|
-
|
|
286
|
+
F(this.t, this.n[r], t);
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
289
|
* @param {string} html
|
|
@@ -295,10 +295,10 @@ class go {
|
|
|
295
295
|
/**
|
|
296
296
|
* @returns {void} */
|
|
297
297
|
d() {
|
|
298
|
-
this.n.forEach(
|
|
298
|
+
this.n.forEach(N);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function $r(e) {
|
|
302
302
|
const t = {};
|
|
303
303
|
return e.childNodes.forEach(
|
|
304
304
|
/** @param {Element} node */
|
|
@@ -311,105 +311,133 @@ let ie;
|
|
|
311
311
|
function ne(e) {
|
|
312
312
|
ie = e;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Dr() {
|
|
315
315
|
if (!ie) throw new Error("Function called outside component initialization");
|
|
316
316
|
return ie;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
|
|
318
|
+
function Ur(e) {
|
|
319
|
+
Dr().$$.on_mount.push(e);
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
let
|
|
323
|
-
const
|
|
324
|
-
let
|
|
325
|
-
function
|
|
326
|
-
|
|
321
|
+
const W = [], $e = [];
|
|
322
|
+
let Z = [];
|
|
323
|
+
const lt = [], Ut = /* @__PURE__ */ Promise.resolve();
|
|
324
|
+
let De = !1;
|
|
325
|
+
function Gt() {
|
|
326
|
+
De || (De = !0, Ut.then(U));
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return
|
|
328
|
+
function _o() {
|
|
329
|
+
return Gt(), Ut;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
331
|
+
function Ue(e) {
|
|
332
|
+
Z.push(e);
|
|
333
333
|
}
|
|
334
|
-
const
|
|
335
|
-
let
|
|
336
|
-
function
|
|
337
|
-
if (
|
|
334
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
335
|
+
let X = 0;
|
|
336
|
+
function U() {
|
|
337
|
+
if (X !== 0)
|
|
338
338
|
return;
|
|
339
339
|
const e = ie;
|
|
340
340
|
do {
|
|
341
341
|
try {
|
|
342
|
-
for (;
|
|
343
|
-
const t =
|
|
344
|
-
|
|
342
|
+
for (; X < W.length; ) {
|
|
343
|
+
const t = W[X];
|
|
344
|
+
X++, ne(t), Gr(t.$$);
|
|
345
345
|
}
|
|
346
346
|
} catch (t) {
|
|
347
|
-
throw
|
|
347
|
+
throw W.length = 0, X = 0, t;
|
|
348
348
|
}
|
|
349
|
-
for (ne(null),
|
|
350
|
-
for (let t = 0; t <
|
|
351
|
-
const r =
|
|
352
|
-
|
|
349
|
+
for (ne(null), W.length = 0, X = 0; $e.length; ) $e.pop()();
|
|
350
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
351
|
+
const r = Z[t];
|
|
352
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
353
353
|
}
|
|
354
|
-
|
|
355
|
-
} while (
|
|
356
|
-
for (;
|
|
357
|
-
|
|
358
|
-
|
|
354
|
+
Z.length = 0;
|
|
355
|
+
} while (W.length);
|
|
356
|
+
for (; lt.length; )
|
|
357
|
+
lt.pop()();
|
|
358
|
+
De = !1, Ae.clear(), ne(e);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Gr(e) {
|
|
361
361
|
if (e.fragment !== null) {
|
|
362
|
-
e.update(),
|
|
362
|
+
e.update(), k(e.before_update);
|
|
363
363
|
const t = e.dirty;
|
|
364
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
364
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Fr(e) {
|
|
368
368
|
const t = [], r = [];
|
|
369
|
-
|
|
369
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
let
|
|
373
|
-
function
|
|
374
|
-
|
|
371
|
+
const pe = /* @__PURE__ */ new Set();
|
|
372
|
+
let j;
|
|
373
|
+
function Eo() {
|
|
374
|
+
j = {
|
|
375
375
|
r: 0,
|
|
376
376
|
c: [],
|
|
377
|
-
p:
|
|
377
|
+
p: j
|
|
378
378
|
// parent group
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
381
|
+
function xo() {
|
|
382
|
+
j.r || k(j.c), j = j.p;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
e && e.i && (
|
|
384
|
+
function Ft(e, t) {
|
|
385
|
+
e && e.i && (pe.delete(e), e.i(t));
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function So(e, t, r, n) {
|
|
388
388
|
if (e && e.o) {
|
|
389
|
-
if (
|
|
390
|
-
|
|
391
|
-
|
|
389
|
+
if (pe.has(e)) return;
|
|
390
|
+
pe.add(e), j.c.push(() => {
|
|
391
|
+
pe.delete(e), n && (r && e.d(1), n());
|
|
392
392
|
}), e.o(t);
|
|
393
393
|
} else n && n();
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ht(e) {
|
|
396
396
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function wo(e, t) {
|
|
399
|
+
e.d(1), t.delete(e.key);
|
|
400
|
+
}
|
|
401
|
+
function To(e, t, r, n, i, o, s, a, l, u, h, f) {
|
|
402
|
+
let c = e.length, p = o.length, m = c;
|
|
403
|
+
const v = {};
|
|
404
|
+
for (; m--; ) v[e[m].key] = m;
|
|
405
|
+
const w = [], C = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), H = [];
|
|
406
|
+
for (m = p; m--; ) {
|
|
407
|
+
const d = f(i, o, m), x = r(d);
|
|
408
|
+
let S = s.get(x);
|
|
409
|
+
S ? H.push(() => S.p(d, t)) : (S = u(x, d), S.c()), C.set(x, w[m] = S), x in v && A.set(x, Math.abs(m - v[x]));
|
|
410
|
+
}
|
|
411
|
+
const L = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
|
412
|
+
function M(d) {
|
|
413
|
+
Ft(d, 1), d.m(a, h), s.set(d.key, d), h = d.first, p--;
|
|
414
|
+
}
|
|
415
|
+
for (; c && p; ) {
|
|
416
|
+
const d = w[p - 1], x = e[c - 1], S = d.key, le = x.key;
|
|
417
|
+
d === x ? (h = d.first, c--, p--) : C.has(le) ? !s.has(S) || L.has(S) ? M(d) : O.has(le) ? c-- : A.get(S) > A.get(le) ? (O.add(S), M(d)) : (L.add(le), c--) : (l(x, s), c--);
|
|
418
|
+
}
|
|
419
|
+
for (; c--; ) {
|
|
420
|
+
const d = e[c];
|
|
421
|
+
C.has(d.key) || l(d, s);
|
|
422
|
+
}
|
|
423
|
+
for (; p; ) M(w[p - 1]);
|
|
424
|
+
return k(H), w;
|
|
425
|
+
}
|
|
426
|
+
function jr(e, t, r) {
|
|
399
427
|
const { fragment: n, after_update: i } = e.$$;
|
|
400
|
-
n && n.m(t, r),
|
|
401
|
-
const o = e.$$.on_mount.map(
|
|
402
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
403
|
-
}), i.forEach(
|
|
428
|
+
n && n.m(t, r), Ue(() => {
|
|
429
|
+
const o = e.$$.on_mount.map(Mt).filter(Ee);
|
|
430
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : k(o), e.$$.on_mount = [];
|
|
431
|
+
}), i.forEach(Ue);
|
|
404
432
|
}
|
|
405
|
-
function
|
|
433
|
+
function kr(e, t) {
|
|
406
434
|
const r = e.$$;
|
|
407
|
-
r.fragment !== null && (
|
|
435
|
+
r.fragment !== null && (Fr(r.after_update), k(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
408
436
|
}
|
|
409
|
-
function
|
|
410
|
-
e.$$.dirty[0] === -1 && (
|
|
437
|
+
function Vr(e, t) {
|
|
438
|
+
e.$$.dirty[0] === -1 && (W.push(e), Gt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
411
439
|
}
|
|
412
|
-
function
|
|
440
|
+
function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
413
441
|
const l = ie;
|
|
414
442
|
ne(e);
|
|
415
443
|
const u = e.$$ = {
|
|
@@ -417,9 +445,9 @@ function Vr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
417
445
|
ctx: [],
|
|
418
446
|
// state
|
|
419
447
|
props: o,
|
|
420
|
-
update:
|
|
448
|
+
update: P,
|
|
421
449
|
not_equal: i,
|
|
422
|
-
bound:
|
|
450
|
+
bound: at(),
|
|
423
451
|
// lifecycle
|
|
424
452
|
on_mount: [],
|
|
425
453
|
on_destroy: [],
|
|
@@ -428,48 +456,48 @@ function Vr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
428
456
|
after_update: [],
|
|
429
457
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
430
458
|
// everything else
|
|
431
|
-
callbacks:
|
|
432
|
-
dirty:
|
|
459
|
+
callbacks: at(),
|
|
460
|
+
dirty: a,
|
|
433
461
|
skip_bound: !1,
|
|
434
462
|
root: t.target || l.$$.root
|
|
435
463
|
};
|
|
436
|
-
|
|
464
|
+
s && s(u.root);
|
|
437
465
|
let h = !1;
|
|
438
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
439
|
-
const
|
|
440
|
-
return u.ctx && i(u.ctx[
|
|
441
|
-
}) : [], u.update(), h = !0,
|
|
466
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
467
|
+
const m = p.length ? p[0] : c;
|
|
468
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Vr(e, f)), c;
|
|
469
|
+
}) : [], u.update(), h = !0, k(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
442
470
|
if (t.hydrate) {
|
|
443
|
-
const
|
|
444
|
-
u.fragment && u.fragment.l(
|
|
471
|
+
const f = Nr(t.target);
|
|
472
|
+
u.fragment && u.fragment.l(f), f.forEach(N);
|
|
445
473
|
} else
|
|
446
474
|
u.fragment && u.fragment.c();
|
|
447
|
-
t.intro &&
|
|
475
|
+
t.intro && Ft(e.$$.fragment), jr(e, t.target, t.anchor), U();
|
|
448
476
|
}
|
|
449
477
|
ne(l);
|
|
450
478
|
}
|
|
451
|
-
let
|
|
452
|
-
typeof HTMLElement == "function" && (
|
|
479
|
+
let jt;
|
|
480
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
453
481
|
constructor(t, r, n) {
|
|
454
482
|
super();
|
|
455
483
|
/** The Svelte component constructor */
|
|
456
|
-
|
|
484
|
+
T(this, "$$ctor");
|
|
457
485
|
/** Slots */
|
|
458
|
-
|
|
486
|
+
T(this, "$$s");
|
|
459
487
|
/** The Svelte component instance */
|
|
460
|
-
|
|
488
|
+
T(this, "$$c");
|
|
461
489
|
/** Whether or not the custom element is connected */
|
|
462
|
-
|
|
490
|
+
T(this, "$$cn", !1);
|
|
463
491
|
/** Component props data */
|
|
464
|
-
|
|
492
|
+
T(this, "$$d", {});
|
|
465
493
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
466
|
-
|
|
494
|
+
T(this, "$$r", !1);
|
|
467
495
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
468
|
-
|
|
496
|
+
T(this, "$$p_d", {});
|
|
469
497
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
470
|
-
|
|
498
|
+
T(this, "$$l", {});
|
|
471
499
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
472
|
-
|
|
500
|
+
T(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
473
501
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
474
502
|
}
|
|
475
503
|
addEventListener(t, r, n) {
|
|
@@ -486,42 +514,42 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
486
514
|
}
|
|
487
515
|
}
|
|
488
516
|
connectedCallback() {
|
|
489
|
-
return
|
|
517
|
+
return st(this, null, function* () {
|
|
490
518
|
if (this.$$cn = !0, !this.$$c) {
|
|
491
519
|
let t = function(o) {
|
|
492
520
|
return () => {
|
|
493
|
-
let
|
|
521
|
+
let s;
|
|
494
522
|
return {
|
|
495
523
|
c: function() {
|
|
496
|
-
|
|
524
|
+
s = I("slot"), o !== "default" && $(s, "name", o);
|
|
497
525
|
},
|
|
498
526
|
/**
|
|
499
527
|
* @param {HTMLElement} target
|
|
500
528
|
* @param {HTMLElement} [anchor]
|
|
501
529
|
*/
|
|
502
530
|
m: function(u, h) {
|
|
503
|
-
|
|
531
|
+
F(u, s, h);
|
|
504
532
|
},
|
|
505
533
|
d: function(u) {
|
|
506
|
-
u &&
|
|
534
|
+
u && N(s);
|
|
507
535
|
}
|
|
508
536
|
};
|
|
509
537
|
};
|
|
510
538
|
};
|
|
511
539
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
512
540
|
return;
|
|
513
|
-
const r = {}, n =
|
|
541
|
+
const r = {}, n = $r(this);
|
|
514
542
|
for (const o of this.$$s)
|
|
515
543
|
o in n && (r[o] = [t(o)]);
|
|
516
544
|
for (const o of this.attributes) {
|
|
517
|
-
const
|
|
518
|
-
|
|
545
|
+
const s = this.$$g_p(o.name);
|
|
546
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
|
519
547
|
}
|
|
520
548
|
for (const o in this.$$p_d)
|
|
521
549
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
522
550
|
this.$$c = new this.$$ctor({
|
|
523
551
|
target: this.shadowRoot || this,
|
|
524
|
-
props: it(
|
|
552
|
+
props: ot(it({}, this.$$d), {
|
|
525
553
|
$$slots: r,
|
|
526
554
|
$$scope: {
|
|
527
555
|
ctx: []
|
|
@@ -532,21 +560,21 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
532
560
|
this.$$r = !0;
|
|
533
561
|
for (const o in this.$$p_d)
|
|
534
562
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
535
|
-
const
|
|
563
|
+
const s = me(
|
|
536
564
|
o,
|
|
537
565
|
this.$$d[o],
|
|
538
566
|
this.$$p_d,
|
|
539
567
|
"toAttribute"
|
|
540
568
|
);
|
|
541
|
-
|
|
569
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
542
570
|
}
|
|
543
571
|
this.$$r = !1;
|
|
544
572
|
};
|
|
545
573
|
this.$$c.$$.after_update.push(i), i();
|
|
546
574
|
for (const o in this.$$l)
|
|
547
|
-
for (const
|
|
548
|
-
const
|
|
549
|
-
this.$$l_u.set(
|
|
575
|
+
for (const s of this.$$l[o]) {
|
|
576
|
+
const a = this.$$c.$on(o, s);
|
|
577
|
+
this.$$l_u.set(s, a);
|
|
550
578
|
}
|
|
551
579
|
this.$$l = {};
|
|
552
580
|
}
|
|
@@ -556,7 +584,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
556
584
|
// and setting attributes through setAttribute etc, this is helpful
|
|
557
585
|
attributeChangedCallback(t, r, n) {
|
|
558
586
|
var i;
|
|
559
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
587
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
560
588
|
}
|
|
561
589
|
disconnectedCallback() {
|
|
562
590
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -569,7 +597,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
569
597
|
) || t;
|
|
570
598
|
}
|
|
571
599
|
});
|
|
572
|
-
function
|
|
600
|
+
function me(e, t, r, n) {
|
|
573
601
|
var o;
|
|
574
602
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
575
603
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -599,38 +627,38 @@ function pe(e, t, r, n) {
|
|
|
599
627
|
return t;
|
|
600
628
|
}
|
|
601
629
|
}
|
|
602
|
-
function
|
|
603
|
-
let
|
|
630
|
+
function zr(e, t, r, n, i, o) {
|
|
631
|
+
let s = class extends jt {
|
|
604
632
|
constructor() {
|
|
605
633
|
super(e, r, i), this.$$p_d = t;
|
|
606
634
|
}
|
|
607
635
|
static get observedAttributes() {
|
|
608
636
|
return Object.keys(t).map(
|
|
609
|
-
(
|
|
637
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
610
638
|
);
|
|
611
639
|
}
|
|
612
640
|
};
|
|
613
|
-
return Object.keys(t).forEach((
|
|
614
|
-
Object.defineProperty(
|
|
641
|
+
return Object.keys(t).forEach((a) => {
|
|
642
|
+
Object.defineProperty(s.prototype, a, {
|
|
615
643
|
get() {
|
|
616
|
-
return this.$$c &&
|
|
644
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
617
645
|
},
|
|
618
646
|
set(l) {
|
|
619
647
|
var u;
|
|
620
|
-
l =
|
|
648
|
+
l = me(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
621
649
|
}
|
|
622
650
|
});
|
|
623
|
-
}), n.forEach((
|
|
624
|
-
Object.defineProperty(
|
|
651
|
+
}), n.forEach((a) => {
|
|
652
|
+
Object.defineProperty(s.prototype, a, {
|
|
625
653
|
get() {
|
|
626
654
|
var l;
|
|
627
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
655
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
628
656
|
}
|
|
629
657
|
});
|
|
630
658
|
}), e.element = /** @type {any} */
|
|
631
|
-
|
|
659
|
+
s, s;
|
|
632
660
|
}
|
|
633
|
-
class
|
|
661
|
+
class Wr {
|
|
634
662
|
constructor() {
|
|
635
663
|
/**
|
|
636
664
|
* ### PRIVATE API
|
|
@@ -639,7 +667,7 @@ class zr {
|
|
|
639
667
|
*
|
|
640
668
|
* @type {any}
|
|
641
669
|
*/
|
|
642
|
-
|
|
670
|
+
T(this, "$$");
|
|
643
671
|
/**
|
|
644
672
|
* ### PRIVATE API
|
|
645
673
|
*
|
|
@@ -647,11 +675,11 @@ class zr {
|
|
|
647
675
|
*
|
|
648
676
|
* @type {any}
|
|
649
677
|
*/
|
|
650
|
-
|
|
678
|
+
T(this, "$$set");
|
|
651
679
|
}
|
|
652
680
|
/** @returns {void} */
|
|
653
681
|
$destroy() {
|
|
654
|
-
|
|
682
|
+
kr(this, 1), this.$destroy = P;
|
|
655
683
|
}
|
|
656
684
|
/**
|
|
657
685
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -660,8 +688,8 @@ class zr {
|
|
|
660
688
|
* @returns {() => void}
|
|
661
689
|
*/
|
|
662
690
|
$on(t, r) {
|
|
663
|
-
if (!
|
|
664
|
-
return
|
|
691
|
+
if (!Ee(r))
|
|
692
|
+
return P;
|
|
665
693
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
666
694
|
return n.push(r), () => {
|
|
667
695
|
const i = n.indexOf(r);
|
|
@@ -673,37 +701,37 @@ class zr {
|
|
|
673
701
|
* @returns {void}
|
|
674
702
|
*/
|
|
675
703
|
$set(t) {
|
|
676
|
-
this.$$set && !
|
|
704
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
677
705
|
}
|
|
678
706
|
}
|
|
679
|
-
const
|
|
680
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
681
|
-
var
|
|
682
|
-
return
|
|
707
|
+
const Zr = "4";
|
|
708
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
|
709
|
+
var Ge = function(e, t) {
|
|
710
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
683
711
|
r.__proto__ = n;
|
|
684
712
|
} || function(r, n) {
|
|
685
713
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
686
|
-
},
|
|
714
|
+
}, Ge(e, t);
|
|
687
715
|
};
|
|
688
|
-
function
|
|
716
|
+
function D(e, t) {
|
|
689
717
|
if (typeof t != "function" && t !== null)
|
|
690
718
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
691
|
-
|
|
719
|
+
Ge(e, t);
|
|
692
720
|
function r() {
|
|
693
721
|
this.constructor = e;
|
|
694
722
|
}
|
|
695
723
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
696
724
|
}
|
|
697
|
-
var
|
|
698
|
-
return
|
|
725
|
+
var _ = function() {
|
|
726
|
+
return _ = Object.assign || function(t) {
|
|
699
727
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
700
728
|
r = arguments[n];
|
|
701
729
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
702
730
|
}
|
|
703
731
|
return t;
|
|
704
|
-
},
|
|
732
|
+
}, _.apply(this, arguments);
|
|
705
733
|
};
|
|
706
|
-
function
|
|
734
|
+
function Qr(e, t) {
|
|
707
735
|
var r = {};
|
|
708
736
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
709
737
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -711,7 +739,7 @@ function Zr(e, t) {
|
|
|
711
739
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
712
740
|
return r;
|
|
713
741
|
}
|
|
714
|
-
function
|
|
742
|
+
function Fe(e) {
|
|
715
743
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
716
744
|
if (r) return r.call(e);
|
|
717
745
|
if (e && typeof e.length == "number") return {
|
|
@@ -721,38 +749,38 @@ function Ge(e) {
|
|
|
721
749
|
};
|
|
722
750
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
723
751
|
}
|
|
724
|
-
function
|
|
752
|
+
function je(e, t) {
|
|
725
753
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
726
754
|
if (!r) return e;
|
|
727
|
-
var n = r.call(e), i, o = [],
|
|
755
|
+
var n = r.call(e), i, o = [], s;
|
|
728
756
|
try {
|
|
729
757
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
730
|
-
} catch (
|
|
731
|
-
|
|
758
|
+
} catch (a) {
|
|
759
|
+
s = { error: a };
|
|
732
760
|
} finally {
|
|
733
761
|
try {
|
|
734
762
|
i && !i.done && (r = n.return) && r.call(n);
|
|
735
763
|
} finally {
|
|
736
|
-
if (
|
|
764
|
+
if (s) throw s.error;
|
|
737
765
|
}
|
|
738
766
|
}
|
|
739
767
|
return o;
|
|
740
768
|
}
|
|
741
|
-
function
|
|
769
|
+
function Q(e, t, r) {
|
|
742
770
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
743
771
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
744
772
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
745
773
|
}
|
|
746
|
-
function
|
|
774
|
+
function R(e) {
|
|
747
775
|
return typeof e == "function";
|
|
748
776
|
}
|
|
749
|
-
function
|
|
777
|
+
function kt(e) {
|
|
750
778
|
var t = function(n) {
|
|
751
779
|
Error.call(n), n.stack = new Error().stack;
|
|
752
780
|
}, r = e(t);
|
|
753
781
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
754
782
|
}
|
|
755
|
-
var
|
|
783
|
+
var Oe = kt(function(e) {
|
|
756
784
|
return function(r) {
|
|
757
785
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
758
786
|
` + r.map(function(n, i) {
|
|
@@ -761,13 +789,13 @@ var Ae = Ft(function(e) {
|
|
|
761
789
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
762
790
|
};
|
|
763
791
|
});
|
|
764
|
-
function
|
|
792
|
+
function ke(e, t) {
|
|
765
793
|
if (e) {
|
|
766
794
|
var r = e.indexOf(t);
|
|
767
795
|
0 <= r && e.splice(r, 1);
|
|
768
796
|
}
|
|
769
797
|
}
|
|
770
|
-
var
|
|
798
|
+
var Se = function() {
|
|
771
799
|
function e(t) {
|
|
772
800
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
773
801
|
}
|
|
@@ -775,11 +803,11 @@ var xe = function() {
|
|
|
775
803
|
var t, r, n, i, o;
|
|
776
804
|
if (!this.closed) {
|
|
777
805
|
this.closed = !0;
|
|
778
|
-
var
|
|
779
|
-
if (
|
|
780
|
-
if (this._parentage = null, Array.isArray(
|
|
806
|
+
var s = this._parentage;
|
|
807
|
+
if (s)
|
|
808
|
+
if (this._parentage = null, Array.isArray(s))
|
|
781
809
|
try {
|
|
782
|
-
for (var
|
|
810
|
+
for (var a = Fe(s), l = a.next(); !l.done; l = a.next()) {
|
|
783
811
|
var u = l.value;
|
|
784
812
|
u.remove(this);
|
|
785
813
|
}
|
|
@@ -787,50 +815,50 @@ var xe = function() {
|
|
|
787
815
|
t = { error: v };
|
|
788
816
|
} finally {
|
|
789
817
|
try {
|
|
790
|
-
l && !l.done && (r =
|
|
818
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
791
819
|
} finally {
|
|
792
820
|
if (t) throw t.error;
|
|
793
821
|
}
|
|
794
822
|
}
|
|
795
823
|
else
|
|
796
|
-
|
|
824
|
+
s.remove(this);
|
|
797
825
|
var h = this.initialTeardown;
|
|
798
|
-
if (
|
|
826
|
+
if (R(h))
|
|
799
827
|
try {
|
|
800
828
|
h();
|
|
801
829
|
} catch (v) {
|
|
802
|
-
o = v instanceof
|
|
830
|
+
o = v instanceof Oe ? v.errors : [v];
|
|
803
831
|
}
|
|
804
|
-
var
|
|
805
|
-
if (
|
|
832
|
+
var f = this._finalizers;
|
|
833
|
+
if (f) {
|
|
806
834
|
this._finalizers = null;
|
|
807
835
|
try {
|
|
808
|
-
for (var
|
|
809
|
-
var
|
|
836
|
+
for (var c = Fe(f), p = c.next(); !p.done; p = c.next()) {
|
|
837
|
+
var m = p.value;
|
|
810
838
|
try {
|
|
811
|
-
|
|
839
|
+
ct(m);
|
|
812
840
|
} catch (v) {
|
|
813
|
-
o = o != null ? o : [], v instanceof
|
|
841
|
+
o = o != null ? o : [], v instanceof Oe ? o = Q(Q([], je(o)), je(v.errors)) : o.push(v);
|
|
814
842
|
}
|
|
815
843
|
}
|
|
816
844
|
} catch (v) {
|
|
817
845
|
n = { error: v };
|
|
818
846
|
} finally {
|
|
819
847
|
try {
|
|
820
|
-
|
|
848
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
821
849
|
} finally {
|
|
822
850
|
if (n) throw n.error;
|
|
823
851
|
}
|
|
824
852
|
}
|
|
825
853
|
}
|
|
826
854
|
if (o)
|
|
827
|
-
throw new
|
|
855
|
+
throw new Oe(o);
|
|
828
856
|
}
|
|
829
857
|
}, e.prototype.add = function(t) {
|
|
830
858
|
var r;
|
|
831
859
|
if (t && t !== this)
|
|
832
860
|
if (this.closed)
|
|
833
|
-
|
|
861
|
+
ct(t);
|
|
834
862
|
else {
|
|
835
863
|
if (t instanceof e) {
|
|
836
864
|
if (t.closed || t._hasParent(this))
|
|
@@ -847,57 +875,57 @@ var xe = function() {
|
|
|
847
875
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
848
876
|
}, e.prototype._removeParent = function(t) {
|
|
849
877
|
var r = this._parentage;
|
|
850
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
878
|
+
r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
|
|
851
879
|
}, e.prototype.remove = function(t) {
|
|
852
880
|
var r = this._finalizers;
|
|
853
|
-
r &&
|
|
881
|
+
r && ke(r, t), t instanceof e && t._removeParent(this);
|
|
854
882
|
}, e.EMPTY = function() {
|
|
855
883
|
var t = new e();
|
|
856
884
|
return t.closed = !0, t;
|
|
857
885
|
}(), e;
|
|
858
|
-
}(),
|
|
859
|
-
function
|
|
860
|
-
return e instanceof
|
|
886
|
+
}(), Vt = Se.EMPTY;
|
|
887
|
+
function Xt(e) {
|
|
888
|
+
return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
861
889
|
}
|
|
862
|
-
function
|
|
863
|
-
|
|
890
|
+
function ct(e) {
|
|
891
|
+
R(e) ? e() : e.unsubscribe();
|
|
864
892
|
}
|
|
865
|
-
var
|
|
893
|
+
var zt = {
|
|
866
894
|
onUnhandledError: null,
|
|
867
895
|
onStoppedNotification: null,
|
|
868
896
|
Promise: void 0,
|
|
869
897
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
870
898
|
useDeprecatedNextContext: !1
|
|
871
|
-
},
|
|
899
|
+
}, Wt = {
|
|
872
900
|
setTimeout: function(e, t) {
|
|
873
901
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
874
902
|
r[n - 2] = arguments[n];
|
|
875
|
-
return setTimeout.apply(void 0,
|
|
903
|
+
return setTimeout.apply(void 0, Q([e, t], je(r)));
|
|
876
904
|
},
|
|
877
905
|
clearTimeout: function(e) {
|
|
878
|
-
var t =
|
|
906
|
+
var t = Wt.delegate;
|
|
879
907
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
880
908
|
},
|
|
881
909
|
delegate: void 0
|
|
882
910
|
};
|
|
883
|
-
function
|
|
884
|
-
|
|
911
|
+
function Jr(e) {
|
|
912
|
+
Wt.setTimeout(function() {
|
|
885
913
|
throw e;
|
|
886
914
|
});
|
|
887
915
|
}
|
|
888
|
-
function
|
|
916
|
+
function ft() {
|
|
889
917
|
}
|
|
890
|
-
function
|
|
918
|
+
function be(e) {
|
|
891
919
|
e();
|
|
892
920
|
}
|
|
893
|
-
var
|
|
894
|
-
|
|
921
|
+
var Zt = function(e) {
|
|
922
|
+
D(t, e);
|
|
895
923
|
function t(r) {
|
|
896
924
|
var n = e.call(this) || this;
|
|
897
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
925
|
+
return n.isStopped = !1, r ? (n.destination = r, Xt(r) && r.add(n)) : n.destination = en, n;
|
|
898
926
|
}
|
|
899
927
|
return t.create = function(r, n, i) {
|
|
900
|
-
return new
|
|
928
|
+
return new Ve(r, n, i);
|
|
901
929
|
}, t.prototype.next = function(r) {
|
|
902
930
|
this.isStopped || this._next(r);
|
|
903
931
|
}, t.prototype.error = function(r) {
|
|
@@ -921,11 +949,11 @@ var zt = function(e) {
|
|
|
921
949
|
this.unsubscribe();
|
|
922
950
|
}
|
|
923
951
|
}, t;
|
|
924
|
-
}(
|
|
925
|
-
function
|
|
926
|
-
return
|
|
952
|
+
}(Se), qr = Function.prototype.bind;
|
|
953
|
+
function Ce(e, t) {
|
|
954
|
+
return qr.call(e, t);
|
|
927
955
|
}
|
|
928
|
-
var
|
|
956
|
+
var Yr = function() {
|
|
929
957
|
function e(t) {
|
|
930
958
|
this.partialObserver = t;
|
|
931
959
|
}
|
|
@@ -935,7 +963,7 @@ var qr = function() {
|
|
|
935
963
|
try {
|
|
936
964
|
r.next(t);
|
|
937
965
|
} catch (n) {
|
|
938
|
-
|
|
966
|
+
fe(n);
|
|
939
967
|
}
|
|
940
968
|
}, e.prototype.error = function(t) {
|
|
941
969
|
var r = this.partialObserver;
|
|
@@ -943,68 +971,68 @@ var qr = function() {
|
|
|
943
971
|
try {
|
|
944
972
|
r.error(t);
|
|
945
973
|
} catch (n) {
|
|
946
|
-
|
|
974
|
+
fe(n);
|
|
947
975
|
}
|
|
948
976
|
else
|
|
949
|
-
|
|
977
|
+
fe(t);
|
|
950
978
|
}, e.prototype.complete = function() {
|
|
951
979
|
var t = this.partialObserver;
|
|
952
980
|
if (t.complete)
|
|
953
981
|
try {
|
|
954
982
|
t.complete();
|
|
955
983
|
} catch (r) {
|
|
956
|
-
|
|
984
|
+
fe(r);
|
|
957
985
|
}
|
|
958
986
|
}, e;
|
|
959
|
-
}(),
|
|
960
|
-
|
|
987
|
+
}(), Ve = function(e) {
|
|
988
|
+
D(t, e);
|
|
961
989
|
function t(r, n, i) {
|
|
962
|
-
var o = e.call(this) || this,
|
|
963
|
-
if (
|
|
964
|
-
|
|
990
|
+
var o = e.call(this) || this, s;
|
|
991
|
+
if (R(r) || !r)
|
|
992
|
+
s = {
|
|
965
993
|
next: r != null ? r : void 0,
|
|
966
994
|
error: n != null ? n : void 0,
|
|
967
995
|
complete: i != null ? i : void 0
|
|
968
996
|
};
|
|
969
997
|
else {
|
|
970
|
-
var
|
|
971
|
-
o &&
|
|
998
|
+
var a;
|
|
999
|
+
o && zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
972
1000
|
return o.unsubscribe();
|
|
973
|
-
},
|
|
974
|
-
next: r.next &&
|
|
975
|
-
error: r.error &&
|
|
976
|
-
complete: r.complete &&
|
|
977
|
-
}) :
|
|
1001
|
+
}, s = {
|
|
1002
|
+
next: r.next && Ce(r.next, a),
|
|
1003
|
+
error: r.error && Ce(r.error, a),
|
|
1004
|
+
complete: r.complete && Ce(r.complete, a)
|
|
1005
|
+
}) : s = r;
|
|
978
1006
|
}
|
|
979
|
-
return o.destination = new
|
|
1007
|
+
return o.destination = new Yr(s), o;
|
|
980
1008
|
}
|
|
981
1009
|
return t;
|
|
982
|
-
}(
|
|
983
|
-
function
|
|
984
|
-
|
|
1010
|
+
}(Zt);
|
|
1011
|
+
function fe(e) {
|
|
1012
|
+
Jr(e);
|
|
985
1013
|
}
|
|
986
|
-
function
|
|
1014
|
+
function Kr(e) {
|
|
987
1015
|
throw e;
|
|
988
1016
|
}
|
|
989
|
-
var
|
|
1017
|
+
var en = {
|
|
990
1018
|
closed: !0,
|
|
991
|
-
next:
|
|
992
|
-
error:
|
|
993
|
-
complete:
|
|
994
|
-
},
|
|
1019
|
+
next: ft,
|
|
1020
|
+
error: Kr,
|
|
1021
|
+
complete: ft
|
|
1022
|
+
}, tn = function() {
|
|
995
1023
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
996
1024
|
}();
|
|
997
|
-
function
|
|
1025
|
+
function rn(e) {
|
|
998
1026
|
return e;
|
|
999
1027
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return e.length === 0 ?
|
|
1028
|
+
function nn(e) {
|
|
1029
|
+
return e.length === 0 ? rn : e.length === 1 ? e[0] : function(r) {
|
|
1002
1030
|
return e.reduce(function(n, i) {
|
|
1003
1031
|
return i(n);
|
|
1004
1032
|
}, r);
|
|
1005
1033
|
};
|
|
1006
1034
|
}
|
|
1007
|
-
var
|
|
1035
|
+
var dt = function() {
|
|
1008
1036
|
function e(t) {
|
|
1009
1037
|
t && (this._subscribe = t);
|
|
1010
1038
|
}
|
|
@@ -1012,10 +1040,10 @@ var ft = function() {
|
|
|
1012
1040
|
var r = new e();
|
|
1013
1041
|
return r.source = this, r.operator = t, r;
|
|
1014
1042
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
1015
|
-
var i = this, o =
|
|
1016
|
-
return
|
|
1017
|
-
var
|
|
1018
|
-
o.add(
|
|
1043
|
+
var i = this, o = sn(t) ? t : new Ve(t, r, n);
|
|
1044
|
+
return be(function() {
|
|
1045
|
+
var s = i, a = s.operator, l = s.source;
|
|
1046
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1019
1047
|
}), o;
|
|
1020
1048
|
}, e.prototype._trySubscribe = function(t) {
|
|
1021
1049
|
try {
|
|
@@ -1025,37 +1053,37 @@ var ft = function() {
|
|
|
1025
1053
|
}
|
|
1026
1054
|
}, e.prototype.forEach = function(t, r) {
|
|
1027
1055
|
var n = this;
|
|
1028
|
-
return r =
|
|
1029
|
-
var
|
|
1030
|
-
next: function(
|
|
1056
|
+
return r = pt(r), new r(function(i, o) {
|
|
1057
|
+
var s = new Ve({
|
|
1058
|
+
next: function(a) {
|
|
1031
1059
|
try {
|
|
1032
|
-
t(
|
|
1060
|
+
t(a);
|
|
1033
1061
|
} catch (l) {
|
|
1034
|
-
o(l),
|
|
1062
|
+
o(l), s.unsubscribe();
|
|
1035
1063
|
}
|
|
1036
1064
|
},
|
|
1037
1065
|
error: o,
|
|
1038
1066
|
complete: i
|
|
1039
1067
|
});
|
|
1040
|
-
n.subscribe(
|
|
1068
|
+
n.subscribe(s);
|
|
1041
1069
|
});
|
|
1042
1070
|
}, e.prototype._subscribe = function(t) {
|
|
1043
1071
|
var r;
|
|
1044
1072
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1045
|
-
}, e.prototype[
|
|
1073
|
+
}, e.prototype[tn] = function() {
|
|
1046
1074
|
return this;
|
|
1047
1075
|
}, e.prototype.pipe = function() {
|
|
1048
1076
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1049
1077
|
t[r] = arguments[r];
|
|
1050
|
-
return
|
|
1078
|
+
return nn(t)(this);
|
|
1051
1079
|
}, e.prototype.toPromise = function(t) {
|
|
1052
1080
|
var r = this;
|
|
1053
|
-
return t =
|
|
1081
|
+
return t = pt(t), new t(function(n, i) {
|
|
1054
1082
|
var o;
|
|
1055
|
-
r.subscribe(function(
|
|
1056
|
-
return o =
|
|
1057
|
-
}, function(
|
|
1058
|
-
return i(
|
|
1083
|
+
r.subscribe(function(s) {
|
|
1084
|
+
return o = s;
|
|
1085
|
+
}, function(s) {
|
|
1086
|
+
return i(s);
|
|
1059
1087
|
}, function() {
|
|
1060
1088
|
return n(o);
|
|
1061
1089
|
});
|
|
@@ -1064,48 +1092,48 @@ var ft = function() {
|
|
|
1064
1092
|
return new e(t);
|
|
1065
1093
|
}, e;
|
|
1066
1094
|
}();
|
|
1067
|
-
function
|
|
1095
|
+
function pt(e) {
|
|
1068
1096
|
var t;
|
|
1069
|
-
return (t = e != null ? e :
|
|
1070
|
-
}
|
|
1071
|
-
function nn(e) {
|
|
1072
|
-
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
1097
|
+
return (t = e != null ? e : zt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1073
1098
|
}
|
|
1074
1099
|
function on(e) {
|
|
1075
|
-
return e && e
|
|
1100
|
+
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1101
|
+
}
|
|
1102
|
+
function sn(e) {
|
|
1103
|
+
return e && e instanceof Zt || on(e) && Xt(e);
|
|
1076
1104
|
}
|
|
1077
|
-
var
|
|
1105
|
+
var an = kt(function(e) {
|
|
1078
1106
|
return function() {
|
|
1079
1107
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1080
1108
|
};
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1109
|
+
}), Qt = function(e) {
|
|
1110
|
+
D(t, e);
|
|
1083
1111
|
function t() {
|
|
1084
1112
|
var r = e.call(this) || this;
|
|
1085
1113
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1086
1114
|
}
|
|
1087
1115
|
return t.prototype.lift = function(r) {
|
|
1088
|
-
var n = new
|
|
1116
|
+
var n = new mt(this, this);
|
|
1089
1117
|
return n.operator = r, n;
|
|
1090
1118
|
}, t.prototype._throwIfClosed = function() {
|
|
1091
1119
|
if (this.closed)
|
|
1092
|
-
throw new
|
|
1120
|
+
throw new an();
|
|
1093
1121
|
}, t.prototype.next = function(r) {
|
|
1094
1122
|
var n = this;
|
|
1095
|
-
|
|
1123
|
+
be(function() {
|
|
1096
1124
|
var i, o;
|
|
1097
1125
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1098
1126
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1099
1127
|
try {
|
|
1100
|
-
for (var
|
|
1101
|
-
var l =
|
|
1128
|
+
for (var s = Fe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1129
|
+
var l = a.value;
|
|
1102
1130
|
l.next(r);
|
|
1103
1131
|
}
|
|
1104
1132
|
} catch (u) {
|
|
1105
1133
|
i = { error: u };
|
|
1106
1134
|
} finally {
|
|
1107
1135
|
try {
|
|
1108
|
-
|
|
1136
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
1109
1137
|
} finally {
|
|
1110
1138
|
if (i) throw i.error;
|
|
1111
1139
|
}
|
|
@@ -1114,7 +1142,7 @@ var sn = Ft(function(e) {
|
|
|
1114
1142
|
});
|
|
1115
1143
|
}, t.prototype.error = function(r) {
|
|
1116
1144
|
var n = this;
|
|
1117
|
-
|
|
1145
|
+
be(function() {
|
|
1118
1146
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1119
1147
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1120
1148
|
for (var i = n.observers; i.length; )
|
|
@@ -1123,7 +1151,7 @@ var sn = Ft(function(e) {
|
|
|
1123
1151
|
});
|
|
1124
1152
|
}, t.prototype.complete = function() {
|
|
1125
1153
|
var r = this;
|
|
1126
|
-
|
|
1154
|
+
be(function() {
|
|
1127
1155
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1128
1156
|
r.isStopped = !0;
|
|
1129
1157
|
for (var n = r.observers; n.length; )
|
|
@@ -1144,21 +1172,21 @@ var sn = Ft(function(e) {
|
|
|
1144
1172
|
}, t.prototype._subscribe = function(r) {
|
|
1145
1173
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1146
1174
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1147
|
-
var n = this, i = this, o = i.hasError,
|
|
1148
|
-
return o ||
|
|
1149
|
-
n.currentObservers = null,
|
|
1175
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1176
|
+
return o || s ? Vt : (this.currentObservers = null, a.push(r), new Se(function() {
|
|
1177
|
+
n.currentObservers = null, ke(a, r);
|
|
1150
1178
|
}));
|
|
1151
1179
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1152
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
1153
|
-
i ? r.error(o) :
|
|
1180
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1181
|
+
i ? r.error(o) : s && r.complete();
|
|
1154
1182
|
}, t.prototype.asObservable = function() {
|
|
1155
|
-
var r = new
|
|
1183
|
+
var r = new dt();
|
|
1156
1184
|
return r.source = this, r;
|
|
1157
1185
|
}, t.create = function(r, n) {
|
|
1158
|
-
return new
|
|
1186
|
+
return new mt(r, n);
|
|
1159
1187
|
}, t;
|
|
1160
|
-
}(
|
|
1161
|
-
|
|
1188
|
+
}(dt), mt = function(e) {
|
|
1189
|
+
D(t, e);
|
|
1162
1190
|
function t(r, n) {
|
|
1163
1191
|
var i = e.call(this) || this;
|
|
1164
1192
|
return i.destination = r, i.source = n, i;
|
|
@@ -1174,229 +1202,229 @@ var sn = Ft(function(e) {
|
|
|
1174
1202
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1175
1203
|
}, t.prototype._subscribe = function(r) {
|
|
1176
1204
|
var n, i;
|
|
1177
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1205
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Vt;
|
|
1178
1206
|
}, t;
|
|
1179
|
-
}(
|
|
1207
|
+
}(Qt), Jt = {
|
|
1180
1208
|
now: function() {
|
|
1181
|
-
return (
|
|
1209
|
+
return (Jt.delegate || Date).now();
|
|
1182
1210
|
},
|
|
1183
1211
|
delegate: void 0
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1212
|
+
}, un = function(e) {
|
|
1213
|
+
D(t, e);
|
|
1186
1214
|
function t(r, n, i) {
|
|
1187
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1215
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
|
|
1188
1216
|
var o = e.call(this) || this;
|
|
1189
1217
|
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;
|
|
1190
1218
|
}
|
|
1191
1219
|
return t.prototype.next = function(r) {
|
|
1192
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
1193
|
-
i || (o.push(r), !
|
|
1220
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1221
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1194
1222
|
}, t.prototype._subscribe = function(r) {
|
|
1195
1223
|
this._throwIfClosed(), this._trimBuffer();
|
|
1196
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
1197
|
-
r.next(
|
|
1224
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
1225
|
+
r.next(a[l]);
|
|
1198
1226
|
return this._checkFinalizedStatuses(r), n;
|
|
1199
1227
|
}, t.prototype._trimBuffer = function() {
|
|
1200
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
1201
|
-
if (n < 1 / 0 &&
|
|
1228
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1229
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1202
1230
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1203
1231
|
u = h;
|
|
1204
1232
|
u && o.splice(0, u + 1);
|
|
1205
1233
|
}
|
|
1206
1234
|
}, t;
|
|
1207
|
-
}(
|
|
1208
|
-
const
|
|
1209
|
-
if (
|
|
1210
|
-
const r = new
|
|
1211
|
-
|
|
1235
|
+
}(Qt);
|
|
1236
|
+
const bt = [], yt = {}, ln = (e, t = 0) => {
|
|
1237
|
+
if (bt.indexOf(e) == -1) {
|
|
1238
|
+
const r = new un(t);
|
|
1239
|
+
yt[e] = r, bt.push(e);
|
|
1212
1240
|
}
|
|
1213
|
-
return
|
|
1214
|
-
},
|
|
1215
|
-
function
|
|
1241
|
+
return yt[e];
|
|
1242
|
+
}, z = [];
|
|
1243
|
+
function hn(e, t) {
|
|
1216
1244
|
return {
|
|
1217
|
-
subscribe:
|
|
1245
|
+
subscribe: we(e, t).subscribe
|
|
1218
1246
|
};
|
|
1219
1247
|
}
|
|
1220
|
-
function
|
|
1248
|
+
function we(e, t = P) {
|
|
1221
1249
|
let r;
|
|
1222
1250
|
const n = /* @__PURE__ */ new Set();
|
|
1223
|
-
function i(
|
|
1224
|
-
if (Nt(e,
|
|
1225
|
-
const l = !
|
|
1251
|
+
function i(a) {
|
|
1252
|
+
if (Nt(e, a) && (e = a, r)) {
|
|
1253
|
+
const l = !z.length;
|
|
1226
1254
|
for (const u of n)
|
|
1227
|
-
u[1](),
|
|
1255
|
+
u[1](), z.push(u, e);
|
|
1228
1256
|
if (l) {
|
|
1229
|
-
for (let u = 0; u <
|
|
1230
|
-
|
|
1231
|
-
|
|
1257
|
+
for (let u = 0; u < z.length; u += 2)
|
|
1258
|
+
z[u][0](z[u + 1]);
|
|
1259
|
+
z.length = 0;
|
|
1232
1260
|
}
|
|
1233
1261
|
}
|
|
1234
1262
|
}
|
|
1235
|
-
function o(
|
|
1236
|
-
i(
|
|
1263
|
+
function o(a) {
|
|
1264
|
+
i(a(e));
|
|
1237
1265
|
}
|
|
1238
|
-
function a
|
|
1239
|
-
const u = [
|
|
1240
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1266
|
+
function s(a, l = P) {
|
|
1267
|
+
const u = [a, l];
|
|
1268
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || P), a(e), () => {
|
|
1241
1269
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1242
1270
|
};
|
|
1243
1271
|
}
|
|
1244
|
-
return { set: i, update: o, subscribe:
|
|
1272
|
+
return { set: i, update: o, subscribe: s };
|
|
1245
1273
|
}
|
|
1246
1274
|
function ee(e, t, r) {
|
|
1247
1275
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1248
1276
|
if (!i.every(Boolean))
|
|
1249
1277
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1250
1278
|
const o = t.length < 2;
|
|
1251
|
-
return
|
|
1279
|
+
return hn(r, (s, a) => {
|
|
1252
1280
|
let l = !1;
|
|
1253
1281
|
const u = [];
|
|
1254
|
-
let h = 0,
|
|
1255
|
-
const
|
|
1282
|
+
let h = 0, f = P;
|
|
1283
|
+
const c = () => {
|
|
1256
1284
|
if (h)
|
|
1257
1285
|
return;
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1260
|
-
o ?
|
|
1261
|
-
},
|
|
1262
|
-
(
|
|
1263
|
-
|
|
1264
|
-
(
|
|
1265
|
-
u[v] =
|
|
1286
|
+
f();
|
|
1287
|
+
const m = t(n ? u[0] : u, s, a);
|
|
1288
|
+
o ? s(m) : f = Ee(m) ? m : P;
|
|
1289
|
+
}, p = i.map(
|
|
1290
|
+
(m, v) => Rt(
|
|
1291
|
+
m,
|
|
1292
|
+
(w) => {
|
|
1293
|
+
u[v] = w, h &= ~(1 << v), l && c();
|
|
1266
1294
|
},
|
|
1267
1295
|
() => {
|
|
1268
1296
|
h |= 1 << v;
|
|
1269
1297
|
}
|
|
1270
1298
|
)
|
|
1271
1299
|
);
|
|
1272
|
-
return l = !0,
|
|
1273
|
-
|
|
1300
|
+
return l = !0, c(), function() {
|
|
1301
|
+
k(p), f(), l = !1;
|
|
1274
1302
|
};
|
|
1275
1303
|
});
|
|
1276
1304
|
}
|
|
1277
|
-
function
|
|
1305
|
+
function cn(e) {
|
|
1278
1306
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1279
1307
|
}
|
|
1280
|
-
var
|
|
1281
|
-
return
|
|
1308
|
+
var fn = function(t) {
|
|
1309
|
+
return dn(t) && !pn(t);
|
|
1282
1310
|
};
|
|
1283
|
-
function
|
|
1311
|
+
function dn(e) {
|
|
1284
1312
|
return !!e && typeof e == "object";
|
|
1285
1313
|
}
|
|
1286
|
-
function
|
|
1314
|
+
function pn(e) {
|
|
1287
1315
|
var t = Object.prototype.toString.call(e);
|
|
1288
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1289
|
-
}
|
|
1290
|
-
var pn = typeof Symbol == "function" && Symbol.for, mn = pn ? Symbol.for("react.element") : 60103;
|
|
1291
|
-
function bn(e) {
|
|
1292
|
-
return e.$$typeof === mn;
|
|
1316
|
+
return t === "[object RegExp]" || t === "[object Date]" || yn(e);
|
|
1293
1317
|
}
|
|
1318
|
+
var mn = typeof Symbol == "function" && Symbol.for, bn = mn ? Symbol.for("react.element") : 60103;
|
|
1294
1319
|
function yn(e) {
|
|
1320
|
+
return e.$$typeof === bn;
|
|
1321
|
+
}
|
|
1322
|
+
function gn(e) {
|
|
1295
1323
|
return Array.isArray(e) ? [] : {};
|
|
1296
1324
|
}
|
|
1297
1325
|
function oe(e, t) {
|
|
1298
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1326
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(gn(e), e, t) : e;
|
|
1299
1327
|
}
|
|
1300
|
-
function
|
|
1328
|
+
function vn(e, t, r) {
|
|
1301
1329
|
return e.concat(t).map(function(n) {
|
|
1302
1330
|
return oe(n, r);
|
|
1303
1331
|
});
|
|
1304
1332
|
}
|
|
1305
|
-
function
|
|
1333
|
+
function _n(e, t) {
|
|
1306
1334
|
if (!t.customMerge)
|
|
1307
|
-
return
|
|
1335
|
+
return J;
|
|
1308
1336
|
var r = t.customMerge(e);
|
|
1309
|
-
return typeof r == "function" ? r :
|
|
1337
|
+
return typeof r == "function" ? r : J;
|
|
1310
1338
|
}
|
|
1311
|
-
function
|
|
1339
|
+
function En(e) {
|
|
1312
1340
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1313
1341
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1314
1342
|
}) : [];
|
|
1315
1343
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return Object.keys(e).concat(
|
|
1344
|
+
function gt(e) {
|
|
1345
|
+
return Object.keys(e).concat(En(e));
|
|
1318
1346
|
}
|
|
1319
|
-
function
|
|
1347
|
+
function qt(e, t) {
|
|
1320
1348
|
try {
|
|
1321
1349
|
return t in e;
|
|
1322
1350
|
} catch (r) {
|
|
1323
1351
|
return !1;
|
|
1324
1352
|
}
|
|
1325
1353
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return
|
|
1354
|
+
function xn(e, t) {
|
|
1355
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1328
1356
|
}
|
|
1329
|
-
function
|
|
1357
|
+
function Sn(e, t, r) {
|
|
1330
1358
|
var n = {};
|
|
1331
|
-
return r.isMergeableObject(e) &&
|
|
1359
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1332
1360
|
n[i] = oe(e[i], r);
|
|
1333
|
-
}),
|
|
1334
|
-
|
|
1361
|
+
}), gt(t).forEach(function(i) {
|
|
1362
|
+
xn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1335
1363
|
}), n;
|
|
1336
1364
|
}
|
|
1337
|
-
function
|
|
1338
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1365
|
+
function J(e, t, r) {
|
|
1366
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vn, r.isMergeableObject = r.isMergeableObject || fn, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1339
1367
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1340
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1368
|
+
return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : oe(t, r);
|
|
1341
1369
|
}
|
|
1342
|
-
|
|
1370
|
+
J.all = function(t, r) {
|
|
1343
1371
|
if (!Array.isArray(t))
|
|
1344
1372
|
throw new Error("first argument should be an array");
|
|
1345
1373
|
return t.reduce(function(n, i) {
|
|
1346
|
-
return
|
|
1374
|
+
return J(n, i, r);
|
|
1347
1375
|
}, {});
|
|
1348
1376
|
};
|
|
1349
|
-
var
|
|
1350
|
-
const
|
|
1351
|
-
var
|
|
1377
|
+
var wn = J, Tn = wn;
|
|
1378
|
+
const Hn = /* @__PURE__ */ cn(Tn);
|
|
1379
|
+
var b;
|
|
1352
1380
|
(function(e) {
|
|
1353
1381
|
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";
|
|
1354
|
-
})(
|
|
1382
|
+
})(b || (b = {}));
|
|
1355
1383
|
var E;
|
|
1356
1384
|
(function(e) {
|
|
1357
1385
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1358
1386
|
})(E || (E = {}));
|
|
1359
|
-
var
|
|
1387
|
+
var q;
|
|
1360
1388
|
(function(e) {
|
|
1361
1389
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1362
|
-
})(
|
|
1363
|
-
function
|
|
1390
|
+
})(q || (q = {}));
|
|
1391
|
+
function vt(e) {
|
|
1364
1392
|
return e.type === E.literal;
|
|
1365
1393
|
}
|
|
1366
|
-
function
|
|
1394
|
+
function Bn(e) {
|
|
1367
1395
|
return e.type === E.argument;
|
|
1368
1396
|
}
|
|
1369
|
-
function
|
|
1397
|
+
function Yt(e) {
|
|
1370
1398
|
return e.type === E.number;
|
|
1371
1399
|
}
|
|
1372
|
-
function
|
|
1400
|
+
function Kt(e) {
|
|
1373
1401
|
return e.type === E.date;
|
|
1374
1402
|
}
|
|
1375
|
-
function
|
|
1403
|
+
function er(e) {
|
|
1376
1404
|
return e.type === E.time;
|
|
1377
1405
|
}
|
|
1378
|
-
function
|
|
1406
|
+
function tr(e) {
|
|
1379
1407
|
return e.type === E.select;
|
|
1380
1408
|
}
|
|
1381
|
-
function
|
|
1409
|
+
function rr(e) {
|
|
1382
1410
|
return e.type === E.plural;
|
|
1383
1411
|
}
|
|
1384
|
-
function
|
|
1412
|
+
function Pn(e) {
|
|
1385
1413
|
return e.type === E.pound;
|
|
1386
1414
|
}
|
|
1387
|
-
function
|
|
1415
|
+
function nr(e) {
|
|
1388
1416
|
return e.type === E.tag;
|
|
1389
1417
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1418
|
+
function ir(e) {
|
|
1419
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1392
1420
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1421
|
+
function Xe(e) {
|
|
1422
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1395
1423
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1424
|
+
var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
1425
|
+
function On(e) {
|
|
1398
1426
|
var t = {};
|
|
1399
|
-
return e.replace(
|
|
1427
|
+
return e.replace(An, function(r) {
|
|
1400
1428
|
var n = r.length;
|
|
1401
1429
|
switch (r[0]) {
|
|
1402
1430
|
case "G":
|
|
@@ -1485,36 +1513,36 @@ function An(e) {
|
|
|
1485
1513
|
return "";
|
|
1486
1514
|
}), t;
|
|
1487
1515
|
}
|
|
1488
|
-
var
|
|
1489
|
-
function
|
|
1516
|
+
var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1517
|
+
function In(e) {
|
|
1490
1518
|
if (e.length === 0)
|
|
1491
1519
|
throw new Error("Number skeleton cannot be empty");
|
|
1492
|
-
for (var t = e.split(
|
|
1493
|
-
return
|
|
1520
|
+
for (var t = e.split(Cn).filter(function(c) {
|
|
1521
|
+
return c.length > 0;
|
|
1494
1522
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1495
|
-
var o = i[n],
|
|
1496
|
-
if (
|
|
1523
|
+
var o = i[n], s = o.split("/");
|
|
1524
|
+
if (s.length === 0)
|
|
1497
1525
|
throw new Error("Invalid number skeleton");
|
|
1498
|
-
for (var
|
|
1499
|
-
var
|
|
1500
|
-
if (
|
|
1526
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1527
|
+
var f = h[u];
|
|
1528
|
+
if (f.length === 0)
|
|
1501
1529
|
throw new Error("Invalid number skeleton");
|
|
1502
1530
|
}
|
|
1503
|
-
r.push({ stem:
|
|
1531
|
+
r.push({ stem: a, options: l });
|
|
1504
1532
|
}
|
|
1505
1533
|
return r;
|
|
1506
1534
|
}
|
|
1507
|
-
function
|
|
1535
|
+
function Ln(e) {
|
|
1508
1536
|
return e.replace(/^(.*?)-/, "");
|
|
1509
1537
|
}
|
|
1510
|
-
var
|
|
1511
|
-
function
|
|
1538
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sr = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
1539
|
+
function Et(e) {
|
|
1512
1540
|
var t = {};
|
|
1513
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1541
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sr, function(r, n, i) {
|
|
1514
1542
|
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)), "";
|
|
1515
1543
|
}), t;
|
|
1516
1544
|
}
|
|
1517
|
-
function
|
|
1545
|
+
function ur(e) {
|
|
1518
1546
|
switch (e) {
|
|
1519
1547
|
case "sign-auto":
|
|
1520
1548
|
return {
|
|
@@ -1562,17 +1590,17 @@ function Nn(e) {
|
|
|
1562
1590
|
notation: "scientific"
|
|
1563
1591
|
}, e = e.slice(1)), t) {
|
|
1564
1592
|
var r = e.slice(0, 2);
|
|
1565
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1593
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
|
1566
1594
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1567
1595
|
t.minimumIntegerDigits = e.length;
|
|
1568
1596
|
}
|
|
1569
1597
|
return t;
|
|
1570
1598
|
}
|
|
1571
|
-
function
|
|
1572
|
-
var t = {}, r =
|
|
1599
|
+
function xt(e) {
|
|
1600
|
+
var t = {}, r = ur(e);
|
|
1573
1601
|
return r || t;
|
|
1574
1602
|
}
|
|
1575
|
-
function
|
|
1603
|
+
function Rn(e) {
|
|
1576
1604
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1577
1605
|
var i = n[r];
|
|
1578
1606
|
switch (i.stem) {
|
|
@@ -1596,7 +1624,7 @@ function Mn(e) {
|
|
|
1596
1624
|
continue;
|
|
1597
1625
|
case "measure-unit":
|
|
1598
1626
|
case "unit":
|
|
1599
|
-
t.style = "unit", t.unit =
|
|
1627
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1600
1628
|
continue;
|
|
1601
1629
|
case "compact-short":
|
|
1602
1630
|
case "K":
|
|
@@ -1607,13 +1635,13 @@ function Mn(e) {
|
|
|
1607
1635
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1608
1636
|
continue;
|
|
1609
1637
|
case "scientific":
|
|
1610
|
-
t =
|
|
1611
|
-
return
|
|
1638
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1639
|
+
return _(_({}, l), xt(u));
|
|
1612
1640
|
}, {}));
|
|
1613
1641
|
continue;
|
|
1614
1642
|
case "engineering":
|
|
1615
|
-
t =
|
|
1616
|
-
return
|
|
1643
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1644
|
+
return _(_({}, l), xt(u));
|
|
1617
1645
|
}, {}));
|
|
1618
1646
|
continue;
|
|
1619
1647
|
case "notation-simple":
|
|
@@ -1658,45 +1686,45 @@ function Mn(e) {
|
|
|
1658
1686
|
case "integer-width":
|
|
1659
1687
|
if (i.options.length > 1)
|
|
1660
1688
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1661
|
-
i.options[0].replace(
|
|
1689
|
+
i.options[0].replace(Mn, function(l, u, h, f, c, p) {
|
|
1662
1690
|
if (u)
|
|
1663
1691
|
t.minimumIntegerDigits = h.length;
|
|
1664
1692
|
else {
|
|
1665
|
-
if (
|
|
1693
|
+
if (f && c)
|
|
1666
1694
|
throw new Error("We currently do not support maximum integer digits");
|
|
1667
|
-
if (
|
|
1695
|
+
if (p)
|
|
1668
1696
|
throw new Error("We currently do not support exact integer digits");
|
|
1669
1697
|
}
|
|
1670
1698
|
return "";
|
|
1671
1699
|
});
|
|
1672
1700
|
continue;
|
|
1673
1701
|
}
|
|
1674
|
-
if (
|
|
1702
|
+
if (ar.test(i.stem)) {
|
|
1675
1703
|
t.minimumIntegerDigits = i.stem.length;
|
|
1676
1704
|
continue;
|
|
1677
1705
|
}
|
|
1678
|
-
if (
|
|
1706
|
+
if (_t.test(i.stem)) {
|
|
1679
1707
|
if (i.options.length > 1)
|
|
1680
1708
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1681
|
-
i.stem.replace(
|
|
1682
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1709
|
+
i.stem.replace(_t, function(l, u, h, f, c, p) {
|
|
1710
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1683
1711
|
});
|
|
1684
1712
|
var o = i.options[0];
|
|
1685
|
-
o === "w" ? t =
|
|
1713
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1686
1714
|
continue;
|
|
1687
1715
|
}
|
|
1688
|
-
if (
|
|
1689
|
-
t =
|
|
1716
|
+
if (sr.test(i.stem)) {
|
|
1717
|
+
t = _(_({}, t), Et(i.stem));
|
|
1690
1718
|
continue;
|
|
1691
1719
|
}
|
|
1692
|
-
var
|
|
1693
|
-
|
|
1694
|
-
var
|
|
1695
|
-
|
|
1720
|
+
var s = ur(i.stem);
|
|
1721
|
+
s && (t = _(_({}, t), s));
|
|
1722
|
+
var a = Nn(i.stem);
|
|
1723
|
+
a && (t = _(_({}, t), a));
|
|
1696
1724
|
}
|
|
1697
1725
|
return t;
|
|
1698
1726
|
}
|
|
1699
|
-
var
|
|
1727
|
+
var de = {
|
|
1700
1728
|
"001": [
|
|
1701
1729
|
"H",
|
|
1702
1730
|
"h"
|
|
@@ -3105,22 +3133,22 @@ var fe = {
|
|
|
3105
3133
|
"h"
|
|
3106
3134
|
]
|
|
3107
3135
|
};
|
|
3108
|
-
function
|
|
3136
|
+
function $n(e, t) {
|
|
3109
3137
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3110
3138
|
var i = e.charAt(n);
|
|
3111
3139
|
if (i === "j") {
|
|
3112
3140
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3113
3141
|
o++, n++;
|
|
3114
|
-
var
|
|
3115
|
-
for ((u == "H" || u == "k") && (
|
|
3142
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
|
|
3143
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3116
3144
|
r += l;
|
|
3117
|
-
for (;
|
|
3145
|
+
for (; s-- > 0; )
|
|
3118
3146
|
r = u + r;
|
|
3119
3147
|
} else i === "J" ? r += "H" : r += i;
|
|
3120
3148
|
}
|
|
3121
3149
|
return r;
|
|
3122
3150
|
}
|
|
3123
|
-
function
|
|
3151
|
+
function Dn(e) {
|
|
3124
3152
|
var t = e.hourCycle;
|
|
3125
3153
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3126
3154
|
e.hourCycles && // @ts-ignore
|
|
@@ -3139,23 +3167,23 @@ function $n(e) {
|
|
|
3139
3167
|
}
|
|
3140
3168
|
var r = e.language, n;
|
|
3141
3169
|
r !== "root" && (n = e.maximize().region);
|
|
3142
|
-
var i =
|
|
3170
|
+
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
|
3143
3171
|
return i[0];
|
|
3144
3172
|
}
|
|
3145
|
-
var
|
|
3146
|
-
function
|
|
3173
|
+
var Ie, Un = new RegExp("^".concat(or.source, "*")), Gn = new RegExp("".concat(or.source, "*$"));
|
|
3174
|
+
function g(e, t) {
|
|
3147
3175
|
return { start: e, end: t };
|
|
3148
3176
|
}
|
|
3149
|
-
var
|
|
3177
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, Zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3150
3178
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3151
|
-
},
|
|
3179
|
+
}, ze = !0;
|
|
3152
3180
|
try {
|
|
3153
|
-
var
|
|
3154
|
-
|
|
3181
|
+
var Qn = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3182
|
+
ze = ((Ie = Qn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
3155
3183
|
} catch (e) {
|
|
3156
|
-
|
|
3184
|
+
ze = !1;
|
|
3157
3185
|
}
|
|
3158
|
-
var
|
|
3186
|
+
var St = Fn ? (
|
|
3159
3187
|
// Native
|
|
3160
3188
|
function(t, r, n) {
|
|
3161
3189
|
return t.startsWith(r, n);
|
|
@@ -3165,31 +3193,31 @@ var xt = Gn ? (
|
|
|
3165
3193
|
function(t, r, n) {
|
|
3166
3194
|
return t.slice(n, n + r.length) === r;
|
|
3167
3195
|
}
|
|
3168
|
-
),
|
|
3196
|
+
), We = jn ? String.fromCodePoint : (
|
|
3169
3197
|
// IE11
|
|
3170
3198
|
function() {
|
|
3171
3199
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3172
3200
|
t[r] = arguments[r];
|
|
3173
|
-
for (var n = "", i = t.length, o = 0,
|
|
3174
|
-
if (
|
|
3175
|
-
throw RangeError(
|
|
3176
|
-
n +=
|
|
3201
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
3202
|
+
if (s = t[o++], s > 1114111)
|
|
3203
|
+
throw RangeError(s + " is not a valid code point");
|
|
3204
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3177
3205
|
}
|
|
3178
3206
|
return n;
|
|
3179
3207
|
}
|
|
3180
|
-
),
|
|
3208
|
+
), wt = (
|
|
3181
3209
|
// native
|
|
3182
|
-
|
|
3210
|
+
kn ? Object.fromEntries : (
|
|
3183
3211
|
// Ponyfill
|
|
3184
3212
|
function(t) {
|
|
3185
3213
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3186
|
-
var o = i[n],
|
|
3187
|
-
r[
|
|
3214
|
+
var o = i[n], s = o[0], a = o[1];
|
|
3215
|
+
r[s] = a;
|
|
3188
3216
|
}
|
|
3189
3217
|
return r;
|
|
3190
3218
|
}
|
|
3191
3219
|
)
|
|
3192
|
-
),
|
|
3220
|
+
), lr = Vn ? (
|
|
3193
3221
|
// Native
|
|
3194
3222
|
function(t, r) {
|
|
3195
3223
|
return t.codePointAt(r);
|
|
@@ -3203,7 +3231,7 @@ var xt = Gn ? (
|
|
|
3203
3231
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3204
3232
|
}
|
|
3205
3233
|
}
|
|
3206
|
-
),
|
|
3234
|
+
), Jn = Xn ? (
|
|
3207
3235
|
// Native
|
|
3208
3236
|
function(t) {
|
|
3209
3237
|
return t.trimStart();
|
|
@@ -3211,9 +3239,9 @@ var xt = Gn ? (
|
|
|
3211
3239
|
) : (
|
|
3212
3240
|
// Ponyfill
|
|
3213
3241
|
function(t) {
|
|
3214
|
-
return t.replace(
|
|
3242
|
+
return t.replace(Un, "");
|
|
3215
3243
|
}
|
|
3216
|
-
),
|
|
3244
|
+
), qn = zn ? (
|
|
3217
3245
|
// Native
|
|
3218
3246
|
function(t) {
|
|
3219
3247
|
return t.trimEnd();
|
|
@@ -3221,32 +3249,32 @@ var xt = Gn ? (
|
|
|
3221
3249
|
) : (
|
|
3222
3250
|
// Ponyfill
|
|
3223
3251
|
function(t) {
|
|
3224
|
-
return t.replace(
|
|
3252
|
+
return t.replace(Gn, "");
|
|
3225
3253
|
}
|
|
3226
3254
|
);
|
|
3227
|
-
function
|
|
3255
|
+
function hr(e, t) {
|
|
3228
3256
|
return new RegExp(e, t);
|
|
3229
3257
|
}
|
|
3230
|
-
var
|
|
3231
|
-
if (
|
|
3232
|
-
var
|
|
3233
|
-
|
|
3258
|
+
var Ze;
|
|
3259
|
+
if (ze) {
|
|
3260
|
+
var Tt = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3261
|
+
Ze = function(t, r) {
|
|
3234
3262
|
var n;
|
|
3235
|
-
|
|
3236
|
-
var i =
|
|
3263
|
+
Tt.lastIndex = r;
|
|
3264
|
+
var i = Tt.exec(t);
|
|
3237
3265
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3238
3266
|
};
|
|
3239
3267
|
} else
|
|
3240
|
-
|
|
3268
|
+
Ze = function(t, r) {
|
|
3241
3269
|
for (var n = []; ; ) {
|
|
3242
|
-
var i =
|
|
3243
|
-
if (i === void 0 ||
|
|
3270
|
+
var i = lr(t, r);
|
|
3271
|
+
if (i === void 0 || cr(i) || ti(i))
|
|
3244
3272
|
break;
|
|
3245
3273
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3246
3274
|
}
|
|
3247
|
-
return
|
|
3275
|
+
return We.apply(void 0, n);
|
|
3248
3276
|
};
|
|
3249
|
-
var
|
|
3277
|
+
var Yn = (
|
|
3250
3278
|
/** @class */
|
|
3251
3279
|
function() {
|
|
3252
3280
|
function e(t, r) {
|
|
@@ -3260,33 +3288,33 @@ var qn = (
|
|
|
3260
3288
|
for (var i = []; !this.isEOF(); ) {
|
|
3261
3289
|
var o = this.char();
|
|
3262
3290
|
if (o === 123) {
|
|
3263
|
-
var
|
|
3264
|
-
if (
|
|
3265
|
-
return
|
|
3266
|
-
i.push(
|
|
3291
|
+
var s = this.parseArgument(t, n);
|
|
3292
|
+
if (s.err)
|
|
3293
|
+
return s;
|
|
3294
|
+
i.push(s.val);
|
|
3267
3295
|
} else {
|
|
3268
3296
|
if (o === 125 && t > 0)
|
|
3269
3297
|
break;
|
|
3270
3298
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3271
|
-
var
|
|
3299
|
+
var a = this.clonePosition();
|
|
3272
3300
|
this.bump(), i.push({
|
|
3273
3301
|
type: E.pound,
|
|
3274
|
-
location:
|
|
3302
|
+
location: g(a, this.clonePosition())
|
|
3275
3303
|
});
|
|
3276
3304
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3277
3305
|
if (n)
|
|
3278
3306
|
break;
|
|
3279
|
-
return this.error(
|
|
3280
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3281
|
-
var
|
|
3282
|
-
if (
|
|
3283
|
-
return
|
|
3284
|
-
i.push(
|
|
3307
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3308
|
+
} else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
3309
|
+
var s = this.parseTag(t, r);
|
|
3310
|
+
if (s.err)
|
|
3311
|
+
return s;
|
|
3312
|
+
i.push(s.val);
|
|
3285
3313
|
} else {
|
|
3286
|
-
var
|
|
3287
|
-
if (
|
|
3288
|
-
return
|
|
3289
|
-
i.push(
|
|
3314
|
+
var s = this.parseLiteral(t, r);
|
|
3315
|
+
if (s.err)
|
|
3316
|
+
return s;
|
|
3317
|
+
i.push(s.val);
|
|
3290
3318
|
}
|
|
3291
3319
|
}
|
|
3292
3320
|
}
|
|
@@ -3300,7 +3328,7 @@ var qn = (
|
|
|
3300
3328
|
val: {
|
|
3301
3329
|
type: E.literal,
|
|
3302
3330
|
value: "<".concat(i, "/>"),
|
|
3303
|
-
location:
|
|
3331
|
+
location: g(n, this.clonePosition())
|
|
3304
3332
|
},
|
|
3305
3333
|
err: null
|
|
3306
3334
|
};
|
|
@@ -3308,27 +3336,27 @@ var qn = (
|
|
|
3308
3336
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3309
3337
|
if (o.err)
|
|
3310
3338
|
return o;
|
|
3311
|
-
var
|
|
3339
|
+
var s = o.val, a = this.clonePosition();
|
|
3312
3340
|
if (this.bumpIf("</")) {
|
|
3313
|
-
if (this.isEOF() || !
|
|
3314
|
-
return this.error(
|
|
3341
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
3342
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3315
3343
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3316
|
-
return i !== u ? this.error(
|
|
3344
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3317
3345
|
val: {
|
|
3318
3346
|
type: E.tag,
|
|
3319
3347
|
value: i,
|
|
3320
|
-
children:
|
|
3321
|
-
location:
|
|
3348
|
+
children: s,
|
|
3349
|
+
location: g(n, this.clonePosition())
|
|
3322
3350
|
},
|
|
3323
3351
|
err: null
|
|
3324
|
-
} : this.error(
|
|
3352
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3325
3353
|
} else
|
|
3326
|
-
return this.error(
|
|
3354
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3327
3355
|
} else
|
|
3328
|
-
return this.error(
|
|
3356
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3329
3357
|
}, e.prototype.parseTagName = function() {
|
|
3330
3358
|
var t = this.offset();
|
|
3331
|
-
for (this.bump(); !this.isEOF() &&
|
|
3359
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3332
3360
|
this.bump();
|
|
3333
3361
|
return this.message.slice(t, this.offset());
|
|
3334
3362
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3338,26 +3366,26 @@ var qn = (
|
|
|
3338
3366
|
i += o;
|
|
3339
3367
|
continue;
|
|
3340
3368
|
}
|
|
3341
|
-
var
|
|
3342
|
-
if (a) {
|
|
3343
|
-
i += a;
|
|
3344
|
-
continue;
|
|
3345
|
-
}
|
|
3346
|
-
var s = this.tryParseLeftAngleBracket();
|
|
3369
|
+
var s = this.tryParseUnquoted(t, r);
|
|
3347
3370
|
if (s) {
|
|
3348
3371
|
i += s;
|
|
3349
3372
|
continue;
|
|
3350
3373
|
}
|
|
3374
|
+
var a = this.tryParseLeftAngleBracket();
|
|
3375
|
+
if (a) {
|
|
3376
|
+
i += a;
|
|
3377
|
+
continue;
|
|
3378
|
+
}
|
|
3351
3379
|
break;
|
|
3352
3380
|
}
|
|
3353
|
-
var l =
|
|
3381
|
+
var l = g(n, this.clonePosition());
|
|
3354
3382
|
return {
|
|
3355
3383
|
val: { type: E.literal, value: i, location: l },
|
|
3356
3384
|
err: null
|
|
3357
3385
|
};
|
|
3358
3386
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3359
3387
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3360
|
-
!
|
|
3388
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3361
3389
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3362
3390
|
if (this.isEOF() || this.char() !== 39)
|
|
3363
3391
|
return null;
|
|
@@ -3391,23 +3419,23 @@ var qn = (
|
|
|
3391
3419
|
r.push(n);
|
|
3392
3420
|
this.bump();
|
|
3393
3421
|
}
|
|
3394
|
-
return
|
|
3422
|
+
return We.apply(void 0, r);
|
|
3395
3423
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3396
3424
|
if (this.isEOF())
|
|
3397
3425
|
return null;
|
|
3398
3426
|
var n = this.char();
|
|
3399
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3427
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3400
3428
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3401
3429
|
var n = this.clonePosition();
|
|
3402
3430
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3403
|
-
return this.error(
|
|
3431
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3404
3432
|
if (this.char() === 125)
|
|
3405
|
-
return this.bump(), this.error(
|
|
3433
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3406
3434
|
var i = this.parseIdentifierIfPossible().value;
|
|
3407
3435
|
if (!i)
|
|
3408
|
-
return this.error(
|
|
3436
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3409
3437
|
if (this.bumpSpace(), this.isEOF())
|
|
3410
|
-
return this.error(
|
|
3438
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3411
3439
|
switch (this.char()) {
|
|
3412
3440
|
case 125:
|
|
3413
3441
|
return this.bump(), {
|
|
@@ -3415,25 +3443,25 @@ var qn = (
|
|
|
3415
3443
|
type: E.argument,
|
|
3416
3444
|
// value does not include the opening and closing braces.
|
|
3417
3445
|
value: i,
|
|
3418
|
-
location:
|
|
3446
|
+
location: g(n, this.clonePosition())
|
|
3419
3447
|
},
|
|
3420
3448
|
err: null
|
|
3421
3449
|
};
|
|
3422
3450
|
case 44:
|
|
3423
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3451
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3424
3452
|
default:
|
|
3425
|
-
return this.error(
|
|
3453
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3426
3454
|
}
|
|
3427
3455
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3428
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3456
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
3429
3457
|
this.bumpTo(i);
|
|
3430
|
-
var o = this.clonePosition(),
|
|
3431
|
-
return { value: n, location:
|
|
3458
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3459
|
+
return { value: n, location: s };
|
|
3432
3460
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3433
|
-
var o,
|
|
3434
|
-
switch (
|
|
3461
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3462
|
+
switch (a) {
|
|
3435
3463
|
case "":
|
|
3436
|
-
return this.error(
|
|
3464
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3437
3465
|
case "number":
|
|
3438
3466
|
case "date":
|
|
3439
3467
|
case "time": {
|
|
@@ -3441,47 +3469,47 @@ var qn = (
|
|
|
3441
3469
|
var u = null;
|
|
3442
3470
|
if (this.bumpIf(",")) {
|
|
3443
3471
|
this.bumpSpace();
|
|
3444
|
-
var h = this.clonePosition(),
|
|
3445
|
-
if (
|
|
3446
|
-
return
|
|
3447
|
-
var
|
|
3448
|
-
if (
|
|
3449
|
-
return this.error(
|
|
3450
|
-
var
|
|
3451
|
-
u = { style:
|
|
3472
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3473
|
+
if (f.err)
|
|
3474
|
+
return f;
|
|
3475
|
+
var c = qn(f.val);
|
|
3476
|
+
if (c.length === 0)
|
|
3477
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3478
|
+
var p = g(h, this.clonePosition());
|
|
3479
|
+
u = { style: c, styleLocation: p };
|
|
3452
3480
|
}
|
|
3453
|
-
var
|
|
3454
|
-
if (
|
|
3455
|
-
return
|
|
3456
|
-
var v =
|
|
3457
|
-
if (u &&
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
var
|
|
3461
|
-
return
|
|
3462
|
-
val: { type: E.number, value: n, location: v, style:
|
|
3481
|
+
var m = this.tryParseArgumentClose(i);
|
|
3482
|
+
if (m.err)
|
|
3483
|
+
return m;
|
|
3484
|
+
var v = g(i, this.clonePosition());
|
|
3485
|
+
if (u && St(u == null ? void 0 : u.style, "::", 0)) {
|
|
3486
|
+
var w = Jn(u.style.slice(2));
|
|
3487
|
+
if (a === "number") {
|
|
3488
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3489
|
+
return f.err ? f : {
|
|
3490
|
+
val: { type: E.number, value: n, location: v, style: f.val },
|
|
3463
3491
|
err: null
|
|
3464
3492
|
};
|
|
3465
3493
|
} else {
|
|
3466
|
-
if (
|
|
3467
|
-
return this.error(
|
|
3468
|
-
var
|
|
3469
|
-
this.locale && (
|
|
3470
|
-
var
|
|
3471
|
-
type:
|
|
3472
|
-
pattern:
|
|
3494
|
+
if (w.length === 0)
|
|
3495
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
3496
|
+
var C = w;
|
|
3497
|
+
this.locale && (C = $n(w, this.locale));
|
|
3498
|
+
var c = {
|
|
3499
|
+
type: q.dateTime,
|
|
3500
|
+
pattern: C,
|
|
3473
3501
|
location: u.styleLocation,
|
|
3474
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3475
|
-
},
|
|
3502
|
+
parsedOptions: this.shouldParseSkeletons ? On(C) : {}
|
|
3503
|
+
}, A = a === "date" ? E.date : E.time;
|
|
3476
3504
|
return {
|
|
3477
|
-
val: { type:
|
|
3505
|
+
val: { type: A, value: n, location: v, style: c },
|
|
3478
3506
|
err: null
|
|
3479
3507
|
};
|
|
3480
3508
|
}
|
|
3481
3509
|
}
|
|
3482
3510
|
return {
|
|
3483
3511
|
val: {
|
|
3484
|
-
type:
|
|
3512
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3485
3513
|
value: n,
|
|
3486
3514
|
location: v,
|
|
3487
3515
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3494,30 +3522,30 @@ var qn = (
|
|
|
3494
3522
|
case "select": {
|
|
3495
3523
|
var H = this.clonePosition();
|
|
3496
3524
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3497
|
-
return this.error(
|
|
3525
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(H, _({}, H)));
|
|
3498
3526
|
this.bumpSpace();
|
|
3499
|
-
var
|
|
3500
|
-
if (
|
|
3527
|
+
var L = this.parseIdentifierIfPossible(), O = 0;
|
|
3528
|
+
if (a !== "select" && L.value === "offset") {
|
|
3501
3529
|
if (!this.bumpIf(":"))
|
|
3502
|
-
return this.error(
|
|
3530
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3503
3531
|
this.bumpSpace();
|
|
3504
|
-
var
|
|
3505
|
-
if (
|
|
3506
|
-
return
|
|
3507
|
-
this.bumpSpace(),
|
|
3532
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3533
|
+
if (f.err)
|
|
3534
|
+
return f;
|
|
3535
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), O = f.val;
|
|
3508
3536
|
}
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3512
|
-
var
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3515
|
-
var d =
|
|
3516
|
-
return
|
|
3537
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
|
3538
|
+
if (M.err)
|
|
3539
|
+
return M;
|
|
3540
|
+
var m = this.tryParseArgumentClose(i);
|
|
3541
|
+
if (m.err)
|
|
3542
|
+
return m;
|
|
3543
|
+
var d = g(i, this.clonePosition());
|
|
3544
|
+
return a === "select" ? {
|
|
3517
3545
|
val: {
|
|
3518
3546
|
type: E.select,
|
|
3519
3547
|
value: n,
|
|
3520
|
-
options:
|
|
3548
|
+
options: wt(M.val),
|
|
3521
3549
|
location: d
|
|
3522
3550
|
},
|
|
3523
3551
|
err: null
|
|
@@ -3525,19 +3553,19 @@ var qn = (
|
|
|
3525
3553
|
val: {
|
|
3526
3554
|
type: E.plural,
|
|
3527
3555
|
value: n,
|
|
3528
|
-
options:
|
|
3556
|
+
options: wt(M.val),
|
|
3529
3557
|
offset: O,
|
|
3530
|
-
pluralType:
|
|
3558
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3531
3559
|
location: d
|
|
3532
3560
|
},
|
|
3533
3561
|
err: null
|
|
3534
3562
|
};
|
|
3535
3563
|
}
|
|
3536
3564
|
default:
|
|
3537
|
-
return this.error(
|
|
3565
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3538
3566
|
}
|
|
3539
3567
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3540
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3568
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3541
3569
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3542
3570
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3543
3571
|
var n = this.char();
|
|
@@ -3546,7 +3574,7 @@ var qn = (
|
|
|
3546
3574
|
this.bump();
|
|
3547
3575
|
var i = this.clonePosition();
|
|
3548
3576
|
if (!this.bumpUntil("'"))
|
|
3549
|
-
return this.error(
|
|
3577
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3550
3578
|
this.bump();
|
|
3551
3579
|
break;
|
|
3552
3580
|
}
|
|
@@ -3576,64 +3604,64 @@ var qn = (
|
|
|
3576
3604
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3577
3605
|
var n = [];
|
|
3578
3606
|
try {
|
|
3579
|
-
n =
|
|
3607
|
+
n = In(t);
|
|
3580
3608
|
} catch (i) {
|
|
3581
|
-
return this.error(
|
|
3609
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3582
3610
|
}
|
|
3583
3611
|
return {
|
|
3584
3612
|
val: {
|
|
3585
|
-
type:
|
|
3613
|
+
type: q.number,
|
|
3586
3614
|
tokens: n,
|
|
3587
3615
|
location: r,
|
|
3588
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3616
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
|
|
3589
3617
|
},
|
|
3590
3618
|
err: null
|
|
3591
3619
|
};
|
|
3592
3620
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3593
|
-
for (var o,
|
|
3621
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3594
3622
|
if (u.length === 0) {
|
|
3595
|
-
var
|
|
3623
|
+
var f = this.clonePosition();
|
|
3596
3624
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3597
|
-
var
|
|
3598
|
-
if (
|
|
3599
|
-
return
|
|
3600
|
-
h =
|
|
3625
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3626
|
+
if (c.err)
|
|
3627
|
+
return c;
|
|
3628
|
+
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3601
3629
|
} else
|
|
3602
3630
|
break;
|
|
3603
3631
|
}
|
|
3604
3632
|
if (l.has(u))
|
|
3605
|
-
return this.error(r === "select" ?
|
|
3606
|
-
u === "other" && (
|
|
3607
|
-
var
|
|
3633
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3634
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3635
|
+
var p = this.clonePosition();
|
|
3608
3636
|
if (!this.bumpIf("{"))
|
|
3609
|
-
return this.error(r === "select" ?
|
|
3610
|
-
var
|
|
3611
|
-
if (
|
|
3612
|
-
return
|
|
3613
|
-
var v = this.tryParseArgumentClose(
|
|
3637
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3638
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3639
|
+
if (m.err)
|
|
3640
|
+
return m;
|
|
3641
|
+
var v = this.tryParseArgumentClose(p);
|
|
3614
3642
|
if (v.err)
|
|
3615
3643
|
return v;
|
|
3616
|
-
|
|
3644
|
+
a.push([
|
|
3617
3645
|
u,
|
|
3618
3646
|
{
|
|
3619
|
-
value:
|
|
3620
|
-
location:
|
|
3647
|
+
value: m.val,
|
|
3648
|
+
location: g(p, this.clonePosition())
|
|
3621
3649
|
}
|
|
3622
3650
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3623
3651
|
}
|
|
3624
|
-
return
|
|
3652
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3625
3653
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3626
3654
|
var n = 1, i = this.clonePosition();
|
|
3627
3655
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3628
|
-
for (var o = !1,
|
|
3629
|
-
var
|
|
3630
|
-
if (
|
|
3631
|
-
o = !0,
|
|
3656
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3657
|
+
var a = this.char();
|
|
3658
|
+
if (a >= 48 && a <= 57)
|
|
3659
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3632
3660
|
else
|
|
3633
3661
|
break;
|
|
3634
3662
|
}
|
|
3635
|
-
var l =
|
|
3636
|
-
return o ? (
|
|
3663
|
+
var l = g(i, this.clonePosition());
|
|
3664
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3637
3665
|
}, e.prototype.offset = function() {
|
|
3638
3666
|
return this.position.offset;
|
|
3639
3667
|
}, e.prototype.isEOF = function() {
|
|
@@ -3648,7 +3676,7 @@ var qn = (
|
|
|
3648
3676
|
var t = this.position.offset;
|
|
3649
3677
|
if (t >= this.message.length)
|
|
3650
3678
|
throw Error("out of bound");
|
|
3651
|
-
var r =
|
|
3679
|
+
var r = lr(this.message, t);
|
|
3652
3680
|
if (r === void 0)
|
|
3653
3681
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3654
3682
|
return r;
|
|
@@ -3667,7 +3695,7 @@ var qn = (
|
|
|
3667
3695
|
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);
|
|
3668
3696
|
}
|
|
3669
3697
|
}, e.prototype.bumpIf = function(t) {
|
|
3670
|
-
if (
|
|
3698
|
+
if (St(this.message, t, this.offset())) {
|
|
3671
3699
|
for (var r = 0; r < t.length; r++)
|
|
3672
3700
|
this.bump();
|
|
3673
3701
|
return !0;
|
|
@@ -3689,7 +3717,7 @@ var qn = (
|
|
|
3689
3717
|
break;
|
|
3690
3718
|
}
|
|
3691
3719
|
}, e.prototype.bumpSpace = function() {
|
|
3692
|
-
for (; !this.isEOF() &&
|
|
3720
|
+
for (; !this.isEOF() && cr(this.char()); )
|
|
3693
3721
|
this.bump();
|
|
3694
3722
|
}, e.prototype.peek = function() {
|
|
3695
3723
|
if (this.isEOF())
|
|
@@ -3699,96 +3727,96 @@ var qn = (
|
|
|
3699
3727
|
}, e;
|
|
3700
3728
|
}()
|
|
3701
3729
|
);
|
|
3702
|
-
function
|
|
3730
|
+
function Qe(e) {
|
|
3703
3731
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3704
3732
|
}
|
|
3705
|
-
function Yn(e) {
|
|
3706
|
-
return Ze(e) || e === 47;
|
|
3707
|
-
}
|
|
3708
3733
|
function Kn(e) {
|
|
3734
|
+
return Qe(e) || e === 47;
|
|
3735
|
+
}
|
|
3736
|
+
function ei(e) {
|
|
3709
3737
|
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;
|
|
3710
3738
|
}
|
|
3711
|
-
function
|
|
3739
|
+
function cr(e) {
|
|
3712
3740
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3713
3741
|
}
|
|
3714
|
-
function
|
|
3742
|
+
function ti(e) {
|
|
3715
3743
|
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;
|
|
3716
3744
|
}
|
|
3717
|
-
function
|
|
3745
|
+
function Je(e) {
|
|
3718
3746
|
e.forEach(function(t) {
|
|
3719
|
-
if (delete t.location,
|
|
3747
|
+
if (delete t.location, tr(t) || rr(t))
|
|
3720
3748
|
for (var r in t.options)
|
|
3721
|
-
delete t.options[r].location,
|
|
3722
|
-
else
|
|
3749
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3750
|
+
else Yt(t) && ir(t.style) || (Kt(t) || er(t)) && Xe(t.style) ? delete t.style.location : nr(t) && Je(t.children);
|
|
3723
3751
|
});
|
|
3724
3752
|
}
|
|
3725
|
-
function
|
|
3726
|
-
t === void 0 && (t = {}), t =
|
|
3727
|
-
var r = new
|
|
3753
|
+
function ri(e, t) {
|
|
3754
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3755
|
+
var r = new Yn(e, t).parse();
|
|
3728
3756
|
if (r.err) {
|
|
3729
|
-
var n = SyntaxError(
|
|
3757
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3730
3758
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3731
3759
|
}
|
|
3732
|
-
return t != null && t.captureLocation ||
|
|
3760
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3733
3761
|
}
|
|
3734
|
-
function
|
|
3735
|
-
var r = t && t.cache ? t.cache :
|
|
3762
|
+
function Le(e, t) {
|
|
3763
|
+
var r = t && t.cache ? t.cache : ui, n = t && t.serializer ? t.serializer : ai, i = t && t.strategy ? t.strategy : ii;
|
|
3736
3764
|
return i(e, {
|
|
3737
3765
|
cache: r,
|
|
3738
3766
|
serializer: n
|
|
3739
3767
|
});
|
|
3740
3768
|
}
|
|
3741
|
-
function
|
|
3769
|
+
function ni(e) {
|
|
3742
3770
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3743
3771
|
}
|
|
3744
|
-
function
|
|
3745
|
-
var i =
|
|
3772
|
+
function fr(e, t, r, n) {
|
|
3773
|
+
var i = ni(n) ? n : r(n), o = t.get(i);
|
|
3746
3774
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
3747
3775
|
}
|
|
3748
|
-
function
|
|
3776
|
+
function dr(e, t, r) {
|
|
3749
3777
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
3750
3778
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
3751
3779
|
}
|
|
3752
|
-
function
|
|
3780
|
+
function Ke(e, t, r, n, i) {
|
|
3753
3781
|
return r.bind(t, e, n, i);
|
|
3754
3782
|
}
|
|
3755
|
-
function ni(e, t) {
|
|
3756
|
-
var r = e.length === 1 ? hr : cr;
|
|
3757
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
3758
|
-
}
|
|
3759
3783
|
function ii(e, t) {
|
|
3760
|
-
|
|
3784
|
+
var r = e.length === 1 ? fr : dr;
|
|
3785
|
+
return Ke(e, this, r, t.cache.create(), t.serializer);
|
|
3761
3786
|
}
|
|
3762
3787
|
function oi(e, t) {
|
|
3763
|
-
return
|
|
3788
|
+
return Ke(e, this, dr, t.cache.create(), t.serializer);
|
|
3789
|
+
}
|
|
3790
|
+
function si(e, t) {
|
|
3791
|
+
return Ke(e, this, fr, t.cache.create(), t.serializer);
|
|
3764
3792
|
}
|
|
3765
|
-
var
|
|
3793
|
+
var ai = function() {
|
|
3766
3794
|
return JSON.stringify(arguments);
|
|
3767
3795
|
};
|
|
3768
|
-
function
|
|
3796
|
+
function et() {
|
|
3769
3797
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
3770
3798
|
}
|
|
3771
|
-
|
|
3799
|
+
et.prototype.get = function(e) {
|
|
3772
3800
|
return this.cache[e];
|
|
3773
3801
|
};
|
|
3774
|
-
|
|
3802
|
+
et.prototype.set = function(e, t) {
|
|
3775
3803
|
this.cache[e] = t;
|
|
3776
3804
|
};
|
|
3777
|
-
var
|
|
3805
|
+
var ui = {
|
|
3778
3806
|
create: function() {
|
|
3779
|
-
return new
|
|
3807
|
+
return new et();
|
|
3780
3808
|
}
|
|
3781
|
-
},
|
|
3782
|
-
variadic:
|
|
3783
|
-
monadic:
|
|
3784
|
-
},
|
|
3809
|
+
}, Me = {
|
|
3810
|
+
variadic: oi,
|
|
3811
|
+
monadic: si
|
|
3812
|
+
}, Y;
|
|
3785
3813
|
(function(e) {
|
|
3786
3814
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3787
|
-
})(
|
|
3788
|
-
var
|
|
3815
|
+
})(Y || (Y = {}));
|
|
3816
|
+
var Te = (
|
|
3789
3817
|
/** @class */
|
|
3790
3818
|
function(e) {
|
|
3791
|
-
|
|
3819
|
+
D(t, e);
|
|
3792
3820
|
function t(r, n, i) {
|
|
3793
3821
|
var o = e.call(this, r) || this;
|
|
3794
3822
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3797,153 +3825,153 @@ var we = (
|
|
|
3797
3825
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3798
3826
|
}, t;
|
|
3799
3827
|
}(Error)
|
|
3800
|
-
),
|
|
3828
|
+
), Ht = (
|
|
3801
3829
|
/** @class */
|
|
3802
3830
|
function(e) {
|
|
3803
|
-
|
|
3831
|
+
D(t, e);
|
|
3804
3832
|
function t(r, n, i, o) {
|
|
3805
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3833
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3806
3834
|
}
|
|
3807
3835
|
return t;
|
|
3808
|
-
}(
|
|
3809
|
-
),
|
|
3836
|
+
}(Te)
|
|
3837
|
+
), li = (
|
|
3810
3838
|
/** @class */
|
|
3811
3839
|
function(e) {
|
|
3812
|
-
|
|
3840
|
+
D(t, e);
|
|
3813
3841
|
function t(r, n, i) {
|
|
3814
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3842
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3815
3843
|
}
|
|
3816
3844
|
return t;
|
|
3817
|
-
}(
|
|
3818
|
-
),
|
|
3845
|
+
}(Te)
|
|
3846
|
+
), hi = (
|
|
3819
3847
|
/** @class */
|
|
3820
3848
|
function(e) {
|
|
3821
|
-
|
|
3849
|
+
D(t, e);
|
|
3822
3850
|
function t(r, n) {
|
|
3823
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3851
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3824
3852
|
}
|
|
3825
3853
|
return t;
|
|
3826
|
-
}(
|
|
3827
|
-
),
|
|
3854
|
+
}(Te)
|
|
3855
|
+
), B;
|
|
3828
3856
|
(function(e) {
|
|
3829
3857
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3830
|
-
})(
|
|
3831
|
-
function
|
|
3858
|
+
})(B || (B = {}));
|
|
3859
|
+
function ci(e) {
|
|
3832
3860
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3833
3861
|
var n = t[t.length - 1];
|
|
3834
|
-
return !n || n.type !==
|
|
3862
|
+
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3835
3863
|
}, []);
|
|
3836
3864
|
}
|
|
3837
|
-
function
|
|
3865
|
+
function fi(e) {
|
|
3838
3866
|
return typeof e == "function";
|
|
3839
3867
|
}
|
|
3840
|
-
function
|
|
3841
|
-
if (e.length === 1 &&
|
|
3868
|
+
function ye(e, t, r, n, i, o, s) {
|
|
3869
|
+
if (e.length === 1 && vt(e[0]))
|
|
3842
3870
|
return [
|
|
3843
3871
|
{
|
|
3844
|
-
type:
|
|
3872
|
+
type: B.literal,
|
|
3845
3873
|
value: e[0].value
|
|
3846
3874
|
}
|
|
3847
3875
|
];
|
|
3848
|
-
for (var
|
|
3876
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3849
3877
|
var h = u[l];
|
|
3850
|
-
if (
|
|
3851
|
-
|
|
3852
|
-
type:
|
|
3878
|
+
if (vt(h)) {
|
|
3879
|
+
a.push({
|
|
3880
|
+
type: B.literal,
|
|
3853
3881
|
value: h.value
|
|
3854
3882
|
});
|
|
3855
3883
|
continue;
|
|
3856
3884
|
}
|
|
3857
|
-
if (
|
|
3858
|
-
typeof o == "number" &&
|
|
3859
|
-
type:
|
|
3885
|
+
if (Pn(h)) {
|
|
3886
|
+
typeof o == "number" && a.push({
|
|
3887
|
+
type: B.literal,
|
|
3860
3888
|
value: r.getNumberFormat(t).format(o)
|
|
3861
3889
|
});
|
|
3862
3890
|
continue;
|
|
3863
3891
|
}
|
|
3864
|
-
var
|
|
3865
|
-
if (!(i &&
|
|
3866
|
-
throw new
|
|
3867
|
-
var
|
|
3868
|
-
if (
|
|
3869
|
-
(!
|
|
3870
|
-
type: typeof
|
|
3871
|
-
value:
|
|
3892
|
+
var f = h.value;
|
|
3893
|
+
if (!(i && f in i))
|
|
3894
|
+
throw new hi(f, s);
|
|
3895
|
+
var c = i[f];
|
|
3896
|
+
if (Bn(h)) {
|
|
3897
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3898
|
+
type: typeof c == "string" ? B.literal : B.object,
|
|
3899
|
+
value: c
|
|
3872
3900
|
});
|
|
3873
3901
|
continue;
|
|
3874
3902
|
}
|
|
3875
|
-
if (
|
|
3876
|
-
var
|
|
3877
|
-
|
|
3878
|
-
type:
|
|
3879
|
-
value: r.getDateTimeFormat(t,
|
|
3903
|
+
if (Kt(h)) {
|
|
3904
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3905
|
+
a.push({
|
|
3906
|
+
type: B.literal,
|
|
3907
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3880
3908
|
});
|
|
3881
3909
|
continue;
|
|
3882
3910
|
}
|
|
3883
|
-
if (
|
|
3884
|
-
var
|
|
3885
|
-
|
|
3886
|
-
type:
|
|
3887
|
-
value: r.getDateTimeFormat(t,
|
|
3911
|
+
if (er(h)) {
|
|
3912
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3913
|
+
a.push({
|
|
3914
|
+
type: B.literal,
|
|
3915
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3888
3916
|
});
|
|
3889
3917
|
continue;
|
|
3890
3918
|
}
|
|
3891
|
-
if (
|
|
3892
|
-
var
|
|
3893
|
-
|
|
3894
|
-
type:
|
|
3895
|
-
value: r.getNumberFormat(t,
|
|
3919
|
+
if (Yt(h)) {
|
|
3920
|
+
var p = typeof h.style == "string" ? n.number[h.style] : ir(h.style) ? h.style.parsedOptions : void 0;
|
|
3921
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3922
|
+
type: B.literal,
|
|
3923
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3896
3924
|
});
|
|
3897
3925
|
continue;
|
|
3898
3926
|
}
|
|
3899
|
-
if (
|
|
3900
|
-
var
|
|
3901
|
-
if (!
|
|
3902
|
-
throw new
|
|
3903
|
-
var
|
|
3927
|
+
if (nr(h)) {
|
|
3928
|
+
var m = h.children, v = h.value, w = i[v];
|
|
3929
|
+
if (!fi(w))
|
|
3930
|
+
throw new li(v, "function", s);
|
|
3931
|
+
var C = ye(m, t, r, n, i, o), A = w(C.map(function(O) {
|
|
3904
3932
|
return O.value;
|
|
3905
3933
|
}));
|
|
3906
|
-
Array.isArray(
|
|
3934
|
+
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(O) {
|
|
3907
3935
|
return {
|
|
3908
|
-
type: typeof O == "string" ?
|
|
3936
|
+
type: typeof O == "string" ? B.literal : B.object,
|
|
3909
3937
|
value: O
|
|
3910
3938
|
};
|
|
3911
3939
|
}));
|
|
3912
3940
|
}
|
|
3913
|
-
if (
|
|
3914
|
-
var H = h.options[
|
|
3941
|
+
if (tr(h)) {
|
|
3942
|
+
var H = h.options[c] || h.options.other;
|
|
3915
3943
|
if (!H)
|
|
3916
|
-
throw new
|
|
3917
|
-
|
|
3944
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3945
|
+
a.push.apply(a, ye(H.value, t, r, n, i));
|
|
3918
3946
|
continue;
|
|
3919
3947
|
}
|
|
3920
|
-
if (
|
|
3921
|
-
var H = h.options["=".concat(
|
|
3948
|
+
if (rr(h)) {
|
|
3949
|
+
var H = h.options["=".concat(c)];
|
|
3922
3950
|
if (!H) {
|
|
3923
3951
|
if (!Intl.PluralRules)
|
|
3924
|
-
throw new
|
|
3952
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3925
3953
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3926
|
-
`,
|
|
3927
|
-
var
|
|
3928
|
-
H = h.options[
|
|
3954
|
+
`, Y.MISSING_INTL_API, s);
|
|
3955
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3956
|
+
H = h.options[L] || h.options.other;
|
|
3929
3957
|
}
|
|
3930
3958
|
if (!H)
|
|
3931
|
-
throw new
|
|
3932
|
-
|
|
3959
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3960
|
+
a.push.apply(a, ye(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3933
3961
|
continue;
|
|
3934
3962
|
}
|
|
3935
3963
|
}
|
|
3936
|
-
return
|
|
3964
|
+
return ci(a);
|
|
3937
3965
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return t ?
|
|
3940
|
-
return r[n] =
|
|
3966
|
+
function di(e, t) {
|
|
3967
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3968
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3941
3969
|
}, {})) : e;
|
|
3942
3970
|
}
|
|
3943
|
-
function
|
|
3971
|
+
function pi(e, t) {
|
|
3944
3972
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3945
|
-
return r[n] =
|
|
3946
|
-
},
|
|
3973
|
+
return r[n] = di(e[n], t[n]), r;
|
|
3974
|
+
}, _({}, e)) : e;
|
|
3947
3975
|
}
|
|
3948
3976
|
function Ne(e) {
|
|
3949
3977
|
return {
|
|
@@ -3959,39 +3987,39 @@ function Ne(e) {
|
|
|
3959
3987
|
}
|
|
3960
3988
|
};
|
|
3961
3989
|
}
|
|
3962
|
-
function
|
|
3990
|
+
function mi(e) {
|
|
3963
3991
|
return e === void 0 && (e = {
|
|
3964
3992
|
number: {},
|
|
3965
3993
|
dateTime: {},
|
|
3966
3994
|
pluralRules: {}
|
|
3967
3995
|
}), {
|
|
3968
|
-
getNumberFormat:
|
|
3996
|
+
getNumberFormat: Le(function() {
|
|
3969
3997
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3970
3998
|
r[n] = arguments[n];
|
|
3971
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3999
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Q([void 0], r, !1)))();
|
|
3972
4000
|
}, {
|
|
3973
4001
|
cache: Ne(e.number),
|
|
3974
|
-
strategy:
|
|
4002
|
+
strategy: Me.variadic
|
|
3975
4003
|
}),
|
|
3976
|
-
getDateTimeFormat:
|
|
4004
|
+
getDateTimeFormat: Le(function() {
|
|
3977
4005
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3978
4006
|
r[n] = arguments[n];
|
|
3979
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4007
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Q([void 0], r, !1)))();
|
|
3980
4008
|
}, {
|
|
3981
4009
|
cache: Ne(e.dateTime),
|
|
3982
|
-
strategy:
|
|
4010
|
+
strategy: Me.variadic
|
|
3983
4011
|
}),
|
|
3984
|
-
getPluralRules:
|
|
4012
|
+
getPluralRules: Le(function() {
|
|
3985
4013
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3986
4014
|
r[n] = arguments[n];
|
|
3987
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4015
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Q([void 0], r, !1)))();
|
|
3988
4016
|
}, {
|
|
3989
4017
|
cache: Ne(e.pluralRules),
|
|
3990
|
-
strategy:
|
|
4018
|
+
strategy: Me.variadic
|
|
3991
4019
|
})
|
|
3992
4020
|
};
|
|
3993
4021
|
}
|
|
3994
|
-
var
|
|
4022
|
+
var bi = (
|
|
3995
4023
|
/** @class */
|
|
3996
4024
|
function() {
|
|
3997
4025
|
function e(t, r, n, i) {
|
|
@@ -4004,12 +4032,12 @@ var mi = (
|
|
|
4004
4032
|
var u = o.formatToParts(l);
|
|
4005
4033
|
if (u.length === 1)
|
|
4006
4034
|
return u[0].value;
|
|
4007
|
-
var h = u.reduce(function(
|
|
4008
|
-
return !
|
|
4035
|
+
var h = u.reduce(function(f, c) {
|
|
4036
|
+
return !f.length || c.type !== B.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4009
4037
|
}, []);
|
|
4010
4038
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4011
4039
|
}, this.formatToParts = function(l) {
|
|
4012
|
-
return
|
|
4040
|
+
return ye(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4013
4041
|
}, this.resolvedOptions = function() {
|
|
4014
4042
|
var l;
|
|
4015
4043
|
return {
|
|
@@ -4020,15 +4048,15 @@ var mi = (
|
|
|
4020
4048
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4021
4049
|
if (this.message = t, !e.__parse)
|
|
4022
4050
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4023
|
-
var
|
|
4024
|
-
|
|
4025
|
-
var
|
|
4026
|
-
this.ast = e.__parse(t,
|
|
4051
|
+
var s = i || {};
|
|
4052
|
+
s.formatters;
|
|
4053
|
+
var a = Qr(s, ["formatters"]);
|
|
4054
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
4027
4055
|
} else
|
|
4028
4056
|
this.ast = t;
|
|
4029
4057
|
if (!Array.isArray(this.ast))
|
|
4030
4058
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4031
|
-
this.formats =
|
|
4059
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || mi(this.formatterCache);
|
|
4032
4060
|
}
|
|
4033
4061
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4034
4062
|
get: function() {
|
|
@@ -4041,7 +4069,7 @@ var mi = (
|
|
|
4041
4069
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4042
4070
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4043
4071
|
}
|
|
4044
|
-
}, e.__parse =
|
|
4072
|
+
}, e.__parse = ri, e.formats = {
|
|
4045
4073
|
number: {
|
|
4046
4074
|
integer: {
|
|
4047
4075
|
maximumFractionDigits: 0
|
|
@@ -4102,7 +4130,7 @@ var mi = (
|
|
|
4102
4130
|
}, e;
|
|
4103
4131
|
}()
|
|
4104
4132
|
);
|
|
4105
|
-
function
|
|
4133
|
+
function yi(e, t) {
|
|
4106
4134
|
if (t == null)
|
|
4107
4135
|
return;
|
|
4108
4136
|
if (t in e)
|
|
@@ -4123,92 +4151,92 @@ function bi(e, t) {
|
|
|
4123
4151
|
n = void 0;
|
|
4124
4152
|
return n;
|
|
4125
4153
|
}
|
|
4126
|
-
const
|
|
4154
|
+
const G = {}, gi = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), pr = (e, t) => {
|
|
4127
4155
|
if (t == null)
|
|
4128
4156
|
return;
|
|
4129
|
-
if (t in
|
|
4130
|
-
return
|
|
4131
|
-
const r =
|
|
4157
|
+
if (t in G && e in G[t])
|
|
4158
|
+
return G[t][e];
|
|
4159
|
+
const r = He(t);
|
|
4132
4160
|
for (let n = 0; n < r.length; n++) {
|
|
4133
|
-
const i = r[n], o =
|
|
4161
|
+
const i = r[n], o = _i(i, e);
|
|
4134
4162
|
if (o)
|
|
4135
|
-
return
|
|
4163
|
+
return gi(e, t, o);
|
|
4136
4164
|
}
|
|
4137
4165
|
};
|
|
4138
|
-
let
|
|
4139
|
-
const ae =
|
|
4140
|
-
function
|
|
4141
|
-
return
|
|
4166
|
+
let tt;
|
|
4167
|
+
const ae = we({});
|
|
4168
|
+
function vi(e) {
|
|
4169
|
+
return tt[e] || null;
|
|
4142
4170
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return e in
|
|
4171
|
+
function mr(e) {
|
|
4172
|
+
return e in tt;
|
|
4145
4173
|
}
|
|
4146
|
-
function
|
|
4147
|
-
if (!
|
|
4174
|
+
function _i(e, t) {
|
|
4175
|
+
if (!mr(e))
|
|
4148
4176
|
return null;
|
|
4149
|
-
const r =
|
|
4150
|
-
return
|
|
4177
|
+
const r = vi(e);
|
|
4178
|
+
return yi(r, t);
|
|
4151
4179
|
}
|
|
4152
|
-
function
|
|
4180
|
+
function Ei(e) {
|
|
4153
4181
|
if (e == null)
|
|
4154
4182
|
return;
|
|
4155
|
-
const t =
|
|
4183
|
+
const t = He(e);
|
|
4156
4184
|
for (let r = 0; r < t.length; r++) {
|
|
4157
4185
|
const n = t[r];
|
|
4158
|
-
if (
|
|
4186
|
+
if (mr(n))
|
|
4159
4187
|
return n;
|
|
4160
4188
|
}
|
|
4161
4189
|
}
|
|
4162
|
-
function
|
|
4163
|
-
delete
|
|
4190
|
+
function xi(e, ...t) {
|
|
4191
|
+
delete G[e], ae.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
|
4164
4192
|
}
|
|
4165
4193
|
ee(
|
|
4166
4194
|
[ae],
|
|
4167
4195
|
([e]) => Object.keys(e)
|
|
4168
4196
|
);
|
|
4169
|
-
ae.subscribe((e) =>
|
|
4170
|
-
const
|
|
4171
|
-
function
|
|
4172
|
-
|
|
4197
|
+
ae.subscribe((e) => tt = e);
|
|
4198
|
+
const ge = {};
|
|
4199
|
+
function Si(e, t) {
|
|
4200
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
4173
4201
|
}
|
|
4174
|
-
function
|
|
4175
|
-
return
|
|
4202
|
+
function br(e) {
|
|
4203
|
+
return ge[e];
|
|
4176
4204
|
}
|
|
4177
|
-
function
|
|
4178
|
-
return
|
|
4179
|
-
const r =
|
|
4205
|
+
function wi(e) {
|
|
4206
|
+
return He(e).map((t) => {
|
|
4207
|
+
const r = br(t);
|
|
4180
4208
|
return [t, r ? [...r] : []];
|
|
4181
4209
|
}).filter(([, t]) => t.length > 0);
|
|
4182
4210
|
}
|
|
4183
|
-
function
|
|
4184
|
-
return e == null ? !1 :
|
|
4211
|
+
function qe(e) {
|
|
4212
|
+
return e == null ? !1 : He(e).some(
|
|
4185
4213
|
(t) => {
|
|
4186
4214
|
var r;
|
|
4187
|
-
return (r =
|
|
4215
|
+
return (r = br(t)) == null ? void 0 : r.size;
|
|
4188
4216
|
}
|
|
4189
4217
|
);
|
|
4190
4218
|
}
|
|
4191
|
-
function
|
|
4219
|
+
function Ti(e, t) {
|
|
4192
4220
|
return Promise.all(
|
|
4193
|
-
t.map((n) => (
|
|
4194
|
-
).then((n) =>
|
|
4221
|
+
t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
|
|
4222
|
+
).then((n) => xi(e, ...n));
|
|
4195
4223
|
}
|
|
4196
4224
|
const re = {};
|
|
4197
|
-
function
|
|
4198
|
-
if (!
|
|
4225
|
+
function yr(e) {
|
|
4226
|
+
if (!qe(e))
|
|
4199
4227
|
return e in re ? re[e] : Promise.resolve();
|
|
4200
|
-
const t =
|
|
4228
|
+
const t = wi(e);
|
|
4201
4229
|
return re[e] = Promise.all(
|
|
4202
4230
|
t.map(
|
|
4203
|
-
([r, n]) =>
|
|
4231
|
+
([r, n]) => Ti(r, n)
|
|
4204
4232
|
)
|
|
4205
4233
|
).then(() => {
|
|
4206
|
-
if (
|
|
4207
|
-
return
|
|
4234
|
+
if (qe(e))
|
|
4235
|
+
return yr(e);
|
|
4208
4236
|
delete re[e];
|
|
4209
4237
|
}), re[e];
|
|
4210
4238
|
}
|
|
4211
|
-
const
|
|
4239
|
+
const Hi = {
|
|
4212
4240
|
number: {
|
|
4213
4241
|
scientific: { notation: "scientific" },
|
|
4214
4242
|
engineering: { notation: "engineering" },
|
|
@@ -4237,100 +4265,100 @@ const Ti = {
|
|
|
4237
4265
|
timeZoneName: "short"
|
|
4238
4266
|
}
|
|
4239
4267
|
}
|
|
4240
|
-
},
|
|
4268
|
+
}, Bi = {
|
|
4241
4269
|
fallbackLocale: null,
|
|
4242
4270
|
loadingDelay: 200,
|
|
4243
|
-
formats:
|
|
4271
|
+
formats: Hi,
|
|
4244
4272
|
warnOnMissingMessages: !0,
|
|
4245
4273
|
handleMissingMessage: void 0,
|
|
4246
4274
|
ignoreTag: !0
|
|
4247
|
-
},
|
|
4248
|
-
function
|
|
4249
|
-
return
|
|
4275
|
+
}, Pi = Bi;
|
|
4276
|
+
function K() {
|
|
4277
|
+
return Pi;
|
|
4250
4278
|
}
|
|
4251
|
-
const
|
|
4252
|
-
var
|
|
4279
|
+
const Re = we(!1);
|
|
4280
|
+
var Ai = Object.defineProperty, Oi = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mi = (e, t) => {
|
|
4253
4281
|
for (var r in t || (t = {}))
|
|
4254
|
-
|
|
4255
|
-
if (
|
|
4256
|
-
for (var r of
|
|
4257
|
-
|
|
4282
|
+
Ii.call(t, r) && Pt(e, r, t[r]);
|
|
4283
|
+
if (Bt)
|
|
4284
|
+
for (var r of Bt(t))
|
|
4285
|
+
Li.call(t, r) && Pt(e, r, t[r]);
|
|
4258
4286
|
return e;
|
|
4259
|
-
}, Ni = (e, t) =>
|
|
4260
|
-
let
|
|
4261
|
-
const
|
|
4262
|
-
function
|
|
4287
|
+
}, Ni = (e, t) => Oi(e, Ci(t));
|
|
4288
|
+
let Ye;
|
|
4289
|
+
const ve = we(null);
|
|
4290
|
+
function At(e) {
|
|
4263
4291
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4264
4292
|
}
|
|
4265
|
-
function
|
|
4266
|
-
const r =
|
|
4267
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4293
|
+
function He(e, t = K().fallbackLocale) {
|
|
4294
|
+
const r = At(e);
|
|
4295
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
|
|
4268
4296
|
}
|
|
4269
|
-
function
|
|
4270
|
-
return
|
|
4297
|
+
function V() {
|
|
4298
|
+
return Ye != null ? Ye : void 0;
|
|
4271
4299
|
}
|
|
4272
|
-
|
|
4273
|
-
|
|
4300
|
+
ve.subscribe((e) => {
|
|
4301
|
+
Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4274
4302
|
});
|
|
4275
|
-
const
|
|
4276
|
-
if (e &&
|
|
4277
|
-
const { loadingDelay: t } =
|
|
4303
|
+
const Ri = (e) => {
|
|
4304
|
+
if (e && Ei(e) && qe(e)) {
|
|
4305
|
+
const { loadingDelay: t } = K();
|
|
4278
4306
|
let r;
|
|
4279
|
-
return typeof window != "undefined" &&
|
|
4280
|
-
() =>
|
|
4307
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
4308
|
+
() => Re.set(!0),
|
|
4281
4309
|
t
|
|
4282
|
-
) :
|
|
4283
|
-
|
|
4310
|
+
) : Re.set(!0), yr(e).then(() => {
|
|
4311
|
+
ve.set(e);
|
|
4284
4312
|
}).finally(() => {
|
|
4285
|
-
clearTimeout(r),
|
|
4313
|
+
clearTimeout(r), Re.set(!1);
|
|
4286
4314
|
});
|
|
4287
4315
|
}
|
|
4288
|
-
return
|
|
4289
|
-
}, ue = Ni(
|
|
4290
|
-
set:
|
|
4291
|
-
}),
|
|
4316
|
+
return ve.set(e);
|
|
4317
|
+
}, ue = Ni(Mi({}, ve), {
|
|
4318
|
+
set: Ri
|
|
4319
|
+
}), Be = (e) => {
|
|
4292
4320
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4293
4321
|
return (n) => {
|
|
4294
4322
|
const i = JSON.stringify(n);
|
|
4295
4323
|
return i in t ? t[i] : t[i] = e(n);
|
|
4296
4324
|
};
|
|
4297
4325
|
};
|
|
4298
|
-
var
|
|
4326
|
+
var $i = Object.defineProperty, _e = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
4299
4327
|
for (var r in t || (t = {}))
|
|
4300
|
-
|
|
4301
|
-
if (
|
|
4302
|
-
for (var r of
|
|
4303
|
-
|
|
4328
|
+
gr.call(t, r) && Ot(e, r, t[r]);
|
|
4329
|
+
if (_e)
|
|
4330
|
+
for (var r of _e(t))
|
|
4331
|
+
vr.call(t, r) && Ot(e, r, t[r]);
|
|
4304
4332
|
return e;
|
|
4305
4333
|
}, te = (e, t) => {
|
|
4306
4334
|
var r = {};
|
|
4307
4335
|
for (var n in e)
|
|
4308
|
-
|
|
4309
|
-
if (e != null &&
|
|
4310
|
-
for (var n of
|
|
4311
|
-
t.indexOf(n) < 0 &&
|
|
4336
|
+
gr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4337
|
+
if (e != null && _e)
|
|
4338
|
+
for (var n of _e(e))
|
|
4339
|
+
t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
|
|
4312
4340
|
return r;
|
|
4313
4341
|
};
|
|
4314
4342
|
const se = (e, t) => {
|
|
4315
|
-
const { formats: r } =
|
|
4343
|
+
const { formats: r } = K();
|
|
4316
4344
|
if (e in r && t in r[e])
|
|
4317
4345
|
return r[e][t];
|
|
4318
4346
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4319
|
-
},
|
|
4347
|
+
}, Di = Be(
|
|
4320
4348
|
(e) => {
|
|
4321
4349
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4322
4350
|
if (r == null)
|
|
4323
4351
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4324
4352
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4325
4353
|
}
|
|
4326
|
-
),
|
|
4354
|
+
), Ui = Be(
|
|
4327
4355
|
(e) => {
|
|
4328
4356
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4329
4357
|
if (r == null)
|
|
4330
4358
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4331
4359
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4332
4360
|
}
|
|
4333
|
-
),
|
|
4361
|
+
), Gi = Be(
|
|
4334
4362
|
(e) => {
|
|
4335
4363
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4336
4364
|
if (r == null)
|
|
@@ -4339,74 +4367,74 @@ const se = (e, t) => {
|
|
|
4339
4367
|
);
|
|
4340
4368
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4341
4369
|
}
|
|
4342
|
-
),
|
|
4370
|
+
), Fi = (e = {}) => {
|
|
4343
4371
|
var t = e, {
|
|
4344
|
-
locale: r =
|
|
4372
|
+
locale: r = V()
|
|
4345
4373
|
} = t, n = te(t, [
|
|
4346
4374
|
"locale"
|
|
4347
4375
|
]);
|
|
4348
|
-
return
|
|
4349
|
-
},
|
|
4376
|
+
return Di(rt({ locale: r }, n));
|
|
4377
|
+
}, ji = (e = {}) => {
|
|
4350
4378
|
var t = e, {
|
|
4351
|
-
locale: r =
|
|
4379
|
+
locale: r = V()
|
|
4352
4380
|
} = t, n = te(t, [
|
|
4353
4381
|
"locale"
|
|
4354
4382
|
]);
|
|
4355
|
-
return
|
|
4356
|
-
},
|
|
4383
|
+
return Ui(rt({ locale: r }, n));
|
|
4384
|
+
}, ki = (e = {}) => {
|
|
4357
4385
|
var t = e, {
|
|
4358
|
-
locale: r =
|
|
4386
|
+
locale: r = V()
|
|
4359
4387
|
} = t, n = te(t, [
|
|
4360
4388
|
"locale"
|
|
4361
4389
|
]);
|
|
4362
|
-
return
|
|
4363
|
-
},
|
|
4390
|
+
return Gi(rt({ locale: r }, n));
|
|
4391
|
+
}, Vi = Be(
|
|
4364
4392
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4365
|
-
(e, t =
|
|
4366
|
-
ignoreTag:
|
|
4393
|
+
(e, t = V()) => new bi(e, t, K().formats, {
|
|
4394
|
+
ignoreTag: K().ignoreTag
|
|
4367
4395
|
})
|
|
4368
|
-
),
|
|
4396
|
+
), Xi = (e, t = {}) => {
|
|
4369
4397
|
var r, n, i, o;
|
|
4370
|
-
let
|
|
4371
|
-
typeof e == "object" && (
|
|
4398
|
+
let s = t;
|
|
4399
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
4372
4400
|
const {
|
|
4373
|
-
values:
|
|
4374
|
-
locale: l =
|
|
4401
|
+
values: a,
|
|
4402
|
+
locale: l = V(),
|
|
4375
4403
|
default: u
|
|
4376
|
-
} =
|
|
4404
|
+
} = s;
|
|
4377
4405
|
if (l == null)
|
|
4378
4406
|
throw new Error(
|
|
4379
4407
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4380
4408
|
);
|
|
4381
|
-
let h =
|
|
4409
|
+
let h = pr(e, l);
|
|
4382
4410
|
if (!h)
|
|
4383
|
-
h = (o = (i = (n = (r =
|
|
4411
|
+
h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4384
4412
|
else if (typeof h != "string")
|
|
4385
4413
|
return console.warn(
|
|
4386
4414
|
`[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.`
|
|
4387
4415
|
), h;
|
|
4388
|
-
if (!
|
|
4416
|
+
if (!a)
|
|
4389
4417
|
return h;
|
|
4390
|
-
let
|
|
4418
|
+
let f = h;
|
|
4391
4419
|
try {
|
|
4392
|
-
|
|
4393
|
-
} catch (
|
|
4394
|
-
|
|
4420
|
+
f = Vi(h, l).format(a);
|
|
4421
|
+
} catch (c) {
|
|
4422
|
+
c instanceof Error && console.warn(
|
|
4395
4423
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4396
|
-
|
|
4424
|
+
c.message
|
|
4397
4425
|
);
|
|
4398
4426
|
}
|
|
4399
|
-
return
|
|
4400
|
-
},
|
|
4401
|
-
ee([ue], () => Xi);
|
|
4427
|
+
return f;
|
|
4428
|
+
}, zi = (e, t) => ki(t).format(e), Wi = (e, t) => ji(t).format(e), Zi = (e, t) => Fi(t).format(e), Qi = (e, t = V()) => pr(e, t), Ho = ee([ue, ae], () => Xi);
|
|
4402
4429
|
ee([ue], () => zi);
|
|
4403
4430
|
ee([ue], () => Wi);
|
|
4404
|
-
ee([ue
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4431
|
+
ee([ue], () => Zi);
|
|
4432
|
+
ee([ue, ae], () => Qi);
|
|
4433
|
+
window.emWidgets = { topic: ln };
|
|
4434
|
+
const _r = (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)), Ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4435
|
+
function Bo(e, t) {
|
|
4408
4436
|
const r = window.navigator.userAgent;
|
|
4409
|
-
return
|
|
4437
|
+
return _r(r) ? t = e.filter((n) => {
|
|
4410
4438
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
4411
4439
|
return n;
|
|
4412
4440
|
}) : t = e.filter((n) => {
|
|
@@ -4426,7 +4454,7 @@ if (typeof window != "undefined") {
|
|
|
4426
4454
|
}
|
|
4427
4455
|
};
|
|
4428
4456
|
};
|
|
4429
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4457
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-D1_fuwa2.js").then(({ default: t }) => {
|
|
4430
4458
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4431
4459
|
});
|
|
4432
4460
|
}
|
|
@@ -4442,216 +4470,216 @@ if (typeof window != "undefined") {
|
|
|
4442
4470
|
}
|
|
4443
4471
|
};
|
|
4444
4472
|
};
|
|
4445
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem
|
|
4473
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem--qoA25VJ.js").then(({ default: t }) => {
|
|
4446
4474
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4447
4475
|
});
|
|
4448
4476
|
}
|
|
4449
|
-
function
|
|
4450
|
-
|
|
4477
|
+
function qi(e) {
|
|
4478
|
+
Ar(e, "svelte-1u5xzds", `.CasinoCalendarItem.svelte-1u5xzds{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-1u5xzds{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-1u5xzds{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emfe-w-color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-1u5xzds{display:block;width:80px;height:80px;margin:0 auto
|
|
4451
4479
|
}.LoadingSpinner.svelte-1u5xzds:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:svelte-1u5xzds-LoadingSpinner 1.2s linear infinite}@keyframes svelte-1u5xzds-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4452
4480
|
}
|
|
4453
|
-
function
|
|
4481
|
+
function Ct(e, t, r) {
|
|
4454
4482
|
const n = e.slice();
|
|
4455
4483
|
return n[21] = t[r], n[23] = r, n;
|
|
4456
4484
|
}
|
|
4457
|
-
function
|
|
4458
|
-
let t, r, n, i =
|
|
4485
|
+
function Yi(e) {
|
|
4486
|
+
let t, r, n, i = ht(
|
|
4459
4487
|
/*calendarCollections*/
|
|
4460
4488
|
e[4]
|
|
4461
4489
|
), o = [];
|
|
4462
|
-
for (let
|
|
4463
|
-
o[
|
|
4464
|
-
let
|
|
4490
|
+
for (let a = 0; a < i.length; a += 1)
|
|
4491
|
+
o[a] = It(Ct(e, i, a));
|
|
4492
|
+
let s = (
|
|
4465
4493
|
/*calendarModalOpened*/
|
|
4466
|
-
e[9] == !0 &&
|
|
4494
|
+
e[9] == !0 && Lt(e)
|
|
4467
4495
|
);
|
|
4468
4496
|
return {
|
|
4469
4497
|
c() {
|
|
4470
|
-
t =
|
|
4471
|
-
for (let
|
|
4472
|
-
o[
|
|
4473
|
-
r =
|
|
4498
|
+
t = I("div");
|
|
4499
|
+
for (let a = 0; a < o.length; a += 1)
|
|
4500
|
+
o[a].c();
|
|
4501
|
+
r = Mr(), s && s.c(), $(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4474
4502
|
(e[8] ? "Mobile" : "") + " svelte-1u5xzds");
|
|
4475
4503
|
},
|
|
4476
|
-
m(
|
|
4477
|
-
|
|
4504
|
+
m(a, l) {
|
|
4505
|
+
F(a, t, l);
|
|
4478
4506
|
for (let u = 0; u < o.length; u += 1)
|
|
4479
4507
|
o[u] && o[u].m(t, null);
|
|
4480
|
-
|
|
4508
|
+
xe(t, r), s && s.m(t, null);
|
|
4481
4509
|
},
|
|
4482
|
-
p(
|
|
4510
|
+
p(a, l) {
|
|
4483
4511
|
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl*/
|
|
4484
4512
|
23) {
|
|
4485
|
-
i =
|
|
4513
|
+
i = ht(
|
|
4486
4514
|
/*calendarCollections*/
|
|
4487
|
-
|
|
4515
|
+
a[4]
|
|
4488
4516
|
);
|
|
4489
4517
|
let u;
|
|
4490
4518
|
for (u = 0; u < i.length; u += 1) {
|
|
4491
|
-
const h =
|
|
4492
|
-
o[u] ? o[u].p(h, l) : (o[u] =
|
|
4519
|
+
const h = Ct(a, i, u);
|
|
4520
|
+
o[u] ? o[u].p(h, l) : (o[u] = It(h), o[u].c(), o[u].m(t, r));
|
|
4493
4521
|
}
|
|
4494
4522
|
for (; u < o.length; u += 1)
|
|
4495
4523
|
o[u].d(1);
|
|
4496
4524
|
o.length = i.length;
|
|
4497
4525
|
}
|
|
4498
4526
|
/*calendarModalOpened*/
|
|
4499
|
-
|
|
4527
|
+
a[9] == !0 ? s ? s.p(a, l) : (s = Lt(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), l & /*mobileView*/
|
|
4500
4528
|
256 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4501
|
-
(
|
|
4529
|
+
(a[8] ? "Mobile" : "") + " svelte-1u5xzds") && $(t, "class", n);
|
|
4502
4530
|
},
|
|
4503
|
-
d(
|
|
4504
|
-
|
|
4531
|
+
d(a) {
|
|
4532
|
+
a && N(t), Ir(o, a), s && s.d();
|
|
4505
4533
|
}
|
|
4506
4534
|
};
|
|
4507
4535
|
}
|
|
4508
|
-
function
|
|
4536
|
+
function Ki(e) {
|
|
4509
4537
|
let t;
|
|
4510
4538
|
return {
|
|
4511
4539
|
c() {
|
|
4512
|
-
t =
|
|
4540
|
+
t = I("div"), $(t, "class", "LoadingSpinner svelte-1u5xzds"), $(t, "part", "LoadingSpinner");
|
|
4513
4541
|
},
|
|
4514
4542
|
m(r, n) {
|
|
4515
|
-
|
|
4543
|
+
F(r, t, n);
|
|
4516
4544
|
},
|
|
4517
|
-
p:
|
|
4545
|
+
p: P,
|
|
4518
4546
|
d(r) {
|
|
4519
|
-
r &&
|
|
4547
|
+
r && N(t);
|
|
4520
4548
|
}
|
|
4521
4549
|
};
|
|
4522
4550
|
}
|
|
4523
|
-
function
|
|
4551
|
+
function eo(e) {
|
|
4524
4552
|
let t;
|
|
4525
4553
|
return {
|
|
4526
4554
|
c() {
|
|
4527
|
-
t =
|
|
4555
|
+
t = I("p"), t.textContent = "500 Error - Internal Server Error", $(t, "class", "SearchLoading"), $(t, "part", "SearchLoading");
|
|
4528
4556
|
},
|
|
4529
4557
|
m(r, n) {
|
|
4530
|
-
|
|
4558
|
+
F(r, t, n);
|
|
4531
4559
|
},
|
|
4532
|
-
p:
|
|
4560
|
+
p: P,
|
|
4533
4561
|
d(r) {
|
|
4534
|
-
r &&
|
|
4562
|
+
r && N(t);
|
|
4535
4563
|
}
|
|
4536
4564
|
};
|
|
4537
4565
|
}
|
|
4538
|
-
function
|
|
4539
|
-
let t, r, n, i, o,
|
|
4566
|
+
function It(e) {
|
|
4567
|
+
let t, r, n, i, o, s;
|
|
4540
4568
|
return {
|
|
4541
4569
|
c() {
|
|
4542
|
-
t =
|
|
4543
|
-
e[21].dailyBackground),
|
|
4544
|
-
e[21].dailyIcon),
|
|
4545
|
-
e[21].dailyDay),
|
|
4546
|
-
e[21].dailyDescription),
|
|
4547
|
-
e[21].dailyButtonTitle),
|
|
4570
|
+
t = I("casino-calendar-daily-item"), y(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4571
|
+
e[21].dailyBackground), y(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4572
|
+
e[21].dailyIcon), y(t, "dailyday", i = /*dailyCalendarData*/
|
|
4573
|
+
e[21].dailyDay), y(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4574
|
+
e[21].dailyDescription), y(t, "dailybuttontitle", s = /*dailyCalendarData*/
|
|
4575
|
+
e[21].dailyButtonTitle), y(
|
|
4548
4576
|
t,
|
|
4549
4577
|
"index",
|
|
4550
4578
|
/*index*/
|
|
4551
4579
|
e[23]
|
|
4552
|
-
),
|
|
4580
|
+
), y(
|
|
4553
4581
|
t,
|
|
4554
4582
|
"lang",
|
|
4555
4583
|
/*lang*/
|
|
4556
4584
|
e[0]
|
|
4557
|
-
),
|
|
4585
|
+
), y(
|
|
4558
4586
|
t,
|
|
4559
4587
|
"clientstyling",
|
|
4560
4588
|
/*clientstyling*/
|
|
4561
4589
|
e[1]
|
|
4562
|
-
),
|
|
4590
|
+
), y(
|
|
4563
4591
|
t,
|
|
4564
4592
|
"clientstylingurl",
|
|
4565
4593
|
/*clientstylingurl*/
|
|
4566
4594
|
e[2]
|
|
4567
4595
|
);
|
|
4568
4596
|
},
|
|
4569
|
-
m(
|
|
4570
|
-
|
|
4597
|
+
m(a, l) {
|
|
4598
|
+
F(a, t, l);
|
|
4571
4599
|
},
|
|
4572
|
-
p(
|
|
4600
|
+
p(a, l) {
|
|
4573
4601
|
l & /*calendarCollections*/
|
|
4574
4602
|
16 && r !== (r = /*dailyCalendarData*/
|
|
4575
|
-
|
|
4603
|
+
a[21].dailyBackground) && y(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4576
4604
|
16 && n !== (n = /*dailyCalendarData*/
|
|
4577
|
-
|
|
4605
|
+
a[21].dailyIcon) && y(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4578
4606
|
16 && i !== (i = /*dailyCalendarData*/
|
|
4579
|
-
|
|
4607
|
+
a[21].dailyDay) && y(t, "dailyday", i), l & /*calendarCollections*/
|
|
4580
4608
|
16 && o !== (o = /*dailyCalendarData*/
|
|
4581
|
-
|
|
4582
|
-
16 &&
|
|
4583
|
-
|
|
4584
|
-
1 &&
|
|
4609
|
+
a[21].dailyDescription) && y(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4610
|
+
16 && s !== (s = /*dailyCalendarData*/
|
|
4611
|
+
a[21].dailyButtonTitle) && y(t, "dailybuttontitle", s), l & /*lang*/
|
|
4612
|
+
1 && y(
|
|
4585
4613
|
t,
|
|
4586
4614
|
"lang",
|
|
4587
4615
|
/*lang*/
|
|
4588
|
-
|
|
4616
|
+
a[0]
|
|
4589
4617
|
), l & /*clientstyling*/
|
|
4590
|
-
2 &&
|
|
4618
|
+
2 && y(
|
|
4591
4619
|
t,
|
|
4592
4620
|
"clientstyling",
|
|
4593
4621
|
/*clientstyling*/
|
|
4594
|
-
|
|
4622
|
+
a[1]
|
|
4595
4623
|
), l & /*clientstylingurl*/
|
|
4596
|
-
4 &&
|
|
4624
|
+
4 && y(
|
|
4597
4625
|
t,
|
|
4598
4626
|
"clientstylingurl",
|
|
4599
4627
|
/*clientstylingurl*/
|
|
4600
|
-
|
|
4628
|
+
a[2]
|
|
4601
4629
|
);
|
|
4602
4630
|
},
|
|
4603
|
-
d(
|
|
4604
|
-
|
|
4631
|
+
d(a) {
|
|
4632
|
+
a && N(t);
|
|
4605
4633
|
}
|
|
4606
4634
|
};
|
|
4607
4635
|
}
|
|
4608
|
-
function
|
|
4609
|
-
let t, r, n, i, o,
|
|
4636
|
+
function Lt(e) {
|
|
4637
|
+
let t, r, n, i, o, s, a, l;
|
|
4610
4638
|
return {
|
|
4611
4639
|
c() {
|
|
4612
|
-
t =
|
|
4640
|
+
t = I("div"), r = I("casino-calendar-daily-details"), y(r, "dailybackground", n = /*calendarCollections*/
|
|
4613
4641
|
e[4][
|
|
4614
4642
|
/*selectedIndex*/
|
|
4615
4643
|
e[5]
|
|
4616
|
-
].dailyBackground),
|
|
4644
|
+
].dailyBackground), y(r, "dailybuttontitle", i = /*calendarCollections*/
|
|
4617
4645
|
e[4][
|
|
4618
4646
|
/*selectedIndex*/
|
|
4619
4647
|
e[5]
|
|
4620
|
-
].dailyButtonTitle),
|
|
4648
|
+
].dailyButtonTitle), y(r, "dailyday", o = /*calendarCollections*/
|
|
4621
4649
|
e[4][
|
|
4622
4650
|
/*selectedIndex*/
|
|
4623
4651
|
e[5]
|
|
4624
|
-
].dailyDay),
|
|
4652
|
+
].dailyDay), y(r, "dailydescription", s = /*calendarCollections*/
|
|
4625
4653
|
e[4][
|
|
4626
4654
|
/*selectedIndex*/
|
|
4627
4655
|
e[5]
|
|
4628
|
-
].dailyDescription),
|
|
4656
|
+
].dailyDescription), y(r, "dailyicon", a = /*calendarCollections*/
|
|
4629
4657
|
e[4][
|
|
4630
4658
|
/*selectedIndex*/
|
|
4631
4659
|
e[5]
|
|
4632
|
-
].dailyIcon),
|
|
4660
|
+
].dailyIcon), y(r, "dailytitle", l = /*calendarCollections*/
|
|
4633
4661
|
e[4][
|
|
4634
4662
|
/*selectedIndex*/
|
|
4635
4663
|
e[5]
|
|
4636
|
-
].dailyTitle),
|
|
4664
|
+
].dailyTitle), y(
|
|
4637
4665
|
r,
|
|
4638
4666
|
"lang",
|
|
4639
4667
|
/*lang*/
|
|
4640
4668
|
e[0]
|
|
4641
|
-
),
|
|
4669
|
+
), y(
|
|
4642
4670
|
r,
|
|
4643
4671
|
"clientstyling",
|
|
4644
4672
|
/*clientstyling*/
|
|
4645
4673
|
e[1]
|
|
4646
|
-
),
|
|
4674
|
+
), y(
|
|
4647
4675
|
r,
|
|
4648
4676
|
"clientstylingurl",
|
|
4649
4677
|
/*clientstylingurl*/
|
|
4650
4678
|
e[2]
|
|
4651
|
-
),
|
|
4679
|
+
), $(t, "class", "CalendarDetailsWrapper svelte-1u5xzds");
|
|
4652
4680
|
},
|
|
4653
4681
|
m(u, h) {
|
|
4654
|
-
|
|
4682
|
+
F(u, t, h), xe(t, r);
|
|
4655
4683
|
},
|
|
4656
4684
|
p(u, h) {
|
|
4657
4685
|
h & /*calendarCollections, selectedIndex*/
|
|
@@ -4659,45 +4687,45 @@ function It(e) {
|
|
|
4659
4687
|
u[4][
|
|
4660
4688
|
/*selectedIndex*/
|
|
4661
4689
|
u[5]
|
|
4662
|
-
].dailyBackground) &&
|
|
4690
|
+
].dailyBackground) && y(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
|
|
4663
4691
|
48 && i !== (i = /*calendarCollections*/
|
|
4664
4692
|
u[4][
|
|
4665
4693
|
/*selectedIndex*/
|
|
4666
4694
|
u[5]
|
|
4667
|
-
].dailyButtonTitle) &&
|
|
4695
|
+
].dailyButtonTitle) && y(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4668
4696
|
48 && o !== (o = /*calendarCollections*/
|
|
4669
4697
|
u[4][
|
|
4670
4698
|
/*selectedIndex*/
|
|
4671
4699
|
u[5]
|
|
4672
|
-
].dailyDay) &&
|
|
4673
|
-
48 &&
|
|
4700
|
+
].dailyDay) && y(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4701
|
+
48 && s !== (s = /*calendarCollections*/
|
|
4674
4702
|
u[4][
|
|
4675
4703
|
/*selectedIndex*/
|
|
4676
4704
|
u[5]
|
|
4677
|
-
].dailyDescription) &&
|
|
4678
|
-
48 &&
|
|
4705
|
+
].dailyDescription) && y(r, "dailydescription", s), h & /*calendarCollections, selectedIndex*/
|
|
4706
|
+
48 && a !== (a = /*calendarCollections*/
|
|
4679
4707
|
u[4][
|
|
4680
4708
|
/*selectedIndex*/
|
|
4681
4709
|
u[5]
|
|
4682
|
-
].dailyIcon) &&
|
|
4710
|
+
].dailyIcon) && y(r, "dailyicon", a), h & /*calendarCollections, selectedIndex*/
|
|
4683
4711
|
48 && l !== (l = /*calendarCollections*/
|
|
4684
4712
|
u[4][
|
|
4685
4713
|
/*selectedIndex*/
|
|
4686
4714
|
u[5]
|
|
4687
|
-
].dailyTitle) &&
|
|
4688
|
-
1 &&
|
|
4715
|
+
].dailyTitle) && y(r, "dailytitle", l), h & /*lang*/
|
|
4716
|
+
1 && y(
|
|
4689
4717
|
r,
|
|
4690
4718
|
"lang",
|
|
4691
4719
|
/*lang*/
|
|
4692
4720
|
u[0]
|
|
4693
4721
|
), h & /*clientstyling*/
|
|
4694
|
-
2 &&
|
|
4722
|
+
2 && y(
|
|
4695
4723
|
r,
|
|
4696
4724
|
"clientstyling",
|
|
4697
4725
|
/*clientstyling*/
|
|
4698
4726
|
u[1]
|
|
4699
4727
|
), h & /*clientstylingurl*/
|
|
4700
|
-
4 &&
|
|
4728
|
+
4 && y(
|
|
4701
4729
|
r,
|
|
4702
4730
|
"clientstylingurl",
|
|
4703
4731
|
/*clientstylingurl*/
|
|
@@ -4705,83 +4733,83 @@ function It(e) {
|
|
|
4705
4733
|
);
|
|
4706
4734
|
},
|
|
4707
4735
|
d(u) {
|
|
4708
|
-
u &&
|
|
4736
|
+
u && N(t);
|
|
4709
4737
|
}
|
|
4710
4738
|
};
|
|
4711
4739
|
}
|
|
4712
|
-
function
|
|
4740
|
+
function to(e) {
|
|
4713
4741
|
let t;
|
|
4714
|
-
function r(o,
|
|
4715
|
-
var
|
|
4742
|
+
function r(o, s) {
|
|
4743
|
+
var a;
|
|
4716
4744
|
if (
|
|
4717
4745
|
/*hasErrors*/
|
|
4718
4746
|
o[7]
|
|
4719
|
-
) return
|
|
4747
|
+
) return eo;
|
|
4720
4748
|
if (
|
|
4721
4749
|
/*isLoading*/
|
|
4722
4750
|
o[6]
|
|
4723
|
-
) return
|
|
4751
|
+
) return Ki;
|
|
4724
4752
|
if (
|
|
4725
4753
|
/*calendarCollections*/
|
|
4726
|
-
(
|
|
4727
|
-
) return
|
|
4754
|
+
(a = o[4]) != null && a.length
|
|
4755
|
+
) return Yi;
|
|
4728
4756
|
}
|
|
4729
4757
|
let n = r(e), i = n && n(e);
|
|
4730
4758
|
return {
|
|
4731
4759
|
c() {
|
|
4732
|
-
t =
|
|
4760
|
+
t = I("div"), i && i.c();
|
|
4733
4761
|
},
|
|
4734
|
-
m(o,
|
|
4735
|
-
|
|
4762
|
+
m(o, s) {
|
|
4763
|
+
F(o, t, s), i && i.m(t, null), e[13](t);
|
|
4736
4764
|
},
|
|
4737
|
-
p(o, [
|
|
4738
|
-
n === (n = r(o)) && i ? i.p(o,
|
|
4765
|
+
p(o, [s]) {
|
|
4766
|
+
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4739
4767
|
},
|
|
4740
|
-
i:
|
|
4741
|
-
o:
|
|
4768
|
+
i: P,
|
|
4769
|
+
o: P,
|
|
4742
4770
|
d(o) {
|
|
4743
|
-
o &&
|
|
4771
|
+
o && N(t), i && i.d(), e[13](null);
|
|
4744
4772
|
}
|
|
4745
4773
|
};
|
|
4746
4774
|
}
|
|
4747
|
-
function
|
|
4748
|
-
let { cmsendpoint: n = "" } = t, { env: i = "" } = t, { userroles: o = "" } = t, { lang:
|
|
4749
|
-
const
|
|
4750
|
-
r(6,
|
|
4751
|
-
let d = new URL(`${n}/${
|
|
4775
|
+
function ro(e, t, r) {
|
|
4776
|
+
let { cmsendpoint: n = "" } = t, { env: i = "" } = t, { userroles: o = "" } = t, { lang: s = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, u, h, f = 0, c = !0, p = !1, m = !1, v = window.navigator.userAgent, w = !1;
|
|
4777
|
+
const C = () => {
|
|
4778
|
+
r(6, c = !0);
|
|
4779
|
+
let d = new URL(`${n}/${s}/daily-calendar`);
|
|
4752
4780
|
d.searchParams.append("userRoles", o), d.searchParams.append("env", i);
|
|
4753
|
-
let
|
|
4754
|
-
|
|
4755
|
-
r(4, h =
|
|
4756
|
-
}).catch((
|
|
4757
|
-
console.log(
|
|
4781
|
+
let x = Ji(v);
|
|
4782
|
+
x && (x === "PC" ? d.searchParams.append("device", "dk") : x === "iPad" || x === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((S) => S.json()).then((S) => {
|
|
4783
|
+
r(4, h = S);
|
|
4784
|
+
}).catch((S) => {
|
|
4785
|
+
console.log(S), r(7, p = !0);
|
|
4758
4786
|
}).finally(() => {
|
|
4759
|
-
r(6,
|
|
4787
|
+
r(6, c = !1);
|
|
4760
4788
|
});
|
|
4761
|
-
},
|
|
4762
|
-
|
|
4789
|
+
}, A = () => {
|
|
4790
|
+
C();
|
|
4763
4791
|
}, H = (d) => {
|
|
4764
|
-
var
|
|
4765
|
-
d.data && d.data.type == "OpenCalendar" && (r(5,
|
|
4792
|
+
var x;
|
|
4793
|
+
d.data && d.data.type == "OpenCalendar" && (r(5, f = d.data.index), r(9, w = !0), window.postMessage(
|
|
4766
4794
|
{
|
|
4767
4795
|
type: "ShowModal",
|
|
4768
|
-
selectedIndex:
|
|
4796
|
+
selectedIndex: f,
|
|
4769
4797
|
identifier: "Calendar"
|
|
4770
4798
|
},
|
|
4771
4799
|
window.location.href
|
|
4772
4800
|
), window.postMessage({
|
|
4773
4801
|
type: "DailyEventsData",
|
|
4774
|
-
data: (
|
|
4775
|
-
})), d.data && d.data.type == "ModalClosed" && r(9,
|
|
4776
|
-
},
|
|
4802
|
+
data: (x = h[f]) == null ? void 0 : x.dailyEvents
|
|
4803
|
+
})), d.data && d.data.type == "ModalClosed" && r(9, w = !1);
|
|
4804
|
+
}, L = () => {
|
|
4777
4805
|
let d = document.createElement("style");
|
|
4778
|
-
d.innerHTML =
|
|
4806
|
+
d.innerHTML = a, u.appendChild(d);
|
|
4779
4807
|
}, O = () => {
|
|
4780
|
-
let d = new URL(l),
|
|
4781
|
-
fetch(d.href).then((
|
|
4782
|
-
|
|
4808
|
+
let d = new URL(l), x = document.createElement("style");
|
|
4809
|
+
fetch(d.href).then((S) => S.text()).then((S) => {
|
|
4810
|
+
x.innerHTML = S, setTimeout(
|
|
4783
4811
|
() => {
|
|
4784
|
-
u.appendChild(
|
|
4812
|
+
u.appendChild(x);
|
|
4785
4813
|
},
|
|
4786
4814
|
1
|
|
4787
4815
|
), setTimeout(
|
|
@@ -4791,45 +4819,45 @@ function to(e, t, r) {
|
|
|
4791
4819
|
);
|
|
4792
4820
|
});
|
|
4793
4821
|
};
|
|
4794
|
-
|
|
4822
|
+
Ur(() => (window.addEventListener("message", H, !1), _r(v) && r(8, m = !0), () => {
|
|
4795
4823
|
window.removeEventListener("message", H);
|
|
4796
4824
|
}));
|
|
4797
|
-
function
|
|
4798
|
-
|
|
4825
|
+
function M(d) {
|
|
4826
|
+
$e[d ? "unshift" : "push"](() => {
|
|
4799
4827
|
u = d, r(3, u);
|
|
4800
4828
|
});
|
|
4801
4829
|
}
|
|
4802
4830
|
return e.$$set = (d) => {
|
|
4803
|
-
"cmsendpoint" in d && r(10, n = d.cmsendpoint), "env" in d && r(11, i = d.env), "userroles" in d && r(12, o = d.userroles), "lang" in d && r(0,
|
|
4831
|
+
"cmsendpoint" in d && r(10, n = d.cmsendpoint), "env" in d && r(11, i = d.env), "userroles" in d && r(12, o = d.userroles), "lang" in d && r(0, s = d.lang), "clientstyling" in d && r(1, a = d.clientstyling), "clientstylingurl" in d && r(2, l = d.clientstylingurl);
|
|
4804
4832
|
}, e.$$.update = () => {
|
|
4805
4833
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
4806
|
-
7169 && n &&
|
|
4807
|
-
10 &&
|
|
4834
|
+
7169 && n && s && i && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4835
|
+
10 && a && u && L(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4808
4836
|
12 && l && u && O();
|
|
4809
4837
|
}, [
|
|
4810
|
-
a,
|
|
4811
4838
|
s,
|
|
4839
|
+
a,
|
|
4812
4840
|
l,
|
|
4813
4841
|
u,
|
|
4814
4842
|
h,
|
|
4815
|
-
c,
|
|
4816
4843
|
f,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4844
|
+
c,
|
|
4845
|
+
p,
|
|
4846
|
+
m,
|
|
4847
|
+
w,
|
|
4820
4848
|
n,
|
|
4821
4849
|
i,
|
|
4822
4850
|
o,
|
|
4823
|
-
|
|
4851
|
+
M
|
|
4824
4852
|
];
|
|
4825
4853
|
}
|
|
4826
|
-
class
|
|
4854
|
+
class Er extends Wr {
|
|
4827
4855
|
constructor(t) {
|
|
4828
|
-
super(),
|
|
4856
|
+
super(), Xr(
|
|
4829
4857
|
this,
|
|
4830
4858
|
t,
|
|
4859
|
+
ro,
|
|
4831
4860
|
to,
|
|
4832
|
-
eo,
|
|
4833
4861
|
Nt,
|
|
4834
4862
|
{
|
|
4835
4863
|
cmsendpoint: 10,
|
|
@@ -4839,102 +4867,104 @@ class vr extends zr {
|
|
|
4839
4867
|
clientstyling: 1,
|
|
4840
4868
|
clientstylingurl: 2
|
|
4841
4869
|
},
|
|
4842
|
-
|
|
4870
|
+
qi
|
|
4843
4871
|
);
|
|
4844
4872
|
}
|
|
4845
4873
|
get cmsendpoint() {
|
|
4846
4874
|
return this.$$.ctx[10];
|
|
4847
4875
|
}
|
|
4848
4876
|
set cmsendpoint(t) {
|
|
4849
|
-
this.$$set({ cmsendpoint: t }),
|
|
4877
|
+
this.$$set({ cmsendpoint: t }), U();
|
|
4850
4878
|
}
|
|
4851
4879
|
get env() {
|
|
4852
4880
|
return this.$$.ctx[11];
|
|
4853
4881
|
}
|
|
4854
4882
|
set env(t) {
|
|
4855
|
-
this.$$set({ env: t }),
|
|
4883
|
+
this.$$set({ env: t }), U();
|
|
4856
4884
|
}
|
|
4857
4885
|
get userroles() {
|
|
4858
4886
|
return this.$$.ctx[12];
|
|
4859
4887
|
}
|
|
4860
4888
|
set userroles(t) {
|
|
4861
|
-
this.$$set({ userroles: t }),
|
|
4889
|
+
this.$$set({ userroles: t }), U();
|
|
4862
4890
|
}
|
|
4863
4891
|
get lang() {
|
|
4864
4892
|
return this.$$.ctx[0];
|
|
4865
4893
|
}
|
|
4866
4894
|
set lang(t) {
|
|
4867
|
-
this.$$set({ lang: t }),
|
|
4895
|
+
this.$$set({ lang: t }), U();
|
|
4868
4896
|
}
|
|
4869
4897
|
get clientstyling() {
|
|
4870
4898
|
return this.$$.ctx[1];
|
|
4871
4899
|
}
|
|
4872
4900
|
set clientstyling(t) {
|
|
4873
|
-
this.$$set({ clientstyling: t }),
|
|
4901
|
+
this.$$set({ clientstyling: t }), U();
|
|
4874
4902
|
}
|
|
4875
4903
|
get clientstylingurl() {
|
|
4876
4904
|
return this.$$.ctx[2];
|
|
4877
4905
|
}
|
|
4878
4906
|
set clientstylingurl(t) {
|
|
4879
|
-
this.$$set({ clientstylingurl: t }),
|
|
4907
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4880
4908
|
}
|
|
4881
4909
|
}
|
|
4882
|
-
|
|
4883
|
-
const
|
|
4910
|
+
zr(Er, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4911
|
+
const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4884
4912
|
__proto__: null,
|
|
4885
|
-
default:
|
|
4913
|
+
default: Er
|
|
4886
4914
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4887
4915
|
export {
|
|
4888
4916
|
ue as $,
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4917
|
+
po as A,
|
|
4918
|
+
Ir as B,
|
|
4919
|
+
P as C,
|
|
4920
|
+
io as D,
|
|
4921
|
+
Lr as E,
|
|
4922
|
+
co as F,
|
|
4923
|
+
bo as G,
|
|
4924
|
+
vo as H,
|
|
4925
|
+
xi as I,
|
|
4926
|
+
oo as J,
|
|
4927
|
+
Ue as K,
|
|
4928
|
+
yo as L,
|
|
4929
|
+
k as M,
|
|
4930
|
+
Ho as N,
|
|
4931
|
+
fo as O,
|
|
4932
|
+
y as P,
|
|
4933
|
+
Ji as Q,
|
|
4934
|
+
mo as R,
|
|
4935
|
+
Wr as S,
|
|
4936
|
+
go as T,
|
|
4937
|
+
_o as U,
|
|
4938
|
+
Bo as V,
|
|
4939
|
+
To as W,
|
|
4940
|
+
wo as X,
|
|
4941
|
+
ho as Y,
|
|
4942
|
+
Ee as Z,
|
|
4943
|
+
Po as _,
|
|
4914
4944
|
ae as a,
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4945
|
+
Ar as b,
|
|
4946
|
+
zr as c,
|
|
4947
|
+
F as d,
|
|
4948
|
+
I as e,
|
|
4949
|
+
U as f,
|
|
4950
|
+
xo as g,
|
|
4951
|
+
Ft as h,
|
|
4952
|
+
Xr as i,
|
|
4953
|
+
N as j,
|
|
4954
|
+
Eo as k,
|
|
4955
|
+
_r as l,
|
|
4956
|
+
$e as m,
|
|
4957
|
+
so as n,
|
|
4958
|
+
Ur as o,
|
|
4959
|
+
ht as p,
|
|
4960
|
+
Mr as q,
|
|
4961
|
+
Dt as r,
|
|
4932
4962
|
Nt as s,
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4963
|
+
So as t,
|
|
4964
|
+
$ as u,
|
|
4965
|
+
xe as v,
|
|
4966
|
+
ut as w,
|
|
4967
|
+
uo as x,
|
|
4968
|
+
lo as y,
|
|
4969
|
+
ao as z
|
|
4940
4970
|
};
|