@everymatrix/player-email-verification 1.86.2 → 1.86.4
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-CgnLCJ4y.js → PlayerEmailVerification-BEBlzjMH.js} +560 -564
- package/components/PlayerEmailVerification-D4cuMbt0.cjs +16 -0
- package/components/{PlayerEmailVerification-nPNqbsBk.js → PlayerEmailVerification-DgO_reIt.js} +568 -572
- 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-iF1E3V46.cjs +0 -3
package/components/{PlayerEmailVerification-nPNqbsBk.js → PlayerEmailVerification-DgO_reIt.js}
RENAMED
|
@@ -3,13 +3,13 @@ function v() {
|
|
|
3
3
|
function Je(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function we() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function z(e) {
|
|
10
10
|
e.forEach(Je);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Te(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function qe(e, t) {
|
|
@@ -33,7 +33,7 @@ function At(e, t, r) {
|
|
|
33
33
|
function Ke(e, t, r) {
|
|
34
34
|
e.insertBefore(t, r || null);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Se(e) {
|
|
37
37
|
e.parentNode && e.parentNode.removeChild(e);
|
|
38
38
|
}
|
|
39
39
|
function et(e) {
|
|
@@ -42,10 +42,10 @@ function et(e) {
|
|
|
42
42
|
function Pt(e, t, r) {
|
|
43
43
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Nt(e) {
|
|
46
46
|
return Array.from(e.childNodes);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ot(e) {
|
|
49
49
|
const t = {};
|
|
50
50
|
return e.childNodes.forEach(
|
|
51
51
|
/** @param {Element} node */
|
|
@@ -54,57 +54,57 @@ function Nt(e) {
|
|
|
54
54
|
}
|
|
55
55
|
), t;
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
function
|
|
59
|
-
|
|
57
|
+
let Be;
|
|
58
|
+
function V(e) {
|
|
59
|
+
Be = e;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
const Le = [],
|
|
64
|
-
let
|
|
65
|
-
function
|
|
66
|
-
|
|
61
|
+
const O = [], $e = [];
|
|
62
|
+
let w = [];
|
|
63
|
+
const Le = [], It = /* @__PURE__ */ Promise.resolve();
|
|
64
|
+
let me = !1;
|
|
65
|
+
function wt() {
|
|
66
|
+
me || (me = !0, It.then(I));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function pe(e) {
|
|
69
|
+
w.push(e);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
let
|
|
71
|
+
const oe = /* @__PURE__ */ new Set();
|
|
72
|
+
let P = 0;
|
|
73
73
|
function I() {
|
|
74
|
-
if (
|
|
74
|
+
if (P !== 0)
|
|
75
75
|
return;
|
|
76
|
-
const e =
|
|
76
|
+
const e = Be;
|
|
77
77
|
do {
|
|
78
78
|
try {
|
|
79
|
-
for (;
|
|
80
|
-
const t =
|
|
81
|
-
|
|
79
|
+
for (; P < O.length; ) {
|
|
80
|
+
const t = O[P];
|
|
81
|
+
P++, V(t), $t(t.$$);
|
|
82
82
|
}
|
|
83
83
|
} catch (t) {
|
|
84
|
-
throw
|
|
84
|
+
throw O.length = 0, P = 0, t;
|
|
85
85
|
}
|
|
86
|
-
for (
|
|
86
|
+
for (V(null), O.length = 0, P = 0; $e.length; )
|
|
87
87
|
$e.pop()();
|
|
88
|
-
for (let t = 0; t <
|
|
89
|
-
const r =
|
|
90
|
-
|
|
88
|
+
for (let t = 0; t < w.length; t += 1) {
|
|
89
|
+
const r = w[t];
|
|
90
|
+
oe.has(r) || (oe.add(r), r());
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
} while (
|
|
92
|
+
w.length = 0;
|
|
93
|
+
} while (O.length);
|
|
94
94
|
for (; Le.length; )
|
|
95
95
|
Le.pop()();
|
|
96
|
-
|
|
96
|
+
me = !1, oe.clear(), V(e);
|
|
97
97
|
}
|
|
98
98
|
function $t(e) {
|
|
99
99
|
if (e.fragment !== null) {
|
|
100
100
|
e.update(), z(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(pe);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function Lt(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
109
|
const Mt = /* @__PURE__ */ new Set();
|
|
110
110
|
function Ct(e, t) {
|
|
@@ -112,21 +112,21 @@ function Ct(e, t) {
|
|
|
112
112
|
}
|
|
113
113
|
function Rt(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(Je).filter(
|
|
115
|
+
n && n.m(t, r), pe(() => {
|
|
116
|
+
const s = e.$$.on_mount.map(Je).filter(Te);
|
|
117
117
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
118
|
-
}), i.forEach(
|
|
118
|
+
}), i.forEach(pe);
|
|
119
119
|
}
|
|
120
120
|
function Ut(e, t) {
|
|
121
121
|
const r = e.$$;
|
|
122
122
|
r.fragment !== null && (Lt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
123
123
|
}
|
|
124
124
|
function Gt(e, t) {
|
|
125
|
-
e.$$.dirty[0] === -1 && (
|
|
125
|
+
e.$$.dirty[0] === -1 && (O.push(e), wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
126
126
|
}
|
|
127
|
-
function Dt(e, t, r, n, i, s,
|
|
128
|
-
const f =
|
|
129
|
-
|
|
127
|
+
function Dt(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
128
|
+
const f = Be;
|
|
129
|
+
V(e);
|
|
130
130
|
const a = e.$$ = {
|
|
131
131
|
fragment: null,
|
|
132
132
|
ctx: [],
|
|
@@ -134,7 +134,7 @@ function Dt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
134
134
|
props: s,
|
|
135
135
|
update: v,
|
|
136
136
|
not_equal: i,
|
|
137
|
-
bound:
|
|
137
|
+
bound: we(),
|
|
138
138
|
// lifecycle
|
|
139
139
|
on_mount: [],
|
|
140
140
|
on_destroy: [],
|
|
@@ -143,25 +143,25 @@ function Dt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
143
143
|
after_update: [],
|
|
144
144
|
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
145
145
|
// everything else
|
|
146
|
-
callbacks:
|
|
146
|
+
callbacks: we(),
|
|
147
147
|
dirty: o,
|
|
148
148
|
skip_bound: !1,
|
|
149
149
|
root: t.target || f.$$.root
|
|
150
150
|
};
|
|
151
|
-
|
|
152
|
-
let
|
|
153
|
-
if (a.ctx = r ? r(e, t.props || {}, (l, c, ...
|
|
154
|
-
const
|
|
155
|
-
return a.ctx && i(a.ctx[l], a.ctx[l] =
|
|
156
|
-
}) : [], a.update(),
|
|
151
|
+
h && h(a.root);
|
|
152
|
+
let u = !1;
|
|
153
|
+
if (a.ctx = r ? r(e, t.props || {}, (l, c, ...b) => {
|
|
154
|
+
const g = b.length ? b[0] : c;
|
|
155
|
+
return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), u && Gt(e, l)), c;
|
|
156
|
+
}) : [], a.update(), u = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
157
157
|
if (t.hydrate) {
|
|
158
|
-
const l =
|
|
159
|
-
a.fragment && a.fragment.l(l), l.forEach(
|
|
158
|
+
const l = Nt(t.target);
|
|
159
|
+
a.fragment && a.fragment.l(l), l.forEach(Se);
|
|
160
160
|
} else
|
|
161
161
|
a.fragment && a.fragment.c();
|
|
162
162
|
t.intro && Ct(e.$$.fragment), Rt(e, t.target, t.anchor), I();
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
V(f);
|
|
165
165
|
}
|
|
166
166
|
let tt;
|
|
167
167
|
typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
@@ -216,19 +216,19 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
216
216
|
Ke(f, s, a);
|
|
217
217
|
},
|
|
218
218
|
d: function(f) {
|
|
219
|
-
f &&
|
|
219
|
+
f && Se(s);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
225
225
|
return;
|
|
226
|
-
const t = {}, r =
|
|
226
|
+
const t = {}, r = Ot(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) {
|
|
230
230
|
const s = this.$$g_p(i.name);
|
|
231
|
-
s in this.$$d || (this.$$d[s] =
|
|
231
|
+
s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
|
|
232
232
|
}
|
|
233
233
|
for (const i in this.$$p_d)
|
|
234
234
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -246,7 +246,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
246
246
|
this.$$r = !0;
|
|
247
247
|
for (const i in this.$$p_d)
|
|
248
248
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
249
|
-
const s =
|
|
249
|
+
const s = J(
|
|
250
250
|
i,
|
|
251
251
|
this.$$d[i],
|
|
252
252
|
this.$$p_d,
|
|
@@ -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 h = this.$$c.$on(i, s);
|
|
263
|
+
this.$$l_u.set(s, h);
|
|
264
264
|
}
|
|
265
265
|
this.$$l = {};
|
|
266
266
|
}
|
|
@@ -268,7 +268,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
268
268
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
269
269
|
// and setting attributes through setAttribute etc, this is helpful
|
|
270
270
|
attributeChangedCallback(e, t, r) {
|
|
271
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
271
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
272
272
|
}
|
|
273
273
|
disconnectedCallback() {
|
|
274
274
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -281,7 +281,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
281
281
|
) || e;
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
|
-
function
|
|
284
|
+
function J(e, t, r, n) {
|
|
285
285
|
const i = r[e]?.type;
|
|
286
286
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
287
287
|
return t;
|
|
@@ -311,7 +311,7 @@ function q(e, t, r, n) {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
function Ft(e, t, r, n, i, s) {
|
|
314
|
-
let
|
|
314
|
+
let h = class extends tt {
|
|
315
315
|
constructor() {
|
|
316
316
|
super(e, r, i), this.$$p_d = t;
|
|
317
317
|
}
|
|
@@ -322,22 +322,22 @@ function Ft(e, t, r, n, i, s) {
|
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
return Object.keys(t).forEach((o) => {
|
|
325
|
-
Object.defineProperty(
|
|
325
|
+
Object.defineProperty(h.prototype, o, {
|
|
326
326
|
get() {
|
|
327
327
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
328
328
|
},
|
|
329
329
|
set(f) {
|
|
330
|
-
f =
|
|
330
|
+
f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}), n.forEach((o) => {
|
|
334
|
-
Object.defineProperty(
|
|
334
|
+
Object.defineProperty(h.prototype, o, {
|
|
335
335
|
get() {
|
|
336
336
|
return this.$$c?.[o];
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
}), e.element = /** @type {any} */
|
|
340
|
-
|
|
340
|
+
h, h;
|
|
341
341
|
}
|
|
342
342
|
class jt {
|
|
343
343
|
/**
|
|
@@ -367,7 +367,7 @@ class jt {
|
|
|
367
367
|
* @returns {() => void}
|
|
368
368
|
*/
|
|
369
369
|
$on(t, r) {
|
|
370
|
-
if (!
|
|
370
|
+
if (!Te(r))
|
|
371
371
|
return v;
|
|
372
372
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
373
373
|
return n.push(r), () => {
|
|
@@ -388,10 +388,10 @@ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__
|
|
|
388
388
|
const N = [];
|
|
389
389
|
function kt(e, t) {
|
|
390
390
|
return {
|
|
391
|
-
subscribe:
|
|
391
|
+
subscribe: te(e, t).subscribe
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function te(e, t = v) {
|
|
395
395
|
let r;
|
|
396
396
|
const n = /* @__PURE__ */ new Set();
|
|
397
397
|
function i(o) {
|
|
@@ -409,52 +409,52 @@ function ne(e, t = v) {
|
|
|
409
409
|
function s(o) {
|
|
410
410
|
i(o(e));
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function h(o, f = v) {
|
|
413
413
|
const a = [o, f];
|
|
414
414
|
return n.add(a), n.size === 1 && (r = t(i, s) || v), o(e), () => {
|
|
415
415
|
n.delete(a), 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: h };
|
|
419
419
|
}
|
|
420
|
-
function
|
|
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 kt(r, (
|
|
425
|
+
return kt(r, (h, o) => {
|
|
426
426
|
let f = !1;
|
|
427
427
|
const a = [];
|
|
428
|
-
let
|
|
428
|
+
let u = 0, l = v;
|
|
429
429
|
const c = () => {
|
|
430
|
-
if (
|
|
430
|
+
if (u)
|
|
431
431
|
return;
|
|
432
432
|
l();
|
|
433
|
-
const
|
|
434
|
-
s ?
|
|
435
|
-
},
|
|
436
|
-
(
|
|
437
|
-
|
|
438
|
-
(
|
|
439
|
-
a[x] =
|
|
433
|
+
const g = t(n ? a[0] : a, h, o);
|
|
434
|
+
s ? h(g) : l = Te(g) ? g : v;
|
|
435
|
+
}, b = i.map(
|
|
436
|
+
(g, x) => Ye(
|
|
437
|
+
g,
|
|
438
|
+
(H) => {
|
|
439
|
+
a[x] = H, u &= ~(1 << x), f && c();
|
|
440
440
|
},
|
|
441
441
|
() => {
|
|
442
|
-
|
|
442
|
+
u |= 1 << x;
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
);
|
|
446
446
|
return f = !0, c(), function() {
|
|
447
|
-
z(
|
|
447
|
+
z(b), l(), f = !1;
|
|
448
448
|
};
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function Xt(e) {
|
|
452
452
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
453
453
|
}
|
|
454
|
-
var
|
|
455
|
-
return
|
|
454
|
+
var zt = function(t) {
|
|
455
|
+
return Wt(t) && !Zt(t);
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function Wt(e) {
|
|
458
458
|
return !!e && typeof e == "object";
|
|
459
459
|
}
|
|
460
460
|
function Zt(e) {
|
|
@@ -468,19 +468,19 @@ function qt(e) {
|
|
|
468
468
|
function Yt(e) {
|
|
469
469
|
return Array.isArray(e) ? [] : {};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
471
|
+
function k(e, t) {
|
|
472
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(Yt(e), e, t) : e;
|
|
473
473
|
}
|
|
474
474
|
function Kt(e, t, r) {
|
|
475
475
|
return e.concat(t).map(function(n) {
|
|
476
|
-
return
|
|
476
|
+
return k(n, r);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
function er(e, t) {
|
|
480
480
|
if (!t.customMerge)
|
|
481
|
-
return
|
|
481
|
+
return $;
|
|
482
482
|
var r = t.customMerge(e);
|
|
483
|
-
return typeof r == "function" ? r :
|
|
483
|
+
return typeof r == "function" ? r : $;
|
|
484
484
|
}
|
|
485
485
|
function tr(e) {
|
|
486
486
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -503,51 +503,65 @@ function rr(e, t) {
|
|
|
503
503
|
function nr(e, t, r) {
|
|
504
504
|
var n = {};
|
|
505
505
|
return r.isMergeableObject(e) && Me(e).forEach(function(i) {
|
|
506
|
-
n[i] =
|
|
506
|
+
n[i] = k(e[i], r);
|
|
507
507
|
}), Me(t).forEach(function(i) {
|
|
508
|
-
rr(e, i) || (rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = er(i, r)(e[i], t[i], r) : n[i] =
|
|
508
|
+
rr(e, i) || (rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = er(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
|
|
509
509
|
}), n;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Kt, r.isMergeableObject = r.isMergeableObject ||
|
|
511
|
+
function $(e, t, r) {
|
|
512
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kt, r.isMergeableObject = r.isMergeableObject || zt, 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) : nr(e, t, r) :
|
|
514
|
+
return s ? n ? r.arrayMerge(e, t, r) : nr(e, t, r) : k(t, r);
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
$.all = function(t, r) {
|
|
517
517
|
if (!Array.isArray(t))
|
|
518
518
|
throw new Error("first argument should be an array");
|
|
519
519
|
return t.reduce(function(n, i) {
|
|
520
|
-
return
|
|
520
|
+
return $(n, i, r);
|
|
521
521
|
}, {});
|
|
522
522
|
};
|
|
523
|
-
var ir =
|
|
523
|
+
var ir = $, sr = ir;
|
|
524
524
|
const or = /* @__PURE__ */ Xt(sr);
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
/*! *****************************************************************************
|
|
526
|
+
Copyright (c) Microsoft Corporation.
|
|
527
|
+
|
|
528
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
529
|
+
purpose with or without fee is hereby granted.
|
|
530
|
+
|
|
531
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
532
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
533
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
534
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
535
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
536
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
537
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
538
|
+
***************************************************************************** */
|
|
539
|
+
var de = function(e, t) {
|
|
540
|
+
return de = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
527
541
|
r.__proto__ = n;
|
|
528
542
|
} || function(r, n) {
|
|
529
543
|
for (var i in n)
|
|
530
544
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
531
|
-
},
|
|
545
|
+
}, de(e, t);
|
|
532
546
|
};
|
|
533
|
-
function
|
|
547
|
+
function re(e, t) {
|
|
534
548
|
if (typeof t != "function" && t !== null)
|
|
535
549
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
536
|
-
|
|
550
|
+
de(e, t);
|
|
537
551
|
function r() {
|
|
538
552
|
this.constructor = e;
|
|
539
553
|
}
|
|
540
554
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
541
555
|
}
|
|
542
|
-
var
|
|
543
|
-
return
|
|
556
|
+
var d = function() {
|
|
557
|
+
return d = Object.assign || function(t) {
|
|
544
558
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
545
559
|
r = arguments[n];
|
|
546
560
|
for (var s in r)
|
|
547
561
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
548
562
|
}
|
|
549
563
|
return t;
|
|
550
|
-
},
|
|
564
|
+
}, d.apply(this, arguments);
|
|
551
565
|
};
|
|
552
566
|
function ar(e, t) {
|
|
553
567
|
var r = {};
|
|
@@ -558,119 +572,111 @@ function ar(e, t) {
|
|
|
558
572
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
559
573
|
return r;
|
|
560
574
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
575
|
+
function ae(e, t, r) {
|
|
576
|
+
if (arguments.length === 2)
|
|
563
577
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
564
578
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
565
|
-
return e.concat(s ||
|
|
579
|
+
return e.concat(s || t);
|
|
566
580
|
}
|
|
567
|
-
function
|
|
568
|
-
var r = t && t.cache ? t.cache :
|
|
581
|
+
function he(e, t) {
|
|
582
|
+
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : cr, i = t && t.strategy ? t.strategy : ur;
|
|
569
583
|
return i(e, {
|
|
570
584
|
cache: r,
|
|
571
585
|
serializer: n
|
|
572
586
|
});
|
|
573
587
|
}
|
|
574
|
-
function
|
|
588
|
+
function hr(e) {
|
|
575
589
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
576
590
|
}
|
|
577
|
-
function
|
|
578
|
-
var i =
|
|
591
|
+
function nt(e, t, r, n) {
|
|
592
|
+
var i = hr(n) ? n : r(n), s = t.get(i);
|
|
579
593
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
580
594
|
}
|
|
581
|
-
function
|
|
595
|
+
function it(e, t, r) {
|
|
582
596
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
583
597
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
584
598
|
}
|
|
585
|
-
function
|
|
599
|
+
function Ae(e, t, r, n, i) {
|
|
586
600
|
return r.bind(t, e, n, i);
|
|
587
601
|
}
|
|
602
|
+
function ur(e, t) {
|
|
603
|
+
var r = e.length === 1 ? nt : it;
|
|
604
|
+
return Ae(e, this, r, t.cache.create(), t.serializer);
|
|
605
|
+
}
|
|
588
606
|
function lr(e, t) {
|
|
589
|
-
|
|
590
|
-
return it(e, this, r, t.cache.create(), t.serializer);
|
|
607
|
+
return Ae(e, this, it, t.cache.create(), t.serializer);
|
|
591
608
|
}
|
|
592
609
|
function fr(e, t) {
|
|
593
|
-
return
|
|
610
|
+
return Ae(e, this, nt, t.cache.create(), t.serializer);
|
|
594
611
|
}
|
|
595
612
|
var cr = function() {
|
|
596
613
|
return JSON.stringify(arguments);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}()
|
|
609
|
-
), pr = {
|
|
614
|
+
};
|
|
615
|
+
function Pe() {
|
|
616
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
617
|
+
}
|
|
618
|
+
Pe.prototype.get = function(e) {
|
|
619
|
+
return this.cache[e];
|
|
620
|
+
};
|
|
621
|
+
Pe.prototype.set = function(e, t) {
|
|
622
|
+
this.cache[e] = t;
|
|
623
|
+
};
|
|
624
|
+
var mr = {
|
|
610
625
|
create: function() {
|
|
611
|
-
return new
|
|
626
|
+
return new Pe();
|
|
612
627
|
}
|
|
613
|
-
},
|
|
614
|
-
variadic:
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
618
|
-
r = arguments[n];
|
|
619
|
-
for (var s in r)
|
|
620
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
621
|
-
}
|
|
622
|
-
return t;
|
|
623
|
-
}, ee.apply(this, arguments);
|
|
624
|
-
};
|
|
625
|
-
var m;
|
|
628
|
+
}, ue = {
|
|
629
|
+
variadic: lr,
|
|
630
|
+
monadic: fr
|
|
631
|
+
}, m;
|
|
626
632
|
(function(e) {
|
|
627
633
|
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";
|
|
628
634
|
})(m || (m = {}));
|
|
629
|
-
var
|
|
635
|
+
var E;
|
|
630
636
|
(function(e) {
|
|
631
637
|
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";
|
|
632
|
-
})(
|
|
633
|
-
var
|
|
638
|
+
})(E || (E = {}));
|
|
639
|
+
var L;
|
|
634
640
|
(function(e) {
|
|
635
641
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
636
|
-
})(
|
|
642
|
+
})(L || (L = {}));
|
|
637
643
|
function Ce(e) {
|
|
638
|
-
return e.type ===
|
|
644
|
+
return e.type === E.literal;
|
|
639
645
|
}
|
|
640
|
-
function
|
|
641
|
-
return e.type ===
|
|
646
|
+
function pr(e) {
|
|
647
|
+
return e.type === E.argument;
|
|
642
648
|
}
|
|
643
649
|
function st(e) {
|
|
644
|
-
return e.type ===
|
|
650
|
+
return e.type === E.number;
|
|
645
651
|
}
|
|
646
652
|
function ot(e) {
|
|
647
|
-
return e.type ===
|
|
653
|
+
return e.type === E.date;
|
|
648
654
|
}
|
|
649
655
|
function at(e) {
|
|
650
|
-
return e.type ===
|
|
651
|
-
}
|
|
652
|
-
function ut(e) {
|
|
653
|
-
return e.type === g.select;
|
|
656
|
+
return e.type === E.time;
|
|
654
657
|
}
|
|
655
658
|
function ht(e) {
|
|
656
|
-
return e.type ===
|
|
659
|
+
return e.type === E.select;
|
|
657
660
|
}
|
|
658
|
-
function
|
|
659
|
-
return e.type ===
|
|
661
|
+
function ut(e) {
|
|
662
|
+
return e.type === E.plural;
|
|
663
|
+
}
|
|
664
|
+
function dr(e) {
|
|
665
|
+
return e.type === E.pound;
|
|
660
666
|
}
|
|
661
667
|
function lt(e) {
|
|
662
|
-
return e.type ===
|
|
668
|
+
return e.type === E.tag;
|
|
663
669
|
}
|
|
664
670
|
function ft(e) {
|
|
665
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
671
|
+
return !!(e && typeof e == "object" && e.type === L.number);
|
|
666
672
|
}
|
|
667
|
-
function
|
|
668
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
673
|
+
function be(e) {
|
|
674
|
+
return !!(e && typeof e == "object" && e.type === L.dateTime);
|
|
669
675
|
}
|
|
670
|
-
var ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
671
|
-
function
|
|
676
|
+
var ct = /[ \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
|
+
function gr(e) {
|
|
672
678
|
var t = {};
|
|
673
|
-
return e.replace(
|
|
679
|
+
return e.replace(br, function(r) {
|
|
674
680
|
var n = r.length;
|
|
675
681
|
switch (r[0]) {
|
|
676
682
|
case "G":
|
|
@@ -759,28 +765,18 @@ function Er(e) {
|
|
|
759
765
|
return "";
|
|
760
766
|
}), t;
|
|
761
767
|
}
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
765
|
-
r = arguments[n];
|
|
766
|
-
for (var s in r)
|
|
767
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
768
|
-
}
|
|
769
|
-
return t;
|
|
770
|
-
}, E.apply(this, arguments);
|
|
771
|
-
};
|
|
772
|
-
var yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
773
|
-
function xr(e) {
|
|
768
|
+
var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
769
|
+
function yr(e) {
|
|
774
770
|
if (e.length === 0)
|
|
775
771
|
throw new Error("Number skeleton cannot be empty");
|
|
776
|
-
for (var t = e.split(
|
|
772
|
+
for (var t = e.split(Er).filter(function(c) {
|
|
777
773
|
return c.length > 0;
|
|
778
774
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
779
|
-
var s = i[n],
|
|
780
|
-
if (
|
|
775
|
+
var s = i[n], h = s.split("/");
|
|
776
|
+
if (h.length === 0)
|
|
781
777
|
throw new Error("Invalid number skeleton");
|
|
782
|
-
for (var o =
|
|
783
|
-
var l =
|
|
778
|
+
for (var o = h[0], f = h.slice(1), a = 0, u = f; a < u.length; a++) {
|
|
779
|
+
var l = u[a];
|
|
784
780
|
if (l.length === 0)
|
|
785
781
|
throw new Error("Invalid number skeleton");
|
|
786
782
|
}
|
|
@@ -788,10 +784,10 @@ function xr(e) {
|
|
|
788
784
|
}
|
|
789
785
|
return r;
|
|
790
786
|
}
|
|
791
|
-
function
|
|
787
|
+
function xr(e) {
|
|
792
788
|
return e.replace(/^(.*?)-/, "");
|
|
793
789
|
}
|
|
794
|
-
var Re = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
790
|
+
var Re = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mt = /^(@+)?(\+|#+)?[rs]?$/g, vr = /(\*)(0+)|(#+)(0+)|(0+)/g, pt = /^(0+)$/;
|
|
795
791
|
function Ue(e) {
|
|
796
792
|
var t = {};
|
|
797
793
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mt, function(r, n, i) {
|
|
@@ -838,7 +834,7 @@ function dt(e) {
|
|
|
838
834
|
};
|
|
839
835
|
}
|
|
840
836
|
}
|
|
841
|
-
function
|
|
837
|
+
function _r(e) {
|
|
842
838
|
var t;
|
|
843
839
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
844
840
|
notation: "engineering"
|
|
@@ -856,7 +852,7 @@ function Ge(e) {
|
|
|
856
852
|
var t = {}, r = dt(e);
|
|
857
853
|
return r || t;
|
|
858
854
|
}
|
|
859
|
-
function
|
|
855
|
+
function Hr(e) {
|
|
860
856
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
861
857
|
var i = n[r];
|
|
862
858
|
switch (i.stem) {
|
|
@@ -880,7 +876,7 @@ function Sr(e) {
|
|
|
880
876
|
continue;
|
|
881
877
|
case "measure-unit":
|
|
882
878
|
case "unit":
|
|
883
|
-
t.style = "unit", t.unit =
|
|
879
|
+
t.style = "unit", t.unit = xr(i.options[0]);
|
|
884
880
|
continue;
|
|
885
881
|
case "compact-short":
|
|
886
882
|
case "K":
|
|
@@ -891,13 +887,13 @@ function Sr(e) {
|
|
|
891
887
|
t.notation = "compact", t.compactDisplay = "long";
|
|
892
888
|
continue;
|
|
893
889
|
case "scientific":
|
|
894
|
-
t =
|
|
895
|
-
return
|
|
890
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
|
|
891
|
+
return d(d({}, f), Ge(a));
|
|
896
892
|
}, {}));
|
|
897
893
|
continue;
|
|
898
894
|
case "engineering":
|
|
899
|
-
t =
|
|
900
|
-
return
|
|
895
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
|
|
896
|
+
return d(d({}, f), Ge(a));
|
|
901
897
|
}, {}));
|
|
902
898
|
continue;
|
|
903
899
|
case "notation-simple":
|
|
@@ -942,13 +938,13 @@ function Sr(e) {
|
|
|
942
938
|
case "integer-width":
|
|
943
939
|
if (i.options.length > 1)
|
|
944
940
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
945
|
-
i.options[0].replace(
|
|
941
|
+
i.options[0].replace(vr, function(f, a, u, l, c, b) {
|
|
946
942
|
if (a)
|
|
947
|
-
t.minimumIntegerDigits =
|
|
943
|
+
t.minimumIntegerDigits = u.length;
|
|
948
944
|
else {
|
|
949
945
|
if (l && c)
|
|
950
946
|
throw new Error("We currently do not support maximum integer digits");
|
|
951
|
-
if (
|
|
947
|
+
if (b)
|
|
952
948
|
throw new Error("We currently do not support exact integer digits");
|
|
953
949
|
}
|
|
954
950
|
return "";
|
|
@@ -962,25 +958,25 @@ function Sr(e) {
|
|
|
962
958
|
if (Re.test(i.stem)) {
|
|
963
959
|
if (i.options.length > 1)
|
|
964
960
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
965
|
-
i.stem.replace(Re, function(f, a,
|
|
966
|
-
return
|
|
961
|
+
i.stem.replace(Re, function(f, a, u, l, c, b) {
|
|
962
|
+
return u === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
967
963
|
});
|
|
968
964
|
var s = i.options[0];
|
|
969
|
-
s === "w" ? t =
|
|
965
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ue(s)));
|
|
970
966
|
continue;
|
|
971
967
|
}
|
|
972
968
|
if (mt.test(i.stem)) {
|
|
973
|
-
t =
|
|
969
|
+
t = d(d({}, t), Ue(i.stem));
|
|
974
970
|
continue;
|
|
975
971
|
}
|
|
976
|
-
var
|
|
977
|
-
|
|
978
|
-
var o =
|
|
979
|
-
o && (t =
|
|
972
|
+
var h = dt(i.stem);
|
|
973
|
+
h && (t = d(d({}, t), h));
|
|
974
|
+
var o = _r(i.stem);
|
|
975
|
+
o && (t = d(d({}, t), o));
|
|
980
976
|
}
|
|
981
977
|
return t;
|
|
982
978
|
}
|
|
983
|
-
var
|
|
979
|
+
var Q = {
|
|
984
980
|
"001": [
|
|
985
981
|
"H",
|
|
986
982
|
"h"
|
|
@@ -2401,17 +2397,17 @@ function Tr(e, t) {
|
|
|
2401
2397
|
if (i === "j") {
|
|
2402
2398
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2403
2399
|
s++, n++;
|
|
2404
|
-
var
|
|
2400
|
+
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
|
|
2405
2401
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2406
2402
|
r += f;
|
|
2407
|
-
for (;
|
|
2403
|
+
for (; h-- > 0; )
|
|
2408
2404
|
r = a + r;
|
|
2409
2405
|
} else
|
|
2410
2406
|
i === "J" ? r += "H" : r += i;
|
|
2411
2407
|
}
|
|
2412
2408
|
return r;
|
|
2413
2409
|
}
|
|
2414
|
-
function
|
|
2410
|
+
function Sr(e) {
|
|
2415
2411
|
var t = e.hourCycle;
|
|
2416
2412
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2417
2413
|
e.hourCycles && // @ts-ignore
|
|
@@ -2430,23 +2426,23 @@ function Br(e) {
|
|
|
2430
2426
|
}
|
|
2431
2427
|
var r = e.language, n;
|
|
2432
2428
|
r !== "root" && (n = e.maximize().region);
|
|
2433
|
-
var i =
|
|
2429
|
+
var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
|
|
2434
2430
|
return i[0];
|
|
2435
2431
|
}
|
|
2436
|
-
var
|
|
2432
|
+
var le, Br = new RegExp("^".concat(ct.source, "*")), Ar = new RegExp("".concat(ct.source, "*$"));
|
|
2437
2433
|
function p(e, t) {
|
|
2438
2434
|
return { start: e, end: t };
|
|
2439
2435
|
}
|
|
2440
|
-
var
|
|
2436
|
+
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) {
|
|
2441
2437
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2442
|
-
},
|
|
2438
|
+
}, ge = !0;
|
|
2443
2439
|
try {
|
|
2444
|
-
var
|
|
2445
|
-
|
|
2440
|
+
var Cr = gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2441
|
+
ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
|
|
2446
2442
|
} catch {
|
|
2447
|
-
|
|
2443
|
+
ge = !1;
|
|
2448
2444
|
}
|
|
2449
|
-
var De =
|
|
2445
|
+
var De = Pr ? (
|
|
2450
2446
|
// Native
|
|
2451
2447
|
function(t, r, n) {
|
|
2452
2448
|
return t.startsWith(r, n);
|
|
@@ -2456,26 +2452,26 @@ var De = Or ? (
|
|
|
2456
2452
|
function(t, r, n) {
|
|
2457
2453
|
return t.slice(n, n + r.length) === r;
|
|
2458
2454
|
}
|
|
2459
|
-
),
|
|
2455
|
+
), Ee = Nr ? String.fromCodePoint : (
|
|
2460
2456
|
// IE11
|
|
2461
2457
|
function() {
|
|
2462
2458
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2463
2459
|
t[r] = arguments[r];
|
|
2464
|
-
for (var n = "", i = t.length, s = 0,
|
|
2465
|
-
if (
|
|
2466
|
-
throw RangeError(
|
|
2467
|
-
n +=
|
|
2460
|
+
for (var n = "", i = t.length, s = 0, h; i > s; ) {
|
|
2461
|
+
if (h = t[s++], h > 1114111)
|
|
2462
|
+
throw RangeError(h + " is not a valid code point");
|
|
2463
|
+
n += h < 65536 ? String.fromCharCode(h) : String.fromCharCode(((h -= 65536) >> 10) + 55296, h % 1024 + 56320);
|
|
2468
2464
|
}
|
|
2469
2465
|
return n;
|
|
2470
2466
|
}
|
|
2471
2467
|
), Fe = (
|
|
2472
2468
|
// native
|
|
2473
|
-
|
|
2469
|
+
Or ? Object.fromEntries : (
|
|
2474
2470
|
// Ponyfill
|
|
2475
2471
|
function(t) {
|
|
2476
2472
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2477
|
-
var s = i[n],
|
|
2478
|
-
r[
|
|
2473
|
+
var s = i[n], h = s[0], o = s[1];
|
|
2474
|
+
r[h] = o;
|
|
2479
2475
|
}
|
|
2480
2476
|
return r;
|
|
2481
2477
|
}
|
|
@@ -2494,7 +2490,7 @@ var De = Or ? (
|
|
|
2494
2490
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2495
2491
|
}
|
|
2496
2492
|
}
|
|
2497
|
-
),
|
|
2493
|
+
), Rr = wr ? (
|
|
2498
2494
|
// Native
|
|
2499
2495
|
function(t) {
|
|
2500
2496
|
return t.trimStart();
|
|
@@ -2502,9 +2498,9 @@ var De = Or ? (
|
|
|
2502
2498
|
) : (
|
|
2503
2499
|
// Ponyfill
|
|
2504
2500
|
function(t) {
|
|
2505
|
-
return t.replace(
|
|
2501
|
+
return t.replace(Br, "");
|
|
2506
2502
|
}
|
|
2507
|
-
),
|
|
2503
|
+
), Ur = $r ? (
|
|
2508
2504
|
// Native
|
|
2509
2505
|
function(t) {
|
|
2510
2506
|
return t.trimEnd();
|
|
@@ -2512,32 +2508,32 @@ var De = Or ? (
|
|
|
2512
2508
|
) : (
|
|
2513
2509
|
// Ponyfill
|
|
2514
2510
|
function(t) {
|
|
2515
|
-
return t.replace(
|
|
2511
|
+
return t.replace(Ar, "");
|
|
2516
2512
|
}
|
|
2517
2513
|
);
|
|
2518
2514
|
function gt(e, t) {
|
|
2519
2515
|
return new RegExp(e, t);
|
|
2520
2516
|
}
|
|
2521
|
-
var
|
|
2522
|
-
if (
|
|
2517
|
+
var ye;
|
|
2518
|
+
if (ge) {
|
|
2523
2519
|
var je = gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2524
|
-
|
|
2520
|
+
ye = function(t, r) {
|
|
2525
2521
|
var n;
|
|
2526
2522
|
je.lastIndex = r;
|
|
2527
2523
|
var i = je.exec(t);
|
|
2528
2524
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2529
2525
|
};
|
|
2530
2526
|
} else
|
|
2531
|
-
|
|
2527
|
+
ye = function(t, r) {
|
|
2532
2528
|
for (var n = []; ; ) {
|
|
2533
2529
|
var i = bt(t, r);
|
|
2534
|
-
if (i === void 0 || Et(i) ||
|
|
2530
|
+
if (i === void 0 || Et(i) || jr(i))
|
|
2535
2531
|
break;
|
|
2536
2532
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2537
2533
|
}
|
|
2538
|
-
return
|
|
2534
|
+
return Ee.apply(void 0, n);
|
|
2539
2535
|
};
|
|
2540
|
-
var
|
|
2536
|
+
var Gr = (
|
|
2541
2537
|
/** @class */
|
|
2542
2538
|
function() {
|
|
2543
2539
|
function e(t, r) {
|
|
@@ -2551,33 +2547,33 @@ var Dr = (
|
|
|
2551
2547
|
for (var i = []; !this.isEOF(); ) {
|
|
2552
2548
|
var s = this.char();
|
|
2553
2549
|
if (s === 123) {
|
|
2554
|
-
var
|
|
2555
|
-
if (
|
|
2556
|
-
return
|
|
2557
|
-
i.push(
|
|
2550
|
+
var h = this.parseArgument(t, n);
|
|
2551
|
+
if (h.err)
|
|
2552
|
+
return h;
|
|
2553
|
+
i.push(h.val);
|
|
2558
2554
|
} else {
|
|
2559
2555
|
if (s === 125 && t > 0)
|
|
2560
2556
|
break;
|
|
2561
2557
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2562
2558
|
var o = this.clonePosition();
|
|
2563
2559
|
this.bump(), i.push({
|
|
2564
|
-
type:
|
|
2560
|
+
type: E.pound,
|
|
2565
2561
|
location: p(o, this.clonePosition())
|
|
2566
2562
|
});
|
|
2567
2563
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2568
2564
|
if (n)
|
|
2569
2565
|
break;
|
|
2570
2566
|
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2571
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2572
|
-
var
|
|
2573
|
-
if (
|
|
2574
|
-
return
|
|
2575
|
-
i.push(
|
|
2567
|
+
} else if (s === 60 && !this.ignoreTag && xe(this.peek() || 0)) {
|
|
2568
|
+
var h = this.parseTag(t, r);
|
|
2569
|
+
if (h.err)
|
|
2570
|
+
return h;
|
|
2571
|
+
i.push(h.val);
|
|
2576
2572
|
} else {
|
|
2577
|
-
var
|
|
2578
|
-
if (
|
|
2579
|
-
return
|
|
2580
|
-
i.push(
|
|
2573
|
+
var h = this.parseLiteral(t, r);
|
|
2574
|
+
if (h.err)
|
|
2575
|
+
return h;
|
|
2576
|
+
i.push(h.val);
|
|
2581
2577
|
}
|
|
2582
2578
|
}
|
|
2583
2579
|
}
|
|
@@ -2589,7 +2585,7 @@ var Dr = (
|
|
|
2589
2585
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2590
2586
|
return {
|
|
2591
2587
|
val: {
|
|
2592
|
-
type:
|
|
2588
|
+
type: E.literal,
|
|
2593
2589
|
value: "<".concat(i, "/>"),
|
|
2594
2590
|
location: p(n, this.clonePosition())
|
|
2595
2591
|
},
|
|
@@ -2599,16 +2595,16 @@ var Dr = (
|
|
|
2599
2595
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2600
2596
|
if (s.err)
|
|
2601
2597
|
return s;
|
|
2602
|
-
var
|
|
2598
|
+
var h = s.val, o = this.clonePosition();
|
|
2603
2599
|
if (this.bumpIf("</")) {
|
|
2604
|
-
if (this.isEOF() || !
|
|
2600
|
+
if (this.isEOF() || !xe(this.char()))
|
|
2605
2601
|
return this.error(m.INVALID_TAG, p(o, this.clonePosition()));
|
|
2606
2602
|
var f = this.clonePosition(), a = this.parseTagName();
|
|
2607
2603
|
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2608
2604
|
val: {
|
|
2609
|
-
type:
|
|
2605
|
+
type: E.tag,
|
|
2610
2606
|
value: i,
|
|
2611
|
-
children:
|
|
2607
|
+
children: h,
|
|
2612
2608
|
location: p(n, this.clonePosition())
|
|
2613
2609
|
},
|
|
2614
2610
|
err: null
|
|
@@ -2619,7 +2615,7 @@ var Dr = (
|
|
|
2619
2615
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2620
2616
|
}, e.prototype.parseTagName = function() {
|
|
2621
2617
|
var t = this.offset();
|
|
2622
|
-
for (this.bump(); !this.isEOF() &&
|
|
2618
|
+
for (this.bump(); !this.isEOF() && Fr(this.char()); )
|
|
2623
2619
|
this.bump();
|
|
2624
2620
|
return this.message.slice(t, this.offset());
|
|
2625
2621
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2629,9 +2625,9 @@ var Dr = (
|
|
|
2629
2625
|
i += s;
|
|
2630
2626
|
continue;
|
|
2631
2627
|
}
|
|
2632
|
-
var
|
|
2633
|
-
if (
|
|
2634
|
-
i +=
|
|
2628
|
+
var h = this.tryParseUnquoted(t, r);
|
|
2629
|
+
if (h) {
|
|
2630
|
+
i += h;
|
|
2635
2631
|
continue;
|
|
2636
2632
|
}
|
|
2637
2633
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2643,12 +2639,12 @@ var Dr = (
|
|
|
2643
2639
|
}
|
|
2644
2640
|
var f = p(n, this.clonePosition());
|
|
2645
2641
|
return {
|
|
2646
|
-
val: { type:
|
|
2642
|
+
val: { type: E.literal, value: i, location: f },
|
|
2647
2643
|
err: null
|
|
2648
2644
|
};
|
|
2649
2645
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2650
2646
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2651
|
-
!
|
|
2647
|
+
!Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2652
2648
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2653
2649
|
if (this.isEOF() || this.char() !== 39)
|
|
2654
2650
|
return null;
|
|
@@ -2682,12 +2678,12 @@ var Dr = (
|
|
|
2682
2678
|
r.push(n);
|
|
2683
2679
|
this.bump();
|
|
2684
2680
|
}
|
|
2685
|
-
return
|
|
2681
|
+
return Ee.apply(void 0, r);
|
|
2686
2682
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2687
2683
|
if (this.isEOF())
|
|
2688
2684
|
return null;
|
|
2689
2685
|
var n = this.char();
|
|
2690
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2686
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
|
|
2691
2687
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2692
2688
|
var n = this.clonePosition();
|
|
2693
2689
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2703,7 +2699,7 @@ var Dr = (
|
|
|
2703
2699
|
case 125:
|
|
2704
2700
|
return this.bump(), {
|
|
2705
2701
|
val: {
|
|
2706
|
-
type:
|
|
2702
|
+
type: E.argument,
|
|
2707
2703
|
// value does not include the opening and closing braces.
|
|
2708
2704
|
value: i,
|
|
2709
2705
|
location: p(n, this.clonePosition())
|
|
@@ -2716,15 +2712,15 @@ var Dr = (
|
|
|
2716
2712
|
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2717
2713
|
}
|
|
2718
2714
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2719
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2715
|
+
var t = this.clonePosition(), r = this.offset(), n = ye(this.message, r), i = r + n.length;
|
|
2720
2716
|
this.bumpTo(i);
|
|
2721
|
-
var s = this.clonePosition(),
|
|
2722
|
-
return { value: n, location:
|
|
2717
|
+
var s = this.clonePosition(), h = p(t, s);
|
|
2718
|
+
return { value: n, location: h };
|
|
2723
2719
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2724
|
-
var s,
|
|
2720
|
+
var s, h = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2725
2721
|
switch (o) {
|
|
2726
2722
|
case "":
|
|
2727
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, p(
|
|
2723
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(h, f));
|
|
2728
2724
|
case "number":
|
|
2729
2725
|
case "date":
|
|
2730
2726
|
case "time": {
|
|
@@ -2732,47 +2728,47 @@ var Dr = (
|
|
|
2732
2728
|
var a = null;
|
|
2733
2729
|
if (this.bumpIf(",")) {
|
|
2734
2730
|
this.bumpSpace();
|
|
2735
|
-
var
|
|
2731
|
+
var u = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
|
|
2736
2732
|
if (l.err)
|
|
2737
2733
|
return l;
|
|
2738
|
-
var c =
|
|
2734
|
+
var c = Ur(l.val);
|
|
2739
2735
|
if (c.length === 0)
|
|
2740
2736
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2741
|
-
var
|
|
2742
|
-
a = { style: c, styleLocation:
|
|
2737
|
+
var b = p(u, this.clonePosition());
|
|
2738
|
+
a = { style: c, styleLocation: b };
|
|
2743
2739
|
}
|
|
2744
|
-
var
|
|
2745
|
-
if (
|
|
2746
|
-
return
|
|
2740
|
+
var g = this.tryParseArgumentClose(i);
|
|
2741
|
+
if (g.err)
|
|
2742
|
+
return g;
|
|
2747
2743
|
var x = p(i, this.clonePosition());
|
|
2748
2744
|
if (a && De(a?.style, "::", 0)) {
|
|
2749
|
-
var
|
|
2745
|
+
var H = Rr(a.style.slice(2));
|
|
2750
2746
|
if (o === "number") {
|
|
2751
|
-
var l = this.parseNumberSkeletonFromString(
|
|
2747
|
+
var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
|
|
2752
2748
|
return l.err ? l : {
|
|
2753
|
-
val: { type:
|
|
2749
|
+
val: { type: E.number, value: n, location: x, style: l.val },
|
|
2754
2750
|
err: null
|
|
2755
2751
|
};
|
|
2756
2752
|
} else {
|
|
2757
|
-
if (
|
|
2753
|
+
if (H.length === 0)
|
|
2758
2754
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
|
|
2759
|
-
var
|
|
2760
|
-
this.locale && (
|
|
2755
|
+
var D = H;
|
|
2756
|
+
this.locale && (D = Tr(H, this.locale));
|
|
2761
2757
|
var c = {
|
|
2762
|
-
type:
|
|
2763
|
-
pattern:
|
|
2758
|
+
type: L.dateTime,
|
|
2759
|
+
pattern: D,
|
|
2764
2760
|
location: a.styleLocation,
|
|
2765
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2766
|
-
},
|
|
2761
|
+
parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
|
|
2762
|
+
}, A = o === "date" ? E.date : E.time;
|
|
2767
2763
|
return {
|
|
2768
|
-
val: { type:
|
|
2764
|
+
val: { type: A, value: n, location: x, style: c },
|
|
2769
2765
|
err: null
|
|
2770
2766
|
};
|
|
2771
2767
|
}
|
|
2772
2768
|
}
|
|
2773
2769
|
return {
|
|
2774
2770
|
val: {
|
|
2775
|
-
type: o === "number" ?
|
|
2771
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2776
2772
|
value: n,
|
|
2777
2773
|
location: x,
|
|
2778
2774
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2785,47 +2781,47 @@ var Dr = (
|
|
|
2785
2781
|
case "select": {
|
|
2786
2782
|
var _ = this.clonePosition();
|
|
2787
2783
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2788
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(_,
|
|
2784
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(_, d({}, _)));
|
|
2789
2785
|
this.bumpSpace();
|
|
2790
|
-
var
|
|
2791
|
-
if (o !== "select" &&
|
|
2786
|
+
var F = this.parseIdentifierIfPossible(), S = 0;
|
|
2787
|
+
if (o !== "select" && F.value === "offset") {
|
|
2792
2788
|
if (!this.bumpIf(":"))
|
|
2793
2789
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2794
2790
|
this.bumpSpace();
|
|
2795
2791
|
var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2796
2792
|
if (l.err)
|
|
2797
2793
|
return l;
|
|
2798
|
-
this.bumpSpace(),
|
|
2794
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
|
|
2799
2795
|
}
|
|
2800
|
-
var
|
|
2801
|
-
if (
|
|
2802
|
-
return
|
|
2803
|
-
var
|
|
2804
|
-
if (
|
|
2805
|
-
return
|
|
2806
|
-
var
|
|
2796
|
+
var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
|
|
2797
|
+
if (Z.err)
|
|
2798
|
+
return Z;
|
|
2799
|
+
var g = this.tryParseArgumentClose(i);
|
|
2800
|
+
if (g.err)
|
|
2801
|
+
return g;
|
|
2802
|
+
var Ie = p(i, this.clonePosition());
|
|
2807
2803
|
return o === "select" ? {
|
|
2808
2804
|
val: {
|
|
2809
|
-
type:
|
|
2805
|
+
type: E.select,
|
|
2810
2806
|
value: n,
|
|
2811
|
-
options: Fe(
|
|
2812
|
-
location:
|
|
2807
|
+
options: Fe(Z.val),
|
|
2808
|
+
location: Ie
|
|
2813
2809
|
},
|
|
2814
2810
|
err: null
|
|
2815
2811
|
} : {
|
|
2816
2812
|
val: {
|
|
2817
|
-
type:
|
|
2813
|
+
type: E.plural,
|
|
2818
2814
|
value: n,
|
|
2819
|
-
options: Fe(
|
|
2820
|
-
offset:
|
|
2815
|
+
options: Fe(Z.val),
|
|
2816
|
+
offset: S,
|
|
2821
2817
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2822
|
-
location:
|
|
2818
|
+
location: Ie
|
|
2823
2819
|
},
|
|
2824
2820
|
err: null
|
|
2825
2821
|
};
|
|
2826
2822
|
}
|
|
2827
2823
|
default:
|
|
2828
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, p(
|
|
2824
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(h, f));
|
|
2829
2825
|
}
|
|
2830
2826
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2831
2827
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2867,64 +2863,64 @@ var Dr = (
|
|
|
2867
2863
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2868
2864
|
var n = [];
|
|
2869
2865
|
try {
|
|
2870
|
-
n =
|
|
2866
|
+
n = yr(t);
|
|
2871
2867
|
} catch {
|
|
2872
2868
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2873
2869
|
}
|
|
2874
2870
|
return {
|
|
2875
2871
|
val: {
|
|
2876
|
-
type:
|
|
2872
|
+
type: L.number,
|
|
2877
2873
|
tokens: n,
|
|
2878
2874
|
location: r,
|
|
2879
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
|
|
2880
2876
|
},
|
|
2881
2877
|
err: null
|
|
2882
2878
|
};
|
|
2883
2879
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2884
|
-
for (var s,
|
|
2880
|
+
for (var s, h = !1, o = [], f = /* @__PURE__ */ new Set(), a = i.value, u = i.location; ; ) {
|
|
2885
2881
|
if (a.length === 0) {
|
|
2886
2882
|
var l = this.clonePosition();
|
|
2887
2883
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2888
2884
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2889
2885
|
if (c.err)
|
|
2890
2886
|
return c;
|
|
2891
|
-
|
|
2887
|
+
u = p(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
|
|
2892
2888
|
} else
|
|
2893
2889
|
break;
|
|
2894
2890
|
}
|
|
2895
2891
|
if (f.has(a))
|
|
2896
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2897
|
-
a === "other" && (
|
|
2898
|
-
var
|
|
2892
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
2893
|
+
a === "other" && (h = !0), this.bumpSpace();
|
|
2894
|
+
var b = this.clonePosition();
|
|
2899
2895
|
if (!this.bumpIf("{"))
|
|
2900
2896
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
2901
|
-
var
|
|
2902
|
-
if (
|
|
2903
|
-
return
|
|
2904
|
-
var x = this.tryParseArgumentClose(
|
|
2897
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
2898
|
+
if (g.err)
|
|
2899
|
+
return g;
|
|
2900
|
+
var x = this.tryParseArgumentClose(b);
|
|
2905
2901
|
if (x.err)
|
|
2906
2902
|
return x;
|
|
2907
2903
|
o.push([
|
|
2908
2904
|
a,
|
|
2909
2905
|
{
|
|
2910
|
-
value:
|
|
2911
|
-
location: p(
|
|
2906
|
+
value: g.val,
|
|
2907
|
+
location: p(b, this.clonePosition())
|
|
2912
2908
|
}
|
|
2913
|
-
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value,
|
|
2909
|
+
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, u = s.location;
|
|
2914
2910
|
}
|
|
2915
|
-
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
2911
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !h ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2916
2912
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2917
2913
|
var n = 1, i = this.clonePosition();
|
|
2918
2914
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2919
|
-
for (var s = !1,
|
|
2915
|
+
for (var s = !1, h = 0; !this.isEOF(); ) {
|
|
2920
2916
|
var o = this.char();
|
|
2921
2917
|
if (o >= 48 && o <= 57)
|
|
2922
|
-
s = !0,
|
|
2918
|
+
s = !0, h = h * 10 + (o - 48), this.bump();
|
|
2923
2919
|
else
|
|
2924
2920
|
break;
|
|
2925
2921
|
}
|
|
2926
2922
|
var f = p(i, this.clonePosition());
|
|
2927
|
-
return s ? (
|
|
2923
|
+
return s ? (h *= n, Mr(h) ? { val: h, err: null } : this.error(r, f)) : this.error(t, f);
|
|
2928
2924
|
}, e.prototype.offset = function() {
|
|
2929
2925
|
return this.position.offset;
|
|
2930
2926
|
}, e.prototype.isEOF = function() {
|
|
@@ -2990,47 +2986,47 @@ var Dr = (
|
|
|
2990
2986
|
}, e;
|
|
2991
2987
|
}()
|
|
2992
2988
|
);
|
|
2993
|
-
function
|
|
2989
|
+
function xe(e) {
|
|
2994
2990
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2995
2991
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return
|
|
2992
|
+
function Dr(e) {
|
|
2993
|
+
return xe(e) || e === 47;
|
|
2998
2994
|
}
|
|
2999
|
-
function
|
|
2995
|
+
function Fr(e) {
|
|
3000
2996
|
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;
|
|
3001
2997
|
}
|
|
3002
2998
|
function Et(e) {
|
|
3003
2999
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3004
3000
|
}
|
|
3005
|
-
function
|
|
3001
|
+
function jr(e) {
|
|
3006
3002
|
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;
|
|
3007
3003
|
}
|
|
3008
|
-
function
|
|
3004
|
+
function ve(e) {
|
|
3009
3005
|
e.forEach(function(t) {
|
|
3010
|
-
if (delete t.location,
|
|
3006
|
+
if (delete t.location, ht(t) || ut(t))
|
|
3011
3007
|
for (var r in t.options)
|
|
3012
|
-
delete t.options[r].location,
|
|
3008
|
+
delete t.options[r].location, ve(t.options[r].value);
|
|
3013
3009
|
else
|
|
3014
|
-
st(t) && ft(t.style) || (ot(t) || at(t)) &&
|
|
3010
|
+
st(t) && ft(t.style) || (ot(t) || at(t)) && be(t.style) ? delete t.style.location : lt(t) && ve(t.children);
|
|
3015
3011
|
});
|
|
3016
3012
|
}
|
|
3017
|
-
function
|
|
3018
|
-
t === void 0 && (t = {}), t =
|
|
3019
|
-
var r = new
|
|
3013
|
+
function Vr(e, t) {
|
|
3014
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3015
|
+
var r = new Gr(e, t).parse();
|
|
3020
3016
|
if (r.err) {
|
|
3021
3017
|
var n = SyntaxError(m[r.err.kind]);
|
|
3022
3018
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3023
3019
|
}
|
|
3024
|
-
return t?.captureLocation ||
|
|
3020
|
+
return t?.captureLocation || ve(r.val), r.val;
|
|
3025
3021
|
}
|
|
3026
|
-
var
|
|
3022
|
+
var M;
|
|
3027
3023
|
(function(e) {
|
|
3028
3024
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3029
|
-
})(
|
|
3030
|
-
var
|
|
3025
|
+
})(M || (M = {}));
|
|
3026
|
+
var ne = (
|
|
3031
3027
|
/** @class */
|
|
3032
3028
|
function(e) {
|
|
3033
|
-
|
|
3029
|
+
re(t, e);
|
|
3034
3030
|
function t(r, n, i) {
|
|
3035
3031
|
var s = e.call(this, r) || this;
|
|
3036
3032
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3042,30 +3038,30 @@ var se = (
|
|
|
3042
3038
|
), Ve = (
|
|
3043
3039
|
/** @class */
|
|
3044
3040
|
function(e) {
|
|
3045
|
-
|
|
3041
|
+
re(t, e);
|
|
3046
3042
|
function t(r, n, i, s) {
|
|
3047
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3043
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
|
|
3048
3044
|
}
|
|
3049
3045
|
return t;
|
|
3050
|
-
}(
|
|
3051
|
-
),
|
|
3046
|
+
}(ne)
|
|
3047
|
+
), kr = (
|
|
3052
3048
|
/** @class */
|
|
3053
3049
|
function(e) {
|
|
3054
|
-
|
|
3050
|
+
re(t, e);
|
|
3055
3051
|
function t(r, n, i) {
|
|
3056
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3052
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
|
|
3057
3053
|
}
|
|
3058
3054
|
return t;
|
|
3059
|
-
}(
|
|
3060
|
-
),
|
|
3055
|
+
}(ne)
|
|
3056
|
+
), Xr = (
|
|
3061
3057
|
/** @class */
|
|
3062
3058
|
function(e) {
|
|
3063
|
-
|
|
3059
|
+
re(t, e);
|
|
3064
3060
|
function t(r, n) {
|
|
3065
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3061
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
|
|
3066
3062
|
}
|
|
3067
3063
|
return t;
|
|
3068
|
-
}(
|
|
3064
|
+
}(ne)
|
|
3069
3065
|
), y;
|
|
3070
3066
|
(function(e) {
|
|
3071
3067
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3076,10 +3072,10 @@ function zr(e) {
|
|
|
3076
3072
|
return !n || n.type !== y.literal || r.type !== y.literal ? t.push(r) : n.value += r.value, t;
|
|
3077
3073
|
}, []);
|
|
3078
3074
|
}
|
|
3079
|
-
function
|
|
3075
|
+
function Wr(e) {
|
|
3080
3076
|
return typeof e == "function";
|
|
3081
3077
|
}
|
|
3082
|
-
function
|
|
3078
|
+
function q(e, t, r, n, i, s, h) {
|
|
3083
3079
|
if (e.length === 1 && Ce(e[0]))
|
|
3084
3080
|
return [
|
|
3085
3081
|
{
|
|
@@ -3088,106 +3084,106 @@ function Y(e, t, r, n, i, s, u) {
|
|
|
3088
3084
|
}
|
|
3089
3085
|
];
|
|
3090
3086
|
for (var o = [], f = 0, a = e; f < a.length; f++) {
|
|
3091
|
-
var
|
|
3092
|
-
if (Ce(
|
|
3087
|
+
var u = a[f];
|
|
3088
|
+
if (Ce(u)) {
|
|
3093
3089
|
o.push({
|
|
3094
3090
|
type: y.literal,
|
|
3095
|
-
value:
|
|
3091
|
+
value: u.value
|
|
3096
3092
|
});
|
|
3097
3093
|
continue;
|
|
3098
3094
|
}
|
|
3099
|
-
if (
|
|
3095
|
+
if (dr(u)) {
|
|
3100
3096
|
typeof s == "number" && o.push({
|
|
3101
3097
|
type: y.literal,
|
|
3102
3098
|
value: r.getNumberFormat(t).format(s)
|
|
3103
3099
|
});
|
|
3104
3100
|
continue;
|
|
3105
3101
|
}
|
|
3106
|
-
var l =
|
|
3102
|
+
var l = u.value;
|
|
3107
3103
|
if (!(i && l in i))
|
|
3108
|
-
throw new
|
|
3104
|
+
throw new Xr(l, h);
|
|
3109
3105
|
var c = i[l];
|
|
3110
|
-
if (
|
|
3106
|
+
if (pr(u)) {
|
|
3111
3107
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3112
3108
|
type: typeof c == "string" ? y.literal : y.object,
|
|
3113
3109
|
value: c
|
|
3114
3110
|
});
|
|
3115
3111
|
continue;
|
|
3116
3112
|
}
|
|
3117
|
-
if (ot(
|
|
3118
|
-
var
|
|
3113
|
+
if (ot(u)) {
|
|
3114
|
+
var b = typeof u.style == "string" ? n.date[u.style] : be(u.style) ? u.style.parsedOptions : void 0;
|
|
3119
3115
|
o.push({
|
|
3120
3116
|
type: y.literal,
|
|
3121
|
-
value: r.getDateTimeFormat(t,
|
|
3117
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3122
3118
|
});
|
|
3123
3119
|
continue;
|
|
3124
3120
|
}
|
|
3125
|
-
if (at(
|
|
3126
|
-
var
|
|
3121
|
+
if (at(u)) {
|
|
3122
|
+
var b = typeof u.style == "string" ? n.time[u.style] : be(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3127
3123
|
o.push({
|
|
3128
3124
|
type: y.literal,
|
|
3129
|
-
value: r.getDateTimeFormat(t,
|
|
3125
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3130
3126
|
});
|
|
3131
3127
|
continue;
|
|
3132
3128
|
}
|
|
3133
|
-
if (st(
|
|
3134
|
-
var
|
|
3135
|
-
|
|
3129
|
+
if (st(u)) {
|
|
3130
|
+
var b = typeof u.style == "string" ? n.number[u.style] : ft(u.style) ? u.style.parsedOptions : void 0;
|
|
3131
|
+
b && b.scale && (c = c * (b.scale || 1)), o.push({
|
|
3136
3132
|
type: y.literal,
|
|
3137
|
-
value: r.getNumberFormat(t,
|
|
3133
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3138
3134
|
});
|
|
3139
3135
|
continue;
|
|
3140
3136
|
}
|
|
3141
|
-
if (lt(
|
|
3142
|
-
var
|
|
3143
|
-
if (!
|
|
3144
|
-
throw new
|
|
3145
|
-
var
|
|
3146
|
-
return
|
|
3137
|
+
if (lt(u)) {
|
|
3138
|
+
var g = u.children, x = u.value, H = i[x];
|
|
3139
|
+
if (!Wr(H))
|
|
3140
|
+
throw new kr(x, "function", h);
|
|
3141
|
+
var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
|
|
3142
|
+
return S.value;
|
|
3147
3143
|
}));
|
|
3148
|
-
Array.isArray(
|
|
3144
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
|
|
3149
3145
|
return {
|
|
3150
|
-
type: typeof
|
|
3151
|
-
value:
|
|
3146
|
+
type: typeof S == "string" ? y.literal : y.object,
|
|
3147
|
+
value: S
|
|
3152
3148
|
};
|
|
3153
3149
|
}));
|
|
3154
3150
|
}
|
|
3155
|
-
if (
|
|
3156
|
-
var _ =
|
|
3151
|
+
if (ht(u)) {
|
|
3152
|
+
var _ = u.options[c] || u.options.other;
|
|
3157
3153
|
if (!_)
|
|
3158
|
-
throw new Ve(
|
|
3159
|
-
o.push.apply(o,
|
|
3154
|
+
throw new Ve(u.value, c, Object.keys(u.options), h);
|
|
3155
|
+
o.push.apply(o, q(_.value, t, r, n, i));
|
|
3160
3156
|
continue;
|
|
3161
3157
|
}
|
|
3162
|
-
if (
|
|
3163
|
-
var _ =
|
|
3158
|
+
if (ut(u)) {
|
|
3159
|
+
var _ = u.options["=".concat(c)];
|
|
3164
3160
|
if (!_) {
|
|
3165
3161
|
if (!Intl.PluralRules)
|
|
3166
|
-
throw new
|
|
3162
|
+
throw new ne(`Intl.PluralRules is not available in this environment.
|
|
3167
3163
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3168
|
-
`,
|
|
3169
|
-
var
|
|
3170
|
-
_ =
|
|
3164
|
+
`, M.MISSING_INTL_API, h);
|
|
3165
|
+
var F = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3166
|
+
_ = u.options[F] || u.options.other;
|
|
3171
3167
|
}
|
|
3172
3168
|
if (!_)
|
|
3173
|
-
throw new Ve(
|
|
3174
|
-
o.push.apply(o,
|
|
3169
|
+
throw new Ve(u.value, c, Object.keys(u.options), h);
|
|
3170
|
+
o.push.apply(o, q(_.value, t, r, n, i, c - (u.offset || 0)));
|
|
3175
3171
|
continue;
|
|
3176
3172
|
}
|
|
3177
3173
|
}
|
|
3178
3174
|
return zr(o);
|
|
3179
3175
|
}
|
|
3180
|
-
function
|
|
3181
|
-
return t ?
|
|
3182
|
-
return r[n] =
|
|
3176
|
+
function Zr(e, t) {
|
|
3177
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3178
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3183
3179
|
}, {})) : e;
|
|
3184
3180
|
}
|
|
3185
|
-
function
|
|
3181
|
+
function Qr(e, t) {
|
|
3186
3182
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3187
|
-
return r[n] =
|
|
3188
|
-
},
|
|
3183
|
+
return r[n] = Zr(e[n], t[n]), r;
|
|
3184
|
+
}, d({}, e)) : e;
|
|
3189
3185
|
}
|
|
3190
|
-
function
|
|
3186
|
+
function fe(e) {
|
|
3191
3187
|
return {
|
|
3192
3188
|
create: function() {
|
|
3193
3189
|
return {
|
|
@@ -3201,39 +3197,39 @@ function me(e) {
|
|
|
3201
3197
|
}
|
|
3202
3198
|
};
|
|
3203
3199
|
}
|
|
3204
|
-
function
|
|
3200
|
+
function Jr(e) {
|
|
3205
3201
|
return e === void 0 && (e = {
|
|
3206
3202
|
number: {},
|
|
3207
3203
|
dateTime: {},
|
|
3208
3204
|
pluralRules: {}
|
|
3209
3205
|
}), {
|
|
3210
|
-
getNumberFormat:
|
|
3206
|
+
getNumberFormat: he(function() {
|
|
3211
3207
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3212
3208
|
r[n] = arguments[n];
|
|
3213
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3209
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3214
3210
|
}, {
|
|
3215
|
-
cache:
|
|
3216
|
-
strategy:
|
|
3211
|
+
cache: fe(e.number),
|
|
3212
|
+
strategy: ue.variadic
|
|
3217
3213
|
}),
|
|
3218
|
-
getDateTimeFormat:
|
|
3214
|
+
getDateTimeFormat: he(function() {
|
|
3219
3215
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3220
3216
|
r[n] = arguments[n];
|
|
3221
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3217
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3222
3218
|
}, {
|
|
3223
|
-
cache:
|
|
3224
|
-
strategy:
|
|
3219
|
+
cache: fe(e.dateTime),
|
|
3220
|
+
strategy: ue.variadic
|
|
3225
3221
|
}),
|
|
3226
|
-
getPluralRules:
|
|
3222
|
+
getPluralRules: he(function() {
|
|
3227
3223
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3228
3224
|
r[n] = arguments[n];
|
|
3229
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3225
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
|
|
3230
3226
|
}, {
|
|
3231
|
-
cache:
|
|
3232
|
-
strategy:
|
|
3227
|
+
cache: fe(e.pluralRules),
|
|
3228
|
+
strategy: ue.variadic
|
|
3233
3229
|
})
|
|
3234
3230
|
};
|
|
3235
3231
|
}
|
|
3236
|
-
var
|
|
3232
|
+
var qr = (
|
|
3237
3233
|
/** @class */
|
|
3238
3234
|
function() {
|
|
3239
3235
|
function e(t, r, n, i) {
|
|
@@ -3247,12 +3243,12 @@ var Yr = (
|
|
|
3247
3243
|
var a = s.formatToParts(f);
|
|
3248
3244
|
if (a.length === 1)
|
|
3249
3245
|
return a[0].value;
|
|
3250
|
-
var
|
|
3246
|
+
var u = a.reduce(function(l, c) {
|
|
3251
3247
|
return !l.length || c.type !== y.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
|
|
3252
3248
|
}, []);
|
|
3253
|
-
return
|
|
3249
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3254
3250
|
}, this.formatToParts = function(f) {
|
|
3255
|
-
return
|
|
3251
|
+
return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3256
3252
|
}, this.resolvedOptions = function() {
|
|
3257
3253
|
var f;
|
|
3258
3254
|
return {
|
|
@@ -3263,15 +3259,15 @@ var Yr = (
|
|
|
3263
3259
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3264
3260
|
if (this.message = t, !e.__parse)
|
|
3265
3261
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3266
|
-
var
|
|
3267
|
-
|
|
3268
|
-
var o = ar(
|
|
3269
|
-
this.ast = e.__parse(t,
|
|
3262
|
+
var h = i || {};
|
|
3263
|
+
h.formatters;
|
|
3264
|
+
var o = ar(h, ["formatters"]);
|
|
3265
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
|
3270
3266
|
} else
|
|
3271
3267
|
this.ast = t;
|
|
3272
3268
|
if (!Array.isArray(this.ast))
|
|
3273
3269
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3274
|
-
this.formats =
|
|
3270
|
+
this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
|
|
3275
3271
|
}
|
|
3276
3272
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3277
3273
|
get: function() {
|
|
@@ -3284,7 +3280,7 @@ var Yr = (
|
|
|
3284
3280
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3285
3281
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3286
3282
|
}
|
|
3287
|
-
}, e.__parse =
|
|
3283
|
+
}, e.__parse = Vr, e.formats = {
|
|
3288
3284
|
number: {
|
|
3289
3285
|
integer: {
|
|
3290
3286
|
maximumFractionDigits: 0
|
|
@@ -3345,7 +3341,7 @@ var Yr = (
|
|
|
3345
3341
|
}, e;
|
|
3346
3342
|
}()
|
|
3347
3343
|
);
|
|
3348
|
-
function
|
|
3344
|
+
function Yr(e, t) {
|
|
3349
3345
|
if (t == null)
|
|
3350
3346
|
return;
|
|
3351
3347
|
if (t in e)
|
|
@@ -3366,36 +3362,36 @@ function Kr(e, t) {
|
|
|
3366
3362
|
n = void 0;
|
|
3367
3363
|
return n;
|
|
3368
3364
|
}
|
|
3369
|
-
const T = {},
|
|
3365
|
+
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), yt = (e, t) => {
|
|
3370
3366
|
if (t == null)
|
|
3371
3367
|
return;
|
|
3372
3368
|
if (t in T && e in T[t])
|
|
3373
3369
|
return T[t][e];
|
|
3374
|
-
const r =
|
|
3370
|
+
const r = ie(t);
|
|
3375
3371
|
for (let n = 0; n < r.length; n++) {
|
|
3376
|
-
const i = r[n], s =
|
|
3372
|
+
const i = r[n], s = tn(i, e);
|
|
3377
3373
|
if (s)
|
|
3378
|
-
return
|
|
3374
|
+
return Kr(e, t, s);
|
|
3379
3375
|
}
|
|
3380
3376
|
};
|
|
3381
|
-
let
|
|
3382
|
-
const
|
|
3383
|
-
function
|
|
3384
|
-
return
|
|
3377
|
+
let Ne;
|
|
3378
|
+
const W = te({});
|
|
3379
|
+
function en(e) {
|
|
3380
|
+
return Ne[e] || null;
|
|
3385
3381
|
}
|
|
3386
3382
|
function xt(e) {
|
|
3387
|
-
return e in
|
|
3383
|
+
return e in Ne;
|
|
3388
3384
|
}
|
|
3389
|
-
function
|
|
3385
|
+
function tn(e, t) {
|
|
3390
3386
|
if (!xt(e))
|
|
3391
3387
|
return null;
|
|
3392
|
-
const r =
|
|
3393
|
-
return
|
|
3388
|
+
const r = en(e);
|
|
3389
|
+
return Yr(r, t);
|
|
3394
3390
|
}
|
|
3395
|
-
function
|
|
3391
|
+
function rn(e) {
|
|
3396
3392
|
if (e == null)
|
|
3397
3393
|
return;
|
|
3398
|
-
const t =
|
|
3394
|
+
const t = ie(e);
|
|
3399
3395
|
for (let r = 0; r < t.length; r++) {
|
|
3400
3396
|
const n = t[r];
|
|
3401
3397
|
if (xt(n))
|
|
@@ -3403,55 +3399,55 @@ function nn(e) {
|
|
|
3403
3399
|
}
|
|
3404
3400
|
}
|
|
3405
3401
|
function vt(e, ...t) {
|
|
3406
|
-
delete T[e],
|
|
3402
|
+
delete T[e], W.update((r) => (r[e] = or.all([r[e] || {}, ...t]), r));
|
|
3407
3403
|
}
|
|
3408
|
-
|
|
3409
|
-
[
|
|
3404
|
+
R(
|
|
3405
|
+
[W],
|
|
3410
3406
|
([e]) => Object.keys(e)
|
|
3411
3407
|
);
|
|
3412
|
-
|
|
3413
|
-
const
|
|
3414
|
-
function
|
|
3415
|
-
|
|
3408
|
+
W.subscribe((e) => Ne = e);
|
|
3409
|
+
const Y = {};
|
|
3410
|
+
function nn(e, t) {
|
|
3411
|
+
Y[e].delete(t), Y[e].size === 0 && delete Y[e];
|
|
3416
3412
|
}
|
|
3417
3413
|
function _t(e) {
|
|
3418
|
-
return
|
|
3414
|
+
return Y[e];
|
|
3419
3415
|
}
|
|
3420
|
-
function
|
|
3421
|
-
return
|
|
3416
|
+
function sn(e) {
|
|
3417
|
+
return ie(e).map((t) => {
|
|
3422
3418
|
const r = _t(t);
|
|
3423
3419
|
return [t, r ? [...r] : []];
|
|
3424
3420
|
}).filter(([, t]) => t.length > 0);
|
|
3425
3421
|
}
|
|
3426
|
-
function
|
|
3427
|
-
return e == null ? !1 :
|
|
3422
|
+
function _e(e) {
|
|
3423
|
+
return e == null ? !1 : ie(e).some(
|
|
3428
3424
|
(t) => {
|
|
3429
3425
|
var r;
|
|
3430
3426
|
return (r = _t(t)) == null ? void 0 : r.size;
|
|
3431
3427
|
}
|
|
3432
3428
|
);
|
|
3433
3429
|
}
|
|
3434
|
-
function
|
|
3430
|
+
function on(e, t) {
|
|
3435
3431
|
return Promise.all(
|
|
3436
|
-
t.map((n) => (
|
|
3432
|
+
t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
|
|
3437
3433
|
).then((n) => vt(e, ...n));
|
|
3438
3434
|
}
|
|
3439
|
-
const
|
|
3435
|
+
const j = {};
|
|
3440
3436
|
function Ht(e) {
|
|
3441
|
-
if (!
|
|
3442
|
-
return e in
|
|
3443
|
-
const t =
|
|
3444
|
-
return
|
|
3437
|
+
if (!_e(e))
|
|
3438
|
+
return e in j ? j[e] : Promise.resolve();
|
|
3439
|
+
const t = sn(e);
|
|
3440
|
+
return j[e] = Promise.all(
|
|
3445
3441
|
t.map(
|
|
3446
|
-
([r, n]) =>
|
|
3442
|
+
([r, n]) => on(r, n)
|
|
3447
3443
|
)
|
|
3448
3444
|
).then(() => {
|
|
3449
|
-
if (
|
|
3445
|
+
if (_e(e))
|
|
3450
3446
|
return Ht(e);
|
|
3451
|
-
delete
|
|
3452
|
-
}),
|
|
3447
|
+
delete j[e];
|
|
3448
|
+
}), j[e];
|
|
3453
3449
|
}
|
|
3454
|
-
const
|
|
3450
|
+
const an = {
|
|
3455
3451
|
number: {
|
|
3456
3452
|
scientific: { notation: "scientific" },
|
|
3457
3453
|
engineering: { notation: "engineering" },
|
|
@@ -3483,156 +3479,156 @@ const un = {
|
|
|
3483
3479
|
}, hn = {
|
|
3484
3480
|
fallbackLocale: null,
|
|
3485
3481
|
loadingDelay: 200,
|
|
3486
|
-
formats:
|
|
3482
|
+
formats: an,
|
|
3487
3483
|
warnOnMissingMessages: !0,
|
|
3488
3484
|
handleMissingMessage: void 0,
|
|
3489
3485
|
ignoreTag: !0
|
|
3490
|
-
},
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3486
|
+
}, un = hn;
|
|
3487
|
+
function C() {
|
|
3488
|
+
return un;
|
|
3493
3489
|
}
|
|
3494
|
-
const
|
|
3495
|
-
var
|
|
3490
|
+
const ce = te(!1);
|
|
3491
|
+
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, ke = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable, Xe = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dn = (e, t) => {
|
|
3496
3492
|
for (var r in t || (t = {}))
|
|
3497
|
-
|
|
3493
|
+
mn.call(t, r) && Xe(e, r, t[r]);
|
|
3498
3494
|
if (ke)
|
|
3499
3495
|
for (var r of ke(t))
|
|
3500
|
-
|
|
3496
|
+
pn.call(t, r) && Xe(e, r, t[r]);
|
|
3501
3497
|
return e;
|
|
3502
|
-
},
|
|
3503
|
-
let
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3498
|
+
}, bn = (e, t) => fn(e, cn(t));
|
|
3499
|
+
let He;
|
|
3500
|
+
const K = te(null);
|
|
3501
|
+
function ze(e) {
|
|
3506
3502
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3507
3503
|
}
|
|
3508
|
-
function
|
|
3509
|
-
const r =
|
|
3510
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3504
|
+
function ie(e, t = C().fallbackLocale) {
|
|
3505
|
+
const r = ze(e);
|
|
3506
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ze(t)])] : r;
|
|
3511
3507
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3508
|
+
function B() {
|
|
3509
|
+
return He ?? void 0;
|
|
3514
3510
|
}
|
|
3515
|
-
|
|
3516
|
-
|
|
3511
|
+
K.subscribe((e) => {
|
|
3512
|
+
He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3517
3513
|
});
|
|
3518
|
-
const
|
|
3519
|
-
if (e &&
|
|
3520
|
-
const { loadingDelay: t } =
|
|
3514
|
+
const gn = (e) => {
|
|
3515
|
+
if (e && rn(e) && _e(e)) {
|
|
3516
|
+
const { loadingDelay: t } = C();
|
|
3521
3517
|
let r;
|
|
3522
|
-
return typeof window < "u" &&
|
|
3523
|
-
() =>
|
|
3518
|
+
return typeof window < "u" && B() != null && t ? r = window.setTimeout(
|
|
3519
|
+
() => ce.set(!0),
|
|
3524
3520
|
t
|
|
3525
|
-
) :
|
|
3526
|
-
|
|
3521
|
+
) : ce.set(!0), Ht(e).then(() => {
|
|
3522
|
+
K.set(e);
|
|
3527
3523
|
}).finally(() => {
|
|
3528
|
-
clearTimeout(r),
|
|
3524
|
+
clearTimeout(r), ce.set(!1);
|
|
3529
3525
|
});
|
|
3530
3526
|
}
|
|
3531
|
-
return
|
|
3532
|
-
},
|
|
3533
|
-
set:
|
|
3534
|
-
}),
|
|
3527
|
+
return K.set(e);
|
|
3528
|
+
}, U = bn(dn({}, K), {
|
|
3529
|
+
set: gn
|
|
3530
|
+
}), se = (e) => {
|
|
3535
3531
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3536
3532
|
return (n) => {
|
|
3537
3533
|
const i = JSON.stringify(n);
|
|
3538
3534
|
return i in t ? t[i] : t[i] = e(n);
|
|
3539
3535
|
};
|
|
3540
3536
|
};
|
|
3541
|
-
var
|
|
3537
|
+
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, St = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oe = (e, t) => {
|
|
3542
3538
|
for (var r in t || (t = {}))
|
|
3543
|
-
|
|
3544
|
-
if (
|
|
3545
|
-
for (var r of
|
|
3546
|
-
|
|
3539
|
+
Tt.call(t, r) && We(e, r, t[r]);
|
|
3540
|
+
if (ee)
|
|
3541
|
+
for (var r of ee(t))
|
|
3542
|
+
St.call(t, r) && We(e, r, t[r]);
|
|
3547
3543
|
return e;
|
|
3548
|
-
},
|
|
3544
|
+
}, G = (e, t) => {
|
|
3549
3545
|
var r = {};
|
|
3550
3546
|
for (var n in e)
|
|
3551
|
-
|
|
3552
|
-
if (e != null &&
|
|
3553
|
-
for (var n of
|
|
3554
|
-
t.indexOf(n) < 0 &&
|
|
3547
|
+
Tt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3548
|
+
if (e != null && ee)
|
|
3549
|
+
for (var n of ee(e))
|
|
3550
|
+
t.indexOf(n) < 0 && St.call(e, n) && (r[n] = e[n]);
|
|
3555
3551
|
return r;
|
|
3556
3552
|
};
|
|
3557
|
-
const
|
|
3558
|
-
const { formats: r } =
|
|
3553
|
+
const X = (e, t) => {
|
|
3554
|
+
const { formats: r } = C();
|
|
3559
3555
|
if (e in r && t in r[e])
|
|
3560
3556
|
return r[e][t];
|
|
3561
3557
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3562
|
-
},
|
|
3558
|
+
}, yn = se(
|
|
3563
3559
|
(e) => {
|
|
3564
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3560
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3565
3561
|
if (r == null)
|
|
3566
3562
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3567
|
-
return n && (i =
|
|
3563
|
+
return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
|
|
3568
3564
|
}
|
|
3569
|
-
),
|
|
3565
|
+
), xn = se(
|
|
3570
3566
|
(e) => {
|
|
3571
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3567
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3572
3568
|
if (r == null)
|
|
3573
3569
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3574
|
-
return n ? i =
|
|
3570
|
+
return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3575
3571
|
}
|
|
3576
|
-
),
|
|
3572
|
+
), vn = se(
|
|
3577
3573
|
(e) => {
|
|
3578
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3574
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3579
3575
|
if (r == null)
|
|
3580
3576
|
throw new Error(
|
|
3581
3577
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3582
3578
|
);
|
|
3583
|
-
return n ? i =
|
|
3579
|
+
return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3584
3580
|
}
|
|
3585
|
-
),
|
|
3581
|
+
), _n = (e = {}) => {
|
|
3586
3582
|
var t = e, {
|
|
3587
|
-
locale: r =
|
|
3588
|
-
} = t, n =
|
|
3583
|
+
locale: r = B()
|
|
3584
|
+
} = t, n = G(t, [
|
|
3589
3585
|
"locale"
|
|
3590
3586
|
]);
|
|
3591
|
-
return
|
|
3592
|
-
},
|
|
3587
|
+
return yn(Oe({ locale: r }, n));
|
|
3588
|
+
}, Hn = (e = {}) => {
|
|
3593
3589
|
var t = e, {
|
|
3594
|
-
locale: r =
|
|
3595
|
-
} = t, n =
|
|
3590
|
+
locale: r = B()
|
|
3591
|
+
} = t, n = G(t, [
|
|
3596
3592
|
"locale"
|
|
3597
3593
|
]);
|
|
3598
|
-
return
|
|
3594
|
+
return xn(Oe({ locale: r }, n));
|
|
3599
3595
|
}, Tn = (e = {}) => {
|
|
3600
3596
|
var t = e, {
|
|
3601
|
-
locale: r =
|
|
3602
|
-
} = t, n =
|
|
3597
|
+
locale: r = B()
|
|
3598
|
+
} = t, n = G(t, [
|
|
3603
3599
|
"locale"
|
|
3604
3600
|
]);
|
|
3605
|
-
return
|
|
3606
|
-
},
|
|
3601
|
+
return vn(Oe({ locale: r }, n));
|
|
3602
|
+
}, Sn = se(
|
|
3607
3603
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3608
|
-
(e, t =
|
|
3609
|
-
ignoreTag:
|
|
3604
|
+
(e, t = B()) => new qr(e, t, C().formats, {
|
|
3605
|
+
ignoreTag: C().ignoreTag
|
|
3610
3606
|
})
|
|
3611
|
-
),
|
|
3607
|
+
), Bn = (e, t = {}) => {
|
|
3612
3608
|
var r, n, i, s;
|
|
3613
|
-
let
|
|
3614
|
-
typeof e == "object" && (
|
|
3609
|
+
let h = t;
|
|
3610
|
+
typeof e == "object" && (h = e, e = h.id);
|
|
3615
3611
|
const {
|
|
3616
3612
|
values: o,
|
|
3617
|
-
locale: f =
|
|
3613
|
+
locale: f = B(),
|
|
3618
3614
|
default: a
|
|
3619
|
-
} =
|
|
3615
|
+
} = h;
|
|
3620
3616
|
if (f == null)
|
|
3621
3617
|
throw new Error(
|
|
3622
3618
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3623
3619
|
);
|
|
3624
|
-
let
|
|
3625
|
-
if (!
|
|
3626
|
-
|
|
3627
|
-
else if (typeof
|
|
3620
|
+
let u = yt(e, f);
|
|
3621
|
+
if (!u)
|
|
3622
|
+
u = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3623
|
+
else if (typeof u != "string")
|
|
3628
3624
|
return console.warn(
|
|
3629
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3630
|
-
),
|
|
3625
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3626
|
+
), u;
|
|
3631
3627
|
if (!o)
|
|
3632
|
-
return
|
|
3633
|
-
let l =
|
|
3628
|
+
return u;
|
|
3629
|
+
let l = u;
|
|
3634
3630
|
try {
|
|
3635
|
-
l =
|
|
3631
|
+
l = Sn(u, f).format(o);
|
|
3636
3632
|
} catch (c) {
|
|
3637
3633
|
c instanceof Error && console.warn(
|
|
3638
3634
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3640,16 +3636,16 @@ const W = (e, t) => {
|
|
|
3640
3636
|
);
|
|
3641
3637
|
}
|
|
3642
3638
|
return l;
|
|
3643
|
-
},
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3639
|
+
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => _n(t).format(e), On = (e, t = B()) => yt(e, t), In = R([U, W], () => Bn);
|
|
3640
|
+
R([U], () => An);
|
|
3641
|
+
R([U], () => Pn);
|
|
3642
|
+
R([U], () => Nn);
|
|
3643
|
+
R([U, W], () => On);
|
|
3648
3644
|
function Ze(e, t) {
|
|
3649
3645
|
vt(e, t);
|
|
3650
3646
|
}
|
|
3651
|
-
function
|
|
3652
|
-
|
|
3647
|
+
function wn(e) {
|
|
3648
|
+
U.set(e);
|
|
3653
3649
|
}
|
|
3654
3650
|
const Qe = {
|
|
3655
3651
|
en: {
|
|
@@ -3671,7 +3667,7 @@ const Qe = {
|
|
|
3671
3667
|
msgEmailVerificationSuccess: "Başarılı! E-posta adresiniz başarıyla doğrulandı"
|
|
3672
3668
|
}
|
|
3673
3669
|
};
|
|
3674
|
-
function
|
|
3670
|
+
function $n(e) {
|
|
3675
3671
|
let t;
|
|
3676
3672
|
return {
|
|
3677
3673
|
c() {
|
|
@@ -3684,18 +3680,18 @@ function Ln(e) {
|
|
|
3684
3680
|
i: v,
|
|
3685
3681
|
o: v,
|
|
3686
3682
|
d(r) {
|
|
3687
|
-
r &&
|
|
3683
|
+
r && Se(t);
|
|
3688
3684
|
}
|
|
3689
3685
|
};
|
|
3690
3686
|
}
|
|
3691
|
-
function
|
|
3687
|
+
function Ln(e, t, r) {
|
|
3692
3688
|
let n;
|
|
3693
3689
|
At(e, In, (l) => r(4, n = l));
|
|
3694
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key:
|
|
3690
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: h = "" } = t, { translationurl: o = "" } = t;
|
|
3695
3691
|
const f = () => {
|
|
3696
3692
|
fetch(o).then((c) => c.json()).then((c) => {
|
|
3697
|
-
Object.keys(c).forEach((
|
|
3698
|
-
Ze(
|
|
3693
|
+
Object.keys(c).forEach((b) => {
|
|
3694
|
+
Ze(b, c[b]);
|
|
3699
3695
|
});
|
|
3700
3696
|
}).catch((c) => {
|
|
3701
3697
|
console.log(c);
|
|
@@ -3705,17 +3701,17 @@ function Mn(e, t, r) {
|
|
|
3705
3701
|
Ze(l, Qe[l]);
|
|
3706
3702
|
});
|
|
3707
3703
|
const a = () => {
|
|
3708
|
-
|
|
3709
|
-
},
|
|
3710
|
-
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`),
|
|
3704
|
+
wn(i);
|
|
3705
|
+
}, u = () => {
|
|
3706
|
+
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3711
3707
|
method: "POST",
|
|
3712
3708
|
headers: {
|
|
3713
3709
|
"Content-Type": "application/json",
|
|
3714
3710
|
Accept: "application/json"
|
|
3715
3711
|
},
|
|
3716
|
-
body: JSON.stringify({ hashKey:
|
|
3712
|
+
body: JSON.stringify({ hashKey: h })
|
|
3717
3713
|
};
|
|
3718
|
-
fetch(l.href,
|
|
3714
|
+
fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3719
3715
|
{
|
|
3720
3716
|
type: "WidgetNotification",
|
|
3721
3717
|
data: {
|
|
@@ -3724,8 +3720,8 @@ function Mn(e, t, r) {
|
|
|
3724
3720
|
}
|
|
3725
3721
|
},
|
|
3726
3722
|
window.location.href
|
|
3727
|
-
)),
|
|
3728
|
-
window.postMessage({ type: "ActivatePlayerResponse", data:
|
|
3723
|
+
)), g.json())).then((g) => {
|
|
3724
|
+
window.postMessage({ type: "ActivatePlayerResponse", data: g }, window.location.href), g.error && (window.postMessage(
|
|
3729
3725
|
{
|
|
3730
3726
|
type: "WidgetNotification",
|
|
3731
3727
|
data: {
|
|
@@ -3743,7 +3739,7 @@ function Mn(e, t, r) {
|
|
|
3743
3739
|
}
|
|
3744
3740
|
},
|
|
3745
3741
|
window.location.href
|
|
3746
|
-
)),
|
|
3742
|
+
)), g.SESSION_ID && window.postMessage(
|
|
3747
3743
|
{
|
|
3748
3744
|
type: "WidgetNotification",
|
|
3749
3745
|
data: {
|
|
@@ -3756,17 +3752,17 @@ function Mn(e, t, r) {
|
|
|
3756
3752
|
});
|
|
3757
3753
|
};
|
|
3758
3754
|
return e.$$set = (l) => {
|
|
3759
|
-
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2,
|
|
3755
|
+
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, h = l.key), "translationurl" in l && r(3, o = l.translationurl);
|
|
3760
3756
|
}, e.$$.update = () => {
|
|
3761
3757
|
e.$$.dirty & /*lang*/
|
|
3762
3758
|
1 && i && a(), e.$$.dirty & /*translationurl*/
|
|
3763
3759
|
8 && o && f(), e.$$.dirty & /*endpoint, key*/
|
|
3764
|
-
6 && s &&
|
|
3765
|
-
}, [i, s,
|
|
3760
|
+
6 && s && h && u();
|
|
3761
|
+
}, [i, s, h, o];
|
|
3766
3762
|
}
|
|
3767
|
-
class
|
|
3763
|
+
class Mn extends jt {
|
|
3768
3764
|
constructor(t) {
|
|
3769
|
-
super(), Dt(this, t,
|
|
3765
|
+
super(), Dt(this, t, Ln, $n, qe, {
|
|
3770
3766
|
lang: 0,
|
|
3771
3767
|
endpoint: 1,
|
|
3772
3768
|
key: 2,
|
|
@@ -3798,7 +3794,7 @@ class Cn extends jt {
|
|
|
3798
3794
|
this.$$set({ translationurl: t }), I();
|
|
3799
3795
|
}
|
|
3800
3796
|
}
|
|
3801
|
-
Ft(
|
|
3797
|
+
Ft(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3802
3798
|
export {
|
|
3803
|
-
|
|
3799
|
+
Mn as P
|
|
3804
3800
|
};
|