@everymatrix/player-account-closure 1.62.3 → 1.63.0
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/{PlayerAccountClosure-BZuBu7MA.js → PlayerAccountClosure-BGxnkMxl.js} +312 -312
- package/components/{PlayerAccountClosure-CpVLVa3Q.js → PlayerAccountClosure-CR4Yo0_9.js} +216 -216
- package/components/{PlayerAccountClosure-Cfuv89dV.cjs → PlayerAccountClosure-DxIUg505.cjs} +4 -4
- package/es2015/player-account-closure.cjs +1 -1
- package/es2015/player-account-closure.js +1 -1
- package/esnext/player-account-closure.js +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ function Ht(e, ...t) {
|
|
|
30
30
|
function ur(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(Ht(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function g(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
36
|
function lr(e, t, r) {
|
|
@@ -51,7 +51,7 @@ function cr(e) {
|
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
53
|
function hr(e, t) {
|
|
54
|
-
return
|
|
54
|
+
return g(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -66,14 +66,14 @@ function se(e) {
|
|
|
66
66
|
function B(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function G(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function $(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
75
|
function D() {
|
|
76
|
-
return
|
|
76
|
+
return $(" ");
|
|
77
77
|
}
|
|
78
78
|
function me(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -84,7 +84,7 @@ function x(e, t, r) {
|
|
|
84
84
|
function fr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function W(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
@@ -109,7 +109,7 @@ function dr() {
|
|
|
109
109
|
function mr(e) {
|
|
110
110
|
dr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const z = [], Ne = [];
|
|
113
113
|
let V = [];
|
|
114
114
|
const nt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
115
115
|
let Le = !1;
|
|
@@ -120,28 +120,28 @@ function $e(e) {
|
|
|
120
120
|
V.push(e);
|
|
121
121
|
}
|
|
122
122
|
const Se = /* @__PURE__ */ new Set();
|
|
123
|
-
let
|
|
123
|
+
let j = 0;
|
|
124
124
|
function R() {
|
|
125
|
-
if (
|
|
125
|
+
if (j !== 0)
|
|
126
126
|
return;
|
|
127
127
|
const e = ne;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; j < z.length; ) {
|
|
131
|
+
const t = z[j];
|
|
132
|
+
j++, re(t), gr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw z.length = 0, j = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (re(null),
|
|
137
|
+
for (re(null), z.length = 0, j = 0; Ne.length; )
|
|
138
138
|
Ne.pop()();
|
|
139
139
|
for (let t = 0; t < V.length; t += 1) {
|
|
140
140
|
const r = V[t];
|
|
141
141
|
Se.has(r) || (Se.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
V.length = 0;
|
|
144
|
-
} while (
|
|
144
|
+
} while (z.length);
|
|
145
145
|
for (; nt.length; )
|
|
146
146
|
nt.pop()();
|
|
147
147
|
Le = !1, Se.clear(), re(e);
|
|
@@ -173,12 +173,12 @@ function wr(e, t) {
|
|
|
173
173
|
r.fragment !== null && (yr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
175
|
function Cr(e, t) {
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
e.$$.dirty[0] === -1 && (z.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
-
const
|
|
179
|
+
const l = ne;
|
|
180
180
|
re(e);
|
|
181
|
-
const
|
|
181
|
+
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
184
184
|
// state
|
|
@@ -192,27 +192,27 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
192
192
|
on_disconnect: [],
|
|
193
193
|
before_update: [],
|
|
194
194
|
after_update: [],
|
|
195
|
-
context: new Map(t.context || (
|
|
195
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
197
|
callbacks: rt(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
|
-
root: t.target ||
|
|
200
|
+
root: t.target || l.$$.root
|
|
201
201
|
};
|
|
202
|
-
s && s(
|
|
202
|
+
s && s(u.root);
|
|
203
203
|
let c = !1;
|
|
204
|
-
if (
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, h, ...p) => {
|
|
205
205
|
const m = p.length ? p[0] : h;
|
|
206
|
-
return
|
|
207
|
-
}) : [],
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Cr(e, f)), h;
|
|
207
|
+
}) : [], u.update(), c = !0, Y(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
209
|
const f = fr(t.target);
|
|
210
|
-
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(se);
|
|
211
211
|
} else
|
|
212
|
-
|
|
212
|
+
u.fragment && u.fragment.c();
|
|
213
213
|
t.intro && _r(e.$$.fragment), Er(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
re(
|
|
215
|
+
re(l);
|
|
216
216
|
}
|
|
217
217
|
let Mt;
|
|
218
218
|
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
@@ -263,11 +263,11 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
263
263
|
* @param {HTMLElement} target
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
|
-
m: function(
|
|
267
|
-
ye(
|
|
266
|
+
m: function(l, u) {
|
|
267
|
+
ye(l, o, u);
|
|
268
268
|
},
|
|
269
|
-
d: function(
|
|
270
|
-
|
|
269
|
+
d: function(l) {
|
|
270
|
+
l && se(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
@@ -377,8 +377,8 @@ function Sr(e, t, r, n, i, o) {
|
|
|
377
377
|
get() {
|
|
378
378
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
379
379
|
},
|
|
380
|
-
set(
|
|
381
|
-
|
|
380
|
+
set(l) {
|
|
381
|
+
l = he(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), n.forEach((a) => {
|
|
@@ -505,7 +505,7 @@ function Fe(e, t, r) {
|
|
|
505
505
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
506
506
|
return e.concat(o || t);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function N(e) {
|
|
509
509
|
return typeof e == "function";
|
|
510
510
|
}
|
|
511
511
|
function Pt(e) {
|
|
@@ -541,15 +541,15 @@ var xe = function() {
|
|
|
541
541
|
if (s)
|
|
542
542
|
if (this._parentage = null, Array.isArray(s))
|
|
543
543
|
try {
|
|
544
|
-
for (var a = De(s),
|
|
545
|
-
var
|
|
546
|
-
|
|
544
|
+
for (var a = De(s), l = a.next(); !l.done; l = a.next()) {
|
|
545
|
+
var u = l.value;
|
|
546
|
+
u.remove(this);
|
|
547
547
|
}
|
|
548
548
|
} catch (d) {
|
|
549
549
|
t = { error: d };
|
|
550
550
|
} finally {
|
|
551
551
|
try {
|
|
552
|
-
|
|
552
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
553
553
|
} finally {
|
|
554
554
|
if (t)
|
|
555
555
|
throw t.error;
|
|
@@ -558,7 +558,7 @@ var xe = function() {
|
|
|
558
558
|
else
|
|
559
559
|
s.remove(this);
|
|
560
560
|
var c = this.initialTeardown;
|
|
561
|
-
if (
|
|
561
|
+
if (N(c))
|
|
562
562
|
try {
|
|
563
563
|
c();
|
|
564
564
|
} catch (d) {
|
|
@@ -621,10 +621,10 @@ var xe = function() {
|
|
|
621
621
|
}(), e;
|
|
622
622
|
}(), Ot = xe.EMPTY;
|
|
623
623
|
function It(e) {
|
|
624
|
-
return e instanceof xe || e && "closed" in e &&
|
|
624
|
+
return e instanceof xe || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
625
625
|
}
|
|
626
626
|
function it(e) {
|
|
627
|
-
|
|
627
|
+
N(e) ? e() : e.unsubscribe();
|
|
628
628
|
}
|
|
629
629
|
var Hr = {
|
|
630
630
|
Promise: void 0
|
|
@@ -715,7 +715,7 @@ var Nt = function(e) {
|
|
|
715
715
|
ae(t, e);
|
|
716
716
|
function t(r, n, i) {
|
|
717
717
|
var o = e.call(this) || this, s;
|
|
718
|
-
return
|
|
718
|
+
return N(r) || !r ? s = {
|
|
719
719
|
next: r ?? void 0,
|
|
720
720
|
error: n ?? void 0,
|
|
721
721
|
complete: i ?? void 0
|
|
@@ -757,8 +757,8 @@ var st = function() {
|
|
|
757
757
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
758
758
|
var i = this, o = Ur(t) ? t : new je(t, r, n);
|
|
759
759
|
return fe(function() {
|
|
760
|
-
var s = i, a = s.operator,
|
|
761
|
-
o.add(a ? a.call(o,
|
|
760
|
+
var s = i, a = s.operator, l = s.source;
|
|
761
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
762
762
|
}), o;
|
|
763
763
|
}, e.prototype._trySubscribe = function(t) {
|
|
764
764
|
try {
|
|
@@ -773,8 +773,8 @@ var st = function() {
|
|
|
773
773
|
next: function(a) {
|
|
774
774
|
try {
|
|
775
775
|
t(a);
|
|
776
|
-
} catch (
|
|
777
|
-
o(
|
|
776
|
+
} catch (l) {
|
|
777
|
+
o(l), s.unsubscribe();
|
|
778
778
|
}
|
|
779
779
|
},
|
|
780
780
|
error: o,
|
|
@@ -812,7 +812,7 @@ function at(e) {
|
|
|
812
812
|
return (t = e ?? Hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
813
813
|
}
|
|
814
814
|
function Dr(e) {
|
|
815
|
-
return e &&
|
|
815
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
816
816
|
}
|
|
817
817
|
function Ur(e) {
|
|
818
818
|
return e && e instanceof Nt || Dr(e) && It(e);
|
|
@@ -841,11 +841,11 @@ var Fr = Pt(function(e) {
|
|
|
841
841
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
842
842
|
try {
|
|
843
843
|
for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
844
|
-
var
|
|
845
|
-
|
|
844
|
+
var l = a.value;
|
|
845
|
+
l.next(r);
|
|
846
846
|
}
|
|
847
|
-
} catch (
|
|
848
|
-
i = { error:
|
|
847
|
+
} catch (u) {
|
|
848
|
+
i = { error: u };
|
|
849
849
|
} finally {
|
|
850
850
|
try {
|
|
851
851
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -933,19 +933,19 @@ var Fr = Pt(function(e) {
|
|
|
933
933
|
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;
|
|
934
934
|
}
|
|
935
935
|
return t.prototype.next = function(r) {
|
|
936
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
937
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
936
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
937
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
938
938
|
}, t.prototype._subscribe = function(r) {
|
|
939
939
|
this._throwIfClosed(), this._trimBuffer();
|
|
940
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
941
|
-
r.next(a[
|
|
940
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
941
|
+
r.next(a[l]);
|
|
942
942
|
return this._checkFinalizedStatuses(r), n;
|
|
943
943
|
}, t.prototype._trimBuffer = function() {
|
|
944
944
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
945
945
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
946
|
-
for (var
|
|
947
|
-
|
|
948
|
-
|
|
946
|
+
for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
|
|
947
|
+
u = c;
|
|
948
|
+
u && o.splice(0, u + 1);
|
|
949
949
|
}
|
|
950
950
|
}, t;
|
|
951
951
|
}(Lt);
|
|
@@ -955,7 +955,7 @@ const lt = [], ct = {}, jr = (e, t = 0) => {
|
|
|
955
955
|
ct[e] = r, lt.push(e);
|
|
956
956
|
}
|
|
957
957
|
return ct[e];
|
|
958
|
-
},
|
|
958
|
+
}, k = [];
|
|
959
959
|
function kr(e, t) {
|
|
960
960
|
return {
|
|
961
961
|
subscribe: _e(e, t).subscribe
|
|
@@ -966,23 +966,23 @@ function _e(e, t = O) {
|
|
|
966
966
|
const n = /* @__PURE__ */ new Set();
|
|
967
967
|
function i(a) {
|
|
968
968
|
if (Bt(e, a) && (e = a, r)) {
|
|
969
|
-
const
|
|
970
|
-
for (const
|
|
971
|
-
|
|
972
|
-
if (
|
|
973
|
-
for (let
|
|
974
|
-
|
|
975
|
-
|
|
969
|
+
const l = !k.length;
|
|
970
|
+
for (const u of n)
|
|
971
|
+
u[1](), k.push(u, e);
|
|
972
|
+
if (l) {
|
|
973
|
+
for (let u = 0; u < k.length; u += 2)
|
|
974
|
+
k[u][0](k[u + 1]);
|
|
975
|
+
k.length = 0;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
function o(a) {
|
|
980
980
|
i(a(e));
|
|
981
981
|
}
|
|
982
|
-
function s(a,
|
|
983
|
-
const
|
|
984
|
-
return n.add(
|
|
985
|
-
n.delete(
|
|
982
|
+
function s(a, l = O) {
|
|
983
|
+
const u = [a, l];
|
|
984
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
985
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
return { set: i, update: o, subscribe: s };
|
|
@@ -993,28 +993,28 @@ function J(e, t, r) {
|
|
|
993
993
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
994
994
|
const o = t.length < 2;
|
|
995
995
|
return kr(r, (s, a) => {
|
|
996
|
-
let
|
|
997
|
-
const
|
|
996
|
+
let l = !1;
|
|
997
|
+
const u = [];
|
|
998
998
|
let c = 0, f = O;
|
|
999
999
|
const h = () => {
|
|
1000
1000
|
if (c)
|
|
1001
1001
|
return;
|
|
1002
1002
|
f();
|
|
1003
|
-
const m = t(n ?
|
|
1003
|
+
const m = t(n ? u[0] : u, s, a);
|
|
1004
1004
|
o ? s(m) : f = Je(m) ? m : O;
|
|
1005
1005
|
}, p = i.map(
|
|
1006
1006
|
(m, d) => Ht(
|
|
1007
1007
|
m,
|
|
1008
|
-
(
|
|
1009
|
-
|
|
1008
|
+
(w) => {
|
|
1009
|
+
u[d] = w, c &= ~(1 << d), l && h();
|
|
1010
1010
|
},
|
|
1011
1011
|
() => {
|
|
1012
1012
|
c |= 1 << d;
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
);
|
|
1016
|
-
return
|
|
1017
|
-
Y(p), f(),
|
|
1016
|
+
return l = !0, h(), function() {
|
|
1017
|
+
Y(p), f(), l = !1;
|
|
1018
1018
|
};
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
@@ -1196,40 +1196,40 @@ var b;
|
|
|
1196
1196
|
(function(e) {
|
|
1197
1197
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1198
1198
|
})(b || (b = {}));
|
|
1199
|
-
var
|
|
1199
|
+
var E;
|
|
1200
1200
|
(function(e) {
|
|
1201
1201
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1202
|
-
})(
|
|
1202
|
+
})(E || (E = {}));
|
|
1203
1203
|
var Z;
|
|
1204
1204
|
(function(e) {
|
|
1205
1205
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1206
1206
|
})(Z || (Z = {}));
|
|
1207
1207
|
function ft(e) {
|
|
1208
|
-
return e.type ===
|
|
1208
|
+
return e.type === E.literal;
|
|
1209
1209
|
}
|
|
1210
1210
|
function mn(e) {
|
|
1211
|
-
return e.type ===
|
|
1211
|
+
return e.type === E.argument;
|
|
1212
1212
|
}
|
|
1213
1213
|
function Ft(e) {
|
|
1214
|
-
return e.type ===
|
|
1214
|
+
return e.type === E.number;
|
|
1215
1215
|
}
|
|
1216
1216
|
function Gt(e) {
|
|
1217
|
-
return e.type ===
|
|
1217
|
+
return e.type === E.date;
|
|
1218
1218
|
}
|
|
1219
1219
|
function jt(e) {
|
|
1220
|
-
return e.type ===
|
|
1220
|
+
return e.type === E.time;
|
|
1221
1221
|
}
|
|
1222
1222
|
function kt(e) {
|
|
1223
|
-
return e.type ===
|
|
1223
|
+
return e.type === E.select;
|
|
1224
1224
|
}
|
|
1225
1225
|
function zt(e) {
|
|
1226
|
-
return e.type ===
|
|
1226
|
+
return e.type === E.plural;
|
|
1227
1227
|
}
|
|
1228
1228
|
function bn(e) {
|
|
1229
|
-
return e.type ===
|
|
1229
|
+
return e.type === E.pound;
|
|
1230
1230
|
}
|
|
1231
1231
|
function Wt(e) {
|
|
1232
|
-
return e.type ===
|
|
1232
|
+
return e.type === E.tag;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Vt(e) {
|
|
1235
1235
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
@@ -1329,15 +1329,15 @@ function gn(e) {
|
|
|
1329
1329
|
return "";
|
|
1330
1330
|
}), t;
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1333
|
-
return
|
|
1332
|
+
var S = function() {
|
|
1333
|
+
return S = Object.assign || function(t) {
|
|
1334
1334
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1335
1335
|
r = arguments[n];
|
|
1336
1336
|
for (var o in r)
|
|
1337
1337
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1338
1338
|
}
|
|
1339
1339
|
return t;
|
|
1340
|
-
},
|
|
1340
|
+
}, S.apply(this, arguments);
|
|
1341
1341
|
};
|
|
1342
1342
|
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1343
1343
|
function xn(e) {
|
|
@@ -1349,12 +1349,12 @@ function xn(e) {
|
|
|
1349
1349
|
var o = i[n], s = o.split("/");
|
|
1350
1350
|
if (s.length === 0)
|
|
1351
1351
|
throw new Error("Invalid number skeleton");
|
|
1352
|
-
for (var a = s[0],
|
|
1353
|
-
var f = c[
|
|
1352
|
+
for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
1353
|
+
var f = c[u];
|
|
1354
1354
|
if (f.length === 0)
|
|
1355
1355
|
throw new Error("Invalid number skeleton");
|
|
1356
1356
|
}
|
|
1357
|
-
r.push({ stem: a, options:
|
|
1357
|
+
r.push({ stem: a, options: l });
|
|
1358
1358
|
}
|
|
1359
1359
|
return r;
|
|
1360
1360
|
}
|
|
@@ -1461,13 +1461,13 @@ function Cn(e) {
|
|
|
1461
1461
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1462
1462
|
continue;
|
|
1463
1463
|
case "scientific":
|
|
1464
|
-
t =
|
|
1465
|
-
return
|
|
1464
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1465
|
+
return S(S({}, l), mt(u));
|
|
1466
1466
|
}, {}));
|
|
1467
1467
|
continue;
|
|
1468
1468
|
case "engineering":
|
|
1469
|
-
t =
|
|
1470
|
-
return
|
|
1469
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1470
|
+
return S(S({}, l), mt(u));
|
|
1471
1471
|
}, {}));
|
|
1472
1472
|
continue;
|
|
1473
1473
|
case "notation-simple":
|
|
@@ -1512,8 +1512,8 @@ function Cn(e) {
|
|
|
1512
1512
|
case "integer-width":
|
|
1513
1513
|
if (i.options.length > 1)
|
|
1514
1514
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1515
|
-
i.options[0].replace(En, function(
|
|
1516
|
-
if (
|
|
1515
|
+
i.options[0].replace(En, function(l, u, c, f, h, p) {
|
|
1516
|
+
if (u)
|
|
1517
1517
|
t.minimumIntegerDigits = c.length;
|
|
1518
1518
|
else {
|
|
1519
1519
|
if (f && h)
|
|
@@ -1532,21 +1532,21 @@ function Cn(e) {
|
|
|
1532
1532
|
if (pt.test(i.stem)) {
|
|
1533
1533
|
if (i.options.length > 1)
|
|
1534
1534
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1535
|
-
i.stem.replace(pt, function(
|
|
1536
|
-
return c === "*" ? t.minimumFractionDigits =
|
|
1535
|
+
i.stem.replace(pt, function(l, u, c, f, h, p) {
|
|
1536
|
+
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1537
1537
|
});
|
|
1538
1538
|
var o = i.options[0];
|
|
1539
|
-
o === "w" ? t =
|
|
1539
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), dt(o)));
|
|
1540
1540
|
continue;
|
|
1541
1541
|
}
|
|
1542
1542
|
if (Zt.test(i.stem)) {
|
|
1543
|
-
t =
|
|
1543
|
+
t = S(S({}, t), dt(i.stem));
|
|
1544
1544
|
continue;
|
|
1545
1545
|
}
|
|
1546
1546
|
var s = Qt(i.stem);
|
|
1547
|
-
s && (t =
|
|
1547
|
+
s && (t = S(S({}, t), s));
|
|
1548
1548
|
var a = wn(i.stem);
|
|
1549
|
-
a && (t =
|
|
1549
|
+
a && (t = S(S({}, t), a));
|
|
1550
1550
|
}
|
|
1551
1551
|
return t;
|
|
1552
1552
|
}
|
|
@@ -2971,11 +2971,11 @@ function An(e, t) {
|
|
|
2971
2971
|
if (i === "j") {
|
|
2972
2972
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2973
2973
|
o++, n++;
|
|
2974
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2975
|
-
for ((
|
|
2976
|
-
r +=
|
|
2974
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Sn(t);
|
|
2975
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2976
|
+
r += l;
|
|
2977
2977
|
for (; s-- > 0; )
|
|
2978
|
-
r =
|
|
2978
|
+
r = u + r;
|
|
2979
2979
|
} else
|
|
2980
2980
|
i === "J" ? r += "H" : r += i;
|
|
2981
2981
|
}
|
|
@@ -3004,7 +3004,7 @@ function Sn(e) {
|
|
|
3004
3004
|
return i[0];
|
|
3005
3005
|
}
|
|
3006
3006
|
var Pe, Tn = new RegExp("^".concat(Xt.source, "*")), Bn = new RegExp("".concat(Xt.source, "*$"));
|
|
3007
|
-
function
|
|
3007
|
+
function v(e, t) {
|
|
3008
3008
|
return { start: e, end: t };
|
|
3009
3009
|
}
|
|
3010
3010
|
var Hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, $n = Ln ? Number.isSafeInteger : function(e) {
|
|
@@ -3131,13 +3131,13 @@ var Fn = (
|
|
|
3131
3131
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3132
3132
|
var a = this.clonePosition();
|
|
3133
3133
|
this.bump(), i.push({
|
|
3134
|
-
type:
|
|
3135
|
-
location:
|
|
3134
|
+
type: E.pound,
|
|
3135
|
+
location: v(a, this.clonePosition())
|
|
3136
3136
|
});
|
|
3137
3137
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3138
3138
|
if (n)
|
|
3139
3139
|
break;
|
|
3140
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3140
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3141
3141
|
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3142
3142
|
var s = this.parseTag(t, r);
|
|
3143
3143
|
if (s.err)
|
|
@@ -3159,9 +3159,9 @@ var Fn = (
|
|
|
3159
3159
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3160
3160
|
return {
|
|
3161
3161
|
val: {
|
|
3162
|
-
type:
|
|
3162
|
+
type: E.literal,
|
|
3163
3163
|
value: "<".concat(i, "/>"),
|
|
3164
|
-
location:
|
|
3164
|
+
location: v(n, this.clonePosition())
|
|
3165
3165
|
},
|
|
3166
3166
|
err: null
|
|
3167
3167
|
};
|
|
@@ -3172,21 +3172,21 @@ var Fn = (
|
|
|
3172
3172
|
var s = o.val, a = this.clonePosition();
|
|
3173
3173
|
if (this.bumpIf("</")) {
|
|
3174
3174
|
if (this.isEOF() || !Ze(this.char()))
|
|
3175
|
-
return this.error(b.INVALID_TAG,
|
|
3176
|
-
var
|
|
3177
|
-
return i !==
|
|
3175
|
+
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3176
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3177
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3178
3178
|
val: {
|
|
3179
|
-
type:
|
|
3179
|
+
type: E.tag,
|
|
3180
3180
|
value: i,
|
|
3181
3181
|
children: s,
|
|
3182
|
-
location:
|
|
3182
|
+
location: v(n, this.clonePosition())
|
|
3183
3183
|
},
|
|
3184
3184
|
err: null
|
|
3185
|
-
} : this.error(b.INVALID_TAG,
|
|
3185
|
+
} : this.error(b.INVALID_TAG, v(a, this.clonePosition())));
|
|
3186
3186
|
} else
|
|
3187
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3187
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3188
3188
|
} else
|
|
3189
|
-
return this.error(b.INVALID_TAG,
|
|
3189
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3190
3190
|
}, e.prototype.parseTagName = function() {
|
|
3191
3191
|
var t = this.offset();
|
|
3192
3192
|
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
@@ -3211,9 +3211,9 @@ var Fn = (
|
|
|
3211
3211
|
}
|
|
3212
3212
|
break;
|
|
3213
3213
|
}
|
|
3214
|
-
var
|
|
3214
|
+
var l = v(n, this.clonePosition());
|
|
3215
3215
|
return {
|
|
3216
|
-
val: { type:
|
|
3216
|
+
val: { type: E.literal, value: i, location: l },
|
|
3217
3217
|
err: null
|
|
3218
3218
|
};
|
|
3219
3219
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3261,45 +3261,45 @@ var Fn = (
|
|
|
3261
3261
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3262
3262
|
var n = this.clonePosition();
|
|
3263
3263
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3264
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3264
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3265
3265
|
if (this.char() === 125)
|
|
3266
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3266
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3267
3267
|
var i = this.parseIdentifierIfPossible().value;
|
|
3268
3268
|
if (!i)
|
|
3269
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3269
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3270
3270
|
if (this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3271
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3272
3272
|
switch (this.char()) {
|
|
3273
3273
|
case 125:
|
|
3274
3274
|
return this.bump(), {
|
|
3275
3275
|
val: {
|
|
3276
|
-
type:
|
|
3276
|
+
type: E.argument,
|
|
3277
3277
|
// value does not include the opening and closing braces.
|
|
3278
3278
|
value: i,
|
|
3279
|
-
location:
|
|
3279
|
+
location: v(n, this.clonePosition())
|
|
3280
3280
|
},
|
|
3281
3281
|
err: null
|
|
3282
3282
|
};
|
|
3283
3283
|
case 44:
|
|
3284
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3284
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3285
3285
|
default:
|
|
3286
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3286
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3287
3287
|
}
|
|
3288
3288
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3289
3289
|
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
3290
3290
|
this.bumpTo(i);
|
|
3291
|
-
var o = this.clonePosition(), s =
|
|
3291
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3292
3292
|
return { value: n, location: s };
|
|
3293
3293
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3294
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3294
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3295
3295
|
switch (a) {
|
|
3296
3296
|
case "":
|
|
3297
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3297
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3298
3298
|
case "number":
|
|
3299
3299
|
case "date":
|
|
3300
3300
|
case "time": {
|
|
3301
3301
|
this.bumpSpace();
|
|
3302
|
-
var
|
|
3302
|
+
var u = null;
|
|
3303
3303
|
if (this.bumpIf(",")) {
|
|
3304
3304
|
this.bumpSpace();
|
|
3305
3305
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
@@ -3307,45 +3307,45 @@ var Fn = (
|
|
|
3307
3307
|
return f;
|
|
3308
3308
|
var h = Un(f.val);
|
|
3309
3309
|
if (h.length === 0)
|
|
3310
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3311
|
-
var p =
|
|
3312
|
-
|
|
3310
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3311
|
+
var p = v(c, this.clonePosition());
|
|
3312
|
+
u = { style: h, styleLocation: p };
|
|
3313
3313
|
}
|
|
3314
3314
|
var m = this.tryParseArgumentClose(i);
|
|
3315
3315
|
if (m.err)
|
|
3316
3316
|
return m;
|
|
3317
|
-
var d =
|
|
3318
|
-
if (
|
|
3319
|
-
var
|
|
3317
|
+
var d = v(i, this.clonePosition());
|
|
3318
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3319
|
+
var w = Dn(u.style.slice(2));
|
|
3320
3320
|
if (a === "number") {
|
|
3321
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3321
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3322
3322
|
return f.err ? f : {
|
|
3323
|
-
val: { type:
|
|
3323
|
+
val: { type: E.number, value: n, location: d, style: f.val },
|
|
3324
3324
|
err: null
|
|
3325
3325
|
};
|
|
3326
3326
|
} else {
|
|
3327
|
-
if (
|
|
3327
|
+
if (w.length === 0)
|
|
3328
3328
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3329
|
-
var
|
|
3330
|
-
this.locale && (
|
|
3329
|
+
var M = w;
|
|
3330
|
+
this.locale && (M = An(w, this.locale));
|
|
3331
3331
|
var h = {
|
|
3332
3332
|
type: Z.dateTime,
|
|
3333
|
-
pattern:
|
|
3334
|
-
location:
|
|
3335
|
-
parsedOptions: this.shouldParseSkeletons ? gn(
|
|
3336
|
-
},
|
|
3333
|
+
pattern: M,
|
|
3334
|
+
location: u.styleLocation,
|
|
3335
|
+
parsedOptions: this.shouldParseSkeletons ? gn(M) : {}
|
|
3336
|
+
}, T = a === "date" ? E.date : E.time;
|
|
3337
3337
|
return {
|
|
3338
|
-
val: { type:
|
|
3338
|
+
val: { type: T, value: n, location: d, style: h },
|
|
3339
3339
|
err: null
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
return {
|
|
3344
3344
|
val: {
|
|
3345
|
-
type: a === "number" ?
|
|
3345
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3346
3346
|
value: n,
|
|
3347
3347
|
location: d,
|
|
3348
|
-
style: (o =
|
|
3348
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3349
3349
|
},
|
|
3350
3350
|
err: null
|
|
3351
3351
|
};
|
|
@@ -3353,52 +3353,52 @@ var Fn = (
|
|
|
3353
3353
|
case "plural":
|
|
3354
3354
|
case "selectordinal":
|
|
3355
3355
|
case "select": {
|
|
3356
|
-
var
|
|
3356
|
+
var y = this.clonePosition();
|
|
3357
3357
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3358
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3358
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(y, be({}, y)));
|
|
3359
3359
|
this.bumpSpace();
|
|
3360
|
-
var
|
|
3361
|
-
if (a !== "select" &&
|
|
3360
|
+
var C = this.parseIdentifierIfPossible(), A = 0;
|
|
3361
|
+
if (a !== "select" && C.value === "offset") {
|
|
3362
3362
|
if (!this.bumpIf(":"))
|
|
3363
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3363
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3364
3364
|
this.bumpSpace();
|
|
3365
3365
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3366
3366
|
if (f.err)
|
|
3367
3367
|
return f;
|
|
3368
|
-
this.bumpSpace(),
|
|
3368
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), A = f.val;
|
|
3369
3369
|
}
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3370
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3371
|
+
if (P.err)
|
|
3372
|
+
return P;
|
|
3373
3373
|
var m = this.tryParseArgumentClose(i);
|
|
3374
3374
|
if (m.err)
|
|
3375
3375
|
return m;
|
|
3376
|
-
var
|
|
3376
|
+
var _ = v(i, this.clonePosition());
|
|
3377
3377
|
return a === "select" ? {
|
|
3378
3378
|
val: {
|
|
3379
|
-
type:
|
|
3379
|
+
type: E.select,
|
|
3380
3380
|
value: n,
|
|
3381
|
-
options: vt(
|
|
3382
|
-
location:
|
|
3381
|
+
options: vt(P.val),
|
|
3382
|
+
location: _
|
|
3383
3383
|
},
|
|
3384
3384
|
err: null
|
|
3385
3385
|
} : {
|
|
3386
3386
|
val: {
|
|
3387
|
-
type:
|
|
3387
|
+
type: E.plural,
|
|
3388
3388
|
value: n,
|
|
3389
|
-
options: vt(
|
|
3390
|
-
offset:
|
|
3389
|
+
options: vt(P.val),
|
|
3390
|
+
offset: A,
|
|
3391
3391
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3392
|
-
location:
|
|
3392
|
+
location: _
|
|
3393
3393
|
},
|
|
3394
3394
|
err: null
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
3397
|
default:
|
|
3398
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3398
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3399
3399
|
}
|
|
3400
3400
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3401
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3401
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3402
3402
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3403
3403
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3404
3404
|
var n = this.char();
|
|
@@ -3407,7 +3407,7 @@ var Fn = (
|
|
|
3407
3407
|
this.bump();
|
|
3408
3408
|
var i = this.clonePosition();
|
|
3409
3409
|
if (!this.bumpUntil("'"))
|
|
3410
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3410
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3411
3411
|
this.bump();
|
|
3412
3412
|
break;
|
|
3413
3413
|
}
|
|
@@ -3451,23 +3451,23 @@ var Fn = (
|
|
|
3451
3451
|
err: null
|
|
3452
3452
|
};
|
|
3453
3453
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3454
|
-
for (var o, s = !1, a = [],
|
|
3455
|
-
if (
|
|
3454
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3455
|
+
if (u.length === 0) {
|
|
3456
3456
|
var f = this.clonePosition();
|
|
3457
3457
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3458
3458
|
var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3459
3459
|
if (h.err)
|
|
3460
3460
|
return h;
|
|
3461
|
-
c =
|
|
3461
|
+
c = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3462
3462
|
} else
|
|
3463
3463
|
break;
|
|
3464
3464
|
}
|
|
3465
|
-
if (
|
|
3465
|
+
if (l.has(u))
|
|
3466
3466
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3467
|
-
|
|
3467
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3468
3468
|
var p = this.clonePosition();
|
|
3469
3469
|
if (!this.bumpIf("{"))
|
|
3470
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3470
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3471
3471
|
var m = this.parseMessage(t + 1, r, n);
|
|
3472
3472
|
if (m.err)
|
|
3473
3473
|
return m;
|
|
@@ -3475,14 +3475,14 @@ var Fn = (
|
|
|
3475
3475
|
if (d.err)
|
|
3476
3476
|
return d;
|
|
3477
3477
|
a.push([
|
|
3478
|
-
|
|
3478
|
+
u,
|
|
3479
3479
|
{
|
|
3480
3480
|
value: m.val,
|
|
3481
|
-
location:
|
|
3481
|
+
location: v(p, this.clonePosition())
|
|
3482
3482
|
}
|
|
3483
|
-
]),
|
|
3483
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3484
3484
|
}
|
|
3485
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3485
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3486
3486
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3487
3487
|
var n = 1, i = this.clonePosition();
|
|
3488
3488
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3493,8 +3493,8 @@ var Fn = (
|
|
|
3493
3493
|
else
|
|
3494
3494
|
break;
|
|
3495
3495
|
}
|
|
3496
|
-
var
|
|
3497
|
-
return o ? (s *= n, $n(s) ? { val: s, err: null } : this.error(r,
|
|
3496
|
+
var l = v(i, this.clonePosition());
|
|
3497
|
+
return o ? (s *= n, $n(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3498
3498
|
}, e.prototype.offset = function() {
|
|
3499
3499
|
return this.position.offset;
|
|
3500
3500
|
}, e.prototype.isEOF = function() {
|
|
@@ -3636,14 +3636,14 @@ var we = (
|
|
|
3636
3636
|
}
|
|
3637
3637
|
return t;
|
|
3638
3638
|
}(we)
|
|
3639
|
-
),
|
|
3639
|
+
), H;
|
|
3640
3640
|
(function(e) {
|
|
3641
3641
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3642
|
-
})(
|
|
3642
|
+
})(H || (H = {}));
|
|
3643
3643
|
function Xn(e) {
|
|
3644
3644
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3645
3645
|
var n = t[t.length - 1];
|
|
3646
|
-
return !n || n.type !==
|
|
3646
|
+
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3647
3647
|
}, []);
|
|
3648
3648
|
}
|
|
3649
3649
|
function Zn(e) {
|
|
@@ -3653,22 +3653,22 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3653
3653
|
if (e.length === 1 && ft(e[0]))
|
|
3654
3654
|
return [
|
|
3655
3655
|
{
|
|
3656
|
-
type:
|
|
3656
|
+
type: H.literal,
|
|
3657
3657
|
value: e[0].value
|
|
3658
3658
|
}
|
|
3659
3659
|
];
|
|
3660
|
-
for (var a = [],
|
|
3661
|
-
var c = l
|
|
3660
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3661
|
+
var c = u[l];
|
|
3662
3662
|
if (ft(c)) {
|
|
3663
3663
|
a.push({
|
|
3664
|
-
type:
|
|
3664
|
+
type: H.literal,
|
|
3665
3665
|
value: c.value
|
|
3666
3666
|
});
|
|
3667
3667
|
continue;
|
|
3668
3668
|
}
|
|
3669
3669
|
if (bn(c)) {
|
|
3670
3670
|
typeof o == "number" && a.push({
|
|
3671
|
-
type:
|
|
3671
|
+
type: H.literal,
|
|
3672
3672
|
value: r.getNumberFormat(t).format(o)
|
|
3673
3673
|
});
|
|
3674
3674
|
continue;
|
|
@@ -3679,7 +3679,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3679
3679
|
var h = i[f];
|
|
3680
3680
|
if (mn(c)) {
|
|
3681
3681
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3682
|
-
type: typeof h == "string" ?
|
|
3682
|
+
type: typeof h == "string" ? H.literal : H.object,
|
|
3683
3683
|
value: h
|
|
3684
3684
|
});
|
|
3685
3685
|
continue;
|
|
@@ -3687,7 +3687,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3687
3687
|
if (Gt(c)) {
|
|
3688
3688
|
var p = typeof c.style == "string" ? n.date[c.style] : ze(c.style) ? c.style.parsedOptions : void 0;
|
|
3689
3689
|
a.push({
|
|
3690
|
-
type:
|
|
3690
|
+
type: H.literal,
|
|
3691
3691
|
value: r.getDateTimeFormat(t, p).format(h)
|
|
3692
3692
|
});
|
|
3693
3693
|
continue;
|
|
@@ -3695,7 +3695,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3695
3695
|
if (jt(c)) {
|
|
3696
3696
|
var p = typeof c.style == "string" ? n.time[c.style] : ze(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3697
3697
|
a.push({
|
|
3698
|
-
type:
|
|
3698
|
+
type: H.literal,
|
|
3699
3699
|
value: r.getDateTimeFormat(t, p).format(h)
|
|
3700
3700
|
});
|
|
3701
3701
|
continue;
|
|
@@ -3703,45 +3703,45 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3703
3703
|
if (Ft(c)) {
|
|
3704
3704
|
var p = typeof c.style == "string" ? n.number[c.style] : Vt(c.style) ? c.style.parsedOptions : void 0;
|
|
3705
3705
|
p && p.scale && (h = h * (p.scale || 1)), a.push({
|
|
3706
|
-
type:
|
|
3706
|
+
type: H.literal,
|
|
3707
3707
|
value: r.getNumberFormat(t, p).format(h)
|
|
3708
3708
|
});
|
|
3709
3709
|
continue;
|
|
3710
3710
|
}
|
|
3711
3711
|
if (Wt(c)) {
|
|
3712
|
-
var m = c.children, d = c.value,
|
|
3713
|
-
if (!Zn(
|
|
3712
|
+
var m = c.children, d = c.value, w = i[d];
|
|
3713
|
+
if (!Zn(w))
|
|
3714
3714
|
throw new Wn(d, "function", s);
|
|
3715
|
-
var
|
|
3716
|
-
return
|
|
3715
|
+
var M = pe(m, t, r, n, i, o), T = w(M.map(function(A) {
|
|
3716
|
+
return A.value;
|
|
3717
3717
|
}));
|
|
3718
|
-
Array.isArray(
|
|
3718
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(A) {
|
|
3719
3719
|
return {
|
|
3720
|
-
type: typeof
|
|
3721
|
-
value:
|
|
3720
|
+
type: typeof A == "string" ? H.literal : H.object,
|
|
3721
|
+
value: A
|
|
3722
3722
|
};
|
|
3723
3723
|
}));
|
|
3724
3724
|
}
|
|
3725
3725
|
if (kt(c)) {
|
|
3726
|
-
var
|
|
3727
|
-
if (!
|
|
3726
|
+
var y = c.options[h] || c.options.other;
|
|
3727
|
+
if (!y)
|
|
3728
3728
|
throw new yt(c.value, h, Object.keys(c.options), s);
|
|
3729
|
-
a.push.apply(a, pe(
|
|
3729
|
+
a.push.apply(a, pe(y.value, t, r, n, i));
|
|
3730
3730
|
continue;
|
|
3731
3731
|
}
|
|
3732
3732
|
if (zt(c)) {
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3733
|
+
var y = c.options["=".concat(h)];
|
|
3734
|
+
if (!y) {
|
|
3735
3735
|
if (!Intl.PluralRules)
|
|
3736
3736
|
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3737
3737
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3738
3738
|
`, q.MISSING_INTL_API, s);
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3739
|
+
var C = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3740
|
+
y = c.options[C] || c.options.other;
|
|
3741
3741
|
}
|
|
3742
|
-
if (!
|
|
3742
|
+
if (!y)
|
|
3743
3743
|
throw new yt(c.value, h, Object.keys(c.options), s);
|
|
3744
|
-
a.push.apply(a, pe(
|
|
3744
|
+
a.push.apply(a, pe(y.value, t, r, n, i, h - (c.offset || 0)));
|
|
3745
3745
|
continue;
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
@@ -3813,20 +3813,20 @@ var Jn = (
|
|
|
3813
3813
|
number: {},
|
|
3814
3814
|
dateTime: {},
|
|
3815
3815
|
pluralRules: {}
|
|
3816
|
-
}, this.format = function(
|
|
3817
|
-
var
|
|
3818
|
-
if (
|
|
3819
|
-
return
|
|
3820
|
-
var c =
|
|
3821
|
-
return !f.length || h.type !==
|
|
3816
|
+
}, this.format = function(l) {
|
|
3817
|
+
var u = o.formatToParts(l);
|
|
3818
|
+
if (u.length === 1)
|
|
3819
|
+
return u[0].value;
|
|
3820
|
+
var c = u.reduce(function(f, h) {
|
|
3821
|
+
return !f.length || h.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3822
3822
|
}, []);
|
|
3823
3823
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3824
|
-
}, this.formatToParts = function(
|
|
3825
|
-
return pe(o.ast, o.locales, o.formatters, o.formats,
|
|
3824
|
+
}, this.formatToParts = function(l) {
|
|
3825
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3826
3826
|
}, this.resolvedOptions = function() {
|
|
3827
|
-
var
|
|
3827
|
+
var l;
|
|
3828
3828
|
return {
|
|
3829
|
-
locale: ((
|
|
3829
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3830
3830
|
};
|
|
3831
3831
|
}, this.getAst = function() {
|
|
3832
3832
|
return o.ast;
|
|
@@ -3936,11 +3936,11 @@ function Kn(e, t) {
|
|
|
3936
3936
|
n = void 0;
|
|
3937
3937
|
return n;
|
|
3938
3938
|
}
|
|
3939
|
-
const
|
|
3939
|
+
const L = {}, ei = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), er = (e, t) => {
|
|
3940
3940
|
if (t == null)
|
|
3941
3941
|
return;
|
|
3942
|
-
if (t in
|
|
3943
|
-
return
|
|
3942
|
+
if (t in L && e in L[t])
|
|
3943
|
+
return L[t][e];
|
|
3944
3944
|
const r = Ce(t);
|
|
3945
3945
|
for (let n = 0; n < r.length; n++) {
|
|
3946
3946
|
const i = r[n], o = ri(i, e);
|
|
@@ -3973,7 +3973,7 @@ function ni(e) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
3975
|
function rr(e, ...t) {
|
|
3976
|
-
delete
|
|
3976
|
+
delete L[e], ue.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3977
3977
|
}
|
|
3978
3978
|
J(
|
|
3979
3979
|
[ue],
|
|
@@ -4079,7 +4079,7 @@ function Ce(e, t = Q().fallbackLocale) {
|
|
|
4079
4079
|
const r = Et(e);
|
|
4080
4080
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function U() {
|
|
4083
4083
|
return Ye ?? void 0;
|
|
4084
4084
|
}
|
|
4085
4085
|
ve.subscribe((e) => {
|
|
@@ -4089,7 +4089,7 @@ const vi = (e) => {
|
|
|
4089
4089
|
if (e && ni(e) && Qe(e)) {
|
|
4090
4090
|
const { loadingDelay: t } = Q();
|
|
4091
4091
|
let r;
|
|
4092
|
-
return typeof window < "u" &&
|
|
4092
|
+
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4093
4093
|
() => Ie.set(!0),
|
|
4094
4094
|
t
|
|
4095
4095
|
) : Ie.set(!0), ir(e).then(() => {
|
|
@@ -4154,28 +4154,28 @@ const oe = (e, t) => {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
), Ei = (e = {}) => {
|
|
4156
4156
|
var t = e, {
|
|
4157
|
-
locale: r =
|
|
4157
|
+
locale: r = U()
|
|
4158
4158
|
} = t, n = ee(t, [
|
|
4159
4159
|
"locale"
|
|
4160
4160
|
]);
|
|
4161
4161
|
return yi(et({ locale: r }, n));
|
|
4162
4162
|
}, wi = (e = {}) => {
|
|
4163
4163
|
var t = e, {
|
|
4164
|
-
locale: r =
|
|
4164
|
+
locale: r = U()
|
|
4165
4165
|
} = t, n = ee(t, [
|
|
4166
4166
|
"locale"
|
|
4167
4167
|
]);
|
|
4168
4168
|
return xi(et({ locale: r }, n));
|
|
4169
4169
|
}, Ci = (e = {}) => {
|
|
4170
4170
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4171
|
+
locale: r = U()
|
|
4172
4172
|
} = t, n = ee(t, [
|
|
4173
4173
|
"locale"
|
|
4174
4174
|
]);
|
|
4175
4175
|
return _i(et({ locale: r }, n));
|
|
4176
4176
|
}, Ai = Ae(
|
|
4177
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4178
|
-
(e, t =
|
|
4178
|
+
(e, t = U()) => new Jn(e, t, Q().formats, {
|
|
4179
4179
|
ignoreTag: Q().ignoreTag
|
|
4180
4180
|
})
|
|
4181
4181
|
), Si = (e, t = {}) => {
|
|
@@ -4184,16 +4184,16 @@ const oe = (e, t) => {
|
|
|
4184
4184
|
typeof e == "object" && (s = e, e = s.id);
|
|
4185
4185
|
const {
|
|
4186
4186
|
values: a,
|
|
4187
|
-
locale:
|
|
4188
|
-
default:
|
|
4187
|
+
locale: l = U(),
|
|
4188
|
+
default: u
|
|
4189
4189
|
} = s;
|
|
4190
|
-
if (
|
|
4190
|
+
if (l == null)
|
|
4191
4191
|
throw new Error(
|
|
4192
4192
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4193
4193
|
);
|
|
4194
|
-
let c = er(e,
|
|
4194
|
+
let c = er(e, l);
|
|
4195
4195
|
if (!c)
|
|
4196
|
-
c = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4196
|
+
c = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4197
4197
|
else if (typeof c != "string")
|
|
4198
4198
|
return console.warn(
|
|
4199
4199
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4202,7 +4202,7 @@ const oe = (e, t) => {
|
|
|
4202
4202
|
return c;
|
|
4203
4203
|
let f = c;
|
|
4204
4204
|
try {
|
|
4205
|
-
f = Ai(c,
|
|
4205
|
+
f = Ai(c, l).format(a);
|
|
4206
4206
|
} catch (h) {
|
|
4207
4207
|
h instanceof Error && console.warn(
|
|
4208
4208
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4210,7 +4210,7 @@ const oe = (e, t) => {
|
|
|
4210
4210
|
);
|
|
4211
4211
|
}
|
|
4212
4212
|
return f;
|
|
4213
|
-
}, Ti = (e, t) => Ci(t).format(e), Bi = (e, t) => wi(t).format(e), Hi = (e, t) => Ei(t).format(e), Mi = (e, t =
|
|
4213
|
+
}, Ti = (e, t) => Ci(t).format(e), Bi = (e, t) => wi(t).format(e), Hi = (e, t) => Ei(t).format(e), Mi = (e, t = U()) => er(e, t), Pi = J([K, ue], () => Si);
|
|
4214
4214
|
J([K], () => Ti);
|
|
4215
4215
|
J([K], () => Bi);
|
|
4216
4216
|
J([K], () => Hi);
|
|
@@ -4340,26 +4340,26 @@ function Ri(e) {
|
|
|
4340
4340
|
lr(e, "svelte-sj9hhm", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:30px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4341
4341
|
}
|
|
4342
4342
|
function Di(e) {
|
|
4343
|
-
let t, r, n, i, o, s, a,
|
|
4343
|
+
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4344
4344
|
/*$_*/
|
|
4345
4345
|
e[2]("titleAccountClosure") + ""
|
|
4346
4346
|
), h, p, m;
|
|
4347
4347
|
return {
|
|
4348
4348
|
c() {
|
|
4349
|
-
t = B("div"), r =
|
|
4349
|
+
t = B("div"), r = G("svg"), n = G("defs"), i = G("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = G("g"), a = G("g"), l = G("path"), u = D(), c = B("h2"), h = $(f), x(l, "class", "aaa"), x(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(l, "transform", "translate(15 15) rotate(180)"), x(a, "transform", "translate(20 158)"), x(s, "transform", "translate(-20 -158)"), x(r, "xmlns", "http://www.w3.org/2000/svg"), x(r, "width", "15"), x(r, "height", "15"), x(r, "viewBox", "0 0 15 15"), x(c, "class", "AccountClosureTitleMobile"), x(c, "part", "AccountClosureTitleMobile"), x(t, "class", "MenuReturnButton"), x(t, "part", "MenuReturnButton");
|
|
4350
4350
|
},
|
|
4351
|
-
m(d,
|
|
4352
|
-
ye(d, t,
|
|
4351
|
+
m(d, w) {
|
|
4352
|
+
ye(d, t, w), g(t, r), g(r, n), g(n, i), g(i, o), g(r, s), g(s, a), g(a, l), g(t, u), g(t, c), g(c, h), p || (m = me(
|
|
4353
4353
|
t,
|
|
4354
4354
|
"click",
|
|
4355
4355
|
/*click_handler*/
|
|
4356
4356
|
e[12]
|
|
4357
4357
|
), p = !0);
|
|
4358
4358
|
},
|
|
4359
|
-
p(d,
|
|
4360
|
-
|
|
4359
|
+
p(d, w) {
|
|
4360
|
+
w & /*$_*/
|
|
4361
4361
|
4 && f !== (f = /*$_*/
|
|
4362
|
-
d[2]("titleAccountClosure") + "") &&
|
|
4362
|
+
d[2]("titleAccountClosure") + "") && W(h, f);
|
|
4363
4363
|
},
|
|
4364
4364
|
d(d) {
|
|
4365
4365
|
d && se(t), p = !1, m();
|
|
@@ -4370,22 +4370,22 @@ function St(e) {
|
|
|
4370
4370
|
let t, r, n, i, o = (
|
|
4371
4371
|
/*$_*/
|
|
4372
4372
|
e[2]("modal") + ""
|
|
4373
|
-
), s, a,
|
|
4373
|
+
), s, a, l, u, c = (
|
|
4374
4374
|
/*$_*/
|
|
4375
4375
|
e[2]("accountClosureCancel") + ""
|
|
4376
4376
|
), f, h, p, m = (
|
|
4377
4377
|
/*$_*/
|
|
4378
4378
|
e[2]("accountClosureConfirm") + ""
|
|
4379
|
-
), d,
|
|
4379
|
+
), d, w, M;
|
|
4380
4380
|
return {
|
|
4381
4381
|
c() {
|
|
4382
|
-
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s =
|
|
4382
|
+
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = $(o), a = D(), l = B("div"), u = B("button"), f = $(c), h = D(), p = B("button"), d = $(m), x(i, "class", "ModalText"), x(u, "class", "ModalCancel"), x(p, "class", "ModalConfirm"), x(l, "class", "ModalButtons"), x(n, "class", "ModalBody"), x(r, "class", "ModalContent"), x(t, "class", "ModalWrapper " + /*isMobile*/
|
|
4383
4383
|
(e[3] ? "ModalWrapperMobile" : ""));
|
|
4384
4384
|
},
|
|
4385
|
-
m(
|
|
4386
|
-
ye(
|
|
4385
|
+
m(T, y) {
|
|
4386
|
+
ye(T, t, y), g(t, r), g(r, n), g(n, i), g(i, s), g(n, a), g(n, l), g(l, u), g(u, f), g(l, h), g(l, p), g(p, d), w || (M = [
|
|
4387
4387
|
me(
|
|
4388
|
-
|
|
4388
|
+
u,
|
|
4389
4389
|
"click",
|
|
4390
4390
|
/*click_handler_2*/
|
|
4391
4391
|
e[14]
|
|
@@ -4396,19 +4396,19 @@ function St(e) {
|
|
|
4396
4396
|
/*click_handler_3*/
|
|
4397
4397
|
e[15]
|
|
4398
4398
|
)
|
|
4399
|
-
],
|
|
4399
|
+
], w = !0);
|
|
4400
4400
|
},
|
|
4401
|
-
p(
|
|
4402
|
-
|
|
4401
|
+
p(T, y) {
|
|
4402
|
+
y & /*$_*/
|
|
4403
4403
|
4 && o !== (o = /*$_*/
|
|
4404
|
-
|
|
4404
|
+
T[2]("modal") + "") && W(s, o), y & /*$_*/
|
|
4405
4405
|
4 && c !== (c = /*$_*/
|
|
4406
|
-
|
|
4406
|
+
T[2]("accountClosureCancel") + "") && W(f, c), y & /*$_*/
|
|
4407
4407
|
4 && m !== (m = /*$_*/
|
|
4408
|
-
|
|
4408
|
+
T[2]("accountClosureConfirm") + "") && W(d, m);
|
|
4409
4409
|
},
|
|
4410
|
-
d(
|
|
4411
|
-
|
|
4410
|
+
d(T) {
|
|
4411
|
+
T && se(t), w = !1, Y(M);
|
|
4412
4412
|
}
|
|
4413
4413
|
};
|
|
4414
4414
|
}
|
|
@@ -4416,75 +4416,75 @@ function Ui(e) {
|
|
|
4416
4416
|
let t, r, n, i, o = (
|
|
4417
4417
|
/*$_*/
|
|
4418
4418
|
e[2]("titleAccountClosure") + ""
|
|
4419
|
-
), s, a,
|
|
4419
|
+
), s, a, l, u, c = (
|
|
4420
4420
|
/*$_*/
|
|
4421
4421
|
e[2]("accountClosureDescription") + ""
|
|
4422
|
-
), f, h, p, m
|
|
4422
|
+
), f, h, p, m = (
|
|
4423
4423
|
/*$_*/
|
|
4424
4424
|
e[2]("closeAccount") + ""
|
|
4425
|
-
),
|
|
4425
|
+
), d, w, M, T, y = (
|
|
4426
4426
|
/*isMobile*/
|
|
4427
4427
|
e[3] && Di(e)
|
|
4428
|
-
),
|
|
4428
|
+
), C = (
|
|
4429
4429
|
/*closureModal*/
|
|
4430
4430
|
e[1] && St(e)
|
|
4431
4431
|
);
|
|
4432
4432
|
return {
|
|
4433
4433
|
c() {
|
|
4434
|
-
t = B("div"), r = B("div"),
|
|
4435
|
-
(e[3] ? "AccountClosureTitleNone" : "")), x(
|
|
4436
|
-
(e[3] ? "AccountClosureDescriptionMobile" : "")), x(
|
|
4437
|
-
(e[3] ? "AccountClosureSaveMobile" : "")), x(
|
|
4434
|
+
t = B("div"), r = B("div"), y && y.c(), n = D(), i = B("h2"), s = $(o), a = D(), l = B("div"), u = B("p"), f = D(), h = B("div"), p = B("button"), d = $(m), w = D(), C && C.c(), x(i, "class", "AccountClosureTitle " + /*isMobile*/
|
|
4435
|
+
(e[3] ? "AccountClosureTitleNone" : "")), x(l, "class", "AccountClosureDescription " + /*isMobile*/
|
|
4436
|
+
(e[3] ? "AccountClosureDescriptionMobile" : "")), x(p, "class", "AccountClosureSave " + /*isMobile*/
|
|
4437
|
+
(e[3] ? "AccountClosureSaveMobile" : "")), x(h, "class", "AccountClosureActionButtons " + /*isMobile*/
|
|
4438
4438
|
(e[3] ? "AccountClosureActionButtonsMobile" : "")), x(r, "class", "AccountClosureWrapper " + /*isMobile*/
|
|
4439
4439
|
(e[3] ? "AccountClosureWrapperMobile" : ""));
|
|
4440
4440
|
},
|
|
4441
|
-
m(
|
|
4442
|
-
ye(
|
|
4443
|
-
|
|
4441
|
+
m(A, P) {
|
|
4442
|
+
ye(A, t, P), g(t, r), y && y.m(r, null), g(r, n), g(r, i), g(i, s), g(r, a), g(r, l), g(l, u), u.innerHTML = c, g(r, f), g(r, h), g(h, p), g(p, d), g(t, w), C && C.m(t, null), e[16](t), M || (T = me(
|
|
4443
|
+
p,
|
|
4444
4444
|
"click",
|
|
4445
4445
|
/*click_handler_1*/
|
|
4446
4446
|
e[13]
|
|
4447
|
-
),
|
|
4447
|
+
), M = !0);
|
|
4448
4448
|
},
|
|
4449
|
-
p(
|
|
4449
|
+
p(A, [P]) {
|
|
4450
4450
|
/*isMobile*/
|
|
4451
|
-
|
|
4451
|
+
A[3] && y.p(A, P), P & /*$_*/
|
|
4452
4452
|
4 && o !== (o = /*$_*/
|
|
4453
|
-
|
|
4453
|
+
A[2]("titleAccountClosure") + "") && W(s, o), P & /*$_*/
|
|
4454
4454
|
4 && c !== (c = /*$_*/
|
|
4455
|
-
|
|
4456
|
-
4 &&
|
|
4457
|
-
|
|
4458
|
-
|
|
4455
|
+
A[2]("accountClosureDescription") + "") && (u.innerHTML = c), P & /*$_*/
|
|
4456
|
+
4 && m !== (m = /*$_*/
|
|
4457
|
+
A[2]("closeAccount") + "") && W(d, m), /*closureModal*/
|
|
4458
|
+
A[1] ? C ? C.p(A, P) : (C = St(A), C.c(), C.m(t, null)) : C && (C.d(1), C = null);
|
|
4459
4459
|
},
|
|
4460
4460
|
i: O,
|
|
4461
4461
|
o: O,
|
|
4462
|
-
d(
|
|
4463
|
-
|
|
4462
|
+
d(A) {
|
|
4463
|
+
A && se(t), y && y.d(), C && C.d(), e[16](null), M = !1, T();
|
|
4464
4464
|
}
|
|
4465
4465
|
};
|
|
4466
4466
|
}
|
|
4467
4467
|
function Fi(e, t, r) {
|
|
4468
4468
|
let n;
|
|
4469
|
-
ur(e, Pi, (
|
|
4470
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl:
|
|
4469
|
+
ur(e, Pi, (_) => r(2, n = _));
|
|
4470
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, u = window.navigator.userAgent, c = Oi(u) !== "PC", f = !1, h;
|
|
4471
4471
|
const p = () => {
|
|
4472
|
-
fetch(
|
|
4473
|
-
Object.keys(
|
|
4474
|
-
Ct(tt,
|
|
4472
|
+
fetch(l).then((F) => F.json()).then((F) => {
|
|
4473
|
+
Object.keys(F).forEach((tt) => {
|
|
4474
|
+
Ct(tt, F[tt]);
|
|
4475
4475
|
});
|
|
4476
|
-
}).catch((
|
|
4477
|
-
console.log(
|
|
4476
|
+
}).catch((F) => {
|
|
4477
|
+
console.log(F);
|
|
4478
4478
|
});
|
|
4479
4479
|
};
|
|
4480
|
-
Object.keys(At).forEach((
|
|
4481
|
-
Ct(
|
|
4480
|
+
Object.keys(At).forEach((_) => {
|
|
4481
|
+
Ct(_, At[_]);
|
|
4482
4482
|
});
|
|
4483
|
-
const m = (
|
|
4484
|
-
r(1, f =
|
|
4483
|
+
const m = (_) => {
|
|
4484
|
+
r(1, f = _), _ === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4485
4485
|
}, d = () => {
|
|
4486
4486
|
m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4487
|
-
},
|
|
4487
|
+
}, w = () => {
|
|
4488
4488
|
window.postMessage(
|
|
4489
4489
|
{
|
|
4490
4490
|
type: "PlayerAccountMenuActive",
|
|
@@ -4492,26 +4492,26 @@ function Fi(e, t, r) {
|
|
|
4492
4492
|
},
|
|
4493
4493
|
window.location.href
|
|
4494
4494
|
);
|
|
4495
|
-
},
|
|
4495
|
+
}, M = () => {
|
|
4496
4496
|
Ii(i);
|
|
4497
4497
|
};
|
|
4498
4498
|
mr(() => () => {
|
|
4499
4499
|
});
|
|
4500
|
-
const
|
|
4501
|
-
function
|
|
4502
|
-
Ne[
|
|
4503
|
-
h =
|
|
4500
|
+
const T = () => w(), y = () => m(!0), C = () => m(!1), A = () => d();
|
|
4501
|
+
function P(_) {
|
|
4502
|
+
Ne[_ ? "unshift" : "push"](() => {
|
|
4503
|
+
h = _, r(0, h);
|
|
4504
4504
|
});
|
|
4505
4505
|
}
|
|
4506
|
-
return e.$$set = (
|
|
4507
|
-
"lang" in
|
|
4506
|
+
return e.$$set = (_) => {
|
|
4507
|
+
"lang" in _ && r(7, i = _.lang), "clientstyling" in _ && r(8, o = _.clientstyling), "clientstylingurl" in _ && r(9, s = _.clientstylingurl), "mbsource" in _ && r(10, a = _.mbsource), "translationurl" in _ && r(11, l = _.translationurl);
|
|
4508
4508
|
}, e.$$.update = () => {
|
|
4509
4509
|
e.$$.dirty & /*lang*/
|
|
4510
|
-
128 && i &&
|
|
4510
|
+
128 && i && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4511
4511
|
257 && o && h && Ni(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4512
4512
|
513 && s && h && Li(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4513
4513
|
1025 && a && h && $i(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4514
|
-
2048 &&
|
|
4514
|
+
2048 && l && p();
|
|
4515
4515
|
}, [
|
|
4516
4516
|
h,
|
|
4517
4517
|
f,
|
|
@@ -4519,17 +4519,17 @@ function Fi(e, t, r) {
|
|
|
4519
4519
|
c,
|
|
4520
4520
|
m,
|
|
4521
4521
|
d,
|
|
4522
|
-
|
|
4522
|
+
w,
|
|
4523
4523
|
i,
|
|
4524
4524
|
o,
|
|
4525
4525
|
s,
|
|
4526
4526
|
a,
|
|
4527
|
-
|
|
4528
|
-
|
|
4527
|
+
l,
|
|
4528
|
+
T,
|
|
4529
|
+
y,
|
|
4530
|
+
C,
|
|
4529
4531
|
A,
|
|
4530
|
-
|
|
4531
|
-
E,
|
|
4532
|
-
T
|
|
4532
|
+
P
|
|
4533
4533
|
];
|
|
4534
4534
|
}
|
|
4535
4535
|
class Gi extends Tr {
|