@everymatrix/casino-slider 1.86.4 → 1.86.6
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/CasinoSlider--2EOQgrO.cjs +3 -0
- package/components/{CasinoSlider-CG2xb7x_.js → CasinoSlider-Bs1P1nft.js} +766 -762
- package/components/{CasinoSlider-_Z5r1hRk.js → CasinoSlider-D4VMNPTd.js} +766 -762
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-Bw7Wimze.cjs +0 -16
|
@@ -2,29 +2,29 @@ var kr = Object.defineProperty, $r = Object.defineProperties;
|
|
|
2
2
|
var jr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var pt = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var $e = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Vr.call(t, r) &&
|
|
7
|
+
Vr.call(t, r) && $e(e, r, t[r]);
|
|
8
8
|
if (pt)
|
|
9
9
|
for (var r of pt(t))
|
|
10
|
-
Xr.call(t, r) &&
|
|
10
|
+
Xr.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, bt = (e, t) => $r(e, jr(t));
|
|
13
|
-
var G = (e, t, r) => (
|
|
13
|
+
var G = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var yt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
23
|
a(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(
|
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
@@ -35,18 +35,18 @@ function zt(e) {
|
|
|
35
35
|
function vt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function K(e) {
|
|
39
39
|
e.forEach(zt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function at(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Zt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
47
|
+
let Te;
|
|
48
48
|
function _t(e, t) {
|
|
49
|
-
return e === t ? !0 : (
|
|
49
|
+
return e === t ? !0 : (Te || (Te = document.createElement("a")), Te.href = t, e === Te.href);
|
|
50
50
|
}
|
|
51
51
|
function Wr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
@@ -100,16 +100,16 @@ function Jr(e, t) {
|
|
|
100
100
|
function P(e) {
|
|
101
101
|
return document.createElement(e);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Ce(e) {
|
|
104
104
|
return document.createTextNode(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function Y() {
|
|
107
|
+
return Ce(" ");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function _e() {
|
|
110
|
+
return Ce("");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function X(e, t, r, n) {
|
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
114
|
}
|
|
115
115
|
function Yr(e) {
|
|
@@ -117,13 +117,13 @@ function Yr(e) {
|
|
|
117
117
|
return t.preventDefault(), e.call(this, t);
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function S(e, t, r) {
|
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
122
122
|
}
|
|
123
123
|
function Kr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function lt(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
@@ -136,14 +136,14 @@ function en(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let Ee;
|
|
140
|
+
function ye(e) {
|
|
141
|
+
Ee = e;
|
|
142
142
|
}
|
|
143
143
|
function tn() {
|
|
144
|
-
if (!
|
|
144
|
+
if (!Ee)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return Ee;
|
|
147
147
|
}
|
|
148
148
|
function rn(e) {
|
|
149
149
|
tn().$$.on_mount.push(e);
|
|
@@ -152,113 +152,113 @@ function nn(e, t) {
|
|
|
152
152
|
const r = e.$$.callbacks[t.type];
|
|
153
153
|
r && r.slice().forEach((n) => n.call(this, t));
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
let
|
|
155
|
+
const oe = [], ve = [];
|
|
156
|
+
let se = [];
|
|
157
157
|
const Et = [], on = /* @__PURE__ */ Promise.resolve();
|
|
158
|
-
let
|
|
158
|
+
let qe = !1;
|
|
159
159
|
function sn() {
|
|
160
|
-
|
|
160
|
+
qe || (qe = !0, on.then(B));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function Je(e) {
|
|
163
|
+
se.push(e);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
let
|
|
165
|
+
const je = /* @__PURE__ */ new Set();
|
|
166
|
+
let ne = 0;
|
|
167
167
|
function B() {
|
|
168
|
-
if (
|
|
168
|
+
if (ne !== 0)
|
|
169
169
|
return;
|
|
170
|
-
const e =
|
|
170
|
+
const e = Ee;
|
|
171
171
|
do {
|
|
172
172
|
try {
|
|
173
|
-
for (;
|
|
174
|
-
const t =
|
|
175
|
-
|
|
173
|
+
for (; ne < oe.length; ) {
|
|
174
|
+
const t = oe[ne];
|
|
175
|
+
ne++, ye(t), an(t.$$);
|
|
176
176
|
}
|
|
177
177
|
} catch (t) {
|
|
178
|
-
throw
|
|
178
|
+
throw oe.length = 0, ne = 0, t;
|
|
179
179
|
}
|
|
180
|
-
for (
|
|
181
|
-
|
|
182
|
-
for (let t = 0; t <
|
|
183
|
-
const r =
|
|
184
|
-
|
|
180
|
+
for (ye(null), oe.length = 0, ne = 0; ve.length; )
|
|
181
|
+
ve.pop()();
|
|
182
|
+
for (let t = 0; t < se.length; t += 1) {
|
|
183
|
+
const r = se[t];
|
|
184
|
+
je.has(r) || (je.add(r), r());
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
} while (
|
|
186
|
+
se.length = 0;
|
|
187
|
+
} while (oe.length);
|
|
188
188
|
for (; Et.length; )
|
|
189
189
|
Et.pop()();
|
|
190
|
-
|
|
190
|
+
qe = !1, je.clear(), ye(e);
|
|
191
191
|
}
|
|
192
192
|
function an(e) {
|
|
193
193
|
if (e.fragment !== null) {
|
|
194
|
-
e.update(),
|
|
194
|
+
e.update(), K(e.before_update);
|
|
195
195
|
const t = e.dirty;
|
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
function ln(e) {
|
|
200
200
|
const t = [], r = [];
|
|
201
|
-
|
|
201
|
+
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
202
202
|
}
|
|
203
203
|
const un = /* @__PURE__ */ new Set();
|
|
204
204
|
function Qt(e, t) {
|
|
205
205
|
e && e.i && (un.delete(e), e.i(t));
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ae(e) {
|
|
208
208
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
209
209
|
}
|
|
210
210
|
function qt(e, t) {
|
|
211
211
|
e.d(1), t.delete(e.key);
|
|
212
212
|
}
|
|
213
|
-
function Jt(e, t, r, n, i,
|
|
214
|
-
let f = e.length, p =
|
|
213
|
+
function Jt(e, t, r, n, i, o, s, a, u, l, c, m) {
|
|
214
|
+
let f = e.length, p = o.length, g = f;
|
|
215
215
|
const b = {};
|
|
216
216
|
for (; g--; )
|
|
217
217
|
b[e[g].key] = g;
|
|
218
|
-
const d = [],
|
|
218
|
+
const d = [], C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), w = [];
|
|
219
219
|
for (g = p; g--; ) {
|
|
220
|
-
const
|
|
221
|
-
let D =
|
|
222
|
-
D ?
|
|
220
|
+
const H = m(i, o, g), R = r(H);
|
|
221
|
+
let D = s.get(R);
|
|
222
|
+
D ? w.push(() => D.p(H, t)) : (D = l(R, H), D.c()), C.set(R, d[g] = D), R in b && E.set(R, Math.abs(g - b[R]));
|
|
223
223
|
}
|
|
224
224
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
|
225
|
-
function v(
|
|
226
|
-
Qt(
|
|
225
|
+
function v(H) {
|
|
226
|
+
Qt(H, 1), H.m(a, c), s.set(H.key, H), c = H.first, p--;
|
|
227
227
|
}
|
|
228
228
|
for (; f && p; ) {
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const H = d[p - 1], R = e[f - 1], D = H.key, te = R.key;
|
|
230
|
+
H === R ? (c = H.first, f--, p--) : C.has(te) ? !s.has(D) || O.has(D) ? v(H) : L.has(te) ? f-- : E.get(D) > E.get(te) ? (L.add(D), v(H)) : (O.add(te), f--) : (u(R, s), f--);
|
|
231
231
|
}
|
|
232
232
|
for (; f--; ) {
|
|
233
|
-
const
|
|
234
|
-
|
|
233
|
+
const H = e[f];
|
|
234
|
+
C.has(H.key) || u(H, s);
|
|
235
235
|
}
|
|
236
236
|
for (; p; )
|
|
237
237
|
v(d[p - 1]);
|
|
238
|
-
return
|
|
238
|
+
return K(w), d;
|
|
239
239
|
}
|
|
240
240
|
function hn(e, t, r) {
|
|
241
241
|
const { fragment: n, after_update: i } = e.$$;
|
|
242
|
-
n && n.m(t, r),
|
|
243
|
-
const
|
|
244
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
245
|
-
}), i.forEach(
|
|
242
|
+
n && n.m(t, r), Je(() => {
|
|
243
|
+
const o = e.$$.on_mount.map(zt).filter(at);
|
|
244
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
245
|
+
}), i.forEach(Je);
|
|
246
246
|
}
|
|
247
247
|
function cn(e, t) {
|
|
248
248
|
const r = e.$$;
|
|
249
|
-
r.fragment !== null && (ln(r.after_update),
|
|
249
|
+
r.fragment !== null && (ln(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
250
250
|
}
|
|
251
251
|
function fn(e, t) {
|
|
252
|
-
e.$$.dirty[0] === -1 && (
|
|
252
|
+
e.$$.dirty[0] === -1 && (oe.push(e), sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
253
253
|
}
|
|
254
|
-
function mn(e, t, r, n, i,
|
|
255
|
-
const u =
|
|
256
|
-
|
|
254
|
+
function mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
255
|
+
const u = Ee;
|
|
256
|
+
ye(e);
|
|
257
257
|
const l = e.$$ = {
|
|
258
258
|
fragment: null,
|
|
259
259
|
ctx: [],
|
|
260
260
|
// state
|
|
261
|
-
props:
|
|
261
|
+
props: o,
|
|
262
262
|
update: $,
|
|
263
263
|
not_equal: i,
|
|
264
264
|
bound: vt(),
|
|
@@ -275,12 +275,12 @@ function mn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
275
275
|
skip_bound: !1,
|
|
276
276
|
root: t.target || u.$$.root
|
|
277
277
|
};
|
|
278
|
-
|
|
278
|
+
s && s(l.root);
|
|
279
279
|
let c = !1;
|
|
280
280
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
|
281
281
|
const g = p.length ? p[0] : f;
|
|
282
282
|
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), c && fn(e, m)), f;
|
|
283
|
-
}) : [], l.update(), c = !0,
|
|
283
|
+
}) : [], l.update(), c = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
284
284
|
if (t.hydrate) {
|
|
285
285
|
const m = Kr(t.target);
|
|
286
286
|
l.fragment && l.fragment.l(m), m.forEach(U);
|
|
@@ -288,7 +288,7 @@ function mn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
288
288
|
l.fragment && l.fragment.c();
|
|
289
289
|
t.intro && Qt(e.$$.fragment), hn(e, t.target, t.anchor), B();
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
ye(u);
|
|
292
292
|
}
|
|
293
293
|
let Yt;
|
|
294
294
|
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
@@ -330,22 +330,22 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
330
330
|
connectedCallback() {
|
|
331
331
|
return yt(this, null, function* () {
|
|
332
332
|
if (this.$$cn = !0, !this.$$c) {
|
|
333
|
-
let t = function(
|
|
333
|
+
let t = function(o) {
|
|
334
334
|
return () => {
|
|
335
|
-
let
|
|
335
|
+
let s;
|
|
336
336
|
return {
|
|
337
337
|
c: function() {
|
|
338
|
-
|
|
338
|
+
s = P("slot"), o !== "default" && S(s, "name", o);
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
341
341
|
* @param {HTMLElement} target
|
|
342
342
|
* @param {HTMLElement} [anchor]
|
|
343
343
|
*/
|
|
344
344
|
m: function(l, c) {
|
|
345
|
-
k(l,
|
|
345
|
+
k(l, s, c);
|
|
346
346
|
},
|
|
347
347
|
d: function(l) {
|
|
348
|
-
l && U(
|
|
348
|
+
l && U(s);
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
};
|
|
@@ -353,14 +353,14 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
353
353
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
354
354
|
return;
|
|
355
355
|
const r = {}, n = en(this);
|
|
356
|
-
for (const
|
|
357
|
-
|
|
358
|
-
for (const
|
|
359
|
-
const
|
|
360
|
-
|
|
356
|
+
for (const o of this.$$s)
|
|
357
|
+
o in n && (r[o] = [t(o)]);
|
|
358
|
+
for (const o of this.attributes) {
|
|
359
|
+
const s = this.$$g_p(o.name);
|
|
360
|
+
s in this.$$d || (this.$$d[s] = Be(s, o.value, this.$$p_d, "toProp"));
|
|
361
361
|
}
|
|
362
|
-
for (const
|
|
363
|
-
!(
|
|
362
|
+
for (const o in this.$$p_d)
|
|
363
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
364
364
|
this.$$c = new this.$$ctor({
|
|
365
365
|
target: this.shadowRoot || this,
|
|
366
366
|
props: bt(gt({}, this.$$d), {
|
|
@@ -372,23 +372,23 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
372
372
|
});
|
|
373
373
|
const i = () => {
|
|
374
374
|
this.$$r = !0;
|
|
375
|
-
for (const
|
|
376
|
-
if (this.$$d[
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
this.$$d[
|
|
375
|
+
for (const o in this.$$p_d)
|
|
376
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
377
|
+
const s = Be(
|
|
378
|
+
o,
|
|
379
|
+
this.$$d[o],
|
|
380
380
|
this.$$p_d,
|
|
381
381
|
"toAttribute"
|
|
382
382
|
);
|
|
383
|
-
|
|
383
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
384
384
|
}
|
|
385
385
|
this.$$r = !1;
|
|
386
386
|
};
|
|
387
387
|
this.$$c.$$.after_update.push(i), i();
|
|
388
|
-
for (const
|
|
389
|
-
for (const
|
|
390
|
-
const a = this.$$c.$on(
|
|
391
|
-
this.$$l_u.set(
|
|
388
|
+
for (const o in this.$$l)
|
|
389
|
+
for (const s of this.$$l[o]) {
|
|
390
|
+
const a = this.$$c.$on(o, s);
|
|
391
|
+
this.$$l_u.set(s, a);
|
|
392
392
|
}
|
|
393
393
|
this.$$l = {};
|
|
394
394
|
}
|
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
398
398
|
// and setting attributes through setAttribute etc, this is helpful
|
|
399
399
|
attributeChangedCallback(t, r, n) {
|
|
400
400
|
var i;
|
|
401
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
401
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
402
402
|
}
|
|
403
403
|
disconnectedCallback() {
|
|
404
404
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -411,9 +411,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
411
411
|
) || t;
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
|
-
function
|
|
415
|
-
var
|
|
416
|
-
const i = (
|
|
414
|
+
function Be(e, t, r, n) {
|
|
415
|
+
var o;
|
|
416
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
417
417
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
418
418
|
return t;
|
|
419
419
|
if (n === "toAttribute")
|
|
@@ -441,8 +441,8 @@ function Ae(e, t, r, n) {
|
|
|
441
441
|
return t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function dn(e, t, r, n, i,
|
|
445
|
-
let
|
|
444
|
+
function dn(e, t, r, n, i, o) {
|
|
445
|
+
let s = class extends Yt {
|
|
446
446
|
constructor() {
|
|
447
447
|
super(e, r, i), this.$$p_d = t;
|
|
448
448
|
}
|
|
@@ -453,24 +453,24 @@ function dn(e, t, r, n, i, s) {
|
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
return Object.keys(t).forEach((a) => {
|
|
456
|
-
Object.defineProperty(
|
|
456
|
+
Object.defineProperty(s.prototype, a, {
|
|
457
457
|
get() {
|
|
458
458
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
459
459
|
},
|
|
460
460
|
set(u) {
|
|
461
461
|
var l;
|
|
462
|
-
u =
|
|
462
|
+
u = Be(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
}), n.forEach((a) => {
|
|
466
|
-
Object.defineProperty(
|
|
466
|
+
Object.defineProperty(s.prototype, a, {
|
|
467
467
|
get() {
|
|
468
468
|
var u;
|
|
469
469
|
return (u = this.$$c) == null ? void 0 : u[a];
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
472
|
}), e.element = /** @type {any} */
|
|
473
|
-
|
|
473
|
+
s, s;
|
|
474
474
|
}
|
|
475
475
|
class pn {
|
|
476
476
|
constructor() {
|
|
@@ -502,7 +502,7 @@ class pn {
|
|
|
502
502
|
* @returns {() => void}
|
|
503
503
|
*/
|
|
504
504
|
$on(t, r) {
|
|
505
|
-
if (!
|
|
505
|
+
if (!at(r))
|
|
506
506
|
return $;
|
|
507
507
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
508
508
|
return n.push(r), () => {
|
|
@@ -545,44 +545,44 @@ function vn(e, t, r) {
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const ie = [];
|
|
549
549
|
function _n(e, t) {
|
|
550
550
|
return {
|
|
551
|
-
subscribe:
|
|
551
|
+
subscribe: Oe(e, t).subscribe
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Oe(e, t = $) {
|
|
555
555
|
let r;
|
|
556
556
|
const n = /* @__PURE__ */ new Set();
|
|
557
557
|
function i(a) {
|
|
558
558
|
if (Zt(e, a) && (e = a, r)) {
|
|
559
|
-
const u = !
|
|
559
|
+
const u = !ie.length;
|
|
560
560
|
for (const l of n)
|
|
561
|
-
l[1](),
|
|
561
|
+
l[1](), ie.push(l, e);
|
|
562
562
|
if (u) {
|
|
563
|
-
for (let l = 0; l <
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
for (let l = 0; l < ie.length; l += 2)
|
|
564
|
+
ie[l][0](ie[l + 1]);
|
|
565
|
+
ie.length = 0;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function o(a) {
|
|
570
570
|
i(a(e));
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function s(a, u = $) {
|
|
573
573
|
const l = [a, u];
|
|
574
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
|
574
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
|
575
575
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
return { set: i, update:
|
|
578
|
+
return { set: i, update: o, subscribe: s };
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function fe(e, t, r) {
|
|
581
581
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
582
582
|
if (!i.every(Boolean))
|
|
583
583
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
584
|
-
const
|
|
585
|
-
return _n(r, (
|
|
584
|
+
const o = t.length < 2;
|
|
585
|
+
return _n(r, (s, a) => {
|
|
586
586
|
let u = !1;
|
|
587
587
|
const l = [];
|
|
588
588
|
let c = 0, m = $;
|
|
@@ -590,8 +590,8 @@ function ce(e, t, r) {
|
|
|
590
590
|
if (c)
|
|
591
591
|
return;
|
|
592
592
|
m();
|
|
593
|
-
const g = t(n ? l[0] : l,
|
|
594
|
-
|
|
593
|
+
const g = t(n ? l[0] : l, s, a);
|
|
594
|
+
o ? s(g) : m = at(g) ? g : $;
|
|
595
595
|
}, p = i.map(
|
|
596
596
|
(g, b) => zr(
|
|
597
597
|
g,
|
|
@@ -604,7 +604,7 @@ function ce(e, t, r) {
|
|
|
604
604
|
)
|
|
605
605
|
);
|
|
606
606
|
return u = !0, f(), function() {
|
|
607
|
-
|
|
607
|
+
K(p), m(), u = !1;
|
|
608
608
|
};
|
|
609
609
|
});
|
|
610
610
|
}
|
|
@@ -628,19 +628,19 @@ function Tn(e) {
|
|
|
628
628
|
function An(e) {
|
|
629
629
|
return Array.isArray(e) ? [] : {};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
631
|
+
function xe(e, t) {
|
|
632
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? le(An(e), e, t) : e;
|
|
633
633
|
}
|
|
634
634
|
function Bn(e, t, r) {
|
|
635
635
|
return e.concat(t).map(function(n) {
|
|
636
|
-
return
|
|
636
|
+
return xe(n, r);
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
function In(e, t) {
|
|
640
640
|
if (!t.customMerge)
|
|
641
|
-
return
|
|
641
|
+
return le;
|
|
642
642
|
var r = t.customMerge(e);
|
|
643
|
-
return typeof r == "function" ? r :
|
|
643
|
+
return typeof r == "function" ? r : le;
|
|
644
644
|
}
|
|
645
645
|
function Mn(e) {
|
|
646
646
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -663,65 +663,51 @@ function Ln(e, t) {
|
|
|
663
663
|
function Nn(e, t, r) {
|
|
664
664
|
var n = {};
|
|
665
665
|
return r.isMergeableObject(e) && xt(e).forEach(function(i) {
|
|
666
|
-
n[i] =
|
|
666
|
+
n[i] = xe(e[i], r);
|
|
667
667
|
}), xt(t).forEach(function(i) {
|
|
668
|
-
Ln(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] =
|
|
668
|
+
Ln(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
669
669
|
}), n;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified =
|
|
673
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
674
|
-
return
|
|
671
|
+
function le(e, t, r) {
|
|
672
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
673
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
674
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : xe(t, r);
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
le.all = function(t, r) {
|
|
677
677
|
if (!Array.isArray(t))
|
|
678
678
|
throw new Error("first argument should be an array");
|
|
679
679
|
return t.reduce(function(n, i) {
|
|
680
|
-
return
|
|
680
|
+
return le(n, i, r);
|
|
681
681
|
}, {});
|
|
682
682
|
};
|
|
683
|
-
var Pn =
|
|
683
|
+
var Pn = le, On = Pn;
|
|
684
684
|
const Fn = /* @__PURE__ */ En(On);
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
689
|
-
purpose with or without fee is hereby granted.
|
|
690
|
-
|
|
691
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
692
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
693
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
694
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
695
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
696
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
697
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
698
|
-
***************************************************************************** */
|
|
699
|
-
var qe = function(e, t) {
|
|
700
|
-
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
685
|
+
var Ye = function(e, t) {
|
|
686
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
701
687
|
r.__proto__ = n;
|
|
702
688
|
} || function(r, n) {
|
|
703
689
|
for (var i in n)
|
|
704
690
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
705
|
-
},
|
|
691
|
+
}, Ye(e, t);
|
|
706
692
|
};
|
|
707
|
-
function
|
|
693
|
+
function Fe(e, t) {
|
|
708
694
|
if (typeof t != "function" && t !== null)
|
|
709
695
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
710
|
-
|
|
696
|
+
Ye(e, t);
|
|
711
697
|
function r() {
|
|
712
698
|
this.constructor = e;
|
|
713
699
|
}
|
|
714
700
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
715
701
|
}
|
|
716
|
-
var
|
|
717
|
-
return
|
|
702
|
+
var j = function() {
|
|
703
|
+
return j = Object.assign || function(t) {
|
|
718
704
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
705
|
r = arguments[n];
|
|
720
|
-
for (var
|
|
721
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
706
|
+
for (var o in r)
|
|
707
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
722
708
|
}
|
|
723
709
|
return t;
|
|
724
|
-
},
|
|
710
|
+
}, j.apply(this, arguments);
|
|
725
711
|
};
|
|
726
712
|
function Rn(e, t) {
|
|
727
713
|
var r = {};
|
|
@@ -732,14 +718,14 @@ function Rn(e, t) {
|
|
|
732
718
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
733
719
|
return r;
|
|
734
720
|
}
|
|
735
|
-
function
|
|
736
|
-
if (arguments.length === 2)
|
|
737
|
-
for (var n = 0, i = t.length,
|
|
738
|
-
(
|
|
739
|
-
return e.concat(
|
|
721
|
+
function Ve(e, t, r) {
|
|
722
|
+
if (r || arguments.length === 2)
|
|
723
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
724
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
725
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
740
726
|
}
|
|
741
|
-
function
|
|
742
|
-
var r = t && t.cache ? t.cache :
|
|
727
|
+
function Xe(e, t) {
|
|
728
|
+
var r = t && t.cache ? t.cache : Vn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Gn;
|
|
743
729
|
return i(e, {
|
|
744
730
|
cache: r,
|
|
745
731
|
serializer: n
|
|
@@ -748,95 +734,103 @@ function je(e, t) {
|
|
|
748
734
|
function Dn(e) {
|
|
749
735
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
750
736
|
}
|
|
751
|
-
function
|
|
752
|
-
var i = Dn(n) ? n : r(n),
|
|
753
|
-
return typeof
|
|
737
|
+
function Un(e, t, r, n) {
|
|
738
|
+
var i = Dn(n) ? n : r(n), o = t.get(i);
|
|
739
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
754
740
|
}
|
|
755
|
-
function
|
|
756
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
757
|
-
return typeof
|
|
741
|
+
function er(e, t, r) {
|
|
742
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
743
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
758
744
|
}
|
|
759
|
-
function
|
|
745
|
+
function tr(e, t, r, n, i) {
|
|
760
746
|
return r.bind(t, e, n, i);
|
|
761
747
|
}
|
|
762
|
-
function Un(e, t) {
|
|
763
|
-
var r = e.length === 1 ? er : tr;
|
|
764
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
|
765
|
-
}
|
|
766
748
|
function Gn(e, t) {
|
|
767
|
-
|
|
749
|
+
var r = e.length === 1 ? Un : er;
|
|
750
|
+
return tr(e, this, r, t.cache.create(), t.serializer);
|
|
768
751
|
}
|
|
769
752
|
function kn(e, t) {
|
|
770
|
-
return
|
|
753
|
+
return tr(e, this, er, t.cache.create(), t.serializer);
|
|
771
754
|
}
|
|
772
755
|
var $n = function() {
|
|
773
756
|
return JSON.stringify(arguments);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
757
|
+
}, jn = (
|
|
758
|
+
/** @class */
|
|
759
|
+
function() {
|
|
760
|
+
function e() {
|
|
761
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
762
|
+
}
|
|
763
|
+
return e.prototype.get = function(t) {
|
|
764
|
+
return this.cache[t];
|
|
765
|
+
}, e.prototype.set = function(t, r) {
|
|
766
|
+
this.cache[t] = r;
|
|
767
|
+
}, e;
|
|
768
|
+
}()
|
|
769
|
+
), Vn = {
|
|
785
770
|
create: function() {
|
|
786
|
-
return new
|
|
771
|
+
return new jn();
|
|
787
772
|
}
|
|
788
|
-
},
|
|
789
|
-
variadic:
|
|
790
|
-
|
|
791
|
-
|
|
773
|
+
}, We = {
|
|
774
|
+
variadic: kn
|
|
775
|
+
}, Le = function() {
|
|
776
|
+
return Le = Object.assign || function(t) {
|
|
777
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
778
|
+
r = arguments[n];
|
|
779
|
+
for (var o in r)
|
|
780
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
781
|
+
}
|
|
782
|
+
return t;
|
|
783
|
+
}, Le.apply(this, arguments);
|
|
784
|
+
};
|
|
785
|
+
var y;
|
|
792
786
|
(function(e) {
|
|
793
787
|
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";
|
|
794
788
|
})(y || (y = {}));
|
|
795
|
-
var
|
|
789
|
+
var T;
|
|
796
790
|
(function(e) {
|
|
797
791
|
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";
|
|
798
|
-
})(
|
|
799
|
-
var
|
|
792
|
+
})(T || (T = {}));
|
|
793
|
+
var ue;
|
|
800
794
|
(function(e) {
|
|
801
795
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
802
|
-
})(
|
|
796
|
+
})(ue || (ue = {}));
|
|
803
797
|
function wt(e) {
|
|
804
|
-
return e.type ===
|
|
798
|
+
return e.type === T.literal;
|
|
805
799
|
}
|
|
806
|
-
function
|
|
807
|
-
return e.type ===
|
|
800
|
+
function Xn(e) {
|
|
801
|
+
return e.type === T.argument;
|
|
808
802
|
}
|
|
809
803
|
function rr(e) {
|
|
810
|
-
return e.type ===
|
|
804
|
+
return e.type === T.number;
|
|
811
805
|
}
|
|
812
806
|
function nr(e) {
|
|
813
|
-
return e.type ===
|
|
807
|
+
return e.type === T.date;
|
|
814
808
|
}
|
|
815
809
|
function ir(e) {
|
|
816
|
-
return e.type ===
|
|
810
|
+
return e.type === T.time;
|
|
817
811
|
}
|
|
818
812
|
function or(e) {
|
|
819
|
-
return e.type ===
|
|
813
|
+
return e.type === T.select;
|
|
820
814
|
}
|
|
821
815
|
function sr(e) {
|
|
822
|
-
return e.type ===
|
|
816
|
+
return e.type === T.plural;
|
|
823
817
|
}
|
|
824
|
-
function
|
|
825
|
-
return e.type ===
|
|
818
|
+
function Wn(e) {
|
|
819
|
+
return e.type === T.pound;
|
|
826
820
|
}
|
|
827
821
|
function ar(e) {
|
|
828
|
-
return e.type ===
|
|
822
|
+
return e.type === T.tag;
|
|
829
823
|
}
|
|
830
824
|
function lr(e) {
|
|
831
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
825
|
+
return !!(e && typeof e == "object" && e.type === ue.number);
|
|
832
826
|
}
|
|
833
|
-
function
|
|
834
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
827
|
+
function Ke(e) {
|
|
828
|
+
return !!(e && typeof e == "object" && e.type === ue.dateTime);
|
|
835
829
|
}
|
|
836
|
-
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
837
|
-
function
|
|
830
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
831
|
+
function Zn(e) {
|
|
838
832
|
var t = {};
|
|
839
|
-
return e.replace(
|
|
833
|
+
return e.replace(zn, function(r) {
|
|
840
834
|
var n = r.length;
|
|
841
835
|
switch (r[0]) {
|
|
842
836
|
case "G":
|
|
@@ -925,17 +919,27 @@ function zn(e) {
|
|
|
925
919
|
return "";
|
|
926
920
|
}), t;
|
|
927
921
|
}
|
|
928
|
-
var
|
|
929
|
-
function
|
|
922
|
+
var A = function() {
|
|
923
|
+
return A = Object.assign || function(t) {
|
|
924
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
925
|
+
r = arguments[n];
|
|
926
|
+
for (var o in r)
|
|
927
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
928
|
+
}
|
|
929
|
+
return t;
|
|
930
|
+
}, A.apply(this, arguments);
|
|
931
|
+
};
|
|
932
|
+
var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
933
|
+
function qn(e) {
|
|
930
934
|
if (e.length === 0)
|
|
931
935
|
throw new Error("Number skeleton cannot be empty");
|
|
932
|
-
for (var t = e.split(
|
|
936
|
+
for (var t = e.split(Qn).filter(function(f) {
|
|
933
937
|
return f.length > 0;
|
|
934
938
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
935
|
-
var
|
|
936
|
-
if (
|
|
939
|
+
var o = i[n], s = o.split("/");
|
|
940
|
+
if (s.length === 0)
|
|
937
941
|
throw new Error("Invalid number skeleton");
|
|
938
|
-
for (var a =
|
|
942
|
+
for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
939
943
|
var m = c[l];
|
|
940
944
|
if (m.length === 0)
|
|
941
945
|
throw new Error("Invalid number skeleton");
|
|
@@ -944,10 +948,10 @@ function Qn(e) {
|
|
|
944
948
|
}
|
|
945
949
|
return r;
|
|
946
950
|
}
|
|
947
|
-
function
|
|
951
|
+
function Jn(e) {
|
|
948
952
|
return e.replace(/^(.*?)-/, "");
|
|
949
953
|
}
|
|
950
|
-
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
954
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
951
955
|
function Ht(e) {
|
|
952
956
|
var t = {};
|
|
953
957
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
|
|
@@ -994,7 +998,7 @@ function fr(e) {
|
|
|
994
998
|
};
|
|
995
999
|
}
|
|
996
1000
|
}
|
|
997
|
-
function
|
|
1001
|
+
function Kn(e) {
|
|
998
1002
|
var t;
|
|
999
1003
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1000
1004
|
notation: "engineering"
|
|
@@ -1012,7 +1016,7 @@ function St(e) {
|
|
|
1012
1016
|
var t = {}, r = fr(e);
|
|
1013
1017
|
return r || t;
|
|
1014
1018
|
}
|
|
1015
|
-
function
|
|
1019
|
+
function ei(e) {
|
|
1016
1020
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1017
1021
|
var i = n[r];
|
|
1018
1022
|
switch (i.stem) {
|
|
@@ -1036,7 +1040,7 @@ function Kn(e) {
|
|
|
1036
1040
|
continue;
|
|
1037
1041
|
case "measure-unit":
|
|
1038
1042
|
case "unit":
|
|
1039
|
-
t.style = "unit", t.unit =
|
|
1043
|
+
t.style = "unit", t.unit = Jn(i.options[0]);
|
|
1040
1044
|
continue;
|
|
1041
1045
|
case "compact-short":
|
|
1042
1046
|
case "K":
|
|
@@ -1047,13 +1051,13 @@ function Kn(e) {
|
|
|
1047
1051
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1048
1052
|
continue;
|
|
1049
1053
|
case "scientific":
|
|
1050
|
-
t =
|
|
1051
|
-
return
|
|
1054
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1055
|
+
return A(A({}, u), St(l));
|
|
1052
1056
|
}, {}));
|
|
1053
1057
|
continue;
|
|
1054
1058
|
case "engineering":
|
|
1055
|
-
t =
|
|
1056
|
-
return
|
|
1059
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1060
|
+
return A(A({}, u), St(l));
|
|
1057
1061
|
}, {}));
|
|
1058
1062
|
continue;
|
|
1059
1063
|
case "notation-simple":
|
|
@@ -1098,7 +1102,7 @@ function Kn(e) {
|
|
|
1098
1102
|
case "integer-width":
|
|
1099
1103
|
if (i.options.length > 1)
|
|
1100
1104
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1101
|
-
i.options[0].replace(
|
|
1105
|
+
i.options[0].replace(Yn, function(u, l, c, m, f, p) {
|
|
1102
1106
|
if (l)
|
|
1103
1107
|
t.minimumIntegerDigits = c.length;
|
|
1104
1108
|
else {
|
|
@@ -1121,22 +1125,22 @@ function Kn(e) {
|
|
|
1121
1125
|
i.stem.replace(Ct, function(u, l, c, m, f, p) {
|
|
1122
1126
|
return c === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1123
1127
|
});
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1128
|
+
var o = i.options[0];
|
|
1129
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Ht(o)));
|
|
1126
1130
|
continue;
|
|
1127
1131
|
}
|
|
1128
1132
|
if (hr.test(i.stem)) {
|
|
1129
|
-
t =
|
|
1133
|
+
t = A(A({}, t), Ht(i.stem));
|
|
1130
1134
|
continue;
|
|
1131
1135
|
}
|
|
1132
|
-
var
|
|
1133
|
-
|
|
1134
|
-
var a =
|
|
1135
|
-
a && (t =
|
|
1136
|
+
var s = fr(i.stem);
|
|
1137
|
+
s && (t = A(A({}, t), s));
|
|
1138
|
+
var a = Kn(i.stem);
|
|
1139
|
+
a && (t = A(A({}, t), a));
|
|
1136
1140
|
}
|
|
1137
1141
|
return t;
|
|
1138
1142
|
}
|
|
1139
|
-
var
|
|
1143
|
+
var Ae = {
|
|
1140
1144
|
"001": [
|
|
1141
1145
|
"H",
|
|
1142
1146
|
"h"
|
|
@@ -2551,23 +2555,23 @@ var Te = {
|
|
|
2551
2555
|
"h"
|
|
2552
2556
|
]
|
|
2553
2557
|
};
|
|
2554
|
-
function
|
|
2558
|
+
function ti(e, t) {
|
|
2555
2559
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2556
2560
|
var i = e.charAt(n);
|
|
2557
2561
|
if (i === "j") {
|
|
2558
|
-
for (var
|
|
2559
|
-
|
|
2560
|
-
var
|
|
2562
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2563
|
+
o++, n++;
|
|
2564
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ri(t);
|
|
2561
2565
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2562
2566
|
r += u;
|
|
2563
|
-
for (;
|
|
2567
|
+
for (; s-- > 0; )
|
|
2564
2568
|
r = l + r;
|
|
2565
2569
|
} else
|
|
2566
2570
|
i === "J" ? r += "H" : r += i;
|
|
2567
2571
|
}
|
|
2568
2572
|
return r;
|
|
2569
2573
|
}
|
|
2570
|
-
function
|
|
2574
|
+
function ri(e) {
|
|
2571
2575
|
var t = e.hourCycle;
|
|
2572
2576
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2573
2577
|
e.hourCycles && // @ts-ignore
|
|
@@ -2586,23 +2590,23 @@ function ti(e) {
|
|
|
2586
2590
|
}
|
|
2587
2591
|
var r = e.language, n;
|
|
2588
2592
|
r !== "root" && (n = e.maximize().region);
|
|
2589
|
-
var i =
|
|
2593
|
+
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
|
2590
2594
|
return i[0];
|
|
2591
2595
|
}
|
|
2592
|
-
var
|
|
2596
|
+
var ze, ni = new RegExp("^".concat(ur.source, "*")), ii = new RegExp("".concat(ur.source, "*$"));
|
|
2593
2597
|
function _(e, t) {
|
|
2594
2598
|
return { start: e, end: t };
|
|
2595
2599
|
}
|
|
2596
|
-
var
|
|
2600
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
|
2597
2601
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2598
|
-
},
|
|
2602
|
+
}, et = !0;
|
|
2599
2603
|
try {
|
|
2600
|
-
var
|
|
2601
|
-
|
|
2604
|
+
var mi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2605
|
+
et = ((ze = mi.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
|
|
2602
2606
|
} catch (e) {
|
|
2603
|
-
|
|
2607
|
+
et = !1;
|
|
2604
2608
|
}
|
|
2605
|
-
var Tt =
|
|
2609
|
+
var Tt = oi ? (
|
|
2606
2610
|
// Native
|
|
2607
2611
|
function(t, r, n) {
|
|
2608
2612
|
return t.startsWith(r, n);
|
|
@@ -2612,31 +2616,31 @@ var Tt = ii ? (
|
|
|
2612
2616
|
function(t, r, n) {
|
|
2613
2617
|
return t.slice(n, n + r.length) === r;
|
|
2614
2618
|
}
|
|
2615
|
-
),
|
|
2619
|
+
), tt = si ? String.fromCodePoint : (
|
|
2616
2620
|
// IE11
|
|
2617
2621
|
function() {
|
|
2618
2622
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2619
2623
|
t[r] = arguments[r];
|
|
2620
|
-
for (var n = "", i = t.length,
|
|
2621
|
-
if (
|
|
2622
|
-
throw RangeError(
|
|
2623
|
-
n +=
|
|
2624
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2625
|
+
if (s = t[o++], s > 1114111)
|
|
2626
|
+
throw RangeError(s + " is not a valid code point");
|
|
2627
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2624
2628
|
}
|
|
2625
2629
|
return n;
|
|
2626
2630
|
}
|
|
2627
2631
|
), At = (
|
|
2628
2632
|
// native
|
|
2629
|
-
|
|
2633
|
+
ai ? Object.fromEntries : (
|
|
2630
2634
|
// Ponyfill
|
|
2631
2635
|
function(t) {
|
|
2632
2636
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2633
|
-
var
|
|
2634
|
-
r[
|
|
2637
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2638
|
+
r[s] = a;
|
|
2635
2639
|
}
|
|
2636
2640
|
return r;
|
|
2637
2641
|
}
|
|
2638
2642
|
)
|
|
2639
|
-
), mr =
|
|
2643
|
+
), mr = li ? (
|
|
2640
2644
|
// Native
|
|
2641
2645
|
function(t, r) {
|
|
2642
2646
|
return t.codePointAt(r);
|
|
@@ -2646,11 +2650,11 @@ var Tt = ii ? (
|
|
|
2646
2650
|
function(t, r) {
|
|
2647
2651
|
var n = t.length;
|
|
2648
2652
|
if (!(r < 0 || r >= n)) {
|
|
2649
|
-
var i = t.charCodeAt(r),
|
|
2650
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2653
|
+
var i = t.charCodeAt(r), o;
|
|
2654
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2651
2655
|
}
|
|
2652
2656
|
}
|
|
2653
|
-
),
|
|
2657
|
+
), di = ui ? (
|
|
2654
2658
|
// Native
|
|
2655
2659
|
function(t) {
|
|
2656
2660
|
return t.trimStart();
|
|
@@ -2658,9 +2662,9 @@ var Tt = ii ? (
|
|
|
2658
2662
|
) : (
|
|
2659
2663
|
// Ponyfill
|
|
2660
2664
|
function(t) {
|
|
2661
|
-
return t.replace(
|
|
2665
|
+
return t.replace(ni, "");
|
|
2662
2666
|
}
|
|
2663
|
-
),
|
|
2667
|
+
), pi = hi ? (
|
|
2664
2668
|
// Native
|
|
2665
2669
|
function(t) {
|
|
2666
2670
|
return t.trimEnd();
|
|
@@ -2668,32 +2672,32 @@ var Tt = ii ? (
|
|
|
2668
2672
|
) : (
|
|
2669
2673
|
// Ponyfill
|
|
2670
2674
|
function(t) {
|
|
2671
|
-
return t.replace(
|
|
2675
|
+
return t.replace(ii, "");
|
|
2672
2676
|
}
|
|
2673
2677
|
);
|
|
2674
2678
|
function dr(e, t) {
|
|
2675
2679
|
return new RegExp(e, t);
|
|
2676
2680
|
}
|
|
2677
|
-
var
|
|
2678
|
-
if (
|
|
2681
|
+
var rt;
|
|
2682
|
+
if (et) {
|
|
2679
2683
|
var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2680
|
-
|
|
2684
|
+
rt = function(t, r) {
|
|
2681
2685
|
var n;
|
|
2682
2686
|
Bt.lastIndex = r;
|
|
2683
2687
|
var i = Bt.exec(t);
|
|
2684
2688
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2685
2689
|
};
|
|
2686
2690
|
} else
|
|
2687
|
-
|
|
2691
|
+
rt = function(t, r) {
|
|
2688
2692
|
for (var n = []; ; ) {
|
|
2689
2693
|
var i = mr(t, r);
|
|
2690
|
-
if (i === void 0 || pr(i) ||
|
|
2694
|
+
if (i === void 0 || pr(i) || vi(i))
|
|
2691
2695
|
break;
|
|
2692
2696
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2693
2697
|
}
|
|
2694
|
-
return
|
|
2698
|
+
return tt.apply(void 0, n);
|
|
2695
2699
|
};
|
|
2696
|
-
var
|
|
2700
|
+
var gi = (
|
|
2697
2701
|
/** @class */
|
|
2698
2702
|
function() {
|
|
2699
2703
|
function e(t, r) {
|
|
@@ -2705,35 +2709,35 @@ var pi = (
|
|
|
2705
2709
|
return this.parseMessage(0, "", !1);
|
|
2706
2710
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2707
2711
|
for (var i = []; !this.isEOF(); ) {
|
|
2708
|
-
var
|
|
2709
|
-
if (
|
|
2710
|
-
var
|
|
2711
|
-
if (
|
|
2712
|
-
return
|
|
2713
|
-
i.push(
|
|
2712
|
+
var o = this.char();
|
|
2713
|
+
if (o === 123) {
|
|
2714
|
+
var s = this.parseArgument(t, n);
|
|
2715
|
+
if (s.err)
|
|
2716
|
+
return s;
|
|
2717
|
+
i.push(s.val);
|
|
2714
2718
|
} else {
|
|
2715
|
-
if (
|
|
2719
|
+
if (o === 125 && t > 0)
|
|
2716
2720
|
break;
|
|
2717
|
-
if (
|
|
2721
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2718
2722
|
var a = this.clonePosition();
|
|
2719
2723
|
this.bump(), i.push({
|
|
2720
|
-
type:
|
|
2724
|
+
type: T.pound,
|
|
2721
2725
|
location: _(a, this.clonePosition())
|
|
2722
2726
|
});
|
|
2723
|
-
} else if (
|
|
2727
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2724
2728
|
if (n)
|
|
2725
2729
|
break;
|
|
2726
2730
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2727
|
-
} else if (
|
|
2728
|
-
var
|
|
2729
|
-
if (
|
|
2730
|
-
return
|
|
2731
|
-
i.push(
|
|
2731
|
+
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
2732
|
+
var s = this.parseTag(t, r);
|
|
2733
|
+
if (s.err)
|
|
2734
|
+
return s;
|
|
2735
|
+
i.push(s.val);
|
|
2732
2736
|
} else {
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
2735
|
-
return
|
|
2736
|
-
i.push(
|
|
2737
|
+
var s = this.parseLiteral(t, r);
|
|
2738
|
+
if (s.err)
|
|
2739
|
+
return s;
|
|
2740
|
+
i.push(s.val);
|
|
2737
2741
|
}
|
|
2738
2742
|
}
|
|
2739
2743
|
}
|
|
@@ -2745,26 +2749,26 @@ var pi = (
|
|
|
2745
2749
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2746
2750
|
return {
|
|
2747
2751
|
val: {
|
|
2748
|
-
type:
|
|
2752
|
+
type: T.literal,
|
|
2749
2753
|
value: "<".concat(i, "/>"),
|
|
2750
2754
|
location: _(n, this.clonePosition())
|
|
2751
2755
|
},
|
|
2752
2756
|
err: null
|
|
2753
2757
|
};
|
|
2754
2758
|
if (this.bumpIf(">")) {
|
|
2755
|
-
var
|
|
2756
|
-
if (
|
|
2757
|
-
return
|
|
2758
|
-
var
|
|
2759
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2760
|
+
if (o.err)
|
|
2761
|
+
return o;
|
|
2762
|
+
var s = o.val, a = this.clonePosition();
|
|
2759
2763
|
if (this.bumpIf("</")) {
|
|
2760
|
-
if (this.isEOF() || !
|
|
2764
|
+
if (this.isEOF() || !nt(this.char()))
|
|
2761
2765
|
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
2762
2766
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2763
2767
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2764
2768
|
val: {
|
|
2765
|
-
type:
|
|
2769
|
+
type: T.tag,
|
|
2766
2770
|
value: i,
|
|
2767
|
-
children:
|
|
2771
|
+
children: s,
|
|
2768
2772
|
location: _(n, this.clonePosition())
|
|
2769
2773
|
},
|
|
2770
2774
|
err: null
|
|
@@ -2775,21 +2779,21 @@ var pi = (
|
|
|
2775
2779
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2776
2780
|
}, e.prototype.parseTagName = function() {
|
|
2777
2781
|
var t = this.offset();
|
|
2778
|
-
for (this.bump(); !this.isEOF() &&
|
|
2782
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
|
2779
2783
|
this.bump();
|
|
2780
2784
|
return this.message.slice(t, this.offset());
|
|
2781
2785
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2782
2786
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2783
|
-
var
|
|
2784
|
-
if (s) {
|
|
2785
|
-
i += s;
|
|
2786
|
-
continue;
|
|
2787
|
-
}
|
|
2788
|
-
var o = this.tryParseUnquoted(t, r);
|
|
2787
|
+
var o = this.tryParseQuote(r);
|
|
2789
2788
|
if (o) {
|
|
2790
2789
|
i += o;
|
|
2791
2790
|
continue;
|
|
2792
2791
|
}
|
|
2792
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2793
|
+
if (s) {
|
|
2794
|
+
i += s;
|
|
2795
|
+
continue;
|
|
2796
|
+
}
|
|
2793
2797
|
var a = this.tryParseLeftAngleBracket();
|
|
2794
2798
|
if (a) {
|
|
2795
2799
|
i += a;
|
|
@@ -2799,12 +2803,12 @@ var pi = (
|
|
|
2799
2803
|
}
|
|
2800
2804
|
var u = _(n, this.clonePosition());
|
|
2801
2805
|
return {
|
|
2802
|
-
val: { type:
|
|
2806
|
+
val: { type: T.literal, value: i, location: u },
|
|
2803
2807
|
err: null
|
|
2804
2808
|
};
|
|
2805
2809
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2806
2810
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2807
|
-
!
|
|
2811
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2808
2812
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2809
2813
|
if (this.isEOF() || this.char() !== 39)
|
|
2810
2814
|
return null;
|
|
@@ -2838,12 +2842,12 @@ var pi = (
|
|
|
2838
2842
|
r.push(n);
|
|
2839
2843
|
this.bump();
|
|
2840
2844
|
}
|
|
2841
|
-
return
|
|
2845
|
+
return tt.apply(void 0, r);
|
|
2842
2846
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2843
2847
|
if (this.isEOF())
|
|
2844
2848
|
return null;
|
|
2845
2849
|
var n = this.char();
|
|
2846
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2850
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
|
2847
2851
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2848
2852
|
var n = this.clonePosition();
|
|
2849
2853
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2859,7 +2863,7 @@ var pi = (
|
|
|
2859
2863
|
case 125:
|
|
2860
2864
|
return this.bump(), {
|
|
2861
2865
|
val: {
|
|
2862
|
-
type:
|
|
2866
|
+
type: T.argument,
|
|
2863
2867
|
// value does not include the opening and closing braces.
|
|
2864
2868
|
value: i,
|
|
2865
2869
|
location: _(n, this.clonePosition())
|
|
@@ -2872,15 +2876,15 @@ var pi = (
|
|
|
2872
2876
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2873
2877
|
}
|
|
2874
2878
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2875
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2879
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
2876
2880
|
this.bumpTo(i);
|
|
2877
|
-
var
|
|
2878
|
-
return { value: n, location:
|
|
2881
|
+
var o = this.clonePosition(), s = _(t, o);
|
|
2882
|
+
return { value: n, location: s };
|
|
2879
2883
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2880
|
-
var
|
|
2884
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2881
2885
|
switch (a) {
|
|
2882
2886
|
case "":
|
|
2883
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(
|
|
2887
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, u));
|
|
2884
2888
|
case "number":
|
|
2885
2889
|
case "date":
|
|
2886
2890
|
case "time": {
|
|
@@ -2891,7 +2895,7 @@ var pi = (
|
|
|
2891
2895
|
var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2892
2896
|
if (m.err)
|
|
2893
2897
|
return m;
|
|
2894
|
-
var f =
|
|
2898
|
+
var f = pi(m.val);
|
|
2895
2899
|
if (f.length === 0)
|
|
2896
2900
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2897
2901
|
var p = _(c, this.clonePosition());
|
|
@@ -2902,24 +2906,24 @@ var pi = (
|
|
|
2902
2906
|
return g;
|
|
2903
2907
|
var b = _(i, this.clonePosition());
|
|
2904
2908
|
if (l && Tt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2905
|
-
var d =
|
|
2909
|
+
var d = di(l.style.slice(2));
|
|
2906
2910
|
if (a === "number") {
|
|
2907
2911
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
|
2908
2912
|
return m.err ? m : {
|
|
2909
|
-
val: { type:
|
|
2913
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
|
2910
2914
|
err: null
|
|
2911
2915
|
};
|
|
2912
2916
|
} else {
|
|
2913
2917
|
if (d.length === 0)
|
|
2914
2918
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
2915
|
-
var
|
|
2916
|
-
this.locale && (
|
|
2919
|
+
var C = d;
|
|
2920
|
+
this.locale && (C = ti(d, this.locale));
|
|
2917
2921
|
var f = {
|
|
2918
|
-
type:
|
|
2919
|
-
pattern:
|
|
2922
|
+
type: ue.dateTime,
|
|
2923
|
+
pattern: C,
|
|
2920
2924
|
location: l.styleLocation,
|
|
2921
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2922
|
-
}, E = a === "date" ?
|
|
2925
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(C) : {}
|
|
2926
|
+
}, E = a === "date" ? T.date : T.time;
|
|
2923
2927
|
return {
|
|
2924
2928
|
val: { type: E, value: n, location: b, style: f },
|
|
2925
2929
|
err: null
|
|
@@ -2928,10 +2932,10 @@ var pi = (
|
|
|
2928
2932
|
}
|
|
2929
2933
|
return {
|
|
2930
2934
|
val: {
|
|
2931
|
-
type: a === "number" ?
|
|
2935
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
2932
2936
|
value: n,
|
|
2933
2937
|
location: b,
|
|
2934
|
-
style: (
|
|
2938
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2935
2939
|
},
|
|
2936
2940
|
err: null
|
|
2937
2941
|
};
|
|
@@ -2939,9 +2943,9 @@ var pi = (
|
|
|
2939
2943
|
case "plural":
|
|
2940
2944
|
case "selectordinal":
|
|
2941
2945
|
case "select": {
|
|
2942
|
-
var
|
|
2946
|
+
var w = this.clonePosition();
|
|
2943
2947
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2944
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2948
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w, Le({}, w)));
|
|
2945
2949
|
this.bumpSpace();
|
|
2946
2950
|
var O = this.parseIdentifierIfPossible(), L = 0;
|
|
2947
2951
|
if (a !== "select" && O.value === "offset") {
|
|
@@ -2959,29 +2963,29 @@ var pi = (
|
|
|
2959
2963
|
var g = this.tryParseArgumentClose(i);
|
|
2960
2964
|
if (g.err)
|
|
2961
2965
|
return g;
|
|
2962
|
-
var
|
|
2966
|
+
var H = _(i, this.clonePosition());
|
|
2963
2967
|
return a === "select" ? {
|
|
2964
2968
|
val: {
|
|
2965
|
-
type:
|
|
2969
|
+
type: T.select,
|
|
2966
2970
|
value: n,
|
|
2967
2971
|
options: At(v.val),
|
|
2968
|
-
location:
|
|
2972
|
+
location: H
|
|
2969
2973
|
},
|
|
2970
2974
|
err: null
|
|
2971
2975
|
} : {
|
|
2972
2976
|
val: {
|
|
2973
|
-
type:
|
|
2977
|
+
type: T.plural,
|
|
2974
2978
|
value: n,
|
|
2975
2979
|
options: At(v.val),
|
|
2976
2980
|
offset: L,
|
|
2977
2981
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2978
|
-
location:
|
|
2982
|
+
location: H
|
|
2979
2983
|
},
|
|
2980
2984
|
err: null
|
|
2981
2985
|
};
|
|
2982
2986
|
}
|
|
2983
2987
|
default:
|
|
2984
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(
|
|
2988
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, u));
|
|
2985
2989
|
}
|
|
2986
2990
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2987
2991
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3023,21 +3027,21 @@ var pi = (
|
|
|
3023
3027
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3024
3028
|
var n = [];
|
|
3025
3029
|
try {
|
|
3026
|
-
n =
|
|
3030
|
+
n = qn(t);
|
|
3027
3031
|
} catch (i) {
|
|
3028
3032
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3029
3033
|
}
|
|
3030
3034
|
return {
|
|
3031
3035
|
val: {
|
|
3032
|
-
type:
|
|
3036
|
+
type: ue.number,
|
|
3033
3037
|
tokens: n,
|
|
3034
3038
|
location: r,
|
|
3035
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3039
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
|
3036
3040
|
},
|
|
3037
3041
|
err: null
|
|
3038
3042
|
};
|
|
3039
3043
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3040
|
-
for (var
|
|
3044
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3041
3045
|
if (l.length === 0) {
|
|
3042
3046
|
var m = this.clonePosition();
|
|
3043
3047
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3050,7 +3054,7 @@ var pi = (
|
|
|
3050
3054
|
}
|
|
3051
3055
|
if (u.has(l))
|
|
3052
3056
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3053
|
-
l === "other" && (
|
|
3057
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3054
3058
|
var p = this.clonePosition();
|
|
3055
3059
|
if (!this.bumpIf("{"))
|
|
3056
3060
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3066,21 +3070,21 @@ var pi = (
|
|
|
3066
3070
|
value: g.val,
|
|
3067
3071
|
location: _(p, this.clonePosition())
|
|
3068
3072
|
}
|
|
3069
|
-
]), u.add(l), this.bumpSpace(),
|
|
3073
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3070
3074
|
}
|
|
3071
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3075
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3072
3076
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3073
3077
|
var n = 1, i = this.clonePosition();
|
|
3074
3078
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3075
|
-
for (var
|
|
3079
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3076
3080
|
var a = this.char();
|
|
3077
3081
|
if (a >= 48 && a <= 57)
|
|
3078
|
-
|
|
3082
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3079
3083
|
else
|
|
3080
3084
|
break;
|
|
3081
3085
|
}
|
|
3082
3086
|
var u = _(i, this.clonePosition());
|
|
3083
|
-
return
|
|
3087
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3084
3088
|
}, e.prototype.offset = function() {
|
|
3085
3089
|
return this.position.offset;
|
|
3086
3090
|
}, e.prototype.isEOF = function() {
|
|
@@ -3146,50 +3150,50 @@ var pi = (
|
|
|
3146
3150
|
}, e;
|
|
3147
3151
|
}()
|
|
3148
3152
|
);
|
|
3149
|
-
function
|
|
3153
|
+
function nt(e) {
|
|
3150
3154
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3151
3155
|
}
|
|
3152
|
-
function gi(e) {
|
|
3153
|
-
return tt(e) || e === 47;
|
|
3154
|
-
}
|
|
3155
3156
|
function bi(e) {
|
|
3157
|
+
return nt(e) || e === 47;
|
|
3158
|
+
}
|
|
3159
|
+
function yi(e) {
|
|
3156
3160
|
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;
|
|
3157
3161
|
}
|
|
3158
3162
|
function pr(e) {
|
|
3159
3163
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3160
3164
|
}
|
|
3161
|
-
function
|
|
3165
|
+
function vi(e) {
|
|
3162
3166
|
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;
|
|
3163
3167
|
}
|
|
3164
|
-
function
|
|
3168
|
+
function it(e) {
|
|
3165
3169
|
e.forEach(function(t) {
|
|
3166
3170
|
if (delete t.location, or(t) || sr(t))
|
|
3167
3171
|
for (var r in t.options)
|
|
3168
|
-
delete t.options[r].location,
|
|
3172
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3169
3173
|
else
|
|
3170
|
-
rr(t) && lr(t.style) || (nr(t) || ir(t)) &&
|
|
3174
|
+
rr(t) && lr(t.style) || (nr(t) || ir(t)) && Ke(t.style) ? delete t.style.location : ar(t) && it(t.children);
|
|
3171
3175
|
});
|
|
3172
3176
|
}
|
|
3173
|
-
function
|
|
3174
|
-
t === void 0 && (t = {}), t =
|
|
3175
|
-
var r = new
|
|
3177
|
+
function _i(e, t) {
|
|
3178
|
+
t === void 0 && (t = {}), t = Le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3179
|
+
var r = new gi(e, t).parse();
|
|
3176
3180
|
if (r.err) {
|
|
3177
3181
|
var n = SyntaxError(y[r.err.kind]);
|
|
3178
3182
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3179
3183
|
}
|
|
3180
|
-
return t != null && t.captureLocation ||
|
|
3184
|
+
return t != null && t.captureLocation || it(r.val), r.val;
|
|
3181
3185
|
}
|
|
3182
|
-
var
|
|
3186
|
+
var he;
|
|
3183
3187
|
(function(e) {
|
|
3184
3188
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3185
|
-
})(
|
|
3186
|
-
var
|
|
3189
|
+
})(he || (he = {}));
|
|
3190
|
+
var Re = (
|
|
3187
3191
|
/** @class */
|
|
3188
3192
|
function(e) {
|
|
3189
|
-
|
|
3193
|
+
Fe(t, e);
|
|
3190
3194
|
function t(r, n, i) {
|
|
3191
|
-
var
|
|
3192
|
-
return
|
|
3195
|
+
var o = e.call(this, r) || this;
|
|
3196
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3193
3197
|
}
|
|
3194
3198
|
return t.prototype.toString = function() {
|
|
3195
3199
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3198,44 +3202,44 @@ var Oe = (
|
|
|
3198
3202
|
), It = (
|
|
3199
3203
|
/** @class */
|
|
3200
3204
|
function(e) {
|
|
3201
|
-
|
|
3202
|
-
function t(r, n, i,
|
|
3203
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3205
|
+
Fe(t, e);
|
|
3206
|
+
function t(r, n, i, o) {
|
|
3207
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
|
|
3204
3208
|
}
|
|
3205
3209
|
return t;
|
|
3206
|
-
}(
|
|
3207
|
-
),
|
|
3210
|
+
}(Re)
|
|
3211
|
+
), Ei = (
|
|
3208
3212
|
/** @class */
|
|
3209
3213
|
function(e) {
|
|
3210
|
-
|
|
3214
|
+
Fe(t, e);
|
|
3211
3215
|
function t(r, n, i) {
|
|
3212
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3216
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
|
|
3213
3217
|
}
|
|
3214
3218
|
return t;
|
|
3215
|
-
}(
|
|
3216
|
-
),
|
|
3219
|
+
}(Re)
|
|
3220
|
+
), xi = (
|
|
3217
3221
|
/** @class */
|
|
3218
3222
|
function(e) {
|
|
3219
|
-
|
|
3223
|
+
Fe(t, e);
|
|
3220
3224
|
function t(r, n) {
|
|
3221
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3225
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
|
|
3222
3226
|
}
|
|
3223
3227
|
return t;
|
|
3224
|
-
}(
|
|
3228
|
+
}(Re)
|
|
3225
3229
|
), F;
|
|
3226
3230
|
(function(e) {
|
|
3227
3231
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3228
3232
|
})(F || (F = {}));
|
|
3229
|
-
function
|
|
3233
|
+
function wi(e) {
|
|
3230
3234
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3231
3235
|
var n = t[t.length - 1];
|
|
3232
3236
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
|
3233
3237
|
}, []);
|
|
3234
3238
|
}
|
|
3235
|
-
function
|
|
3239
|
+
function Ci(e) {
|
|
3236
3240
|
return typeof e == "function";
|
|
3237
3241
|
}
|
|
3238
|
-
function
|
|
3242
|
+
function Ie(e, t, r, n, i, o, s) {
|
|
3239
3243
|
if (e.length === 1 && wt(e[0]))
|
|
3240
3244
|
return [
|
|
3241
3245
|
{
|
|
@@ -3252,18 +3256,18 @@ function Be(e, t, r, n, i, s, o) {
|
|
|
3252
3256
|
});
|
|
3253
3257
|
continue;
|
|
3254
3258
|
}
|
|
3255
|
-
if (
|
|
3256
|
-
typeof
|
|
3259
|
+
if (Wn(c)) {
|
|
3260
|
+
typeof o == "number" && a.push({
|
|
3257
3261
|
type: F.literal,
|
|
3258
|
-
value: r.getNumberFormat(t).format(
|
|
3262
|
+
value: r.getNumberFormat(t).format(o)
|
|
3259
3263
|
});
|
|
3260
3264
|
continue;
|
|
3261
3265
|
}
|
|
3262
3266
|
var m = c.value;
|
|
3263
3267
|
if (!(i && m in i))
|
|
3264
|
-
throw new
|
|
3268
|
+
throw new xi(m, s);
|
|
3265
3269
|
var f = i[m];
|
|
3266
|
-
if (
|
|
3270
|
+
if (Xn(c)) {
|
|
3267
3271
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3268
3272
|
type: typeof f == "string" ? F.literal : F.object,
|
|
3269
3273
|
value: f
|
|
@@ -3271,7 +3275,7 @@ function Be(e, t, r, n, i, s, o) {
|
|
|
3271
3275
|
continue;
|
|
3272
3276
|
}
|
|
3273
3277
|
if (nr(c)) {
|
|
3274
|
-
var p = typeof c.style == "string" ? n.date[c.style] :
|
|
3278
|
+
var p = typeof c.style == "string" ? n.date[c.style] : Ke(c.style) ? c.style.parsedOptions : void 0;
|
|
3275
3279
|
a.push({
|
|
3276
3280
|
type: F.literal,
|
|
3277
3281
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
@@ -3279,7 +3283,7 @@ function Be(e, t, r, n, i, s, o) {
|
|
|
3279
3283
|
continue;
|
|
3280
3284
|
}
|
|
3281
3285
|
if (ir(c)) {
|
|
3282
|
-
var p = typeof c.style == "string" ? n.time[c.style] :
|
|
3286
|
+
var p = typeof c.style == "string" ? n.time[c.style] : Ke(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3283
3287
|
a.push({
|
|
3284
3288
|
type: F.literal,
|
|
3285
3289
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
@@ -3296,9 +3300,9 @@ function Be(e, t, r, n, i, s, o) {
|
|
|
3296
3300
|
}
|
|
3297
3301
|
if (ar(c)) {
|
|
3298
3302
|
var g = c.children, b = c.value, d = i[b];
|
|
3299
|
-
if (!
|
|
3300
|
-
throw new
|
|
3301
|
-
var
|
|
3303
|
+
if (!Ci(d))
|
|
3304
|
+
throw new Ei(b, "function", s);
|
|
3305
|
+
var C = Ie(g, t, r, n, i, o), E = d(C.map(function(L) {
|
|
3302
3306
|
return L.value;
|
|
3303
3307
|
}));
|
|
3304
3308
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(L) {
|
|
@@ -3309,41 +3313,41 @@ function Be(e, t, r, n, i, s, o) {
|
|
|
3309
3313
|
}));
|
|
3310
3314
|
}
|
|
3311
3315
|
if (or(c)) {
|
|
3312
|
-
var
|
|
3313
|
-
if (!
|
|
3314
|
-
throw new It(c.value, f, Object.keys(c.options),
|
|
3315
|
-
a.push.apply(a,
|
|
3316
|
+
var w = c.options[f] || c.options.other;
|
|
3317
|
+
if (!w)
|
|
3318
|
+
throw new It(c.value, f, Object.keys(c.options), s);
|
|
3319
|
+
a.push.apply(a, Ie(w.value, t, r, n, i));
|
|
3316
3320
|
continue;
|
|
3317
3321
|
}
|
|
3318
3322
|
if (sr(c)) {
|
|
3319
|
-
var
|
|
3320
|
-
if (!
|
|
3323
|
+
var w = c.options["=".concat(f)];
|
|
3324
|
+
if (!w) {
|
|
3321
3325
|
if (!Intl.PluralRules)
|
|
3322
|
-
throw new
|
|
3326
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3323
3327
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3324
|
-
`,
|
|
3328
|
+
`, he.MISSING_INTL_API, s);
|
|
3325
3329
|
var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
|
|
3326
|
-
|
|
3330
|
+
w = c.options[O] || c.options.other;
|
|
3327
3331
|
}
|
|
3328
|
-
if (!
|
|
3329
|
-
throw new It(c.value, f, Object.keys(c.options),
|
|
3330
|
-
a.push.apply(a,
|
|
3332
|
+
if (!w)
|
|
3333
|
+
throw new It(c.value, f, Object.keys(c.options), s);
|
|
3334
|
+
a.push.apply(a, Ie(w.value, t, r, n, i, f - (c.offset || 0)));
|
|
3331
3335
|
continue;
|
|
3332
3336
|
}
|
|
3333
3337
|
}
|
|
3334
|
-
return
|
|
3338
|
+
return wi(a);
|
|
3335
3339
|
}
|
|
3336
|
-
function
|
|
3337
|
-
return t ?
|
|
3338
|
-
return r[n] =
|
|
3340
|
+
function Hi(e, t) {
|
|
3341
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3342
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3339
3343
|
}, {})) : e;
|
|
3340
3344
|
}
|
|
3341
|
-
function
|
|
3345
|
+
function Si(e, t) {
|
|
3342
3346
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3343
|
-
return r[n] =
|
|
3344
|
-
},
|
|
3347
|
+
return r[n] = Hi(e[n], t[n]), r;
|
|
3348
|
+
}, j({}, e)) : e;
|
|
3345
3349
|
}
|
|
3346
|
-
function
|
|
3350
|
+
function Ze(e) {
|
|
3347
3351
|
return {
|
|
3348
3352
|
create: function() {
|
|
3349
3353
|
return {
|
|
@@ -3357,50 +3361,50 @@ function We(e) {
|
|
|
3357
3361
|
}
|
|
3358
3362
|
};
|
|
3359
3363
|
}
|
|
3360
|
-
function
|
|
3364
|
+
function Ti(e) {
|
|
3361
3365
|
return e === void 0 && (e = {
|
|
3362
3366
|
number: {},
|
|
3363
3367
|
dateTime: {},
|
|
3364
3368
|
pluralRules: {}
|
|
3365
3369
|
}), {
|
|
3366
|
-
getNumberFormat:
|
|
3370
|
+
getNumberFormat: Xe(function() {
|
|
3367
3371
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3368
3372
|
r[n] = arguments[n];
|
|
3369
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3373
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3370
3374
|
}, {
|
|
3371
|
-
cache:
|
|
3372
|
-
strategy:
|
|
3375
|
+
cache: Ze(e.number),
|
|
3376
|
+
strategy: We.variadic
|
|
3373
3377
|
}),
|
|
3374
|
-
getDateTimeFormat:
|
|
3378
|
+
getDateTimeFormat: Xe(function() {
|
|
3375
3379
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3376
3380
|
r[n] = arguments[n];
|
|
3377
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3381
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3378
3382
|
}, {
|
|
3379
|
-
cache:
|
|
3380
|
-
strategy:
|
|
3383
|
+
cache: Ze(e.dateTime),
|
|
3384
|
+
strategy: We.variadic
|
|
3381
3385
|
}),
|
|
3382
|
-
getPluralRules:
|
|
3386
|
+
getPluralRules: Xe(function() {
|
|
3383
3387
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3384
3388
|
r[n] = arguments[n];
|
|
3385
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3389
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
|
|
3386
3390
|
}, {
|
|
3387
|
-
cache:
|
|
3388
|
-
strategy:
|
|
3391
|
+
cache: Ze(e.pluralRules),
|
|
3392
|
+
strategy: We.variadic
|
|
3389
3393
|
})
|
|
3390
3394
|
};
|
|
3391
3395
|
}
|
|
3392
|
-
var
|
|
3396
|
+
var Ai = (
|
|
3393
3397
|
/** @class */
|
|
3394
3398
|
function() {
|
|
3395
3399
|
function e(t, r, n, i) {
|
|
3396
3400
|
r === void 0 && (r = e.defaultLocale);
|
|
3397
|
-
var
|
|
3401
|
+
var o = this;
|
|
3398
3402
|
if (this.formatterCache = {
|
|
3399
3403
|
number: {},
|
|
3400
3404
|
dateTime: {},
|
|
3401
3405
|
pluralRules: {}
|
|
3402
3406
|
}, this.format = function(u) {
|
|
3403
|
-
var l =
|
|
3407
|
+
var l = o.formatToParts(u);
|
|
3404
3408
|
if (l.length === 1)
|
|
3405
3409
|
return l[0].value;
|
|
3406
3410
|
var c = l.reduce(function(m, f) {
|
|
@@ -3408,26 +3412,26 @@ var Ti = (
|
|
|
3408
3412
|
}, []);
|
|
3409
3413
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3410
3414
|
}, this.formatToParts = function(u) {
|
|
3411
|
-
return
|
|
3415
|
+
return Ie(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3412
3416
|
}, this.resolvedOptions = function() {
|
|
3413
3417
|
var u;
|
|
3414
3418
|
return {
|
|
3415
|
-
locale: ((u =
|
|
3419
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3416
3420
|
};
|
|
3417
3421
|
}, this.getAst = function() {
|
|
3418
|
-
return
|
|
3422
|
+
return o.ast;
|
|
3419
3423
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3420
3424
|
if (this.message = t, !e.__parse)
|
|
3421
3425
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3422
|
-
var
|
|
3423
|
-
|
|
3424
|
-
var a = Rn(
|
|
3425
|
-
this.ast = e.__parse(t,
|
|
3426
|
+
var s = i || {};
|
|
3427
|
+
s.formatters;
|
|
3428
|
+
var a = Rn(s, ["formatters"]);
|
|
3429
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
|
3426
3430
|
} else
|
|
3427
3431
|
this.ast = t;
|
|
3428
3432
|
if (!Array.isArray(this.ast))
|
|
3429
3433
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3430
|
-
this.formats =
|
|
3434
|
+
this.formats = Si(e.formats, n), this.formatters = i && i.formatters || Ti(this.formatterCache);
|
|
3431
3435
|
}
|
|
3432
3436
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3433
3437
|
get: function() {
|
|
@@ -3440,7 +3444,7 @@ var Ti = (
|
|
|
3440
3444
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3441
3445
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3442
3446
|
}
|
|
3443
|
-
}, e.__parse =
|
|
3447
|
+
}, e.__parse = _i, e.formats = {
|
|
3444
3448
|
number: {
|
|
3445
3449
|
integer: {
|
|
3446
3450
|
maximumFractionDigits: 0
|
|
@@ -3501,7 +3505,7 @@ var Ti = (
|
|
|
3501
3505
|
}, e;
|
|
3502
3506
|
}()
|
|
3503
3507
|
);
|
|
3504
|
-
function
|
|
3508
|
+
function Bi(e, t) {
|
|
3505
3509
|
if (t == null)
|
|
3506
3510
|
return;
|
|
3507
3511
|
if (t in e)
|
|
@@ -3511,9 +3515,9 @@ function Ai(e, t) {
|
|
|
3511
3515
|
for (let i = 0; i < r.length; i++)
|
|
3512
3516
|
if (typeof n == "object") {
|
|
3513
3517
|
if (i > 0) {
|
|
3514
|
-
const
|
|
3515
|
-
if (
|
|
3516
|
-
n = n[
|
|
3518
|
+
const o = r.slice(i, r.length).join(".");
|
|
3519
|
+
if (o in n) {
|
|
3520
|
+
n = n[o];
|
|
3517
3521
|
break;
|
|
3518
3522
|
}
|
|
3519
3523
|
}
|
|
@@ -3522,36 +3526,36 @@ function Ai(e, t) {
|
|
|
3522
3526
|
n = void 0;
|
|
3523
3527
|
return n;
|
|
3524
3528
|
}
|
|
3525
|
-
const
|
|
3529
|
+
const z = {}, Ii = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), gr = (e, t) => {
|
|
3526
3530
|
if (t == null)
|
|
3527
3531
|
return;
|
|
3528
|
-
if (t in
|
|
3529
|
-
return
|
|
3530
|
-
const r =
|
|
3532
|
+
if (t in z && e in z[t])
|
|
3533
|
+
return z[t][e];
|
|
3534
|
+
const r = De(t);
|
|
3531
3535
|
for (let n = 0; n < r.length; n++) {
|
|
3532
|
-
const i = r[n],
|
|
3533
|
-
if (
|
|
3534
|
-
return
|
|
3536
|
+
const i = r[n], o = Li(i, e);
|
|
3537
|
+
if (o)
|
|
3538
|
+
return Ii(e, t, o);
|
|
3535
3539
|
}
|
|
3536
3540
|
};
|
|
3537
3541
|
let ut;
|
|
3538
|
-
const
|
|
3539
|
-
function
|
|
3542
|
+
const me = Oe({});
|
|
3543
|
+
function Mi(e) {
|
|
3540
3544
|
return ut[e] || null;
|
|
3541
3545
|
}
|
|
3542
3546
|
function br(e) {
|
|
3543
3547
|
return e in ut;
|
|
3544
3548
|
}
|
|
3545
|
-
function
|
|
3549
|
+
function Li(e, t) {
|
|
3546
3550
|
if (!br(e))
|
|
3547
3551
|
return null;
|
|
3548
|
-
const r =
|
|
3549
|
-
return
|
|
3552
|
+
const r = Mi(e);
|
|
3553
|
+
return Bi(r, t);
|
|
3550
3554
|
}
|
|
3551
|
-
function
|
|
3555
|
+
function Ni(e) {
|
|
3552
3556
|
if (e == null)
|
|
3553
3557
|
return;
|
|
3554
|
-
const t =
|
|
3558
|
+
const t = De(e);
|
|
3555
3559
|
for (let r = 0; r < t.length; r++) {
|
|
3556
3560
|
const n = t[r];
|
|
3557
3561
|
if (br(n))
|
|
@@ -3559,55 +3563,55 @@ function Li(e) {
|
|
|
3559
3563
|
}
|
|
3560
3564
|
}
|
|
3561
3565
|
function yr(e, ...t) {
|
|
3562
|
-
delete
|
|
3566
|
+
delete z[e], me.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
|
|
3563
3567
|
}
|
|
3564
|
-
|
|
3565
|
-
[
|
|
3568
|
+
fe(
|
|
3569
|
+
[me],
|
|
3566
3570
|
([e]) => Object.keys(e)
|
|
3567
3571
|
);
|
|
3568
|
-
|
|
3569
|
-
const
|
|
3570
|
-
function
|
|
3571
|
-
|
|
3572
|
+
me.subscribe((e) => ut = e);
|
|
3573
|
+
const Me = {};
|
|
3574
|
+
function Pi(e, t) {
|
|
3575
|
+
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
|
3572
3576
|
}
|
|
3573
3577
|
function vr(e) {
|
|
3574
|
-
return
|
|
3578
|
+
return Me[e];
|
|
3575
3579
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3580
|
+
function Oi(e) {
|
|
3581
|
+
return De(e).map((t) => {
|
|
3578
3582
|
const r = vr(t);
|
|
3579
3583
|
return [t, r ? [...r] : []];
|
|
3580
3584
|
}).filter(([, t]) => t.length > 0);
|
|
3581
3585
|
}
|
|
3582
|
-
function
|
|
3583
|
-
return e == null ? !1 :
|
|
3586
|
+
function ot(e) {
|
|
3587
|
+
return e == null ? !1 : De(e).some(
|
|
3584
3588
|
(t) => {
|
|
3585
3589
|
var r;
|
|
3586
3590
|
return (r = vr(t)) == null ? void 0 : r.size;
|
|
3587
3591
|
}
|
|
3588
3592
|
);
|
|
3589
3593
|
}
|
|
3590
|
-
function
|
|
3594
|
+
function Fi(e, t) {
|
|
3591
3595
|
return Promise.all(
|
|
3592
|
-
t.map((n) => (
|
|
3596
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
|
3593
3597
|
).then((n) => yr(e, ...n));
|
|
3594
3598
|
}
|
|
3595
|
-
const
|
|
3599
|
+
const be = {};
|
|
3596
3600
|
function _r(e) {
|
|
3597
|
-
if (!
|
|
3598
|
-
return e in
|
|
3599
|
-
const t =
|
|
3600
|
-
return
|
|
3601
|
+
if (!ot(e))
|
|
3602
|
+
return e in be ? be[e] : Promise.resolve();
|
|
3603
|
+
const t = Oi(e);
|
|
3604
|
+
return be[e] = Promise.all(
|
|
3601
3605
|
t.map(
|
|
3602
|
-
([r, n]) =>
|
|
3606
|
+
([r, n]) => Fi(r, n)
|
|
3603
3607
|
)
|
|
3604
3608
|
).then(() => {
|
|
3605
|
-
if (
|
|
3609
|
+
if (ot(e))
|
|
3606
3610
|
return _r(e);
|
|
3607
|
-
delete
|
|
3608
|
-
}),
|
|
3611
|
+
delete be[e];
|
|
3612
|
+
}), be[e];
|
|
3609
3613
|
}
|
|
3610
|
-
const
|
|
3614
|
+
const Ri = {
|
|
3611
3615
|
number: {
|
|
3612
3616
|
scientific: { notation: "scientific" },
|
|
3613
3617
|
engineering: { notation: "engineering" },
|
|
@@ -3636,150 +3640,150 @@ const Fi = {
|
|
|
3636
3640
|
timeZoneName: "short"
|
|
3637
3641
|
}
|
|
3638
3642
|
}
|
|
3639
|
-
},
|
|
3643
|
+
}, Di = {
|
|
3640
3644
|
fallbackLocale: null,
|
|
3641
3645
|
loadingDelay: 200,
|
|
3642
|
-
formats:
|
|
3646
|
+
formats: Ri,
|
|
3643
3647
|
warnOnMissingMessages: !0,
|
|
3644
3648
|
handleMissingMessage: void 0,
|
|
3645
3649
|
ignoreTag: !0
|
|
3646
|
-
},
|
|
3647
|
-
function
|
|
3648
|
-
return
|
|
3650
|
+
}, Ui = Di;
|
|
3651
|
+
function ce() {
|
|
3652
|
+
return Ui;
|
|
3649
3653
|
}
|
|
3650
|
-
const
|
|
3651
|
-
var
|
|
3654
|
+
const Qe = Oe(!1);
|
|
3655
|
+
var Gi = Object.defineProperty, ki = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xi = (e, t) => {
|
|
3652
3656
|
for (var r in t || (t = {}))
|
|
3653
|
-
|
|
3657
|
+
ji.call(t, r) && Lt(e, r, t[r]);
|
|
3654
3658
|
if (Mt)
|
|
3655
3659
|
for (var r of Mt(t))
|
|
3656
|
-
|
|
3660
|
+
Vi.call(t, r) && Lt(e, r, t[r]);
|
|
3657
3661
|
return e;
|
|
3658
|
-
},
|
|
3659
|
-
let
|
|
3660
|
-
const
|
|
3662
|
+
}, Wi = (e, t) => ki(e, $i(t));
|
|
3663
|
+
let st;
|
|
3664
|
+
const Ne = Oe(null);
|
|
3661
3665
|
function Nt(e) {
|
|
3662
3666
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3663
3667
|
}
|
|
3664
|
-
function
|
|
3668
|
+
function De(e, t = ce().fallbackLocale) {
|
|
3665
3669
|
const r = Nt(e);
|
|
3666
3670
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
|
3667
3671
|
}
|
|
3668
|
-
function
|
|
3669
|
-
return
|
|
3672
|
+
function ee() {
|
|
3673
|
+
return st != null ? st : void 0;
|
|
3670
3674
|
}
|
|
3671
|
-
|
|
3672
|
-
|
|
3675
|
+
Ne.subscribe((e) => {
|
|
3676
|
+
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3673
3677
|
});
|
|
3674
|
-
const
|
|
3675
|
-
if (e &&
|
|
3676
|
-
const { loadingDelay: t } =
|
|
3678
|
+
const zi = (e) => {
|
|
3679
|
+
if (e && Ni(e) && ot(e)) {
|
|
3680
|
+
const { loadingDelay: t } = ce();
|
|
3677
3681
|
let r;
|
|
3678
|
-
return typeof window != "undefined" &&
|
|
3679
|
-
() =>
|
|
3682
|
+
return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
|
|
3683
|
+
() => Qe.set(!0),
|
|
3680
3684
|
t
|
|
3681
|
-
) :
|
|
3682
|
-
|
|
3685
|
+
) : Qe.set(!0), _r(e).then(() => {
|
|
3686
|
+
Ne.set(e);
|
|
3683
3687
|
}).finally(() => {
|
|
3684
|
-
clearTimeout(r),
|
|
3688
|
+
clearTimeout(r), Qe.set(!1);
|
|
3685
3689
|
});
|
|
3686
3690
|
}
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3689
|
-
set:
|
|
3690
|
-
}),
|
|
3691
|
+
return Ne.set(e);
|
|
3692
|
+
}, Z = Wi(Xi({}, Ne), {
|
|
3693
|
+
set: zi
|
|
3694
|
+
}), Ue = (e) => {
|
|
3691
3695
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3692
3696
|
return (n) => {
|
|
3693
3697
|
const i = JSON.stringify(n);
|
|
3694
3698
|
return i in t ? t[i] : t[i] = e(n);
|
|
3695
3699
|
};
|
|
3696
3700
|
};
|
|
3697
|
-
var
|
|
3701
|
+
var Zi = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Er = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
3698
3702
|
for (var r in t || (t = {}))
|
|
3699
3703
|
Er.call(t, r) && Pt(e, r, t[r]);
|
|
3700
|
-
if (
|
|
3701
|
-
for (var r of
|
|
3704
|
+
if (Pe)
|
|
3705
|
+
for (var r of Pe(t))
|
|
3702
3706
|
xr.call(t, r) && Pt(e, r, t[r]);
|
|
3703
3707
|
return e;
|
|
3704
|
-
},
|
|
3708
|
+
}, de = (e, t) => {
|
|
3705
3709
|
var r = {};
|
|
3706
3710
|
for (var n in e)
|
|
3707
3711
|
Er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3708
|
-
if (e != null &&
|
|
3709
|
-
for (var n of
|
|
3712
|
+
if (e != null && Pe)
|
|
3713
|
+
for (var n of Pe(e))
|
|
3710
3714
|
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
|
3711
3715
|
return r;
|
|
3712
3716
|
};
|
|
3713
|
-
const
|
|
3714
|
-
const { formats: r } =
|
|
3717
|
+
const we = (e, t) => {
|
|
3718
|
+
const { formats: r } = ce();
|
|
3715
3719
|
if (e in r && t in r[e])
|
|
3716
3720
|
return r[e][t];
|
|
3717
3721
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3718
|
-
},
|
|
3722
|
+
}, Qi = Ue(
|
|
3719
3723
|
(e) => {
|
|
3720
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3724
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
|
3721
3725
|
if (r == null)
|
|
3722
3726
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3723
|
-
return n && (i =
|
|
3727
|
+
return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
|
|
3724
3728
|
}
|
|
3725
|
-
),
|
|
3729
|
+
), qi = Ue(
|
|
3726
3730
|
(e) => {
|
|
3727
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3731
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
|
3728
3732
|
if (r == null)
|
|
3729
3733
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3730
|
-
return n ? i =
|
|
3734
|
+
return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3731
3735
|
}
|
|
3732
|
-
),
|
|
3736
|
+
), Ji = Ue(
|
|
3733
3737
|
(e) => {
|
|
3734
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3738
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
|
3735
3739
|
if (r == null)
|
|
3736
3740
|
throw new Error(
|
|
3737
3741
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3738
3742
|
);
|
|
3739
|
-
return n ? i =
|
|
3743
|
+
return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3740
3744
|
}
|
|
3741
|
-
),
|
|
3742
|
-
var t = e, {
|
|
3743
|
-
locale: r = K()
|
|
3744
|
-
} = t, n = me(t, [
|
|
3745
|
-
"locale"
|
|
3746
|
-
]);
|
|
3747
|
-
return Zi(ht({ locale: r }, n));
|
|
3748
|
-
}, Yi = (e = {}) => {
|
|
3745
|
+
), Yi = (e = {}) => {
|
|
3749
3746
|
var t = e, {
|
|
3750
|
-
locale: r =
|
|
3751
|
-
} = t, n =
|
|
3747
|
+
locale: r = ee()
|
|
3748
|
+
} = t, n = de(t, [
|
|
3752
3749
|
"locale"
|
|
3753
3750
|
]);
|
|
3754
3751
|
return Qi(ht({ locale: r }, n));
|
|
3755
3752
|
}, Ki = (e = {}) => {
|
|
3756
3753
|
var t = e, {
|
|
3757
|
-
locale: r =
|
|
3758
|
-
} = t, n =
|
|
3754
|
+
locale: r = ee()
|
|
3755
|
+
} = t, n = de(t, [
|
|
3759
3756
|
"locale"
|
|
3760
3757
|
]);
|
|
3761
3758
|
return qi(ht({ locale: r }, n));
|
|
3762
|
-
}, eo =
|
|
3759
|
+
}, eo = (e = {}) => {
|
|
3760
|
+
var t = e, {
|
|
3761
|
+
locale: r = ee()
|
|
3762
|
+
} = t, n = de(t, [
|
|
3763
|
+
"locale"
|
|
3764
|
+
]);
|
|
3765
|
+
return Ji(ht({ locale: r }, n));
|
|
3766
|
+
}, to = Ue(
|
|
3763
3767
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3764
|
-
(e, t =
|
|
3765
|
-
ignoreTag:
|
|
3768
|
+
(e, t = ee()) => new Ai(e, t, ce().formats, {
|
|
3769
|
+
ignoreTag: ce().ignoreTag
|
|
3766
3770
|
})
|
|
3767
|
-
),
|
|
3768
|
-
var r, n, i,
|
|
3769
|
-
let
|
|
3770
|
-
typeof e == "object" && (
|
|
3771
|
+
), ro = (e, t = {}) => {
|
|
3772
|
+
var r, n, i, o;
|
|
3773
|
+
let s = t;
|
|
3774
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3771
3775
|
const {
|
|
3772
3776
|
values: a,
|
|
3773
|
-
locale: u =
|
|
3777
|
+
locale: u = ee(),
|
|
3774
3778
|
default: l
|
|
3775
|
-
} =
|
|
3779
|
+
} = s;
|
|
3776
3780
|
if (u == null)
|
|
3777
3781
|
throw new Error(
|
|
3778
3782
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3779
3783
|
);
|
|
3780
3784
|
let c = gr(e, u);
|
|
3781
3785
|
if (!c)
|
|
3782
|
-
c = (
|
|
3786
|
+
c = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3783
3787
|
else if (typeof c != "string")
|
|
3784
3788
|
return console.warn(
|
|
3785
3789
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3788,7 +3792,7 @@ const xe = (e, t) => {
|
|
|
3788
3792
|
return c;
|
|
3789
3793
|
let m = c;
|
|
3790
3794
|
try {
|
|
3791
|
-
m =
|
|
3795
|
+
m = to(c, u).format(a);
|
|
3792
3796
|
} catch (f) {
|
|
3793
3797
|
f instanceof Error && console.warn(
|
|
3794
3798
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3796,22 +3800,22 @@ const xe = (e, t) => {
|
|
|
3796
3800
|
);
|
|
3797
3801
|
}
|
|
3798
3802
|
return m;
|
|
3799
|
-
},
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
function
|
|
3806
|
-
|
|
3807
|
-
r == null && (
|
|
3803
|
+
}, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => Yi(t).format(e), so = (e, t = ee()) => gr(e, t);
|
|
3804
|
+
fe([Z, me], () => ro);
|
|
3805
|
+
fe([Z], () => no);
|
|
3806
|
+
fe([Z], () => io);
|
|
3807
|
+
fe([Z], () => oo);
|
|
3808
|
+
fe([Z, me], () => so);
|
|
3809
|
+
function ao({ withLocale: e, translations: t }) {
|
|
3810
|
+
Z.subscribe((r) => {
|
|
3811
|
+
r == null && (me.set(t), Z.set(e));
|
|
3808
3812
|
});
|
|
3809
3813
|
}
|
|
3810
3814
|
function Ot(e, t) {
|
|
3811
3815
|
yr(e, t);
|
|
3812
3816
|
}
|
|
3813
|
-
function
|
|
3814
|
-
|
|
3817
|
+
function lo(e) {
|
|
3818
|
+
Z.set(e);
|
|
3815
3819
|
}
|
|
3816
3820
|
const Ft = {
|
|
3817
3821
|
en: {
|
|
@@ -3870,7 +3874,7 @@ const Ft = {
|
|
|
3870
3874
|
deposit: "Deposit"
|
|
3871
3875
|
}
|
|
3872
3876
|
};
|
|
3873
|
-
function
|
|
3877
|
+
function uo(e) {
|
|
3874
3878
|
Zr(e, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
|
3875
3879
|
}
|
|
3876
3880
|
function Rt(e, t, r) {
|
|
@@ -3886,87 +3890,87 @@ function Ut(e, t, r) {
|
|
|
3886
3890
|
return n[63] = t[r], n[65] = r, n;
|
|
3887
3891
|
}
|
|
3888
3892
|
function Gt(e) {
|
|
3889
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
3893
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
|
3890
3894
|
/*sliderdata*/
|
|
3891
3895
|
e[9]
|
|
3892
3896
|
);
|
|
3893
|
-
const
|
|
3897
|
+
const o = (s) => (
|
|
3894
3898
|
/*category*/
|
|
3895
|
-
|
|
3899
|
+
s[57].id
|
|
3896
3900
|
);
|
|
3897
|
-
for (let
|
|
3898
|
-
let a = Rt(e, i,
|
|
3899
|
-
r.set(u, t[
|
|
3901
|
+
for (let s = 0; s < i.length; s += 1) {
|
|
3902
|
+
let a = Rt(e, i, s), u = o(a);
|
|
3903
|
+
r.set(u, t[s] = Wt(u, a));
|
|
3900
3904
|
}
|
|
3901
3905
|
return {
|
|
3902
3906
|
c() {
|
|
3903
|
-
for (let
|
|
3904
|
-
t[
|
|
3905
|
-
n =
|
|
3907
|
+
for (let s = 0; s < t.length; s += 1)
|
|
3908
|
+
t[s].c();
|
|
3909
|
+
n = _e();
|
|
3906
3910
|
},
|
|
3907
|
-
m(
|
|
3911
|
+
m(s, a) {
|
|
3908
3912
|
for (let u = 0; u < t.length; u += 1)
|
|
3909
|
-
t[u] && t[u].m(
|
|
3910
|
-
k(
|
|
3913
|
+
t[u] && t[u].m(s, a);
|
|
3914
|
+
k(s, n, a);
|
|
3911
3915
|
},
|
|
3912
|
-
p(
|
|
3916
|
+
p(s, a) {
|
|
3913
3917
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
|
3914
|
-
1183695 && (i =
|
|
3918
|
+
1183695 && (i = ae(
|
|
3915
3919
|
/*sliderdata*/
|
|
3916
|
-
|
|
3917
|
-
), t = Jt(t, a,
|
|
3920
|
+
s[9]
|
|
3921
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Wt, n, Rt));
|
|
3918
3922
|
},
|
|
3919
|
-
d(
|
|
3920
|
-
|
|
3923
|
+
d(s) {
|
|
3924
|
+
s && U(n);
|
|
3921
3925
|
for (let a = 0; a < t.length; a += 1)
|
|
3922
|
-
t[a].d(
|
|
3926
|
+
t[a].d(s);
|
|
3923
3927
|
}
|
|
3924
3928
|
};
|
|
3925
3929
|
}
|
|
3926
|
-
function
|
|
3930
|
+
function ho(e) {
|
|
3927
3931
|
let t, r = (
|
|
3928
3932
|
/*category*/
|
|
3929
3933
|
e[57].name + ""
|
|
3930
3934
|
), n;
|
|
3931
3935
|
return {
|
|
3932
3936
|
c() {
|
|
3933
|
-
t = P("button"), n =
|
|
3937
|
+
t = P("button"), n = Ce(r), S(t, "class", "CategoryButton");
|
|
3934
3938
|
},
|
|
3935
|
-
m(i,
|
|
3936
|
-
k(i, t,
|
|
3939
|
+
m(i, o) {
|
|
3940
|
+
k(i, t, o), M(t, n);
|
|
3937
3941
|
},
|
|
3938
|
-
p(i,
|
|
3939
|
-
|
|
3942
|
+
p(i, o) {
|
|
3943
|
+
o[0] & /*sliderdata*/
|
|
3940
3944
|
512 && r !== (r = /*category*/
|
|
3941
|
-
i[57].name + "") &&
|
|
3945
|
+
i[57].name + "") && lt(n, r);
|
|
3942
3946
|
},
|
|
3943
3947
|
d(i) {
|
|
3944
3948
|
i && U(t);
|
|
3945
3949
|
}
|
|
3946
3950
|
};
|
|
3947
3951
|
}
|
|
3948
|
-
function
|
|
3952
|
+
function co(e) {
|
|
3949
3953
|
let t, r = (
|
|
3950
3954
|
/*category*/
|
|
3951
3955
|
e[57].label + ""
|
|
3952
3956
|
), n, i;
|
|
3953
3957
|
return {
|
|
3954
3958
|
c() {
|
|
3955
|
-
t = P("a"), n =
|
|
3959
|
+
t = P("a"), n = Ce(r), S(t, "href", i = /*category*/
|
|
3956
3960
|
e[57].path);
|
|
3957
3961
|
},
|
|
3958
|
-
m(
|
|
3959
|
-
k(
|
|
3962
|
+
m(o, s) {
|
|
3963
|
+
k(o, t, s), M(t, n);
|
|
3960
3964
|
},
|
|
3961
|
-
p(
|
|
3962
|
-
|
|
3965
|
+
p(o, s) {
|
|
3966
|
+
s[0] & /*sliderdata*/
|
|
3963
3967
|
512 && r !== (r = /*category*/
|
|
3964
|
-
|
|
3968
|
+
o[57].label + "") && lt(n, r), s[0] & /*sliderdata*/
|
|
3965
3969
|
512 && i !== (i = /*category*/
|
|
3966
|
-
|
|
3970
|
+
o[57].path) && S(t, "href", i);
|
|
3967
3971
|
},
|
|
3968
|
-
d(
|
|
3969
|
-
|
|
3972
|
+
d(o) {
|
|
3973
|
+
o && U(t);
|
|
3970
3974
|
}
|
|
3971
3975
|
};
|
|
3972
3976
|
}
|
|
@@ -3978,7 +3982,7 @@ function kt(e) {
|
|
|
3978
3982
|
);
|
|
3979
3983
|
return {
|
|
3980
3984
|
c() {
|
|
3981
|
-
r && r.c(), t =
|
|
3985
|
+
r && r.c(), t = _e();
|
|
3982
3986
|
},
|
|
3983
3987
|
m(n, i) {
|
|
3984
3988
|
r && r.m(n, i), k(n, t, i);
|
|
@@ -3994,7 +3998,7 @@ function kt(e) {
|
|
|
3994
3998
|
};
|
|
3995
3999
|
}
|
|
3996
4000
|
function $t(e) {
|
|
3997
|
-
let t, r =
|
|
4001
|
+
let t, r = ae(
|
|
3998
4002
|
/*subGroupsData*/
|
|
3999
4003
|
e[10]
|
|
4000
4004
|
), n = [];
|
|
@@ -4005,27 +4009,27 @@ function $t(e) {
|
|
|
4005
4009
|
t = P("ul");
|
|
4006
4010
|
for (let i = 0; i < n.length; i += 1)
|
|
4007
4011
|
n[i].c();
|
|
4008
|
-
|
|
4012
|
+
S(t, "class", "DropDown");
|
|
4009
4013
|
},
|
|
4010
|
-
m(i,
|
|
4011
|
-
k(i, t,
|
|
4012
|
-
for (let
|
|
4013
|
-
n[
|
|
4014
|
+
m(i, o) {
|
|
4015
|
+
k(i, t, o);
|
|
4016
|
+
for (let s = 0; s < n.length; s += 1)
|
|
4017
|
+
n[s] && n[s].m(t, null);
|
|
4014
4018
|
},
|
|
4015
|
-
p(i,
|
|
4016
|
-
if (
|
|
4019
|
+
p(i, o) {
|
|
4020
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
|
4017
4021
|
133056) {
|
|
4018
|
-
r =
|
|
4022
|
+
r = ae(
|
|
4019
4023
|
/*subGroupsData*/
|
|
4020
4024
|
i[10]
|
|
4021
4025
|
);
|
|
4022
|
-
let
|
|
4023
|
-
for (
|
|
4024
|
-
const a = Dt(i, r,
|
|
4025
|
-
n[
|
|
4026
|
+
let s;
|
|
4027
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4028
|
+
const a = Dt(i, r, s);
|
|
4029
|
+
n[s] ? n[s].p(a, o) : (n[s] = Xt(a), n[s].c(), n[s].m(t, null));
|
|
4026
4030
|
}
|
|
4027
|
-
for (;
|
|
4028
|
-
n[
|
|
4031
|
+
for (; s < n.length; s += 1)
|
|
4032
|
+
n[s].d(1);
|
|
4029
4033
|
n.length = r.length;
|
|
4030
4034
|
}
|
|
4031
4035
|
},
|
|
@@ -4039,7 +4043,7 @@ function jt(e) {
|
|
|
4039
4043
|
let t, r, n = (
|
|
4040
4044
|
/*subGroupItem*/
|
|
4041
4045
|
((c = e[63]) == null ? void 0 : c.name) + ""
|
|
4042
|
-
), i,
|
|
4046
|
+
), i, o, s, a, u;
|
|
4043
4047
|
function l(...m) {
|
|
4044
4048
|
return (
|
|
4045
4049
|
/*click_handler_2*/
|
|
@@ -4058,7 +4062,7 @@ function jt(e) {
|
|
|
4058
4062
|
}
|
|
4059
4063
|
return {
|
|
4060
4064
|
c() {
|
|
4061
|
-
t = P("li"), r = P("a"), i =
|
|
4065
|
+
t = P("li"), r = P("a"), i = Ce(n), s = Y(), S(r, "class", o = "SubDropDown " + /*index*/
|
|
4062
4066
|
(e[59] == /*activeIndex*/
|
|
4063
4067
|
e[6] && /*activeSubIndex*/
|
|
4064
4068
|
(e[7] == /*subindex*/
|
|
@@ -4067,20 +4071,20 @@ function jt(e) {
|
|
|
4067
4071
|
e[65]) ? "active" : ""));
|
|
4068
4072
|
},
|
|
4069
4073
|
m(m, f) {
|
|
4070
|
-
k(m, t, f), M(t, r), M(r, i), M(t,
|
|
4074
|
+
k(m, t, f), M(t, r), M(r, i), M(t, s), a || (u = X(t, "click", l), a = !0);
|
|
4071
4075
|
},
|
|
4072
4076
|
p(m, f) {
|
|
4073
4077
|
var p;
|
|
4074
4078
|
e = m, f[0] & /*subGroupsData*/
|
|
4075
4079
|
1024 && n !== (n = /*subGroupItem*/
|
|
4076
|
-
((p = e[63]) == null ? void 0 : p.name) + "") &&
|
|
4077
|
-
1984 &&
|
|
4080
|
+
((p = e[63]) == null ? void 0 : p.name) + "") && lt(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
|
4081
|
+
1984 && o !== (o = "SubDropDown " + /*index*/
|
|
4078
4082
|
(e[59] == /*activeIndex*/
|
|
4079
4083
|
e[6] && /*activeSubIndex*/
|
|
4080
4084
|
(e[7] == /*subindex*/
|
|
4081
4085
|
e[65] || /*prevSubIndex*/
|
|
4082
4086
|
e[8] == /*subindex*/
|
|
4083
|
-
e[65]) ? "active" : "")) &&
|
|
4087
|
+
e[65]) ? "active" : "")) && S(r, "class", o);
|
|
4084
4088
|
},
|
|
4085
4089
|
d(m) {
|
|
4086
4090
|
m && U(t), a = !1, u();
|
|
@@ -4097,65 +4101,65 @@ function Vt(e, t) {
|
|
|
4097
4101
|
key: e,
|
|
4098
4102
|
first: null,
|
|
4099
4103
|
c() {
|
|
4100
|
-
r =
|
|
4104
|
+
r = _e(), i && i.c(), n = _e(), this.first = r;
|
|
4101
4105
|
},
|
|
4102
|
-
m(
|
|
4103
|
-
k(
|
|
4106
|
+
m(o, s) {
|
|
4107
|
+
k(o, r, s), i && i.m(o, s), k(o, n, s);
|
|
4104
4108
|
},
|
|
4105
|
-
p(
|
|
4106
|
-
t =
|
|
4109
|
+
p(o, s) {
|
|
4110
|
+
t = o, /*index*/
|
|
4107
4111
|
t[59] == /*subGroup*/
|
|
4108
|
-
t[60].index ? i ? i.p(t,
|
|
4112
|
+
t[60].index ? i ? i.p(t, s) : (i = jt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
|
4109
4113
|
},
|
|
4110
|
-
d(
|
|
4111
|
-
|
|
4114
|
+
d(o) {
|
|
4115
|
+
o && (U(r), U(n)), i && i.d(o);
|
|
4112
4116
|
}
|
|
4113
4117
|
};
|
|
4114
4118
|
}
|
|
4115
4119
|
function Xt(e) {
|
|
4116
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4120
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
|
4117
4121
|
/*subGroup*/
|
|
4118
4122
|
e[60].items
|
|
4119
4123
|
);
|
|
4120
|
-
const
|
|
4124
|
+
const o = (s) => (
|
|
4121
4125
|
/*subGroupItem*/
|
|
4122
|
-
|
|
4126
|
+
s[63].id
|
|
4123
4127
|
);
|
|
4124
|
-
for (let
|
|
4125
|
-
let a = Ut(e, i,
|
|
4126
|
-
r.set(u, t[
|
|
4128
|
+
for (let s = 0; s < i.length; s += 1) {
|
|
4129
|
+
let a = Ut(e, i, s), u = o(a);
|
|
4130
|
+
r.set(u, t[s] = Vt(u, a));
|
|
4127
4131
|
}
|
|
4128
4132
|
return {
|
|
4129
4133
|
c() {
|
|
4130
|
-
for (let
|
|
4131
|
-
t[
|
|
4132
|
-
n =
|
|
4134
|
+
for (let s = 0; s < t.length; s += 1)
|
|
4135
|
+
t[s].c();
|
|
4136
|
+
n = _e();
|
|
4133
4137
|
},
|
|
4134
|
-
m(
|
|
4138
|
+
m(s, a) {
|
|
4135
4139
|
for (let u = 0; u < t.length; u += 1)
|
|
4136
|
-
t[u] && t[u].m(
|
|
4137
|
-
k(
|
|
4140
|
+
t[u] && t[u].m(s, a);
|
|
4141
|
+
k(s, n, a);
|
|
4138
4142
|
},
|
|
4139
|
-
p(
|
|
4143
|
+
p(s, a) {
|
|
4140
4144
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
|
4141
|
-
133056 && (i =
|
|
4145
|
+
133056 && (i = ae(
|
|
4142
4146
|
/*subGroup*/
|
|
4143
|
-
|
|
4144
|
-
), t = Jt(t, a,
|
|
4147
|
+
s[60].items
|
|
4148
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Vt, n, Ut));
|
|
4145
4149
|
},
|
|
4146
|
-
d(
|
|
4147
|
-
|
|
4150
|
+
d(s) {
|
|
4151
|
+
s && U(n);
|
|
4148
4152
|
for (let a = 0; a < t.length; a += 1)
|
|
4149
|
-
t[a].d(
|
|
4153
|
+
t[a].d(s);
|
|
4150
4154
|
}
|
|
4151
4155
|
};
|
|
4152
4156
|
}
|
|
4153
4157
|
function Wt(e, t) {
|
|
4154
|
-
let r, n, i,
|
|
4155
|
-
function p(E,
|
|
4158
|
+
let r, n, i, o, s, a, u, l, c, m, f;
|
|
4159
|
+
function p(E, w) {
|
|
4156
4160
|
return (
|
|
4157
4161
|
/*location*/
|
|
4158
|
-
E[0] === "headerMain" ?
|
|
4162
|
+
E[0] === "headerMain" ? co : ho
|
|
4159
4163
|
);
|
|
4160
4164
|
}
|
|
4161
4165
|
let g = p(t), b = g(t), d = (
|
|
@@ -4165,7 +4169,7 @@ function Wt(e, t) {
|
|
|
4165
4169
|
t[59]
|
|
4166
4170
|
] == !0 && kt(t)
|
|
4167
4171
|
);
|
|
4168
|
-
function
|
|
4172
|
+
function C(...E) {
|
|
4169
4173
|
return (
|
|
4170
4174
|
/*click_handler_3*/
|
|
4171
4175
|
t[39](
|
|
@@ -4181,16 +4185,16 @@ function Wt(e, t) {
|
|
|
4181
4185
|
key: e,
|
|
4182
4186
|
first: null,
|
|
4183
4187
|
c() {
|
|
4184
|
-
var E,
|
|
4185
|
-
r = P("li"), n = P("div"), i = P("img"), a =
|
|
4186
|
-
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src,
|
|
4188
|
+
var E, w;
|
|
4189
|
+
r = P("li"), n = P("div"), i = P("img"), a = Y(), b.c(), u = Y(), d && d.c(), l = Y(), S(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
|
4190
|
+
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src, s = /*handleSrc*/
|
|
4187
4191
|
t[20](
|
|
4188
4192
|
/*category*/
|
|
4189
4193
|
t[57]
|
|
4190
|
-
)) ||
|
|
4194
|
+
)) || S(i, "src", s), S(n, "class", "CategoryIcon"), S(r, "class", c = "CarouselItem " + /*activeindex*/
|
|
4191
4195
|
(((E = t[1]) == null ? void 0 : E.toString().indexOf("$")) > -1 ? (
|
|
4192
4196
|
/*activeindex*/
|
|
4193
|
-
((
|
|
4197
|
+
((w = t[1]) == null ? void 0 : w.split("$").pop()) == /*category*/
|
|
4194
4198
|
t[57].id.split("$").pop() ? "active" : ""
|
|
4195
4199
|
) : (
|
|
4196
4200
|
/*activeindex*/
|
|
@@ -4199,23 +4203,23 @@ function Wt(e, t) {
|
|
|
4199
4203
|
)) + " " + /*location*/
|
|
4200
4204
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
|
4201
4205
|
},
|
|
4202
|
-
m(E,
|
|
4203
|
-
k(E, r,
|
|
4206
|
+
m(E, w) {
|
|
4207
|
+
k(E, r, w), M(r, n), M(n, i), M(r, a), b.m(r, null), M(r, u), d && d.m(r, null), M(r, l), m || (f = X(r, "click", C), m = !0);
|
|
4204
4208
|
},
|
|
4205
|
-
p(E,
|
|
4209
|
+
p(E, w) {
|
|
4206
4210
|
var O, L;
|
|
4207
|
-
t = E,
|
|
4208
|
-
8 &&
|
|
4209
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
|
4210
|
-
512 && !_t(i.src,
|
|
4211
|
+
t = E, w[0] & /*categoriesicon*/
|
|
4212
|
+
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
|
4213
|
+
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", o), w[0] & /*sliderdata*/
|
|
4214
|
+
512 && !_t(i.src, s = /*handleSrc*/
|
|
4211
4215
|
t[20](
|
|
4212
4216
|
/*category*/
|
|
4213
4217
|
t[57]
|
|
4214
|
-
)) &&
|
|
4218
|
+
)) && S(i, "src", s), g === (g = p(t)) && b ? b.p(t, w) : (b.d(1), b = g(t), b && (b.c(), b.m(r, u))), /*itemsActive*/
|
|
4215
4219
|
t[11][
|
|
4216
4220
|
/*index*/
|
|
4217
4221
|
t[59]
|
|
4218
|
-
] == !0 ? d ? d.p(t,
|
|
4222
|
+
] == !0 ? d ? d.p(t, w) : (d = kt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), w[0] & /*activeindex, sliderdata, location*/
|
|
4219
4223
|
515 && c !== (c = "CarouselItem " + /*activeindex*/
|
|
4220
4224
|
(((O = t[1]) == null ? void 0 : O.toString().indexOf("$")) > -1 ? (
|
|
4221
4225
|
/*activeindex*/
|
|
@@ -4226,62 +4230,62 @@ function Wt(e, t) {
|
|
|
4226
4230
|
t[1] == /*category*/
|
|
4227
4231
|
t[57].id ? "active" : ""
|
|
4228
4232
|
)) + " " + /*location*/
|
|
4229
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
|
4233
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", c);
|
|
4230
4234
|
},
|
|
4231
4235
|
d(E) {
|
|
4232
4236
|
E && U(r), b.d(), d && d.d(), m = !1, f();
|
|
4233
4237
|
}
|
|
4234
4238
|
};
|
|
4235
4239
|
}
|
|
4236
|
-
function
|
|
4237
|
-
let t, r, n, i,
|
|
4240
|
+
function fo(e) {
|
|
4241
|
+
let t, r, n, i, o, s, a, u, l, c, m, f, p, g, b, d = (
|
|
4238
4242
|
/*sliderdata*/
|
|
4239
4243
|
e[9].length > 0 && Gt(e)
|
|
4240
4244
|
);
|
|
4241
4245
|
return {
|
|
4242
4246
|
c() {
|
|
4243
|
-
t = P("div"), r = P("div"), n = P("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i =
|
|
4244
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
|
4245
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
|
4247
|
+
t = P("div"), r = P("div"), n = P("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Y(), o = P("div"), s = P("ul"), a = P("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = Y(), d && d.c(), l = Y(), c = P("div"), c.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(s, "id", "CarouselNav"), S(s, "class", "CarouselItems"), S(o, "class", "CarouselNavWrap scroller"), S(c, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
|
4248
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
|
4249
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
|
4246
4250
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
|
4247
4251
|
},
|
|
4248
|
-
m(
|
|
4249
|
-
k(
|
|
4250
|
-
|
|
4252
|
+
m(C, E) {
|
|
4253
|
+
k(C, t, E), M(t, r), M(r, n), M(r, i), M(r, o), M(o, s), M(s, a), M(s, u), d && d.m(s, null), e[40](s), e[41](o), M(r, l), M(r, c), e[43](t), g || (b = [
|
|
4254
|
+
X(
|
|
4251
4255
|
n,
|
|
4252
4256
|
"click",
|
|
4253
4257
|
/*click_handler_1*/
|
|
4254
4258
|
e[37]
|
|
4255
4259
|
),
|
|
4256
|
-
|
|
4257
|
-
|
|
4260
|
+
X(
|
|
4261
|
+
s,
|
|
4258
4262
|
"mousedown",
|
|
4259
4263
|
/*handleMouseDown*/
|
|
4260
4264
|
e[13]
|
|
4261
4265
|
),
|
|
4262
|
-
|
|
4263
|
-
|
|
4266
|
+
X(
|
|
4267
|
+
s,
|
|
4264
4268
|
"mouseleave",
|
|
4265
4269
|
/*handleMouseLeave*/
|
|
4266
4270
|
e[14]
|
|
4267
4271
|
),
|
|
4268
|
-
|
|
4269
|
-
|
|
4272
|
+
X(
|
|
4273
|
+
s,
|
|
4270
4274
|
"mouseup",
|
|
4271
4275
|
/*handleMouseUp*/
|
|
4272
4276
|
e[15]
|
|
4273
4277
|
),
|
|
4274
|
-
|
|
4275
|
-
|
|
4278
|
+
X(
|
|
4279
|
+
s,
|
|
4276
4280
|
"mousemove",
|
|
4277
4281
|
/*handleMouseMove*/
|
|
4278
4282
|
e[16]
|
|
4279
4283
|
),
|
|
4280
|
-
|
|
4284
|
+
X(s, "click", Yr(
|
|
4281
4285
|
/*click_handler*/
|
|
4282
4286
|
e[36]
|
|
4283
4287
|
)),
|
|
4284
|
-
|
|
4288
|
+
X(
|
|
4285
4289
|
c,
|
|
4286
4290
|
"click",
|
|
4287
4291
|
/*click_handler_4*/
|
|
@@ -4289,36 +4293,36 @@ function co(e) {
|
|
|
4289
4293
|
)
|
|
4290
4294
|
], g = !0);
|
|
4291
4295
|
},
|
|
4292
|
-
p(
|
|
4296
|
+
p(C, E) {
|
|
4293
4297
|
/*sliderdata*/
|
|
4294
|
-
|
|
4298
|
+
C[9].length > 0 ? d ? d.p(C, E) : (d = Gt(C), d.c(), d.m(s, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
|
4295
4299
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
|
4296
|
-
|
|
4300
|
+
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
|
4297
4301
|
1 && f !== (f = /*location*/
|
|
4298
|
-
|
|
4302
|
+
C[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
|
4299
4303
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
|
4300
|
-
(
|
|
4304
|
+
(C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
|
4301
4305
|
},
|
|
4302
4306
|
i: $,
|
|
4303
4307
|
o: $,
|
|
4304
|
-
d(
|
|
4305
|
-
|
|
4308
|
+
d(C) {
|
|
4309
|
+
C && U(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, K(b);
|
|
4306
4310
|
}
|
|
4307
4311
|
};
|
|
4308
4312
|
}
|
|
4309
|
-
function
|
|
4310
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
|
4311
|
-
|
|
4312
|
-
let
|
|
4313
|
-
const
|
|
4313
|
+
function mo(e, t, r) {
|
|
4314
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: C = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: O = "" } = t, { mbsource: L = "" } = t, v;
|
|
4315
|
+
ao({ withLocale: "en", translations: {} });
|
|
4316
|
+
let H = !1, R = 0, D = 0;
|
|
4317
|
+
const te = (h) => {
|
|
4314
4318
|
var x, I;
|
|
4315
|
-
h.preventDefault(),
|
|
4319
|
+
h.preventDefault(), H = !0, v == null || v.classList.add("dragging"), R = h.pageX - ((x = v == null ? void 0 : v.offsetLeft) != null ? x : 0), D = (I = v == null ? void 0 : v.scrollLeft) != null ? I : 0;
|
|
4316
4320
|
}, wr = (h) => {
|
|
4317
|
-
h.preventDefault(),
|
|
4321
|
+
h.preventDefault(), H = !1, v == null || v.classList.remove("dragging");
|
|
4318
4322
|
}, Cr = (h) => {
|
|
4319
|
-
|
|
4323
|
+
H = !1, v == null || v.classList.remove("dragging");
|
|
4320
4324
|
}, Hr = (h) => {
|
|
4321
|
-
if (!
|
|
4325
|
+
if (!H || !v)
|
|
4322
4326
|
return;
|
|
4323
4327
|
h.preventDefault();
|
|
4324
4328
|
const I = (h.pageX - v.offsetLeft - R) * 2.5;
|
|
@@ -4335,152 +4339,152 @@ function fo(e, t, r) {
|
|
|
4335
4339
|
Object.keys(Ft).forEach((h) => {
|
|
4336
4340
|
Ot(h, Ft[h]);
|
|
4337
4341
|
});
|
|
4338
|
-
let
|
|
4339
|
-
var
|
|
4340
|
-
if (!(h.subGroups &&
|
|
4341
|
-
if (
|
|
4342
|
+
let Q, pe, Ge, V, ge = [], He = [], re = [], N, ke = (h, x, I, q, W) => {
|
|
4343
|
+
var J;
|
|
4344
|
+
if (!(h.subGroups && q === null)) {
|
|
4345
|
+
if (Se(), r(6, Q = x), r(6, Q), W != "secondary") {
|
|
4342
4346
|
window.postMessage(
|
|
4343
4347
|
{
|
|
4344
|
-
type:
|
|
4348
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
|
4345
4349
|
buzz: "1",
|
|
4346
4350
|
itemId: h.id,
|
|
4347
4351
|
index: x,
|
|
4348
4352
|
item: h,
|
|
4349
4353
|
path: h.path,
|
|
4350
4354
|
externalLink: h.externalLink || !1,
|
|
4351
|
-
target: ((
|
|
4355
|
+
target: ((J = h.attrs) == null ? void 0 : J.target) || null
|
|
4352
4356
|
},
|
|
4353
4357
|
window.location.href
|
|
4354
|
-
), r(7,
|
|
4358
|
+
), r(7, pe = null), r(8, Ge = null);
|
|
4355
4359
|
return;
|
|
4356
4360
|
}
|
|
4357
|
-
r(7,
|
|
4361
|
+
r(7, pe = q), r(7, pe), r(8, Ge = pe), window.postMessage(
|
|
4358
4362
|
{
|
|
4359
|
-
type:
|
|
4363
|
+
type: s,
|
|
4360
4364
|
itemId: I.id,
|
|
4361
|
-
subIndex:
|
|
4365
|
+
subIndex: q,
|
|
4362
4366
|
subItem: I
|
|
4363
4367
|
},
|
|
4364
4368
|
window.location.href
|
|
4365
4369
|
);
|
|
4366
4370
|
}
|
|
4367
4371
|
}, ct = () => {
|
|
4368
|
-
N && (
|
|
4372
|
+
N && (re.length !== Q ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
|
4369
4373
|
}, ft = () => {
|
|
4370
|
-
N && (
|
|
4374
|
+
N && (re.length !== Q ? r(12, N.scrollLeft += 250, N) : r(12, N.scrollLeft = 0, N));
|
|
4371
4375
|
};
|
|
4372
4376
|
const mt = (h) => {
|
|
4373
|
-
h.data.type == "SliderData" && h.data.identity == m && (r(9,
|
|
4374
|
-
x.path.endsWith("/casino") && (r(6,
|
|
4377
|
+
h.data.type == "SliderData" && h.data.identity == m && (r(9, ge = h.data.data), r(11, re = new Array(ge.length).fill(!1)), C == "true" && Br()), h.data.type == "GoToHomepage" && ge.forEach((x, I) => {
|
|
4378
|
+
x.path.endsWith("/casino") && (r(6, Q = I), r(6, Q));
|
|
4375
4379
|
});
|
|
4376
4380
|
}, Tr = () => {
|
|
4377
|
-
|
|
4381
|
+
lo(b);
|
|
4378
4382
|
}, Ar = (h, x, I) => {
|
|
4379
4383
|
if (u == "secondaryMenu" && n && i && b && h.id) {
|
|
4380
|
-
let
|
|
4381
|
-
fetch(
|
|
4382
|
-
|
|
4384
|
+
let q = new URL(`${n}/v1/casino/groups/${i}/${h.id}/subGroups?language=${b}`);
|
|
4385
|
+
fetch(q.href).then((W) => W.json()).then((W) => {
|
|
4386
|
+
W.index = x, r(10, He = He.concat(W)), C == "false" && window.postMessage(
|
|
4383
4387
|
{
|
|
4384
|
-
type:
|
|
4388
|
+
type: s,
|
|
4385
4389
|
itemId: h.id,
|
|
4386
4390
|
index: x,
|
|
4387
4391
|
item: h
|
|
4388
4392
|
},
|
|
4389
4393
|
window.location.href
|
|
4390
4394
|
);
|
|
4391
|
-
const
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
}),
|
|
4395
|
+
const J = [];
|
|
4396
|
+
He.map((Ur) => (Ur.items.forEach((dt) => {
|
|
4397
|
+
J.find((Gr) => dt.id == Gr) || J.push(dt.id);
|
|
4398
|
+
}), J.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: J }, window.location.href);
|
|
4395
4399
|
}).then(() => {
|
|
4396
|
-
v.querySelectorAll(".DropDown") &&
|
|
4400
|
+
v.querySelectorAll(".DropDown") && Se();
|
|
4397
4401
|
});
|
|
4398
4402
|
}
|
|
4399
|
-
u == "headerMain" && window.postMessage({ type:
|
|
4400
|
-
},
|
|
4403
|
+
u == "headerMain" && window.postMessage({ type: s, item: h }, window.location.href);
|
|
4404
|
+
}, Se = () => {
|
|
4401
4405
|
const h = v.querySelectorAll(".DropDown");
|
|
4402
4406
|
document.activeElement.blur(), N.classList.add("isScrolling");
|
|
4403
4407
|
for (let x = 0; x < h.length; x++)
|
|
4404
4408
|
h[x].style.transform = "translateX(-" + N.scrollLeft + "px)";
|
|
4405
4409
|
N.classList.remove("isScrolling");
|
|
4406
4410
|
}, Br = () => {
|
|
4407
|
-
|
|
4411
|
+
ge.forEach((h, x) => {
|
|
4408
4412
|
var I;
|
|
4409
|
-
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11,
|
|
4413
|
+
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11, re[x] = !0, re), Ar(h, x));
|
|
4410
4414
|
});
|
|
4411
4415
|
}, Ir = (h) => {
|
|
4412
4416
|
let x = "";
|
|
4413
|
-
return h.id === "LOBBY" ? x =
|
|
4417
|
+
return h.id === "LOBBY" ? x = w : h.id === "MYGAMES" && (x = O), h.icon || x;
|
|
4414
4418
|
};
|
|
4415
4419
|
rn(() => (window.addEventListener("message", mt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4416
4420
|
() => {
|
|
4417
|
-
N.addEventListener("scroll",
|
|
4421
|
+
N.addEventListener("scroll", Se);
|
|
4418
4422
|
},
|
|
4419
4423
|
500
|
|
4420
4424
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
|
4421
|
-
window.removeEventListener("message", mt), v.removeEventListener("scroll",
|
|
4425
|
+
window.removeEventListener("message", mt), v.removeEventListener("scroll", Se);
|
|
4422
4426
|
}));
|
|
4423
4427
|
function Mr(h) {
|
|
4424
4428
|
nn.call(this, e, h);
|
|
4425
4429
|
}
|
|
4426
|
-
const Lr = () => ct(), Nr = (h, x, I,
|
|
4427
|
-
|
|
4430
|
+
const Lr = () => ct(), Nr = (h, x, I, q, W) => {
|
|
4431
|
+
ke(h, x, I, q, "secondary"), W.stopPropagation();
|
|
4428
4432
|
}, Pr = (h, x, I) => {
|
|
4429
|
-
|
|
4433
|
+
ke(h, x, null, null, "main"), I.preventDefault();
|
|
4430
4434
|
};
|
|
4431
4435
|
function Or(h) {
|
|
4432
|
-
|
|
4436
|
+
ve[h ? "unshift" : "push"](() => {
|
|
4433
4437
|
v = h, r(5, v);
|
|
4434
4438
|
});
|
|
4435
4439
|
}
|
|
4436
4440
|
function Fr(h) {
|
|
4437
|
-
|
|
4441
|
+
ve[h ? "unshift" : "push"](() => {
|
|
4438
4442
|
N = h, r(12, N);
|
|
4439
4443
|
});
|
|
4440
4444
|
}
|
|
4441
4445
|
const Rr = () => ft();
|
|
4442
4446
|
function Dr(h) {
|
|
4443
|
-
|
|
4444
|
-
|
|
4447
|
+
ve[h ? "unshift" : "push"](() => {
|
|
4448
|
+
V = h, r(4, V);
|
|
4445
4449
|
});
|
|
4446
4450
|
}
|
|
4447
4451
|
return e.$$set = (h) => {
|
|
4448
|
-
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23,
|
|
4452
|
+
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23, o = h.onclickeventname), "actionevent" in h && r(24, s = h.actionevent), "favoritesnumber" in h && r(25, a = h.favoritesnumber), "location" in h && r(0, u = h.location), "clientstyling" in h && r(26, l = h.clientstyling), "clientstylingurl" in h && r(27, c = h.clientstylingurl), "identity" in h && r(28, m = h.identity), "translationurl" in h && r(29, f = h.translationurl), "isprimarymenu" in h && r(30, p = h.isprimarymenu), "issecondarymenu" in h && r(31, g = h.issecondarymenu), "lang" in h && r(32, b = h.lang), "activeindex" in h && r(1, d = h.activeindex), "showsubgroups" in h && r(2, C = h.showsubgroups), "categoriesicon" in h && r(3, E = h.categoriesicon), "lobbyiconimage" in h && r(33, w = h.lobbyiconimage), "mygamesiconimage" in h && r(34, O = h.mygamesiconimage), "mbsource" in h && r(35, L = h.mbsource);
|
|
4449
4453
|
}, e.$$.update = () => {
|
|
4450
4454
|
e.$$.dirty[0] & /*activeindex*/
|
|
4451
4455
|
2, e.$$.dirty[0] & /*translationurl*/
|
|
4452
4456
|
536870912 && f && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4453
|
-
67108880 && l &&
|
|
4454
|
-
134217744 && c &&
|
|
4457
|
+
67108880 && l && V && bn(V, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4458
|
+
134217744 && c && V && yn(V, c), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4455
4459
|
16 | e.$$.dirty[1] & /*mbsource*/
|
|
4456
|
-
16 && L &&
|
|
4460
|
+
16 && L && V && vn(V, `${L}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4457
4461
|
2 && b && Tr();
|
|
4458
4462
|
}, [
|
|
4459
4463
|
u,
|
|
4460
4464
|
d,
|
|
4461
|
-
|
|
4465
|
+
C,
|
|
4462
4466
|
E,
|
|
4463
|
-
|
|
4467
|
+
V,
|
|
4464
4468
|
v,
|
|
4465
|
-
|
|
4466
|
-
de,
|
|
4467
|
-
De,
|
|
4469
|
+
Q,
|
|
4468
4470
|
pe,
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
+
Ge,
|
|
4472
|
+
ge,
|
|
4473
|
+
He,
|
|
4474
|
+
re,
|
|
4471
4475
|
N,
|
|
4472
|
-
|
|
4476
|
+
te,
|
|
4473
4477
|
wr,
|
|
4474
4478
|
Cr,
|
|
4475
4479
|
Hr,
|
|
4476
|
-
|
|
4480
|
+
ke,
|
|
4477
4481
|
ct,
|
|
4478
4482
|
ft,
|
|
4479
4483
|
Ir,
|
|
4480
4484
|
n,
|
|
4481
4485
|
i,
|
|
4482
|
-
s,
|
|
4483
4486
|
o,
|
|
4487
|
+
s,
|
|
4484
4488
|
a,
|
|
4485
4489
|
l,
|
|
4486
4490
|
c,
|
|
@@ -4489,7 +4493,7 @@ function fo(e, t, r) {
|
|
|
4489
4493
|
p,
|
|
4490
4494
|
g,
|
|
4491
4495
|
b,
|
|
4492
|
-
|
|
4496
|
+
w,
|
|
4493
4497
|
O,
|
|
4494
4498
|
L,
|
|
4495
4499
|
Mr,
|
|
@@ -4502,13 +4506,13 @@ function fo(e, t, r) {
|
|
|
4502
4506
|
Dr
|
|
4503
4507
|
];
|
|
4504
4508
|
}
|
|
4505
|
-
class
|
|
4509
|
+
class po extends pn {
|
|
4506
4510
|
constructor(t) {
|
|
4507
4511
|
super(), mn(
|
|
4508
4512
|
this,
|
|
4509
4513
|
t,
|
|
4514
|
+
mo,
|
|
4510
4515
|
fo,
|
|
4511
|
-
co,
|
|
4512
4516
|
Zt,
|
|
4513
4517
|
{
|
|
4514
4518
|
endpoint: 21,
|
|
@@ -4531,7 +4535,7 @@ class mo extends pn {
|
|
|
4531
4535
|
mygamesiconimage: 34,
|
|
4532
4536
|
mbsource: 35
|
|
4533
4537
|
},
|
|
4534
|
-
|
|
4538
|
+
uo,
|
|
4535
4539
|
[-1, -1, -1]
|
|
4536
4540
|
);
|
|
4537
4541
|
}
|
|
@@ -4650,7 +4654,7 @@ class mo extends pn {
|
|
|
4650
4654
|
this.$$set({ mbsource: t }), B();
|
|
4651
4655
|
}
|
|
4652
4656
|
}
|
|
4653
|
-
dn(
|
|
4657
|
+
dn(po, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
4654
4658
|
export {
|
|
4655
|
-
|
|
4659
|
+
po as default
|
|
4656
4660
|
};
|