@everymatrix/general-icon-progress-bar 1.74.2 → 1.74.3
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-DSaIA0Oc.js → GeneralIconProgressBar-B2l5IJIC.js} +396 -394
- package/components/{GeneralIconProgressBar-DvfGRc7A.js → GeneralIconProgressBar-BQOld2VG.js} +375 -373
- package/components/GeneralIconProgressBar-j-fA-plB.cjs +16 -0
- 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-DvairRCn.cjs +0 -16
package/components/{GeneralIconProgressBar-DvfGRc7A.js → GeneralIconProgressBar-BQOld2VG.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function tt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Ue() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function K(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(tt);
|
11
11
|
}
|
12
12
|
function Ie(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function rt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Ct(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function nt(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function it(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Mt(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(nt(t, r));
|
32
32
|
}
|
33
33
|
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Rt(e, t, r) {
|
37
|
+
const n = $t(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = Z("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, Ut(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function $t(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,14 +50,14 @@ function Ut(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function Ut(e, t) {
|
54
54
|
return re(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function it(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
63
|
function we(e) {
|
@@ -66,20 +66,20 @@ function we(e) {
|
|
66
66
|
function Z(e) {
|
67
67
|
return document.createElement(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Gt(e) {
|
70
70
|
return document.createTextNode(e);
|
71
71
|
}
|
72
72
|
function L(e, t, r) {
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
74
74
|
}
|
75
|
-
function
|
75
|
+
function Dt(e) {
|
76
76
|
return Array.from(e.childNodes);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function Ft(e, t) {
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
80
80
|
t);
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function jt(e) {
|
83
83
|
const t = {};
|
84
84
|
return e.childNodes.forEach(
|
85
85
|
/** @param {Element} node */
|
@@ -94,10 +94,10 @@ function Q(e) {
|
|
94
94
|
}
|
95
95
|
const U = [], J = [];
|
96
96
|
let G = [];
|
97
|
-
const
|
97
|
+
const Ge = [], Vt = /* @__PURE__ */ Promise.resolve();
|
98
98
|
let ye = !1;
|
99
|
-
function
|
100
|
-
ye || (ye = !0,
|
99
|
+
function kt() {
|
100
|
+
ye || (ye = !0, Vt.then(S));
|
101
101
|
}
|
102
102
|
function _e(e) {
|
103
103
|
G.push(e);
|
@@ -112,7 +112,7 @@ function S() {
|
|
112
112
|
try {
|
113
113
|
for (; R < U.length; ) {
|
114
114
|
const t = U[R];
|
115
|
-
R++, Q(t),
|
115
|
+
R++, Q(t), Xt(t.$$);
|
116
116
|
}
|
117
117
|
} catch (t) {
|
118
118
|
throw U.length = 0, R = 0, t;
|
@@ -125,50 +125,50 @@ function S() {
|
|
125
125
|
}
|
126
126
|
G.length = 0;
|
127
127
|
} while (U.length);
|
128
|
-
for (;
|
129
|
-
|
128
|
+
for (; Ge.length; )
|
129
|
+
Ge.pop()();
|
130
130
|
ye = !1, pe.clear(), Q(e);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function Xt(e) {
|
133
133
|
if (e.fragment !== null) {
|
134
134
|
e.update(), K(e.before_update);
|
135
135
|
const t = e.dirty;
|
136
136
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
137
137
|
}
|
138
138
|
}
|
139
|
-
function
|
139
|
+
function zt(e) {
|
140
140
|
const t = [], r = [];
|
141
141
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
142
142
|
}
|
143
|
-
const
|
144
|
-
function
|
145
|
-
e && e.i && (
|
143
|
+
const Wt = /* @__PURE__ */ new Set();
|
144
|
+
function Zt(e, t) {
|
145
|
+
e && e.i && (Wt.delete(e), e.i(t));
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function Qt(e, t, r) {
|
148
148
|
const { fragment: n, after_update: i } = e.$$;
|
149
149
|
n && n.m(t, r), _e(() => {
|
150
|
-
const s = e.$$.on_mount.map(
|
150
|
+
const s = e.$$.on_mount.map(tt).filter(Ie);
|
151
151
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
152
152
|
}), i.forEach(_e);
|
153
153
|
}
|
154
|
-
function
|
154
|
+
function Jt(e, t) {
|
155
155
|
const r = e.$$;
|
156
|
-
r.fragment !== null && (
|
156
|
+
r.fragment !== null && (zt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
158
|
+
function qt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (U.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function Yt(e, t, r, n, i, s, a = null, o = [-1]) {
|
162
162
|
const l = Le;
|
163
163
|
Q(e);
|
164
|
-
const
|
164
|
+
const u = e.$$ = {
|
165
165
|
fragment: null,
|
166
166
|
ctx: [],
|
167
167
|
// state
|
168
168
|
props: s,
|
169
169
|
update: T,
|
170
170
|
not_equal: i,
|
171
|
-
bound:
|
171
|
+
bound: Ue(),
|
172
172
|
// lifecycle
|
173
173
|
on_mount: [],
|
174
174
|
on_destroy: [],
|
@@ -177,28 +177,28 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
177
177
|
after_update: [],
|
178
178
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
179
179
|
// everything else
|
180
|
-
callbacks:
|
180
|
+
callbacks: Ue(),
|
181
181
|
dirty: o,
|
182
182
|
skip_bound: !1,
|
183
183
|
root: t.target || l.$$.root
|
184
184
|
};
|
185
|
-
a && a(
|
186
|
-
let
|
187
|
-
if (
|
185
|
+
a && a(u.root);
|
186
|
+
let h = !1;
|
187
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...x) => {
|
188
188
|
const g = x.length ? x[0] : f;
|
189
|
-
return
|
190
|
-
})
|
189
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && qt(e, c)), f;
|
190
|
+
}), u.update(), h = !0, K(u.before_update), u.fragment = n(u.ctx), t.target) {
|
191
191
|
if (t.hydrate) {
|
192
|
-
const c =
|
193
|
-
|
192
|
+
const c = Dt(t.target);
|
193
|
+
u.fragment && u.fragment.l(c), c.forEach(we);
|
194
194
|
} else
|
195
|
-
|
196
|
-
t.intro &&
|
195
|
+
u.fragment && u.fragment.c();
|
196
|
+
t.intro && Zt(e.$$.fragment), Qt(e, t.target, t.anchor), S();
|
197
197
|
}
|
198
198
|
Q(l);
|
199
199
|
}
|
200
|
-
let
|
201
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let st;
|
201
|
+
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
202
202
|
/** The Svelte component constructor */
|
203
203
|
$$ctor;
|
204
204
|
/** Slots */
|
@@ -246,8 +246,8 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
246
246
|
* @param {HTMLElement} target
|
247
247
|
* @param {HTMLElement} [anchor]
|
248
248
|
*/
|
249
|
-
m: function(l,
|
250
|
-
|
249
|
+
m: function(l, u) {
|
250
|
+
it(l, s, u);
|
251
251
|
},
|
252
252
|
d: function(l) {
|
253
253
|
l && we(s);
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
257
257
|
};
|
258
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
259
259
|
return;
|
260
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = jt(this);
|
261
261
|
for (const i of this.$$s)
|
262
262
|
i in r && (t[i] = [e(i)]);
|
263
263
|
for (const i of this.attributes) {
|
@@ -344,8 +344,8 @@ function ne(e, t, r, n) {
|
|
344
344
|
return t;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
function
|
348
|
-
let a = class extends
|
347
|
+
function Kt(e, t, r, n, i, s) {
|
348
|
+
let a = class extends st {
|
349
349
|
constructor() {
|
350
350
|
super(e, r, i), this.$$p_d = t;
|
351
351
|
}
|
@@ -373,7 +373,7 @@ function er(e, t, r, n, i, s) {
|
|
373
373
|
}), e.element = /** @type {any} */
|
374
374
|
a, a;
|
375
375
|
}
|
376
|
-
class
|
376
|
+
class er {
|
377
377
|
/**
|
378
378
|
* ### PRIVATE API
|
379
379
|
*
|
@@ -392,7 +392,7 @@ class tr {
|
|
392
392
|
$$set = void 0;
|
393
393
|
/** @returns {void} */
|
394
394
|
$destroy() {
|
395
|
-
|
395
|
+
Jt(this, 1), this.$destroy = T;
|
396
396
|
}
|
397
397
|
/**
|
398
398
|
* @template {Extract<keyof Events, string>} K
|
@@ -414,28 +414,28 @@ class tr {
|
|
414
414
|
* @returns {void}
|
415
415
|
*/
|
416
416
|
$set(t) {
|
417
|
-
this.$$set && !
|
417
|
+
this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
418
418
|
}
|
419
419
|
}
|
420
|
-
const
|
421
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
420
|
+
const tr = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tr);
|
422
422
|
const $ = [];
|
423
|
-
function
|
423
|
+
function rr(e, t) {
|
424
424
|
return {
|
425
|
-
subscribe:
|
425
|
+
subscribe: ue(e, t).subscribe
|
426
426
|
};
|
427
427
|
}
|
428
|
-
function
|
428
|
+
function ue(e, t = T) {
|
429
429
|
let r;
|
430
430
|
const n = /* @__PURE__ */ new Set();
|
431
431
|
function i(o) {
|
432
|
-
if (
|
432
|
+
if (rt(e, o) && (e = o, r)) {
|
433
433
|
const l = !$.length;
|
434
|
-
for (const
|
435
|
-
|
434
|
+
for (const u of n)
|
435
|
+
u[1](), $.push(u, e);
|
436
436
|
if (l) {
|
437
|
-
for (let
|
438
|
-
$[
|
437
|
+
for (let u = 0; u < $.length; u += 2)
|
438
|
+
$[u][0]($[u + 1]);
|
439
439
|
$.length = 0;
|
440
440
|
}
|
441
441
|
}
|
@@ -444,9 +444,9 @@ function he(e, t = T) {
|
|
444
444
|
i(o(e));
|
445
445
|
}
|
446
446
|
function a(o, l = T) {
|
447
|
-
const
|
448
|
-
return n.add(
|
449
|
-
n.delete(
|
447
|
+
const u = [o, l];
|
448
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
449
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
450
450
|
};
|
451
451
|
}
|
452
452
|
return { set: i, update: s, subscribe: a };
|
@@ -456,24 +456,24 @@ function k(e, t, r) {
|
|
456
456
|
if (!i.every(Boolean))
|
457
457
|
throw new Error("derived() expects stores as input, got a falsy value");
|
458
458
|
const s = t.length < 2;
|
459
|
-
return
|
459
|
+
return rr(r, (a, o) => {
|
460
460
|
let l = !1;
|
461
|
-
const
|
462
|
-
let
|
461
|
+
const u = [];
|
462
|
+
let h = 0, c = T;
|
463
463
|
const f = () => {
|
464
|
-
if (
|
464
|
+
if (h)
|
465
465
|
return;
|
466
466
|
c();
|
467
|
-
const g = t(n ?
|
467
|
+
const g = t(n ? u[0] : u, a, o);
|
468
468
|
s ? a(g) : c = Ie(g) ? g : T;
|
469
469
|
}, x = i.map(
|
470
|
-
(g, y) =>
|
470
|
+
(g, y) => nt(
|
471
471
|
g,
|
472
472
|
(H) => {
|
473
|
-
|
473
|
+
u[y] = H, h &= ~(1 << y), l && f();
|
474
474
|
},
|
475
475
|
() => {
|
476
|
-
|
476
|
+
h |= 1 << y;
|
477
477
|
}
|
478
478
|
)
|
479
479
|
);
|
@@ -482,68 +482,68 @@ function k(e, t, r) {
|
|
482
482
|
};
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
486
|
-
return e
|
485
|
+
function nr(e) {
|
486
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
487
487
|
}
|
488
|
-
var
|
489
|
-
return
|
488
|
+
var ir = function(t) {
|
489
|
+
return sr(t) && !or(t);
|
490
490
|
};
|
491
|
-
function
|
491
|
+
function sr(e) {
|
492
492
|
return !!e && typeof e == "object";
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function or(e) {
|
495
495
|
var t = Object.prototype.toString.call(e);
|
496
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
496
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
497
497
|
}
|
498
|
-
var
|
499
|
-
function
|
498
|
+
var ar = typeof Symbol == "function" && Symbol.for, ur = ar ? Symbol.for("react.element") : 60103;
|
499
|
+
function hr(e) {
|
500
500
|
return e.$$typeof === ur;
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function lr(e) {
|
503
503
|
return Array.isArray(e) ? [] : {};
|
504
504
|
}
|
505
505
|
function q(e, t) {
|
506
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(lr(e), e, t) : e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function fr(e, t, r) {
|
509
509
|
return e.concat(t).map(function(n) {
|
510
510
|
return q(n, r);
|
511
511
|
});
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function cr(e, t) {
|
514
514
|
if (!t.customMerge)
|
515
515
|
return D;
|
516
516
|
var r = t.customMerge(e);
|
517
517
|
return typeof r == "function" ? r : D;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function pr(e) {
|
520
520
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
521
521
|
return Object.propertyIsEnumerable.call(e, t);
|
522
522
|
}) : [];
|
523
523
|
}
|
524
|
-
function
|
525
|
-
return Object.keys(e).concat(
|
524
|
+
function De(e) {
|
525
|
+
return Object.keys(e).concat(pr(e));
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function ot(e, t) {
|
528
528
|
try {
|
529
529
|
return t in e;
|
530
530
|
} catch {
|
531
531
|
return !1;
|
532
532
|
}
|
533
533
|
}
|
534
|
-
function
|
535
|
-
return
|
534
|
+
function mr(e, t) {
|
535
|
+
return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
536
536
|
}
|
537
537
|
function dr(e, t, r) {
|
538
538
|
var n = {};
|
539
|
-
return r.isMergeableObject(e) &&
|
539
|
+
return r.isMergeableObject(e) && De(e).forEach(function(i) {
|
540
540
|
n[i] = q(e[i], r);
|
541
|
-
}),
|
542
|
-
|
541
|
+
}), De(t).forEach(function(i) {
|
542
|
+
mr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = cr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
543
543
|
}), n;
|
544
544
|
}
|
545
545
|
function D(e, t, r) {
|
546
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fr, r.isMergeableObject = r.isMergeableObject || ir, r.cloneUnlessOtherwiseSpecified = q;
|
547
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
548
548
|
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : q(t, r);
|
549
549
|
}
|
@@ -554,8 +554,8 @@ D.all = function(t, r) {
|
|
554
554
|
return D(n, i, r);
|
555
555
|
}, {});
|
556
556
|
};
|
557
|
-
var
|
558
|
-
const
|
557
|
+
var br = D, gr = br;
|
558
|
+
const xr = /* @__PURE__ */ nr(gr);
|
559
559
|
/*! *****************************************************************************
|
560
560
|
Copyright (c) Microsoft Corporation.
|
561
561
|
|
@@ -578,7 +578,7 @@ var ve = function(e, t) {
|
|
578
578
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
579
579
|
}, ve(e, t);
|
580
580
|
};
|
581
|
-
function
|
581
|
+
function he(e, t) {
|
582
582
|
if (typeof t != "function" && t !== null)
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
584
584
|
ve(e, t);
|
@@ -587,17 +587,17 @@ function ue(e, t) {
|
|
587
587
|
}
|
588
588
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
589
589
|
}
|
590
|
-
var
|
591
|
-
return
|
590
|
+
var b = function() {
|
591
|
+
return b = Object.assign || function(t) {
|
592
592
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
593
593
|
r = arguments[n];
|
594
594
|
for (var s in r)
|
595
595
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
596
596
|
}
|
597
597
|
return t;
|
598
|
-
},
|
598
|
+
}, b.apply(this, arguments);
|
599
599
|
};
|
600
|
-
function
|
600
|
+
function Er(e, t) {
|
601
601
|
var r = {};
|
602
602
|
for (var n in e)
|
603
603
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -612,18 +612,18 @@ function me(e, t, r) {
|
|
612
612
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
613
613
|
return e.concat(s || t);
|
614
614
|
}
|
615
|
-
function
|
616
|
-
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer :
|
615
|
+
function de(e, t) {
|
616
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Tr, i = t && t.strategy ? t.strategy : _r;
|
617
617
|
return i(e, {
|
618
618
|
cache: r,
|
619
619
|
serializer: n
|
620
620
|
});
|
621
621
|
}
|
622
|
-
function
|
622
|
+
function yr(e) {
|
623
623
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
624
624
|
}
|
625
|
-
function
|
626
|
-
var i =
|
625
|
+
function at(e, t, r, n) {
|
626
|
+
var i = yr(n) ? n : r(n), s = t.get(i);
|
627
627
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
628
628
|
}
|
629
629
|
function ut(e, t, r) {
|
@@ -633,35 +633,37 @@ function ut(e, t, r) {
|
|
633
633
|
function Ce(e, t, r, n, i) {
|
634
634
|
return r.bind(t, e, n, i);
|
635
635
|
}
|
636
|
-
function
|
637
|
-
var r = e.length === 1 ?
|
636
|
+
function _r(e, t) {
|
637
|
+
var r = e.length === 1 ? at : ut;
|
638
638
|
return Ce(e, this, r, t.cache.create(), t.serializer);
|
639
639
|
}
|
640
|
-
function
|
640
|
+
function vr(e, t) {
|
641
641
|
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
642
642
|
}
|
643
|
-
function
|
644
|
-
return Ce(e, this,
|
643
|
+
function Hr(e, t) {
|
644
|
+
return Ce(e, this, at, t.cache.create(), t.serializer);
|
645
645
|
}
|
646
|
-
var
|
646
|
+
var Tr = function() {
|
647
647
|
return JSON.stringify(arguments);
|
648
|
-
}
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
648
|
+
}, Br = (
|
649
|
+
/** @class */
|
650
|
+
function() {
|
651
|
+
function e() {
|
652
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
653
|
+
}
|
654
|
+
return e.prototype.get = function(t) {
|
655
|
+
return this.cache[t];
|
656
|
+
}, e.prototype.set = function(t, r) {
|
657
|
+
this.cache[t] = r;
|
658
|
+
}, e;
|
659
|
+
}()
|
660
|
+
), Ar = {
|
659
661
|
create: function() {
|
660
|
-
return new
|
662
|
+
return new Br();
|
661
663
|
}
|
662
|
-
},
|
663
|
-
variadic:
|
664
|
-
monadic:
|
664
|
+
}, be = {
|
665
|
+
variadic: vr,
|
666
|
+
monadic: Hr
|
665
667
|
}, m;
|
666
668
|
(function(e) {
|
667
669
|
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";
|
@@ -674,31 +676,31 @@ var F;
|
|
674
676
|
(function(e) {
|
675
677
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
676
678
|
})(F || (F = {}));
|
677
|
-
function
|
679
|
+
function Fe(e) {
|
678
680
|
return e.type === E.literal;
|
679
681
|
}
|
680
682
|
function Sr(e) {
|
681
683
|
return e.type === E.argument;
|
682
684
|
}
|
683
|
-
function
|
685
|
+
function ht(e) {
|
684
686
|
return e.type === E.number;
|
685
687
|
}
|
686
|
-
function
|
688
|
+
function lt(e) {
|
687
689
|
return e.type === E.date;
|
688
690
|
}
|
689
|
-
function
|
691
|
+
function ft(e) {
|
690
692
|
return e.type === E.time;
|
691
693
|
}
|
692
|
-
function
|
694
|
+
function ct(e) {
|
693
695
|
return e.type === E.select;
|
694
696
|
}
|
695
|
-
function
|
697
|
+
function pt(e) {
|
696
698
|
return e.type === E.plural;
|
697
699
|
}
|
698
700
|
function Pr(e) {
|
699
701
|
return e.type === E.pound;
|
700
702
|
}
|
701
|
-
function
|
703
|
+
function mt(e) {
|
702
704
|
return e.type === E.tag;
|
703
705
|
}
|
704
706
|
function dt(e) {
|
@@ -707,7 +709,7 @@ function dt(e) {
|
|
707
709
|
function He(e) {
|
708
710
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
709
711
|
}
|
710
|
-
var
|
712
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
|
711
713
|
function Nr(e) {
|
712
714
|
var t = {};
|
713
715
|
return e.replace(Or, function(r) {
|
@@ -809,8 +811,8 @@ function wr(e) {
|
|
809
811
|
var s = i[n], a = s.split("/");
|
810
812
|
if (a.length === 0)
|
811
813
|
throw new Error("Invalid number skeleton");
|
812
|
-
for (var o = a[0], l = a.slice(1),
|
813
|
-
var c = u
|
814
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
815
|
+
var c = h[u];
|
814
816
|
if (c.length === 0)
|
815
817
|
throw new Error("Invalid number skeleton");
|
816
818
|
}
|
@@ -821,14 +823,14 @@ function wr(e) {
|
|
821
823
|
function Lr(e) {
|
822
824
|
return e.replace(/^(.*?)-/, "");
|
823
825
|
}
|
824
|
-
var
|
825
|
-
function
|
826
|
+
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
|
827
|
+
function Ve(e) {
|
826
828
|
var t = {};
|
827
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
829
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
|
828
830
|
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)), "";
|
829
831
|
}), t;
|
830
832
|
}
|
831
|
-
function
|
833
|
+
function Et(e) {
|
832
834
|
switch (e) {
|
833
835
|
case "sign-auto":
|
834
836
|
return {
|
@@ -876,14 +878,14 @@ function Mr(e) {
|
|
876
878
|
notation: "scientific"
|
877
879
|
}, e = e.slice(1)), t) {
|
878
880
|
var r = e.slice(0, 2);
|
879
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
881
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xt.test(e))
|
880
882
|
throw new Error("Malformed concise eng/scientific notation");
|
881
883
|
t.minimumIntegerDigits = e.length;
|
882
884
|
}
|
883
885
|
return t;
|
884
886
|
}
|
885
|
-
function
|
886
|
-
var t = {}, r =
|
887
|
+
function ke(e) {
|
888
|
+
var t = {}, r = Et(e);
|
887
889
|
return r || t;
|
888
890
|
}
|
889
891
|
function Rr(e) {
|
@@ -921,13 +923,13 @@ function Rr(e) {
|
|
921
923
|
t.notation = "compact", t.compactDisplay = "long";
|
922
924
|
continue;
|
923
925
|
case "scientific":
|
924
|
-
t =
|
925
|
-
return
|
926
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
927
|
+
return b(b({}, l), ke(u));
|
926
928
|
}, {}));
|
927
929
|
continue;
|
928
930
|
case "engineering":
|
929
|
-
t =
|
930
|
-
return
|
931
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
932
|
+
return b(b({}, l), ke(u));
|
931
933
|
}, {}));
|
932
934
|
continue;
|
933
935
|
case "notation-simple":
|
@@ -972,9 +974,9 @@ function Rr(e) {
|
|
972
974
|
case "integer-width":
|
973
975
|
if (i.options.length > 1)
|
974
976
|
throw new RangeError("integer-width stems only accept a single optional option");
|
975
|
-
i.options[0].replace(Cr, function(l,
|
976
|
-
if (
|
977
|
-
t.minimumIntegerDigits =
|
977
|
+
i.options[0].replace(Cr, function(l, u, h, c, f, x) {
|
978
|
+
if (u)
|
979
|
+
t.minimumIntegerDigits = h.length;
|
978
980
|
else {
|
979
981
|
if (c && f)
|
980
982
|
throw new Error("We currently do not support maximum integer digits");
|
@@ -985,28 +987,28 @@ function Rr(e) {
|
|
985
987
|
});
|
986
988
|
continue;
|
987
989
|
}
|
988
|
-
if (
|
990
|
+
if (xt.test(i.stem)) {
|
989
991
|
t.minimumIntegerDigits = i.stem.length;
|
990
992
|
continue;
|
991
993
|
}
|
992
|
-
if (
|
994
|
+
if (je.test(i.stem)) {
|
993
995
|
if (i.options.length > 1)
|
994
996
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
995
|
-
i.stem.replace(
|
996
|
-
return
|
997
|
+
i.stem.replace(je, function(l, u, h, c, f, x) {
|
998
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
997
999
|
});
|
998
1000
|
var s = i.options[0];
|
999
|
-
s === "w" ? t =
|
1001
|
+
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t), Ve(s)));
|
1000
1002
|
continue;
|
1001
1003
|
}
|
1002
|
-
if (
|
1003
|
-
t =
|
1004
|
+
if (gt.test(i.stem)) {
|
1005
|
+
t = b(b({}, t), Ve(i.stem));
|
1004
1006
|
continue;
|
1005
1007
|
}
|
1006
|
-
var a =
|
1007
|
-
a && (t =
|
1008
|
+
var a = Et(i.stem);
|
1009
|
+
a && (t = b(b({}, t), a));
|
1008
1010
|
var o = Mr(i.stem);
|
1009
|
-
o && (t =
|
1011
|
+
o && (t = b(b({}, t), o));
|
1010
1012
|
}
|
1011
1013
|
return t;
|
1012
1014
|
}
|
@@ -2431,11 +2433,11 @@ function $r(e, t) {
|
|
2431
2433
|
if (i === "j") {
|
2432
2434
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2433
2435
|
s++, n++;
|
2434
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
2435
|
-
for ((
|
2436
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ur(t);
|
2437
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
2436
2438
|
r += l;
|
2437
2439
|
for (; a-- > 0; )
|
2438
|
-
r =
|
2440
|
+
r = u + r;
|
2439
2441
|
} else
|
2440
2442
|
i === "J" ? r += "H" : r += i;
|
2441
2443
|
}
|
@@ -2463,20 +2465,20 @@ function Ur(e) {
|
|
2463
2465
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2464
2466
|
return i[0];
|
2465
2467
|
}
|
2466
|
-
var ge, Gr = new RegExp("^".concat(
|
2467
|
-
function
|
2468
|
+
var ge, Gr = new RegExp("^".concat(bt.source, "*")), Dr = new RegExp("".concat(bt.source, "*$"));
|
2469
|
+
function d(e, t) {
|
2468
2470
|
return { start: e, end: t };
|
2469
2471
|
}
|
2470
2472
|
var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, kr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Zr = Wr ? Number.isSafeInteger : function(e) {
|
2471
2473
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2472
2474
|
}, Te = !0;
|
2473
2475
|
try {
|
2474
|
-
var Qr =
|
2476
|
+
var Qr = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2475
2477
|
Te = ((ge = Qr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2476
2478
|
} catch {
|
2477
2479
|
Te = !1;
|
2478
2480
|
}
|
2479
|
-
var
|
2481
|
+
var Xe = Fr ? (
|
2480
2482
|
// Native
|
2481
2483
|
function(t, r, n) {
|
2482
2484
|
return t.startsWith(r, n);
|
@@ -2498,7 +2500,7 @@ var ze = Fr ? (
|
|
2498
2500
|
}
|
2499
2501
|
return n;
|
2500
2502
|
}
|
2501
|
-
),
|
2503
|
+
), ze = (
|
2502
2504
|
// native
|
2503
2505
|
Vr ? Object.fromEntries : (
|
2504
2506
|
// Ponyfill
|
@@ -2510,7 +2512,7 @@ var ze = Fr ? (
|
|
2510
2512
|
return r;
|
2511
2513
|
}
|
2512
2514
|
)
|
2513
|
-
),
|
2515
|
+
), yt = kr ? (
|
2514
2516
|
// Native
|
2515
2517
|
function(t, r) {
|
2516
2518
|
return t.codePointAt(r);
|
@@ -2545,23 +2547,23 @@ var ze = Fr ? (
|
|
2545
2547
|
return t.replace(Dr, "");
|
2546
2548
|
}
|
2547
2549
|
);
|
2548
|
-
function
|
2550
|
+
function _t(e, t) {
|
2549
2551
|
return new RegExp(e, t);
|
2550
2552
|
}
|
2551
2553
|
var Ae;
|
2552
2554
|
if (Te) {
|
2553
|
-
var
|
2555
|
+
var We = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2554
2556
|
Ae = function(t, r) {
|
2555
2557
|
var n;
|
2556
|
-
|
2557
|
-
var i =
|
2558
|
+
We.lastIndex = r;
|
2559
|
+
var i = We.exec(t);
|
2558
2560
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2559
2561
|
};
|
2560
2562
|
} else
|
2561
2563
|
Ae = function(t, r) {
|
2562
2564
|
for (var n = []; ; ) {
|
2563
|
-
var i =
|
2564
|
-
if (i === void 0 ||
|
2565
|
+
var i = yt(t, r);
|
2566
|
+
if (i === void 0 || vt(i) || tn(i))
|
2565
2567
|
break;
|
2566
2568
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2567
2569
|
}
|
@@ -2592,12 +2594,12 @@ var Yr = (
|
|
2592
2594
|
var o = this.clonePosition();
|
2593
2595
|
this.bump(), i.push({
|
2594
2596
|
type: E.pound,
|
2595
|
-
location:
|
2597
|
+
location: d(o, this.clonePosition())
|
2596
2598
|
});
|
2597
2599
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2598
2600
|
if (n)
|
2599
2601
|
break;
|
2600
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2602
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
2601
2603
|
} else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
|
2602
2604
|
var a = this.parseTag(t, r);
|
2603
2605
|
if (a.err)
|
@@ -2621,7 +2623,7 @@ var Yr = (
|
|
2621
2623
|
val: {
|
2622
2624
|
type: E.literal,
|
2623
2625
|
value: "<".concat(i, "/>"),
|
2624
|
-
location:
|
2626
|
+
location: d(n, this.clonePosition())
|
2625
2627
|
},
|
2626
2628
|
err: null
|
2627
2629
|
};
|
@@ -2632,21 +2634,21 @@ var Yr = (
|
|
2632
2634
|
var a = s.val, o = this.clonePosition();
|
2633
2635
|
if (this.bumpIf("</")) {
|
2634
2636
|
if (this.isEOF() || !Se(this.char()))
|
2635
|
-
return this.error(m.INVALID_TAG,
|
2636
|
-
var l = this.clonePosition(),
|
2637
|
-
return i !==
|
2637
|
+
return this.error(m.INVALID_TAG, d(o, this.clonePosition()));
|
2638
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
2639
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2638
2640
|
val: {
|
2639
2641
|
type: E.tag,
|
2640
2642
|
value: i,
|
2641
2643
|
children: a,
|
2642
|
-
location:
|
2644
|
+
location: d(n, this.clonePosition())
|
2643
2645
|
},
|
2644
2646
|
err: null
|
2645
|
-
} : this.error(m.INVALID_TAG,
|
2647
|
+
} : this.error(m.INVALID_TAG, d(o, this.clonePosition())));
|
2646
2648
|
} else
|
2647
|
-
return this.error(m.UNCLOSED_TAG,
|
2649
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
2648
2650
|
} else
|
2649
|
-
return this.error(m.INVALID_TAG,
|
2651
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
2650
2652
|
}, e.prototype.parseTagName = function() {
|
2651
2653
|
var t = this.offset();
|
2652
2654
|
for (this.bump(); !this.isEOF() && en(this.char()); )
|
@@ -2671,7 +2673,7 @@ var Yr = (
|
|
2671
2673
|
}
|
2672
2674
|
break;
|
2673
2675
|
}
|
2674
|
-
var l =
|
2676
|
+
var l = d(n, this.clonePosition());
|
2675
2677
|
return {
|
2676
2678
|
val: { type: E.literal, value: i, location: l },
|
2677
2679
|
err: null
|
@@ -2721,14 +2723,14 @@ var Yr = (
|
|
2721
2723
|
}, e.prototype.parseArgument = function(t, r) {
|
2722
2724
|
var n = this.clonePosition();
|
2723
2725
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2724
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2726
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2725
2727
|
if (this.char() === 125)
|
2726
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2728
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
2727
2729
|
var i = this.parseIdentifierIfPossible().value;
|
2728
2730
|
if (!i)
|
2729
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2731
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2730
2732
|
if (this.bumpSpace(), this.isEOF())
|
2731
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2733
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2732
2734
|
switch (this.char()) {
|
2733
2735
|
case 125:
|
2734
2736
|
return this.bump(), {
|
@@ -2736,49 +2738,49 @@ var Yr = (
|
|
2736
2738
|
type: E.argument,
|
2737
2739
|
// value does not include the opening and closing braces.
|
2738
2740
|
value: i,
|
2739
|
-
location:
|
2741
|
+
location: d(n, this.clonePosition())
|
2740
2742
|
},
|
2741
2743
|
err: null
|
2742
2744
|
};
|
2743
2745
|
case 44:
|
2744
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2746
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2745
2747
|
default:
|
2746
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2748
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2747
2749
|
}
|
2748
2750
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2749
2751
|
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
2750
2752
|
this.bumpTo(i);
|
2751
|
-
var s = this.clonePosition(), a =
|
2753
|
+
var s = this.clonePosition(), a = d(t, s);
|
2752
2754
|
return { value: n, location: a };
|
2753
2755
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2754
2756
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
2755
2757
|
switch (o) {
|
2756
2758
|
case "":
|
2757
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2759
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(a, l));
|
2758
2760
|
case "number":
|
2759
2761
|
case "date":
|
2760
2762
|
case "time": {
|
2761
2763
|
this.bumpSpace();
|
2762
|
-
var
|
2764
|
+
var u = null;
|
2763
2765
|
if (this.bumpIf(",")) {
|
2764
2766
|
this.bumpSpace();
|
2765
|
-
var
|
2767
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2766
2768
|
if (c.err)
|
2767
2769
|
return c;
|
2768
2770
|
var f = qr(c.val);
|
2769
2771
|
if (f.length === 0)
|
2770
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2771
|
-
var x =
|
2772
|
-
|
2772
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
2773
|
+
var x = d(h, this.clonePosition());
|
2774
|
+
u = { style: f, styleLocation: x };
|
2773
2775
|
}
|
2774
2776
|
var g = this.tryParseArgumentClose(i);
|
2775
2777
|
if (g.err)
|
2776
2778
|
return g;
|
2777
|
-
var y =
|
2778
|
-
if (
|
2779
|
-
var H = Jr(
|
2779
|
+
var y = d(i, this.clonePosition());
|
2780
|
+
if (u && Xe(u?.style, "::", 0)) {
|
2781
|
+
var H = Jr(u.style.slice(2));
|
2780
2782
|
if (o === "number") {
|
2781
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2783
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
2782
2784
|
return c.err ? c : {
|
2783
2785
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2784
2786
|
err: null
|
@@ -2791,7 +2793,7 @@ var Yr = (
|
|
2791
2793
|
var f = {
|
2792
2794
|
type: F.dateTime,
|
2793
2795
|
pattern: B,
|
2794
|
-
location:
|
2796
|
+
location: u.styleLocation,
|
2795
2797
|
parsedOptions: this.shouldParseSkeletons ? Nr(B) : {}
|
2796
2798
|
}, A = o === "date" ? E.date : E.time;
|
2797
2799
|
return {
|
@@ -2805,7 +2807,7 @@ var Yr = (
|
|
2805
2807
|
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
2806
2808
|
value: n,
|
2807
2809
|
location: y,
|
2808
|
-
style: (s =
|
2810
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
2809
2811
|
},
|
2810
2812
|
err: null
|
2811
2813
|
};
|
@@ -2815,12 +2817,12 @@ var Yr = (
|
|
2815
2817
|
case "select": {
|
2816
2818
|
var v = this.clonePosition();
|
2817
2819
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2818
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2820
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, b({}, v)));
|
2819
2821
|
this.bumpSpace();
|
2820
2822
|
var O = this.parseIdentifierIfPossible(), P = 0;
|
2821
2823
|
if (o !== "select" && O.value === "offset") {
|
2822
2824
|
if (!this.bumpIf(":"))
|
2823
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2825
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
2824
2826
|
this.bumpSpace();
|
2825
2827
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2826
2828
|
if (c.err)
|
@@ -2833,12 +2835,12 @@ var Yr = (
|
|
2833
2835
|
var g = this.tryParseArgumentClose(i);
|
2834
2836
|
if (g.err)
|
2835
2837
|
return g;
|
2836
|
-
var ee =
|
2838
|
+
var ee = d(i, this.clonePosition());
|
2837
2839
|
return o === "select" ? {
|
2838
2840
|
val: {
|
2839
2841
|
type: E.select,
|
2840
2842
|
value: n,
|
2841
|
-
options:
|
2843
|
+
options: ze(M.val),
|
2842
2844
|
location: ee
|
2843
2845
|
},
|
2844
2846
|
err: null
|
@@ -2846,7 +2848,7 @@ var Yr = (
|
|
2846
2848
|
val: {
|
2847
2849
|
type: E.plural,
|
2848
2850
|
value: n,
|
2849
|
-
options:
|
2851
|
+
options: ze(M.val),
|
2850
2852
|
offset: P,
|
2851
2853
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2852
2854
|
location: ee
|
@@ -2855,10 +2857,10 @@ var Yr = (
|
|
2855
2857
|
};
|
2856
2858
|
}
|
2857
2859
|
default:
|
2858
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2860
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(a, l));
|
2859
2861
|
}
|
2860
2862
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2861
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2863
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2862
2864
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2863
2865
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2864
2866
|
var n = this.char();
|
@@ -2867,7 +2869,7 @@ var Yr = (
|
|
2867
2869
|
this.bump();
|
2868
2870
|
var i = this.clonePosition();
|
2869
2871
|
if (!this.bumpUntil("'"))
|
2870
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2872
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
2871
2873
|
this.bump();
|
2872
2874
|
break;
|
2873
2875
|
}
|
@@ -2911,23 +2913,23 @@ var Yr = (
|
|
2911
2913
|
err: null
|
2912
2914
|
};
|
2913
2915
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2914
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
2915
|
-
if (
|
2916
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
2917
|
+
if (u.length === 0) {
|
2916
2918
|
var c = this.clonePosition();
|
2917
2919
|
if (r !== "select" && this.bumpIf("=")) {
|
2918
2920
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2919
2921
|
if (f.err)
|
2920
2922
|
return f;
|
2921
|
-
|
2923
|
+
h = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
2922
2924
|
} else
|
2923
2925
|
break;
|
2924
2926
|
}
|
2925
|
-
if (l.has(
|
2926
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
2927
|
-
|
2927
|
+
if (l.has(u))
|
2928
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
2929
|
+
u === "other" && (a = !0), this.bumpSpace();
|
2928
2930
|
var x = this.clonePosition();
|
2929
2931
|
if (!this.bumpIf("{"))
|
2930
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2932
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
2931
2933
|
var g = this.parseMessage(t + 1, r, n);
|
2932
2934
|
if (g.err)
|
2933
2935
|
return g;
|
@@ -2935,14 +2937,14 @@ var Yr = (
|
|
2935
2937
|
if (y.err)
|
2936
2938
|
return y;
|
2937
2939
|
o.push([
|
2938
|
-
|
2940
|
+
u,
|
2939
2941
|
{
|
2940
2942
|
value: g.val,
|
2941
|
-
location:
|
2943
|
+
location: d(x, this.clonePosition())
|
2942
2944
|
}
|
2943
|
-
]), l.add(
|
2945
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
2944
2946
|
}
|
2945
|
-
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2947
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
2946
2948
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2947
2949
|
var n = 1, i = this.clonePosition();
|
2948
2950
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2953,7 +2955,7 @@ var Yr = (
|
|
2953
2955
|
else
|
2954
2956
|
break;
|
2955
2957
|
}
|
2956
|
-
var l =
|
2958
|
+
var l = d(i, this.clonePosition());
|
2957
2959
|
return s ? (a *= n, Zr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2958
2960
|
}, e.prototype.offset = function() {
|
2959
2961
|
return this.position.offset;
|
@@ -2969,7 +2971,7 @@ var Yr = (
|
|
2969
2971
|
var t = this.position.offset;
|
2970
2972
|
if (t >= this.message.length)
|
2971
2973
|
throw Error("out of bound");
|
2972
|
-
var r =
|
2974
|
+
var r = yt(this.message, t);
|
2973
2975
|
if (r === void 0)
|
2974
2976
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2975
2977
|
return r;
|
@@ -2988,7 +2990,7 @@ var Yr = (
|
|
2988
2990
|
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);
|
2989
2991
|
}
|
2990
2992
|
}, e.prototype.bumpIf = function(t) {
|
2991
|
-
if (
|
2993
|
+
if (Xe(this.message, t, this.offset())) {
|
2992
2994
|
for (var r = 0; r < t.length; r++)
|
2993
2995
|
this.bump();
|
2994
2996
|
return !0;
|
@@ -3010,7 +3012,7 @@ var Yr = (
|
|
3010
3012
|
break;
|
3011
3013
|
}
|
3012
3014
|
}, e.prototype.bumpSpace = function() {
|
3013
|
-
for (; !this.isEOF() &&
|
3015
|
+
for (; !this.isEOF() && vt(this.char()); )
|
3014
3016
|
this.bump();
|
3015
3017
|
}, e.prototype.peek = function() {
|
3016
3018
|
if (this.isEOF())
|
@@ -3029,7 +3031,7 @@ function Kr(e) {
|
|
3029
3031
|
function en(e) {
|
3030
3032
|
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;
|
3031
3033
|
}
|
3032
|
-
function
|
3034
|
+
function vt(e) {
|
3033
3035
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3034
3036
|
}
|
3035
3037
|
function tn(e) {
|
@@ -3037,15 +3039,15 @@ function tn(e) {
|
|
3037
3039
|
}
|
3038
3040
|
function Pe(e) {
|
3039
3041
|
e.forEach(function(t) {
|
3040
|
-
if (delete t.location,
|
3042
|
+
if (delete t.location, ct(t) || pt(t))
|
3041
3043
|
for (var r in t.options)
|
3042
3044
|
delete t.options[r].location, Pe(t.options[r].value);
|
3043
3045
|
else
|
3044
|
-
|
3046
|
+
ht(t) && dt(t.style) || (lt(t) || ft(t)) && He(t.style) ? delete t.style.location : mt(t) && Pe(t.children);
|
3045
3047
|
});
|
3046
3048
|
}
|
3047
3049
|
function rn(e, t) {
|
3048
|
-
t === void 0 && (t = {}), t =
|
3050
|
+
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3049
3051
|
var r = new Yr(e, t).parse();
|
3050
3052
|
if (r.err) {
|
3051
3053
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3060,7 +3062,7 @@ var j;
|
|
3060
3062
|
var le = (
|
3061
3063
|
/** @class */
|
3062
3064
|
function(e) {
|
3063
|
-
|
3065
|
+
he(t, e);
|
3064
3066
|
function t(r, n, i) {
|
3065
3067
|
var s = e.call(this, r) || this;
|
3066
3068
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3069,10 +3071,10 @@ var le = (
|
|
3069
3071
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3070
3072
|
}, t;
|
3071
3073
|
}(Error)
|
3072
|
-
),
|
3074
|
+
), Ze = (
|
3073
3075
|
/** @class */
|
3074
3076
|
function(e) {
|
3075
|
-
|
3077
|
+
he(t, e);
|
3076
3078
|
function t(r, n, i, s) {
|
3077
3079
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
3078
3080
|
}
|
@@ -3081,7 +3083,7 @@ var le = (
|
|
3081
3083
|
), nn = (
|
3082
3084
|
/** @class */
|
3083
3085
|
function(e) {
|
3084
|
-
|
3086
|
+
he(t, e);
|
3085
3087
|
function t(r, n, i) {
|
3086
3088
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
3087
3089
|
}
|
@@ -3090,7 +3092,7 @@ var le = (
|
|
3090
3092
|
), sn = (
|
3091
3093
|
/** @class */
|
3092
3094
|
function(e) {
|
3093
|
-
|
3095
|
+
he(t, e);
|
3094
3096
|
function t(r, n) {
|
3095
3097
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
3096
3098
|
}
|
@@ -3110,66 +3112,66 @@ function an(e) {
|
|
3110
3112
|
return typeof e == "function";
|
3111
3113
|
}
|
3112
3114
|
function ie(e, t, r, n, i, s, a) {
|
3113
|
-
if (e.length === 1 &&
|
3115
|
+
if (e.length === 1 && Fe(e[0]))
|
3114
3116
|
return [
|
3115
3117
|
{
|
3116
3118
|
type: _.literal,
|
3117
3119
|
value: e[0].value
|
3118
3120
|
}
|
3119
3121
|
];
|
3120
|
-
for (var o = [], l = 0,
|
3121
|
-
var
|
3122
|
-
if (
|
3122
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
3123
|
+
var h = u[l];
|
3124
|
+
if (Fe(h)) {
|
3123
3125
|
o.push({
|
3124
3126
|
type: _.literal,
|
3125
|
-
value:
|
3127
|
+
value: h.value
|
3126
3128
|
});
|
3127
3129
|
continue;
|
3128
3130
|
}
|
3129
|
-
if (Pr(
|
3131
|
+
if (Pr(h)) {
|
3130
3132
|
typeof s == "number" && o.push({
|
3131
3133
|
type: _.literal,
|
3132
3134
|
value: r.getNumberFormat(t).format(s)
|
3133
3135
|
});
|
3134
3136
|
continue;
|
3135
3137
|
}
|
3136
|
-
var c =
|
3138
|
+
var c = h.value;
|
3137
3139
|
if (!(i && c in i))
|
3138
3140
|
throw new sn(c, a);
|
3139
3141
|
var f = i[c];
|
3140
|
-
if (Sr(
|
3142
|
+
if (Sr(h)) {
|
3141
3143
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3142
3144
|
type: typeof f == "string" ? _.literal : _.object,
|
3143
3145
|
value: f
|
3144
3146
|
});
|
3145
3147
|
continue;
|
3146
3148
|
}
|
3147
|
-
if (
|
3148
|
-
var x = typeof
|
3149
|
+
if (lt(h)) {
|
3150
|
+
var x = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
|
3149
3151
|
o.push({
|
3150
3152
|
type: _.literal,
|
3151
3153
|
value: r.getDateTimeFormat(t, x).format(f)
|
3152
3154
|
});
|
3153
3155
|
continue;
|
3154
3156
|
}
|
3155
|
-
if (
|
3156
|
-
var x = typeof
|
3157
|
+
if (ft(h)) {
|
3158
|
+
var x = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
|
3157
3159
|
o.push({
|
3158
3160
|
type: _.literal,
|
3159
3161
|
value: r.getDateTimeFormat(t, x).format(f)
|
3160
3162
|
});
|
3161
3163
|
continue;
|
3162
3164
|
}
|
3163
|
-
if (
|
3164
|
-
var x = typeof
|
3165
|
+
if (ht(h)) {
|
3166
|
+
var x = typeof h.style == "string" ? n.number[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
3165
3167
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3166
3168
|
type: _.literal,
|
3167
3169
|
value: r.getNumberFormat(t, x).format(f)
|
3168
3170
|
});
|
3169
3171
|
continue;
|
3170
3172
|
}
|
3171
|
-
if (
|
3172
|
-
var g =
|
3173
|
+
if (mt(h)) {
|
3174
|
+
var g = h.children, y = h.value, H = i[y];
|
3173
3175
|
if (!an(H))
|
3174
3176
|
throw new nn(y, "function", a);
|
3175
3177
|
var B = ie(g, t, r, n, i, s), A = H(B.map(function(P) {
|
@@ -3182,40 +3184,40 @@ function ie(e, t, r, n, i, s, a) {
|
|
3182
3184
|
};
|
3183
3185
|
}));
|
3184
3186
|
}
|
3185
|
-
if (
|
3186
|
-
var v =
|
3187
|
+
if (ct(h)) {
|
3188
|
+
var v = h.options[f] || h.options.other;
|
3187
3189
|
if (!v)
|
3188
|
-
throw new
|
3190
|
+
throw new Ze(h.value, f, Object.keys(h.options), a);
|
3189
3191
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3190
3192
|
continue;
|
3191
3193
|
}
|
3192
|
-
if (
|
3193
|
-
var v =
|
3194
|
+
if (pt(h)) {
|
3195
|
+
var v = h.options["=".concat(f)];
|
3194
3196
|
if (!v) {
|
3195
3197
|
if (!Intl.PluralRules)
|
3196
3198
|
throw new le(`Intl.PluralRules is not available in this environment.
|
3197
3199
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3198
3200
|
`, j.MISSING_INTL_API, a);
|
3199
|
-
var O = r.getPluralRules(t, { type:
|
3200
|
-
v =
|
3201
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
3202
|
+
v = h.options[O] || h.options.other;
|
3201
3203
|
}
|
3202
3204
|
if (!v)
|
3203
|
-
throw new
|
3204
|
-
o.push.apply(o, ie(v.value, t, r, n, i, f - (
|
3205
|
+
throw new Ze(h.value, f, Object.keys(h.options), a);
|
3206
|
+
o.push.apply(o, ie(v.value, t, r, n, i, f - (h.offset || 0)));
|
3205
3207
|
continue;
|
3206
3208
|
}
|
3207
3209
|
}
|
3208
3210
|
return on(o);
|
3209
3211
|
}
|
3210
|
-
function
|
3211
|
-
return t ?
|
3212
|
-
return r[n] =
|
3212
|
+
function un(e, t) {
|
3213
|
+
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3214
|
+
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
3213
3215
|
}, {})) : e;
|
3214
3216
|
}
|
3215
|
-
function
|
3217
|
+
function hn(e, t) {
|
3216
3218
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3217
|
-
return r[n] =
|
3218
|
-
},
|
3219
|
+
return r[n] = un(e[n], t[n]), r;
|
3220
|
+
}, b({}, e)) : e;
|
3219
3221
|
}
|
3220
3222
|
function xe(e) {
|
3221
3223
|
return {
|
@@ -3237,29 +3239,29 @@ function ln(e) {
|
|
3237
3239
|
dateTime: {},
|
3238
3240
|
pluralRules: {}
|
3239
3241
|
}), {
|
3240
|
-
getNumberFormat:
|
3242
|
+
getNumberFormat: de(function() {
|
3241
3243
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3242
3244
|
r[n] = arguments[n];
|
3243
3245
|
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
3244
3246
|
}, {
|
3245
3247
|
cache: xe(e.number),
|
3246
|
-
strategy:
|
3248
|
+
strategy: be.variadic
|
3247
3249
|
}),
|
3248
|
-
getDateTimeFormat:
|
3250
|
+
getDateTimeFormat: de(function() {
|
3249
3251
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3250
3252
|
r[n] = arguments[n];
|
3251
3253
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
3252
3254
|
}, {
|
3253
3255
|
cache: xe(e.dateTime),
|
3254
|
-
strategy:
|
3256
|
+
strategy: be.variadic
|
3255
3257
|
}),
|
3256
|
-
getPluralRules:
|
3258
|
+
getPluralRules: de(function() {
|
3257
3259
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3258
3260
|
r[n] = arguments[n];
|
3259
3261
|
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
3260
3262
|
}, {
|
3261
3263
|
cache: xe(e.pluralRules),
|
3262
|
-
strategy:
|
3264
|
+
strategy: be.variadic
|
3263
3265
|
})
|
3264
3266
|
};
|
3265
3267
|
}
|
@@ -3274,13 +3276,13 @@ var fn = (
|
|
3274
3276
|
dateTime: {},
|
3275
3277
|
pluralRules: {}
|
3276
3278
|
}, this.format = function(l) {
|
3277
|
-
var
|
3278
|
-
if (
|
3279
|
-
return
|
3280
|
-
var
|
3279
|
+
var u = s.formatToParts(l);
|
3280
|
+
if (u.length === 1)
|
3281
|
+
return u[0].value;
|
3282
|
+
var h = u.reduce(function(c, f) {
|
3281
3283
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3282
3284
|
}, []);
|
3283
|
-
return
|
3285
|
+
return h.length <= 1 ? h[0] || "" : h;
|
3284
3286
|
}, this.formatToParts = function(l) {
|
3285
3287
|
return ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
3286
3288
|
}, this.resolvedOptions = function() {
|
@@ -3295,13 +3297,13 @@ var fn = (
|
|
3295
3297
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3296
3298
|
var a = i || {};
|
3297
3299
|
a.formatters;
|
3298
|
-
var o =
|
3299
|
-
this.ast = e.__parse(t,
|
3300
|
+
var o = Er(a, ["formatters"]);
|
3301
|
+
this.ast = e.__parse(t, b(b({}, o), { locale: this.resolvedLocale }));
|
3300
3302
|
} else
|
3301
3303
|
this.ast = t;
|
3302
3304
|
if (!Array.isArray(this.ast))
|
3303
3305
|
throw new TypeError("A message must be provided as a String or AST.");
|
3304
|
-
this.formats =
|
3306
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
|
3305
3307
|
}
|
3306
3308
|
return Object.defineProperty(e, "defaultLocale", {
|
3307
3309
|
get: function() {
|
@@ -3396,60 +3398,60 @@ function cn(e, t) {
|
|
3396
3398
|
n = void 0;
|
3397
3399
|
return n;
|
3398
3400
|
}
|
3399
|
-
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r),
|
3401
|
+
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Ht = (e, t) => {
|
3400
3402
|
if (t == null)
|
3401
3403
|
return;
|
3402
3404
|
if (t in N && e in N[t])
|
3403
3405
|
return N[t][e];
|
3404
3406
|
const r = fe(t);
|
3405
3407
|
for (let n = 0; n < r.length; n++) {
|
3406
|
-
const i = r[n], s =
|
3408
|
+
const i = r[n], s = dn(i, e);
|
3407
3409
|
if (s)
|
3408
3410
|
return pn(e, t, s);
|
3409
3411
|
}
|
3410
3412
|
};
|
3411
|
-
let
|
3412
|
-
const X =
|
3413
|
+
let Me;
|
3414
|
+
const X = ue({});
|
3413
3415
|
function mn(e) {
|
3414
|
-
return
|
3416
|
+
return Me[e] || null;
|
3415
3417
|
}
|
3416
|
-
function
|
3417
|
-
return e in
|
3418
|
+
function Tt(e) {
|
3419
|
+
return e in Me;
|
3418
3420
|
}
|
3419
|
-
function
|
3420
|
-
if (!
|
3421
|
+
function dn(e, t) {
|
3422
|
+
if (!Tt(e))
|
3421
3423
|
return null;
|
3422
3424
|
const r = mn(e);
|
3423
3425
|
return cn(r, t);
|
3424
3426
|
}
|
3425
|
-
function
|
3427
|
+
function bn(e) {
|
3426
3428
|
if (e == null)
|
3427
3429
|
return;
|
3428
3430
|
const t = fe(e);
|
3429
3431
|
for (let r = 0; r < t.length; r++) {
|
3430
3432
|
const n = t[r];
|
3431
|
-
if (
|
3433
|
+
if (Tt(n))
|
3432
3434
|
return n;
|
3433
3435
|
}
|
3434
3436
|
}
|
3435
|
-
function
|
3436
|
-
delete N[e], X.update((r) => (r[e] =
|
3437
|
+
function Bt(e, ...t) {
|
3438
|
+
delete N[e], X.update((r) => (r[e] = xr.all([r[e] || {}, ...t]), r));
|
3437
3439
|
}
|
3438
3440
|
k(
|
3439
3441
|
[X],
|
3440
3442
|
([e]) => Object.keys(e)
|
3441
3443
|
);
|
3442
|
-
X.subscribe((e) =>
|
3444
|
+
X.subscribe((e) => Me = e);
|
3443
3445
|
const se = {};
|
3444
3446
|
function gn(e, t) {
|
3445
3447
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3446
3448
|
}
|
3447
|
-
function
|
3449
|
+
function At(e) {
|
3448
3450
|
return se[e];
|
3449
3451
|
}
|
3450
3452
|
function xn(e) {
|
3451
3453
|
return fe(e).map((t) => {
|
3452
|
-
const r =
|
3454
|
+
const r = At(t);
|
3453
3455
|
return [t, r ? [...r] : []];
|
3454
3456
|
}).filter(([, t]) => t.length > 0);
|
3455
3457
|
}
|
@@ -3457,17 +3459,17 @@ function Oe(e) {
|
|
3457
3459
|
return e == null ? !1 : fe(e).some(
|
3458
3460
|
(t) => {
|
3459
3461
|
var r;
|
3460
|
-
return (r =
|
3462
|
+
return (r = At(t)) == null ? void 0 : r.size;
|
3461
3463
|
}
|
3462
3464
|
);
|
3463
3465
|
}
|
3464
3466
|
function En(e, t) {
|
3465
3467
|
return Promise.all(
|
3466
3468
|
t.map((n) => (gn(e, n), n().then((i) => i.default || i)))
|
3467
|
-
).then((n) =>
|
3469
|
+
).then((n) => Bt(e, ...n));
|
3468
3470
|
}
|
3469
3471
|
const W = {};
|
3470
|
-
function
|
3472
|
+
function St(e) {
|
3471
3473
|
if (!Oe(e))
|
3472
3474
|
return e in W ? W[e] : Promise.resolve();
|
3473
3475
|
const t = xn(e);
|
@@ -3477,7 +3479,7 @@ function Pt(e) {
|
|
3477
3479
|
)
|
3478
3480
|
).then(() => {
|
3479
3481
|
if (Oe(e))
|
3480
|
-
return
|
3482
|
+
return St(e);
|
3481
3483
|
delete W[e];
|
3482
3484
|
}), W[e];
|
3483
3485
|
}
|
@@ -3521,23 +3523,23 @@ const yn = {
|
|
3521
3523
|
function V() {
|
3522
3524
|
return vn;
|
3523
3525
|
}
|
3524
|
-
const Ee =
|
3525
|
-
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors,
|
3526
|
-
for (var r in t
|
3527
|
-
An.call(t, r) &&
|
3528
|
-
if (
|
3529
|
-
for (var r of
|
3530
|
-
Sn.call(t, r) &&
|
3526
|
+
const Ee = ue(!1);
|
3527
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pn = (e, t) => {
|
3528
|
+
for (var r in t)
|
3529
|
+
An.call(t, r) && Je(e, r, t[r]);
|
3530
|
+
if (Qe)
|
3531
|
+
for (var r of Qe(t))
|
3532
|
+
Sn.call(t, r) && Je(e, r, t[r]);
|
3531
3533
|
return e;
|
3532
3534
|
}, On = (e, t) => Tn(e, Bn(t));
|
3533
3535
|
let Ne;
|
3534
|
-
const oe =
|
3535
|
-
function
|
3536
|
+
const oe = ue(null);
|
3537
|
+
function qe(e) {
|
3536
3538
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3537
3539
|
}
|
3538
3540
|
function fe(e, t = V().fallbackLocale) {
|
3539
|
-
const r =
|
3540
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3541
|
+
const r = qe(e);
|
3542
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
|
3541
3543
|
}
|
3542
3544
|
function C() {
|
3543
3545
|
return Ne ?? void 0;
|
@@ -3546,13 +3548,13 @@ oe.subscribe((e) => {
|
|
3546
3548
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3547
3549
|
});
|
3548
3550
|
const Nn = (e) => {
|
3549
|
-
if (e &&
|
3551
|
+
if (e && bn(e) && Oe(e)) {
|
3550
3552
|
const { loadingDelay: t } = V();
|
3551
3553
|
let r;
|
3552
3554
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3553
3555
|
() => Ee.set(!0),
|
3554
3556
|
t
|
3555
|
-
) : Ee.set(!0),
|
3557
|
+
) : Ee.set(!0), St(e).then(() => {
|
3556
3558
|
oe.set(e);
|
3557
3559
|
}).finally(() => {
|
3558
3560
|
clearTimeout(r), Ee.set(!1);
|
@@ -3568,20 +3570,20 @@ const Nn = (e) => {
|
|
3568
3570
|
return i in t ? t[i] : t[i] = e(n);
|
3569
3571
|
};
|
3570
3572
|
};
|
3571
|
-
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols,
|
3573
|
+
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Re = (e, t) => {
|
3572
3574
|
for (var r in t || (t = {}))
|
3573
|
-
|
3575
|
+
Pt.call(t, r) && Ye(e, r, t[r]);
|
3574
3576
|
if (ae)
|
3575
3577
|
for (var r of ae(t))
|
3576
|
-
|
3578
|
+
Ot.call(t, r) && Ye(e, r, t[r]);
|
3577
3579
|
return e;
|
3578
3580
|
}, z = (e, t) => {
|
3579
3581
|
var r = {};
|
3580
3582
|
for (var n in e)
|
3581
|
-
|
3583
|
+
Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3582
3584
|
if (e != null && ae)
|
3583
3585
|
for (var n of ae(e))
|
3584
|
-
t.indexOf(n) < 0 &&
|
3586
|
+
t.indexOf(n) < 0 && Ot.call(e, n) && (r[n] = e[n]);
|
3585
3587
|
return r;
|
3586
3588
|
};
|
3587
3589
|
const Y = (e, t) => {
|
@@ -3618,21 +3620,21 @@ const Y = (e, t) => {
|
|
3618
3620
|
} = t, n = z(t, [
|
3619
3621
|
"locale"
|
3620
3622
|
]);
|
3621
|
-
return wn(
|
3623
|
+
return wn(Re({ locale: r }, n));
|
3622
3624
|
}, Rn = (e = {}) => {
|
3623
3625
|
var t = e, {
|
3624
3626
|
locale: r = C()
|
3625
3627
|
} = t, n = z(t, [
|
3626
3628
|
"locale"
|
3627
3629
|
]);
|
3628
|
-
return Ln(
|
3630
|
+
return Ln(Re({ locale: r }, n));
|
3629
3631
|
}, $n = (e = {}) => {
|
3630
3632
|
var t = e, {
|
3631
3633
|
locale: r = C()
|
3632
3634
|
} = t, n = z(t, [
|
3633
3635
|
"locale"
|
3634
3636
|
]);
|
3635
|
-
return Cn(
|
3637
|
+
return Cn(Re({ locale: r }, n));
|
3636
3638
|
}, Un = ce(
|
3637
3639
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3638
3640
|
(e, t = C()) => new fn(e, t, V().formats, {
|
@@ -3645,24 +3647,24 @@ const Y = (e, t) => {
|
|
3645
3647
|
const {
|
3646
3648
|
values: o,
|
3647
3649
|
locale: l = C(),
|
3648
|
-
default:
|
3650
|
+
default: u
|
3649
3651
|
} = a;
|
3650
3652
|
if (l == null)
|
3651
3653
|
throw new Error(
|
3652
3654
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3653
3655
|
);
|
3654
|
-
let
|
3655
|
-
if (!
|
3656
|
-
|
3657
|
-
else if (typeof
|
3656
|
+
let h = Ht(e, l);
|
3657
|
+
if (!h)
|
3658
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
3659
|
+
else if (typeof h != "string")
|
3658
3660
|
return console.warn(
|
3659
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3660
|
-
),
|
3661
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3662
|
+
), h;
|
3661
3663
|
if (!o)
|
3662
|
-
return
|
3663
|
-
let c =
|
3664
|
+
return h;
|
3665
|
+
let c = h;
|
3664
3666
|
try {
|
3665
|
-
c = Un(
|
3667
|
+
c = Un(h, l).format(o);
|
3666
3668
|
} catch (f) {
|
3667
3669
|
f instanceof Error && console.warn(
|
3668
3670
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3670,7 +3672,7 @@ const Y = (e, t) => {
|
|
3670
3672
|
);
|
3671
3673
|
}
|
3672
3674
|
return c;
|
3673
|
-
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) =>
|
3675
|
+
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) => Ht(e, t), kn = k([I, X], () => Gn);
|
3674
3676
|
k([I], () => Dn);
|
3675
3677
|
k([I], () => Fn);
|
3676
3678
|
k([I], () => jn);
|
@@ -3680,13 +3682,13 @@ function Xn({ withLocale: e, translations: t }) {
|
|
3680
3682
|
r == null && (X.set(t), I.set(e));
|
3681
3683
|
});
|
3682
3684
|
}
|
3683
|
-
function
|
3684
|
-
|
3685
|
+
function Ke(e, t) {
|
3686
|
+
Bt(e, t);
|
3685
3687
|
}
|
3686
3688
|
function zn(e) {
|
3687
3689
|
I.set(e);
|
3688
3690
|
}
|
3689
|
-
const
|
3691
|
+
const et = {
|
3690
3692
|
en: {
|
3691
3693
|
bets: "bets"
|
3692
3694
|
},
|
@@ -3713,24 +3715,24 @@ const tt = {
|
|
3713
3715
|
}
|
3714
3716
|
};
|
3715
3717
|
function Wn(e) {
|
3716
|
-
|
3718
|
+
Rt(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}');
|
3717
3719
|
}
|
3718
3720
|
function Zn(e) {
|
3719
3721
|
let t, r, n, i, s;
|
3720
3722
|
return {
|
3721
3723
|
c() {
|
3722
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3724
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Gt(
|
3723
3725
|
/*progressText*/
|
3724
3726
|
e[3]
|
3725
3727
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3726
3728
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3727
3729
|
},
|
3728
3730
|
m(a, o) {
|
3729
|
-
|
3731
|
+
it(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3730
3732
|
},
|
3731
3733
|
p(a, [o]) {
|
3732
3734
|
o & /*progressText*/
|
3733
|
-
8 &&
|
3735
|
+
8 && Ft(
|
3734
3736
|
i,
|
3735
3737
|
/*progressText*/
|
3736
3738
|
a[3]
|
@@ -3747,59 +3749,59 @@ function Zn(e) {
|
|
3747
3749
|
}
|
3748
3750
|
function Qn(e, t, r) {
|
3749
3751
|
let n;
|
3750
|
-
|
3751
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl:
|
3752
|
+
Mt(e, kn, (p) => r(20, n = p));
|
3753
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: u = "" } = t, { progressfractiondigit: h = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, A, v = "0px", O = "active";
|
3752
3754
|
Xn({ withLocale: "en", translations: {} });
|
3753
3755
|
const P = () => {
|
3754
|
-
fetch(
|
3755
|
-
Object.keys(w).forEach((
|
3756
|
-
|
3756
|
+
fetch(u).then((w) => w.json()).then((w) => {
|
3757
|
+
Object.keys(w).forEach(($e) => {
|
3758
|
+
Ke($e, w[$e]);
|
3757
3759
|
});
|
3758
3760
|
}).catch((w) => {
|
3759
3761
|
console.log(w);
|
3760
3762
|
});
|
3761
3763
|
};
|
3762
|
-
Object.keys(
|
3763
|
-
|
3764
|
+
Object.keys(et).forEach((p) => {
|
3765
|
+
Ke(p, et[p]);
|
3764
3766
|
});
|
3765
3767
|
const M = () => {
|
3766
3768
|
zn(o);
|
3767
3769
|
}, ee = () => {
|
3768
|
-
let p = (i / s * 100).toFixed(
|
3770
|
+
let p = (i / s * 100).toFixed(h);
|
3769
3771
|
setTimeout(
|
3770
3772
|
() => {
|
3771
3773
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3772
3774
|
},
|
3773
3775
|
y ? 573 : 0
|
3774
3776
|
), p == 0 || p == 100 ? (B = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, A = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", B), g.style.setProperty("--halfOfTriangleHeight", A), g.style.setProperty("--stepBarBorderRadius", v);
|
3775
|
-
},
|
3777
|
+
}, Nt = () => {
|
3776
3778
|
r(4, O = l == "active" ? "" : "inactive");
|
3777
3779
|
};
|
3778
|
-
function
|
3780
|
+
function It(p) {
|
3779
3781
|
J[p ? "unshift" : "push"](() => {
|
3780
3782
|
x = p, r(1, x);
|
3781
3783
|
});
|
3782
3784
|
}
|
3783
|
-
function
|
3785
|
+
function wt(p) {
|
3784
3786
|
J[p ? "unshift" : "push"](() => {
|
3785
3787
|
g = p, r(2, g);
|
3786
3788
|
});
|
3787
3789
|
}
|
3788
|
-
function
|
3790
|
+
function Lt(p) {
|
3789
3791
|
J[p ? "unshift" : "push"](() => {
|
3790
3792
|
f = p, r(0, f);
|
3791
3793
|
});
|
3792
3794
|
}
|
3793
3795
|
return e.$$set = (p) => {
|
3794
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10,
|
3796
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10, u = p.translationurl), "progressfractiondigit" in p && r(11, h = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3795
3797
|
}, e.$$.update = () => {
|
3796
3798
|
e.$$.dirty & /*triggerreset, total*/
|
3797
3799
|
4160 && c && s && setTimeout(() => {
|
3798
3800
|
ee();
|
3799
3801
|
}), e.$$.dirty & /*lang*/
|
3800
3802
|
256 && o && M(), e.$$.dirty & /*status*/
|
3801
|
-
512 && l &&
|
3802
|
-
1024 &&
|
3803
|
+
512 && l && Nt(), e.$$.dirty & /*translationurl*/
|
3804
|
+
1024 && u && P();
|
3803
3805
|
}, [
|
3804
3806
|
f,
|
3805
3807
|
x,
|
@@ -3811,22 +3813,22 @@ function Qn(e, t, r) {
|
|
3811
3813
|
a,
|
3812
3814
|
o,
|
3813
3815
|
l,
|
3814
|
-
h,
|
3815
3816
|
u,
|
3817
|
+
h,
|
3816
3818
|
c,
|
3819
|
+
It,
|
3817
3820
|
wt,
|
3818
|
-
Lt
|
3819
|
-
Ct
|
3821
|
+
Lt
|
3820
3822
|
];
|
3821
3823
|
}
|
3822
|
-
class Jn extends
|
3824
|
+
class Jn extends er {
|
3823
3825
|
constructor(t) {
|
3824
|
-
super(),
|
3826
|
+
super(), Yt(
|
3825
3827
|
this,
|
3826
3828
|
t,
|
3827
3829
|
Qn,
|
3828
3830
|
Zn,
|
3829
|
-
|
3831
|
+
rt,
|
3830
3832
|
{
|
3831
3833
|
currentstep: 5,
|
3832
3834
|
total: 6,
|
@@ -3889,7 +3891,7 @@ class Jn extends tr {
|
|
3889
3891
|
this.$$set({ triggerreset: t }), S();
|
3890
3892
|
}
|
3891
3893
|
}
|
3892
|
-
|
3894
|
+
Kt(Jn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3893
3895
|
export {
|
3894
3896
|
Jn as G
|
3895
3897
|
};
|