@everymatrix/player-account-gaming-limits-popup 1.77.19 → 1.77.20
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/{PlayerAccountGamingLimitsPopup-CYnRGI3F.js → PlayerAccountGamingLimitsPopup-BsPqMQeJ.js} +682 -725
- package/components/PlayerAccountGamingLimitsPopup-DY2hHTHw.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPopup-yCPQoeP2.js → PlayerAccountGamingLimitsPopup-vzb49sWl.js} +671 -714
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup-D98UfAyc.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var ir = Object.defineProperty, or = Object.defineProperties;
|
|
2
|
+
var ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ze = Object.getOwnPropertySymbols;
|
|
4
|
+
var sr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
sr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Ze)
|
|
9
|
+
for (var r of Ze(t))
|
|
10
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Qe = (e, t) => or(e, ar(t));
|
|
13
|
+
var I = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -29,25 +29,25 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function St(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ke() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ne(e) {
|
|
39
|
+
e.forEach(St);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ze(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function wt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function At(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function hr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function cr(e, t, r) {
|
|
66
|
+
const n = fr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = A("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function fr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,35 +79,35 @@ function vr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function pr(e, t) {
|
|
83
83
|
return P(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ie(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function X(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function A(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function oe(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function _e() {
|
|
102
|
+
return oe(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function dr() {
|
|
105
|
+
return oe("");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function mr(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function br(e) {
|
|
111
111
|
return function(t) {
|
|
112
112
|
return t.preventDefault(), e.call(this, t);
|
|
113
113
|
};
|
|
@@ -115,14 +115,14 @@ function _r(e) {
|
|
|
115
115
|
function C(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function vr(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function We(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function gr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -131,87 +131,87 @@ function Tr(e) {
|
|
|
131
131
|
}
|
|
132
132
|
), t;
|
|
133
133
|
}
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
134
|
+
let ee;
|
|
135
|
+
function K(e) {
|
|
136
|
+
ee = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
138
|
+
function yr() {
|
|
139
|
+
if (!ee)
|
|
140
140
|
throw new Error("Function called outside component initialization");
|
|
141
|
-
return
|
|
141
|
+
return ee;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function xr(e) {
|
|
144
|
+
yr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const D = [],
|
|
146
|
+
const D = [], Be = [];
|
|
147
147
|
let F = [];
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
148
|
+
const et = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let Ce = !1;
|
|
150
|
+
function Er() {
|
|
151
|
+
Ce || (Ce = !0, _r.then(L));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ae(e) {
|
|
154
154
|
F.push(e);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
157
157
|
let U = 0;
|
|
158
158
|
function L() {
|
|
159
159
|
if (U !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = ee;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
164
|
for (; U < D.length; ) {
|
|
165
165
|
const t = D[U];
|
|
166
|
-
U++,
|
|
166
|
+
U++, K(t), Tr(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw D.length = 0, U = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
171
|
+
for (K(null), D.length = 0, U = 0; Be.length; )
|
|
172
|
+
Be.pop()();
|
|
173
173
|
for (let t = 0; t < F.length; t += 1) {
|
|
174
174
|
const r = F[t];
|
|
175
|
-
|
|
175
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
176
176
|
}
|
|
177
177
|
F.length = 0;
|
|
178
178
|
} while (D.length);
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
for (; et.length; )
|
|
180
|
+
et.pop()();
|
|
181
|
+
Ce = !1, Ee.clear(), K(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Tr(e) {
|
|
184
184
|
if (e.fragment !== null) {
|
|
185
|
-
e.update(),
|
|
185
|
+
e.update(), ne(e.before_update);
|
|
186
186
|
const t = e.dirty;
|
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
187
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Sr(e) {
|
|
191
191
|
const t = [], r = [];
|
|
192
192
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
196
|
-
e && e.i && (
|
|
194
|
+
const wr = /* @__PURE__ */ new Set();
|
|
195
|
+
function Pr(e, t) {
|
|
196
|
+
e && e.i && (wr.delete(e), e.i(t));
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Hr(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
202
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
203
|
-
}), i.forEach(
|
|
200
|
+
n && n.m(t, r), Ae(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(St).filter(ze);
|
|
202
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
203
|
+
}), i.forEach(Ae);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ir(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Sr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
209
|
+
function Br(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const l =
|
|
214
|
-
|
|
212
|
+
function Cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
213
|
+
const l = ee;
|
|
214
|
+
K(e);
|
|
215
215
|
const u = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
@@ -219,7 +219,7 @@ function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
219
219
|
props: o,
|
|
220
220
|
update: O,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: Ke(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
@@ -228,7 +228,7 @@ function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
228
228
|
after_update: [],
|
|
229
229
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: Ke(),
|
|
232
232
|
dirty: s,
|
|
233
233
|
skip_bound: !1,
|
|
234
234
|
root: t.target || l.$$.root
|
|
@@ -237,19 +237,19 @@ function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
237
237
|
let h = !1;
|
|
238
238
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
239
239
|
const d = p.length ? p[0] : c;
|
|
240
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h &&
|
|
241
|
-
}) : [], u.update(), h = !0,
|
|
240
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Br(e, f)), c;
|
|
241
|
+
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const f =
|
|
244
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
243
|
+
const f = vr(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
245
245
|
} else
|
|
246
246
|
u.fragment && u.fragment.c();
|
|
247
|
-
t.intro &&
|
|
247
|
+
t.intro && Pr(e.$$.fragment), Hr(e, t.target, t.anchor), L();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
K(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Ht;
|
|
252
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
253
253
|
constructor(t, r, n) {
|
|
254
254
|
super();
|
|
255
255
|
/** The Svelte component constructor */
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
connectedCallback() {
|
|
289
|
-
return
|
|
289
|
+
return Je(this, null, function* () {
|
|
290
290
|
if (this.$$cn = !0, !this.$$c) {
|
|
291
291
|
let t = function(o) {
|
|
292
292
|
return () => {
|
|
@@ -300,17 +300,17 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
300
300
|
* @param {HTMLElement} [anchor]
|
|
301
301
|
*/
|
|
302
302
|
m: function(u, h) {
|
|
303
|
-
|
|
303
|
+
ie(u, a, h);
|
|
304
304
|
},
|
|
305
305
|
d: function(u) {
|
|
306
|
-
u &&
|
|
306
|
+
u && X(a);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
311
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
312
|
return;
|
|
313
|
-
const r = {}, n =
|
|
313
|
+
const r = {}, n = gr(this);
|
|
314
314
|
for (const o of this.$$s)
|
|
315
315
|
o in n && (r[o] = [t(o)]);
|
|
316
316
|
for (const o of this.attributes) {
|
|
@@ -321,7 +321,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
321
321
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
322
322
|
this.$$c = new this.$$ctor({
|
|
323
323
|
target: this.shadowRoot || this,
|
|
324
|
-
props:
|
|
324
|
+
props: Qe(Ye({}, this.$$d), {
|
|
325
325
|
$$slots: r,
|
|
326
326
|
$$scope: {
|
|
327
327
|
ctx: []
|
|
@@ -399,8 +399,8 @@ function le(e, t, r, n) {
|
|
|
399
399
|
return t;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let a = class extends
|
|
402
|
+
function Ar(e, t, r, n, i, o) {
|
|
403
|
+
let a = class extends Ht {
|
|
404
404
|
constructor() {
|
|
405
405
|
super(e, r, i), this.$$p_d = t;
|
|
406
406
|
}
|
|
@@ -430,7 +430,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
430
430
|
}), e.element = /** @type {any} */
|
|
431
431
|
a, a;
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class Or {
|
|
434
434
|
constructor() {
|
|
435
435
|
/**
|
|
436
436
|
* ### PRIVATE API
|
|
@@ -451,7 +451,7 @@ class Rr {
|
|
|
451
451
|
}
|
|
452
452
|
/** @returns {void} */
|
|
453
453
|
$destroy() {
|
|
454
|
-
|
|
454
|
+
Ir(this, 1), this.$destroy = O;
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,7 +460,7 @@ class Rr {
|
|
|
460
460
|
* @returns {() => void}
|
|
461
461
|
*/
|
|
462
462
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
463
|
+
if (!ze(r))
|
|
464
464
|
return O;
|
|
465
465
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
466
|
return n.push(r), () => {
|
|
@@ -473,11 +473,11 @@ class Rr {
|
|
|
473
473
|
* @returns {void}
|
|
474
474
|
*/
|
|
475
475
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
476
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
+
const Lr = "4";
|
|
480
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
481
481
|
/*! *****************************************************************************
|
|
482
482
|
Copyright (c) Microsoft Corporation.
|
|
483
483
|
|
|
@@ -492,24 +492,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
492
492
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
493
493
|
PERFORMANCE OF THIS SOFTWARE.
|
|
494
494
|
***************************************************************************** */
|
|
495
|
-
var
|
|
496
|
-
return
|
|
495
|
+
var Oe = function(e, t) {
|
|
496
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
497
497
|
r.__proto__ = n;
|
|
498
498
|
} || function(r, n) {
|
|
499
499
|
for (var i in n)
|
|
500
500
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
501
|
-
},
|
|
501
|
+
}, Oe(e, t);
|
|
502
502
|
};
|
|
503
|
-
function
|
|
503
|
+
function N(e, t) {
|
|
504
504
|
if (typeof t != "function" && t !== null)
|
|
505
505
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
506
|
-
|
|
506
|
+
Oe(e, t);
|
|
507
507
|
function r() {
|
|
508
508
|
this.constructor = e;
|
|
509
509
|
}
|
|
510
510
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
var g = function() {
|
|
513
|
+
return g = Object.assign || function(t) {
|
|
514
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
515
|
+
r = arguments[n];
|
|
516
|
+
for (var o in r)
|
|
517
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
518
|
+
}
|
|
519
|
+
return t;
|
|
520
|
+
}, g.apply(this, arguments);
|
|
521
|
+
};
|
|
522
|
+
function Mr(e, t) {
|
|
523
|
+
var r = {};
|
|
524
|
+
for (var n in e)
|
|
525
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
526
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
527
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
528
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
529
|
+
return r;
|
|
530
|
+
}
|
|
531
|
+
function Le(e) {
|
|
513
532
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
514
533
|
if (r)
|
|
515
534
|
return r.call(e);
|
|
@@ -521,7 +540,7 @@ function $e(e) {
|
|
|
521
540
|
};
|
|
522
541
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
523
542
|
}
|
|
524
|
-
function
|
|
543
|
+
function Me(e, t) {
|
|
525
544
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
526
545
|
if (!r)
|
|
527
546
|
return e;
|
|
@@ -541,22 +560,22 @@ function Re(e, t) {
|
|
|
541
560
|
}
|
|
542
561
|
return o;
|
|
543
562
|
}
|
|
544
|
-
function
|
|
545
|
-
if (arguments.length === 2)
|
|
563
|
+
function j(e, t, r) {
|
|
564
|
+
if (r || arguments.length === 2)
|
|
546
565
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
547
566
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
548
567
|
return e.concat(o || t);
|
|
549
568
|
}
|
|
550
|
-
function
|
|
569
|
+
function M(e) {
|
|
551
570
|
return typeof e == "function";
|
|
552
571
|
}
|
|
553
|
-
function
|
|
572
|
+
function It(e) {
|
|
554
573
|
var t = function(n) {
|
|
555
574
|
Error.call(n), n.stack = new Error().stack;
|
|
556
575
|
}, r = e(t);
|
|
557
576
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
558
577
|
}
|
|
559
|
-
var
|
|
578
|
+
var Te = It(function(e) {
|
|
560
579
|
return function(r) {
|
|
561
580
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
562
581
|
` + r.map(function(n, i) {
|
|
@@ -565,13 +584,13 @@ var we = Lt(function(e) {
|
|
|
565
584
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
566
585
|
};
|
|
567
586
|
});
|
|
568
|
-
function
|
|
587
|
+
function Ne(e, t) {
|
|
569
588
|
if (e) {
|
|
570
589
|
var r = e.indexOf(t);
|
|
571
590
|
0 <= r && e.splice(r, 1);
|
|
572
591
|
}
|
|
573
592
|
}
|
|
574
|
-
var
|
|
593
|
+
var me = function() {
|
|
575
594
|
function e(t) {
|
|
576
595
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
577
596
|
}
|
|
@@ -583,7 +602,7 @@ var be = function() {
|
|
|
583
602
|
if (a)
|
|
584
603
|
if (this._parentage = null, Array.isArray(a))
|
|
585
604
|
try {
|
|
586
|
-
for (var s =
|
|
605
|
+
for (var s = Le(a), l = s.next(); !l.done; l = s.next()) {
|
|
587
606
|
var u = l.value;
|
|
588
607
|
u.remove(this);
|
|
589
608
|
}
|
|
@@ -600,22 +619,22 @@ var be = function() {
|
|
|
600
619
|
else
|
|
601
620
|
a.remove(this);
|
|
602
621
|
var h = this.initialTeardown;
|
|
603
|
-
if (
|
|
622
|
+
if (M(h))
|
|
604
623
|
try {
|
|
605
624
|
h();
|
|
606
625
|
} catch (y) {
|
|
607
|
-
o = y instanceof
|
|
626
|
+
o = y instanceof Te ? y.errors : [y];
|
|
608
627
|
}
|
|
609
628
|
var f = this._finalizers;
|
|
610
629
|
if (f) {
|
|
611
630
|
this._finalizers = null;
|
|
612
631
|
try {
|
|
613
|
-
for (var c =
|
|
632
|
+
for (var c = Le(f), p = c.next(); !p.done; p = c.next()) {
|
|
614
633
|
var d = p.value;
|
|
615
634
|
try {
|
|
616
|
-
|
|
635
|
+
tt(d);
|
|
617
636
|
} catch (y) {
|
|
618
|
-
o = o != null ? o : [], y instanceof
|
|
637
|
+
o = o != null ? o : [], y instanceof Te ? o = j(j([], Me(o)), Me(y.errors)) : o.push(y);
|
|
619
638
|
}
|
|
620
639
|
}
|
|
621
640
|
} catch (y) {
|
|
@@ -630,13 +649,13 @@ var be = function() {
|
|
|
630
649
|
}
|
|
631
650
|
}
|
|
632
651
|
if (o)
|
|
633
|
-
throw new
|
|
652
|
+
throw new Te(o);
|
|
634
653
|
}
|
|
635
654
|
}, e.prototype.add = function(t) {
|
|
636
655
|
var r;
|
|
637
656
|
if (t && t !== this)
|
|
638
657
|
if (this.closed)
|
|
639
|
-
|
|
658
|
+
tt(t);
|
|
640
659
|
else {
|
|
641
660
|
if (t instanceof e) {
|
|
642
661
|
if (t.closed || t._hasParent(this))
|
|
@@ -653,52 +672,52 @@ var be = function() {
|
|
|
653
672
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
654
673
|
}, e.prototype._removeParent = function(t) {
|
|
655
674
|
var r = this._parentage;
|
|
656
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
675
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
|
|
657
676
|
}, e.prototype.remove = function(t) {
|
|
658
677
|
var r = this._finalizers;
|
|
659
|
-
r &&
|
|
678
|
+
r && Ne(r, t), t instanceof e && t._removeParent(this);
|
|
660
679
|
}, e.EMPTY = function() {
|
|
661
680
|
var t = new e();
|
|
662
681
|
return t.closed = !0, t;
|
|
663
682
|
}(), e;
|
|
664
|
-
}(),
|
|
665
|
-
function
|
|
666
|
-
return e instanceof
|
|
683
|
+
}(), Bt = me.EMPTY;
|
|
684
|
+
function Ct(e) {
|
|
685
|
+
return e instanceof me || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
667
686
|
}
|
|
668
|
-
function
|
|
669
|
-
|
|
687
|
+
function tt(e) {
|
|
688
|
+
M(e) ? e() : e.unsubscribe();
|
|
670
689
|
}
|
|
671
|
-
var
|
|
690
|
+
var Nr = {
|
|
672
691
|
Promise: void 0
|
|
673
|
-
},
|
|
692
|
+
}, Rr = {
|
|
674
693
|
setTimeout: function(e, t) {
|
|
675
694
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
676
695
|
r[n - 2] = arguments[n];
|
|
677
|
-
return setTimeout.apply(void 0,
|
|
696
|
+
return setTimeout.apply(void 0, j([e, t], Me(r)));
|
|
678
697
|
},
|
|
679
698
|
clearTimeout: function(e) {
|
|
680
699
|
return clearTimeout(e);
|
|
681
700
|
},
|
|
682
701
|
delegate: void 0
|
|
683
702
|
};
|
|
684
|
-
function
|
|
685
|
-
|
|
703
|
+
function $r(e) {
|
|
704
|
+
Rr.setTimeout(function() {
|
|
686
705
|
throw e;
|
|
687
706
|
});
|
|
688
707
|
}
|
|
689
|
-
function
|
|
708
|
+
function rt() {
|
|
690
709
|
}
|
|
691
710
|
function he(e) {
|
|
692
711
|
e();
|
|
693
712
|
}
|
|
694
|
-
var
|
|
695
|
-
|
|
713
|
+
var At = function(e) {
|
|
714
|
+
N(t, e);
|
|
696
715
|
function t(r) {
|
|
697
716
|
var n = e.call(this) || this;
|
|
698
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
717
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Dr, n;
|
|
699
718
|
}
|
|
700
719
|
return t.create = function(r, n, i) {
|
|
701
|
-
return new
|
|
720
|
+
return new Re(r, n, i);
|
|
702
721
|
}, t.prototype.next = function(r) {
|
|
703
722
|
this.isStopped || this._next(r);
|
|
704
723
|
}, t.prototype.error = function(r) {
|
|
@@ -722,7 +741,7 @@ var $t = function(e) {
|
|
|
722
741
|
this.unsubscribe();
|
|
723
742
|
}
|
|
724
743
|
}, t;
|
|
725
|
-
}(
|
|
744
|
+
}(me), Ur = function() {
|
|
726
745
|
function e(t) {
|
|
727
746
|
this.partialObserver = t;
|
|
728
747
|
}
|
|
@@ -753,43 +772,43 @@ var $t = function(e) {
|
|
|
753
772
|
se(r);
|
|
754
773
|
}
|
|
755
774
|
}, e;
|
|
756
|
-
}(),
|
|
757
|
-
|
|
775
|
+
}(), Re = function(e) {
|
|
776
|
+
N(t, e);
|
|
758
777
|
function t(r, n, i) {
|
|
759
778
|
var o = e.call(this) || this, a;
|
|
760
|
-
return
|
|
779
|
+
return M(r) || !r ? a = {
|
|
761
780
|
next: r != null ? r : void 0,
|
|
762
781
|
error: n != null ? n : void 0,
|
|
763
782
|
complete: i != null ? i : void 0
|
|
764
|
-
} : a = r, o.destination = new
|
|
783
|
+
} : a = r, o.destination = new Ur(a), o;
|
|
765
784
|
}
|
|
766
785
|
return t;
|
|
767
|
-
}(
|
|
786
|
+
}(At);
|
|
768
787
|
function se(e) {
|
|
769
|
-
|
|
788
|
+
$r(e);
|
|
770
789
|
}
|
|
771
|
-
function
|
|
790
|
+
function Gr(e) {
|
|
772
791
|
throw e;
|
|
773
792
|
}
|
|
774
|
-
var
|
|
793
|
+
var Dr = {
|
|
775
794
|
closed: !0,
|
|
776
|
-
next:
|
|
777
|
-
error:
|
|
778
|
-
complete:
|
|
779
|
-
},
|
|
795
|
+
next: rt,
|
|
796
|
+
error: Gr,
|
|
797
|
+
complete: rt
|
|
798
|
+
}, Fr = function() {
|
|
780
799
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
781
800
|
}();
|
|
782
|
-
function
|
|
801
|
+
function jr(e) {
|
|
783
802
|
return e;
|
|
784
803
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.length === 0 ?
|
|
804
|
+
function kr(e) {
|
|
805
|
+
return e.length === 0 ? jr : e.length === 1 ? e[0] : function(r) {
|
|
787
806
|
return e.reduce(function(n, i) {
|
|
788
807
|
return i(n);
|
|
789
808
|
}, r);
|
|
790
809
|
};
|
|
791
810
|
}
|
|
792
|
-
var
|
|
811
|
+
var nt = function() {
|
|
793
812
|
function e(t) {
|
|
794
813
|
t && (this._subscribe = t);
|
|
795
814
|
}
|
|
@@ -797,7 +816,7 @@ var ut = function() {
|
|
|
797
816
|
var r = new e();
|
|
798
817
|
return r.source = this, r.operator = t, r;
|
|
799
818
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
800
|
-
var i = this, o =
|
|
819
|
+
var i = this, o = zr(t) ? t : new Re(t, r, n);
|
|
801
820
|
return he(function() {
|
|
802
821
|
var a = i, s = a.operator, l = a.source;
|
|
803
822
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -810,8 +829,8 @@ var ut = function() {
|
|
|
810
829
|
}
|
|
811
830
|
}, e.prototype.forEach = function(t, r) {
|
|
812
831
|
var n = this;
|
|
813
|
-
return r =
|
|
814
|
-
var a = new
|
|
832
|
+
return r = it(r), new r(function(i, o) {
|
|
833
|
+
var a = new Re({
|
|
815
834
|
next: function(s) {
|
|
816
835
|
try {
|
|
817
836
|
t(s);
|
|
@@ -827,15 +846,15 @@ var ut = function() {
|
|
|
827
846
|
}, e.prototype._subscribe = function(t) {
|
|
828
847
|
var r;
|
|
829
848
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
830
|
-
}, e.prototype[
|
|
849
|
+
}, e.prototype[Fr] = function() {
|
|
831
850
|
return this;
|
|
832
851
|
}, e.prototype.pipe = function() {
|
|
833
852
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
834
853
|
t[r] = arguments[r];
|
|
835
|
-
return
|
|
854
|
+
return kr(t)(this);
|
|
836
855
|
}, e.prototype.toPromise = function(t) {
|
|
837
856
|
var r = this;
|
|
838
|
-
return t =
|
|
857
|
+
return t = it(t), new t(function(n, i) {
|
|
839
858
|
var o;
|
|
840
859
|
r.subscribe(function(a) {
|
|
841
860
|
return o = a;
|
|
@@ -849,32 +868,32 @@ var ut = function() {
|
|
|
849
868
|
return new e(t);
|
|
850
869
|
}, e;
|
|
851
870
|
}();
|
|
852
|
-
function
|
|
871
|
+
function it(e) {
|
|
853
872
|
var t;
|
|
854
|
-
return (t = e != null ? e :
|
|
873
|
+
return (t = e != null ? e : Nr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
855
874
|
}
|
|
856
|
-
function
|
|
857
|
-
return e &&
|
|
875
|
+
function Vr(e) {
|
|
876
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
858
877
|
}
|
|
859
|
-
function
|
|
860
|
-
return e && e instanceof
|
|
878
|
+
function zr(e) {
|
|
879
|
+
return e && e instanceof At || Vr(e) && Ct(e);
|
|
861
880
|
}
|
|
862
|
-
var
|
|
881
|
+
var Wr = It(function(e) {
|
|
863
882
|
return function() {
|
|
864
883
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
865
884
|
};
|
|
866
|
-
}),
|
|
867
|
-
|
|
885
|
+
}), Ot = function(e) {
|
|
886
|
+
N(t, e);
|
|
868
887
|
function t() {
|
|
869
888
|
var r = e.call(this) || this;
|
|
870
889
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
871
890
|
}
|
|
872
891
|
return t.prototype.lift = function(r) {
|
|
873
|
-
var n = new
|
|
892
|
+
var n = new ot(this, this);
|
|
874
893
|
return n.operator = r, n;
|
|
875
894
|
}, t.prototype._throwIfClosed = function() {
|
|
876
895
|
if (this.closed)
|
|
877
|
-
throw new
|
|
896
|
+
throw new Wr();
|
|
878
897
|
}, t.prototype.next = function(r) {
|
|
879
898
|
var n = this;
|
|
880
899
|
he(function() {
|
|
@@ -882,7 +901,7 @@ var Yr = Lt(function(e) {
|
|
|
882
901
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
883
902
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
884
903
|
try {
|
|
885
|
-
for (var a =
|
|
904
|
+
for (var a = Le(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
886
905
|
var l = s.value;
|
|
887
906
|
l.next(r);
|
|
888
907
|
}
|
|
@@ -931,20 +950,20 @@ var Yr = Lt(function(e) {
|
|
|
931
950
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
932
951
|
}, t.prototype._innerSubscribe = function(r) {
|
|
933
952
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
934
|
-
return o || a ?
|
|
935
|
-
n.currentObservers = null,
|
|
953
|
+
return o || a ? Bt : (this.currentObservers = null, s.push(r), new me(function() {
|
|
954
|
+
n.currentObservers = null, Ne(s, r);
|
|
936
955
|
}));
|
|
937
956
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
938
957
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
939
958
|
i ? r.error(o) : a && r.complete();
|
|
940
959
|
}, t.prototype.asObservable = function() {
|
|
941
|
-
var r = new
|
|
960
|
+
var r = new nt();
|
|
942
961
|
return r.source = this, r;
|
|
943
962
|
}, t.create = function(r, n) {
|
|
944
|
-
return new
|
|
963
|
+
return new ot(r, n);
|
|
945
964
|
}, t;
|
|
946
|
-
}(
|
|
947
|
-
|
|
965
|
+
}(nt), ot = function(e) {
|
|
966
|
+
N(t, e);
|
|
948
967
|
function t(r, n) {
|
|
949
968
|
var i = e.call(this) || this;
|
|
950
969
|
return i.destination = r, i.source = n, i;
|
|
@@ -960,17 +979,17 @@ var Yr = Lt(function(e) {
|
|
|
960
979
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
961
980
|
}, t.prototype._subscribe = function(r) {
|
|
962
981
|
var n, i;
|
|
963
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
982
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Bt;
|
|
964
983
|
}, t;
|
|
965
|
-
}(
|
|
984
|
+
}(Ot), Lt = {
|
|
966
985
|
now: function() {
|
|
967
|
-
return (
|
|
986
|
+
return (Lt.delegate || Date).now();
|
|
968
987
|
},
|
|
969
988
|
delegate: void 0
|
|
970
|
-
},
|
|
971
|
-
|
|
989
|
+
}, Xr = function(e) {
|
|
990
|
+
N(t, e);
|
|
972
991
|
function t(r, n, i) {
|
|
973
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
992
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
974
993
|
var o = e.call(this) || this;
|
|
975
994
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
976
995
|
}
|
|
@@ -990,24 +1009,24 @@ var Yr = Lt(function(e) {
|
|
|
990
1009
|
u && o.splice(0, u + 1);
|
|
991
1010
|
}
|
|
992
1011
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const r = new
|
|
997
|
-
|
|
1012
|
+
}(Ot);
|
|
1013
|
+
const at = [], st = {}, qr = (e, t = 0) => {
|
|
1014
|
+
if (at.indexOf(e) == -1) {
|
|
1015
|
+
const r = new Xr(t);
|
|
1016
|
+
st[e] = r, at.push(e);
|
|
998
1017
|
}
|
|
999
|
-
return
|
|
1018
|
+
return st[e];
|
|
1000
1019
|
}, G = [];
|
|
1001
|
-
function
|
|
1020
|
+
function Zr(e, t) {
|
|
1002
1021
|
return {
|
|
1003
|
-
subscribe:
|
|
1022
|
+
subscribe: be(e, t).subscribe
|
|
1004
1023
|
};
|
|
1005
1024
|
}
|
|
1006
|
-
function
|
|
1025
|
+
function be(e, t = O) {
|
|
1007
1026
|
let r;
|
|
1008
1027
|
const n = /* @__PURE__ */ new Set();
|
|
1009
1028
|
function i(s) {
|
|
1010
|
-
if (
|
|
1029
|
+
if (wt(e, s) && (e = s, r)) {
|
|
1011
1030
|
const l = !G.length;
|
|
1012
1031
|
for (const u of n)
|
|
1013
1032
|
u[1](), G.push(u, e);
|
|
@@ -1029,12 +1048,12 @@ function ve(e, t = O) {
|
|
|
1029
1048
|
}
|
|
1030
1049
|
return { set: i, update: o, subscribe: a };
|
|
1031
1050
|
}
|
|
1032
|
-
function
|
|
1051
|
+
function q(e, t, r) {
|
|
1033
1052
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1034
1053
|
if (!i.every(Boolean))
|
|
1035
1054
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1036
1055
|
const o = t.length < 2;
|
|
1037
|
-
return
|
|
1056
|
+
return Zr(r, (a, s) => {
|
|
1038
1057
|
let l = !1;
|
|
1039
1058
|
const u = [];
|
|
1040
1059
|
let h = 0, f = O;
|
|
@@ -1043,9 +1062,9 @@ function X(e, t, r) {
|
|
|
1043
1062
|
return;
|
|
1044
1063
|
f();
|
|
1045
1064
|
const d = t(n ? u[0] : u, a, s);
|
|
1046
|
-
o ? a(d) : f =
|
|
1065
|
+
o ? a(d) : f = ze(d) ? d : O;
|
|
1047
1066
|
}, p = i.map(
|
|
1048
|
-
(d, y) =>
|
|
1067
|
+
(d, y) => Pt(
|
|
1049
1068
|
d,
|
|
1050
1069
|
(S) => {
|
|
1051
1070
|
u[y] = S, h &= ~(1 << y), l && c();
|
|
@@ -1056,157 +1075,115 @@ function X(e, t, r) {
|
|
|
1056
1075
|
)
|
|
1057
1076
|
);
|
|
1058
1077
|
return l = !0, c(), function() {
|
|
1059
|
-
|
|
1078
|
+
ne(p), f(), l = !1;
|
|
1060
1079
|
};
|
|
1061
1080
|
});
|
|
1062
1081
|
}
|
|
1063
|
-
function
|
|
1082
|
+
function Yr(e) {
|
|
1064
1083
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1065
1084
|
}
|
|
1066
|
-
var
|
|
1067
|
-
return
|
|
1085
|
+
var Qr = function(t) {
|
|
1086
|
+
return Jr(t) && !Kr(t);
|
|
1068
1087
|
};
|
|
1069
|
-
function
|
|
1088
|
+
function Jr(e) {
|
|
1070
1089
|
return !!e && typeof e == "object";
|
|
1071
1090
|
}
|
|
1072
|
-
function
|
|
1091
|
+
function Kr(e) {
|
|
1073
1092
|
var t = Object.prototype.toString.call(e);
|
|
1074
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1093
|
+
return t === "[object RegExp]" || t === "[object Date]" || rn(e);
|
|
1075
1094
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1078
|
-
return e.$$typeof ===
|
|
1095
|
+
var en = typeof Symbol == "function" && Symbol.for, tn = en ? Symbol.for("react.element") : 60103;
|
|
1096
|
+
function rn(e) {
|
|
1097
|
+
return e.$$typeof === tn;
|
|
1079
1098
|
}
|
|
1080
|
-
function
|
|
1099
|
+
function nn(e) {
|
|
1081
1100
|
return Array.isArray(e) ? [] : {};
|
|
1082
1101
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1102
|
+
function te(e, t) {
|
|
1103
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(nn(e), e, t) : e;
|
|
1085
1104
|
}
|
|
1086
|
-
function
|
|
1105
|
+
function on(e, t, r) {
|
|
1087
1106
|
return e.concat(t).map(function(n) {
|
|
1088
|
-
return
|
|
1107
|
+
return te(n, r);
|
|
1089
1108
|
});
|
|
1090
1109
|
}
|
|
1091
|
-
function
|
|
1110
|
+
function an(e, t) {
|
|
1092
1111
|
if (!t.customMerge)
|
|
1093
|
-
return
|
|
1112
|
+
return k;
|
|
1094
1113
|
var r = t.customMerge(e);
|
|
1095
|
-
return typeof r == "function" ? r :
|
|
1114
|
+
return typeof r == "function" ? r : k;
|
|
1096
1115
|
}
|
|
1097
|
-
function
|
|
1116
|
+
function sn(e) {
|
|
1098
1117
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1099
1118
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1100
1119
|
}) : [];
|
|
1101
1120
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return Object.keys(e).concat(
|
|
1121
|
+
function ut(e) {
|
|
1122
|
+
return Object.keys(e).concat(sn(e));
|
|
1104
1123
|
}
|
|
1105
|
-
function
|
|
1124
|
+
function Mt(e, t) {
|
|
1106
1125
|
try {
|
|
1107
1126
|
return t in e;
|
|
1108
1127
|
} catch (r) {
|
|
1109
1128
|
return !1;
|
|
1110
1129
|
}
|
|
1111
1130
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1131
|
+
function un(e, t) {
|
|
1132
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1114
1133
|
}
|
|
1115
|
-
function
|
|
1134
|
+
function ln(e, t, r) {
|
|
1116
1135
|
var n = {};
|
|
1117
|
-
return r.isMergeableObject(e) &&
|
|
1118
|
-
n[i] =
|
|
1119
|
-
}),
|
|
1120
|
-
|
|
1136
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1137
|
+
n[i] = te(e[i], r);
|
|
1138
|
+
}), ut(t).forEach(function(i) {
|
|
1139
|
+
un(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1121
1140
|
}), n;
|
|
1122
1141
|
}
|
|
1123
|
-
function
|
|
1124
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1142
|
+
function k(e, t, r) {
|
|
1143
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || on, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1125
1144
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1126
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1145
|
+
return o ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : te(t, r);
|
|
1127
1146
|
}
|
|
1128
|
-
|
|
1147
|
+
k.all = function(t, r) {
|
|
1129
1148
|
if (!Array.isArray(t))
|
|
1130
1149
|
throw new Error("first argument should be an array");
|
|
1131
1150
|
return t.reduce(function(n, i) {
|
|
1132
|
-
return
|
|
1151
|
+
return k(n, i, r);
|
|
1133
1152
|
}, {});
|
|
1134
1153
|
};
|
|
1135
|
-
var
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
r.__proto__ = n;
|
|
1140
|
-
} || function(r, n) {
|
|
1141
|
-
for (var i in n)
|
|
1142
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1143
|
-
}, Fe(e, t);
|
|
1144
|
-
};
|
|
1145
|
-
function ye(e, t) {
|
|
1146
|
-
if (typeof t != "function" && t !== null)
|
|
1147
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1148
|
-
Fe(e, t);
|
|
1149
|
-
function r() {
|
|
1150
|
-
this.constructor = e;
|
|
1151
|
-
}
|
|
1152
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1153
|
-
}
|
|
1154
|
-
var M = function() {
|
|
1155
|
-
return M = Object.assign || function(t) {
|
|
1156
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1157
|
-
r = arguments[n];
|
|
1158
|
-
for (var o in r)
|
|
1159
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1160
|
-
}
|
|
1161
|
-
return t;
|
|
1162
|
-
}, M.apply(this, arguments);
|
|
1163
|
-
};
|
|
1164
|
-
function vn(e, t) {
|
|
1165
|
-
var r = {};
|
|
1166
|
-
for (var n in e)
|
|
1167
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1168
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1169
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1170
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1171
|
-
return r;
|
|
1172
|
-
}
|
|
1173
|
-
function Pe(e, t, r) {
|
|
1174
|
-
if (r || arguments.length === 2)
|
|
1175
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1176
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1177
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1178
|
-
}
|
|
1179
|
-
function He(e, t) {
|
|
1180
|
-
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : xn;
|
|
1154
|
+
var hn = k, cn = hn;
|
|
1155
|
+
const fn = /* @__PURE__ */ Yr(cn);
|
|
1156
|
+
function Se(e, t) {
|
|
1157
|
+
var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : mn;
|
|
1181
1158
|
return i(e, {
|
|
1182
1159
|
cache: r,
|
|
1183
1160
|
serializer: n
|
|
1184
1161
|
});
|
|
1185
1162
|
}
|
|
1186
|
-
function
|
|
1163
|
+
function pn(e) {
|
|
1187
1164
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1188
1165
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var i =
|
|
1166
|
+
function dn(e, t, r, n) {
|
|
1167
|
+
var i = pn(n) ? n : r(n), o = t.get(i);
|
|
1191
1168
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1192
1169
|
}
|
|
1193
|
-
function
|
|
1170
|
+
function Nt(e, t, r) {
|
|
1194
1171
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1195
1172
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1196
1173
|
}
|
|
1197
|
-
function
|
|
1174
|
+
function Rt(e, t, r, n, i) {
|
|
1198
1175
|
return r.bind(t, e, n, i);
|
|
1199
1176
|
}
|
|
1200
|
-
function
|
|
1201
|
-
var r = e.length === 1 ?
|
|
1202
|
-
return
|
|
1177
|
+
function mn(e, t) {
|
|
1178
|
+
var r = e.length === 1 ? dn : Nt;
|
|
1179
|
+
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1203
1180
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1181
|
+
function bn(e, t) {
|
|
1182
|
+
return Rt(e, this, Nt, t.cache.create(), t.serializer);
|
|
1206
1183
|
}
|
|
1207
|
-
var
|
|
1184
|
+
var vn = function() {
|
|
1208
1185
|
return JSON.stringify(arguments);
|
|
1209
|
-
},
|
|
1186
|
+
}, gn = (
|
|
1210
1187
|
/** @class */
|
|
1211
1188
|
function() {
|
|
1212
1189
|
function e() {
|
|
@@ -1218,71 +1195,61 @@ var En = function() {
|
|
|
1218
1195
|
this.cache[t] = r;
|
|
1219
1196
|
}, e;
|
|
1220
1197
|
}()
|
|
1221
|
-
),
|
|
1198
|
+
), yn = {
|
|
1222
1199
|
create: function() {
|
|
1223
|
-
return new
|
|
1200
|
+
return new gn();
|
|
1224
1201
|
}
|
|
1225
|
-
},
|
|
1226
|
-
variadic:
|
|
1227
|
-
},
|
|
1228
|
-
return pe = Object.assign || function(t) {
|
|
1229
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1230
|
-
r = arguments[n];
|
|
1231
|
-
for (var o in r)
|
|
1232
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1233
|
-
}
|
|
1234
|
-
return t;
|
|
1235
|
-
}, pe.apply(this, arguments);
|
|
1236
|
-
};
|
|
1237
|
-
var b;
|
|
1202
|
+
}, we = {
|
|
1203
|
+
variadic: bn
|
|
1204
|
+
}, b;
|
|
1238
1205
|
(function(e) {
|
|
1239
1206
|
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";
|
|
1240
1207
|
})(b || (b = {}));
|
|
1241
|
-
var
|
|
1208
|
+
var _;
|
|
1242
1209
|
(function(e) {
|
|
1243
1210
|
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";
|
|
1244
|
-
})(
|
|
1245
|
-
var
|
|
1211
|
+
})(_ || (_ = {}));
|
|
1212
|
+
var V;
|
|
1246
1213
|
(function(e) {
|
|
1247
1214
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1248
|
-
})(
|
|
1249
|
-
function
|
|
1250
|
-
return e.type ===
|
|
1215
|
+
})(V || (V = {}));
|
|
1216
|
+
function lt(e) {
|
|
1217
|
+
return e.type === _.literal;
|
|
1251
1218
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return e.type ===
|
|
1219
|
+
function xn(e) {
|
|
1220
|
+
return e.type === _.argument;
|
|
1254
1221
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return e.type ===
|
|
1222
|
+
function $t(e) {
|
|
1223
|
+
return e.type === _.number;
|
|
1257
1224
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return e.type ===
|
|
1225
|
+
function Ut(e) {
|
|
1226
|
+
return e.type === _.date;
|
|
1260
1227
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return e.type ===
|
|
1228
|
+
function Gt(e) {
|
|
1229
|
+
return e.type === _.time;
|
|
1263
1230
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return e.type ===
|
|
1231
|
+
function Dt(e) {
|
|
1232
|
+
return e.type === _.select;
|
|
1266
1233
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return e.type ===
|
|
1234
|
+
function Ft(e) {
|
|
1235
|
+
return e.type === _.plural;
|
|
1269
1236
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return e.type ===
|
|
1237
|
+
function _n(e) {
|
|
1238
|
+
return e.type === _.pound;
|
|
1272
1239
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1240
|
+
function jt(e) {
|
|
1241
|
+
return e.type === _.tag;
|
|
1275
1242
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1243
|
+
function kt(e) {
|
|
1244
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1278
1245
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1246
|
+
function $e(e) {
|
|
1247
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1281
1248
|
}
|
|
1282
|
-
var
|
|
1283
|
-
function
|
|
1249
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
|
|
1250
|
+
function Tn(e) {
|
|
1284
1251
|
var t = {};
|
|
1285
|
-
return e.replace(
|
|
1252
|
+
return e.replace(En, function(r) {
|
|
1286
1253
|
var n = r.length;
|
|
1287
1254
|
switch (r[0]) {
|
|
1288
1255
|
case "G":
|
|
@@ -1371,21 +1338,11 @@ function In(e) {
|
|
|
1371
1338
|
return "";
|
|
1372
1339
|
}), t;
|
|
1373
1340
|
}
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1376
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1377
|
-
r = arguments[n];
|
|
1378
|
-
for (var o in r)
|
|
1379
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1380
|
-
}
|
|
1381
|
-
return t;
|
|
1382
|
-
}, _.apply(this, arguments);
|
|
1383
|
-
};
|
|
1384
|
-
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1385
|
-
function Cn(e) {
|
|
1341
|
+
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1342
|
+
function wn(e) {
|
|
1386
1343
|
if (e.length === 0)
|
|
1387
1344
|
throw new Error("Number skeleton cannot be empty");
|
|
1388
|
-
for (var t = e.split(
|
|
1345
|
+
for (var t = e.split(Sn).filter(function(c) {
|
|
1389
1346
|
return c.length > 0;
|
|
1390
1347
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1391
1348
|
var o = i[n], a = o.split("/");
|
|
@@ -1400,17 +1357,17 @@ function Cn(e) {
|
|
|
1400
1357
|
}
|
|
1401
1358
|
return r;
|
|
1402
1359
|
}
|
|
1403
|
-
function
|
|
1360
|
+
function Pn(e) {
|
|
1404
1361
|
return e.replace(/^(.*?)-/, "");
|
|
1405
1362
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1363
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1364
|
+
function ct(e) {
|
|
1408
1365
|
var t = {};
|
|
1409
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1366
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1410
1367
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1411
1368
|
}), t;
|
|
1412
1369
|
}
|
|
1413
|
-
function
|
|
1370
|
+
function Xt(e) {
|
|
1414
1371
|
switch (e) {
|
|
1415
1372
|
case "sign-auto":
|
|
1416
1373
|
return {
|
|
@@ -1450,7 +1407,7 @@ function Jt(e) {
|
|
|
1450
1407
|
};
|
|
1451
1408
|
}
|
|
1452
1409
|
}
|
|
1453
|
-
function
|
|
1410
|
+
function In(e) {
|
|
1454
1411
|
var t;
|
|
1455
1412
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1456
1413
|
notation: "engineering"
|
|
@@ -1458,17 +1415,17 @@ function Ln(e) {
|
|
|
1458
1415
|
notation: "scientific"
|
|
1459
1416
|
}, e = e.slice(1)), t) {
|
|
1460
1417
|
var r = e.slice(0, 2);
|
|
1461
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1418
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1462
1419
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1463
1420
|
t.minimumIntegerDigits = e.length;
|
|
1464
1421
|
}
|
|
1465
1422
|
return t;
|
|
1466
1423
|
}
|
|
1467
|
-
function
|
|
1468
|
-
var t = {}, r =
|
|
1424
|
+
function ft(e) {
|
|
1425
|
+
var t = {}, r = Xt(e);
|
|
1469
1426
|
return r || t;
|
|
1470
1427
|
}
|
|
1471
|
-
function
|
|
1428
|
+
function Bn(e) {
|
|
1472
1429
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1473
1430
|
var i = n[r];
|
|
1474
1431
|
switch (i.stem) {
|
|
@@ -1492,7 +1449,7 @@ function Mn(e) {
|
|
|
1492
1449
|
continue;
|
|
1493
1450
|
case "measure-unit":
|
|
1494
1451
|
case "unit":
|
|
1495
|
-
t.style = "unit", t.unit =
|
|
1452
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1496
1453
|
continue;
|
|
1497
1454
|
case "compact-short":
|
|
1498
1455
|
case "K":
|
|
@@ -1503,13 +1460,13 @@ function Mn(e) {
|
|
|
1503
1460
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1504
1461
|
continue;
|
|
1505
1462
|
case "scientific":
|
|
1506
|
-
t =
|
|
1507
|
-
return
|
|
1463
|
+
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1464
|
+
return g(g({}, l), ft(u));
|
|
1508
1465
|
}, {}));
|
|
1509
1466
|
continue;
|
|
1510
1467
|
case "engineering":
|
|
1511
|
-
t =
|
|
1512
|
-
return
|
|
1468
|
+
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1469
|
+
return g(g({}, l), ft(u));
|
|
1513
1470
|
}, {}));
|
|
1514
1471
|
continue;
|
|
1515
1472
|
case "notation-simple":
|
|
@@ -1554,7 +1511,7 @@ function Mn(e) {
|
|
|
1554
1511
|
case "integer-width":
|
|
1555
1512
|
if (i.options.length > 1)
|
|
1556
1513
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1557
|
-
i.options[0].replace(
|
|
1514
|
+
i.options[0].replace(Hn, function(l, u, h, f, c, p) {
|
|
1558
1515
|
if (u)
|
|
1559
1516
|
t.minimumIntegerDigits = h.length;
|
|
1560
1517
|
else {
|
|
@@ -1567,28 +1524,28 @@ function Mn(e) {
|
|
|
1567
1524
|
});
|
|
1568
1525
|
continue;
|
|
1569
1526
|
}
|
|
1570
|
-
if (
|
|
1527
|
+
if (Wt.test(i.stem)) {
|
|
1571
1528
|
t.minimumIntegerDigits = i.stem.length;
|
|
1572
1529
|
continue;
|
|
1573
1530
|
}
|
|
1574
|
-
if (
|
|
1531
|
+
if (ht.test(i.stem)) {
|
|
1575
1532
|
if (i.options.length > 1)
|
|
1576
1533
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1577
|
-
i.stem.replace(
|
|
1534
|
+
i.stem.replace(ht, function(l, u, h, f, c, p) {
|
|
1578
1535
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1579
1536
|
});
|
|
1580
1537
|
var o = i.options[0];
|
|
1581
|
-
o === "w" ? t =
|
|
1538
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ct(o)));
|
|
1582
1539
|
continue;
|
|
1583
1540
|
}
|
|
1584
|
-
if (
|
|
1585
|
-
t =
|
|
1541
|
+
if (zt.test(i.stem)) {
|
|
1542
|
+
t = g(g({}, t), ct(i.stem));
|
|
1586
1543
|
continue;
|
|
1587
1544
|
}
|
|
1588
|
-
var a =
|
|
1589
|
-
a && (t =
|
|
1590
|
-
var s =
|
|
1591
|
-
s && (t =
|
|
1545
|
+
var a = Xt(i.stem);
|
|
1546
|
+
a && (t = g(g({}, t), a));
|
|
1547
|
+
var s = In(i.stem);
|
|
1548
|
+
s && (t = g(g({}, t), s));
|
|
1592
1549
|
}
|
|
1593
1550
|
return t;
|
|
1594
1551
|
}
|
|
@@ -3007,13 +2964,13 @@ var ue = {
|
|
|
3007
2964
|
"h"
|
|
3008
2965
|
]
|
|
3009
2966
|
};
|
|
3010
|
-
function
|
|
2967
|
+
function Cn(e, t) {
|
|
3011
2968
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3012
2969
|
var i = e.charAt(n);
|
|
3013
2970
|
if (i === "j") {
|
|
3014
2971
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3015
2972
|
o++, n++;
|
|
3016
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2973
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = An(t);
|
|
3017
2974
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3018
2975
|
r += l;
|
|
3019
2976
|
for (; a-- > 0; )
|
|
@@ -3023,7 +2980,7 @@ function Nn(e, t) {
|
|
|
3023
2980
|
}
|
|
3024
2981
|
return r;
|
|
3025
2982
|
}
|
|
3026
|
-
function
|
|
2983
|
+
function An(e) {
|
|
3027
2984
|
var t = e.hourCycle;
|
|
3028
2985
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3029
2986
|
e.hourCycles && // @ts-ignore
|
|
@@ -3045,20 +3002,20 @@ function $n(e) {
|
|
|
3045
3002
|
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3046
3003
|
return i[0];
|
|
3047
3004
|
}
|
|
3048
|
-
var
|
|
3005
|
+
var Pe, On = new RegExp("^".concat(Vt.source, "*")), Ln = new RegExp("".concat(Vt.source, "*$"));
|
|
3049
3006
|
function v(e, t) {
|
|
3050
3007
|
return { start: e, end: t };
|
|
3051
3008
|
}
|
|
3052
|
-
var
|
|
3009
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Rn = !!Object.fromEntries, $n = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Fn = Dn ? Number.isSafeInteger : function(e) {
|
|
3053
3010
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3054
|
-
},
|
|
3011
|
+
}, Ue = !0;
|
|
3055
3012
|
try {
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3013
|
+
var jn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3014
|
+
Ue = ((Pe = jn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3058
3015
|
} catch (e) {
|
|
3059
|
-
|
|
3016
|
+
Ue = !1;
|
|
3060
3017
|
}
|
|
3061
|
-
var
|
|
3018
|
+
var pt = Mn ? (
|
|
3062
3019
|
// Native
|
|
3063
3020
|
function(t, r, n) {
|
|
3064
3021
|
return t.startsWith(r, n);
|
|
@@ -3068,7 +3025,7 @@ var yt = Gn ? (
|
|
|
3068
3025
|
function(t, r, n) {
|
|
3069
3026
|
return t.slice(n, n + r.length) === r;
|
|
3070
3027
|
}
|
|
3071
|
-
),
|
|
3028
|
+
), Ge = Nn ? String.fromCodePoint : (
|
|
3072
3029
|
// IE11
|
|
3073
3030
|
function() {
|
|
3074
3031
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3080,9 +3037,9 @@ var yt = Gn ? (
|
|
|
3080
3037
|
}
|
|
3081
3038
|
return n;
|
|
3082
3039
|
}
|
|
3083
|
-
),
|
|
3040
|
+
), dt = (
|
|
3084
3041
|
// native
|
|
3085
|
-
|
|
3042
|
+
Rn ? Object.fromEntries : (
|
|
3086
3043
|
// Ponyfill
|
|
3087
3044
|
function(t) {
|
|
3088
3045
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3092,7 +3049,7 @@ var yt = Gn ? (
|
|
|
3092
3049
|
return r;
|
|
3093
3050
|
}
|
|
3094
3051
|
)
|
|
3095
|
-
),
|
|
3052
|
+
), qt = $n ? (
|
|
3096
3053
|
// Native
|
|
3097
3054
|
function(t, r) {
|
|
3098
3055
|
return t.codePointAt(r);
|
|
@@ -3106,7 +3063,7 @@ var yt = Gn ? (
|
|
|
3106
3063
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3107
3064
|
}
|
|
3108
3065
|
}
|
|
3109
|
-
),
|
|
3066
|
+
), kn = Un ? (
|
|
3110
3067
|
// Native
|
|
3111
3068
|
function(t) {
|
|
3112
3069
|
return t.trimStart();
|
|
@@ -3114,9 +3071,9 @@ var yt = Gn ? (
|
|
|
3114
3071
|
) : (
|
|
3115
3072
|
// Ponyfill
|
|
3116
3073
|
function(t) {
|
|
3117
|
-
return t.replace(
|
|
3074
|
+
return t.replace(On, "");
|
|
3118
3075
|
}
|
|
3119
|
-
),
|
|
3076
|
+
), Vn = Gn ? (
|
|
3120
3077
|
// Native
|
|
3121
3078
|
function(t) {
|
|
3122
3079
|
return t.trimEnd();
|
|
@@ -3124,32 +3081,32 @@ var yt = Gn ? (
|
|
|
3124
3081
|
) : (
|
|
3125
3082
|
// Ponyfill
|
|
3126
3083
|
function(t) {
|
|
3127
|
-
return t.replace(
|
|
3084
|
+
return t.replace(Ln, "");
|
|
3128
3085
|
}
|
|
3129
3086
|
);
|
|
3130
|
-
function
|
|
3087
|
+
function Zt(e, t) {
|
|
3131
3088
|
return new RegExp(e, t);
|
|
3132
3089
|
}
|
|
3133
|
-
var
|
|
3134
|
-
if (
|
|
3135
|
-
var
|
|
3136
|
-
|
|
3090
|
+
var De;
|
|
3091
|
+
if (Ue) {
|
|
3092
|
+
var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3093
|
+
De = function(t, r) {
|
|
3137
3094
|
var n;
|
|
3138
|
-
|
|
3139
|
-
var i =
|
|
3095
|
+
mt.lastIndex = r;
|
|
3096
|
+
var i = mt.exec(t);
|
|
3140
3097
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3141
3098
|
};
|
|
3142
3099
|
} else
|
|
3143
|
-
|
|
3100
|
+
De = function(t, r) {
|
|
3144
3101
|
for (var n = []; ; ) {
|
|
3145
|
-
var i =
|
|
3146
|
-
if (i === void 0 ||
|
|
3102
|
+
var i = qt(t, r);
|
|
3103
|
+
if (i === void 0 || Yt(i) || qn(i))
|
|
3147
3104
|
break;
|
|
3148
3105
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3149
3106
|
}
|
|
3150
|
-
return
|
|
3107
|
+
return Ge.apply(void 0, n);
|
|
3151
3108
|
};
|
|
3152
|
-
var
|
|
3109
|
+
var zn = (
|
|
3153
3110
|
/** @class */
|
|
3154
3111
|
function() {
|
|
3155
3112
|
function e(t, r) {
|
|
@@ -3173,14 +3130,14 @@ var Yn = (
|
|
|
3173
3130
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3174
3131
|
var s = this.clonePosition();
|
|
3175
3132
|
this.bump(), i.push({
|
|
3176
|
-
type:
|
|
3133
|
+
type: _.pound,
|
|
3177
3134
|
location: v(s, this.clonePosition())
|
|
3178
3135
|
});
|
|
3179
3136
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3180
3137
|
if (n)
|
|
3181
3138
|
break;
|
|
3182
3139
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3183
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3140
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3184
3141
|
var a = this.parseTag(t, r);
|
|
3185
3142
|
if (a.err)
|
|
3186
3143
|
return a;
|
|
@@ -3201,7 +3158,7 @@ var Yn = (
|
|
|
3201
3158
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3202
3159
|
return {
|
|
3203
3160
|
val: {
|
|
3204
|
-
type:
|
|
3161
|
+
type: _.literal,
|
|
3205
3162
|
value: "<".concat(i, "/>"),
|
|
3206
3163
|
location: v(n, this.clonePosition())
|
|
3207
3164
|
},
|
|
@@ -3213,12 +3170,12 @@ var Yn = (
|
|
|
3213
3170
|
return o;
|
|
3214
3171
|
var a = o.val, s = this.clonePosition();
|
|
3215
3172
|
if (this.bumpIf("</")) {
|
|
3216
|
-
if (this.isEOF() || !
|
|
3173
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3217
3174
|
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3218
3175
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3219
3176
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3220
3177
|
val: {
|
|
3221
|
-
type:
|
|
3178
|
+
type: _.tag,
|
|
3222
3179
|
value: i,
|
|
3223
3180
|
children: a,
|
|
3224
3181
|
location: v(n, this.clonePosition())
|
|
@@ -3231,7 +3188,7 @@ var Yn = (
|
|
|
3231
3188
|
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3232
3189
|
}, e.prototype.parseTagName = function() {
|
|
3233
3190
|
var t = this.offset();
|
|
3234
|
-
for (this.bump(); !this.isEOF() &&
|
|
3191
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3235
3192
|
this.bump();
|
|
3236
3193
|
return this.message.slice(t, this.offset());
|
|
3237
3194
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3255,12 +3212,12 @@ var Yn = (
|
|
|
3255
3212
|
}
|
|
3256
3213
|
var l = v(n, this.clonePosition());
|
|
3257
3214
|
return {
|
|
3258
|
-
val: { type:
|
|
3215
|
+
val: { type: _.literal, value: i, location: l },
|
|
3259
3216
|
err: null
|
|
3260
3217
|
};
|
|
3261
3218
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3262
3219
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3263
|
-
!
|
|
3220
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3264
3221
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3265
3222
|
if (this.isEOF() || this.char() !== 39)
|
|
3266
3223
|
return null;
|
|
@@ -3294,12 +3251,12 @@ var Yn = (
|
|
|
3294
3251
|
r.push(n);
|
|
3295
3252
|
this.bump();
|
|
3296
3253
|
}
|
|
3297
|
-
return
|
|
3254
|
+
return Ge.apply(void 0, r);
|
|
3298
3255
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3299
3256
|
if (this.isEOF())
|
|
3300
3257
|
return null;
|
|
3301
3258
|
var n = this.char();
|
|
3302
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3259
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3303
3260
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3304
3261
|
var n = this.clonePosition();
|
|
3305
3262
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3315,7 +3272,7 @@ var Yn = (
|
|
|
3315
3272
|
case 125:
|
|
3316
3273
|
return this.bump(), {
|
|
3317
3274
|
val: {
|
|
3318
|
-
type:
|
|
3275
|
+
type: _.argument,
|
|
3319
3276
|
// value does not include the opening and closing braces.
|
|
3320
3277
|
value: i,
|
|
3321
3278
|
location: v(n, this.clonePosition())
|
|
@@ -3328,7 +3285,7 @@ var Yn = (
|
|
|
3328
3285
|
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3329
3286
|
}
|
|
3330
3287
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3331
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3288
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3332
3289
|
this.bumpTo(i);
|
|
3333
3290
|
var o = this.clonePosition(), a = v(t, o);
|
|
3334
3291
|
return { value: n, location: a };
|
|
@@ -3347,7 +3304,7 @@ var Yn = (
|
|
|
3347
3304
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3348
3305
|
if (f.err)
|
|
3349
3306
|
return f;
|
|
3350
|
-
var c =
|
|
3307
|
+
var c = Vn(f.val);
|
|
3351
3308
|
if (c.length === 0)
|
|
3352
3309
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3353
3310
|
var p = v(h, this.clonePosition());
|
|
@@ -3357,25 +3314,25 @@ var Yn = (
|
|
|
3357
3314
|
if (d.err)
|
|
3358
3315
|
return d;
|
|
3359
3316
|
var y = v(i, this.clonePosition());
|
|
3360
|
-
if (u &&
|
|
3361
|
-
var S =
|
|
3317
|
+
if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3318
|
+
var S = kn(u.style.slice(2));
|
|
3362
3319
|
if (s === "number") {
|
|
3363
3320
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3364
3321
|
return f.err ? f : {
|
|
3365
|
-
val: { type:
|
|
3322
|
+
val: { type: _.number, value: n, location: y, style: f.val },
|
|
3366
3323
|
err: null
|
|
3367
3324
|
};
|
|
3368
3325
|
} else {
|
|
3369
3326
|
if (S.length === 0)
|
|
3370
3327
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
|
|
3371
3328
|
var H = S;
|
|
3372
|
-
this.locale && (H =
|
|
3329
|
+
this.locale && (H = Cn(S, this.locale));
|
|
3373
3330
|
var c = {
|
|
3374
|
-
type:
|
|
3331
|
+
type: V.dateTime,
|
|
3375
3332
|
pattern: H,
|
|
3376
3333
|
location: u.styleLocation,
|
|
3377
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3378
|
-
}, E = s === "date" ?
|
|
3334
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(H) : {}
|
|
3335
|
+
}, E = s === "date" ? _.date : _.time;
|
|
3379
3336
|
return {
|
|
3380
3337
|
val: { type: E, value: n, location: y, style: c },
|
|
3381
3338
|
err: null
|
|
@@ -3384,7 +3341,7 @@ var Yn = (
|
|
|
3384
3341
|
}
|
|
3385
3342
|
return {
|
|
3386
3343
|
val: {
|
|
3387
|
-
type: s === "number" ?
|
|
3344
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3388
3345
|
value: n,
|
|
3389
3346
|
location: y,
|
|
3390
3347
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3395,9 +3352,9 @@ var Yn = (
|
|
|
3395
3352
|
case "plural":
|
|
3396
3353
|
case "selectordinal":
|
|
3397
3354
|
case "select": {
|
|
3398
|
-
var
|
|
3355
|
+
var x = this.clonePosition();
|
|
3399
3356
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3400
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
|
3357
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(x, g({}, x)));
|
|
3401
3358
|
this.bumpSpace();
|
|
3402
3359
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3403
3360
|
if (s !== "select" && w.value === "offset") {
|
|
@@ -3415,23 +3372,23 @@ var Yn = (
|
|
|
3415
3372
|
var d = this.tryParseArgumentClose(i);
|
|
3416
3373
|
if (d.err)
|
|
3417
3374
|
return d;
|
|
3418
|
-
var
|
|
3375
|
+
var Q = v(i, this.clonePosition());
|
|
3419
3376
|
return s === "select" ? {
|
|
3420
3377
|
val: {
|
|
3421
|
-
type:
|
|
3378
|
+
type: _.select,
|
|
3422
3379
|
value: n,
|
|
3423
|
-
options:
|
|
3424
|
-
location:
|
|
3380
|
+
options: dt(B.val),
|
|
3381
|
+
location: Q
|
|
3425
3382
|
},
|
|
3426
3383
|
err: null
|
|
3427
3384
|
} : {
|
|
3428
3385
|
val: {
|
|
3429
|
-
type:
|
|
3386
|
+
type: _.plural,
|
|
3430
3387
|
value: n,
|
|
3431
|
-
options:
|
|
3388
|
+
options: dt(B.val),
|
|
3432
3389
|
offset: m,
|
|
3433
3390
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3434
|
-
location:
|
|
3391
|
+
location: Q
|
|
3435
3392
|
},
|
|
3436
3393
|
err: null
|
|
3437
3394
|
};
|
|
@@ -3479,16 +3436,16 @@ var Yn = (
|
|
|
3479
3436
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3480
3437
|
var n = [];
|
|
3481
3438
|
try {
|
|
3482
|
-
n =
|
|
3439
|
+
n = wn(t);
|
|
3483
3440
|
} catch (i) {
|
|
3484
3441
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3485
3442
|
}
|
|
3486
3443
|
return {
|
|
3487
3444
|
val: {
|
|
3488
|
-
type:
|
|
3445
|
+
type: V.number,
|
|
3489
3446
|
tokens: n,
|
|
3490
3447
|
location: r,
|
|
3491
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3448
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3492
3449
|
},
|
|
3493
3450
|
err: null
|
|
3494
3451
|
};
|
|
@@ -3536,7 +3493,7 @@ var Yn = (
|
|
|
3536
3493
|
break;
|
|
3537
3494
|
}
|
|
3538
3495
|
var l = v(i, this.clonePosition());
|
|
3539
|
-
return o ? (a *= n,
|
|
3496
|
+
return o ? (a *= n, Fn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3540
3497
|
}, e.prototype.offset = function() {
|
|
3541
3498
|
return this.position.offset;
|
|
3542
3499
|
}, e.prototype.isEOF = function() {
|
|
@@ -3551,7 +3508,7 @@ var Yn = (
|
|
|
3551
3508
|
var t = this.position.offset;
|
|
3552
3509
|
if (t >= this.message.length)
|
|
3553
3510
|
throw Error("out of bound");
|
|
3554
|
-
var r =
|
|
3511
|
+
var r = qt(this.message, t);
|
|
3555
3512
|
if (r === void 0)
|
|
3556
3513
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3557
3514
|
return r;
|
|
@@ -3570,7 +3527,7 @@ var Yn = (
|
|
|
3570
3527
|
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);
|
|
3571
3528
|
}
|
|
3572
3529
|
}, e.prototype.bumpIf = function(t) {
|
|
3573
|
-
if (
|
|
3530
|
+
if (pt(this.message, t, this.offset())) {
|
|
3574
3531
|
for (var r = 0; r < t.length; r++)
|
|
3575
3532
|
this.bump();
|
|
3576
3533
|
return !0;
|
|
@@ -3592,7 +3549,7 @@ var Yn = (
|
|
|
3592
3549
|
break;
|
|
3593
3550
|
}
|
|
3594
3551
|
}, e.prototype.bumpSpace = function() {
|
|
3595
|
-
for (; !this.isEOF() &&
|
|
3552
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3596
3553
|
this.bump();
|
|
3597
3554
|
}, e.prototype.peek = function() {
|
|
3598
3555
|
if (this.isEOF())
|
|
@@ -3602,47 +3559,47 @@ var Yn = (
|
|
|
3602
3559
|
}, e;
|
|
3603
3560
|
}()
|
|
3604
3561
|
);
|
|
3605
|
-
function
|
|
3562
|
+
function Fe(e) {
|
|
3606
3563
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3607
3564
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return
|
|
3565
|
+
function Wn(e) {
|
|
3566
|
+
return Fe(e) || e === 47;
|
|
3610
3567
|
}
|
|
3611
|
-
function
|
|
3568
|
+
function Xn(e) {
|
|
3612
3569
|
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;
|
|
3613
3570
|
}
|
|
3614
|
-
function
|
|
3571
|
+
function Yt(e) {
|
|
3615
3572
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3616
3573
|
}
|
|
3617
|
-
function
|
|
3574
|
+
function qn(e) {
|
|
3618
3575
|
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;
|
|
3619
3576
|
}
|
|
3620
|
-
function
|
|
3577
|
+
function je(e) {
|
|
3621
3578
|
e.forEach(function(t) {
|
|
3622
|
-
if (delete t.location,
|
|
3579
|
+
if (delete t.location, Dt(t) || Ft(t))
|
|
3623
3580
|
for (var r in t.options)
|
|
3624
|
-
delete t.options[r].location,
|
|
3581
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3625
3582
|
else
|
|
3626
|
-
|
|
3583
|
+
$t(t) && kt(t.style) || (Ut(t) || Gt(t)) && $e(t.style) ? delete t.style.location : jt(t) && je(t.children);
|
|
3627
3584
|
});
|
|
3628
3585
|
}
|
|
3629
|
-
function
|
|
3630
|
-
t === void 0 && (t = {}), t =
|
|
3631
|
-
var r = new
|
|
3586
|
+
function Zn(e, t) {
|
|
3587
|
+
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3588
|
+
var r = new zn(e, t).parse();
|
|
3632
3589
|
if (r.err) {
|
|
3633
3590
|
var n = SyntaxError(b[r.err.kind]);
|
|
3634
3591
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3635
3592
|
}
|
|
3636
|
-
return t != null && t.captureLocation ||
|
|
3593
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3637
3594
|
}
|
|
3638
|
-
var
|
|
3595
|
+
var z;
|
|
3639
3596
|
(function(e) {
|
|
3640
3597
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3641
|
-
})(
|
|
3642
|
-
var
|
|
3598
|
+
})(z || (z = {}));
|
|
3599
|
+
var ve = (
|
|
3643
3600
|
/** @class */
|
|
3644
3601
|
function(e) {
|
|
3645
|
-
|
|
3602
|
+
N(t, e);
|
|
3646
3603
|
function t(r, n, i) {
|
|
3647
3604
|
var o = e.call(this, r) || this;
|
|
3648
3605
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3651,48 +3608,48 @@ var ge = (
|
|
|
3651
3608
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3652
3609
|
}, t;
|
|
3653
3610
|
}(Error)
|
|
3654
|
-
),
|
|
3611
|
+
), bt = (
|
|
3655
3612
|
/** @class */
|
|
3656
3613
|
function(e) {
|
|
3657
|
-
|
|
3614
|
+
N(t, e);
|
|
3658
3615
|
function t(r, n, i, o) {
|
|
3659
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3616
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3660
3617
|
}
|
|
3661
3618
|
return t;
|
|
3662
|
-
}(
|
|
3663
|
-
),
|
|
3619
|
+
}(ve)
|
|
3620
|
+
), Yn = (
|
|
3664
3621
|
/** @class */
|
|
3665
3622
|
function(e) {
|
|
3666
|
-
|
|
3623
|
+
N(t, e);
|
|
3667
3624
|
function t(r, n, i) {
|
|
3668
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3625
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3669
3626
|
}
|
|
3670
3627
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3628
|
+
}(ve)
|
|
3629
|
+
), Qn = (
|
|
3673
3630
|
/** @class */
|
|
3674
3631
|
function(e) {
|
|
3675
|
-
|
|
3632
|
+
N(t, e);
|
|
3676
3633
|
function t(r, n) {
|
|
3677
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3634
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3678
3635
|
}
|
|
3679
3636
|
return t;
|
|
3680
|
-
}(
|
|
3637
|
+
}(ve)
|
|
3681
3638
|
), T;
|
|
3682
3639
|
(function(e) {
|
|
3683
3640
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3684
3641
|
})(T || (T = {}));
|
|
3685
|
-
function
|
|
3642
|
+
function Jn(e) {
|
|
3686
3643
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3687
3644
|
var n = t[t.length - 1];
|
|
3688
3645
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3689
3646
|
}, []);
|
|
3690
3647
|
}
|
|
3691
|
-
function
|
|
3648
|
+
function Kn(e) {
|
|
3692
3649
|
return typeof e == "function";
|
|
3693
3650
|
}
|
|
3694
3651
|
function ce(e, t, r, n, i, o, a) {
|
|
3695
|
-
if (e.length === 1 &&
|
|
3652
|
+
if (e.length === 1 && lt(e[0]))
|
|
3696
3653
|
return [
|
|
3697
3654
|
{
|
|
3698
3655
|
type: T.literal,
|
|
@@ -3701,14 +3658,14 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3701
3658
|
];
|
|
3702
3659
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3703
3660
|
var h = u[l];
|
|
3704
|
-
if (
|
|
3661
|
+
if (lt(h)) {
|
|
3705
3662
|
s.push({
|
|
3706
3663
|
type: T.literal,
|
|
3707
3664
|
value: h.value
|
|
3708
3665
|
});
|
|
3709
3666
|
continue;
|
|
3710
3667
|
}
|
|
3711
|
-
if (
|
|
3668
|
+
if (_n(h)) {
|
|
3712
3669
|
typeof o == "number" && s.push({
|
|
3713
3670
|
type: T.literal,
|
|
3714
3671
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3717,43 +3674,43 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3717
3674
|
}
|
|
3718
3675
|
var f = h.value;
|
|
3719
3676
|
if (!(i && f in i))
|
|
3720
|
-
throw new
|
|
3677
|
+
throw new Qn(f, a);
|
|
3721
3678
|
var c = i[f];
|
|
3722
|
-
if (
|
|
3679
|
+
if (xn(h)) {
|
|
3723
3680
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3724
3681
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3725
3682
|
value: c
|
|
3726
3683
|
});
|
|
3727
3684
|
continue;
|
|
3728
3685
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3686
|
+
if (Ut(h)) {
|
|
3687
|
+
var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3731
3688
|
s.push({
|
|
3732
3689
|
type: T.literal,
|
|
3733
3690
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3734
3691
|
});
|
|
3735
3692
|
continue;
|
|
3736
3693
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3694
|
+
if (Gt(h)) {
|
|
3695
|
+
var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3739
3696
|
s.push({
|
|
3740
3697
|
type: T.literal,
|
|
3741
3698
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3742
3699
|
});
|
|
3743
3700
|
continue;
|
|
3744
3701
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3702
|
+
if ($t(h)) {
|
|
3703
|
+
var p = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3747
3704
|
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3748
3705
|
type: T.literal,
|
|
3749
3706
|
value: r.getNumberFormat(t, p).format(c)
|
|
3750
3707
|
});
|
|
3751
3708
|
continue;
|
|
3752
3709
|
}
|
|
3753
|
-
if (
|
|
3710
|
+
if (jt(h)) {
|
|
3754
3711
|
var d = h.children, y = h.value, S = i[y];
|
|
3755
|
-
if (!
|
|
3756
|
-
throw new
|
|
3712
|
+
if (!Kn(S))
|
|
3713
|
+
throw new Yn(y, "function", a);
|
|
3757
3714
|
var H = ce(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3758
3715
|
return m.value;
|
|
3759
3716
|
}));
|
|
@@ -3764,42 +3721,42 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3764
3721
|
};
|
|
3765
3722
|
}));
|
|
3766
3723
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
s.push.apply(s, ce(
|
|
3724
|
+
if (Dt(h)) {
|
|
3725
|
+
var x = h.options[c] || h.options.other;
|
|
3726
|
+
if (!x)
|
|
3727
|
+
throw new bt(h.value, c, Object.keys(h.options), a);
|
|
3728
|
+
s.push.apply(s, ce(x.value, t, r, n, i));
|
|
3772
3729
|
continue;
|
|
3773
3730
|
}
|
|
3774
|
-
if (
|
|
3775
|
-
var
|
|
3776
|
-
if (!
|
|
3731
|
+
if (Ft(h)) {
|
|
3732
|
+
var x = h.options["=".concat(c)];
|
|
3733
|
+
if (!x) {
|
|
3777
3734
|
if (!Intl.PluralRules)
|
|
3778
|
-
throw new
|
|
3735
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3779
3736
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3780
|
-
`,
|
|
3737
|
+
`, z.MISSING_INTL_API, a);
|
|
3781
3738
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3782
|
-
|
|
3739
|
+
x = h.options[w] || h.options.other;
|
|
3783
3740
|
}
|
|
3784
|
-
if (!
|
|
3785
|
-
throw new
|
|
3786
|
-
s.push.apply(s, ce(
|
|
3741
|
+
if (!x)
|
|
3742
|
+
throw new bt(h.value, c, Object.keys(h.options), a);
|
|
3743
|
+
s.push.apply(s, ce(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
3787
3744
|
continue;
|
|
3788
3745
|
}
|
|
3789
3746
|
}
|
|
3790
|
-
return
|
|
3747
|
+
return Jn(s);
|
|
3791
3748
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return t ?
|
|
3794
|
-
return r[n] =
|
|
3749
|
+
function ei(e, t) {
|
|
3750
|
+
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3751
|
+
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3795
3752
|
}, {})) : e;
|
|
3796
3753
|
}
|
|
3797
|
-
function
|
|
3754
|
+
function ti(e, t) {
|
|
3798
3755
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3799
|
-
return r[n] =
|
|
3800
|
-
},
|
|
3756
|
+
return r[n] = ei(e[n], t[n]), r;
|
|
3757
|
+
}, g({}, e)) : e;
|
|
3801
3758
|
}
|
|
3802
|
-
function
|
|
3759
|
+
function He(e) {
|
|
3803
3760
|
return {
|
|
3804
3761
|
create: function() {
|
|
3805
3762
|
return {
|
|
@@ -3813,39 +3770,39 @@ function Ce(e) {
|
|
|
3813
3770
|
}
|
|
3814
3771
|
};
|
|
3815
3772
|
}
|
|
3816
|
-
function
|
|
3773
|
+
function ri(e) {
|
|
3817
3774
|
return e === void 0 && (e = {
|
|
3818
3775
|
number: {},
|
|
3819
3776
|
dateTime: {},
|
|
3820
3777
|
pluralRules: {}
|
|
3821
3778
|
}), {
|
|
3822
|
-
getNumberFormat:
|
|
3779
|
+
getNumberFormat: Se(function() {
|
|
3823
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3781
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3782
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3826
3783
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3784
|
+
cache: He(e.number),
|
|
3785
|
+
strategy: we.variadic
|
|
3829
3786
|
}),
|
|
3830
|
-
getDateTimeFormat:
|
|
3787
|
+
getDateTimeFormat: Se(function() {
|
|
3831
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3789
|
r[n] = arguments[n];
|
|
3833
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3834
3791
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3792
|
+
cache: He(e.dateTime),
|
|
3793
|
+
strategy: we.variadic
|
|
3837
3794
|
}),
|
|
3838
|
-
getPluralRules:
|
|
3795
|
+
getPluralRules: Se(function() {
|
|
3839
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3840
3797
|
r[n] = arguments[n];
|
|
3841
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3798
|
+
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3842
3799
|
}, {
|
|
3843
|
-
cache:
|
|
3844
|
-
strategy:
|
|
3800
|
+
cache: He(e.pluralRules),
|
|
3801
|
+
strategy: we.variadic
|
|
3845
3802
|
})
|
|
3846
3803
|
};
|
|
3847
3804
|
}
|
|
3848
|
-
var
|
|
3805
|
+
var ni = (
|
|
3849
3806
|
/** @class */
|
|
3850
3807
|
function() {
|
|
3851
3808
|
function e(t, r, n, i) {
|
|
@@ -3877,13 +3834,13 @@ var ui = (
|
|
|
3877
3834
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3878
3835
|
var a = i || {};
|
|
3879
3836
|
a.formatters;
|
|
3880
|
-
var s =
|
|
3881
|
-
this.ast = e.__parse(t,
|
|
3837
|
+
var s = Mr(a, ["formatters"]);
|
|
3838
|
+
this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
|
|
3882
3839
|
} else
|
|
3883
3840
|
this.ast = t;
|
|
3884
3841
|
if (!Array.isArray(this.ast))
|
|
3885
3842
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3886
|
-
this.formats =
|
|
3843
|
+
this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
|
|
3887
3844
|
}
|
|
3888
3845
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3889
3846
|
get: function() {
|
|
@@ -3896,7 +3853,7 @@ var ui = (
|
|
|
3896
3853
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3897
3854
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3898
3855
|
}
|
|
3899
|
-
}, e.__parse =
|
|
3856
|
+
}, e.__parse = Zn, e.formats = {
|
|
3900
3857
|
number: {
|
|
3901
3858
|
integer: {
|
|
3902
3859
|
maximumFractionDigits: 0
|
|
@@ -3957,7 +3914,7 @@ var ui = (
|
|
|
3957
3914
|
}, e;
|
|
3958
3915
|
}()
|
|
3959
3916
|
);
|
|
3960
|
-
function
|
|
3917
|
+
function ii(e, t) {
|
|
3961
3918
|
if (t == null)
|
|
3962
3919
|
return;
|
|
3963
3920
|
if (t in e)
|
|
@@ -3978,92 +3935,92 @@ function li(e, t) {
|
|
|
3978
3935
|
n = void 0;
|
|
3979
3936
|
return n;
|
|
3980
3937
|
}
|
|
3981
|
-
const
|
|
3938
|
+
const R = {}, oi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Qt = (e, t) => {
|
|
3982
3939
|
if (t == null)
|
|
3983
3940
|
return;
|
|
3984
|
-
if (t in
|
|
3985
|
-
return
|
|
3986
|
-
const r =
|
|
3941
|
+
if (t in R && e in R[t])
|
|
3942
|
+
return R[t][e];
|
|
3943
|
+
const r = ge(t);
|
|
3987
3944
|
for (let n = 0; n < r.length; n++) {
|
|
3988
|
-
const i = r[n], o =
|
|
3945
|
+
const i = r[n], o = si(i, e);
|
|
3989
3946
|
if (o)
|
|
3990
|
-
return
|
|
3947
|
+
return oi(e, t, o);
|
|
3991
3948
|
}
|
|
3992
3949
|
};
|
|
3993
|
-
let
|
|
3994
|
-
const ae =
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
3950
|
+
let Xe;
|
|
3951
|
+
const ae = be({});
|
|
3952
|
+
function ai(e) {
|
|
3953
|
+
return Xe[e] || null;
|
|
3997
3954
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return e in
|
|
3955
|
+
function Jt(e) {
|
|
3956
|
+
return e in Xe;
|
|
4000
3957
|
}
|
|
4001
|
-
function
|
|
4002
|
-
if (!
|
|
3958
|
+
function si(e, t) {
|
|
3959
|
+
if (!Jt(e))
|
|
4003
3960
|
return null;
|
|
4004
|
-
const r =
|
|
4005
|
-
return
|
|
3961
|
+
const r = ai(e);
|
|
3962
|
+
return ii(r, t);
|
|
4006
3963
|
}
|
|
4007
|
-
function
|
|
3964
|
+
function ui(e) {
|
|
4008
3965
|
if (e == null)
|
|
4009
3966
|
return;
|
|
4010
|
-
const t =
|
|
3967
|
+
const t = ge(e);
|
|
4011
3968
|
for (let r = 0; r < t.length; r++) {
|
|
4012
3969
|
const n = t[r];
|
|
4013
|
-
if (
|
|
3970
|
+
if (Jt(n))
|
|
4014
3971
|
return n;
|
|
4015
3972
|
}
|
|
4016
3973
|
}
|
|
4017
|
-
function
|
|
4018
|
-
delete
|
|
3974
|
+
function Kt(e, ...t) {
|
|
3975
|
+
delete R[e], ae.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
|
|
4019
3976
|
}
|
|
4020
|
-
|
|
3977
|
+
q(
|
|
4021
3978
|
[ae],
|
|
4022
3979
|
([e]) => Object.keys(e)
|
|
4023
3980
|
);
|
|
4024
|
-
ae.subscribe((e) =>
|
|
3981
|
+
ae.subscribe((e) => Xe = e);
|
|
4025
3982
|
const fe = {};
|
|
4026
|
-
function
|
|
3983
|
+
function li(e, t) {
|
|
4027
3984
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4028
3985
|
}
|
|
4029
|
-
function
|
|
3986
|
+
function er(e) {
|
|
4030
3987
|
return fe[e];
|
|
4031
3988
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return
|
|
4034
|
-
const r =
|
|
3989
|
+
function hi(e) {
|
|
3990
|
+
return ge(e).map((t) => {
|
|
3991
|
+
const r = er(t);
|
|
4035
3992
|
return [t, r ? [...r] : []];
|
|
4036
3993
|
}).filter(([, t]) => t.length > 0);
|
|
4037
3994
|
}
|
|
4038
|
-
function
|
|
4039
|
-
return e == null ? !1 :
|
|
3995
|
+
function ke(e) {
|
|
3996
|
+
return e == null ? !1 : ge(e).some(
|
|
4040
3997
|
(t) => {
|
|
4041
3998
|
var r;
|
|
4042
|
-
return (r =
|
|
3999
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
4043
4000
|
}
|
|
4044
4001
|
);
|
|
4045
4002
|
}
|
|
4046
|
-
function
|
|
4003
|
+
function ci(e, t) {
|
|
4047
4004
|
return Promise.all(
|
|
4048
|
-
t.map((n) => (
|
|
4049
|
-
).then((n) =>
|
|
4050
|
-
}
|
|
4051
|
-
const
|
|
4052
|
-
function
|
|
4053
|
-
if (!
|
|
4054
|
-
return e in
|
|
4055
|
-
const t =
|
|
4056
|
-
return
|
|
4005
|
+
t.map((n) => (li(e, n), n().then((i) => i.default || i)))
|
|
4006
|
+
).then((n) => Kt(e, ...n));
|
|
4007
|
+
}
|
|
4008
|
+
const J = {};
|
|
4009
|
+
function tr(e) {
|
|
4010
|
+
if (!ke(e))
|
|
4011
|
+
return e in J ? J[e] : Promise.resolve();
|
|
4012
|
+
const t = hi(e);
|
|
4013
|
+
return J[e] = Promise.all(
|
|
4057
4014
|
t.map(
|
|
4058
|
-
([r, n]) =>
|
|
4015
|
+
([r, n]) => ci(r, n)
|
|
4059
4016
|
)
|
|
4060
4017
|
).then(() => {
|
|
4061
|
-
if (
|
|
4062
|
-
return
|
|
4063
|
-
delete
|
|
4064
|
-
}),
|
|
4018
|
+
if (ke(e))
|
|
4019
|
+
return tr(e);
|
|
4020
|
+
delete J[e];
|
|
4021
|
+
}), J[e];
|
|
4065
4022
|
}
|
|
4066
|
-
const
|
|
4023
|
+
const fi = {
|
|
4067
4024
|
number: {
|
|
4068
4025
|
scientific: { notation: "scientific" },
|
|
4069
4026
|
engineering: { notation: "engineering" },
|
|
@@ -4092,150 +4049,150 @@ const vi = {
|
|
|
4092
4049
|
timeZoneName: "short"
|
|
4093
4050
|
}
|
|
4094
4051
|
}
|
|
4095
|
-
},
|
|
4052
|
+
}, pi = {
|
|
4096
4053
|
fallbackLocale: null,
|
|
4097
4054
|
loadingDelay: 200,
|
|
4098
|
-
formats:
|
|
4055
|
+
formats: fi,
|
|
4099
4056
|
warnOnMissingMessages: !0,
|
|
4100
4057
|
handleMissingMessage: void 0,
|
|
4101
4058
|
ignoreTag: !0
|
|
4102
|
-
},
|
|
4103
|
-
function
|
|
4104
|
-
return
|
|
4059
|
+
}, di = pi;
|
|
4060
|
+
function W() {
|
|
4061
|
+
return di;
|
|
4105
4062
|
}
|
|
4106
|
-
const
|
|
4107
|
-
var
|
|
4063
|
+
const Ie = be(!1);
|
|
4064
|
+
var mi = Object.defineProperty, bi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
|
|
4108
4065
|
for (var r in t || (t = {}))
|
|
4109
|
-
|
|
4110
|
-
if (
|
|
4111
|
-
for (var r of
|
|
4112
|
-
|
|
4066
|
+
gi.call(t, r) && gt(e, r, t[r]);
|
|
4067
|
+
if (vt)
|
|
4068
|
+
for (var r of vt(t))
|
|
4069
|
+
yi.call(t, r) && gt(e, r, t[r]);
|
|
4113
4070
|
return e;
|
|
4114
|
-
},
|
|
4115
|
-
let
|
|
4116
|
-
const
|
|
4117
|
-
function
|
|
4071
|
+
}, _i = (e, t) => bi(e, vi(t));
|
|
4072
|
+
let Ve;
|
|
4073
|
+
const pe = be(null);
|
|
4074
|
+
function yt(e) {
|
|
4118
4075
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4119
4076
|
}
|
|
4120
|
-
function
|
|
4121
|
-
const r =
|
|
4122
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4077
|
+
function ge(e, t = W().fallbackLocale) {
|
|
4078
|
+
const r = yt(e);
|
|
4079
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4123
4080
|
}
|
|
4124
|
-
function
|
|
4125
|
-
return
|
|
4081
|
+
function $() {
|
|
4082
|
+
return Ve != null ? Ve : void 0;
|
|
4126
4083
|
}
|
|
4127
|
-
|
|
4128
|
-
|
|
4084
|
+
pe.subscribe((e) => {
|
|
4085
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4129
4086
|
});
|
|
4130
|
-
const
|
|
4131
|
-
if (e &&
|
|
4132
|
-
const { loadingDelay: t } =
|
|
4087
|
+
const Ei = (e) => {
|
|
4088
|
+
if (e && ui(e) && ke(e)) {
|
|
4089
|
+
const { loadingDelay: t } = W();
|
|
4133
4090
|
let r;
|
|
4134
|
-
return typeof window != "undefined" &&
|
|
4135
|
-
() =>
|
|
4091
|
+
return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
|
|
4092
|
+
() => Ie.set(!0),
|
|
4136
4093
|
t
|
|
4137
|
-
) :
|
|
4138
|
-
|
|
4094
|
+
) : Ie.set(!0), tr(e).then(() => {
|
|
4095
|
+
pe.set(e);
|
|
4139
4096
|
}).finally(() => {
|
|
4140
|
-
clearTimeout(r),
|
|
4097
|
+
clearTimeout(r), Ie.set(!1);
|
|
4141
4098
|
});
|
|
4142
4099
|
}
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4145
|
-
set:
|
|
4146
|
-
}),
|
|
4100
|
+
return pe.set(e);
|
|
4101
|
+
}, Z = _i(xi({}, pe), {
|
|
4102
|
+
set: Ei
|
|
4103
|
+
}), ye = (e) => {
|
|
4147
4104
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4148
4105
|
return (n) => {
|
|
4149
4106
|
const i = JSON.stringify(n);
|
|
4150
4107
|
return i in t ? t[i] : t[i] = e(n);
|
|
4151
4108
|
};
|
|
4152
4109
|
};
|
|
4153
|
-
var
|
|
4110
|
+
var Ti = Object.defineProperty, de = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4154
4111
|
for (var r in t || (t = {}))
|
|
4155
|
-
|
|
4156
|
-
if (
|
|
4157
|
-
for (var r of
|
|
4158
|
-
|
|
4112
|
+
rr.call(t, r) && xt(e, r, t[r]);
|
|
4113
|
+
if (de)
|
|
4114
|
+
for (var r of de(t))
|
|
4115
|
+
nr.call(t, r) && xt(e, r, t[r]);
|
|
4159
4116
|
return e;
|
|
4160
|
-
},
|
|
4117
|
+
}, Y = (e, t) => {
|
|
4161
4118
|
var r = {};
|
|
4162
4119
|
for (var n in e)
|
|
4163
|
-
|
|
4164
|
-
if (e != null &&
|
|
4165
|
-
for (var n of
|
|
4166
|
-
t.indexOf(n) < 0 &&
|
|
4120
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4121
|
+
if (e != null && de)
|
|
4122
|
+
for (var n of de(e))
|
|
4123
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4167
4124
|
return r;
|
|
4168
4125
|
};
|
|
4169
|
-
const
|
|
4170
|
-
const { formats: r } =
|
|
4126
|
+
const re = (e, t) => {
|
|
4127
|
+
const { formats: r } = W();
|
|
4171
4128
|
if (e in r && t in r[e])
|
|
4172
4129
|
return r[e][t];
|
|
4173
4130
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4174
|
-
},
|
|
4131
|
+
}, Si = ye(
|
|
4175
4132
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4133
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4177
4134
|
if (r == null)
|
|
4178
4135
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4179
|
-
return n && (i =
|
|
4136
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4180
4137
|
}
|
|
4181
|
-
),
|
|
4138
|
+
), wi = ye(
|
|
4182
4139
|
(e) => {
|
|
4183
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4140
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4184
4141
|
if (r == null)
|
|
4185
4142
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4186
|
-
return n ? i =
|
|
4143
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4144
|
}
|
|
4188
|
-
),
|
|
4145
|
+
), Pi = ye(
|
|
4189
4146
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4147
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4191
4148
|
if (r == null)
|
|
4192
4149
|
throw new Error(
|
|
4193
4150
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4194
4151
|
);
|
|
4195
|
-
return n ? i =
|
|
4152
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4153
|
}
|
|
4197
|
-
),
|
|
4154
|
+
), Hi = (e = {}) => {
|
|
4198
4155
|
var t = e, {
|
|
4199
|
-
locale: r =
|
|
4200
|
-
} = t, n =
|
|
4156
|
+
locale: r = $()
|
|
4157
|
+
} = t, n = Y(t, [
|
|
4201
4158
|
"locale"
|
|
4202
4159
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4160
|
+
return Si(qe({ locale: r }, n));
|
|
4161
|
+
}, Ii = (e = {}) => {
|
|
4205
4162
|
var t = e, {
|
|
4206
|
-
locale: r =
|
|
4207
|
-
} = t, n =
|
|
4163
|
+
locale: r = $()
|
|
4164
|
+
} = t, n = Y(t, [
|
|
4208
4165
|
"locale"
|
|
4209
4166
|
]);
|
|
4210
|
-
return
|
|
4211
|
-
},
|
|
4167
|
+
return wi(qe({ locale: r }, n));
|
|
4168
|
+
}, Bi = (e = {}) => {
|
|
4212
4169
|
var t = e, {
|
|
4213
|
-
locale: r =
|
|
4214
|
-
} = t, n =
|
|
4170
|
+
locale: r = $()
|
|
4171
|
+
} = t, n = Y(t, [
|
|
4215
4172
|
"locale"
|
|
4216
4173
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4174
|
+
return Pi(qe({ locale: r }, n));
|
|
4175
|
+
}, Ci = ye(
|
|
4219
4176
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4220
|
-
(e, t =
|
|
4221
|
-
ignoreTag:
|
|
4177
|
+
(e, t = $()) => new ni(e, t, W().formats, {
|
|
4178
|
+
ignoreTag: W().ignoreTag
|
|
4222
4179
|
})
|
|
4223
|
-
),
|
|
4180
|
+
), Ai = (e, t = {}) => {
|
|
4224
4181
|
var r, n, i, o;
|
|
4225
4182
|
let a = t;
|
|
4226
4183
|
typeof e == "object" && (a = e, e = a.id);
|
|
4227
4184
|
const {
|
|
4228
4185
|
values: s,
|
|
4229
|
-
locale: l =
|
|
4186
|
+
locale: l = $(),
|
|
4230
4187
|
default: u
|
|
4231
4188
|
} = a;
|
|
4232
4189
|
if (l == null)
|
|
4233
4190
|
throw new Error(
|
|
4234
4191
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4235
4192
|
);
|
|
4236
|
-
let h =
|
|
4193
|
+
let h = Qt(e, l);
|
|
4237
4194
|
if (!h)
|
|
4238
|
-
h = (o = (i = (n = (r =
|
|
4195
|
+
h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4239
4196
|
else if (typeof h != "string")
|
|
4240
4197
|
return console.warn(
|
|
4241
4198
|
`[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.`
|
|
@@ -4244,7 +4201,7 @@ const te = (e, t) => {
|
|
|
4244
4201
|
return h;
|
|
4245
4202
|
let f = h;
|
|
4246
4203
|
try {
|
|
4247
|
-
f =
|
|
4204
|
+
f = Ci(h, l).format(s);
|
|
4248
4205
|
} catch (c) {
|
|
4249
4206
|
c instanceof Error && console.warn(
|
|
4250
4207
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4252,20 +4209,20 @@ const te = (e, t) => {
|
|
|
4252
4209
|
);
|
|
4253
4210
|
}
|
|
4254
4211
|
return f;
|
|
4255
|
-
},
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
window.emWidgets = { topic:
|
|
4261
|
-
const
|
|
4262
|
-
function
|
|
4263
|
-
|
|
4264
|
-
}
|
|
4265
|
-
function
|
|
4266
|
-
|
|
4267
|
-
}
|
|
4268
|
-
const
|
|
4212
|
+
}, Oi = (e, t) => Bi(t).format(e), Li = (e, t) => Ii(t).format(e), Mi = (e, t) => Hi(t).format(e), Ni = (e, t = $()) => Qt(e, t), Ri = q([Z, ae], () => Ai);
|
|
4213
|
+
q([Z], () => Oi);
|
|
4214
|
+
q([Z], () => Li);
|
|
4215
|
+
q([Z], () => Mi);
|
|
4216
|
+
q([Z, ae], () => Ni);
|
|
4217
|
+
window.emWidgets = { topic: qr };
|
|
4218
|
+
const $i = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4219
|
+
function _t(e, t) {
|
|
4220
|
+
Kt(e, t);
|
|
4221
|
+
}
|
|
4222
|
+
function Ui(e) {
|
|
4223
|
+
Z.set(e);
|
|
4224
|
+
}
|
|
4225
|
+
const Et = {
|
|
4269
4226
|
en: {
|
|
4270
4227
|
name: "Info",
|
|
4271
4228
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4327,13 +4284,13 @@ const Ht = {
|
|
|
4327
4284
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4328
4285
|
}
|
|
4329
4286
|
};
|
|
4330
|
-
function
|
|
4287
|
+
function Gi(e, t) {
|
|
4331
4288
|
if (e) {
|
|
4332
4289
|
const r = document.createElement("style");
|
|
4333
4290
|
r.innerHTML = t, e.appendChild(r);
|
|
4334
4291
|
}
|
|
4335
4292
|
}
|
|
4336
|
-
function
|
|
4293
|
+
function Di(e, t) {
|
|
4337
4294
|
const r = new URL(t);
|
|
4338
4295
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4339
4296
|
const i = document.createElement("style");
|
|
@@ -4342,7 +4299,7 @@ function zi(e, t) {
|
|
|
4342
4299
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4343
4300
|
});
|
|
4344
4301
|
}
|
|
4345
|
-
function
|
|
4302
|
+
function Fi(e, t, r) {
|
|
4346
4303
|
if (window.emMessageBus) {
|
|
4347
4304
|
const n = document.createElement("style");
|
|
4348
4305
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4350,24 +4307,24 @@ function Wi(e, t, r) {
|
|
|
4350
4307
|
});
|
|
4351
4308
|
}
|
|
4352
4309
|
}
|
|
4353
|
-
function
|
|
4354
|
-
|
|
4310
|
+
function ji(e) {
|
|
4311
|
+
cr(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4355
4312
|
}
|
|
4356
|
-
function
|
|
4313
|
+
function Tt(e) {
|
|
4357
4314
|
let t, r, n, i, o, a, s = (
|
|
4358
4315
|
/*$_*/
|
|
4359
4316
|
e[4]("name") + ""
|
|
4360
4317
|
), l, u, h, f, c, p, d, y;
|
|
4361
|
-
function S(
|
|
4318
|
+
function S(x, w) {
|
|
4362
4319
|
return (
|
|
4363
4320
|
/*iteminfoamount*/
|
|
4364
|
-
|
|
4321
|
+
x[0] ? Vi : ki
|
|
4365
4322
|
);
|
|
4366
4323
|
}
|
|
4367
4324
|
let H = S(e), E = H(e);
|
|
4368
4325
|
return {
|
|
4369
4326
|
c() {
|
|
4370
|
-
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o =
|
|
4327
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = _e(), a = A("div"), l = oe(s), u = _e(), h = A("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = _e(), c = A("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(c, "class", "InfoCardPopupContentArea"), C(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4371
4328
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4372
4329
|
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4373
4330
|
t,
|
|
@@ -4376,48 +4333,48 @@ function It(e) {
|
|
|
4376
4333
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4377
4334
|
);
|
|
4378
4335
|
},
|
|
4379
|
-
m(
|
|
4380
|
-
|
|
4336
|
+
m(x, w) {
|
|
4337
|
+
ie(x, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (y = mr(h, "click", br(
|
|
4381
4338
|
/*closeInfoPopup*/
|
|
4382
4339
|
e[6]
|
|
4383
4340
|
)), d = !0);
|
|
4384
4341
|
},
|
|
4385
|
-
p(
|
|
4342
|
+
p(x, w) {
|
|
4386
4343
|
w & /*$_*/
|
|
4387
4344
|
16 && s !== (s = /*$_*/
|
|
4388
|
-
|
|
4345
|
+
x[4]("name") + "") && We(l, s), H === (H = S(x)) && E ? E.p(x, w) : (E.d(1), E = H(x), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4389
4346
|
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4390
|
-
(
|
|
4391
|
-
(
|
|
4347
|
+
(x[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4348
|
+
(x[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", p);
|
|
4392
4349
|
},
|
|
4393
|
-
d(
|
|
4394
|
-
|
|
4350
|
+
d(x) {
|
|
4351
|
+
x && X(t), E.d(), e[13](null), d = !1, y();
|
|
4395
4352
|
}
|
|
4396
4353
|
};
|
|
4397
4354
|
}
|
|
4398
|
-
function
|
|
4355
|
+
function ki(e) {
|
|
4399
4356
|
let t, r = (
|
|
4400
4357
|
/*$_*/
|
|
4401
4358
|
e[4]("defaultText") + ""
|
|
4402
4359
|
), n;
|
|
4403
4360
|
return {
|
|
4404
4361
|
c() {
|
|
4405
|
-
t = A("p"), n =
|
|
4362
|
+
t = A("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4406
4363
|
},
|
|
4407
4364
|
m(i, o) {
|
|
4408
|
-
|
|
4365
|
+
ie(i, t, o), P(t, n);
|
|
4409
4366
|
},
|
|
4410
4367
|
p(i, o) {
|
|
4411
4368
|
o & /*$_*/
|
|
4412
4369
|
16 && r !== (r = /*$_*/
|
|
4413
|
-
i[4]("defaultText") + "") &&
|
|
4370
|
+
i[4]("defaultText") + "") && We(n, r);
|
|
4414
4371
|
},
|
|
4415
4372
|
d(i) {
|
|
4416
|
-
i &&
|
|
4373
|
+
i && X(t);
|
|
4417
4374
|
}
|
|
4418
4375
|
};
|
|
4419
4376
|
}
|
|
4420
|
-
function
|
|
4377
|
+
function Vi(e) {
|
|
4421
4378
|
let t, r = (
|
|
4422
4379
|
/*$_*/
|
|
4423
4380
|
e[4]("amountChanged", {
|
|
@@ -4435,10 +4392,10 @@ function Zi(e) {
|
|
|
4435
4392
|
), n;
|
|
4436
4393
|
return {
|
|
4437
4394
|
c() {
|
|
4438
|
-
t = A("p"), n =
|
|
4395
|
+
t = A("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4439
4396
|
},
|
|
4440
4397
|
m(i, o) {
|
|
4441
|
-
|
|
4398
|
+
ie(i, t, o), P(t, n);
|
|
4442
4399
|
},
|
|
4443
4400
|
p(i, o) {
|
|
4444
4401
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4454,53 +4411,53 @@ function Zi(e) {
|
|
|
4454
4411
|
i[1]
|
|
4455
4412
|
)
|
|
4456
4413
|
}
|
|
4457
|
-
}) + "") &&
|
|
4414
|
+
}) + "") && We(n, r);
|
|
4458
4415
|
},
|
|
4459
4416
|
d(i) {
|
|
4460
|
-
i &&
|
|
4417
|
+
i && X(t);
|
|
4461
4418
|
}
|
|
4462
4419
|
};
|
|
4463
4420
|
}
|
|
4464
|
-
function
|
|
4421
|
+
function zi(e) {
|
|
4465
4422
|
let t, r = (
|
|
4466
4423
|
/*showPopup*/
|
|
4467
|
-
e[3] &&
|
|
4424
|
+
e[3] && Tt(e)
|
|
4468
4425
|
);
|
|
4469
4426
|
return {
|
|
4470
4427
|
c() {
|
|
4471
|
-
r && r.c(), t =
|
|
4428
|
+
r && r.c(), t = dr();
|
|
4472
4429
|
},
|
|
4473
4430
|
m(n, i) {
|
|
4474
|
-
r && r.m(n, i),
|
|
4431
|
+
r && r.m(n, i), ie(n, t, i);
|
|
4475
4432
|
},
|
|
4476
4433
|
p(n, [i]) {
|
|
4477
4434
|
/*showPopup*/
|
|
4478
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4435
|
+
n[3] ? r ? r.p(n, i) : (r = Tt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4479
4436
|
},
|
|
4480
4437
|
i: O,
|
|
4481
4438
|
o: O,
|
|
4482
4439
|
d(n) {
|
|
4483
|
-
n &&
|
|
4440
|
+
n && X(t), r && r.d(n);
|
|
4484
4441
|
}
|
|
4485
4442
|
};
|
|
4486
4443
|
}
|
|
4487
|
-
function
|
|
4444
|
+
function Wi(e, t, r) {
|
|
4488
4445
|
let n;
|
|
4489
|
-
|
|
4446
|
+
hr(e, Ri, (m) => r(4, n = m));
|
|
4490
4447
|
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { currency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource: f } = t;
|
|
4491
4448
|
const c = () => {
|
|
4492
4449
|
fetch(h).then((B) => B.json()).then((B) => {
|
|
4493
|
-
Object.keys(B).forEach((
|
|
4494
|
-
|
|
4450
|
+
Object.keys(B).forEach((Q) => {
|
|
4451
|
+
_t(Q, B[Q]);
|
|
4495
4452
|
});
|
|
4496
4453
|
}).catch((B) => {
|
|
4497
4454
|
console.log(B);
|
|
4498
4455
|
});
|
|
4499
4456
|
};
|
|
4500
|
-
Object.keys(
|
|
4501
|
-
|
|
4457
|
+
Object.keys(Et).forEach((m) => {
|
|
4458
|
+
_t(m, Et[m]);
|
|
4502
4459
|
});
|
|
4503
|
-
let p = !1, d, y = window.navigator.userAgent, S =
|
|
4460
|
+
let p = !1, d, y = window.navigator.userAgent, S = $i(y) !== "PC";
|
|
4504
4461
|
const H = () => {
|
|
4505
4462
|
r(3, p = !1), window.postMessage(
|
|
4506
4463
|
{
|
|
@@ -4510,14 +4467,14 @@ function Qi(e, t, r) {
|
|
|
4510
4467
|
);
|
|
4511
4468
|
}, E = (m) => {
|
|
4512
4469
|
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4513
|
-
},
|
|
4514
|
-
|
|
4470
|
+
}, x = () => {
|
|
4471
|
+
Ui(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4515
4472
|
};
|
|
4516
|
-
|
|
4473
|
+
xr(() => (window.addEventListener("message", E, !1), () => {
|
|
4517
4474
|
window.removeEventListener("message", E);
|
|
4518
4475
|
}));
|
|
4519
4476
|
function w(m) {
|
|
4520
|
-
|
|
4477
|
+
Be[m ? "unshift" : "push"](() => {
|
|
4521
4478
|
d = m, r(2, d);
|
|
4522
4479
|
});
|
|
4523
4480
|
}
|
|
@@ -4525,10 +4482,10 @@ function Qi(e, t, r) {
|
|
|
4525
4482
|
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4526
4483
|
}, e.$$.update = () => {
|
|
4527
4484
|
e.$$.dirty & /*showpopup, lang*/
|
|
4528
|
-
384 && i && a &&
|
|
4529
|
-
516 && l && d &&
|
|
4530
|
-
1028 && u && d &&
|
|
4531
|
-
4100 && f && d &&
|
|
4485
|
+
384 && i && a && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4486
|
+
516 && l && d && Gi(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4487
|
+
1028 && u && d && Di(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4488
|
+
4100 && f && d && Fi(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4532
4489
|
2048 && h && c();
|
|
4533
4490
|
}, [
|
|
4534
4491
|
o,
|
|
@@ -4547,14 +4504,14 @@ function Qi(e, t, r) {
|
|
|
4547
4504
|
w
|
|
4548
4505
|
];
|
|
4549
4506
|
}
|
|
4550
|
-
class
|
|
4507
|
+
class Xi extends Or {
|
|
4551
4508
|
constructor(t) {
|
|
4552
|
-
super(),
|
|
4509
|
+
super(), Cr(
|
|
4553
4510
|
this,
|
|
4554
4511
|
t,
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4512
|
+
Wi,
|
|
4513
|
+
zi,
|
|
4514
|
+
wt,
|
|
4558
4515
|
{
|
|
4559
4516
|
showpopup: 7,
|
|
4560
4517
|
iteminfoamount: 0,
|
|
@@ -4565,7 +4522,7 @@ class Ji extends Rr {
|
|
|
4565
4522
|
translationurl: 11,
|
|
4566
4523
|
mbsource: 12
|
|
4567
4524
|
},
|
|
4568
|
-
|
|
4525
|
+
ji
|
|
4569
4526
|
);
|
|
4570
4527
|
}
|
|
4571
4528
|
get showpopup() {
|
|
@@ -4617,7 +4574,7 @@ class Ji extends Rr {
|
|
|
4617
4574
|
this.$$set({ mbsource: t }), L();
|
|
4618
4575
|
}
|
|
4619
4576
|
}
|
|
4620
|
-
|
|
4577
|
+
Ar(Xi, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4621
4578
|
export {
|
|
4622
|
-
|
|
4579
|
+
Xi as default
|
|
4623
4580
|
};
|