@everymatrix/casino-hamburger-menu-nd 1.74.3 → 1.74.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoHamburgerMenuNd-DfEuISYI.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-Dx5ne9Tu.js → CasinoHamburgerMenuNd-DvsaFjKg.js} +760 -746
- package/components/{CasinoHamburgerMenuNd-CZKU1een.js → CasinoHamburgerMenuNd-Y9oVYPBS.js} +779 -765
- package/es2015/casino-hamburger-menu-nd.cjs +1 -1
- package/es2015/casino-hamburger-menu-nd.js +1 -1
- package/esnext/casino-hamburger-menu-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHamburgerMenuNd-DEeyYzC7.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function cr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ht() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function de(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(cr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function dt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function fr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let Oe;
|
|
19
19
|
function K(e, t) {
|
|
20
20
|
return e === t ? !0 : (Oe || (Oe = document.createElement("a")), Oe.href = t, e === Oe.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function an(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function dr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function cr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function sn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(dr(t, r));
|
|
36
36
|
}
|
|
37
37
|
function b(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ln(e, t, r) {
|
|
41
|
+
const n = un(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = y("style");
|
|
44
|
+
i.id = t, i.textContent = r, hn(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function un(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function an(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function hn(e, t) {
|
|
58
58
|
return b(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -71,10 +71,10 @@ function we(e, t) {
|
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function y(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Tt(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function ee(e) {
|
|
@@ -83,7 +83,7 @@ function ee(e) {
|
|
|
83
83
|
function U() {
|
|
84
84
|
return ee(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function mr() {
|
|
87
87
|
return ee("");
|
|
88
88
|
}
|
|
89
89
|
function te(e, t, r, n) {
|
|
@@ -92,17 +92,17 @@ function te(e, t, r, n) {
|
|
|
92
92
|
function p(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function cn(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
98
|
function me(e, t) {
|
|
99
99
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
100
|
t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ot(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Mt(e, t, r) {
|
|
106
106
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
107
107
|
const i = e.options[n];
|
|
108
108
|
if (i.__value === t) {
|
|
@@ -112,11 +112,11 @@ function Tt(e, t, r) {
|
|
|
112
112
|
}
|
|
113
113
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function fn(e) {
|
|
116
116
|
const t = e.querySelector(":checked");
|
|
117
117
|
return t && t.__value;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function dn(e) {
|
|
120
120
|
const t = {};
|
|
121
121
|
return e.childNodes.forEach(
|
|
122
122
|
/** @param {Element} node */
|
|
@@ -125,24 +125,24 @@ function hn(e) {
|
|
|
125
125
|
}
|
|
126
126
|
), t;
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
128
|
+
let _e;
|
|
129
|
+
function ye(e) {
|
|
130
|
+
_e = e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
if (!
|
|
132
|
+
function mn() {
|
|
133
|
+
if (!_e)
|
|
134
134
|
throw new Error("Function called outside component initialization");
|
|
135
|
-
return
|
|
135
|
+
return _e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function pn(e) {
|
|
138
|
+
mn().$$.on_mount.push(e);
|
|
139
139
|
}
|
|
140
140
|
const ae = [], Ce = [];
|
|
141
141
|
let se = [];
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
142
|
+
const At = [], gn = /* @__PURE__ */ Promise.resolve();
|
|
143
|
+
let Ke = !1;
|
|
144
|
+
function bn() {
|
|
145
|
+
Ke || (Ke = !0, gn.then(D));
|
|
146
146
|
}
|
|
147
147
|
function Ne(e) {
|
|
148
148
|
se.push(e);
|
|
@@ -152,17 +152,17 @@ let ie = 0;
|
|
|
152
152
|
function D() {
|
|
153
153
|
if (ie !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = _e;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
158
|
for (; ie < ae.length; ) {
|
|
159
159
|
const t = ae[ie];
|
|
160
|
-
ie++,
|
|
160
|
+
ie++, ye(t), vn(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
163
|
throw ae.length = 0, ie = 0, t;
|
|
164
164
|
}
|
|
165
|
-
for (
|
|
165
|
+
for (ye(null), ae.length = 0, ie = 0; Ce.length; )
|
|
166
166
|
Ce.pop()();
|
|
167
167
|
for (let t = 0; t < se.length; t += 1) {
|
|
168
168
|
const r = se[t];
|
|
@@ -170,83 +170,83 @@ function D() {
|
|
|
170
170
|
}
|
|
171
171
|
se.length = 0;
|
|
172
172
|
} while (ae.length);
|
|
173
|
-
for (;
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
for (; At.length; )
|
|
174
|
+
At.pop()();
|
|
175
|
+
Ke = !1, Ve.clear(), ye(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function vn(e) {
|
|
178
178
|
if (e.fragment !== null) {
|
|
179
179
|
e.update(), de(e.before_update);
|
|
180
180
|
const t = e.dirty;
|
|
181
181
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function yn(e) {
|
|
185
185
|
const t = [], r = [];
|
|
186
186
|
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
function
|
|
190
|
-
e && e.i && (
|
|
188
|
+
const _n = /* @__PURE__ */ new Set();
|
|
189
|
+
function xn(e, t) {
|
|
190
|
+
e && e.i && (_n.delete(e), e.i(t));
|
|
191
191
|
}
|
|
192
192
|
function Q(e) {
|
|
193
193
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function En(e, t, r) {
|
|
196
196
|
const { fragment: n, after_update: i } = e.$$;
|
|
197
197
|
n && n.m(t, r), Ne(() => {
|
|
198
|
-
const o = e.$$.on_mount.map(
|
|
198
|
+
const o = e.$$.on_mount.map(cr).filter(dt);
|
|
199
199
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : de(o), e.$$.on_mount = [];
|
|
200
200
|
}), i.forEach(Ne);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function wn(e, t) {
|
|
203
203
|
const r = e.$$;
|
|
204
|
-
r.fragment !== null && (
|
|
204
|
+
r.fragment !== null && (yn(r.after_update), de(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
e.$$.dirty[0] === -1 && (ae.push(e),
|
|
206
|
+
function Sn(e, t) {
|
|
207
|
+
e.$$.dirty[0] === -1 && (ae.push(e), bn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
209
|
+
function Hn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
210
|
+
const l = _e;
|
|
211
|
+
ye(e);
|
|
212
|
+
const u = e.$$ = {
|
|
213
213
|
fragment: null,
|
|
214
214
|
ctx: [],
|
|
215
215
|
// state
|
|
216
216
|
props: o,
|
|
217
217
|
update: $,
|
|
218
218
|
not_equal: i,
|
|
219
|
-
bound:
|
|
219
|
+
bound: Ht(),
|
|
220
220
|
// lifecycle
|
|
221
221
|
on_mount: [],
|
|
222
222
|
on_destroy: [],
|
|
223
223
|
on_disconnect: [],
|
|
224
224
|
before_update: [],
|
|
225
225
|
after_update: [],
|
|
226
|
-
context: new Map(t.context || (
|
|
226
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
227
227
|
// everything else
|
|
228
|
-
callbacks:
|
|
228
|
+
callbacks: Ht(),
|
|
229
229
|
dirty: s,
|
|
230
230
|
skip_bound: !1,
|
|
231
|
-
root: t.target ||
|
|
231
|
+
root: t.target || l.$$.root
|
|
232
232
|
};
|
|
233
|
-
a && a(
|
|
233
|
+
a && a(u.root);
|
|
234
234
|
let h = !1;
|
|
235
|
-
if (
|
|
235
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
236
236
|
const g = m.length ? m[0] : f;
|
|
237
|
-
return
|
|
238
|
-
}),
|
|
237
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Sn(e, c)), f;
|
|
238
|
+
}) : [], u.update(), h = !0, de(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
239
239
|
if (t.hydrate) {
|
|
240
|
-
const c =
|
|
241
|
-
|
|
240
|
+
const c = cn(t.target);
|
|
241
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
242
242
|
} else
|
|
243
|
-
|
|
244
|
-
t.intro &&
|
|
243
|
+
u.fragment && u.fragment.c();
|
|
244
|
+
t.intro && xn(e.$$.fragment), En(e, t.target, t.anchor), D();
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
ye(l);
|
|
247
247
|
}
|
|
248
|
-
let
|
|
249
|
-
typeof HTMLElement == "function" && (
|
|
248
|
+
let pr;
|
|
249
|
+
typeof HTMLElement == "function" && (pr = class extends HTMLElement {
|
|
250
250
|
/** The Svelte component constructor */
|
|
251
251
|
$$ctor;
|
|
252
252
|
/** Slots */
|
|
@@ -288,24 +288,24 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o =
|
|
291
|
+
o = y("slot"), i !== "default" && p(o, "name", i);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
|
-
m: function(
|
|
298
|
-
F(
|
|
297
|
+
m: function(l, u) {
|
|
298
|
+
F(l, o, u);
|
|
299
299
|
},
|
|
300
|
-
d: function(
|
|
301
|
-
|
|
300
|
+
d: function(l) {
|
|
301
|
+
l && I(o);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const t = {}, r =
|
|
308
|
+
const t = {}, r = dn(this);
|
|
309
309
|
for (const i of this.$$s)
|
|
310
310
|
i in r && (t[i] = [e(i)]);
|
|
311
311
|
for (const i of this.attributes) {
|
|
@@ -392,8 +392,8 @@ function Be(e, t, r, n) {
|
|
|
392
392
|
return t;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let a = class extends
|
|
395
|
+
function Tn(e, t, r, n, i, o) {
|
|
396
|
+
let a = class extends pr {
|
|
397
397
|
constructor() {
|
|
398
398
|
super(e, r, i), this.$$p_d = t;
|
|
399
399
|
}
|
|
@@ -408,8 +408,8 @@ function wn(e, t, r, n, i, o) {
|
|
|
408
408
|
get() {
|
|
409
409
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
410
410
|
},
|
|
411
|
-
set(
|
|
412
|
-
|
|
411
|
+
set(l) {
|
|
412
|
+
l = Be(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}), n.forEach((s) => {
|
|
@@ -421,7 +421,7 @@ function wn(e, t, r, n, i, o) {
|
|
|
421
421
|
}), e.element = /** @type {any} */
|
|
422
422
|
a, a;
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class On {
|
|
425
425
|
/**
|
|
426
426
|
* ### PRIVATE API
|
|
427
427
|
*
|
|
@@ -440,7 +440,7 @@ class Sn {
|
|
|
440
440
|
$$set = void 0;
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
443
|
-
|
|
443
|
+
wn(this, 1), this.$destroy = $;
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,7 +449,7 @@ class Sn {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!dt(r))
|
|
453
453
|
return $;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,11 +462,11 @@ class Sn {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !an(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
468
|
+
const Mn = "4";
|
|
469
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mn);
|
|
470
470
|
/*! *****************************************************************************
|
|
471
471
|
Copyright (c) Microsoft Corporation.
|
|
472
472
|
|
|
@@ -481,18 +481,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
481
481
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
482
482
|
PERFORMANCE OF THIS SOFTWARE.
|
|
483
483
|
***************************************************************************** */
|
|
484
|
-
var
|
|
485
|
-
return
|
|
484
|
+
var et = function(e, t) {
|
|
485
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
486
486
|
r.__proto__ = n;
|
|
487
487
|
} || function(r, n) {
|
|
488
488
|
for (var i in n)
|
|
489
489
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
490
|
-
},
|
|
490
|
+
}, et(e, t);
|
|
491
491
|
};
|
|
492
492
|
function Y(e, t) {
|
|
493
493
|
if (typeof t != "function" && t !== null)
|
|
494
494
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
495
|
-
|
|
495
|
+
et(e, t);
|
|
496
496
|
function r() {
|
|
497
497
|
this.constructor = e;
|
|
498
498
|
}
|
|
@@ -508,7 +508,7 @@ var w = function() {
|
|
|
508
508
|
return t;
|
|
509
509
|
}, w.apply(this, arguments);
|
|
510
510
|
};
|
|
511
|
-
function
|
|
511
|
+
function An(e, t) {
|
|
512
512
|
var r = {};
|
|
513
513
|
for (var n in e)
|
|
514
514
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -517,7 +517,7 @@ function Tn(e, t) {
|
|
|
517
517
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
518
518
|
return r;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function tt(e) {
|
|
521
521
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
522
522
|
if (r)
|
|
523
523
|
return r.call(e);
|
|
@@ -529,7 +529,7 @@ function et(e) {
|
|
|
529
529
|
};
|
|
530
530
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function rt(e, t) {
|
|
533
533
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
534
534
|
if (!r)
|
|
535
535
|
return e;
|
|
@@ -549,7 +549,7 @@ function tt(e, t) {
|
|
|
549
549
|
}
|
|
550
550
|
return o;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function le(e, t, r) {
|
|
553
553
|
if (r || arguments.length === 2)
|
|
554
554
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
555
555
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -558,13 +558,13 @@ function ue(e, t, r) {
|
|
|
558
558
|
function Z(e) {
|
|
559
559
|
return typeof e == "function";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function gr(e) {
|
|
562
562
|
var t = function(n) {
|
|
563
563
|
Error.call(n), n.stack = new Error().stack;
|
|
564
564
|
}, r = e(t);
|
|
565
565
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
566
566
|
}
|
|
567
|
-
var Xe =
|
|
567
|
+
var Xe = gr(function(e) {
|
|
568
568
|
return function(r) {
|
|
569
569
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
570
570
|
` + r.map(function(n, i) {
|
|
@@ -573,7 +573,7 @@ var Xe = mr(function(e) {
|
|
|
573
573
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
574
574
|
};
|
|
575
575
|
});
|
|
576
|
-
function
|
|
576
|
+
function nt(e, t) {
|
|
577
577
|
if (e) {
|
|
578
578
|
var r = e.indexOf(t);
|
|
579
579
|
0 <= r && e.splice(r, 1);
|
|
@@ -591,15 +591,15 @@ var Fe = function() {
|
|
|
591
591
|
if (a)
|
|
592
592
|
if (this._parentage = null, Array.isArray(a))
|
|
593
593
|
try {
|
|
594
|
-
for (var s =
|
|
595
|
-
var
|
|
596
|
-
|
|
594
|
+
for (var s = tt(a), l = s.next(); !l.done; l = s.next()) {
|
|
595
|
+
var u = l.value;
|
|
596
|
+
u.remove(this);
|
|
597
597
|
}
|
|
598
|
-
} catch (
|
|
599
|
-
t = { error:
|
|
598
|
+
} catch (v) {
|
|
599
|
+
t = { error: v };
|
|
600
600
|
} finally {
|
|
601
601
|
try {
|
|
602
|
-
|
|
602
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
603
603
|
} finally {
|
|
604
604
|
if (t)
|
|
605
605
|
throw t.error;
|
|
@@ -611,23 +611,23 @@ var Fe = function() {
|
|
|
611
611
|
if (Z(h))
|
|
612
612
|
try {
|
|
613
613
|
h();
|
|
614
|
-
} catch (
|
|
615
|
-
o =
|
|
614
|
+
} catch (v) {
|
|
615
|
+
o = v instanceof Xe ? v.errors : [v];
|
|
616
616
|
}
|
|
617
617
|
var c = this._finalizers;
|
|
618
618
|
if (c) {
|
|
619
619
|
this._finalizers = null;
|
|
620
620
|
try {
|
|
621
|
-
for (var f =
|
|
621
|
+
for (var f = tt(c), m = f.next(); !m.done; m = f.next()) {
|
|
622
622
|
var g = m.value;
|
|
623
623
|
try {
|
|
624
|
-
|
|
625
|
-
} catch (
|
|
626
|
-
o = o ?? [],
|
|
624
|
+
Bt(g);
|
|
625
|
+
} catch (v) {
|
|
626
|
+
o = o ?? [], v instanceof Xe ? o = le(le([], rt(o)), rt(v.errors)) : o.push(v);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
} catch (
|
|
630
|
-
n = { error:
|
|
629
|
+
} catch (v) {
|
|
630
|
+
n = { error: v };
|
|
631
631
|
} finally {
|
|
632
632
|
try {
|
|
633
633
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -644,7 +644,7 @@ var Fe = function() {
|
|
|
644
644
|
var r;
|
|
645
645
|
if (t && t !== this)
|
|
646
646
|
if (this.closed)
|
|
647
|
-
|
|
647
|
+
Bt(t);
|
|
648
648
|
else {
|
|
649
649
|
if (t instanceof e) {
|
|
650
650
|
if (t.closed || t._hasParent(this))
|
|
@@ -661,56 +661,56 @@ var Fe = function() {
|
|
|
661
661
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
662
662
|
}, e.prototype._removeParent = function(t) {
|
|
663
663
|
var r = this._parentage;
|
|
664
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
664
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
|
665
665
|
}, e.prototype.remove = function(t) {
|
|
666
666
|
var r = this._finalizers;
|
|
667
|
-
r &&
|
|
667
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
|
668
668
|
}, e.EMPTY = function() {
|
|
669
669
|
var t = new e();
|
|
670
670
|
return t.closed = !0, t;
|
|
671
671
|
}(), e;
|
|
672
|
-
}(),
|
|
673
|
-
function
|
|
672
|
+
}(), br = Fe.EMPTY;
|
|
673
|
+
function vr(e) {
|
|
674
674
|
return e instanceof Fe || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Bt(e) {
|
|
677
677
|
Z(e) ? e() : e.unsubscribe();
|
|
678
678
|
}
|
|
679
|
-
var
|
|
679
|
+
var yr = {
|
|
680
680
|
onUnhandledError: null,
|
|
681
681
|
onStoppedNotification: null,
|
|
682
682
|
Promise: void 0,
|
|
683
683
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
684
684
|
useDeprecatedNextContext: !1
|
|
685
|
-
},
|
|
685
|
+
}, Bn = {
|
|
686
686
|
setTimeout: function(e, t) {
|
|
687
687
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
688
688
|
r[n - 2] = arguments[n];
|
|
689
|
-
return setTimeout.apply(void 0,
|
|
689
|
+
return setTimeout.apply(void 0, le([e, t], rt(r)));
|
|
690
690
|
},
|
|
691
691
|
clearTimeout: function(e) {
|
|
692
692
|
return clearTimeout(e);
|
|
693
693
|
},
|
|
694
694
|
delegate: void 0
|
|
695
695
|
};
|
|
696
|
-
function
|
|
697
|
-
|
|
696
|
+
function Ln(e) {
|
|
697
|
+
Bn.setTimeout(function() {
|
|
698
698
|
throw e;
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Lt() {
|
|
702
702
|
}
|
|
703
703
|
function Le(e) {
|
|
704
704
|
e();
|
|
705
705
|
}
|
|
706
|
-
var
|
|
706
|
+
var _r = function(e) {
|
|
707
707
|
Y(t, e);
|
|
708
708
|
function t(r) {
|
|
709
709
|
var n = e.call(this) || this;
|
|
710
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
710
|
+
return n.isStopped = !1, r ? (n.destination = r, vr(r) && r.add(n)) : n.destination = Nn, n;
|
|
711
711
|
}
|
|
712
712
|
return t.create = function(r, n, i) {
|
|
713
|
-
return new
|
|
713
|
+
return new it(r, n, i);
|
|
714
714
|
}, t.prototype.next = function(r) {
|
|
715
715
|
this.isStopped || this._next(r);
|
|
716
716
|
}, t.prototype.error = function(r) {
|
|
@@ -734,7 +734,11 @@ var br = function(e) {
|
|
|
734
734
|
this.unsubscribe();
|
|
735
735
|
}
|
|
736
736
|
}, t;
|
|
737
|
-
}(Fe),
|
|
737
|
+
}(Fe), Pn = Function.prototype.bind;
|
|
738
|
+
function ze(e, t) {
|
|
739
|
+
return Pn.call(e, t);
|
|
740
|
+
}
|
|
741
|
+
var In = function() {
|
|
738
742
|
function e(t) {
|
|
739
743
|
this.partialObserver = t;
|
|
740
744
|
}
|
|
@@ -765,43 +769,55 @@ var br = function(e) {
|
|
|
765
769
|
Me(r);
|
|
766
770
|
}
|
|
767
771
|
}, e;
|
|
768
|
-
}(),
|
|
772
|
+
}(), it = function(e) {
|
|
769
773
|
Y(t, e);
|
|
770
774
|
function t(r, n, i) {
|
|
771
775
|
var o = e.call(this) || this, a;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
776
|
+
if (Z(r) || !r)
|
|
777
|
+
a = {
|
|
778
|
+
next: r ?? void 0,
|
|
779
|
+
error: n ?? void 0,
|
|
780
|
+
complete: i ?? void 0
|
|
781
|
+
};
|
|
782
|
+
else {
|
|
783
|
+
var s;
|
|
784
|
+
o && yr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
785
|
+
return o.unsubscribe();
|
|
786
|
+
}, a = {
|
|
787
|
+
next: r.next && ze(r.next, s),
|
|
788
|
+
error: r.error && ze(r.error, s),
|
|
789
|
+
complete: r.complete && ze(r.complete, s)
|
|
790
|
+
}) : a = r;
|
|
791
|
+
}
|
|
792
|
+
return o.destination = new In(a), o;
|
|
777
793
|
}
|
|
778
794
|
return t;
|
|
779
|
-
}(
|
|
795
|
+
}(_r);
|
|
780
796
|
function Me(e) {
|
|
781
|
-
|
|
797
|
+
Ln(e);
|
|
782
798
|
}
|
|
783
|
-
function
|
|
799
|
+
function Cn(e) {
|
|
784
800
|
throw e;
|
|
785
801
|
}
|
|
786
|
-
var
|
|
802
|
+
var Nn = {
|
|
787
803
|
closed: !0,
|
|
788
|
-
next:
|
|
789
|
-
error:
|
|
790
|
-
complete:
|
|
791
|
-
},
|
|
804
|
+
next: Lt,
|
|
805
|
+
error: Cn,
|
|
806
|
+
complete: Lt
|
|
807
|
+
}, Rn = function() {
|
|
792
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
793
809
|
}();
|
|
794
|
-
function
|
|
810
|
+
function Un(e) {
|
|
795
811
|
return e;
|
|
796
812
|
}
|
|
797
|
-
function
|
|
798
|
-
return e.length === 0 ?
|
|
813
|
+
function Fn(e) {
|
|
814
|
+
return e.length === 0 ? Un : e.length === 1 ? e[0] : function(r) {
|
|
799
815
|
return e.reduce(function(n, i) {
|
|
800
816
|
return i(n);
|
|
801
817
|
}, r);
|
|
802
818
|
};
|
|
803
819
|
}
|
|
804
|
-
var
|
|
820
|
+
var Pt = function() {
|
|
805
821
|
function e(t) {
|
|
806
822
|
t && (this._subscribe = t);
|
|
807
823
|
}
|
|
@@ -809,10 +825,10 @@ var Bt = function() {
|
|
|
809
825
|
var r = new e();
|
|
810
826
|
return r.source = this, r.operator = t, r;
|
|
811
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
812
|
-
var i = this, o =
|
|
828
|
+
var i = this, o = kn(t) ? t : new it(t, r, n);
|
|
813
829
|
return Le(function() {
|
|
814
|
-
var a = i, s = a.operator,
|
|
815
|
-
o.add(s ? s.call(o,
|
|
830
|
+
var a = i, s = a.operator, l = a.source;
|
|
831
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
816
832
|
}), o;
|
|
817
833
|
}, e.prototype._trySubscribe = function(t) {
|
|
818
834
|
try {
|
|
@@ -822,13 +838,13 @@ var Bt = function() {
|
|
|
822
838
|
}
|
|
823
839
|
}, e.prototype.forEach = function(t, r) {
|
|
824
840
|
var n = this;
|
|
825
|
-
return r =
|
|
826
|
-
var a = new
|
|
841
|
+
return r = It(r), new r(function(i, o) {
|
|
842
|
+
var a = new it({
|
|
827
843
|
next: function(s) {
|
|
828
844
|
try {
|
|
829
845
|
t(s);
|
|
830
|
-
} catch (
|
|
831
|
-
o(
|
|
846
|
+
} catch (l) {
|
|
847
|
+
o(l), a.unsubscribe();
|
|
832
848
|
}
|
|
833
849
|
},
|
|
834
850
|
error: o,
|
|
@@ -839,15 +855,15 @@ var Bt = function() {
|
|
|
839
855
|
}, e.prototype._subscribe = function(t) {
|
|
840
856
|
var r;
|
|
841
857
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
842
|
-
}, e.prototype[
|
|
858
|
+
}, e.prototype[Rn] = function() {
|
|
843
859
|
return this;
|
|
844
860
|
}, e.prototype.pipe = function() {
|
|
845
861
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
846
862
|
t[r] = arguments[r];
|
|
847
|
-
return
|
|
863
|
+
return Fn(t)(this);
|
|
848
864
|
}, e.prototype.toPromise = function(t) {
|
|
849
865
|
var r = this;
|
|
850
|
-
return t =
|
|
866
|
+
return t = It(t), new t(function(n, i) {
|
|
851
867
|
var o;
|
|
852
868
|
r.subscribe(function(a) {
|
|
853
869
|
return o = a;
|
|
@@ -861,32 +877,32 @@ var Bt = function() {
|
|
|
861
877
|
return new e(t);
|
|
862
878
|
}, e;
|
|
863
879
|
}();
|
|
864
|
-
function
|
|
880
|
+
function It(e) {
|
|
865
881
|
var t;
|
|
866
|
-
return (t = e ??
|
|
882
|
+
return (t = e ?? yr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
867
883
|
}
|
|
868
|
-
function
|
|
884
|
+
function Dn(e) {
|
|
869
885
|
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
870
886
|
}
|
|
871
|
-
function
|
|
872
|
-
return e && e instanceof
|
|
887
|
+
function kn(e) {
|
|
888
|
+
return e && e instanceof _r || Dn(e) && vr(e);
|
|
873
889
|
}
|
|
874
|
-
var
|
|
890
|
+
var Gn = gr(function(e) {
|
|
875
891
|
return function() {
|
|
876
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
877
893
|
};
|
|
878
|
-
}),
|
|
894
|
+
}), xr = function(e) {
|
|
879
895
|
Y(t, e);
|
|
880
896
|
function t() {
|
|
881
897
|
var r = e.call(this) || this;
|
|
882
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
883
899
|
}
|
|
884
900
|
return t.prototype.lift = function(r) {
|
|
885
|
-
var n = new
|
|
901
|
+
var n = new Ct(this, this);
|
|
886
902
|
return n.operator = r, n;
|
|
887
903
|
}, t.prototype._throwIfClosed = function() {
|
|
888
904
|
if (this.closed)
|
|
889
|
-
throw new
|
|
905
|
+
throw new Gn();
|
|
890
906
|
}, t.prototype.next = function(r) {
|
|
891
907
|
var n = this;
|
|
892
908
|
Le(function() {
|
|
@@ -894,12 +910,12 @@ var Fn = mr(function(e) {
|
|
|
894
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
895
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
896
912
|
try {
|
|
897
|
-
for (var a =
|
|
898
|
-
var
|
|
899
|
-
|
|
913
|
+
for (var a = tt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
914
|
+
var l = s.value;
|
|
915
|
+
l.next(r);
|
|
900
916
|
}
|
|
901
|
-
} catch (
|
|
902
|
-
i = { error:
|
|
917
|
+
} catch (u) {
|
|
918
|
+
i = { error: u };
|
|
903
919
|
} finally {
|
|
904
920
|
try {
|
|
905
921
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -943,19 +959,19 @@ var Fn = mr(function(e) {
|
|
|
943
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
944
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
945
961
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
946
|
-
return o || a ?
|
|
947
|
-
n.currentObservers = null,
|
|
962
|
+
return o || a ? br : (this.currentObservers = null, s.push(r), new Fe(function() {
|
|
963
|
+
n.currentObservers = null, nt(s, r);
|
|
948
964
|
}));
|
|
949
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
950
966
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
951
967
|
i ? r.error(o) : a && r.complete();
|
|
952
968
|
}, t.prototype.asObservable = function() {
|
|
953
|
-
var r = new
|
|
969
|
+
var r = new Pt();
|
|
954
970
|
return r.source = this, r;
|
|
955
971
|
}, t.create = function(r, n) {
|
|
956
|
-
return new
|
|
972
|
+
return new Ct(r, n);
|
|
957
973
|
}, t;
|
|
958
|
-
}(
|
|
974
|
+
}(Pt), Ct = function(e) {
|
|
959
975
|
Y(t, e);
|
|
960
976
|
function t(r, n) {
|
|
961
977
|
var i = e.call(this) || this;
|
|
@@ -972,45 +988,45 @@ var Fn = mr(function(e) {
|
|
|
972
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
973
989
|
}, t.prototype._subscribe = function(r) {
|
|
974
990
|
var n, i;
|
|
975
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : br;
|
|
976
992
|
}, t;
|
|
977
|
-
}(
|
|
993
|
+
}(xr), Er = {
|
|
978
994
|
now: function() {
|
|
979
|
-
return (
|
|
995
|
+
return (Er.delegate || Date).now();
|
|
980
996
|
},
|
|
981
997
|
delegate: void 0
|
|
982
|
-
},
|
|
998
|
+
}, $n = function(e) {
|
|
983
999
|
Y(t, e);
|
|
984
1000
|
function t(r, n, i) {
|
|
985
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Er);
|
|
986
1002
|
var o = e.call(this) || this;
|
|
987
1003
|
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;
|
|
988
1004
|
}
|
|
989
1005
|
return t.prototype.next = function(r) {
|
|
990
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
991
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
1006
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1007
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
992
1008
|
}, t.prototype._subscribe = function(r) {
|
|
993
1009
|
this._throwIfClosed(), this._trimBuffer();
|
|
994
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
995
|
-
r.next(s[
|
|
1010
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1011
|
+
r.next(s[l]);
|
|
996
1012
|
return this._checkFinalizedStatuses(r), n;
|
|
997
1013
|
}, t.prototype._trimBuffer = function() {
|
|
998
1014
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
999
1015
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1000
|
-
for (var
|
|
1001
|
-
|
|
1002
|
-
|
|
1016
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1017
|
+
u = h;
|
|
1018
|
+
u && o.splice(0, u + 1);
|
|
1003
1019
|
}
|
|
1004
1020
|
}, t;
|
|
1005
|
-
}(
|
|
1006
|
-
const
|
|
1007
|
-
if (
|
|
1008
|
-
const r = new
|
|
1009
|
-
|
|
1021
|
+
}(xr);
|
|
1022
|
+
const Nt = [], Rt = {}, jn = (e, t = 0) => {
|
|
1023
|
+
if (Nt.indexOf(e) == -1) {
|
|
1024
|
+
const r = new $n(t);
|
|
1025
|
+
Rt[e] = r, Nt.push(e);
|
|
1010
1026
|
}
|
|
1011
|
-
return
|
|
1027
|
+
return Rt[e];
|
|
1012
1028
|
}, oe = [];
|
|
1013
|
-
function
|
|
1029
|
+
function Wn(e, t) {
|
|
1014
1030
|
return {
|
|
1015
1031
|
subscribe: De(e, t).subscribe
|
|
1016
1032
|
};
|
|
@@ -1019,13 +1035,13 @@ function De(e, t = $) {
|
|
|
1019
1035
|
let r;
|
|
1020
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1021
1037
|
function i(s) {
|
|
1022
|
-
if (
|
|
1023
|
-
const
|
|
1024
|
-
for (const
|
|
1025
|
-
|
|
1026
|
-
if (
|
|
1027
|
-
for (let
|
|
1028
|
-
oe[
|
|
1038
|
+
if (fr(e, s) && (e = s, r)) {
|
|
1039
|
+
const l = !oe.length;
|
|
1040
|
+
for (const u of n)
|
|
1041
|
+
u[1](), oe.push(u, e);
|
|
1042
|
+
if (l) {
|
|
1043
|
+
for (let u = 0; u < oe.length; u += 2)
|
|
1044
|
+
oe[u][0](oe[u + 1]);
|
|
1029
1045
|
oe.length = 0;
|
|
1030
1046
|
}
|
|
1031
1047
|
}
|
|
@@ -1033,10 +1049,10 @@ function De(e, t = $) {
|
|
|
1033
1049
|
function o(s) {
|
|
1034
1050
|
i(s(e));
|
|
1035
1051
|
}
|
|
1036
|
-
function a(s,
|
|
1037
|
-
const
|
|
1038
|
-
return n.add(
|
|
1039
|
-
n.delete(
|
|
1052
|
+
function a(s, l = $) {
|
|
1053
|
+
const u = [s, l];
|
|
1054
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1055
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1040
1056
|
};
|
|
1041
1057
|
}
|
|
1042
1058
|
return { set: i, update: o, subscribe: a };
|
|
@@ -1046,162 +1062,160 @@ function pe(e, t, r) {
|
|
|
1046
1062
|
if (!i.every(Boolean))
|
|
1047
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1048
1064
|
const o = t.length < 2;
|
|
1049
|
-
return
|
|
1050
|
-
let
|
|
1051
|
-
const
|
|
1065
|
+
return Wn(r, (a, s) => {
|
|
1066
|
+
let l = !1;
|
|
1067
|
+
const u = [];
|
|
1052
1068
|
let h = 0, c = $;
|
|
1053
1069
|
const f = () => {
|
|
1054
1070
|
if (h)
|
|
1055
1071
|
return;
|
|
1056
1072
|
c();
|
|
1057
|
-
const g = t(n ?
|
|
1058
|
-
o ? a(g) : c =
|
|
1073
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1074
|
+
o ? a(g) : c = dt(g) ? g : $;
|
|
1059
1075
|
}, m = i.map(
|
|
1060
|
-
(g,
|
|
1076
|
+
(g, v) => dr(
|
|
1061
1077
|
g,
|
|
1062
1078
|
(S) => {
|
|
1063
|
-
|
|
1079
|
+
u[v] = S, h &= ~(1 << v), l && f();
|
|
1064
1080
|
},
|
|
1065
1081
|
() => {
|
|
1066
|
-
h |= 1 <<
|
|
1082
|
+
h |= 1 << v;
|
|
1067
1083
|
}
|
|
1068
1084
|
)
|
|
1069
1085
|
);
|
|
1070
|
-
return
|
|
1071
|
-
de(m), c(),
|
|
1086
|
+
return l = !0, f(), function() {
|
|
1087
|
+
de(m), c(), l = !1;
|
|
1072
1088
|
};
|
|
1073
1089
|
});
|
|
1074
1090
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1091
|
+
function Vn(e) {
|
|
1092
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1077
1093
|
}
|
|
1078
|
-
var
|
|
1079
|
-
return
|
|
1094
|
+
var Xn = function(t) {
|
|
1095
|
+
return zn(t) && !Zn(t);
|
|
1080
1096
|
};
|
|
1081
|
-
function
|
|
1097
|
+
function zn(e) {
|
|
1082
1098
|
return !!e && typeof e == "object";
|
|
1083
1099
|
}
|
|
1084
|
-
function
|
|
1100
|
+
function Zn(e) {
|
|
1085
1101
|
var t = Object.prototype.toString.call(e);
|
|
1086
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1102
|
+
return t === "[object RegExp]" || t === "[object Date]" || qn(e);
|
|
1087
1103
|
}
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1090
|
-
return e.$$typeof ===
|
|
1104
|
+
var Qn = typeof Symbol == "function" && Symbol.for, Yn = Qn ? Symbol.for("react.element") : 60103;
|
|
1105
|
+
function qn(e) {
|
|
1106
|
+
return e.$$typeof === Yn;
|
|
1091
1107
|
}
|
|
1092
|
-
function
|
|
1108
|
+
function Jn(e) {
|
|
1093
1109
|
return Array.isArray(e) ? [] : {};
|
|
1094
1110
|
}
|
|
1095
1111
|
function xe(e, t) {
|
|
1096
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1112
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Jn(e), e, t) : e;
|
|
1097
1113
|
}
|
|
1098
|
-
function
|
|
1114
|
+
function Kn(e, t, r) {
|
|
1099
1115
|
return e.concat(t).map(function(n) {
|
|
1100
1116
|
return xe(n, r);
|
|
1101
1117
|
});
|
|
1102
1118
|
}
|
|
1103
|
-
function
|
|
1119
|
+
function ei(e, t) {
|
|
1104
1120
|
if (!t.customMerge)
|
|
1105
|
-
return
|
|
1121
|
+
return ue;
|
|
1106
1122
|
var r = t.customMerge(e);
|
|
1107
|
-
return typeof r == "function" ? r :
|
|
1123
|
+
return typeof r == "function" ? r : ue;
|
|
1108
1124
|
}
|
|
1109
|
-
function
|
|
1125
|
+
function ti(e) {
|
|
1110
1126
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1111
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1112
1128
|
}) : [];
|
|
1113
1129
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return Object.keys(e).concat(
|
|
1130
|
+
function Ut(e) {
|
|
1131
|
+
return Object.keys(e).concat(ti(e));
|
|
1116
1132
|
}
|
|
1117
|
-
function
|
|
1133
|
+
function wr(e, t) {
|
|
1118
1134
|
try {
|
|
1119
1135
|
return t in e;
|
|
1120
1136
|
} catch {
|
|
1121
1137
|
return !1;
|
|
1122
1138
|
}
|
|
1123
1139
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1140
|
+
function ri(e, t) {
|
|
1141
|
+
return wr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1126
1142
|
}
|
|
1127
|
-
function
|
|
1143
|
+
function ni(e, t, r) {
|
|
1128
1144
|
var n = {};
|
|
1129
|
-
return r.isMergeableObject(e) &&
|
|
1145
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
|
1130
1146
|
n[i] = xe(e[i], r);
|
|
1131
|
-
}),
|
|
1132
|
-
|
|
1147
|
+
}), Ut(t).forEach(function(i) {
|
|
1148
|
+
ri(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ei(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
1133
1149
|
}), n;
|
|
1134
1150
|
}
|
|
1135
|
-
function
|
|
1136
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1151
|
+
function ue(e, t, r) {
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
1137
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1138
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) : xe(t, r);
|
|
1139
1155
|
}
|
|
1140
|
-
|
|
1156
|
+
ue.all = function(t, r) {
|
|
1141
1157
|
if (!Array.isArray(t))
|
|
1142
1158
|
throw new Error("first argument should be an array");
|
|
1143
1159
|
return t.reduce(function(n, i) {
|
|
1144
|
-
return
|
|
1160
|
+
return ue(n, i, r);
|
|
1145
1161
|
}, {});
|
|
1146
1162
|
};
|
|
1147
|
-
var
|
|
1148
|
-
const
|
|
1149
|
-
function
|
|
1150
|
-
var r = t && t.cache ? t.cache :
|
|
1163
|
+
var ii = ue, oi = ii;
|
|
1164
|
+
const ai = /* @__PURE__ */ Vn(oi);
|
|
1165
|
+
function Ze(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
|
|
1151
1167
|
return i(e, {
|
|
1152
1168
|
cache: r,
|
|
1153
1169
|
serializer: n
|
|
1154
1170
|
});
|
|
1155
1171
|
}
|
|
1156
|
-
function
|
|
1172
|
+
function si(e) {
|
|
1157
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1158
1174
|
}
|
|
1159
|
-
function
|
|
1160
|
-
var i =
|
|
1175
|
+
function Sr(e, t, r, n) {
|
|
1176
|
+
var i = si(n) ? n : r(n), o = t.get(i);
|
|
1161
1177
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1162
1178
|
}
|
|
1163
|
-
function
|
|
1179
|
+
function Hr(e, t, r) {
|
|
1164
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1165
1181
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1166
1182
|
}
|
|
1167
|
-
function
|
|
1183
|
+
function mt(e, t, r, n, i) {
|
|
1168
1184
|
return r.bind(t, e, n, i);
|
|
1169
1185
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var r = e.length === 1 ?
|
|
1172
|
-
return
|
|
1186
|
+
function li(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? Sr : Hr;
|
|
1188
|
+
return mt(e, this, r, t.cache.create(), t.serializer);
|
|
1173
1189
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1190
|
+
function ui(e, t) {
|
|
1191
|
+
return mt(e, this, Hr, t.cache.create(), t.serializer);
|
|
1176
1192
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1193
|
+
function hi(e, t) {
|
|
1194
|
+
return mt(e, this, Sr, t.cache.create(), t.serializer);
|
|
1179
1195
|
}
|
|
1180
|
-
var
|
|
1196
|
+
var ci = function() {
|
|
1181
1197
|
return JSON.stringify(arguments);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
}()
|
|
1194
|
-
), hi = {
|
|
1198
|
+
};
|
|
1199
|
+
function pt() {
|
|
1200
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1201
|
+
}
|
|
1202
|
+
pt.prototype.get = function(e) {
|
|
1203
|
+
return this.cache[e];
|
|
1204
|
+
};
|
|
1205
|
+
pt.prototype.set = function(e, t) {
|
|
1206
|
+
this.cache[e] = t;
|
|
1207
|
+
};
|
|
1208
|
+
var fi = {
|
|
1195
1209
|
create: function() {
|
|
1196
|
-
return new
|
|
1210
|
+
return new pt();
|
|
1197
1211
|
}
|
|
1198
|
-
},
|
|
1199
|
-
variadic:
|
|
1200
|
-
monadic:
|
|
1201
|
-
},
|
|
1212
|
+
}, Qe = {
|
|
1213
|
+
variadic: ui,
|
|
1214
|
+
monadic: hi
|
|
1215
|
+
}, _;
|
|
1202
1216
|
(function(e) {
|
|
1203
1217
|
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";
|
|
1204
|
-
})(
|
|
1218
|
+
})(_ || (_ = {}));
|
|
1205
1219
|
var O;
|
|
1206
1220
|
(function(e) {
|
|
1207
1221
|
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";
|
|
@@ -1210,43 +1224,43 @@ var he;
|
|
|
1210
1224
|
(function(e) {
|
|
1211
1225
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1212
1226
|
})(he || (he = {}));
|
|
1213
|
-
function
|
|
1227
|
+
function Ft(e) {
|
|
1214
1228
|
return e.type === O.literal;
|
|
1215
1229
|
}
|
|
1216
|
-
function
|
|
1230
|
+
function di(e) {
|
|
1217
1231
|
return e.type === O.argument;
|
|
1218
1232
|
}
|
|
1219
|
-
function
|
|
1233
|
+
function Tr(e) {
|
|
1220
1234
|
return e.type === O.number;
|
|
1221
1235
|
}
|
|
1222
|
-
function
|
|
1236
|
+
function Or(e) {
|
|
1223
1237
|
return e.type === O.date;
|
|
1224
1238
|
}
|
|
1225
|
-
function
|
|
1239
|
+
function Mr(e) {
|
|
1226
1240
|
return e.type === O.time;
|
|
1227
1241
|
}
|
|
1228
|
-
function
|
|
1242
|
+
function Ar(e) {
|
|
1229
1243
|
return e.type === O.select;
|
|
1230
1244
|
}
|
|
1231
|
-
function
|
|
1245
|
+
function Br(e) {
|
|
1232
1246
|
return e.type === O.plural;
|
|
1233
1247
|
}
|
|
1234
|
-
function
|
|
1248
|
+
function mi(e) {
|
|
1235
1249
|
return e.type === O.pound;
|
|
1236
1250
|
}
|
|
1237
|
-
function
|
|
1251
|
+
function Lr(e) {
|
|
1238
1252
|
return e.type === O.tag;
|
|
1239
1253
|
}
|
|
1240
|
-
function
|
|
1254
|
+
function Pr(e) {
|
|
1241
1255
|
return !!(e && typeof e == "object" && e.type === he.number);
|
|
1242
1256
|
}
|
|
1243
|
-
function
|
|
1257
|
+
function ot(e) {
|
|
1244
1258
|
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
1245
1259
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1260
|
+
var Ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
|
|
1261
|
+
function gi(e) {
|
|
1248
1262
|
var t = {};
|
|
1249
|
-
return e.replace(
|
|
1263
|
+
return e.replace(pi, function(r) {
|
|
1250
1264
|
var n = r.length;
|
|
1251
1265
|
switch (r[0]) {
|
|
1252
1266
|
case "G":
|
|
@@ -1335,36 +1349,36 @@ function mi(e) {
|
|
|
1335
1349
|
return "";
|
|
1336
1350
|
}), t;
|
|
1337
1351
|
}
|
|
1338
|
-
var
|
|
1339
|
-
function
|
|
1352
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1353
|
+
function vi(e) {
|
|
1340
1354
|
if (e.length === 0)
|
|
1341
1355
|
throw new Error("Number skeleton cannot be empty");
|
|
1342
|
-
for (var t = e.split(
|
|
1356
|
+
for (var t = e.split(bi).filter(function(f) {
|
|
1343
1357
|
return f.length > 0;
|
|
1344
1358
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1345
1359
|
var o = i[n], a = o.split("/");
|
|
1346
1360
|
if (a.length === 0)
|
|
1347
1361
|
throw new Error("Invalid number skeleton");
|
|
1348
|
-
for (var s = a[0],
|
|
1349
|
-
var c = h[
|
|
1362
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1363
|
+
var c = h[u];
|
|
1350
1364
|
if (c.length === 0)
|
|
1351
1365
|
throw new Error("Invalid number skeleton");
|
|
1352
1366
|
}
|
|
1353
|
-
r.push({ stem: s, options:
|
|
1367
|
+
r.push({ stem: s, options: l });
|
|
1354
1368
|
}
|
|
1355
1369
|
return r;
|
|
1356
1370
|
}
|
|
1357
|
-
function
|
|
1371
|
+
function yi(e) {
|
|
1358
1372
|
return e.replace(/^(.*?)-/, "");
|
|
1359
1373
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1374
|
+
var Dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Nr = /^(0+)$/;
|
|
1375
|
+
function kt(e) {
|
|
1362
1376
|
var t = {};
|
|
1363
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1377
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
|
|
1364
1378
|
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)), "";
|
|
1365
1379
|
}), t;
|
|
1366
1380
|
}
|
|
1367
|
-
function
|
|
1381
|
+
function Rr(e) {
|
|
1368
1382
|
switch (e) {
|
|
1369
1383
|
case "sign-auto":
|
|
1370
1384
|
return {
|
|
@@ -1404,7 +1418,7 @@ function Ir(e) {
|
|
|
1404
1418
|
};
|
|
1405
1419
|
}
|
|
1406
1420
|
}
|
|
1407
|
-
function
|
|
1421
|
+
function xi(e) {
|
|
1408
1422
|
var t;
|
|
1409
1423
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1410
1424
|
notation: "engineering"
|
|
@@ -1412,17 +1426,17 @@ function _i(e) {
|
|
|
1412
1426
|
notation: "scientific"
|
|
1413
1427
|
}, e = e.slice(1)), t) {
|
|
1414
1428
|
var r = e.slice(0, 2);
|
|
1415
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1429
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nr.test(e))
|
|
1416
1430
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1417
1431
|
t.minimumIntegerDigits = e.length;
|
|
1418
1432
|
}
|
|
1419
1433
|
return t;
|
|
1420
1434
|
}
|
|
1421
|
-
function
|
|
1422
|
-
var t = {}, r =
|
|
1435
|
+
function Gt(e) {
|
|
1436
|
+
var t = {}, r = Rr(e);
|
|
1423
1437
|
return r || t;
|
|
1424
1438
|
}
|
|
1425
|
-
function
|
|
1439
|
+
function Ei(e) {
|
|
1426
1440
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1427
1441
|
var i = n[r];
|
|
1428
1442
|
switch (i.stem) {
|
|
@@ -1446,7 +1460,7 @@ function vi(e) {
|
|
|
1446
1460
|
continue;
|
|
1447
1461
|
case "measure-unit":
|
|
1448
1462
|
case "unit":
|
|
1449
|
-
t.style = "unit", t.unit =
|
|
1463
|
+
t.style = "unit", t.unit = yi(i.options[0]);
|
|
1450
1464
|
continue;
|
|
1451
1465
|
case "compact-short":
|
|
1452
1466
|
case "K":
|
|
@@ -1457,13 +1471,13 @@ function vi(e) {
|
|
|
1457
1471
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1458
1472
|
continue;
|
|
1459
1473
|
case "scientific":
|
|
1460
|
-
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1461
|
-
return w(w({},
|
|
1474
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1475
|
+
return w(w({}, l), Gt(u));
|
|
1462
1476
|
}, {}));
|
|
1463
1477
|
continue;
|
|
1464
1478
|
case "engineering":
|
|
1465
|
-
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1466
|
-
return w(w({},
|
|
1479
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1480
|
+
return w(w({}, l), Gt(u));
|
|
1467
1481
|
}, {}));
|
|
1468
1482
|
continue;
|
|
1469
1483
|
case "notation-simple":
|
|
@@ -1508,8 +1522,8 @@ function vi(e) {
|
|
|
1508
1522
|
case "integer-width":
|
|
1509
1523
|
if (i.options.length > 1)
|
|
1510
1524
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1511
|
-
i.options[0].replace(
|
|
1512
|
-
if (
|
|
1525
|
+
i.options[0].replace(_i, function(l, u, h, c, f, m) {
|
|
1526
|
+
if (u)
|
|
1513
1527
|
t.minimumIntegerDigits = h.length;
|
|
1514
1528
|
else {
|
|
1515
1529
|
if (c && f)
|
|
@@ -1521,27 +1535,27 @@ function vi(e) {
|
|
|
1521
1535
|
});
|
|
1522
1536
|
continue;
|
|
1523
1537
|
}
|
|
1524
|
-
if (
|
|
1538
|
+
if (Nr.test(i.stem)) {
|
|
1525
1539
|
t.minimumIntegerDigits = i.stem.length;
|
|
1526
1540
|
continue;
|
|
1527
1541
|
}
|
|
1528
|
-
if (
|
|
1542
|
+
if (Dt.test(i.stem)) {
|
|
1529
1543
|
if (i.options.length > 1)
|
|
1530
1544
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1531
|
-
i.stem.replace(
|
|
1532
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1545
|
+
i.stem.replace(Dt, function(l, u, h, c, f, m) {
|
|
1546
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1533
1547
|
});
|
|
1534
1548
|
var o = i.options[0];
|
|
1535
|
-
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t),
|
|
1549
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), kt(o)));
|
|
1536
1550
|
continue;
|
|
1537
1551
|
}
|
|
1538
|
-
if (
|
|
1539
|
-
t = w(w({}, t),
|
|
1552
|
+
if (Cr.test(i.stem)) {
|
|
1553
|
+
t = w(w({}, t), kt(i.stem));
|
|
1540
1554
|
continue;
|
|
1541
1555
|
}
|
|
1542
|
-
var a =
|
|
1556
|
+
var a = Rr(i.stem);
|
|
1543
1557
|
a && (t = w(w({}, t), a));
|
|
1544
|
-
var s =
|
|
1558
|
+
var s = xi(i.stem);
|
|
1545
1559
|
s && (t = w(w({}, t), s));
|
|
1546
1560
|
}
|
|
1547
1561
|
return t;
|
|
@@ -2961,23 +2975,23 @@ var Ae = {
|
|
|
2961
2975
|
"h"
|
|
2962
2976
|
]
|
|
2963
2977
|
};
|
|
2964
|
-
function
|
|
2978
|
+
function wi(e, t) {
|
|
2965
2979
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2966
2980
|
var i = e.charAt(n);
|
|
2967
2981
|
if (i === "j") {
|
|
2968
2982
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2969
2983
|
o++, n++;
|
|
2970
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2971
|
-
for ((
|
|
2972
|
-
r +=
|
|
2984
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Si(t);
|
|
2985
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2986
|
+
r += l;
|
|
2973
2987
|
for (; a-- > 0; )
|
|
2974
|
-
r =
|
|
2988
|
+
r = u + r;
|
|
2975
2989
|
} else
|
|
2976
2990
|
i === "J" ? r += "H" : r += i;
|
|
2977
2991
|
}
|
|
2978
2992
|
return r;
|
|
2979
2993
|
}
|
|
2980
|
-
function
|
|
2994
|
+
function Si(e) {
|
|
2981
2995
|
var t = e.hourCycle;
|
|
2982
2996
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2983
2997
|
e.hourCycles && // @ts-ignore
|
|
@@ -2999,20 +3013,20 @@ function Ei(e) {
|
|
|
2999
3013
|
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
|
3000
3014
|
return i[0];
|
|
3001
3015
|
}
|
|
3002
|
-
var
|
|
3016
|
+
var Ye, Hi = new RegExp("^".concat(Ir.source, "*")), Ti = new RegExp("".concat(Ir.source, "*$"));
|
|
3003
3017
|
function E(e, t) {
|
|
3004
3018
|
return { start: e, end: t };
|
|
3005
3019
|
}
|
|
3006
|
-
var
|
|
3020
|
+
var Oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Bi = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Pi = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Ci = Ii ? Number.isSafeInteger : function(e) {
|
|
3007
3021
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3008
|
-
},
|
|
3022
|
+
}, at = !0;
|
|
3009
3023
|
try {
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3024
|
+
var Ni = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3025
|
+
at = ((Ye = Ni.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3012
3026
|
} catch {
|
|
3013
|
-
|
|
3027
|
+
at = !1;
|
|
3014
3028
|
}
|
|
3015
|
-
var
|
|
3029
|
+
var $t = Oi ? (
|
|
3016
3030
|
// Native
|
|
3017
3031
|
function(t, r, n) {
|
|
3018
3032
|
return t.startsWith(r, n);
|
|
@@ -3022,7 +3036,7 @@ var kt = Hi ? (
|
|
|
3022
3036
|
function(t, r, n) {
|
|
3023
3037
|
return t.slice(n, n + r.length) === r;
|
|
3024
3038
|
}
|
|
3025
|
-
),
|
|
3039
|
+
), st = Mi ? String.fromCodePoint : (
|
|
3026
3040
|
// IE11
|
|
3027
3041
|
function() {
|
|
3028
3042
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3034,9 +3048,9 @@ var kt = Hi ? (
|
|
|
3034
3048
|
}
|
|
3035
3049
|
return n;
|
|
3036
3050
|
}
|
|
3037
|
-
),
|
|
3051
|
+
), jt = (
|
|
3038
3052
|
// native
|
|
3039
|
-
|
|
3053
|
+
Ai ? Object.fromEntries : (
|
|
3040
3054
|
// Ponyfill
|
|
3041
3055
|
function(t) {
|
|
3042
3056
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3046,7 +3060,7 @@ var kt = Hi ? (
|
|
|
3046
3060
|
return r;
|
|
3047
3061
|
}
|
|
3048
3062
|
)
|
|
3049
|
-
),
|
|
3063
|
+
), Ur = Bi ? (
|
|
3050
3064
|
// Native
|
|
3051
3065
|
function(t, r) {
|
|
3052
3066
|
return t.codePointAt(r);
|
|
@@ -3060,7 +3074,7 @@ var kt = Hi ? (
|
|
|
3060
3074
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3061
3075
|
}
|
|
3062
3076
|
}
|
|
3063
|
-
),
|
|
3077
|
+
), Ri = Li ? (
|
|
3064
3078
|
// Native
|
|
3065
3079
|
function(t) {
|
|
3066
3080
|
return t.trimStart();
|
|
@@ -3068,9 +3082,9 @@ var kt = Hi ? (
|
|
|
3068
3082
|
) : (
|
|
3069
3083
|
// Ponyfill
|
|
3070
3084
|
function(t) {
|
|
3071
|
-
return t.replace(
|
|
3085
|
+
return t.replace(Hi, "");
|
|
3072
3086
|
}
|
|
3073
|
-
),
|
|
3087
|
+
), Ui = Pi ? (
|
|
3074
3088
|
// Native
|
|
3075
3089
|
function(t) {
|
|
3076
3090
|
return t.trimEnd();
|
|
@@ -3078,32 +3092,32 @@ var kt = Hi ? (
|
|
|
3078
3092
|
) : (
|
|
3079
3093
|
// Ponyfill
|
|
3080
3094
|
function(t) {
|
|
3081
|
-
return t.replace(
|
|
3095
|
+
return t.replace(Ti, "");
|
|
3082
3096
|
}
|
|
3083
3097
|
);
|
|
3084
|
-
function
|
|
3098
|
+
function Fr(e, t) {
|
|
3085
3099
|
return new RegExp(e, t);
|
|
3086
3100
|
}
|
|
3087
|
-
var
|
|
3088
|
-
if (
|
|
3089
|
-
var
|
|
3090
|
-
|
|
3101
|
+
var lt;
|
|
3102
|
+
if (at) {
|
|
3103
|
+
var Wt = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3104
|
+
lt = function(t, r) {
|
|
3091
3105
|
var n;
|
|
3092
|
-
|
|
3093
|
-
var i =
|
|
3106
|
+
Wt.lastIndex = r;
|
|
3107
|
+
var i = Wt.exec(t);
|
|
3094
3108
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3095
3109
|
};
|
|
3096
3110
|
} else
|
|
3097
|
-
|
|
3111
|
+
lt = function(t, r) {
|
|
3098
3112
|
for (var n = []; ; ) {
|
|
3099
|
-
var i =
|
|
3100
|
-
if (i === void 0 ||
|
|
3113
|
+
var i = Ur(t, r);
|
|
3114
|
+
if (i === void 0 || Dr(i) || Gi(i))
|
|
3101
3115
|
break;
|
|
3102
3116
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3103
3117
|
}
|
|
3104
|
-
return
|
|
3118
|
+
return st.apply(void 0, n);
|
|
3105
3119
|
};
|
|
3106
|
-
var
|
|
3120
|
+
var Fi = (
|
|
3107
3121
|
/** @class */
|
|
3108
3122
|
function() {
|
|
3109
3123
|
function e(t, r) {
|
|
@@ -3133,7 +3147,7 @@ var Ri = (
|
|
|
3133
3147
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3134
3148
|
if (n)
|
|
3135
3149
|
break;
|
|
3136
|
-
return this.error(
|
|
3150
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3137
3151
|
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3138
3152
|
var a = this.parseTag(t, r);
|
|
3139
3153
|
if (a.err)
|
|
@@ -3168,9 +3182,9 @@ var Ri = (
|
|
|
3168
3182
|
var a = o.val, s = this.clonePosition();
|
|
3169
3183
|
if (this.bumpIf("</")) {
|
|
3170
3184
|
if (this.isEOF() || !ut(this.char()))
|
|
3171
|
-
return this.error(
|
|
3172
|
-
var
|
|
3173
|
-
return i !==
|
|
3185
|
+
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3186
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3187
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3174
3188
|
val: {
|
|
3175
3189
|
type: O.tag,
|
|
3176
3190
|
value: i,
|
|
@@ -3178,14 +3192,14 @@ var Ri = (
|
|
|
3178
3192
|
location: E(n, this.clonePosition())
|
|
3179
3193
|
},
|
|
3180
3194
|
err: null
|
|
3181
|
-
} : this.error(
|
|
3195
|
+
} : this.error(_.INVALID_TAG, E(s, this.clonePosition())));
|
|
3182
3196
|
} else
|
|
3183
|
-
return this.error(
|
|
3197
|
+
return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
3184
3198
|
} else
|
|
3185
|
-
return this.error(
|
|
3199
|
+
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3186
3200
|
}, e.prototype.parseTagName = function() {
|
|
3187
3201
|
var t = this.offset();
|
|
3188
|
-
for (this.bump(); !this.isEOF() &&
|
|
3202
|
+
for (this.bump(); !this.isEOF() && ki(this.char()); )
|
|
3189
3203
|
this.bump();
|
|
3190
3204
|
return this.message.slice(t, this.offset());
|
|
3191
3205
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3207,14 +3221,14 @@ var Ri = (
|
|
|
3207
3221
|
}
|
|
3208
3222
|
break;
|
|
3209
3223
|
}
|
|
3210
|
-
var
|
|
3224
|
+
var l = E(n, this.clonePosition());
|
|
3211
3225
|
return {
|
|
3212
|
-
val: { type: O.literal, value: i, location:
|
|
3226
|
+
val: { type: O.literal, value: i, location: l },
|
|
3213
3227
|
err: null
|
|
3214
3228
|
};
|
|
3215
3229
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3216
3230
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3217
|
-
!
|
|
3231
|
+
!Di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3218
3232
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3219
3233
|
if (this.isEOF() || this.char() !== 39)
|
|
3220
3234
|
return null;
|
|
@@ -3248,23 +3262,23 @@ var Ri = (
|
|
|
3248
3262
|
r.push(n);
|
|
3249
3263
|
this.bump();
|
|
3250
3264
|
}
|
|
3251
|
-
return
|
|
3265
|
+
return st.apply(void 0, r);
|
|
3252
3266
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3253
3267
|
if (this.isEOF())
|
|
3254
3268
|
return null;
|
|
3255
3269
|
var n = this.char();
|
|
3256
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3270
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
|
|
3257
3271
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3258
3272
|
var n = this.clonePosition();
|
|
3259
3273
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3260
|
-
return this.error(
|
|
3274
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3261
3275
|
if (this.char() === 125)
|
|
3262
|
-
return this.bump(), this.error(
|
|
3276
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
3263
3277
|
var i = this.parseIdentifierIfPossible().value;
|
|
3264
3278
|
if (!i)
|
|
3265
|
-
return this.error(
|
|
3279
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3266
3280
|
if (this.bumpSpace(), this.isEOF())
|
|
3267
|
-
return this.error(
|
|
3281
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3268
3282
|
switch (this.char()) {
|
|
3269
3283
|
case 125:
|
|
3270
3284
|
return this.bump(), {
|
|
@@ -3277,61 +3291,61 @@ var Ri = (
|
|
|
3277
3291
|
err: null
|
|
3278
3292
|
};
|
|
3279
3293
|
case 44:
|
|
3280
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3294
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3281
3295
|
default:
|
|
3282
|
-
return this.error(
|
|
3296
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3283
3297
|
}
|
|
3284
3298
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3285
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3299
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
|
3286
3300
|
this.bumpTo(i);
|
|
3287
3301
|
var o = this.clonePosition(), a = E(t, o);
|
|
3288
3302
|
return { value: n, location: a };
|
|
3289
3303
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3290
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3304
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3291
3305
|
switch (s) {
|
|
3292
3306
|
case "":
|
|
3293
|
-
return this.error(
|
|
3307
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
3294
3308
|
case "number":
|
|
3295
3309
|
case "date":
|
|
3296
3310
|
case "time": {
|
|
3297
3311
|
this.bumpSpace();
|
|
3298
|
-
var
|
|
3312
|
+
var u = null;
|
|
3299
3313
|
if (this.bumpIf(",")) {
|
|
3300
3314
|
this.bumpSpace();
|
|
3301
3315
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3302
3316
|
if (c.err)
|
|
3303
3317
|
return c;
|
|
3304
|
-
var f =
|
|
3318
|
+
var f = Ui(c.val);
|
|
3305
3319
|
if (f.length === 0)
|
|
3306
|
-
return this.error(
|
|
3320
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3307
3321
|
var m = E(h, this.clonePosition());
|
|
3308
|
-
|
|
3322
|
+
u = { style: f, styleLocation: m };
|
|
3309
3323
|
}
|
|
3310
3324
|
var g = this.tryParseArgumentClose(i);
|
|
3311
3325
|
if (g.err)
|
|
3312
3326
|
return g;
|
|
3313
|
-
var
|
|
3314
|
-
if (
|
|
3315
|
-
var S =
|
|
3327
|
+
var v = E(i, this.clonePosition());
|
|
3328
|
+
if (u && $t(u?.style, "::", 0)) {
|
|
3329
|
+
var S = Ri(u.style.slice(2));
|
|
3316
3330
|
if (s === "number") {
|
|
3317
|
-
var c = this.parseNumberSkeletonFromString(S,
|
|
3331
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3318
3332
|
return c.err ? c : {
|
|
3319
|
-
val: { type: O.number, value: n, location:
|
|
3333
|
+
val: { type: O.number, value: n, location: v, style: c.val },
|
|
3320
3334
|
err: null
|
|
3321
3335
|
};
|
|
3322
3336
|
} else {
|
|
3323
3337
|
if (S.length === 0)
|
|
3324
|
-
return this.error(
|
|
3338
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
3325
3339
|
var T = S;
|
|
3326
|
-
this.locale && (T =
|
|
3340
|
+
this.locale && (T = wi(S, this.locale));
|
|
3327
3341
|
var f = {
|
|
3328
3342
|
type: he.dateTime,
|
|
3329
3343
|
pattern: T,
|
|
3330
|
-
location:
|
|
3331
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3344
|
+
location: u.styleLocation,
|
|
3345
|
+
parsedOptions: this.shouldParseSkeletons ? gi(T) : {}
|
|
3332
3346
|
}, P = s === "date" ? O.date : O.time;
|
|
3333
3347
|
return {
|
|
3334
|
-
val: { type: P, value: n, location:
|
|
3348
|
+
val: { type: P, value: n, location: v, style: f },
|
|
3335
3349
|
err: null
|
|
3336
3350
|
};
|
|
3337
3351
|
}
|
|
@@ -3340,8 +3354,8 @@ var Ri = (
|
|
|
3340
3354
|
val: {
|
|
3341
3355
|
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3342
3356
|
value: n,
|
|
3343
|
-
location:
|
|
3344
|
-
style: (o =
|
|
3357
|
+
location: v,
|
|
3358
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3345
3359
|
},
|
|
3346
3360
|
err: null
|
|
3347
3361
|
};
|
|
@@ -3351,14 +3365,14 @@ var Ri = (
|
|
|
3351
3365
|
case "select": {
|
|
3352
3366
|
var B = this.clonePosition();
|
|
3353
3367
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3354
|
-
return this.error(
|
|
3368
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B, w({}, B)));
|
|
3355
3369
|
this.bumpSpace();
|
|
3356
3370
|
var G = this.parseIdentifierIfPossible(), C = 0;
|
|
3357
3371
|
if (s !== "select" && G.value === "offset") {
|
|
3358
3372
|
if (!this.bumpIf(":"))
|
|
3359
|
-
return this.error(
|
|
3373
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3360
3374
|
this.bumpSpace();
|
|
3361
|
-
var c = this.tryParseDecimalInteger(
|
|
3375
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3362
3376
|
if (c.err)
|
|
3363
3377
|
return c;
|
|
3364
3378
|
this.bumpSpace(), G = this.parseIdentifierIfPossible(), C = c.val;
|
|
@@ -3374,7 +3388,7 @@ var Ri = (
|
|
|
3374
3388
|
val: {
|
|
3375
3389
|
type: O.select,
|
|
3376
3390
|
value: n,
|
|
3377
|
-
options:
|
|
3391
|
+
options: jt(V.val),
|
|
3378
3392
|
location: X
|
|
3379
3393
|
},
|
|
3380
3394
|
err: null
|
|
@@ -3382,7 +3396,7 @@ var Ri = (
|
|
|
3382
3396
|
val: {
|
|
3383
3397
|
type: O.plural,
|
|
3384
3398
|
value: n,
|
|
3385
|
-
options:
|
|
3399
|
+
options: jt(V.val),
|
|
3386
3400
|
offset: C,
|
|
3387
3401
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3388
3402
|
location: X
|
|
@@ -3391,10 +3405,10 @@ var Ri = (
|
|
|
3391
3405
|
};
|
|
3392
3406
|
}
|
|
3393
3407
|
default:
|
|
3394
|
-
return this.error(
|
|
3408
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
3395
3409
|
}
|
|
3396
3410
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3397
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3411
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3398
3412
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3399
3413
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3400
3414
|
var n = this.char();
|
|
@@ -3403,7 +3417,7 @@ var Ri = (
|
|
|
3403
3417
|
this.bump();
|
|
3404
3418
|
var i = this.clonePosition();
|
|
3405
3419
|
if (!this.bumpUntil("'"))
|
|
3406
|
-
return this.error(
|
|
3420
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3407
3421
|
this.bump();
|
|
3408
3422
|
break;
|
|
3409
3423
|
}
|
|
@@ -3433,52 +3447,52 @@ var Ri = (
|
|
|
3433
3447
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3434
3448
|
var n = [];
|
|
3435
3449
|
try {
|
|
3436
|
-
n =
|
|
3450
|
+
n = vi(t);
|
|
3437
3451
|
} catch {
|
|
3438
|
-
return this.error(
|
|
3452
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3439
3453
|
}
|
|
3440
3454
|
return {
|
|
3441
3455
|
val: {
|
|
3442
3456
|
type: he.number,
|
|
3443
3457
|
tokens: n,
|
|
3444
3458
|
location: r,
|
|
3445
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3459
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
|
|
3446
3460
|
},
|
|
3447
3461
|
err: null
|
|
3448
3462
|
};
|
|
3449
3463
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3450
|
-
for (var o, a = !1, s = [],
|
|
3451
|
-
if (
|
|
3464
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3465
|
+
if (u.length === 0) {
|
|
3452
3466
|
var c = this.clonePosition();
|
|
3453
3467
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3454
|
-
var f = this.tryParseDecimalInteger(
|
|
3468
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3455
3469
|
if (f.err)
|
|
3456
3470
|
return f;
|
|
3457
|
-
h = E(c, this.clonePosition()),
|
|
3471
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3458
3472
|
} else
|
|
3459
3473
|
break;
|
|
3460
3474
|
}
|
|
3461
|
-
if (
|
|
3462
|
-
return this.error(r === "select" ?
|
|
3463
|
-
|
|
3475
|
+
if (l.has(u))
|
|
3476
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3477
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3464
3478
|
var m = this.clonePosition();
|
|
3465
3479
|
if (!this.bumpIf("{"))
|
|
3466
|
-
return this.error(r === "select" ?
|
|
3480
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3467
3481
|
var g = this.parseMessage(t + 1, r, n);
|
|
3468
3482
|
if (g.err)
|
|
3469
3483
|
return g;
|
|
3470
|
-
var
|
|
3471
|
-
if (
|
|
3472
|
-
return
|
|
3484
|
+
var v = this.tryParseArgumentClose(m);
|
|
3485
|
+
if (v.err)
|
|
3486
|
+
return v;
|
|
3473
3487
|
s.push([
|
|
3474
|
-
|
|
3488
|
+
u,
|
|
3475
3489
|
{
|
|
3476
3490
|
value: g.val,
|
|
3477
3491
|
location: E(m, this.clonePosition())
|
|
3478
3492
|
}
|
|
3479
|
-
]),
|
|
3493
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3480
3494
|
}
|
|
3481
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3495
|
+
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3482
3496
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3483
3497
|
var n = 1, i = this.clonePosition();
|
|
3484
3498
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3489,8 +3503,8 @@ var Ri = (
|
|
|
3489
3503
|
else
|
|
3490
3504
|
break;
|
|
3491
3505
|
}
|
|
3492
|
-
var
|
|
3493
|
-
return o ? (a *= n,
|
|
3506
|
+
var l = E(i, this.clonePosition());
|
|
3507
|
+
return o ? (a *= n, Ci(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3494
3508
|
}, e.prototype.offset = function() {
|
|
3495
3509
|
return this.position.offset;
|
|
3496
3510
|
}, e.prototype.isEOF = function() {
|
|
@@ -3505,7 +3519,7 @@ var Ri = (
|
|
|
3505
3519
|
var t = this.position.offset;
|
|
3506
3520
|
if (t >= this.message.length)
|
|
3507
3521
|
throw Error("out of bound");
|
|
3508
|
-
var r =
|
|
3522
|
+
var r = Ur(this.message, t);
|
|
3509
3523
|
if (r === void 0)
|
|
3510
3524
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3511
3525
|
return r;
|
|
@@ -3524,7 +3538,7 @@ var Ri = (
|
|
|
3524
3538
|
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);
|
|
3525
3539
|
}
|
|
3526
3540
|
}, e.prototype.bumpIf = function(t) {
|
|
3527
|
-
if (
|
|
3541
|
+
if ($t(this.message, t, this.offset())) {
|
|
3528
3542
|
for (var r = 0; r < t.length; r++)
|
|
3529
3543
|
this.bump();
|
|
3530
3544
|
return !0;
|
|
@@ -3546,7 +3560,7 @@ var Ri = (
|
|
|
3546
3560
|
break;
|
|
3547
3561
|
}
|
|
3548
3562
|
}, e.prototype.bumpSpace = function() {
|
|
3549
|
-
for (; !this.isEOF() &&
|
|
3563
|
+
for (; !this.isEOF() && Dr(this.char()); )
|
|
3550
3564
|
this.bump();
|
|
3551
3565
|
}, e.prototype.peek = function() {
|
|
3552
3566
|
if (this.isEOF())
|
|
@@ -3559,35 +3573,35 @@ var Ri = (
|
|
|
3559
3573
|
function ut(e) {
|
|
3560
3574
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3561
3575
|
}
|
|
3562
|
-
function
|
|
3576
|
+
function Di(e) {
|
|
3563
3577
|
return ut(e) || e === 47;
|
|
3564
3578
|
}
|
|
3565
|
-
function
|
|
3579
|
+
function ki(e) {
|
|
3566
3580
|
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;
|
|
3567
3581
|
}
|
|
3568
|
-
function
|
|
3582
|
+
function Dr(e) {
|
|
3569
3583
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3570
3584
|
}
|
|
3571
|
-
function
|
|
3585
|
+
function Gi(e) {
|
|
3572
3586
|
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;
|
|
3573
3587
|
}
|
|
3574
|
-
function
|
|
3588
|
+
function ht(e) {
|
|
3575
3589
|
e.forEach(function(t) {
|
|
3576
|
-
if (delete t.location,
|
|
3590
|
+
if (delete t.location, Ar(t) || Br(t))
|
|
3577
3591
|
for (var r in t.options)
|
|
3578
|
-
delete t.options[r].location,
|
|
3592
|
+
delete t.options[r].location, ht(t.options[r].value);
|
|
3579
3593
|
else
|
|
3580
|
-
|
|
3594
|
+
Tr(t) && Pr(t.style) || (Or(t) || Mr(t)) && ot(t.style) ? delete t.style.location : Lr(t) && ht(t.children);
|
|
3581
3595
|
});
|
|
3582
3596
|
}
|
|
3583
|
-
function
|
|
3597
|
+
function $i(e, t) {
|
|
3584
3598
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3585
|
-
var r = new
|
|
3599
|
+
var r = new Fi(e, t).parse();
|
|
3586
3600
|
if (r.err) {
|
|
3587
|
-
var n = SyntaxError(
|
|
3601
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3588
3602
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3589
3603
|
}
|
|
3590
|
-
return t?.captureLocation ||
|
|
3604
|
+
return t?.captureLocation || ht(r.val), r.val;
|
|
3591
3605
|
}
|
|
3592
3606
|
var ce;
|
|
3593
3607
|
(function(e) {
|
|
@@ -3605,7 +3619,7 @@ var ke = (
|
|
|
3605
3619
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3606
3620
|
}, t;
|
|
3607
3621
|
}(Error)
|
|
3608
|
-
),
|
|
3622
|
+
), Vt = (
|
|
3609
3623
|
/** @class */
|
|
3610
3624
|
function(e) {
|
|
3611
3625
|
Y(t, e);
|
|
@@ -3614,7 +3628,7 @@ var ke = (
|
|
|
3614
3628
|
}
|
|
3615
3629
|
return t;
|
|
3616
3630
|
}(ke)
|
|
3617
|
-
),
|
|
3631
|
+
), ji = (
|
|
3618
3632
|
/** @class */
|
|
3619
3633
|
function(e) {
|
|
3620
3634
|
Y(t, e);
|
|
@@ -3623,7 +3637,7 @@ var ke = (
|
|
|
3623
3637
|
}
|
|
3624
3638
|
return t;
|
|
3625
3639
|
}(ke)
|
|
3626
|
-
),
|
|
3640
|
+
), Wi = (
|
|
3627
3641
|
/** @class */
|
|
3628
3642
|
function(e) {
|
|
3629
3643
|
Y(t, e);
|
|
@@ -3636,33 +3650,33 @@ var ke = (
|
|
|
3636
3650
|
(function(e) {
|
|
3637
3651
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3638
3652
|
})(k || (k = {}));
|
|
3639
|
-
function
|
|
3653
|
+
function Vi(e) {
|
|
3640
3654
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3641
3655
|
var n = t[t.length - 1];
|
|
3642
3656
|
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3643
3657
|
}, []);
|
|
3644
3658
|
}
|
|
3645
|
-
function
|
|
3659
|
+
function Xi(e) {
|
|
3646
3660
|
return typeof e == "function";
|
|
3647
3661
|
}
|
|
3648
3662
|
function Pe(e, t, r, n, i, o, a) {
|
|
3649
|
-
if (e.length === 1 &&
|
|
3663
|
+
if (e.length === 1 && Ft(e[0]))
|
|
3650
3664
|
return [
|
|
3651
3665
|
{
|
|
3652
3666
|
type: k.literal,
|
|
3653
3667
|
value: e[0].value
|
|
3654
3668
|
}
|
|
3655
3669
|
];
|
|
3656
|
-
for (var s = [],
|
|
3657
|
-
var h = l
|
|
3658
|
-
if (
|
|
3670
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3671
|
+
var h = u[l];
|
|
3672
|
+
if (Ft(h)) {
|
|
3659
3673
|
s.push({
|
|
3660
3674
|
type: k.literal,
|
|
3661
3675
|
value: h.value
|
|
3662
3676
|
});
|
|
3663
3677
|
continue;
|
|
3664
3678
|
}
|
|
3665
|
-
if (
|
|
3679
|
+
if (mi(h)) {
|
|
3666
3680
|
typeof o == "number" && s.push({
|
|
3667
3681
|
type: k.literal,
|
|
3668
3682
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3671,43 +3685,43 @@ function Pe(e, t, r, n, i, o, a) {
|
|
|
3671
3685
|
}
|
|
3672
3686
|
var c = h.value;
|
|
3673
3687
|
if (!(i && c in i))
|
|
3674
|
-
throw new
|
|
3688
|
+
throw new Wi(c, a);
|
|
3675
3689
|
var f = i[c];
|
|
3676
|
-
if (
|
|
3690
|
+
if (di(h)) {
|
|
3677
3691
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3678
3692
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3679
3693
|
value: f
|
|
3680
3694
|
});
|
|
3681
3695
|
continue;
|
|
3682
3696
|
}
|
|
3683
|
-
if (
|
|
3684
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3697
|
+
if (Or(h)) {
|
|
3698
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3685
3699
|
s.push({
|
|
3686
3700
|
type: k.literal,
|
|
3687
3701
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3688
3702
|
});
|
|
3689
3703
|
continue;
|
|
3690
3704
|
}
|
|
3691
|
-
if (
|
|
3692
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3705
|
+
if (Mr(h)) {
|
|
3706
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ot(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3693
3707
|
s.push({
|
|
3694
3708
|
type: k.literal,
|
|
3695
3709
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3696
3710
|
});
|
|
3697
3711
|
continue;
|
|
3698
3712
|
}
|
|
3699
|
-
if (
|
|
3700
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3713
|
+
if (Tr(h)) {
|
|
3714
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3701
3715
|
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3702
3716
|
type: k.literal,
|
|
3703
3717
|
value: r.getNumberFormat(t, m).format(f)
|
|
3704
3718
|
});
|
|
3705
3719
|
continue;
|
|
3706
3720
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var g = h.children,
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new
|
|
3721
|
+
if (Lr(h)) {
|
|
3722
|
+
var g = h.children, v = h.value, S = i[v];
|
|
3723
|
+
if (!Xi(S))
|
|
3724
|
+
throw new ji(v, "function", a);
|
|
3711
3725
|
var T = Pe(g, t, r, n, i, o), P = S(T.map(function(C) {
|
|
3712
3726
|
return C.value;
|
|
3713
3727
|
}));
|
|
@@ -3718,14 +3732,14 @@ function Pe(e, t, r, n, i, o, a) {
|
|
|
3718
3732
|
};
|
|
3719
3733
|
}));
|
|
3720
3734
|
}
|
|
3721
|
-
if (
|
|
3735
|
+
if (Ar(h)) {
|
|
3722
3736
|
var B = h.options[f] || h.options.other;
|
|
3723
3737
|
if (!B)
|
|
3724
|
-
throw new
|
|
3738
|
+
throw new Vt(h.value, f, Object.keys(h.options), a);
|
|
3725
3739
|
s.push.apply(s, Pe(B.value, t, r, n, i));
|
|
3726
3740
|
continue;
|
|
3727
3741
|
}
|
|
3728
|
-
if (
|
|
3742
|
+
if (Br(h)) {
|
|
3729
3743
|
var B = h.options["=".concat(f)];
|
|
3730
3744
|
if (!B) {
|
|
3731
3745
|
if (!Intl.PluralRules)
|
|
@@ -3736,24 +3750,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3736
3750
|
B = h.options[G] || h.options.other;
|
|
3737
3751
|
}
|
|
3738
3752
|
if (!B)
|
|
3739
|
-
throw new
|
|
3753
|
+
throw new Vt(h.value, f, Object.keys(h.options), a);
|
|
3740
3754
|
s.push.apply(s, Pe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3741
3755
|
continue;
|
|
3742
3756
|
}
|
|
3743
3757
|
}
|
|
3744
|
-
return
|
|
3758
|
+
return Vi(s);
|
|
3745
3759
|
}
|
|
3746
|
-
function
|
|
3760
|
+
function zi(e, t) {
|
|
3747
3761
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3748
3762
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3749
3763
|
}, {})) : e;
|
|
3750
3764
|
}
|
|
3751
|
-
function
|
|
3765
|
+
function Zi(e, t) {
|
|
3752
3766
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3753
|
-
return r[n] =
|
|
3767
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3754
3768
|
}, w({}, e)) : e;
|
|
3755
3769
|
}
|
|
3756
|
-
function
|
|
3770
|
+
function qe(e) {
|
|
3757
3771
|
return {
|
|
3758
3772
|
create: function() {
|
|
3759
3773
|
return {
|
|
@@ -3767,39 +3781,39 @@ function Ye(e) {
|
|
|
3767
3781
|
}
|
|
3768
3782
|
};
|
|
3769
3783
|
}
|
|
3770
|
-
function
|
|
3784
|
+
function Qi(e) {
|
|
3771
3785
|
return e === void 0 && (e = {
|
|
3772
3786
|
number: {},
|
|
3773
3787
|
dateTime: {},
|
|
3774
3788
|
pluralRules: {}
|
|
3775
3789
|
}), {
|
|
3776
|
-
getNumberFormat:
|
|
3790
|
+
getNumberFormat: Ze(function() {
|
|
3777
3791
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3778
3792
|
r[n] = arguments[n];
|
|
3779
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3793
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3780
3794
|
}, {
|
|
3781
|
-
cache:
|
|
3782
|
-
strategy:
|
|
3795
|
+
cache: qe(e.number),
|
|
3796
|
+
strategy: Qe.variadic
|
|
3783
3797
|
}),
|
|
3784
|
-
getDateTimeFormat:
|
|
3798
|
+
getDateTimeFormat: Ze(function() {
|
|
3785
3799
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3800
|
r[n] = arguments[n];
|
|
3787
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3801
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3788
3802
|
}, {
|
|
3789
|
-
cache:
|
|
3790
|
-
strategy:
|
|
3803
|
+
cache: qe(e.dateTime),
|
|
3804
|
+
strategy: Qe.variadic
|
|
3791
3805
|
}),
|
|
3792
|
-
getPluralRules:
|
|
3806
|
+
getPluralRules: Ze(function() {
|
|
3793
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3808
|
r[n] = arguments[n];
|
|
3795
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.PluralRules).bind.apply(t, le([void 0], r, !1)))();
|
|
3796
3810
|
}, {
|
|
3797
|
-
cache:
|
|
3798
|
-
strategy:
|
|
3811
|
+
cache: qe(e.pluralRules),
|
|
3812
|
+
strategy: Qe.variadic
|
|
3799
3813
|
})
|
|
3800
3814
|
};
|
|
3801
3815
|
}
|
|
3802
|
-
var
|
|
3816
|
+
var Yi = (
|
|
3803
3817
|
/** @class */
|
|
3804
3818
|
function() {
|
|
3805
3819
|
function e(t, r, n, i) {
|
|
@@ -3809,20 +3823,20 @@ var Zi = (
|
|
|
3809
3823
|
number: {},
|
|
3810
3824
|
dateTime: {},
|
|
3811
3825
|
pluralRules: {}
|
|
3812
|
-
}, this.format = function(
|
|
3813
|
-
var
|
|
3814
|
-
if (
|
|
3815
|
-
return
|
|
3816
|
-
var h =
|
|
3826
|
+
}, this.format = function(l) {
|
|
3827
|
+
var u = o.formatToParts(l);
|
|
3828
|
+
if (u.length === 1)
|
|
3829
|
+
return u[0].value;
|
|
3830
|
+
var h = u.reduce(function(c, f) {
|
|
3817
3831
|
return !c.length || f.type !== k.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3818
3832
|
}, []);
|
|
3819
3833
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3820
|
-
}, this.formatToParts = function(
|
|
3821
|
-
return Pe(o.ast, o.locales, o.formatters, o.formats,
|
|
3834
|
+
}, this.formatToParts = function(l) {
|
|
3835
|
+
return Pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3822
3836
|
}, this.resolvedOptions = function() {
|
|
3823
|
-
var
|
|
3837
|
+
var l;
|
|
3824
3838
|
return {
|
|
3825
|
-
locale: ((
|
|
3839
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3826
3840
|
};
|
|
3827
3841
|
}, this.getAst = function() {
|
|
3828
3842
|
return o.ast;
|
|
@@ -3831,13 +3845,13 @@ var Zi = (
|
|
|
3831
3845
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3832
3846
|
var a = i || {};
|
|
3833
3847
|
a.formatters;
|
|
3834
|
-
var s =
|
|
3848
|
+
var s = An(a, ["formatters"]);
|
|
3835
3849
|
this.ast = e.__parse(t, w(w({}, s), { locale: this.resolvedLocale }));
|
|
3836
3850
|
} else
|
|
3837
3851
|
this.ast = t;
|
|
3838
3852
|
if (!Array.isArray(this.ast))
|
|
3839
3853
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3840
|
-
this.formats =
|
|
3854
|
+
this.formats = Zi(e.formats, n), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3841
3855
|
}
|
|
3842
3856
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3843
3857
|
get: function() {
|
|
@@ -3850,7 +3864,7 @@ var Zi = (
|
|
|
3850
3864
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3851
3865
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3852
3866
|
}
|
|
3853
|
-
}, e.__parse =
|
|
3867
|
+
}, e.__parse = $i, e.formats = {
|
|
3854
3868
|
number: {
|
|
3855
3869
|
integer: {
|
|
3856
3870
|
maximumFractionDigits: 0
|
|
@@ -3911,7 +3925,7 @@ var Zi = (
|
|
|
3911
3925
|
}, e;
|
|
3912
3926
|
}()
|
|
3913
3927
|
);
|
|
3914
|
-
function
|
|
3928
|
+
function qi(e, t) {
|
|
3915
3929
|
if (t == null)
|
|
3916
3930
|
return;
|
|
3917
3931
|
if (t in e)
|
|
@@ -3932,92 +3946,92 @@ function Qi(e, t) {
|
|
|
3932
3946
|
n = void 0;
|
|
3933
3947
|
return n;
|
|
3934
3948
|
}
|
|
3935
|
-
const J = {},
|
|
3949
|
+
const J = {}, Ji = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), kr = (e, t) => {
|
|
3936
3950
|
if (t == null)
|
|
3937
3951
|
return;
|
|
3938
3952
|
if (t in J && e in J[t])
|
|
3939
3953
|
return J[t][e];
|
|
3940
3954
|
const r = Ge(t);
|
|
3941
3955
|
for (let n = 0; n < r.length; n++) {
|
|
3942
|
-
const i = r[n], o =
|
|
3956
|
+
const i = r[n], o = eo(i, e);
|
|
3943
3957
|
if (o)
|
|
3944
|
-
return
|
|
3958
|
+
return Ji(e, t, o);
|
|
3945
3959
|
}
|
|
3946
3960
|
};
|
|
3947
|
-
let
|
|
3961
|
+
let gt;
|
|
3948
3962
|
const Se = De({});
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3963
|
+
function Ki(e) {
|
|
3964
|
+
return gt[e] || null;
|
|
3951
3965
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return e in
|
|
3966
|
+
function Gr(e) {
|
|
3967
|
+
return e in gt;
|
|
3954
3968
|
}
|
|
3955
|
-
function
|
|
3956
|
-
if (!
|
|
3969
|
+
function eo(e, t) {
|
|
3970
|
+
if (!Gr(e))
|
|
3957
3971
|
return null;
|
|
3958
|
-
const r =
|
|
3959
|
-
return
|
|
3972
|
+
const r = Ki(e);
|
|
3973
|
+
return qi(r, t);
|
|
3960
3974
|
}
|
|
3961
|
-
function
|
|
3975
|
+
function to(e) {
|
|
3962
3976
|
if (e == null)
|
|
3963
3977
|
return;
|
|
3964
3978
|
const t = Ge(e);
|
|
3965
3979
|
for (let r = 0; r < t.length; r++) {
|
|
3966
3980
|
const n = t[r];
|
|
3967
|
-
if (
|
|
3981
|
+
if (Gr(n))
|
|
3968
3982
|
return n;
|
|
3969
3983
|
}
|
|
3970
3984
|
}
|
|
3971
|
-
function
|
|
3972
|
-
delete J[e], Se.update((r) => (r[e] =
|
|
3985
|
+
function $r(e, ...t) {
|
|
3986
|
+
delete J[e], Se.update((r) => (r[e] = ai.all([r[e] || {}, ...t]), r));
|
|
3973
3987
|
}
|
|
3974
3988
|
pe(
|
|
3975
3989
|
[Se],
|
|
3976
3990
|
([e]) => Object.keys(e)
|
|
3977
3991
|
);
|
|
3978
|
-
Se.subscribe((e) =>
|
|
3992
|
+
Se.subscribe((e) => gt = e);
|
|
3979
3993
|
const Ie = {};
|
|
3980
|
-
function
|
|
3994
|
+
function ro(e, t) {
|
|
3981
3995
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3982
3996
|
}
|
|
3983
|
-
function
|
|
3997
|
+
function jr(e) {
|
|
3984
3998
|
return Ie[e];
|
|
3985
3999
|
}
|
|
3986
|
-
function
|
|
4000
|
+
function no(e) {
|
|
3987
4001
|
return Ge(e).map((t) => {
|
|
3988
|
-
const r =
|
|
4002
|
+
const r = jr(t);
|
|
3989
4003
|
return [t, r ? [...r] : []];
|
|
3990
4004
|
}).filter(([, t]) => t.length > 0);
|
|
3991
4005
|
}
|
|
3992
|
-
function
|
|
4006
|
+
function ct(e) {
|
|
3993
4007
|
return e == null ? !1 : Ge(e).some(
|
|
3994
4008
|
(t) => {
|
|
3995
4009
|
var r;
|
|
3996
|
-
return (r =
|
|
4010
|
+
return (r = jr(t)) == null ? void 0 : r.size;
|
|
3997
4011
|
}
|
|
3998
4012
|
);
|
|
3999
4013
|
}
|
|
4000
|
-
function
|
|
4014
|
+
function io(e, t) {
|
|
4001
4015
|
return Promise.all(
|
|
4002
|
-
t.map((n) => (
|
|
4003
|
-
).then((n) =>
|
|
4004
|
-
}
|
|
4005
|
-
const
|
|
4006
|
-
function
|
|
4007
|
-
if (!
|
|
4008
|
-
return e in
|
|
4009
|
-
const t =
|
|
4010
|
-
return
|
|
4016
|
+
t.map((n) => (ro(e, n), n().then((i) => i.default || i)))
|
|
4017
|
+
).then((n) => $r(e, ...n));
|
|
4018
|
+
}
|
|
4019
|
+
const ve = {};
|
|
4020
|
+
function Wr(e) {
|
|
4021
|
+
if (!ct(e))
|
|
4022
|
+
return e in ve ? ve[e] : Promise.resolve();
|
|
4023
|
+
const t = no(e);
|
|
4024
|
+
return ve[e] = Promise.all(
|
|
4011
4025
|
t.map(
|
|
4012
|
-
([r, n]) =>
|
|
4026
|
+
([r, n]) => io(r, n)
|
|
4013
4027
|
)
|
|
4014
4028
|
).then(() => {
|
|
4015
|
-
if (
|
|
4016
|
-
return
|
|
4017
|
-
delete
|
|
4018
|
-
}),
|
|
4029
|
+
if (ct(e))
|
|
4030
|
+
return Wr(e);
|
|
4031
|
+
delete ve[e];
|
|
4032
|
+
}), ve[e];
|
|
4019
4033
|
}
|
|
4020
|
-
const
|
|
4034
|
+
const oo = {
|
|
4021
4035
|
number: {
|
|
4022
4036
|
scientific: { notation: "scientific" },
|
|
4023
4037
|
engineering: { notation: "engineering" },
|
|
@@ -4046,57 +4060,57 @@ const no = {
|
|
|
4046
4060
|
timeZoneName: "short"
|
|
4047
4061
|
}
|
|
4048
4062
|
}
|
|
4049
|
-
},
|
|
4063
|
+
}, ao = {
|
|
4050
4064
|
fallbackLocale: null,
|
|
4051
4065
|
loadingDelay: 200,
|
|
4052
|
-
formats:
|
|
4066
|
+
formats: oo,
|
|
4053
4067
|
warnOnMissingMessages: !0,
|
|
4054
4068
|
handleMissingMessage: void 0,
|
|
4055
4069
|
ignoreTag: !0
|
|
4056
|
-
},
|
|
4070
|
+
}, so = ao;
|
|
4057
4071
|
function fe() {
|
|
4058
|
-
return
|
|
4059
|
-
}
|
|
4060
|
-
const
|
|
4061
|
-
var
|
|
4062
|
-
for (var r in t)
|
|
4063
|
-
|
|
4064
|
-
if (
|
|
4065
|
-
for (var r of
|
|
4066
|
-
|
|
4072
|
+
return so;
|
|
4073
|
+
}
|
|
4074
|
+
const Je = De(!1);
|
|
4075
|
+
var lo = Object.defineProperty, uo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, Xt = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
|
|
4076
|
+
for (var r in t || (t = {}))
|
|
4077
|
+
co.call(t, r) && zt(e, r, t[r]);
|
|
4078
|
+
if (Xt)
|
|
4079
|
+
for (var r of Xt(t))
|
|
4080
|
+
fo.call(t, r) && zt(e, r, t[r]);
|
|
4067
4081
|
return e;
|
|
4068
|
-
},
|
|
4069
|
-
let
|
|
4082
|
+
}, po = (e, t) => uo(e, ho(t));
|
|
4083
|
+
let ft;
|
|
4070
4084
|
const Re = De(null);
|
|
4071
|
-
function
|
|
4085
|
+
function Zt(e) {
|
|
4072
4086
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4073
4087
|
}
|
|
4074
4088
|
function Ge(e, t = fe().fallbackLocale) {
|
|
4075
|
-
const r =
|
|
4076
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4089
|
+
const r = Zt(e);
|
|
4090
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Zt(t)])] : r;
|
|
4077
4091
|
}
|
|
4078
4092
|
function re() {
|
|
4079
|
-
return
|
|
4093
|
+
return ft ?? void 0;
|
|
4080
4094
|
}
|
|
4081
4095
|
Re.subscribe((e) => {
|
|
4082
|
-
|
|
4096
|
+
ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4083
4097
|
});
|
|
4084
|
-
const
|
|
4085
|
-
if (e &&
|
|
4098
|
+
const go = (e) => {
|
|
4099
|
+
if (e && to(e) && ct(e)) {
|
|
4086
4100
|
const { loadingDelay: t } = fe();
|
|
4087
4101
|
let r;
|
|
4088
4102
|
return typeof window < "u" && re() != null && t ? r = window.setTimeout(
|
|
4089
|
-
() =>
|
|
4103
|
+
() => Je.set(!0),
|
|
4090
4104
|
t
|
|
4091
|
-
) :
|
|
4105
|
+
) : Je.set(!0), Wr(e).then(() => {
|
|
4092
4106
|
Re.set(e);
|
|
4093
4107
|
}).finally(() => {
|
|
4094
|
-
clearTimeout(r),
|
|
4108
|
+
clearTimeout(r), Je.set(!1);
|
|
4095
4109
|
});
|
|
4096
4110
|
}
|
|
4097
4111
|
return Re.set(e);
|
|
4098
|
-
}, ge =
|
|
4099
|
-
set:
|
|
4112
|
+
}, ge = po(mo({}, Re), {
|
|
4113
|
+
set: go
|
|
4100
4114
|
}), $e = (e) => {
|
|
4101
4115
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4102
4116
|
return (n) => {
|
|
@@ -4104,20 +4118,20 @@ const mo = (e) => {
|
|
|
4104
4118
|
return i in t ? t[i] : t[i] = e(n);
|
|
4105
4119
|
};
|
|
4106
4120
|
};
|
|
4107
|
-
var
|
|
4121
|
+
var bo = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, Qt = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
4108
4122
|
for (var r in t || (t = {}))
|
|
4109
|
-
|
|
4123
|
+
Vr.call(t, r) && Qt(e, r, t[r]);
|
|
4110
4124
|
if (Ue)
|
|
4111
4125
|
for (var r of Ue(t))
|
|
4112
|
-
|
|
4126
|
+
Xr.call(t, r) && Qt(e, r, t[r]);
|
|
4113
4127
|
return e;
|
|
4114
4128
|
}, be = (e, t) => {
|
|
4115
4129
|
var r = {};
|
|
4116
4130
|
for (var n in e)
|
|
4117
|
-
|
|
4131
|
+
Vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4118
4132
|
if (e != null && Ue)
|
|
4119
4133
|
for (var n of Ue(e))
|
|
4120
|
-
t.indexOf(n) < 0 &&
|
|
4134
|
+
t.indexOf(n) < 0 && Xr.call(e, n) && (r[n] = e[n]);
|
|
4121
4135
|
return r;
|
|
4122
4136
|
};
|
|
4123
4137
|
const Ee = (e, t) => {
|
|
@@ -4125,21 +4139,21 @@ const Ee = (e, t) => {
|
|
|
4125
4139
|
if (e in r && t in r[e])
|
|
4126
4140
|
return r[e][t];
|
|
4127
4141
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4128
|
-
},
|
|
4142
|
+
}, vo = $e(
|
|
4129
4143
|
(e) => {
|
|
4130
4144
|
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4131
4145
|
if (r == null)
|
|
4132
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4133
4147
|
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4134
4148
|
}
|
|
4135
|
-
),
|
|
4149
|
+
), yo = $e(
|
|
4136
4150
|
(e) => {
|
|
4137
4151
|
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4138
4152
|
if (r == null)
|
|
4139
4153
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4140
4154
|
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4141
4155
|
}
|
|
4142
|
-
),
|
|
4156
|
+
), _o = $e(
|
|
4143
4157
|
(e) => {
|
|
4144
4158
|
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4145
4159
|
if (r == null)
|
|
@@ -4148,48 +4162,48 @@ const Ee = (e, t) => {
|
|
|
4148
4162
|
);
|
|
4149
4163
|
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4150
4164
|
}
|
|
4151
|
-
),
|
|
4165
|
+
), xo = (e = {}) => {
|
|
4152
4166
|
var t = e, {
|
|
4153
4167
|
locale: r = re()
|
|
4154
4168
|
} = t, n = be(t, [
|
|
4155
4169
|
"locale"
|
|
4156
4170
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4171
|
+
return vo(bt({ locale: r }, n));
|
|
4172
|
+
}, Eo = (e = {}) => {
|
|
4159
4173
|
var t = e, {
|
|
4160
4174
|
locale: r = re()
|
|
4161
4175
|
} = t, n = be(t, [
|
|
4162
4176
|
"locale"
|
|
4163
4177
|
]);
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4178
|
+
return yo(bt({ locale: r }, n));
|
|
4179
|
+
}, wo = (e = {}) => {
|
|
4166
4180
|
var t = e, {
|
|
4167
4181
|
locale: r = re()
|
|
4168
4182
|
} = t, n = be(t, [
|
|
4169
4183
|
"locale"
|
|
4170
4184
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4185
|
+
return _o(bt({ locale: r }, n));
|
|
4186
|
+
}, So = $e(
|
|
4173
4187
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4174
|
-
(e, t = re()) => new
|
|
4188
|
+
(e, t = re()) => new Yi(e, t, fe().formats, {
|
|
4175
4189
|
ignoreTag: fe().ignoreTag
|
|
4176
4190
|
})
|
|
4177
|
-
),
|
|
4191
|
+
), Ho = (e, t = {}) => {
|
|
4178
4192
|
var r, n, i, o;
|
|
4179
4193
|
let a = t;
|
|
4180
4194
|
typeof e == "object" && (a = e, e = a.id);
|
|
4181
4195
|
const {
|
|
4182
4196
|
values: s,
|
|
4183
|
-
locale:
|
|
4184
|
-
default:
|
|
4197
|
+
locale: l = re(),
|
|
4198
|
+
default: u
|
|
4185
4199
|
} = a;
|
|
4186
|
-
if (
|
|
4200
|
+
if (l == null)
|
|
4187
4201
|
throw new Error(
|
|
4188
4202
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4189
4203
|
);
|
|
4190
|
-
let h =
|
|
4204
|
+
let h = kr(e, l);
|
|
4191
4205
|
if (!h)
|
|
4192
|
-
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4206
|
+
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4193
4207
|
else if (typeof h != "string")
|
|
4194
4208
|
return console.warn(
|
|
4195
4209
|
`[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.`
|
|
@@ -4198,7 +4212,7 @@ const Ee = (e, t) => {
|
|
|
4198
4212
|
return h;
|
|
4199
4213
|
let c = h;
|
|
4200
4214
|
try {
|
|
4201
|
-
c =
|
|
4215
|
+
c = So(h, l).format(s);
|
|
4202
4216
|
} catch (f) {
|
|
4203
4217
|
f instanceof Error && console.warn(
|
|
4204
4218
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4206,20 +4220,20 @@ const Ee = (e, t) => {
|
|
|
4206
4220
|
);
|
|
4207
4221
|
}
|
|
4208
4222
|
return c;
|
|
4209
|
-
},
|
|
4210
|
-
pe([ge], () => So);
|
|
4211
|
-
pe([ge], () => Ho);
|
|
4223
|
+
}, To = (e, t) => wo(t).format(e), Oo = (e, t) => Eo(t).format(e), Mo = (e, t) => xo(t).format(e), Ao = (e, t = re()) => kr(e, t), Bo = pe([ge, Se], () => Ho);
|
|
4212
4224
|
pe([ge], () => To);
|
|
4213
|
-
pe([ge
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4225
|
+
pe([ge], () => Oo);
|
|
4226
|
+
pe([ge], () => Mo);
|
|
4227
|
+
pe([ge, Se], () => Ao);
|
|
4228
|
+
window.emWidgets = { topic: jn };
|
|
4229
|
+
const Lo = (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)), Po = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4230
|
+
function Io(e, t) {
|
|
4217
4231
|
if (e) {
|
|
4218
4232
|
const r = document.createElement("style");
|
|
4219
4233
|
r.innerHTML = t, e.appendChild(r);
|
|
4220
4234
|
}
|
|
4221
4235
|
}
|
|
4222
|
-
function
|
|
4236
|
+
function Co(e, t) {
|
|
4223
4237
|
const r = new URL(t);
|
|
4224
4238
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4225
4239
|
const i = document.createElement("style");
|
|
@@ -4228,7 +4242,7 @@ function Po(e, t) {
|
|
|
4228
4242
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4229
4243
|
});
|
|
4230
4244
|
}
|
|
4231
|
-
function
|
|
4245
|
+
function No(e, t, r) {
|
|
4232
4246
|
if (window.emMessageBus) {
|
|
4233
4247
|
const n = document.createElement("style");
|
|
4234
4248
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4236,13 +4250,13 @@ function Io(e, t, r) {
|
|
|
4236
4250
|
});
|
|
4237
4251
|
}
|
|
4238
4252
|
}
|
|
4239
|
-
function
|
|
4240
|
-
|
|
4253
|
+
function Yt(e, t) {
|
|
4254
|
+
$r(e, t);
|
|
4241
4255
|
}
|
|
4242
|
-
function
|
|
4256
|
+
function Ro(e) {
|
|
4243
4257
|
ge.set(e);
|
|
4244
4258
|
}
|
|
4245
|
-
const
|
|
4259
|
+
const qt = {
|
|
4246
4260
|
en: {
|
|
4247
4261
|
language: "Select Language"
|
|
4248
4262
|
},
|
|
@@ -4277,35 +4291,35 @@ const Qt = {
|
|
|
4277
4291
|
language: "Select Language"
|
|
4278
4292
|
}
|
|
4279
4293
|
};
|
|
4280
|
-
function
|
|
4281
|
-
|
|
4294
|
+
function Uo(e) {
|
|
4295
|
+
ln(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}");
|
|
4282
4296
|
}
|
|
4283
|
-
function
|
|
4297
|
+
function Jt(e, t, r) {
|
|
4284
4298
|
const n = e.slice();
|
|
4285
4299
|
return n[57] = t[r], n;
|
|
4286
4300
|
}
|
|
4287
|
-
function
|
|
4301
|
+
function Kt(e, t, r) {
|
|
4288
4302
|
const n = e.slice();
|
|
4289
4303
|
return n[1] = t[r], n;
|
|
4290
4304
|
}
|
|
4291
|
-
function
|
|
4305
|
+
function er(e, t, r) {
|
|
4292
4306
|
const n = e.slice();
|
|
4293
4307
|
return n[60] = t[r], n;
|
|
4294
4308
|
}
|
|
4295
|
-
function
|
|
4309
|
+
function Fo(e, t, r) {
|
|
4296
4310
|
const n = e.slice();
|
|
4297
4311
|
return n[66] = t[r], n;
|
|
4298
4312
|
}
|
|
4299
|
-
function
|
|
4313
|
+
function tr(e, t, r) {
|
|
4300
4314
|
const n = e.slice();
|
|
4301
4315
|
return n[63] = t[r], n;
|
|
4302
4316
|
}
|
|
4303
|
-
function
|
|
4304
|
-
let t, r, n, i, o, a, s,
|
|
4317
|
+
function rr(e) {
|
|
4318
|
+
let t, r, n, i, o, a, s, l, u, h, c, f, m, g, v, S, T, P, B, G, C, V, X;
|
|
4305
4319
|
function ne(x, R) {
|
|
4306
4320
|
return (
|
|
4307
4321
|
/*HamburgerMenuItems*/
|
|
4308
|
-
x[4].length > 0 ?
|
|
4322
|
+
x[4].length > 0 ? ko : Do
|
|
4309
4323
|
);
|
|
4310
4324
|
}
|
|
4311
4325
|
let q = ne(e), N = q(e), j = Q(
|
|
@@ -4313,17 +4327,17 @@ function er(e) {
|
|
|
4313
4327
|
e[6]
|
|
4314
4328
|
), M = [];
|
|
4315
4329
|
for (let x = 0; x < j.length; x += 1)
|
|
4316
|
-
M[x] =
|
|
4330
|
+
M[x] = ar(er(e, j, x));
|
|
4317
4331
|
let L = (
|
|
4318
4332
|
/*languagesArray*/
|
|
4319
|
-
e[9].length > 1 &&
|
|
4333
|
+
e[9].length > 1 && sr(e)
|
|
4320
4334
|
);
|
|
4321
4335
|
return {
|
|
4322
4336
|
c() {
|
|
4323
|
-
t =
|
|
4337
|
+
t = y("div"), r = y("div"), n = y("ul"), N.c(), i = U(), o = y("div"), a = U(), s = y("ul");
|
|
4324
4338
|
for (let x = 0; x < M.length; x += 1)
|
|
4325
4339
|
M[x].c();
|
|
4326
|
-
|
|
4340
|
+
u = U(), L && L.c(), c = U(), f = y("span"), m = y("div"), g = y("span"), v = U(), S = y("span"), T = U(), P = y("span"), p(n, "class", "HamburgerPrimaryMenu"), p(o, "class", "Separator"), p(s, "class", l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4327
4341
|
(e[10] ? "Overlay" : "")), p(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4328
4342
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4329
4343
|
(e[12] ? "Closing" : "")), p(m, "class", B = "NavIcon " + (/*navIconClosing*/
|
|
@@ -4335,7 +4349,7 @@ function er(e) {
|
|
|
4335
4349
|
F(x, t, R), b(t, r), b(r, n), N.m(n, null), b(r, i), b(r, o), b(r, a), b(r, s);
|
|
4336
4350
|
for (let H = 0; H < M.length; H += 1)
|
|
4337
4351
|
M[H] && M[H].m(s, null);
|
|
4338
|
-
b(r,
|
|
4352
|
+
b(r, u), L && L.m(r, null), b(t, c), b(t, f), b(f, m), b(m, g), b(m, v), b(m, S), b(m, T), b(m, P), e[40](t), V || (X = te(
|
|
4339
4353
|
f,
|
|
4340
4354
|
"click",
|
|
4341
4355
|
/*close*/
|
|
@@ -4351,17 +4365,17 @@ function er(e) {
|
|
|
4351
4365
|
);
|
|
4352
4366
|
let H;
|
|
4353
4367
|
for (H = 0; H < j.length; H += 1) {
|
|
4354
|
-
const W =
|
|
4355
|
-
M[H] ? M[H].p(W, R) : (M[H] =
|
|
4368
|
+
const W = er(x, j, H);
|
|
4369
|
+
M[H] ? M[H].p(W, R) : (M[H] = ar(W), M[H].c(), M[H].m(s, null));
|
|
4356
4370
|
}
|
|
4357
4371
|
for (; H < M.length; H += 1)
|
|
4358
4372
|
M[H].d(1);
|
|
4359
4373
|
M.length = j.length;
|
|
4360
4374
|
}
|
|
4361
4375
|
R[0] & /*isOptionsListVisible*/
|
|
4362
|
-
1024 &&
|
|
4363
|
-
(x[10] ? "Overlay" : "")) && p(s, "class",
|
|
4364
|
-
x[9].length > 1 ? L ? L.p(x, R) : (L =
|
|
4376
|
+
1024 && l !== (l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4377
|
+
(x[10] ? "Overlay" : "")) && p(s, "class", l), /*languagesArray*/
|
|
4378
|
+
x[9].length > 1 ? L ? L.p(x, R) : (L = sr(x), L.c(), L.m(r, null)) : L && (L.d(1), L = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4365
4379
|
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4366
4380
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4367
4381
|
(x[12] ? "Closing" : "")) && p(r, "class", h), R[0] & /*navIconClosing*/
|
|
@@ -4377,15 +4391,15 @@ function er(e) {
|
|
|
4377
4391
|
}
|
|
4378
4392
|
};
|
|
4379
4393
|
}
|
|
4380
|
-
function
|
|
4394
|
+
function Do(e) {
|
|
4381
4395
|
let t, r = Q(new Array(5)), n = [];
|
|
4382
4396
|
for (let i = 0; i < r.length; i += 1)
|
|
4383
|
-
n[i] =
|
|
4397
|
+
n[i] = Go(Fo(e, r, i));
|
|
4384
4398
|
return {
|
|
4385
4399
|
c() {
|
|
4386
4400
|
for (let i = 0; i < n.length; i += 1)
|
|
4387
4401
|
n[i].c();
|
|
4388
|
-
t =
|
|
4402
|
+
t = mr();
|
|
4389
4403
|
},
|
|
4390
4404
|
m(i, o) {
|
|
4391
4405
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4398,18 +4412,18 @@ function Uo(e) {
|
|
|
4398
4412
|
}
|
|
4399
4413
|
};
|
|
4400
4414
|
}
|
|
4401
|
-
function
|
|
4415
|
+
function ko(e) {
|
|
4402
4416
|
let t, r = Q(
|
|
4403
4417
|
/*HamburgerMenuItems*/
|
|
4404
4418
|
e[4]
|
|
4405
4419
|
), n = [];
|
|
4406
4420
|
for (let i = 0; i < r.length; i += 1)
|
|
4407
|
-
n[i] =
|
|
4421
|
+
n[i] = ir(tr(e, r, i));
|
|
4408
4422
|
return {
|
|
4409
4423
|
c() {
|
|
4410
4424
|
for (let i = 0; i < n.length; i += 1)
|
|
4411
4425
|
n[i].c();
|
|
4412
|
-
t =
|
|
4426
|
+
t = mr();
|
|
4413
4427
|
},
|
|
4414
4428
|
m(i, o) {
|
|
4415
4429
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4425,8 +4439,8 @@ function Fo(e) {
|
|
|
4425
4439
|
);
|
|
4426
4440
|
let a;
|
|
4427
4441
|
for (a = 0; a < r.length; a += 1) {
|
|
4428
|
-
const s =
|
|
4429
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4442
|
+
const s = tr(i, r, a);
|
|
4443
|
+
n[a] ? n[a].p(s, o) : (n[a] = ir(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4430
4444
|
}
|
|
4431
4445
|
for (; a < n.length; a += 1)
|
|
4432
4446
|
n[a].d(1);
|
|
@@ -4438,11 +4452,11 @@ function Fo(e) {
|
|
|
4438
4452
|
}
|
|
4439
4453
|
};
|
|
4440
4454
|
}
|
|
4441
|
-
function
|
|
4455
|
+
function Go(e) {
|
|
4442
4456
|
let t;
|
|
4443
4457
|
return {
|
|
4444
4458
|
c() {
|
|
4445
|
-
t =
|
|
4459
|
+
t = y("div"), t.innerHTML = "", p(t, "class", "Loading Skeleton");
|
|
4446
4460
|
},
|
|
4447
4461
|
m(r, n) {
|
|
4448
4462
|
F(r, t, n);
|
|
@@ -4453,11 +4467,11 @@ function Do(e) {
|
|
|
4453
4467
|
}
|
|
4454
4468
|
};
|
|
4455
4469
|
}
|
|
4456
|
-
function
|
|
4470
|
+
function nr(e) {
|
|
4457
4471
|
let t, r;
|
|
4458
4472
|
return {
|
|
4459
4473
|
c() {
|
|
4460
|
-
t =
|
|
4474
|
+
t = y("img"), K(t.src, r = /*mainItem*/
|
|
4461
4475
|
e[63].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4462
4476
|
},
|
|
4463
4477
|
m(n, i) {
|
|
@@ -4473,13 +4487,13 @@ function tr(e) {
|
|
|
4473
4487
|
}
|
|
4474
4488
|
};
|
|
4475
4489
|
}
|
|
4476
|
-
function
|
|
4490
|
+
function ir(e) {
|
|
4477
4491
|
let t, r, n, i, o = (
|
|
4478
4492
|
/*mainItem*/
|
|
4479
4493
|
e[63].label + ""
|
|
4480
|
-
), a, s,
|
|
4494
|
+
), a, s, l, u, h, c = (
|
|
4481
4495
|
/*mainItem*/
|
|
4482
|
-
e[63]?.img &&
|
|
4496
|
+
e[63]?.img && nr(e)
|
|
4483
4497
|
);
|
|
4484
4498
|
function f() {
|
|
4485
4499
|
return (
|
|
@@ -4492,32 +4506,32 @@ function rr(e) {
|
|
|
4492
4506
|
}
|
|
4493
4507
|
return {
|
|
4494
4508
|
c() {
|
|
4495
|
-
t =
|
|
4509
|
+
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = ee(o), s = U(), p(r, "class", "HamburgerItemContainer"), p(t, "class", l = /*activeMenuItemId*/
|
|
4496
4510
|
e[5] === /*mainItem*/
|
|
4497
4511
|
e[63].id ? "ActiveItem" : "");
|
|
4498
4512
|
},
|
|
4499
4513
|
m(m, g) {
|
|
4500
|
-
F(m, t, g), b(t, r), c && c.m(r, null), b(r, n), b(r, i), b(i, a), b(t, s),
|
|
4514
|
+
F(m, t, g), b(t, r), c && c.m(r, null), b(r, n), b(r, i), b(i, a), b(t, s), u || (h = te(t, "click", f), u = !0);
|
|
4501
4515
|
},
|
|
4502
4516
|
p(m, g) {
|
|
4503
4517
|
e = m, /*mainItem*/
|
|
4504
|
-
e[63]?.img ? c ? c.p(e, g) : (c =
|
|
4518
|
+
e[63]?.img ? c ? c.p(e, g) : (c = nr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), g[0] & /*HamburgerMenuItems*/
|
|
4505
4519
|
16 && o !== (o = /*mainItem*/
|
|
4506
4520
|
e[63].label + "") && me(a, o), g[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4507
|
-
48 &&
|
|
4521
|
+
48 && l !== (l = /*activeMenuItemId*/
|
|
4508
4522
|
e[5] === /*mainItem*/
|
|
4509
|
-
e[63].id ? "ActiveItem" : "") && p(t, "class",
|
|
4523
|
+
e[63].id ? "ActiveItem" : "") && p(t, "class", l);
|
|
4510
4524
|
},
|
|
4511
4525
|
d(m) {
|
|
4512
|
-
m && I(t), c && c.d(),
|
|
4526
|
+
m && I(t), c && c.d(), u = !1, h();
|
|
4513
4527
|
}
|
|
4514
4528
|
};
|
|
4515
4529
|
}
|
|
4516
|
-
function
|
|
4530
|
+
function or(e) {
|
|
4517
4531
|
let t, r;
|
|
4518
4532
|
return {
|
|
4519
4533
|
c() {
|
|
4520
|
-
t =
|
|
4534
|
+
t = y("img"), K(t.src, r = /*secondaryItem*/
|
|
4521
4535
|
e[60].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4522
4536
|
},
|
|
4523
4537
|
m(n, i) {
|
|
@@ -4533,13 +4547,13 @@ function nr(e) {
|
|
|
4533
4547
|
}
|
|
4534
4548
|
};
|
|
4535
4549
|
}
|
|
4536
|
-
function
|
|
4550
|
+
function ar(e) {
|
|
4537
4551
|
let t, r, n, i = (
|
|
4538
4552
|
/*secondaryItem*/
|
|
4539
4553
|
e[60].label + ""
|
|
4540
|
-
), o, a, s,
|
|
4554
|
+
), o, a, s, l, u = (
|
|
4541
4555
|
/*secondaryItem*/
|
|
4542
|
-
e[60]?.img &&
|
|
4556
|
+
e[60]?.img && or(e)
|
|
4543
4557
|
);
|
|
4544
4558
|
function h(...c) {
|
|
4545
4559
|
return (
|
|
@@ -4553,41 +4567,41 @@ function ir(e) {
|
|
|
4553
4567
|
}
|
|
4554
4568
|
return {
|
|
4555
4569
|
c() {
|
|
4556
|
-
t =
|
|
4570
|
+
t = y("li"), u && u.c(), r = U(), n = y("p"), o = ee(i), a = U();
|
|
4557
4571
|
},
|
|
4558
4572
|
m(c, f) {
|
|
4559
|
-
F(c, t, f),
|
|
4573
|
+
F(c, t, f), u && u.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (l = te(t, "click", h), s = !0);
|
|
4560
4574
|
},
|
|
4561
4575
|
p(c, f) {
|
|
4562
4576
|
e = c, /*secondaryItem*/
|
|
4563
|
-
e[60]?.img ?
|
|
4577
|
+
e[60]?.img ? u ? u.p(e, f) : (u = or(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), f[0] & /*activeMenuItemChildren*/
|
|
4564
4578
|
64 && i !== (i = /*secondaryItem*/
|
|
4565
4579
|
e[60].label + "") && me(o, i);
|
|
4566
4580
|
},
|
|
4567
4581
|
d(c) {
|
|
4568
|
-
c && I(t),
|
|
4582
|
+
c && I(t), u && u.d(), s = !1, l();
|
|
4569
4583
|
}
|
|
4570
4584
|
};
|
|
4571
4585
|
}
|
|
4572
|
-
function
|
|
4586
|
+
function sr(e) {
|
|
4573
4587
|
let t, r, n = (
|
|
4574
4588
|
/*$_*/
|
|
4575
4589
|
e[15]("language") + ""
|
|
4576
|
-
), i, o, a, s,
|
|
4577
|
-
function
|
|
4590
|
+
), i, o, a, s, l;
|
|
4591
|
+
function u(f, m) {
|
|
4578
4592
|
return (
|
|
4579
4593
|
/*countryflaghamburger*/
|
|
4580
|
-
f[0] !== "true" ?
|
|
4594
|
+
f[0] !== "true" ? jo : $o
|
|
4581
4595
|
);
|
|
4582
4596
|
}
|
|
4583
|
-
let h =
|
|
4597
|
+
let h = u(e), c = h(e);
|
|
4584
4598
|
return {
|
|
4585
4599
|
c() {
|
|
4586
|
-
t =
|
|
4600
|
+
t = y("div"), r = y("span"), i = ee(n), o = U(), c.c(), p(r, "class", "LanguageSelectorTitle"), p(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4587
4601
|
(e[10] ? "Open" : ""));
|
|
4588
4602
|
},
|
|
4589
4603
|
m(f, m) {
|
|
4590
|
-
F(f, t, m), b(t, r), b(r, i), b(t, o), c.m(t, null), s || (
|
|
4604
|
+
F(f, t, m), b(t, r), b(r, i), b(t, o), c.m(t, null), s || (l = te(
|
|
4591
4605
|
t,
|
|
4592
4606
|
"click",
|
|
4593
4607
|
/*toggleLanguageDropdown*/
|
|
@@ -4597,26 +4611,26 @@ function or(e) {
|
|
|
4597
4611
|
p(f, m) {
|
|
4598
4612
|
m[0] & /*$_*/
|
|
4599
4613
|
32768 && n !== (n = /*$_*/
|
|
4600
|
-
f[15]("language") + "") && me(i, n), h === (h =
|
|
4614
|
+
f[15]("language") + "") && me(i, n), h === (h = u(f)) && c ? c.p(f, m) : (c.d(1), c = h(f), c && (c.c(), c.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4601
4615
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4602
4616
|
(f[10] ? "Open" : "")) && p(t, "class", a);
|
|
4603
4617
|
},
|
|
4604
4618
|
d(f) {
|
|
4605
|
-
f && I(t), c.d(), s = !1,
|
|
4619
|
+
f && I(t), c.d(), s = !1, l();
|
|
4606
4620
|
}
|
|
4607
4621
|
};
|
|
4608
4622
|
}
|
|
4609
|
-
function
|
|
4610
|
-
let t, r, n, i, o, a, s,
|
|
4623
|
+
function $o(e) {
|
|
4624
|
+
let t, r, n, i, o, a, s, l = (
|
|
4611
4625
|
/*selectedLanguage*/
|
|
4612
4626
|
e[14].slice(-2) + ""
|
|
4613
|
-
),
|
|
4627
|
+
), u, h, c, f, m, g, v, S = (
|
|
4614
4628
|
/*isOptionsListVisible*/
|
|
4615
|
-
e[10] &&
|
|
4629
|
+
e[10] && lr(e)
|
|
4616
4630
|
);
|
|
4617
4631
|
return {
|
|
4618
4632
|
c() {
|
|
4619
|
-
t =
|
|
4633
|
+
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"), u = ee(l), h = U(), c = y("span"), f = Tt("svg"), m = Tt("path"), v = U(), S && S.c(), K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4620
4634
|
e[22](
|
|
4621
4635
|
/*selectedLanguage*/
|
|
4622
4636
|
e[14]
|
|
@@ -4624,7 +4638,7 @@ function ko(e) {
|
|
|
4624
4638
|
(e[10] ? "TriangleActive" : "")), p(r, "class", "SelectedOption Item ItemLanguage"), p(t, "class", "LanguageDropdown");
|
|
4625
4639
|
},
|
|
4626
4640
|
m(T, P) {
|
|
4627
|
-
F(T, t, P), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s,
|
|
4641
|
+
F(T, t, P), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s, u), b(r, h), b(r, c), b(c, f), b(f, m), b(t, v), S && S.m(t, null);
|
|
4628
4642
|
},
|
|
4629
4643
|
p(T, P) {
|
|
4630
4644
|
P[0] & /*selectedLanguage, languagesArray*/
|
|
@@ -4633,27 +4647,27 @@ function ko(e) {
|
|
|
4633
4647
|
/*selectedLanguage*/
|
|
4634
4648
|
T[14]
|
|
4635
4649
|
)}.svg`) && p(i, "src", o), P[0] & /*selectedLanguage*/
|
|
4636
|
-
16384 &&
|
|
4637
|
-
T[14].slice(-2) + "") && me(
|
|
4650
|
+
16384 && l !== (l = /*selectedLanguage*/
|
|
4651
|
+
T[14].slice(-2) + "") && me(u, l), P[0] & /*isOptionsListVisible*/
|
|
4638
4652
|
1024 && g !== (g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4639
4653
|
(T[10] ? "TriangleActive" : "")) && p(c, "class", g), /*isOptionsListVisible*/
|
|
4640
|
-
T[10] ? S ? S.p(T, P) : (S =
|
|
4654
|
+
T[10] ? S ? S.p(T, P) : (S = lr(T), S.c(), S.m(t, null)) : S && (S.d(1), S = null);
|
|
4641
4655
|
},
|
|
4642
4656
|
d(T) {
|
|
4643
4657
|
T && I(t), S && S.d();
|
|
4644
4658
|
}
|
|
4645
4659
|
};
|
|
4646
4660
|
}
|
|
4647
|
-
function
|
|
4661
|
+
function jo(e) {
|
|
4648
4662
|
let t, r, n, i = Q(
|
|
4649
4663
|
/*languagesArray*/
|
|
4650
4664
|
e[9]
|
|
4651
4665
|
), o = [];
|
|
4652
4666
|
for (let a = 0; a < i.length; a += 1)
|
|
4653
|
-
o[a] =
|
|
4667
|
+
o[a] = hr(Kt(e, i, a));
|
|
4654
4668
|
return {
|
|
4655
4669
|
c() {
|
|
4656
|
-
t =
|
|
4670
|
+
t = y("select");
|
|
4657
4671
|
for (let a = 0; a < o.length; a += 1)
|
|
4658
4672
|
o[a].c();
|
|
4659
4673
|
p(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
@@ -4664,9 +4678,9 @@ function Go(e) {
|
|
|
4664
4678
|
},
|
|
4665
4679
|
m(a, s) {
|
|
4666
4680
|
F(a, t, s);
|
|
4667
|
-
for (let
|
|
4668
|
-
o[
|
|
4669
|
-
|
|
4681
|
+
for (let l = 0; l < o.length; l += 1)
|
|
4682
|
+
o[l] && o[l].m(t, null);
|
|
4683
|
+
Mt(
|
|
4670
4684
|
t,
|
|
4671
4685
|
/*selectedLanguage*/
|
|
4672
4686
|
e[14],
|
|
@@ -4693,17 +4707,17 @@ function Go(e) {
|
|
|
4693
4707
|
/*languagesArray*/
|
|
4694
4708
|
a[9]
|
|
4695
4709
|
);
|
|
4696
|
-
let
|
|
4697
|
-
for (
|
|
4698
|
-
const
|
|
4699
|
-
o[
|
|
4710
|
+
let l;
|
|
4711
|
+
for (l = 0; l < i.length; l += 1) {
|
|
4712
|
+
const u = Kt(a, i, l);
|
|
4713
|
+
o[l] ? o[l].p(u, s) : (o[l] = hr(u), o[l].c(), o[l].m(t, null));
|
|
4700
4714
|
}
|
|
4701
|
-
for (;
|
|
4702
|
-
o[
|
|
4715
|
+
for (; l < o.length; l += 1)
|
|
4716
|
+
o[l].d(1);
|
|
4703
4717
|
o.length = i.length;
|
|
4704
4718
|
}
|
|
4705
4719
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4706
|
-
16896 &&
|
|
4720
|
+
16896 && Mt(
|
|
4707
4721
|
t,
|
|
4708
4722
|
/*selectedLanguage*/
|
|
4709
4723
|
a[14]
|
|
@@ -4714,16 +4728,16 @@ function Go(e) {
|
|
|
4714
4728
|
}
|
|
4715
4729
|
};
|
|
4716
4730
|
}
|
|
4717
|
-
function
|
|
4731
|
+
function lr(e) {
|
|
4718
4732
|
let t, r, n = Q(
|
|
4719
4733
|
/*languagesArray*/
|
|
4720
4734
|
e[9]
|
|
4721
4735
|
), i = [];
|
|
4722
4736
|
for (let o = 0; o < n.length; o += 1)
|
|
4723
|
-
i[o] =
|
|
4737
|
+
i[o] = ur(Jt(e, n, o));
|
|
4724
4738
|
return {
|
|
4725
4739
|
c() {
|
|
4726
|
-
t =
|
|
4740
|
+
t = y("div");
|
|
4727
4741
|
for (let o = 0; o < i.length; o += 1)
|
|
4728
4742
|
i[o].c();
|
|
4729
4743
|
p(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
@@ -4743,8 +4757,8 @@ function ar(e) {
|
|
|
4743
4757
|
);
|
|
4744
4758
|
let s;
|
|
4745
4759
|
for (s = 0; s < n.length; s += 1) {
|
|
4746
|
-
const
|
|
4747
|
-
i[s] ? i[s].p(
|
|
4760
|
+
const l = Jt(o, n, s);
|
|
4761
|
+
i[s] ? i[s].p(l, a) : (i[s] = ur(l), i[s].c(), i[s].m(t, null));
|
|
4748
4762
|
}
|
|
4749
4763
|
for (; s < i.length; s += 1)
|
|
4750
4764
|
i[s].d(1);
|
|
@@ -4759,11 +4773,11 @@ function ar(e) {
|
|
|
4759
4773
|
}
|
|
4760
4774
|
};
|
|
4761
4775
|
}
|
|
4762
|
-
function
|
|
4776
|
+
function ur(e) {
|
|
4763
4777
|
let t, r, n, i, o, a, s = (
|
|
4764
4778
|
/*operatorLanguage*/
|
|
4765
4779
|
e[57] + ""
|
|
4766
|
-
),
|
|
4780
|
+
), l, u, h, c, f;
|
|
4767
4781
|
function m() {
|
|
4768
4782
|
return (
|
|
4769
4783
|
/*click_handler_2*/
|
|
@@ -4775,25 +4789,25 @@ function sr(e) {
|
|
|
4775
4789
|
}
|
|
4776
4790
|
return {
|
|
4777
4791
|
c() {
|
|
4778
|
-
t =
|
|
4792
|
+
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"), l = ee(s), u = U(), K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4779
4793
|
e[22](
|
|
4780
4794
|
/*operatorLanguage*/
|
|
4781
4795
|
e[57]
|
|
4782
4796
|
)}.svg`) || p(n, "src", i), p(r, "class", "FlagIcon"), p(a, "class", "LanguageName"), p(t, "class", h = "LanguageOption " + /*languageListOpen*/
|
|
4783
4797
|
(e[11] ? "Open" : ""));
|
|
4784
4798
|
},
|
|
4785
|
-
m(g,
|
|
4786
|
-
F(g, t,
|
|
4799
|
+
m(g, v) {
|
|
4800
|
+
F(g, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a, l), b(t, u), c || (f = te(t, "click", m), c = !0);
|
|
4787
4801
|
},
|
|
4788
|
-
p(g,
|
|
4789
|
-
e = g,
|
|
4802
|
+
p(g, v) {
|
|
4803
|
+
e = g, v[0] & /*languagesArray*/
|
|
4790
4804
|
512 && !K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4791
4805
|
e[22](
|
|
4792
4806
|
/*operatorLanguage*/
|
|
4793
4807
|
e[57]
|
|
4794
|
-
)}.svg`) && p(n, "src", i),
|
|
4808
|
+
)}.svg`) && p(n, "src", i), v[0] & /*languagesArray*/
|
|
4795
4809
|
512 && s !== (s = /*operatorLanguage*/
|
|
4796
|
-
e[57] + "") && me(
|
|
4810
|
+
e[57] + "") && me(l, s), v[0] & /*languageListOpen*/
|
|
4797
4811
|
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4798
4812
|
(e[11] ? "Open" : "")) && p(t, "class", h);
|
|
4799
4813
|
},
|
|
@@ -4802,15 +4816,15 @@ function sr(e) {
|
|
|
4802
4816
|
}
|
|
4803
4817
|
};
|
|
4804
4818
|
}
|
|
4805
|
-
function
|
|
4819
|
+
function hr(e) {
|
|
4806
4820
|
let t, r = (
|
|
4807
4821
|
/*lang*/
|
|
4808
4822
|
e[1].slice(-2) + ""
|
|
4809
4823
|
), n, i;
|
|
4810
4824
|
return {
|
|
4811
4825
|
c() {
|
|
4812
|
-
t =
|
|
4813
|
-
e[1],
|
|
4826
|
+
t = y("option"), n = ee(r), t.__value = i = /*lang*/
|
|
4827
|
+
e[1], Ot(t, t.__value), t.selected = !0;
|
|
4814
4828
|
},
|
|
4815
4829
|
m(o, a) {
|
|
4816
4830
|
F(o, t, a), b(t, n);
|
|
@@ -4820,28 +4834,28 @@ function ur(e) {
|
|
|
4820
4834
|
512 && r !== (r = /*lang*/
|
|
4821
4835
|
o[1].slice(-2) + "") && me(n, r), a[0] & /*languagesArray*/
|
|
4822
4836
|
512 && i !== (i = /*lang*/
|
|
4823
|
-
o[1]) && (t.__value = i,
|
|
4837
|
+
o[1]) && (t.__value = i, Ot(t, t.__value));
|
|
4824
4838
|
},
|
|
4825
4839
|
d(o) {
|
|
4826
4840
|
o && I(t);
|
|
4827
4841
|
}
|
|
4828
4842
|
};
|
|
4829
4843
|
}
|
|
4830
|
-
function
|
|
4844
|
+
function Wo(e) {
|
|
4831
4845
|
let t, r = (
|
|
4832
4846
|
/*show*/
|
|
4833
|
-
e[8] === !0 &&
|
|
4847
|
+
e[8] === !0 && rr(e)
|
|
4834
4848
|
);
|
|
4835
4849
|
return {
|
|
4836
4850
|
c() {
|
|
4837
|
-
t =
|
|
4851
|
+
t = y("div"), r && r.c();
|
|
4838
4852
|
},
|
|
4839
4853
|
m(n, i) {
|
|
4840
4854
|
F(n, t, i), r && r.m(t, null), e[41](t);
|
|
4841
4855
|
},
|
|
4842
4856
|
p(n, i) {
|
|
4843
4857
|
/*show*/
|
|
4844
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4858
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = rr(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4845
4859
|
},
|
|
4846
4860
|
i: $,
|
|
4847
4861
|
o: $,
|
|
@@ -4850,27 +4864,27 @@ function $o(e) {
|
|
|
4850
4864
|
}
|
|
4851
4865
|
};
|
|
4852
4866
|
}
|
|
4853
|
-
function
|
|
4867
|
+
function Vo(e, t, r) {
|
|
4854
4868
|
let n;
|
|
4855
|
-
|
|
4856
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4857
|
-
const
|
|
4869
|
+
sn(e, Bo, (d) => r(15, n = d));
|
|
4870
|
+
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang: l = "en" } = t, { activecategory: u = "" } = t, { languageslist: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, { clientstyling: m = "" } = t, { clientstylingurl: g = "" } = t, { customlocaleidentifier: v = "" } = t, { countryflaghamburger: S = "" } = t, T, P = window.navigator.userAgent, B = [], G, C = "", V = [], X = !1, ne = !1, q = !0, N = [], j = !1, M = !1, L = !1, x = !1, R = !0, H, W = "", z;
|
|
4871
|
+
const zr = () => {
|
|
4858
4872
|
fetch(c).then((d) => d.json()).then((d) => {
|
|
4859
4873
|
Object.keys(d).forEach((A) => {
|
|
4860
|
-
|
|
4874
|
+
Yt(A, d[A]);
|
|
4861
4875
|
});
|
|
4862
4876
|
}).catch((d) => {
|
|
4863
4877
|
console.log(d);
|
|
4864
4878
|
});
|
|
4865
4879
|
};
|
|
4866
|
-
Object.keys(
|
|
4867
|
-
|
|
4880
|
+
Object.keys(qt).forEach((d) => {
|
|
4881
|
+
Yt(d, qt[d]);
|
|
4868
4882
|
});
|
|
4869
4883
|
const je = () => {
|
|
4870
4884
|
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4871
|
-
let d =
|
|
4885
|
+
let d = Po(P);
|
|
4872
4886
|
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);
|
|
4873
|
-
},
|
|
4887
|
+
}, vt = () => {
|
|
4874
4888
|
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, L = !1), setTimeout(
|
|
4875
4889
|
() => {
|
|
4876
4890
|
r(8, ne = !1), r(7, X = !1);
|
|
@@ -4883,39 +4897,39 @@ function jo(e, t, r) {
|
|
|
4883
4897
|
},
|
|
4884
4898
|
window.location.href
|
|
4885
4899
|
);
|
|
4886
|
-
},
|
|
4900
|
+
}, yt = (d) => {
|
|
4887
4901
|
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4888
4902
|
() => {
|
|
4889
4903
|
r(13, R = !1);
|
|
4890
4904
|
},
|
|
4891
4905
|
125
|
|
4892
|
-
), r(8, ne = !0), r(7, X = !0), je(),
|
|
4906
|
+
), r(8, ne = !0), r(7, X = !0), je(), xt(H)), d.data.type === "LanguageChanged" && (j = !0, je(), xt(H));
|
|
4893
4907
|
}, He = (d, A) => {
|
|
4894
4908
|
r(5, C = d), r(6, V = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4895
4909
|
context: "HamburgerMenu",
|
|
4896
4910
|
menuItem: `${C}`
|
|
4897
4911
|
});
|
|
4898
|
-
},
|
|
4912
|
+
}, _t = () => {
|
|
4899
4913
|
let d = B.filter((A) => {
|
|
4900
4914
|
let Te = !1;
|
|
4901
|
-
return A.children?.forEach((
|
|
4902
|
-
|
|
4915
|
+
return A.children?.forEach((on) => {
|
|
4916
|
+
on.path.includes(u) && (Te = !0);
|
|
4903
4917
|
}), Te;
|
|
4904
4918
|
});
|
|
4905
4919
|
d.length > 0 ? He(d[0].id, d[0].children) : He(B[0].id, B[0].children);
|
|
4906
|
-
},
|
|
4907
|
-
G && !j ||
|
|
4908
|
-
},
|
|
4920
|
+
}, xt = (d) => {
|
|
4921
|
+
G && !j || Et(d);
|
|
4922
|
+
}, Et = (d) => {
|
|
4909
4923
|
fetch(d).then((A) => A.json()).then(
|
|
4910
4924
|
(A) => {
|
|
4911
|
-
r(4, B = A.filter((Te) => Te?.type !== "banner")),
|
|
4925
|
+
r(4, B = A.filter((Te) => Te?.type !== "banner")), _t(), r(34, q = !1), G = A, j = !1;
|
|
4912
4926
|
},
|
|
4913
4927
|
(A) => {
|
|
4914
4928
|
console.error(A);
|
|
4915
4929
|
}
|
|
4916
4930
|
);
|
|
4917
4931
|
};
|
|
4918
|
-
let
|
|
4932
|
+
let wt = (d) => {
|
|
4919
4933
|
window.postMessage(
|
|
4920
4934
|
{
|
|
4921
4935
|
type: "NavigateTo",
|
|
@@ -4924,7 +4938,7 @@ function jo(e, t, r) {
|
|
|
4924
4938
|
target: d.attrs.target || null
|
|
4925
4939
|
},
|
|
4926
4940
|
window.location.href
|
|
4927
|
-
),
|
|
4941
|
+
), vt();
|
|
4928
4942
|
};
|
|
4929
4943
|
const We = () => {
|
|
4930
4944
|
j = !0, window.postMessage(
|
|
@@ -4934,9 +4948,9 @@ function jo(e, t, r) {
|
|
|
4934
4948
|
},
|
|
4935
4949
|
window.location.href
|
|
4936
4950
|
);
|
|
4937
|
-
},
|
|
4938
|
-
|
|
4939
|
-
},
|
|
4951
|
+
}, Zr = () => {
|
|
4952
|
+
Ro(l), je(), j && Et(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = l.toUpperCase());
|
|
4953
|
+
}, St = (d) => {
|
|
4940
4954
|
r(14, W = d), setTimeout(
|
|
4941
4955
|
() => {
|
|
4942
4956
|
r(11, L = !1);
|
|
@@ -4948,7 +4962,7 @@ function jo(e, t, r) {
|
|
|
4948
4962
|
},
|
|
4949
4963
|
500
|
|
4950
4964
|
), We();
|
|
4951
|
-
},
|
|
4965
|
+
}, Qr = () => {
|
|
4952
4966
|
M ? (setTimeout(
|
|
4953
4967
|
() => {
|
|
4954
4968
|
r(10, M = !1);
|
|
@@ -4960,46 +4974,46 @@ function jo(e, t, r) {
|
|
|
4960
4974
|
},
|
|
4961
4975
|
300
|
|
4962
4976
|
));
|
|
4963
|
-
},
|
|
4977
|
+
}, Yr = (d) => {
|
|
4964
4978
|
let A = d ? d.slice(-2) : W.slice(-2);
|
|
4965
|
-
return
|
|
4979
|
+
return v && (A = v.includes(A.toLowerCase()) ? v.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
4966
4980
|
};
|
|
4967
|
-
|
|
4968
|
-
window.removeEventListener("message",
|
|
4981
|
+
pn(() => (window.addEventListener("message", yt, !1), Lo(P), () => {
|
|
4982
|
+
window.removeEventListener("message", yt);
|
|
4969
4983
|
}));
|
|
4970
|
-
const
|
|
4971
|
-
|
|
4984
|
+
const qr = (d) => He(d.id, d.children), Jr = (d, A) => {
|
|
4985
|
+
wt(d), A.preventDefault();
|
|
4972
4986
|
};
|
|
4973
|
-
function
|
|
4974
|
-
W =
|
|
4987
|
+
function Kr() {
|
|
4988
|
+
W = fn(this), r(14, W), r(9, N);
|
|
4975
4989
|
}
|
|
4976
|
-
const
|
|
4977
|
-
function
|
|
4990
|
+
const en = () => We(), tn = (d) => St(d);
|
|
4991
|
+
function rn(d) {
|
|
4978
4992
|
Ce[d ? "unshift" : "push"](() => {
|
|
4979
4993
|
T = d, r(3, T);
|
|
4980
4994
|
});
|
|
4981
4995
|
}
|
|
4982
|
-
function
|
|
4996
|
+
function nn(d) {
|
|
4983
4997
|
Ce[d ? "unshift" : "push"](() => {
|
|
4984
4998
|
z = d, r(2, z);
|
|
4985
4999
|
});
|
|
4986
5000
|
}
|
|
4987
5001
|
return e.$$set = (d) => {
|
|
4988
|
-
"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,
|
|
5002
|
+
"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, l = d.lang), "activecategory" in d && r(27, u = 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, g = d.clientstylingurl), "customlocaleidentifier" in d && r(33, v = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, S = d.countryflaghamburger);
|
|
4989
5003
|
}, e.$$.update = () => {
|
|
4990
5004
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
4991
|
-
318767106 && o && a &&
|
|
5005
|
+
318767106 && o && a && l && h && Zr(), e.$$.dirty[0] & /*activecategory*/
|
|
4992
5006
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
4993
|
-
8 &&
|
|
4994
|
-
536870912 && c &&
|
|
5007
|
+
8 && u && !q && _t(), e.$$.dirty[0] & /*translationurl*/
|
|
5008
|
+
536870912 && c && zr(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4995
5009
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
4996
|
-
1 && m && z &&
|
|
5010
|
+
1 && m && z && Io(z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4997
5011
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
4998
|
-
2 && g && z &&
|
|
4999
|
-
1073741828 && f && z &&
|
|
5012
|
+
2 && g && z && Co(z, g), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5013
|
+
1073741828 && f && z && No(z, `${f}.Style`);
|
|
5000
5014
|
}, [
|
|
5001
5015
|
S,
|
|
5002
|
-
|
|
5016
|
+
l,
|
|
5003
5017
|
z,
|
|
5004
5018
|
T,
|
|
5005
5019
|
B,
|
|
@@ -5014,42 +5028,42 @@ function jo(e, t, r) {
|
|
|
5014
5028
|
R,
|
|
5015
5029
|
W,
|
|
5016
5030
|
n,
|
|
5017
|
-
|
|
5031
|
+
vt,
|
|
5018
5032
|
He,
|
|
5019
|
-
|
|
5033
|
+
wt,
|
|
5020
5034
|
We,
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5035
|
+
St,
|
|
5036
|
+
Qr,
|
|
5037
|
+
Yr,
|
|
5024
5038
|
i,
|
|
5025
5039
|
o,
|
|
5026
5040
|
a,
|
|
5027
5041
|
s,
|
|
5028
|
-
|
|
5042
|
+
u,
|
|
5029
5043
|
h,
|
|
5030
5044
|
c,
|
|
5031
5045
|
f,
|
|
5032
5046
|
m,
|
|
5033
5047
|
g,
|
|
5034
|
-
|
|
5048
|
+
v,
|
|
5035
5049
|
q,
|
|
5036
|
-
Zr,
|
|
5037
|
-
Qr,
|
|
5038
|
-
Yr,
|
|
5039
5050
|
qr,
|
|
5040
5051
|
Jr,
|
|
5041
5052
|
Kr,
|
|
5042
|
-
en
|
|
5053
|
+
en,
|
|
5054
|
+
tn,
|
|
5055
|
+
rn,
|
|
5056
|
+
nn
|
|
5043
5057
|
];
|
|
5044
5058
|
}
|
|
5045
|
-
class
|
|
5059
|
+
class Xo extends On {
|
|
5046
5060
|
constructor(t) {
|
|
5047
|
-
super(),
|
|
5061
|
+
super(), Hn(
|
|
5048
5062
|
this,
|
|
5049
5063
|
t,
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5064
|
+
Vo,
|
|
5065
|
+
Wo,
|
|
5066
|
+
fr,
|
|
5053
5067
|
{
|
|
5054
5068
|
menuitemsurl: 23,
|
|
5055
5069
|
cmsendpoint: 24,
|
|
@@ -5065,7 +5079,7 @@ class Wo extends Sn {
|
|
|
5065
5079
|
customlocaleidentifier: 33,
|
|
5066
5080
|
countryflaghamburger: 0
|
|
5067
5081
|
},
|
|
5068
|
-
|
|
5082
|
+
Uo,
|
|
5069
5083
|
[-1, -1, -1]
|
|
5070
5084
|
);
|
|
5071
5085
|
}
|
|
@@ -5148,7 +5162,7 @@ class Wo extends Sn {
|
|
|
5148
5162
|
this.$$set({ countryflaghamburger: t }), D();
|
|
5149
5163
|
}
|
|
5150
5164
|
}
|
|
5151
|
-
|
|
5165
|
+
Tn(Xo, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5152
5166
|
export {
|
|
5153
|
-
|
|
5167
|
+
Xo as C
|
|
5154
5168
|
};
|