@everymatrix/player-account-gaming-limits-confirmation-modal 1.74.3 → 1.74.5
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/{PlayerAccountGamingLimitsConfirmationModal-CBq9ToYp.js → PlayerAccountGamingLimitsConfirmationModal-DOMbcoQN.js} +820 -806
- package/components/{PlayerAccountGamingLimitsConfirmationModal-C-JRKsl9.js → PlayerAccountGamingLimitsConfirmationModal-DnjVTgpx.js} +714 -700
- package/components/PlayerAccountGamingLimitsConfirmationModal-Dz0I2smR.cjs +18 -0
- package/es2015/player-account-gaming-limits-confirmation-modal.cjs +1 -1
- package/es2015/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/esnext/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-bt2baWxP.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function O() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function fr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,25 +8,25 @@ function hr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Bt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function tt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function Q(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Bt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ze(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ct(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function mr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function At(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -35,40 +35,40 @@ function Bt(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function pr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(At(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function dr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Pt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Pt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function br(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
54
54
|
return i;
|
|
55
55
|
if (typeof i == "object") {
|
|
56
|
-
const o = [],
|
|
57
|
-
for (let
|
|
58
|
-
o[
|
|
56
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
57
|
+
for (let s = 0; s < a; s += 1)
|
|
58
|
+
o[s] = t.dirty[s] | i[s];
|
|
59
59
|
return o;
|
|
60
60
|
}
|
|
61
61
|
return t.dirty | i;
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function gr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const
|
|
68
|
-
e.p(
|
|
67
|
+
const a = Pt(t, r, n, o);
|
|
68
|
+
e.p(a, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function yr(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function pr(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function vr(e, t, r) {
|
|
84
|
+
const n = xr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = I("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function xr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,23 +97,23 @@ function gr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function _r(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Qe(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function de(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
113
|
function I(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function rt(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
119
|
function ae(e) {
|
|
@@ -125,17 +125,17 @@ function _e() {
|
|
|
125
125
|
function Ee(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function S(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Er(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
134
|
function we(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function wr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -148,22 +148,22 @@ let te;
|
|
|
148
148
|
function ee(e) {
|
|
149
149
|
te = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Sr() {
|
|
152
152
|
if (!te)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
154
|
return te;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Tr(e) {
|
|
157
|
+
Sr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const j = [],
|
|
159
|
+
const j = [], Oe = [];
|
|
160
160
|
let k = [];
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
161
|
+
const nt = [], Hr = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Ie = !1;
|
|
163
|
+
function Br() {
|
|
164
|
+
Ie || (Ie = !0, Hr.then(M));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Me(e) {
|
|
167
167
|
k.push(e);
|
|
168
168
|
}
|
|
169
169
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -176,63 +176,63 @@ function M() {
|
|
|
176
176
|
try {
|
|
177
177
|
for (; D < j.length; ) {
|
|
178
178
|
const t = j[D];
|
|
179
|
-
D++, ee(t),
|
|
179
|
+
D++, ee(t), Cr(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw j.length = 0, D = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (ee(null), j.length = 0, D = 0;
|
|
185
|
-
|
|
184
|
+
for (ee(null), j.length = 0, D = 0; Oe.length; )
|
|
185
|
+
Oe.pop()();
|
|
186
186
|
for (let t = 0; t < k.length; t += 1) {
|
|
187
187
|
const r = k[t];
|
|
188
188
|
Se.has(r) || (Se.add(r), r());
|
|
189
189
|
}
|
|
190
190
|
k.length = 0;
|
|
191
191
|
} while (j.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
for (; nt.length; )
|
|
193
|
+
nt.pop()();
|
|
194
|
+
Ie = !1, Se.clear(), ee(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Cr(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
198
|
e.update(), Q(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ar(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
206
206
|
}
|
|
207
207
|
const ue = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
209
|
-
function
|
|
208
|
+
let Pr;
|
|
209
|
+
function Lt(e, t) {
|
|
210
210
|
e && e.i && (ue.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
if (e.o) {
|
|
212
|
+
function Lr(e, t, r, n) {
|
|
213
|
+
if (e && e.o) {
|
|
214
214
|
if (ue.has(e))
|
|
215
215
|
return;
|
|
216
|
-
ue.add(e),
|
|
216
|
+
ue.add(e), Pr.c.push(() => {
|
|
217
217
|
ue.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Or(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
223
|
+
n && n.m(t, r), Me(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(Bt).filter(Ze);
|
|
225
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Q(o), e.$$.on_mount = [];
|
|
226
|
-
}), i.forEach(
|
|
226
|
+
}), i.forEach(Me);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Ir(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Ar(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
232
|
+
function Mr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
236
236
|
const h = te;
|
|
237
237
|
ee(e);
|
|
238
238
|
const u = e.$$ = {
|
|
@@ -242,7 +242,7 @@ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
props: o,
|
|
243
243
|
update: O,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: tt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
255
|
-
dirty:
|
|
254
|
+
callbacks: tt(),
|
|
255
|
+
dirty: s,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || h.$$.root
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
a && a(u.root);
|
|
260
260
|
let l = !1;
|
|
261
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
262
|
-
const m =
|
|
263
|
-
return u.ctx && i(u.ctx[
|
|
264
|
-
}), u.update(), l = !0, Q(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
261
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
262
|
+
const m = p.length ? p[0] : f;
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Mr(e, c)), f;
|
|
264
|
+
}) : [], u.update(), l = !0, Q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const
|
|
267
|
-
u.fragment && u.fragment.l(
|
|
266
|
+
const c = Er(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(de);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && Lt(e.$$.fragment), Or(e, t.target, t.anchor), M();
|
|
271
271
|
}
|
|
272
272
|
ee(h);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Ot;
|
|
275
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -314,24 +314,24 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
314
314
|
let o;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
o = I("slot"), i !== "default" &&
|
|
317
|
+
o = I("slot"), i !== "default" && S(o, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(h, u) {
|
|
324
|
-
|
|
324
|
+
Qe(h, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(h) {
|
|
327
|
-
h &&
|
|
327
|
+
h && de(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = wr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
@@ -367,8 +367,8 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
367
367
|
this.$$c.$$.after_update.push(n), n();
|
|
368
368
|
for (const i in this.$$l)
|
|
369
369
|
for (const o of this.$$l[i]) {
|
|
370
|
-
const
|
|
371
|
-
this.$$l_u.set(o,
|
|
370
|
+
const a = this.$$c.$on(i, o);
|
|
371
|
+
this.$$l_u.set(o, a);
|
|
372
372
|
}
|
|
373
373
|
this.$$l = {};
|
|
374
374
|
}
|
|
@@ -418,36 +418,36 @@ function he(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let
|
|
421
|
+
function Rr(e, t, r, n, i, o) {
|
|
422
|
+
let a = class extends Ot {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
426
426
|
static get observedAttributes() {
|
|
427
427
|
return Object.keys(t).map(
|
|
428
|
-
(
|
|
428
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
|
-
return Object.keys(t).forEach((
|
|
433
|
-
Object.defineProperty(
|
|
432
|
+
return Object.keys(t).forEach((s) => {
|
|
433
|
+
Object.defineProperty(a.prototype, s, {
|
|
434
434
|
get() {
|
|
435
|
-
return this.$$c &&
|
|
435
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
436
436
|
},
|
|
437
437
|
set(h) {
|
|
438
|
-
h = he(
|
|
438
|
+
h = he(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
|
-
}), n.forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
}), n.forEach((s) => {
|
|
442
|
+
Object.defineProperty(a.prototype, s, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c?.[
|
|
444
|
+
return this.$$c?.[s];
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
|
-
|
|
448
|
+
a, a;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class $r {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Mr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
Ir(this, 1), this.$destroy = O;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,7 +475,7 @@ class Mr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!Ze(r))
|
|
479
479
|
return O;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
@@ -488,11 +488,11 @@ class Mr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Gr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -507,34 +507,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
|
509
509
|
***************************************************************************** */
|
|
510
|
-
var
|
|
511
|
-
return
|
|
510
|
+
var Ne = function(e, t) {
|
|
511
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
512
512
|
r.__proto__ = n;
|
|
513
513
|
} || function(r, n) {
|
|
514
514
|
for (var i in n)
|
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
-
},
|
|
516
|
+
}, Ne(e, t);
|
|
517
517
|
};
|
|
518
518
|
function R(e, t) {
|
|
519
519
|
if (typeof t != "function" && t !== null)
|
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
521
|
-
|
|
521
|
+
Ne(e, t);
|
|
522
522
|
function r() {
|
|
523
523
|
this.constructor = e;
|
|
524
524
|
}
|
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
526
526
|
}
|
|
527
|
-
var
|
|
528
|
-
return
|
|
527
|
+
var v = function() {
|
|
528
|
+
return v = Object.assign || function(t) {
|
|
529
529
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
530
530
|
r = arguments[n];
|
|
531
531
|
for (var o in r)
|
|
532
532
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
533
533
|
}
|
|
534
534
|
return t;
|
|
535
|
-
},
|
|
535
|
+
}, v.apply(this, arguments);
|
|
536
536
|
};
|
|
537
|
-
function
|
|
537
|
+
function Ur(e, t) {
|
|
538
538
|
var r = {};
|
|
539
539
|
for (var n in e)
|
|
540
540
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -543,7 +543,7 @@ function Rr(e, t) {
|
|
|
543
543
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
544
544
|
return r;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Re(e) {
|
|
547
547
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
548
548
|
if (r)
|
|
549
549
|
return r.call(e);
|
|
@@ -555,22 +555,22 @@ function Ne(e) {
|
|
|
555
555
|
};
|
|
556
556
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function $e(e, t) {
|
|
559
559
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
560
560
|
if (!r)
|
|
561
561
|
return e;
|
|
562
|
-
var n = r.call(e), i, o = [],
|
|
562
|
+
var n = r.call(e), i, o = [], a;
|
|
563
563
|
try {
|
|
564
564
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
565
565
|
o.push(i.value);
|
|
566
|
-
} catch (
|
|
567
|
-
|
|
566
|
+
} catch (s) {
|
|
567
|
+
a = { error: s };
|
|
568
568
|
} finally {
|
|
569
569
|
try {
|
|
570
570
|
i && !i.done && (r = n.return) && r.call(n);
|
|
571
571
|
} finally {
|
|
572
|
-
if (
|
|
573
|
-
throw
|
|
572
|
+
if (a)
|
|
573
|
+
throw a.error;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
return o;
|
|
@@ -584,13 +584,13 @@ function V(e, t, r) {
|
|
|
584
584
|
function N(e) {
|
|
585
585
|
return typeof e == "function";
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function It(e) {
|
|
588
588
|
var t = function(n) {
|
|
589
589
|
Error.call(n), n.stack = new Error().stack;
|
|
590
590
|
}, r = e(t);
|
|
591
591
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
592
592
|
}
|
|
593
|
-
var Te =
|
|
593
|
+
var Te = It(function(e) {
|
|
594
594
|
return function(r) {
|
|
595
595
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
596
596
|
` + r.map(function(n, i) {
|
|
@@ -599,7 +599,7 @@ var Te = Lt(function(e) {
|
|
|
599
599
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
600
600
|
};
|
|
601
601
|
});
|
|
602
|
-
function
|
|
602
|
+
function Ge(e, t) {
|
|
603
603
|
if (e) {
|
|
604
604
|
var r = e.indexOf(t);
|
|
605
605
|
0 <= r && e.splice(r, 1);
|
|
@@ -613,11 +613,11 @@ var be = function() {
|
|
|
613
613
|
var t, r, n, i, o;
|
|
614
614
|
if (!this.closed) {
|
|
615
615
|
this.closed = !0;
|
|
616
|
-
var
|
|
617
|
-
if (
|
|
618
|
-
if (this._parentage = null, Array.isArray(
|
|
616
|
+
var a = this._parentage;
|
|
617
|
+
if (a)
|
|
618
|
+
if (this._parentage = null, Array.isArray(a))
|
|
619
619
|
try {
|
|
620
|
-
for (var
|
|
620
|
+
for (var s = Re(a), h = s.next(); !h.done; h = s.next()) {
|
|
621
621
|
var u = h.value;
|
|
622
622
|
u.remove(this);
|
|
623
623
|
}
|
|
@@ -625,14 +625,14 @@ var be = function() {
|
|
|
625
625
|
t = { error: y };
|
|
626
626
|
} finally {
|
|
627
627
|
try {
|
|
628
|
-
h && !h.done && (r =
|
|
628
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
629
629
|
} finally {
|
|
630
630
|
if (t)
|
|
631
631
|
throw t.error;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
else
|
|
635
|
-
|
|
635
|
+
a.remove(this);
|
|
636
636
|
var l = this.initialTeardown;
|
|
637
637
|
if (N(l))
|
|
638
638
|
try {
|
|
@@ -640,23 +640,23 @@ var be = function() {
|
|
|
640
640
|
} catch (y) {
|
|
641
641
|
o = y instanceof Te ? y.errors : [y];
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
if (
|
|
643
|
+
var c = this._finalizers;
|
|
644
|
+
if (c) {
|
|
645
645
|
this._finalizers = null;
|
|
646
646
|
try {
|
|
647
|
-
for (var
|
|
648
|
-
var m =
|
|
647
|
+
for (var f = Re(c), p = f.next(); !p.done; p = f.next()) {
|
|
648
|
+
var m = p.value;
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
it(m);
|
|
651
651
|
} catch (y) {
|
|
652
|
-
o = o ?? [], y instanceof Te ? o = V(V([],
|
|
652
|
+
o = o ?? [], y instanceof Te ? o = V(V([], $e(o)), $e(y.errors)) : o.push(y);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
} catch (y) {
|
|
656
656
|
n = { error: y };
|
|
657
657
|
} finally {
|
|
658
658
|
try {
|
|
659
|
-
|
|
659
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
660
660
|
} finally {
|
|
661
661
|
if (n)
|
|
662
662
|
throw n.error;
|
|
@@ -670,7 +670,7 @@ var be = function() {
|
|
|
670
670
|
var r;
|
|
671
671
|
if (t && t !== this)
|
|
672
672
|
if (this.closed)
|
|
673
|
-
|
|
673
|
+
it(t);
|
|
674
674
|
else {
|
|
675
675
|
if (t instanceof e) {
|
|
676
676
|
if (t.closed || t._hasParent(this))
|
|
@@ -687,56 +687,56 @@ var be = function() {
|
|
|
687
687
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
688
688
|
}, e.prototype._removeParent = function(t) {
|
|
689
689
|
var r = this._parentage;
|
|
690
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
690
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
691
691
|
}, e.prototype.remove = function(t) {
|
|
692
692
|
var r = this._finalizers;
|
|
693
|
-
r &&
|
|
693
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
694
694
|
}, e.EMPTY = function() {
|
|
695
695
|
var t = new e();
|
|
696
696
|
return t.closed = !0, t;
|
|
697
697
|
}(), e;
|
|
698
|
-
}(),
|
|
699
|
-
function
|
|
698
|
+
}(), Mt = be.EMPTY;
|
|
699
|
+
function Nt(e) {
|
|
700
700
|
return e instanceof be || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function it(e) {
|
|
703
703
|
N(e) ? e() : e.unsubscribe();
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var Rt = {
|
|
706
706
|
onUnhandledError: null,
|
|
707
707
|
onStoppedNotification: null,
|
|
708
708
|
Promise: void 0,
|
|
709
709
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
710
|
useDeprecatedNextContext: !1
|
|
711
|
-
},
|
|
711
|
+
}, Dr = {
|
|
712
712
|
setTimeout: function(e, t) {
|
|
713
713
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
714
714
|
r[n - 2] = arguments[n];
|
|
715
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
715
|
+
return setTimeout.apply(void 0, V([e, t], $e(r)));
|
|
716
716
|
},
|
|
717
717
|
clearTimeout: function(e) {
|
|
718
718
|
return clearTimeout(e);
|
|
719
719
|
},
|
|
720
720
|
delegate: void 0
|
|
721
721
|
};
|
|
722
|
-
function
|
|
723
|
-
|
|
722
|
+
function Fr(e) {
|
|
723
|
+
Dr.setTimeout(function() {
|
|
724
724
|
throw e;
|
|
725
725
|
});
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function ot() {
|
|
728
728
|
}
|
|
729
729
|
function le(e) {
|
|
730
730
|
e();
|
|
731
731
|
}
|
|
732
|
-
var
|
|
732
|
+
var $t = function(e) {
|
|
733
733
|
R(t, e);
|
|
734
734
|
function t(r) {
|
|
735
735
|
var n = e.call(this) || this;
|
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
736
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Xr, n;
|
|
737
737
|
}
|
|
738
738
|
return t.create = function(r, n, i) {
|
|
739
|
-
return new
|
|
739
|
+
return new Ue(r, n, i);
|
|
740
740
|
}, t.prototype.next = function(r) {
|
|
741
741
|
this.isStopped || this._next(r);
|
|
742
742
|
}, t.prototype.error = function(r) {
|
|
@@ -760,7 +760,11 @@ var Mt = function(e) {
|
|
|
760
760
|
this.unsubscribe();
|
|
761
761
|
}
|
|
762
762
|
}, t;
|
|
763
|
-
}(be),
|
|
763
|
+
}(be), jr = Function.prototype.bind;
|
|
764
|
+
function He(e, t) {
|
|
765
|
+
return jr.call(e, t);
|
|
766
|
+
}
|
|
767
|
+
var kr = function() {
|
|
764
768
|
function e(t) {
|
|
765
769
|
this.partialObserver = t;
|
|
766
770
|
}
|
|
@@ -791,43 +795,55 @@ var Mt = function(e) {
|
|
|
791
795
|
oe(r);
|
|
792
796
|
}
|
|
793
797
|
}, e;
|
|
794
|
-
}(),
|
|
798
|
+
}(), Ue = function(e) {
|
|
795
799
|
R(t, e);
|
|
796
800
|
function t(r, n, i) {
|
|
797
|
-
var o = e.call(this) || this,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
801
|
+
var o = e.call(this) || this, a;
|
|
802
|
+
if (N(r) || !r)
|
|
803
|
+
a = {
|
|
804
|
+
next: r ?? void 0,
|
|
805
|
+
error: n ?? void 0,
|
|
806
|
+
complete: i ?? void 0
|
|
807
|
+
};
|
|
808
|
+
else {
|
|
809
|
+
var s;
|
|
810
|
+
o && Rt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
811
|
+
return o.unsubscribe();
|
|
812
|
+
}, a = {
|
|
813
|
+
next: r.next && He(r.next, s),
|
|
814
|
+
error: r.error && He(r.error, s),
|
|
815
|
+
complete: r.complete && He(r.complete, s)
|
|
816
|
+
}) : a = r;
|
|
817
|
+
}
|
|
818
|
+
return o.destination = new kr(a), o;
|
|
803
819
|
}
|
|
804
820
|
return t;
|
|
805
|
-
}(
|
|
821
|
+
}($t);
|
|
806
822
|
function oe(e) {
|
|
807
|
-
|
|
823
|
+
Fr(e);
|
|
808
824
|
}
|
|
809
|
-
function
|
|
825
|
+
function Vr(e) {
|
|
810
826
|
throw e;
|
|
811
827
|
}
|
|
812
|
-
var
|
|
828
|
+
var Xr = {
|
|
813
829
|
closed: !0,
|
|
814
|
-
next:
|
|
815
|
-
error:
|
|
816
|
-
complete:
|
|
817
|
-
},
|
|
830
|
+
next: ot,
|
|
831
|
+
error: Vr,
|
|
832
|
+
complete: ot
|
|
833
|
+
}, Wr = function() {
|
|
818
834
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
819
835
|
}();
|
|
820
|
-
function
|
|
836
|
+
function zr(e) {
|
|
821
837
|
return e;
|
|
822
838
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.length === 0 ?
|
|
839
|
+
function Zr(e) {
|
|
840
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
825
841
|
return e.reduce(function(n, i) {
|
|
826
842
|
return i(n);
|
|
827
843
|
}, r);
|
|
828
844
|
};
|
|
829
845
|
}
|
|
830
|
-
var
|
|
846
|
+
var st = function() {
|
|
831
847
|
function e(t) {
|
|
832
848
|
t && (this._subscribe = t);
|
|
833
849
|
}
|
|
@@ -835,10 +851,10 @@ var it = function() {
|
|
|
835
851
|
var r = new e();
|
|
836
852
|
return r.source = this, r.operator = t, r;
|
|
837
853
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
838
|
-
var i = this, o =
|
|
854
|
+
var i = this, o = Jr(t) ? t : new Ue(t, r, n);
|
|
839
855
|
return le(function() {
|
|
840
|
-
var
|
|
841
|
-
o.add(
|
|
856
|
+
var a = i, s = a.operator, h = a.source;
|
|
857
|
+
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
842
858
|
}), o;
|
|
843
859
|
}, e.prototype._trySubscribe = function(t) {
|
|
844
860
|
try {
|
|
@@ -848,37 +864,37 @@ var it = function() {
|
|
|
848
864
|
}
|
|
849
865
|
}, e.prototype.forEach = function(t, r) {
|
|
850
866
|
var n = this;
|
|
851
|
-
return r =
|
|
852
|
-
var
|
|
853
|
-
next: function(
|
|
867
|
+
return r = at(r), new r(function(i, o) {
|
|
868
|
+
var a = new Ue({
|
|
869
|
+
next: function(s) {
|
|
854
870
|
try {
|
|
855
|
-
t(
|
|
871
|
+
t(s);
|
|
856
872
|
} catch (h) {
|
|
857
|
-
o(h),
|
|
873
|
+
o(h), a.unsubscribe();
|
|
858
874
|
}
|
|
859
875
|
},
|
|
860
876
|
error: o,
|
|
861
877
|
complete: i
|
|
862
878
|
});
|
|
863
|
-
n.subscribe(
|
|
879
|
+
n.subscribe(a);
|
|
864
880
|
});
|
|
865
881
|
}, e.prototype._subscribe = function(t) {
|
|
866
882
|
var r;
|
|
867
883
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
868
|
-
}, e.prototype[
|
|
884
|
+
}, e.prototype[Wr] = function() {
|
|
869
885
|
return this;
|
|
870
886
|
}, e.prototype.pipe = function() {
|
|
871
887
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
872
888
|
t[r] = arguments[r];
|
|
873
|
-
return
|
|
889
|
+
return Zr(t)(this);
|
|
874
890
|
}, e.prototype.toPromise = function(t) {
|
|
875
891
|
var r = this;
|
|
876
|
-
return t =
|
|
892
|
+
return t = at(t), new t(function(n, i) {
|
|
877
893
|
var o;
|
|
878
|
-
r.subscribe(function(
|
|
879
|
-
return o =
|
|
880
|
-
}, function(
|
|
881
|
-
return i(
|
|
894
|
+
r.subscribe(function(a) {
|
|
895
|
+
return o = a;
|
|
896
|
+
}, function(a) {
|
|
897
|
+
return i(a);
|
|
882
898
|
}, function() {
|
|
883
899
|
return n(o);
|
|
884
900
|
});
|
|
@@ -887,32 +903,32 @@ var it = function() {
|
|
|
887
903
|
return new e(t);
|
|
888
904
|
}, e;
|
|
889
905
|
}();
|
|
890
|
-
function
|
|
906
|
+
function at(e) {
|
|
891
907
|
var t;
|
|
892
|
-
return (t = e ??
|
|
908
|
+
return (t = e ?? Rt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
893
909
|
}
|
|
894
|
-
function
|
|
910
|
+
function Qr(e) {
|
|
895
911
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
896
912
|
}
|
|
897
|
-
function
|
|
898
|
-
return e && e instanceof
|
|
913
|
+
function Jr(e) {
|
|
914
|
+
return e && e instanceof $t || Qr(e) && Nt(e);
|
|
899
915
|
}
|
|
900
|
-
var
|
|
916
|
+
var Yr = It(function(e) {
|
|
901
917
|
return function() {
|
|
902
918
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
903
919
|
};
|
|
904
|
-
}),
|
|
920
|
+
}), Gt = function(e) {
|
|
905
921
|
R(t, e);
|
|
906
922
|
function t() {
|
|
907
923
|
var r = e.call(this) || this;
|
|
908
924
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
909
925
|
}
|
|
910
926
|
return t.prototype.lift = function(r) {
|
|
911
|
-
var n = new
|
|
927
|
+
var n = new ut(this, this);
|
|
912
928
|
return n.operator = r, n;
|
|
913
929
|
}, t.prototype._throwIfClosed = function() {
|
|
914
930
|
if (this.closed)
|
|
915
|
-
throw new
|
|
931
|
+
throw new Yr();
|
|
916
932
|
}, t.prototype.next = function(r) {
|
|
917
933
|
var n = this;
|
|
918
934
|
le(function() {
|
|
@@ -920,15 +936,15 @@ var Zr = Lt(function(e) {
|
|
|
920
936
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
921
937
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
922
938
|
try {
|
|
923
|
-
for (var
|
|
924
|
-
var h =
|
|
939
|
+
for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
940
|
+
var h = s.value;
|
|
925
941
|
h.next(r);
|
|
926
942
|
}
|
|
927
943
|
} catch (u) {
|
|
928
944
|
i = { error: u };
|
|
929
945
|
} finally {
|
|
930
946
|
try {
|
|
931
|
-
|
|
947
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
932
948
|
} finally {
|
|
933
949
|
if (i)
|
|
934
950
|
throw i.error;
|
|
@@ -968,20 +984,20 @@ var Zr = Lt(function(e) {
|
|
|
968
984
|
}, t.prototype._subscribe = function(r) {
|
|
969
985
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
970
986
|
}, t.prototype._innerSubscribe = function(r) {
|
|
971
|
-
var n = this, i = this, o = i.hasError,
|
|
972
|
-
return o ||
|
|
973
|
-
n.currentObservers = null,
|
|
987
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
988
|
+
return o || a ? Mt : (this.currentObservers = null, s.push(r), new be(function() {
|
|
989
|
+
n.currentObservers = null, Ge(s, r);
|
|
974
990
|
}));
|
|
975
991
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
976
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
977
|
-
i ? r.error(o) :
|
|
992
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
993
|
+
i ? r.error(o) : a && r.complete();
|
|
978
994
|
}, t.prototype.asObservable = function() {
|
|
979
|
-
var r = new
|
|
995
|
+
var r = new st();
|
|
980
996
|
return r.source = this, r;
|
|
981
997
|
}, t.create = function(r, n) {
|
|
982
|
-
return new
|
|
998
|
+
return new ut(r, n);
|
|
983
999
|
}, t;
|
|
984
|
-
}(
|
|
1000
|
+
}(st), ut = function(e) {
|
|
985
1001
|
R(t, e);
|
|
986
1002
|
function t(r, n) {
|
|
987
1003
|
var i = e.call(this) || this;
|
|
@@ -998,45 +1014,45 @@ var Zr = Lt(function(e) {
|
|
|
998
1014
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
999
1015
|
}, t.prototype._subscribe = function(r) {
|
|
1000
1016
|
var n, i;
|
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1017
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
1002
1018
|
}, t;
|
|
1003
|
-
}(
|
|
1019
|
+
}(Gt), Ut = {
|
|
1004
1020
|
now: function() {
|
|
1005
|
-
return (
|
|
1021
|
+
return (Ut.delegate || Date).now();
|
|
1006
1022
|
},
|
|
1007
1023
|
delegate: void 0
|
|
1008
|
-
},
|
|
1024
|
+
}, qr = function(e) {
|
|
1009
1025
|
R(t, e);
|
|
1010
1026
|
function t(r, n, i) {
|
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1027
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
1012
1028
|
var o = e.call(this) || this;
|
|
1013
1029
|
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;
|
|
1014
1030
|
}
|
|
1015
1031
|
return t.prototype.next = function(r) {
|
|
1016
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
1017
|
-
i || (o.push(r), !
|
|
1032
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
|
|
1033
|
+
i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1018
1034
|
}, t.prototype._subscribe = function(r) {
|
|
1019
1035
|
this._throwIfClosed(), this._trimBuffer();
|
|
1020
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
1021
|
-
r.next(
|
|
1036
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
1037
|
+
r.next(s[h]);
|
|
1022
1038
|
return this._checkFinalizedStatuses(r), n;
|
|
1023
1039
|
}, t.prototype._trimBuffer = function() {
|
|
1024
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
1025
|
-
if (n < 1 / 0 &&
|
|
1040
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1041
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1026
1042
|
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
1027
1043
|
u = l;
|
|
1028
1044
|
u && o.splice(0, u + 1);
|
|
1029
1045
|
}
|
|
1030
1046
|
}, t;
|
|
1031
|
-
}(
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const r = new
|
|
1035
|
-
|
|
1047
|
+
}(Gt);
|
|
1048
|
+
const ht = [], lt = {}, Kr = (e, t = 0) => {
|
|
1049
|
+
if (ht.indexOf(e) == -1) {
|
|
1050
|
+
const r = new qr(t);
|
|
1051
|
+
lt[e] = r, ht.push(e);
|
|
1036
1052
|
}
|
|
1037
|
-
return
|
|
1053
|
+
return lt[e];
|
|
1038
1054
|
}, F = [];
|
|
1039
|
-
function
|
|
1055
|
+
function en(e, t) {
|
|
1040
1056
|
return {
|
|
1041
1057
|
subscribe: ge(e, t).subscribe
|
|
1042
1058
|
};
|
|
@@ -1044,8 +1060,8 @@ function Yr(e, t) {
|
|
|
1044
1060
|
function ge(e, t = O) {
|
|
1045
1061
|
let r;
|
|
1046
1062
|
const n = /* @__PURE__ */ new Set();
|
|
1047
|
-
function i(
|
|
1048
|
-
if (
|
|
1063
|
+
function i(s) {
|
|
1064
|
+
if (Ct(e, s) && (e = s, r)) {
|
|
1049
1065
|
const h = !F.length;
|
|
1050
1066
|
for (const u of n)
|
|
1051
1067
|
u[1](), F.push(u, e);
|
|
@@ -1056,112 +1072,112 @@ function ge(e, t = O) {
|
|
|
1056
1072
|
}
|
|
1057
1073
|
}
|
|
1058
1074
|
}
|
|
1059
|
-
function o(
|
|
1060
|
-
i(
|
|
1075
|
+
function o(s) {
|
|
1076
|
+
i(s(e));
|
|
1061
1077
|
}
|
|
1062
|
-
function s
|
|
1063
|
-
const u = [
|
|
1064
|
-
return n.add(u), n.size === 1 && (r = t(i, o) || O),
|
|
1078
|
+
function a(s, h = O) {
|
|
1079
|
+
const u = [s, h];
|
|
1080
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), s(e), () => {
|
|
1065
1081
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1066
1082
|
};
|
|
1067
1083
|
}
|
|
1068
|
-
return { set: i, update: o, subscribe:
|
|
1084
|
+
return { set: i, update: o, subscribe: a };
|
|
1069
1085
|
}
|
|
1070
1086
|
function J(e, t, r) {
|
|
1071
1087
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1072
1088
|
if (!i.every(Boolean))
|
|
1073
1089
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1074
1090
|
const o = t.length < 2;
|
|
1075
|
-
return
|
|
1091
|
+
return en(r, (a, s) => {
|
|
1076
1092
|
let h = !1;
|
|
1077
1093
|
const u = [];
|
|
1078
|
-
let l = 0,
|
|
1079
|
-
const
|
|
1094
|
+
let l = 0, c = O;
|
|
1095
|
+
const f = () => {
|
|
1080
1096
|
if (l)
|
|
1081
1097
|
return;
|
|
1082
|
-
|
|
1083
|
-
const m = t(n ? u[0] : u,
|
|
1084
|
-
o ?
|
|
1085
|
-
},
|
|
1086
|
-
(m, y) =>
|
|
1098
|
+
c();
|
|
1099
|
+
const m = t(n ? u[0] : u, a, s);
|
|
1100
|
+
o ? a(m) : c = Ze(m) ? m : O;
|
|
1101
|
+
}, p = i.map(
|
|
1102
|
+
(m, y) => At(
|
|
1087
1103
|
m,
|
|
1088
1104
|
(E) => {
|
|
1089
|
-
u[y] = E, l &= ~(1 << y), h &&
|
|
1105
|
+
u[y] = E, l &= ~(1 << y), h && f();
|
|
1090
1106
|
},
|
|
1091
1107
|
() => {
|
|
1092
1108
|
l |= 1 << y;
|
|
1093
1109
|
}
|
|
1094
1110
|
)
|
|
1095
1111
|
);
|
|
1096
|
-
return h = !0,
|
|
1097
|
-
Q(
|
|
1112
|
+
return h = !0, f(), function() {
|
|
1113
|
+
Q(p), c(), h = !1;
|
|
1098
1114
|
};
|
|
1099
1115
|
});
|
|
1100
1116
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1117
|
+
function tn(e) {
|
|
1118
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1103
1119
|
}
|
|
1104
|
-
var
|
|
1105
|
-
return
|
|
1120
|
+
var rn = function(t) {
|
|
1121
|
+
return nn(t) && !on(t);
|
|
1106
1122
|
};
|
|
1107
|
-
function
|
|
1123
|
+
function nn(e) {
|
|
1108
1124
|
return !!e && typeof e == "object";
|
|
1109
1125
|
}
|
|
1110
|
-
function
|
|
1126
|
+
function on(e) {
|
|
1111
1127
|
var t = Object.prototype.toString.call(e);
|
|
1112
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1128
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
1113
1129
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1116
|
-
return e.$$typeof ===
|
|
1130
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
1131
|
+
function un(e) {
|
|
1132
|
+
return e.$$typeof === an;
|
|
1117
1133
|
}
|
|
1118
|
-
function
|
|
1134
|
+
function hn(e) {
|
|
1119
1135
|
return Array.isArray(e) ? [] : {};
|
|
1120
1136
|
}
|
|
1121
1137
|
function re(e, t) {
|
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1138
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(hn(e), e, t) : e;
|
|
1123
1139
|
}
|
|
1124
|
-
function
|
|
1140
|
+
function ln(e, t, r) {
|
|
1125
1141
|
return e.concat(t).map(function(n) {
|
|
1126
1142
|
return re(n, r);
|
|
1127
1143
|
});
|
|
1128
1144
|
}
|
|
1129
|
-
function
|
|
1145
|
+
function cn(e, t) {
|
|
1130
1146
|
if (!t.customMerge)
|
|
1131
1147
|
return X;
|
|
1132
1148
|
var r = t.customMerge(e);
|
|
1133
1149
|
return typeof r == "function" ? r : X;
|
|
1134
1150
|
}
|
|
1135
|
-
function
|
|
1151
|
+
function fn(e) {
|
|
1136
1152
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1137
1153
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1138
1154
|
}) : [];
|
|
1139
1155
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return Object.keys(e).concat(
|
|
1156
|
+
function ct(e) {
|
|
1157
|
+
return Object.keys(e).concat(fn(e));
|
|
1142
1158
|
}
|
|
1143
|
-
function
|
|
1159
|
+
function Dt(e, t) {
|
|
1144
1160
|
try {
|
|
1145
1161
|
return t in e;
|
|
1146
1162
|
} catch {
|
|
1147
1163
|
return !1;
|
|
1148
1164
|
}
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1166
|
+
function mn(e, t) {
|
|
1167
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1152
1168
|
}
|
|
1153
|
-
function
|
|
1169
|
+
function pn(e, t, r) {
|
|
1154
1170
|
var n = {};
|
|
1155
|
-
return r.isMergeableObject(e) &&
|
|
1171
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1156
1172
|
n[i] = re(e[i], r);
|
|
1157
|
-
}),
|
|
1158
|
-
|
|
1173
|
+
}), ct(t).forEach(function(i) {
|
|
1174
|
+
mn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1159
1175
|
}), n;
|
|
1160
1176
|
}
|
|
1161
1177
|
function X(e, t, r) {
|
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1178
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = re;
|
|
1163
1179
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1164
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1180
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : re(t, r);
|
|
1165
1181
|
}
|
|
1166
1182
|
X.all = function(t, r) {
|
|
1167
1183
|
if (!Array.isArray(t))
|
|
@@ -1170,109 +1186,107 @@ X.all = function(t, r) {
|
|
|
1170
1186
|
return X(n, i, r);
|
|
1171
1187
|
}, {});
|
|
1172
1188
|
};
|
|
1173
|
-
var
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1176
|
-
var r = t && t.cache ? t.cache :
|
|
1189
|
+
var dn = X, bn = dn;
|
|
1190
|
+
const gn = /* @__PURE__ */ tn(bn);
|
|
1191
|
+
function Be(e, t) {
|
|
1192
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
|
|
1177
1193
|
return i(e, {
|
|
1178
1194
|
cache: r,
|
|
1179
1195
|
serializer: n
|
|
1180
1196
|
});
|
|
1181
1197
|
}
|
|
1182
|
-
function
|
|
1198
|
+
function yn(e) {
|
|
1183
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1184
1200
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1201
|
+
function Ft(e, t, r, n) {
|
|
1202
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1187
1203
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1188
1204
|
}
|
|
1189
|
-
function
|
|
1205
|
+
function jt(e, t, r) {
|
|
1190
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1191
1207
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1192
1208
|
}
|
|
1193
|
-
function
|
|
1209
|
+
function Je(e, t, r, n, i) {
|
|
1194
1210
|
return r.bind(t, e, n, i);
|
|
1195
1211
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var r = e.length === 1 ?
|
|
1198
|
-
return
|
|
1212
|
+
function vn(e, t) {
|
|
1213
|
+
var r = e.length === 1 ? Ft : jt;
|
|
1214
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1199
1215
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return
|
|
1216
|
+
function xn(e, t) {
|
|
1217
|
+
return Je(e, this, jt, t.cache.create(), t.serializer);
|
|
1202
1218
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1219
|
+
function _n(e, t) {
|
|
1220
|
+
return Je(e, this, Ft, t.cache.create(), t.serializer);
|
|
1205
1221
|
}
|
|
1206
|
-
var
|
|
1222
|
+
var En = function() {
|
|
1207
1223
|
return JSON.stringify(arguments);
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}()
|
|
1220
|
-
), _n = {
|
|
1224
|
+
};
|
|
1225
|
+
function Ye() {
|
|
1226
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1227
|
+
}
|
|
1228
|
+
Ye.prototype.get = function(e) {
|
|
1229
|
+
return this.cache[e];
|
|
1230
|
+
};
|
|
1231
|
+
Ye.prototype.set = function(e, t) {
|
|
1232
|
+
this.cache[e] = t;
|
|
1233
|
+
};
|
|
1234
|
+
var wn = {
|
|
1221
1235
|
create: function() {
|
|
1222
|
-
return new
|
|
1236
|
+
return new Ye();
|
|
1223
1237
|
}
|
|
1224
|
-
},
|
|
1225
|
-
variadic:
|
|
1226
|
-
monadic:
|
|
1227
|
-
},
|
|
1238
|
+
}, Ce = {
|
|
1239
|
+
variadic: xn,
|
|
1240
|
+
monadic: _n
|
|
1241
|
+
}, d;
|
|
1228
1242
|
(function(e) {
|
|
1229
1243
|
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";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1244
|
+
})(d || (d = {}));
|
|
1245
|
+
var x;
|
|
1232
1246
|
(function(e) {
|
|
1233
1247
|
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";
|
|
1234
|
-
})(
|
|
1248
|
+
})(x || (x = {}));
|
|
1235
1249
|
var W;
|
|
1236
1250
|
(function(e) {
|
|
1237
1251
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1238
1252
|
})(W || (W = {}));
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1241
|
-
}
|
|
1242
|
-
function En(e) {
|
|
1243
|
-
return e.type === v.argument;
|
|
1244
|
-
}
|
|
1245
|
-
function Dt(e) {
|
|
1246
|
-
return e.type === v.number;
|
|
1253
|
+
function ft(e) {
|
|
1254
|
+
return e.type === x.literal;
|
|
1247
1255
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1250
|
-
}
|
|
1251
|
-
function jt(e) {
|
|
1252
|
-
return e.type === v.time;
|
|
1256
|
+
function Sn(e) {
|
|
1257
|
+
return e.type === x.argument;
|
|
1253
1258
|
}
|
|
1254
1259
|
function kt(e) {
|
|
1255
|
-
return e.type ===
|
|
1260
|
+
return e.type === x.number;
|
|
1256
1261
|
}
|
|
1257
1262
|
function Vt(e) {
|
|
1258
|
-
return e.type ===
|
|
1259
|
-
}
|
|
1260
|
-
function wn(e) {
|
|
1261
|
-
return e.type === v.pound;
|
|
1263
|
+
return e.type === x.date;
|
|
1262
1264
|
}
|
|
1263
1265
|
function Xt(e) {
|
|
1264
|
-
return e.type ===
|
|
1266
|
+
return e.type === x.time;
|
|
1265
1267
|
}
|
|
1266
1268
|
function Wt(e) {
|
|
1269
|
+
return e.type === x.select;
|
|
1270
|
+
}
|
|
1271
|
+
function zt(e) {
|
|
1272
|
+
return e.type === x.plural;
|
|
1273
|
+
}
|
|
1274
|
+
function Tn(e) {
|
|
1275
|
+
return e.type === x.pound;
|
|
1276
|
+
}
|
|
1277
|
+
function Zt(e) {
|
|
1278
|
+
return e.type === x.tag;
|
|
1279
|
+
}
|
|
1280
|
+
function Qt(e) {
|
|
1267
1281
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1268
1282
|
}
|
|
1269
|
-
function
|
|
1283
|
+
function De(e) {
|
|
1270
1284
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1271
1285
|
}
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1286
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
|
1287
|
+
function Bn(e) {
|
|
1274
1288
|
var t = {};
|
|
1275
|
-
return e.replace(
|
|
1289
|
+
return e.replace(Hn, function(r) {
|
|
1276
1290
|
var n = r.length;
|
|
1277
1291
|
switch (r[0]) {
|
|
1278
1292
|
case "G":
|
|
@@ -1361,36 +1375,36 @@ function Tn(e) {
|
|
|
1361
1375
|
return "";
|
|
1362
1376
|
}), t;
|
|
1363
1377
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1378
|
+
var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1379
|
+
function An(e) {
|
|
1366
1380
|
if (e.length === 0)
|
|
1367
1381
|
throw new Error("Number skeleton cannot be empty");
|
|
1368
|
-
for (var t = e.split(
|
|
1369
|
-
return
|
|
1382
|
+
for (var t = e.split(Cn).filter(function(f) {
|
|
1383
|
+
return f.length > 0;
|
|
1370
1384
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1371
|
-
var o = i[n],
|
|
1372
|
-
if (
|
|
1385
|
+
var o = i[n], a = o.split("/");
|
|
1386
|
+
if (a.length === 0)
|
|
1373
1387
|
throw new Error("Invalid number skeleton");
|
|
1374
|
-
for (var
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1388
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1389
|
+
var c = l[u];
|
|
1390
|
+
if (c.length === 0)
|
|
1377
1391
|
throw new Error("Invalid number skeleton");
|
|
1378
1392
|
}
|
|
1379
|
-
r.push({ stem:
|
|
1393
|
+
r.push({ stem: s, options: h });
|
|
1380
1394
|
}
|
|
1381
1395
|
return r;
|
|
1382
1396
|
}
|
|
1383
|
-
function
|
|
1397
|
+
function Pn(e) {
|
|
1384
1398
|
return e.replace(/^(.*?)-/, "");
|
|
1385
1399
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1400
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1401
|
+
function pt(e) {
|
|
1388
1402
|
var t = {};
|
|
1389
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1403
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1390
1404
|
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)), "";
|
|
1391
1405
|
}), t;
|
|
1392
1406
|
}
|
|
1393
|
-
function
|
|
1407
|
+
function Kt(e) {
|
|
1394
1408
|
switch (e) {
|
|
1395
1409
|
case "sign-auto":
|
|
1396
1410
|
return {
|
|
@@ -1430,7 +1444,7 @@ function Jt(e) {
|
|
|
1430
1444
|
};
|
|
1431
1445
|
}
|
|
1432
1446
|
}
|
|
1433
|
-
function
|
|
1447
|
+
function On(e) {
|
|
1434
1448
|
var t;
|
|
1435
1449
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1436
1450
|
notation: "engineering"
|
|
@@ -1438,17 +1452,17 @@ function Pn(e) {
|
|
|
1438
1452
|
notation: "scientific"
|
|
1439
1453
|
}, e = e.slice(1)), t) {
|
|
1440
1454
|
var r = e.slice(0, 2);
|
|
1441
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1455
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1442
1456
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1443
1457
|
t.minimumIntegerDigits = e.length;
|
|
1444
1458
|
}
|
|
1445
1459
|
return t;
|
|
1446
1460
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var t = {}, r =
|
|
1461
|
+
function dt(e) {
|
|
1462
|
+
var t = {}, r = Kt(e);
|
|
1449
1463
|
return r || t;
|
|
1450
1464
|
}
|
|
1451
|
-
function
|
|
1465
|
+
function In(e) {
|
|
1452
1466
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1453
1467
|
var i = n[r];
|
|
1454
1468
|
switch (i.stem) {
|
|
@@ -1472,7 +1486,7 @@ function Ln(e) {
|
|
|
1472
1486
|
continue;
|
|
1473
1487
|
case "measure-unit":
|
|
1474
1488
|
case "unit":
|
|
1475
|
-
t.style = "unit", t.unit =
|
|
1489
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1476
1490
|
continue;
|
|
1477
1491
|
case "compact-short":
|
|
1478
1492
|
case "K":
|
|
@@ -1483,13 +1497,13 @@ function Ln(e) {
|
|
|
1483
1497
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1484
1498
|
continue;
|
|
1485
1499
|
case "scientific":
|
|
1486
|
-
t =
|
|
1487
|
-
return
|
|
1500
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1501
|
+
return v(v({}, h), dt(u));
|
|
1488
1502
|
}, {}));
|
|
1489
1503
|
continue;
|
|
1490
1504
|
case "engineering":
|
|
1491
|
-
t =
|
|
1492
|
-
return
|
|
1505
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1506
|
+
return v(v({}, h), dt(u));
|
|
1493
1507
|
}, {}));
|
|
1494
1508
|
continue;
|
|
1495
1509
|
case "notation-simple":
|
|
@@ -1534,41 +1548,41 @@ function Ln(e) {
|
|
|
1534
1548
|
case "integer-width":
|
|
1535
1549
|
if (i.options.length > 1)
|
|
1536
1550
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1537
|
-
i.options[0].replace(
|
|
1551
|
+
i.options[0].replace(Ln, function(h, u, l, c, f, p) {
|
|
1538
1552
|
if (u)
|
|
1539
1553
|
t.minimumIntegerDigits = l.length;
|
|
1540
1554
|
else {
|
|
1541
|
-
if (
|
|
1555
|
+
if (c && f)
|
|
1542
1556
|
throw new Error("We currently do not support maximum integer digits");
|
|
1543
|
-
if (
|
|
1557
|
+
if (p)
|
|
1544
1558
|
throw new Error("We currently do not support exact integer digits");
|
|
1545
1559
|
}
|
|
1546
1560
|
return "";
|
|
1547
1561
|
});
|
|
1548
1562
|
continue;
|
|
1549
1563
|
}
|
|
1550
|
-
if (
|
|
1564
|
+
if (qt.test(i.stem)) {
|
|
1551
1565
|
t.minimumIntegerDigits = i.stem.length;
|
|
1552
1566
|
continue;
|
|
1553
1567
|
}
|
|
1554
|
-
if (
|
|
1568
|
+
if (mt.test(i.stem)) {
|
|
1555
1569
|
if (i.options.length > 1)
|
|
1556
1570
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1557
|
-
i.stem.replace(
|
|
1558
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1571
|
+
i.stem.replace(mt, function(h, u, l, c, f, p) {
|
|
1572
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1559
1573
|
});
|
|
1560
1574
|
var o = i.options[0];
|
|
1561
|
-
o === "w" ? t =
|
|
1575
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), pt(o)));
|
|
1562
1576
|
continue;
|
|
1563
1577
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
t =
|
|
1578
|
+
if (Yt.test(i.stem)) {
|
|
1579
|
+
t = v(v({}, t), pt(i.stem));
|
|
1566
1580
|
continue;
|
|
1567
1581
|
}
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1570
|
-
var
|
|
1571
|
-
|
|
1582
|
+
var a = Kt(i.stem);
|
|
1583
|
+
a && (t = v(v({}, t), a));
|
|
1584
|
+
var s = On(i.stem);
|
|
1585
|
+
s && (t = v(v({}, t), s));
|
|
1572
1586
|
}
|
|
1573
1587
|
return t;
|
|
1574
1588
|
}
|
|
@@ -2987,23 +3001,23 @@ var se = {
|
|
|
2987
3001
|
"h"
|
|
2988
3002
|
]
|
|
2989
3003
|
};
|
|
2990
|
-
function
|
|
3004
|
+
function Mn(e, t) {
|
|
2991
3005
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2992
3006
|
var i = e.charAt(n);
|
|
2993
3007
|
if (i === "j") {
|
|
2994
3008
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2995
3009
|
o++, n++;
|
|
2996
|
-
var
|
|
2997
|
-
for ((u == "H" || u == "k") && (
|
|
3010
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Nn(t);
|
|
3011
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2998
3012
|
r += h;
|
|
2999
|
-
for (;
|
|
3013
|
+
for (; a-- > 0; )
|
|
3000
3014
|
r = u + r;
|
|
3001
3015
|
} else
|
|
3002
3016
|
i === "J" ? r += "H" : r += i;
|
|
3003
3017
|
}
|
|
3004
3018
|
return r;
|
|
3005
3019
|
}
|
|
3006
|
-
function
|
|
3020
|
+
function Nn(e) {
|
|
3007
3021
|
var t = e.hourCycle;
|
|
3008
3022
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3009
3023
|
e.hourCycles && // @ts-ignore
|
|
@@ -3025,20 +3039,20 @@ function In(e) {
|
|
|
3025
3039
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3026
3040
|
return i[0];
|
|
3027
3041
|
}
|
|
3028
|
-
var
|
|
3042
|
+
var Ae, Rn = new RegExp("^".concat(Jt.source, "*")), $n = new RegExp("".concat(Jt.source, "*$"));
|
|
3029
3043
|
function g(e, t) {
|
|
3030
3044
|
return { start: e, end: t };
|
|
3031
3045
|
}
|
|
3032
|
-
var
|
|
3046
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Dn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
|
3033
3047
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3034
|
-
},
|
|
3048
|
+
}, Fe = !0;
|
|
3035
3049
|
try {
|
|
3036
|
-
var
|
|
3037
|
-
|
|
3050
|
+
var Wn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3051
|
+
Fe = ((Ae = Wn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3038
3052
|
} catch {
|
|
3039
|
-
|
|
3053
|
+
Fe = !1;
|
|
3040
3054
|
}
|
|
3041
|
-
var
|
|
3055
|
+
var bt = Gn ? (
|
|
3042
3056
|
// Native
|
|
3043
3057
|
function(t, r, n) {
|
|
3044
3058
|
return t.startsWith(r, n);
|
|
@@ -3048,31 +3062,31 @@ var dt = Rn ? (
|
|
|
3048
3062
|
function(t, r, n) {
|
|
3049
3063
|
return t.slice(n, n + r.length) === r;
|
|
3050
3064
|
}
|
|
3051
|
-
),
|
|
3065
|
+
), je = Un ? String.fromCodePoint : (
|
|
3052
3066
|
// IE11
|
|
3053
3067
|
function() {
|
|
3054
3068
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3055
3069
|
t[r] = arguments[r];
|
|
3056
|
-
for (var n = "", i = t.length, o = 0,
|
|
3057
|
-
if (
|
|
3058
|
-
throw RangeError(
|
|
3059
|
-
n +=
|
|
3070
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3071
|
+
if (a = t[o++], a > 1114111)
|
|
3072
|
+
throw RangeError(a + " is not a valid code point");
|
|
3073
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3060
3074
|
}
|
|
3061
3075
|
return n;
|
|
3062
3076
|
}
|
|
3063
|
-
),
|
|
3077
|
+
), gt = (
|
|
3064
3078
|
// native
|
|
3065
|
-
|
|
3079
|
+
Dn ? Object.fromEntries : (
|
|
3066
3080
|
// Ponyfill
|
|
3067
3081
|
function(t) {
|
|
3068
3082
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3069
|
-
var o = i[n],
|
|
3070
|
-
r[
|
|
3083
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3084
|
+
r[a] = s;
|
|
3071
3085
|
}
|
|
3072
3086
|
return r;
|
|
3073
3087
|
}
|
|
3074
3088
|
)
|
|
3075
|
-
),
|
|
3089
|
+
), er = Fn ? (
|
|
3076
3090
|
// Native
|
|
3077
3091
|
function(t, r) {
|
|
3078
3092
|
return t.codePointAt(r);
|
|
@@ -3086,7 +3100,7 @@ var dt = Rn ? (
|
|
|
3086
3100
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3087
3101
|
}
|
|
3088
3102
|
}
|
|
3089
|
-
),
|
|
3103
|
+
), zn = jn ? (
|
|
3090
3104
|
// Native
|
|
3091
3105
|
function(t) {
|
|
3092
3106
|
return t.trimStart();
|
|
@@ -3094,9 +3108,9 @@ var dt = Rn ? (
|
|
|
3094
3108
|
) : (
|
|
3095
3109
|
// Ponyfill
|
|
3096
3110
|
function(t) {
|
|
3097
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Rn, "");
|
|
3098
3112
|
}
|
|
3099
|
-
),
|
|
3113
|
+
), Zn = kn ? (
|
|
3100
3114
|
// Native
|
|
3101
3115
|
function(t) {
|
|
3102
3116
|
return t.trimEnd();
|
|
@@ -3104,32 +3118,32 @@ var dt = Rn ? (
|
|
|
3104
3118
|
) : (
|
|
3105
3119
|
// Ponyfill
|
|
3106
3120
|
function(t) {
|
|
3107
|
-
return t.replace(
|
|
3121
|
+
return t.replace($n, "");
|
|
3108
3122
|
}
|
|
3109
3123
|
);
|
|
3110
|
-
function
|
|
3124
|
+
function tr(e, t) {
|
|
3111
3125
|
return new RegExp(e, t);
|
|
3112
3126
|
}
|
|
3113
|
-
var
|
|
3114
|
-
if (
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3127
|
+
var ke;
|
|
3128
|
+
if (Fe) {
|
|
3129
|
+
var yt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3130
|
+
ke = function(t, r) {
|
|
3117
3131
|
var n;
|
|
3118
|
-
|
|
3119
|
-
var i =
|
|
3132
|
+
yt.lastIndex = r;
|
|
3133
|
+
var i = yt.exec(t);
|
|
3120
3134
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3121
3135
|
};
|
|
3122
3136
|
} else
|
|
3123
|
-
|
|
3137
|
+
ke = function(t, r) {
|
|
3124
3138
|
for (var n = []; ; ) {
|
|
3125
|
-
var i =
|
|
3126
|
-
if (i === void 0 ||
|
|
3139
|
+
var i = er(t, r);
|
|
3140
|
+
if (i === void 0 || rr(i) || qn(i))
|
|
3127
3141
|
break;
|
|
3128
3142
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3129
3143
|
}
|
|
3130
|
-
return
|
|
3144
|
+
return je.apply(void 0, n);
|
|
3131
3145
|
};
|
|
3132
|
-
var
|
|
3146
|
+
var Qn = (
|
|
3133
3147
|
/** @class */
|
|
3134
3148
|
function() {
|
|
3135
3149
|
function e(t, r) {
|
|
@@ -3143,33 +3157,33 @@ var zn = (
|
|
|
3143
3157
|
for (var i = []; !this.isEOF(); ) {
|
|
3144
3158
|
var o = this.char();
|
|
3145
3159
|
if (o === 123) {
|
|
3146
|
-
var
|
|
3147
|
-
if (
|
|
3148
|
-
return
|
|
3149
|
-
i.push(
|
|
3160
|
+
var a = this.parseArgument(t, n);
|
|
3161
|
+
if (a.err)
|
|
3162
|
+
return a;
|
|
3163
|
+
i.push(a.val);
|
|
3150
3164
|
} else {
|
|
3151
3165
|
if (o === 125 && t > 0)
|
|
3152
3166
|
break;
|
|
3153
3167
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3154
|
-
var
|
|
3168
|
+
var s = this.clonePosition();
|
|
3155
3169
|
this.bump(), i.push({
|
|
3156
|
-
type:
|
|
3157
|
-
location: g(
|
|
3170
|
+
type: x.pound,
|
|
3171
|
+
location: g(s, this.clonePosition())
|
|
3158
3172
|
});
|
|
3159
3173
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3160
3174
|
if (n)
|
|
3161
3175
|
break;
|
|
3162
|
-
return this.error(
|
|
3163
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3164
|
-
var
|
|
3165
|
-
if (
|
|
3166
|
-
return
|
|
3167
|
-
i.push(
|
|
3176
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3177
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3178
|
+
var a = this.parseTag(t, r);
|
|
3179
|
+
if (a.err)
|
|
3180
|
+
return a;
|
|
3181
|
+
i.push(a.val);
|
|
3168
3182
|
} else {
|
|
3169
|
-
var
|
|
3170
|
-
if (
|
|
3171
|
-
return
|
|
3172
|
-
i.push(
|
|
3183
|
+
var a = this.parseLiteral(t, r);
|
|
3184
|
+
if (a.err)
|
|
3185
|
+
return a;
|
|
3186
|
+
i.push(a.val);
|
|
3173
3187
|
}
|
|
3174
3188
|
}
|
|
3175
3189
|
}
|
|
@@ -3181,7 +3195,7 @@ var zn = (
|
|
|
3181
3195
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3182
3196
|
return {
|
|
3183
3197
|
val: {
|
|
3184
|
-
type:
|
|
3198
|
+
type: x.literal,
|
|
3185
3199
|
value: "<".concat(i, "/>"),
|
|
3186
3200
|
location: g(n, this.clonePosition())
|
|
3187
3201
|
},
|
|
@@ -3191,27 +3205,27 @@ var zn = (
|
|
|
3191
3205
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3192
3206
|
if (o.err)
|
|
3193
3207
|
return o;
|
|
3194
|
-
var
|
|
3208
|
+
var a = o.val, s = this.clonePosition();
|
|
3195
3209
|
if (this.bumpIf("</")) {
|
|
3196
|
-
if (this.isEOF() || !
|
|
3197
|
-
return this.error(
|
|
3210
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3211
|
+
return this.error(d.INVALID_TAG, g(s, this.clonePosition()));
|
|
3198
3212
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3199
|
-
return i !== u ? this.error(
|
|
3213
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3200
3214
|
val: {
|
|
3201
|
-
type:
|
|
3215
|
+
type: x.tag,
|
|
3202
3216
|
value: i,
|
|
3203
|
-
children:
|
|
3217
|
+
children: a,
|
|
3204
3218
|
location: g(n, this.clonePosition())
|
|
3205
3219
|
},
|
|
3206
3220
|
err: null
|
|
3207
|
-
} : this.error(
|
|
3221
|
+
} : this.error(d.INVALID_TAG, g(s, this.clonePosition())));
|
|
3208
3222
|
} else
|
|
3209
|
-
return this.error(
|
|
3223
|
+
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3210
3224
|
} else
|
|
3211
|
-
return this.error(
|
|
3225
|
+
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3212
3226
|
}, e.prototype.parseTagName = function() {
|
|
3213
3227
|
var t = this.offset();
|
|
3214
|
-
for (this.bump(); !this.isEOF() &&
|
|
3228
|
+
for (this.bump(); !this.isEOF() && Yn(this.char()); )
|
|
3215
3229
|
this.bump();
|
|
3216
3230
|
return this.message.slice(t, this.offset());
|
|
3217
3231
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3221,26 +3235,26 @@ var zn = (
|
|
|
3221
3235
|
i += o;
|
|
3222
3236
|
continue;
|
|
3223
3237
|
}
|
|
3224
|
-
var
|
|
3225
|
-
if (s) {
|
|
3226
|
-
i += s;
|
|
3227
|
-
continue;
|
|
3228
|
-
}
|
|
3229
|
-
var a = this.tryParseLeftAngleBracket();
|
|
3238
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3230
3239
|
if (a) {
|
|
3231
3240
|
i += a;
|
|
3232
3241
|
continue;
|
|
3233
3242
|
}
|
|
3243
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3244
|
+
if (s) {
|
|
3245
|
+
i += s;
|
|
3246
|
+
continue;
|
|
3247
|
+
}
|
|
3234
3248
|
break;
|
|
3235
3249
|
}
|
|
3236
3250
|
var h = g(n, this.clonePosition());
|
|
3237
3251
|
return {
|
|
3238
|
-
val: { type:
|
|
3252
|
+
val: { type: x.literal, value: i, location: h },
|
|
3239
3253
|
err: null
|
|
3240
3254
|
};
|
|
3241
3255
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3242
3256
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3243
|
-
!
|
|
3257
|
+
!Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3244
3258
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3245
3259
|
if (this.isEOF() || this.char() !== 39)
|
|
3246
3260
|
return null;
|
|
@@ -3274,28 +3288,28 @@ var zn = (
|
|
|
3274
3288
|
r.push(n);
|
|
3275
3289
|
this.bump();
|
|
3276
3290
|
}
|
|
3277
|
-
return
|
|
3291
|
+
return je.apply(void 0, r);
|
|
3278
3292
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3279
3293
|
if (this.isEOF())
|
|
3280
3294
|
return null;
|
|
3281
3295
|
var n = this.char();
|
|
3282
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3296
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3283
3297
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3284
3298
|
var n = this.clonePosition();
|
|
3285
3299
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3286
|
-
return this.error(
|
|
3300
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3287
3301
|
if (this.char() === 125)
|
|
3288
|
-
return this.bump(), this.error(
|
|
3302
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3289
3303
|
var i = this.parseIdentifierIfPossible().value;
|
|
3290
3304
|
if (!i)
|
|
3291
|
-
return this.error(
|
|
3305
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3292
3306
|
if (this.bumpSpace(), this.isEOF())
|
|
3293
|
-
return this.error(
|
|
3307
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3294
3308
|
switch (this.char()) {
|
|
3295
3309
|
case 125:
|
|
3296
3310
|
return this.bump(), {
|
|
3297
3311
|
val: {
|
|
3298
|
-
type:
|
|
3312
|
+
type: x.argument,
|
|
3299
3313
|
// value does not include the opening and closing braces.
|
|
3300
3314
|
value: i,
|
|
3301
3315
|
location: g(n, this.clonePosition())
|
|
@@ -3303,20 +3317,20 @@ var zn = (
|
|
|
3303
3317
|
err: null
|
|
3304
3318
|
};
|
|
3305
3319
|
case 44:
|
|
3306
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3320
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3307
3321
|
default:
|
|
3308
|
-
return this.error(
|
|
3322
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3309
3323
|
}
|
|
3310
3324
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3311
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3325
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3312
3326
|
this.bumpTo(i);
|
|
3313
|
-
var o = this.clonePosition(),
|
|
3314
|
-
return { value: n, location:
|
|
3327
|
+
var o = this.clonePosition(), a = g(t, o);
|
|
3328
|
+
return { value: n, location: a };
|
|
3315
3329
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3316
|
-
var o,
|
|
3317
|
-
switch (
|
|
3330
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3331
|
+
switch (s) {
|
|
3318
3332
|
case "":
|
|
3319
|
-
return this.error(
|
|
3333
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, g(a, h));
|
|
3320
3334
|
case "number":
|
|
3321
3335
|
case "date":
|
|
3322
3336
|
case "time": {
|
|
@@ -3324,47 +3338,47 @@ var zn = (
|
|
|
3324
3338
|
var u = null;
|
|
3325
3339
|
if (this.bumpIf(",")) {
|
|
3326
3340
|
this.bumpSpace();
|
|
3327
|
-
var l = this.clonePosition(),
|
|
3328
|
-
if (
|
|
3329
|
-
return
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return this.error(
|
|
3333
|
-
var
|
|
3334
|
-
u = { style:
|
|
3341
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3342
|
+
if (c.err)
|
|
3343
|
+
return c;
|
|
3344
|
+
var f = Zn(c.val);
|
|
3345
|
+
if (f.length === 0)
|
|
3346
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3347
|
+
var p = g(l, this.clonePosition());
|
|
3348
|
+
u = { style: f, styleLocation: p };
|
|
3335
3349
|
}
|
|
3336
3350
|
var m = this.tryParseArgumentClose(i);
|
|
3337
3351
|
if (m.err)
|
|
3338
3352
|
return m;
|
|
3339
3353
|
var y = g(i, this.clonePosition());
|
|
3340
|
-
if (u &&
|
|
3341
|
-
var E =
|
|
3342
|
-
if (
|
|
3343
|
-
var
|
|
3344
|
-
return
|
|
3345
|
-
val: { type:
|
|
3354
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3355
|
+
var E = zn(u.style.slice(2));
|
|
3356
|
+
if (s === "number") {
|
|
3357
|
+
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3358
|
+
return c.err ? c : {
|
|
3359
|
+
val: { type: x.number, value: n, location: y, style: c.val },
|
|
3346
3360
|
err: null
|
|
3347
3361
|
};
|
|
3348
3362
|
} else {
|
|
3349
3363
|
if (E.length === 0)
|
|
3350
|
-
return this.error(
|
|
3364
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
3351
3365
|
var A = E;
|
|
3352
|
-
this.locale && (A =
|
|
3353
|
-
var
|
|
3366
|
+
this.locale && (A = Mn(E, this.locale));
|
|
3367
|
+
var f = {
|
|
3354
3368
|
type: W.dateTime,
|
|
3355
3369
|
pattern: A,
|
|
3356
3370
|
location: u.styleLocation,
|
|
3357
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3358
|
-
}, P =
|
|
3371
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(A) : {}
|
|
3372
|
+
}, P = s === "date" ? x.date : x.time;
|
|
3359
3373
|
return {
|
|
3360
|
-
val: { type: P, value: n, location: y, style:
|
|
3374
|
+
val: { type: P, value: n, location: y, style: f },
|
|
3361
3375
|
err: null
|
|
3362
3376
|
};
|
|
3363
3377
|
}
|
|
3364
3378
|
}
|
|
3365
3379
|
return {
|
|
3366
3380
|
val: {
|
|
3367
|
-
type:
|
|
3381
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3368
3382
|
value: n,
|
|
3369
3383
|
location: y,
|
|
3370
3384
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3375,52 +3389,52 @@ var zn = (
|
|
|
3375
3389
|
case "plural":
|
|
3376
3390
|
case "selectordinal":
|
|
3377
3391
|
case "select": {
|
|
3378
|
-
var
|
|
3392
|
+
var T = this.clonePosition();
|
|
3379
3393
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3380
|
-
return this.error(
|
|
3394
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, v({}, T)));
|
|
3381
3395
|
this.bumpSpace();
|
|
3382
|
-
var L = this.parseIdentifierIfPossible(),
|
|
3383
|
-
if (
|
|
3396
|
+
var L = this.parseIdentifierIfPossible(), w = 0;
|
|
3397
|
+
if (s !== "select" && L.value === "offset") {
|
|
3384
3398
|
if (!this.bumpIf(":"))
|
|
3385
|
-
return this.error(
|
|
3399
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3386
3400
|
this.bumpSpace();
|
|
3387
|
-
var
|
|
3388
|
-
if (
|
|
3389
|
-
return
|
|
3390
|
-
this.bumpSpace(), L = this.parseIdentifierIfPossible(),
|
|
3401
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3402
|
+
if (c.err)
|
|
3403
|
+
return c;
|
|
3404
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
|
|
3391
3405
|
}
|
|
3392
|
-
var _ = this.tryParsePluralOrSelectOptions(t,
|
|
3406
|
+
var _ = this.tryParsePluralOrSelectOptions(t, s, r, L);
|
|
3393
3407
|
if (_.err)
|
|
3394
3408
|
return _;
|
|
3395
3409
|
var m = this.tryParseArgumentClose(i);
|
|
3396
3410
|
if (m.err)
|
|
3397
3411
|
return m;
|
|
3398
3412
|
var C = g(i, this.clonePosition());
|
|
3399
|
-
return
|
|
3413
|
+
return s === "select" ? {
|
|
3400
3414
|
val: {
|
|
3401
|
-
type:
|
|
3415
|
+
type: x.select,
|
|
3402
3416
|
value: n,
|
|
3403
|
-
options:
|
|
3417
|
+
options: gt(_.val),
|
|
3404
3418
|
location: C
|
|
3405
3419
|
},
|
|
3406
3420
|
err: null
|
|
3407
3421
|
} : {
|
|
3408
3422
|
val: {
|
|
3409
|
-
type:
|
|
3423
|
+
type: x.plural,
|
|
3410
3424
|
value: n,
|
|
3411
|
-
options:
|
|
3412
|
-
offset:
|
|
3413
|
-
pluralType:
|
|
3425
|
+
options: gt(_.val),
|
|
3426
|
+
offset: w,
|
|
3427
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3414
3428
|
location: C
|
|
3415
3429
|
},
|
|
3416
3430
|
err: null
|
|
3417
3431
|
};
|
|
3418
3432
|
}
|
|
3419
3433
|
default:
|
|
3420
|
-
return this.error(
|
|
3434
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, g(a, h));
|
|
3421
3435
|
}
|
|
3422
3436
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3423
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3437
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3424
3438
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3425
3439
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3426
3440
|
var n = this.char();
|
|
@@ -3429,7 +3443,7 @@ var zn = (
|
|
|
3429
3443
|
this.bump();
|
|
3430
3444
|
var i = this.clonePosition();
|
|
3431
3445
|
if (!this.bumpUntil("'"))
|
|
3432
|
-
return this.error(
|
|
3446
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3433
3447
|
this.bump();
|
|
3434
3448
|
break;
|
|
3435
3449
|
}
|
|
@@ -3459,64 +3473,64 @@ var zn = (
|
|
|
3459
3473
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3460
3474
|
var n = [];
|
|
3461
3475
|
try {
|
|
3462
|
-
n =
|
|
3476
|
+
n = An(t);
|
|
3463
3477
|
} catch {
|
|
3464
|
-
return this.error(
|
|
3478
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3465
3479
|
}
|
|
3466
3480
|
return {
|
|
3467
3481
|
val: {
|
|
3468
3482
|
type: W.number,
|
|
3469
3483
|
tokens: n,
|
|
3470
3484
|
location: r,
|
|
3471
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3485
|
+
parsedOptions: this.shouldParseSkeletons ? In(n) : {}
|
|
3472
3486
|
},
|
|
3473
3487
|
err: null
|
|
3474
3488
|
};
|
|
3475
3489
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3476
|
-
for (var o,
|
|
3490
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3477
3491
|
if (u.length === 0) {
|
|
3478
|
-
var
|
|
3492
|
+
var c = this.clonePosition();
|
|
3479
3493
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3480
|
-
var
|
|
3481
|
-
if (
|
|
3482
|
-
return
|
|
3483
|
-
l = g(
|
|
3494
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3495
|
+
if (f.err)
|
|
3496
|
+
return f;
|
|
3497
|
+
l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3484
3498
|
} else
|
|
3485
3499
|
break;
|
|
3486
3500
|
}
|
|
3487
3501
|
if (h.has(u))
|
|
3488
|
-
return this.error(r === "select" ?
|
|
3489
|
-
u === "other" && (
|
|
3490
|
-
var
|
|
3502
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3503
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3504
|
+
var p = this.clonePosition();
|
|
3491
3505
|
if (!this.bumpIf("{"))
|
|
3492
|
-
return this.error(r === "select" ?
|
|
3506
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3493
3507
|
var m = this.parseMessage(t + 1, r, n);
|
|
3494
3508
|
if (m.err)
|
|
3495
3509
|
return m;
|
|
3496
|
-
var y = this.tryParseArgumentClose(
|
|
3510
|
+
var y = this.tryParseArgumentClose(p);
|
|
3497
3511
|
if (y.err)
|
|
3498
3512
|
return y;
|
|
3499
|
-
|
|
3513
|
+
s.push([
|
|
3500
3514
|
u,
|
|
3501
3515
|
{
|
|
3502
3516
|
value: m.val,
|
|
3503
|
-
location: g(
|
|
3517
|
+
location: g(p, this.clonePosition())
|
|
3504
3518
|
}
|
|
3505
3519
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3506
3520
|
}
|
|
3507
|
-
return
|
|
3521
|
+
return s.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3508
3522
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3509
3523
|
var n = 1, i = this.clonePosition();
|
|
3510
3524
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3511
|
-
for (var o = !1,
|
|
3512
|
-
var
|
|
3513
|
-
if (
|
|
3514
|
-
o = !0,
|
|
3525
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3526
|
+
var s = this.char();
|
|
3527
|
+
if (s >= 48 && s <= 57)
|
|
3528
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3515
3529
|
else
|
|
3516
3530
|
break;
|
|
3517
3531
|
}
|
|
3518
3532
|
var h = g(i, this.clonePosition());
|
|
3519
|
-
return o ? (
|
|
3533
|
+
return o ? (a *= n, Xn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3520
3534
|
}, e.prototype.offset = function() {
|
|
3521
3535
|
return this.position.offset;
|
|
3522
3536
|
}, e.prototype.isEOF = function() {
|
|
@@ -3531,7 +3545,7 @@ var zn = (
|
|
|
3531
3545
|
var t = this.position.offset;
|
|
3532
3546
|
if (t >= this.message.length)
|
|
3533
3547
|
throw Error("out of bound");
|
|
3534
|
-
var r =
|
|
3548
|
+
var r = er(this.message, t);
|
|
3535
3549
|
if (r === void 0)
|
|
3536
3550
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3537
3551
|
return r;
|
|
@@ -3550,7 +3564,7 @@ var zn = (
|
|
|
3550
3564
|
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);
|
|
3551
3565
|
}
|
|
3552
3566
|
}, e.prototype.bumpIf = function(t) {
|
|
3553
|
-
if (
|
|
3567
|
+
if (bt(this.message, t, this.offset())) {
|
|
3554
3568
|
for (var r = 0; r < t.length; r++)
|
|
3555
3569
|
this.bump();
|
|
3556
3570
|
return !0;
|
|
@@ -3572,7 +3586,7 @@ var zn = (
|
|
|
3572
3586
|
break;
|
|
3573
3587
|
}
|
|
3574
3588
|
}, e.prototype.bumpSpace = function() {
|
|
3575
|
-
for (; !this.isEOF() &&
|
|
3589
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3576
3590
|
this.bump();
|
|
3577
3591
|
}, e.prototype.peek = function() {
|
|
3578
3592
|
if (this.isEOF())
|
|
@@ -3582,38 +3596,38 @@ var zn = (
|
|
|
3582
3596
|
}, e;
|
|
3583
3597
|
}()
|
|
3584
3598
|
);
|
|
3585
|
-
function
|
|
3599
|
+
function Ve(e) {
|
|
3586
3600
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3587
3601
|
}
|
|
3588
|
-
function
|
|
3589
|
-
return
|
|
3602
|
+
function Jn(e) {
|
|
3603
|
+
return Ve(e) || e === 47;
|
|
3590
3604
|
}
|
|
3591
|
-
function
|
|
3605
|
+
function Yn(e) {
|
|
3592
3606
|
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;
|
|
3593
3607
|
}
|
|
3594
|
-
function
|
|
3608
|
+
function rr(e) {
|
|
3595
3609
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3596
3610
|
}
|
|
3597
|
-
function
|
|
3611
|
+
function qn(e) {
|
|
3598
3612
|
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;
|
|
3599
3613
|
}
|
|
3600
|
-
function
|
|
3614
|
+
function Xe(e) {
|
|
3601
3615
|
e.forEach(function(t) {
|
|
3602
|
-
if (delete t.location,
|
|
3616
|
+
if (delete t.location, Wt(t) || zt(t))
|
|
3603
3617
|
for (var r in t.options)
|
|
3604
|
-
delete t.options[r].location,
|
|
3618
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3605
3619
|
else
|
|
3606
|
-
|
|
3620
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && De(t.style) ? delete t.style.location : Zt(t) && Xe(t.children);
|
|
3607
3621
|
});
|
|
3608
3622
|
}
|
|
3609
|
-
function
|
|
3610
|
-
t === void 0 && (t = {}), t =
|
|
3611
|
-
var r = new
|
|
3623
|
+
function Kn(e, t) {
|
|
3624
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3625
|
+
var r = new Qn(e, t).parse();
|
|
3612
3626
|
if (r.err) {
|
|
3613
|
-
var n = SyntaxError(
|
|
3627
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3614
3628
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3615
3629
|
}
|
|
3616
|
-
return t?.captureLocation ||
|
|
3630
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3617
3631
|
}
|
|
3618
3632
|
var z;
|
|
3619
3633
|
(function(e) {
|
|
@@ -3631,7 +3645,7 @@ var ye = (
|
|
|
3631
3645
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3632
3646
|
}, t;
|
|
3633
3647
|
}(Error)
|
|
3634
|
-
),
|
|
3648
|
+
), vt = (
|
|
3635
3649
|
/** @class */
|
|
3636
3650
|
function(e) {
|
|
3637
3651
|
R(t, e);
|
|
@@ -3640,7 +3654,7 @@ var ye = (
|
|
|
3640
3654
|
}
|
|
3641
3655
|
return t;
|
|
3642
3656
|
}(ye)
|
|
3643
|
-
),
|
|
3657
|
+
), ei = (
|
|
3644
3658
|
/** @class */
|
|
3645
3659
|
function(e) {
|
|
3646
3660
|
R(t, e);
|
|
@@ -3649,7 +3663,7 @@ var ye = (
|
|
|
3649
3663
|
}
|
|
3650
3664
|
return t;
|
|
3651
3665
|
}(ye)
|
|
3652
|
-
),
|
|
3666
|
+
), ti = (
|
|
3653
3667
|
/** @class */
|
|
3654
3668
|
function(e) {
|
|
3655
3669
|
R(t, e);
|
|
@@ -3662,124 +3676,124 @@ var ye = (
|
|
|
3662
3676
|
(function(e) {
|
|
3663
3677
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3664
3678
|
})(H || (H = {}));
|
|
3665
|
-
function
|
|
3679
|
+
function ri(e) {
|
|
3666
3680
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3667
3681
|
var n = t[t.length - 1];
|
|
3668
3682
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3669
3683
|
}, []);
|
|
3670
3684
|
}
|
|
3671
|
-
function
|
|
3685
|
+
function ni(e) {
|
|
3672
3686
|
return typeof e == "function";
|
|
3673
3687
|
}
|
|
3674
|
-
function
|
|
3675
|
-
if (e.length === 1 &&
|
|
3688
|
+
function ce(e, t, r, n, i, o, a) {
|
|
3689
|
+
if (e.length === 1 && ft(e[0]))
|
|
3676
3690
|
return [
|
|
3677
3691
|
{
|
|
3678
3692
|
type: H.literal,
|
|
3679
3693
|
value: e[0].value
|
|
3680
3694
|
}
|
|
3681
3695
|
];
|
|
3682
|
-
for (var
|
|
3696
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3683
3697
|
var l = u[h];
|
|
3684
|
-
if (
|
|
3685
|
-
|
|
3698
|
+
if (ft(l)) {
|
|
3699
|
+
s.push({
|
|
3686
3700
|
type: H.literal,
|
|
3687
3701
|
value: l.value
|
|
3688
3702
|
});
|
|
3689
3703
|
continue;
|
|
3690
3704
|
}
|
|
3691
|
-
if (
|
|
3692
|
-
typeof o == "number" &&
|
|
3705
|
+
if (Tn(l)) {
|
|
3706
|
+
typeof o == "number" && s.push({
|
|
3693
3707
|
type: H.literal,
|
|
3694
3708
|
value: r.getNumberFormat(t).format(o)
|
|
3695
3709
|
});
|
|
3696
3710
|
continue;
|
|
3697
3711
|
}
|
|
3698
|
-
var
|
|
3699
|
-
if (!(i &&
|
|
3700
|
-
throw new
|
|
3701
|
-
var
|
|
3702
|
-
if (
|
|
3703
|
-
(!
|
|
3704
|
-
type: typeof
|
|
3705
|
-
value:
|
|
3712
|
+
var c = l.value;
|
|
3713
|
+
if (!(i && c in i))
|
|
3714
|
+
throw new ti(c, a);
|
|
3715
|
+
var f = i[c];
|
|
3716
|
+
if (Sn(l)) {
|
|
3717
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3718
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3719
|
+
value: f
|
|
3706
3720
|
});
|
|
3707
3721
|
continue;
|
|
3708
3722
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
|
|
3723
|
+
if (Vt(l)) {
|
|
3724
|
+
var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3725
|
+
s.push({
|
|
3712
3726
|
type: H.literal,
|
|
3713
|
-
value: r.getDateTimeFormat(t,
|
|
3727
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3714
3728
|
});
|
|
3715
3729
|
continue;
|
|
3716
3730
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var
|
|
3719
|
-
|
|
3731
|
+
if (Xt(l)) {
|
|
3732
|
+
var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3733
|
+
s.push({
|
|
3720
3734
|
type: H.literal,
|
|
3721
|
-
value: r.getDateTimeFormat(t,
|
|
3735
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3722
3736
|
});
|
|
3723
3737
|
continue;
|
|
3724
3738
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
|
|
3739
|
+
if (kt(l)) {
|
|
3740
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3741
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3728
3742
|
type: H.literal,
|
|
3729
|
-
value: r.getNumberFormat(t,
|
|
3743
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3730
3744
|
});
|
|
3731
3745
|
continue;
|
|
3732
3746
|
}
|
|
3733
|
-
if (
|
|
3747
|
+
if (Zt(l)) {
|
|
3734
3748
|
var m = l.children, y = l.value, E = i[y];
|
|
3735
|
-
if (!
|
|
3736
|
-
throw new
|
|
3737
|
-
var A =
|
|
3738
|
-
return
|
|
3749
|
+
if (!ni(E))
|
|
3750
|
+
throw new ei(y, "function", a);
|
|
3751
|
+
var A = ce(m, t, r, n, i, o), P = E(A.map(function(w) {
|
|
3752
|
+
return w.value;
|
|
3739
3753
|
}));
|
|
3740
|
-
Array.isArray(P) || (P = [P]),
|
|
3754
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(w) {
|
|
3741
3755
|
return {
|
|
3742
|
-
type: typeof
|
|
3743
|
-
value:
|
|
3756
|
+
type: typeof w == "string" ? H.literal : H.object,
|
|
3757
|
+
value: w
|
|
3744
3758
|
};
|
|
3745
3759
|
}));
|
|
3746
3760
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3751
|
-
|
|
3761
|
+
if (Wt(l)) {
|
|
3762
|
+
var T = l.options[f] || l.options.other;
|
|
3763
|
+
if (!T)
|
|
3764
|
+
throw new vt(l.value, f, Object.keys(l.options), a);
|
|
3765
|
+
s.push.apply(s, ce(T.value, t, r, n, i));
|
|
3752
3766
|
continue;
|
|
3753
3767
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var
|
|
3756
|
-
if (!
|
|
3768
|
+
if (zt(l)) {
|
|
3769
|
+
var T = l.options["=".concat(f)];
|
|
3770
|
+
if (!T) {
|
|
3757
3771
|
if (!Intl.PluralRules)
|
|
3758
3772
|
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3759
3773
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3760
|
-
`, z.MISSING_INTL_API,
|
|
3761
|
-
var L = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3762
|
-
|
|
3774
|
+
`, z.MISSING_INTL_API, a);
|
|
3775
|
+
var L = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3776
|
+
T = l.options[L] || l.options.other;
|
|
3763
3777
|
}
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
|
|
3778
|
+
if (!T)
|
|
3779
|
+
throw new vt(l.value, f, Object.keys(l.options), a);
|
|
3780
|
+
s.push.apply(s, ce(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3767
3781
|
continue;
|
|
3768
3782
|
}
|
|
3769
3783
|
}
|
|
3770
|
-
return
|
|
3784
|
+
return ri(s);
|
|
3771
3785
|
}
|
|
3772
|
-
function
|
|
3773
|
-
return t ?
|
|
3774
|
-
return r[n] =
|
|
3786
|
+
function ii(e, t) {
|
|
3787
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3788
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3775
3789
|
}, {})) : e;
|
|
3776
3790
|
}
|
|
3777
|
-
function
|
|
3791
|
+
function oi(e, t) {
|
|
3778
3792
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3779
|
-
return r[n] =
|
|
3780
|
-
},
|
|
3793
|
+
return r[n] = ii(e[n], t[n]), r;
|
|
3794
|
+
}, v({}, e)) : e;
|
|
3781
3795
|
}
|
|
3782
|
-
function
|
|
3796
|
+
function Pe(e) {
|
|
3783
3797
|
return {
|
|
3784
3798
|
create: function() {
|
|
3785
3799
|
return {
|
|
@@ -3793,39 +3807,39 @@ function Ae(e) {
|
|
|
3793
3807
|
}
|
|
3794
3808
|
};
|
|
3795
3809
|
}
|
|
3796
|
-
function
|
|
3810
|
+
function si(e) {
|
|
3797
3811
|
return e === void 0 && (e = {
|
|
3798
3812
|
number: {},
|
|
3799
3813
|
dateTime: {},
|
|
3800
3814
|
pluralRules: {}
|
|
3801
3815
|
}), {
|
|
3802
|
-
getNumberFormat:
|
|
3816
|
+
getNumberFormat: Be(function() {
|
|
3803
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3818
|
r[n] = arguments[n];
|
|
3805
3819
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3806
3820
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3821
|
+
cache: Pe(e.number),
|
|
3822
|
+
strategy: Ce.variadic
|
|
3809
3823
|
}),
|
|
3810
|
-
getDateTimeFormat:
|
|
3824
|
+
getDateTimeFormat: Be(function() {
|
|
3811
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3826
|
r[n] = arguments[n];
|
|
3813
3827
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3814
3828
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3829
|
+
cache: Pe(e.dateTime),
|
|
3830
|
+
strategy: Ce.variadic
|
|
3817
3831
|
}),
|
|
3818
|
-
getPluralRules:
|
|
3832
|
+
getPluralRules: Be(function() {
|
|
3819
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3820
3834
|
r[n] = arguments[n];
|
|
3821
3835
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3822
3836
|
}, {
|
|
3823
|
-
cache:
|
|
3824
|
-
strategy:
|
|
3837
|
+
cache: Pe(e.pluralRules),
|
|
3838
|
+
strategy: Ce.variadic
|
|
3825
3839
|
})
|
|
3826
3840
|
};
|
|
3827
3841
|
}
|
|
3828
|
-
var
|
|
3842
|
+
var ai = (
|
|
3829
3843
|
/** @class */
|
|
3830
3844
|
function() {
|
|
3831
3845
|
function e(t, r, n, i) {
|
|
@@ -3839,12 +3853,12 @@ var oi = (
|
|
|
3839
3853
|
var u = o.formatToParts(h);
|
|
3840
3854
|
if (u.length === 1)
|
|
3841
3855
|
return u[0].value;
|
|
3842
|
-
var l = u.reduce(function(
|
|
3843
|
-
return !
|
|
3856
|
+
var l = u.reduce(function(c, f) {
|
|
3857
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3844
3858
|
}, []);
|
|
3845
3859
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3846
3860
|
}, this.formatToParts = function(h) {
|
|
3847
|
-
return
|
|
3861
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3848
3862
|
}, this.resolvedOptions = function() {
|
|
3849
3863
|
var h;
|
|
3850
3864
|
return {
|
|
@@ -3855,15 +3869,15 @@ var oi = (
|
|
|
3855
3869
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3856
3870
|
if (this.message = t, !e.__parse)
|
|
3857
3871
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3858
|
-
var
|
|
3859
|
-
|
|
3860
|
-
var
|
|
3861
|
-
this.ast = e.__parse(t,
|
|
3872
|
+
var a = i || {};
|
|
3873
|
+
a.formatters;
|
|
3874
|
+
var s = Ur(a, ["formatters"]);
|
|
3875
|
+
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3862
3876
|
} else
|
|
3863
3877
|
this.ast = t;
|
|
3864
3878
|
if (!Array.isArray(this.ast))
|
|
3865
3879
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3866
|
-
this.formats =
|
|
3880
|
+
this.formats = oi(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
|
|
3867
3881
|
}
|
|
3868
3882
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3869
3883
|
get: function() {
|
|
@@ -3876,7 +3890,7 @@ var oi = (
|
|
|
3876
3890
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3877
3891
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3878
3892
|
}
|
|
3879
|
-
}, e.__parse =
|
|
3893
|
+
}, e.__parse = Kn, e.formats = {
|
|
3880
3894
|
number: {
|
|
3881
3895
|
integer: {
|
|
3882
3896
|
maximumFractionDigits: 0
|
|
@@ -3937,7 +3951,7 @@ var oi = (
|
|
|
3937
3951
|
}, e;
|
|
3938
3952
|
}()
|
|
3939
3953
|
);
|
|
3940
|
-
function
|
|
3954
|
+
function ui(e, t) {
|
|
3941
3955
|
if (t == null)
|
|
3942
3956
|
return;
|
|
3943
3957
|
if (t in e)
|
|
@@ -3958,92 +3972,92 @@ function si(e, t) {
|
|
|
3958
3972
|
n = void 0;
|
|
3959
3973
|
return n;
|
|
3960
3974
|
}
|
|
3961
|
-
const $ = {},
|
|
3975
|
+
const $ = {}, hi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), nr = (e, t) => {
|
|
3962
3976
|
if (t == null)
|
|
3963
3977
|
return;
|
|
3964
3978
|
if (t in $ && e in $[t])
|
|
3965
3979
|
return $[t][e];
|
|
3966
|
-
const r =
|
|
3980
|
+
const r = ve(t);
|
|
3967
3981
|
for (let n = 0; n < r.length; n++) {
|
|
3968
|
-
const i = r[n], o =
|
|
3982
|
+
const i = r[n], o = ci(i, e);
|
|
3969
3983
|
if (o)
|
|
3970
|
-
return
|
|
3984
|
+
return hi(e, t, o);
|
|
3971
3985
|
}
|
|
3972
3986
|
};
|
|
3973
|
-
let
|
|
3987
|
+
let qe;
|
|
3974
3988
|
const ie = ge({});
|
|
3975
|
-
function
|
|
3976
|
-
return
|
|
3989
|
+
function li(e) {
|
|
3990
|
+
return qe[e] || null;
|
|
3977
3991
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e in
|
|
3992
|
+
function ir(e) {
|
|
3993
|
+
return e in qe;
|
|
3980
3994
|
}
|
|
3981
|
-
function
|
|
3982
|
-
if (!
|
|
3995
|
+
function ci(e, t) {
|
|
3996
|
+
if (!ir(e))
|
|
3983
3997
|
return null;
|
|
3984
|
-
const r =
|
|
3985
|
-
return
|
|
3998
|
+
const r = li(e);
|
|
3999
|
+
return ui(r, t);
|
|
3986
4000
|
}
|
|
3987
|
-
function
|
|
4001
|
+
function fi(e) {
|
|
3988
4002
|
if (e == null)
|
|
3989
4003
|
return;
|
|
3990
|
-
const t =
|
|
4004
|
+
const t = ve(e);
|
|
3991
4005
|
for (let r = 0; r < t.length; r++) {
|
|
3992
4006
|
const n = t[r];
|
|
3993
|
-
if (
|
|
4007
|
+
if (ir(n))
|
|
3994
4008
|
return n;
|
|
3995
4009
|
}
|
|
3996
4010
|
}
|
|
3997
|
-
function
|
|
3998
|
-
delete $[e], ie.update((r) => (r[e] =
|
|
4011
|
+
function or(e, ...t) {
|
|
4012
|
+
delete $[e], ie.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3999
4013
|
}
|
|
4000
4014
|
J(
|
|
4001
4015
|
[ie],
|
|
4002
4016
|
([e]) => Object.keys(e)
|
|
4003
4017
|
);
|
|
4004
|
-
ie.subscribe((e) =>
|
|
4005
|
-
const
|
|
4006
|
-
function
|
|
4007
|
-
|
|
4018
|
+
ie.subscribe((e) => qe = e);
|
|
4019
|
+
const fe = {};
|
|
4020
|
+
function mi(e, t) {
|
|
4021
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4008
4022
|
}
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4023
|
+
function sr(e) {
|
|
4024
|
+
return fe[e];
|
|
4011
4025
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return
|
|
4014
|
-
const r =
|
|
4026
|
+
function pi(e) {
|
|
4027
|
+
return ve(e).map((t) => {
|
|
4028
|
+
const r = sr(t);
|
|
4015
4029
|
return [t, r ? [...r] : []];
|
|
4016
4030
|
}).filter(([, t]) => t.length > 0);
|
|
4017
4031
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return e == null ? !1 :
|
|
4032
|
+
function We(e) {
|
|
4033
|
+
return e == null ? !1 : ve(e).some(
|
|
4020
4034
|
(t) => {
|
|
4021
4035
|
var r;
|
|
4022
|
-
return (r =
|
|
4036
|
+
return (r = sr(t)) == null ? void 0 : r.size;
|
|
4023
4037
|
}
|
|
4024
4038
|
);
|
|
4025
4039
|
}
|
|
4026
|
-
function
|
|
4040
|
+
function di(e, t) {
|
|
4027
4041
|
return Promise.all(
|
|
4028
|
-
t.map((n) => (
|
|
4029
|
-
).then((n) =>
|
|
4042
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4043
|
+
).then((n) => or(e, ...n));
|
|
4030
4044
|
}
|
|
4031
4045
|
const K = {};
|
|
4032
|
-
function
|
|
4033
|
-
if (!
|
|
4046
|
+
function ar(e) {
|
|
4047
|
+
if (!We(e))
|
|
4034
4048
|
return e in K ? K[e] : Promise.resolve();
|
|
4035
|
-
const t =
|
|
4049
|
+
const t = pi(e);
|
|
4036
4050
|
return K[e] = Promise.all(
|
|
4037
4051
|
t.map(
|
|
4038
|
-
([r, n]) =>
|
|
4052
|
+
([r, n]) => di(r, n)
|
|
4039
4053
|
)
|
|
4040
4054
|
).then(() => {
|
|
4041
|
-
if (
|
|
4042
|
-
return
|
|
4055
|
+
if (We(e))
|
|
4056
|
+
return ar(e);
|
|
4043
4057
|
delete K[e];
|
|
4044
4058
|
}), K[e];
|
|
4045
4059
|
}
|
|
4046
|
-
const
|
|
4060
|
+
const bi = {
|
|
4047
4061
|
number: {
|
|
4048
4062
|
scientific: { notation: "scientific" },
|
|
4049
4063
|
engineering: { notation: "engineering" },
|
|
@@ -4072,78 +4086,78 @@ const di = {
|
|
|
4072
4086
|
timeZoneName: "short"
|
|
4073
4087
|
}
|
|
4074
4088
|
}
|
|
4075
|
-
},
|
|
4089
|
+
}, gi = {
|
|
4076
4090
|
fallbackLocale: null,
|
|
4077
4091
|
loadingDelay: 200,
|
|
4078
|
-
formats:
|
|
4092
|
+
formats: bi,
|
|
4079
4093
|
warnOnMissingMessages: !0,
|
|
4080
4094
|
handleMissingMessage: void 0,
|
|
4081
4095
|
ignoreTag: !0
|
|
4082
|
-
},
|
|
4096
|
+
}, yi = gi;
|
|
4083
4097
|
function Z() {
|
|
4084
|
-
return
|
|
4085
|
-
}
|
|
4086
|
-
const
|
|
4087
|
-
var
|
|
4088
|
-
for (var r in t)
|
|
4089
|
-
|
|
4090
|
-
if (
|
|
4091
|
-
for (var r of
|
|
4092
|
-
|
|
4098
|
+
return yi;
|
|
4099
|
+
}
|
|
4100
|
+
const Le = ge(!1);
|
|
4101
|
+
var vi = Object.defineProperty, xi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
|
|
4102
|
+
for (var r in t || (t = {}))
|
|
4103
|
+
Ei.call(t, r) && _t(e, r, t[r]);
|
|
4104
|
+
if (xt)
|
|
4105
|
+
for (var r of xt(t))
|
|
4106
|
+
wi.call(t, r) && _t(e, r, t[r]);
|
|
4093
4107
|
return e;
|
|
4094
|
-
},
|
|
4095
|
-
let
|
|
4108
|
+
}, Ti = (e, t) => xi(e, _i(t));
|
|
4109
|
+
let ze;
|
|
4096
4110
|
const me = ge(null);
|
|
4097
|
-
function
|
|
4111
|
+
function Et(e) {
|
|
4098
4112
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4099
4113
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const r =
|
|
4102
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4114
|
+
function ve(e, t = Z().fallbackLocale) {
|
|
4115
|
+
const r = Et(e);
|
|
4116
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4103
4117
|
}
|
|
4104
4118
|
function G() {
|
|
4105
|
-
return
|
|
4119
|
+
return ze ?? void 0;
|
|
4106
4120
|
}
|
|
4107
4121
|
me.subscribe((e) => {
|
|
4108
|
-
|
|
4122
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4109
4123
|
});
|
|
4110
|
-
const
|
|
4111
|
-
if (e &&
|
|
4124
|
+
const Hi = (e) => {
|
|
4125
|
+
if (e && fi(e) && We(e)) {
|
|
4112
4126
|
const { loadingDelay: t } = Z();
|
|
4113
4127
|
let r;
|
|
4114
4128
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4115
|
-
() =>
|
|
4129
|
+
() => Le.set(!0),
|
|
4116
4130
|
t
|
|
4117
|
-
) :
|
|
4131
|
+
) : Le.set(!0), ar(e).then(() => {
|
|
4118
4132
|
me.set(e);
|
|
4119
4133
|
}).finally(() => {
|
|
4120
|
-
clearTimeout(r),
|
|
4134
|
+
clearTimeout(r), Le.set(!1);
|
|
4121
4135
|
});
|
|
4122
4136
|
}
|
|
4123
4137
|
return me.set(e);
|
|
4124
|
-
}, Y =
|
|
4125
|
-
set:
|
|
4126
|
-
}),
|
|
4138
|
+
}, Y = Ti(Si({}, me), {
|
|
4139
|
+
set: Hi
|
|
4140
|
+
}), xe = (e) => {
|
|
4127
4141
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4128
4142
|
return (n) => {
|
|
4129
4143
|
const i = JSON.stringify(n);
|
|
4130
4144
|
return i in t ? t[i] : t[i] = e(n);
|
|
4131
4145
|
};
|
|
4132
4146
|
};
|
|
4133
|
-
var
|
|
4147
|
+
var Bi = Object.defineProperty, pe = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4134
4148
|
for (var r in t || (t = {}))
|
|
4135
|
-
|
|
4136
|
-
if (
|
|
4137
|
-
for (var r of
|
|
4138
|
-
|
|
4149
|
+
ur.call(t, r) && wt(e, r, t[r]);
|
|
4150
|
+
if (pe)
|
|
4151
|
+
for (var r of pe(t))
|
|
4152
|
+
hr.call(t, r) && wt(e, r, t[r]);
|
|
4139
4153
|
return e;
|
|
4140
4154
|
}, q = (e, t) => {
|
|
4141
4155
|
var r = {};
|
|
4142
4156
|
for (var n in e)
|
|
4143
|
-
|
|
4144
|
-
if (e != null &&
|
|
4145
|
-
for (var n of
|
|
4146
|
-
t.indexOf(n) < 0 &&
|
|
4157
|
+
ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4158
|
+
if (e != null && pe)
|
|
4159
|
+
for (var n of pe(e))
|
|
4160
|
+
t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
|
|
4147
4161
|
return r;
|
|
4148
4162
|
};
|
|
4149
4163
|
const ne = (e, t) => {
|
|
@@ -4151,21 +4165,21 @@ const ne = (e, t) => {
|
|
|
4151
4165
|
if (e in r && t in r[e])
|
|
4152
4166
|
return r[e][t];
|
|
4153
4167
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4154
|
-
},
|
|
4168
|
+
}, Ci = xe(
|
|
4155
4169
|
(e) => {
|
|
4156
4170
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4157
4171
|
if (r == null)
|
|
4158
4172
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4159
4173
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4160
4174
|
}
|
|
4161
|
-
),
|
|
4175
|
+
), Ai = xe(
|
|
4162
4176
|
(e) => {
|
|
4163
4177
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4164
4178
|
if (r == null)
|
|
4165
4179
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4166
4180
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4167
4181
|
}
|
|
4168
|
-
),
|
|
4182
|
+
), Pi = xe(
|
|
4169
4183
|
(e) => {
|
|
4170
4184
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4171
4185
|
if (r == null)
|
|
@@ -4174,78 +4188,78 @@ const ne = (e, t) => {
|
|
|
4174
4188
|
);
|
|
4175
4189
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4176
4190
|
}
|
|
4177
|
-
),
|
|
4191
|
+
), Li = (e = {}) => {
|
|
4178
4192
|
var t = e, {
|
|
4179
4193
|
locale: r = G()
|
|
4180
4194
|
} = t, n = q(t, [
|
|
4181
4195
|
"locale"
|
|
4182
4196
|
]);
|
|
4183
|
-
return
|
|
4184
|
-
},
|
|
4197
|
+
return Ci(Ke({ locale: r }, n));
|
|
4198
|
+
}, Oi = (e = {}) => {
|
|
4185
4199
|
var t = e, {
|
|
4186
4200
|
locale: r = G()
|
|
4187
4201
|
} = t, n = q(t, [
|
|
4188
4202
|
"locale"
|
|
4189
4203
|
]);
|
|
4190
|
-
return
|
|
4191
|
-
},
|
|
4204
|
+
return Ai(Ke({ locale: r }, n));
|
|
4205
|
+
}, Ii = (e = {}) => {
|
|
4192
4206
|
var t = e, {
|
|
4193
4207
|
locale: r = G()
|
|
4194
4208
|
} = t, n = q(t, [
|
|
4195
4209
|
"locale"
|
|
4196
4210
|
]);
|
|
4197
|
-
return
|
|
4198
|
-
},
|
|
4211
|
+
return Pi(Ke({ locale: r }, n));
|
|
4212
|
+
}, Mi = xe(
|
|
4199
4213
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4200
|
-
(e, t = G()) => new
|
|
4214
|
+
(e, t = G()) => new ai(e, t, Z().formats, {
|
|
4201
4215
|
ignoreTag: Z().ignoreTag
|
|
4202
4216
|
})
|
|
4203
|
-
),
|
|
4217
|
+
), Ni = (e, t = {}) => {
|
|
4204
4218
|
var r, n, i, o;
|
|
4205
|
-
let
|
|
4206
|
-
typeof e == "object" && (
|
|
4219
|
+
let a = t;
|
|
4220
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4207
4221
|
const {
|
|
4208
|
-
values:
|
|
4222
|
+
values: s,
|
|
4209
4223
|
locale: h = G(),
|
|
4210
4224
|
default: u
|
|
4211
|
-
} =
|
|
4225
|
+
} = a;
|
|
4212
4226
|
if (h == null)
|
|
4213
4227
|
throw new Error(
|
|
4214
4228
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4215
4229
|
);
|
|
4216
|
-
let l =
|
|
4230
|
+
let l = nr(e, h);
|
|
4217
4231
|
if (!l)
|
|
4218
4232
|
l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4219
4233
|
else if (typeof l != "string")
|
|
4220
4234
|
return console.warn(
|
|
4221
4235
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4222
4236
|
), l;
|
|
4223
|
-
if (!
|
|
4237
|
+
if (!s)
|
|
4224
4238
|
return l;
|
|
4225
|
-
let
|
|
4239
|
+
let c = l;
|
|
4226
4240
|
try {
|
|
4227
|
-
|
|
4228
|
-
} catch (
|
|
4229
|
-
|
|
4241
|
+
c = Mi(l, h).format(s);
|
|
4242
|
+
} catch (f) {
|
|
4243
|
+
f instanceof Error && console.warn(
|
|
4230
4244
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4231
|
-
|
|
4245
|
+
f.message
|
|
4232
4246
|
);
|
|
4233
4247
|
}
|
|
4234
|
-
return
|
|
4235
|
-
},
|
|
4236
|
-
J([Y], () => Mi);
|
|
4237
|
-
J([Y], () => Ni);
|
|
4248
|
+
return c;
|
|
4249
|
+
}, Ri = (e, t) => Ii(t).format(e), $i = (e, t) => Oi(t).format(e), Gi = (e, t) => Li(t).format(e), Ui = (e, t = G()) => nr(e, t), Di = J([Y, ie], () => Ni);
|
|
4238
4250
|
J([Y], () => Ri);
|
|
4239
|
-
J([Y
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4251
|
+
J([Y], () => $i);
|
|
4252
|
+
J([Y], () => Gi);
|
|
4253
|
+
J([Y, ie], () => Ui);
|
|
4254
|
+
window.emWidgets = { topic: Kr };
|
|
4255
|
+
const Fi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4256
|
+
function St(e, t) {
|
|
4257
|
+
or(e, t);
|
|
4258
|
+
}
|
|
4259
|
+
function ji(e) {
|
|
4246
4260
|
Y.set(e);
|
|
4247
4261
|
}
|
|
4248
|
-
const
|
|
4262
|
+
const Tt = {
|
|
4249
4263
|
en: {
|
|
4250
4264
|
cancel: "Cancel",
|
|
4251
4265
|
confirm: "Confirm"
|
|
@@ -4291,13 +4305,13 @@ const wt = {
|
|
|
4291
4305
|
confirm: "Confirm"
|
|
4292
4306
|
}
|
|
4293
4307
|
};
|
|
4294
|
-
function
|
|
4308
|
+
function ki(e, t) {
|
|
4295
4309
|
if (e) {
|
|
4296
4310
|
const r = document.createElement("style");
|
|
4297
4311
|
r.innerHTML = t, e.appendChild(r);
|
|
4298
4312
|
}
|
|
4299
4313
|
}
|
|
4300
|
-
function
|
|
4314
|
+
function Vi(e, t) {
|
|
4301
4315
|
const r = new URL(t);
|
|
4302
4316
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4303
4317
|
const i = document.createElement("style");
|
|
@@ -4306,7 +4320,7 @@ function ji(e, t) {
|
|
|
4306
4320
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4307
4321
|
});
|
|
4308
4322
|
}
|
|
4309
|
-
function
|
|
4323
|
+
function Xi(e, t, r) {
|
|
4310
4324
|
if (window.emMessageBus) {
|
|
4311
4325
|
const n = document.createElement("style");
|
|
4312
4326
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4314,55 +4328,55 @@ function ki(e, t, r) {
|
|
|
4314
4328
|
});
|
|
4315
4329
|
}
|
|
4316
4330
|
}
|
|
4317
|
-
function Vi(e) {
|
|
4318
|
-
br(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4319
|
-
}
|
|
4320
|
-
const Xi = (e) => ({}), St = (e) => ({});
|
|
4321
4331
|
function Wi(e) {
|
|
4332
|
+
vr(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4333
|
+
}
|
|
4334
|
+
const zi = (e) => ({}), Ht = (e) => ({});
|
|
4335
|
+
function Zi(e) {
|
|
4322
4336
|
let t, r;
|
|
4323
4337
|
return {
|
|
4324
4338
|
c() {
|
|
4325
|
-
t =
|
|
4339
|
+
t = rt("svg"), r = rt("path"), S(r, "stroke-linecap", "round"), S(r, "stroke-linejoin", "round"), S(r, "stroke-width", "2"), S(r, "d", "M6 18L18 6M6 6l12 12"), S(t, "class", "w-6 h-6"), S(t, "fill", "none"), S(t, "stroke", "currentColor"), S(t, "viewBox", "0 0 24 24"), S(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4326
4340
|
},
|
|
4327
4341
|
m(n, i) {
|
|
4328
|
-
|
|
4342
|
+
Qe(n, t, i), B(t, r);
|
|
4329
4343
|
},
|
|
4330
4344
|
p: O,
|
|
4331
4345
|
d(n) {
|
|
4332
|
-
n &&
|
|
4346
|
+
n && de(t);
|
|
4333
4347
|
}
|
|
4334
4348
|
};
|
|
4335
4349
|
}
|
|
4336
|
-
function
|
|
4337
|
-
let t, r, n, i, o,
|
|
4350
|
+
function Qi(e) {
|
|
4351
|
+
let t, r, n, i, o, a, s, h, u, l = (
|
|
4338
4352
|
/*$_*/
|
|
4339
4353
|
e[2]("cancel") + ""
|
|
4340
|
-
),
|
|
4354
|
+
), c, f, p, m = (
|
|
4341
4355
|
/*$_*/
|
|
4342
4356
|
e[2]("confirm") + ""
|
|
4343
4357
|
), y, E, A, P;
|
|
4344
|
-
const
|
|
4358
|
+
const T = (
|
|
4345
4359
|
/*#slots*/
|
|
4346
4360
|
e[14].close
|
|
4347
|
-
), L =
|
|
4348
|
-
|
|
4361
|
+
), L = dr(
|
|
4362
|
+
T,
|
|
4349
4363
|
e,
|
|
4350
4364
|
/*$$scope*/
|
|
4351
4365
|
e[13],
|
|
4352
|
-
|
|
4353
|
-
),
|
|
4366
|
+
Ht
|
|
4367
|
+
), w = L || Zi();
|
|
4354
4368
|
return {
|
|
4355
4369
|
c() {
|
|
4356
|
-
t = I("div"), r = I("div"), n = I("span"),
|
|
4370
|
+
t = I("div"), r = I("div"), n = I("span"), w && w.c(), i = _e(), o = I("div"), a = ae(
|
|
4357
4371
|
/*modaltext*/
|
|
4358
4372
|
e[0]
|
|
4359
|
-
),
|
|
4360
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")),
|
|
4361
|
-
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")),
|
|
4373
|
+
), s = _e(), h = I("div"), u = I("button"), c = ae(l), f = _e(), p = I("button"), y = ae(m), S(n, "class", "ModalCloseBtn"), S(n, "role", "button"), S(o, "class", "GamingLimitsConfirmationContent"), S(u, "class", "GamingLimitsCancelButton"), S(p, "class", "GamingLimitsConfirmButton"), S(h, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4374
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), S(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4375
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), S(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4362
4376
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4363
4377
|
},
|
|
4364
4378
|
m(_, C) {
|
|
4365
|
-
|
|
4379
|
+
Qe(_, t, C), B(t, r), B(r, n), w && w.m(n, null), B(r, i), B(r, o), B(o, a), B(r, s), B(r, h), B(h, u), B(u, c), B(h, f), B(h, p), B(p, y), e[15](t), E = !0, A || (P = [
|
|
4366
4380
|
Ee(
|
|
4367
4381
|
n,
|
|
4368
4382
|
"click",
|
|
@@ -4376,7 +4390,7 @@ function zi(e) {
|
|
|
4376
4390
|
e[6]
|
|
4377
4391
|
),
|
|
4378
4392
|
Ee(
|
|
4379
|
-
|
|
4393
|
+
p,
|
|
4380
4394
|
"click",
|
|
4381
4395
|
/*confirmChanges*/
|
|
4382
4396
|
e[5]
|
|
@@ -4385,66 +4399,66 @@ function zi(e) {
|
|
|
4385
4399
|
},
|
|
4386
4400
|
p(_, [C]) {
|
|
4387
4401
|
L && L.p && (!E || C & /*$$scope*/
|
|
4388
|
-
8192) &&
|
|
4402
|
+
8192) && gr(
|
|
4389
4403
|
L,
|
|
4390
|
-
|
|
4404
|
+
T,
|
|
4391
4405
|
_,
|
|
4392
4406
|
/*$$scope*/
|
|
4393
4407
|
_[13],
|
|
4394
|
-
E ?
|
|
4395
|
-
|
|
4408
|
+
E ? br(
|
|
4409
|
+
T,
|
|
4396
4410
|
/*$$scope*/
|
|
4397
4411
|
_[13],
|
|
4398
4412
|
C,
|
|
4399
|
-
|
|
4400
|
-
) :
|
|
4413
|
+
zi
|
|
4414
|
+
) : yr(
|
|
4401
4415
|
/*$$scope*/
|
|
4402
4416
|
_[13]
|
|
4403
4417
|
),
|
|
4404
|
-
|
|
4418
|
+
Ht
|
|
4405
4419
|
), (!E || C & /*modaltext*/
|
|
4406
4420
|
1) && we(
|
|
4407
|
-
|
|
4421
|
+
a,
|
|
4408
4422
|
/*modaltext*/
|
|
4409
4423
|
_[0]
|
|
4410
4424
|
), (!E || C & /*$_*/
|
|
4411
4425
|
4) && l !== (l = /*$_*/
|
|
4412
|
-
_[2]("cancel") + "") && we(
|
|
4426
|
+
_[2]("cancel") + "") && we(c, l), (!E || C & /*$_*/
|
|
4413
4427
|
4) && m !== (m = /*$_*/
|
|
4414
4428
|
_[2]("confirm") + "") && we(y, m);
|
|
4415
4429
|
},
|
|
4416
4430
|
i(_) {
|
|
4417
|
-
E || (
|
|
4431
|
+
E || (Lt(w, _), E = !0);
|
|
4418
4432
|
},
|
|
4419
4433
|
o(_) {
|
|
4420
|
-
|
|
4434
|
+
Lr(w, _), E = !1;
|
|
4421
4435
|
},
|
|
4422
4436
|
d(_) {
|
|
4423
|
-
_ &&
|
|
4437
|
+
_ && de(t), w && w.d(_), e[15](null), A = !1, Q(P);
|
|
4424
4438
|
}
|
|
4425
4439
|
};
|
|
4426
4440
|
}
|
|
4427
|
-
function
|
|
4441
|
+
function Ji(e, t, r) {
|
|
4428
4442
|
let n;
|
|
4429
|
-
|
|
4430
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext:
|
|
4431
|
-
const
|
|
4432
|
-
fetch(
|
|
4433
|
-
Object.keys(U).forEach((
|
|
4434
|
-
|
|
4443
|
+
pr(e, Di, (b) => r(2, n = b));
|
|
4444
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4445
|
+
const p = () => {
|
|
4446
|
+
fetch(f).then((U) => U.json()).then((U) => {
|
|
4447
|
+
Object.keys(U).forEach((et) => {
|
|
4448
|
+
St(et, U[et]);
|
|
4435
4449
|
});
|
|
4436
4450
|
}).catch((U) => {
|
|
4437
4451
|
console.log(U);
|
|
4438
4452
|
});
|
|
4439
4453
|
};
|
|
4440
|
-
Object.keys(
|
|
4441
|
-
|
|
4454
|
+
Object.keys(Tt).forEach((b) => {
|
|
4455
|
+
St(b, Tt[b]);
|
|
4442
4456
|
});
|
|
4443
|
-
let m, y = window.navigator.userAgent, E =
|
|
4444
|
-
const
|
|
4457
|
+
let m, y = window.navigator.userAgent, E = Fi(y) !== "PC", A = {}, P = "";
|
|
4458
|
+
const T = () => {
|
|
4445
4459
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4446
4460
|
}, L = () => {
|
|
4447
|
-
|
|
4461
|
+
s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
|
|
4448
4462
|
{
|
|
4449
4463
|
type: "PlayerAccountGamingLimitDelete",
|
|
4450
4464
|
limit: A,
|
|
@@ -4452,8 +4466,8 @@ function Zi(e, t, r) {
|
|
|
4452
4466
|
},
|
|
4453
4467
|
window.location.href
|
|
4454
4468
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4455
|
-
},
|
|
4456
|
-
|
|
4469
|
+
}, w = () => {
|
|
4470
|
+
s === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : s === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4457
4471
|
}, _ = (b) => b === "Time Limit" ? "cumulativeSessionLimits" : b === "Deposit Limit" ? "depositLimits" : b === "Wagering Limit" ? "wageringLimit" : "lossLimit", C = (b) => {
|
|
4458
4472
|
if (b.data)
|
|
4459
4473
|
switch (b.data.type) {
|
|
@@ -4461,53 +4475,53 @@ function Zi(e, t, r) {
|
|
|
4461
4475
|
A = b.data.removeData, P = _(b.data.removeName);
|
|
4462
4476
|
break;
|
|
4463
4477
|
}
|
|
4464
|
-
},
|
|
4465
|
-
|
|
4478
|
+
}, lr = () => {
|
|
4479
|
+
ji(h);
|
|
4466
4480
|
};
|
|
4467
|
-
|
|
4481
|
+
Tr(() => (window.addEventListener("message", C, !1), () => {
|
|
4468
4482
|
window.removeEventListener("message", C);
|
|
4469
4483
|
}));
|
|
4470
|
-
function
|
|
4471
|
-
|
|
4484
|
+
function cr(b) {
|
|
4485
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4472
4486
|
m = b, r(1, m);
|
|
4473
4487
|
});
|
|
4474
4488
|
}
|
|
4475
4489
|
return e.$$set = (b) => {
|
|
4476
|
-
"modaltext" in b && r(0,
|
|
4490
|
+
"modaltext" in b && r(0, a = b.modaltext), "modalsource" in b && r(7, s = b.modalsource), "lang" in b && r(8, h = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "mbsource" in b && r(11, c = b.mbsource), "translationurl" in b && r(12, f = b.translationurl), "$$scope" in b && r(13, o = b.$$scope);
|
|
4477
4491
|
}, e.$$.update = () => {
|
|
4478
4492
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4479
|
-
385 &&
|
|
4480
|
-
514 && u && m &&
|
|
4481
|
-
1026 && l && m &&
|
|
4482
|
-
2050 &&
|
|
4483
|
-
4096 &&
|
|
4493
|
+
385 && a && s && h && lr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4494
|
+
514 && u && m && ki(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4495
|
+
1026 && l && m && Vi(m, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4496
|
+
2050 && c && m && Xi(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4497
|
+
4096 && f && p();
|
|
4484
4498
|
}, [
|
|
4485
|
-
|
|
4499
|
+
a,
|
|
4486
4500
|
m,
|
|
4487
4501
|
n,
|
|
4488
4502
|
E,
|
|
4489
|
-
S,
|
|
4490
|
-
L,
|
|
4491
4503
|
T,
|
|
4492
|
-
|
|
4504
|
+
L,
|
|
4505
|
+
w,
|
|
4506
|
+
s,
|
|
4493
4507
|
h,
|
|
4494
4508
|
u,
|
|
4495
4509
|
l,
|
|
4496
|
-
f,
|
|
4497
4510
|
c,
|
|
4511
|
+
f,
|
|
4498
4512
|
o,
|
|
4499
4513
|
i,
|
|
4500
|
-
|
|
4514
|
+
cr
|
|
4501
4515
|
];
|
|
4502
4516
|
}
|
|
4503
|
-
class
|
|
4517
|
+
class Yi extends $r {
|
|
4504
4518
|
constructor(t) {
|
|
4505
|
-
super(),
|
|
4519
|
+
super(), Nr(
|
|
4506
4520
|
this,
|
|
4507
4521
|
t,
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4522
|
+
Ji,
|
|
4523
|
+
Qi,
|
|
4524
|
+
Ct,
|
|
4511
4525
|
{
|
|
4512
4526
|
modaltext: 0,
|
|
4513
4527
|
modalsource: 7,
|
|
@@ -4517,7 +4531,7 @@ class Qi extends Mr {
|
|
|
4517
4531
|
mbsource: 11,
|
|
4518
4532
|
translationurl: 12
|
|
4519
4533
|
},
|
|
4520
|
-
|
|
4534
|
+
Wi
|
|
4521
4535
|
);
|
|
4522
4536
|
}
|
|
4523
4537
|
get modaltext() {
|
|
@@ -4563,7 +4577,7 @@ class Qi extends Mr {
|
|
|
4563
4577
|
this.$$set({ translationurl: t }), M();
|
|
4564
4578
|
}
|
|
4565
4579
|
}
|
|
4566
|
-
|
|
4580
|
+
Rr(Yi, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4567
4581
|
export {
|
|
4568
|
-
|
|
4582
|
+
Yi as P
|
|
4569
4583
|
};
|