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