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