@everymatrix/casino-sort 1.86.3 → 1.86.5
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/{CasinoSort-BADl-v9A.js → CasinoSort-B6Q4IW6U.js} +683 -679
- package/components/CasinoSort-CBO6dfMj.cjs +3 -0
- package/components/{CasinoSort-D5KS311Q.js → CasinoSort-CG1_pDDV.js} +634 -630
- package/es2015/casino-sort.cjs +1 -1
- package/es2015/casino-sort.js +1 -1
- package/esnext/casino-sort.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSort-BAsq8D6d.cjs +0 -16
|
@@ -2,29 +2,29 @@ var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
|
2
2
|
var nr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var tt = Object.getOwnPropertySymbols;
|
|
4
4
|
var ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ne = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
ir.call(t, r) &&
|
|
7
|
+
ir.call(t, r) && Ne(e, r, t[r]);
|
|
8
8
|
if (tt)
|
|
9
9
|
for (var r of tt(t))
|
|
10
|
-
or.call(t, r) &&
|
|
10
|
+
or.call(t, r) && Ne(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, nt = (e, t) => rr(e, nr(t));
|
|
13
|
-
var R = (e, t, r) => (
|
|
13
|
+
var R = (e, t, r) => (Ne(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var it = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (
|
|
15
|
+
var o = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
a(r.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
a(r.next(h));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
a(r.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
a(r.throw(h));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function D() {
|
|
@@ -35,10 +35,10 @@ function At(e) {
|
|
|
35
35
|
function ot() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function fe(e) {
|
|
39
39
|
e.forEach(At);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Tt(e, t) {
|
|
@@ -59,17 +59,17 @@ function Bt(e, ...t) {
|
|
|
59
59
|
function ar(e, t, r) {
|
|
60
60
|
e.$$.on_destroy.push(Bt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function x(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function ur(e, t, r) {
|
|
66
|
+
const n = lr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = A("style");
|
|
69
69
|
i.id = t, i.textContent = r, hr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function lr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,16 +80,16 @@ function ur(e) {
|
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
82
|
function hr(e, t) {
|
|
83
|
-
return
|
|
83
|
+
return x(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function _e(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function pe(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function cr(e, t) {
|
|
@@ -99,19 +99,19 @@ function cr(e, t) {
|
|
|
99
99
|
function A(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function V(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $e(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function z() {
|
|
109
|
+
return $e(" ");
|
|
110
110
|
}
|
|
111
111
|
function Nt(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function p(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
117
|
function fr(e) {
|
|
@@ -121,7 +121,7 @@ function st(e, t) {
|
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function pr(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -131,30 +131,30 @@ function mr(e) {
|
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
133
|
let le;
|
|
134
|
-
function
|
|
134
|
+
function ue(e) {
|
|
135
135
|
le = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function mr() {
|
|
138
138
|
if (!le)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
140
|
return le;
|
|
141
141
|
}
|
|
142
142
|
function dr(e) {
|
|
143
|
-
|
|
143
|
+
mr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const q = [],
|
|
145
|
+
const q = [], De = [];
|
|
146
146
|
let Y = [];
|
|
147
147
|
const at = [], br = /* @__PURE__ */ Promise.resolve();
|
|
148
|
-
let
|
|
148
|
+
let Ue = !1;
|
|
149
149
|
function gr() {
|
|
150
|
-
|
|
150
|
+
Ue || (Ue = !0, br.then(j));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Fe(e) {
|
|
153
153
|
Y.push(e);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
156
156
|
let J = 0;
|
|
157
|
-
function
|
|
157
|
+
function j() {
|
|
158
158
|
if (J !== 0)
|
|
159
159
|
return;
|
|
160
160
|
const e = le;
|
|
@@ -162,28 +162,28 @@ function G() {
|
|
|
162
162
|
try {
|
|
163
163
|
for (; J < q.length; ) {
|
|
164
164
|
const t = q[J];
|
|
165
|
-
J++,
|
|
165
|
+
J++, ue(t), yr(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw q.length = 0, J = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (
|
|
171
|
-
|
|
170
|
+
for (ue(null), q.length = 0, J = 0; De.length; )
|
|
171
|
+
De.pop()();
|
|
172
172
|
for (let t = 0; t < Y.length; t += 1) {
|
|
173
173
|
const r = Y[t];
|
|
174
|
-
|
|
174
|
+
Oe.has(r) || (Oe.add(r), r());
|
|
175
175
|
}
|
|
176
176
|
Y.length = 0;
|
|
177
177
|
} while (q.length);
|
|
178
178
|
for (; at.length; )
|
|
179
179
|
at.pop()();
|
|
180
|
-
|
|
180
|
+
Ue = !1, Oe.clear(), ue(e);
|
|
181
181
|
}
|
|
182
182
|
function yr(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), fe(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function xr(e) {
|
|
@@ -194,27 +194,27 @@ const vr = /* @__PURE__ */ new Set();
|
|
|
194
194
|
function Er(e, t) {
|
|
195
195
|
e && e.i && (vr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function ut(e) {
|
|
198
198
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
199
|
}
|
|
200
200
|
function _r(e, t, r) {
|
|
201
201
|
const { fragment: n, after_update: i } = e.$$;
|
|
202
|
-
n && n.m(t, r),
|
|
203
|
-
const o = e.$$.on_mount.map(At).filter(
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
205
|
-
}), i.forEach(
|
|
202
|
+
n && n.m(t, r), Fe(() => {
|
|
203
|
+
const o = e.$$.on_mount.map(At).filter(Qe);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : fe(o), e.$$.on_mount = [];
|
|
205
|
+
}), i.forEach(Fe);
|
|
206
206
|
}
|
|
207
207
|
function Sr(e, t) {
|
|
208
208
|
const r = e.$$;
|
|
209
|
-
r.fragment !== null && (xr(r.after_update),
|
|
209
|
+
r.fragment !== null && (xr(r.after_update), fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
210
210
|
}
|
|
211
211
|
function wr(e, t) {
|
|
212
212
|
e.$$.dirty[0] === -1 && (q.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
214
|
function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
const
|
|
215
|
+
const h = le;
|
|
216
|
+
ue(e);
|
|
217
|
+
const u = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
220
220
|
// state
|
|
@@ -228,30 +228,30 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
228
228
|
on_disconnect: [],
|
|
229
229
|
before_update: [],
|
|
230
230
|
after_update: [],
|
|
231
|
-
context: new Map(t.context || (
|
|
231
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
233
|
callbacks: ot(),
|
|
234
234
|
dirty: a,
|
|
235
235
|
skip_bound: !1,
|
|
236
|
-
root: t.target ||
|
|
236
|
+
root: t.target || h.$$.root
|
|
237
237
|
};
|
|
238
|
-
s && s(
|
|
239
|
-
let
|
|
240
|
-
if (
|
|
241
|
-
const
|
|
242
|
-
return
|
|
243
|
-
}) : [],
|
|
238
|
+
s && s(u.root);
|
|
239
|
+
let l = !1;
|
|
240
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
241
|
+
const b = m.length ? m[0] : f;
|
|
242
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), l && wr(e, c)), f;
|
|
243
|
+
}) : [], u.update(), l = !0, fe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
245
|
const c = fr(t.target);
|
|
246
|
-
|
|
246
|
+
u.fragment && u.fragment.l(c), c.forEach(pe);
|
|
247
247
|
} else
|
|
248
|
-
|
|
249
|
-
t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor),
|
|
248
|
+
u.fragment && u.fragment.c();
|
|
249
|
+
t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), j();
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
ue(h);
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
typeof HTMLElement == "function" && (
|
|
253
|
+
let Ot;
|
|
254
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
255
255
|
constructor(t, r, n) {
|
|
256
256
|
super();
|
|
257
257
|
/** The Svelte component constructor */
|
|
@@ -295,29 +295,29 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
295
295
|
let s;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
s = A("slot"), o !== "default" &&
|
|
298
|
+
s = A("slot"), o !== "default" && p(s, "name", o);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
302
302
|
* @param {HTMLElement} [anchor]
|
|
303
303
|
*/
|
|
304
|
-
m: function(
|
|
305
|
-
|
|
304
|
+
m: function(u, l) {
|
|
305
|
+
_e(u, s, l);
|
|
306
306
|
},
|
|
307
|
-
d: function(
|
|
308
|
-
|
|
307
|
+
d: function(u) {
|
|
308
|
+
u && pe(s);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
312
|
};
|
|
313
313
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
314
314
|
return;
|
|
315
|
-
const r = {}, n =
|
|
315
|
+
const r = {}, n = pr(this);
|
|
316
316
|
for (const o of this.$$s)
|
|
317
317
|
o in n && (r[o] = [t(o)]);
|
|
318
318
|
for (const o of this.attributes) {
|
|
319
319
|
const s = this.$$g_p(o.name);
|
|
320
|
-
s in this.$$d || (this.$$d[s] =
|
|
320
|
+
s in this.$$d || (this.$$d[s] = be(s, o.value, this.$$p_d, "toProp"));
|
|
321
321
|
}
|
|
322
322
|
for (const o in this.$$p_d)
|
|
323
323
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
334
334
|
this.$$r = !0;
|
|
335
335
|
for (const o in this.$$p_d)
|
|
336
336
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
337
|
-
const s =
|
|
337
|
+
const s = be(
|
|
338
338
|
o,
|
|
339
339
|
this.$$d[o],
|
|
340
340
|
this.$$p_d,
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
358
358
|
// and setting attributes through setAttribute etc, this is helpful
|
|
359
359
|
attributeChangedCallback(t, r, n) {
|
|
360
360
|
var i;
|
|
361
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
361
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
362
362
|
}
|
|
363
363
|
disconnectedCallback() {
|
|
364
364
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
371
371
|
) || t;
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
function
|
|
374
|
+
function be(e, t, r, n) {
|
|
375
375
|
var o;
|
|
376
376
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
377
377
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -402,7 +402,7 @@ function de(e, t, r, n) {
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function Ar(e, t, r, n, i, o) {
|
|
405
|
-
let s = class extends
|
|
405
|
+
let s = class extends Ot {
|
|
406
406
|
constructor() {
|
|
407
407
|
super(e, r, i), this.$$p_d = t;
|
|
408
408
|
}
|
|
@@ -417,16 +417,16 @@ function Ar(e, t, r, n, i, o) {
|
|
|
417
417
|
get() {
|
|
418
418
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
419
419
|
},
|
|
420
|
-
set(
|
|
421
|
-
var
|
|
422
|
-
|
|
420
|
+
set(h) {
|
|
421
|
+
var u;
|
|
422
|
+
h = be(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}), n.forEach((a) => {
|
|
426
426
|
Object.defineProperty(s.prototype, a, {
|
|
427
427
|
get() {
|
|
428
|
-
var
|
|
429
|
-
return (
|
|
428
|
+
var h;
|
|
429
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
@@ -462,7 +462,7 @@ class Tr {
|
|
|
462
462
|
* @returns {() => void}
|
|
463
463
|
*/
|
|
464
464
|
$on(t, r) {
|
|
465
|
-
if (!
|
|
465
|
+
if (!Qe(r))
|
|
466
466
|
return D;
|
|
467
467
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
468
468
|
return n.push(r), () => {
|
|
@@ -486,7 +486,7 @@ function Nr(e, t) {
|
|
|
486
486
|
r.innerHTML = t, e.appendChild(r);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Or(e, t) {
|
|
490
490
|
if (!e || !t)
|
|
491
491
|
return;
|
|
492
492
|
const r = new URL(t);
|
|
@@ -497,7 +497,7 @@ function Pr(e, t) {
|
|
|
497
497
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Pr(e, t, r) {
|
|
501
501
|
if (window.emMessageBus) {
|
|
502
502
|
const n = document.createElement("style");
|
|
503
503
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -508,20 +508,20 @@ function Or(e, t, r) {
|
|
|
508
508
|
const Q = [];
|
|
509
509
|
function Ir(e, t) {
|
|
510
510
|
return {
|
|
511
|
-
subscribe:
|
|
511
|
+
subscribe: Se(e, t).subscribe
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Se(e, t = D) {
|
|
515
515
|
let r;
|
|
516
516
|
const n = /* @__PURE__ */ new Set();
|
|
517
517
|
function i(a) {
|
|
518
518
|
if (Tt(e, a) && (e = a, r)) {
|
|
519
|
-
const
|
|
520
|
-
for (const
|
|
521
|
-
|
|
522
|
-
if (
|
|
523
|
-
for (let
|
|
524
|
-
Q[
|
|
519
|
+
const h = !Q.length;
|
|
520
|
+
for (const u of n)
|
|
521
|
+
u[1](), Q.push(u, e);
|
|
522
|
+
if (h) {
|
|
523
|
+
for (let u = 0; u < Q.length; u += 2)
|
|
524
|
+
Q[u][0](Q[u + 1]);
|
|
525
525
|
Q.length = 0;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
@@ -529,10 +529,10 @@ function Ee(e, t = D) {
|
|
|
529
529
|
function o(a) {
|
|
530
530
|
i(a(e));
|
|
531
531
|
}
|
|
532
|
-
function s(a,
|
|
533
|
-
const
|
|
534
|
-
return n.add(
|
|
535
|
-
n.delete(
|
|
532
|
+
function s(a, h = D) {
|
|
533
|
+
const u = [a, h];
|
|
534
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
535
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
return { set: i, update: o, subscribe: s };
|
|
@@ -543,28 +543,28 @@ function ne(e, t, r) {
|
|
|
543
543
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
544
544
|
const o = t.length < 2;
|
|
545
545
|
return Ir(r, (s, a) => {
|
|
546
|
-
let
|
|
547
|
-
const
|
|
548
|
-
let
|
|
546
|
+
let h = !1;
|
|
547
|
+
const u = [];
|
|
548
|
+
let l = 0, c = D;
|
|
549
549
|
const f = () => {
|
|
550
|
-
if (
|
|
550
|
+
if (l)
|
|
551
551
|
return;
|
|
552
552
|
c();
|
|
553
|
-
const
|
|
554
|
-
o ? s(
|
|
555
|
-
},
|
|
556
|
-
(
|
|
557
|
-
|
|
558
|
-
(
|
|
559
|
-
|
|
553
|
+
const b = t(n ? u[0] : u, s, a);
|
|
554
|
+
o ? s(b) : c = Qe(b) ? b : D;
|
|
555
|
+
}, m = i.map(
|
|
556
|
+
(b, S) => Bt(
|
|
557
|
+
b,
|
|
558
|
+
(w) => {
|
|
559
|
+
u[S] = w, l &= ~(1 << S), h && f();
|
|
560
560
|
},
|
|
561
561
|
() => {
|
|
562
|
-
|
|
562
|
+
l |= 1 << S;
|
|
563
563
|
}
|
|
564
564
|
)
|
|
565
565
|
);
|
|
566
|
-
return
|
|
567
|
-
|
|
566
|
+
return h = !0, f(), function() {
|
|
567
|
+
fe(m), c(), h = !1;
|
|
568
568
|
};
|
|
569
569
|
});
|
|
570
570
|
}
|
|
@@ -588,12 +588,12 @@ function Ur(e) {
|
|
|
588
588
|
function Fr(e) {
|
|
589
589
|
return Array.isArray(e) ? [] : {};
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function he(e, t) {
|
|
592
592
|
return t.clone !== !1 && t.isMergeableObject(e) ? K(Fr(e), e, t) : e;
|
|
593
593
|
}
|
|
594
594
|
function Gr(e, t, r) {
|
|
595
595
|
return e.concat(t).map(function(n) {
|
|
596
|
-
return
|
|
596
|
+
return he(n, r);
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
599
|
function jr(e, t) {
|
|
@@ -607,10 +607,10 @@ function kr(e) {
|
|
|
607
607
|
return Object.propertyIsEnumerable.call(e, t);
|
|
608
608
|
}) : [];
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function lt(e) {
|
|
611
611
|
return Object.keys(e).concat(kr(e));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Pt(e, t) {
|
|
614
614
|
try {
|
|
615
615
|
return t in e;
|
|
616
616
|
} catch (r) {
|
|
@@ -618,20 +618,20 @@ function Ot(e, t) {
|
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function Vr(e, t) {
|
|
621
|
-
return
|
|
621
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
622
622
|
}
|
|
623
623
|
function zr(e, t, r) {
|
|
624
624
|
var n = {};
|
|
625
|
-
return r.isMergeableObject(e) &&
|
|
626
|
-
n[i] =
|
|
627
|
-
}),
|
|
628
|
-
Vr(e, i) || (
|
|
625
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
626
|
+
n[i] = he(e[i], r);
|
|
627
|
+
}), lt(t).forEach(function(i) {
|
|
628
|
+
Vr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
629
629
|
}), n;
|
|
630
630
|
}
|
|
631
631
|
function K(e, t, r) {
|
|
632
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Cr, r.cloneUnlessOtherwiseSpecified =
|
|
632
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Cr, r.cloneUnlessOtherwiseSpecified = he;
|
|
633
633
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
634
|
-
return o ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) :
|
|
634
|
+
return o ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : he(t, r);
|
|
635
635
|
}
|
|
636
636
|
K.all = function(t, r) {
|
|
637
637
|
if (!Array.isArray(t))
|
|
@@ -642,46 +642,32 @@ K.all = function(t, r) {
|
|
|
642
642
|
};
|
|
643
643
|
var Xr = K, Zr = Xr;
|
|
644
644
|
const Wr = /* @__PURE__ */ Lr(Zr);
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
649
|
-
purpose with or without fee is hereby granted.
|
|
650
|
-
|
|
651
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
652
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
653
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
654
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
655
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
656
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
657
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
658
|
-
***************************************************************************** */
|
|
659
|
-
var Ue = function(e, t) {
|
|
660
|
-
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
645
|
+
var Ge = function(e, t) {
|
|
646
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
661
647
|
r.__proto__ = n;
|
|
662
648
|
} || function(r, n) {
|
|
663
649
|
for (var i in n)
|
|
664
650
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
665
|
-
},
|
|
651
|
+
}, Ge(e, t);
|
|
666
652
|
};
|
|
667
|
-
function
|
|
653
|
+
function we(e, t) {
|
|
668
654
|
if (typeof t != "function" && t !== null)
|
|
669
655
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
670
|
-
|
|
656
|
+
Ge(e, t);
|
|
671
657
|
function r() {
|
|
672
658
|
this.constructor = e;
|
|
673
659
|
}
|
|
674
660
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
675
661
|
}
|
|
676
|
-
var
|
|
677
|
-
return
|
|
662
|
+
var U = function() {
|
|
663
|
+
return U = Object.assign || function(t) {
|
|
678
664
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
679
665
|
r = arguments[n];
|
|
680
666
|
for (var o in r)
|
|
681
667
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
682
668
|
}
|
|
683
669
|
return t;
|
|
684
|
-
},
|
|
670
|
+
}, U.apply(this, arguments);
|
|
685
671
|
};
|
|
686
672
|
function Jr(e, t) {
|
|
687
673
|
var r = {};
|
|
@@ -692,14 +678,14 @@ function Jr(e, t) {
|
|
|
692
678
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
693
679
|
return r;
|
|
694
680
|
}
|
|
695
|
-
function
|
|
696
|
-
if (arguments.length === 2)
|
|
681
|
+
function Pe(e, t, r) {
|
|
682
|
+
if (r || arguments.length === 2)
|
|
697
683
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
698
684
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
699
|
-
return e.concat(o || t);
|
|
685
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
700
686
|
}
|
|
701
|
-
function
|
|
702
|
-
var r = t && t.cache ? t.cache :
|
|
687
|
+
function Ie(e, t) {
|
|
688
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
703
689
|
return i(e, {
|
|
704
690
|
cache: r,
|
|
705
691
|
serializer: n
|
|
@@ -708,95 +694,103 @@ function Pe(e, t) {
|
|
|
708
694
|
function Qr(e) {
|
|
709
695
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
710
696
|
}
|
|
711
|
-
function
|
|
697
|
+
function qr(e, t, r, n) {
|
|
712
698
|
var i = Qr(n) ? n : r(n), o = t.get(i);
|
|
713
699
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
714
700
|
}
|
|
715
|
-
function
|
|
701
|
+
function It(e, t, r) {
|
|
716
702
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
717
703
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
718
704
|
}
|
|
719
|
-
function
|
|
705
|
+
function Lt(e, t, r, n, i) {
|
|
720
706
|
return r.bind(t, e, n, i);
|
|
721
707
|
}
|
|
722
|
-
function qr(e, t) {
|
|
723
|
-
var r = e.length === 1 ? It : Lt;
|
|
724
|
-
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
725
|
-
}
|
|
726
708
|
function Yr(e, t) {
|
|
727
|
-
|
|
709
|
+
var r = e.length === 1 ? qr : It;
|
|
710
|
+
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
728
711
|
}
|
|
729
712
|
function Kr(e, t) {
|
|
730
|
-
return
|
|
713
|
+
return Lt(e, this, It, t.cache.create(), t.serializer);
|
|
731
714
|
}
|
|
732
715
|
var en = function() {
|
|
733
716
|
return JSON.stringify(arguments);
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
717
|
+
}, tn = (
|
|
718
|
+
/** @class */
|
|
719
|
+
function() {
|
|
720
|
+
function e() {
|
|
721
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
722
|
+
}
|
|
723
|
+
return e.prototype.get = function(t) {
|
|
724
|
+
return this.cache[t];
|
|
725
|
+
}, e.prototype.set = function(t, r) {
|
|
726
|
+
this.cache[t] = r;
|
|
727
|
+
}, e;
|
|
728
|
+
}()
|
|
729
|
+
), rn = {
|
|
745
730
|
create: function() {
|
|
746
|
-
return new
|
|
731
|
+
return new tn();
|
|
747
732
|
}
|
|
748
|
-
},
|
|
749
|
-
variadic:
|
|
750
|
-
|
|
751
|
-
|
|
733
|
+
}, Le = {
|
|
734
|
+
variadic: Kr
|
|
735
|
+
}, xe = function() {
|
|
736
|
+
return xe = Object.assign || function(t) {
|
|
737
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
738
|
+
r = arguments[n];
|
|
739
|
+
for (var o in r)
|
|
740
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
741
|
+
}
|
|
742
|
+
return t;
|
|
743
|
+
}, xe.apply(this, arguments);
|
|
744
|
+
};
|
|
745
|
+
var g;
|
|
752
746
|
(function(e) {
|
|
753
747
|
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";
|
|
754
|
-
})(
|
|
755
|
-
var
|
|
748
|
+
})(g || (g = {}));
|
|
749
|
+
var v;
|
|
756
750
|
(function(e) {
|
|
757
751
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
758
|
-
})(
|
|
752
|
+
})(v || (v = {}));
|
|
759
753
|
var ee;
|
|
760
754
|
(function(e) {
|
|
761
755
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
762
756
|
})(ee || (ee = {}));
|
|
763
757
|
function ht(e) {
|
|
764
|
-
return e.type ===
|
|
758
|
+
return e.type === v.literal;
|
|
765
759
|
}
|
|
766
|
-
function
|
|
767
|
-
return e.type ===
|
|
760
|
+
function nn(e) {
|
|
761
|
+
return e.type === v.argument;
|
|
768
762
|
}
|
|
769
763
|
function Ct(e) {
|
|
770
|
-
return e.type ===
|
|
764
|
+
return e.type === v.number;
|
|
771
765
|
}
|
|
772
766
|
function Mt(e) {
|
|
773
|
-
return e.type ===
|
|
767
|
+
return e.type === v.date;
|
|
774
768
|
}
|
|
775
769
|
function Rt(e) {
|
|
776
|
-
return e.type ===
|
|
770
|
+
return e.type === v.time;
|
|
777
771
|
}
|
|
778
772
|
function $t(e) {
|
|
779
|
-
return e.type ===
|
|
773
|
+
return e.type === v.select;
|
|
780
774
|
}
|
|
781
775
|
function Dt(e) {
|
|
782
|
-
return e.type ===
|
|
776
|
+
return e.type === v.plural;
|
|
783
777
|
}
|
|
784
|
-
function
|
|
785
|
-
return e.type ===
|
|
778
|
+
function on(e) {
|
|
779
|
+
return e.type === v.pound;
|
|
786
780
|
}
|
|
787
781
|
function Ut(e) {
|
|
788
|
-
return e.type ===
|
|
782
|
+
return e.type === v.tag;
|
|
789
783
|
}
|
|
790
784
|
function Ft(e) {
|
|
791
785
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
792
786
|
}
|
|
793
|
-
function
|
|
787
|
+
function je(e) {
|
|
794
788
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
795
789
|
}
|
|
796
|
-
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
797
|
-
function
|
|
790
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[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;
|
|
791
|
+
function an(e) {
|
|
798
792
|
var t = {};
|
|
799
|
-
return e.replace(
|
|
793
|
+
return e.replace(sn, function(r) {
|
|
800
794
|
var n = r.length;
|
|
801
795
|
switch (r[0]) {
|
|
802
796
|
case "G":
|
|
@@ -885,29 +879,39 @@ function sn(e) {
|
|
|
885
879
|
return "";
|
|
886
880
|
}), t;
|
|
887
881
|
}
|
|
888
|
-
var
|
|
882
|
+
var _ = function() {
|
|
883
|
+
return _ = Object.assign || function(t) {
|
|
884
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
885
|
+
r = arguments[n];
|
|
886
|
+
for (var o in r)
|
|
887
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
888
|
+
}
|
|
889
|
+
return t;
|
|
890
|
+
}, _.apply(this, arguments);
|
|
891
|
+
};
|
|
892
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
889
893
|
function ln(e) {
|
|
890
894
|
if (e.length === 0)
|
|
891
895
|
throw new Error("Number skeleton cannot be empty");
|
|
892
|
-
for (var t = e.split(
|
|
896
|
+
for (var t = e.split(un).filter(function(f) {
|
|
893
897
|
return f.length > 0;
|
|
894
898
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
895
899
|
var o = i[n], s = o.split("/");
|
|
896
900
|
if (s.length === 0)
|
|
897
901
|
throw new Error("Invalid number skeleton");
|
|
898
|
-
for (var a = s[0],
|
|
899
|
-
var c =
|
|
902
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
903
|
+
var c = l[u];
|
|
900
904
|
if (c.length === 0)
|
|
901
905
|
throw new Error("Invalid number skeleton");
|
|
902
906
|
}
|
|
903
|
-
r.push({ stem: a, options:
|
|
907
|
+
r.push({ stem: a, options: h });
|
|
904
908
|
}
|
|
905
909
|
return r;
|
|
906
910
|
}
|
|
907
|
-
function
|
|
911
|
+
function hn(e) {
|
|
908
912
|
return e.replace(/^(.*?)-/, "");
|
|
909
913
|
}
|
|
910
|
-
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
914
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
911
915
|
function ft(e) {
|
|
912
916
|
var t = {};
|
|
913
917
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
@@ -954,7 +958,7 @@ function Vt(e) {
|
|
|
954
958
|
};
|
|
955
959
|
}
|
|
956
960
|
}
|
|
957
|
-
function
|
|
961
|
+
function fn(e) {
|
|
958
962
|
var t;
|
|
959
963
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
960
964
|
notation: "engineering"
|
|
@@ -968,11 +972,11 @@ function cn(e) {
|
|
|
968
972
|
}
|
|
969
973
|
return t;
|
|
970
974
|
}
|
|
971
|
-
function
|
|
975
|
+
function pt(e) {
|
|
972
976
|
var t = {}, r = Vt(e);
|
|
973
977
|
return r || t;
|
|
974
978
|
}
|
|
975
|
-
function
|
|
979
|
+
function pn(e) {
|
|
976
980
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
977
981
|
var i = n[r];
|
|
978
982
|
switch (i.stem) {
|
|
@@ -996,7 +1000,7 @@ function fn(e) {
|
|
|
996
1000
|
continue;
|
|
997
1001
|
case "measure-unit":
|
|
998
1002
|
case "unit":
|
|
999
|
-
t.style = "unit", t.unit =
|
|
1003
|
+
t.style = "unit", t.unit = hn(i.options[0]);
|
|
1000
1004
|
continue;
|
|
1001
1005
|
case "compact-short":
|
|
1002
1006
|
case "K":
|
|
@@ -1007,13 +1011,13 @@ function fn(e) {
|
|
|
1007
1011
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1008
1012
|
continue;
|
|
1009
1013
|
case "scientific":
|
|
1010
|
-
t =
|
|
1011
|
-
return
|
|
1014
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1015
|
+
return _(_({}, h), pt(u));
|
|
1012
1016
|
}, {}));
|
|
1013
1017
|
continue;
|
|
1014
1018
|
case "engineering":
|
|
1015
|
-
t =
|
|
1016
|
-
return
|
|
1019
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1020
|
+
return _(_({}, h), pt(u));
|
|
1017
1021
|
}, {}));
|
|
1018
1022
|
continue;
|
|
1019
1023
|
case "notation-simple":
|
|
@@ -1058,13 +1062,13 @@ function fn(e) {
|
|
|
1058
1062
|
case "integer-width":
|
|
1059
1063
|
if (i.options.length > 1)
|
|
1060
1064
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1061
|
-
i.options[0].replace(
|
|
1062
|
-
if (
|
|
1063
|
-
t.minimumIntegerDigits =
|
|
1065
|
+
i.options[0].replace(cn, function(h, u, l, c, f, m) {
|
|
1066
|
+
if (u)
|
|
1067
|
+
t.minimumIntegerDigits = l.length;
|
|
1064
1068
|
else {
|
|
1065
1069
|
if (c && f)
|
|
1066
1070
|
throw new Error("We currently do not support maximum integer digits");
|
|
1067
|
-
if (
|
|
1071
|
+
if (m)
|
|
1068
1072
|
throw new Error("We currently do not support exact integer digits");
|
|
1069
1073
|
}
|
|
1070
1074
|
return "";
|
|
@@ -1078,25 +1082,25 @@ function fn(e) {
|
|
|
1078
1082
|
if (ct.test(i.stem)) {
|
|
1079
1083
|
if (i.options.length > 1)
|
|
1080
1084
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1081
|
-
i.stem.replace(ct, function(u, l,
|
|
1082
|
-
return
|
|
1085
|
+
i.stem.replace(ct, function(h, u, l, c, f, m) {
|
|
1086
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1083
1087
|
});
|
|
1084
1088
|
var o = i.options[0];
|
|
1085
|
-
o === "w" ? t =
|
|
1089
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ft(o)));
|
|
1086
1090
|
continue;
|
|
1087
1091
|
}
|
|
1088
1092
|
if (jt.test(i.stem)) {
|
|
1089
|
-
t =
|
|
1093
|
+
t = _(_({}, t), ft(i.stem));
|
|
1090
1094
|
continue;
|
|
1091
1095
|
}
|
|
1092
1096
|
var s = Vt(i.stem);
|
|
1093
|
-
s && (t =
|
|
1094
|
-
var a =
|
|
1095
|
-
a && (t =
|
|
1097
|
+
s && (t = _(_({}, t), s));
|
|
1098
|
+
var a = fn(i.stem);
|
|
1099
|
+
a && (t = _(_({}, t), a));
|
|
1096
1100
|
}
|
|
1097
1101
|
return t;
|
|
1098
1102
|
}
|
|
1099
|
-
var
|
|
1103
|
+
var de = {
|
|
1100
1104
|
"001": [
|
|
1101
1105
|
"H",
|
|
1102
1106
|
"h"
|
|
@@ -2517,17 +2521,17 @@ function mn(e, t) {
|
|
|
2517
2521
|
if (i === "j") {
|
|
2518
2522
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2519
2523
|
o++, n++;
|
|
2520
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2521
|
-
for ((
|
|
2522
|
-
r +=
|
|
2524
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = dn(t);
|
|
2525
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2526
|
+
r += h;
|
|
2523
2527
|
for (; s-- > 0; )
|
|
2524
|
-
r =
|
|
2528
|
+
r = u + r;
|
|
2525
2529
|
} else
|
|
2526
2530
|
i === "J" ? r += "H" : r += i;
|
|
2527
2531
|
}
|
|
2528
2532
|
return r;
|
|
2529
2533
|
}
|
|
2530
|
-
function
|
|
2534
|
+
function dn(e) {
|
|
2531
2535
|
var t = e.hourCycle;
|
|
2532
2536
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2533
2537
|
e.hourCycles && // @ts-ignore
|
|
@@ -2546,23 +2550,23 @@ function pn(e) {
|
|
|
2546
2550
|
}
|
|
2547
2551
|
var r = e.language, n;
|
|
2548
2552
|
r !== "root" && (n = e.maximize().region);
|
|
2549
|
-
var i =
|
|
2553
|
+
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
|
2550
2554
|
return i[0];
|
|
2551
2555
|
}
|
|
2552
|
-
var
|
|
2556
|
+
var Ce, bn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
|
|
2553
2557
|
function y(e, t) {
|
|
2554
2558
|
return { start: e, end: t };
|
|
2555
2559
|
}
|
|
2556
|
-
var
|
|
2560
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, vn = !!Object.fromEntries, En = !!String.prototype.codePointAt, _n = !!String.prototype.trimStart, Sn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Hn = wn ? Number.isSafeInteger : function(e) {
|
|
2557
2561
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2558
|
-
},
|
|
2562
|
+
}, ke = !0;
|
|
2559
2563
|
try {
|
|
2560
|
-
var
|
|
2561
|
-
|
|
2564
|
+
var An = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2565
|
+
ke = ((Ce = An.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2562
2566
|
} catch (e) {
|
|
2563
|
-
|
|
2567
|
+
ke = !1;
|
|
2564
2568
|
}
|
|
2565
|
-
var
|
|
2569
|
+
var mt = yn ? (
|
|
2566
2570
|
// Native
|
|
2567
2571
|
function(t, r, n) {
|
|
2568
2572
|
return t.startsWith(r, n);
|
|
@@ -2572,7 +2576,7 @@ var pt = gn ? (
|
|
|
2572
2576
|
function(t, r, n) {
|
|
2573
2577
|
return t.slice(n, n + r.length) === r;
|
|
2574
2578
|
}
|
|
2575
|
-
),
|
|
2579
|
+
), Ve = xn ? String.fromCodePoint : (
|
|
2576
2580
|
// IE11
|
|
2577
2581
|
function() {
|
|
2578
2582
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2586,7 +2590,7 @@ var pt = gn ? (
|
|
|
2586
2590
|
}
|
|
2587
2591
|
), dt = (
|
|
2588
2592
|
// native
|
|
2589
|
-
|
|
2593
|
+
vn ? Object.fromEntries : (
|
|
2590
2594
|
// Ponyfill
|
|
2591
2595
|
function(t) {
|
|
2592
2596
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2596,7 +2600,7 @@ var pt = gn ? (
|
|
|
2596
2600
|
return r;
|
|
2597
2601
|
}
|
|
2598
2602
|
)
|
|
2599
|
-
), zt =
|
|
2603
|
+
), zt = En ? (
|
|
2600
2604
|
// Native
|
|
2601
2605
|
function(t, r) {
|
|
2602
2606
|
return t.codePointAt(r);
|
|
@@ -2610,7 +2614,7 @@ var pt = gn ? (
|
|
|
2610
2614
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2611
2615
|
}
|
|
2612
2616
|
}
|
|
2613
|
-
),
|
|
2617
|
+
), Tn = _n ? (
|
|
2614
2618
|
// Native
|
|
2615
2619
|
function(t) {
|
|
2616
2620
|
return t.trimStart();
|
|
@@ -2618,9 +2622,9 @@ var pt = gn ? (
|
|
|
2618
2622
|
) : (
|
|
2619
2623
|
// Ponyfill
|
|
2620
2624
|
function(t) {
|
|
2621
|
-
return t.replace(
|
|
2625
|
+
return t.replace(bn, "");
|
|
2622
2626
|
}
|
|
2623
|
-
),
|
|
2627
|
+
), Bn = Sn ? (
|
|
2624
2628
|
// Native
|
|
2625
2629
|
function(t) {
|
|
2626
2630
|
return t.trimEnd();
|
|
@@ -2628,32 +2632,32 @@ var pt = gn ? (
|
|
|
2628
2632
|
) : (
|
|
2629
2633
|
// Ponyfill
|
|
2630
2634
|
function(t) {
|
|
2631
|
-
return t.replace(
|
|
2635
|
+
return t.replace(gn, "");
|
|
2632
2636
|
}
|
|
2633
2637
|
);
|
|
2634
2638
|
function Xt(e, t) {
|
|
2635
2639
|
return new RegExp(e, t);
|
|
2636
2640
|
}
|
|
2637
|
-
var
|
|
2638
|
-
if (
|
|
2641
|
+
var ze;
|
|
2642
|
+
if (ke) {
|
|
2639
2643
|
var bt = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2640
|
-
|
|
2644
|
+
ze = function(t, r) {
|
|
2641
2645
|
var n;
|
|
2642
2646
|
bt.lastIndex = r;
|
|
2643
2647
|
var i = bt.exec(t);
|
|
2644
2648
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2645
2649
|
};
|
|
2646
2650
|
} else
|
|
2647
|
-
|
|
2651
|
+
ze = function(t, r) {
|
|
2648
2652
|
for (var n = []; ; ) {
|
|
2649
2653
|
var i = zt(t, r);
|
|
2650
|
-
if (i === void 0 || Zt(i) ||
|
|
2654
|
+
if (i === void 0 || Zt(i) || In(i))
|
|
2651
2655
|
break;
|
|
2652
2656
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2653
2657
|
}
|
|
2654
|
-
return
|
|
2658
|
+
return Ve.apply(void 0, n);
|
|
2655
2659
|
};
|
|
2656
|
-
var
|
|
2660
|
+
var Nn = (
|
|
2657
2661
|
/** @class */
|
|
2658
2662
|
function() {
|
|
2659
2663
|
function e(t, r) {
|
|
@@ -2677,14 +2681,14 @@ var Bn = (
|
|
|
2677
2681
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2678
2682
|
var a = this.clonePosition();
|
|
2679
2683
|
this.bump(), i.push({
|
|
2680
|
-
type:
|
|
2684
|
+
type: v.pound,
|
|
2681
2685
|
location: y(a, this.clonePosition())
|
|
2682
2686
|
});
|
|
2683
2687
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2684
2688
|
if (n)
|
|
2685
2689
|
break;
|
|
2686
|
-
return this.error(
|
|
2687
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2690
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2691
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
2688
2692
|
var s = this.parseTag(t, r);
|
|
2689
2693
|
if (s.err)
|
|
2690
2694
|
return s;
|
|
@@ -2705,7 +2709,7 @@ var Bn = (
|
|
|
2705
2709
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2706
2710
|
return {
|
|
2707
2711
|
val: {
|
|
2708
|
-
type:
|
|
2712
|
+
type: v.literal,
|
|
2709
2713
|
value: "<".concat(i, "/>"),
|
|
2710
2714
|
location: y(n, this.clonePosition())
|
|
2711
2715
|
},
|
|
@@ -2717,22 +2721,22 @@ var Bn = (
|
|
|
2717
2721
|
return o;
|
|
2718
2722
|
var s = o.val, a = this.clonePosition();
|
|
2719
2723
|
if (this.bumpIf("</")) {
|
|
2720
|
-
if (this.isEOF() || !
|
|
2721
|
-
return this.error(
|
|
2722
|
-
var
|
|
2723
|
-
return i !==
|
|
2724
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2725
|
+
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
2726
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
2727
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2724
2728
|
val: {
|
|
2725
|
-
type:
|
|
2729
|
+
type: v.tag,
|
|
2726
2730
|
value: i,
|
|
2727
2731
|
children: s,
|
|
2728
2732
|
location: y(n, this.clonePosition())
|
|
2729
2733
|
},
|
|
2730
2734
|
err: null
|
|
2731
|
-
} : this.error(
|
|
2735
|
+
} : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
|
|
2732
2736
|
} else
|
|
2733
|
-
return this.error(
|
|
2737
|
+
return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2734
2738
|
} else
|
|
2735
|
-
return this.error(
|
|
2739
|
+
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
2736
2740
|
}, e.prototype.parseTagName = function() {
|
|
2737
2741
|
var t = this.offset();
|
|
2738
2742
|
for (this.bump(); !this.isEOF() && Pn(this.char()); )
|
|
@@ -2757,14 +2761,14 @@ var Bn = (
|
|
|
2757
2761
|
}
|
|
2758
2762
|
break;
|
|
2759
2763
|
}
|
|
2760
|
-
var
|
|
2764
|
+
var h = y(n, this.clonePosition());
|
|
2761
2765
|
return {
|
|
2762
|
-
val: { type:
|
|
2766
|
+
val: { type: v.literal, value: i, location: h },
|
|
2763
2767
|
err: null
|
|
2764
2768
|
};
|
|
2765
2769
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2766
2770
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2767
|
-
!
|
|
2771
|
+
!On(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2768
2772
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2769
2773
|
if (this.isEOF() || this.char() !== 39)
|
|
2770
2774
|
return null;
|
|
@@ -2798,28 +2802,28 @@ var Bn = (
|
|
|
2798
2802
|
r.push(n);
|
|
2799
2803
|
this.bump();
|
|
2800
2804
|
}
|
|
2801
|
-
return
|
|
2805
|
+
return Ve.apply(void 0, r);
|
|
2802
2806
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2803
2807
|
if (this.isEOF())
|
|
2804
2808
|
return null;
|
|
2805
2809
|
var n = this.char();
|
|
2806
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2810
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
2807
2811
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2808
2812
|
var n = this.clonePosition();
|
|
2809
2813
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2810
|
-
return this.error(
|
|
2814
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2811
2815
|
if (this.char() === 125)
|
|
2812
|
-
return this.bump(), this.error(
|
|
2816
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2813
2817
|
var i = this.parseIdentifierIfPossible().value;
|
|
2814
2818
|
if (!i)
|
|
2815
|
-
return this.error(
|
|
2819
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2816
2820
|
if (this.bumpSpace(), this.isEOF())
|
|
2817
|
-
return this.error(
|
|
2821
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2818
2822
|
switch (this.char()) {
|
|
2819
2823
|
case 125:
|
|
2820
2824
|
return this.bump(), {
|
|
2821
2825
|
val: {
|
|
2822
|
-
type:
|
|
2826
|
+
type: v.argument,
|
|
2823
2827
|
// value does not include the opening and closing braces.
|
|
2824
2828
|
value: i,
|
|
2825
2829
|
location: y(n, this.clonePosition())
|
|
@@ -2827,71 +2831,71 @@ var Bn = (
|
|
|
2827
2831
|
err: null
|
|
2828
2832
|
};
|
|
2829
2833
|
case 44:
|
|
2830
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2834
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2831
2835
|
default:
|
|
2832
|
-
return this.error(
|
|
2836
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2833
2837
|
}
|
|
2834
2838
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2835
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2839
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
2836
2840
|
this.bumpTo(i);
|
|
2837
2841
|
var o = this.clonePosition(), s = y(t, o);
|
|
2838
2842
|
return { value: n, location: s };
|
|
2839
2843
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2840
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
2844
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2841
2845
|
switch (a) {
|
|
2842
2846
|
case "":
|
|
2843
|
-
return this.error(
|
|
2847
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
|
|
2844
2848
|
case "number":
|
|
2845
2849
|
case "date":
|
|
2846
2850
|
case "time": {
|
|
2847
2851
|
this.bumpSpace();
|
|
2848
|
-
var
|
|
2852
|
+
var u = null;
|
|
2849
2853
|
if (this.bumpIf(",")) {
|
|
2850
2854
|
this.bumpSpace();
|
|
2851
|
-
var
|
|
2855
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2852
2856
|
if (c.err)
|
|
2853
2857
|
return c;
|
|
2854
|
-
var f =
|
|
2858
|
+
var f = Bn(c.val);
|
|
2855
2859
|
if (f.length === 0)
|
|
2856
|
-
return this.error(
|
|
2857
|
-
var
|
|
2858
|
-
|
|
2860
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2861
|
+
var m = y(l, this.clonePosition());
|
|
2862
|
+
u = { style: f, styleLocation: m };
|
|
2859
2863
|
}
|
|
2860
|
-
var
|
|
2861
|
-
if (
|
|
2862
|
-
return
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2865
|
-
var
|
|
2864
|
+
var b = this.tryParseArgumentClose(i);
|
|
2865
|
+
if (b.err)
|
|
2866
|
+
return b;
|
|
2867
|
+
var S = y(i, this.clonePosition());
|
|
2868
|
+
if (u && mt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2869
|
+
var w = Tn(u.style.slice(2));
|
|
2866
2870
|
if (a === "number") {
|
|
2867
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2871
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
2868
2872
|
return c.err ? c : {
|
|
2869
|
-
val: { type:
|
|
2873
|
+
val: { type: v.number, value: n, location: S, style: c.val },
|
|
2870
2874
|
err: null
|
|
2871
2875
|
};
|
|
2872
2876
|
} else {
|
|
2873
|
-
if (
|
|
2874
|
-
return this.error(
|
|
2875
|
-
var
|
|
2876
|
-
this.locale && (
|
|
2877
|
+
if (w.length === 0)
|
|
2878
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, S);
|
|
2879
|
+
var M = w;
|
|
2880
|
+
this.locale && (M = mn(w, this.locale));
|
|
2877
2881
|
var f = {
|
|
2878
2882
|
type: ee.dateTime,
|
|
2879
|
-
pattern:
|
|
2880
|
-
location:
|
|
2881
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2882
|
-
},
|
|
2883
|
+
pattern: M,
|
|
2884
|
+
location: u.styleLocation,
|
|
2885
|
+
parsedOptions: this.shouldParseSkeletons ? an(M) : {}
|
|
2886
|
+
}, L = a === "date" ? v.date : v.time;
|
|
2883
2887
|
return {
|
|
2884
|
-
val: { type:
|
|
2888
|
+
val: { type: L, value: n, location: S, style: f },
|
|
2885
2889
|
err: null
|
|
2886
2890
|
};
|
|
2887
2891
|
}
|
|
2888
2892
|
}
|
|
2889
2893
|
return {
|
|
2890
2894
|
val: {
|
|
2891
|
-
type: a === "number" ?
|
|
2895
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
2892
2896
|
value: n,
|
|
2893
|
-
location:
|
|
2894
|
-
style: (o =
|
|
2897
|
+
location: S,
|
|
2898
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2895
2899
|
},
|
|
2896
2900
|
err: null
|
|
2897
2901
|
};
|
|
@@ -2899,52 +2903,52 @@ var Bn = (
|
|
|
2899
2903
|
case "plural":
|
|
2900
2904
|
case "selectordinal":
|
|
2901
2905
|
case "select": {
|
|
2902
|
-
var
|
|
2906
|
+
var N = this.clonePosition();
|
|
2903
2907
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2904
|
-
return this.error(
|
|
2908
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(N, xe({}, N)));
|
|
2905
2909
|
this.bumpSpace();
|
|
2906
|
-
var
|
|
2907
|
-
if (a !== "select" &&
|
|
2910
|
+
var I = this.parseIdentifierIfPossible(), T = 0;
|
|
2911
|
+
if (a !== "select" && I.value === "offset") {
|
|
2908
2912
|
if (!this.bumpIf(":"))
|
|
2909
|
-
return this.error(
|
|
2913
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2910
2914
|
this.bumpSpace();
|
|
2911
|
-
var c = this.tryParseDecimalInteger(
|
|
2915
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2912
2916
|
if (c.err)
|
|
2913
2917
|
return c;
|
|
2914
|
-
this.bumpSpace(),
|
|
2918
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), T = c.val;
|
|
2915
2919
|
}
|
|
2916
|
-
var C = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2920
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
2917
2921
|
if (C.err)
|
|
2918
2922
|
return C;
|
|
2919
|
-
var
|
|
2920
|
-
if (
|
|
2921
|
-
return
|
|
2922
|
-
var
|
|
2923
|
+
var b = this.tryParseArgumentClose(i);
|
|
2924
|
+
if (b.err)
|
|
2925
|
+
return b;
|
|
2926
|
+
var F = y(i, this.clonePosition());
|
|
2923
2927
|
return a === "select" ? {
|
|
2924
2928
|
val: {
|
|
2925
|
-
type:
|
|
2929
|
+
type: v.select,
|
|
2926
2930
|
value: n,
|
|
2927
2931
|
options: dt(C.val),
|
|
2928
|
-
location:
|
|
2932
|
+
location: F
|
|
2929
2933
|
},
|
|
2930
2934
|
err: null
|
|
2931
2935
|
} : {
|
|
2932
2936
|
val: {
|
|
2933
|
-
type:
|
|
2937
|
+
type: v.plural,
|
|
2934
2938
|
value: n,
|
|
2935
2939
|
options: dt(C.val),
|
|
2936
|
-
offset:
|
|
2940
|
+
offset: T,
|
|
2937
2941
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2938
|
-
location:
|
|
2942
|
+
location: F
|
|
2939
2943
|
},
|
|
2940
2944
|
err: null
|
|
2941
2945
|
};
|
|
2942
2946
|
}
|
|
2943
2947
|
default:
|
|
2944
|
-
return this.error(
|
|
2948
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
|
|
2945
2949
|
}
|
|
2946
2950
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2947
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2951
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2948
2952
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2949
2953
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2950
2954
|
var n = this.char();
|
|
@@ -2953,7 +2957,7 @@ var Bn = (
|
|
|
2953
2957
|
this.bump();
|
|
2954
2958
|
var i = this.clonePosition();
|
|
2955
2959
|
if (!this.bumpUntil("'"))
|
|
2956
|
-
return this.error(
|
|
2960
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2957
2961
|
this.bump();
|
|
2958
2962
|
break;
|
|
2959
2963
|
}
|
|
@@ -2985,50 +2989,50 @@ var Bn = (
|
|
|
2985
2989
|
try {
|
|
2986
2990
|
n = ln(t);
|
|
2987
2991
|
} catch (i) {
|
|
2988
|
-
return this.error(
|
|
2992
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2989
2993
|
}
|
|
2990
2994
|
return {
|
|
2991
2995
|
val: {
|
|
2992
2996
|
type: ee.number,
|
|
2993
2997
|
tokens: n,
|
|
2994
2998
|
location: r,
|
|
2995
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2999
|
+
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
2996
3000
|
},
|
|
2997
3001
|
err: null
|
|
2998
3002
|
};
|
|
2999
3003
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3000
|
-
for (var o, s = !1, a = [],
|
|
3001
|
-
if (
|
|
3004
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3005
|
+
if (u.length === 0) {
|
|
3002
3006
|
var c = this.clonePosition();
|
|
3003
3007
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3004
|
-
var f = this.tryParseDecimalInteger(
|
|
3008
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3005
3009
|
if (f.err)
|
|
3006
3010
|
return f;
|
|
3007
|
-
|
|
3011
|
+
l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3008
3012
|
} else
|
|
3009
3013
|
break;
|
|
3010
3014
|
}
|
|
3011
|
-
if (
|
|
3012
|
-
return this.error(r === "select" ?
|
|
3013
|
-
|
|
3014
|
-
var
|
|
3015
|
+
if (h.has(u))
|
|
3016
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3017
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3018
|
+
var m = this.clonePosition();
|
|
3015
3019
|
if (!this.bumpIf("{"))
|
|
3016
|
-
return this.error(r === "select" ?
|
|
3017
|
-
var
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3020
|
-
var
|
|
3021
|
-
if (
|
|
3022
|
-
return
|
|
3020
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3021
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3022
|
+
if (b.err)
|
|
3023
|
+
return b;
|
|
3024
|
+
var S = this.tryParseArgumentClose(m);
|
|
3025
|
+
if (S.err)
|
|
3026
|
+
return S;
|
|
3023
3027
|
a.push([
|
|
3024
|
-
|
|
3028
|
+
u,
|
|
3025
3029
|
{
|
|
3026
|
-
value:
|
|
3027
|
-
location: y(
|
|
3030
|
+
value: b.val,
|
|
3031
|
+
location: y(m, this.clonePosition())
|
|
3028
3032
|
}
|
|
3029
|
-
]),
|
|
3033
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3030
3034
|
}
|
|
3031
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3035
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3032
3036
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3033
3037
|
var n = 1, i = this.clonePosition();
|
|
3034
3038
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3039,8 +3043,8 @@ var Bn = (
|
|
|
3039
3043
|
else
|
|
3040
3044
|
break;
|
|
3041
3045
|
}
|
|
3042
|
-
var
|
|
3043
|
-
return o ? (s *= n,
|
|
3046
|
+
var h = y(i, this.clonePosition());
|
|
3047
|
+
return o ? (s *= n, Hn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3044
3048
|
}, e.prototype.offset = function() {
|
|
3045
3049
|
return this.position.offset;
|
|
3046
3050
|
}, e.prototype.isEOF = function() {
|
|
@@ -3074,7 +3078,7 @@ var Bn = (
|
|
|
3074
3078
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3075
3079
|
}
|
|
3076
3080
|
}, e.prototype.bumpIf = function(t) {
|
|
3077
|
-
if (
|
|
3081
|
+
if (mt(this.message, t, this.offset())) {
|
|
3078
3082
|
for (var r = 0; r < t.length; r++)
|
|
3079
3083
|
this.bump();
|
|
3080
3084
|
return !0;
|
|
@@ -3106,11 +3110,11 @@ var Bn = (
|
|
|
3106
3110
|
}, e;
|
|
3107
3111
|
}()
|
|
3108
3112
|
);
|
|
3109
|
-
function
|
|
3113
|
+
function Xe(e) {
|
|
3110
3114
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3111
3115
|
}
|
|
3112
|
-
function
|
|
3113
|
-
return
|
|
3116
|
+
function On(e) {
|
|
3117
|
+
return Xe(e) || e === 47;
|
|
3114
3118
|
}
|
|
3115
3119
|
function Pn(e) {
|
|
3116
3120
|
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;
|
|
@@ -3118,35 +3122,35 @@ function Pn(e) {
|
|
|
3118
3122
|
function Zt(e) {
|
|
3119
3123
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3120
3124
|
}
|
|
3121
|
-
function
|
|
3125
|
+
function In(e) {
|
|
3122
3126
|
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;
|
|
3123
3127
|
}
|
|
3124
|
-
function
|
|
3128
|
+
function Ze(e) {
|
|
3125
3129
|
e.forEach(function(t) {
|
|
3126
3130
|
if (delete t.location, $t(t) || Dt(t))
|
|
3127
3131
|
for (var r in t.options)
|
|
3128
|
-
delete t.options[r].location,
|
|
3132
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3129
3133
|
else
|
|
3130
|
-
Ct(t) && Ft(t.style) || (Mt(t) || Rt(t)) &&
|
|
3134
|
+
Ct(t) && Ft(t.style) || (Mt(t) || Rt(t)) && je(t.style) ? delete t.style.location : Ut(t) && Ze(t.children);
|
|
3131
3135
|
});
|
|
3132
3136
|
}
|
|
3133
|
-
function
|
|
3134
|
-
t === void 0 && (t = {}), t =
|
|
3135
|
-
var r = new
|
|
3137
|
+
function Ln(e, t) {
|
|
3138
|
+
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3139
|
+
var r = new Nn(e, t).parse();
|
|
3136
3140
|
if (r.err) {
|
|
3137
|
-
var n = SyntaxError(
|
|
3141
|
+
var n = SyntaxError(g[r.err.kind]);
|
|
3138
3142
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3139
3143
|
}
|
|
3140
|
-
return t != null && t.captureLocation ||
|
|
3144
|
+
return t != null && t.captureLocation || Ze(r.val), r.val;
|
|
3141
3145
|
}
|
|
3142
3146
|
var te;
|
|
3143
3147
|
(function(e) {
|
|
3144
3148
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3145
3149
|
})(te || (te = {}));
|
|
3146
|
-
var
|
|
3150
|
+
var He = (
|
|
3147
3151
|
/** @class */
|
|
3148
3152
|
function(e) {
|
|
3149
|
-
|
|
3153
|
+
we(t, e);
|
|
3150
3154
|
function t(r, n, i) {
|
|
3151
3155
|
var o = e.call(this, r) || this;
|
|
3152
3156
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3158,152 +3162,152 @@ var Se = (
|
|
|
3158
3162
|
), gt = (
|
|
3159
3163
|
/** @class */
|
|
3160
3164
|
function(e) {
|
|
3161
|
-
|
|
3165
|
+
we(t, e);
|
|
3162
3166
|
function t(r, n, i, o) {
|
|
3163
3167
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3164
3168
|
}
|
|
3165
3169
|
return t;
|
|
3166
|
-
}(
|
|
3167
|
-
),
|
|
3170
|
+
}(He)
|
|
3171
|
+
), Cn = (
|
|
3168
3172
|
/** @class */
|
|
3169
3173
|
function(e) {
|
|
3170
|
-
|
|
3174
|
+
we(t, e);
|
|
3171
3175
|
function t(r, n, i) {
|
|
3172
3176
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3173
3177
|
}
|
|
3174
3178
|
return t;
|
|
3175
|
-
}(
|
|
3176
|
-
),
|
|
3179
|
+
}(He)
|
|
3180
|
+
), Mn = (
|
|
3177
3181
|
/** @class */
|
|
3178
3182
|
function(e) {
|
|
3179
|
-
|
|
3183
|
+
we(t, e);
|
|
3180
3184
|
function t(r, n) {
|
|
3181
3185
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3182
3186
|
}
|
|
3183
3187
|
return t;
|
|
3184
|
-
}(
|
|
3185
|
-
),
|
|
3188
|
+
}(He)
|
|
3189
|
+
), P;
|
|
3186
3190
|
(function(e) {
|
|
3187
3191
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3188
|
-
})(
|
|
3189
|
-
function
|
|
3192
|
+
})(P || (P = {}));
|
|
3193
|
+
function Rn(e) {
|
|
3190
3194
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3191
3195
|
var n = t[t.length - 1];
|
|
3192
|
-
return !n || n.type !==
|
|
3196
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3193
3197
|
}, []);
|
|
3194
3198
|
}
|
|
3195
|
-
function
|
|
3199
|
+
function $n(e) {
|
|
3196
3200
|
return typeof e == "function";
|
|
3197
3201
|
}
|
|
3198
|
-
function
|
|
3202
|
+
function ge(e, t, r, n, i, o, s) {
|
|
3199
3203
|
if (e.length === 1 && ht(e[0]))
|
|
3200
3204
|
return [
|
|
3201
3205
|
{
|
|
3202
|
-
type:
|
|
3206
|
+
type: P.literal,
|
|
3203
3207
|
value: e[0].value
|
|
3204
3208
|
}
|
|
3205
3209
|
];
|
|
3206
|
-
for (var a = [],
|
|
3207
|
-
var
|
|
3208
|
-
if (ht(
|
|
3210
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3211
|
+
var l = u[h];
|
|
3212
|
+
if (ht(l)) {
|
|
3209
3213
|
a.push({
|
|
3210
|
-
type:
|
|
3211
|
-
value:
|
|
3214
|
+
type: P.literal,
|
|
3215
|
+
value: l.value
|
|
3212
3216
|
});
|
|
3213
3217
|
continue;
|
|
3214
3218
|
}
|
|
3215
|
-
if (
|
|
3219
|
+
if (on(l)) {
|
|
3216
3220
|
typeof o == "number" && a.push({
|
|
3217
|
-
type:
|
|
3221
|
+
type: P.literal,
|
|
3218
3222
|
value: r.getNumberFormat(t).format(o)
|
|
3219
3223
|
});
|
|
3220
3224
|
continue;
|
|
3221
3225
|
}
|
|
3222
|
-
var c =
|
|
3226
|
+
var c = l.value;
|
|
3223
3227
|
if (!(i && c in i))
|
|
3224
|
-
throw new
|
|
3228
|
+
throw new Mn(c, s);
|
|
3225
3229
|
var f = i[c];
|
|
3226
|
-
if (
|
|
3230
|
+
if (nn(l)) {
|
|
3227
3231
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3228
|
-
type: typeof f == "string" ?
|
|
3232
|
+
type: typeof f == "string" ? P.literal : P.object,
|
|
3229
3233
|
value: f
|
|
3230
3234
|
});
|
|
3231
3235
|
continue;
|
|
3232
3236
|
}
|
|
3233
|
-
if (Mt(
|
|
3234
|
-
var
|
|
3237
|
+
if (Mt(l)) {
|
|
3238
|
+
var m = typeof l.style == "string" ? n.date[l.style] : je(l.style) ? l.style.parsedOptions : void 0;
|
|
3235
3239
|
a.push({
|
|
3236
|
-
type:
|
|
3237
|
-
value: r.getDateTimeFormat(t,
|
|
3240
|
+
type: P.literal,
|
|
3241
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3238
3242
|
});
|
|
3239
3243
|
continue;
|
|
3240
3244
|
}
|
|
3241
|
-
if (Rt(
|
|
3242
|
-
var
|
|
3245
|
+
if (Rt(l)) {
|
|
3246
|
+
var m = typeof l.style == "string" ? n.time[l.style] : je(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3243
3247
|
a.push({
|
|
3244
|
-
type:
|
|
3245
|
-
value: r.getDateTimeFormat(t,
|
|
3248
|
+
type: P.literal,
|
|
3249
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3246
3250
|
});
|
|
3247
3251
|
continue;
|
|
3248
3252
|
}
|
|
3249
|
-
if (Ct(
|
|
3250
|
-
var
|
|
3251
|
-
|
|
3252
|
-
type:
|
|
3253
|
-
value: r.getNumberFormat(t,
|
|
3253
|
+
if (Ct(l)) {
|
|
3254
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Ft(l.style) ? l.style.parsedOptions : void 0;
|
|
3255
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3256
|
+
type: P.literal,
|
|
3257
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3254
3258
|
});
|
|
3255
3259
|
continue;
|
|
3256
3260
|
}
|
|
3257
|
-
if (Ut(
|
|
3258
|
-
var
|
|
3259
|
-
if (
|
|
3260
|
-
throw new
|
|
3261
|
-
var
|
|
3262
|
-
return
|
|
3261
|
+
if (Ut(l)) {
|
|
3262
|
+
var b = l.children, S = l.value, w = i[S];
|
|
3263
|
+
if (!$n(w))
|
|
3264
|
+
throw new Cn(S, "function", s);
|
|
3265
|
+
var M = ge(b, t, r, n, i, o), L = w(M.map(function(T) {
|
|
3266
|
+
return T.value;
|
|
3263
3267
|
}));
|
|
3264
|
-
Array.isArray(
|
|
3268
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(T) {
|
|
3265
3269
|
return {
|
|
3266
|
-
type: typeof
|
|
3267
|
-
value:
|
|
3270
|
+
type: typeof T == "string" ? P.literal : P.object,
|
|
3271
|
+
value: T
|
|
3268
3272
|
};
|
|
3269
3273
|
}));
|
|
3270
3274
|
}
|
|
3271
|
-
if ($t(
|
|
3272
|
-
var
|
|
3273
|
-
if (!
|
|
3274
|
-
throw new gt(
|
|
3275
|
-
a.push.apply(a,
|
|
3275
|
+
if ($t(l)) {
|
|
3276
|
+
var N = l.options[f] || l.options.other;
|
|
3277
|
+
if (!N)
|
|
3278
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3279
|
+
a.push.apply(a, ge(N.value, t, r, n, i));
|
|
3276
3280
|
continue;
|
|
3277
3281
|
}
|
|
3278
|
-
if (Dt(
|
|
3279
|
-
var
|
|
3280
|
-
if (!
|
|
3282
|
+
if (Dt(l)) {
|
|
3283
|
+
var N = l.options["=".concat(f)];
|
|
3284
|
+
if (!N) {
|
|
3281
3285
|
if (!Intl.PluralRules)
|
|
3282
|
-
throw new
|
|
3286
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3283
3287
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3284
3288
|
`, te.MISSING_INTL_API, s);
|
|
3285
|
-
var
|
|
3286
|
-
|
|
3289
|
+
var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3290
|
+
N = l.options[I] || l.options.other;
|
|
3287
3291
|
}
|
|
3288
|
-
if (!
|
|
3289
|
-
throw new gt(
|
|
3290
|
-
a.push.apply(a,
|
|
3292
|
+
if (!N)
|
|
3293
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3294
|
+
a.push.apply(a, ge(N.value, t, r, n, i, f - (l.offset || 0)));
|
|
3291
3295
|
continue;
|
|
3292
3296
|
}
|
|
3293
3297
|
}
|
|
3294
|
-
return
|
|
3298
|
+
return Rn(a);
|
|
3295
3299
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return t ?
|
|
3298
|
-
return r[n] =
|
|
3300
|
+
function Dn(e, t) {
|
|
3301
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3302
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3299
3303
|
}, {})) : e;
|
|
3300
3304
|
}
|
|
3301
|
-
function
|
|
3305
|
+
function Un(e, t) {
|
|
3302
3306
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3303
|
-
return r[n] =
|
|
3304
|
-
},
|
|
3307
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3308
|
+
}, U({}, e)) : e;
|
|
3305
3309
|
}
|
|
3306
|
-
function
|
|
3310
|
+
function Me(e) {
|
|
3307
3311
|
return {
|
|
3308
3312
|
create: function() {
|
|
3309
3313
|
return {
|
|
@@ -3317,39 +3321,39 @@ function Le(e) {
|
|
|
3317
3321
|
}
|
|
3318
3322
|
};
|
|
3319
3323
|
}
|
|
3320
|
-
function
|
|
3324
|
+
function Fn(e) {
|
|
3321
3325
|
return e === void 0 && (e = {
|
|
3322
3326
|
number: {},
|
|
3323
3327
|
dateTime: {},
|
|
3324
3328
|
pluralRules: {}
|
|
3325
3329
|
}), {
|
|
3326
|
-
getNumberFormat:
|
|
3330
|
+
getNumberFormat: Ie(function() {
|
|
3327
3331
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3328
3332
|
r[n] = arguments[n];
|
|
3329
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3333
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3330
3334
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3335
|
+
cache: Me(e.number),
|
|
3336
|
+
strategy: Le.variadic
|
|
3333
3337
|
}),
|
|
3334
|
-
getDateTimeFormat:
|
|
3338
|
+
getDateTimeFormat: Ie(function() {
|
|
3335
3339
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3336
3340
|
r[n] = arguments[n];
|
|
3337
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3341
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3338
3342
|
}, {
|
|
3339
|
-
cache:
|
|
3340
|
-
strategy:
|
|
3343
|
+
cache: Me(e.dateTime),
|
|
3344
|
+
strategy: Le.variadic
|
|
3341
3345
|
}),
|
|
3342
|
-
getPluralRules:
|
|
3346
|
+
getPluralRules: Ie(function() {
|
|
3343
3347
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3344
3348
|
r[n] = arguments[n];
|
|
3345
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3349
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3346
3350
|
}, {
|
|
3347
|
-
cache:
|
|
3348
|
-
strategy:
|
|
3351
|
+
cache: Me(e.pluralRules),
|
|
3352
|
+
strategy: Le.variadic
|
|
3349
3353
|
})
|
|
3350
3354
|
};
|
|
3351
3355
|
}
|
|
3352
|
-
var
|
|
3356
|
+
var Gn = (
|
|
3353
3357
|
/** @class */
|
|
3354
3358
|
function() {
|
|
3355
3359
|
function e(t, r, n, i) {
|
|
@@ -3359,20 +3363,20 @@ var Fn = (
|
|
|
3359
3363
|
number: {},
|
|
3360
3364
|
dateTime: {},
|
|
3361
3365
|
pluralRules: {}
|
|
3362
|
-
}, this.format = function(
|
|
3363
|
-
var
|
|
3364
|
-
if (
|
|
3365
|
-
return
|
|
3366
|
-
var
|
|
3367
|
-
return !c.length || f.type !==
|
|
3366
|
+
}, this.format = function(h) {
|
|
3367
|
+
var u = o.formatToParts(h);
|
|
3368
|
+
if (u.length === 1)
|
|
3369
|
+
return u[0].value;
|
|
3370
|
+
var l = u.reduce(function(c, f) {
|
|
3371
|
+
return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3368
3372
|
}, []);
|
|
3369
|
-
return
|
|
3370
|
-
}, this.formatToParts = function(
|
|
3371
|
-
return
|
|
3373
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3374
|
+
}, this.formatToParts = function(h) {
|
|
3375
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3372
3376
|
}, this.resolvedOptions = function() {
|
|
3373
|
-
var
|
|
3377
|
+
var h;
|
|
3374
3378
|
return {
|
|
3375
|
-
locale: ((
|
|
3379
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3376
3380
|
};
|
|
3377
3381
|
}, this.getAst = function() {
|
|
3378
3382
|
return o.ast;
|
|
@@ -3382,12 +3386,12 @@ var Fn = (
|
|
|
3382
3386
|
var s = i || {};
|
|
3383
3387
|
s.formatters;
|
|
3384
3388
|
var a = Jr(s, ["formatters"]);
|
|
3385
|
-
this.ast = e.__parse(t,
|
|
3389
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3386
3390
|
} else
|
|
3387
3391
|
this.ast = t;
|
|
3388
3392
|
if (!Array.isArray(this.ast))
|
|
3389
3393
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3390
|
-
this.formats =
|
|
3394
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3391
3395
|
}
|
|
3392
3396
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3393
3397
|
get: function() {
|
|
@@ -3400,7 +3404,7 @@ var Fn = (
|
|
|
3400
3404
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3401
3405
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3402
3406
|
}
|
|
3403
|
-
}, e.__parse =
|
|
3407
|
+
}, e.__parse = Ln, e.formats = {
|
|
3404
3408
|
number: {
|
|
3405
3409
|
integer: {
|
|
3406
3410
|
maximumFractionDigits: 0
|
|
@@ -3461,7 +3465,7 @@ var Fn = (
|
|
|
3461
3465
|
}, e;
|
|
3462
3466
|
}()
|
|
3463
3467
|
);
|
|
3464
|
-
function
|
|
3468
|
+
function jn(e, t) {
|
|
3465
3469
|
if (t == null)
|
|
3466
3470
|
return;
|
|
3467
3471
|
if (t in e)
|
|
@@ -3482,36 +3486,36 @@ function Gn(e, t) {
|
|
|
3482
3486
|
n = void 0;
|
|
3483
3487
|
return n;
|
|
3484
3488
|
}
|
|
3485
|
-
const
|
|
3489
|
+
const k = {}, kn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Wt = (e, t) => {
|
|
3486
3490
|
if (t == null)
|
|
3487
3491
|
return;
|
|
3488
|
-
if (t in
|
|
3489
|
-
return
|
|
3490
|
-
const r =
|
|
3492
|
+
if (t in k && e in k[t])
|
|
3493
|
+
return k[t][e];
|
|
3494
|
+
const r = Ae(t);
|
|
3491
3495
|
for (let n = 0; n < r.length; n++) {
|
|
3492
|
-
const i = r[n], o =
|
|
3496
|
+
const i = r[n], o = zn(i, e);
|
|
3493
3497
|
if (o)
|
|
3494
|
-
return
|
|
3498
|
+
return kn(e, t, o);
|
|
3495
3499
|
}
|
|
3496
3500
|
};
|
|
3497
3501
|
let qe;
|
|
3498
|
-
const ie =
|
|
3499
|
-
function
|
|
3502
|
+
const ie = Se({});
|
|
3503
|
+
function Vn(e) {
|
|
3500
3504
|
return qe[e] || null;
|
|
3501
3505
|
}
|
|
3502
3506
|
function Jt(e) {
|
|
3503
3507
|
return e in qe;
|
|
3504
3508
|
}
|
|
3505
|
-
function
|
|
3509
|
+
function zn(e, t) {
|
|
3506
3510
|
if (!Jt(e))
|
|
3507
3511
|
return null;
|
|
3508
|
-
const r =
|
|
3509
|
-
return
|
|
3512
|
+
const r = Vn(e);
|
|
3513
|
+
return jn(r, t);
|
|
3510
3514
|
}
|
|
3511
|
-
function
|
|
3515
|
+
function Xn(e) {
|
|
3512
3516
|
if (e == null)
|
|
3513
3517
|
return;
|
|
3514
|
-
const t =
|
|
3518
|
+
const t = Ae(e);
|
|
3515
3519
|
for (let r = 0; r < t.length; r++) {
|
|
3516
3520
|
const n = t[r];
|
|
3517
3521
|
if (Jt(n))
|
|
@@ -3519,55 +3523,55 @@ function zn(e) {
|
|
|
3519
3523
|
}
|
|
3520
3524
|
}
|
|
3521
3525
|
function Qt(e, ...t) {
|
|
3522
|
-
delete
|
|
3526
|
+
delete k[e], ie.update((r) => (r[e] = Wr.all([r[e] || {}, ...t]), r));
|
|
3523
3527
|
}
|
|
3524
3528
|
ne(
|
|
3525
3529
|
[ie],
|
|
3526
3530
|
([e]) => Object.keys(e)
|
|
3527
3531
|
);
|
|
3528
3532
|
ie.subscribe((e) => qe = e);
|
|
3529
|
-
const
|
|
3530
|
-
function
|
|
3531
|
-
|
|
3533
|
+
const ye = {};
|
|
3534
|
+
function Zn(e, t) {
|
|
3535
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3532
3536
|
}
|
|
3533
3537
|
function qt(e) {
|
|
3534
|
-
return
|
|
3538
|
+
return ye[e];
|
|
3535
3539
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3540
|
+
function Wn(e) {
|
|
3541
|
+
return Ae(e).map((t) => {
|
|
3538
3542
|
const r = qt(t);
|
|
3539
3543
|
return [t, r ? [...r] : []];
|
|
3540
3544
|
}).filter(([, t]) => t.length > 0);
|
|
3541
3545
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return e == null ? !1 :
|
|
3546
|
+
function We(e) {
|
|
3547
|
+
return e == null ? !1 : Ae(e).some(
|
|
3544
3548
|
(t) => {
|
|
3545
3549
|
var r;
|
|
3546
3550
|
return (r = qt(t)) == null ? void 0 : r.size;
|
|
3547
3551
|
}
|
|
3548
3552
|
);
|
|
3549
3553
|
}
|
|
3550
|
-
function
|
|
3554
|
+
function Jn(e, t) {
|
|
3551
3555
|
return Promise.all(
|
|
3552
|
-
t.map((n) => (
|
|
3556
|
+
t.map((n) => (Zn(e, n), n().then((i) => i.default || i)))
|
|
3553
3557
|
).then((n) => Qt(e, ...n));
|
|
3554
3558
|
}
|
|
3555
|
-
const
|
|
3559
|
+
const ae = {};
|
|
3556
3560
|
function Yt(e) {
|
|
3557
|
-
if (!
|
|
3558
|
-
return e in
|
|
3559
|
-
const t =
|
|
3560
|
-
return
|
|
3561
|
+
if (!We(e))
|
|
3562
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
3563
|
+
const t = Wn(e);
|
|
3564
|
+
return ae[e] = Promise.all(
|
|
3561
3565
|
t.map(
|
|
3562
|
-
([r, n]) =>
|
|
3566
|
+
([r, n]) => Jn(r, n)
|
|
3563
3567
|
)
|
|
3564
3568
|
).then(() => {
|
|
3565
|
-
if (
|
|
3569
|
+
if (We(e))
|
|
3566
3570
|
return Yt(e);
|
|
3567
|
-
delete
|
|
3568
|
-
}),
|
|
3571
|
+
delete ae[e];
|
|
3572
|
+
}), ae[e];
|
|
3569
3573
|
}
|
|
3570
|
-
const
|
|
3574
|
+
const Qn = {
|
|
3571
3575
|
number: {
|
|
3572
3576
|
scientific: { notation: "scientific" },
|
|
3573
3577
|
engineering: { notation: "engineering" },
|
|
@@ -3596,159 +3600,159 @@ const Jn = {
|
|
|
3596
3600
|
timeZoneName: "short"
|
|
3597
3601
|
}
|
|
3598
3602
|
}
|
|
3599
|
-
},
|
|
3603
|
+
}, qn = {
|
|
3600
3604
|
fallbackLocale: null,
|
|
3601
3605
|
loadingDelay: 200,
|
|
3602
|
-
formats:
|
|
3606
|
+
formats: Qn,
|
|
3603
3607
|
warnOnMissingMessages: !0,
|
|
3604
3608
|
handleMissingMessage: void 0,
|
|
3605
3609
|
ignoreTag: !0
|
|
3606
|
-
},
|
|
3610
|
+
}, Yn = qn;
|
|
3607
3611
|
function re() {
|
|
3608
|
-
return
|
|
3612
|
+
return Yn;
|
|
3609
3613
|
}
|
|
3610
|
-
const
|
|
3611
|
-
var
|
|
3614
|
+
const Re = Se(!1);
|
|
3615
|
+
var Kn = Object.defineProperty, ei = Object.defineProperties, ti = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
|
|
3612
3616
|
for (var r in t || (t = {}))
|
|
3613
|
-
|
|
3617
|
+
ri.call(t, r) && xt(e, r, t[r]);
|
|
3614
3618
|
if (yt)
|
|
3615
3619
|
for (var r of yt(t))
|
|
3616
|
-
|
|
3620
|
+
ni.call(t, r) && xt(e, r, t[r]);
|
|
3617
3621
|
return e;
|
|
3618
|
-
},
|
|
3619
|
-
let
|
|
3620
|
-
const
|
|
3622
|
+
}, oi = (e, t) => ei(e, ti(t));
|
|
3623
|
+
let Je;
|
|
3624
|
+
const ve = Se(null);
|
|
3621
3625
|
function vt(e) {
|
|
3622
3626
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3623
3627
|
}
|
|
3624
|
-
function
|
|
3628
|
+
function Ae(e, t = re().fallbackLocale) {
|
|
3625
3629
|
const r = vt(e);
|
|
3626
3630
|
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
3627
3631
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return
|
|
3632
|
+
function Z() {
|
|
3633
|
+
return Je != null ? Je : void 0;
|
|
3630
3634
|
}
|
|
3631
|
-
|
|
3632
|
-
|
|
3635
|
+
ve.subscribe((e) => {
|
|
3636
|
+
Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3633
3637
|
});
|
|
3634
|
-
const
|
|
3635
|
-
if (e &&
|
|
3638
|
+
const si = (e) => {
|
|
3639
|
+
if (e && Xn(e) && We(e)) {
|
|
3636
3640
|
const { loadingDelay: t } = re();
|
|
3637
3641
|
let r;
|
|
3638
|
-
return typeof window != "undefined" &&
|
|
3639
|
-
() =>
|
|
3642
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
3643
|
+
() => Re.set(!0),
|
|
3640
3644
|
t
|
|
3641
|
-
) :
|
|
3642
|
-
|
|
3645
|
+
) : Re.set(!0), Yt(e).then(() => {
|
|
3646
|
+
ve.set(e);
|
|
3643
3647
|
}).finally(() => {
|
|
3644
|
-
clearTimeout(r),
|
|
3648
|
+
clearTimeout(r), Re.set(!1);
|
|
3645
3649
|
});
|
|
3646
3650
|
}
|
|
3647
|
-
return
|
|
3648
|
-
},
|
|
3649
|
-
set:
|
|
3650
|
-
}),
|
|
3651
|
+
return ve.set(e);
|
|
3652
|
+
}, X = oi(ii({}, ve), {
|
|
3653
|
+
set: si
|
|
3654
|
+
}), Te = (e) => {
|
|
3651
3655
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3652
3656
|
return (n) => {
|
|
3653
3657
|
const i = JSON.stringify(n);
|
|
3654
3658
|
return i in t ? t[i] : t[i] = e(n);
|
|
3655
3659
|
};
|
|
3656
3660
|
};
|
|
3657
|
-
var
|
|
3661
|
+
var ai = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
3658
3662
|
for (var r in t || (t = {}))
|
|
3659
3663
|
Kt.call(t, r) && Et(e, r, t[r]);
|
|
3660
|
-
if (
|
|
3661
|
-
for (var r of
|
|
3664
|
+
if (Ee)
|
|
3665
|
+
for (var r of Ee(t))
|
|
3662
3666
|
er.call(t, r) && Et(e, r, t[r]);
|
|
3663
3667
|
return e;
|
|
3664
3668
|
}, oe = (e, t) => {
|
|
3665
3669
|
var r = {};
|
|
3666
3670
|
for (var n in e)
|
|
3667
3671
|
Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3668
|
-
if (e != null &&
|
|
3669
|
-
for (var n of
|
|
3672
|
+
if (e != null && Ee)
|
|
3673
|
+
for (var n of Ee(e))
|
|
3670
3674
|
t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
|
|
3671
3675
|
return r;
|
|
3672
3676
|
};
|
|
3673
|
-
const
|
|
3677
|
+
const ce = (e, t) => {
|
|
3674
3678
|
const { formats: r } = re();
|
|
3675
3679
|
if (e in r && t in r[e])
|
|
3676
3680
|
return r[e][t];
|
|
3677
3681
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3678
|
-
},
|
|
3682
|
+
}, ui = Te(
|
|
3679
3683
|
(e) => {
|
|
3680
3684
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3681
3685
|
if (r == null)
|
|
3682
3686
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3683
|
-
return n && (i =
|
|
3687
|
+
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
3684
3688
|
}
|
|
3685
|
-
), li =
|
|
3689
|
+
), li = Te(
|
|
3686
3690
|
(e) => {
|
|
3687
3691
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3688
3692
|
if (r == null)
|
|
3689
3693
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3690
|
-
return n ? i =
|
|
3694
|
+
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3691
3695
|
}
|
|
3692
|
-
),
|
|
3696
|
+
), hi = Te(
|
|
3693
3697
|
(e) => {
|
|
3694
3698
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3695
3699
|
if (r == null)
|
|
3696
3700
|
throw new Error(
|
|
3697
3701
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3698
3702
|
);
|
|
3699
|
-
return n ? i =
|
|
3703
|
+
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3700
3704
|
}
|
|
3701
|
-
),
|
|
3705
|
+
), ci = (e = {}) => {
|
|
3702
3706
|
var t = e, {
|
|
3703
|
-
locale: r =
|
|
3707
|
+
locale: r = Z()
|
|
3704
3708
|
} = t, n = oe(t, [
|
|
3705
3709
|
"locale"
|
|
3706
3710
|
]);
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3711
|
+
return ui(Ye({ locale: r }, n));
|
|
3712
|
+
}, fi = (e = {}) => {
|
|
3709
3713
|
var t = e, {
|
|
3710
|
-
locale: r =
|
|
3714
|
+
locale: r = Z()
|
|
3711
3715
|
} = t, n = oe(t, [
|
|
3712
3716
|
"locale"
|
|
3713
3717
|
]);
|
|
3714
3718
|
return li(Ye({ locale: r }, n));
|
|
3715
|
-
},
|
|
3719
|
+
}, pi = (e = {}) => {
|
|
3716
3720
|
var t = e, {
|
|
3717
|
-
locale: r =
|
|
3721
|
+
locale: r = Z()
|
|
3718
3722
|
} = t, n = oe(t, [
|
|
3719
3723
|
"locale"
|
|
3720
3724
|
]);
|
|
3721
|
-
return
|
|
3722
|
-
}, mi =
|
|
3725
|
+
return hi(Ye({ locale: r }, n));
|
|
3726
|
+
}, mi = Te(
|
|
3723
3727
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3724
|
-
(e, t =
|
|
3728
|
+
(e, t = Z()) => new Gn(e, t, re().formats, {
|
|
3725
3729
|
ignoreTag: re().ignoreTag
|
|
3726
3730
|
})
|
|
3727
|
-
),
|
|
3731
|
+
), di = (e, t = {}) => {
|
|
3728
3732
|
var r, n, i, o;
|
|
3729
3733
|
let s = t;
|
|
3730
3734
|
typeof e == "object" && (s = e, e = s.id);
|
|
3731
3735
|
const {
|
|
3732
3736
|
values: a,
|
|
3733
|
-
locale:
|
|
3734
|
-
default:
|
|
3737
|
+
locale: h = Z(),
|
|
3738
|
+
default: u
|
|
3735
3739
|
} = s;
|
|
3736
|
-
if (
|
|
3740
|
+
if (h == null)
|
|
3737
3741
|
throw new Error(
|
|
3738
3742
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3739
3743
|
);
|
|
3740
|
-
let
|
|
3741
|
-
if (!
|
|
3742
|
-
|
|
3743
|
-
else if (typeof
|
|
3744
|
+
let l = Wt(e, h);
|
|
3745
|
+
if (!l)
|
|
3746
|
+
l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3747
|
+
else if (typeof l != "string")
|
|
3744
3748
|
return console.warn(
|
|
3745
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3746
|
-
),
|
|
3749
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3750
|
+
), l;
|
|
3747
3751
|
if (!a)
|
|
3748
|
-
return
|
|
3749
|
-
let c =
|
|
3752
|
+
return l;
|
|
3753
|
+
let c = l;
|
|
3750
3754
|
try {
|
|
3751
|
-
c = mi(
|
|
3755
|
+
c = mi(l, h).format(a);
|
|
3752
3756
|
} catch (f) {
|
|
3753
3757
|
f instanceof Error && console.warn(
|
|
3754
3758
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3756,14 +3760,14 @@ const he = (e, t) => {
|
|
|
3756
3760
|
);
|
|
3757
3761
|
}
|
|
3758
3762
|
return c;
|
|
3759
|
-
},
|
|
3760
|
-
ne([
|
|
3761
|
-
ne([
|
|
3762
|
-
ne([
|
|
3763
|
-
ne([
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
r == null && (ie.set(t),
|
|
3763
|
+
}, bi = (e, t) => pi(t).format(e), gi = (e, t) => fi(t).format(e), yi = (e, t) => ci(t).format(e), xi = (e, t = Z()) => Wt(e, t), vi = ne([X, ie], () => di);
|
|
3764
|
+
ne([X], () => bi);
|
|
3765
|
+
ne([X], () => gi);
|
|
3766
|
+
ne([X], () => yi);
|
|
3767
|
+
ne([X, ie], () => xi);
|
|
3768
|
+
function Ei({ withLocale: e, translations: t }) {
|
|
3769
|
+
X.subscribe((r) => {
|
|
3770
|
+
r == null && (ie.set(t), X.set(e));
|
|
3767
3771
|
});
|
|
3768
3772
|
}
|
|
3769
3773
|
function _t(e, t) {
|
|
@@ -3897,84 +3901,84 @@ const St = {
|
|
|
3897
3901
|
hottest: "Hottest"
|
|
3898
3902
|
}
|
|
3899
3903
|
};
|
|
3900
|
-
function
|
|
3901
|
-
|
|
3904
|
+
function _i(e) {
|
|
3905
|
+
ur(e, "svelte-p37neu", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
|
|
3902
3906
|
}
|
|
3903
3907
|
function wt(e, t, r) {
|
|
3904
3908
|
const n = e.slice();
|
|
3905
3909
|
return n[23] = t[r], n;
|
|
3906
3910
|
}
|
|
3907
|
-
function
|
|
3908
|
-
let t, r, n, i, o, s, a, u, l,
|
|
3911
|
+
function Si(e) {
|
|
3912
|
+
let t, r, n, i, o, s, a, h, u, l, c, f = (
|
|
3909
3913
|
/*$_*/
|
|
3910
3914
|
e[4]("sortby") + ""
|
|
3911
|
-
),
|
|
3915
|
+
), m, b, S, w, M = (
|
|
3912
3916
|
/*vendorSortingBy*/
|
|
3913
3917
|
(e[3] || /*$_*/
|
|
3914
3918
|
e[4]("all")) + ""
|
|
3915
|
-
),
|
|
3919
|
+
), L, N, I, T, C, F, d, H, $, se, me, Be, Ke, W = ut(Object.values(
|
|
3916
3920
|
/*vendorMap*/
|
|
3917
3921
|
e[5]
|
|
3918
3922
|
)), O = [];
|
|
3919
|
-
for (let
|
|
3920
|
-
O[
|
|
3923
|
+
for (let E = 0; E < W.length; E += 1)
|
|
3924
|
+
O[E] = Ht(wt(e, W, E));
|
|
3921
3925
|
return {
|
|
3922
3926
|
c() {
|
|
3923
|
-
t = A("div"), r = A("div"), n = A("div"), i =
|
|
3924
|
-
for (let
|
|
3925
|
-
O[
|
|
3926
|
-
|
|
3927
|
-
(e[1] ? "TriangleActive" : "")),
|
|
3928
|
-
(e[1] ? "SorterSelectorOpen" : "")),
|
|
3929
|
-
(e[1] ? "SorterOpen" : "")),
|
|
3927
|
+
t = A("div"), r = A("div"), n = A("div"), i = V("svg"), o = V("g"), s = V("path"), a = V("path"), h = V("path"), u = z(), l = A("div"), c = A("span"), m = $e(f), b = z(), S = A("div"), w = A("span"), L = $e(M), N = z(), I = A("span"), T = V("svg"), C = V("path"), H = z(), $ = A("div"), se = A("ul");
|
|
3928
|
+
for (let E = 0; E < O.length; E += 1)
|
|
3929
|
+
O[E].c();
|
|
3930
|
+
p(s, "id", "Path_5267"), p(s, "data-name", "Path 5267"), p(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), p(s, "transform", "translate(-206.448 0)"), p(s, "fill", "#fff"), p(a, "id", "Path_5268"), p(a, "data-name", "Path 5268"), p(a, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), p(a, "transform", "translate(0 0)"), p(a, "fill", "#fff"), p(h, "id", "Path_5269"), p(h, "data-name", "Path 5269"), p(h, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), p(h, "transform", "translate(-412.896 0)"), p(h, "fill", "#fff"), p(o, "id", "sortby"), p(o, "transform", "translate(-306 -342)"), p(i, "xmlns", "http://www.w3.org/2000/svg"), p(i, "width", "20"), p(i, "height", "20"), p(i, "viewBox", "0 0 26.003 22.819"), p(c, "class", "SorterName"), p(S, "class", "SorterValueContainer"), p(l, "class", "SorterTextContainer"), p(n, "class", "SorterMainArea"), p(C, "id", "arrow"), p(C, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), p(C, "transform", "translate(-274.511 -441.088)"), p(C, "fill", "#d1d1d1"), p(T, "xmlns", "http://www.w3.org/2000/svg"), p(T, "width", "14"), p(T, "height", "6.835"), p(T, "viewBox", "0 0 14 6.835"), p(I, "class", F = "TriangleInactive " + /*isSorterActive*/
|
|
3931
|
+
(e[1] ? "TriangleActive" : "")), p(r, "class", d = "SorterSelector " + /*isSorterActive*/
|
|
3932
|
+
(e[1] ? "SorterSelectorOpen" : "")), p(se, "class", "SorterDropdown"), p($, "class", me = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3933
|
+
(e[1] ? "SorterOpen" : "")), p(t, "class", "SorterContainer");
|
|
3930
3934
|
},
|
|
3931
|
-
m(
|
|
3932
|
-
|
|
3933
|
-
for (let
|
|
3934
|
-
O[
|
|
3935
|
-
|
|
3935
|
+
m(E, G) {
|
|
3936
|
+
_e(E, t, G), x(t, r), x(r, n), x(n, i), x(i, o), x(o, s), x(o, a), x(o, h), x(n, u), x(n, l), x(l, c), x(c, m), x(l, b), x(l, S), x(S, w), x(w, L), x(r, N), x(r, I), x(I, T), x(T, C), x(t, H), x(t, $), x($, se);
|
|
3937
|
+
for (let B = 0; B < O.length; B += 1)
|
|
3938
|
+
O[B] && O[B].m(se, null);
|
|
3939
|
+
Be || (Ke = Nt(
|
|
3936
3940
|
r,
|
|
3937
3941
|
"click",
|
|
3938
3942
|
/*click_handler*/
|
|
3939
3943
|
e[14]
|
|
3940
|
-
),
|
|
3944
|
+
), Be = !0);
|
|
3941
3945
|
},
|
|
3942
|
-
p(
|
|
3943
|
-
if (
|
|
3946
|
+
p(E, G) {
|
|
3947
|
+
if (G & /*$_*/
|
|
3944
3948
|
16 && f !== (f = /*$_*/
|
|
3945
|
-
|
|
3946
|
-
24 &&
|
|
3947
|
-
(
|
|
3948
|
-
|
|
3949
|
-
2 &&
|
|
3950
|
-
(
|
|
3951
|
-
2 &&
|
|
3952
|
-
(
|
|
3949
|
+
E[4]("sortby") + "") && st(m, f), G & /*vendorSortingBy, $_*/
|
|
3950
|
+
24 && M !== (M = /*vendorSortingBy*/
|
|
3951
|
+
(E[3] || /*$_*/
|
|
3952
|
+
E[4]("all")) + "") && st(L, M), G & /*isSorterActive*/
|
|
3953
|
+
2 && F !== (F = "TriangleInactive " + /*isSorterActive*/
|
|
3954
|
+
(E[1] ? "TriangleActive" : "")) && p(I, "class", F), G & /*isSorterActive*/
|
|
3955
|
+
2 && d !== (d = "SorterSelector " + /*isSorterActive*/
|
|
3956
|
+
(E[1] ? "SorterSelectorOpen" : "")) && p(r, "class", d), G & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
|
3953
3957
|
120) {
|
|
3954
|
-
W =
|
|
3958
|
+
W = ut(Object.values(
|
|
3955
3959
|
/*vendorMap*/
|
|
3956
|
-
|
|
3960
|
+
E[5]
|
|
3957
3961
|
));
|
|
3958
|
-
let
|
|
3959
|
-
for (
|
|
3960
|
-
const et = wt(
|
|
3961
|
-
O[
|
|
3962
|
+
let B;
|
|
3963
|
+
for (B = 0; B < W.length; B += 1) {
|
|
3964
|
+
const et = wt(E, W, B);
|
|
3965
|
+
O[B] ? O[B].p(et, G) : (O[B] = Ht(et), O[B].c(), O[B].m(se, null));
|
|
3962
3966
|
}
|
|
3963
|
-
for (;
|
|
3964
|
-
O[
|
|
3967
|
+
for (; B < O.length; B += 1)
|
|
3968
|
+
O[B].d(1);
|
|
3965
3969
|
O.length = W.length;
|
|
3966
3970
|
}
|
|
3967
|
-
|
|
3971
|
+
G & /*isSorterActive*/
|
|
3968
3972
|
2 && me !== (me = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3969
|
-
(
|
|
3973
|
+
(E[1] ? "SorterOpen" : "")) && p($, "class", me);
|
|
3970
3974
|
},
|
|
3971
|
-
d(
|
|
3972
|
-
|
|
3975
|
+
d(E) {
|
|
3976
|
+
E && pe(t), cr(O, E), Be = !1, Ke();
|
|
3973
3977
|
}
|
|
3974
3978
|
};
|
|
3975
3979
|
}
|
|
3976
3980
|
function Ht(e) {
|
|
3977
|
-
let t, r, n, i, o, s, a, u, l,
|
|
3981
|
+
let t, r, n, i, o, s, a, h, u, l, c;
|
|
3978
3982
|
function f() {
|
|
3979
3983
|
return (
|
|
3980
3984
|
/*click_handler_1*/
|
|
@@ -3986,8 +3990,8 @@ function Ht(e) {
|
|
|
3986
3990
|
}
|
|
3987
3991
|
return {
|
|
3988
3992
|
c() {
|
|
3989
|
-
t = A("li"), r = A("label"), n = A("input"), o =
|
|
3990
|
-
e[23]}`,
|
|
3993
|
+
t = A("li"), r = A("label"), n = A("input"), o = z(), s = A("span"), a = z(), h = A("span"), h.textContent = `${/*sort*/
|
|
3994
|
+
e[23]}`, u = z(), p(n, "type", "radio"), p(n, "name", "radio"), n.value = /*sort*/
|
|
3991
3995
|
e[23], n.checked = i = /*vendorSortingBy*/
|
|
3992
3996
|
e[3] == /*sort*/
|
|
3993
3997
|
e[23] ? !0 : (
|
|
@@ -3995,14 +3999,14 @@ function Ht(e) {
|
|
|
3995
3999
|
e[3] == null && /*sort*/
|
|
3996
4000
|
e[23] == /*$_*/
|
|
3997
4001
|
e[4]("all")
|
|
3998
|
-
),
|
|
4002
|
+
), p(s, "class", "SortersCheckmark"), p(r, "class", "SorterLabel CustomRadioButton"), p(t, "class", "SorterItem"), t.value = /*sort*/
|
|
3999
4003
|
e[23];
|
|
4000
4004
|
},
|
|
4001
|
-
m(
|
|
4002
|
-
|
|
4005
|
+
m(m, b) {
|
|
4006
|
+
_e(m, t, b), x(t, r), x(r, n), x(r, o), x(r, s), x(r, a), x(r, h), x(t, u), l || (c = Nt(n, "click", f), l = !0);
|
|
4003
4007
|
},
|
|
4004
|
-
p(
|
|
4005
|
-
e =
|
|
4008
|
+
p(m, b) {
|
|
4009
|
+
e = m, b & /*vendorSortingBy, $_*/
|
|
4006
4010
|
24 && i !== (i = /*vendorSortingBy*/
|
|
4007
4011
|
e[3] == /*sort*/
|
|
4008
4012
|
e[23] ? !0 : (
|
|
@@ -4012,17 +4016,17 @@ function Ht(e) {
|
|
|
4012
4016
|
e[4]("all")
|
|
4013
4017
|
)) && (n.checked = i);
|
|
4014
4018
|
},
|
|
4015
|
-
d(
|
|
4016
|
-
|
|
4019
|
+
d(m) {
|
|
4020
|
+
m && pe(t), l = !1, c();
|
|
4017
4021
|
}
|
|
4018
4022
|
};
|
|
4019
4023
|
}
|
|
4020
|
-
function
|
|
4024
|
+
function wi(e) {
|
|
4021
4025
|
let t;
|
|
4022
4026
|
function r(o, s) {
|
|
4023
4027
|
if (!/*isLoading*/
|
|
4024
4028
|
o[2])
|
|
4025
|
-
return
|
|
4029
|
+
return Si;
|
|
4026
4030
|
}
|
|
4027
4031
|
let n = r(e), i = n && n(e);
|
|
4028
4032
|
return {
|
|
@@ -4030,7 +4034,7 @@ function Si(e) {
|
|
|
4030
4034
|
t = A("div"), i && i.c();
|
|
4031
4035
|
},
|
|
4032
4036
|
m(o, s) {
|
|
4033
|
-
|
|
4037
|
+
_e(o, t, s), i && i.m(t, null), e[16](t);
|
|
4034
4038
|
},
|
|
4035
4039
|
p(o, [s]) {
|
|
4036
4040
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4038,104 +4042,104 @@ function Si(e) {
|
|
|
4038
4042
|
i: D,
|
|
4039
4043
|
o: D,
|
|
4040
4044
|
d(o) {
|
|
4041
|
-
o &&
|
|
4045
|
+
o && pe(t), i && i.d(), e[16](null);
|
|
4042
4046
|
}
|
|
4043
4047
|
};
|
|
4044
4048
|
}
|
|
4045
|
-
function
|
|
4049
|
+
function Hi(e, t, r) {
|
|
4046
4050
|
let n;
|
|
4047
|
-
ar(e,
|
|
4048
|
-
let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid:
|
|
4049
|
-
|
|
4050
|
-
const
|
|
4051
|
-
fetch(o).then((
|
|
4052
|
-
Object.keys(
|
|
4053
|
-
_t($,
|
|
4051
|
+
ar(e, vi, (d) => r(4, n = d));
|
|
4052
|
+
let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource: u } = t, l, c = !1, f = !0, m = "", b = "All";
|
|
4053
|
+
Ei({ withLocale: "en", translations: {} });
|
|
4054
|
+
const S = () => {
|
|
4055
|
+
fetch(o).then((H) => H.json()).then((H) => {
|
|
4056
|
+
Object.keys(H).forEach(($) => {
|
|
4057
|
+
_t($, H[$]);
|
|
4054
4058
|
});
|
|
4055
|
-
}).catch((
|
|
4056
|
-
console.log(
|
|
4059
|
+
}).catch((H) => {
|
|
4060
|
+
console.log(H);
|
|
4057
4061
|
});
|
|
4058
4062
|
};
|
|
4059
4063
|
Object.keys(St).forEach((d) => {
|
|
4060
4064
|
_t(d, St[d]);
|
|
4061
4065
|
});
|
|
4062
|
-
const
|
|
4066
|
+
const w = {
|
|
4063
4067
|
All: n("all"),
|
|
4064
4068
|
name: n("az"),
|
|
4065
4069
|
isNew: n("newest"),
|
|
4066
4070
|
"advancedTags(name(hot))": n("hottest")
|
|
4067
4071
|
}, M = () => {
|
|
4068
|
-
var
|
|
4069
|
-
r(3,
|
|
4070
|
-
let d = (
|
|
4071
|
-
d ? r(3,
|
|
4072
|
-
},
|
|
4073
|
-
r(3,
|
|
4074
|
-
let
|
|
4075
|
-
|
|
4076
|
-
for (let $ in
|
|
4077
|
-
if (
|
|
4078
|
-
|
|
4072
|
+
var H;
|
|
4073
|
+
r(3, b = "All"), r(2, f = !1), r(1, c = !1);
|
|
4074
|
+
let d = (H = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : H[h];
|
|
4075
|
+
d ? r(3, b = d) : r(3, b = "All"), r(3, b = w[d]);
|
|
4076
|
+
}, L = (d) => {
|
|
4077
|
+
r(3, b = d);
|
|
4078
|
+
let H = localStorage.getItem("vendorSortingBy");
|
|
4079
|
+
m = d;
|
|
4080
|
+
for (let $ in w)
|
|
4081
|
+
if (w[$] === d) {
|
|
4082
|
+
m = $;
|
|
4079
4083
|
break;
|
|
4080
4084
|
}
|
|
4081
|
-
|
|
4085
|
+
H == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: m })) : (H = JSON.parse(H), H[h] = m, localStorage.setItem("vendorSortingBy", JSON.stringify(H))), window.postMessage(
|
|
4082
4086
|
{
|
|
4083
4087
|
type: "ApplySorter",
|
|
4084
|
-
sortBy:
|
|
4085
|
-
itemId:
|
|
4088
|
+
sortBy: m,
|
|
4089
|
+
itemId: h
|
|
4086
4090
|
},
|
|
4087
4091
|
window.location.href
|
|
4088
|
-
), r(1,
|
|
4089
|
-
},
|
|
4090
|
-
r(1,
|
|
4091
|
-
},
|
|
4092
|
-
d.data.type == "FilterOpened" && r(1,
|
|
4092
|
+
), r(1, c = !c);
|
|
4093
|
+
}, N = () => {
|
|
4094
|
+
r(1, c = !c), window.postMessage({ type: "SortingOpened" }, window.location.href);
|
|
4095
|
+
}, I = (d) => {
|
|
4096
|
+
d.data.type == "FilterOpened" && r(1, c = !1);
|
|
4093
4097
|
};
|
|
4094
|
-
dr(() => (window.addEventListener("message",
|
|
4095
|
-
window.
|
|
4098
|
+
dr(() => (window.addEventListener("message", I, !1), () => {
|
|
4099
|
+
window.removeEventListener("message", I);
|
|
4096
4100
|
}));
|
|
4097
|
-
const
|
|
4098
|
-
function
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
+
const T = () => N(), C = (d) => L(d);
|
|
4102
|
+
function F(d) {
|
|
4103
|
+
De[d ? "unshift" : "push"](() => {
|
|
4104
|
+
l = d, r(0, l);
|
|
4101
4105
|
});
|
|
4102
4106
|
}
|
|
4103
4107
|
return e.$$set = (d) => {
|
|
4104
|
-
"lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12,
|
|
4108
|
+
"lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, h = d.categoryid), "mbsource" in d && r(13, u = d.mbsource);
|
|
4105
4109
|
}, e.$$.update = () => {
|
|
4106
4110
|
e.$$.dirty & /*categoryid*/
|
|
4107
|
-
4096 &&
|
|
4108
|
-
1025 && s &&
|
|
4109
|
-
2049 && a &&
|
|
4110
|
-
8193 &&
|
|
4111
|
-
512 && o &&
|
|
4111
|
+
4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4112
|
+
1025 && s && l && Nr(l, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4113
|
+
2049 && a && l && Or(l, a), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4114
|
+
8193 && l && Pr(l, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4115
|
+
512 && o && S();
|
|
4112
4116
|
}, [
|
|
4117
|
+
l,
|
|
4113
4118
|
c,
|
|
4114
4119
|
f,
|
|
4115
|
-
|
|
4116
|
-
E,
|
|
4120
|
+
b,
|
|
4117
4121
|
n,
|
|
4118
|
-
|
|
4119
|
-
B,
|
|
4122
|
+
w,
|
|
4120
4123
|
L,
|
|
4124
|
+
N,
|
|
4121
4125
|
i,
|
|
4122
4126
|
o,
|
|
4123
4127
|
s,
|
|
4124
4128
|
a,
|
|
4129
|
+
h,
|
|
4125
4130
|
u,
|
|
4126
|
-
|
|
4131
|
+
T,
|
|
4127
4132
|
C,
|
|
4128
|
-
|
|
4129
|
-
Z
|
|
4133
|
+
F
|
|
4130
4134
|
];
|
|
4131
4135
|
}
|
|
4132
|
-
class
|
|
4136
|
+
class Ai extends Tr {
|
|
4133
4137
|
constructor(t) {
|
|
4134
4138
|
super(), Hr(
|
|
4135
4139
|
this,
|
|
4136
4140
|
t,
|
|
4141
|
+
Hi,
|
|
4137
4142
|
wi,
|
|
4138
|
-
Si,
|
|
4139
4143
|
Tt,
|
|
4140
4144
|
{
|
|
4141
4145
|
lang: 8,
|
|
@@ -4145,47 +4149,47 @@ class Hi extends Tr {
|
|
|
4145
4149
|
categoryid: 12,
|
|
4146
4150
|
mbsource: 13
|
|
4147
4151
|
},
|
|
4148
|
-
|
|
4152
|
+
_i
|
|
4149
4153
|
);
|
|
4150
4154
|
}
|
|
4151
4155
|
get lang() {
|
|
4152
4156
|
return this.$$.ctx[8];
|
|
4153
4157
|
}
|
|
4154
4158
|
set lang(t) {
|
|
4155
|
-
this.$$set({ lang: t }),
|
|
4159
|
+
this.$$set({ lang: t }), j();
|
|
4156
4160
|
}
|
|
4157
4161
|
get translationurl() {
|
|
4158
4162
|
return this.$$.ctx[9];
|
|
4159
4163
|
}
|
|
4160
4164
|
set translationurl(t) {
|
|
4161
|
-
this.$$set({ translationurl: t }),
|
|
4165
|
+
this.$$set({ translationurl: t }), j();
|
|
4162
4166
|
}
|
|
4163
4167
|
get clientstyling() {
|
|
4164
4168
|
return this.$$.ctx[10];
|
|
4165
4169
|
}
|
|
4166
4170
|
set clientstyling(t) {
|
|
4167
|
-
this.$$set({ clientstyling: t }),
|
|
4171
|
+
this.$$set({ clientstyling: t }), j();
|
|
4168
4172
|
}
|
|
4169
4173
|
get clientstylingurl() {
|
|
4170
4174
|
return this.$$.ctx[11];
|
|
4171
4175
|
}
|
|
4172
4176
|
set clientstylingurl(t) {
|
|
4173
|
-
this.$$set({ clientstylingurl: t }),
|
|
4177
|
+
this.$$set({ clientstylingurl: t }), j();
|
|
4174
4178
|
}
|
|
4175
4179
|
get categoryid() {
|
|
4176
4180
|
return this.$$.ctx[12];
|
|
4177
4181
|
}
|
|
4178
4182
|
set categoryid(t) {
|
|
4179
|
-
this.$$set({ categoryid: t }),
|
|
4183
|
+
this.$$set({ categoryid: t }), j();
|
|
4180
4184
|
}
|
|
4181
4185
|
get mbsource() {
|
|
4182
4186
|
return this.$$.ctx[13];
|
|
4183
4187
|
}
|
|
4184
4188
|
set mbsource(t) {
|
|
4185
|
-
this.$$set({ mbsource: t }),
|
|
4189
|
+
this.$$set({ mbsource: t }), j();
|
|
4186
4190
|
}
|
|
4187
4191
|
}
|
|
4188
|
-
Ar(
|
|
4192
|
+
Ar(Ai, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
|
|
4189
4193
|
export {
|
|
4190
|
-
|
|
4194
|
+
Ai as default
|
|
4191
4195
|
};
|