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