@everymatrix/casino-betslip-indicator 1.77.27 → 1.77.29
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/CasinoBetslipIndicator-BYMvZ5oU.cjs +21 -0
- package/components/{CasinoBetslipIndicator-BUP9qpWA.js → CasinoBetslipIndicator-CbqoA72Z.js} +1224 -894
- package/components/{CasinoBetslipIndicator-C0Ki2HhZ.js → CasinoBetslipIndicator-DZ2swWPN.js} +1256 -926
- package/es2015/casino-betslip-indicator.cjs +1 -1
- package/es2015/casino-betslip-indicator.js +1 -1
- package/esnext/casino-betslip-indicator.js +1 -1
- package/package.json +1 -1
- package/components/CasinoBetslipIndicator-Bdsfkyjn.cjs +0 -21
package/components/{CasinoBetslipIndicator-C0Ki2HhZ.js → CasinoBetslipIndicator-DZ2swWPN.js}
RENAMED
|
@@ -1,72 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var wr = Object.defineProperty, Hr = Object.defineProperties;
|
|
2
|
+
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ar = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Ar.call(t, r) && Ae(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
Or.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var o = (
|
|
12
|
+
}, ut = (e, t) => Hr(e, Tr(t));
|
|
13
|
+
var P = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var lt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
a(r.next(
|
|
17
|
+
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
a(r.throw(
|
|
23
|
+
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Rt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ht() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function j(e) {
|
|
39
|
+
e.forEach(Rt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function tt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function $t(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Pr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ut(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return I;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ir(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
61
|
+
}
|
|
62
|
+
function w(e, t) {
|
|
60
63
|
e.appendChild(t);
|
|
61
64
|
}
|
|
62
|
-
function
|
|
63
|
-
const n =
|
|
65
|
+
function Cr(e, t, r) {
|
|
66
|
+
const n = Lr(e);
|
|
64
67
|
if (!n.getElementById(t)) {
|
|
65
|
-
const i =
|
|
66
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, Nr(n, i);
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
|
-
function
|
|
72
|
+
function Lr(e) {
|
|
70
73
|
if (!e)
|
|
71
74
|
return document;
|
|
72
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -76,48 +79,48 @@ function fr(e) {
|
|
|
76
79
|
t
|
|
77
80
|
) : e.ownerDocument;
|
|
78
81
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
82
|
+
function Nr(e, t) {
|
|
83
|
+
return w(
|
|
81
84
|
/** @type {Document} */
|
|
82
85
|
e.head || e,
|
|
83
86
|
t
|
|
84
87
|
), t.sheet;
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function S(e, t, r) {
|
|
87
90
|
e.insertBefore(t, r || null);
|
|
88
91
|
}
|
|
89
|
-
function
|
|
92
|
+
function B(e) {
|
|
90
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function O(e) {
|
|
93
96
|
return document.createElement(e);
|
|
94
97
|
}
|
|
95
|
-
function
|
|
98
|
+
function G(e) {
|
|
96
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
97
100
|
}
|
|
98
|
-
function
|
|
101
|
+
function D(e) {
|
|
99
102
|
return document.createTextNode(e);
|
|
100
103
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
104
|
+
function Q() {
|
|
105
|
+
return D(" ");
|
|
103
106
|
}
|
|
104
|
-
function
|
|
107
|
+
function se(e, t, r, n) {
|
|
105
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
106
109
|
}
|
|
107
|
-
function
|
|
110
|
+
function _(e, t, r) {
|
|
108
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
112
|
}
|
|
110
|
-
function
|
|
113
|
+
function Mr(e) {
|
|
111
114
|
return Array.from(e.childNodes);
|
|
112
115
|
}
|
|
113
|
-
function
|
|
116
|
+
function k(e, t) {
|
|
114
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
118
|
t);
|
|
116
119
|
}
|
|
117
|
-
function
|
|
120
|
+
function Rr(e, t, r, n) {
|
|
118
121
|
e.style.setProperty(t, r, "");
|
|
119
122
|
}
|
|
120
|
-
function
|
|
123
|
+
function $r(e) {
|
|
121
124
|
const t = {};
|
|
122
125
|
return e.childNodes.forEach(
|
|
123
126
|
/** @param {Element} node */
|
|
@@ -126,145 +129,145 @@ function gr(e) {
|
|
|
126
129
|
}
|
|
127
130
|
), t;
|
|
128
131
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
+
let ae;
|
|
133
|
+
function oe(e) {
|
|
134
|
+
ae = e;
|
|
132
135
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
136
|
+
function Ur() {
|
|
137
|
+
if (!ae)
|
|
135
138
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
139
|
+
return ae;
|
|
137
140
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
141
|
+
function Dr(e) {
|
|
142
|
+
Ur().$$.on_mount.push(e);
|
|
140
143
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
144
|
+
const Z = [], $e = [];
|
|
145
|
+
let J = [];
|
|
146
|
+
const ct = [], Fr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ue = !1;
|
|
148
|
+
function Gr() {
|
|
149
|
+
Ue || (Ue = !0, Fr.then(R));
|
|
147
150
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
151
|
+
function De(e) {
|
|
152
|
+
J.push(e);
|
|
150
153
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
if (
|
|
154
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
155
|
+
let z = 0;
|
|
156
|
+
function R() {
|
|
157
|
+
if (z !== 0)
|
|
155
158
|
return;
|
|
156
|
-
const e =
|
|
159
|
+
const e = ae;
|
|
157
160
|
do {
|
|
158
161
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
162
|
+
for (; z < Z.length; ) {
|
|
163
|
+
const t = Z[z];
|
|
164
|
+
z++, oe(t), kr(t.$$);
|
|
162
165
|
}
|
|
163
166
|
} catch (t) {
|
|
164
|
-
throw
|
|
167
|
+
throw Z.length = 0, z = 0, t;
|
|
165
168
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
169
|
+
for (oe(null), Z.length = 0, z = 0; $e.length; )
|
|
170
|
+
$e.pop()();
|
|
171
|
+
for (let t = 0; t < J.length; t += 1) {
|
|
172
|
+
const r = J[t];
|
|
173
|
+
Oe.has(r) || (Oe.add(r), r());
|
|
171
174
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
J.length = 0;
|
|
176
|
+
} while (Z.length);
|
|
177
|
+
for (; ct.length; )
|
|
178
|
+
ct.pop()();
|
|
179
|
+
Ue = !1, Oe.clear(), oe(e);
|
|
177
180
|
}
|
|
178
|
-
function
|
|
181
|
+
function kr(e) {
|
|
179
182
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
183
|
+
e.update(), j(e.before_update);
|
|
181
184
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
183
186
|
}
|
|
184
187
|
}
|
|
185
|
-
function
|
|
188
|
+
function jr(e) {
|
|
186
189
|
const t = [], r = [];
|
|
187
|
-
|
|
190
|
+
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
188
191
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
192
|
+
const Vr = /* @__PURE__ */ new Set();
|
|
193
|
+
function Xr(e, t) {
|
|
194
|
+
e && e.i && (Vr.delete(e), e.i(t));
|
|
192
195
|
}
|
|
193
|
-
function
|
|
196
|
+
function zr(e, t, r) {
|
|
194
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const o = e.$$.on_mount.map(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), De(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Rt).filter(tt);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : j(o), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(De);
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function Wr(e, t) {
|
|
201
204
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (jr(r.after_update), j(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
206
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
207
|
+
function Zr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (Z.push(e), Gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
209
|
}
|
|
207
|
-
function
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
+
function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const l = ae;
|
|
212
|
+
oe(e);
|
|
210
213
|
const u = e.$$ = {
|
|
211
214
|
fragment: null,
|
|
212
215
|
ctx: [],
|
|
213
216
|
// state
|
|
214
217
|
props: o,
|
|
215
|
-
update:
|
|
218
|
+
update: I,
|
|
216
219
|
not_equal: i,
|
|
217
|
-
bound:
|
|
220
|
+
bound: ht(),
|
|
218
221
|
// lifecycle
|
|
219
222
|
on_mount: [],
|
|
220
223
|
on_destroy: [],
|
|
221
224
|
on_disconnect: [],
|
|
222
225
|
before_update: [],
|
|
223
226
|
after_update: [],
|
|
224
|
-
context: new Map(t.context || (
|
|
227
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
225
228
|
// everything else
|
|
226
|
-
callbacks:
|
|
229
|
+
callbacks: ht(),
|
|
227
230
|
dirty: a,
|
|
228
231
|
skip_bound: !1,
|
|
229
|
-
root: t.target ||
|
|
232
|
+
root: t.target || l.$$.root
|
|
230
233
|
};
|
|
231
234
|
s && s(u.root);
|
|
232
|
-
let
|
|
235
|
+
let h = !1;
|
|
233
236
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
234
|
-
const
|
|
235
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
236
|
-
}) : [], u.update(),
|
|
237
|
+
const d = p.length ? p[0] : f;
|
|
238
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Zr(e, c)), f;
|
|
239
|
+
}) : [], u.update(), h = !0, j(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
240
|
if (t.hydrate) {
|
|
238
|
-
const c =
|
|
239
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
241
|
+
const c = Mr(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(c), c.forEach(B);
|
|
240
243
|
} else
|
|
241
244
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
245
|
+
t.intro && Xr(e.$$.fragment), zr(e, t.target, t.anchor), R();
|
|
243
246
|
}
|
|
244
|
-
|
|
247
|
+
oe(l);
|
|
245
248
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Dt;
|
|
250
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
248
251
|
constructor(t, r, n) {
|
|
249
252
|
super();
|
|
250
253
|
/** The Svelte component constructor */
|
|
251
|
-
|
|
254
|
+
P(this, "$$ctor");
|
|
252
255
|
/** Slots */
|
|
253
|
-
|
|
256
|
+
P(this, "$$s");
|
|
254
257
|
/** The Svelte component instance */
|
|
255
|
-
|
|
258
|
+
P(this, "$$c");
|
|
256
259
|
/** Whether or not the custom element is connected */
|
|
257
|
-
|
|
260
|
+
P(this, "$$cn", !1);
|
|
258
261
|
/** Component props data */
|
|
259
|
-
|
|
262
|
+
P(this, "$$d", {});
|
|
260
263
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
261
|
-
|
|
264
|
+
P(this, "$$r", !1);
|
|
262
265
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
263
|
-
|
|
266
|
+
P(this, "$$p_d", {});
|
|
264
267
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
265
|
-
|
|
268
|
+
P(this, "$$l", {});
|
|
266
269
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
267
|
-
|
|
270
|
+
P(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
268
271
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
269
272
|
}
|
|
270
273
|
addEventListener(t, r, n) {
|
|
@@ -281,42 +284,42 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
286
|
connectedCallback() {
|
|
284
|
-
return
|
|
287
|
+
return lt(this, null, function* () {
|
|
285
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
289
|
let t = function(o) {
|
|
287
290
|
return () => {
|
|
288
291
|
let s;
|
|
289
292
|
return {
|
|
290
293
|
c: function() {
|
|
291
|
-
s =
|
|
294
|
+
s = O("slot"), o !== "default" && _(s, "name", o);
|
|
292
295
|
},
|
|
293
296
|
/**
|
|
294
297
|
* @param {HTMLElement} target
|
|
295
298
|
* @param {HTMLElement} [anchor]
|
|
296
299
|
*/
|
|
297
|
-
m: function(u,
|
|
298
|
-
|
|
300
|
+
m: function(u, h) {
|
|
301
|
+
S(u, s, h);
|
|
299
302
|
},
|
|
300
303
|
d: function(u) {
|
|
301
|
-
u &&
|
|
304
|
+
u && B(s);
|
|
302
305
|
}
|
|
303
306
|
};
|
|
304
307
|
};
|
|
305
308
|
};
|
|
306
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
310
|
return;
|
|
308
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = $r(this);
|
|
309
312
|
for (const o of this.$$s)
|
|
310
313
|
o in n && (r[o] = [t(o)]);
|
|
311
314
|
for (const o of this.attributes) {
|
|
312
315
|
const s = this.$$g_p(o.name);
|
|
313
|
-
s in this.$$d || (this.$$d[s] =
|
|
316
|
+
s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
|
|
314
317
|
}
|
|
315
318
|
for (const o in this.$$p_d)
|
|
316
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
317
320
|
this.$$c = new this.$$ctor({
|
|
318
321
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
322
|
+
props: ut(at({}, this.$$d), {
|
|
320
323
|
$$slots: r,
|
|
321
324
|
$$scope: {
|
|
322
325
|
ctx: []
|
|
@@ -327,7 +330,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
327
330
|
this.$$r = !0;
|
|
328
331
|
for (const o in this.$$p_d)
|
|
329
332
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
330
|
-
const s =
|
|
333
|
+
const s = de(
|
|
331
334
|
o,
|
|
332
335
|
this.$$d[o],
|
|
333
336
|
this.$$p_d,
|
|
@@ -351,7 +354,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
351
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
355
|
attributeChangedCallback(t, r, n) {
|
|
353
356
|
var i;
|
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
355
358
|
}
|
|
356
359
|
disconnectedCallback() {
|
|
357
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -364,7 +367,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
364
367
|
) || t;
|
|
365
368
|
}
|
|
366
369
|
});
|
|
367
|
-
function
|
|
370
|
+
function de(e, t, r, n) {
|
|
368
371
|
var o;
|
|
369
372
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
370
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -394,8 +397,8 @@ function ue(e, t, r, n) {
|
|
|
394
397
|
return t;
|
|
395
398
|
}
|
|
396
399
|
}
|
|
397
|
-
function
|
|
398
|
-
let s = class extends
|
|
400
|
+
function Qr(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Dt {
|
|
399
402
|
constructor() {
|
|
400
403
|
super(e, r, i), this.$$p_d = t;
|
|
401
404
|
}
|
|
@@ -410,22 +413,22 @@ function Nr(e, t, r, n, i, o) {
|
|
|
410
413
|
get() {
|
|
411
414
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
412
415
|
},
|
|
413
|
-
set(
|
|
416
|
+
set(l) {
|
|
414
417
|
var u;
|
|
415
|
-
|
|
418
|
+
l = de(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
416
419
|
}
|
|
417
420
|
});
|
|
418
421
|
}), n.forEach((a) => {
|
|
419
422
|
Object.defineProperty(s.prototype, a, {
|
|
420
423
|
get() {
|
|
421
|
-
var
|
|
422
|
-
return (
|
|
424
|
+
var l;
|
|
425
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
423
426
|
}
|
|
424
427
|
});
|
|
425
428
|
}), e.element = /** @type {any} */
|
|
426
429
|
s, s;
|
|
427
430
|
}
|
|
428
|
-
class
|
|
431
|
+
class Yr {
|
|
429
432
|
constructor() {
|
|
430
433
|
/**
|
|
431
434
|
* ### PRIVATE API
|
|
@@ -434,7 +437,7 @@ class Cr {
|
|
|
434
437
|
*
|
|
435
438
|
* @type {any}
|
|
436
439
|
*/
|
|
437
|
-
|
|
440
|
+
P(this, "$$");
|
|
438
441
|
/**
|
|
439
442
|
* ### PRIVATE API
|
|
440
443
|
*
|
|
@@ -442,11 +445,11 @@ class Cr {
|
|
|
442
445
|
*
|
|
443
446
|
* @type {any}
|
|
444
447
|
*/
|
|
445
|
-
|
|
448
|
+
P(this, "$$set");
|
|
446
449
|
}
|
|
447
450
|
/** @returns {void} */
|
|
448
451
|
$destroy() {
|
|
449
|
-
|
|
452
|
+
Wr(this, 1), this.$destroy = I;
|
|
450
453
|
}
|
|
451
454
|
/**
|
|
452
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,8 +458,8 @@ class Cr {
|
|
|
455
458
|
* @returns {() => void}
|
|
456
459
|
*/
|
|
457
460
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
459
|
-
return
|
|
461
|
+
if (!tt(r))
|
|
462
|
+
return I;
|
|
460
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
464
|
return n.push(r), () => {
|
|
462
465
|
const i = n.indexOf(r);
|
|
@@ -468,11 +471,11 @@ class Cr {
|
|
|
468
471
|
* @returns {void}
|
|
469
472
|
*/
|
|
470
473
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
475
|
}
|
|
473
476
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const qr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
|
|
476
479
|
/*! *****************************************************************************
|
|
477
480
|
Copyright (c) Microsoft Corporation.
|
|
478
481
|
|
|
@@ -487,24 +490,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
487
490
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
488
491
|
PERFORMANCE OF THIS SOFTWARE.
|
|
489
492
|
***************************************************************************** */
|
|
490
|
-
var
|
|
491
|
-
return
|
|
493
|
+
var Fe = function(e, t) {
|
|
494
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
492
495
|
r.__proto__ = n;
|
|
493
496
|
} || function(r, n) {
|
|
494
497
|
for (var i in n)
|
|
495
498
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
496
|
-
},
|
|
499
|
+
}, Fe(e, t);
|
|
497
500
|
};
|
|
498
|
-
function
|
|
501
|
+
function he(e, t) {
|
|
499
502
|
if (typeof t != "function" && t !== null)
|
|
500
503
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
501
|
-
|
|
504
|
+
Fe(e, t);
|
|
502
505
|
function r() {
|
|
503
506
|
this.constructor = e;
|
|
504
507
|
}
|
|
505
508
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
506
509
|
}
|
|
507
|
-
function
|
|
510
|
+
function Ge(e) {
|
|
508
511
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
509
512
|
if (r)
|
|
510
513
|
return r.call(e);
|
|
@@ -516,7 +519,7 @@ function Le(e) {
|
|
|
516
519
|
};
|
|
517
520
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
518
521
|
}
|
|
519
|
-
function
|
|
522
|
+
function ke(e, t) {
|
|
520
523
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
521
524
|
if (!r)
|
|
522
525
|
return e;
|
|
@@ -536,22 +539,22 @@ function Me(e, t) {
|
|
|
536
539
|
}
|
|
537
540
|
return o;
|
|
538
541
|
}
|
|
539
|
-
function
|
|
542
|
+
function je(e, t, r) {
|
|
540
543
|
if (arguments.length === 2)
|
|
541
544
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
542
545
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
543
546
|
return e.concat(o || t);
|
|
544
547
|
}
|
|
545
|
-
function
|
|
548
|
+
function $(e) {
|
|
546
549
|
return typeof e == "function";
|
|
547
550
|
}
|
|
548
|
-
function
|
|
551
|
+
function Ft(e) {
|
|
549
552
|
var t = function(n) {
|
|
550
553
|
Error.call(n), n.stack = new Error().stack;
|
|
551
554
|
}, r = e(t);
|
|
552
555
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
553
556
|
}
|
|
554
|
-
var
|
|
557
|
+
var Pe = Ft(function(e) {
|
|
555
558
|
return function(r) {
|
|
556
559
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
557
560
|
` + r.map(function(n, i) {
|
|
@@ -560,13 +563,13 @@ var Se = Pt(function(e) {
|
|
|
560
563
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
561
564
|
};
|
|
562
565
|
});
|
|
563
|
-
function
|
|
566
|
+
function Ve(e, t) {
|
|
564
567
|
if (e) {
|
|
565
568
|
var r = e.indexOf(t);
|
|
566
569
|
0 <= r && e.splice(r, 1);
|
|
567
570
|
}
|
|
568
571
|
}
|
|
569
|
-
var
|
|
572
|
+
var xe = function() {
|
|
570
573
|
function e(t) {
|
|
571
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
572
575
|
}
|
|
@@ -578,15 +581,15 @@ var de = function() {
|
|
|
578
581
|
if (s)
|
|
579
582
|
if (this._parentage = null, Array.isArray(s))
|
|
580
583
|
try {
|
|
581
|
-
for (var a =
|
|
582
|
-
var u =
|
|
584
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
585
|
+
var u = l.value;
|
|
583
586
|
u.remove(this);
|
|
584
587
|
}
|
|
585
588
|
} catch (m) {
|
|
586
589
|
t = { error: m };
|
|
587
590
|
} finally {
|
|
588
591
|
try {
|
|
589
|
-
|
|
592
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
590
593
|
} finally {
|
|
591
594
|
if (t)
|
|
592
595
|
throw t.error;
|
|
@@ -594,23 +597,23 @@ var de = function() {
|
|
|
594
597
|
}
|
|
595
598
|
else
|
|
596
599
|
s.remove(this);
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
600
|
+
var h = this.initialTeardown;
|
|
601
|
+
if ($(h))
|
|
599
602
|
try {
|
|
600
|
-
|
|
603
|
+
h();
|
|
601
604
|
} catch (m) {
|
|
602
|
-
o = m instanceof
|
|
605
|
+
o = m instanceof Pe ? m.errors : [m];
|
|
603
606
|
}
|
|
604
607
|
var c = this._finalizers;
|
|
605
608
|
if (c) {
|
|
606
609
|
this._finalizers = null;
|
|
607
610
|
try {
|
|
608
|
-
for (var f =
|
|
609
|
-
var
|
|
611
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
612
|
+
var d = p.value;
|
|
610
613
|
try {
|
|
611
|
-
|
|
614
|
+
ft(d);
|
|
612
615
|
} catch (m) {
|
|
613
|
-
o = o != null ? o : [], m instanceof
|
|
616
|
+
o = o != null ? o : [], m instanceof Pe ? o = je(je([], ke(o)), ke(m.errors)) : o.push(m);
|
|
614
617
|
}
|
|
615
618
|
}
|
|
616
619
|
} catch (m) {
|
|
@@ -625,13 +628,13 @@ var de = function() {
|
|
|
625
628
|
}
|
|
626
629
|
}
|
|
627
630
|
if (o)
|
|
628
|
-
throw new
|
|
631
|
+
throw new Pe(o);
|
|
629
632
|
}
|
|
630
633
|
}, e.prototype.add = function(t) {
|
|
631
634
|
var r;
|
|
632
635
|
if (t && t !== this)
|
|
633
636
|
if (this.closed)
|
|
634
|
-
|
|
637
|
+
ft(t);
|
|
635
638
|
else {
|
|
636
639
|
if (t instanceof e) {
|
|
637
640
|
if (t.closed || t._hasParent(this))
|
|
@@ -648,52 +651,52 @@ var de = function() {
|
|
|
648
651
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
649
652
|
}, e.prototype._removeParent = function(t) {
|
|
650
653
|
var r = this._parentage;
|
|
651
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
654
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ve(r, t);
|
|
652
655
|
}, e.prototype.remove = function(t) {
|
|
653
656
|
var r = this._finalizers;
|
|
654
|
-
r &&
|
|
657
|
+
r && Ve(r, t), t instanceof e && t._removeParent(this);
|
|
655
658
|
}, e.EMPTY = function() {
|
|
656
659
|
var t = new e();
|
|
657
660
|
return t.closed = !0, t;
|
|
658
661
|
}(), e;
|
|
659
|
-
}(),
|
|
660
|
-
function
|
|
661
|
-
return e instanceof
|
|
662
|
+
}(), Gt = xe.EMPTY;
|
|
663
|
+
function kt(e) {
|
|
664
|
+
return e instanceof xe || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
662
665
|
}
|
|
663
|
-
function
|
|
664
|
-
|
|
666
|
+
function ft(e) {
|
|
667
|
+
$(e) ? e() : e.unsubscribe();
|
|
665
668
|
}
|
|
666
|
-
var
|
|
669
|
+
var Kr = {
|
|
667
670
|
Promise: void 0
|
|
668
|
-
},
|
|
671
|
+
}, en = {
|
|
669
672
|
setTimeout: function(e, t) {
|
|
670
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
674
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, je([e, t], ke(r)));
|
|
673
676
|
},
|
|
674
677
|
clearTimeout: function(e) {
|
|
675
678
|
return clearTimeout(e);
|
|
676
679
|
},
|
|
677
680
|
delegate: void 0
|
|
678
681
|
};
|
|
679
|
-
function
|
|
680
|
-
|
|
682
|
+
function tn(e) {
|
|
683
|
+
en.setTimeout(function() {
|
|
681
684
|
throw e;
|
|
682
685
|
});
|
|
683
686
|
}
|
|
684
|
-
function
|
|
687
|
+
function mt() {
|
|
685
688
|
}
|
|
686
|
-
function
|
|
689
|
+
function be(e) {
|
|
687
690
|
e();
|
|
688
691
|
}
|
|
689
|
-
var
|
|
690
|
-
|
|
692
|
+
var jt = function(e) {
|
|
693
|
+
he(t, e);
|
|
691
694
|
function t(r) {
|
|
692
695
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = on, n;
|
|
694
697
|
}
|
|
695
698
|
return t.create = function(r, n, i) {
|
|
696
|
-
return new
|
|
699
|
+
return new Xe(r, n, i);
|
|
697
700
|
}, t.prototype.next = function(r) {
|
|
698
701
|
this.isStopped || this._next(r);
|
|
699
702
|
}, t.prototype.error = function(r) {
|
|
@@ -717,7 +720,7 @@ var Nt = function(e) {
|
|
|
717
720
|
this.unsubscribe();
|
|
718
721
|
}
|
|
719
722
|
}, t;
|
|
720
|
-
}(
|
|
723
|
+
}(xe), rn = function() {
|
|
721
724
|
function e(t) {
|
|
722
725
|
this.partialObserver = t;
|
|
723
726
|
}
|
|
@@ -727,7 +730,7 @@ var Nt = function(e) {
|
|
|
727
730
|
try {
|
|
728
731
|
r.next(t);
|
|
729
732
|
} catch (n) {
|
|
730
|
-
|
|
733
|
+
me(n);
|
|
731
734
|
}
|
|
732
735
|
}, e.prototype.error = function(t) {
|
|
733
736
|
var r = this.partialObserver;
|
|
@@ -735,56 +738,56 @@ var Nt = function(e) {
|
|
|
735
738
|
try {
|
|
736
739
|
r.error(t);
|
|
737
740
|
} catch (n) {
|
|
738
|
-
|
|
741
|
+
me(n);
|
|
739
742
|
}
|
|
740
743
|
else
|
|
741
|
-
|
|
744
|
+
me(t);
|
|
742
745
|
}, e.prototype.complete = function() {
|
|
743
746
|
var t = this.partialObserver;
|
|
744
747
|
if (t.complete)
|
|
745
748
|
try {
|
|
746
749
|
t.complete();
|
|
747
750
|
} catch (r) {
|
|
748
|
-
|
|
751
|
+
me(r);
|
|
749
752
|
}
|
|
750
753
|
}, e;
|
|
751
|
-
}(),
|
|
752
|
-
|
|
754
|
+
}(), Xe = function(e) {
|
|
755
|
+
he(t, e);
|
|
753
756
|
function t(r, n, i) {
|
|
754
757
|
var o = e.call(this) || this, s;
|
|
755
|
-
return
|
|
758
|
+
return $(r) || !r ? s = {
|
|
756
759
|
next: r != null ? r : void 0,
|
|
757
760
|
error: n != null ? n : void 0,
|
|
758
761
|
complete: i != null ? i : void 0
|
|
759
|
-
} : s = r, o.destination = new
|
|
762
|
+
} : s = r, o.destination = new rn(s), o;
|
|
760
763
|
}
|
|
761
764
|
return t;
|
|
762
|
-
}(
|
|
763
|
-
function
|
|
764
|
-
|
|
765
|
+
}(jt);
|
|
766
|
+
function me(e) {
|
|
767
|
+
tn(e);
|
|
765
768
|
}
|
|
766
|
-
function
|
|
769
|
+
function nn(e) {
|
|
767
770
|
throw e;
|
|
768
771
|
}
|
|
769
|
-
var
|
|
772
|
+
var on = {
|
|
770
773
|
closed: !0,
|
|
771
|
-
next:
|
|
772
|
-
error:
|
|
773
|
-
complete:
|
|
774
|
-
},
|
|
774
|
+
next: mt,
|
|
775
|
+
error: nn,
|
|
776
|
+
complete: mt
|
|
777
|
+
}, sn = function() {
|
|
775
778
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
776
779
|
}();
|
|
777
|
-
function
|
|
780
|
+
function an(e) {
|
|
778
781
|
return e;
|
|
779
782
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.length === 0 ?
|
|
783
|
+
function un(e) {
|
|
784
|
+
return e.length === 0 ? an : e.length === 1 ? e[0] : function(r) {
|
|
782
785
|
return e.reduce(function(n, i) {
|
|
783
786
|
return i(n);
|
|
784
787
|
}, r);
|
|
785
788
|
};
|
|
786
789
|
}
|
|
787
|
-
var
|
|
790
|
+
var pt = function() {
|
|
788
791
|
function e(t) {
|
|
789
792
|
t && (this._subscribe = t);
|
|
790
793
|
}
|
|
@@ -792,10 +795,10 @@ var st = function() {
|
|
|
792
795
|
var r = new e();
|
|
793
796
|
return r.source = this, r.operator = t, r;
|
|
794
797
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
795
|
-
var i = this, o =
|
|
796
|
-
return
|
|
797
|
-
var s = i, a = s.operator,
|
|
798
|
-
o.add(a ? a.call(o,
|
|
798
|
+
var i = this, o = hn(t) ? t : new Xe(t, r, n);
|
|
799
|
+
return be(function() {
|
|
800
|
+
var s = i, a = s.operator, l = s.source;
|
|
801
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
799
802
|
}), o;
|
|
800
803
|
}, e.prototype._trySubscribe = function(t) {
|
|
801
804
|
try {
|
|
@@ -805,13 +808,13 @@ var st = function() {
|
|
|
805
808
|
}
|
|
806
809
|
}, e.prototype.forEach = function(t, r) {
|
|
807
810
|
var n = this;
|
|
808
|
-
return r =
|
|
809
|
-
var s = new
|
|
811
|
+
return r = dt(r), new r(function(i, o) {
|
|
812
|
+
var s = new Xe({
|
|
810
813
|
next: function(a) {
|
|
811
814
|
try {
|
|
812
815
|
t(a);
|
|
813
|
-
} catch (
|
|
814
|
-
o(
|
|
816
|
+
} catch (l) {
|
|
817
|
+
o(l), s.unsubscribe();
|
|
815
818
|
}
|
|
816
819
|
},
|
|
817
820
|
error: o,
|
|
@@ -822,15 +825,15 @@ var st = function() {
|
|
|
822
825
|
}, e.prototype._subscribe = function(t) {
|
|
823
826
|
var r;
|
|
824
827
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
825
|
-
}, e.prototype[
|
|
828
|
+
}, e.prototype[sn] = function() {
|
|
826
829
|
return this;
|
|
827
830
|
}, e.prototype.pipe = function() {
|
|
828
831
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
829
832
|
t[r] = arguments[r];
|
|
830
|
-
return
|
|
833
|
+
return un(t)(this);
|
|
831
834
|
}, e.prototype.toPromise = function(t) {
|
|
832
835
|
var r = this;
|
|
833
|
-
return t =
|
|
836
|
+
return t = dt(t), new t(function(n, i) {
|
|
834
837
|
var o;
|
|
835
838
|
r.subscribe(function(s) {
|
|
836
839
|
return o = s;
|
|
@@ -844,42 +847,42 @@ var st = function() {
|
|
|
844
847
|
return new e(t);
|
|
845
848
|
}, e;
|
|
846
849
|
}();
|
|
847
|
-
function
|
|
850
|
+
function dt(e) {
|
|
848
851
|
var t;
|
|
849
|
-
return (t = e != null ? e :
|
|
852
|
+
return (t = e != null ? e : Kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
850
853
|
}
|
|
851
|
-
function
|
|
852
|
-
return e &&
|
|
854
|
+
function ln(e) {
|
|
855
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
853
856
|
}
|
|
854
|
-
function
|
|
855
|
-
return e && e instanceof
|
|
857
|
+
function hn(e) {
|
|
858
|
+
return e && e instanceof jt || ln(e) && kt(e);
|
|
856
859
|
}
|
|
857
|
-
var
|
|
860
|
+
var cn = Ft(function(e) {
|
|
858
861
|
return function() {
|
|
859
862
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
860
863
|
};
|
|
861
|
-
}),
|
|
862
|
-
|
|
864
|
+
}), Vt = function(e) {
|
|
865
|
+
he(t, e);
|
|
863
866
|
function t() {
|
|
864
867
|
var r = e.call(this) || this;
|
|
865
868
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
866
869
|
}
|
|
867
870
|
return t.prototype.lift = function(r) {
|
|
868
|
-
var n = new
|
|
871
|
+
var n = new bt(this, this);
|
|
869
872
|
return n.operator = r, n;
|
|
870
873
|
}, t.prototype._throwIfClosed = function() {
|
|
871
874
|
if (this.closed)
|
|
872
|
-
throw new
|
|
875
|
+
throw new cn();
|
|
873
876
|
}, t.prototype.next = function(r) {
|
|
874
877
|
var n = this;
|
|
875
|
-
|
|
878
|
+
be(function() {
|
|
876
879
|
var i, o;
|
|
877
880
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
878
881
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
879
882
|
try {
|
|
880
|
-
for (var s =
|
|
881
|
-
var
|
|
882
|
-
|
|
883
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
884
|
+
var l = a.value;
|
|
885
|
+
l.next(r);
|
|
883
886
|
}
|
|
884
887
|
} catch (u) {
|
|
885
888
|
i = { error: u };
|
|
@@ -895,7 +898,7 @@ var Wr = Pt(function(e) {
|
|
|
895
898
|
});
|
|
896
899
|
}, t.prototype.error = function(r) {
|
|
897
900
|
var n = this;
|
|
898
|
-
|
|
901
|
+
be(function() {
|
|
899
902
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
900
903
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
901
904
|
for (var i = n.observers; i.length; )
|
|
@@ -904,7 +907,7 @@ var Wr = Pt(function(e) {
|
|
|
904
907
|
});
|
|
905
908
|
}, t.prototype.complete = function() {
|
|
906
909
|
var r = this;
|
|
907
|
-
|
|
910
|
+
be(function() {
|
|
908
911
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
909
912
|
r.isStopped = !0;
|
|
910
913
|
for (var n = r.observers; n.length; )
|
|
@@ -926,20 +929,20 @@ var Wr = Pt(function(e) {
|
|
|
926
929
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
927
930
|
}, t.prototype._innerSubscribe = function(r) {
|
|
928
931
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
929
|
-
return o || s ?
|
|
930
|
-
n.currentObservers = null,
|
|
932
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
933
|
+
n.currentObservers = null, Ve(a, r);
|
|
931
934
|
}));
|
|
932
935
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
933
936
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
934
937
|
i ? r.error(o) : s && r.complete();
|
|
935
938
|
}, t.prototype.asObservable = function() {
|
|
936
|
-
var r = new
|
|
939
|
+
var r = new pt();
|
|
937
940
|
return r.source = this, r;
|
|
938
941
|
}, t.create = function(r, n) {
|
|
939
|
-
return new
|
|
942
|
+
return new bt(r, n);
|
|
940
943
|
}, t;
|
|
941
|
-
}(
|
|
942
|
-
|
|
944
|
+
}(pt), bt = function(e) {
|
|
945
|
+
he(t, e);
|
|
943
946
|
function t(r, n) {
|
|
944
947
|
var i = e.call(this) || this;
|
|
945
948
|
return i.destination = r, i.source = n, i;
|
|
@@ -955,208 +958,208 @@ var Wr = Pt(function(e) {
|
|
|
955
958
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
956
959
|
}, t.prototype._subscribe = function(r) {
|
|
957
960
|
var n, i;
|
|
958
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
961
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
959
962
|
}, t;
|
|
960
|
-
}(
|
|
963
|
+
}(Vt), Xt = {
|
|
961
964
|
now: function() {
|
|
962
|
-
return (
|
|
965
|
+
return (Xt.delegate || Date).now();
|
|
963
966
|
},
|
|
964
967
|
delegate: void 0
|
|
965
|
-
},
|
|
966
|
-
|
|
968
|
+
}, fn = function(e) {
|
|
969
|
+
he(t, e);
|
|
967
970
|
function t(r, n, i) {
|
|
968
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
971
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
|
|
969
972
|
var o = e.call(this) || this;
|
|
970
973
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
971
974
|
}
|
|
972
975
|
return t.prototype.next = function(r) {
|
|
973
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
974
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
976
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
977
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
975
978
|
}, t.prototype._subscribe = function(r) {
|
|
976
979
|
this._throwIfClosed(), this._trimBuffer();
|
|
977
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
978
|
-
r.next(a[
|
|
980
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
981
|
+
r.next(a[l]);
|
|
979
982
|
return this._checkFinalizedStatuses(r), n;
|
|
980
983
|
}, t.prototype._trimBuffer = function() {
|
|
981
984
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
982
985
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
983
|
-
for (var
|
|
984
|
-
u =
|
|
986
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
987
|
+
u = h;
|
|
985
988
|
u && o.splice(0, u + 1);
|
|
986
989
|
}
|
|
987
990
|
}, t;
|
|
988
|
-
}(
|
|
989
|
-
const
|
|
990
|
-
if (
|
|
991
|
-
const r = new
|
|
992
|
-
|
|
991
|
+
}(Vt);
|
|
992
|
+
const gt = [], yt = {}, mn = (e, t = 0) => {
|
|
993
|
+
if (gt.indexOf(e) == -1) {
|
|
994
|
+
const r = new fn(t);
|
|
995
|
+
yt[e] = r, gt.push(e);
|
|
993
996
|
}
|
|
994
|
-
return
|
|
995
|
-
},
|
|
996
|
-
function
|
|
997
|
+
return yt[e];
|
|
998
|
+
}, W = [];
|
|
999
|
+
function pn(e, t) {
|
|
997
1000
|
return {
|
|
998
|
-
subscribe:
|
|
1001
|
+
subscribe: Be(e, t).subscribe
|
|
999
1002
|
};
|
|
1000
1003
|
}
|
|
1001
|
-
function
|
|
1004
|
+
function Be(e, t = I) {
|
|
1002
1005
|
let r;
|
|
1003
1006
|
const n = /* @__PURE__ */ new Set();
|
|
1004
1007
|
function i(a) {
|
|
1005
|
-
if (
|
|
1006
|
-
const
|
|
1008
|
+
if ($t(e, a) && (e = a, r)) {
|
|
1009
|
+
const l = !W.length;
|
|
1007
1010
|
for (const u of n)
|
|
1008
|
-
u[1](),
|
|
1009
|
-
if (
|
|
1010
|
-
for (let u = 0; u <
|
|
1011
|
-
|
|
1012
|
-
|
|
1011
|
+
u[1](), W.push(u, e);
|
|
1012
|
+
if (l) {
|
|
1013
|
+
for (let u = 0; u < W.length; u += 2)
|
|
1014
|
+
W[u][0](W[u + 1]);
|
|
1015
|
+
W.length = 0;
|
|
1013
1016
|
}
|
|
1014
1017
|
}
|
|
1015
1018
|
}
|
|
1016
1019
|
function o(a) {
|
|
1017
1020
|
i(a(e));
|
|
1018
1021
|
}
|
|
1019
|
-
function s(a,
|
|
1020
|
-
const u = [a,
|
|
1021
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1022
|
+
function s(a, l = I) {
|
|
1023
|
+
const u = [a, l];
|
|
1024
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
1022
1025
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1023
1026
|
};
|
|
1024
1027
|
}
|
|
1025
1028
|
return { set: i, update: o, subscribe: s };
|
|
1026
1029
|
}
|
|
1027
|
-
function
|
|
1030
|
+
function te(e, t, r) {
|
|
1028
1031
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1029
1032
|
if (!i.every(Boolean))
|
|
1030
1033
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1031
1034
|
const o = t.length < 2;
|
|
1032
|
-
return
|
|
1033
|
-
let
|
|
1035
|
+
return pn(r, (s, a) => {
|
|
1036
|
+
let l = !1;
|
|
1034
1037
|
const u = [];
|
|
1035
|
-
let
|
|
1038
|
+
let h = 0, c = I;
|
|
1036
1039
|
const f = () => {
|
|
1037
|
-
if (
|
|
1040
|
+
if (h)
|
|
1038
1041
|
return;
|
|
1039
1042
|
c();
|
|
1040
|
-
const
|
|
1041
|
-
o ? s(
|
|
1043
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1044
|
+
o ? s(d) : c = tt(d) ? d : I;
|
|
1042
1045
|
}, p = i.map(
|
|
1043
|
-
(
|
|
1044
|
-
|
|
1045
|
-
(
|
|
1046
|
-
u[m] =
|
|
1046
|
+
(d, m) => Ut(
|
|
1047
|
+
d,
|
|
1048
|
+
(v) => {
|
|
1049
|
+
u[m] = v, h &= ~(1 << m), l && f();
|
|
1047
1050
|
},
|
|
1048
1051
|
() => {
|
|
1049
|
-
|
|
1052
|
+
h |= 1 << m;
|
|
1050
1053
|
}
|
|
1051
1054
|
)
|
|
1052
1055
|
);
|
|
1053
|
-
return
|
|
1054
|
-
|
|
1056
|
+
return l = !0, f(), function() {
|
|
1057
|
+
j(p), c(), l = !1;
|
|
1055
1058
|
};
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1061
|
+
function dn(e) {
|
|
1059
1062
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1060
1063
|
}
|
|
1061
|
-
var
|
|
1062
|
-
return
|
|
1064
|
+
var bn = function(t) {
|
|
1065
|
+
return gn(t) && !yn(t);
|
|
1063
1066
|
};
|
|
1064
|
-
function
|
|
1067
|
+
function gn(e) {
|
|
1065
1068
|
return !!e && typeof e == "object";
|
|
1066
1069
|
}
|
|
1067
|
-
function
|
|
1070
|
+
function yn(e) {
|
|
1068
1071
|
var t = Object.prototype.toString.call(e);
|
|
1069
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1072
|
+
return t === "[object RegExp]" || t === "[object Date]" || En(e);
|
|
1070
1073
|
}
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1073
|
-
return e.$$typeof ===
|
|
1074
|
+
var vn = typeof Symbol == "function" && Symbol.for, _n = vn ? Symbol.for("react.element") : 60103;
|
|
1075
|
+
function En(e) {
|
|
1076
|
+
return e.$$typeof === _n;
|
|
1074
1077
|
}
|
|
1075
|
-
function
|
|
1078
|
+
function xn(e) {
|
|
1076
1079
|
return Array.isArray(e) ? [] : {};
|
|
1077
1080
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1081
|
+
function ue(e, t) {
|
|
1082
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(xn(e), e, t) : e;
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1084
|
+
function Bn(e, t, r) {
|
|
1082
1085
|
return e.concat(t).map(function(n) {
|
|
1083
|
-
return
|
|
1086
|
+
return ue(n, r);
|
|
1084
1087
|
});
|
|
1085
1088
|
}
|
|
1086
|
-
function
|
|
1089
|
+
function Sn(e, t) {
|
|
1087
1090
|
if (!t.customMerge)
|
|
1088
|
-
return
|
|
1091
|
+
return Y;
|
|
1089
1092
|
var r = t.customMerge(e);
|
|
1090
|
-
return typeof r == "function" ? r :
|
|
1093
|
+
return typeof r == "function" ? r : Y;
|
|
1091
1094
|
}
|
|
1092
|
-
function
|
|
1095
|
+
function wn(e) {
|
|
1093
1096
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1094
1097
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1095
1098
|
}) : [];
|
|
1096
1099
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return Object.keys(e).concat(
|
|
1100
|
+
function vt(e) {
|
|
1101
|
+
return Object.keys(e).concat(wn(e));
|
|
1099
1102
|
}
|
|
1100
|
-
function
|
|
1103
|
+
function zt(e, t) {
|
|
1101
1104
|
try {
|
|
1102
1105
|
return t in e;
|
|
1103
1106
|
} catch (r) {
|
|
1104
1107
|
return !1;
|
|
1105
1108
|
}
|
|
1106
1109
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1110
|
+
function Hn(e, t) {
|
|
1111
|
+
return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1109
1112
|
}
|
|
1110
|
-
function
|
|
1113
|
+
function Tn(e, t, r) {
|
|
1111
1114
|
var n = {};
|
|
1112
|
-
return r.isMergeableObject(e) &&
|
|
1113
|
-
n[i] =
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1115
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
|
1116
|
+
n[i] = ue(e[i], r);
|
|
1117
|
+
}), vt(t).forEach(function(i) {
|
|
1118
|
+
Hn(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Sn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
|
1116
1119
|
}), n;
|
|
1117
1120
|
}
|
|
1118
|
-
function
|
|
1119
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1121
|
+
function Y(e, t, r) {
|
|
1122
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || bn, r.cloneUnlessOtherwiseSpecified = ue;
|
|
1120
1123
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1121
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1124
|
+
return o ? n ? r.arrayMerge(e, t, r) : Tn(e, t, r) : ue(t, r);
|
|
1122
1125
|
}
|
|
1123
|
-
|
|
1126
|
+
Y.all = function(t, r) {
|
|
1124
1127
|
if (!Array.isArray(t))
|
|
1125
1128
|
throw new Error("first argument should be an array");
|
|
1126
1129
|
return t.reduce(function(n, i) {
|
|
1127
|
-
return
|
|
1130
|
+
return Y(n, i, r);
|
|
1128
1131
|
}, {});
|
|
1129
1132
|
};
|
|
1130
|
-
var
|
|
1131
|
-
const
|
|
1132
|
-
var
|
|
1133
|
-
return
|
|
1133
|
+
var An = Y, On = An;
|
|
1134
|
+
const Pn = /* @__PURE__ */ dn(On);
|
|
1135
|
+
var ze = function(e, t) {
|
|
1136
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1134
1137
|
r.__proto__ = n;
|
|
1135
1138
|
} || function(r, n) {
|
|
1136
1139
|
for (var i in n)
|
|
1137
1140
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1138
|
-
},
|
|
1141
|
+
}, ze(e, t);
|
|
1139
1142
|
};
|
|
1140
|
-
function
|
|
1143
|
+
function Se(e, t) {
|
|
1141
1144
|
if (typeof t != "function" && t !== null)
|
|
1142
1145
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1143
|
-
|
|
1146
|
+
ze(e, t);
|
|
1144
1147
|
function r() {
|
|
1145
1148
|
this.constructor = e;
|
|
1146
1149
|
}
|
|
1147
1150
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1148
1151
|
}
|
|
1149
|
-
var
|
|
1150
|
-
return
|
|
1152
|
+
var N = function() {
|
|
1153
|
+
return N = Object.assign || function(t) {
|
|
1151
1154
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1152
1155
|
r = arguments[n];
|
|
1153
1156
|
for (var o in r)
|
|
1154
1157
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1155
1158
|
}
|
|
1156
1159
|
return t;
|
|
1157
|
-
},
|
|
1160
|
+
}, N.apply(this, arguments);
|
|
1158
1161
|
};
|
|
1159
|
-
function
|
|
1162
|
+
function In(e, t) {
|
|
1160
1163
|
var r = {};
|
|
1161
1164
|
for (var n in e)
|
|
1162
1165
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1165,43 +1168,43 @@ function mn(e, t) {
|
|
|
1165
1168
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1166
1169
|
return r;
|
|
1167
1170
|
}
|
|
1168
|
-
function
|
|
1171
|
+
function Ie(e, t, r) {
|
|
1169
1172
|
if (r || arguments.length === 2)
|
|
1170
1173
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1171
1174
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1172
1175
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1173
1176
|
}
|
|
1174
|
-
function
|
|
1175
|
-
var r = t && t.cache ? t.cache :
|
|
1177
|
+
function Ce(e, t) {
|
|
1178
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Nn;
|
|
1176
1179
|
return i(e, {
|
|
1177
1180
|
cache: r,
|
|
1178
1181
|
serializer: n
|
|
1179
1182
|
});
|
|
1180
1183
|
}
|
|
1181
|
-
function
|
|
1184
|
+
function Cn(e) {
|
|
1182
1185
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1183
1186
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var i =
|
|
1187
|
+
function Ln(e, t, r, n) {
|
|
1188
|
+
var i = Cn(n) ? n : r(n), o = t.get(i);
|
|
1186
1189
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1187
1190
|
}
|
|
1188
|
-
function
|
|
1191
|
+
function Wt(e, t, r) {
|
|
1189
1192
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1190
1193
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1191
1194
|
}
|
|
1192
|
-
function
|
|
1195
|
+
function Zt(e, t, r, n, i) {
|
|
1193
1196
|
return r.bind(t, e, n, i);
|
|
1194
1197
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var r = e.length === 1 ?
|
|
1197
|
-
return
|
|
1198
|
+
function Nn(e, t) {
|
|
1199
|
+
var r = e.length === 1 ? Ln : Wt;
|
|
1200
|
+
return Zt(e, this, r, t.cache.create(), t.serializer);
|
|
1198
1201
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1202
|
+
function Mn(e, t) {
|
|
1203
|
+
return Zt(e, this, Wt, t.cache.create(), t.serializer);
|
|
1201
1204
|
}
|
|
1202
|
-
var
|
|
1205
|
+
var Rn = function() {
|
|
1203
1206
|
return JSON.stringify(arguments);
|
|
1204
|
-
},
|
|
1207
|
+
}, $n = (
|
|
1205
1208
|
/** @class */
|
|
1206
1209
|
function() {
|
|
1207
1210
|
function e() {
|
|
@@ -1213,71 +1216,71 @@ var vn = function() {
|
|
|
1213
1216
|
this.cache[t] = r;
|
|
1214
1217
|
}, e;
|
|
1215
1218
|
}()
|
|
1216
|
-
),
|
|
1219
|
+
), Un = {
|
|
1217
1220
|
create: function() {
|
|
1218
|
-
return new
|
|
1221
|
+
return new $n();
|
|
1219
1222
|
}
|
|
1220
|
-
},
|
|
1221
|
-
variadic:
|
|
1222
|
-
},
|
|
1223
|
-
return
|
|
1223
|
+
}, Le = {
|
|
1224
|
+
variadic: Mn
|
|
1225
|
+
}, ve = function() {
|
|
1226
|
+
return ve = Object.assign || function(t) {
|
|
1224
1227
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1225
1228
|
r = arguments[n];
|
|
1226
1229
|
for (var o in r)
|
|
1227
1230
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1228
1231
|
}
|
|
1229
1232
|
return t;
|
|
1230
|
-
},
|
|
1233
|
+
}, ve.apply(this, arguments);
|
|
1231
1234
|
};
|
|
1232
|
-
var
|
|
1235
|
+
var g;
|
|
1233
1236
|
(function(e) {
|
|
1234
1237
|
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";
|
|
1235
|
-
})(
|
|
1236
|
-
var
|
|
1238
|
+
})(g || (g = {}));
|
|
1239
|
+
var E;
|
|
1237
1240
|
(function(e) {
|
|
1238
1241
|
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";
|
|
1239
|
-
})(
|
|
1240
|
-
var
|
|
1242
|
+
})(E || (E = {}));
|
|
1243
|
+
var q;
|
|
1241
1244
|
(function(e) {
|
|
1242
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1243
|
-
})(
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1246
|
+
})(q || (q = {}));
|
|
1247
|
+
function _t(e) {
|
|
1248
|
+
return e.type === E.literal;
|
|
1246
1249
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1250
|
+
function Dn(e) {
|
|
1251
|
+
return e.type === E.argument;
|
|
1249
1252
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return e.type ===
|
|
1253
|
+
function Jt(e) {
|
|
1254
|
+
return e.type === E.number;
|
|
1252
1255
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1256
|
+
function Qt(e) {
|
|
1257
|
+
return e.type === E.date;
|
|
1255
1258
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1259
|
+
function Yt(e) {
|
|
1260
|
+
return e.type === E.time;
|
|
1258
1261
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1262
|
+
function qt(e) {
|
|
1263
|
+
return e.type === E.select;
|
|
1261
1264
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1265
|
+
function Kt(e) {
|
|
1266
|
+
return e.type === E.plural;
|
|
1264
1267
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1268
|
+
function Fn(e) {
|
|
1269
|
+
return e.type === E.pound;
|
|
1267
1270
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return e.type ===
|
|
1271
|
+
function er(e) {
|
|
1272
|
+
return e.type === E.tag;
|
|
1270
1273
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1274
|
+
function tr(e) {
|
|
1275
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1273
1276
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1277
|
+
function We(e) {
|
|
1278
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1276
1279
|
}
|
|
1277
|
-
var
|
|
1278
|
-
function
|
|
1280
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
|
|
1281
|
+
function kn(e) {
|
|
1279
1282
|
var t = {};
|
|
1280
|
-
return e.replace(
|
|
1283
|
+
return e.replace(Gn, function(r) {
|
|
1281
1284
|
var n = r.length;
|
|
1282
1285
|
switch (r[0]) {
|
|
1283
1286
|
case "G":
|
|
@@ -1366,46 +1369,46 @@ function wn(e) {
|
|
|
1366
1369
|
return "";
|
|
1367
1370
|
}), t;
|
|
1368
1371
|
}
|
|
1369
|
-
var
|
|
1370
|
-
return
|
|
1372
|
+
var x = function() {
|
|
1373
|
+
return x = Object.assign || function(t) {
|
|
1371
1374
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1372
1375
|
r = arguments[n];
|
|
1373
1376
|
for (var o in r)
|
|
1374
1377
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1375
1378
|
}
|
|
1376
1379
|
return t;
|
|
1377
|
-
},
|
|
1380
|
+
}, x.apply(this, arguments);
|
|
1378
1381
|
};
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1382
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1383
|
+
function Vn(e) {
|
|
1381
1384
|
if (e.length === 0)
|
|
1382
1385
|
throw new Error("Number skeleton cannot be empty");
|
|
1383
|
-
for (var t = e.split(
|
|
1386
|
+
for (var t = e.split(jn).filter(function(f) {
|
|
1384
1387
|
return f.length > 0;
|
|
1385
1388
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1386
1389
|
var o = i[n], s = o.split("/");
|
|
1387
1390
|
if (s.length === 0)
|
|
1388
1391
|
throw new Error("Invalid number skeleton");
|
|
1389
|
-
for (var a = s[0],
|
|
1390
|
-
var c =
|
|
1392
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1393
|
+
var c = h[u];
|
|
1391
1394
|
if (c.length === 0)
|
|
1392
1395
|
throw new Error("Invalid number skeleton");
|
|
1393
1396
|
}
|
|
1394
|
-
r.push({ stem: a, options:
|
|
1397
|
+
r.push({ stem: a, options: l });
|
|
1395
1398
|
}
|
|
1396
1399
|
return r;
|
|
1397
1400
|
}
|
|
1398
|
-
function
|
|
1401
|
+
function Xn(e) {
|
|
1399
1402
|
return e.replace(/^(.*?)-/, "");
|
|
1400
1403
|
}
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1404
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, zn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
|
|
1405
|
+
function xt(e) {
|
|
1403
1406
|
var t = {};
|
|
1404
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1407
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
|
|
1405
1408
|
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)), "";
|
|
1406
1409
|
}), t;
|
|
1407
1410
|
}
|
|
1408
|
-
function
|
|
1411
|
+
function or(e) {
|
|
1409
1412
|
switch (e) {
|
|
1410
1413
|
case "sign-auto":
|
|
1411
1414
|
return {
|
|
@@ -1445,7 +1448,7 @@ function Zt(e) {
|
|
|
1445
1448
|
};
|
|
1446
1449
|
}
|
|
1447
1450
|
}
|
|
1448
|
-
function
|
|
1451
|
+
function Wn(e) {
|
|
1449
1452
|
var t;
|
|
1450
1453
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1451
1454
|
notation: "engineering"
|
|
@@ -1453,17 +1456,17 @@ function Pn(e) {
|
|
|
1453
1456
|
notation: "scientific"
|
|
1454
1457
|
}, e = e.slice(1)), t) {
|
|
1455
1458
|
var r = e.slice(0, 2);
|
|
1456
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1459
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
|
|
1457
1460
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1458
1461
|
t.minimumIntegerDigits = e.length;
|
|
1459
1462
|
}
|
|
1460
1463
|
return t;
|
|
1461
1464
|
}
|
|
1462
|
-
function
|
|
1463
|
-
var t = {}, r =
|
|
1465
|
+
function Bt(e) {
|
|
1466
|
+
var t = {}, r = or(e);
|
|
1464
1467
|
return r || t;
|
|
1465
1468
|
}
|
|
1466
|
-
function
|
|
1469
|
+
function Zn(e) {
|
|
1467
1470
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1468
1471
|
var i = n[r];
|
|
1469
1472
|
switch (i.stem) {
|
|
@@ -1487,7 +1490,7 @@ function On(e) {
|
|
|
1487
1490
|
continue;
|
|
1488
1491
|
case "measure-unit":
|
|
1489
1492
|
case "unit":
|
|
1490
|
-
t.style = "unit", t.unit =
|
|
1493
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
|
1491
1494
|
continue;
|
|
1492
1495
|
case "compact-short":
|
|
1493
1496
|
case "K":
|
|
@@ -1498,13 +1501,13 @@ function On(e) {
|
|
|
1498
1501
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1499
1502
|
continue;
|
|
1500
1503
|
case "scientific":
|
|
1501
|
-
t =
|
|
1502
|
-
return
|
|
1504
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1505
|
+
return x(x({}, l), Bt(u));
|
|
1503
1506
|
}, {}));
|
|
1504
1507
|
continue;
|
|
1505
1508
|
case "engineering":
|
|
1506
|
-
t =
|
|
1507
|
-
return
|
|
1509
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1510
|
+
return x(x({}, l), Bt(u));
|
|
1508
1511
|
}, {}));
|
|
1509
1512
|
continue;
|
|
1510
1513
|
case "notation-simple":
|
|
@@ -1549,9 +1552,9 @@ function On(e) {
|
|
|
1549
1552
|
case "integer-width":
|
|
1550
1553
|
if (i.options.length > 1)
|
|
1551
1554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1552
|
-
i.options[0].replace(
|
|
1555
|
+
i.options[0].replace(zn, function(l, u, h, c, f, p) {
|
|
1553
1556
|
if (u)
|
|
1554
|
-
t.minimumIntegerDigits =
|
|
1557
|
+
t.minimumIntegerDigits = h.length;
|
|
1555
1558
|
else {
|
|
1556
1559
|
if (c && f)
|
|
1557
1560
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1562,32 +1565,32 @@ function On(e) {
|
|
|
1562
1565
|
});
|
|
1563
1566
|
continue;
|
|
1564
1567
|
}
|
|
1565
|
-
if (
|
|
1568
|
+
if (ir.test(i.stem)) {
|
|
1566
1569
|
t.minimumIntegerDigits = i.stem.length;
|
|
1567
1570
|
continue;
|
|
1568
1571
|
}
|
|
1569
|
-
if (
|
|
1572
|
+
if (Et.test(i.stem)) {
|
|
1570
1573
|
if (i.options.length > 1)
|
|
1571
1574
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1572
|
-
i.stem.replace(
|
|
1573
|
-
return
|
|
1575
|
+
i.stem.replace(Et, function(l, u, h, c, f, p) {
|
|
1576
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1574
1577
|
});
|
|
1575
1578
|
var o = i.options[0];
|
|
1576
|
-
o === "w" ? t =
|
|
1579
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), xt(o)));
|
|
1577
1580
|
continue;
|
|
1578
1581
|
}
|
|
1579
|
-
if (
|
|
1580
|
-
t =
|
|
1582
|
+
if (nr.test(i.stem)) {
|
|
1583
|
+
t = x(x({}, t), xt(i.stem));
|
|
1581
1584
|
continue;
|
|
1582
1585
|
}
|
|
1583
|
-
var s =
|
|
1584
|
-
s && (t =
|
|
1585
|
-
var a =
|
|
1586
|
-
a && (t =
|
|
1586
|
+
var s = or(i.stem);
|
|
1587
|
+
s && (t = x(x({}, t), s));
|
|
1588
|
+
var a = Wn(i.stem);
|
|
1589
|
+
a && (t = x(x({}, t), a));
|
|
1587
1590
|
}
|
|
1588
1591
|
return t;
|
|
1589
1592
|
}
|
|
1590
|
-
var
|
|
1593
|
+
var pe = {
|
|
1591
1594
|
"001": [
|
|
1592
1595
|
"H",
|
|
1593
1596
|
"h"
|
|
@@ -3002,15 +3005,15 @@ var ae = {
|
|
|
3002
3005
|
"h"
|
|
3003
3006
|
]
|
|
3004
3007
|
};
|
|
3005
|
-
function
|
|
3008
|
+
function Jn(e, t) {
|
|
3006
3009
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3007
3010
|
var i = e.charAt(n);
|
|
3008
3011
|
if (i === "j") {
|
|
3009
3012
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3010
3013
|
o++, n++;
|
|
3011
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
3014
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Qn(t);
|
|
3012
3015
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3013
|
-
r +=
|
|
3016
|
+
r += l;
|
|
3014
3017
|
for (; s-- > 0; )
|
|
3015
3018
|
r = u + r;
|
|
3016
3019
|
} else
|
|
@@ -3018,7 +3021,7 @@ function In(e, t) {
|
|
|
3018
3021
|
}
|
|
3019
3022
|
return r;
|
|
3020
3023
|
}
|
|
3021
|
-
function
|
|
3024
|
+
function Qn(e) {
|
|
3022
3025
|
var t = e.hourCycle;
|
|
3023
3026
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3024
3027
|
e.hourCycles && // @ts-ignore
|
|
@@ -3037,23 +3040,23 @@ function Nn(e) {
|
|
|
3037
3040
|
}
|
|
3038
3041
|
var r = e.language, n;
|
|
3039
3042
|
r !== "root" && (n = e.maximize().region);
|
|
3040
|
-
var i =
|
|
3043
|
+
var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
|
|
3041
3044
|
return i[0];
|
|
3042
3045
|
}
|
|
3043
|
-
var
|
|
3044
|
-
function
|
|
3046
|
+
var Ne, Yn = new RegExp("^".concat(rr.source, "*")), qn = new RegExp("".concat(rr.source, "*$"));
|
|
3047
|
+
function y(e, t) {
|
|
3045
3048
|
return { start: e, end: t };
|
|
3046
3049
|
}
|
|
3047
|
-
var
|
|
3050
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
|
|
3048
3051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3049
|
-
},
|
|
3052
|
+
}, Ze = !0;
|
|
3050
3053
|
try {
|
|
3051
|
-
var
|
|
3052
|
-
|
|
3054
|
+
var ai = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
|
+
Ze = ((Ne = ai.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
3053
3056
|
} catch (e) {
|
|
3054
|
-
|
|
3057
|
+
Ze = !1;
|
|
3055
3058
|
}
|
|
3056
|
-
var
|
|
3059
|
+
var St = Kn ? (
|
|
3057
3060
|
// Native
|
|
3058
3061
|
function(t, r, n) {
|
|
3059
3062
|
return t.startsWith(r, n);
|
|
@@ -3063,7 +3066,7 @@ var bt = Mn ? (
|
|
|
3063
3066
|
function(t, r, n) {
|
|
3064
3067
|
return t.slice(n, n + r.length) === r;
|
|
3065
3068
|
}
|
|
3066
|
-
),
|
|
3069
|
+
), Je = ei ? String.fromCodePoint : (
|
|
3067
3070
|
// IE11
|
|
3068
3071
|
function() {
|
|
3069
3072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3075,9 +3078,9 @@ var bt = Mn ? (
|
|
|
3075
3078
|
}
|
|
3076
3079
|
return n;
|
|
3077
3080
|
}
|
|
3078
|
-
),
|
|
3081
|
+
), wt = (
|
|
3079
3082
|
// native
|
|
3080
|
-
|
|
3083
|
+
ti ? Object.fromEntries : (
|
|
3081
3084
|
// Ponyfill
|
|
3082
3085
|
function(t) {
|
|
3083
3086
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3087,7 +3090,7 @@ var bt = Mn ? (
|
|
|
3087
3090
|
return r;
|
|
3088
3091
|
}
|
|
3089
3092
|
)
|
|
3090
|
-
),
|
|
3093
|
+
), sr = ri ? (
|
|
3091
3094
|
// Native
|
|
3092
3095
|
function(t, r) {
|
|
3093
3096
|
return t.codePointAt(r);
|
|
@@ -3101,7 +3104,7 @@ var bt = Mn ? (
|
|
|
3101
3104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3102
3105
|
}
|
|
3103
3106
|
}
|
|
3104
|
-
),
|
|
3107
|
+
), ui = ni ? (
|
|
3105
3108
|
// Native
|
|
3106
3109
|
function(t) {
|
|
3107
3110
|
return t.trimStart();
|
|
@@ -3109,9 +3112,9 @@ var bt = Mn ? (
|
|
|
3109
3112
|
) : (
|
|
3110
3113
|
// Ponyfill
|
|
3111
3114
|
function(t) {
|
|
3112
|
-
return t.replace(
|
|
3115
|
+
return t.replace(Yn, "");
|
|
3113
3116
|
}
|
|
3114
|
-
),
|
|
3117
|
+
), li = ii ? (
|
|
3115
3118
|
// Native
|
|
3116
3119
|
function(t) {
|
|
3117
3120
|
return t.trimEnd();
|
|
@@ -3119,32 +3122,32 @@ var bt = Mn ? (
|
|
|
3119
3122
|
) : (
|
|
3120
3123
|
// Ponyfill
|
|
3121
3124
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3125
|
+
return t.replace(qn, "");
|
|
3123
3126
|
}
|
|
3124
3127
|
);
|
|
3125
|
-
function
|
|
3128
|
+
function ar(e, t) {
|
|
3126
3129
|
return new RegExp(e, t);
|
|
3127
3130
|
}
|
|
3128
|
-
var
|
|
3129
|
-
if (
|
|
3130
|
-
var
|
|
3131
|
-
|
|
3131
|
+
var Qe;
|
|
3132
|
+
if (Ze) {
|
|
3133
|
+
var Ht = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3134
|
+
Qe = function(t, r) {
|
|
3132
3135
|
var n;
|
|
3133
|
-
|
|
3134
|
-
var i =
|
|
3136
|
+
Ht.lastIndex = r;
|
|
3137
|
+
var i = Ht.exec(t);
|
|
3135
3138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3136
3139
|
};
|
|
3137
3140
|
} else
|
|
3138
|
-
|
|
3141
|
+
Qe = function(t, r) {
|
|
3139
3142
|
for (var n = []; ; ) {
|
|
3140
|
-
var i =
|
|
3141
|
-
if (i === void 0 ||
|
|
3143
|
+
var i = sr(t, r);
|
|
3144
|
+
if (i === void 0 || ur(i) || mi(i))
|
|
3142
3145
|
break;
|
|
3143
3146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3144
3147
|
}
|
|
3145
|
-
return
|
|
3148
|
+
return Je.apply(void 0, n);
|
|
3146
3149
|
};
|
|
3147
|
-
var
|
|
3150
|
+
var hi = (
|
|
3148
3151
|
/** @class */
|
|
3149
3152
|
function() {
|
|
3150
3153
|
function e(t, r) {
|
|
@@ -3168,14 +3171,14 @@ var Wn = (
|
|
|
3168
3171
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3169
3172
|
var a = this.clonePosition();
|
|
3170
3173
|
this.bump(), i.push({
|
|
3171
|
-
type:
|
|
3172
|
-
location:
|
|
3174
|
+
type: E.pound,
|
|
3175
|
+
location: y(a, this.clonePosition())
|
|
3173
3176
|
});
|
|
3174
3177
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3175
3178
|
if (n)
|
|
3176
3179
|
break;
|
|
3177
|
-
return this.error(
|
|
3178
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3180
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3181
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3179
3182
|
var s = this.parseTag(t, r);
|
|
3180
3183
|
if (s.err)
|
|
3181
3184
|
return s;
|
|
@@ -3196,9 +3199,9 @@ var Wn = (
|
|
|
3196
3199
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3197
3200
|
return {
|
|
3198
3201
|
val: {
|
|
3199
|
-
type:
|
|
3202
|
+
type: E.literal,
|
|
3200
3203
|
value: "<".concat(i, "/>"),
|
|
3201
|
-
location:
|
|
3204
|
+
location: y(n, this.clonePosition())
|
|
3202
3205
|
},
|
|
3203
3206
|
err: null
|
|
3204
3207
|
};
|
|
@@ -3208,25 +3211,25 @@ var Wn = (
|
|
|
3208
3211
|
return o;
|
|
3209
3212
|
var s = o.val, a = this.clonePosition();
|
|
3210
3213
|
if (this.bumpIf("</")) {
|
|
3211
|
-
if (this.isEOF() || !
|
|
3212
|
-
return this.error(
|
|
3213
|
-
var
|
|
3214
|
-
return i !== u ? this.error(
|
|
3214
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3215
|
+
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3216
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3217
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3215
3218
|
val: {
|
|
3216
|
-
type:
|
|
3219
|
+
type: E.tag,
|
|
3217
3220
|
value: i,
|
|
3218
3221
|
children: s,
|
|
3219
|
-
location:
|
|
3222
|
+
location: y(n, this.clonePosition())
|
|
3220
3223
|
},
|
|
3221
3224
|
err: null
|
|
3222
|
-
} : this.error(
|
|
3225
|
+
} : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
|
|
3223
3226
|
} else
|
|
3224
|
-
return this.error(
|
|
3227
|
+
return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3225
3228
|
} else
|
|
3226
|
-
return this.error(
|
|
3229
|
+
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3227
3230
|
}, e.prototype.parseTagName = function() {
|
|
3228
3231
|
var t = this.offset();
|
|
3229
|
-
for (this.bump(); !this.isEOF() &&
|
|
3232
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
3230
3233
|
this.bump();
|
|
3231
3234
|
return this.message.slice(t, this.offset());
|
|
3232
3235
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3248,14 +3251,14 @@ var Wn = (
|
|
|
3248
3251
|
}
|
|
3249
3252
|
break;
|
|
3250
3253
|
}
|
|
3251
|
-
var
|
|
3254
|
+
var l = y(n, this.clonePosition());
|
|
3252
3255
|
return {
|
|
3253
|
-
val: { type:
|
|
3256
|
+
val: { type: E.literal, value: i, location: l },
|
|
3254
3257
|
err: null
|
|
3255
3258
|
};
|
|
3256
3259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3257
3260
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3258
|
-
!
|
|
3261
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3259
3262
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3260
3263
|
if (this.isEOF() || this.char() !== 39)
|
|
3261
3264
|
return null;
|
|
@@ -3289,49 +3292,49 @@ var Wn = (
|
|
|
3289
3292
|
r.push(n);
|
|
3290
3293
|
this.bump();
|
|
3291
3294
|
}
|
|
3292
|
-
return
|
|
3295
|
+
return Je.apply(void 0, r);
|
|
3293
3296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3294
3297
|
if (this.isEOF())
|
|
3295
3298
|
return null;
|
|
3296
3299
|
var n = this.char();
|
|
3297
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3300
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
|
3298
3301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3299
3302
|
var n = this.clonePosition();
|
|
3300
3303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3301
|
-
return this.error(
|
|
3304
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3302
3305
|
if (this.char() === 125)
|
|
3303
|
-
return this.bump(), this.error(
|
|
3306
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3304
3307
|
var i = this.parseIdentifierIfPossible().value;
|
|
3305
3308
|
if (!i)
|
|
3306
|
-
return this.error(
|
|
3309
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3307
3310
|
if (this.bumpSpace(), this.isEOF())
|
|
3308
|
-
return this.error(
|
|
3311
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3309
3312
|
switch (this.char()) {
|
|
3310
3313
|
case 125:
|
|
3311
3314
|
return this.bump(), {
|
|
3312
3315
|
val: {
|
|
3313
|
-
type:
|
|
3316
|
+
type: E.argument,
|
|
3314
3317
|
// value does not include the opening and closing braces.
|
|
3315
3318
|
value: i,
|
|
3316
|
-
location:
|
|
3319
|
+
location: y(n, this.clonePosition())
|
|
3317
3320
|
},
|
|
3318
3321
|
err: null
|
|
3319
3322
|
};
|
|
3320
3323
|
case 44:
|
|
3321
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3324
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3322
3325
|
default:
|
|
3323
|
-
return this.error(
|
|
3326
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3324
3327
|
}
|
|
3325
3328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3326
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3329
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3327
3330
|
this.bumpTo(i);
|
|
3328
|
-
var o = this.clonePosition(), s =
|
|
3331
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
3329
3332
|
return { value: n, location: s };
|
|
3330
3333
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3331
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3334
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3332
3335
|
switch (a) {
|
|
3333
3336
|
case "":
|
|
3334
|
-
return this.error(
|
|
3337
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3335
3338
|
case "number":
|
|
3336
3339
|
case "date":
|
|
3337
3340
|
case "time": {
|
|
@@ -3339,47 +3342,47 @@ var Wn = (
|
|
|
3339
3342
|
var u = null;
|
|
3340
3343
|
if (this.bumpIf(",")) {
|
|
3341
3344
|
this.bumpSpace();
|
|
3342
|
-
var
|
|
3345
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3343
3346
|
if (c.err)
|
|
3344
3347
|
return c;
|
|
3345
|
-
var f =
|
|
3348
|
+
var f = li(c.val);
|
|
3346
3349
|
if (f.length === 0)
|
|
3347
|
-
return this.error(
|
|
3348
|
-
var p =
|
|
3350
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3351
|
+
var p = y(h, this.clonePosition());
|
|
3349
3352
|
u = { style: f, styleLocation: p };
|
|
3350
3353
|
}
|
|
3351
|
-
var
|
|
3352
|
-
if (
|
|
3353
|
-
return
|
|
3354
|
-
var m =
|
|
3355
|
-
if (u &&
|
|
3356
|
-
var
|
|
3354
|
+
var d = this.tryParseArgumentClose(i);
|
|
3355
|
+
if (d.err)
|
|
3356
|
+
return d;
|
|
3357
|
+
var m = y(i, this.clonePosition());
|
|
3358
|
+
if (u && St(u == null ? void 0 : u.style, "::", 0)) {
|
|
3359
|
+
var v = ui(u.style.slice(2));
|
|
3357
3360
|
if (a === "number") {
|
|
3358
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3361
|
+
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3359
3362
|
return c.err ? c : {
|
|
3360
|
-
val: { type:
|
|
3363
|
+
val: { type: E.number, value: n, location: m, style: c.val },
|
|
3361
3364
|
err: null
|
|
3362
3365
|
};
|
|
3363
3366
|
} else {
|
|
3364
|
-
if (
|
|
3365
|
-
return this.error(
|
|
3366
|
-
var
|
|
3367
|
-
this.locale && (
|
|
3367
|
+
if (v.length === 0)
|
|
3368
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
|
|
3369
|
+
var A = v;
|
|
3370
|
+
this.locale && (A = Jn(v, this.locale));
|
|
3368
3371
|
var f = {
|
|
3369
|
-
type:
|
|
3370
|
-
pattern:
|
|
3372
|
+
type: q.dateTime,
|
|
3373
|
+
pattern: A,
|
|
3371
3374
|
location: u.styleLocation,
|
|
3372
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3373
|
-
},
|
|
3375
|
+
parsedOptions: this.shouldParseSkeletons ? kn(A) : {}
|
|
3376
|
+
}, L = a === "date" ? E.date : E.time;
|
|
3374
3377
|
return {
|
|
3375
|
-
val: { type:
|
|
3378
|
+
val: { type: L, value: n, location: m, style: f },
|
|
3376
3379
|
err: null
|
|
3377
3380
|
};
|
|
3378
3381
|
}
|
|
3379
3382
|
}
|
|
3380
3383
|
return {
|
|
3381
3384
|
val: {
|
|
3382
|
-
type: a === "number" ?
|
|
3385
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3383
3386
|
value: n,
|
|
3384
3387
|
location: m,
|
|
3385
3388
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3390,52 +3393,52 @@ var Wn = (
|
|
|
3390
3393
|
case "plural":
|
|
3391
3394
|
case "selectordinal":
|
|
3392
3395
|
case "select": {
|
|
3393
|
-
var
|
|
3396
|
+
var H = this.clonePosition();
|
|
3394
3397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3395
|
-
return this.error(
|
|
3398
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(H, ve({}, H)));
|
|
3396
3399
|
this.bumpSpace();
|
|
3397
|
-
var
|
|
3398
|
-
if (a !== "select" &&
|
|
3400
|
+
var F = this.parseIdentifierIfPossible(), M = 0;
|
|
3401
|
+
if (a !== "select" && F.value === "offset") {
|
|
3399
3402
|
if (!this.bumpIf(":"))
|
|
3400
|
-
return this.error(
|
|
3403
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3401
3404
|
this.bumpSpace();
|
|
3402
|
-
var c = this.tryParseDecimalInteger(
|
|
3405
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3403
3406
|
if (c.err)
|
|
3404
3407
|
return c;
|
|
3405
|
-
this.bumpSpace(),
|
|
3408
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), M = c.val;
|
|
3406
3409
|
}
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3409
|
-
return
|
|
3410
|
-
var
|
|
3411
|
-
if (
|
|
3412
|
-
return
|
|
3413
|
-
var
|
|
3410
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
|
3411
|
+
if (C.err)
|
|
3412
|
+
return C;
|
|
3413
|
+
var d = this.tryParseArgumentClose(i);
|
|
3414
|
+
if (d.err)
|
|
3415
|
+
return d;
|
|
3416
|
+
var fe = y(i, this.clonePosition());
|
|
3414
3417
|
return a === "select" ? {
|
|
3415
3418
|
val: {
|
|
3416
|
-
type:
|
|
3419
|
+
type: E.select,
|
|
3417
3420
|
value: n,
|
|
3418
|
-
options:
|
|
3419
|
-
location:
|
|
3421
|
+
options: wt(C.val),
|
|
3422
|
+
location: fe
|
|
3420
3423
|
},
|
|
3421
3424
|
err: null
|
|
3422
3425
|
} : {
|
|
3423
3426
|
val: {
|
|
3424
|
-
type:
|
|
3427
|
+
type: E.plural,
|
|
3425
3428
|
value: n,
|
|
3426
|
-
options:
|
|
3427
|
-
offset:
|
|
3429
|
+
options: wt(C.val),
|
|
3430
|
+
offset: M,
|
|
3428
3431
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3429
|
-
location:
|
|
3432
|
+
location: fe
|
|
3430
3433
|
},
|
|
3431
3434
|
err: null
|
|
3432
3435
|
};
|
|
3433
3436
|
}
|
|
3434
3437
|
default:
|
|
3435
|
-
return this.error(
|
|
3438
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3436
3439
|
}
|
|
3437
3440
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3438
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3441
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3439
3442
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3440
3443
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3441
3444
|
var n = this.char();
|
|
@@ -3444,7 +3447,7 @@ var Wn = (
|
|
|
3444
3447
|
this.bump();
|
|
3445
3448
|
var i = this.clonePosition();
|
|
3446
3449
|
if (!this.bumpUntil("'"))
|
|
3447
|
-
return this.error(
|
|
3450
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3448
3451
|
this.bump();
|
|
3449
3452
|
break;
|
|
3450
3453
|
}
|
|
@@ -3474,52 +3477,52 @@ var Wn = (
|
|
|
3474
3477
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3475
3478
|
var n = [];
|
|
3476
3479
|
try {
|
|
3477
|
-
n =
|
|
3480
|
+
n = Vn(t);
|
|
3478
3481
|
} catch (i) {
|
|
3479
|
-
return this.error(
|
|
3482
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3480
3483
|
}
|
|
3481
3484
|
return {
|
|
3482
3485
|
val: {
|
|
3483
|
-
type:
|
|
3486
|
+
type: q.number,
|
|
3484
3487
|
tokens: n,
|
|
3485
3488
|
location: r,
|
|
3486
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3489
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
|
3487
3490
|
},
|
|
3488
3491
|
err: null
|
|
3489
3492
|
};
|
|
3490
3493
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3491
|
-
for (var o, s = !1, a = [],
|
|
3494
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3492
3495
|
if (u.length === 0) {
|
|
3493
3496
|
var c = this.clonePosition();
|
|
3494
3497
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3495
|
-
var f = this.tryParseDecimalInteger(
|
|
3498
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3496
3499
|
if (f.err)
|
|
3497
3500
|
return f;
|
|
3498
|
-
|
|
3501
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3499
3502
|
} else
|
|
3500
3503
|
break;
|
|
3501
3504
|
}
|
|
3502
|
-
if (
|
|
3503
|
-
return this.error(r === "select" ?
|
|
3505
|
+
if (l.has(u))
|
|
3506
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3504
3507
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3505
3508
|
var p = this.clonePosition();
|
|
3506
3509
|
if (!this.bumpIf("{"))
|
|
3507
|
-
return this.error(r === "select" ?
|
|
3508
|
-
var
|
|
3509
|
-
if (
|
|
3510
|
-
return
|
|
3510
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3511
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3512
|
+
if (d.err)
|
|
3513
|
+
return d;
|
|
3511
3514
|
var m = this.tryParseArgumentClose(p);
|
|
3512
3515
|
if (m.err)
|
|
3513
3516
|
return m;
|
|
3514
3517
|
a.push([
|
|
3515
3518
|
u,
|
|
3516
3519
|
{
|
|
3517
|
-
value:
|
|
3518
|
-
location:
|
|
3520
|
+
value: d.val,
|
|
3521
|
+
location: y(p, this.clonePosition())
|
|
3519
3522
|
}
|
|
3520
|
-
]),
|
|
3523
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3521
3524
|
}
|
|
3522
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3525
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3523
3526
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3524
3527
|
var n = 1, i = this.clonePosition();
|
|
3525
3528
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3530,8 +3533,8 @@ var Wn = (
|
|
|
3530
3533
|
else
|
|
3531
3534
|
break;
|
|
3532
3535
|
}
|
|
3533
|
-
var
|
|
3534
|
-
return o ? (s *= n,
|
|
3536
|
+
var l = y(i, this.clonePosition());
|
|
3537
|
+
return o ? (s *= n, si(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3535
3538
|
}, e.prototype.offset = function() {
|
|
3536
3539
|
return this.position.offset;
|
|
3537
3540
|
}, e.prototype.isEOF = function() {
|
|
@@ -3546,7 +3549,7 @@ var Wn = (
|
|
|
3546
3549
|
var t = this.position.offset;
|
|
3547
3550
|
if (t >= this.message.length)
|
|
3548
3551
|
throw Error("out of bound");
|
|
3549
|
-
var r =
|
|
3552
|
+
var r = sr(this.message, t);
|
|
3550
3553
|
if (r === void 0)
|
|
3551
3554
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3552
3555
|
return r;
|
|
@@ -3565,7 +3568,7 @@ var Wn = (
|
|
|
3565
3568
|
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);
|
|
3566
3569
|
}
|
|
3567
3570
|
}, e.prototype.bumpIf = function(t) {
|
|
3568
|
-
if (
|
|
3571
|
+
if (St(this.message, t, this.offset())) {
|
|
3569
3572
|
for (var r = 0; r < t.length; r++)
|
|
3570
3573
|
this.bump();
|
|
3571
3574
|
return !0;
|
|
@@ -3587,7 +3590,7 @@ var Wn = (
|
|
|
3587
3590
|
break;
|
|
3588
3591
|
}
|
|
3589
3592
|
}, e.prototype.bumpSpace = function() {
|
|
3590
|
-
for (; !this.isEOF() &&
|
|
3593
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3591
3594
|
this.bump();
|
|
3592
3595
|
}, e.prototype.peek = function() {
|
|
3593
3596
|
if (this.isEOF())
|
|
@@ -3597,47 +3600,47 @@ var Wn = (
|
|
|
3597
3600
|
}, e;
|
|
3598
3601
|
}()
|
|
3599
3602
|
);
|
|
3600
|
-
function
|
|
3603
|
+
function Ye(e) {
|
|
3601
3604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3602
3605
|
}
|
|
3603
|
-
function
|
|
3604
|
-
return
|
|
3606
|
+
function ci(e) {
|
|
3607
|
+
return Ye(e) || e === 47;
|
|
3605
3608
|
}
|
|
3606
|
-
function
|
|
3609
|
+
function fi(e) {
|
|
3607
3610
|
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;
|
|
3608
3611
|
}
|
|
3609
|
-
function
|
|
3612
|
+
function ur(e) {
|
|
3610
3613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3611
3614
|
}
|
|
3612
|
-
function
|
|
3615
|
+
function mi(e) {
|
|
3613
3616
|
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;
|
|
3614
3617
|
}
|
|
3615
|
-
function
|
|
3618
|
+
function qe(e) {
|
|
3616
3619
|
e.forEach(function(t) {
|
|
3617
|
-
if (delete t.location,
|
|
3620
|
+
if (delete t.location, qt(t) || Kt(t))
|
|
3618
3621
|
for (var r in t.options)
|
|
3619
|
-
delete t.options[r].location,
|
|
3622
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
3620
3623
|
else
|
|
3621
|
-
|
|
3624
|
+
Jt(t) && tr(t.style) || (Qt(t) || Yt(t)) && We(t.style) ? delete t.style.location : er(t) && qe(t.children);
|
|
3622
3625
|
});
|
|
3623
3626
|
}
|
|
3624
|
-
function
|
|
3625
|
-
t === void 0 && (t = {}), t =
|
|
3626
|
-
var r = new
|
|
3627
|
+
function pi(e, t) {
|
|
3628
|
+
t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3629
|
+
var r = new hi(e, t).parse();
|
|
3627
3630
|
if (r.err) {
|
|
3628
|
-
var n = SyntaxError(
|
|
3631
|
+
var n = SyntaxError(g[r.err.kind]);
|
|
3629
3632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3630
3633
|
}
|
|
3631
|
-
return t != null && t.captureLocation ||
|
|
3634
|
+
return t != null && t.captureLocation || qe(r.val), r.val;
|
|
3632
3635
|
}
|
|
3633
|
-
var
|
|
3636
|
+
var K;
|
|
3634
3637
|
(function(e) {
|
|
3635
3638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3636
|
-
})(
|
|
3637
|
-
var
|
|
3639
|
+
})(K || (K = {}));
|
|
3640
|
+
var we = (
|
|
3638
3641
|
/** @class */
|
|
3639
3642
|
function(e) {
|
|
3640
|
-
|
|
3643
|
+
Se(t, e);
|
|
3641
3644
|
function t(r, n, i) {
|
|
3642
3645
|
var o = e.call(this, r) || this;
|
|
3643
3646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3646,155 +3649,155 @@ var ve = (
|
|
|
3646
3649
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3647
3650
|
}, t;
|
|
3648
3651
|
}(Error)
|
|
3649
|
-
),
|
|
3652
|
+
), Tt = (
|
|
3650
3653
|
/** @class */
|
|
3651
3654
|
function(e) {
|
|
3652
|
-
|
|
3655
|
+
Se(t, e);
|
|
3653
3656
|
function t(r, n, i, o) {
|
|
3654
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3657
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
|
|
3655
3658
|
}
|
|
3656
3659
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3660
|
+
}(we)
|
|
3661
|
+
), di = (
|
|
3659
3662
|
/** @class */
|
|
3660
3663
|
function(e) {
|
|
3661
|
-
|
|
3664
|
+
Se(t, e);
|
|
3662
3665
|
function t(r, n, i) {
|
|
3663
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3666
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
|
3664
3667
|
}
|
|
3665
3668
|
return t;
|
|
3666
|
-
}(
|
|
3667
|
-
),
|
|
3669
|
+
}(we)
|
|
3670
|
+
), bi = (
|
|
3668
3671
|
/** @class */
|
|
3669
3672
|
function(e) {
|
|
3670
|
-
|
|
3673
|
+
Se(t, e);
|
|
3671
3674
|
function t(r, n) {
|
|
3672
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3675
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
|
3673
3676
|
}
|
|
3674
3677
|
return t;
|
|
3675
|
-
}(
|
|
3676
|
-
),
|
|
3678
|
+
}(we)
|
|
3679
|
+
), T;
|
|
3677
3680
|
(function(e) {
|
|
3678
3681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3679
|
-
})(
|
|
3680
|
-
function
|
|
3682
|
+
})(T || (T = {}));
|
|
3683
|
+
function gi(e) {
|
|
3681
3684
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3682
3685
|
var n = t[t.length - 1];
|
|
3683
|
-
return !n || n.type !==
|
|
3686
|
+
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3684
3687
|
}, []);
|
|
3685
3688
|
}
|
|
3686
|
-
function
|
|
3689
|
+
function yi(e) {
|
|
3687
3690
|
return typeof e == "function";
|
|
3688
3691
|
}
|
|
3689
|
-
function
|
|
3690
|
-
if (e.length === 1 &&
|
|
3692
|
+
function ge(e, t, r, n, i, o, s) {
|
|
3693
|
+
if (e.length === 1 && _t(e[0]))
|
|
3691
3694
|
return [
|
|
3692
3695
|
{
|
|
3693
|
-
type:
|
|
3696
|
+
type: T.literal,
|
|
3694
3697
|
value: e[0].value
|
|
3695
3698
|
}
|
|
3696
3699
|
];
|
|
3697
|
-
for (var a = [],
|
|
3698
|
-
var
|
|
3699
|
-
if (
|
|
3700
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3701
|
+
var h = u[l];
|
|
3702
|
+
if (_t(h)) {
|
|
3700
3703
|
a.push({
|
|
3701
|
-
type:
|
|
3702
|
-
value:
|
|
3704
|
+
type: T.literal,
|
|
3705
|
+
value: h.value
|
|
3703
3706
|
});
|
|
3704
3707
|
continue;
|
|
3705
3708
|
}
|
|
3706
|
-
if (
|
|
3709
|
+
if (Fn(h)) {
|
|
3707
3710
|
typeof o == "number" && a.push({
|
|
3708
|
-
type:
|
|
3711
|
+
type: T.literal,
|
|
3709
3712
|
value: r.getNumberFormat(t).format(o)
|
|
3710
3713
|
});
|
|
3711
3714
|
continue;
|
|
3712
3715
|
}
|
|
3713
|
-
var c =
|
|
3716
|
+
var c = h.value;
|
|
3714
3717
|
if (!(i && c in i))
|
|
3715
|
-
throw new
|
|
3718
|
+
throw new bi(c, s);
|
|
3716
3719
|
var f = i[c];
|
|
3717
|
-
if (
|
|
3720
|
+
if (Dn(h)) {
|
|
3718
3721
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3719
|
-
type: typeof f == "string" ?
|
|
3722
|
+
type: typeof f == "string" ? T.literal : T.object,
|
|
3720
3723
|
value: f
|
|
3721
3724
|
});
|
|
3722
3725
|
continue;
|
|
3723
3726
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var p = typeof
|
|
3727
|
+
if (Qt(h)) {
|
|
3728
|
+
var p = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3726
3729
|
a.push({
|
|
3727
|
-
type:
|
|
3730
|
+
type: T.literal,
|
|
3728
3731
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3729
3732
|
});
|
|
3730
3733
|
continue;
|
|
3731
3734
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var p = typeof
|
|
3735
|
+
if (Yt(h)) {
|
|
3736
|
+
var p = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3734
3737
|
a.push({
|
|
3735
|
-
type:
|
|
3738
|
+
type: T.literal,
|
|
3736
3739
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3737
3740
|
});
|
|
3738
3741
|
continue;
|
|
3739
3742
|
}
|
|
3740
|
-
if (
|
|
3741
|
-
var p = typeof
|
|
3743
|
+
if (Jt(h)) {
|
|
3744
|
+
var p = typeof h.style == "string" ? n.number[h.style] : tr(h.style) ? h.style.parsedOptions : void 0;
|
|
3742
3745
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3743
|
-
type:
|
|
3746
|
+
type: T.literal,
|
|
3744
3747
|
value: r.getNumberFormat(t, p).format(f)
|
|
3745
3748
|
});
|
|
3746
3749
|
continue;
|
|
3747
3750
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
var
|
|
3750
|
-
if (!
|
|
3751
|
-
throw new
|
|
3752
|
-
var
|
|
3753
|
-
return
|
|
3751
|
+
if (er(h)) {
|
|
3752
|
+
var d = h.children, m = h.value, v = i[m];
|
|
3753
|
+
if (!yi(v))
|
|
3754
|
+
throw new di(m, "function", s);
|
|
3755
|
+
var A = ge(d, t, r, n, i, o), L = v(A.map(function(M) {
|
|
3756
|
+
return M.value;
|
|
3754
3757
|
}));
|
|
3755
|
-
Array.isArray(
|
|
3758
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(M) {
|
|
3756
3759
|
return {
|
|
3757
|
-
type: typeof
|
|
3758
|
-
value:
|
|
3760
|
+
type: typeof M == "string" ? T.literal : T.object,
|
|
3761
|
+
value: M
|
|
3759
3762
|
};
|
|
3760
3763
|
}));
|
|
3761
3764
|
}
|
|
3762
|
-
if (
|
|
3763
|
-
var
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
a.push.apply(a,
|
|
3765
|
+
if (qt(h)) {
|
|
3766
|
+
var H = h.options[f] || h.options.other;
|
|
3767
|
+
if (!H)
|
|
3768
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3769
|
+
a.push.apply(a, ge(H.value, t, r, n, i));
|
|
3767
3770
|
continue;
|
|
3768
3771
|
}
|
|
3769
|
-
if (
|
|
3770
|
-
var
|
|
3771
|
-
if (!
|
|
3772
|
+
if (Kt(h)) {
|
|
3773
|
+
var H = h.options["=".concat(f)];
|
|
3774
|
+
if (!H) {
|
|
3772
3775
|
if (!Intl.PluralRules)
|
|
3773
|
-
throw new
|
|
3776
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3774
3777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3775
|
-
`,
|
|
3776
|
-
var
|
|
3777
|
-
|
|
3778
|
+
`, K.MISSING_INTL_API, s);
|
|
3779
|
+
var F = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3780
|
+
H = h.options[F] || h.options.other;
|
|
3778
3781
|
}
|
|
3779
|
-
if (!
|
|
3780
|
-
throw new
|
|
3781
|
-
a.push.apply(a,
|
|
3782
|
+
if (!H)
|
|
3783
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3784
|
+
a.push.apply(a, ge(H.value, t, r, n, i, f - (h.offset || 0)));
|
|
3782
3785
|
continue;
|
|
3783
3786
|
}
|
|
3784
3787
|
}
|
|
3785
|
-
return
|
|
3788
|
+
return gi(a);
|
|
3786
3789
|
}
|
|
3787
|
-
function
|
|
3788
|
-
return t ?
|
|
3789
|
-
return r[n] =
|
|
3790
|
+
function vi(e, t) {
|
|
3791
|
+
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3792
|
+
return r[n] = N(N({}, e[n]), t[n] || {}), r;
|
|
3790
3793
|
}, {})) : e;
|
|
3791
3794
|
}
|
|
3792
|
-
function
|
|
3795
|
+
function _i(e, t) {
|
|
3793
3796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3794
|
-
return r[n] =
|
|
3795
|
-
},
|
|
3797
|
+
return r[n] = vi(e[n], t[n]), r;
|
|
3798
|
+
}, N({}, e)) : e;
|
|
3796
3799
|
}
|
|
3797
|
-
function
|
|
3800
|
+
function Me(e) {
|
|
3798
3801
|
return {
|
|
3799
3802
|
create: function() {
|
|
3800
3803
|
return {
|
|
@@ -3808,39 +3811,39 @@ function Ae(e) {
|
|
|
3808
3811
|
}
|
|
3809
3812
|
};
|
|
3810
3813
|
}
|
|
3811
|
-
function
|
|
3814
|
+
function Ei(e) {
|
|
3812
3815
|
return e === void 0 && (e = {
|
|
3813
3816
|
number: {},
|
|
3814
3817
|
dateTime: {},
|
|
3815
3818
|
pluralRules: {}
|
|
3816
3819
|
}), {
|
|
3817
|
-
getNumberFormat:
|
|
3820
|
+
getNumberFormat: Ce(function() {
|
|
3818
3821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3819
3822
|
r[n] = arguments[n];
|
|
3820
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3821
3824
|
}, {
|
|
3822
|
-
cache:
|
|
3823
|
-
strategy:
|
|
3825
|
+
cache: Me(e.number),
|
|
3826
|
+
strategy: Le.variadic
|
|
3824
3827
|
}),
|
|
3825
|
-
getDateTimeFormat:
|
|
3828
|
+
getDateTimeFormat: Ce(function() {
|
|
3826
3829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3827
3830
|
r[n] = arguments[n];
|
|
3828
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3829
3832
|
}, {
|
|
3830
|
-
cache:
|
|
3831
|
-
strategy:
|
|
3833
|
+
cache: Me(e.dateTime),
|
|
3834
|
+
strategy: Le.variadic
|
|
3832
3835
|
}),
|
|
3833
|
-
getPluralRules:
|
|
3836
|
+
getPluralRules: Ce(function() {
|
|
3834
3837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3835
3838
|
r[n] = arguments[n];
|
|
3836
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3837
3840
|
}, {
|
|
3838
|
-
cache:
|
|
3839
|
-
strategy:
|
|
3841
|
+
cache: Me(e.pluralRules),
|
|
3842
|
+
strategy: Le.variadic
|
|
3840
3843
|
})
|
|
3841
3844
|
};
|
|
3842
3845
|
}
|
|
3843
|
-
var
|
|
3846
|
+
var xi = (
|
|
3844
3847
|
/** @class */
|
|
3845
3848
|
function() {
|
|
3846
3849
|
function e(t, r, n, i) {
|
|
@@ -3850,20 +3853,20 @@ var ii = (
|
|
|
3850
3853
|
number: {},
|
|
3851
3854
|
dateTime: {},
|
|
3852
3855
|
pluralRules: {}
|
|
3853
|
-
}, this.format = function(
|
|
3854
|
-
var u = o.formatToParts(
|
|
3856
|
+
}, this.format = function(l) {
|
|
3857
|
+
var u = o.formatToParts(l);
|
|
3855
3858
|
if (u.length === 1)
|
|
3856
3859
|
return u[0].value;
|
|
3857
|
-
var
|
|
3858
|
-
return !c.length || f.type !==
|
|
3860
|
+
var h = u.reduce(function(c, f) {
|
|
3861
|
+
return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3859
3862
|
}, []);
|
|
3860
|
-
return
|
|
3861
|
-
}, this.formatToParts = function(
|
|
3862
|
-
return
|
|
3863
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3864
|
+
}, this.formatToParts = function(l) {
|
|
3865
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3863
3866
|
}, this.resolvedOptions = function() {
|
|
3864
|
-
var
|
|
3867
|
+
var l;
|
|
3865
3868
|
return {
|
|
3866
|
-
locale: ((
|
|
3869
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3867
3870
|
};
|
|
3868
3871
|
}, this.getAst = function() {
|
|
3869
3872
|
return o.ast;
|
|
@@ -3872,13 +3875,13 @@ var ii = (
|
|
|
3872
3875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3873
3876
|
var s = i || {};
|
|
3874
3877
|
s.formatters;
|
|
3875
|
-
var a =
|
|
3876
|
-
this.ast = e.__parse(t,
|
|
3878
|
+
var a = In(s, ["formatters"]);
|
|
3879
|
+
this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
|
|
3877
3880
|
} else
|
|
3878
3881
|
this.ast = t;
|
|
3879
3882
|
if (!Array.isArray(this.ast))
|
|
3880
3883
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3881
|
-
this.formats =
|
|
3884
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3882
3885
|
}
|
|
3883
3886
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3884
3887
|
get: function() {
|
|
@@ -3891,7 +3894,7 @@ var ii = (
|
|
|
3891
3894
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3892
3895
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3893
3896
|
}
|
|
3894
|
-
}, e.__parse =
|
|
3897
|
+
}, e.__parse = pi, e.formats = {
|
|
3895
3898
|
number: {
|
|
3896
3899
|
integer: {
|
|
3897
3900
|
maximumFractionDigits: 0
|
|
@@ -3952,7 +3955,7 @@ var ii = (
|
|
|
3952
3955
|
}, e;
|
|
3953
3956
|
}()
|
|
3954
3957
|
);
|
|
3955
|
-
function
|
|
3958
|
+
function Bi(e, t) {
|
|
3956
3959
|
if (t == null)
|
|
3957
3960
|
return;
|
|
3958
3961
|
if (t in e)
|
|
@@ -3973,92 +3976,92 @@ function oi(e, t) {
|
|
|
3973
3976
|
n = void 0;
|
|
3974
3977
|
return n;
|
|
3975
3978
|
}
|
|
3976
|
-
const
|
|
3979
|
+
const U = {}, Si = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), lr = (e, t) => {
|
|
3977
3980
|
if (t == null)
|
|
3978
3981
|
return;
|
|
3979
|
-
if (t in
|
|
3980
|
-
return
|
|
3981
|
-
const r =
|
|
3982
|
+
if (t in U && e in U[t])
|
|
3983
|
+
return U[t][e];
|
|
3984
|
+
const r = He(t);
|
|
3982
3985
|
for (let n = 0; n < r.length; n++) {
|
|
3983
|
-
const i = r[n], o =
|
|
3986
|
+
const i = r[n], o = Hi(i, e);
|
|
3984
3987
|
if (o)
|
|
3985
|
-
return
|
|
3988
|
+
return Si(e, t, o);
|
|
3986
3989
|
}
|
|
3987
3990
|
};
|
|
3988
|
-
let
|
|
3989
|
-
const
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
3991
|
+
let rt;
|
|
3992
|
+
const ce = Be({});
|
|
3993
|
+
function wi(e) {
|
|
3994
|
+
return rt[e] || null;
|
|
3992
3995
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return e in
|
|
3996
|
+
function hr(e) {
|
|
3997
|
+
return e in rt;
|
|
3995
3998
|
}
|
|
3996
|
-
function
|
|
3997
|
-
if (!
|
|
3999
|
+
function Hi(e, t) {
|
|
4000
|
+
if (!hr(e))
|
|
3998
4001
|
return null;
|
|
3999
|
-
const r =
|
|
4000
|
-
return
|
|
4002
|
+
const r = wi(e);
|
|
4003
|
+
return Bi(r, t);
|
|
4001
4004
|
}
|
|
4002
|
-
function
|
|
4005
|
+
function Ti(e) {
|
|
4003
4006
|
if (e == null)
|
|
4004
4007
|
return;
|
|
4005
|
-
const t =
|
|
4008
|
+
const t = He(e);
|
|
4006
4009
|
for (let r = 0; r < t.length; r++) {
|
|
4007
4010
|
const n = t[r];
|
|
4008
|
-
if (
|
|
4011
|
+
if (hr(n))
|
|
4009
4012
|
return n;
|
|
4010
4013
|
}
|
|
4011
4014
|
}
|
|
4012
|
-
function
|
|
4013
|
-
delete
|
|
4015
|
+
function cr(e, ...t) {
|
|
4016
|
+
delete U[e], ce.update((r) => (r[e] = Pn.all([r[e] || {}, ...t]), r));
|
|
4014
4017
|
}
|
|
4015
|
-
|
|
4016
|
-
[
|
|
4018
|
+
te(
|
|
4019
|
+
[ce],
|
|
4017
4020
|
([e]) => Object.keys(e)
|
|
4018
4021
|
);
|
|
4019
|
-
|
|
4020
|
-
const
|
|
4021
|
-
function
|
|
4022
|
-
|
|
4022
|
+
ce.subscribe((e) => rt = e);
|
|
4023
|
+
const ye = {};
|
|
4024
|
+
function Ai(e, t) {
|
|
4025
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
4023
4026
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
4027
|
+
function fr(e) {
|
|
4028
|
+
return ye[e];
|
|
4026
4029
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return
|
|
4029
|
-
const r =
|
|
4030
|
+
function Oi(e) {
|
|
4031
|
+
return He(e).map((t) => {
|
|
4032
|
+
const r = fr(t);
|
|
4030
4033
|
return [t, r ? [...r] : []];
|
|
4031
4034
|
}).filter(([, t]) => t.length > 0);
|
|
4032
4035
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return e == null ? !1 :
|
|
4036
|
+
function Ke(e) {
|
|
4037
|
+
return e == null ? !1 : He(e).some(
|
|
4035
4038
|
(t) => {
|
|
4036
4039
|
var r;
|
|
4037
|
-
return (r =
|
|
4040
|
+
return (r = fr(t)) == null ? void 0 : r.size;
|
|
4038
4041
|
}
|
|
4039
4042
|
);
|
|
4040
4043
|
}
|
|
4041
|
-
function
|
|
4044
|
+
function Pi(e, t) {
|
|
4042
4045
|
return Promise.all(
|
|
4043
|
-
t.map((n) => (
|
|
4044
|
-
).then((n) =>
|
|
4045
|
-
}
|
|
4046
|
-
const
|
|
4047
|
-
function
|
|
4048
|
-
if (!
|
|
4049
|
-
return e in
|
|
4050
|
-
const t =
|
|
4051
|
-
return
|
|
4046
|
+
t.map((n) => (Ai(e, n), n().then((i) => i.default || i)))
|
|
4047
|
+
).then((n) => cr(e, ...n));
|
|
4048
|
+
}
|
|
4049
|
+
const ie = {};
|
|
4050
|
+
function mr(e) {
|
|
4051
|
+
if (!Ke(e))
|
|
4052
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
4053
|
+
const t = Oi(e);
|
|
4054
|
+
return ie[e] = Promise.all(
|
|
4052
4055
|
t.map(
|
|
4053
|
-
([r, n]) =>
|
|
4056
|
+
([r, n]) => Pi(r, n)
|
|
4054
4057
|
)
|
|
4055
4058
|
).then(() => {
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4058
|
-
delete
|
|
4059
|
-
}),
|
|
4059
|
+
if (Ke(e))
|
|
4060
|
+
return mr(e);
|
|
4061
|
+
delete ie[e];
|
|
4062
|
+
}), ie[e];
|
|
4060
4063
|
}
|
|
4061
|
-
const
|
|
4064
|
+
const Ii = {
|
|
4062
4065
|
number: {
|
|
4063
4066
|
scientific: { notation: "scientific" },
|
|
4064
4067
|
engineering: { notation: "engineering" },
|
|
@@ -4087,159 +4090,159 @@ const pi = {
|
|
|
4087
4090
|
timeZoneName: "short"
|
|
4088
4091
|
}
|
|
4089
4092
|
}
|
|
4090
|
-
},
|
|
4093
|
+
}, Ci = {
|
|
4091
4094
|
fallbackLocale: null,
|
|
4092
4095
|
loadingDelay: 200,
|
|
4093
|
-
formats:
|
|
4096
|
+
formats: Ii,
|
|
4094
4097
|
warnOnMissingMessages: !0,
|
|
4095
4098
|
handleMissingMessage: void 0,
|
|
4096
4099
|
ignoreTag: !0
|
|
4097
|
-
},
|
|
4098
|
-
function
|
|
4099
|
-
return
|
|
4100
|
+
}, Li = Ci;
|
|
4101
|
+
function ee() {
|
|
4102
|
+
return Li;
|
|
4100
4103
|
}
|
|
4101
|
-
const
|
|
4102
|
-
var
|
|
4104
|
+
const Re = Be(!1);
|
|
4105
|
+
var Ni = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
|
4103
4106
|
for (var r in t || (t = {}))
|
|
4104
|
-
|
|
4105
|
-
if (
|
|
4106
|
-
for (var r of
|
|
4107
|
-
|
|
4107
|
+
$i.call(t, r) && Ot(e, r, t[r]);
|
|
4108
|
+
if (At)
|
|
4109
|
+
for (var r of At(t))
|
|
4110
|
+
Ui.call(t, r) && Ot(e, r, t[r]);
|
|
4108
4111
|
return e;
|
|
4109
|
-
},
|
|
4110
|
-
let
|
|
4111
|
-
const
|
|
4112
|
-
function
|
|
4112
|
+
}, Fi = (e, t) => Mi(e, Ri(t));
|
|
4113
|
+
let et;
|
|
4114
|
+
const _e = Be(null);
|
|
4115
|
+
function Pt(e) {
|
|
4113
4116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4114
4117
|
}
|
|
4115
|
-
function
|
|
4116
|
-
const r =
|
|
4117
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4118
|
+
function He(e, t = ee().fallbackLocale) {
|
|
4119
|
+
const r = Pt(e);
|
|
4120
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4118
4121
|
}
|
|
4119
|
-
function
|
|
4120
|
-
return
|
|
4122
|
+
function V() {
|
|
4123
|
+
return et != null ? et : void 0;
|
|
4121
4124
|
}
|
|
4122
|
-
|
|
4123
|
-
|
|
4125
|
+
_e.subscribe((e) => {
|
|
4126
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4124
4127
|
});
|
|
4125
|
-
const
|
|
4126
|
-
if (e &&
|
|
4127
|
-
const { loadingDelay: t } =
|
|
4128
|
+
const Gi = (e) => {
|
|
4129
|
+
if (e && Ti(e) && Ke(e)) {
|
|
4130
|
+
const { loadingDelay: t } = ee();
|
|
4128
4131
|
let r;
|
|
4129
|
-
return typeof window != "undefined" &&
|
|
4130
|
-
() =>
|
|
4132
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
4133
|
+
() => Re.set(!0),
|
|
4131
4134
|
t
|
|
4132
|
-
) :
|
|
4133
|
-
|
|
4135
|
+
) : Re.set(!0), mr(e).then(() => {
|
|
4136
|
+
_e.set(e);
|
|
4134
4137
|
}).finally(() => {
|
|
4135
|
-
clearTimeout(r),
|
|
4138
|
+
clearTimeout(r), Re.set(!1);
|
|
4136
4139
|
});
|
|
4137
4140
|
}
|
|
4138
|
-
return
|
|
4139
|
-
},
|
|
4140
|
-
set:
|
|
4141
|
-
}),
|
|
4141
|
+
return _e.set(e);
|
|
4142
|
+
}, re = Fi(Di({}, _e), {
|
|
4143
|
+
set: Gi
|
|
4144
|
+
}), Te = (e) => {
|
|
4142
4145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4143
4146
|
return (n) => {
|
|
4144
4147
|
const i = JSON.stringify(n);
|
|
4145
4148
|
return i in t ? t[i] : t[i] = e(n);
|
|
4146
4149
|
};
|
|
4147
4150
|
};
|
|
4148
|
-
var
|
|
4151
|
+
var ki = Object.defineProperty, Ee = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
4149
4152
|
for (var r in t || (t = {}))
|
|
4150
|
-
|
|
4151
|
-
if (
|
|
4152
|
-
for (var r of
|
|
4153
|
-
|
|
4153
|
+
pr.call(t, r) && It(e, r, t[r]);
|
|
4154
|
+
if (Ee)
|
|
4155
|
+
for (var r of Ee(t))
|
|
4156
|
+
dr.call(t, r) && It(e, r, t[r]);
|
|
4154
4157
|
return e;
|
|
4155
|
-
},
|
|
4158
|
+
}, ne = (e, t) => {
|
|
4156
4159
|
var r = {};
|
|
4157
4160
|
for (var n in e)
|
|
4158
|
-
|
|
4159
|
-
if (e != null &&
|
|
4160
|
-
for (var n of
|
|
4161
|
-
t.indexOf(n) < 0 &&
|
|
4161
|
+
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4162
|
+
if (e != null && Ee)
|
|
4163
|
+
for (var n of Ee(e))
|
|
4164
|
+
t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
|
|
4162
4165
|
return r;
|
|
4163
4166
|
};
|
|
4164
|
-
const
|
|
4165
|
-
const { formats: r } =
|
|
4167
|
+
const le = (e, t) => {
|
|
4168
|
+
const { formats: r } = ee();
|
|
4166
4169
|
if (e in r && t in r[e])
|
|
4167
4170
|
return r[e][t];
|
|
4168
4171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4169
|
-
},
|
|
4172
|
+
}, ji = Te(
|
|
4170
4173
|
(e) => {
|
|
4171
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4172
4175
|
if (r == null)
|
|
4173
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4174
|
-
return n && (i =
|
|
4177
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4175
4178
|
}
|
|
4176
|
-
),
|
|
4179
|
+
), Vi = Te(
|
|
4177
4180
|
(e) => {
|
|
4178
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4179
4182
|
if (r == null)
|
|
4180
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4181
|
-
return n ? i =
|
|
4184
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4185
|
}
|
|
4183
|
-
),
|
|
4186
|
+
), Xi = Te(
|
|
4184
4187
|
(e) => {
|
|
4185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4186
4189
|
if (r == null)
|
|
4187
4190
|
throw new Error(
|
|
4188
4191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4189
4192
|
);
|
|
4190
|
-
return n ? i =
|
|
4193
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4191
4194
|
}
|
|
4192
|
-
),
|
|
4195
|
+
), zi = (e = {}) => {
|
|
4193
4196
|
var t = e, {
|
|
4194
|
-
locale: r =
|
|
4195
|
-
} = t, n =
|
|
4197
|
+
locale: r = V()
|
|
4198
|
+
} = t, n = ne(t, [
|
|
4196
4199
|
"locale"
|
|
4197
4200
|
]);
|
|
4198
|
-
return
|
|
4199
|
-
},
|
|
4201
|
+
return ji(nt({ locale: r }, n));
|
|
4202
|
+
}, Wi = (e = {}) => {
|
|
4200
4203
|
var t = e, {
|
|
4201
|
-
locale: r =
|
|
4202
|
-
} = t, n =
|
|
4204
|
+
locale: r = V()
|
|
4205
|
+
} = t, n = ne(t, [
|
|
4203
4206
|
"locale"
|
|
4204
4207
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4208
|
+
return Vi(nt({ locale: r }, n));
|
|
4209
|
+
}, Zi = (e = {}) => {
|
|
4207
4210
|
var t = e, {
|
|
4208
|
-
locale: r =
|
|
4209
|
-
} = t, n =
|
|
4211
|
+
locale: r = V()
|
|
4212
|
+
} = t, n = ne(t, [
|
|
4210
4213
|
"locale"
|
|
4211
4214
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4215
|
+
return Xi(nt({ locale: r }, n));
|
|
4216
|
+
}, Ji = Te(
|
|
4214
4217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4215
|
-
(e, t =
|
|
4216
|
-
ignoreTag:
|
|
4218
|
+
(e, t = V()) => new xi(e, t, ee().formats, {
|
|
4219
|
+
ignoreTag: ee().ignoreTag
|
|
4217
4220
|
})
|
|
4218
|
-
),
|
|
4221
|
+
), Qi = (e, t = {}) => {
|
|
4219
4222
|
var r, n, i, o;
|
|
4220
4223
|
let s = t;
|
|
4221
4224
|
typeof e == "object" && (s = e, e = s.id);
|
|
4222
4225
|
const {
|
|
4223
4226
|
values: a,
|
|
4224
|
-
locale:
|
|
4227
|
+
locale: l = V(),
|
|
4225
4228
|
default: u
|
|
4226
4229
|
} = s;
|
|
4227
|
-
if (
|
|
4230
|
+
if (l == null)
|
|
4228
4231
|
throw new Error(
|
|
4229
4232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4230
4233
|
);
|
|
4231
|
-
let
|
|
4232
|
-
if (!
|
|
4233
|
-
|
|
4234
|
-
else if (typeof
|
|
4234
|
+
let h = lr(e, l);
|
|
4235
|
+
if (!h)
|
|
4236
|
+
h = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4237
|
+
else if (typeof h != "string")
|
|
4235
4238
|
return console.warn(
|
|
4236
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4237
|
-
),
|
|
4239
|
+
`[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.`
|
|
4240
|
+
), h;
|
|
4238
4241
|
if (!a)
|
|
4239
|
-
return
|
|
4240
|
-
let c =
|
|
4242
|
+
return h;
|
|
4243
|
+
let c = h;
|
|
4241
4244
|
try {
|
|
4242
|
-
c =
|
|
4245
|
+
c = Ji(h, l).format(a);
|
|
4243
4246
|
} catch (f) {
|
|
4244
4247
|
f instanceof Error && console.warn(
|
|
4245
4248
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4247,21 +4250,20 @@ const K = (e, t) => {
|
|
|
4247
4250
|
);
|
|
4248
4251
|
}
|
|
4249
4252
|
return c;
|
|
4250
|
-
},
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
function Fi(e, t) {
|
|
4253
|
+
}, Yi = (e, t) => Zi(t).format(e), qi = (e, t) => Wi(t).format(e), Ki = (e, t) => zi(t).format(e), eo = (e, t = V()) => lr(e, t), to = te([re, ce], () => Qi);
|
|
4254
|
+
te([re], () => Yi);
|
|
4255
|
+
te([re], () => qi);
|
|
4256
|
+
te([re], () => Ki);
|
|
4257
|
+
te([re, ce], () => eo);
|
|
4258
|
+
window.emWidgets = { topic: mn };
|
|
4259
|
+
const ro = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4260
|
+
function no(e, t) {
|
|
4259
4261
|
if (e) {
|
|
4260
4262
|
const r = document.createElement("style");
|
|
4261
4263
|
r.innerHTML = t, e.appendChild(r);
|
|
4262
4264
|
}
|
|
4263
4265
|
}
|
|
4264
|
-
function
|
|
4266
|
+
function io(e, t) {
|
|
4265
4267
|
const r = new URL(t);
|
|
4266
4268
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4267
4269
|
const i = document.createElement("style");
|
|
@@ -4270,7 +4272,7 @@ function Di(e, t) {
|
|
|
4270
4272
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4271
4273
|
});
|
|
4272
4274
|
}
|
|
4273
|
-
function
|
|
4275
|
+
function oo(e, t, r) {
|
|
4274
4276
|
if (window.emMessageBus) {
|
|
4275
4277
|
const n = document.createElement("style");
|
|
4276
4278
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4278,202 +4280,530 @@ function Gi(e, t, r) {
|
|
|
4278
4280
|
});
|
|
4279
4281
|
}
|
|
4280
4282
|
}
|
|
4281
|
-
function
|
|
4282
|
-
cr(e,
|
|
4283
|
+
function Ct(e, t) {
|
|
4284
|
+
cr(e, t);
|
|
4285
|
+
}
|
|
4286
|
+
function so(e) {
|
|
4287
|
+
re.set(e);
|
|
4288
|
+
}
|
|
4289
|
+
const Lt = {
|
|
4290
|
+
en: {
|
|
4291
|
+
loginButton: "Login",
|
|
4292
|
+
registerButton: "Join Now",
|
|
4293
|
+
betslipButton: "Betslip",
|
|
4294
|
+
myBestButton: "My Bets",
|
|
4295
|
+
loading: "Loading..."
|
|
4296
|
+
},
|
|
4297
|
+
"zh-hk": {
|
|
4298
|
+
loginButton: "登入",
|
|
4299
|
+
registerButton: "立即加入",
|
|
4300
|
+
betslipButton: "投注單",
|
|
4301
|
+
myBestButton: "我的投注",
|
|
4302
|
+
loading: "載入中..."
|
|
4303
|
+
},
|
|
4304
|
+
fr: {
|
|
4305
|
+
loginButton: "Se connecter",
|
|
4306
|
+
registerButton: "Rejoindre maintenant",
|
|
4307
|
+
betslipButton: "Bulletin de pari",
|
|
4308
|
+
myBestButton: "Mes paris",
|
|
4309
|
+
loading: "Chargement..."
|
|
4310
|
+
},
|
|
4311
|
+
ro: {
|
|
4312
|
+
loginButton: "Conectare",
|
|
4313
|
+
registerButton: "Înscriere",
|
|
4314
|
+
betslipButton: "Bilet de pariu",
|
|
4315
|
+
myBestButton: "Pariurile mele",
|
|
4316
|
+
loading: "Se încarcă..."
|
|
4317
|
+
},
|
|
4318
|
+
es: {
|
|
4319
|
+
loginButton: "Iniciar sesión",
|
|
4320
|
+
registerButton: "Únete ahora",
|
|
4321
|
+
betslipButton: "Boleta de apuestas",
|
|
4322
|
+
myBestButton: "Mis apuestas",
|
|
4323
|
+
loading: "Cargando..."
|
|
4324
|
+
},
|
|
4325
|
+
pt: {
|
|
4326
|
+
loginButton: "Entrar",
|
|
4327
|
+
registerButton: "Junte-se agora",
|
|
4328
|
+
betslipButton: "Bilhete de aposta",
|
|
4329
|
+
myBestButton: "Minhas apostas",
|
|
4330
|
+
loading: "A carregar..."
|
|
4331
|
+
},
|
|
4332
|
+
hr: {
|
|
4333
|
+
loginButton: "Prijava",
|
|
4334
|
+
registerButton: "Pridruži se sada",
|
|
4335
|
+
betslipButton: "Listić za klađenje",
|
|
4336
|
+
myBestButton: "Moje oklade",
|
|
4337
|
+
loading: "Učitavanje..."
|
|
4338
|
+
},
|
|
4339
|
+
"pt-br": {
|
|
4340
|
+
loginButton: "Entrar",
|
|
4341
|
+
registerButton: "Junte-se agora",
|
|
4342
|
+
betslipButton: "Bilhete de aposta",
|
|
4343
|
+
myBestButton: "Minhas apostas",
|
|
4344
|
+
loading: "Carregando..."
|
|
4345
|
+
},
|
|
4346
|
+
"es-mx": {
|
|
4347
|
+
loginButton: "Iniciar sesión",
|
|
4348
|
+
registerButton: "Únete ahora",
|
|
4349
|
+
betslipButton: "Boleta de apuestas",
|
|
4350
|
+
myBestButton: "Mis apuestas",
|
|
4351
|
+
loading: "Cargando..."
|
|
4352
|
+
},
|
|
4353
|
+
tr: {
|
|
4354
|
+
loginButton: "Giriş yap",
|
|
4355
|
+
registerButton: "Şimdi katıl",
|
|
4356
|
+
betslipButton: "Bahis kuponu",
|
|
4357
|
+
myBestButton: "Bahislerim",
|
|
4358
|
+
loading: "Yükleniyor..."
|
|
4359
|
+
},
|
|
4360
|
+
"en-us": {
|
|
4361
|
+
loginButton: "Login",
|
|
4362
|
+
registerButton: "Join Now",
|
|
4363
|
+
betslipButton: "Betslip",
|
|
4364
|
+
myBestButton: "My Bets",
|
|
4365
|
+
loading: "Loading..."
|
|
4366
|
+
}
|
|
4367
|
+
};
|
|
4368
|
+
function ao(e) {
|
|
4369
|
+
Cr(e, "svelte-1vfm7gk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.betslipIndicator{display:flex;align-items:center;justify-content:center;padding:15px 20px;position:fixed;bottom:20%;right:20px;color:#fff;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0px 5px 30px var(--emw--color-gray-100, #E6E6E6);border-radius:50%;border:none}.betslipIndicator__icon{display:flex;width:20px;fill:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.betslipIndicator__number{display:flex;align-items:center;justify-content:center;position:absolute;right:0px;top:-10px;width:25px;height:25px;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));border-radius:50%}.loader{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:2px;margin:100px auto;width:1em;height:1em;border-radius:50%;position:relative;text-indent:-9999em;-webkit-animation:load4 1.3s infinite linear;animation:load4 1.3s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}@keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}.betslipBar{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:5px;padding:5px 10px;position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:31;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.betslipBarButton{border:0;margin:0;height:auto;padding:10px;background-color:transparent;text-transform:uppercase;font-size:16px;text-wrap:nowrap}.betslipBarCount{border:1px solid var(--emw--color-background);padding:16px 20px;background:var(--emw--betslip-bar-count-background, linear-gradient(to left, rgba(var(--emw--color-600-rgb), 0.9), rgba(var(--emw--color-700-rgb), 0.9)));border-radius:6px}");
|
|
4370
|
+
}
|
|
4371
|
+
function Nt(e) {
|
|
4372
|
+
let t, r;
|
|
4373
|
+
function n(s, a) {
|
|
4374
|
+
return (
|
|
4375
|
+
/*isLoggedIn*/
|
|
4376
|
+
s[7] && /*sessionID*/
|
|
4377
|
+
s[6] ? lo : uo
|
|
4378
|
+
);
|
|
4379
|
+
}
|
|
4380
|
+
let i = n(e), o = i(e);
|
|
4381
|
+
return {
|
|
4382
|
+
c() {
|
|
4383
|
+
t = O("div"), o.c(), _(t, "class", r = `betslipBar ${/*isLoggedIn*/
|
|
4384
|
+
e[7] ? "loggedIn" : "loggedOut"}`);
|
|
4385
|
+
},
|
|
4386
|
+
m(s, a) {
|
|
4387
|
+
S(s, t, a), o.m(t, null);
|
|
4388
|
+
},
|
|
4389
|
+
p(s, a) {
|
|
4390
|
+
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(t, null))), a & /*isLoggedIn*/
|
|
4391
|
+
128 && r !== (r = `betslipBar ${/*isLoggedIn*/
|
|
4392
|
+
s[7] ? "loggedIn" : "loggedOut"}`) && _(t, "class", r);
|
|
4393
|
+
},
|
|
4394
|
+
d(s) {
|
|
4395
|
+
s && B(t), o.d();
|
|
4396
|
+
}
|
|
4397
|
+
};
|
|
4398
|
+
}
|
|
4399
|
+
function uo(e) {
|
|
4400
|
+
let t, r = (
|
|
4401
|
+
/*$_*/
|
|
4402
|
+
e[8]("loginButton") + ""
|
|
4403
|
+
), n, i, o, s, a, l = (
|
|
4404
|
+
/*$_*/
|
|
4405
|
+
e[8]("registerButton") + ""
|
|
4406
|
+
), u, h, c;
|
|
4407
|
+
return {
|
|
4408
|
+
c() {
|
|
4409
|
+
t = O("button"), n = D(r), i = Q(), o = O("span"), o.textContent = "|", s = Q(), a = O("button"), u = D(l), _(t, "class", "betslipBarButton loginButton"), _(o, "class", "betslipBarSeparator"), _(a, "class", "betslipBarButton registerButton");
|
|
4410
|
+
},
|
|
4411
|
+
m(f, p) {
|
|
4412
|
+
S(f, t, p), w(t, n), S(f, i, p), S(f, o, p), S(f, s, p), S(f, a, p), w(a, u), h || (c = [
|
|
4413
|
+
se(
|
|
4414
|
+
t,
|
|
4415
|
+
"click",
|
|
4416
|
+
/*click_handler_2*/
|
|
4417
|
+
e[19]
|
|
4418
|
+
),
|
|
4419
|
+
se(
|
|
4420
|
+
a,
|
|
4421
|
+
"click",
|
|
4422
|
+
/*click_handler_3*/
|
|
4423
|
+
e[20]
|
|
4424
|
+
)
|
|
4425
|
+
], h = !0);
|
|
4426
|
+
},
|
|
4427
|
+
p(f, p) {
|
|
4428
|
+
p & /*$_*/
|
|
4429
|
+
256 && r !== (r = /*$_*/
|
|
4430
|
+
f[8]("loginButton") + "") && k(n, r), p & /*$_*/
|
|
4431
|
+
256 && l !== (l = /*$_*/
|
|
4432
|
+
f[8]("registerButton") + "") && k(u, l);
|
|
4433
|
+
},
|
|
4434
|
+
d(f) {
|
|
4435
|
+
f && (B(t), B(i), B(o), B(s), B(a)), h = !1, j(c);
|
|
4436
|
+
}
|
|
4437
|
+
};
|
|
4283
4438
|
}
|
|
4284
|
-
function
|
|
4285
|
-
let t, r
|
|
4286
|
-
|
|
4439
|
+
function lo(e) {
|
|
4440
|
+
let t, r = (
|
|
4441
|
+
/*$_*/
|
|
4442
|
+
e[8]("betslipButton") + ""
|
|
4443
|
+
), n, i, o, s, a, l = (
|
|
4444
|
+
/*$_*/
|
|
4445
|
+
e[8]("myBestButton") + ""
|
|
4446
|
+
), u, h, c;
|
|
4447
|
+
function f(m, v) {
|
|
4287
4448
|
return (
|
|
4288
4449
|
/*isLoading*/
|
|
4289
|
-
|
|
4450
|
+
m[4] ? co : ho
|
|
4290
4451
|
);
|
|
4291
4452
|
}
|
|
4292
|
-
let
|
|
4453
|
+
let p = f(e), d = p(e);
|
|
4454
|
+
return {
|
|
4455
|
+
c() {
|
|
4456
|
+
t = O("button"), n = D(r), i = Q(), o = O("div"), d.c(), s = Q(), a = O("button"), u = D(l), _(t, "class", "betslipBarButton betslipDetails"), _(o, "class", "betslipBarCount"), _(a, "class", "betslipBarButton betsDetails");
|
|
4457
|
+
},
|
|
4458
|
+
m(m, v) {
|
|
4459
|
+
S(m, t, v), w(t, n), S(m, i, v), S(m, o, v), d.m(o, null), S(m, s, v), S(m, a, v), w(a, u), h || (c = [
|
|
4460
|
+
se(
|
|
4461
|
+
t,
|
|
4462
|
+
"click",
|
|
4463
|
+
/*click_handler*/
|
|
4464
|
+
e[17]
|
|
4465
|
+
),
|
|
4466
|
+
se(
|
|
4467
|
+
a,
|
|
4468
|
+
"click",
|
|
4469
|
+
/*click_handler_1*/
|
|
4470
|
+
e[18]
|
|
4471
|
+
)
|
|
4472
|
+
], h = !0);
|
|
4473
|
+
},
|
|
4474
|
+
p(m, v) {
|
|
4475
|
+
v & /*$_*/
|
|
4476
|
+
256 && r !== (r = /*$_*/
|
|
4477
|
+
m[8]("betslipButton") + "") && k(n, r), p === (p = f(m)) && d ? d.p(m, v) : (d.d(1), d = p(m), d && (d.c(), d.m(o, null))), v & /*$_*/
|
|
4478
|
+
256 && l !== (l = /*$_*/
|
|
4479
|
+
m[8]("myBestButton") + "") && k(u, l);
|
|
4480
|
+
},
|
|
4481
|
+
d(m) {
|
|
4482
|
+
m && (B(t), B(i), B(o), B(s), B(a)), d.d(), h = !1, j(c);
|
|
4483
|
+
}
|
|
4484
|
+
};
|
|
4485
|
+
}
|
|
4486
|
+
function ho(e) {
|
|
4487
|
+
let t = (
|
|
4488
|
+
/*betNumber*/
|
|
4489
|
+
(e[2] ? (
|
|
4490
|
+
/*betNumber*/
|
|
4491
|
+
e[2]
|
|
4492
|
+
) : 0) + ""
|
|
4493
|
+
), r;
|
|
4293
4494
|
return {
|
|
4294
4495
|
c() {
|
|
4295
|
-
|
|
4496
|
+
r = D(t);
|
|
4497
|
+
},
|
|
4498
|
+
m(n, i) {
|
|
4499
|
+
S(n, r, i);
|
|
4500
|
+
},
|
|
4501
|
+
p(n, i) {
|
|
4502
|
+
i & /*betNumber*/
|
|
4503
|
+
4 && t !== (t = /*betNumber*/
|
|
4504
|
+
(n[2] ? (
|
|
4505
|
+
/*betNumber*/
|
|
4506
|
+
n[2]
|
|
4507
|
+
) : 0) + "") && k(r, t);
|
|
4508
|
+
},
|
|
4509
|
+
d(n) {
|
|
4510
|
+
n && B(r);
|
|
4511
|
+
}
|
|
4512
|
+
};
|
|
4513
|
+
}
|
|
4514
|
+
function co(e) {
|
|
4515
|
+
let t, r = (
|
|
4516
|
+
/*$_*/
|
|
4517
|
+
e[8]("loading") + ""
|
|
4518
|
+
), n;
|
|
4519
|
+
return {
|
|
4520
|
+
c() {
|
|
4521
|
+
t = O("div"), n = D(r), _(t, "class", "loader");
|
|
4522
|
+
},
|
|
4523
|
+
m(i, o) {
|
|
4524
|
+
S(i, t, o), w(t, n);
|
|
4525
|
+
},
|
|
4526
|
+
p(i, o) {
|
|
4527
|
+
o & /*$_*/
|
|
4528
|
+
256 && r !== (r = /*$_*/
|
|
4529
|
+
i[8]("loading") + "") && k(n, r);
|
|
4530
|
+
},
|
|
4531
|
+
d(i) {
|
|
4532
|
+
i && B(t);
|
|
4533
|
+
}
|
|
4534
|
+
};
|
|
4535
|
+
}
|
|
4536
|
+
function Mt(e) {
|
|
4537
|
+
let t, r, n, i, o, s, a, l, u, h, c, f;
|
|
4538
|
+
function p(v, A) {
|
|
4539
|
+
return (
|
|
4540
|
+
/*isLoading*/
|
|
4541
|
+
v[4] ? mo : fo
|
|
4542
|
+
);
|
|
4543
|
+
}
|
|
4544
|
+
let d = p(e), m = d(e);
|
|
4545
|
+
return {
|
|
4546
|
+
c() {
|
|
4547
|
+
t = O("button"), r = O("small"), m.c(), n = Q(), i = G("svg"), o = G("g"), s = G("path"), a = G("path"), l = G("path"), u = G("path"), h = G("path"), _(r, "class", "betslipIndicator__number"), _(s, "d", `M45,95c0,1.1,0.9,2,2,2h11c3.3,0,6-2.7,6-6V9c0-3.3-2.7-6-6-6H47c-1.1,0-2,0.9-2,2c0,7.2-5.8,13-13,13S19,12.2,19,5
|
|
4296
4548
|
c0-1.1-0.9-2-2-2H6C2.7,3,0,5.7,0,9v82c0,3.3,2.7,6,6,6h11c1.1,0,2-0.9,2-2c0-7.2,5.8-13,13-13S45,87.8,45,95z M32,78
|
|
4297
4549
|
c-8.6,0-15.9,6.4-16.9,15H6c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h9.1c1.2,9.3,9.7,15.9,19,14.8c7.7-1,13.8-7,14.8-14.8H58
|
|
4298
|
-
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`),
|
|
4550
|
+
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`), _(a, "d", "M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"), _(l, "d", "M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"), _(u, "d", "M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"), _(h, "d", "M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"), _(i, "version", "1.1"), _(i, "id", "Layer_1"), _(i, "class", "betslipIndicator__icon"), _(i, "xmlns", "http://www.w3.org/2000/svg"), _(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), _(i, "x", "0px"), _(i, "y", "0px"), _(i, "viewBox", "0 0 64 100"), Rr(i, "enable-background", "new 0 0 64 100"), _(i, "xml:space", "preserve"), _(t, "class", "betslipIndicator");
|
|
4299
4551
|
},
|
|
4300
|
-
m(
|
|
4301
|
-
|
|
4552
|
+
m(v, A) {
|
|
4553
|
+
S(v, t, A), w(t, r), m.m(r, null), w(t, n), w(t, i), w(i, o), w(o, s), w(o, a), w(o, l), w(o, u), w(o, h), c || (f = se(
|
|
4302
4554
|
t,
|
|
4303
4555
|
"click",
|
|
4304
|
-
/*
|
|
4305
|
-
e[
|
|
4556
|
+
/*click_handler_4*/
|
|
4557
|
+
e[21]
|
|
4306
4558
|
), c = !0);
|
|
4307
4559
|
},
|
|
4308
|
-
p(
|
|
4309
|
-
|
|
4560
|
+
p(v, A) {
|
|
4561
|
+
d === (d = p(v)) && m ? m.p(v, A) : (m.d(1), m = d(v), m && (m.c(), m.m(r, null)));
|
|
4310
4562
|
},
|
|
4311
|
-
d(
|
|
4312
|
-
|
|
4563
|
+
d(v) {
|
|
4564
|
+
v && B(t), m.d(), c = !1, f();
|
|
4313
4565
|
}
|
|
4314
4566
|
};
|
|
4315
4567
|
}
|
|
4316
|
-
function
|
|
4568
|
+
function fo(e) {
|
|
4317
4569
|
let t;
|
|
4318
4570
|
return {
|
|
4319
4571
|
c() {
|
|
4320
|
-
t =
|
|
4572
|
+
t = D(
|
|
4321
4573
|
/*betNumber*/
|
|
4322
|
-
e[
|
|
4574
|
+
e[2]
|
|
4323
4575
|
);
|
|
4324
4576
|
},
|
|
4325
4577
|
m(r, n) {
|
|
4326
|
-
|
|
4578
|
+
S(r, t, n);
|
|
4327
4579
|
},
|
|
4328
4580
|
p(r, n) {
|
|
4329
4581
|
n & /*betNumber*/
|
|
4330
|
-
|
|
4582
|
+
4 && k(
|
|
4331
4583
|
t,
|
|
4332
4584
|
/*betNumber*/
|
|
4333
|
-
r[
|
|
4585
|
+
r[2]
|
|
4334
4586
|
);
|
|
4335
4587
|
},
|
|
4336
4588
|
d(r) {
|
|
4337
|
-
r &&
|
|
4589
|
+
r && B(t);
|
|
4338
4590
|
}
|
|
4339
4591
|
};
|
|
4340
4592
|
}
|
|
4341
|
-
function
|
|
4593
|
+
function mo(e) {
|
|
4342
4594
|
let t;
|
|
4343
4595
|
return {
|
|
4344
4596
|
c() {
|
|
4345
|
-
t =
|
|
4597
|
+
t = O("div"), t.textContent = "Loading...", _(t, "class", "loader");
|
|
4346
4598
|
},
|
|
4347
4599
|
m(r, n) {
|
|
4348
|
-
|
|
4600
|
+
S(r, t, n);
|
|
4349
4601
|
},
|
|
4350
|
-
p:
|
|
4602
|
+
p: I,
|
|
4351
4603
|
d(r) {
|
|
4352
|
-
r &&
|
|
4604
|
+
r && B(t);
|
|
4353
4605
|
}
|
|
4354
4606
|
};
|
|
4355
4607
|
}
|
|
4356
|
-
function
|
|
4357
|
-
let t, r = (
|
|
4608
|
+
function po(e) {
|
|
4609
|
+
let t, r, n = (
|
|
4610
|
+
/*isBetslipButtonBar*/
|
|
4611
|
+
e[1] && /*mobileView*/
|
|
4612
|
+
e[3] && /*betSlipVisible*/
|
|
4613
|
+
e[5] && Nt(e)
|
|
4614
|
+
), i = (
|
|
4358
4615
|
/*mobileView*/
|
|
4359
|
-
e[
|
|
4360
|
-
e[
|
|
4361
|
-
e[
|
|
4616
|
+
e[3] && /*betNumber*/
|
|
4617
|
+
e[2] > 0 && /*betSlipVisible*/
|
|
4618
|
+
e[5] && !/*isBetslipButtonBar*/
|
|
4619
|
+
e[1] && Mt(e)
|
|
4362
4620
|
);
|
|
4363
4621
|
return {
|
|
4364
4622
|
c() {
|
|
4365
|
-
t =
|
|
4623
|
+
t = O("div"), n && n.c(), r = Q(), i && i.c();
|
|
4366
4624
|
},
|
|
4367
|
-
m(
|
|
4368
|
-
|
|
4625
|
+
m(o, s) {
|
|
4626
|
+
S(o, t, s), n && n.m(t, null), w(t, r), i && i.m(t, null), e[22](t);
|
|
4369
4627
|
},
|
|
4370
|
-
p(
|
|
4371
|
-
/*
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4628
|
+
p(o, [s]) {
|
|
4629
|
+
/*isBetslipButtonBar*/
|
|
4630
|
+
o[1] && /*mobileView*/
|
|
4631
|
+
o[3] && /*betSlipVisible*/
|
|
4632
|
+
o[5] ? n ? n.p(o, s) : (n = Nt(o), n.c(), n.m(t, r)) : n && (n.d(1), n = null), /*mobileView*/
|
|
4633
|
+
o[3] && /*betNumber*/
|
|
4634
|
+
o[2] > 0 && /*betSlipVisible*/
|
|
4635
|
+
o[5] && !/*isBetslipButtonBar*/
|
|
4636
|
+
o[1] ? i ? i.p(o, s) : (i = Mt(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
4375
4637
|
},
|
|
4376
|
-
i:
|
|
4377
|
-
o:
|
|
4378
|
-
d(
|
|
4379
|
-
|
|
4638
|
+
i: I,
|
|
4639
|
+
o: I,
|
|
4640
|
+
d(o) {
|
|
4641
|
+
o && B(t), n && n.d(), i && i.d(), e[22](null);
|
|
4380
4642
|
}
|
|
4381
4643
|
};
|
|
4382
4644
|
}
|
|
4383
|
-
function
|
|
4384
|
-
let
|
|
4385
|
-
|
|
4645
|
+
function bo(e, t, r) {
|
|
4646
|
+
let n;
|
|
4647
|
+
Ir(e, to, (b) => r(8, n = b));
|
|
4648
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { betslipbuttonbar: a = "false" } = t, { session: l = "" } = t, { lang: u = "" } = t, { translationurl: h = "" } = t, c, f = window.navigator.userAgent, p = null, d = !1, m = !0, v = !1, A = !1, L = "", H = !1;
|
|
4649
|
+
const F = () => {
|
|
4650
|
+
fetch(h).then((b) => b.json()).then((b) => {
|
|
4651
|
+
Object.keys(b).forEach((X) => {
|
|
4652
|
+
Ct(X, b[X]);
|
|
4653
|
+
});
|
|
4654
|
+
}).catch((b) => {
|
|
4655
|
+
console.log(b);
|
|
4656
|
+
});
|
|
4657
|
+
};
|
|
4658
|
+
Object.keys(Lt).forEach((b) => {
|
|
4659
|
+
Ct(b, Lt[b]);
|
|
4660
|
+
});
|
|
4661
|
+
const M = () => {
|
|
4386
4662
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4387
|
-
},
|
|
4388
|
-
|
|
4389
|
-
|
|
4663
|
+
}, C = (b, X) => {
|
|
4664
|
+
c.dispatchEvent(new CustomEvent(
|
|
4665
|
+
b,
|
|
4390
4666
|
{
|
|
4391
|
-
detail:
|
|
4667
|
+
detail: X,
|
|
4392
4668
|
composed: !0,
|
|
4393
4669
|
bubbles: !0
|
|
4394
4670
|
// propagate across the shadow DOM
|
|
4395
4671
|
}
|
|
4396
4672
|
));
|
|
4397
|
-
},
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4673
|
+
}, fe = () => {
|
|
4674
|
+
r(7, H = !0), r(6, L = l);
|
|
4675
|
+
}, br = () => {
|
|
4676
|
+
so(u);
|
|
4677
|
+
}, it = (b) => {
|
|
4678
|
+
var ot;
|
|
4679
|
+
const { type: X, payload: Br } = b.data;
|
|
4680
|
+
if (b.data)
|
|
4681
|
+
switch (X) {
|
|
4402
4682
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4403
|
-
r(
|
|
4683
|
+
r(2, p = Br.count), r(4, m = !1);
|
|
4404
4684
|
break;
|
|
4405
4685
|
case "OMFE:betslipSidebar":
|
|
4406
|
-
const
|
|
4407
|
-
r(
|
|
4686
|
+
const Sr = (ot = b.data.payload) == null ? void 0 : ot.enableBetslipBubble;
|
|
4687
|
+
r(5, v = !!Sr);
|
|
4688
|
+
break;
|
|
4689
|
+
case "UserSessionID":
|
|
4690
|
+
r(6, L = b.data.session), r(7, H = !0);
|
|
4691
|
+
break;
|
|
4692
|
+
case "LogoutSuccessfull":
|
|
4693
|
+
r(7, H = !1);
|
|
4408
4694
|
break;
|
|
4409
4695
|
}
|
|
4410
4696
|
};
|
|
4411
|
-
|
|
4412
|
-
window.removeEventListener("message",
|
|
4697
|
+
Dr(() => (M(), window.addEventListener("message", it, !1), ro(f) && r(3, d = !0), () => {
|
|
4698
|
+
window.removeEventListener("message", it);
|
|
4413
4699
|
}));
|
|
4414
|
-
const
|
|
4415
|
-
function
|
|
4416
|
-
|
|
4417
|
-
|
|
4700
|
+
const gr = (b) => C("betslipClick", {}), yr = (b) => C("betslipClick", { actionType: "showMyBets" }), vr = (b) => C("betslipClick", { actionType: "login" }), _r = (b) => C("betslipClick", { actionType: "register" }), Er = (b) => C("betslipClick", {});
|
|
4701
|
+
function xr(b) {
|
|
4702
|
+
$e[b ? "unshift" : "push"](() => {
|
|
4703
|
+
c = b, r(0, c);
|
|
4418
4704
|
});
|
|
4419
4705
|
}
|
|
4420
|
-
return e.$$set = (
|
|
4421
|
-
"clientstyling" in
|
|
4706
|
+
return e.$$set = (b) => {
|
|
4707
|
+
"clientstyling" in b && r(10, i = b.clientstyling), "clientstylingurl" in b && r(11, o = b.clientstylingurl), "mbsource" in b && r(12, s = b.mbsource), "betslipbuttonbar" in b && r(13, a = b.betslipbuttonbar), "session" in b && r(14, l = b.session), "lang" in b && r(15, u = b.lang), "translationurl" in b && r(16, h = b.translationurl);
|
|
4422
4708
|
}, e.$$.update = () => {
|
|
4423
4709
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4710
|
+
1025 && i && c && no(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4711
|
+
2049 && o && c && io(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4712
|
+
4097 && s && c && oo(c, `${s}.Style`), e.$$.dirty & /*betslipbuttonbar*/
|
|
4713
|
+
8192 && r(1, A = a.toLowerCase() === "true"), e.$$.dirty & /*session, isBetslipButtonBar*/
|
|
4714
|
+
16386 && l && A && fe(), e.$$.dirty & /*lang*/
|
|
4715
|
+
32768 && u && br(), e.$$.dirty & /*translationurl*/
|
|
4716
|
+
65536 && h && F();
|
|
4427
4717
|
}, [
|
|
4428
|
-
s,
|
|
4429
|
-
h,
|
|
4430
|
-
u,
|
|
4431
|
-
l,
|
|
4432
4718
|
c,
|
|
4719
|
+
A,
|
|
4433
4720
|
p,
|
|
4721
|
+
d,
|
|
4722
|
+
m,
|
|
4723
|
+
v,
|
|
4724
|
+
L,
|
|
4725
|
+
H,
|
|
4434
4726
|
n,
|
|
4727
|
+
C,
|
|
4435
4728
|
i,
|
|
4436
4729
|
o,
|
|
4437
|
-
|
|
4438
|
-
|
|
4730
|
+
s,
|
|
4731
|
+
a,
|
|
4732
|
+
l,
|
|
4733
|
+
u,
|
|
4734
|
+
h,
|
|
4735
|
+
gr,
|
|
4736
|
+
yr,
|
|
4737
|
+
vr,
|
|
4738
|
+
_r,
|
|
4739
|
+
Er,
|
|
4740
|
+
xr
|
|
4439
4741
|
];
|
|
4440
4742
|
}
|
|
4441
|
-
class
|
|
4743
|
+
class go extends Yr {
|
|
4442
4744
|
constructor(t) {
|
|
4443
|
-
super(),
|
|
4745
|
+
super(), Jr(
|
|
4444
4746
|
this,
|
|
4445
4747
|
t,
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4748
|
+
bo,
|
|
4749
|
+
po,
|
|
4750
|
+
$t,
|
|
4449
4751
|
{
|
|
4450
|
-
clientstyling:
|
|
4451
|
-
clientstylingurl:
|
|
4452
|
-
mbsource:
|
|
4752
|
+
clientstyling: 10,
|
|
4753
|
+
clientstylingurl: 11,
|
|
4754
|
+
mbsource: 12,
|
|
4755
|
+
betslipbuttonbar: 13,
|
|
4756
|
+
session: 14,
|
|
4757
|
+
lang: 15,
|
|
4758
|
+
translationurl: 16
|
|
4453
4759
|
},
|
|
4454
|
-
|
|
4760
|
+
ao
|
|
4455
4761
|
);
|
|
4456
4762
|
}
|
|
4457
4763
|
get clientstyling() {
|
|
4458
|
-
return this.$$.ctx[
|
|
4764
|
+
return this.$$.ctx[10];
|
|
4459
4765
|
}
|
|
4460
4766
|
set clientstyling(t) {
|
|
4461
|
-
this.$$set({ clientstyling: t }),
|
|
4767
|
+
this.$$set({ clientstyling: t }), R();
|
|
4462
4768
|
}
|
|
4463
4769
|
get clientstylingurl() {
|
|
4464
|
-
return this.$$.ctx[
|
|
4770
|
+
return this.$$.ctx[11];
|
|
4465
4771
|
}
|
|
4466
4772
|
set clientstylingurl(t) {
|
|
4467
|
-
this.$$set({ clientstylingurl: t }),
|
|
4773
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4468
4774
|
}
|
|
4469
4775
|
get mbsource() {
|
|
4470
|
-
return this.$$.ctx[
|
|
4776
|
+
return this.$$.ctx[12];
|
|
4471
4777
|
}
|
|
4472
4778
|
set mbsource(t) {
|
|
4473
|
-
this.$$set({ mbsource: t }),
|
|
4779
|
+
this.$$set({ mbsource: t }), R();
|
|
4780
|
+
}
|
|
4781
|
+
get betslipbuttonbar() {
|
|
4782
|
+
return this.$$.ctx[13];
|
|
4783
|
+
}
|
|
4784
|
+
set betslipbuttonbar(t) {
|
|
4785
|
+
this.$$set({ betslipbuttonbar: t }), R();
|
|
4786
|
+
}
|
|
4787
|
+
get session() {
|
|
4788
|
+
return this.$$.ctx[14];
|
|
4789
|
+
}
|
|
4790
|
+
set session(t) {
|
|
4791
|
+
this.$$set({ session: t }), R();
|
|
4792
|
+
}
|
|
4793
|
+
get lang() {
|
|
4794
|
+
return this.$$.ctx[15];
|
|
4795
|
+
}
|
|
4796
|
+
set lang(t) {
|
|
4797
|
+
this.$$set({ lang: t }), R();
|
|
4798
|
+
}
|
|
4799
|
+
get translationurl() {
|
|
4800
|
+
return this.$$.ctx[16];
|
|
4801
|
+
}
|
|
4802
|
+
set translationurl(t) {
|
|
4803
|
+
this.$$set({ translationurl: t }), R();
|
|
4474
4804
|
}
|
|
4475
4805
|
}
|
|
4476
|
-
|
|
4806
|
+
Qr(go, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, betslipbuttonbar: {}, session: {}, lang: {}, translationurl: {} }, [], [], !0);
|
|
4477
4807
|
export {
|
|
4478
|
-
|
|
4808
|
+
go as default
|
|
4479
4809
|
};
|