@everymatrix/player-panic-button 1.63.3 → 1.64.1
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-DTS8JGgV.cjs → PlayerPanicButton-B3N7_pDz.cjs} +4 -4
- package/components/{PlayerPanicButton-ByN5ciBd.js → PlayerPanicButton-BRhdV4bT.js} +136 -136
- package/components/{PlayerPanicButton-ninxHUAw.js → PlayerPanicButton-Z0b_0GW0.js} +156 -156
- 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
|
@@ -27,7 +27,7 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
32
|
function At(e) {
|
|
33
33
|
return e();
|
|
@@ -51,7 +51,7 @@ function It(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return B;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -86,7 +86,7 @@ function vr(e, t) {
|
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Nt(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
92
|
function Je(e) {
|
|
@@ -98,7 +98,7 @@ function J(e) {
|
|
|
98
98
|
function Er(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function C(e, t, r) {
|
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
103
103
|
}
|
|
104
104
|
function _r(e) {
|
|
@@ -134,30 +134,30 @@ function Tr(e) {
|
|
|
134
134
|
}
|
|
135
135
|
const G = [], pe = [];
|
|
136
136
|
let F = [];
|
|
137
|
-
const st = [],
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
137
|
+
const st = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
138
|
+
let Ne = !1;
|
|
139
|
+
function Hr() {
|
|
140
|
+
Ne || (Ne = !0, Br.then(A));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Le(e) {
|
|
143
143
|
F.push(e);
|
|
144
144
|
}
|
|
145
145
|
const we = /* @__PURE__ */ new Set();
|
|
146
|
-
let
|
|
146
|
+
let U = 0;
|
|
147
147
|
function A() {
|
|
148
|
-
if (
|
|
148
|
+
if (U !== 0)
|
|
149
149
|
return;
|
|
150
150
|
const e = q;
|
|
151
151
|
do {
|
|
152
152
|
try {
|
|
153
|
-
for (;
|
|
154
|
-
const t = G[
|
|
155
|
-
|
|
153
|
+
for (; U < G.length; ) {
|
|
154
|
+
const t = G[U];
|
|
155
|
+
U++, Y(t), Pr(t.$$);
|
|
156
156
|
}
|
|
157
157
|
} catch (t) {
|
|
158
|
-
throw G.length = 0,
|
|
158
|
+
throw G.length = 0, U = 0, t;
|
|
159
159
|
}
|
|
160
|
-
for (Y(null), G.length = 0,
|
|
160
|
+
for (Y(null), G.length = 0, U = 0; pe.length; )
|
|
161
161
|
pe.pop()();
|
|
162
162
|
for (let t = 0; t < F.length; t += 1) {
|
|
163
163
|
const r = F[t];
|
|
@@ -167,13 +167,13 @@ function A() {
|
|
|
167
167
|
} while (G.length);
|
|
168
168
|
for (; st.length; )
|
|
169
169
|
st.pop()();
|
|
170
|
-
|
|
170
|
+
Ne = !1, we.clear(), Y(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Pr(e) {
|
|
173
173
|
if (e.fragment !== null) {
|
|
174
174
|
e.update(), te(e.before_update);
|
|
175
175
|
const t = e.dirty;
|
|
176
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
176
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
function Ar(e) {
|
|
@@ -184,19 +184,19 @@ const Or = /* @__PURE__ */ new Set();
|
|
|
184
184
|
function Ir(e, t) {
|
|
185
185
|
e && e.i && (Or.delete(e), e.i(t));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Nr(e, t, r) {
|
|
188
188
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
|
-
n && n.m(t, r),
|
|
189
|
+
n && n.m(t, r), Le(() => {
|
|
190
190
|
const o = e.$$.on_mount.map(At).filter(Qe);
|
|
191
191
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
192
|
-
}), i.forEach(
|
|
192
|
+
}), i.forEach(Le);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Lr(e, t) {
|
|
195
195
|
const r = e.$$;
|
|
196
196
|
r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
198
|
+
function Cr(e, t) {
|
|
199
|
+
e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
200
|
}
|
|
201
201
|
function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
202
202
|
const u = q;
|
|
@@ -206,7 +206,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
ctx: [],
|
|
207
207
|
// state
|
|
208
208
|
props: o,
|
|
209
|
-
update:
|
|
209
|
+
update: B,
|
|
210
210
|
not_equal: i,
|
|
211
211
|
bound: it(),
|
|
212
212
|
// lifecycle
|
|
@@ -226,19 +226,19 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
let l = !1;
|
|
227
227
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
228
228
|
const g = m.length ? m[0] : f;
|
|
229
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l &&
|
|
229
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Cr(e, c)), f;
|
|
230
230
|
}) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
232
|
const c = _r(t.target);
|
|
233
233
|
h.fragment && h.fragment.l(c), c.forEach(Je);
|
|
234
234
|
} else
|
|
235
235
|
h.fragment && h.fragment.c();
|
|
236
|
-
t.intro && Ir(e.$$.fragment),
|
|
236
|
+
t.intro && Ir(e.$$.fragment), Nr(e, t.target, t.anchor), A();
|
|
237
237
|
}
|
|
238
238
|
Y(u);
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
240
|
+
let Lt;
|
|
241
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
242
242
|
constructor(t, r, n) {
|
|
243
243
|
super();
|
|
244
244
|
/** The Svelte component constructor */
|
|
@@ -282,14 +282,14 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
282
282
|
let s;
|
|
283
283
|
return {
|
|
284
284
|
c: function() {
|
|
285
|
-
s = J("slot"), o !== "default" &&
|
|
285
|
+
s = J("slot"), o !== "default" && C(s, "name", o);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
288
|
* @param {HTMLElement} target
|
|
289
289
|
* @param {HTMLElement} [anchor]
|
|
290
290
|
*/
|
|
291
291
|
m: function(h, l) {
|
|
292
|
-
|
|
292
|
+
Nt(h, s, l);
|
|
293
293
|
},
|
|
294
294
|
d: function(h) {
|
|
295
295
|
h && Je(s);
|
|
@@ -389,7 +389,7 @@ function he(e, t, r, n) {
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function $r(e, t, r, n, i, o) {
|
|
392
|
-
let s = class extends
|
|
392
|
+
let s = class extends Lt {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, r, i), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -440,7 +440,7 @@ class Rr {
|
|
|
440
440
|
}
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
443
|
-
|
|
443
|
+
Lr(this, 1), this.$destroy = B;
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -450,7 +450,7 @@ class Rr {
|
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
452
|
if (!Qe(r))
|
|
453
|
-
return
|
|
453
|
+
return B;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
456
456
|
const i = n.indexOf(r);
|
|
@@ -465,9 +465,9 @@ class Rr {
|
|
|
465
465
|
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
470
|
-
function
|
|
468
|
+
const Ur = "4";
|
|
469
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
470
|
+
function Dr(e, t) {
|
|
471
471
|
if (e) {
|
|
472
472
|
const r = document.createElement("style");
|
|
473
473
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -504,18 +504,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
504
504
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
505
505
|
PERFORMANCE OF THIS SOFTWARE.
|
|
506
506
|
***************************************************************************** */
|
|
507
|
-
var
|
|
508
|
-
return
|
|
507
|
+
var Ce = function(e, t) {
|
|
508
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
509
509
|
r.__proto__ = n;
|
|
510
510
|
} || function(r, n) {
|
|
511
511
|
for (var i in n)
|
|
512
512
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
513
|
-
},
|
|
513
|
+
}, Ce(e, t);
|
|
514
514
|
};
|
|
515
515
|
function re(e, t) {
|
|
516
516
|
if (typeof t != "function" && t !== null)
|
|
517
517
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
518
|
-
|
|
518
|
+
Ce(e, t);
|
|
519
519
|
function r() {
|
|
520
520
|
this.constructor = e;
|
|
521
521
|
}
|
|
@@ -562,13 +562,13 @@ function Re(e, t, r) {
|
|
|
562
562
|
function O(e) {
|
|
563
563
|
return typeof e == "function";
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ct(e) {
|
|
566
566
|
var t = function(n) {
|
|
567
567
|
Error.call(n), n.stack = new Error().stack;
|
|
568
568
|
}, r = e(t);
|
|
569
569
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
570
570
|
}
|
|
571
|
-
var Te =
|
|
571
|
+
var Te = Ct(function(e) {
|
|
572
572
|
return function(r) {
|
|
573
573
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
574
574
|
` + r.map(function(n, i) {
|
|
@@ -577,7 +577,7 @@ var Te = Lt(function(e) {
|
|
|
577
577
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
578
578
|
};
|
|
579
579
|
});
|
|
580
|
-
function
|
|
580
|
+
function Ue(e, t) {
|
|
581
581
|
if (e) {
|
|
582
582
|
var r = e.indexOf(t);
|
|
583
583
|
0 <= r && e.splice(r, 1);
|
|
@@ -665,10 +665,10 @@ var ge = function() {
|
|
|
665
665
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
666
666
|
}, e.prototype._removeParent = function(t) {
|
|
667
667
|
var r = this._parentage;
|
|
668
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
668
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
669
669
|
}, e.prototype.remove = function(t) {
|
|
670
670
|
var r = this._finalizers;
|
|
671
|
-
r &&
|
|
671
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
672
672
|
}, e.EMPTY = function() {
|
|
673
673
|
var t = new e();
|
|
674
674
|
return t.closed = !0, t;
|
|
@@ -710,7 +710,7 @@ var Rt = function(e) {
|
|
|
710
710
|
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
|
|
711
711
|
}
|
|
712
712
|
return t.create = function(r, n, i) {
|
|
713
|
-
return new
|
|
713
|
+
return new De(r, n, i);
|
|
714
714
|
}, t.prototype.next = function(r) {
|
|
715
715
|
this.isStopped || this._next(r);
|
|
716
716
|
}, t.prototype.error = function(r) {
|
|
@@ -765,7 +765,7 @@ var Rt = function(e) {
|
|
|
765
765
|
oe(r);
|
|
766
766
|
}
|
|
767
767
|
}, e;
|
|
768
|
-
}(),
|
|
768
|
+
}(), De = function(e) {
|
|
769
769
|
re(t, e);
|
|
770
770
|
function t(r, n, i) {
|
|
771
771
|
var o = e.call(this) || this, s;
|
|
@@ -809,7 +809,7 @@ var ht = function() {
|
|
|
809
809
|
var r = new e();
|
|
810
810
|
return r.source = this, r.operator = t, r;
|
|
811
811
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
812
|
-
var i = this, o = qr(t) ? t : new
|
|
812
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
813
813
|
return le(function() {
|
|
814
814
|
var s = i, a = s.operator, u = s.source;
|
|
815
815
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -823,7 +823,7 @@ var ht = function() {
|
|
|
823
823
|
}, e.prototype.forEach = function(t, r) {
|
|
824
824
|
var n = this;
|
|
825
825
|
return r = lt(r), new r(function(i, o) {
|
|
826
|
-
var s = new
|
|
826
|
+
var s = new De({
|
|
827
827
|
next: function(a) {
|
|
828
828
|
try {
|
|
829
829
|
t(a);
|
|
@@ -871,11 +871,11 @@ function Yr(e) {
|
|
|
871
871
|
function qr(e) {
|
|
872
872
|
return e && e instanceof Rt || Yr(e) && $t(e);
|
|
873
873
|
}
|
|
874
|
-
var Kr =
|
|
874
|
+
var Kr = Ct(function(e) {
|
|
875
875
|
return function() {
|
|
876
876
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
877
877
|
};
|
|
878
|
-
}),
|
|
878
|
+
}), Ut = function(e) {
|
|
879
879
|
re(t, e);
|
|
880
880
|
function t() {
|
|
881
881
|
var r = e.call(this) || this;
|
|
@@ -944,7 +944,7 @@ var Kr = Lt(function(e) {
|
|
|
944
944
|
}, t.prototype._innerSubscribe = function(r) {
|
|
945
945
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
946
946
|
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
947
|
-
n.currentObservers = null,
|
|
947
|
+
n.currentObservers = null, Ue(a, r);
|
|
948
948
|
}));
|
|
949
949
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
950
950
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -974,15 +974,15 @@ var Kr = Lt(function(e) {
|
|
|
974
974
|
var n, i;
|
|
975
975
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
976
976
|
}, t;
|
|
977
|
-
}(
|
|
977
|
+
}(Ut), Dt = {
|
|
978
978
|
now: function() {
|
|
979
|
-
return (
|
|
979
|
+
return (Dt.delegate || Date).now();
|
|
980
980
|
},
|
|
981
981
|
delegate: void 0
|
|
982
982
|
}, en = function(e) {
|
|
983
983
|
re(t, e);
|
|
984
984
|
function t(r, n, i) {
|
|
985
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
985
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
986
986
|
var o = e.call(this) || this;
|
|
987
987
|
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;
|
|
988
988
|
}
|
|
@@ -1002,40 +1002,40 @@ var Kr = Lt(function(e) {
|
|
|
1002
1002
|
h && o.splice(0, h + 1);
|
|
1003
1003
|
}
|
|
1004
1004
|
}, t;
|
|
1005
|
-
}(
|
|
1005
|
+
}(Ut);
|
|
1006
1006
|
const ft = [], pt = {}, tn = (e, t = 0) => {
|
|
1007
1007
|
if (ft.indexOf(e) == -1) {
|
|
1008
1008
|
const r = new en(t);
|
|
1009
1009
|
pt[e] = r, ft.push(e);
|
|
1010
1010
|
}
|
|
1011
1011
|
return pt[e];
|
|
1012
|
-
},
|
|
1012
|
+
}, D = [];
|
|
1013
1013
|
function rn(e, t) {
|
|
1014
1014
|
return {
|
|
1015
1015
|
subscribe: ye(e, t).subscribe
|
|
1016
1016
|
};
|
|
1017
1017
|
}
|
|
1018
|
-
function ye(e, t =
|
|
1018
|
+
function ye(e, t = B) {
|
|
1019
1019
|
let r;
|
|
1020
1020
|
const n = /* @__PURE__ */ new Set();
|
|
1021
1021
|
function i(a) {
|
|
1022
1022
|
if (Ot(e, a) && (e = a, r)) {
|
|
1023
|
-
const u = !
|
|
1023
|
+
const u = !D.length;
|
|
1024
1024
|
for (const h of n)
|
|
1025
|
-
h[1](),
|
|
1025
|
+
h[1](), D.push(h, e);
|
|
1026
1026
|
if (u) {
|
|
1027
|
-
for (let h = 0; h <
|
|
1028
|
-
|
|
1029
|
-
|
|
1027
|
+
for (let h = 0; h < D.length; h += 2)
|
|
1028
|
+
D[h][0](D[h + 1]);
|
|
1029
|
+
D.length = 0;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
function o(a) {
|
|
1034
1034
|
i(a(e));
|
|
1035
1035
|
}
|
|
1036
|
-
function s(a, u =
|
|
1036
|
+
function s(a, u = B) {
|
|
1037
1037
|
const h = [a, u];
|
|
1038
|
-
return n.add(h), n.size === 1 && (r = t(i, o) ||
|
|
1038
|
+
return n.add(h), n.size === 1 && (r = t(i, o) || B), a(e), () => {
|
|
1039
1039
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
@@ -1049,13 +1049,13 @@ function z(e, t, r) {
|
|
|
1049
1049
|
return rn(r, (s, a) => {
|
|
1050
1050
|
let u = !1;
|
|
1051
1051
|
const h = [];
|
|
1052
|
-
let l = 0, c =
|
|
1052
|
+
let l = 0, c = B;
|
|
1053
1053
|
const f = () => {
|
|
1054
1054
|
if (l)
|
|
1055
1055
|
return;
|
|
1056
1056
|
c();
|
|
1057
1057
|
const g = t(n ? h[0] : h, s, a);
|
|
1058
|
-
o ? s(g) : c = Qe(g) ? g :
|
|
1058
|
+
o ? s(g) : c = Qe(g) ? g : B;
|
|
1059
1059
|
}, m = i.map(
|
|
1060
1060
|
(g, b) => It(
|
|
1061
1061
|
g,
|
|
@@ -1163,15 +1163,15 @@ function ve(e, t) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1165
1165
|
}
|
|
1166
|
-
var
|
|
1167
|
-
return
|
|
1166
|
+
var P = function() {
|
|
1167
|
+
return P = Object.assign || function(t) {
|
|
1168
1168
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1169
1169
|
r = arguments[n];
|
|
1170
1170
|
for (var o in r)
|
|
1171
1171
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1172
1172
|
}
|
|
1173
1173
|
return t;
|
|
1174
|
-
},
|
|
1174
|
+
}, P.apply(this, arguments);
|
|
1175
1175
|
};
|
|
1176
1176
|
function En(e, t) {
|
|
1177
1177
|
var r = {};
|
|
@@ -1182,14 +1182,14 @@ function En(e, t) {
|
|
|
1182
1182
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1183
1183
|
return r;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Be(e, t, r) {
|
|
1186
1186
|
if (r || arguments.length === 2)
|
|
1187
1187
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1188
1188
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1189
1189
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
var r = t && t.cache ? t.cache :
|
|
1191
|
+
function He(e, t) {
|
|
1192
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1193
1193
|
return i(e, {
|
|
1194
1194
|
cache: r,
|
|
1195
1195
|
serializer: n
|
|
@@ -1218,7 +1218,7 @@ function wn(e, t) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
var Tn = function() {
|
|
1220
1220
|
return JSON.stringify(arguments);
|
|
1221
|
-
},
|
|
1221
|
+
}, Bn = (
|
|
1222
1222
|
/** @class */
|
|
1223
1223
|
function() {
|
|
1224
1224
|
function e() {
|
|
@@ -1230,11 +1230,11 @@ var Tn = function() {
|
|
|
1230
1230
|
this.cache[t] = r;
|
|
1231
1231
|
}, e;
|
|
1232
1232
|
}()
|
|
1233
|
-
),
|
|
1233
|
+
), Hn = {
|
|
1234
1234
|
create: function() {
|
|
1235
|
-
return new
|
|
1235
|
+
return new Bn();
|
|
1236
1236
|
}
|
|
1237
|
-
},
|
|
1237
|
+
}, Pe = {
|
|
1238
1238
|
variadic: wn
|
|
1239
1239
|
}, me = function() {
|
|
1240
1240
|
return me = Object.assign || function(t) {
|
|
@@ -1261,7 +1261,7 @@ var k;
|
|
|
1261
1261
|
function dt(e) {
|
|
1262
1262
|
return e.type === v.literal;
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Pn(e) {
|
|
1265
1265
|
return e.type === v.argument;
|
|
1266
1266
|
}
|
|
1267
1267
|
function kt(e) {
|
|
@@ -1393,11 +1393,11 @@ var E = function() {
|
|
|
1393
1393
|
return t;
|
|
1394
1394
|
}, E.apply(this, arguments);
|
|
1395
1395
|
};
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1396
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1397
|
+
function Ln(e) {
|
|
1398
1398
|
if (e.length === 0)
|
|
1399
1399
|
throw new Error("Number skeleton cannot be empty");
|
|
1400
|
-
for (var t = e.split(
|
|
1400
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
1401
1401
|
return f.length > 0;
|
|
1402
1402
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1403
1403
|
var o = i[n], s = o.split("/");
|
|
@@ -1412,7 +1412,7 @@ function Nn(e) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return r;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Cn(e) {
|
|
1416
1416
|
return e.replace(/^(.*?)-/, "");
|
|
1417
1417
|
}
|
|
1418
1418
|
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
@@ -1504,7 +1504,7 @@ function Rn(e) {
|
|
|
1504
1504
|
continue;
|
|
1505
1505
|
case "measure-unit":
|
|
1506
1506
|
case "unit":
|
|
1507
|
-
t.style = "unit", t.unit =
|
|
1507
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1508
1508
|
continue;
|
|
1509
1509
|
case "compact-short":
|
|
1510
1510
|
case "K":
|
|
@@ -3019,13 +3019,13 @@ var se = {
|
|
|
3019
3019
|
"h"
|
|
3020
3020
|
]
|
|
3021
3021
|
};
|
|
3022
|
-
function
|
|
3022
|
+
function Un(e, t) {
|
|
3023
3023
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3024
3024
|
var i = e.charAt(n);
|
|
3025
3025
|
if (i === "j") {
|
|
3026
3026
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3027
3027
|
o++, n++;
|
|
3028
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
3028
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Dn(t);
|
|
3029
3029
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
3030
3030
|
r += u;
|
|
3031
3031
|
for (; s-- > 0; )
|
|
@@ -3035,7 +3035,7 @@ function Dn(e, t) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
return r;
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function Dn(e) {
|
|
3039
3039
|
var t = e.hourCycle;
|
|
3040
3040
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3041
3041
|
e.hourCycles && // @ts-ignore
|
|
@@ -3380,13 +3380,13 @@ var Kn = (
|
|
|
3380
3380
|
} else {
|
|
3381
3381
|
if (T.length === 0)
|
|
3382
3382
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3383
|
-
var
|
|
3384
|
-
this.locale && (
|
|
3383
|
+
var L = T;
|
|
3384
|
+
this.locale && (L = Un(T, this.locale));
|
|
3385
3385
|
var f = {
|
|
3386
3386
|
type: k.dateTime,
|
|
3387
|
-
pattern:
|
|
3387
|
+
pattern: L,
|
|
3388
3388
|
location: h.styleLocation,
|
|
3389
|
-
parsedOptions: this.shouldParseSkeletons ? In(
|
|
3389
|
+
parsedOptions: this.shouldParseSkeletons ? In(L) : {}
|
|
3390
3390
|
}, I = a === "date" ? v.date : v.time;
|
|
3391
3391
|
return {
|
|
3392
3392
|
val: { type: I, value: n, location: b, style: f },
|
|
@@ -3411,17 +3411,17 @@ var Kn = (
|
|
|
3411
3411
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3412
3412
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, me({}, x)));
|
|
3413
3413
|
this.bumpSpace();
|
|
3414
|
-
var
|
|
3415
|
-
if (a !== "select" &&
|
|
3414
|
+
var H = this.parseIdentifierIfPossible(), S = 0;
|
|
3415
|
+
if (a !== "select" && H.value === "offset") {
|
|
3416
3416
|
if (!this.bumpIf(":"))
|
|
3417
3417
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3418
3418
|
this.bumpSpace();
|
|
3419
3419
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3420
3420
|
if (c.err)
|
|
3421
3421
|
return c;
|
|
3422
|
-
this.bumpSpace(),
|
|
3422
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), S = c.val;
|
|
3423
3423
|
}
|
|
3424
|
-
var $ = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3424
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3425
3425
|
if ($.err)
|
|
3426
3426
|
return $;
|
|
3427
3427
|
var g = this.tryParseArgumentClose(i);
|
|
@@ -3491,7 +3491,7 @@ var Kn = (
|
|
|
3491
3491
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3492
3492
|
var n = [];
|
|
3493
3493
|
try {
|
|
3494
|
-
n =
|
|
3494
|
+
n = Ln(t);
|
|
3495
3495
|
} catch (i) {
|
|
3496
3496
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3497
3497
|
}
|
|
@@ -3731,7 +3731,7 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3731
3731
|
if (!(i && c in i))
|
|
3732
3732
|
throw new oi(c, s);
|
|
3733
3733
|
var f = i[c];
|
|
3734
|
-
if (
|
|
3734
|
+
if (Pn(l)) {
|
|
3735
3735
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3736
3736
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3737
3737
|
value: f
|
|
@@ -3766,7 +3766,7 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3766
3766
|
var g = l.children, b = l.value, T = i[b];
|
|
3767
3767
|
if (!ai(T))
|
|
3768
3768
|
throw new ii(b, "function", s);
|
|
3769
|
-
var
|
|
3769
|
+
var L = ce(g, t, r, n, i, o), I = T(L.map(function(S) {
|
|
3770
3770
|
return S.value;
|
|
3771
3771
|
}));
|
|
3772
3772
|
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
|
|
@@ -3790,8 +3790,8 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3790
3790
|
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3791
3791
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3792
3792
|
`, V.MISSING_INTL_API, s);
|
|
3793
|
-
var
|
|
3794
|
-
x = l.options[
|
|
3793
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3794
|
+
x = l.options[H] || l.options.other;
|
|
3795
3795
|
}
|
|
3796
3796
|
if (!x)
|
|
3797
3797
|
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
@@ -3802,14 +3802,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3802
3802
|
return si(a);
|
|
3803
3803
|
}
|
|
3804
3804
|
function ui(e, t) {
|
|
3805
|
-
return t ?
|
|
3806
|
-
return r[n] =
|
|
3805
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3806
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3807
3807
|
}, {})) : e;
|
|
3808
3808
|
}
|
|
3809
3809
|
function hi(e, t) {
|
|
3810
3810
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3811
3811
|
return r[n] = ui(e[n], t[n]), r;
|
|
3812
|
-
},
|
|
3812
|
+
}, P({}, e)) : e;
|
|
3813
3813
|
}
|
|
3814
3814
|
function Oe(e) {
|
|
3815
3815
|
return {
|
|
@@ -3831,29 +3831,29 @@ function li(e) {
|
|
|
3831
3831
|
dateTime: {},
|
|
3832
3832
|
pluralRules: {}
|
|
3833
3833
|
}), {
|
|
3834
|
-
getNumberFormat:
|
|
3834
|
+
getNumberFormat: He(function() {
|
|
3835
3835
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3836
3836
|
r[n] = arguments[n];
|
|
3837
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3837
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3838
3838
|
}, {
|
|
3839
3839
|
cache: Oe(e.number),
|
|
3840
|
-
strategy:
|
|
3840
|
+
strategy: Pe.variadic
|
|
3841
3841
|
}),
|
|
3842
|
-
getDateTimeFormat:
|
|
3842
|
+
getDateTimeFormat: He(function() {
|
|
3843
3843
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3844
3844
|
r[n] = arguments[n];
|
|
3845
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3845
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3846
3846
|
}, {
|
|
3847
3847
|
cache: Oe(e.dateTime),
|
|
3848
|
-
strategy:
|
|
3848
|
+
strategy: Pe.variadic
|
|
3849
3849
|
}),
|
|
3850
|
-
getPluralRules:
|
|
3850
|
+
getPluralRules: He(function() {
|
|
3851
3851
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3852
3852
|
r[n] = arguments[n];
|
|
3853
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3853
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3854
3854
|
}, {
|
|
3855
3855
|
cache: Oe(e.pluralRules),
|
|
3856
|
-
strategy:
|
|
3856
|
+
strategy: Pe.variadic
|
|
3857
3857
|
})
|
|
3858
3858
|
};
|
|
3859
3859
|
}
|
|
@@ -3890,7 +3890,7 @@ var ci = (
|
|
|
3890
3890
|
var s = i || {};
|
|
3891
3891
|
s.formatters;
|
|
3892
3892
|
var a = En(s, ["formatters"]);
|
|
3893
|
-
this.ast = e.__parse(t,
|
|
3893
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3894
3894
|
} else
|
|
3895
3895
|
this.ast = t;
|
|
3896
3896
|
if (!Array.isArray(this.ast))
|
|
@@ -3990,11 +3990,11 @@ function fi(e, t) {
|
|
|
3990
3990
|
n = void 0;
|
|
3991
3991
|
return n;
|
|
3992
3992
|
}
|
|
3993
|
-
const
|
|
3993
|
+
const N = {}, pi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), nr = (e, t) => {
|
|
3994
3994
|
if (t == null)
|
|
3995
3995
|
return;
|
|
3996
|
-
if (t in
|
|
3997
|
-
return
|
|
3996
|
+
if (t in N && e in N[t])
|
|
3997
|
+
return N[t][e];
|
|
3998
3998
|
const r = _e(t);
|
|
3999
3999
|
for (let n = 0; n < r.length; n++) {
|
|
4000
4000
|
const i = r[n], o = di(i, e);
|
|
@@ -4027,7 +4027,7 @@ function bi(e) {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
4029
|
function or(e, ...t) {
|
|
4030
|
-
delete
|
|
4030
|
+
delete N[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
4031
4031
|
}
|
|
4032
4032
|
z(
|
|
4033
4033
|
[ne],
|
|
@@ -4116,12 +4116,12 @@ function X() {
|
|
|
4116
4116
|
return xi;
|
|
4117
4117
|
}
|
|
4118
4118
|
const Ie = ye(!1);
|
|
4119
|
-
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols,
|
|
4119
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4120
4120
|
for (var r in t || (t = {}))
|
|
4121
|
-
|
|
4121
|
+
Bi.call(t, r) && wt(e, r, t[r]);
|
|
4122
4122
|
if (St)
|
|
4123
4123
|
for (var r of St(t))
|
|
4124
|
-
|
|
4124
|
+
Hi.call(t, r) && wt(e, r, t[r]);
|
|
4125
4125
|
return e;
|
|
4126
4126
|
}, Ai = (e, t) => wi(e, Ti(t));
|
|
4127
4127
|
let Ze;
|
|
@@ -4153,7 +4153,7 @@ const Oi = (e) => {
|
|
|
4153
4153
|
});
|
|
4154
4154
|
}
|
|
4155
4155
|
return de.set(e);
|
|
4156
|
-
}, W = Ai(
|
|
4156
|
+
}, W = Ai(Pi({}, de), {
|
|
4157
4157
|
set: Oi
|
|
4158
4158
|
}), xe = (e) => {
|
|
4159
4159
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -4162,12 +4162,12 @@ const Oi = (e) => {
|
|
|
4162
4162
|
return i in t ? t[i] : t[i] = e(n);
|
|
4163
4163
|
};
|
|
4164
4164
|
};
|
|
4165
|
-
var Ii = Object.defineProperty, be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable,
|
|
4165
|
+
var Ii = Object.defineProperty, be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4166
4166
|
for (var r in t || (t = {}))
|
|
4167
|
-
ur.call(t, r) &&
|
|
4167
|
+
ur.call(t, r) && Bt(e, r, t[r]);
|
|
4168
4168
|
if (be)
|
|
4169
4169
|
for (var r of be(t))
|
|
4170
|
-
hr.call(t, r) &&
|
|
4170
|
+
hr.call(t, r) && Bt(e, r, t[r]);
|
|
4171
4171
|
return e;
|
|
4172
4172
|
}, Z = (e, t) => {
|
|
4173
4173
|
var r = {};
|
|
@@ -4183,21 +4183,21 @@ const ee = (e, t) => {
|
|
|
4183
4183
|
if (e in r && t in r[e])
|
|
4184
4184
|
return r[e][t];
|
|
4185
4185
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4186
|
-
},
|
|
4186
|
+
}, Ni = xe(
|
|
4187
4187
|
(e) => {
|
|
4188
4188
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4189
4189
|
if (r == null)
|
|
4190
4190
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4191
4191
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4192
4192
|
}
|
|
4193
|
-
),
|
|
4193
|
+
), Li = xe(
|
|
4194
4194
|
(e) => {
|
|
4195
4195
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4196
4196
|
if (r == null)
|
|
4197
4197
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4198
4198
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4199
4199
|
}
|
|
4200
|
-
),
|
|
4200
|
+
), Ci = xe(
|
|
4201
4201
|
(e) => {
|
|
4202
4202
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4203
4203
|
if (r == null)
|
|
@@ -4212,27 +4212,27 @@ const ee = (e, t) => {
|
|
|
4212
4212
|
} = t, n = Z(t, [
|
|
4213
4213
|
"locale"
|
|
4214
4214
|
]);
|
|
4215
|
-
return
|
|
4215
|
+
return Ni(qe({ locale: r }, n));
|
|
4216
4216
|
}, $i = (e = {}) => {
|
|
4217
4217
|
var t = e, {
|
|
4218
4218
|
locale: r = M()
|
|
4219
4219
|
} = t, n = Z(t, [
|
|
4220
4220
|
"locale"
|
|
4221
4221
|
]);
|
|
4222
|
-
return
|
|
4222
|
+
return Li(qe({ locale: r }, n));
|
|
4223
4223
|
}, Ri = (e = {}) => {
|
|
4224
4224
|
var t = e, {
|
|
4225
4225
|
locale: r = M()
|
|
4226
4226
|
} = t, n = Z(t, [
|
|
4227
4227
|
"locale"
|
|
4228
4228
|
]);
|
|
4229
|
-
return
|
|
4230
|
-
},
|
|
4229
|
+
return Ci(qe({ locale: r }, n));
|
|
4230
|
+
}, Ui = xe(
|
|
4231
4231
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4232
4232
|
(e, t = M()) => new ci(e, t, X().formats, {
|
|
4233
4233
|
ignoreTag: X().ignoreTag
|
|
4234
4234
|
})
|
|
4235
|
-
),
|
|
4235
|
+
), Di = (e, t = {}) => {
|
|
4236
4236
|
var r, n, i, o;
|
|
4237
4237
|
let s = t;
|
|
4238
4238
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4256,7 +4256,7 @@ const ee = (e, t) => {
|
|
|
4256
4256
|
return l;
|
|
4257
4257
|
let c = l;
|
|
4258
4258
|
try {
|
|
4259
|
-
c =
|
|
4259
|
+
c = Ui(l, u).format(a);
|
|
4260
4260
|
} catch (f) {
|
|
4261
4261
|
f instanceof Error && console.warn(
|
|
4262
4262
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4264,20 +4264,20 @@ const ee = (e, t) => {
|
|
|
4264
4264
|
);
|
|
4265
4265
|
}
|
|
4266
4266
|
return c;
|
|
4267
|
-
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = M()) => nr(e, t), Vi = z([W, ne], () =>
|
|
4267
|
+
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = M()) => nr(e, t), Vi = z([W, ne], () => Di);
|
|
4268
4268
|
z([W], () => Gi);
|
|
4269
4269
|
z([W], () => Fi);
|
|
4270
4270
|
z([W], () => ji);
|
|
4271
4271
|
z([W, ne], () => ki);
|
|
4272
4272
|
window.emWidgets = { topic: tn };
|
|
4273
4273
|
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4274
|
-
function
|
|
4274
|
+
function Ht(e, t) {
|
|
4275
4275
|
or(e, t);
|
|
4276
4276
|
}
|
|
4277
4277
|
function Xi(e) {
|
|
4278
4278
|
W.set(e);
|
|
4279
4279
|
}
|
|
4280
|
-
const
|
|
4280
|
+
const Pt = {
|
|
4281
4281
|
en: {
|
|
4282
4282
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4283
4283
|
},
|
|
@@ -4319,7 +4319,7 @@ const Bt = {
|
|
|
4319
4319
|
}
|
|
4320
4320
|
};
|
|
4321
4321
|
function zi(e) {
|
|
4322
|
-
gr(e, "svelte-
|
|
4322
|
+
gr(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4323
4323
|
}
|
|
4324
4324
|
function Wi(e) {
|
|
4325
4325
|
let t, r, n, i = (
|
|
@@ -4329,10 +4329,10 @@ function Wi(e) {
|
|
|
4329
4329
|
), o, s;
|
|
4330
4330
|
return {
|
|
4331
4331
|
c() {
|
|
4332
|
-
t = J("div"), r = J("div"), n = J("button"), o = Er(i),
|
|
4332
|
+
t = J("div"), r = J("div"), n = J("button"), o = Er(i), C(n, "class", "PanicButton " + (ae(
|
|
4333
4333
|
/*userAgent*/
|
|
4334
4334
|
e[6]
|
|
4335
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4335
|
+
) !== "PC" ? "PanicButtonMobile" : "")), C(n, "part", "PanicButton " + (ae(
|
|
4336
4336
|
/*userAgent*/
|
|
4337
4337
|
e[6]
|
|
4338
4338
|
) !== "PC" ? "PanicButtonMobile" : "")), ot(
|
|
@@ -4340,17 +4340,17 @@ function Wi(e) {
|
|
|
4340
4340
|
"PanicButtonAnimation",
|
|
4341
4341
|
/*panicLoading*/
|
|
4342
4342
|
e[4]
|
|
4343
|
-
),
|
|
4343
|
+
), C(r, "class", "PanicSection " + (ae(
|
|
4344
4344
|
/*userAgent*/
|
|
4345
4345
|
e[6]
|
|
4346
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4346
|
+
) !== "PC" ? "PanicSectionMobile" : "")), C(r, "part", "PanicSection " + (ae(
|
|
4347
4347
|
/*userAgent*/
|
|
4348
4348
|
e[6]
|
|
4349
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4349
|
+
) !== "PC" ? "PanicSectionMobile" : "")), C(t, "class", s = /*alternativestyling*/
|
|
4350
4350
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4351
4351
|
},
|
|
4352
4352
|
m(a, u) {
|
|
4353
|
-
|
|
4353
|
+
Nt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
|
|
4354
4354
|
},
|
|
4355
4355
|
p(a, [u]) {
|
|
4356
4356
|
u & /*customtext, $_*/
|
|
@@ -4364,10 +4364,10 @@ function Wi(e) {
|
|
|
4364
4364
|
a[4]
|
|
4365
4365
|
), u & /*alternativestyling*/
|
|
4366
4366
|
2 && s !== (s = /*alternativestyling*/
|
|
4367
|
-
a[1] == "true" ? "PanicButtonV2" : "") &&
|
|
4367
|
+
a[1] == "true" ? "PanicButtonV2" : "") && C(t, "class", s);
|
|
4368
4368
|
},
|
|
4369
|
-
i:
|
|
4370
|
-
o:
|
|
4369
|
+
i: B,
|
|
4370
|
+
o: B,
|
|
4371
4371
|
d(a) {
|
|
4372
4372
|
a && Je(t), e[12](null), e[13](null);
|
|
4373
4373
|
}
|
|
@@ -4377,23 +4377,23 @@ function Zi(e, t, r) {
|
|
|
4377
4377
|
let n;
|
|
4378
4378
|
br(e, Vi, (y) => r(5, n = y));
|
|
4379
4379
|
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, T = window.navigator.userAgent;
|
|
4380
|
-
const
|
|
4380
|
+
const L = () => {
|
|
4381
4381
|
fetch(l).then((R) => R.json()).then((R) => {
|
|
4382
4382
|
Object.keys(R).forEach((Ke) => {
|
|
4383
|
-
|
|
4383
|
+
Ht(Ke, R[Ke]);
|
|
4384
4384
|
});
|
|
4385
4385
|
}).catch((R) => {
|
|
4386
4386
|
console.log(R);
|
|
4387
4387
|
});
|
|
4388
4388
|
};
|
|
4389
|
-
Object.keys(
|
|
4390
|
-
|
|
4389
|
+
Object.keys(Pt).forEach((y) => {
|
|
4390
|
+
Ht(y, Pt[y]);
|
|
4391
4391
|
});
|
|
4392
4392
|
const I = () => {
|
|
4393
|
-
c == null || c.addEventListener("mousedown",
|
|
4393
|
+
c == null || c.addEventListener("mousedown", H, !1), c == null || c.addEventListener("touchstart", H, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
|
|
4394
4394
|
}, x = () => {
|
|
4395
|
-
r(4, m = !1), c == null || c.removeEventListener("mousedown",
|
|
4396
|
-
},
|
|
4395
|
+
r(4, m = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
|
|
4396
|
+
}, H = () => {
|
|
4397
4397
|
g = 0, r(4, m = !0), b = setInterval(
|
|
4398
4398
|
() => {
|
|
4399
4399
|
g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
@@ -4422,10 +4422,10 @@ function Zi(e, t, r) {
|
|
|
4422
4422
|
e.$$.dirty & /*panicButton*/
|
|
4423
4423
|
4 && c && I(), e.$$.dirty & /*lang*/
|
|
4424
4424
|
128 && i && Xi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4425
|
-
264 && s && f &&
|
|
4425
|
+
264 && s && f && Dr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4426
4426
|
520 && a && f && Gr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4427
4427
|
1032 && u && f && Fr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4428
|
-
2048 && l &&
|
|
4428
|
+
2048 && l && L();
|
|
4429
4429
|
}, [
|
|
4430
4430
|
o,
|
|
4431
4431
|
h,
|