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