@everymatrix/player-account-general-confirmation-modal 1.55.0 → 1.56.2
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-B7rHA2DP.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DyDievAv.js → PlayerAccountGeneralConfirmationModal-C4g1TLWM.js} +664 -602
- package/components/{PlayerAccountGeneralConfirmationModal-XENffl2y.js → PlayerAccountGeneralConfirmationModal-IY2sNbEx.js} +670 -608
- 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-BHNsJDJM.cjs +0 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var xr = Object.defineProperty, _r = Object.defineProperties;
|
|
2
|
+
var Er = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Sr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, r) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Sr.call(t, r) && Te(e, r, t[r]);
|
|
8
8
|
if (nt)
|
|
9
9
|
for (var r of nt(t))
|
|
10
|
-
wr.call(t, r) &&
|
|
10
|
+
wr.call(t, r) && Te(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, ot = (e, t) =>
|
|
13
|
-
var O = (e, t, r) =>
|
|
12
|
+
}, ot = (e, t) => _r(e, Er(t));
|
|
13
|
+
var O = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -29,8 +29,9 @@ var st = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function L() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const r in t)
|
|
32
|
+
function Tr(e, t) {
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
34
35
|
return (
|
|
35
36
|
/** @type {T & S} */
|
|
36
37
|
e
|
|
@@ -42,7 +43,7 @@ function Lt(e) {
|
|
|
42
43
|
function at() {
|
|
43
44
|
return /* @__PURE__ */ Object.create(null);
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function J(e) {
|
|
46
47
|
e.forEach(Lt);
|
|
47
48
|
}
|
|
48
49
|
function Ye(e) {
|
|
@@ -51,7 +52,7 @@ function Ye(e) {
|
|
|
51
52
|
function Rt(e, t) {
|
|
52
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function Hr(e) {
|
|
55
56
|
return Object.keys(e).length === 0;
|
|
56
57
|
}
|
|
57
58
|
function $t(e, ...t) {
|
|
@@ -63,19 +64,19 @@ function $t(e, ...t) {
|
|
|
63
64
|
const r = e.subscribe(...t);
|
|
64
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function Br(e, t, r) {
|
|
67
68
|
e.$$.on_destroy.push($t(t, r));
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Ar(e, t, r, n) {
|
|
70
71
|
if (e) {
|
|
71
72
|
const i = Gt(e, t, r, n);
|
|
72
73
|
return e[0](i);
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
function Gt(e, t, r, n) {
|
|
76
|
-
return e[1] && n ?
|
|
77
|
+
return e[1] && n ? Tr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function Cr(e, t, r, n) {
|
|
79
80
|
if (e[2] && n) {
|
|
80
81
|
const i = e[2](n(r));
|
|
81
82
|
if (t.dirty === void 0)
|
|
@@ -90,13 +91,13 @@ function Pr(e, t, r, n) {
|
|
|
90
91
|
}
|
|
91
92
|
return t.dirty;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function Pr(e, t, r, n, i, o) {
|
|
94
95
|
if (i) {
|
|
95
96
|
const s = Gt(t, r, n, o);
|
|
96
97
|
e.p(s, i);
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function Or(e) {
|
|
100
101
|
if (e.ctx.length > 32) {
|
|
101
102
|
const t = [], r = e.ctx.length / 32;
|
|
102
103
|
for (let n = 0; n < r; n++)
|
|
@@ -105,18 +106,19 @@ function Ir(e) {
|
|
|
105
106
|
}
|
|
106
107
|
return -1;
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function B(e, t) {
|
|
109
110
|
e.appendChild(t);
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function Ir(e, t, r) {
|
|
112
113
|
const n = Mr(e);
|
|
113
114
|
if (!n.getElementById(t)) {
|
|
114
|
-
const i =
|
|
115
|
-
i.id = t, i.textContent = r,
|
|
115
|
+
const i = N("style");
|
|
116
|
+
i.id = t, i.textContent = r, Nr(n, i);
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
function Mr(e) {
|
|
119
|
-
if (!e)
|
|
120
|
+
if (!e)
|
|
121
|
+
return document;
|
|
120
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
121
123
|
return t && /** @type {ShadowRoot} */
|
|
122
124
|
t.host ? (
|
|
@@ -124,8 +126,8 @@ function Mr(e) {
|
|
|
124
126
|
t
|
|
125
127
|
) : e.ownerDocument;
|
|
126
128
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
129
|
+
function Nr(e, t) {
|
|
130
|
+
return B(
|
|
129
131
|
/** @type {Document} */
|
|
130
132
|
e.head || e,
|
|
131
133
|
t
|
|
@@ -134,35 +136,35 @@ function Lr(e, t) {
|
|
|
134
136
|
function ae(e, t, r) {
|
|
135
137
|
e.insertBefore(t, r || null);
|
|
136
138
|
}
|
|
137
|
-
function
|
|
139
|
+
function Y(e) {
|
|
138
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
139
141
|
}
|
|
140
|
-
function
|
|
142
|
+
function N(e) {
|
|
141
143
|
return document.createElement(e);
|
|
142
144
|
}
|
|
143
145
|
function ut(e) {
|
|
144
146
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
145
147
|
}
|
|
146
|
-
function
|
|
148
|
+
function ne(e) {
|
|
147
149
|
return document.createTextNode(e);
|
|
148
150
|
}
|
|
149
151
|
function le() {
|
|
150
|
-
return
|
|
152
|
+
return ne(" ");
|
|
151
153
|
}
|
|
152
|
-
function
|
|
154
|
+
function Ne(e, t, r, n) {
|
|
153
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
154
156
|
}
|
|
155
|
-
function
|
|
157
|
+
function H(e, t, r) {
|
|
156
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
157
159
|
}
|
|
158
|
-
function
|
|
160
|
+
function Lr(e) {
|
|
159
161
|
return Array.from(e.childNodes);
|
|
160
162
|
}
|
|
161
163
|
function ge(e, t) {
|
|
162
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
163
165
|
t);
|
|
164
166
|
}
|
|
165
|
-
function
|
|
167
|
+
function Rr(e) {
|
|
166
168
|
const t = {};
|
|
167
169
|
return e.childNodes.forEach(
|
|
168
170
|
/** @param {Element} node */
|
|
@@ -171,87 +173,97 @@ function $r(e) {
|
|
|
171
173
|
}
|
|
172
174
|
), t;
|
|
173
175
|
}
|
|
174
|
-
let
|
|
175
|
-
function
|
|
176
|
-
|
|
176
|
+
let ie;
|
|
177
|
+
function re(e) {
|
|
178
|
+
ie = e;
|
|
179
|
+
}
|
|
180
|
+
function $r() {
|
|
181
|
+
if (!ie)
|
|
182
|
+
throw new Error("Function called outside component initialization");
|
|
183
|
+
return ie;
|
|
184
|
+
}
|
|
185
|
+
function Gr(e) {
|
|
186
|
+
$r().$$.on_mount.push(e);
|
|
177
187
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
const lt = [],
|
|
188
|
+
const k = [], Le = [];
|
|
189
|
+
let V = [];
|
|
190
|
+
const lt = [], Ur = /* @__PURE__ */ Promise.resolve();
|
|
181
191
|
let Re = !1;
|
|
182
|
-
function
|
|
183
|
-
Re || (Re = !0,
|
|
192
|
+
function Dr() {
|
|
193
|
+
Re || (Re = !0, Ur.then(I));
|
|
184
194
|
}
|
|
185
195
|
function $e(e) {
|
|
186
|
-
|
|
196
|
+
V.push(e);
|
|
187
197
|
}
|
|
188
198
|
const He = /* @__PURE__ */ new Set();
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
if (
|
|
199
|
+
let F = 0;
|
|
200
|
+
function I() {
|
|
201
|
+
if (F !== 0)
|
|
192
202
|
return;
|
|
193
|
-
const e =
|
|
203
|
+
const e = ie;
|
|
194
204
|
do {
|
|
195
205
|
try {
|
|
196
|
-
for (;
|
|
197
|
-
const t =
|
|
198
|
-
|
|
206
|
+
for (; F < k.length; ) {
|
|
207
|
+
const t = k[F];
|
|
208
|
+
F++, re(t), Fr(t.$$);
|
|
199
209
|
}
|
|
200
210
|
} catch (t) {
|
|
201
|
-
throw
|
|
211
|
+
throw k.length = 0, F = 0, t;
|
|
202
212
|
}
|
|
203
|
-
for (
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
for (re(null), k.length = 0, F = 0; Le.length; )
|
|
214
|
+
Le.pop()();
|
|
215
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
216
|
+
const r = V[t];
|
|
206
217
|
He.has(r) || (He.add(r), r());
|
|
207
218
|
}
|
|
208
|
-
|
|
209
|
-
} while (
|
|
219
|
+
V.length = 0;
|
|
220
|
+
} while (k.length);
|
|
210
221
|
for (; lt.length; )
|
|
211
222
|
lt.pop()();
|
|
212
|
-
Re = !1, He.clear(),
|
|
223
|
+
Re = !1, He.clear(), re(e);
|
|
213
224
|
}
|
|
214
|
-
function
|
|
225
|
+
function Fr(e) {
|
|
215
226
|
if (e.fragment !== null) {
|
|
216
|
-
e.update(),
|
|
227
|
+
e.update(), J(e.before_update);
|
|
217
228
|
const t = e.dirty;
|
|
218
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
|
-
function
|
|
232
|
+
function jr(e) {
|
|
222
233
|
const t = [], r = [];
|
|
223
|
-
|
|
234
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
224
235
|
}
|
|
225
236
|
const fe = /* @__PURE__ */ new Set();
|
|
226
|
-
let
|
|
237
|
+
let kr;
|
|
227
238
|
function Ut(e, t) {
|
|
228
239
|
e && e.i && (fe.delete(e), e.i(t));
|
|
229
240
|
}
|
|
230
|
-
function
|
|
241
|
+
function Vr(e, t, r, n) {
|
|
231
242
|
if (e && e.o) {
|
|
232
|
-
if (fe.has(e))
|
|
233
|
-
|
|
243
|
+
if (fe.has(e))
|
|
244
|
+
return;
|
|
245
|
+
fe.add(e), kr.c.push(() => {
|
|
234
246
|
fe.delete(e);
|
|
235
247
|
}), e.o(t);
|
|
236
248
|
}
|
|
237
249
|
}
|
|
238
|
-
function
|
|
250
|
+
function Xr(e, t, r) {
|
|
239
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
240
252
|
n && n.m(t, r), $e(() => {
|
|
241
253
|
const o = e.$$.on_mount.map(Lt).filter(Ye);
|
|
242
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
243
255
|
}), i.forEach($e);
|
|
244
256
|
}
|
|
245
|
-
function
|
|
257
|
+
function zr(e, t) {
|
|
246
258
|
const r = e.$$;
|
|
247
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (jr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
248
260
|
}
|
|
249
|
-
function
|
|
250
|
-
e.$$.dirty[0] === -1 && (
|
|
261
|
+
function Wr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (k.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
251
263
|
}
|
|
252
|
-
function
|
|
253
|
-
const l =
|
|
254
|
-
|
|
264
|
+
function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
265
|
+
const l = ie;
|
|
266
|
+
re(e);
|
|
255
267
|
const u = e.$$ = {
|
|
256
268
|
fragment: null,
|
|
257
269
|
ctx: [],
|
|
@@ -276,17 +288,17 @@ function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
276
288
|
s && s(u.root);
|
|
277
289
|
let h = !1;
|
|
278
290
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
279
|
-
const
|
|
280
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
281
|
-
}) : [], u.update(), h = !0,
|
|
291
|
+
const d = m.length ? m[0] : f;
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Wr(e, c)), f;
|
|
293
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
282
294
|
if (t.hydrate) {
|
|
283
|
-
const c =
|
|
284
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
295
|
+
const c = Lr(t.target);
|
|
296
|
+
u.fragment && u.fragment.l(c), c.forEach(Y);
|
|
285
297
|
} else
|
|
286
298
|
u.fragment && u.fragment.c();
|
|
287
|
-
t.intro && Ut(e.$$.fragment),
|
|
299
|
+
t.intro && Ut(e.$$.fragment), Xr(e, t.target, t.anchor), I();
|
|
288
300
|
}
|
|
289
|
-
|
|
301
|
+
re(l);
|
|
290
302
|
}
|
|
291
303
|
let Dt;
|
|
292
304
|
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
@@ -333,7 +345,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
333
345
|
let s;
|
|
334
346
|
return {
|
|
335
347
|
c: function() {
|
|
336
|
-
s =
|
|
348
|
+
s = N("slot"), o !== "default" && H(s, "name", o);
|
|
337
349
|
},
|
|
338
350
|
/**
|
|
339
351
|
* @param {HTMLElement} target
|
|
@@ -343,14 +355,14 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
343
355
|
ae(u, s, h);
|
|
344
356
|
},
|
|
345
357
|
d: function(u) {
|
|
346
|
-
u &&
|
|
358
|
+
u && Y(s);
|
|
347
359
|
}
|
|
348
360
|
};
|
|
349
361
|
};
|
|
350
362
|
};
|
|
351
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
352
364
|
return;
|
|
353
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = Rr(this);
|
|
354
366
|
for (const o of this.$$s)
|
|
355
367
|
o in n && (r[o] = [t(o)]);
|
|
356
368
|
for (const o of this.attributes) {
|
|
@@ -439,7 +451,7 @@ function me(e, t, r, n) {
|
|
|
439
451
|
return t;
|
|
440
452
|
}
|
|
441
453
|
}
|
|
442
|
-
function
|
|
454
|
+
function Qr(e, t, r, n, i, o) {
|
|
443
455
|
let s = class extends Dt {
|
|
444
456
|
constructor() {
|
|
445
457
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -470,7 +482,7 @@ function Zr(e, t, r, n, i, o) {
|
|
|
470
482
|
}), e.element = /** @type {any} */
|
|
471
483
|
s, s;
|
|
472
484
|
}
|
|
473
|
-
class
|
|
485
|
+
class Jr {
|
|
474
486
|
constructor() {
|
|
475
487
|
/**
|
|
476
488
|
* ### PRIVATE API
|
|
@@ -491,7 +503,7 @@ class Qr {
|
|
|
491
503
|
}
|
|
492
504
|
/** @returns {void} */
|
|
493
505
|
$destroy() {
|
|
494
|
-
|
|
506
|
+
zr(this, 1), this.$destroy = L;
|
|
495
507
|
}
|
|
496
508
|
/**
|
|
497
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -513,19 +525,34 @@ class Qr {
|
|
|
513
525
|
* @returns {void}
|
|
514
526
|
*/
|
|
515
527
|
$set(t) {
|
|
516
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !Hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
517
529
|
}
|
|
518
530
|
}
|
|
519
|
-
const
|
|
520
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Yr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
|
|
533
|
+
/*! *****************************************************************************
|
|
534
|
+
Copyright (c) Microsoft Corporation.
|
|
535
|
+
|
|
536
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
537
|
+
purpose with or without fee is hereby granted.
|
|
538
|
+
|
|
539
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
540
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
541
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
542
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
543
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
544
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
545
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
546
|
+
***************************************************************************** */
|
|
521
547
|
var Ge = function(e, t) {
|
|
522
548
|
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
523
549
|
r.__proto__ = n;
|
|
524
550
|
} || function(r, n) {
|
|
525
|
-
for (var i in n)
|
|
551
|
+
for (var i in n)
|
|
552
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
526
553
|
}, Ge(e, t);
|
|
527
554
|
};
|
|
528
|
-
function
|
|
555
|
+
function $(e, t) {
|
|
529
556
|
if (typeof t != "function" && t !== null)
|
|
530
557
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
531
558
|
Ge(e, t);
|
|
@@ -538,14 +565,16 @@ var y = function() {
|
|
|
538
565
|
return y = Object.assign || function(t) {
|
|
539
566
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
540
567
|
r = arguments[n];
|
|
541
|
-
for (var o in r)
|
|
568
|
+
for (var o in r)
|
|
569
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
542
570
|
}
|
|
543
571
|
return t;
|
|
544
572
|
}, y.apply(this, arguments);
|
|
545
573
|
};
|
|
546
|
-
function
|
|
574
|
+
function qr(e, t) {
|
|
547
575
|
var r = {};
|
|
548
|
-
for (var n in e)
|
|
576
|
+
for (var n in e)
|
|
577
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
549
578
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
550
579
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
551
580
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
@@ -553,37 +582,43 @@ function Yr(e, t) {
|
|
|
553
582
|
}
|
|
554
583
|
function Ue(e) {
|
|
555
584
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
556
|
-
if (r)
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
585
|
+
if (r)
|
|
586
|
+
return r.call(e);
|
|
587
|
+
if (e && typeof e.length == "number")
|
|
588
|
+
return {
|
|
589
|
+
next: function() {
|
|
590
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
591
|
+
}
|
|
592
|
+
};
|
|
562
593
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
563
594
|
}
|
|
564
595
|
function De(e, t) {
|
|
565
596
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
566
|
-
if (!r)
|
|
597
|
+
if (!r)
|
|
598
|
+
return e;
|
|
567
599
|
var n = r.call(e), i, o = [], s;
|
|
568
600
|
try {
|
|
569
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
601
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
602
|
+
o.push(i.value);
|
|
570
603
|
} catch (a) {
|
|
571
604
|
s = { error: a };
|
|
572
605
|
} finally {
|
|
573
606
|
try {
|
|
574
607
|
i && !i.done && (r = n.return) && r.call(n);
|
|
575
608
|
} finally {
|
|
576
|
-
if (s)
|
|
609
|
+
if (s)
|
|
610
|
+
throw s.error;
|
|
577
611
|
}
|
|
578
612
|
}
|
|
579
613
|
return o;
|
|
580
614
|
}
|
|
581
|
-
function
|
|
582
|
-
if (r || arguments.length === 2)
|
|
583
|
-
(
|
|
584
|
-
|
|
615
|
+
function X(e, t, r) {
|
|
616
|
+
if (r || arguments.length === 2)
|
|
617
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
618
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
619
|
+
return e.concat(o || t);
|
|
585
620
|
}
|
|
586
|
-
function
|
|
621
|
+
function R(e) {
|
|
587
622
|
return typeof e == "function";
|
|
588
623
|
}
|
|
589
624
|
function Ft(e) {
|
|
@@ -623,43 +658,45 @@ var xe = function() {
|
|
|
623
658
|
var u = l.value;
|
|
624
659
|
u.remove(this);
|
|
625
660
|
}
|
|
626
|
-
} catch (
|
|
627
|
-
t = { error:
|
|
661
|
+
} catch (p) {
|
|
662
|
+
t = { error: p };
|
|
628
663
|
} finally {
|
|
629
664
|
try {
|
|
630
665
|
l && !l.done && (r = a.return) && r.call(a);
|
|
631
666
|
} finally {
|
|
632
|
-
if (t)
|
|
667
|
+
if (t)
|
|
668
|
+
throw t.error;
|
|
633
669
|
}
|
|
634
670
|
}
|
|
635
671
|
else
|
|
636
672
|
s.remove(this);
|
|
637
673
|
var h = this.initialTeardown;
|
|
638
|
-
if (
|
|
674
|
+
if (R(h))
|
|
639
675
|
try {
|
|
640
676
|
h();
|
|
641
|
-
} catch (
|
|
642
|
-
o =
|
|
677
|
+
} catch (p) {
|
|
678
|
+
o = p instanceof Be ? p.errors : [p];
|
|
643
679
|
}
|
|
644
680
|
var c = this._finalizers;
|
|
645
681
|
if (c) {
|
|
646
682
|
this._finalizers = null;
|
|
647
683
|
try {
|
|
648
684
|
for (var f = Ue(c), m = f.next(); !m.done; m = f.next()) {
|
|
649
|
-
var
|
|
685
|
+
var d = m.value;
|
|
650
686
|
try {
|
|
651
|
-
ht(
|
|
652
|
-
} catch (
|
|
653
|
-
o = o != null ? o : [],
|
|
687
|
+
ht(d);
|
|
688
|
+
} catch (p) {
|
|
689
|
+
o = o != null ? o : [], p instanceof Be ? o = X(X([], De(o)), De(p.errors)) : o.push(p);
|
|
654
690
|
}
|
|
655
691
|
}
|
|
656
|
-
} catch (
|
|
657
|
-
n = { error:
|
|
692
|
+
} catch (p) {
|
|
693
|
+
n = { error: p };
|
|
658
694
|
} finally {
|
|
659
695
|
try {
|
|
660
696
|
m && !m.done && (i = f.return) && i.call(f);
|
|
661
697
|
} finally {
|
|
662
|
-
if (n)
|
|
698
|
+
if (n)
|
|
699
|
+
throw n.error;
|
|
663
700
|
}
|
|
664
701
|
}
|
|
665
702
|
}
|
|
@@ -697,10 +734,10 @@ var xe = function() {
|
|
|
697
734
|
}(), e;
|
|
698
735
|
}(), jt = xe.EMPTY;
|
|
699
736
|
function kt(e) {
|
|
700
|
-
return e instanceof xe || e && "closed" in e &&
|
|
737
|
+
return e instanceof xe || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
701
738
|
}
|
|
702
739
|
function ht(e) {
|
|
703
|
-
|
|
740
|
+
R(e) ? e() : e.unsubscribe();
|
|
704
741
|
}
|
|
705
742
|
var Vt = {
|
|
706
743
|
onUnhandledError: null,
|
|
@@ -708,19 +745,19 @@ var Vt = {
|
|
|
708
745
|
Promise: void 0,
|
|
709
746
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
747
|
useDeprecatedNextContext: !1
|
|
711
|
-
},
|
|
748
|
+
}, Kr = {
|
|
712
749
|
setTimeout: function(e, t) {
|
|
713
750
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
714
751
|
r[n - 2] = arguments[n];
|
|
715
|
-
return setTimeout.apply(void 0,
|
|
752
|
+
return setTimeout.apply(void 0, X([e, t], De(r)));
|
|
716
753
|
},
|
|
717
754
|
clearTimeout: function(e) {
|
|
718
755
|
return clearTimeout(e);
|
|
719
756
|
},
|
|
720
757
|
delegate: void 0
|
|
721
758
|
};
|
|
722
|
-
function
|
|
723
|
-
|
|
759
|
+
function en(e) {
|
|
760
|
+
Kr.setTimeout(function() {
|
|
724
761
|
throw e;
|
|
725
762
|
});
|
|
726
763
|
}
|
|
@@ -730,10 +767,10 @@ function de(e) {
|
|
|
730
767
|
e();
|
|
731
768
|
}
|
|
732
769
|
var Xt = function(e) {
|
|
733
|
-
|
|
770
|
+
$(t, e);
|
|
734
771
|
function t(r) {
|
|
735
772
|
var n = e.call(this) || this;
|
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination =
|
|
773
|
+
return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = on, n;
|
|
737
774
|
}
|
|
738
775
|
return t.create = function(r, n, i) {
|
|
739
776
|
return new je(r, n, i);
|
|
@@ -760,11 +797,11 @@ var Xt = function(e) {
|
|
|
760
797
|
this.unsubscribe();
|
|
761
798
|
}
|
|
762
799
|
}, t;
|
|
763
|
-
}(xe),
|
|
800
|
+
}(xe), tn = Function.prototype.bind;
|
|
764
801
|
function Ae(e, t) {
|
|
765
|
-
return
|
|
802
|
+
return tn.call(e, t);
|
|
766
803
|
}
|
|
767
|
-
var
|
|
804
|
+
var rn = function() {
|
|
768
805
|
function e(t) {
|
|
769
806
|
this.partialObserver = t;
|
|
770
807
|
}
|
|
@@ -796,10 +833,10 @@ var tn = function() {
|
|
|
796
833
|
}
|
|
797
834
|
}, e;
|
|
798
835
|
}(), je = function(e) {
|
|
799
|
-
|
|
836
|
+
$(t, e);
|
|
800
837
|
function t(r, n, i) {
|
|
801
838
|
var o = e.call(this) || this, s;
|
|
802
|
-
if (
|
|
839
|
+
if (R(r) || !r)
|
|
803
840
|
s = {
|
|
804
841
|
next: r != null ? r : void 0,
|
|
805
842
|
error: n != null ? n : void 0,
|
|
@@ -815,29 +852,29 @@ var tn = function() {
|
|
|
815
852
|
complete: r.complete && Ae(r.complete, a)
|
|
816
853
|
}) : s = r;
|
|
817
854
|
}
|
|
818
|
-
return o.destination = new
|
|
855
|
+
return o.destination = new rn(s), o;
|
|
819
856
|
}
|
|
820
857
|
return t;
|
|
821
858
|
}(Xt);
|
|
822
859
|
function he(e) {
|
|
823
|
-
|
|
860
|
+
en(e);
|
|
824
861
|
}
|
|
825
|
-
function
|
|
862
|
+
function nn(e) {
|
|
826
863
|
throw e;
|
|
827
864
|
}
|
|
828
|
-
var
|
|
865
|
+
var on = {
|
|
829
866
|
closed: !0,
|
|
830
867
|
next: ct,
|
|
831
|
-
error:
|
|
868
|
+
error: nn,
|
|
832
869
|
complete: ct
|
|
833
|
-
},
|
|
870
|
+
}, sn = function() {
|
|
834
871
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
835
872
|
}();
|
|
836
|
-
function
|
|
873
|
+
function an(e) {
|
|
837
874
|
return e;
|
|
838
875
|
}
|
|
839
|
-
function
|
|
840
|
-
return e.length === 0 ?
|
|
876
|
+
function un(e) {
|
|
877
|
+
return e.length === 0 ? an : e.length === 1 ? e[0] : function(r) {
|
|
841
878
|
return e.reduce(function(n, i) {
|
|
842
879
|
return i(n);
|
|
843
880
|
}, r);
|
|
@@ -851,7 +888,7 @@ var ft = function() {
|
|
|
851
888
|
var r = new e();
|
|
852
889
|
return r.source = this, r.operator = t, r;
|
|
853
890
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
854
|
-
var i = this, o =
|
|
891
|
+
var i = this, o = hn(t) ? t : new je(t, r, n);
|
|
855
892
|
return de(function() {
|
|
856
893
|
var s = i, a = s.operator, l = s.source;
|
|
857
894
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -881,12 +918,12 @@ var ft = function() {
|
|
|
881
918
|
}, e.prototype._subscribe = function(t) {
|
|
882
919
|
var r;
|
|
883
920
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
884
|
-
}, e.prototype[
|
|
921
|
+
}, e.prototype[sn] = function() {
|
|
885
922
|
return this;
|
|
886
923
|
}, e.prototype.pipe = function() {
|
|
887
924
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
888
925
|
t[r] = arguments[r];
|
|
889
|
-
return
|
|
926
|
+
return un(t)(this);
|
|
890
927
|
}, e.prototype.toPromise = function(t) {
|
|
891
928
|
var r = this;
|
|
892
929
|
return t = mt(t), new t(function(n, i) {
|
|
@@ -907,18 +944,18 @@ function mt(e) {
|
|
|
907
944
|
var t;
|
|
908
945
|
return (t = e != null ? e : Vt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
909
946
|
}
|
|
910
|
-
function un(e) {
|
|
911
|
-
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
912
|
-
}
|
|
913
947
|
function ln(e) {
|
|
914
|
-
return e && e
|
|
948
|
+
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
949
|
+
}
|
|
950
|
+
function hn(e) {
|
|
951
|
+
return e && e instanceof Xt || ln(e) && kt(e);
|
|
915
952
|
}
|
|
916
|
-
var
|
|
953
|
+
var cn = Ft(function(e) {
|
|
917
954
|
return function() {
|
|
918
955
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
919
956
|
};
|
|
920
957
|
}), zt = function(e) {
|
|
921
|
-
|
|
958
|
+
$(t, e);
|
|
922
959
|
function t() {
|
|
923
960
|
var r = e.call(this) || this;
|
|
924
961
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -928,7 +965,7 @@ var hn = Ft(function(e) {
|
|
|
928
965
|
return n.operator = r, n;
|
|
929
966
|
}, t.prototype._throwIfClosed = function() {
|
|
930
967
|
if (this.closed)
|
|
931
|
-
throw new
|
|
968
|
+
throw new cn();
|
|
932
969
|
}, t.prototype.next = function(r) {
|
|
933
970
|
var n = this;
|
|
934
971
|
de(function() {
|
|
@@ -946,7 +983,8 @@ var hn = Ft(function(e) {
|
|
|
946
983
|
try {
|
|
947
984
|
a && !a.done && (o = s.return) && o.call(s);
|
|
948
985
|
} finally {
|
|
949
|
-
if (i)
|
|
986
|
+
if (i)
|
|
987
|
+
throw i.error;
|
|
950
988
|
}
|
|
951
989
|
}
|
|
952
990
|
}
|
|
@@ -997,7 +1035,7 @@ var hn = Ft(function(e) {
|
|
|
997
1035
|
return new dt(r, n);
|
|
998
1036
|
}, t;
|
|
999
1037
|
}(ft), dt = function(e) {
|
|
1000
|
-
|
|
1038
|
+
$(t, e);
|
|
1001
1039
|
function t(r, n) {
|
|
1002
1040
|
var i = e.call(this) || this;
|
|
1003
1041
|
return i.destination = r, i.source = n, i;
|
|
@@ -1020,8 +1058,8 @@ var hn = Ft(function(e) {
|
|
|
1020
1058
|
return (Wt.delegate || Date).now();
|
|
1021
1059
|
},
|
|
1022
1060
|
delegate: void 0
|
|
1023
|
-
},
|
|
1024
|
-
|
|
1061
|
+
}, fn = function(e) {
|
|
1062
|
+
$(t, e);
|
|
1025
1063
|
function t(r, n, i) {
|
|
1026
1064
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wt);
|
|
1027
1065
|
var o = e.call(this) || this;
|
|
@@ -1044,14 +1082,14 @@ var hn = Ft(function(e) {
|
|
|
1044
1082
|
}
|
|
1045
1083
|
}, t;
|
|
1046
1084
|
}(zt);
|
|
1047
|
-
const pt = [], bt = {},
|
|
1085
|
+
const pt = [], bt = {}, mn = (e, t = 0) => {
|
|
1048
1086
|
if (pt.indexOf(e) == -1) {
|
|
1049
|
-
const r = new
|
|
1087
|
+
const r = new fn(t);
|
|
1050
1088
|
bt[e] = r, pt.push(e);
|
|
1051
1089
|
}
|
|
1052
1090
|
return bt[e];
|
|
1053
|
-
},
|
|
1054
|
-
function
|
|
1091
|
+
}, j = [];
|
|
1092
|
+
function dn(e, t) {
|
|
1055
1093
|
return {
|
|
1056
1094
|
subscribe: _e(e, t).subscribe
|
|
1057
1095
|
};
|
|
@@ -1061,13 +1099,13 @@ function _e(e, t = L) {
|
|
|
1061
1099
|
const n = /* @__PURE__ */ new Set();
|
|
1062
1100
|
function i(a) {
|
|
1063
1101
|
if (Rt(e, a) && (e = a, r)) {
|
|
1064
|
-
const l = !
|
|
1102
|
+
const l = !j.length;
|
|
1065
1103
|
for (const u of n)
|
|
1066
|
-
u[1](),
|
|
1104
|
+
u[1](), j.push(u, e);
|
|
1067
1105
|
if (l) {
|
|
1068
|
-
for (let u = 0; u <
|
|
1069
|
-
|
|
1070
|
-
|
|
1106
|
+
for (let u = 0; u < j.length; u += 2)
|
|
1107
|
+
j[u][0](j[u + 1]);
|
|
1108
|
+
j.length = 0;
|
|
1071
1109
|
}
|
|
1072
1110
|
}
|
|
1073
1111
|
}
|
|
@@ -1082,12 +1120,12 @@ function _e(e, t = L) {
|
|
|
1082
1120
|
}
|
|
1083
1121
|
return { set: i, update: o, subscribe: s };
|
|
1084
1122
|
}
|
|
1085
|
-
function
|
|
1123
|
+
function q(e, t, r) {
|
|
1086
1124
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1087
1125
|
if (!i.every(Boolean))
|
|
1088
1126
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1089
1127
|
const o = t.length < 2;
|
|
1090
|
-
return
|
|
1128
|
+
return dn(r, (s, a) => {
|
|
1091
1129
|
let l = !1;
|
|
1092
1130
|
const u = [];
|
|
1093
1131
|
let h = 0, c = L;
|
|
@@ -1095,57 +1133,57 @@ function K(e, t, r) {
|
|
|
1095
1133
|
if (h)
|
|
1096
1134
|
return;
|
|
1097
1135
|
c();
|
|
1098
|
-
const
|
|
1099
|
-
o ? s(
|
|
1136
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1137
|
+
o ? s(d) : c = Ye(d) ? d : L;
|
|
1100
1138
|
}, m = i.map(
|
|
1101
|
-
(
|
|
1102
|
-
|
|
1103
|
-
(
|
|
1104
|
-
u[
|
|
1139
|
+
(d, p) => $t(
|
|
1140
|
+
d,
|
|
1141
|
+
(w) => {
|
|
1142
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1105
1143
|
},
|
|
1106
1144
|
() => {
|
|
1107
|
-
h |= 1 <<
|
|
1145
|
+
h |= 1 << p;
|
|
1108
1146
|
}
|
|
1109
1147
|
)
|
|
1110
1148
|
);
|
|
1111
1149
|
return l = !0, f(), function() {
|
|
1112
|
-
|
|
1150
|
+
J(m), c(), l = !1;
|
|
1113
1151
|
};
|
|
1114
1152
|
});
|
|
1115
1153
|
}
|
|
1116
|
-
function
|
|
1154
|
+
function pn(e) {
|
|
1117
1155
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1118
1156
|
}
|
|
1119
|
-
var
|
|
1120
|
-
return
|
|
1157
|
+
var bn = function(t) {
|
|
1158
|
+
return gn(t) && !vn(t);
|
|
1121
1159
|
};
|
|
1122
|
-
function
|
|
1160
|
+
function gn(e) {
|
|
1123
1161
|
return !!e && typeof e == "object";
|
|
1124
1162
|
}
|
|
1125
|
-
function
|
|
1163
|
+
function vn(e) {
|
|
1126
1164
|
var t = Object.prototype.toString.call(e);
|
|
1127
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1128
|
-
}
|
|
1129
|
-
var vn = typeof Symbol == "function" && Symbol.for, yn = vn ? Symbol.for("react.element") : 60103;
|
|
1130
|
-
function xn(e) {
|
|
1131
|
-
return e.$$typeof === yn;
|
|
1165
|
+
return t === "[object RegExp]" || t === "[object Date]" || _n(e);
|
|
1132
1166
|
}
|
|
1167
|
+
var yn = typeof Symbol == "function" && Symbol.for, xn = yn ? Symbol.for("react.element") : 60103;
|
|
1133
1168
|
function _n(e) {
|
|
1169
|
+
return e.$$typeof === xn;
|
|
1170
|
+
}
|
|
1171
|
+
function En(e) {
|
|
1134
1172
|
return Array.isArray(e) ? [] : {};
|
|
1135
1173
|
}
|
|
1136
1174
|
function oe(e, t) {
|
|
1137
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1175
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(En(e), e, t) : e;
|
|
1138
1176
|
}
|
|
1139
|
-
function
|
|
1177
|
+
function Sn(e, t, r) {
|
|
1140
1178
|
return e.concat(t).map(function(n) {
|
|
1141
1179
|
return oe(n, r);
|
|
1142
1180
|
});
|
|
1143
1181
|
}
|
|
1144
|
-
function
|
|
1182
|
+
function wn(e, t) {
|
|
1145
1183
|
if (!t.customMerge)
|
|
1146
|
-
return
|
|
1184
|
+
return z;
|
|
1147
1185
|
var r = t.customMerge(e);
|
|
1148
|
-
return typeof r == "function" ? r :
|
|
1186
|
+
return typeof r == "function" ? r : z;
|
|
1149
1187
|
}
|
|
1150
1188
|
function Tn(e) {
|
|
1151
1189
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1162,130 +1200,130 @@ function Zt(e, t) {
|
|
|
1162
1200
|
return !1;
|
|
1163
1201
|
}
|
|
1164
1202
|
}
|
|
1165
|
-
function
|
|
1203
|
+
function Hn(e, t) {
|
|
1166
1204
|
return Zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1167
1205
|
}
|
|
1168
|
-
function
|
|
1206
|
+
function Bn(e, t, r) {
|
|
1169
1207
|
var n = {};
|
|
1170
1208
|
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1171
1209
|
n[i] = oe(e[i], r);
|
|
1172
1210
|
}), gt(t).forEach(function(i) {
|
|
1173
|
-
|
|
1211
|
+
Hn(e, i) || (Zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1174
1212
|
}), n;
|
|
1175
1213
|
}
|
|
1176
|
-
function
|
|
1177
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1214
|
+
function z(e, t, r) {
|
|
1215
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || bn, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1178
1216
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1179
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1217
|
+
return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : oe(t, r);
|
|
1180
1218
|
}
|
|
1181
|
-
|
|
1219
|
+
z.all = function(t, r) {
|
|
1182
1220
|
if (!Array.isArray(t))
|
|
1183
1221
|
throw new Error("first argument should be an array");
|
|
1184
1222
|
return t.reduce(function(n, i) {
|
|
1185
|
-
return
|
|
1223
|
+
return z(n, i, r);
|
|
1186
1224
|
}, {});
|
|
1187
1225
|
};
|
|
1188
|
-
var
|
|
1189
|
-
const
|
|
1226
|
+
var An = z, Cn = An;
|
|
1227
|
+
const Pn = /* @__PURE__ */ pn(Cn);
|
|
1190
1228
|
function Ce(e, t) {
|
|
1191
|
-
var r = t && t.cache ? t.cache :
|
|
1229
|
+
var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : In;
|
|
1192
1230
|
return i(e, {
|
|
1193
1231
|
cache: r,
|
|
1194
1232
|
serializer: n
|
|
1195
1233
|
});
|
|
1196
1234
|
}
|
|
1197
|
-
function
|
|
1235
|
+
function On(e) {
|
|
1198
1236
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1199
1237
|
}
|
|
1200
1238
|
function Qt(e, t, r, n) {
|
|
1201
|
-
var i =
|
|
1239
|
+
var i = On(n) ? n : r(n), o = t.get(i);
|
|
1202
1240
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1203
1241
|
}
|
|
1204
1242
|
function Jt(e, t, r) {
|
|
1205
1243
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1206
1244
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1207
1245
|
}
|
|
1208
|
-
function
|
|
1246
|
+
function qe(e, t, r, n, i) {
|
|
1209
1247
|
return r.bind(t, e, n, i);
|
|
1210
1248
|
}
|
|
1211
|
-
function
|
|
1249
|
+
function In(e, t) {
|
|
1212
1250
|
var r = e.length === 1 ? Qt : Jt;
|
|
1213
|
-
return
|
|
1251
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
1214
1252
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return
|
|
1253
|
+
function Mn(e, t) {
|
|
1254
|
+
return qe(e, this, Jt, t.cache.create(), t.serializer);
|
|
1217
1255
|
}
|
|
1218
1256
|
function Nn(e, t) {
|
|
1219
|
-
return
|
|
1257
|
+
return qe(e, this, Qt, t.cache.create(), t.serializer);
|
|
1220
1258
|
}
|
|
1221
|
-
var
|
|
1259
|
+
var Ln = function() {
|
|
1222
1260
|
return JSON.stringify(arguments);
|
|
1223
1261
|
};
|
|
1224
|
-
function
|
|
1262
|
+
function Ke() {
|
|
1225
1263
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1226
1264
|
}
|
|
1227
|
-
|
|
1265
|
+
Ke.prototype.get = function(e) {
|
|
1228
1266
|
return this.cache[e];
|
|
1229
1267
|
};
|
|
1230
|
-
|
|
1268
|
+
Ke.prototype.set = function(e, t) {
|
|
1231
1269
|
this.cache[e] = t;
|
|
1232
1270
|
};
|
|
1233
|
-
var
|
|
1271
|
+
var Rn = {
|
|
1234
1272
|
create: function() {
|
|
1235
|
-
return new
|
|
1273
|
+
return new Ke();
|
|
1236
1274
|
}
|
|
1237
1275
|
}, Pe = {
|
|
1238
|
-
variadic:
|
|
1276
|
+
variadic: Mn,
|
|
1239
1277
|
monadic: Nn
|
|
1240
|
-
},
|
|
1278
|
+
}, b;
|
|
1241
1279
|
(function(e) {
|
|
1242
1280
|
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";
|
|
1243
|
-
})(
|
|
1244
|
-
var
|
|
1281
|
+
})(b || (b = {}));
|
|
1282
|
+
var S;
|
|
1245
1283
|
(function(e) {
|
|
1246
1284
|
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";
|
|
1247
|
-
})(
|
|
1248
|
-
var
|
|
1285
|
+
})(S || (S = {}));
|
|
1286
|
+
var W;
|
|
1249
1287
|
(function(e) {
|
|
1250
1288
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1251
|
-
})(
|
|
1289
|
+
})(W || (W = {}));
|
|
1252
1290
|
function vt(e) {
|
|
1253
|
-
return e.type ===
|
|
1291
|
+
return e.type === S.literal;
|
|
1254
1292
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return e.type ===
|
|
1293
|
+
function $n(e) {
|
|
1294
|
+
return e.type === S.argument;
|
|
1257
1295
|
}
|
|
1258
1296
|
function Yt(e) {
|
|
1259
|
-
return e.type ===
|
|
1297
|
+
return e.type === S.number;
|
|
1260
1298
|
}
|
|
1261
1299
|
function qt(e) {
|
|
1262
|
-
return e.type ===
|
|
1300
|
+
return e.type === S.date;
|
|
1263
1301
|
}
|
|
1264
1302
|
function Kt(e) {
|
|
1265
|
-
return e.type ===
|
|
1303
|
+
return e.type === S.time;
|
|
1266
1304
|
}
|
|
1267
1305
|
function er(e) {
|
|
1268
|
-
return e.type ===
|
|
1306
|
+
return e.type === S.select;
|
|
1269
1307
|
}
|
|
1270
1308
|
function tr(e) {
|
|
1271
|
-
return e.type ===
|
|
1309
|
+
return e.type === S.plural;
|
|
1272
1310
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1311
|
+
function Gn(e) {
|
|
1312
|
+
return e.type === S.pound;
|
|
1275
1313
|
}
|
|
1276
1314
|
function rr(e) {
|
|
1277
|
-
return e.type ===
|
|
1315
|
+
return e.type === S.tag;
|
|
1278
1316
|
}
|
|
1279
1317
|
function nr(e) {
|
|
1280
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1318
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1281
1319
|
}
|
|
1282
1320
|
function ke(e) {
|
|
1283
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1321
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1284
1322
|
}
|
|
1285
|
-
var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1286
|
-
function
|
|
1323
|
+
var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Un = /(?:[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;
|
|
1324
|
+
function Dn(e) {
|
|
1287
1325
|
var t = {};
|
|
1288
|
-
return e.replace(
|
|
1326
|
+
return e.replace(Un, function(r) {
|
|
1289
1327
|
var n = r.length;
|
|
1290
1328
|
switch (r[0]) {
|
|
1291
1329
|
case "G":
|
|
@@ -1374,11 +1412,11 @@ function Un(e) {
|
|
|
1374
1412
|
return "";
|
|
1375
1413
|
}), t;
|
|
1376
1414
|
}
|
|
1377
|
-
var
|
|
1378
|
-
function
|
|
1415
|
+
var Fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1416
|
+
function jn(e) {
|
|
1379
1417
|
if (e.length === 0)
|
|
1380
1418
|
throw new Error("Number skeleton cannot be empty");
|
|
1381
|
-
for (var t = e.split(
|
|
1419
|
+
for (var t = e.split(Fn).filter(function(f) {
|
|
1382
1420
|
return f.length > 0;
|
|
1383
1421
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1384
1422
|
var o = i[n], s = o.split("/");
|
|
@@ -1393,10 +1431,10 @@ function Fn(e) {
|
|
|
1393
1431
|
}
|
|
1394
1432
|
return r;
|
|
1395
1433
|
}
|
|
1396
|
-
function
|
|
1434
|
+
function kn(e) {
|
|
1397
1435
|
return e.replace(/^(.*?)-/, "");
|
|
1398
1436
|
}
|
|
1399
|
-
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1437
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, Vn = /(\*)(0+)|(#+)(0+)|(0+)/g, sr = /^(0+)$/;
|
|
1400
1438
|
function xt(e) {
|
|
1401
1439
|
var t = {};
|
|
1402
1440
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
|
|
@@ -1443,7 +1481,7 @@ function ar(e) {
|
|
|
1443
1481
|
};
|
|
1444
1482
|
}
|
|
1445
1483
|
}
|
|
1446
|
-
function
|
|
1484
|
+
function Xn(e) {
|
|
1447
1485
|
var t;
|
|
1448
1486
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1449
1487
|
notation: "engineering"
|
|
@@ -1461,7 +1499,7 @@ function _t(e) {
|
|
|
1461
1499
|
var t = {}, r = ar(e);
|
|
1462
1500
|
return r || t;
|
|
1463
1501
|
}
|
|
1464
|
-
function
|
|
1502
|
+
function zn(e) {
|
|
1465
1503
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1466
1504
|
var i = n[r];
|
|
1467
1505
|
switch (i.stem) {
|
|
@@ -1485,7 +1523,7 @@ function Xn(e) {
|
|
|
1485
1523
|
continue;
|
|
1486
1524
|
case "measure-unit":
|
|
1487
1525
|
case "unit":
|
|
1488
|
-
t.style = "unit", t.unit =
|
|
1526
|
+
t.style = "unit", t.unit = kn(i.options[0]);
|
|
1489
1527
|
continue;
|
|
1490
1528
|
case "compact-short":
|
|
1491
1529
|
case "K":
|
|
@@ -1547,7 +1585,7 @@ function Xn(e) {
|
|
|
1547
1585
|
case "integer-width":
|
|
1548
1586
|
if (i.options.length > 1)
|
|
1549
1587
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1550
|
-
i.options[0].replace(
|
|
1588
|
+
i.options[0].replace(Vn, function(l, u, h, c, f, m) {
|
|
1551
1589
|
if (u)
|
|
1552
1590
|
t.minimumIntegerDigits = h.length;
|
|
1553
1591
|
else {
|
|
@@ -1580,7 +1618,7 @@ function Xn(e) {
|
|
|
1580
1618
|
}
|
|
1581
1619
|
var s = ar(i.stem);
|
|
1582
1620
|
s && (t = y(y({}, t), s));
|
|
1583
|
-
var a =
|
|
1621
|
+
var a = Xn(i.stem);
|
|
1584
1622
|
a && (t = y(y({}, t), a));
|
|
1585
1623
|
}
|
|
1586
1624
|
return t;
|
|
@@ -3000,22 +3038,23 @@ var ce = {
|
|
|
3000
3038
|
"h"
|
|
3001
3039
|
]
|
|
3002
3040
|
};
|
|
3003
|
-
function
|
|
3041
|
+
function Wn(e, t) {
|
|
3004
3042
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3005
3043
|
var i = e.charAt(n);
|
|
3006
3044
|
if (i === "j") {
|
|
3007
3045
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3008
3046
|
o++, n++;
|
|
3009
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3047
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Zn(t);
|
|
3010
3048
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3011
3049
|
r += l;
|
|
3012
3050
|
for (; s-- > 0; )
|
|
3013
3051
|
r = u + r;
|
|
3014
|
-
} else
|
|
3052
|
+
} else
|
|
3053
|
+
i === "J" ? r += "H" : r += i;
|
|
3015
3054
|
}
|
|
3016
3055
|
return r;
|
|
3017
3056
|
}
|
|
3018
|
-
function
|
|
3057
|
+
function Zn(e) {
|
|
3019
3058
|
var t = e.hourCycle;
|
|
3020
3059
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3021
3060
|
e.hourCycles && // @ts-ignore
|
|
@@ -3037,20 +3076,20 @@ function Wn(e) {
|
|
|
3037
3076
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3038
3077
|
return i[0];
|
|
3039
3078
|
}
|
|
3040
|
-
var Oe,
|
|
3079
|
+
var Oe, Qn = new RegExp("^".concat(ir.source, "*")), Jn = new RegExp("".concat(ir.source, "*$"));
|
|
3041
3080
|
function v(e, t) {
|
|
3042
3081
|
return { start: e, end: t };
|
|
3043
3082
|
}
|
|
3044
|
-
var
|
|
3083
|
+
var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), qn = !!String.fromCodePoint, Kn = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ri = !!String.prototype.trimEnd, ni = !!Number.isSafeInteger, ii = ni ? Number.isSafeInteger : function(e) {
|
|
3045
3084
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3046
3085
|
}, Ve = !0;
|
|
3047
3086
|
try {
|
|
3048
|
-
var
|
|
3049
|
-
Ve = ((Oe =
|
|
3087
|
+
var oi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3088
|
+
Ve = ((Oe = oi.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3050
3089
|
} catch (e) {
|
|
3051
3090
|
Ve = !1;
|
|
3052
3091
|
}
|
|
3053
|
-
var Et =
|
|
3092
|
+
var Et = Yn ? (
|
|
3054
3093
|
// Native
|
|
3055
3094
|
function(t, r, n) {
|
|
3056
3095
|
return t.startsWith(r, n);
|
|
@@ -3060,7 +3099,7 @@ var Et = Jn ? (
|
|
|
3060
3099
|
function(t, r, n) {
|
|
3061
3100
|
return t.slice(n, n + r.length) === r;
|
|
3062
3101
|
}
|
|
3063
|
-
), Xe =
|
|
3102
|
+
), Xe = qn ? String.fromCodePoint : (
|
|
3064
3103
|
// IE11
|
|
3065
3104
|
function() {
|
|
3066
3105
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3074,7 +3113,7 @@ var Et = Jn ? (
|
|
|
3074
3113
|
}
|
|
3075
3114
|
), St = (
|
|
3076
3115
|
// native
|
|
3077
|
-
|
|
3116
|
+
Kn ? Object.fromEntries : (
|
|
3078
3117
|
// Ponyfill
|
|
3079
3118
|
function(t) {
|
|
3080
3119
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3084,7 +3123,7 @@ var Et = Jn ? (
|
|
|
3084
3123
|
return r;
|
|
3085
3124
|
}
|
|
3086
3125
|
)
|
|
3087
|
-
), ur =
|
|
3126
|
+
), ur = ei ? (
|
|
3088
3127
|
// Native
|
|
3089
3128
|
function(t, r) {
|
|
3090
3129
|
return t.codePointAt(r);
|
|
@@ -3098,7 +3137,7 @@ var Et = Jn ? (
|
|
|
3098
3137
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3099
3138
|
}
|
|
3100
3139
|
}
|
|
3101
|
-
),
|
|
3140
|
+
), si = ti ? (
|
|
3102
3141
|
// Native
|
|
3103
3142
|
function(t) {
|
|
3104
3143
|
return t.trimStart();
|
|
@@ -3106,9 +3145,9 @@ var Et = Jn ? (
|
|
|
3106
3145
|
) : (
|
|
3107
3146
|
// Ponyfill
|
|
3108
3147
|
function(t) {
|
|
3109
|
-
return t.replace(
|
|
3148
|
+
return t.replace(Qn, "");
|
|
3110
3149
|
}
|
|
3111
|
-
),
|
|
3150
|
+
), ai = ri ? (
|
|
3112
3151
|
// Native
|
|
3113
3152
|
function(t) {
|
|
3114
3153
|
return t.trimEnd();
|
|
@@ -3116,7 +3155,7 @@ var Et = Jn ? (
|
|
|
3116
3155
|
) : (
|
|
3117
3156
|
// Ponyfill
|
|
3118
3157
|
function(t) {
|
|
3119
|
-
return t.replace(
|
|
3158
|
+
return t.replace(Jn, "");
|
|
3120
3159
|
}
|
|
3121
3160
|
);
|
|
3122
3161
|
function lr(e, t) {
|
|
@@ -3124,24 +3163,24 @@ function lr(e, t) {
|
|
|
3124
3163
|
}
|
|
3125
3164
|
var ze;
|
|
3126
3165
|
if (Ve) {
|
|
3127
|
-
var
|
|
3166
|
+
var wt = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3128
3167
|
ze = function(t, r) {
|
|
3129
3168
|
var n;
|
|
3130
|
-
|
|
3131
|
-
var i =
|
|
3169
|
+
wt.lastIndex = r;
|
|
3170
|
+
var i = wt.exec(t);
|
|
3132
3171
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3133
3172
|
};
|
|
3134
3173
|
} else
|
|
3135
3174
|
ze = function(t, r) {
|
|
3136
3175
|
for (var n = []; ; ) {
|
|
3137
3176
|
var i = ur(t, r);
|
|
3138
|
-
if (i === void 0 || hr(i) ||
|
|
3177
|
+
if (i === void 0 || hr(i) || ci(i))
|
|
3139
3178
|
break;
|
|
3140
3179
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3141
3180
|
}
|
|
3142
3181
|
return Xe.apply(void 0, n);
|
|
3143
3182
|
};
|
|
3144
|
-
var
|
|
3183
|
+
var ui = (
|
|
3145
3184
|
/** @class */
|
|
3146
3185
|
function() {
|
|
3147
3186
|
function e(t, r) {
|
|
@@ -3165,13 +3204,13 @@ var ai = (
|
|
|
3165
3204
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3166
3205
|
var a = this.clonePosition();
|
|
3167
3206
|
this.bump(), i.push({
|
|
3168
|
-
type:
|
|
3207
|
+
type: S.pound,
|
|
3169
3208
|
location: v(a, this.clonePosition())
|
|
3170
3209
|
});
|
|
3171
3210
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3172
3211
|
if (n)
|
|
3173
3212
|
break;
|
|
3174
|
-
return this.error(
|
|
3213
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3175
3214
|
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3176
3215
|
var s = this.parseTag(t, r);
|
|
3177
3216
|
if (s.err)
|
|
@@ -3193,7 +3232,7 @@ var ai = (
|
|
|
3193
3232
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3194
3233
|
return {
|
|
3195
3234
|
val: {
|
|
3196
|
-
type:
|
|
3235
|
+
type: S.literal,
|
|
3197
3236
|
value: "<".concat(i, "/>"),
|
|
3198
3237
|
location: v(n, this.clonePosition())
|
|
3199
3238
|
},
|
|
@@ -3206,24 +3245,24 @@ var ai = (
|
|
|
3206
3245
|
var s = o.val, a = this.clonePosition();
|
|
3207
3246
|
if (this.bumpIf("</")) {
|
|
3208
3247
|
if (this.isEOF() || !We(this.char()))
|
|
3209
|
-
return this.error(
|
|
3248
|
+
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3210
3249
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3211
|
-
return i !== u ? this.error(
|
|
3250
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3212
3251
|
val: {
|
|
3213
|
-
type:
|
|
3252
|
+
type: S.tag,
|
|
3214
3253
|
value: i,
|
|
3215
3254
|
children: s,
|
|
3216
3255
|
location: v(n, this.clonePosition())
|
|
3217
3256
|
},
|
|
3218
3257
|
err: null
|
|
3219
|
-
} : this.error(
|
|
3258
|
+
} : this.error(b.INVALID_TAG, v(a, this.clonePosition())));
|
|
3220
3259
|
} else
|
|
3221
|
-
return this.error(
|
|
3260
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3222
3261
|
} else
|
|
3223
|
-
return this.error(
|
|
3262
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3224
3263
|
}, e.prototype.parseTagName = function() {
|
|
3225
3264
|
var t = this.offset();
|
|
3226
|
-
for (this.bump(); !this.isEOF() &&
|
|
3265
|
+
for (this.bump(); !this.isEOF() && hi(this.char()); )
|
|
3227
3266
|
this.bump();
|
|
3228
3267
|
return this.message.slice(t, this.offset());
|
|
3229
3268
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3247,12 +3286,12 @@ var ai = (
|
|
|
3247
3286
|
}
|
|
3248
3287
|
var l = v(n, this.clonePosition());
|
|
3249
3288
|
return {
|
|
3250
|
-
val: { type:
|
|
3289
|
+
val: { type: S.literal, value: i, location: l },
|
|
3251
3290
|
err: null
|
|
3252
3291
|
};
|
|
3253
3292
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3254
3293
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3255
|
-
!
|
|
3294
|
+
!li(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3256
3295
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3257
3296
|
if (this.isEOF() || this.char() !== 39)
|
|
3258
3297
|
return null;
|
|
@@ -3295,19 +3334,19 @@ var ai = (
|
|
|
3295
3334
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3296
3335
|
var n = this.clonePosition();
|
|
3297
3336
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3298
|
-
return this.error(
|
|
3337
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3299
3338
|
if (this.char() === 125)
|
|
3300
|
-
return this.bump(), this.error(
|
|
3339
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3301
3340
|
var i = this.parseIdentifierIfPossible().value;
|
|
3302
3341
|
if (!i)
|
|
3303
|
-
return this.error(
|
|
3342
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3304
3343
|
if (this.bumpSpace(), this.isEOF())
|
|
3305
|
-
return this.error(
|
|
3344
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3306
3345
|
switch (this.char()) {
|
|
3307
3346
|
case 125:
|
|
3308
3347
|
return this.bump(), {
|
|
3309
3348
|
val: {
|
|
3310
|
-
type:
|
|
3349
|
+
type: S.argument,
|
|
3311
3350
|
// value does not include the opening and closing braces.
|
|
3312
3351
|
value: i,
|
|
3313
3352
|
location: v(n, this.clonePosition())
|
|
@@ -3315,9 +3354,9 @@ var ai = (
|
|
|
3315
3354
|
err: null
|
|
3316
3355
|
};
|
|
3317
3356
|
case 44:
|
|
3318
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3357
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3319
3358
|
default:
|
|
3320
|
-
return this.error(
|
|
3359
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3321
3360
|
}
|
|
3322
3361
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3323
3362
|
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
@@ -3328,7 +3367,7 @@ var ai = (
|
|
|
3328
3367
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3329
3368
|
switch (a) {
|
|
3330
3369
|
case "":
|
|
3331
|
-
return this.error(
|
|
3370
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3332
3371
|
case "number":
|
|
3333
3372
|
case "date":
|
|
3334
3373
|
case "time": {
|
|
@@ -3339,46 +3378,46 @@ var ai = (
|
|
|
3339
3378
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3340
3379
|
if (c.err)
|
|
3341
3380
|
return c;
|
|
3342
|
-
var f =
|
|
3381
|
+
var f = ai(c.val);
|
|
3343
3382
|
if (f.length === 0)
|
|
3344
|
-
return this.error(
|
|
3383
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3345
3384
|
var m = v(h, this.clonePosition());
|
|
3346
3385
|
u = { style: f, styleLocation: m };
|
|
3347
3386
|
}
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3351
|
-
var
|
|
3387
|
+
var d = this.tryParseArgumentClose(i);
|
|
3388
|
+
if (d.err)
|
|
3389
|
+
return d;
|
|
3390
|
+
var p = v(i, this.clonePosition());
|
|
3352
3391
|
if (u && Et(u == null ? void 0 : u.style, "::", 0)) {
|
|
3353
|
-
var
|
|
3392
|
+
var w = si(u.style.slice(2));
|
|
3354
3393
|
if (a === "number") {
|
|
3355
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3394
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3356
3395
|
return c.err ? c : {
|
|
3357
|
-
val: { type:
|
|
3396
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3358
3397
|
err: null
|
|
3359
3398
|
};
|
|
3360
3399
|
} else {
|
|
3361
|
-
if (
|
|
3362
|
-
return this.error(
|
|
3363
|
-
var
|
|
3364
|
-
this.locale && (
|
|
3400
|
+
if (w.length === 0)
|
|
3401
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3402
|
+
var M = w;
|
|
3403
|
+
this.locale && (M = Wn(w, this.locale));
|
|
3365
3404
|
var f = {
|
|
3366
|
-
type:
|
|
3367
|
-
pattern:
|
|
3405
|
+
type: W.dateTime,
|
|
3406
|
+
pattern: M,
|
|
3368
3407
|
location: u.styleLocation,
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3370
|
-
}, C = a === "date" ?
|
|
3408
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(M) : {}
|
|
3409
|
+
}, C = a === "date" ? S.date : S.time;
|
|
3371
3410
|
return {
|
|
3372
|
-
val: { type: C, value: n, location:
|
|
3411
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3373
3412
|
err: null
|
|
3374
3413
|
};
|
|
3375
3414
|
}
|
|
3376
3415
|
}
|
|
3377
3416
|
return {
|
|
3378
3417
|
val: {
|
|
3379
|
-
type: a === "number" ?
|
|
3418
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3380
3419
|
value: n,
|
|
3381
|
-
location:
|
|
3420
|
+
location: p,
|
|
3382
3421
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3383
3422
|
},
|
|
3384
3423
|
err: null
|
|
@@ -3387,30 +3426,30 @@ var ai = (
|
|
|
3387
3426
|
case "plural":
|
|
3388
3427
|
case "selectordinal":
|
|
3389
3428
|
case "select": {
|
|
3390
|
-
var
|
|
3429
|
+
var T = this.clonePosition();
|
|
3391
3430
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3392
|
-
return this.error(
|
|
3431
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, y({}, T)));
|
|
3393
3432
|
this.bumpSpace();
|
|
3394
|
-
var
|
|
3395
|
-
if (a !== "select" &&
|
|
3433
|
+
var _ = this.parseIdentifierIfPossible(), E = 0;
|
|
3434
|
+
if (a !== "select" && _.value === "offset") {
|
|
3396
3435
|
if (!this.bumpIf(":"))
|
|
3397
|
-
return this.error(
|
|
3436
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3398
3437
|
this.bumpSpace();
|
|
3399
|
-
var c = this.tryParseDecimalInteger(
|
|
3438
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3400
3439
|
if (c.err)
|
|
3401
3440
|
return c;
|
|
3402
|
-
this.bumpSpace(),
|
|
3441
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), E = c.val;
|
|
3403
3442
|
}
|
|
3404
|
-
var x = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3443
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, _);
|
|
3405
3444
|
if (x.err)
|
|
3406
3445
|
return x;
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3409
|
-
return
|
|
3446
|
+
var d = this.tryParseArgumentClose(i);
|
|
3447
|
+
if (d.err)
|
|
3448
|
+
return d;
|
|
3410
3449
|
var P = v(i, this.clonePosition());
|
|
3411
3450
|
return a === "select" ? {
|
|
3412
3451
|
val: {
|
|
3413
|
-
type:
|
|
3452
|
+
type: S.select,
|
|
3414
3453
|
value: n,
|
|
3415
3454
|
options: St(x.val),
|
|
3416
3455
|
location: P
|
|
@@ -3418,10 +3457,10 @@ var ai = (
|
|
|
3418
3457
|
err: null
|
|
3419
3458
|
} : {
|
|
3420
3459
|
val: {
|
|
3421
|
-
type:
|
|
3460
|
+
type: S.plural,
|
|
3422
3461
|
value: n,
|
|
3423
3462
|
options: St(x.val),
|
|
3424
|
-
offset:
|
|
3463
|
+
offset: E,
|
|
3425
3464
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3426
3465
|
location: P
|
|
3427
3466
|
},
|
|
@@ -3429,10 +3468,10 @@ var ai = (
|
|
|
3429
3468
|
};
|
|
3430
3469
|
}
|
|
3431
3470
|
default:
|
|
3432
|
-
return this.error(
|
|
3471
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3433
3472
|
}
|
|
3434
3473
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3435
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3474
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3436
3475
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3437
3476
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3438
3477
|
var n = this.char();
|
|
@@ -3441,7 +3480,7 @@ var ai = (
|
|
|
3441
3480
|
this.bump();
|
|
3442
3481
|
var i = this.clonePosition();
|
|
3443
3482
|
if (!this.bumpUntil("'"))
|
|
3444
|
-
return this.error(
|
|
3483
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3445
3484
|
this.bump();
|
|
3446
3485
|
break;
|
|
3447
3486
|
}
|
|
@@ -3471,16 +3510,16 @@ var ai = (
|
|
|
3471
3510
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3472
3511
|
var n = [];
|
|
3473
3512
|
try {
|
|
3474
|
-
n =
|
|
3513
|
+
n = jn(t);
|
|
3475
3514
|
} catch (i) {
|
|
3476
|
-
return this.error(
|
|
3515
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3477
3516
|
}
|
|
3478
3517
|
return {
|
|
3479
3518
|
val: {
|
|
3480
|
-
type:
|
|
3519
|
+
type: W.number,
|
|
3481
3520
|
tokens: n,
|
|
3482
3521
|
location: r,
|
|
3483
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3522
|
+
parsedOptions: this.shouldParseSkeletons ? zn(n) : {}
|
|
3484
3523
|
},
|
|
3485
3524
|
err: null
|
|
3486
3525
|
};
|
|
@@ -3489,7 +3528,7 @@ var ai = (
|
|
|
3489
3528
|
if (u.length === 0) {
|
|
3490
3529
|
var c = this.clonePosition();
|
|
3491
3530
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3492
|
-
var f = this.tryParseDecimalInteger(
|
|
3531
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3493
3532
|
if (f.err)
|
|
3494
3533
|
return f;
|
|
3495
3534
|
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3497,26 +3536,26 @@ var ai = (
|
|
|
3497
3536
|
break;
|
|
3498
3537
|
}
|
|
3499
3538
|
if (l.has(u))
|
|
3500
|
-
return this.error(r === "select" ?
|
|
3539
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3501
3540
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3502
3541
|
var m = this.clonePosition();
|
|
3503
3542
|
if (!this.bumpIf("{"))
|
|
3504
|
-
return this.error(r === "select" ?
|
|
3505
|
-
var
|
|
3506
|
-
if (p.err)
|
|
3507
|
-
return p;
|
|
3508
|
-
var d = this.tryParseArgumentClose(m);
|
|
3543
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3544
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3509
3545
|
if (d.err)
|
|
3510
3546
|
return d;
|
|
3547
|
+
var p = this.tryParseArgumentClose(m);
|
|
3548
|
+
if (p.err)
|
|
3549
|
+
return p;
|
|
3511
3550
|
a.push([
|
|
3512
3551
|
u,
|
|
3513
3552
|
{
|
|
3514
|
-
value:
|
|
3553
|
+
value: d.val,
|
|
3515
3554
|
location: v(m, this.clonePosition())
|
|
3516
3555
|
}
|
|
3517
3556
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3518
3557
|
}
|
|
3519
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3558
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3520
3559
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3521
3560
|
var n = 1, i = this.clonePosition();
|
|
3522
3561
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3528,7 +3567,7 @@ var ai = (
|
|
|
3528
3567
|
break;
|
|
3529
3568
|
}
|
|
3530
3569
|
var l = v(i, this.clonePosition());
|
|
3531
|
-
return o ? (s *= n,
|
|
3570
|
+
return o ? (s *= n, ii(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3532
3571
|
}, e.prototype.offset = function() {
|
|
3533
3572
|
return this.position.offset;
|
|
3534
3573
|
}, e.prototype.isEOF = function() {
|
|
@@ -3597,16 +3636,16 @@ var ai = (
|
|
|
3597
3636
|
function We(e) {
|
|
3598
3637
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3599
3638
|
}
|
|
3600
|
-
function
|
|
3639
|
+
function li(e) {
|
|
3601
3640
|
return We(e) || e === 47;
|
|
3602
3641
|
}
|
|
3603
|
-
function
|
|
3642
|
+
function hi(e) {
|
|
3604
3643
|
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;
|
|
3605
3644
|
}
|
|
3606
3645
|
function hr(e) {
|
|
3607
3646
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3608
3647
|
}
|
|
3609
|
-
function
|
|
3648
|
+
function ci(e) {
|
|
3610
3649
|
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;
|
|
3611
3650
|
}
|
|
3612
3651
|
function Ze(e) {
|
|
@@ -3614,26 +3653,27 @@ function Ze(e) {
|
|
|
3614
3653
|
if (delete t.location, er(t) || tr(t))
|
|
3615
3654
|
for (var r in t.options)
|
|
3616
3655
|
delete t.options[r].location, Ze(t.options[r].value);
|
|
3617
|
-
else
|
|
3656
|
+
else
|
|
3657
|
+
Yt(t) && nr(t.style) || (qt(t) || Kt(t)) && ke(t.style) ? delete t.style.location : rr(t) && Ze(t.children);
|
|
3618
3658
|
});
|
|
3619
3659
|
}
|
|
3620
|
-
function
|
|
3660
|
+
function fi(e, t) {
|
|
3621
3661
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3622
|
-
var r = new
|
|
3662
|
+
var r = new ui(e, t).parse();
|
|
3623
3663
|
if (r.err) {
|
|
3624
|
-
var n = SyntaxError(
|
|
3664
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3625
3665
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3626
3666
|
}
|
|
3627
3667
|
return t != null && t.captureLocation || Ze(r.val), r.val;
|
|
3628
3668
|
}
|
|
3629
|
-
var
|
|
3669
|
+
var Z;
|
|
3630
3670
|
(function(e) {
|
|
3631
3671
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3632
|
-
})(
|
|
3672
|
+
})(Z || (Z = {}));
|
|
3633
3673
|
var Ee = (
|
|
3634
3674
|
/** @class */
|
|
3635
3675
|
function(e) {
|
|
3636
|
-
|
|
3676
|
+
$(t, e);
|
|
3637
3677
|
function t(r, n, i) {
|
|
3638
3678
|
var o = e.call(this, r) || this;
|
|
3639
3679
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3642,51 +3682,51 @@ var Ee = (
|
|
|
3642
3682
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3643
3683
|
}, t;
|
|
3644
3684
|
}(Error)
|
|
3645
|
-
),
|
|
3685
|
+
), Tt = (
|
|
3646
3686
|
/** @class */
|
|
3647
3687
|
function(e) {
|
|
3648
|
-
|
|
3688
|
+
$(t, e);
|
|
3649
3689
|
function t(r, n, i, o) {
|
|
3650
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3690
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3651
3691
|
}
|
|
3652
3692
|
return t;
|
|
3653
3693
|
}(Ee)
|
|
3654
|
-
),
|
|
3694
|
+
), mi = (
|
|
3655
3695
|
/** @class */
|
|
3656
3696
|
function(e) {
|
|
3657
|
-
|
|
3697
|
+
$(t, e);
|
|
3658
3698
|
function t(r, n, i) {
|
|
3659
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3699
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3660
3700
|
}
|
|
3661
3701
|
return t;
|
|
3662
3702
|
}(Ee)
|
|
3663
|
-
),
|
|
3703
|
+
), di = (
|
|
3664
3704
|
/** @class */
|
|
3665
3705
|
function(e) {
|
|
3666
|
-
|
|
3706
|
+
$(t, e);
|
|
3667
3707
|
function t(r, n) {
|
|
3668
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3708
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3669
3709
|
}
|
|
3670
3710
|
return t;
|
|
3671
3711
|
}(Ee)
|
|
3672
|
-
),
|
|
3712
|
+
), A;
|
|
3673
3713
|
(function(e) {
|
|
3674
3714
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3675
|
-
})(
|
|
3676
|
-
function
|
|
3715
|
+
})(A || (A = {}));
|
|
3716
|
+
function pi(e) {
|
|
3677
3717
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3678
3718
|
var n = t[t.length - 1];
|
|
3679
|
-
return !n || n.type !==
|
|
3719
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3680
3720
|
}, []);
|
|
3681
3721
|
}
|
|
3682
|
-
function
|
|
3722
|
+
function bi(e) {
|
|
3683
3723
|
return typeof e == "function";
|
|
3684
3724
|
}
|
|
3685
3725
|
function pe(e, t, r, n, i, o, s) {
|
|
3686
3726
|
if (e.length === 1 && vt(e[0]))
|
|
3687
3727
|
return [
|
|
3688
3728
|
{
|
|
3689
|
-
type:
|
|
3729
|
+
type: A.literal,
|
|
3690
3730
|
value: e[0].value
|
|
3691
3731
|
}
|
|
3692
3732
|
];
|
|
@@ -3694,25 +3734,25 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3694
3734
|
var h = u[l];
|
|
3695
3735
|
if (vt(h)) {
|
|
3696
3736
|
a.push({
|
|
3697
|
-
type:
|
|
3737
|
+
type: A.literal,
|
|
3698
3738
|
value: h.value
|
|
3699
3739
|
});
|
|
3700
3740
|
continue;
|
|
3701
3741
|
}
|
|
3702
|
-
if (
|
|
3742
|
+
if (Gn(h)) {
|
|
3703
3743
|
typeof o == "number" && a.push({
|
|
3704
|
-
type:
|
|
3744
|
+
type: A.literal,
|
|
3705
3745
|
value: r.getNumberFormat(t).format(o)
|
|
3706
3746
|
});
|
|
3707
3747
|
continue;
|
|
3708
3748
|
}
|
|
3709
3749
|
var c = h.value;
|
|
3710
3750
|
if (!(i && c in i))
|
|
3711
|
-
throw new
|
|
3751
|
+
throw new di(c, s);
|
|
3712
3752
|
var f = i[c];
|
|
3713
|
-
if (
|
|
3753
|
+
if ($n(h)) {
|
|
3714
3754
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3715
|
-
type: typeof f == "string" ?
|
|
3755
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3716
3756
|
value: f
|
|
3717
3757
|
});
|
|
3718
3758
|
continue;
|
|
@@ -3720,7 +3760,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3720
3760
|
if (qt(h)) {
|
|
3721
3761
|
var m = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3722
3762
|
a.push({
|
|
3723
|
-
type:
|
|
3763
|
+
type: A.literal,
|
|
3724
3764
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3725
3765
|
});
|
|
3726
3766
|
continue;
|
|
@@ -3728,7 +3768,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3728
3768
|
if (Kt(h)) {
|
|
3729
3769
|
var m = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3730
3770
|
a.push({
|
|
3731
|
-
type:
|
|
3771
|
+
type: A.literal,
|
|
3732
3772
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3733
3773
|
});
|
|
3734
3774
|
continue;
|
|
@@ -3736,58 +3776,58 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3736
3776
|
if (Yt(h)) {
|
|
3737
3777
|
var m = typeof h.style == "string" ? n.number[h.style] : nr(h.style) ? h.style.parsedOptions : void 0;
|
|
3738
3778
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3739
|
-
type:
|
|
3779
|
+
type: A.literal,
|
|
3740
3780
|
value: r.getNumberFormat(t, m).format(f)
|
|
3741
3781
|
});
|
|
3742
3782
|
continue;
|
|
3743
3783
|
}
|
|
3744
3784
|
if (rr(h)) {
|
|
3745
|
-
var
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3748
|
-
var
|
|
3749
|
-
return
|
|
3785
|
+
var d = h.children, p = h.value, w = i[p];
|
|
3786
|
+
if (!bi(w))
|
|
3787
|
+
throw new mi(p, "function", s);
|
|
3788
|
+
var M = pe(d, t, r, n, i, o), C = w(M.map(function(E) {
|
|
3789
|
+
return E.value;
|
|
3750
3790
|
}));
|
|
3751
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3791
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(E) {
|
|
3752
3792
|
return {
|
|
3753
|
-
type: typeof
|
|
3754
|
-
value:
|
|
3793
|
+
type: typeof E == "string" ? A.literal : A.object,
|
|
3794
|
+
value: E
|
|
3755
3795
|
};
|
|
3756
3796
|
}));
|
|
3757
3797
|
}
|
|
3758
3798
|
if (er(h)) {
|
|
3759
|
-
var
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3762
|
-
a.push.apply(a, pe(
|
|
3799
|
+
var T = h.options[f] || h.options.other;
|
|
3800
|
+
if (!T)
|
|
3801
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3802
|
+
a.push.apply(a, pe(T.value, t, r, n, i));
|
|
3763
3803
|
continue;
|
|
3764
3804
|
}
|
|
3765
3805
|
if (tr(h)) {
|
|
3766
|
-
var
|
|
3767
|
-
if (!
|
|
3806
|
+
var T = h.options["=".concat(f)];
|
|
3807
|
+
if (!T) {
|
|
3768
3808
|
if (!Intl.PluralRules)
|
|
3769
3809
|
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3770
3810
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3771
|
-
`,
|
|
3772
|
-
var
|
|
3773
|
-
|
|
3811
|
+
`, Z.MISSING_INTL_API, s);
|
|
3812
|
+
var _ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3813
|
+
T = h.options[_] || h.options.other;
|
|
3774
3814
|
}
|
|
3775
|
-
if (!
|
|
3776
|
-
throw new
|
|
3777
|
-
a.push.apply(a, pe(
|
|
3815
|
+
if (!T)
|
|
3816
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3817
|
+
a.push.apply(a, pe(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3778
3818
|
continue;
|
|
3779
3819
|
}
|
|
3780
3820
|
}
|
|
3781
|
-
return
|
|
3821
|
+
return pi(a);
|
|
3782
3822
|
}
|
|
3783
|
-
function
|
|
3823
|
+
function gi(e, t) {
|
|
3784
3824
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3785
3825
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3786
3826
|
}, {})) : e;
|
|
3787
3827
|
}
|
|
3788
|
-
function
|
|
3828
|
+
function vi(e, t) {
|
|
3789
3829
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3790
|
-
return r[n] =
|
|
3830
|
+
return r[n] = gi(e[n], t[n]), r;
|
|
3791
3831
|
}, y({}, e)) : e;
|
|
3792
3832
|
}
|
|
3793
3833
|
function Ie(e) {
|
|
@@ -3804,7 +3844,7 @@ function Ie(e) {
|
|
|
3804
3844
|
}
|
|
3805
3845
|
};
|
|
3806
3846
|
}
|
|
3807
|
-
function
|
|
3847
|
+
function yi(e) {
|
|
3808
3848
|
return e === void 0 && (e = {
|
|
3809
3849
|
number: {},
|
|
3810
3850
|
dateTime: {},
|
|
@@ -3813,7 +3853,7 @@ function vi(e) {
|
|
|
3813
3853
|
getNumberFormat: Ce(function() {
|
|
3814
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3815
3855
|
r[n] = arguments[n];
|
|
3816
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3856
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3817
3857
|
}, {
|
|
3818
3858
|
cache: Ie(e.number),
|
|
3819
3859
|
strategy: Pe.variadic
|
|
@@ -3821,7 +3861,7 @@ function vi(e) {
|
|
|
3821
3861
|
getDateTimeFormat: Ce(function() {
|
|
3822
3862
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3823
3863
|
r[n] = arguments[n];
|
|
3824
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3864
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3825
3865
|
}, {
|
|
3826
3866
|
cache: Ie(e.dateTime),
|
|
3827
3867
|
strategy: Pe.variadic
|
|
@@ -3829,14 +3869,14 @@ function vi(e) {
|
|
|
3829
3869
|
getPluralRules: Ce(function() {
|
|
3830
3870
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3831
3871
|
r[n] = arguments[n];
|
|
3832
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3872
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3833
3873
|
}, {
|
|
3834
3874
|
cache: Ie(e.pluralRules),
|
|
3835
3875
|
strategy: Pe.variadic
|
|
3836
3876
|
})
|
|
3837
3877
|
};
|
|
3838
3878
|
}
|
|
3839
|
-
var
|
|
3879
|
+
var xi = (
|
|
3840
3880
|
/** @class */
|
|
3841
3881
|
function() {
|
|
3842
3882
|
function e(t, r, n, i) {
|
|
@@ -3851,7 +3891,7 @@ var yi = (
|
|
|
3851
3891
|
if (u.length === 1)
|
|
3852
3892
|
return u[0].value;
|
|
3853
3893
|
var h = u.reduce(function(c, f) {
|
|
3854
|
-
return !c.length || f.type !==
|
|
3894
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3855
3895
|
}, []);
|
|
3856
3896
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3857
3897
|
}, this.formatToParts = function(l) {
|
|
@@ -3868,13 +3908,13 @@ var yi = (
|
|
|
3868
3908
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3869
3909
|
var s = i || {};
|
|
3870
3910
|
s.formatters;
|
|
3871
|
-
var a =
|
|
3911
|
+
var a = qr(s, ["formatters"]);
|
|
3872
3912
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3873
3913
|
} else
|
|
3874
3914
|
this.ast = t;
|
|
3875
3915
|
if (!Array.isArray(this.ast))
|
|
3876
3916
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3877
|
-
this.formats =
|
|
3917
|
+
this.formats = vi(e.formats, n), this.formatters = i && i.formatters || yi(this.formatterCache);
|
|
3878
3918
|
}
|
|
3879
3919
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3880
3920
|
get: function() {
|
|
@@ -3887,7 +3927,7 @@ var yi = (
|
|
|
3887
3927
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3888
3928
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3889
3929
|
}
|
|
3890
|
-
}, e.__parse =
|
|
3930
|
+
}, e.__parse = fi, e.formats = {
|
|
3891
3931
|
number: {
|
|
3892
3932
|
integer: {
|
|
3893
3933
|
maximumFractionDigits: 0
|
|
@@ -3948,7 +3988,7 @@ var yi = (
|
|
|
3948
3988
|
}, e;
|
|
3949
3989
|
}()
|
|
3950
3990
|
);
|
|
3951
|
-
function
|
|
3991
|
+
function _i(e, t) {
|
|
3952
3992
|
if (t == null)
|
|
3953
3993
|
return;
|
|
3954
3994
|
if (t in e)
|
|
@@ -3969,31 +4009,31 @@ function xi(e, t) {
|
|
|
3969
4009
|
n = void 0;
|
|
3970
4010
|
return n;
|
|
3971
4011
|
}
|
|
3972
|
-
const
|
|
4012
|
+
const G = {}, Ei = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), cr = (e, t) => {
|
|
3973
4013
|
if (t == null)
|
|
3974
4014
|
return;
|
|
3975
|
-
if (t in
|
|
3976
|
-
return
|
|
4015
|
+
if (t in G && e in G[t])
|
|
4016
|
+
return G[t][e];
|
|
3977
4017
|
const r = Se(t);
|
|
3978
4018
|
for (let n = 0; n < r.length; n++) {
|
|
3979
|
-
const i = r[n], o =
|
|
4019
|
+
const i = r[n], o = wi(i, e);
|
|
3980
4020
|
if (o)
|
|
3981
|
-
return
|
|
4021
|
+
return Ei(e, t, o);
|
|
3982
4022
|
}
|
|
3983
4023
|
};
|
|
3984
|
-
let
|
|
4024
|
+
let et;
|
|
3985
4025
|
const ue = _e({});
|
|
3986
|
-
function
|
|
3987
|
-
return
|
|
4026
|
+
function Si(e) {
|
|
4027
|
+
return et[e] || null;
|
|
3988
4028
|
}
|
|
3989
4029
|
function fr(e) {
|
|
3990
|
-
return e in
|
|
4030
|
+
return e in et;
|
|
3991
4031
|
}
|
|
3992
|
-
function
|
|
4032
|
+
function wi(e, t) {
|
|
3993
4033
|
if (!fr(e))
|
|
3994
4034
|
return null;
|
|
3995
|
-
const r =
|
|
3996
|
-
return
|
|
4035
|
+
const r = Si(e);
|
|
4036
|
+
return _i(r, t);
|
|
3997
4037
|
}
|
|
3998
4038
|
function Ti(e) {
|
|
3999
4039
|
if (e == null)
|
|
@@ -4006,21 +4046,21 @@ function Ti(e) {
|
|
|
4006
4046
|
}
|
|
4007
4047
|
}
|
|
4008
4048
|
function mr(e, ...t) {
|
|
4009
|
-
delete
|
|
4049
|
+
delete G[e], ue.update((r) => (r[e] = Pn.all([r[e] || {}, ...t]), r));
|
|
4010
4050
|
}
|
|
4011
|
-
|
|
4051
|
+
q(
|
|
4012
4052
|
[ue],
|
|
4013
4053
|
([e]) => Object.keys(e)
|
|
4014
4054
|
);
|
|
4015
|
-
ue.subscribe((e) =>
|
|
4055
|
+
ue.subscribe((e) => et = e);
|
|
4016
4056
|
const be = {};
|
|
4017
|
-
function
|
|
4057
|
+
function Hi(e, t) {
|
|
4018
4058
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4019
4059
|
}
|
|
4020
4060
|
function dr(e) {
|
|
4021
4061
|
return be[e];
|
|
4022
4062
|
}
|
|
4023
|
-
function
|
|
4063
|
+
function Bi(e) {
|
|
4024
4064
|
return Se(e).map((t) => {
|
|
4025
4065
|
const r = dr(t);
|
|
4026
4066
|
return [t, r ? [...r] : []];
|
|
@@ -4034,27 +4074,27 @@ function Qe(e) {
|
|
|
4034
4074
|
}
|
|
4035
4075
|
);
|
|
4036
4076
|
}
|
|
4037
|
-
function
|
|
4077
|
+
function Ai(e, t) {
|
|
4038
4078
|
return Promise.all(
|
|
4039
|
-
t.map((n) => (
|
|
4079
|
+
t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
|
|
4040
4080
|
).then((n) => mr(e, ...n));
|
|
4041
4081
|
}
|
|
4042
|
-
const
|
|
4082
|
+
const te = {};
|
|
4043
4083
|
function pr(e) {
|
|
4044
4084
|
if (!Qe(e))
|
|
4045
|
-
return e in
|
|
4046
|
-
const t =
|
|
4047
|
-
return
|
|
4085
|
+
return e in te ? te[e] : Promise.resolve();
|
|
4086
|
+
const t = Bi(e);
|
|
4087
|
+
return te[e] = Promise.all(
|
|
4048
4088
|
t.map(
|
|
4049
|
-
([r, n]) =>
|
|
4089
|
+
([r, n]) => Ai(r, n)
|
|
4050
4090
|
)
|
|
4051
4091
|
).then(() => {
|
|
4052
4092
|
if (Qe(e))
|
|
4053
4093
|
return pr(e);
|
|
4054
|
-
delete
|
|
4055
|
-
}),
|
|
4094
|
+
delete te[e];
|
|
4095
|
+
}), te[e];
|
|
4056
4096
|
}
|
|
4057
|
-
const
|
|
4097
|
+
const Ci = {
|
|
4058
4098
|
number: {
|
|
4059
4099
|
scientific: { notation: "scientific" },
|
|
4060
4100
|
engineering: { notation: "engineering" },
|
|
@@ -4083,72 +4123,72 @@ const Ai = {
|
|
|
4083
4123
|
timeZoneName: "short"
|
|
4084
4124
|
}
|
|
4085
4125
|
}
|
|
4086
|
-
},
|
|
4126
|
+
}, Pi = {
|
|
4087
4127
|
fallbackLocale: null,
|
|
4088
4128
|
loadingDelay: 200,
|
|
4089
|
-
formats:
|
|
4129
|
+
formats: Ci,
|
|
4090
4130
|
warnOnMissingMessages: !0,
|
|
4091
4131
|
handleMissingMessage: void 0,
|
|
4092
4132
|
ignoreTag: !0
|
|
4093
|
-
},
|
|
4094
|
-
function
|
|
4095
|
-
return
|
|
4133
|
+
}, Oi = Pi;
|
|
4134
|
+
function Q() {
|
|
4135
|
+
return Oi;
|
|
4096
4136
|
}
|
|
4097
|
-
const
|
|
4098
|
-
var
|
|
4137
|
+
const Me = _e(!1);
|
|
4138
|
+
var Ii = Object.defineProperty, Mi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $i = (e, t) => {
|
|
4099
4139
|
for (var r in t || (t = {}))
|
|
4100
|
-
|
|
4140
|
+
Li.call(t, r) && Bt(e, r, t[r]);
|
|
4101
4141
|
if (Ht)
|
|
4102
4142
|
for (var r of Ht(t))
|
|
4103
|
-
|
|
4143
|
+
Ri.call(t, r) && Bt(e, r, t[r]);
|
|
4104
4144
|
return e;
|
|
4105
|
-
},
|
|
4145
|
+
}, Gi = (e, t) => Mi(e, Ni(t));
|
|
4106
4146
|
let Je;
|
|
4107
4147
|
const ve = _e(null);
|
|
4108
4148
|
function At(e) {
|
|
4109
4149
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4110
4150
|
}
|
|
4111
|
-
function Se(e, t =
|
|
4151
|
+
function Se(e, t = Q().fallbackLocale) {
|
|
4112
4152
|
const r = At(e);
|
|
4113
4153
|
return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
|
|
4114
4154
|
}
|
|
4115
|
-
function
|
|
4155
|
+
function U() {
|
|
4116
4156
|
return Je != null ? Je : void 0;
|
|
4117
4157
|
}
|
|
4118
4158
|
ve.subscribe((e) => {
|
|
4119
4159
|
Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4120
4160
|
});
|
|
4121
|
-
const
|
|
4161
|
+
const Ui = (e) => {
|
|
4122
4162
|
if (e && Ti(e) && Qe(e)) {
|
|
4123
|
-
const { loadingDelay: t } =
|
|
4163
|
+
const { loadingDelay: t } = Q();
|
|
4124
4164
|
let r;
|
|
4125
|
-
return typeof window != "undefined" &&
|
|
4126
|
-
() =>
|
|
4165
|
+
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
4166
|
+
() => Me.set(!0),
|
|
4127
4167
|
t
|
|
4128
|
-
) :
|
|
4168
|
+
) : Me.set(!0), pr(e).then(() => {
|
|
4129
4169
|
ve.set(e);
|
|
4130
4170
|
}).finally(() => {
|
|
4131
|
-
clearTimeout(r),
|
|
4171
|
+
clearTimeout(r), Me.set(!1);
|
|
4132
4172
|
});
|
|
4133
4173
|
}
|
|
4134
4174
|
return ve.set(e);
|
|
4135
|
-
},
|
|
4136
|
-
set:
|
|
4137
|
-
}),
|
|
4175
|
+
}, K = Gi($i({}, ve), {
|
|
4176
|
+
set: Ui
|
|
4177
|
+
}), we = (e) => {
|
|
4138
4178
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4139
4179
|
return (n) => {
|
|
4140
4180
|
const i = JSON.stringify(n);
|
|
4141
4181
|
return i in t ? t[i] : t[i] = e(n);
|
|
4142
4182
|
};
|
|
4143
4183
|
};
|
|
4144
|
-
var
|
|
4184
|
+
var Di = Object.defineProperty, ye = Object.getOwnPropertySymbols, br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4145
4185
|
for (var r in t || (t = {}))
|
|
4146
4186
|
br.call(t, r) && Ct(e, r, t[r]);
|
|
4147
4187
|
if (ye)
|
|
4148
4188
|
for (var r of ye(t))
|
|
4149
4189
|
gr.call(t, r) && Ct(e, r, t[r]);
|
|
4150
4190
|
return e;
|
|
4151
|
-
},
|
|
4191
|
+
}, ee = (e, t) => {
|
|
4152
4192
|
var r = {};
|
|
4153
4193
|
for (var n in e)
|
|
4154
4194
|
br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4158,66 +4198,66 @@ var Ui = Object.defineProperty, ye = Object.getOwnPropertySymbols, br = Object.p
|
|
|
4158
4198
|
return r;
|
|
4159
4199
|
};
|
|
4160
4200
|
const se = (e, t) => {
|
|
4161
|
-
const { formats: r } =
|
|
4201
|
+
const { formats: r } = Q();
|
|
4162
4202
|
if (e in r && t in r[e])
|
|
4163
4203
|
return r[e][t];
|
|
4164
4204
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4165
|
-
},
|
|
4205
|
+
}, Fi = we(
|
|
4166
4206
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4207
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4168
4208
|
if (r == null)
|
|
4169
4209
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4170
4210
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4171
4211
|
}
|
|
4172
|
-
),
|
|
4212
|
+
), ji = we(
|
|
4173
4213
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4214
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4175
4215
|
if (r == null)
|
|
4176
4216
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4177
4217
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4178
4218
|
}
|
|
4179
|
-
),
|
|
4219
|
+
), ki = we(
|
|
4180
4220
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4221
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4182
4222
|
if (r == null)
|
|
4183
4223
|
throw new Error(
|
|
4184
4224
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4185
4225
|
);
|
|
4186
4226
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4227
|
}
|
|
4188
|
-
),
|
|
4228
|
+
), Vi = (e = {}) => {
|
|
4189
4229
|
var t = e, {
|
|
4190
|
-
locale: r =
|
|
4191
|
-
} = t, n =
|
|
4230
|
+
locale: r = U()
|
|
4231
|
+
} = t, n = ee(t, [
|
|
4192
4232
|
"locale"
|
|
4193
4233
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4234
|
+
return Fi(tt({ locale: r }, n));
|
|
4235
|
+
}, Xi = (e = {}) => {
|
|
4196
4236
|
var t = e, {
|
|
4197
|
-
locale: r =
|
|
4198
|
-
} = t, n =
|
|
4237
|
+
locale: r = U()
|
|
4238
|
+
} = t, n = ee(t, [
|
|
4199
4239
|
"locale"
|
|
4200
4240
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4241
|
+
return ji(tt({ locale: r }, n));
|
|
4242
|
+
}, zi = (e = {}) => {
|
|
4203
4243
|
var t = e, {
|
|
4204
|
-
locale: r =
|
|
4205
|
-
} = t, n =
|
|
4244
|
+
locale: r = U()
|
|
4245
|
+
} = t, n = ee(t, [
|
|
4206
4246
|
"locale"
|
|
4207
4247
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4248
|
+
return ki(tt({ locale: r }, n));
|
|
4249
|
+
}, Wi = we(
|
|
4210
4250
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4211
|
-
(e, t =
|
|
4212
|
-
ignoreTag:
|
|
4251
|
+
(e, t = U()) => new xi(e, t, Q().formats, {
|
|
4252
|
+
ignoreTag: Q().ignoreTag
|
|
4213
4253
|
})
|
|
4214
|
-
),
|
|
4254
|
+
), Zi = (e, t = {}) => {
|
|
4215
4255
|
var r, n, i, o;
|
|
4216
4256
|
let s = t;
|
|
4217
4257
|
typeof e == "object" && (s = e, e = s.id);
|
|
4218
4258
|
const {
|
|
4219
4259
|
values: a,
|
|
4220
|
-
locale: l =
|
|
4260
|
+
locale: l = U(),
|
|
4221
4261
|
default: u
|
|
4222
4262
|
} = s;
|
|
4223
4263
|
if (l == null)
|
|
@@ -4226,7 +4266,7 @@ const se = (e, t) => {
|
|
|
4226
4266
|
);
|
|
4227
4267
|
let h = cr(e, l);
|
|
4228
4268
|
if (!h)
|
|
4229
|
-
h = (o = (i = (n = (r =
|
|
4269
|
+
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4230
4270
|
else if (typeof h != "string")
|
|
4231
4271
|
return console.warn(
|
|
4232
4272
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4235,7 +4275,7 @@ const se = (e, t) => {
|
|
|
4235
4275
|
return h;
|
|
4236
4276
|
let c = h;
|
|
4237
4277
|
try {
|
|
4238
|
-
c =
|
|
4278
|
+
c = Wi(h, l).format(a);
|
|
4239
4279
|
} catch (f) {
|
|
4240
4280
|
f instanceof Error && console.warn(
|
|
4241
4281
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4243,18 +4283,18 @@ const se = (e, t) => {
|
|
|
4243
4283
|
);
|
|
4244
4284
|
}
|
|
4245
4285
|
return c;
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
window.emWidgets = { topic:
|
|
4252
|
-
const
|
|
4286
|
+
}, Qi = (e, t) => zi(t).format(e), Ji = (e, t) => Xi(t).format(e), Yi = (e, t) => Vi(t).format(e), qi = (e, t = U()) => cr(e, t), Ki = q([K, ue], () => Zi);
|
|
4287
|
+
q([K], () => Qi);
|
|
4288
|
+
q([K], () => Ji);
|
|
4289
|
+
q([K], () => Yi);
|
|
4290
|
+
q([K, ue], () => qi);
|
|
4291
|
+
window.emWidgets = { topic: mn };
|
|
4292
|
+
const eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4253
4293
|
function Pt(e, t) {
|
|
4254
4294
|
mr(e, t);
|
|
4255
4295
|
}
|
|
4256
|
-
function
|
|
4257
|
-
|
|
4296
|
+
function to(e) {
|
|
4297
|
+
K.set(e);
|
|
4258
4298
|
}
|
|
4259
4299
|
const Ot = {
|
|
4260
4300
|
en: {
|
|
@@ -4302,36 +4342,59 @@ const Ot = {
|
|
|
4302
4342
|
confirm: "Confirm"
|
|
4303
4343
|
}
|
|
4304
4344
|
};
|
|
4305
|
-
function
|
|
4306
|
-
|
|
4345
|
+
function ro(e, t) {
|
|
4346
|
+
if (e) {
|
|
4347
|
+
const r = document.createElement("style");
|
|
4348
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
function no(e, t) {
|
|
4352
|
+
const r = new URL(t);
|
|
4353
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4354
|
+
const i = document.createElement("style");
|
|
4355
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4356
|
+
}).catch((n) => {
|
|
4357
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4358
|
+
});
|
|
4307
4359
|
}
|
|
4308
|
-
|
|
4309
|
-
|
|
4360
|
+
function io(e, t, r) {
|
|
4361
|
+
if (window.emMessageBus) {
|
|
4362
|
+
const n = document.createElement("style");
|
|
4363
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4364
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4365
|
+
});
|
|
4366
|
+
}
|
|
4367
|
+
}
|
|
4368
|
+
function oo(e) {
|
|
4369
|
+
Ir(e, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4370
|
+
}
|
|
4371
|
+
const so = (e) => ({}), It = (e) => ({});
|
|
4372
|
+
function ao(e) {
|
|
4310
4373
|
let t, r;
|
|
4311
4374
|
return {
|
|
4312
4375
|
c() {
|
|
4313
|
-
t = ut("svg"), r = ut("path"),
|
|
4376
|
+
t = ut("svg"), r = ut("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4314
4377
|
},
|
|
4315
4378
|
m(n, i) {
|
|
4316
|
-
ae(n, t, i),
|
|
4379
|
+
ae(n, t, i), B(t, r);
|
|
4317
4380
|
},
|
|
4318
4381
|
p: L,
|
|
4319
4382
|
d(n) {
|
|
4320
|
-
n &&
|
|
4383
|
+
n && Y(t);
|
|
4321
4384
|
}
|
|
4322
4385
|
};
|
|
4323
4386
|
}
|
|
4324
|
-
function
|
|
4387
|
+
function Mt(e) {
|
|
4325
4388
|
let t, r, n;
|
|
4326
4389
|
return {
|
|
4327
4390
|
c() {
|
|
4328
|
-
t =
|
|
4391
|
+
t = N("div"), r = N("h2"), n = ne(
|
|
4329
4392
|
/*modaltitle*/
|
|
4330
4393
|
e[1]
|
|
4331
|
-
),
|
|
4394
|
+
), H(t, "class", "GeneralConfirmationTitle");
|
|
4332
4395
|
},
|
|
4333
4396
|
m(i, o) {
|
|
4334
|
-
ae(i, t, o),
|
|
4397
|
+
ae(i, t, o), B(t, r), B(r, n);
|
|
4335
4398
|
},
|
|
4336
4399
|
p(i, o) {
|
|
4337
4400
|
o & /*modaltitle*/
|
|
@@ -4342,25 +4405,25 @@ function Nt(e) {
|
|
|
4342
4405
|
);
|
|
4343
4406
|
},
|
|
4344
4407
|
d(i) {
|
|
4345
|
-
i &&
|
|
4408
|
+
i && Y(t);
|
|
4346
4409
|
}
|
|
4347
4410
|
};
|
|
4348
4411
|
}
|
|
4349
|
-
function
|
|
4412
|
+
function Nt(e) {
|
|
4350
4413
|
let t, r = (
|
|
4351
4414
|
/*$_*/
|
|
4352
4415
|
e[4]("cancel") + ""
|
|
4353
4416
|
), n, i, o;
|
|
4354
4417
|
return {
|
|
4355
4418
|
c() {
|
|
4356
|
-
t =
|
|
4419
|
+
t = N("button"), n = ne(r), H(t, "class", "GeneralCancelButton");
|
|
4357
4420
|
},
|
|
4358
4421
|
m(s, a) {
|
|
4359
|
-
ae(s, t, a),
|
|
4422
|
+
ae(s, t, a), B(t, n), i || (o = Ne(
|
|
4360
4423
|
t,
|
|
4361
4424
|
"click",
|
|
4362
4425
|
/*click_handler*/
|
|
4363
|
-
e[
|
|
4426
|
+
e[17]
|
|
4364
4427
|
), i = !0);
|
|
4365
4428
|
},
|
|
4366
4429
|
p(s, a) {
|
|
@@ -4369,177 +4432,169 @@ function Mt(e) {
|
|
|
4369
4432
|
s[4]("cancel") + "") && ge(n, r);
|
|
4370
4433
|
},
|
|
4371
4434
|
d(s) {
|
|
4372
|
-
s &&
|
|
4435
|
+
s && Y(t), i = !1, o();
|
|
4373
4436
|
}
|
|
4374
4437
|
};
|
|
4375
4438
|
}
|
|
4376
|
-
function
|
|
4439
|
+
function uo(e) {
|
|
4377
4440
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4378
4441
|
/*$_*/
|
|
4379
4442
|
e[4]("confirm") + ""
|
|
4380
|
-
), m,
|
|
4381
|
-
const
|
|
4443
|
+
), m, d, p, w;
|
|
4444
|
+
const M = (
|
|
4382
4445
|
/*#slots*/
|
|
4383
|
-
e[
|
|
4384
|
-
), C =
|
|
4385
|
-
|
|
4446
|
+
e[16].close
|
|
4447
|
+
), C = Ar(
|
|
4448
|
+
M,
|
|
4386
4449
|
e,
|
|
4387
4450
|
/*$$scope*/
|
|
4388
|
-
e[
|
|
4451
|
+
e[15],
|
|
4389
4452
|
It
|
|
4390
|
-
),
|
|
4391
|
-
let
|
|
4453
|
+
), T = C || ao();
|
|
4454
|
+
let _ = (
|
|
4392
4455
|
/*modaltitle*/
|
|
4393
|
-
e[1] &&
|
|
4394
|
-
),
|
|
4456
|
+
e[1] && Mt(e)
|
|
4457
|
+
), E = (
|
|
4395
4458
|
/*hascancelbutton*/
|
|
4396
|
-
e[2] &&
|
|
4459
|
+
e[2] && Nt(e)
|
|
4397
4460
|
);
|
|
4398
4461
|
return {
|
|
4399
4462
|
c() {
|
|
4400
|
-
t =
|
|
4463
|
+
t = N("div"), r = N("div"), n = N("span"), T && T.c(), i = le(), _ && _.c(), o = le(), s = N("div"), a = ne(
|
|
4401
4464
|
/*modaltext*/
|
|
4402
4465
|
e[0]
|
|
4403
|
-
), l = le(), u =
|
|
4404
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4405
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4466
|
+
), l = le(), u = N("div"), E && E.c(), h = le(), c = N("button"), m = ne(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4467
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4468
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4406
4469
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4407
4470
|
},
|
|
4408
4471
|
m(x, P) {
|
|
4409
|
-
ae(x, t, P),
|
|
4410
|
-
|
|
4472
|
+
ae(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4473
|
+
Ne(
|
|
4411
4474
|
n,
|
|
4412
4475
|
"click",
|
|
4413
4476
|
/*close*/
|
|
4414
4477
|
e[6]
|
|
4415
4478
|
),
|
|
4416
|
-
|
|
4479
|
+
Ne(
|
|
4417
4480
|
c,
|
|
4418
4481
|
"click",
|
|
4419
4482
|
/*click_handler_1*/
|
|
4420
|
-
e[
|
|
4483
|
+
e[18]
|
|
4421
4484
|
)
|
|
4422
|
-
],
|
|
4485
|
+
], p = !0);
|
|
4423
4486
|
},
|
|
4424
4487
|
p(x, [P]) {
|
|
4425
|
-
C && C.p && (!
|
|
4426
|
-
|
|
4488
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4489
|
+
32768) && Pr(
|
|
4427
4490
|
C,
|
|
4428
|
-
|
|
4491
|
+
M,
|
|
4429
4492
|
x,
|
|
4430
4493
|
/*$$scope*/
|
|
4431
|
-
x[
|
|
4432
|
-
|
|
4433
|
-
|
|
4494
|
+
x[15],
|
|
4495
|
+
d ? Cr(
|
|
4496
|
+
M,
|
|
4434
4497
|
/*$$scope*/
|
|
4435
|
-
x[
|
|
4498
|
+
x[15],
|
|
4436
4499
|
P,
|
|
4437
|
-
|
|
4438
|
-
) :
|
|
4500
|
+
so
|
|
4501
|
+
) : Or(
|
|
4439
4502
|
/*$$scope*/
|
|
4440
|
-
x[
|
|
4503
|
+
x[15]
|
|
4441
4504
|
),
|
|
4442
4505
|
It
|
|
4443
4506
|
), /*modaltitle*/
|
|
4444
|
-
x[1] ?
|
|
4507
|
+
x[1] ? _ ? _.p(x, P) : (_ = Mt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4445
4508
|
1) && ge(
|
|
4446
4509
|
a,
|
|
4447
4510
|
/*modaltext*/
|
|
4448
4511
|
x[0]
|
|
4449
4512
|
), /*hascancelbutton*/
|
|
4450
|
-
x[2] ?
|
|
4513
|
+
x[2] ? E ? E.p(x, P) : (E = Nt(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4451
4514
|
16) && f !== (f = /*$_*/
|
|
4452
4515
|
x[4]("confirm") + "") && ge(m, f);
|
|
4453
4516
|
},
|
|
4454
4517
|
i(x) {
|
|
4455
|
-
|
|
4518
|
+
d || (Ut(T, x), d = !0);
|
|
4456
4519
|
},
|
|
4457
4520
|
o(x) {
|
|
4458
|
-
|
|
4521
|
+
Vr(T, x), d = !1;
|
|
4459
4522
|
},
|
|
4460
4523
|
d(x) {
|
|
4461
|
-
x &&
|
|
4524
|
+
x && Y(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, J(w);
|
|
4462
4525
|
}
|
|
4463
4526
|
};
|
|
4464
4527
|
}
|
|
4465
|
-
function
|
|
4528
|
+
function lo(e, t, r) {
|
|
4466
4529
|
let n;
|
|
4467
|
-
|
|
4468
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl:
|
|
4469
|
-
const
|
|
4530
|
+
Br(e, Ki, (g) => r(4, n = g));
|
|
4531
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, M = window.navigator.userAgent, C = eo(M) !== "PC";
|
|
4532
|
+
const T = () => {
|
|
4470
4533
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4471
|
-
},
|
|
4472
|
-
|
|
4473
|
-
},
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
let b = new URL(m), R = document.createElement("style");
|
|
4478
|
-
fetch(b.href).then((F) => F.text()).then((F) => {
|
|
4479
|
-
R.innerHTML = F, setTimeout(
|
|
4480
|
-
() => {
|
|
4481
|
-
d.appendChild(R);
|
|
4482
|
-
},
|
|
4483
|
-
1
|
|
4484
|
-
);
|
|
4485
|
-
});
|
|
4486
|
-
}, x = () => {
|
|
4487
|
-
fetch(p).then((R) => R.json()).then((R) => {
|
|
4488
|
-
Object.keys(R).forEach((F) => {
|
|
4489
|
-
Pt(F, R[F]);
|
|
4534
|
+
}, _ = (g) => {
|
|
4535
|
+
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4536
|
+
}, E = () => {
|
|
4537
|
+
fetch(d).then((D) => D.json()).then((D) => {
|
|
4538
|
+
Object.keys(D).forEach((rt) => {
|
|
4539
|
+
Pt(rt, D[rt]);
|
|
4490
4540
|
});
|
|
4491
|
-
}).catch((
|
|
4492
|
-
console.log(
|
|
4541
|
+
}).catch((D) => {
|
|
4542
|
+
console.log(D);
|
|
4493
4543
|
});
|
|
4494
4544
|
};
|
|
4495
|
-
Object.keys(Ot).forEach((
|
|
4496
|
-
Pt(
|
|
4545
|
+
Object.keys(Ot).forEach((g) => {
|
|
4546
|
+
Pt(g, Ot[g]);
|
|
4497
4547
|
});
|
|
4498
|
-
const
|
|
4499
|
-
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4548
|
+
const x = () => {
|
|
4549
|
+
to(c);
|
|
4550
|
+
};
|
|
4551
|
+
Gr(() => () => {
|
|
4552
|
+
});
|
|
4553
|
+
const P = () => _("cancel"), vr = () => _("confirm");
|
|
4554
|
+
function yr(g) {
|
|
4555
|
+
Le[g ? "unshift" : "push"](() => {
|
|
4556
|
+
w = g, r(3, w);
|
|
4504
4557
|
});
|
|
4505
4558
|
}
|
|
4506
|
-
return e.$$set = (
|
|
4507
|
-
"modaltext" in
|
|
4559
|
+
return e.$$set = (g) => {
|
|
4560
|
+
"modaltext" in g && r(0, s = g.modaltext), "modaltitle" in g && r(1, a = g.modaltitle), "hascancelbutton" in g && r(2, l = g.hascancelbutton), "modalconfirmevent" in g && r(8, u = g.modalconfirmevent), "modalcancelevent" in g && r(9, h = g.modalcancelevent), "lang" in g && r(10, c = g.lang), "clientstyling" in g && r(11, f = g.clientstyling), "clientstylingurl" in g && r(12, m = g.clientstylingurl), "translationurl" in g && r(13, d = g.translationurl), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, o = g.$$scope);
|
|
4508
4561
|
}, e.$$.update = () => {
|
|
4509
4562
|
e.$$.dirty & /*modaltext, lang*/
|
|
4510
|
-
1025 && s && c &&
|
|
4511
|
-
2056 && f &&
|
|
4512
|
-
4104 && m &&
|
|
4513
|
-
|
|
4563
|
+
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4564
|
+
2056 && f && w && ro(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4565
|
+
4104 && m && w && no(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4566
|
+
16392 && p && w && io(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4567
|
+
8192 && d && E();
|
|
4514
4568
|
}, [
|
|
4515
4569
|
s,
|
|
4516
4570
|
a,
|
|
4517
4571
|
l,
|
|
4518
|
-
|
|
4572
|
+
w,
|
|
4519
4573
|
n,
|
|
4520
|
-
I,
|
|
4521
4574
|
C,
|
|
4522
|
-
|
|
4575
|
+
T,
|
|
4576
|
+
_,
|
|
4523
4577
|
u,
|
|
4524
4578
|
h,
|
|
4525
4579
|
c,
|
|
4526
4580
|
f,
|
|
4527
4581
|
m,
|
|
4582
|
+
d,
|
|
4528
4583
|
p,
|
|
4529
4584
|
o,
|
|
4530
4585
|
i,
|
|
4586
|
+
P,
|
|
4531
4587
|
vr,
|
|
4532
|
-
yr
|
|
4533
|
-
xr
|
|
4588
|
+
yr
|
|
4534
4589
|
];
|
|
4535
4590
|
}
|
|
4536
|
-
class
|
|
4591
|
+
class ho extends Jr {
|
|
4537
4592
|
constructor(t) {
|
|
4538
|
-
super(),
|
|
4593
|
+
super(), Zr(
|
|
4539
4594
|
this,
|
|
4540
4595
|
t,
|
|
4541
|
-
|
|
4542
|
-
|
|
4596
|
+
lo,
|
|
4597
|
+
uo,
|
|
4543
4598
|
Rt,
|
|
4544
4599
|
{
|
|
4545
4600
|
modaltext: 0,
|
|
@@ -4550,67 +4605,74 @@ class so extends Qr {
|
|
|
4550
4605
|
lang: 10,
|
|
4551
4606
|
clientstyling: 11,
|
|
4552
4607
|
clientstylingurl: 12,
|
|
4553
|
-
translationurl: 13
|
|
4608
|
+
translationurl: 13,
|
|
4609
|
+
mbsource: 14
|
|
4554
4610
|
},
|
|
4555
|
-
|
|
4611
|
+
oo
|
|
4556
4612
|
);
|
|
4557
4613
|
}
|
|
4558
4614
|
get modaltext() {
|
|
4559
4615
|
return this.$$.ctx[0];
|
|
4560
4616
|
}
|
|
4561
4617
|
set modaltext(t) {
|
|
4562
|
-
this.$$set({ modaltext: t }),
|
|
4618
|
+
this.$$set({ modaltext: t }), I();
|
|
4563
4619
|
}
|
|
4564
4620
|
get modaltitle() {
|
|
4565
4621
|
return this.$$.ctx[1];
|
|
4566
4622
|
}
|
|
4567
4623
|
set modaltitle(t) {
|
|
4568
|
-
this.$$set({ modaltitle: t }),
|
|
4624
|
+
this.$$set({ modaltitle: t }), I();
|
|
4569
4625
|
}
|
|
4570
4626
|
get hascancelbutton() {
|
|
4571
4627
|
return this.$$.ctx[2];
|
|
4572
4628
|
}
|
|
4573
4629
|
set hascancelbutton(t) {
|
|
4574
|
-
this.$$set({ hascancelbutton: t }),
|
|
4630
|
+
this.$$set({ hascancelbutton: t }), I();
|
|
4575
4631
|
}
|
|
4576
4632
|
get modalconfirmevent() {
|
|
4577
4633
|
return this.$$.ctx[8];
|
|
4578
4634
|
}
|
|
4579
4635
|
set modalconfirmevent(t) {
|
|
4580
|
-
this.$$set({ modalconfirmevent: t }),
|
|
4636
|
+
this.$$set({ modalconfirmevent: t }), I();
|
|
4581
4637
|
}
|
|
4582
4638
|
get modalcancelevent() {
|
|
4583
4639
|
return this.$$.ctx[9];
|
|
4584
4640
|
}
|
|
4585
4641
|
set modalcancelevent(t) {
|
|
4586
|
-
this.$$set({ modalcancelevent: t }),
|
|
4642
|
+
this.$$set({ modalcancelevent: t }), I();
|
|
4587
4643
|
}
|
|
4588
4644
|
get lang() {
|
|
4589
4645
|
return this.$$.ctx[10];
|
|
4590
4646
|
}
|
|
4591
4647
|
set lang(t) {
|
|
4592
|
-
this.$$set({ lang: t }),
|
|
4648
|
+
this.$$set({ lang: t }), I();
|
|
4593
4649
|
}
|
|
4594
4650
|
get clientstyling() {
|
|
4595
4651
|
return this.$$.ctx[11];
|
|
4596
4652
|
}
|
|
4597
4653
|
set clientstyling(t) {
|
|
4598
|
-
this.$$set({ clientstyling: t }),
|
|
4654
|
+
this.$$set({ clientstyling: t }), I();
|
|
4599
4655
|
}
|
|
4600
4656
|
get clientstylingurl() {
|
|
4601
4657
|
return this.$$.ctx[12];
|
|
4602
4658
|
}
|
|
4603
4659
|
set clientstylingurl(t) {
|
|
4604
|
-
this.$$set({ clientstylingurl: t }),
|
|
4660
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4605
4661
|
}
|
|
4606
4662
|
get translationurl() {
|
|
4607
4663
|
return this.$$.ctx[13];
|
|
4608
4664
|
}
|
|
4609
4665
|
set translationurl(t) {
|
|
4610
|
-
this.$$set({ translationurl: t }),
|
|
4666
|
+
this.$$set({ translationurl: t }), I();
|
|
4667
|
+
}
|
|
4668
|
+
get mbsource() {
|
|
4669
|
+
return this.$$.ctx[14];
|
|
4670
|
+
}
|
|
4671
|
+
set mbsource(t) {
|
|
4672
|
+
this.$$set({ mbsource: t }), I();
|
|
4611
4673
|
}
|
|
4612
4674
|
}
|
|
4613
|
-
|
|
4675
|
+
Qr(ho, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4614
4676
|
export {
|
|
4615
|
-
|
|
4677
|
+
ho as default
|
|
4616
4678
|
};
|