@everymatrix/player-account-gaming-limits-popup 1.77.20 → 1.77.21
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-BsPqMQeJ.js → PlayerAccountGamingLimitsPopup-CYnRGI3F.js} +725 -682
- package/components/PlayerAccountGamingLimitsPopup-D98UfAyc.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPopup-vzb49sWl.js → PlayerAccountGamingLimitsPopup-yCPQoeP2.js} +714 -671
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup-DY2hHTHw.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function te(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function qe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function xt(e, ...t) {
|
|
|
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 ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function P(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = ar(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = C("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,35 +50,35 @@ function tr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function sr(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 re(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function C(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ne(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function _e() {
|
|
73
|
+
return ne(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function ur() {
|
|
76
|
+
return ne("");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function lr(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function hr(e) {
|
|
82
82
|
return function(t) {
|
|
83
83
|
return t.preventDefault(), e.call(this, t);
|
|
84
84
|
};
|
|
@@ -86,14 +86,14 @@ function or(e) {
|
|
|
86
86
|
function B(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function cr(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ze(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function fr(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,87 +102,87 @@ function sr(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let J;
|
|
106
|
+
function Q(e) {
|
|
107
|
+
J = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function pr() {
|
|
110
|
+
if (!J)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return J;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function dr(e) {
|
|
115
|
+
pr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
|
-
const G = [],
|
|
117
|
+
const G = [], Ce = [];
|
|
118
118
|
let D = [];
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
const Ke = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Ae = !1;
|
|
121
|
+
function br() {
|
|
122
|
+
Ae || (Ae = !0, mr.then(O));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Oe(e) {
|
|
125
125
|
D.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
let
|
|
127
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
128
|
+
let R = 0;
|
|
129
129
|
function O() {
|
|
130
|
-
if (
|
|
130
|
+
if (R !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = J;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
|
-
for (;
|
|
136
|
-
const t = G[
|
|
137
|
-
|
|
135
|
+
for (; R < G.length; ) {
|
|
136
|
+
const t = G[R];
|
|
137
|
+
R++, Q(t), vr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
|
-
throw G.length = 0,
|
|
140
|
+
throw G.length = 0, R = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
143
|
-
|
|
142
|
+
for (Q(null), G.length = 0, R = 0; Ce.length; )
|
|
143
|
+
Ce.pop()();
|
|
144
144
|
for (let t = 0; t < D.length; t += 1) {
|
|
145
145
|
const r = D[t];
|
|
146
|
-
|
|
146
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
147
147
|
}
|
|
148
148
|
D.length = 0;
|
|
149
149
|
} while (G.length);
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
for (; Ke.length; )
|
|
151
|
+
Ke.pop()();
|
|
152
|
+
Ae = !1, Ee.clear(), Q(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function vr(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), te(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(Oe);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function yr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
163
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const gr = /* @__PURE__ */ new Set();
|
|
166
|
+
function xr(e, t) {
|
|
167
|
+
e && e.i && (gr.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _r(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(
|
|
173
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
174
|
-
}), i.forEach(
|
|
171
|
+
n && n.m(t, r), Oe(() => {
|
|
172
|
+
const o = e.$$.on_mount.map(Tt).filter(qe);
|
|
173
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
174
|
+
}), i.forEach(Oe);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Er(e, t) {
|
|
177
177
|
const r = e.$$;
|
|
178
|
-
r.fragment !== null && (
|
|
178
|
+
r.fragment !== null && (yr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
180
|
+
function Tr(e, t) {
|
|
181
|
+
e.$$.dirty[0] === -1 && (G.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
const l =
|
|
185
|
-
|
|
183
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
184
|
+
const l = J;
|
|
185
|
+
Q(e);
|
|
186
186
|
const u = e.$$ = {
|
|
187
187
|
fragment: null,
|
|
188
188
|
ctx: [],
|
|
@@ -190,7 +190,7 @@ function yr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
190
190
|
props: o,
|
|
191
191
|
update: A,
|
|
192
192
|
not_equal: i,
|
|
193
|
-
bound:
|
|
193
|
+
bound: Je(),
|
|
194
194
|
// lifecycle
|
|
195
195
|
on_mount: [],
|
|
196
196
|
on_destroy: [],
|
|
@@ -199,7 +199,7 @@ function yr(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: Je(),
|
|
203
203
|
dirty: s,
|
|
204
204
|
skip_bound: !1,
|
|
205
205
|
root: t.target || l.$$.root
|
|
@@ -208,19 +208,19 @@ function yr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
208
208
|
let h = !1;
|
|
209
209
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
210
210
|
const d = p.length ? p[0] : c;
|
|
211
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h &&
|
|
212
|
-
}) : [], u.update(), h = !0,
|
|
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, te(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 = cr(t.target);
|
|
215
|
+
u.fragment && u.fragment.l(f), f.forEach(z);
|
|
216
216
|
} else
|
|
217
217
|
u.fragment && u.fragment.c();
|
|
218
|
-
t.intro &&
|
|
218
|
+
t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), O();
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
Q(l);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
typeof HTMLElement == "function" && (
|
|
222
|
+
let Pt;
|
|
223
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
224
224
|
/** The Svelte component constructor */
|
|
225
225
|
$$ctor;
|
|
226
226
|
/** Slots */
|
|
@@ -269,17 +269,17 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
269
269
|
* @param {HTMLElement} [anchor]
|
|
270
270
|
*/
|
|
271
271
|
m: function(l, u) {
|
|
272
|
-
|
|
272
|
+
re(l, o, u);
|
|
273
273
|
},
|
|
274
274
|
d: function(l) {
|
|
275
|
-
l &&
|
|
275
|
+
l && z(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 = fr(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) {
|
|
@@ -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 wr(e, t, r, n, i, o) {
|
|
370
|
+
let a = class extends Pt {
|
|
371
371
|
constructor() {
|
|
372
372
|
super(e, r, i), this.$$p_d = t;
|
|
373
373
|
}
|
|
@@ -395,7 +395,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
395
395
|
}), e.element = /** @type {any} */
|
|
396
396
|
a, a;
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class Pr {
|
|
399
399
|
/**
|
|
400
400
|
* ### PRIVATE API
|
|
401
401
|
*
|
|
@@ -414,7 +414,7 @@ class _r {
|
|
|
414
414
|
$$set = void 0;
|
|
415
415
|
/** @returns {void} */
|
|
416
416
|
$destroy() {
|
|
417
|
-
|
|
417
|
+
Er(this, 1), this.$destroy = A;
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -423,7 +423,7 @@ class _r {
|
|
|
423
423
|
* @returns {() => void}
|
|
424
424
|
*/
|
|
425
425
|
$on(t, r) {
|
|
426
|
-
if (!
|
|
426
|
+
if (!qe(r))
|
|
427
427
|
return A;
|
|
428
428
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
429
429
|
return n.push(r), () => {
|
|
@@ -436,11 +436,11 @@ class _r {
|
|
|
436
436
|
* @returns {void}
|
|
437
437
|
*/
|
|
438
438
|
$set(t) {
|
|
439
|
-
this.$$set && !
|
|
439
|
+
this.$$set && !nr(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 Hr = "4";
|
|
443
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
444
444
|
/*! *****************************************************************************
|
|
445
445
|
Copyright (c) Microsoft Corporation.
|
|
446
446
|
|
|
@@ -455,43 +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 Le = function(e, t) {
|
|
459
|
+
return Le = 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
|
+
}, Le(e, t);
|
|
465
465
|
};
|
|
466
|
-
function
|
|
466
|
+
function ie(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
|
+
Le(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
|
-
|
|
476
|
-
return g = Object.assign || function(t) {
|
|
477
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
478
|
-
r = arguments[n];
|
|
479
|
-
for (var o in r)
|
|
480
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
481
|
-
}
|
|
482
|
-
return t;
|
|
483
|
-
}, g.apply(this, arguments);
|
|
484
|
-
};
|
|
485
|
-
function Tr(e, t) {
|
|
486
|
-
var r = {};
|
|
487
|
-
for (var n in e)
|
|
488
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
489
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
490
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
491
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
492
|
-
return r;
|
|
493
|
-
}
|
|
494
|
-
function Ae(e) {
|
|
475
|
+
function Me(e) {
|
|
495
476
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
496
477
|
if (r)
|
|
497
478
|
return r.call(e);
|
|
@@ -503,7 +484,7 @@ function Ae(e) {
|
|
|
503
484
|
};
|
|
504
485
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
505
486
|
}
|
|
506
|
-
function
|
|
487
|
+
function Ne(e, t) {
|
|
507
488
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
508
489
|
if (!r)
|
|
509
490
|
return e;
|
|
@@ -523,22 +504,22 @@ function Oe(e, t) {
|
|
|
523
504
|
}
|
|
524
505
|
return o;
|
|
525
506
|
}
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
507
|
+
function $e(e, t, r) {
|
|
508
|
+
if (arguments.length === 2)
|
|
528
509
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
529
510
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
530
511
|
return e.concat(o || t);
|
|
531
512
|
}
|
|
532
|
-
function
|
|
513
|
+
function M(e) {
|
|
533
514
|
return typeof e == "function";
|
|
534
515
|
}
|
|
535
|
-
function
|
|
516
|
+
function Ht(e) {
|
|
536
517
|
var t = function(n) {
|
|
537
518
|
Error.call(n), n.stack = new Error().stack;
|
|
538
519
|
}, r = e(t);
|
|
539
520
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
540
521
|
}
|
|
541
|
-
var
|
|
522
|
+
var Te = Ht(function(e) {
|
|
542
523
|
return function(r) {
|
|
543
524
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
544
525
|
` + r.map(function(n, i) {
|
|
@@ -547,13 +528,13 @@ var _e = Et(function(e) {
|
|
|
547
528
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
548
529
|
};
|
|
549
530
|
});
|
|
550
|
-
function
|
|
531
|
+
function Re(e, t) {
|
|
551
532
|
if (e) {
|
|
552
533
|
var r = e.indexOf(t);
|
|
553
534
|
0 <= r && e.splice(r, 1);
|
|
554
535
|
}
|
|
555
536
|
}
|
|
556
|
-
var
|
|
537
|
+
var me = function() {
|
|
557
538
|
function e(t) {
|
|
558
539
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
559
540
|
}
|
|
@@ -565,7 +546,7 @@ var de = function() {
|
|
|
565
546
|
if (a)
|
|
566
547
|
if (this._parentage = null, Array.isArray(a))
|
|
567
548
|
try {
|
|
568
|
-
for (var s =
|
|
549
|
+
for (var s = Me(a), l = s.next(); !l.done; l = s.next()) {
|
|
569
550
|
var u = l.value;
|
|
570
551
|
u.remove(this);
|
|
571
552
|
}
|
|
@@ -582,22 +563,22 @@ var de = function() {
|
|
|
582
563
|
else
|
|
583
564
|
a.remove(this);
|
|
584
565
|
var h = this.initialTeardown;
|
|
585
|
-
if (
|
|
566
|
+
if (M(h))
|
|
586
567
|
try {
|
|
587
568
|
h();
|
|
588
569
|
} catch (y) {
|
|
589
|
-
o = y instanceof
|
|
570
|
+
o = y instanceof Te ? y.errors : [y];
|
|
590
571
|
}
|
|
591
572
|
var f = this._finalizers;
|
|
592
573
|
if (f) {
|
|
593
574
|
this._finalizers = null;
|
|
594
575
|
try {
|
|
595
|
-
for (var c =
|
|
576
|
+
for (var c = Me(f), p = c.next(); !p.done; p = c.next()) {
|
|
596
577
|
var d = p.value;
|
|
597
578
|
try {
|
|
598
|
-
|
|
579
|
+
et(d);
|
|
599
580
|
} catch (y) {
|
|
600
|
-
o = o ?? [], y instanceof
|
|
581
|
+
o = o ?? [], y instanceof Te ? o = $e($e([], Ne(o)), Ne(y.errors)) : o.push(y);
|
|
601
582
|
}
|
|
602
583
|
}
|
|
603
584
|
} catch (y) {
|
|
@@ -612,13 +593,13 @@ var de = function() {
|
|
|
612
593
|
}
|
|
613
594
|
}
|
|
614
595
|
if (o)
|
|
615
|
-
throw new
|
|
596
|
+
throw new Te(o);
|
|
616
597
|
}
|
|
617
598
|
}, e.prototype.add = function(t) {
|
|
618
599
|
var r;
|
|
619
600
|
if (t && t !== this)
|
|
620
601
|
if (this.closed)
|
|
621
|
-
|
|
602
|
+
et(t);
|
|
622
603
|
else {
|
|
623
604
|
if (t instanceof e) {
|
|
624
605
|
if (t.closed || t._hasParent(this))
|
|
@@ -635,52 +616,52 @@ var de = function() {
|
|
|
635
616
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
636
617
|
}, e.prototype._removeParent = function(t) {
|
|
637
618
|
var r = this._parentage;
|
|
638
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
619
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
639
620
|
}, e.prototype.remove = function(t) {
|
|
640
621
|
var r = this._finalizers;
|
|
641
|
-
r &&
|
|
622
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
642
623
|
}, e.EMPTY = function() {
|
|
643
624
|
var t = new e();
|
|
644
625
|
return t.closed = !0, t;
|
|
645
626
|
}(), e;
|
|
646
|
-
}(),
|
|
647
|
-
function
|
|
648
|
-
return e instanceof
|
|
627
|
+
}(), It = me.EMPTY;
|
|
628
|
+
function Bt(e) {
|
|
629
|
+
return e instanceof me || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
649
630
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
631
|
+
function et(e) {
|
|
632
|
+
M(e) ? e() : e.unsubscribe();
|
|
652
633
|
}
|
|
653
|
-
var
|
|
634
|
+
var Ir = {
|
|
654
635
|
Promise: void 0
|
|
655
|
-
},
|
|
636
|
+
}, Br = {
|
|
656
637
|
setTimeout: function(e, t) {
|
|
657
638
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
658
639
|
r[n - 2] = arguments[n];
|
|
659
|
-
return setTimeout.apply(void 0,
|
|
640
|
+
return setTimeout.apply(void 0, $e([e, t], Ne(r)));
|
|
660
641
|
},
|
|
661
642
|
clearTimeout: function(e) {
|
|
662
643
|
return clearTimeout(e);
|
|
663
644
|
},
|
|
664
645
|
delegate: void 0
|
|
665
646
|
};
|
|
666
|
-
function
|
|
667
|
-
|
|
647
|
+
function Cr(e) {
|
|
648
|
+
Br.setTimeout(function() {
|
|
668
649
|
throw e;
|
|
669
650
|
});
|
|
670
651
|
}
|
|
671
|
-
function
|
|
652
|
+
function tt() {
|
|
672
653
|
}
|
|
673
654
|
function le(e) {
|
|
674
655
|
e();
|
|
675
656
|
}
|
|
676
|
-
var
|
|
677
|
-
|
|
657
|
+
var Ct = function(e) {
|
|
658
|
+
ie(t, e);
|
|
678
659
|
function t(r) {
|
|
679
660
|
var n = e.call(this) || this;
|
|
680
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
661
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = Lr, n;
|
|
681
662
|
}
|
|
682
663
|
return t.create = function(r, n, i) {
|
|
683
|
-
return new
|
|
664
|
+
return new Ue(r, n, i);
|
|
684
665
|
}, t.prototype.next = function(r) {
|
|
685
666
|
this.isStopped || this._next(r);
|
|
686
667
|
}, t.prototype.error = function(r) {
|
|
@@ -704,7 +685,7 @@ var wt = function(e) {
|
|
|
704
685
|
this.unsubscribe();
|
|
705
686
|
}
|
|
706
687
|
}, t;
|
|
707
|
-
}(
|
|
688
|
+
}(me), Ar = function() {
|
|
708
689
|
function e(t) {
|
|
709
690
|
this.partialObserver = t;
|
|
710
691
|
}
|
|
@@ -735,43 +716,43 @@ var wt = function(e) {
|
|
|
735
716
|
ae(r);
|
|
736
717
|
}
|
|
737
718
|
}, e;
|
|
738
|
-
}(),
|
|
739
|
-
|
|
719
|
+
}(), Ue = function(e) {
|
|
720
|
+
ie(t, e);
|
|
740
721
|
function t(r, n, i) {
|
|
741
722
|
var o = e.call(this) || this, a;
|
|
742
|
-
return
|
|
723
|
+
return M(r) || !r ? a = {
|
|
743
724
|
next: r ?? void 0,
|
|
744
725
|
error: n ?? void 0,
|
|
745
726
|
complete: i ?? void 0
|
|
746
|
-
} : a = r, o.destination = new
|
|
727
|
+
} : a = r, o.destination = new Ar(a), o;
|
|
747
728
|
}
|
|
748
729
|
return t;
|
|
749
|
-
}(
|
|
730
|
+
}(Ct);
|
|
750
731
|
function ae(e) {
|
|
751
|
-
|
|
732
|
+
Cr(e);
|
|
752
733
|
}
|
|
753
|
-
function
|
|
734
|
+
function Or(e) {
|
|
754
735
|
throw e;
|
|
755
736
|
}
|
|
756
|
-
var
|
|
737
|
+
var Lr = {
|
|
757
738
|
closed: !0,
|
|
758
|
-
next:
|
|
759
|
-
error:
|
|
760
|
-
complete:
|
|
761
|
-
},
|
|
739
|
+
next: tt,
|
|
740
|
+
error: Or,
|
|
741
|
+
complete: tt
|
|
742
|
+
}, Mr = function() {
|
|
762
743
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
763
744
|
}();
|
|
764
|
-
function
|
|
745
|
+
function Nr(e) {
|
|
765
746
|
return e;
|
|
766
747
|
}
|
|
767
|
-
function
|
|
768
|
-
return e.length === 0 ?
|
|
748
|
+
function $r(e) {
|
|
749
|
+
return e.length === 0 ? Nr : e.length === 1 ? e[0] : function(r) {
|
|
769
750
|
return e.reduce(function(n, i) {
|
|
770
751
|
return i(n);
|
|
771
752
|
}, r);
|
|
772
753
|
};
|
|
773
754
|
}
|
|
774
|
-
var
|
|
755
|
+
var rt = function() {
|
|
775
756
|
function e(t) {
|
|
776
757
|
t && (this._subscribe = t);
|
|
777
758
|
}
|
|
@@ -779,7 +760,7 @@ var Qe = function() {
|
|
|
779
760
|
var r = new e();
|
|
780
761
|
return r.source = this, r.operator = t, r;
|
|
781
762
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
782
|
-
var i = this, o =
|
|
763
|
+
var i = this, o = Ur(t) ? t : new Ue(t, r, n);
|
|
783
764
|
return le(function() {
|
|
784
765
|
var a = i, s = a.operator, l = a.source;
|
|
785
766
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -792,8 +773,8 @@ var Qe = function() {
|
|
|
792
773
|
}
|
|
793
774
|
}, e.prototype.forEach = function(t, r) {
|
|
794
775
|
var n = this;
|
|
795
|
-
return r =
|
|
796
|
-
var a = new
|
|
776
|
+
return r = nt(r), new r(function(i, o) {
|
|
777
|
+
var a = new Ue({
|
|
797
778
|
next: function(s) {
|
|
798
779
|
try {
|
|
799
780
|
t(s);
|
|
@@ -809,15 +790,15 @@ var Qe = function() {
|
|
|
809
790
|
}, e.prototype._subscribe = function(t) {
|
|
810
791
|
var r;
|
|
811
792
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
812
|
-
}, e.prototype[
|
|
793
|
+
}, e.prototype[Mr] = function() {
|
|
813
794
|
return this;
|
|
814
795
|
}, e.prototype.pipe = function() {
|
|
815
796
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
816
797
|
t[r] = arguments[r];
|
|
817
|
-
return
|
|
798
|
+
return $r(t)(this);
|
|
818
799
|
}, e.prototype.toPromise = function(t) {
|
|
819
800
|
var r = this;
|
|
820
|
-
return t =
|
|
801
|
+
return t = nt(t), new t(function(n, i) {
|
|
821
802
|
var o;
|
|
822
803
|
r.subscribe(function(a) {
|
|
823
804
|
return o = a;
|
|
@@ -831,32 +812,32 @@ var Qe = function() {
|
|
|
831
812
|
return new e(t);
|
|
832
813
|
}, e;
|
|
833
814
|
}();
|
|
834
|
-
function
|
|
815
|
+
function nt(e) {
|
|
835
816
|
var t;
|
|
836
|
-
return (t = e ??
|
|
817
|
+
return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
|
|
837
818
|
}
|
|
838
|
-
function
|
|
839
|
-
return e &&
|
|
819
|
+
function Rr(e) {
|
|
820
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
840
821
|
}
|
|
841
|
-
function
|
|
842
|
-
return e && e instanceof
|
|
822
|
+
function Ur(e) {
|
|
823
|
+
return e && e instanceof Ct || Rr(e) && Bt(e);
|
|
843
824
|
}
|
|
844
|
-
var
|
|
825
|
+
var Gr = Ht(function(e) {
|
|
845
826
|
return function() {
|
|
846
827
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
847
828
|
};
|
|
848
|
-
}),
|
|
849
|
-
|
|
829
|
+
}), At = function(e) {
|
|
830
|
+
ie(t, e);
|
|
850
831
|
function t() {
|
|
851
832
|
var r = e.call(this) || this;
|
|
852
833
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
853
834
|
}
|
|
854
835
|
return t.prototype.lift = function(r) {
|
|
855
|
-
var n = new
|
|
836
|
+
var n = new it(this, this);
|
|
856
837
|
return n.operator = r, n;
|
|
857
838
|
}, t.prototype._throwIfClosed = function() {
|
|
858
839
|
if (this.closed)
|
|
859
|
-
throw new
|
|
840
|
+
throw new Gr();
|
|
860
841
|
}, t.prototype.next = function(r) {
|
|
861
842
|
var n = this;
|
|
862
843
|
le(function() {
|
|
@@ -864,7 +845,7 @@ var Nr = Et(function(e) {
|
|
|
864
845
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
865
846
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
866
847
|
try {
|
|
867
|
-
for (var a =
|
|
848
|
+
for (var a = Me(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
868
849
|
var l = s.value;
|
|
869
850
|
l.next(r);
|
|
870
851
|
}
|
|
@@ -913,20 +894,20 @@ var Nr = Et(function(e) {
|
|
|
913
894
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
914
895
|
}, t.prototype._innerSubscribe = function(r) {
|
|
915
896
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
916
|
-
return o || a ?
|
|
917
|
-
n.currentObservers = null,
|
|
897
|
+
return o || a ? It : (this.currentObservers = null, s.push(r), new me(function() {
|
|
898
|
+
n.currentObservers = null, Re(s, r);
|
|
918
899
|
}));
|
|
919
900
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
920
901
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
921
902
|
i ? r.error(o) : a && r.complete();
|
|
922
903
|
}, t.prototype.asObservable = function() {
|
|
923
|
-
var r = new
|
|
904
|
+
var r = new rt();
|
|
924
905
|
return r.source = this, r;
|
|
925
906
|
}, t.create = function(r, n) {
|
|
926
|
-
return new
|
|
907
|
+
return new it(r, n);
|
|
927
908
|
}, t;
|
|
928
|
-
}(
|
|
929
|
-
|
|
909
|
+
}(rt), it = function(e) {
|
|
910
|
+
ie(t, e);
|
|
930
911
|
function t(r, n) {
|
|
931
912
|
var i = e.call(this) || this;
|
|
932
913
|
return i.destination = r, i.source = n, i;
|
|
@@ -942,17 +923,17 @@ var Nr = Et(function(e) {
|
|
|
942
923
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
943
924
|
}, t.prototype._subscribe = function(r) {
|
|
944
925
|
var n, i;
|
|
945
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
926
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
946
927
|
}, t;
|
|
947
|
-
}(
|
|
928
|
+
}(At), Ot = {
|
|
948
929
|
now: function() {
|
|
949
|
-
return (
|
|
930
|
+
return (Ot.delegate || Date).now();
|
|
950
931
|
},
|
|
951
932
|
delegate: void 0
|
|
952
|
-
},
|
|
953
|
-
|
|
933
|
+
}, Dr = function(e) {
|
|
934
|
+
ie(t, e);
|
|
954
935
|
function t(r, n, i) {
|
|
955
|
-
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 = Ot);
|
|
956
937
|
var o = e.call(this) || this;
|
|
957
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;
|
|
958
939
|
}
|
|
@@ -972,24 +953,24 @@ var Nr = Et(function(e) {
|
|
|
972
953
|
u && o.splice(0, u + 1);
|
|
973
954
|
}
|
|
974
955
|
}, t;
|
|
975
|
-
}(
|
|
976
|
-
const
|
|
977
|
-
if (
|
|
978
|
-
const r = new
|
|
979
|
-
|
|
956
|
+
}(At);
|
|
957
|
+
const ot = [], at = {}, Fr = (e, t = 0) => {
|
|
958
|
+
if (ot.indexOf(e) == -1) {
|
|
959
|
+
const r = new Dr(t);
|
|
960
|
+
at[e] = r, ot.push(e);
|
|
980
961
|
}
|
|
981
|
-
return
|
|
962
|
+
return at[e];
|
|
982
963
|
}, U = [];
|
|
983
|
-
function
|
|
964
|
+
function jr(e, t) {
|
|
984
965
|
return {
|
|
985
|
-
subscribe:
|
|
966
|
+
subscribe: be(e, t).subscribe
|
|
986
967
|
};
|
|
987
968
|
}
|
|
988
|
-
function
|
|
969
|
+
function be(e, t = A) {
|
|
989
970
|
let r;
|
|
990
971
|
const n = /* @__PURE__ */ new Set();
|
|
991
972
|
function i(s) {
|
|
992
|
-
if (
|
|
973
|
+
if (St(e, s) && (e = s, r)) {
|
|
993
974
|
const l = !U.length;
|
|
994
975
|
for (const u of n)
|
|
995
976
|
u[1](), U.push(u, e);
|
|
@@ -1011,12 +992,12 @@ function me(e, t = A) {
|
|
|
1011
992
|
}
|
|
1012
993
|
return { set: i, update: o, subscribe: a };
|
|
1013
994
|
}
|
|
1014
|
-
function
|
|
995
|
+
function W(e, t, r) {
|
|
1015
996
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1016
997
|
if (!i.every(Boolean))
|
|
1017
998
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1018
999
|
const o = t.length < 2;
|
|
1019
|
-
return
|
|
1000
|
+
return jr(r, (a, s) => {
|
|
1020
1001
|
let l = !1;
|
|
1021
1002
|
const u = [];
|
|
1022
1003
|
let h = 0, f = A;
|
|
@@ -1025,9 +1006,9 @@ function X(e, t, r) {
|
|
|
1025
1006
|
return;
|
|
1026
1007
|
f();
|
|
1027
1008
|
const d = t(n ? u[0] : u, a, s);
|
|
1028
|
-
o ? a(d) : f =
|
|
1009
|
+
o ? a(d) : f = qe(d) ? d : A;
|
|
1029
1010
|
}, p = i.map(
|
|
1030
|
-
(d, y) =>
|
|
1011
|
+
(d, y) => wt(
|
|
1031
1012
|
d,
|
|
1032
1013
|
(S) => {
|
|
1033
1014
|
u[y] = S, h &= ~(1 << y), l && c();
|
|
@@ -1038,115 +1019,157 @@ function X(e, t, r) {
|
|
|
1038
1019
|
)
|
|
1039
1020
|
);
|
|
1040
1021
|
return l = !0, c(), function() {
|
|
1041
|
-
|
|
1022
|
+
te(p), f(), l = !1;
|
|
1042
1023
|
};
|
|
1043
1024
|
});
|
|
1044
1025
|
}
|
|
1045
|
-
function
|
|
1026
|
+
function kr(e) {
|
|
1046
1027
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1047
1028
|
}
|
|
1048
|
-
var
|
|
1049
|
-
return
|
|
1029
|
+
var Vr = function(t) {
|
|
1030
|
+
return zr(t) && !Wr(t);
|
|
1050
1031
|
};
|
|
1051
|
-
function
|
|
1032
|
+
function zr(e) {
|
|
1052
1033
|
return !!e && typeof e == "object";
|
|
1053
1034
|
}
|
|
1054
|
-
function
|
|
1035
|
+
function Wr(e) {
|
|
1055
1036
|
var t = Object.prototype.toString.call(e);
|
|
1056
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1037
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
1057
1038
|
}
|
|
1058
|
-
var
|
|
1059
|
-
function
|
|
1060
|
-
return e.$$typeof ===
|
|
1039
|
+
var Xr = typeof Symbol == "function" && Symbol.for, qr = Xr ? Symbol.for("react.element") : 60103;
|
|
1040
|
+
function Zr(e) {
|
|
1041
|
+
return e.$$typeof === qr;
|
|
1061
1042
|
}
|
|
1062
|
-
function
|
|
1043
|
+
function Yr(e) {
|
|
1063
1044
|
return Array.isArray(e) ? [] : {};
|
|
1064
1045
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1046
|
+
function K(e, t) {
|
|
1047
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Yr(e), e, t) : e;
|
|
1067
1048
|
}
|
|
1068
|
-
function
|
|
1049
|
+
function Qr(e, t, r) {
|
|
1069
1050
|
return e.concat(t).map(function(n) {
|
|
1070
|
-
return
|
|
1051
|
+
return K(n, r);
|
|
1071
1052
|
});
|
|
1072
1053
|
}
|
|
1073
|
-
function
|
|
1054
|
+
function Jr(e, t) {
|
|
1074
1055
|
if (!t.customMerge)
|
|
1075
|
-
return
|
|
1056
|
+
return F;
|
|
1076
1057
|
var r = t.customMerge(e);
|
|
1077
|
-
return typeof r == "function" ? r :
|
|
1058
|
+
return typeof r == "function" ? r : F;
|
|
1078
1059
|
}
|
|
1079
|
-
function
|
|
1060
|
+
function Kr(e) {
|
|
1080
1061
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1081
1062
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1082
1063
|
}) : [];
|
|
1083
1064
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return Object.keys(e).concat(
|
|
1065
|
+
function st(e) {
|
|
1066
|
+
return Object.keys(e).concat(Kr(e));
|
|
1086
1067
|
}
|
|
1087
|
-
function
|
|
1068
|
+
function Lt(e, t) {
|
|
1088
1069
|
try {
|
|
1089
1070
|
return t in e;
|
|
1090
1071
|
} catch {
|
|
1091
1072
|
return !1;
|
|
1092
1073
|
}
|
|
1093
1074
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1075
|
+
function en(e, t) {
|
|
1076
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1096
1077
|
}
|
|
1097
|
-
function
|
|
1078
|
+
function tn(e, t, r) {
|
|
1098
1079
|
var n = {};
|
|
1099
|
-
return r.isMergeableObject(e) &&
|
|
1100
|
-
n[i] =
|
|
1101
|
-
}),
|
|
1102
|
-
|
|
1080
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1081
|
+
n[i] = K(e[i], r);
|
|
1082
|
+
}), st(t).forEach(function(i) {
|
|
1083
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1103
1084
|
}), n;
|
|
1104
1085
|
}
|
|
1105
|
-
function
|
|
1106
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1086
|
+
function F(e, t, r) {
|
|
1087
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = K;
|
|
1107
1088
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1108
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1089
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : K(t, r);
|
|
1109
1090
|
}
|
|
1110
|
-
|
|
1091
|
+
F.all = function(t, r) {
|
|
1111
1092
|
if (!Array.isArray(t))
|
|
1112
1093
|
throw new Error("first argument should be an array");
|
|
1113
1094
|
return t.reduce(function(n, i) {
|
|
1114
|
-
return
|
|
1095
|
+
return F(n, i, r);
|
|
1115
1096
|
}, {});
|
|
1116
1097
|
};
|
|
1117
|
-
var
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
|
|
1098
|
+
var rn = F, nn = rn;
|
|
1099
|
+
const on = /* @__PURE__ */ kr(nn);
|
|
1100
|
+
var Ge = function(e, t) {
|
|
1101
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1102
|
+
r.__proto__ = n;
|
|
1103
|
+
} || function(r, n) {
|
|
1104
|
+
for (var i in n)
|
|
1105
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1106
|
+
}, Ge(e, t);
|
|
1107
|
+
};
|
|
1108
|
+
function ve(e, t) {
|
|
1109
|
+
if (typeof t != "function" && t !== null)
|
|
1110
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1111
|
+
Ge(e, t);
|
|
1112
|
+
function r() {
|
|
1113
|
+
this.constructor = e;
|
|
1114
|
+
}
|
|
1115
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1116
|
+
}
|
|
1117
|
+
var L = function() {
|
|
1118
|
+
return L = Object.assign || function(t) {
|
|
1119
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1120
|
+
r = arguments[n];
|
|
1121
|
+
for (var o in r)
|
|
1122
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1123
|
+
}
|
|
1124
|
+
return t;
|
|
1125
|
+
}, L.apply(this, arguments);
|
|
1126
|
+
};
|
|
1127
|
+
function an(e, t) {
|
|
1128
|
+
var r = {};
|
|
1129
|
+
for (var n in e)
|
|
1130
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1131
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1132
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1133
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1134
|
+
return r;
|
|
1135
|
+
}
|
|
1136
|
+
function Se(e, t, r) {
|
|
1137
|
+
if (r || arguments.length === 2)
|
|
1138
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1139
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1140
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1141
|
+
}
|
|
1142
|
+
function we(e, t) {
|
|
1143
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
|
|
1121
1144
|
return i(e, {
|
|
1122
1145
|
cache: r,
|
|
1123
1146
|
serializer: n
|
|
1124
1147
|
});
|
|
1125
1148
|
}
|
|
1126
|
-
function
|
|
1149
|
+
function sn(e) {
|
|
1127
1150
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1128
1151
|
}
|
|
1129
|
-
function
|
|
1130
|
-
var i =
|
|
1152
|
+
function un(e, t, r, n) {
|
|
1153
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1131
1154
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1132
1155
|
}
|
|
1133
|
-
function
|
|
1156
|
+
function Mt(e, t, r) {
|
|
1134
1157
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1135
1158
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1136
1159
|
}
|
|
1137
|
-
function
|
|
1160
|
+
function Nt(e, t, r, n, i) {
|
|
1138
1161
|
return r.bind(t, e, n, i);
|
|
1139
1162
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var r = e.length === 1 ?
|
|
1142
|
-
return
|
|
1163
|
+
function ln(e, t) {
|
|
1164
|
+
var r = e.length === 1 ? un : Mt;
|
|
1165
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
1143
1166
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1167
|
+
function hn(e, t) {
|
|
1168
|
+
return Nt(e, this, Mt, t.cache.create(), t.serializer);
|
|
1146
1169
|
}
|
|
1147
|
-
var
|
|
1170
|
+
var cn = function() {
|
|
1148
1171
|
return JSON.stringify(arguments);
|
|
1149
|
-
},
|
|
1172
|
+
}, fn = (
|
|
1150
1173
|
/** @class */
|
|
1151
1174
|
function() {
|
|
1152
1175
|
function e() {
|
|
@@ -1158,61 +1181,71 @@ var an = function() {
|
|
|
1158
1181
|
this.cache[t] = r;
|
|
1159
1182
|
}, e;
|
|
1160
1183
|
}()
|
|
1161
|
-
),
|
|
1184
|
+
), pn = {
|
|
1162
1185
|
create: function() {
|
|
1163
|
-
return new
|
|
1186
|
+
return new fn();
|
|
1164
1187
|
}
|
|
1165
|
-
},
|
|
1166
|
-
variadic:
|
|
1167
|
-
},
|
|
1188
|
+
}, Pe = {
|
|
1189
|
+
variadic: hn
|
|
1190
|
+
}, fe = function() {
|
|
1191
|
+
return fe = Object.assign || function(t) {
|
|
1192
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1193
|
+
r = arguments[n];
|
|
1194
|
+
for (var o in r)
|
|
1195
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1196
|
+
}
|
|
1197
|
+
return t;
|
|
1198
|
+
}, fe.apply(this, arguments);
|
|
1199
|
+
};
|
|
1200
|
+
var b;
|
|
1168
1201
|
(function(e) {
|
|
1169
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";
|
|
1170
1203
|
})(b || (b = {}));
|
|
1171
|
-
var
|
|
1204
|
+
var x;
|
|
1172
1205
|
(function(e) {
|
|
1173
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";
|
|
1174
|
-
})(
|
|
1175
|
-
var
|
|
1207
|
+
})(x || (x = {}));
|
|
1208
|
+
var j;
|
|
1176
1209
|
(function(e) {
|
|
1177
1210
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1178
|
-
})(
|
|
1179
|
-
function
|
|
1180
|
-
return e.type ===
|
|
1211
|
+
})(j || (j = {}));
|
|
1212
|
+
function ut(e) {
|
|
1213
|
+
return e.type === x.literal;
|
|
1181
1214
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return e.type ===
|
|
1215
|
+
function dn(e) {
|
|
1216
|
+
return e.type === x.argument;
|
|
1184
1217
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return e.type ===
|
|
1218
|
+
function $t(e) {
|
|
1219
|
+
return e.type === x.number;
|
|
1187
1220
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return e.type ===
|
|
1221
|
+
function Rt(e) {
|
|
1222
|
+
return e.type === x.date;
|
|
1190
1223
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return e.type ===
|
|
1224
|
+
function Ut(e) {
|
|
1225
|
+
return e.type === x.time;
|
|
1193
1226
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return e.type ===
|
|
1227
|
+
function Gt(e) {
|
|
1228
|
+
return e.type === x.select;
|
|
1196
1229
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e.type ===
|
|
1230
|
+
function Dt(e) {
|
|
1231
|
+
return e.type === x.plural;
|
|
1199
1232
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1233
|
+
function mn(e) {
|
|
1234
|
+
return e.type === x.pound;
|
|
1202
1235
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1236
|
+
function Ft(e) {
|
|
1237
|
+
return e.type === x.tag;
|
|
1205
1238
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1239
|
+
function jt(e) {
|
|
1240
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1208
1241
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1242
|
+
function De(e) {
|
|
1243
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1211
1244
|
}
|
|
1212
|
-
var
|
|
1213
|
-
function
|
|
1245
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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 vn(e) {
|
|
1214
1247
|
var t = {};
|
|
1215
|
-
return e.replace(
|
|
1248
|
+
return e.replace(bn, function(r) {
|
|
1216
1249
|
var n = r.length;
|
|
1217
1250
|
switch (r[0]) {
|
|
1218
1251
|
case "G":
|
|
@@ -1301,11 +1334,21 @@ function fn(e) {
|
|
|
1301
1334
|
return "";
|
|
1302
1335
|
}), t;
|
|
1303
1336
|
}
|
|
1304
|
-
var
|
|
1305
|
-
function
|
|
1337
|
+
var _ = function() {
|
|
1338
|
+
return _ = Object.assign || function(t) {
|
|
1339
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1340
|
+
r = arguments[n];
|
|
1341
|
+
for (var o in r)
|
|
1342
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1343
|
+
}
|
|
1344
|
+
return t;
|
|
1345
|
+
}, _.apply(this, arguments);
|
|
1346
|
+
};
|
|
1347
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1348
|
+
function gn(e) {
|
|
1306
1349
|
if (e.length === 0)
|
|
1307
1350
|
throw new Error("Number skeleton cannot be empty");
|
|
1308
|
-
for (var t = e.split(
|
|
1351
|
+
for (var t = e.split(yn).filter(function(c) {
|
|
1309
1352
|
return c.length > 0;
|
|
1310
1353
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1311
1354
|
var o = i[n], a = o.split("/");
|
|
@@ -1320,17 +1363,17 @@ function dn(e) {
|
|
|
1320
1363
|
}
|
|
1321
1364
|
return r;
|
|
1322
1365
|
}
|
|
1323
|
-
function
|
|
1366
|
+
function xn(e) {
|
|
1324
1367
|
return e.replace(/^(.*?)-/, "");
|
|
1325
1368
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1369
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1370
|
+
function ht(e) {
|
|
1328
1371
|
var t = {};
|
|
1329
|
-
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(Vt, function(r, n, i) {
|
|
1330
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)), "";
|
|
1331
1374
|
}), t;
|
|
1332
1375
|
}
|
|
1333
|
-
function
|
|
1376
|
+
function Wt(e) {
|
|
1334
1377
|
switch (e) {
|
|
1335
1378
|
case "sign-auto":
|
|
1336
1379
|
return {
|
|
@@ -1370,7 +1413,7 @@ function Ft(e) {
|
|
|
1370
1413
|
};
|
|
1371
1414
|
}
|
|
1372
1415
|
}
|
|
1373
|
-
function
|
|
1416
|
+
function En(e) {
|
|
1374
1417
|
var t;
|
|
1375
1418
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1376
1419
|
notation: "engineering"
|
|
@@ -1378,17 +1421,17 @@ function vn(e) {
|
|
|
1378
1421
|
notation: "scientific"
|
|
1379
1422
|
}, e = e.slice(1)), t) {
|
|
1380
1423
|
var r = e.slice(0, 2);
|
|
1381
|
-
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)), !zt.test(e))
|
|
1382
1425
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1383
1426
|
t.minimumIntegerDigits = e.length;
|
|
1384
1427
|
}
|
|
1385
1428
|
return t;
|
|
1386
1429
|
}
|
|
1387
|
-
function
|
|
1388
|
-
var t = {}, r =
|
|
1430
|
+
function ct(e) {
|
|
1431
|
+
var t = {}, r = Wt(e);
|
|
1389
1432
|
return r || t;
|
|
1390
1433
|
}
|
|
1391
|
-
function
|
|
1434
|
+
function Tn(e) {
|
|
1392
1435
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1393
1436
|
var i = n[r];
|
|
1394
1437
|
switch (i.stem) {
|
|
@@ -1412,7 +1455,7 @@ function gn(e) {
|
|
|
1412
1455
|
continue;
|
|
1413
1456
|
case "measure-unit":
|
|
1414
1457
|
case "unit":
|
|
1415
|
-
t.style = "unit", t.unit =
|
|
1458
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1416
1459
|
continue;
|
|
1417
1460
|
case "compact-short":
|
|
1418
1461
|
case "K":
|
|
@@ -1423,13 +1466,13 @@ function gn(e) {
|
|
|
1423
1466
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1424
1467
|
continue;
|
|
1425
1468
|
case "scientific":
|
|
1426
|
-
t =
|
|
1427
|
-
return
|
|
1469
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1470
|
+
return _(_({}, l), ct(u));
|
|
1428
1471
|
}, {}));
|
|
1429
1472
|
continue;
|
|
1430
1473
|
case "engineering":
|
|
1431
|
-
t =
|
|
1432
|
-
return
|
|
1474
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1475
|
+
return _(_({}, l), ct(u));
|
|
1433
1476
|
}, {}));
|
|
1434
1477
|
continue;
|
|
1435
1478
|
case "notation-simple":
|
|
@@ -1474,7 +1517,7 @@ function gn(e) {
|
|
|
1474
1517
|
case "integer-width":
|
|
1475
1518
|
if (i.options.length > 1)
|
|
1476
1519
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1477
|
-
i.options[0].replace(
|
|
1520
|
+
i.options[0].replace(_n, function(l, u, h, f, c, p) {
|
|
1478
1521
|
if (u)
|
|
1479
1522
|
t.minimumIntegerDigits = h.length;
|
|
1480
1523
|
else {
|
|
@@ -1487,28 +1530,28 @@ function gn(e) {
|
|
|
1487
1530
|
});
|
|
1488
1531
|
continue;
|
|
1489
1532
|
}
|
|
1490
|
-
if (
|
|
1533
|
+
if (zt.test(i.stem)) {
|
|
1491
1534
|
t.minimumIntegerDigits = i.stem.length;
|
|
1492
1535
|
continue;
|
|
1493
1536
|
}
|
|
1494
|
-
if (
|
|
1537
|
+
if (lt.test(i.stem)) {
|
|
1495
1538
|
if (i.options.length > 1)
|
|
1496
1539
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1497
|
-
i.stem.replace(
|
|
1540
|
+
i.stem.replace(lt, function(l, u, h, f, c, p) {
|
|
1498
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), "";
|
|
1499
1542
|
});
|
|
1500
1543
|
var o = i.options[0];
|
|
1501
|
-
o === "w" ? t =
|
|
1544
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ht(o)));
|
|
1502
1545
|
continue;
|
|
1503
1546
|
}
|
|
1504
|
-
if (
|
|
1505
|
-
t =
|
|
1547
|
+
if (Vt.test(i.stem)) {
|
|
1548
|
+
t = _(_({}, t), ht(i.stem));
|
|
1506
1549
|
continue;
|
|
1507
1550
|
}
|
|
1508
|
-
var a =
|
|
1509
|
-
a && (t =
|
|
1510
|
-
var s =
|
|
1511
|
-
s && (t =
|
|
1551
|
+
var a = Wt(i.stem);
|
|
1552
|
+
a && (t = _(_({}, t), a));
|
|
1553
|
+
var s = En(i.stem);
|
|
1554
|
+
s && (t = _(_({}, t), s));
|
|
1512
1555
|
}
|
|
1513
1556
|
return t;
|
|
1514
1557
|
}
|
|
@@ -2927,13 +2970,13 @@ var se = {
|
|
|
2927
2970
|
"h"
|
|
2928
2971
|
]
|
|
2929
2972
|
};
|
|
2930
|
-
function
|
|
2973
|
+
function Sn(e, t) {
|
|
2931
2974
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2932
2975
|
var i = e.charAt(n);
|
|
2933
2976
|
if (i === "j") {
|
|
2934
2977
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2935
2978
|
o++, n++;
|
|
2936
|
-
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 = wn(t);
|
|
2937
2980
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2938
2981
|
r += l;
|
|
2939
2982
|
for (; a-- > 0; )
|
|
@@ -2943,7 +2986,7 @@ function yn(e, t) {
|
|
|
2943
2986
|
}
|
|
2944
2987
|
return r;
|
|
2945
2988
|
}
|
|
2946
|
-
function
|
|
2989
|
+
function wn(e) {
|
|
2947
2990
|
var t = e.hourCycle;
|
|
2948
2991
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2949
2992
|
e.hourCycles && // @ts-ignore
|
|
@@ -2965,20 +3008,20 @@ function xn(e) {
|
|
|
2965
3008
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2966
3009
|
return i[0];
|
|
2967
3010
|
}
|
|
2968
|
-
var
|
|
3011
|
+
var He, Pn = new RegExp("^".concat(kt.source, "*")), Hn = new RegExp("".concat(kt.source, "*$"));
|
|
2969
3012
|
function v(e, t) {
|
|
2970
3013
|
return { start: e, end: t };
|
|
2971
3014
|
}
|
|
2972
|
-
var
|
|
3015
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bn = !!String.fromCodePoint, Cn = !!Object.fromEntries, An = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Nn = Mn ? Number.isSafeInteger : function(e) {
|
|
2973
3016
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2974
|
-
},
|
|
3017
|
+
}, Fe = !0;
|
|
2975
3018
|
try {
|
|
2976
|
-
var
|
|
2977
|
-
|
|
3019
|
+
var $n = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3020
|
+
Fe = ((He = $n.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2978
3021
|
} catch {
|
|
2979
|
-
|
|
3022
|
+
Fe = !1;
|
|
2980
3023
|
}
|
|
2981
|
-
var
|
|
3024
|
+
var ft = In ? (
|
|
2982
3025
|
// Native
|
|
2983
3026
|
function(t, r, n) {
|
|
2984
3027
|
return t.startsWith(r, n);
|
|
@@ -2988,7 +3031,7 @@ var st = Tn ? (
|
|
|
2988
3031
|
function(t, r, n) {
|
|
2989
3032
|
return t.slice(n, n + r.length) === r;
|
|
2990
3033
|
}
|
|
2991
|
-
),
|
|
3034
|
+
), je = Bn ? String.fromCodePoint : (
|
|
2992
3035
|
// IE11
|
|
2993
3036
|
function() {
|
|
2994
3037
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3000,9 +3043,9 @@ var st = Tn ? (
|
|
|
3000
3043
|
}
|
|
3001
3044
|
return n;
|
|
3002
3045
|
}
|
|
3003
|
-
),
|
|
3046
|
+
), pt = (
|
|
3004
3047
|
// native
|
|
3005
|
-
|
|
3048
|
+
Cn ? Object.fromEntries : (
|
|
3006
3049
|
// Ponyfill
|
|
3007
3050
|
function(t) {
|
|
3008
3051
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3012,7 +3055,7 @@ var st = Tn ? (
|
|
|
3012
3055
|
return r;
|
|
3013
3056
|
}
|
|
3014
3057
|
)
|
|
3015
|
-
),
|
|
3058
|
+
), Xt = An ? (
|
|
3016
3059
|
// Native
|
|
3017
3060
|
function(t, r) {
|
|
3018
3061
|
return t.codePointAt(r);
|
|
@@ -3026,7 +3069,7 @@ var st = Tn ? (
|
|
|
3026
3069
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3027
3070
|
}
|
|
3028
3071
|
}
|
|
3029
|
-
),
|
|
3072
|
+
), Rn = On ? (
|
|
3030
3073
|
// Native
|
|
3031
3074
|
function(t) {
|
|
3032
3075
|
return t.trimStart();
|
|
@@ -3034,9 +3077,9 @@ var st = Tn ? (
|
|
|
3034
3077
|
) : (
|
|
3035
3078
|
// Ponyfill
|
|
3036
3079
|
function(t) {
|
|
3037
|
-
return t.replace(
|
|
3080
|
+
return t.replace(Pn, "");
|
|
3038
3081
|
}
|
|
3039
|
-
),
|
|
3082
|
+
), Un = Ln ? (
|
|
3040
3083
|
// Native
|
|
3041
3084
|
function(t) {
|
|
3042
3085
|
return t.trimEnd();
|
|
@@ -3044,32 +3087,32 @@ var st = Tn ? (
|
|
|
3044
3087
|
) : (
|
|
3045
3088
|
// Ponyfill
|
|
3046
3089
|
function(t) {
|
|
3047
|
-
return t.replace(
|
|
3090
|
+
return t.replace(Hn, "");
|
|
3048
3091
|
}
|
|
3049
3092
|
);
|
|
3050
|
-
function
|
|
3093
|
+
function qt(e, t) {
|
|
3051
3094
|
return new RegExp(e, t);
|
|
3052
3095
|
}
|
|
3053
|
-
var
|
|
3054
|
-
if (
|
|
3055
|
-
var
|
|
3056
|
-
|
|
3096
|
+
var ke;
|
|
3097
|
+
if (Fe) {
|
|
3098
|
+
var dt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3099
|
+
ke = function(t, r) {
|
|
3057
3100
|
var n;
|
|
3058
|
-
|
|
3059
|
-
var i =
|
|
3101
|
+
dt.lastIndex = r;
|
|
3102
|
+
var i = dt.exec(t);
|
|
3060
3103
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3061
3104
|
};
|
|
3062
3105
|
} else
|
|
3063
|
-
|
|
3106
|
+
ke = function(t, r) {
|
|
3064
3107
|
for (var n = []; ; ) {
|
|
3065
|
-
var i =
|
|
3066
|
-
if (i === void 0 ||
|
|
3108
|
+
var i = Xt(t, r);
|
|
3109
|
+
if (i === void 0 || Zt(i) || jn(i))
|
|
3067
3110
|
break;
|
|
3068
3111
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3069
3112
|
}
|
|
3070
|
-
return
|
|
3113
|
+
return je.apply(void 0, n);
|
|
3071
3114
|
};
|
|
3072
|
-
var
|
|
3115
|
+
var Gn = (
|
|
3073
3116
|
/** @class */
|
|
3074
3117
|
function() {
|
|
3075
3118
|
function e(t, r) {
|
|
@@ -3093,14 +3136,14 @@ var Mn = (
|
|
|
3093
3136
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3094
3137
|
var s = this.clonePosition();
|
|
3095
3138
|
this.bump(), i.push({
|
|
3096
|
-
type:
|
|
3139
|
+
type: x.pound,
|
|
3097
3140
|
location: v(s, this.clonePosition())
|
|
3098
3141
|
});
|
|
3099
3142
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3100
3143
|
if (n)
|
|
3101
3144
|
break;
|
|
3102
3145
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3103
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3146
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3104
3147
|
var a = this.parseTag(t, r);
|
|
3105
3148
|
if (a.err)
|
|
3106
3149
|
return a;
|
|
@@ -3121,7 +3164,7 @@ var Mn = (
|
|
|
3121
3164
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3122
3165
|
return {
|
|
3123
3166
|
val: {
|
|
3124
|
-
type:
|
|
3167
|
+
type: x.literal,
|
|
3125
3168
|
value: "<".concat(i, "/>"),
|
|
3126
3169
|
location: v(n, this.clonePosition())
|
|
3127
3170
|
},
|
|
@@ -3133,12 +3176,12 @@ var Mn = (
|
|
|
3133
3176
|
return o;
|
|
3134
3177
|
var a = o.val, s = this.clonePosition();
|
|
3135
3178
|
if (this.bumpIf("</")) {
|
|
3136
|
-
if (this.isEOF() || !
|
|
3179
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3137
3180
|
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3138
3181
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3139
3182
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3140
3183
|
val: {
|
|
3141
|
-
type:
|
|
3184
|
+
type: x.tag,
|
|
3142
3185
|
value: i,
|
|
3143
3186
|
children: a,
|
|
3144
3187
|
location: v(n, this.clonePosition())
|
|
@@ -3151,7 +3194,7 @@ var Mn = (
|
|
|
3151
3194
|
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3152
3195
|
}, e.prototype.parseTagName = function() {
|
|
3153
3196
|
var t = this.offset();
|
|
3154
|
-
for (this.bump(); !this.isEOF() &&
|
|
3197
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3155
3198
|
this.bump();
|
|
3156
3199
|
return this.message.slice(t, this.offset());
|
|
3157
3200
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3175,12 +3218,12 @@ var Mn = (
|
|
|
3175
3218
|
}
|
|
3176
3219
|
var l = v(n, this.clonePosition());
|
|
3177
3220
|
return {
|
|
3178
|
-
val: { type:
|
|
3221
|
+
val: { type: x.literal, value: i, location: l },
|
|
3179
3222
|
err: null
|
|
3180
3223
|
};
|
|
3181
3224
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3182
3225
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3183
|
-
!
|
|
3226
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3184
3227
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3185
3228
|
if (this.isEOF() || this.char() !== 39)
|
|
3186
3229
|
return null;
|
|
@@ -3214,12 +3257,12 @@ var Mn = (
|
|
|
3214
3257
|
r.push(n);
|
|
3215
3258
|
this.bump();
|
|
3216
3259
|
}
|
|
3217
|
-
return
|
|
3260
|
+
return je.apply(void 0, r);
|
|
3218
3261
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3219
3262
|
if (this.isEOF())
|
|
3220
3263
|
return null;
|
|
3221
3264
|
var n = this.char();
|
|
3222
|
-
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(), je(n));
|
|
3223
3266
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3224
3267
|
var n = this.clonePosition();
|
|
3225
3268
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3235,7 +3278,7 @@ var Mn = (
|
|
|
3235
3278
|
case 125:
|
|
3236
3279
|
return this.bump(), {
|
|
3237
3280
|
val: {
|
|
3238
|
-
type:
|
|
3281
|
+
type: x.argument,
|
|
3239
3282
|
// value does not include the opening and closing braces.
|
|
3240
3283
|
value: i,
|
|
3241
3284
|
location: v(n, this.clonePosition())
|
|
@@ -3248,7 +3291,7 @@ var Mn = (
|
|
|
3248
3291
|
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3249
3292
|
}
|
|
3250
3293
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3251
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3294
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3252
3295
|
this.bumpTo(i);
|
|
3253
3296
|
var o = this.clonePosition(), a = v(t, o);
|
|
3254
3297
|
return { value: n, location: a };
|
|
@@ -3267,7 +3310,7 @@ var Mn = (
|
|
|
3267
3310
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3268
3311
|
if (f.err)
|
|
3269
3312
|
return f;
|
|
3270
|
-
var c =
|
|
3313
|
+
var c = Un(f.val);
|
|
3271
3314
|
if (c.length === 0)
|
|
3272
3315
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3273
3316
|
var p = v(h, this.clonePosition());
|
|
@@ -3277,25 +3320,25 @@ var Mn = (
|
|
|
3277
3320
|
if (d.err)
|
|
3278
3321
|
return d;
|
|
3279
3322
|
var y = v(i, this.clonePosition());
|
|
3280
|
-
if (u &&
|
|
3281
|
-
var S =
|
|
3323
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3324
|
+
var S = Rn(u.style.slice(2));
|
|
3282
3325
|
if (s === "number") {
|
|
3283
3326
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3284
3327
|
return f.err ? f : {
|
|
3285
|
-
val: { type:
|
|
3328
|
+
val: { type: x.number, value: n, location: y, style: f.val },
|
|
3286
3329
|
err: null
|
|
3287
3330
|
};
|
|
3288
3331
|
} else {
|
|
3289
3332
|
if (S.length === 0)
|
|
3290
3333
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
|
|
3291
3334
|
var H = S;
|
|
3292
|
-
this.locale && (H =
|
|
3335
|
+
this.locale && (H = Sn(S, this.locale));
|
|
3293
3336
|
var c = {
|
|
3294
|
-
type:
|
|
3337
|
+
type: j.dateTime,
|
|
3295
3338
|
pattern: H,
|
|
3296
3339
|
location: u.styleLocation,
|
|
3297
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3298
|
-
}, E = s === "date" ?
|
|
3340
|
+
parsedOptions: this.shouldParseSkeletons ? vn(H) : {}
|
|
3341
|
+
}, E = s === "date" ? x.date : x.time;
|
|
3299
3342
|
return {
|
|
3300
3343
|
val: { type: E, value: n, location: y, style: c },
|
|
3301
3344
|
err: null
|
|
@@ -3304,7 +3347,7 @@ var Mn = (
|
|
|
3304
3347
|
}
|
|
3305
3348
|
return {
|
|
3306
3349
|
val: {
|
|
3307
|
-
type: s === "number" ?
|
|
3350
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3308
3351
|
value: n,
|
|
3309
3352
|
location: y,
|
|
3310
3353
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3315,9 +3358,9 @@ var Mn = (
|
|
|
3315
3358
|
case "plural":
|
|
3316
3359
|
case "selectordinal":
|
|
3317
3360
|
case "select": {
|
|
3318
|
-
var
|
|
3361
|
+
var g = this.clonePosition();
|
|
3319
3362
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3320
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
|
3363
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(g, fe({}, g)));
|
|
3321
3364
|
this.bumpSpace();
|
|
3322
3365
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3323
3366
|
if (s !== "select" && w.value === "offset") {
|
|
@@ -3335,23 +3378,23 @@ var Mn = (
|
|
|
3335
3378
|
var d = this.tryParseArgumentClose(i);
|
|
3336
3379
|
if (d.err)
|
|
3337
3380
|
return d;
|
|
3338
|
-
var
|
|
3381
|
+
var Z = v(i, this.clonePosition());
|
|
3339
3382
|
return s === "select" ? {
|
|
3340
3383
|
val: {
|
|
3341
|
-
type:
|
|
3384
|
+
type: x.select,
|
|
3342
3385
|
value: n,
|
|
3343
|
-
options:
|
|
3344
|
-
location:
|
|
3386
|
+
options: pt(I.val),
|
|
3387
|
+
location: Z
|
|
3345
3388
|
},
|
|
3346
3389
|
err: null
|
|
3347
3390
|
} : {
|
|
3348
3391
|
val: {
|
|
3349
|
-
type:
|
|
3392
|
+
type: x.plural,
|
|
3350
3393
|
value: n,
|
|
3351
|
-
options:
|
|
3394
|
+
options: pt(I.val),
|
|
3352
3395
|
offset: m,
|
|
3353
3396
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3354
|
-
location:
|
|
3397
|
+
location: Z
|
|
3355
3398
|
},
|
|
3356
3399
|
err: null
|
|
3357
3400
|
};
|
|
@@ -3399,16 +3442,16 @@ var Mn = (
|
|
|
3399
3442
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3400
3443
|
var n = [];
|
|
3401
3444
|
try {
|
|
3402
|
-
n =
|
|
3445
|
+
n = gn(t);
|
|
3403
3446
|
} catch {
|
|
3404
3447
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3405
3448
|
}
|
|
3406
3449
|
return {
|
|
3407
3450
|
val: {
|
|
3408
|
-
type:
|
|
3451
|
+
type: j.number,
|
|
3409
3452
|
tokens: n,
|
|
3410
3453
|
location: r,
|
|
3411
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3454
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3412
3455
|
},
|
|
3413
3456
|
err: null
|
|
3414
3457
|
};
|
|
@@ -3456,7 +3499,7 @@ var Mn = (
|
|
|
3456
3499
|
break;
|
|
3457
3500
|
}
|
|
3458
3501
|
var l = v(i, this.clonePosition());
|
|
3459
|
-
return o ? (a *= n,
|
|
3502
|
+
return o ? (a *= n, Nn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3460
3503
|
}, e.prototype.offset = function() {
|
|
3461
3504
|
return this.position.offset;
|
|
3462
3505
|
}, e.prototype.isEOF = function() {
|
|
@@ -3471,7 +3514,7 @@ var Mn = (
|
|
|
3471
3514
|
var t = this.position.offset;
|
|
3472
3515
|
if (t >= this.message.length)
|
|
3473
3516
|
throw Error("out of bound");
|
|
3474
|
-
var r =
|
|
3517
|
+
var r = Xt(this.message, t);
|
|
3475
3518
|
if (r === void 0)
|
|
3476
3519
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3477
3520
|
return r;
|
|
@@ -3490,7 +3533,7 @@ var Mn = (
|
|
|
3490
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);
|
|
3491
3534
|
}
|
|
3492
3535
|
}, e.prototype.bumpIf = function(t) {
|
|
3493
|
-
if (
|
|
3536
|
+
if (ft(this.message, t, this.offset())) {
|
|
3494
3537
|
for (var r = 0; r < t.length; r++)
|
|
3495
3538
|
this.bump();
|
|
3496
3539
|
return !0;
|
|
@@ -3512,7 +3555,7 @@ var Mn = (
|
|
|
3512
3555
|
break;
|
|
3513
3556
|
}
|
|
3514
3557
|
}, e.prototype.bumpSpace = function() {
|
|
3515
|
-
for (; !this.isEOF() &&
|
|
3558
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3516
3559
|
this.bump();
|
|
3517
3560
|
}, e.prototype.peek = function() {
|
|
3518
3561
|
if (this.isEOF())
|
|
@@ -3522,47 +3565,47 @@ var Mn = (
|
|
|
3522
3565
|
}, e;
|
|
3523
3566
|
}()
|
|
3524
3567
|
);
|
|
3525
|
-
function
|
|
3568
|
+
function Ve(e) {
|
|
3526
3569
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3527
3570
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3571
|
+
function Dn(e) {
|
|
3572
|
+
return Ve(e) || e === 47;
|
|
3530
3573
|
}
|
|
3531
|
-
function
|
|
3574
|
+
function Fn(e) {
|
|
3532
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;
|
|
3533
3576
|
}
|
|
3534
|
-
function
|
|
3577
|
+
function Zt(e) {
|
|
3535
3578
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3536
3579
|
}
|
|
3537
|
-
function
|
|
3580
|
+
function jn(e) {
|
|
3538
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;
|
|
3539
3582
|
}
|
|
3540
|
-
function
|
|
3583
|
+
function ze(e) {
|
|
3541
3584
|
e.forEach(function(t) {
|
|
3542
|
-
if (delete t.location,
|
|
3585
|
+
if (delete t.location, Gt(t) || Dt(t))
|
|
3543
3586
|
for (var r in t.options)
|
|
3544
|
-
delete t.options[r].location,
|
|
3587
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3545
3588
|
else
|
|
3546
|
-
|
|
3589
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && De(t.style) ? delete t.style.location : Ft(t) && ze(t.children);
|
|
3547
3590
|
});
|
|
3548
3591
|
}
|
|
3549
|
-
function
|
|
3550
|
-
t === void 0 && (t = {}), t =
|
|
3551
|
-
var r = new
|
|
3592
|
+
function kn(e, t) {
|
|
3593
|
+
t === void 0 && (t = {}), t = fe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3594
|
+
var r = new Gn(e, t).parse();
|
|
3552
3595
|
if (r.err) {
|
|
3553
3596
|
var n = SyntaxError(b[r.err.kind]);
|
|
3554
3597
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3555
3598
|
}
|
|
3556
|
-
return t?.captureLocation ||
|
|
3599
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3557
3600
|
}
|
|
3558
|
-
var
|
|
3601
|
+
var k;
|
|
3559
3602
|
(function(e) {
|
|
3560
3603
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3561
|
-
})(
|
|
3562
|
-
var
|
|
3604
|
+
})(k || (k = {}));
|
|
3605
|
+
var ye = (
|
|
3563
3606
|
/** @class */
|
|
3564
3607
|
function(e) {
|
|
3565
|
-
|
|
3608
|
+
ve(t, e);
|
|
3566
3609
|
function t(r, n, i) {
|
|
3567
3610
|
var o = e.call(this, r) || this;
|
|
3568
3611
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3571,48 +3614,48 @@ var be = (
|
|
|
3571
3614
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3572
3615
|
}, t;
|
|
3573
3616
|
}(Error)
|
|
3574
|
-
),
|
|
3617
|
+
), mt = (
|
|
3575
3618
|
/** @class */
|
|
3576
3619
|
function(e) {
|
|
3577
|
-
|
|
3620
|
+
ve(t, e);
|
|
3578
3621
|
function t(r, n, i, o) {
|
|
3579
|
-
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('", "'), '"'), k.INVALID_VALUE, o) || this;
|
|
3580
3623
|
}
|
|
3581
3624
|
return t;
|
|
3582
|
-
}(
|
|
3583
|
-
),
|
|
3625
|
+
}(ye)
|
|
3626
|
+
), Vn = (
|
|
3584
3627
|
/** @class */
|
|
3585
3628
|
function(e) {
|
|
3586
|
-
|
|
3629
|
+
ve(t, e);
|
|
3587
3630
|
function t(r, n, i) {
|
|
3588
|
-
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), k.INVALID_VALUE, i) || this;
|
|
3589
3632
|
}
|
|
3590
3633
|
return t;
|
|
3591
|
-
}(
|
|
3592
|
-
),
|
|
3634
|
+
}(ye)
|
|
3635
|
+
), zn = (
|
|
3593
3636
|
/** @class */
|
|
3594
3637
|
function(e) {
|
|
3595
|
-
|
|
3638
|
+
ve(t, e);
|
|
3596
3639
|
function t(r, n) {
|
|
3597
|
-
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, '"'), k.MISSING_VALUE, n) || this;
|
|
3598
3641
|
}
|
|
3599
3642
|
return t;
|
|
3600
|
-
}(
|
|
3643
|
+
}(ye)
|
|
3601
3644
|
), T;
|
|
3602
3645
|
(function(e) {
|
|
3603
3646
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3604
3647
|
})(T || (T = {}));
|
|
3605
|
-
function
|
|
3648
|
+
function Wn(e) {
|
|
3606
3649
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3607
3650
|
var n = t[t.length - 1];
|
|
3608
3651
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3609
3652
|
}, []);
|
|
3610
3653
|
}
|
|
3611
|
-
function
|
|
3654
|
+
function Xn(e) {
|
|
3612
3655
|
return typeof e == "function";
|
|
3613
3656
|
}
|
|
3614
3657
|
function he(e, t, r, n, i, o, a) {
|
|
3615
|
-
if (e.length === 1 &&
|
|
3658
|
+
if (e.length === 1 && ut(e[0]))
|
|
3616
3659
|
return [
|
|
3617
3660
|
{
|
|
3618
3661
|
type: T.literal,
|
|
@@ -3621,14 +3664,14 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3621
3664
|
];
|
|
3622
3665
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3623
3666
|
var h = u[l];
|
|
3624
|
-
if (
|
|
3667
|
+
if (ut(h)) {
|
|
3625
3668
|
s.push({
|
|
3626
3669
|
type: T.literal,
|
|
3627
3670
|
value: h.value
|
|
3628
3671
|
});
|
|
3629
3672
|
continue;
|
|
3630
3673
|
}
|
|
3631
|
-
if (
|
|
3674
|
+
if (mn(h)) {
|
|
3632
3675
|
typeof o == "number" && s.push({
|
|
3633
3676
|
type: T.literal,
|
|
3634
3677
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3637,43 +3680,43 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3637
3680
|
}
|
|
3638
3681
|
var f = h.value;
|
|
3639
3682
|
if (!(i && f in i))
|
|
3640
|
-
throw new
|
|
3683
|
+
throw new zn(f, a);
|
|
3641
3684
|
var c = i[f];
|
|
3642
|
-
if (
|
|
3685
|
+
if (dn(h)) {
|
|
3643
3686
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3644
3687
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3645
3688
|
value: c
|
|
3646
3689
|
});
|
|
3647
3690
|
continue;
|
|
3648
3691
|
}
|
|
3649
|
-
if (
|
|
3650
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3692
|
+
if (Rt(h)) {
|
|
3693
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3651
3694
|
s.push({
|
|
3652
3695
|
type: T.literal,
|
|
3653
3696
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3654
3697
|
});
|
|
3655
3698
|
continue;
|
|
3656
3699
|
}
|
|
3657
|
-
if (
|
|
3658
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3700
|
+
if (Ut(h)) {
|
|
3701
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3659
3702
|
s.push({
|
|
3660
3703
|
type: T.literal,
|
|
3661
3704
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3662
3705
|
});
|
|
3663
3706
|
continue;
|
|
3664
3707
|
}
|
|
3665
|
-
if (
|
|
3666
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3708
|
+
if ($t(h)) {
|
|
3709
|
+
var p = typeof h.style == "string" ? n.number[h.style] : jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3667
3710
|
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3668
3711
|
type: T.literal,
|
|
3669
3712
|
value: r.getNumberFormat(t, p).format(c)
|
|
3670
3713
|
});
|
|
3671
3714
|
continue;
|
|
3672
3715
|
}
|
|
3673
|
-
if (
|
|
3716
|
+
if (Ft(h)) {
|
|
3674
3717
|
var d = h.children, y = h.value, S = i[y];
|
|
3675
|
-
if (!
|
|
3676
|
-
throw new
|
|
3718
|
+
if (!Xn(S))
|
|
3719
|
+
throw new Vn(y, "function", a);
|
|
3677
3720
|
var H = he(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3678
3721
|
return m.value;
|
|
3679
3722
|
}));
|
|
@@ -3684,42 +3727,42 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3684
3727
|
};
|
|
3685
3728
|
}));
|
|
3686
3729
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var
|
|
3689
|
-
if (!
|
|
3690
|
-
throw new
|
|
3691
|
-
s.push.apply(s, he(
|
|
3730
|
+
if (Gt(h)) {
|
|
3731
|
+
var g = h.options[c] || h.options.other;
|
|
3732
|
+
if (!g)
|
|
3733
|
+
throw new mt(h.value, c, Object.keys(h.options), a);
|
|
3734
|
+
s.push.apply(s, he(g.value, t, r, n, i));
|
|
3692
3735
|
continue;
|
|
3693
3736
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3696
|
-
if (!
|
|
3737
|
+
if (Dt(h)) {
|
|
3738
|
+
var g = h.options["=".concat(c)];
|
|
3739
|
+
if (!g) {
|
|
3697
3740
|
if (!Intl.PluralRules)
|
|
3698
|
-
throw new
|
|
3741
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3699
3742
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3700
|
-
`,
|
|
3743
|
+
`, k.MISSING_INTL_API, a);
|
|
3701
3744
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3702
|
-
|
|
3745
|
+
g = h.options[w] || h.options.other;
|
|
3703
3746
|
}
|
|
3704
|
-
if (!
|
|
3705
|
-
throw new
|
|
3706
|
-
s.push.apply(s, he(
|
|
3747
|
+
if (!g)
|
|
3748
|
+
throw new mt(h.value, c, Object.keys(h.options), a);
|
|
3749
|
+
s.push.apply(s, he(g.value, t, r, n, i, c - (h.offset || 0)));
|
|
3707
3750
|
continue;
|
|
3708
3751
|
}
|
|
3709
3752
|
}
|
|
3710
|
-
return
|
|
3753
|
+
return Wn(s);
|
|
3711
3754
|
}
|
|
3712
|
-
function
|
|
3713
|
-
return t ?
|
|
3714
|
-
return r[n] =
|
|
3755
|
+
function qn(e, t) {
|
|
3756
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3757
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3715
3758
|
}, {})) : e;
|
|
3716
3759
|
}
|
|
3717
|
-
function
|
|
3760
|
+
function Zn(e, t) {
|
|
3718
3761
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3719
|
-
return r[n] =
|
|
3720
|
-
},
|
|
3762
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3763
|
+
}, L({}, e)) : e;
|
|
3721
3764
|
}
|
|
3722
|
-
function
|
|
3765
|
+
function Ie(e) {
|
|
3723
3766
|
return {
|
|
3724
3767
|
create: function() {
|
|
3725
3768
|
return {
|
|
@@ -3733,39 +3776,39 @@ function we(e) {
|
|
|
3733
3776
|
}
|
|
3734
3777
|
};
|
|
3735
3778
|
}
|
|
3736
|
-
function
|
|
3779
|
+
function Yn(e) {
|
|
3737
3780
|
return e === void 0 && (e = {
|
|
3738
3781
|
number: {},
|
|
3739
3782
|
dateTime: {},
|
|
3740
3783
|
pluralRules: {}
|
|
3741
3784
|
}), {
|
|
3742
|
-
getNumberFormat:
|
|
3785
|
+
getNumberFormat: we(function() {
|
|
3743
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3744
3787
|
r[n] = arguments[n];
|
|
3745
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3788
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3746
3789
|
}, {
|
|
3747
|
-
cache:
|
|
3748
|
-
strategy:
|
|
3790
|
+
cache: Ie(e.number),
|
|
3791
|
+
strategy: Pe.variadic
|
|
3749
3792
|
}),
|
|
3750
|
-
getDateTimeFormat:
|
|
3793
|
+
getDateTimeFormat: we(function() {
|
|
3751
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3752
3795
|
r[n] = arguments[n];
|
|
3753
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3796
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3754
3797
|
}, {
|
|
3755
|
-
cache:
|
|
3756
|
-
strategy:
|
|
3798
|
+
cache: Ie(e.dateTime),
|
|
3799
|
+
strategy: Pe.variadic
|
|
3757
3800
|
}),
|
|
3758
|
-
getPluralRules:
|
|
3801
|
+
getPluralRules: we(function() {
|
|
3759
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3760
3803
|
r[n] = arguments[n];
|
|
3761
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3762
3805
|
}, {
|
|
3763
|
-
cache:
|
|
3764
|
-
strategy:
|
|
3806
|
+
cache: Ie(e.pluralRules),
|
|
3807
|
+
strategy: Pe.variadic
|
|
3765
3808
|
})
|
|
3766
3809
|
};
|
|
3767
3810
|
}
|
|
3768
|
-
var
|
|
3811
|
+
var Qn = (
|
|
3769
3812
|
/** @class */
|
|
3770
3813
|
function() {
|
|
3771
3814
|
function e(t, r, n, i) {
|
|
@@ -3797,13 +3840,13 @@ var Wn = (
|
|
|
3797
3840
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3798
3841
|
var a = i || {};
|
|
3799
3842
|
a.formatters;
|
|
3800
|
-
var s =
|
|
3801
|
-
this.ast = e.__parse(t,
|
|
3843
|
+
var s = an(a, ["formatters"]);
|
|
3844
|
+
this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
|
|
3802
3845
|
} else
|
|
3803
3846
|
this.ast = t;
|
|
3804
3847
|
if (!Array.isArray(this.ast))
|
|
3805
3848
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3806
|
-
this.formats =
|
|
3849
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3807
3850
|
}
|
|
3808
3851
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3809
3852
|
get: function() {
|
|
@@ -3816,7 +3859,7 @@ var Wn = (
|
|
|
3816
3859
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3817
3860
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3818
3861
|
}
|
|
3819
|
-
}, e.__parse =
|
|
3862
|
+
}, e.__parse = kn, e.formats = {
|
|
3820
3863
|
number: {
|
|
3821
3864
|
integer: {
|
|
3822
3865
|
maximumFractionDigits: 0
|
|
@@ -3877,7 +3920,7 @@ var Wn = (
|
|
|
3877
3920
|
}, e;
|
|
3878
3921
|
}()
|
|
3879
3922
|
);
|
|
3880
|
-
function
|
|
3923
|
+
function Jn(e, t) {
|
|
3881
3924
|
if (t == null)
|
|
3882
3925
|
return;
|
|
3883
3926
|
if (t in e)
|
|
@@ -3898,92 +3941,92 @@ function Xn(e, t) {
|
|
|
3898
3941
|
n = void 0;
|
|
3899
3942
|
return n;
|
|
3900
3943
|
}
|
|
3901
|
-
const N = {},
|
|
3944
|
+
const N = {}, Kn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Yt = (e, t) => {
|
|
3902
3945
|
if (t == null)
|
|
3903
3946
|
return;
|
|
3904
3947
|
if (t in N && e in N[t])
|
|
3905
3948
|
return N[t][e];
|
|
3906
|
-
const r =
|
|
3949
|
+
const r = ge(t);
|
|
3907
3950
|
for (let n = 0; n < r.length; n++) {
|
|
3908
|
-
const i = r[n], o =
|
|
3951
|
+
const i = r[n], o = ti(i, e);
|
|
3909
3952
|
if (o)
|
|
3910
|
-
return
|
|
3953
|
+
return Kn(e, t, o);
|
|
3911
3954
|
}
|
|
3912
3955
|
};
|
|
3913
|
-
let
|
|
3914
|
-
const oe =
|
|
3915
|
-
function
|
|
3916
|
-
return
|
|
3956
|
+
let Ye;
|
|
3957
|
+
const oe = be({});
|
|
3958
|
+
function ei(e) {
|
|
3959
|
+
return Ye[e] || null;
|
|
3917
3960
|
}
|
|
3918
|
-
function
|
|
3919
|
-
return e in
|
|
3961
|
+
function Qt(e) {
|
|
3962
|
+
return e in Ye;
|
|
3920
3963
|
}
|
|
3921
|
-
function
|
|
3922
|
-
if (!
|
|
3964
|
+
function ti(e, t) {
|
|
3965
|
+
if (!Qt(e))
|
|
3923
3966
|
return null;
|
|
3924
|
-
const r =
|
|
3925
|
-
return
|
|
3967
|
+
const r = ei(e);
|
|
3968
|
+
return Jn(r, t);
|
|
3926
3969
|
}
|
|
3927
|
-
function
|
|
3970
|
+
function ri(e) {
|
|
3928
3971
|
if (e == null)
|
|
3929
3972
|
return;
|
|
3930
|
-
const t =
|
|
3973
|
+
const t = ge(e);
|
|
3931
3974
|
for (let r = 0; r < t.length; r++) {
|
|
3932
3975
|
const n = t[r];
|
|
3933
|
-
if (
|
|
3976
|
+
if (Qt(n))
|
|
3934
3977
|
return n;
|
|
3935
3978
|
}
|
|
3936
3979
|
}
|
|
3937
|
-
function
|
|
3938
|
-
delete N[e], oe.update((r) => (r[e] =
|
|
3980
|
+
function Jt(e, ...t) {
|
|
3981
|
+
delete N[e], oe.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3939
3982
|
}
|
|
3940
|
-
|
|
3983
|
+
W(
|
|
3941
3984
|
[oe],
|
|
3942
3985
|
([e]) => Object.keys(e)
|
|
3943
3986
|
);
|
|
3944
|
-
oe.subscribe((e) =>
|
|
3987
|
+
oe.subscribe((e) => Ye = e);
|
|
3945
3988
|
const ce = {};
|
|
3946
|
-
function
|
|
3989
|
+
function ni(e, t) {
|
|
3947
3990
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3948
3991
|
}
|
|
3949
|
-
function
|
|
3992
|
+
function Kt(e) {
|
|
3950
3993
|
return ce[e];
|
|
3951
3994
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3954
|
-
const r =
|
|
3995
|
+
function ii(e) {
|
|
3996
|
+
return ge(e).map((t) => {
|
|
3997
|
+
const r = Kt(t);
|
|
3955
3998
|
return [t, r ? [...r] : []];
|
|
3956
3999
|
}).filter(([, t]) => t.length > 0);
|
|
3957
4000
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return e == null ? !1 :
|
|
4001
|
+
function We(e) {
|
|
4002
|
+
return e == null ? !1 : ge(e).some(
|
|
3960
4003
|
(t) => {
|
|
3961
4004
|
var r;
|
|
3962
|
-
return (r =
|
|
4005
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3963
4006
|
}
|
|
3964
4007
|
);
|
|
3965
4008
|
}
|
|
3966
|
-
function
|
|
4009
|
+
function oi(e, t) {
|
|
3967
4010
|
return Promise.all(
|
|
3968
|
-
t.map((n) => (
|
|
3969
|
-
).then((n) =>
|
|
3970
|
-
}
|
|
3971
|
-
const
|
|
3972
|
-
function
|
|
3973
|
-
if (!
|
|
3974
|
-
return e in
|
|
3975
|
-
const t =
|
|
3976
|
-
return
|
|
4011
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
4012
|
+
).then((n) => Jt(e, ...n));
|
|
4013
|
+
}
|
|
4014
|
+
const Y = {};
|
|
4015
|
+
function er(e) {
|
|
4016
|
+
if (!We(e))
|
|
4017
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
4018
|
+
const t = ii(e);
|
|
4019
|
+
return Y[e] = Promise.all(
|
|
3977
4020
|
t.map(
|
|
3978
|
-
([r, n]) =>
|
|
4021
|
+
([r, n]) => oi(r, n)
|
|
3979
4022
|
)
|
|
3980
4023
|
).then(() => {
|
|
3981
|
-
if (
|
|
3982
|
-
return
|
|
3983
|
-
delete
|
|
3984
|
-
}),
|
|
4024
|
+
if (We(e))
|
|
4025
|
+
return er(e);
|
|
4026
|
+
delete Y[e];
|
|
4027
|
+
}), Y[e];
|
|
3985
4028
|
}
|
|
3986
|
-
const
|
|
4029
|
+
const ai = {
|
|
3987
4030
|
number: {
|
|
3988
4031
|
scientific: { notation: "scientific" },
|
|
3989
4032
|
engineering: { notation: "engineering" },
|
|
@@ -4012,150 +4055,150 @@ const ti = {
|
|
|
4012
4055
|
timeZoneName: "short"
|
|
4013
4056
|
}
|
|
4014
4057
|
}
|
|
4015
|
-
},
|
|
4058
|
+
}, si = {
|
|
4016
4059
|
fallbackLocale: null,
|
|
4017
4060
|
loadingDelay: 200,
|
|
4018
|
-
formats:
|
|
4061
|
+
formats: ai,
|
|
4019
4062
|
warnOnMissingMessages: !0,
|
|
4020
4063
|
handleMissingMessage: void 0,
|
|
4021
4064
|
ignoreTag: !0
|
|
4022
|
-
},
|
|
4023
|
-
function
|
|
4024
|
-
return
|
|
4065
|
+
}, ui = si;
|
|
4066
|
+
function V() {
|
|
4067
|
+
return ui;
|
|
4025
4068
|
}
|
|
4026
|
-
const
|
|
4027
|
-
var
|
|
4069
|
+
const Be = be(!1);
|
|
4070
|
+
var li = Object.defineProperty, hi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4028
4071
|
for (var r in t || (t = {}))
|
|
4029
|
-
|
|
4030
|
-
if (
|
|
4031
|
-
for (var r of
|
|
4032
|
-
|
|
4072
|
+
fi.call(t, r) && vt(e, r, t[r]);
|
|
4073
|
+
if (bt)
|
|
4074
|
+
for (var r of bt(t))
|
|
4075
|
+
pi.call(t, r) && vt(e, r, t[r]);
|
|
4033
4076
|
return e;
|
|
4034
|
-
},
|
|
4035
|
-
let
|
|
4036
|
-
const
|
|
4037
|
-
function
|
|
4077
|
+
}, mi = (e, t) => hi(e, ci(t));
|
|
4078
|
+
let Xe;
|
|
4079
|
+
const pe = be(null);
|
|
4080
|
+
function yt(e) {
|
|
4038
4081
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4039
4082
|
}
|
|
4040
|
-
function
|
|
4041
|
-
const r =
|
|
4042
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4083
|
+
function ge(e, t = V().fallbackLocale) {
|
|
4084
|
+
const r = yt(e);
|
|
4085
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4043
4086
|
}
|
|
4044
|
-
function
|
|
4045
|
-
return
|
|
4087
|
+
function $() {
|
|
4088
|
+
return Xe ?? void 0;
|
|
4046
4089
|
}
|
|
4047
|
-
|
|
4048
|
-
|
|
4090
|
+
pe.subscribe((e) => {
|
|
4091
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4049
4092
|
});
|
|
4050
|
-
const
|
|
4051
|
-
if (e &&
|
|
4052
|
-
const { loadingDelay: t } =
|
|
4093
|
+
const bi = (e) => {
|
|
4094
|
+
if (e && ri(e) && We(e)) {
|
|
4095
|
+
const { loadingDelay: t } = V();
|
|
4053
4096
|
let r;
|
|
4054
|
-
return typeof window < "u" &&
|
|
4055
|
-
() =>
|
|
4097
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4098
|
+
() => Be.set(!0),
|
|
4056
4099
|
t
|
|
4057
|
-
) :
|
|
4058
|
-
|
|
4100
|
+
) : Be.set(!0), er(e).then(() => {
|
|
4101
|
+
pe.set(e);
|
|
4059
4102
|
}).finally(() => {
|
|
4060
|
-
clearTimeout(r),
|
|
4103
|
+
clearTimeout(r), Be.set(!1);
|
|
4061
4104
|
});
|
|
4062
4105
|
}
|
|
4063
|
-
return
|
|
4064
|
-
},
|
|
4065
|
-
set:
|
|
4066
|
-
}),
|
|
4106
|
+
return pe.set(e);
|
|
4107
|
+
}, X = mi(di({}, pe), {
|
|
4108
|
+
set: bi
|
|
4109
|
+
}), xe = (e) => {
|
|
4067
4110
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4068
4111
|
return (n) => {
|
|
4069
4112
|
const i = JSON.stringify(n);
|
|
4070
4113
|
return i in t ? t[i] : t[i] = e(n);
|
|
4071
4114
|
};
|
|
4072
4115
|
};
|
|
4073
|
-
var
|
|
4116
|
+
var vi = Object.defineProperty, de = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4074
4117
|
for (var r in t || (t = {}))
|
|
4075
|
-
|
|
4076
|
-
if (
|
|
4077
|
-
for (var r of
|
|
4078
|
-
|
|
4118
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
4119
|
+
if (de)
|
|
4120
|
+
for (var r of de(t))
|
|
4121
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
4079
4122
|
return e;
|
|
4080
|
-
},
|
|
4123
|
+
}, q = (e, t) => {
|
|
4081
4124
|
var r = {};
|
|
4082
4125
|
for (var n in e)
|
|
4083
|
-
|
|
4084
|
-
if (e != null &&
|
|
4085
|
-
for (var n of
|
|
4086
|
-
t.indexOf(n) < 0 &&
|
|
4126
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4127
|
+
if (e != null && de)
|
|
4128
|
+
for (var n of de(e))
|
|
4129
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4087
4130
|
return r;
|
|
4088
4131
|
};
|
|
4089
|
-
const
|
|
4090
|
-
const { formats: r } =
|
|
4132
|
+
const ee = (e, t) => {
|
|
4133
|
+
const { formats: r } = V();
|
|
4091
4134
|
if (e in r && t in r[e])
|
|
4092
4135
|
return r[e][t];
|
|
4093
4136
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4094
|
-
},
|
|
4137
|
+
}, yi = xe(
|
|
4095
4138
|
(e) => {
|
|
4096
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4139
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4097
4140
|
if (r == null)
|
|
4098
4141
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4099
|
-
return n && (i =
|
|
4142
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4100
4143
|
}
|
|
4101
|
-
),
|
|
4144
|
+
), gi = xe(
|
|
4102
4145
|
(e) => {
|
|
4103
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4146
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4104
4147
|
if (r == null)
|
|
4105
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4106
|
-
return n ? i =
|
|
4149
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4107
4150
|
}
|
|
4108
|
-
),
|
|
4151
|
+
), xi = xe(
|
|
4109
4152
|
(e) => {
|
|
4110
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4111
4154
|
if (r == null)
|
|
4112
4155
|
throw new Error(
|
|
4113
4156
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4114
4157
|
);
|
|
4115
|
-
return n ? i =
|
|
4158
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4116
4159
|
}
|
|
4117
|
-
),
|
|
4160
|
+
), _i = (e = {}) => {
|
|
4118
4161
|
var t = e, {
|
|
4119
|
-
locale: r =
|
|
4120
|
-
} = t, n =
|
|
4162
|
+
locale: r = $()
|
|
4163
|
+
} = t, n = q(t, [
|
|
4121
4164
|
"locale"
|
|
4122
4165
|
]);
|
|
4123
|
-
return
|
|
4124
|
-
},
|
|
4166
|
+
return yi(Qe({ locale: r }, n));
|
|
4167
|
+
}, Ei = (e = {}) => {
|
|
4125
4168
|
var t = e, {
|
|
4126
|
-
locale: r =
|
|
4127
|
-
} = t, n =
|
|
4169
|
+
locale: r = $()
|
|
4170
|
+
} = t, n = q(t, [
|
|
4128
4171
|
"locale"
|
|
4129
4172
|
]);
|
|
4130
|
-
return
|
|
4131
|
-
},
|
|
4173
|
+
return gi(Qe({ locale: r }, n));
|
|
4174
|
+
}, Ti = (e = {}) => {
|
|
4132
4175
|
var t = e, {
|
|
4133
|
-
locale: r =
|
|
4134
|
-
} = t, n =
|
|
4176
|
+
locale: r = $()
|
|
4177
|
+
} = t, n = q(t, [
|
|
4135
4178
|
"locale"
|
|
4136
4179
|
]);
|
|
4137
|
-
return
|
|
4138
|
-
},
|
|
4180
|
+
return xi(Qe({ locale: r }, n));
|
|
4181
|
+
}, Si = xe(
|
|
4139
4182
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4140
|
-
(e, t =
|
|
4141
|
-
ignoreTag:
|
|
4183
|
+
(e, t = $()) => new Qn(e, t, V().formats, {
|
|
4184
|
+
ignoreTag: V().ignoreTag
|
|
4142
4185
|
})
|
|
4143
|
-
),
|
|
4186
|
+
), wi = (e, t = {}) => {
|
|
4144
4187
|
var r, n, i, o;
|
|
4145
4188
|
let a = t;
|
|
4146
4189
|
typeof e == "object" && (a = e, e = a.id);
|
|
4147
4190
|
const {
|
|
4148
4191
|
values: s,
|
|
4149
|
-
locale: l =
|
|
4192
|
+
locale: l = $(),
|
|
4150
4193
|
default: u
|
|
4151
4194
|
} = a;
|
|
4152
4195
|
if (l == null)
|
|
4153
4196
|
throw new Error(
|
|
4154
4197
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4155
4198
|
);
|
|
4156
|
-
let h =
|
|
4199
|
+
let h = Yt(e, l);
|
|
4157
4200
|
if (!h)
|
|
4158
|
-
h = (o = (i = (n = (r =
|
|
4201
|
+
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4159
4202
|
else if (typeof h != "string")
|
|
4160
4203
|
return console.warn(
|
|
4161
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.`
|
|
@@ -4164,7 +4207,7 @@ const te = (e, t) => {
|
|
|
4164
4207
|
return h;
|
|
4165
4208
|
let f = h;
|
|
4166
4209
|
try {
|
|
4167
|
-
f =
|
|
4210
|
+
f = Si(h, l).format(s);
|
|
4168
4211
|
} catch (c) {
|
|
4169
4212
|
c instanceof Error && console.warn(
|
|
4170
4213
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4172,20 +4215,20 @@ const te = (e, t) => {
|
|
|
4172
4215
|
);
|
|
4173
4216
|
}
|
|
4174
4217
|
return f;
|
|
4175
|
-
},
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
window.emWidgets = { topic:
|
|
4181
|
-
const
|
|
4182
|
-
function
|
|
4183
|
-
|
|
4184
|
-
}
|
|
4185
|
-
function
|
|
4186
|
-
|
|
4187
|
-
}
|
|
4188
|
-
const
|
|
4218
|
+
}, Pi = (e, t) => Ti(t).format(e), Hi = (e, t) => Ei(t).format(e), Ii = (e, t) => _i(t).format(e), Bi = (e, t = $()) => Yt(e, t), Ci = W([X, oe], () => wi);
|
|
4219
|
+
W([X], () => Pi);
|
|
4220
|
+
W([X], () => Hi);
|
|
4221
|
+
W([X], () => Ii);
|
|
4222
|
+
W([X, oe], () => Bi);
|
|
4223
|
+
window.emWidgets = { topic: Fr };
|
|
4224
|
+
const Ai = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4225
|
+
function xt(e, t) {
|
|
4226
|
+
Jt(e, t);
|
|
4227
|
+
}
|
|
4228
|
+
function Oi(e) {
|
|
4229
|
+
X.set(e);
|
|
4230
|
+
}
|
|
4231
|
+
const _t = {
|
|
4189
4232
|
en: {
|
|
4190
4233
|
name: "Info",
|
|
4191
4234
|
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:",
|
|
@@ -4247,13 +4290,13 @@ const bt = {
|
|
|
4247
4290
|
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."
|
|
4248
4291
|
}
|
|
4249
4292
|
};
|
|
4250
|
-
function
|
|
4293
|
+
function Li(e, t) {
|
|
4251
4294
|
if (e) {
|
|
4252
4295
|
const r = document.createElement("style");
|
|
4253
4296
|
r.innerHTML = t, e.appendChild(r);
|
|
4254
4297
|
}
|
|
4255
4298
|
}
|
|
4256
|
-
function
|
|
4299
|
+
function Mi(e, t) {
|
|
4257
4300
|
const r = new URL(t);
|
|
4258
4301
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4259
4302
|
const i = document.createElement("style");
|
|
@@ -4262,7 +4305,7 @@ function Bi(e, t) {
|
|
|
4262
4305
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4263
4306
|
});
|
|
4264
4307
|
}
|
|
4265
|
-
function
|
|
4308
|
+
function Ni(e, t, r) {
|
|
4266
4309
|
if (window.emMessageBus) {
|
|
4267
4310
|
const n = document.createElement("style");
|
|
4268
4311
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4270,24 +4313,24 @@ function Ci(e, t, r) {
|
|
|
4270
4313
|
});
|
|
4271
4314
|
}
|
|
4272
4315
|
}
|
|
4273
|
-
function
|
|
4274
|
-
|
|
4316
|
+
function $i(e) {
|
|
4317
|
+
or(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)}');
|
|
4275
4318
|
}
|
|
4276
|
-
function
|
|
4319
|
+
function Et(e) {
|
|
4277
4320
|
let t, r, n, i, o, a, s = (
|
|
4278
4321
|
/*$_*/
|
|
4279
4322
|
e[4]("name") + ""
|
|
4280
4323
|
), l, u, h, f, c, p, d, y;
|
|
4281
|
-
function S(
|
|
4324
|
+
function S(g, w) {
|
|
4282
4325
|
return (
|
|
4283
4326
|
/*iteminfoamount*/
|
|
4284
|
-
|
|
4327
|
+
g[0] ? Ui : Ri
|
|
4285
4328
|
);
|
|
4286
4329
|
}
|
|
4287
4330
|
let H = S(e), E = H(e);
|
|
4288
4331
|
return {
|
|
4289
4332
|
c() {
|
|
4290
|
-
t = C("section"), r = C("div"), n = C("div"), i = C("div"), i.textContent = "i", o =
|
|
4333
|
+
t = C("section"), r = C("div"), n = C("div"), i = C("div"), i.textContent = "i", o = _e(), a = C("div"), l = ne(s), u = _e(), h = C("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = _e(), c = C("div"), E.c(), B(i, "class", "InfoCardPopupIcon"), B(a, "class", "InfoCardPopupTitle"), B(h, "class", "InfoCardPopupCloseButton"), B(n, "class", "InfoCardPopupHeader"), B(c, "class", "InfoCardPopupContentArea"), B(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4291
4334
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4292
4335
|
(e[0] ? "InfoCardPopupLimitChanged" : "")), B(
|
|
4293
4336
|
t,
|
|
@@ -4296,48 +4339,48 @@ function vt(e) {
|
|
|
4296
4339
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4297
4340
|
);
|
|
4298
4341
|
},
|
|
4299
|
-
m(
|
|
4300
|
-
|
|
4342
|
+
m(g, w) {
|
|
4343
|
+
re(g, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (y = lr(h, "click", hr(
|
|
4301
4344
|
/*closeInfoPopup*/
|
|
4302
4345
|
e[6]
|
|
4303
4346
|
)), d = !0);
|
|
4304
4347
|
},
|
|
4305
|
-
p(
|
|
4348
|
+
p(g, w) {
|
|
4306
4349
|
w & /*$_*/
|
|
4307
4350
|
16 && s !== (s = /*$_*/
|
|
4308
|
-
|
|
4351
|
+
g[4]("name") + "") && Ze(l, s), H === (H = S(g)) && E ? E.p(g, w) : (E.d(1), E = H(g), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4309
4352
|
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4310
|
-
(
|
|
4311
|
-
(
|
|
4353
|
+
(g[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4354
|
+
(g[0] ? "InfoCardPopupLimitChanged" : "")) && B(r, "class", p);
|
|
4312
4355
|
},
|
|
4313
|
-
d(
|
|
4314
|
-
|
|
4356
|
+
d(g) {
|
|
4357
|
+
g && z(t), E.d(), e[13](null), d = !1, y();
|
|
4315
4358
|
}
|
|
4316
4359
|
};
|
|
4317
4360
|
}
|
|
4318
|
-
function
|
|
4361
|
+
function Ri(e) {
|
|
4319
4362
|
let t, r = (
|
|
4320
4363
|
/*$_*/
|
|
4321
4364
|
e[4]("defaultText") + ""
|
|
4322
4365
|
), n;
|
|
4323
4366
|
return {
|
|
4324
4367
|
c() {
|
|
4325
|
-
t = C("p"), n =
|
|
4368
|
+
t = C("p"), n = ne(r), B(t, "class", "InfoCardPopupContent");
|
|
4326
4369
|
},
|
|
4327
4370
|
m(i, o) {
|
|
4328
|
-
|
|
4371
|
+
re(i, t, o), P(t, n);
|
|
4329
4372
|
},
|
|
4330
4373
|
p(i, o) {
|
|
4331
4374
|
o & /*$_*/
|
|
4332
4375
|
16 && r !== (r = /*$_*/
|
|
4333
|
-
i[4]("defaultText") + "") &&
|
|
4376
|
+
i[4]("defaultText") + "") && Ze(n, r);
|
|
4334
4377
|
},
|
|
4335
4378
|
d(i) {
|
|
4336
|
-
i &&
|
|
4379
|
+
i && z(t);
|
|
4337
4380
|
}
|
|
4338
4381
|
};
|
|
4339
4382
|
}
|
|
4340
|
-
function
|
|
4383
|
+
function Ui(e) {
|
|
4341
4384
|
let t, r = (
|
|
4342
4385
|
/*$_*/
|
|
4343
4386
|
e[4]("amountChanged", {
|
|
@@ -4355,10 +4398,10 @@ function Li(e) {
|
|
|
4355
4398
|
), n;
|
|
4356
4399
|
return {
|
|
4357
4400
|
c() {
|
|
4358
|
-
t = C("p"), n =
|
|
4401
|
+
t = C("p"), n = ne(r), B(t, "class", "InfoCardPopupContent");
|
|
4359
4402
|
},
|
|
4360
4403
|
m(i, o) {
|
|
4361
|
-
|
|
4404
|
+
re(i, t, o), P(t, n);
|
|
4362
4405
|
},
|
|
4363
4406
|
p(i, o) {
|
|
4364
4407
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4374,53 +4417,53 @@ function Li(e) {
|
|
|
4374
4417
|
i[1]
|
|
4375
4418
|
)
|
|
4376
4419
|
}
|
|
4377
|
-
}) + "") &&
|
|
4420
|
+
}) + "") && Ze(n, r);
|
|
4378
4421
|
},
|
|
4379
4422
|
d(i) {
|
|
4380
|
-
i &&
|
|
4423
|
+
i && z(t);
|
|
4381
4424
|
}
|
|
4382
4425
|
};
|
|
4383
4426
|
}
|
|
4384
|
-
function
|
|
4427
|
+
function Gi(e) {
|
|
4385
4428
|
let t, r = (
|
|
4386
4429
|
/*showPopup*/
|
|
4387
|
-
e[3] &&
|
|
4430
|
+
e[3] && Et(e)
|
|
4388
4431
|
);
|
|
4389
4432
|
return {
|
|
4390
4433
|
c() {
|
|
4391
|
-
r && r.c(), t =
|
|
4434
|
+
r && r.c(), t = ur();
|
|
4392
4435
|
},
|
|
4393
4436
|
m(n, i) {
|
|
4394
|
-
r && r.m(n, i),
|
|
4437
|
+
r && r.m(n, i), re(n, t, i);
|
|
4395
4438
|
},
|
|
4396
4439
|
p(n, [i]) {
|
|
4397
4440
|
/*showPopup*/
|
|
4398
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4441
|
+
n[3] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4399
4442
|
},
|
|
4400
4443
|
i: A,
|
|
4401
4444
|
o: A,
|
|
4402
4445
|
d(n) {
|
|
4403
|
-
n &&
|
|
4446
|
+
n && z(t), r && r.d(n);
|
|
4404
4447
|
}
|
|
4405
4448
|
};
|
|
4406
4449
|
}
|
|
4407
|
-
function
|
|
4450
|
+
function Di(e, t, r) {
|
|
4408
4451
|
let n;
|
|
4409
|
-
|
|
4452
|
+
ir(e, Ci, (m) => r(4, n = m));
|
|
4410
4453
|
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;
|
|
4411
4454
|
const c = () => {
|
|
4412
4455
|
fetch(h).then((I) => I.json()).then((I) => {
|
|
4413
|
-
Object.keys(I).forEach((
|
|
4414
|
-
|
|
4456
|
+
Object.keys(I).forEach((Z) => {
|
|
4457
|
+
xt(Z, I[Z]);
|
|
4415
4458
|
});
|
|
4416
4459
|
}).catch((I) => {
|
|
4417
4460
|
console.log(I);
|
|
4418
4461
|
});
|
|
4419
4462
|
};
|
|
4420
|
-
Object.keys(
|
|
4421
|
-
|
|
4463
|
+
Object.keys(_t).forEach((m) => {
|
|
4464
|
+
xt(m, _t[m]);
|
|
4422
4465
|
});
|
|
4423
|
-
let p = !1, d, y = window.navigator.userAgent, S =
|
|
4466
|
+
let p = !1, d, y = window.navigator.userAgent, S = Ai(y) !== "PC";
|
|
4424
4467
|
const H = () => {
|
|
4425
4468
|
r(3, p = !1), window.postMessage(
|
|
4426
4469
|
{
|
|
@@ -4430,14 +4473,14 @@ function Ni(e, t, r) {
|
|
|
4430
4473
|
);
|
|
4431
4474
|
}, E = (m) => {
|
|
4432
4475
|
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4433
|
-
},
|
|
4434
|
-
|
|
4476
|
+
}, g = () => {
|
|
4477
|
+
Oi(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4435
4478
|
};
|
|
4436
|
-
|
|
4479
|
+
dr(() => (window.addEventListener("message", E, !1), () => {
|
|
4437
4480
|
window.removeEventListener("message", E);
|
|
4438
4481
|
}));
|
|
4439
4482
|
function w(m) {
|
|
4440
|
-
|
|
4483
|
+
Ce[m ? "unshift" : "push"](() => {
|
|
4441
4484
|
d = m, r(2, d);
|
|
4442
4485
|
});
|
|
4443
4486
|
}
|
|
@@ -4445,10 +4488,10 @@ function Ni(e, t, r) {
|
|
|
4445
4488
|
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4446
4489
|
}, e.$$.update = () => {
|
|
4447
4490
|
e.$$.dirty & /*showpopup, lang*/
|
|
4448
|
-
384 && i && a &&
|
|
4449
|
-
516 && l && d &&
|
|
4450
|
-
1028 && u && d &&
|
|
4451
|
-
4100 && f && d &&
|
|
4491
|
+
384 && i && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4492
|
+
516 && l && d && Li(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4493
|
+
1028 && u && d && Mi(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4494
|
+
4100 && f && d && Ni(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4452
4495
|
2048 && h && c();
|
|
4453
4496
|
}, [
|
|
4454
4497
|
o,
|
|
@@ -4467,14 +4510,14 @@ function Ni(e, t, r) {
|
|
|
4467
4510
|
w
|
|
4468
4511
|
];
|
|
4469
4512
|
}
|
|
4470
|
-
class
|
|
4513
|
+
class Fi extends Pr {
|
|
4471
4514
|
constructor(t) {
|
|
4472
|
-
super(),
|
|
4515
|
+
super(), Sr(
|
|
4473
4516
|
this,
|
|
4474
4517
|
t,
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4518
|
+
Di,
|
|
4519
|
+
Gi,
|
|
4520
|
+
St,
|
|
4478
4521
|
{
|
|
4479
4522
|
showpopup: 7,
|
|
4480
4523
|
iteminfoamount: 0,
|
|
@@ -4485,7 +4528,7 @@ class Ri extends _r {
|
|
|
4485
4528
|
translationurl: 11,
|
|
4486
4529
|
mbsource: 12
|
|
4487
4530
|
},
|
|
4488
|
-
|
|
4531
|
+
$i
|
|
4489
4532
|
);
|
|
4490
4533
|
}
|
|
4491
4534
|
get showpopup() {
|
|
@@ -4537,7 +4580,7 @@ class Ri extends _r {
|
|
|
4537
4580
|
this.$$set({ mbsource: t }), O();
|
|
4538
4581
|
}
|
|
4539
4582
|
}
|
|
4540
|
-
|
|
4583
|
+
wr(Fi, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4541
4584
|
export {
|
|
4542
|
-
|
|
4585
|
+
Fi as P
|
|
4543
4586
|
};
|