@everymatrix/casino-header-bets-button 1.77.20 → 1.77.21
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/{CasinoHeaderBetsButton-i6TUSqvw.js → CasinoHeaderBetsButton-B5dXcpQV.js} +644 -638
- package/components/CasinoHeaderBetsButton-BZnUcTeA.cjs +3 -0
- package/components/{CasinoHeaderBetsButton-Tis7iePY.js → CasinoHeaderBetsButton-nu6zgb7y.js} +669 -663
- package/es2015/casino-header-bets-button.cjs +1 -1
- package/es2015/casino-header-bets-button.js +1 -1
- package/esnext/casino-header-bets-button.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHeaderBetsButton-Bgu9UiB0.cjs +0 -16
package/components/{CasinoHeaderBetsButton-i6TUSqvw.js → CasinoHeaderBetsButton-B5dXcpQV.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Re() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function q(e) {
|
|
10
|
+
e.forEach(tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function we(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function rt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ot(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function nt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function tt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Nt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(nt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function T(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function wt(e, t, r) {
|
|
37
|
+
const n = It(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = P("style");
|
|
40
|
+
i.id = t, i.textContent = r, Lt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function It(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,42 +50,42 @@ function Ot(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Lt(e, t) {
|
|
54
|
+
return T(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function it(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ie(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function P(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ee(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function Ct() {
|
|
73
|
+
return Ee(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function $t(e, t, r, n) {
|
|
76
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function $(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Rt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ue(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ut(e) {
|
|
89
89
|
const t = {};
|
|
90
90
|
return e.childNodes.forEach(
|
|
91
91
|
/** @param {Element} node */
|
|
@@ -94,87 +94,87 @@ function $t(e) {
|
|
|
94
94
|
}
|
|
95
95
|
), t;
|
|
96
96
|
}
|
|
97
|
-
let
|
|
98
|
-
function
|
|
99
|
-
|
|
97
|
+
let Z;
|
|
98
|
+
function z(e) {
|
|
99
|
+
Z = e;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
if (!
|
|
101
|
+
function Dt() {
|
|
102
|
+
if (!Z)
|
|
103
103
|
throw new Error("Function called outside component initialization");
|
|
104
|
-
return
|
|
104
|
+
return Z;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
106
|
+
function Gt(e) {
|
|
107
|
+
Dt().$$.on_mount.push(e);
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
function
|
|
114
|
-
|
|
109
|
+
const R = [], xe = [];
|
|
110
|
+
let U = [];
|
|
111
|
+
const De = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
112
|
+
let ve = !1;
|
|
113
|
+
function jt() {
|
|
114
|
+
ve || (ve = !0, Ft.then(w));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function _e(e) {
|
|
117
|
+
U.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
119
|
+
const ce = /* @__PURE__ */ new Set();
|
|
120
|
+
let L = 0;
|
|
121
|
+
function w() {
|
|
122
|
+
if (L !== 0)
|
|
123
123
|
return;
|
|
124
|
-
const e =
|
|
124
|
+
const e = Z;
|
|
125
125
|
do {
|
|
126
126
|
try {
|
|
127
|
-
for (;
|
|
128
|
-
const t =
|
|
129
|
-
|
|
127
|
+
for (; L < R.length; ) {
|
|
128
|
+
const t = R[L];
|
|
129
|
+
L++, z(t), kt(t.$$);
|
|
130
130
|
}
|
|
131
131
|
} catch (t) {
|
|
132
|
-
throw
|
|
132
|
+
throw R.length = 0, L = 0, t;
|
|
133
133
|
}
|
|
134
|
-
for (
|
|
135
|
-
|
|
136
|
-
for (let t = 0; t <
|
|
137
|
-
const r =
|
|
138
|
-
|
|
134
|
+
for (z(null), R.length = 0, L = 0; xe.length; )
|
|
135
|
+
xe.pop()();
|
|
136
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
137
|
+
const r = U[t];
|
|
138
|
+
ce.has(r) || (ce.add(r), r());
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
} while (
|
|
142
|
-
for (;
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
U.length = 0;
|
|
141
|
+
} while (R.length);
|
|
142
|
+
for (; De.length; )
|
|
143
|
+
De.pop()();
|
|
144
|
+
ve = !1, ce.clear(), z(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function kt(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
148
|
-
e.update(),
|
|
148
|
+
e.update(), q(e.before_update);
|
|
149
149
|
const t = e.dirty;
|
|
150
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
150
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Vt(e) {
|
|
154
154
|
const t = [], r = [];
|
|
155
|
-
|
|
155
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
e && e.i && (
|
|
157
|
+
const Xt = /* @__PURE__ */ new Set();
|
|
158
|
+
function Wt(e, t) {
|
|
159
|
+
e && e.i && (Xt.delete(e), e.i(t));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function zt(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
|
-
n && n.m(t, r),
|
|
164
|
-
const s = e.$$.on_mount.map(
|
|
165
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
166
|
-
}), i.forEach(
|
|
163
|
+
n && n.m(t, r), _e(() => {
|
|
164
|
+
const s = e.$$.on_mount.map(tt).filter(we);
|
|
165
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : q(s), e.$$.on_mount = [];
|
|
166
|
+
}), i.forEach(_e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Zt(e, t) {
|
|
169
169
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (
|
|
170
|
+
r.fragment !== null && (Vt(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
e.$$.dirty[0] === -1 && (
|
|
172
|
+
function Qt(e, t) {
|
|
173
|
+
e.$$.dirty[0] === -1 && (R.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const l =
|
|
177
|
-
|
|
175
|
+
function Jt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
176
|
+
const l = Z;
|
|
177
|
+
z(e);
|
|
178
178
|
const o = e.$$ = {
|
|
179
179
|
fragment: null,
|
|
180
180
|
ctx: [],
|
|
@@ -182,7 +182,7 @@ function Zt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
|
182
182
|
props: s,
|
|
183
183
|
update: H,
|
|
184
184
|
not_equal: i,
|
|
185
|
-
bound:
|
|
185
|
+
bound: Re(),
|
|
186
186
|
// lifecycle
|
|
187
187
|
on_mount: [],
|
|
188
188
|
on_destroy: [],
|
|
@@ -191,28 +191,28 @@ function Zt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
|
191
191
|
after_update: [],
|
|
192
192
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
193
193
|
// everything else
|
|
194
|
-
callbacks:
|
|
194
|
+
callbacks: Re(),
|
|
195
195
|
dirty: a,
|
|
196
196
|
skip_bound: !1,
|
|
197
197
|
root: t.target || l.$$.root
|
|
198
198
|
};
|
|
199
199
|
u && u(o.root);
|
|
200
200
|
let h = !1;
|
|
201
|
-
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
202
|
-
const
|
|
203
|
-
return o.ctx && i(o.ctx[f], o.ctx[f] =
|
|
204
|
-
}) : [], o.update(), h = !0,
|
|
201
|
+
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
|
|
202
|
+
const d = g.length ? g[0] : c;
|
|
203
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = d) && (!o.skip_bound && o.bound[f] && o.bound[f](d), h && Qt(e, f)), c;
|
|
204
|
+
}) : [], o.update(), h = !0, q(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
|
-
const f =
|
|
207
|
-
o.fragment && o.fragment.l(f), f.forEach(
|
|
206
|
+
const f = Rt(t.target);
|
|
207
|
+
o.fragment && o.fragment.l(f), f.forEach(Ie);
|
|
208
208
|
} else
|
|
209
209
|
o.fragment && o.fragment.c();
|
|
210
|
-
t.intro &&
|
|
210
|
+
t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
z(l);
|
|
213
213
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
214
|
+
let st;
|
|
215
|
+
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
216
216
|
/** The Svelte component constructor */
|
|
217
217
|
$$ctor;
|
|
218
218
|
/** Slots */
|
|
@@ -254,29 +254,29 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
254
254
|
let s;
|
|
255
255
|
return {
|
|
256
256
|
c: function() {
|
|
257
|
-
s =
|
|
257
|
+
s = P("slot"), i !== "default" && $(s, "name", i);
|
|
258
258
|
},
|
|
259
259
|
/**
|
|
260
260
|
* @param {HTMLElement} target
|
|
261
261
|
* @param {HTMLElement} [anchor]
|
|
262
262
|
*/
|
|
263
263
|
m: function(l, o) {
|
|
264
|
-
|
|
264
|
+
it(l, s, o);
|
|
265
265
|
},
|
|
266
266
|
d: function(l) {
|
|
267
|
-
l &&
|
|
267
|
+
l && Ie(s);
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
272
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
273
|
return;
|
|
274
|
-
const t = {}, r =
|
|
274
|
+
const t = {}, r = Ut(this);
|
|
275
275
|
for (const i of this.$$s)
|
|
276
276
|
i in r && (t[i] = [e(i)]);
|
|
277
277
|
for (const i of this.attributes) {
|
|
278
278
|
const s = this.$$g_p(i.name);
|
|
279
|
-
s in this.$$d || (this.$$d[s] =
|
|
279
|
+
s in this.$$d || (this.$$d[s] = te(s, i.value, this.$$p_d, "toProp"));
|
|
280
280
|
}
|
|
281
281
|
for (const i in this.$$p_d)
|
|
282
282
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
294
294
|
this.$$r = !0;
|
|
295
295
|
for (const i in this.$$p_d)
|
|
296
296
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
297
|
-
const s =
|
|
297
|
+
const s = te(
|
|
298
298
|
i,
|
|
299
299
|
this.$$d[i],
|
|
300
300
|
this.$$p_d,
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
316
316
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
317
317
|
// and setting attributes through setAttribute etc, this is helpful
|
|
318
318
|
attributeChangedCallback(e, t, r) {
|
|
319
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
319
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
320
320
|
}
|
|
321
321
|
disconnectedCallback() {
|
|
322
322
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
329
329
|
) || e;
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
|
-
function
|
|
332
|
+
function te(e, t, r, n) {
|
|
333
333
|
const i = r[e]?.type;
|
|
334
334
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
335
335
|
return t;
|
|
@@ -358,8 +358,8 @@ function ee(e, t, r, n) {
|
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let u = class extends
|
|
361
|
+
function qt(e, t, r, n, i, s) {
|
|
362
|
+
let u = class extends st {
|
|
363
363
|
constructor() {
|
|
364
364
|
super(e, r, i), this.$$p_d = t;
|
|
365
365
|
}
|
|
@@ -375,7 +375,7 @@ function Qt(e, t, r, n, i, s) {
|
|
|
375
375
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
376
376
|
},
|
|
377
377
|
set(l) {
|
|
378
|
-
l =
|
|
378
|
+
l = te(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}), n.forEach((a) => {
|
|
@@ -387,7 +387,7 @@ function Qt(e, t, r, n, i, s) {
|
|
|
387
387
|
}), e.element = /** @type {any} */
|
|
388
388
|
u, u;
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class Yt {
|
|
391
391
|
/**
|
|
392
392
|
* ### PRIVATE API
|
|
393
393
|
*
|
|
@@ -406,7 +406,7 @@ class Jt {
|
|
|
406
406
|
$$set = void 0;
|
|
407
407
|
/** @returns {void} */
|
|
408
408
|
$destroy() {
|
|
409
|
-
|
|
409
|
+
Zt(this, 1), this.$destroy = H;
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -415,7 +415,7 @@ class Jt {
|
|
|
415
415
|
* @returns {() => void}
|
|
416
416
|
*/
|
|
417
417
|
$on(t, r) {
|
|
418
|
-
if (!
|
|
418
|
+
if (!we(r))
|
|
419
419
|
return H;
|
|
420
420
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
421
421
|
return n.push(r), () => {
|
|
@@ -428,18 +428,18 @@ class Jt {
|
|
|
428
428
|
* @returns {void}
|
|
429
429
|
*/
|
|
430
430
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !Ot(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
436
|
-
function
|
|
434
|
+
const Kt = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
|
|
436
|
+
function er(e, t) {
|
|
437
437
|
if (e) {
|
|
438
438
|
const r = document.createElement("style");
|
|
439
439
|
r.innerHTML = t, e.appendChild(r);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function tr(e, t) {
|
|
443
443
|
const r = new URL(t);
|
|
444
444
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
445
445
|
const i = document.createElement("style");
|
|
@@ -448,7 +448,7 @@ function Kt(e, t) {
|
|
|
448
448
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function rr(e, t, r) {
|
|
452
452
|
if (window.emMessageBus) {
|
|
453
453
|
const n = document.createElement("style");
|
|
454
454
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -456,24 +456,24 @@ function er(e, t, r) {
|
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
460
|
-
function
|
|
459
|
+
const C = [];
|
|
460
|
+
function nr(e, t) {
|
|
461
461
|
return {
|
|
462
|
-
subscribe:
|
|
462
|
+
subscribe: ae(e, t).subscribe
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function ae(e, t = H) {
|
|
466
466
|
let r;
|
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
|
468
468
|
function i(a) {
|
|
469
|
-
if (
|
|
470
|
-
const l = !
|
|
469
|
+
if (rt(e, a) && (e = a, r)) {
|
|
470
|
+
const l = !C.length;
|
|
471
471
|
for (const o of n)
|
|
472
|
-
o[1](),
|
|
472
|
+
o[1](), C.push(o, e);
|
|
473
473
|
if (l) {
|
|
474
|
-
for (let o = 0; o <
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
for (let o = 0; o < C.length; o += 2)
|
|
475
|
+
C[o][0](C[o + 1]);
|
|
476
|
+
C.length = 0;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
}
|
|
@@ -488,12 +488,12 @@ function se(e, t = H) {
|
|
|
488
488
|
}
|
|
489
489
|
return { set: i, update: s, subscribe: u };
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function k(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
|
|
496
|
+
return nr(r, (u, a) => {
|
|
497
497
|
let l = !1;
|
|
498
498
|
const o = [];
|
|
499
499
|
let h = 0, f = H;
|
|
@@ -501,11 +501,11 @@ function j(e, t, r) {
|
|
|
501
501
|
if (h)
|
|
502
502
|
return;
|
|
503
503
|
f();
|
|
504
|
-
const
|
|
505
|
-
s ? u(
|
|
506
|
-
},
|
|
507
|
-
(
|
|
508
|
-
|
|
504
|
+
const d = t(n ? o[0] : o, u, a);
|
|
505
|
+
s ? u(d) : f = we(d) ? d : H;
|
|
506
|
+
}, g = i.map(
|
|
507
|
+
(d, E) => nt(
|
|
508
|
+
d,
|
|
509
509
|
(B) => {
|
|
510
510
|
o[E] = B, h &= ~(1 << E), l && c();
|
|
511
511
|
},
|
|
@@ -515,126 +515,112 @@ function j(e, t, r) {
|
|
|
515
515
|
)
|
|
516
516
|
);
|
|
517
517
|
return l = !0, c(), function() {
|
|
518
|
-
|
|
518
|
+
q(g), f(), l = !1;
|
|
519
519
|
};
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function ir(e) {
|
|
523
523
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
return
|
|
525
|
+
var sr = function(t) {
|
|
526
|
+
return or(t) && !ar(t);
|
|
527
527
|
};
|
|
528
|
-
function
|
|
528
|
+
function or(e) {
|
|
529
529
|
return !!e && typeof e == "object";
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function ar(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]" || lr(e);
|
|
534
534
|
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
537
|
-
return e.$$typeof ===
|
|
535
|
+
var ur = typeof Symbol == "function" && Symbol.for, hr = ur ? Symbol.for("react.element") : 60103;
|
|
536
|
+
function lr(e) {
|
|
537
|
+
return e.$$typeof === hr;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function fr(e) {
|
|
540
540
|
return Array.isArray(e) ? [] : {};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
542
|
+
function Q(e, t) {
|
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(fr(e), e, t) : e;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function cr(e, t, r) {
|
|
546
546
|
return e.concat(t).map(function(n) {
|
|
547
|
-
return
|
|
547
|
+
return Q(n, r);
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function mr(e, t) {
|
|
551
551
|
if (!t.customMerge)
|
|
552
|
-
return
|
|
552
|
+
return D;
|
|
553
553
|
var r = t.customMerge(e);
|
|
554
|
-
return typeof r == "function" ? r :
|
|
554
|
+
return typeof r == "function" ? r : D;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function pr(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 Ge(e) {
|
|
562
|
+
return Object.keys(e).concat(pr(e));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function ot(e, t) {
|
|
565
565
|
try {
|
|
566
566
|
return t in e;
|
|
567
567
|
} catch {
|
|
568
568
|
return !1;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function br(e, t) {
|
|
572
|
+
return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function dr(e, t, r) {
|
|
575
575
|
var n = {};
|
|
576
|
-
return r.isMergeableObject(e) &&
|
|
577
|
-
n[i] =
|
|
578
|
-
}),
|
|
579
|
-
|
|
576
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
|
577
|
+
n[i] = Q(e[i], r);
|
|
578
|
+
}), Ge(t).forEach(function(i) {
|
|
579
|
+
br(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = mr(i, r)(e[i], t[i], r) : n[i] = Q(t[i], r));
|
|
580
580
|
}), n;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
582
|
+
function D(e, t, r) {
|
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = Q;
|
|
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) : dr(e, t, r) : Q(t, r);
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
D.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 D(n, i, r);
|
|
592
592
|
}, {});
|
|
593
593
|
};
|
|
594
|
-
var
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
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 ve = function(e, t) {
|
|
611
|
-
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
594
|
+
var gr = D, yr = gr;
|
|
595
|
+
const Er = /* @__PURE__ */ ir(yr);
|
|
596
|
+
var Be = function(e, t) {
|
|
597
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
598
|
r.__proto__ = n;
|
|
613
599
|
} || function(r, n) {
|
|
614
600
|
for (var i in n)
|
|
615
601
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
616
|
-
},
|
|
602
|
+
}, Be(e, t);
|
|
617
603
|
};
|
|
618
|
-
function
|
|
604
|
+
function ue(e, t) {
|
|
619
605
|
if (typeof t != "function" && t !== null)
|
|
620
606
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
621
|
-
|
|
607
|
+
Be(e, t);
|
|
622
608
|
function r() {
|
|
623
609
|
this.constructor = e;
|
|
624
610
|
}
|
|
625
611
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
626
612
|
}
|
|
627
|
-
var
|
|
628
|
-
return
|
|
613
|
+
var A = function() {
|
|
614
|
+
return A = Object.assign || function(t) {
|
|
629
615
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
630
616
|
r = arguments[n];
|
|
631
617
|
for (var s in r)
|
|
632
618
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
633
619
|
}
|
|
634
620
|
return t;
|
|
635
|
-
},
|
|
621
|
+
}, A.apply(this, arguments);
|
|
636
622
|
};
|
|
637
|
-
function
|
|
623
|
+
function xr(e, t) {
|
|
638
624
|
var r = {};
|
|
639
625
|
for (var n in e)
|
|
640
626
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -643,43 +629,43 @@ function yr(e, t) {
|
|
|
643
629
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
644
630
|
return r;
|
|
645
631
|
}
|
|
646
|
-
function
|
|
647
|
-
if (arguments.length === 2)
|
|
632
|
+
function me(e, t, r) {
|
|
633
|
+
if (r || arguments.length === 2)
|
|
648
634
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
649
635
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
650
|
-
return e.concat(s || t);
|
|
636
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
651
637
|
}
|
|
652
|
-
function
|
|
653
|
-
var r = t && t.cache ? t.cache :
|
|
638
|
+
function pe(e, t) {
|
|
639
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Sr, i = t && t.strategy ? t.strategy : Br;
|
|
654
640
|
return i(e, {
|
|
655
641
|
cache: r,
|
|
656
642
|
serializer: n
|
|
657
643
|
});
|
|
658
644
|
}
|
|
659
|
-
function
|
|
645
|
+
function vr(e) {
|
|
660
646
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
661
647
|
}
|
|
662
|
-
function
|
|
663
|
-
var i =
|
|
648
|
+
function _r(e, t, r, n) {
|
|
649
|
+
var i = vr(n) ? n : r(n), s = t.get(i);
|
|
664
650
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
665
651
|
}
|
|
666
|
-
function
|
|
652
|
+
function at(e, t, r) {
|
|
667
653
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
668
654
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
669
655
|
}
|
|
670
|
-
function
|
|
656
|
+
function ut(e, t, r, n, i) {
|
|
671
657
|
return r.bind(t, e, n, i);
|
|
672
658
|
}
|
|
673
|
-
function
|
|
674
|
-
var r = e.length === 1 ?
|
|
675
|
-
return
|
|
659
|
+
function Br(e, t) {
|
|
660
|
+
var r = e.length === 1 ? _r : at;
|
|
661
|
+
return ut(e, this, r, t.cache.create(), t.serializer);
|
|
676
662
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
663
|
+
function Hr(e, t) {
|
|
664
|
+
return ut(e, this, at, t.cache.create(), t.serializer);
|
|
679
665
|
}
|
|
680
|
-
var
|
|
666
|
+
var Sr = function() {
|
|
681
667
|
return JSON.stringify(arguments);
|
|
682
|
-
},
|
|
668
|
+
}, Tr = (
|
|
683
669
|
/** @class */
|
|
684
670
|
function() {
|
|
685
671
|
function e() {
|
|
@@ -691,61 +677,71 @@ var Br = function() {
|
|
|
691
677
|
this.cache[t] = r;
|
|
692
678
|
}, e;
|
|
693
679
|
}()
|
|
694
|
-
),
|
|
680
|
+
), Ar = {
|
|
695
681
|
create: function() {
|
|
696
|
-
return new
|
|
682
|
+
return new Tr();
|
|
697
683
|
}
|
|
698
|
-
},
|
|
699
|
-
variadic:
|
|
700
|
-
},
|
|
684
|
+
}, be = {
|
|
685
|
+
variadic: Hr
|
|
686
|
+
}, ie = function() {
|
|
687
|
+
return ie = 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
|
+
}, ie.apply(this, arguments);
|
|
695
|
+
};
|
|
696
|
+
var p;
|
|
701
697
|
(function(e) {
|
|
702
698
|
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";
|
|
703
699
|
})(p || (p = {}));
|
|
704
|
-
var
|
|
700
|
+
var y;
|
|
705
701
|
(function(e) {
|
|
706
702
|
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";
|
|
707
|
-
})(
|
|
708
|
-
var
|
|
703
|
+
})(y || (y = {}));
|
|
704
|
+
var G;
|
|
709
705
|
(function(e) {
|
|
710
706
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
711
|
-
})(
|
|
712
|
-
function
|
|
713
|
-
return e.type ===
|
|
714
|
-
}
|
|
715
|
-
function Sr(e) {
|
|
716
|
-
return e.type === x.argument;
|
|
717
|
-
}
|
|
718
|
-
function at(e) {
|
|
719
|
-
return e.type === x.number;
|
|
707
|
+
})(G || (G = {}));
|
|
708
|
+
function Fe(e) {
|
|
709
|
+
return e.type === y.literal;
|
|
720
710
|
}
|
|
721
|
-
function
|
|
722
|
-
return e.type ===
|
|
711
|
+
function Pr(e) {
|
|
712
|
+
return e.type === y.argument;
|
|
723
713
|
}
|
|
724
714
|
function ht(e) {
|
|
725
|
-
return e.type ===
|
|
715
|
+
return e.type === y.number;
|
|
726
716
|
}
|
|
727
717
|
function lt(e) {
|
|
728
|
-
return e.type ===
|
|
718
|
+
return e.type === y.date;
|
|
729
719
|
}
|
|
730
720
|
function ft(e) {
|
|
731
|
-
return e.type ===
|
|
732
|
-
}
|
|
733
|
-
function Ar(e) {
|
|
734
|
-
return e.type === x.pound;
|
|
721
|
+
return e.type === y.time;
|
|
735
722
|
}
|
|
736
723
|
function ct(e) {
|
|
737
|
-
return e.type ===
|
|
724
|
+
return e.type === y.select;
|
|
738
725
|
}
|
|
739
726
|
function mt(e) {
|
|
740
|
-
return
|
|
727
|
+
return e.type === y.plural;
|
|
741
728
|
}
|
|
742
|
-
function
|
|
743
|
-
return
|
|
729
|
+
function Mr(e) {
|
|
730
|
+
return e.type === y.pound;
|
|
744
731
|
}
|
|
745
|
-
|
|
746
|
-
|
|
732
|
+
function pt(e) {
|
|
733
|
+
return e.type === y.tag;
|
|
734
|
+
}
|
|
735
|
+
function bt(e) {
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
737
|
+
}
|
|
738
|
+
function He(e) {
|
|
739
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
740
|
+
}
|
|
741
|
+
var dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
742
|
+
function Nr(e) {
|
|
747
743
|
var t = {};
|
|
748
|
-
return e.replace(
|
|
744
|
+
return e.replace(Or, function(r) {
|
|
749
745
|
var n = r.length;
|
|
750
746
|
switch (r[0]) {
|
|
751
747
|
case "G":
|
|
@@ -834,11 +830,21 @@ function Pr(e) {
|
|
|
834
830
|
return "";
|
|
835
831
|
}), t;
|
|
836
832
|
}
|
|
837
|
-
var
|
|
838
|
-
function
|
|
833
|
+
var x = function() {
|
|
834
|
+
return x = Object.assign || function(t) {
|
|
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
|
+
}, x.apply(this, arguments);
|
|
842
|
+
};
|
|
843
|
+
var wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
844
|
+
function Ir(e) {
|
|
839
845
|
if (e.length === 0)
|
|
840
846
|
throw new Error("Number skeleton cannot be empty");
|
|
841
|
-
for (var t = e.split(
|
|
847
|
+
for (var t = e.split(wr).filter(function(c) {
|
|
842
848
|
return c.length > 0;
|
|
843
849
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
844
850
|
var s = i[n], u = s.split("/");
|
|
@@ -853,17 +859,17 @@ function Or(e) {
|
|
|
853
859
|
}
|
|
854
860
|
return r;
|
|
855
861
|
}
|
|
856
|
-
function
|
|
862
|
+
function Lr(e) {
|
|
857
863
|
return e.replace(/^(.*?)-/, "");
|
|
858
864
|
}
|
|
859
|
-
var
|
|
860
|
-
function
|
|
865
|
+
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
|
|
866
|
+
function ke(e) {
|
|
861
867
|
var t = {};
|
|
862
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
868
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
|
|
863
869
|
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)), "";
|
|
864
870
|
}), t;
|
|
865
871
|
}
|
|
866
|
-
function
|
|
872
|
+
function Et(e) {
|
|
867
873
|
switch (e) {
|
|
868
874
|
case "sign-auto":
|
|
869
875
|
return {
|
|
@@ -903,7 +909,7 @@ function gt(e) {
|
|
|
903
909
|
};
|
|
904
910
|
}
|
|
905
911
|
}
|
|
906
|
-
function
|
|
912
|
+
function $r(e) {
|
|
907
913
|
var t;
|
|
908
914
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
909
915
|
notation: "engineering"
|
|
@@ -911,17 +917,17 @@ function Lr(e) {
|
|
|
911
917
|
notation: "scientific"
|
|
912
918
|
}, e = e.slice(1)), t) {
|
|
913
919
|
var r = e.slice(0, 2);
|
|
914
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
920
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yt.test(e))
|
|
915
921
|
throw new Error("Malformed concise eng/scientific notation");
|
|
916
922
|
t.minimumIntegerDigits = e.length;
|
|
917
923
|
}
|
|
918
924
|
return t;
|
|
919
925
|
}
|
|
920
|
-
function
|
|
921
|
-
var t = {}, r =
|
|
926
|
+
function Ve(e) {
|
|
927
|
+
var t = {}, r = Et(e);
|
|
922
928
|
return r || t;
|
|
923
929
|
}
|
|
924
|
-
function
|
|
930
|
+
function Rr(e) {
|
|
925
931
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
926
932
|
var i = n[r];
|
|
927
933
|
switch (i.stem) {
|
|
@@ -945,7 +951,7 @@ function Cr(e) {
|
|
|
945
951
|
continue;
|
|
946
952
|
case "measure-unit":
|
|
947
953
|
case "unit":
|
|
948
|
-
t.style = "unit", t.unit =
|
|
954
|
+
t.style = "unit", t.unit = Lr(i.options[0]);
|
|
949
955
|
continue;
|
|
950
956
|
case "compact-short":
|
|
951
957
|
case "K":
|
|
@@ -956,13 +962,13 @@ function Cr(e) {
|
|
|
956
962
|
t.notation = "compact", t.compactDisplay = "long";
|
|
957
963
|
continue;
|
|
958
964
|
case "scientific":
|
|
959
|
-
t =
|
|
960
|
-
return
|
|
965
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
966
|
+
return x(x({}, l), Ve(o));
|
|
961
967
|
}, {}));
|
|
962
968
|
continue;
|
|
963
969
|
case "engineering":
|
|
964
|
-
t =
|
|
965
|
-
return
|
|
970
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
971
|
+
return x(x({}, l), Ve(o));
|
|
966
972
|
}, {}));
|
|
967
973
|
continue;
|
|
968
974
|
case "notation-simple":
|
|
@@ -1007,45 +1013,45 @@ function Cr(e) {
|
|
|
1007
1013
|
case "integer-width":
|
|
1008
1014
|
if (i.options.length > 1)
|
|
1009
1015
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1010
|
-
i.options[0].replace(
|
|
1016
|
+
i.options[0].replace(Cr, function(l, o, h, f, c, g) {
|
|
1011
1017
|
if (o)
|
|
1012
1018
|
t.minimumIntegerDigits = h.length;
|
|
1013
1019
|
else {
|
|
1014
1020
|
if (f && c)
|
|
1015
1021
|
throw new Error("We currently do not support maximum integer digits");
|
|
1016
|
-
if (
|
|
1022
|
+
if (g)
|
|
1017
1023
|
throw new Error("We currently do not support exact integer digits");
|
|
1018
1024
|
}
|
|
1019
1025
|
return "";
|
|
1020
1026
|
});
|
|
1021
1027
|
continue;
|
|
1022
1028
|
}
|
|
1023
|
-
if (
|
|
1029
|
+
if (yt.test(i.stem)) {
|
|
1024
1030
|
t.minimumIntegerDigits = i.stem.length;
|
|
1025
1031
|
continue;
|
|
1026
1032
|
}
|
|
1027
|
-
if (
|
|
1033
|
+
if (je.test(i.stem)) {
|
|
1028
1034
|
if (i.options.length > 1)
|
|
1029
1035
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1030
|
-
i.stem.replace(
|
|
1031
|
-
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1036
|
+
i.stem.replace(je, function(l, o, h, f, c, g) {
|
|
1037
|
+
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1032
1038
|
});
|
|
1033
1039
|
var s = i.options[0];
|
|
1034
|
-
s === "w" ? t =
|
|
1040
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ke(s)));
|
|
1035
1041
|
continue;
|
|
1036
1042
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
t =
|
|
1043
|
+
if (gt.test(i.stem)) {
|
|
1044
|
+
t = x(x({}, t), ke(i.stem));
|
|
1039
1045
|
continue;
|
|
1040
1046
|
}
|
|
1041
|
-
var u =
|
|
1042
|
-
u && (t =
|
|
1043
|
-
var a =
|
|
1044
|
-
a && (t =
|
|
1047
|
+
var u = Et(i.stem);
|
|
1048
|
+
u && (t = x(x({}, t), u));
|
|
1049
|
+
var a = $r(i.stem);
|
|
1050
|
+
a && (t = x(x({}, t), a));
|
|
1045
1051
|
}
|
|
1046
1052
|
return t;
|
|
1047
1053
|
}
|
|
1048
|
-
var
|
|
1054
|
+
var ee = {
|
|
1049
1055
|
"001": [
|
|
1050
1056
|
"H",
|
|
1051
1057
|
"h"
|
|
@@ -2460,13 +2466,13 @@ var K = {
|
|
|
2460
2466
|
"h"
|
|
2461
2467
|
]
|
|
2462
2468
|
};
|
|
2463
|
-
function
|
|
2469
|
+
function Ur(e, t) {
|
|
2464
2470
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2465
2471
|
var i = e.charAt(n);
|
|
2466
2472
|
if (i === "j") {
|
|
2467
2473
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2468
2474
|
s++, n++;
|
|
2469
|
-
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2475
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Dr(t);
|
|
2470
2476
|
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2471
2477
|
r += l;
|
|
2472
2478
|
for (; u-- > 0; )
|
|
@@ -2476,7 +2482,7 @@ function $r(e, t) {
|
|
|
2476
2482
|
}
|
|
2477
2483
|
return r;
|
|
2478
2484
|
}
|
|
2479
|
-
function
|
|
2485
|
+
function Dr(e) {
|
|
2480
2486
|
var t = e.hourCycle;
|
|
2481
2487
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2482
2488
|
e.hourCycles && // @ts-ignore
|
|
@@ -2495,23 +2501,23 @@ function Rr(e) {
|
|
|
2495
2501
|
}
|
|
2496
2502
|
var r = e.language, n;
|
|
2497
2503
|
r !== "root" && (n = e.maximize().region);
|
|
2498
|
-
var i =
|
|
2504
|
+
var i = ee[n || ""] || ee[r || ""] || ee["".concat(r, "-001")] || ee["001"];
|
|
2499
2505
|
return i[0];
|
|
2500
2506
|
}
|
|
2501
|
-
var
|
|
2507
|
+
var de, Gr = new RegExp("^".concat(dt.source, "*")), Fr = new RegExp("".concat(dt.source, "*$"));
|
|
2502
2508
|
function b(e, t) {
|
|
2503
2509
|
return { start: e, end: t };
|
|
2504
2510
|
}
|
|
2505
|
-
var
|
|
2511
|
+
var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, Wr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
|
|
2506
2512
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2507
|
-
},
|
|
2513
|
+
}, Se = !0;
|
|
2508
2514
|
try {
|
|
2509
|
-
var
|
|
2510
|
-
|
|
2515
|
+
var Jr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2516
|
+
Se = ((de = Jr.exec("a")) === null || de === void 0 ? void 0 : de[0]) === "a";
|
|
2511
2517
|
} catch {
|
|
2512
|
-
|
|
2518
|
+
Se = !1;
|
|
2513
2519
|
}
|
|
2514
|
-
var
|
|
2520
|
+
var Xe = jr ? (
|
|
2515
2521
|
// Native
|
|
2516
2522
|
function(t, r, n) {
|
|
2517
2523
|
return t.startsWith(r, n);
|
|
@@ -2521,7 +2527,7 @@ var ke = Gr ? (
|
|
|
2521
2527
|
function(t, r, n) {
|
|
2522
2528
|
return t.slice(n, n + r.length) === r;
|
|
2523
2529
|
}
|
|
2524
|
-
),
|
|
2530
|
+
), Te = kr ? String.fromCodePoint : (
|
|
2525
2531
|
// IE11
|
|
2526
2532
|
function() {
|
|
2527
2533
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2533,9 +2539,9 @@ var ke = Gr ? (
|
|
|
2533
2539
|
}
|
|
2534
2540
|
return n;
|
|
2535
2541
|
}
|
|
2536
|
-
),
|
|
2542
|
+
), We = (
|
|
2537
2543
|
// native
|
|
2538
|
-
|
|
2544
|
+
Vr ? Object.fromEntries : (
|
|
2539
2545
|
// Ponyfill
|
|
2540
2546
|
function(t) {
|
|
2541
2547
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2545,7 +2551,7 @@ var ke = Gr ? (
|
|
|
2545
2551
|
return r;
|
|
2546
2552
|
}
|
|
2547
2553
|
)
|
|
2548
|
-
),
|
|
2554
|
+
), xt = Xr ? (
|
|
2549
2555
|
// Native
|
|
2550
2556
|
function(t, r) {
|
|
2551
2557
|
return t.codePointAt(r);
|
|
@@ -2559,7 +2565,7 @@ var ke = Gr ? (
|
|
|
2559
2565
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2560
2566
|
}
|
|
2561
2567
|
}
|
|
2562
|
-
),
|
|
2568
|
+
), qr = Wr ? (
|
|
2563
2569
|
// Native
|
|
2564
2570
|
function(t) {
|
|
2565
2571
|
return t.trimStart();
|
|
@@ -2567,9 +2573,9 @@ var ke = Gr ? (
|
|
|
2567
2573
|
) : (
|
|
2568
2574
|
// Ponyfill
|
|
2569
2575
|
function(t) {
|
|
2570
|
-
return t.replace(
|
|
2576
|
+
return t.replace(Gr, "");
|
|
2571
2577
|
}
|
|
2572
|
-
),
|
|
2578
|
+
), Yr = zr ? (
|
|
2573
2579
|
// Native
|
|
2574
2580
|
function(t) {
|
|
2575
2581
|
return t.trimEnd();
|
|
@@ -2577,32 +2583,32 @@ var ke = Gr ? (
|
|
|
2577
2583
|
) : (
|
|
2578
2584
|
// Ponyfill
|
|
2579
2585
|
function(t) {
|
|
2580
|
-
return t.replace(
|
|
2586
|
+
return t.replace(Fr, "");
|
|
2581
2587
|
}
|
|
2582
2588
|
);
|
|
2583
|
-
function
|
|
2589
|
+
function vt(e, t) {
|
|
2584
2590
|
return new RegExp(e, t);
|
|
2585
2591
|
}
|
|
2586
|
-
var
|
|
2587
|
-
if (
|
|
2588
|
-
var
|
|
2589
|
-
|
|
2592
|
+
var Ae;
|
|
2593
|
+
if (Se) {
|
|
2594
|
+
var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
|
+
Ae = function(t, r) {
|
|
2590
2596
|
var n;
|
|
2591
|
-
|
|
2592
|
-
var i =
|
|
2597
|
+
ze.lastIndex = r;
|
|
2598
|
+
var i = ze.exec(t);
|
|
2593
2599
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2594
2600
|
};
|
|
2595
2601
|
} else
|
|
2596
|
-
|
|
2602
|
+
Ae = function(t, r) {
|
|
2597
2603
|
for (var n = []; ; ) {
|
|
2598
|
-
var i =
|
|
2599
|
-
if (i === void 0 ||
|
|
2604
|
+
var i = xt(t, r);
|
|
2605
|
+
if (i === void 0 || _t(i) || rn(i))
|
|
2600
2606
|
break;
|
|
2601
2607
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2602
2608
|
}
|
|
2603
|
-
return
|
|
2609
|
+
return Te.apply(void 0, n);
|
|
2604
2610
|
};
|
|
2605
|
-
var
|
|
2611
|
+
var Kr = (
|
|
2606
2612
|
/** @class */
|
|
2607
2613
|
function() {
|
|
2608
2614
|
function e(t, r) {
|
|
@@ -2626,14 +2632,14 @@ var qr = (
|
|
|
2626
2632
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2627
2633
|
var a = this.clonePosition();
|
|
2628
2634
|
this.bump(), i.push({
|
|
2629
|
-
type:
|
|
2635
|
+
type: y.pound,
|
|
2630
2636
|
location: b(a, this.clonePosition())
|
|
2631
2637
|
});
|
|
2632
2638
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2633
2639
|
if (n)
|
|
2634
2640
|
break;
|
|
2635
2641
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2636
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2642
|
+
} else if (s === 60 && !this.ignoreTag && Pe(this.peek() || 0)) {
|
|
2637
2643
|
var u = this.parseTag(t, r);
|
|
2638
2644
|
if (u.err)
|
|
2639
2645
|
return u;
|
|
@@ -2654,7 +2660,7 @@ var qr = (
|
|
|
2654
2660
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2655
2661
|
return {
|
|
2656
2662
|
val: {
|
|
2657
|
-
type:
|
|
2663
|
+
type: y.literal,
|
|
2658
2664
|
value: "<".concat(i, "/>"),
|
|
2659
2665
|
location: b(n, this.clonePosition())
|
|
2660
2666
|
},
|
|
@@ -2666,12 +2672,12 @@ var qr = (
|
|
|
2666
2672
|
return s;
|
|
2667
2673
|
var u = s.val, a = this.clonePosition();
|
|
2668
2674
|
if (this.bumpIf("</")) {
|
|
2669
|
-
if (this.isEOF() || !
|
|
2675
|
+
if (this.isEOF() || !Pe(this.char()))
|
|
2670
2676
|
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
2671
2677
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2672
2678
|
return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2673
2679
|
val: {
|
|
2674
|
-
type:
|
|
2680
|
+
type: y.tag,
|
|
2675
2681
|
value: i,
|
|
2676
2682
|
children: u,
|
|
2677
2683
|
location: b(n, this.clonePosition())
|
|
@@ -2684,7 +2690,7 @@ var qr = (
|
|
|
2684
2690
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2685
2691
|
}, e.prototype.parseTagName = function() {
|
|
2686
2692
|
var t = this.offset();
|
|
2687
|
-
for (this.bump(); !this.isEOF() &&
|
|
2693
|
+
for (this.bump(); !this.isEOF() && tn(this.char()); )
|
|
2688
2694
|
this.bump();
|
|
2689
2695
|
return this.message.slice(t, this.offset());
|
|
2690
2696
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2708,12 +2714,12 @@ var qr = (
|
|
|
2708
2714
|
}
|
|
2709
2715
|
var l = b(n, this.clonePosition());
|
|
2710
2716
|
return {
|
|
2711
|
-
val: { type:
|
|
2717
|
+
val: { type: y.literal, value: i, location: l },
|
|
2712
2718
|
err: null
|
|
2713
2719
|
};
|
|
2714
2720
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2715
2721
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2716
|
-
!
|
|
2722
|
+
!en(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2717
2723
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2718
2724
|
if (this.isEOF() || this.char() !== 39)
|
|
2719
2725
|
return null;
|
|
@@ -2747,12 +2753,12 @@ var qr = (
|
|
|
2747
2753
|
r.push(n);
|
|
2748
2754
|
this.bump();
|
|
2749
2755
|
}
|
|
2750
|
-
return
|
|
2756
|
+
return Te.apply(void 0, r);
|
|
2751
2757
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2752
2758
|
if (this.isEOF())
|
|
2753
2759
|
return null;
|
|
2754
2760
|
var n = this.char();
|
|
2755
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2761
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Te(n));
|
|
2756
2762
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2757
2763
|
var n = this.clonePosition();
|
|
2758
2764
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2768,7 +2774,7 @@ var qr = (
|
|
|
2768
2774
|
case 125:
|
|
2769
2775
|
return this.bump(), {
|
|
2770
2776
|
val: {
|
|
2771
|
-
type:
|
|
2777
|
+
type: y.argument,
|
|
2772
2778
|
// value does not include the opening and closing braces.
|
|
2773
2779
|
value: i,
|
|
2774
2780
|
location: b(n, this.clonePosition())
|
|
@@ -2781,7 +2787,7 @@ var qr = (
|
|
|
2781
2787
|
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2782
2788
|
}
|
|
2783
2789
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2784
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2790
|
+
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
|
2785
2791
|
this.bumpTo(i);
|
|
2786
2792
|
var s = this.clonePosition(), u = b(t, s);
|
|
2787
2793
|
return { value: n, location: u };
|
|
@@ -2800,35 +2806,35 @@ var qr = (
|
|
|
2800
2806
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2801
2807
|
if (f.err)
|
|
2802
2808
|
return f;
|
|
2803
|
-
var c =
|
|
2809
|
+
var c = Yr(f.val);
|
|
2804
2810
|
if (c.length === 0)
|
|
2805
2811
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2806
|
-
var
|
|
2807
|
-
o = { style: c, styleLocation:
|
|
2812
|
+
var g = b(h, this.clonePosition());
|
|
2813
|
+
o = { style: c, styleLocation: g };
|
|
2808
2814
|
}
|
|
2809
|
-
var
|
|
2810
|
-
if (
|
|
2811
|
-
return
|
|
2815
|
+
var d = this.tryParseArgumentClose(i);
|
|
2816
|
+
if (d.err)
|
|
2817
|
+
return d;
|
|
2812
2818
|
var E = b(i, this.clonePosition());
|
|
2813
|
-
if (o &&
|
|
2814
|
-
var B =
|
|
2819
|
+
if (o && Xe(o?.style, "::", 0)) {
|
|
2820
|
+
var B = qr(o.style.slice(2));
|
|
2815
2821
|
if (a === "number") {
|
|
2816
2822
|
var f = this.parseNumberSkeletonFromString(B, o.styleLocation);
|
|
2817
2823
|
return f.err ? f : {
|
|
2818
|
-
val: { type:
|
|
2824
|
+
val: { type: y.number, value: n, location: E, style: f.val },
|
|
2819
2825
|
err: null
|
|
2820
2826
|
};
|
|
2821
2827
|
} else {
|
|
2822
2828
|
if (B.length === 0)
|
|
2823
2829
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, E);
|
|
2824
|
-
var
|
|
2825
|
-
this.locale && (
|
|
2830
|
+
var O = B;
|
|
2831
|
+
this.locale && (O = Ur(B, this.locale));
|
|
2826
2832
|
var c = {
|
|
2827
|
-
type:
|
|
2828
|
-
pattern:
|
|
2833
|
+
type: G.dateTime,
|
|
2834
|
+
pattern: O,
|
|
2829
2835
|
location: o.styleLocation,
|
|
2830
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2831
|
-
}, m = a === "date" ?
|
|
2836
|
+
parsedOptions: this.shouldParseSkeletons ? Nr(O) : {}
|
|
2837
|
+
}, m = a === "date" ? y.date : y.time;
|
|
2832
2838
|
return {
|
|
2833
2839
|
val: { type: m, value: n, location: E, style: c },
|
|
2834
2840
|
err: null
|
|
@@ -2837,7 +2843,7 @@ var qr = (
|
|
|
2837
2843
|
}
|
|
2838
2844
|
return {
|
|
2839
2845
|
val: {
|
|
2840
|
-
type: a === "number" ?
|
|
2846
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
2841
2847
|
value: n,
|
|
2842
2848
|
location: E,
|
|
2843
2849
|
style: (s = o?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2850,41 +2856,41 @@ var qr = (
|
|
|
2850
2856
|
case "select": {
|
|
2851
2857
|
var v = this.clonePosition();
|
|
2852
2858
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2853
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v,
|
|
2859
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, ie({}, v)));
|
|
2854
2860
|
this.bumpSpace();
|
|
2855
|
-
var
|
|
2856
|
-
if (a !== "select" &&
|
|
2861
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2862
|
+
if (a !== "select" && S.value === "offset") {
|
|
2857
2863
|
if (!this.bumpIf(":"))
|
|
2858
2864
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2859
2865
|
this.bumpSpace();
|
|
2860
2866
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2861
2867
|
if (f.err)
|
|
2862
2868
|
return f;
|
|
2863
|
-
this.bumpSpace(),
|
|
2869
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = f.val;
|
|
2864
2870
|
}
|
|
2865
|
-
var
|
|
2866
|
-
if (
|
|
2867
|
-
return
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2870
|
-
return
|
|
2871
|
-
var
|
|
2871
|
+
var K = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
2872
|
+
if (K.err)
|
|
2873
|
+
return K;
|
|
2874
|
+
var d = this.tryParseArgumentClose(i);
|
|
2875
|
+
if (d.err)
|
|
2876
|
+
return d;
|
|
2877
|
+
var $e = b(i, this.clonePosition());
|
|
2872
2878
|
return a === "select" ? {
|
|
2873
2879
|
val: {
|
|
2874
|
-
type:
|
|
2880
|
+
type: y.select,
|
|
2875
2881
|
value: n,
|
|
2876
|
-
options:
|
|
2877
|
-
location:
|
|
2882
|
+
options: We(K.val),
|
|
2883
|
+
location: $e
|
|
2878
2884
|
},
|
|
2879
2885
|
err: null
|
|
2880
2886
|
} : {
|
|
2881
2887
|
val: {
|
|
2882
|
-
type:
|
|
2888
|
+
type: y.plural,
|
|
2883
2889
|
value: n,
|
|
2884
|
-
options:
|
|
2890
|
+
options: We(K.val),
|
|
2885
2891
|
offset: N,
|
|
2886
2892
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2887
|
-
location:
|
|
2893
|
+
location: $e
|
|
2888
2894
|
},
|
|
2889
2895
|
err: null
|
|
2890
2896
|
};
|
|
@@ -2932,16 +2938,16 @@ var qr = (
|
|
|
2932
2938
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2933
2939
|
var n = [];
|
|
2934
2940
|
try {
|
|
2935
|
-
n =
|
|
2941
|
+
n = Ir(t);
|
|
2936
2942
|
} catch {
|
|
2937
2943
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2938
2944
|
}
|
|
2939
2945
|
return {
|
|
2940
2946
|
val: {
|
|
2941
|
-
type:
|
|
2947
|
+
type: G.number,
|
|
2942
2948
|
tokens: n,
|
|
2943
2949
|
location: r,
|
|
2944
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2950
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
|
2945
2951
|
},
|
|
2946
2952
|
err: null
|
|
2947
2953
|
};
|
|
@@ -2960,20 +2966,20 @@ var qr = (
|
|
|
2960
2966
|
if (l.has(o))
|
|
2961
2967
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2962
2968
|
o === "other" && (u = !0), this.bumpSpace();
|
|
2963
|
-
var
|
|
2969
|
+
var g = this.clonePosition();
|
|
2964
2970
|
if (!this.bumpIf("{"))
|
|
2965
2971
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2966
|
-
var
|
|
2967
|
-
if (
|
|
2968
|
-
return
|
|
2969
|
-
var E = this.tryParseArgumentClose(
|
|
2972
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2973
|
+
if (d.err)
|
|
2974
|
+
return d;
|
|
2975
|
+
var E = this.tryParseArgumentClose(g);
|
|
2970
2976
|
if (E.err)
|
|
2971
2977
|
return E;
|
|
2972
2978
|
a.push([
|
|
2973
2979
|
o,
|
|
2974
2980
|
{
|
|
2975
|
-
value:
|
|
2976
|
-
location: b(
|
|
2981
|
+
value: d.val,
|
|
2982
|
+
location: b(g, this.clonePosition())
|
|
2977
2983
|
}
|
|
2978
2984
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
2979
2985
|
}
|
|
@@ -2989,7 +2995,7 @@ var qr = (
|
|
|
2989
2995
|
break;
|
|
2990
2996
|
}
|
|
2991
2997
|
var l = b(i, this.clonePosition());
|
|
2992
|
-
return s ? (u *= n,
|
|
2998
|
+
return s ? (u *= n, Qr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2993
2999
|
}, e.prototype.offset = function() {
|
|
2994
3000
|
return this.position.offset;
|
|
2995
3001
|
}, e.prototype.isEOF = function() {
|
|
@@ -3004,7 +3010,7 @@ var qr = (
|
|
|
3004
3010
|
var t = this.position.offset;
|
|
3005
3011
|
if (t >= this.message.length)
|
|
3006
3012
|
throw Error("out of bound");
|
|
3007
|
-
var r =
|
|
3013
|
+
var r = xt(this.message, t);
|
|
3008
3014
|
if (r === void 0)
|
|
3009
3015
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3010
3016
|
return r;
|
|
@@ -3023,7 +3029,7 @@ var qr = (
|
|
|
3023
3029
|
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);
|
|
3024
3030
|
}
|
|
3025
3031
|
}, e.prototype.bumpIf = function(t) {
|
|
3026
|
-
if (
|
|
3032
|
+
if (Xe(this.message, t, this.offset())) {
|
|
3027
3033
|
for (var r = 0; r < t.length; r++)
|
|
3028
3034
|
this.bump();
|
|
3029
3035
|
return !0;
|
|
@@ -3045,7 +3051,7 @@ var qr = (
|
|
|
3045
3051
|
break;
|
|
3046
3052
|
}
|
|
3047
3053
|
}, e.prototype.bumpSpace = function() {
|
|
3048
|
-
for (; !this.isEOF() &&
|
|
3054
|
+
for (; !this.isEOF() && _t(this.char()); )
|
|
3049
3055
|
this.bump();
|
|
3050
3056
|
}, e.prototype.peek = function() {
|
|
3051
3057
|
if (this.isEOF())
|
|
@@ -3055,47 +3061,47 @@ var qr = (
|
|
|
3055
3061
|
}, e;
|
|
3056
3062
|
}()
|
|
3057
3063
|
);
|
|
3058
|
-
function
|
|
3064
|
+
function Pe(e) {
|
|
3059
3065
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3060
3066
|
}
|
|
3061
|
-
function
|
|
3062
|
-
return
|
|
3067
|
+
function en(e) {
|
|
3068
|
+
return Pe(e) || e === 47;
|
|
3063
3069
|
}
|
|
3064
|
-
function
|
|
3070
|
+
function tn(e) {
|
|
3065
3071
|
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;
|
|
3066
3072
|
}
|
|
3067
|
-
function
|
|
3073
|
+
function _t(e) {
|
|
3068
3074
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3069
3075
|
}
|
|
3070
|
-
function
|
|
3076
|
+
function rn(e) {
|
|
3071
3077
|
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;
|
|
3072
3078
|
}
|
|
3073
|
-
function
|
|
3079
|
+
function Me(e) {
|
|
3074
3080
|
e.forEach(function(t) {
|
|
3075
|
-
if (delete t.location,
|
|
3081
|
+
if (delete t.location, ct(t) || mt(t))
|
|
3076
3082
|
for (var r in t.options)
|
|
3077
|
-
delete t.options[r].location,
|
|
3083
|
+
delete t.options[r].location, Me(t.options[r].value);
|
|
3078
3084
|
else
|
|
3079
|
-
|
|
3085
|
+
ht(t) && bt(t.style) || (lt(t) || ft(t)) && He(t.style) ? delete t.style.location : pt(t) && Me(t.children);
|
|
3080
3086
|
});
|
|
3081
3087
|
}
|
|
3082
|
-
function
|
|
3083
|
-
t === void 0 && (t = {}), t =
|
|
3084
|
-
var r = new
|
|
3088
|
+
function nn(e, t) {
|
|
3089
|
+
t === void 0 && (t = {}), t = ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3090
|
+
var r = new Kr(e, t).parse();
|
|
3085
3091
|
if (r.err) {
|
|
3086
3092
|
var n = SyntaxError(p[r.err.kind]);
|
|
3087
3093
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3088
3094
|
}
|
|
3089
|
-
return t?.captureLocation ||
|
|
3095
|
+
return t?.captureLocation || Me(r.val), r.val;
|
|
3090
3096
|
}
|
|
3091
|
-
var
|
|
3097
|
+
var F;
|
|
3092
3098
|
(function(e) {
|
|
3093
3099
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3094
|
-
})(
|
|
3095
|
-
var
|
|
3100
|
+
})(F || (F = {}));
|
|
3101
|
+
var he = (
|
|
3096
3102
|
/** @class */
|
|
3097
3103
|
function(e) {
|
|
3098
|
-
|
|
3104
|
+
ue(t, e);
|
|
3099
3105
|
function t(r, n, i) {
|
|
3100
3106
|
var s = e.call(this, r) || this;
|
|
3101
3107
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3104,48 +3110,48 @@ var ae = (
|
|
|
3104
3110
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3105
3111
|
}, t;
|
|
3106
3112
|
}(Error)
|
|
3107
|
-
),
|
|
3113
|
+
), Ze = (
|
|
3108
3114
|
/** @class */
|
|
3109
3115
|
function(e) {
|
|
3110
|
-
|
|
3116
|
+
ue(t, e);
|
|
3111
3117
|
function t(r, n, i, s) {
|
|
3112
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3118
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, s) || this;
|
|
3113
3119
|
}
|
|
3114
3120
|
return t;
|
|
3115
|
-
}(
|
|
3116
|
-
),
|
|
3121
|
+
}(he)
|
|
3122
|
+
), sn = (
|
|
3117
3123
|
/** @class */
|
|
3118
3124
|
function(e) {
|
|
3119
|
-
|
|
3125
|
+
ue(t, e);
|
|
3120
3126
|
function t(r, n, i) {
|
|
3121
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3127
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3122
3128
|
}
|
|
3123
3129
|
return t;
|
|
3124
|
-
}(
|
|
3125
|
-
),
|
|
3130
|
+
}(he)
|
|
3131
|
+
), on = (
|
|
3126
3132
|
/** @class */
|
|
3127
3133
|
function(e) {
|
|
3128
|
-
|
|
3134
|
+
ue(t, e);
|
|
3129
3135
|
function t(r, n) {
|
|
3130
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3136
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3131
3137
|
}
|
|
3132
3138
|
return t;
|
|
3133
|
-
}(
|
|
3139
|
+
}(he)
|
|
3134
3140
|
), _;
|
|
3135
3141
|
(function(e) {
|
|
3136
3142
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3137
3143
|
})(_ || (_ = {}));
|
|
3138
|
-
function
|
|
3144
|
+
function an(e) {
|
|
3139
3145
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3140
3146
|
var n = t[t.length - 1];
|
|
3141
3147
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3142
3148
|
}, []);
|
|
3143
3149
|
}
|
|
3144
|
-
function
|
|
3150
|
+
function un(e) {
|
|
3145
3151
|
return typeof e == "function";
|
|
3146
3152
|
}
|
|
3147
|
-
function
|
|
3148
|
-
if (e.length === 1 &&
|
|
3153
|
+
function re(e, t, r, n, i, s, u) {
|
|
3154
|
+
if (e.length === 1 && Fe(e[0]))
|
|
3149
3155
|
return [
|
|
3150
3156
|
{
|
|
3151
3157
|
type: _.literal,
|
|
@@ -3154,14 +3160,14 @@ function te(e, t, r, n, i, s, u) {
|
|
|
3154
3160
|
];
|
|
3155
3161
|
for (var a = [], l = 0, o = e; l < o.length; l++) {
|
|
3156
3162
|
var h = o[l];
|
|
3157
|
-
if (
|
|
3163
|
+
if (Fe(h)) {
|
|
3158
3164
|
a.push({
|
|
3159
3165
|
type: _.literal,
|
|
3160
3166
|
value: h.value
|
|
3161
3167
|
});
|
|
3162
3168
|
continue;
|
|
3163
3169
|
}
|
|
3164
|
-
if (
|
|
3170
|
+
if (Mr(h)) {
|
|
3165
3171
|
typeof s == "number" && a.push({
|
|
3166
3172
|
type: _.literal,
|
|
3167
3173
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3170,44 +3176,44 @@ function te(e, t, r, n, i, s, u) {
|
|
|
3170
3176
|
}
|
|
3171
3177
|
var f = h.value;
|
|
3172
3178
|
if (!(i && f in i))
|
|
3173
|
-
throw new
|
|
3179
|
+
throw new on(f, u);
|
|
3174
3180
|
var c = i[f];
|
|
3175
|
-
if (
|
|
3181
|
+
if (Pr(h)) {
|
|
3176
3182
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3177
3183
|
type: typeof c == "string" ? _.literal : _.object,
|
|
3178
3184
|
value: c
|
|
3179
3185
|
});
|
|
3180
3186
|
continue;
|
|
3181
3187
|
}
|
|
3182
|
-
if (
|
|
3183
|
-
var
|
|
3188
|
+
if (lt(h)) {
|
|
3189
|
+
var g = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
|
|
3184
3190
|
a.push({
|
|
3185
3191
|
type: _.literal,
|
|
3186
|
-
value: r.getDateTimeFormat(t,
|
|
3192
|
+
value: r.getDateTimeFormat(t, g).format(c)
|
|
3187
3193
|
});
|
|
3188
3194
|
continue;
|
|
3189
3195
|
}
|
|
3190
|
-
if (
|
|
3191
|
-
var
|
|
3196
|
+
if (ft(h)) {
|
|
3197
|
+
var g = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3192
3198
|
a.push({
|
|
3193
3199
|
type: _.literal,
|
|
3194
|
-
value: r.getDateTimeFormat(t,
|
|
3200
|
+
value: r.getDateTimeFormat(t, g).format(c)
|
|
3195
3201
|
});
|
|
3196
3202
|
continue;
|
|
3197
3203
|
}
|
|
3198
|
-
if (
|
|
3199
|
-
var
|
|
3200
|
-
|
|
3204
|
+
if (ht(h)) {
|
|
3205
|
+
var g = typeof h.style == "string" ? n.number[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3206
|
+
g && g.scale && (c = c * (g.scale || 1)), a.push({
|
|
3201
3207
|
type: _.literal,
|
|
3202
|
-
value: r.getNumberFormat(t,
|
|
3208
|
+
value: r.getNumberFormat(t, g).format(c)
|
|
3203
3209
|
});
|
|
3204
3210
|
continue;
|
|
3205
3211
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3209
|
-
throw new
|
|
3210
|
-
var
|
|
3212
|
+
if (pt(h)) {
|
|
3213
|
+
var d = h.children, E = h.value, B = i[E];
|
|
3214
|
+
if (!un(B))
|
|
3215
|
+
throw new sn(E, "function", u);
|
|
3216
|
+
var O = re(d, t, r, n, i, s), m = B(O.map(function(N) {
|
|
3211
3217
|
return N.value;
|
|
3212
3218
|
}));
|
|
3213
3219
|
Array.isArray(m) || (m = [m]), a.push.apply(a, m.map(function(N) {
|
|
@@ -3217,42 +3223,42 @@ function te(e, t, r, n, i, s, u) {
|
|
|
3217
3223
|
};
|
|
3218
3224
|
}));
|
|
3219
3225
|
}
|
|
3220
|
-
if (
|
|
3226
|
+
if (ct(h)) {
|
|
3221
3227
|
var v = h.options[c] || h.options.other;
|
|
3222
3228
|
if (!v)
|
|
3223
|
-
throw new
|
|
3224
|
-
a.push.apply(a,
|
|
3229
|
+
throw new Ze(h.value, c, Object.keys(h.options), u);
|
|
3230
|
+
a.push.apply(a, re(v.value, t, r, n, i));
|
|
3225
3231
|
continue;
|
|
3226
3232
|
}
|
|
3227
|
-
if (
|
|
3233
|
+
if (mt(h)) {
|
|
3228
3234
|
var v = h.options["=".concat(c)];
|
|
3229
3235
|
if (!v) {
|
|
3230
3236
|
if (!Intl.PluralRules)
|
|
3231
|
-
throw new
|
|
3237
|
+
throw new he(`Intl.PluralRules is not available in this environment.
|
|
3232
3238
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3233
|
-
`,
|
|
3234
|
-
var
|
|
3235
|
-
v = h.options[
|
|
3239
|
+
`, F.MISSING_INTL_API, u);
|
|
3240
|
+
var S = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3241
|
+
v = h.options[S] || h.options.other;
|
|
3236
3242
|
}
|
|
3237
3243
|
if (!v)
|
|
3238
|
-
throw new
|
|
3239
|
-
a.push.apply(a,
|
|
3244
|
+
throw new Ze(h.value, c, Object.keys(h.options), u);
|
|
3245
|
+
a.push.apply(a, re(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3240
3246
|
continue;
|
|
3241
3247
|
}
|
|
3242
3248
|
}
|
|
3243
|
-
return
|
|
3249
|
+
return an(a);
|
|
3244
3250
|
}
|
|
3245
|
-
function
|
|
3246
|
-
return t ?
|
|
3247
|
-
return r[n] =
|
|
3251
|
+
function hn(e, t) {
|
|
3252
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3253
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3248
3254
|
}, {})) : e;
|
|
3249
3255
|
}
|
|
3250
|
-
function
|
|
3256
|
+
function ln(e, t) {
|
|
3251
3257
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3252
|
-
return r[n] =
|
|
3253
|
-
},
|
|
3258
|
+
return r[n] = hn(e[n], t[n]), r;
|
|
3259
|
+
}, A({}, e)) : e;
|
|
3254
3260
|
}
|
|
3255
|
-
function
|
|
3261
|
+
function ge(e) {
|
|
3256
3262
|
return {
|
|
3257
3263
|
create: function() {
|
|
3258
3264
|
return {
|
|
@@ -3266,39 +3272,39 @@ function be(e) {
|
|
|
3266
3272
|
}
|
|
3267
3273
|
};
|
|
3268
3274
|
}
|
|
3269
|
-
function
|
|
3275
|
+
function fn(e) {
|
|
3270
3276
|
return e === void 0 && (e = {
|
|
3271
3277
|
number: {},
|
|
3272
3278
|
dateTime: {},
|
|
3273
3279
|
pluralRules: {}
|
|
3274
3280
|
}), {
|
|
3275
|
-
getNumberFormat:
|
|
3281
|
+
getNumberFormat: pe(function() {
|
|
3276
3282
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3277
3283
|
r[n] = arguments[n];
|
|
3278
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3284
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3279
3285
|
}, {
|
|
3280
|
-
cache:
|
|
3281
|
-
strategy:
|
|
3286
|
+
cache: ge(e.number),
|
|
3287
|
+
strategy: be.variadic
|
|
3282
3288
|
}),
|
|
3283
|
-
getDateTimeFormat:
|
|
3289
|
+
getDateTimeFormat: pe(function() {
|
|
3284
3290
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3285
3291
|
r[n] = arguments[n];
|
|
3286
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3292
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3287
3293
|
}, {
|
|
3288
|
-
cache:
|
|
3289
|
-
strategy:
|
|
3294
|
+
cache: ge(e.dateTime),
|
|
3295
|
+
strategy: be.variadic
|
|
3290
3296
|
}),
|
|
3291
|
-
getPluralRules:
|
|
3297
|
+
getPluralRules: pe(function() {
|
|
3292
3298
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3293
3299
|
r[n] = arguments[n];
|
|
3294
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3300
|
+
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
|
3295
3301
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3302
|
+
cache: ge(e.pluralRules),
|
|
3303
|
+
strategy: be.variadic
|
|
3298
3304
|
})
|
|
3299
3305
|
};
|
|
3300
3306
|
}
|
|
3301
|
-
var
|
|
3307
|
+
var cn = (
|
|
3302
3308
|
/** @class */
|
|
3303
3309
|
function() {
|
|
3304
3310
|
function e(t, r, n, i) {
|
|
@@ -3317,7 +3323,7 @@ var ln = (
|
|
|
3317
3323
|
}, []);
|
|
3318
3324
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3319
3325
|
}, this.formatToParts = function(l) {
|
|
3320
|
-
return
|
|
3326
|
+
return re(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3321
3327
|
}, this.resolvedOptions = function() {
|
|
3322
3328
|
var l;
|
|
3323
3329
|
return {
|
|
@@ -3330,13 +3336,13 @@ var ln = (
|
|
|
3330
3336
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3331
3337
|
var u = i || {};
|
|
3332
3338
|
u.formatters;
|
|
3333
|
-
var a =
|
|
3334
|
-
this.ast = e.__parse(t,
|
|
3339
|
+
var a = xr(u, ["formatters"]);
|
|
3340
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3335
3341
|
} else
|
|
3336
3342
|
this.ast = t;
|
|
3337
3343
|
if (!Array.isArray(this.ast))
|
|
3338
3344
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3339
|
-
this.formats =
|
|
3345
|
+
this.formats = ln(e.formats, n), this.formatters = i && i.formatters || fn(this.formatterCache);
|
|
3340
3346
|
}
|
|
3341
3347
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3342
3348
|
get: function() {
|
|
@@ -3349,7 +3355,7 @@ var ln = (
|
|
|
3349
3355
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3350
3356
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3351
3357
|
}
|
|
3352
|
-
}, e.__parse =
|
|
3358
|
+
}, e.__parse = nn, e.formats = {
|
|
3353
3359
|
number: {
|
|
3354
3360
|
integer: {
|
|
3355
3361
|
maximumFractionDigits: 0
|
|
@@ -3410,7 +3416,7 @@ var ln = (
|
|
|
3410
3416
|
}, e;
|
|
3411
3417
|
}()
|
|
3412
3418
|
);
|
|
3413
|
-
function
|
|
3419
|
+
function mn(e, t) {
|
|
3414
3420
|
if (t == null)
|
|
3415
3421
|
return;
|
|
3416
3422
|
if (t in e)
|
|
@@ -3431,92 +3437,92 @@ function fn(e, t) {
|
|
|
3431
3437
|
n = void 0;
|
|
3432
3438
|
return n;
|
|
3433
3439
|
}
|
|
3434
|
-
const M = {},
|
|
3440
|
+
const M = {}, pn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Bt = (e, t) => {
|
|
3435
3441
|
if (t == null)
|
|
3436
3442
|
return;
|
|
3437
3443
|
if (t in M && e in M[t])
|
|
3438
3444
|
return M[t][e];
|
|
3439
|
-
const r =
|
|
3445
|
+
const r = le(t);
|
|
3440
3446
|
for (let n = 0; n < r.length; n++) {
|
|
3441
|
-
const i = r[n], s =
|
|
3447
|
+
const i = r[n], s = dn(i, e);
|
|
3442
3448
|
if (s)
|
|
3443
|
-
return
|
|
3449
|
+
return pn(e, t, s);
|
|
3444
3450
|
}
|
|
3445
3451
|
};
|
|
3446
|
-
let
|
|
3447
|
-
const
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3452
|
+
let Le;
|
|
3453
|
+
const Y = ae({});
|
|
3454
|
+
function bn(e) {
|
|
3455
|
+
return Le[e] || null;
|
|
3450
3456
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return e in
|
|
3457
|
+
function Ht(e) {
|
|
3458
|
+
return e in Le;
|
|
3453
3459
|
}
|
|
3454
|
-
function
|
|
3455
|
-
if (!
|
|
3460
|
+
function dn(e, t) {
|
|
3461
|
+
if (!Ht(e))
|
|
3456
3462
|
return null;
|
|
3457
|
-
const r =
|
|
3458
|
-
return
|
|
3463
|
+
const r = bn(e);
|
|
3464
|
+
return mn(r, t);
|
|
3459
3465
|
}
|
|
3460
|
-
function
|
|
3466
|
+
function gn(e) {
|
|
3461
3467
|
if (e == null)
|
|
3462
3468
|
return;
|
|
3463
|
-
const t =
|
|
3469
|
+
const t = le(e);
|
|
3464
3470
|
for (let r = 0; r < t.length; r++) {
|
|
3465
3471
|
const n = t[r];
|
|
3466
|
-
if (
|
|
3472
|
+
if (Ht(n))
|
|
3467
3473
|
return n;
|
|
3468
3474
|
}
|
|
3469
3475
|
}
|
|
3470
|
-
function
|
|
3471
|
-
delete M[e],
|
|
3476
|
+
function St(e, ...t) {
|
|
3477
|
+
delete M[e], Y.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
|
|
3472
3478
|
}
|
|
3473
|
-
|
|
3474
|
-
[
|
|
3479
|
+
k(
|
|
3480
|
+
[Y],
|
|
3475
3481
|
([e]) => Object.keys(e)
|
|
3476
3482
|
);
|
|
3477
|
-
|
|
3478
|
-
const
|
|
3479
|
-
function
|
|
3480
|
-
|
|
3483
|
+
Y.subscribe((e) => Le = e);
|
|
3484
|
+
const ne = {};
|
|
3485
|
+
function yn(e, t) {
|
|
3486
|
+
ne[e].delete(t), ne[e].size === 0 && delete ne[e];
|
|
3481
3487
|
}
|
|
3482
|
-
function
|
|
3483
|
-
return
|
|
3488
|
+
function Tt(e) {
|
|
3489
|
+
return ne[e];
|
|
3484
3490
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return
|
|
3487
|
-
const r =
|
|
3491
|
+
function En(e) {
|
|
3492
|
+
return le(e).map((t) => {
|
|
3493
|
+
const r = Tt(t);
|
|
3488
3494
|
return [t, r ? [...r] : []];
|
|
3489
3495
|
}).filter(([, t]) => t.length > 0);
|
|
3490
3496
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return e == null ? !1 :
|
|
3497
|
+
function Oe(e) {
|
|
3498
|
+
return e == null ? !1 : le(e).some(
|
|
3493
3499
|
(t) => {
|
|
3494
3500
|
var r;
|
|
3495
|
-
return (r =
|
|
3501
|
+
return (r = Tt(t)) == null ? void 0 : r.size;
|
|
3496
3502
|
}
|
|
3497
3503
|
);
|
|
3498
3504
|
}
|
|
3499
|
-
function
|
|
3505
|
+
function xn(e, t) {
|
|
3500
3506
|
return Promise.all(
|
|
3501
|
-
t.map((n) => (
|
|
3502
|
-
).then((n) =>
|
|
3503
|
-
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3506
|
-
if (!
|
|
3507
|
-
return e in
|
|
3508
|
-
const t =
|
|
3509
|
-
return
|
|
3507
|
+
t.map((n) => (yn(e, n), n().then((i) => i.default || i)))
|
|
3508
|
+
).then((n) => St(e, ...n));
|
|
3509
|
+
}
|
|
3510
|
+
const W = {};
|
|
3511
|
+
function At(e) {
|
|
3512
|
+
if (!Oe(e))
|
|
3513
|
+
return e in W ? W[e] : Promise.resolve();
|
|
3514
|
+
const t = En(e);
|
|
3515
|
+
return W[e] = Promise.all(
|
|
3510
3516
|
t.map(
|
|
3511
|
-
([r, n]) =>
|
|
3517
|
+
([r, n]) => xn(r, n)
|
|
3512
3518
|
)
|
|
3513
3519
|
).then(() => {
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3516
|
-
delete
|
|
3517
|
-
}),
|
|
3520
|
+
if (Oe(e))
|
|
3521
|
+
return At(e);
|
|
3522
|
+
delete W[e];
|
|
3523
|
+
}), W[e];
|
|
3518
3524
|
}
|
|
3519
|
-
const
|
|
3525
|
+
const vn = {
|
|
3520
3526
|
number: {
|
|
3521
3527
|
scientific: { notation: "scientific" },
|
|
3522
3528
|
engineering: { notation: "engineering" },
|
|
@@ -3545,150 +3551,150 @@ const xn = {
|
|
|
3545
3551
|
timeZoneName: "short"
|
|
3546
3552
|
}
|
|
3547
3553
|
}
|
|
3548
|
-
},
|
|
3554
|
+
}, _n = {
|
|
3549
3555
|
fallbackLocale: null,
|
|
3550
3556
|
loadingDelay: 200,
|
|
3551
|
-
formats:
|
|
3557
|
+
formats: vn,
|
|
3552
3558
|
warnOnMissingMessages: !0,
|
|
3553
3559
|
handleMissingMessage: void 0,
|
|
3554
3560
|
ignoreTag: !0
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3557
|
-
return
|
|
3561
|
+
}, Bn = _n;
|
|
3562
|
+
function j() {
|
|
3563
|
+
return Bn;
|
|
3558
3564
|
}
|
|
3559
|
-
const
|
|
3560
|
-
var
|
|
3565
|
+
const ye = ae(!1);
|
|
3566
|
+
var Hn = Object.defineProperty, Sn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
|
|
3561
3567
|
for (var r in t || (t = {}))
|
|
3562
|
-
|
|
3563
|
-
if (
|
|
3564
|
-
for (var r of
|
|
3565
|
-
|
|
3568
|
+
An.call(t, r) && Je(e, r, t[r]);
|
|
3569
|
+
if (Qe)
|
|
3570
|
+
for (var r of Qe(t))
|
|
3571
|
+
Pn.call(t, r) && Je(e, r, t[r]);
|
|
3566
3572
|
return e;
|
|
3567
|
-
},
|
|
3568
|
-
let
|
|
3569
|
-
const
|
|
3570
|
-
function
|
|
3573
|
+
}, On = (e, t) => Sn(e, Tn(t));
|
|
3574
|
+
let Ne;
|
|
3575
|
+
const se = ae(null);
|
|
3576
|
+
function qe(e) {
|
|
3571
3577
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3572
3578
|
}
|
|
3573
|
-
function
|
|
3574
|
-
const r =
|
|
3575
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3579
|
+
function le(e, t = j().fallbackLocale) {
|
|
3580
|
+
const r = qe(e);
|
|
3581
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
|
|
3576
3582
|
}
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3583
|
+
function I() {
|
|
3584
|
+
return Ne ?? void 0;
|
|
3579
3585
|
}
|
|
3580
|
-
|
|
3581
|
-
|
|
3586
|
+
se.subscribe((e) => {
|
|
3587
|
+
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3582
3588
|
});
|
|
3583
|
-
const
|
|
3584
|
-
if (e &&
|
|
3585
|
-
const { loadingDelay: t } =
|
|
3589
|
+
const Nn = (e) => {
|
|
3590
|
+
if (e && gn(e) && Oe(e)) {
|
|
3591
|
+
const { loadingDelay: t } = j();
|
|
3586
3592
|
let r;
|
|
3587
|
-
return typeof window < "u" &&
|
|
3588
|
-
() =>
|
|
3593
|
+
return typeof window < "u" && I() != null && t ? r = window.setTimeout(
|
|
3594
|
+
() => ye.set(!0),
|
|
3589
3595
|
t
|
|
3590
|
-
) :
|
|
3591
|
-
|
|
3596
|
+
) : ye.set(!0), At(e).then(() => {
|
|
3597
|
+
se.set(e);
|
|
3592
3598
|
}).finally(() => {
|
|
3593
|
-
clearTimeout(r),
|
|
3599
|
+
clearTimeout(r), ye.set(!1);
|
|
3594
3600
|
});
|
|
3595
3601
|
}
|
|
3596
|
-
return
|
|
3597
|
-
},
|
|
3598
|
-
set:
|
|
3599
|
-
}),
|
|
3602
|
+
return se.set(e);
|
|
3603
|
+
}, V = On(Mn({}, se), {
|
|
3604
|
+
set: Nn
|
|
3605
|
+
}), fe = (e) => {
|
|
3600
3606
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3601
3607
|
return (n) => {
|
|
3602
3608
|
const i = JSON.stringify(n);
|
|
3603
3609
|
return i in t ? t[i] : t[i] = e(n);
|
|
3604
3610
|
};
|
|
3605
3611
|
};
|
|
3606
|
-
var
|
|
3612
|
+
var wn = Object.defineProperty, oe = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ce = (e, t) => {
|
|
3607
3613
|
for (var r in t || (t = {}))
|
|
3608
|
-
|
|
3609
|
-
if (
|
|
3610
|
-
for (var r of
|
|
3611
|
-
|
|
3614
|
+
Pt.call(t, r) && Ye(e, r, t[r]);
|
|
3615
|
+
if (oe)
|
|
3616
|
+
for (var r of oe(t))
|
|
3617
|
+
Mt.call(t, r) && Ye(e, r, t[r]);
|
|
3612
3618
|
return e;
|
|
3613
|
-
},
|
|
3619
|
+
}, X = (e, t) => {
|
|
3614
3620
|
var r = {};
|
|
3615
3621
|
for (var n in e)
|
|
3616
|
-
|
|
3617
|
-
if (e != null &&
|
|
3618
|
-
for (var n of
|
|
3619
|
-
t.indexOf(n) < 0 &&
|
|
3622
|
+
Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3623
|
+
if (e != null && oe)
|
|
3624
|
+
for (var n of oe(e))
|
|
3625
|
+
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
|
3620
3626
|
return r;
|
|
3621
3627
|
};
|
|
3622
|
-
const
|
|
3623
|
-
const { formats: r } =
|
|
3628
|
+
const J = (e, t) => {
|
|
3629
|
+
const { formats: r } = j();
|
|
3624
3630
|
if (e in r && t in r[e])
|
|
3625
3631
|
return r[e][t];
|
|
3626
3632
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3627
|
-
},
|
|
3633
|
+
}, In = fe(
|
|
3628
3634
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3635
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3630
3636
|
if (r == null)
|
|
3631
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3632
|
-
return n && (i =
|
|
3638
|
+
return n && (i = J("number", n)), new Intl.NumberFormat(r, i);
|
|
3633
3639
|
}
|
|
3634
|
-
),
|
|
3640
|
+
), Ln = fe(
|
|
3635
3641
|
(e) => {
|
|
3636
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3642
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3637
3643
|
if (r == null)
|
|
3638
3644
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3639
|
-
return n ? i =
|
|
3645
|
+
return n ? i = J("date", n) : Object.keys(i).length === 0 && (i = J("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3640
3646
|
}
|
|
3641
|
-
),
|
|
3647
|
+
), Cn = fe(
|
|
3642
3648
|
(e) => {
|
|
3643
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3649
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
3644
3650
|
if (r == null)
|
|
3645
3651
|
throw new Error(
|
|
3646
3652
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3647
3653
|
);
|
|
3648
|
-
return n ? i =
|
|
3654
|
+
return n ? i = J("time", n) : Object.keys(i).length === 0 && (i = J("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3649
3655
|
}
|
|
3650
|
-
),
|
|
3656
|
+
), $n = (e = {}) => {
|
|
3651
3657
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3658
|
+
locale: r = I()
|
|
3659
|
+
} = t, n = X(t, [
|
|
3654
3660
|
"locale"
|
|
3655
3661
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3662
|
+
return In(Ce({ locale: r }, n));
|
|
3663
|
+
}, Rn = (e = {}) => {
|
|
3658
3664
|
var t = e, {
|
|
3659
|
-
locale: r =
|
|
3660
|
-
} = t, n =
|
|
3665
|
+
locale: r = I()
|
|
3666
|
+
} = t, n = X(t, [
|
|
3661
3667
|
"locale"
|
|
3662
3668
|
]);
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3669
|
+
return Ln(Ce({ locale: r }, n));
|
|
3670
|
+
}, Un = (e = {}) => {
|
|
3665
3671
|
var t = e, {
|
|
3666
|
-
locale: r =
|
|
3667
|
-
} = t, n =
|
|
3672
|
+
locale: r = I()
|
|
3673
|
+
} = t, n = X(t, [
|
|
3668
3674
|
"locale"
|
|
3669
3675
|
]);
|
|
3670
|
-
return
|
|
3671
|
-
},
|
|
3676
|
+
return Cn(Ce({ locale: r }, n));
|
|
3677
|
+
}, Dn = fe(
|
|
3672
3678
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3673
|
-
(e, t =
|
|
3674
|
-
ignoreTag:
|
|
3679
|
+
(e, t = I()) => new cn(e, t, j().formats, {
|
|
3680
|
+
ignoreTag: j().ignoreTag
|
|
3675
3681
|
})
|
|
3676
|
-
),
|
|
3682
|
+
), Gn = (e, t = {}) => {
|
|
3677
3683
|
var r, n, i, s;
|
|
3678
3684
|
let u = t;
|
|
3679
3685
|
typeof e == "object" && (u = e, e = u.id);
|
|
3680
3686
|
const {
|
|
3681
3687
|
values: a,
|
|
3682
|
-
locale: l =
|
|
3688
|
+
locale: l = I(),
|
|
3683
3689
|
default: o
|
|
3684
3690
|
} = u;
|
|
3685
3691
|
if (l == null)
|
|
3686
3692
|
throw new Error(
|
|
3687
3693
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3688
3694
|
);
|
|
3689
|
-
let h =
|
|
3695
|
+
let h = Bt(e, l);
|
|
3690
3696
|
if (!h)
|
|
3691
|
-
h = (s = (i = (n = (r =
|
|
3697
|
+
h = (s = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3692
3698
|
else if (typeof h != "string")
|
|
3693
3699
|
return console.warn(
|
|
3694
3700
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3697,7 +3703,7 @@ const Q = (e, t) => {
|
|
|
3697
3703
|
return h;
|
|
3698
3704
|
let f = h;
|
|
3699
3705
|
try {
|
|
3700
|
-
f =
|
|
3706
|
+
f = Dn(h, l).format(a);
|
|
3701
3707
|
} catch (c) {
|
|
3702
3708
|
c instanceof Error && console.warn(
|
|
3703
3709
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3705,18 +3711,18 @@ const Q = (e, t) => {
|
|
|
3705
3711
|
);
|
|
3706
3712
|
}
|
|
3707
3713
|
return f;
|
|
3708
|
-
},
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
function
|
|
3714
|
-
|
|
3715
|
-
}
|
|
3716
|
-
function
|
|
3717
|
-
|
|
3718
|
-
}
|
|
3719
|
-
const
|
|
3714
|
+
}, Fn = (e, t) => Un(t).format(e), jn = (e, t) => Rn(t).format(e), kn = (e, t) => $n(t).format(e), Vn = (e, t = I()) => Bt(e, t), Xn = k([V, Y], () => Gn);
|
|
3715
|
+
k([V], () => Fn);
|
|
3716
|
+
k([V], () => jn);
|
|
3717
|
+
k([V], () => kn);
|
|
3718
|
+
k([V, Y], () => Vn);
|
|
3719
|
+
function Ke(e, t) {
|
|
3720
|
+
St(e, t);
|
|
3721
|
+
}
|
|
3722
|
+
function Wn(e) {
|
|
3723
|
+
V.set(e);
|
|
3724
|
+
}
|
|
3725
|
+
const et = {
|
|
3720
3726
|
en: {
|
|
3721
3727
|
betsButtonString: "My Bets"
|
|
3722
3728
|
},
|
|
@@ -3757,61 +3763,61 @@ const Ye = {
|
|
|
3757
3763
|
betsButtonString: "My Bets"
|
|
3758
3764
|
}
|
|
3759
3765
|
};
|
|
3760
|
-
function
|
|
3761
|
-
|
|
3766
|
+
function zn(e) {
|
|
3767
|
+
wt(e, "svelte-ikpaqv", '.MyBetsButton{cursor:pointer}@container (min-width:991px){.MyBetsButton{margin:0 5px}}.MyBetsButton .MyBetsButtonWrapper{display:flex;align-content:center;justify-content:center;flex-direction:column;background-color:transparent;border:none;width:100%;min-width:60px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount{margin:auto}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber{background-color:var(--emw--button-contrast-background, #FD2839);height:21px;display:flex;justify-content:center;align-items:center;border-radius:100%;width:22px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber p{margin:0;font-size:12px;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle{margin-top:5px;text-align:center}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle p{margin:0;font-size:12px;text-transform:uppercase;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}');
|
|
3762
3768
|
}
|
|
3763
|
-
function
|
|
3769
|
+
function Zn(e) {
|
|
3764
3770
|
let t, r, n, i, s, u, a, l, o, h = (
|
|
3765
3771
|
/*$_*/
|
|
3766
3772
|
e[2]("betsButtonString") + ""
|
|
3767
|
-
), f, c,
|
|
3773
|
+
), f, c, g;
|
|
3768
3774
|
return {
|
|
3769
3775
|
c() {
|
|
3770
|
-
t =
|
|
3776
|
+
t = P("div"), r = P("button"), n = P("div"), i = P("span"), s = P("p"), u = Ee(
|
|
3771
3777
|
/*betsData*/
|
|
3772
3778
|
e[1]
|
|
3773
|
-
), a =
|
|
3779
|
+
), a = Ct(), l = P("div"), o = P("p"), f = Ee(h), $(i, "class", "MyBetsCountNumber"), $(n, "class", "MyBetsButtonCount"), $(l, "class", "MyBetsButtonTitle"), $(r, "class", "MyBetsButtonWrapper"), $(t, "class", "MyBetsButton");
|
|
3774
3780
|
},
|
|
3775
|
-
m(
|
|
3776
|
-
|
|
3781
|
+
m(d, E) {
|
|
3782
|
+
it(d, t, E), T(t, r), T(r, n), T(n, i), T(i, s), T(s, u), T(r, a), T(r, l), T(l, o), T(o, f), e[10](t), c || (g = $t(
|
|
3777
3783
|
r,
|
|
3778
3784
|
"click",
|
|
3779
3785
|
/*click_handler*/
|
|
3780
3786
|
e[9]
|
|
3781
3787
|
), c = !0);
|
|
3782
3788
|
},
|
|
3783
|
-
p(
|
|
3789
|
+
p(d, [E]) {
|
|
3784
3790
|
E & /*betsData*/
|
|
3785
|
-
2 &&
|
|
3791
|
+
2 && Ue(
|
|
3786
3792
|
u,
|
|
3787
3793
|
/*betsData*/
|
|
3788
|
-
|
|
3794
|
+
d[1]
|
|
3789
3795
|
), E & /*$_*/
|
|
3790
3796
|
4 && h !== (h = /*$_*/
|
|
3791
|
-
|
|
3797
|
+
d[2]("betsButtonString") + "") && Ue(f, h);
|
|
3792
3798
|
},
|
|
3793
3799
|
i: H,
|
|
3794
3800
|
o: H,
|
|
3795
|
-
d(
|
|
3796
|
-
|
|
3801
|
+
d(d) {
|
|
3802
|
+
d && Ie(t), e[10](null), c = !1, g();
|
|
3797
3803
|
}
|
|
3798
3804
|
};
|
|
3799
3805
|
}
|
|
3800
|
-
function
|
|
3806
|
+
function Qn(e, t, r) {
|
|
3801
3807
|
let n;
|
|
3802
|
-
|
|
3808
|
+
Nt(e, Xn, (m) => r(2, n = m));
|
|
3803
3809
|
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, o, h = 0;
|
|
3804
3810
|
const f = () => {
|
|
3805
3811
|
fetch(l).then((v) => v.json()).then((v) => {
|
|
3806
|
-
Object.keys(v).forEach((
|
|
3807
|
-
|
|
3812
|
+
Object.keys(v).forEach((S) => {
|
|
3813
|
+
Ke(S, v[S]);
|
|
3808
3814
|
});
|
|
3809
3815
|
}).catch((v) => {
|
|
3810
3816
|
console.log(v);
|
|
3811
3817
|
});
|
|
3812
3818
|
}, c = () => {
|
|
3813
|
-
|
|
3814
|
-
},
|
|
3819
|
+
Wn(i);
|
|
3820
|
+
}, g = (m, v) => {
|
|
3815
3821
|
o.dispatchEvent(new CustomEvent(
|
|
3816
3822
|
m,
|
|
3817
3823
|
{
|
|
@@ -3821,28 +3827,28 @@ function zn(e, t, r) {
|
|
|
3821
3827
|
// propagate across the shadow DOM
|
|
3822
3828
|
}
|
|
3823
3829
|
));
|
|
3824
|
-
},
|
|
3830
|
+
}, d = () => {
|
|
3825
3831
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
3826
3832
|
}, E = (m) => {
|
|
3827
|
-
const { type: v, payload:
|
|
3833
|
+
const { type: v, payload: S } = m.data;
|
|
3828
3834
|
if (m.data)
|
|
3829
3835
|
switch (v) {
|
|
3830
3836
|
case "OMFE:betslipSelectionsCount":
|
|
3831
|
-
r(1, h =
|
|
3837
|
+
r(1, h = S.count), localStorage.setItem("OMFE:betSlipCount", h.toString());
|
|
3832
3838
|
break;
|
|
3833
3839
|
}
|
|
3834
3840
|
};
|
|
3835
|
-
|
|
3841
|
+
Gt(() => {
|
|
3836
3842
|
const m = localStorage.getItem("OMFE:betSlipCount");
|
|
3837
|
-
return r(1, h = m !== null ? Number(m) : 0),
|
|
3843
|
+
return r(1, h = m !== null ? Number(m) : 0), d(), window.addEventListener("message", E, !1), () => {
|
|
3838
3844
|
window.removeEventListener("message", E);
|
|
3839
3845
|
};
|
|
3840
|
-
}), Object.keys(
|
|
3841
|
-
|
|
3846
|
+
}), Object.keys(et).forEach((m) => {
|
|
3847
|
+
Ke(m, et[m]);
|
|
3842
3848
|
});
|
|
3843
|
-
const B = (m) =>
|
|
3844
|
-
function
|
|
3845
|
-
|
|
3849
|
+
const B = (m) => g("betslipClick", {});
|
|
3850
|
+
function O(m) {
|
|
3851
|
+
xe[m ? "unshift" : "push"](() => {
|
|
3846
3852
|
o = m, r(0, o);
|
|
3847
3853
|
});
|
|
3848
3854
|
}
|
|
@@ -3851,32 +3857,32 @@ function zn(e, t, r) {
|
|
|
3851
3857
|
}, e.$$.update = () => {
|
|
3852
3858
|
e.$$.dirty & /*lang*/
|
|
3853
3859
|
16 && i && c(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
3854
|
-
33 && s && o &&
|
|
3855
|
-
65 && u && o &&
|
|
3856
|
-
129 && a && o &&
|
|
3860
|
+
33 && s && o && er(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
3861
|
+
65 && u && o && tr(o, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
3862
|
+
129 && a && o && rr(o, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
3857
3863
|
256 && l && f();
|
|
3858
3864
|
}, [
|
|
3859
3865
|
o,
|
|
3860
3866
|
h,
|
|
3861
3867
|
n,
|
|
3862
|
-
|
|
3868
|
+
g,
|
|
3863
3869
|
i,
|
|
3864
3870
|
s,
|
|
3865
3871
|
u,
|
|
3866
3872
|
a,
|
|
3867
3873
|
l,
|
|
3868
3874
|
B,
|
|
3869
|
-
|
|
3875
|
+
O
|
|
3870
3876
|
];
|
|
3871
3877
|
}
|
|
3872
|
-
class
|
|
3878
|
+
class Jn extends Yt {
|
|
3873
3879
|
constructor(t) {
|
|
3874
|
-
super(),
|
|
3880
|
+
super(), Jt(
|
|
3875
3881
|
this,
|
|
3876
3882
|
t,
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3883
|
+
Qn,
|
|
3884
|
+
Zn,
|
|
3885
|
+
rt,
|
|
3880
3886
|
{
|
|
3881
3887
|
lang: 4,
|
|
3882
3888
|
clientstyling: 5,
|
|
@@ -3884,41 +3890,41 @@ class Zn extends Jt {
|
|
|
3884
3890
|
mbsource: 7,
|
|
3885
3891
|
translationurl: 8
|
|
3886
3892
|
},
|
|
3887
|
-
|
|
3893
|
+
zn
|
|
3888
3894
|
);
|
|
3889
3895
|
}
|
|
3890
3896
|
get lang() {
|
|
3891
3897
|
return this.$$.ctx[4];
|
|
3892
3898
|
}
|
|
3893
3899
|
set lang(t) {
|
|
3894
|
-
this.$$set({ lang: t }),
|
|
3900
|
+
this.$$set({ lang: t }), w();
|
|
3895
3901
|
}
|
|
3896
3902
|
get clientstyling() {
|
|
3897
3903
|
return this.$$.ctx[5];
|
|
3898
3904
|
}
|
|
3899
3905
|
set clientstyling(t) {
|
|
3900
|
-
this.$$set({ clientstyling: t }),
|
|
3906
|
+
this.$$set({ clientstyling: t }), w();
|
|
3901
3907
|
}
|
|
3902
3908
|
get clientstylingurl() {
|
|
3903
3909
|
return this.$$.ctx[6];
|
|
3904
3910
|
}
|
|
3905
3911
|
set clientstylingurl(t) {
|
|
3906
|
-
this.$$set({ clientstylingurl: t }),
|
|
3912
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
3907
3913
|
}
|
|
3908
3914
|
get mbsource() {
|
|
3909
3915
|
return this.$$.ctx[7];
|
|
3910
3916
|
}
|
|
3911
3917
|
set mbsource(t) {
|
|
3912
|
-
this.$$set({ mbsource: t }),
|
|
3918
|
+
this.$$set({ mbsource: t }), w();
|
|
3913
3919
|
}
|
|
3914
3920
|
get translationurl() {
|
|
3915
3921
|
return this.$$.ctx[8];
|
|
3916
3922
|
}
|
|
3917
3923
|
set translationurl(t) {
|
|
3918
|
-
this.$$set({ translationurl: t }),
|
|
3924
|
+
this.$$set({ translationurl: t }), w();
|
|
3919
3925
|
}
|
|
3920
3926
|
}
|
|
3921
|
-
|
|
3927
|
+
qt(Jn, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
3922
3928
|
export {
|
|
3923
|
-
|
|
3929
|
+
Jn as C
|
|
3924
3930
|
};
|