@everymatrix/player-account-timeout 1.59.3 → 1.60.1
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/PlayerAccountGeneralConfirmationModal-BOJYp5ik.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-Bw8OUJ0O.js → PlayerAccountGeneralConfirmationModal-Bnh1XDOd.js} +582 -560
- package/components/{PlayerAccountGeneralConfirmationModal-BJlFEgEt.js → PlayerAccountGeneralConfirmationModal-DoeReNtd.js} +621 -599
- package/components/{PlayerAccountTimeout-CD3CVuTq.js → PlayerAccountTimeout-BwjXoolL.js} +782 -777
- package/components/{PlayerAccountTimeout-CumYINDT.js → PlayerAccountTimeout-CevSawOi.js} +767 -762
- package/components/{PlayerAccountTimeout-BrEWXYC6.cjs → PlayerAccountTimeout-toIsD22a.cjs} +153 -153
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BLGDaRxR.js +519 -0
- package/stencil/index-b2193545-CgYO4hhs.cjs +1 -0
- package/stencil/index-b2193545-dQymAF3M.js +503 -0
- package/stencil/{ui-skeleton-DFpfaKvi.js → ui-skeleton-BCx6m_uC.js} +4 -4
- package/stencil/ui-skeleton-BtNRiNfn.cjs +1 -0
- package/stencil/{ui-skeleton-UUT_AJxa.js → ui-skeleton-DypM319u.js} +8 -8
- package/stencil/ui-skeleton-ea659b95-Bo7WD0ao.js +152 -0
- package/stencil/ui-skeleton-ea659b95-Dc45mVmr.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DyTVU8Ak.js +152 -0
- package/components/PlayerAccountGeneralConfirmationModal-jvS4uZK0.cjs +0 -18
- package/stencil/index-ae04a8b1-BxaX26xW.js +0 -516
- package/stencil/index-ae04a8b1-D7qYBP-T.js +0 -532
- package/stencil/index-ae04a8b1-Dk7mk6oB.cjs +0 -1
- package/stencil/ui-skeleton-IHMCRYEX.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-5nW6b8_l.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-BNXFvvk_.js +0 -122
- package/stencil/ui-skeleton-a642cced-DdY2eEM0.js +0 -122
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function pr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,25 +8,25 @@ function cr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ct(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function tt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function J(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Ct);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Qe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function br(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ot(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -35,19 +35,19 @@ function At(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function gr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Ot(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = It(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function It(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? pr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function vr(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function pr(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function xr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = It(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function _r(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function gr(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function Er(e, t, r) {
|
|
84
|
+
const n = Sr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = M("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, wr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Sr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,7 +97,7 @@ function yr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function wr(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
@@ -110,14 +110,14 @@ function se(e, t, r) {
|
|
|
110
110
|
function q(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function eo(e, t) {
|
|
114
114
|
for (let r = 0; r < e.length; r += 1)
|
|
115
115
|
e[r] && e[r].d(t);
|
|
116
116
|
}
|
|
117
117
|
function M(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function rt(e) {
|
|
121
121
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
122
122
|
}
|
|
123
123
|
function X(e) {
|
|
@@ -126,33 +126,33 @@ function X(e) {
|
|
|
126
126
|
function ue() {
|
|
127
127
|
return X(" ");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function to() {
|
|
130
130
|
return X("");
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ie(e, t, r, n) {
|
|
133
133
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
134
134
|
}
|
|
135
135
|
function H(e, t, r) {
|
|
136
136
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ro(e, t, r) {
|
|
139
139
|
const n = t.toLowerCase();
|
|
140
140
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Tr(e) {
|
|
143
143
|
return Array.from(e.childNodes);
|
|
144
144
|
}
|
|
145
145
|
function be(e, t) {
|
|
146
146
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
147
147
|
t);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function no(e, t) {
|
|
150
150
|
e.value = t ?? "";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function io(e, t, r, n) {
|
|
153
153
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function oo(e, t, r) {
|
|
156
156
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
157
157
|
const i = e.options[n];
|
|
158
158
|
if (i.__value === t) {
|
|
@@ -162,11 +162,11 @@ function ro(e, t, r) {
|
|
|
162
162
|
}
|
|
163
163
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function so(e) {
|
|
166
166
|
const t = e.querySelector(":checked");
|
|
167
167
|
return t && t.__value;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Hr(e) {
|
|
170
170
|
const t = {};
|
|
171
171
|
return e.childNodes.forEach(
|
|
172
172
|
/** @param {Element} node */
|
|
@@ -179,22 +179,22 @@ let ne;
|
|
|
179
179
|
function re(e) {
|
|
180
180
|
ne = e;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Br() {
|
|
183
183
|
if (!ne)
|
|
184
184
|
throw new Error("Function called outside component initialization");
|
|
185
185
|
return ne;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function Ar(e) {
|
|
188
|
+
Br().$$.on_mount.push(e);
|
|
189
189
|
}
|
|
190
|
-
const j = [],
|
|
190
|
+
const j = [], Me = [];
|
|
191
191
|
let k = [];
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
function
|
|
195
|
-
|
|
192
|
+
const nt = [], Cr = /* @__PURE__ */ Promise.resolve();
|
|
193
|
+
let Ne = !1;
|
|
194
|
+
function Pr() {
|
|
195
|
+
Ne || (Ne = !0, Cr.then(O));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Le(e) {
|
|
198
198
|
k.push(e);
|
|
199
199
|
}
|
|
200
200
|
const we = /* @__PURE__ */ new Set();
|
|
@@ -207,66 +207,66 @@ function O() {
|
|
|
207
207
|
try {
|
|
208
208
|
for (; D < j.length; ) {
|
|
209
209
|
const t = j[D];
|
|
210
|
-
D++, re(t),
|
|
210
|
+
D++, re(t), Or(t.$$);
|
|
211
211
|
}
|
|
212
212
|
} catch (t) {
|
|
213
213
|
throw j.length = 0, D = 0, t;
|
|
214
214
|
}
|
|
215
|
-
for (re(null), j.length = 0, D = 0;
|
|
216
|
-
|
|
215
|
+
for (re(null), j.length = 0, D = 0; Me.length; )
|
|
216
|
+
Me.pop()();
|
|
217
217
|
for (let t = 0; t < k.length; t += 1) {
|
|
218
218
|
const r = k[t];
|
|
219
219
|
we.has(r) || (we.add(r), r());
|
|
220
220
|
}
|
|
221
221
|
k.length = 0;
|
|
222
222
|
} while (j.length);
|
|
223
|
-
for (;
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
for (; nt.length; )
|
|
224
|
+
nt.pop()();
|
|
225
|
+
Ne = !1, we.clear(), re(e);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Or(e) {
|
|
228
228
|
if (e.fragment !== null) {
|
|
229
229
|
e.update(), J(e.before_update);
|
|
230
230
|
const t = e.dirty;
|
|
231
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
231
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ir(e) {
|
|
235
235
|
const t = [], r = [];
|
|
236
236
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
237
237
|
}
|
|
238
238
|
const ce = /* @__PURE__ */ new Set();
|
|
239
|
-
let
|
|
240
|
-
function
|
|
239
|
+
let Mr;
|
|
240
|
+
function Mt(e, t) {
|
|
241
241
|
e && e.i && (ce.delete(e), e.i(t));
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Nr(e, t, r, n) {
|
|
244
244
|
if (e && e.o) {
|
|
245
245
|
if (ce.has(e))
|
|
246
246
|
return;
|
|
247
|
-
ce.add(e),
|
|
247
|
+
ce.add(e), Mr.c.push(() => {
|
|
248
248
|
ce.delete(e);
|
|
249
249
|
}), e.o(t);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ao(e) {
|
|
253
253
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Lr(e, t, r) {
|
|
256
256
|
const { fragment: n, after_update: i } = e.$$;
|
|
257
|
-
n && n.m(t, r),
|
|
258
|
-
const o = e.$$.on_mount.map(
|
|
257
|
+
n && n.m(t, r), Le(() => {
|
|
258
|
+
const o = e.$$.on_mount.map(Ct).filter(Qe);
|
|
259
259
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
260
|
-
}), i.forEach(
|
|
260
|
+
}), i.forEach(Le);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Rr(e, t) {
|
|
263
263
|
const r = e.$$;
|
|
264
|
-
r.fragment !== null && (
|
|
264
|
+
r.fragment !== null && (Ir(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
266
|
+
function $r(e, t) {
|
|
267
|
+
e.$$.dirty[0] === -1 && (j.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
270
270
|
const l = ne;
|
|
271
271
|
re(e);
|
|
272
272
|
const u = e.$$ = {
|
|
@@ -276,7 +276,7 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
276
276
|
props: o,
|
|
277
277
|
update: N,
|
|
278
278
|
not_equal: i,
|
|
279
|
-
bound:
|
|
279
|
+
bound: tt(),
|
|
280
280
|
// lifecycle
|
|
281
281
|
on_mount: [],
|
|
282
282
|
on_destroy: [],
|
|
@@ -285,7 +285,7 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
285
285
|
after_update: [],
|
|
286
286
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
287
287
|
// everything else
|
|
288
|
-
callbacks:
|
|
288
|
+
callbacks: tt(),
|
|
289
289
|
dirty: a,
|
|
290
290
|
skip_bound: !1,
|
|
291
291
|
root: t.target || l.$$.root
|
|
@@ -294,19 +294,19 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
294
294
|
let h = !1;
|
|
295
295
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
296
296
|
const d = m.length ? m[0] : f;
|
|
297
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h &&
|
|
297
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && $r(e, c)), f;
|
|
298
298
|
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
299
299
|
if (t.hydrate) {
|
|
300
|
-
const c =
|
|
300
|
+
const c = Tr(t.target);
|
|
301
301
|
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
302
302
|
} else
|
|
303
303
|
u.fragment && u.fragment.c();
|
|
304
|
-
t.intro &&
|
|
304
|
+
t.intro && Mt(e.$$.fragment), Lr(e, t.target, t.anchor), O();
|
|
305
305
|
}
|
|
306
306
|
re(l);
|
|
307
307
|
}
|
|
308
|
-
let
|
|
309
|
-
typeof HTMLElement == "function" && (
|
|
308
|
+
let Nt;
|
|
309
|
+
typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
310
310
|
/** The Svelte component constructor */
|
|
311
311
|
$$ctor;
|
|
312
312
|
/** Slots */
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
365
365
|
};
|
|
366
366
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
367
367
|
return;
|
|
368
|
-
const t = {}, r =
|
|
368
|
+
const t = {}, r = Hr(this);
|
|
369
369
|
for (const i of this.$$s)
|
|
370
370
|
i in r && (t[i] = [e(i)]);
|
|
371
371
|
for (const i of this.attributes) {
|
|
@@ -452,8 +452,8 @@ function fe(e, t, r, n) {
|
|
|
452
452
|
return t;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
let s = class extends
|
|
455
|
+
function Ur(e, t, r, n, i, o) {
|
|
456
|
+
let s = class extends Nt {
|
|
457
457
|
constructor() {
|
|
458
458
|
super(e, r, i), this.$$p_d = t;
|
|
459
459
|
}
|
|
@@ -481,7 +481,7 @@ function Lr(e, t, r, n, i, o) {
|
|
|
481
481
|
}), e.element = /** @type {any} */
|
|
482
482
|
s, s;
|
|
483
483
|
}
|
|
484
|
-
class
|
|
484
|
+
class Dr {
|
|
485
485
|
/**
|
|
486
486
|
* ### PRIVATE API
|
|
487
487
|
*
|
|
@@ -500,7 +500,7 @@ class Rr {
|
|
|
500
500
|
$$set = void 0;
|
|
501
501
|
/** @returns {void} */
|
|
502
502
|
$destroy() {
|
|
503
|
-
|
|
503
|
+
Rr(this, 1), this.$destroy = N;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -509,7 +509,7 @@ class Rr {
|
|
|
509
509
|
* @returns {() => void}
|
|
510
510
|
*/
|
|
511
511
|
$on(t, r) {
|
|
512
|
-
if (!
|
|
512
|
+
if (!Qe(r))
|
|
513
513
|
return N;
|
|
514
514
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
515
515
|
return n.push(r), () => {
|
|
@@ -522,13 +522,13 @@ class Rr {
|
|
|
522
522
|
* @returns {void}
|
|
523
523
|
*/
|
|
524
524
|
$set(t) {
|
|
525
|
-
this.$$set && !
|
|
525
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
const
|
|
529
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
530
|
-
var
|
|
531
|
-
function
|
|
528
|
+
const Fr = "4";
|
|
529
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
530
|
+
var uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
531
|
+
function jr(e) {
|
|
532
532
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
533
533
|
}
|
|
534
534
|
/*! *****************************************************************************
|
|
@@ -545,34 +545,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
545
545
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
546
546
|
PERFORMANCE OF THIS SOFTWARE.
|
|
547
547
|
***************************************************************************** */
|
|
548
|
-
var
|
|
549
|
-
return
|
|
548
|
+
var Re = function(e, t) {
|
|
549
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
550
550
|
r.__proto__ = n;
|
|
551
551
|
} || function(r, n) {
|
|
552
552
|
for (var i in n)
|
|
553
553
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
554
|
-
},
|
|
554
|
+
}, Re(e, t);
|
|
555
555
|
};
|
|
556
556
|
function R(e, t) {
|
|
557
557
|
if (typeof t != "function" && t !== null)
|
|
558
558
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
559
|
-
|
|
559
|
+
Re(e, t);
|
|
560
560
|
function r() {
|
|
561
561
|
this.constructor = e;
|
|
562
562
|
}
|
|
563
563
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
return
|
|
565
|
+
var v = function() {
|
|
566
|
+
return v = Object.assign || function(t) {
|
|
567
567
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
568
568
|
r = arguments[n];
|
|
569
569
|
for (var o in r)
|
|
570
570
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
571
571
|
}
|
|
572
572
|
return t;
|
|
573
|
-
},
|
|
573
|
+
}, v.apply(this, arguments);
|
|
574
574
|
};
|
|
575
|
-
function
|
|
575
|
+
function kr(e, t) {
|
|
576
576
|
var r = {};
|
|
577
577
|
for (var n in e)
|
|
578
578
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -581,7 +581,7 @@ function Ur(e, t) {
|
|
|
581
581
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
582
582
|
return r;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function $e(e) {
|
|
585
585
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
586
586
|
if (r)
|
|
587
587
|
return r.call(e);
|
|
@@ -593,7 +593,7 @@ function Re(e) {
|
|
|
593
593
|
};
|
|
594
594
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Ge(e, t) {
|
|
597
597
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
598
598
|
if (!r)
|
|
599
599
|
return e;
|
|
@@ -622,13 +622,13 @@ function V(e, t, r) {
|
|
|
622
622
|
function L(e) {
|
|
623
623
|
return typeof e == "function";
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Lt(e) {
|
|
626
626
|
var t = function(n) {
|
|
627
627
|
Error.call(n), n.stack = new Error().stack;
|
|
628
628
|
}, r = e(t);
|
|
629
629
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
630
630
|
}
|
|
631
|
-
var Te =
|
|
631
|
+
var Te = Lt(function(e) {
|
|
632
632
|
return function(r) {
|
|
633
633
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
634
634
|
` + r.map(function(n, i) {
|
|
@@ -637,13 +637,13 @@ var Te = It(function(e) {
|
|
|
637
637
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
638
638
|
};
|
|
639
639
|
});
|
|
640
|
-
function
|
|
640
|
+
function Ue(e, t) {
|
|
641
641
|
if (e) {
|
|
642
642
|
var r = e.indexOf(t);
|
|
643
643
|
0 <= r && e.splice(r, 1);
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var ve = function() {
|
|
647
647
|
function e(t) {
|
|
648
648
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
649
649
|
}
|
|
@@ -655,7 +655,7 @@ var ye = function() {
|
|
|
655
655
|
if (s)
|
|
656
656
|
if (this._parentage = null, Array.isArray(s))
|
|
657
657
|
try {
|
|
658
|
-
for (var a =
|
|
658
|
+
for (var a = $e(s), l = a.next(); !l.done; l = a.next()) {
|
|
659
659
|
var u = l.value;
|
|
660
660
|
u.remove(this);
|
|
661
661
|
}
|
|
@@ -682,12 +682,12 @@ var ye = function() {
|
|
|
682
682
|
if (c) {
|
|
683
683
|
this._finalizers = null;
|
|
684
684
|
try {
|
|
685
|
-
for (var f =
|
|
685
|
+
for (var f = $e(c), m = f.next(); !m.done; m = f.next()) {
|
|
686
686
|
var d = m.value;
|
|
687
687
|
try {
|
|
688
|
-
|
|
688
|
+
it(d);
|
|
689
689
|
} catch (p) {
|
|
690
|
-
o = o ?? [], p instanceof Te ? o = V(V([],
|
|
690
|
+
o = o ?? [], p instanceof Te ? o = V(V([], Ge(o)), Ge(p.errors)) : o.push(p);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
} catch (p) {
|
|
@@ -708,7 +708,7 @@ var ye = function() {
|
|
|
708
708
|
var r;
|
|
709
709
|
if (t && t !== this)
|
|
710
710
|
if (this.closed)
|
|
711
|
-
|
|
711
|
+
it(t);
|
|
712
712
|
else {
|
|
713
713
|
if (t instanceof e) {
|
|
714
714
|
if (t.closed || t._hasParent(this))
|
|
@@ -725,52 +725,56 @@ var ye = function() {
|
|
|
725
725
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
726
726
|
}, e.prototype._removeParent = function(t) {
|
|
727
727
|
var r = this._parentage;
|
|
728
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
728
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
729
729
|
}, e.prototype.remove = function(t) {
|
|
730
730
|
var r = this._finalizers;
|
|
731
|
-
r &&
|
|
731
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
732
732
|
}, e.EMPTY = function() {
|
|
733
733
|
var t = new e();
|
|
734
734
|
return t.closed = !0, t;
|
|
735
735
|
}(), e;
|
|
736
|
-
}(),
|
|
737
|
-
function
|
|
738
|
-
return e instanceof
|
|
736
|
+
}(), Rt = ve.EMPTY;
|
|
737
|
+
function $t(e) {
|
|
738
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function it(e) {
|
|
741
741
|
L(e) ? e() : e.unsubscribe();
|
|
742
742
|
}
|
|
743
|
-
var
|
|
744
|
-
|
|
745
|
-
|
|
743
|
+
var Gt = {
|
|
744
|
+
onUnhandledError: null,
|
|
745
|
+
onStoppedNotification: null,
|
|
746
|
+
Promise: void 0,
|
|
747
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
748
|
+
useDeprecatedNextContext: !1
|
|
749
|
+
}, Vr = {
|
|
746
750
|
setTimeout: function(e, t) {
|
|
747
751
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
748
752
|
r[n - 2] = arguments[n];
|
|
749
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
753
|
+
return setTimeout.apply(void 0, V([e, t], Ge(r)));
|
|
750
754
|
},
|
|
751
755
|
clearTimeout: function(e) {
|
|
752
756
|
return clearTimeout(e);
|
|
753
757
|
},
|
|
754
758
|
delegate: void 0
|
|
755
759
|
};
|
|
756
|
-
function
|
|
757
|
-
|
|
760
|
+
function Xr(e) {
|
|
761
|
+
Vr.setTimeout(function() {
|
|
758
762
|
throw e;
|
|
759
763
|
});
|
|
760
764
|
}
|
|
761
|
-
function
|
|
765
|
+
function ot() {
|
|
762
766
|
}
|
|
763
767
|
function me(e) {
|
|
764
768
|
e();
|
|
765
769
|
}
|
|
766
|
-
var
|
|
770
|
+
var Ut = function(e) {
|
|
767
771
|
R(t, e);
|
|
768
772
|
function t(r) {
|
|
769
773
|
var n = e.call(this) || this;
|
|
770
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
774
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Qr, n;
|
|
771
775
|
}
|
|
772
776
|
return t.create = function(r, n, i) {
|
|
773
|
-
return new
|
|
777
|
+
return new De(r, n, i);
|
|
774
778
|
}, t.prototype.next = function(r) {
|
|
775
779
|
this.isStopped || this._next(r);
|
|
776
780
|
}, t.prototype.error = function(r) {
|
|
@@ -794,7 +798,11 @@ var Lt = function(e) {
|
|
|
794
798
|
this.unsubscribe();
|
|
795
799
|
}
|
|
796
800
|
}, t;
|
|
797
|
-
}(
|
|
801
|
+
}(ve), zr = Function.prototype.bind;
|
|
802
|
+
function He(e, t) {
|
|
803
|
+
return zr.call(e, t);
|
|
804
|
+
}
|
|
805
|
+
var Wr = function() {
|
|
798
806
|
function e(t) {
|
|
799
807
|
this.partialObserver = t;
|
|
800
808
|
}
|
|
@@ -825,43 +833,55 @@ var Lt = function(e) {
|
|
|
825
833
|
le(r);
|
|
826
834
|
}
|
|
827
835
|
}, e;
|
|
828
|
-
}(),
|
|
836
|
+
}(), De = function(e) {
|
|
829
837
|
R(t, e);
|
|
830
838
|
function t(r, n, i) {
|
|
831
839
|
var o = e.call(this) || this, s;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
840
|
+
if (L(r) || !r)
|
|
841
|
+
s = {
|
|
842
|
+
next: r ?? void 0,
|
|
843
|
+
error: n ?? void 0,
|
|
844
|
+
complete: i ?? void 0
|
|
845
|
+
};
|
|
846
|
+
else {
|
|
847
|
+
var a;
|
|
848
|
+
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
849
|
+
return o.unsubscribe();
|
|
850
|
+
}, s = {
|
|
851
|
+
next: r.next && He(r.next, a),
|
|
852
|
+
error: r.error && He(r.error, a),
|
|
853
|
+
complete: r.complete && He(r.complete, a)
|
|
854
|
+
}) : s = r;
|
|
855
|
+
}
|
|
856
|
+
return o.destination = new Wr(s), o;
|
|
837
857
|
}
|
|
838
858
|
return t;
|
|
839
|
-
}(
|
|
859
|
+
}(Ut);
|
|
840
860
|
function le(e) {
|
|
841
|
-
|
|
861
|
+
Xr(e);
|
|
842
862
|
}
|
|
843
|
-
function
|
|
863
|
+
function Zr(e) {
|
|
844
864
|
throw e;
|
|
845
865
|
}
|
|
846
|
-
var
|
|
866
|
+
var Qr = {
|
|
847
867
|
closed: !0,
|
|
848
|
-
next:
|
|
849
|
-
error:
|
|
850
|
-
complete:
|
|
851
|
-
},
|
|
868
|
+
next: ot,
|
|
869
|
+
error: Zr,
|
|
870
|
+
complete: ot
|
|
871
|
+
}, Jr = function() {
|
|
852
872
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
853
873
|
}();
|
|
854
|
-
function
|
|
874
|
+
function qr(e) {
|
|
855
875
|
return e;
|
|
856
876
|
}
|
|
857
|
-
function
|
|
858
|
-
return e.length === 0 ?
|
|
877
|
+
function Yr(e) {
|
|
878
|
+
return e.length === 0 ? qr : e.length === 1 ? e[0] : function(r) {
|
|
859
879
|
return e.reduce(function(n, i) {
|
|
860
880
|
return i(n);
|
|
861
881
|
}, r);
|
|
862
882
|
};
|
|
863
883
|
}
|
|
864
|
-
var
|
|
884
|
+
var st = function() {
|
|
865
885
|
function e(t) {
|
|
866
886
|
t && (this._subscribe = t);
|
|
867
887
|
}
|
|
@@ -869,7 +889,7 @@ var nt = function() {
|
|
|
869
889
|
var r = new e();
|
|
870
890
|
return r.source = this, r.operator = t, r;
|
|
871
891
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
872
|
-
var i = this, o =
|
|
892
|
+
var i = this, o = en(t) ? t : new De(t, r, n);
|
|
873
893
|
return me(function() {
|
|
874
894
|
var s = i, a = s.operator, l = s.source;
|
|
875
895
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -882,8 +902,8 @@ var nt = function() {
|
|
|
882
902
|
}
|
|
883
903
|
}, e.prototype.forEach = function(t, r) {
|
|
884
904
|
var n = this;
|
|
885
|
-
return r =
|
|
886
|
-
var s = new
|
|
905
|
+
return r = at(r), new r(function(i, o) {
|
|
906
|
+
var s = new De({
|
|
887
907
|
next: function(a) {
|
|
888
908
|
try {
|
|
889
909
|
t(a);
|
|
@@ -899,15 +919,15 @@ var nt = function() {
|
|
|
899
919
|
}, e.prototype._subscribe = function(t) {
|
|
900
920
|
var r;
|
|
901
921
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
902
|
-
}, e.prototype[
|
|
922
|
+
}, e.prototype[Jr] = function() {
|
|
903
923
|
return this;
|
|
904
924
|
}, e.prototype.pipe = function() {
|
|
905
925
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
906
926
|
t[r] = arguments[r];
|
|
907
|
-
return
|
|
927
|
+
return Yr(t)(this);
|
|
908
928
|
}, e.prototype.toPromise = function(t) {
|
|
909
929
|
var r = this;
|
|
910
|
-
return t =
|
|
930
|
+
return t = at(t), new t(function(n, i) {
|
|
911
931
|
var o;
|
|
912
932
|
r.subscribe(function(s) {
|
|
913
933
|
return o = s;
|
|
@@ -921,32 +941,32 @@ var nt = function() {
|
|
|
921
941
|
return new e(t);
|
|
922
942
|
}, e;
|
|
923
943
|
}();
|
|
924
|
-
function
|
|
944
|
+
function at(e) {
|
|
925
945
|
var t;
|
|
926
|
-
return (t = e ??
|
|
946
|
+
return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
927
947
|
}
|
|
928
|
-
function
|
|
948
|
+
function Kr(e) {
|
|
929
949
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
930
950
|
}
|
|
931
|
-
function
|
|
932
|
-
return e && e instanceof
|
|
951
|
+
function en(e) {
|
|
952
|
+
return e && e instanceof Ut || Kr(e) && $t(e);
|
|
933
953
|
}
|
|
934
|
-
var
|
|
954
|
+
var tn = Lt(function(e) {
|
|
935
955
|
return function() {
|
|
936
956
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
937
957
|
};
|
|
938
|
-
}),
|
|
958
|
+
}), Dt = function(e) {
|
|
939
959
|
R(t, e);
|
|
940
960
|
function t() {
|
|
941
961
|
var r = e.call(this) || this;
|
|
942
962
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
943
963
|
}
|
|
944
964
|
return t.prototype.lift = function(r) {
|
|
945
|
-
var n = new
|
|
965
|
+
var n = new ut(this, this);
|
|
946
966
|
return n.operator = r, n;
|
|
947
967
|
}, t.prototype._throwIfClosed = function() {
|
|
948
968
|
if (this.closed)
|
|
949
|
-
throw new
|
|
969
|
+
throw new tn();
|
|
950
970
|
}, t.prototype.next = function(r) {
|
|
951
971
|
var n = this;
|
|
952
972
|
me(function() {
|
|
@@ -954,7 +974,7 @@ var qr = It(function(e) {
|
|
|
954
974
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
955
975
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
956
976
|
try {
|
|
957
|
-
for (var s =
|
|
977
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
958
978
|
var l = a.value;
|
|
959
979
|
l.next(r);
|
|
960
980
|
}
|
|
@@ -1003,19 +1023,19 @@ var qr = It(function(e) {
|
|
|
1003
1023
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1004
1024
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1005
1025
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1006
|
-
return o || s ?
|
|
1007
|
-
n.currentObservers = null,
|
|
1026
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
1027
|
+
n.currentObservers = null, Ue(a, r);
|
|
1008
1028
|
}));
|
|
1009
1029
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1010
1030
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1011
1031
|
i ? r.error(o) : s && r.complete();
|
|
1012
1032
|
}, t.prototype.asObservable = function() {
|
|
1013
|
-
var r = new
|
|
1033
|
+
var r = new st();
|
|
1014
1034
|
return r.source = this, r;
|
|
1015
1035
|
}, t.create = function(r, n) {
|
|
1016
|
-
return new
|
|
1036
|
+
return new ut(r, n);
|
|
1017
1037
|
}, t;
|
|
1018
|
-
}(
|
|
1038
|
+
}(st), ut = function(e) {
|
|
1019
1039
|
R(t, e);
|
|
1020
1040
|
function t(r, n) {
|
|
1021
1041
|
var i = e.call(this) || this;
|
|
@@ -1032,17 +1052,17 @@ var qr = It(function(e) {
|
|
|
1032
1052
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1033
1053
|
}, t.prototype._subscribe = function(r) {
|
|
1034
1054
|
var n, i;
|
|
1035
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1055
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
|
|
1036
1056
|
}, t;
|
|
1037
|
-
}(
|
|
1057
|
+
}(Dt), Ft = {
|
|
1038
1058
|
now: function() {
|
|
1039
|
-
return (
|
|
1059
|
+
return (Ft.delegate || Date).now();
|
|
1040
1060
|
},
|
|
1041
1061
|
delegate: void 0
|
|
1042
|
-
},
|
|
1062
|
+
}, rn = function(e) {
|
|
1043
1063
|
R(t, e);
|
|
1044
1064
|
function t(r, n, i) {
|
|
1045
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1065
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
1046
1066
|
var o = e.call(this) || this;
|
|
1047
1067
|
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;
|
|
1048
1068
|
}
|
|
@@ -1062,15 +1082,15 @@ var qr = It(function(e) {
|
|
|
1062
1082
|
u && o.splice(0, u + 1);
|
|
1063
1083
|
}
|
|
1064
1084
|
}, t;
|
|
1065
|
-
}(
|
|
1066
|
-
const
|
|
1067
|
-
if (
|
|
1068
|
-
const r = new
|
|
1069
|
-
|
|
1085
|
+
}(Dt);
|
|
1086
|
+
const lt = [], ht = {}, nn = (e, t = 0) => {
|
|
1087
|
+
if (lt.indexOf(e) == -1) {
|
|
1088
|
+
const r = new rn(t);
|
|
1089
|
+
ht[e] = r, lt.push(e);
|
|
1070
1090
|
}
|
|
1071
|
-
return
|
|
1091
|
+
return ht[e];
|
|
1072
1092
|
}, F = [];
|
|
1073
|
-
function
|
|
1093
|
+
function on(e, t) {
|
|
1074
1094
|
return {
|
|
1075
1095
|
subscribe: xe(e, t).subscribe
|
|
1076
1096
|
};
|
|
@@ -1079,7 +1099,7 @@ function xe(e, t = N) {
|
|
|
1079
1099
|
let r;
|
|
1080
1100
|
const n = /* @__PURE__ */ new Set();
|
|
1081
1101
|
function i(a) {
|
|
1082
|
-
if (
|
|
1102
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1083
1103
|
const l = !F.length;
|
|
1084
1104
|
for (const u of n)
|
|
1085
1105
|
u[1](), F.push(u, e);
|
|
@@ -1106,7 +1126,7 @@ function Y(e, t, r) {
|
|
|
1106
1126
|
if (!i.every(Boolean))
|
|
1107
1127
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1108
1128
|
const o = t.length < 2;
|
|
1109
|
-
return
|
|
1129
|
+
return on(r, (s, a) => {
|
|
1110
1130
|
let l = !1;
|
|
1111
1131
|
const u = [];
|
|
1112
1132
|
let h = 0, c = N;
|
|
@@ -1115,9 +1135,9 @@ function Y(e, t, r) {
|
|
|
1115
1135
|
return;
|
|
1116
1136
|
c();
|
|
1117
1137
|
const d = t(n ? u[0] : u, s, a);
|
|
1118
|
-
o ? s(d) : c =
|
|
1138
|
+
o ? s(d) : c = Qe(d) ? d : N;
|
|
1119
1139
|
}, m = i.map(
|
|
1120
|
-
(d, p) =>
|
|
1140
|
+
(d, p) => Ot(
|
|
1121
1141
|
d,
|
|
1122
1142
|
(w) => {
|
|
1123
1143
|
u[p] = w, h &= ~(1 << p), l && f();
|
|
@@ -1132,67 +1152,67 @@ function Y(e, t, r) {
|
|
|
1132
1152
|
};
|
|
1133
1153
|
});
|
|
1134
1154
|
}
|
|
1135
|
-
var
|
|
1136
|
-
return
|
|
1155
|
+
var sn = function(t) {
|
|
1156
|
+
return an(t) && !un(t);
|
|
1137
1157
|
};
|
|
1138
|
-
function
|
|
1158
|
+
function an(e) {
|
|
1139
1159
|
return !!e && typeof e == "object";
|
|
1140
1160
|
}
|
|
1141
|
-
function
|
|
1161
|
+
function un(e) {
|
|
1142
1162
|
var t = Object.prototype.toString.call(e);
|
|
1143
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1163
|
+
return t === "[object RegExp]" || t === "[object Date]" || cn(e);
|
|
1144
1164
|
}
|
|
1145
|
-
var
|
|
1146
|
-
function
|
|
1147
|
-
return e.$$typeof ===
|
|
1165
|
+
var ln = typeof Symbol == "function" && Symbol.for, hn = ln ? Symbol.for("react.element") : 60103;
|
|
1166
|
+
function cn(e) {
|
|
1167
|
+
return e.$$typeof === hn;
|
|
1148
1168
|
}
|
|
1149
|
-
function
|
|
1169
|
+
function fn(e) {
|
|
1150
1170
|
return Array.isArray(e) ? [] : {};
|
|
1151
1171
|
}
|
|
1152
1172
|
function ie(e, t) {
|
|
1153
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1173
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(fn(e), e, t) : e;
|
|
1154
1174
|
}
|
|
1155
|
-
function
|
|
1175
|
+
function mn(e, t, r) {
|
|
1156
1176
|
return e.concat(t).map(function(n) {
|
|
1157
1177
|
return ie(n, r);
|
|
1158
1178
|
});
|
|
1159
1179
|
}
|
|
1160
|
-
function
|
|
1180
|
+
function dn(e, t) {
|
|
1161
1181
|
if (!t.customMerge)
|
|
1162
1182
|
return z;
|
|
1163
1183
|
var r = t.customMerge(e);
|
|
1164
1184
|
return typeof r == "function" ? r : z;
|
|
1165
1185
|
}
|
|
1166
|
-
function
|
|
1186
|
+
function pn(e) {
|
|
1167
1187
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1168
1188
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1169
1189
|
}) : [];
|
|
1170
1190
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return Object.keys(e).concat(
|
|
1191
|
+
function ct(e) {
|
|
1192
|
+
return Object.keys(e).concat(pn(e));
|
|
1173
1193
|
}
|
|
1174
|
-
function
|
|
1194
|
+
function jt(e, t) {
|
|
1175
1195
|
try {
|
|
1176
1196
|
return t in e;
|
|
1177
1197
|
} catch {
|
|
1178
1198
|
return !1;
|
|
1179
1199
|
}
|
|
1180
1200
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1201
|
+
function bn(e, t) {
|
|
1202
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1183
1203
|
}
|
|
1184
|
-
function
|
|
1204
|
+
function gn(e, t, r) {
|
|
1185
1205
|
var n = {};
|
|
1186
|
-
return r.isMergeableObject(e) &&
|
|
1206
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1187
1207
|
n[i] = ie(e[i], r);
|
|
1188
|
-
}),
|
|
1189
|
-
|
|
1208
|
+
}), ct(t).forEach(function(i) {
|
|
1209
|
+
bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1190
1210
|
}), n;
|
|
1191
1211
|
}
|
|
1192
1212
|
function z(e, t, r) {
|
|
1193
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1213
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1194
1214
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1195
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1215
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : ie(t, r);
|
|
1196
1216
|
}
|
|
1197
1217
|
z.all = function(t, r) {
|
|
1198
1218
|
if (!Array.isArray(t))
|
|
@@ -1201,56 +1221,58 @@ z.all = function(t, r) {
|
|
|
1201
1221
|
return z(n, i, r);
|
|
1202
1222
|
}, {});
|
|
1203
1223
|
};
|
|
1204
|
-
var
|
|
1205
|
-
const
|
|
1206
|
-
function
|
|
1207
|
-
var r = t && t.cache ? t.cache :
|
|
1224
|
+
var yn = z, vn = yn;
|
|
1225
|
+
const xn = /* @__PURE__ */ jr(vn);
|
|
1226
|
+
function Be(e, t) {
|
|
1227
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : En;
|
|
1208
1228
|
return i(e, {
|
|
1209
1229
|
cache: r,
|
|
1210
1230
|
serializer: n
|
|
1211
1231
|
});
|
|
1212
1232
|
}
|
|
1213
|
-
function
|
|
1233
|
+
function _n(e) {
|
|
1214
1234
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1215
1235
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var i =
|
|
1236
|
+
function kt(e, t, r, n) {
|
|
1237
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1218
1238
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1219
1239
|
}
|
|
1220
|
-
function
|
|
1240
|
+
function Vt(e, t, r) {
|
|
1221
1241
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1222
1242
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1223
1243
|
}
|
|
1224
|
-
function
|
|
1244
|
+
function Je(e, t, r, n, i) {
|
|
1225
1245
|
return r.bind(t, e, n, i);
|
|
1226
1246
|
}
|
|
1227
|
-
function
|
|
1228
|
-
var r = e.length === 1 ?
|
|
1229
|
-
return
|
|
1247
|
+
function En(e, t) {
|
|
1248
|
+
var r = e.length === 1 ? kt : Vt;
|
|
1249
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1230
1250
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return
|
|
1251
|
+
function Sn(e, t) {
|
|
1252
|
+
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1233
1253
|
}
|
|
1234
|
-
|
|
1254
|
+
function wn(e, t) {
|
|
1255
|
+
return Je(e, this, kt, t.cache.create(), t.serializer);
|
|
1256
|
+
}
|
|
1257
|
+
var Tn = function() {
|
|
1235
1258
|
return JSON.stringify(arguments);
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
}()
|
|
1248
|
-
), Sn = {
|
|
1259
|
+
};
|
|
1260
|
+
function qe() {
|
|
1261
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1262
|
+
}
|
|
1263
|
+
qe.prototype.get = function(e) {
|
|
1264
|
+
return this.cache[e];
|
|
1265
|
+
};
|
|
1266
|
+
qe.prototype.set = function(e, t) {
|
|
1267
|
+
this.cache[e] = t;
|
|
1268
|
+
};
|
|
1269
|
+
var Hn = {
|
|
1249
1270
|
create: function() {
|
|
1250
|
-
return new
|
|
1271
|
+
return new qe();
|
|
1251
1272
|
}
|
|
1252
|
-
},
|
|
1253
|
-
variadic:
|
|
1273
|
+
}, Ae = {
|
|
1274
|
+
variadic: Sn,
|
|
1275
|
+
monadic: wn
|
|
1254
1276
|
}, b;
|
|
1255
1277
|
(function(e) {
|
|
1256
1278
|
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";
|
|
@@ -1263,43 +1285,43 @@ var W;
|
|
|
1263
1285
|
(function(e) {
|
|
1264
1286
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1265
1287
|
})(W || (W = {}));
|
|
1266
|
-
function
|
|
1288
|
+
function ft(e) {
|
|
1267
1289
|
return e.type === S.literal;
|
|
1268
1290
|
}
|
|
1269
|
-
function
|
|
1291
|
+
function Bn(e) {
|
|
1270
1292
|
return e.type === S.argument;
|
|
1271
1293
|
}
|
|
1272
|
-
function
|
|
1294
|
+
function Xt(e) {
|
|
1273
1295
|
return e.type === S.number;
|
|
1274
1296
|
}
|
|
1275
|
-
function
|
|
1297
|
+
function zt(e) {
|
|
1276
1298
|
return e.type === S.date;
|
|
1277
1299
|
}
|
|
1278
|
-
function
|
|
1300
|
+
function Wt(e) {
|
|
1279
1301
|
return e.type === S.time;
|
|
1280
1302
|
}
|
|
1281
|
-
function
|
|
1303
|
+
function Zt(e) {
|
|
1282
1304
|
return e.type === S.select;
|
|
1283
1305
|
}
|
|
1284
|
-
function
|
|
1306
|
+
function Qt(e) {
|
|
1285
1307
|
return e.type === S.plural;
|
|
1286
1308
|
}
|
|
1287
|
-
function
|
|
1309
|
+
function An(e) {
|
|
1288
1310
|
return e.type === S.pound;
|
|
1289
1311
|
}
|
|
1290
|
-
function
|
|
1312
|
+
function Jt(e) {
|
|
1291
1313
|
return e.type === S.tag;
|
|
1292
1314
|
}
|
|
1293
|
-
function
|
|
1315
|
+
function qt(e) {
|
|
1294
1316
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1295
1317
|
}
|
|
1296
|
-
function
|
|
1318
|
+
function Fe(e) {
|
|
1297
1319
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1298
1320
|
}
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1321
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1322
|
+
function Pn(e) {
|
|
1301
1323
|
var t = {};
|
|
1302
|
-
return e.replace(
|
|
1324
|
+
return e.replace(Cn, function(r) {
|
|
1303
1325
|
var n = r.length;
|
|
1304
1326
|
switch (r[0]) {
|
|
1305
1327
|
case "G":
|
|
@@ -1388,11 +1410,11 @@ function Bn(e) {
|
|
|
1388
1410
|
return "";
|
|
1389
1411
|
}), t;
|
|
1390
1412
|
}
|
|
1391
|
-
var
|
|
1392
|
-
function
|
|
1413
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1414
|
+
function In(e) {
|
|
1393
1415
|
if (e.length === 0)
|
|
1394
1416
|
throw new Error("Number skeleton cannot be empty");
|
|
1395
|
-
for (var t = e.split(
|
|
1417
|
+
for (var t = e.split(On).filter(function(f) {
|
|
1396
1418
|
return f.length > 0;
|
|
1397
1419
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1398
1420
|
var o = i[n], s = o.split("/");
|
|
@@ -1407,17 +1429,17 @@ function Cn(e) {
|
|
|
1407
1429
|
}
|
|
1408
1430
|
return r;
|
|
1409
1431
|
}
|
|
1410
|
-
function
|
|
1432
|
+
function Mn(e) {
|
|
1411
1433
|
return e.replace(/^(.*?)-/, "");
|
|
1412
1434
|
}
|
|
1413
|
-
var
|
|
1414
|
-
function
|
|
1435
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1436
|
+
function dt(e) {
|
|
1415
1437
|
var t = {};
|
|
1416
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1438
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1417
1439
|
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)), "";
|
|
1418
1440
|
}), t;
|
|
1419
1441
|
}
|
|
1420
|
-
function
|
|
1442
|
+
function tr(e) {
|
|
1421
1443
|
switch (e) {
|
|
1422
1444
|
case "sign-auto":
|
|
1423
1445
|
return {
|
|
@@ -1457,7 +1479,7 @@ function qt(e) {
|
|
|
1457
1479
|
};
|
|
1458
1480
|
}
|
|
1459
1481
|
}
|
|
1460
|
-
function
|
|
1482
|
+
function Ln(e) {
|
|
1461
1483
|
var t;
|
|
1462
1484
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1463
1485
|
notation: "engineering"
|
|
@@ -1465,17 +1487,17 @@ function In(e) {
|
|
|
1465
1487
|
notation: "scientific"
|
|
1466
1488
|
}, e = e.slice(1)), t) {
|
|
1467
1489
|
var r = e.slice(0, 2);
|
|
1468
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1490
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1469
1491
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1470
1492
|
t.minimumIntegerDigits = e.length;
|
|
1471
1493
|
}
|
|
1472
1494
|
return t;
|
|
1473
1495
|
}
|
|
1474
|
-
function
|
|
1475
|
-
var t = {}, r =
|
|
1496
|
+
function pt(e) {
|
|
1497
|
+
var t = {}, r = tr(e);
|
|
1476
1498
|
return r || t;
|
|
1477
1499
|
}
|
|
1478
|
-
function
|
|
1500
|
+
function Rn(e) {
|
|
1479
1501
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1480
1502
|
var i = n[r];
|
|
1481
1503
|
switch (i.stem) {
|
|
@@ -1499,7 +1521,7 @@ function Mn(e) {
|
|
|
1499
1521
|
continue;
|
|
1500
1522
|
case "measure-unit":
|
|
1501
1523
|
case "unit":
|
|
1502
|
-
t.style = "unit", t.unit =
|
|
1524
|
+
t.style = "unit", t.unit = Mn(i.options[0]);
|
|
1503
1525
|
continue;
|
|
1504
1526
|
case "compact-short":
|
|
1505
1527
|
case "K":
|
|
@@ -1510,13 +1532,13 @@ function Mn(e) {
|
|
|
1510
1532
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1511
1533
|
continue;
|
|
1512
1534
|
case "scientific":
|
|
1513
|
-
t =
|
|
1514
|
-
return
|
|
1535
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1536
|
+
return v(v({}, l), pt(u));
|
|
1515
1537
|
}, {}));
|
|
1516
1538
|
continue;
|
|
1517
1539
|
case "engineering":
|
|
1518
|
-
t =
|
|
1519
|
-
return
|
|
1540
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1541
|
+
return v(v({}, l), pt(u));
|
|
1520
1542
|
}, {}));
|
|
1521
1543
|
continue;
|
|
1522
1544
|
case "notation-simple":
|
|
@@ -1561,7 +1583,7 @@ function Mn(e) {
|
|
|
1561
1583
|
case "integer-width":
|
|
1562
1584
|
if (i.options.length > 1)
|
|
1563
1585
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1564
|
-
i.options[0].replace(
|
|
1586
|
+
i.options[0].replace(Nn, function(l, u, h, c, f, m) {
|
|
1565
1587
|
if (u)
|
|
1566
1588
|
t.minimumIntegerDigits = h.length;
|
|
1567
1589
|
else {
|
|
@@ -1574,28 +1596,28 @@ function Mn(e) {
|
|
|
1574
1596
|
});
|
|
1575
1597
|
continue;
|
|
1576
1598
|
}
|
|
1577
|
-
if (
|
|
1599
|
+
if (er.test(i.stem)) {
|
|
1578
1600
|
t.minimumIntegerDigits = i.stem.length;
|
|
1579
1601
|
continue;
|
|
1580
1602
|
}
|
|
1581
|
-
if (
|
|
1603
|
+
if (mt.test(i.stem)) {
|
|
1582
1604
|
if (i.options.length > 1)
|
|
1583
1605
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1584
|
-
i.stem.replace(
|
|
1606
|
+
i.stem.replace(mt, function(l, u, h, c, f, m) {
|
|
1585
1607
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1586
1608
|
});
|
|
1587
1609
|
var o = i.options[0];
|
|
1588
|
-
o === "w" ? t =
|
|
1610
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), dt(o)));
|
|
1589
1611
|
continue;
|
|
1590
1612
|
}
|
|
1591
|
-
if (
|
|
1592
|
-
t =
|
|
1613
|
+
if (Kt.test(i.stem)) {
|
|
1614
|
+
t = v(v({}, t), dt(i.stem));
|
|
1593
1615
|
continue;
|
|
1594
1616
|
}
|
|
1595
|
-
var s =
|
|
1596
|
-
s && (t =
|
|
1597
|
-
var a =
|
|
1598
|
-
a && (t =
|
|
1617
|
+
var s = tr(i.stem);
|
|
1618
|
+
s && (t = v(v({}, t), s));
|
|
1619
|
+
var a = Ln(i.stem);
|
|
1620
|
+
a && (t = v(v({}, t), a));
|
|
1599
1621
|
}
|
|
1600
1622
|
return t;
|
|
1601
1623
|
}
|
|
@@ -3014,13 +3036,13 @@ var he = {
|
|
|
3014
3036
|
"h"
|
|
3015
3037
|
]
|
|
3016
3038
|
};
|
|
3017
|
-
function
|
|
3039
|
+
function $n(e, t) {
|
|
3018
3040
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3019
3041
|
var i = e.charAt(n);
|
|
3020
3042
|
if (i === "j") {
|
|
3021
3043
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3022
3044
|
o++, n++;
|
|
3023
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3045
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Gn(t);
|
|
3024
3046
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3025
3047
|
r += l;
|
|
3026
3048
|
for (; s-- > 0; )
|
|
@@ -3030,7 +3052,7 @@ function Nn(e, t) {
|
|
|
3030
3052
|
}
|
|
3031
3053
|
return r;
|
|
3032
3054
|
}
|
|
3033
|
-
function
|
|
3055
|
+
function Gn(e) {
|
|
3034
3056
|
var t = e.hourCycle;
|
|
3035
3057
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3036
3058
|
e.hourCycles && // @ts-ignore
|
|
@@ -3052,20 +3074,20 @@ function Ln(e) {
|
|
|
3052
3074
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3053
3075
|
return i[0];
|
|
3054
3076
|
}
|
|
3055
|
-
var
|
|
3056
|
-
function
|
|
3077
|
+
var Ce, Un = new RegExp("^".concat(Yt.source, "*")), Dn = new RegExp("".concat(Yt.source, "*$"));
|
|
3078
|
+
function y(e, t) {
|
|
3057
3079
|
return { start: e, end: t };
|
|
3058
3080
|
}
|
|
3059
|
-
var
|
|
3081
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, Zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3060
3082
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3061
|
-
},
|
|
3083
|
+
}, je = !0;
|
|
3062
3084
|
try {
|
|
3063
|
-
var
|
|
3064
|
-
|
|
3085
|
+
var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3086
|
+
je = ((Ce = Qn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
3065
3087
|
} catch {
|
|
3066
|
-
|
|
3088
|
+
je = !1;
|
|
3067
3089
|
}
|
|
3068
|
-
var
|
|
3090
|
+
var bt = Fn ? (
|
|
3069
3091
|
// Native
|
|
3070
3092
|
function(t, r, n) {
|
|
3071
3093
|
return t.startsWith(r, n);
|
|
@@ -3075,7 +3097,7 @@ var mt = Gn ? (
|
|
|
3075
3097
|
function(t, r, n) {
|
|
3076
3098
|
return t.slice(n, n + r.length) === r;
|
|
3077
3099
|
}
|
|
3078
|
-
),
|
|
3100
|
+
), ke = jn ? String.fromCodePoint : (
|
|
3079
3101
|
// IE11
|
|
3080
3102
|
function() {
|
|
3081
3103
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3087,9 +3109,9 @@ var mt = Gn ? (
|
|
|
3087
3109
|
}
|
|
3088
3110
|
return n;
|
|
3089
3111
|
}
|
|
3090
|
-
),
|
|
3112
|
+
), gt = (
|
|
3091
3113
|
// native
|
|
3092
|
-
|
|
3114
|
+
kn ? Object.fromEntries : (
|
|
3093
3115
|
// Ponyfill
|
|
3094
3116
|
function(t) {
|
|
3095
3117
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3099,7 +3121,7 @@ var mt = Gn ? (
|
|
|
3099
3121
|
return r;
|
|
3100
3122
|
}
|
|
3101
3123
|
)
|
|
3102
|
-
),
|
|
3124
|
+
), rr = Vn ? (
|
|
3103
3125
|
// Native
|
|
3104
3126
|
function(t, r) {
|
|
3105
3127
|
return t.codePointAt(r);
|
|
@@ -3113,7 +3135,7 @@ var mt = Gn ? (
|
|
|
3113
3135
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3114
3136
|
}
|
|
3115
3137
|
}
|
|
3116
|
-
),
|
|
3138
|
+
), Jn = Xn ? (
|
|
3117
3139
|
// Native
|
|
3118
3140
|
function(t) {
|
|
3119
3141
|
return t.trimStart();
|
|
@@ -3121,9 +3143,9 @@ var mt = Gn ? (
|
|
|
3121
3143
|
) : (
|
|
3122
3144
|
// Ponyfill
|
|
3123
3145
|
function(t) {
|
|
3124
|
-
return t.replace(
|
|
3146
|
+
return t.replace(Un, "");
|
|
3125
3147
|
}
|
|
3126
|
-
),
|
|
3148
|
+
), qn = zn ? (
|
|
3127
3149
|
// Native
|
|
3128
3150
|
function(t) {
|
|
3129
3151
|
return t.trimEnd();
|
|
@@ -3131,32 +3153,32 @@ var mt = Gn ? (
|
|
|
3131
3153
|
) : (
|
|
3132
3154
|
// Ponyfill
|
|
3133
3155
|
function(t) {
|
|
3134
|
-
return t.replace(
|
|
3156
|
+
return t.replace(Dn, "");
|
|
3135
3157
|
}
|
|
3136
3158
|
);
|
|
3137
|
-
function
|
|
3159
|
+
function nr(e, t) {
|
|
3138
3160
|
return new RegExp(e, t);
|
|
3139
3161
|
}
|
|
3140
|
-
var
|
|
3141
|
-
if (
|
|
3142
|
-
var
|
|
3143
|
-
|
|
3162
|
+
var Ve;
|
|
3163
|
+
if (je) {
|
|
3164
|
+
var yt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3165
|
+
Ve = function(t, r) {
|
|
3144
3166
|
var n;
|
|
3145
|
-
|
|
3146
|
-
var i =
|
|
3167
|
+
yt.lastIndex = r;
|
|
3168
|
+
var i = yt.exec(t);
|
|
3147
3169
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3148
3170
|
};
|
|
3149
3171
|
} else
|
|
3150
|
-
|
|
3172
|
+
Ve = function(t, r) {
|
|
3151
3173
|
for (var n = []; ; ) {
|
|
3152
|
-
var i =
|
|
3153
|
-
if (i === void 0 ||
|
|
3174
|
+
var i = rr(t, r);
|
|
3175
|
+
if (i === void 0 || ir(i) || ti(i))
|
|
3154
3176
|
break;
|
|
3155
3177
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3156
3178
|
}
|
|
3157
|
-
return
|
|
3179
|
+
return ke.apply(void 0, n);
|
|
3158
3180
|
};
|
|
3159
|
-
var
|
|
3181
|
+
var Yn = (
|
|
3160
3182
|
/** @class */
|
|
3161
3183
|
function() {
|
|
3162
3184
|
function e(t, r) {
|
|
@@ -3181,13 +3203,13 @@ var Qn = (
|
|
|
3181
3203
|
var a = this.clonePosition();
|
|
3182
3204
|
this.bump(), i.push({
|
|
3183
3205
|
type: S.pound,
|
|
3184
|
-
location:
|
|
3206
|
+
location: y(a, this.clonePosition())
|
|
3185
3207
|
});
|
|
3186
3208
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3187
3209
|
if (n)
|
|
3188
3210
|
break;
|
|
3189
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3190
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3211
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3212
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3191
3213
|
var s = this.parseTag(t, r);
|
|
3192
3214
|
if (s.err)
|
|
3193
3215
|
return s;
|
|
@@ -3210,7 +3232,7 @@ var Qn = (
|
|
|
3210
3232
|
val: {
|
|
3211
3233
|
type: S.literal,
|
|
3212
3234
|
value: "<".concat(i, "/>"),
|
|
3213
|
-
location:
|
|
3235
|
+
location: y(n, this.clonePosition())
|
|
3214
3236
|
},
|
|
3215
3237
|
err: null
|
|
3216
3238
|
};
|
|
@@ -3220,25 +3242,25 @@ var Qn = (
|
|
|
3220
3242
|
return o;
|
|
3221
3243
|
var s = o.val, a = this.clonePosition();
|
|
3222
3244
|
if (this.bumpIf("</")) {
|
|
3223
|
-
if (this.isEOF() || !
|
|
3224
|
-
return this.error(b.INVALID_TAG,
|
|
3245
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3246
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
3225
3247
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3226
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3248
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3227
3249
|
val: {
|
|
3228
3250
|
type: S.tag,
|
|
3229
3251
|
value: i,
|
|
3230
3252
|
children: s,
|
|
3231
|
-
location:
|
|
3253
|
+
location: y(n, this.clonePosition())
|
|
3232
3254
|
},
|
|
3233
3255
|
err: null
|
|
3234
|
-
} : this.error(b.INVALID_TAG,
|
|
3256
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
3235
3257
|
} else
|
|
3236
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3258
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3237
3259
|
} else
|
|
3238
|
-
return this.error(b.INVALID_TAG,
|
|
3260
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3239
3261
|
}, e.prototype.parseTagName = function() {
|
|
3240
3262
|
var t = this.offset();
|
|
3241
|
-
for (this.bump(); !this.isEOF() &&
|
|
3263
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3242
3264
|
this.bump();
|
|
3243
3265
|
return this.message.slice(t, this.offset());
|
|
3244
3266
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3260,14 +3282,14 @@ var Qn = (
|
|
|
3260
3282
|
}
|
|
3261
3283
|
break;
|
|
3262
3284
|
}
|
|
3263
|
-
var l =
|
|
3285
|
+
var l = y(n, this.clonePosition());
|
|
3264
3286
|
return {
|
|
3265
3287
|
val: { type: S.literal, value: i, location: l },
|
|
3266
3288
|
err: null
|
|
3267
3289
|
};
|
|
3268
3290
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3269
3291
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3270
|
-
!
|
|
3292
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3271
3293
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3272
3294
|
if (this.isEOF() || this.char() !== 39)
|
|
3273
3295
|
return null;
|
|
@@ -3301,23 +3323,23 @@ var Qn = (
|
|
|
3301
3323
|
r.push(n);
|
|
3302
3324
|
this.bump();
|
|
3303
3325
|
}
|
|
3304
|
-
return
|
|
3326
|
+
return ke.apply(void 0, r);
|
|
3305
3327
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3306
3328
|
if (this.isEOF())
|
|
3307
3329
|
return null;
|
|
3308
3330
|
var n = this.char();
|
|
3309
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3331
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3310
3332
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3311
3333
|
var n = this.clonePosition();
|
|
3312
3334
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3313
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3335
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3314
3336
|
if (this.char() === 125)
|
|
3315
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3337
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3316
3338
|
var i = this.parseIdentifierIfPossible().value;
|
|
3317
3339
|
if (!i)
|
|
3318
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3340
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3319
3341
|
if (this.bumpSpace(), this.isEOF())
|
|
3320
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3342
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3321
3343
|
switch (this.char()) {
|
|
3322
3344
|
case 125:
|
|
3323
3345
|
return this.bump(), {
|
|
@@ -3325,25 +3347,25 @@ var Qn = (
|
|
|
3325
3347
|
type: S.argument,
|
|
3326
3348
|
// value does not include the opening and closing braces.
|
|
3327
3349
|
value: i,
|
|
3328
|
-
location:
|
|
3350
|
+
location: y(n, this.clonePosition())
|
|
3329
3351
|
},
|
|
3330
3352
|
err: null
|
|
3331
3353
|
};
|
|
3332
3354
|
case 44:
|
|
3333
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3355
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3334
3356
|
default:
|
|
3335
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3357
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3336
3358
|
}
|
|
3337
3359
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3338
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3360
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3339
3361
|
this.bumpTo(i);
|
|
3340
|
-
var o = this.clonePosition(), s =
|
|
3362
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
3341
3363
|
return { value: n, location: s };
|
|
3342
3364
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3343
3365
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3344
3366
|
switch (a) {
|
|
3345
3367
|
case "":
|
|
3346
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3368
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3347
3369
|
case "number":
|
|
3348
3370
|
case "date":
|
|
3349
3371
|
case "time": {
|
|
@@ -3354,18 +3376,18 @@ var Qn = (
|
|
|
3354
3376
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3355
3377
|
if (c.err)
|
|
3356
3378
|
return c;
|
|
3357
|
-
var f =
|
|
3379
|
+
var f = qn(c.val);
|
|
3358
3380
|
if (f.length === 0)
|
|
3359
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3360
|
-
var m =
|
|
3381
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3382
|
+
var m = y(h, this.clonePosition());
|
|
3361
3383
|
u = { style: f, styleLocation: m };
|
|
3362
3384
|
}
|
|
3363
3385
|
var d = this.tryParseArgumentClose(i);
|
|
3364
3386
|
if (d.err)
|
|
3365
3387
|
return d;
|
|
3366
|
-
var p =
|
|
3367
|
-
if (u &&
|
|
3368
|
-
var w =
|
|
3388
|
+
var p = y(i, this.clonePosition());
|
|
3389
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3390
|
+
var w = Jn(u.style.slice(2));
|
|
3369
3391
|
if (a === "number") {
|
|
3370
3392
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3371
3393
|
return c.err ? c : {
|
|
@@ -3376,12 +3398,12 @@ var Qn = (
|
|
|
3376
3398
|
if (w.length === 0)
|
|
3377
3399
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3378
3400
|
var I = w;
|
|
3379
|
-
this.locale && (I =
|
|
3401
|
+
this.locale && (I = $n(w, this.locale));
|
|
3380
3402
|
var f = {
|
|
3381
3403
|
type: W.dateTime,
|
|
3382
3404
|
pattern: I,
|
|
3383
3405
|
location: u.styleLocation,
|
|
3384
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3406
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(I) : {}
|
|
3385
3407
|
}, C = a === "date" ? S.date : S.time;
|
|
3386
3408
|
return {
|
|
3387
3409
|
val: { type: C, value: n, location: p, style: f },
|
|
@@ -3404,12 +3426,12 @@ var Qn = (
|
|
|
3404
3426
|
case "select": {
|
|
3405
3427
|
var T = this.clonePosition();
|
|
3406
3428
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3407
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3429
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
|
|
3408
3430
|
this.bumpSpace();
|
|
3409
3431
|
var _ = this.parseIdentifierIfPossible(), E = 0;
|
|
3410
3432
|
if (a !== "select" && _.value === "offset") {
|
|
3411
3433
|
if (!this.bumpIf(":"))
|
|
3412
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3434
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3413
3435
|
this.bumpSpace();
|
|
3414
3436
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3415
3437
|
if (c.err)
|
|
@@ -3422,12 +3444,12 @@ var Qn = (
|
|
|
3422
3444
|
var d = this.tryParseArgumentClose(i);
|
|
3423
3445
|
if (d.err)
|
|
3424
3446
|
return d;
|
|
3425
|
-
var P =
|
|
3447
|
+
var P = y(i, this.clonePosition());
|
|
3426
3448
|
return a === "select" ? {
|
|
3427
3449
|
val: {
|
|
3428
3450
|
type: S.select,
|
|
3429
3451
|
value: n,
|
|
3430
|
-
options:
|
|
3452
|
+
options: gt(x.val),
|
|
3431
3453
|
location: P
|
|
3432
3454
|
},
|
|
3433
3455
|
err: null
|
|
@@ -3435,7 +3457,7 @@ var Qn = (
|
|
|
3435
3457
|
val: {
|
|
3436
3458
|
type: S.plural,
|
|
3437
3459
|
value: n,
|
|
3438
|
-
options:
|
|
3460
|
+
options: gt(x.val),
|
|
3439
3461
|
offset: E,
|
|
3440
3462
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3441
3463
|
location: P
|
|
@@ -3444,10 +3466,10 @@ var Qn = (
|
|
|
3444
3466
|
};
|
|
3445
3467
|
}
|
|
3446
3468
|
default:
|
|
3447
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3469
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3448
3470
|
}
|
|
3449
3471
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3450
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3472
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3451
3473
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3452
3474
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3453
3475
|
var n = this.char();
|
|
@@ -3456,7 +3478,7 @@ var Qn = (
|
|
|
3456
3478
|
this.bump();
|
|
3457
3479
|
var i = this.clonePosition();
|
|
3458
3480
|
if (!this.bumpUntil("'"))
|
|
3459
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3481
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3460
3482
|
this.bump();
|
|
3461
3483
|
break;
|
|
3462
3484
|
}
|
|
@@ -3486,7 +3508,7 @@ var Qn = (
|
|
|
3486
3508
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3487
3509
|
var n = [];
|
|
3488
3510
|
try {
|
|
3489
|
-
n =
|
|
3511
|
+
n = In(t);
|
|
3490
3512
|
} catch {
|
|
3491
3513
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3492
3514
|
}
|
|
@@ -3495,7 +3517,7 @@ var Qn = (
|
|
|
3495
3517
|
type: W.number,
|
|
3496
3518
|
tokens: n,
|
|
3497
3519
|
location: r,
|
|
3498
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3520
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
|
|
3499
3521
|
},
|
|
3500
3522
|
err: null
|
|
3501
3523
|
};
|
|
@@ -3507,7 +3529,7 @@ var Qn = (
|
|
|
3507
3529
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3508
3530
|
if (f.err)
|
|
3509
3531
|
return f;
|
|
3510
|
-
h =
|
|
3532
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3511
3533
|
} else
|
|
3512
3534
|
break;
|
|
3513
3535
|
}
|
|
@@ -3516,7 +3538,7 @@ var Qn = (
|
|
|
3516
3538
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3517
3539
|
var m = this.clonePosition();
|
|
3518
3540
|
if (!this.bumpIf("{"))
|
|
3519
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3541
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3520
3542
|
var d = this.parseMessage(t + 1, r, n);
|
|
3521
3543
|
if (d.err)
|
|
3522
3544
|
return d;
|
|
@@ -3527,11 +3549,11 @@ var Qn = (
|
|
|
3527
3549
|
u,
|
|
3528
3550
|
{
|
|
3529
3551
|
value: d.val,
|
|
3530
|
-
location:
|
|
3552
|
+
location: y(m, this.clonePosition())
|
|
3531
3553
|
}
|
|
3532
3554
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3533
3555
|
}
|
|
3534
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3556
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3535
3557
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3536
3558
|
var n = 1, i = this.clonePosition();
|
|
3537
3559
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3542,8 +3564,8 @@ var Qn = (
|
|
|
3542
3564
|
else
|
|
3543
3565
|
break;
|
|
3544
3566
|
}
|
|
3545
|
-
var l =
|
|
3546
|
-
return o ? (s *= n,
|
|
3567
|
+
var l = y(i, this.clonePosition());
|
|
3568
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3547
3569
|
}, e.prototype.offset = function() {
|
|
3548
3570
|
return this.position.offset;
|
|
3549
3571
|
}, e.prototype.isEOF = function() {
|
|
@@ -3558,7 +3580,7 @@ var Qn = (
|
|
|
3558
3580
|
var t = this.position.offset;
|
|
3559
3581
|
if (t >= this.message.length)
|
|
3560
3582
|
throw Error("out of bound");
|
|
3561
|
-
var r =
|
|
3583
|
+
var r = rr(this.message, t);
|
|
3562
3584
|
if (r === void 0)
|
|
3563
3585
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3564
3586
|
return r;
|
|
@@ -3577,7 +3599,7 @@ var Qn = (
|
|
|
3577
3599
|
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);
|
|
3578
3600
|
}
|
|
3579
3601
|
}, e.prototype.bumpIf = function(t) {
|
|
3580
|
-
if (
|
|
3602
|
+
if (bt(this.message, t, this.offset())) {
|
|
3581
3603
|
for (var r = 0; r < t.length; r++)
|
|
3582
3604
|
this.bump();
|
|
3583
3605
|
return !0;
|
|
@@ -3599,7 +3621,7 @@ var Qn = (
|
|
|
3599
3621
|
break;
|
|
3600
3622
|
}
|
|
3601
3623
|
}, e.prototype.bumpSpace = function() {
|
|
3602
|
-
for (; !this.isEOF() &&
|
|
3624
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3603
3625
|
this.bump();
|
|
3604
3626
|
}, e.prototype.peek = function() {
|
|
3605
3627
|
if (this.isEOF())
|
|
@@ -3609,38 +3631,38 @@ var Qn = (
|
|
|
3609
3631
|
}, e;
|
|
3610
3632
|
}()
|
|
3611
3633
|
);
|
|
3612
|
-
function
|
|
3634
|
+
function Xe(e) {
|
|
3613
3635
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3614
3636
|
}
|
|
3615
|
-
function
|
|
3616
|
-
return
|
|
3637
|
+
function Kn(e) {
|
|
3638
|
+
return Xe(e) || e === 47;
|
|
3617
3639
|
}
|
|
3618
|
-
function
|
|
3640
|
+
function ei(e) {
|
|
3619
3641
|
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;
|
|
3620
3642
|
}
|
|
3621
|
-
function
|
|
3643
|
+
function ir(e) {
|
|
3622
3644
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3623
3645
|
}
|
|
3624
|
-
function
|
|
3646
|
+
function ti(e) {
|
|
3625
3647
|
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;
|
|
3626
3648
|
}
|
|
3627
|
-
function
|
|
3649
|
+
function ze(e) {
|
|
3628
3650
|
e.forEach(function(t) {
|
|
3629
|
-
if (delete t.location,
|
|
3651
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3630
3652
|
for (var r in t.options)
|
|
3631
|
-
delete t.options[r].location,
|
|
3653
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3632
3654
|
else
|
|
3633
|
-
|
|
3655
|
+
Xt(t) && qt(t.style) || (zt(t) || Wt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && ze(t.children);
|
|
3634
3656
|
});
|
|
3635
3657
|
}
|
|
3636
|
-
function
|
|
3637
|
-
t === void 0 && (t = {}), t =
|
|
3638
|
-
var r = new
|
|
3658
|
+
function ri(e, t) {
|
|
3659
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3660
|
+
var r = new Yn(e, t).parse();
|
|
3639
3661
|
if (r.err) {
|
|
3640
3662
|
var n = SyntaxError(b[r.err.kind]);
|
|
3641
3663
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3642
3664
|
}
|
|
3643
|
-
return t?.captureLocation ||
|
|
3665
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3644
3666
|
}
|
|
3645
3667
|
var Z;
|
|
3646
3668
|
(function(e) {
|
|
@@ -3658,7 +3680,7 @@ var _e = (
|
|
|
3658
3680
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3659
3681
|
}, t;
|
|
3660
3682
|
}(Error)
|
|
3661
|
-
),
|
|
3683
|
+
), vt = (
|
|
3662
3684
|
/** @class */
|
|
3663
3685
|
function(e) {
|
|
3664
3686
|
R(t, e);
|
|
@@ -3667,7 +3689,7 @@ var _e = (
|
|
|
3667
3689
|
}
|
|
3668
3690
|
return t;
|
|
3669
3691
|
}(_e)
|
|
3670
|
-
),
|
|
3692
|
+
), ni = (
|
|
3671
3693
|
/** @class */
|
|
3672
3694
|
function(e) {
|
|
3673
3695
|
R(t, e);
|
|
@@ -3676,7 +3698,7 @@ var _e = (
|
|
|
3676
3698
|
}
|
|
3677
3699
|
return t;
|
|
3678
3700
|
}(_e)
|
|
3679
|
-
),
|
|
3701
|
+
), ii = (
|
|
3680
3702
|
/** @class */
|
|
3681
3703
|
function(e) {
|
|
3682
3704
|
R(t, e);
|
|
@@ -3689,17 +3711,17 @@ var _e = (
|
|
|
3689
3711
|
(function(e) {
|
|
3690
3712
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3691
3713
|
})(A || (A = {}));
|
|
3692
|
-
function
|
|
3714
|
+
function oi(e) {
|
|
3693
3715
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3694
3716
|
var n = t[t.length - 1];
|
|
3695
3717
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3696
3718
|
}, []);
|
|
3697
3719
|
}
|
|
3698
|
-
function
|
|
3720
|
+
function si(e) {
|
|
3699
3721
|
return typeof e == "function";
|
|
3700
3722
|
}
|
|
3701
3723
|
function de(e, t, r, n, i, o, s) {
|
|
3702
|
-
if (e.length === 1 &&
|
|
3724
|
+
if (e.length === 1 && ft(e[0]))
|
|
3703
3725
|
return [
|
|
3704
3726
|
{
|
|
3705
3727
|
type: A.literal,
|
|
@@ -3708,14 +3730,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3708
3730
|
];
|
|
3709
3731
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3710
3732
|
var h = u[l];
|
|
3711
|
-
if (
|
|
3733
|
+
if (ft(h)) {
|
|
3712
3734
|
a.push({
|
|
3713
3735
|
type: A.literal,
|
|
3714
3736
|
value: h.value
|
|
3715
3737
|
});
|
|
3716
3738
|
continue;
|
|
3717
3739
|
}
|
|
3718
|
-
if (
|
|
3740
|
+
if (An(h)) {
|
|
3719
3741
|
typeof o == "number" && a.push({
|
|
3720
3742
|
type: A.literal,
|
|
3721
3743
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3724,43 +3746,43 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3724
3746
|
}
|
|
3725
3747
|
var c = h.value;
|
|
3726
3748
|
if (!(i && c in i))
|
|
3727
|
-
throw new
|
|
3749
|
+
throw new ii(c, s);
|
|
3728
3750
|
var f = i[c];
|
|
3729
|
-
if (
|
|
3751
|
+
if (Bn(h)) {
|
|
3730
3752
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3731
3753
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3732
3754
|
value: f
|
|
3733
3755
|
});
|
|
3734
3756
|
continue;
|
|
3735
3757
|
}
|
|
3736
|
-
if (
|
|
3737
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3758
|
+
if (zt(h)) {
|
|
3759
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3738
3760
|
a.push({
|
|
3739
3761
|
type: A.literal,
|
|
3740
3762
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3741
3763
|
});
|
|
3742
3764
|
continue;
|
|
3743
3765
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3766
|
+
if (Wt(h)) {
|
|
3767
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3746
3768
|
a.push({
|
|
3747
3769
|
type: A.literal,
|
|
3748
3770
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3749
3771
|
});
|
|
3750
3772
|
continue;
|
|
3751
3773
|
}
|
|
3752
|
-
if (
|
|
3753
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3774
|
+
if (Xt(h)) {
|
|
3775
|
+
var m = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3754
3776
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3755
3777
|
type: A.literal,
|
|
3756
3778
|
value: r.getNumberFormat(t, m).format(f)
|
|
3757
3779
|
});
|
|
3758
3780
|
continue;
|
|
3759
3781
|
}
|
|
3760
|
-
if (
|
|
3782
|
+
if (Jt(h)) {
|
|
3761
3783
|
var d = h.children, p = h.value, w = i[p];
|
|
3762
|
-
if (!
|
|
3763
|
-
throw new
|
|
3784
|
+
if (!si(w))
|
|
3785
|
+
throw new ni(p, "function", s);
|
|
3764
3786
|
var I = de(d, t, r, n, i, o), C = w(I.map(function(E) {
|
|
3765
3787
|
return E.value;
|
|
3766
3788
|
}));
|
|
@@ -3771,14 +3793,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3771
3793
|
};
|
|
3772
3794
|
}));
|
|
3773
3795
|
}
|
|
3774
|
-
if (
|
|
3796
|
+
if (Zt(h)) {
|
|
3775
3797
|
var T = h.options[f] || h.options.other;
|
|
3776
3798
|
if (!T)
|
|
3777
|
-
throw new
|
|
3799
|
+
throw new vt(h.value, f, Object.keys(h.options), s);
|
|
3778
3800
|
a.push.apply(a, de(T.value, t, r, n, i));
|
|
3779
3801
|
continue;
|
|
3780
3802
|
}
|
|
3781
|
-
if (
|
|
3803
|
+
if (Qt(h)) {
|
|
3782
3804
|
var T = h.options["=".concat(f)];
|
|
3783
3805
|
if (!T) {
|
|
3784
3806
|
if (!Intl.PluralRules)
|
|
@@ -3789,24 +3811,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3789
3811
|
T = h.options[_] || h.options.other;
|
|
3790
3812
|
}
|
|
3791
3813
|
if (!T)
|
|
3792
|
-
throw new
|
|
3814
|
+
throw new vt(h.value, f, Object.keys(h.options), s);
|
|
3793
3815
|
a.push.apply(a, de(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3794
3816
|
continue;
|
|
3795
3817
|
}
|
|
3796
3818
|
}
|
|
3797
|
-
return
|
|
3819
|
+
return oi(a);
|
|
3798
3820
|
}
|
|
3799
|
-
function
|
|
3800
|
-
return t ?
|
|
3801
|
-
return r[n] =
|
|
3821
|
+
function ai(e, t) {
|
|
3822
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3823
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3802
3824
|
}, {})) : e;
|
|
3803
3825
|
}
|
|
3804
|
-
function
|
|
3826
|
+
function ui(e, t) {
|
|
3805
3827
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3806
|
-
return r[n] =
|
|
3807
|
-
},
|
|
3828
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3829
|
+
}, v({}, e)) : e;
|
|
3808
3830
|
}
|
|
3809
|
-
function
|
|
3831
|
+
function Pe(e) {
|
|
3810
3832
|
return {
|
|
3811
3833
|
create: function() {
|
|
3812
3834
|
return {
|
|
@@ -3820,39 +3842,39 @@ function Ce(e) {
|
|
|
3820
3842
|
}
|
|
3821
3843
|
};
|
|
3822
3844
|
}
|
|
3823
|
-
function
|
|
3845
|
+
function li(e) {
|
|
3824
3846
|
return e === void 0 && (e = {
|
|
3825
3847
|
number: {},
|
|
3826
3848
|
dateTime: {},
|
|
3827
3849
|
pluralRules: {}
|
|
3828
3850
|
}), {
|
|
3829
|
-
getNumberFormat:
|
|
3851
|
+
getNumberFormat: Be(function() {
|
|
3830
3852
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3831
3853
|
r[n] = arguments[n];
|
|
3832
3854
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3833
3855
|
}, {
|
|
3834
|
-
cache:
|
|
3835
|
-
strategy:
|
|
3856
|
+
cache: Pe(e.number),
|
|
3857
|
+
strategy: Ae.variadic
|
|
3836
3858
|
}),
|
|
3837
|
-
getDateTimeFormat:
|
|
3859
|
+
getDateTimeFormat: Be(function() {
|
|
3838
3860
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3839
3861
|
r[n] = arguments[n];
|
|
3840
3862
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3841
3863
|
}, {
|
|
3842
|
-
cache:
|
|
3843
|
-
strategy:
|
|
3864
|
+
cache: Pe(e.dateTime),
|
|
3865
|
+
strategy: Ae.variadic
|
|
3844
3866
|
}),
|
|
3845
|
-
getPluralRules:
|
|
3867
|
+
getPluralRules: Be(function() {
|
|
3846
3868
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3847
3869
|
r[n] = arguments[n];
|
|
3848
3870
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3849
3871
|
}, {
|
|
3850
|
-
cache:
|
|
3851
|
-
strategy:
|
|
3872
|
+
cache: Pe(e.pluralRules),
|
|
3873
|
+
strategy: Ae.variadic
|
|
3852
3874
|
})
|
|
3853
3875
|
};
|
|
3854
3876
|
}
|
|
3855
|
-
var
|
|
3877
|
+
var hi = (
|
|
3856
3878
|
/** @class */
|
|
3857
3879
|
function() {
|
|
3858
3880
|
function e(t, r, n, i) {
|
|
@@ -3884,13 +3906,13 @@ var ai = (
|
|
|
3884
3906
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3885
3907
|
var s = i || {};
|
|
3886
3908
|
s.formatters;
|
|
3887
|
-
var a =
|
|
3888
|
-
this.ast = e.__parse(t,
|
|
3909
|
+
var a = kr(s, ["formatters"]);
|
|
3910
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3889
3911
|
} else
|
|
3890
3912
|
this.ast = t;
|
|
3891
3913
|
if (!Array.isArray(this.ast))
|
|
3892
3914
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3893
|
-
this.formats =
|
|
3915
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3894
3916
|
}
|
|
3895
3917
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3896
3918
|
get: function() {
|
|
@@ -3903,7 +3925,7 @@ var ai = (
|
|
|
3903
3925
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3904
3926
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3905
3927
|
}
|
|
3906
|
-
}, e.__parse =
|
|
3928
|
+
}, e.__parse = ri, e.formats = {
|
|
3907
3929
|
number: {
|
|
3908
3930
|
integer: {
|
|
3909
3931
|
maximumFractionDigits: 0
|
|
@@ -3964,7 +3986,7 @@ var ai = (
|
|
|
3964
3986
|
}, e;
|
|
3965
3987
|
}()
|
|
3966
3988
|
);
|
|
3967
|
-
function
|
|
3989
|
+
function ci(e, t) {
|
|
3968
3990
|
if (t == null)
|
|
3969
3991
|
return;
|
|
3970
3992
|
if (t in e)
|
|
@@ -3985,92 +4007,92 @@ function ui(e, t) {
|
|
|
3985
4007
|
n = void 0;
|
|
3986
4008
|
return n;
|
|
3987
4009
|
}
|
|
3988
|
-
const $ = {},
|
|
4010
|
+
const $ = {}, fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), or = (e, t) => {
|
|
3989
4011
|
if (t == null)
|
|
3990
4012
|
return;
|
|
3991
4013
|
if (t in $ && e in $[t])
|
|
3992
4014
|
return $[t][e];
|
|
3993
4015
|
const r = Ee(t);
|
|
3994
4016
|
for (let n = 0; n < r.length; n++) {
|
|
3995
|
-
const i = r[n], o =
|
|
4017
|
+
const i = r[n], o = di(i, e);
|
|
3996
4018
|
if (o)
|
|
3997
|
-
return
|
|
4019
|
+
return fi(e, t, o);
|
|
3998
4020
|
}
|
|
3999
4021
|
};
|
|
4000
|
-
let
|
|
4022
|
+
let Ye;
|
|
4001
4023
|
const ae = xe({});
|
|
4002
|
-
function
|
|
4003
|
-
return
|
|
4024
|
+
function mi(e) {
|
|
4025
|
+
return Ye[e] || null;
|
|
4004
4026
|
}
|
|
4005
|
-
function
|
|
4006
|
-
return e in
|
|
4027
|
+
function sr(e) {
|
|
4028
|
+
return e in Ye;
|
|
4007
4029
|
}
|
|
4008
|
-
function
|
|
4009
|
-
if (!
|
|
4030
|
+
function di(e, t) {
|
|
4031
|
+
if (!sr(e))
|
|
4010
4032
|
return null;
|
|
4011
|
-
const r =
|
|
4012
|
-
return
|
|
4033
|
+
const r = mi(e);
|
|
4034
|
+
return ci(r, t);
|
|
4013
4035
|
}
|
|
4014
|
-
function
|
|
4036
|
+
function pi(e) {
|
|
4015
4037
|
if (e == null)
|
|
4016
4038
|
return;
|
|
4017
4039
|
const t = Ee(e);
|
|
4018
4040
|
for (let r = 0; r < t.length; r++) {
|
|
4019
4041
|
const n = t[r];
|
|
4020
|
-
if (
|
|
4042
|
+
if (sr(n))
|
|
4021
4043
|
return n;
|
|
4022
4044
|
}
|
|
4023
4045
|
}
|
|
4024
|
-
function
|
|
4025
|
-
delete $[e], ae.update((r) => (r[e] =
|
|
4046
|
+
function ar(e, ...t) {
|
|
4047
|
+
delete $[e], ae.update((r) => (r[e] = xn.all([r[e] || {}, ...t]), r));
|
|
4026
4048
|
}
|
|
4027
4049
|
Y(
|
|
4028
4050
|
[ae],
|
|
4029
4051
|
([e]) => Object.keys(e)
|
|
4030
4052
|
);
|
|
4031
|
-
ae.subscribe((e) =>
|
|
4053
|
+
ae.subscribe((e) => Ye = e);
|
|
4032
4054
|
const pe = {};
|
|
4033
|
-
function
|
|
4055
|
+
function bi(e, t) {
|
|
4034
4056
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4035
4057
|
}
|
|
4036
|
-
function
|
|
4058
|
+
function ur(e) {
|
|
4037
4059
|
return pe[e];
|
|
4038
4060
|
}
|
|
4039
|
-
function
|
|
4061
|
+
function gi(e) {
|
|
4040
4062
|
return Ee(e).map((t) => {
|
|
4041
|
-
const r =
|
|
4063
|
+
const r = ur(t);
|
|
4042
4064
|
return [t, r ? [...r] : []];
|
|
4043
4065
|
}).filter(([, t]) => t.length > 0);
|
|
4044
4066
|
}
|
|
4045
|
-
function
|
|
4067
|
+
function We(e) {
|
|
4046
4068
|
return e == null ? !1 : Ee(e).some(
|
|
4047
4069
|
(t) => {
|
|
4048
4070
|
var r;
|
|
4049
|
-
return (r =
|
|
4071
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
4050
4072
|
}
|
|
4051
4073
|
);
|
|
4052
4074
|
}
|
|
4053
|
-
function
|
|
4075
|
+
function yi(e, t) {
|
|
4054
4076
|
return Promise.all(
|
|
4055
|
-
t.map((n) => (
|
|
4056
|
-
).then((n) =>
|
|
4077
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4078
|
+
).then((n) => ar(e, ...n));
|
|
4057
4079
|
}
|
|
4058
4080
|
const te = {};
|
|
4059
|
-
function
|
|
4060
|
-
if (!
|
|
4081
|
+
function lr(e) {
|
|
4082
|
+
if (!We(e))
|
|
4061
4083
|
return e in te ? te[e] : Promise.resolve();
|
|
4062
|
-
const t =
|
|
4084
|
+
const t = gi(e);
|
|
4063
4085
|
return te[e] = Promise.all(
|
|
4064
4086
|
t.map(
|
|
4065
|
-
([r, n]) =>
|
|
4087
|
+
([r, n]) => yi(r, n)
|
|
4066
4088
|
)
|
|
4067
4089
|
).then(() => {
|
|
4068
|
-
if (
|
|
4069
|
-
return
|
|
4090
|
+
if (We(e))
|
|
4091
|
+
return lr(e);
|
|
4070
4092
|
delete te[e];
|
|
4071
4093
|
}), te[e];
|
|
4072
4094
|
}
|
|
4073
|
-
const
|
|
4095
|
+
const vi = {
|
|
4074
4096
|
number: {
|
|
4075
4097
|
scientific: { notation: "scientific" },
|
|
4076
4098
|
engineering: { notation: "engineering" },
|
|
@@ -4099,57 +4121,57 @@ const bi = {
|
|
|
4099
4121
|
timeZoneName: "short"
|
|
4100
4122
|
}
|
|
4101
4123
|
}
|
|
4102
|
-
},
|
|
4124
|
+
}, xi = {
|
|
4103
4125
|
fallbackLocale: null,
|
|
4104
4126
|
loadingDelay: 200,
|
|
4105
|
-
formats:
|
|
4127
|
+
formats: vi,
|
|
4106
4128
|
warnOnMissingMessages: !0,
|
|
4107
4129
|
handleMissingMessage: void 0,
|
|
4108
4130
|
ignoreTag: !0
|
|
4109
|
-
},
|
|
4131
|
+
}, _i = xi;
|
|
4110
4132
|
function Q() {
|
|
4111
|
-
return
|
|
4133
|
+
return _i;
|
|
4112
4134
|
}
|
|
4113
|
-
const
|
|
4114
|
-
var
|
|
4135
|
+
const Oe = xe(!1);
|
|
4136
|
+
var Ei = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4115
4137
|
for (var r in t || (t = {}))
|
|
4116
|
-
|
|
4117
|
-
if (
|
|
4118
|
-
for (var r of
|
|
4119
|
-
|
|
4138
|
+
Ti.call(t, r) && _t(e, r, t[r]);
|
|
4139
|
+
if (xt)
|
|
4140
|
+
for (var r of xt(t))
|
|
4141
|
+
Hi.call(t, r) && _t(e, r, t[r]);
|
|
4120
4142
|
return e;
|
|
4121
|
-
},
|
|
4122
|
-
let
|
|
4143
|
+
}, Ai = (e, t) => Si(e, wi(t));
|
|
4144
|
+
let Ze;
|
|
4123
4145
|
const ge = xe(null);
|
|
4124
|
-
function
|
|
4146
|
+
function Et(e) {
|
|
4125
4147
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4126
4148
|
}
|
|
4127
4149
|
function Ee(e, t = Q().fallbackLocale) {
|
|
4128
|
-
const r =
|
|
4129
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4150
|
+
const r = Et(e);
|
|
4151
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4130
4152
|
}
|
|
4131
4153
|
function G() {
|
|
4132
|
-
return
|
|
4154
|
+
return Ze ?? void 0;
|
|
4133
4155
|
}
|
|
4134
4156
|
ge.subscribe((e) => {
|
|
4135
|
-
|
|
4157
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4136
4158
|
});
|
|
4137
|
-
const
|
|
4138
|
-
if (e &&
|
|
4159
|
+
const Ci = (e) => {
|
|
4160
|
+
if (e && pi(e) && We(e)) {
|
|
4139
4161
|
const { loadingDelay: t } = Q();
|
|
4140
4162
|
let r;
|
|
4141
4163
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4142
|
-
() =>
|
|
4164
|
+
() => Oe.set(!0),
|
|
4143
4165
|
t
|
|
4144
|
-
) :
|
|
4166
|
+
) : Oe.set(!0), lr(e).then(() => {
|
|
4145
4167
|
ge.set(e);
|
|
4146
4168
|
}).finally(() => {
|
|
4147
|
-
clearTimeout(r),
|
|
4169
|
+
clearTimeout(r), Oe.set(!1);
|
|
4148
4170
|
});
|
|
4149
4171
|
}
|
|
4150
4172
|
return ge.set(e);
|
|
4151
|
-
}, K =
|
|
4152
|
-
set:
|
|
4173
|
+
}, K = Ai(Bi({}, ge), {
|
|
4174
|
+
set: Ci
|
|
4153
4175
|
}), Se = (e) => {
|
|
4154
4176
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4155
4177
|
return (n) => {
|
|
@@ -4157,20 +4179,20 @@ const Hi = (e) => {
|
|
|
4157
4179
|
return i in t ? t[i] : t[i] = e(n);
|
|
4158
4180
|
};
|
|
4159
4181
|
};
|
|
4160
|
-
var
|
|
4182
|
+
var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4161
4183
|
for (var r in t || (t = {}))
|
|
4162
|
-
|
|
4163
|
-
if (
|
|
4164
|
-
for (var r of
|
|
4165
|
-
|
|
4184
|
+
hr.call(t, r) && St(e, r, t[r]);
|
|
4185
|
+
if (ye)
|
|
4186
|
+
for (var r of ye(t))
|
|
4187
|
+
cr.call(t, r) && St(e, r, t[r]);
|
|
4166
4188
|
return e;
|
|
4167
4189
|
}, ee = (e, t) => {
|
|
4168
4190
|
var r = {};
|
|
4169
4191
|
for (var n in e)
|
|
4170
|
-
|
|
4171
|
-
if (e != null &&
|
|
4172
|
-
for (var n of
|
|
4173
|
-
t.indexOf(n) < 0 &&
|
|
4192
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4193
|
+
if (e != null && ye)
|
|
4194
|
+
for (var n of ye(e))
|
|
4195
|
+
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
|
4174
4196
|
return r;
|
|
4175
4197
|
};
|
|
4176
4198
|
const oe = (e, t) => {
|
|
@@ -4178,21 +4200,21 @@ const oe = (e, t) => {
|
|
|
4178
4200
|
if (e in r && t in r[e])
|
|
4179
4201
|
return r[e][t];
|
|
4180
4202
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4181
|
-
},
|
|
4203
|
+
}, Oi = Se(
|
|
4182
4204
|
(e) => {
|
|
4183
4205
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4184
4206
|
if (r == null)
|
|
4185
4207
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4186
4208
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4187
4209
|
}
|
|
4188
|
-
),
|
|
4210
|
+
), Ii = Se(
|
|
4189
4211
|
(e) => {
|
|
4190
4212
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4191
4213
|
if (r == null)
|
|
4192
4214
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4193
4215
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4194
4216
|
}
|
|
4195
|
-
),
|
|
4217
|
+
), Mi = Se(
|
|
4196
4218
|
(e) => {
|
|
4197
4219
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4198
4220
|
if (r == null)
|
|
@@ -4201,33 +4223,33 @@ const oe = (e, t) => {
|
|
|
4201
4223
|
);
|
|
4202
4224
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4203
4225
|
}
|
|
4204
|
-
),
|
|
4226
|
+
), Ni = (e = {}) => {
|
|
4205
4227
|
var t = e, {
|
|
4206
4228
|
locale: r = G()
|
|
4207
4229
|
} = t, n = ee(t, [
|
|
4208
4230
|
"locale"
|
|
4209
4231
|
]);
|
|
4210
|
-
return
|
|
4211
|
-
},
|
|
4232
|
+
return Oi(Ke({ locale: r }, n));
|
|
4233
|
+
}, Li = (e = {}) => {
|
|
4212
4234
|
var t = e, {
|
|
4213
4235
|
locale: r = G()
|
|
4214
4236
|
} = t, n = ee(t, [
|
|
4215
4237
|
"locale"
|
|
4216
4238
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4239
|
+
return Ii(Ke({ locale: r }, n));
|
|
4240
|
+
}, Ri = (e = {}) => {
|
|
4219
4241
|
var t = e, {
|
|
4220
4242
|
locale: r = G()
|
|
4221
4243
|
} = t, n = ee(t, [
|
|
4222
4244
|
"locale"
|
|
4223
4245
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4246
|
+
return Mi(Ke({ locale: r }, n));
|
|
4247
|
+
}, $i = Se(
|
|
4226
4248
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4227
|
-
(e, t = G()) => new
|
|
4249
|
+
(e, t = G()) => new hi(e, t, Q().formats, {
|
|
4228
4250
|
ignoreTag: Q().ignoreTag
|
|
4229
4251
|
})
|
|
4230
|
-
),
|
|
4252
|
+
), Gi = (e, t = {}) => {
|
|
4231
4253
|
var r, n, i, o;
|
|
4232
4254
|
let s = t;
|
|
4233
4255
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4240,7 +4262,7 @@ const oe = (e, t) => {
|
|
|
4240
4262
|
throw new Error(
|
|
4241
4263
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4242
4264
|
);
|
|
4243
|
-
let h =
|
|
4265
|
+
let h = or(e, l);
|
|
4244
4266
|
if (!h)
|
|
4245
4267
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4246
4268
|
else if (typeof h != "string")
|
|
@@ -4251,7 +4273,7 @@ const oe = (e, t) => {
|
|
|
4251
4273
|
return h;
|
|
4252
4274
|
let c = h;
|
|
4253
4275
|
try {
|
|
4254
|
-
c =
|
|
4276
|
+
c = $i(h, l).format(a);
|
|
4255
4277
|
} catch (f) {
|
|
4256
4278
|
f instanceof Error && console.warn(
|
|
4257
4279
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4259,20 +4281,20 @@ const oe = (e, t) => {
|
|
|
4259
4281
|
);
|
|
4260
4282
|
}
|
|
4261
4283
|
return c;
|
|
4262
|
-
},
|
|
4263
|
-
Y([K], () =>
|
|
4264
|
-
Y([K], () =>
|
|
4265
|
-
Y([K], () =>
|
|
4266
|
-
Y([K, ae], () =>
|
|
4267
|
-
window.emWidgets = { topic:
|
|
4268
|
-
const
|
|
4269
|
-
function
|
|
4284
|
+
}, Ui = (e, t) => Ri(t).format(e), Di = (e, t) => Li(t).format(e), Fi = (e, t) => Ni(t).format(e), ji = (e, t = G()) => or(e, t), ki = Y([K, ae], () => Gi);
|
|
4285
|
+
Y([K], () => Ui);
|
|
4286
|
+
Y([K], () => Di);
|
|
4287
|
+
Y([K], () => Fi);
|
|
4288
|
+
Y([K, ae], () => ji);
|
|
4289
|
+
window.emWidgets = { topic: nn };
|
|
4290
|
+
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4291
|
+
function Xi(e, t) {
|
|
4270
4292
|
if (e) {
|
|
4271
4293
|
const r = document.createElement("style");
|
|
4272
4294
|
r.innerHTML = t, e.appendChild(r);
|
|
4273
4295
|
}
|
|
4274
4296
|
}
|
|
4275
|
-
function
|
|
4297
|
+
function zi(e, t) {
|
|
4276
4298
|
const r = new URL(t);
|
|
4277
4299
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4278
4300
|
const i = document.createElement("style");
|
|
@@ -4281,7 +4303,7 @@ function ki(e, t) {
|
|
|
4281
4303
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4282
4304
|
});
|
|
4283
4305
|
}
|
|
4284
|
-
function
|
|
4306
|
+
function Wi(e, t, r) {
|
|
4285
4307
|
if (window.emMessageBus) {
|
|
4286
4308
|
const n = document.createElement("style");
|
|
4287
4309
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4289,13 +4311,13 @@ function Vi(e, t, r) {
|
|
|
4289
4311
|
});
|
|
4290
4312
|
}
|
|
4291
4313
|
}
|
|
4292
|
-
function
|
|
4293
|
-
|
|
4314
|
+
function wt(e, t) {
|
|
4315
|
+
ar(e, t);
|
|
4294
4316
|
}
|
|
4295
|
-
function
|
|
4317
|
+
function Zi(e) {
|
|
4296
4318
|
K.set(e);
|
|
4297
4319
|
}
|
|
4298
|
-
const
|
|
4320
|
+
const Tt = {
|
|
4299
4321
|
en: {
|
|
4300
4322
|
cancel: "Cancel",
|
|
4301
4323
|
confirm: "Confirm"
|
|
@@ -4341,15 +4363,15 @@ const Et = {
|
|
|
4341
4363
|
confirm: "Confirm"
|
|
4342
4364
|
}
|
|
4343
4365
|
};
|
|
4344
|
-
function
|
|
4345
|
-
|
|
4366
|
+
function Qi(e) {
|
|
4367
|
+
Er(e, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4346
4368
|
}
|
|
4347
|
-
const
|
|
4348
|
-
function
|
|
4369
|
+
const Ji = (e) => ({}), Ht = (e) => ({});
|
|
4370
|
+
function qi(e) {
|
|
4349
4371
|
let t, r;
|
|
4350
4372
|
return {
|
|
4351
4373
|
c() {
|
|
4352
|
-
t =
|
|
4374
|
+
t = rt("svg"), r = rt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4353
4375
|
},
|
|
4354
4376
|
m(n, i) {
|
|
4355
4377
|
se(n, t, i), B(t, r);
|
|
@@ -4360,7 +4382,7 @@ function Zi(e) {
|
|
|
4360
4382
|
}
|
|
4361
4383
|
};
|
|
4362
4384
|
}
|
|
4363
|
-
function
|
|
4385
|
+
function Bt(e) {
|
|
4364
4386
|
let t, r, n;
|
|
4365
4387
|
return {
|
|
4366
4388
|
c() {
|
|
@@ -4385,7 +4407,7 @@ function wt(e) {
|
|
|
4385
4407
|
}
|
|
4386
4408
|
};
|
|
4387
4409
|
}
|
|
4388
|
-
function
|
|
4410
|
+
function At(e) {
|
|
4389
4411
|
let t, r = (
|
|
4390
4412
|
/*$_*/
|
|
4391
4413
|
e[4]("cancel") + ""
|
|
@@ -4395,7 +4417,7 @@ function Tt(e) {
|
|
|
4395
4417
|
t = M("button"), n = X(r), H(t, "class", "GeneralCancelButton");
|
|
4396
4418
|
},
|
|
4397
4419
|
m(s, a) {
|
|
4398
|
-
se(s, t, a), B(t, n), i || (o =
|
|
4420
|
+
se(s, t, a), B(t, n), i || (o = Ie(
|
|
4399
4421
|
t,
|
|
4400
4422
|
"click",
|
|
4401
4423
|
/*click_handler*/
|
|
@@ -4412,7 +4434,7 @@ function Tt(e) {
|
|
|
4412
4434
|
}
|
|
4413
4435
|
};
|
|
4414
4436
|
}
|
|
4415
|
-
function
|
|
4437
|
+
function Yi(e) {
|
|
4416
4438
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4417
4439
|
/*$_*/
|
|
4418
4440
|
e[4]("confirm") + ""
|
|
@@ -4420,19 +4442,19 @@ function Qi(e) {
|
|
|
4420
4442
|
const I = (
|
|
4421
4443
|
/*#slots*/
|
|
4422
4444
|
e[16].close
|
|
4423
|
-
), C =
|
|
4445
|
+
), C = yr(
|
|
4424
4446
|
I,
|
|
4425
4447
|
e,
|
|
4426
4448
|
/*$$scope*/
|
|
4427
4449
|
e[15],
|
|
4428
|
-
|
|
4429
|
-
), T = C ||
|
|
4450
|
+
Ht
|
|
4451
|
+
), T = C || qi();
|
|
4430
4452
|
let _ = (
|
|
4431
4453
|
/*modaltitle*/
|
|
4432
|
-
e[1] &&
|
|
4454
|
+
e[1] && Bt(e)
|
|
4433
4455
|
), E = (
|
|
4434
4456
|
/*hascancelbutton*/
|
|
4435
|
-
e[2] &&
|
|
4457
|
+
e[2] && At(e)
|
|
4436
4458
|
);
|
|
4437
4459
|
return {
|
|
4438
4460
|
c() {
|
|
@@ -4446,13 +4468,13 @@ function Qi(e) {
|
|
|
4446
4468
|
},
|
|
4447
4469
|
m(x, P) {
|
|
4448
4470
|
se(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4449
|
-
|
|
4471
|
+
Ie(
|
|
4450
4472
|
n,
|
|
4451
4473
|
"click",
|
|
4452
4474
|
/*close*/
|
|
4453
4475
|
e[6]
|
|
4454
4476
|
),
|
|
4455
|
-
|
|
4477
|
+
Ie(
|
|
4456
4478
|
c,
|
|
4457
4479
|
"click",
|
|
4458
4480
|
/*click_handler_1*/
|
|
@@ -4462,73 +4484,73 @@ function Qi(e) {
|
|
|
4462
4484
|
},
|
|
4463
4485
|
p(x, [P]) {
|
|
4464
4486
|
C && C.p && (!d || P & /*$$scope*/
|
|
4465
|
-
32768) &&
|
|
4487
|
+
32768) && xr(
|
|
4466
4488
|
C,
|
|
4467
4489
|
I,
|
|
4468
4490
|
x,
|
|
4469
4491
|
/*$$scope*/
|
|
4470
4492
|
x[15],
|
|
4471
|
-
d ?
|
|
4493
|
+
d ? vr(
|
|
4472
4494
|
I,
|
|
4473
4495
|
/*$$scope*/
|
|
4474
4496
|
x[15],
|
|
4475
4497
|
P,
|
|
4476
|
-
|
|
4477
|
-
) :
|
|
4498
|
+
Ji
|
|
4499
|
+
) : _r(
|
|
4478
4500
|
/*$$scope*/
|
|
4479
4501
|
x[15]
|
|
4480
4502
|
),
|
|
4481
|
-
|
|
4503
|
+
Ht
|
|
4482
4504
|
), /*modaltitle*/
|
|
4483
|
-
x[1] ? _ ? _.p(x, P) : (_ =
|
|
4505
|
+
x[1] ? _ ? _.p(x, P) : (_ = Bt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4484
4506
|
1) && be(
|
|
4485
4507
|
a,
|
|
4486
4508
|
/*modaltext*/
|
|
4487
4509
|
x[0]
|
|
4488
4510
|
), /*hascancelbutton*/
|
|
4489
|
-
x[2] ? E ? E.p(x, P) : (E =
|
|
4511
|
+
x[2] ? E ? E.p(x, P) : (E = At(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4490
4512
|
16) && f !== (f = /*$_*/
|
|
4491
4513
|
x[4]("confirm") + "") && be(m, f);
|
|
4492
4514
|
},
|
|
4493
4515
|
i(x) {
|
|
4494
|
-
d || (
|
|
4516
|
+
d || (Mt(T, x), d = !0);
|
|
4495
4517
|
},
|
|
4496
4518
|
o(x) {
|
|
4497
|
-
|
|
4519
|
+
Nr(T, x), d = !1;
|
|
4498
4520
|
},
|
|
4499
4521
|
d(x) {
|
|
4500
4522
|
x && q(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, J(w);
|
|
4501
4523
|
}
|
|
4502
4524
|
};
|
|
4503
4525
|
}
|
|
4504
|
-
function
|
|
4526
|
+
function Ki(e, t, r) {
|
|
4505
4527
|
let n;
|
|
4506
|
-
|
|
4507
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C =
|
|
4528
|
+
gr(e, ki, (g) => r(4, n = g));
|
|
4529
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C = Vi(I) !== "PC";
|
|
4508
4530
|
const T = () => {
|
|
4509
4531
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4510
4532
|
}, _ = (g) => {
|
|
4511
4533
|
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4512
4534
|
}, E = () => {
|
|
4513
4535
|
fetch(d).then((U) => U.json()).then((U) => {
|
|
4514
|
-
Object.keys(U).forEach((
|
|
4515
|
-
|
|
4536
|
+
Object.keys(U).forEach((et) => {
|
|
4537
|
+
wt(et, U[et]);
|
|
4516
4538
|
});
|
|
4517
4539
|
}).catch((U) => {
|
|
4518
4540
|
console.log(U);
|
|
4519
4541
|
});
|
|
4520
4542
|
};
|
|
4521
|
-
Object.keys(
|
|
4522
|
-
|
|
4543
|
+
Object.keys(Tt).forEach((g) => {
|
|
4544
|
+
wt(g, Tt[g]);
|
|
4523
4545
|
});
|
|
4524
4546
|
const x = () => {
|
|
4525
|
-
|
|
4547
|
+
Zi(c);
|
|
4526
4548
|
};
|
|
4527
|
-
|
|
4549
|
+
Ar(() => () => {
|
|
4528
4550
|
});
|
|
4529
|
-
const P = () => _("cancel"),
|
|
4530
|
-
function
|
|
4531
|
-
|
|
4551
|
+
const P = () => _("cancel"), mr = () => _("confirm");
|
|
4552
|
+
function dr(g) {
|
|
4553
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4532
4554
|
w = g, r(3, w);
|
|
4533
4555
|
});
|
|
4534
4556
|
}
|
|
@@ -4537,9 +4559,9 @@ function Ji(e, t, r) {
|
|
|
4537
4559
|
}, e.$$.update = () => {
|
|
4538
4560
|
e.$$.dirty & /*modaltext, lang*/
|
|
4539
4561
|
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4540
|
-
2056 && f && w &&
|
|
4541
|
-
4104 && m && w &&
|
|
4542
|
-
16392 && p && w &&
|
|
4562
|
+
2056 && f && w && Xi(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4563
|
+
4104 && m && w && zi(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4564
|
+
16392 && p && w && Wi(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4543
4565
|
8192 && d && E();
|
|
4544
4566
|
}, [
|
|
4545
4567
|
s,
|
|
@@ -4560,18 +4582,18 @@ function Ji(e, t, r) {
|
|
|
4560
4582
|
o,
|
|
4561
4583
|
i,
|
|
4562
4584
|
P,
|
|
4563
|
-
|
|
4564
|
-
|
|
4585
|
+
mr,
|
|
4586
|
+
dr
|
|
4565
4587
|
];
|
|
4566
4588
|
}
|
|
4567
|
-
class
|
|
4589
|
+
class fr extends Dr {
|
|
4568
4590
|
constructor(t) {
|
|
4569
|
-
super(),
|
|
4591
|
+
super(), Gr(
|
|
4570
4592
|
this,
|
|
4571
4593
|
t,
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4594
|
+
Ki,
|
|
4595
|
+
Yi,
|
|
4596
|
+
Pt,
|
|
4575
4597
|
{
|
|
4576
4598
|
modaltext: 0,
|
|
4577
4599
|
modaltitle: 1,
|
|
@@ -4584,7 +4606,7 @@ class ur extends Rr {
|
|
|
4584
4606
|
translationurl: 13,
|
|
4585
4607
|
mbsource: 14
|
|
4586
4608
|
},
|
|
4587
|
-
|
|
4609
|
+
Qi
|
|
4588
4610
|
);
|
|
4589
4611
|
}
|
|
4590
4612
|
get modaltext() {
|
|
@@ -4648,50 +4670,50 @@ class ur extends Rr {
|
|
|
4648
4670
|
this.$$set({ mbsource: t }), O();
|
|
4649
4671
|
}
|
|
4650
4672
|
}
|
|
4651
|
-
|
|
4652
|
-
const
|
|
4673
|
+
Ur(fr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4674
|
+
const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4653
4675
|
__proto__: null,
|
|
4654
|
-
default:
|
|
4676
|
+
default: fr
|
|
4655
4677
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4656
4678
|
export {
|
|
4657
4679
|
K as $,
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4680
|
+
B as A,
|
|
4681
|
+
oo as B,
|
|
4682
|
+
Ie as C,
|
|
4683
|
+
be as D,
|
|
4684
|
+
eo as E,
|
|
4685
|
+
J as F,
|
|
4686
|
+
ro as G,
|
|
4687
|
+
io as H,
|
|
4688
|
+
rt as I,
|
|
4689
|
+
no as J,
|
|
4690
|
+
ki as K,
|
|
4691
|
+
lo as P,
|
|
4692
|
+
Dr as S,
|
|
4693
|
+
ar as a,
|
|
4694
|
+
Ur as b,
|
|
4695
|
+
uo as c,
|
|
4696
|
+
Er as d,
|
|
4697
|
+
M as e,
|
|
4676
4698
|
O as f,
|
|
4677
|
-
|
|
4699
|
+
jr as g,
|
|
4678
4700
|
se as h,
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4701
|
+
Gr as i,
|
|
4702
|
+
q as j,
|
|
4703
|
+
gr as k,
|
|
4704
|
+
Vi as l,
|
|
4705
|
+
zi as m,
|
|
4684
4706
|
N as n,
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4707
|
+
Ar as o,
|
|
4708
|
+
Wi as p,
|
|
4709
|
+
so as q,
|
|
4710
|
+
Me as r,
|
|
4711
|
+
Pt as s,
|
|
4712
|
+
Xi as t,
|
|
4713
|
+
ao as u,
|
|
4714
|
+
ue as v,
|
|
4715
|
+
X as w,
|
|
4716
|
+
to as x,
|
|
4717
|
+
H as y,
|
|
4718
|
+
Le as z
|
|
4697
4719
|
};
|