@everymatrix/player-account-gaming-limits-popup 1.87.25 → 1.87.27
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-C5YoXENK.cjs → PlayerAccountGamingLimitsPopup-BdSHXCoH.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsPopup-DrZbor7u.js → PlayerAccountGamingLimitsPopup-D6um3k8S.js} +813 -786
- package/components/{PlayerAccountGamingLimitsPopup-DZrFAZfJ.js → PlayerAccountGamingLimitsPopup-hYQKgM7w.js} +834 -806
- 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
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
3
|
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function re(e) {
|
|
10
10
|
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function or(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ht(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return I;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ar(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
32
32
|
}
|
|
33
33
|
function P(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function sr(e, t, r) {
|
|
37
|
+
const n = ur(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = A("style");
|
|
40
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ur(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,50 +50,50 @@ function ar(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function lr(e, t) {
|
|
54
54
|
return P(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ne(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function X(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function A(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ie(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function Ee() {
|
|
73
|
+
return ie(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function hr() {
|
|
76
|
+
return ie("");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function cr(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function fr(e) {
|
|
82
82
|
return function(t) {
|
|
83
83
|
return t.preventDefault(), e.call(this, t);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function C(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function pr(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ye(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function dr(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,95 +102,95 @@ function fr(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let K;
|
|
106
|
+
function J(e) {
|
|
107
|
+
K = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function mr() {
|
|
110
|
+
if (!K)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return K;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
114
|
+
function br(e) {
|
|
115
|
+
mr().$$.on_mount.push(e);
|
|
116
|
+
}
|
|
117
|
+
const D = [], Be = [];
|
|
118
|
+
let j = [];
|
|
119
|
+
const tt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Oe = !1;
|
|
121
|
+
function yr() {
|
|
122
|
+
Oe || (Oe = !0, vr.then(B));
|
|
123
|
+
}
|
|
124
|
+
function Le(e) {
|
|
125
|
+
j.push(e);
|
|
126
|
+
}
|
|
127
|
+
const Se = /* @__PURE__ */ new Set();
|
|
128
|
+
let U = 0;
|
|
129
|
+
function B() {
|
|
130
|
+
if (U !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = K;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
|
-
for (;
|
|
136
|
-
const t =
|
|
137
|
-
|
|
135
|
+
for (; U < D.length; ) {
|
|
136
|
+
const t = D[U];
|
|
137
|
+
U++, J(t), gr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
|
-
throw
|
|
140
|
+
throw D.length = 0, U = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
142
|
+
for (J(null), D.length = 0, U = 0; Be.length; )
|
|
143
143
|
Be.pop()();
|
|
144
|
-
for (let t = 0; t <
|
|
145
|
-
const r =
|
|
146
|
-
|
|
144
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
145
|
+
const r = j[t];
|
|
146
|
+
Se.has(r) || (Se.add(r), r());
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
} while (
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
j.length = 0;
|
|
149
|
+
} while (D.length);
|
|
150
|
+
for (; tt.length; )
|
|
151
|
+
tt.pop()();
|
|
152
|
+
Oe = !1, Se.clear(), J(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function gr(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), re(e.before_update);
|
|
157
157
|
const t = e.dirty;
|
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function xr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
|
-
|
|
163
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const _r = /* @__PURE__ */ new Set();
|
|
166
|
+
function Er(e, t) {
|
|
167
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Sr(e, t, r) {
|
|
170
170
|
const { fragment: n, after_update: i } = e.$$;
|
|
171
|
-
n && n.m(t, r),
|
|
172
|
-
const o = e.$$.on_mount.map(Tt).filter(
|
|
173
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
174
|
-
}), i.forEach(
|
|
171
|
+
n && n.m(t, r), Le(() => {
|
|
172
|
+
const o = e.$$.on_mount.map(Tt).filter(Ze);
|
|
173
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
174
|
+
}), i.forEach(Le);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function wr(e, t) {
|
|
177
177
|
const r = e.$$;
|
|
178
|
-
r.fragment !== null && (
|
|
178
|
+
r.fragment !== null && (xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
179
179
|
}
|
|
180
180
|
function Tr(e, t) {
|
|
181
|
-
e.$$.dirty[0] === -1 && (
|
|
181
|
+
e.$$.dirty[0] === -1 && (D.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
const l =
|
|
185
|
-
|
|
183
|
+
function Pr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
184
|
+
const l = K;
|
|
185
|
+
J(e);
|
|
186
186
|
const u = e.$$ = {
|
|
187
187
|
fragment: null,
|
|
188
188
|
ctx: [],
|
|
189
189
|
// state
|
|
190
190
|
props: o,
|
|
191
|
-
update:
|
|
191
|
+
update: I,
|
|
192
192
|
not_equal: i,
|
|
193
|
-
bound:
|
|
193
|
+
bound: et(),
|
|
194
194
|
// lifecycle
|
|
195
195
|
on_mount: [],
|
|
196
196
|
on_destroy: [],
|
|
@@ -199,7 +199,7 @@ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
199
199
|
after_update: [],
|
|
200
200
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
201
201
|
// everything else
|
|
202
|
-
callbacks:
|
|
202
|
+
callbacks: et(),
|
|
203
203
|
dirty: s,
|
|
204
204
|
skip_bound: !1,
|
|
205
205
|
root: t.target || l.$$.root
|
|
@@ -209,18 +209,18 @@ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
209
209
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
210
210
|
const d = p.length ? p[0] : c;
|
|
211
211
|
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Tr(e, f)), c;
|
|
212
|
-
}) : [], u.update(), h = !0,
|
|
212
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
213
213
|
if (t.hydrate) {
|
|
214
|
-
const f =
|
|
215
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
214
|
+
const f = pr(t.target);
|
|
215
|
+
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
216
216
|
} else
|
|
217
217
|
u.fragment && u.fragment.c();
|
|
218
|
-
t.intro &&
|
|
218
|
+
t.intro && Er(e.$$.fragment), Sr(e, t.target, t.anchor), B();
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
J(l);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
typeof HTMLElement == "function" && (
|
|
222
|
+
let Ct;
|
|
223
|
+
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
224
224
|
/** The Svelte component constructor */
|
|
225
225
|
$$ctor;
|
|
226
226
|
/** Slots */
|
|
@@ -262,29 +262,29 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
262
262
|
let o;
|
|
263
263
|
return {
|
|
264
264
|
c: function() {
|
|
265
|
-
o =
|
|
265
|
+
o = A("slot"), i !== "default" && C(o, "name", i);
|
|
266
266
|
},
|
|
267
267
|
/**
|
|
268
268
|
* @param {HTMLElement} target
|
|
269
269
|
* @param {HTMLElement} [anchor]
|
|
270
270
|
*/
|
|
271
271
|
m: function(l, u) {
|
|
272
|
-
|
|
272
|
+
ne(l, o, u);
|
|
273
273
|
},
|
|
274
274
|
d: function(l) {
|
|
275
|
-
l &&
|
|
275
|
+
l && X(o);
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
281
281
|
return;
|
|
282
|
-
const t = {}, r =
|
|
282
|
+
const t = {}, r = dr(this);
|
|
283
283
|
for (const i of this.$$s)
|
|
284
284
|
i in r && (t[i] = [e(i)]);
|
|
285
285
|
for (const i of this.attributes) {
|
|
286
286
|
const o = this.$$g_p(i.name);
|
|
287
|
-
o in this.$$d || (this.$$d[o] =
|
|
287
|
+
o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
|
|
288
288
|
}
|
|
289
289
|
for (const i in this.$$p_d)
|
|
290
290
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
302
302
|
this.$$r = !0;
|
|
303
303
|
for (const i in this.$$p_d)
|
|
304
304
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
305
|
-
const o =
|
|
305
|
+
const o = le(
|
|
306
306
|
i,
|
|
307
307
|
this.$$d[i],
|
|
308
308
|
this.$$p_d,
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
324
324
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
325
325
|
// and setting attributes through setAttribute etc, this is helpful
|
|
326
326
|
attributeChangedCallback(e, t, r) {
|
|
327
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
327
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
328
328
|
}
|
|
329
329
|
disconnectedCallback() {
|
|
330
330
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
337
337
|
) || e;
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
function
|
|
340
|
+
function le(e, t, r, n) {
|
|
341
341
|
const i = r[e]?.type;
|
|
342
342
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
343
343
|
return t;
|
|
@@ -366,8 +366,8 @@ function ue(e, t, r, n) {
|
|
|
366
366
|
return t;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let a = class extends
|
|
369
|
+
function Hr(e, t, r, n, i, o) {
|
|
370
|
+
let a = class extends Ct {
|
|
371
371
|
constructor() {
|
|
372
372
|
super(e, r, i), this.$$p_d = t;
|
|
373
373
|
}
|
|
@@ -383,7 +383,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
383
383
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
384
384
|
},
|
|
385
385
|
set(l) {
|
|
386
|
-
l =
|
|
386
|
+
l = le(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
}), n.forEach((s) => {
|
|
@@ -395,7 +395,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
395
395
|
}), e.element = /** @type {any} */
|
|
396
396
|
a, a;
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class Cr {
|
|
399
399
|
/**
|
|
400
400
|
* ### PRIVATE API
|
|
401
401
|
*
|
|
@@ -414,7 +414,7 @@ class Pr {
|
|
|
414
414
|
$$set = void 0;
|
|
415
415
|
/** @returns {void} */
|
|
416
416
|
$destroy() {
|
|
417
|
-
|
|
417
|
+
wr(this, 1), this.$destroy = I;
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -423,8 +423,8 @@ class Pr {
|
|
|
423
423
|
* @returns {() => void}
|
|
424
424
|
*/
|
|
425
425
|
$on(t, r) {
|
|
426
|
-
if (!
|
|
427
|
-
return
|
|
426
|
+
if (!Ze(r))
|
|
427
|
+
return I;
|
|
428
428
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
429
429
|
return n.push(r), () => {
|
|
430
430
|
const i = n.indexOf(r);
|
|
@@ -436,11 +436,11 @@ class Pr {
|
|
|
436
436
|
* @returns {void}
|
|
437
437
|
*/
|
|
438
438
|
$set(t) {
|
|
439
|
-
this.$$set && !
|
|
439
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
+
const Ar = "4";
|
|
443
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
444
444
|
/*! *****************************************************************************
|
|
445
445
|
Copyright (c) Microsoft Corporation.
|
|
446
446
|
|
|
@@ -455,24 +455,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
455
455
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
456
456
|
PERFORMANCE OF THIS SOFTWARE.
|
|
457
457
|
***************************************************************************** */
|
|
458
|
-
var
|
|
459
|
-
return
|
|
458
|
+
var Me = function(e, t) {
|
|
459
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
460
460
|
r.__proto__ = n;
|
|
461
461
|
} || function(r, n) {
|
|
462
462
|
for (var i in n)
|
|
463
463
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
464
|
-
},
|
|
464
|
+
}, Me(e, t);
|
|
465
465
|
};
|
|
466
|
-
function
|
|
466
|
+
function oe(e, t) {
|
|
467
467
|
if (typeof t != "function" && t !== null)
|
|
468
468
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
469
|
-
|
|
469
|
+
Me(e, t);
|
|
470
470
|
function r() {
|
|
471
471
|
this.constructor = e;
|
|
472
472
|
}
|
|
473
473
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ne(e) {
|
|
476
476
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
477
477
|
if (r)
|
|
478
478
|
return r.call(e);
|
|
@@ -484,7 +484,7 @@ function Me(e) {
|
|
|
484
484
|
};
|
|
485
485
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function $e(e, t) {
|
|
488
488
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
489
489
|
if (!r)
|
|
490
490
|
return e;
|
|
@@ -504,22 +504,22 @@ function Ne(e, t) {
|
|
|
504
504
|
}
|
|
505
505
|
return o;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Re(e, t, r) {
|
|
508
508
|
if (arguments.length === 2)
|
|
509
509
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
510
510
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
511
511
|
return e.concat(o || t);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function N(e) {
|
|
514
514
|
return typeof e == "function";
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function At(e) {
|
|
517
517
|
var t = function(n) {
|
|
518
518
|
Error.call(n), n.stack = new Error().stack;
|
|
519
519
|
}, r = e(t);
|
|
520
520
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
521
521
|
}
|
|
522
|
-
var
|
|
522
|
+
var we = At(function(e) {
|
|
523
523
|
return function(r) {
|
|
524
524
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
525
525
|
` + r.map(function(n, i) {
|
|
@@ -528,13 +528,13 @@ var Te = Ht(function(e) {
|
|
|
528
528
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
529
529
|
};
|
|
530
530
|
});
|
|
531
|
-
function
|
|
531
|
+
function Ue(e, t) {
|
|
532
532
|
if (e) {
|
|
533
533
|
var r = e.indexOf(t);
|
|
534
534
|
0 <= r && e.splice(r, 1);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
537
|
+
var be = function() {
|
|
538
538
|
function e(t) {
|
|
539
539
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
540
540
|
}
|
|
@@ -546,12 +546,12 @@ var me = function() {
|
|
|
546
546
|
if (a)
|
|
547
547
|
if (this._parentage = null, Array.isArray(a))
|
|
548
548
|
try {
|
|
549
|
-
for (var s =
|
|
549
|
+
for (var s = Ne(a), l = s.next(); !l.done; l = s.next()) {
|
|
550
550
|
var u = l.value;
|
|
551
551
|
u.remove(this);
|
|
552
552
|
}
|
|
553
|
-
} catch (
|
|
554
|
-
t = { error:
|
|
553
|
+
} catch (y) {
|
|
554
|
+
t = { error: y };
|
|
555
555
|
} finally {
|
|
556
556
|
try {
|
|
557
557
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -563,26 +563,26 @@ var me = function() {
|
|
|
563
563
|
else
|
|
564
564
|
a.remove(this);
|
|
565
565
|
var h = this.initialTeardown;
|
|
566
|
-
if (
|
|
566
|
+
if (N(h))
|
|
567
567
|
try {
|
|
568
568
|
h();
|
|
569
|
-
} catch (
|
|
570
|
-
o =
|
|
569
|
+
} catch (y) {
|
|
570
|
+
o = y instanceof we ? y.errors : [y];
|
|
571
571
|
}
|
|
572
572
|
var f = this._finalizers;
|
|
573
573
|
if (f) {
|
|
574
574
|
this._finalizers = null;
|
|
575
575
|
try {
|
|
576
|
-
for (var c =
|
|
576
|
+
for (var c = Ne(f), p = c.next(); !p.done; p = c.next()) {
|
|
577
577
|
var d = p.value;
|
|
578
578
|
try {
|
|
579
|
-
|
|
580
|
-
} catch (
|
|
581
|
-
o = o ?? [],
|
|
579
|
+
rt(d);
|
|
580
|
+
} catch (y) {
|
|
581
|
+
o = o ?? [], y instanceof we ? o = Re(Re([], $e(o)), $e(y.errors)) : o.push(y);
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
} catch (
|
|
585
|
-
n = { error:
|
|
584
|
+
} catch (y) {
|
|
585
|
+
n = { error: y };
|
|
586
586
|
} finally {
|
|
587
587
|
try {
|
|
588
588
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -593,13 +593,13 @@ var me = function() {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
if (o)
|
|
596
|
-
throw new
|
|
596
|
+
throw new we(o);
|
|
597
597
|
}
|
|
598
598
|
}, e.prototype.add = function(t) {
|
|
599
599
|
var r;
|
|
600
600
|
if (t && t !== this)
|
|
601
601
|
if (this.closed)
|
|
602
|
-
|
|
602
|
+
rt(t);
|
|
603
603
|
else {
|
|
604
604
|
if (t instanceof e) {
|
|
605
605
|
if (t.closed || t._hasParent(this))
|
|
@@ -616,52 +616,52 @@ var me = function() {
|
|
|
616
616
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
617
617
|
}, e.prototype._removeParent = function(t) {
|
|
618
618
|
var r = this._parentage;
|
|
619
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
619
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
620
620
|
}, e.prototype.remove = function(t) {
|
|
621
621
|
var r = this._finalizers;
|
|
622
|
-
r &&
|
|
622
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
623
623
|
}, e.EMPTY = function() {
|
|
624
624
|
var t = new e();
|
|
625
625
|
return t.closed = !0, t;
|
|
626
626
|
}(), e;
|
|
627
|
-
}(), It =
|
|
628
|
-
function
|
|
629
|
-
return e instanceof
|
|
627
|
+
}(), It = be.EMPTY;
|
|
628
|
+
function Bt(e) {
|
|
629
|
+
return e instanceof be || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
|
|
631
|
+
function rt(e) {
|
|
632
|
+
N(e) ? e() : e.unsubscribe();
|
|
633
633
|
}
|
|
634
634
|
var Ir = {
|
|
635
635
|
Promise: void 0
|
|
636
|
-
},
|
|
636
|
+
}, Br = {
|
|
637
637
|
setTimeout: function(e, t) {
|
|
638
638
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
639
639
|
r[n - 2] = arguments[n];
|
|
640
|
-
return setTimeout.apply(void 0,
|
|
640
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
641
641
|
},
|
|
642
642
|
clearTimeout: function(e) {
|
|
643
643
|
return clearTimeout(e);
|
|
644
644
|
},
|
|
645
645
|
delegate: void 0
|
|
646
646
|
};
|
|
647
|
-
function
|
|
648
|
-
|
|
647
|
+
function Or(e) {
|
|
648
|
+
Br.setTimeout(function() {
|
|
649
649
|
throw e;
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function nt() {
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function he(e) {
|
|
655
655
|
e();
|
|
656
656
|
}
|
|
657
|
-
var
|
|
658
|
-
|
|
657
|
+
var Ot = function(e) {
|
|
658
|
+
oe(t, e);
|
|
659
659
|
function t(r) {
|
|
660
660
|
var n = e.call(this) || this;
|
|
661
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
661
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = Nr, n;
|
|
662
662
|
}
|
|
663
663
|
return t.create = function(r, n, i) {
|
|
664
|
-
return new
|
|
664
|
+
return new Ge(r, n, i);
|
|
665
665
|
}, t.prototype.next = function(r) {
|
|
666
666
|
this.isStopped || this._next(r);
|
|
667
667
|
}, t.prototype.error = function(r) {
|
|
@@ -685,7 +685,7 @@ var Bt = function(e) {
|
|
|
685
685
|
this.unsubscribe();
|
|
686
686
|
}
|
|
687
687
|
}, t;
|
|
688
|
-
}(
|
|
688
|
+
}(be), Lr = function() {
|
|
689
689
|
function e(t) {
|
|
690
690
|
this.partialObserver = t;
|
|
691
691
|
}
|
|
@@ -695,7 +695,7 @@ var Bt = function(e) {
|
|
|
695
695
|
try {
|
|
696
696
|
r.next(t);
|
|
697
697
|
} catch (n) {
|
|
698
|
-
|
|
698
|
+
se(n);
|
|
699
699
|
}
|
|
700
700
|
}, e.prototype.error = function(t) {
|
|
701
701
|
var r = this.partialObserver;
|
|
@@ -703,56 +703,56 @@ var Bt = function(e) {
|
|
|
703
703
|
try {
|
|
704
704
|
r.error(t);
|
|
705
705
|
} catch (n) {
|
|
706
|
-
|
|
706
|
+
se(n);
|
|
707
707
|
}
|
|
708
708
|
else
|
|
709
|
-
|
|
709
|
+
se(t);
|
|
710
710
|
}, e.prototype.complete = function() {
|
|
711
711
|
var t = this.partialObserver;
|
|
712
712
|
if (t.complete)
|
|
713
713
|
try {
|
|
714
714
|
t.complete();
|
|
715
715
|
} catch (r) {
|
|
716
|
-
|
|
716
|
+
se(r);
|
|
717
717
|
}
|
|
718
718
|
}, e;
|
|
719
|
-
}(),
|
|
720
|
-
|
|
719
|
+
}(), Ge = function(e) {
|
|
720
|
+
oe(t, e);
|
|
721
721
|
function t(r, n, i) {
|
|
722
722
|
var o = e.call(this) || this, a;
|
|
723
|
-
return
|
|
723
|
+
return N(r) || !r ? a = {
|
|
724
724
|
next: r ?? void 0,
|
|
725
725
|
error: n ?? void 0,
|
|
726
726
|
complete: i ?? void 0
|
|
727
|
-
} : a = r, o.destination = new
|
|
727
|
+
} : a = r, o.destination = new Lr(a), o;
|
|
728
728
|
}
|
|
729
729
|
return t;
|
|
730
|
-
}(
|
|
731
|
-
function
|
|
732
|
-
|
|
730
|
+
}(Ot);
|
|
731
|
+
function se(e) {
|
|
732
|
+
Or(e);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Mr(e) {
|
|
735
735
|
throw e;
|
|
736
736
|
}
|
|
737
|
-
var
|
|
737
|
+
var Nr = {
|
|
738
738
|
closed: !0,
|
|
739
|
-
next:
|
|
740
|
-
error:
|
|
741
|
-
complete:
|
|
742
|
-
},
|
|
739
|
+
next: nt,
|
|
740
|
+
error: Mr,
|
|
741
|
+
complete: nt
|
|
742
|
+
}, $r = function() {
|
|
743
743
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
744
744
|
}();
|
|
745
|
-
function
|
|
745
|
+
function Rr(e) {
|
|
746
746
|
return e;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return e.length === 0 ?
|
|
748
|
+
function Ur(e) {
|
|
749
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
750
750
|
return e.reduce(function(n, i) {
|
|
751
751
|
return i(n);
|
|
752
752
|
}, r);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
var
|
|
755
|
+
var it = function() {
|
|
756
756
|
function e(t) {
|
|
757
757
|
t && (this._subscribe = t);
|
|
758
758
|
}
|
|
@@ -760,8 +760,8 @@ var rt = function() {
|
|
|
760
760
|
var r = new e();
|
|
761
761
|
return r.source = this, r.operator = t, r;
|
|
762
762
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
763
|
-
var i = this, o =
|
|
764
|
-
return
|
|
763
|
+
var i = this, o = Dr(t) ? t : new Ge(t, r, n);
|
|
764
|
+
return he(function() {
|
|
765
765
|
var a = i, s = a.operator, l = a.source;
|
|
766
766
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
767
767
|
}), o;
|
|
@@ -773,8 +773,8 @@ var rt = function() {
|
|
|
773
773
|
}
|
|
774
774
|
}, e.prototype.forEach = function(t, r) {
|
|
775
775
|
var n = this;
|
|
776
|
-
return r =
|
|
777
|
-
var a = new
|
|
776
|
+
return r = ot(r), new r(function(i, o) {
|
|
777
|
+
var a = new Ge({
|
|
778
778
|
next: function(s) {
|
|
779
779
|
try {
|
|
780
780
|
t(s);
|
|
@@ -790,15 +790,15 @@ var rt = function() {
|
|
|
790
790
|
}, e.prototype._subscribe = function(t) {
|
|
791
791
|
var r;
|
|
792
792
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
793
|
-
}, e.prototype[
|
|
793
|
+
}, e.prototype[$r] = function() {
|
|
794
794
|
return this;
|
|
795
795
|
}, e.prototype.pipe = function() {
|
|
796
796
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
797
797
|
t[r] = arguments[r];
|
|
798
|
-
return
|
|
798
|
+
return Ur(t)(this);
|
|
799
799
|
}, e.prototype.toPromise = function(t) {
|
|
800
800
|
var r = this;
|
|
801
|
-
return t =
|
|
801
|
+
return t = ot(t), new t(function(n, i) {
|
|
802
802
|
var o;
|
|
803
803
|
r.subscribe(function(a) {
|
|
804
804
|
return o = a;
|
|
@@ -812,40 +812,40 @@ var rt = function() {
|
|
|
812
812
|
return new e(t);
|
|
813
813
|
}, e;
|
|
814
814
|
}();
|
|
815
|
-
function
|
|
815
|
+
function ot(e) {
|
|
816
816
|
var t;
|
|
817
817
|
return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return e &&
|
|
819
|
+
function Gr(e) {
|
|
820
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
return e && e instanceof
|
|
822
|
+
function Dr(e) {
|
|
823
|
+
return e && e instanceof Ot || Gr(e) && Bt(e);
|
|
824
824
|
}
|
|
825
|
-
var
|
|
825
|
+
var Fr = At(function(e) {
|
|
826
826
|
return function() {
|
|
827
827
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
828
828
|
};
|
|
829
|
-
}),
|
|
830
|
-
|
|
829
|
+
}), Lt = function(e) {
|
|
830
|
+
oe(t, e);
|
|
831
831
|
function t() {
|
|
832
832
|
var r = e.call(this) || this;
|
|
833
833
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
834
834
|
}
|
|
835
835
|
return t.prototype.lift = function(r) {
|
|
836
|
-
var n = new
|
|
836
|
+
var n = new at(this, this);
|
|
837
837
|
return n.operator = r, n;
|
|
838
838
|
}, t.prototype._throwIfClosed = function() {
|
|
839
839
|
if (this.closed)
|
|
840
|
-
throw new
|
|
840
|
+
throw new Fr();
|
|
841
841
|
}, t.prototype.next = function(r) {
|
|
842
842
|
var n = this;
|
|
843
|
-
|
|
843
|
+
he(function() {
|
|
844
844
|
var i, o;
|
|
845
845
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
846
846
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
847
847
|
try {
|
|
848
|
-
for (var a =
|
|
848
|
+
for (var a = Ne(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
849
849
|
var l = s.value;
|
|
850
850
|
l.next(r);
|
|
851
851
|
}
|
|
@@ -863,7 +863,7 @@ var Gr = Ht(function(e) {
|
|
|
863
863
|
});
|
|
864
864
|
}, t.prototype.error = function(r) {
|
|
865
865
|
var n = this;
|
|
866
|
-
|
|
866
|
+
he(function() {
|
|
867
867
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
868
868
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
869
869
|
for (var i = n.observers; i.length; )
|
|
@@ -872,7 +872,7 @@ var Gr = Ht(function(e) {
|
|
|
872
872
|
});
|
|
873
873
|
}, t.prototype.complete = function() {
|
|
874
874
|
var r = this;
|
|
875
|
-
|
|
875
|
+
he(function() {
|
|
876
876
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
877
877
|
r.isStopped = !0;
|
|
878
878
|
for (var n = r.observers; n.length; )
|
|
@@ -894,20 +894,20 @@ var Gr = Ht(function(e) {
|
|
|
894
894
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
895
895
|
}, t.prototype._innerSubscribe = function(r) {
|
|
896
896
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
897
|
-
return o || a ? It : (this.currentObservers = null, s.push(r), new
|
|
898
|
-
n.currentObservers = null,
|
|
897
|
+
return o || a ? It : (this.currentObservers = null, s.push(r), new be(function() {
|
|
898
|
+
n.currentObservers = null, Ue(s, r);
|
|
899
899
|
}));
|
|
900
900
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
901
901
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
902
902
|
i ? r.error(o) : a && r.complete();
|
|
903
903
|
}, t.prototype.asObservable = function() {
|
|
904
|
-
var r = new
|
|
904
|
+
var r = new it();
|
|
905
905
|
return r.source = this, r;
|
|
906
906
|
}, t.create = function(r, n) {
|
|
907
|
-
return new
|
|
907
|
+
return new at(r, n);
|
|
908
908
|
}, t;
|
|
909
|
-
}(
|
|
910
|
-
|
|
909
|
+
}(it), at = function(e) {
|
|
910
|
+
oe(t, e);
|
|
911
911
|
function t(r, n) {
|
|
912
912
|
var i = e.call(this) || this;
|
|
913
913
|
return i.destination = r, i.source = n, i;
|
|
@@ -925,15 +925,15 @@ var Gr = Ht(function(e) {
|
|
|
925
925
|
var n, i;
|
|
926
926
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
927
927
|
}, t;
|
|
928
|
-
}(
|
|
928
|
+
}(Lt), Mt = {
|
|
929
929
|
now: function() {
|
|
930
|
-
return (
|
|
930
|
+
return (Mt.delegate || Date).now();
|
|
931
931
|
},
|
|
932
932
|
delegate: void 0
|
|
933
|
-
},
|
|
934
|
-
|
|
933
|
+
}, jr = function(e) {
|
|
934
|
+
oe(t, e);
|
|
935
935
|
function t(r, n, i) {
|
|
936
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
936
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
937
937
|
var o = e.call(this) || this;
|
|
938
938
|
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;
|
|
939
939
|
}
|
|
@@ -953,178 +953,178 @@ var Gr = Ht(function(e) {
|
|
|
953
953
|
u && o.splice(0, u + 1);
|
|
954
954
|
}
|
|
955
955
|
}, t;
|
|
956
|
-
}(
|
|
957
|
-
const
|
|
958
|
-
if (
|
|
959
|
-
const r = new
|
|
960
|
-
|
|
956
|
+
}(Lt);
|
|
957
|
+
const st = [], ut = {}, kr = (e, t = 0) => {
|
|
958
|
+
if (st.indexOf(e) == -1) {
|
|
959
|
+
const r = new jr(t);
|
|
960
|
+
ut[e] = r, st.push(e);
|
|
961
961
|
}
|
|
962
|
-
return
|
|
963
|
-
},
|
|
964
|
-
function
|
|
962
|
+
return ut[e];
|
|
963
|
+
}, G = [];
|
|
964
|
+
function Vr(e, t) {
|
|
965
965
|
return {
|
|
966
|
-
subscribe:
|
|
966
|
+
subscribe: ve(e, t).subscribe
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function ve(e, t = I) {
|
|
970
970
|
let r;
|
|
971
971
|
const n = /* @__PURE__ */ new Set();
|
|
972
972
|
function i(s) {
|
|
973
|
-
if (
|
|
974
|
-
const l = !
|
|
973
|
+
if (Pt(e, s) && (e = s, r)) {
|
|
974
|
+
const l = !G.length;
|
|
975
975
|
for (const u of n)
|
|
976
|
-
u[1](),
|
|
976
|
+
u[1](), G.push(u, e);
|
|
977
977
|
if (l) {
|
|
978
|
-
for (let u = 0; u <
|
|
979
|
-
|
|
980
|
-
|
|
978
|
+
for (let u = 0; u < G.length; u += 2)
|
|
979
|
+
G[u][0](G[u + 1]);
|
|
980
|
+
G.length = 0;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
function o(s) {
|
|
985
985
|
i(s(e));
|
|
986
986
|
}
|
|
987
|
-
function a(s, l =
|
|
987
|
+
function a(s, l = I) {
|
|
988
988
|
const u = [s, l];
|
|
989
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
989
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), s(e), () => {
|
|
990
990
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
return { set: i, update: o, subscribe: a };
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function q(e, t, r) {
|
|
996
996
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
997
997
|
if (!i.every(Boolean))
|
|
998
998
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
999
999
|
const o = t.length < 2;
|
|
1000
|
-
return
|
|
1000
|
+
return Vr(r, (a, s) => {
|
|
1001
1001
|
let l = !1;
|
|
1002
1002
|
const u = [];
|
|
1003
|
-
let h = 0, f =
|
|
1003
|
+
let h = 0, f = I;
|
|
1004
1004
|
const c = () => {
|
|
1005
1005
|
if (h)
|
|
1006
1006
|
return;
|
|
1007
1007
|
f();
|
|
1008
1008
|
const d = t(n ? u[0] : u, a, s);
|
|
1009
|
-
o ? a(d) : f =
|
|
1009
|
+
o ? a(d) : f = Ze(d) ? d : I;
|
|
1010
1010
|
}, p = i.map(
|
|
1011
|
-
(d,
|
|
1011
|
+
(d, y) => Ht(
|
|
1012
1012
|
d,
|
|
1013
|
-
(
|
|
1014
|
-
u[
|
|
1013
|
+
(w) => {
|
|
1014
|
+
u[y] = w, h &= ~(1 << y), l && c();
|
|
1015
1015
|
},
|
|
1016
1016
|
() => {
|
|
1017
|
-
h |= 1 <<
|
|
1017
|
+
h |= 1 << y;
|
|
1018
1018
|
}
|
|
1019
1019
|
)
|
|
1020
1020
|
);
|
|
1021
1021
|
return l = !0, c(), function() {
|
|
1022
|
-
|
|
1022
|
+
re(p), f(), l = !1;
|
|
1023
1023
|
};
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Wr(e) {
|
|
1027
1027
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1028
1028
|
}
|
|
1029
|
-
var
|
|
1030
|
-
return
|
|
1029
|
+
var zr = function(t) {
|
|
1030
|
+
return Xr(t) && !qr(t);
|
|
1031
1031
|
};
|
|
1032
|
-
function
|
|
1032
|
+
function Xr(e) {
|
|
1033
1033
|
return !!e && typeof e == "object";
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function qr(e) {
|
|
1036
1036
|
var t = Object.prototype.toString.call(e);
|
|
1037
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1037
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1040
|
-
function
|
|
1041
|
-
return e.$$typeof ===
|
|
1039
|
+
var Zr = typeof Symbol == "function" && Symbol.for, Yr = Zr ? Symbol.for("react.element") : 60103;
|
|
1040
|
+
function Qr(e) {
|
|
1041
|
+
return e.$$typeof === Yr;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Jr(e) {
|
|
1044
1044
|
return Array.isArray(e) ? [] : {};
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1046
|
+
function ee(e, t) {
|
|
1047
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Jr(e), e, t) : e;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Kr(e, t, r) {
|
|
1050
1050
|
return e.concat(t).map(function(n) {
|
|
1051
|
-
return
|
|
1051
|
+
return ee(n, r);
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function en(e, t) {
|
|
1055
1055
|
if (!t.customMerge)
|
|
1056
|
-
return
|
|
1056
|
+
return k;
|
|
1057
1057
|
var r = t.customMerge(e);
|
|
1058
|
-
return typeof r == "function" ? r :
|
|
1058
|
+
return typeof r == "function" ? r : k;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function tn(e) {
|
|
1061
1061
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1062
1062
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1063
1063
|
}) : [];
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return Object.keys(e).concat(
|
|
1065
|
+
function lt(e) {
|
|
1066
|
+
return Object.keys(e).concat(tn(e));
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Nt(e, t) {
|
|
1069
1069
|
try {
|
|
1070
1070
|
return t in e;
|
|
1071
1071
|
} catch {
|
|
1072
1072
|
return !1;
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return
|
|
1075
|
+
function rn(e, t) {
|
|
1076
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function nn(e, t, r) {
|
|
1079
1079
|
var n = {};
|
|
1080
|
-
return r.isMergeableObject(e) &&
|
|
1081
|
-
n[i] =
|
|
1082
|
-
}),
|
|
1083
|
-
|
|
1080
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1081
|
+
n[i] = ee(e[i], r);
|
|
1082
|
+
}), lt(t).forEach(function(i) {
|
|
1083
|
+
rn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1084
1084
|
}), n;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1086
|
+
function k(e, t, r) {
|
|
1087
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1088
1088
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1089
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1089
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ee(t, r);
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1091
|
+
k.all = function(t, r) {
|
|
1092
1092
|
if (!Array.isArray(t))
|
|
1093
1093
|
throw new Error("first argument should be an array");
|
|
1094
1094
|
return t.reduce(function(n, i) {
|
|
1095
|
-
return
|
|
1095
|
+
return k(n, i, r);
|
|
1096
1096
|
}, {});
|
|
1097
1097
|
};
|
|
1098
|
-
var
|
|
1099
|
-
const
|
|
1100
|
-
var
|
|
1101
|
-
return
|
|
1098
|
+
var on = k, an = on;
|
|
1099
|
+
const sn = /* @__PURE__ */ Wr(an);
|
|
1100
|
+
var De = function(e, t) {
|
|
1101
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1102
1102
|
r.__proto__ = n;
|
|
1103
1103
|
} || function(r, n) {
|
|
1104
1104
|
for (var i in n)
|
|
1105
1105
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1106
|
-
},
|
|
1106
|
+
}, De(e, t);
|
|
1107
1107
|
};
|
|
1108
|
-
function
|
|
1108
|
+
function ye(e, t) {
|
|
1109
1109
|
if (typeof t != "function" && t !== null)
|
|
1110
1110
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1111
|
-
|
|
1111
|
+
De(e, t);
|
|
1112
1112
|
function r() {
|
|
1113
1113
|
this.constructor = e;
|
|
1114
1114
|
}
|
|
1115
1115
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1116
1116
|
}
|
|
1117
|
-
var
|
|
1118
|
-
return
|
|
1117
|
+
var O = function() {
|
|
1118
|
+
return O = Object.assign || function(t) {
|
|
1119
1119
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1120
1120
|
r = arguments[n];
|
|
1121
1121
|
for (var o in r)
|
|
1122
1122
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1123
1123
|
}
|
|
1124
1124
|
return t;
|
|
1125
|
-
},
|
|
1125
|
+
}, O.apply(this, arguments);
|
|
1126
1126
|
};
|
|
1127
|
-
function
|
|
1127
|
+
function un(e, t) {
|
|
1128
1128
|
var r = {};
|
|
1129
1129
|
for (var n in e)
|
|
1130
1130
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1133,43 +1133,43 @@ function an(e, t) {
|
|
|
1133
1133
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1134
1134
|
return r;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Te(e, t, r) {
|
|
1137
1137
|
if (r || arguments.length === 2)
|
|
1138
1138
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1139
1139
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1140
1140
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
var r = t && t.cache ? t.cache :
|
|
1142
|
+
function Pe(e, t) {
|
|
1143
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
|
|
1144
1144
|
return i(e, {
|
|
1145
1145
|
cache: r,
|
|
1146
1146
|
serializer: n
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function ln(e) {
|
|
1150
1150
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var i =
|
|
1152
|
+
function hn(e, t, r, n) {
|
|
1153
|
+
var i = ln(n) ? n : r(n), o = t.get(i);
|
|
1154
1154
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function $t(e, t, r) {
|
|
1157
1157
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1158
1158
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Rt(e, t, r, n, i) {
|
|
1161
1161
|
return r.bind(t, e, n, i);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1164
|
-
var r = e.length === 1 ?
|
|
1165
|
-
return
|
|
1163
|
+
function cn(e, t) {
|
|
1164
|
+
var r = e.length === 1 ? hn : $t;
|
|
1165
|
+
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1167
|
+
function fn(e, t) {
|
|
1168
|
+
return Rt(e, this, $t, t.cache.create(), t.serializer);
|
|
1169
1169
|
}
|
|
1170
|
-
var
|
|
1170
|
+
var pn = function() {
|
|
1171
1171
|
return JSON.stringify(arguments);
|
|
1172
|
-
},
|
|
1172
|
+
}, dn = (
|
|
1173
1173
|
/** @class */
|
|
1174
1174
|
function() {
|
|
1175
1175
|
function e() {
|
|
@@ -1181,71 +1181,71 @@ var cn = function() {
|
|
|
1181
1181
|
this.cache[t] = r;
|
|
1182
1182
|
}, e;
|
|
1183
1183
|
}()
|
|
1184
|
-
),
|
|
1184
|
+
), mn = {
|
|
1185
1185
|
create: function() {
|
|
1186
|
-
return new
|
|
1186
|
+
return new dn();
|
|
1187
1187
|
}
|
|
1188
|
-
},
|
|
1189
|
-
variadic:
|
|
1190
|
-
},
|
|
1191
|
-
return
|
|
1188
|
+
}, He = {
|
|
1189
|
+
variadic: fn
|
|
1190
|
+
}, pe = function() {
|
|
1191
|
+
return pe = Object.assign || function(t) {
|
|
1192
1192
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1193
1193
|
r = arguments[n];
|
|
1194
1194
|
for (var o in r)
|
|
1195
1195
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1196
1196
|
}
|
|
1197
1197
|
return t;
|
|
1198
|
-
},
|
|
1198
|
+
}, pe.apply(this, arguments);
|
|
1199
1199
|
};
|
|
1200
|
-
var
|
|
1200
|
+
var m;
|
|
1201
1201
|
(function(e) {
|
|
1202
1202
|
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";
|
|
1203
|
-
})(
|
|
1203
|
+
})(m || (m = {}));
|
|
1204
1204
|
var x;
|
|
1205
1205
|
(function(e) {
|
|
1206
1206
|
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";
|
|
1207
1207
|
})(x || (x = {}));
|
|
1208
|
-
var
|
|
1208
|
+
var V;
|
|
1209
1209
|
(function(e) {
|
|
1210
1210
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1211
|
-
})(
|
|
1212
|
-
function
|
|
1211
|
+
})(V || (V = {}));
|
|
1212
|
+
function ht(e) {
|
|
1213
1213
|
return e.type === x.literal;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function bn(e) {
|
|
1216
1216
|
return e.type === x.argument;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function Ut(e) {
|
|
1219
1219
|
return e.type === x.number;
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Gt(e) {
|
|
1222
1222
|
return e.type === x.date;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Dt(e) {
|
|
1225
1225
|
return e.type === x.time;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ft(e) {
|
|
1228
1228
|
return e.type === x.select;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function jt(e) {
|
|
1231
1231
|
return e.type === x.plural;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function vn(e) {
|
|
1234
1234
|
return e.type === x.pound;
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function kt(e) {
|
|
1237
1237
|
return e.type === x.tag;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1239
|
+
function Vt(e) {
|
|
1240
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1242
|
+
function Fe(e) {
|
|
1243
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
function
|
|
1245
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
1246
|
+
function gn(e) {
|
|
1247
1247
|
var t = {};
|
|
1248
|
-
return e.replace(
|
|
1248
|
+
return e.replace(yn, function(r) {
|
|
1249
1249
|
var n = r.length;
|
|
1250
1250
|
switch (r[0]) {
|
|
1251
1251
|
case "G":
|
|
@@ -1344,11 +1344,11 @@ var _ = function() {
|
|
|
1344
1344
|
return t;
|
|
1345
1345
|
}, _.apply(this, arguments);
|
|
1346
1346
|
};
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1347
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1348
|
+
function _n(e) {
|
|
1349
1349
|
if (e.length === 0)
|
|
1350
1350
|
throw new Error("Number skeleton cannot be empty");
|
|
1351
|
-
for (var t = e.split(
|
|
1351
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1352
1352
|
return c.length > 0;
|
|
1353
1353
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1354
1354
|
var o = i[n], a = o.split("/");
|
|
@@ -1363,17 +1363,17 @@ function yn(e) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return r;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function En(e) {
|
|
1367
1367
|
return e.replace(/^(.*?)-/, "");
|
|
1368
1368
|
}
|
|
1369
|
-
var
|
|
1370
|
-
function
|
|
1369
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1370
|
+
function ft(e) {
|
|
1371
1371
|
var t = {};
|
|
1372
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1372
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1373
1373
|
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)), "";
|
|
1374
1374
|
}), t;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function qt(e) {
|
|
1377
1377
|
switch (e) {
|
|
1378
1378
|
case "sign-auto":
|
|
1379
1379
|
return {
|
|
@@ -1413,7 +1413,7 @@ function Wt(e) {
|
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function wn(e) {
|
|
1417
1417
|
var t;
|
|
1418
1418
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1419
1419
|
notation: "engineering"
|
|
@@ -1421,14 +1421,14 @@ function En(e) {
|
|
|
1421
1421
|
notation: "scientific"
|
|
1422
1422
|
}, e = e.slice(1)), t) {
|
|
1423
1423
|
var r = e.slice(0, 2);
|
|
1424
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1424
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
1425
1425
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1426
1426
|
t.minimumIntegerDigits = e.length;
|
|
1427
1427
|
}
|
|
1428
1428
|
return t;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var t = {}, r =
|
|
1430
|
+
function pt(e) {
|
|
1431
|
+
var t = {}, r = qt(e);
|
|
1432
1432
|
return r || t;
|
|
1433
1433
|
}
|
|
1434
1434
|
function Tn(e) {
|
|
@@ -1455,7 +1455,7 @@ function Tn(e) {
|
|
|
1455
1455
|
continue;
|
|
1456
1456
|
case "measure-unit":
|
|
1457
1457
|
case "unit":
|
|
1458
|
-
t.style = "unit", t.unit =
|
|
1458
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1459
1459
|
continue;
|
|
1460
1460
|
case "compact-short":
|
|
1461
1461
|
case "K":
|
|
@@ -1467,12 +1467,12 @@ function Tn(e) {
|
|
|
1467
1467
|
continue;
|
|
1468
1468
|
case "scientific":
|
|
1469
1469
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1470
|
-
return _(_({}, l),
|
|
1470
|
+
return _(_({}, l), pt(u));
|
|
1471
1471
|
}, {}));
|
|
1472
1472
|
continue;
|
|
1473
1473
|
case "engineering":
|
|
1474
1474
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1475
|
-
return _(_({}, l),
|
|
1475
|
+
return _(_({}, l), pt(u));
|
|
1476
1476
|
}, {}));
|
|
1477
1477
|
continue;
|
|
1478
1478
|
case "notation-simple":
|
|
@@ -1517,7 +1517,7 @@ function Tn(e) {
|
|
|
1517
1517
|
case "integer-width":
|
|
1518
1518
|
if (i.options.length > 1)
|
|
1519
1519
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1520
|
-
i.options[0].replace(
|
|
1520
|
+
i.options[0].replace(Sn, function(l, u, h, f, c, p) {
|
|
1521
1521
|
if (u)
|
|
1522
1522
|
t.minimumIntegerDigits = h.length;
|
|
1523
1523
|
else {
|
|
@@ -1530,32 +1530,32 @@ function Tn(e) {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
continue;
|
|
1532
1532
|
}
|
|
1533
|
-
if (
|
|
1533
|
+
if (Xt.test(i.stem)) {
|
|
1534
1534
|
t.minimumIntegerDigits = i.stem.length;
|
|
1535
1535
|
continue;
|
|
1536
1536
|
}
|
|
1537
|
-
if (
|
|
1537
|
+
if (ct.test(i.stem)) {
|
|
1538
1538
|
if (i.options.length > 1)
|
|
1539
1539
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1540
|
-
i.stem.replace(
|
|
1540
|
+
i.stem.replace(ct, function(l, u, h, f, c, p) {
|
|
1541
1541
|
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), "";
|
|
1542
1542
|
});
|
|
1543
1543
|
var o = i.options[0];
|
|
1544
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1544
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ft(o)));
|
|
1545
1545
|
continue;
|
|
1546
1546
|
}
|
|
1547
|
-
if (
|
|
1548
|
-
t = _(_({}, t),
|
|
1547
|
+
if (zt.test(i.stem)) {
|
|
1548
|
+
t = _(_({}, t), ft(i.stem));
|
|
1549
1549
|
continue;
|
|
1550
1550
|
}
|
|
1551
|
-
var a =
|
|
1551
|
+
var a = qt(i.stem);
|
|
1552
1552
|
a && (t = _(_({}, t), a));
|
|
1553
|
-
var s =
|
|
1553
|
+
var s = wn(i.stem);
|
|
1554
1554
|
s && (t = _(_({}, t), s));
|
|
1555
1555
|
}
|
|
1556
1556
|
return t;
|
|
1557
1557
|
}
|
|
1558
|
-
var
|
|
1558
|
+
var ue = {
|
|
1559
1559
|
"001": [
|
|
1560
1560
|
"H",
|
|
1561
1561
|
"h"
|
|
@@ -2970,13 +2970,13 @@ var se = {
|
|
|
2970
2970
|
"h"
|
|
2971
2971
|
]
|
|
2972
2972
|
};
|
|
2973
|
-
function
|
|
2973
|
+
function Pn(e, t) {
|
|
2974
2974
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2975
2975
|
var i = e.charAt(n);
|
|
2976
2976
|
if (i === "j") {
|
|
2977
2977
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2978
2978
|
o++, n++;
|
|
2979
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2979
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Hn(t);
|
|
2980
2980
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2981
2981
|
r += l;
|
|
2982
2982
|
for (; a-- > 0; )
|
|
@@ -2986,7 +2986,7 @@ function Sn(e, t) {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
return r;
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function Hn(e) {
|
|
2990
2990
|
var t = e.hourCycle;
|
|
2991
2991
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2992
2992
|
e.hourCycles && // @ts-ignore
|
|
@@ -3005,23 +3005,23 @@ function wn(e) {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
var r = e.language, n;
|
|
3007
3007
|
r !== "root" && (n = e.maximize().region);
|
|
3008
|
-
var i =
|
|
3008
|
+
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3009
3009
|
return i[0];
|
|
3010
3010
|
}
|
|
3011
|
-
var
|
|
3012
|
-
function
|
|
3011
|
+
var Ce, Cn = new RegExp("^".concat(Wt.source, "*")), An = new RegExp("".concat(Wt.source, "*$"));
|
|
3012
|
+
function b(e, t) {
|
|
3013
3013
|
return { start: e, end: t };
|
|
3014
3014
|
}
|
|
3015
|
-
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1),
|
|
3015
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bn = !!String.fromCodePoint, On = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
3016
3016
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3017
|
-
},
|
|
3017
|
+
}, je = !0;
|
|
3018
3018
|
try {
|
|
3019
|
-
var
|
|
3020
|
-
|
|
3019
|
+
var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3020
|
+
je = ((Ce = Un.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
3021
3021
|
} catch {
|
|
3022
|
-
|
|
3022
|
+
je = !1;
|
|
3023
3023
|
}
|
|
3024
|
-
var
|
|
3024
|
+
var dt = In ? (
|
|
3025
3025
|
// Native
|
|
3026
3026
|
function(t, r, n) {
|
|
3027
3027
|
return t.startsWith(r, n);
|
|
@@ -3031,7 +3031,7 @@ var ft = In ? (
|
|
|
3031
3031
|
function(t, r, n) {
|
|
3032
3032
|
return t.slice(n, n + r.length) === r;
|
|
3033
3033
|
}
|
|
3034
|
-
),
|
|
3034
|
+
), ke = Bn ? String.fromCodePoint : (
|
|
3035
3035
|
// IE11
|
|
3036
3036
|
function() {
|
|
3037
3037
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3043,9 +3043,9 @@ var ft = In ? (
|
|
|
3043
3043
|
}
|
|
3044
3044
|
return n;
|
|
3045
3045
|
}
|
|
3046
|
-
),
|
|
3046
|
+
), mt = (
|
|
3047
3047
|
// native
|
|
3048
|
-
|
|
3048
|
+
On ? Object.fromEntries : (
|
|
3049
3049
|
// Ponyfill
|
|
3050
3050
|
function(t) {
|
|
3051
3051
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3055,7 +3055,7 @@ var ft = In ? (
|
|
|
3055
3055
|
return r;
|
|
3056
3056
|
}
|
|
3057
3057
|
)
|
|
3058
|
-
),
|
|
3058
|
+
), Zt = Ln ? (
|
|
3059
3059
|
// Native
|
|
3060
3060
|
function(t, r) {
|
|
3061
3061
|
return t.codePointAt(r);
|
|
@@ -3069,7 +3069,7 @@ var ft = In ? (
|
|
|
3069
3069
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3070
3070
|
}
|
|
3071
3071
|
}
|
|
3072
|
-
),
|
|
3072
|
+
), Gn = Mn ? (
|
|
3073
3073
|
// Native
|
|
3074
3074
|
function(t) {
|
|
3075
3075
|
return t.trimStart();
|
|
@@ -3077,9 +3077,9 @@ var ft = In ? (
|
|
|
3077
3077
|
) : (
|
|
3078
3078
|
// Ponyfill
|
|
3079
3079
|
function(t) {
|
|
3080
|
-
return t.replace(
|
|
3080
|
+
return t.replace(Cn, "");
|
|
3081
3081
|
}
|
|
3082
|
-
),
|
|
3082
|
+
), Dn = Nn ? (
|
|
3083
3083
|
// Native
|
|
3084
3084
|
function(t) {
|
|
3085
3085
|
return t.trimEnd();
|
|
@@ -3087,32 +3087,32 @@ var ft = In ? (
|
|
|
3087
3087
|
) : (
|
|
3088
3088
|
// Ponyfill
|
|
3089
3089
|
function(t) {
|
|
3090
|
-
return t.replace(
|
|
3090
|
+
return t.replace(An, "");
|
|
3091
3091
|
}
|
|
3092
3092
|
);
|
|
3093
|
-
function
|
|
3093
|
+
function Yt(e, t) {
|
|
3094
3094
|
return new RegExp(e, t);
|
|
3095
3095
|
}
|
|
3096
|
-
var
|
|
3097
|
-
if (
|
|
3098
|
-
var
|
|
3099
|
-
|
|
3096
|
+
var Ve;
|
|
3097
|
+
if (je) {
|
|
3098
|
+
var bt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3099
|
+
Ve = function(t, r) {
|
|
3100
3100
|
var n;
|
|
3101
|
-
|
|
3102
|
-
var i =
|
|
3101
|
+
bt.lastIndex = r;
|
|
3102
|
+
var i = bt.exec(t);
|
|
3103
3103
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3104
3104
|
};
|
|
3105
3105
|
} else
|
|
3106
|
-
|
|
3106
|
+
Ve = function(t, r) {
|
|
3107
3107
|
for (var n = []; ; ) {
|
|
3108
|
-
var i =
|
|
3109
|
-
if (i === void 0 ||
|
|
3108
|
+
var i = Zt(t, r);
|
|
3109
|
+
if (i === void 0 || Qt(i) || Vn(i))
|
|
3110
3110
|
break;
|
|
3111
3111
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3112
3112
|
}
|
|
3113
|
-
return
|
|
3113
|
+
return ke.apply(void 0, n);
|
|
3114
3114
|
};
|
|
3115
|
-
var
|
|
3115
|
+
var Fn = (
|
|
3116
3116
|
/** @class */
|
|
3117
3117
|
function() {
|
|
3118
3118
|
function e(t, r) {
|
|
@@ -3137,13 +3137,13 @@ var Gn = (
|
|
|
3137
3137
|
var s = this.clonePosition();
|
|
3138
3138
|
this.bump(), i.push({
|
|
3139
3139
|
type: x.pound,
|
|
3140
|
-
location:
|
|
3140
|
+
location: b(s, this.clonePosition())
|
|
3141
3141
|
});
|
|
3142
3142
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3143
3143
|
if (n)
|
|
3144
3144
|
break;
|
|
3145
|
-
return this.error(
|
|
3146
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3145
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3146
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3147
3147
|
var a = this.parseTag(t, r);
|
|
3148
3148
|
if (a.err)
|
|
3149
3149
|
return a;
|
|
@@ -3166,7 +3166,7 @@ var Gn = (
|
|
|
3166
3166
|
val: {
|
|
3167
3167
|
type: x.literal,
|
|
3168
3168
|
value: "<".concat(i, "/>"),
|
|
3169
|
-
location:
|
|
3169
|
+
location: b(n, this.clonePosition())
|
|
3170
3170
|
},
|
|
3171
3171
|
err: null
|
|
3172
3172
|
};
|
|
@@ -3176,25 +3176,25 @@ var Gn = (
|
|
|
3176
3176
|
return o;
|
|
3177
3177
|
var a = o.val, s = this.clonePosition();
|
|
3178
3178
|
if (this.bumpIf("</")) {
|
|
3179
|
-
if (this.isEOF() || !
|
|
3180
|
-
return this.error(
|
|
3179
|
+
if (this.isEOF() || !We(this.char()))
|
|
3180
|
+
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
3181
3181
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3182
|
-
return i !== u ? this.error(
|
|
3182
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3183
3183
|
val: {
|
|
3184
3184
|
type: x.tag,
|
|
3185
3185
|
value: i,
|
|
3186
3186
|
children: a,
|
|
3187
|
-
location:
|
|
3187
|
+
location: b(n, this.clonePosition())
|
|
3188
3188
|
},
|
|
3189
3189
|
err: null
|
|
3190
|
-
} : this.error(
|
|
3190
|
+
} : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
|
|
3191
3191
|
} else
|
|
3192
|
-
return this.error(
|
|
3192
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3193
3193
|
} else
|
|
3194
|
-
return this.error(
|
|
3194
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3195
3195
|
}, e.prototype.parseTagName = function() {
|
|
3196
3196
|
var t = this.offset();
|
|
3197
|
-
for (this.bump(); !this.isEOF() &&
|
|
3197
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
3198
3198
|
this.bump();
|
|
3199
3199
|
return this.message.slice(t, this.offset());
|
|
3200
3200
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3216,14 +3216,14 @@ var Gn = (
|
|
|
3216
3216
|
}
|
|
3217
3217
|
break;
|
|
3218
3218
|
}
|
|
3219
|
-
var l =
|
|
3219
|
+
var l = b(n, this.clonePosition());
|
|
3220
3220
|
return {
|
|
3221
3221
|
val: { type: x.literal, value: i, location: l },
|
|
3222
3222
|
err: null
|
|
3223
3223
|
};
|
|
3224
3224
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3225
3225
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3226
|
-
!
|
|
3226
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3227
3227
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3228
3228
|
if (this.isEOF() || this.char() !== 39)
|
|
3229
3229
|
return null;
|
|
@@ -3257,23 +3257,23 @@ var Gn = (
|
|
|
3257
3257
|
r.push(n);
|
|
3258
3258
|
this.bump();
|
|
3259
3259
|
}
|
|
3260
|
-
return
|
|
3260
|
+
return ke.apply(void 0, r);
|
|
3261
3261
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3262
3262
|
if (this.isEOF())
|
|
3263
3263
|
return null;
|
|
3264
3264
|
var n = this.char();
|
|
3265
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3265
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3266
3266
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3267
3267
|
var n = this.clonePosition();
|
|
3268
3268
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3269
|
-
return this.error(
|
|
3269
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3270
3270
|
if (this.char() === 125)
|
|
3271
|
-
return this.bump(), this.error(
|
|
3271
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3272
3272
|
var i = this.parseIdentifierIfPossible().value;
|
|
3273
3273
|
if (!i)
|
|
3274
|
-
return this.error(
|
|
3274
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3275
3275
|
if (this.bumpSpace(), this.isEOF())
|
|
3276
|
-
return this.error(
|
|
3276
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3277
3277
|
switch (this.char()) {
|
|
3278
3278
|
case 125:
|
|
3279
3279
|
return this.bump(), {
|
|
@@ -3281,25 +3281,25 @@ var Gn = (
|
|
|
3281
3281
|
type: x.argument,
|
|
3282
3282
|
// value does not include the opening and closing braces.
|
|
3283
3283
|
value: i,
|
|
3284
|
-
location:
|
|
3284
|
+
location: b(n, this.clonePosition())
|
|
3285
3285
|
},
|
|
3286
3286
|
err: null
|
|
3287
3287
|
};
|
|
3288
3288
|
case 44:
|
|
3289
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3289
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3290
3290
|
default:
|
|
3291
|
-
return this.error(
|
|
3291
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3292
3292
|
}
|
|
3293
3293
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3294
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3294
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3295
3295
|
this.bumpTo(i);
|
|
3296
|
-
var o = this.clonePosition(), a =
|
|
3296
|
+
var o = this.clonePosition(), a = b(t, o);
|
|
3297
3297
|
return { value: n, location: a };
|
|
3298
3298
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3299
3299
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3300
3300
|
switch (s) {
|
|
3301
3301
|
case "":
|
|
3302
|
-
return this.error(
|
|
3302
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
3303
3303
|
case "number":
|
|
3304
3304
|
case "date":
|
|
3305
3305
|
case "time": {
|
|
@@ -3310,37 +3310,37 @@ var Gn = (
|
|
|
3310
3310
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3311
3311
|
if (f.err)
|
|
3312
3312
|
return f;
|
|
3313
|
-
var c =
|
|
3313
|
+
var c = Dn(f.val);
|
|
3314
3314
|
if (c.length === 0)
|
|
3315
|
-
return this.error(
|
|
3316
|
-
var p =
|
|
3315
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3316
|
+
var p = b(h, this.clonePosition());
|
|
3317
3317
|
u = { style: c, styleLocation: p };
|
|
3318
3318
|
}
|
|
3319
3319
|
var d = this.tryParseArgumentClose(i);
|
|
3320
3320
|
if (d.err)
|
|
3321
3321
|
return d;
|
|
3322
|
-
var
|
|
3323
|
-
if (u &&
|
|
3324
|
-
var
|
|
3322
|
+
var y = b(i, this.clonePosition());
|
|
3323
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3324
|
+
var w = Gn(u.style.slice(2));
|
|
3325
3325
|
if (s === "number") {
|
|
3326
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3326
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3327
3327
|
return f.err ? f : {
|
|
3328
|
-
val: { type: x.number, value: n, location:
|
|
3328
|
+
val: { type: x.number, value: n, location: y, style: f.val },
|
|
3329
3329
|
err: null
|
|
3330
3330
|
};
|
|
3331
3331
|
} else {
|
|
3332
|
-
if (
|
|
3333
|
-
return this.error(
|
|
3334
|
-
var H =
|
|
3335
|
-
this.locale && (H =
|
|
3332
|
+
if (w.length === 0)
|
|
3333
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
3334
|
+
var H = w;
|
|
3335
|
+
this.locale && (H = Pn(w, this.locale));
|
|
3336
3336
|
var c = {
|
|
3337
|
-
type:
|
|
3337
|
+
type: V.dateTime,
|
|
3338
3338
|
pattern: H,
|
|
3339
3339
|
location: u.styleLocation,
|
|
3340
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3340
|
+
parsedOptions: this.shouldParseSkeletons ? gn(H) : {}
|
|
3341
3341
|
}, E = s === "date" ? x.date : x.time;
|
|
3342
3342
|
return {
|
|
3343
|
-
val: { type: E, value: n, location:
|
|
3343
|
+
val: { type: E, value: n, location: y, style: c },
|
|
3344
3344
|
err: null
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
@@ -3349,7 +3349,7 @@ var Gn = (
|
|
|
3349
3349
|
val: {
|
|
3350
3350
|
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3351
3351
|
value: n,
|
|
3352
|
-
location:
|
|
3352
|
+
location: y,
|
|
3353
3353
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3354
3354
|
},
|
|
3355
3355
|
err: null
|
|
@@ -3358,52 +3358,52 @@ var Gn = (
|
|
|
3358
3358
|
case "plural":
|
|
3359
3359
|
case "selectordinal":
|
|
3360
3360
|
case "select": {
|
|
3361
|
-
var
|
|
3361
|
+
var g = this.clonePosition();
|
|
3362
3362
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3363
|
-
return this.error(
|
|
3363
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(g, pe({}, g)));
|
|
3364
3364
|
this.bumpSpace();
|
|
3365
|
-
var
|
|
3366
|
-
if (s !== "select" &&
|
|
3365
|
+
var T = this.parseIdentifierIfPossible(), L = 0;
|
|
3366
|
+
if (s !== "select" && T.value === "offset") {
|
|
3367
3367
|
if (!this.bumpIf(":"))
|
|
3368
|
-
return this.error(
|
|
3368
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3369
3369
|
this.bumpSpace();
|
|
3370
|
-
var f = this.tryParseDecimalInteger(
|
|
3370
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3371
3371
|
if (f.err)
|
|
3372
3372
|
return f;
|
|
3373
|
-
this.bumpSpace(),
|
|
3373
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), L = f.val;
|
|
3374
3374
|
}
|
|
3375
|
-
var
|
|
3376
|
-
if (
|
|
3377
|
-
return
|
|
3375
|
+
var v = this.tryParsePluralOrSelectOptions(t, s, r, T);
|
|
3376
|
+
if (v.err)
|
|
3377
|
+
return v;
|
|
3378
3378
|
var d = this.tryParseArgumentClose(i);
|
|
3379
3379
|
if (d.err)
|
|
3380
3380
|
return d;
|
|
3381
|
-
var
|
|
3381
|
+
var M = b(i, this.clonePosition());
|
|
3382
3382
|
return s === "select" ? {
|
|
3383
3383
|
val: {
|
|
3384
3384
|
type: x.select,
|
|
3385
3385
|
value: n,
|
|
3386
|
-
options:
|
|
3387
|
-
location:
|
|
3386
|
+
options: mt(v.val),
|
|
3387
|
+
location: M
|
|
3388
3388
|
},
|
|
3389
3389
|
err: null
|
|
3390
3390
|
} : {
|
|
3391
3391
|
val: {
|
|
3392
3392
|
type: x.plural,
|
|
3393
3393
|
value: n,
|
|
3394
|
-
options:
|
|
3395
|
-
offset:
|
|
3394
|
+
options: mt(v.val),
|
|
3395
|
+
offset: L,
|
|
3396
3396
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3397
|
-
location:
|
|
3397
|
+
location: M
|
|
3398
3398
|
},
|
|
3399
3399
|
err: null
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
3402
|
default:
|
|
3403
|
-
return this.error(
|
|
3403
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
3404
3404
|
}
|
|
3405
3405
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3406
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3406
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3407
3407
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3408
3408
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3409
3409
|
var n = this.char();
|
|
@@ -3412,7 +3412,7 @@ var Gn = (
|
|
|
3412
3412
|
this.bump();
|
|
3413
3413
|
var i = this.clonePosition();
|
|
3414
3414
|
if (!this.bumpUntil("'"))
|
|
3415
|
-
return this.error(
|
|
3415
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3416
3416
|
this.bump();
|
|
3417
3417
|
break;
|
|
3418
3418
|
}
|
|
@@ -3442,13 +3442,13 @@ var Gn = (
|
|
|
3442
3442
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3443
3443
|
var n = [];
|
|
3444
3444
|
try {
|
|
3445
|
-
n =
|
|
3445
|
+
n = _n(t);
|
|
3446
3446
|
} catch {
|
|
3447
|
-
return this.error(
|
|
3447
|
+
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3448
3448
|
}
|
|
3449
3449
|
return {
|
|
3450
3450
|
val: {
|
|
3451
|
-
type:
|
|
3451
|
+
type: V.number,
|
|
3452
3452
|
tokens: n,
|
|
3453
3453
|
location: r,
|
|
3454
3454
|
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
@@ -3460,34 +3460,34 @@ var Gn = (
|
|
|
3460
3460
|
if (u.length === 0) {
|
|
3461
3461
|
var f = this.clonePosition();
|
|
3462
3462
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3463
|
-
var c = this.tryParseDecimalInteger(
|
|
3463
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3464
3464
|
if (c.err)
|
|
3465
3465
|
return c;
|
|
3466
|
-
h =
|
|
3466
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3467
3467
|
} else
|
|
3468
3468
|
break;
|
|
3469
3469
|
}
|
|
3470
3470
|
if (l.has(u))
|
|
3471
|
-
return this.error(r === "select" ?
|
|
3471
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3472
3472
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3473
3473
|
var p = this.clonePosition();
|
|
3474
3474
|
if (!this.bumpIf("{"))
|
|
3475
|
-
return this.error(r === "select" ?
|
|
3475
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3476
3476
|
var d = this.parseMessage(t + 1, r, n);
|
|
3477
3477
|
if (d.err)
|
|
3478
3478
|
return d;
|
|
3479
|
-
var
|
|
3480
|
-
if (
|
|
3481
|
-
return
|
|
3479
|
+
var y = this.tryParseArgumentClose(p);
|
|
3480
|
+
if (y.err)
|
|
3481
|
+
return y;
|
|
3482
3482
|
s.push([
|
|
3483
3483
|
u,
|
|
3484
3484
|
{
|
|
3485
3485
|
value: d.val,
|
|
3486
|
-
location:
|
|
3486
|
+
location: b(p, this.clonePosition())
|
|
3487
3487
|
}
|
|
3488
3488
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3489
3489
|
}
|
|
3490
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3490
|
+
return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3491
3491
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3492
3492
|
var n = 1, i = this.clonePosition();
|
|
3493
3493
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3498,8 +3498,8 @@ var Gn = (
|
|
|
3498
3498
|
else
|
|
3499
3499
|
break;
|
|
3500
3500
|
}
|
|
3501
|
-
var l =
|
|
3502
|
-
return o ? (a *= n,
|
|
3501
|
+
var l = b(i, this.clonePosition());
|
|
3502
|
+
return o ? (a *= n, Rn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3503
3503
|
}, e.prototype.offset = function() {
|
|
3504
3504
|
return this.position.offset;
|
|
3505
3505
|
}, e.prototype.isEOF = function() {
|
|
@@ -3514,7 +3514,7 @@ var Gn = (
|
|
|
3514
3514
|
var t = this.position.offset;
|
|
3515
3515
|
if (t >= this.message.length)
|
|
3516
3516
|
throw Error("out of bound");
|
|
3517
|
-
var r =
|
|
3517
|
+
var r = Zt(this.message, t);
|
|
3518
3518
|
if (r === void 0)
|
|
3519
3519
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3520
3520
|
return r;
|
|
@@ -3533,7 +3533,7 @@ var Gn = (
|
|
|
3533
3533
|
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);
|
|
3534
3534
|
}
|
|
3535
3535
|
}, e.prototype.bumpIf = function(t) {
|
|
3536
|
-
if (
|
|
3536
|
+
if (dt(this.message, t, this.offset())) {
|
|
3537
3537
|
for (var r = 0; r < t.length; r++)
|
|
3538
3538
|
this.bump();
|
|
3539
3539
|
return !0;
|
|
@@ -3555,7 +3555,7 @@ var Gn = (
|
|
|
3555
3555
|
break;
|
|
3556
3556
|
}
|
|
3557
3557
|
}, e.prototype.bumpSpace = function() {
|
|
3558
|
-
for (; !this.isEOF() &&
|
|
3558
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3559
3559
|
this.bump();
|
|
3560
3560
|
}, e.prototype.peek = function() {
|
|
3561
3561
|
if (this.isEOF())
|
|
@@ -3565,47 +3565,47 @@ var Gn = (
|
|
|
3565
3565
|
}, e;
|
|
3566
3566
|
}()
|
|
3567
3567
|
);
|
|
3568
|
-
function
|
|
3568
|
+
function We(e) {
|
|
3569
3569
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3571
|
+
function jn(e) {
|
|
3572
|
+
return We(e) || e === 47;
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3574
|
+
function kn(e) {
|
|
3575
3575
|
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;
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function Qt(e) {
|
|
3578
3578
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function Vn(e) {
|
|
3581
3581
|
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;
|
|
3582
3582
|
}
|
|
3583
3583
|
function ze(e) {
|
|
3584
3584
|
e.forEach(function(t) {
|
|
3585
|
-
if (delete t.location,
|
|
3585
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3586
3586
|
for (var r in t.options)
|
|
3587
3587
|
delete t.options[r].location, ze(t.options[r].value);
|
|
3588
3588
|
else
|
|
3589
|
-
|
|
3589
|
+
Ut(t) && Vt(t.style) || (Gt(t) || Dt(t)) && Fe(t.style) ? delete t.style.location : kt(t) && ze(t.children);
|
|
3590
3590
|
});
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3593
|
-
t === void 0 && (t = {}), t =
|
|
3594
|
-
var r = new
|
|
3592
|
+
function Wn(e, t) {
|
|
3593
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3594
|
+
var r = new Fn(e, t).parse();
|
|
3595
3595
|
if (r.err) {
|
|
3596
|
-
var n = SyntaxError(
|
|
3596
|
+
var n = SyntaxError(m[r.err.kind]);
|
|
3597
3597
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3598
3598
|
}
|
|
3599
3599
|
return t?.captureLocation || ze(r.val), r.val;
|
|
3600
3600
|
}
|
|
3601
|
-
var
|
|
3601
|
+
var W;
|
|
3602
3602
|
(function(e) {
|
|
3603
3603
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3604
|
-
})(
|
|
3604
|
+
})(W || (W = {}));
|
|
3605
3605
|
var ge = (
|
|
3606
3606
|
/** @class */
|
|
3607
3607
|
function(e) {
|
|
3608
|
-
|
|
3608
|
+
ye(t, e);
|
|
3609
3609
|
function t(r, n, i) {
|
|
3610
3610
|
var o = e.call(this, r) || this;
|
|
3611
3611
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3614,155 +3614,155 @@ var ge = (
|
|
|
3614
3614
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3615
3615
|
}, t;
|
|
3616
3616
|
}(Error)
|
|
3617
|
-
),
|
|
3617
|
+
), vt = (
|
|
3618
3618
|
/** @class */
|
|
3619
3619
|
function(e) {
|
|
3620
|
-
|
|
3620
|
+
ye(t, e);
|
|
3621
3621
|
function t(r, n, i, o) {
|
|
3622
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3622
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3623
3623
|
}
|
|
3624
3624
|
return t;
|
|
3625
3625
|
}(ge)
|
|
3626
|
-
),
|
|
3626
|
+
), zn = (
|
|
3627
3627
|
/** @class */
|
|
3628
3628
|
function(e) {
|
|
3629
|
-
|
|
3629
|
+
ye(t, e);
|
|
3630
3630
|
function t(r, n, i) {
|
|
3631
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3631
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3632
3632
|
}
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}(ge)
|
|
3635
|
-
),
|
|
3635
|
+
), Xn = (
|
|
3636
3636
|
/** @class */
|
|
3637
3637
|
function(e) {
|
|
3638
|
-
|
|
3638
|
+
ye(t, e);
|
|
3639
3639
|
function t(r, n) {
|
|
3640
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3640
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3641
3641
|
}
|
|
3642
3642
|
return t;
|
|
3643
3643
|
}(ge)
|
|
3644
|
-
),
|
|
3644
|
+
), S;
|
|
3645
3645
|
(function(e) {
|
|
3646
3646
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3647
|
-
})(
|
|
3648
|
-
function
|
|
3647
|
+
})(S || (S = {}));
|
|
3648
|
+
function qn(e) {
|
|
3649
3649
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3650
3650
|
var n = t[t.length - 1];
|
|
3651
|
-
return !n || n.type !==
|
|
3651
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3652
3652
|
}, []);
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function Zn(e) {
|
|
3655
3655
|
return typeof e == "function";
|
|
3656
3656
|
}
|
|
3657
|
-
function
|
|
3658
|
-
if (e.length === 1 &&
|
|
3657
|
+
function ce(e, t, r, n, i, o, a) {
|
|
3658
|
+
if (e.length === 1 && ht(e[0]))
|
|
3659
3659
|
return [
|
|
3660
3660
|
{
|
|
3661
|
-
type:
|
|
3661
|
+
type: S.literal,
|
|
3662
3662
|
value: e[0].value
|
|
3663
3663
|
}
|
|
3664
3664
|
];
|
|
3665
3665
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3666
3666
|
var h = u[l];
|
|
3667
|
-
if (
|
|
3667
|
+
if (ht(h)) {
|
|
3668
3668
|
s.push({
|
|
3669
|
-
type:
|
|
3669
|
+
type: S.literal,
|
|
3670
3670
|
value: h.value
|
|
3671
3671
|
});
|
|
3672
3672
|
continue;
|
|
3673
3673
|
}
|
|
3674
|
-
if (
|
|
3674
|
+
if (vn(h)) {
|
|
3675
3675
|
typeof o == "number" && s.push({
|
|
3676
|
-
type:
|
|
3676
|
+
type: S.literal,
|
|
3677
3677
|
value: r.getNumberFormat(t).format(o)
|
|
3678
3678
|
});
|
|
3679
3679
|
continue;
|
|
3680
3680
|
}
|
|
3681
3681
|
var f = h.value;
|
|
3682
3682
|
if (!(i && f in i))
|
|
3683
|
-
throw new
|
|
3683
|
+
throw new Xn(f, a);
|
|
3684
3684
|
var c = i[f];
|
|
3685
|
-
if (
|
|
3685
|
+
if (bn(h)) {
|
|
3686
3686
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3687
|
-
type: typeof c == "string" ?
|
|
3687
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
3688
3688
|
value: c
|
|
3689
3689
|
});
|
|
3690
3690
|
continue;
|
|
3691
3691
|
}
|
|
3692
|
-
if (
|
|
3693
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3692
|
+
if (Gt(h)) {
|
|
3693
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3694
3694
|
s.push({
|
|
3695
|
-
type:
|
|
3695
|
+
type: S.literal,
|
|
3696
3696
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3697
3697
|
});
|
|
3698
3698
|
continue;
|
|
3699
3699
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3700
|
+
if (Dt(h)) {
|
|
3701
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3702
3702
|
s.push({
|
|
3703
|
-
type:
|
|
3703
|
+
type: S.literal,
|
|
3704
3704
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3705
3705
|
});
|
|
3706
3706
|
continue;
|
|
3707
3707
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3708
|
+
if (Ut(h)) {
|
|
3709
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Vt(h.style) ? h.style.parsedOptions : void 0;
|
|
3710
3710
|
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3711
|
-
type:
|
|
3711
|
+
type: S.literal,
|
|
3712
3712
|
value: r.getNumberFormat(t, p).format(c)
|
|
3713
3713
|
});
|
|
3714
3714
|
continue;
|
|
3715
3715
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var d = h.children,
|
|
3718
|
-
if (!
|
|
3719
|
-
throw new
|
|
3720
|
-
var H =
|
|
3721
|
-
return
|
|
3716
|
+
if (kt(h)) {
|
|
3717
|
+
var d = h.children, y = h.value, w = i[y];
|
|
3718
|
+
if (!Zn(w))
|
|
3719
|
+
throw new zn(y, "function", a);
|
|
3720
|
+
var H = ce(d, t, r, n, i, o), E = w(H.map(function(L) {
|
|
3721
|
+
return L.value;
|
|
3722
3722
|
}));
|
|
3723
|
-
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(
|
|
3723
|
+
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(L) {
|
|
3724
3724
|
return {
|
|
3725
|
-
type: typeof
|
|
3726
|
-
value:
|
|
3725
|
+
type: typeof L == "string" ? S.literal : S.object,
|
|
3726
|
+
value: L
|
|
3727
3727
|
};
|
|
3728
3728
|
}));
|
|
3729
3729
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
s.push.apply(s,
|
|
3730
|
+
if (Ft(h)) {
|
|
3731
|
+
var g = h.options[c] || h.options.other;
|
|
3732
|
+
if (!g)
|
|
3733
|
+
throw new vt(h.value, c, Object.keys(h.options), a);
|
|
3734
|
+
s.push.apply(s, ce(g.value, t, r, n, i));
|
|
3735
3735
|
continue;
|
|
3736
3736
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var
|
|
3739
|
-
if (!
|
|
3737
|
+
if (jt(h)) {
|
|
3738
|
+
var g = h.options["=".concat(c)];
|
|
3739
|
+
if (!g) {
|
|
3740
3740
|
if (!Intl.PluralRules)
|
|
3741
3741
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3742
3742
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3743
|
-
`,
|
|
3744
|
-
var
|
|
3745
|
-
|
|
3743
|
+
`, W.MISSING_INTL_API, a);
|
|
3744
|
+
var T = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3745
|
+
g = h.options[T] || h.options.other;
|
|
3746
3746
|
}
|
|
3747
|
-
if (!
|
|
3748
|
-
throw new
|
|
3749
|
-
s.push.apply(s,
|
|
3747
|
+
if (!g)
|
|
3748
|
+
throw new vt(h.value, c, Object.keys(h.options), a);
|
|
3749
|
+
s.push.apply(s, ce(g.value, t, r, n, i, c - (h.offset || 0)));
|
|
3750
3750
|
continue;
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
3753
|
-
return
|
|
3753
|
+
return qn(s);
|
|
3754
3754
|
}
|
|
3755
|
-
function
|
|
3756
|
-
return t ?
|
|
3757
|
-
return r[n] =
|
|
3755
|
+
function Yn(e, t) {
|
|
3756
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3757
|
+
return r[n] = O(O({}, e[n]), t[n] || {}), r;
|
|
3758
3758
|
}, {})) : e;
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function Qn(e, t) {
|
|
3761
3761
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3762
|
-
return r[n] =
|
|
3763
|
-
},
|
|
3762
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3763
|
+
}, O({}, e)) : e;
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3765
|
+
function Ae(e) {
|
|
3766
3766
|
return {
|
|
3767
3767
|
create: function() {
|
|
3768
3768
|
return {
|
|
@@ -3776,39 +3776,39 @@ function Ie(e) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
};
|
|
3778
3778
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function Jn(e) {
|
|
3780
3780
|
return e === void 0 && (e = {
|
|
3781
3781
|
number: {},
|
|
3782
3782
|
dateTime: {},
|
|
3783
3783
|
pluralRules: {}
|
|
3784
3784
|
}), {
|
|
3785
|
-
getNumberFormat:
|
|
3785
|
+
getNumberFormat: Pe(function() {
|
|
3786
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3787
3787
|
r[n] = arguments[n];
|
|
3788
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3788
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3789
3789
|
}, {
|
|
3790
|
-
cache:
|
|
3791
|
-
strategy:
|
|
3790
|
+
cache: Ae(e.number),
|
|
3791
|
+
strategy: He.variadic
|
|
3792
3792
|
}),
|
|
3793
|
-
getDateTimeFormat:
|
|
3793
|
+
getDateTimeFormat: Pe(function() {
|
|
3794
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3795
3795
|
r[n] = arguments[n];
|
|
3796
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3796
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3797
3797
|
}, {
|
|
3798
|
-
cache:
|
|
3799
|
-
strategy:
|
|
3798
|
+
cache: Ae(e.dateTime),
|
|
3799
|
+
strategy: He.variadic
|
|
3800
3800
|
}),
|
|
3801
|
-
getPluralRules:
|
|
3801
|
+
getPluralRules: Pe(function() {
|
|
3802
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3803
3803
|
r[n] = arguments[n];
|
|
3804
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3805
3805
|
}, {
|
|
3806
|
-
cache:
|
|
3807
|
-
strategy:
|
|
3806
|
+
cache: Ae(e.pluralRules),
|
|
3807
|
+
strategy: He.variadic
|
|
3808
3808
|
})
|
|
3809
3809
|
};
|
|
3810
3810
|
}
|
|
3811
|
-
var
|
|
3811
|
+
var Kn = (
|
|
3812
3812
|
/** @class */
|
|
3813
3813
|
function() {
|
|
3814
3814
|
function e(t, r, n, i) {
|
|
@@ -3823,11 +3823,11 @@ var Qn = (
|
|
|
3823
3823
|
if (u.length === 1)
|
|
3824
3824
|
return u[0].value;
|
|
3825
3825
|
var h = u.reduce(function(f, c) {
|
|
3826
|
-
return !f.length || c.type !==
|
|
3826
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3827
3827
|
}, []);
|
|
3828
3828
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3829
3829
|
}, this.formatToParts = function(l) {
|
|
3830
|
-
return
|
|
3830
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3831
3831
|
}, this.resolvedOptions = function() {
|
|
3832
3832
|
var l;
|
|
3833
3833
|
return {
|
|
@@ -3840,13 +3840,13 @@ var Qn = (
|
|
|
3840
3840
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3841
3841
|
var a = i || {};
|
|
3842
3842
|
a.formatters;
|
|
3843
|
-
var s =
|
|
3844
|
-
this.ast = e.__parse(t,
|
|
3843
|
+
var s = un(a, ["formatters"]);
|
|
3844
|
+
this.ast = e.__parse(t, O(O({}, s), { locale: this.resolvedLocale }));
|
|
3845
3845
|
} else
|
|
3846
3846
|
this.ast = t;
|
|
3847
3847
|
if (!Array.isArray(this.ast))
|
|
3848
3848
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3849
|
-
this.formats =
|
|
3849
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3850
3850
|
}
|
|
3851
3851
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3852
3852
|
get: function() {
|
|
@@ -3859,7 +3859,7 @@ var Qn = (
|
|
|
3859
3859
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3860
3860
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3861
3861
|
}
|
|
3862
|
-
}, e.__parse =
|
|
3862
|
+
}, e.__parse = Wn, e.formats = {
|
|
3863
3863
|
number: {
|
|
3864
3864
|
integer: {
|
|
3865
3865
|
maximumFractionDigits: 0
|
|
@@ -3920,7 +3920,7 @@ var Qn = (
|
|
|
3920
3920
|
}, e;
|
|
3921
3921
|
}()
|
|
3922
3922
|
);
|
|
3923
|
-
function
|
|
3923
|
+
function ei(e, t) {
|
|
3924
3924
|
if (t == null)
|
|
3925
3925
|
return;
|
|
3926
3926
|
if (t in e)
|
|
@@ -3941,92 +3941,92 @@ function Jn(e, t) {
|
|
|
3941
3941
|
n = void 0;
|
|
3942
3942
|
return n;
|
|
3943
3943
|
}
|
|
3944
|
-
const
|
|
3944
|
+
const $ = {}, ti = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), Jt = (e, t) => {
|
|
3945
3945
|
if (t == null)
|
|
3946
3946
|
return;
|
|
3947
|
-
if (t in
|
|
3948
|
-
return
|
|
3949
|
-
const r =
|
|
3947
|
+
if (t in $ && e in $[t])
|
|
3948
|
+
return $[t][e];
|
|
3949
|
+
const r = xe(t);
|
|
3950
3950
|
for (let n = 0; n < r.length; n++) {
|
|
3951
|
-
const i = r[n], o =
|
|
3951
|
+
const i = r[n], o = ni(i, e);
|
|
3952
3952
|
if (o)
|
|
3953
|
-
return
|
|
3953
|
+
return ti(e, t, o);
|
|
3954
3954
|
}
|
|
3955
3955
|
};
|
|
3956
|
-
let
|
|
3957
|
-
const
|
|
3958
|
-
function
|
|
3959
|
-
return
|
|
3956
|
+
let Qe;
|
|
3957
|
+
const ae = ve({});
|
|
3958
|
+
function ri(e) {
|
|
3959
|
+
return Qe[e] || null;
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return e in
|
|
3961
|
+
function Kt(e) {
|
|
3962
|
+
return e in Qe;
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3965
|
-
if (!
|
|
3964
|
+
function ni(e, t) {
|
|
3965
|
+
if (!Kt(e))
|
|
3966
3966
|
return null;
|
|
3967
|
-
const r =
|
|
3968
|
-
return
|
|
3967
|
+
const r = ri(e);
|
|
3968
|
+
return ei(r, t);
|
|
3969
3969
|
}
|
|
3970
|
-
function
|
|
3970
|
+
function ii(e) {
|
|
3971
3971
|
if (e == null)
|
|
3972
3972
|
return;
|
|
3973
|
-
const t =
|
|
3973
|
+
const t = xe(e);
|
|
3974
3974
|
for (let r = 0; r < t.length; r++) {
|
|
3975
3975
|
const n = t[r];
|
|
3976
|
-
if (
|
|
3976
|
+
if (Kt(n))
|
|
3977
3977
|
return n;
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
3980
|
-
function
|
|
3981
|
-
delete
|
|
3980
|
+
function er(e, ...t) {
|
|
3981
|
+
delete $[e], ae.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3982
3982
|
}
|
|
3983
|
-
|
|
3984
|
-
[
|
|
3983
|
+
q(
|
|
3984
|
+
[ae],
|
|
3985
3985
|
([e]) => Object.keys(e)
|
|
3986
3986
|
);
|
|
3987
|
-
|
|
3988
|
-
const
|
|
3989
|
-
function
|
|
3990
|
-
|
|
3987
|
+
ae.subscribe((e) => Qe = e);
|
|
3988
|
+
const fe = {};
|
|
3989
|
+
function oi(e, t) {
|
|
3990
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
3992
|
+
function tr(e) {
|
|
3993
|
+
return fe[e];
|
|
3994
3994
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
3997
|
-
const r =
|
|
3995
|
+
function ai(e) {
|
|
3996
|
+
return xe(e).map((t) => {
|
|
3997
|
+
const r = tr(t);
|
|
3998
3998
|
return [t, r ? [...r] : []];
|
|
3999
3999
|
}).filter(([, t]) => t.length > 0);
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return e == null ? !1 :
|
|
4001
|
+
function Xe(e) {
|
|
4002
|
+
return e == null ? !1 : xe(e).some(
|
|
4003
4003
|
(t) => {
|
|
4004
4004
|
var r;
|
|
4005
|
-
return (r =
|
|
4005
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
4006
4006
|
}
|
|
4007
4007
|
);
|
|
4008
4008
|
}
|
|
4009
|
-
function
|
|
4009
|
+
function si(e, t) {
|
|
4010
4010
|
return Promise.all(
|
|
4011
|
-
t.map((n) => (
|
|
4012
|
-
).then((n) =>
|
|
4013
|
-
}
|
|
4014
|
-
const
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
4017
|
-
return e in
|
|
4018
|
-
const t =
|
|
4019
|
-
return
|
|
4011
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
4012
|
+
).then((n) => er(e, ...n));
|
|
4013
|
+
}
|
|
4014
|
+
const Q = {};
|
|
4015
|
+
function rr(e) {
|
|
4016
|
+
if (!Xe(e))
|
|
4017
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4018
|
+
const t = ai(e);
|
|
4019
|
+
return Q[e] = Promise.all(
|
|
4020
4020
|
t.map(
|
|
4021
|
-
([r, n]) =>
|
|
4021
|
+
([r, n]) => si(r, n)
|
|
4022
4022
|
)
|
|
4023
4023
|
).then(() => {
|
|
4024
|
-
if (
|
|
4025
|
-
return
|
|
4026
|
-
delete
|
|
4027
|
-
}),
|
|
4024
|
+
if (Xe(e))
|
|
4025
|
+
return rr(e);
|
|
4026
|
+
delete Q[e];
|
|
4027
|
+
}), Q[e];
|
|
4028
4028
|
}
|
|
4029
|
-
const
|
|
4029
|
+
const ui = {
|
|
4030
4030
|
number: {
|
|
4031
4031
|
scientific: { notation: "scientific" },
|
|
4032
4032
|
engineering: { notation: "engineering" },
|
|
@@ -4055,150 +4055,150 @@ const ai = {
|
|
|
4055
4055
|
timeZoneName: "short"
|
|
4056
4056
|
}
|
|
4057
4057
|
}
|
|
4058
|
-
},
|
|
4058
|
+
}, li = {
|
|
4059
4059
|
fallbackLocale: null,
|
|
4060
4060
|
loadingDelay: 200,
|
|
4061
|
-
formats:
|
|
4061
|
+
formats: ui,
|
|
4062
4062
|
warnOnMissingMessages: !0,
|
|
4063
4063
|
handleMissingMessage: void 0,
|
|
4064
4064
|
ignoreTag: !0
|
|
4065
|
-
},
|
|
4066
|
-
function
|
|
4067
|
-
return
|
|
4065
|
+
}, hi = li;
|
|
4066
|
+
function z() {
|
|
4067
|
+
return hi;
|
|
4068
4068
|
}
|
|
4069
|
-
const
|
|
4070
|
-
var
|
|
4069
|
+
const Ie = ve(!1);
|
|
4070
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
4071
4071
|
for (var r in t || (t = {}))
|
|
4072
|
-
|
|
4073
|
-
if (
|
|
4074
|
-
for (var r of
|
|
4075
|
-
|
|
4072
|
+
di.call(t, r) && gt(e, r, t[r]);
|
|
4073
|
+
if (yt)
|
|
4074
|
+
for (var r of yt(t))
|
|
4075
|
+
mi.call(t, r) && gt(e, r, t[r]);
|
|
4076
4076
|
return e;
|
|
4077
|
-
},
|
|
4078
|
-
let
|
|
4079
|
-
const
|
|
4080
|
-
function
|
|
4077
|
+
}, vi = (e, t) => fi(e, pi(t));
|
|
4078
|
+
let qe;
|
|
4079
|
+
const de = ve(null);
|
|
4080
|
+
function xt(e) {
|
|
4081
4081
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4082
4082
|
}
|
|
4083
|
-
function
|
|
4084
|
-
const r =
|
|
4085
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4083
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4084
|
+
const r = xt(e);
|
|
4085
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4086
4086
|
}
|
|
4087
|
-
function
|
|
4088
|
-
return
|
|
4087
|
+
function R() {
|
|
4088
|
+
return qe ?? void 0;
|
|
4089
4089
|
}
|
|
4090
|
-
|
|
4091
|
-
|
|
4090
|
+
de.subscribe((e) => {
|
|
4091
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4092
4092
|
});
|
|
4093
|
-
const
|
|
4094
|
-
if (e &&
|
|
4095
|
-
const { loadingDelay: t } =
|
|
4093
|
+
const yi = (e) => {
|
|
4094
|
+
if (e && ii(e) && Xe(e)) {
|
|
4095
|
+
const { loadingDelay: t } = z();
|
|
4096
4096
|
let r;
|
|
4097
|
-
return typeof window < "u" &&
|
|
4098
|
-
() =>
|
|
4097
|
+
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4098
|
+
() => Ie.set(!0),
|
|
4099
4099
|
t
|
|
4100
|
-
) :
|
|
4101
|
-
|
|
4100
|
+
) : Ie.set(!0), rr(e).then(() => {
|
|
4101
|
+
de.set(e);
|
|
4102
4102
|
}).finally(() => {
|
|
4103
|
-
clearTimeout(r),
|
|
4103
|
+
clearTimeout(r), Ie.set(!1);
|
|
4104
4104
|
});
|
|
4105
4105
|
}
|
|
4106
|
-
return
|
|
4107
|
-
},
|
|
4108
|
-
set:
|
|
4109
|
-
}),
|
|
4106
|
+
return de.set(e);
|
|
4107
|
+
}, Z = vi(bi({}, de), {
|
|
4108
|
+
set: yi
|
|
4109
|
+
}), _e = (e) => {
|
|
4110
4110
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4111
4111
|
return (n) => {
|
|
4112
4112
|
const i = JSON.stringify(n);
|
|
4113
4113
|
return i in t ? t[i] : t[i] = e(n);
|
|
4114
4114
|
};
|
|
4115
4115
|
};
|
|
4116
|
-
var
|
|
4116
|
+
var gi = Object.defineProperty, me = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4117
4117
|
for (var r in t || (t = {}))
|
|
4118
|
-
|
|
4119
|
-
if (
|
|
4120
|
-
for (var r of
|
|
4121
|
-
|
|
4118
|
+
nr.call(t, r) && _t(e, r, t[r]);
|
|
4119
|
+
if (me)
|
|
4120
|
+
for (var r of me(t))
|
|
4121
|
+
ir.call(t, r) && _t(e, r, t[r]);
|
|
4122
4122
|
return e;
|
|
4123
|
-
},
|
|
4123
|
+
}, Y = (e, t) => {
|
|
4124
4124
|
var r = {};
|
|
4125
4125
|
for (var n in e)
|
|
4126
|
-
|
|
4127
|
-
if (e != null &&
|
|
4128
|
-
for (var n of
|
|
4129
|
-
t.indexOf(n) < 0 &&
|
|
4126
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4127
|
+
if (e != null && me)
|
|
4128
|
+
for (var n of me(e))
|
|
4129
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4130
4130
|
return r;
|
|
4131
4131
|
};
|
|
4132
|
-
const
|
|
4133
|
-
const { formats: r } =
|
|
4132
|
+
const te = (e, t) => {
|
|
4133
|
+
const { formats: r } = z();
|
|
4134
4134
|
if (e in r && t in r[e])
|
|
4135
4135
|
return r[e][t];
|
|
4136
4136
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4137
|
-
},
|
|
4137
|
+
}, xi = _e(
|
|
4138
4138
|
(e) => {
|
|
4139
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4139
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4140
4140
|
if (r == null)
|
|
4141
4141
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4142
|
-
return n && (i =
|
|
4142
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4143
4143
|
}
|
|
4144
|
-
),
|
|
4144
|
+
), _i = _e(
|
|
4145
4145
|
(e) => {
|
|
4146
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4146
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4147
4147
|
if (r == null)
|
|
4148
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4149
|
-
return n ? i =
|
|
4149
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4150
4150
|
}
|
|
4151
|
-
),
|
|
4151
|
+
), Ei = _e(
|
|
4152
4152
|
(e) => {
|
|
4153
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4154
4154
|
if (r == null)
|
|
4155
4155
|
throw new Error(
|
|
4156
4156
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4157
4157
|
);
|
|
4158
|
-
return n ? i =
|
|
4158
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4159
4159
|
}
|
|
4160
|
-
),
|
|
4160
|
+
), Si = (e = {}) => {
|
|
4161
4161
|
var t = e, {
|
|
4162
|
-
locale: r =
|
|
4163
|
-
} = t, n =
|
|
4162
|
+
locale: r = R()
|
|
4163
|
+
} = t, n = Y(t, [
|
|
4164
4164
|
"locale"
|
|
4165
4165
|
]);
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4166
|
+
return xi(Je({ locale: r }, n));
|
|
4167
|
+
}, wi = (e = {}) => {
|
|
4168
4168
|
var t = e, {
|
|
4169
|
-
locale: r =
|
|
4170
|
-
} = t, n =
|
|
4169
|
+
locale: r = R()
|
|
4170
|
+
} = t, n = Y(t, [
|
|
4171
4171
|
"locale"
|
|
4172
4172
|
]);
|
|
4173
|
-
return
|
|
4173
|
+
return _i(Je({ locale: r }, n));
|
|
4174
4174
|
}, Ti = (e = {}) => {
|
|
4175
4175
|
var t = e, {
|
|
4176
|
-
locale: r =
|
|
4177
|
-
} = t, n =
|
|
4176
|
+
locale: r = R()
|
|
4177
|
+
} = t, n = Y(t, [
|
|
4178
4178
|
"locale"
|
|
4179
4179
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4180
|
+
return Ei(Je({ locale: r }, n));
|
|
4181
|
+
}, Pi = _e(
|
|
4182
4182
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4183
|
-
(e, t =
|
|
4184
|
-
ignoreTag:
|
|
4183
|
+
(e, t = R()) => new Kn(e, t, z().formats, {
|
|
4184
|
+
ignoreTag: z().ignoreTag
|
|
4185
4185
|
})
|
|
4186
|
-
),
|
|
4186
|
+
), Hi = (e, t = {}) => {
|
|
4187
4187
|
var r, n, i, o;
|
|
4188
4188
|
let a = t;
|
|
4189
4189
|
typeof e == "object" && (a = e, e = a.id);
|
|
4190
4190
|
const {
|
|
4191
4191
|
values: s,
|
|
4192
|
-
locale: l =
|
|
4192
|
+
locale: l = R(),
|
|
4193
4193
|
default: u
|
|
4194
4194
|
} = a;
|
|
4195
4195
|
if (l == null)
|
|
4196
4196
|
throw new Error(
|
|
4197
4197
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4198
4198
|
);
|
|
4199
|
-
let h =
|
|
4199
|
+
let h = Jt(e, l);
|
|
4200
4200
|
if (!h)
|
|
4201
|
-
h = (o = (i = (n = (r =
|
|
4201
|
+
h = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4202
4202
|
else if (typeof h != "string")
|
|
4203
4203
|
return console.warn(
|
|
4204
4204
|
`[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.`
|
|
@@ -4207,7 +4207,7 @@ const ee = (e, t) => {
|
|
|
4207
4207
|
return h;
|
|
4208
4208
|
let f = h;
|
|
4209
4209
|
try {
|
|
4210
|
-
f =
|
|
4210
|
+
f = Pi(h, l).format(s);
|
|
4211
4211
|
} catch (c) {
|
|
4212
4212
|
c instanceof Error && console.warn(
|
|
4213
4213
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4215,21 +4215,21 @@ const ee = (e, t) => {
|
|
|
4215
4215
|
);
|
|
4216
4216
|
}
|
|
4217
4217
|
return f;
|
|
4218
|
-
},
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
window.emWidgets = { topic:
|
|
4224
|
-
const
|
|
4218
|
+
}, Ci = (e, t) => Ti(t).format(e), Ai = (e, t) => wi(t).format(e), Ii = (e, t) => Si(t).format(e), Bi = (e, t = R()) => Jt(e, t), Oi = q([Z, ae], () => Hi);
|
|
4219
|
+
q([Z], () => Ci);
|
|
4220
|
+
q([Z], () => Ai);
|
|
4221
|
+
q([Z], () => Ii);
|
|
4222
|
+
q([Z, ae], () => Bi);
|
|
4223
|
+
window.emWidgets = { topic: kr };
|
|
4224
|
+
const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4225
4225
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4226
|
+
function Et(e, t) {
|
|
4227
|
+
er(e, t);
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4230
|
-
|
|
4229
|
+
function Mi(e) {
|
|
4230
|
+
Z.set(e);
|
|
4231
4231
|
}
|
|
4232
|
-
const
|
|
4232
|
+
const St = {
|
|
4233
4233
|
en: {
|
|
4234
4234
|
name: "Info",
|
|
4235
4235
|
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:",
|
|
@@ -4290,14 +4290,14 @@ const _t = {
|
|
|
4290
4290
|
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:",
|
|
4291
4291
|
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."
|
|
4292
4292
|
}
|
|
4293
|
-
};
|
|
4294
|
-
function
|
|
4293
|
+
}, F = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4294
|
+
function Ni(e, t) {
|
|
4295
4295
|
if (e) {
|
|
4296
4296
|
const r = document.createElement("style");
|
|
4297
4297
|
r.innerHTML = t, e.appendChild(r);
|
|
4298
4298
|
}
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4300
|
+
function $i(e, t) {
|
|
4301
4301
|
if (!e || !t)
|
|
4302
4302
|
return;
|
|
4303
4303
|
const r = new URL(t);
|
|
@@ -4308,82 +4308,109 @@ function Mi(e, t) {
|
|
|
4308
4308
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4309
4309
|
});
|
|
4310
4310
|
}
|
|
4311
|
-
function
|
|
4312
|
-
if (window.emMessageBus)
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4311
|
+
function Ri(e, t, r, n = !1) {
|
|
4312
|
+
if (!window.emMessageBus)
|
|
4313
|
+
return;
|
|
4314
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4315
|
+
return r = Ui(e, t), r;
|
|
4316
|
+
window[F] || (window[F] = {}), r = Gi(e, t);
|
|
4317
|
+
const o = r.unsubscribe.bind(r), a = () => {
|
|
4318
|
+
if (window[F][t]) {
|
|
4319
|
+
const s = window[F][t];
|
|
4320
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[F][t];
|
|
4321
|
+
}
|
|
4322
|
+
o();
|
|
4323
|
+
};
|
|
4324
|
+
return r.unsubscribe = a, r;
|
|
4325
|
+
}
|
|
4326
|
+
function Ui(e, t) {
|
|
4327
|
+
const r = document.createElement("style");
|
|
4328
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
4329
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
4330
|
+
});
|
|
4331
|
+
}
|
|
4332
|
+
function Gi(e, t) {
|
|
4333
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4334
|
+
if (!e)
|
|
4335
|
+
return;
|
|
4336
|
+
const n = e.getRootNode(), i = window[F];
|
|
4337
|
+
let o = i[t]?.sheet;
|
|
4338
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
4339
|
+
sheet: o,
|
|
4340
|
+
refCount: 1
|
|
4316
4341
|
});
|
|
4317
|
-
|
|
4342
|
+
const a = n.adoptedStyleSheets || [];
|
|
4343
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
4344
|
+
});
|
|
4318
4345
|
}
|
|
4319
|
-
function
|
|
4320
|
-
|
|
4346
|
+
function Di(e) {
|
|
4347
|
+
sr(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)}');
|
|
4321
4348
|
}
|
|
4322
|
-
function
|
|
4349
|
+
function wt(e) {
|
|
4323
4350
|
let t, r, n, i, o, a, s = (
|
|
4324
4351
|
/*$_*/
|
|
4325
4352
|
e[4]("name") + ""
|
|
4326
|
-
), l, u, h, f, c, p, d,
|
|
4327
|
-
function
|
|
4353
|
+
), l, u, h, f, c, p, d, y;
|
|
4354
|
+
function w(g, T) {
|
|
4328
4355
|
return (
|
|
4329
4356
|
/*iteminfoamount*/
|
|
4330
|
-
|
|
4357
|
+
g[0] ? ji : Fi
|
|
4331
4358
|
);
|
|
4332
4359
|
}
|
|
4333
|
-
let H =
|
|
4360
|
+
let H = w(e), E = H(e);
|
|
4334
4361
|
return {
|
|
4335
4362
|
c() {
|
|
4336
|
-
t =
|
|
4363
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = Ee(), a = A("div"), l = ie(s), u = Ee(), 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 = Ee(), 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*/
|
|
4337
4364
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4338
|
-
(e[0] ? "InfoCardPopupLimitChanged" : "")),
|
|
4365
|
+
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4339
4366
|
t,
|
|
4340
4367
|
"class",
|
|
4341
4368
|
/*isMobile*/
|
|
4342
4369
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4343
4370
|
);
|
|
4344
4371
|
},
|
|
4345
|
-
m(
|
|
4346
|
-
|
|
4372
|
+
m(g, T) {
|
|
4373
|
+
ne(g, t, T), 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 = cr(h, "click", fr(
|
|
4347
4374
|
/*closeInfoPopup*/
|
|
4348
4375
|
e[6]
|
|
4349
4376
|
)), d = !0);
|
|
4350
4377
|
},
|
|
4351
|
-
p(
|
|
4352
|
-
|
|
4378
|
+
p(g, T) {
|
|
4379
|
+
T & /*$_*/
|
|
4353
4380
|
16 && s !== (s = /*$_*/
|
|
4354
|
-
|
|
4381
|
+
g[4]("name") + "") && Ye(l, s), H === (H = w(g)) && E ? E.p(g, T) : (E.d(1), E = H(g), E && (E.c(), E.m(c, null))), T & /*iteminfoamount*/
|
|
4355
4382
|
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4356
|
-
(
|
|
4357
|
-
(
|
|
4383
|
+
(g[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4384
|
+
(g[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", p);
|
|
4358
4385
|
},
|
|
4359
|
-
d(
|
|
4360
|
-
|
|
4386
|
+
d(g) {
|
|
4387
|
+
g && X(t), E.d(), e[13](null), d = !1, y();
|
|
4361
4388
|
}
|
|
4362
4389
|
};
|
|
4363
4390
|
}
|
|
4364
|
-
function
|
|
4391
|
+
function Fi(e) {
|
|
4365
4392
|
let t, r = (
|
|
4366
4393
|
/*$_*/
|
|
4367
4394
|
e[4]("defaultText") + ""
|
|
4368
4395
|
), n;
|
|
4369
4396
|
return {
|
|
4370
4397
|
c() {
|
|
4371
|
-
t =
|
|
4398
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4372
4399
|
},
|
|
4373
4400
|
m(i, o) {
|
|
4374
|
-
|
|
4401
|
+
ne(i, t, o), P(t, n);
|
|
4375
4402
|
},
|
|
4376
4403
|
p(i, o) {
|
|
4377
4404
|
o & /*$_*/
|
|
4378
4405
|
16 && r !== (r = /*$_*/
|
|
4379
|
-
i[4]("defaultText") + "") &&
|
|
4406
|
+
i[4]("defaultText") + "") && Ye(n, r);
|
|
4380
4407
|
},
|
|
4381
4408
|
d(i) {
|
|
4382
|
-
i &&
|
|
4409
|
+
i && X(t);
|
|
4383
4410
|
}
|
|
4384
4411
|
};
|
|
4385
4412
|
}
|
|
4386
|
-
function
|
|
4413
|
+
function ji(e) {
|
|
4387
4414
|
let t, r = (
|
|
4388
4415
|
/*$_*/
|
|
4389
4416
|
e[4]("amountChanged", {
|
|
@@ -4401,10 +4428,10 @@ function Ui(e) {
|
|
|
4401
4428
|
), n;
|
|
4402
4429
|
return {
|
|
4403
4430
|
c() {
|
|
4404
|
-
t =
|
|
4431
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4405
4432
|
},
|
|
4406
4433
|
m(i, o) {
|
|
4407
|
-
|
|
4434
|
+
ne(i, t, o), P(t, n);
|
|
4408
4435
|
},
|
|
4409
4436
|
p(i, o) {
|
|
4410
4437
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4420,81 +4447,81 @@ function Ui(e) {
|
|
|
4420
4447
|
i[1]
|
|
4421
4448
|
)
|
|
4422
4449
|
}
|
|
4423
|
-
}) + "") &&
|
|
4450
|
+
}) + "") && Ye(n, r);
|
|
4424
4451
|
},
|
|
4425
4452
|
d(i) {
|
|
4426
|
-
i &&
|
|
4453
|
+
i && X(t);
|
|
4427
4454
|
}
|
|
4428
4455
|
};
|
|
4429
4456
|
}
|
|
4430
|
-
function
|
|
4457
|
+
function ki(e) {
|
|
4431
4458
|
let t, r = (
|
|
4432
4459
|
/*showPopup*/
|
|
4433
|
-
e[3] &&
|
|
4460
|
+
e[3] && wt(e)
|
|
4434
4461
|
);
|
|
4435
4462
|
return {
|
|
4436
4463
|
c() {
|
|
4437
|
-
r && r.c(), t =
|
|
4464
|
+
r && r.c(), t = hr();
|
|
4438
4465
|
},
|
|
4439
4466
|
m(n, i) {
|
|
4440
|
-
r && r.m(n, i),
|
|
4467
|
+
r && r.m(n, i), ne(n, t, i);
|
|
4441
4468
|
},
|
|
4442
4469
|
p(n, [i]) {
|
|
4443
4470
|
/*showPopup*/
|
|
4444
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4471
|
+
n[3] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4445
4472
|
},
|
|
4446
|
-
i:
|
|
4447
|
-
o:
|
|
4473
|
+
i: I,
|
|
4474
|
+
o: I,
|
|
4448
4475
|
d(n) {
|
|
4449
|
-
n &&
|
|
4476
|
+
n && X(t), r && r.d(n);
|
|
4450
4477
|
}
|
|
4451
4478
|
};
|
|
4452
4479
|
}
|
|
4453
|
-
function
|
|
4480
|
+
function Vi(e, t, r) {
|
|
4454
4481
|
let n;
|
|
4455
|
-
|
|
4482
|
+
ar(e, Oi, (v) => r(4, n = v));
|
|
4456
4483
|
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;
|
|
4457
4484
|
const c = () => {
|
|
4458
|
-
fetch(h).then((
|
|
4459
|
-
Object.keys(
|
|
4460
|
-
|
|
4485
|
+
fetch(h).then((M) => M.json()).then((M) => {
|
|
4486
|
+
Object.keys(M).forEach((Ke) => {
|
|
4487
|
+
Et(Ke, M[Ke]);
|
|
4461
4488
|
});
|
|
4462
|
-
}).catch((
|
|
4463
|
-
console.log(
|
|
4489
|
+
}).catch((M) => {
|
|
4490
|
+
console.log(M);
|
|
4464
4491
|
});
|
|
4465
4492
|
};
|
|
4466
|
-
Object.keys(
|
|
4467
|
-
|
|
4493
|
+
Object.keys(St).forEach((v) => {
|
|
4494
|
+
Et(v, St[v]);
|
|
4468
4495
|
});
|
|
4469
|
-
let p = !1, d,
|
|
4470
|
-
const
|
|
4496
|
+
let p = !1, d, y, w = window.navigator.userAgent, H = Li(w) !== "PC";
|
|
4497
|
+
const E = () => {
|
|
4471
4498
|
r(3, p = !1), window.postMessage(
|
|
4472
4499
|
{
|
|
4473
4500
|
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4474
4501
|
},
|
|
4475
4502
|
window.location.href
|
|
4476
4503
|
);
|
|
4477
|
-
},
|
|
4478
|
-
|
|
4479
|
-
},
|
|
4480
|
-
|
|
4504
|
+
}, g = (v) => {
|
|
4505
|
+
v.data && v.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4506
|
+
}, T = () => {
|
|
4507
|
+
Mi(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4481
4508
|
};
|
|
4482
|
-
|
|
4483
|
-
window.removeEventListener("message",
|
|
4509
|
+
br(() => (window.addEventListener("message", g, !1), () => {
|
|
4510
|
+
window.removeEventListener("message", g);
|
|
4484
4511
|
}));
|
|
4485
|
-
function
|
|
4486
|
-
Be[
|
|
4487
|
-
d =
|
|
4512
|
+
function L(v) {
|
|
4513
|
+
Be[v ? "unshift" : "push"](() => {
|
|
4514
|
+
d = v, r(2, d);
|
|
4488
4515
|
});
|
|
4489
4516
|
}
|
|
4490
|
-
return e.$$set = (
|
|
4491
|
-
"showpopup" in
|
|
4517
|
+
return e.$$set = (v) => {
|
|
4518
|
+
"showpopup" in v && r(7, i = v.showpopup), "iteminfoamount" in v && r(0, o = v.iteminfoamount), "lang" in v && r(8, a = v.lang), "currency" in v && r(1, s = v.currency), "clientstyling" in v && r(9, l = v.clientstyling), "clientstylingurl" in v && r(10, u = v.clientstylingurl), "translationurl" in v && r(11, h = v.translationurl), "mbsource" in v && r(12, f = v.mbsource);
|
|
4492
4519
|
}, e.$$.update = () => {
|
|
4493
4520
|
e.$$.dirty & /*showpopup, lang*/
|
|
4494
|
-
384 && i && a &&
|
|
4495
|
-
516 && l && d &&
|
|
4496
|
-
1028 && u && d &&
|
|
4497
|
-
4100 && f && d &&
|
|
4521
|
+
384 && i && a && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4522
|
+
516 && l && d && Ni(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4523
|
+
1028 && u && d && $i(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4524
|
+
4100 && f && d && Ri(d, `${f}.Style`, y), e.$$.dirty & /*translationurl*/
|
|
4498
4525
|
2048 && h && c();
|
|
4499
4526
|
}, [
|
|
4500
4527
|
o,
|
|
@@ -4502,25 +4529,25 @@ function Di(e, t, r) {
|
|
|
4502
4529
|
d,
|
|
4503
4530
|
p,
|
|
4504
4531
|
n,
|
|
4505
|
-
S,
|
|
4506
4532
|
H,
|
|
4533
|
+
E,
|
|
4507
4534
|
i,
|
|
4508
4535
|
a,
|
|
4509
4536
|
l,
|
|
4510
4537
|
u,
|
|
4511
4538
|
h,
|
|
4512
4539
|
f,
|
|
4513
|
-
|
|
4540
|
+
L
|
|
4514
4541
|
];
|
|
4515
4542
|
}
|
|
4516
|
-
class
|
|
4543
|
+
class Wi extends Cr {
|
|
4517
4544
|
constructor(t) {
|
|
4518
|
-
super(),
|
|
4545
|
+
super(), Pr(
|
|
4519
4546
|
this,
|
|
4520
4547
|
t,
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4548
|
+
Vi,
|
|
4549
|
+
ki,
|
|
4550
|
+
Pt,
|
|
4524
4551
|
{
|
|
4525
4552
|
showpopup: 7,
|
|
4526
4553
|
iteminfoamount: 0,
|
|
@@ -4531,59 +4558,59 @@ class Fi extends Pr {
|
|
|
4531
4558
|
translationurl: 11,
|
|
4532
4559
|
mbsource: 12
|
|
4533
4560
|
},
|
|
4534
|
-
|
|
4561
|
+
Di
|
|
4535
4562
|
);
|
|
4536
4563
|
}
|
|
4537
4564
|
get showpopup() {
|
|
4538
4565
|
return this.$$.ctx[7];
|
|
4539
4566
|
}
|
|
4540
4567
|
set showpopup(t) {
|
|
4541
|
-
this.$$set({ showpopup: t }),
|
|
4568
|
+
this.$$set({ showpopup: t }), B();
|
|
4542
4569
|
}
|
|
4543
4570
|
get iteminfoamount() {
|
|
4544
4571
|
return this.$$.ctx[0];
|
|
4545
4572
|
}
|
|
4546
4573
|
set iteminfoamount(t) {
|
|
4547
|
-
this.$$set({ iteminfoamount: t }),
|
|
4574
|
+
this.$$set({ iteminfoamount: t }), B();
|
|
4548
4575
|
}
|
|
4549
4576
|
get lang() {
|
|
4550
4577
|
return this.$$.ctx[8];
|
|
4551
4578
|
}
|
|
4552
4579
|
set lang(t) {
|
|
4553
|
-
this.$$set({ lang: t }),
|
|
4580
|
+
this.$$set({ lang: t }), B();
|
|
4554
4581
|
}
|
|
4555
4582
|
get currency() {
|
|
4556
4583
|
return this.$$.ctx[1];
|
|
4557
4584
|
}
|
|
4558
4585
|
set currency(t) {
|
|
4559
|
-
this.$$set({ currency: t }),
|
|
4586
|
+
this.$$set({ currency: t }), B();
|
|
4560
4587
|
}
|
|
4561
4588
|
get clientstyling() {
|
|
4562
4589
|
return this.$$.ctx[9];
|
|
4563
4590
|
}
|
|
4564
4591
|
set clientstyling(t) {
|
|
4565
|
-
this.$$set({ clientstyling: t }),
|
|
4592
|
+
this.$$set({ clientstyling: t }), B();
|
|
4566
4593
|
}
|
|
4567
4594
|
get clientstylingurl() {
|
|
4568
4595
|
return this.$$.ctx[10];
|
|
4569
4596
|
}
|
|
4570
4597
|
set clientstylingurl(t) {
|
|
4571
|
-
this.$$set({ clientstylingurl: t }),
|
|
4598
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4572
4599
|
}
|
|
4573
4600
|
get translationurl() {
|
|
4574
4601
|
return this.$$.ctx[11];
|
|
4575
4602
|
}
|
|
4576
4603
|
set translationurl(t) {
|
|
4577
|
-
this.$$set({ translationurl: t }),
|
|
4604
|
+
this.$$set({ translationurl: t }), B();
|
|
4578
4605
|
}
|
|
4579
4606
|
get mbsource() {
|
|
4580
4607
|
return this.$$.ctx[12];
|
|
4581
4608
|
}
|
|
4582
4609
|
set mbsource(t) {
|
|
4583
|
-
this.$$set({ mbsource: t }),
|
|
4610
|
+
this.$$set({ mbsource: t }), B();
|
|
4584
4611
|
}
|
|
4585
4612
|
}
|
|
4586
|
-
|
|
4613
|
+
Hr(Wi, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4587
4614
|
export {
|
|
4588
|
-
|
|
4615
|
+
Wi as P
|
|
4589
4616
|
};
|