@everymatrix/player-account-biometrics 1.54.12 → 1.55.0
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/{PlayerAccountBiometrics-Dv_ulOxS.js → PlayerAccountBiometrics-BFnSVNSu.js} +832 -810
- package/components/PlayerAccountBiometrics-DS7oKWzQ.cjs +5 -0
- package/components/{PlayerAccountBiometrics-Cw0rz_gd.js → PlayerAccountBiometrics-j3kXjzVq.js} +847 -825
- package/es2015/player-account-biometrics.cjs +1 -1
- package/es2015/player-account-biometrics.js +1 -1
- package/esnext/player-account-biometrics.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBiometrics-Byl5SETI.cjs +0 -5
package/components/{PlayerAccountBiometrics-Dv_ulOxS.js → PlayerAccountBiometrics-BFnSVNSu.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
function C() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Bt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function or(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Tt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
|
-
for (const
|
|
24
|
-
|
|
23
|
+
for (const n of t)
|
|
24
|
+
n(void 0);
|
|
25
25
|
return C;
|
|
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 sr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function E(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const
|
|
40
|
-
|
|
36
|
+
function ar(e, t, r) {
|
|
37
|
+
const n = ur(e);
|
|
38
|
+
if (!n.getElementById(t)) {
|
|
39
|
+
const i = I("style");
|
|
40
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ur(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,14 +49,14 @@ function nr(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function hr(e, t) {
|
|
53
53
|
return E(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
56
56
|
t
|
|
57
57
|
), t.sheet;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ze(e, t, r) {
|
|
60
60
|
e.insertBefore(t, r || null);
|
|
61
61
|
}
|
|
62
62
|
function de(e) {
|
|
@@ -74,20 +74,20 @@ function U(e) {
|
|
|
74
74
|
function te() {
|
|
75
75
|
return U(" ");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e.addEventListener(t, r,
|
|
77
|
+
function Ht(e, t, r, n) {
|
|
78
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
79
79
|
}
|
|
80
80
|
function B(e, t, r) {
|
|
81
81
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function lr(e) {
|
|
84
84
|
return Array.from(e.childNodes);
|
|
85
85
|
}
|
|
86
86
|
function re(e, t) {
|
|
87
87
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
88
88
|
t);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function cr(e) {
|
|
91
91
|
const t = {};
|
|
92
92
|
return e.childNodes.forEach(
|
|
93
93
|
/** @param {Element} node */
|
|
@@ -96,18 +96,18 @@ function ar(e) {
|
|
|
96
96
|
}
|
|
97
97
|
), t;
|
|
98
98
|
}
|
|
99
|
-
let
|
|
100
|
-
function
|
|
101
|
-
|
|
99
|
+
let Ze;
|
|
100
|
+
function ne(e) {
|
|
101
|
+
Ze = e;
|
|
102
102
|
}
|
|
103
|
-
const V = [],
|
|
103
|
+
const V = [], Oe = [];
|
|
104
104
|
let X = [];
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
function
|
|
108
|
-
|
|
105
|
+
const et = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
106
|
+
let Ie = !1;
|
|
107
|
+
function pr() {
|
|
108
|
+
Ie || (Ie = !0, fr.then(D));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ne(e) {
|
|
111
111
|
X.push(e);
|
|
112
112
|
}
|
|
113
113
|
const xe = /* @__PURE__ */ new Set();
|
|
@@ -115,67 +115,67 @@ let j = 0;
|
|
|
115
115
|
function D() {
|
|
116
116
|
if (j !== 0)
|
|
117
117
|
return;
|
|
118
|
-
const e =
|
|
118
|
+
const e = Ze;
|
|
119
119
|
do {
|
|
120
120
|
try {
|
|
121
121
|
for (; j < V.length; ) {
|
|
122
122
|
const t = V[j];
|
|
123
|
-
j++,
|
|
123
|
+
j++, ne(t), mr(t.$$);
|
|
124
124
|
}
|
|
125
125
|
} catch (t) {
|
|
126
126
|
throw V.length = 0, j = 0, t;
|
|
127
127
|
}
|
|
128
|
-
for (
|
|
128
|
+
for (ne(null), V.length = 0, j = 0; Oe.length; ) Oe.pop()();
|
|
129
129
|
for (let t = 0; t < X.length; t += 1) {
|
|
130
130
|
const r = X[t];
|
|
131
131
|
xe.has(r) || (xe.add(r), r());
|
|
132
132
|
}
|
|
133
133
|
X.length = 0;
|
|
134
134
|
} while (V.length);
|
|
135
|
-
for (;
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
for (; et.length; )
|
|
136
|
+
et.pop()();
|
|
137
|
+
Ie = !1, xe.clear(), ne(e);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function mr(e) {
|
|
140
140
|
if (e.fragment !== null) {
|
|
141
141
|
e.update(), se(e.before_update);
|
|
142
142
|
const t = e.dirty;
|
|
143
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
143
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function br(e) {
|
|
147
147
|
const t = [], r = [];
|
|
148
|
-
X.forEach((
|
|
148
|
+
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
e && e.i && (
|
|
150
|
+
const dr = /* @__PURE__ */ new Set();
|
|
151
|
+
function gr(e, t) {
|
|
152
|
+
e && e.i && (dr.delete(e), e.i(t));
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const { fragment:
|
|
156
|
-
|
|
157
|
-
const o = e.$$.on_mount.map(
|
|
154
|
+
function yr(e, t, r) {
|
|
155
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
156
|
+
n && n.m(t, r), Ne(() => {
|
|
157
|
+
const o = e.$$.on_mount.map(Bt).filter(We);
|
|
158
158
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
159
|
-
}),
|
|
159
|
+
}), i.forEach(Ne);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function vr(e, t) {
|
|
162
162
|
const r = e.$$;
|
|
163
|
-
r.fragment !== null && (
|
|
163
|
+
r.fragment !== null && (br(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
165
|
+
function Er(e, t) {
|
|
166
|
+
e.$$.dirty[0] === -1 && (V.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const h =
|
|
170
|
-
|
|
168
|
+
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
169
|
+
const h = Ze;
|
|
170
|
+
ne(e);
|
|
171
171
|
const u = e.$$ = {
|
|
172
172
|
fragment: null,
|
|
173
173
|
ctx: [],
|
|
174
174
|
// state
|
|
175
175
|
props: o,
|
|
176
176
|
update: C,
|
|
177
|
-
not_equal:
|
|
178
|
-
bound:
|
|
177
|
+
not_equal: i,
|
|
178
|
+
bound: Ke(),
|
|
179
179
|
// lifecycle
|
|
180
180
|
on_mount: [],
|
|
181
181
|
on_destroy: [],
|
|
@@ -184,7 +184,7 @@ function gr(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
|
184
184
|
after_update: [],
|
|
185
185
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
186
186
|
// everything else
|
|
187
|
-
callbacks:
|
|
187
|
+
callbacks: Ke(),
|
|
188
188
|
dirty: a,
|
|
189
189
|
skip_bound: !1,
|
|
190
190
|
root: t.target || h.$$.root
|
|
@@ -193,19 +193,19 @@ function gr(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
|
193
193
|
let l = !1;
|
|
194
194
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
195
195
|
const y = p.length ? p[0] : f;
|
|
196
|
-
return u.ctx &&
|
|
197
|
-
}) : [], u.update(), l = !0, se(u.before_update), u.fragment =
|
|
196
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Er(e, c)), f;
|
|
197
|
+
}) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
198
198
|
if (t.hydrate) {
|
|
199
|
-
const c =
|
|
199
|
+
const c = lr(t.target);
|
|
200
200
|
u.fragment && u.fragment.l(c), c.forEach(de);
|
|
201
201
|
} else
|
|
202
202
|
u.fragment && u.fragment.c();
|
|
203
|
-
t.intro &&
|
|
203
|
+
t.intro && gr(e.$$.fragment), yr(e, t.target, t.anchor), D();
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
ne(h);
|
|
206
206
|
}
|
|
207
|
-
let
|
|
208
|
-
typeof HTMLElement == "function" && (
|
|
207
|
+
let wt;
|
|
208
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
209
209
|
/** The Svelte component constructor */
|
|
210
210
|
$$ctor;
|
|
211
211
|
/** Slots */
|
|
@@ -229,32 +229,32 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
229
229
|
}
|
|
230
230
|
addEventListener(e, t, r) {
|
|
231
231
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
232
|
-
const
|
|
233
|
-
this.$$l_u.set(t,
|
|
232
|
+
const n = this.$$c.$on(e, t);
|
|
233
|
+
this.$$l_u.set(t, n);
|
|
234
234
|
}
|
|
235
235
|
super.addEventListener(e, t, r);
|
|
236
236
|
}
|
|
237
237
|
removeEventListener(e, t, r) {
|
|
238
238
|
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
239
|
-
const
|
|
240
|
-
|
|
239
|
+
const n = this.$$l_u.get(t);
|
|
240
|
+
n && (n(), this.$$l_u.delete(t));
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
async connectedCallback() {
|
|
244
244
|
if (this.$$cn = !0, !this.$$c) {
|
|
245
|
-
let e = function(
|
|
245
|
+
let e = function(i) {
|
|
246
246
|
return () => {
|
|
247
247
|
let o;
|
|
248
248
|
return {
|
|
249
249
|
c: function() {
|
|
250
|
-
o = I("slot"),
|
|
250
|
+
o = I("slot"), i !== "default" && B(o, "name", i);
|
|
251
251
|
},
|
|
252
252
|
/**
|
|
253
253
|
* @param {HTMLElement} target
|
|
254
254
|
* @param {HTMLElement} [anchor]
|
|
255
255
|
*/
|
|
256
256
|
m: function(h, u) {
|
|
257
|
-
|
|
257
|
+
ze(h, o, u);
|
|
258
258
|
},
|
|
259
259
|
d: function(h) {
|
|
260
260
|
h && de(o);
|
|
@@ -264,15 +264,15 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
264
264
|
};
|
|
265
265
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
266
266
|
return;
|
|
267
|
-
const t = {}, r =
|
|
268
|
-
for (const
|
|
269
|
-
|
|
270
|
-
for (const
|
|
271
|
-
const o = this.$$g_p(
|
|
272
|
-
o in this.$$d || (this.$$d[o] = le(o,
|
|
267
|
+
const t = {}, r = cr(this);
|
|
268
|
+
for (const i of this.$$s)
|
|
269
|
+
i in r && (t[i] = [e(i)]);
|
|
270
|
+
for (const i of this.attributes) {
|
|
271
|
+
const o = this.$$g_p(i.name);
|
|
272
|
+
o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
|
|
273
273
|
}
|
|
274
|
-
for (const
|
|
275
|
-
!(
|
|
274
|
+
for (const i in this.$$p_d)
|
|
275
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
276
276
|
this.$$c = new this.$$ctor({
|
|
277
277
|
target: this.shadowRoot || this,
|
|
278
278
|
props: {
|
|
@@ -283,24 +283,24 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
const
|
|
286
|
+
const n = () => {
|
|
287
287
|
this.$$r = !0;
|
|
288
|
-
for (const
|
|
289
|
-
if (this.$$d[
|
|
288
|
+
for (const i in this.$$p_d)
|
|
289
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
290
290
|
const o = le(
|
|
291
|
-
|
|
292
|
-
this.$$d[
|
|
291
|
+
i,
|
|
292
|
+
this.$$d[i],
|
|
293
293
|
this.$$p_d,
|
|
294
294
|
"toAttribute"
|
|
295
295
|
);
|
|
296
|
-
o == null ? this.removeAttribute(this.$$p_d[
|
|
296
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
297
297
|
}
|
|
298
298
|
this.$$r = !1;
|
|
299
299
|
};
|
|
300
|
-
this.$$c.$$.after_update.push(
|
|
301
|
-
for (const
|
|
302
|
-
for (const o of this.$$l[
|
|
303
|
-
const s = this.$$c.$on(
|
|
300
|
+
this.$$c.$$.after_update.push(n), n();
|
|
301
|
+
for (const i in this.$$l)
|
|
302
|
+
for (const o of this.$$l[i]) {
|
|
303
|
+
const s = this.$$c.$on(i, o);
|
|
304
304
|
this.$$l_u.set(o, s);
|
|
305
305
|
}
|
|
306
306
|
this.$$l = {};
|
|
@@ -322,12 +322,12 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
322
322
|
) || e;
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
|
-
function le(e, t, r,
|
|
326
|
-
const
|
|
327
|
-
if (t =
|
|
325
|
+
function le(e, t, r, n) {
|
|
326
|
+
const i = r[e]?.type;
|
|
327
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
328
328
|
return t;
|
|
329
|
-
if (
|
|
330
|
-
switch (
|
|
329
|
+
if (n === "toAttribute")
|
|
330
|
+
switch (i) {
|
|
331
331
|
case "Object":
|
|
332
332
|
case "Array":
|
|
333
333
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -339,7 +339,7 @@ function le(e, t, r, i) {
|
|
|
339
339
|
return t;
|
|
340
340
|
}
|
|
341
341
|
else
|
|
342
|
-
switch (
|
|
342
|
+
switch (i) {
|
|
343
343
|
case "Object":
|
|
344
344
|
case "Array":
|
|
345
345
|
return t && JSON.parse(t);
|
|
@@ -351,10 +351,10 @@ function le(e, t, r, i) {
|
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
let s = class extends
|
|
354
|
+
function xr(e, t, r, n, i, o) {
|
|
355
|
+
let s = class extends wt {
|
|
356
356
|
constructor() {
|
|
357
|
-
super(e, r,
|
|
357
|
+
super(e, r, i), this.$$p_d = t;
|
|
358
358
|
}
|
|
359
359
|
static get observedAttributes() {
|
|
360
360
|
return Object.keys(t).map(
|
|
@@ -371,7 +371,7 @@ function yr(e, t, r, i, n, o) {
|
|
|
371
371
|
h = le(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
}),
|
|
374
|
+
}), n.forEach((a) => {
|
|
375
375
|
Object.defineProperty(s.prototype, a, {
|
|
376
376
|
get() {
|
|
377
377
|
return this.$$c?.[a];
|
|
@@ -380,7 +380,7 @@ function yr(e, t, r, i, n, o) {
|
|
|
380
380
|
}), e.element = /** @type {any} */
|
|
381
381
|
s, s;
|
|
382
382
|
}
|
|
383
|
-
class
|
|
383
|
+
class Br {
|
|
384
384
|
/**
|
|
385
385
|
* ### PRIVATE API
|
|
386
386
|
*
|
|
@@ -399,7 +399,7 @@ class vr {
|
|
|
399
399
|
$$set = void 0;
|
|
400
400
|
/** @returns {void} */
|
|
401
401
|
$destroy() {
|
|
402
|
-
|
|
402
|
+
vr(this, 1), this.$destroy = C;
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -408,12 +408,12 @@ class vr {
|
|
|
408
408
|
* @returns {() => void}
|
|
409
409
|
*/
|
|
410
410
|
$on(t, r) {
|
|
411
|
-
if (!
|
|
411
|
+
if (!We(r))
|
|
412
412
|
return C;
|
|
413
|
-
const
|
|
414
|
-
return
|
|
415
|
-
const
|
|
416
|
-
|
|
413
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
414
|
+
return n.push(r), () => {
|
|
415
|
+
const i = n.indexOf(r);
|
|
416
|
+
i !== -1 && n.splice(i, 1);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
@@ -421,22 +421,22 @@ class vr {
|
|
|
421
421
|
* @returns {void}
|
|
422
422
|
*/
|
|
423
423
|
$set(t) {
|
|
424
|
-
this.$$set && !
|
|
424
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
429
|
-
var
|
|
430
|
-
return
|
|
431
|
-
r.__proto__ =
|
|
432
|
-
} || function(r,
|
|
433
|
-
for (var
|
|
434
|
-
},
|
|
427
|
+
const Sr = "4";
|
|
428
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
429
|
+
var Ce = function(e, t) {
|
|
430
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
431
|
+
r.__proto__ = n;
|
|
432
|
+
} || function(r, n) {
|
|
433
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
434
|
+
}, Ce(e, t);
|
|
435
435
|
};
|
|
436
436
|
function L(e, t) {
|
|
437
437
|
if (typeof t != "function" && t !== null)
|
|
438
438
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
439
|
-
|
|
439
|
+
Ce(e, t);
|
|
440
440
|
function r() {
|
|
441
441
|
this.constructor = e;
|
|
442
442
|
}
|
|
@@ -444,42 +444,42 @@ function L(e, t) {
|
|
|
444
444
|
}
|
|
445
445
|
var v = function() {
|
|
446
446
|
return v = Object.assign || function(t) {
|
|
447
|
-
for (var r,
|
|
448
|
-
r = arguments[
|
|
447
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
448
|
+
r = arguments[n];
|
|
449
449
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
450
450
|
}
|
|
451
451
|
return t;
|
|
452
452
|
}, v.apply(this, arguments);
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Tr(e, t) {
|
|
455
455
|
var r = {};
|
|
456
|
-
for (var
|
|
456
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
457
457
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
458
|
-
for (var
|
|
459
|
-
t.indexOf(i
|
|
458
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
459
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
460
460
|
return r;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t],
|
|
462
|
+
function Me(e) {
|
|
463
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
464
464
|
if (r) return r.call(e);
|
|
465
465
|
if (e && typeof e.length == "number") return {
|
|
466
466
|
next: function() {
|
|
467
|
-
return e &&
|
|
467
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Le(e, t) {
|
|
473
473
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
474
474
|
if (!r) return e;
|
|
475
|
-
var
|
|
475
|
+
var n = r.call(e), i, o = [], s;
|
|
476
476
|
try {
|
|
477
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
477
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
478
478
|
} catch (a) {
|
|
479
479
|
s = { error: a };
|
|
480
480
|
} finally {
|
|
481
481
|
try {
|
|
482
|
-
|
|
482
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
483
483
|
} finally {
|
|
484
484
|
if (s) throw s.error;
|
|
485
485
|
}
|
|
@@ -487,29 +487,29 @@ function Me(e, t) {
|
|
|
487
487
|
return o;
|
|
488
488
|
}
|
|
489
489
|
function W(e, t, r) {
|
|
490
|
-
if (r || arguments.length === 2) for (var
|
|
491
|
-
(o || !(
|
|
490
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
491
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
492
492
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
493
493
|
}
|
|
494
494
|
function M(e) {
|
|
495
495
|
return typeof e == "function";
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
var t = function(
|
|
499
|
-
Error.call(
|
|
497
|
+
function At(e) {
|
|
498
|
+
var t = function(n) {
|
|
499
|
+
Error.call(n), n.stack = new Error().stack;
|
|
500
500
|
}, r = e(t);
|
|
501
501
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
502
502
|
}
|
|
503
|
-
var Be =
|
|
503
|
+
var Be = At(function(e) {
|
|
504
504
|
return function(r) {
|
|
505
505
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
506
|
-
` + r.map(function(
|
|
507
|
-
return
|
|
506
|
+
` + r.map(function(n, i) {
|
|
507
|
+
return i + 1 + ") " + n.toString();
|
|
508
508
|
}).join(`
|
|
509
509
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
|
-
function
|
|
512
|
+
function $e(e, t) {
|
|
513
513
|
if (e) {
|
|
514
514
|
var r = e.indexOf(t);
|
|
515
515
|
0 <= r && e.splice(r, 1);
|
|
@@ -520,14 +520,14 @@ var ge = function() {
|
|
|
520
520
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
521
521
|
}
|
|
522
522
|
return e.prototype.unsubscribe = function() {
|
|
523
|
-
var t, r,
|
|
523
|
+
var t, r, n, i, o;
|
|
524
524
|
if (!this.closed) {
|
|
525
525
|
this.closed = !0;
|
|
526
526
|
var s = this._parentage;
|
|
527
527
|
if (s)
|
|
528
528
|
if (this._parentage = null, Array.isArray(s))
|
|
529
529
|
try {
|
|
530
|
-
for (var a =
|
|
530
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
531
531
|
var u = h.value;
|
|
532
532
|
u.remove(this);
|
|
533
533
|
}
|
|
@@ -553,21 +553,21 @@ var ge = function() {
|
|
|
553
553
|
if (c) {
|
|
554
554
|
this._finalizers = null;
|
|
555
555
|
try {
|
|
556
|
-
for (var f =
|
|
556
|
+
for (var f = Me(c), p = f.next(); !p.done; p = f.next()) {
|
|
557
557
|
var y = p.value;
|
|
558
558
|
try {
|
|
559
|
-
|
|
559
|
+
tt(y);
|
|
560
560
|
} catch (m) {
|
|
561
|
-
o = o ?? [], m instanceof Be ? o = W(W([],
|
|
561
|
+
o = o ?? [], m instanceof Be ? o = W(W([], Le(o)), Le(m.errors)) : o.push(m);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
} catch (m) {
|
|
565
|
-
|
|
565
|
+
n = { error: m };
|
|
566
566
|
} finally {
|
|
567
567
|
try {
|
|
568
|
-
p && !p.done && (
|
|
568
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
569
569
|
} finally {
|
|
570
|
-
if (
|
|
570
|
+
if (n) throw n.error;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -578,7 +578,7 @@ var ge = function() {
|
|
|
578
578
|
var r;
|
|
579
579
|
if (t && t !== this)
|
|
580
580
|
if (this.closed)
|
|
581
|
-
|
|
581
|
+
tt(t);
|
|
582
582
|
else {
|
|
583
583
|
if (t instanceof e) {
|
|
584
584
|
if (t.closed || t._hasParent(this))
|
|
@@ -595,52 +595,56 @@ var ge = function() {
|
|
|
595
595
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
596
596
|
}, e.prototype._removeParent = function(t) {
|
|
597
597
|
var r = this._parentage;
|
|
598
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
598
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
599
599
|
}, e.prototype.remove = function(t) {
|
|
600
600
|
var r = this._finalizers;
|
|
601
|
-
r &&
|
|
601
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
602
602
|
}, e.EMPTY = function() {
|
|
603
603
|
var t = new e();
|
|
604
604
|
return t.closed = !0, t;
|
|
605
605
|
}(), e;
|
|
606
|
-
}(),
|
|
607
|
-
function
|
|
606
|
+
}(), Pt = ge.EMPTY;
|
|
607
|
+
function Ot(e) {
|
|
608
608
|
return e instanceof ge || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function tt(e) {
|
|
611
611
|
M(e) ? e() : e.unsubscribe();
|
|
612
612
|
}
|
|
613
|
-
var
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
var It = {
|
|
614
|
+
onUnhandledError: null,
|
|
615
|
+
onStoppedNotification: null,
|
|
616
|
+
Promise: void 0,
|
|
617
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
618
|
+
useDeprecatedNextContext: !1
|
|
619
|
+
}, Hr = {
|
|
616
620
|
setTimeout: function(e, t) {
|
|
617
|
-
for (var r = [],
|
|
618
|
-
r[
|
|
619
|
-
return setTimeout.apply(void 0, W([e, t],
|
|
621
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
622
|
+
r[n - 2] = arguments[n];
|
|
623
|
+
return setTimeout.apply(void 0, W([e, t], Le(r)));
|
|
620
624
|
},
|
|
621
625
|
clearTimeout: function(e) {
|
|
622
626
|
return clearTimeout(e);
|
|
623
627
|
},
|
|
624
628
|
delegate: void 0
|
|
625
629
|
};
|
|
626
|
-
function
|
|
627
|
-
|
|
630
|
+
function wr(e) {
|
|
631
|
+
Hr.setTimeout(function() {
|
|
628
632
|
throw e;
|
|
629
633
|
});
|
|
630
634
|
}
|
|
631
|
-
function
|
|
635
|
+
function rt() {
|
|
632
636
|
}
|
|
633
637
|
function ce(e) {
|
|
634
638
|
e();
|
|
635
639
|
}
|
|
636
|
-
var
|
|
640
|
+
var Nt = function(e) {
|
|
637
641
|
L(t, e);
|
|
638
642
|
function t(r) {
|
|
639
|
-
var
|
|
640
|
-
return
|
|
643
|
+
var n = e.call(this) || this;
|
|
644
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Ir, n;
|
|
641
645
|
}
|
|
642
|
-
return t.create = function(r,
|
|
643
|
-
return new
|
|
646
|
+
return t.create = function(r, n, i) {
|
|
647
|
+
return new Re(r, n, i);
|
|
644
648
|
}, t.prototype.next = function(r) {
|
|
645
649
|
this.isStopped || this._next(r);
|
|
646
650
|
}, t.prototype.error = function(r) {
|
|
@@ -664,7 +668,11 @@ var At = function(e) {
|
|
|
664
668
|
this.unsubscribe();
|
|
665
669
|
}
|
|
666
670
|
}, t;
|
|
667
|
-
}(ge),
|
|
671
|
+
}(ge), Ar = Function.prototype.bind;
|
|
672
|
+
function Se(e, t) {
|
|
673
|
+
return Ar.call(e, t);
|
|
674
|
+
}
|
|
675
|
+
var Pr = function() {
|
|
668
676
|
function e(t) {
|
|
669
677
|
this.partialObserver = t;
|
|
670
678
|
}
|
|
@@ -673,16 +681,16 @@ var At = function(e) {
|
|
|
673
681
|
if (r.next)
|
|
674
682
|
try {
|
|
675
683
|
r.next(t);
|
|
676
|
-
} catch (
|
|
677
|
-
ue(
|
|
684
|
+
} catch (n) {
|
|
685
|
+
ue(n);
|
|
678
686
|
}
|
|
679
687
|
}, e.prototype.error = function(t) {
|
|
680
688
|
var r = this.partialObserver;
|
|
681
689
|
if (r.error)
|
|
682
690
|
try {
|
|
683
691
|
r.error(t);
|
|
684
|
-
} catch (
|
|
685
|
-
ue(
|
|
692
|
+
} catch (n) {
|
|
693
|
+
ue(n);
|
|
686
694
|
}
|
|
687
695
|
else
|
|
688
696
|
ue(t);
|
|
@@ -695,54 +703,66 @@ var At = function(e) {
|
|
|
695
703
|
ue(r);
|
|
696
704
|
}
|
|
697
705
|
}, e;
|
|
698
|
-
}(),
|
|
706
|
+
}(), Re = function(e) {
|
|
699
707
|
L(t, e);
|
|
700
|
-
function t(r,
|
|
708
|
+
function t(r, n, i) {
|
|
701
709
|
var o = e.call(this) || this, s;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
710
|
+
if (M(r) || !r)
|
|
711
|
+
s = {
|
|
712
|
+
next: r ?? void 0,
|
|
713
|
+
error: n ?? void 0,
|
|
714
|
+
complete: i ?? void 0
|
|
715
|
+
};
|
|
716
|
+
else {
|
|
717
|
+
var a;
|
|
718
|
+
o && It.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
719
|
+
return o.unsubscribe();
|
|
720
|
+
}, s = {
|
|
721
|
+
next: r.next && Se(r.next, a),
|
|
722
|
+
error: r.error && Se(r.error, a),
|
|
723
|
+
complete: r.complete && Se(r.complete, a)
|
|
724
|
+
}) : s = r;
|
|
725
|
+
}
|
|
726
|
+
return o.destination = new Pr(s), o;
|
|
707
727
|
}
|
|
708
728
|
return t;
|
|
709
|
-
}(
|
|
729
|
+
}(Nt);
|
|
710
730
|
function ue(e) {
|
|
711
|
-
|
|
731
|
+
wr(e);
|
|
712
732
|
}
|
|
713
|
-
function
|
|
733
|
+
function Or(e) {
|
|
714
734
|
throw e;
|
|
715
735
|
}
|
|
716
|
-
var
|
|
736
|
+
var Ir = {
|
|
717
737
|
closed: !0,
|
|
718
|
-
next:
|
|
719
|
-
error:
|
|
720
|
-
complete:
|
|
721
|
-
},
|
|
738
|
+
next: rt,
|
|
739
|
+
error: Or,
|
|
740
|
+
complete: rt
|
|
741
|
+
}, Nr = function() {
|
|
722
742
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
723
743
|
}();
|
|
724
|
-
function
|
|
744
|
+
function Cr(e) {
|
|
725
745
|
return e;
|
|
726
746
|
}
|
|
727
|
-
function
|
|
728
|
-
return e.length === 0 ?
|
|
729
|
-
return e.reduce(function(
|
|
730
|
-
return n
|
|
747
|
+
function Mr(e) {
|
|
748
|
+
return e.length === 0 ? Cr : e.length === 1 ? e[0] : function(r) {
|
|
749
|
+
return e.reduce(function(n, i) {
|
|
750
|
+
return i(n);
|
|
731
751
|
}, r);
|
|
732
752
|
};
|
|
733
753
|
}
|
|
734
|
-
var
|
|
754
|
+
var nt = function() {
|
|
735
755
|
function e(t) {
|
|
736
756
|
t && (this._subscribe = t);
|
|
737
757
|
}
|
|
738
758
|
return e.prototype.lift = function(t) {
|
|
739
759
|
var r = new e();
|
|
740
760
|
return r.source = this, r.operator = t, r;
|
|
741
|
-
}, e.prototype.subscribe = function(t, r,
|
|
742
|
-
var
|
|
761
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
762
|
+
var i = this, o = $r(t) ? t : new Re(t, r, n);
|
|
743
763
|
return ce(function() {
|
|
744
|
-
var s =
|
|
745
|
-
o.add(a ? a.call(o, h) : h ?
|
|
764
|
+
var s = i, a = s.operator, h = s.source;
|
|
765
|
+
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
746
766
|
}), o;
|
|
747
767
|
}, e.prototype._trySubscribe = function(t) {
|
|
748
768
|
try {
|
|
@@ -751,9 +771,9 @@ var et = function() {
|
|
|
751
771
|
t.error(r);
|
|
752
772
|
}
|
|
753
773
|
}, e.prototype.forEach = function(t, r) {
|
|
754
|
-
var
|
|
755
|
-
return r =
|
|
756
|
-
var s = new
|
|
774
|
+
var n = this;
|
|
775
|
+
return r = it(r), new r(function(i, o) {
|
|
776
|
+
var s = new Re({
|
|
757
777
|
next: function(a) {
|
|
758
778
|
try {
|
|
759
779
|
t(a);
|
|
@@ -762,90 +782,90 @@ var et = function() {
|
|
|
762
782
|
}
|
|
763
783
|
},
|
|
764
784
|
error: o,
|
|
765
|
-
complete:
|
|
785
|
+
complete: i
|
|
766
786
|
});
|
|
767
|
-
|
|
787
|
+
n.subscribe(s);
|
|
768
788
|
});
|
|
769
789
|
}, e.prototype._subscribe = function(t) {
|
|
770
790
|
var r;
|
|
771
791
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
772
|
-
}, e.prototype[
|
|
792
|
+
}, e.prototype[Nr] = function() {
|
|
773
793
|
return this;
|
|
774
794
|
}, e.prototype.pipe = function() {
|
|
775
795
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
776
796
|
t[r] = arguments[r];
|
|
777
|
-
return
|
|
797
|
+
return Mr(t)(this);
|
|
778
798
|
}, e.prototype.toPromise = function(t) {
|
|
779
799
|
var r = this;
|
|
780
|
-
return t =
|
|
800
|
+
return t = it(t), new t(function(n, i) {
|
|
781
801
|
var o;
|
|
782
802
|
r.subscribe(function(s) {
|
|
783
803
|
return o = s;
|
|
784
804
|
}, function(s) {
|
|
785
|
-
return
|
|
805
|
+
return i(s);
|
|
786
806
|
}, function() {
|
|
787
|
-
return
|
|
807
|
+
return n(o);
|
|
788
808
|
});
|
|
789
809
|
});
|
|
790
810
|
}, e.create = function(t) {
|
|
791
811
|
return new e(t);
|
|
792
812
|
}, e;
|
|
793
813
|
}();
|
|
794
|
-
function
|
|
814
|
+
function it(e) {
|
|
795
815
|
var t;
|
|
796
|
-
return (t = e ??
|
|
816
|
+
return (t = e ?? It.Promise) !== null && t !== void 0 ? t : Promise;
|
|
797
817
|
}
|
|
798
|
-
function
|
|
818
|
+
function Lr(e) {
|
|
799
819
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
800
820
|
}
|
|
801
|
-
function
|
|
802
|
-
return e && e instanceof
|
|
821
|
+
function $r(e) {
|
|
822
|
+
return e && e instanceof Nt || Lr(e) && Ot(e);
|
|
803
823
|
}
|
|
804
|
-
var
|
|
824
|
+
var Rr = At(function(e) {
|
|
805
825
|
return function() {
|
|
806
826
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
807
827
|
};
|
|
808
|
-
}),
|
|
828
|
+
}), Ct = function(e) {
|
|
809
829
|
L(t, e);
|
|
810
830
|
function t() {
|
|
811
831
|
var r = e.call(this) || this;
|
|
812
832
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
813
833
|
}
|
|
814
834
|
return t.prototype.lift = function(r) {
|
|
815
|
-
var
|
|
816
|
-
return
|
|
835
|
+
var n = new ot(this, this);
|
|
836
|
+
return n.operator = r, n;
|
|
817
837
|
}, t.prototype._throwIfClosed = function() {
|
|
818
838
|
if (this.closed)
|
|
819
|
-
throw new
|
|
839
|
+
throw new Rr();
|
|
820
840
|
}, t.prototype.next = function(r) {
|
|
821
|
-
var
|
|
841
|
+
var n = this;
|
|
822
842
|
ce(function() {
|
|
823
|
-
var
|
|
824
|
-
if (
|
|
825
|
-
|
|
843
|
+
var i, o;
|
|
844
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
845
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
826
846
|
try {
|
|
827
|
-
for (var s =
|
|
847
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
828
848
|
var h = a.value;
|
|
829
849
|
h.next(r);
|
|
830
850
|
}
|
|
831
851
|
} catch (u) {
|
|
832
|
-
|
|
852
|
+
i = { error: u };
|
|
833
853
|
} finally {
|
|
834
854
|
try {
|
|
835
855
|
a && !a.done && (o = s.return) && o.call(s);
|
|
836
856
|
} finally {
|
|
837
|
-
if (
|
|
857
|
+
if (i) throw i.error;
|
|
838
858
|
}
|
|
839
859
|
}
|
|
840
860
|
}
|
|
841
861
|
});
|
|
842
862
|
}, t.prototype.error = function(r) {
|
|
843
|
-
var
|
|
863
|
+
var n = this;
|
|
844
864
|
ce(function() {
|
|
845
|
-
if (
|
|
846
|
-
|
|
847
|
-
for (var
|
|
848
|
-
|
|
865
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
866
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
867
|
+
for (var i = n.observers; i.length; )
|
|
868
|
+
i.shift().error(r);
|
|
849
869
|
}
|
|
850
870
|
});
|
|
851
871
|
}, t.prototype.complete = function() {
|
|
@@ -853,8 +873,8 @@ var Cr = Tt(function(e) {
|
|
|
853
873
|
ce(function() {
|
|
854
874
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
855
875
|
r.isStopped = !0;
|
|
856
|
-
for (var
|
|
857
|
-
|
|
876
|
+
for (var n = r.observers; n.length; )
|
|
877
|
+
n.shift().complete();
|
|
858
878
|
}
|
|
859
879
|
});
|
|
860
880
|
}, t.prototype.unsubscribe = function() {
|
|
@@ -871,86 +891,86 @@ var Cr = Tt(function(e) {
|
|
|
871
891
|
}, t.prototype._subscribe = function(r) {
|
|
872
892
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
873
893
|
}, t.prototype._innerSubscribe = function(r) {
|
|
874
|
-
var
|
|
875
|
-
return o || s ?
|
|
876
|
-
|
|
894
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
895
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
896
|
+
n.currentObservers = null, $e(a, r);
|
|
877
897
|
}));
|
|
878
898
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
879
|
-
var
|
|
880
|
-
|
|
899
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
900
|
+
i ? r.error(o) : s && r.complete();
|
|
881
901
|
}, t.prototype.asObservable = function() {
|
|
882
|
-
var r = new
|
|
902
|
+
var r = new nt();
|
|
883
903
|
return r.source = this, r;
|
|
884
|
-
}, t.create = function(r,
|
|
885
|
-
return new
|
|
904
|
+
}, t.create = function(r, n) {
|
|
905
|
+
return new ot(r, n);
|
|
886
906
|
}, t;
|
|
887
|
-
}(
|
|
907
|
+
}(nt), ot = function(e) {
|
|
888
908
|
L(t, e);
|
|
889
|
-
function t(r,
|
|
890
|
-
var
|
|
891
|
-
return
|
|
909
|
+
function t(r, n) {
|
|
910
|
+
var i = e.call(this) || this;
|
|
911
|
+
return i.destination = r, i.source = n, i;
|
|
892
912
|
}
|
|
893
913
|
return t.prototype.next = function(r) {
|
|
894
|
-
var
|
|
895
|
-
(
|
|
914
|
+
var n, i;
|
|
915
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
896
916
|
}, t.prototype.error = function(r) {
|
|
897
|
-
var
|
|
898
|
-
(
|
|
917
|
+
var n, i;
|
|
918
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
899
919
|
}, t.prototype.complete = function() {
|
|
900
|
-
var r,
|
|
901
|
-
(
|
|
920
|
+
var r, n;
|
|
921
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
902
922
|
}, t.prototype._subscribe = function(r) {
|
|
903
|
-
var
|
|
904
|
-
return (
|
|
923
|
+
var n, i;
|
|
924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
905
925
|
}, t;
|
|
906
|
-
}(
|
|
926
|
+
}(Ct), Mt = {
|
|
907
927
|
now: function() {
|
|
908
|
-
return (
|
|
928
|
+
return (Mt.delegate || Date).now();
|
|
909
929
|
},
|
|
910
930
|
delegate: void 0
|
|
911
|
-
},
|
|
931
|
+
}, Dr = function(e) {
|
|
912
932
|
L(t, e);
|
|
913
|
-
function t(r,
|
|
914
|
-
r === void 0 && (r = 1 / 0),
|
|
933
|
+
function t(r, n, i) {
|
|
934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
915
935
|
var o = e.call(this) || this;
|
|
916
|
-
return o._bufferSize = r, o._windowTime =
|
|
936
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
917
937
|
}
|
|
918
938
|
return t.prototype.next = function(r) {
|
|
919
|
-
var
|
|
920
|
-
|
|
939
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
|
|
940
|
+
i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
921
941
|
}, t.prototype._subscribe = function(r) {
|
|
922
942
|
this._throwIfClosed(), this._trimBuffer();
|
|
923
|
-
for (var
|
|
943
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
|
|
924
944
|
r.next(a[h]);
|
|
925
|
-
return this._checkFinalizedStatuses(r),
|
|
945
|
+
return this._checkFinalizedStatuses(r), n;
|
|
926
946
|
}, t.prototype._trimBuffer = function() {
|
|
927
|
-
var r = this,
|
|
928
|
-
if (
|
|
929
|
-
for (var h =
|
|
947
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
948
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
949
|
+
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
930
950
|
u = l;
|
|
931
951
|
u && o.splice(0, u + 1);
|
|
932
952
|
}
|
|
933
953
|
}, t;
|
|
934
|
-
}(
|
|
935
|
-
const
|
|
936
|
-
if (
|
|
937
|
-
const r = new
|
|
938
|
-
|
|
954
|
+
}(Ct);
|
|
955
|
+
const st = [], at = {}, Ur = (e, t = 0) => {
|
|
956
|
+
if (st.indexOf(e) == -1) {
|
|
957
|
+
const r = new Dr(t);
|
|
958
|
+
at[e] = r, st.push(e);
|
|
939
959
|
}
|
|
940
|
-
return
|
|
960
|
+
return at[e];
|
|
941
961
|
}, k = [];
|
|
942
|
-
function
|
|
962
|
+
function Gr(e, t) {
|
|
943
963
|
return {
|
|
944
964
|
subscribe: ye(e, t).subscribe
|
|
945
965
|
};
|
|
946
966
|
}
|
|
947
967
|
function ye(e, t = C) {
|
|
948
968
|
let r;
|
|
949
|
-
const
|
|
950
|
-
function
|
|
951
|
-
if (
|
|
969
|
+
const n = /* @__PURE__ */ new Set();
|
|
970
|
+
function i(a) {
|
|
971
|
+
if (St(e, a) && (e = a, r)) {
|
|
952
972
|
const h = !k.length;
|
|
953
|
-
for (const u of
|
|
973
|
+
for (const u of n)
|
|
954
974
|
u[1](), k.push(u, e);
|
|
955
975
|
if (h) {
|
|
956
976
|
for (let u = 0; u < k.length; u += 2)
|
|
@@ -960,22 +980,22 @@ function ye(e, t = C) {
|
|
|
960
980
|
}
|
|
961
981
|
}
|
|
962
982
|
function o(a) {
|
|
963
|
-
|
|
983
|
+
i(a(e));
|
|
964
984
|
}
|
|
965
985
|
function s(a, h = C) {
|
|
966
986
|
const u = [a, h];
|
|
967
|
-
return
|
|
968
|
-
|
|
987
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || C), a(e), () => {
|
|
988
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
969
989
|
};
|
|
970
990
|
}
|
|
971
|
-
return { set:
|
|
991
|
+
return { set: i, update: o, subscribe: s };
|
|
972
992
|
}
|
|
973
993
|
function J(e, t, r) {
|
|
974
|
-
const
|
|
975
|
-
if (!
|
|
994
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
995
|
+
if (!i.every(Boolean))
|
|
976
996
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
977
997
|
const o = t.length < 2;
|
|
978
|
-
return
|
|
998
|
+
return Gr(r, (s, a) => {
|
|
979
999
|
let h = !1;
|
|
980
1000
|
const u = [];
|
|
981
1001
|
let l = 0, c = C;
|
|
@@ -983,10 +1003,10 @@ function J(e, t, r) {
|
|
|
983
1003
|
if (l)
|
|
984
1004
|
return;
|
|
985
1005
|
c();
|
|
986
|
-
const y = t(
|
|
987
|
-
o ? s(y) : c =
|
|
988
|
-
}, p =
|
|
989
|
-
(y, m) =>
|
|
1006
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1007
|
+
o ? s(y) : c = We(y) ? y : C;
|
|
1008
|
+
}, p = i.map(
|
|
1009
|
+
(y, m) => Tt(
|
|
990
1010
|
y,
|
|
991
1011
|
(x) => {
|
|
992
1012
|
u[m] = x, l &= ~(1 << m), h && f();
|
|
@@ -1001,128 +1021,130 @@ function J(e, t, r) {
|
|
|
1001
1021
|
};
|
|
1002
1022
|
});
|
|
1003
1023
|
}
|
|
1004
|
-
function
|
|
1024
|
+
function Fr(e) {
|
|
1005
1025
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1006
1026
|
}
|
|
1007
|
-
var
|
|
1008
|
-
return
|
|
1027
|
+
var jr = function(t) {
|
|
1028
|
+
return kr(t) && !Vr(t);
|
|
1009
1029
|
};
|
|
1010
|
-
function
|
|
1030
|
+
function kr(e) {
|
|
1011
1031
|
return !!e && typeof e == "object";
|
|
1012
1032
|
}
|
|
1013
|
-
function
|
|
1033
|
+
function Vr(e) {
|
|
1014
1034
|
var t = Object.prototype.toString.call(e);
|
|
1015
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1035
|
+
return t === "[object RegExp]" || t === "[object Date]" || zr(e);
|
|
1016
1036
|
}
|
|
1017
|
-
var
|
|
1018
|
-
function
|
|
1019
|
-
return e.$$typeof ===
|
|
1037
|
+
var Xr = typeof Symbol == "function" && Symbol.for, Wr = Xr ? Symbol.for("react.element") : 60103;
|
|
1038
|
+
function zr(e) {
|
|
1039
|
+
return e.$$typeof === Wr;
|
|
1020
1040
|
}
|
|
1021
|
-
function
|
|
1041
|
+
function Zr(e) {
|
|
1022
1042
|
return Array.isArray(e) ? [] : {};
|
|
1023
1043
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1044
|
+
function ie(e, t) {
|
|
1045
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Zr(e), e, t) : e;
|
|
1026
1046
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return e.concat(t).map(function(
|
|
1029
|
-
return
|
|
1047
|
+
function Yr(e, t, r) {
|
|
1048
|
+
return e.concat(t).map(function(n) {
|
|
1049
|
+
return ie(n, r);
|
|
1030
1050
|
});
|
|
1031
1051
|
}
|
|
1032
|
-
function
|
|
1052
|
+
function Qr(e, t) {
|
|
1033
1053
|
if (!t.customMerge)
|
|
1034
1054
|
return z;
|
|
1035
1055
|
var r = t.customMerge(e);
|
|
1036
1056
|
return typeof r == "function" ? r : z;
|
|
1037
1057
|
}
|
|
1038
|
-
function
|
|
1058
|
+
function Jr(e) {
|
|
1039
1059
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1040
1060
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1041
1061
|
}) : [];
|
|
1042
1062
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return Object.keys(e).concat(
|
|
1063
|
+
function ut(e) {
|
|
1064
|
+
return Object.keys(e).concat(Jr(e));
|
|
1045
1065
|
}
|
|
1046
|
-
function
|
|
1066
|
+
function Lt(e, t) {
|
|
1047
1067
|
try {
|
|
1048
1068
|
return t in e;
|
|
1049
1069
|
} catch {
|
|
1050
1070
|
return !1;
|
|
1051
1071
|
}
|
|
1052
1072
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return
|
|
1073
|
+
function qr(e, t) {
|
|
1074
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1055
1075
|
}
|
|
1056
|
-
function
|
|
1057
|
-
var
|
|
1058
|
-
return r.isMergeableObject(e) &&
|
|
1059
|
-
i
|
|
1060
|
-
}),
|
|
1061
|
-
|
|
1062
|
-
}),
|
|
1076
|
+
function Kr(e, t, r) {
|
|
1077
|
+
var n = {};
|
|
1078
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1079
|
+
n[i] = ie(e[i], r);
|
|
1080
|
+
}), ut(t).forEach(function(i) {
|
|
1081
|
+
qr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1082
|
+
}), n;
|
|
1063
1083
|
}
|
|
1064
1084
|
function z(e, t, r) {
|
|
1065
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1066
|
-
var
|
|
1067
|
-
return o ?
|
|
1085
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1086
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1087
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : ie(t, r);
|
|
1068
1088
|
}
|
|
1069
1089
|
z.all = function(t, r) {
|
|
1070
1090
|
if (!Array.isArray(t))
|
|
1071
1091
|
throw new Error("first argument should be an array");
|
|
1072
|
-
return t.reduce(function(
|
|
1073
|
-
return z(
|
|
1092
|
+
return t.reduce(function(n, i) {
|
|
1093
|
+
return z(n, i, r);
|
|
1074
1094
|
}, {});
|
|
1075
1095
|
};
|
|
1076
|
-
var
|
|
1077
|
-
const
|
|
1078
|
-
function
|
|
1079
|
-
var r = t && t.cache ? t.cache :
|
|
1080
|
-
return
|
|
1096
|
+
var en = z, tn = en;
|
|
1097
|
+
const rn = /* @__PURE__ */ Fr(tn);
|
|
1098
|
+
function Te(e, t) {
|
|
1099
|
+
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : on;
|
|
1100
|
+
return i(e, {
|
|
1081
1101
|
cache: r,
|
|
1082
|
-
serializer:
|
|
1102
|
+
serializer: n
|
|
1083
1103
|
});
|
|
1084
1104
|
}
|
|
1085
|
-
function
|
|
1105
|
+
function nn(e) {
|
|
1086
1106
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1087
1107
|
}
|
|
1088
|
-
function
|
|
1089
|
-
var
|
|
1090
|
-
return typeof o > "u" && (o = e.call(this,
|
|
1108
|
+
function $t(e, t, r, n) {
|
|
1109
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
1110
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1091
1111
|
}
|
|
1092
|
-
function
|
|
1093
|
-
var
|
|
1094
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
1112
|
+
function Rt(e, t, r) {
|
|
1113
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1114
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1095
1115
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return r.bind(t, e,
|
|
1116
|
+
function Ye(e, t, r, n, i) {
|
|
1117
|
+
return r.bind(t, e, n, i);
|
|
1098
1118
|
}
|
|
1099
|
-
function
|
|
1100
|
-
var r = e.length === 1 ?
|
|
1101
|
-
return
|
|
1119
|
+
function on(e, t) {
|
|
1120
|
+
var r = e.length === 1 ? $t : Rt;
|
|
1121
|
+
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1102
1122
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1123
|
+
function sn(e, t) {
|
|
1124
|
+
return Ye(e, this, Rt, t.cache.create(), t.serializer);
|
|
1105
1125
|
}
|
|
1106
|
-
|
|
1126
|
+
function an(e, t) {
|
|
1127
|
+
return Ye(e, this, $t, t.cache.create(), t.serializer);
|
|
1128
|
+
}
|
|
1129
|
+
var un = function() {
|
|
1107
1130
|
return JSON.stringify(arguments);
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}()
|
|
1120
|
-
), oi = {
|
|
1131
|
+
};
|
|
1132
|
+
function Qe() {
|
|
1133
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1134
|
+
}
|
|
1135
|
+
Qe.prototype.get = function(e) {
|
|
1136
|
+
return this.cache[e];
|
|
1137
|
+
};
|
|
1138
|
+
Qe.prototype.set = function(e, t) {
|
|
1139
|
+
this.cache[e] = t;
|
|
1140
|
+
};
|
|
1141
|
+
var hn = {
|
|
1121
1142
|
create: function() {
|
|
1122
|
-
return new
|
|
1143
|
+
return new Qe();
|
|
1123
1144
|
}
|
|
1124
|
-
},
|
|
1125
|
-
variadic:
|
|
1145
|
+
}, He = {
|
|
1146
|
+
variadic: sn,
|
|
1147
|
+
monadic: an
|
|
1126
1148
|
}, d;
|
|
1127
1149
|
(function(e) {
|
|
1128
1150
|
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";
|
|
@@ -1135,50 +1157,50 @@ var Z;
|
|
|
1135
1157
|
(function(e) {
|
|
1136
1158
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1137
1159
|
})(Z || (Z = {}));
|
|
1138
|
-
function
|
|
1160
|
+
function ht(e) {
|
|
1139
1161
|
return e.type === _.literal;
|
|
1140
1162
|
}
|
|
1141
|
-
function
|
|
1163
|
+
function ln(e) {
|
|
1142
1164
|
return e.type === _.argument;
|
|
1143
1165
|
}
|
|
1144
|
-
function
|
|
1166
|
+
function Dt(e) {
|
|
1145
1167
|
return e.type === _.number;
|
|
1146
1168
|
}
|
|
1147
|
-
function
|
|
1169
|
+
function Ut(e) {
|
|
1148
1170
|
return e.type === _.date;
|
|
1149
1171
|
}
|
|
1150
|
-
function
|
|
1172
|
+
function Gt(e) {
|
|
1151
1173
|
return e.type === _.time;
|
|
1152
1174
|
}
|
|
1153
|
-
function
|
|
1175
|
+
function Ft(e) {
|
|
1154
1176
|
return e.type === _.select;
|
|
1155
1177
|
}
|
|
1156
|
-
function
|
|
1178
|
+
function jt(e) {
|
|
1157
1179
|
return e.type === _.plural;
|
|
1158
1180
|
}
|
|
1159
|
-
function
|
|
1181
|
+
function cn(e) {
|
|
1160
1182
|
return e.type === _.pound;
|
|
1161
1183
|
}
|
|
1162
|
-
function
|
|
1184
|
+
function kt(e) {
|
|
1163
1185
|
return e.type === _.tag;
|
|
1164
1186
|
}
|
|
1165
|
-
function
|
|
1187
|
+
function Vt(e) {
|
|
1166
1188
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1167
1189
|
}
|
|
1168
|
-
function
|
|
1190
|
+
function De(e) {
|
|
1169
1191
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1170
1192
|
}
|
|
1171
|
-
var
|
|
1172
|
-
function
|
|
1193
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fn = /(?:[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;
|
|
1194
|
+
function pn(e) {
|
|
1173
1195
|
var t = {};
|
|
1174
|
-
return e.replace(
|
|
1175
|
-
var
|
|
1196
|
+
return e.replace(fn, function(r) {
|
|
1197
|
+
var n = r.length;
|
|
1176
1198
|
switch (r[0]) {
|
|
1177
1199
|
case "G":
|
|
1178
|
-
t.era =
|
|
1200
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1179
1201
|
break;
|
|
1180
1202
|
case "y":
|
|
1181
|
-
t.year =
|
|
1203
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1182
1204
|
break;
|
|
1183
1205
|
case "Y":
|
|
1184
1206
|
case "u":
|
|
@@ -1190,30 +1212,30 @@ function hi(e) {
|
|
|
1190
1212
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1191
1213
|
case "M":
|
|
1192
1214
|
case "L":
|
|
1193
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1215
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1194
1216
|
break;
|
|
1195
1217
|
case "w":
|
|
1196
1218
|
case "W":
|
|
1197
1219
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1198
1220
|
case "d":
|
|
1199
|
-
t.day = ["numeric", "2-digit"][
|
|
1221
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1200
1222
|
break;
|
|
1201
1223
|
case "D":
|
|
1202
1224
|
case "F":
|
|
1203
1225
|
case "g":
|
|
1204
1226
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1205
1227
|
case "E":
|
|
1206
|
-
t.weekday =
|
|
1228
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1207
1229
|
break;
|
|
1208
1230
|
case "e":
|
|
1209
|
-
if (
|
|
1231
|
+
if (n < 4)
|
|
1210
1232
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1211
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1233
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1212
1234
|
break;
|
|
1213
1235
|
case "c":
|
|
1214
|
-
if (
|
|
1236
|
+
if (n < 4)
|
|
1215
1237
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1216
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1238
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1217
1239
|
break;
|
|
1218
1240
|
case "a":
|
|
1219
1241
|
t.hour12 = !0;
|
|
@@ -1222,32 +1244,32 @@ function hi(e) {
|
|
|
1222
1244
|
case "B":
|
|
1223
1245
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1224
1246
|
case "h":
|
|
1225
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1247
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1226
1248
|
break;
|
|
1227
1249
|
case "H":
|
|
1228
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1250
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1229
1251
|
break;
|
|
1230
1252
|
case "K":
|
|
1231
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1253
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1232
1254
|
break;
|
|
1233
1255
|
case "k":
|
|
1234
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1256
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1235
1257
|
break;
|
|
1236
1258
|
case "j":
|
|
1237
1259
|
case "J":
|
|
1238
1260
|
case "C":
|
|
1239
1261
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1240
1262
|
case "m":
|
|
1241
|
-
t.minute = ["numeric", "2-digit"][
|
|
1263
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1242
1264
|
break;
|
|
1243
1265
|
case "s":
|
|
1244
|
-
t.second = ["numeric", "2-digit"][
|
|
1266
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1245
1267
|
break;
|
|
1246
1268
|
case "S":
|
|
1247
1269
|
case "A":
|
|
1248
1270
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1249
1271
|
case "z":
|
|
1250
|
-
t.timeZoneName =
|
|
1272
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1251
1273
|
break;
|
|
1252
1274
|
case "Z":
|
|
1253
1275
|
case "O":
|
|
@@ -1260,14 +1282,14 @@ function hi(e) {
|
|
|
1260
1282
|
return "";
|
|
1261
1283
|
}), t;
|
|
1262
1284
|
}
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1285
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1286
|
+
function bn(e) {
|
|
1265
1287
|
if (e.length === 0)
|
|
1266
1288
|
throw new Error("Number skeleton cannot be empty");
|
|
1267
|
-
for (var t = e.split(
|
|
1289
|
+
for (var t = e.split(mn).filter(function(f) {
|
|
1268
1290
|
return f.length > 0;
|
|
1269
|
-
}), r = [],
|
|
1270
|
-
var o = n
|
|
1291
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1292
|
+
var o = i[n], s = o.split("/");
|
|
1271
1293
|
if (s.length === 0)
|
|
1272
1294
|
throw new Error("Invalid number skeleton");
|
|
1273
1295
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
@@ -1279,17 +1301,17 @@ function ci(e) {
|
|
|
1279
1301
|
}
|
|
1280
1302
|
return r;
|
|
1281
1303
|
}
|
|
1282
|
-
function
|
|
1304
|
+
function dn(e) {
|
|
1283
1305
|
return e.replace(/^(.*?)-/, "");
|
|
1284
1306
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1307
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, gn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1308
|
+
function ct(e) {
|
|
1287
1309
|
var t = {};
|
|
1288
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1289
|
-
return typeof
|
|
1310
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
1311
|
+
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)), "";
|
|
1290
1312
|
}), t;
|
|
1291
1313
|
}
|
|
1292
|
-
function
|
|
1314
|
+
function Zt(e) {
|
|
1293
1315
|
switch (e) {
|
|
1294
1316
|
case "sign-auto":
|
|
1295
1317
|
return {
|
|
@@ -1329,7 +1351,7 @@ function Vt(e) {
|
|
|
1329
1351
|
};
|
|
1330
1352
|
}
|
|
1331
1353
|
}
|
|
1332
|
-
function
|
|
1354
|
+
function yn(e) {
|
|
1333
1355
|
var t;
|
|
1334
1356
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1335
1357
|
notation: "engineering"
|
|
@@ -1337,20 +1359,20 @@ function mi(e) {
|
|
|
1337
1359
|
notation: "scientific"
|
|
1338
1360
|
}, e = e.slice(1)), t) {
|
|
1339
1361
|
var r = e.slice(0, 2);
|
|
1340
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1362
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1341
1363
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1342
1364
|
t.minimumIntegerDigits = e.length;
|
|
1343
1365
|
}
|
|
1344
1366
|
return t;
|
|
1345
1367
|
}
|
|
1346
|
-
function
|
|
1347
|
-
var t = {}, r =
|
|
1368
|
+
function ft(e) {
|
|
1369
|
+
var t = {}, r = Zt(e);
|
|
1348
1370
|
return r || t;
|
|
1349
1371
|
}
|
|
1350
|
-
function
|
|
1351
|
-
for (var t = {}, r = 0,
|
|
1352
|
-
var
|
|
1353
|
-
switch (
|
|
1372
|
+
function vn(e) {
|
|
1373
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1374
|
+
var i = n[r];
|
|
1375
|
+
switch (i.stem) {
|
|
1354
1376
|
case "percent":
|
|
1355
1377
|
case "%":
|
|
1356
1378
|
t.style = "percent";
|
|
@@ -1359,7 +1381,7 @@ function bi(e) {
|
|
|
1359
1381
|
t.style = "percent", t.scale = 100;
|
|
1360
1382
|
continue;
|
|
1361
1383
|
case "currency":
|
|
1362
|
-
t.style = "currency", t.currency =
|
|
1384
|
+
t.style = "currency", t.currency = i.options[0];
|
|
1363
1385
|
continue;
|
|
1364
1386
|
case "group-off":
|
|
1365
1387
|
case ",_":
|
|
@@ -1371,7 +1393,7 @@ function bi(e) {
|
|
|
1371
1393
|
continue;
|
|
1372
1394
|
case "measure-unit":
|
|
1373
1395
|
case "unit":
|
|
1374
|
-
t.style = "unit", t.unit =
|
|
1396
|
+
t.style = "unit", t.unit = dn(i.options[0]);
|
|
1375
1397
|
continue;
|
|
1376
1398
|
case "compact-short":
|
|
1377
1399
|
case "K":
|
|
@@ -1382,13 +1404,13 @@ function bi(e) {
|
|
|
1382
1404
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1383
1405
|
continue;
|
|
1384
1406
|
case "scientific":
|
|
1385
|
-
t = v(v(v({}, t), { notation: "scientific" }),
|
|
1386
|
-
return v(v({}, h),
|
|
1407
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1408
|
+
return v(v({}, h), ft(u));
|
|
1387
1409
|
}, {}));
|
|
1388
1410
|
continue;
|
|
1389
1411
|
case "engineering":
|
|
1390
|
-
t = v(v(v({}, t), { notation: "engineering" }),
|
|
1391
|
-
return v(v({}, h),
|
|
1412
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1413
|
+
return v(v({}, h), ft(u));
|
|
1392
1414
|
}, {}));
|
|
1393
1415
|
continue;
|
|
1394
1416
|
case "notation-simple":
|
|
@@ -1407,7 +1429,7 @@ function bi(e) {
|
|
|
1407
1429
|
t.currencyDisplay = "symbol";
|
|
1408
1430
|
continue;
|
|
1409
1431
|
case "scale":
|
|
1410
|
-
t.scale = parseFloat(
|
|
1432
|
+
t.scale = parseFloat(i.options[0]);
|
|
1411
1433
|
continue;
|
|
1412
1434
|
case "rounding-mode-floor":
|
|
1413
1435
|
t.roundingMode = "floor";
|
|
@@ -1431,9 +1453,9 @@ function bi(e) {
|
|
|
1431
1453
|
t.roundingMode = "halfExpand";
|
|
1432
1454
|
continue;
|
|
1433
1455
|
case "integer-width":
|
|
1434
|
-
if (
|
|
1456
|
+
if (i.options.length > 1)
|
|
1435
1457
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1436
|
-
|
|
1458
|
+
i.options[0].replace(gn, function(h, u, l, c, f, p) {
|
|
1437
1459
|
if (u)
|
|
1438
1460
|
t.minimumIntegerDigits = l.length;
|
|
1439
1461
|
else {
|
|
@@ -1446,27 +1468,27 @@ function bi(e) {
|
|
|
1446
1468
|
});
|
|
1447
1469
|
continue;
|
|
1448
1470
|
}
|
|
1449
|
-
if (
|
|
1450
|
-
t.minimumIntegerDigits =
|
|
1471
|
+
if (zt.test(i.stem)) {
|
|
1472
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1451
1473
|
continue;
|
|
1452
1474
|
}
|
|
1453
|
-
if (
|
|
1454
|
-
if (
|
|
1475
|
+
if (lt.test(i.stem)) {
|
|
1476
|
+
if (i.options.length > 1)
|
|
1455
1477
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1456
|
-
|
|
1478
|
+
i.stem.replace(lt, function(h, u, l, c, f, p) {
|
|
1457
1479
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1458
1480
|
});
|
|
1459
|
-
var o =
|
|
1460
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1481
|
+
var o = i.options[0];
|
|
1482
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
|
|
1461
1483
|
continue;
|
|
1462
1484
|
}
|
|
1463
|
-
if (
|
|
1464
|
-
t = v(v({}, t),
|
|
1485
|
+
if (Wt.test(i.stem)) {
|
|
1486
|
+
t = v(v({}, t), ct(i.stem));
|
|
1465
1487
|
continue;
|
|
1466
1488
|
}
|
|
1467
|
-
var s =
|
|
1489
|
+
var s = Zt(i.stem);
|
|
1468
1490
|
s && (t = v(v({}, t), s));
|
|
1469
|
-
var a =
|
|
1491
|
+
var a = yn(i.stem);
|
|
1470
1492
|
a && (t = v(v({}, t), a));
|
|
1471
1493
|
}
|
|
1472
1494
|
return t;
|
|
@@ -2886,22 +2908,22 @@ var he = {
|
|
|
2886
2908
|
"h"
|
|
2887
2909
|
]
|
|
2888
2910
|
};
|
|
2889
|
-
function
|
|
2890
|
-
for (var r = "",
|
|
2891
|
-
var
|
|
2892
|
-
if (
|
|
2893
|
-
for (var o = 0;
|
|
2894
|
-
o++,
|
|
2895
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2911
|
+
function En(e, t) {
|
|
2912
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2913
|
+
var i = e.charAt(n);
|
|
2914
|
+
if (i === "j") {
|
|
2915
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2916
|
+
o++, n++;
|
|
2917
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = _n(t);
|
|
2896
2918
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2897
2919
|
r += h;
|
|
2898
2920
|
for (; s-- > 0; )
|
|
2899
2921
|
r = u + r;
|
|
2900
|
-
} else
|
|
2922
|
+
} else i === "J" ? r += "H" : r += i;
|
|
2901
2923
|
}
|
|
2902
2924
|
return r;
|
|
2903
2925
|
}
|
|
2904
|
-
function
|
|
2926
|
+
function _n(e) {
|
|
2905
2927
|
var t = e.hourCycle;
|
|
2906
2928
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2907
2929
|
e.hourCycles && // @ts-ignore
|
|
@@ -2918,59 +2940,59 @@ function gi(e) {
|
|
|
2918
2940
|
default:
|
|
2919
2941
|
throw new Error("Invalid hourCycle");
|
|
2920
2942
|
}
|
|
2921
|
-
var r = e.language,
|
|
2922
|
-
r !== "root" && (
|
|
2923
|
-
var
|
|
2924
|
-
return
|
|
2943
|
+
var r = e.language, n;
|
|
2944
|
+
r !== "root" && (n = e.maximize().region);
|
|
2945
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2946
|
+
return i[0];
|
|
2925
2947
|
}
|
|
2926
|
-
var
|
|
2948
|
+
var we, xn = new RegExp("^".concat(Xt.source, "*")), Bn = new RegExp("".concat(Xt.source, "*$"));
|
|
2927
2949
|
function g(e, t) {
|
|
2928
2950
|
return { start: e, end: t };
|
|
2929
2951
|
}
|
|
2930
|
-
var
|
|
2952
|
+
var Sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, Hn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
2931
2953
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2932
|
-
},
|
|
2954
|
+
}, Ue = !0;
|
|
2933
2955
|
try {
|
|
2934
|
-
var
|
|
2935
|
-
|
|
2956
|
+
var Nn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2957
|
+
Ue = ((we = Nn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2936
2958
|
} catch {
|
|
2937
|
-
|
|
2959
|
+
Ue = !1;
|
|
2938
2960
|
}
|
|
2939
|
-
var
|
|
2961
|
+
var pt = Sn ? (
|
|
2940
2962
|
// Native
|
|
2941
|
-
function(t, r,
|
|
2942
|
-
return t.startsWith(r,
|
|
2963
|
+
function(t, r, n) {
|
|
2964
|
+
return t.startsWith(r, n);
|
|
2943
2965
|
}
|
|
2944
2966
|
) : (
|
|
2945
2967
|
// For IE11
|
|
2946
|
-
function(t, r,
|
|
2947
|
-
return t.slice(
|
|
2968
|
+
function(t, r, n) {
|
|
2969
|
+
return t.slice(n, n + r.length) === r;
|
|
2948
2970
|
}
|
|
2949
|
-
),
|
|
2971
|
+
), Ge = Tn ? String.fromCodePoint : (
|
|
2950
2972
|
// IE11
|
|
2951
2973
|
function() {
|
|
2952
2974
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2953
2975
|
t[r] = arguments[r];
|
|
2954
|
-
for (var
|
|
2976
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2955
2977
|
if (s = t[o++], s > 1114111)
|
|
2956
2978
|
throw RangeError(s + " is not a valid code point");
|
|
2957
|
-
|
|
2979
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2958
2980
|
}
|
|
2959
|
-
return
|
|
2981
|
+
return n;
|
|
2960
2982
|
}
|
|
2961
|
-
),
|
|
2983
|
+
), mt = (
|
|
2962
2984
|
// native
|
|
2963
|
-
|
|
2985
|
+
Hn ? Object.fromEntries : (
|
|
2964
2986
|
// Ponyfill
|
|
2965
2987
|
function(t) {
|
|
2966
|
-
for (var r = {},
|
|
2967
|
-
var o = n
|
|
2988
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2989
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2968
2990
|
r[s] = a;
|
|
2969
2991
|
}
|
|
2970
2992
|
return r;
|
|
2971
2993
|
}
|
|
2972
2994
|
)
|
|
2973
|
-
),
|
|
2995
|
+
), Yt = wn ? (
|
|
2974
2996
|
// Native
|
|
2975
2997
|
function(t, r) {
|
|
2976
2998
|
return t.codePointAt(r);
|
|
@@ -2978,13 +3000,13 @@ var lt = Ei ? (
|
|
|
2978
3000
|
) : (
|
|
2979
3001
|
// IE 11
|
|
2980
3002
|
function(t, r) {
|
|
2981
|
-
var
|
|
2982
|
-
if (!(r < 0 || r >=
|
|
2983
|
-
var
|
|
2984
|
-
return
|
|
3003
|
+
var n = t.length;
|
|
3004
|
+
if (!(r < 0 || r >= n)) {
|
|
3005
|
+
var i = t.charCodeAt(r), o;
|
|
3006
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2985
3007
|
}
|
|
2986
3008
|
}
|
|
2987
|
-
),
|
|
3009
|
+
), Cn = An ? (
|
|
2988
3010
|
// Native
|
|
2989
3011
|
function(t) {
|
|
2990
3012
|
return t.trimStart();
|
|
@@ -2992,9 +3014,9 @@ var lt = Ei ? (
|
|
|
2992
3014
|
) : (
|
|
2993
3015
|
// Ponyfill
|
|
2994
3016
|
function(t) {
|
|
2995
|
-
return t.replace(
|
|
3017
|
+
return t.replace(xn, "");
|
|
2996
3018
|
}
|
|
2997
|
-
),
|
|
3019
|
+
), Mn = Pn ? (
|
|
2998
3020
|
// Native
|
|
2999
3021
|
function(t) {
|
|
3000
3022
|
return t.trimEnd();
|
|
@@ -3002,32 +3024,32 @@ var lt = Ei ? (
|
|
|
3002
3024
|
) : (
|
|
3003
3025
|
// Ponyfill
|
|
3004
3026
|
function(t) {
|
|
3005
|
-
return t.replace(
|
|
3027
|
+
return t.replace(Bn, "");
|
|
3006
3028
|
}
|
|
3007
3029
|
);
|
|
3008
|
-
function
|
|
3030
|
+
function Qt(e, t) {
|
|
3009
3031
|
return new RegExp(e, t);
|
|
3010
3032
|
}
|
|
3011
|
-
var
|
|
3012
|
-
if (
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3015
|
-
var
|
|
3016
|
-
|
|
3017
|
-
var
|
|
3018
|
-
return (
|
|
3033
|
+
var Fe;
|
|
3034
|
+
if (Ue) {
|
|
3035
|
+
var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3036
|
+
Fe = function(t, r) {
|
|
3037
|
+
var n;
|
|
3038
|
+
bt.lastIndex = r;
|
|
3039
|
+
var i = bt.exec(t);
|
|
3040
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3019
3041
|
};
|
|
3020
3042
|
} else
|
|
3021
|
-
|
|
3022
|
-
for (var
|
|
3023
|
-
var
|
|
3024
|
-
if (
|
|
3043
|
+
Fe = function(t, r) {
|
|
3044
|
+
for (var n = []; ; ) {
|
|
3045
|
+
var i = Yt(t, r);
|
|
3046
|
+
if (i === void 0 || Jt(i) || Dn(i))
|
|
3025
3047
|
break;
|
|
3026
|
-
|
|
3048
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3027
3049
|
}
|
|
3028
|
-
return
|
|
3050
|
+
return Ge.apply(void 0, n);
|
|
3029
3051
|
};
|
|
3030
|
-
var
|
|
3052
|
+
var Ln = (
|
|
3031
3053
|
/** @class */
|
|
3032
3054
|
function() {
|
|
3033
3055
|
function e(t, r) {
|
|
@@ -3037,51 +3059,51 @@ var Ii = (
|
|
|
3037
3059
|
if (this.offset() !== 0)
|
|
3038
3060
|
throw Error("parser can only be used once");
|
|
3039
3061
|
return this.parseMessage(0, "", !1);
|
|
3040
|
-
}, e.prototype.parseMessage = function(t, r,
|
|
3041
|
-
for (var
|
|
3062
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3063
|
+
for (var i = []; !this.isEOF(); ) {
|
|
3042
3064
|
var o = this.char();
|
|
3043
3065
|
if (o === 123) {
|
|
3044
|
-
var s = this.parseArgument(t,
|
|
3066
|
+
var s = this.parseArgument(t, n);
|
|
3045
3067
|
if (s.err)
|
|
3046
3068
|
return s;
|
|
3047
|
-
|
|
3069
|
+
i.push(s.val);
|
|
3048
3070
|
} else {
|
|
3049
3071
|
if (o === 125 && t > 0)
|
|
3050
3072
|
break;
|
|
3051
3073
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3052
3074
|
var a = this.clonePosition();
|
|
3053
|
-
this.bump(),
|
|
3075
|
+
this.bump(), i.push({
|
|
3054
3076
|
type: _.pound,
|
|
3055
3077
|
location: g(a, this.clonePosition())
|
|
3056
3078
|
});
|
|
3057
3079
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3058
|
-
if (
|
|
3080
|
+
if (n)
|
|
3059
3081
|
break;
|
|
3060
3082
|
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3061
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3083
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3062
3084
|
var s = this.parseTag(t, r);
|
|
3063
3085
|
if (s.err)
|
|
3064
3086
|
return s;
|
|
3065
|
-
|
|
3087
|
+
i.push(s.val);
|
|
3066
3088
|
} else {
|
|
3067
3089
|
var s = this.parseLiteral(t, r);
|
|
3068
3090
|
if (s.err)
|
|
3069
3091
|
return s;
|
|
3070
|
-
|
|
3092
|
+
i.push(s.val);
|
|
3071
3093
|
}
|
|
3072
3094
|
}
|
|
3073
3095
|
}
|
|
3074
|
-
return { val:
|
|
3096
|
+
return { val: i, err: null };
|
|
3075
3097
|
}, e.prototype.parseTag = function(t, r) {
|
|
3076
|
-
var
|
|
3098
|
+
var n = this.clonePosition();
|
|
3077
3099
|
this.bump();
|
|
3078
|
-
var
|
|
3100
|
+
var i = this.parseTagName();
|
|
3079
3101
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3080
3102
|
return {
|
|
3081
3103
|
val: {
|
|
3082
3104
|
type: _.literal,
|
|
3083
|
-
value: "<".concat(
|
|
3084
|
-
location: g(
|
|
3105
|
+
value: "<".concat(i, "/>"),
|
|
3106
|
+
location: g(n, this.clonePosition())
|
|
3085
3107
|
},
|
|
3086
3108
|
err: null
|
|
3087
3109
|
};
|
|
@@ -3091,54 +3113,54 @@ var Ii = (
|
|
|
3091
3113
|
return o;
|
|
3092
3114
|
var s = o.val, a = this.clonePosition();
|
|
3093
3115
|
if (this.bumpIf("</")) {
|
|
3094
|
-
if (this.isEOF() || !
|
|
3116
|
+
if (this.isEOF() || !je(this.char()))
|
|
3095
3117
|
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3096
3118
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3097
|
-
return
|
|
3119
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3098
3120
|
val: {
|
|
3099
3121
|
type: _.tag,
|
|
3100
|
-
value:
|
|
3122
|
+
value: i,
|
|
3101
3123
|
children: s,
|
|
3102
|
-
location: g(
|
|
3124
|
+
location: g(n, this.clonePosition())
|
|
3103
3125
|
},
|
|
3104
3126
|
err: null
|
|
3105
3127
|
} : this.error(d.INVALID_TAG, g(a, this.clonePosition())));
|
|
3106
3128
|
} else
|
|
3107
|
-
return this.error(d.UNCLOSED_TAG, g(
|
|
3129
|
+
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3108
3130
|
} else
|
|
3109
|
-
return this.error(d.INVALID_TAG, g(
|
|
3131
|
+
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3110
3132
|
}, e.prototype.parseTagName = function() {
|
|
3111
3133
|
var t = this.offset();
|
|
3112
|
-
for (this.bump(); !this.isEOF() &&
|
|
3134
|
+
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
3113
3135
|
this.bump();
|
|
3114
3136
|
return this.message.slice(t, this.offset());
|
|
3115
3137
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3116
|
-
for (var
|
|
3138
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3117
3139
|
var o = this.tryParseQuote(r);
|
|
3118
3140
|
if (o) {
|
|
3119
|
-
|
|
3141
|
+
i += o;
|
|
3120
3142
|
continue;
|
|
3121
3143
|
}
|
|
3122
3144
|
var s = this.tryParseUnquoted(t, r);
|
|
3123
3145
|
if (s) {
|
|
3124
|
-
|
|
3146
|
+
i += s;
|
|
3125
3147
|
continue;
|
|
3126
3148
|
}
|
|
3127
3149
|
var a = this.tryParseLeftAngleBracket();
|
|
3128
3150
|
if (a) {
|
|
3129
|
-
|
|
3151
|
+
i += a;
|
|
3130
3152
|
continue;
|
|
3131
3153
|
}
|
|
3132
3154
|
break;
|
|
3133
3155
|
}
|
|
3134
|
-
var h = g(
|
|
3156
|
+
var h = g(n, this.clonePosition());
|
|
3135
3157
|
return {
|
|
3136
|
-
val: { type: _.literal, value:
|
|
3158
|
+
val: { type: _.literal, value: i, location: h },
|
|
3137
3159
|
err: null
|
|
3138
3160
|
};
|
|
3139
3161
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3140
3162
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3141
|
-
|
|
3163
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3142
3164
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3143
3165
|
if (this.isEOF() || this.char() !== 39)
|
|
3144
3166
|
return null;
|
|
@@ -3160,8 +3182,8 @@ var Ii = (
|
|
|
3160
3182
|
this.bump();
|
|
3161
3183
|
var r = [this.char()];
|
|
3162
3184
|
for (this.bump(); !this.isEOF(); ) {
|
|
3163
|
-
var
|
|
3164
|
-
if (
|
|
3185
|
+
var n = this.char();
|
|
3186
|
+
if (n === 39)
|
|
3165
3187
|
if (this.peek() === 39)
|
|
3166
3188
|
r.push(39), this.bump();
|
|
3167
3189
|
else {
|
|
@@ -3169,48 +3191,48 @@ var Ii = (
|
|
|
3169
3191
|
break;
|
|
3170
3192
|
}
|
|
3171
3193
|
else
|
|
3172
|
-
r.push(
|
|
3194
|
+
r.push(n);
|
|
3173
3195
|
this.bump();
|
|
3174
3196
|
}
|
|
3175
|
-
return
|
|
3197
|
+
return Ge.apply(void 0, r);
|
|
3176
3198
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3177
3199
|
if (this.isEOF())
|
|
3178
3200
|
return null;
|
|
3179
|
-
var
|
|
3180
|
-
return
|
|
3201
|
+
var n = this.char();
|
|
3202
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3181
3203
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3182
|
-
var
|
|
3204
|
+
var n = this.clonePosition();
|
|
3183
3205
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3184
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3206
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3185
3207
|
if (this.char() === 125)
|
|
3186
|
-
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(
|
|
3187
|
-
var
|
|
3188
|
-
if (!
|
|
3189
|
-
return this.error(d.MALFORMED_ARGUMENT, g(
|
|
3208
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3209
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
3210
|
+
if (!i)
|
|
3211
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3190
3212
|
if (this.bumpSpace(), this.isEOF())
|
|
3191
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3213
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3192
3214
|
switch (this.char()) {
|
|
3193
3215
|
case 125:
|
|
3194
3216
|
return this.bump(), {
|
|
3195
3217
|
val: {
|
|
3196
3218
|
type: _.argument,
|
|
3197
3219
|
// value does not include the opening and closing braces.
|
|
3198
|
-
value:
|
|
3199
|
-
location: g(
|
|
3220
|
+
value: i,
|
|
3221
|
+
location: g(n, this.clonePosition())
|
|
3200
3222
|
},
|
|
3201
3223
|
err: null
|
|
3202
3224
|
};
|
|
3203
3225
|
case 44:
|
|
3204
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(
|
|
3226
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3205
3227
|
default:
|
|
3206
|
-
return this.error(d.MALFORMED_ARGUMENT, g(
|
|
3228
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3207
3229
|
}
|
|
3208
3230
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3209
|
-
var t = this.clonePosition(), r = this.offset(),
|
|
3210
|
-
this.bumpTo(
|
|
3231
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3232
|
+
this.bumpTo(i);
|
|
3211
3233
|
var o = this.clonePosition(), s = g(t, o);
|
|
3212
|
-
return { value:
|
|
3213
|
-
}, e.prototype.parseArgumentOptions = function(t, r,
|
|
3234
|
+
return { value: n, location: s };
|
|
3235
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3214
3236
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3215
3237
|
switch (a) {
|
|
3216
3238
|
case "":
|
|
@@ -3225,37 +3247,37 @@ var Ii = (
|
|
|
3225
3247
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3226
3248
|
if (c.err)
|
|
3227
3249
|
return c;
|
|
3228
|
-
var f =
|
|
3250
|
+
var f = Mn(c.val);
|
|
3229
3251
|
if (f.length === 0)
|
|
3230
3252
|
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3231
3253
|
var p = g(l, this.clonePosition());
|
|
3232
3254
|
u = { style: f, styleLocation: p };
|
|
3233
3255
|
}
|
|
3234
|
-
var y = this.tryParseArgumentClose(
|
|
3256
|
+
var y = this.tryParseArgumentClose(i);
|
|
3235
3257
|
if (y.err)
|
|
3236
3258
|
return y;
|
|
3237
|
-
var m = g(
|
|
3238
|
-
if (u &&
|
|
3239
|
-
var x =
|
|
3259
|
+
var m = g(i, this.clonePosition());
|
|
3260
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3261
|
+
var x = Cn(u.style.slice(2));
|
|
3240
3262
|
if (a === "number") {
|
|
3241
3263
|
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3242
3264
|
return c.err ? c : {
|
|
3243
|
-
val: { type: _.number, value:
|
|
3265
|
+
val: { type: _.number, value: n, location: m, style: c.val },
|
|
3244
3266
|
err: null
|
|
3245
3267
|
};
|
|
3246
3268
|
} else {
|
|
3247
3269
|
if (x.length === 0)
|
|
3248
3270
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3249
3271
|
var P = x;
|
|
3250
|
-
this.locale && (P =
|
|
3272
|
+
this.locale && (P = En(x, this.locale));
|
|
3251
3273
|
var f = {
|
|
3252
3274
|
type: Z.dateTime,
|
|
3253
3275
|
pattern: P,
|
|
3254
3276
|
location: u.styleLocation,
|
|
3255
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3277
|
+
parsedOptions: this.shouldParseSkeletons ? pn(P) : {}
|
|
3256
3278
|
}, A = a === "date" ? _.date : _.time;
|
|
3257
3279
|
return {
|
|
3258
|
-
val: { type: A, value:
|
|
3280
|
+
val: { type: A, value: n, location: m, style: f },
|
|
3259
3281
|
err: null
|
|
3260
3282
|
};
|
|
3261
3283
|
}
|
|
@@ -3263,7 +3285,7 @@ var Ii = (
|
|
|
3263
3285
|
return {
|
|
3264
3286
|
val: {
|
|
3265
3287
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3266
|
-
value:
|
|
3288
|
+
value: n,
|
|
3267
3289
|
location: m,
|
|
3268
3290
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3269
3291
|
},
|
|
@@ -3290,23 +3312,23 @@ var Ii = (
|
|
|
3290
3312
|
var T = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
|
3291
3313
|
if (T.err)
|
|
3292
3314
|
return T;
|
|
3293
|
-
var y = this.tryParseArgumentClose(
|
|
3315
|
+
var y = this.tryParseArgumentClose(i);
|
|
3294
3316
|
if (y.err)
|
|
3295
3317
|
return y;
|
|
3296
|
-
var H = g(
|
|
3318
|
+
var H = g(i, this.clonePosition());
|
|
3297
3319
|
return a === "select" ? {
|
|
3298
3320
|
val: {
|
|
3299
3321
|
type: _.select,
|
|
3300
|
-
value:
|
|
3301
|
-
options:
|
|
3322
|
+
value: n,
|
|
3323
|
+
options: mt(T.val),
|
|
3302
3324
|
location: H
|
|
3303
3325
|
},
|
|
3304
3326
|
err: null
|
|
3305
3327
|
} : {
|
|
3306
3328
|
val: {
|
|
3307
3329
|
type: _.plural,
|
|
3308
|
-
value:
|
|
3309
|
-
options:
|
|
3330
|
+
value: n,
|
|
3331
|
+
options: mt(T.val),
|
|
3310
3332
|
offset: b,
|
|
3311
3333
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3312
3334
|
location: H
|
|
@@ -3321,13 +3343,13 @@ var Ii = (
|
|
|
3321
3343
|
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3322
3344
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3323
3345
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3324
|
-
var
|
|
3325
|
-
switch (
|
|
3346
|
+
var n = this.char();
|
|
3347
|
+
switch (n) {
|
|
3326
3348
|
case 39: {
|
|
3327
3349
|
this.bump();
|
|
3328
|
-
var
|
|
3350
|
+
var i = this.clonePosition();
|
|
3329
3351
|
if (!this.bumpUntil("'"))
|
|
3330
|
-
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(
|
|
3352
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3331
3353
|
this.bump();
|
|
3332
3354
|
break;
|
|
3333
3355
|
}
|
|
@@ -3355,23 +3377,23 @@ var Ii = (
|
|
|
3355
3377
|
err: null
|
|
3356
3378
|
};
|
|
3357
3379
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3358
|
-
var
|
|
3380
|
+
var n = [];
|
|
3359
3381
|
try {
|
|
3360
|
-
|
|
3382
|
+
n = bn(t);
|
|
3361
3383
|
} catch {
|
|
3362
3384
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3363
3385
|
}
|
|
3364
3386
|
return {
|
|
3365
3387
|
val: {
|
|
3366
3388
|
type: Z.number,
|
|
3367
|
-
tokens:
|
|
3389
|
+
tokens: n,
|
|
3368
3390
|
location: r,
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3391
|
+
parsedOptions: this.shouldParseSkeletons ? vn(n) : {}
|
|
3370
3392
|
},
|
|
3371
3393
|
err: null
|
|
3372
3394
|
};
|
|
3373
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r,
|
|
3374
|
-
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u =
|
|
3395
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3396
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3375
3397
|
if (u.length === 0) {
|
|
3376
3398
|
var c = this.clonePosition();
|
|
3377
3399
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3388,7 +3410,7 @@ var Ii = (
|
|
|
3388
3410
|
var p = this.clonePosition();
|
|
3389
3411
|
if (!this.bumpIf("{"))
|
|
3390
3412
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3391
|
-
var y = this.parseMessage(t + 1, r,
|
|
3413
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3392
3414
|
if (y.err)
|
|
3393
3415
|
return y;
|
|
3394
3416
|
var m = this.tryParseArgumentClose(p);
|
|
@@ -3404,8 +3426,8 @@ var Ii = (
|
|
|
3404
3426
|
}
|
|
3405
3427
|
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3406
3428
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3407
|
-
var
|
|
3408
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3429
|
+
var n = 1, i = this.clonePosition();
|
|
3430
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3409
3431
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3410
3432
|
var a = this.char();
|
|
3411
3433
|
if (a >= 48 && a <= 57)
|
|
@@ -3413,8 +3435,8 @@ var Ii = (
|
|
|
3413
3435
|
else
|
|
3414
3436
|
break;
|
|
3415
3437
|
}
|
|
3416
|
-
var h = g(
|
|
3417
|
-
return o ? (s *=
|
|
3438
|
+
var h = g(i, this.clonePosition());
|
|
3439
|
+
return o ? (s *= n, In(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3418
3440
|
}, e.prototype.offset = function() {
|
|
3419
3441
|
return this.position.offset;
|
|
3420
3442
|
}, e.prototype.isEOF = function() {
|
|
@@ -3429,7 +3451,7 @@ var Ii = (
|
|
|
3429
3451
|
var t = this.position.offset;
|
|
3430
3452
|
if (t >= this.message.length)
|
|
3431
3453
|
throw Error("out of bound");
|
|
3432
|
-
var r =
|
|
3454
|
+
var r = Yt(this.message, t);
|
|
3433
3455
|
if (r === void 0)
|
|
3434
3456
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3435
3457
|
return r;
|
|
@@ -3448,15 +3470,15 @@ var Ii = (
|
|
|
3448
3470
|
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);
|
|
3449
3471
|
}
|
|
3450
3472
|
}, e.prototype.bumpIf = function(t) {
|
|
3451
|
-
if (
|
|
3473
|
+
if (pt(this.message, t, this.offset())) {
|
|
3452
3474
|
for (var r = 0; r < t.length; r++)
|
|
3453
3475
|
this.bump();
|
|
3454
3476
|
return !0;
|
|
3455
3477
|
}
|
|
3456
3478
|
return !1;
|
|
3457
3479
|
}, e.prototype.bumpUntil = function(t) {
|
|
3458
|
-
var r = this.offset(),
|
|
3459
|
-
return
|
|
3480
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3481
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3460
3482
|
}, e.prototype.bumpTo = function(t) {
|
|
3461
3483
|
if (this.offset() > t)
|
|
3462
3484
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
@@ -3470,47 +3492,47 @@ var Ii = (
|
|
|
3470
3492
|
break;
|
|
3471
3493
|
}
|
|
3472
3494
|
}, e.prototype.bumpSpace = function() {
|
|
3473
|
-
for (; !this.isEOF() &&
|
|
3495
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3474
3496
|
this.bump();
|
|
3475
3497
|
}, e.prototype.peek = function() {
|
|
3476
3498
|
if (this.isEOF())
|
|
3477
3499
|
return null;
|
|
3478
|
-
var t = this.char(), r = this.offset(),
|
|
3479
|
-
return
|
|
3500
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3501
|
+
return n ?? null;
|
|
3480
3502
|
}, e;
|
|
3481
3503
|
}()
|
|
3482
3504
|
);
|
|
3483
|
-
function
|
|
3505
|
+
function je(e) {
|
|
3484
3506
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3485
3507
|
}
|
|
3486
|
-
function
|
|
3487
|
-
return
|
|
3508
|
+
function $n(e) {
|
|
3509
|
+
return je(e) || e === 47;
|
|
3488
3510
|
}
|
|
3489
|
-
function
|
|
3511
|
+
function Rn(e) {
|
|
3490
3512
|
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;
|
|
3491
3513
|
}
|
|
3492
|
-
function
|
|
3514
|
+
function Jt(e) {
|
|
3493
3515
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3494
3516
|
}
|
|
3495
|
-
function
|
|
3517
|
+
function Dn(e) {
|
|
3496
3518
|
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;
|
|
3497
3519
|
}
|
|
3498
|
-
function
|
|
3520
|
+
function ke(e) {
|
|
3499
3521
|
e.forEach(function(t) {
|
|
3500
|
-
if (delete t.location,
|
|
3522
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3501
3523
|
for (var r in t.options)
|
|
3502
|
-
delete t.options[r].location,
|
|
3503
|
-
else
|
|
3524
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3525
|
+
else Dt(t) && Vt(t.style) || (Ut(t) || Gt(t)) && De(t.style) ? delete t.style.location : kt(t) && ke(t.children);
|
|
3504
3526
|
});
|
|
3505
3527
|
}
|
|
3506
|
-
function
|
|
3528
|
+
function Un(e, t) {
|
|
3507
3529
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3508
|
-
var r = new
|
|
3530
|
+
var r = new Ln(e, t).parse();
|
|
3509
3531
|
if (r.err) {
|
|
3510
|
-
var
|
|
3511
|
-
throw
|
|
3532
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3533
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3512
3534
|
}
|
|
3513
|
-
return t?.captureLocation ||
|
|
3535
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3514
3536
|
}
|
|
3515
3537
|
var Y;
|
|
3516
3538
|
(function(e) {
|
|
@@ -3520,38 +3542,38 @@ var ve = (
|
|
|
3520
3542
|
/** @class */
|
|
3521
3543
|
function(e) {
|
|
3522
3544
|
L(t, e);
|
|
3523
|
-
function t(r,
|
|
3545
|
+
function t(r, n, i) {
|
|
3524
3546
|
var o = e.call(this, r) || this;
|
|
3525
|
-
return o.code =
|
|
3547
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3526
3548
|
}
|
|
3527
3549
|
return t.prototype.toString = function() {
|
|
3528
3550
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3529
3551
|
}, t;
|
|
3530
3552
|
}(Error)
|
|
3531
|
-
),
|
|
3553
|
+
), dt = (
|
|
3532
3554
|
/** @class */
|
|
3533
3555
|
function(e) {
|
|
3534
3556
|
L(t, e);
|
|
3535
|
-
function t(r,
|
|
3536
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(
|
|
3557
|
+
function t(r, n, i, o) {
|
|
3558
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3537
3559
|
}
|
|
3538
3560
|
return t;
|
|
3539
3561
|
}(ve)
|
|
3540
|
-
),
|
|
3562
|
+
), Gn = (
|
|
3541
3563
|
/** @class */
|
|
3542
3564
|
function(e) {
|
|
3543
3565
|
L(t, e);
|
|
3544
|
-
function t(r,
|
|
3545
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(
|
|
3566
|
+
function t(r, n, i) {
|
|
3567
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3546
3568
|
}
|
|
3547
3569
|
return t;
|
|
3548
3570
|
}(ve)
|
|
3549
|
-
),
|
|
3571
|
+
), Fn = (
|
|
3550
3572
|
/** @class */
|
|
3551
3573
|
function(e) {
|
|
3552
3574
|
L(t, e);
|
|
3553
|
-
function t(r,
|
|
3554
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(
|
|
3575
|
+
function t(r, n) {
|
|
3576
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3555
3577
|
}
|
|
3556
3578
|
return t;
|
|
3557
3579
|
}(ve)
|
|
@@ -3559,17 +3581,17 @@ var ve = (
|
|
|
3559
3581
|
(function(e) {
|
|
3560
3582
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3561
3583
|
})(w || (w = {}));
|
|
3562
|
-
function
|
|
3584
|
+
function jn(e) {
|
|
3563
3585
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3564
|
-
var
|
|
3565
|
-
return !
|
|
3586
|
+
var n = t[t.length - 1];
|
|
3587
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3566
3588
|
}, []);
|
|
3567
3589
|
}
|
|
3568
|
-
function
|
|
3590
|
+
function kn(e) {
|
|
3569
3591
|
return typeof e == "function";
|
|
3570
3592
|
}
|
|
3571
|
-
function fe(e, t, r,
|
|
3572
|
-
if (e.length === 1 &&
|
|
3593
|
+
function fe(e, t, r, n, i, o, s) {
|
|
3594
|
+
if (e.length === 1 && ht(e[0]))
|
|
3573
3595
|
return [
|
|
3574
3596
|
{
|
|
3575
3597
|
type: w.literal,
|
|
@@ -3578,14 +3600,14 @@ function fe(e, t, r, i, n, o, s) {
|
|
|
3578
3600
|
];
|
|
3579
3601
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3580
3602
|
var l = u[h];
|
|
3581
|
-
if (
|
|
3603
|
+
if (ht(l)) {
|
|
3582
3604
|
a.push({
|
|
3583
3605
|
type: w.literal,
|
|
3584
3606
|
value: l.value
|
|
3585
3607
|
});
|
|
3586
3608
|
continue;
|
|
3587
3609
|
}
|
|
3588
|
-
if (
|
|
3610
|
+
if (cn(l)) {
|
|
3589
3611
|
typeof o == "number" && a.push({
|
|
3590
3612
|
type: w.literal,
|
|
3591
3613
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3593,45 +3615,45 @@ function fe(e, t, r, i, n, o, s) {
|
|
|
3593
3615
|
continue;
|
|
3594
3616
|
}
|
|
3595
3617
|
var c = l.value;
|
|
3596
|
-
if (!(
|
|
3597
|
-
throw new
|
|
3598
|
-
var f =
|
|
3599
|
-
if (
|
|
3618
|
+
if (!(i && c in i))
|
|
3619
|
+
throw new Fn(c, s);
|
|
3620
|
+
var f = i[c];
|
|
3621
|
+
if (ln(l)) {
|
|
3600
3622
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3601
3623
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3602
3624
|
value: f
|
|
3603
3625
|
});
|
|
3604
3626
|
continue;
|
|
3605
3627
|
}
|
|
3606
|
-
if (
|
|
3607
|
-
var p = typeof l.style == "string" ?
|
|
3628
|
+
if (Ut(l)) {
|
|
3629
|
+
var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3608
3630
|
a.push({
|
|
3609
3631
|
type: w.literal,
|
|
3610
3632
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3611
3633
|
});
|
|
3612
3634
|
continue;
|
|
3613
3635
|
}
|
|
3614
|
-
if (
|
|
3615
|
-
var p = typeof l.style == "string" ?
|
|
3636
|
+
if (Gt(l)) {
|
|
3637
|
+
var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3616
3638
|
a.push({
|
|
3617
3639
|
type: w.literal,
|
|
3618
3640
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3619
3641
|
});
|
|
3620
3642
|
continue;
|
|
3621
3643
|
}
|
|
3622
|
-
if (
|
|
3623
|
-
var p = typeof l.style == "string" ?
|
|
3644
|
+
if (Dt(l)) {
|
|
3645
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3624
3646
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3625
3647
|
type: w.literal,
|
|
3626
3648
|
value: r.getNumberFormat(t, p).format(f)
|
|
3627
3649
|
});
|
|
3628
3650
|
continue;
|
|
3629
3651
|
}
|
|
3630
|
-
if (
|
|
3631
|
-
var y = l.children, m = l.value, x =
|
|
3632
|
-
if (!
|
|
3633
|
-
throw new
|
|
3634
|
-
var P = fe(y, t, r,
|
|
3652
|
+
if (kt(l)) {
|
|
3653
|
+
var y = l.children, m = l.value, x = i[m];
|
|
3654
|
+
if (!kn(x))
|
|
3655
|
+
throw new Gn(m, "function", s);
|
|
3656
|
+
var P = fe(y, t, r, n, i, o), A = x(P.map(function(b) {
|
|
3635
3657
|
return b.value;
|
|
3636
3658
|
}));
|
|
3637
3659
|
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(b) {
|
|
@@ -3641,14 +3663,14 @@ function fe(e, t, r, i, n, o, s) {
|
|
|
3641
3663
|
};
|
|
3642
3664
|
}));
|
|
3643
3665
|
}
|
|
3644
|
-
if (
|
|
3666
|
+
if (Ft(l)) {
|
|
3645
3667
|
var S = l.options[f] || l.options.other;
|
|
3646
3668
|
if (!S)
|
|
3647
|
-
throw new
|
|
3648
|
-
a.push.apply(a, fe(S.value, t, r,
|
|
3669
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3670
|
+
a.push.apply(a, fe(S.value, t, r, n, i));
|
|
3649
3671
|
continue;
|
|
3650
3672
|
}
|
|
3651
|
-
if (
|
|
3673
|
+
if (jt(l)) {
|
|
3652
3674
|
var S = l.options["=".concat(f)];
|
|
3653
3675
|
if (!S) {
|
|
3654
3676
|
if (!Intl.PluralRules)
|
|
@@ -3659,24 +3681,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3659
3681
|
S = l.options[N] || l.options.other;
|
|
3660
3682
|
}
|
|
3661
3683
|
if (!S)
|
|
3662
|
-
throw new
|
|
3663
|
-
a.push.apply(a, fe(S.value, t, r,
|
|
3684
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3685
|
+
a.push.apply(a, fe(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3664
3686
|
continue;
|
|
3665
3687
|
}
|
|
3666
3688
|
}
|
|
3667
|
-
return
|
|
3689
|
+
return jn(a);
|
|
3668
3690
|
}
|
|
3669
|
-
function
|
|
3670
|
-
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r,
|
|
3671
|
-
return r[
|
|
3691
|
+
function Vn(e, t) {
|
|
3692
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3693
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3672
3694
|
}, {})) : e;
|
|
3673
3695
|
}
|
|
3674
|
-
function
|
|
3675
|
-
return t ? Object.keys(e).reduce(function(r,
|
|
3676
|
-
return r[
|
|
3696
|
+
function Xn(e, t) {
|
|
3697
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3698
|
+
return r[n] = Vn(e[n], t[n]), r;
|
|
3677
3699
|
}, v({}, e)) : e;
|
|
3678
3700
|
}
|
|
3679
|
-
function
|
|
3701
|
+
function Ae(e) {
|
|
3680
3702
|
return {
|
|
3681
3703
|
create: function() {
|
|
3682
3704
|
return {
|
|
@@ -3690,42 +3712,42 @@ function we(e) {
|
|
|
3690
3712
|
}
|
|
3691
3713
|
};
|
|
3692
3714
|
}
|
|
3693
|
-
function
|
|
3715
|
+
function Wn(e) {
|
|
3694
3716
|
return e === void 0 && (e = {
|
|
3695
3717
|
number: {},
|
|
3696
3718
|
dateTime: {},
|
|
3697
3719
|
pluralRules: {}
|
|
3698
3720
|
}), {
|
|
3699
|
-
getNumberFormat:
|
|
3700
|
-
for (var t, r = [],
|
|
3701
|
-
r[
|
|
3721
|
+
getNumberFormat: Te(function() {
|
|
3722
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3723
|
+
r[n] = arguments[n];
|
|
3702
3724
|
return new ((t = Intl.NumberFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3703
3725
|
}, {
|
|
3704
|
-
cache:
|
|
3705
|
-
strategy:
|
|
3726
|
+
cache: Ae(e.number),
|
|
3727
|
+
strategy: He.variadic
|
|
3706
3728
|
}),
|
|
3707
|
-
getDateTimeFormat:
|
|
3708
|
-
for (var t, r = [],
|
|
3709
|
-
r[
|
|
3729
|
+
getDateTimeFormat: Te(function() {
|
|
3730
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3731
|
+
r[n] = arguments[n];
|
|
3710
3732
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3711
3733
|
}, {
|
|
3712
|
-
cache:
|
|
3713
|
-
strategy:
|
|
3734
|
+
cache: Ae(e.dateTime),
|
|
3735
|
+
strategy: He.variadic
|
|
3714
3736
|
}),
|
|
3715
|
-
getPluralRules:
|
|
3716
|
-
for (var t, r = [],
|
|
3717
|
-
r[
|
|
3737
|
+
getPluralRules: Te(function() {
|
|
3738
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3739
|
+
r[n] = arguments[n];
|
|
3718
3740
|
return new ((t = Intl.PluralRules).bind.apply(t, W([void 0], r, !1)))();
|
|
3719
3741
|
}, {
|
|
3720
|
-
cache:
|
|
3721
|
-
strategy:
|
|
3742
|
+
cache: Ae(e.pluralRules),
|
|
3743
|
+
strategy: He.variadic
|
|
3722
3744
|
})
|
|
3723
3745
|
};
|
|
3724
3746
|
}
|
|
3725
|
-
var
|
|
3747
|
+
var zn = (
|
|
3726
3748
|
/** @class */
|
|
3727
3749
|
function() {
|
|
3728
|
-
function e(t, r,
|
|
3750
|
+
function e(t, r, n, i) {
|
|
3729
3751
|
r === void 0 && (r = e.defaultLocale);
|
|
3730
3752
|
var o = this;
|
|
3731
3753
|
if (this.formatterCache = {
|
|
@@ -3752,15 +3774,15 @@ var ki = (
|
|
|
3752
3774
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3753
3775
|
if (this.message = t, !e.__parse)
|
|
3754
3776
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3755
|
-
var s =
|
|
3777
|
+
var s = i || {};
|
|
3756
3778
|
s.formatters;
|
|
3757
|
-
var a =
|
|
3779
|
+
var a = Tr(s, ["formatters"]);
|
|
3758
3780
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3759
3781
|
} else
|
|
3760
3782
|
this.ast = t;
|
|
3761
3783
|
if (!Array.isArray(this.ast))
|
|
3762
3784
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3763
|
-
this.formats =
|
|
3785
|
+
this.formats = Xn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
|
|
3764
3786
|
}
|
|
3765
3787
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3766
3788
|
get: function() {
|
|
@@ -3773,7 +3795,7 @@ var ki = (
|
|
|
3773
3795
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3774
3796
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3775
3797
|
}
|
|
3776
|
-
}, e.__parse =
|
|
3798
|
+
}, e.__parse = Un, e.formats = {
|
|
3777
3799
|
number: {
|
|
3778
3800
|
integer: {
|
|
3779
3801
|
maximumFractionDigits: 0
|
|
@@ -3834,113 +3856,113 @@ var ki = (
|
|
|
3834
3856
|
}, e;
|
|
3835
3857
|
}()
|
|
3836
3858
|
);
|
|
3837
|
-
function
|
|
3859
|
+
function Zn(e, t) {
|
|
3838
3860
|
if (t == null)
|
|
3839
3861
|
return;
|
|
3840
3862
|
if (t in e)
|
|
3841
3863
|
return e[t];
|
|
3842
3864
|
const r = t.split(".");
|
|
3843
|
-
let
|
|
3844
|
-
for (let
|
|
3845
|
-
if (typeof
|
|
3846
|
-
if (
|
|
3847
|
-
const o = r.slice(
|
|
3848
|
-
if (o in
|
|
3849
|
-
|
|
3865
|
+
let n = e;
|
|
3866
|
+
for (let i = 0; i < r.length; i++)
|
|
3867
|
+
if (typeof n == "object") {
|
|
3868
|
+
if (i > 0) {
|
|
3869
|
+
const o = r.slice(i, r.length).join(".");
|
|
3870
|
+
if (o in n) {
|
|
3871
|
+
n = n[o];
|
|
3850
3872
|
break;
|
|
3851
3873
|
}
|
|
3852
3874
|
}
|
|
3853
|
-
|
|
3875
|
+
n = n[r[i]];
|
|
3854
3876
|
} else
|
|
3855
|
-
|
|
3856
|
-
return
|
|
3877
|
+
n = void 0;
|
|
3878
|
+
return n;
|
|
3857
3879
|
}
|
|
3858
|
-
const $ = {},
|
|
3880
|
+
const $ = {}, Yn = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), qt = (e, t) => {
|
|
3859
3881
|
if (t == null)
|
|
3860
3882
|
return;
|
|
3861
3883
|
if (t in $ && e in $[t])
|
|
3862
3884
|
return $[t][e];
|
|
3863
3885
|
const r = Ee(t);
|
|
3864
|
-
for (let
|
|
3865
|
-
const
|
|
3886
|
+
for (let n = 0; n < r.length; n++) {
|
|
3887
|
+
const i = r[n], o = Jn(i, e);
|
|
3866
3888
|
if (o)
|
|
3867
|
-
return
|
|
3889
|
+
return Yn(e, t, o);
|
|
3868
3890
|
}
|
|
3869
3891
|
};
|
|
3870
|
-
let
|
|
3892
|
+
let Je;
|
|
3871
3893
|
const ae = ye({});
|
|
3872
|
-
function
|
|
3873
|
-
return
|
|
3894
|
+
function Qn(e) {
|
|
3895
|
+
return Je[e] || null;
|
|
3874
3896
|
}
|
|
3875
|
-
function
|
|
3876
|
-
return e in
|
|
3897
|
+
function Kt(e) {
|
|
3898
|
+
return e in Je;
|
|
3877
3899
|
}
|
|
3878
|
-
function
|
|
3879
|
-
if (!
|
|
3900
|
+
function Jn(e, t) {
|
|
3901
|
+
if (!Kt(e))
|
|
3880
3902
|
return null;
|
|
3881
|
-
const r =
|
|
3882
|
-
return
|
|
3903
|
+
const r = Qn(e);
|
|
3904
|
+
return Zn(r, t);
|
|
3883
3905
|
}
|
|
3884
|
-
function
|
|
3906
|
+
function qn(e) {
|
|
3885
3907
|
if (e == null)
|
|
3886
3908
|
return;
|
|
3887
3909
|
const t = Ee(e);
|
|
3888
3910
|
for (let r = 0; r < t.length; r++) {
|
|
3889
|
-
const
|
|
3890
|
-
if (
|
|
3891
|
-
return
|
|
3911
|
+
const n = t[r];
|
|
3912
|
+
if (Kt(n))
|
|
3913
|
+
return n;
|
|
3892
3914
|
}
|
|
3893
3915
|
}
|
|
3894
|
-
function
|
|
3895
|
-
delete $[e], ae.update((r) => (r[e] =
|
|
3916
|
+
function er(e, ...t) {
|
|
3917
|
+
delete $[e], ae.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3896
3918
|
}
|
|
3897
3919
|
J(
|
|
3898
3920
|
[ae],
|
|
3899
3921
|
([e]) => Object.keys(e)
|
|
3900
3922
|
);
|
|
3901
|
-
ae.subscribe((e) =>
|
|
3923
|
+
ae.subscribe((e) => Je = e);
|
|
3902
3924
|
const pe = {};
|
|
3903
|
-
function
|
|
3925
|
+
function Kn(e, t) {
|
|
3904
3926
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3905
3927
|
}
|
|
3906
|
-
function
|
|
3928
|
+
function tr(e) {
|
|
3907
3929
|
return pe[e];
|
|
3908
3930
|
}
|
|
3909
|
-
function
|
|
3931
|
+
function ei(e) {
|
|
3910
3932
|
return Ee(e).map((t) => {
|
|
3911
|
-
const r =
|
|
3933
|
+
const r = tr(t);
|
|
3912
3934
|
return [t, r ? [...r] : []];
|
|
3913
3935
|
}).filter(([, t]) => t.length > 0);
|
|
3914
3936
|
}
|
|
3915
|
-
function
|
|
3937
|
+
function Ve(e) {
|
|
3916
3938
|
return e == null ? !1 : Ee(e).some(
|
|
3917
3939
|
(t) => {
|
|
3918
3940
|
var r;
|
|
3919
|
-
return (r =
|
|
3941
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3920
3942
|
}
|
|
3921
3943
|
);
|
|
3922
3944
|
}
|
|
3923
|
-
function
|
|
3945
|
+
function ti(e, t) {
|
|
3924
3946
|
return Promise.all(
|
|
3925
|
-
t.map((
|
|
3926
|
-
).then((
|
|
3947
|
+
t.map((n) => (Kn(e, n), n().then((i) => i.default || i)))
|
|
3948
|
+
).then((n) => er(e, ...n));
|
|
3927
3949
|
}
|
|
3928
3950
|
const ee = {};
|
|
3929
|
-
function
|
|
3930
|
-
if (!
|
|
3951
|
+
function rr(e) {
|
|
3952
|
+
if (!Ve(e))
|
|
3931
3953
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3932
|
-
const t =
|
|
3954
|
+
const t = ei(e);
|
|
3933
3955
|
return ee[e] = Promise.all(
|
|
3934
3956
|
t.map(
|
|
3935
|
-
([r,
|
|
3957
|
+
([r, n]) => ti(r, n)
|
|
3936
3958
|
)
|
|
3937
3959
|
).then(() => {
|
|
3938
|
-
if (
|
|
3939
|
-
return
|
|
3960
|
+
if (Ve(e))
|
|
3961
|
+
return rr(e);
|
|
3940
3962
|
delete ee[e];
|
|
3941
3963
|
}), ee[e];
|
|
3942
3964
|
}
|
|
3943
|
-
const
|
|
3965
|
+
const ri = {
|
|
3944
3966
|
number: {
|
|
3945
3967
|
scientific: { notation: "scientific" },
|
|
3946
3968
|
engineering: { notation: "engineering" },
|
|
@@ -3969,78 +3991,78 @@ const qi = {
|
|
|
3969
3991
|
timeZoneName: "short"
|
|
3970
3992
|
}
|
|
3971
3993
|
}
|
|
3972
|
-
},
|
|
3994
|
+
}, ni = {
|
|
3973
3995
|
fallbackLocale: null,
|
|
3974
3996
|
loadingDelay: 200,
|
|
3975
|
-
formats:
|
|
3997
|
+
formats: ri,
|
|
3976
3998
|
warnOnMissingMessages: !0,
|
|
3977
3999
|
handleMissingMessage: void 0,
|
|
3978
4000
|
ignoreTag: !0
|
|
3979
|
-
},
|
|
4001
|
+
}, ii = ni;
|
|
3980
4002
|
function Q() {
|
|
3981
|
-
return
|
|
4003
|
+
return ii;
|
|
3982
4004
|
}
|
|
3983
|
-
const
|
|
3984
|
-
var
|
|
4005
|
+
const Pe = ye(!1);
|
|
4006
|
+
var oi = Object.defineProperty, si = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3985
4007
|
for (var r in t || (t = {}))
|
|
3986
|
-
|
|
3987
|
-
if (
|
|
3988
|
-
for (var r of
|
|
3989
|
-
|
|
4008
|
+
ui.call(t, r) && yt(e, r, t[r]);
|
|
4009
|
+
if (gt)
|
|
4010
|
+
for (var r of gt(t))
|
|
4011
|
+
hi.call(t, r) && yt(e, r, t[r]);
|
|
3990
4012
|
return e;
|
|
3991
|
-
},
|
|
3992
|
-
let
|
|
4013
|
+
}, ci = (e, t) => si(e, ai(t));
|
|
4014
|
+
let Xe;
|
|
3993
4015
|
const me = ye(null);
|
|
3994
|
-
function
|
|
3995
|
-
return e.split("-").map((t, r,
|
|
4016
|
+
function vt(e) {
|
|
4017
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3996
4018
|
}
|
|
3997
4019
|
function Ee(e, t = Q().fallbackLocale) {
|
|
3998
|
-
const r =
|
|
3999
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4020
|
+
const r = vt(e);
|
|
4021
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4000
4022
|
}
|
|
4001
4023
|
function G() {
|
|
4002
|
-
return
|
|
4024
|
+
return Xe ?? void 0;
|
|
4003
4025
|
}
|
|
4004
4026
|
me.subscribe((e) => {
|
|
4005
|
-
|
|
4027
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4006
4028
|
});
|
|
4007
|
-
const
|
|
4008
|
-
if (e &&
|
|
4029
|
+
const fi = (e) => {
|
|
4030
|
+
if (e && qn(e) && Ve(e)) {
|
|
4009
4031
|
const { loadingDelay: t } = Q();
|
|
4010
4032
|
let r;
|
|
4011
4033
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4012
|
-
() =>
|
|
4034
|
+
() => Pe.set(!0),
|
|
4013
4035
|
t
|
|
4014
|
-
) :
|
|
4036
|
+
) : Pe.set(!0), rr(e).then(() => {
|
|
4015
4037
|
me.set(e);
|
|
4016
4038
|
}).finally(() => {
|
|
4017
|
-
clearTimeout(r),
|
|
4039
|
+
clearTimeout(r), Pe.set(!1);
|
|
4018
4040
|
});
|
|
4019
4041
|
}
|
|
4020
4042
|
return me.set(e);
|
|
4021
|
-
}, q =
|
|
4022
|
-
set:
|
|
4043
|
+
}, q = ci(li({}, me), {
|
|
4044
|
+
set: fi
|
|
4023
4045
|
}), _e = (e) => {
|
|
4024
4046
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4025
|
-
return (
|
|
4026
|
-
const
|
|
4027
|
-
return
|
|
4047
|
+
return (n) => {
|
|
4048
|
+
const i = JSON.stringify(n);
|
|
4049
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4028
4050
|
};
|
|
4029
4051
|
};
|
|
4030
|
-
var
|
|
4052
|
+
var pi = Object.defineProperty, be = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4031
4053
|
for (var r in t || (t = {}))
|
|
4032
|
-
|
|
4054
|
+
nr.call(t, r) && Et(e, r, t[r]);
|
|
4033
4055
|
if (be)
|
|
4034
4056
|
for (var r of be(t))
|
|
4035
|
-
|
|
4057
|
+
ir.call(t, r) && Et(e, r, t[r]);
|
|
4036
4058
|
return e;
|
|
4037
4059
|
}, K = (e, t) => {
|
|
4038
4060
|
var r = {};
|
|
4039
|
-
for (var
|
|
4040
|
-
|
|
4061
|
+
for (var n in e)
|
|
4062
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4041
4063
|
if (e != null && be)
|
|
4042
|
-
for (var
|
|
4043
|
-
t.indexOf(
|
|
4064
|
+
for (var n of be(e))
|
|
4065
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4044
4066
|
return r;
|
|
4045
4067
|
};
|
|
4046
4068
|
const oe = (e, t) => {
|
|
@@ -4048,57 +4070,57 @@ const oe = (e, t) => {
|
|
|
4048
4070
|
if (e in r && t in r[e])
|
|
4049
4071
|
return r[e][t];
|
|
4050
4072
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4051
|
-
},
|
|
4073
|
+
}, mi = _e(
|
|
4052
4074
|
(e) => {
|
|
4053
|
-
var t = e, { locale: r, format:
|
|
4075
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4054
4076
|
if (r == null)
|
|
4055
4077
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4056
|
-
return
|
|
4078
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4057
4079
|
}
|
|
4058
|
-
),
|
|
4080
|
+
), bi = _e(
|
|
4059
4081
|
(e) => {
|
|
4060
|
-
var t = e, { locale: r, format:
|
|
4082
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4061
4083
|
if (r == null)
|
|
4062
4084
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4063
|
-
return
|
|
4085
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4064
4086
|
}
|
|
4065
|
-
),
|
|
4087
|
+
), di = _e(
|
|
4066
4088
|
(e) => {
|
|
4067
|
-
var t = e, { locale: r, format:
|
|
4089
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4068
4090
|
if (r == null)
|
|
4069
4091
|
throw new Error(
|
|
4070
4092
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4071
4093
|
);
|
|
4072
|
-
return
|
|
4094
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4073
4095
|
}
|
|
4074
|
-
),
|
|
4096
|
+
), gi = (e = {}) => {
|
|
4075
4097
|
var t = e, {
|
|
4076
4098
|
locale: r = G()
|
|
4077
|
-
} = t,
|
|
4099
|
+
} = t, n = K(t, [
|
|
4078
4100
|
"locale"
|
|
4079
4101
|
]);
|
|
4080
|
-
return
|
|
4081
|
-
},
|
|
4102
|
+
return mi(qe({ locale: r }, n));
|
|
4103
|
+
}, yi = (e = {}) => {
|
|
4082
4104
|
var t = e, {
|
|
4083
4105
|
locale: r = G()
|
|
4084
|
-
} = t,
|
|
4106
|
+
} = t, n = K(t, [
|
|
4085
4107
|
"locale"
|
|
4086
4108
|
]);
|
|
4087
|
-
return
|
|
4088
|
-
},
|
|
4109
|
+
return bi(qe({ locale: r }, n));
|
|
4110
|
+
}, vi = (e = {}) => {
|
|
4089
4111
|
var t = e, {
|
|
4090
4112
|
locale: r = G()
|
|
4091
|
-
} = t,
|
|
4113
|
+
} = t, n = K(t, [
|
|
4092
4114
|
"locale"
|
|
4093
4115
|
]);
|
|
4094
|
-
return
|
|
4095
|
-
},
|
|
4116
|
+
return di(qe({ locale: r }, n));
|
|
4117
|
+
}, Ei = _e(
|
|
4096
4118
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4097
|
-
(e, t = G()) => new
|
|
4119
|
+
(e, t = G()) => new zn(e, t, Q().formats, {
|
|
4098
4120
|
ignoreTag: Q().ignoreTag
|
|
4099
4121
|
})
|
|
4100
|
-
),
|
|
4101
|
-
var r,
|
|
4122
|
+
), _i = (e, t = {}) => {
|
|
4123
|
+
var r, n, i, o;
|
|
4102
4124
|
let s = t;
|
|
4103
4125
|
typeof e == "object" && (s = e, e = s.id);
|
|
4104
4126
|
const {
|
|
@@ -4110,9 +4132,9 @@ const oe = (e, t) => {
|
|
|
4110
4132
|
throw new Error(
|
|
4111
4133
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4112
4134
|
);
|
|
4113
|
-
let l =
|
|
4135
|
+
let l = qt(e, h);
|
|
4114
4136
|
if (!l)
|
|
4115
|
-
l = (o = (
|
|
4137
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4116
4138
|
else if (typeof l != "string")
|
|
4117
4139
|
return console.warn(
|
|
4118
4140
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4121,7 +4143,7 @@ const oe = (e, t) => {
|
|
|
4121
4143
|
return l;
|
|
4122
4144
|
let c = l;
|
|
4123
4145
|
try {
|
|
4124
|
-
c =
|
|
4146
|
+
c = Ei(l, h).format(a);
|
|
4125
4147
|
} catch (f) {
|
|
4126
4148
|
f instanceof Error && console.warn(
|
|
4127
4149
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4129,20 +4151,20 @@ const oe = (e, t) => {
|
|
|
4129
4151
|
);
|
|
4130
4152
|
}
|
|
4131
4153
|
return c;
|
|
4132
|
-
},
|
|
4133
|
-
J([q], () =>
|
|
4134
|
-
J([q], () =>
|
|
4135
|
-
J([q], () =>
|
|
4136
|
-
J([q, ae], () =>
|
|
4137
|
-
window.emWidgets = { topic:
|
|
4138
|
-
const
|
|
4139
|
-
function
|
|
4140
|
-
|
|
4141
|
-
}
|
|
4142
|
-
function
|
|
4154
|
+
}, xi = (e, t) => vi(t).format(e), Bi = (e, t) => yi(t).format(e), Si = (e, t) => gi(t).format(e), Ti = (e, t = G()) => qt(e, t), Hi = J([q, ae], () => _i);
|
|
4155
|
+
J([q], () => xi);
|
|
4156
|
+
J([q], () => Bi);
|
|
4157
|
+
J([q], () => Si);
|
|
4158
|
+
J([q, ae], () => Ti);
|
|
4159
|
+
window.emWidgets = { topic: Ur };
|
|
4160
|
+
const wi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4161
|
+
function _t(e, t) {
|
|
4162
|
+
er(e, t);
|
|
4163
|
+
}
|
|
4164
|
+
function Ai(e) {
|
|
4143
4165
|
q.set(e);
|
|
4144
4166
|
}
|
|
4145
|
-
const
|
|
4167
|
+
const xt = {
|
|
4146
4168
|
en: {
|
|
4147
4169
|
titleBiometrics: "Biometrics Authentication",
|
|
4148
4170
|
descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
|
|
@@ -4221,20 +4243,20 @@ const vt = {
|
|
|
4221
4243
|
btnDisableBiometrics: "Disable biometrics"
|
|
4222
4244
|
}
|
|
4223
4245
|
};
|
|
4224
|
-
function
|
|
4225
|
-
|
|
4246
|
+
function Pi(e) {
|
|
4247
|
+
ar(e, "svelte-1cpvxby", ".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons .BiometricsToggle{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
|
|
4226
4248
|
}
|
|
4227
|
-
function
|
|
4228
|
-
let t, r,
|
|
4249
|
+
function Oi(e) {
|
|
4250
|
+
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4229
4251
|
/*$_*/
|
|
4230
4252
|
e[2]("titleBiometrics") + ""
|
|
4231
4253
|
), f, p, y;
|
|
4232
4254
|
return {
|
|
4233
4255
|
c() {
|
|
4234
|
-
t = I("div"), r = F("svg"),
|
|
4256
|
+
t = I("div"), r = F("svg"), n = F("defs"), i = F("style"), o = U(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = F("g"), a = F("g"), h = F("path"), u = te(), l = I("h2"), f = U(c), B(h, "class", "aaa"), B(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(h, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "width", "15"), B(r, "height", "15"), B(r, "viewBox", "0 0 15 15"), B(l, "class", "BiometricsTitleMobile"), B(l, "part", "BiometricsTitleMobile"), B(t, "class", "MenuReturnButton"), B(t, "part", "MenuReturnButton");
|
|
4235
4257
|
},
|
|
4236
4258
|
m(m, x) {
|
|
4237
|
-
|
|
4259
|
+
ze(m, t, x), E(t, r), E(r, n), E(n, i), E(i, o), E(r, s), E(s, a), E(a, h), E(t, u), E(t, l), E(l, f), p || (y = Ht(
|
|
4238
4260
|
t,
|
|
4239
4261
|
"click",
|
|
4240
4262
|
/*click_handler*/
|
|
@@ -4251,8 +4273,8 @@ function wn(e) {
|
|
|
4251
4273
|
}
|
|
4252
4274
|
};
|
|
4253
4275
|
}
|
|
4254
|
-
function
|
|
4255
|
-
let t, r,
|
|
4276
|
+
function Ii(e) {
|
|
4277
|
+
let t, r, n, i, o = (
|
|
4256
4278
|
/*$_*/
|
|
4257
4279
|
e[2]("titleBiometrics") + ""
|
|
4258
4280
|
), s, a, h, u, l = (
|
|
@@ -4272,18 +4294,18 @@ function An(e) {
|
|
|
4272
4294
|
)) + ""
|
|
4273
4295
|
), N, b, T, H = (
|
|
4274
4296
|
/*isMobile*/
|
|
4275
|
-
e[3] &&
|
|
4297
|
+
e[3] && Oi(e)
|
|
4276
4298
|
);
|
|
4277
4299
|
return {
|
|
4278
4300
|
c() {
|
|
4279
|
-
t = I("div"), r = I("div"), H && H.c(),
|
|
4301
|
+
t = I("div"), r = I("div"), H && H.c(), n = te(), i = I("h2"), s = U(o), a = te(), h = I("div"), u = I("p"), c = U(l), f = te(), p = I("p"), m = U(y), x = te(), P = I("div"), A = I("button"), N = U(S), B(i, "class", "BiometricsTitle " + /*isMobile*/
|
|
4280
4302
|
(e[3] ? "BiometricsTitleNone" : "")), B(h, "class", "BiometricsDescription " + /*isMobile*/
|
|
4281
4303
|
(e[3] ? "BiometricsDescriptionMobile" : "")), B(A, "class", "BiometricsToggle"), B(P, "class", "BiometricsActionButtons " + /*isMobile*/
|
|
4282
4304
|
(e[3] ? "BiometricsActionButtonsMobile" : "")), B(r, "class", "BiometricsWrapper " + /*isMobile*/
|
|
4283
4305
|
(e[3] ? "BiometricsWrapperMobile" : ""));
|
|
4284
4306
|
},
|
|
4285
4307
|
m(O, R) {
|
|
4286
|
-
|
|
4308
|
+
ze(O, t, R), E(t, r), H && H.m(r, null), E(r, n), E(r, i), E(i, s), E(r, a), E(r, h), E(h, u), E(u, c), E(h, f), E(h, p), E(p, m), E(r, x), E(r, P), E(P, A), E(A, N), e[12](t), b || (T = Ht(
|
|
4287
4309
|
A,
|
|
4288
4310
|
"click",
|
|
4289
4311
|
/*click_handler_1*/
|
|
@@ -4315,21 +4337,21 @@ function An(e) {
|
|
|
4315
4337
|
}
|
|
4316
4338
|
};
|
|
4317
4339
|
}
|
|
4318
|
-
function
|
|
4319
|
-
let
|
|
4320
|
-
|
|
4321
|
-
let { biometricsenabled:
|
|
4340
|
+
function Ni(e, t, r) {
|
|
4341
|
+
let n;
|
|
4342
|
+
sr(e, Hi, (b) => r(2, n = b));
|
|
4343
|
+
let { biometricsenabled: i = "false" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: h = "" } = t, u, l = window.navigator.userAgent, c = wi(l) !== "PC";
|
|
4322
4344
|
const f = () => {
|
|
4323
4345
|
fetch(h).then((T) => T.json()).then((T) => {
|
|
4324
4346
|
Object.keys(T).forEach((H) => {
|
|
4325
|
-
|
|
4347
|
+
_t(H, T[H]);
|
|
4326
4348
|
});
|
|
4327
4349
|
}).catch((T) => {
|
|
4328
4350
|
console.log(T);
|
|
4329
4351
|
});
|
|
4330
4352
|
};
|
|
4331
|
-
Object.keys(
|
|
4332
|
-
|
|
4353
|
+
Object.keys(xt).forEach((b) => {
|
|
4354
|
+
_t(b, xt[b]);
|
|
4333
4355
|
});
|
|
4334
4356
|
const p = () => {
|
|
4335
4357
|
let b = document.createElement("style");
|
|
@@ -4345,7 +4367,7 @@ function Pn(e, t, r) {
|
|
|
4345
4367
|
);
|
|
4346
4368
|
});
|
|
4347
4369
|
}, m = () => {
|
|
4348
|
-
|
|
4370
|
+
Ai(o);
|
|
4349
4371
|
}, x = () => {
|
|
4350
4372
|
window.postMessage(
|
|
4351
4373
|
{
|
|
@@ -4355,18 +4377,18 @@ function Pn(e, t, r) {
|
|
|
4355
4377
|
window.location.href
|
|
4356
4378
|
);
|
|
4357
4379
|
}, P = () => {
|
|
4358
|
-
|
|
4380
|
+
i === "true" ? r(0, i = "false") : i === "false" && r(0, i = "true"), window.postMessage({
|
|
4359
4381
|
type: "ToggleBiometrics",
|
|
4360
|
-
data:
|
|
4382
|
+
data: i
|
|
4361
4383
|
});
|
|
4362
4384
|
}, A = () => x(), S = () => P();
|
|
4363
4385
|
function N(b) {
|
|
4364
|
-
|
|
4386
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4365
4387
|
u = b, r(1, u);
|
|
4366
4388
|
});
|
|
4367
4389
|
}
|
|
4368
4390
|
return e.$$set = (b) => {
|
|
4369
|
-
"biometricsenabled" in b && r(0,
|
|
4391
|
+
"biometricsenabled" in b && r(0, i = b.biometricsenabled), "lang" in b && r(6, o = b.lang), "clientstyling" in b && r(7, s = b.clientstyling), "clientstylingurl" in b && r(8, a = b.clientstylingurl), "translationurl" in b && r(9, h = b.translationurl);
|
|
4370
4392
|
}, e.$$.update = () => {
|
|
4371
4393
|
e.$$.dirty & /*lang*/
|
|
4372
4394
|
64 && o && m(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
@@ -4374,9 +4396,9 @@ function Pn(e, t, r) {
|
|
|
4374
4396
|
130 && s && u && p(), e.$$.dirty & /*translationurl*/
|
|
4375
4397
|
512 && h && f();
|
|
4376
4398
|
}, [
|
|
4377
|
-
n,
|
|
4378
|
-
u,
|
|
4379
4399
|
i,
|
|
4400
|
+
u,
|
|
4401
|
+
n,
|
|
4380
4402
|
c,
|
|
4381
4403
|
x,
|
|
4382
4404
|
P,
|
|
@@ -4389,14 +4411,14 @@ function Pn(e, t, r) {
|
|
|
4389
4411
|
N
|
|
4390
4412
|
];
|
|
4391
4413
|
}
|
|
4392
|
-
class
|
|
4414
|
+
class Ci extends Br {
|
|
4393
4415
|
constructor(t) {
|
|
4394
|
-
super(),
|
|
4416
|
+
super(), _r(
|
|
4395
4417
|
this,
|
|
4396
4418
|
t,
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4419
|
+
Ni,
|
|
4420
|
+
Ii,
|
|
4421
|
+
St,
|
|
4400
4422
|
{
|
|
4401
4423
|
biometricsenabled: 0,
|
|
4402
4424
|
lang: 6,
|
|
@@ -4404,7 +4426,7 @@ class On extends vr {
|
|
|
4404
4426
|
clientstylingurl: 8,
|
|
4405
4427
|
translationurl: 9
|
|
4406
4428
|
},
|
|
4407
|
-
|
|
4429
|
+
Pi
|
|
4408
4430
|
);
|
|
4409
4431
|
}
|
|
4410
4432
|
get biometricsenabled() {
|
|
@@ -4438,7 +4460,7 @@ class On extends vr {
|
|
|
4438
4460
|
this.$$set({ translationurl: t }), D();
|
|
4439
4461
|
}
|
|
4440
4462
|
}
|
|
4441
|
-
|
|
4463
|
+
xr(Ci, { biometricsenabled: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4442
4464
|
export {
|
|
4443
|
-
|
|
4465
|
+
Ci as P
|
|
4444
4466
|
};
|