@everymatrix/casino-header-controller-nd 1.76.0 → 1.76.3
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/{CasinoHamburgerMenuNd-A1rbyIlh.js → CasinoHamburgerMenuNd-BChdIQNC.js} +1037 -1072
- package/components/CasinoHamburgerMenuNd-ClXsTIT_.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-BbLVzDLA.js → CasinoHamburgerMenuNd-t6IxCiGz.js} +1029 -1064
- package/components/{CasinoHeaderControllerNd-BZ4hl5VU.cjs → CasinoHeaderControllerNd-BaC282Iy.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-Y0iH2fty.js → CasinoHeaderControllerNd-Da9GJ07i.js} +135 -135
- package/components/{CasinoHeaderControllerNd-DIWidaLF.js → CasinoHeaderControllerNd-p5onPhnt.js} +119 -119
- package/components/{PlayerAccountBalanceModalNd-Cygfal3S.js → PlayerAccountBalanceModalNd-Bc4_gH4P.js} +108 -108
- package/components/{PlayerAccountBalanceModalNd-DUPCtK5p.cjs → PlayerAccountBalanceModalNd-CaK5s63o.cjs} +1 -1
- package/components/{PlayerAccountBalanceModalNd-ggP_eQuJ.js → PlayerAccountBalanceModalNd-DDcloIRo.js} +63 -63
- package/components/{PlayerDeposit-DCiULSav.cjs → PlayerDeposit-BhaHklVX.cjs} +1 -1
- package/components/{PlayerDeposit-BPhFbd8a.js → PlayerDeposit-DHqXm2Ye.js} +40 -40
- package/components/{PlayerDeposit-DcwySzWb.js → PlayerDeposit-DX3dmUgr.js} +40 -40
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-60536faa-CdoDh_iS.js → gamification-dropdown-60536faa-C4Bt9SsA.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-jADsXxs4.cjs → gamification-dropdown-60536faa-DASClLsG.cjs} +1 -1
- package/stencil/{gamification-dropdown-60536faa-ByoQkowS.js → gamification-dropdown-60536faa-a9fhneJS.js} +1 -1
- package/stencil/{gamification-dropdown-DSqqyaTZ.js → gamification-dropdown-C94WUKJw.js} +1 -1
- package/stencil/{gamification-dropdown-aHzwtOKn.cjs → gamification-dropdown-CHISLJWw.cjs} +1 -1
- package/stencil/{gamification-dropdown-CMVnOpVS.js → gamification-dropdown-DM8ZypvI.js} +1 -1
- package/stencil/{gamification-dropdown_4-0STJmTu3.js → gamification-dropdown_4-DcfTNvW3.js} +4 -4
- package/stencil/{gamification-dropdown_4-wVf8PnId.cjs → gamification-dropdown_4-DvpNN67k.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-Cn2nDa12.js → gamification-dropdown_4-DxutrN1l.js} +4 -4
- package/stencil/{index-71b1bdfa-DWJfvSms.js → index-71b1bdfa-BF1FhHvP.js} +226 -226
- package/stencil/{index-71b1bdfa-CqsRB5Zq.js → index-71b1bdfa-CsAz1pRT.js} +235 -235
- package/stencil/index-71b1bdfa-CvQLI6L6.cjs +1 -0
- package/stencil/{player-elevate-card-D_AqKh09.js → player-elevate-card-CV-QotRL.js} +2 -2
- package/stencil/{player-elevate-card-C_bGjWZ4.cjs → player-elevate-card-DGldgGzV.cjs} +1 -1
- package/stencil/{player-elevate-card-DV79k_97.js → player-elevate-card-Dk8IKGFM.js} +2 -2
- package/stencil/{player-elevate-card-items-08c6fbd8-DDaPFpxz.js → player-elevate-card-items-08c6fbd8-D2InzLdw.js} +294 -292
- package/stencil/{player-elevate-card-items-08c6fbd8-CKjKj8rt.js → player-elevate-card-items-08c6fbd8-DWYJG2Sw.js} +294 -292
- package/stencil/player-elevate-card-items-08c6fbd8-jkH5ihgE.cjs +102 -0
- package/stencil/{player-elevate-pointcard-BXLJdcos.js → player-elevate-pointcard-BZEQfMrQ.js} +2 -2
- package/stencil/{player-elevate-pointcard-BAE3Vgzi.js → player-elevate-pointcard-CFB0v64P.js} +2 -2
- package/stencil/{player-elevate-pointcard-vC-WI2he.cjs → player-elevate-pointcard-Kd_hq4Sx.cjs} +1 -1
- package/stencil/{player-rakeback-card-Cj3yH6EJ.js → player-rakeback-card-BLuEtn4-.js} +1 -1
- package/stencil/{player-rakeback-card-DZVQyKwK.cjs → player-rakeback-card-B_0uBE6g.cjs} +1 -1
- package/stencil/{player-rakeback-card-Ca3Pjwd4.js → player-rakeback-card-DV2irTYH.js} +1 -1
- package/components/CasinoHamburgerMenuNd-DAYnP-8N.cjs +0 -18
- package/stencil/index-71b1bdfa-aT2URAOG.cjs +0 -1
- package/stencil/player-elevate-card-items-08c6fbd8-CkxD6Q5o.cjs +0 -102
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var dn = Object.defineProperty, mn = Object.defineProperties;
|
|
2
|
+
var gn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ot = Object.getOwnPropertySymbols;
|
|
4
|
+
var pn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ze = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
pn.call(t, r) && ze(e, r, t[r]);
|
|
8
|
+
if (Ot)
|
|
9
|
+
for (var r of Ot(t))
|
|
10
|
+
bn.call(t, r) && ze(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var V = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, At = (e, t) => mn(e, gn(t));
|
|
13
|
+
var V = (e, t, r) => (ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Lt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(u));
|
|
@@ -29,7 +29,7 @@ var Ct = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function yn(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,29 +37,29 @@ function En(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function br(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Pt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function ge(e) {
|
|
47
|
+
e.forEach(br);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function gt(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function yr(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
let Me;
|
|
56
56
|
function ee(e, t) {
|
|
57
57
|
return e === t ? !0 : (Me || (Me = document.createElement("a")), Me.href = t, e === Me.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function _n(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function _r(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
@@ -68,19 +68,19 @@ function wr(e, ...t) {
|
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function vn(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(_r(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function sa(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = vr(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function vr(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? yn(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ua(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
85
85
|
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
@@ -95,13 +95,13 @@ function fa(e, t, r, n) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function la(e, t, r, n, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = vr(t, r, n, o);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ha(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
106
|
const t = [], r = e.ctx.length / 32;
|
|
107
107
|
for (let n = 0; n < r; n++)
|
|
@@ -113,14 +113,14 @@ function pa(e) {
|
|
|
113
113
|
function y(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function xn(e, t, r) {
|
|
117
|
+
const n = En(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = _("style");
|
|
120
|
+
i.id = t, i.textContent = r, wn(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function En(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,7 +130,7 @@ function Tn(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function wn(e, t) {
|
|
134
134
|
return y(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
@@ -143,14 +143,14 @@ function F(e, t, r) {
|
|
|
143
143
|
function I(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function He(e, t) {
|
|
147
147
|
for (let r = 0; r < e.length; r += 1)
|
|
148
148
|
e[r] && e[r].d(t);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function _(e) {
|
|
151
151
|
return document.createElement(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Bt(e) {
|
|
154
154
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
155
155
|
}
|
|
156
156
|
function te(e) {
|
|
@@ -159,13 +159,13 @@ function te(e) {
|
|
|
159
159
|
function U() {
|
|
160
160
|
return te(" ");
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function xr() {
|
|
163
163
|
return te("");
|
|
164
164
|
}
|
|
165
165
|
function re(e, t, r, n) {
|
|
166
166
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ca(e) {
|
|
169
169
|
return function(t) {
|
|
170
170
|
return t.preventDefault(), e.call(this, t);
|
|
171
171
|
};
|
|
@@ -173,24 +173,24 @@ function ga(e) {
|
|
|
173
173
|
function g(e, t, r) {
|
|
174
174
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function fa(e, t, r) {
|
|
177
177
|
const n = t.toLowerCase();
|
|
178
178
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Sn(e) {
|
|
181
181
|
return Array.from(e.childNodes);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function pe(e, t) {
|
|
184
184
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
185
185
|
t);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function It(e, t) {
|
|
188
188
|
e.value = t == null ? "" : t;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function da(e, t, r, n) {
|
|
191
191
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ct(e, t, r) {
|
|
194
194
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
195
195
|
const i = e.options[n];
|
|
196
196
|
if (i.__value === t) {
|
|
@@ -200,11 +200,11 @@ function Ft(e, t, r) {
|
|
|
200
200
|
}
|
|
201
201
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Hn(e) {
|
|
204
204
|
const t = e.querySelector(":checked");
|
|
205
205
|
return t && t.__value;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Tn(e) {
|
|
208
208
|
const t = {};
|
|
209
209
|
return e.childNodes.forEach(
|
|
210
210
|
/** @param {Element} node */
|
|
@@ -213,104 +213,104 @@ function Pn(e) {
|
|
|
213
213
|
}
|
|
214
214
|
), t;
|
|
215
215
|
}
|
|
216
|
-
let
|
|
217
|
-
function
|
|
218
|
-
|
|
216
|
+
let Ee;
|
|
217
|
+
function xe(e) {
|
|
218
|
+
Ee = e;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
if (!
|
|
220
|
+
function On() {
|
|
221
|
+
if (!Ee)
|
|
222
222
|
throw new Error("Function called outside component initialization");
|
|
223
|
-
return
|
|
223
|
+
return Ee;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
225
|
+
function Mn(e) {
|
|
226
|
+
On().$$.on_mount.push(e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function ma(e, t) {
|
|
229
229
|
const r = e.$$.callbacks[t.type];
|
|
230
230
|
r && r.slice().forEach((n) => n.call(this, t));
|
|
231
231
|
}
|
|
232
232
|
const ue = [], Re = [];
|
|
233
233
|
let le = [];
|
|
234
|
-
const
|
|
235
|
-
let
|
|
236
|
-
function
|
|
237
|
-
|
|
234
|
+
const Nt = [], An = /* @__PURE__ */ Promise.resolve();
|
|
235
|
+
let tt = !1;
|
|
236
|
+
function Ln() {
|
|
237
|
+
tt || (tt = !0, An.then(D));
|
|
238
238
|
}
|
|
239
239
|
function Ue(e) {
|
|
240
240
|
le.push(e);
|
|
241
241
|
}
|
|
242
|
-
const
|
|
242
|
+
const Ze = /* @__PURE__ */ new Set();
|
|
243
243
|
let ae = 0;
|
|
244
244
|
function D() {
|
|
245
245
|
if (ae !== 0)
|
|
246
246
|
return;
|
|
247
|
-
const e =
|
|
247
|
+
const e = Ee;
|
|
248
248
|
do {
|
|
249
249
|
try {
|
|
250
250
|
for (; ae < ue.length; ) {
|
|
251
251
|
const t = ue[ae];
|
|
252
|
-
ae++,
|
|
252
|
+
ae++, xe(t), Pn(t.$$);
|
|
253
253
|
}
|
|
254
254
|
} catch (t) {
|
|
255
255
|
throw ue.length = 0, ae = 0, t;
|
|
256
256
|
}
|
|
257
|
-
for (
|
|
257
|
+
for (xe(null), ue.length = 0, ae = 0; Re.length; )
|
|
258
258
|
Re.pop()();
|
|
259
259
|
for (let t = 0; t < le.length; t += 1) {
|
|
260
260
|
const r = le[t];
|
|
261
|
-
|
|
261
|
+
Ze.has(r) || (Ze.add(r), r());
|
|
262
262
|
}
|
|
263
263
|
le.length = 0;
|
|
264
264
|
} while (ue.length);
|
|
265
|
-
for (;
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
for (; Nt.length; )
|
|
266
|
+
Nt.pop()();
|
|
267
|
+
tt = !1, Ze.clear(), xe(e);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Pn(e) {
|
|
270
270
|
if (e.fragment !== null) {
|
|
271
|
-
e.update(),
|
|
271
|
+
e.update(), ge(e.before_update);
|
|
272
272
|
const t = e.dirty;
|
|
273
273
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Bn(e) {
|
|
277
277
|
const t = [], r = [];
|
|
278
278
|
le.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), le = t;
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
e && e.i && (
|
|
280
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
281
|
+
let In;
|
|
282
|
+
function Cn(e, t) {
|
|
283
|
+
e && e.i && (Pe.delete(e), e.i(t));
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ga(e, t, r, n) {
|
|
286
286
|
if (e && e.o) {
|
|
287
|
-
if (
|
|
287
|
+
if (Pe.has(e))
|
|
288
288
|
return;
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
Pe.add(e), In.c.push(() => {
|
|
290
|
+
Pe.delete(e);
|
|
291
291
|
}), e.o(t);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function q(e) {
|
|
295
295
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Nn(e, t, r) {
|
|
298
298
|
const { fragment: n, after_update: i } = e.$$;
|
|
299
299
|
n && n.m(t, r), Ue(() => {
|
|
300
|
-
const o = e.$$.on_mount.map(
|
|
301
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
300
|
+
const o = e.$$.on_mount.map(br).filter(gt);
|
|
301
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ge(o), e.$$.on_mount = [];
|
|
302
302
|
}), i.forEach(Ue);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Rn(e, t) {
|
|
305
305
|
const r = e.$$;
|
|
306
|
-
r.fragment !== null && (
|
|
306
|
+
r.fragment !== null && (Bn(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
e.$$.dirty[0] === -1 && (ue.push(e),
|
|
308
|
+
function Un(e, t) {
|
|
309
|
+
e.$$.dirty[0] === -1 && (ue.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
const u =
|
|
313
|
-
|
|
311
|
+
function Fn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
312
|
+
const u = Ee;
|
|
313
|
+
xe(e);
|
|
314
314
|
const l = e.$$ = {
|
|
315
315
|
fragment: null,
|
|
316
316
|
ctx: [],
|
|
@@ -318,7 +318,7 @@ function $n(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
318
318
|
props: o,
|
|
319
319
|
update: $,
|
|
320
320
|
not_equal: i,
|
|
321
|
-
bound:
|
|
321
|
+
bound: Pt(),
|
|
322
322
|
// lifecycle
|
|
323
323
|
on_mount: [],
|
|
324
324
|
on_destroy: [],
|
|
@@ -327,28 +327,28 @@ function $n(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
327
327
|
after_update: [],
|
|
328
328
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
329
329
|
// everything else
|
|
330
|
-
callbacks:
|
|
330
|
+
callbacks: Pt(),
|
|
331
331
|
dirty: s,
|
|
332
332
|
skip_bound: !1,
|
|
333
333
|
root: t.target || u.$$.root
|
|
334
334
|
};
|
|
335
335
|
a && a(l.root);
|
|
336
|
-
let
|
|
337
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
|
338
|
-
const
|
|
339
|
-
return l.ctx && i(l.ctx[
|
|
340
|
-
}) : [], l.update(),
|
|
336
|
+
let h = !1;
|
|
337
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
338
|
+
const p = m.length ? m[0] : f;
|
|
339
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = p) && (!l.skip_bound && l.bound[c] && l.bound[c](p), h && Un(e, c)), f;
|
|
340
|
+
}) : [], l.update(), h = !0, ge(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
341
341
|
if (t.hydrate) {
|
|
342
|
-
const
|
|
343
|
-
l.fragment && l.fragment.l(
|
|
342
|
+
const c = Sn(t.target);
|
|
343
|
+
l.fragment && l.fragment.l(c), c.forEach(I);
|
|
344
344
|
} else
|
|
345
345
|
l.fragment && l.fragment.c();
|
|
346
|
-
t.intro &&
|
|
346
|
+
t.intro && Cn(e.$$.fragment), Nn(e, t.target, t.anchor), D();
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
xe(u);
|
|
349
349
|
}
|
|
350
|
-
let
|
|
351
|
-
typeof HTMLElement == "function" && (
|
|
350
|
+
let Er;
|
|
351
|
+
typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
352
352
|
constructor(t, r, n) {
|
|
353
353
|
super();
|
|
354
354
|
/** The Svelte component constructor */
|
|
@@ -385,21 +385,21 @@ typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
connectedCallback() {
|
|
388
|
-
return
|
|
388
|
+
return Lt(this, null, function* () {
|
|
389
389
|
if (this.$$cn = !0, !this.$$c) {
|
|
390
390
|
let t = function(o) {
|
|
391
391
|
return () => {
|
|
392
392
|
let a;
|
|
393
393
|
return {
|
|
394
394
|
c: function() {
|
|
395
|
-
a =
|
|
395
|
+
a = _("slot"), o !== "default" && g(a, "name", o);
|
|
396
396
|
},
|
|
397
397
|
/**
|
|
398
398
|
* @param {HTMLElement} target
|
|
399
399
|
* @param {HTMLElement} [anchor]
|
|
400
400
|
*/
|
|
401
|
-
m: function(l,
|
|
402
|
-
F(l, a,
|
|
401
|
+
m: function(l, h) {
|
|
402
|
+
F(l, a, h);
|
|
403
403
|
},
|
|
404
404
|
d: function(l) {
|
|
405
405
|
l && I(a);
|
|
@@ -409,7 +409,7 @@ typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
|
409
409
|
};
|
|
410
410
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
411
411
|
return;
|
|
412
|
-
const r = {}, n =
|
|
412
|
+
const r = {}, n = Tn(this);
|
|
413
413
|
for (const o of this.$$s)
|
|
414
414
|
o in n && (r[o] = [t(o)]);
|
|
415
415
|
for (const o of this.attributes) {
|
|
@@ -420,7 +420,7 @@ typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
|
420
420
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
421
421
|
this.$$c = new this.$$ctor({
|
|
422
422
|
target: this.shadowRoot || this,
|
|
423
|
-
props:
|
|
423
|
+
props: At(Mt({}, this.$$d), {
|
|
424
424
|
$$slots: r,
|
|
425
425
|
$$scope: {
|
|
426
426
|
ctx: []
|
|
@@ -498,8 +498,8 @@ function Be(e, t, r, n) {
|
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
let a = class extends
|
|
501
|
+
function Dn(e, t, r, n, i, o) {
|
|
502
|
+
let a = class extends Er {
|
|
503
503
|
constructor() {
|
|
504
504
|
super(e, r, i), this.$$p_d = t;
|
|
505
505
|
}
|
|
@@ -529,7 +529,7 @@ function jn(e, t, r, n, i, o) {
|
|
|
529
529
|
}), e.element = /** @type {any} */
|
|
530
530
|
a, a;
|
|
531
531
|
}
|
|
532
|
-
class
|
|
532
|
+
class kn {
|
|
533
533
|
constructor() {
|
|
534
534
|
/**
|
|
535
535
|
* ### PRIVATE API
|
|
@@ -550,7 +550,7 @@ class Wn {
|
|
|
550
550
|
}
|
|
551
551
|
/** @returns {void} */
|
|
552
552
|
$destroy() {
|
|
553
|
-
|
|
553
|
+
Rn(this, 1), this.$destroy = $;
|
|
554
554
|
}
|
|
555
555
|
/**
|
|
556
556
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -559,7 +559,7 @@ class Wn {
|
|
|
559
559
|
* @returns {() => void}
|
|
560
560
|
*/
|
|
561
561
|
$on(t, r) {
|
|
562
|
-
if (!
|
|
562
|
+
if (!gt(r))
|
|
563
563
|
return $;
|
|
564
564
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
565
565
|
return n.push(r), () => {
|
|
@@ -572,11 +572,11 @@ class Wn {
|
|
|
572
572
|
* @returns {void}
|
|
573
573
|
*/
|
|
574
574
|
$set(t) {
|
|
575
|
-
this.$$set && !
|
|
575
|
+
this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
const
|
|
579
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
578
|
+
const Gn = "4";
|
|
579
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gn);
|
|
580
580
|
/*! *****************************************************************************
|
|
581
581
|
Copyright (c) Microsoft Corporation.
|
|
582
582
|
|
|
@@ -591,24 +591,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
591
591
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
592
592
|
PERFORMANCE OF THIS SOFTWARE.
|
|
593
593
|
***************************************************************************** */
|
|
594
|
-
var
|
|
595
|
-
return
|
|
594
|
+
var rt = function(e, t) {
|
|
595
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
596
596
|
r.__proto__ = n;
|
|
597
597
|
} || function(r, n) {
|
|
598
598
|
for (var i in n)
|
|
599
599
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
600
|
-
},
|
|
600
|
+
}, rt(e, t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function J(e, t) {
|
|
603
603
|
if (typeof t != "function" && t !== null)
|
|
604
604
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
605
|
-
|
|
605
|
+
rt(e, t);
|
|
606
606
|
function r() {
|
|
607
607
|
this.constructor = e;
|
|
608
608
|
}
|
|
609
609
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
var S = function() {
|
|
612
|
+
return S = Object.assign || function(t) {
|
|
613
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
614
|
+
r = arguments[n];
|
|
615
|
+
for (var o in r)
|
|
616
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
617
|
+
}
|
|
618
|
+
return t;
|
|
619
|
+
}, S.apply(this, arguments);
|
|
620
|
+
};
|
|
621
|
+
function $n(e, t) {
|
|
622
|
+
var r = {};
|
|
623
|
+
for (var n in e)
|
|
624
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
625
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
626
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
627
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
628
|
+
return r;
|
|
629
|
+
}
|
|
630
|
+
function nt(e) {
|
|
612
631
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
613
632
|
if (r)
|
|
614
633
|
return r.call(e);
|
|
@@ -620,7 +639,7 @@ function at(e) {
|
|
|
620
639
|
};
|
|
621
640
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
622
641
|
}
|
|
623
|
-
function
|
|
642
|
+
function it(e, t) {
|
|
624
643
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
625
644
|
if (!r)
|
|
626
645
|
return e;
|
|
@@ -640,22 +659,22 @@ function st(e, t) {
|
|
|
640
659
|
}
|
|
641
660
|
return o;
|
|
642
661
|
}
|
|
643
|
-
function
|
|
644
|
-
if (arguments.length === 2)
|
|
662
|
+
function he(e, t, r) {
|
|
663
|
+
if (r || arguments.length === 2)
|
|
645
664
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
646
665
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
647
666
|
return e.concat(o || t);
|
|
648
667
|
}
|
|
649
|
-
function
|
|
668
|
+
function Q(e) {
|
|
650
669
|
return typeof e == "function";
|
|
651
670
|
}
|
|
652
|
-
function
|
|
671
|
+
function wr(e) {
|
|
653
672
|
var t = function(n) {
|
|
654
673
|
Error.call(n), n.stack = new Error().stack;
|
|
655
674
|
}, r = e(t);
|
|
656
675
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
657
676
|
}
|
|
658
|
-
var
|
|
677
|
+
var Qe = wr(function(e) {
|
|
659
678
|
return function(r) {
|
|
660
679
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
661
680
|
` + r.map(function(n, i) {
|
|
@@ -664,13 +683,13 @@ var Je = Or(function(e) {
|
|
|
664
683
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
665
684
|
};
|
|
666
685
|
});
|
|
667
|
-
function
|
|
686
|
+
function ot(e, t) {
|
|
668
687
|
if (e) {
|
|
669
688
|
var r = e.indexOf(t);
|
|
670
689
|
0 <= r && e.splice(r, 1);
|
|
671
690
|
}
|
|
672
691
|
}
|
|
673
|
-
var
|
|
692
|
+
var ke = function() {
|
|
674
693
|
function e(t) {
|
|
675
694
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
676
695
|
}
|
|
@@ -682,7 +701,7 @@ var Ge = function() {
|
|
|
682
701
|
if (a)
|
|
683
702
|
if (this._parentage = null, Array.isArray(a))
|
|
684
703
|
try {
|
|
685
|
-
for (var s =
|
|
704
|
+
for (var s = nt(a), u = s.next(); !u.done; u = s.next()) {
|
|
686
705
|
var l = u.value;
|
|
687
706
|
l.remove(this);
|
|
688
707
|
}
|
|
@@ -698,30 +717,30 @@ var Ge = function() {
|
|
|
698
717
|
}
|
|
699
718
|
else
|
|
700
719
|
a.remove(this);
|
|
701
|
-
var
|
|
702
|
-
if (
|
|
720
|
+
var h = this.initialTeardown;
|
|
721
|
+
if (Q(h))
|
|
703
722
|
try {
|
|
704
|
-
|
|
723
|
+
h();
|
|
705
724
|
} catch (b) {
|
|
706
|
-
o = b instanceof
|
|
725
|
+
o = b instanceof Qe ? b.errors : [b];
|
|
707
726
|
}
|
|
708
|
-
var
|
|
709
|
-
if (
|
|
727
|
+
var c = this._finalizers;
|
|
728
|
+
if (c) {
|
|
710
729
|
this._finalizers = null;
|
|
711
730
|
try {
|
|
712
|
-
for (var f =
|
|
713
|
-
var
|
|
731
|
+
for (var f = nt(c), m = f.next(); !m.done; m = f.next()) {
|
|
732
|
+
var p = m.value;
|
|
714
733
|
try {
|
|
715
|
-
|
|
734
|
+
Rt(p);
|
|
716
735
|
} catch (b) {
|
|
717
|
-
o = o != null ? o : [], b instanceof
|
|
736
|
+
o = o != null ? o : [], b instanceof Qe ? o = he(he([], it(o)), it(b.errors)) : o.push(b);
|
|
718
737
|
}
|
|
719
738
|
}
|
|
720
739
|
} catch (b) {
|
|
721
740
|
n = { error: b };
|
|
722
741
|
} finally {
|
|
723
742
|
try {
|
|
724
|
-
|
|
743
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
725
744
|
} finally {
|
|
726
745
|
if (n)
|
|
727
746
|
throw n.error;
|
|
@@ -729,13 +748,13 @@ var Ge = function() {
|
|
|
729
748
|
}
|
|
730
749
|
}
|
|
731
750
|
if (o)
|
|
732
|
-
throw new
|
|
751
|
+
throw new Qe(o);
|
|
733
752
|
}
|
|
734
753
|
}, e.prototype.add = function(t) {
|
|
735
754
|
var r;
|
|
736
755
|
if (t && t !== this)
|
|
737
756
|
if (this.closed)
|
|
738
|
-
|
|
757
|
+
Rt(t);
|
|
739
758
|
else {
|
|
740
759
|
if (t instanceof e) {
|
|
741
760
|
if (t.closed || t._hasParent(this))
|
|
@@ -752,52 +771,56 @@ var Ge = function() {
|
|
|
752
771
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
753
772
|
}, e.prototype._removeParent = function(t) {
|
|
754
773
|
var r = this._parentage;
|
|
755
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
774
|
+
r === t ? this._parentage = null : Array.isArray(r) && ot(r, t);
|
|
756
775
|
}, e.prototype.remove = function(t) {
|
|
757
776
|
var r = this._finalizers;
|
|
758
|
-
r &&
|
|
777
|
+
r && ot(r, t), t instanceof e && t._removeParent(this);
|
|
759
778
|
}, e.EMPTY = function() {
|
|
760
779
|
var t = new e();
|
|
761
780
|
return t.closed = !0, t;
|
|
762
781
|
}(), e;
|
|
763
|
-
}(),
|
|
764
|
-
function
|
|
765
|
-
return e instanceof
|
|
766
|
-
}
|
|
767
|
-
function kt(e) {
|
|
768
|
-
q(e) ? e() : e.unsubscribe();
|
|
782
|
+
}(), Sr = ke.EMPTY;
|
|
783
|
+
function Hr(e) {
|
|
784
|
+
return e instanceof ke || e && "closed" in e && Q(e.remove) && Q(e.add) && Q(e.unsubscribe);
|
|
769
785
|
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
786
|
+
function Rt(e) {
|
|
787
|
+
Q(e) ? e() : e.unsubscribe();
|
|
788
|
+
}
|
|
789
|
+
var jn = {
|
|
790
|
+
onUnhandledError: null,
|
|
791
|
+
onStoppedNotification: null,
|
|
792
|
+
Promise: void 0,
|
|
793
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
794
|
+
useDeprecatedNextContext: !1
|
|
795
|
+
}, Wn = {
|
|
773
796
|
setTimeout: function(e, t) {
|
|
774
797
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
775
798
|
r[n - 2] = arguments[n];
|
|
776
|
-
return setTimeout.apply(void 0,
|
|
799
|
+
return setTimeout.apply(void 0, he([e, t], it(r)));
|
|
777
800
|
},
|
|
778
801
|
clearTimeout: function(e) {
|
|
779
802
|
return clearTimeout(e);
|
|
780
803
|
},
|
|
781
804
|
delegate: void 0
|
|
782
805
|
};
|
|
783
|
-
function
|
|
784
|
-
|
|
806
|
+
function Vn(e) {
|
|
807
|
+
Wn.setTimeout(function() {
|
|
785
808
|
throw e;
|
|
786
809
|
});
|
|
787
810
|
}
|
|
788
|
-
function
|
|
811
|
+
function Ut() {
|
|
789
812
|
}
|
|
790
813
|
function Ie(e) {
|
|
791
814
|
e();
|
|
792
815
|
}
|
|
793
|
-
var
|
|
794
|
-
|
|
816
|
+
var Tr = function(e) {
|
|
817
|
+
J(t, e);
|
|
795
818
|
function t(r) {
|
|
796
819
|
var n = e.call(this) || this;
|
|
797
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
820
|
+
return n.isStopped = !1, r ? (n.destination = r, Hr(r) && r.add(n)) : n.destination = Zn, n;
|
|
798
821
|
}
|
|
799
822
|
return t.create = function(r, n, i) {
|
|
800
|
-
return new
|
|
823
|
+
return new at(r, n, i);
|
|
801
824
|
}, t.prototype.next = function(r) {
|
|
802
825
|
this.isStopped || this._next(r);
|
|
803
826
|
}, t.prototype.error = function(r) {
|
|
@@ -821,7 +844,7 @@ var Pr = function(e) {
|
|
|
821
844
|
this.unsubscribe();
|
|
822
845
|
}
|
|
823
846
|
}, t;
|
|
824
|
-
}(
|
|
847
|
+
}(ke), Xn = function() {
|
|
825
848
|
function e(t) {
|
|
826
849
|
this.partialObserver = t;
|
|
827
850
|
}
|
|
@@ -852,43 +875,43 @@ var Pr = function(e) {
|
|
|
852
875
|
Ae(r);
|
|
853
876
|
}
|
|
854
877
|
}, e;
|
|
855
|
-
}(),
|
|
856
|
-
|
|
878
|
+
}(), at = function(e) {
|
|
879
|
+
J(t, e);
|
|
857
880
|
function t(r, n, i) {
|
|
858
881
|
var o = e.call(this) || this, a;
|
|
859
|
-
return
|
|
882
|
+
return Q(r) || !r ? a = {
|
|
860
883
|
next: r != null ? r : void 0,
|
|
861
884
|
error: n != null ? n : void 0,
|
|
862
885
|
complete: i != null ? i : void 0
|
|
863
|
-
} : a = r, o.destination = new
|
|
886
|
+
} : a = r, o.destination = new Xn(a), o;
|
|
864
887
|
}
|
|
865
888
|
return t;
|
|
866
|
-
}(
|
|
889
|
+
}(Tr);
|
|
867
890
|
function Ae(e) {
|
|
868
|
-
|
|
891
|
+
Vn(e);
|
|
869
892
|
}
|
|
870
|
-
function
|
|
893
|
+
function zn(e) {
|
|
871
894
|
throw e;
|
|
872
895
|
}
|
|
873
|
-
var
|
|
896
|
+
var Zn = {
|
|
874
897
|
closed: !0,
|
|
875
|
-
next:
|
|
876
|
-
error:
|
|
877
|
-
complete:
|
|
878
|
-
},
|
|
898
|
+
next: Ut,
|
|
899
|
+
error: zn,
|
|
900
|
+
complete: Ut
|
|
901
|
+
}, Qn = function() {
|
|
879
902
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
880
903
|
}();
|
|
881
|
-
function
|
|
904
|
+
function qn(e) {
|
|
882
905
|
return e;
|
|
883
906
|
}
|
|
884
|
-
function
|
|
885
|
-
return e.length === 0 ?
|
|
907
|
+
function Jn(e) {
|
|
908
|
+
return e.length === 0 ? qn : e.length === 1 ? e[0] : function(r) {
|
|
886
909
|
return e.reduce(function(n, i) {
|
|
887
910
|
return i(n);
|
|
888
911
|
}, r);
|
|
889
912
|
};
|
|
890
913
|
}
|
|
891
|
-
var
|
|
914
|
+
var Ft = function() {
|
|
892
915
|
function e(t) {
|
|
893
916
|
t && (this._subscribe = t);
|
|
894
917
|
}
|
|
@@ -896,7 +919,7 @@ var $t = function() {
|
|
|
896
919
|
var r = new e();
|
|
897
920
|
return r.source = this, r.operator = t, r;
|
|
898
921
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
899
|
-
var i = this, o =
|
|
922
|
+
var i = this, o = Kn(t) ? t : new at(t, r, n);
|
|
900
923
|
return Ie(function() {
|
|
901
924
|
var a = i, s = a.operator, u = a.source;
|
|
902
925
|
o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -909,8 +932,8 @@ var $t = function() {
|
|
|
909
932
|
}
|
|
910
933
|
}, e.prototype.forEach = function(t, r) {
|
|
911
934
|
var n = this;
|
|
912
|
-
return r =
|
|
913
|
-
var a = new
|
|
935
|
+
return r = Dt(r), new r(function(i, o) {
|
|
936
|
+
var a = new at({
|
|
914
937
|
next: function(s) {
|
|
915
938
|
try {
|
|
916
939
|
t(s);
|
|
@@ -926,15 +949,15 @@ var $t = function() {
|
|
|
926
949
|
}, e.prototype._subscribe = function(t) {
|
|
927
950
|
var r;
|
|
928
951
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
929
|
-
}, e.prototype[
|
|
952
|
+
}, e.prototype[Qn] = function() {
|
|
930
953
|
return this;
|
|
931
954
|
}, e.prototype.pipe = function() {
|
|
932
955
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
933
956
|
t[r] = arguments[r];
|
|
934
|
-
return
|
|
957
|
+
return Jn(t)(this);
|
|
935
958
|
}, e.prototype.toPromise = function(t) {
|
|
936
959
|
var r = this;
|
|
937
|
-
return t =
|
|
960
|
+
return t = Dt(t), new t(function(n, i) {
|
|
938
961
|
var o;
|
|
939
962
|
r.subscribe(function(a) {
|
|
940
963
|
return o = a;
|
|
@@ -948,32 +971,32 @@ var $t = function() {
|
|
|
948
971
|
return new e(t);
|
|
949
972
|
}, e;
|
|
950
973
|
}();
|
|
951
|
-
function
|
|
974
|
+
function Dt(e) {
|
|
952
975
|
var t;
|
|
953
|
-
return (t = e != null ? e :
|
|
976
|
+
return (t = e != null ? e : jn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
954
977
|
}
|
|
955
|
-
function
|
|
956
|
-
return e &&
|
|
978
|
+
function Yn(e) {
|
|
979
|
+
return e && Q(e.next) && Q(e.error) && Q(e.complete);
|
|
957
980
|
}
|
|
958
|
-
function
|
|
959
|
-
return e && e instanceof
|
|
981
|
+
function Kn(e) {
|
|
982
|
+
return e && e instanceof Tr || Yn(e) && Hr(e);
|
|
960
983
|
}
|
|
961
|
-
var
|
|
984
|
+
var ei = wr(function(e) {
|
|
962
985
|
return function() {
|
|
963
986
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
964
987
|
};
|
|
965
|
-
}),
|
|
966
|
-
|
|
988
|
+
}), Or = function(e) {
|
|
989
|
+
J(t, e);
|
|
967
990
|
function t() {
|
|
968
991
|
var r = e.call(this) || this;
|
|
969
992
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
970
993
|
}
|
|
971
994
|
return t.prototype.lift = function(r) {
|
|
972
|
-
var n = new
|
|
995
|
+
var n = new kt(this, this);
|
|
973
996
|
return n.operator = r, n;
|
|
974
997
|
}, t.prototype._throwIfClosed = function() {
|
|
975
998
|
if (this.closed)
|
|
976
|
-
throw new
|
|
999
|
+
throw new ei();
|
|
977
1000
|
}, t.prototype.next = function(r) {
|
|
978
1001
|
var n = this;
|
|
979
1002
|
Ie(function() {
|
|
@@ -981,7 +1004,7 @@ var ni = Or(function(e) {
|
|
|
981
1004
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
982
1005
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
983
1006
|
try {
|
|
984
|
-
for (var a =
|
|
1007
|
+
for (var a = nt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
985
1008
|
var u = s.value;
|
|
986
1009
|
u.next(r);
|
|
987
1010
|
}
|
|
@@ -1030,20 +1053,20 @@ var ni = Or(function(e) {
|
|
|
1030
1053
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1031
1054
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1032
1055
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1033
|
-
return o || a ?
|
|
1034
|
-
n.currentObservers = null,
|
|
1056
|
+
return o || a ? Sr : (this.currentObservers = null, s.push(r), new ke(function() {
|
|
1057
|
+
n.currentObservers = null, ot(s, r);
|
|
1035
1058
|
}));
|
|
1036
1059
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1037
1060
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1038
1061
|
i ? r.error(o) : a && r.complete();
|
|
1039
1062
|
}, t.prototype.asObservable = function() {
|
|
1040
|
-
var r = new
|
|
1063
|
+
var r = new Ft();
|
|
1041
1064
|
return r.source = this, r;
|
|
1042
1065
|
}, t.create = function(r, n) {
|
|
1043
|
-
return new
|
|
1066
|
+
return new kt(r, n);
|
|
1044
1067
|
}, t;
|
|
1045
|
-
}(
|
|
1046
|
-
|
|
1068
|
+
}(Ft), kt = function(e) {
|
|
1069
|
+
J(t, e);
|
|
1047
1070
|
function t(r, n) {
|
|
1048
1071
|
var i = e.call(this) || this;
|
|
1049
1072
|
return i.destination = r, i.source = n, i;
|
|
@@ -1059,17 +1082,17 @@ var ni = Or(function(e) {
|
|
|
1059
1082
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1060
1083
|
}, t.prototype._subscribe = function(r) {
|
|
1061
1084
|
var n, i;
|
|
1062
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1085
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Sr;
|
|
1063
1086
|
}, t;
|
|
1064
|
-
}(
|
|
1087
|
+
}(Or), Mr = {
|
|
1065
1088
|
now: function() {
|
|
1066
|
-
return (
|
|
1089
|
+
return (Mr.delegate || Date).now();
|
|
1067
1090
|
},
|
|
1068
1091
|
delegate: void 0
|
|
1069
|
-
},
|
|
1070
|
-
|
|
1092
|
+
}, ti = function(e) {
|
|
1093
|
+
J(t, e);
|
|
1071
1094
|
function t(r, n, i) {
|
|
1072
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1095
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mr);
|
|
1073
1096
|
var o = e.call(this) || this;
|
|
1074
1097
|
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;
|
|
1075
1098
|
}
|
|
@@ -1084,29 +1107,29 @@ var ni = Or(function(e) {
|
|
|
1084
1107
|
}, t.prototype._trimBuffer = function() {
|
|
1085
1108
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1086
1109
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1087
|
-
for (var u = i.now(), l = 0,
|
|
1088
|
-
l =
|
|
1110
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1111
|
+
l = h;
|
|
1089
1112
|
l && o.splice(0, l + 1);
|
|
1090
1113
|
}
|
|
1091
1114
|
}, t;
|
|
1092
|
-
}(
|
|
1093
|
-
const
|
|
1094
|
-
if (
|
|
1095
|
-
const r = new
|
|
1096
|
-
|
|
1115
|
+
}(Or);
|
|
1116
|
+
const Gt = [], $t = {}, ri = (e, t = 0) => {
|
|
1117
|
+
if (Gt.indexOf(e) == -1) {
|
|
1118
|
+
const r = new ti(t);
|
|
1119
|
+
$t[e] = r, Gt.push(e);
|
|
1097
1120
|
}
|
|
1098
|
-
return
|
|
1121
|
+
return $t[e];
|
|
1099
1122
|
}, se = [];
|
|
1100
|
-
function
|
|
1123
|
+
function ni(e, t) {
|
|
1101
1124
|
return {
|
|
1102
|
-
subscribe:
|
|
1125
|
+
subscribe: Ge(e, t).subscribe
|
|
1103
1126
|
};
|
|
1104
1127
|
}
|
|
1105
|
-
function
|
|
1128
|
+
function Ge(e, t = $) {
|
|
1106
1129
|
let r;
|
|
1107
1130
|
const n = /* @__PURE__ */ new Set();
|
|
1108
1131
|
function i(s) {
|
|
1109
|
-
if (
|
|
1132
|
+
if (yr(e, s) && (e = s, r)) {
|
|
1110
1133
|
const u = !se.length;
|
|
1111
1134
|
for (const l of n)
|
|
1112
1135
|
l[1](), se.push(l, e);
|
|
@@ -1128,102 +1151,102 @@ function $e(e, t = $) {
|
|
|
1128
1151
|
}
|
|
1129
1152
|
return { set: i, update: o, subscribe: a };
|
|
1130
1153
|
}
|
|
1131
|
-
function
|
|
1154
|
+
function be(e, t, r) {
|
|
1132
1155
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1133
1156
|
if (!i.every(Boolean))
|
|
1134
1157
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1135
1158
|
const o = t.length < 2;
|
|
1136
|
-
return
|
|
1159
|
+
return ni(r, (a, s) => {
|
|
1137
1160
|
let u = !1;
|
|
1138
1161
|
const l = [];
|
|
1139
|
-
let
|
|
1162
|
+
let h = 0, c = $;
|
|
1140
1163
|
const f = () => {
|
|
1141
|
-
if (
|
|
1164
|
+
if (h)
|
|
1142
1165
|
return;
|
|
1143
|
-
|
|
1144
|
-
const
|
|
1145
|
-
o ? a(
|
|
1146
|
-
},
|
|
1147
|
-
(
|
|
1148
|
-
|
|
1166
|
+
c();
|
|
1167
|
+
const p = t(n ? l[0] : l, a, s);
|
|
1168
|
+
o ? a(p) : c = gt(p) ? p : $;
|
|
1169
|
+
}, m = i.map(
|
|
1170
|
+
(p, b) => _r(
|
|
1171
|
+
p,
|
|
1149
1172
|
(w) => {
|
|
1150
|
-
l[b] = w,
|
|
1173
|
+
l[b] = w, h &= ~(1 << b), u && f();
|
|
1151
1174
|
},
|
|
1152
1175
|
() => {
|
|
1153
|
-
|
|
1176
|
+
h |= 1 << b;
|
|
1154
1177
|
}
|
|
1155
1178
|
)
|
|
1156
1179
|
);
|
|
1157
1180
|
return u = !0, f(), function() {
|
|
1158
|
-
|
|
1181
|
+
ge(m), c(), u = !1;
|
|
1159
1182
|
};
|
|
1160
1183
|
});
|
|
1161
1184
|
}
|
|
1162
|
-
var
|
|
1163
|
-
function
|
|
1185
|
+
var pa = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1186
|
+
function ii(e) {
|
|
1164
1187
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1165
1188
|
}
|
|
1166
|
-
var
|
|
1167
|
-
return
|
|
1189
|
+
var oi = function(t) {
|
|
1190
|
+
return ai(t) && !si(t);
|
|
1168
1191
|
};
|
|
1169
|
-
function
|
|
1192
|
+
function ai(e) {
|
|
1170
1193
|
return !!e && typeof e == "object";
|
|
1171
1194
|
}
|
|
1172
|
-
function
|
|
1195
|
+
function si(e) {
|
|
1173
1196
|
var t = Object.prototype.toString.call(e);
|
|
1174
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1197
|
+
return t === "[object RegExp]" || t === "[object Date]" || hi(e);
|
|
1175
1198
|
}
|
|
1176
|
-
var
|
|
1177
|
-
function
|
|
1178
|
-
return e.$$typeof ===
|
|
1199
|
+
var ui = typeof Symbol == "function" && Symbol.for, li = ui ? Symbol.for("react.element") : 60103;
|
|
1200
|
+
function hi(e) {
|
|
1201
|
+
return e.$$typeof === li;
|
|
1179
1202
|
}
|
|
1180
|
-
function
|
|
1203
|
+
function ci(e) {
|
|
1181
1204
|
return Array.isArray(e) ? [] : {};
|
|
1182
1205
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ce(
|
|
1206
|
+
function we(e, t) {
|
|
1207
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ce(ci(e), e, t) : e;
|
|
1185
1208
|
}
|
|
1186
|
-
function
|
|
1209
|
+
function fi(e, t, r) {
|
|
1187
1210
|
return e.concat(t).map(function(n) {
|
|
1188
|
-
return
|
|
1211
|
+
return we(n, r);
|
|
1189
1212
|
});
|
|
1190
1213
|
}
|
|
1191
|
-
function
|
|
1214
|
+
function di(e, t) {
|
|
1192
1215
|
if (!t.customMerge)
|
|
1193
1216
|
return ce;
|
|
1194
1217
|
var r = t.customMerge(e);
|
|
1195
1218
|
return typeof r == "function" ? r : ce;
|
|
1196
1219
|
}
|
|
1197
|
-
function
|
|
1220
|
+
function mi(e) {
|
|
1198
1221
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1199
1222
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1200
1223
|
}) : [];
|
|
1201
1224
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return Object.keys(e).concat(
|
|
1225
|
+
function jt(e) {
|
|
1226
|
+
return Object.keys(e).concat(mi(e));
|
|
1204
1227
|
}
|
|
1205
|
-
function
|
|
1228
|
+
function Ar(e, t) {
|
|
1206
1229
|
try {
|
|
1207
1230
|
return t in e;
|
|
1208
1231
|
} catch (r) {
|
|
1209
1232
|
return !1;
|
|
1210
1233
|
}
|
|
1211
1234
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return
|
|
1235
|
+
function gi(e, t) {
|
|
1236
|
+
return Ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1214
1237
|
}
|
|
1215
|
-
function
|
|
1238
|
+
function pi(e, t, r) {
|
|
1216
1239
|
var n = {};
|
|
1217
|
-
return r.isMergeableObject(e) &&
|
|
1218
|
-
n[i] =
|
|
1219
|
-
}),
|
|
1220
|
-
|
|
1240
|
+
return r.isMergeableObject(e) && jt(e).forEach(function(i) {
|
|
1241
|
+
n[i] = we(e[i], r);
|
|
1242
|
+
}), jt(t).forEach(function(i) {
|
|
1243
|
+
gi(e, i) || (Ar(e, i) && r.isMergeableObject(t[i]) ? n[i] = di(i, r)(e[i], t[i], r) : n[i] = we(t[i], r));
|
|
1221
1244
|
}), n;
|
|
1222
1245
|
}
|
|
1223
1246
|
function ce(e, t, r) {
|
|
1224
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1247
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fi, r.isMergeableObject = r.isMergeableObject || oi, r.cloneUnlessOtherwiseSpecified = we;
|
|
1225
1248
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1226
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1249
|
+
return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : we(t, r);
|
|
1227
1250
|
}
|
|
1228
1251
|
ce.all = function(t, r) {
|
|
1229
1252
|
if (!Array.isArray(t))
|
|
@@ -1232,81 +1255,42 @@ ce.all = function(t, r) {
|
|
|
1232
1255
|
return ce(n, i, r);
|
|
1233
1256
|
}, {});
|
|
1234
1257
|
};
|
|
1235
|
-
var
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
r.__proto__ = n;
|
|
1240
|
-
} || function(r, n) {
|
|
1241
|
-
for (var i in n)
|
|
1242
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1243
|
-
}, ht(e, t);
|
|
1244
|
-
};
|
|
1245
|
-
function je(e, t) {
|
|
1246
|
-
if (typeof t != "function" && t !== null)
|
|
1247
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1248
|
-
ht(e, t);
|
|
1249
|
-
function r() {
|
|
1250
|
-
this.constructor = e;
|
|
1251
|
-
}
|
|
1252
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1253
|
-
}
|
|
1254
|
-
var z = function() {
|
|
1255
|
-
return z = Object.assign || function(t) {
|
|
1256
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1257
|
-
r = arguments[n];
|
|
1258
|
-
for (var o in r)
|
|
1259
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1260
|
-
}
|
|
1261
|
-
return t;
|
|
1262
|
-
}, z.apply(this, arguments);
|
|
1263
|
-
};
|
|
1264
|
-
function wi(e, t) {
|
|
1265
|
-
var r = {};
|
|
1266
|
-
for (var n in e)
|
|
1267
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1268
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1269
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1270
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1271
|
-
return r;
|
|
1272
|
-
}
|
|
1273
|
-
function Ye(e, t, r) {
|
|
1274
|
-
if (r || arguments.length === 2)
|
|
1275
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1276
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1277
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1278
|
-
}
|
|
1279
|
-
function Ke(e, t) {
|
|
1280
|
-
var r = t && t.cache ? t.cache : Pi, n = t && t.serializer ? t.serializer : Mi, i = t && t.strategy ? t.strategy : Ti;
|
|
1258
|
+
var bi = ce, yi = bi;
|
|
1259
|
+
const _i = /* @__PURE__ */ ii(yi);
|
|
1260
|
+
function qe(e, t) {
|
|
1261
|
+
var r = t && t.cache ? t.cache : Ti, n = t && t.serializer ? t.serializer : Si, i = t && t.strategy ? t.strategy : xi;
|
|
1281
1262
|
return i(e, {
|
|
1282
1263
|
cache: r,
|
|
1283
1264
|
serializer: n
|
|
1284
1265
|
});
|
|
1285
1266
|
}
|
|
1286
|
-
function
|
|
1267
|
+
function vi(e) {
|
|
1287
1268
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1288
1269
|
}
|
|
1289
|
-
function
|
|
1290
|
-
var i =
|
|
1270
|
+
function Lr(e, t, r, n) {
|
|
1271
|
+
var i = vi(n) ? n : r(n), o = t.get(i);
|
|
1291
1272
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1292
1273
|
}
|
|
1293
|
-
function
|
|
1274
|
+
function Pr(e, t, r) {
|
|
1294
1275
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1295
1276
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1296
1277
|
}
|
|
1297
|
-
function
|
|
1278
|
+
function pt(e, t, r, n, i) {
|
|
1298
1279
|
return r.bind(t, e, n, i);
|
|
1299
1280
|
}
|
|
1300
|
-
function
|
|
1301
|
-
var r = e.length === 1 ?
|
|
1302
|
-
return
|
|
1281
|
+
function xi(e, t) {
|
|
1282
|
+
var r = e.length === 1 ? Lr : Pr;
|
|
1283
|
+
return pt(e, this, r, t.cache.create(), t.serializer);
|
|
1303
1284
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
1285
|
+
function Ei(e, t) {
|
|
1286
|
+
return pt(e, this, Pr, t.cache.create(), t.serializer);
|
|
1306
1287
|
}
|
|
1307
|
-
|
|
1288
|
+
function wi(e, t) {
|
|
1289
|
+
return pt(e, this, Lr, t.cache.create(), t.serializer);
|
|
1290
|
+
}
|
|
1291
|
+
var Si = function() {
|
|
1308
1292
|
return JSON.stringify(arguments);
|
|
1309
|
-
},
|
|
1293
|
+
}, Hi = (
|
|
1310
1294
|
/** @class */
|
|
1311
1295
|
function() {
|
|
1312
1296
|
function e() {
|
|
@@ -1318,71 +1302,62 @@ var Mi = function() {
|
|
|
1318
1302
|
this.cache[t] = r;
|
|
1319
1303
|
}, e;
|
|
1320
1304
|
}()
|
|
1321
|
-
),
|
|
1305
|
+
), Ti = {
|
|
1322
1306
|
create: function() {
|
|
1323
|
-
return new
|
|
1307
|
+
return new Hi();
|
|
1324
1308
|
}
|
|
1325
|
-
},
|
|
1326
|
-
variadic:
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1330
|
-
r = arguments[n];
|
|
1331
|
-
for (var o in r)
|
|
1332
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1333
|
-
}
|
|
1334
|
-
return t;
|
|
1335
|
-
}, Fe.apply(this, arguments);
|
|
1336
|
-
};
|
|
1337
|
-
var _;
|
|
1309
|
+
}, Je = {
|
|
1310
|
+
variadic: Ei,
|
|
1311
|
+
monadic: wi
|
|
1312
|
+
}, v;
|
|
1338
1313
|
(function(e) {
|
|
1339
1314
|
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";
|
|
1340
|
-
})(
|
|
1341
|
-
var
|
|
1315
|
+
})(v || (v = {}));
|
|
1316
|
+
var O;
|
|
1342
1317
|
(function(e) {
|
|
1343
1318
|
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";
|
|
1344
|
-
})(
|
|
1345
|
-
var
|
|
1319
|
+
})(O || (O = {}));
|
|
1320
|
+
var fe;
|
|
1346
1321
|
(function(e) {
|
|
1347
1322
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1348
|
-
})(
|
|
1349
|
-
function
|
|
1350
|
-
return e.type ===
|
|
1323
|
+
})(fe || (fe = {}));
|
|
1324
|
+
function Wt(e) {
|
|
1325
|
+
return e.type === O.literal;
|
|
1351
1326
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return e.type ===
|
|
1327
|
+
function Oi(e) {
|
|
1328
|
+
return e.type === O.argument;
|
|
1354
1329
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return e.type ===
|
|
1330
|
+
function Br(e) {
|
|
1331
|
+
return e.type === O.number;
|
|
1357
1332
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return e.type ===
|
|
1333
|
+
function Ir(e) {
|
|
1334
|
+
return e.type === O.date;
|
|
1360
1335
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return e.type ===
|
|
1336
|
+
function Cr(e) {
|
|
1337
|
+
return e.type === O.time;
|
|
1363
1338
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return e.type ===
|
|
1339
|
+
function Nr(e) {
|
|
1340
|
+
return e.type === O.select;
|
|
1366
1341
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return e.type ===
|
|
1342
|
+
function Rr(e) {
|
|
1343
|
+
return e.type === O.plural;
|
|
1369
1344
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return e.type ===
|
|
1345
|
+
function Mi(e) {
|
|
1346
|
+
return e.type === O.pound;
|
|
1372
1347
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return e.type ===
|
|
1348
|
+
function Ur(e) {
|
|
1349
|
+
return e.type === O.tag;
|
|
1375
1350
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1351
|
+
function Fr(e) {
|
|
1352
|
+
return !!(e && typeof e == "object" && e.type === fe.number);
|
|
1378
1353
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1354
|
+
function st(e) {
|
|
1355
|
+
return !!(e && typeof e == "object" && e.type === fe.dateTime);
|
|
1381
1356
|
}
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1357
|
+
var Dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ai = /(?:[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;
|
|
1358
|
+
function Li(e) {
|
|
1384
1359
|
var t = {};
|
|
1385
|
-
return e.replace(
|
|
1360
|
+
return e.replace(Ai, function(r) {
|
|
1386
1361
|
var n = r.length;
|
|
1387
1362
|
switch (r[0]) {
|
|
1388
1363
|
case "G":
|
|
@@ -1471,46 +1446,36 @@ function Ci(e) {
|
|
|
1471
1446
|
return "";
|
|
1472
1447
|
}), t;
|
|
1473
1448
|
}
|
|
1474
|
-
var
|
|
1475
|
-
|
|
1476
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1477
|
-
r = arguments[n];
|
|
1478
|
-
for (var o in r)
|
|
1479
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1480
|
-
}
|
|
1481
|
-
return t;
|
|
1482
|
-
}, A.apply(this, arguments);
|
|
1483
|
-
};
|
|
1484
|
-
var Ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1485
|
-
function Ri(e) {
|
|
1449
|
+
var Pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1450
|
+
function Bi(e) {
|
|
1486
1451
|
if (e.length === 0)
|
|
1487
1452
|
throw new Error("Number skeleton cannot be empty");
|
|
1488
|
-
for (var t = e.split(
|
|
1453
|
+
for (var t = e.split(Pi).filter(function(f) {
|
|
1489
1454
|
return f.length > 0;
|
|
1490
1455
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1491
1456
|
var o = i[n], a = o.split("/");
|
|
1492
1457
|
if (a.length === 0)
|
|
1493
1458
|
throw new Error("Invalid number skeleton");
|
|
1494
|
-
for (var s = a[0], u = a.slice(1), l = 0,
|
|
1495
|
-
var
|
|
1496
|
-
if (
|
|
1459
|
+
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1460
|
+
var c = h[l];
|
|
1461
|
+
if (c.length === 0)
|
|
1497
1462
|
throw new Error("Invalid number skeleton");
|
|
1498
1463
|
}
|
|
1499
1464
|
r.push({ stem: s, options: u });
|
|
1500
1465
|
}
|
|
1501
1466
|
return r;
|
|
1502
1467
|
}
|
|
1503
|
-
function
|
|
1468
|
+
function Ii(e) {
|
|
1504
1469
|
return e.replace(/^(.*?)-/, "");
|
|
1505
1470
|
}
|
|
1506
|
-
var
|
|
1507
|
-
function
|
|
1471
|
+
var Vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, Gr = /^(0+)$/;
|
|
1472
|
+
function Xt(e) {
|
|
1508
1473
|
var t = {};
|
|
1509
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1474
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kr, function(r, n, i) {
|
|
1510
1475
|
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)), "";
|
|
1511
1476
|
}), t;
|
|
1512
1477
|
}
|
|
1513
|
-
function
|
|
1478
|
+
function $r(e) {
|
|
1514
1479
|
switch (e) {
|
|
1515
1480
|
case "sign-auto":
|
|
1516
1481
|
return {
|
|
@@ -1550,7 +1515,7 @@ function Xr(e) {
|
|
|
1550
1515
|
};
|
|
1551
1516
|
}
|
|
1552
1517
|
}
|
|
1553
|
-
function
|
|
1518
|
+
function Ni(e) {
|
|
1554
1519
|
var t;
|
|
1555
1520
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1556
1521
|
notation: "engineering"
|
|
@@ -1558,17 +1523,17 @@ function Di(e) {
|
|
|
1558
1523
|
notation: "scientific"
|
|
1559
1524
|
}, e = e.slice(1)), t) {
|
|
1560
1525
|
var r = e.slice(0, 2);
|
|
1561
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1526
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gr.test(e))
|
|
1562
1527
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1563
1528
|
t.minimumIntegerDigits = e.length;
|
|
1564
1529
|
}
|
|
1565
1530
|
return t;
|
|
1566
1531
|
}
|
|
1567
|
-
function
|
|
1568
|
-
var t = {}, r =
|
|
1532
|
+
function zt(e) {
|
|
1533
|
+
var t = {}, r = $r(e);
|
|
1569
1534
|
return r || t;
|
|
1570
1535
|
}
|
|
1571
|
-
function
|
|
1536
|
+
function Ri(e) {
|
|
1572
1537
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1573
1538
|
var i = n[r];
|
|
1574
1539
|
switch (i.stem) {
|
|
@@ -1592,7 +1557,7 @@ function ki(e) {
|
|
|
1592
1557
|
continue;
|
|
1593
1558
|
case "measure-unit":
|
|
1594
1559
|
case "unit":
|
|
1595
|
-
t.style = "unit", t.unit =
|
|
1560
|
+
t.style = "unit", t.unit = Ii(i.options[0]);
|
|
1596
1561
|
continue;
|
|
1597
1562
|
case "compact-short":
|
|
1598
1563
|
case "K":
|
|
@@ -1603,13 +1568,13 @@ function ki(e) {
|
|
|
1603
1568
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1604
1569
|
continue;
|
|
1605
1570
|
case "scientific":
|
|
1606
|
-
t =
|
|
1607
|
-
return
|
|
1571
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1572
|
+
return S(S({}, u), zt(l));
|
|
1608
1573
|
}, {}));
|
|
1609
1574
|
continue;
|
|
1610
1575
|
case "engineering":
|
|
1611
|
-
t =
|
|
1612
|
-
return
|
|
1576
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1577
|
+
return S(S({}, u), zt(l));
|
|
1613
1578
|
}, {}));
|
|
1614
1579
|
continue;
|
|
1615
1580
|
case "notation-simple":
|
|
@@ -1654,45 +1619,45 @@ function ki(e) {
|
|
|
1654
1619
|
case "integer-width":
|
|
1655
1620
|
if (i.options.length > 1)
|
|
1656
1621
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1657
|
-
i.options[0].replace(
|
|
1622
|
+
i.options[0].replace(Ci, function(u, l, h, c, f, m) {
|
|
1658
1623
|
if (l)
|
|
1659
|
-
t.minimumIntegerDigits =
|
|
1624
|
+
t.minimumIntegerDigits = h.length;
|
|
1660
1625
|
else {
|
|
1661
|
-
if (
|
|
1626
|
+
if (c && f)
|
|
1662
1627
|
throw new Error("We currently do not support maximum integer digits");
|
|
1663
|
-
if (
|
|
1628
|
+
if (m)
|
|
1664
1629
|
throw new Error("We currently do not support exact integer digits");
|
|
1665
1630
|
}
|
|
1666
1631
|
return "";
|
|
1667
1632
|
});
|
|
1668
1633
|
continue;
|
|
1669
1634
|
}
|
|
1670
|
-
if (
|
|
1635
|
+
if (Gr.test(i.stem)) {
|
|
1671
1636
|
t.minimumIntegerDigits = i.stem.length;
|
|
1672
1637
|
continue;
|
|
1673
1638
|
}
|
|
1674
|
-
if (
|
|
1639
|
+
if (Vt.test(i.stem)) {
|
|
1675
1640
|
if (i.options.length > 1)
|
|
1676
1641
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1677
|
-
i.stem.replace(
|
|
1678
|
-
return
|
|
1642
|
+
i.stem.replace(Vt, function(u, l, h, c, f, m) {
|
|
1643
|
+
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1679
1644
|
});
|
|
1680
1645
|
var o = i.options[0];
|
|
1681
|
-
o === "w" ? t =
|
|
1646
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Xt(o)));
|
|
1682
1647
|
continue;
|
|
1683
1648
|
}
|
|
1684
|
-
if (
|
|
1685
|
-
t =
|
|
1649
|
+
if (kr.test(i.stem)) {
|
|
1650
|
+
t = S(S({}, t), Xt(i.stem));
|
|
1686
1651
|
continue;
|
|
1687
1652
|
}
|
|
1688
|
-
var a =
|
|
1689
|
-
a && (t =
|
|
1690
|
-
var s =
|
|
1691
|
-
s && (t =
|
|
1653
|
+
var a = $r(i.stem);
|
|
1654
|
+
a && (t = S(S({}, t), a));
|
|
1655
|
+
var s = Ni(i.stem);
|
|
1656
|
+
s && (t = S(S({}, t), s));
|
|
1692
1657
|
}
|
|
1693
1658
|
return t;
|
|
1694
1659
|
}
|
|
1695
|
-
var
|
|
1660
|
+
var Le = {
|
|
1696
1661
|
"001": [
|
|
1697
1662
|
"H",
|
|
1698
1663
|
"h"
|
|
@@ -3107,13 +3072,13 @@ var Pe = {
|
|
|
3107
3072
|
"h"
|
|
3108
3073
|
]
|
|
3109
3074
|
};
|
|
3110
|
-
function
|
|
3075
|
+
function Ui(e, t) {
|
|
3111
3076
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3112
3077
|
var i = e.charAt(n);
|
|
3113
3078
|
if (i === "j") {
|
|
3114
3079
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3115
3080
|
o++, n++;
|
|
3116
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
3081
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Fi(t);
|
|
3117
3082
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3118
3083
|
r += u;
|
|
3119
3084
|
for (; a-- > 0; )
|
|
@@ -3123,7 +3088,7 @@ function Gi(e, t) {
|
|
|
3123
3088
|
}
|
|
3124
3089
|
return r;
|
|
3125
3090
|
}
|
|
3126
|
-
function
|
|
3091
|
+
function Fi(e) {
|
|
3127
3092
|
var t = e.hourCycle;
|
|
3128
3093
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3129
3094
|
e.hourCycles && // @ts-ignore
|
|
@@ -3142,23 +3107,23 @@ function $i(e) {
|
|
|
3142
3107
|
}
|
|
3143
3108
|
var r = e.language, n;
|
|
3144
3109
|
r !== "root" && (n = e.maximize().region);
|
|
3145
|
-
var i =
|
|
3110
|
+
var i = Le[n || ""] || Le[r || ""] || Le["".concat(r, "-001")] || Le["001"];
|
|
3146
3111
|
return i[0];
|
|
3147
3112
|
}
|
|
3148
|
-
var
|
|
3113
|
+
var Ye, Di = new RegExp("^".concat(Dr.source, "*")), ki = new RegExp("".concat(Dr.source, "*$"));
|
|
3149
3114
|
function E(e, t) {
|
|
3150
3115
|
return { start: e, end: t };
|
|
3151
3116
|
}
|
|
3152
|
-
var
|
|
3117
|
+
var Gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), $i = !!String.fromCodePoint, ji = !!Object.fromEntries, Wi = !!String.prototype.codePointAt, Vi = !!String.prototype.trimStart, Xi = !!String.prototype.trimEnd, zi = !!Number.isSafeInteger, Zi = zi ? Number.isSafeInteger : function(e) {
|
|
3153
3118
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3154
|
-
},
|
|
3119
|
+
}, ut = !0;
|
|
3155
3120
|
try {
|
|
3156
|
-
var
|
|
3157
|
-
|
|
3121
|
+
var Qi = Wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3122
|
+
ut = ((Ye = Qi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3158
3123
|
} catch (e) {
|
|
3159
|
-
|
|
3124
|
+
ut = !1;
|
|
3160
3125
|
}
|
|
3161
|
-
var
|
|
3126
|
+
var Zt = Gi ? (
|
|
3162
3127
|
// Native
|
|
3163
3128
|
function(t, r, n) {
|
|
3164
3129
|
return t.startsWith(r, n);
|
|
@@ -3168,7 +3133,7 @@ var Yt = Vi ? (
|
|
|
3168
3133
|
function(t, r, n) {
|
|
3169
3134
|
return t.slice(n, n + r.length) === r;
|
|
3170
3135
|
}
|
|
3171
|
-
),
|
|
3136
|
+
), lt = $i ? String.fromCodePoint : (
|
|
3172
3137
|
// IE11
|
|
3173
3138
|
function() {
|
|
3174
3139
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3180,9 +3145,9 @@ var Yt = Vi ? (
|
|
|
3180
3145
|
}
|
|
3181
3146
|
return n;
|
|
3182
3147
|
}
|
|
3183
|
-
),
|
|
3148
|
+
), Qt = (
|
|
3184
3149
|
// native
|
|
3185
|
-
|
|
3150
|
+
ji ? Object.fromEntries : (
|
|
3186
3151
|
// Ponyfill
|
|
3187
3152
|
function(t) {
|
|
3188
3153
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3192,7 +3157,7 @@ var Yt = Vi ? (
|
|
|
3192
3157
|
return r;
|
|
3193
3158
|
}
|
|
3194
3159
|
)
|
|
3195
|
-
),
|
|
3160
|
+
), jr = Wi ? (
|
|
3196
3161
|
// Native
|
|
3197
3162
|
function(t, r) {
|
|
3198
3163
|
return t.codePointAt(r);
|
|
@@ -3206,7 +3171,7 @@ var Yt = Vi ? (
|
|
|
3206
3171
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3207
3172
|
}
|
|
3208
3173
|
}
|
|
3209
|
-
),
|
|
3174
|
+
), qi = Vi ? (
|
|
3210
3175
|
// Native
|
|
3211
3176
|
function(t) {
|
|
3212
3177
|
return t.trimStart();
|
|
@@ -3214,9 +3179,9 @@ var Yt = Vi ? (
|
|
|
3214
3179
|
) : (
|
|
3215
3180
|
// Ponyfill
|
|
3216
3181
|
function(t) {
|
|
3217
|
-
return t.replace(
|
|
3182
|
+
return t.replace(Di, "");
|
|
3218
3183
|
}
|
|
3219
|
-
),
|
|
3184
|
+
), Ji = Xi ? (
|
|
3220
3185
|
// Native
|
|
3221
3186
|
function(t) {
|
|
3222
3187
|
return t.trimEnd();
|
|
@@ -3224,32 +3189,32 @@ var Yt = Vi ? (
|
|
|
3224
3189
|
) : (
|
|
3225
3190
|
// Ponyfill
|
|
3226
3191
|
function(t) {
|
|
3227
|
-
return t.replace(
|
|
3192
|
+
return t.replace(ki, "");
|
|
3228
3193
|
}
|
|
3229
3194
|
);
|
|
3230
|
-
function
|
|
3195
|
+
function Wr(e, t) {
|
|
3231
3196
|
return new RegExp(e, t);
|
|
3232
3197
|
}
|
|
3233
|
-
var
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
|
|
3198
|
+
var ht;
|
|
3199
|
+
if (ut) {
|
|
3200
|
+
var qt = Wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3201
|
+
ht = function(t, r) {
|
|
3237
3202
|
var n;
|
|
3238
|
-
|
|
3239
|
-
var i =
|
|
3203
|
+
qt.lastIndex = r;
|
|
3204
|
+
var i = qt.exec(t);
|
|
3240
3205
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3241
3206
|
};
|
|
3242
3207
|
} else
|
|
3243
|
-
|
|
3208
|
+
ht = function(t, r) {
|
|
3244
3209
|
for (var n = []; ; ) {
|
|
3245
|
-
var i =
|
|
3246
|
-
if (i === void 0 ||
|
|
3210
|
+
var i = jr(t, r);
|
|
3211
|
+
if (i === void 0 || Vr(i) || to(i))
|
|
3247
3212
|
break;
|
|
3248
3213
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3249
3214
|
}
|
|
3250
|
-
return
|
|
3215
|
+
return lt.apply(void 0, n);
|
|
3251
3216
|
};
|
|
3252
|
-
var
|
|
3217
|
+
var Yi = (
|
|
3253
3218
|
/** @class */
|
|
3254
3219
|
function() {
|
|
3255
3220
|
function e(t, r) {
|
|
@@ -3273,14 +3238,14 @@ var ro = (
|
|
|
3273
3238
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3274
3239
|
var s = this.clonePosition();
|
|
3275
3240
|
this.bump(), i.push({
|
|
3276
|
-
type:
|
|
3241
|
+
type: O.pound,
|
|
3277
3242
|
location: E(s, this.clonePosition())
|
|
3278
3243
|
});
|
|
3279
3244
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3280
3245
|
if (n)
|
|
3281
3246
|
break;
|
|
3282
|
-
return this.error(
|
|
3283
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3247
|
+
return this.error(v.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3248
|
+
} else if (o === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
|
|
3284
3249
|
var a = this.parseTag(t, r);
|
|
3285
3250
|
if (a.err)
|
|
3286
3251
|
return a;
|
|
@@ -3301,7 +3266,7 @@ var ro = (
|
|
|
3301
3266
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3302
3267
|
return {
|
|
3303
3268
|
val: {
|
|
3304
|
-
type:
|
|
3269
|
+
type: O.literal,
|
|
3305
3270
|
value: "<".concat(i, "/>"),
|
|
3306
3271
|
location: E(n, this.clonePosition())
|
|
3307
3272
|
},
|
|
@@ -3313,25 +3278,25 @@ var ro = (
|
|
|
3313
3278
|
return o;
|
|
3314
3279
|
var a = o.val, s = this.clonePosition();
|
|
3315
3280
|
if (this.bumpIf("</")) {
|
|
3316
|
-
if (this.isEOF() || !
|
|
3317
|
-
return this.error(
|
|
3281
|
+
if (this.isEOF() || !ct(this.char()))
|
|
3282
|
+
return this.error(v.INVALID_TAG, E(s, this.clonePosition()));
|
|
3318
3283
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3319
|
-
return i !== l ? this.error(
|
|
3284
|
+
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3320
3285
|
val: {
|
|
3321
|
-
type:
|
|
3286
|
+
type: O.tag,
|
|
3322
3287
|
value: i,
|
|
3323
3288
|
children: a,
|
|
3324
3289
|
location: E(n, this.clonePosition())
|
|
3325
3290
|
},
|
|
3326
3291
|
err: null
|
|
3327
|
-
} : this.error(
|
|
3292
|
+
} : this.error(v.INVALID_TAG, E(s, this.clonePosition())));
|
|
3328
3293
|
} else
|
|
3329
|
-
return this.error(
|
|
3294
|
+
return this.error(v.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
3330
3295
|
} else
|
|
3331
|
-
return this.error(
|
|
3296
|
+
return this.error(v.INVALID_TAG, E(n, this.clonePosition()));
|
|
3332
3297
|
}, e.prototype.parseTagName = function() {
|
|
3333
3298
|
var t = this.offset();
|
|
3334
|
-
for (this.bump(); !this.isEOF() &&
|
|
3299
|
+
for (this.bump(); !this.isEOF() && eo(this.char()); )
|
|
3335
3300
|
this.bump();
|
|
3336
3301
|
return this.message.slice(t, this.offset());
|
|
3337
3302
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3355,12 +3320,12 @@ var ro = (
|
|
|
3355
3320
|
}
|
|
3356
3321
|
var u = E(n, this.clonePosition());
|
|
3357
3322
|
return {
|
|
3358
|
-
val: { type:
|
|
3323
|
+
val: { type: O.literal, value: i, location: u },
|
|
3359
3324
|
err: null
|
|
3360
3325
|
};
|
|
3361
3326
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3362
3327
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3363
|
-
!
|
|
3328
|
+
!Ki(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3364
3329
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3365
3330
|
if (this.isEOF() || this.char() !== 39)
|
|
3366
3331
|
return null;
|
|
@@ -3394,28 +3359,28 @@ var ro = (
|
|
|
3394
3359
|
r.push(n);
|
|
3395
3360
|
this.bump();
|
|
3396
3361
|
}
|
|
3397
|
-
return
|
|
3362
|
+
return lt.apply(void 0, r);
|
|
3398
3363
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3399
3364
|
if (this.isEOF())
|
|
3400
3365
|
return null;
|
|
3401
3366
|
var n = this.char();
|
|
3402
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3367
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
|
|
3403
3368
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3404
3369
|
var n = this.clonePosition();
|
|
3405
3370
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3406
|
-
return this.error(
|
|
3371
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3407
3372
|
if (this.char() === 125)
|
|
3408
|
-
return this.bump(), this.error(
|
|
3373
|
+
return this.bump(), this.error(v.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
3409
3374
|
var i = this.parseIdentifierIfPossible().value;
|
|
3410
3375
|
if (!i)
|
|
3411
|
-
return this.error(
|
|
3376
|
+
return this.error(v.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3412
3377
|
if (this.bumpSpace(), this.isEOF())
|
|
3413
|
-
return this.error(
|
|
3378
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3414
3379
|
switch (this.char()) {
|
|
3415
3380
|
case 125:
|
|
3416
3381
|
return this.bump(), {
|
|
3417
3382
|
val: {
|
|
3418
|
-
type:
|
|
3383
|
+
type: O.argument,
|
|
3419
3384
|
// value does not include the opening and closing braces.
|
|
3420
3385
|
value: i,
|
|
3421
3386
|
location: E(n, this.clonePosition())
|
|
@@ -3423,12 +3388,12 @@ var ro = (
|
|
|
3423
3388
|
err: null
|
|
3424
3389
|
};
|
|
3425
3390
|
case 44:
|
|
3426
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3391
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3427
3392
|
default:
|
|
3428
|
-
return this.error(
|
|
3393
|
+
return this.error(v.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3429
3394
|
}
|
|
3430
3395
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3431
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3396
|
+
var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
|
|
3432
3397
|
this.bumpTo(i);
|
|
3433
3398
|
var o = this.clonePosition(), a = E(t, o);
|
|
3434
3399
|
return { value: n, location: a };
|
|
@@ -3436,7 +3401,7 @@ var ro = (
|
|
|
3436
3401
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3437
3402
|
switch (s) {
|
|
3438
3403
|
case "":
|
|
3439
|
-
return this.error(
|
|
3404
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, E(a, u));
|
|
3440
3405
|
case "number":
|
|
3441
3406
|
case "date":
|
|
3442
3407
|
case "time": {
|
|
@@ -3444,38 +3409,38 @@ var ro = (
|
|
|
3444
3409
|
var l = null;
|
|
3445
3410
|
if (this.bumpIf(",")) {
|
|
3446
3411
|
this.bumpSpace();
|
|
3447
|
-
var
|
|
3448
|
-
if (
|
|
3449
|
-
return
|
|
3450
|
-
var f =
|
|
3412
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3413
|
+
if (c.err)
|
|
3414
|
+
return c;
|
|
3415
|
+
var f = Ji(c.val);
|
|
3451
3416
|
if (f.length === 0)
|
|
3452
|
-
return this.error(
|
|
3453
|
-
var
|
|
3454
|
-
l = { style: f, styleLocation:
|
|
3417
|
+
return this.error(v.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3418
|
+
var m = E(h, this.clonePosition());
|
|
3419
|
+
l = { style: f, styleLocation: m };
|
|
3455
3420
|
}
|
|
3456
|
-
var
|
|
3457
|
-
if (
|
|
3458
|
-
return
|
|
3421
|
+
var p = this.tryParseArgumentClose(i);
|
|
3422
|
+
if (p.err)
|
|
3423
|
+
return p;
|
|
3459
3424
|
var b = E(i, this.clonePosition());
|
|
3460
|
-
if (l &&
|
|
3461
|
-
var w =
|
|
3425
|
+
if (l && Zt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3426
|
+
var w = qi(l.style.slice(2));
|
|
3462
3427
|
if (s === "number") {
|
|
3463
|
-
var
|
|
3464
|
-
return
|
|
3465
|
-
val: { type:
|
|
3428
|
+
var c = this.parseNumberSkeletonFromString(w, l.styleLocation);
|
|
3429
|
+
return c.err ? c : {
|
|
3430
|
+
val: { type: O.number, value: n, location: b, style: c.val },
|
|
3466
3431
|
err: null
|
|
3467
3432
|
};
|
|
3468
3433
|
} else {
|
|
3469
3434
|
if (w.length === 0)
|
|
3470
|
-
return this.error(
|
|
3471
|
-
var
|
|
3472
|
-
this.locale && (
|
|
3435
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3436
|
+
var T = w;
|
|
3437
|
+
this.locale && (T = Ui(w, this.locale));
|
|
3473
3438
|
var f = {
|
|
3474
|
-
type:
|
|
3475
|
-
pattern:
|
|
3439
|
+
type: fe.dateTime,
|
|
3440
|
+
pattern: T,
|
|
3476
3441
|
location: l.styleLocation,
|
|
3477
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3478
|
-
}, B = s === "date" ?
|
|
3442
|
+
parsedOptions: this.shouldParseSkeletons ? Li(T) : {}
|
|
3443
|
+
}, B = s === "date" ? O.date : O.time;
|
|
3479
3444
|
return {
|
|
3480
3445
|
val: { type: B, value: n, location: b, style: f },
|
|
3481
3446
|
err: null
|
|
@@ -3484,7 +3449,7 @@ var ro = (
|
|
|
3484
3449
|
}
|
|
3485
3450
|
return {
|
|
3486
3451
|
val: {
|
|
3487
|
-
type: s === "number" ?
|
|
3452
|
+
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3488
3453
|
value: n,
|
|
3489
3454
|
location: b,
|
|
3490
3455
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3495,52 +3460,52 @@ var ro = (
|
|
|
3495
3460
|
case "plural":
|
|
3496
3461
|
case "selectordinal":
|
|
3497
3462
|
case "select": {
|
|
3498
|
-
var
|
|
3463
|
+
var L = this.clonePosition();
|
|
3499
3464
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3500
|
-
return this.error(
|
|
3465
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, E(L, S({}, L)));
|
|
3501
3466
|
this.bumpSpace();
|
|
3502
3467
|
var G = this.parseIdentifierIfPossible(), C = 0;
|
|
3503
3468
|
if (s !== "select" && G.value === "offset") {
|
|
3504
3469
|
if (!this.bumpIf(":"))
|
|
3505
|
-
return this.error(
|
|
3470
|
+
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3506
3471
|
this.bumpSpace();
|
|
3507
|
-
var
|
|
3508
|
-
if (
|
|
3509
|
-
return
|
|
3510
|
-
this.bumpSpace(), G = this.parseIdentifierIfPossible(), C =
|
|
3472
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3473
|
+
if (c.err)
|
|
3474
|
+
return c;
|
|
3475
|
+
this.bumpSpace(), G = this.parseIdentifierIfPossible(), C = c.val;
|
|
3511
3476
|
}
|
|
3512
3477
|
var X = this.tryParsePluralOrSelectOptions(t, s, r, G);
|
|
3513
3478
|
if (X.err)
|
|
3514
3479
|
return X;
|
|
3515
|
-
var
|
|
3516
|
-
if (
|
|
3517
|
-
return
|
|
3518
|
-
var
|
|
3480
|
+
var p = this.tryParseArgumentClose(i);
|
|
3481
|
+
if (p.err)
|
|
3482
|
+
return p;
|
|
3483
|
+
var z = E(i, this.clonePosition());
|
|
3519
3484
|
return s === "select" ? {
|
|
3520
3485
|
val: {
|
|
3521
|
-
type:
|
|
3486
|
+
type: O.select,
|
|
3522
3487
|
value: n,
|
|
3523
|
-
options:
|
|
3524
|
-
location:
|
|
3488
|
+
options: Qt(X.val),
|
|
3489
|
+
location: z
|
|
3525
3490
|
},
|
|
3526
3491
|
err: null
|
|
3527
3492
|
} : {
|
|
3528
3493
|
val: {
|
|
3529
|
-
type:
|
|
3494
|
+
type: O.plural,
|
|
3530
3495
|
value: n,
|
|
3531
|
-
options:
|
|
3496
|
+
options: Qt(X.val),
|
|
3532
3497
|
offset: C,
|
|
3533
3498
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3534
|
-
location:
|
|
3499
|
+
location: z
|
|
3535
3500
|
},
|
|
3536
3501
|
err: null
|
|
3537
3502
|
};
|
|
3538
3503
|
}
|
|
3539
3504
|
default:
|
|
3540
|
-
return this.error(
|
|
3505
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, E(a, u));
|
|
3541
3506
|
}
|
|
3542
3507
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3543
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3508
|
+
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3544
3509
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3545
3510
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3546
3511
|
var n = this.char();
|
|
@@ -3549,7 +3514,7 @@ var ro = (
|
|
|
3549
3514
|
this.bump();
|
|
3550
3515
|
var i = this.clonePosition();
|
|
3551
3516
|
if (!this.bumpUntil("'"))
|
|
3552
|
-
return this.error(
|
|
3517
|
+
return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3553
3518
|
this.bump();
|
|
3554
3519
|
break;
|
|
3555
3520
|
}
|
|
@@ -3579,52 +3544,52 @@ var ro = (
|
|
|
3579
3544
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3580
3545
|
var n = [];
|
|
3581
3546
|
try {
|
|
3582
|
-
n =
|
|
3547
|
+
n = Bi(t);
|
|
3583
3548
|
} catch (i) {
|
|
3584
|
-
return this.error(
|
|
3549
|
+
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3585
3550
|
}
|
|
3586
3551
|
return {
|
|
3587
3552
|
val: {
|
|
3588
|
-
type:
|
|
3553
|
+
type: fe.number,
|
|
3589
3554
|
tokens: n,
|
|
3590
3555
|
location: r,
|
|
3591
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3556
|
+
parsedOptions: this.shouldParseSkeletons ? Ri(n) : {}
|
|
3592
3557
|
},
|
|
3593
3558
|
err: null
|
|
3594
3559
|
};
|
|
3595
3560
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3596
|
-
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value,
|
|
3561
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3597
3562
|
if (l.length === 0) {
|
|
3598
|
-
var
|
|
3563
|
+
var c = this.clonePosition();
|
|
3599
3564
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3600
|
-
var f = this.tryParseDecimalInteger(
|
|
3565
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3601
3566
|
if (f.err)
|
|
3602
3567
|
return f;
|
|
3603
|
-
|
|
3568
|
+
h = E(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3604
3569
|
} else
|
|
3605
3570
|
break;
|
|
3606
3571
|
}
|
|
3607
3572
|
if (u.has(l))
|
|
3608
|
-
return this.error(r === "select" ?
|
|
3573
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3609
3574
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3610
|
-
var
|
|
3575
|
+
var m = this.clonePosition();
|
|
3611
3576
|
if (!this.bumpIf("{"))
|
|
3612
|
-
return this.error(r === "select" ?
|
|
3613
|
-
var
|
|
3614
|
-
if (
|
|
3615
|
-
return
|
|
3616
|
-
var b = this.tryParseArgumentClose(
|
|
3577
|
+
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3578
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3579
|
+
if (p.err)
|
|
3580
|
+
return p;
|
|
3581
|
+
var b = this.tryParseArgumentClose(m);
|
|
3617
3582
|
if (b.err)
|
|
3618
3583
|
return b;
|
|
3619
3584
|
s.push([
|
|
3620
3585
|
l,
|
|
3621
3586
|
{
|
|
3622
|
-
value:
|
|
3623
|
-
location: E(
|
|
3587
|
+
value: p.val,
|
|
3588
|
+
location: E(m, this.clonePosition())
|
|
3624
3589
|
}
|
|
3625
|
-
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value,
|
|
3590
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3626
3591
|
}
|
|
3627
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3592
|
+
return s.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(v.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3628
3593
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3629
3594
|
var n = 1, i = this.clonePosition();
|
|
3630
3595
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3636,7 +3601,7 @@ var ro = (
|
|
|
3636
3601
|
break;
|
|
3637
3602
|
}
|
|
3638
3603
|
var u = E(i, this.clonePosition());
|
|
3639
|
-
return o ? (a *= n,
|
|
3604
|
+
return o ? (a *= n, Zi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3640
3605
|
}, e.prototype.offset = function() {
|
|
3641
3606
|
return this.position.offset;
|
|
3642
3607
|
}, e.prototype.isEOF = function() {
|
|
@@ -3651,7 +3616,7 @@ var ro = (
|
|
|
3651
3616
|
var t = this.position.offset;
|
|
3652
3617
|
if (t >= this.message.length)
|
|
3653
3618
|
throw Error("out of bound");
|
|
3654
|
-
var r =
|
|
3619
|
+
var r = jr(this.message, t);
|
|
3655
3620
|
if (r === void 0)
|
|
3656
3621
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3657
3622
|
return r;
|
|
@@ -3670,7 +3635,7 @@ var ro = (
|
|
|
3670
3635
|
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);
|
|
3671
3636
|
}
|
|
3672
3637
|
}, e.prototype.bumpIf = function(t) {
|
|
3673
|
-
if (
|
|
3638
|
+
if (Zt(this.message, t, this.offset())) {
|
|
3674
3639
|
for (var r = 0; r < t.length; r++)
|
|
3675
3640
|
this.bump();
|
|
3676
3641
|
return !0;
|
|
@@ -3692,7 +3657,7 @@ var ro = (
|
|
|
3692
3657
|
break;
|
|
3693
3658
|
}
|
|
3694
3659
|
}, e.prototype.bumpSpace = function() {
|
|
3695
|
-
for (; !this.isEOF() &&
|
|
3660
|
+
for (; !this.isEOF() && Vr(this.char()); )
|
|
3696
3661
|
this.bump();
|
|
3697
3662
|
}, e.prototype.peek = function() {
|
|
3698
3663
|
if (this.isEOF())
|
|
@@ -3702,47 +3667,47 @@ var ro = (
|
|
|
3702
3667
|
}, e;
|
|
3703
3668
|
}()
|
|
3704
3669
|
);
|
|
3705
|
-
function
|
|
3670
|
+
function ct(e) {
|
|
3706
3671
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3707
3672
|
}
|
|
3708
|
-
function
|
|
3709
|
-
return
|
|
3673
|
+
function Ki(e) {
|
|
3674
|
+
return ct(e) || e === 47;
|
|
3710
3675
|
}
|
|
3711
|
-
function
|
|
3676
|
+
function eo(e) {
|
|
3712
3677
|
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;
|
|
3713
3678
|
}
|
|
3714
|
-
function
|
|
3679
|
+
function Vr(e) {
|
|
3715
3680
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3716
3681
|
}
|
|
3717
|
-
function
|
|
3682
|
+
function to(e) {
|
|
3718
3683
|
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;
|
|
3719
3684
|
}
|
|
3720
|
-
function
|
|
3685
|
+
function ft(e) {
|
|
3721
3686
|
e.forEach(function(t) {
|
|
3722
|
-
if (delete t.location,
|
|
3687
|
+
if (delete t.location, Nr(t) || Rr(t))
|
|
3723
3688
|
for (var r in t.options)
|
|
3724
|
-
delete t.options[r].location,
|
|
3689
|
+
delete t.options[r].location, ft(t.options[r].value);
|
|
3725
3690
|
else
|
|
3726
|
-
|
|
3691
|
+
Br(t) && Fr(t.style) || (Ir(t) || Cr(t)) && st(t.style) ? delete t.style.location : Ur(t) && ft(t.children);
|
|
3727
3692
|
});
|
|
3728
3693
|
}
|
|
3729
|
-
function
|
|
3730
|
-
t === void 0 && (t = {}), t =
|
|
3731
|
-
var r = new
|
|
3694
|
+
function ro(e, t) {
|
|
3695
|
+
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3696
|
+
var r = new Yi(e, t).parse();
|
|
3732
3697
|
if (r.err) {
|
|
3733
|
-
var n = SyntaxError(
|
|
3698
|
+
var n = SyntaxError(v[r.err.kind]);
|
|
3734
3699
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3735
3700
|
}
|
|
3736
|
-
return t != null && t.captureLocation ||
|
|
3701
|
+
return t != null && t.captureLocation || ft(r.val), r.val;
|
|
3737
3702
|
}
|
|
3738
|
-
var
|
|
3703
|
+
var de;
|
|
3739
3704
|
(function(e) {
|
|
3740
3705
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3741
|
-
})(
|
|
3742
|
-
var
|
|
3706
|
+
})(de || (de = {}));
|
|
3707
|
+
var $e = (
|
|
3743
3708
|
/** @class */
|
|
3744
3709
|
function(e) {
|
|
3745
|
-
|
|
3710
|
+
J(t, e);
|
|
3746
3711
|
function t(r, n, i) {
|
|
3747
3712
|
var o = e.call(this, r) || this;
|
|
3748
3713
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3751,48 +3716,48 @@ var We = (
|
|
|
3751
3716
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3752
3717
|
}, t;
|
|
3753
3718
|
}(Error)
|
|
3754
|
-
),
|
|
3719
|
+
), Jt = (
|
|
3755
3720
|
/** @class */
|
|
3756
3721
|
function(e) {
|
|
3757
|
-
|
|
3722
|
+
J(t, e);
|
|
3758
3723
|
function t(r, n, i, o) {
|
|
3759
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3724
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), de.INVALID_VALUE, o) || this;
|
|
3760
3725
|
}
|
|
3761
3726
|
return t;
|
|
3762
|
-
}(
|
|
3763
|
-
),
|
|
3727
|
+
}($e)
|
|
3728
|
+
), no = (
|
|
3764
3729
|
/** @class */
|
|
3765
3730
|
function(e) {
|
|
3766
|
-
|
|
3731
|
+
J(t, e);
|
|
3767
3732
|
function t(r, n, i) {
|
|
3768
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3733
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), de.INVALID_VALUE, i) || this;
|
|
3769
3734
|
}
|
|
3770
3735
|
return t;
|
|
3771
|
-
}(
|
|
3772
|
-
),
|
|
3736
|
+
}($e)
|
|
3737
|
+
), io = (
|
|
3773
3738
|
/** @class */
|
|
3774
3739
|
function(e) {
|
|
3775
|
-
|
|
3740
|
+
J(t, e);
|
|
3776
3741
|
function t(r, n) {
|
|
3777
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3742
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), de.MISSING_VALUE, n) || this;
|
|
3778
3743
|
}
|
|
3779
3744
|
return t;
|
|
3780
|
-
}(
|
|
3745
|
+
}($e)
|
|
3781
3746
|
), k;
|
|
3782
3747
|
(function(e) {
|
|
3783
3748
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3784
3749
|
})(k || (k = {}));
|
|
3785
|
-
function
|
|
3750
|
+
function oo(e) {
|
|
3786
3751
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3787
3752
|
var n = t[t.length - 1];
|
|
3788
3753
|
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3789
3754
|
}, []);
|
|
3790
3755
|
}
|
|
3791
|
-
function
|
|
3756
|
+
function ao(e) {
|
|
3792
3757
|
return typeof e == "function";
|
|
3793
3758
|
}
|
|
3794
3759
|
function Ce(e, t, r, n, i, o, a) {
|
|
3795
|
-
if (e.length === 1 &&
|
|
3760
|
+
if (e.length === 1 && Wt(e[0]))
|
|
3796
3761
|
return [
|
|
3797
3762
|
{
|
|
3798
3763
|
type: k.literal,
|
|
@@ -3800,61 +3765,61 @@ function Ce(e, t, r, n, i, o, a) {
|
|
|
3800
3765
|
}
|
|
3801
3766
|
];
|
|
3802
3767
|
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3803
|
-
var
|
|
3804
|
-
if (
|
|
3768
|
+
var h = l[u];
|
|
3769
|
+
if (Wt(h)) {
|
|
3805
3770
|
s.push({
|
|
3806
3771
|
type: k.literal,
|
|
3807
|
-
value:
|
|
3772
|
+
value: h.value
|
|
3808
3773
|
});
|
|
3809
3774
|
continue;
|
|
3810
3775
|
}
|
|
3811
|
-
if (
|
|
3776
|
+
if (Mi(h)) {
|
|
3812
3777
|
typeof o == "number" && s.push({
|
|
3813
3778
|
type: k.literal,
|
|
3814
3779
|
value: r.getNumberFormat(t).format(o)
|
|
3815
3780
|
});
|
|
3816
3781
|
continue;
|
|
3817
3782
|
}
|
|
3818
|
-
var
|
|
3819
|
-
if (!(i &&
|
|
3820
|
-
throw new
|
|
3821
|
-
var f = i[
|
|
3822
|
-
if (
|
|
3783
|
+
var c = h.value;
|
|
3784
|
+
if (!(i && c in i))
|
|
3785
|
+
throw new io(c, a);
|
|
3786
|
+
var f = i[c];
|
|
3787
|
+
if (Oi(h)) {
|
|
3823
3788
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3824
3789
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3825
3790
|
value: f
|
|
3826
3791
|
});
|
|
3827
3792
|
continue;
|
|
3828
3793
|
}
|
|
3829
|
-
if (
|
|
3830
|
-
var
|
|
3794
|
+
if (Ir(h)) {
|
|
3795
|
+
var m = typeof h.style == "string" ? n.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
|
|
3831
3796
|
s.push({
|
|
3832
3797
|
type: k.literal,
|
|
3833
|
-
value: r.getDateTimeFormat(t,
|
|
3798
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3834
3799
|
});
|
|
3835
3800
|
continue;
|
|
3836
3801
|
}
|
|
3837
|
-
if (
|
|
3838
|
-
var
|
|
3802
|
+
if (Cr(h)) {
|
|
3803
|
+
var m = typeof h.style == "string" ? n.time[h.style] : st(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3839
3804
|
s.push({
|
|
3840
3805
|
type: k.literal,
|
|
3841
|
-
value: r.getDateTimeFormat(t,
|
|
3806
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3842
3807
|
});
|
|
3843
3808
|
continue;
|
|
3844
3809
|
}
|
|
3845
|
-
if (
|
|
3846
|
-
var
|
|
3847
|
-
|
|
3810
|
+
if (Br(h)) {
|
|
3811
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Fr(h.style) ? h.style.parsedOptions : void 0;
|
|
3812
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3848
3813
|
type: k.literal,
|
|
3849
|
-
value: r.getNumberFormat(t,
|
|
3814
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3850
3815
|
});
|
|
3851
3816
|
continue;
|
|
3852
3817
|
}
|
|
3853
|
-
if (
|
|
3854
|
-
var
|
|
3855
|
-
if (!
|
|
3856
|
-
throw new
|
|
3857
|
-
var
|
|
3818
|
+
if (Ur(h)) {
|
|
3819
|
+
var p = h.children, b = h.value, w = i[b];
|
|
3820
|
+
if (!ao(w))
|
|
3821
|
+
throw new no(b, "function", a);
|
|
3822
|
+
var T = Ce(p, t, r, n, i, o), B = w(T.map(function(C) {
|
|
3858
3823
|
return C.value;
|
|
3859
3824
|
}));
|
|
3860
3825
|
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(C) {
|
|
@@ -3864,42 +3829,42 @@ function Ce(e, t, r, n, i, o, a) {
|
|
|
3864
3829
|
};
|
|
3865
3830
|
}));
|
|
3866
3831
|
}
|
|
3867
|
-
if (
|
|
3868
|
-
var
|
|
3869
|
-
if (!
|
|
3870
|
-
throw new
|
|
3871
|
-
s.push.apply(s, Ce(
|
|
3832
|
+
if (Nr(h)) {
|
|
3833
|
+
var L = h.options[f] || h.options.other;
|
|
3834
|
+
if (!L)
|
|
3835
|
+
throw new Jt(h.value, f, Object.keys(h.options), a);
|
|
3836
|
+
s.push.apply(s, Ce(L.value, t, r, n, i));
|
|
3872
3837
|
continue;
|
|
3873
3838
|
}
|
|
3874
|
-
if (
|
|
3875
|
-
var
|
|
3876
|
-
if (!
|
|
3839
|
+
if (Rr(h)) {
|
|
3840
|
+
var L = h.options["=".concat(f)];
|
|
3841
|
+
if (!L) {
|
|
3877
3842
|
if (!Intl.PluralRules)
|
|
3878
|
-
throw new
|
|
3843
|
+
throw new $e(`Intl.PluralRules is not available in this environment.
|
|
3879
3844
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3880
|
-
`,
|
|
3881
|
-
var G = r.getPluralRules(t, { type:
|
|
3882
|
-
|
|
3845
|
+
`, de.MISSING_INTL_API, a);
|
|
3846
|
+
var G = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3847
|
+
L = h.options[G] || h.options.other;
|
|
3883
3848
|
}
|
|
3884
|
-
if (!
|
|
3885
|
-
throw new
|
|
3886
|
-
s.push.apply(s, Ce(
|
|
3849
|
+
if (!L)
|
|
3850
|
+
throw new Jt(h.value, f, Object.keys(h.options), a);
|
|
3851
|
+
s.push.apply(s, Ce(L.value, t, r, n, i, f - (h.offset || 0)));
|
|
3887
3852
|
continue;
|
|
3888
3853
|
}
|
|
3889
3854
|
}
|
|
3890
|
-
return
|
|
3855
|
+
return oo(s);
|
|
3891
3856
|
}
|
|
3892
|
-
function
|
|
3893
|
-
return t ?
|
|
3894
|
-
return r[n] =
|
|
3857
|
+
function so(e, t) {
|
|
3858
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3859
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3895
3860
|
}, {})) : e;
|
|
3896
3861
|
}
|
|
3897
|
-
function
|
|
3862
|
+
function uo(e, t) {
|
|
3898
3863
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3899
|
-
return r[n] =
|
|
3900
|
-
},
|
|
3864
|
+
return r[n] = so(e[n], t[n]), r;
|
|
3865
|
+
}, S({}, e)) : e;
|
|
3901
3866
|
}
|
|
3902
|
-
function
|
|
3867
|
+
function Ke(e) {
|
|
3903
3868
|
return {
|
|
3904
3869
|
create: function() {
|
|
3905
3870
|
return {
|
|
@@ -3913,39 +3878,39 @@ function rt(e) {
|
|
|
3913
3878
|
}
|
|
3914
3879
|
};
|
|
3915
3880
|
}
|
|
3916
|
-
function
|
|
3881
|
+
function lo(e) {
|
|
3917
3882
|
return e === void 0 && (e = {
|
|
3918
3883
|
number: {},
|
|
3919
3884
|
dateTime: {},
|
|
3920
3885
|
pluralRules: {}
|
|
3921
3886
|
}), {
|
|
3922
|
-
getNumberFormat:
|
|
3887
|
+
getNumberFormat: qe(function() {
|
|
3923
3888
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3924
3889
|
r[n] = arguments[n];
|
|
3925
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3890
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3926
3891
|
}, {
|
|
3927
|
-
cache:
|
|
3928
|
-
strategy:
|
|
3892
|
+
cache: Ke(e.number),
|
|
3893
|
+
strategy: Je.variadic
|
|
3929
3894
|
}),
|
|
3930
|
-
getDateTimeFormat:
|
|
3895
|
+
getDateTimeFormat: qe(function() {
|
|
3931
3896
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3932
3897
|
r[n] = arguments[n];
|
|
3933
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3898
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3934
3899
|
}, {
|
|
3935
|
-
cache:
|
|
3936
|
-
strategy:
|
|
3900
|
+
cache: Ke(e.dateTime),
|
|
3901
|
+
strategy: Je.variadic
|
|
3937
3902
|
}),
|
|
3938
|
-
getPluralRules:
|
|
3903
|
+
getPluralRules: qe(function() {
|
|
3939
3904
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3940
3905
|
r[n] = arguments[n];
|
|
3941
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3906
|
+
return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
|
|
3942
3907
|
}, {
|
|
3943
|
-
cache:
|
|
3944
|
-
strategy:
|
|
3908
|
+
cache: Ke(e.pluralRules),
|
|
3909
|
+
strategy: Je.variadic
|
|
3945
3910
|
})
|
|
3946
3911
|
};
|
|
3947
3912
|
}
|
|
3948
|
-
var
|
|
3913
|
+
var ho = (
|
|
3949
3914
|
/** @class */
|
|
3950
3915
|
function() {
|
|
3951
3916
|
function e(t, r, n, i) {
|
|
@@ -3959,10 +3924,10 @@ var go = (
|
|
|
3959
3924
|
var l = o.formatToParts(u);
|
|
3960
3925
|
if (l.length === 1)
|
|
3961
3926
|
return l[0].value;
|
|
3962
|
-
var
|
|
3963
|
-
return !
|
|
3927
|
+
var h = l.reduce(function(c, f) {
|
|
3928
|
+
return !c.length || f.type !== k.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3964
3929
|
}, []);
|
|
3965
|
-
return
|
|
3930
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3966
3931
|
}, this.formatToParts = function(u) {
|
|
3967
3932
|
return Ce(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3968
3933
|
}, this.resolvedOptions = function() {
|
|
@@ -3977,13 +3942,13 @@ var go = (
|
|
|
3977
3942
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3978
3943
|
var a = i || {};
|
|
3979
3944
|
a.formatters;
|
|
3980
|
-
var s =
|
|
3981
|
-
this.ast = e.__parse(t,
|
|
3945
|
+
var s = $n(a, ["formatters"]);
|
|
3946
|
+
this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
|
|
3982
3947
|
} else
|
|
3983
3948
|
this.ast = t;
|
|
3984
3949
|
if (!Array.isArray(this.ast))
|
|
3985
3950
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3986
|
-
this.formats =
|
|
3951
|
+
this.formats = uo(e.formats, n), this.formatters = i && i.formatters || lo(this.formatterCache);
|
|
3987
3952
|
}
|
|
3988
3953
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3989
3954
|
get: function() {
|
|
@@ -3996,7 +3961,7 @@ var go = (
|
|
|
3996
3961
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3997
3962
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3998
3963
|
}
|
|
3999
|
-
}, e.__parse =
|
|
3964
|
+
}, e.__parse = ro, e.formats = {
|
|
4000
3965
|
number: {
|
|
4001
3966
|
integer: {
|
|
4002
3967
|
maximumFractionDigits: 0
|
|
@@ -4057,7 +4022,7 @@ var go = (
|
|
|
4057
4022
|
}, e;
|
|
4058
4023
|
}()
|
|
4059
4024
|
);
|
|
4060
|
-
function
|
|
4025
|
+
function co(e, t) {
|
|
4061
4026
|
if (t == null)
|
|
4062
4027
|
return;
|
|
4063
4028
|
if (t in e)
|
|
@@ -4078,92 +4043,92 @@ function mo(e, t) {
|
|
|
4078
4043
|
n = void 0;
|
|
4079
4044
|
return n;
|
|
4080
4045
|
}
|
|
4081
|
-
const K = {},
|
|
4046
|
+
const K = {}, fo = (e, t, r) => r && (t in K || (K[t] = {}), e in K[t] || (K[t][e] = r), r), Xr = (e, t) => {
|
|
4082
4047
|
if (t == null)
|
|
4083
4048
|
return;
|
|
4084
4049
|
if (t in K && e in K[t])
|
|
4085
4050
|
return K[t][e];
|
|
4086
|
-
const r =
|
|
4051
|
+
const r = je(t);
|
|
4087
4052
|
for (let n = 0; n < r.length; n++) {
|
|
4088
|
-
const i = r[n], o =
|
|
4053
|
+
const i = r[n], o = go(i, e);
|
|
4089
4054
|
if (o)
|
|
4090
|
-
return
|
|
4055
|
+
return fo(e, t, o);
|
|
4091
4056
|
}
|
|
4092
4057
|
};
|
|
4093
|
-
let
|
|
4094
|
-
const Te =
|
|
4095
|
-
function
|
|
4096
|
-
return
|
|
4058
|
+
let bt;
|
|
4059
|
+
const Te = Ge({});
|
|
4060
|
+
function mo(e) {
|
|
4061
|
+
return bt[e] || null;
|
|
4097
4062
|
}
|
|
4098
|
-
function
|
|
4099
|
-
return e in
|
|
4063
|
+
function zr(e) {
|
|
4064
|
+
return e in bt;
|
|
4100
4065
|
}
|
|
4101
|
-
function
|
|
4102
|
-
if (!
|
|
4066
|
+
function go(e, t) {
|
|
4067
|
+
if (!zr(e))
|
|
4103
4068
|
return null;
|
|
4104
|
-
const r =
|
|
4105
|
-
return
|
|
4069
|
+
const r = mo(e);
|
|
4070
|
+
return co(r, t);
|
|
4106
4071
|
}
|
|
4107
|
-
function
|
|
4072
|
+
function po(e) {
|
|
4108
4073
|
if (e == null)
|
|
4109
4074
|
return;
|
|
4110
|
-
const t =
|
|
4075
|
+
const t = je(e);
|
|
4111
4076
|
for (let r = 0; r < t.length; r++) {
|
|
4112
4077
|
const n = t[r];
|
|
4113
|
-
if (
|
|
4078
|
+
if (zr(n))
|
|
4114
4079
|
return n;
|
|
4115
4080
|
}
|
|
4116
4081
|
}
|
|
4117
|
-
function
|
|
4118
|
-
delete K[e], Te.update((r) => (r[e] =
|
|
4082
|
+
function Zr(e, ...t) {
|
|
4083
|
+
delete K[e], Te.update((r) => (r[e] = _i.all([r[e] || {}, ...t]), r));
|
|
4119
4084
|
}
|
|
4120
|
-
|
|
4085
|
+
be(
|
|
4121
4086
|
[Te],
|
|
4122
4087
|
([e]) => Object.keys(e)
|
|
4123
4088
|
);
|
|
4124
|
-
Te.subscribe((e) =>
|
|
4089
|
+
Te.subscribe((e) => bt = e);
|
|
4125
4090
|
const Ne = {};
|
|
4126
|
-
function
|
|
4091
|
+
function bo(e, t) {
|
|
4127
4092
|
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
|
4128
4093
|
}
|
|
4129
|
-
function
|
|
4094
|
+
function Qr(e) {
|
|
4130
4095
|
return Ne[e];
|
|
4131
4096
|
}
|
|
4132
|
-
function
|
|
4133
|
-
return
|
|
4134
|
-
const r =
|
|
4097
|
+
function yo(e) {
|
|
4098
|
+
return je(e).map((t) => {
|
|
4099
|
+
const r = Qr(t);
|
|
4135
4100
|
return [t, r ? [...r] : []];
|
|
4136
4101
|
}).filter(([, t]) => t.length > 0);
|
|
4137
4102
|
}
|
|
4138
|
-
function
|
|
4139
|
-
return e == null ? !1 :
|
|
4103
|
+
function dt(e) {
|
|
4104
|
+
return e == null ? !1 : je(e).some(
|
|
4140
4105
|
(t) => {
|
|
4141
4106
|
var r;
|
|
4142
|
-
return (r =
|
|
4107
|
+
return (r = Qr(t)) == null ? void 0 : r.size;
|
|
4143
4108
|
}
|
|
4144
4109
|
);
|
|
4145
4110
|
}
|
|
4146
|
-
function
|
|
4111
|
+
function _o(e, t) {
|
|
4147
4112
|
return Promise.all(
|
|
4148
|
-
t.map((n) => (
|
|
4149
|
-
).then((n) =>
|
|
4113
|
+
t.map((n) => (bo(e, n), n().then((i) => i.default || i)))
|
|
4114
|
+
).then((n) => Zr(e, ...n));
|
|
4150
4115
|
}
|
|
4151
4116
|
const ve = {};
|
|
4152
|
-
function
|
|
4153
|
-
if (!
|
|
4117
|
+
function qr(e) {
|
|
4118
|
+
if (!dt(e))
|
|
4154
4119
|
return e in ve ? ve[e] : Promise.resolve();
|
|
4155
|
-
const t =
|
|
4120
|
+
const t = yo(e);
|
|
4156
4121
|
return ve[e] = Promise.all(
|
|
4157
4122
|
t.map(
|
|
4158
|
-
([r, n]) =>
|
|
4123
|
+
([r, n]) => _o(r, n)
|
|
4159
4124
|
)
|
|
4160
4125
|
).then(() => {
|
|
4161
|
-
if (
|
|
4162
|
-
return
|
|
4126
|
+
if (dt(e))
|
|
4127
|
+
return qr(e);
|
|
4163
4128
|
delete ve[e];
|
|
4164
4129
|
}), ve[e];
|
|
4165
4130
|
}
|
|
4166
|
-
const
|
|
4131
|
+
const vo = {
|
|
4167
4132
|
number: {
|
|
4168
4133
|
scientific: { notation: "scientific" },
|
|
4169
4134
|
engineering: { notation: "engineering" },
|
|
@@ -4192,135 +4157,135 @@ const So = {
|
|
|
4192
4157
|
timeZoneName: "short"
|
|
4193
4158
|
}
|
|
4194
4159
|
}
|
|
4195
|
-
},
|
|
4160
|
+
}, xo = {
|
|
4196
4161
|
fallbackLocale: null,
|
|
4197
4162
|
loadingDelay: 200,
|
|
4198
|
-
formats:
|
|
4163
|
+
formats: vo,
|
|
4199
4164
|
warnOnMissingMessages: !0,
|
|
4200
4165
|
handleMissingMessage: void 0,
|
|
4201
4166
|
ignoreTag: !0
|
|
4202
|
-
},
|
|
4203
|
-
function
|
|
4204
|
-
return
|
|
4205
|
-
}
|
|
4206
|
-
const
|
|
4207
|
-
var
|
|
4208
|
-
for (var r in t
|
|
4209
|
-
|
|
4210
|
-
if (
|
|
4211
|
-
for (var r of
|
|
4212
|
-
|
|
4167
|
+
}, Eo = xo;
|
|
4168
|
+
function me() {
|
|
4169
|
+
return Eo;
|
|
4170
|
+
}
|
|
4171
|
+
const et = Ge(!1);
|
|
4172
|
+
var wo = Object.defineProperty, So = Object.defineProperties, Ho = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, To = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, Kt = (e, t, r) => t in e ? wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mo = (e, t) => {
|
|
4173
|
+
for (var r in t)
|
|
4174
|
+
To.call(t, r) && Kt(e, r, t[r]);
|
|
4175
|
+
if (Yt)
|
|
4176
|
+
for (var r of Yt(t))
|
|
4177
|
+
Oo.call(t, r) && Kt(e, r, t[r]);
|
|
4213
4178
|
return e;
|
|
4214
|
-
},
|
|
4215
|
-
let
|
|
4216
|
-
const
|
|
4217
|
-
function
|
|
4179
|
+
}, Ao = (e, t) => So(e, Ho(t));
|
|
4180
|
+
let mt;
|
|
4181
|
+
const Fe = Ge(null);
|
|
4182
|
+
function er(e) {
|
|
4218
4183
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4219
4184
|
}
|
|
4220
|
-
function
|
|
4221
|
-
const r =
|
|
4222
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4185
|
+
function je(e, t = me().fallbackLocale) {
|
|
4186
|
+
const r = er(e);
|
|
4187
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...er(t)])] : r;
|
|
4223
4188
|
}
|
|
4224
4189
|
function ne() {
|
|
4225
|
-
return
|
|
4190
|
+
return mt != null ? mt : void 0;
|
|
4226
4191
|
}
|
|
4227
|
-
|
|
4228
|
-
|
|
4192
|
+
Fe.subscribe((e) => {
|
|
4193
|
+
mt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4229
4194
|
});
|
|
4230
|
-
const
|
|
4231
|
-
if (e &&
|
|
4232
|
-
const { loadingDelay: t } =
|
|
4195
|
+
const Lo = (e) => {
|
|
4196
|
+
if (e && po(e) && dt(e)) {
|
|
4197
|
+
const { loadingDelay: t } = me();
|
|
4233
4198
|
let r;
|
|
4234
4199
|
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
|
4235
|
-
() =>
|
|
4200
|
+
() => et.set(!0),
|
|
4236
4201
|
t
|
|
4237
|
-
) :
|
|
4238
|
-
|
|
4202
|
+
) : et.set(!0), qr(e).then(() => {
|
|
4203
|
+
Fe.set(e);
|
|
4239
4204
|
}).finally(() => {
|
|
4240
|
-
clearTimeout(r),
|
|
4205
|
+
clearTimeout(r), et.set(!1);
|
|
4241
4206
|
});
|
|
4242
4207
|
}
|
|
4243
|
-
return
|
|
4244
|
-
},
|
|
4245
|
-
set:
|
|
4246
|
-
}),
|
|
4208
|
+
return Fe.set(e);
|
|
4209
|
+
}, ye = Ao(Mo({}, Fe), {
|
|
4210
|
+
set: Lo
|
|
4211
|
+
}), We = (e) => {
|
|
4247
4212
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4248
4213
|
return (n) => {
|
|
4249
4214
|
const i = JSON.stringify(n);
|
|
4250
4215
|
return i in t ? t[i] : t[i] = e(n);
|
|
4251
4216
|
};
|
|
4252
4217
|
};
|
|
4253
|
-
var
|
|
4218
|
+
var Po = Object.defineProperty, De = Object.getOwnPropertySymbols, Jr = Object.prototype.hasOwnProperty, Yr = Object.prototype.propertyIsEnumerable, tr = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
4254
4219
|
for (var r in t || (t = {}))
|
|
4255
|
-
|
|
4256
|
-
if (
|
|
4257
|
-
for (var r of
|
|
4258
|
-
|
|
4220
|
+
Jr.call(t, r) && tr(e, r, t[r]);
|
|
4221
|
+
if (De)
|
|
4222
|
+
for (var r of De(t))
|
|
4223
|
+
Yr.call(t, r) && tr(e, r, t[r]);
|
|
4259
4224
|
return e;
|
|
4260
|
-
},
|
|
4225
|
+
}, _e = (e, t) => {
|
|
4261
4226
|
var r = {};
|
|
4262
4227
|
for (var n in e)
|
|
4263
|
-
|
|
4264
|
-
if (e != null &&
|
|
4265
|
-
for (var n of
|
|
4266
|
-
t.indexOf(n) < 0 &&
|
|
4228
|
+
Jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4229
|
+
if (e != null && De)
|
|
4230
|
+
for (var n of De(e))
|
|
4231
|
+
t.indexOf(n) < 0 && Yr.call(e, n) && (r[n] = e[n]);
|
|
4267
4232
|
return r;
|
|
4268
4233
|
};
|
|
4269
|
-
const
|
|
4270
|
-
const { formats: r } =
|
|
4234
|
+
const Se = (e, t) => {
|
|
4235
|
+
const { formats: r } = me();
|
|
4271
4236
|
if (e in r && t in r[e])
|
|
4272
4237
|
return r[e][t];
|
|
4273
4238
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4274
|
-
},
|
|
4239
|
+
}, Bo = We(
|
|
4275
4240
|
(e) => {
|
|
4276
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4241
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4277
4242
|
if (r == null)
|
|
4278
4243
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4279
|
-
return n && (i =
|
|
4244
|
+
return n && (i = Se("number", n)), new Intl.NumberFormat(r, i);
|
|
4280
4245
|
}
|
|
4281
|
-
),
|
|
4246
|
+
), Io = We(
|
|
4282
4247
|
(e) => {
|
|
4283
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4248
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4284
4249
|
if (r == null)
|
|
4285
4250
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4286
|
-
return n ? i =
|
|
4251
|
+
return n ? i = Se("date", n) : Object.keys(i).length === 0 && (i = Se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4287
4252
|
}
|
|
4288
|
-
),
|
|
4253
|
+
), Co = We(
|
|
4289
4254
|
(e) => {
|
|
4290
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4255
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4291
4256
|
if (r == null)
|
|
4292
4257
|
throw new Error(
|
|
4293
4258
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4294
4259
|
);
|
|
4295
|
-
return n ? i =
|
|
4260
|
+
return n ? i = Se("time", n) : Object.keys(i).length === 0 && (i = Se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4296
4261
|
}
|
|
4297
|
-
),
|
|
4262
|
+
), No = (e = {}) => {
|
|
4298
4263
|
var t = e, {
|
|
4299
4264
|
locale: r = ne()
|
|
4300
|
-
} = t, n =
|
|
4265
|
+
} = t, n = _e(t, [
|
|
4301
4266
|
"locale"
|
|
4302
4267
|
]);
|
|
4303
|
-
return
|
|
4304
|
-
},
|
|
4268
|
+
return Bo(yt({ locale: r }, n));
|
|
4269
|
+
}, Ro = (e = {}) => {
|
|
4305
4270
|
var t = e, {
|
|
4306
4271
|
locale: r = ne()
|
|
4307
|
-
} = t, n =
|
|
4272
|
+
} = t, n = _e(t, [
|
|
4308
4273
|
"locale"
|
|
4309
4274
|
]);
|
|
4310
|
-
return
|
|
4311
|
-
},
|
|
4275
|
+
return Io(yt({ locale: r }, n));
|
|
4276
|
+
}, Uo = (e = {}) => {
|
|
4312
4277
|
var t = e, {
|
|
4313
4278
|
locale: r = ne()
|
|
4314
|
-
} = t, n =
|
|
4279
|
+
} = t, n = _e(t, [
|
|
4315
4280
|
"locale"
|
|
4316
4281
|
]);
|
|
4317
|
-
return
|
|
4318
|
-
},
|
|
4282
|
+
return Co(yt({ locale: r }, n));
|
|
4283
|
+
}, Fo = We(
|
|
4319
4284
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4320
|
-
(e, t = ne()) => new
|
|
4321
|
-
ignoreTag:
|
|
4285
|
+
(e, t = ne()) => new ho(e, t, me().formats, {
|
|
4286
|
+
ignoreTag: me().ignoreTag
|
|
4322
4287
|
})
|
|
4323
|
-
),
|
|
4288
|
+
), Do = (e, t = {}) => {
|
|
4324
4289
|
var r, n, i, o;
|
|
4325
4290
|
let a = t;
|
|
4326
4291
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4333,39 +4298,39 @@ const we = (e, t) => {
|
|
|
4333
4298
|
throw new Error(
|
|
4334
4299
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4335
4300
|
);
|
|
4336
|
-
let
|
|
4337
|
-
if (!
|
|
4338
|
-
|
|
4339
|
-
else if (typeof
|
|
4301
|
+
let h = Xr(e, u);
|
|
4302
|
+
if (!h)
|
|
4303
|
+
h = (o = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4304
|
+
else if (typeof h != "string")
|
|
4340
4305
|
return console.warn(
|
|
4341
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4342
|
-
),
|
|
4306
|
+
`[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.`
|
|
4307
|
+
), h;
|
|
4343
4308
|
if (!s)
|
|
4344
|
-
return
|
|
4345
|
-
let
|
|
4309
|
+
return h;
|
|
4310
|
+
let c = h;
|
|
4346
4311
|
try {
|
|
4347
|
-
|
|
4312
|
+
c = Fo(h, u).format(s);
|
|
4348
4313
|
} catch (f) {
|
|
4349
4314
|
f instanceof Error && console.warn(
|
|
4350
4315
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4351
4316
|
f.message
|
|
4352
4317
|
);
|
|
4353
4318
|
}
|
|
4354
|
-
return
|
|
4355
|
-
},
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
window.emWidgets = { topic:
|
|
4361
|
-
const
|
|
4362
|
-
function
|
|
4319
|
+
return c;
|
|
4320
|
+
}, ko = (e, t) => Uo(t).format(e), Go = (e, t) => Ro(t).format(e), $o = (e, t) => No(t).format(e), jo = (e, t = ne()) => Xr(e, t), Wo = be([ye, Te], () => Do);
|
|
4321
|
+
be([ye], () => ko);
|
|
4322
|
+
be([ye], () => Go);
|
|
4323
|
+
be([ye], () => $o);
|
|
4324
|
+
be([ye, Te], () => jo);
|
|
4325
|
+
window.emWidgets = { topic: ri };
|
|
4326
|
+
const Vo = (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)), Xo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4327
|
+
function zo(e, t) {
|
|
4363
4328
|
if (e) {
|
|
4364
4329
|
const r = document.createElement("style");
|
|
4365
4330
|
r.innerHTML = t, e.appendChild(r);
|
|
4366
4331
|
}
|
|
4367
4332
|
}
|
|
4368
|
-
function
|
|
4333
|
+
function Zo(e, t) {
|
|
4369
4334
|
const r = new URL(t);
|
|
4370
4335
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4371
4336
|
const i = document.createElement("style");
|
|
@@ -4374,7 +4339,7 @@ function Yo(e, t) {
|
|
|
4374
4339
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4375
4340
|
});
|
|
4376
4341
|
}
|
|
4377
|
-
function
|
|
4342
|
+
function Qo(e, t, r) {
|
|
4378
4343
|
if (window.emMessageBus) {
|
|
4379
4344
|
const n = document.createElement("style");
|
|
4380
4345
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4382,13 +4347,13 @@ function Ko(e, t, r) {
|
|
|
4382
4347
|
});
|
|
4383
4348
|
}
|
|
4384
4349
|
}
|
|
4385
|
-
function
|
|
4386
|
-
|
|
4350
|
+
function rr(e, t) {
|
|
4351
|
+
Zr(e, t);
|
|
4387
4352
|
}
|
|
4388
|
-
function
|
|
4389
|
-
|
|
4353
|
+
function qo(e) {
|
|
4354
|
+
ye.set(e);
|
|
4390
4355
|
}
|
|
4391
|
-
const
|
|
4356
|
+
const nr = {
|
|
4392
4357
|
en: {
|
|
4393
4358
|
language: "Select Language"
|
|
4394
4359
|
},
|
|
@@ -4423,65 +4388,65 @@ const sr = {
|
|
|
4423
4388
|
language: "Select Language"
|
|
4424
4389
|
}
|
|
4425
4390
|
};
|
|
4426
|
-
function
|
|
4427
|
-
|
|
4391
|
+
function Jo(e) {
|
|
4392
|
+
xn(e, "svelte-1kfw037", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%)}12%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.225) 0%, rgba(0, 61, 93, 0.225) 100%)}25%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.25) 0%, rgba(0, 61, 93, 0.25) 100%)}33%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.275) 0%, rgba(0, 61, 93, 0.275) 100%)}50%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.3) 0%, rgba(0, 61, 93, 0.3) 100%)}63%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.325) 0%, rgba(0, 61, 93, 0.325) 100%)}75%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.35) 0%, rgba(0, 61, 93, 0.35) 100%)}88%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.375) 0%, rgba(0, 61, 93, 0.375) 100%)}100%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.4) 0%, rgba(0, 61, 93, 0.4) 100%)}}@keyframes increaseTransparency{0%{opacity:0}25%{opacity:0.25}75%{opacity:0.75}100%{opacity:1}}@keyframes decreaseTransparency{100%{opacity:1}75%{opacity:0.75}25%{opacity:0.25}0%{opacity:0}}@keyframes growWidthPercent{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growWidth{from{transform:translateY(0)}to{transform:translateY(0)}}@keyframes decreaseWidth{from{transform:translateX(1)}to{transform:translateX(0)}}.NavIcon{width:30px;height:28px;position:relative;margin:3px auto;transform:rotate(0deg);transition:transform 0.2s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;transform:rotate(0deg);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;transform:rotate(135deg);transition:transform 0.3s ease-in-out}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;transform:rotate(-135deg);transition:transform 0.3s ease-in-out}.SelectedOption{display:flex;align-items:center;justify-content:center}.SelectedOption .TriangleActive,.SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transform:rotateX(0deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive svg,.SelectedOption .TriangleInactive svg{margin:-2px 0px;fill:white}.SelectedOption .TriangleActive{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive:hover{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.FlagIcon>img{width:20px;height:14px;margin-right:8px;border-radius:2px}.LanguageSelector{padding:5px 0;margin-bottom:0;display:flex;justify-content:space-between;background:linear-gradient(90deg, rgba(35, 178, 78, 0.9) 0%, rgba(0, 61, 93, 0.9) 100%);transition:transform 0.2s linear;height:44px}.LanguageSelector span{display:inline;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));opacity:0.8;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:14px}.LanguageSelector:active{transition:all 0.2s ease}.LanguageSelector:active span{transition:all 0.1s linear;opacity:1}.LanguageSelector.Open{box-shadow:inset 0 -3.25em 0 0 var(--emw--color-primary)}.LanguageSelector .LanguageSelectorTitle{margin:0 20px}.LanguageSelector .LanguageDropdown{margin-right:16px;display:inline-block}.LanguageSelector .OptionList{position:absolute;background:linear-gradient(90deg, rgba(35, 178, 78, 0.1) 0%, rgba(0, 61, 93, 0.1) 100%);min-width:180px;z-index:1;overflow-y:auto;display:flex;flex-direction:column-reverse;bottom:44px;left:0;gap:5px;padding-bottom:5px;width:100%;height:0px;transition:transform 0.2s linear}.LanguageSelector .OptionList.Open{transition:transform 0.2s linear;height:auto;background-color:var(--emw--color-background-secondary, #000000);overflow:auto}.LanguageSelector .OptionList .LanguageOption{display:flex;border:2px solid #22B04E;border-radius:13px;align-items:center;opacity:0.2;height:0px;background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%);margin:0 5px;transition:transform 0.3s linear}.LanguageSelector .OptionList .LanguageOption.Open{height:50px;opacity:1;padding:10px 5px}.LanguageSelector .OptionList .LanguageOption:active,.LanguageSelector .OptionList .LanguageOption:hover{background:linear-gradient(90deg, rgb(35, 178, 78) 0%, rgb(0, 61, 93) 100%);transform:scale(1.03);transition:transform 0.2s ease-in-out}.LanguageSelector .OptionList .LanguageOption:active span,.LanguageSelector .OptionList .LanguageOption:hover span{color:black}.ItemLanguage{height:34px;width:100%;text-align:left;line-height:34px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.HamburgerModalWindow{display:flex;align-items:flex-start;position:fixed;width:100%;height:100%;z-index:100;z-index:999999;top:0;left:0;background-color:rgba(0, 0, 0, 0.85);animation:increaseTransparency 0.2s ease-in forwards}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emw--color-primary);display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:0;border-top:0;border-radius:0;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{animation:growWidth 0.2s forwards;transform-origin:left;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer.Closing{animation:decreaseWidth 0.2s backwards;transform-origin:right;animation-fill-mode:backwards;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(13, 78, 2) 0%, rgb(35, 172, 77) 50%, rgb(13, 78, 2) 100%);z-index:3}.HamburgerModalWindow .ModalCloseBtn{position:relative;top:25px;width:30px;height:30px;opacity:1;margin-left:7px;margin-right:9px;cursor:pointer}.HamburgerModalWindow .ModalCloseBtn .NavIcon .Open{width:90vw}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));transform-origin:left;transform:scaleX(0);animation:growWidthPercent 0.2s both;animation-delay:0.1s}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:transform 150ms ease-in-out, opacity 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #000000));white-space:nowrap;overflow-x:scroll;list-style:none;width:90vw;text-transform:uppercase;font-size:11px;transition:all 0.2s;height:80px}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:125px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li:active{transform:scale(1.1)}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04F));color:black}.HamburgerModalWindow .HamburgerPrimaryMenu .Loading{width:150px;height:86px;margin:0 2px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;height:calc(100% - 124px);overflow:auto;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.Overlay{opacity:0.5;transition:opacity 0.2s ease-in-out}.HamburgerModalWindow .HamburgerSecondaryMenu li{padding:10px;display:flex;align-items:center;gap:15px;transition:transform 0.2s linear}.HamburgerModalWindow .HamburgerSecondaryMenu li:active{background-color:var(--emw--color-primary);transform:scale(1.1)}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emw--color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emw--color-primary, #22B04F)}.FlagIcon{margin-left:12px}.NoFlag{width:88%;margin:0 20px}");
|
|
4428
4393
|
}
|
|
4429
|
-
function
|
|
4394
|
+
function ir(e, t, r) {
|
|
4430
4395
|
const n = e.slice();
|
|
4431
4396
|
return n[57] = t[r], n;
|
|
4432
4397
|
}
|
|
4433
|
-
function
|
|
4398
|
+
function or(e, t, r) {
|
|
4434
4399
|
const n = e.slice();
|
|
4435
4400
|
return n[1] = t[r], n;
|
|
4436
4401
|
}
|
|
4437
|
-
function
|
|
4402
|
+
function ar(e, t, r) {
|
|
4438
4403
|
const n = e.slice();
|
|
4439
4404
|
return n[60] = t[r], n;
|
|
4440
4405
|
}
|
|
4441
|
-
function
|
|
4406
|
+
function Yo(e, t, r) {
|
|
4442
4407
|
const n = e.slice();
|
|
4443
4408
|
return n[66] = t[r], n;
|
|
4444
4409
|
}
|
|
4445
|
-
function
|
|
4410
|
+
function sr(e, t, r) {
|
|
4446
4411
|
const n = e.slice();
|
|
4447
4412
|
return n[63] = t[r], n;
|
|
4448
4413
|
}
|
|
4449
|
-
function
|
|
4450
|
-
let t, r, n, i, o, a, s, u, l,
|
|
4414
|
+
function ur(e) {
|
|
4415
|
+
let t, r, n, i, o, a, s, u, l, h, c, f, m, p, b, w, T, B, L, G, C, X, z;
|
|
4451
4416
|
function ie(x, R) {
|
|
4452
4417
|
return (
|
|
4453
4418
|
/*HamburgerMenuItems*/
|
|
4454
|
-
x[4].length > 0 ?
|
|
4419
|
+
x[4].length > 0 ? ea : Ko
|
|
4455
4420
|
);
|
|
4456
4421
|
}
|
|
4457
|
-
let Y = ie(e), N = Y(e), j =
|
|
4422
|
+
let Y = ie(e), N = Y(e), j = q(
|
|
4458
4423
|
/*activeMenuItemChildren*/
|
|
4459
4424
|
e[6]
|
|
4460
|
-
),
|
|
4425
|
+
), M = [];
|
|
4461
4426
|
for (let x = 0; x < j.length; x += 1)
|
|
4462
|
-
|
|
4463
|
-
let
|
|
4427
|
+
M[x] = fr(ar(e, j, x));
|
|
4428
|
+
let P = (
|
|
4464
4429
|
/*languagesArray*/
|
|
4465
|
-
e[9].length > 1 &&
|
|
4430
|
+
e[9].length > 1 && dr(e)
|
|
4466
4431
|
);
|
|
4467
4432
|
return {
|
|
4468
4433
|
c() {
|
|
4469
|
-
t =
|
|
4470
|
-
for (let x = 0; x <
|
|
4471
|
-
|
|
4472
|
-
l = U(),
|
|
4473
|
-
(e[10] ? "Overlay" : "")), g(r, "class",
|
|
4434
|
+
t = _("div"), r = _("div"), n = _("ul"), N.c(), i = U(), o = _("div"), a = U(), s = _("ul");
|
|
4435
|
+
for (let x = 0; x < M.length; x += 1)
|
|
4436
|
+
M[x].c();
|
|
4437
|
+
l = U(), P && P.c(), c = U(), f = _("span"), m = _("div"), p = _("span"), b = U(), w = _("span"), T = U(), B = _("span"), g(n, "class", "HamburgerPrimaryMenu"), g(o, "class", "Separator"), g(s, "class", u = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4438
|
+
(e[10] ? "Overlay" : "")), g(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4474
4439
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4475
|
-
(e[12] ? "Closing" : "")), g(
|
|
4440
|
+
(e[12] ? "Closing" : "")), g(m, "class", L = "NavIcon " + (/*navIconClosing*/
|
|
4476
4441
|
e[13] ? "" : "Open")), g(f, "class", G = /*modalIsOpen*/
|
|
4477
4442
|
e[7] ? "ModalCloseBtn" : ""), g(f, "role", "button"), g(t, "class", C = "HamburgerModalWindow " + /*isClosing*/
|
|
4478
4443
|
(e[12] ? " Closing" : ""));
|
|
4479
4444
|
},
|
|
4480
4445
|
m(x, R) {
|
|
4481
4446
|
F(x, t, R), y(t, r), y(r, n), N.m(n, null), y(r, i), y(r, o), y(r, a), y(r, s);
|
|
4482
|
-
for (let
|
|
4483
|
-
|
|
4484
|
-
y(r, l),
|
|
4447
|
+
for (let H = 0; H < M.length; H += 1)
|
|
4448
|
+
M[H] && M[H].m(s, null);
|
|
4449
|
+
y(r, l), P && P.m(r, null), y(t, c), y(t, f), y(f, m), y(m, p), y(m, b), y(m, w), y(m, T), y(m, B), e[40](t), X || (z = re(
|
|
4485
4450
|
f,
|
|
4486
4451
|
"click",
|
|
4487
4452
|
/*close*/
|
|
@@ -4491,47 +4456,47 @@ function fr(e) {
|
|
|
4491
4456
|
p(x, R) {
|
|
4492
4457
|
if (Y === (Y = ie(x)) && N ? N.p(x, R) : (N.d(1), N = Y(x), N && (N.c(), N.m(n, null))), R[0] & /*handleClick, activeMenuItemChildren*/
|
|
4493
4458
|
262208) {
|
|
4494
|
-
j =
|
|
4459
|
+
j = q(
|
|
4495
4460
|
/*activeMenuItemChildren*/
|
|
4496
4461
|
x[6]
|
|
4497
4462
|
);
|
|
4498
|
-
let
|
|
4499
|
-
for (
|
|
4500
|
-
const W =
|
|
4501
|
-
|
|
4463
|
+
let H;
|
|
4464
|
+
for (H = 0; H < j.length; H += 1) {
|
|
4465
|
+
const W = ar(x, j, H);
|
|
4466
|
+
M[H] ? M[H].p(W, R) : (M[H] = fr(W), M[H].c(), M[H].m(s, null));
|
|
4502
4467
|
}
|
|
4503
|
-
for (;
|
|
4504
|
-
|
|
4505
|
-
|
|
4468
|
+
for (; H < M.length; H += 1)
|
|
4469
|
+
M[H].d(1);
|
|
4470
|
+
M.length = j.length;
|
|
4506
4471
|
}
|
|
4507
4472
|
R[0] & /*isOptionsListVisible*/
|
|
4508
4473
|
1024 && u !== (u = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4509
4474
|
(x[10] ? "Overlay" : "")) && g(s, "class", u), /*languagesArray*/
|
|
4510
|
-
x[9].length > 1 ?
|
|
4511
|
-
4224 &&
|
|
4475
|
+
x[9].length > 1 ? P ? P.p(x, R) : (P = dr(x), P.c(), P.m(r, null)) : P && (P.d(1), P = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4476
|
+
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4512
4477
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4513
|
-
(x[12] ? "Closing" : "")) && g(r, "class",
|
|
4514
|
-
8192 &&
|
|
4515
|
-
x[13] ? "" : "Open")) && g(
|
|
4478
|
+
(x[12] ? "Closing" : "")) && g(r, "class", h), R[0] & /*navIconClosing*/
|
|
4479
|
+
8192 && L !== (L = "NavIcon " + (/*navIconClosing*/
|
|
4480
|
+
x[13] ? "" : "Open")) && g(m, "class", L), R[0] & /*modalIsOpen*/
|
|
4516
4481
|
128 && G !== (G = /*modalIsOpen*/
|
|
4517
4482
|
x[7] ? "ModalCloseBtn" : "") && g(f, "class", G), R[0] & /*isClosing*/
|
|
4518
4483
|
4096 && C !== (C = "HamburgerModalWindow " + /*isClosing*/
|
|
4519
4484
|
(x[12] ? " Closing" : "")) && g(t, "class", C);
|
|
4520
4485
|
},
|
|
4521
4486
|
d(x) {
|
|
4522
|
-
x && I(t), N.d(),
|
|
4487
|
+
x && I(t), N.d(), He(M, x), P && P.d(), e[40](null), X = !1, z();
|
|
4523
4488
|
}
|
|
4524
4489
|
};
|
|
4525
4490
|
}
|
|
4526
|
-
function
|
|
4527
|
-
let t, r =
|
|
4491
|
+
function Ko(e) {
|
|
4492
|
+
let t, r = q(new Array(5)), n = [];
|
|
4528
4493
|
for (let i = 0; i < r.length; i += 1)
|
|
4529
|
-
n[i] =
|
|
4494
|
+
n[i] = ta(Yo(e, r, i));
|
|
4530
4495
|
return {
|
|
4531
4496
|
c() {
|
|
4532
4497
|
for (let i = 0; i < n.length; i += 1)
|
|
4533
4498
|
n[i].c();
|
|
4534
|
-
t =
|
|
4499
|
+
t = xr();
|
|
4535
4500
|
},
|
|
4536
4501
|
m(i, o) {
|
|
4537
4502
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4540,22 +4505,22 @@ function na(e) {
|
|
|
4540
4505
|
},
|
|
4541
4506
|
p: $,
|
|
4542
4507
|
d(i) {
|
|
4543
|
-
i && I(t),
|
|
4508
|
+
i && I(t), He(n, i);
|
|
4544
4509
|
}
|
|
4545
4510
|
};
|
|
4546
4511
|
}
|
|
4547
|
-
function
|
|
4548
|
-
let t, r =
|
|
4512
|
+
function ea(e) {
|
|
4513
|
+
let t, r = q(
|
|
4549
4514
|
/*HamburgerMenuItems*/
|
|
4550
4515
|
e[4]
|
|
4551
4516
|
), n = [];
|
|
4552
4517
|
for (let i = 0; i < r.length; i += 1)
|
|
4553
|
-
n[i] =
|
|
4518
|
+
n[i] = hr(sr(e, r, i));
|
|
4554
4519
|
return {
|
|
4555
4520
|
c() {
|
|
4556
4521
|
for (let i = 0; i < n.length; i += 1)
|
|
4557
4522
|
n[i].c();
|
|
4558
|
-
t =
|
|
4523
|
+
t = xr();
|
|
4559
4524
|
},
|
|
4560
4525
|
m(i, o) {
|
|
4561
4526
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4565,14 +4530,14 @@ function ia(e) {
|
|
|
4565
4530
|
p(i, o) {
|
|
4566
4531
|
if (o[0] & /*activeMenuItemId, HamburgerMenuItems, changeMenu*/
|
|
4567
4532
|
131120) {
|
|
4568
|
-
r =
|
|
4533
|
+
r = q(
|
|
4569
4534
|
/*HamburgerMenuItems*/
|
|
4570
4535
|
i[4]
|
|
4571
4536
|
);
|
|
4572
4537
|
let a;
|
|
4573
4538
|
for (a = 0; a < r.length; a += 1) {
|
|
4574
|
-
const s =
|
|
4575
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4539
|
+
const s = sr(i, r, a);
|
|
4540
|
+
n[a] ? n[a].p(s, o) : (n[a] = hr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4576
4541
|
}
|
|
4577
4542
|
for (; a < n.length; a += 1)
|
|
4578
4543
|
n[a].d(1);
|
|
@@ -4580,15 +4545,15 @@ function ia(e) {
|
|
|
4580
4545
|
}
|
|
4581
4546
|
},
|
|
4582
4547
|
d(i) {
|
|
4583
|
-
i && I(t),
|
|
4548
|
+
i && I(t), He(n, i);
|
|
4584
4549
|
}
|
|
4585
4550
|
};
|
|
4586
4551
|
}
|
|
4587
|
-
function
|
|
4552
|
+
function ta(e) {
|
|
4588
4553
|
let t;
|
|
4589
4554
|
return {
|
|
4590
4555
|
c() {
|
|
4591
|
-
t =
|
|
4556
|
+
t = _("div"), t.innerHTML = "", g(t, "class", "Loading Skeleton");
|
|
4592
4557
|
},
|
|
4593
4558
|
m(r, n) {
|
|
4594
4559
|
F(r, t, n);
|
|
@@ -4599,11 +4564,11 @@ function oa(e) {
|
|
|
4599
4564
|
}
|
|
4600
4565
|
};
|
|
4601
4566
|
}
|
|
4602
|
-
function
|
|
4567
|
+
function lr(e) {
|
|
4603
4568
|
let t, r;
|
|
4604
4569
|
return {
|
|
4605
4570
|
c() {
|
|
4606
|
-
t =
|
|
4571
|
+
t = _("img"), ee(t.src, r = /*mainItem*/
|
|
4607
4572
|
e[63].img) || g(t, "src", r), g(t, "alt", "menu icon");
|
|
4608
4573
|
},
|
|
4609
4574
|
m(n, i) {
|
|
@@ -4619,14 +4584,14 @@ function dr(e) {
|
|
|
4619
4584
|
}
|
|
4620
4585
|
};
|
|
4621
4586
|
}
|
|
4622
|
-
function
|
|
4623
|
-
var
|
|
4587
|
+
function hr(e) {
|
|
4588
|
+
var m;
|
|
4624
4589
|
let t, r, n, i, o = (
|
|
4625
4590
|
/*mainItem*/
|
|
4626
4591
|
e[63].label + ""
|
|
4627
|
-
), a, s, u, l,
|
|
4592
|
+
), a, s, u, l, h, c = (
|
|
4628
4593
|
/*mainItem*/
|
|
4629
|
-
((
|
|
4594
|
+
((m = e[63]) == null ? void 0 : m.img) && lr(e)
|
|
4630
4595
|
);
|
|
4631
4596
|
function f() {
|
|
4632
4597
|
return (
|
|
@@ -4639,33 +4604,33 @@ function pr(e) {
|
|
|
4639
4604
|
}
|
|
4640
4605
|
return {
|
|
4641
4606
|
c() {
|
|
4642
|
-
t =
|
|
4607
|
+
t = _("li"), r = _("div"), c && c.c(), n = U(), i = _("p"), a = te(o), s = U(), g(r, "class", "HamburgerItemContainer"), g(t, "class", u = /*activeMenuItemId*/
|
|
4643
4608
|
e[5] === /*mainItem*/
|
|
4644
4609
|
e[63].id ? "ActiveItem" : "");
|
|
4645
4610
|
},
|
|
4646
|
-
m(
|
|
4647
|
-
F(
|
|
4611
|
+
m(p, b) {
|
|
4612
|
+
F(p, t, b), y(t, r), c && c.m(r, null), y(r, n), y(r, i), y(i, a), y(t, s), l || (h = re(t, "click", f), l = !0);
|
|
4648
4613
|
},
|
|
4649
|
-
p(
|
|
4614
|
+
p(p, b) {
|
|
4650
4615
|
var w;
|
|
4651
|
-
e =
|
|
4652
|
-
(w = e[63]) != null && w.img ?
|
|
4616
|
+
e = p, /*mainItem*/
|
|
4617
|
+
(w = e[63]) != null && w.img ? c ? c.p(e, b) : (c = lr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), b[0] & /*HamburgerMenuItems*/
|
|
4653
4618
|
16 && o !== (o = /*mainItem*/
|
|
4654
|
-
e[63].label + "") &&
|
|
4619
|
+
e[63].label + "") && pe(a, o), b[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4655
4620
|
48 && u !== (u = /*activeMenuItemId*/
|
|
4656
4621
|
e[5] === /*mainItem*/
|
|
4657
4622
|
e[63].id ? "ActiveItem" : "") && g(t, "class", u);
|
|
4658
4623
|
},
|
|
4659
|
-
d(
|
|
4660
|
-
|
|
4624
|
+
d(p) {
|
|
4625
|
+
p && I(t), c && c.d(), l = !1, h();
|
|
4661
4626
|
}
|
|
4662
4627
|
};
|
|
4663
4628
|
}
|
|
4664
|
-
function
|
|
4629
|
+
function cr(e) {
|
|
4665
4630
|
let t, r;
|
|
4666
4631
|
return {
|
|
4667
4632
|
c() {
|
|
4668
|
-
t =
|
|
4633
|
+
t = _("img"), ee(t.src, r = /*secondaryItem*/
|
|
4669
4634
|
e[60].img) || g(t, "src", r), g(t, "alt", "menu icon");
|
|
4670
4635
|
},
|
|
4671
4636
|
m(n, i) {
|
|
@@ -4681,16 +4646,16 @@ function gr(e) {
|
|
|
4681
4646
|
}
|
|
4682
4647
|
};
|
|
4683
4648
|
}
|
|
4684
|
-
function
|
|
4685
|
-
var
|
|
4649
|
+
function fr(e) {
|
|
4650
|
+
var c;
|
|
4686
4651
|
let t, r, n, i = (
|
|
4687
4652
|
/*secondaryItem*/
|
|
4688
4653
|
e[60].label + ""
|
|
4689
4654
|
), o, a, s, u, l = (
|
|
4690
4655
|
/*secondaryItem*/
|
|
4691
|
-
((
|
|
4656
|
+
((c = e[60]) == null ? void 0 : c.img) && cr(e)
|
|
4692
4657
|
);
|
|
4693
|
-
function
|
|
4658
|
+
function h(...f) {
|
|
4694
4659
|
return (
|
|
4695
4660
|
/*click_handler_1*/
|
|
4696
4661
|
e[36](
|
|
@@ -4702,108 +4667,108 @@ function mr(e) {
|
|
|
4702
4667
|
}
|
|
4703
4668
|
return {
|
|
4704
4669
|
c() {
|
|
4705
|
-
t =
|
|
4670
|
+
t = _("li"), l && l.c(), r = U(), n = _("p"), o = te(i), a = U();
|
|
4706
4671
|
},
|
|
4707
|
-
m(f,
|
|
4708
|
-
F(f, t,
|
|
4672
|
+
m(f, m) {
|
|
4673
|
+
F(f, t, m), l && l.m(t, null), y(t, r), y(t, n), y(n, o), y(t, a), s || (u = re(t, "click", h), s = !0);
|
|
4709
4674
|
},
|
|
4710
|
-
p(f,
|
|
4711
|
-
var
|
|
4675
|
+
p(f, m) {
|
|
4676
|
+
var p;
|
|
4712
4677
|
e = f, /*secondaryItem*/
|
|
4713
|
-
(
|
|
4678
|
+
(p = e[60]) != null && p.img ? l ? l.p(e, m) : (l = cr(e), l.c(), l.m(t, r)) : l && (l.d(1), l = null), m[0] & /*activeMenuItemChildren*/
|
|
4714
4679
|
64 && i !== (i = /*secondaryItem*/
|
|
4715
|
-
e[60].label + "") &&
|
|
4680
|
+
e[60].label + "") && pe(o, i);
|
|
4716
4681
|
},
|
|
4717
4682
|
d(f) {
|
|
4718
4683
|
f && I(t), l && l.d(), s = !1, u();
|
|
4719
4684
|
}
|
|
4720
4685
|
};
|
|
4721
4686
|
}
|
|
4722
|
-
function
|
|
4687
|
+
function dr(e) {
|
|
4723
4688
|
let t, r, n = (
|
|
4724
4689
|
/*$_*/
|
|
4725
4690
|
e[15]("language") + ""
|
|
4726
4691
|
), i, o, a, s, u;
|
|
4727
|
-
function l(f,
|
|
4692
|
+
function l(f, m) {
|
|
4728
4693
|
return (
|
|
4729
4694
|
/*countryflaghamburger*/
|
|
4730
|
-
f[0] !== "true" ?
|
|
4695
|
+
f[0] !== "true" ? na : ra
|
|
4731
4696
|
);
|
|
4732
4697
|
}
|
|
4733
|
-
let
|
|
4698
|
+
let h = l(e), c = h(e);
|
|
4734
4699
|
return {
|
|
4735
4700
|
c() {
|
|
4736
|
-
t =
|
|
4701
|
+
t = _("div"), r = _("span"), i = te(n), o = U(), c.c(), g(r, "class", "LanguageSelectorTitle"), g(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4737
4702
|
(e[10] ? "Open" : ""));
|
|
4738
4703
|
},
|
|
4739
|
-
m(f,
|
|
4740
|
-
F(f, t,
|
|
4704
|
+
m(f, m) {
|
|
4705
|
+
F(f, t, m), y(t, r), y(r, i), y(t, o), c.m(t, null), s || (u = re(
|
|
4741
4706
|
t,
|
|
4742
4707
|
"click",
|
|
4743
4708
|
/*toggleLanguageDropdown*/
|
|
4744
4709
|
e[21]
|
|
4745
4710
|
), s = !0);
|
|
4746
4711
|
},
|
|
4747
|
-
p(f,
|
|
4748
|
-
|
|
4712
|
+
p(f, m) {
|
|
4713
|
+
m[0] & /*$_*/
|
|
4749
4714
|
32768 && n !== (n = /*$_*/
|
|
4750
|
-
f[15]("language") + "") &&
|
|
4715
|
+
f[15]("language") + "") && pe(i, n), h === (h = l(f)) && c ? c.p(f, m) : (c.d(1), c = h(f), c && (c.c(), c.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4751
4716
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4752
4717
|
(f[10] ? "Open" : "")) && g(t, "class", a);
|
|
4753
4718
|
},
|
|
4754
4719
|
d(f) {
|
|
4755
|
-
f && I(t),
|
|
4720
|
+
f && I(t), c.d(), s = !1, u();
|
|
4756
4721
|
}
|
|
4757
4722
|
};
|
|
4758
4723
|
}
|
|
4759
|
-
function
|
|
4724
|
+
function ra(e) {
|
|
4760
4725
|
let t, r, n, i, o, a, s, u = (
|
|
4761
4726
|
/*selectedLanguage*/
|
|
4762
4727
|
e[14].slice(-2) + ""
|
|
4763
|
-
), l,
|
|
4728
|
+
), l, h, c, f, m, p, b, w = (
|
|
4764
4729
|
/*isOptionsListVisible*/
|
|
4765
|
-
e[10] &&
|
|
4730
|
+
e[10] && mr(e)
|
|
4766
4731
|
);
|
|
4767
4732
|
return {
|
|
4768
4733
|
c() {
|
|
4769
|
-
t =
|
|
4734
|
+
t = _("div"), r = _("div"), n = _("span"), i = _("img"), a = U(), s = _("span"), l = te(u), h = U(), c = _("span"), f = Bt("svg"), m = Bt("path"), b = U(), w && w.c(), ee(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4770
4735
|
e[22](
|
|
4771
4736
|
/*selectedLanguage*/
|
|
4772
4737
|
e[14]
|
|
4773
|
-
)}.svg`) || g(i, "src", o), g(n, "class", "FlagIcon"), g(s, "class", "LanguageName"), g(
|
|
4738
|
+
)}.svg`) || g(i, "src", o), g(n, "class", "FlagIcon"), g(s, "class", "LanguageName"), g(m, "id", "arrow"), g(m, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(m, "transform", "translate(-274.511 -441.088)"), g(m, "fill", "#d1d1d1"), g(f, "xmlns", "http://www.w3.org/2000/svg"), g(f, "width", "14"), g(f, "height", "6.835"), g(f, "viewBox", "0 0 14 6.835"), g(c, "class", p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4774
4739
|
(e[10] ? "TriangleActive" : "")), g(r, "class", "SelectedOption Item ItemLanguage"), g(t, "class", "LanguageDropdown");
|
|
4775
4740
|
},
|
|
4776
|
-
m(
|
|
4777
|
-
F(
|
|
4741
|
+
m(T, B) {
|
|
4742
|
+
F(T, t, B), y(t, r), y(r, n), y(n, i), y(r, a), y(r, s), y(s, l), y(r, h), y(r, c), y(c, f), y(f, m), y(t, b), w && w.m(t, null);
|
|
4778
4743
|
},
|
|
4779
|
-
p(
|
|
4744
|
+
p(T, B) {
|
|
4780
4745
|
B[0] & /*selectedLanguage, languagesArray*/
|
|
4781
4746
|
16896 && !ee(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4782
|
-
|
|
4747
|
+
T[22](
|
|
4783
4748
|
/*selectedLanguage*/
|
|
4784
|
-
|
|
4749
|
+
T[14]
|
|
4785
4750
|
)}.svg`) && g(i, "src", o), B[0] & /*selectedLanguage*/
|
|
4786
4751
|
16384 && u !== (u = /*selectedLanguage*/
|
|
4787
|
-
|
|
4788
|
-
1024 &&
|
|
4789
|
-
(
|
|
4790
|
-
|
|
4752
|
+
T[14].slice(-2) + "") && pe(l, u), B[0] & /*isOptionsListVisible*/
|
|
4753
|
+
1024 && p !== (p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4754
|
+
(T[10] ? "TriangleActive" : "")) && g(c, "class", p), /*isOptionsListVisible*/
|
|
4755
|
+
T[10] ? w ? w.p(T, B) : (w = mr(T), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
|
|
4791
4756
|
},
|
|
4792
|
-
d(
|
|
4793
|
-
|
|
4757
|
+
d(T) {
|
|
4758
|
+
T && I(t), w && w.d();
|
|
4794
4759
|
}
|
|
4795
4760
|
};
|
|
4796
4761
|
}
|
|
4797
|
-
function
|
|
4798
|
-
let t, r, n, i =
|
|
4762
|
+
function na(e) {
|
|
4763
|
+
let t, r, n, i = q(
|
|
4799
4764
|
/*languagesArray*/
|
|
4800
4765
|
e[9]
|
|
4801
4766
|
), o = [];
|
|
4802
4767
|
for (let a = 0; a < i.length; a += 1)
|
|
4803
|
-
o[a] =
|
|
4768
|
+
o[a] = pr(or(e, i, a));
|
|
4804
4769
|
return {
|
|
4805
4770
|
c() {
|
|
4806
|
-
t =
|
|
4771
|
+
t = _("select");
|
|
4807
4772
|
for (let a = 0; a < o.length; a += 1)
|
|
4808
4773
|
o[a].c();
|
|
4809
4774
|
g(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
@@ -4816,7 +4781,7 @@ function sa(e) {
|
|
|
4816
4781
|
F(a, t, s);
|
|
4817
4782
|
for (let u = 0; u < o.length; u += 1)
|
|
4818
4783
|
o[u] && o[u].m(t, null);
|
|
4819
|
-
|
|
4784
|
+
Ct(
|
|
4820
4785
|
t,
|
|
4821
4786
|
/*selectedLanguage*/
|
|
4822
4787
|
e[14],
|
|
@@ -4839,41 +4804,41 @@ function sa(e) {
|
|
|
4839
4804
|
p(a, s) {
|
|
4840
4805
|
if (s[0] & /*languagesArray*/
|
|
4841
4806
|
512) {
|
|
4842
|
-
i =
|
|
4807
|
+
i = q(
|
|
4843
4808
|
/*languagesArray*/
|
|
4844
4809
|
a[9]
|
|
4845
4810
|
);
|
|
4846
4811
|
let u;
|
|
4847
4812
|
for (u = 0; u < i.length; u += 1) {
|
|
4848
|
-
const l =
|
|
4849
|
-
o[u] ? o[u].p(l, s) : (o[u] =
|
|
4813
|
+
const l = or(a, i, u);
|
|
4814
|
+
o[u] ? o[u].p(l, s) : (o[u] = pr(l), o[u].c(), o[u].m(t, null));
|
|
4850
4815
|
}
|
|
4851
4816
|
for (; u < o.length; u += 1)
|
|
4852
4817
|
o[u].d(1);
|
|
4853
4818
|
o.length = i.length;
|
|
4854
4819
|
}
|
|
4855
4820
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4856
|
-
16896 &&
|
|
4821
|
+
16896 && Ct(
|
|
4857
4822
|
t,
|
|
4858
4823
|
/*selectedLanguage*/
|
|
4859
4824
|
a[14]
|
|
4860
4825
|
);
|
|
4861
4826
|
},
|
|
4862
4827
|
d(a) {
|
|
4863
|
-
a && I(t),
|
|
4828
|
+
a && I(t), He(o, a), r = !1, ge(n);
|
|
4864
4829
|
}
|
|
4865
4830
|
};
|
|
4866
4831
|
}
|
|
4867
|
-
function
|
|
4868
|
-
let t, r, n =
|
|
4832
|
+
function mr(e) {
|
|
4833
|
+
let t, r, n = q(
|
|
4869
4834
|
/*languagesArray*/
|
|
4870
4835
|
e[9]
|
|
4871
4836
|
), i = [];
|
|
4872
4837
|
for (let o = 0; o < n.length; o += 1)
|
|
4873
|
-
i[o] =
|
|
4838
|
+
i[o] = gr(ir(e, n, o));
|
|
4874
4839
|
return {
|
|
4875
4840
|
c() {
|
|
4876
|
-
t =
|
|
4841
|
+
t = _("div");
|
|
4877
4842
|
for (let o = 0; o < i.length; o += 1)
|
|
4878
4843
|
i[o].c();
|
|
4879
4844
|
g(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
@@ -4887,14 +4852,14 @@ function yr(e) {
|
|
|
4887
4852
|
p(o, a) {
|
|
4888
4853
|
if (a[0] & /*languageListOpen, selectLanguage, languagesArray, determineFlag*/
|
|
4889
4854
|
5245440) {
|
|
4890
|
-
n =
|
|
4855
|
+
n = q(
|
|
4891
4856
|
/*languagesArray*/
|
|
4892
4857
|
o[9]
|
|
4893
4858
|
);
|
|
4894
4859
|
let s;
|
|
4895
4860
|
for (s = 0; s < n.length; s += 1) {
|
|
4896
|
-
const u =
|
|
4897
|
-
i[s] ? i[s].p(u, a) : (i[s] =
|
|
4861
|
+
const u = ir(o, n, s);
|
|
4862
|
+
i[s] ? i[s].p(u, a) : (i[s] = gr(u), i[s].c(), i[s].m(t, null));
|
|
4898
4863
|
}
|
|
4899
4864
|
for (; s < i.length; s += 1)
|
|
4900
4865
|
i[s].d(1);
|
|
@@ -4905,16 +4870,16 @@ function yr(e) {
|
|
|
4905
4870
|
(o[11] ? "Open" : "")) && g(t, "class", r);
|
|
4906
4871
|
},
|
|
4907
4872
|
d(o) {
|
|
4908
|
-
o && I(t),
|
|
4873
|
+
o && I(t), He(i, o);
|
|
4909
4874
|
}
|
|
4910
4875
|
};
|
|
4911
4876
|
}
|
|
4912
|
-
function
|
|
4877
|
+
function gr(e) {
|
|
4913
4878
|
let t, r, n, i, o, a, s = (
|
|
4914
4879
|
/*operatorLanguage*/
|
|
4915
4880
|
e[57] + ""
|
|
4916
|
-
), u, l,
|
|
4917
|
-
function
|
|
4881
|
+
), u, l, h, c, f;
|
|
4882
|
+
function m() {
|
|
4918
4883
|
return (
|
|
4919
4884
|
/*click_handler_2*/
|
|
4920
4885
|
e[39](
|
|
@@ -4925,42 +4890,42 @@ function vr(e) {
|
|
|
4925
4890
|
}
|
|
4926
4891
|
return {
|
|
4927
4892
|
c() {
|
|
4928
|
-
t =
|
|
4893
|
+
t = _("div"), r = _("span"), n = _("img"), o = U(), a = _("span"), u = te(s), l = U(), ee(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4929
4894
|
e[22](
|
|
4930
4895
|
/*operatorLanguage*/
|
|
4931
4896
|
e[57]
|
|
4932
|
-
)}.svg`) || g(n, "src", i), g(r, "class", "FlagIcon"), g(a, "class", "LanguageName"), g(t, "class",
|
|
4897
|
+
)}.svg`) || g(n, "src", i), g(r, "class", "FlagIcon"), g(a, "class", "LanguageName"), g(t, "class", h = "LanguageOption " + /*languageListOpen*/
|
|
4933
4898
|
(e[11] ? "Open" : ""));
|
|
4934
4899
|
},
|
|
4935
|
-
m(
|
|
4936
|
-
F(
|
|
4900
|
+
m(p, b) {
|
|
4901
|
+
F(p, t, b), y(t, r), y(r, n), y(t, o), y(t, a), y(a, u), y(t, l), c || (f = re(t, "click", m), c = !0);
|
|
4937
4902
|
},
|
|
4938
|
-
p(
|
|
4939
|
-
e =
|
|
4903
|
+
p(p, b) {
|
|
4904
|
+
e = p, b[0] & /*languagesArray*/
|
|
4940
4905
|
512 && !ee(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4941
4906
|
e[22](
|
|
4942
4907
|
/*operatorLanguage*/
|
|
4943
4908
|
e[57]
|
|
4944
4909
|
)}.svg`) && g(n, "src", i), b[0] & /*languagesArray*/
|
|
4945
4910
|
512 && s !== (s = /*operatorLanguage*/
|
|
4946
|
-
e[57] + "") &&
|
|
4947
|
-
2048 &&
|
|
4948
|
-
(e[11] ? "Open" : "")) && g(t, "class",
|
|
4911
|
+
e[57] + "") && pe(u, s), b[0] & /*languageListOpen*/
|
|
4912
|
+
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4913
|
+
(e[11] ? "Open" : "")) && g(t, "class", h);
|
|
4949
4914
|
},
|
|
4950
|
-
d(
|
|
4951
|
-
|
|
4915
|
+
d(p) {
|
|
4916
|
+
p && I(t), c = !1, f();
|
|
4952
4917
|
}
|
|
4953
4918
|
};
|
|
4954
4919
|
}
|
|
4955
|
-
function
|
|
4920
|
+
function pr(e) {
|
|
4956
4921
|
let t, r = (
|
|
4957
4922
|
/*lang*/
|
|
4958
4923
|
e[1].slice(-2) + ""
|
|
4959
4924
|
), n, i;
|
|
4960
4925
|
return {
|
|
4961
4926
|
c() {
|
|
4962
|
-
t =
|
|
4963
|
-
e[1],
|
|
4927
|
+
t = _("option"), n = te(r), t.__value = i = /*lang*/
|
|
4928
|
+
e[1], It(t, t.__value), t.selected = !0;
|
|
4964
4929
|
},
|
|
4965
4930
|
m(o, a) {
|
|
4966
4931
|
F(o, t, a), y(t, n);
|
|
@@ -4968,30 +4933,30 @@ function _r(e) {
|
|
|
4968
4933
|
p(o, a) {
|
|
4969
4934
|
a[0] & /*languagesArray*/
|
|
4970
4935
|
512 && r !== (r = /*lang*/
|
|
4971
|
-
o[1].slice(-2) + "") &&
|
|
4936
|
+
o[1].slice(-2) + "") && pe(n, r), a[0] & /*languagesArray*/
|
|
4972
4937
|
512 && i !== (i = /*lang*/
|
|
4973
|
-
o[1]) && (t.__value = i,
|
|
4938
|
+
o[1]) && (t.__value = i, It(t, t.__value));
|
|
4974
4939
|
},
|
|
4975
4940
|
d(o) {
|
|
4976
4941
|
o && I(t);
|
|
4977
4942
|
}
|
|
4978
4943
|
};
|
|
4979
4944
|
}
|
|
4980
|
-
function
|
|
4945
|
+
function ia(e) {
|
|
4981
4946
|
let t, r = (
|
|
4982
4947
|
/*show*/
|
|
4983
|
-
e[8] === !0 &&
|
|
4948
|
+
e[8] === !0 && ur(e)
|
|
4984
4949
|
);
|
|
4985
4950
|
return {
|
|
4986
4951
|
c() {
|
|
4987
|
-
t =
|
|
4952
|
+
t = _("div"), r && r.c();
|
|
4988
4953
|
},
|
|
4989
4954
|
m(n, i) {
|
|
4990
4955
|
F(n, t, i), r && r.m(t, null), e[41](t);
|
|
4991
4956
|
},
|
|
4992
4957
|
p(n, i) {
|
|
4993
4958
|
/*show*/
|
|
4994
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4959
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = ur(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4995
4960
|
},
|
|
4996
4961
|
i: $,
|
|
4997
4962
|
o: $,
|
|
@@ -5000,30 +4965,30 @@ function ua(e) {
|
|
|
5000
4965
|
}
|
|
5001
4966
|
};
|
|
5002
4967
|
}
|
|
5003
|
-
function
|
|
4968
|
+
function oa(e, t, r) {
|
|
5004
4969
|
let n;
|
|
5005
|
-
|
|
5006
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang: u = "en" } = t, { activecategory: l = "" } = t, { languageslist:
|
|
5007
|
-
const
|
|
5008
|
-
fetch(
|
|
5009
|
-
Object.keys(d).forEach((
|
|
5010
|
-
|
|
4970
|
+
vn(e, Wo, (d) => r(15, n = d));
|
|
4971
|
+
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang: u = "en" } = t, { activecategory: l = "" } = t, { languageslist: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, { clientstyling: m = "" } = t, { clientstylingurl: p = "" } = t, { customlocaleidentifier: b = "" } = t, { countryflaghamburger: w = "" } = t, T, B = window.navigator.userAgent, L = [], G, C = "", X = [], z = !1, ie = !1, Y = !0, N = [], j = !1, M = !1, P = !1, x = !1, R = !0, H, W = "", Z;
|
|
4972
|
+
const en = () => {
|
|
4973
|
+
fetch(c).then((d) => d.json()).then((d) => {
|
|
4974
|
+
Object.keys(d).forEach((A) => {
|
|
4975
|
+
rr(A, d[A]);
|
|
5011
4976
|
});
|
|
5012
4977
|
}).catch((d) => {
|
|
5013
4978
|
console.log(d);
|
|
5014
4979
|
});
|
|
5015
4980
|
};
|
|
5016
|
-
Object.keys(
|
|
5017
|
-
|
|
4981
|
+
Object.keys(nr).forEach((d) => {
|
|
4982
|
+
rr(d, nr[d]);
|
|
5018
4983
|
});
|
|
5019
|
-
const
|
|
5020
|
-
|
|
5021
|
-
let d =
|
|
5022
|
-
d && (d === "PC" ?
|
|
5023
|
-
},
|
|
5024
|
-
r(12, x = !0), r(13, R = !0), r(10,
|
|
4984
|
+
const Ve = () => {
|
|
4985
|
+
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4986
|
+
let d = Xo(B);
|
|
4987
|
+
d && (d === "PC" ? H.searchParams.append("device", "dk") : H.searchParams.append("device", "mtWeb")), H.searchParams.append("env", a), H.searchParams.append("language", W.toLowerCase()), H.searchParams.append("userRoles", s);
|
|
4988
|
+
}, _t = () => {
|
|
4989
|
+
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, P = !1), setTimeout(
|
|
5025
4990
|
() => {
|
|
5026
|
-
r(8, ie = !1), r(7,
|
|
4991
|
+
r(8, ie = !1), r(7, z = !1);
|
|
5027
4992
|
},
|
|
5028
4993
|
200
|
|
5029
4994
|
), window.postMessage(
|
|
@@ -5033,40 +4998,40 @@ function la(e, t, r) {
|
|
|
5033
4998
|
},
|
|
5034
4999
|
window.location.href
|
|
5035
5000
|
);
|
|
5036
|
-
},
|
|
5001
|
+
}, vt = (d) => {
|
|
5037
5002
|
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
5038
5003
|
() => {
|
|
5039
5004
|
r(13, R = !1);
|
|
5040
5005
|
},
|
|
5041
5006
|
125
|
|
5042
|
-
), r(8, ie = !0), r(7,
|
|
5043
|
-
}, Oe = (d,
|
|
5044
|
-
r(5, C = d), r(6, X =
|
|
5007
|
+
), r(8, ie = !0), r(7, z = !0), Ve(), Et(H)), d.data.type === "LanguageChanged" && (j = !0, Ve(), Et(H));
|
|
5008
|
+
}, Oe = (d, A) => {
|
|
5009
|
+
r(5, C = d), r(6, X = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
5045
5010
|
context: "HamburgerMenu",
|
|
5046
5011
|
menuItem: `${C}`
|
|
5047
5012
|
});
|
|
5048
|
-
},
|
|
5049
|
-
let d =
|
|
5050
|
-
var
|
|
5013
|
+
}, xt = () => {
|
|
5014
|
+
let d = L.filter((A) => {
|
|
5015
|
+
var Tt;
|
|
5051
5016
|
let oe = !1;
|
|
5052
|
-
return (
|
|
5053
|
-
|
|
5017
|
+
return (Tt = A.children) == null || Tt.forEach((fn) => {
|
|
5018
|
+
fn.path.includes(l) && (oe = !0);
|
|
5054
5019
|
}), oe;
|
|
5055
5020
|
});
|
|
5056
|
-
d.length > 0 ? Oe(d[0].id, d[0].children) : Oe(
|
|
5057
|
-
},
|
|
5058
|
-
G && !j ||
|
|
5059
|
-
},
|
|
5060
|
-
fetch(d).then((
|
|
5061
|
-
(
|
|
5062
|
-
r(4,
|
|
5021
|
+
d.length > 0 ? Oe(d[0].id, d[0].children) : Oe(L[0].id, L[0].children);
|
|
5022
|
+
}, Et = (d) => {
|
|
5023
|
+
G && !j || wt(d);
|
|
5024
|
+
}, wt = (d) => {
|
|
5025
|
+
fetch(d).then((A) => A.json()).then(
|
|
5026
|
+
(A) => {
|
|
5027
|
+
r(4, L = A.filter((oe) => (oe == null ? void 0 : oe.type) !== "banner")), xt(), r(34, Y = !1), G = A, j = !1;
|
|
5063
5028
|
},
|
|
5064
|
-
(
|
|
5065
|
-
console.error(
|
|
5029
|
+
(A) => {
|
|
5030
|
+
console.error(A);
|
|
5066
5031
|
}
|
|
5067
5032
|
);
|
|
5068
5033
|
};
|
|
5069
|
-
let
|
|
5034
|
+
let St = (d) => {
|
|
5070
5035
|
window.postMessage(
|
|
5071
5036
|
{
|
|
5072
5037
|
type: "NavigateTo",
|
|
@@ -5075,9 +5040,9 @@ function la(e, t, r) {
|
|
|
5075
5040
|
target: d.attrs.target || null
|
|
5076
5041
|
},
|
|
5077
5042
|
window.location.href
|
|
5078
|
-
),
|
|
5043
|
+
), _t();
|
|
5079
5044
|
};
|
|
5080
|
-
const
|
|
5045
|
+
const Xe = () => {
|
|
5081
5046
|
j = !0, window.postMessage(
|
|
5082
5047
|
{
|
|
5083
5048
|
type: "LanguageChanged",
|
|
@@ -5085,122 +5050,122 @@ function la(e, t, r) {
|
|
|
5085
5050
|
},
|
|
5086
5051
|
window.location.href
|
|
5087
5052
|
);
|
|
5088
|
-
},
|
|
5089
|
-
|
|
5090
|
-
},
|
|
5053
|
+
}, tn = () => {
|
|
5054
|
+
qo(u), Ve(), j && wt(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = u.toUpperCase());
|
|
5055
|
+
}, Ht = (d) => {
|
|
5091
5056
|
r(14, W = d), setTimeout(
|
|
5092
5057
|
() => {
|
|
5093
|
-
r(11,
|
|
5058
|
+
r(11, P = !1);
|
|
5094
5059
|
},
|
|
5095
5060
|
250
|
|
5096
5061
|
), setTimeout(
|
|
5097
5062
|
() => {
|
|
5098
|
-
r(10,
|
|
5063
|
+
r(10, M = !1);
|
|
5099
5064
|
},
|
|
5100
5065
|
500
|
|
5101
|
-
),
|
|
5102
|
-
},
|
|
5103
|
-
|
|
5066
|
+
), Xe();
|
|
5067
|
+
}, rn = () => {
|
|
5068
|
+
M ? (setTimeout(
|
|
5104
5069
|
() => {
|
|
5105
|
-
r(10,
|
|
5070
|
+
r(10, M = !1);
|
|
5106
5071
|
},
|
|
5107
5072
|
250
|
|
5108
|
-
), r(11,
|
|
5073
|
+
), r(11, P = !1)) : (r(10, M = !0), setTimeout(
|
|
5109
5074
|
() => {
|
|
5110
|
-
r(11,
|
|
5075
|
+
r(11, P = !0);
|
|
5111
5076
|
},
|
|
5112
5077
|
300
|
|
5113
5078
|
));
|
|
5114
|
-
},
|
|
5115
|
-
let
|
|
5116
|
-
return b && (
|
|
5079
|
+
}, nn = (d) => {
|
|
5080
|
+
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5081
|
+
return b && (A = b.includes(A.toLowerCase()) ? b.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5117
5082
|
};
|
|
5118
|
-
|
|
5119
|
-
window.removeEventListener("message",
|
|
5083
|
+
Mn(() => (window.addEventListener("message", vt, !1), Vo(B), () => {
|
|
5084
|
+
window.removeEventListener("message", vt);
|
|
5120
5085
|
}));
|
|
5121
|
-
const
|
|
5122
|
-
|
|
5086
|
+
const on = (d) => Oe(d.id, d.children), an = (d, A) => {
|
|
5087
|
+
St(d), A.preventDefault();
|
|
5123
5088
|
};
|
|
5124
|
-
function
|
|
5125
|
-
W =
|
|
5089
|
+
function sn() {
|
|
5090
|
+
W = Hn(this), r(14, W), r(9, N);
|
|
5126
5091
|
}
|
|
5127
|
-
const
|
|
5128
|
-
function
|
|
5092
|
+
const un = () => Xe(), ln = (d) => Ht(d);
|
|
5093
|
+
function hn(d) {
|
|
5129
5094
|
Re[d ? "unshift" : "push"](() => {
|
|
5130
|
-
|
|
5095
|
+
T = d, r(3, T);
|
|
5131
5096
|
});
|
|
5132
5097
|
}
|
|
5133
|
-
function
|
|
5098
|
+
function cn(d) {
|
|
5134
5099
|
Re[d ? "unshift" : "push"](() => {
|
|
5135
|
-
|
|
5100
|
+
Z = d, r(2, Z);
|
|
5136
5101
|
});
|
|
5137
5102
|
}
|
|
5138
5103
|
return e.$$set = (d) => {
|
|
5139
|
-
"menuitemsurl" in d && r(23, i = d.menuitemsurl), "cmsendpoint" in d && r(24, o = d.cmsendpoint), "cmsenv" in d && r(25, a = d.cmsenv), "userroles" in d && r(26, s = d.userroles), "lang" in d && r(1, u = d.lang), "activecategory" in d && r(27, l = d.activecategory), "languageslist" in d && r(28,
|
|
5104
|
+
"menuitemsurl" in d && r(23, i = d.menuitemsurl), "cmsendpoint" in d && r(24, o = d.cmsendpoint), "cmsenv" in d && r(25, a = d.cmsenv), "userroles" in d && r(26, s = d.userroles), "lang" in d && r(1, u = d.lang), "activecategory" in d && r(27, l = d.activecategory), "languageslist" in d && r(28, h = d.languageslist), "translationurl" in d && r(29, c = d.translationurl), "mbsource" in d && r(30, f = d.mbsource), "clientstyling" in d && r(31, m = d.clientstyling), "clientstylingurl" in d && r(32, p = d.clientstylingurl), "customlocaleidentifier" in d && r(33, b = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, w = d.countryflaghamburger);
|
|
5140
5105
|
}, e.$$.update = () => {
|
|
5141
5106
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5142
|
-
318767106 && o && a && u &&
|
|
5107
|
+
318767106 && o && a && u && h && tn(), e.$$.dirty[0] & /*activecategory*/
|
|
5143
5108
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5144
|
-
8 && l && !Y &&
|
|
5145
|
-
536870912 &&
|
|
5109
|
+
8 && l && !Y && xt(), e.$$.dirty[0] & /*translationurl*/
|
|
5110
|
+
536870912 && c && en(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5146
5111
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5147
|
-
1 &&
|
|
5112
|
+
1 && m && Z && zo(Z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5148
5113
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5149
|
-
2 &&
|
|
5150
|
-
1073741828 && f &&
|
|
5114
|
+
2 && p && Z && Zo(Z, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5115
|
+
1073741828 && f && Z && Qo(Z, `${f}.Style`);
|
|
5151
5116
|
}, [
|
|
5152
5117
|
w,
|
|
5153
5118
|
u,
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5119
|
+
Z,
|
|
5120
|
+
T,
|
|
5121
|
+
L,
|
|
5157
5122
|
C,
|
|
5158
5123
|
X,
|
|
5159
|
-
|
|
5124
|
+
z,
|
|
5160
5125
|
ie,
|
|
5161
5126
|
N,
|
|
5162
|
-
|
|
5163
|
-
|
|
5127
|
+
M,
|
|
5128
|
+
P,
|
|
5164
5129
|
x,
|
|
5165
5130
|
R,
|
|
5166
5131
|
W,
|
|
5167
5132
|
n,
|
|
5168
|
-
|
|
5133
|
+
_t,
|
|
5169
5134
|
Oe,
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5135
|
+
St,
|
|
5136
|
+
Xe,
|
|
5137
|
+
Ht,
|
|
5138
|
+
rn,
|
|
5139
|
+
nn,
|
|
5175
5140
|
i,
|
|
5176
5141
|
o,
|
|
5177
5142
|
a,
|
|
5178
5143
|
s,
|
|
5179
5144
|
l,
|
|
5180
|
-
c,
|
|
5181
5145
|
h,
|
|
5146
|
+
c,
|
|
5182
5147
|
f,
|
|
5183
|
-
p,
|
|
5184
5148
|
m,
|
|
5149
|
+
p,
|
|
5185
5150
|
b,
|
|
5186
5151
|
Y,
|
|
5152
|
+
on,
|
|
5153
|
+
an,
|
|
5154
|
+
sn,
|
|
5155
|
+
un,
|
|
5187
5156
|
ln,
|
|
5188
|
-
cn,
|
|
5189
5157
|
hn,
|
|
5190
|
-
|
|
5191
|
-
dn,
|
|
5192
|
-
pn,
|
|
5193
|
-
gn
|
|
5158
|
+
cn
|
|
5194
5159
|
];
|
|
5195
5160
|
}
|
|
5196
|
-
class
|
|
5161
|
+
class Kr extends kn {
|
|
5197
5162
|
constructor(t) {
|
|
5198
|
-
super(),
|
|
5163
|
+
super(), Fn(
|
|
5199
5164
|
this,
|
|
5200
5165
|
t,
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5166
|
+
oa,
|
|
5167
|
+
ia,
|
|
5168
|
+
yr,
|
|
5204
5169
|
{
|
|
5205
5170
|
menuitemsurl: 23,
|
|
5206
5171
|
cmsendpoint: 24,
|
|
@@ -5216,7 +5181,7 @@ class nn extends Wn {
|
|
|
5216
5181
|
customlocaleidentifier: 33,
|
|
5217
5182
|
countryflaghamburger: 0
|
|
5218
5183
|
},
|
|
5219
|
-
|
|
5184
|
+
Jo,
|
|
5220
5185
|
[-1, -1, -1]
|
|
5221
5186
|
);
|
|
5222
5187
|
}
|
|
@@ -5299,56 +5264,56 @@ class nn extends Wn {
|
|
|
5299
5264
|
this.$$set({ countryflaghamburger: t }), D();
|
|
5300
5265
|
}
|
|
5301
5266
|
}
|
|
5302
|
-
|
|
5303
|
-
const
|
|
5267
|
+
Dn(Kr, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5268
|
+
const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5304
5269
|
__proto__: null,
|
|
5305
|
-
default:
|
|
5270
|
+
default: Kr
|
|
5306
5271
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5307
5272
|
export {
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5273
|
+
ye as $,
|
|
5274
|
+
q as A,
|
|
5275
|
+
Bt as B,
|
|
5276
|
+
He as C,
|
|
5277
|
+
te as D,
|
|
5278
|
+
pe as E,
|
|
5279
|
+
$ as F,
|
|
5280
|
+
Vo as G,
|
|
5281
|
+
ma as H,
|
|
5282
|
+
Re as I,
|
|
5283
|
+
zo as J,
|
|
5284
|
+
Zo as K,
|
|
5285
|
+
Qo as L,
|
|
5286
|
+
ee as M,
|
|
5287
|
+
Wo as N,
|
|
5288
|
+
Xo as O,
|
|
5289
|
+
pa as P,
|
|
5290
|
+
da as Q,
|
|
5291
|
+
ba as R,
|
|
5292
|
+
kn as S,
|
|
5328
5293
|
Te as a,
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5294
|
+
Zr as b,
|
|
5295
|
+
Dn as c,
|
|
5296
|
+
xn as d,
|
|
5297
|
+
sa as e,
|
|
5333
5298
|
D as f,
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5299
|
+
_ as g,
|
|
5300
|
+
U as h,
|
|
5301
|
+
Fn as i,
|
|
5302
|
+
g as j,
|
|
5338
5303
|
fa as k,
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
v,
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5304
|
+
F as l,
|
|
5305
|
+
y as m,
|
|
5306
|
+
re as n,
|
|
5307
|
+
ha as o,
|
|
5308
|
+
ca as p,
|
|
5309
|
+
ua as q,
|
|
5310
|
+
ga as r,
|
|
5311
|
+
yr as s,
|
|
5312
|
+
Cn as t,
|
|
5313
|
+
la as u,
|
|
5314
|
+
I as v,
|
|
5315
|
+
ge as w,
|
|
5316
|
+
vn as x,
|
|
5317
|
+
Mn as y,
|
|
5318
|
+
xr as z
|
|
5354
5319
|
};
|