@everymatrix/player-panic-button 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/{PlayerPanicButton-TNcTRcwd.cjs → PlayerPanicButton-BVEtQHiO.cjs} +3 -3
- package/components/{PlayerPanicButton-CHPi4jBB.js → PlayerPanicButton-BrBe3Lkn.js} +146 -146
- package/components/{PlayerPanicButton-DCPvfmX9.js → PlayerPanicButton-XclxAATB.js} +142 -142
- package/es2015/player-panic-button.cjs +1 -1
- package/es2015/player-panic-button.js +1 -1
- package/esnext/player-panic-button.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function vt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
6
|
function We() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function re(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(vt);
|
|
11
11
|
}
|
|
12
12
|
function ke(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function yt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
function er(e) {
|
|
@@ -144,26 +144,26 @@ function pr(e) {
|
|
|
144
144
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function mr(e) {
|
|
148
148
|
const t = [], r = [];
|
|
149
149
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const dr = /* @__PURE__ */ new Set();
|
|
152
152
|
function br(e, t) {
|
|
153
|
-
e && e.i && (
|
|
153
|
+
e && e.i && (dr.delete(e), e.i(t));
|
|
154
154
|
}
|
|
155
155
|
function gr(e, t, r) {
|
|
156
156
|
const { fragment: n, after_update: i } = e.$$;
|
|
157
157
|
n && n.m(t, r), Ae(() => {
|
|
158
|
-
const o = e.$$.on_mount.map(
|
|
158
|
+
const o = e.$$.on_mount.map(vt).filter(ke);
|
|
159
159
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
160
160
|
}), i.forEach(Ae);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function vr(e, t) {
|
|
163
163
|
const r = e.$$;
|
|
164
|
-
r.fragment !== null && (
|
|
164
|
+
r.fragment !== null && (mr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function yr(e, t) {
|
|
167
167
|
e.$$.dirty[0] === -1 && (G.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
168
168
|
}
|
|
169
169
|
function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
@@ -192,9 +192,9 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
192
192
|
};
|
|
193
193
|
s && s(u.root);
|
|
194
194
|
let l = !1;
|
|
195
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
196
|
-
const
|
|
197
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
195
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
196
|
+
const y = d.length ? d[0] : f;
|
|
197
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && yr(e, c)), f;
|
|
198
198
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
199
199
|
if (t.hydrate) {
|
|
200
200
|
const c = sr(t.target);
|
|
@@ -400,7 +400,7 @@ class _r {
|
|
|
400
400
|
$$set = void 0;
|
|
401
401
|
/** @returns {void} */
|
|
402
402
|
$destroy() {
|
|
403
|
-
|
|
403
|
+
vr(this, 1), this.$destroy = B;
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -532,8 +532,8 @@ var be = function() {
|
|
|
532
532
|
var u = h.value;
|
|
533
533
|
u.remove(this);
|
|
534
534
|
}
|
|
535
|
-
} catch (
|
|
536
|
-
t = { error:
|
|
535
|
+
} catch (v) {
|
|
536
|
+
t = { error: v };
|
|
537
537
|
} finally {
|
|
538
538
|
try {
|
|
539
539
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -547,26 +547,26 @@ var be = function() {
|
|
|
547
547
|
if (P(l))
|
|
548
548
|
try {
|
|
549
549
|
l();
|
|
550
|
-
} catch (
|
|
551
|
-
o =
|
|
550
|
+
} catch (v) {
|
|
551
|
+
o = v instanceof _e ? v.errors : [v];
|
|
552
552
|
}
|
|
553
553
|
var c = this._finalizers;
|
|
554
554
|
if (c) {
|
|
555
555
|
this._finalizers = null;
|
|
556
556
|
try {
|
|
557
|
-
for (var f = Ie(c),
|
|
558
|
-
var
|
|
557
|
+
for (var f = Ie(c), d = f.next(); !d.done; d = f.next()) {
|
|
558
|
+
var y = d.value;
|
|
559
559
|
try {
|
|
560
|
-
Je(
|
|
561
|
-
} catch (
|
|
562
|
-
o = o ?? [],
|
|
560
|
+
Je(y);
|
|
561
|
+
} catch (v) {
|
|
562
|
+
o = o ?? [], v instanceof _e ? o = j(j([], Ce(o)), Ce(v.errors)) : o.push(v);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
} catch (
|
|
566
|
-
n = { error:
|
|
565
|
+
} catch (v) {
|
|
566
|
+
n = { error: v };
|
|
567
567
|
} finally {
|
|
568
568
|
try {
|
|
569
|
-
|
|
569
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
570
570
|
} finally {
|
|
571
571
|
if (n) throw n.error;
|
|
572
572
|
}
|
|
@@ -949,7 +949,7 @@ function ge(e, t = B) {
|
|
|
949
949
|
let r;
|
|
950
950
|
const n = /* @__PURE__ */ new Set();
|
|
951
951
|
function i(a) {
|
|
952
|
-
if (
|
|
952
|
+
if (yt(e, a) && (e = a, r)) {
|
|
953
953
|
const h = !U.length;
|
|
954
954
|
for (const u of n)
|
|
955
955
|
u[1](), U.push(u, e);
|
|
@@ -984,21 +984,21 @@ function W(e, t, r) {
|
|
|
984
984
|
if (l)
|
|
985
985
|
return;
|
|
986
986
|
c();
|
|
987
|
-
const
|
|
988
|
-
o ? s(
|
|
989
|
-
},
|
|
990
|
-
(
|
|
991
|
-
|
|
987
|
+
const y = t(n ? u[0] : u, s, a);
|
|
988
|
+
o ? s(y) : c = ke(y) ? y : B;
|
|
989
|
+
}, d = i.map(
|
|
990
|
+
(y, v) => xt(
|
|
991
|
+
y,
|
|
992
992
|
(S) => {
|
|
993
|
-
u[
|
|
993
|
+
u[v] = S, l &= ~(1 << v), h && f();
|
|
994
994
|
},
|
|
995
995
|
() => {
|
|
996
|
-
l |= 1 <<
|
|
996
|
+
l |= 1 << v;
|
|
997
997
|
}
|
|
998
998
|
)
|
|
999
999
|
);
|
|
1000
1000
|
return h = !0, f(), function() {
|
|
1001
|
-
re(
|
|
1001
|
+
re(d), c(), h = !1;
|
|
1002
1002
|
};
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
@@ -1261,11 +1261,11 @@ function pn(e) {
|
|
|
1261
1261
|
return "";
|
|
1262
1262
|
}), t;
|
|
1263
1263
|
}
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1264
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1265
|
+
function dn(e) {
|
|
1266
1266
|
if (e.length === 0)
|
|
1267
1267
|
throw new Error("Number skeleton cannot be empty");
|
|
1268
|
-
for (var t = e.split(
|
|
1268
|
+
for (var t = e.split(mn).filter(function(f) {
|
|
1269
1269
|
return f.length > 0;
|
|
1270
1270
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1271
1271
|
var o = i[n], s = o.split("/");
|
|
@@ -1330,7 +1330,7 @@ function jt(e) {
|
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function vn(e) {
|
|
1334
1334
|
var t;
|
|
1335
1335
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1336
1336
|
notation: "engineering"
|
|
@@ -1348,7 +1348,7 @@ function at(e) {
|
|
|
1348
1348
|
var t = {}, r = jt(e);
|
|
1349
1349
|
return r || t;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function yn(e) {
|
|
1352
1352
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1353
1353
|
var i = n[r];
|
|
1354
1354
|
switch (i.stem) {
|
|
@@ -1434,13 +1434,13 @@ function vn(e) {
|
|
|
1434
1434
|
case "integer-width":
|
|
1435
1435
|
if (i.options.length > 1)
|
|
1436
1436
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1437
|
-
i.options[0].replace(gn, function(h, u, l, c, f,
|
|
1437
|
+
i.options[0].replace(gn, function(h, u, l, c, f, d) {
|
|
1438
1438
|
if (u)
|
|
1439
1439
|
t.minimumIntegerDigits = l.length;
|
|
1440
1440
|
else {
|
|
1441
1441
|
if (c && f)
|
|
1442
1442
|
throw new Error("We currently do not support maximum integer digits");
|
|
1443
|
-
if (
|
|
1443
|
+
if (d)
|
|
1444
1444
|
throw new Error("We currently do not support exact integer digits");
|
|
1445
1445
|
}
|
|
1446
1446
|
return "";
|
|
@@ -1454,8 +1454,8 @@ function vn(e) {
|
|
|
1454
1454
|
if (ot.test(i.stem)) {
|
|
1455
1455
|
if (i.options.length > 1)
|
|
1456
1456
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1457
|
-
i.stem.replace(ot, function(h, u, l, c, f,
|
|
1458
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1457
|
+
i.stem.replace(ot, function(h, u, l, c, f, d) {
|
|
1458
|
+
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), "";
|
|
1459
1459
|
});
|
|
1460
1460
|
var o = i.options[0];
|
|
1461
1461
|
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), st(o)));
|
|
@@ -1467,7 +1467,7 @@ function vn(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
var s = jt(i.stem);
|
|
1469
1469
|
s && (t = b(b({}, t), s));
|
|
1470
|
-
var a =
|
|
1470
|
+
var a = vn(i.stem);
|
|
1471
1471
|
a && (t = b(b({}, t), a));
|
|
1472
1472
|
}
|
|
1473
1473
|
return t;
|
|
@@ -2925,7 +2925,7 @@ function En(e) {
|
|
|
2925
2925
|
return i[0];
|
|
2926
2926
|
}
|
|
2927
2927
|
var Te, _n = new RegExp("^".concat(Ut.source, "*")), Sn = new RegExp("".concat(Ut.source, "*$"));
|
|
2928
|
-
function
|
|
2928
|
+
function m(e, t) {
|
|
2929
2929
|
return { start: e, end: t };
|
|
2930
2930
|
}
|
|
2931
2931
|
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, Hn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
@@ -3053,12 +3053,12 @@ var Mn = (
|
|
|
3053
3053
|
var a = this.clonePosition();
|
|
3054
3054
|
this.bump(), i.push({
|
|
3055
3055
|
type: x.pound,
|
|
3056
|
-
location:
|
|
3056
|
+
location: m(a, this.clonePosition())
|
|
3057
3057
|
});
|
|
3058
3058
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3059
3059
|
if (n)
|
|
3060
3060
|
break;
|
|
3061
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3061
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3062
3062
|
} else if (o === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
3063
3063
|
var s = this.parseTag(t, r);
|
|
3064
3064
|
if (s.err)
|
|
@@ -3082,7 +3082,7 @@ var Mn = (
|
|
|
3082
3082
|
val: {
|
|
3083
3083
|
type: x.literal,
|
|
3084
3084
|
value: "<".concat(i, "/>"),
|
|
3085
|
-
location:
|
|
3085
|
+
location: m(n, this.clonePosition())
|
|
3086
3086
|
},
|
|
3087
3087
|
err: null
|
|
3088
3088
|
};
|
|
@@ -3093,21 +3093,21 @@ var Mn = (
|
|
|
3093
3093
|
var s = o.val, a = this.clonePosition();
|
|
3094
3094
|
if (this.bumpIf("</")) {
|
|
3095
3095
|
if (this.isEOF() || !Ue(this.char()))
|
|
3096
|
-
return this.error(p.INVALID_TAG,
|
|
3096
|
+
return this.error(p.INVALID_TAG, m(a, this.clonePosition()));
|
|
3097
3097
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3098
|
-
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3098
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3099
3099
|
val: {
|
|
3100
3100
|
type: x.tag,
|
|
3101
3101
|
value: i,
|
|
3102
3102
|
children: s,
|
|
3103
|
-
location:
|
|
3103
|
+
location: m(n, this.clonePosition())
|
|
3104
3104
|
},
|
|
3105
3105
|
err: null
|
|
3106
|
-
} : this.error(p.INVALID_TAG,
|
|
3106
|
+
} : this.error(p.INVALID_TAG, m(a, this.clonePosition())));
|
|
3107
3107
|
} else
|
|
3108
|
-
return this.error(p.UNCLOSED_TAG,
|
|
3108
|
+
return this.error(p.UNCLOSED_TAG, m(n, this.clonePosition()));
|
|
3109
3109
|
} else
|
|
3110
|
-
return this.error(p.INVALID_TAG,
|
|
3110
|
+
return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
|
|
3111
3111
|
}, e.prototype.parseTagName = function() {
|
|
3112
3112
|
var t = this.offset();
|
|
3113
3113
|
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
@@ -3132,7 +3132,7 @@ var Mn = (
|
|
|
3132
3132
|
}
|
|
3133
3133
|
break;
|
|
3134
3134
|
}
|
|
3135
|
-
var h =
|
|
3135
|
+
var h = m(n, this.clonePosition());
|
|
3136
3136
|
return {
|
|
3137
3137
|
val: { type: x.literal, value: i, location: h },
|
|
3138
3138
|
err: null
|
|
@@ -3182,14 +3182,14 @@ var Mn = (
|
|
|
3182
3182
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3183
3183
|
var n = this.clonePosition();
|
|
3184
3184
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3185
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3185
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3186
3186
|
if (this.char() === 125)
|
|
3187
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
3187
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, m(n, this.clonePosition()));
|
|
3188
3188
|
var i = this.parseIdentifierIfPossible().value;
|
|
3189
3189
|
if (!i)
|
|
3190
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3190
|
+
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3191
3191
|
if (this.bumpSpace(), this.isEOF())
|
|
3192
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3192
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3193
3193
|
switch (this.char()) {
|
|
3194
3194
|
case 125:
|
|
3195
3195
|
return this.bump(), {
|
|
@@ -3197,25 +3197,25 @@ var Mn = (
|
|
|
3197
3197
|
type: x.argument,
|
|
3198
3198
|
// value does not include the opening and closing braces.
|
|
3199
3199
|
value: i,
|
|
3200
|
-
location:
|
|
3200
|
+
location: m(n, this.clonePosition())
|
|
3201
3201
|
},
|
|
3202
3202
|
err: null
|
|
3203
3203
|
};
|
|
3204
3204
|
case 44:
|
|
3205
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3205
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3206
3206
|
default:
|
|
3207
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3207
|
+
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3208
3208
|
}
|
|
3209
3209
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3210
3210
|
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3211
3211
|
this.bumpTo(i);
|
|
3212
|
-
var o = this.clonePosition(), s =
|
|
3212
|
+
var o = this.clonePosition(), s = m(t, o);
|
|
3213
3213
|
return { value: n, location: s };
|
|
3214
3214
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3215
3215
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3216
3216
|
switch (a) {
|
|
3217
3217
|
case "":
|
|
3218
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
3218
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, m(s, h));
|
|
3219
3219
|
case "number":
|
|
3220
3220
|
case "date":
|
|
3221
3221
|
case "time": {
|
|
@@ -3228,25 +3228,25 @@ var Mn = (
|
|
|
3228
3228
|
return c;
|
|
3229
3229
|
var f = Ln(c.val);
|
|
3230
3230
|
if (f.length === 0)
|
|
3231
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
3232
|
-
var
|
|
3233
|
-
u = { style: f, styleLocation:
|
|
3231
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3232
|
+
var d = m(l, this.clonePosition());
|
|
3233
|
+
u = { style: f, styleLocation: d };
|
|
3234
3234
|
}
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3237
|
-
return
|
|
3238
|
-
var
|
|
3235
|
+
var y = this.tryParseArgumentClose(i);
|
|
3236
|
+
if (y.err)
|
|
3237
|
+
return y;
|
|
3238
|
+
var v = m(i, this.clonePosition());
|
|
3239
3239
|
if (u && ut(u?.style, "::", 0)) {
|
|
3240
3240
|
var S = Nn(u.style.slice(2));
|
|
3241
3241
|
if (a === "number") {
|
|
3242
3242
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3243
3243
|
return c.err ? c : {
|
|
3244
|
-
val: { type: x.number, value: n, location:
|
|
3244
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
|
3245
3245
|
err: null
|
|
3246
3246
|
};
|
|
3247
3247
|
} else {
|
|
3248
3248
|
if (S.length === 0)
|
|
3249
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3249
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
3250
3250
|
var N = S;
|
|
3251
3251
|
this.locale && (N = xn(S, this.locale));
|
|
3252
3252
|
var f = {
|
|
@@ -3256,7 +3256,7 @@ var Mn = (
|
|
|
3256
3256
|
parsedOptions: this.shouldParseSkeletons ? pn(N) : {}
|
|
3257
3257
|
}, O = a === "date" ? x.date : x.time;
|
|
3258
3258
|
return {
|
|
3259
|
-
val: { type: O, value: n, location:
|
|
3259
|
+
val: { type: O, value: n, location: v, style: f },
|
|
3260
3260
|
err: null
|
|
3261
3261
|
};
|
|
3262
3262
|
}
|
|
@@ -3265,7 +3265,7 @@ var Mn = (
|
|
|
3265
3265
|
val: {
|
|
3266
3266
|
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3267
3267
|
value: n,
|
|
3268
|
-
location:
|
|
3268
|
+
location: v,
|
|
3269
3269
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3270
3270
|
},
|
|
3271
3271
|
err: null
|
|
@@ -3276,12 +3276,12 @@ var Mn = (
|
|
|
3276
3276
|
case "select": {
|
|
3277
3277
|
var E = this.clonePosition();
|
|
3278
3278
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3279
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3279
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(E, b({}, E)));
|
|
3280
3280
|
this.bumpSpace();
|
|
3281
3281
|
var T = this.parseIdentifierIfPossible(), H = 0;
|
|
3282
3282
|
if (a !== "select" && T.value === "offset") {
|
|
3283
3283
|
if (!this.bumpIf(":"))
|
|
3284
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3284
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3285
3285
|
this.bumpSpace();
|
|
3286
3286
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3287
3287
|
if (c.err)
|
|
@@ -3291,10 +3291,10 @@ var Mn = (
|
|
|
3291
3291
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
3292
3292
|
if ($.err)
|
|
3293
3293
|
return $;
|
|
3294
|
-
var
|
|
3295
|
-
if (
|
|
3296
|
-
return
|
|
3297
|
-
var ie =
|
|
3294
|
+
var y = this.tryParseArgumentClose(i);
|
|
3295
|
+
if (y.err)
|
|
3296
|
+
return y;
|
|
3297
|
+
var ie = m(i, this.clonePosition());
|
|
3298
3298
|
return a === "select" ? {
|
|
3299
3299
|
val: {
|
|
3300
3300
|
type: x.select,
|
|
@@ -3316,10 +3316,10 @@ var Mn = (
|
|
|
3316
3316
|
};
|
|
3317
3317
|
}
|
|
3318
3318
|
default:
|
|
3319
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3319
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, m(s, h));
|
|
3320
3320
|
}
|
|
3321
3321
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3322
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3322
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3323
3323
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3324
3324
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3325
3325
|
var n = this.char();
|
|
@@ -3328,7 +3328,7 @@ var Mn = (
|
|
|
3328
3328
|
this.bump();
|
|
3329
3329
|
var i = this.clonePosition();
|
|
3330
3330
|
if (!this.bumpUntil("'"))
|
|
3331
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3331
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, m(i, this.clonePosition()));
|
|
3332
3332
|
this.bump();
|
|
3333
3333
|
break;
|
|
3334
3334
|
}
|
|
@@ -3358,7 +3358,7 @@ var Mn = (
|
|
|
3358
3358
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3359
3359
|
var n = [];
|
|
3360
3360
|
try {
|
|
3361
|
-
n =
|
|
3361
|
+
n = dn(t);
|
|
3362
3362
|
} catch {
|
|
3363
3363
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3364
3364
|
}
|
|
@@ -3367,7 +3367,7 @@ var Mn = (
|
|
|
3367
3367
|
type: V.number,
|
|
3368
3368
|
tokens: n,
|
|
3369
3369
|
location: r,
|
|
3370
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3370
|
+
parsedOptions: this.shouldParseSkeletons ? yn(n) : {}
|
|
3371
3371
|
},
|
|
3372
3372
|
err: null
|
|
3373
3373
|
};
|
|
@@ -3379,31 +3379,31 @@ var Mn = (
|
|
|
3379
3379
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3380
3380
|
if (f.err)
|
|
3381
3381
|
return f;
|
|
3382
|
-
l =
|
|
3382
|
+
l = m(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3383
3383
|
} else
|
|
3384
3384
|
break;
|
|
3385
3385
|
}
|
|
3386
3386
|
if (h.has(u))
|
|
3387
3387
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3388
3388
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3389
|
-
var
|
|
3389
|
+
var d = this.clonePosition();
|
|
3390
3390
|
if (!this.bumpIf("{"))
|
|
3391
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3392
|
-
var
|
|
3393
|
-
if (v.err)
|
|
3394
|
-
return v;
|
|
3395
|
-
var y = this.tryParseArgumentClose(m);
|
|
3391
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3392
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3396
3393
|
if (y.err)
|
|
3397
3394
|
return y;
|
|
3395
|
+
var v = this.tryParseArgumentClose(d);
|
|
3396
|
+
if (v.err)
|
|
3397
|
+
return v;
|
|
3398
3398
|
a.push([
|
|
3399
3399
|
u,
|
|
3400
3400
|
{
|
|
3401
|
-
value:
|
|
3402
|
-
location: d
|
|
3401
|
+
value: y.val,
|
|
3402
|
+
location: m(d, this.clonePosition())
|
|
3403
3403
|
}
|
|
3404
3404
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3405
3405
|
}
|
|
3406
|
-
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3406
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3407
3407
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3408
3408
|
var n = 1, i = this.clonePosition();
|
|
3409
3409
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3414,7 +3414,7 @@ var Mn = (
|
|
|
3414
3414
|
else
|
|
3415
3415
|
break;
|
|
3416
3416
|
}
|
|
3417
|
-
var h =
|
|
3417
|
+
var h = m(i, this.clonePosition());
|
|
3418
3418
|
return o ? (s *= n, In(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3419
3419
|
}, e.prototype.offset = function() {
|
|
3420
3420
|
return this.position.offset;
|
|
@@ -3517,7 +3517,7 @@ var X;
|
|
|
3517
3517
|
(function(e) {
|
|
3518
3518
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3519
3519
|
})(X || (X = {}));
|
|
3520
|
-
var
|
|
3520
|
+
var ve = (
|
|
3521
3521
|
/** @class */
|
|
3522
3522
|
function(e) {
|
|
3523
3523
|
A(t, e);
|
|
@@ -3537,7 +3537,7 @@ var ye = (
|
|
|
3537
3537
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3538
3538
|
}
|
|
3539
3539
|
return t;
|
|
3540
|
-
}(
|
|
3540
|
+
}(ve)
|
|
3541
3541
|
), Gn = (
|
|
3542
3542
|
/** @class */
|
|
3543
3543
|
function(e) {
|
|
@@ -3546,7 +3546,7 @@ var ye = (
|
|
|
3546
3546
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3547
3547
|
}
|
|
3548
3548
|
return t;
|
|
3549
|
-
}(
|
|
3549
|
+
}(ve)
|
|
3550
3550
|
), Fn = (
|
|
3551
3551
|
/** @class */
|
|
3552
3552
|
function(e) {
|
|
@@ -3555,7 +3555,7 @@ var ye = (
|
|
|
3555
3555
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3556
3556
|
}
|
|
3557
3557
|
return t;
|
|
3558
|
-
}(
|
|
3558
|
+
}(ve)
|
|
3559
3559
|
), _;
|
|
3560
3560
|
(function(e) {
|
|
3561
3561
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3605,34 +3605,34 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3605
3605
|
continue;
|
|
3606
3606
|
}
|
|
3607
3607
|
if (Nt(l)) {
|
|
3608
|
-
var
|
|
3608
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3609
3609
|
a.push({
|
|
3610
3610
|
type: _.literal,
|
|
3611
|
-
value: r.getDateTimeFormat(t,
|
|
3611
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3612
3612
|
});
|
|
3613
3613
|
continue;
|
|
3614
3614
|
}
|
|
3615
3615
|
if (Lt(l)) {
|
|
3616
|
-
var
|
|
3616
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3617
3617
|
a.push({
|
|
3618
3618
|
type: _.literal,
|
|
3619
|
-
value: r.getDateTimeFormat(t,
|
|
3619
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3620
3620
|
});
|
|
3621
3621
|
continue;
|
|
3622
3622
|
}
|
|
3623
3623
|
if (Ct(l)) {
|
|
3624
|
-
var
|
|
3625
|
-
|
|
3624
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Dt(l.style) ? l.style.parsedOptions : void 0;
|
|
3625
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3626
3626
|
type: _.literal,
|
|
3627
|
-
value: r.getNumberFormat(t,
|
|
3627
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3628
3628
|
});
|
|
3629
3629
|
continue;
|
|
3630
3630
|
}
|
|
3631
3631
|
if (Rt(l)) {
|
|
3632
|
-
var
|
|
3632
|
+
var y = l.children, v = l.value, S = i[v];
|
|
3633
3633
|
if (!kn(S))
|
|
3634
|
-
throw new Gn(
|
|
3635
|
-
var N = ce(
|
|
3634
|
+
throw new Gn(v, "function", s);
|
|
3635
|
+
var N = ce(y, t, r, n, i, o), O = S(N.map(function(H) {
|
|
3636
3636
|
return H.value;
|
|
3637
3637
|
}));
|
|
3638
3638
|
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(H) {
|
|
@@ -3653,7 +3653,7 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3653
3653
|
var E = l.options["=".concat(f)];
|
|
3654
3654
|
if (!E) {
|
|
3655
3655
|
if (!Intl.PluralRules)
|
|
3656
|
-
throw new
|
|
3656
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3657
3657
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3658
3658
|
`, X.MISSING_INTL_API, s);
|
|
3659
3659
|
var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
@@ -3861,7 +3861,7 @@ const C = {}, Qn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][
|
|
|
3861
3861
|
return;
|
|
3862
3862
|
if (t in C && e in C[t])
|
|
3863
3863
|
return C[t][e];
|
|
3864
|
-
const r =
|
|
3864
|
+
const r = ye(t);
|
|
3865
3865
|
for (let n = 0; n < r.length; n++) {
|
|
3866
3866
|
const i = r[n], o = Yn(i, e);
|
|
3867
3867
|
if (o)
|
|
@@ -3885,7 +3885,7 @@ function Yn(e, t) {
|
|
|
3885
3885
|
function qn(e) {
|
|
3886
3886
|
if (e == null)
|
|
3887
3887
|
return;
|
|
3888
|
-
const t =
|
|
3888
|
+
const t = ye(e);
|
|
3889
3889
|
for (let r = 0; r < t.length; r++) {
|
|
3890
3890
|
const n = t[r];
|
|
3891
3891
|
if (Wt(n))
|
|
@@ -3908,13 +3908,13 @@ function Qt(e) {
|
|
|
3908
3908
|
return fe[e];
|
|
3909
3909
|
}
|
|
3910
3910
|
function ei(e) {
|
|
3911
|
-
return
|
|
3911
|
+
return ye(e).map((t) => {
|
|
3912
3912
|
const r = Qt(t);
|
|
3913
3913
|
return [t, r ? [...r] : []];
|
|
3914
3914
|
}).filter(([, t]) => t.length > 0);
|
|
3915
3915
|
}
|
|
3916
3916
|
function Fe(e) {
|
|
3917
|
-
return e == null ? !1 :
|
|
3917
|
+
return e == null ? !1 : ye(e).some(
|
|
3918
3918
|
(t) => {
|
|
3919
3919
|
var r;
|
|
3920
3920
|
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
@@ -3991,18 +3991,18 @@ var oi = Object.defineProperty, si = Object.defineProperties, ai = Object.getOwn
|
|
|
3991
3991
|
return e;
|
|
3992
3992
|
}, ci = (e, t) => si(e, ai(t));
|
|
3993
3993
|
let je;
|
|
3994
|
-
const
|
|
3995
|
-
function
|
|
3994
|
+
const me = ge(null);
|
|
3995
|
+
function mt(e) {
|
|
3996
3996
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3999
|
-
const r =
|
|
4000
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3998
|
+
function ye(e, t = z().fallbackLocale) {
|
|
3999
|
+
const r = mt(e);
|
|
4000
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
4001
4001
|
}
|
|
4002
4002
|
function M() {
|
|
4003
4003
|
return je ?? void 0;
|
|
4004
4004
|
}
|
|
4005
|
-
|
|
4005
|
+
me.subscribe((e) => {
|
|
4006
4006
|
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4007
4007
|
});
|
|
4008
4008
|
const fi = (e) => {
|
|
@@ -4013,13 +4013,13 @@ const fi = (e) => {
|
|
|
4013
4013
|
() => we.set(!0),
|
|
4014
4014
|
t
|
|
4015
4015
|
) : we.set(!0), Jt(e).then(() => {
|
|
4016
|
-
|
|
4016
|
+
me.set(e);
|
|
4017
4017
|
}).finally(() => {
|
|
4018
4018
|
clearTimeout(r), we.set(!1);
|
|
4019
4019
|
});
|
|
4020
4020
|
}
|
|
4021
|
-
return
|
|
4022
|
-
}, Z = ci(li({},
|
|
4021
|
+
return me.set(e);
|
|
4022
|
+
}, Z = ci(li({}, me), {
|
|
4023
4023
|
set: fi
|
|
4024
4024
|
}), xe = (e) => {
|
|
4025
4025
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -4028,19 +4028,19 @@ const fi = (e) => {
|
|
|
4028
4028
|
return i in t ? t[i] : t[i] = e(n);
|
|
4029
4029
|
};
|
|
4030
4030
|
};
|
|
4031
|
-
var pi = Object.defineProperty,
|
|
4031
|
+
var pi = Object.defineProperty, de = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
4032
4032
|
for (var r in t || (t = {}))
|
|
4033
|
-
Yt.call(t, r) &&
|
|
4034
|
-
if (
|
|
4035
|
-
for (var r of
|
|
4036
|
-
qt.call(t, r) &&
|
|
4033
|
+
Yt.call(t, r) && dt(e, r, t[r]);
|
|
4034
|
+
if (de)
|
|
4035
|
+
for (var r of de(t))
|
|
4036
|
+
qt.call(t, r) && dt(e, r, t[r]);
|
|
4037
4037
|
return e;
|
|
4038
4038
|
}, Q = (e, t) => {
|
|
4039
4039
|
var r = {};
|
|
4040
4040
|
for (var n in e)
|
|
4041
4041
|
Yt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4042
|
-
if (e != null &&
|
|
4043
|
-
for (var n of
|
|
4042
|
+
if (e != null && de)
|
|
4043
|
+
for (var n of de(e))
|
|
4044
4044
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
4045
4045
|
return r;
|
|
4046
4046
|
};
|
|
@@ -4049,14 +4049,14 @@ const te = (e, t) => {
|
|
|
4049
4049
|
if (e in r && t in r[e])
|
|
4050
4050
|
return r[e][t];
|
|
4051
4051
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4052
|
-
},
|
|
4052
|
+
}, mi = xe(
|
|
4053
4053
|
(e) => {
|
|
4054
4054
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4055
4055
|
if (r == null)
|
|
4056
4056
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4057
4057
|
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4058
4058
|
}
|
|
4059
|
-
),
|
|
4059
|
+
), di = xe(
|
|
4060
4060
|
(e) => {
|
|
4061
4061
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4062
4062
|
if (r == null)
|
|
@@ -4078,15 +4078,15 @@ const te = (e, t) => {
|
|
|
4078
4078
|
} = t, n = Q(t, [
|
|
4079
4079
|
"locale"
|
|
4080
4080
|
]);
|
|
4081
|
-
return
|
|
4082
|
-
},
|
|
4081
|
+
return mi(ze({ locale: r }, n));
|
|
4082
|
+
}, vi = (e = {}) => {
|
|
4083
4083
|
var t = e, {
|
|
4084
4084
|
locale: r = M()
|
|
4085
4085
|
} = t, n = Q(t, [
|
|
4086
4086
|
"locale"
|
|
4087
4087
|
]);
|
|
4088
|
-
return
|
|
4089
|
-
},
|
|
4088
|
+
return di(ze({ locale: r }, n));
|
|
4089
|
+
}, yi = (e = {}) => {
|
|
4090
4090
|
var t = e, {
|
|
4091
4091
|
locale: r = M()
|
|
4092
4092
|
} = t, n = Q(t, [
|
|
@@ -4130,7 +4130,7 @@ const te = (e, t) => {
|
|
|
4130
4130
|
);
|
|
4131
4131
|
}
|
|
4132
4132
|
return c;
|
|
4133
|
-
}, _i = (e, t) =>
|
|
4133
|
+
}, _i = (e, t) => yi(t).format(e), Si = (e, t) => vi(t).format(e), Bi = (e, t) => gi(t).format(e), Ti = (e, t = M()) => zt(e, t), Hi = W([Z, ne], () => Ei);
|
|
4134
4134
|
W([Z], () => _i);
|
|
4135
4135
|
W([Z], () => Si);
|
|
4136
4136
|
W([Z], () => Bi);
|
|
@@ -4242,7 +4242,7 @@ function Ai(e) {
|
|
|
4242
4242
|
function Oi(e, t, r) {
|
|
4243
4243
|
let n;
|
|
4244
4244
|
tr(e, Hi, (g) => r(5, n = g));
|
|
4245
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: h = "" } = t, { translationurl: u = "" } = t, l, c, f = !1,
|
|
4245
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: h = "" } = t, { translationurl: u = "" } = t, l, c, f = !1, d = 0, y, v = window.navigator.userAgent;
|
|
4246
4246
|
const S = () => {
|
|
4247
4247
|
fetch(u).then((w) => w.json()).then((w) => {
|
|
4248
4248
|
Object.keys(w).forEach((R) => {
|
|
@@ -4260,14 +4260,14 @@ function Oi(e, t, r) {
|
|
|
4260
4260
|
}, O = () => {
|
|
4261
4261
|
r(4, f = !1), l?.removeEventListener("mousedown", E), l?.removeEventListener("touchstart", E), l?.removeEventListener("mouseup", T), l?.removeEventListener("touchend", T);
|
|
4262
4262
|
}, E = () => {
|
|
4263
|
-
|
|
4263
|
+
d = 0, r(4, f = !0), y = setInterval(
|
|
4264
4264
|
() => {
|
|
4265
|
-
|
|
4265
|
+
d++, d >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(y), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4266
4266
|
},
|
|
4267
4267
|
1e3
|
|
4268
4268
|
);
|
|
4269
4269
|
}, T = () => {
|
|
4270
|
-
r(4, f = !1), clearInterval(
|
|
4270
|
+
r(4, f = !1), clearInterval(y);
|
|
4271
4271
|
}, H = () => {
|
|
4272
4272
|
let g = document.createElement("style");
|
|
4273
4273
|
g.innerHTML = s, c.appendChild(g);
|
|
@@ -4311,7 +4311,7 @@ function Oi(e, t, r) {
|
|
|
4311
4311
|
c,
|
|
4312
4312
|
f,
|
|
4313
4313
|
n,
|
|
4314
|
-
|
|
4314
|
+
v,
|
|
4315
4315
|
i,
|
|
4316
4316
|
s,
|
|
4317
4317
|
a,
|
|
@@ -4327,7 +4327,7 @@ class Ii extends _r {
|
|
|
4327
4327
|
t,
|
|
4328
4328
|
Oi,
|
|
4329
4329
|
Ai,
|
|
4330
|
-
|
|
4330
|
+
yt,
|
|
4331
4331
|
{
|
|
4332
4332
|
lang: 7,
|
|
4333
4333
|
customtext: 0,
|