@everymatrix/general-icon-progress-bar 1.77.18 → 1.77.20
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-D9Uqk4jK.js → GeneralIconProgressBar-Bt-psNCh.js} +698 -704
- package/components/GeneralIconProgressBar-Cmawx_Ll.cjs +16 -0
- package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-g6HVGgOD.js} +717 -723
- 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-g6HVGgOD.js}
RENAMED
@@ -1,53 +1,53 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var Gt = Object.defineProperty, Dt = Object.defineProperties;
|
2
|
+
var Ft = Object.getOwnPropertyDescriptors;
|
3
|
+
var Ge = Object.getOwnPropertySymbols;
|
4
|
+
var jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var me = (e, t, r) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, De = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
jt.call(t, r) && me(e, r, t[r]);
|
8
|
+
if (Ge)
|
9
|
+
for (var r of Ge(t))
|
10
|
+
Vt.call(t, r) && me(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var T = (e, t, r) => (
|
14
|
-
var
|
15
|
-
var s = (
|
12
|
+
}, Fe = (e, t) => Dt(e, Ft(t));
|
13
|
+
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var je = (e, t, r) => new Promise((n, i) => {
|
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 ot(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function Ve() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function ee(e) {
|
39
|
+
e.forEach(ot);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function Le(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function at(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function kt(e) {
|
48
48
|
return Object.keys(e).length === 0;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function ht(e, ...t) {
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
@@ -56,20 +56,20 @@ function lt(e, ...t) {
|
|
56
56
|
const r = e.subscribe(...t);
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
58
58
|
}
|
59
|
-
function
|
60
|
-
e.$$.on_destroy.push(
|
59
|
+
function Xt(e, t, r) {
|
60
|
+
e.$$.on_destroy.push(ht(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function ne(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
|
-
function
|
66
|
-
const n =
|
65
|
+
function zt(e, t, r) {
|
66
|
+
const n = Wt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
|
-
const i =
|
69
|
-
i.id = t, i.textContent = r,
|
68
|
+
const i = Q("style");
|
69
|
+
i.id = t, i.textContent = r, Zt(n, i);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Wt(e) {
|
73
73
|
if (!e)
|
74
74
|
return document;
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -79,36 +79,36 @@ function Qt(e) {
|
|
79
79
|
t
|
80
80
|
) : e.ownerDocument;
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return
|
82
|
+
function Zt(e, t) {
|
83
|
+
return ne(
|
84
84
|
/** @type {Document} */
|
85
85
|
e.head || e,
|
86
86
|
t
|
87
87
|
), t.sheet;
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function ut(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
|
-
function
|
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
|
-
function
|
104
|
+
function Jt(e) {
|
105
105
|
return Array.from(e.childNodes);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function qt(e, t) {
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
109
109
|
t);
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function Yt(e) {
|
112
112
|
const t = {};
|
113
113
|
return e.childNodes.forEach(
|
114
114
|
/** @param {Element} node */
|
@@ -117,117 +117,117 @@ 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
|
126
|
-
const
|
127
|
-
let
|
128
|
-
function
|
129
|
-
|
124
|
+
const G = [], q = [];
|
125
|
+
let D = [];
|
126
|
+
const ke = [], Kt = /* @__PURE__ */ Promise.resolve();
|
127
|
+
let ve = !1;
|
128
|
+
function er() {
|
129
|
+
ve || (ve = !0, Kt.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), tr(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 (
|
157
|
-
for (;
|
158
|
-
|
159
|
-
|
155
|
+
D.length = 0;
|
156
|
+
} while (G.length);
|
157
|
+
for (; ke.length; )
|
158
|
+
ke.pop()();
|
159
|
+
ve = !1, be.clear(), J(e);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function tr(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
|
-
function
|
168
|
+
function rr(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
|
-
const
|
173
|
-
function
|
174
|
-
e && e.i && (
|
172
|
+
const nr = /* @__PURE__ */ new Set();
|
173
|
+
function ir(e, t) {
|
174
|
+
e && e.i && (nr.delete(e), e.i(t));
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function sr(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(ot).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 or(e, t) {
|
184
184
|
const r = e.$$;
|
185
|
-
r.fragment !== null && (
|
185
|
+
r.fragment !== null && (rr(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 ar(e, t) {
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
const
|
192
|
-
|
193
|
-
const
|
190
|
+
function hr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
+
const u = Me;
|
192
|
+
J(e);
|
193
|
+
const h = e.$$ = {
|
194
194
|
fragment: null,
|
195
195
|
ctx: [],
|
196
196
|
// state
|
197
197
|
props: s,
|
198
198
|
update: B,
|
199
199
|
not_equal: i,
|
200
|
-
bound:
|
200
|
+
bound: Ve(),
|
201
201
|
// lifecycle
|
202
202
|
on_mount: [],
|
203
203
|
on_destroy: [],
|
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
|
-
callbacks:
|
209
|
+
callbacks: Ve(),
|
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 && ar(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
|
-
const c =
|
222
|
-
|
221
|
+
const c = Jt(t.target);
|
222
|
+
h.fragment && h.fragment.l(c), c.forEach(Ce);
|
223
223
|
} else
|
224
|
-
|
225
|
-
t.intro &&
|
224
|
+
h.fragment && h.fragment.c();
|
225
|
+
t.intro && ir(e.$$.fragment), sr(e, t.target, t.anchor), P();
|
226
226
|
}
|
227
|
-
|
227
|
+
J(u);
|
228
228
|
}
|
229
|
-
let
|
230
|
-
typeof HTMLElement == "function" && (
|
229
|
+
let lt;
|
230
|
+
typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
231
231
|
constructor(t, r, n) {
|
232
232
|
super();
|
233
233
|
/** The Svelte component constructor */
|
@@ -264,42 +264,42 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
connectedCallback() {
|
267
|
-
return
|
267
|
+
return je(this, null, function* () {
|
268
268
|
if (this.$$cn = !0, !this.$$c) {
|
269
269
|
let t = function(s) {
|
270
270
|
return () => {
|
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
|
-
|
280
|
+
m: function(h, l) {
|
281
|
+
ut(h, o, l);
|
282
282
|
},
|
283
|
-
d: function(
|
284
|
-
|
283
|
+
d: function(h) {
|
284
|
+
h && Ce(o);
|
285
285
|
}
|
286
286
|
};
|
287
287
|
};
|
288
288
|
};
|
289
289
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
290
290
|
return;
|
291
|
-
const r = {}, n =
|
291
|
+
const r = {}, n = Yt(this);
|
292
292
|
for (const s of this.$$s)
|
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]);
|
300
300
|
this.$$c = new this.$$ctor({
|
301
301
|
target: this.shadowRoot || this,
|
302
|
-
props:
|
302
|
+
props: Fe(De({}, this.$$d), {
|
303
303
|
$$slots: r,
|
304
304
|
$$scope: {
|
305
305
|
ctx: []
|
@@ -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])
|
@@ -377,8 +377,8 @@ function se(e, t, r, n) {
|
|
377
377
|
return t;
|
378
378
|
}
|
379
379
|
}
|
380
|
-
function
|
381
|
-
let o = class extends
|
380
|
+
function ur(e, t, r, n, i, s) {
|
381
|
+
let o = class extends lt {
|
382
382
|
constructor() {
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
384
384
|
}
|
@@ -393,22 +393,22 @@ 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} */
|
409
409
|
o, o;
|
410
410
|
}
|
411
|
-
class
|
411
|
+
class lr {
|
412
412
|
constructor() {
|
413
413
|
/**
|
414
414
|
* ### PRIVATE API
|
@@ -429,7 +429,7 @@ class cr {
|
|
429
429
|
}
|
430
430
|
/** @returns {void} */
|
431
431
|
$destroy() {
|
432
|
-
|
432
|
+
or(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), () => {
|
@@ -451,176 +451,190 @@ class cr {
|
|
451
451
|
* @returns {void}
|
452
452
|
*/
|
453
453
|
$set(t) {
|
454
|
-
this.$$set && !
|
454
|
+
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
455
455
|
}
|
456
456
|
}
|
457
|
-
const
|
458
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
459
|
-
const
|
460
|
-
function
|
457
|
+
const fr = "4";
|
458
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
|
459
|
+
const U = [];
|
460
|
+
function cr(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 (at(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
|
-
return
|
497
|
-
let
|
498
|
-
const
|
496
|
+
return cr(r, (o, a) => {
|
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) => ht(
|
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
|
}
|
522
|
-
function
|
522
|
+
function pr(e) {
|
523
523
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
524
524
|
}
|
525
|
-
var
|
526
|
-
return
|
525
|
+
var mr = function(t) {
|
526
|
+
return br(t) && !dr(t);
|
527
527
|
};
|
528
|
-
function
|
528
|
+
function br(e) {
|
529
529
|
return !!e && typeof e == "object";
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function dr(e) {
|
532
532
|
var t = Object.prototype.toString.call(e);
|
533
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
533
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
534
534
|
}
|
535
|
-
var
|
536
|
-
function
|
537
|
-
return e.$$typeof ===
|
535
|
+
var gr = typeof Symbol == "function" && Symbol.for, xr = gr ? Symbol.for("react.element") : 60103;
|
536
|
+
function Er(e) {
|
537
|
+
return e.$$typeof === xr;
|
538
538
|
}
|
539
|
-
function
|
539
|
+
function yr(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(yr(e), e, t) : e;
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function _r(e, t, r) {
|
546
546
|
return e.concat(t).map(function(n) {
|
547
|
-
return
|
547
|
+
return Y(n, r);
|
548
548
|
});
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function vr(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
|
-
function
|
556
|
+
function Hr(e) {
|
557
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
558
558
|
return Object.propertyIsEnumerable.call(e, t);
|
559
559
|
}) : [];
|
560
560
|
}
|
561
|
-
function
|
562
|
-
return Object.keys(e).concat(
|
561
|
+
function Xe(e) {
|
562
|
+
return Object.keys(e).concat(Hr(e));
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function ft(e, t) {
|
565
565
|
try {
|
566
566
|
return t in e;
|
567
567
|
} catch (r) {
|
568
568
|
return !1;
|
569
569
|
}
|
570
570
|
}
|
571
|
-
function
|
572
|
-
return
|
571
|
+
function Tr(e, t) {
|
572
|
+
return ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
573
573
|
}
|
574
|
-
function
|
574
|
+
function Br(e, t, r) {
|
575
575
|
var n = {};
|
576
|
-
return r.isMergeableObject(e) &&
|
577
|
-
n[i] =
|
578
|
-
}),
|
579
|
-
|
576
|
+
return r.isMergeableObject(e) && Xe(e).forEach(function(i) {
|
577
|
+
n[i] = Y(e[i], r);
|
578
|
+
}), Xe(t).forEach(function(i) {
|
579
|
+
Tr(e, i) || (ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = vr(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 ||
|
582
|
+
function F(e, t, r) {
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || mr, 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) : Br(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
|
595
|
-
const
|
596
|
-
|
597
|
-
|
594
|
+
var Ar = F, Sr = Ar;
|
595
|
+
const Pr = /* @__PURE__ */ pr(Sr);
|
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 Or(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,43 +643,43 @@ 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 : Rr, n = t && t.serializer ? t.serializer : Cr, i = t && t.strategy ? t.strategy : wr;
|
640
654
|
return i(e, {
|
641
655
|
cache: r,
|
642
656
|
serializer: n
|
643
657
|
});
|
644
658
|
}
|
645
|
-
function
|
659
|
+
function Nr(e) {
|
646
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
647
661
|
}
|
648
|
-
function
|
649
|
-
var i =
|
662
|
+
function Ir(e, t, r, n) {
|
663
|
+
var i = Nr(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 ct(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 pt(e, t, r, n, i) {
|
657
671
|
return r.bind(t, e, n, i);
|
658
672
|
}
|
659
|
-
function
|
660
|
-
var r = e.length === 1 ?
|
661
|
-
return
|
673
|
+
function wr(e, t) {
|
674
|
+
var r = e.length === 1 ? Ir : ct;
|
675
|
+
return pt(e, this, r, t.cache.create(), t.serializer);
|
662
676
|
}
|
663
|
-
function
|
664
|
-
return
|
677
|
+
function Lr(e, t) {
|
678
|
+
return pt(e, this, ct, t.cache.create(), t.serializer);
|
665
679
|
}
|
666
|
-
var
|
680
|
+
var Cr = function() {
|
667
681
|
return JSON.stringify(arguments);
|
668
|
-
},
|
682
|
+
}, Mr = (
|
669
683
|
/** @class */
|
670
684
|
function() {
|
671
685
|
function e() {
|
@@ -677,71 +691,61 @@ var $r = function() {
|
|
677
691
|
this.cache[t] = r;
|
678
692
|
}, e;
|
679
693
|
}()
|
680
|
-
),
|
694
|
+
), Rr = {
|
681
695
|
create: function() {
|
682
|
-
return new
|
696
|
+
return new Mr();
|
683
697
|
}
|
684
|
-
},
|
685
|
-
variadic:
|
686
|
-
},
|
687
|
-
return ue = Object.assign || function(t) {
|
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;
|
698
|
+
}, xe = {
|
699
|
+
variadic: Lr
|
700
|
+
}, m;
|
697
701
|
(function(e) {
|
698
702
|
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
703
|
})(m || (m = {}));
|
700
|
-
var
|
704
|
+
var E;
|
701
705
|
(function(e) {
|
702
706
|
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
|
707
|
+
})(E || (E = {}));
|
708
|
+
var j;
|
705
709
|
(function(e) {
|
706
710
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
707
|
-
})(
|
708
|
-
function
|
709
|
-
return e.type ===
|
711
|
+
})(j || (j = {}));
|
712
|
+
function ze(e) {
|
713
|
+
return e.type === E.literal;
|
714
|
+
}
|
715
|
+
function $r(e) {
|
716
|
+
return e.type === E.argument;
|
710
717
|
}
|
711
|
-
function
|
712
|
-
return e.type ===
|
718
|
+
function mt(e) {
|
719
|
+
return e.type === E.number;
|
720
|
+
}
|
721
|
+
function bt(e) {
|
722
|
+
return e.type === E.date;
|
713
723
|
}
|
714
724
|
function dt(e) {
|
715
|
-
return e.type ===
|
725
|
+
return e.type === E.time;
|
716
726
|
}
|
717
727
|
function gt(e) {
|
718
|
-
return e.type ===
|
728
|
+
return e.type === E.select;
|
719
729
|
}
|
720
730
|
function xt(e) {
|
721
|
-
return e.type ===
|
731
|
+
return e.type === E.plural;
|
732
|
+
}
|
733
|
+
function Ur(e) {
|
734
|
+
return e.type === E.pound;
|
722
735
|
}
|
723
736
|
function Et(e) {
|
724
|
-
return e.type ===
|
737
|
+
return e.type === E.tag;
|
725
738
|
}
|
726
739
|
function yt(e) {
|
727
|
-
return e.type ===
|
740
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
728
741
|
}
|
729
|
-
function
|
730
|
-
return e.type ===
|
731
|
-
}
|
732
|
-
function _t(e) {
|
733
|
-
return e.type === x.tag;
|
734
|
-
}
|
735
|
-
function vt(e) {
|
736
|
-
return !!(e && typeof e == "object" && e.type === V.number);
|
737
|
-
}
|
738
|
-
function Ae(e) {
|
739
|
-
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
742
|
+
function Be(e) {
|
743
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
740
744
|
}
|
741
|
-
var
|
742
|
-
function
|
745
|
+
var _t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
|
746
|
+
function Dr(e) {
|
743
747
|
var t = {};
|
744
|
-
return e.replace(
|
748
|
+
return e.replace(Gr, function(r) {
|
745
749
|
var n = r.length;
|
746
750
|
switch (r[0]) {
|
747
751
|
case "G":
|
@@ -830,46 +834,36 @@ function jr(e) {
|
|
830
834
|
return "";
|
831
835
|
}), t;
|
832
836
|
}
|
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) {
|
837
|
+
var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
838
|
+
function jr(e) {
|
845
839
|
if (e.length === 0)
|
846
840
|
throw new Error("Number skeleton cannot be empty");
|
847
|
-
for (var t = e.split(
|
841
|
+
for (var t = e.split(Fr).filter(function(f) {
|
848
842
|
return f.length > 0;
|
849
843
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
850
844
|
var s = i[n], o = s.split("/");
|
851
845
|
if (o.length === 0)
|
852
846
|
throw new Error("Invalid number skeleton");
|
853
|
-
for (var a = o[0],
|
854
|
-
var c = l[
|
847
|
+
for (var a = o[0], u = o.slice(1), h = 0, l = u; h < l.length; h++) {
|
848
|
+
var c = l[h];
|
855
849
|
if (c.length === 0)
|
856
850
|
throw new Error("Invalid number skeleton");
|
857
851
|
}
|
858
|
-
r.push({ stem: a, options:
|
852
|
+
r.push({ stem: a, options: u });
|
859
853
|
}
|
860
854
|
return r;
|
861
855
|
}
|
862
|
-
function
|
856
|
+
function Vr(e) {
|
863
857
|
return e.replace(/^(.*?)-/, "");
|
864
858
|
}
|
865
|
-
var
|
866
|
-
function
|
859
|
+
var We = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vt = /^(@+)?(\+|#+)?[rs]?$/g, kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ht = /^(0+)$/;
|
860
|
+
function Ze(e) {
|
867
861
|
var t = {};
|
868
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
862
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vt, function(r, n, i) {
|
869
863
|
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
864
|
}), t;
|
871
865
|
}
|
872
|
-
function
|
866
|
+
function Tt(e) {
|
873
867
|
switch (e) {
|
874
868
|
case "sign-auto":
|
875
869
|
return {
|
@@ -909,7 +903,7 @@ function St(e) {
|
|
909
903
|
};
|
910
904
|
}
|
911
905
|
}
|
912
|
-
function
|
906
|
+
function Xr(e) {
|
913
907
|
var t;
|
914
908
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
915
909
|
notation: "engineering"
|
@@ -917,17 +911,17 @@ function Wr(e) {
|
|
917
911
|
notation: "scientific"
|
918
912
|
}, e = e.slice(1)), t) {
|
919
913
|
var r = e.slice(0, 2);
|
920
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
914
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ht.test(e))
|
921
915
|
throw new Error("Malformed concise eng/scientific notation");
|
922
916
|
t.minimumIntegerDigits = e.length;
|
923
917
|
}
|
924
918
|
return t;
|
925
919
|
}
|
926
|
-
function
|
927
|
-
var t = {}, r =
|
920
|
+
function Qe(e) {
|
921
|
+
var t = {}, r = Tt(e);
|
928
922
|
return r || t;
|
929
923
|
}
|
930
|
-
function
|
924
|
+
function zr(e) {
|
931
925
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
932
926
|
var i = n[r];
|
933
927
|
switch (i.stem) {
|
@@ -951,7 +945,7 @@ function Zr(e) {
|
|
951
945
|
continue;
|
952
946
|
case "measure-unit":
|
953
947
|
case "unit":
|
954
|
-
t.style = "unit", t.unit =
|
948
|
+
t.style = "unit", t.unit = Vr(i.options[0]);
|
955
949
|
continue;
|
956
950
|
case "compact-short":
|
957
951
|
case "K":
|
@@ -962,13 +956,13 @@ function Zr(e) {
|
|
962
956
|
t.notation = "compact", t.compactDisplay = "long";
|
963
957
|
continue;
|
964
958
|
case "scientific":
|
965
|
-
t =
|
966
|
-
return
|
959
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
960
|
+
return d(d({}, u), Qe(h));
|
967
961
|
}, {}));
|
968
962
|
continue;
|
969
963
|
case "engineering":
|
970
|
-
t =
|
971
|
-
return
|
964
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
965
|
+
return d(d({}, u), Qe(h));
|
972
966
|
}, {}));
|
973
967
|
continue;
|
974
968
|
case "notation-simple":
|
@@ -1013,45 +1007,45 @@ function Zr(e) {
|
|
1013
1007
|
case "integer-width":
|
1014
1008
|
if (i.options.length > 1)
|
1015
1009
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1016
|
-
i.options[0].replace(
|
1017
|
-
if (
|
1010
|
+
i.options[0].replace(kr, function(u, h, l, c, f, x) {
|
1011
|
+
if (h)
|
1018
1012
|
t.minimumIntegerDigits = l.length;
|
1019
1013
|
else {
|
1020
1014
|
if (c && f)
|
1021
1015
|
throw new Error("We currently do not support maximum integer digits");
|
1022
|
-
if (
|
1016
|
+
if (x)
|
1023
1017
|
throw new Error("We currently do not support exact integer digits");
|
1024
1018
|
}
|
1025
1019
|
return "";
|
1026
1020
|
});
|
1027
1021
|
continue;
|
1028
1022
|
}
|
1029
|
-
if (
|
1023
|
+
if (Ht.test(i.stem)) {
|
1030
1024
|
t.minimumIntegerDigits = i.stem.length;
|
1031
1025
|
continue;
|
1032
1026
|
}
|
1033
|
-
if (
|
1027
|
+
if (We.test(i.stem)) {
|
1034
1028
|
if (i.options.length > 1)
|
1035
1029
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1036
|
-
i.stem.replace(
|
1037
|
-
return l === "*" ? t.minimumFractionDigits =
|
1030
|
+
i.stem.replace(We, function(u, h, l, c, f, x) {
|
1031
|
+
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
1032
|
});
|
1039
1033
|
var s = i.options[0];
|
1040
|
-
s === "w" ? t =
|
1034
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ze(s)));
|
1041
1035
|
continue;
|
1042
1036
|
}
|
1043
|
-
if (
|
1044
|
-
t =
|
1037
|
+
if (vt.test(i.stem)) {
|
1038
|
+
t = d(d({}, t), Ze(i.stem));
|
1045
1039
|
continue;
|
1046
1040
|
}
|
1047
|
-
var o =
|
1048
|
-
o && (t =
|
1049
|
-
var a =
|
1050
|
-
a && (t =
|
1041
|
+
var o = Tt(i.stem);
|
1042
|
+
o && (t = d(d({}, t), o));
|
1043
|
+
var a = Xr(i.stem);
|
1044
|
+
a && (t = d(d({}, t), a));
|
1051
1045
|
}
|
1052
1046
|
return t;
|
1053
1047
|
}
|
1054
|
-
var
|
1048
|
+
var re = {
|
1055
1049
|
"001": [
|
1056
1050
|
"H",
|
1057
1051
|
"h"
|
@@ -2466,23 +2460,23 @@ var ne = {
|
|
2466
2460
|
"h"
|
2467
2461
|
]
|
2468
2462
|
};
|
2469
|
-
function
|
2463
|
+
function Wr(e, t) {
|
2470
2464
|
for (var r = "", n = 0; n < e.length; n++) {
|
2471
2465
|
var i = e.charAt(n);
|
2472
2466
|
if (i === "j") {
|
2473
2467
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2474
2468
|
s++, n++;
|
2475
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2476
|
-
for ((
|
2477
|
-
r +=
|
2469
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", h = Zr(t);
|
2470
|
+
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
2471
|
+
r += u;
|
2478
2472
|
for (; o-- > 0; )
|
2479
|
-
r =
|
2473
|
+
r = h + r;
|
2480
2474
|
} else
|
2481
2475
|
i === "J" ? r += "H" : r += i;
|
2482
2476
|
}
|
2483
2477
|
return r;
|
2484
2478
|
}
|
2485
|
-
function
|
2479
|
+
function Zr(e) {
|
2486
2480
|
var t = e.hourCycle;
|
2487
2481
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2488
2482
|
e.hourCycles && // @ts-ignore
|
@@ -2501,23 +2495,23 @@ function Jr(e) {
|
|
2501
2495
|
}
|
2502
2496
|
var r = e.language, n;
|
2503
2497
|
r !== "root" && (n = e.maximize().region);
|
2504
|
-
var i =
|
2498
|
+
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2505
2499
|
return i[0];
|
2506
2500
|
}
|
2507
|
-
var
|
2501
|
+
var Ee, Qr = new RegExp("^".concat(_t.source, "*")), Jr = new RegExp("".concat(_t.source, "*$"));
|
2508
2502
|
function b(e, t) {
|
2509
2503
|
return { start: e, end: t };
|
2510
2504
|
}
|
2511
|
-
var
|
2505
|
+
var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
2512
2506
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2513
|
-
},
|
2507
|
+
}, Ae = !0;
|
2514
2508
|
try {
|
2515
|
-
var
|
2516
|
-
|
2509
|
+
var on = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2510
|
+
Ae = ((Ee = on.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2517
2511
|
} catch (e) {
|
2518
|
-
|
2512
|
+
Ae = !1;
|
2519
2513
|
}
|
2520
|
-
var
|
2514
|
+
var Je = qr ? (
|
2521
2515
|
// Native
|
2522
2516
|
function(t, r, n) {
|
2523
2517
|
return t.startsWith(r, n);
|
@@ -2527,7 +2521,7 @@ var Ye = Kr ? (
|
|
2527
2521
|
function(t, r, n) {
|
2528
2522
|
return t.slice(n, n + r.length) === r;
|
2529
2523
|
}
|
2530
|
-
),
|
2524
|
+
), Se = Yr ? String.fromCodePoint : (
|
2531
2525
|
// IE11
|
2532
2526
|
function() {
|
2533
2527
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2539,9 +2533,9 @@ var Ye = Kr ? (
|
|
2539
2533
|
}
|
2540
2534
|
return n;
|
2541
2535
|
}
|
2542
|
-
),
|
2536
|
+
), qe = (
|
2543
2537
|
// native
|
2544
|
-
|
2538
|
+
Kr ? Object.fromEntries : (
|
2545
2539
|
// Ponyfill
|
2546
2540
|
function(t) {
|
2547
2541
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2551,7 +2545,7 @@ var Ye = Kr ? (
|
|
2551
2545
|
return r;
|
2552
2546
|
}
|
2553
2547
|
)
|
2554
|
-
),
|
2548
|
+
), Bt = en ? (
|
2555
2549
|
// Native
|
2556
2550
|
function(t, r) {
|
2557
2551
|
return t.codePointAt(r);
|
@@ -2565,7 +2559,7 @@ var Ye = Kr ? (
|
|
2565
2559
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2566
2560
|
}
|
2567
2561
|
}
|
2568
|
-
),
|
2562
|
+
), an = tn ? (
|
2569
2563
|
// Native
|
2570
2564
|
function(t) {
|
2571
2565
|
return t.trimStart();
|
@@ -2573,9 +2567,9 @@ var Ye = Kr ? (
|
|
2573
2567
|
) : (
|
2574
2568
|
// Ponyfill
|
2575
2569
|
function(t) {
|
2576
|
-
return t.replace(
|
2570
|
+
return t.replace(Qr, "");
|
2577
2571
|
}
|
2578
|
-
),
|
2572
|
+
), hn = rn ? (
|
2579
2573
|
// Native
|
2580
2574
|
function(t) {
|
2581
2575
|
return t.trimEnd();
|
@@ -2583,32 +2577,32 @@ var Ye = Kr ? (
|
|
2583
2577
|
) : (
|
2584
2578
|
// Ponyfill
|
2585
2579
|
function(t) {
|
2586
|
-
return t.replace(
|
2580
|
+
return t.replace(Jr, "");
|
2587
2581
|
}
|
2588
2582
|
);
|
2589
|
-
function
|
2583
|
+
function At(e, t) {
|
2590
2584
|
return new RegExp(e, t);
|
2591
2585
|
}
|
2592
|
-
var
|
2593
|
-
if (
|
2594
|
-
var
|
2595
|
-
|
2586
|
+
var Pe;
|
2587
|
+
if (Ae) {
|
2588
|
+
var Ye = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2589
|
+
Pe = function(t, r) {
|
2596
2590
|
var n;
|
2597
|
-
|
2598
|
-
var i =
|
2591
|
+
Ye.lastIndex = r;
|
2592
|
+
var i = Ye.exec(t);
|
2599
2593
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2600
2594
|
};
|
2601
2595
|
} else
|
2602
|
-
|
2596
|
+
Pe = function(t, r) {
|
2603
2597
|
for (var n = []; ; ) {
|
2604
|
-
var i =
|
2605
|
-
if (i === void 0 ||
|
2598
|
+
var i = Bt(t, r);
|
2599
|
+
if (i === void 0 || St(i) || cn(i))
|
2606
2600
|
break;
|
2607
2601
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2608
2602
|
}
|
2609
|
-
return
|
2603
|
+
return Se.apply(void 0, n);
|
2610
2604
|
};
|
2611
|
-
var
|
2605
|
+
var un = (
|
2612
2606
|
/** @class */
|
2613
2607
|
function() {
|
2614
2608
|
function e(t, r) {
|
@@ -2632,14 +2626,14 @@ var fn = (
|
|
2632
2626
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2633
2627
|
var a = this.clonePosition();
|
2634
2628
|
this.bump(), i.push({
|
2635
|
-
type:
|
2629
|
+
type: E.pound,
|
2636
2630
|
location: b(a, this.clonePosition())
|
2637
2631
|
});
|
2638
2632
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2639
2633
|
if (n)
|
2640
2634
|
break;
|
2641
2635
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2642
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2636
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2643
2637
|
var o = this.parseTag(t, r);
|
2644
2638
|
if (o.err)
|
2645
2639
|
return o;
|
@@ -2660,7 +2654,7 @@ var fn = (
|
|
2660
2654
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2661
2655
|
return {
|
2662
2656
|
val: {
|
2663
|
-
type:
|
2657
|
+
type: E.literal,
|
2664
2658
|
value: "<".concat(i, "/>"),
|
2665
2659
|
location: b(n, this.clonePosition())
|
2666
2660
|
},
|
@@ -2672,12 +2666,12 @@ var fn = (
|
|
2672
2666
|
return s;
|
2673
2667
|
var o = s.val, a = this.clonePosition();
|
2674
2668
|
if (this.bumpIf("</")) {
|
2675
|
-
if (this.isEOF() || !
|
2669
|
+
if (this.isEOF() || !Oe(this.char()))
|
2676
2670
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
2677
|
-
var
|
2678
|
-
return i !==
|
2671
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
2672
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2679
2673
|
val: {
|
2680
|
-
type:
|
2674
|
+
type: E.tag,
|
2681
2675
|
value: i,
|
2682
2676
|
children: o,
|
2683
2677
|
location: b(n, this.clonePosition())
|
@@ -2690,7 +2684,7 @@ var fn = (
|
|
2690
2684
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2691
2685
|
}, e.prototype.parseTagName = function() {
|
2692
2686
|
var t = this.offset();
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
2687
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
2694
2688
|
this.bump();
|
2695
2689
|
return this.message.slice(t, this.offset());
|
2696
2690
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2712,14 +2706,14 @@ var fn = (
|
|
2712
2706
|
}
|
2713
2707
|
break;
|
2714
2708
|
}
|
2715
|
-
var
|
2709
|
+
var u = b(n, this.clonePosition());
|
2716
2710
|
return {
|
2717
|
-
val: { type:
|
2711
|
+
val: { type: E.literal, value: i, location: u },
|
2718
2712
|
err: null
|
2719
2713
|
};
|
2720
2714
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2721
2715
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2722
|
-
!
|
2716
|
+
!ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2723
2717
|
}, e.prototype.tryParseQuote = function(t) {
|
2724
2718
|
if (this.isEOF() || this.char() !== 39)
|
2725
2719
|
return null;
|
@@ -2753,12 +2747,12 @@ var fn = (
|
|
2753
2747
|
r.push(n);
|
2754
2748
|
this.bump();
|
2755
2749
|
}
|
2756
|
-
return
|
2750
|
+
return Se.apply(void 0, r);
|
2757
2751
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2758
2752
|
if (this.isEOF())
|
2759
2753
|
return null;
|
2760
2754
|
var n = this.char();
|
2761
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2755
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Se(n));
|
2762
2756
|
}, e.prototype.parseArgument = function(t, r) {
|
2763
2757
|
var n = this.clonePosition();
|
2764
2758
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2774,7 +2768,7 @@ var fn = (
|
|
2774
2768
|
case 125:
|
2775
2769
|
return this.bump(), {
|
2776
2770
|
val: {
|
2777
|
-
type:
|
2771
|
+
type: E.argument,
|
2778
2772
|
// value does not include the opening and closing braces.
|
2779
2773
|
value: i,
|
2780
2774
|
location: b(n, this.clonePosition())
|
@@ -2787,66 +2781,66 @@ var fn = (
|
|
2787
2781
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2788
2782
|
}
|
2789
2783
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2790
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2784
|
+
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2791
2785
|
this.bumpTo(i);
|
2792
2786
|
var s = this.clonePosition(), o = b(t, s);
|
2793
2787
|
return { value: n, location: o };
|
2794
2788
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2795
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2789
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2796
2790
|
switch (a) {
|
2797
2791
|
case "":
|
2798
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o,
|
2792
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, u));
|
2799
2793
|
case "number":
|
2800
2794
|
case "date":
|
2801
2795
|
case "time": {
|
2802
2796
|
this.bumpSpace();
|
2803
|
-
var
|
2797
|
+
var h = null;
|
2804
2798
|
if (this.bumpIf(",")) {
|
2805
2799
|
this.bumpSpace();
|
2806
2800
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2807
2801
|
if (c.err)
|
2808
2802
|
return c;
|
2809
|
-
var f =
|
2803
|
+
var f = hn(c.val);
|
2810
2804
|
if (f.length === 0)
|
2811
2805
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2812
|
-
var
|
2813
|
-
|
2806
|
+
var x = b(l, this.clonePosition());
|
2807
|
+
h = { style: f, styleLocation: x };
|
2814
2808
|
}
|
2815
|
-
var
|
2816
|
-
if (
|
2817
|
-
return
|
2809
|
+
var g = this.tryParseArgumentClose(i);
|
2810
|
+
if (g.err)
|
2811
|
+
return g;
|
2818
2812
|
var y = b(i, this.clonePosition());
|
2819
|
-
if (
|
2820
|
-
var H =
|
2813
|
+
if (h && Je(h == null ? void 0 : h.style, "::", 0)) {
|
2814
|
+
var H = an(h.style.slice(2));
|
2821
2815
|
if (a === "number") {
|
2822
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2816
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2823
2817
|
return c.err ? c : {
|
2824
|
-
val: { type:
|
2818
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
2825
2819
|
err: null
|
2826
2820
|
};
|
2827
2821
|
} else {
|
2828
2822
|
if (H.length === 0)
|
2829
2823
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2830
|
-
var
|
2831
|
-
this.locale && (
|
2824
|
+
var A = H;
|
2825
|
+
this.locale && (A = Wr(H, this.locale));
|
2832
2826
|
var f = {
|
2833
|
-
type:
|
2834
|
-
pattern:
|
2835
|
-
location:
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2837
|
-
},
|
2827
|
+
type: j.dateTime,
|
2828
|
+
pattern: A,
|
2829
|
+
location: h.styleLocation,
|
2830
|
+
parsedOptions: this.shouldParseSkeletons ? Dr(A) : {}
|
2831
|
+
}, S = a === "date" ? E.date : E.time;
|
2838
2832
|
return {
|
2839
|
-
val: { type:
|
2833
|
+
val: { type: S, value: n, location: y, style: f },
|
2840
2834
|
err: null
|
2841
2835
|
};
|
2842
2836
|
}
|
2843
2837
|
}
|
2844
2838
|
return {
|
2845
2839
|
val: {
|
2846
|
-
type: a === "number" ?
|
2840
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2847
2841
|
value: n,
|
2848
2842
|
location: y,
|
2849
|
-
style: (s =
|
2843
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
2850
2844
|
},
|
2851
2845
|
err: null
|
2852
2846
|
};
|
@@ -2856,47 +2850,47 @@ var fn = (
|
|
2856
2850
|
case "select": {
|
2857
2851
|
var v = this.clonePosition();
|
2858
2852
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2859
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v,
|
2853
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2860
2854
|
this.bumpSpace();
|
2861
|
-
var
|
2862
|
-
if (a !== "select" &&
|
2855
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
2856
|
+
if (a !== "select" && N.value === "offset") {
|
2863
2857
|
if (!this.bumpIf(":"))
|
2864
2858
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2865
2859
|
this.bumpSpace();
|
2866
2860
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2867
2861
|
if (c.err)
|
2868
2862
|
return c;
|
2869
|
-
this.bumpSpace(),
|
2863
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = c.val;
|
2870
2864
|
}
|
2871
|
-
var R = this.tryParsePluralOrSelectOptions(t, a, r,
|
2865
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
2872
2866
|
if (R.err)
|
2873
2867
|
return R;
|
2874
|
-
var
|
2875
|
-
if (
|
2876
|
-
return
|
2877
|
-
var
|
2868
|
+
var g = this.tryParseArgumentClose(i);
|
2869
|
+
if (g.err)
|
2870
|
+
return g;
|
2871
|
+
var te = b(i, this.clonePosition());
|
2878
2872
|
return a === "select" ? {
|
2879
2873
|
val: {
|
2880
|
-
type:
|
2874
|
+
type: E.select,
|
2881
2875
|
value: n,
|
2882
|
-
options:
|
2883
|
-
location:
|
2876
|
+
options: qe(R.val),
|
2877
|
+
location: te
|
2884
2878
|
},
|
2885
2879
|
err: null
|
2886
2880
|
} : {
|
2887
2881
|
val: {
|
2888
|
-
type:
|
2882
|
+
type: E.plural,
|
2889
2883
|
value: n,
|
2890
|
-
options:
|
2891
|
-
offset:
|
2884
|
+
options: qe(R.val),
|
2885
|
+
offset: O,
|
2892
2886
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2893
|
-
location:
|
2887
|
+
location: te
|
2894
2888
|
},
|
2895
2889
|
err: null
|
2896
2890
|
};
|
2897
2891
|
}
|
2898
2892
|
default:
|
2899
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(o,
|
2893
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, u));
|
2900
2894
|
}
|
2901
2895
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2902
2896
|
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 +2932,50 @@ var fn = (
|
|
2938
2932
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2939
2933
|
var n = [];
|
2940
2934
|
try {
|
2941
|
-
n =
|
2935
|
+
n = jr(t);
|
2942
2936
|
} catch (i) {
|
2943
2937
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2944
2938
|
}
|
2945
2939
|
return {
|
2946
2940
|
val: {
|
2947
|
-
type:
|
2941
|
+
type: j.number,
|
2948
2942
|
tokens: n,
|
2949
2943
|
location: r,
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
|
2951
2945
|
},
|
2952
2946
|
err: null
|
2953
2947
|
};
|
2954
2948
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2955
|
-
for (var s, o = !1, a = [],
|
2956
|
-
if (
|
2949
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2950
|
+
if (h.length === 0) {
|
2957
2951
|
var c = this.clonePosition();
|
2958
2952
|
if (r !== "select" && this.bumpIf("=")) {
|
2959
2953
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2960
2954
|
if (f.err)
|
2961
2955
|
return f;
|
2962
|
-
l = b(c, this.clonePosition()),
|
2956
|
+
l = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2963
2957
|
} else
|
2964
2958
|
break;
|
2965
2959
|
}
|
2966
|
-
if (
|
2960
|
+
if (u.has(h))
|
2967
2961
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2968
|
-
|
2969
|
-
var
|
2962
|
+
h === "other" && (o = !0), this.bumpSpace();
|
2963
|
+
var x = this.clonePosition();
|
2970
2964
|
if (!this.bumpIf("{"))
|
2971
2965
|
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(
|
2966
|
+
var g = this.parseMessage(t + 1, r, n);
|
2967
|
+
if (g.err)
|
2968
|
+
return g;
|
2969
|
+
var y = this.tryParseArgumentClose(x);
|
2976
2970
|
if (y.err)
|
2977
2971
|
return y;
|
2978
2972
|
a.push([
|
2979
|
-
|
2973
|
+
h,
|
2980
2974
|
{
|
2981
|
-
value:
|
2982
|
-
location: b(
|
2975
|
+
value: g.val,
|
2976
|
+
location: b(x, this.clonePosition())
|
2983
2977
|
}
|
2984
|
-
]),
|
2978
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
2985
2979
|
}
|
2986
2980
|
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
2981
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2994,8 +2988,8 @@ var fn = (
|
|
2994
2988
|
else
|
2995
2989
|
break;
|
2996
2990
|
}
|
2997
|
-
var
|
2998
|
-
return s ? (o *= n,
|
2991
|
+
var u = b(i, this.clonePosition());
|
2992
|
+
return s ? (o *= n, sn(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
2999
2993
|
}, e.prototype.offset = function() {
|
3000
2994
|
return this.position.offset;
|
3001
2995
|
}, e.prototype.isEOF = function() {
|
@@ -3010,7 +3004,7 @@ var fn = (
|
|
3010
3004
|
var t = this.position.offset;
|
3011
3005
|
if (t >= this.message.length)
|
3012
3006
|
throw Error("out of bound");
|
3013
|
-
var r =
|
3007
|
+
var r = Bt(this.message, t);
|
3014
3008
|
if (r === void 0)
|
3015
3009
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3016
3010
|
return r;
|
@@ -3029,7 +3023,7 @@ var fn = (
|
|
3029
3023
|
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);
|
3030
3024
|
}
|
3031
3025
|
}, e.prototype.bumpIf = function(t) {
|
3032
|
-
if (
|
3026
|
+
if (Je(this.message, t, this.offset())) {
|
3033
3027
|
for (var r = 0; r < t.length; r++)
|
3034
3028
|
this.bump();
|
3035
3029
|
return !0;
|
@@ -3051,7 +3045,7 @@ var fn = (
|
|
3051
3045
|
break;
|
3052
3046
|
}
|
3053
3047
|
}, e.prototype.bumpSpace = function() {
|
3054
|
-
for (; !this.isEOF() &&
|
3048
|
+
for (; !this.isEOF() && St(this.char()); )
|
3055
3049
|
this.bump();
|
3056
3050
|
}, e.prototype.peek = function() {
|
3057
3051
|
if (this.isEOF())
|
@@ -3061,47 +3055,47 @@ var fn = (
|
|
3061
3055
|
}, e;
|
3062
3056
|
}()
|
3063
3057
|
);
|
3064
|
-
function
|
3058
|
+
function Oe(e) {
|
3065
3059
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3066
3060
|
}
|
3067
|
-
function
|
3068
|
-
return
|
3061
|
+
function ln(e) {
|
3062
|
+
return Oe(e) || e === 47;
|
3069
3063
|
}
|
3070
|
-
function
|
3064
|
+
function fn(e) {
|
3071
3065
|
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
3066
|
}
|
3073
|
-
function
|
3067
|
+
function St(e) {
|
3074
3068
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3075
3069
|
}
|
3076
|
-
function
|
3070
|
+
function cn(e) {
|
3077
3071
|
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
3072
|
}
|
3079
|
-
function
|
3073
|
+
function Ne(e) {
|
3080
3074
|
e.forEach(function(t) {
|
3081
|
-
if (delete t.location,
|
3075
|
+
if (delete t.location, gt(t) || xt(t))
|
3082
3076
|
for (var r in t.options)
|
3083
|
-
delete t.options[r].location,
|
3077
|
+
delete t.options[r].location, Ne(t.options[r].value);
|
3084
3078
|
else
|
3085
|
-
|
3079
|
+
mt(t) && yt(t.style) || (bt(t) || dt(t)) && Be(t.style) ? delete t.style.location : Et(t) && Ne(t.children);
|
3086
3080
|
});
|
3087
3081
|
}
|
3088
|
-
function
|
3089
|
-
t === void 0 && (t = {}), t =
|
3090
|
-
var r = new
|
3082
|
+
function pn(e, t) {
|
3083
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3084
|
+
var r = new un(e, t).parse();
|
3091
3085
|
if (r.err) {
|
3092
3086
|
var n = SyntaxError(m[r.err.kind]);
|
3093
3087
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3094
3088
|
}
|
3095
|
-
return t != null && t.captureLocation ||
|
3089
|
+
return t != null && t.captureLocation || Ne(r.val), r.val;
|
3096
3090
|
}
|
3097
|
-
var
|
3091
|
+
var V;
|
3098
3092
|
(function(e) {
|
3099
3093
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3100
|
-
})(
|
3101
|
-
var
|
3094
|
+
})(V || (V = {}));
|
3095
|
+
var fe = (
|
3102
3096
|
/** @class */
|
3103
3097
|
function(e) {
|
3104
|
-
|
3098
|
+
le(t, e);
|
3105
3099
|
function t(r, n, i) {
|
3106
3100
|
var s = e.call(this, r) || this;
|
3107
3101
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3110,64 +3104,64 @@ var pe = (
|
|
3110
3104
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3111
3105
|
}, t;
|
3112
3106
|
}(Error)
|
3113
|
-
),
|
3107
|
+
), Ke = (
|
3114
3108
|
/** @class */
|
3115
3109
|
function(e) {
|
3116
|
-
|
3110
|
+
le(t, e);
|
3117
3111
|
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('", "'), '"'),
|
3112
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
3119
3113
|
}
|
3120
3114
|
return t;
|
3121
|
-
}(
|
3122
|
-
),
|
3115
|
+
}(fe)
|
3116
|
+
), mn = (
|
3123
3117
|
/** @class */
|
3124
3118
|
function(e) {
|
3125
|
-
|
3119
|
+
le(t, e);
|
3126
3120
|
function t(r, n, i) {
|
3127
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3121
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3128
3122
|
}
|
3129
3123
|
return t;
|
3130
|
-
}(
|
3131
|
-
),
|
3124
|
+
}(fe)
|
3125
|
+
), bn = (
|
3132
3126
|
/** @class */
|
3133
3127
|
function(e) {
|
3134
|
-
|
3128
|
+
le(t, e);
|
3135
3129
|
function t(r, n) {
|
3136
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3130
|
+
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
3131
|
}
|
3138
3132
|
return t;
|
3139
|
-
}(
|
3133
|
+
}(fe)
|
3140
3134
|
), _;
|
3141
3135
|
(function(e) {
|
3142
3136
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3143
3137
|
})(_ || (_ = {}));
|
3144
|
-
function
|
3138
|
+
function dn(e) {
|
3145
3139
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3146
3140
|
var n = t[t.length - 1];
|
3147
3141
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3148
3142
|
}, []);
|
3149
3143
|
}
|
3150
|
-
function
|
3144
|
+
function gn(e) {
|
3151
3145
|
return typeof e == "function";
|
3152
3146
|
}
|
3153
|
-
function
|
3154
|
-
if (e.length === 1 &&
|
3147
|
+
function se(e, t, r, n, i, s, o) {
|
3148
|
+
if (e.length === 1 && ze(e[0]))
|
3155
3149
|
return [
|
3156
3150
|
{
|
3157
3151
|
type: _.literal,
|
3158
3152
|
value: e[0].value
|
3159
3153
|
}
|
3160
3154
|
];
|
3161
|
-
for (var a = [],
|
3162
|
-
var l = u
|
3163
|
-
if (
|
3155
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3156
|
+
var l = h[u];
|
3157
|
+
if (ze(l)) {
|
3164
3158
|
a.push({
|
3165
3159
|
type: _.literal,
|
3166
3160
|
value: l.value
|
3167
3161
|
});
|
3168
3162
|
continue;
|
3169
3163
|
}
|
3170
|
-
if (
|
3164
|
+
if (Ur(l)) {
|
3171
3165
|
typeof s == "number" && a.push({
|
3172
3166
|
type: _.literal,
|
3173
3167
|
value: r.getNumberFormat(t).format(s)
|
@@ -3176,89 +3170,89 @@ function oe(e, t, r, n, i, s, o) {
|
|
3176
3170
|
}
|
3177
3171
|
var c = l.value;
|
3178
3172
|
if (!(i && c in i))
|
3179
|
-
throw new
|
3173
|
+
throw new bn(c, o);
|
3180
3174
|
var f = i[c];
|
3181
|
-
if (
|
3175
|
+
if ($r(l)) {
|
3182
3176
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3183
3177
|
type: typeof f == "string" ? _.literal : _.object,
|
3184
3178
|
value: f
|
3185
3179
|
});
|
3186
3180
|
continue;
|
3187
3181
|
}
|
3188
|
-
if (
|
3189
|
-
var
|
3182
|
+
if (bt(l)) {
|
3183
|
+
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3190
3184
|
a.push({
|
3191
3185
|
type: _.literal,
|
3192
|
-
value: r.getDateTimeFormat(t,
|
3186
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3193
3187
|
});
|
3194
3188
|
continue;
|
3195
3189
|
}
|
3196
|
-
if (
|
3197
|
-
var
|
3190
|
+
if (dt(l)) {
|
3191
|
+
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3198
3192
|
a.push({
|
3199
3193
|
type: _.literal,
|
3200
|
-
value: r.getDateTimeFormat(t,
|
3194
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3201
3195
|
});
|
3202
3196
|
continue;
|
3203
3197
|
}
|
3204
|
-
if (
|
3205
|
-
var
|
3206
|
-
|
3198
|
+
if (mt(l)) {
|
3199
|
+
var x = typeof l.style == "string" ? n.number[l.style] : yt(l.style) ? l.style.parsedOptions : void 0;
|
3200
|
+
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3207
3201
|
type: _.literal,
|
3208
|
-
value: r.getNumberFormat(t,
|
3202
|
+
value: r.getNumberFormat(t, x).format(f)
|
3209
3203
|
});
|
3210
3204
|
continue;
|
3211
3205
|
}
|
3212
|
-
if (
|
3213
|
-
var
|
3214
|
-
if (!
|
3215
|
-
throw new
|
3216
|
-
var
|
3217
|
-
return
|
3206
|
+
if (Et(l)) {
|
3207
|
+
var g = l.children, y = l.value, H = i[y];
|
3208
|
+
if (!gn(H))
|
3209
|
+
throw new mn(y, "function", o);
|
3210
|
+
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3211
|
+
return O.value;
|
3218
3212
|
}));
|
3219
|
-
Array.isArray(
|
3213
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(O) {
|
3220
3214
|
return {
|
3221
|
-
type: typeof
|
3222
|
-
value:
|
3215
|
+
type: typeof O == "string" ? _.literal : _.object,
|
3216
|
+
value: O
|
3223
3217
|
};
|
3224
3218
|
}));
|
3225
3219
|
}
|
3226
|
-
if (
|
3220
|
+
if (gt(l)) {
|
3227
3221
|
var v = l.options[f] || l.options.other;
|
3228
3222
|
if (!v)
|
3229
|
-
throw new
|
3230
|
-
a.push.apply(a,
|
3223
|
+
throw new Ke(l.value, f, Object.keys(l.options), o);
|
3224
|
+
a.push.apply(a, se(v.value, t, r, n, i));
|
3231
3225
|
continue;
|
3232
3226
|
}
|
3233
|
-
if (
|
3227
|
+
if (xt(l)) {
|
3234
3228
|
var v = l.options["=".concat(f)];
|
3235
3229
|
if (!v) {
|
3236
3230
|
if (!Intl.PluralRules)
|
3237
|
-
throw new
|
3231
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
3238
3232
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3239
|
-
`,
|
3240
|
-
var
|
3241
|
-
v = l.options[
|
3233
|
+
`, V.MISSING_INTL_API, o);
|
3234
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3235
|
+
v = l.options[N] || l.options.other;
|
3242
3236
|
}
|
3243
3237
|
if (!v)
|
3244
|
-
throw new
|
3245
|
-
a.push.apply(a,
|
3238
|
+
throw new Ke(l.value, f, Object.keys(l.options), o);
|
3239
|
+
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3246
3240
|
continue;
|
3247
3241
|
}
|
3248
3242
|
}
|
3249
|
-
return
|
3243
|
+
return dn(a);
|
3250
3244
|
}
|
3251
|
-
function
|
3252
|
-
return t ?
|
3253
|
-
return r[n] =
|
3245
|
+
function xn(e, t) {
|
3246
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3247
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3254
3248
|
}, {})) : e;
|
3255
3249
|
}
|
3256
|
-
function
|
3250
|
+
function En(e, t) {
|
3257
3251
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3258
|
-
return r[n] =
|
3259
|
-
},
|
3252
|
+
return r[n] = xn(e[n], t[n]), r;
|
3253
|
+
}, d({}, e)) : e;
|
3260
3254
|
}
|
3261
|
-
function
|
3255
|
+
function ye(e) {
|
3262
3256
|
return {
|
3263
3257
|
create: function() {
|
3264
3258
|
return {
|
@@ -3272,39 +3266,39 @@ function ve(e) {
|
|
3272
3266
|
}
|
3273
3267
|
};
|
3274
3268
|
}
|
3275
|
-
function
|
3269
|
+
function yn(e) {
|
3276
3270
|
return e === void 0 && (e = {
|
3277
3271
|
number: {},
|
3278
3272
|
dateTime: {},
|
3279
3273
|
pluralRules: {}
|
3280
3274
|
}), {
|
3281
|
-
getNumberFormat:
|
3275
|
+
getNumberFormat: ge(function() {
|
3282
3276
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3283
3277
|
r[n] = arguments[n];
|
3284
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3278
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3285
3279
|
}, {
|
3286
|
-
cache:
|
3287
|
-
strategy:
|
3280
|
+
cache: ye(e.number),
|
3281
|
+
strategy: xe.variadic
|
3288
3282
|
}),
|
3289
|
-
getDateTimeFormat:
|
3283
|
+
getDateTimeFormat: ge(function() {
|
3290
3284
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3291
3285
|
r[n] = arguments[n];
|
3292
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3286
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3293
3287
|
}, {
|
3294
|
-
cache:
|
3295
|
-
strategy:
|
3288
|
+
cache: ye(e.dateTime),
|
3289
|
+
strategy: xe.variadic
|
3296
3290
|
}),
|
3297
|
-
getPluralRules:
|
3291
|
+
getPluralRules: ge(function() {
|
3298
3292
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3299
3293
|
r[n] = arguments[n];
|
3300
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3294
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3301
3295
|
}, {
|
3302
|
-
cache:
|
3303
|
-
strategy:
|
3296
|
+
cache: ye(e.pluralRules),
|
3297
|
+
strategy: xe.variadic
|
3304
3298
|
})
|
3305
3299
|
};
|
3306
3300
|
}
|
3307
|
-
var
|
3301
|
+
var _n = (
|
3308
3302
|
/** @class */
|
3309
3303
|
function() {
|
3310
3304
|
function e(t, r, n, i) {
|
@@ -3314,20 +3308,20 @@ var Hn = (
|
|
3314
3308
|
number: {},
|
3315
3309
|
dateTime: {},
|
3316
3310
|
pluralRules: {}
|
3317
|
-
}, this.format = function(
|
3318
|
-
var
|
3319
|
-
if (
|
3320
|
-
return
|
3321
|
-
var l =
|
3311
|
+
}, this.format = function(u) {
|
3312
|
+
var h = s.formatToParts(u);
|
3313
|
+
if (h.length === 1)
|
3314
|
+
return h[0].value;
|
3315
|
+
var l = h.reduce(function(c, f) {
|
3322
3316
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3323
3317
|
}, []);
|
3324
3318
|
return l.length <= 1 ? l[0] || "" : l;
|
3325
|
-
}, this.formatToParts = function(
|
3326
|
-
return
|
3319
|
+
}, this.formatToParts = function(u) {
|
3320
|
+
return se(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
3327
3321
|
}, this.resolvedOptions = function() {
|
3328
|
-
var
|
3322
|
+
var u;
|
3329
3323
|
return {
|
3330
|
-
locale: ((
|
3324
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3331
3325
|
};
|
3332
3326
|
}, this.getAst = function() {
|
3333
3327
|
return s.ast;
|
@@ -3336,13 +3330,13 @@ var Hn = (
|
|
3336
3330
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3337
3331
|
var o = i || {};
|
3338
3332
|
o.formatters;
|
3339
|
-
var a =
|
3340
|
-
this.ast = e.__parse(t,
|
3333
|
+
var a = Or(o, ["formatters"]);
|
3334
|
+
this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
|
3341
3335
|
} else
|
3342
3336
|
this.ast = t;
|
3343
3337
|
if (!Array.isArray(this.ast))
|
3344
3338
|
throw new TypeError("A message must be provided as a String or AST.");
|
3345
|
-
this.formats =
|
3339
|
+
this.formats = En(e.formats, n), this.formatters = i && i.formatters || yn(this.formatterCache);
|
3346
3340
|
}
|
3347
3341
|
return Object.defineProperty(e, "defaultLocale", {
|
3348
3342
|
get: function() {
|
@@ -3355,7 +3349,7 @@ var Hn = (
|
|
3355
3349
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3356
3350
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3357
3351
|
}
|
3358
|
-
}, e.__parse =
|
3352
|
+
}, e.__parse = pn, e.formats = {
|
3359
3353
|
number: {
|
3360
3354
|
integer: {
|
3361
3355
|
maximumFractionDigits: 0
|
@@ -3416,7 +3410,7 @@ var Hn = (
|
|
3416
3410
|
}, e;
|
3417
3411
|
}()
|
3418
3412
|
);
|
3419
|
-
function
|
3413
|
+
function vn(e, t) {
|
3420
3414
|
if (t == null)
|
3421
3415
|
return;
|
3422
3416
|
if (t in e)
|
@@ -3437,92 +3431,92 @@ function Tn(e, t) {
|
|
3437
3431
|
n = void 0;
|
3438
3432
|
return n;
|
3439
3433
|
}
|
3440
|
-
const I = {},
|
3434
|
+
const I = {}, Hn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Pt = (e, t) => {
|
3441
3435
|
if (t == null)
|
3442
3436
|
return;
|
3443
3437
|
if (t in I && e in I[t])
|
3444
3438
|
return I[t][e];
|
3445
|
-
const r =
|
3439
|
+
const r = ce(t);
|
3446
3440
|
for (let n = 0; n < r.length; n++) {
|
3447
|
-
const i = r[n], s =
|
3441
|
+
const i = r[n], s = Bn(i, e);
|
3448
3442
|
if (s)
|
3449
|
-
return
|
3443
|
+
return Hn(e, t, s);
|
3450
3444
|
}
|
3451
3445
|
};
|
3452
|
-
let
|
3453
|
-
const
|
3454
|
-
function
|
3455
|
-
return
|
3446
|
+
let Re;
|
3447
|
+
const z = ue({});
|
3448
|
+
function Tn(e) {
|
3449
|
+
return Re[e] || null;
|
3456
3450
|
}
|
3457
|
-
function
|
3458
|
-
return e in
|
3451
|
+
function Ot(e) {
|
3452
|
+
return e in Re;
|
3459
3453
|
}
|
3460
|
-
function
|
3461
|
-
if (!
|
3454
|
+
function Bn(e, t) {
|
3455
|
+
if (!Ot(e))
|
3462
3456
|
return null;
|
3463
|
-
const r =
|
3464
|
-
return
|
3457
|
+
const r = Tn(e);
|
3458
|
+
return vn(r, t);
|
3465
3459
|
}
|
3466
|
-
function
|
3460
|
+
function An(e) {
|
3467
3461
|
if (e == null)
|
3468
3462
|
return;
|
3469
|
-
const t =
|
3463
|
+
const t = ce(e);
|
3470
3464
|
for (let r = 0; r < t.length; r++) {
|
3471
3465
|
const n = t[r];
|
3472
|
-
if (
|
3466
|
+
if (Ot(n))
|
3473
3467
|
return n;
|
3474
3468
|
}
|
3475
3469
|
}
|
3476
|
-
function
|
3477
|
-
delete I[e],
|
3470
|
+
function Nt(e, ...t) {
|
3471
|
+
delete I[e], z.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
|
3478
3472
|
}
|
3479
|
-
|
3480
|
-
[
|
3473
|
+
X(
|
3474
|
+
[z],
|
3481
3475
|
([e]) => Object.keys(e)
|
3482
3476
|
);
|
3483
|
-
|
3484
|
-
const
|
3485
|
-
function
|
3486
|
-
|
3477
|
+
z.subscribe((e) => Re = e);
|
3478
|
+
const oe = {};
|
3479
|
+
function Sn(e, t) {
|
3480
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3487
3481
|
}
|
3488
|
-
function
|
3489
|
-
return
|
3482
|
+
function It(e) {
|
3483
|
+
return oe[e];
|
3490
3484
|
}
|
3491
|
-
function
|
3492
|
-
return
|
3493
|
-
const r =
|
3485
|
+
function Pn(e) {
|
3486
|
+
return ce(e).map((t) => {
|
3487
|
+
const r = It(t);
|
3494
3488
|
return [t, r ? [...r] : []];
|
3495
3489
|
}).filter(([, t]) => t.length > 0);
|
3496
3490
|
}
|
3497
|
-
function
|
3498
|
-
return e == null ? !1 :
|
3491
|
+
function Ie(e) {
|
3492
|
+
return e == null ? !1 : ce(e).some(
|
3499
3493
|
(t) => {
|
3500
3494
|
var r;
|
3501
|
-
return (r =
|
3495
|
+
return (r = It(t)) == null ? void 0 : r.size;
|
3502
3496
|
}
|
3503
3497
|
);
|
3504
3498
|
}
|
3505
|
-
function
|
3499
|
+
function On(e, t) {
|
3506
3500
|
return Promise.all(
|
3507
|
-
t.map((n) => (
|
3508
|
-
).then((n) =>
|
3509
|
-
}
|
3510
|
-
const
|
3511
|
-
function
|
3512
|
-
if (!
|
3513
|
-
return e in
|
3514
|
-
const t =
|
3515
|
-
return
|
3501
|
+
t.map((n) => (Sn(e, n), n().then((i) => i.default || i)))
|
3502
|
+
).then((n) => Nt(e, ...n));
|
3503
|
+
}
|
3504
|
+
const Z = {};
|
3505
|
+
function wt(e) {
|
3506
|
+
if (!Ie(e))
|
3507
|
+
return e in Z ? Z[e] : Promise.resolve();
|
3508
|
+
const t = Pn(e);
|
3509
|
+
return Z[e] = Promise.all(
|
3516
3510
|
t.map(
|
3517
|
-
([r, n]) =>
|
3511
|
+
([r, n]) => On(r, n)
|
3518
3512
|
)
|
3519
3513
|
).then(() => {
|
3520
|
-
if (
|
3521
|
-
return
|
3522
|
-
delete
|
3523
|
-
}),
|
3514
|
+
if (Ie(e))
|
3515
|
+
return wt(e);
|
3516
|
+
delete Z[e];
|
3517
|
+
}), Z[e];
|
3524
3518
|
}
|
3525
|
-
const
|
3519
|
+
const Nn = {
|
3526
3520
|
number: {
|
3527
3521
|
scientific: { notation: "scientific" },
|
3528
3522
|
engineering: { notation: "engineering" },
|
@@ -3551,150 +3545,150 @@ const In = {
|
|
3551
3545
|
timeZoneName: "short"
|
3552
3546
|
}
|
3553
3547
|
}
|
3554
|
-
},
|
3548
|
+
}, In = {
|
3555
3549
|
fallbackLocale: null,
|
3556
3550
|
loadingDelay: 200,
|
3557
|
-
formats:
|
3551
|
+
formats: Nn,
|
3558
3552
|
warnOnMissingMessages: !0,
|
3559
3553
|
handleMissingMessage: void 0,
|
3560
3554
|
ignoreTag: !0
|
3561
|
-
},
|
3562
|
-
function
|
3563
|
-
return
|
3555
|
+
}, wn = In;
|
3556
|
+
function k() {
|
3557
|
+
return wn;
|
3564
3558
|
}
|
3565
|
-
const
|
3566
|
-
var
|
3559
|
+
const _e = ue(!1);
|
3560
|
+
var Ln = Object.defineProperty, Cn = Object.defineProperties, Mn = Object.getOwnPropertyDescriptors, et = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
3567
3561
|
for (var r in t || (t = {}))
|
3568
|
-
|
3569
|
-
if (
|
3570
|
-
for (var r of
|
3571
|
-
|
3562
|
+
Rn.call(t, r) && tt(e, r, t[r]);
|
3563
|
+
if (et)
|
3564
|
+
for (var r of et(t))
|
3565
|
+
$n.call(t, r) && tt(e, r, t[r]);
|
3572
3566
|
return e;
|
3573
|
-
},
|
3574
|
-
let
|
3575
|
-
const
|
3576
|
-
function
|
3567
|
+
}, Gn = (e, t) => Cn(e, Mn(t));
|
3568
|
+
let we;
|
3569
|
+
const ae = ue(null);
|
3570
|
+
function rt(e) {
|
3577
3571
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3578
3572
|
}
|
3579
|
-
function
|
3580
|
-
const r =
|
3581
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3573
|
+
function ce(e, t = k().fallbackLocale) {
|
3574
|
+
const r = rt(e);
|
3575
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...rt(t)])] : r;
|
3582
3576
|
}
|
3583
|
-
function
|
3584
|
-
return
|
3577
|
+
function M() {
|
3578
|
+
return we != null ? we : void 0;
|
3585
3579
|
}
|
3586
|
-
|
3587
|
-
|
3580
|
+
ae.subscribe((e) => {
|
3581
|
+
we = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3588
3582
|
});
|
3589
|
-
const
|
3590
|
-
if (e &&
|
3591
|
-
const { loadingDelay: t } =
|
3583
|
+
const Dn = (e) => {
|
3584
|
+
if (e && An(e) && Ie(e)) {
|
3585
|
+
const { loadingDelay: t } = k();
|
3592
3586
|
let r;
|
3593
|
-
return typeof window != "undefined" &&
|
3594
|
-
() =>
|
3587
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3588
|
+
() => _e.set(!0),
|
3595
3589
|
t
|
3596
|
-
) :
|
3597
|
-
|
3590
|
+
) : _e.set(!0), wt(e).then(() => {
|
3591
|
+
ae.set(e);
|
3598
3592
|
}).finally(() => {
|
3599
|
-
clearTimeout(r),
|
3593
|
+
clearTimeout(r), _e.set(!1);
|
3600
3594
|
});
|
3601
3595
|
}
|
3602
|
-
return
|
3603
|
-
},
|
3604
|
-
set:
|
3605
|
-
}),
|
3596
|
+
return ae.set(e);
|
3597
|
+
}, w = Gn(Un({}, ae), {
|
3598
|
+
set: Dn
|
3599
|
+
}), pe = (e) => {
|
3606
3600
|
const t = /* @__PURE__ */ Object.create(null);
|
3607
3601
|
return (n) => {
|
3608
3602
|
const i = JSON.stringify(n);
|
3609
3603
|
return i in t ? t[i] : t[i] = e(n);
|
3610
3604
|
};
|
3611
3605
|
};
|
3612
|
-
var
|
3606
|
+
var Fn = Object.defineProperty, he = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
3613
3607
|
for (var r in t || (t = {}))
|
3614
|
-
|
3615
|
-
if (
|
3616
|
-
for (var r of
|
3617
|
-
|
3608
|
+
Lt.call(t, r) && nt(e, r, t[r]);
|
3609
|
+
if (he)
|
3610
|
+
for (var r of he(t))
|
3611
|
+
Ct.call(t, r) && nt(e, r, t[r]);
|
3618
3612
|
return e;
|
3619
|
-
},
|
3613
|
+
}, W = (e, t) => {
|
3620
3614
|
var r = {};
|
3621
3615
|
for (var n in e)
|
3622
|
-
|
3623
|
-
if (e != null &&
|
3624
|
-
for (var n of
|
3625
|
-
t.indexOf(n) < 0 &&
|
3616
|
+
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3617
|
+
if (e != null && he)
|
3618
|
+
for (var n of he(e))
|
3619
|
+
t.indexOf(n) < 0 && Ct.call(e, n) && (r[n] = e[n]);
|
3626
3620
|
return r;
|
3627
3621
|
};
|
3628
|
-
const
|
3629
|
-
const { formats: r } =
|
3622
|
+
const K = (e, t) => {
|
3623
|
+
const { formats: r } = k();
|
3630
3624
|
if (e in r && t in r[e])
|
3631
3625
|
return r[e][t];
|
3632
3626
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3633
|
-
},
|
3627
|
+
}, jn = pe(
|
3634
3628
|
(e) => {
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3636
3630
|
if (r == null)
|
3637
3631
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3638
|
-
return n && (i =
|
3632
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
3639
3633
|
}
|
3640
|
-
),
|
3634
|
+
), Vn = pe(
|
3641
3635
|
(e) => {
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
3636
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3643
3637
|
if (r == null)
|
3644
3638
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3645
|
-
return n ? i =
|
3639
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
3646
3640
|
}
|
3647
|
-
),
|
3641
|
+
), kn = pe(
|
3648
3642
|
(e) => {
|
3649
|
-
var t = e, { locale: r, format: n } = t, i =
|
3643
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3650
3644
|
if (r == null)
|
3651
3645
|
throw new Error(
|
3652
3646
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3653
3647
|
);
|
3654
|
-
return n ? i =
|
3648
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
3655
3649
|
}
|
3656
|
-
),
|
3650
|
+
), Xn = (e = {}) => {
|
3657
3651
|
var t = e, {
|
3658
|
-
locale: r =
|
3659
|
-
} = t, n =
|
3652
|
+
locale: r = M()
|
3653
|
+
} = t, n = W(t, [
|
3660
3654
|
"locale"
|
3661
3655
|
]);
|
3662
|
-
return
|
3663
|
-
},
|
3656
|
+
return jn($e({ locale: r }, n));
|
3657
|
+
}, zn = (e = {}) => {
|
3664
3658
|
var t = e, {
|
3665
|
-
locale: r =
|
3666
|
-
} = t, n =
|
3659
|
+
locale: r = M()
|
3660
|
+
} = t, n = W(t, [
|
3667
3661
|
"locale"
|
3668
3662
|
]);
|
3669
|
-
return
|
3670
|
-
},
|
3663
|
+
return Vn($e({ locale: r }, n));
|
3664
|
+
}, Wn = (e = {}) => {
|
3671
3665
|
var t = e, {
|
3672
|
-
locale: r =
|
3673
|
-
} = t, n =
|
3666
|
+
locale: r = M()
|
3667
|
+
} = t, n = W(t, [
|
3674
3668
|
"locale"
|
3675
3669
|
]);
|
3676
|
-
return
|
3677
|
-
},
|
3670
|
+
return kn($e({ locale: r }, n));
|
3671
|
+
}, Zn = pe(
|
3678
3672
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3679
|
-
(e, t =
|
3680
|
-
ignoreTag:
|
3673
|
+
(e, t = M()) => new _n(e, t, k().formats, {
|
3674
|
+
ignoreTag: k().ignoreTag
|
3681
3675
|
})
|
3682
|
-
),
|
3676
|
+
), Qn = (e, t = {}) => {
|
3683
3677
|
var r, n, i, s;
|
3684
3678
|
let o = t;
|
3685
3679
|
typeof e == "object" && (o = e, e = o.id);
|
3686
3680
|
const {
|
3687
3681
|
values: a,
|
3688
|
-
locale:
|
3689
|
-
default:
|
3682
|
+
locale: u = M(),
|
3683
|
+
default: h
|
3690
3684
|
} = o;
|
3691
|
-
if (
|
3685
|
+
if (u == null)
|
3692
3686
|
throw new Error(
|
3693
3687
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3694
3688
|
);
|
3695
|
-
let l =
|
3689
|
+
let l = Pt(e, u);
|
3696
3690
|
if (!l)
|
3697
|
-
l = (s = (i = (n = (r =
|
3691
|
+
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
3692
|
else if (typeof l != "string")
|
3699
3693
|
return console.warn(
|
3700
3694
|
`[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 +3697,7 @@ const ee = (e, t) => {
|
|
3703
3697
|
return l;
|
3704
3698
|
let c = l;
|
3705
3699
|
try {
|
3706
|
-
c =
|
3700
|
+
c = Zn(l, u).format(a);
|
3707
3701
|
} catch (f) {
|
3708
3702
|
f instanceof Error && console.warn(
|
3709
3703
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3711,23 +3705,23 @@ const ee = (e, t) => {
|
|
3711
3705
|
);
|
3712
3706
|
}
|
3713
3707
|
return c;
|
3714
|
-
},
|
3715
|
-
|
3716
|
-
|
3717
|
-
|
3718
|
-
|
3719
|
-
function
|
3720
|
-
|
3721
|
-
r == null && (
|
3708
|
+
}, Jn = (e, t) => Wn(t).format(e), qn = (e, t) => zn(t).format(e), Yn = (e, t) => Xn(t).format(e), Kn = (e, t = M()) => Pt(e, t), ei = X([w, z], () => Qn);
|
3709
|
+
X([w], () => Jn);
|
3710
|
+
X([w], () => qn);
|
3711
|
+
X([w], () => Yn);
|
3712
|
+
X([w, z], () => Kn);
|
3713
|
+
function ti({ withLocale: e, translations: t }) {
|
3714
|
+
w.subscribe((r) => {
|
3715
|
+
r == null && (z.set(t), w.set(e));
|
3722
3716
|
});
|
3723
3717
|
}
|
3724
|
-
function
|
3725
|
-
|
3718
|
+
function it(e, t) {
|
3719
|
+
Nt(e, t);
|
3726
3720
|
}
|
3727
|
-
function
|
3728
|
-
|
3721
|
+
function ri(e) {
|
3722
|
+
w.set(e);
|
3729
3723
|
}
|
3730
|
-
const
|
3724
|
+
const st = {
|
3731
3725
|
en: {
|
3732
3726
|
bets: "bets"
|
3733
3727
|
},
|
@@ -3753,121 +3747,121 @@ const at = {
|
|
3753
3747
|
bets: "bets"
|
3754
3748
|
}
|
3755
3749
|
};
|
3756
|
-
function
|
3757
|
-
|
3750
|
+
function ni(e) {
|
3751
|
+
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
3752
|
}
|
3759
|
-
function
|
3753
|
+
function ii(e) {
|
3760
3754
|
let t, r, n, i, s;
|
3761
3755
|
return {
|
3762
3756
|
c() {
|
3763
|
-
t =
|
3757
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = Qt(
|
3764
3758
|
/*progressText*/
|
3765
3759
|
e[3]
|
3766
|
-
),
|
3767
|
-
e[4]),
|
3760
|
+
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3761
|
+
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3768
3762
|
},
|
3769
3763
|
m(o, a) {
|
3770
|
-
|
3764
|
+
ut(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3771
3765
|
},
|
3772
3766
|
p(o, [a]) {
|
3773
3767
|
a & /*progressText*/
|
3774
|
-
8 &&
|
3768
|
+
8 && qt(
|
3775
3769
|
i,
|
3776
3770
|
/*progressText*/
|
3777
3771
|
o[3]
|
3778
3772
|
), a & /*curTatus*/
|
3779
3773
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
3780
|
-
o[4]) &&
|
3774
|
+
o[4]) && C(r, "class", s);
|
3781
3775
|
},
|
3782
3776
|
i: B,
|
3783
3777
|
o: B,
|
3784
3778
|
d(o) {
|
3785
|
-
o &&
|
3779
|
+
o && Ce(t), e[13](null), e[14](null), e[15](null);
|
3786
3780
|
}
|
3787
3781
|
};
|
3788
3782
|
}
|
3789
|
-
function
|
3783
|
+
function si(e, t, r) {
|
3790
3784
|
let n;
|
3791
|
-
|
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
|
-
|
3785
|
+
Xt(e, ei, (p) => r(20, n = p));
|
3786
|
+
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";
|
3787
|
+
ti({ withLocale: "en", translations: {} });
|
3788
|
+
const O = () => {
|
3789
|
+
fetch(h).then((L) => L.json()).then((L) => {
|
3790
|
+
Object.keys(L).forEach((Ue) => {
|
3791
|
+
it(Ue, L[Ue]);
|
3798
3792
|
});
|
3799
|
-
}).catch((
|
3800
|
-
console.log(
|
3793
|
+
}).catch((L) => {
|
3794
|
+
console.log(L);
|
3801
3795
|
});
|
3802
3796
|
};
|
3803
|
-
Object.keys(
|
3804
|
-
|
3797
|
+
Object.keys(st).forEach((p) => {
|
3798
|
+
it(p, st[p]);
|
3805
3799
|
});
|
3806
3800
|
const R = () => {
|
3807
|
-
|
3808
|
-
},
|
3801
|
+
ri(a);
|
3802
|
+
}, te = () => {
|
3809
3803
|
let p = (i / s * 100).toFixed(l);
|
3810
3804
|
setTimeout(
|
3811
3805
|
() => {
|
3812
3806
|
o || o === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3813
3807
|
},
|
3814
3808
|
y ? 573 : 0
|
3815
|
-
), p == 0 || p == 100 ? (
|
3816
|
-
},
|
3817
|
-
r(4,
|
3809
|
+
), 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);
|
3810
|
+
}, Mt = () => {
|
3811
|
+
r(4, N = u == "active" ? "" : "inactive");
|
3818
3812
|
};
|
3819
|
-
function
|
3820
|
-
|
3821
|
-
|
3813
|
+
function Rt(p) {
|
3814
|
+
q[p ? "unshift" : "push"](() => {
|
3815
|
+
x = p, r(1, x);
|
3822
3816
|
});
|
3823
3817
|
}
|
3824
|
-
function
|
3825
|
-
|
3826
|
-
|
3818
|
+
function $t(p) {
|
3819
|
+
q[p ? "unshift" : "push"](() => {
|
3820
|
+
g = p, r(2, g);
|
3827
3821
|
});
|
3828
3822
|
}
|
3829
|
-
function
|
3830
|
-
|
3823
|
+
function Ut(p) {
|
3824
|
+
q[p ? "unshift" : "push"](() => {
|
3831
3825
|
f = p, r(0, f);
|
3832
3826
|
});
|
3833
3827
|
}
|
3834
3828
|
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,
|
3829
|
+
"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
3830
|
}, e.$$.update = () => {
|
3837
3831
|
e.$$.dirty & /*triggerreset, total*/
|
3838
3832
|
4160 && c && s && setTimeout(() => {
|
3839
|
-
|
3833
|
+
te();
|
3840
3834
|
}), e.$$.dirty & /*lang*/
|
3841
3835
|
256 && a && R(), e.$$.dirty & /*status*/
|
3842
|
-
512 &&
|
3843
|
-
1024 &&
|
3836
|
+
512 && u && Mt(), e.$$.dirty & /*translationurl*/
|
3837
|
+
1024 && h && O();
|
3844
3838
|
}, [
|
3845
3839
|
f,
|
3840
|
+
x,
|
3846
3841
|
g,
|
3847
|
-
d,
|
3848
3842
|
y,
|
3849
|
-
|
3843
|
+
N,
|
3850
3844
|
i,
|
3851
3845
|
s,
|
3852
3846
|
o,
|
3853
3847
|
a,
|
3854
|
-
h,
|
3855
3848
|
u,
|
3849
|
+
h,
|
3856
3850
|
l,
|
3857
3851
|
c,
|
3858
|
-
|
3859
|
-
|
3860
|
-
|
3852
|
+
Rt,
|
3853
|
+
$t,
|
3854
|
+
Ut
|
3861
3855
|
];
|
3862
3856
|
}
|
3863
|
-
class
|
3857
|
+
class oi extends lr {
|
3864
3858
|
constructor(t) {
|
3865
|
-
super(),
|
3859
|
+
super(), hr(
|
3866
3860
|
this,
|
3867
3861
|
t,
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3862
|
+
si,
|
3863
|
+
ii,
|
3864
|
+
at,
|
3871
3865
|
{
|
3872
3866
|
currentstep: 5,
|
3873
3867
|
total: 6,
|
@@ -3878,7 +3872,7 @@ class ui extends cr {
|
|
3878
3872
|
progressfractiondigit: 11,
|
3879
3873
|
triggerreset: 12
|
3880
3874
|
},
|
3881
|
-
|
3875
|
+
ni
|
3882
3876
|
);
|
3883
3877
|
}
|
3884
3878
|
get currentstep() {
|
@@ -3930,7 +3924,7 @@ class ui extends cr {
|
|
3930
3924
|
this.$$set({ triggerreset: t }), P();
|
3931
3925
|
}
|
3932
3926
|
}
|
3933
|
-
|
3927
|
+
ur(oi, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3934
3928
|
export {
|
3935
|
-
|
3929
|
+
oi as default
|
3936
3930
|
};
|