@everymatrix/casino-betslip-indicator 1.54.8 → 1.54.9
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-BjdbLKYa.cjs → CasinoBetslipIndicator-CAB2obrZ.cjs} +4 -4
- package/components/{CasinoBetslipIndicator-CPFHawWK.js → CasinoBetslipIndicator-CkjtCY_7.js} +198 -198
- package/components/{CasinoBetslipIndicator-F5ZYdkIk.js → CasinoBetslipIndicator-DzTvg3K-.js} +194 -194
- 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-F5ZYdkIk.js → CasinoBetslipIndicator-DzTvg3K-.js}
RENAMED
|
@@ -117,7 +117,7 @@ function ar() {
|
|
|
117
117
|
function Be(e) {
|
|
118
118
|
R.push(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const ye = /* @__PURE__ */ new Set();
|
|
121
121
|
let L = 0;
|
|
122
122
|
function le() {
|
|
123
123
|
if (L !== 0)
|
|
@@ -135,13 +135,13 @@ function le() {
|
|
|
135
135
|
for (Q(null), M.length = 0, L = 0; He.length; ) He.pop()();
|
|
136
136
|
for (let t = 0; t < R.length; t += 1) {
|
|
137
137
|
const r = R[t];
|
|
138
|
-
|
|
138
|
+
ye.has(r) || (ye.add(r), r());
|
|
139
139
|
}
|
|
140
140
|
R.length = 0;
|
|
141
141
|
} while (M.length);
|
|
142
142
|
for (; We.length; )
|
|
143
143
|
We.pop()();
|
|
144
|
-
Te = !1,
|
|
144
|
+
Te = !1, ye.clear(), Q(e);
|
|
145
145
|
}
|
|
146
146
|
function ur(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
@@ -155,10 +155,10 @@ function hr(e) {
|
|
|
155
155
|
R.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), R = t;
|
|
156
156
|
}
|
|
157
157
|
const lr = /* @__PURE__ */ new Set();
|
|
158
|
-
function
|
|
158
|
+
function cr(e, t) {
|
|
159
159
|
e && e.i && (lr.delete(e), e.i(t));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function fr(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
163
|
n && n.m(t, r), Be(() => {
|
|
164
164
|
const o = e.$$.on_mount.map(pt).filter(Ge);
|
|
@@ -198,21 +198,21 @@ function dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
198
198
|
};
|
|
199
199
|
s && s(u.root);
|
|
200
200
|
let l = !1;
|
|
201
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
202
|
-
const
|
|
203
|
-
return u.ctx && i(u.ctx[
|
|
201
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
202
|
+
const y = d.length ? d[0] : f;
|
|
203
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && pr(e, c)), f;
|
|
204
204
|
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
|
-
const
|
|
207
|
-
u.fragment && u.fragment.l(
|
|
206
|
+
const c = er(t.target);
|
|
207
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
208
208
|
} else
|
|
209
209
|
u.fragment && u.fragment.c();
|
|
210
|
-
t.intro &&
|
|
210
|
+
t.intro && cr(e.$$.fragment), fr(e, t.target, t.anchor), le();
|
|
211
211
|
}
|
|
212
212
|
Q(h);
|
|
213
213
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
214
|
+
let vt;
|
|
215
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
216
216
|
/** The Svelte component constructor */
|
|
217
217
|
$$ctor;
|
|
218
218
|
/** Slots */
|
|
@@ -359,7 +359,7 @@ function se(e, t, r, n) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
function br(e, t, r, n, i, o) {
|
|
362
|
-
let s = class extends
|
|
362
|
+
let s = class extends vt {
|
|
363
363
|
constructor() {
|
|
364
364
|
super(e, r, i), this.$$p_d = t;
|
|
365
365
|
}
|
|
@@ -387,7 +387,7 @@ function br(e, t, r, n, i, o) {
|
|
|
387
387
|
}), e.element = /** @type {any} */
|
|
388
388
|
s, s;
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class vr {
|
|
391
391
|
/**
|
|
392
392
|
* ### PRIVATE API
|
|
393
393
|
*
|
|
@@ -431,8 +431,8 @@ class yr {
|
|
|
431
431
|
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
434
|
+
const yr = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yr);
|
|
436
436
|
var Ae = function(e, t) {
|
|
437
437
|
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
438
438
|
r.__proto__ = n;
|
|
@@ -449,16 +449,16 @@ function P(e, t) {
|
|
|
449
449
|
}
|
|
450
450
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
return
|
|
452
|
+
var v = function() {
|
|
453
|
+
return v = Object.assign || function(t) {
|
|
454
454
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
455
455
|
r = arguments[n];
|
|
456
456
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
457
457
|
}
|
|
458
458
|
return t;
|
|
459
|
-
},
|
|
459
|
+
}, v.apply(this, arguments);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function gr(e, t) {
|
|
462
462
|
var r = {};
|
|
463
463
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
464
464
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -501,13 +501,13 @@ function U(e, t, r) {
|
|
|
501
501
|
function A(e) {
|
|
502
502
|
return typeof e == "function";
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function yt(e) {
|
|
505
505
|
var t = function(n) {
|
|
506
506
|
Error.call(n), n.stack = new Error().stack;
|
|
507
507
|
}, r = e(t);
|
|
508
508
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
510
|
+
var ge = yt(function(e) {
|
|
511
511
|
return function(r) {
|
|
512
512
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
513
513
|
` + r.map(function(n, i) {
|
|
@@ -554,32 +554,32 @@ var me = function() {
|
|
|
554
554
|
try {
|
|
555
555
|
l();
|
|
556
556
|
} catch (m) {
|
|
557
|
-
o = m instanceof
|
|
557
|
+
o = m instanceof ge ? m.errors : [m];
|
|
558
558
|
}
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var c = this._finalizers;
|
|
560
|
+
if (c) {
|
|
561
561
|
this._finalizers = null;
|
|
562
562
|
try {
|
|
563
|
-
for (var
|
|
564
|
-
var
|
|
563
|
+
for (var f = Pe(c), d = f.next(); !d.done; d = f.next()) {
|
|
564
|
+
var y = d.value;
|
|
565
565
|
try {
|
|
566
|
-
ze(
|
|
566
|
+
ze(y);
|
|
567
567
|
} catch (m) {
|
|
568
|
-
o = o ?? [], m instanceof
|
|
568
|
+
o = o ?? [], m instanceof ge ? o = U(U([], Oe(o)), Oe(m.errors)) : o.push(m);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
} catch (m) {
|
|
572
572
|
n = { error: m };
|
|
573
573
|
} finally {
|
|
574
574
|
try {
|
|
575
|
-
d && !d.done && (i =
|
|
575
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
576
576
|
} finally {
|
|
577
577
|
if (n) throw n.error;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
if (o)
|
|
582
|
-
throw new
|
|
582
|
+
throw new ge(o);
|
|
583
583
|
}
|
|
584
584
|
}, e.prototype.add = function(t) {
|
|
585
585
|
var r;
|
|
@@ -610,7 +610,7 @@ var me = function() {
|
|
|
610
610
|
var t = new e();
|
|
611
611
|
return t.closed = !0, t;
|
|
612
612
|
}(), e;
|
|
613
|
-
}(),
|
|
613
|
+
}(), gt = me.EMPTY;
|
|
614
614
|
function xt(e) {
|
|
615
615
|
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
616
616
|
}
|
|
@@ -808,7 +808,7 @@ function Pr(e) {
|
|
|
808
808
|
function Or(e) {
|
|
809
809
|
return e && e instanceof _t || Pr(e) && xt(e);
|
|
810
810
|
}
|
|
811
|
-
var Ir =
|
|
811
|
+
var Ir = yt(function(e) {
|
|
812
812
|
return function() {
|
|
813
813
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
814
814
|
};
|
|
@@ -879,7 +879,7 @@ var Ir = gt(function(e) {
|
|
|
879
879
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
880
880
|
}, t.prototype._innerSubscribe = function(r) {
|
|
881
881
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
882
|
-
return o || s ?
|
|
882
|
+
return o || s ? gt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
883
883
|
n.currentObservers = null, Ie(a, r);
|
|
884
884
|
}));
|
|
885
885
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
@@ -908,7 +908,7 @@ var Ir = gt(function(e) {
|
|
|
908
908
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
909
909
|
}, t.prototype._subscribe = function(r) {
|
|
910
910
|
var n, i;
|
|
911
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
911
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : gt;
|
|
912
912
|
}, t;
|
|
913
913
|
}(Et), St = {
|
|
914
914
|
now: function() {
|
|
@@ -985,26 +985,26 @@ function X(e, t, r) {
|
|
|
985
985
|
return Lr(r, (s, a) => {
|
|
986
986
|
let h = !1;
|
|
987
987
|
const u = [];
|
|
988
|
-
let l = 0,
|
|
989
|
-
const
|
|
988
|
+
let l = 0, c = T;
|
|
989
|
+
const f = () => {
|
|
990
990
|
if (l)
|
|
991
991
|
return;
|
|
992
|
-
|
|
993
|
-
const
|
|
994
|
-
o ? s(
|
|
992
|
+
c();
|
|
993
|
+
const y = t(n ? u[0] : u, s, a);
|
|
994
|
+
o ? s(y) : c = Ge(y) ? y : T;
|
|
995
995
|
}, d = i.map(
|
|
996
|
-
(
|
|
997
|
-
|
|
996
|
+
(y, m) => Zt(
|
|
997
|
+
y,
|
|
998
998
|
(_) => {
|
|
999
|
-
u[m] = _, l &= ~(1 << m), h &&
|
|
999
|
+
u[m] = _, l &= ~(1 << m), h && f();
|
|
1000
1000
|
},
|
|
1001
1001
|
() => {
|
|
1002
1002
|
l |= 1 << m;
|
|
1003
1003
|
}
|
|
1004
1004
|
)
|
|
1005
1005
|
);
|
|
1006
|
-
return h = !0,
|
|
1007
|
-
K(d),
|
|
1006
|
+
return h = !0, f(), function() {
|
|
1007
|
+
K(d), c(), h = !1;
|
|
1008
1008
|
};
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
@@ -1271,25 +1271,25 @@ var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
1271
1271
|
function ln(e) {
|
|
1272
1272
|
if (e.length === 0)
|
|
1273
1273
|
throw new Error("Number skeleton cannot be empty");
|
|
1274
|
-
for (var t = e.split(hn).filter(function(
|
|
1275
|
-
return
|
|
1274
|
+
for (var t = e.split(hn).filter(function(f) {
|
|
1275
|
+
return f.length > 0;
|
|
1276
1276
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1277
1277
|
var o = i[n], s = o.split("/");
|
|
1278
1278
|
if (s.length === 0)
|
|
1279
1279
|
throw new Error("Invalid number skeleton");
|
|
1280
1280
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1281
|
-
var
|
|
1282
|
-
if (
|
|
1281
|
+
var c = l[u];
|
|
1282
|
+
if (c.length === 0)
|
|
1283
1283
|
throw new Error("Invalid number skeleton");
|
|
1284
1284
|
}
|
|
1285
1285
|
r.push({ stem: a, options: h });
|
|
1286
1286
|
}
|
|
1287
1287
|
return r;
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function cn(e) {
|
|
1290
1290
|
return e.replace(/^(.*?)-/, "");
|
|
1291
1291
|
}
|
|
1292
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1292
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
|
|
1293
1293
|
function nt(e) {
|
|
1294
1294
|
var t = {};
|
|
1295
1295
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
@@ -1378,7 +1378,7 @@ function pn(e) {
|
|
|
1378
1378
|
continue;
|
|
1379
1379
|
case "measure-unit":
|
|
1380
1380
|
case "unit":
|
|
1381
|
-
t.style = "unit", t.unit =
|
|
1381
|
+
t.style = "unit", t.unit = cn(i.options[0]);
|
|
1382
1382
|
continue;
|
|
1383
1383
|
case "compact-short":
|
|
1384
1384
|
case "K":
|
|
@@ -1389,13 +1389,13 @@ function pn(e) {
|
|
|
1389
1389
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1390
1390
|
continue;
|
|
1391
1391
|
case "scientific":
|
|
1392
|
-
t =
|
|
1393
|
-
return
|
|
1392
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1393
|
+
return v(v({}, h), it(u));
|
|
1394
1394
|
}, {}));
|
|
1395
1395
|
continue;
|
|
1396
1396
|
case "engineering":
|
|
1397
|
-
t =
|
|
1398
|
-
return
|
|
1397
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1398
|
+
return v(v({}, h), it(u));
|
|
1399
1399
|
}, {}));
|
|
1400
1400
|
continue;
|
|
1401
1401
|
case "notation-simple":
|
|
@@ -1440,11 +1440,11 @@ function pn(e) {
|
|
|
1440
1440
|
case "integer-width":
|
|
1441
1441
|
if (i.options.length > 1)
|
|
1442
1442
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1443
|
-
i.options[0].replace(
|
|
1443
|
+
i.options[0].replace(fn, function(h, u, l, c, f, d) {
|
|
1444
1444
|
if (u)
|
|
1445
1445
|
t.minimumIntegerDigits = l.length;
|
|
1446
1446
|
else {
|
|
1447
|
-
if (
|
|
1447
|
+
if (c && f)
|
|
1448
1448
|
throw new Error("We currently do not support maximum integer digits");
|
|
1449
1449
|
if (d)
|
|
1450
1450
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1460,21 +1460,21 @@ function pn(e) {
|
|
|
1460
1460
|
if (rt.test(i.stem)) {
|
|
1461
1461
|
if (i.options.length > 1)
|
|
1462
1462
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1463
|
-
i.stem.replace(rt, function(h, u, l,
|
|
1464
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1463
|
+
i.stem.replace(rt, function(h, u, l, c, f, d) {
|
|
1464
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1465
1465
|
});
|
|
1466
1466
|
var o = i.options[0];
|
|
1467
|
-
o === "w" ? t =
|
|
1467
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), nt(o)));
|
|
1468
1468
|
continue;
|
|
1469
1469
|
}
|
|
1470
1470
|
if ($t.test(i.stem)) {
|
|
1471
|
-
t =
|
|
1471
|
+
t = v(v({}, t), nt(i.stem));
|
|
1472
1472
|
continue;
|
|
1473
1473
|
}
|
|
1474
1474
|
var s = Rt(i.stem);
|
|
1475
|
-
s && (t =
|
|
1475
|
+
s && (t = v(v({}, t), s));
|
|
1476
1476
|
var a = mn(i.stem);
|
|
1477
|
-
a && (t =
|
|
1477
|
+
a && (t = v(v({}, t), a));
|
|
1478
1478
|
}
|
|
1479
1479
|
return t;
|
|
1480
1480
|
}
|
|
@@ -2930,11 +2930,11 @@ function bn(e) {
|
|
|
2930
2930
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2931
2931
|
return i[0];
|
|
2932
2932
|
}
|
|
2933
|
-
var Ee,
|
|
2933
|
+
var Ee, vn = new RegExp("^".concat(Lt.source, "*")), yn = new RegExp("".concat(Lt.source, "*$"));
|
|
2934
2934
|
function b(e, t) {
|
|
2935
2935
|
return { start: e, end: t };
|
|
2936
2936
|
}
|
|
2937
|
-
var
|
|
2937
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, _n = !!Object.fromEntries, En = !!String.prototype.codePointAt, Sn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Tn = Hn ? Number.isSafeInteger : function(e) {
|
|
2938
2938
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2939
2939
|
}, Le = !0;
|
|
2940
2940
|
try {
|
|
@@ -2943,7 +2943,7 @@ try {
|
|
|
2943
2943
|
} catch {
|
|
2944
2944
|
Le = !1;
|
|
2945
2945
|
}
|
|
2946
|
-
var ot =
|
|
2946
|
+
var ot = gn ? (
|
|
2947
2947
|
// Native
|
|
2948
2948
|
function(t, r, n) {
|
|
2949
2949
|
return t.startsWith(r, n);
|
|
@@ -2999,7 +2999,7 @@ var ot = vn ? (
|
|
|
2999
2999
|
) : (
|
|
3000
3000
|
// Ponyfill
|
|
3001
3001
|
function(t) {
|
|
3002
|
-
return t.replace(
|
|
3002
|
+
return t.replace(vn, "");
|
|
3003
3003
|
}
|
|
3004
3004
|
), Pn = wn ? (
|
|
3005
3005
|
// Native
|
|
@@ -3009,7 +3009,7 @@ var ot = vn ? (
|
|
|
3009
3009
|
) : (
|
|
3010
3010
|
// Ponyfill
|
|
3011
3011
|
function(t) {
|
|
3012
|
-
return t.replace(
|
|
3012
|
+
return t.replace(yn, "");
|
|
3013
3013
|
}
|
|
3014
3014
|
);
|
|
3015
3015
|
function Dt(e, t) {
|
|
@@ -3229,40 +3229,40 @@ var On = (
|
|
|
3229
3229
|
var u = null;
|
|
3230
3230
|
if (this.bumpIf(",")) {
|
|
3231
3231
|
this.bumpSpace();
|
|
3232
|
-
var l = this.clonePosition(),
|
|
3233
|
-
if (
|
|
3234
|
-
return
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3232
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3233
|
+
if (c.err)
|
|
3234
|
+
return c;
|
|
3235
|
+
var f = Pn(c.val);
|
|
3236
|
+
if (f.length === 0)
|
|
3237
3237
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3238
3238
|
var d = b(l, this.clonePosition());
|
|
3239
|
-
u = { style:
|
|
3239
|
+
u = { style: f, styleLocation: d };
|
|
3240
3240
|
}
|
|
3241
|
-
var
|
|
3242
|
-
if (
|
|
3243
|
-
return
|
|
3241
|
+
var y = this.tryParseArgumentClose(i);
|
|
3242
|
+
if (y.err)
|
|
3243
|
+
return y;
|
|
3244
3244
|
var m = b(i, this.clonePosition());
|
|
3245
3245
|
if (u && ot(u?.style, "::", 0)) {
|
|
3246
3246
|
var _ = An(u.style.slice(2));
|
|
3247
3247
|
if (a === "number") {
|
|
3248
|
-
var
|
|
3249
|
-
return
|
|
3250
|
-
val: { type: x.number, value: n, location: m, style:
|
|
3248
|
+
var c = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3249
|
+
return c.err ? c : {
|
|
3250
|
+
val: { type: x.number, value: n, location: m, style: c.val },
|
|
3251
3251
|
err: null
|
|
3252
3252
|
};
|
|
3253
3253
|
} else {
|
|
3254
3254
|
if (_.length === 0)
|
|
3255
3255
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
|
3256
|
-
var
|
|
3257
|
-
this.locale && (
|
|
3258
|
-
var
|
|
3256
|
+
var g = _;
|
|
3257
|
+
this.locale && (g = dn(_, this.locale));
|
|
3258
|
+
var f = {
|
|
3259
3259
|
type: G.dateTime,
|
|
3260
|
-
pattern:
|
|
3260
|
+
pattern: g,
|
|
3261
3261
|
location: u.styleLocation,
|
|
3262
|
-
parsedOptions: this.shouldParseSkeletons ? un(
|
|
3262
|
+
parsedOptions: this.shouldParseSkeletons ? un(g) : {}
|
|
3263
3263
|
}, H = a === "date" ? x.date : x.time;
|
|
3264
3264
|
return {
|
|
3265
|
-
val: { type: H, value: n, location: m, style:
|
|
3265
|
+
val: { type: H, value: n, location: m, style: f },
|
|
3266
3266
|
err: null
|
|
3267
3267
|
};
|
|
3268
3268
|
}
|
|
@@ -3282,24 +3282,24 @@ var On = (
|
|
|
3282
3282
|
case "select": {
|
|
3283
3283
|
var S = this.clonePosition();
|
|
3284
3284
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3285
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3285
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, v({}, S)));
|
|
3286
3286
|
this.bumpSpace();
|
|
3287
3287
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
3288
3288
|
if (a !== "select" && z.value === "offset") {
|
|
3289
3289
|
if (!this.bumpIf(":"))
|
|
3290
3290
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3291
3291
|
this.bumpSpace();
|
|
3292
|
-
var
|
|
3293
|
-
if (
|
|
3294
|
-
return
|
|
3295
|
-
this.bumpSpace(), z = this.parseIdentifierIfPossible(), I =
|
|
3292
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3293
|
+
if (c.err)
|
|
3294
|
+
return c;
|
|
3295
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), I = c.val;
|
|
3296
3296
|
}
|
|
3297
3297
|
var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3298
3298
|
if (ne.err)
|
|
3299
3299
|
return ne;
|
|
3300
|
-
var
|
|
3301
|
-
if (
|
|
3302
|
-
return
|
|
3300
|
+
var y = this.tryParseArgumentClose(i);
|
|
3301
|
+
if (y.err)
|
|
3302
|
+
return y;
|
|
3303
3303
|
var Ve = b(i, this.clonePosition());
|
|
3304
3304
|
return a === "select" ? {
|
|
3305
3305
|
val: {
|
|
@@ -3380,12 +3380,12 @@ var On = (
|
|
|
3380
3380
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3381
3381
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3382
3382
|
if (u.length === 0) {
|
|
3383
|
-
var
|
|
3383
|
+
var c = this.clonePosition();
|
|
3384
3384
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3385
|
-
var
|
|
3386
|
-
if (
|
|
3387
|
-
return
|
|
3388
|
-
l = b(
|
|
3385
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3386
|
+
if (f.err)
|
|
3387
|
+
return f;
|
|
3388
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3389
3389
|
} else
|
|
3390
3390
|
break;
|
|
3391
3391
|
}
|
|
@@ -3395,16 +3395,16 @@ var On = (
|
|
|
3395
3395
|
var d = this.clonePosition();
|
|
3396
3396
|
if (!this.bumpIf("{"))
|
|
3397
3397
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3398
|
-
var
|
|
3399
|
-
if (
|
|
3400
|
-
return
|
|
3398
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3399
|
+
if (y.err)
|
|
3400
|
+
return y;
|
|
3401
3401
|
var m = this.tryParseArgumentClose(d);
|
|
3402
3402
|
if (m.err)
|
|
3403
3403
|
return m;
|
|
3404
3404
|
a.push([
|
|
3405
3405
|
u,
|
|
3406
3406
|
{
|
|
3407
|
-
value:
|
|
3407
|
+
value: y.val,
|
|
3408
3408
|
location: b(d, this.clonePosition())
|
|
3409
3409
|
}
|
|
3410
3410
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -3511,7 +3511,7 @@ function Ue(e) {
|
|
|
3511
3511
|
});
|
|
3512
3512
|
}
|
|
3513
3513
|
function Ln(e, t) {
|
|
3514
|
-
t === void 0 && (t = {}), t =
|
|
3514
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3515
3515
|
var r = new On(e, t).parse();
|
|
3516
3516
|
if (r.err) {
|
|
3517
3517
|
var n = SyntaxError(p[r.err.kind]);
|
|
@@ -3599,14 +3599,14 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3599
3599
|
});
|
|
3600
3600
|
continue;
|
|
3601
3601
|
}
|
|
3602
|
-
var
|
|
3603
|
-
if (!(i &&
|
|
3604
|
-
throw new Mn(
|
|
3605
|
-
var
|
|
3602
|
+
var c = l.value;
|
|
3603
|
+
if (!(i && c in i))
|
|
3604
|
+
throw new Mn(c, s);
|
|
3605
|
+
var f = i[c];
|
|
3606
3606
|
if (on(l)) {
|
|
3607
|
-
(!
|
|
3608
|
-
type: typeof
|
|
3609
|
-
value:
|
|
3607
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3608
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3609
|
+
value: f
|
|
3610
3610
|
});
|
|
3611
3611
|
continue;
|
|
3612
3612
|
}
|
|
@@ -3614,7 +3614,7 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3614
3614
|
var d = typeof l.style == "string" ? n.date[l.style] : Ce(l.style) ? l.style.parsedOptions : void 0;
|
|
3615
3615
|
a.push({
|
|
3616
3616
|
type: w.literal,
|
|
3617
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3617
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3618
3618
|
});
|
|
3619
3619
|
continue;
|
|
3620
3620
|
}
|
|
@@ -3622,23 +3622,23 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3622
3622
|
var d = typeof l.style == "string" ? n.time[l.style] : Ce(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3623
3623
|
a.push({
|
|
3624
3624
|
type: w.literal,
|
|
3625
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3625
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3626
3626
|
});
|
|
3627
3627
|
continue;
|
|
3628
3628
|
}
|
|
3629
3629
|
if (Bt(l)) {
|
|
3630
3630
|
var d = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
|
|
3631
|
-
d && d.scale && (
|
|
3631
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3632
3632
|
type: w.literal,
|
|
3633
|
-
value: r.getNumberFormat(t, d).format(
|
|
3633
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3634
3634
|
});
|
|
3635
3635
|
continue;
|
|
3636
3636
|
}
|
|
3637
3637
|
if (Nt(l)) {
|
|
3638
|
-
var
|
|
3638
|
+
var y = l.children, m = l.value, _ = i[m];
|
|
3639
3639
|
if (!Un(_))
|
|
3640
3640
|
throw new $n(m, "function", s);
|
|
3641
|
-
var
|
|
3641
|
+
var g = ue(y, t, r, n, i, o), H = _(g.map(function(I) {
|
|
3642
3642
|
return I.value;
|
|
3643
3643
|
}));
|
|
3644
3644
|
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(I) {
|
|
@@ -3649,39 +3649,39 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3649
3649
|
}));
|
|
3650
3650
|
}
|
|
3651
3651
|
if (Ot(l)) {
|
|
3652
|
-
var S = l.options[
|
|
3652
|
+
var S = l.options[f] || l.options.other;
|
|
3653
3653
|
if (!S)
|
|
3654
|
-
throw new ut(l.value,
|
|
3654
|
+
throw new ut(l.value, f, Object.keys(l.options), s);
|
|
3655
3655
|
a.push.apply(a, ue(S.value, t, r, n, i));
|
|
3656
3656
|
continue;
|
|
3657
3657
|
}
|
|
3658
3658
|
if (It(l)) {
|
|
3659
|
-
var S = l.options["=".concat(
|
|
3659
|
+
var S = l.options["=".concat(f)];
|
|
3660
3660
|
if (!S) {
|
|
3661
3661
|
if (!Intl.PluralRules)
|
|
3662
3662
|
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3663
3663
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3664
3664
|
`, j.MISSING_INTL_API, s);
|
|
3665
|
-
var z = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3665
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3666
3666
|
S = l.options[z] || l.options.other;
|
|
3667
3667
|
}
|
|
3668
3668
|
if (!S)
|
|
3669
|
-
throw new ut(l.value,
|
|
3670
|
-
a.push.apply(a, ue(S.value, t, r, n, i,
|
|
3669
|
+
throw new ut(l.value, f, Object.keys(l.options), s);
|
|
3670
|
+
a.push.apply(a, ue(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3671
3671
|
continue;
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
3674
|
return Rn(a);
|
|
3675
3675
|
}
|
|
3676
3676
|
function Dn(e, t) {
|
|
3677
|
-
return t ?
|
|
3678
|
-
return r[n] =
|
|
3677
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3678
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3679
3679
|
}, {})) : e;
|
|
3680
3680
|
}
|
|
3681
3681
|
function Fn(e, t) {
|
|
3682
3682
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3683
3683
|
return r[n] = Dn(e[n], t[n]), r;
|
|
3684
|
-
},
|
|
3684
|
+
}, v({}, e)) : e;
|
|
3685
3685
|
}
|
|
3686
3686
|
function Se(e) {
|
|
3687
3687
|
return {
|
|
@@ -3743,8 +3743,8 @@ var jn = (
|
|
|
3743
3743
|
var u = o.formatToParts(h);
|
|
3744
3744
|
if (u.length === 1)
|
|
3745
3745
|
return u[0].value;
|
|
3746
|
-
var l = u.reduce(function(
|
|
3747
|
-
return !
|
|
3746
|
+
var l = u.reduce(function(c, f) {
|
|
3747
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3748
3748
|
}, []);
|
|
3749
3749
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3750
3750
|
}, this.formatToParts = function(h) {
|
|
@@ -3761,8 +3761,8 @@ var jn = (
|
|
|
3761
3761
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3762
3762
|
var s = i || {};
|
|
3763
3763
|
s.formatters;
|
|
3764
|
-
var a =
|
|
3765
|
-
this.ast = e.__parse(t,
|
|
3764
|
+
var a = gr(s, ["formatters"]);
|
|
3765
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3766
3766
|
} else
|
|
3767
3767
|
this.ast = t;
|
|
3768
3768
|
if (!Array.isArray(this.ast))
|
|
@@ -3997,18 +3997,18 @@ var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwn
|
|
|
3997
3997
|
return e;
|
|
3998
3998
|
}, ai = (e, t) => ri(e, ni(t));
|
|
3999
3999
|
let Fe;
|
|
4000
|
-
const
|
|
4001
|
-
function
|
|
4000
|
+
const ce = pe(null);
|
|
4001
|
+
function ct(e) {
|
|
4002
4002
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4003
4003
|
}
|
|
4004
4004
|
function be(e, t = k().fallbackLocale) {
|
|
4005
|
-
const r =
|
|
4006
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4005
|
+
const r = ct(e);
|
|
4006
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
|
|
4007
4007
|
}
|
|
4008
4008
|
function C() {
|
|
4009
4009
|
return Fe ?? void 0;
|
|
4010
4010
|
}
|
|
4011
|
-
|
|
4011
|
+
ce.subscribe((e) => {
|
|
4012
4012
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4013
4013
|
});
|
|
4014
4014
|
const ui = (e) => {
|
|
@@ -4019,34 +4019,34 @@ const ui = (e) => {
|
|
|
4019
4019
|
() => we.set(!0),
|
|
4020
4020
|
t
|
|
4021
4021
|
) : we.set(!0), Vt(e).then(() => {
|
|
4022
|
-
|
|
4022
|
+
ce.set(e);
|
|
4023
4023
|
}).finally(() => {
|
|
4024
4024
|
clearTimeout(r), we.set(!1);
|
|
4025
4025
|
});
|
|
4026
4026
|
}
|
|
4027
|
-
return
|
|
4028
|
-
}, re = ai(si({},
|
|
4027
|
+
return ce.set(e);
|
|
4028
|
+
}, re = ai(si({}, ce), {
|
|
4029
4029
|
set: ui
|
|
4030
|
-
}),
|
|
4030
|
+
}), ve = (e) => {
|
|
4031
4031
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4032
4032
|
return (n) => {
|
|
4033
4033
|
const i = JSON.stringify(n);
|
|
4034
4034
|
return i in t ? t[i] : t[i] = e(n);
|
|
4035
4035
|
};
|
|
4036
4036
|
};
|
|
4037
|
-
var hi = Object.defineProperty,
|
|
4037
|
+
var hi = Object.defineProperty, fe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
|
4038
4038
|
for (var r in t || (t = {}))
|
|
4039
|
-
Xt.call(t, r) &&
|
|
4040
|
-
if (
|
|
4041
|
-
for (var r of
|
|
4042
|
-
Wt.call(t, r) &&
|
|
4039
|
+
Xt.call(t, r) && ft(e, r, t[r]);
|
|
4040
|
+
if (fe)
|
|
4041
|
+
for (var r of fe(t))
|
|
4042
|
+
Wt.call(t, r) && ft(e, r, t[r]);
|
|
4043
4043
|
return e;
|
|
4044
4044
|
}, W = (e, t) => {
|
|
4045
4045
|
var r = {};
|
|
4046
4046
|
for (var n in e)
|
|
4047
4047
|
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4048
|
-
if (e != null &&
|
|
4049
|
-
for (var n of
|
|
4048
|
+
if (e != null && fe)
|
|
4049
|
+
for (var n of fe(e))
|
|
4050
4050
|
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
4051
4051
|
return r;
|
|
4052
4052
|
};
|
|
@@ -4055,21 +4055,21 @@ const q = (e, t) => {
|
|
|
4055
4055
|
if (e in r && t in r[e])
|
|
4056
4056
|
return r[e][t];
|
|
4057
4057
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4058
|
-
}, li =
|
|
4058
|
+
}, li = ve(
|
|
4059
4059
|
(e) => {
|
|
4060
4060
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4061
4061
|
if (r == null)
|
|
4062
4062
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4063
4063
|
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4064
4064
|
}
|
|
4065
|
-
),
|
|
4065
|
+
), ci = ve(
|
|
4066
4066
|
(e) => {
|
|
4067
4067
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4068
4068
|
if (r == null)
|
|
4069
4069
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4070
4070
|
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4071
4071
|
}
|
|
4072
|
-
),
|
|
4072
|
+
), fi = ve(
|
|
4073
4073
|
(e) => {
|
|
4074
4074
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4075
4075
|
if (r == null)
|
|
@@ -4091,20 +4091,20 @@ const q = (e, t) => {
|
|
|
4091
4091
|
} = t, n = W(t, [
|
|
4092
4092
|
"locale"
|
|
4093
4093
|
]);
|
|
4094
|
-
return
|
|
4094
|
+
return ci(ke({ locale: r }, n));
|
|
4095
4095
|
}, di = (e = {}) => {
|
|
4096
4096
|
var t = e, {
|
|
4097
4097
|
locale: r = C()
|
|
4098
4098
|
} = t, n = W(t, [
|
|
4099
4099
|
"locale"
|
|
4100
4100
|
]);
|
|
4101
|
-
return
|
|
4102
|
-
}, bi =
|
|
4101
|
+
return fi(ke({ locale: r }, n));
|
|
4102
|
+
}, bi = ve(
|
|
4103
4103
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4104
4104
|
(e, t = C()) => new jn(e, t, k().formats, {
|
|
4105
4105
|
ignoreTag: k().ignoreTag
|
|
4106
4106
|
})
|
|
4107
|
-
),
|
|
4107
|
+
), vi = (e, t = {}) => {
|
|
4108
4108
|
var r, n, i, o;
|
|
4109
4109
|
let s = t;
|
|
4110
4110
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4126,20 +4126,20 @@ const q = (e, t) => {
|
|
|
4126
4126
|
), l;
|
|
4127
4127
|
if (!a)
|
|
4128
4128
|
return l;
|
|
4129
|
-
let
|
|
4129
|
+
let c = l;
|
|
4130
4130
|
try {
|
|
4131
|
-
|
|
4132
|
-
} catch (
|
|
4133
|
-
|
|
4131
|
+
c = bi(l, h).format(a);
|
|
4132
|
+
} catch (f) {
|
|
4133
|
+
f instanceof Error && console.warn(
|
|
4134
4134
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4135
|
-
|
|
4135
|
+
f.message
|
|
4136
4136
|
);
|
|
4137
4137
|
}
|
|
4138
|
-
return
|
|
4139
|
-
},
|
|
4140
|
-
X([re, te], () =>
|
|
4138
|
+
return c;
|
|
4139
|
+
}, yi = (e, t) => di(t).format(e), gi = (e, t) => pi(t).format(e), xi = (e, t) => mi(t).format(e), _i = (e, t = C()) => Gt(e, t);
|
|
4140
|
+
X([re, te], () => vi);
|
|
4141
|
+
X([re], () => yi);
|
|
4141
4142
|
X([re], () => gi);
|
|
4142
|
-
X([re], () => vi);
|
|
4143
4143
|
X([re], () => xi);
|
|
4144
4144
|
X([re, te], () => _i);
|
|
4145
4145
|
window.emWidgets = { topic: Cr };
|
|
@@ -4148,14 +4148,14 @@ function Si(e) {
|
|
|
4148
4148
|
Qt(e, "svelte-1mvysvb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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, #D0046C));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}}");
|
|
4149
4149
|
}
|
|
4150
4150
|
function mt(e) {
|
|
4151
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4152
|
-
function d(_,
|
|
4151
|
+
let t, r, n, i, o, s, a, h, u, l, c, f;
|
|
4152
|
+
function d(_, g) {
|
|
4153
4153
|
return (
|
|
4154
4154
|
/*isLoading*/
|
|
4155
4155
|
_[3] ? Hi : wi
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
|
-
let
|
|
4158
|
+
let y = d(e), m = y(e);
|
|
4159
4159
|
return {
|
|
4160
4160
|
c() {
|
|
4161
4161
|
t = D("button"), r = D("small"), m.c(), n = qt(), i = N("svg"), o = N("g"), s = N("path"), a = N("path"), h = N("path"), u = N("path"), l = N("path"), E(r, "class", "betslipIndicator__number"), E(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
|
|
@@ -4163,19 +4163,19 @@ function mt(e) {
|
|
|
4163
4163
|
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
|
|
4164
4164
|
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`), E(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"), E(h, "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"), E(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"), E(l, "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"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"), rr(i, "enable-background", "new 0 0 64 100"), E(i, "xml:space", "preserve"), E(t, "class", "betslipIndicator");
|
|
4165
4165
|
},
|
|
4166
|
-
m(_,
|
|
4167
|
-
ee(_, t,
|
|
4166
|
+
m(_, g) {
|
|
4167
|
+
ee(_, t, g), B(t, r), m.m(r, null), B(t, n), B(t, i), B(i, o), B(o, s), B(o, a), B(o, h), B(o, u), B(o, l), c || (f = Kt(
|
|
4168
4168
|
t,
|
|
4169
4169
|
"click",
|
|
4170
4170
|
/*click_handler*/
|
|
4171
4171
|
e[7]
|
|
4172
|
-
),
|
|
4172
|
+
), c = !0);
|
|
4173
4173
|
},
|
|
4174
|
-
p(_,
|
|
4175
|
-
|
|
4174
|
+
p(_, g) {
|
|
4175
|
+
y === (y = d(_)) && m ? m.p(_, g) : (m.d(1), m = y(_), m && (m.c(), m.m(r, null)));
|
|
4176
4176
|
},
|
|
4177
4177
|
d(_) {
|
|
4178
|
-
_ && V(t), m.d(),
|
|
4178
|
+
_ && V(t), m.d(), c = !1, f();
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
@@ -4248,9 +4248,9 @@ function Bi(e, t, r) {
|
|
|
4248
4248
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, o, s = window.navigator.userAgent, a = null, h = !1, u = !0;
|
|
4249
4249
|
const l = () => {
|
|
4250
4250
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4251
|
-
},
|
|
4251
|
+
}, c = (g, H) => {
|
|
4252
4252
|
o.dispatchEvent(new CustomEvent(
|
|
4253
|
-
|
|
4253
|
+
g,
|
|
4254
4254
|
{
|
|
4255
4255
|
detail: H,
|
|
4256
4256
|
composed: !0,
|
|
@@ -4258,20 +4258,20 @@ function Bi(e, t, r) {
|
|
|
4258
4258
|
// propagate across the shadow DOM
|
|
4259
4259
|
}
|
|
4260
4260
|
));
|
|
4261
|
-
},
|
|
4262
|
-
const { type: H, payload: S } =
|
|
4263
|
-
if (
|
|
4261
|
+
}, f = (g) => {
|
|
4262
|
+
const { type: H, payload: S } = g.data;
|
|
4263
|
+
if (g.data)
|
|
4264
4264
|
switch (H) {
|
|
4265
4265
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4266
4266
|
r(1, a = S.count), r(3, u = !1);
|
|
4267
4267
|
break;
|
|
4268
4268
|
}
|
|
4269
4269
|
}, d = () => {
|
|
4270
|
-
let
|
|
4271
|
-
|
|
4272
|
-
},
|
|
4273
|
-
let
|
|
4274
|
-
fetch(
|
|
4270
|
+
let g = document.createElement("style");
|
|
4271
|
+
g.innerHTML = n, o.appendChild(g);
|
|
4272
|
+
}, y = () => {
|
|
4273
|
+
let g = new URL(i), H = document.createElement("style");
|
|
4274
|
+
fetch(g.href).then((S) => S.text()).then((S) => {
|
|
4275
4275
|
H.innerHTML = S, setTimeout(
|
|
4276
4276
|
() => {
|
|
4277
4277
|
o.appendChild(H);
|
|
@@ -4280,34 +4280,34 @@ function Bi(e, t, r) {
|
|
|
4280
4280
|
);
|
|
4281
4281
|
});
|
|
4282
4282
|
};
|
|
4283
|
-
or(() => (l(), window.addEventListener("message",
|
|
4284
|
-
window.removeEventListener("message",
|
|
4283
|
+
or(() => (l(), window.addEventListener("message", f, !1), Ei(s) && r(2, h = !0), () => {
|
|
4284
|
+
window.removeEventListener("message", f);
|
|
4285
4285
|
}));
|
|
4286
|
-
const m = (
|
|
4287
|
-
function _(
|
|
4288
|
-
He[
|
|
4289
|
-
o =
|
|
4286
|
+
const m = (g) => c("betslipClick", {});
|
|
4287
|
+
function _(g) {
|
|
4288
|
+
He[g ? "unshift" : "push"](() => {
|
|
4289
|
+
o = g, r(0, o);
|
|
4290
4290
|
});
|
|
4291
4291
|
}
|
|
4292
|
-
return e.$$set = (
|
|
4293
|
-
"clientstyling" in
|
|
4292
|
+
return e.$$set = (g) => {
|
|
4293
|
+
"clientstyling" in g && r(5, n = g.clientstyling), "clientstylingurl" in g && r(6, i = g.clientstylingurl);
|
|
4294
4294
|
}, e.$$.update = () => {
|
|
4295
4295
|
e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4296
|
-
65 && i && o &&
|
|
4296
|
+
65 && i && o && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4297
4297
|
33 && n && o && d();
|
|
4298
4298
|
}, [
|
|
4299
4299
|
o,
|
|
4300
4300
|
a,
|
|
4301
4301
|
h,
|
|
4302
4302
|
u,
|
|
4303
|
-
|
|
4303
|
+
c,
|
|
4304
4304
|
n,
|
|
4305
4305
|
i,
|
|
4306
4306
|
m,
|
|
4307
4307
|
_
|
|
4308
4308
|
];
|
|
4309
4309
|
}
|
|
4310
|
-
class Ai extends
|
|
4310
|
+
class Ai extends vr {
|
|
4311
4311
|
constructor(t) {
|
|
4312
4312
|
super(), dr(this, t, Bi, Ti, dt, { clientstyling: 5, clientstylingurl: 6 }, Si);
|
|
4313
4313
|
}
|