@everymatrix/player-account-timeout 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountGeneralConfirmationModal-BFNeYxW-.cjs +5 -0
- package/components/{PlayerAccountGeneralConfirmationModal-ChB7aHS1.js → PlayerAccountGeneralConfirmationModal-BMfVGVNy.js} +884 -873
- package/components/{PlayerAccountGeneralConfirmationModal-0bB89rMF.js → PlayerAccountGeneralConfirmationModal-CHHl3cC2.js} +894 -883
- package/components/{PlayerAccountTimeout-kakTUp8_.js → PlayerAccountTimeout-CWUvNaQm.js} +10576 -10800
- package/components/PlayerAccountTimeout-DZUYC3Pl.cjs +3557 -0
- package/components/{PlayerAccountTimeout-DdqP9yaE.js → PlayerAccountTimeout-XQj4Cdw_.js} +10565 -10835
- 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/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-db5752f9--Bvt52z2.js +610 -0
- package/stencil/index-db5752f9-CAzJb5N3.js +594 -0
- package/stencil/index-db5752f9-CEbtfUsZ.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-BH4FIF5y.js +122 -0
- package/stencil/ui-skeleton-982450d2-BYrWGs9b.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-DGJAETMx.js +122 -0
- package/stencil/ui-skeleton-DlfwJJb1.js +29 -0
- package/stencil/ui-skeleton-DtnYQAt6.cjs +1 -0
- package/stencil/ui-skeleton-rqI1NmdA.js +11 -0
- package/components/PlayerAccountGeneralConfirmationModal-DMLHphU8.cjs +0 -5
- package/components/PlayerAccountTimeout-4d7gE7Sk.cjs +0 -4171
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function cr(e, t) {
|
|
4
4
|
for (const r in t) e[r] = t[r];
|
|
5
5
|
return (
|
|
6
6
|
/** @type {T & S} */
|
|
7
7
|
e
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ht(e) {
|
|
11
11
|
return e();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ye() {
|
|
14
14
|
return /* @__PURE__ */ Object.create(null);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
e.forEach(
|
|
16
|
+
function J(e) {
|
|
17
|
+
e.forEach(Ht);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Ze(e) {
|
|
20
20
|
return typeof e == "function";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Bt(e, t) {
|
|
23
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function fr(e) {
|
|
26
26
|
return Object.keys(e).length === 0;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function At(e, ...t) {
|
|
29
29
|
if (e == null) {
|
|
30
30
|
for (const n of t)
|
|
31
31
|
n(void 0);
|
|
@@ -34,19 +34,19 @@ function Ot(e, ...t) {
|
|
|
34
34
|
const r = e.subscribe(...t);
|
|
35
35
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
e.$$.on_destroy.push(
|
|
37
|
+
function mr(e, t, r) {
|
|
38
|
+
e.$$.on_destroy.push(At(t, r));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function dr(e, t, r, n) {
|
|
41
41
|
if (e) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = Ct(e, t, r, n);
|
|
43
43
|
return e[0](i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return e[1] && n ?
|
|
46
|
+
function Ct(e, t, r, n) {
|
|
47
|
+
return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function pr(e, t, r, n) {
|
|
50
50
|
if (e[2] && n) {
|
|
51
51
|
const i = e[2](n(r));
|
|
52
52
|
if (t.dirty === void 0)
|
|
@@ -61,13 +61,13 @@ function xr(e, t, r, n) {
|
|
|
61
61
|
}
|
|
62
62
|
return t.dirty;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function br(e, t, r, n, i, o) {
|
|
65
65
|
if (i) {
|
|
66
|
-
const s =
|
|
66
|
+
const s = Ct(t, r, n, o);
|
|
67
67
|
e.p(s, i);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function gr(e) {
|
|
71
71
|
if (e.ctx.length > 32) {
|
|
72
72
|
const t = [], r = e.ctx.length / 32;
|
|
73
73
|
for (let n = 0; n < r; n++)
|
|
@@ -76,17 +76,17 @@ function Er(e) {
|
|
|
76
76
|
}
|
|
77
77
|
return -1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function B(e, t) {
|
|
80
80
|
e.appendChild(t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
82
|
+
function vr(e, t, r) {
|
|
83
|
+
const n = yr(e);
|
|
84
84
|
if (!n.getElementById(t)) {
|
|
85
85
|
const i = M("style");
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function yr(e) {
|
|
90
90
|
if (!e) return document;
|
|
91
91
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
92
|
return t && /** @type {ShadowRoot} */
|
|
@@ -95,56 +95,62 @@ function wr(e) {
|
|
|
95
95
|
t
|
|
96
96
|
) : e.ownerDocument;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function xr(e, t) {
|
|
99
|
+
return B(
|
|
100
100
|
/** @type {Document} */
|
|
101
101
|
e.head || e,
|
|
102
102
|
t
|
|
103
103
|
), t.sheet;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function se(e, t, r) {
|
|
106
106
|
e.insertBefore(t, r || null);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function q(e) {
|
|
109
109
|
e.parentNode && e.parentNode.removeChild(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function qi(e, t) {
|
|
112
112
|
for (let r = 0; r < e.length; r += 1)
|
|
113
113
|
e[r] && e[r].d(t);
|
|
114
114
|
}
|
|
115
115
|
function M(e) {
|
|
116
116
|
return document.createElement(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ke(e) {
|
|
119
119
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function X(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function ue() {
|
|
125
|
+
return X(" ");
|
|
126
|
+
}
|
|
127
|
+
function Yi() {
|
|
128
|
+
return X("");
|
|
126
129
|
}
|
|
127
|
-
function
|
|
130
|
+
function Oe(e, t, r, n) {
|
|
128
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
129
132
|
}
|
|
130
|
-
function
|
|
133
|
+
function H(e, t, r) {
|
|
131
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
132
135
|
}
|
|
133
|
-
function
|
|
136
|
+
function Ki(e, t, r) {
|
|
134
137
|
const n = t.toLowerCase();
|
|
135
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
138
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
136
139
|
}
|
|
137
|
-
function
|
|
140
|
+
function _r(e) {
|
|
138
141
|
return Array.from(e.childNodes);
|
|
139
142
|
}
|
|
140
|
-
function
|
|
143
|
+
function be(e, t) {
|
|
141
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
142
145
|
t);
|
|
143
146
|
}
|
|
144
|
-
function
|
|
147
|
+
function eo(e, t) {
|
|
145
148
|
e.value = t ?? "";
|
|
146
149
|
}
|
|
147
|
-
function
|
|
150
|
+
function to(e, t, r, n) {
|
|
151
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
152
|
+
}
|
|
153
|
+
function ro(e, t, r) {
|
|
148
154
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
149
155
|
const i = e.options[n];
|
|
150
156
|
if (i.__value === t) {
|
|
@@ -154,11 +160,11 @@ function eo(e, t, r) {
|
|
|
154
160
|
}
|
|
155
161
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
156
162
|
}
|
|
157
|
-
function
|
|
163
|
+
function no(e) {
|
|
158
164
|
const t = e.querySelector(":checked");
|
|
159
165
|
return t && t.__value;
|
|
160
166
|
}
|
|
161
|
-
function
|
|
167
|
+
function Er(e) {
|
|
162
168
|
const t = {};
|
|
163
169
|
return e.childNodes.forEach(
|
|
164
170
|
/** @param {Element} node */
|
|
@@ -167,96 +173,96 @@ function Br(e) {
|
|
|
167
173
|
}
|
|
168
174
|
), t;
|
|
169
175
|
}
|
|
170
|
-
let
|
|
176
|
+
let ne;
|
|
171
177
|
function re(e) {
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
function Ar() {
|
|
175
|
-
if (!ie) throw new Error("Function called outside component initialization");
|
|
176
|
-
return ie;
|
|
178
|
+
ne = e;
|
|
177
179
|
}
|
|
178
|
-
function
|
|
179
|
-
|
|
180
|
+
function Sr() {
|
|
181
|
+
if (!ne) throw new Error("Function called outside component initialization");
|
|
182
|
+
return ne;
|
|
180
183
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
184
|
+
function wr(e) {
|
|
185
|
+
Sr().$$.on_mount.push(e);
|
|
186
|
+
}
|
|
187
|
+
const j = [], Ie = [];
|
|
188
|
+
let k = [];
|
|
189
|
+
const et = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
190
|
+
let Me = !1;
|
|
191
|
+
function Hr() {
|
|
192
|
+
Me || (Me = !0, Tr.then(O));
|
|
193
|
+
}
|
|
194
|
+
function Ne(e) {
|
|
195
|
+
k.push(e);
|
|
196
|
+
}
|
|
197
|
+
const we = /* @__PURE__ */ new Set();
|
|
198
|
+
let D = 0;
|
|
199
|
+
function O() {
|
|
200
|
+
if (D !== 0)
|
|
195
201
|
return;
|
|
196
|
-
const e =
|
|
202
|
+
const e = ne;
|
|
197
203
|
do {
|
|
198
204
|
try {
|
|
199
|
-
for (;
|
|
200
|
-
const t =
|
|
201
|
-
|
|
205
|
+
for (; D < j.length; ) {
|
|
206
|
+
const t = j[D];
|
|
207
|
+
D++, re(t), Br(t.$$);
|
|
202
208
|
}
|
|
203
209
|
} catch (t) {
|
|
204
|
-
throw
|
|
210
|
+
throw j.length = 0, D = 0, t;
|
|
205
211
|
}
|
|
206
|
-
for (re(null),
|
|
207
|
-
for (let t = 0; t <
|
|
208
|
-
const r =
|
|
209
|
-
|
|
212
|
+
for (re(null), j.length = 0, D = 0; Ie.length; ) Ie.pop()();
|
|
213
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
214
|
+
const r = k[t];
|
|
215
|
+
we.has(r) || (we.add(r), r());
|
|
210
216
|
}
|
|
211
|
-
|
|
212
|
-
} while (
|
|
213
|
-
for (;
|
|
214
|
-
|
|
215
|
-
|
|
217
|
+
k.length = 0;
|
|
218
|
+
} while (j.length);
|
|
219
|
+
for (; et.length; )
|
|
220
|
+
et.pop()();
|
|
221
|
+
Me = !1, we.clear(), re(e);
|
|
216
222
|
}
|
|
217
|
-
function
|
|
223
|
+
function Br(e) {
|
|
218
224
|
if (e.fragment !== null) {
|
|
219
|
-
e.update(),
|
|
225
|
+
e.update(), J(e.before_update);
|
|
220
226
|
const t = e.dirty;
|
|
221
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
227
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
222
228
|
}
|
|
223
229
|
}
|
|
224
|
-
function
|
|
230
|
+
function Ar(e) {
|
|
225
231
|
const t = [], r = [];
|
|
226
|
-
|
|
232
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
227
233
|
}
|
|
228
|
-
const
|
|
229
|
-
let
|
|
230
|
-
function
|
|
231
|
-
e && e.i && (
|
|
234
|
+
const ce = /* @__PURE__ */ new Set();
|
|
235
|
+
let Cr;
|
|
236
|
+
function Pt(e, t) {
|
|
237
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
232
238
|
}
|
|
233
|
-
function
|
|
239
|
+
function Pr(e, t, r, n) {
|
|
234
240
|
if (e && e.o) {
|
|
235
|
-
if (
|
|
236
|
-
|
|
237
|
-
|
|
241
|
+
if (ce.has(e)) return;
|
|
242
|
+
ce.add(e), Cr.c.push(() => {
|
|
243
|
+
ce.delete(e);
|
|
238
244
|
}), e.o(t);
|
|
239
245
|
}
|
|
240
246
|
}
|
|
241
|
-
function
|
|
247
|
+
function io(e) {
|
|
242
248
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
243
249
|
}
|
|
244
|
-
function
|
|
250
|
+
function Or(e, t, r) {
|
|
245
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
246
|
-
n && n.m(t, r),
|
|
247
|
-
const o = e.$$.on_mount.map(
|
|
248
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
249
|
-
}), i.forEach(
|
|
252
|
+
n && n.m(t, r), Ne(() => {
|
|
253
|
+
const o = e.$$.on_mount.map(Ht).filter(Ze);
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
255
|
+
}), i.forEach(Ne);
|
|
250
256
|
}
|
|
251
|
-
function
|
|
257
|
+
function Ir(e, t) {
|
|
252
258
|
const r = e.$$;
|
|
253
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (Ar(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
254
260
|
}
|
|
255
|
-
function
|
|
256
|
-
e.$$.dirty[0] === -1 && (
|
|
261
|
+
function Mr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (j.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
257
263
|
}
|
|
258
|
-
function
|
|
259
|
-
const l =
|
|
264
|
+
function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
265
|
+
const l = ne;
|
|
260
266
|
re(e);
|
|
261
267
|
const u = e.$$ = {
|
|
262
268
|
fragment: null,
|
|
@@ -265,7 +271,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
265
271
|
props: o,
|
|
266
272
|
update: N,
|
|
267
273
|
not_equal: i,
|
|
268
|
-
bound:
|
|
274
|
+
bound: Ye(),
|
|
269
275
|
// lifecycle
|
|
270
276
|
on_mount: [],
|
|
271
277
|
on_destroy: [],
|
|
@@ -274,7 +280,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
274
280
|
after_update: [],
|
|
275
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
276
282
|
// everything else
|
|
277
|
-
callbacks:
|
|
283
|
+
callbacks: Ye(),
|
|
278
284
|
dirty: a,
|
|
279
285
|
skip_bound: !1,
|
|
280
286
|
root: t.target || l.$$.root
|
|
@@ -282,20 +288,20 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
282
288
|
s && s(u.root);
|
|
283
289
|
let h = !1;
|
|
284
290
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
285
|
-
const
|
|
286
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
287
|
-
}) : [], u.update(), h = !0,
|
|
291
|
+
const d = m.length ? m[0] : f;
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Mr(e, c)), f;
|
|
293
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
288
294
|
if (t.hydrate) {
|
|
289
|
-
const c =
|
|
290
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
295
|
+
const c = _r(t.target);
|
|
296
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
291
297
|
} else
|
|
292
298
|
u.fragment && u.fragment.c();
|
|
293
|
-
t.intro &&
|
|
299
|
+
t.intro && Pt(e.$$.fragment), Or(e, t.target, t.anchor), O();
|
|
294
300
|
}
|
|
295
301
|
re(l);
|
|
296
302
|
}
|
|
297
|
-
let
|
|
298
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Ot;
|
|
304
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
299
305
|
/** The Svelte component constructor */
|
|
300
306
|
$$ctor;
|
|
301
307
|
/** Slots */
|
|
@@ -337,29 +343,29 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
337
343
|
let o;
|
|
338
344
|
return {
|
|
339
345
|
c: function() {
|
|
340
|
-
o = M("slot"), i !== "default" &&
|
|
346
|
+
o = M("slot"), i !== "default" && H(o, "name", i);
|
|
341
347
|
},
|
|
342
348
|
/**
|
|
343
349
|
* @param {HTMLElement} target
|
|
344
350
|
* @param {HTMLElement} [anchor]
|
|
345
351
|
*/
|
|
346
352
|
m: function(l, u) {
|
|
347
|
-
|
|
353
|
+
se(l, o, u);
|
|
348
354
|
},
|
|
349
355
|
d: function(l) {
|
|
350
|
-
l &&
|
|
356
|
+
l && q(o);
|
|
351
357
|
}
|
|
352
358
|
};
|
|
353
359
|
};
|
|
354
360
|
};
|
|
355
361
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
356
362
|
return;
|
|
357
|
-
const t = {}, r =
|
|
363
|
+
const t = {}, r = Er(this);
|
|
358
364
|
for (const i of this.$$s)
|
|
359
365
|
i in r && (t[i] = [e(i)]);
|
|
360
366
|
for (const i of this.attributes) {
|
|
361
367
|
const o = this.$$g_p(i.name);
|
|
362
|
-
o in this.$$d || (this.$$d[o] =
|
|
368
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
363
369
|
}
|
|
364
370
|
for (const i in this.$$p_d)
|
|
365
371
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -377,7 +383,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
377
383
|
this.$$r = !0;
|
|
378
384
|
for (const i in this.$$p_d)
|
|
379
385
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
380
|
-
const o =
|
|
386
|
+
const o = fe(
|
|
381
387
|
i,
|
|
382
388
|
this.$$d[i],
|
|
383
389
|
this.$$p_d,
|
|
@@ -399,7 +405,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
399
405
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
400
406
|
// and setting attributes through setAttribute etc, this is helpful
|
|
401
407
|
attributeChangedCallback(e, t, r) {
|
|
402
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
408
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
403
409
|
}
|
|
404
410
|
disconnectedCallback() {
|
|
405
411
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -412,7 +418,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
412
418
|
) || e;
|
|
413
419
|
}
|
|
414
420
|
});
|
|
415
|
-
function
|
|
421
|
+
function fe(e, t, r, n) {
|
|
416
422
|
const i = r[e]?.type;
|
|
417
423
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
418
424
|
return t;
|
|
@@ -441,8 +447,8 @@ function me(e, t, r, n) {
|
|
|
441
447
|
return t;
|
|
442
448
|
}
|
|
443
449
|
}
|
|
444
|
-
function
|
|
445
|
-
let s = class extends
|
|
450
|
+
function Lr(e, t, r, n, i, o) {
|
|
451
|
+
let s = class extends Ot {
|
|
446
452
|
constructor() {
|
|
447
453
|
super(e, r, i), this.$$p_d = t;
|
|
448
454
|
}
|
|
@@ -458,7 +464,7 @@ function Ur(e, t, r, n, i, o) {
|
|
|
458
464
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
459
465
|
},
|
|
460
466
|
set(l) {
|
|
461
|
-
l =
|
|
467
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
462
468
|
}
|
|
463
469
|
});
|
|
464
470
|
}), n.forEach((a) => {
|
|
@@ -470,7 +476,7 @@ function Ur(e, t, r, n, i, o) {
|
|
|
470
476
|
}), e.element = /** @type {any} */
|
|
471
477
|
s, s;
|
|
472
478
|
}
|
|
473
|
-
class
|
|
479
|
+
class Rr {
|
|
474
480
|
/**
|
|
475
481
|
* ### PRIVATE API
|
|
476
482
|
*
|
|
@@ -489,7 +495,7 @@ class Dr {
|
|
|
489
495
|
$$set = void 0;
|
|
490
496
|
/** @returns {void} */
|
|
491
497
|
$destroy() {
|
|
492
|
-
|
|
498
|
+
Ir(this, 1), this.$destroy = N;
|
|
493
499
|
}
|
|
494
500
|
/**
|
|
495
501
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -498,7 +504,7 @@ class Dr {
|
|
|
498
504
|
* @returns {() => void}
|
|
499
505
|
*/
|
|
500
506
|
$on(t, r) {
|
|
501
|
-
if (!
|
|
507
|
+
if (!Ze(r))
|
|
502
508
|
return N;
|
|
503
509
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
504
510
|
return n.push(r), () => {
|
|
@@ -511,26 +517,26 @@ class Dr {
|
|
|
511
517
|
* @returns {void}
|
|
512
518
|
*/
|
|
513
519
|
$set(t) {
|
|
514
|
-
this.$$set && !
|
|
520
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
515
521
|
}
|
|
516
522
|
}
|
|
517
|
-
const
|
|
518
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
519
|
-
var
|
|
520
|
-
function
|
|
523
|
+
const $r = "4";
|
|
524
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
|
|
525
|
+
var oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
526
|
+
function Gr(e) {
|
|
521
527
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
522
528
|
}
|
|
523
|
-
var
|
|
524
|
-
return
|
|
529
|
+
var Le = function(e, t) {
|
|
530
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
525
531
|
r.__proto__ = n;
|
|
526
532
|
} || function(r, n) {
|
|
527
533
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
528
|
-
},
|
|
534
|
+
}, Le(e, t);
|
|
529
535
|
};
|
|
530
|
-
function
|
|
536
|
+
function R(e, t) {
|
|
531
537
|
if (typeof t != "function" && t !== null)
|
|
532
538
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
533
|
-
|
|
539
|
+
Le(e, t);
|
|
534
540
|
function r() {
|
|
535
541
|
this.constructor = e;
|
|
536
542
|
}
|
|
@@ -545,7 +551,7 @@ var y = function() {
|
|
|
545
551
|
return t;
|
|
546
552
|
}, y.apply(this, arguments);
|
|
547
553
|
};
|
|
548
|
-
function
|
|
554
|
+
function Ur(e, t) {
|
|
549
555
|
var r = {};
|
|
550
556
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
551
557
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -553,7 +559,7 @@ function kr(e, t) {
|
|
|
553
559
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
554
560
|
return r;
|
|
555
561
|
}
|
|
556
|
-
function
|
|
562
|
+
function Re(e) {
|
|
557
563
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
558
564
|
if (r) return r.call(e);
|
|
559
565
|
if (e && typeof e.length == "number") return {
|
|
@@ -563,7 +569,7 @@ function Ge(e) {
|
|
|
563
569
|
};
|
|
564
570
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
565
571
|
}
|
|
566
|
-
function
|
|
572
|
+
function $e(e, t) {
|
|
567
573
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
568
574
|
if (!r) return e;
|
|
569
575
|
var n = r.call(e), i, o = [], s;
|
|
@@ -580,21 +586,21 @@ function Ue(e, t) {
|
|
|
580
586
|
}
|
|
581
587
|
return o;
|
|
582
588
|
}
|
|
583
|
-
function
|
|
589
|
+
function V(e, t, r) {
|
|
584
590
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
585
591
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
586
592
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
587
593
|
}
|
|
588
|
-
function
|
|
594
|
+
function L(e) {
|
|
589
595
|
return typeof e == "function";
|
|
590
596
|
}
|
|
591
|
-
function
|
|
597
|
+
function It(e) {
|
|
592
598
|
var t = function(n) {
|
|
593
599
|
Error.call(n), n.stack = new Error().stack;
|
|
594
600
|
}, r = e(t);
|
|
595
601
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
596
602
|
}
|
|
597
|
-
var
|
|
603
|
+
var Te = It(function(e) {
|
|
598
604
|
return function(r) {
|
|
599
605
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
600
606
|
` + r.map(function(n, i) {
|
|
@@ -603,13 +609,13 @@ var He = Lt(function(e) {
|
|
|
603
609
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
604
610
|
};
|
|
605
611
|
});
|
|
606
|
-
function
|
|
612
|
+
function Ge(e, t) {
|
|
607
613
|
if (e) {
|
|
608
614
|
var r = e.indexOf(t);
|
|
609
615
|
0 <= r && e.splice(r, 1);
|
|
610
616
|
}
|
|
611
617
|
}
|
|
612
|
-
var
|
|
618
|
+
var ye = function() {
|
|
613
619
|
function e(t) {
|
|
614
620
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
615
621
|
}
|
|
@@ -621,12 +627,12 @@ var xe = function() {
|
|
|
621
627
|
if (s)
|
|
622
628
|
if (this._parentage = null, Array.isArray(s))
|
|
623
629
|
try {
|
|
624
|
-
for (var a =
|
|
630
|
+
for (var a = Re(s), l = a.next(); !l.done; l = a.next()) {
|
|
625
631
|
var u = l.value;
|
|
626
632
|
u.remove(this);
|
|
627
633
|
}
|
|
628
|
-
} catch (
|
|
629
|
-
t = { error:
|
|
634
|
+
} catch (p) {
|
|
635
|
+
t = { error: p };
|
|
630
636
|
} finally {
|
|
631
637
|
try {
|
|
632
638
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -637,26 +643,26 @@ var xe = function() {
|
|
|
637
643
|
else
|
|
638
644
|
s.remove(this);
|
|
639
645
|
var h = this.initialTeardown;
|
|
640
|
-
if (
|
|
646
|
+
if (L(h))
|
|
641
647
|
try {
|
|
642
648
|
h();
|
|
643
|
-
} catch (
|
|
644
|
-
o =
|
|
649
|
+
} catch (p) {
|
|
650
|
+
o = p instanceof Te ? p.errors : [p];
|
|
645
651
|
}
|
|
646
652
|
var c = this._finalizers;
|
|
647
653
|
if (c) {
|
|
648
654
|
this._finalizers = null;
|
|
649
655
|
try {
|
|
650
|
-
for (var f =
|
|
651
|
-
var
|
|
656
|
+
for (var f = Re(c), m = f.next(); !m.done; m = f.next()) {
|
|
657
|
+
var d = m.value;
|
|
652
658
|
try {
|
|
653
|
-
|
|
654
|
-
} catch (
|
|
655
|
-
o = o ?? [],
|
|
659
|
+
tt(d);
|
|
660
|
+
} catch (p) {
|
|
661
|
+
o = o ?? [], p instanceof Te ? o = V(V([], $e(o)), $e(p.errors)) : o.push(p);
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
|
-
} catch (
|
|
659
|
-
n = { error:
|
|
664
|
+
} catch (p) {
|
|
665
|
+
n = { error: p };
|
|
660
666
|
} finally {
|
|
661
667
|
try {
|
|
662
668
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -666,13 +672,13 @@ var xe = function() {
|
|
|
666
672
|
}
|
|
667
673
|
}
|
|
668
674
|
if (o)
|
|
669
|
-
throw new
|
|
675
|
+
throw new Te(o);
|
|
670
676
|
}
|
|
671
677
|
}, e.prototype.add = function(t) {
|
|
672
678
|
var r;
|
|
673
679
|
if (t && t !== this)
|
|
674
680
|
if (this.closed)
|
|
675
|
-
|
|
681
|
+
tt(t);
|
|
676
682
|
else {
|
|
677
683
|
if (t instanceof e) {
|
|
678
684
|
if (t.closed || t._hasParent(this))
|
|
@@ -689,56 +695,52 @@ var xe = function() {
|
|
|
689
695
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
690
696
|
}, e.prototype._removeParent = function(t) {
|
|
691
697
|
var r = this._parentage;
|
|
692
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
698
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
693
699
|
}, e.prototype.remove = function(t) {
|
|
694
700
|
var r = this._finalizers;
|
|
695
|
-
r &&
|
|
701
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
696
702
|
}, e.EMPTY = function() {
|
|
697
703
|
var t = new e();
|
|
698
704
|
return t.closed = !0, t;
|
|
699
705
|
}(), e;
|
|
700
|
-
}(),
|
|
701
|
-
function
|
|
702
|
-
return e instanceof
|
|
706
|
+
}(), Mt = ye.EMPTY;
|
|
707
|
+
function Nt(e) {
|
|
708
|
+
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
703
709
|
}
|
|
704
|
-
function
|
|
705
|
-
|
|
706
|
-
}
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
Promise: void 0,
|
|
711
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
712
|
-
useDeprecatedNextContext: !1
|
|
713
|
-
}, Vr = {
|
|
710
|
+
function tt(e) {
|
|
711
|
+
L(e) ? e() : e.unsubscribe();
|
|
712
|
+
}
|
|
713
|
+
var Dr = {
|
|
714
|
+
Promise: void 0
|
|
715
|
+
}, Fr = {
|
|
714
716
|
setTimeout: function(e, t) {
|
|
715
717
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
716
718
|
r[n - 2] = arguments[n];
|
|
717
|
-
return setTimeout.apply(void 0,
|
|
719
|
+
return setTimeout.apply(void 0, V([e, t], $e(r)));
|
|
718
720
|
},
|
|
719
721
|
clearTimeout: function(e) {
|
|
720
722
|
return clearTimeout(e);
|
|
721
723
|
},
|
|
722
724
|
delegate: void 0
|
|
723
725
|
};
|
|
724
|
-
function
|
|
725
|
-
|
|
726
|
+
function jr(e) {
|
|
727
|
+
Fr.setTimeout(function() {
|
|
726
728
|
throw e;
|
|
727
729
|
});
|
|
728
730
|
}
|
|
729
|
-
function
|
|
731
|
+
function rt() {
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function me(e) {
|
|
732
734
|
e();
|
|
733
735
|
}
|
|
734
|
-
var
|
|
735
|
-
|
|
736
|
+
var Lt = function(e) {
|
|
737
|
+
R(t, e);
|
|
736
738
|
function t(r) {
|
|
737
739
|
var n = e.call(this) || this;
|
|
738
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
740
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Xr, n;
|
|
739
741
|
}
|
|
740
742
|
return t.create = function(r, n, i) {
|
|
741
|
-
return new
|
|
743
|
+
return new Ue(r, n, i);
|
|
742
744
|
}, t.prototype.next = function(r) {
|
|
743
745
|
this.isStopped || this._next(r);
|
|
744
746
|
}, t.prototype.error = function(r) {
|
|
@@ -762,11 +764,7 @@ var Ut = function(e) {
|
|
|
762
764
|
this.unsubscribe();
|
|
763
765
|
}
|
|
764
766
|
}, t;
|
|
765
|
-
}(
|
|
766
|
-
function Be(e, t) {
|
|
767
|
-
return zr.call(e, t);
|
|
768
|
-
}
|
|
769
|
-
var Wr = function() {
|
|
767
|
+
}(ye), kr = function() {
|
|
770
768
|
function e(t) {
|
|
771
769
|
this.partialObserver = t;
|
|
772
770
|
}
|
|
@@ -776,7 +774,7 @@ var Wr = function() {
|
|
|
776
774
|
try {
|
|
777
775
|
r.next(t);
|
|
778
776
|
} catch (n) {
|
|
779
|
-
|
|
777
|
+
le(n);
|
|
780
778
|
}
|
|
781
779
|
}, e.prototype.error = function(t) {
|
|
782
780
|
var r = this.partialObserver;
|
|
@@ -784,68 +782,56 @@ var Wr = function() {
|
|
|
784
782
|
try {
|
|
785
783
|
r.error(t);
|
|
786
784
|
} catch (n) {
|
|
787
|
-
|
|
785
|
+
le(n);
|
|
788
786
|
}
|
|
789
787
|
else
|
|
790
|
-
|
|
788
|
+
le(t);
|
|
791
789
|
}, e.prototype.complete = function() {
|
|
792
790
|
var t = this.partialObserver;
|
|
793
791
|
if (t.complete)
|
|
794
792
|
try {
|
|
795
793
|
t.complete();
|
|
796
794
|
} catch (r) {
|
|
797
|
-
|
|
795
|
+
le(r);
|
|
798
796
|
}
|
|
799
797
|
}, e;
|
|
800
|
-
}(),
|
|
801
|
-
|
|
798
|
+
}(), Ue = function(e) {
|
|
799
|
+
R(t, e);
|
|
802
800
|
function t(r, n, i) {
|
|
803
801
|
var o = e.call(this) || this, s;
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
};
|
|
810
|
-
else {
|
|
811
|
-
var a;
|
|
812
|
-
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
813
|
-
return o.unsubscribe();
|
|
814
|
-
}, s = {
|
|
815
|
-
next: r.next && Be(r.next, a),
|
|
816
|
-
error: r.error && Be(r.error, a),
|
|
817
|
-
complete: r.complete && Be(r.complete, a)
|
|
818
|
-
}) : s = r;
|
|
819
|
-
}
|
|
820
|
-
return o.destination = new Wr(s), o;
|
|
802
|
+
return L(r) || !r ? s = {
|
|
803
|
+
next: r ?? void 0,
|
|
804
|
+
error: n ?? void 0,
|
|
805
|
+
complete: i ?? void 0
|
|
806
|
+
} : s = r, o.destination = new kr(s), o;
|
|
821
807
|
}
|
|
822
808
|
return t;
|
|
823
|
-
}(
|
|
824
|
-
function
|
|
825
|
-
|
|
809
|
+
}(Lt);
|
|
810
|
+
function le(e) {
|
|
811
|
+
jr(e);
|
|
826
812
|
}
|
|
827
|
-
function
|
|
813
|
+
function Vr(e) {
|
|
828
814
|
throw e;
|
|
829
815
|
}
|
|
830
|
-
var
|
|
816
|
+
var Xr = {
|
|
831
817
|
closed: !0,
|
|
832
|
-
next:
|
|
833
|
-
error:
|
|
834
|
-
complete:
|
|
835
|
-
},
|
|
818
|
+
next: rt,
|
|
819
|
+
error: Vr,
|
|
820
|
+
complete: rt
|
|
821
|
+
}, zr = function() {
|
|
836
822
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
837
823
|
}();
|
|
838
|
-
function
|
|
824
|
+
function Wr(e) {
|
|
839
825
|
return e;
|
|
840
826
|
}
|
|
841
|
-
function
|
|
842
|
-
return e.length === 0 ?
|
|
827
|
+
function Zr(e) {
|
|
828
|
+
return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
|
|
843
829
|
return e.reduce(function(n, i) {
|
|
844
830
|
return i(n);
|
|
845
831
|
}, r);
|
|
846
832
|
};
|
|
847
833
|
}
|
|
848
|
-
var
|
|
834
|
+
var nt = function() {
|
|
849
835
|
function e(t) {
|
|
850
836
|
t && (this._subscribe = t);
|
|
851
837
|
}
|
|
@@ -853,8 +839,8 @@ var st = function() {
|
|
|
853
839
|
var r = new e();
|
|
854
840
|
return r.source = this, r.operator = t, r;
|
|
855
841
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
856
|
-
var i = this, o =
|
|
857
|
-
return
|
|
842
|
+
var i = this, o = Jr(t) ? t : new Ue(t, r, n);
|
|
843
|
+
return me(function() {
|
|
858
844
|
var s = i, a = s.operator, l = s.source;
|
|
859
845
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
860
846
|
}), o;
|
|
@@ -866,8 +852,8 @@ var st = function() {
|
|
|
866
852
|
}
|
|
867
853
|
}, e.prototype.forEach = function(t, r) {
|
|
868
854
|
var n = this;
|
|
869
|
-
return r =
|
|
870
|
-
var s = new
|
|
855
|
+
return r = it(r), new r(function(i, o) {
|
|
856
|
+
var s = new Ue({
|
|
871
857
|
next: function(a) {
|
|
872
858
|
try {
|
|
873
859
|
t(a);
|
|
@@ -883,15 +869,15 @@ var st = function() {
|
|
|
883
869
|
}, e.prototype._subscribe = function(t) {
|
|
884
870
|
var r;
|
|
885
871
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
886
|
-
}, e.prototype[
|
|
872
|
+
}, e.prototype[zr] = function() {
|
|
887
873
|
return this;
|
|
888
874
|
}, e.prototype.pipe = function() {
|
|
889
875
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
890
876
|
t[r] = arguments[r];
|
|
891
|
-
return
|
|
877
|
+
return Zr(t)(this);
|
|
892
878
|
}, e.prototype.toPromise = function(t) {
|
|
893
879
|
var r = this;
|
|
894
|
-
return t =
|
|
880
|
+
return t = it(t), new t(function(n, i) {
|
|
895
881
|
var o;
|
|
896
882
|
r.subscribe(function(s) {
|
|
897
883
|
return o = s;
|
|
@@ -905,40 +891,40 @@ var st = function() {
|
|
|
905
891
|
return new e(t);
|
|
906
892
|
}, e;
|
|
907
893
|
}();
|
|
908
|
-
function
|
|
894
|
+
function it(e) {
|
|
909
895
|
var t;
|
|
910
|
-
return (t = e ??
|
|
896
|
+
return (t = e ?? Dr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
911
897
|
}
|
|
912
|
-
function
|
|
913
|
-
return e &&
|
|
898
|
+
function Qr(e) {
|
|
899
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
914
900
|
}
|
|
915
|
-
function
|
|
916
|
-
return e && e instanceof
|
|
901
|
+
function Jr(e) {
|
|
902
|
+
return e && e instanceof Lt || Qr(e) && Nt(e);
|
|
917
903
|
}
|
|
918
|
-
var
|
|
904
|
+
var qr = It(function(e) {
|
|
919
905
|
return function() {
|
|
920
906
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
921
907
|
};
|
|
922
|
-
}),
|
|
923
|
-
|
|
908
|
+
}), Rt = function(e) {
|
|
909
|
+
R(t, e);
|
|
924
910
|
function t() {
|
|
925
911
|
var r = e.call(this) || this;
|
|
926
912
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
927
913
|
}
|
|
928
914
|
return t.prototype.lift = function(r) {
|
|
929
|
-
var n = new
|
|
915
|
+
var n = new ot(this, this);
|
|
930
916
|
return n.operator = r, n;
|
|
931
917
|
}, t.prototype._throwIfClosed = function() {
|
|
932
918
|
if (this.closed)
|
|
933
|
-
throw new
|
|
919
|
+
throw new qr();
|
|
934
920
|
}, t.prototype.next = function(r) {
|
|
935
921
|
var n = this;
|
|
936
|
-
|
|
922
|
+
me(function() {
|
|
937
923
|
var i, o;
|
|
938
924
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
939
925
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
940
926
|
try {
|
|
941
|
-
for (var s =
|
|
927
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
942
928
|
var l = a.value;
|
|
943
929
|
l.next(r);
|
|
944
930
|
}
|
|
@@ -955,7 +941,7 @@ var tn = Lt(function(e) {
|
|
|
955
941
|
});
|
|
956
942
|
}, t.prototype.error = function(r) {
|
|
957
943
|
var n = this;
|
|
958
|
-
|
|
944
|
+
me(function() {
|
|
959
945
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
960
946
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
961
947
|
for (var i = n.observers; i.length; )
|
|
@@ -964,7 +950,7 @@ var tn = Lt(function(e) {
|
|
|
964
950
|
});
|
|
965
951
|
}, t.prototype.complete = function() {
|
|
966
952
|
var r = this;
|
|
967
|
-
|
|
953
|
+
me(function() {
|
|
968
954
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
969
955
|
r.isStopped = !0;
|
|
970
956
|
for (var n = r.observers; n.length; )
|
|
@@ -986,20 +972,20 @@ var tn = Lt(function(e) {
|
|
|
986
972
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
987
973
|
}, t.prototype._innerSubscribe = function(r) {
|
|
988
974
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
989
|
-
return o || s ?
|
|
990
|
-
n.currentObservers = null,
|
|
975
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
976
|
+
n.currentObservers = null, Ge(a, r);
|
|
991
977
|
}));
|
|
992
978
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
993
979
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
994
980
|
i ? r.error(o) : s && r.complete();
|
|
995
981
|
}, t.prototype.asObservable = function() {
|
|
996
|
-
var r = new
|
|
982
|
+
var r = new nt();
|
|
997
983
|
return r.source = this, r;
|
|
998
984
|
}, t.create = function(r, n) {
|
|
999
|
-
return new
|
|
985
|
+
return new ot(r, n);
|
|
1000
986
|
}, t;
|
|
1001
|
-
}(
|
|
1002
|
-
|
|
987
|
+
}(nt), ot = function(e) {
|
|
988
|
+
R(t, e);
|
|
1003
989
|
function t(r, n) {
|
|
1004
990
|
var i = e.call(this) || this;
|
|
1005
991
|
return i.destination = r, i.source = n, i;
|
|
@@ -1015,17 +1001,17 @@ var tn = Lt(function(e) {
|
|
|
1015
1001
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1016
1002
|
}, t.prototype._subscribe = function(r) {
|
|
1017
1003
|
var n, i;
|
|
1018
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1004
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
1019
1005
|
}, t;
|
|
1020
|
-
}(
|
|
1006
|
+
}(Rt), $t = {
|
|
1021
1007
|
now: function() {
|
|
1022
|
-
return (
|
|
1008
|
+
return ($t.delegate || Date).now();
|
|
1023
1009
|
},
|
|
1024
1010
|
delegate: void 0
|
|
1025
|
-
},
|
|
1026
|
-
|
|
1011
|
+
}, Yr = function(e) {
|
|
1012
|
+
R(t, e);
|
|
1027
1013
|
function t(r, n, i) {
|
|
1028
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1014
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
1029
1015
|
var o = e.call(this) || this;
|
|
1030
1016
|
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;
|
|
1031
1017
|
}
|
|
@@ -1045,31 +1031,31 @@ var tn = Lt(function(e) {
|
|
|
1045
1031
|
u && o.splice(0, u + 1);
|
|
1046
1032
|
}
|
|
1047
1033
|
}, t;
|
|
1048
|
-
}(
|
|
1049
|
-
const
|
|
1050
|
-
if (
|
|
1051
|
-
const r = new
|
|
1052
|
-
|
|
1034
|
+
}(Rt);
|
|
1035
|
+
const st = [], at = {}, Kr = (e, t = 0) => {
|
|
1036
|
+
if (st.indexOf(e) == -1) {
|
|
1037
|
+
const r = new Yr(t);
|
|
1038
|
+
at[e] = r, st.push(e);
|
|
1053
1039
|
}
|
|
1054
|
-
return
|
|
1055
|
-
},
|
|
1056
|
-
function
|
|
1040
|
+
return at[e];
|
|
1041
|
+
}, F = [];
|
|
1042
|
+
function en(e, t) {
|
|
1057
1043
|
return {
|
|
1058
|
-
subscribe:
|
|
1044
|
+
subscribe: xe(e, t).subscribe
|
|
1059
1045
|
};
|
|
1060
1046
|
}
|
|
1061
|
-
function
|
|
1047
|
+
function xe(e, t = N) {
|
|
1062
1048
|
let r;
|
|
1063
1049
|
const n = /* @__PURE__ */ new Set();
|
|
1064
1050
|
function i(a) {
|
|
1065
|
-
if (
|
|
1066
|
-
const l = !
|
|
1051
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1052
|
+
const l = !F.length;
|
|
1067
1053
|
for (const u of n)
|
|
1068
|
-
u[1](),
|
|
1054
|
+
u[1](), F.push(u, e);
|
|
1069
1055
|
if (l) {
|
|
1070
|
-
for (let u = 0; u <
|
|
1071
|
-
|
|
1072
|
-
|
|
1056
|
+
for (let u = 0; u < F.length; u += 2)
|
|
1057
|
+
F[u][0](F[u + 1]);
|
|
1058
|
+
F.length = 0;
|
|
1073
1059
|
}
|
|
1074
1060
|
}
|
|
1075
1061
|
}
|
|
@@ -1089,7 +1075,7 @@ function Y(e, t, r) {
|
|
|
1089
1075
|
if (!i.every(Boolean))
|
|
1090
1076
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1091
1077
|
const o = t.length < 2;
|
|
1092
|
-
return
|
|
1078
|
+
return en(r, (s, a) => {
|
|
1093
1079
|
let l = !1;
|
|
1094
1080
|
const u = [];
|
|
1095
1081
|
let h = 0, c = N;
|
|
@@ -1097,85 +1083,85 @@ function Y(e, t, r) {
|
|
|
1097
1083
|
if (h)
|
|
1098
1084
|
return;
|
|
1099
1085
|
c();
|
|
1100
|
-
const
|
|
1101
|
-
o ? s(
|
|
1086
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1087
|
+
o ? s(d) : c = Ze(d) ? d : N;
|
|
1102
1088
|
}, m = i.map(
|
|
1103
|
-
(
|
|
1104
|
-
|
|
1105
|
-
(
|
|
1106
|
-
u[
|
|
1089
|
+
(d, p) => At(
|
|
1090
|
+
d,
|
|
1091
|
+
(w) => {
|
|
1092
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1107
1093
|
},
|
|
1108
1094
|
() => {
|
|
1109
|
-
h |= 1 <<
|
|
1095
|
+
h |= 1 << p;
|
|
1110
1096
|
}
|
|
1111
1097
|
)
|
|
1112
1098
|
);
|
|
1113
1099
|
return l = !0, f(), function() {
|
|
1114
|
-
|
|
1100
|
+
J(m), c(), l = !1;
|
|
1115
1101
|
};
|
|
1116
1102
|
});
|
|
1117
1103
|
}
|
|
1118
|
-
var
|
|
1119
|
-
return
|
|
1104
|
+
var tn = function(t) {
|
|
1105
|
+
return rn(t) && !nn(t);
|
|
1120
1106
|
};
|
|
1121
|
-
function
|
|
1107
|
+
function rn(e) {
|
|
1122
1108
|
return !!e && typeof e == "object";
|
|
1123
1109
|
}
|
|
1124
|
-
function
|
|
1110
|
+
function nn(e) {
|
|
1125
1111
|
var t = Object.prototype.toString.call(e);
|
|
1126
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1112
|
+
return t === "[object RegExp]" || t === "[object Date]" || an(e);
|
|
1127
1113
|
}
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1130
|
-
return e.$$typeof ===
|
|
1114
|
+
var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
|
|
1115
|
+
function an(e) {
|
|
1116
|
+
return e.$$typeof === sn;
|
|
1131
1117
|
}
|
|
1132
|
-
function
|
|
1118
|
+
function un(e) {
|
|
1133
1119
|
return Array.isArray(e) ? [] : {};
|
|
1134
1120
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1121
|
+
function ie(e, t) {
|
|
1122
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(un(e), e, t) : e;
|
|
1137
1123
|
}
|
|
1138
|
-
function
|
|
1124
|
+
function ln(e, t, r) {
|
|
1139
1125
|
return e.concat(t).map(function(n) {
|
|
1140
|
-
return
|
|
1126
|
+
return ie(n, r);
|
|
1141
1127
|
});
|
|
1142
1128
|
}
|
|
1143
|
-
function
|
|
1129
|
+
function hn(e, t) {
|
|
1144
1130
|
if (!t.customMerge)
|
|
1145
1131
|
return z;
|
|
1146
1132
|
var r = t.customMerge(e);
|
|
1147
1133
|
return typeof r == "function" ? r : z;
|
|
1148
1134
|
}
|
|
1149
|
-
function
|
|
1135
|
+
function cn(e) {
|
|
1150
1136
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1151
1137
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1152
1138
|
}) : [];
|
|
1153
1139
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return Object.keys(e).concat(
|
|
1140
|
+
function ut(e) {
|
|
1141
|
+
return Object.keys(e).concat(cn(e));
|
|
1156
1142
|
}
|
|
1157
|
-
function
|
|
1143
|
+
function Gt(e, t) {
|
|
1158
1144
|
try {
|
|
1159
1145
|
return t in e;
|
|
1160
1146
|
} catch {
|
|
1161
1147
|
return !1;
|
|
1162
1148
|
}
|
|
1163
1149
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1150
|
+
function fn(e, t) {
|
|
1151
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1166
1152
|
}
|
|
1167
|
-
function
|
|
1153
|
+
function mn(e, t, r) {
|
|
1168
1154
|
var n = {};
|
|
1169
|
-
return r.isMergeableObject(e) &&
|
|
1170
|
-
n[i] =
|
|
1171
|
-
}),
|
|
1172
|
-
|
|
1155
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1156
|
+
n[i] = ie(e[i], r);
|
|
1157
|
+
}), ut(t).forEach(function(i) {
|
|
1158
|
+
fn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1173
1159
|
}), n;
|
|
1174
1160
|
}
|
|
1175
1161
|
function z(e, t, r) {
|
|
1176
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1162
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1177
1163
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1178
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1164
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ie(t, r);
|
|
1179
1165
|
}
|
|
1180
1166
|
z.all = function(t, r) {
|
|
1181
1167
|
if (!Array.isArray(t))
|
|
@@ -1184,107 +1170,105 @@ z.all = function(t, r) {
|
|
|
1184
1170
|
return z(n, i, r);
|
|
1185
1171
|
}, {});
|
|
1186
1172
|
};
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1190
|
-
var r = t && t.cache ? t.cache :
|
|
1173
|
+
var dn = z, pn = dn;
|
|
1174
|
+
const bn = /* @__PURE__ */ Gr(pn);
|
|
1175
|
+
function He(e, t) {
|
|
1176
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : yn;
|
|
1191
1177
|
return i(e, {
|
|
1192
1178
|
cache: r,
|
|
1193
1179
|
serializer: n
|
|
1194
1180
|
});
|
|
1195
1181
|
}
|
|
1196
|
-
function
|
|
1182
|
+
function gn(e) {
|
|
1197
1183
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1198
1184
|
}
|
|
1199
|
-
function
|
|
1200
|
-
var i =
|
|
1185
|
+
function vn(e, t, r, n) {
|
|
1186
|
+
var i = gn(n) ? n : r(n), o = t.get(i);
|
|
1201
1187
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1202
1188
|
}
|
|
1203
|
-
function
|
|
1189
|
+
function Ut(e, t, r) {
|
|
1204
1190
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1205
1191
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1206
1192
|
}
|
|
1207
|
-
function
|
|
1193
|
+
function Dt(e, t, r, n, i) {
|
|
1208
1194
|
return r.bind(t, e, n, i);
|
|
1209
1195
|
}
|
|
1210
|
-
function
|
|
1211
|
-
var r = e.length === 1 ?
|
|
1212
|
-
return
|
|
1213
|
-
}
|
|
1214
|
-
function Sn(e, t) {
|
|
1215
|
-
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1196
|
+
function yn(e, t) {
|
|
1197
|
+
var r = e.length === 1 ? vn : Ut;
|
|
1198
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1216
1199
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return
|
|
1200
|
+
function xn(e, t) {
|
|
1201
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1219
1202
|
}
|
|
1220
|
-
var
|
|
1203
|
+
var _n = function() {
|
|
1221
1204
|
return JSON.stringify(arguments);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1205
|
+
}, En = (
|
|
1206
|
+
/** @class */
|
|
1207
|
+
function() {
|
|
1208
|
+
function e() {
|
|
1209
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1210
|
+
}
|
|
1211
|
+
return e.prototype.get = function(t) {
|
|
1212
|
+
return this.cache[t];
|
|
1213
|
+
}, e.prototype.set = function(t, r) {
|
|
1214
|
+
this.cache[t] = r;
|
|
1215
|
+
}, e;
|
|
1216
|
+
}()
|
|
1217
|
+
), Sn = {
|
|
1233
1218
|
create: function() {
|
|
1234
|
-
return new
|
|
1219
|
+
return new En();
|
|
1235
1220
|
}
|
|
1236
|
-
},
|
|
1237
|
-
variadic:
|
|
1238
|
-
|
|
1239
|
-
}, g;
|
|
1221
|
+
}, Be = {
|
|
1222
|
+
variadic: xn
|
|
1223
|
+
}, b;
|
|
1240
1224
|
(function(e) {
|
|
1241
1225
|
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";
|
|
1242
|
-
})(
|
|
1243
|
-
var
|
|
1226
|
+
})(b || (b = {}));
|
|
1227
|
+
var S;
|
|
1244
1228
|
(function(e) {
|
|
1245
1229
|
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";
|
|
1246
|
-
})(
|
|
1230
|
+
})(S || (S = {}));
|
|
1247
1231
|
var W;
|
|
1248
1232
|
(function(e) {
|
|
1249
1233
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1250
1234
|
})(W || (W = {}));
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1235
|
+
function lt(e) {
|
|
1236
|
+
return e.type === S.literal;
|
|
1253
1237
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1238
|
+
function wn(e) {
|
|
1239
|
+
return e.type === S.argument;
|
|
1256
1240
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1241
|
+
function Ft(e) {
|
|
1242
|
+
return e.type === S.number;
|
|
1259
1243
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1244
|
+
function jt(e) {
|
|
1245
|
+
return e.type === S.date;
|
|
1262
1246
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1247
|
+
function kt(e) {
|
|
1248
|
+
return e.type === S.time;
|
|
1265
1249
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.type ===
|
|
1250
|
+
function Vt(e) {
|
|
1251
|
+
return e.type === S.select;
|
|
1268
1252
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return e.type ===
|
|
1253
|
+
function Xt(e) {
|
|
1254
|
+
return e.type === S.plural;
|
|
1271
1255
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1256
|
+
function Tn(e) {
|
|
1257
|
+
return e.type === S.pound;
|
|
1274
1258
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1259
|
+
function zt(e) {
|
|
1260
|
+
return e.type === S.tag;
|
|
1277
1261
|
}
|
|
1278
|
-
function
|
|
1262
|
+
function Wt(e) {
|
|
1279
1263
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1280
1264
|
}
|
|
1281
|
-
function
|
|
1265
|
+
function De(e) {
|
|
1282
1266
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1283
1267
|
}
|
|
1284
|
-
var
|
|
1285
|
-
function
|
|
1268
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
|
1269
|
+
function Bn(e) {
|
|
1286
1270
|
var t = {};
|
|
1287
|
-
return e.replace(
|
|
1271
|
+
return e.replace(Hn, function(r) {
|
|
1288
1272
|
var n = r.length;
|
|
1289
1273
|
switch (r[0]) {
|
|
1290
1274
|
case "G":
|
|
@@ -1373,11 +1357,11 @@ function Pn(e) {
|
|
|
1373
1357
|
return "";
|
|
1374
1358
|
}), t;
|
|
1375
1359
|
}
|
|
1376
|
-
var
|
|
1377
|
-
function
|
|
1360
|
+
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1361
|
+
function Cn(e) {
|
|
1378
1362
|
if (e.length === 0)
|
|
1379
1363
|
throw new Error("Number skeleton cannot be empty");
|
|
1380
|
-
for (var t = e.split(
|
|
1364
|
+
for (var t = e.split(An).filter(function(f) {
|
|
1381
1365
|
return f.length > 0;
|
|
1382
1366
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1383
1367
|
var o = i[n], s = o.split("/");
|
|
@@ -1392,17 +1376,17 @@ function In(e) {
|
|
|
1392
1376
|
}
|
|
1393
1377
|
return r;
|
|
1394
1378
|
}
|
|
1395
|
-
function
|
|
1379
|
+
function Pn(e) {
|
|
1396
1380
|
return e.replace(/^(.*?)-/, "");
|
|
1397
1381
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1382
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
1383
|
+
function ct(e) {
|
|
1400
1384
|
var t = {};
|
|
1401
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1385
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
1402
1386
|
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)), "";
|
|
1403
1387
|
}), t;
|
|
1404
1388
|
}
|
|
1405
|
-
function
|
|
1389
|
+
function qt(e) {
|
|
1406
1390
|
switch (e) {
|
|
1407
1391
|
case "sign-auto":
|
|
1408
1392
|
return {
|
|
@@ -1442,7 +1426,7 @@ function tr(e) {
|
|
|
1442
1426
|
};
|
|
1443
1427
|
}
|
|
1444
1428
|
}
|
|
1445
|
-
function
|
|
1429
|
+
function In(e) {
|
|
1446
1430
|
var t;
|
|
1447
1431
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1448
1432
|
notation: "engineering"
|
|
@@ -1450,17 +1434,17 @@ function Ln(e) {
|
|
|
1450
1434
|
notation: "scientific"
|
|
1451
1435
|
}, e = e.slice(1)), t) {
|
|
1452
1436
|
var r = e.slice(0, 2);
|
|
1453
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1437
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
|
1454
1438
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1455
1439
|
t.minimumIntegerDigits = e.length;
|
|
1456
1440
|
}
|
|
1457
1441
|
return t;
|
|
1458
1442
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var t = {}, r =
|
|
1443
|
+
function ft(e) {
|
|
1444
|
+
var t = {}, r = qt(e);
|
|
1461
1445
|
return r || t;
|
|
1462
1446
|
}
|
|
1463
|
-
function
|
|
1447
|
+
function Mn(e) {
|
|
1464
1448
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1465
1449
|
var i = n[r];
|
|
1466
1450
|
switch (i.stem) {
|
|
@@ -1484,7 +1468,7 @@ function Rn(e) {
|
|
|
1484
1468
|
continue;
|
|
1485
1469
|
case "measure-unit":
|
|
1486
1470
|
case "unit":
|
|
1487
|
-
t.style = "unit", t.unit =
|
|
1471
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1488
1472
|
continue;
|
|
1489
1473
|
case "compact-short":
|
|
1490
1474
|
case "K":
|
|
@@ -1496,12 +1480,12 @@ function Rn(e) {
|
|
|
1496
1480
|
continue;
|
|
1497
1481
|
case "scientific":
|
|
1498
1482
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1499
|
-
return y(y({}, l),
|
|
1483
|
+
return y(y({}, l), ft(u));
|
|
1500
1484
|
}, {}));
|
|
1501
1485
|
continue;
|
|
1502
1486
|
case "engineering":
|
|
1503
1487
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1504
|
-
return y(y({}, l),
|
|
1488
|
+
return y(y({}, l), ft(u));
|
|
1505
1489
|
}, {}));
|
|
1506
1490
|
continue;
|
|
1507
1491
|
case "notation-simple":
|
|
@@ -1546,7 +1530,7 @@ function Rn(e) {
|
|
|
1546
1530
|
case "integer-width":
|
|
1547
1531
|
if (i.options.length > 1)
|
|
1548
1532
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1549
|
-
i.options[0].replace(
|
|
1533
|
+
i.options[0].replace(On, function(l, u, h, c, f, m) {
|
|
1550
1534
|
if (u)
|
|
1551
1535
|
t.minimumIntegerDigits = h.length;
|
|
1552
1536
|
else {
|
|
@@ -1559,32 +1543,32 @@ function Rn(e) {
|
|
|
1559
1543
|
});
|
|
1560
1544
|
continue;
|
|
1561
1545
|
}
|
|
1562
|
-
if (
|
|
1546
|
+
if (Jt.test(i.stem)) {
|
|
1563
1547
|
t.minimumIntegerDigits = i.stem.length;
|
|
1564
1548
|
continue;
|
|
1565
1549
|
}
|
|
1566
|
-
if (
|
|
1550
|
+
if (ht.test(i.stem)) {
|
|
1567
1551
|
if (i.options.length > 1)
|
|
1568
1552
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1569
|
-
i.stem.replace(
|
|
1553
|
+
i.stem.replace(ht, function(l, u, h, c, f, m) {
|
|
1570
1554
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1571
1555
|
});
|
|
1572
1556
|
var o = i.options[0];
|
|
1573
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1557
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1574
1558
|
continue;
|
|
1575
1559
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
t = y(y({}, t),
|
|
1560
|
+
if (Qt.test(i.stem)) {
|
|
1561
|
+
t = y(y({}, t), ct(i.stem));
|
|
1578
1562
|
continue;
|
|
1579
1563
|
}
|
|
1580
|
-
var s =
|
|
1564
|
+
var s = qt(i.stem);
|
|
1581
1565
|
s && (t = y(y({}, t), s));
|
|
1582
|
-
var a =
|
|
1566
|
+
var a = In(i.stem);
|
|
1583
1567
|
a && (t = y(y({}, t), a));
|
|
1584
1568
|
}
|
|
1585
1569
|
return t;
|
|
1586
1570
|
}
|
|
1587
|
-
var
|
|
1571
|
+
var he = {
|
|
1588
1572
|
"001": [
|
|
1589
1573
|
"H",
|
|
1590
1574
|
"h"
|
|
@@ -2999,13 +2983,13 @@ var ce = {
|
|
|
2999
2983
|
"h"
|
|
3000
2984
|
]
|
|
3001
2985
|
};
|
|
3002
|
-
function
|
|
2986
|
+
function Nn(e, t) {
|
|
3003
2987
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3004
2988
|
var i = e.charAt(n);
|
|
3005
2989
|
if (i === "j") {
|
|
3006
2990
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3007
2991
|
o++, n++;
|
|
3008
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2992
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ln(t);
|
|
3009
2993
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3010
2994
|
r += l;
|
|
3011
2995
|
for (; s-- > 0; )
|
|
@@ -3014,7 +2998,7 @@ function $n(e, t) {
|
|
|
3014
2998
|
}
|
|
3015
2999
|
return r;
|
|
3016
3000
|
}
|
|
3017
|
-
function
|
|
3001
|
+
function Ln(e) {
|
|
3018
3002
|
var t = e.hourCycle;
|
|
3019
3003
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3020
3004
|
e.hourCycles && // @ts-ignore
|
|
@@ -3033,23 +3017,23 @@ function Gn(e) {
|
|
|
3033
3017
|
}
|
|
3034
3018
|
var r = e.language, n;
|
|
3035
3019
|
r !== "root" && (n = e.maximize().region);
|
|
3036
|
-
var i =
|
|
3020
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3037
3021
|
return i[0];
|
|
3038
3022
|
}
|
|
3039
|
-
var
|
|
3023
|
+
var Ae, Rn = new RegExp("^".concat(Zt.source, "*")), $n = new RegExp("".concat(Zt.source, "*$"));
|
|
3040
3024
|
function v(e, t) {
|
|
3041
3025
|
return { start: e, end: t };
|
|
3042
3026
|
}
|
|
3043
|
-
var
|
|
3027
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Dn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
|
3044
3028
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3045
|
-
},
|
|
3029
|
+
}, Fe = !0;
|
|
3046
3030
|
try {
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3031
|
+
var zn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3032
|
+
Fe = ((Ae = zn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3049
3033
|
} catch {
|
|
3050
|
-
|
|
3034
|
+
Fe = !1;
|
|
3051
3035
|
}
|
|
3052
|
-
var
|
|
3036
|
+
var mt = Gn ? (
|
|
3053
3037
|
// Native
|
|
3054
3038
|
function(t, r, n) {
|
|
3055
3039
|
return t.startsWith(r, n);
|
|
@@ -3059,7 +3043,7 @@ var bt = Fn ? (
|
|
|
3059
3043
|
function(t, r, n) {
|
|
3060
3044
|
return t.slice(n, n + r.length) === r;
|
|
3061
3045
|
}
|
|
3062
|
-
),
|
|
3046
|
+
), je = Un ? String.fromCodePoint : (
|
|
3063
3047
|
// IE11
|
|
3064
3048
|
function() {
|
|
3065
3049
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3071,9 +3055,9 @@ var bt = Fn ? (
|
|
|
3071
3055
|
}
|
|
3072
3056
|
return n;
|
|
3073
3057
|
}
|
|
3074
|
-
),
|
|
3058
|
+
), dt = (
|
|
3075
3059
|
// native
|
|
3076
|
-
|
|
3060
|
+
Dn ? Object.fromEntries : (
|
|
3077
3061
|
// Ponyfill
|
|
3078
3062
|
function(t) {
|
|
3079
3063
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3083,7 +3067,7 @@ var bt = Fn ? (
|
|
|
3083
3067
|
return r;
|
|
3084
3068
|
}
|
|
3085
3069
|
)
|
|
3086
|
-
),
|
|
3070
|
+
), Yt = Fn ? (
|
|
3087
3071
|
// Native
|
|
3088
3072
|
function(t, r) {
|
|
3089
3073
|
return t.codePointAt(r);
|
|
@@ -3097,7 +3081,7 @@ var bt = Fn ? (
|
|
|
3097
3081
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3098
3082
|
}
|
|
3099
3083
|
}
|
|
3100
|
-
),
|
|
3084
|
+
), Wn = jn ? (
|
|
3101
3085
|
// Native
|
|
3102
3086
|
function(t) {
|
|
3103
3087
|
return t.trimStart();
|
|
@@ -3105,9 +3089,9 @@ var bt = Fn ? (
|
|
|
3105
3089
|
) : (
|
|
3106
3090
|
// Ponyfill
|
|
3107
3091
|
function(t) {
|
|
3108
|
-
return t.replace(
|
|
3092
|
+
return t.replace(Rn, "");
|
|
3109
3093
|
}
|
|
3110
|
-
),
|
|
3094
|
+
), Zn = kn ? (
|
|
3111
3095
|
// Native
|
|
3112
3096
|
function(t) {
|
|
3113
3097
|
return t.trimEnd();
|
|
@@ -3115,32 +3099,32 @@ var bt = Fn ? (
|
|
|
3115
3099
|
) : (
|
|
3116
3100
|
// Ponyfill
|
|
3117
3101
|
function(t) {
|
|
3118
|
-
return t.replace(
|
|
3102
|
+
return t.replace($n, "");
|
|
3119
3103
|
}
|
|
3120
3104
|
);
|
|
3121
|
-
function
|
|
3105
|
+
function Kt(e, t) {
|
|
3122
3106
|
return new RegExp(e, t);
|
|
3123
3107
|
}
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3108
|
+
var ke;
|
|
3109
|
+
if (Fe) {
|
|
3110
|
+
var pt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3111
|
+
ke = function(t, r) {
|
|
3128
3112
|
var n;
|
|
3129
|
-
|
|
3130
|
-
var i =
|
|
3113
|
+
pt.lastIndex = r;
|
|
3114
|
+
var i = pt.exec(t);
|
|
3131
3115
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3132
3116
|
};
|
|
3133
3117
|
} else
|
|
3134
|
-
|
|
3118
|
+
ke = function(t, r) {
|
|
3135
3119
|
for (var n = []; ; ) {
|
|
3136
|
-
var i =
|
|
3137
|
-
if (i === void 0 ||
|
|
3120
|
+
var i = Yt(t, r);
|
|
3121
|
+
if (i === void 0 || er(i) || Yn(i))
|
|
3138
3122
|
break;
|
|
3139
3123
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3140
3124
|
}
|
|
3141
|
-
return
|
|
3125
|
+
return je.apply(void 0, n);
|
|
3142
3126
|
};
|
|
3143
|
-
var
|
|
3127
|
+
var Qn = (
|
|
3144
3128
|
/** @class */
|
|
3145
3129
|
function() {
|
|
3146
3130
|
function e(t, r) {
|
|
@@ -3164,14 +3148,14 @@ var Yn = (
|
|
|
3164
3148
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3165
3149
|
var a = this.clonePosition();
|
|
3166
3150
|
this.bump(), i.push({
|
|
3167
|
-
type:
|
|
3151
|
+
type: S.pound,
|
|
3168
3152
|
location: v(a, this.clonePosition())
|
|
3169
3153
|
});
|
|
3170
3154
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3171
3155
|
if (n)
|
|
3172
3156
|
break;
|
|
3173
|
-
return this.error(
|
|
3174
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3157
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3158
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3175
3159
|
var s = this.parseTag(t, r);
|
|
3176
3160
|
if (s.err)
|
|
3177
3161
|
return s;
|
|
@@ -3192,7 +3176,7 @@ var Yn = (
|
|
|
3192
3176
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3193
3177
|
return {
|
|
3194
3178
|
val: {
|
|
3195
|
-
type:
|
|
3179
|
+
type: S.literal,
|
|
3196
3180
|
value: "<".concat(i, "/>"),
|
|
3197
3181
|
location: v(n, this.clonePosition())
|
|
3198
3182
|
},
|
|
@@ -3204,25 +3188,25 @@ var Yn = (
|
|
|
3204
3188
|
return o;
|
|
3205
3189
|
var s = o.val, a = this.clonePosition();
|
|
3206
3190
|
if (this.bumpIf("</")) {
|
|
3207
|
-
if (this.isEOF() || !
|
|
3208
|
-
return this.error(
|
|
3191
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3192
|
+
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3209
3193
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3210
|
-
return i !== u ? this.error(
|
|
3194
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3211
3195
|
val: {
|
|
3212
|
-
type:
|
|
3196
|
+
type: S.tag,
|
|
3213
3197
|
value: i,
|
|
3214
3198
|
children: s,
|
|
3215
3199
|
location: v(n, this.clonePosition())
|
|
3216
3200
|
},
|
|
3217
3201
|
err: null
|
|
3218
|
-
} : this.error(
|
|
3202
|
+
} : this.error(b.INVALID_TAG, v(a, this.clonePosition())));
|
|
3219
3203
|
} else
|
|
3220
|
-
return this.error(
|
|
3204
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3221
3205
|
} else
|
|
3222
|
-
return this.error(
|
|
3206
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3223
3207
|
}, e.prototype.parseTagName = function() {
|
|
3224
3208
|
var t = this.offset();
|
|
3225
|
-
for (this.bump(); !this.isEOF() &&
|
|
3209
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3226
3210
|
this.bump();
|
|
3227
3211
|
return this.message.slice(t, this.offset());
|
|
3228
3212
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3246,12 +3230,12 @@ var Yn = (
|
|
|
3246
3230
|
}
|
|
3247
3231
|
var l = v(n, this.clonePosition());
|
|
3248
3232
|
return {
|
|
3249
|
-
val: { type:
|
|
3233
|
+
val: { type: S.literal, value: i, location: l },
|
|
3250
3234
|
err: null
|
|
3251
3235
|
};
|
|
3252
3236
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3253
3237
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3254
|
-
!
|
|
3238
|
+
!Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3255
3239
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3256
3240
|
if (this.isEOF() || this.char() !== 39)
|
|
3257
3241
|
return null;
|
|
@@ -3285,28 +3269,28 @@ var Yn = (
|
|
|
3285
3269
|
r.push(n);
|
|
3286
3270
|
this.bump();
|
|
3287
3271
|
}
|
|
3288
|
-
return
|
|
3272
|
+
return je.apply(void 0, r);
|
|
3289
3273
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3290
3274
|
if (this.isEOF())
|
|
3291
3275
|
return null;
|
|
3292
3276
|
var n = this.char();
|
|
3293
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3277
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3294
3278
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3295
3279
|
var n = this.clonePosition();
|
|
3296
3280
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3297
|
-
return this.error(
|
|
3281
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3298
3282
|
if (this.char() === 125)
|
|
3299
|
-
return this.bump(), this.error(
|
|
3283
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3300
3284
|
var i = this.parseIdentifierIfPossible().value;
|
|
3301
3285
|
if (!i)
|
|
3302
|
-
return this.error(
|
|
3286
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3303
3287
|
if (this.bumpSpace(), this.isEOF())
|
|
3304
|
-
return this.error(
|
|
3288
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3305
3289
|
switch (this.char()) {
|
|
3306
3290
|
case 125:
|
|
3307
3291
|
return this.bump(), {
|
|
3308
3292
|
val: {
|
|
3309
|
-
type:
|
|
3293
|
+
type: S.argument,
|
|
3310
3294
|
// value does not include the opening and closing braces.
|
|
3311
3295
|
value: i,
|
|
3312
3296
|
location: v(n, this.clonePosition())
|
|
@@ -3314,12 +3298,12 @@ var Yn = (
|
|
|
3314
3298
|
err: null
|
|
3315
3299
|
};
|
|
3316
3300
|
case 44:
|
|
3317
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3301
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3318
3302
|
default:
|
|
3319
|
-
return this.error(
|
|
3303
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3320
3304
|
}
|
|
3321
3305
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3322
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3306
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3323
3307
|
this.bumpTo(i);
|
|
3324
3308
|
var o = this.clonePosition(), s = v(t, o);
|
|
3325
3309
|
return { value: n, location: s };
|
|
@@ -3327,7 +3311,7 @@ var Yn = (
|
|
|
3327
3311
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3328
3312
|
switch (a) {
|
|
3329
3313
|
case "":
|
|
3330
|
-
return this.error(
|
|
3314
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3331
3315
|
case "number":
|
|
3332
3316
|
case "date":
|
|
3333
3317
|
case "time": {
|
|
@@ -3338,46 +3322,46 @@ var Yn = (
|
|
|
3338
3322
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3339
3323
|
if (c.err)
|
|
3340
3324
|
return c;
|
|
3341
|
-
var f =
|
|
3325
|
+
var f = Zn(c.val);
|
|
3342
3326
|
if (f.length === 0)
|
|
3343
|
-
return this.error(
|
|
3327
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3344
3328
|
var m = v(h, this.clonePosition());
|
|
3345
3329
|
u = { style: f, styleLocation: m };
|
|
3346
3330
|
}
|
|
3347
|
-
var
|
|
3348
|
-
if (
|
|
3349
|
-
return
|
|
3350
|
-
var
|
|
3351
|
-
if (u &&
|
|
3352
|
-
var
|
|
3331
|
+
var d = this.tryParseArgumentClose(i);
|
|
3332
|
+
if (d.err)
|
|
3333
|
+
return d;
|
|
3334
|
+
var p = v(i, this.clonePosition());
|
|
3335
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3336
|
+
var w = Wn(u.style.slice(2));
|
|
3353
3337
|
if (a === "number") {
|
|
3354
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3338
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3355
3339
|
return c.err ? c : {
|
|
3356
|
-
val: { type:
|
|
3340
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3357
3341
|
err: null
|
|
3358
3342
|
};
|
|
3359
3343
|
} else {
|
|
3360
|
-
if (
|
|
3361
|
-
return this.error(
|
|
3362
|
-
var
|
|
3363
|
-
this.locale && (
|
|
3344
|
+
if (w.length === 0)
|
|
3345
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3346
|
+
var I = w;
|
|
3347
|
+
this.locale && (I = Nn(w, this.locale));
|
|
3364
3348
|
var f = {
|
|
3365
3349
|
type: W.dateTime,
|
|
3366
|
-
pattern:
|
|
3350
|
+
pattern: I,
|
|
3367
3351
|
location: u.styleLocation,
|
|
3368
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3369
|
-
}, C = a === "date" ?
|
|
3352
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(I) : {}
|
|
3353
|
+
}, C = a === "date" ? S.date : S.time;
|
|
3370
3354
|
return {
|
|
3371
|
-
val: { type: C, value: n, location:
|
|
3355
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3372
3356
|
err: null
|
|
3373
3357
|
};
|
|
3374
3358
|
}
|
|
3375
3359
|
}
|
|
3376
3360
|
return {
|
|
3377
3361
|
val: {
|
|
3378
|
-
type: a === "number" ?
|
|
3362
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3379
3363
|
value: n,
|
|
3380
|
-
location:
|
|
3364
|
+
location: p,
|
|
3381
3365
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3382
3366
|
},
|
|
3383
3367
|
err: null
|
|
@@ -3386,41 +3370,41 @@ var Yn = (
|
|
|
3386
3370
|
case "plural":
|
|
3387
3371
|
case "selectordinal":
|
|
3388
3372
|
case "select": {
|
|
3389
|
-
var
|
|
3373
|
+
var T = this.clonePosition();
|
|
3390
3374
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3391
|
-
return this.error(
|
|
3375
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, y({}, T)));
|
|
3392
3376
|
this.bumpSpace();
|
|
3393
|
-
var
|
|
3394
|
-
if (a !== "select" &&
|
|
3377
|
+
var _ = this.parseIdentifierIfPossible(), E = 0;
|
|
3378
|
+
if (a !== "select" && _.value === "offset") {
|
|
3395
3379
|
if (!this.bumpIf(":"))
|
|
3396
|
-
return this.error(
|
|
3380
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3397
3381
|
this.bumpSpace();
|
|
3398
|
-
var c = this.tryParseDecimalInteger(
|
|
3382
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3399
3383
|
if (c.err)
|
|
3400
3384
|
return c;
|
|
3401
|
-
this.bumpSpace(),
|
|
3385
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), E = c.val;
|
|
3402
3386
|
}
|
|
3403
|
-
var x = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3387
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, _);
|
|
3404
3388
|
if (x.err)
|
|
3405
3389
|
return x;
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3390
|
+
var d = this.tryParseArgumentClose(i);
|
|
3391
|
+
if (d.err)
|
|
3392
|
+
return d;
|
|
3409
3393
|
var P = v(i, this.clonePosition());
|
|
3410
3394
|
return a === "select" ? {
|
|
3411
3395
|
val: {
|
|
3412
|
-
type:
|
|
3396
|
+
type: S.select,
|
|
3413
3397
|
value: n,
|
|
3414
|
-
options:
|
|
3398
|
+
options: dt(x.val),
|
|
3415
3399
|
location: P
|
|
3416
3400
|
},
|
|
3417
3401
|
err: null
|
|
3418
3402
|
} : {
|
|
3419
3403
|
val: {
|
|
3420
|
-
type:
|
|
3404
|
+
type: S.plural,
|
|
3421
3405
|
value: n,
|
|
3422
|
-
options:
|
|
3423
|
-
offset:
|
|
3406
|
+
options: dt(x.val),
|
|
3407
|
+
offset: E,
|
|
3424
3408
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3425
3409
|
location: P
|
|
3426
3410
|
},
|
|
@@ -3428,10 +3412,10 @@ var Yn = (
|
|
|
3428
3412
|
};
|
|
3429
3413
|
}
|
|
3430
3414
|
default:
|
|
3431
|
-
return this.error(
|
|
3415
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3432
3416
|
}
|
|
3433
3417
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3434
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3418
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3435
3419
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3436
3420
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3437
3421
|
var n = this.char();
|
|
@@ -3440,7 +3424,7 @@ var Yn = (
|
|
|
3440
3424
|
this.bump();
|
|
3441
3425
|
var i = this.clonePosition();
|
|
3442
3426
|
if (!this.bumpUntil("'"))
|
|
3443
|
-
return this.error(
|
|
3427
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3444
3428
|
this.bump();
|
|
3445
3429
|
break;
|
|
3446
3430
|
}
|
|
@@ -3470,16 +3454,16 @@ var Yn = (
|
|
|
3470
3454
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3471
3455
|
var n = [];
|
|
3472
3456
|
try {
|
|
3473
|
-
n =
|
|
3457
|
+
n = Cn(t);
|
|
3474
3458
|
} catch {
|
|
3475
|
-
return this.error(
|
|
3459
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3476
3460
|
}
|
|
3477
3461
|
return {
|
|
3478
3462
|
val: {
|
|
3479
3463
|
type: W.number,
|
|
3480
3464
|
tokens: n,
|
|
3481
3465
|
location: r,
|
|
3482
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3466
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3483
3467
|
},
|
|
3484
3468
|
err: null
|
|
3485
3469
|
};
|
|
@@ -3488,7 +3472,7 @@ var Yn = (
|
|
|
3488
3472
|
if (u.length === 0) {
|
|
3489
3473
|
var c = this.clonePosition();
|
|
3490
3474
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3491
|
-
var f = this.tryParseDecimalInteger(
|
|
3475
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3492
3476
|
if (f.err)
|
|
3493
3477
|
return f;
|
|
3494
3478
|
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3496,26 +3480,26 @@ var Yn = (
|
|
|
3496
3480
|
break;
|
|
3497
3481
|
}
|
|
3498
3482
|
if (l.has(u))
|
|
3499
|
-
return this.error(r === "select" ?
|
|
3483
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3500
3484
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3501
3485
|
var m = this.clonePosition();
|
|
3502
3486
|
if (!this.bumpIf("{"))
|
|
3503
|
-
return this.error(r === "select" ?
|
|
3504
|
-
var
|
|
3505
|
-
if (p.err)
|
|
3506
|
-
return p;
|
|
3507
|
-
var d = this.tryParseArgumentClose(m);
|
|
3487
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3488
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3508
3489
|
if (d.err)
|
|
3509
3490
|
return d;
|
|
3491
|
+
var p = this.tryParseArgumentClose(m);
|
|
3492
|
+
if (p.err)
|
|
3493
|
+
return p;
|
|
3510
3494
|
a.push([
|
|
3511
3495
|
u,
|
|
3512
3496
|
{
|
|
3513
|
-
value:
|
|
3497
|
+
value: d.val,
|
|
3514
3498
|
location: v(m, this.clonePosition())
|
|
3515
3499
|
}
|
|
3516
3500
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3517
3501
|
}
|
|
3518
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3502
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3519
3503
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3520
3504
|
var n = 1, i = this.clonePosition();
|
|
3521
3505
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3527,7 +3511,7 @@ var Yn = (
|
|
|
3527
3511
|
break;
|
|
3528
3512
|
}
|
|
3529
3513
|
var l = v(i, this.clonePosition());
|
|
3530
|
-
return o ? (s *= n,
|
|
3514
|
+
return o ? (s *= n, Xn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3531
3515
|
}, e.prototype.offset = function() {
|
|
3532
3516
|
return this.position.offset;
|
|
3533
3517
|
}, e.prototype.isEOF = function() {
|
|
@@ -3542,7 +3526,7 @@ var Yn = (
|
|
|
3542
3526
|
var t = this.position.offset;
|
|
3543
3527
|
if (t >= this.message.length)
|
|
3544
3528
|
throw Error("out of bound");
|
|
3545
|
-
var r =
|
|
3529
|
+
var r = Yt(this.message, t);
|
|
3546
3530
|
if (r === void 0)
|
|
3547
3531
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3548
3532
|
return r;
|
|
@@ -3561,7 +3545,7 @@ var Yn = (
|
|
|
3561
3545
|
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);
|
|
3562
3546
|
}
|
|
3563
3547
|
}, e.prototype.bumpIf = function(t) {
|
|
3564
|
-
if (
|
|
3548
|
+
if (mt(this.message, t, this.offset())) {
|
|
3565
3549
|
for (var r = 0; r < t.length; r++)
|
|
3566
3550
|
this.bump();
|
|
3567
3551
|
return !0;
|
|
@@ -3583,7 +3567,7 @@ var Yn = (
|
|
|
3583
3567
|
break;
|
|
3584
3568
|
}
|
|
3585
3569
|
}, e.prototype.bumpSpace = function() {
|
|
3586
|
-
for (; !this.isEOF() &&
|
|
3570
|
+
for (; !this.isEOF() && er(this.char()); )
|
|
3587
3571
|
this.bump();
|
|
3588
3572
|
}, e.prototype.peek = function() {
|
|
3589
3573
|
if (this.isEOF())
|
|
@@ -3593,46 +3577,46 @@ var Yn = (
|
|
|
3593
3577
|
}, e;
|
|
3594
3578
|
}()
|
|
3595
3579
|
);
|
|
3596
|
-
function
|
|
3580
|
+
function Ve(e) {
|
|
3597
3581
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3598
3582
|
}
|
|
3599
|
-
function
|
|
3600
|
-
return
|
|
3583
|
+
function Jn(e) {
|
|
3584
|
+
return Ve(e) || e === 47;
|
|
3601
3585
|
}
|
|
3602
|
-
function
|
|
3586
|
+
function qn(e) {
|
|
3603
3587
|
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;
|
|
3604
3588
|
}
|
|
3605
|
-
function
|
|
3589
|
+
function er(e) {
|
|
3606
3590
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3607
3591
|
}
|
|
3608
|
-
function
|
|
3592
|
+
function Yn(e) {
|
|
3609
3593
|
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;
|
|
3610
3594
|
}
|
|
3611
|
-
function
|
|
3595
|
+
function Xe(e) {
|
|
3612
3596
|
e.forEach(function(t) {
|
|
3613
|
-
if (delete t.location,
|
|
3597
|
+
if (delete t.location, Vt(t) || Xt(t))
|
|
3614
3598
|
for (var r in t.options)
|
|
3615
|
-
delete t.options[r].location,
|
|
3616
|
-
else
|
|
3599
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3600
|
+
else Ft(t) && Wt(t.style) || (jt(t) || kt(t)) && De(t.style) ? delete t.style.location : zt(t) && Xe(t.children);
|
|
3617
3601
|
});
|
|
3618
3602
|
}
|
|
3619
|
-
function
|
|
3603
|
+
function Kn(e, t) {
|
|
3620
3604
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3621
|
-
var r = new
|
|
3605
|
+
var r = new Qn(e, t).parse();
|
|
3622
3606
|
if (r.err) {
|
|
3623
|
-
var n = SyntaxError(
|
|
3607
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3624
3608
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3625
3609
|
}
|
|
3626
|
-
return t?.captureLocation ||
|
|
3610
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3627
3611
|
}
|
|
3628
3612
|
var Z;
|
|
3629
3613
|
(function(e) {
|
|
3630
3614
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3631
3615
|
})(Z || (Z = {}));
|
|
3632
|
-
var
|
|
3616
|
+
var _e = (
|
|
3633
3617
|
/** @class */
|
|
3634
3618
|
function(e) {
|
|
3635
|
-
|
|
3619
|
+
R(t, e);
|
|
3636
3620
|
function t(r, n, i) {
|
|
3637
3621
|
var o = e.call(this, r) || this;
|
|
3638
3622
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3641,155 +3625,155 @@ var Ee = (
|
|
|
3641
3625
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3642
3626
|
}, t;
|
|
3643
3627
|
}(Error)
|
|
3644
|
-
),
|
|
3628
|
+
), bt = (
|
|
3645
3629
|
/** @class */
|
|
3646
3630
|
function(e) {
|
|
3647
|
-
|
|
3631
|
+
R(t, e);
|
|
3648
3632
|
function t(r, n, i, o) {
|
|
3649
3633
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3650
3634
|
}
|
|
3651
3635
|
return t;
|
|
3652
|
-
}(
|
|
3653
|
-
),
|
|
3636
|
+
}(_e)
|
|
3637
|
+
), ei = (
|
|
3654
3638
|
/** @class */
|
|
3655
3639
|
function(e) {
|
|
3656
|
-
|
|
3640
|
+
R(t, e);
|
|
3657
3641
|
function t(r, n, i) {
|
|
3658
3642
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3659
3643
|
}
|
|
3660
3644
|
return t;
|
|
3661
|
-
}(
|
|
3662
|
-
),
|
|
3645
|
+
}(_e)
|
|
3646
|
+
), ti = (
|
|
3663
3647
|
/** @class */
|
|
3664
3648
|
function(e) {
|
|
3665
|
-
|
|
3649
|
+
R(t, e);
|
|
3666
3650
|
function t(r, n) {
|
|
3667
3651
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3668
3652
|
}
|
|
3669
3653
|
return t;
|
|
3670
|
-
}(
|
|
3671
|
-
),
|
|
3654
|
+
}(_e)
|
|
3655
|
+
), A;
|
|
3672
3656
|
(function(e) {
|
|
3673
3657
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3674
|
-
})(
|
|
3675
|
-
function
|
|
3658
|
+
})(A || (A = {}));
|
|
3659
|
+
function ri(e) {
|
|
3676
3660
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3677
3661
|
var n = t[t.length - 1];
|
|
3678
|
-
return !n || n.type !==
|
|
3662
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3679
3663
|
}, []);
|
|
3680
3664
|
}
|
|
3681
|
-
function
|
|
3665
|
+
function ni(e) {
|
|
3682
3666
|
return typeof e == "function";
|
|
3683
3667
|
}
|
|
3684
|
-
function
|
|
3685
|
-
if (e.length === 1 &&
|
|
3668
|
+
function de(e, t, r, n, i, o, s) {
|
|
3669
|
+
if (e.length === 1 && lt(e[0]))
|
|
3686
3670
|
return [
|
|
3687
3671
|
{
|
|
3688
|
-
type:
|
|
3672
|
+
type: A.literal,
|
|
3689
3673
|
value: e[0].value
|
|
3690
3674
|
}
|
|
3691
3675
|
];
|
|
3692
3676
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3693
3677
|
var h = u[l];
|
|
3694
|
-
if (
|
|
3678
|
+
if (lt(h)) {
|
|
3695
3679
|
a.push({
|
|
3696
|
-
type:
|
|
3680
|
+
type: A.literal,
|
|
3697
3681
|
value: h.value
|
|
3698
3682
|
});
|
|
3699
3683
|
continue;
|
|
3700
3684
|
}
|
|
3701
|
-
if (
|
|
3685
|
+
if (Tn(h)) {
|
|
3702
3686
|
typeof o == "number" && a.push({
|
|
3703
|
-
type:
|
|
3687
|
+
type: A.literal,
|
|
3704
3688
|
value: r.getNumberFormat(t).format(o)
|
|
3705
3689
|
});
|
|
3706
3690
|
continue;
|
|
3707
3691
|
}
|
|
3708
3692
|
var c = h.value;
|
|
3709
3693
|
if (!(i && c in i))
|
|
3710
|
-
throw new
|
|
3694
|
+
throw new ti(c, s);
|
|
3711
3695
|
var f = i[c];
|
|
3712
|
-
if (
|
|
3696
|
+
if (wn(h)) {
|
|
3713
3697
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3714
|
-
type: typeof f == "string" ?
|
|
3698
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3715
3699
|
value: f
|
|
3716
3700
|
});
|
|
3717
3701
|
continue;
|
|
3718
3702
|
}
|
|
3719
|
-
if (
|
|
3720
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3703
|
+
if (jt(h)) {
|
|
3704
|
+
var m = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3721
3705
|
a.push({
|
|
3722
|
-
type:
|
|
3706
|
+
type: A.literal,
|
|
3723
3707
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3724
3708
|
});
|
|
3725
3709
|
continue;
|
|
3726
3710
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3711
|
+
if (kt(h)) {
|
|
3712
|
+
var m = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3729
3713
|
a.push({
|
|
3730
|
-
type:
|
|
3714
|
+
type: A.literal,
|
|
3731
3715
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3732
3716
|
});
|
|
3733
3717
|
continue;
|
|
3734
3718
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3719
|
+
if (Ft(h)) {
|
|
3720
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3737
3721
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3738
|
-
type:
|
|
3722
|
+
type: A.literal,
|
|
3739
3723
|
value: r.getNumberFormat(t, m).format(f)
|
|
3740
3724
|
});
|
|
3741
3725
|
continue;
|
|
3742
3726
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3745
|
-
if (!
|
|
3746
|
-
throw new
|
|
3747
|
-
var
|
|
3748
|
-
return
|
|
3727
|
+
if (zt(h)) {
|
|
3728
|
+
var d = h.children, p = h.value, w = i[p];
|
|
3729
|
+
if (!ni(w))
|
|
3730
|
+
throw new ei(p, "function", s);
|
|
3731
|
+
var I = de(d, t, r, n, i, o), C = w(I.map(function(E) {
|
|
3732
|
+
return E.value;
|
|
3749
3733
|
}));
|
|
3750
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3734
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(E) {
|
|
3751
3735
|
return {
|
|
3752
|
-
type: typeof
|
|
3753
|
-
value:
|
|
3736
|
+
type: typeof E == "string" ? A.literal : A.object,
|
|
3737
|
+
value: E
|
|
3754
3738
|
};
|
|
3755
3739
|
}));
|
|
3756
3740
|
}
|
|
3757
|
-
if (
|
|
3758
|
-
var
|
|
3759
|
-
if (!
|
|
3760
|
-
throw new
|
|
3761
|
-
a.push.apply(a,
|
|
3741
|
+
if (Vt(h)) {
|
|
3742
|
+
var T = h.options[f] || h.options.other;
|
|
3743
|
+
if (!T)
|
|
3744
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3745
|
+
a.push.apply(a, de(T.value, t, r, n, i));
|
|
3762
3746
|
continue;
|
|
3763
3747
|
}
|
|
3764
|
-
if (
|
|
3765
|
-
var
|
|
3766
|
-
if (!
|
|
3748
|
+
if (Xt(h)) {
|
|
3749
|
+
var T = h.options["=".concat(f)];
|
|
3750
|
+
if (!T) {
|
|
3767
3751
|
if (!Intl.PluralRules)
|
|
3768
|
-
throw new
|
|
3752
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3769
3753
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3770
3754
|
`, Z.MISSING_INTL_API, s);
|
|
3771
|
-
var
|
|
3772
|
-
|
|
3755
|
+
var _ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3756
|
+
T = h.options[_] || h.options.other;
|
|
3773
3757
|
}
|
|
3774
|
-
if (!
|
|
3775
|
-
throw new
|
|
3776
|
-
a.push.apply(a,
|
|
3758
|
+
if (!T)
|
|
3759
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3760
|
+
a.push.apply(a, de(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3777
3761
|
continue;
|
|
3778
3762
|
}
|
|
3779
3763
|
}
|
|
3780
|
-
return
|
|
3764
|
+
return ri(a);
|
|
3781
3765
|
}
|
|
3782
|
-
function
|
|
3766
|
+
function ii(e, t) {
|
|
3783
3767
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3784
3768
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3785
3769
|
}, {})) : e;
|
|
3786
3770
|
}
|
|
3787
|
-
function
|
|
3771
|
+
function oi(e, t) {
|
|
3788
3772
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3789
|
-
return r[n] =
|
|
3773
|
+
return r[n] = ii(e[n], t[n]), r;
|
|
3790
3774
|
}, y({}, e)) : e;
|
|
3791
3775
|
}
|
|
3792
|
-
function
|
|
3776
|
+
function Ce(e) {
|
|
3793
3777
|
return {
|
|
3794
3778
|
create: function() {
|
|
3795
3779
|
return {
|
|
@@ -3803,39 +3787,39 @@ function Oe(e) {
|
|
|
3803
3787
|
}
|
|
3804
3788
|
};
|
|
3805
3789
|
}
|
|
3806
|
-
function
|
|
3790
|
+
function si(e) {
|
|
3807
3791
|
return e === void 0 && (e = {
|
|
3808
3792
|
number: {},
|
|
3809
3793
|
dateTime: {},
|
|
3810
3794
|
pluralRules: {}
|
|
3811
3795
|
}), {
|
|
3812
|
-
getNumberFormat:
|
|
3796
|
+
getNumberFormat: He(function() {
|
|
3813
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3814
3798
|
r[n] = arguments[n];
|
|
3815
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3799
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3816
3800
|
}, {
|
|
3817
|
-
cache:
|
|
3818
|
-
strategy:
|
|
3801
|
+
cache: Ce(e.number),
|
|
3802
|
+
strategy: Be.variadic
|
|
3819
3803
|
}),
|
|
3820
|
-
getDateTimeFormat:
|
|
3804
|
+
getDateTimeFormat: He(function() {
|
|
3821
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3822
3806
|
r[n] = arguments[n];
|
|
3823
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3807
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3824
3808
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3809
|
+
cache: Ce(e.dateTime),
|
|
3810
|
+
strategy: Be.variadic
|
|
3827
3811
|
}),
|
|
3828
|
-
getPluralRules:
|
|
3812
|
+
getPluralRules: He(function() {
|
|
3829
3813
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3830
3814
|
r[n] = arguments[n];
|
|
3831
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3815
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3832
3816
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3817
|
+
cache: Ce(e.pluralRules),
|
|
3818
|
+
strategy: Be.variadic
|
|
3835
3819
|
})
|
|
3836
3820
|
};
|
|
3837
3821
|
}
|
|
3838
|
-
var
|
|
3822
|
+
var ai = (
|
|
3839
3823
|
/** @class */
|
|
3840
3824
|
function() {
|
|
3841
3825
|
function e(t, r, n, i) {
|
|
@@ -3850,11 +3834,11 @@ var hi = (
|
|
|
3850
3834
|
if (u.length === 1)
|
|
3851
3835
|
return u[0].value;
|
|
3852
3836
|
var h = u.reduce(function(c, f) {
|
|
3853
|
-
return !c.length || f.type !==
|
|
3837
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3854
3838
|
}, []);
|
|
3855
3839
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3856
3840
|
}, this.formatToParts = function(l) {
|
|
3857
|
-
return
|
|
3841
|
+
return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3858
3842
|
}, this.resolvedOptions = function() {
|
|
3859
3843
|
var l;
|
|
3860
3844
|
return {
|
|
@@ -3867,13 +3851,13 @@ var hi = (
|
|
|
3867
3851
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3868
3852
|
var s = i || {};
|
|
3869
3853
|
s.formatters;
|
|
3870
|
-
var a =
|
|
3854
|
+
var a = Ur(s, ["formatters"]);
|
|
3871
3855
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3872
3856
|
} else
|
|
3873
3857
|
this.ast = t;
|
|
3874
3858
|
if (!Array.isArray(this.ast))
|
|
3875
3859
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3876
|
-
this.formats =
|
|
3860
|
+
this.formats = oi(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
|
|
3877
3861
|
}
|
|
3878
3862
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3879
3863
|
get: function() {
|
|
@@ -3886,7 +3870,7 @@ var hi = (
|
|
|
3886
3870
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3887
3871
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3888
3872
|
}
|
|
3889
|
-
}, e.__parse =
|
|
3873
|
+
}, e.__parse = Kn, e.formats = {
|
|
3890
3874
|
number: {
|
|
3891
3875
|
integer: {
|
|
3892
3876
|
maximumFractionDigits: 0
|
|
@@ -3947,7 +3931,7 @@ var hi = (
|
|
|
3947
3931
|
}, e;
|
|
3948
3932
|
}()
|
|
3949
3933
|
);
|
|
3950
|
-
function
|
|
3934
|
+
function ui(e, t) {
|
|
3951
3935
|
if (t == null)
|
|
3952
3936
|
return;
|
|
3953
3937
|
if (t in e)
|
|
@@ -3968,92 +3952,92 @@ function ci(e, t) {
|
|
|
3968
3952
|
n = void 0;
|
|
3969
3953
|
return n;
|
|
3970
3954
|
}
|
|
3971
|
-
const
|
|
3955
|
+
const $ = {}, li = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), tr = (e, t) => {
|
|
3972
3956
|
if (t == null)
|
|
3973
3957
|
return;
|
|
3974
|
-
if (t in
|
|
3975
|
-
return
|
|
3976
|
-
const r =
|
|
3958
|
+
if (t in $ && e in $[t])
|
|
3959
|
+
return $[t][e];
|
|
3960
|
+
const r = Ee(t);
|
|
3977
3961
|
for (let n = 0; n < r.length; n++) {
|
|
3978
|
-
const i = r[n], o =
|
|
3962
|
+
const i = r[n], o = ci(i, e);
|
|
3979
3963
|
if (o)
|
|
3980
|
-
return
|
|
3964
|
+
return li(e, t, o);
|
|
3981
3965
|
}
|
|
3982
3966
|
};
|
|
3983
|
-
let
|
|
3984
|
-
const
|
|
3985
|
-
function
|
|
3986
|
-
return
|
|
3967
|
+
let Qe;
|
|
3968
|
+
const ae = xe({});
|
|
3969
|
+
function hi(e) {
|
|
3970
|
+
return Qe[e] || null;
|
|
3987
3971
|
}
|
|
3988
|
-
function
|
|
3989
|
-
return e in
|
|
3972
|
+
function rr(e) {
|
|
3973
|
+
return e in Qe;
|
|
3990
3974
|
}
|
|
3991
|
-
function
|
|
3992
|
-
if (!
|
|
3975
|
+
function ci(e, t) {
|
|
3976
|
+
if (!rr(e))
|
|
3993
3977
|
return null;
|
|
3994
|
-
const r =
|
|
3995
|
-
return
|
|
3978
|
+
const r = hi(e);
|
|
3979
|
+
return ui(r, t);
|
|
3996
3980
|
}
|
|
3997
|
-
function
|
|
3981
|
+
function fi(e) {
|
|
3998
3982
|
if (e == null)
|
|
3999
3983
|
return;
|
|
4000
|
-
const t =
|
|
3984
|
+
const t = Ee(e);
|
|
4001
3985
|
for (let r = 0; r < t.length; r++) {
|
|
4002
3986
|
const n = t[r];
|
|
4003
|
-
if (
|
|
3987
|
+
if (rr(n))
|
|
4004
3988
|
return n;
|
|
4005
3989
|
}
|
|
4006
3990
|
}
|
|
4007
|
-
function
|
|
4008
|
-
delete
|
|
3991
|
+
function nr(e, ...t) {
|
|
3992
|
+
delete $[e], ae.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
|
|
4009
3993
|
}
|
|
4010
3994
|
Y(
|
|
4011
|
-
[
|
|
3995
|
+
[ae],
|
|
4012
3996
|
([e]) => Object.keys(e)
|
|
4013
3997
|
);
|
|
4014
|
-
|
|
4015
|
-
const
|
|
4016
|
-
function
|
|
4017
|
-
|
|
3998
|
+
ae.subscribe((e) => Qe = e);
|
|
3999
|
+
const pe = {};
|
|
4000
|
+
function mi(e, t) {
|
|
4001
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4018
4002
|
}
|
|
4019
|
-
function
|
|
4020
|
-
return
|
|
4003
|
+
function ir(e) {
|
|
4004
|
+
return pe[e];
|
|
4021
4005
|
}
|
|
4022
|
-
function
|
|
4023
|
-
return
|
|
4024
|
-
const r =
|
|
4006
|
+
function di(e) {
|
|
4007
|
+
return Ee(e).map((t) => {
|
|
4008
|
+
const r = ir(t);
|
|
4025
4009
|
return [t, r ? [...r] : []];
|
|
4026
4010
|
}).filter(([, t]) => t.length > 0);
|
|
4027
4011
|
}
|
|
4028
|
-
function
|
|
4029
|
-
return e == null ? !1 :
|
|
4012
|
+
function ze(e) {
|
|
4013
|
+
return e == null ? !1 : Ee(e).some(
|
|
4030
4014
|
(t) => {
|
|
4031
4015
|
var r;
|
|
4032
|
-
return (r =
|
|
4016
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
4033
4017
|
}
|
|
4034
4018
|
);
|
|
4035
4019
|
}
|
|
4036
|
-
function
|
|
4020
|
+
function pi(e, t) {
|
|
4037
4021
|
return Promise.all(
|
|
4038
|
-
t.map((n) => (
|
|
4039
|
-
).then((n) =>
|
|
4022
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4023
|
+
).then((n) => nr(e, ...n));
|
|
4040
4024
|
}
|
|
4041
4025
|
const te = {};
|
|
4042
|
-
function
|
|
4043
|
-
if (!
|
|
4026
|
+
function or(e) {
|
|
4027
|
+
if (!ze(e))
|
|
4044
4028
|
return e in te ? te[e] : Promise.resolve();
|
|
4045
|
-
const t =
|
|
4029
|
+
const t = di(e);
|
|
4046
4030
|
return te[e] = Promise.all(
|
|
4047
4031
|
t.map(
|
|
4048
|
-
([r, n]) =>
|
|
4032
|
+
([r, n]) => pi(r, n)
|
|
4049
4033
|
)
|
|
4050
4034
|
).then(() => {
|
|
4051
|
-
if (
|
|
4052
|
-
return
|
|
4035
|
+
if (ze(e))
|
|
4036
|
+
return or(e);
|
|
4053
4037
|
delete te[e];
|
|
4054
4038
|
}), te[e];
|
|
4055
4039
|
}
|
|
4056
|
-
const
|
|
4040
|
+
const bi = {
|
|
4057
4041
|
number: {
|
|
4058
4042
|
scientific: { notation: "scientific" },
|
|
4059
4043
|
engineering: { notation: "engineering" },
|
|
@@ -4082,148 +4066,148 @@ const yi = {
|
|
|
4082
4066
|
timeZoneName: "short"
|
|
4083
4067
|
}
|
|
4084
4068
|
}
|
|
4085
|
-
},
|
|
4069
|
+
}, gi = {
|
|
4086
4070
|
fallbackLocale: null,
|
|
4087
4071
|
loadingDelay: 200,
|
|
4088
|
-
formats:
|
|
4072
|
+
formats: bi,
|
|
4089
4073
|
warnOnMissingMessages: !0,
|
|
4090
4074
|
handleMissingMessage: void 0,
|
|
4091
4075
|
ignoreTag: !0
|
|
4092
|
-
},
|
|
4076
|
+
}, vi = gi;
|
|
4093
4077
|
function Q() {
|
|
4094
|
-
return
|
|
4078
|
+
return vi;
|
|
4095
4079
|
}
|
|
4096
|
-
const
|
|
4097
|
-
var
|
|
4080
|
+
const Pe = xe(!1);
|
|
4081
|
+
var yi = Object.defineProperty, xi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
|
4098
4082
|
for (var r in t || (t = {}))
|
|
4099
|
-
|
|
4100
|
-
if (
|
|
4101
|
-
for (var r of
|
|
4102
|
-
|
|
4083
|
+
Ei.call(t, r) && vt(e, r, t[r]);
|
|
4084
|
+
if (gt)
|
|
4085
|
+
for (var r of gt(t))
|
|
4086
|
+
Si.call(t, r) && vt(e, r, t[r]);
|
|
4103
4087
|
return e;
|
|
4104
|
-
},
|
|
4105
|
-
let
|
|
4106
|
-
const
|
|
4107
|
-
function
|
|
4088
|
+
}, Ti = (e, t) => xi(e, _i(t));
|
|
4089
|
+
let We;
|
|
4090
|
+
const ge = xe(null);
|
|
4091
|
+
function yt(e) {
|
|
4108
4092
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4109
4093
|
}
|
|
4110
|
-
function
|
|
4111
|
-
const r =
|
|
4112
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4094
|
+
function Ee(e, t = Q().fallbackLocale) {
|
|
4095
|
+
const r = yt(e);
|
|
4096
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4113
4097
|
}
|
|
4114
|
-
function
|
|
4115
|
-
return
|
|
4098
|
+
function G() {
|
|
4099
|
+
return We ?? void 0;
|
|
4116
4100
|
}
|
|
4117
|
-
|
|
4118
|
-
|
|
4101
|
+
ge.subscribe((e) => {
|
|
4102
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4119
4103
|
});
|
|
4120
|
-
const
|
|
4121
|
-
if (e &&
|
|
4104
|
+
const Hi = (e) => {
|
|
4105
|
+
if (e && fi(e) && ze(e)) {
|
|
4122
4106
|
const { loadingDelay: t } = Q();
|
|
4123
4107
|
let r;
|
|
4124
|
-
return typeof window < "u" &&
|
|
4125
|
-
() =>
|
|
4108
|
+
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4109
|
+
() => Pe.set(!0),
|
|
4126
4110
|
t
|
|
4127
|
-
) :
|
|
4128
|
-
|
|
4111
|
+
) : Pe.set(!0), or(e).then(() => {
|
|
4112
|
+
ge.set(e);
|
|
4129
4113
|
}).finally(() => {
|
|
4130
|
-
clearTimeout(r),
|
|
4114
|
+
clearTimeout(r), Pe.set(!1);
|
|
4131
4115
|
});
|
|
4132
4116
|
}
|
|
4133
|
-
return
|
|
4134
|
-
}, K =
|
|
4135
|
-
set:
|
|
4136
|
-
}),
|
|
4117
|
+
return ge.set(e);
|
|
4118
|
+
}, K = Ti(wi({}, ge), {
|
|
4119
|
+
set: Hi
|
|
4120
|
+
}), Se = (e) => {
|
|
4137
4121
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4138
4122
|
return (n) => {
|
|
4139
4123
|
const i = JSON.stringify(n);
|
|
4140
4124
|
return i in t ? t[i] : t[i] = e(n);
|
|
4141
4125
|
};
|
|
4142
4126
|
};
|
|
4143
|
-
var
|
|
4127
|
+
var Bi = Object.defineProperty, ve = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4144
4128
|
for (var r in t || (t = {}))
|
|
4145
|
-
|
|
4146
|
-
if (
|
|
4147
|
-
for (var r of
|
|
4148
|
-
|
|
4129
|
+
sr.call(t, r) && xt(e, r, t[r]);
|
|
4130
|
+
if (ve)
|
|
4131
|
+
for (var r of ve(t))
|
|
4132
|
+
ar.call(t, r) && xt(e, r, t[r]);
|
|
4149
4133
|
return e;
|
|
4150
4134
|
}, ee = (e, t) => {
|
|
4151
4135
|
var r = {};
|
|
4152
4136
|
for (var n in e)
|
|
4153
|
-
|
|
4154
|
-
if (e != null &&
|
|
4155
|
-
for (var n of
|
|
4156
|
-
t.indexOf(n) < 0 &&
|
|
4137
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4138
|
+
if (e != null && ve)
|
|
4139
|
+
for (var n of ve(e))
|
|
4140
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4157
4141
|
return r;
|
|
4158
4142
|
};
|
|
4159
|
-
const
|
|
4143
|
+
const oe = (e, t) => {
|
|
4160
4144
|
const { formats: r } = Q();
|
|
4161
4145
|
if (e in r && t in r[e])
|
|
4162
4146
|
return r[e][t];
|
|
4163
4147
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4164
|
-
},
|
|
4148
|
+
}, Ai = Se(
|
|
4165
4149
|
(e) => {
|
|
4166
4150
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4167
4151
|
if (r == null)
|
|
4168
4152
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4169
|
-
return n && (i =
|
|
4153
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4170
4154
|
}
|
|
4171
|
-
),
|
|
4155
|
+
), Ci = Se(
|
|
4172
4156
|
(e) => {
|
|
4173
4157
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4174
4158
|
if (r == null)
|
|
4175
4159
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4176
|
-
return n ? i =
|
|
4160
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4177
4161
|
}
|
|
4178
|
-
),
|
|
4162
|
+
), Pi = Se(
|
|
4179
4163
|
(e) => {
|
|
4180
4164
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4181
4165
|
if (r == null)
|
|
4182
4166
|
throw new Error(
|
|
4183
4167
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4184
4168
|
);
|
|
4185
|
-
return n ? i =
|
|
4169
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4186
4170
|
}
|
|
4187
|
-
),
|
|
4171
|
+
), Oi = (e = {}) => {
|
|
4188
4172
|
var t = e, {
|
|
4189
|
-
locale: r =
|
|
4173
|
+
locale: r = G()
|
|
4190
4174
|
} = t, n = ee(t, [
|
|
4191
4175
|
"locale"
|
|
4192
4176
|
]);
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4177
|
+
return Ai(Je({ locale: r }, n));
|
|
4178
|
+
}, Ii = (e = {}) => {
|
|
4195
4179
|
var t = e, {
|
|
4196
|
-
locale: r =
|
|
4180
|
+
locale: r = G()
|
|
4197
4181
|
} = t, n = ee(t, [
|
|
4198
4182
|
"locale"
|
|
4199
4183
|
]);
|
|
4200
|
-
return
|
|
4201
|
-
},
|
|
4184
|
+
return Ci(Je({ locale: r }, n));
|
|
4185
|
+
}, Mi = (e = {}) => {
|
|
4202
4186
|
var t = e, {
|
|
4203
|
-
locale: r =
|
|
4187
|
+
locale: r = G()
|
|
4204
4188
|
} = t, n = ee(t, [
|
|
4205
4189
|
"locale"
|
|
4206
4190
|
]);
|
|
4207
|
-
return
|
|
4208
|
-
},
|
|
4191
|
+
return Pi(Je({ locale: r }, n));
|
|
4192
|
+
}, Ni = Se(
|
|
4209
4193
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4210
|
-
(e, t =
|
|
4194
|
+
(e, t = G()) => new ai(e, t, Q().formats, {
|
|
4211
4195
|
ignoreTag: Q().ignoreTag
|
|
4212
4196
|
})
|
|
4213
|
-
),
|
|
4197
|
+
), Li = (e, t = {}) => {
|
|
4214
4198
|
var r, n, i, o;
|
|
4215
4199
|
let s = t;
|
|
4216
4200
|
typeof e == "object" && (s = e, e = s.id);
|
|
4217
4201
|
const {
|
|
4218
4202
|
values: a,
|
|
4219
|
-
locale: l =
|
|
4203
|
+
locale: l = G(),
|
|
4220
4204
|
default: u
|
|
4221
4205
|
} = s;
|
|
4222
4206
|
if (l == null)
|
|
4223
4207
|
throw new Error(
|
|
4224
4208
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4225
4209
|
);
|
|
4226
|
-
let h =
|
|
4210
|
+
let h = tr(e, l);
|
|
4227
4211
|
if (!h)
|
|
4228
4212
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4229
4213
|
else if (typeof h != "string")
|
|
@@ -4234,7 +4218,7 @@ const se = (e, t) => {
|
|
|
4234
4218
|
return h;
|
|
4235
4219
|
let c = h;
|
|
4236
4220
|
try {
|
|
4237
|
-
c =
|
|
4221
|
+
c = Ni(h, l).format(a);
|
|
4238
4222
|
} catch (f) {
|
|
4239
4223
|
f instanceof Error && console.warn(
|
|
4240
4224
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4242,20 +4226,43 @@ const se = (e, t) => {
|
|
|
4242
4226
|
);
|
|
4243
4227
|
}
|
|
4244
4228
|
return c;
|
|
4245
|
-
},
|
|
4246
|
-
Y([K], () =>
|
|
4247
|
-
Y([K], () =>
|
|
4248
|
-
Y([K], () =>
|
|
4249
|
-
Y([K,
|
|
4250
|
-
window.emWidgets = { topic:
|
|
4251
|
-
const
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4229
|
+
}, Ri = (e, t) => Mi(t).format(e), $i = (e, t) => Ii(t).format(e), Gi = (e, t) => Oi(t).format(e), Ui = (e, t = G()) => tr(e, t), Di = Y([K, ae], () => Li);
|
|
4230
|
+
Y([K], () => Ri);
|
|
4231
|
+
Y([K], () => $i);
|
|
4232
|
+
Y([K], () => Gi);
|
|
4233
|
+
Y([K, ae], () => Ui);
|
|
4234
|
+
window.emWidgets = { topic: Kr };
|
|
4235
|
+
const Fi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4236
|
+
function ji(e, t) {
|
|
4237
|
+
if (e) {
|
|
4238
|
+
const r = document.createElement("style");
|
|
4239
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
function ki(e, t) {
|
|
4243
|
+
const r = new URL(t);
|
|
4244
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4245
|
+
const i = document.createElement("style");
|
|
4246
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4247
|
+
}).catch((n) => {
|
|
4248
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
function Vi(e, t, r) {
|
|
4252
|
+
if (window.emMessageBus) {
|
|
4253
|
+
const n = document.createElement("style");
|
|
4254
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4255
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4256
|
+
});
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
function _t(e, t) {
|
|
4260
|
+
nr(e, t);
|
|
4254
4261
|
}
|
|
4255
4262
|
function Xi(e) {
|
|
4256
4263
|
K.set(e);
|
|
4257
4264
|
}
|
|
4258
|
-
const
|
|
4265
|
+
const Et = {
|
|
4259
4266
|
en: {
|
|
4260
4267
|
cancel: "Cancel",
|
|
4261
4268
|
confirm: "Confirm"
|
|
@@ -4302,73 +4309,73 @@ const Tt = {
|
|
|
4302
4309
|
}
|
|
4303
4310
|
};
|
|
4304
4311
|
function zi(e) {
|
|
4305
|
-
|
|
4312
|
+
vr(e, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4306
4313
|
}
|
|
4307
|
-
const Wi = (e) => ({}),
|
|
4314
|
+
const Wi = (e) => ({}), St = (e) => ({});
|
|
4308
4315
|
function Zi(e) {
|
|
4309
4316
|
let t, r;
|
|
4310
4317
|
return {
|
|
4311
4318
|
c() {
|
|
4312
|
-
t =
|
|
4319
|
+
t = Ke("svg"), r = Ke("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4313
4320
|
},
|
|
4314
4321
|
m(n, i) {
|
|
4315
|
-
|
|
4322
|
+
se(n, t, i), B(t, r);
|
|
4316
4323
|
},
|
|
4317
4324
|
p: N,
|
|
4318
4325
|
d(n) {
|
|
4319
|
-
n &&
|
|
4326
|
+
n && q(t);
|
|
4320
4327
|
}
|
|
4321
4328
|
};
|
|
4322
4329
|
}
|
|
4323
|
-
function
|
|
4330
|
+
function wt(e) {
|
|
4324
4331
|
let t, r, n;
|
|
4325
4332
|
return {
|
|
4326
4333
|
c() {
|
|
4327
|
-
t = M("div"), r = M("h2"), n =
|
|
4334
|
+
t = M("div"), r = M("h2"), n = X(
|
|
4328
4335
|
/*modaltitle*/
|
|
4329
4336
|
e[1]
|
|
4330
|
-
),
|
|
4337
|
+
), H(t, "class", "GeneralConfirmationTitle");
|
|
4331
4338
|
},
|
|
4332
4339
|
m(i, o) {
|
|
4333
|
-
|
|
4340
|
+
se(i, t, o), B(t, r), B(r, n);
|
|
4334
4341
|
},
|
|
4335
4342
|
p(i, o) {
|
|
4336
4343
|
o & /*modaltitle*/
|
|
4337
|
-
2 &&
|
|
4344
|
+
2 && be(
|
|
4338
4345
|
n,
|
|
4339
4346
|
/*modaltitle*/
|
|
4340
4347
|
i[1]
|
|
4341
4348
|
);
|
|
4342
4349
|
},
|
|
4343
4350
|
d(i) {
|
|
4344
|
-
i &&
|
|
4351
|
+
i && q(t);
|
|
4345
4352
|
}
|
|
4346
4353
|
};
|
|
4347
4354
|
}
|
|
4348
|
-
function
|
|
4355
|
+
function Tt(e) {
|
|
4349
4356
|
let t, r = (
|
|
4350
4357
|
/*$_*/
|
|
4351
4358
|
e[4]("cancel") + ""
|
|
4352
4359
|
), n, i, o;
|
|
4353
4360
|
return {
|
|
4354
4361
|
c() {
|
|
4355
|
-
t = M("button"), n =
|
|
4362
|
+
t = M("button"), n = X(r), H(t, "class", "GeneralCancelButton");
|
|
4356
4363
|
},
|
|
4357
4364
|
m(s, a) {
|
|
4358
|
-
|
|
4365
|
+
se(s, t, a), B(t, n), i || (o = Oe(
|
|
4359
4366
|
t,
|
|
4360
4367
|
"click",
|
|
4361
4368
|
/*click_handler*/
|
|
4362
|
-
e[
|
|
4369
|
+
e[17]
|
|
4363
4370
|
), i = !0);
|
|
4364
4371
|
},
|
|
4365
4372
|
p(s, a) {
|
|
4366
4373
|
a & /*$_*/
|
|
4367
4374
|
16 && r !== (r = /*$_*/
|
|
4368
|
-
s[4]("cancel") + "") &&
|
|
4375
|
+
s[4]("cancel") + "") && be(n, r);
|
|
4369
4376
|
},
|
|
4370
4377
|
d(s) {
|
|
4371
|
-
s &&
|
|
4378
|
+
s && q(t), i = !1, o();
|
|
4372
4379
|
}
|
|
4373
4380
|
};
|
|
4374
4381
|
}
|
|
@@ -4376,170 +4383,162 @@ function Qi(e) {
|
|
|
4376
4383
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4377
4384
|
/*$_*/
|
|
4378
4385
|
e[4]("confirm") + ""
|
|
4379
|
-
), m,
|
|
4380
|
-
const
|
|
4386
|
+
), m, d, p, w;
|
|
4387
|
+
const I = (
|
|
4381
4388
|
/*#slots*/
|
|
4382
|
-
e[
|
|
4383
|
-
), C =
|
|
4384
|
-
|
|
4389
|
+
e[16].close
|
|
4390
|
+
), C = dr(
|
|
4391
|
+
I,
|
|
4385
4392
|
e,
|
|
4386
4393
|
/*$$scope*/
|
|
4387
|
-
e[
|
|
4388
|
-
|
|
4389
|
-
),
|
|
4390
|
-
let
|
|
4394
|
+
e[15],
|
|
4395
|
+
St
|
|
4396
|
+
), T = C || Zi();
|
|
4397
|
+
let _ = (
|
|
4391
4398
|
/*modaltitle*/
|
|
4392
|
-
e[1] &&
|
|
4393
|
-
),
|
|
4399
|
+
e[1] && wt(e)
|
|
4400
|
+
), E = (
|
|
4394
4401
|
/*hascancelbutton*/
|
|
4395
|
-
e[2] &&
|
|
4402
|
+
e[2] && Tt(e)
|
|
4396
4403
|
);
|
|
4397
4404
|
return {
|
|
4398
4405
|
c() {
|
|
4399
|
-
t = M("div"), r = M("div"), n = M("span"),
|
|
4406
|
+
t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = ue(), _ && _.c(), o = ue(), s = M("div"), a = X(
|
|
4400
4407
|
/*modaltext*/
|
|
4401
4408
|
e[0]
|
|
4402
|
-
), l =
|
|
4403
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4404
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4409
|
+
), l = ue(), u = M("div"), E && E.c(), h = ue(), c = M("button"), m = X(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4410
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4411
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4405
4412
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4406
4413
|
},
|
|
4407
4414
|
m(x, P) {
|
|
4408
|
-
|
|
4409
|
-
|
|
4415
|
+
se(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4416
|
+
Oe(
|
|
4410
4417
|
n,
|
|
4411
4418
|
"click",
|
|
4412
4419
|
/*close*/
|
|
4413
4420
|
e[6]
|
|
4414
4421
|
),
|
|
4415
|
-
|
|
4422
|
+
Oe(
|
|
4416
4423
|
c,
|
|
4417
4424
|
"click",
|
|
4418
4425
|
/*click_handler_1*/
|
|
4419
|
-
e[
|
|
4426
|
+
e[18]
|
|
4420
4427
|
)
|
|
4421
|
-
],
|
|
4428
|
+
], p = !0);
|
|
4422
4429
|
},
|
|
4423
4430
|
p(x, [P]) {
|
|
4424
|
-
C && C.p && (!
|
|
4425
|
-
|
|
4431
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4432
|
+
32768) && br(
|
|
4426
4433
|
C,
|
|
4427
|
-
|
|
4434
|
+
I,
|
|
4428
4435
|
x,
|
|
4429
4436
|
/*$$scope*/
|
|
4430
|
-
x[
|
|
4431
|
-
|
|
4432
|
-
|
|
4437
|
+
x[15],
|
|
4438
|
+
d ? pr(
|
|
4439
|
+
I,
|
|
4433
4440
|
/*$$scope*/
|
|
4434
|
-
x[
|
|
4441
|
+
x[15],
|
|
4435
4442
|
P,
|
|
4436
4443
|
Wi
|
|
4437
|
-
) :
|
|
4444
|
+
) : gr(
|
|
4438
4445
|
/*$$scope*/
|
|
4439
|
-
x[
|
|
4446
|
+
x[15]
|
|
4440
4447
|
),
|
|
4441
|
-
|
|
4448
|
+
St
|
|
4442
4449
|
), /*modaltitle*/
|
|
4443
|
-
x[1] ?
|
|
4444
|
-
1) &&
|
|
4450
|
+
x[1] ? _ ? _.p(x, P) : (_ = wt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4451
|
+
1) && be(
|
|
4445
4452
|
a,
|
|
4446
4453
|
/*modaltext*/
|
|
4447
4454
|
x[0]
|
|
4448
4455
|
), /*hascancelbutton*/
|
|
4449
|
-
x[2] ?
|
|
4456
|
+
x[2] ? E ? E.p(x, P) : (E = Tt(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4450
4457
|
16) && f !== (f = /*$_*/
|
|
4451
|
-
x[4]("confirm") + "") &&
|
|
4458
|
+
x[4]("confirm") + "") && be(m, f);
|
|
4452
4459
|
},
|
|
4453
4460
|
i(x) {
|
|
4454
|
-
|
|
4461
|
+
d || (Pt(T, x), d = !0);
|
|
4455
4462
|
},
|
|
4456
4463
|
o(x) {
|
|
4457
|
-
|
|
4464
|
+
Pr(T, x), d = !1;
|
|
4458
4465
|
},
|
|
4459
4466
|
d(x) {
|
|
4460
|
-
x &&
|
|
4467
|
+
x && q(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, J(w);
|
|
4461
4468
|
}
|
|
4462
4469
|
};
|
|
4463
4470
|
}
|
|
4464
|
-
function
|
|
4471
|
+
function Ji(e, t, r) {
|
|
4465
4472
|
let n;
|
|
4466
|
-
|
|
4467
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl:
|
|
4468
|
-
const
|
|
4473
|
+
mr(e, Di, (g) => r(4, n = g));
|
|
4474
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C = Fi(I) !== "PC";
|
|
4475
|
+
const T = () => {
|
|
4469
4476
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4472
|
-
},
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
let b = new URL(m), L = document.createElement("style");
|
|
4477
|
-
fetch(b.href).then((D) => D.text()).then((D) => {
|
|
4478
|
-
L.innerHTML = D, setTimeout(
|
|
4479
|
-
() => {
|
|
4480
|
-
d.appendChild(L);
|
|
4481
|
-
},
|
|
4482
|
-
1
|
|
4483
|
-
);
|
|
4484
|
-
});
|
|
4485
|
-
}, x = () => {
|
|
4486
|
-
fetch(p).then((L) => L.json()).then((L) => {
|
|
4487
|
-
Object.keys(L).forEach((D) => {
|
|
4488
|
-
wt(D, L[D]);
|
|
4477
|
+
}, _ = (g) => {
|
|
4478
|
+
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4479
|
+
}, E = () => {
|
|
4480
|
+
fetch(d).then((U) => U.json()).then((U) => {
|
|
4481
|
+
Object.keys(U).forEach((qe) => {
|
|
4482
|
+
_t(qe, U[qe]);
|
|
4489
4483
|
});
|
|
4490
|
-
}).catch((
|
|
4491
|
-
console.log(
|
|
4484
|
+
}).catch((U) => {
|
|
4485
|
+
console.log(U);
|
|
4492
4486
|
});
|
|
4493
4487
|
};
|
|
4494
|
-
Object.keys(
|
|
4495
|
-
|
|
4488
|
+
Object.keys(Et).forEach((g) => {
|
|
4489
|
+
_t(g, Et[g]);
|
|
4496
4490
|
});
|
|
4497
|
-
const
|
|
4491
|
+
const x = () => {
|
|
4498
4492
|
Xi(c);
|
|
4499
|
-
}
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4493
|
+
};
|
|
4494
|
+
wr(() => () => {
|
|
4495
|
+
});
|
|
4496
|
+
const P = () => _("cancel"), lr = () => _("confirm");
|
|
4497
|
+
function hr(g) {
|
|
4498
|
+
Ie[g ? "unshift" : "push"](() => {
|
|
4499
|
+
w = g, r(3, w);
|
|
4503
4500
|
});
|
|
4504
4501
|
}
|
|
4505
|
-
return e.$$set = (
|
|
4506
|
-
"modaltext" in
|
|
4502
|
+
return e.$$set = (g) => {
|
|
4503
|
+
"modaltext" in g && r(0, s = g.modaltext), "modaltitle" in g && r(1, a = g.modaltitle), "hascancelbutton" in g && r(2, l = g.hascancelbutton), "modalconfirmevent" in g && r(8, u = g.modalconfirmevent), "modalcancelevent" in g && r(9, h = g.modalcancelevent), "lang" in g && r(10, c = g.lang), "clientstyling" in g && r(11, f = g.clientstyling), "clientstylingurl" in g && r(12, m = g.clientstylingurl), "translationurl" in g && r(13, d = g.translationurl), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, o = g.$$scope);
|
|
4507
4504
|
}, e.$$.update = () => {
|
|
4508
4505
|
e.$$.dirty & /*modaltext, lang*/
|
|
4509
|
-
1025 && s && c &&
|
|
4510
|
-
2056 && f &&
|
|
4511
|
-
4104 && m &&
|
|
4512
|
-
|
|
4506
|
+
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4507
|
+
2056 && f && w && ji(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4508
|
+
4104 && m && w && ki(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4509
|
+
16392 && p && w && Vi(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4510
|
+
8192 && d && E();
|
|
4513
4511
|
}, [
|
|
4514
4512
|
s,
|
|
4515
4513
|
a,
|
|
4516
4514
|
l,
|
|
4517
|
-
|
|
4515
|
+
w,
|
|
4518
4516
|
n,
|
|
4519
|
-
O,
|
|
4520
4517
|
C,
|
|
4521
|
-
|
|
4518
|
+
T,
|
|
4519
|
+
_,
|
|
4522
4520
|
u,
|
|
4523
4521
|
h,
|
|
4524
4522
|
c,
|
|
4525
4523
|
f,
|
|
4526
4524
|
m,
|
|
4525
|
+
d,
|
|
4527
4526
|
p,
|
|
4528
4527
|
o,
|
|
4529
4528
|
i,
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4529
|
+
P,
|
|
4530
|
+
lr,
|
|
4531
|
+
hr
|
|
4533
4532
|
];
|
|
4534
4533
|
}
|
|
4535
|
-
class
|
|
4534
|
+
class ur extends Rr {
|
|
4536
4535
|
constructor(t) {
|
|
4537
|
-
super(),
|
|
4536
|
+
super(), Nr(
|
|
4538
4537
|
this,
|
|
4539
4538
|
t,
|
|
4540
|
-
|
|
4539
|
+
Ji,
|
|
4541
4540
|
Qi,
|
|
4542
|
-
|
|
4541
|
+
Bt,
|
|
4543
4542
|
{
|
|
4544
4543
|
modaltext: 0,
|
|
4545
4544
|
modaltitle: 1,
|
|
@@ -4549,7 +4548,8 @@ class fr extends Dr {
|
|
|
4549
4548
|
lang: 10,
|
|
4550
4549
|
clientstyling: 11,
|
|
4551
4550
|
clientstylingurl: 12,
|
|
4552
|
-
translationurl: 13
|
|
4551
|
+
translationurl: 13,
|
|
4552
|
+
mbsource: 14
|
|
4553
4553
|
},
|
|
4554
4554
|
zi
|
|
4555
4555
|
);
|
|
@@ -4558,96 +4558,107 @@ class fr extends Dr {
|
|
|
4558
4558
|
return this.$$.ctx[0];
|
|
4559
4559
|
}
|
|
4560
4560
|
set modaltext(t) {
|
|
4561
|
-
this.$$set({ modaltext: t }),
|
|
4561
|
+
this.$$set({ modaltext: t }), O();
|
|
4562
4562
|
}
|
|
4563
4563
|
get modaltitle() {
|
|
4564
4564
|
return this.$$.ctx[1];
|
|
4565
4565
|
}
|
|
4566
4566
|
set modaltitle(t) {
|
|
4567
|
-
this.$$set({ modaltitle: t }),
|
|
4567
|
+
this.$$set({ modaltitle: t }), O();
|
|
4568
4568
|
}
|
|
4569
4569
|
get hascancelbutton() {
|
|
4570
4570
|
return this.$$.ctx[2];
|
|
4571
4571
|
}
|
|
4572
4572
|
set hascancelbutton(t) {
|
|
4573
|
-
this.$$set({ hascancelbutton: t }),
|
|
4573
|
+
this.$$set({ hascancelbutton: t }), O();
|
|
4574
4574
|
}
|
|
4575
4575
|
get modalconfirmevent() {
|
|
4576
4576
|
return this.$$.ctx[8];
|
|
4577
4577
|
}
|
|
4578
4578
|
set modalconfirmevent(t) {
|
|
4579
|
-
this.$$set({ modalconfirmevent: t }),
|
|
4579
|
+
this.$$set({ modalconfirmevent: t }), O();
|
|
4580
4580
|
}
|
|
4581
4581
|
get modalcancelevent() {
|
|
4582
4582
|
return this.$$.ctx[9];
|
|
4583
4583
|
}
|
|
4584
4584
|
set modalcancelevent(t) {
|
|
4585
|
-
this.$$set({ modalcancelevent: t }),
|
|
4585
|
+
this.$$set({ modalcancelevent: t }), O();
|
|
4586
4586
|
}
|
|
4587
4587
|
get lang() {
|
|
4588
4588
|
return this.$$.ctx[10];
|
|
4589
4589
|
}
|
|
4590
4590
|
set lang(t) {
|
|
4591
|
-
this.$$set({ lang: t }),
|
|
4591
|
+
this.$$set({ lang: t }), O();
|
|
4592
4592
|
}
|
|
4593
4593
|
get clientstyling() {
|
|
4594
4594
|
return this.$$.ctx[11];
|
|
4595
4595
|
}
|
|
4596
4596
|
set clientstyling(t) {
|
|
4597
|
-
this.$$set({ clientstyling: t }),
|
|
4597
|
+
this.$$set({ clientstyling: t }), O();
|
|
4598
4598
|
}
|
|
4599
4599
|
get clientstylingurl() {
|
|
4600
4600
|
return this.$$.ctx[12];
|
|
4601
4601
|
}
|
|
4602
4602
|
set clientstylingurl(t) {
|
|
4603
|
-
this.$$set({ clientstylingurl: t }),
|
|
4603
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4604
4604
|
}
|
|
4605
4605
|
get translationurl() {
|
|
4606
4606
|
return this.$$.ctx[13];
|
|
4607
4607
|
}
|
|
4608
4608
|
set translationurl(t) {
|
|
4609
|
-
this.$$set({ translationurl: t }),
|
|
4609
|
+
this.$$set({ translationurl: t }), O();
|
|
4610
|
+
}
|
|
4611
|
+
get mbsource() {
|
|
4612
|
+
return this.$$.ctx[14];
|
|
4613
|
+
}
|
|
4614
|
+
set mbsource(t) {
|
|
4615
|
+
this.$$set({ mbsource: t }), O();
|
|
4610
4616
|
}
|
|
4611
4617
|
}
|
|
4612
|
-
|
|
4613
|
-
const
|
|
4618
|
+
Lr(ur, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4619
|
+
const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4614
4620
|
__proto__: null,
|
|
4615
|
-
default:
|
|
4621
|
+
default: ur
|
|
4616
4622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4617
4623
|
export {
|
|
4618
4624
|
K as $,
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4625
|
+
ro as A,
|
|
4626
|
+
Oe as B,
|
|
4627
|
+
X as C,
|
|
4628
|
+
Yi as D,
|
|
4623
4629
|
Ne as E,
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4630
|
+
Ke as F,
|
|
4631
|
+
eo as G,
|
|
4632
|
+
Di as H,
|
|
4633
|
+
ji as I,
|
|
4634
|
+
ki as J,
|
|
4635
|
+
Vi as K,
|
|
4636
|
+
so as P,
|
|
4637
|
+
Rr as S,
|
|
4638
|
+
nr as a,
|
|
4639
|
+
Lr as b,
|
|
4640
|
+
oo as c,
|
|
4641
|
+
vr as d,
|
|
4642
|
+
q as e,
|
|
4643
|
+
O as f,
|
|
4644
|
+
Gr as g,
|
|
4645
|
+
se as h,
|
|
4646
|
+
Nr as i,
|
|
4647
|
+
M as j,
|
|
4648
|
+
mr as k,
|
|
4649
|
+
Fi as l,
|
|
4650
|
+
no as m,
|
|
4651
|
+
N as n,
|
|
4652
|
+
wr as o,
|
|
4653
|
+
Ie as p,
|
|
4654
|
+
B as q,
|
|
4655
|
+
ue as r,
|
|
4656
|
+
Bt as s,
|
|
4657
|
+
Ki as t,
|
|
4658
|
+
to as u,
|
|
4659
|
+
H as v,
|
|
4660
|
+
io as w,
|
|
4661
|
+
qi as x,
|
|
4662
|
+
J as y,
|
|
4663
|
+
be as z
|
|
4653
4664
|
};
|