@everymatrix/general-icon-progress-bar 1.64.7 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-DSaIA0Oc.js} +588 -592
- package/components/GeneralIconProgressBar-DvairRCn.cjs +16 -0
- package/components/{GeneralIconProgressBar-D9Uqk4jK.js → GeneralIconProgressBar-DvfGRc7A.js} +575 -579
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-BtryxH6m.cjs +0 -3
package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-DSaIA0Oc.js}
RENAMED
@@ -2,46 +2,46 @@ var Ft = Object.defineProperty, jt = Object.defineProperties;
|
|
2
2
|
var Vt = Object.getOwnPropertyDescriptors;
|
3
3
|
var Fe = Object.getOwnPropertySymbols;
|
4
4
|
var kt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
5
|
-
var
|
5
|
+
var me = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
kt.call(t, r) &&
|
7
|
+
kt.call(t, r) && me(e, r, t[r]);
|
8
8
|
if (Fe)
|
9
9
|
for (var r of Fe(t))
|
10
|
-
Xt.call(t, r) &&
|
10
|
+
Xt.call(t, r) && me(e, r, t[r]);
|
11
11
|
return e;
|
12
12
|
}, Ve = (e, t) => jt(e, Vt(t));
|
13
|
-
var T = (e, t, r) => (
|
13
|
+
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
14
|
var ke = (e, t, r) => new Promise((n, i) => {
|
15
|
-
var s = (
|
15
|
+
var s = (u) => {
|
16
16
|
try {
|
17
|
-
a(r.next(
|
18
|
-
} catch (
|
19
|
-
i(
|
17
|
+
a(r.next(u));
|
18
|
+
} catch (h) {
|
19
|
+
i(h);
|
20
20
|
}
|
21
|
-
}, o = (
|
21
|
+
}, o = (u) => {
|
22
22
|
try {
|
23
|
-
a(r.throw(
|
24
|
-
} catch (
|
25
|
-
i(
|
23
|
+
a(r.throw(u));
|
24
|
+
} catch (h) {
|
25
|
+
i(h);
|
26
26
|
}
|
27
|
-
}, a = (
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function ht(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
35
|
function Xe() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function ee(e) {
|
39
|
+
e.forEach(ht);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function Le(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function ut(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
47
|
function zt(e) {
|
@@ -59,13 +59,13 @@ function lt(e, ...t) {
|
|
59
59
|
function Wt(e, t, r) {
|
60
60
|
e.$$.on_destroy.push(lt(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function ne(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
65
|
function Zt(e, t, r) {
|
66
66
|
const n = Qt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
|
-
const i =
|
68
|
+
const i = Q("style");
|
69
69
|
i.id = t, i.textContent = r, Jt(n, i);
|
70
70
|
}
|
71
71
|
}
|
@@ -80,7 +80,7 @@ function Qt(e) {
|
|
80
80
|
) : e.ownerDocument;
|
81
81
|
}
|
82
82
|
function Jt(e, t) {
|
83
|
-
return
|
83
|
+
return ne(
|
84
84
|
/** @type {Document} */
|
85
85
|
e.head || e,
|
86
86
|
t
|
@@ -89,16 +89,16 @@ function Jt(e, t) {
|
|
89
89
|
function ft(e, t, r) {
|
90
90
|
e.insertBefore(t, r || null);
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function Ce(e) {
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Q(e) {
|
96
96
|
return document.createElement(e);
|
97
97
|
}
|
98
98
|
function qt(e) {
|
99
99
|
return document.createTextNode(e);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function C(e, t, r) {
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
103
103
|
}
|
104
104
|
function Yt(e) {
|
@@ -117,57 +117,57 @@ function er(e) {
|
|
117
117
|
}
|
118
118
|
), t;
|
119
119
|
}
|
120
|
-
let
|
121
|
-
function
|
122
|
-
|
120
|
+
let Me;
|
121
|
+
function J(e) {
|
122
|
+
Me = e;
|
123
123
|
}
|
124
|
-
const
|
125
|
-
let
|
124
|
+
const G = [], q = [];
|
125
|
+
let D = [];
|
126
126
|
const ze = [], tr = /* @__PURE__ */ Promise.resolve();
|
127
|
-
let
|
127
|
+
let ve = !1;
|
128
128
|
function rr() {
|
129
|
-
|
129
|
+
ve || (ve = !0, tr.then(P));
|
130
130
|
}
|
131
|
-
function
|
132
|
-
|
131
|
+
function He(e) {
|
132
|
+
D.push(e);
|
133
133
|
}
|
134
|
-
const
|
135
|
-
let
|
134
|
+
const be = /* @__PURE__ */ new Set();
|
135
|
+
let $ = 0;
|
136
136
|
function P() {
|
137
|
-
if (
|
137
|
+
if ($ !== 0)
|
138
138
|
return;
|
139
|
-
const e =
|
139
|
+
const e = Me;
|
140
140
|
do {
|
141
141
|
try {
|
142
|
-
for (;
|
143
|
-
const t =
|
144
|
-
|
142
|
+
for (; $ < G.length; ) {
|
143
|
+
const t = G[$];
|
144
|
+
$++, J(t), nr(t.$$);
|
145
145
|
}
|
146
146
|
} catch (t) {
|
147
|
-
throw
|
147
|
+
throw G.length = 0, $ = 0, t;
|
148
148
|
}
|
149
|
-
for (
|
150
|
-
|
151
|
-
for (let t = 0; t <
|
152
|
-
const r =
|
153
|
-
|
149
|
+
for (J(null), G.length = 0, $ = 0; q.length; )
|
150
|
+
q.pop()();
|
151
|
+
for (let t = 0; t < D.length; t += 1) {
|
152
|
+
const r = D[t];
|
153
|
+
be.has(r) || (be.add(r), r());
|
154
154
|
}
|
155
|
-
|
156
|
-
} while (
|
155
|
+
D.length = 0;
|
156
|
+
} while (G.length);
|
157
157
|
for (; ze.length; )
|
158
158
|
ze.pop()();
|
159
|
-
|
159
|
+
ve = !1, be.clear(), J(e);
|
160
160
|
}
|
161
161
|
function nr(e) {
|
162
162
|
if (e.fragment !== null) {
|
163
|
-
e.update(),
|
163
|
+
e.update(), ee(e.before_update);
|
164
164
|
const t = e.dirty;
|
165
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
165
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
166
166
|
}
|
167
167
|
}
|
168
168
|
function ir(e) {
|
169
169
|
const t = [], r = [];
|
170
|
-
|
170
|
+
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
171
171
|
}
|
172
172
|
const sr = /* @__PURE__ */ new Set();
|
173
173
|
function or(e, t) {
|
@@ -175,22 +175,22 @@ function or(e, t) {
|
|
175
175
|
}
|
176
176
|
function ar(e, t, r) {
|
177
177
|
const { fragment: n, after_update: i } = e.$$;
|
178
|
-
n && n.m(t, r),
|
179
|
-
const s = e.$$.on_mount.map(
|
180
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
181
|
-
}), i.forEach(
|
178
|
+
n && n.m(t, r), He(() => {
|
179
|
+
const s = e.$$.on_mount.map(ht).filter(Le);
|
180
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
181
|
+
}), i.forEach(He);
|
182
182
|
}
|
183
|
-
function
|
183
|
+
function hr(e, t) {
|
184
184
|
const r = e.$$;
|
185
|
-
r.fragment !== null && (ir(r.after_update),
|
185
|
+
r.fragment !== null && (ir(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
186
186
|
}
|
187
|
-
function
|
188
|
-
e.$$.dirty[0] === -1 && (
|
187
|
+
function ur(e, t) {
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
189
189
|
}
|
190
190
|
function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
-
const
|
192
|
-
|
193
|
-
const
|
191
|
+
const u = Me;
|
192
|
+
J(e);
|
193
|
+
const h = e.$$ = {
|
194
194
|
fragment: null,
|
195
195
|
ctx: [],
|
196
196
|
// state
|
@@ -204,27 +204,27 @@ function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
204
204
|
on_disconnect: [],
|
205
205
|
before_update: [],
|
206
206
|
after_update: [],
|
207
|
-
context: new Map(t.context || (
|
207
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
208
208
|
// everything else
|
209
209
|
callbacks: Xe(),
|
210
210
|
dirty: a,
|
211
211
|
skip_bound: !1,
|
212
|
-
root: t.target ||
|
212
|
+
root: t.target || u.$$.root
|
213
213
|
};
|
214
|
-
o && o(
|
214
|
+
o && o(h.root);
|
215
215
|
let l = !1;
|
216
|
-
if (
|
217
|
-
const
|
218
|
-
return
|
219
|
-
}) : [],
|
216
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
217
|
+
const g = x.length ? x[0] : f;
|
218
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && ur(e, c)), f;
|
219
|
+
}) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
220
220
|
if (t.hydrate) {
|
221
221
|
const c = Yt(t.target);
|
222
|
-
|
222
|
+
h.fragment && h.fragment.l(c), c.forEach(Ce);
|
223
223
|
} else
|
224
|
-
|
224
|
+
h.fragment && h.fragment.c();
|
225
225
|
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), P();
|
226
226
|
}
|
227
|
-
|
227
|
+
J(u);
|
228
228
|
}
|
229
229
|
let ct;
|
230
230
|
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
@@ -271,17 +271,17 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
271
271
|
let o;
|
272
272
|
return {
|
273
273
|
c: function() {
|
274
|
-
o =
|
274
|
+
o = Q("slot"), s !== "default" && C(o, "name", s);
|
275
275
|
},
|
276
276
|
/**
|
277
277
|
* @param {HTMLElement} target
|
278
278
|
* @param {HTMLElement} [anchor]
|
279
279
|
*/
|
280
|
-
m: function(
|
281
|
-
ft(
|
280
|
+
m: function(h, l) {
|
281
|
+
ft(h, o, l);
|
282
282
|
},
|
283
|
-
d: function(
|
284
|
-
|
283
|
+
d: function(h) {
|
284
|
+
h && Ce(o);
|
285
285
|
}
|
286
286
|
};
|
287
287
|
};
|
@@ -293,7 +293,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
293
293
|
s in n && (r[s] = [t(s)]);
|
294
294
|
for (const s of this.attributes) {
|
295
295
|
const o = this.$$g_p(s.name);
|
296
|
-
o in this.$$d || (this.$$d[o] =
|
296
|
+
o in this.$$d || (this.$$d[o] = ie(o, s.value, this.$$p_d, "toProp"));
|
297
297
|
}
|
298
298
|
for (const s in this.$$p_d)
|
299
299
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
310
310
|
this.$$r = !0;
|
311
311
|
for (const s in this.$$p_d)
|
312
312
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
313
|
-
const o =
|
313
|
+
const o = ie(
|
314
314
|
s,
|
315
315
|
this.$$d[s],
|
316
316
|
this.$$p_d,
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
334
334
|
// and setting attributes through setAttribute etc, this is helpful
|
335
335
|
attributeChangedCallback(t, r, n) {
|
336
336
|
var i;
|
337
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
337
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ie(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
338
338
|
}
|
339
339
|
disconnectedCallback() {
|
340
340
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
347
347
|
) || t;
|
348
348
|
}
|
349
349
|
});
|
350
|
-
function
|
350
|
+
function ie(e, t, r, n) {
|
351
351
|
var s;
|
352
352
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
353
353
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -393,16 +393,16 @@ function fr(e, t, r, n, i, s) {
|
|
393
393
|
get() {
|
394
394
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
395
395
|
},
|
396
|
-
set(
|
397
|
-
var
|
398
|
-
|
396
|
+
set(u) {
|
397
|
+
var h;
|
398
|
+
u = ie(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
399
399
|
}
|
400
400
|
});
|
401
401
|
}), n.forEach((a) => {
|
402
402
|
Object.defineProperty(o.prototype, a, {
|
403
403
|
get() {
|
404
|
-
var
|
405
|
-
return (
|
404
|
+
var u;
|
405
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
406
406
|
}
|
407
407
|
});
|
408
408
|
}), e.element = /** @type {any} */
|
@@ -429,7 +429,7 @@ class cr {
|
|
429
429
|
}
|
430
430
|
/** @returns {void} */
|
431
431
|
$destroy() {
|
432
|
-
|
432
|
+
hr(this, 1), this.$destroy = B;
|
433
433
|
}
|
434
434
|
/**
|
435
435
|
* @template {Extract<keyof Events, string>} K
|
@@ -438,7 +438,7 @@ class cr {
|
|
438
438
|
* @returns {() => void}
|
439
439
|
*/
|
440
440
|
$on(t, r) {
|
441
|
-
if (!
|
441
|
+
if (!Le(r))
|
442
442
|
return B;
|
443
443
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
444
444
|
return n.push(r), () => {
|
@@ -456,66 +456,66 @@ class cr {
|
|
456
456
|
}
|
457
457
|
const pr = "4";
|
458
458
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
459
|
-
const
|
459
|
+
const U = [];
|
460
460
|
function mr(e, t) {
|
461
461
|
return {
|
462
|
-
subscribe:
|
462
|
+
subscribe: ue(e, t).subscribe
|
463
463
|
};
|
464
464
|
}
|
465
|
-
function
|
465
|
+
function ue(e, t = B) {
|
466
466
|
let r;
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
468
468
|
function i(a) {
|
469
|
-
if (
|
470
|
-
const
|
471
|
-
for (const
|
472
|
-
|
473
|
-
if (
|
474
|
-
for (let
|
475
|
-
|
476
|
-
|
469
|
+
if (ut(e, a) && (e = a, r)) {
|
470
|
+
const u = !U.length;
|
471
|
+
for (const h of n)
|
472
|
+
h[1](), U.push(h, e);
|
473
|
+
if (u) {
|
474
|
+
for (let h = 0; h < U.length; h += 2)
|
475
|
+
U[h][0](U[h + 1]);
|
476
|
+
U.length = 0;
|
477
477
|
}
|
478
478
|
}
|
479
479
|
}
|
480
480
|
function s(a) {
|
481
481
|
i(a(e));
|
482
482
|
}
|
483
|
-
function o(a,
|
484
|
-
const
|
485
|
-
return n.add(
|
486
|
-
n.delete(
|
483
|
+
function o(a, u = B) {
|
484
|
+
const h = [a, u];
|
485
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
486
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
487
487
|
};
|
488
488
|
}
|
489
489
|
return { set: i, update: s, subscribe: o };
|
490
490
|
}
|
491
|
-
function
|
491
|
+
function X(e, t, r) {
|
492
492
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
493
493
|
if (!i.every(Boolean))
|
494
494
|
throw new Error("derived() expects stores as input, got a falsy value");
|
495
495
|
const s = t.length < 2;
|
496
496
|
return mr(r, (o, a) => {
|
497
|
-
let
|
498
|
-
const
|
497
|
+
let u = !1;
|
498
|
+
const h = [];
|
499
499
|
let l = 0, c = B;
|
500
500
|
const f = () => {
|
501
501
|
if (l)
|
502
502
|
return;
|
503
503
|
c();
|
504
|
-
const
|
505
|
-
s ? o(
|
506
|
-
},
|
507
|
-
(
|
508
|
-
|
504
|
+
const g = t(n ? h[0] : h, o, a);
|
505
|
+
s ? o(g) : c = Le(g) ? g : B;
|
506
|
+
}, x = i.map(
|
507
|
+
(g, y) => lt(
|
508
|
+
g,
|
509
509
|
(H) => {
|
510
|
-
|
510
|
+
h[y] = H, l &= ~(1 << y), u && f();
|
511
511
|
},
|
512
512
|
() => {
|
513
513
|
l |= 1 << y;
|
514
514
|
}
|
515
515
|
)
|
516
516
|
);
|
517
|
-
return
|
518
|
-
|
517
|
+
return u = !0, f(), function() {
|
518
|
+
ee(x), c(), u = !1;
|
519
519
|
};
|
520
520
|
});
|
521
521
|
}
|
@@ -539,19 +539,19 @@ function _r(e) {
|
|
539
539
|
function vr(e) {
|
540
540
|
return Array.isArray(e) ? [] : {};
|
541
541
|
}
|
542
|
-
function
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
542
|
+
function Y(e, t) {
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(vr(e), e, t) : e;
|
544
544
|
}
|
545
545
|
function Hr(e, t, r) {
|
546
546
|
return e.concat(t).map(function(n) {
|
547
|
-
return
|
547
|
+
return Y(n, r);
|
548
548
|
});
|
549
549
|
}
|
550
550
|
function Tr(e, t) {
|
551
551
|
if (!t.customMerge)
|
552
|
-
return
|
552
|
+
return F;
|
553
553
|
var r = t.customMerge(e);
|
554
|
-
return typeof r == "function" ? r :
|
554
|
+
return typeof r == "function" ? r : F;
|
555
555
|
}
|
556
556
|
function Br(e) {
|
557
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
@@ -568,59 +568,73 @@ function pt(e, t) {
|
|
568
568
|
return !1;
|
569
569
|
}
|
570
570
|
}
|
571
|
-
function
|
571
|
+
function Ar(e, t) {
|
572
572
|
return pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
573
573
|
}
|
574
|
-
function
|
574
|
+
function Sr(e, t, r) {
|
575
575
|
var n = {};
|
576
576
|
return r.isMergeableObject(e) && We(e).forEach(function(i) {
|
577
|
-
n[i] =
|
577
|
+
n[i] = Y(e[i], r);
|
578
578
|
}), We(t).forEach(function(i) {
|
579
|
-
|
579
|
+
Ar(e, i) || (pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
580
580
|
}), n;
|
581
581
|
}
|
582
|
-
function
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified =
|
582
|
+
function F(e, t, r) {
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = Y;
|
584
584
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
585
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : Y(t, r);
|
586
586
|
}
|
587
|
-
|
587
|
+
F.all = function(t, r) {
|
588
588
|
if (!Array.isArray(t))
|
589
589
|
throw new Error("first argument should be an array");
|
590
590
|
return t.reduce(function(n, i) {
|
591
|
-
return
|
591
|
+
return F(n, i, r);
|
592
592
|
}, {});
|
593
593
|
};
|
594
|
-
var Pr =
|
594
|
+
var Pr = F, Or = Pr;
|
595
595
|
const Nr = /* @__PURE__ */ br(Or);
|
596
|
-
|
597
|
-
|
596
|
+
/*! *****************************************************************************
|
597
|
+
Copyright (c) Microsoft Corporation.
|
598
|
+
|
599
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
600
|
+
purpose with or without fee is hereby granted.
|
601
|
+
|
602
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
603
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
604
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
605
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
606
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
607
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
608
|
+
PERFORMANCE OF THIS SOFTWARE.
|
609
|
+
***************************************************************************** */
|
610
|
+
var Te = function(e, t) {
|
611
|
+
return Te = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
598
612
|
r.__proto__ = n;
|
599
613
|
} || function(r, n) {
|
600
614
|
for (var i in n)
|
601
615
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
602
|
-
},
|
616
|
+
}, Te(e, t);
|
603
617
|
};
|
604
|
-
function
|
618
|
+
function le(e, t) {
|
605
619
|
if (typeof t != "function" && t !== null)
|
606
620
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
607
|
-
|
621
|
+
Te(e, t);
|
608
622
|
function r() {
|
609
623
|
this.constructor = e;
|
610
624
|
}
|
611
625
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
612
626
|
}
|
613
|
-
var
|
614
|
-
return
|
627
|
+
var d = function() {
|
628
|
+
return d = Object.assign || function(t) {
|
615
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
616
630
|
r = arguments[n];
|
617
631
|
for (var s in r)
|
618
632
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
619
633
|
}
|
620
634
|
return t;
|
621
|
-
},
|
635
|
+
}, d.apply(this, arguments);
|
622
636
|
};
|
623
|
-
function
|
637
|
+
function Ir(e, t) {
|
624
638
|
var r = {};
|
625
639
|
for (var n in e)
|
626
640
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -629,119 +643,111 @@ function wr(e, t) {
|
|
629
643
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
630
644
|
return r;
|
631
645
|
}
|
632
|
-
function
|
633
|
-
if (
|
646
|
+
function de(e, t, r) {
|
647
|
+
if (arguments.length === 2)
|
634
648
|
for (var n = 0, i = t.length, s; n < i; n++)
|
635
649
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
636
|
-
return e.concat(s ||
|
650
|
+
return e.concat(s || t);
|
637
651
|
}
|
638
|
-
function
|
639
|
-
var r = t && t.cache ? t.cache :
|
652
|
+
function ge(e, t) {
|
653
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Lr;
|
640
654
|
return i(e, {
|
641
655
|
cache: r,
|
642
656
|
serializer: n
|
643
657
|
});
|
644
658
|
}
|
645
|
-
function
|
659
|
+
function wr(e) {
|
646
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
647
661
|
}
|
648
|
-
function
|
649
|
-
var i =
|
662
|
+
function mt(e, t, r, n) {
|
663
|
+
var i = wr(n) ? n : r(n), s = t.get(i);
|
650
664
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
651
665
|
}
|
652
|
-
function
|
666
|
+
function bt(e, t, r) {
|
653
667
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
654
668
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
655
669
|
}
|
656
|
-
function
|
670
|
+
function Re(e, t, r, n, i) {
|
657
671
|
return r.bind(t, e, n, i);
|
658
672
|
}
|
673
|
+
function Lr(e, t) {
|
674
|
+
var r = e.length === 1 ? mt : bt;
|
675
|
+
return Re(e, this, r, t.cache.create(), t.serializer);
|
676
|
+
}
|
659
677
|
function Cr(e, t) {
|
660
|
-
|
661
|
-
return bt(e, this, r, t.cache.create(), t.serializer);
|
678
|
+
return Re(e, this, bt, t.cache.create(), t.serializer);
|
662
679
|
}
|
663
680
|
function Mr(e, t) {
|
664
|
-
return
|
681
|
+
return Re(e, this, mt, t.cache.create(), t.serializer);
|
665
682
|
}
|
666
|
-
var
|
683
|
+
var Rr = function() {
|
667
684
|
return JSON.stringify(arguments);
|
668
|
-
}
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
}()
|
680
|
-
), Ur = {
|
685
|
+
};
|
686
|
+
function $e() {
|
687
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
688
|
+
}
|
689
|
+
$e.prototype.get = function(e) {
|
690
|
+
return this.cache[e];
|
691
|
+
};
|
692
|
+
$e.prototype.set = function(e, t) {
|
693
|
+
this.cache[e] = t;
|
694
|
+
};
|
695
|
+
var $r = {
|
681
696
|
create: function() {
|
682
|
-
return new
|
697
|
+
return new $e();
|
683
698
|
}
|
684
|
-
},
|
685
|
-
variadic:
|
686
|
-
|
687
|
-
|
688
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
689
|
-
r = arguments[n];
|
690
|
-
for (var s in r)
|
691
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
692
|
-
}
|
693
|
-
return t;
|
694
|
-
}, ue.apply(this, arguments);
|
695
|
-
};
|
696
|
-
var m;
|
699
|
+
}, xe = {
|
700
|
+
variadic: Cr,
|
701
|
+
monadic: Mr
|
702
|
+
}, m;
|
697
703
|
(function(e) {
|
698
704
|
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";
|
699
705
|
})(m || (m = {}));
|
700
|
-
var
|
706
|
+
var E;
|
701
707
|
(function(e) {
|
702
708
|
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";
|
703
|
-
})(
|
704
|
-
var
|
709
|
+
})(E || (E = {}));
|
710
|
+
var j;
|
705
711
|
(function(e) {
|
706
712
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
707
|
-
})(
|
713
|
+
})(j || (j = {}));
|
708
714
|
function Ze(e) {
|
709
|
-
return e.type ===
|
715
|
+
return e.type === E.literal;
|
710
716
|
}
|
711
|
-
function
|
712
|
-
return e.type ===
|
717
|
+
function Ur(e) {
|
718
|
+
return e.type === E.argument;
|
713
719
|
}
|
714
720
|
function dt(e) {
|
715
|
-
return e.type ===
|
721
|
+
return e.type === E.number;
|
716
722
|
}
|
717
723
|
function gt(e) {
|
718
|
-
return e.type ===
|
724
|
+
return e.type === E.date;
|
719
725
|
}
|
720
726
|
function xt(e) {
|
721
|
-
return e.type ===
|
727
|
+
return e.type === E.time;
|
722
728
|
}
|
723
729
|
function Et(e) {
|
724
|
-
return e.type ===
|
730
|
+
return e.type === E.select;
|
725
731
|
}
|
726
732
|
function yt(e) {
|
727
|
-
return e.type ===
|
733
|
+
return e.type === E.plural;
|
728
734
|
}
|
729
|
-
function
|
730
|
-
return e.type ===
|
735
|
+
function Gr(e) {
|
736
|
+
return e.type === E.pound;
|
731
737
|
}
|
732
738
|
function _t(e) {
|
733
|
-
return e.type ===
|
739
|
+
return e.type === E.tag;
|
734
740
|
}
|
735
741
|
function vt(e) {
|
736
|
-
return !!(e && typeof e == "object" && e.type ===
|
742
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
737
743
|
}
|
738
|
-
function
|
739
|
-
return !!(e && typeof e == "object" && e.type ===
|
744
|
+
function Be(e) {
|
745
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
740
746
|
}
|
741
|
-
var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
742
|
-
function
|
747
|
+
var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
748
|
+
function Fr(e) {
|
743
749
|
var t = {};
|
744
|
-
return e.replace(
|
750
|
+
return e.replace(Dr, function(r) {
|
745
751
|
var n = r.length;
|
746
752
|
switch (r[0]) {
|
747
753
|
case "G":
|
@@ -830,46 +836,36 @@ function jr(e) {
|
|
830
836
|
return "";
|
831
837
|
}), t;
|
832
838
|
}
|
833
|
-
var
|
834
|
-
|
835
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
836
|
-
r = arguments[n];
|
837
|
-
for (var s in r)
|
838
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
839
|
-
}
|
840
|
-
return t;
|
841
|
-
}, E.apply(this, arguments);
|
842
|
-
};
|
843
|
-
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
844
|
-
function kr(e) {
|
839
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
840
|
+
function Vr(e) {
|
845
841
|
if (e.length === 0)
|
846
842
|
throw new Error("Number skeleton cannot be empty");
|
847
|
-
for (var t = e.split(
|
843
|
+
for (var t = e.split(jr).filter(function(f) {
|
848
844
|
return f.length > 0;
|
849
845
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
850
846
|
var s = i[n], o = s.split("/");
|
851
847
|
if (o.length === 0)
|
852
848
|
throw new Error("Invalid number skeleton");
|
853
|
-
for (var a = o[0],
|
854
|
-
var c = l[
|
849
|
+
for (var a = o[0], u = o.slice(1), h = 0, l = u; h < l.length; h++) {
|
850
|
+
var c = l[h];
|
855
851
|
if (c.length === 0)
|
856
852
|
throw new Error("Invalid number skeleton");
|
857
853
|
}
|
858
|
-
r.push({ stem: a, options:
|
854
|
+
r.push({ stem: a, options: u });
|
859
855
|
}
|
860
856
|
return r;
|
861
857
|
}
|
862
|
-
function
|
858
|
+
function kr(e) {
|
863
859
|
return e.replace(/^(.*?)-/, "");
|
864
860
|
}
|
865
|
-
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g,
|
861
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
|
866
862
|
function Je(e) {
|
867
863
|
var t = {};
|
868
864
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tt, function(r, n, i) {
|
869
865
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
870
866
|
}), t;
|
871
867
|
}
|
872
|
-
function
|
868
|
+
function At(e) {
|
873
869
|
switch (e) {
|
874
870
|
case "sign-auto":
|
875
871
|
return {
|
@@ -909,7 +905,7 @@ function St(e) {
|
|
909
905
|
};
|
910
906
|
}
|
911
907
|
}
|
912
|
-
function
|
908
|
+
function zr(e) {
|
913
909
|
var t;
|
914
910
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
915
911
|
notation: "engineering"
|
@@ -924,10 +920,10 @@ function Wr(e) {
|
|
924
920
|
return t;
|
925
921
|
}
|
926
922
|
function qe(e) {
|
927
|
-
var t = {}, r =
|
923
|
+
var t = {}, r = At(e);
|
928
924
|
return r || t;
|
929
925
|
}
|
930
|
-
function
|
926
|
+
function Wr(e) {
|
931
927
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
932
928
|
var i = n[r];
|
933
929
|
switch (i.stem) {
|
@@ -951,7 +947,7 @@ function Zr(e) {
|
|
951
947
|
continue;
|
952
948
|
case "measure-unit":
|
953
949
|
case "unit":
|
954
|
-
t.style = "unit", t.unit =
|
950
|
+
t.style = "unit", t.unit = kr(i.options[0]);
|
955
951
|
continue;
|
956
952
|
case "compact-short":
|
957
953
|
case "K":
|
@@ -962,13 +958,13 @@ function Zr(e) {
|
|
962
958
|
t.notation = "compact", t.compactDisplay = "long";
|
963
959
|
continue;
|
964
960
|
case "scientific":
|
965
|
-
t =
|
966
|
-
return
|
961
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
962
|
+
return d(d({}, u), qe(h));
|
967
963
|
}, {}));
|
968
964
|
continue;
|
969
965
|
case "engineering":
|
970
|
-
t =
|
971
|
-
return
|
966
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
967
|
+
return d(d({}, u), qe(h));
|
972
968
|
}, {}));
|
973
969
|
continue;
|
974
970
|
case "notation-simple":
|
@@ -1013,13 +1009,13 @@ function Zr(e) {
|
|
1013
1009
|
case "integer-width":
|
1014
1010
|
if (i.options.length > 1)
|
1015
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1016
|
-
i.options[0].replace(
|
1017
|
-
if (
|
1012
|
+
i.options[0].replace(Xr, function(u, h, l, c, f, x) {
|
1013
|
+
if (h)
|
1018
1014
|
t.minimumIntegerDigits = l.length;
|
1019
1015
|
else {
|
1020
1016
|
if (c && f)
|
1021
1017
|
throw new Error("We currently do not support maximum integer digits");
|
1022
|
-
if (
|
1018
|
+
if (x)
|
1023
1019
|
throw new Error("We currently do not support exact integer digits");
|
1024
1020
|
}
|
1025
1021
|
return "";
|
@@ -1033,25 +1029,25 @@ function Zr(e) {
|
|
1033
1029
|
if (Qe.test(i.stem)) {
|
1034
1030
|
if (i.options.length > 1)
|
1035
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1036
|
-
i.stem.replace(Qe, function(
|
1037
|
-
return l === "*" ? t.minimumFractionDigits =
|
1032
|
+
i.stem.replace(Qe, function(u, h, l, c, f, x) {
|
1033
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
1038
1034
|
});
|
1039
1035
|
var s = i.options[0];
|
1040
|
-
s === "w" ? t =
|
1036
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Je(s)));
|
1041
1037
|
continue;
|
1042
1038
|
}
|
1043
1039
|
if (Tt.test(i.stem)) {
|
1044
|
-
t =
|
1040
|
+
t = d(d({}, t), Je(i.stem));
|
1045
1041
|
continue;
|
1046
1042
|
}
|
1047
|
-
var o =
|
1048
|
-
o && (t =
|
1049
|
-
var a =
|
1050
|
-
a && (t =
|
1043
|
+
var o = At(i.stem);
|
1044
|
+
o && (t = d(d({}, t), o));
|
1045
|
+
var a = zr(i.stem);
|
1046
|
+
a && (t = d(d({}, t), a));
|
1051
1047
|
}
|
1052
1048
|
return t;
|
1053
1049
|
}
|
1054
|
-
var
|
1050
|
+
var re = {
|
1055
1051
|
"001": [
|
1056
1052
|
"H",
|
1057
1053
|
"h"
|
@@ -2466,23 +2462,23 @@ var ne = {
|
|
2466
2462
|
"h"
|
2467
2463
|
]
|
2468
2464
|
};
|
2469
|
-
function
|
2465
|
+
function Zr(e, t) {
|
2470
2466
|
for (var r = "", n = 0; n < e.length; n++) {
|
2471
2467
|
var i = e.charAt(n);
|
2472
2468
|
if (i === "j") {
|
2473
2469
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2474
2470
|
s++, n++;
|
2475
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2476
|
-
for ((
|
2477
|
-
r +=
|
2471
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", h = Qr(t);
|
2472
|
+
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
2473
|
+
r += u;
|
2478
2474
|
for (; o-- > 0; )
|
2479
|
-
r =
|
2475
|
+
r = h + r;
|
2480
2476
|
} else
|
2481
2477
|
i === "J" ? r += "H" : r += i;
|
2482
2478
|
}
|
2483
2479
|
return r;
|
2484
2480
|
}
|
2485
|
-
function
|
2481
|
+
function Qr(e) {
|
2486
2482
|
var t = e.hourCycle;
|
2487
2483
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2488
2484
|
e.hourCycles && // @ts-ignore
|
@@ -2501,23 +2497,23 @@ function Jr(e) {
|
|
2501
2497
|
}
|
2502
2498
|
var r = e.language, n;
|
2503
2499
|
r !== "root" && (n = e.maximize().region);
|
2504
|
-
var i =
|
2500
|
+
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2505
2501
|
return i[0];
|
2506
2502
|
}
|
2507
|
-
var
|
2503
|
+
var Ee, Jr = new RegExp("^".concat(Ht.source, "*")), qr = new RegExp("".concat(Ht.source, "*$"));
|
2508
2504
|
function b(e, t) {
|
2509
2505
|
return { start: e, end: t };
|
2510
2506
|
}
|
2511
|
-
var
|
2507
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
2512
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2513
|
-
},
|
2509
|
+
}, Ae = !0;
|
2514
2510
|
try {
|
2515
|
-
var
|
2516
|
-
|
2511
|
+
var an = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2512
|
+
Ae = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2517
2513
|
} catch (e) {
|
2518
|
-
|
2514
|
+
Ae = !1;
|
2519
2515
|
}
|
2520
|
-
var Ye =
|
2516
|
+
var Ye = Yr ? (
|
2521
2517
|
// Native
|
2522
2518
|
function(t, r, n) {
|
2523
2519
|
return t.startsWith(r, n);
|
@@ -2527,7 +2523,7 @@ var Ye = Kr ? (
|
|
2527
2523
|
function(t, r, n) {
|
2528
2524
|
return t.slice(n, n + r.length) === r;
|
2529
2525
|
}
|
2530
|
-
),
|
2526
|
+
), Se = Kr ? String.fromCodePoint : (
|
2531
2527
|
// IE11
|
2532
2528
|
function() {
|
2533
2529
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2541,7 +2537,7 @@ var Ye = Kr ? (
|
|
2541
2537
|
}
|
2542
2538
|
), Ke = (
|
2543
2539
|
// native
|
2544
|
-
|
2540
|
+
en ? Object.fromEntries : (
|
2545
2541
|
// Ponyfill
|
2546
2542
|
function(t) {
|
2547
2543
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2551,7 +2547,7 @@ var Ye = Kr ? (
|
|
2551
2547
|
return r;
|
2552
2548
|
}
|
2553
2549
|
)
|
2554
|
-
),
|
2550
|
+
), St = tn ? (
|
2555
2551
|
// Native
|
2556
2552
|
function(t, r) {
|
2557
2553
|
return t.codePointAt(r);
|
@@ -2565,7 +2561,7 @@ var Ye = Kr ? (
|
|
2565
2561
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2566
2562
|
}
|
2567
2563
|
}
|
2568
|
-
), hn =
|
2564
|
+
), hn = rn ? (
|
2569
2565
|
// Native
|
2570
2566
|
function(t) {
|
2571
2567
|
return t.trimStart();
|
@@ -2573,9 +2569,9 @@ var Ye = Kr ? (
|
|
2573
2569
|
) : (
|
2574
2570
|
// Ponyfill
|
2575
2571
|
function(t) {
|
2576
|
-
return t.replace(
|
2572
|
+
return t.replace(Jr, "");
|
2577
2573
|
}
|
2578
|
-
),
|
2574
|
+
), un = nn ? (
|
2579
2575
|
// Native
|
2580
2576
|
function(t) {
|
2581
2577
|
return t.trimEnd();
|
@@ -2583,32 +2579,32 @@ var Ye = Kr ? (
|
|
2583
2579
|
) : (
|
2584
2580
|
// Ponyfill
|
2585
2581
|
function(t) {
|
2586
|
-
return t.replace(
|
2582
|
+
return t.replace(qr, "");
|
2587
2583
|
}
|
2588
2584
|
);
|
2589
2585
|
function Pt(e, t) {
|
2590
2586
|
return new RegExp(e, t);
|
2591
2587
|
}
|
2592
|
-
var
|
2593
|
-
if (
|
2588
|
+
var Pe;
|
2589
|
+
if (Ae) {
|
2594
2590
|
var et = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2595
|
-
|
2591
|
+
Pe = function(t, r) {
|
2596
2592
|
var n;
|
2597
2593
|
et.lastIndex = r;
|
2598
2594
|
var i = et.exec(t);
|
2599
2595
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2600
2596
|
};
|
2601
2597
|
} else
|
2602
|
-
|
2598
|
+
Pe = function(t, r) {
|
2603
2599
|
for (var n = []; ; ) {
|
2604
|
-
var i =
|
2605
|
-
if (i === void 0 || Ot(i) ||
|
2600
|
+
var i = St(t, r);
|
2601
|
+
if (i === void 0 || Ot(i) || pn(i))
|
2606
2602
|
break;
|
2607
2603
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2608
2604
|
}
|
2609
|
-
return
|
2605
|
+
return Se.apply(void 0, n);
|
2610
2606
|
};
|
2611
|
-
var
|
2607
|
+
var ln = (
|
2612
2608
|
/** @class */
|
2613
2609
|
function() {
|
2614
2610
|
function e(t, r) {
|
@@ -2632,14 +2628,14 @@ var fn = (
|
|
2632
2628
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2633
2629
|
var a = this.clonePosition();
|
2634
2630
|
this.bump(), i.push({
|
2635
|
-
type:
|
2631
|
+
type: E.pound,
|
2636
2632
|
location: b(a, this.clonePosition())
|
2637
2633
|
});
|
2638
2634
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2639
2635
|
if (n)
|
2640
2636
|
break;
|
2641
2637
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2642
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2638
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2643
2639
|
var o = this.parseTag(t, r);
|
2644
2640
|
if (o.err)
|
2645
2641
|
return o;
|
@@ -2660,7 +2656,7 @@ var fn = (
|
|
2660
2656
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2661
2657
|
return {
|
2662
2658
|
val: {
|
2663
|
-
type:
|
2659
|
+
type: E.literal,
|
2664
2660
|
value: "<".concat(i, "/>"),
|
2665
2661
|
location: b(n, this.clonePosition())
|
2666
2662
|
},
|
@@ -2672,12 +2668,12 @@ var fn = (
|
|
2672
2668
|
return s;
|
2673
2669
|
var o = s.val, a = this.clonePosition();
|
2674
2670
|
if (this.bumpIf("</")) {
|
2675
|
-
if (this.isEOF() || !
|
2671
|
+
if (this.isEOF() || !Oe(this.char()))
|
2676
2672
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
2677
|
-
var
|
2678
|
-
return i !==
|
2673
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
2674
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2679
2675
|
val: {
|
2680
|
-
type:
|
2676
|
+
type: E.tag,
|
2681
2677
|
value: i,
|
2682
2678
|
children: o,
|
2683
2679
|
location: b(n, this.clonePosition())
|
@@ -2690,7 +2686,7 @@ var fn = (
|
|
2690
2686
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2691
2687
|
}, e.prototype.parseTagName = function() {
|
2692
2688
|
var t = this.offset();
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
2689
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2694
2690
|
this.bump();
|
2695
2691
|
return this.message.slice(t, this.offset());
|
2696
2692
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2712,14 +2708,14 @@ var fn = (
|
|
2712
2708
|
}
|
2713
2709
|
break;
|
2714
2710
|
}
|
2715
|
-
var
|
2711
|
+
var u = b(n, this.clonePosition());
|
2716
2712
|
return {
|
2717
|
-
val: { type:
|
2713
|
+
val: { type: E.literal, value: i, location: u },
|
2718
2714
|
err: null
|
2719
2715
|
};
|
2720
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2721
2717
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2722
|
-
!
|
2718
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2723
2719
|
}, e.prototype.tryParseQuote = function(t) {
|
2724
2720
|
if (this.isEOF() || this.char() !== 39)
|
2725
2721
|
return null;
|
@@ -2753,12 +2749,12 @@ var fn = (
|
|
2753
2749
|
r.push(n);
|
2754
2750
|
this.bump();
|
2755
2751
|
}
|
2756
|
-
return
|
2752
|
+
return Se.apply(void 0, r);
|
2757
2753
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2758
2754
|
if (this.isEOF())
|
2759
2755
|
return null;
|
2760
2756
|
var n = this.char();
|
2761
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2757
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Se(n));
|
2762
2758
|
}, e.prototype.parseArgument = function(t, r) {
|
2763
2759
|
var n = this.clonePosition();
|
2764
2760
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2774,7 +2770,7 @@ var fn = (
|
|
2774
2770
|
case 125:
|
2775
2771
|
return this.bump(), {
|
2776
2772
|
val: {
|
2777
|
-
type:
|
2773
|
+
type: E.argument,
|
2778
2774
|
// value does not include the opening and closing braces.
|
2779
2775
|
value: i,
|
2780
2776
|
location: b(n, this.clonePosition())
|
@@ -2787,66 +2783,66 @@ var fn = (
|
|
2787
2783
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2788
2784
|
}
|
2789
2785
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2790
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2786
|
+
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2791
2787
|
this.bumpTo(i);
|
2792
2788
|
var s = this.clonePosition(), o = b(t, s);
|
2793
2789
|
return { value: n, location: o };
|
2794
2790
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2795
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2791
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2796
2792
|
switch (a) {
|
2797
2793
|
case "":
|
2798
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o,
|
2794
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, u));
|
2799
2795
|
case "number":
|
2800
2796
|
case "date":
|
2801
2797
|
case "time": {
|
2802
2798
|
this.bumpSpace();
|
2803
|
-
var
|
2799
|
+
var h = null;
|
2804
2800
|
if (this.bumpIf(",")) {
|
2805
2801
|
this.bumpSpace();
|
2806
2802
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2807
2803
|
if (c.err)
|
2808
2804
|
return c;
|
2809
|
-
var f =
|
2805
|
+
var f = un(c.val);
|
2810
2806
|
if (f.length === 0)
|
2811
2807
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2812
|
-
var
|
2813
|
-
|
2808
|
+
var x = b(l, this.clonePosition());
|
2809
|
+
h = { style: f, styleLocation: x };
|
2814
2810
|
}
|
2815
|
-
var
|
2816
|
-
if (
|
2817
|
-
return
|
2811
|
+
var g = this.tryParseArgumentClose(i);
|
2812
|
+
if (g.err)
|
2813
|
+
return g;
|
2818
2814
|
var y = b(i, this.clonePosition());
|
2819
|
-
if (
|
2820
|
-
var H = hn(
|
2815
|
+
if (h && Ye(h == null ? void 0 : h.style, "::", 0)) {
|
2816
|
+
var H = hn(h.style.slice(2));
|
2821
2817
|
if (a === "number") {
|
2822
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2818
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2823
2819
|
return c.err ? c : {
|
2824
|
-
val: { type:
|
2820
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
2825
2821
|
err: null
|
2826
2822
|
};
|
2827
2823
|
} else {
|
2828
2824
|
if (H.length === 0)
|
2829
2825
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2830
|
-
var
|
2831
|
-
this.locale && (
|
2826
|
+
var A = H;
|
2827
|
+
this.locale && (A = Zr(H, this.locale));
|
2832
2828
|
var f = {
|
2833
|
-
type:
|
2834
|
-
pattern:
|
2835
|
-
location:
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2837
|
-
},
|
2829
|
+
type: j.dateTime,
|
2830
|
+
pattern: A,
|
2831
|
+
location: h.styleLocation,
|
2832
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
2833
|
+
}, S = a === "date" ? E.date : E.time;
|
2838
2834
|
return {
|
2839
|
-
val: { type:
|
2835
|
+
val: { type: S, value: n, location: y, style: f },
|
2840
2836
|
err: null
|
2841
2837
|
};
|
2842
2838
|
}
|
2843
2839
|
}
|
2844
2840
|
return {
|
2845
2841
|
val: {
|
2846
|
-
type: a === "number" ?
|
2842
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2847
2843
|
value: n,
|
2848
2844
|
location: y,
|
2849
|
-
style: (s =
|
2845
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
2850
2846
|
},
|
2851
2847
|
err: null
|
2852
2848
|
};
|
@@ -2856,47 +2852,47 @@ var fn = (
|
|
2856
2852
|
case "select": {
|
2857
2853
|
var v = this.clonePosition();
|
2858
2854
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2859
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v,
|
2855
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2860
2856
|
this.bumpSpace();
|
2861
|
-
var
|
2862
|
-
if (a !== "select" &&
|
2857
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
2858
|
+
if (a !== "select" && N.value === "offset") {
|
2863
2859
|
if (!this.bumpIf(":"))
|
2864
2860
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2865
2861
|
this.bumpSpace();
|
2866
2862
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2867
2863
|
if (c.err)
|
2868
2864
|
return c;
|
2869
|
-
this.bumpSpace(),
|
2865
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = c.val;
|
2870
2866
|
}
|
2871
|
-
var R = this.tryParsePluralOrSelectOptions(t, a, r,
|
2867
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
2872
2868
|
if (R.err)
|
2873
2869
|
return R;
|
2874
|
-
var
|
2875
|
-
if (
|
2876
|
-
return
|
2877
|
-
var
|
2870
|
+
var g = this.tryParseArgumentClose(i);
|
2871
|
+
if (g.err)
|
2872
|
+
return g;
|
2873
|
+
var te = b(i, this.clonePosition());
|
2878
2874
|
return a === "select" ? {
|
2879
2875
|
val: {
|
2880
|
-
type:
|
2876
|
+
type: E.select,
|
2881
2877
|
value: n,
|
2882
2878
|
options: Ke(R.val),
|
2883
|
-
location:
|
2879
|
+
location: te
|
2884
2880
|
},
|
2885
2881
|
err: null
|
2886
2882
|
} : {
|
2887
2883
|
val: {
|
2888
|
-
type:
|
2884
|
+
type: E.plural,
|
2889
2885
|
value: n,
|
2890
2886
|
options: Ke(R.val),
|
2891
|
-
offset:
|
2887
|
+
offset: O,
|
2892
2888
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2893
|
-
location:
|
2889
|
+
location: te
|
2894
2890
|
},
|
2895
2891
|
err: null
|
2896
2892
|
};
|
2897
2893
|
}
|
2898
2894
|
default:
|
2899
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(o,
|
2895
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, u));
|
2900
2896
|
}
|
2901
2897
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2902
2898
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2938,50 +2934,50 @@ var fn = (
|
|
2938
2934
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2939
2935
|
var n = [];
|
2940
2936
|
try {
|
2941
|
-
n =
|
2937
|
+
n = Vr(t);
|
2942
2938
|
} catch (i) {
|
2943
2939
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2944
2940
|
}
|
2945
2941
|
return {
|
2946
2942
|
val: {
|
2947
|
-
type:
|
2943
|
+
type: j.number,
|
2948
2944
|
tokens: n,
|
2949
2945
|
location: r,
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
2951
2947
|
},
|
2952
2948
|
err: null
|
2953
2949
|
};
|
2954
2950
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2955
|
-
for (var s, o = !1, a = [],
|
2956
|
-
if (
|
2951
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2952
|
+
if (h.length === 0) {
|
2957
2953
|
var c = this.clonePosition();
|
2958
2954
|
if (r !== "select" && this.bumpIf("=")) {
|
2959
2955
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2960
2956
|
if (f.err)
|
2961
2957
|
return f;
|
2962
|
-
l = b(c, this.clonePosition()),
|
2958
|
+
l = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2963
2959
|
} else
|
2964
2960
|
break;
|
2965
2961
|
}
|
2966
|
-
if (
|
2962
|
+
if (u.has(h))
|
2967
2963
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2968
|
-
|
2969
|
-
var
|
2964
|
+
h === "other" && (o = !0), this.bumpSpace();
|
2965
|
+
var x = this.clonePosition();
|
2970
2966
|
if (!this.bumpIf("{"))
|
2971
2967
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2972
|
-
var
|
2973
|
-
if (
|
2974
|
-
return
|
2975
|
-
var y = this.tryParseArgumentClose(
|
2968
|
+
var g = this.parseMessage(t + 1, r, n);
|
2969
|
+
if (g.err)
|
2970
|
+
return g;
|
2971
|
+
var y = this.tryParseArgumentClose(x);
|
2976
2972
|
if (y.err)
|
2977
2973
|
return y;
|
2978
2974
|
a.push([
|
2979
|
-
|
2975
|
+
h,
|
2980
2976
|
{
|
2981
|
-
value:
|
2982
|
-
location: b(
|
2977
|
+
value: g.val,
|
2978
|
+
location: b(x, this.clonePosition())
|
2983
2979
|
}
|
2984
|
-
]),
|
2980
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
2985
2981
|
}
|
2986
2982
|
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2987
2983
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2994,8 +2990,8 @@ var fn = (
|
|
2994
2990
|
else
|
2995
2991
|
break;
|
2996
2992
|
}
|
2997
|
-
var
|
2998
|
-
return s ? (o *= n,
|
2993
|
+
var u = b(i, this.clonePosition());
|
2994
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
2999
2995
|
}, e.prototype.offset = function() {
|
3000
2996
|
return this.position.offset;
|
3001
2997
|
}, e.prototype.isEOF = function() {
|
@@ -3010,7 +3006,7 @@ var fn = (
|
|
3010
3006
|
var t = this.position.offset;
|
3011
3007
|
if (t >= this.message.length)
|
3012
3008
|
throw Error("out of bound");
|
3013
|
-
var r =
|
3009
|
+
var r = St(this.message, t);
|
3014
3010
|
if (r === void 0)
|
3015
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3016
3012
|
return r;
|
@@ -3061,47 +3057,47 @@ var fn = (
|
|
3061
3057
|
}, e;
|
3062
3058
|
}()
|
3063
3059
|
);
|
3064
|
-
function
|
3060
|
+
function Oe(e) {
|
3065
3061
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3066
3062
|
}
|
3067
|
-
function
|
3068
|
-
return
|
3063
|
+
function fn(e) {
|
3064
|
+
return Oe(e) || e === 47;
|
3069
3065
|
}
|
3070
|
-
function
|
3066
|
+
function cn(e) {
|
3071
3067
|
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;
|
3072
3068
|
}
|
3073
3069
|
function Ot(e) {
|
3074
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3075
3071
|
}
|
3076
|
-
function
|
3072
|
+
function pn(e) {
|
3077
3073
|
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;
|
3078
3074
|
}
|
3079
|
-
function
|
3075
|
+
function Ne(e) {
|
3080
3076
|
e.forEach(function(t) {
|
3081
3077
|
if (delete t.location, Et(t) || yt(t))
|
3082
3078
|
for (var r in t.options)
|
3083
|
-
delete t.options[r].location,
|
3079
|
+
delete t.options[r].location, Ne(t.options[r].value);
|
3084
3080
|
else
|
3085
|
-
dt(t) && vt(t.style) || (gt(t) || xt(t)) &&
|
3081
|
+
dt(t) && vt(t.style) || (gt(t) || xt(t)) && Be(t.style) ? delete t.style.location : _t(t) && Ne(t.children);
|
3086
3082
|
});
|
3087
3083
|
}
|
3088
|
-
function
|
3089
|
-
t === void 0 && (t = {}), t =
|
3090
|
-
var r = new
|
3084
|
+
function mn(e, t) {
|
3085
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3086
|
+
var r = new ln(e, t).parse();
|
3091
3087
|
if (r.err) {
|
3092
3088
|
var n = SyntaxError(m[r.err.kind]);
|
3093
3089
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3094
3090
|
}
|
3095
|
-
return t != null && t.captureLocation ||
|
3091
|
+
return t != null && t.captureLocation || Ne(r.val), r.val;
|
3096
3092
|
}
|
3097
|
-
var
|
3093
|
+
var V;
|
3098
3094
|
(function(e) {
|
3099
3095
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3100
|
-
})(
|
3101
|
-
var
|
3096
|
+
})(V || (V = {}));
|
3097
|
+
var fe = (
|
3102
3098
|
/** @class */
|
3103
3099
|
function(e) {
|
3104
|
-
|
3100
|
+
le(t, e);
|
3105
3101
|
function t(r, n, i) {
|
3106
3102
|
var s = e.call(this, r) || this;
|
3107
3103
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3113,44 +3109,44 @@ var pe = (
|
|
3113
3109
|
), tt = (
|
3114
3110
|
/** @class */
|
3115
3111
|
function(e) {
|
3116
|
-
|
3112
|
+
le(t, e);
|
3117
3113
|
function t(r, n, i, s) {
|
3118
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3114
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
3119
3115
|
}
|
3120
3116
|
return t;
|
3121
|
-
}(
|
3122
|
-
),
|
3117
|
+
}(fe)
|
3118
|
+
), bn = (
|
3123
3119
|
/** @class */
|
3124
3120
|
function(e) {
|
3125
|
-
|
3121
|
+
le(t, e);
|
3126
3122
|
function t(r, n, i) {
|
3127
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3123
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3128
3124
|
}
|
3129
3125
|
return t;
|
3130
|
-
}(
|
3131
|
-
),
|
3126
|
+
}(fe)
|
3127
|
+
), dn = (
|
3132
3128
|
/** @class */
|
3133
3129
|
function(e) {
|
3134
|
-
|
3130
|
+
le(t, e);
|
3135
3131
|
function t(r, n) {
|
3136
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3132
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
3137
3133
|
}
|
3138
3134
|
return t;
|
3139
|
-
}(
|
3135
|
+
}(fe)
|
3140
3136
|
), _;
|
3141
3137
|
(function(e) {
|
3142
3138
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3143
3139
|
})(_ || (_ = {}));
|
3144
|
-
function
|
3140
|
+
function gn(e) {
|
3145
3141
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3146
3142
|
var n = t[t.length - 1];
|
3147
3143
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3148
3144
|
}, []);
|
3149
3145
|
}
|
3150
|
-
function
|
3146
|
+
function xn(e) {
|
3151
3147
|
return typeof e == "function";
|
3152
3148
|
}
|
3153
|
-
function
|
3149
|
+
function se(e, t, r, n, i, s, o) {
|
3154
3150
|
if (e.length === 1 && Ze(e[0]))
|
3155
3151
|
return [
|
3156
3152
|
{
|
@@ -3158,8 +3154,8 @@ function oe(e, t, r, n, i, s, o) {
|
|
3158
3154
|
value: e[0].value
|
3159
3155
|
}
|
3160
3156
|
];
|
3161
|
-
for (var a = [],
|
3162
|
-
var l = u
|
3157
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3158
|
+
var l = h[u];
|
3163
3159
|
if (Ze(l)) {
|
3164
3160
|
a.push({
|
3165
3161
|
type: _.literal,
|
@@ -3167,7 +3163,7 @@ function oe(e, t, r, n, i, s, o) {
|
|
3167
3163
|
});
|
3168
3164
|
continue;
|
3169
3165
|
}
|
3170
|
-
if (
|
3166
|
+
if (Gr(l)) {
|
3171
3167
|
typeof s == "number" && a.push({
|
3172
3168
|
type: _.literal,
|
3173
3169
|
value: r.getNumberFormat(t).format(s)
|
@@ -3176,9 +3172,9 @@ function oe(e, t, r, n, i, s, o) {
|
|
3176
3172
|
}
|
3177
3173
|
var c = l.value;
|
3178
3174
|
if (!(i && c in i))
|
3179
|
-
throw new
|
3175
|
+
throw new dn(c, o);
|
3180
3176
|
var f = i[c];
|
3181
|
-
if (
|
3177
|
+
if (Ur(l)) {
|
3182
3178
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3183
3179
|
type: typeof f == "string" ? _.literal : _.object,
|
3184
3180
|
value: f
|
@@ -3186,40 +3182,40 @@ function oe(e, t, r, n, i, s, o) {
|
|
3186
3182
|
continue;
|
3187
3183
|
}
|
3188
3184
|
if (gt(l)) {
|
3189
|
-
var
|
3185
|
+
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3190
3186
|
a.push({
|
3191
3187
|
type: _.literal,
|
3192
|
-
value: r.getDateTimeFormat(t,
|
3188
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3193
3189
|
});
|
3194
3190
|
continue;
|
3195
3191
|
}
|
3196
3192
|
if (xt(l)) {
|
3197
|
-
var
|
3193
|
+
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3198
3194
|
a.push({
|
3199
3195
|
type: _.literal,
|
3200
|
-
value: r.getDateTimeFormat(t,
|
3196
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3201
3197
|
});
|
3202
3198
|
continue;
|
3203
3199
|
}
|
3204
3200
|
if (dt(l)) {
|
3205
|
-
var
|
3206
|
-
|
3201
|
+
var x = typeof l.style == "string" ? n.number[l.style] : vt(l.style) ? l.style.parsedOptions : void 0;
|
3202
|
+
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3207
3203
|
type: _.literal,
|
3208
|
-
value: r.getNumberFormat(t,
|
3204
|
+
value: r.getNumberFormat(t, x).format(f)
|
3209
3205
|
});
|
3210
3206
|
continue;
|
3211
3207
|
}
|
3212
3208
|
if (_t(l)) {
|
3213
|
-
var
|
3214
|
-
if (!
|
3215
|
-
throw new
|
3216
|
-
var
|
3217
|
-
return
|
3209
|
+
var g = l.children, y = l.value, H = i[y];
|
3210
|
+
if (!xn(H))
|
3211
|
+
throw new bn(y, "function", o);
|
3212
|
+
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3213
|
+
return O.value;
|
3218
3214
|
}));
|
3219
|
-
Array.isArray(
|
3215
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(O) {
|
3220
3216
|
return {
|
3221
|
-
type: typeof
|
3222
|
-
value:
|
3217
|
+
type: typeof O == "string" ? _.literal : _.object,
|
3218
|
+
value: O
|
3223
3219
|
};
|
3224
3220
|
}));
|
3225
3221
|
}
|
@@ -3227,38 +3223,38 @@ function oe(e, t, r, n, i, s, o) {
|
|
3227
3223
|
var v = l.options[f] || l.options.other;
|
3228
3224
|
if (!v)
|
3229
3225
|
throw new tt(l.value, f, Object.keys(l.options), o);
|
3230
|
-
a.push.apply(a,
|
3226
|
+
a.push.apply(a, se(v.value, t, r, n, i));
|
3231
3227
|
continue;
|
3232
3228
|
}
|
3233
3229
|
if (yt(l)) {
|
3234
3230
|
var v = l.options["=".concat(f)];
|
3235
3231
|
if (!v) {
|
3236
3232
|
if (!Intl.PluralRules)
|
3237
|
-
throw new
|
3233
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
3238
3234
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3239
|
-
`,
|
3240
|
-
var
|
3241
|
-
v = l.options[
|
3235
|
+
`, V.MISSING_INTL_API, o);
|
3236
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3237
|
+
v = l.options[N] || l.options.other;
|
3242
3238
|
}
|
3243
3239
|
if (!v)
|
3244
3240
|
throw new tt(l.value, f, Object.keys(l.options), o);
|
3245
|
-
a.push.apply(a,
|
3241
|
+
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3246
3242
|
continue;
|
3247
3243
|
}
|
3248
3244
|
}
|
3249
|
-
return
|
3245
|
+
return gn(a);
|
3250
3246
|
}
|
3251
|
-
function
|
3252
|
-
return t ?
|
3253
|
-
return r[n] =
|
3247
|
+
function En(e, t) {
|
3248
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3249
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3254
3250
|
}, {})) : e;
|
3255
3251
|
}
|
3256
|
-
function
|
3252
|
+
function yn(e, t) {
|
3257
3253
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3258
|
-
return r[n] =
|
3259
|
-
},
|
3254
|
+
return r[n] = En(e[n], t[n]), r;
|
3255
|
+
}, d({}, e)) : e;
|
3260
3256
|
}
|
3261
|
-
function
|
3257
|
+
function ye(e) {
|
3262
3258
|
return {
|
3263
3259
|
create: function() {
|
3264
3260
|
return {
|
@@ -3272,39 +3268,39 @@ function ve(e) {
|
|
3272
3268
|
}
|
3273
3269
|
};
|
3274
3270
|
}
|
3275
|
-
function
|
3271
|
+
function _n(e) {
|
3276
3272
|
return e === void 0 && (e = {
|
3277
3273
|
number: {},
|
3278
3274
|
dateTime: {},
|
3279
3275
|
pluralRules: {}
|
3280
3276
|
}), {
|
3281
|
-
getNumberFormat:
|
3277
|
+
getNumberFormat: ge(function() {
|
3282
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3283
3279
|
r[n] = arguments[n];
|
3284
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3280
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3285
3281
|
}, {
|
3286
|
-
cache:
|
3287
|
-
strategy:
|
3282
|
+
cache: ye(e.number),
|
3283
|
+
strategy: xe.variadic
|
3288
3284
|
}),
|
3289
|
-
getDateTimeFormat:
|
3285
|
+
getDateTimeFormat: ge(function() {
|
3290
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3291
3287
|
r[n] = arguments[n];
|
3292
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3288
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3293
3289
|
}, {
|
3294
|
-
cache:
|
3295
|
-
strategy:
|
3290
|
+
cache: ye(e.dateTime),
|
3291
|
+
strategy: xe.variadic
|
3296
3292
|
}),
|
3297
|
-
getPluralRules:
|
3293
|
+
getPluralRules: ge(function() {
|
3298
3294
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3299
3295
|
r[n] = arguments[n];
|
3300
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3296
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3301
3297
|
}, {
|
3302
|
-
cache:
|
3303
|
-
strategy:
|
3298
|
+
cache: ye(e.pluralRules),
|
3299
|
+
strategy: xe.variadic
|
3304
3300
|
})
|
3305
3301
|
};
|
3306
3302
|
}
|
3307
|
-
var
|
3303
|
+
var vn = (
|
3308
3304
|
/** @class */
|
3309
3305
|
function() {
|
3310
3306
|
function e(t, r, n, i) {
|
@@ -3314,20 +3310,20 @@ var Hn = (
|
|
3314
3310
|
number: {},
|
3315
3311
|
dateTime: {},
|
3316
3312
|
pluralRules: {}
|
3317
|
-
}, this.format = function(
|
3318
|
-
var
|
3319
|
-
if (
|
3320
|
-
return
|
3321
|
-
var l =
|
3313
|
+
}, this.format = function(u) {
|
3314
|
+
var h = s.formatToParts(u);
|
3315
|
+
if (h.length === 1)
|
3316
|
+
return h[0].value;
|
3317
|
+
var l = h.reduce(function(c, f) {
|
3322
3318
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3323
3319
|
}, []);
|
3324
3320
|
return l.length <= 1 ? l[0] || "" : l;
|
3325
|
-
}, this.formatToParts = function(
|
3326
|
-
return
|
3321
|
+
}, this.formatToParts = function(u) {
|
3322
|
+
return se(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
3327
3323
|
}, this.resolvedOptions = function() {
|
3328
|
-
var
|
3324
|
+
var u;
|
3329
3325
|
return {
|
3330
|
-
locale: ((
|
3326
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3331
3327
|
};
|
3332
3328
|
}, this.getAst = function() {
|
3333
3329
|
return s.ast;
|
@@ -3336,13 +3332,13 @@ var Hn = (
|
|
3336
3332
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3337
3333
|
var o = i || {};
|
3338
3334
|
o.formatters;
|
3339
|
-
var a =
|
3340
|
-
this.ast = e.__parse(t,
|
3335
|
+
var a = Ir(o, ["formatters"]);
|
3336
|
+
this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
|
3341
3337
|
} else
|
3342
3338
|
this.ast = t;
|
3343
3339
|
if (!Array.isArray(this.ast))
|
3344
3340
|
throw new TypeError("A message must be provided as a String or AST.");
|
3345
|
-
this.formats =
|
3341
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
3346
3342
|
}
|
3347
3343
|
return Object.defineProperty(e, "defaultLocale", {
|
3348
3344
|
get: function() {
|
@@ -3355,7 +3351,7 @@ var Hn = (
|
|
3355
3351
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3356
3352
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3357
3353
|
}
|
3358
|
-
}, e.__parse =
|
3354
|
+
}, e.__parse = mn, e.formats = {
|
3359
3355
|
number: {
|
3360
3356
|
integer: {
|
3361
3357
|
maximumFractionDigits: 0
|
@@ -3416,7 +3412,7 @@ var Hn = (
|
|
3416
3412
|
}, e;
|
3417
3413
|
}()
|
3418
3414
|
);
|
3419
|
-
function
|
3415
|
+
function Hn(e, t) {
|
3420
3416
|
if (t == null)
|
3421
3417
|
return;
|
3422
3418
|
if (t in e)
|
@@ -3437,90 +3433,90 @@ function Tn(e, t) {
|
|
3437
3433
|
n = void 0;
|
3438
3434
|
return n;
|
3439
3435
|
}
|
3440
|
-
const I = {},
|
3436
|
+
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Nt = (e, t) => {
|
3441
3437
|
if (t == null)
|
3442
3438
|
return;
|
3443
3439
|
if (t in I && e in I[t])
|
3444
3440
|
return I[t][e];
|
3445
|
-
const r =
|
3441
|
+
const r = ce(t);
|
3446
3442
|
for (let n = 0; n < r.length; n++) {
|
3447
3443
|
const i = r[n], s = An(i, e);
|
3448
3444
|
if (s)
|
3449
|
-
return
|
3445
|
+
return Tn(e, t, s);
|
3450
3446
|
}
|
3451
3447
|
};
|
3452
3448
|
let Ue;
|
3453
|
-
const
|
3454
|
-
function
|
3449
|
+
const z = ue({});
|
3450
|
+
function Bn(e) {
|
3455
3451
|
return Ue[e] || null;
|
3456
3452
|
}
|
3457
|
-
function
|
3453
|
+
function It(e) {
|
3458
3454
|
return e in Ue;
|
3459
3455
|
}
|
3460
3456
|
function An(e, t) {
|
3461
|
-
if (!
|
3457
|
+
if (!It(e))
|
3462
3458
|
return null;
|
3463
|
-
const r =
|
3464
|
-
return
|
3459
|
+
const r = Bn(e);
|
3460
|
+
return Hn(r, t);
|
3465
3461
|
}
|
3466
|
-
function
|
3462
|
+
function Sn(e) {
|
3467
3463
|
if (e == null)
|
3468
3464
|
return;
|
3469
|
-
const t =
|
3465
|
+
const t = ce(e);
|
3470
3466
|
for (let r = 0; r < t.length; r++) {
|
3471
3467
|
const n = t[r];
|
3472
|
-
if (
|
3468
|
+
if (It(n))
|
3473
3469
|
return n;
|
3474
3470
|
}
|
3475
3471
|
}
|
3476
|
-
function
|
3477
|
-
delete I[e],
|
3472
|
+
function wt(e, ...t) {
|
3473
|
+
delete I[e], z.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
3478
3474
|
}
|
3479
|
-
|
3480
|
-
[
|
3475
|
+
X(
|
3476
|
+
[z],
|
3481
3477
|
([e]) => Object.keys(e)
|
3482
3478
|
);
|
3483
|
-
|
3484
|
-
const
|
3485
|
-
function
|
3486
|
-
|
3479
|
+
z.subscribe((e) => Ue = e);
|
3480
|
+
const oe = {};
|
3481
|
+
function Pn(e, t) {
|
3482
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3487
3483
|
}
|
3488
3484
|
function Lt(e) {
|
3489
|
-
return
|
3485
|
+
return oe[e];
|
3490
3486
|
}
|
3491
|
-
function
|
3492
|
-
return
|
3487
|
+
function On(e) {
|
3488
|
+
return ce(e).map((t) => {
|
3493
3489
|
const r = Lt(t);
|
3494
3490
|
return [t, r ? [...r] : []];
|
3495
3491
|
}).filter(([, t]) => t.length > 0);
|
3496
3492
|
}
|
3497
|
-
function
|
3498
|
-
return e == null ? !1 :
|
3493
|
+
function Ie(e) {
|
3494
|
+
return e == null ? !1 : ce(e).some(
|
3499
3495
|
(t) => {
|
3500
3496
|
var r;
|
3501
3497
|
return (r = Lt(t)) == null ? void 0 : r.size;
|
3502
3498
|
}
|
3503
3499
|
);
|
3504
3500
|
}
|
3505
|
-
function
|
3501
|
+
function Nn(e, t) {
|
3506
3502
|
return Promise.all(
|
3507
|
-
t.map((n) => (
|
3508
|
-
).then((n) =>
|
3503
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3504
|
+
).then((n) => wt(e, ...n));
|
3509
3505
|
}
|
3510
|
-
const
|
3506
|
+
const Z = {};
|
3511
3507
|
function Ct(e) {
|
3512
|
-
if (!
|
3513
|
-
return e in
|
3514
|
-
const t =
|
3515
|
-
return
|
3508
|
+
if (!Ie(e))
|
3509
|
+
return e in Z ? Z[e] : Promise.resolve();
|
3510
|
+
const t = On(e);
|
3511
|
+
return Z[e] = Promise.all(
|
3516
3512
|
t.map(
|
3517
|
-
([r, n]) =>
|
3513
|
+
([r, n]) => Nn(r, n)
|
3518
3514
|
)
|
3519
3515
|
).then(() => {
|
3520
|
-
if (
|
3516
|
+
if (Ie(e))
|
3521
3517
|
return Ct(e);
|
3522
|
-
delete
|
3523
|
-
}),
|
3518
|
+
delete Z[e];
|
3519
|
+
}), Z[e];
|
3524
3520
|
}
|
3525
3521
|
const In = {
|
3526
3522
|
number: {
|
@@ -3551,150 +3547,150 @@ const In = {
|
|
3551
3547
|
timeZoneName: "short"
|
3552
3548
|
}
|
3553
3549
|
}
|
3554
|
-
},
|
3550
|
+
}, wn = {
|
3555
3551
|
fallbackLocale: null,
|
3556
3552
|
loadingDelay: 200,
|
3557
3553
|
formats: In,
|
3558
3554
|
warnOnMissingMessages: !0,
|
3559
3555
|
handleMissingMessage: void 0,
|
3560
3556
|
ignoreTag: !0
|
3561
|
-
},
|
3562
|
-
function
|
3563
|
-
return
|
3557
|
+
}, Ln = wn;
|
3558
|
+
function k() {
|
3559
|
+
return Ln;
|
3564
3560
|
}
|
3565
|
-
const
|
3566
|
-
var
|
3561
|
+
const _e = ue(!1);
|
3562
|
+
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3567
3563
|
for (var r in t || (t = {}))
|
3568
|
-
|
3564
|
+
$n.call(t, r) && nt(e, r, t[r]);
|
3569
3565
|
if (rt)
|
3570
3566
|
for (var r of rt(t))
|
3571
|
-
|
3567
|
+
Un.call(t, r) && nt(e, r, t[r]);
|
3572
3568
|
return e;
|
3573
|
-
},
|
3574
|
-
let
|
3575
|
-
const
|
3569
|
+
}, Dn = (e, t) => Mn(e, Rn(t));
|
3570
|
+
let we;
|
3571
|
+
const ae = ue(null);
|
3576
3572
|
function it(e) {
|
3577
3573
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3578
3574
|
}
|
3579
|
-
function
|
3575
|
+
function ce(e, t = k().fallbackLocale) {
|
3580
3576
|
const r = it(e);
|
3581
3577
|
return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
|
3582
3578
|
}
|
3583
|
-
function
|
3584
|
-
return
|
3579
|
+
function M() {
|
3580
|
+
return we != null ? we : void 0;
|
3585
3581
|
}
|
3586
|
-
|
3587
|
-
|
3582
|
+
ae.subscribe((e) => {
|
3583
|
+
we = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3588
3584
|
});
|
3589
|
-
const
|
3590
|
-
if (e &&
|
3591
|
-
const { loadingDelay: t } =
|
3585
|
+
const Fn = (e) => {
|
3586
|
+
if (e && Sn(e) && Ie(e)) {
|
3587
|
+
const { loadingDelay: t } = k();
|
3592
3588
|
let r;
|
3593
|
-
return typeof window != "undefined" &&
|
3594
|
-
() =>
|
3589
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3590
|
+
() => _e.set(!0),
|
3595
3591
|
t
|
3596
|
-
) :
|
3597
|
-
|
3592
|
+
) : _e.set(!0), Ct(e).then(() => {
|
3593
|
+
ae.set(e);
|
3598
3594
|
}).finally(() => {
|
3599
|
-
clearTimeout(r),
|
3595
|
+
clearTimeout(r), _e.set(!1);
|
3600
3596
|
});
|
3601
3597
|
}
|
3602
|
-
return
|
3603
|
-
},
|
3604
|
-
set:
|
3605
|
-
}),
|
3598
|
+
return ae.set(e);
|
3599
|
+
}, w = Dn(Gn({}, ae), {
|
3600
|
+
set: Fn
|
3601
|
+
}), pe = (e) => {
|
3606
3602
|
const t = /* @__PURE__ */ Object.create(null);
|
3607
3603
|
return (n) => {
|
3608
3604
|
const i = JSON.stringify(n);
|
3609
3605
|
return i in t ? t[i] : t[i] = e(n);
|
3610
3606
|
};
|
3611
3607
|
};
|
3612
|
-
var
|
3608
|
+
var jn = Object.defineProperty, he = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
3613
3609
|
for (var r in t || (t = {}))
|
3614
3610
|
Mt.call(t, r) && st(e, r, t[r]);
|
3615
|
-
if (
|
3616
|
-
for (var r of
|
3617
|
-
|
3611
|
+
if (he)
|
3612
|
+
for (var r of he(t))
|
3613
|
+
Rt.call(t, r) && st(e, r, t[r]);
|
3618
3614
|
return e;
|
3619
|
-
},
|
3615
|
+
}, W = (e, t) => {
|
3620
3616
|
var r = {};
|
3621
3617
|
for (var n in e)
|
3622
3618
|
Mt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3623
|
-
if (e != null &&
|
3624
|
-
for (var n of
|
3625
|
-
t.indexOf(n) < 0 &&
|
3619
|
+
if (e != null && he)
|
3620
|
+
for (var n of he(e))
|
3621
|
+
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
3626
3622
|
return r;
|
3627
3623
|
};
|
3628
|
-
const
|
3629
|
-
const { formats: r } =
|
3624
|
+
const K = (e, t) => {
|
3625
|
+
const { formats: r } = k();
|
3630
3626
|
if (e in r && t in r[e])
|
3631
3627
|
return r[e][t];
|
3632
3628
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3633
|
-
},
|
3629
|
+
}, Vn = pe(
|
3634
3630
|
(e) => {
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
3631
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3636
3632
|
if (r == null)
|
3637
3633
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3638
|
-
return n && (i =
|
3634
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
3639
3635
|
}
|
3640
|
-
),
|
3636
|
+
), kn = pe(
|
3641
3637
|
(e) => {
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
3638
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3643
3639
|
if (r == null)
|
3644
3640
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3645
|
-
return n ? i =
|
3641
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
3646
3642
|
}
|
3647
|
-
),
|
3643
|
+
), Xn = pe(
|
3648
3644
|
(e) => {
|
3649
|
-
var t = e, { locale: r, format: n } = t, i =
|
3645
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3650
3646
|
if (r == null)
|
3651
3647
|
throw new Error(
|
3652
3648
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3653
3649
|
);
|
3654
|
-
return n ? i =
|
3650
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
3655
3651
|
}
|
3656
|
-
),
|
3652
|
+
), zn = (e = {}) => {
|
3657
3653
|
var t = e, {
|
3658
|
-
locale: r =
|
3659
|
-
} = t, n =
|
3654
|
+
locale: r = M()
|
3655
|
+
} = t, n = W(t, [
|
3660
3656
|
"locale"
|
3661
3657
|
]);
|
3662
|
-
return
|
3663
|
-
},
|
3658
|
+
return Vn(Ge({ locale: r }, n));
|
3659
|
+
}, Wn = (e = {}) => {
|
3664
3660
|
var t = e, {
|
3665
|
-
locale: r =
|
3666
|
-
} = t, n =
|
3661
|
+
locale: r = M()
|
3662
|
+
} = t, n = W(t, [
|
3667
3663
|
"locale"
|
3668
3664
|
]);
|
3669
|
-
return
|
3670
|
-
},
|
3665
|
+
return kn(Ge({ locale: r }, n));
|
3666
|
+
}, Zn = (e = {}) => {
|
3671
3667
|
var t = e, {
|
3672
|
-
locale: r =
|
3673
|
-
} = t, n =
|
3668
|
+
locale: r = M()
|
3669
|
+
} = t, n = W(t, [
|
3674
3670
|
"locale"
|
3675
3671
|
]);
|
3676
|
-
return
|
3677
|
-
},
|
3672
|
+
return Xn(Ge({ locale: r }, n));
|
3673
|
+
}, Qn = pe(
|
3678
3674
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3679
|
-
(e, t =
|
3680
|
-
ignoreTag:
|
3675
|
+
(e, t = M()) => new vn(e, t, k().formats, {
|
3676
|
+
ignoreTag: k().ignoreTag
|
3681
3677
|
})
|
3682
|
-
),
|
3678
|
+
), Jn = (e, t = {}) => {
|
3683
3679
|
var r, n, i, s;
|
3684
3680
|
let o = t;
|
3685
3681
|
typeof e == "object" && (o = e, e = o.id);
|
3686
3682
|
const {
|
3687
3683
|
values: a,
|
3688
|
-
locale:
|
3689
|
-
default:
|
3684
|
+
locale: u = M(),
|
3685
|
+
default: h
|
3690
3686
|
} = o;
|
3691
|
-
if (
|
3687
|
+
if (u == null)
|
3692
3688
|
throw new Error(
|
3693
3689
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3694
3690
|
);
|
3695
|
-
let l = Nt(e,
|
3691
|
+
let l = Nt(e, u);
|
3696
3692
|
if (!l)
|
3697
|
-
l = (s = (i = (n = (r =
|
3693
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3698
3694
|
else if (typeof l != "string")
|
3699
3695
|
return console.warn(
|
3700
3696
|
`[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.`
|
@@ -3703,7 +3699,7 @@ const ee = (e, t) => {
|
|
3703
3699
|
return l;
|
3704
3700
|
let c = l;
|
3705
3701
|
try {
|
3706
|
-
c =
|
3702
|
+
c = Qn(l, u).format(a);
|
3707
3703
|
} catch (f) {
|
3708
3704
|
f instanceof Error && console.warn(
|
3709
3705
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3711,21 +3707,21 @@ const ee = (e, t) => {
|
|
3711
3707
|
);
|
3712
3708
|
}
|
3713
3709
|
return c;
|
3714
|
-
},
|
3715
|
-
|
3716
|
-
|
3717
|
-
|
3718
|
-
|
3719
|
-
function
|
3720
|
-
|
3721
|
-
r == null && (
|
3710
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) => Nt(e, t), ti = X([w, z], () => Jn);
|
3711
|
+
X([w], () => qn);
|
3712
|
+
X([w], () => Yn);
|
3713
|
+
X([w], () => Kn);
|
3714
|
+
X([w, z], () => ei);
|
3715
|
+
function ri({ withLocale: e, translations: t }) {
|
3716
|
+
w.subscribe((r) => {
|
3717
|
+
r == null && (z.set(t), w.set(e));
|
3722
3718
|
});
|
3723
3719
|
}
|
3724
3720
|
function ot(e, t) {
|
3725
|
-
|
3721
|
+
wt(e, t);
|
3726
3722
|
}
|
3727
|
-
function
|
3728
|
-
|
3723
|
+
function ni(e) {
|
3724
|
+
w.set(e);
|
3729
3725
|
}
|
3730
3726
|
const at = {
|
3731
3727
|
en: {
|
@@ -3753,21 +3749,21 @@ const at = {
|
|
3753
3749
|
bets: "bets"
|
3754
3750
|
}
|
3755
3751
|
};
|
3756
|
-
function
|
3752
|
+
function ii(e) {
|
3757
3753
|
Zt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3758
3754
|
}
|
3759
|
-
function
|
3755
|
+
function si(e) {
|
3760
3756
|
let t, r, n, i, s;
|
3761
3757
|
return {
|
3762
3758
|
c() {
|
3763
|
-
t =
|
3759
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = qt(
|
3764
3760
|
/*progressText*/
|
3765
3761
|
e[3]
|
3766
|
-
),
|
3767
|
-
e[4]),
|
3762
|
+
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3763
|
+
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3768
3764
|
},
|
3769
3765
|
m(o, a) {
|
3770
|
-
ft(o, t, a),
|
3766
|
+
ft(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3771
3767
|
},
|
3772
3768
|
p(o, [a]) {
|
3773
3769
|
a & /*progressText*/
|
@@ -3777,82 +3773,82 @@ function oi(e) {
|
|
3777
3773
|
o[3]
|
3778
3774
|
), a & /*curTatus*/
|
3779
3775
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
3780
|
-
o[4]) &&
|
3776
|
+
o[4]) && C(r, "class", s);
|
3781
3777
|
},
|
3782
3778
|
i: B,
|
3783
3779
|
o: B,
|
3784
3780
|
d(o) {
|
3785
|
-
o &&
|
3781
|
+
o && Ce(t), e[13](null), e[14](null), e[15](null);
|
3786
3782
|
}
|
3787
3783
|
};
|
3788
3784
|
}
|
3789
|
-
function
|
3785
|
+
function oi(e, t, r) {
|
3790
3786
|
let n;
|
3791
|
-
Wt(e,
|
3792
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
3793
|
-
|
3794
|
-
const
|
3795
|
-
fetch(
|
3796
|
-
Object.keys(
|
3797
|
-
ot(De,
|
3787
|
+
Wt(e, ti, (p) => r(20, n = p));
|
3788
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: u } = t, { translationurl: h = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, A, S, v = "0px", N = "active";
|
3789
|
+
ri({ withLocale: "en", translations: {} });
|
3790
|
+
const O = () => {
|
3791
|
+
fetch(h).then((L) => L.json()).then((L) => {
|
3792
|
+
Object.keys(L).forEach((De) => {
|
3793
|
+
ot(De, L[De]);
|
3798
3794
|
});
|
3799
|
-
}).catch((
|
3800
|
-
console.log(
|
3795
|
+
}).catch((L) => {
|
3796
|
+
console.log(L);
|
3801
3797
|
});
|
3802
3798
|
};
|
3803
3799
|
Object.keys(at).forEach((p) => {
|
3804
3800
|
ot(p, at[p]);
|
3805
3801
|
});
|
3806
3802
|
const R = () => {
|
3807
|
-
|
3808
|
-
},
|
3803
|
+
ni(a);
|
3804
|
+
}, te = () => {
|
3809
3805
|
let p = (i / s * 100).toFixed(l);
|
3810
3806
|
setTimeout(
|
3811
3807
|
() => {
|
3812
3808
|
o || o === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3813
3809
|
},
|
3814
3810
|
y ? 573 : 0
|
3815
|
-
), p == 0 || p == 100 ? (
|
3816
|
-
},
|
3817
|
-
r(4,
|
3811
|
+
), p == 0 || p == 100 ? (A = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (A = `${f.offsetHeight}px`, H = A, S = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", A), g.style.setProperty("--halfOfTriangleHeight", S), g.style.setProperty("--stepBarBorderRadius", v);
|
3812
|
+
}, $t = () => {
|
3813
|
+
r(4, N = u == "active" ? "" : "inactive");
|
3818
3814
|
};
|
3819
3815
|
function Ut(p) {
|
3820
|
-
|
3821
|
-
|
3816
|
+
q[p ? "unshift" : "push"](() => {
|
3817
|
+
x = p, r(1, x);
|
3822
3818
|
});
|
3823
3819
|
}
|
3824
3820
|
function Gt(p) {
|
3825
|
-
|
3826
|
-
|
3821
|
+
q[p ? "unshift" : "push"](() => {
|
3822
|
+
g = p, r(2, g);
|
3827
3823
|
});
|
3828
3824
|
}
|
3829
3825
|
function Dt(p) {
|
3830
|
-
|
3826
|
+
q[p ? "unshift" : "push"](() => {
|
3831
3827
|
f = p, r(0, f);
|
3832
3828
|
});
|
3833
3829
|
}
|
3834
3830
|
return e.$$set = (p) => {
|
3835
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9,
|
3831
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9, u = p.status), "translationurl" in p && r(10, h = p.translationurl), "progressfractiondigit" in p && r(11, l = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3836
3832
|
}, e.$$.update = () => {
|
3837
3833
|
e.$$.dirty & /*triggerreset, total*/
|
3838
3834
|
4160 && c && s && setTimeout(() => {
|
3839
|
-
|
3835
|
+
te();
|
3840
3836
|
}), e.$$.dirty & /*lang*/
|
3841
3837
|
256 && a && R(), e.$$.dirty & /*status*/
|
3842
|
-
512 &&
|
3843
|
-
1024 &&
|
3838
|
+
512 && u && $t(), e.$$.dirty & /*translationurl*/
|
3839
|
+
1024 && h && O();
|
3844
3840
|
}, [
|
3845
3841
|
f,
|
3842
|
+
x,
|
3846
3843
|
g,
|
3847
|
-
d,
|
3848
3844
|
y,
|
3849
|
-
|
3845
|
+
N,
|
3850
3846
|
i,
|
3851
3847
|
s,
|
3852
3848
|
o,
|
3853
3849
|
a,
|
3854
|
-
h,
|
3855
3850
|
u,
|
3851
|
+
h,
|
3856
3852
|
l,
|
3857
3853
|
c,
|
3858
3854
|
Ut,
|
@@ -3860,14 +3856,14 @@ function ai(e, t, r) {
|
|
3860
3856
|
Dt
|
3861
3857
|
];
|
3862
3858
|
}
|
3863
|
-
class
|
3859
|
+
class ai extends cr {
|
3864
3860
|
constructor(t) {
|
3865
3861
|
super(), lr(
|
3866
3862
|
this,
|
3867
3863
|
t,
|
3868
|
-
ai,
|
3869
3864
|
oi,
|
3870
|
-
|
3865
|
+
si,
|
3866
|
+
ut,
|
3871
3867
|
{
|
3872
3868
|
currentstep: 5,
|
3873
3869
|
total: 6,
|
@@ -3878,7 +3874,7 @@ class ui extends cr {
|
|
3878
3874
|
progressfractiondigit: 11,
|
3879
3875
|
triggerreset: 12
|
3880
3876
|
},
|
3881
|
-
|
3877
|
+
ii
|
3882
3878
|
);
|
3883
3879
|
}
|
3884
3880
|
get currentstep() {
|
@@ -3930,7 +3926,7 @@ class ui extends cr {
|
|
3930
3926
|
this.$$set({ triggerreset: t }), P();
|
3931
3927
|
}
|
3932
3928
|
}
|
3933
|
-
fr(
|
3929
|
+
fr(ai, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3934
3930
|
export {
|
3935
|
-
|
3931
|
+
ai as default
|
3936
3932
|
};
|