@everymatrix/player-email-verification 1.76.1 → 1.76.3
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/{PlayerEmailVerification-DgO_reIt.js → PlayerEmailVerification-BBi35CeE.js} +490 -488
- package/components/PlayerEmailVerification-BvFFq54H.cjs +16 -0
- package/components/{PlayerEmailVerification-BEBlzjMH.js → PlayerEmailVerification-PiRGTKmW.js} +511 -509
- package/es2015/player-email-verification.cjs +1 -1
- package/es2015/player-email-verification.js +1 -1
- package/esnext/player-email-verification.js +1 -1
- package/package.json +1 -1
- package/components/PlayerEmailVerification-D4cuMbt0.cjs +0 -16
package/components/{PlayerEmailVerification-DgO_reIt.js → PlayerEmailVerification-BBi35CeE.js}
RENAMED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Qe(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ie() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function W(e) {
|
|
10
|
+
e.forEach(Qe);
|
|
11
11
|
}
|
|
12
12
|
function Te(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Je(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function St(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function qe(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return _;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Bt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(qe(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ye(e, t, r) {
|
|
34
34
|
e.insertBefore(t, r || null);
|
|
35
35
|
}
|
|
36
36
|
function Se(e) {
|
|
37
37
|
e.parentNode && e.parentNode.removeChild(e);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Ke(e) {
|
|
40
40
|
return document.createElement(e);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function At(e, t, r) {
|
|
43
43
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Pt(e) {
|
|
46
46
|
return Array.from(e.childNodes);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Nt(e) {
|
|
49
49
|
const t = {};
|
|
50
50
|
return e.childNodes.forEach(
|
|
51
51
|
/** @param {Element} node */
|
|
@@ -58,17 +58,17 @@ let Be;
|
|
|
58
58
|
function V(e) {
|
|
59
59
|
Be = e;
|
|
60
60
|
}
|
|
61
|
-
const O = [],
|
|
61
|
+
const O = [], we = [];
|
|
62
62
|
let w = [];
|
|
63
|
-
const
|
|
63
|
+
const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
|
|
64
64
|
let me = !1;
|
|
65
|
-
function
|
|
66
|
-
me || (me = !0,
|
|
65
|
+
function It() {
|
|
66
|
+
me || (me = !0, Ot.then(I));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function de(e) {
|
|
69
69
|
w.push(e);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const ae = /* @__PURE__ */ new Set();
|
|
72
72
|
let P = 0;
|
|
73
73
|
function I() {
|
|
74
74
|
if (P !== 0)
|
|
@@ -78,63 +78,63 @@ function I() {
|
|
|
78
78
|
try {
|
|
79
79
|
for (; P < O.length; ) {
|
|
80
80
|
const t = O[P];
|
|
81
|
-
P++, V(t),
|
|
81
|
+
P++, V(t), wt(t.$$);
|
|
82
82
|
}
|
|
83
83
|
} catch (t) {
|
|
84
84
|
throw O.length = 0, P = 0, t;
|
|
85
85
|
}
|
|
86
|
-
for (V(null), O.length = 0, P = 0;
|
|
87
|
-
|
|
86
|
+
for (V(null), O.length = 0, P = 0; we.length; )
|
|
87
|
+
we.pop()();
|
|
88
88
|
for (let t = 0; t < w.length; t += 1) {
|
|
89
89
|
const r = w[t];
|
|
90
|
-
|
|
90
|
+
ae.has(r) || (ae.add(r), r());
|
|
91
91
|
}
|
|
92
92
|
w.length = 0;
|
|
93
93
|
} while (O.length);
|
|
94
|
-
for (;
|
|
95
|
-
|
|
96
|
-
me = !1,
|
|
94
|
+
for (; $e.length; )
|
|
95
|
+
$e.pop()();
|
|
96
|
+
me = !1, ae.clear(), V(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function wt(e) {
|
|
99
99
|
if (e.fragment !== null) {
|
|
100
|
-
e.update(),
|
|
100
|
+
e.update(), W(e.before_update);
|
|
101
101
|
const t = e.dirty;
|
|
102
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
102
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(de);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $t(e) {
|
|
106
106
|
const t = [], r = [];
|
|
107
107
|
w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
e && e.i && (
|
|
109
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
110
|
+
function Mt(e, t) {
|
|
111
|
+
e && e.i && (Lt.delete(e), e.i(t));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ct(e, t, r) {
|
|
114
114
|
const { fragment: n, after_update: i } = e.$$;
|
|
115
|
-
n && n.m(t, r),
|
|
116
|
-
const s = e.$$.on_mount.map(
|
|
117
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
118
|
-
}), i.forEach(
|
|
115
|
+
n && n.m(t, r), de(() => {
|
|
116
|
+
const s = e.$$.on_mount.map(Qe).filter(Te);
|
|
117
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
118
|
+
}), i.forEach(de);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Rt(e, t) {
|
|
121
121
|
const r = e.$$;
|
|
122
|
-
r.fragment !== null && (
|
|
122
|
+
r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
e.$$.dirty[0] === -1 && (O.push(e),
|
|
124
|
+
function Ut(e, t) {
|
|
125
|
+
e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Gt(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
128
128
|
const f = Be;
|
|
129
129
|
V(e);
|
|
130
|
-
const
|
|
130
|
+
const o = e.$$ = {
|
|
131
131
|
fragment: null,
|
|
132
132
|
ctx: [],
|
|
133
133
|
// state
|
|
134
134
|
props: s,
|
|
135
|
-
update:
|
|
135
|
+
update: _,
|
|
136
136
|
not_equal: i,
|
|
137
|
-
bound:
|
|
137
|
+
bound: Ie(),
|
|
138
138
|
// lifecycle
|
|
139
139
|
on_mount: [],
|
|
140
140
|
on_destroy: [],
|
|
@@ -143,28 +143,28 @@ function Dt(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
143
143
|
after_update: [],
|
|
144
144
|
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
145
145
|
// everything else
|
|
146
|
-
callbacks:
|
|
147
|
-
dirty:
|
|
146
|
+
callbacks: Ie(),
|
|
147
|
+
dirty: a,
|
|
148
148
|
skip_bound: !1,
|
|
149
149
|
root: t.target || f.$$.root
|
|
150
150
|
};
|
|
151
|
-
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
151
|
+
u && u(o.root);
|
|
152
|
+
let h = !1;
|
|
153
|
+
if (o.ctx = r(e, t.props || {}, (l, c, ...b) => {
|
|
154
154
|
const g = b.length ? b[0] : c;
|
|
155
|
-
return
|
|
156
|
-
})
|
|
155
|
+
return o.ctx && i(o.ctx[l], o.ctx[l] = g) && (!o.skip_bound && o.bound[l] && o.bound[l](g), h && Ut(e, l)), c;
|
|
156
|
+
}), o.update(), h = !0, W(o.before_update), o.fragment = n(o.ctx), t.target) {
|
|
157
157
|
if (t.hydrate) {
|
|
158
|
-
const l =
|
|
159
|
-
|
|
158
|
+
const l = Pt(t.target);
|
|
159
|
+
o.fragment && o.fragment.l(l), l.forEach(Se);
|
|
160
160
|
} else
|
|
161
|
-
|
|
162
|
-
t.intro &&
|
|
161
|
+
o.fragment && o.fragment.c();
|
|
162
|
+
t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
|
|
163
163
|
}
|
|
164
164
|
V(f);
|
|
165
165
|
}
|
|
166
|
-
let
|
|
167
|
-
typeof HTMLElement == "function" && (
|
|
166
|
+
let et;
|
|
167
|
+
typeof HTMLElement == "function" && (et = class extends HTMLElement {
|
|
168
168
|
/** The Svelte component constructor */
|
|
169
169
|
$$ctor;
|
|
170
170
|
/** Slots */
|
|
@@ -206,14 +206,14 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
206
206
|
let s;
|
|
207
207
|
return {
|
|
208
208
|
c: function() {
|
|
209
|
-
s =
|
|
209
|
+
s = Ke("slot"), i !== "default" && At(s, "name", i);
|
|
210
210
|
},
|
|
211
211
|
/**
|
|
212
212
|
* @param {HTMLElement} target
|
|
213
213
|
* @param {HTMLElement} [anchor]
|
|
214
214
|
*/
|
|
215
|
-
m: function(f,
|
|
216
|
-
|
|
215
|
+
m: function(f, o) {
|
|
216
|
+
Ye(f, s, o);
|
|
217
217
|
},
|
|
218
218
|
d: function(f) {
|
|
219
219
|
f && Se(s);
|
|
@@ -223,7 +223,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
223
223
|
};
|
|
224
224
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
225
225
|
return;
|
|
226
|
-
const t = {}, r =
|
|
226
|
+
const t = {}, r = Nt(this);
|
|
227
227
|
for (const i of this.$$s)
|
|
228
228
|
i in r && (t[i] = [e(i)]);
|
|
229
229
|
for (const i of this.attributes) {
|
|
@@ -259,8 +259,8 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
259
259
|
this.$$c.$$.after_update.push(n), n();
|
|
260
260
|
for (const i in this.$$l)
|
|
261
261
|
for (const s of this.$$l[i]) {
|
|
262
|
-
const
|
|
263
|
-
this.$$l_u.set(s,
|
|
262
|
+
const u = this.$$c.$on(i, s);
|
|
263
|
+
this.$$l_u.set(s, u);
|
|
264
264
|
}
|
|
265
265
|
this.$$l = {};
|
|
266
266
|
}
|
|
@@ -310,36 +310,36 @@ function J(e, t, r, n) {
|
|
|
310
310
|
return t;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
let
|
|
313
|
+
function Dt(e, t, r, n, i, s) {
|
|
314
|
+
let u = class extends et {
|
|
315
315
|
constructor() {
|
|
316
316
|
super(e, r, i), this.$$p_d = t;
|
|
317
317
|
}
|
|
318
318
|
static get observedAttributes() {
|
|
319
319
|
return Object.keys(t).map(
|
|
320
|
-
(
|
|
320
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
|
-
return Object.keys(t).forEach((
|
|
325
|
-
Object.defineProperty(
|
|
324
|
+
return Object.keys(t).forEach((a) => {
|
|
325
|
+
Object.defineProperty(u.prototype, a, {
|
|
326
326
|
get() {
|
|
327
|
-
return this.$$c &&
|
|
327
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
328
328
|
},
|
|
329
329
|
set(f) {
|
|
330
|
-
f = J(
|
|
330
|
+
f = J(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
}), n.forEach((
|
|
334
|
-
Object.defineProperty(
|
|
333
|
+
}), n.forEach((a) => {
|
|
334
|
+
Object.defineProperty(u.prototype, a, {
|
|
335
335
|
get() {
|
|
336
|
-
return this.$$c?.[
|
|
336
|
+
return this.$$c?.[a];
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
}), e.element = /** @type {any} */
|
|
340
|
-
|
|
340
|
+
u, u;
|
|
341
341
|
}
|
|
342
|
-
class
|
|
342
|
+
class Ft {
|
|
343
343
|
/**
|
|
344
344
|
* ### PRIVATE API
|
|
345
345
|
*
|
|
@@ -358,7 +358,7 @@ class jt {
|
|
|
358
358
|
$$set = void 0;
|
|
359
359
|
/** @returns {void} */
|
|
360
360
|
$destroy() {
|
|
361
|
-
|
|
361
|
+
Rt(this, 1), this.$destroy = _;
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
364
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -368,7 +368,7 @@ class jt {
|
|
|
368
368
|
*/
|
|
369
369
|
$on(t, r) {
|
|
370
370
|
if (!Te(r))
|
|
371
|
-
return
|
|
371
|
+
return _;
|
|
372
372
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
373
373
|
return n.push(r), () => {
|
|
374
374
|
const i = n.indexOf(r);
|
|
@@ -380,138 +380,138 @@ class jt {
|
|
|
380
380
|
* @returns {void}
|
|
381
381
|
*/
|
|
382
382
|
$set(t) {
|
|
383
|
-
this.$$set && !
|
|
383
|
+
this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
386
|
+
const jt = "4";
|
|
387
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
|
|
388
388
|
const N = [];
|
|
389
|
-
function
|
|
389
|
+
function Vt(e, t) {
|
|
390
390
|
return {
|
|
391
391
|
subscribe: te(e, t).subscribe
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function te(e, t =
|
|
394
|
+
function te(e, t = _) {
|
|
395
395
|
let r;
|
|
396
396
|
const n = /* @__PURE__ */ new Set();
|
|
397
|
-
function i(
|
|
398
|
-
if (
|
|
397
|
+
function i(a) {
|
|
398
|
+
if (Je(e, a) && (e = a, r)) {
|
|
399
399
|
const f = !N.length;
|
|
400
|
-
for (const
|
|
401
|
-
|
|
400
|
+
for (const o of n)
|
|
401
|
+
o[1](), N.push(o, e);
|
|
402
402
|
if (f) {
|
|
403
|
-
for (let
|
|
404
|
-
N[
|
|
403
|
+
for (let o = 0; o < N.length; o += 2)
|
|
404
|
+
N[o][0](N[o + 1]);
|
|
405
405
|
N.length = 0;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function s(
|
|
410
|
-
i(
|
|
409
|
+
function s(a) {
|
|
410
|
+
i(a(e));
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
const
|
|
414
|
-
return n.add(
|
|
415
|
-
n.delete(
|
|
412
|
+
function u(a, f = _) {
|
|
413
|
+
const o = [a, f];
|
|
414
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || _), a(e), () => {
|
|
415
|
+
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
return { set: i, update: s, subscribe:
|
|
418
|
+
return { set: i, update: s, subscribe: u };
|
|
419
419
|
}
|
|
420
420
|
function R(e, t, r) {
|
|
421
421
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
422
422
|
if (!i.every(Boolean))
|
|
423
423
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
424
424
|
const s = t.length < 2;
|
|
425
|
-
return
|
|
425
|
+
return Vt(r, (u, a) => {
|
|
426
426
|
let f = !1;
|
|
427
|
-
const
|
|
428
|
-
let
|
|
427
|
+
const o = [];
|
|
428
|
+
let h = 0, l = _;
|
|
429
429
|
const c = () => {
|
|
430
|
-
if (
|
|
430
|
+
if (h)
|
|
431
431
|
return;
|
|
432
432
|
l();
|
|
433
|
-
const g = t(n ?
|
|
434
|
-
s ?
|
|
433
|
+
const g = t(n ? o[0] : o, u, a);
|
|
434
|
+
s ? u(g) : l = Te(g) ? g : _;
|
|
435
435
|
}, b = i.map(
|
|
436
|
-
(g, x) =>
|
|
436
|
+
(g, x) => qe(
|
|
437
437
|
g,
|
|
438
438
|
(H) => {
|
|
439
|
-
|
|
439
|
+
o[x] = H, h &= ~(1 << x), f && c();
|
|
440
440
|
},
|
|
441
441
|
() => {
|
|
442
|
-
|
|
442
|
+
h |= 1 << x;
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
);
|
|
446
446
|
return f = !0, c(), function() {
|
|
447
|
-
|
|
447
|
+
W(b), l(), f = !1;
|
|
448
448
|
};
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return e
|
|
451
|
+
function kt(e) {
|
|
452
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
453
453
|
}
|
|
454
|
-
var
|
|
455
|
-
return Wt(t) && !
|
|
454
|
+
var Xt = function(t) {
|
|
455
|
+
return Wt(t) && !zt(t);
|
|
456
456
|
};
|
|
457
457
|
function Wt(e) {
|
|
458
458
|
return !!e && typeof e == "object";
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function zt(e) {
|
|
461
461
|
var t = Object.prototype.toString.call(e);
|
|
462
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
462
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
function
|
|
466
|
-
return e.$$typeof ===
|
|
464
|
+
var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
|
|
465
|
+
function Jt(e) {
|
|
466
|
+
return e.$$typeof === Qt;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function qt(e) {
|
|
469
469
|
return Array.isArray(e) ? [] : {};
|
|
470
470
|
}
|
|
471
471
|
function k(e, t) {
|
|
472
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? $(
|
|
472
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Yt(e, t, r) {
|
|
475
475
|
return e.concat(t).map(function(n) {
|
|
476
476
|
return k(n, r);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Kt(e, t) {
|
|
480
480
|
if (!t.customMerge)
|
|
481
481
|
return $;
|
|
482
482
|
var r = t.customMerge(e);
|
|
483
483
|
return typeof r == "function" ? r : $;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function er(e) {
|
|
486
486
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
487
487
|
return Object.propertyIsEnumerable.call(e, t);
|
|
488
488
|
}) : [];
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return Object.keys(e).concat(
|
|
490
|
+
function Le(e) {
|
|
491
|
+
return Object.keys(e).concat(er(e));
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function tt(e, t) {
|
|
494
494
|
try {
|
|
495
495
|
return t in e;
|
|
496
496
|
} catch {
|
|
497
497
|
return !1;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
500
|
+
function tr(e, t) {
|
|
501
|
+
return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function rr(e, t, r) {
|
|
504
504
|
var n = {};
|
|
505
|
-
return r.isMergeableObject(e) &&
|
|
505
|
+
return r.isMergeableObject(e) && Le(e).forEach(function(i) {
|
|
506
506
|
n[i] = k(e[i], r);
|
|
507
|
-
}),
|
|
508
|
-
|
|
507
|
+
}), Le(t).forEach(function(i) {
|
|
508
|
+
tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
|
|
509
509
|
}), n;
|
|
510
510
|
}
|
|
511
511
|
function $(e, t, r) {
|
|
512
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
512
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
|
|
513
513
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
514
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
514
|
+
return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
|
|
515
515
|
}
|
|
516
516
|
$.all = function(t, r) {
|
|
517
517
|
if (!Array.isArray(t))
|
|
@@ -520,8 +520,8 @@ $.all = function(t, r) {
|
|
|
520
520
|
return $(n, i, r);
|
|
521
521
|
}, {});
|
|
522
522
|
};
|
|
523
|
-
var
|
|
524
|
-
const
|
|
523
|
+
var nr = $, ir = nr;
|
|
524
|
+
const sr = /* @__PURE__ */ kt(ir);
|
|
525
525
|
/*! *****************************************************************************
|
|
526
526
|
Copyright (c) Microsoft Corporation.
|
|
527
527
|
|
|
@@ -536,32 +536,32 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
536
536
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
537
537
|
PERFORMANCE OF THIS SOFTWARE.
|
|
538
538
|
***************************************************************************** */
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var pe = function(e, t) {
|
|
540
|
+
return pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
541
541
|
r.__proto__ = n;
|
|
542
542
|
} || function(r, n) {
|
|
543
543
|
for (var i in n)
|
|
544
544
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
545
|
-
},
|
|
545
|
+
}, pe(e, t);
|
|
546
546
|
};
|
|
547
547
|
function re(e, t) {
|
|
548
548
|
if (typeof t != "function" && t !== null)
|
|
549
549
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
550
|
-
|
|
550
|
+
pe(e, t);
|
|
551
551
|
function r() {
|
|
552
552
|
this.constructor = e;
|
|
553
553
|
}
|
|
554
554
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
555
555
|
}
|
|
556
|
-
var
|
|
557
|
-
return
|
|
556
|
+
var p = function() {
|
|
557
|
+
return p = Object.assign || function(t) {
|
|
558
558
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
559
559
|
r = arguments[n];
|
|
560
560
|
for (var s in r)
|
|
561
561
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
562
562
|
}
|
|
563
563
|
return t;
|
|
564
|
-
},
|
|
564
|
+
}, p.apply(this, arguments);
|
|
565
565
|
};
|
|
566
566
|
function ar(e, t) {
|
|
567
567
|
var r = {};
|
|
@@ -572,27 +572,27 @@ function ar(e, t) {
|
|
|
572
572
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
573
573
|
return r;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function oe(e, t, r) {
|
|
576
576
|
if (arguments.length === 2)
|
|
577
577
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
578
578
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
579
579
|
return e.concat(s || t);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer :
|
|
581
|
+
function ue(e, t) {
|
|
582
|
+
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
|
|
583
583
|
return i(e, {
|
|
584
584
|
cache: r,
|
|
585
585
|
serializer: n
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function or(e) {
|
|
589
589
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
var i =
|
|
591
|
+
function rt(e, t, r, n) {
|
|
592
|
+
var i = or(n) ? n : r(n), s = t.get(i);
|
|
593
593
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function nt(e, t, r) {
|
|
596
596
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
597
597
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
598
598
|
}
|
|
@@ -600,34 +600,36 @@ function Ae(e, t, r, n, i) {
|
|
|
600
600
|
return r.bind(t, e, n, i);
|
|
601
601
|
}
|
|
602
602
|
function ur(e, t) {
|
|
603
|
-
var r = e.length === 1 ?
|
|
603
|
+
var r = e.length === 1 ? rt : nt;
|
|
604
604
|
return Ae(e, this, r, t.cache.create(), t.serializer);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return Ae(e, this, it, t.cache.create(), t.serializer);
|
|
608
|
-
}
|
|
609
|
-
function fr(e, t) {
|
|
606
|
+
function hr(e, t) {
|
|
610
607
|
return Ae(e, this, nt, t.cache.create(), t.serializer);
|
|
611
608
|
}
|
|
612
|
-
|
|
613
|
-
return
|
|
614
|
-
};
|
|
615
|
-
function Pe() {
|
|
616
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
609
|
+
function lr(e, t) {
|
|
610
|
+
return Ae(e, this, rt, t.cache.create(), t.serializer);
|
|
617
611
|
}
|
|
618
|
-
|
|
619
|
-
return
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
612
|
+
var fr = function() {
|
|
613
|
+
return JSON.stringify(arguments);
|
|
614
|
+
}, cr = (
|
|
615
|
+
/** @class */
|
|
616
|
+
function() {
|
|
617
|
+
function e() {
|
|
618
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
619
|
+
}
|
|
620
|
+
return e.prototype.get = function(t) {
|
|
621
|
+
return this.cache[t];
|
|
622
|
+
}, e.prototype.set = function(t, r) {
|
|
623
|
+
this.cache[t] = r;
|
|
624
|
+
}, e;
|
|
625
|
+
}()
|
|
626
|
+
), mr = {
|
|
625
627
|
create: function() {
|
|
626
|
-
return new
|
|
628
|
+
return new cr();
|
|
627
629
|
}
|
|
628
|
-
},
|
|
629
|
-
variadic:
|
|
630
|
-
monadic:
|
|
630
|
+
}, he = {
|
|
631
|
+
variadic: hr,
|
|
632
|
+
monadic: lr
|
|
631
633
|
}, m;
|
|
632
634
|
(function(e) {
|
|
633
635
|
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";
|
|
@@ -640,40 +642,40 @@ var L;
|
|
|
640
642
|
(function(e) {
|
|
641
643
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
642
644
|
})(L || (L = {}));
|
|
643
|
-
function
|
|
645
|
+
function Me(e) {
|
|
644
646
|
return e.type === E.literal;
|
|
645
647
|
}
|
|
646
|
-
function
|
|
648
|
+
function dr(e) {
|
|
647
649
|
return e.type === E.argument;
|
|
648
650
|
}
|
|
649
|
-
function
|
|
651
|
+
function it(e) {
|
|
650
652
|
return e.type === E.number;
|
|
651
653
|
}
|
|
652
|
-
function
|
|
654
|
+
function st(e) {
|
|
653
655
|
return e.type === E.date;
|
|
654
656
|
}
|
|
655
657
|
function at(e) {
|
|
656
658
|
return e.type === E.time;
|
|
657
659
|
}
|
|
658
|
-
function
|
|
660
|
+
function ot(e) {
|
|
659
661
|
return e.type === E.select;
|
|
660
662
|
}
|
|
661
663
|
function ut(e) {
|
|
662
664
|
return e.type === E.plural;
|
|
663
665
|
}
|
|
664
|
-
function
|
|
666
|
+
function pr(e) {
|
|
665
667
|
return e.type === E.pound;
|
|
666
668
|
}
|
|
667
|
-
function
|
|
669
|
+
function ht(e) {
|
|
668
670
|
return e.type === E.tag;
|
|
669
671
|
}
|
|
670
|
-
function
|
|
672
|
+
function lt(e) {
|
|
671
673
|
return !!(e && typeof e == "object" && e.type === L.number);
|
|
672
674
|
}
|
|
673
675
|
function be(e) {
|
|
674
676
|
return !!(e && typeof e == "object" && e.type === L.dateTime);
|
|
675
677
|
}
|
|
676
|
-
var
|
|
678
|
+
var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
|
|
677
679
|
function gr(e) {
|
|
678
680
|
var t = {};
|
|
679
681
|
return e.replace(br, function(r) {
|
|
@@ -772,25 +774,25 @@ function yr(e) {
|
|
|
772
774
|
for (var t = e.split(Er).filter(function(c) {
|
|
773
775
|
return c.length > 0;
|
|
774
776
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
775
|
-
var s = i[n],
|
|
776
|
-
if (
|
|
777
|
+
var s = i[n], u = s.split("/");
|
|
778
|
+
if (u.length === 0)
|
|
777
779
|
throw new Error("Invalid number skeleton");
|
|
778
|
-
for (var
|
|
779
|
-
var l =
|
|
780
|
+
for (var a = u[0], f = u.slice(1), o = 0, h = f; o < h.length; o++) {
|
|
781
|
+
var l = h[o];
|
|
780
782
|
if (l.length === 0)
|
|
781
783
|
throw new Error("Invalid number skeleton");
|
|
782
784
|
}
|
|
783
|
-
r.push({ stem:
|
|
785
|
+
r.push({ stem: a, options: f });
|
|
784
786
|
}
|
|
785
787
|
return r;
|
|
786
788
|
}
|
|
787
789
|
function xr(e) {
|
|
788
790
|
return e.replace(/^(.*?)-/, "");
|
|
789
791
|
}
|
|
790
|
-
var
|
|
791
|
-
function
|
|
792
|
+
var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
|
|
793
|
+
function Re(e) {
|
|
792
794
|
var t = {};
|
|
793
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
795
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
|
|
794
796
|
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)), "";
|
|
795
797
|
}), t;
|
|
796
798
|
}
|
|
@@ -834,7 +836,7 @@ function dt(e) {
|
|
|
834
836
|
};
|
|
835
837
|
}
|
|
836
838
|
}
|
|
837
|
-
function
|
|
839
|
+
function vr(e) {
|
|
838
840
|
var t;
|
|
839
841
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
840
842
|
notation: "engineering"
|
|
@@ -842,13 +844,13 @@ function _r(e) {
|
|
|
842
844
|
notation: "scientific"
|
|
843
845
|
}, e = e.slice(1)), t) {
|
|
844
846
|
var r = e.slice(0, 2);
|
|
845
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
847
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
|
|
846
848
|
throw new Error("Malformed concise eng/scientific notation");
|
|
847
849
|
t.minimumIntegerDigits = e.length;
|
|
848
850
|
}
|
|
849
851
|
return t;
|
|
850
852
|
}
|
|
851
|
-
function
|
|
853
|
+
function Ue(e) {
|
|
852
854
|
var t = {}, r = dt(e);
|
|
853
855
|
return r || t;
|
|
854
856
|
}
|
|
@@ -887,13 +889,13 @@ function Hr(e) {
|
|
|
887
889
|
t.notation = "compact", t.compactDisplay = "long";
|
|
888
890
|
continue;
|
|
889
891
|
case "scientific":
|
|
890
|
-
t =
|
|
891
|
-
return
|
|
892
|
+
t = p(p(p({}, t), { notation: "scientific" }), i.options.reduce(function(f, o) {
|
|
893
|
+
return p(p({}, f), Ue(o));
|
|
892
894
|
}, {}));
|
|
893
895
|
continue;
|
|
894
896
|
case "engineering":
|
|
895
|
-
t =
|
|
896
|
-
return
|
|
897
|
+
t = p(p(p({}, t), { notation: "engineering" }), i.options.reduce(function(f, o) {
|
|
898
|
+
return p(p({}, f), Ue(o));
|
|
897
899
|
}, {}));
|
|
898
900
|
continue;
|
|
899
901
|
case "notation-simple":
|
|
@@ -938,9 +940,9 @@ function Hr(e) {
|
|
|
938
940
|
case "integer-width":
|
|
939
941
|
if (i.options.length > 1)
|
|
940
942
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
941
|
-
i.options[0].replace(
|
|
942
|
-
if (
|
|
943
|
-
t.minimumIntegerDigits =
|
|
943
|
+
i.options[0].replace(_r, function(f, o, h, l, c, b) {
|
|
944
|
+
if (o)
|
|
945
|
+
t.minimumIntegerDigits = h.length;
|
|
944
946
|
else {
|
|
945
947
|
if (l && c)
|
|
946
948
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -951,28 +953,28 @@ function Hr(e) {
|
|
|
951
953
|
});
|
|
952
954
|
continue;
|
|
953
955
|
}
|
|
954
|
-
if (
|
|
956
|
+
if (mt.test(i.stem)) {
|
|
955
957
|
t.minimumIntegerDigits = i.stem.length;
|
|
956
958
|
continue;
|
|
957
959
|
}
|
|
958
|
-
if (
|
|
960
|
+
if (Ce.test(i.stem)) {
|
|
959
961
|
if (i.options.length > 1)
|
|
960
962
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
961
|
-
i.stem.replace(
|
|
962
|
-
return
|
|
963
|
+
i.stem.replace(Ce, function(f, o, h, l, c, b) {
|
|
964
|
+
return h === "*" ? t.minimumFractionDigits = o.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
963
965
|
});
|
|
964
966
|
var s = i.options[0];
|
|
965
|
-
s === "w" ? t =
|
|
967
|
+
s === "w" ? t = p(p({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = p(p({}, t), Re(s)));
|
|
966
968
|
continue;
|
|
967
969
|
}
|
|
968
|
-
if (
|
|
969
|
-
t =
|
|
970
|
+
if (ct.test(i.stem)) {
|
|
971
|
+
t = p(p({}, t), Re(i.stem));
|
|
970
972
|
continue;
|
|
971
973
|
}
|
|
972
|
-
var
|
|
973
|
-
|
|
974
|
-
var
|
|
975
|
-
|
|
974
|
+
var u = dt(i.stem);
|
|
975
|
+
u && (t = p(p({}, t), u));
|
|
976
|
+
var a = vr(i.stem);
|
|
977
|
+
a && (t = p(p({}, t), a));
|
|
976
978
|
}
|
|
977
979
|
return t;
|
|
978
980
|
}
|
|
@@ -2397,11 +2399,11 @@ function Tr(e, t) {
|
|
|
2397
2399
|
if (i === "j") {
|
|
2398
2400
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2399
2401
|
s++, n++;
|
|
2400
|
-
var
|
|
2401
|
-
for ((
|
|
2402
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), f = "a", o = Sr(t);
|
|
2403
|
+
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2402
2404
|
r += f;
|
|
2403
|
-
for (;
|
|
2404
|
-
r =
|
|
2405
|
+
for (; u-- > 0; )
|
|
2406
|
+
r = o + r;
|
|
2405
2407
|
} else
|
|
2406
2408
|
i === "J" ? r += "H" : r += i;
|
|
2407
2409
|
}
|
|
@@ -2429,20 +2431,20 @@ function Sr(e) {
|
|
|
2429
2431
|
var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
|
|
2430
2432
|
return i[0];
|
|
2431
2433
|
}
|
|
2432
|
-
var le, Br = new RegExp("^".concat(
|
|
2433
|
-
function
|
|
2434
|
+
var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
|
|
2435
|
+
function d(e, t) {
|
|
2434
2436
|
return { start: e, end: t };
|
|
2435
2437
|
}
|
|
2436
2438
|
var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
|
|
2437
2439
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2438
2440
|
}, ge = !0;
|
|
2439
2441
|
try {
|
|
2440
|
-
var Cr =
|
|
2442
|
+
var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2441
2443
|
ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
|
|
2442
2444
|
} catch {
|
|
2443
2445
|
ge = !1;
|
|
2444
2446
|
}
|
|
2445
|
-
var
|
|
2447
|
+
var Ge = Pr ? (
|
|
2446
2448
|
// Native
|
|
2447
2449
|
function(t, r, n) {
|
|
2448
2450
|
return t.startsWith(r, n);
|
|
@@ -2457,26 +2459,26 @@ var De = Pr ? (
|
|
|
2457
2459
|
function() {
|
|
2458
2460
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2459
2461
|
t[r] = arguments[r];
|
|
2460
|
-
for (var n = "", i = t.length, s = 0,
|
|
2461
|
-
if (
|
|
2462
|
-
throw RangeError(
|
|
2463
|
-
n +=
|
|
2462
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2463
|
+
if (u = t[s++], u > 1114111)
|
|
2464
|
+
throw RangeError(u + " is not a valid code point");
|
|
2465
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2464
2466
|
}
|
|
2465
2467
|
return n;
|
|
2466
2468
|
}
|
|
2467
|
-
),
|
|
2469
|
+
), De = (
|
|
2468
2470
|
// native
|
|
2469
2471
|
Or ? Object.fromEntries : (
|
|
2470
2472
|
// Ponyfill
|
|
2471
2473
|
function(t) {
|
|
2472
2474
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2473
|
-
var s = i[n],
|
|
2474
|
-
r[
|
|
2475
|
+
var s = i[n], u = s[0], a = s[1];
|
|
2476
|
+
r[u] = a;
|
|
2475
2477
|
}
|
|
2476
2478
|
return r;
|
|
2477
2479
|
}
|
|
2478
2480
|
)
|
|
2479
|
-
),
|
|
2481
|
+
), pt = Ir ? (
|
|
2480
2482
|
// Native
|
|
2481
2483
|
function(t, r) {
|
|
2482
2484
|
return t.codePointAt(r);
|
|
@@ -2511,23 +2513,23 @@ var De = Pr ? (
|
|
|
2511
2513
|
return t.replace(Ar, "");
|
|
2512
2514
|
}
|
|
2513
2515
|
);
|
|
2514
|
-
function
|
|
2516
|
+
function bt(e, t) {
|
|
2515
2517
|
return new RegExp(e, t);
|
|
2516
2518
|
}
|
|
2517
2519
|
var ye;
|
|
2518
2520
|
if (ge) {
|
|
2519
|
-
var
|
|
2521
|
+
var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2520
2522
|
ye = function(t, r) {
|
|
2521
2523
|
var n;
|
|
2522
|
-
|
|
2523
|
-
var i =
|
|
2524
|
+
Fe.lastIndex = r;
|
|
2525
|
+
var i = Fe.exec(t);
|
|
2524
2526
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2525
2527
|
};
|
|
2526
2528
|
} else
|
|
2527
2529
|
ye = function(t, r) {
|
|
2528
2530
|
for (var n = []; ; ) {
|
|
2529
|
-
var i =
|
|
2530
|
-
if (i === void 0 ||
|
|
2531
|
+
var i = pt(t, r);
|
|
2532
|
+
if (i === void 0 || gt(i) || jr(i))
|
|
2531
2533
|
break;
|
|
2532
2534
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2533
2535
|
}
|
|
@@ -2547,33 +2549,33 @@ var Gr = (
|
|
|
2547
2549
|
for (var i = []; !this.isEOF(); ) {
|
|
2548
2550
|
var s = this.char();
|
|
2549
2551
|
if (s === 123) {
|
|
2550
|
-
var
|
|
2551
|
-
if (
|
|
2552
|
-
return
|
|
2553
|
-
i.push(
|
|
2552
|
+
var u = this.parseArgument(t, n);
|
|
2553
|
+
if (u.err)
|
|
2554
|
+
return u;
|
|
2555
|
+
i.push(u.val);
|
|
2554
2556
|
} else {
|
|
2555
2557
|
if (s === 125 && t > 0)
|
|
2556
2558
|
break;
|
|
2557
2559
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2558
|
-
var
|
|
2560
|
+
var a = this.clonePosition();
|
|
2559
2561
|
this.bump(), i.push({
|
|
2560
2562
|
type: E.pound,
|
|
2561
|
-
location:
|
|
2563
|
+
location: d(a, this.clonePosition())
|
|
2562
2564
|
});
|
|
2563
2565
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2564
2566
|
if (n)
|
|
2565
2567
|
break;
|
|
2566
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2568
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
2567
2569
|
} else if (s === 60 && !this.ignoreTag && xe(this.peek() || 0)) {
|
|
2568
|
-
var
|
|
2569
|
-
if (
|
|
2570
|
-
return
|
|
2571
|
-
i.push(
|
|
2570
|
+
var u = this.parseTag(t, r);
|
|
2571
|
+
if (u.err)
|
|
2572
|
+
return u;
|
|
2573
|
+
i.push(u.val);
|
|
2572
2574
|
} else {
|
|
2573
|
-
var
|
|
2574
|
-
if (
|
|
2575
|
-
return
|
|
2576
|
-
i.push(
|
|
2575
|
+
var u = this.parseLiteral(t, r);
|
|
2576
|
+
if (u.err)
|
|
2577
|
+
return u;
|
|
2578
|
+
i.push(u.val);
|
|
2577
2579
|
}
|
|
2578
2580
|
}
|
|
2579
2581
|
}
|
|
@@ -2587,7 +2589,7 @@ var Gr = (
|
|
|
2587
2589
|
val: {
|
|
2588
2590
|
type: E.literal,
|
|
2589
2591
|
value: "<".concat(i, "/>"),
|
|
2590
|
-
location:
|
|
2592
|
+
location: d(n, this.clonePosition())
|
|
2591
2593
|
},
|
|
2592
2594
|
err: null
|
|
2593
2595
|
};
|
|
@@ -2595,24 +2597,24 @@ var Gr = (
|
|
|
2595
2597
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2596
2598
|
if (s.err)
|
|
2597
2599
|
return s;
|
|
2598
|
-
var
|
|
2600
|
+
var u = s.val, a = this.clonePosition();
|
|
2599
2601
|
if (this.bumpIf("</")) {
|
|
2600
2602
|
if (this.isEOF() || !xe(this.char()))
|
|
2601
|
-
return this.error(m.INVALID_TAG,
|
|
2602
|
-
var f = this.clonePosition(),
|
|
2603
|
-
return i !==
|
|
2603
|
+
return this.error(m.INVALID_TAG, d(a, this.clonePosition()));
|
|
2604
|
+
var f = this.clonePosition(), o = this.parseTagName();
|
|
2605
|
+
return i !== o ? this.error(m.UNMATCHED_CLOSING_TAG, d(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2604
2606
|
val: {
|
|
2605
2607
|
type: E.tag,
|
|
2606
2608
|
value: i,
|
|
2607
|
-
children:
|
|
2608
|
-
location:
|
|
2609
|
+
children: u,
|
|
2610
|
+
location: d(n, this.clonePosition())
|
|
2609
2611
|
},
|
|
2610
2612
|
err: null
|
|
2611
|
-
} : this.error(m.INVALID_TAG,
|
|
2613
|
+
} : this.error(m.INVALID_TAG, d(a, this.clonePosition())));
|
|
2612
2614
|
} else
|
|
2613
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2615
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
2614
2616
|
} else
|
|
2615
|
-
return this.error(m.INVALID_TAG,
|
|
2617
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
2616
2618
|
}, e.prototype.parseTagName = function() {
|
|
2617
2619
|
var t = this.offset();
|
|
2618
2620
|
for (this.bump(); !this.isEOF() && Fr(this.char()); )
|
|
@@ -2625,19 +2627,19 @@ var Gr = (
|
|
|
2625
2627
|
i += s;
|
|
2626
2628
|
continue;
|
|
2627
2629
|
}
|
|
2628
|
-
var
|
|
2629
|
-
if (
|
|
2630
|
-
i +=
|
|
2630
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2631
|
+
if (u) {
|
|
2632
|
+
i += u;
|
|
2631
2633
|
continue;
|
|
2632
2634
|
}
|
|
2633
|
-
var
|
|
2634
|
-
if (
|
|
2635
|
-
i +=
|
|
2635
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2636
|
+
if (a) {
|
|
2637
|
+
i += a;
|
|
2636
2638
|
continue;
|
|
2637
2639
|
}
|
|
2638
2640
|
break;
|
|
2639
2641
|
}
|
|
2640
|
-
var f =
|
|
2642
|
+
var f = d(n, this.clonePosition());
|
|
2641
2643
|
return {
|
|
2642
2644
|
val: { type: E.literal, value: i, location: f },
|
|
2643
2645
|
err: null
|
|
@@ -2687,14 +2689,14 @@ var Gr = (
|
|
|
2687
2689
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2688
2690
|
var n = this.clonePosition();
|
|
2689
2691
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2690
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2692
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2691
2693
|
if (this.char() === 125)
|
|
2692
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2694
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
2693
2695
|
var i = this.parseIdentifierIfPossible().value;
|
|
2694
2696
|
if (!i)
|
|
2695
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2697
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2696
2698
|
if (this.bumpSpace(), this.isEOF())
|
|
2697
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2699
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2698
2700
|
switch (this.char()) {
|
|
2699
2701
|
case 125:
|
|
2700
2702
|
return this.bump(), {
|
|
@@ -2702,49 +2704,49 @@ var Gr = (
|
|
|
2702
2704
|
type: E.argument,
|
|
2703
2705
|
// value does not include the opening and closing braces.
|
|
2704
2706
|
value: i,
|
|
2705
|
-
location:
|
|
2707
|
+
location: d(n, this.clonePosition())
|
|
2706
2708
|
},
|
|
2707
2709
|
err: null
|
|
2708
2710
|
};
|
|
2709
2711
|
case 44:
|
|
2710
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2712
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2711
2713
|
default:
|
|
2712
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2714
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2713
2715
|
}
|
|
2714
2716
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2715
2717
|
var t = this.clonePosition(), r = this.offset(), n = ye(this.message, r), i = r + n.length;
|
|
2716
2718
|
this.bumpTo(i);
|
|
2717
|
-
var s = this.clonePosition(),
|
|
2718
|
-
return { value: n, location:
|
|
2719
|
+
var s = this.clonePosition(), u = d(t, s);
|
|
2720
|
+
return { value: n, location: u };
|
|
2719
2721
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2720
|
-
var s,
|
|
2721
|
-
switch (
|
|
2722
|
+
var s, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2723
|
+
switch (a) {
|
|
2722
2724
|
case "":
|
|
2723
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2725
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(u, f));
|
|
2724
2726
|
case "number":
|
|
2725
2727
|
case "date":
|
|
2726
2728
|
case "time": {
|
|
2727
2729
|
this.bumpSpace();
|
|
2728
|
-
var
|
|
2730
|
+
var o = null;
|
|
2729
2731
|
if (this.bumpIf(",")) {
|
|
2730
2732
|
this.bumpSpace();
|
|
2731
|
-
var
|
|
2733
|
+
var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
|
|
2732
2734
|
if (l.err)
|
|
2733
2735
|
return l;
|
|
2734
2736
|
var c = Ur(l.val);
|
|
2735
2737
|
if (c.length === 0)
|
|
2736
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2737
|
-
var b =
|
|
2738
|
-
|
|
2738
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
2739
|
+
var b = d(h, this.clonePosition());
|
|
2740
|
+
o = { style: c, styleLocation: b };
|
|
2739
2741
|
}
|
|
2740
2742
|
var g = this.tryParseArgumentClose(i);
|
|
2741
2743
|
if (g.err)
|
|
2742
2744
|
return g;
|
|
2743
|
-
var x =
|
|
2744
|
-
if (
|
|
2745
|
-
var H = Rr(
|
|
2746
|
-
if (
|
|
2747
|
-
var l = this.parseNumberSkeletonFromString(H,
|
|
2745
|
+
var x = d(i, this.clonePosition());
|
|
2746
|
+
if (o && Ge(o?.style, "::", 0)) {
|
|
2747
|
+
var H = Rr(o.style.slice(2));
|
|
2748
|
+
if (a === "number") {
|
|
2749
|
+
var l = this.parseNumberSkeletonFromString(H, o.styleLocation);
|
|
2748
2750
|
return l.err ? l : {
|
|
2749
2751
|
val: { type: E.number, value: n, location: x, style: l.val },
|
|
2750
2752
|
err: null
|
|
@@ -2757,9 +2759,9 @@ var Gr = (
|
|
|
2757
2759
|
var c = {
|
|
2758
2760
|
type: L.dateTime,
|
|
2759
2761
|
pattern: D,
|
|
2760
|
-
location:
|
|
2762
|
+
location: o.styleLocation,
|
|
2761
2763
|
parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
|
|
2762
|
-
}, A =
|
|
2764
|
+
}, A = a === "date" ? E.date : E.time;
|
|
2763
2765
|
return {
|
|
2764
2766
|
val: { type: A, value: n, location: x, style: c },
|
|
2765
2767
|
err: null
|
|
@@ -2768,10 +2770,10 @@ var Gr = (
|
|
|
2768
2770
|
}
|
|
2769
2771
|
return {
|
|
2770
2772
|
val: {
|
|
2771
|
-
type:
|
|
2773
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2772
2774
|
value: n,
|
|
2773
2775
|
location: x,
|
|
2774
|
-
style: (s =
|
|
2776
|
+
style: (s = o?.style) !== null && s !== void 0 ? s : null
|
|
2775
2777
|
},
|
|
2776
2778
|
err: null
|
|
2777
2779
|
};
|
|
@@ -2779,52 +2781,52 @@ var Gr = (
|
|
|
2779
2781
|
case "plural":
|
|
2780
2782
|
case "selectordinal":
|
|
2781
2783
|
case "select": {
|
|
2782
|
-
var
|
|
2784
|
+
var v = this.clonePosition();
|
|
2783
2785
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2784
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2786
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, p({}, v)));
|
|
2785
2787
|
this.bumpSpace();
|
|
2786
2788
|
var F = this.parseIdentifierIfPossible(), S = 0;
|
|
2787
|
-
if (
|
|
2789
|
+
if (a !== "select" && F.value === "offset") {
|
|
2788
2790
|
if (!this.bumpIf(":"))
|
|
2789
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2791
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
2790
2792
|
this.bumpSpace();
|
|
2791
2793
|
var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2792
2794
|
if (l.err)
|
|
2793
2795
|
return l;
|
|
2794
2796
|
this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
|
|
2795
2797
|
}
|
|
2796
|
-
var Z = this.tryParsePluralOrSelectOptions(t,
|
|
2798
|
+
var Z = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
|
2797
2799
|
if (Z.err)
|
|
2798
2800
|
return Z;
|
|
2799
2801
|
var g = this.tryParseArgumentClose(i);
|
|
2800
2802
|
if (g.err)
|
|
2801
2803
|
return g;
|
|
2802
|
-
var
|
|
2803
|
-
return
|
|
2804
|
+
var Oe = d(i, this.clonePosition());
|
|
2805
|
+
return a === "select" ? {
|
|
2804
2806
|
val: {
|
|
2805
2807
|
type: E.select,
|
|
2806
2808
|
value: n,
|
|
2807
|
-
options:
|
|
2808
|
-
location:
|
|
2809
|
+
options: De(Z.val),
|
|
2810
|
+
location: Oe
|
|
2809
2811
|
},
|
|
2810
2812
|
err: null
|
|
2811
2813
|
} : {
|
|
2812
2814
|
val: {
|
|
2813
2815
|
type: E.plural,
|
|
2814
2816
|
value: n,
|
|
2815
|
-
options:
|
|
2817
|
+
options: De(Z.val),
|
|
2816
2818
|
offset: S,
|
|
2817
|
-
pluralType:
|
|
2818
|
-
location:
|
|
2819
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2820
|
+
location: Oe
|
|
2819
2821
|
},
|
|
2820
2822
|
err: null
|
|
2821
2823
|
};
|
|
2822
2824
|
}
|
|
2823
2825
|
default:
|
|
2824
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2826
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(u, f));
|
|
2825
2827
|
}
|
|
2826
2828
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2827
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2829
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2828
2830
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2829
2831
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2830
2832
|
var n = this.char();
|
|
@@ -2833,7 +2835,7 @@ var Gr = (
|
|
|
2833
2835
|
this.bump();
|
|
2834
2836
|
var i = this.clonePosition();
|
|
2835
2837
|
if (!this.bumpUntil("'"))
|
|
2836
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2838
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
2837
2839
|
this.bump();
|
|
2838
2840
|
break;
|
|
2839
2841
|
}
|
|
@@ -2877,50 +2879,50 @@ var Gr = (
|
|
|
2877
2879
|
err: null
|
|
2878
2880
|
};
|
|
2879
2881
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2880
|
-
for (var s,
|
|
2881
|
-
if (
|
|
2882
|
+
for (var s, u = !1, a = [], f = /* @__PURE__ */ new Set(), o = i.value, h = i.location; ; ) {
|
|
2883
|
+
if (o.length === 0) {
|
|
2882
2884
|
var l = this.clonePosition();
|
|
2883
2885
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2884
2886
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2885
2887
|
if (c.err)
|
|
2886
2888
|
return c;
|
|
2887
|
-
|
|
2889
|
+
h = d(l, this.clonePosition()), o = this.message.slice(l.offset, this.offset());
|
|
2888
2890
|
} else
|
|
2889
2891
|
break;
|
|
2890
2892
|
}
|
|
2891
|
-
if (f.has(
|
|
2892
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2893
|
-
|
|
2893
|
+
if (f.has(o))
|
|
2894
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2895
|
+
o === "other" && (u = !0), this.bumpSpace();
|
|
2894
2896
|
var b = this.clonePosition();
|
|
2895
2897
|
if (!this.bumpIf("{"))
|
|
2896
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2898
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
2897
2899
|
var g = this.parseMessage(t + 1, r, n);
|
|
2898
2900
|
if (g.err)
|
|
2899
2901
|
return g;
|
|
2900
2902
|
var x = this.tryParseArgumentClose(b);
|
|
2901
2903
|
if (x.err)
|
|
2902
2904
|
return x;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
+
a.push([
|
|
2906
|
+
o,
|
|
2905
2907
|
{
|
|
2906
2908
|
value: g.val,
|
|
2907
|
-
location:
|
|
2909
|
+
location: d(b, this.clonePosition())
|
|
2908
2910
|
}
|
|
2909
|
-
]), f.add(
|
|
2911
|
+
]), f.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
2910
2912
|
}
|
|
2911
|
-
return
|
|
2913
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2912
2914
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2913
2915
|
var n = 1, i = this.clonePosition();
|
|
2914
2916
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2915
|
-
for (var s = !1,
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
s = !0,
|
|
2917
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
2918
|
+
var a = this.char();
|
|
2919
|
+
if (a >= 48 && a <= 57)
|
|
2920
|
+
s = !0, u = u * 10 + (a - 48), this.bump();
|
|
2919
2921
|
else
|
|
2920
2922
|
break;
|
|
2921
2923
|
}
|
|
2922
|
-
var f =
|
|
2923
|
-
return s ? (
|
|
2924
|
+
var f = d(i, this.clonePosition());
|
|
2925
|
+
return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
|
|
2924
2926
|
}, e.prototype.offset = function() {
|
|
2925
2927
|
return this.position.offset;
|
|
2926
2928
|
}, e.prototype.isEOF = function() {
|
|
@@ -2935,7 +2937,7 @@ var Gr = (
|
|
|
2935
2937
|
var t = this.position.offset;
|
|
2936
2938
|
if (t >= this.message.length)
|
|
2937
2939
|
throw Error("out of bound");
|
|
2938
|
-
var r =
|
|
2940
|
+
var r = pt(this.message, t);
|
|
2939
2941
|
if (r === void 0)
|
|
2940
2942
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2941
2943
|
return r;
|
|
@@ -2954,7 +2956,7 @@ var Gr = (
|
|
|
2954
2956
|
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);
|
|
2955
2957
|
}
|
|
2956
2958
|
}, e.prototype.bumpIf = function(t) {
|
|
2957
|
-
if (
|
|
2959
|
+
if (Ge(this.message, t, this.offset())) {
|
|
2958
2960
|
for (var r = 0; r < t.length; r++)
|
|
2959
2961
|
this.bump();
|
|
2960
2962
|
return !0;
|
|
@@ -2976,7 +2978,7 @@ var Gr = (
|
|
|
2976
2978
|
break;
|
|
2977
2979
|
}
|
|
2978
2980
|
}, e.prototype.bumpSpace = function() {
|
|
2979
|
-
for (; !this.isEOF() &&
|
|
2981
|
+
for (; !this.isEOF() && gt(this.char()); )
|
|
2980
2982
|
this.bump();
|
|
2981
2983
|
}, e.prototype.peek = function() {
|
|
2982
2984
|
if (this.isEOF())
|
|
@@ -2995,29 +2997,29 @@ function Dr(e) {
|
|
|
2995
2997
|
function Fr(e) {
|
|
2996
2998
|
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;
|
|
2997
2999
|
}
|
|
2998
|
-
function
|
|
3000
|
+
function gt(e) {
|
|
2999
3001
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3000
3002
|
}
|
|
3001
3003
|
function jr(e) {
|
|
3002
3004
|
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;
|
|
3003
3005
|
}
|
|
3004
|
-
function
|
|
3006
|
+
function _e(e) {
|
|
3005
3007
|
e.forEach(function(t) {
|
|
3006
|
-
if (delete t.location,
|
|
3008
|
+
if (delete t.location, ot(t) || ut(t))
|
|
3007
3009
|
for (var r in t.options)
|
|
3008
|
-
delete t.options[r].location,
|
|
3010
|
+
delete t.options[r].location, _e(t.options[r].value);
|
|
3009
3011
|
else
|
|
3010
|
-
|
|
3012
|
+
it(t) && lt(t.style) || (st(t) || at(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
|
|
3011
3013
|
});
|
|
3012
3014
|
}
|
|
3013
3015
|
function Vr(e, t) {
|
|
3014
|
-
t === void 0 && (t = {}), t =
|
|
3016
|
+
t === void 0 && (t = {}), t = p({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3015
3017
|
var r = new Gr(e, t).parse();
|
|
3016
3018
|
if (r.err) {
|
|
3017
3019
|
var n = SyntaxError(m[r.err.kind]);
|
|
3018
3020
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3019
3021
|
}
|
|
3020
|
-
return t?.captureLocation ||
|
|
3022
|
+
return t?.captureLocation || _e(r.val), r.val;
|
|
3021
3023
|
}
|
|
3022
3024
|
var M;
|
|
3023
3025
|
(function(e) {
|
|
@@ -3035,7 +3037,7 @@ var ne = (
|
|
|
3035
3037
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3036
3038
|
}, t;
|
|
3037
3039
|
}(Error)
|
|
3038
|
-
),
|
|
3040
|
+
), je = (
|
|
3039
3041
|
/** @class */
|
|
3040
3042
|
function(e) {
|
|
3041
3043
|
re(t, e);
|
|
@@ -3066,122 +3068,122 @@ var ne = (
|
|
|
3066
3068
|
(function(e) {
|
|
3067
3069
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3068
3070
|
})(y || (y = {}));
|
|
3069
|
-
function
|
|
3071
|
+
function Wr(e) {
|
|
3070
3072
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3071
3073
|
var n = t[t.length - 1];
|
|
3072
3074
|
return !n || n.type !== y.literal || r.type !== y.literal ? t.push(r) : n.value += r.value, t;
|
|
3073
3075
|
}, []);
|
|
3074
3076
|
}
|
|
3075
|
-
function
|
|
3077
|
+
function zr(e) {
|
|
3076
3078
|
return typeof e == "function";
|
|
3077
3079
|
}
|
|
3078
|
-
function q(e, t, r, n, i, s,
|
|
3079
|
-
if (e.length === 1 &&
|
|
3080
|
+
function q(e, t, r, n, i, s, u) {
|
|
3081
|
+
if (e.length === 1 && Me(e[0]))
|
|
3080
3082
|
return [
|
|
3081
3083
|
{
|
|
3082
3084
|
type: y.literal,
|
|
3083
3085
|
value: e[0].value
|
|
3084
3086
|
}
|
|
3085
3087
|
];
|
|
3086
|
-
for (var
|
|
3087
|
-
var
|
|
3088
|
-
if (
|
|
3089
|
-
|
|
3088
|
+
for (var a = [], f = 0, o = e; f < o.length; f++) {
|
|
3089
|
+
var h = o[f];
|
|
3090
|
+
if (Me(h)) {
|
|
3091
|
+
a.push({
|
|
3090
3092
|
type: y.literal,
|
|
3091
|
-
value:
|
|
3093
|
+
value: h.value
|
|
3092
3094
|
});
|
|
3093
3095
|
continue;
|
|
3094
3096
|
}
|
|
3095
|
-
if (
|
|
3096
|
-
typeof s == "number" &&
|
|
3097
|
+
if (pr(h)) {
|
|
3098
|
+
typeof s == "number" && a.push({
|
|
3097
3099
|
type: y.literal,
|
|
3098
3100
|
value: r.getNumberFormat(t).format(s)
|
|
3099
3101
|
});
|
|
3100
3102
|
continue;
|
|
3101
3103
|
}
|
|
3102
|
-
var l =
|
|
3104
|
+
var l = h.value;
|
|
3103
3105
|
if (!(i && l in i))
|
|
3104
|
-
throw new Xr(l,
|
|
3106
|
+
throw new Xr(l, u);
|
|
3105
3107
|
var c = i[l];
|
|
3106
|
-
if (
|
|
3107
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3108
|
+
if (dr(h)) {
|
|
3109
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3108
3110
|
type: typeof c == "string" ? y.literal : y.object,
|
|
3109
3111
|
value: c
|
|
3110
3112
|
});
|
|
3111
3113
|
continue;
|
|
3112
3114
|
}
|
|
3113
|
-
if (
|
|
3114
|
-
var b = typeof
|
|
3115
|
-
|
|
3115
|
+
if (st(h)) {
|
|
3116
|
+
var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
|
|
3117
|
+
a.push({
|
|
3116
3118
|
type: y.literal,
|
|
3117
3119
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3118
3120
|
});
|
|
3119
3121
|
continue;
|
|
3120
3122
|
}
|
|
3121
|
-
if (at(
|
|
3122
|
-
var b = typeof
|
|
3123
|
-
|
|
3123
|
+
if (at(h)) {
|
|
3124
|
+
var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3125
|
+
a.push({
|
|
3124
3126
|
type: y.literal,
|
|
3125
3127
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3126
3128
|
});
|
|
3127
3129
|
continue;
|
|
3128
3130
|
}
|
|
3129
|
-
if (
|
|
3130
|
-
var b = typeof
|
|
3131
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3131
|
+
if (it(h)) {
|
|
3132
|
+
var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3133
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3132
3134
|
type: y.literal,
|
|
3133
3135
|
value: r.getNumberFormat(t, b).format(c)
|
|
3134
3136
|
});
|
|
3135
3137
|
continue;
|
|
3136
3138
|
}
|
|
3137
|
-
if (
|
|
3138
|
-
var g =
|
|
3139
|
-
if (!
|
|
3140
|
-
throw new kr(x, "function",
|
|
3139
|
+
if (ht(h)) {
|
|
3140
|
+
var g = h.children, x = h.value, H = i[x];
|
|
3141
|
+
if (!zr(H))
|
|
3142
|
+
throw new kr(x, "function", u);
|
|
3141
3143
|
var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
|
|
3142
3144
|
return S.value;
|
|
3143
3145
|
}));
|
|
3144
|
-
Array.isArray(A) || (A = [A]),
|
|
3146
|
+
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(S) {
|
|
3145
3147
|
return {
|
|
3146
3148
|
type: typeof S == "string" ? y.literal : y.object,
|
|
3147
3149
|
value: S
|
|
3148
3150
|
};
|
|
3149
3151
|
}));
|
|
3150
3152
|
}
|
|
3151
|
-
if (
|
|
3152
|
-
var
|
|
3153
|
-
if (!
|
|
3154
|
-
throw new
|
|
3155
|
-
|
|
3153
|
+
if (ot(h)) {
|
|
3154
|
+
var v = h.options[c] || h.options.other;
|
|
3155
|
+
if (!v)
|
|
3156
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3157
|
+
a.push.apply(a, q(v.value, t, r, n, i));
|
|
3156
3158
|
continue;
|
|
3157
3159
|
}
|
|
3158
|
-
if (ut(
|
|
3159
|
-
var
|
|
3160
|
-
if (!
|
|
3160
|
+
if (ut(h)) {
|
|
3161
|
+
var v = h.options["=".concat(c)];
|
|
3162
|
+
if (!v) {
|
|
3161
3163
|
if (!Intl.PluralRules)
|
|
3162
3164
|
throw new ne(`Intl.PluralRules is not available in this environment.
|
|
3163
3165
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3164
|
-
`, M.MISSING_INTL_API,
|
|
3165
|
-
var F = r.getPluralRules(t, { type:
|
|
3166
|
-
|
|
3166
|
+
`, M.MISSING_INTL_API, u);
|
|
3167
|
+
var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3168
|
+
v = h.options[F] || h.options.other;
|
|
3167
3169
|
}
|
|
3168
|
-
if (!
|
|
3169
|
-
throw new
|
|
3170
|
-
|
|
3170
|
+
if (!v)
|
|
3171
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3172
|
+
a.push.apply(a, q(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3171
3173
|
continue;
|
|
3172
3174
|
}
|
|
3173
3175
|
}
|
|
3174
|
-
return
|
|
3176
|
+
return Wr(a);
|
|
3175
3177
|
}
|
|
3176
3178
|
function Zr(e, t) {
|
|
3177
|
-
return t ?
|
|
3178
|
-
return r[n] =
|
|
3179
|
+
return t ? p(p(p({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3180
|
+
return r[n] = p(p({}, e[n]), t[n] || {}), r;
|
|
3179
3181
|
}, {})) : e;
|
|
3180
3182
|
}
|
|
3181
3183
|
function Qr(e, t) {
|
|
3182
3184
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3183
3185
|
return r[n] = Zr(e[n], t[n]), r;
|
|
3184
|
-
},
|
|
3186
|
+
}, p({}, e)) : e;
|
|
3185
3187
|
}
|
|
3186
3188
|
function fe(e) {
|
|
3187
3189
|
return {
|
|
@@ -3203,29 +3205,29 @@ function Jr(e) {
|
|
|
3203
3205
|
dateTime: {},
|
|
3204
3206
|
pluralRules: {}
|
|
3205
3207
|
}), {
|
|
3206
|
-
getNumberFormat:
|
|
3208
|
+
getNumberFormat: ue(function() {
|
|
3207
3209
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3208
3210
|
r[n] = arguments[n];
|
|
3209
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3211
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, oe([void 0], r, !1)))();
|
|
3210
3212
|
}, {
|
|
3211
3213
|
cache: fe(e.number),
|
|
3212
|
-
strategy:
|
|
3214
|
+
strategy: he.variadic
|
|
3213
3215
|
}),
|
|
3214
|
-
getDateTimeFormat:
|
|
3216
|
+
getDateTimeFormat: ue(function() {
|
|
3215
3217
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3216
3218
|
r[n] = arguments[n];
|
|
3217
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3219
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, oe([void 0], r, !1)))();
|
|
3218
3220
|
}, {
|
|
3219
3221
|
cache: fe(e.dateTime),
|
|
3220
|
-
strategy:
|
|
3222
|
+
strategy: he.variadic
|
|
3221
3223
|
}),
|
|
3222
|
-
getPluralRules:
|
|
3224
|
+
getPluralRules: ue(function() {
|
|
3223
3225
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3224
3226
|
r[n] = arguments[n];
|
|
3225
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3227
|
+
return new ((t = Intl.PluralRules).bind.apply(t, oe([void 0], r, !1)))();
|
|
3226
3228
|
}, {
|
|
3227
3229
|
cache: fe(e.pluralRules),
|
|
3228
|
-
strategy:
|
|
3230
|
+
strategy: he.variadic
|
|
3229
3231
|
})
|
|
3230
3232
|
};
|
|
3231
3233
|
}
|
|
@@ -3240,13 +3242,13 @@ var qr = (
|
|
|
3240
3242
|
dateTime: {},
|
|
3241
3243
|
pluralRules: {}
|
|
3242
3244
|
}, this.format = function(f) {
|
|
3243
|
-
var
|
|
3244
|
-
if (
|
|
3245
|
-
return
|
|
3246
|
-
var
|
|
3245
|
+
var o = s.formatToParts(f);
|
|
3246
|
+
if (o.length === 1)
|
|
3247
|
+
return o[0].value;
|
|
3248
|
+
var h = o.reduce(function(l, c) {
|
|
3247
3249
|
return !l.length || c.type !== y.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
|
|
3248
3250
|
}, []);
|
|
3249
|
-
return
|
|
3251
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3250
3252
|
}, this.formatToParts = function(f) {
|
|
3251
3253
|
return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3252
3254
|
}, this.resolvedOptions = function() {
|
|
@@ -3259,10 +3261,10 @@ var qr = (
|
|
|
3259
3261
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3260
3262
|
if (this.message = t, !e.__parse)
|
|
3261
3263
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3262
|
-
var
|
|
3263
|
-
|
|
3264
|
-
var
|
|
3265
|
-
this.ast = e.__parse(t,
|
|
3264
|
+
var u = i || {};
|
|
3265
|
+
u.formatters;
|
|
3266
|
+
var a = ar(u, ["formatters"]);
|
|
3267
|
+
this.ast = e.__parse(t, p(p({}, a), { locale: this.resolvedLocale }));
|
|
3266
3268
|
} else
|
|
3267
3269
|
this.ast = t;
|
|
3268
3270
|
if (!Array.isArray(this.ast))
|
|
@@ -3362,7 +3364,7 @@ function Yr(e, t) {
|
|
|
3362
3364
|
n = void 0;
|
|
3363
3365
|
return n;
|
|
3364
3366
|
}
|
|
3365
|
-
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r),
|
|
3367
|
+
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
|
|
3366
3368
|
if (t == null)
|
|
3367
3369
|
return;
|
|
3368
3370
|
if (t in T && e in T[t])
|
|
@@ -3374,16 +3376,16 @@ const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][
|
|
|
3374
3376
|
return Kr(e, t, s);
|
|
3375
3377
|
}
|
|
3376
3378
|
};
|
|
3377
|
-
let
|
|
3378
|
-
const
|
|
3379
|
+
let Pe;
|
|
3380
|
+
const z = te({});
|
|
3379
3381
|
function en(e) {
|
|
3380
|
-
return
|
|
3382
|
+
return Pe[e] || null;
|
|
3381
3383
|
}
|
|
3382
|
-
function
|
|
3383
|
-
return e in
|
|
3384
|
+
function yt(e) {
|
|
3385
|
+
return e in Pe;
|
|
3384
3386
|
}
|
|
3385
3387
|
function tn(e, t) {
|
|
3386
|
-
if (!
|
|
3388
|
+
if (!yt(e))
|
|
3387
3389
|
return null;
|
|
3388
3390
|
const r = en(e);
|
|
3389
3391
|
return Yr(r, t);
|
|
@@ -3394,18 +3396,18 @@ function rn(e) {
|
|
|
3394
3396
|
const t = ie(e);
|
|
3395
3397
|
for (let r = 0; r < t.length; r++) {
|
|
3396
3398
|
const n = t[r];
|
|
3397
|
-
if (
|
|
3399
|
+
if (yt(n))
|
|
3398
3400
|
return n;
|
|
3399
3401
|
}
|
|
3400
3402
|
}
|
|
3401
|
-
function
|
|
3402
|
-
delete T[e],
|
|
3403
|
+
function xt(e, ...t) {
|
|
3404
|
+
delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
|
|
3403
3405
|
}
|
|
3404
3406
|
R(
|
|
3405
|
-
[
|
|
3407
|
+
[z],
|
|
3406
3408
|
([e]) => Object.keys(e)
|
|
3407
3409
|
);
|
|
3408
|
-
|
|
3410
|
+
z.subscribe((e) => Pe = e);
|
|
3409
3411
|
const Y = {};
|
|
3410
3412
|
function nn(e, t) {
|
|
3411
3413
|
Y[e].delete(t), Y[e].size === 0 && delete Y[e];
|
|
@@ -3419,7 +3421,7 @@ function sn(e) {
|
|
|
3419
3421
|
return [t, r ? [...r] : []];
|
|
3420
3422
|
}).filter(([, t]) => t.length > 0);
|
|
3421
3423
|
}
|
|
3422
|
-
function
|
|
3424
|
+
function ve(e) {
|
|
3423
3425
|
return e == null ? !1 : ie(e).some(
|
|
3424
3426
|
(t) => {
|
|
3425
3427
|
var r;
|
|
@@ -3427,27 +3429,27 @@ function _e(e) {
|
|
|
3427
3429
|
}
|
|
3428
3430
|
);
|
|
3429
3431
|
}
|
|
3430
|
-
function
|
|
3432
|
+
function an(e, t) {
|
|
3431
3433
|
return Promise.all(
|
|
3432
3434
|
t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
|
|
3433
|
-
).then((n) =>
|
|
3435
|
+
).then((n) => xt(e, ...n));
|
|
3434
3436
|
}
|
|
3435
3437
|
const j = {};
|
|
3436
|
-
function
|
|
3437
|
-
if (!
|
|
3438
|
+
function vt(e) {
|
|
3439
|
+
if (!ve(e))
|
|
3438
3440
|
return e in j ? j[e] : Promise.resolve();
|
|
3439
3441
|
const t = sn(e);
|
|
3440
3442
|
return j[e] = Promise.all(
|
|
3441
3443
|
t.map(
|
|
3442
|
-
([r, n]) =>
|
|
3444
|
+
([r, n]) => an(r, n)
|
|
3443
3445
|
)
|
|
3444
3446
|
).then(() => {
|
|
3445
|
-
if (
|
|
3446
|
-
return
|
|
3447
|
+
if (ve(e))
|
|
3448
|
+
return vt(e);
|
|
3447
3449
|
delete j[e];
|
|
3448
3450
|
}), j[e];
|
|
3449
3451
|
}
|
|
3450
|
-
const
|
|
3452
|
+
const on = {
|
|
3451
3453
|
number: {
|
|
3452
3454
|
scientific: { notation: "scientific" },
|
|
3453
3455
|
engineering: { notation: "engineering" },
|
|
@@ -3476,34 +3478,34 @@ const an = {
|
|
|
3476
3478
|
timeZoneName: "short"
|
|
3477
3479
|
}
|
|
3478
3480
|
}
|
|
3479
|
-
},
|
|
3481
|
+
}, un = {
|
|
3480
3482
|
fallbackLocale: null,
|
|
3481
3483
|
loadingDelay: 200,
|
|
3482
|
-
formats:
|
|
3484
|
+
formats: on,
|
|
3483
3485
|
warnOnMissingMessages: !0,
|
|
3484
3486
|
handleMissingMessage: void 0,
|
|
3485
3487
|
ignoreTag: !0
|
|
3486
|
-
},
|
|
3488
|
+
}, hn = un;
|
|
3487
3489
|
function C() {
|
|
3488
|
-
return
|
|
3490
|
+
return hn;
|
|
3489
3491
|
}
|
|
3490
3492
|
const ce = te(!1);
|
|
3491
|
-
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors,
|
|
3492
|
-
for (var r in t
|
|
3493
|
-
mn.call(t, r) &&
|
|
3494
|
-
if (
|
|
3495
|
-
for (var r of
|
|
3496
|
-
|
|
3493
|
+
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pn = (e, t) => {
|
|
3494
|
+
for (var r in t)
|
|
3495
|
+
mn.call(t, r) && ke(e, r, t[r]);
|
|
3496
|
+
if (Ve)
|
|
3497
|
+
for (var r of Ve(t))
|
|
3498
|
+
dn.call(t, r) && ke(e, r, t[r]);
|
|
3497
3499
|
return e;
|
|
3498
3500
|
}, bn = (e, t) => fn(e, cn(t));
|
|
3499
3501
|
let He;
|
|
3500
3502
|
const K = te(null);
|
|
3501
|
-
function
|
|
3503
|
+
function Xe(e) {
|
|
3502
3504
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3503
3505
|
}
|
|
3504
3506
|
function ie(e, t = C().fallbackLocale) {
|
|
3505
|
-
const r =
|
|
3506
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3507
|
+
const r = Xe(e);
|
|
3508
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
|
|
3507
3509
|
}
|
|
3508
3510
|
function B() {
|
|
3509
3511
|
return He ?? void 0;
|
|
@@ -3512,20 +3514,20 @@ K.subscribe((e) => {
|
|
|
3512
3514
|
He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3513
3515
|
});
|
|
3514
3516
|
const gn = (e) => {
|
|
3515
|
-
if (e && rn(e) &&
|
|
3517
|
+
if (e && rn(e) && ve(e)) {
|
|
3516
3518
|
const { loadingDelay: t } = C();
|
|
3517
3519
|
let r;
|
|
3518
3520
|
return typeof window < "u" && B() != null && t ? r = window.setTimeout(
|
|
3519
3521
|
() => ce.set(!0),
|
|
3520
3522
|
t
|
|
3521
|
-
) : ce.set(!0),
|
|
3523
|
+
) : ce.set(!0), vt(e).then(() => {
|
|
3522
3524
|
K.set(e);
|
|
3523
3525
|
}).finally(() => {
|
|
3524
3526
|
clearTimeout(r), ce.set(!1);
|
|
3525
3527
|
});
|
|
3526
3528
|
}
|
|
3527
3529
|
return K.set(e);
|
|
3528
|
-
}, U = bn(
|
|
3530
|
+
}, U = bn(pn({}, K), {
|
|
3529
3531
|
set: gn
|
|
3530
3532
|
}), se = (e) => {
|
|
3531
3533
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3534,20 +3536,20 @@ const gn = (e) => {
|
|
|
3534
3536
|
return i in t ? t[i] : t[i] = e(n);
|
|
3535
3537
|
};
|
|
3536
3538
|
};
|
|
3537
|
-
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols,
|
|
3539
|
+
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
|
|
3538
3540
|
for (var r in t || (t = {}))
|
|
3539
|
-
|
|
3541
|
+
Ht.call(t, r) && We(e, r, t[r]);
|
|
3540
3542
|
if (ee)
|
|
3541
3543
|
for (var r of ee(t))
|
|
3542
|
-
|
|
3544
|
+
Tt.call(t, r) && We(e, r, t[r]);
|
|
3543
3545
|
return e;
|
|
3544
3546
|
}, G = (e, t) => {
|
|
3545
3547
|
var r = {};
|
|
3546
3548
|
for (var n in e)
|
|
3547
|
-
|
|
3549
|
+
Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3548
3550
|
if (e != null && ee)
|
|
3549
3551
|
for (var n of ee(e))
|
|
3550
|
-
t.indexOf(n) < 0 &&
|
|
3552
|
+
t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
|
|
3551
3553
|
return r;
|
|
3552
3554
|
};
|
|
3553
3555
|
const X = (e, t) => {
|
|
@@ -3569,7 +3571,7 @@ const X = (e, t) => {
|
|
|
3569
3571
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3570
3572
|
return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3571
3573
|
}
|
|
3572
|
-
),
|
|
3574
|
+
), _n = se(
|
|
3573
3575
|
(e) => {
|
|
3574
3576
|
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3575
3577
|
if (r == null)
|
|
@@ -3578,27 +3580,27 @@ const X = (e, t) => {
|
|
|
3578
3580
|
);
|
|
3579
3581
|
return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3580
3582
|
}
|
|
3581
|
-
),
|
|
3583
|
+
), vn = (e = {}) => {
|
|
3582
3584
|
var t = e, {
|
|
3583
3585
|
locale: r = B()
|
|
3584
3586
|
} = t, n = G(t, [
|
|
3585
3587
|
"locale"
|
|
3586
3588
|
]);
|
|
3587
|
-
return yn(
|
|
3589
|
+
return yn(Ne({ locale: r }, n));
|
|
3588
3590
|
}, Hn = (e = {}) => {
|
|
3589
3591
|
var t = e, {
|
|
3590
3592
|
locale: r = B()
|
|
3591
3593
|
} = t, n = G(t, [
|
|
3592
3594
|
"locale"
|
|
3593
3595
|
]);
|
|
3594
|
-
return xn(
|
|
3596
|
+
return xn(Ne({ locale: r }, n));
|
|
3595
3597
|
}, Tn = (e = {}) => {
|
|
3596
3598
|
var t = e, {
|
|
3597
3599
|
locale: r = B()
|
|
3598
3600
|
} = t, n = G(t, [
|
|
3599
3601
|
"locale"
|
|
3600
3602
|
]);
|
|
3601
|
-
return
|
|
3603
|
+
return _n(Ne({ locale: r }, n));
|
|
3602
3604
|
}, Sn = se(
|
|
3603
3605
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3604
3606
|
(e, t = B()) => new qr(e, t, C().formats, {
|
|
@@ -3606,29 +3608,29 @@ const X = (e, t) => {
|
|
|
3606
3608
|
})
|
|
3607
3609
|
), Bn = (e, t = {}) => {
|
|
3608
3610
|
var r, n, i, s;
|
|
3609
|
-
let
|
|
3610
|
-
typeof e == "object" && (
|
|
3611
|
+
let u = t;
|
|
3612
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3611
3613
|
const {
|
|
3612
|
-
values:
|
|
3614
|
+
values: a,
|
|
3613
3615
|
locale: f = B(),
|
|
3614
|
-
default:
|
|
3615
|
-
} =
|
|
3616
|
+
default: o
|
|
3617
|
+
} = u;
|
|
3616
3618
|
if (f == null)
|
|
3617
3619
|
throw new Error(
|
|
3618
3620
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3619
3621
|
);
|
|
3620
|
-
let
|
|
3621
|
-
if (!
|
|
3622
|
-
|
|
3623
|
-
else if (typeof
|
|
3622
|
+
let h = Et(e, f);
|
|
3623
|
+
if (!h)
|
|
3624
|
+
h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3625
|
+
else if (typeof h != "string")
|
|
3624
3626
|
return console.warn(
|
|
3625
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3626
|
-
),
|
|
3627
|
-
if (!
|
|
3628
|
-
return
|
|
3629
|
-
let l =
|
|
3627
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3628
|
+
), h;
|
|
3629
|
+
if (!a)
|
|
3630
|
+
return h;
|
|
3631
|
+
let l = h;
|
|
3630
3632
|
try {
|
|
3631
|
-
l = Sn(
|
|
3633
|
+
l = Sn(h, f).format(a);
|
|
3632
3634
|
} catch (c) {
|
|
3633
3635
|
c instanceof Error && console.warn(
|
|
3634
3636
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3636,18 +3638,18 @@ const X = (e, t) => {
|
|
|
3636
3638
|
);
|
|
3637
3639
|
}
|
|
3638
3640
|
return l;
|
|
3639
|
-
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) =>
|
|
3641
|
+
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
|
|
3640
3642
|
R([U], () => An);
|
|
3641
3643
|
R([U], () => Pn);
|
|
3642
3644
|
R([U], () => Nn);
|
|
3643
|
-
R([U,
|
|
3644
|
-
function
|
|
3645
|
-
|
|
3645
|
+
R([U, z], () => On);
|
|
3646
|
+
function ze(e, t) {
|
|
3647
|
+
xt(e, t);
|
|
3646
3648
|
}
|
|
3647
3649
|
function wn(e) {
|
|
3648
3650
|
U.set(e);
|
|
3649
3651
|
}
|
|
3650
|
-
const
|
|
3652
|
+
const Ze = {
|
|
3651
3653
|
en: {
|
|
3652
3654
|
errServerUnavailable: "Server unavailable",
|
|
3653
3655
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3671,14 +3673,14 @@ function $n(e) {
|
|
|
3671
3673
|
let t;
|
|
3672
3674
|
return {
|
|
3673
3675
|
c() {
|
|
3674
|
-
t =
|
|
3676
|
+
t = Ke("div");
|
|
3675
3677
|
},
|
|
3676
3678
|
m(r, n) {
|
|
3677
|
-
|
|
3679
|
+
Ye(r, t, n);
|
|
3678
3680
|
},
|
|
3679
|
-
p:
|
|
3680
|
-
i:
|
|
3681
|
-
o:
|
|
3681
|
+
p: _,
|
|
3682
|
+
i: _,
|
|
3683
|
+
o: _,
|
|
3682
3684
|
d(r) {
|
|
3683
3685
|
r && Se(t);
|
|
3684
3686
|
}
|
|
@@ -3686,30 +3688,30 @@ function $n(e) {
|
|
|
3686
3688
|
}
|
|
3687
3689
|
function Ln(e, t, r) {
|
|
3688
3690
|
let n;
|
|
3689
|
-
|
|
3690
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key:
|
|
3691
|
+
Bt(e, In, (l) => r(4, n = l));
|
|
3692
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: a = "" } = t;
|
|
3691
3693
|
const f = () => {
|
|
3692
|
-
fetch(
|
|
3694
|
+
fetch(a).then((c) => c.json()).then((c) => {
|
|
3693
3695
|
Object.keys(c).forEach((b) => {
|
|
3694
|
-
|
|
3696
|
+
ze(b, c[b]);
|
|
3695
3697
|
});
|
|
3696
3698
|
}).catch((c) => {
|
|
3697
3699
|
console.log(c);
|
|
3698
3700
|
});
|
|
3699
3701
|
};
|
|
3700
|
-
Object.keys(
|
|
3701
|
-
|
|
3702
|
+
Object.keys(Ze).forEach((l) => {
|
|
3703
|
+
ze(l, Ze[l]);
|
|
3702
3704
|
});
|
|
3703
|
-
const
|
|
3705
|
+
const o = () => {
|
|
3704
3706
|
wn(i);
|
|
3705
|
-
},
|
|
3707
|
+
}, h = () => {
|
|
3706
3708
|
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3707
3709
|
method: "POST",
|
|
3708
3710
|
headers: {
|
|
3709
3711
|
"Content-Type": "application/json",
|
|
3710
3712
|
Accept: "application/json"
|
|
3711
3713
|
},
|
|
3712
|
-
body: JSON.stringify({ hashKey:
|
|
3714
|
+
body: JSON.stringify({ hashKey: u })
|
|
3713
3715
|
};
|
|
3714
3716
|
fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3715
3717
|
{
|
|
@@ -3752,17 +3754,17 @@ function Ln(e, t, r) {
|
|
|
3752
3754
|
});
|
|
3753
3755
|
};
|
|
3754
3756
|
return e.$$set = (l) => {
|
|
3755
|
-
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2,
|
|
3757
|
+
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, u = l.key), "translationurl" in l && r(3, a = l.translationurl);
|
|
3756
3758
|
}, e.$$.update = () => {
|
|
3757
3759
|
e.$$.dirty & /*lang*/
|
|
3758
|
-
1 && i &&
|
|
3759
|
-
8 &&
|
|
3760
|
-
6 && s &&
|
|
3761
|
-
}, [i, s,
|
|
3760
|
+
1 && i && o(), e.$$.dirty & /*translationurl*/
|
|
3761
|
+
8 && a && f(), e.$$.dirty & /*endpoint, key*/
|
|
3762
|
+
6 && s && u && h();
|
|
3763
|
+
}, [i, s, u, a];
|
|
3762
3764
|
}
|
|
3763
|
-
class Mn extends
|
|
3765
|
+
class Mn extends Ft {
|
|
3764
3766
|
constructor(t) {
|
|
3765
|
-
super(),
|
|
3767
|
+
super(), Gt(this, t, Ln, $n, Je, {
|
|
3766
3768
|
lang: 0,
|
|
3767
3769
|
endpoint: 1,
|
|
3768
3770
|
key: 2,
|
|
@@ -3794,7 +3796,7 @@ class Mn extends jt {
|
|
|
3794
3796
|
this.$$set({ translationurl: t }), I();
|
|
3795
3797
|
}
|
|
3796
3798
|
}
|
|
3797
|
-
|
|
3799
|
+
Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3798
3800
|
export {
|
|
3799
3801
|
Mn as P
|
|
3800
3802
|
};
|