@everymatrix/general-navigation-bar 1.49.2 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralNavigationBar-YvGAjyqo.js → GeneralNavigationBar-BsqCkN6i.js} +485 -479
- package/components/GeneralNavigationBar-CPqoG-1M.cjs +5 -0
- package/es2015/general-navigation-bar.cjs +1 -1
- package/es2015/general-navigation-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralNavigationBar-NZFwh1sh.cjs +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var $e = (e, t, r) => t in e ?
|
|
1
|
+
var on = Object.defineProperty, an = Object.defineProperties;
|
|
2
|
+
var sn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Et = Object.getOwnPropertySymbols;
|
|
4
|
+
var ln = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $e = (e, t, r) => t in e ? on(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Nt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ln.call(t, r) && $e(e, r, t[r]);
|
|
8
|
+
if (Et)
|
|
9
|
+
for (var r of Et(t))
|
|
10
|
+
un.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, St = (e, t) =>
|
|
12
|
+
}, St = (e, t) => an(e, sn(t));
|
|
13
13
|
var R = (e, t, r) => $e(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
14
|
var It = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
@@ -29,7 +29,7 @@ var It = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function D() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function hn(e, t) {
|
|
33
33
|
for (const r in t) e[r] = t[r];
|
|
34
34
|
return (
|
|
35
35
|
/** @type {T & S} */
|
|
@@ -55,7 +55,7 @@ let xe;
|
|
|
55
55
|
function re(e, t) {
|
|
56
56
|
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function cn(e) {
|
|
59
59
|
return Object.keys(e).length === 0;
|
|
60
60
|
}
|
|
61
61
|
function hr(e, ...t) {
|
|
@@ -67,17 +67,17 @@ function hr(e, ...t) {
|
|
|
67
67
|
const r = e.subscribe(...t);
|
|
68
68
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function fn(e, t, r) {
|
|
71
71
|
e.$$.on_destroy.push(hr(t, r));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function dn(e, t, r, n) {
|
|
74
74
|
if (e) {
|
|
75
75
|
const i = cr(e, t, r, n);
|
|
76
76
|
return e[0](i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
function cr(e, t, r, n) {
|
|
80
|
-
return e[1] && n ?
|
|
80
|
+
return e[1] && n ? hn(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
81
81
|
}
|
|
82
82
|
function pn(e, t, r, n) {
|
|
83
83
|
if (e[2] && n) {
|
|
@@ -94,13 +94,13 @@ function pn(e, t, r, n) {
|
|
|
94
94
|
}
|
|
95
95
|
return t.dirty;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function mn(e, t, r, n, i, o) {
|
|
98
98
|
if (i) {
|
|
99
99
|
const a = cr(t, r, n, o);
|
|
100
100
|
e.p(a, i);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function gn(e) {
|
|
104
104
|
if (e.ctx.length > 32) {
|
|
105
105
|
const t = [], r = e.ctx.length / 32;
|
|
106
106
|
for (let n = 0; n < r; n++)
|
|
@@ -112,14 +112,14 @@ function vn(e) {
|
|
|
112
112
|
function y(e, t) {
|
|
113
113
|
e.appendChild(t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const n =
|
|
115
|
+
function vn(e, t, r) {
|
|
116
|
+
const n = bn(e);
|
|
117
117
|
if (!n.getElementById(t)) {
|
|
118
118
|
const i = A("style");
|
|
119
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
i.id = t, i.textContent = r, yn(n, i);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function bn(e) {
|
|
123
123
|
if (!e) return document;
|
|
124
124
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
125
125
|
return t && /** @type {ShadowRoot} */
|
|
@@ -128,7 +128,7 @@ function yn(e) {
|
|
|
128
128
|
t
|
|
129
129
|
) : e.ownerDocument;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function yn(e, t) {
|
|
132
132
|
return y(
|
|
133
133
|
/** @type {Document} */
|
|
134
134
|
e.head || e,
|
|
@@ -148,7 +148,7 @@ function fr(e, t) {
|
|
|
148
148
|
function A(e) {
|
|
149
149
|
return document.createElement(e);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function P(e) {
|
|
152
152
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
153
153
|
}
|
|
154
154
|
function be(e) {
|
|
@@ -157,7 +157,7 @@ function be(e) {
|
|
|
157
157
|
function $() {
|
|
158
158
|
return be(" ");
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function _n() {
|
|
161
161
|
return be("");
|
|
162
162
|
}
|
|
163
163
|
function Me(e, t, r, n) {
|
|
@@ -166,7 +166,7 @@ function Me(e, t, r, n) {
|
|
|
166
166
|
function c(e, t, r) {
|
|
167
167
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function xn(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
172
|
function dt(e, t) {
|
|
@@ -182,43 +182,43 @@ function wn(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
185
|
+
let pe;
|
|
186
186
|
function de(e) {
|
|
187
|
-
|
|
187
|
+
pe = e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (!
|
|
191
|
-
return
|
|
189
|
+
function En() {
|
|
190
|
+
if (!pe) throw new Error("Function called outside component initialization");
|
|
191
|
+
return pe;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function Nn(e) {
|
|
194
|
+
En().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
|
-
const K = [],
|
|
196
|
+
const K = [], Ye = [];
|
|
197
197
|
let ee = [];
|
|
198
|
-
const Bt = [],
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
|
|
198
|
+
const Bt = [], Sn = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let Je = !1;
|
|
200
|
+
function In() {
|
|
201
|
+
Je || (Je = !0, Sn.then(U));
|
|
202
202
|
}
|
|
203
203
|
function qe(e) {
|
|
204
204
|
ee.push(e);
|
|
205
205
|
}
|
|
206
206
|
const ke = /* @__PURE__ */ new Set();
|
|
207
|
-
let
|
|
207
|
+
let J = 0;
|
|
208
208
|
function U() {
|
|
209
|
-
if (
|
|
209
|
+
if (J !== 0)
|
|
210
210
|
return;
|
|
211
|
-
const e =
|
|
211
|
+
const e = pe;
|
|
212
212
|
do {
|
|
213
213
|
try {
|
|
214
|
-
for (;
|
|
215
|
-
const t = K[
|
|
216
|
-
|
|
214
|
+
for (; J < K.length; ) {
|
|
215
|
+
const t = K[J];
|
|
216
|
+
J++, de(t), An(t.$$);
|
|
217
217
|
}
|
|
218
218
|
} catch (t) {
|
|
219
|
-
throw K.length = 0,
|
|
219
|
+
throw K.length = 0, J = 0, t;
|
|
220
220
|
}
|
|
221
|
-
for (de(null), K.length = 0,
|
|
221
|
+
for (de(null), K.length = 0, J = 0; Ye.length; ) Ye.pop()();
|
|
222
222
|
for (let t = 0; t < ee.length; t += 1) {
|
|
223
223
|
const r = ee[t];
|
|
224
224
|
ke.has(r) || (ke.add(r), r());
|
|
@@ -227,16 +227,16 @@ function U() {
|
|
|
227
227
|
} while (K.length);
|
|
228
228
|
for (; Bt.length; )
|
|
229
229
|
Bt.pop()();
|
|
230
|
-
|
|
230
|
+
Je = !1, ke.clear(), de(e);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function An(e) {
|
|
233
233
|
if (e.fragment !== null) {
|
|
234
234
|
e.update(), se(e.before_update);
|
|
235
235
|
const t = e.dirty;
|
|
236
236
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(qe);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Bn(e) {
|
|
240
240
|
const t = [], r = [];
|
|
241
241
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
242
242
|
}
|
|
@@ -250,13 +250,13 @@ function dr() {
|
|
|
250
250
|
// parent group
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function pr() {
|
|
254
254
|
Z.r || se(Z.c), Z = Z.p;
|
|
255
255
|
}
|
|
256
256
|
function z(e, t) {
|
|
257
257
|
e && e.i && (Ne.delete(e), e.i(t));
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function me(e, t, r, n) {
|
|
260
260
|
if (e && e.o) {
|
|
261
261
|
if (Ne.has(e)) return;
|
|
262
262
|
Ne.add(e), Z.c.push(() => {
|
|
@@ -267,7 +267,7 @@ function pe(e, t, r, n) {
|
|
|
267
267
|
function Te(e) {
|
|
268
268
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Tn(e, t, r) {
|
|
271
271
|
const { fragment: n, after_update: i } = e.$$;
|
|
272
272
|
n && n.m(t, r), qe(() => {
|
|
273
273
|
const o = e.$$.on_mount.map(lr).filter(ft);
|
|
@@ -276,13 +276,13 @@ function Pn(e, t, r) {
|
|
|
276
276
|
}
|
|
277
277
|
function Hn(e, t) {
|
|
278
278
|
const r = e.$$;
|
|
279
|
-
r.fragment !== null && (
|
|
279
|
+
r.fragment !== null && (Bn(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
281
|
+
function Pn(e, t) {
|
|
282
|
+
e.$$.dirty[0] === -1 && (K.push(e), In(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
const l =
|
|
284
|
+
function Mn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
285
|
+
const l = pe;
|
|
286
286
|
de(e);
|
|
287
287
|
const u = e.$$ = {
|
|
288
288
|
fragment: null,
|
|
@@ -307,21 +307,21 @@ function On(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
307
307
|
};
|
|
308
308
|
a && a(u.root);
|
|
309
309
|
let h = !1;
|
|
310
|
-
if (u.ctx = r ? r(e, t.props || {}, (d, f, ...
|
|
311
|
-
const g =
|
|
312
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] = g) && (!u.skip_bound && u.bound[d] && u.bound[d](g), h &&
|
|
310
|
+
if (u.ctx = r ? r(e, t.props || {}, (d, f, ...m) => {
|
|
311
|
+
const g = m.length ? m[0] : f;
|
|
312
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = g) && (!u.skip_bound && u.bound[d] && u.bound[d](g), h && Pn(e, d)), f;
|
|
313
313
|
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
314
314
|
if (t.hydrate) {
|
|
315
|
-
const d =
|
|
315
|
+
const d = xn(t.target);
|
|
316
316
|
u.fragment && u.fragment.l(d), d.forEach(O);
|
|
317
317
|
} else
|
|
318
318
|
u.fragment && u.fragment.c();
|
|
319
|
-
t.intro && z(e.$$.fragment),
|
|
319
|
+
t.intro && z(e.$$.fragment), Tn(e, t.target, t.anchor), U();
|
|
320
320
|
}
|
|
321
321
|
de(l);
|
|
322
322
|
}
|
|
323
|
-
let
|
|
324
|
-
typeof HTMLElement == "function" && (
|
|
323
|
+
let mr;
|
|
324
|
+
typeof HTMLElement == "function" && (mr = class extends HTMLElement {
|
|
325
325
|
constructor(t, r, n) {
|
|
326
326
|
super();
|
|
327
327
|
/** The Svelte component constructor */
|
|
@@ -471,8 +471,8 @@ function Se(e, t, r, n) {
|
|
|
471
471
|
return t;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
let a = class extends
|
|
474
|
+
function On(e, t, r, n, i, o) {
|
|
475
|
+
let a = class extends mr {
|
|
476
476
|
constructor() {
|
|
477
477
|
super(e, r, i), this.$$p_d = t;
|
|
478
478
|
}
|
|
@@ -502,7 +502,7 @@ function Ln(e, t, r, n, i, o) {
|
|
|
502
502
|
}), e.element = /** @type {any} */
|
|
503
503
|
a, a;
|
|
504
504
|
}
|
|
505
|
-
class
|
|
505
|
+
class Ln {
|
|
506
506
|
constructor() {
|
|
507
507
|
/**
|
|
508
508
|
* ### PRIVATE API
|
|
@@ -545,11 +545,11 @@ class Cn {
|
|
|
545
545
|
* @returns {void}
|
|
546
546
|
*/
|
|
547
547
|
$set(t) {
|
|
548
|
-
this.$$set && !
|
|
548
|
+
this.$$set && !cn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
const
|
|
552
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
551
|
+
const Cn = "4";
|
|
552
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cn);
|
|
553
553
|
var Ke = function(e, t) {
|
|
554
554
|
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
555
555
|
r.__proto__ = n;
|
|
@@ -566,16 +566,16 @@ function k(e, t) {
|
|
|
566
566
|
}
|
|
567
567
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
return
|
|
569
|
+
var E = function() {
|
|
570
|
+
return E = Object.assign || function(t) {
|
|
571
571
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
572
572
|
r = arguments[n];
|
|
573
573
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
574
574
|
}
|
|
575
575
|
return t;
|
|
576
|
-
},
|
|
576
|
+
}, E.apply(this, arguments);
|
|
577
577
|
};
|
|
578
|
-
function
|
|
578
|
+
function Fn(e, t) {
|
|
579
579
|
var r = {};
|
|
580
580
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
581
581
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -677,8 +677,8 @@ var Oe = function() {
|
|
|
677
677
|
if (d) {
|
|
678
678
|
this._finalizers = null;
|
|
679
679
|
try {
|
|
680
|
-
for (var f = et(d),
|
|
681
|
-
var g =
|
|
680
|
+
for (var f = et(d), m = f.next(); !m.done; m = f.next()) {
|
|
681
|
+
var g = m.value;
|
|
682
682
|
try {
|
|
683
683
|
Tt(g);
|
|
684
684
|
} catch (v) {
|
|
@@ -689,7 +689,7 @@ var Oe = function() {
|
|
|
689
689
|
n = { error: v };
|
|
690
690
|
} finally {
|
|
691
691
|
try {
|
|
692
|
-
|
|
692
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
693
693
|
} finally {
|
|
694
694
|
if (n) throw n.error;
|
|
695
695
|
}
|
|
@@ -740,29 +740,28 @@ var yr = {
|
|
|
740
740
|
Promise: void 0,
|
|
741
741
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
742
742
|
useDeprecatedNextContext: !1
|
|
743
|
-
},
|
|
743
|
+
}, Rn = {
|
|
744
744
|
setTimeout: function(e, t) {
|
|
745
745
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
746
746
|
r[n - 2] = arguments[n];
|
|
747
747
|
return setTimeout.apply(void 0, te([e, t], tt(r)));
|
|
748
748
|
},
|
|
749
749
|
clearTimeout: function(e) {
|
|
750
|
-
|
|
751
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
750
|
+
return clearTimeout(e);
|
|
752
751
|
},
|
|
753
752
|
delegate: void 0
|
|
754
753
|
};
|
|
755
754
|
function Un(e) {
|
|
756
|
-
|
|
755
|
+
Rn.setTimeout(function() {
|
|
757
756
|
throw e;
|
|
758
757
|
});
|
|
759
758
|
}
|
|
760
|
-
function
|
|
759
|
+
function Ht() {
|
|
761
760
|
}
|
|
762
761
|
function Ie(e) {
|
|
763
762
|
e();
|
|
764
763
|
}
|
|
765
|
-
var
|
|
764
|
+
var _r = function(e) {
|
|
766
765
|
k(t, e);
|
|
767
766
|
function t(r) {
|
|
768
767
|
var n = e.call(this) || this;
|
|
@@ -807,7 +806,7 @@ var Gn = function() {
|
|
|
807
806
|
try {
|
|
808
807
|
r.next(t);
|
|
809
808
|
} catch (n) {
|
|
810
|
-
|
|
809
|
+
we(n);
|
|
811
810
|
}
|
|
812
811
|
}, e.prototype.error = function(t) {
|
|
813
812
|
var r = this.partialObserver;
|
|
@@ -815,17 +814,17 @@ var Gn = function() {
|
|
|
815
814
|
try {
|
|
816
815
|
r.error(t);
|
|
817
816
|
} catch (n) {
|
|
818
|
-
|
|
817
|
+
we(n);
|
|
819
818
|
}
|
|
820
819
|
else
|
|
821
|
-
|
|
820
|
+
we(t);
|
|
822
821
|
}, e.prototype.complete = function() {
|
|
823
822
|
var t = this.partialObserver;
|
|
824
823
|
if (t.complete)
|
|
825
824
|
try {
|
|
826
825
|
t.complete();
|
|
827
826
|
} catch (r) {
|
|
828
|
-
|
|
827
|
+
we(r);
|
|
829
828
|
}
|
|
830
829
|
}, e;
|
|
831
830
|
}(), nt = function(e) {
|
|
@@ -851,8 +850,8 @@ var Gn = function() {
|
|
|
851
850
|
return o.destination = new Gn(a), o;
|
|
852
851
|
}
|
|
853
852
|
return t;
|
|
854
|
-
}(
|
|
855
|
-
function
|
|
853
|
+
}(_r);
|
|
854
|
+
function we(e) {
|
|
856
855
|
Un(e);
|
|
857
856
|
}
|
|
858
857
|
function $n(e) {
|
|
@@ -860,9 +859,9 @@ function $n(e) {
|
|
|
860
859
|
}
|
|
861
860
|
var kn = {
|
|
862
861
|
closed: !0,
|
|
863
|
-
next:
|
|
862
|
+
next: Ht,
|
|
864
863
|
error: $n,
|
|
865
|
-
complete:
|
|
864
|
+
complete: Ht
|
|
866
865
|
}, jn = function() {
|
|
867
866
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
868
867
|
}();
|
|
@@ -876,7 +875,7 @@ function Vn(e) {
|
|
|
876
875
|
}, r);
|
|
877
876
|
};
|
|
878
877
|
}
|
|
879
|
-
var
|
|
878
|
+
var Pt = function() {
|
|
880
879
|
function e(t) {
|
|
881
880
|
t && (this._subscribe = t);
|
|
882
881
|
}
|
|
@@ -944,13 +943,13 @@ function Xn(e) {
|
|
|
944
943
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
945
944
|
}
|
|
946
945
|
function zn(e) {
|
|
947
|
-
return e && e instanceof
|
|
946
|
+
return e && e instanceof _r || Xn(e) && br(e);
|
|
948
947
|
}
|
|
949
948
|
var Zn = gr(function(e) {
|
|
950
949
|
return function() {
|
|
951
950
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
952
951
|
};
|
|
953
|
-
}),
|
|
952
|
+
}), xr = function(e) {
|
|
954
953
|
k(t, e);
|
|
955
954
|
function t() {
|
|
956
955
|
var r = e.call(this) || this;
|
|
@@ -1024,12 +1023,12 @@ var Zn = gr(function(e) {
|
|
|
1024
1023
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1025
1024
|
i ? r.error(o) : a && r.complete();
|
|
1026
1025
|
}, t.prototype.asObservable = function() {
|
|
1027
|
-
var r = new
|
|
1026
|
+
var r = new Pt();
|
|
1028
1027
|
return r.source = this, r;
|
|
1029
1028
|
}, t.create = function(r, n) {
|
|
1030
1029
|
return new Ot(r, n);
|
|
1031
1030
|
}, t;
|
|
1032
|
-
}(
|
|
1031
|
+
}(Pt), Ot = function(e) {
|
|
1033
1032
|
k(t, e);
|
|
1034
1033
|
function t(r, n) {
|
|
1035
1034
|
var i = e.call(this) || this;
|
|
@@ -1048,7 +1047,7 @@ var Zn = gr(function(e) {
|
|
|
1048
1047
|
var n, i;
|
|
1049
1048
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : vr;
|
|
1050
1049
|
}, t;
|
|
1051
|
-
}(
|
|
1050
|
+
}(xr), wr = {
|
|
1052
1051
|
now: function() {
|
|
1053
1052
|
return (wr.delegate || Date).now();
|
|
1054
1053
|
},
|
|
@@ -1076,15 +1075,15 @@ var Zn = gr(function(e) {
|
|
|
1076
1075
|
u && o.splice(0, u + 1);
|
|
1077
1076
|
}
|
|
1078
1077
|
}, t;
|
|
1079
|
-
}(
|
|
1080
|
-
const Lt = [], Ct = {},
|
|
1078
|
+
}(xr);
|
|
1079
|
+
const Lt = [], Ct = {}, Yn = (e, t = 0) => {
|
|
1081
1080
|
if (Lt.indexOf(e) == -1) {
|
|
1082
1081
|
const r = new Qn(t);
|
|
1083
1082
|
Ct[e] = r, Lt.push(e);
|
|
1084
1083
|
}
|
|
1085
1084
|
return Ct[e];
|
|
1086
1085
|
}, q = [];
|
|
1087
|
-
function
|
|
1086
|
+
function Jn(e, t) {
|
|
1088
1087
|
return {
|
|
1089
1088
|
subscribe: Le(e, t).subscribe
|
|
1090
1089
|
};
|
|
@@ -1120,7 +1119,7 @@ function le(e, t, r) {
|
|
|
1120
1119
|
if (!i.every(Boolean))
|
|
1121
1120
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1122
1121
|
const o = t.length < 2;
|
|
1123
|
-
return
|
|
1122
|
+
return Jn(r, (a, s) => {
|
|
1124
1123
|
let l = !1;
|
|
1125
1124
|
const u = [];
|
|
1126
1125
|
let h = 0, d = D;
|
|
@@ -1130,11 +1129,11 @@ function le(e, t, r) {
|
|
|
1130
1129
|
d();
|
|
1131
1130
|
const g = t(n ? u[0] : u, a, s);
|
|
1132
1131
|
o ? a(g) : d = ft(g) ? g : D;
|
|
1133
|
-
},
|
|
1132
|
+
}, m = i.map(
|
|
1134
1133
|
(g, v) => hr(
|
|
1135
1134
|
g,
|
|
1136
|
-
(
|
|
1137
|
-
u[v] =
|
|
1135
|
+
(H) => {
|
|
1136
|
+
u[v] = H, h &= ~(1 << v), l && f();
|
|
1138
1137
|
},
|
|
1139
1138
|
() => {
|
|
1140
1139
|
h |= 1 << v;
|
|
@@ -1142,7 +1141,7 @@ function le(e, t, r) {
|
|
|
1142
1141
|
)
|
|
1143
1142
|
);
|
|
1144
1143
|
return l = !0, f(), function() {
|
|
1145
|
-
se(
|
|
1144
|
+
se(m), d(), l = !1;
|
|
1146
1145
|
};
|
|
1147
1146
|
});
|
|
1148
1147
|
}
|
|
@@ -1188,7 +1187,7 @@ function li(e) {
|
|
|
1188
1187
|
function Ft(e) {
|
|
1189
1188
|
return Object.keys(e).concat(li(e));
|
|
1190
1189
|
}
|
|
1191
|
-
function
|
|
1190
|
+
function Er(e, t) {
|
|
1192
1191
|
try {
|
|
1193
1192
|
return t in e;
|
|
1194
1193
|
} catch (r) {
|
|
@@ -1196,14 +1195,14 @@ function Nr(e, t) {
|
|
|
1196
1195
|
}
|
|
1197
1196
|
}
|
|
1198
1197
|
function ui(e, t) {
|
|
1199
|
-
return
|
|
1198
|
+
return Er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1200
1199
|
}
|
|
1201
1200
|
function hi(e, t, r) {
|
|
1202
1201
|
var n = {};
|
|
1203
1202
|
return r.isMergeableObject(e) && Ft(e).forEach(function(i) {
|
|
1204
1203
|
n[i] = ge(e[i], r);
|
|
1205
1204
|
}), Ft(t).forEach(function(i) {
|
|
1206
|
-
ui(e, i) || (
|
|
1205
|
+
ui(e, i) || (Er(e, i) && r.isMergeableObject(t[i]) ? n[i] = si(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
|
|
1207
1206
|
}), n;
|
|
1208
1207
|
}
|
|
1209
1208
|
function ne(e, t, r) {
|
|
@@ -1220,7 +1219,57 @@ ne.all = function(t, r) {
|
|
|
1220
1219
|
};
|
|
1221
1220
|
var ci = ne, fi = ci;
|
|
1222
1221
|
const di = /* @__PURE__ */ qn(fi);
|
|
1223
|
-
|
|
1222
|
+
function Ve(e, t) {
|
|
1223
|
+
var r = t && t.cache ? t.cache : yi, n = t && t.serializer ? t.serializer : bi, i = t && t.strategy ? t.strategy : mi;
|
|
1224
|
+
return i(e, {
|
|
1225
|
+
cache: r,
|
|
1226
|
+
serializer: n
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
function pi(e) {
|
|
1230
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1231
|
+
}
|
|
1232
|
+
function Nr(e, t, r, n) {
|
|
1233
|
+
var i = pi(n) ? n : r(n), o = t.get(i);
|
|
1234
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1235
|
+
}
|
|
1236
|
+
function Sr(e, t, r) {
|
|
1237
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1238
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1239
|
+
}
|
|
1240
|
+
function pt(e, t, r, n, i) {
|
|
1241
|
+
return r.bind(t, e, n, i);
|
|
1242
|
+
}
|
|
1243
|
+
function mi(e, t) {
|
|
1244
|
+
var r = e.length === 1 ? Nr : Sr;
|
|
1245
|
+
return pt(e, this, r, t.cache.create(), t.serializer);
|
|
1246
|
+
}
|
|
1247
|
+
function gi(e, t) {
|
|
1248
|
+
return pt(e, this, Sr, t.cache.create(), t.serializer);
|
|
1249
|
+
}
|
|
1250
|
+
function vi(e, t) {
|
|
1251
|
+
return pt(e, this, Nr, t.cache.create(), t.serializer);
|
|
1252
|
+
}
|
|
1253
|
+
var bi = function() {
|
|
1254
|
+
return JSON.stringify(arguments);
|
|
1255
|
+
};
|
|
1256
|
+
function mt() {
|
|
1257
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1258
|
+
}
|
|
1259
|
+
mt.prototype.get = function(e) {
|
|
1260
|
+
return this.cache[e];
|
|
1261
|
+
};
|
|
1262
|
+
mt.prototype.set = function(e, t) {
|
|
1263
|
+
this.cache[e] = t;
|
|
1264
|
+
};
|
|
1265
|
+
var yi = {
|
|
1266
|
+
create: function() {
|
|
1267
|
+
return new mt();
|
|
1268
|
+
}
|
|
1269
|
+
}, Xe = {
|
|
1270
|
+
variadic: gi,
|
|
1271
|
+
monadic: vi
|
|
1272
|
+
}, _;
|
|
1224
1273
|
(function(e) {
|
|
1225
1274
|
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";
|
|
1226
1275
|
})(_ || (_ = {}));
|
|
@@ -1235,40 +1284,40 @@ var ie;
|
|
|
1235
1284
|
function Rt(e) {
|
|
1236
1285
|
return e.type === I.literal;
|
|
1237
1286
|
}
|
|
1238
|
-
function
|
|
1287
|
+
function _i(e) {
|
|
1239
1288
|
return e.type === I.argument;
|
|
1240
1289
|
}
|
|
1241
|
-
function
|
|
1290
|
+
function Ir(e) {
|
|
1242
1291
|
return e.type === I.number;
|
|
1243
1292
|
}
|
|
1244
|
-
function
|
|
1293
|
+
function Ar(e) {
|
|
1245
1294
|
return e.type === I.date;
|
|
1246
1295
|
}
|
|
1247
|
-
function
|
|
1296
|
+
function Br(e) {
|
|
1248
1297
|
return e.type === I.time;
|
|
1249
1298
|
}
|
|
1250
|
-
function
|
|
1299
|
+
function Tr(e) {
|
|
1251
1300
|
return e.type === I.select;
|
|
1252
1301
|
}
|
|
1253
|
-
function
|
|
1302
|
+
function Hr(e) {
|
|
1254
1303
|
return e.type === I.plural;
|
|
1255
1304
|
}
|
|
1256
|
-
function
|
|
1305
|
+
function xi(e) {
|
|
1257
1306
|
return e.type === I.pound;
|
|
1258
1307
|
}
|
|
1259
1308
|
function Pr(e) {
|
|
1260
1309
|
return e.type === I.tag;
|
|
1261
1310
|
}
|
|
1262
|
-
function
|
|
1311
|
+
function Mr(e) {
|
|
1263
1312
|
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
1264
1313
|
}
|
|
1265
1314
|
function it(e) {
|
|
1266
1315
|
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
1267
1316
|
}
|
|
1268
|
-
var
|
|
1269
|
-
function
|
|
1317
|
+
var Or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
1318
|
+
function Ei(e) {
|
|
1270
1319
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1320
|
+
return e.replace(wi, function(r) {
|
|
1272
1321
|
var n = r.length;
|
|
1273
1322
|
switch (r[0]) {
|
|
1274
1323
|
case "G":
|
|
@@ -1357,11 +1406,11 @@ function vi(e) {
|
|
|
1357
1406
|
return "";
|
|
1358
1407
|
}), t;
|
|
1359
1408
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1409
|
+
var Ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1410
|
+
function Si(e) {
|
|
1362
1411
|
if (e.length === 0)
|
|
1363
1412
|
throw new Error("Number skeleton cannot be empty");
|
|
1364
|
-
for (var t = e.split(
|
|
1413
|
+
for (var t = e.split(Ni).filter(function(f) {
|
|
1365
1414
|
return f.length > 0;
|
|
1366
1415
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1367
1416
|
var o = i[n], a = o.split("/");
|
|
@@ -1376,17 +1425,17 @@ function yi(e) {
|
|
|
1376
1425
|
}
|
|
1377
1426
|
return r;
|
|
1378
1427
|
}
|
|
1379
|
-
function
|
|
1428
|
+
function Ii(e) {
|
|
1380
1429
|
return e.replace(/^(.*?)-/, "");
|
|
1381
1430
|
}
|
|
1382
|
-
var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1431
|
+
var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lr = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, Cr = /^(0+)$/;
|
|
1383
1432
|
function Dt(e) {
|
|
1384
1433
|
var t = {};
|
|
1385
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1434
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lr, function(r, n, i) {
|
|
1386
1435
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1387
1436
|
}), t;
|
|
1388
1437
|
}
|
|
1389
|
-
function
|
|
1438
|
+
function Fr(e) {
|
|
1390
1439
|
switch (e) {
|
|
1391
1440
|
case "sign-auto":
|
|
1392
1441
|
return {
|
|
@@ -1426,7 +1475,7 @@ function Cr(e) {
|
|
|
1426
1475
|
};
|
|
1427
1476
|
}
|
|
1428
1477
|
}
|
|
1429
|
-
function
|
|
1478
|
+
function Bi(e) {
|
|
1430
1479
|
var t;
|
|
1431
1480
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1432
1481
|
notation: "engineering"
|
|
@@ -1434,17 +1483,17 @@ function Ei(e) {
|
|
|
1434
1483
|
notation: "scientific"
|
|
1435
1484
|
}, e = e.slice(1)), t) {
|
|
1436
1485
|
var r = e.slice(0, 2);
|
|
1437
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1486
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Cr.test(e))
|
|
1438
1487
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1439
1488
|
t.minimumIntegerDigits = e.length;
|
|
1440
1489
|
}
|
|
1441
1490
|
return t;
|
|
1442
1491
|
}
|
|
1443
1492
|
function Gt(e) {
|
|
1444
|
-
var t = {}, r =
|
|
1493
|
+
var t = {}, r = Fr(e);
|
|
1445
1494
|
return r || t;
|
|
1446
1495
|
}
|
|
1447
|
-
function
|
|
1496
|
+
function Ti(e) {
|
|
1448
1497
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1449
1498
|
var i = n[r];
|
|
1450
1499
|
switch (i.stem) {
|
|
@@ -1468,7 +1517,7 @@ function wi(e) {
|
|
|
1468
1517
|
continue;
|
|
1469
1518
|
case "measure-unit":
|
|
1470
1519
|
case "unit":
|
|
1471
|
-
t.style = "unit", t.unit =
|
|
1520
|
+
t.style = "unit", t.unit = Ii(i.options[0]);
|
|
1472
1521
|
continue;
|
|
1473
1522
|
case "compact-short":
|
|
1474
1523
|
case "K":
|
|
@@ -1479,13 +1528,13 @@ function wi(e) {
|
|
|
1479
1528
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1480
1529
|
continue;
|
|
1481
1530
|
case "scientific":
|
|
1482
|
-
t =
|
|
1483
|
-
return
|
|
1531
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1532
|
+
return E(E({}, l), Gt(u));
|
|
1484
1533
|
}, {}));
|
|
1485
1534
|
continue;
|
|
1486
1535
|
case "engineering":
|
|
1487
|
-
t =
|
|
1488
|
-
return
|
|
1536
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1537
|
+
return E(E({}, l), Gt(u));
|
|
1489
1538
|
}, {}));
|
|
1490
1539
|
continue;
|
|
1491
1540
|
case "notation-simple":
|
|
@@ -1530,49 +1579,55 @@ function wi(e) {
|
|
|
1530
1579
|
case "integer-width":
|
|
1531
1580
|
if (i.options.length > 1)
|
|
1532
1581
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1533
|
-
i.options[0].replace(
|
|
1582
|
+
i.options[0].replace(Ai, function(l, u, h, d, f, m) {
|
|
1534
1583
|
if (u)
|
|
1535
1584
|
t.minimumIntegerDigits = h.length;
|
|
1536
1585
|
else {
|
|
1537
1586
|
if (d && f)
|
|
1538
1587
|
throw new Error("We currently do not support maximum integer digits");
|
|
1539
|
-
if (
|
|
1588
|
+
if (m)
|
|
1540
1589
|
throw new Error("We currently do not support exact integer digits");
|
|
1541
1590
|
}
|
|
1542
1591
|
return "";
|
|
1543
1592
|
});
|
|
1544
1593
|
continue;
|
|
1545
1594
|
}
|
|
1546
|
-
if (
|
|
1595
|
+
if (Cr.test(i.stem)) {
|
|
1547
1596
|
t.minimumIntegerDigits = i.stem.length;
|
|
1548
1597
|
continue;
|
|
1549
1598
|
}
|
|
1550
1599
|
if (Ut.test(i.stem)) {
|
|
1551
1600
|
if (i.options.length > 1)
|
|
1552
1601
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1553
|
-
i.stem.replace(Ut, function(l, u, h, d, f,
|
|
1554
|
-
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f &&
|
|
1602
|
+
i.stem.replace(Ut, function(l, u, h, d, f, m) {
|
|
1603
|
+
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1555
1604
|
});
|
|
1556
1605
|
var o = i.options[0];
|
|
1557
|
-
o === "w" ? t =
|
|
1606
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Dt(o)));
|
|
1558
1607
|
continue;
|
|
1559
1608
|
}
|
|
1560
|
-
if (
|
|
1561
|
-
t =
|
|
1609
|
+
if (Lr.test(i.stem)) {
|
|
1610
|
+
t = E(E({}, t), Dt(i.stem));
|
|
1562
1611
|
continue;
|
|
1563
1612
|
}
|
|
1564
|
-
var a =
|
|
1565
|
-
a && (t =
|
|
1566
|
-
var s =
|
|
1567
|
-
s && (t =
|
|
1613
|
+
var a = Fr(i.stem);
|
|
1614
|
+
a && (t = E(E({}, t), a));
|
|
1615
|
+
var s = Bi(i.stem);
|
|
1616
|
+
s && (t = E(E({}, t), s));
|
|
1568
1617
|
}
|
|
1569
1618
|
return t;
|
|
1570
1619
|
}
|
|
1571
|
-
var
|
|
1620
|
+
var Ee = {
|
|
1572
1621
|
"001": [
|
|
1573
1622
|
"H",
|
|
1574
1623
|
"h"
|
|
1575
1624
|
],
|
|
1625
|
+
419: [
|
|
1626
|
+
"h",
|
|
1627
|
+
"H",
|
|
1628
|
+
"hB",
|
|
1629
|
+
"hb"
|
|
1630
|
+
],
|
|
1576
1631
|
AC: [
|
|
1577
1632
|
"H",
|
|
1578
1633
|
"h",
|
|
@@ -1621,8 +1676,8 @@ var we = {
|
|
|
1621
1676
|
"hB"
|
|
1622
1677
|
],
|
|
1623
1678
|
AR: [
|
|
1624
|
-
"H",
|
|
1625
1679
|
"h",
|
|
1680
|
+
"H",
|
|
1626
1681
|
"hB",
|
|
1627
1682
|
"hb"
|
|
1628
1683
|
],
|
|
@@ -1712,9 +1767,9 @@ var we = {
|
|
|
1712
1767
|
"H"
|
|
1713
1768
|
],
|
|
1714
1769
|
BO: [
|
|
1770
|
+
"h",
|
|
1715
1771
|
"H",
|
|
1716
1772
|
"hB",
|
|
1717
|
-
"h",
|
|
1718
1773
|
"hb"
|
|
1719
1774
|
],
|
|
1720
1775
|
BQ: [
|
|
@@ -1791,8 +1846,8 @@ var we = {
|
|
|
1791
1846
|
"hB"
|
|
1792
1847
|
],
|
|
1793
1848
|
CL: [
|
|
1794
|
-
"H",
|
|
1795
1849
|
"h",
|
|
1850
|
+
"H",
|
|
1796
1851
|
"hB",
|
|
1797
1852
|
"hb"
|
|
1798
1853
|
],
|
|
@@ -1817,14 +1872,14 @@ var we = {
|
|
|
1817
1872
|
"H"
|
|
1818
1873
|
],
|
|
1819
1874
|
CR: [
|
|
1820
|
-
"H",
|
|
1821
1875
|
"h",
|
|
1876
|
+
"H",
|
|
1822
1877
|
"hB",
|
|
1823
1878
|
"hb"
|
|
1824
1879
|
],
|
|
1825
1880
|
CU: [
|
|
1826
|
-
"H",
|
|
1827
1881
|
"h",
|
|
1882
|
+
"H",
|
|
1828
1883
|
"hB",
|
|
1829
1884
|
"hb"
|
|
1830
1885
|
],
|
|
@@ -1893,9 +1948,9 @@ var we = {
|
|
|
1893
1948
|
"hb"
|
|
1894
1949
|
],
|
|
1895
1950
|
EC: [
|
|
1951
|
+
"h",
|
|
1896
1952
|
"H",
|
|
1897
1953
|
"hB",
|
|
1898
|
-
"h",
|
|
1899
1954
|
"hb"
|
|
1900
1955
|
],
|
|
1901
1956
|
EE: [
|
|
@@ -2031,8 +2086,8 @@ var we = {
|
|
|
2031
2086
|
"hB"
|
|
2032
2087
|
],
|
|
2033
2088
|
GT: [
|
|
2034
|
-
"H",
|
|
2035
2089
|
"h",
|
|
2090
|
+
"H",
|
|
2036
2091
|
"hB",
|
|
2037
2092
|
"hb"
|
|
2038
2093
|
],
|
|
@@ -2059,8 +2114,8 @@ var we = {
|
|
|
2059
2114
|
"H"
|
|
2060
2115
|
],
|
|
2061
2116
|
HN: [
|
|
2062
|
-
"H",
|
|
2063
2117
|
"h",
|
|
2118
|
+
"H",
|
|
2064
2119
|
"hB",
|
|
2065
2120
|
"hb"
|
|
2066
2121
|
],
|
|
@@ -2374,8 +2429,8 @@ var we = {
|
|
|
2374
2429
|
"hB"
|
|
2375
2430
|
],
|
|
2376
2431
|
MX: [
|
|
2377
|
-
"H",
|
|
2378
2432
|
"h",
|
|
2433
|
+
"H",
|
|
2379
2434
|
"hB",
|
|
2380
2435
|
"hb"
|
|
2381
2436
|
],
|
|
@@ -2415,8 +2470,8 @@ var we = {
|
|
|
2415
2470
|
"hB"
|
|
2416
2471
|
],
|
|
2417
2472
|
NI: [
|
|
2418
|
-
"H",
|
|
2419
2473
|
"h",
|
|
2474
|
+
"H",
|
|
2420
2475
|
"hB",
|
|
2421
2476
|
"hb"
|
|
2422
2477
|
],
|
|
@@ -2464,9 +2519,9 @@ var we = {
|
|
|
2464
2519
|
"hb"
|
|
2465
2520
|
],
|
|
2466
2521
|
PE: [
|
|
2522
|
+
"h",
|
|
2467
2523
|
"H",
|
|
2468
2524
|
"hB",
|
|
2469
|
-
"h",
|
|
2470
2525
|
"hb"
|
|
2471
2526
|
],
|
|
2472
2527
|
PF: [
|
|
@@ -2524,8 +2579,8 @@ var we = {
|
|
|
2524
2579
|
"H"
|
|
2525
2580
|
],
|
|
2526
2581
|
PY: [
|
|
2527
|
-
"H",
|
|
2528
2582
|
"h",
|
|
2583
|
+
"H",
|
|
2529
2584
|
"hB",
|
|
2530
2585
|
"hb"
|
|
2531
2586
|
],
|
|
@@ -2638,8 +2693,8 @@ var we = {
|
|
|
2638
2693
|
"hB"
|
|
2639
2694
|
],
|
|
2640
2695
|
SV: [
|
|
2641
|
-
"H",
|
|
2642
2696
|
"h",
|
|
2697
|
+
"H",
|
|
2643
2698
|
"hB",
|
|
2644
2699
|
"hb"
|
|
2645
2700
|
],
|
|
@@ -2761,8 +2816,8 @@ var we = {
|
|
|
2761
2816
|
"hB"
|
|
2762
2817
|
],
|
|
2763
2818
|
UY: [
|
|
2764
|
-
"H",
|
|
2765
2819
|
"h",
|
|
2820
|
+
"H",
|
|
2766
2821
|
"hB",
|
|
2767
2822
|
"hb"
|
|
2768
2823
|
],
|
|
@@ -2870,37 +2925,37 @@ var we = {
|
|
|
2870
2925
|
"H",
|
|
2871
2926
|
"hB"
|
|
2872
2927
|
],
|
|
2873
|
-
"
|
|
2874
|
-
"H",
|
|
2928
|
+
"en-HK": [
|
|
2875
2929
|
"h",
|
|
2876
|
-
"
|
|
2877
|
-
"
|
|
2930
|
+
"hb",
|
|
2931
|
+
"H",
|
|
2932
|
+
"hB"
|
|
2878
2933
|
],
|
|
2879
|
-
"
|
|
2934
|
+
"en-IL": [
|
|
2880
2935
|
"H",
|
|
2881
2936
|
"h",
|
|
2882
|
-
"
|
|
2883
|
-
"
|
|
2937
|
+
"hb",
|
|
2938
|
+
"hB"
|
|
2884
2939
|
],
|
|
2885
|
-
"
|
|
2886
|
-
"H",
|
|
2940
|
+
"en-MY": [
|
|
2887
2941
|
"h",
|
|
2888
|
-
"
|
|
2889
|
-
"
|
|
2942
|
+
"hb",
|
|
2943
|
+
"H",
|
|
2944
|
+
"hB"
|
|
2890
2945
|
],
|
|
2891
|
-
"es-
|
|
2946
|
+
"es-BR": [
|
|
2892
2947
|
"H",
|
|
2893
2948
|
"h",
|
|
2894
2949
|
"hB",
|
|
2895
2950
|
"hb"
|
|
2896
2951
|
],
|
|
2897
|
-
"es-
|
|
2952
|
+
"es-ES": [
|
|
2898
2953
|
"H",
|
|
2899
2954
|
"h",
|
|
2900
2955
|
"hB",
|
|
2901
2956
|
"hb"
|
|
2902
2957
|
],
|
|
2903
|
-
"es-
|
|
2958
|
+
"es-GQ": [
|
|
2904
2959
|
"H",
|
|
2905
2960
|
"h",
|
|
2906
2961
|
"hB",
|
|
@@ -2977,13 +3032,13 @@ var we = {
|
|
|
2977
3032
|
"h"
|
|
2978
3033
|
]
|
|
2979
3034
|
};
|
|
2980
|
-
function
|
|
3035
|
+
function Hi(e, t) {
|
|
2981
3036
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2982
3037
|
var i = e.charAt(n);
|
|
2983
3038
|
if (i === "j") {
|
|
2984
3039
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2985
3040
|
o++, n++;
|
|
2986
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3041
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Pi(t);
|
|
2987
3042
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2988
3043
|
r += l;
|
|
2989
3044
|
for (; a-- > 0; )
|
|
@@ -2992,7 +3047,7 @@ function Ni(e, t) {
|
|
|
2992
3047
|
}
|
|
2993
3048
|
return r;
|
|
2994
3049
|
}
|
|
2995
|
-
function
|
|
3050
|
+
function Pi(e) {
|
|
2996
3051
|
var t = e.hourCycle;
|
|
2997
3052
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2998
3053
|
e.hourCycles && // @ts-ignore
|
|
@@ -3011,23 +3066,23 @@ function Si(e) {
|
|
|
3011
3066
|
}
|
|
3012
3067
|
var r = e.language, n;
|
|
3013
3068
|
r !== "root" && (n = e.maximize().region);
|
|
3014
|
-
var i =
|
|
3069
|
+
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3015
3070
|
return i[0];
|
|
3016
3071
|
}
|
|
3017
|
-
var
|
|
3018
|
-
function
|
|
3072
|
+
var ze, Mi = new RegExp("^".concat(Or.source, "*")), Oi = new RegExp("".concat(Or.source, "*$"));
|
|
3073
|
+
function w(e, t) {
|
|
3019
3074
|
return { start: e, end: t };
|
|
3020
3075
|
}
|
|
3021
|
-
var
|
|
3076
|
+
var Li = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Fi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Ui = !!String.prototype.trimStart, Di = !!String.prototype.trimEnd, Gi = !!Number.isSafeInteger, $i = Gi ? Number.isSafeInteger : function(e) {
|
|
3022
3077
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3023
3078
|
}, ot = !0;
|
|
3024
3079
|
try {
|
|
3025
|
-
var
|
|
3026
|
-
ot = ((
|
|
3080
|
+
var ki = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3081
|
+
ot = ((ze = ki.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
|
|
3027
3082
|
} catch (e) {
|
|
3028
3083
|
ot = !1;
|
|
3029
3084
|
}
|
|
3030
|
-
var $t =
|
|
3085
|
+
var $t = Li ? (
|
|
3031
3086
|
// Native
|
|
3032
3087
|
function(t, r, n) {
|
|
3033
3088
|
return t.startsWith(r, n);
|
|
@@ -3037,7 +3092,7 @@ var $t = Bi ? (
|
|
|
3037
3092
|
function(t, r, n) {
|
|
3038
3093
|
return t.slice(n, n + r.length) === r;
|
|
3039
3094
|
}
|
|
3040
|
-
), at =
|
|
3095
|
+
), at = Ci ? String.fromCodePoint : (
|
|
3041
3096
|
// IE11
|
|
3042
3097
|
function() {
|
|
3043
3098
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3051,7 +3106,7 @@ var $t = Bi ? (
|
|
|
3051
3106
|
}
|
|
3052
3107
|
), kt = (
|
|
3053
3108
|
// native
|
|
3054
|
-
|
|
3109
|
+
Fi ? Object.fromEntries : (
|
|
3055
3110
|
// Ponyfill
|
|
3056
3111
|
function(t) {
|
|
3057
3112
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3061,7 +3116,7 @@ var $t = Bi ? (
|
|
|
3061
3116
|
return r;
|
|
3062
3117
|
}
|
|
3063
3118
|
)
|
|
3064
|
-
),
|
|
3119
|
+
), Rr = Ri ? (
|
|
3065
3120
|
// Native
|
|
3066
3121
|
function(t, r) {
|
|
3067
3122
|
return t.codePointAt(r);
|
|
@@ -3075,7 +3130,7 @@ var $t = Bi ? (
|
|
|
3075
3130
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3076
3131
|
}
|
|
3077
3132
|
}
|
|
3078
|
-
),
|
|
3133
|
+
), ji = Ui ? (
|
|
3079
3134
|
// Native
|
|
3080
3135
|
function(t) {
|
|
3081
3136
|
return t.trimStart();
|
|
@@ -3083,9 +3138,9 @@ var $t = Bi ? (
|
|
|
3083
3138
|
) : (
|
|
3084
3139
|
// Ponyfill
|
|
3085
3140
|
function(t) {
|
|
3086
|
-
return t.replace(
|
|
3141
|
+
return t.replace(Mi, "");
|
|
3087
3142
|
}
|
|
3088
|
-
),
|
|
3143
|
+
), Wi = Di ? (
|
|
3089
3144
|
// Native
|
|
3090
3145
|
function(t) {
|
|
3091
3146
|
return t.trimEnd();
|
|
@@ -3093,15 +3148,15 @@ var $t = Bi ? (
|
|
|
3093
3148
|
) : (
|
|
3094
3149
|
// Ponyfill
|
|
3095
3150
|
function(t) {
|
|
3096
|
-
return t.replace(
|
|
3151
|
+
return t.replace(Oi, "");
|
|
3097
3152
|
}
|
|
3098
3153
|
);
|
|
3099
|
-
function
|
|
3154
|
+
function Ur(e, t) {
|
|
3100
3155
|
return new RegExp(e, t);
|
|
3101
3156
|
}
|
|
3102
3157
|
var st;
|
|
3103
3158
|
if (ot) {
|
|
3104
|
-
var jt =
|
|
3159
|
+
var jt = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3105
3160
|
st = function(t, r) {
|
|
3106
3161
|
var n;
|
|
3107
3162
|
jt.lastIndex = r;
|
|
@@ -3111,14 +3166,14 @@ if (ot) {
|
|
|
3111
3166
|
} else
|
|
3112
3167
|
st = function(t, r) {
|
|
3113
3168
|
for (var n = []; ; ) {
|
|
3114
|
-
var i =
|
|
3115
|
-
if (i === void 0 ||
|
|
3169
|
+
var i = Rr(t, r);
|
|
3170
|
+
if (i === void 0 || Dr(i) || Zi(i))
|
|
3116
3171
|
break;
|
|
3117
3172
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3118
3173
|
}
|
|
3119
3174
|
return at.apply(void 0, n);
|
|
3120
3175
|
};
|
|
3121
|
-
var
|
|
3176
|
+
var Vi = (
|
|
3122
3177
|
/** @class */
|
|
3123
3178
|
function() {
|
|
3124
3179
|
function e(t, r) {
|
|
@@ -3143,12 +3198,12 @@ var Di = (
|
|
|
3143
3198
|
var s = this.clonePosition();
|
|
3144
3199
|
this.bump(), i.push({
|
|
3145
3200
|
type: I.pound,
|
|
3146
|
-
location:
|
|
3201
|
+
location: w(s, this.clonePosition())
|
|
3147
3202
|
});
|
|
3148
3203
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3149
3204
|
if (n)
|
|
3150
3205
|
break;
|
|
3151
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
3206
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3152
3207
|
} else if (o === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
|
|
3153
3208
|
var a = this.parseTag(t, r);
|
|
3154
3209
|
if (a.err)
|
|
@@ -3172,7 +3227,7 @@ var Di = (
|
|
|
3172
3227
|
val: {
|
|
3173
3228
|
type: I.literal,
|
|
3174
3229
|
value: "<".concat(i, "/>"),
|
|
3175
|
-
location:
|
|
3230
|
+
location: w(n, this.clonePosition())
|
|
3176
3231
|
},
|
|
3177
3232
|
err: null
|
|
3178
3233
|
};
|
|
@@ -3183,24 +3238,24 @@ var Di = (
|
|
|
3183
3238
|
var a = o.val, s = this.clonePosition();
|
|
3184
3239
|
if (this.bumpIf("</")) {
|
|
3185
3240
|
if (this.isEOF() || !lt(this.char()))
|
|
3186
|
-
return this.error(_.INVALID_TAG,
|
|
3241
|
+
return this.error(_.INVALID_TAG, w(s, this.clonePosition()));
|
|
3187
3242
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3188
|
-
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
3243
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3189
3244
|
val: {
|
|
3190
3245
|
type: I.tag,
|
|
3191
3246
|
value: i,
|
|
3192
3247
|
children: a,
|
|
3193
|
-
location:
|
|
3248
|
+
location: w(n, this.clonePosition())
|
|
3194
3249
|
},
|
|
3195
3250
|
err: null
|
|
3196
|
-
} : this.error(_.INVALID_TAG,
|
|
3251
|
+
} : this.error(_.INVALID_TAG, w(s, this.clonePosition())));
|
|
3197
3252
|
} else
|
|
3198
|
-
return this.error(_.UNCLOSED_TAG,
|
|
3253
|
+
return this.error(_.UNCLOSED_TAG, w(n, this.clonePosition()));
|
|
3199
3254
|
} else
|
|
3200
|
-
return this.error(_.INVALID_TAG,
|
|
3255
|
+
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3201
3256
|
}, e.prototype.parseTagName = function() {
|
|
3202
3257
|
var t = this.offset();
|
|
3203
|
-
for (this.bump(); !this.isEOF() &&
|
|
3258
|
+
for (this.bump(); !this.isEOF() && zi(this.char()); )
|
|
3204
3259
|
this.bump();
|
|
3205
3260
|
return this.message.slice(t, this.offset());
|
|
3206
3261
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3222,14 +3277,14 @@ var Di = (
|
|
|
3222
3277
|
}
|
|
3223
3278
|
break;
|
|
3224
3279
|
}
|
|
3225
|
-
var l =
|
|
3280
|
+
var l = w(n, this.clonePosition());
|
|
3226
3281
|
return {
|
|
3227
3282
|
val: { type: I.literal, value: i, location: l },
|
|
3228
3283
|
err: null
|
|
3229
3284
|
};
|
|
3230
3285
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3231
3286
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3232
|
-
!
|
|
3287
|
+
!Xi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3233
3288
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3234
3289
|
if (this.isEOF() || this.char() !== 39)
|
|
3235
3290
|
return null;
|
|
@@ -3272,14 +3327,14 @@ var Di = (
|
|
|
3272
3327
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3273
3328
|
var n = this.clonePosition();
|
|
3274
3329
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3275
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3330
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3276
3331
|
if (this.char() === 125)
|
|
3277
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
3332
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
|
3278
3333
|
var i = this.parseIdentifierIfPossible().value;
|
|
3279
3334
|
if (!i)
|
|
3280
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
3335
|
+
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3281
3336
|
if (this.bumpSpace(), this.isEOF())
|
|
3282
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3337
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3283
3338
|
switch (this.char()) {
|
|
3284
3339
|
case 125:
|
|
3285
3340
|
return this.bump(), {
|
|
@@ -3287,25 +3342,25 @@ var Di = (
|
|
|
3287
3342
|
type: I.argument,
|
|
3288
3343
|
// value does not include the opening and closing braces.
|
|
3289
3344
|
value: i,
|
|
3290
|
-
location:
|
|
3345
|
+
location: w(n, this.clonePosition())
|
|
3291
3346
|
},
|
|
3292
3347
|
err: null
|
|
3293
3348
|
};
|
|
3294
3349
|
case 44:
|
|
3295
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3350
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3296
3351
|
default:
|
|
3297
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
3352
|
+
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3298
3353
|
}
|
|
3299
3354
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3300
3355
|
var t = this.clonePosition(), r = this.offset(), n = st(this.message, r), i = r + n.length;
|
|
3301
3356
|
this.bumpTo(i);
|
|
3302
|
-
var o = this.clonePosition(), a =
|
|
3357
|
+
var o = this.clonePosition(), a = w(t, o);
|
|
3303
3358
|
return { value: n, location: a };
|
|
3304
3359
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3305
3360
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3306
3361
|
switch (s) {
|
|
3307
3362
|
case "":
|
|
3308
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
3363
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, w(a, l));
|
|
3309
3364
|
case "number":
|
|
3310
3365
|
case "date":
|
|
3311
3366
|
case "time": {
|
|
@@ -3316,34 +3371,34 @@ var Di = (
|
|
|
3316
3371
|
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3317
3372
|
if (d.err)
|
|
3318
3373
|
return d;
|
|
3319
|
-
var f =
|
|
3374
|
+
var f = Wi(d.val);
|
|
3320
3375
|
if (f.length === 0)
|
|
3321
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
3322
|
-
var
|
|
3323
|
-
u = { style: f, styleLocation:
|
|
3376
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3377
|
+
var m = w(h, this.clonePosition());
|
|
3378
|
+
u = { style: f, styleLocation: m };
|
|
3324
3379
|
}
|
|
3325
3380
|
var g = this.tryParseArgumentClose(i);
|
|
3326
3381
|
if (g.err)
|
|
3327
3382
|
return g;
|
|
3328
|
-
var v =
|
|
3383
|
+
var v = w(i, this.clonePosition());
|
|
3329
3384
|
if (u && $t(u == null ? void 0 : u.style, "::", 0)) {
|
|
3330
|
-
var
|
|
3385
|
+
var H = ji(u.style.slice(2));
|
|
3331
3386
|
if (s === "number") {
|
|
3332
|
-
var d = this.parseNumberSkeletonFromString(
|
|
3387
|
+
var d = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3333
3388
|
return d.err ? d : {
|
|
3334
3389
|
val: { type: I.number, value: n, location: v, style: d.val },
|
|
3335
3390
|
err: null
|
|
3336
3391
|
};
|
|
3337
3392
|
} else {
|
|
3338
|
-
if (
|
|
3393
|
+
if (H.length === 0)
|
|
3339
3394
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
3340
|
-
var N =
|
|
3341
|
-
this.locale && (N =
|
|
3395
|
+
var N = H;
|
|
3396
|
+
this.locale && (N = Hi(H, this.locale));
|
|
3342
3397
|
var f = {
|
|
3343
3398
|
type: ie.dateTime,
|
|
3344
3399
|
pattern: N,
|
|
3345
3400
|
location: u.styleLocation,
|
|
3346
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3401
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(N) : {}
|
|
3347
3402
|
}, b = s === "date" ? I.date : I.time;
|
|
3348
3403
|
return {
|
|
3349
3404
|
val: { type: b, value: n, location: v, style: f },
|
|
@@ -3366,12 +3421,12 @@ var Di = (
|
|
|
3366
3421
|
case "select": {
|
|
3367
3422
|
var T = this.clonePosition();
|
|
3368
3423
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3369
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3424
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(T, E({}, T)));
|
|
3370
3425
|
this.bumpSpace();
|
|
3371
3426
|
var x = this.parseIdentifierIfPossible(), C = 0;
|
|
3372
3427
|
if (s !== "select" && x.value === "offset") {
|
|
3373
3428
|
if (!this.bumpIf(":"))
|
|
3374
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3429
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
3375
3430
|
this.bumpSpace();
|
|
3376
3431
|
var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3377
3432
|
if (d.err)
|
|
@@ -3384,13 +3439,13 @@ var Di = (
|
|
|
3384
3439
|
var g = this.tryParseArgumentClose(i);
|
|
3385
3440
|
if (g.err)
|
|
3386
3441
|
return g;
|
|
3387
|
-
var
|
|
3442
|
+
var Y = w(i, this.clonePosition());
|
|
3388
3443
|
return s === "select" ? {
|
|
3389
3444
|
val: {
|
|
3390
3445
|
type: I.select,
|
|
3391
3446
|
value: n,
|
|
3392
3447
|
options: kt(j.val),
|
|
3393
|
-
location:
|
|
3448
|
+
location: Y
|
|
3394
3449
|
},
|
|
3395
3450
|
err: null
|
|
3396
3451
|
} : {
|
|
@@ -3400,16 +3455,16 @@ var Di = (
|
|
|
3400
3455
|
options: kt(j.val),
|
|
3401
3456
|
offset: C,
|
|
3402
3457
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3403
|
-
location:
|
|
3458
|
+
location: Y
|
|
3404
3459
|
},
|
|
3405
3460
|
err: null
|
|
3406
3461
|
};
|
|
3407
3462
|
}
|
|
3408
3463
|
default:
|
|
3409
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
3464
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, w(a, l));
|
|
3410
3465
|
}
|
|
3411
3466
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3412
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3467
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3413
3468
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3414
3469
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3415
3470
|
var n = this.char();
|
|
@@ -3418,7 +3473,7 @@ var Di = (
|
|
|
3418
3473
|
this.bump();
|
|
3419
3474
|
var i = this.clonePosition();
|
|
3420
3475
|
if (!this.bumpUntil("'"))
|
|
3421
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3476
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
3422
3477
|
this.bump();
|
|
3423
3478
|
break;
|
|
3424
3479
|
}
|
|
@@ -3448,7 +3503,7 @@ var Di = (
|
|
|
3448
3503
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3449
3504
|
var n = [];
|
|
3450
3505
|
try {
|
|
3451
|
-
n =
|
|
3506
|
+
n = Si(t);
|
|
3452
3507
|
} catch (i) {
|
|
3453
3508
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3454
3509
|
}
|
|
@@ -3457,7 +3512,7 @@ var Di = (
|
|
|
3457
3512
|
type: ie.number,
|
|
3458
3513
|
tokens: n,
|
|
3459
3514
|
location: r,
|
|
3460
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3515
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(n) : {}
|
|
3461
3516
|
},
|
|
3462
3517
|
err: null
|
|
3463
3518
|
};
|
|
@@ -3469,31 +3524,31 @@ var Di = (
|
|
|
3469
3524
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3470
3525
|
if (f.err)
|
|
3471
3526
|
return f;
|
|
3472
|
-
h =
|
|
3527
|
+
h = w(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3473
3528
|
} else
|
|
3474
3529
|
break;
|
|
3475
3530
|
}
|
|
3476
3531
|
if (l.has(u))
|
|
3477
3532
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3478
3533
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3479
|
-
var
|
|
3534
|
+
var m = this.clonePosition();
|
|
3480
3535
|
if (!this.bumpIf("{"))
|
|
3481
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3536
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3482
3537
|
var g = this.parseMessage(t + 1, r, n);
|
|
3483
3538
|
if (g.err)
|
|
3484
3539
|
return g;
|
|
3485
|
-
var v = this.tryParseArgumentClose(
|
|
3540
|
+
var v = this.tryParseArgumentClose(m);
|
|
3486
3541
|
if (v.err)
|
|
3487
3542
|
return v;
|
|
3488
3543
|
s.push([
|
|
3489
3544
|
u,
|
|
3490
3545
|
{
|
|
3491
3546
|
value: g.val,
|
|
3492
|
-
location:
|
|
3547
|
+
location: w(m, this.clonePosition())
|
|
3493
3548
|
}
|
|
3494
3549
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3495
3550
|
}
|
|
3496
|
-
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3551
|
+
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3497
3552
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3498
3553
|
var n = 1, i = this.clonePosition();
|
|
3499
3554
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3504,8 +3559,8 @@ var Di = (
|
|
|
3504
3559
|
else
|
|
3505
3560
|
break;
|
|
3506
3561
|
}
|
|
3507
|
-
var l =
|
|
3508
|
-
return o ? (a *= n,
|
|
3562
|
+
var l = w(i, this.clonePosition());
|
|
3563
|
+
return o ? (a *= n, $i(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3509
3564
|
}, e.prototype.offset = function() {
|
|
3510
3565
|
return this.position.offset;
|
|
3511
3566
|
}, e.prototype.isEOF = function() {
|
|
@@ -3520,7 +3575,7 @@ var Di = (
|
|
|
3520
3575
|
var t = this.position.offset;
|
|
3521
3576
|
if (t >= this.message.length)
|
|
3522
3577
|
throw Error("out of bound");
|
|
3523
|
-
var r =
|
|
3578
|
+
var r = Rr(this.message, t);
|
|
3524
3579
|
if (r === void 0)
|
|
3525
3580
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3526
3581
|
return r;
|
|
@@ -3561,7 +3616,7 @@ var Di = (
|
|
|
3561
3616
|
break;
|
|
3562
3617
|
}
|
|
3563
3618
|
}, e.prototype.bumpSpace = function() {
|
|
3564
|
-
for (; !this.isEOF() &&
|
|
3619
|
+
for (; !this.isEOF() && Dr(this.char()); )
|
|
3565
3620
|
this.bump();
|
|
3566
3621
|
}, e.prototype.peek = function() {
|
|
3567
3622
|
if (this.isEOF())
|
|
@@ -3574,86 +3629,36 @@ var Di = (
|
|
|
3574
3629
|
function lt(e) {
|
|
3575
3630
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3576
3631
|
}
|
|
3577
|
-
function
|
|
3632
|
+
function Xi(e) {
|
|
3578
3633
|
return lt(e) || e === 47;
|
|
3579
3634
|
}
|
|
3580
|
-
function
|
|
3635
|
+
function zi(e) {
|
|
3581
3636
|
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;
|
|
3582
3637
|
}
|
|
3583
|
-
function
|
|
3638
|
+
function Dr(e) {
|
|
3584
3639
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3585
3640
|
}
|
|
3586
|
-
function
|
|
3641
|
+
function Zi(e) {
|
|
3587
3642
|
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;
|
|
3588
3643
|
}
|
|
3589
3644
|
function ut(e) {
|
|
3590
3645
|
e.forEach(function(t) {
|
|
3591
|
-
if (delete t.location,
|
|
3646
|
+
if (delete t.location, Tr(t) || Hr(t))
|
|
3592
3647
|
for (var r in t.options)
|
|
3593
3648
|
delete t.options[r].location, ut(t.options[r].value);
|
|
3594
|
-
else
|
|
3649
|
+
else Ir(t) && Mr(t.style) || (Ar(t) || Br(t)) && it(t.style) ? delete t.style.location : Pr(t) && ut(t.children);
|
|
3595
3650
|
});
|
|
3596
3651
|
}
|
|
3597
|
-
function
|
|
3598
|
-
t === void 0 && (t = {}), t =
|
|
3599
|
-
var r = new
|
|
3652
|
+
function Qi(e, t) {
|
|
3653
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3654
|
+
var r = new Vi(e, t).parse();
|
|
3600
3655
|
if (r.err) {
|
|
3601
3656
|
var n = SyntaxError(_[r.err.kind]);
|
|
3602
3657
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3603
3658
|
}
|
|
3604
3659
|
return t != null && t.captureLocation || ut(r.val), r.val;
|
|
3605
3660
|
}
|
|
3606
|
-
|
|
3607
|
-
var r = t && t.cache ? t.cache : Qi, n = t && t.serializer ? t.serializer : Zi, i = t && t.strategy ? t.strategy : Vi;
|
|
3608
|
-
return i(e, {
|
|
3609
|
-
cache: r,
|
|
3610
|
-
serializer: n
|
|
3611
|
-
});
|
|
3612
|
-
}
|
|
3613
|
-
function Wi(e) {
|
|
3614
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3615
|
-
}
|
|
3616
|
-
function Dr(e, t, r, n) {
|
|
3617
|
-
var i = Wi(n) ? n : r(n), o = t.get(i);
|
|
3618
|
-
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
3619
|
-
}
|
|
3620
|
-
function Gr(e, t, r) {
|
|
3621
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
3622
|
-
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
3623
|
-
}
|
|
3624
|
-
function mt(e, t, r, n, i) {
|
|
3625
|
-
return r.bind(t, e, n, i);
|
|
3626
|
-
}
|
|
3627
|
-
function Vi(e, t) {
|
|
3628
|
-
var r = e.length === 1 ? Dr : Gr;
|
|
3629
|
-
return mt(e, this, r, t.cache.create(), t.serializer);
|
|
3630
|
-
}
|
|
3631
|
-
function Xi(e, t) {
|
|
3632
|
-
return mt(e, this, Gr, t.cache.create(), t.serializer);
|
|
3633
|
-
}
|
|
3634
|
-
function zi(e, t) {
|
|
3635
|
-
return mt(e, this, Dr, t.cache.create(), t.serializer);
|
|
3636
|
-
}
|
|
3637
|
-
var Zi = function() {
|
|
3638
|
-
return JSON.stringify(arguments);
|
|
3639
|
-
};
|
|
3640
|
-
function pt() {
|
|
3641
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
3642
|
-
}
|
|
3643
|
-
pt.prototype.get = function(e) {
|
|
3644
|
-
return this.cache[e];
|
|
3645
|
-
};
|
|
3646
|
-
pt.prototype.set = function(e, t) {
|
|
3647
|
-
this.cache[e] = t;
|
|
3648
|
-
};
|
|
3649
|
-
var Qi = {
|
|
3650
|
-
create: function() {
|
|
3651
|
-
return new pt();
|
|
3652
|
-
}
|
|
3653
|
-
}, ze = {
|
|
3654
|
-
variadic: Xi,
|
|
3655
|
-
monadic: zi
|
|
3656
|
-
}, oe;
|
|
3661
|
+
var oe;
|
|
3657
3662
|
(function(e) {
|
|
3658
3663
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3659
3664
|
})(oe || (oe = {}));
|
|
@@ -3678,7 +3683,7 @@ var Ce = (
|
|
|
3678
3683
|
}
|
|
3679
3684
|
return t;
|
|
3680
3685
|
}(Ce)
|
|
3681
|
-
),
|
|
3686
|
+
), Yi = (
|
|
3682
3687
|
/** @class */
|
|
3683
3688
|
function(e) {
|
|
3684
3689
|
k(t, e);
|
|
@@ -3687,7 +3692,7 @@ var Ce = (
|
|
|
3687
3692
|
}
|
|
3688
3693
|
return t;
|
|
3689
3694
|
}(Ce)
|
|
3690
|
-
),
|
|
3695
|
+
), Ji = (
|
|
3691
3696
|
/** @class */
|
|
3692
3697
|
function(e) {
|
|
3693
3698
|
k(t, e);
|
|
@@ -3726,7 +3731,7 @@ function Ae(e, t, r, n, i, o, a) {
|
|
|
3726
3731
|
});
|
|
3727
3732
|
continue;
|
|
3728
3733
|
}
|
|
3729
|
-
if (
|
|
3734
|
+
if (xi(h)) {
|
|
3730
3735
|
typeof o == "number" && s.push({
|
|
3731
3736
|
type: M.literal,
|
|
3732
3737
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3735,44 +3740,44 @@ function Ae(e, t, r, n, i, o, a) {
|
|
|
3735
3740
|
}
|
|
3736
3741
|
var d = h.value;
|
|
3737
3742
|
if (!(i && d in i))
|
|
3738
|
-
throw new
|
|
3743
|
+
throw new Ji(d, a);
|
|
3739
3744
|
var f = i[d];
|
|
3740
|
-
if (
|
|
3745
|
+
if (_i(h)) {
|
|
3741
3746
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3742
3747
|
type: typeof f == "string" ? M.literal : M.object,
|
|
3743
3748
|
value: f
|
|
3744
3749
|
});
|
|
3745
3750
|
continue;
|
|
3746
3751
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var
|
|
3752
|
+
if (Ar(h)) {
|
|
3753
|
+
var m = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
|
|
3749
3754
|
s.push({
|
|
3750
3755
|
type: M.literal,
|
|
3751
|
-
value: r.getDateTimeFormat(t,
|
|
3756
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3752
3757
|
});
|
|
3753
3758
|
continue;
|
|
3754
3759
|
}
|
|
3755
|
-
if (
|
|
3756
|
-
var
|
|
3760
|
+
if (Br(h)) {
|
|
3761
|
+
var m = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3757
3762
|
s.push({
|
|
3758
3763
|
type: M.literal,
|
|
3759
|
-
value: r.getDateTimeFormat(t,
|
|
3764
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3760
3765
|
});
|
|
3761
3766
|
continue;
|
|
3762
3767
|
}
|
|
3763
|
-
if (
|
|
3764
|
-
var
|
|
3765
|
-
|
|
3768
|
+
if (Ir(h)) {
|
|
3769
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Mr(h.style) ? h.style.parsedOptions : void 0;
|
|
3770
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3766
3771
|
type: M.literal,
|
|
3767
|
-
value: r.getNumberFormat(t,
|
|
3772
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3768
3773
|
});
|
|
3769
3774
|
continue;
|
|
3770
3775
|
}
|
|
3771
3776
|
if (Pr(h)) {
|
|
3772
|
-
var g = h.children, v = h.value,
|
|
3773
|
-
if (!Ki(
|
|
3774
|
-
throw new
|
|
3775
|
-
var N = Ae(g, t, r, n, i, o), b =
|
|
3777
|
+
var g = h.children, v = h.value, H = i[v];
|
|
3778
|
+
if (!Ki(H))
|
|
3779
|
+
throw new Yi(v, "function", a);
|
|
3780
|
+
var N = Ae(g, t, r, n, i, o), b = H(N.map(function(C) {
|
|
3776
3781
|
return C.value;
|
|
3777
3782
|
}));
|
|
3778
3783
|
Array.isArray(b) || (b = [b]), s.push.apply(s, b.map(function(C) {
|
|
@@ -3782,14 +3787,14 @@ function Ae(e, t, r, n, i, o, a) {
|
|
|
3782
3787
|
};
|
|
3783
3788
|
}));
|
|
3784
3789
|
}
|
|
3785
|
-
if (
|
|
3790
|
+
if (Tr(h)) {
|
|
3786
3791
|
var T = h.options[f] || h.options.other;
|
|
3787
3792
|
if (!T)
|
|
3788
3793
|
throw new Wt(h.value, f, Object.keys(h.options), a);
|
|
3789
3794
|
s.push.apply(s, Ae(T.value, t, r, n, i));
|
|
3790
3795
|
continue;
|
|
3791
3796
|
}
|
|
3792
|
-
if (
|
|
3797
|
+
if (Hr(h)) {
|
|
3793
3798
|
var T = h.options["=".concat(f)];
|
|
3794
3799
|
if (!T) {
|
|
3795
3800
|
if (!Intl.PluralRules)
|
|
@@ -3808,14 +3813,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3808
3813
|
return qi(s);
|
|
3809
3814
|
}
|
|
3810
3815
|
function eo(e, t) {
|
|
3811
|
-
return t ?
|
|
3812
|
-
return r[n] =
|
|
3816
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3817
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3813
3818
|
}, {})) : e;
|
|
3814
3819
|
}
|
|
3815
3820
|
function to(e, t) {
|
|
3816
3821
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3817
3822
|
return r[n] = eo(e[n], t[n]), r;
|
|
3818
|
-
},
|
|
3823
|
+
}, E({}, e)) : e;
|
|
3819
3824
|
}
|
|
3820
3825
|
function Ze(e) {
|
|
3821
3826
|
return {
|
|
@@ -3837,29 +3842,29 @@ function ro(e) {
|
|
|
3837
3842
|
dateTime: {},
|
|
3838
3843
|
pluralRules: {}
|
|
3839
3844
|
}), {
|
|
3840
|
-
getNumberFormat:
|
|
3845
|
+
getNumberFormat: Ve(function() {
|
|
3841
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3842
3847
|
r[n] = arguments[n];
|
|
3843
3848
|
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3844
3849
|
}, {
|
|
3845
3850
|
cache: Ze(e.number),
|
|
3846
|
-
strategy:
|
|
3851
|
+
strategy: Xe.variadic
|
|
3847
3852
|
}),
|
|
3848
|
-
getDateTimeFormat:
|
|
3853
|
+
getDateTimeFormat: Ve(function() {
|
|
3849
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3850
3855
|
r[n] = arguments[n];
|
|
3851
3856
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3852
3857
|
}, {
|
|
3853
3858
|
cache: Ze(e.dateTime),
|
|
3854
|
-
strategy:
|
|
3859
|
+
strategy: Xe.variadic
|
|
3855
3860
|
}),
|
|
3856
|
-
getPluralRules:
|
|
3861
|
+
getPluralRules: Ve(function() {
|
|
3857
3862
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3858
3863
|
r[n] = arguments[n];
|
|
3859
3864
|
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3860
3865
|
}, {
|
|
3861
3866
|
cache: Ze(e.pluralRules),
|
|
3862
|
-
strategy:
|
|
3867
|
+
strategy: Xe.variadic
|
|
3863
3868
|
})
|
|
3864
3869
|
};
|
|
3865
3870
|
}
|
|
@@ -3867,8 +3872,9 @@ var no = (
|
|
|
3867
3872
|
/** @class */
|
|
3868
3873
|
function() {
|
|
3869
3874
|
function e(t, r, n, i) {
|
|
3875
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3870
3876
|
var o = this;
|
|
3871
|
-
if (
|
|
3877
|
+
if (this.formatterCache = {
|
|
3872
3878
|
number: {},
|
|
3873
3879
|
dateTime: {},
|
|
3874
3880
|
pluralRules: {}
|
|
@@ -3894,8 +3900,8 @@ var no = (
|
|
|
3894
3900
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3895
3901
|
var a = i || {};
|
|
3896
3902
|
a.formatters;
|
|
3897
|
-
var s =
|
|
3898
|
-
this.ast = e.__parse(t,
|
|
3903
|
+
var s = Fn(a, ["formatters"]);
|
|
3904
|
+
this.ast = e.__parse(t, E(E({}, s), { locale: this.resolvedLocale }));
|
|
3899
3905
|
} else
|
|
3900
3906
|
this.ast = t;
|
|
3901
3907
|
if (!Array.isArray(this.ast))
|
|
@@ -3913,7 +3919,7 @@ var no = (
|
|
|
3913
3919
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3914
3920
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3915
3921
|
}
|
|
3916
|
-
}, e.__parse =
|
|
3922
|
+
}, e.__parse = Qi, e.formats = {
|
|
3917
3923
|
number: {
|
|
3918
3924
|
integer: {
|
|
3919
3925
|
maximumFractionDigits: 0
|
|
@@ -3995,7 +4001,7 @@ function io(e, t) {
|
|
|
3995
4001
|
n = void 0;
|
|
3996
4002
|
return n;
|
|
3997
4003
|
}
|
|
3998
|
-
const X = {}, oo = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r),
|
|
4004
|
+
const X = {}, oo = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), Gr = (e, t) => {
|
|
3999
4005
|
if (t == null)
|
|
4000
4006
|
return;
|
|
4001
4007
|
if (t in X && e in X[t])
|
|
@@ -4012,11 +4018,11 @@ const ye = Le({});
|
|
|
4012
4018
|
function ao(e) {
|
|
4013
4019
|
return gt[e] || null;
|
|
4014
4020
|
}
|
|
4015
|
-
function
|
|
4021
|
+
function $r(e) {
|
|
4016
4022
|
return e in gt;
|
|
4017
4023
|
}
|
|
4018
4024
|
function so(e, t) {
|
|
4019
|
-
if (
|
|
4025
|
+
if (!$r(e))
|
|
4020
4026
|
return null;
|
|
4021
4027
|
const r = ao(e);
|
|
4022
4028
|
return io(r, t);
|
|
@@ -4027,11 +4033,11 @@ function lo(e) {
|
|
|
4027
4033
|
const t = Fe(e);
|
|
4028
4034
|
for (let r = 0; r < t.length; r++) {
|
|
4029
4035
|
const n = t[r];
|
|
4030
|
-
if (
|
|
4036
|
+
if ($r(n))
|
|
4031
4037
|
return n;
|
|
4032
4038
|
}
|
|
4033
4039
|
}
|
|
4034
|
-
function
|
|
4040
|
+
function kr(e, ...t) {
|
|
4035
4041
|
delete X[e], ye.update((r) => (r[e] = di.all([r[e] || {}, ...t]), r));
|
|
4036
4042
|
}
|
|
4037
4043
|
le(
|
|
@@ -4043,12 +4049,12 @@ const Be = {};
|
|
|
4043
4049
|
function uo(e, t) {
|
|
4044
4050
|
Be[e].delete(t), Be[e].size === 0 && delete Be[e];
|
|
4045
4051
|
}
|
|
4046
|
-
function
|
|
4052
|
+
function jr(e) {
|
|
4047
4053
|
return Be[e];
|
|
4048
4054
|
}
|
|
4049
4055
|
function ho(e) {
|
|
4050
4056
|
return Fe(e).map((t) => {
|
|
4051
|
-
const r =
|
|
4057
|
+
const r = jr(t);
|
|
4052
4058
|
return [t, r ? [...r] : []];
|
|
4053
4059
|
}).filter(([, t]) => t.length > 0);
|
|
4054
4060
|
}
|
|
@@ -4056,17 +4062,17 @@ function ht(e) {
|
|
|
4056
4062
|
return e == null ? !1 : Fe(e).some(
|
|
4057
4063
|
(t) => {
|
|
4058
4064
|
var r;
|
|
4059
|
-
return (r =
|
|
4065
|
+
return (r = jr(t)) == null ? void 0 : r.size;
|
|
4060
4066
|
}
|
|
4061
4067
|
);
|
|
4062
4068
|
}
|
|
4063
4069
|
function co(e, t) {
|
|
4064
4070
|
return Promise.all(
|
|
4065
4071
|
t.map((n) => (uo(e, n), n().then((i) => i.default || i)))
|
|
4066
|
-
).then((n) =>
|
|
4072
|
+
).then((n) => kr(e, ...n));
|
|
4067
4073
|
}
|
|
4068
4074
|
const fe = {};
|
|
4069
|
-
function
|
|
4075
|
+
function Wr(e) {
|
|
4070
4076
|
if (!ht(e))
|
|
4071
4077
|
return e in fe ? fe[e] : Promise.resolve();
|
|
4072
4078
|
const t = ho(e);
|
|
@@ -4076,7 +4082,7 @@ function Vr(e) {
|
|
|
4076
4082
|
)
|
|
4077
4083
|
).then(() => {
|
|
4078
4084
|
if (ht(e))
|
|
4079
|
-
return
|
|
4085
|
+
return Wr(e);
|
|
4080
4086
|
delete fe[e];
|
|
4081
4087
|
}), fe[e];
|
|
4082
4088
|
}
|
|
@@ -4109,16 +4115,16 @@ const fo = {
|
|
|
4109
4115
|
timeZoneName: "short"
|
|
4110
4116
|
}
|
|
4111
4117
|
}
|
|
4112
|
-
},
|
|
4118
|
+
}, po = {
|
|
4113
4119
|
fallbackLocale: null,
|
|
4114
4120
|
loadingDelay: 200,
|
|
4115
4121
|
formats: fo,
|
|
4116
4122
|
warnOnMissingMessages: !0,
|
|
4117
4123
|
handleMissingMessage: void 0,
|
|
4118
4124
|
ignoreTag: !0
|
|
4119
|
-
},
|
|
4125
|
+
}, mo = po;
|
|
4120
4126
|
function ae() {
|
|
4121
|
-
return
|
|
4127
|
+
return mo;
|
|
4122
4128
|
}
|
|
4123
4129
|
const Qe = Le(!1);
|
|
4124
4130
|
var go = Object.defineProperty, vo = Object.defineProperties, bo = Object.getOwnPropertyDescriptors, Vt = Object.getOwnPropertySymbols, yo = Object.prototype.hasOwnProperty, _o = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xo = (e, t) => {
|
|
@@ -4128,9 +4134,9 @@ var go = Object.defineProperty, vo = Object.defineProperties, bo = Object.getOwn
|
|
|
4128
4134
|
for (var r of Vt(t))
|
|
4129
4135
|
_o.call(t, r) && Xt(e, r, t[r]);
|
|
4130
4136
|
return e;
|
|
4131
|
-
},
|
|
4137
|
+
}, wo = (e, t) => vo(e, bo(t));
|
|
4132
4138
|
let ct;
|
|
4133
|
-
const
|
|
4139
|
+
const He = Le(null);
|
|
4134
4140
|
function zt(e) {
|
|
4135
4141
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4136
4142
|
}
|
|
@@ -4141,25 +4147,25 @@ function Fe(e, t = ae().fallbackLocale) {
|
|
|
4141
4147
|
function Q() {
|
|
4142
4148
|
return ct != null ? ct : void 0;
|
|
4143
4149
|
}
|
|
4144
|
-
|
|
4150
|
+
He.subscribe((e) => {
|
|
4145
4151
|
ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4146
4152
|
});
|
|
4147
|
-
const
|
|
4153
|
+
const Eo = (e) => {
|
|
4148
4154
|
if (e && lo(e) && ht(e)) {
|
|
4149
4155
|
const { loadingDelay: t } = ae();
|
|
4150
4156
|
let r;
|
|
4151
4157
|
return typeof window != "undefined" && Q() != null && t ? r = window.setTimeout(
|
|
4152
4158
|
() => Qe.set(!0),
|
|
4153
4159
|
t
|
|
4154
|
-
) : Qe.set(!0),
|
|
4155
|
-
|
|
4160
|
+
) : Qe.set(!0), Wr(e).then(() => {
|
|
4161
|
+
He.set(e);
|
|
4156
4162
|
}).finally(() => {
|
|
4157
4163
|
clearTimeout(r), Qe.set(!1);
|
|
4158
4164
|
});
|
|
4159
4165
|
}
|
|
4160
|
-
return
|
|
4161
|
-
}, ue =
|
|
4162
|
-
set:
|
|
4166
|
+
return He.set(e);
|
|
4167
|
+
}, ue = wo(xo({}, He), {
|
|
4168
|
+
set: Eo
|
|
4163
4169
|
}), Re = (e) => {
|
|
4164
4170
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4165
4171
|
return (n) => {
|
|
@@ -4167,20 +4173,20 @@ const wo = (e) => {
|
|
|
4167
4173
|
return i in t ? t[i] : t[i] = e(n);
|
|
4168
4174
|
};
|
|
4169
4175
|
};
|
|
4170
|
-
var No = Object.defineProperty,
|
|
4176
|
+
var No = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vt = (e, t) => {
|
|
4171
4177
|
for (var r in t || (t = {}))
|
|
4172
|
-
|
|
4173
|
-
if (
|
|
4174
|
-
for (var r of
|
|
4175
|
-
|
|
4178
|
+
Vr.call(t, r) && Zt(e, r, t[r]);
|
|
4179
|
+
if (Pe)
|
|
4180
|
+
for (var r of Pe(t))
|
|
4181
|
+
Xr.call(t, r) && Zt(e, r, t[r]);
|
|
4176
4182
|
return e;
|
|
4177
4183
|
}, he = (e, t) => {
|
|
4178
4184
|
var r = {};
|
|
4179
4185
|
for (var n in e)
|
|
4180
|
-
|
|
4181
|
-
if (e != null &&
|
|
4182
|
-
for (var n of
|
|
4183
|
-
t.indexOf(n) < 0 &&
|
|
4186
|
+
Vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4187
|
+
if (e != null && Pe)
|
|
4188
|
+
for (var n of Pe(e))
|
|
4189
|
+
t.indexOf(n) < 0 && Xr.call(e, n) && (r[n] = e[n]);
|
|
4184
4190
|
return r;
|
|
4185
4191
|
};
|
|
4186
4192
|
const ve = (e, t) => {
|
|
@@ -4225,14 +4231,14 @@ const ve = (e, t) => {
|
|
|
4225
4231
|
"locale"
|
|
4226
4232
|
]);
|
|
4227
4233
|
return Io(vt({ locale: r }, n));
|
|
4228
|
-
},
|
|
4234
|
+
}, Ho = (e = {}) => {
|
|
4229
4235
|
var t = e, {
|
|
4230
4236
|
locale: r = Q()
|
|
4231
4237
|
} = t, n = he(t, [
|
|
4232
4238
|
"locale"
|
|
4233
4239
|
]);
|
|
4234
4240
|
return Ao(vt({ locale: r }, n));
|
|
4235
|
-
},
|
|
4241
|
+
}, Po = Re(
|
|
4236
4242
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4237
4243
|
(e, t = Q()) => new no(e, t, ae().formats, {
|
|
4238
4244
|
ignoreTag: ae().ignoreTag
|
|
@@ -4250,7 +4256,7 @@ const ve = (e, t) => {
|
|
|
4250
4256
|
throw new Error(
|
|
4251
4257
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4252
4258
|
);
|
|
4253
|
-
let h =
|
|
4259
|
+
let h = Gr(e, l);
|
|
4254
4260
|
if (!h)
|
|
4255
4261
|
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4256
4262
|
else if (typeof h != "string")
|
|
@@ -4261,7 +4267,7 @@ const ve = (e, t) => {
|
|
|
4261
4267
|
return h;
|
|
4262
4268
|
let d = h;
|
|
4263
4269
|
try {
|
|
4264
|
-
d =
|
|
4270
|
+
d = Po(h, l).format(s);
|
|
4265
4271
|
} catch (f) {
|
|
4266
4272
|
f instanceof Error && console.warn(
|
|
4267
4273
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4269,20 +4275,20 @@ const ve = (e, t) => {
|
|
|
4269
4275
|
);
|
|
4270
4276
|
}
|
|
4271
4277
|
return d;
|
|
4272
|
-
}, Oo = (e, t) =>
|
|
4278
|
+
}, Oo = (e, t) => Ho(t).format(e), Lo = (e, t) => To(t).format(e), Co = (e, t) => Bo(t).format(e), Fo = (e, t = Q()) => Gr(e, t), Ro = le([ue, ye], () => Mo);
|
|
4273
4279
|
le([ue], () => Oo);
|
|
4274
4280
|
le([ue], () => Lo);
|
|
4275
4281
|
le([ue], () => Co);
|
|
4276
4282
|
le([ue, ye], () => Fo);
|
|
4277
|
-
window.emWidgets = { topic:
|
|
4283
|
+
window.emWidgets = { topic: Yn };
|
|
4278
4284
|
const Qt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4279
|
-
function
|
|
4280
|
-
|
|
4285
|
+
function Yt(e, t) {
|
|
4286
|
+
kr(e, t);
|
|
4281
4287
|
}
|
|
4282
4288
|
function Uo(e) {
|
|
4283
4289
|
ue.set(e);
|
|
4284
4290
|
}
|
|
4285
|
-
const
|
|
4291
|
+
const Jt = {
|
|
4286
4292
|
en: {
|
|
4287
4293
|
secondaryMenuTitle: "Categories"
|
|
4288
4294
|
},
|
|
@@ -4315,7 +4321,7 @@ const Yt = {
|
|
|
4315
4321
|
}
|
|
4316
4322
|
};
|
|
4317
4323
|
function Do(e) {
|
|
4318
|
-
|
|
4324
|
+
vn(e, "svelte-4cf7h3", '.NavigationWrapper{background:var(--emw--color-gray-50, #F9F8F8);width:100%;height:100px}.NavigationPanel{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:450px;height:70px;z-index:30}.NavigationWindow{display:flex;flex-direction:column;background:var(--emw--color-white, #FFFFFF);position:absolute;bottom:30px;left:0;opacity:0;transform:translateY(100%);border-radius:5px 5px 0 0;transition:0.25s ease;width:100%;max-height:40vh}.NavigationWindow.NavigationWindowOpened{opacity:1;padding-bottom:60px;transform:translateY(5px)}.NavigationWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:100%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.NavigationWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.NavigationWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.NavigationWindow .NavigationWindowTitle{padding:16px 10px;margin:0;color:var(--emw--color-black, #000000);font-size:12px;flex-grow:0}.NavigationWindow .NavigationSecondaryWrapper{display:flex;flex-wrap:wrap;padding:0 10px;flex-grow:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.NavigationPrimaryItemAnchor.NavItem0{grid-area:item0}.NavigationPrimaryItemAnchor.NavItem1{grid-area:item1}.NavigationPrimaryItemAnchor.NavItem2{grid-area:item2}.NavigationPrimaryItemAnchor.NavItem3{grid-area:item3}.NavigationPrimaryItemAnchor.NavItem4{grid-area:item4}.NavigationBar{background:var(--emw--color-white, #FFFFFF);display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr 20% 1fr 1fr;grid-template-areas:"item0 item1 . item2 item3";height:70px;border-radius:5px;position:relative}.NavigationBar.NavigationBarSimple{grid-template-columns:repeat(5, 20%);grid-template-areas:"item0 item1 item2 item3 item4"}.NavigationBar.NavigationBarOpened{box-shadow:0 0 11px rgba(0, 0, 0, 0.09)}.NavigationPrimaryItemAnchor,.NavigationSecondaryItemAnchor{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;color:var(--emw--color-black, #000000);font-size:9px;overflow:hidden;white-space:nowrap;padding-bottom:12px}.NavigationPrimaryItemAnchor .NavigationPrimaryItemImg,.NavigationPrimaryItemAnchor .NavigationSecondaryItemImg,.NavigationSecondaryItemAnchor .NavigationPrimaryItemImg,.NavigationSecondaryItemAnchor .NavigationSecondaryItemImg{width:20px}.NavigationPrimaryItemAnchor .NavigationPrimaryItemLabel,.NavigationPrimaryItemAnchor .NavigationSecondaryItemLabel,.NavigationSecondaryItemAnchor .NavigationPrimaryItemLabel,.NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;text-align:center}.NavigationSecondaryItemAnchor{width:25%;padding:10px 0}.ActiveItem{background-color:var(--emw--color-primary-50, var(--emw--color-pink-20, #FBECF4))}.NavigationButton{background:var(--emw--color-white, #FFFFFF);border:none;width:20%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);padding:0;padding-bottom:12px}.NavigationButton .middleIcon{width:32px;height:32px}.NavigationButton .middleIcon .a{fill:var(--emw--color-white, #FFFFFF);stroke:var(--emw--color-primary, #D0046C);stroke-linecap:round;stroke-linejoin:round}.NavigationButton .middleIcon .b{stroke:none}.NavigationButton .middleIcon .c{fill:none}.NavigationButton:before{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid var(--emw--color-gray-50, #F9F8F8);content:"";height:0;left:50%;opacity:0;position:absolute;top:0;transform:translateX(-50%);width:0}.NavigationButton.NavigationButtonActive:before{opacity:1;transition:0.7s ease}.FlowerMenu.NavigationWrapper{background:var(--emw--color-gray-50, #F9F8F8);width:100%}.FlowerMenu .NavigationPanel{position:fixed;display:flex;flex-direction:column;bottom:0;width:100%;z-index:30}.FlowerMenu .NavigationWindow{display:flex;flex-direction:column;backdrop-filter:blur(2px);background:linear-gradient(0deg, var(--emw--color-black, #000000) 0%, transparent 100%);opacity:0;transition:0.25s ease;width:100%;max-height:0vh}.FlowerMenu .NavigationWindow.NavigationWindowOpened{opacity:1;max-height:200px}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(1){transform:translate3d(-210%, 50%, 0);transition:transform 0.1s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(2){transform:translate3d(-150%, -50%, 0);transition:transform 0.1s 0.1s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(3){transform:translate3d(-50%, -100%, 0);transition:transform 0.1s 0.2s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(4){transform:translate3d(50%, -50%, 0);transition:transform 0.1s 0.3s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(5){transform:translate3d(110%, 50%, 0);transition:transform 0.1s 0.4s}.FlowerMenu .NavigationWindow .ModalCloseBtn,.FlowerMenu .NavigationWindow .NavigationWindowTitle{display:none}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper{position:relative;width:100%;height:170px;list-style:none}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor{display:flex;width:60px;position:absolute;top:50%;left:50%;padding:0px;flex-direction:column;transform:translate(-50%, 150%)}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{width:100%;height:20px;text-wrap:pretty;line-height:10px;color:var(--emw--color-white, #FFFFFF)}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem0{grid-area:item0}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem1{grid-area:item1}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem2{grid-area:item2}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem3{grid-area:item3}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem4{grid-area:item4}.FlowerMenu .NavigationBar{background:var(--emw--color-white, #FFFFFF);display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr 20% 1fr 1fr;grid-template-areas:"item0 item1 . item2 item3";border-radius:5px;position:relative}.FlowerMenu .NavigationBar.NavigationBarSimple{grid-template-columns:repeat(5, 20%);grid-template-areas:"item0 item1 item2 item3 item4"}.FlowerMenu .NavigationBar.NavigationBarOpened{box-shadow:0 0 11px rgba(0, 0, 0, 0.09)}.FlowerMenu .NavigationPrimaryItemAnchor,.FlowerMenu .NavigationSecondaryItemAnchor{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:var(--emw--color-black, #000000);font-size:9px;overflow:hidden;white-space:nowrap;padding:10px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationPrimaryItemImg,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationPrimaryItemImg{width:20px;height:20px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemImgWrapper,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemImgWrapper{display:flex;justify-content:center;align-items:center;padding:5px;border-radius:100%;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemImgWrapper .NavigationSecondaryItemImg,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemImgWrapper .NavigationSecondaryItemImg{width:25px;height:25px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationPrimaryItemLabel,.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemLabel,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationPrimaryItemLabel,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.FlowerMenu .NavigationButton{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:none;position:absolute;border-radius:100%;top:20%;left:50%;transform:translate(-50%, -50%);padding:10px}.FlowerMenu .NavigationButton .NavigationButtonSpan{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.FlowerMenu .NavigationButton .labelMiddleIcon{cursor:pointer;display:grid;align-items:center;justify-content:center;width:20px;height:20px;padding:4px;overflow:hidden}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine{background:var(--emw--color-white, #FFFFFF);content:"";height:2px;width:20px;grid-row-start:1;grid-column-start:1;transition:transform ease 0.2s, margin-top ease 0.2s 0.2s, width ease 0.2s 0.4s}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(1){margin-top:10px}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(2){margin:auto}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(3){margin-top:-10px}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(1){margin-top:0px;transform:rotate(-45deg);transition:margin-top ease 0.2s 0.2s, transform ease 0.2s 0.4s}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(2){width:0px;transition:width ease 0.2s}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(3){margin-top:0px;transform:rotate(45deg);transition:margin-top ease 0.2s 0.2s, transform ease 0.2s 0.4s}');
|
|
4319
4325
|
}
|
|
4320
4326
|
function qt(e, t, r) {
|
|
4321
4327
|
const n = e.slice();
|
|
@@ -4347,18 +4353,18 @@ function tr(e) {
|
|
|
4347
4353
|
(e[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4348
4354
|
(e[6] ? "NavigationBarSimple" : "")), c(t, "class", "NavigationPanel");
|
|
4349
4355
|
},
|
|
4350
|
-
m(f,
|
|
4351
|
-
L(f, t,
|
|
4356
|
+
m(f, m) {
|
|
4357
|
+
L(f, t, m), l && l.m(t, null), y(t, r), y(t, n);
|
|
4352
4358
|
for (let g = 0; g < h.length; g += 1)
|
|
4353
4359
|
h[g] && h[g].m(n, null);
|
|
4354
4360
|
y(n, i), d && d.m(n, null), s = !0;
|
|
4355
4361
|
},
|
|
4356
|
-
p(f,
|
|
4362
|
+
p(f, m) {
|
|
4357
4363
|
if (/*navigationBarSimple*/
|
|
4358
|
-
f[6] ? l && (dr(),
|
|
4364
|
+
f[6] ? l && (dr(), me(l, 1, 1, () => {
|
|
4359
4365
|
l = null;
|
|
4360
|
-
}),
|
|
4361
|
-
64 && z(l, 1)) : (l = rr(f), l.c(), z(l, 1), l.m(t, r)),
|
|
4366
|
+
}), pr()) : l ? (l.p(f, m), m[0] & /*navigationBarSimple*/
|
|
4367
|
+
64 && z(l, 1)) : (l = rr(f), l.c(), z(l, 1), l.m(t, r)), m[0] & /*activeMenuItemId, primaryMenuSpliced, triggerNavigation*/
|
|
4362
4368
|
32928) {
|
|
4363
4369
|
u = Te(
|
|
4364
4370
|
/*primaryMenuSpliced*/
|
|
@@ -4367,17 +4373,17 @@ function tr(e) {
|
|
|
4367
4373
|
let g;
|
|
4368
4374
|
for (g = 0; g < u.length; g += 1) {
|
|
4369
4375
|
const v = qt(f, u, g);
|
|
4370
|
-
h[g] ? h[g].p(v,
|
|
4376
|
+
h[g] ? h[g].p(v, m) : (h[g] = ar(v), h[g].c(), h[g].m(n, i));
|
|
4371
4377
|
}
|
|
4372
4378
|
for (; g < h.length; g += 1)
|
|
4373
4379
|
h[g].d(1);
|
|
4374
4380
|
h.length = u.length;
|
|
4375
4381
|
}
|
|
4376
4382
|
/*navigationBarSimple*/
|
|
4377
|
-
f[6] ? d && (d.d(1), d = null) : d ? d.p(f,
|
|
4383
|
+
f[6] ? d && (d.d(1), d = null) : d ? d.p(f, m) : (d = sr(f), d.c(), d.m(n, null)), (!s || m[0] & /*navigationWindowOpened, navigationBarSimple*/
|
|
4378
4384
|
80 && o !== (o = "NavigationBar " + /*navigationWindowOpened*/
|
|
4379
4385
|
(f[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4380
|
-
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "class", o), (!s ||
|
|
4386
|
+
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "class", o), (!s || m[0] & /*navigationWindowOpened, navigationBarSimple*/
|
|
4381
4387
|
80 && a !== (a = "NavigationBar " + /*navigationWindowOpened*/
|
|
4382
4388
|
(f[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4383
4389
|
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "part", a);
|
|
@@ -4386,7 +4392,7 @@ function tr(e) {
|
|
|
4386
4392
|
s || (z(l), s = !0);
|
|
4387
4393
|
},
|
|
4388
4394
|
o(f) {
|
|
4389
|
-
|
|
4395
|
+
me(l), s = !1;
|
|
4390
4396
|
},
|
|
4391
4397
|
d(f) {
|
|
4392
4398
|
f && O(t), l && l.d(), fr(h, f), d && d.d();
|
|
@@ -4399,22 +4405,22 @@ function rr(e) {
|
|
|
4399
4405
|
(e[0] || /*$_*/
|
|
4400
4406
|
e[12]("secondaryMenuTitle")) + ""
|
|
4401
4407
|
), a, s, l, u, h, d, f;
|
|
4402
|
-
const
|
|
4408
|
+
const m = (
|
|
4403
4409
|
/*#slots*/
|
|
4404
4410
|
e[26].close
|
|
4405
|
-
), g =
|
|
4406
|
-
|
|
4411
|
+
), g = dn(
|
|
4412
|
+
m,
|
|
4407
4413
|
e,
|
|
4408
4414
|
/*$$scope*/
|
|
4409
4415
|
e[25],
|
|
4410
4416
|
er
|
|
4411
4417
|
), v = g || $o();
|
|
4412
|
-
let
|
|
4418
|
+
let H = Te(
|
|
4413
4419
|
/*secondaryMenu*/
|
|
4414
4420
|
e[8]
|
|
4415
4421
|
), N = [];
|
|
4416
|
-
for (let b = 0; b <
|
|
4417
|
-
N[b] = ir(Kt(e,
|
|
4422
|
+
for (let b = 0; b < H.length; b += 1)
|
|
4423
|
+
N[b] = ir(Kt(e, H, b));
|
|
4418
4424
|
return {
|
|
4419
4425
|
c() {
|
|
4420
4426
|
t = A("div"), r = A("span"), v && v.c(), n = $(), i = A("h3"), a = be(o), s = $(), l = A("div");
|
|
@@ -4436,19 +4442,19 @@ function rr(e) {
|
|
|
4436
4442
|
},
|
|
4437
4443
|
p(b, T) {
|
|
4438
4444
|
if (g && g.p && (!h || T[0] & /*$$scope*/
|
|
4439
|
-
33554432) &&
|
|
4445
|
+
33554432) && mn(
|
|
4440
4446
|
g,
|
|
4441
|
-
|
|
4447
|
+
m,
|
|
4442
4448
|
b,
|
|
4443
4449
|
/*$$scope*/
|
|
4444
4450
|
b[25],
|
|
4445
4451
|
h ? pn(
|
|
4446
|
-
|
|
4452
|
+
m,
|
|
4447
4453
|
/*$$scope*/
|
|
4448
4454
|
b[25],
|
|
4449
4455
|
T,
|
|
4450
4456
|
Go
|
|
4451
|
-
) :
|
|
4457
|
+
) : gn(
|
|
4452
4458
|
/*$$scope*/
|
|
4453
4459
|
b[25]
|
|
4454
4460
|
),
|
|
@@ -4458,18 +4464,18 @@ function rr(e) {
|
|
|
4458
4464
|
(b[0] || /*$_*/
|
|
4459
4465
|
b[12]("secondaryMenuTitle")) + "") && dt(a, o), T[0] & /*activeMenuItemId, secondaryMenu, triggerNavigation*/
|
|
4460
4466
|
33056) {
|
|
4461
|
-
|
|
4467
|
+
H = Te(
|
|
4462
4468
|
/*secondaryMenu*/
|
|
4463
4469
|
b[8]
|
|
4464
4470
|
);
|
|
4465
4471
|
let x;
|
|
4466
|
-
for (x = 0; x <
|
|
4467
|
-
const C = Kt(b,
|
|
4472
|
+
for (x = 0; x < H.length; x += 1) {
|
|
4473
|
+
const C = Kt(b, H, x);
|
|
4468
4474
|
N[x] ? N[x].p(C, T) : (N[x] = ir(C), N[x].c(), N[x].m(l, null));
|
|
4469
4475
|
}
|
|
4470
4476
|
for (; x < N.length; x += 1)
|
|
4471
4477
|
N[x].d(1);
|
|
4472
|
-
N.length =
|
|
4478
|
+
N.length = H.length;
|
|
4473
4479
|
}
|
|
4474
4480
|
(!h || T[0] & /*navigationWindowOpened*/
|
|
4475
4481
|
16 && u !== (u = "NavigationWindow " + /*navigationWindowOpened*/
|
|
@@ -4479,7 +4485,7 @@ function rr(e) {
|
|
|
4479
4485
|
h || (z(v, b), h = !0);
|
|
4480
4486
|
},
|
|
4481
4487
|
o(b) {
|
|
4482
|
-
|
|
4488
|
+
me(v, b), h = !1;
|
|
4483
4489
|
},
|
|
4484
4490
|
d(b) {
|
|
4485
4491
|
b && O(t), v && v.d(b), fr(N, b), d = !1, f();
|
|
@@ -4490,7 +4496,7 @@ function $o(e) {
|
|
|
4490
4496
|
let t, r;
|
|
4491
4497
|
return {
|
|
4492
4498
|
c() {
|
|
4493
|
-
t =
|
|
4499
|
+
t = P("svg"), r = P("path"), c(r, "part", "ModalCloseBtnPath"), c(r, "stroke-linecap", "round"), c(r, "stroke-linejoin", "round"), c(r, "stroke-width", "2"), c(r, "d", "M6 18L18 6M6 6l12 12"), c(t, "class", "w-6 h-6"), c(t, "part", "w-6 h-6"), c(t, "fill", "none"), c(t, "stroke", "currentColor"), c(t, "viewBox", "0 0 24 24"), c(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4494
4500
|
},
|
|
4495
4501
|
m(n, i) {
|
|
4496
4502
|
L(n, t, i), y(t, r);
|
|
@@ -4547,14 +4553,14 @@ function ir(e) {
|
|
|
4547
4553
|
(e[5] === /*item*/
|
|
4548
4554
|
e[44].id ? "ActiveItem" : ""));
|
|
4549
4555
|
},
|
|
4550
|
-
m(f,
|
|
4551
|
-
L(f, t,
|
|
4556
|
+
m(f, m) {
|
|
4557
|
+
L(f, t, m), h && h.m(t, null), y(t, r), y(t, n), y(n, o), y(t, a), l || (u = Me(t, "click", d), l = !0);
|
|
4552
4558
|
},
|
|
4553
|
-
p(f,
|
|
4559
|
+
p(f, m) {
|
|
4554
4560
|
e = f, /*item*/
|
|
4555
|
-
e[44].img ? h ? h.p(e,
|
|
4561
|
+
e[44].img ? h ? h.p(e, m) : (h = nr(e), h.c(), h.m(t, r)) : h && (h.d(1), h = null), m[0] & /*secondaryMenu*/
|
|
4556
4562
|
256 && i !== (i = /*item*/
|
|
4557
|
-
e[44].label + "") && dt(o, i),
|
|
4563
|
+
e[44].label + "") && dt(o, i), m[0] & /*activeMenuItemId, secondaryMenu*/
|
|
4558
4564
|
288 && s !== (s = "NavigationSecondaryItemAnchor " + /*activeMenuItemId*/
|
|
4559
4565
|
(e[5] === /*item*/
|
|
4560
4566
|
e[44].id ? "ActiveItem" : "")) && c(t, "class", s);
|
|
@@ -4692,7 +4698,7 @@ function jo(e) {
|
|
|
4692
4698
|
let n = r(e), i = n(e);
|
|
4693
4699
|
return {
|
|
4694
4700
|
c() {
|
|
4695
|
-
i.c(), t =
|
|
4701
|
+
i.c(), t = _n();
|
|
4696
4702
|
},
|
|
4697
4703
|
m(o, a) {
|
|
4698
4704
|
i.m(o, a), L(o, t, a);
|
|
@@ -4706,13 +4712,13 @@ function jo(e) {
|
|
|
4706
4712
|
};
|
|
4707
4713
|
}
|
|
4708
4714
|
function Wo(e) {
|
|
4709
|
-
let t, r, n, i, o, a, s, l, u, h, d, f,
|
|
4715
|
+
let t, r, n, i, o, a, s, l, u, h, d, f, m, g;
|
|
4710
4716
|
return {
|
|
4711
4717
|
c() {
|
|
4712
|
-
t =
|
|
4718
|
+
t = P("svg"), r = P("g"), n = P("g"), i = P("rect"), o = P("rect"), a = P("g"), s = P("rect"), l = P("rect"), u = P("g"), h = P("rect"), d = P("rect"), f = P("g"), m = P("rect"), g = P("rect"), c(i, "class", "b"), c(i, "part", "b"), c(i, "width", "10"), c(i, "height", "10"), c(i, "rx", "2"), c(o, "class", "c"), c(o, "part", "c"), c(o, "x", "0.5"), c(o, "y", "0.5"), c(o, "width", "9"), c(o, "height", "9"), c(o, "rx", "1.5"), c(n, "class", "a"), c(n, "part", "a"), c(n, "transform", "translate(150 514)"), c(s, "class", "b"), c(s, "part", "b"), c(s, "width", "10"), c(s, "height", "10"), c(s, "rx", "2"), c(l, "class", "c"), c(l, "part", "c"), c(l, "x", "0.5"), c(l, "y", "0.5"), c(l, "width", "9"), c(l, "height", "9"), c(l, "rx", "1.5"), c(a, "class", "a"), c(a, "part", "a"), c(a, "transform", "translate(161 514)"), c(h, "class", "b"), c(h, "part", "b"), c(h, "width", "10"), c(h, "height", "10"), c(h, "rx", "2"), c(d, "class", "c"), c(d, "part", "c"), c(d, "x", "0.5"), c(d, "y", "0.5"), c(d, "width", "9"), c(d, "height", "9"), c(d, "rx", "1.5"), c(u, "class", "a"), c(u, "part", "a"), c(u, "transform", "translate(161 525)"), c(m, "class", "b"), c(m, "part", "b"), c(m, "width", "10"), c(m, "height", "10"), c(m, "rx", "2"), c(g, "class", "c"), c(g, "part", "c"), c(g, "x", "0.5"), c(g, "y", "0.5"), c(g, "width", "9"), c(g, "height", "9"), c(g, "rx", "1.5"), c(f, "class", "a"), c(f, "part", "a"), c(f, "transform", "translate(150 525)"), c(r, "transform", "translate(-150 -514)"), c(t, "class", "middleIcon"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(t, "width", "21"), c(t, "height", "21"), c(t, "viewBox", "0 0 21 21");
|
|
4713
4719
|
},
|
|
4714
|
-
m(v,
|
|
4715
|
-
L(v, t,
|
|
4720
|
+
m(v, H) {
|
|
4721
|
+
L(v, t, H), y(t, r), y(r, n), y(n, i), y(n, o), y(r, a), y(a, s), y(a, l), y(r, u), y(u, h), y(u, d), y(r, f), y(f, m), y(f, g);
|
|
4716
4722
|
},
|
|
4717
4723
|
p: D,
|
|
4718
4724
|
d(v) {
|
|
@@ -4770,9 +4776,9 @@ function Xo(e) {
|
|
|
4770
4776
|
o[1] && /*isMobile*/
|
|
4771
4777
|
o[13] && /*showNavigation*/
|
|
4772
4778
|
o[3] ? i ? (i.p(o, a), a[0] & /*isLoading, showNavigation*/
|
|
4773
|
-
10 && z(i, 1)) : (i = tr(o), i.c(), z(i, 1), i.m(t, null)) : i && (dr(),
|
|
4779
|
+
10 && z(i, 1)) : (i = tr(o), i.c(), z(i, 1), i.m(t, null)) : i && (dr(), me(i, 1, 1, () => {
|
|
4774
4780
|
i = null;
|
|
4775
|
-
}),
|
|
4781
|
+
}), pr()), (!n || a[0] & /*isFlowerMenu, mobileLandscapeView*/
|
|
4776
4782
|
3072 && r !== (r = /*isFlowerMenu*/
|
|
4777
4783
|
(o[11] ? "FlowerMenu" : "") + " NavigationWrapper " + /*mobileLandscapeView*/
|
|
4778
4784
|
(o[10] ? "NavigationWrapperLandScape" : ""))) && c(t, "class", r);
|
|
@@ -4781,7 +4787,7 @@ function Xo(e) {
|
|
|
4781
4787
|
n || (z(i), n = !0);
|
|
4782
4788
|
},
|
|
4783
4789
|
o(o) {
|
|
4784
|
-
|
|
4790
|
+
me(i), n = !1;
|
|
4785
4791
|
},
|
|
4786
4792
|
d(o) {
|
|
4787
4793
|
o && O(t), i && i.d(), e[29](null);
|
|
@@ -4790,23 +4796,23 @@ function Xo(e) {
|
|
|
4790
4796
|
}
|
|
4791
4797
|
function zo(e, t, r) {
|
|
4792
4798
|
let n;
|
|
4793
|
-
|
|
4794
|
-
let { $$slots: i = {}, $$scope: o } = t, { cmsendpoint: a = "" } = t, { lang: s = "" } = t, { env: l = "" } = t, { secondarymenutitle: u = "" } = t, { userroles: h = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: f = "" } = t, { translationurl:
|
|
4795
|
-
const
|
|
4796
|
-
fetch(
|
|
4799
|
+
fn(e, Ro, (p) => r(12, n = p));
|
|
4800
|
+
let { $$slots: i = {}, $$scope: o } = t, { cmsendpoint: a = "" } = t, { lang: s = "" } = t, { env: l = "" } = t, { secondarymenutitle: u = "" } = t, { userroles: h = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { activecategory: g = "" } = t, { flowermenustyle: v = "false" } = t, H = window.navigator.userAgent, N = Qt(H) !== "PC", b = !0, T = !1, x = !1, C = "", j = !1, Y = [], _e = [], W = [], V, bt = "", Ue = {}, yt, De = !1;
|
|
4801
|
+
const zr = () => {
|
|
4802
|
+
fetch(m).then((S) => S.json()).then((S) => {
|
|
4797
4803
|
Object.keys(S).forEach((B) => {
|
|
4798
|
-
|
|
4804
|
+
Yt(B, S[B]);
|
|
4799
4805
|
});
|
|
4800
4806
|
}).catch((S) => {
|
|
4801
4807
|
console.log(S);
|
|
4802
4808
|
});
|
|
4803
4809
|
};
|
|
4804
|
-
Object.keys(
|
|
4805
|
-
|
|
4810
|
+
Object.keys(Jt).forEach((p) => {
|
|
4811
|
+
Yt(p, Jt[p]);
|
|
4806
4812
|
});
|
|
4807
|
-
const _t = (
|
|
4808
|
-
if (
|
|
4809
|
-
switch (
|
|
4813
|
+
const _t = (p) => {
|
|
4814
|
+
if (p.data)
|
|
4815
|
+
switch (p.data.type) {
|
|
4810
4816
|
case "PlayerAccountMenuActive":
|
|
4811
4817
|
r(4, x = !1);
|
|
4812
4818
|
break;
|
|
@@ -4817,9 +4823,9 @@ function zo(e, t, r) {
|
|
|
4817
4823
|
r(4, x = !1);
|
|
4818
4824
|
break;
|
|
4819
4825
|
}
|
|
4820
|
-
},
|
|
4826
|
+
}, Zr = () => {
|
|
4821
4827
|
r(11, De = v.toLowerCase() === "true");
|
|
4822
|
-
},
|
|
4828
|
+
}, Qr = () => {
|
|
4823
4829
|
r(4, x = !x), window.postMessage(
|
|
4824
4830
|
{
|
|
4825
4831
|
type: "MobileBottomNav",
|
|
@@ -4827,22 +4833,22 @@ function zo(e, t, r) {
|
|
|
4827
4833
|
},
|
|
4828
4834
|
window.location.href
|
|
4829
4835
|
);
|
|
4830
|
-
}, Yr = (
|
|
4831
|
-
r(7, _e = []), r(7, _e = j ?
|
|
4832
|
-
},
|
|
4836
|
+
}, Yr = (p) => {
|
|
4837
|
+
r(7, _e = []), r(7, _e = j ? p.splice(0, 5) : p.splice(0, 4)), g && xt();
|
|
4838
|
+
}, Jr = () => {
|
|
4833
4839
|
Ge(), r(1, b = !0);
|
|
4834
|
-
let
|
|
4835
|
-
S.searchParams.append("userRoles", h),
|
|
4836
|
-
|
|
4837
|
-
Ue[F.label] = F.eventTrigger ? F.path : null, F.path == "/menu-item" ? (r(9, bt = F == null ? void 0 : F.img), r(8, W = F.children)) :
|
|
4838
|
-
}), r(6, j = W.length == 0), W.length >= 5 && De && r(8, W = W.splice(0, 5)), Yr(
|
|
4840
|
+
let p = Qt(H), S = new URL(`${a}/${s}/bottom-mobile-menu?env=${l}`);
|
|
4841
|
+
S.searchParams.append("userRoles", h), p && S.searchParams.append("device", "mtWeb"), fetch(S.href).then((B) => B.json()).then((B) => {
|
|
4842
|
+
Y = [], r(8, W = []), r(3, T = B.length > 0), B.forEach((F) => {
|
|
4843
|
+
Ue[F.label] = F.eventTrigger ? F.path : null, F.path == "/menu-item" ? (r(9, bt = F == null ? void 0 : F.img), r(8, W = F.children)) : Y.push(F);
|
|
4844
|
+
}), r(6, j = W.length == 0), W.length >= 5 && De && r(8, W = W.splice(0, 5)), Yr(Y), r(1, b = !1);
|
|
4839
4845
|
}).catch((B) => {
|
|
4840
4846
|
r(1, b = !1), console.error(B);
|
|
4841
4847
|
});
|
|
4842
4848
|
}, xt = () => {
|
|
4843
4849
|
const S = _e.concat(W).find((B) => B.path.includes(g));
|
|
4844
4850
|
S && r(5, C = S.id);
|
|
4845
|
-
}, ce = (
|
|
4851
|
+
}, ce = (p, S, B, F) => {
|
|
4846
4852
|
Ue[F] ? window.postMessage(
|
|
4847
4853
|
{
|
|
4848
4854
|
type: "MobileBottomNavigationEvent",
|
|
@@ -4852,21 +4858,21 @@ function zo(e, t, r) {
|
|
|
4852
4858
|
) : window.postMessage(
|
|
4853
4859
|
{
|
|
4854
4860
|
type: "NavigateTo",
|
|
4855
|
-
path:
|
|
4861
|
+
path: p,
|
|
4856
4862
|
target: S || null,
|
|
4857
4863
|
externalLink: B || !1
|
|
4858
4864
|
},
|
|
4859
4865
|
window.location.href
|
|
4860
4866
|
), r(4, x = !1), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4861
4867
|
context: "MobileBottomNavigation",
|
|
4862
|
-
menuItem: `${
|
|
4868
|
+
menuItem: `${p}`
|
|
4863
4869
|
});
|
|
4870
|
+
}, qr = () => {
|
|
4871
|
+
let p = document.createElement("style");
|
|
4872
|
+
d && V && (p.innerHTML = d, V.appendChild(p));
|
|
4864
4873
|
}, Kr = () => {
|
|
4865
|
-
let
|
|
4866
|
-
|
|
4867
|
-
}, en = () => {
|
|
4868
|
-
let m = new URL(f), S = document.createElement("style");
|
|
4869
|
-
fetch(m.href).then((B) => B.text()).then((B) => {
|
|
4874
|
+
let p = new URL(f), S = document.createElement("style");
|
|
4875
|
+
fetch(p.href).then((B) => B.text()).then((B) => {
|
|
4870
4876
|
S.innerHTML = B, setTimeout(
|
|
4871
4877
|
() => {
|
|
4872
4878
|
V.appendChild(S);
|
|
@@ -4874,39 +4880,39 @@ function zo(e, t, r) {
|
|
|
4874
4880
|
1
|
|
4875
4881
|
);
|
|
4876
4882
|
});
|
|
4877
|
-
},
|
|
4883
|
+
}, en = () => {
|
|
4878
4884
|
Uo(s);
|
|
4879
4885
|
}, Ge = () => {
|
|
4880
4886
|
r(10, yt = N && window.innerHeight / window.innerWidth < 1);
|
|
4881
|
-
},
|
|
4887
|
+
}, wt = () => {
|
|
4882
4888
|
x && r(4, x = !1);
|
|
4883
4889
|
};
|
|
4884
|
-
|
|
4885
|
-
window.removeEventListener("message", _t), document.removeEventListener("focusin",
|
|
4890
|
+
Nn(() => (window.addEventListener("message", _t, !1), document.addEventListener("focusin", wt), N && window.screen.orientation.addEventListener("change", Ge), () => {
|
|
4891
|
+
window.removeEventListener("message", _t), document.removeEventListener("focusin", wt), N && window.screen.orientation.removeEventListener("change", Ge);
|
|
4886
4892
|
}));
|
|
4887
|
-
const
|
|
4893
|
+
const tn = (p) => {
|
|
4888
4894
|
var S, B;
|
|
4889
|
-
(S =
|
|
4890
|
-
},
|
|
4895
|
+
(S = p.attrs) != null && S.target ? ce(p.path, (B = p.attrs) == null ? void 0 : B.target, p == null ? void 0 : p.externalLink, p.label) : ce(p.path, null, p == null ? void 0 : p.externalLink, p.label);
|
|
4896
|
+
}, rn = (p) => {
|
|
4891
4897
|
var S, B;
|
|
4892
|
-
(S =
|
|
4898
|
+
(S = p.attrs) != null && S.target ? ce(p.path, (B = p.attrs) == null ? void 0 : B.target, p == null ? void 0 : p.externalLink, p.label) : ce(p.path, null, p == null ? void 0 : p.externalLink, p.label);
|
|
4893
4899
|
};
|
|
4894
|
-
function
|
|
4895
|
-
|
|
4896
|
-
V =
|
|
4900
|
+
function nn(p) {
|
|
4901
|
+
Ye[p ? "unshift" : "push"](() => {
|
|
4902
|
+
V = p, r(2, V);
|
|
4897
4903
|
});
|
|
4898
4904
|
}
|
|
4899
|
-
return e.$$set = (
|
|
4900
|
-
"cmsendpoint" in
|
|
4905
|
+
return e.$$set = (p) => {
|
|
4906
|
+
"cmsendpoint" in p && r(16, a = p.cmsendpoint), "lang" in p && r(17, s = p.lang), "env" in p && r(18, l = p.env), "secondarymenutitle" in p && r(0, u = p.secondarymenutitle), "userroles" in p && r(19, h = p.userroles), "clientstyling" in p && r(20, d = p.clientstyling), "clientstylingurl" in p && r(21, f = p.clientstylingurl), "translationurl" in p && r(22, m = p.translationurl), "activecategory" in p && r(23, g = p.activecategory), "flowermenustyle" in p && r(24, v = p.flowermenustyle), "$$scope" in p && r(25, o = p.$$scope);
|
|
4901
4907
|
}, e.$$.update = () => {
|
|
4902
4908
|
e.$$.dirty[0] & /*flowermenustyle*/
|
|
4903
|
-
16777216 && v &&
|
|
4909
|
+
16777216 && v && Zr(), e.$$.dirty[0] & /*activecategory, isLoading*/
|
|
4904
4910
|
8388610 && g && !b && xt(), e.$$.dirty[0] & /*lang*/
|
|
4905
|
-
131072 && s &&
|
|
4906
|
-
983040 && a && s && l && h &&
|
|
4907
|
-
1048580 && d && V &&
|
|
4908
|
-
2097156 && f && V &&
|
|
4909
|
-
4194304 &&
|
|
4911
|
+
131072 && s && en(), e.$$.dirty[0] & /*cmsendpoint, lang, env, userroles*/
|
|
4912
|
+
983040 && a && s && l && h && Jr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4913
|
+
1048580 && d && V && qr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4914
|
+
2097156 && f && V && Kr(), e.$$.dirty[0] & /*translationurl*/
|
|
4915
|
+
4194304 && m && zr();
|
|
4910
4916
|
}, [
|
|
4911
4917
|
u,
|
|
4912
4918
|
b,
|
|
@@ -4922,7 +4928,7 @@ function zo(e, t, r) {
|
|
|
4922
4928
|
De,
|
|
4923
4929
|
n,
|
|
4924
4930
|
N,
|
|
4925
|
-
|
|
4931
|
+
Qr,
|
|
4926
4932
|
ce,
|
|
4927
4933
|
a,
|
|
4928
4934
|
s,
|
|
@@ -4930,19 +4936,19 @@ function zo(e, t, r) {
|
|
|
4930
4936
|
h,
|
|
4931
4937
|
d,
|
|
4932
4938
|
f,
|
|
4933
|
-
|
|
4939
|
+
m,
|
|
4934
4940
|
g,
|
|
4935
4941
|
v,
|
|
4936
4942
|
o,
|
|
4937
4943
|
i,
|
|
4944
|
+
tn,
|
|
4938
4945
|
rn,
|
|
4939
|
-
nn
|
|
4940
|
-
on
|
|
4946
|
+
nn
|
|
4941
4947
|
];
|
|
4942
4948
|
}
|
|
4943
|
-
class Zo extends
|
|
4949
|
+
class Zo extends Ln {
|
|
4944
4950
|
constructor(t) {
|
|
4945
|
-
super(),
|
|
4951
|
+
super(), Mn(
|
|
4946
4952
|
this,
|
|
4947
4953
|
t,
|
|
4948
4954
|
zo,
|
|
@@ -5025,7 +5031,7 @@ class Zo extends Cn {
|
|
|
5025
5031
|
this.$$set({ flowermenustyle: t }), U();
|
|
5026
5032
|
}
|
|
5027
5033
|
}
|
|
5028
|
-
|
|
5034
|
+
On(Zo, { cmsendpoint: {}, lang: {}, env: {}, secondarymenutitle: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activecategory: {}, flowermenustyle: {} }, ["close"], [], !0);
|
|
5029
5035
|
export {
|
|
5030
5036
|
Zo as default
|
|
5031
5037
|
};
|