@everymatrix/player-account-vault 1.99.56 → 1.99.59
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/{PlayerAccountVault-BXzHRq2O.js → PlayerAccountVault-B0XW7L8E.js} +31 -56
- package/components/{PlayerAccountVault-C3GhhEiM.js → PlayerAccountVault-Cr5UmgXp.js} +32 -57
- package/components/{PlayerAccountVault-XuLd3F9K.cjs → PlayerAccountVault-CvefSZ47.cjs} +1 -1
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
|
@@ -45,8 +45,7 @@ function Cr(e, t, r) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function ai(e) {
|
|
48
|
-
if (!e)
|
|
49
|
-
return document;
|
|
48
|
+
if (!e) return document;
|
|
50
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
51
50
|
return t && /** @type {ShadowRoot} */
|
|
52
51
|
t.host ? (
|
|
@@ -127,8 +126,7 @@ function ht(e) {
|
|
|
127
126
|
ft = e;
|
|
128
127
|
}
|
|
129
128
|
function _n() {
|
|
130
|
-
if (!ft)
|
|
131
|
-
throw new Error("Function called outside component initialization");
|
|
129
|
+
if (!ft) throw new Error("Function called outside component initialization");
|
|
132
130
|
return ft;
|
|
133
131
|
}
|
|
134
132
|
function En(e) {
|
|
@@ -168,8 +166,7 @@ function R() {
|
|
|
168
166
|
} catch (t) {
|
|
169
167
|
throw $e.length = 0, Ve = 0, t;
|
|
170
168
|
}
|
|
171
|
-
for (ht(null), $e.length = 0, Ve = 0; We.length; )
|
|
172
|
-
We.pop()();
|
|
169
|
+
for (ht(null), $e.length = 0, Ve = 0; We.length; ) We.pop()();
|
|
173
170
|
for (let t = 0; t < je.length; t += 1) {
|
|
174
171
|
const r = je[t];
|
|
175
172
|
Qt.has(r) || (Qt.add(r), r());
|
|
@@ -209,13 +206,11 @@ function k(e, t) {
|
|
|
209
206
|
}
|
|
210
207
|
function $(e, t, r, n) {
|
|
211
208
|
if (e && e.o) {
|
|
212
|
-
if (Ht.has(e))
|
|
213
|
-
return;
|
|
209
|
+
if (Ht.has(e)) return;
|
|
214
210
|
Ht.add(e), Ie.c.push(() => {
|
|
215
211
|
Ht.delete(e), n && (r && e.d(1), n());
|
|
216
212
|
}), e.o(t);
|
|
217
|
-
} else
|
|
218
|
-
n && n();
|
|
213
|
+
} else n && n();
|
|
219
214
|
}
|
|
220
215
|
function Mt(e) {
|
|
221
216
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
@@ -643,8 +638,7 @@ var ur = function(e, t) {
|
|
|
643
638
|
return ur = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
644
639
|
r.__proto__ = n;
|
|
645
640
|
} || function(r, n) {
|
|
646
|
-
for (var i in n)
|
|
647
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
641
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
648
642
|
}, ur(e, t);
|
|
649
643
|
};
|
|
650
644
|
function $t(e, t) {
|
|
@@ -660,25 +654,22 @@ var de = function() {
|
|
|
660
654
|
return de = Object.assign || function(t) {
|
|
661
655
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
662
656
|
r = arguments[n];
|
|
663
|
-
for (var o in r)
|
|
664
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
657
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
665
658
|
}
|
|
666
659
|
return t;
|
|
667
660
|
}, de.apply(this, arguments);
|
|
668
661
|
};
|
|
669
662
|
function Ni(e, t) {
|
|
670
663
|
var r = {};
|
|
671
|
-
for (var n in e)
|
|
672
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
664
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
673
665
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
674
666
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
675
667
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
676
668
|
return r;
|
|
677
669
|
}
|
|
678
670
|
function Yt(e, t, r) {
|
|
679
|
-
if (r || arguments.length === 2)
|
|
680
|
-
|
|
681
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
671
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
672
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
682
673
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
683
674
|
}
|
|
684
675
|
function Jt(e, t) {
|
|
@@ -733,8 +724,7 @@ var Ui = function() {
|
|
|
733
724
|
return kt = Object.assign || function(t) {
|
|
734
725
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
735
726
|
r = arguments[n];
|
|
736
|
-
for (var o in r)
|
|
737
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
727
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
738
728
|
}
|
|
739
729
|
return t;
|
|
740
730
|
}, kt.apply(this, arguments);
|
|
@@ -880,8 +870,7 @@ var M = function() {
|
|
|
880
870
|
return M = Object.assign || function(t) {
|
|
881
871
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
882
872
|
r = arguments[n];
|
|
883
|
-
for (var o in r)
|
|
884
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
873
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
885
874
|
}
|
|
886
875
|
return t;
|
|
887
876
|
}, M.apply(this, arguments);
|
|
@@ -2523,8 +2512,7 @@ function Ji(e, t) {
|
|
|
2523
2512
|
r += s;
|
|
2524
2513
|
for (; a-- > 0; )
|
|
2525
2514
|
r = u + r;
|
|
2526
|
-
} else
|
|
2527
|
-
i === "J" ? r += "H" : r += i;
|
|
2515
|
+
} else i === "J" ? r += "H" : r += i;
|
|
2528
2516
|
}
|
|
2529
2517
|
return r;
|
|
2530
2518
|
}
|
|
@@ -3127,8 +3115,7 @@ function mr(e) {
|
|
|
3127
3115
|
if (delete t.location, In(t) || On(t))
|
|
3128
3116
|
for (var r in t.options)
|
|
3129
3117
|
delete t.options[r].location, mr(t.options[r].value);
|
|
3130
|
-
else
|
|
3131
|
-
Bn(t) && Rn(t.style) || (Pn(t) || Hn(t)) && cr(t.style) ? delete t.style.location : Ln(t) && mr(t.children);
|
|
3118
|
+
else Bn(t) && Rn(t.style) || (Pn(t) || Hn(t)) && cr(t.style) ? delete t.style.location : Ln(t) && mr(t.children);
|
|
3132
3119
|
});
|
|
3133
3120
|
}
|
|
3134
3121
|
function vo(e, t) {
|
|
@@ -3901,8 +3888,7 @@ var yr = function(e, t) {
|
|
|
3901
3888
|
return yr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3902
3889
|
r.__proto__ = n;
|
|
3903
3890
|
} || function(r, n) {
|
|
3904
|
-
for (var i in n)
|
|
3905
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3891
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3906
3892
|
}, yr(e, t);
|
|
3907
3893
|
};
|
|
3908
3894
|
function bt(e, t) {
|
|
@@ -3916,40 +3902,34 @@ function bt(e, t) {
|
|
|
3916
3902
|
}
|
|
3917
3903
|
function vr(e) {
|
|
3918
3904
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3919
|
-
if (r)
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
}
|
|
3926
|
-
};
|
|
3905
|
+
if (r) return r.call(e);
|
|
3906
|
+
if (e && typeof e.length == "number") return {
|
|
3907
|
+
next: function() {
|
|
3908
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
3909
|
+
}
|
|
3910
|
+
};
|
|
3927
3911
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3928
3912
|
}
|
|
3929
3913
|
function _r(e, t) {
|
|
3930
3914
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3931
|
-
if (!r)
|
|
3932
|
-
return e;
|
|
3915
|
+
if (!r) return e;
|
|
3933
3916
|
var n = r.call(e), i, o = [], a;
|
|
3934
3917
|
try {
|
|
3935
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
3936
|
-
o.push(i.value);
|
|
3918
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
3937
3919
|
} catch (l) {
|
|
3938
3920
|
a = { error: l };
|
|
3939
3921
|
} finally {
|
|
3940
3922
|
try {
|
|
3941
3923
|
i && !i.done && (r = n.return) && r.call(n);
|
|
3942
3924
|
} finally {
|
|
3943
|
-
if (a)
|
|
3944
|
-
throw a.error;
|
|
3925
|
+
if (a) throw a.error;
|
|
3945
3926
|
}
|
|
3946
3927
|
}
|
|
3947
3928
|
return o;
|
|
3948
3929
|
}
|
|
3949
3930
|
function Er(e, t, r) {
|
|
3950
|
-
if (arguments.length === 2)
|
|
3951
|
-
|
|
3952
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3931
|
+
if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
3932
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3953
3933
|
return e.concat(o || t);
|
|
3954
3934
|
}
|
|
3955
3935
|
function Ee(e) {
|
|
@@ -3998,8 +3978,7 @@ var zt = function() {
|
|
|
3998
3978
|
try {
|
|
3999
3979
|
s && !s.done && (r = l.return) && r.call(l);
|
|
4000
3980
|
} finally {
|
|
4001
|
-
if (t)
|
|
4002
|
-
throw t.error;
|
|
3981
|
+
if (t) throw t.error;
|
|
4003
3982
|
}
|
|
4004
3983
|
}
|
|
4005
3984
|
else
|
|
@@ -4029,8 +4008,7 @@ var zt = function() {
|
|
|
4029
4008
|
try {
|
|
4030
4009
|
m && !m.done && (i = h.return) && i.call(h);
|
|
4031
4010
|
} finally {
|
|
4032
|
-
if (n)
|
|
4033
|
-
throw n.error;
|
|
4011
|
+
if (n) throw n.error;
|
|
4034
4012
|
}
|
|
4035
4013
|
}
|
|
4036
4014
|
}
|
|
@@ -4297,8 +4275,7 @@ var _a = Kn(function(e) {
|
|
|
4297
4275
|
try {
|
|
4298
4276
|
l && !l.done && (o = a.return) && o.call(a);
|
|
4299
4277
|
} finally {
|
|
4300
|
-
if (i)
|
|
4301
|
-
throw i.error;
|
|
4278
|
+
if (i) throw i.error;
|
|
4302
4279
|
}
|
|
4303
4280
|
}
|
|
4304
4281
|
}
|
|
@@ -4738,11 +4715,9 @@ const nn = (e, t = null, r = 2) => {
|
|
|
4738
4715
|
};
|
|
4739
4716
|
function Ta(e) {
|
|
4740
4717
|
if (e) {
|
|
4741
|
-
if (e = e.toString(), isNaN(e))
|
|
4742
|
-
throw Error("Parameter is not a number: " + e);
|
|
4718
|
+
if (e = e.toString(), isNaN(e)) throw Error("Parameter is not a number: " + e);
|
|
4743
4719
|
e[0] == "+" && (e = e.substring(1));
|
|
4744
|
-
} else
|
|
4745
|
-
e = "0";
|
|
4720
|
+
} else e = "0";
|
|
4746
4721
|
if (e.startsWith(".") ? e = "0" + e : e.startsWith("-.") && (e = "-0" + e.substr(1)), /e/i.test(e)) {
|
|
4747
4722
|
let [t, r] = e.split(/[eE]/);
|
|
4748
4723
|
t = trim(t);
|
|
@@ -10,7 +10,7 @@ var nn = (e, t, n) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
di.call(t, n) && nn(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, rn = (e, t) => hi(e, fi(t));
|
|
13
|
-
var ae = (e, t, n) =>
|
|
13
|
+
var ae = (e, t, n) => nn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var Ht = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -74,8 +74,7 @@ function Ln(e, t, n) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
function yi(e) {
|
|
77
|
-
if (!e)
|
|
78
|
-
return document;
|
|
77
|
+
if (!e) return document;
|
|
79
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
80
79
|
return t && /** @type {ShadowRoot} */
|
|
81
80
|
t.host ? (
|
|
@@ -156,8 +155,7 @@ function mt(e) {
|
|
|
156
155
|
gt = e;
|
|
157
156
|
}
|
|
158
157
|
function Br() {
|
|
159
|
-
if (!gt)
|
|
160
|
-
throw new Error("Function called outside component initialization");
|
|
158
|
+
if (!gt) throw new Error("Function called outside component initialization");
|
|
161
159
|
return gt;
|
|
162
160
|
}
|
|
163
161
|
function Pr(e) {
|
|
@@ -197,8 +195,7 @@ function F() {
|
|
|
197
195
|
} catch (t) {
|
|
198
196
|
throw Ke.length = 0, ze = 0, t;
|
|
199
197
|
}
|
|
200
|
-
for (mt(null), Ke.length = 0, ze = 0; Qe.length; )
|
|
201
|
-
Qe.pop()();
|
|
198
|
+
for (mt(null), Ke.length = 0, ze = 0; Qe.length; ) Qe.pop()();
|
|
202
199
|
for (let t = 0; t < qe.length; t += 1) {
|
|
203
200
|
const n = qe[t];
|
|
204
201
|
on.has(n) || (on.add(n), n());
|
|
@@ -238,13 +235,11 @@ function G(e, t) {
|
|
|
238
235
|
}
|
|
239
236
|
function X(e, t, n, r) {
|
|
240
237
|
if (e && e.o) {
|
|
241
|
-
if (Rt.has(e))
|
|
242
|
-
return;
|
|
238
|
+
if (Rt.has(e)) return;
|
|
243
239
|
Rt.add(e), Me.c.push(() => {
|
|
244
240
|
Rt.delete(e), r && (n && e.d(1), r());
|
|
245
241
|
}), e.o(t);
|
|
246
|
-
} else
|
|
247
|
-
r && r();
|
|
242
|
+
} else r && r();
|
|
248
243
|
}
|
|
249
244
|
function Gt(e) {
|
|
250
245
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
@@ -680,8 +675,7 @@ var bn = function(e, t) {
|
|
|
680
675
|
return bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
681
676
|
n.__proto__ = r;
|
|
682
677
|
} || function(n, r) {
|
|
683
|
-
for (var i in r)
|
|
684
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
678
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
685
679
|
}, bn(e, t);
|
|
686
680
|
};
|
|
687
681
|
function Zt(e, t) {
|
|
@@ -697,25 +691,22 @@ var me = function() {
|
|
|
697
691
|
return me = Object.assign || function(t) {
|
|
698
692
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
699
693
|
n = arguments[r];
|
|
700
|
-
for (var o in n)
|
|
701
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
694
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
702
695
|
}
|
|
703
696
|
return t;
|
|
704
697
|
}, me.apply(this, arguments);
|
|
705
698
|
};
|
|
706
699
|
function zi(e, t) {
|
|
707
700
|
var n = {};
|
|
708
|
-
for (var r in e)
|
|
709
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
701
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
710
702
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
711
703
|
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
712
704
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
713
705
|
return n;
|
|
714
706
|
}
|
|
715
707
|
function an(e, t, n) {
|
|
716
|
-
if (n || arguments.length === 2)
|
|
717
|
-
|
|
718
|
-
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
708
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
|
|
709
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
719
710
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
720
711
|
}
|
|
721
712
|
function sn(e, t) {
|
|
@@ -770,8 +761,7 @@ var Yi = function() {
|
|
|
770
761
|
return $t = Object.assign || function(t) {
|
|
771
762
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
772
763
|
n = arguments[r];
|
|
773
|
-
for (var o in n)
|
|
774
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
764
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
775
765
|
}
|
|
776
766
|
return t;
|
|
777
767
|
}, $t.apply(this, arguments);
|
|
@@ -917,8 +907,7 @@ var V = function() {
|
|
|
917
907
|
return V = Object.assign || function(t) {
|
|
918
908
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
919
909
|
n = arguments[r];
|
|
920
|
-
for (var o in n)
|
|
921
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
910
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
922
911
|
}
|
|
923
912
|
return t;
|
|
924
913
|
}, V.apply(this, arguments);
|
|
@@ -2560,8 +2549,7 @@ function ho(e, t) {
|
|
|
2560
2549
|
n += l;
|
|
2561
2550
|
for (; a-- > 0; )
|
|
2562
2551
|
n = u + n;
|
|
2563
|
-
} else
|
|
2564
|
-
i === "J" ? n += "H" : n += i;
|
|
2552
|
+
} else i === "J" ? n += "H" : n += i;
|
|
2565
2553
|
}
|
|
2566
2554
|
return n;
|
|
2567
2555
|
}
|
|
@@ -3164,8 +3152,7 @@ function wn(e) {
|
|
|
3164
3152
|
if (delete t.location, Fr(t) || Ur(t))
|
|
3165
3153
|
for (var n in t.options)
|
|
3166
3154
|
delete t.options[n].location, wn(t.options[n].value);
|
|
3167
|
-
else
|
|
3168
|
-
Dr(t) && Gr(t.style) || (Mr(t) || kr(t)) && yn(t.style) ? delete t.style.location : Vr(t) && wn(t.children);
|
|
3155
|
+
else Dr(t) && Gr(t.style) || (Mr(t) || kr(t)) && yn(t.style) ? delete t.style.location : Vr(t) && wn(t.children);
|
|
3169
3156
|
});
|
|
3170
3157
|
}
|
|
3171
3158
|
function Io(e, t) {
|
|
@@ -3938,8 +3925,7 @@ var Cn = function(e, t) {
|
|
|
3938
3925
|
return Cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
3939
3926
|
n.__proto__ = r;
|
|
3940
3927
|
} || function(n, r) {
|
|
3941
|
-
for (var i in r)
|
|
3942
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
3928
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
3943
3929
|
}, Cn(e, t);
|
|
3944
3930
|
};
|
|
3945
3931
|
function Et(e, t) {
|
|
@@ -3953,40 +3939,34 @@ function Et(e, t) {
|
|
|
3953
3939
|
}
|
|
3954
3940
|
function Sn(e) {
|
|
3955
3941
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
3956
|
-
if (n)
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
}
|
|
3963
|
-
};
|
|
3942
|
+
if (n) return n.call(e);
|
|
3943
|
+
if (e && typeof e.length == "number") return {
|
|
3944
|
+
next: function() {
|
|
3945
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
3946
|
+
}
|
|
3947
|
+
};
|
|
3964
3948
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3965
3949
|
}
|
|
3966
3950
|
function Bn(e, t) {
|
|
3967
3951
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3968
|
-
if (!n)
|
|
3969
|
-
return e;
|
|
3952
|
+
if (!n) return e;
|
|
3970
3953
|
var r = n.call(e), i, o = [], a;
|
|
3971
3954
|
try {
|
|
3972
|
-
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
3973
|
-
o.push(i.value);
|
|
3955
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) o.push(i.value);
|
|
3974
3956
|
} catch (s) {
|
|
3975
3957
|
a = { error: s };
|
|
3976
3958
|
} finally {
|
|
3977
3959
|
try {
|
|
3978
3960
|
i && !i.done && (n = r.return) && n.call(r);
|
|
3979
3961
|
} finally {
|
|
3980
|
-
if (a)
|
|
3981
|
-
throw a.error;
|
|
3962
|
+
if (a) throw a.error;
|
|
3982
3963
|
}
|
|
3983
3964
|
}
|
|
3984
3965
|
return o;
|
|
3985
3966
|
}
|
|
3986
3967
|
function Pn(e, t, n) {
|
|
3987
|
-
if (arguments.length === 2)
|
|
3988
|
-
|
|
3989
|
-
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
3968
|
+
if (arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
|
|
3969
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
3990
3970
|
return e.concat(o || t);
|
|
3991
3971
|
}
|
|
3992
3972
|
function we(e) {
|
|
@@ -4035,8 +4015,7 @@ var Yt = function() {
|
|
|
4035
4015
|
try {
|
|
4036
4016
|
l && !l.done && (n = s.return) && n.call(s);
|
|
4037
4017
|
} finally {
|
|
4038
|
-
if (t)
|
|
4039
|
-
throw t.error;
|
|
4018
|
+
if (t) throw t.error;
|
|
4040
4019
|
}
|
|
4041
4020
|
}
|
|
4042
4021
|
else
|
|
@@ -4066,8 +4045,7 @@ var Yt = function() {
|
|
|
4066
4045
|
try {
|
|
4067
4046
|
m && !m.done && (i = c.return) && i.call(c);
|
|
4068
4047
|
} finally {
|
|
4069
|
-
if (r)
|
|
4070
|
-
throw r.error;
|
|
4048
|
+
if (r) throw r.error;
|
|
4071
4049
|
}
|
|
4072
4050
|
}
|
|
4073
4051
|
}
|
|
@@ -4334,8 +4312,7 @@ var Oa = ri(function(e) {
|
|
|
4334
4312
|
try {
|
|
4335
4313
|
s && !s.done && (o = a.return) && o.call(a);
|
|
4336
4314
|
} finally {
|
|
4337
|
-
if (i)
|
|
4338
|
-
throw i.error;
|
|
4315
|
+
if (i) throw i.error;
|
|
4339
4316
|
}
|
|
4340
4317
|
}
|
|
4341
4318
|
}
|
|
@@ -4773,11 +4750,9 @@ const fr = (e, t = null, n = 2) => {
|
|
|
4773
4750
|
};
|
|
4774
4751
|
function ka(e) {
|
|
4775
4752
|
if (e) {
|
|
4776
|
-
if (e = e.toString(), isNaN(e))
|
|
4777
|
-
throw Error("Parameter is not a number: " + e);
|
|
4753
|
+
if (e = e.toString(), isNaN(e)) throw Error("Parameter is not a number: " + e);
|
|
4778
4754
|
e[0] == "+" && (e = e.substring(1));
|
|
4779
|
-
} else
|
|
4780
|
-
e = "0";
|
|
4755
|
+
} else e = "0";
|
|
4781
4756
|
if (e.startsWith(".") ? e = "0" + e : e.startsWith("-.") && (e = "-0" + e.substr(1)), /e/i.test(e)) {
|
|
4782
4757
|
let [t, n] = e.split(/[eE]/);
|
|
4783
4758
|
t = trim(t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var hi=Object.defineProperty,fi=Object.defineProperties;var pi=Object.getOwnPropertyDescriptors;var Fn=Object.getOwnPropertySymbols;var di=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable;var nn=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))di.call(t,n)&&nn(e,n,t[n]);if(Fn)for(var n of Fn(t))mi.call(t,n)&&nn(e,n,t[n]);return e},rn=(e,t)=>fi(e,pi(t));var ae=(e,t,n)=>(nn(e,typeof t!="symbol"?t+"":t,n),n);var Ht=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{s(n.next(l))}catch(u){i(u)}},a=l=>{try{s(n.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,a);s((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function I(){}function Tr(e){return e()}function Un(){return Object.create(null)}function Ae(e){e.forEach(Tr)}function _t(e){return typeof e=="function"}function Xt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function gi(e){return Object.keys(e).length===0}function Cr(e,...t){if(e==null){for(const r of t)r(void 0);return I}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function bi(e){let t;return Cr(e,n=>t=n)(),t}function yi(e){return e&&_t(e.destroy)?e.destroy:I}function x(e,t){e.appendChild(t)}function Ln(e,t,n){const r=vi(e);if(!r.getElementById(t)){const i=T("style");i.id=t,i.textContent=n,_i(r,i)}}function vi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _i(e,t){return x(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function Sr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function Vn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function R(){return z(" ")}function Ei(){return z("")}function ne(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function xi(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Vt(e){return e===""?null:+e}function wi(e){return Array.from(e.childNodes)}function re(e,t){t=""+t,e.data!==t&&(e.data=t)}function It(e,t){e.value=t==null?"":t}function se(e,t,n){e.classList.toggle(t,!!n)}function Ai(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let gt;function mt(e){gt=e}function Br(){if(!gt)throw new Error("Function called outside component initialization");return gt}function Pr(e){Br().$$.on_mount.push(e)}function Ti(e){Br().$$.on_destroy.push(e)}const Ke=[],Qe=[];let qe=[];const dn=[],Hr=Promise.resolve();let mn=!1;function Ir(){mn||(mn=!0,Hr.then(F))}function Ci(){return Ir(),Hr}function gn(e){qe.push(e)}function Gn(e){dn.push(e)}const on=new Set;let ze=0;function F(){if(ze!==0)return;const e=gt;do{try{for(;ze<Ke.length;){const t=Ke[ze];ze++,mt(t),Si(t.$$)}}catch(t){throw Ke.length=0,ze=0,t}for(mt(null),Ke.length=0,ze=0;Qe.length;)Qe.pop()();for(let t=0;t<qe.length;t+=1){const n=qe[t];on.has(n)||(on.add(n),n())}qe.length=0}while(Ke.length);for(;dn.length;)dn.pop()();mn=!1,on.clear(),mt(e)}function Si(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gn)}}function Bi(e){const t=[],n=[];qe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),qe=t}const Rt=new Set;let Me;function ke(){Me={r:0,c:[],p:Me}}function Fe(){Me.r||Ae(Me.c),Me=Me.p}function G(e,t){e&&e.i&&(Rt.delete(e),e.i(t))}function X(e,t,n,r){if(e&&e.o){if(Rt.has(e))return;Rt.add(e),Me.c.push(()=>{Rt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Gt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function $n(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function bt(e){e&&e.c()}function Ye(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),gn(()=>{const o=e.$$.on_mount.map(Tr).filter(_t);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ae(o),e.$$.on_mount=[]}),i.forEach(gn)}function Je(e,t){const n=e.$$;n.fragment!==null&&(Bi(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Pi(e,t){e.$$.dirty[0]===-1&&(Ke.push(e),Ir(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Nn(e,t,n,r,i,o,a=null,s=[-1]){const l=gt;mt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:I,not_equal:i,bound:Un(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Un(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(f,c,...m)=>{const _=m.length?m[0]:c;return u.ctx&&i(u.ctx[f],u.ctx[f]=_)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](_),h&&Pi(e,f)),c}):[],u.update(),h=!0,Ae(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const f=wi(t.target);u.fragment&&u.fragment.l(f),f.forEach(B)}else u.fragment&&u.fragment.c();t.intro&&G(e.$$.fragment),Ye(e,t.target,t.anchor),F()}mt(l)}let Or;typeof HTMLElement=="function"&&(Or=class extends HTMLElement{constructor(t,n,r){super();ae(this,"$$ctor");ae(this,"$$s");ae(this,"$$c");ae(this,"$$cn",!1);ae(this,"$$d",{});ae(this,"$$r",!1);ae(this,"$$p_d",{});ae(this,"$$l",{});ae(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ht(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=T("slot"),o!=="default"&&v(a,"name",o)},m:function(u,h){P(u,a,h)},d:function(u){u&&B(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Ai(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Dt(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:rn(Ie({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Dt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Dt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Dt(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Rn(e,t,n,r,i,o){let a=class extends Or{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=Dt(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),r.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Dn{constructor(){ae(this,"$$");ae(this,"$$set")}$destroy(){Je(this,1),this.$destroy=I}$on(t,n){if(!_t(n))return I;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!gi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Hi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hi);const Ze=[];function Ii(e,t){return{subscribe:zt(e,t).subscribe}}function zt(e,t=I){let n;const r=new Set;function i(s){if(Xt(e,s)&&(e=s,n)){const l=!Ze.length;for(const u of r)u[1](),Ze.push(u,e);if(l){for(let u=0;u<Ze.length;u+=2)Ze[u][0](Ze[u+1]);Ze.length=0}}}function o(s){i(s(e))}function a(s,l=I){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,o)||I),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:a}}function it(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ii(n,(a,s)=>{let l=!1;const u=[];let h=0,f=I;const c=()=>{if(h)return;f();const _=t(r?u[0]:u,a,s);o?a(_):f=_t(_)?_:I},m=i.map((_,g)=>Cr(_,w=>{u[g]=w,h&=~(1<<g),l&&c()},()=>{h|=1<<g}));return l=!0,c(),function(){Ae(m),f(),l=!1}})}function Oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Li=function(t){return Ni(t)&&!Ri(t)};function Ni(e){return!!e&&typeof e=="object"}function Ri(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ki(e)}var Di=typeof Symbol=="function"&&Symbol.for,Mi=Di?Symbol.for("react.element"):60103;function ki(e){return e.$$typeof===Mi}function Fi(e){return Array.isArray(e)?[]:{}}function yt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?et(Fi(e),e,t):e}function Ui(e,t,n){return e.concat(t).map(function(r){return yt(r,n)})}function Vi(e,t){if(!t.customMerge)return et;var n=t.customMerge(e);return typeof n=="function"?n:et}function Gi(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jn(e){return Object.keys(e).concat(Gi(e))}function Lr(e,t){try{return t in e}catch(n){return!1}}function $i(e,t){return Lr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ji(e,t,n){var r={};return n.isMergeableObject(e)&&jn(e).forEach(function(i){r[i]=yt(e[i],n)}),jn(t).forEach(function(i){$i(e,i)||(Lr(e,i)&&n.isMergeableObject(t[i])?r[i]=Vi(i,n)(e[i],t[i],n):r[i]=yt(t[i],n))}),r}function et(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ui,n.isMergeableObject=n.isMergeableObject||Li,n.cloneUnlessOtherwiseSpecified=yt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):ji(e,t,n):yt(t,n)}et.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return et(r,i,n)},{})};var Wi=et,Xi=Wi;const zi=Oi(Xi);var bn=function(e,t){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},bn(e,t)};function Zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var me=function(){return me=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)};function Zi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function an(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function sn(e,t){var n=t&&t.cache?t.cache:to,r=t&&t.serializer?t.serializer:Ji,i=t&&t.strategy?t.strategy:Qi;return i(e,{cache:n,serializer:r})}function Ki(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qi(e,t,n,r){var i=Ki(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Nr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Rr(e,t,n,r,i){return n.bind(t,e,r,i)}function Qi(e,t){var n=e.length===1?qi:Nr;return Rr(e,this,n,t.cache.create(),t.serializer)}function Yi(e,t){return Rr(e,this,Nr,t.cache.create(),t.serializer)}var Ji=function(){return JSON.stringify(arguments)},eo=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),to={create:function(){return new eo}},ln={variadic:Yi},$t=function(){return $t=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},$t.apply(this,arguments)};var H;(function(e){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"})(H||(H={}));var U;(function(e){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"})(U||(U={}));var tt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tt||(tt={}));function Wn(e){return e.type===U.literal}function no(e){return e.type===U.argument}function Dr(e){return e.type===U.number}function Mr(e){return e.type===U.date}function kr(e){return e.type===U.time}function Fr(e){return e.type===U.select}function Ur(e){return e.type===U.plural}function ro(e){return e.type===U.pound}function Vr(e){return e.type===U.tag}function Gr(e){return!!(e&&typeof e=="object"&&e.type===tt.number)}function yn(e){return!!(e&&typeof e=="object"&&e.type===tt.dateTime)}var $r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,io=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function oo(e){var t={};return e.replace(io,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var V=function(){return V=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},V.apply(this,arguments)};var ao=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function so(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ao).filter(function(c){return c.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],l=a.slice(1),u=0,h=l;u<h.length;u++){var f=h[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function lo(e){return e.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,jr=/^(@+)?(\+|#+)?[rs]?$/g,uo=/(\*)(0+)|(#+)(0+)|(0+)/g,Wr=/^(0+)$/;function zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(jr,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Xr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function co(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Wr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},n=Xr(e);return n||t}function ho(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=lo(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=V(V(V({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return V(V({},l),Zn(u))},{}));continue;case"engineering":t=V(V(V({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return V(V({},l),Zn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(uo,function(l,u,h,f,c,m){if(u)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xn,function(l,u,h,f,c,m){return h==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:c&&m?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=V(V({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=V(V({},t),zn(o)));continue}if(jr.test(i.stem)){t=V(V({},t),zn(i.stem));continue}var a=Xr(i.stem);a&&(t=V(V({},t),a));var s=co(i.stem);s&&(t=V(V({},t),s))}return t}var Ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fo(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),s=o<2?1:3+(o>>1),l="a",u=po(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function po(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ot[r||""]||Ot[n||""]||Ot["".concat(n,"-001")]||Ot["001"];return i[0]}var un,mo=new RegExp("^".concat($r.source,"*")),go=new RegExp("".concat($r.source,"*$"));function L(e,t){return{start:e,end:t}}var bo=!!String.prototype.startsWith&&"_a".startsWith("a",1),yo=!!String.fromCodePoint,vo=!!Object.fromEntries,_o=!!String.prototype.codePointAt,Eo=!!String.prototype.trimStart,xo=!!String.prototype.trimEnd,wo=!!Number.isSafeInteger,Ao=wo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vn=!0;try{var To=Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vn=((un=To.exec("a"))===null||un===void 0?void 0:un[0])==="a"}catch(e){vn=!1}var Kn=bo?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},_n=yo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},qn=vo?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=s}return n},zr=_o?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Co=Eo?function(t){return t.trimStart()}:function(t){return t.replace(mo,"")},So=xo?function(t){return t.trimEnd()}:function(t){return t.replace(go,"")};function Zr(e,t){return new RegExp(e,t)}var En;if(vn){var Qn=Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");En=function(t,n){var r;Qn.lastIndex=n;var i=Qn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else En=function(t,n){for(var r=[];;){var i=zr(t,n);if(i===void 0||Kr(i)||Io(i))break;r.push(i),n+=i>=65536?2:1}return _n.apply(void 0,r)};var Bo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:U.pound,location:L(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xn(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(i,"/>"),location:L(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xn(this.char()))return this.error(H.INVALID_TAG,L(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(H.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:i,children:a,location:L(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,L(s,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,L(r,this.clonePosition()))}else return this.error(H.INVALID_TAG,L(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ho(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=L(r,this.clonePosition());return{val:{type:U.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Po(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return _n.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),_n(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,L(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(H.MALFORMED_ARGUMENT,L(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:i,location:L(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(H.MALFORMED_ARGUMENT,L(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=En(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=L(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,L(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=So(f.val);if(c.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var m=L(h,this.clonePosition());u={style:c,styleLocation:m}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=L(i,this.clonePosition());if(u&&Kn(u==null?void 0:u.style,"::",0)){var w=Co(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(w,u.styleLocation);return f.err?f:{val:{type:U.number,value:r,location:g,style:f.val},err:null}}else{if(w.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,g);var N=w;this.locale&&(N=fo(w,this.locale));var c={type:tt.dateTime,pattern:N,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?oo(N):{}},E=s==="date"?U.date:U.time;return{val:{type:E,value:r,location:g,style:c},err:null}}}return{val:{type:s==="number"?U.number:s==="date"?U.date:U.time,value:r,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,L(b,$t({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),D=f.val}var K=this.tryParsePluralOrSelectOptions(t,s,n,C);if(K.err)return K;var _=this.tryParseArgumentClose(i);if(_.err)return _;var $=L(i,this.clonePosition());return s==="select"?{val:{type:U.select,value:r,options:qn(K.val),location:$},err:null}:{val:{type:U.plural,value:r,options:qn(K.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:$},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,L(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=so(t)}catch(i){return this.error(H.INVALID_NUMBER_SKELETON,n)}return{val:{type:tt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ho(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,s=[],l=new Set,u=i.value,h=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=L(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;s.push([u,{value:_.val,location:L(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return s.length===0?this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(H.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=L(i,this.clonePosition());return o?(a*=r,Ao(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=zr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Kn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function xn(e){return e>=97&&e<=122||e>=65&&e<=90}function Po(e){return xn(e)||e===47}function Ho(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Io(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function wn(e){e.forEach(function(t){if(delete t.location,Fr(t)||Ur(t))for(var n in t.options)delete t.options[n].location,wn(t.options[n].value);else Dr(t)&&Gr(t.style)||(Mr(t)||kr(t))&&yn(t.style)?delete t.style.location:Vr(t)&&wn(t.children)})}function Oo(e,t){t===void 0&&(t={}),t=$t({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Bo(e,t).parse();if(n.err){var r=SyntaxError(H[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||wn(n.val),n.val}var nt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(nt||(nt={}));var Kt=function(e){Zt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Yn=function(e){Zt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),nt.INVALID_VALUE,o)||this}return t}(Kt),Lo=function(e){Zt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),nt.INVALID_VALUE,i)||this}return t}(Kt),No=function(e){Zt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),nt.MISSING_VALUE,r)||this}return t}(Kt),te;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(te||(te={}));function Ro(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==te.literal||n.type!==te.literal?t.push(n):r.value+=n.value,t},[])}function Do(e){return typeof e=="function"}function Mt(e,t,n,r,i,o,a){if(e.length===1&&Wn(e[0]))return[{type:te.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var h=u[l];if(Wn(h)){s.push({type:te.literal,value:h.value});continue}if(ro(h)){typeof o=="number"&&s.push({type:te.literal,value:n.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new No(f,a);var c=i[f];if(no(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),s.push({type:typeof c=="string"?te.literal:te.object,value:c});continue}if(Mr(h)){var m=typeof h.style=="string"?r.date[h.style]:yn(h.style)?h.style.parsedOptions:void 0;s.push({type:te.literal,value:n.getDateTimeFormat(t,m).format(c)});continue}if(kr(h)){var m=typeof h.style=="string"?r.time[h.style]:yn(h.style)?h.style.parsedOptions:r.time.medium;s.push({type:te.literal,value:n.getDateTimeFormat(t,m).format(c)});continue}if(Dr(h)){var m=typeof h.style=="string"?r.number[h.style]:Gr(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(c=c*(m.scale||1)),s.push({type:te.literal,value:n.getNumberFormat(t,m).format(c)});continue}if(Vr(h)){var _=h.children,g=h.value,w=i[g];if(!Do(w))throw new Lo(g,"function",a);var N=Mt(_,t,n,r,i,o),E=w(N.map(function(D){return D.value}));Array.isArray(E)||(E=[E]),s.push.apply(s,E.map(function(D){return{type:typeof D=="string"?te.literal:te.object,value:D}}))}if(Fr(h)){var b=h.options[c]||h.options.other;if(!b)throw new Yn(h.value,c,Object.keys(h.options),a);s.push.apply(s,Mt(b.value,t,n,r,i));continue}if(Ur(h)){var b=h.options["=".concat(c)];if(!b){if(!Intl.PluralRules)throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var hi=Object.defineProperty,fi=Object.defineProperties;var pi=Object.getOwnPropertyDescriptors;var Fn=Object.getOwnPropertySymbols;var di=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable;var nn=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))di.call(t,n)&&nn(e,n,t[n]);if(Fn)for(var n of Fn(t))mi.call(t,n)&&nn(e,n,t[n]);return e},rn=(e,t)=>fi(e,pi(t));var ae=(e,t,n)=>nn(e,typeof t!="symbol"?t+"":t,n);var Ht=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{s(n.next(l))}catch(u){i(u)}},a=l=>{try{s(n.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,a);s((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function I(){}function Tr(e){return e()}function Un(){return Object.create(null)}function Ae(e){e.forEach(Tr)}function _t(e){return typeof e=="function"}function Xt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function gi(e){return Object.keys(e).length===0}function Cr(e,...t){if(e==null){for(const r of t)r(void 0);return I}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function bi(e){let t;return Cr(e,n=>t=n)(),t}function yi(e){return e&&_t(e.destroy)?e.destroy:I}function x(e,t){e.appendChild(t)}function Ln(e,t,n){const r=vi(e);if(!r.getElementById(t)){const i=T("style");i.id=t,i.textContent=n,_i(r,i)}}function vi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _i(e,t){return x(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function Sr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function Vn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function R(){return z(" ")}function Ei(){return z("")}function ne(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function xi(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Vt(e){return e===""?null:+e}function wi(e){return Array.from(e.childNodes)}function re(e,t){t=""+t,e.data!==t&&(e.data=t)}function It(e,t){e.value=t==null?"":t}function se(e,t,n){e.classList.toggle(t,!!n)}function Ai(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let gt;function mt(e){gt=e}function Br(){if(!gt)throw new Error("Function called outside component initialization");return gt}function Pr(e){Br().$$.on_mount.push(e)}function Ti(e){Br().$$.on_destroy.push(e)}const Ke=[],Qe=[];let qe=[];const dn=[],Hr=Promise.resolve();let mn=!1;function Ir(){mn||(mn=!0,Hr.then(F))}function Ci(){return Ir(),Hr}function gn(e){qe.push(e)}function Gn(e){dn.push(e)}const on=new Set;let ze=0;function F(){if(ze!==0)return;const e=gt;do{try{for(;ze<Ke.length;){const t=Ke[ze];ze++,mt(t),Si(t.$$)}}catch(t){throw Ke.length=0,ze=0,t}for(mt(null),Ke.length=0,ze=0;Qe.length;)Qe.pop()();for(let t=0;t<qe.length;t+=1){const n=qe[t];on.has(n)||(on.add(n),n())}qe.length=0}while(Ke.length);for(;dn.length;)dn.pop()();mn=!1,on.clear(),mt(e)}function Si(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gn)}}function Bi(e){const t=[],n=[];qe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),qe=t}const Rt=new Set;let Me;function ke(){Me={r:0,c:[],p:Me}}function Fe(){Me.r||Ae(Me.c),Me=Me.p}function G(e,t){e&&e.i&&(Rt.delete(e),e.i(t))}function X(e,t,n,r){if(e&&e.o){if(Rt.has(e))return;Rt.add(e),Me.c.push(()=>{Rt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Gt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function $n(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function bt(e){e&&e.c()}function Ye(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),gn(()=>{const o=e.$$.on_mount.map(Tr).filter(_t);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ae(o),e.$$.on_mount=[]}),i.forEach(gn)}function Je(e,t){const n=e.$$;n.fragment!==null&&(Bi(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Pi(e,t){e.$$.dirty[0]===-1&&(Ke.push(e),Ir(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Nn(e,t,n,r,i,o,a=null,s=[-1]){const l=gt;mt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:I,not_equal:i,bound:Un(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Un(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(f,c,...m)=>{const _=m.length?m[0]:c;return u.ctx&&i(u.ctx[f],u.ctx[f]=_)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](_),h&&Pi(e,f)),c}):[],u.update(),h=!0,Ae(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const f=wi(t.target);u.fragment&&u.fragment.l(f),f.forEach(B)}else u.fragment&&u.fragment.c();t.intro&&G(e.$$.fragment),Ye(e,t.target,t.anchor),F()}mt(l)}let Or;typeof HTMLElement=="function"&&(Or=class extends HTMLElement{constructor(t,n,r){super();ae(this,"$$ctor");ae(this,"$$s");ae(this,"$$c");ae(this,"$$cn",!1);ae(this,"$$d",{});ae(this,"$$r",!1);ae(this,"$$p_d",{});ae(this,"$$l",{});ae(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ht(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=T("slot"),o!=="default"&&v(a,"name",o)},m:function(u,h){P(u,a,h)},d:function(u){u&&B(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Ai(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Dt(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:rn(Ie({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Dt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Dt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Dt(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Rn(e,t,n,r,i,o){let a=class extends Or{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=Dt(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),r.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Dn{constructor(){ae(this,"$$");ae(this,"$$set")}$destroy(){Je(this,1),this.$destroy=I}$on(t,n){if(!_t(n))return I;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!gi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Hi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hi);const Ze=[];function Ii(e,t){return{subscribe:zt(e,t).subscribe}}function zt(e,t=I){let n;const r=new Set;function i(s){if(Xt(e,s)&&(e=s,n)){const l=!Ze.length;for(const u of r)u[1](),Ze.push(u,e);if(l){for(let u=0;u<Ze.length;u+=2)Ze[u][0](Ze[u+1]);Ze.length=0}}}function o(s){i(s(e))}function a(s,l=I){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,o)||I),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:a}}function it(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ii(n,(a,s)=>{let l=!1;const u=[];let h=0,f=I;const c=()=>{if(h)return;f();const _=t(r?u[0]:u,a,s);o?a(_):f=_t(_)?_:I},m=i.map((_,g)=>Cr(_,w=>{u[g]=w,h&=~(1<<g),l&&c()},()=>{h|=1<<g}));return l=!0,c(),function(){Ae(m),f(),l=!1}})}function Oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Li=function(t){return Ni(t)&&!Ri(t)};function Ni(e){return!!e&&typeof e=="object"}function Ri(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ki(e)}var Di=typeof Symbol=="function"&&Symbol.for,Mi=Di?Symbol.for("react.element"):60103;function ki(e){return e.$$typeof===Mi}function Fi(e){return Array.isArray(e)?[]:{}}function yt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?et(Fi(e),e,t):e}function Ui(e,t,n){return e.concat(t).map(function(r){return yt(r,n)})}function Vi(e,t){if(!t.customMerge)return et;var n=t.customMerge(e);return typeof n=="function"?n:et}function Gi(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jn(e){return Object.keys(e).concat(Gi(e))}function Lr(e,t){try{return t in e}catch(n){return!1}}function $i(e,t){return Lr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ji(e,t,n){var r={};return n.isMergeableObject(e)&&jn(e).forEach(function(i){r[i]=yt(e[i],n)}),jn(t).forEach(function(i){$i(e,i)||(Lr(e,i)&&n.isMergeableObject(t[i])?r[i]=Vi(i,n)(e[i],t[i],n):r[i]=yt(t[i],n))}),r}function et(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ui,n.isMergeableObject=n.isMergeableObject||Li,n.cloneUnlessOtherwiseSpecified=yt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):ji(e,t,n):yt(t,n)}et.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return et(r,i,n)},{})};var Wi=et,Xi=Wi;const zi=Oi(Xi);var bn=function(e,t){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},bn(e,t)};function Zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var me=function(){return me=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)};function Zi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function an(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function sn(e,t){var n=t&&t.cache?t.cache:to,r=t&&t.serializer?t.serializer:Ji,i=t&&t.strategy?t.strategy:Qi;return i(e,{cache:n,serializer:r})}function Ki(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qi(e,t,n,r){var i=Ki(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Nr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Rr(e,t,n,r,i){return n.bind(t,e,r,i)}function Qi(e,t){var n=e.length===1?qi:Nr;return Rr(e,this,n,t.cache.create(),t.serializer)}function Yi(e,t){return Rr(e,this,Nr,t.cache.create(),t.serializer)}var Ji=function(){return JSON.stringify(arguments)},eo=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),to={create:function(){return new eo}},ln={variadic:Yi},$t=function(){return $t=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},$t.apply(this,arguments)};var H;(function(e){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"})(H||(H={}));var U;(function(e){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"})(U||(U={}));var tt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tt||(tt={}));function Wn(e){return e.type===U.literal}function no(e){return e.type===U.argument}function Dr(e){return e.type===U.number}function Mr(e){return e.type===U.date}function kr(e){return e.type===U.time}function Fr(e){return e.type===U.select}function Ur(e){return e.type===U.plural}function ro(e){return e.type===U.pound}function Vr(e){return e.type===U.tag}function Gr(e){return!!(e&&typeof e=="object"&&e.type===tt.number)}function yn(e){return!!(e&&typeof e=="object"&&e.type===tt.dateTime)}var $r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,io=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function oo(e){var t={};return e.replace(io,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var V=function(){return V=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},V.apply(this,arguments)};var ao=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function so(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ao).filter(function(c){return c.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],l=a.slice(1),u=0,h=l;u<h.length;u++){var f=h[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function lo(e){return e.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,jr=/^(@+)?(\+|#+)?[rs]?$/g,uo=/(\*)(0+)|(#+)(0+)|(0+)/g,Wr=/^(0+)$/;function zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(jr,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Xr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function co(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Wr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},n=Xr(e);return n||t}function ho(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=lo(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=V(V(V({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return V(V({},l),Zn(u))},{}));continue;case"engineering":t=V(V(V({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return V(V({},l),Zn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(uo,function(l,u,h,f,c,m){if(u)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xn,function(l,u,h,f,c,m){return h==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:c&&m?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=V(V({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=V(V({},t),zn(o)));continue}if(jr.test(i.stem)){t=V(V({},t),zn(i.stem));continue}var a=Xr(i.stem);a&&(t=V(V({},t),a));var s=co(i.stem);s&&(t=V(V({},t),s))}return t}var Ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fo(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),s=o<2?1:3+(o>>1),l="a",u=po(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function po(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ot[r||""]||Ot[n||""]||Ot["".concat(n,"-001")]||Ot["001"];return i[0]}var un,mo=new RegExp("^".concat($r.source,"*")),go=new RegExp("".concat($r.source,"*$"));function L(e,t){return{start:e,end:t}}var bo=!!String.prototype.startsWith&&"_a".startsWith("a",1),yo=!!String.fromCodePoint,vo=!!Object.fromEntries,_o=!!String.prototype.codePointAt,Eo=!!String.prototype.trimStart,xo=!!String.prototype.trimEnd,wo=!!Number.isSafeInteger,Ao=wo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vn=!0;try{var To=Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vn=((un=To.exec("a"))===null||un===void 0?void 0:un[0])==="a"}catch(e){vn=!1}var Kn=bo?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},_n=yo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},qn=vo?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=s}return n},zr=_o?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Co=Eo?function(t){return t.trimStart()}:function(t){return t.replace(mo,"")},So=xo?function(t){return t.trimEnd()}:function(t){return t.replace(go,"")};function Zr(e,t){return new RegExp(e,t)}var En;if(vn){var Qn=Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");En=function(t,n){var r;Qn.lastIndex=n;var i=Qn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else En=function(t,n){for(var r=[];;){var i=zr(t,n);if(i===void 0||Kr(i)||Io(i))break;r.push(i),n+=i>=65536?2:1}return _n.apply(void 0,r)};var Bo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:U.pound,location:L(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xn(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(i,"/>"),location:L(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xn(this.char()))return this.error(H.INVALID_TAG,L(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(H.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:i,children:a,location:L(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,L(s,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,L(r,this.clonePosition()))}else return this.error(H.INVALID_TAG,L(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ho(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=L(r,this.clonePosition());return{val:{type:U.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Po(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return _n.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),_n(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,L(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(H.MALFORMED_ARGUMENT,L(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:i,location:L(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(H.MALFORMED_ARGUMENT,L(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=En(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=L(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,L(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=So(f.val);if(c.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var m=L(h,this.clonePosition());u={style:c,styleLocation:m}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=L(i,this.clonePosition());if(u&&Kn(u==null?void 0:u.style,"::",0)){var w=Co(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(w,u.styleLocation);return f.err?f:{val:{type:U.number,value:r,location:g,style:f.val},err:null}}else{if(w.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,g);var N=w;this.locale&&(N=fo(w,this.locale));var c={type:tt.dateTime,pattern:N,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?oo(N):{}},E=s==="date"?U.date:U.time;return{val:{type:E,value:r,location:g,style:c},err:null}}}return{val:{type:s==="number"?U.number:s==="date"?U.date:U.time,value:r,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,L(b,$t({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),D=f.val}var K=this.tryParsePluralOrSelectOptions(t,s,n,C);if(K.err)return K;var _=this.tryParseArgumentClose(i);if(_.err)return _;var $=L(i,this.clonePosition());return s==="select"?{val:{type:U.select,value:r,options:qn(K.val),location:$},err:null}:{val:{type:U.plural,value:r,options:qn(K.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:$},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,L(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,L(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=so(t)}catch(i){return this.error(H.INVALID_NUMBER_SKELETON,n)}return{val:{type:tt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ho(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,s=[],l=new Set,u=i.value,h=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=L(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;s.push([u,{value:_.val,location:L(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return s.length===0?this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(H.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=L(i,this.clonePosition());return o?(a*=r,Ao(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=zr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Kn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function xn(e){return e>=97&&e<=122||e>=65&&e<=90}function Po(e){return xn(e)||e===47}function Ho(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Io(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function wn(e){e.forEach(function(t){if(delete t.location,Fr(t)||Ur(t))for(var n in t.options)delete t.options[n].location,wn(t.options[n].value);else Dr(t)&&Gr(t.style)||(Mr(t)||kr(t))&&yn(t.style)?delete t.style.location:Vr(t)&&wn(t.children)})}function Oo(e,t){t===void 0&&(t={}),t=$t({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Bo(e,t).parse();if(n.err){var r=SyntaxError(H[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||wn(n.val),n.val}var nt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(nt||(nt={}));var Kt=function(e){Zt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Yn=function(e){Zt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),nt.INVALID_VALUE,o)||this}return t}(Kt),Lo=function(e){Zt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),nt.INVALID_VALUE,i)||this}return t}(Kt),No=function(e){Zt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),nt.MISSING_VALUE,r)||this}return t}(Kt),te;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(te||(te={}));function Ro(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==te.literal||n.type!==te.literal?t.push(n):r.value+=n.value,t},[])}function Do(e){return typeof e=="function"}function Mt(e,t,n,r,i,o,a){if(e.length===1&&Wn(e[0]))return[{type:te.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var h=u[l];if(Wn(h)){s.push({type:te.literal,value:h.value});continue}if(ro(h)){typeof o=="number"&&s.push({type:te.literal,value:n.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new No(f,a);var c=i[f];if(no(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),s.push({type:typeof c=="string"?te.literal:te.object,value:c});continue}if(Mr(h)){var m=typeof h.style=="string"?r.date[h.style]:yn(h.style)?h.style.parsedOptions:void 0;s.push({type:te.literal,value:n.getDateTimeFormat(t,m).format(c)});continue}if(kr(h)){var m=typeof h.style=="string"?r.time[h.style]:yn(h.style)?h.style.parsedOptions:r.time.medium;s.push({type:te.literal,value:n.getDateTimeFormat(t,m).format(c)});continue}if(Dr(h)){var m=typeof h.style=="string"?r.number[h.style]:Gr(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(c=c*(m.scale||1)),s.push({type:te.literal,value:n.getNumberFormat(t,m).format(c)});continue}if(Vr(h)){var _=h.children,g=h.value,w=i[g];if(!Do(w))throw new Lo(g,"function",a);var N=Mt(_,t,n,r,i,o),E=w(N.map(function(D){return D.value}));Array.isArray(E)||(E=[E]),s.push.apply(s,E.map(function(D){return{type:typeof D=="string"?te.literal:te.object,value:D}}))}if(Fr(h)){var b=h.options[c]||h.options.other;if(!b)throw new Yn(h.value,c,Object.keys(h.options),a);s.push.apply(s,Mt(b.value,t,n,r,i));continue}if(Ur(h)){var b=h.options["=".concat(c)];if(!b){if(!Intl.PluralRules)throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,nt.MISSING_INTL_API,a);var C=n.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));b=h.options[C]||h.options.other}if(!b)throw new Yn(h.value,c,Object.keys(h.options),a);s.push.apply(s,Mt(b.value,t,n,r,i,c-(h.offset||0)));continue}}return Ro(s)}function Mo(e,t){return t?me(me(me({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=me(me({},e[r]),t[r]||{}),n},{})):e}function ko(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Mo(e[r],t[r]),n},me({},e)):e}function cn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Fo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,an([void 0],n,!1)))},{cache:cn(e.number),strategy:ln.variadic}),getDateTimeFormat:sn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,an([void 0],n,!1)))},{cache:cn(e.dateTime),strategy:ln.variadic}),getPluralRules:sn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,an([void 0],n,!1)))},{cache:cn(e.pluralRules),strategy:ln.variadic})}}var Uo=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(f,c){return!f.length||c.type!==te.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return Mt(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=Zi(a,["formatters"]);this.ast=e.__parse(t,me(me({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ko(e.formats,r),this.formatters=i&&i.formatters||Fo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Oo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Vo(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Le={},Go=(e,t,n)=>n&&(t in Le||(Le[t]={}),e in Le[t]||(Le[t][e]=n),n),qr=(e,t)=>{if(t==null)return;if(t in Le&&e in Le[t])return Le[t][e];const n=qt(t);for(let r=0;r<n.length;r++){const i=n[r],o=jo(i,e);if(o)return Go(e,t,o)}};let Mn;const ot=zt({});function $o(e){return Mn[e]||null}function Qr(e){return e in Mn}function jo(e,t){if(!Qr(e))return null;const n=$o(e);return Vo(n,t)}function Wo(e){if(e==null)return;const t=qt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Qr(r))return r}}function Yr(e,...t){delete Le[e],ot.update(n=>(n[e]=zi.all([n[e]||{},...t]),n))}it([ot],([e])=>Object.keys(e));ot.subscribe(e=>Mn=e);const kt={};function Xo(e,t){kt[e].delete(t),kt[e].size===0&&delete kt[e]}function Jr(e){return kt[e]}function zo(e){return qt(e).map(t=>{const n=Jr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function An(e){return e==null?!1:qt(e).some(t=>{var n;return(n=Jr(t))==null?void 0:n.size})}function Zo(e,t){return Promise.all(t.map(r=>(Xo(e,r),r().then(i=>i.default||i)))).then(r=>Yr(e,...r))}const ft={};function ei(e){if(!An(e))return e in ft?ft[e]:Promise.resolve();const t=zo(e);return ft[e]=Promise.all(t.map(([n,r])=>Zo(n,r))).then(()=>{if(An(e))return ei(e);delete ft[e]}),ft[e]}const Ko={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},qo={fallbackLocale:null,loadingDelay:200,formats:Ko,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Qo=qo;function rt(){return Qo}const hn=zt(!1);var Yo=Object.defineProperty,Jo=Object.defineProperties,ea=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,er=(e,t,n)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ra=(e,t)=>{for(var n in t||(t={}))ta.call(t,n)&&er(e,n,t[n]);if(Jn)for(var n of Jn(t))na.call(t,n)&&er(e,n,t[n]);return e},ia=(e,t)=>Jo(e,ea(t));let Tn;const jt=zt(null);function tr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function qt(e,t=rt().fallbackLocale){const n=tr(e);return t?[...new Set([...n,...tr(t)])]:n}function Ue(){return Tn!=null?Tn:void 0}jt.subscribe(e=>{Tn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const oa=e=>{if(e&&Wo(e)&&An(e)){const{loadingDelay:t}=rt();let n;return typeof window!="undefined"&&Ue()!=null&&t?n=window.setTimeout(()=>hn.set(!0),t):hn.set(!0),ei(e).then(()=>{jt.set(e)}).finally(()=>{clearTimeout(n),hn.set(!1)})}return jt.set(e)},Ne=ia(ra({},jt),{set:oa}),Qt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var aa=Object.defineProperty,Wt=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,nr=(e,t,n)=>t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kn=(e,t)=>{for(var n in t||(t={}))ti.call(t,n)&&nr(e,n,t[n]);if(Wt)for(var n of Wt(t))ni.call(t,n)&&nr(e,n,t[n]);return e},at=(e,t)=>{var n={};for(var r in e)ti.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Wt)for(var r of Wt(e))t.indexOf(r)<0&&ni.call(e,r)&&(n[r]=e[r]);return n};const vt=(e,t)=>{const{formats:n}=rt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sa=Qt(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=vt("number",r)),new Intl.NumberFormat(n,i)}),la=Qt(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=vt("date",r):Object.keys(i).length===0&&(i=vt("date","short")),new Intl.DateTimeFormat(n,i)}),ua=Qt(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=vt("time",r):Object.keys(i).length===0&&(i=vt("time","short")),new Intl.DateTimeFormat(n,i)}),ca=(e={})=>{var t=e,{locale:n=Ue()}=t,r=at(t,["locale"]);return sa(kn({locale:n},r))},ha=(e={})=>{var t=e,{locale:n=Ue()}=t,r=at(t,["locale"]);return la(kn({locale:n},r))},fa=(e={})=>{var t=e,{locale:n=Ue()}=t,r=at(t,["locale"]);return ua(kn({locale:n},r))},pa=Qt((e,t=Ue())=>new Uo(e,t,rt().formats,{ignoreTag:rt().ignoreTag})),da=(e,t={})=>{var n,r,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:s,locale:l=Ue(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=qr(e,l);if(!h)h=(o=(i=(r=(n=rt()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!s)return h;let f=h;try{f=pa(h,l).format(s)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},ma=(e,t)=>fa(t).format(e),ga=(e,t)=>ha(t).format(e),ba=(e,t)=>ca(t).format(e),ya=(e,t=Ue())=>qr(e,t),va=it([Ne,ot],()=>da);it([Ne],()=>ma);it([Ne],()=>ga);it([Ne],()=>ba);it([Ne,ot],()=>ya);function _a({withLocale:e,translations:t}){Ne.subscribe(n=>{n==null&&(ot.set(t),Ne.set(e))})}function rr(e,t){Yr(e,t)}function Ea(e){Ne.set(e)}const M=bi(va),ir={en:{vaultExchange:"Vault Exchange",debitPlaceHolder:"Debit amount",creditPlaceHolder:"Credit amount",totalBalance:"Total balance",currentBalance:"Balance",balanceUnavailable:"Balance unavailable. Please try again.",exchangeFrom:"From",exchangeTo:"To",creditAmount:"Credit Amount",debitAmount:"Debit Amount",exchange:"Exchange",accept:"Accept",decline:"Decline",reset:"Reset",select:"Select",exchangeSuccess:"Exchange completed successfully!",feesIncluded:"Fees included",feesUnavailable:"Fees unavailable.",invalidValue:"Invalid value",exceededValue:"Amount exceeds balance",generalError:"An error occurred during the wallet exchange. Please try again.",InternalError:"A technical error occurred. Please try again.",InvalidSession:"Invalid session. Please try again.",1001:"A technical error occurred. Please try again later.",1002:"A database error occurred. Please try again later.",1003:"Invalid parameters provided. Please check your input.",1004:"No changes were detected.",1005:"The data was updated by someone else. Please try again.",1006:"An API error occurred. Please try again later.",1007:"The request timed out. Please try again later.",1008:"Failed to acquire necessary lock. Please try again.",1009:"This feature is currently not enabled.",1010:"Database connection timed out. Please try again later.",1011:"Database command timed out. Please try again later.",1012:"Database is not properly configured. Please contact support.",1013:"Failed to update internal state. Please try again.",1103:"A transaction error occurred. Please try again later.",1105:"Wallet not found.",1504:"You are not permitted to perform this action.",1506:"Fee has been invalidated. Please recalculate.",1507:"This fee addition type is not supported.",1508:"Insufficient funds to apply the fee.",10101:"An unknown technical error occurred.",10102:"User is blocked from performing this action.",10103:"User not found.",10104:"Insufficient funds to withdraw. Requested amount is greater than available balance.",10106:"The selected currency is not supported.",10107:"Transaction is currently being processed. Please wait.",10108:"Transaction not found.",10113:"User is self-excluded. Action cannot be performed.",10114:"User account is not active.",10115:"Transaction intent not found."},tr:{vaultExchange:"Kasa Değişimi",debitPlaceHolder:"Borç miktarı",creditPlaceHolder:"Alacak miktarı",totalBalance:"Toplam bakiye",currentBalance:"Bakiye",balanceUnavailable:"Bakiye kullanılamıyor. Lütfen tekrar deneyin.",exchangeFrom:"Şuradan Değiştir",exchangeTo:"Şuraya Değiştir",creditAmount:"Kredi Tutarı",debitAmount:"Borç Tutarı",exchange:"Değiştir",accept:"Kabul etmek",decline:"Reddetmek",reset:"Sıfırla",select:"Seç",feesIncluded:"Ücretler dahil",feesUnavailable:"Ücretler mevcut değil.",exchangeSuccess:"Değişim başarıyla tamamlandı!",invalidValue:"Geçersiz değer",exceededValue:"Tutar, bakiyeyi aşıyor",generalError:"Cüzdan değişimi sırasında bir hata oluştu. Lütfen tekrar deneyin.",InternalError:"Teknik bir hata oluştu. Lütfen tekrar deneyin.",InvalidSession:"Geçersiz oturum. Lütfen tekrar deneyin.",1001:"Bir teknik hata oluştu. Lütfen daha sonra tekrar deneyin.",1002:"Bir veritabanı hatası oluştu. Lütfen daha sonra tekrar deneyin.",1003:"Geçersiz parametreler sağlandı. Lütfen girdilerinizi kontrol edin.",1004:"Herhangi bir değişiklik tespit edilmedi.",1005:"Veri başka biri tarafından güncellendi. Lütfen tekrar deneyin.",1006:"Bir API hatası oluştu. Lütfen daha sonra tekrar deneyin.",1007:"İstek zaman aşımına uğradı. Lütfen daha sonra tekrar deneyin.",1008:"Gerekli kilit alınamadı. Lütfen tekrar deneyin.",1009:"Bu özellik şu anda etkin değil.",1010:"Veritabanı bağlantısı zaman aşımına uğradı. Lütfen daha sonra tekrar deneyin.",1011:"Veritabanı komutu zaman aşımına uğradı. Lütfen daha sonra tekrar deneyin.",1012:"Veritabanı düzgün yapılandırılmamış. Lütfen destek ile iletişime geçin.",1013:"İç durum güncellenemedi. Lütfen tekrar deneyin.",1103:"Bir işlem hatası oluştu. Lütfen daha sonra tekrar deneyin.",1105:"Cüzdan bulunamadı.",1504:"Bu işlemi gerçekleştirme izniniz yok.",1506:"Ücret geçersiz hale getirildi. Lütfen yeniden hesaplayın.",1507:"Bu ücret ekleme türü desteklenmiyor.",1508:"Ücreti uygulamak için yetersiz bakiye.",10101:"Bilinmeyen bir teknik hata oluştu.",10102:"Kullanıcı bu işlemi gerçekleştirmekten engellenmiştir.",10103:"Kullanıcı bulunamadı.",10104:"Yetersiz bakiye. Talep edilen tutar, mevcut bakiyeden fazladır.",10106:"Seçilen para birimi desteklenmiyor.",10107:"İşlem şu anda işleniyor. Lütfen bekleyin.",10108:"İşlem bulunamadı.",10113:"Kullanıcı kendini dışladı. İşlem gerçekleştirilemez.",10114:"Kullanıcı hesabı aktif değil.",10115:"İşlem niyeti bulunamadı."}};/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountVault-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountVault-CvefSZ47.cjs")).then(({default:t})=>{!customElements.get("player-account-vault")&&customElements.define("player-account-vault",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountVault-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountVault-Cr5UmgXp.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-vault") && customElements.define("player-account-vault", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|