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