@everymatrix/cashier-carousel 1.77.21 → 1.77.22
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/{CashierCarousel-CVCi6ikE.js → CashierCarousel-D4tvs_aR.js} +789 -810
- package/components/{CashierCarousel-BCvvNAok.js → CashierCarousel-DaHR_HCi.js} +783 -804
- package/components/CashierCarousel-Dpu8sGLI.cjs +20 -0
- package/es2015/cashier-carousel.cjs +1 -1
- package/es2015/cashier-carousel.js +1 -1
- package/esnext/cashier-carousel.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-BrkCbtIS.cjs +0 -20
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Yt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function vt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ue(e) {
|
|
10
|
+
e.forEach(Yt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function mt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Jt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let we;
|
|
19
|
-
function
|
|
19
|
+
function _t(e, t) {
|
|
20
20
|
return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Cr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function qt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function er(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Ir(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(qt(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function T(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Lr(e, t, r) {
|
|
41
|
+
const n = Nr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = P("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, $r(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Nr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,8 +54,8 @@ function $r(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function $r(e, t) {
|
|
58
|
+
return T(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
@@ -67,7 +67,7 @@ function G(e, t, r) {
|
|
|
67
67
|
function R(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function xt(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -77,23 +77,23 @@ function P(e) {
|
|
|
77
77
|
function $(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function F() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Me(e, t, r, n) {
|
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function B(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Rr(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function j(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Dr(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,90 +102,90 @@ function Ur(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let ge;
|
|
106
|
+
function be(e) {
|
|
107
|
+
ge = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function Ur() {
|
|
110
|
+
if (!ge)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return ge;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function Gr(e) {
|
|
115
|
+
Ur().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
117
|
const te = [], Ne = [];
|
|
118
118
|
let re = [];
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
const Et = [], Fr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Je = !1;
|
|
121
|
+
function jr() {
|
|
122
|
+
Je || (Je = !0, Fr.then(N));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function qe(e) {
|
|
125
125
|
re.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const ke = /* @__PURE__ */ new Set();
|
|
128
128
|
let K = 0;
|
|
129
129
|
function N() {
|
|
130
130
|
if (K !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = ge;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
135
|
for (; K < te.length; ) {
|
|
136
136
|
const t = te[K];
|
|
137
|
-
K++,
|
|
137
|
+
K++, be(t), kr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
140
|
throw te.length = 0, K = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
142
|
+
for (be(null), te.length = 0, K = 0; Ne.length; )
|
|
143
143
|
Ne.pop()();
|
|
144
144
|
for (let t = 0; t < re.length; t += 1) {
|
|
145
145
|
const r = re[t];
|
|
146
|
-
|
|
146
|
+
ke.has(r) || (ke.add(r), r());
|
|
147
147
|
}
|
|
148
148
|
re.length = 0;
|
|
149
149
|
} while (te.length);
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
for (; Et.length; )
|
|
151
|
+
Et.pop()();
|
|
152
|
+
Je = !1, ke.clear(), be(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function kr(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), ue(e.before_update);
|
|
157
157
|
const t = e.dirty;
|
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(qe);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Vr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
163
|
re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const Xr = /* @__PURE__ */ new Set();
|
|
166
|
+
function Wr(e, t) {
|
|
167
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
169
|
function He(e) {
|
|
170
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function zr(e, t, r) {
|
|
173
173
|
const { fragment: n, after_update: i } = e.$$;
|
|
174
|
-
n && n.m(t, r),
|
|
175
|
-
const o = e.$$.on_mount.map(
|
|
176
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
177
|
-
}), i.forEach(
|
|
174
|
+
n && n.m(t, r), qe(() => {
|
|
175
|
+
const o = e.$$.on_mount.map(Yt).filter(mt);
|
|
176
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
177
|
+
}), i.forEach(qe);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Zr(e, t) {
|
|
180
180
|
const r = e.$$;
|
|
181
|
-
r.fragment !== null && (
|
|
181
|
+
r.fragment !== null && (Vr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.$$.dirty[0] === -1 && (te.push(e),
|
|
183
|
+
function Qr(e, t) {
|
|
184
|
+
e.$$.dirty[0] === -1 && (te.push(e), jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const l =
|
|
188
|
-
|
|
186
|
+
function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
187
|
+
const l = ge;
|
|
188
|
+
be(e);
|
|
189
189
|
const u = e.$$ = {
|
|
190
190
|
fragment: null,
|
|
191
191
|
ctx: [],
|
|
@@ -193,7 +193,7 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
193
193
|
props: o,
|
|
194
194
|
update: D,
|
|
195
195
|
not_equal: i,
|
|
196
|
-
bound:
|
|
196
|
+
bound: vt(),
|
|
197
197
|
// lifecycle
|
|
198
198
|
on_mount: [],
|
|
199
199
|
on_destroy: [],
|
|
@@ -202,7 +202,7 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
202
|
after_update: [],
|
|
203
203
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
204
204
|
// everything else
|
|
205
|
-
callbacks:
|
|
205
|
+
callbacks: vt(),
|
|
206
206
|
dirty: a,
|
|
207
207
|
skip_bound: !1,
|
|
208
208
|
root: t.target || l.$$.root
|
|
@@ -211,19 +211,19 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
211
211
|
let h = !1;
|
|
212
212
|
if (u.ctx = r ? r(e, t.props || {}, (p, c, ...b) => {
|
|
213
213
|
const y = b.length ? b[0] : c;
|
|
214
|
-
return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h &&
|
|
215
|
-
}) : [], u.update(), h = !0,
|
|
214
|
+
return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h && Qr(e, p)), c;
|
|
215
|
+
}) : [], u.update(), h = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
216
216
|
if (t.hydrate) {
|
|
217
|
-
const p =
|
|
217
|
+
const p = Rr(t.target);
|
|
218
218
|
u.fragment && u.fragment.l(p), p.forEach(R);
|
|
219
219
|
} else
|
|
220
220
|
u.fragment && u.fragment.c();
|
|
221
|
-
t.intro &&
|
|
221
|
+
t.intro && Wr(e.$$.fragment), zr(e, t.target, t.anchor), N();
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
be(l);
|
|
224
224
|
}
|
|
225
|
-
let
|
|
226
|
-
typeof HTMLElement == "function" && (
|
|
225
|
+
let Kt;
|
|
226
|
+
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
227
227
|
/** The Svelte component constructor */
|
|
228
228
|
$$ctor;
|
|
229
229
|
/** Slots */
|
|
@@ -265,7 +265,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
265
265
|
let o;
|
|
266
266
|
return {
|
|
267
267
|
c: function() {
|
|
268
|
-
o = P("slot"), i !== "default" &&
|
|
268
|
+
o = P("slot"), i !== "default" && B(o, "name", i);
|
|
269
269
|
},
|
|
270
270
|
/**
|
|
271
271
|
* @param {HTMLElement} target
|
|
@@ -282,12 +282,12 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
282
282
|
};
|
|
283
283
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
284
284
|
return;
|
|
285
|
-
const t = {}, r =
|
|
285
|
+
const t = {}, r = Dr(this);
|
|
286
286
|
for (const i of this.$$s)
|
|
287
287
|
i in r && (t[i] = [e(i)]);
|
|
288
288
|
for (const i of this.attributes) {
|
|
289
289
|
const o = this.$$g_p(i.name);
|
|
290
|
-
o in this.$$d || (this.$$d[o] =
|
|
290
|
+
o in this.$$d || (this.$$d[o] = Oe(o, i.value, this.$$p_d, "toProp"));
|
|
291
291
|
}
|
|
292
292
|
for (const i in this.$$p_d)
|
|
293
293
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
305
305
|
this.$$r = !0;
|
|
306
306
|
for (const i in this.$$p_d)
|
|
307
307
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
308
|
-
const o =
|
|
308
|
+
const o = Oe(
|
|
309
309
|
i,
|
|
310
310
|
this.$$d[i],
|
|
311
311
|
this.$$p_d,
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
327
327
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
328
328
|
// and setting attributes through setAttribute etc, this is helpful
|
|
329
329
|
attributeChangedCallback(e, t, r) {
|
|
330
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
330
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
331
331
|
}
|
|
332
332
|
disconnectedCallback() {
|
|
333
333
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
340
340
|
) || e;
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function Oe(e, t, r, n) {
|
|
344
344
|
const i = r[e]?.type;
|
|
345
345
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
346
346
|
return t;
|
|
@@ -369,8 +369,8 @@ function Me(e, t, r, n) {
|
|
|
369
369
|
return t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
let s = class extends
|
|
372
|
+
function Jr(e, t, r, n, i, o) {
|
|
373
|
+
let s = class extends Kt {
|
|
374
374
|
constructor() {
|
|
375
375
|
super(e, r, i), this.$$p_d = t;
|
|
376
376
|
}
|
|
@@ -386,7 +386,7 @@ function qr(e, t, r, n, i, o) {
|
|
|
386
386
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
387
387
|
},
|
|
388
388
|
set(l) {
|
|
389
|
-
l =
|
|
389
|
+
l = Oe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
}), n.forEach((a) => {
|
|
@@ -398,7 +398,7 @@ function qr(e, t, r, n, i, o) {
|
|
|
398
398
|
}), e.element = /** @type {any} */
|
|
399
399
|
s, s;
|
|
400
400
|
}
|
|
401
|
-
class
|
|
401
|
+
class qr {
|
|
402
402
|
/**
|
|
403
403
|
* ### PRIVATE API
|
|
404
404
|
*
|
|
@@ -417,7 +417,7 @@ class Kr {
|
|
|
417
417
|
$$set = void 0;
|
|
418
418
|
/** @returns {void} */
|
|
419
419
|
$destroy() {
|
|
420
|
-
|
|
420
|
+
Zr(this, 1), this.$destroy = D;
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -426,7 +426,7 @@ class Kr {
|
|
|
426
426
|
* @returns {() => void}
|
|
427
427
|
*/
|
|
428
428
|
$on(t, r) {
|
|
429
|
-
if (!
|
|
429
|
+
if (!mt(r))
|
|
430
430
|
return D;
|
|
431
431
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
432
432
|
return n.push(r), () => {
|
|
@@ -439,22 +439,22 @@ class Kr {
|
|
|
439
439
|
* @returns {void}
|
|
440
440
|
*/
|
|
441
441
|
$set(t) {
|
|
442
|
-
this.$$set && !
|
|
442
|
+
this.$$set && !Cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
445
|
+
const Kr = "4";
|
|
446
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
|
|
447
447
|
const ee = [];
|
|
448
|
-
function
|
|
448
|
+
function en(e, t) {
|
|
449
449
|
return {
|
|
450
|
-
subscribe:
|
|
450
|
+
subscribe: Ue(e, t).subscribe
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ue(e, t = D) {
|
|
454
454
|
let r;
|
|
455
455
|
const n = /* @__PURE__ */ new Set();
|
|
456
456
|
function i(a) {
|
|
457
|
-
if (
|
|
457
|
+
if (Jt(e, a) && (e = a, r)) {
|
|
458
458
|
const l = !ee.length;
|
|
459
459
|
for (const u of n)
|
|
460
460
|
u[1](), ee.push(u, e);
|
|
@@ -476,12 +476,12 @@ function Ge(e, t = D) {
|
|
|
476
476
|
}
|
|
477
477
|
return { set: i, update: o, subscribe: s };
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function le(e, t, r) {
|
|
480
480
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
481
481
|
if (!i.every(Boolean))
|
|
482
482
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
483
483
|
const o = t.length < 2;
|
|
484
|
-
return
|
|
484
|
+
return en(r, (s, a) => {
|
|
485
485
|
let l = !1;
|
|
486
486
|
const u = [];
|
|
487
487
|
let h = 0, p = D;
|
|
@@ -490,12 +490,12 @@ function ue(e, t, r) {
|
|
|
490
490
|
return;
|
|
491
491
|
p();
|
|
492
492
|
const y = t(n ? u[0] : u, s, a);
|
|
493
|
-
o ? s(y) : p =
|
|
493
|
+
o ? s(y) : p = mt(y) ? y : D;
|
|
494
494
|
}, b = i.map(
|
|
495
|
-
(y, g) =>
|
|
495
|
+
(y, g) => qt(
|
|
496
496
|
y,
|
|
497
|
-
(
|
|
498
|
-
u[g] =
|
|
497
|
+
(x) => {
|
|
498
|
+
u[g] = x, h &= ~(1 << g), l && c();
|
|
499
499
|
},
|
|
500
500
|
() => {
|
|
501
501
|
h |= 1 << g;
|
|
@@ -503,112 +503,126 @@ function ue(e, t, r) {
|
|
|
503
503
|
)
|
|
504
504
|
);
|
|
505
505
|
return l = !0, c(), function() {
|
|
506
|
-
|
|
506
|
+
ue(b), p(), l = !1;
|
|
507
507
|
};
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function tn(e) {
|
|
511
511
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var rn = function(t) {
|
|
514
|
+
return nn(t) && !on(t);
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function nn(e) {
|
|
517
517
|
return !!e && typeof e == "object";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function on(e) {
|
|
520
520
|
var t = Object.prototype.toString.call(e);
|
|
521
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
521
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
return e.$$typeof ===
|
|
523
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
524
|
+
function un(e) {
|
|
525
|
+
return e.$$typeof === an;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function ln(e) {
|
|
528
528
|
return Array.isArray(e) ? [] : {};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
530
|
+
function ye(e, t) {
|
|
531
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(ln(e), e, t) : e;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function hn(e, t, r) {
|
|
534
534
|
return e.concat(t).map(function(n) {
|
|
535
|
-
return
|
|
535
|
+
return ye(n, r);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function cn(e, t) {
|
|
539
539
|
if (!t.customMerge)
|
|
540
|
-
return
|
|
540
|
+
return ie;
|
|
541
541
|
var r = t.customMerge(e);
|
|
542
|
-
return typeof r == "function" ? r :
|
|
542
|
+
return typeof r == "function" ? r : ie;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function fn(e) {
|
|
545
545
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
546
546
|
return Object.propertyIsEnumerable.call(e, t);
|
|
547
547
|
}) : [];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return Object.keys(e).concat(
|
|
549
|
+
function St(e) {
|
|
550
|
+
return Object.keys(e).concat(fn(e));
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function er(e, t) {
|
|
553
553
|
try {
|
|
554
554
|
return t in e;
|
|
555
555
|
} catch {
|
|
556
556
|
return !1;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function pn(e, t) {
|
|
560
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function mn(e, t, r) {
|
|
563
563
|
var n = {};
|
|
564
|
-
return r.isMergeableObject(e) &&
|
|
565
|
-
n[i] =
|
|
566
|
-
}),
|
|
567
|
-
|
|
564
|
+
return r.isMergeableObject(e) && St(e).forEach(function(i) {
|
|
565
|
+
n[i] = ye(e[i], r);
|
|
566
|
+
}), St(t).forEach(function(i) {
|
|
567
|
+
pn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ye(t[i], r));
|
|
568
568
|
}), n;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
570
|
+
function ie(e, t, r) {
|
|
571
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = ye;
|
|
572
572
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
573
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
573
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ye(t, r);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
ie.all = function(t, r) {
|
|
576
576
|
if (!Array.isArray(t))
|
|
577
577
|
throw new Error("first argument should be an array");
|
|
578
578
|
return t.reduce(function(n, i) {
|
|
579
|
-
return
|
|
579
|
+
return ie(n, i, r);
|
|
580
580
|
}, {});
|
|
581
581
|
};
|
|
582
|
-
var
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
582
|
+
var dn = ie, bn = dn;
|
|
583
|
+
const gn = /* @__PURE__ */ tn(bn);
|
|
584
|
+
/*! *****************************************************************************
|
|
585
|
+
Copyright (c) Microsoft Corporation.
|
|
586
|
+
|
|
587
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
588
|
+
purpose with or without fee is hereby granted.
|
|
589
|
+
|
|
590
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
591
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
592
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
593
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
594
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
595
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
596
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
597
|
+
***************************************************************************** */
|
|
598
|
+
var Ke = function(e, t) {
|
|
599
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
586
600
|
r.__proto__ = n;
|
|
587
601
|
} || function(r, n) {
|
|
588
602
|
for (var i in n)
|
|
589
603
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
590
|
-
},
|
|
604
|
+
}, Ke(e, t);
|
|
591
605
|
};
|
|
592
|
-
function
|
|
606
|
+
function V(e, t) {
|
|
593
607
|
if (typeof t != "function" && t !== null)
|
|
594
608
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
595
|
-
|
|
609
|
+
Ke(e, t);
|
|
596
610
|
function r() {
|
|
597
611
|
this.constructor = e;
|
|
598
612
|
}
|
|
599
613
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
600
614
|
}
|
|
601
|
-
var
|
|
602
|
-
return
|
|
615
|
+
var S = function() {
|
|
616
|
+
return S = Object.assign || function(t) {
|
|
603
617
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
604
618
|
r = arguments[n];
|
|
605
619
|
for (var o in r)
|
|
606
620
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
607
621
|
}
|
|
608
622
|
return t;
|
|
609
|
-
},
|
|
623
|
+
}, S.apply(this, arguments);
|
|
610
624
|
};
|
|
611
|
-
function
|
|
625
|
+
function yn(e, t) {
|
|
612
626
|
var r = {};
|
|
613
627
|
for (var n in e)
|
|
614
628
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -617,119 +631,143 @@ function vn(e, t) {
|
|
|
617
631
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
618
632
|
return r;
|
|
619
633
|
}
|
|
620
|
-
function
|
|
634
|
+
function et(e) {
|
|
635
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
636
|
+
if (r)
|
|
637
|
+
return r.call(e);
|
|
638
|
+
if (e && typeof e.length == "number")
|
|
639
|
+
return {
|
|
640
|
+
next: function() {
|
|
641
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
645
|
+
}
|
|
646
|
+
function tt(e, t) {
|
|
647
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
648
|
+
if (!r)
|
|
649
|
+
return e;
|
|
650
|
+
var n = r.call(e), i, o = [], s;
|
|
651
|
+
try {
|
|
652
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
653
|
+
o.push(i.value);
|
|
654
|
+
} catch (a) {
|
|
655
|
+
s = { error: a };
|
|
656
|
+
} finally {
|
|
657
|
+
try {
|
|
658
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
659
|
+
} finally {
|
|
660
|
+
if (s)
|
|
661
|
+
throw s.error;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return o;
|
|
665
|
+
}
|
|
666
|
+
function ne(e, t, r) {
|
|
621
667
|
if (r || arguments.length === 2)
|
|
622
668
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
623
669
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
624
|
-
return e.concat(o ||
|
|
670
|
+
return e.concat(o || t);
|
|
625
671
|
}
|
|
626
|
-
function
|
|
627
|
-
var r = t && t.cache ? t.cache :
|
|
672
|
+
function Ve(e, t) {
|
|
673
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : _n;
|
|
628
674
|
return i(e, {
|
|
629
675
|
cache: r,
|
|
630
676
|
serializer: n
|
|
631
677
|
});
|
|
632
678
|
}
|
|
633
|
-
function
|
|
679
|
+
function vn(e) {
|
|
634
680
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
635
681
|
}
|
|
636
|
-
function
|
|
637
|
-
var i =
|
|
682
|
+
function tr(e, t, r, n) {
|
|
683
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
638
684
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
639
685
|
}
|
|
640
|
-
function
|
|
686
|
+
function rr(e, t, r) {
|
|
641
687
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
642
688
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
643
689
|
}
|
|
644
|
-
function
|
|
690
|
+
function dt(e, t, r, n, i) {
|
|
645
691
|
return r.bind(t, e, n, i);
|
|
646
692
|
}
|
|
693
|
+
function _n(e, t) {
|
|
694
|
+
var r = e.length === 1 ? tr : rr;
|
|
695
|
+
return dt(e, this, r, t.cache.create(), t.serializer);
|
|
696
|
+
}
|
|
647
697
|
function xn(e, t) {
|
|
648
|
-
|
|
649
|
-
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
698
|
+
return dt(e, this, rr, t.cache.create(), t.serializer);
|
|
650
699
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
700
|
+
function En(e, t) {
|
|
701
|
+
return dt(e, this, tr, t.cache.create(), t.serializer);
|
|
653
702
|
}
|
|
654
|
-
var
|
|
703
|
+
var Sn = function() {
|
|
655
704
|
return JSON.stringify(arguments);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}()
|
|
668
|
-
), Hn = {
|
|
705
|
+
};
|
|
706
|
+
function bt() {
|
|
707
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
708
|
+
}
|
|
709
|
+
bt.prototype.get = function(e) {
|
|
710
|
+
return this.cache[e];
|
|
711
|
+
};
|
|
712
|
+
bt.prototype.set = function(e, t) {
|
|
713
|
+
this.cache[e] = t;
|
|
714
|
+
};
|
|
715
|
+
var Tn = {
|
|
669
716
|
create: function() {
|
|
670
|
-
return new
|
|
717
|
+
return new bt();
|
|
671
718
|
}
|
|
672
|
-
},
|
|
673
|
-
variadic:
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
677
|
-
r = arguments[n];
|
|
678
|
-
for (var o in r)
|
|
679
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
680
|
-
}
|
|
681
|
-
return t;
|
|
682
|
-
}, $e.apply(this, arguments);
|
|
683
|
-
};
|
|
684
|
-
var v;
|
|
719
|
+
}, Xe = {
|
|
720
|
+
variadic: xn,
|
|
721
|
+
monadic: En
|
|
722
|
+
}, v;
|
|
685
723
|
(function(e) {
|
|
686
724
|
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";
|
|
687
725
|
})(v || (v = {}));
|
|
688
|
-
var
|
|
726
|
+
var H;
|
|
689
727
|
(function(e) {
|
|
690
728
|
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";
|
|
691
|
-
})(
|
|
692
|
-
var
|
|
729
|
+
})(H || (H = {}));
|
|
730
|
+
var oe;
|
|
693
731
|
(function(e) {
|
|
694
732
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
695
|
-
})(
|
|
696
|
-
function
|
|
697
|
-
return e.type ===
|
|
733
|
+
})(oe || (oe = {}));
|
|
734
|
+
function Tt(e) {
|
|
735
|
+
return e.type === H.literal;
|
|
736
|
+
}
|
|
737
|
+
function wn(e) {
|
|
738
|
+
return e.type === H.argument;
|
|
698
739
|
}
|
|
699
|
-
function
|
|
700
|
-
return e.type ===
|
|
740
|
+
function nr(e) {
|
|
741
|
+
return e.type === H.number;
|
|
742
|
+
}
|
|
743
|
+
function ir(e) {
|
|
744
|
+
return e.type === H.date;
|
|
701
745
|
}
|
|
702
746
|
function or(e) {
|
|
703
|
-
return e.type ===
|
|
747
|
+
return e.type === H.time;
|
|
704
748
|
}
|
|
705
749
|
function sr(e) {
|
|
706
|
-
return e.type ===
|
|
750
|
+
return e.type === H.select;
|
|
707
751
|
}
|
|
708
752
|
function ar(e) {
|
|
709
|
-
return e.type ===
|
|
753
|
+
return e.type === H.plural;
|
|
754
|
+
}
|
|
755
|
+
function Hn(e) {
|
|
756
|
+
return e.type === H.pound;
|
|
710
757
|
}
|
|
711
758
|
function ur(e) {
|
|
712
|
-
return e.type ===
|
|
759
|
+
return e.type === H.tag;
|
|
713
760
|
}
|
|
714
761
|
function lr(e) {
|
|
715
|
-
return e.type ===
|
|
716
|
-
}
|
|
717
|
-
function An(e) {
|
|
718
|
-
return e.type === w.pound;
|
|
719
|
-
}
|
|
720
|
-
function hr(e) {
|
|
721
|
-
return e.type === w.tag;
|
|
722
|
-
}
|
|
723
|
-
function cr(e) {
|
|
724
|
-
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
762
|
+
return !!(e && typeof e == "object" && e.type === oe.number);
|
|
725
763
|
}
|
|
726
764
|
function rt(e) {
|
|
727
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
765
|
+
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
|
728
766
|
}
|
|
729
|
-
var
|
|
730
|
-
function
|
|
767
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
768
|
+
function An(e) {
|
|
731
769
|
var t = {};
|
|
732
|
-
return e.replace(
|
|
770
|
+
return e.replace(Pn, function(r) {
|
|
733
771
|
var n = r.length;
|
|
734
772
|
switch (r[0]) {
|
|
735
773
|
case "G":
|
|
@@ -818,21 +856,11 @@ function Bn(e) {
|
|
|
818
856
|
return "";
|
|
819
857
|
}), t;
|
|
820
858
|
}
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
824
|
-
r = arguments[n];
|
|
825
|
-
for (var o in r)
|
|
826
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
827
|
-
}
|
|
828
|
-
return t;
|
|
829
|
-
}, H.apply(this, arguments);
|
|
830
|
-
};
|
|
831
|
-
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
832
|
-
function Cn(e) {
|
|
859
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
860
|
+
function Mn(e) {
|
|
833
861
|
if (e.length === 0)
|
|
834
862
|
throw new Error("Number skeleton cannot be empty");
|
|
835
|
-
for (var t = e.split(
|
|
863
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
836
864
|
return c.length > 0;
|
|
837
865
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
838
866
|
var o = i[n], s = o.split("/");
|
|
@@ -847,17 +875,17 @@ function Cn(e) {
|
|
|
847
875
|
}
|
|
848
876
|
return r;
|
|
849
877
|
}
|
|
850
|
-
function
|
|
878
|
+
function On(e) {
|
|
851
879
|
return e.replace(/^(.*?)-/, "");
|
|
852
880
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
881
|
+
var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
882
|
+
function Ht(e) {
|
|
855
883
|
var t = {};
|
|
856
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
884
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
857
885
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
858
886
|
}), t;
|
|
859
887
|
}
|
|
860
|
-
function
|
|
888
|
+
function pr(e) {
|
|
861
889
|
switch (e) {
|
|
862
890
|
case "sign-auto":
|
|
863
891
|
return {
|
|
@@ -897,7 +925,7 @@ function dr(e) {
|
|
|
897
925
|
};
|
|
898
926
|
}
|
|
899
927
|
}
|
|
900
|
-
function
|
|
928
|
+
function In(e) {
|
|
901
929
|
var t;
|
|
902
930
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
903
931
|
notation: "engineering"
|
|
@@ -905,17 +933,17 @@ function Nn(e) {
|
|
|
905
933
|
notation: "scientific"
|
|
906
934
|
}, e = e.slice(1)), t) {
|
|
907
935
|
var r = e.slice(0, 2);
|
|
908
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
936
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
909
937
|
throw new Error("Malformed concise eng/scientific notation");
|
|
910
938
|
t.minimumIntegerDigits = e.length;
|
|
911
939
|
}
|
|
912
940
|
return t;
|
|
913
941
|
}
|
|
914
|
-
function
|
|
915
|
-
var t = {}, r =
|
|
942
|
+
function Pt(e) {
|
|
943
|
+
var t = {}, r = pr(e);
|
|
916
944
|
return r || t;
|
|
917
945
|
}
|
|
918
|
-
function
|
|
946
|
+
function Ln(e) {
|
|
919
947
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
920
948
|
var i = n[r];
|
|
921
949
|
switch (i.stem) {
|
|
@@ -939,7 +967,7 @@ function $n(e) {
|
|
|
939
967
|
continue;
|
|
940
968
|
case "measure-unit":
|
|
941
969
|
case "unit":
|
|
942
|
-
t.style = "unit", t.unit =
|
|
970
|
+
t.style = "unit", t.unit = On(i.options[0]);
|
|
943
971
|
continue;
|
|
944
972
|
case "compact-short":
|
|
945
973
|
case "K":
|
|
@@ -950,13 +978,13 @@ function $n(e) {
|
|
|
950
978
|
t.notation = "compact", t.compactDisplay = "long";
|
|
951
979
|
continue;
|
|
952
980
|
case "scientific":
|
|
953
|
-
t =
|
|
954
|
-
return
|
|
981
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
982
|
+
return S(S({}, l), Pt(u));
|
|
955
983
|
}, {}));
|
|
956
984
|
continue;
|
|
957
985
|
case "engineering":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
986
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
987
|
+
return S(S({}, l), Pt(u));
|
|
960
988
|
}, {}));
|
|
961
989
|
continue;
|
|
962
990
|
case "notation-simple":
|
|
@@ -1001,7 +1029,7 @@ function $n(e) {
|
|
|
1001
1029
|
case "integer-width":
|
|
1002
1030
|
if (i.options.length > 1)
|
|
1003
1031
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1004
|
-
i.options[0].replace(
|
|
1032
|
+
i.options[0].replace(Cn, function(l, u, h, p, c, b) {
|
|
1005
1033
|
if (u)
|
|
1006
1034
|
t.minimumIntegerDigits = h.length;
|
|
1007
1035
|
else {
|
|
@@ -1014,28 +1042,28 @@ function $n(e) {
|
|
|
1014
1042
|
});
|
|
1015
1043
|
continue;
|
|
1016
1044
|
}
|
|
1017
|
-
if (
|
|
1045
|
+
if (fr.test(i.stem)) {
|
|
1018
1046
|
t.minimumIntegerDigits = i.stem.length;
|
|
1019
1047
|
continue;
|
|
1020
1048
|
}
|
|
1021
|
-
if (
|
|
1049
|
+
if (wt.test(i.stem)) {
|
|
1022
1050
|
if (i.options.length > 1)
|
|
1023
1051
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1024
|
-
i.stem.replace(
|
|
1052
|
+
i.stem.replace(wt, function(l, u, h, p, c, b) {
|
|
1025
1053
|
return h === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1026
1054
|
});
|
|
1027
1055
|
var o = i.options[0];
|
|
1028
|
-
o === "w" ? t =
|
|
1056
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ht(o)));
|
|
1029
1057
|
continue;
|
|
1030
1058
|
}
|
|
1031
|
-
if (
|
|
1032
|
-
t =
|
|
1059
|
+
if (cr.test(i.stem)) {
|
|
1060
|
+
t = S(S({}, t), Ht(i.stem));
|
|
1033
1061
|
continue;
|
|
1034
1062
|
}
|
|
1035
|
-
var s =
|
|
1036
|
-
s && (t =
|
|
1037
|
-
var a =
|
|
1038
|
-
a && (t =
|
|
1063
|
+
var s = pr(i.stem);
|
|
1064
|
+
s && (t = S(S({}, t), s));
|
|
1065
|
+
var a = In(i.stem);
|
|
1066
|
+
a && (t = S(S({}, t), a));
|
|
1039
1067
|
}
|
|
1040
1068
|
return t;
|
|
1041
1069
|
}
|
|
@@ -2454,13 +2482,13 @@ var Pe = {
|
|
|
2454
2482
|
"h"
|
|
2455
2483
|
]
|
|
2456
2484
|
};
|
|
2457
|
-
function
|
|
2485
|
+
function Nn(e, t) {
|
|
2458
2486
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2459
2487
|
var i = e.charAt(n);
|
|
2460
2488
|
if (i === "j") {
|
|
2461
2489
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2462
2490
|
o++, n++;
|
|
2463
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2491
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
2464
2492
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2465
2493
|
r += l;
|
|
2466
2494
|
for (; s-- > 0; )
|
|
@@ -2470,7 +2498,7 @@ function Rn(e, t) {
|
|
|
2470
2498
|
}
|
|
2471
2499
|
return r;
|
|
2472
2500
|
}
|
|
2473
|
-
function
|
|
2501
|
+
function $n(e) {
|
|
2474
2502
|
var t = e.hourCycle;
|
|
2475
2503
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2476
2504
|
e.hourCycles && // @ts-ignore
|
|
@@ -2492,20 +2520,20 @@ function Dn(e) {
|
|
|
2492
2520
|
var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
|
|
2493
2521
|
return i[0];
|
|
2494
2522
|
}
|
|
2495
|
-
var
|
|
2523
|
+
var We, Rn = new RegExp("^".concat(hr.source, "*")), Dn = new RegExp("".concat(hr.source, "*$"));
|
|
2496
2524
|
function _(e, t) {
|
|
2497
2525
|
return { start: e, end: t };
|
|
2498
2526
|
}
|
|
2499
|
-
var
|
|
2527
|
+
var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, Wn = Xn ? Number.isSafeInteger : function(e) {
|
|
2500
2528
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2501
2529
|
}, nt = !0;
|
|
2502
2530
|
try {
|
|
2503
|
-
var
|
|
2504
|
-
nt = ((
|
|
2531
|
+
var zn = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2532
|
+
nt = ((We = zn.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
|
|
2505
2533
|
} catch {
|
|
2506
2534
|
nt = !1;
|
|
2507
2535
|
}
|
|
2508
|
-
var
|
|
2536
|
+
var At = Un ? (
|
|
2509
2537
|
// Native
|
|
2510
2538
|
function(t, r, n) {
|
|
2511
2539
|
return t.startsWith(r, n);
|
|
@@ -2515,7 +2543,7 @@ var Bt = Fn ? (
|
|
|
2515
2543
|
function(t, r, n) {
|
|
2516
2544
|
return t.slice(n, n + r.length) === r;
|
|
2517
2545
|
}
|
|
2518
|
-
), it =
|
|
2546
|
+
), it = Gn ? String.fromCodePoint : (
|
|
2519
2547
|
// IE11
|
|
2520
2548
|
function() {
|
|
2521
2549
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2527,9 +2555,9 @@ var Bt = Fn ? (
|
|
|
2527
2555
|
}
|
|
2528
2556
|
return n;
|
|
2529
2557
|
}
|
|
2530
|
-
),
|
|
2558
|
+
), Bt = (
|
|
2531
2559
|
// native
|
|
2532
|
-
|
|
2560
|
+
Fn ? Object.fromEntries : (
|
|
2533
2561
|
// Ponyfill
|
|
2534
2562
|
function(t) {
|
|
2535
2563
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2539,7 +2567,7 @@ var Bt = Fn ? (
|
|
|
2539
2567
|
return r;
|
|
2540
2568
|
}
|
|
2541
2569
|
)
|
|
2542
|
-
),
|
|
2570
|
+
), mr = jn ? (
|
|
2543
2571
|
// Native
|
|
2544
2572
|
function(t, r) {
|
|
2545
2573
|
return t.codePointAt(r);
|
|
@@ -2553,7 +2581,7 @@ var Bt = Fn ? (
|
|
|
2553
2581
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2554
2582
|
}
|
|
2555
2583
|
}
|
|
2556
|
-
),
|
|
2584
|
+
), Zn = kn ? (
|
|
2557
2585
|
// Native
|
|
2558
2586
|
function(t) {
|
|
2559
2587
|
return t.trimStart();
|
|
@@ -2561,9 +2589,9 @@ var Bt = Fn ? (
|
|
|
2561
2589
|
) : (
|
|
2562
2590
|
// Ponyfill
|
|
2563
2591
|
function(t) {
|
|
2564
|
-
return t.replace(
|
|
2592
|
+
return t.replace(Rn, "");
|
|
2565
2593
|
}
|
|
2566
|
-
),
|
|
2594
|
+
), Qn = Vn ? (
|
|
2567
2595
|
// Native
|
|
2568
2596
|
function(t) {
|
|
2569
2597
|
return t.trimEnd();
|
|
@@ -2571,32 +2599,32 @@ var Bt = Fn ? (
|
|
|
2571
2599
|
) : (
|
|
2572
2600
|
// Ponyfill
|
|
2573
2601
|
function(t) {
|
|
2574
|
-
return t.replace(
|
|
2602
|
+
return t.replace(Dn, "");
|
|
2575
2603
|
}
|
|
2576
2604
|
);
|
|
2577
|
-
function
|
|
2605
|
+
function dr(e, t) {
|
|
2578
2606
|
return new RegExp(e, t);
|
|
2579
2607
|
}
|
|
2580
2608
|
var ot;
|
|
2581
2609
|
if (nt) {
|
|
2582
|
-
var
|
|
2610
|
+
var Mt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2583
2611
|
ot = function(t, r) {
|
|
2584
2612
|
var n;
|
|
2585
|
-
|
|
2586
|
-
var i =
|
|
2613
|
+
Mt.lastIndex = r;
|
|
2614
|
+
var i = Mt.exec(t);
|
|
2587
2615
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2588
2616
|
};
|
|
2589
2617
|
} else
|
|
2590
2618
|
ot = function(t, r) {
|
|
2591
2619
|
for (var n = []; ; ) {
|
|
2592
|
-
var i =
|
|
2593
|
-
if (i === void 0 ||
|
|
2620
|
+
var i = mr(t, r);
|
|
2621
|
+
if (i === void 0 || br(i) || Kn(i))
|
|
2594
2622
|
break;
|
|
2595
2623
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2596
2624
|
}
|
|
2597
2625
|
return it.apply(void 0, n);
|
|
2598
2626
|
};
|
|
2599
|
-
var
|
|
2627
|
+
var Yn = (
|
|
2600
2628
|
/** @class */
|
|
2601
2629
|
function() {
|
|
2602
2630
|
function e(t, r) {
|
|
@@ -2620,7 +2648,7 @@ var qn = (
|
|
|
2620
2648
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2621
2649
|
var a = this.clonePosition();
|
|
2622
2650
|
this.bump(), i.push({
|
|
2623
|
-
type:
|
|
2651
|
+
type: H.pound,
|
|
2624
2652
|
location: _(a, this.clonePosition())
|
|
2625
2653
|
});
|
|
2626
2654
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2648,7 +2676,7 @@ var qn = (
|
|
|
2648
2676
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2649
2677
|
return {
|
|
2650
2678
|
val: {
|
|
2651
|
-
type:
|
|
2679
|
+
type: H.literal,
|
|
2652
2680
|
value: "<".concat(i, "/>"),
|
|
2653
2681
|
location: _(n, this.clonePosition())
|
|
2654
2682
|
},
|
|
@@ -2665,7 +2693,7 @@ var qn = (
|
|
|
2665
2693
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2666
2694
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2667
2695
|
val: {
|
|
2668
|
-
type:
|
|
2696
|
+
type: H.tag,
|
|
2669
2697
|
value: i,
|
|
2670
2698
|
children: s,
|
|
2671
2699
|
location: _(n, this.clonePosition())
|
|
@@ -2678,7 +2706,7 @@ var qn = (
|
|
|
2678
2706
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
2679
2707
|
}, e.prototype.parseTagName = function() {
|
|
2680
2708
|
var t = this.offset();
|
|
2681
|
-
for (this.bump(); !this.isEOF() &&
|
|
2709
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
2682
2710
|
this.bump();
|
|
2683
2711
|
return this.message.slice(t, this.offset());
|
|
2684
2712
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2702,12 +2730,12 @@ var qn = (
|
|
|
2702
2730
|
}
|
|
2703
2731
|
var l = _(n, this.clonePosition());
|
|
2704
2732
|
return {
|
|
2705
|
-
val: { type:
|
|
2733
|
+
val: { type: H.literal, value: i, location: l },
|
|
2706
2734
|
err: null
|
|
2707
2735
|
};
|
|
2708
2736
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2709
2737
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2710
|
-
!
|
|
2738
|
+
!Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2711
2739
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2712
2740
|
if (this.isEOF() || this.char() !== 39)
|
|
2713
2741
|
return null;
|
|
@@ -2762,7 +2790,7 @@ var qn = (
|
|
|
2762
2790
|
case 125:
|
|
2763
2791
|
return this.bump(), {
|
|
2764
2792
|
val: {
|
|
2765
|
-
type:
|
|
2793
|
+
type: H.argument,
|
|
2766
2794
|
// value does not include the opening and closing braces.
|
|
2767
2795
|
value: i,
|
|
2768
2796
|
location: _(n, this.clonePosition())
|
|
@@ -2794,7 +2822,7 @@ var qn = (
|
|
|
2794
2822
|
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2795
2823
|
if (p.err)
|
|
2796
2824
|
return p;
|
|
2797
|
-
var c =
|
|
2825
|
+
var c = Qn(p.val);
|
|
2798
2826
|
if (c.length === 0)
|
|
2799
2827
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2800
2828
|
var b = _(h, this.clonePosition());
|
|
@@ -2804,34 +2832,34 @@ var qn = (
|
|
|
2804
2832
|
if (y.err)
|
|
2805
2833
|
return y;
|
|
2806
2834
|
var g = _(i, this.clonePosition());
|
|
2807
|
-
if (u &&
|
|
2808
|
-
var
|
|
2835
|
+
if (u && At(u?.style, "::", 0)) {
|
|
2836
|
+
var x = Zn(u.style.slice(2));
|
|
2809
2837
|
if (a === "number") {
|
|
2810
|
-
var p = this.parseNumberSkeletonFromString(
|
|
2838
|
+
var p = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2811
2839
|
return p.err ? p : {
|
|
2812
|
-
val: { type:
|
|
2840
|
+
val: { type: H.number, value: n, location: g, style: p.val },
|
|
2813
2841
|
err: null
|
|
2814
2842
|
};
|
|
2815
2843
|
} else {
|
|
2816
|
-
if (
|
|
2844
|
+
if (x.length === 0)
|
|
2817
2845
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
|
2818
|
-
var A =
|
|
2819
|
-
this.locale && (A =
|
|
2846
|
+
var A = x;
|
|
2847
|
+
this.locale && (A = Nn(x, this.locale));
|
|
2820
2848
|
var c = {
|
|
2821
|
-
type:
|
|
2849
|
+
type: oe.dateTime,
|
|
2822
2850
|
pattern: A,
|
|
2823
2851
|
location: u.styleLocation,
|
|
2824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2825
|
-
},
|
|
2852
|
+
parsedOptions: this.shouldParseSkeletons ? An(A) : {}
|
|
2853
|
+
}, E = a === "date" ? H.date : H.time;
|
|
2826
2854
|
return {
|
|
2827
|
-
val: { type:
|
|
2855
|
+
val: { type: E, value: n, location: g, style: c },
|
|
2828
2856
|
err: null
|
|
2829
2857
|
};
|
|
2830
2858
|
}
|
|
2831
2859
|
}
|
|
2832
2860
|
return {
|
|
2833
2861
|
val: {
|
|
2834
|
-
type: a === "number" ?
|
|
2862
|
+
type: a === "number" ? H.number : a === "date" ? H.date : H.time,
|
|
2835
2863
|
value: n,
|
|
2836
2864
|
location: g,
|
|
2837
2865
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2844,38 +2872,38 @@ var qn = (
|
|
|
2844
2872
|
case "select": {
|
|
2845
2873
|
var f = this.clonePosition();
|
|
2846
2874
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2847
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f,
|
|
2875
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f, S({}, f)));
|
|
2848
2876
|
this.bumpSpace();
|
|
2849
|
-
var
|
|
2850
|
-
if (a !== "select" &&
|
|
2877
|
+
var w = this.parseIdentifierIfPossible(), d = 0;
|
|
2878
|
+
if (a !== "select" && w.value === "offset") {
|
|
2851
2879
|
if (!this.bumpIf(":"))
|
|
2852
2880
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2853
2881
|
this.bumpSpace();
|
|
2854
2882
|
var p = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2855
2883
|
if (p.err)
|
|
2856
2884
|
return p;
|
|
2857
|
-
this.bumpSpace(),
|
|
2885
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), d = p.val;
|
|
2858
2886
|
}
|
|
2859
|
-
var
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2887
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
2888
|
+
if (M.err)
|
|
2889
|
+
return M;
|
|
2862
2890
|
var y = this.tryParseArgumentClose(i);
|
|
2863
2891
|
if (y.err)
|
|
2864
2892
|
return y;
|
|
2865
2893
|
var U = _(i, this.clonePosition());
|
|
2866
2894
|
return a === "select" ? {
|
|
2867
2895
|
val: {
|
|
2868
|
-
type:
|
|
2896
|
+
type: H.select,
|
|
2869
2897
|
value: n,
|
|
2870
|
-
options:
|
|
2898
|
+
options: Bt(M.val),
|
|
2871
2899
|
location: U
|
|
2872
2900
|
},
|
|
2873
2901
|
err: null
|
|
2874
2902
|
} : {
|
|
2875
2903
|
val: {
|
|
2876
|
-
type:
|
|
2904
|
+
type: H.plural,
|
|
2877
2905
|
value: n,
|
|
2878
|
-
options:
|
|
2906
|
+
options: Bt(M.val),
|
|
2879
2907
|
offset: d,
|
|
2880
2908
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2881
2909
|
location: U
|
|
@@ -2926,16 +2954,16 @@ var qn = (
|
|
|
2926
2954
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2927
2955
|
var n = [];
|
|
2928
2956
|
try {
|
|
2929
|
-
n =
|
|
2957
|
+
n = Mn(t);
|
|
2930
2958
|
} catch {
|
|
2931
2959
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
2932
2960
|
}
|
|
2933
2961
|
return {
|
|
2934
2962
|
val: {
|
|
2935
|
-
type:
|
|
2963
|
+
type: oe.number,
|
|
2936
2964
|
tokens: n,
|
|
2937
2965
|
location: r,
|
|
2938
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2966
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
|
2939
2967
|
},
|
|
2940
2968
|
err: null
|
|
2941
2969
|
};
|
|
@@ -2983,7 +3011,7 @@ var qn = (
|
|
|
2983
3011
|
break;
|
|
2984
3012
|
}
|
|
2985
3013
|
var l = _(i, this.clonePosition());
|
|
2986
|
-
return o ? (s *= n,
|
|
3014
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2987
3015
|
}, e.prototype.offset = function() {
|
|
2988
3016
|
return this.position.offset;
|
|
2989
3017
|
}, e.prototype.isEOF = function() {
|
|
@@ -2998,7 +3026,7 @@ var qn = (
|
|
|
2998
3026
|
var t = this.position.offset;
|
|
2999
3027
|
if (t >= this.message.length)
|
|
3000
3028
|
throw Error("out of bound");
|
|
3001
|
-
var r =
|
|
3029
|
+
var r = mr(this.message, t);
|
|
3002
3030
|
if (r === void 0)
|
|
3003
3031
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3004
3032
|
return r;
|
|
@@ -3017,7 +3045,7 @@ var qn = (
|
|
|
3017
3045
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3018
3046
|
}
|
|
3019
3047
|
}, e.prototype.bumpIf = function(t) {
|
|
3020
|
-
if (
|
|
3048
|
+
if (At(this.message, t, this.offset())) {
|
|
3021
3049
|
for (var r = 0; r < t.length; r++)
|
|
3022
3050
|
this.bump();
|
|
3023
3051
|
return !0;
|
|
@@ -3039,7 +3067,7 @@ var qn = (
|
|
|
3039
3067
|
break;
|
|
3040
3068
|
}
|
|
3041
3069
|
}, e.prototype.bumpSpace = function() {
|
|
3042
|
-
for (; !this.isEOF() &&
|
|
3070
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3043
3071
|
this.bump();
|
|
3044
3072
|
}, e.prototype.peek = function() {
|
|
3045
3073
|
if (this.isEOF())
|
|
@@ -3052,44 +3080,44 @@ var qn = (
|
|
|
3052
3080
|
function st(e) {
|
|
3053
3081
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3054
3082
|
}
|
|
3055
|
-
function
|
|
3083
|
+
function Jn(e) {
|
|
3056
3084
|
return st(e) || e === 47;
|
|
3057
3085
|
}
|
|
3058
|
-
function
|
|
3086
|
+
function qn(e) {
|
|
3059
3087
|
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;
|
|
3060
3088
|
}
|
|
3061
|
-
function
|
|
3089
|
+
function br(e) {
|
|
3062
3090
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3063
3091
|
}
|
|
3064
|
-
function
|
|
3092
|
+
function Kn(e) {
|
|
3065
3093
|
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;
|
|
3066
3094
|
}
|
|
3067
3095
|
function at(e) {
|
|
3068
3096
|
e.forEach(function(t) {
|
|
3069
|
-
if (delete t.location,
|
|
3097
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3070
3098
|
for (var r in t.options)
|
|
3071
3099
|
delete t.options[r].location, at(t.options[r].value);
|
|
3072
3100
|
else
|
|
3073
|
-
|
|
3101
|
+
nr(t) && lr(t.style) || (ir(t) || or(t)) && rt(t.style) ? delete t.style.location : ur(t) && at(t.children);
|
|
3074
3102
|
});
|
|
3075
3103
|
}
|
|
3076
|
-
function
|
|
3077
|
-
t === void 0 && (t = {}), t =
|
|
3078
|
-
var r = new
|
|
3104
|
+
function ei(e, t) {
|
|
3105
|
+
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3106
|
+
var r = new Yn(e, t).parse();
|
|
3079
3107
|
if (r.err) {
|
|
3080
3108
|
var n = SyntaxError(v[r.err.kind]);
|
|
3081
3109
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3082
3110
|
}
|
|
3083
3111
|
return t?.captureLocation || at(r.val), r.val;
|
|
3084
3112
|
}
|
|
3085
|
-
var
|
|
3113
|
+
var se;
|
|
3086
3114
|
(function(e) {
|
|
3087
3115
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3088
|
-
})(
|
|
3089
|
-
var
|
|
3116
|
+
})(se || (se = {}));
|
|
3117
|
+
var Ge = (
|
|
3090
3118
|
/** @class */
|
|
3091
3119
|
function(e) {
|
|
3092
|
-
|
|
3120
|
+
V(t, e);
|
|
3093
3121
|
function t(r, n, i) {
|
|
3094
3122
|
var o = e.call(this, r) || this;
|
|
3095
3123
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3098,48 +3126,48 @@ var je = (
|
|
|
3098
3126
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3099
3127
|
}, t;
|
|
3100
3128
|
}(Error)
|
|
3101
|
-
),
|
|
3129
|
+
), Ot = (
|
|
3102
3130
|
/** @class */
|
|
3103
3131
|
function(e) {
|
|
3104
|
-
|
|
3132
|
+
V(t, e);
|
|
3105
3133
|
function t(r, n, i, o) {
|
|
3106
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3134
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
|
|
3107
3135
|
}
|
|
3108
3136
|
return t;
|
|
3109
|
-
}(
|
|
3110
|
-
),
|
|
3137
|
+
}(Ge)
|
|
3138
|
+
), ti = (
|
|
3111
3139
|
/** @class */
|
|
3112
3140
|
function(e) {
|
|
3113
|
-
|
|
3141
|
+
V(t, e);
|
|
3114
3142
|
function t(r, n, i) {
|
|
3115
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3143
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3116
3144
|
}
|
|
3117
3145
|
return t;
|
|
3118
|
-
}(
|
|
3119
|
-
),
|
|
3146
|
+
}(Ge)
|
|
3147
|
+
), ri = (
|
|
3120
3148
|
/** @class */
|
|
3121
3149
|
function(e) {
|
|
3122
|
-
|
|
3150
|
+
V(t, e);
|
|
3123
3151
|
function t(r, n) {
|
|
3124
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3152
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3125
3153
|
}
|
|
3126
3154
|
return t;
|
|
3127
|
-
}(
|
|
3155
|
+
}(Ge)
|
|
3128
3156
|
), C;
|
|
3129
3157
|
(function(e) {
|
|
3130
3158
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
3159
|
})(C || (C = {}));
|
|
3132
|
-
function
|
|
3160
|
+
function ni(e) {
|
|
3133
3161
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3134
3162
|
var n = t[t.length - 1];
|
|
3135
3163
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3136
3164
|
}, []);
|
|
3137
3165
|
}
|
|
3138
|
-
function
|
|
3166
|
+
function ii(e) {
|
|
3139
3167
|
return typeof e == "function";
|
|
3140
3168
|
}
|
|
3141
3169
|
function Ce(e, t, r, n, i, o, s) {
|
|
3142
|
-
if (e.length === 1 &&
|
|
3170
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3143
3171
|
return [
|
|
3144
3172
|
{
|
|
3145
3173
|
type: C.literal,
|
|
@@ -3148,14 +3176,14 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3148
3176
|
];
|
|
3149
3177
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3150
3178
|
var h = u[l];
|
|
3151
|
-
if (
|
|
3179
|
+
if (Tt(h)) {
|
|
3152
3180
|
a.push({
|
|
3153
3181
|
type: C.literal,
|
|
3154
3182
|
value: h.value
|
|
3155
3183
|
});
|
|
3156
3184
|
continue;
|
|
3157
3185
|
}
|
|
3158
|
-
if (
|
|
3186
|
+
if (Hn(h)) {
|
|
3159
3187
|
typeof o == "number" && a.push({
|
|
3160
3188
|
type: C.literal,
|
|
3161
3189
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3164,16 +3192,16 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3164
3192
|
}
|
|
3165
3193
|
var p = h.value;
|
|
3166
3194
|
if (!(i && p in i))
|
|
3167
|
-
throw new
|
|
3195
|
+
throw new ri(p, s);
|
|
3168
3196
|
var c = i[p];
|
|
3169
|
-
if (
|
|
3197
|
+
if (wn(h)) {
|
|
3170
3198
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3171
3199
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3172
3200
|
value: c
|
|
3173
3201
|
});
|
|
3174
3202
|
continue;
|
|
3175
3203
|
}
|
|
3176
|
-
if (
|
|
3204
|
+
if (ir(h)) {
|
|
3177
3205
|
var b = typeof h.style == "string" ? n.date[h.style] : rt(h.style) ? h.style.parsedOptions : void 0;
|
|
3178
3206
|
a.push({
|
|
3179
3207
|
type: C.literal,
|
|
@@ -3181,7 +3209,7 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3181
3209
|
});
|
|
3182
3210
|
continue;
|
|
3183
3211
|
}
|
|
3184
|
-
if (
|
|
3212
|
+
if (or(h)) {
|
|
3185
3213
|
var b = typeof h.style == "string" ? n.time[h.style] : rt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3186
3214
|
a.push({
|
|
3187
3215
|
type: C.literal,
|
|
@@ -3189,64 +3217,64 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3189
3217
|
});
|
|
3190
3218
|
continue;
|
|
3191
3219
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3220
|
+
if (nr(h)) {
|
|
3221
|
+
var b = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3194
3222
|
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3195
3223
|
type: C.literal,
|
|
3196
3224
|
value: r.getNumberFormat(t, b).format(c)
|
|
3197
3225
|
});
|
|
3198
3226
|
continue;
|
|
3199
3227
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var y = h.children, g = h.value,
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3204
|
-
var A = Ce(y, t, r, n, i, o),
|
|
3228
|
+
if (ur(h)) {
|
|
3229
|
+
var y = h.children, g = h.value, x = i[g];
|
|
3230
|
+
if (!ii(x))
|
|
3231
|
+
throw new ti(g, "function", s);
|
|
3232
|
+
var A = Ce(y, t, r, n, i, o), E = x(A.map(function(d) {
|
|
3205
3233
|
return d.value;
|
|
3206
3234
|
}));
|
|
3207
|
-
Array.isArray(
|
|
3235
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(d) {
|
|
3208
3236
|
return {
|
|
3209
3237
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3210
3238
|
value: d
|
|
3211
3239
|
};
|
|
3212
3240
|
}));
|
|
3213
3241
|
}
|
|
3214
|
-
if (
|
|
3242
|
+
if (sr(h)) {
|
|
3215
3243
|
var f = h.options[c] || h.options.other;
|
|
3216
3244
|
if (!f)
|
|
3217
|
-
throw new
|
|
3245
|
+
throw new Ot(h.value, c, Object.keys(h.options), s);
|
|
3218
3246
|
a.push.apply(a, Ce(f.value, t, r, n, i));
|
|
3219
3247
|
continue;
|
|
3220
3248
|
}
|
|
3221
|
-
if (
|
|
3249
|
+
if (ar(h)) {
|
|
3222
3250
|
var f = h.options["=".concat(c)];
|
|
3223
3251
|
if (!f) {
|
|
3224
3252
|
if (!Intl.PluralRules)
|
|
3225
|
-
throw new
|
|
3253
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
|
3226
3254
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3227
|
-
`,
|
|
3228
|
-
var
|
|
3229
|
-
f = h.options[
|
|
3255
|
+
`, se.MISSING_INTL_API, s);
|
|
3256
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3257
|
+
f = h.options[w] || h.options.other;
|
|
3230
3258
|
}
|
|
3231
3259
|
if (!f)
|
|
3232
|
-
throw new
|
|
3260
|
+
throw new Ot(h.value, c, Object.keys(h.options), s);
|
|
3233
3261
|
a.push.apply(a, Ce(f.value, t, r, n, i, c - (h.offset || 0)));
|
|
3234
3262
|
continue;
|
|
3235
3263
|
}
|
|
3236
3264
|
}
|
|
3237
|
-
return
|
|
3265
|
+
return ni(a);
|
|
3238
3266
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return t ?
|
|
3241
|
-
return r[n] =
|
|
3267
|
+
function oi(e, t) {
|
|
3268
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3269
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3242
3270
|
}, {})) : e;
|
|
3243
3271
|
}
|
|
3244
|
-
function
|
|
3272
|
+
function si(e, t) {
|
|
3245
3273
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3246
|
-
return r[n] =
|
|
3247
|
-
},
|
|
3274
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3275
|
+
}, S({}, e)) : e;
|
|
3248
3276
|
}
|
|
3249
|
-
function
|
|
3277
|
+
function ze(e) {
|
|
3250
3278
|
return {
|
|
3251
3279
|
create: function() {
|
|
3252
3280
|
return {
|
|
@@ -3260,39 +3288,39 @@ function Ye(e) {
|
|
|
3260
3288
|
}
|
|
3261
3289
|
};
|
|
3262
3290
|
}
|
|
3263
|
-
function
|
|
3291
|
+
function ai(e) {
|
|
3264
3292
|
return e === void 0 && (e = {
|
|
3265
3293
|
number: {},
|
|
3266
3294
|
dateTime: {},
|
|
3267
3295
|
pluralRules: {}
|
|
3268
3296
|
}), {
|
|
3269
|
-
getNumberFormat:
|
|
3297
|
+
getNumberFormat: Ve(function() {
|
|
3270
3298
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3299
|
r[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3300
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ne([void 0], r, !1)))();
|
|
3273
3301
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3302
|
+
cache: ze(e.number),
|
|
3303
|
+
strategy: Xe.variadic
|
|
3276
3304
|
}),
|
|
3277
|
-
getDateTimeFormat:
|
|
3305
|
+
getDateTimeFormat: Ve(function() {
|
|
3278
3306
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3307
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3308
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ne([void 0], r, !1)))();
|
|
3281
3309
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3310
|
+
cache: ze(e.dateTime),
|
|
3311
|
+
strategy: Xe.variadic
|
|
3284
3312
|
}),
|
|
3285
|
-
getPluralRules:
|
|
3313
|
+
getPluralRules: Ve(function() {
|
|
3286
3314
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3315
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3316
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ne([void 0], r, !1)))();
|
|
3289
3317
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3318
|
+
cache: ze(e.pluralRules),
|
|
3319
|
+
strategy: Xe.variadic
|
|
3292
3320
|
})
|
|
3293
3321
|
};
|
|
3294
3322
|
}
|
|
3295
|
-
var
|
|
3323
|
+
var gr = (
|
|
3296
3324
|
/** @class */
|
|
3297
3325
|
function() {
|
|
3298
3326
|
function e(t, r, n, i) {
|
|
@@ -3324,13 +3352,13 @@ var vr = (
|
|
|
3324
3352
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3325
3353
|
var s = i || {};
|
|
3326
3354
|
s.formatters;
|
|
3327
|
-
var a =
|
|
3328
|
-
this.ast = e.__parse(t,
|
|
3355
|
+
var a = yn(s, ["formatters"]);
|
|
3356
|
+
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
|
3329
3357
|
} else
|
|
3330
3358
|
this.ast = t;
|
|
3331
3359
|
if (!Array.isArray(this.ast))
|
|
3332
3360
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3361
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3334
3362
|
}
|
|
3335
3363
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3364
|
get: function() {
|
|
@@ -3343,7 +3371,7 @@ var vr = (
|
|
|
3343
3371
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3372
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3373
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3374
|
+
}, e.__parse = ei, e.formats = {
|
|
3347
3375
|
number: {
|
|
3348
3376
|
integer: {
|
|
3349
3377
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3432,7 @@ var vr = (
|
|
|
3404
3432
|
}, e;
|
|
3405
3433
|
}()
|
|
3406
3434
|
);
|
|
3407
|
-
function
|
|
3435
|
+
function ui(e, t) {
|
|
3408
3436
|
if (t == null)
|
|
3409
3437
|
return;
|
|
3410
3438
|
if (t in e)
|
|
@@ -3425,101 +3453,101 @@ function hi(e, t) {
|
|
|
3425
3453
|
n = void 0;
|
|
3426
3454
|
return n;
|
|
3427
3455
|
}
|
|
3428
|
-
const X = {},
|
|
3456
|
+
const X = {}, li = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), yr = (e, t) => {
|
|
3429
3457
|
if (t == null)
|
|
3430
3458
|
return;
|
|
3431
3459
|
if (t in X && e in X[t])
|
|
3432
3460
|
return X[t][e];
|
|
3433
|
-
const r =
|
|
3461
|
+
const r = xe(t);
|
|
3434
3462
|
for (let n = 0; n < r.length; n++) {
|
|
3435
|
-
const i = r[n], o =
|
|
3463
|
+
const i = r[n], o = ci(i, e);
|
|
3436
3464
|
if (o)
|
|
3437
|
-
return
|
|
3465
|
+
return li(e, t, o);
|
|
3438
3466
|
}
|
|
3439
3467
|
};
|
|
3440
|
-
let
|
|
3441
|
-
const
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3468
|
+
let gt;
|
|
3469
|
+
const _e = Ue({});
|
|
3470
|
+
function hi(e) {
|
|
3471
|
+
return gt[e] || null;
|
|
3444
3472
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e in
|
|
3473
|
+
function vr(e) {
|
|
3474
|
+
return e in gt;
|
|
3447
3475
|
}
|
|
3448
|
-
function
|
|
3449
|
-
if (!
|
|
3476
|
+
function ci(e, t) {
|
|
3477
|
+
if (!vr(e))
|
|
3450
3478
|
return null;
|
|
3451
|
-
const r =
|
|
3452
|
-
return
|
|
3479
|
+
const r = hi(e);
|
|
3480
|
+
return ui(r, t);
|
|
3453
3481
|
}
|
|
3454
|
-
function
|
|
3482
|
+
function fi(e) {
|
|
3455
3483
|
if (e == null)
|
|
3456
3484
|
return;
|
|
3457
|
-
const t =
|
|
3485
|
+
const t = xe(e);
|
|
3458
3486
|
for (let r = 0; r < t.length; r++) {
|
|
3459
3487
|
const n = t[r];
|
|
3460
|
-
if (
|
|
3488
|
+
if (vr(n))
|
|
3461
3489
|
return n;
|
|
3462
3490
|
}
|
|
3463
3491
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete X[e],
|
|
3492
|
+
function _r(e, ...t) {
|
|
3493
|
+
delete X[e], _e.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3466
3494
|
}
|
|
3467
|
-
|
|
3468
|
-
[
|
|
3495
|
+
le(
|
|
3496
|
+
[_e],
|
|
3469
3497
|
([e]) => Object.keys(e)
|
|
3470
3498
|
);
|
|
3471
|
-
|
|
3499
|
+
_e.subscribe((e) => gt = e);
|
|
3472
3500
|
const Ie = {};
|
|
3473
|
-
function
|
|
3501
|
+
function pi(e, t) {
|
|
3474
3502
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3475
3503
|
}
|
|
3476
|
-
function
|
|
3504
|
+
function xr(e) {
|
|
3477
3505
|
return Ie[e];
|
|
3478
3506
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3481
|
-
const r =
|
|
3507
|
+
function mi(e) {
|
|
3508
|
+
return xe(e).map((t) => {
|
|
3509
|
+
const r = xr(t);
|
|
3482
3510
|
return [t, r ? [...r] : []];
|
|
3483
3511
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3512
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e == null ? !1 :
|
|
3513
|
+
function $e(e) {
|
|
3514
|
+
return e == null ? !1 : xe(e).some(
|
|
3487
3515
|
(t) => {
|
|
3488
3516
|
var r;
|
|
3489
|
-
return (r =
|
|
3517
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
3490
3518
|
}
|
|
3491
3519
|
);
|
|
3492
3520
|
}
|
|
3493
|
-
function
|
|
3521
|
+
function di(e, t) {
|
|
3494
3522
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3497
|
-
}
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3500
|
-
if (
|
|
3501
|
-
return e in
|
|
3502
|
-
const t =
|
|
3503
|
-
return
|
|
3523
|
+
t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
|
|
3524
|
+
).then((n) => _r(e, ...n));
|
|
3525
|
+
}
|
|
3526
|
+
const pe = {};
|
|
3527
|
+
function Er(e) {
|
|
3528
|
+
if (!$e(e))
|
|
3529
|
+
return e in pe ? pe[e] : Promise.resolve();
|
|
3530
|
+
const t = mi(e);
|
|
3531
|
+
return pe[e] = Promise.all(
|
|
3504
3532
|
t.map(
|
|
3505
|
-
([r, n]) =>
|
|
3533
|
+
([r, n]) => di(r, n)
|
|
3506
3534
|
)
|
|
3507
3535
|
).then(() => {
|
|
3508
|
-
if (
|
|
3509
|
-
return
|
|
3510
|
-
delete
|
|
3511
|
-
}),
|
|
3536
|
+
if ($e(e))
|
|
3537
|
+
return Er(e);
|
|
3538
|
+
delete pe[e];
|
|
3539
|
+
}), pe[e];
|
|
3512
3540
|
}
|
|
3513
|
-
var
|
|
3541
|
+
var Ct = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, yi = (e, t) => {
|
|
3514
3542
|
var r = {};
|
|
3515
3543
|
for (var n in e)
|
|
3516
|
-
|
|
3517
|
-
if (e != null &&
|
|
3518
|
-
for (var n of
|
|
3519
|
-
t.indexOf(n) < 0 &&
|
|
3544
|
+
bi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3545
|
+
if (e != null && Ct)
|
|
3546
|
+
for (var n of Ct(e))
|
|
3547
|
+
t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
|
|
3520
3548
|
return r;
|
|
3521
3549
|
};
|
|
3522
|
-
const
|
|
3550
|
+
const vi = {
|
|
3523
3551
|
number: {
|
|
3524
3552
|
scientific: { notation: "scientific" },
|
|
3525
3553
|
engineering: { notation: "engineering" },
|
|
@@ -3549,159 +3577,159 @@ const Ei = {
|
|
|
3549
3577
|
}
|
|
3550
3578
|
}
|
|
3551
3579
|
};
|
|
3552
|
-
function
|
|
3580
|
+
function _i({ locale: e, id: t }) {
|
|
3553
3581
|
console.warn(
|
|
3554
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3582
|
+
`[svelte-i18n] The message "${t}" was not found in "${xe(
|
|
3555
3583
|
e
|
|
3556
|
-
).join('", "')}".${
|
|
3584
|
+
).join('", "')}".${$e(W()) ? `
|
|
3557
3585
|
|
|
3558
3586
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3559
3587
|
);
|
|
3560
3588
|
}
|
|
3561
|
-
const
|
|
3589
|
+
const xi = {
|
|
3562
3590
|
fallbackLocale: null,
|
|
3563
3591
|
loadingDelay: 200,
|
|
3564
|
-
formats:
|
|
3592
|
+
formats: vi,
|
|
3565
3593
|
warnOnMissingMessages: !0,
|
|
3566
3594
|
handleMissingMessage: void 0,
|
|
3567
3595
|
ignoreTag: !0
|
|
3568
|
-
},
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3596
|
+
}, me = xi;
|
|
3597
|
+
function ae() {
|
|
3598
|
+
return me;
|
|
3571
3599
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const t = e, { formats: r } = t, n =
|
|
3600
|
+
function Ei(e) {
|
|
3601
|
+
const t = e, { formats: r } = t, n = yi(t, ["formats"]);
|
|
3574
3602
|
let i = e.fallbackLocale;
|
|
3575
3603
|
if (e.initialLocale)
|
|
3576
3604
|
try {
|
|
3577
|
-
|
|
3605
|
+
gr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3578
3606
|
} catch {
|
|
3579
3607
|
console.warn(
|
|
3580
3608
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3581
3609
|
);
|
|
3582
3610
|
}
|
|
3583
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3611
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = _i : console.warn(
|
|
3584
3612
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3585
|
-
)), Object.assign(
|
|
3613
|
+
)), Object.assign(me, n, { initialLocale: i }), r && ("number" in r && Object.assign(me.formats.number, r.number), "date" in r && Object.assign(me.formats.date, r.date), "time" in r && Object.assign(me.formats.time, r.time)), Z.set(i);
|
|
3586
3614
|
}
|
|
3587
|
-
const
|
|
3588
|
-
var
|
|
3615
|
+
const Ze = Ue(!1);
|
|
3616
|
+
var Si = Object.defineProperty, Ti = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ai = (e, t) => {
|
|
3589
3617
|
for (var r in t || (t = {}))
|
|
3590
|
-
|
|
3591
|
-
if (
|
|
3592
|
-
for (var r of
|
|
3593
|
-
|
|
3618
|
+
Hi.call(t, r) && Lt(e, r, t[r]);
|
|
3619
|
+
if (It)
|
|
3620
|
+
for (var r of It(t))
|
|
3621
|
+
Pi.call(t, r) && Lt(e, r, t[r]);
|
|
3594
3622
|
return e;
|
|
3595
|
-
},
|
|
3623
|
+
}, Bi = (e, t) => Ti(e, wi(t));
|
|
3596
3624
|
let ut;
|
|
3597
|
-
const
|
|
3598
|
-
function
|
|
3625
|
+
const Re = Ue(null);
|
|
3626
|
+
function Nt(e) {
|
|
3599
3627
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3600
3628
|
}
|
|
3601
|
-
function
|
|
3602
|
-
const r =
|
|
3603
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3629
|
+
function xe(e, t = ae().fallbackLocale) {
|
|
3630
|
+
const r = Nt(e);
|
|
3631
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
|
3604
3632
|
}
|
|
3605
3633
|
function W() {
|
|
3606
3634
|
return ut ?? void 0;
|
|
3607
3635
|
}
|
|
3608
|
-
|
|
3636
|
+
Re.subscribe((e) => {
|
|
3609
3637
|
ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3610
3638
|
});
|
|
3611
|
-
const
|
|
3612
|
-
if (e &&
|
|
3613
|
-
const { loadingDelay: t } =
|
|
3639
|
+
const Mi = (e) => {
|
|
3640
|
+
if (e && fi(e) && $e(e)) {
|
|
3641
|
+
const { loadingDelay: t } = ae();
|
|
3614
3642
|
let r;
|
|
3615
3643
|
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
3616
|
-
() =>
|
|
3644
|
+
() => Ze.set(!0),
|
|
3617
3645
|
t
|
|
3618
|
-
) :
|
|
3619
|
-
|
|
3646
|
+
) : Ze.set(!0), Er(e).then(() => {
|
|
3647
|
+
Re.set(e);
|
|
3620
3648
|
}).finally(() => {
|
|
3621
|
-
clearTimeout(r),
|
|
3649
|
+
clearTimeout(r), Ze.set(!1);
|
|
3622
3650
|
});
|
|
3623
3651
|
}
|
|
3624
|
-
return
|
|
3625
|
-
}, Z =
|
|
3626
|
-
set:
|
|
3627
|
-
}),
|
|
3652
|
+
return Re.set(e);
|
|
3653
|
+
}, Z = Bi(Ai({}, Re), {
|
|
3654
|
+
set: Mi
|
|
3655
|
+
}), Fe = (e) => {
|
|
3628
3656
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3629
3657
|
return (n) => {
|
|
3630
3658
|
const i = JSON.stringify(n);
|
|
3631
3659
|
return i in t ? t[i] : t[i] = e(n);
|
|
3632
3660
|
};
|
|
3633
3661
|
};
|
|
3634
|
-
var
|
|
3662
|
+
var Oi = Object.defineProperty, De = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
3635
3663
|
for (var r in t || (t = {}))
|
|
3636
|
-
|
|
3637
|
-
if (
|
|
3638
|
-
for (var r of
|
|
3639
|
-
|
|
3664
|
+
Sr.call(t, r) && $t(e, r, t[r]);
|
|
3665
|
+
if (De)
|
|
3666
|
+
for (var r of De(t))
|
|
3667
|
+
Tr.call(t, r) && $t(e, r, t[r]);
|
|
3640
3668
|
return e;
|
|
3641
|
-
},
|
|
3669
|
+
}, he = (e, t) => {
|
|
3642
3670
|
var r = {};
|
|
3643
3671
|
for (var n in e)
|
|
3644
|
-
|
|
3645
|
-
if (e != null &&
|
|
3646
|
-
for (var n of
|
|
3647
|
-
t.indexOf(n) < 0 &&
|
|
3672
|
+
Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3673
|
+
if (e != null && De)
|
|
3674
|
+
for (var n of De(e))
|
|
3675
|
+
t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
|
|
3648
3676
|
return r;
|
|
3649
3677
|
};
|
|
3650
|
-
const
|
|
3651
|
-
const { formats: r } =
|
|
3678
|
+
const ve = (e, t) => {
|
|
3679
|
+
const { formats: r } = ae();
|
|
3652
3680
|
if (e in r && t in r[e])
|
|
3653
3681
|
return r[e][t];
|
|
3654
3682
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3655
|
-
},
|
|
3683
|
+
}, Ci = Fe(
|
|
3656
3684
|
(e) => {
|
|
3657
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3658
3686
|
if (r == null)
|
|
3659
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3660
|
-
return n && (i =
|
|
3688
|
+
return n && (i = ve("number", n)), new Intl.NumberFormat(r, i);
|
|
3661
3689
|
}
|
|
3662
|
-
),
|
|
3690
|
+
), Ii = Fe(
|
|
3663
3691
|
(e) => {
|
|
3664
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3665
3693
|
if (r == null)
|
|
3666
3694
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3667
|
-
return n ? i =
|
|
3695
|
+
return n ? i = ve("date", n) : Object.keys(i).length === 0 && (i = ve("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3668
3696
|
}
|
|
3669
|
-
),
|
|
3697
|
+
), Li = Fe(
|
|
3670
3698
|
(e) => {
|
|
3671
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3699
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3672
3700
|
if (r == null)
|
|
3673
3701
|
throw new Error(
|
|
3674
3702
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3675
3703
|
);
|
|
3676
|
-
return n ? i =
|
|
3704
|
+
return n ? i = ve("time", n) : Object.keys(i).length === 0 && (i = ve("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3677
3705
|
}
|
|
3678
|
-
),
|
|
3706
|
+
), Ni = (e = {}) => {
|
|
3679
3707
|
var t = e, {
|
|
3680
3708
|
locale: r = W()
|
|
3681
|
-
} = t, n =
|
|
3709
|
+
} = t, n = he(t, [
|
|
3682
3710
|
"locale"
|
|
3683
3711
|
]);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3712
|
+
return Ci(yt({ locale: r }, n));
|
|
3713
|
+
}, $i = (e = {}) => {
|
|
3686
3714
|
var t = e, {
|
|
3687
3715
|
locale: r = W()
|
|
3688
|
-
} = t, n =
|
|
3716
|
+
} = t, n = he(t, [
|
|
3689
3717
|
"locale"
|
|
3690
3718
|
]);
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3719
|
+
return Ii(yt({ locale: r }, n));
|
|
3720
|
+
}, Ri = (e = {}) => {
|
|
3693
3721
|
var t = e, {
|
|
3694
3722
|
locale: r = W()
|
|
3695
|
-
} = t, n =
|
|
3723
|
+
} = t, n = he(t, [
|
|
3696
3724
|
"locale"
|
|
3697
3725
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3726
|
+
return Li(yt({ locale: r }, n));
|
|
3727
|
+
}, Di = Fe(
|
|
3700
3728
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3701
|
-
(e, t = W()) => new
|
|
3702
|
-
ignoreTag:
|
|
3729
|
+
(e, t = W()) => new gr(e, t, ae().formats, {
|
|
3730
|
+
ignoreTag: ae().ignoreTag
|
|
3703
3731
|
})
|
|
3704
|
-
),
|
|
3732
|
+
), Ui = (e, t = {}) => {
|
|
3705
3733
|
var r, n, i, o;
|
|
3706
3734
|
let s = t;
|
|
3707
3735
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3714,9 +3742,9 @@ const ye = (e, t) => {
|
|
|
3714
3742
|
throw new Error(
|
|
3715
3743
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3716
3744
|
);
|
|
3717
|
-
let h =
|
|
3745
|
+
let h = yr(e, l);
|
|
3718
3746
|
if (!h)
|
|
3719
|
-
h = (o = (i = (n = (r =
|
|
3747
|
+
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3720
3748
|
else if (typeof h != "string")
|
|
3721
3749
|
return console.warn(
|
|
3722
3750
|
`[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.`
|
|
@@ -3725,7 +3753,7 @@ const ye = (e, t) => {
|
|
|
3725
3753
|
return h;
|
|
3726
3754
|
let p = h;
|
|
3727
3755
|
try {
|
|
3728
|
-
p =
|
|
3756
|
+
p = Di(h, l).format(a);
|
|
3729
3757
|
} catch (c) {
|
|
3730
3758
|
c instanceof Error && console.warn(
|
|
3731
3759
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3733,26 +3761,26 @@ const ye = (e, t) => {
|
|
|
3733
3761
|
);
|
|
3734
3762
|
}
|
|
3735
3763
|
return p;
|
|
3736
|
-
},
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
function
|
|
3742
|
-
|
|
3743
|
-
}
|
|
3744
|
-
function
|
|
3745
|
-
|
|
3764
|
+
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Ni(t).format(e), ki = (e, t = W()) => yr(e, t), Vi = le([Z, _e], () => Ui);
|
|
3765
|
+
le([Z], () => Gi);
|
|
3766
|
+
le([Z], () => Fi);
|
|
3767
|
+
le([Z], () => ji);
|
|
3768
|
+
le([Z, _e], () => ki);
|
|
3769
|
+
function Rt(e, t) {
|
|
3770
|
+
_r(e, t);
|
|
3771
|
+
}
|
|
3772
|
+
function Xi(e) {
|
|
3773
|
+
Ei({
|
|
3746
3774
|
fallbackLocale: "en"
|
|
3747
3775
|
}), Z.set(e);
|
|
3748
3776
|
}
|
|
3749
|
-
function
|
|
3777
|
+
function Wi(e, t) {
|
|
3750
3778
|
if (e) {
|
|
3751
3779
|
const r = document.createElement("style");
|
|
3752
3780
|
r.innerHTML = t, e.appendChild(r);
|
|
3753
3781
|
}
|
|
3754
3782
|
}
|
|
3755
|
-
function
|
|
3783
|
+
function zi(e, t) {
|
|
3756
3784
|
const r = new URL(t);
|
|
3757
3785
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3758
3786
|
const i = document.createElement("style");
|
|
@@ -3761,7 +3789,7 @@ function Qi(e, t) {
|
|
|
3761
3789
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3762
3790
|
});
|
|
3763
3791
|
}
|
|
3764
|
-
function
|
|
3792
|
+
function Zi(e, t, r) {
|
|
3765
3793
|
if (window.emMessageBus) {
|
|
3766
3794
|
const n = document.createElement("style");
|
|
3767
3795
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3769,85 +3797,16 @@ function Yi(e, t, r) {
|
|
|
3769
3797
|
});
|
|
3770
3798
|
}
|
|
3771
3799
|
}
|
|
3772
|
-
|
|
3773
|
-
Copyright (c) Microsoft Corporation.
|
|
3774
|
-
|
|
3775
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3776
|
-
purpose with or without fee is hereby granted.
|
|
3777
|
-
|
|
3778
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3779
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3780
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3781
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3782
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3783
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3784
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3785
|
-
***************************************************************************** */
|
|
3786
|
-
var lt = function(e, t) {
|
|
3787
|
-
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3788
|
-
r.__proto__ = n;
|
|
3789
|
-
} || function(r, n) {
|
|
3790
|
-
for (var i in n)
|
|
3791
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3792
|
-
}, lt(e, t);
|
|
3793
|
-
};
|
|
3794
|
-
function Ee(e, t) {
|
|
3795
|
-
if (typeof t != "function" && t !== null)
|
|
3796
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3797
|
-
lt(e, t);
|
|
3798
|
-
function r() {
|
|
3799
|
-
this.constructor = e;
|
|
3800
|
-
}
|
|
3801
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3802
|
-
}
|
|
3803
|
-
function ht(e) {
|
|
3804
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3805
|
-
if (r)
|
|
3806
|
-
return r.call(e);
|
|
3807
|
-
if (e && typeof e.length == "number")
|
|
3808
|
-
return {
|
|
3809
|
-
next: function() {
|
|
3810
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
3811
|
-
}
|
|
3812
|
-
};
|
|
3813
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3814
|
-
}
|
|
3815
|
-
function ct(e, t) {
|
|
3816
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3817
|
-
if (!r)
|
|
3818
|
-
return e;
|
|
3819
|
-
var n = r.call(e), i, o = [], s;
|
|
3820
|
-
try {
|
|
3821
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
3822
|
-
o.push(i.value);
|
|
3823
|
-
} catch (a) {
|
|
3824
|
-
s = { error: a };
|
|
3825
|
-
} finally {
|
|
3826
|
-
try {
|
|
3827
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
3828
|
-
} finally {
|
|
3829
|
-
if (s)
|
|
3830
|
-
throw s.error;
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
return o;
|
|
3834
|
-
}
|
|
3835
|
-
function ft(e, t, r) {
|
|
3836
|
-
if (arguments.length === 2)
|
|
3837
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
3838
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3839
|
-
return e.concat(o || t);
|
|
3840
|
-
}
|
|
3841
|
-
function V(e) {
|
|
3800
|
+
function k(e) {
|
|
3842
3801
|
return typeof e == "function";
|
|
3843
3802
|
}
|
|
3844
|
-
function
|
|
3803
|
+
function wr(e) {
|
|
3845
3804
|
var t = function(n) {
|
|
3846
3805
|
Error.call(n), n.stack = new Error().stack;
|
|
3847
3806
|
}, r = e(t);
|
|
3848
3807
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3849
3808
|
}
|
|
3850
|
-
var
|
|
3809
|
+
var Qe = wr(function(e) {
|
|
3851
3810
|
return function(r) {
|
|
3852
3811
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3853
3812
|
` + r.map(function(n, i) {
|
|
@@ -3856,13 +3815,13 @@ var qe = Pr(function(e) {
|
|
|
3856
3815
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
3857
3816
|
};
|
|
3858
3817
|
});
|
|
3859
|
-
function
|
|
3818
|
+
function lt(e, t) {
|
|
3860
3819
|
if (e) {
|
|
3861
3820
|
var r = e.indexOf(t);
|
|
3862
3821
|
0 <= r && e.splice(r, 1);
|
|
3863
3822
|
}
|
|
3864
3823
|
}
|
|
3865
|
-
var
|
|
3824
|
+
var je = function() {
|
|
3866
3825
|
function e(t) {
|
|
3867
3826
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3868
3827
|
}
|
|
@@ -3874,7 +3833,7 @@ var Ve = function() {
|
|
|
3874
3833
|
if (s)
|
|
3875
3834
|
if (this._parentage = null, Array.isArray(s))
|
|
3876
3835
|
try {
|
|
3877
|
-
for (var a =
|
|
3836
|
+
for (var a = et(s), l = a.next(); !l.done; l = a.next()) {
|
|
3878
3837
|
var u = l.value;
|
|
3879
3838
|
u.remove(this);
|
|
3880
3839
|
}
|
|
@@ -3891,22 +3850,22 @@ var Ve = function() {
|
|
|
3891
3850
|
else
|
|
3892
3851
|
s.remove(this);
|
|
3893
3852
|
var h = this.initialTeardown;
|
|
3894
|
-
if (
|
|
3853
|
+
if (k(h))
|
|
3895
3854
|
try {
|
|
3896
3855
|
h();
|
|
3897
3856
|
} catch (g) {
|
|
3898
|
-
o = g instanceof
|
|
3857
|
+
o = g instanceof Qe ? g.errors : [g];
|
|
3899
3858
|
}
|
|
3900
3859
|
var p = this._finalizers;
|
|
3901
3860
|
if (p) {
|
|
3902
3861
|
this._finalizers = null;
|
|
3903
3862
|
try {
|
|
3904
|
-
for (var c =
|
|
3863
|
+
for (var c = et(p), b = c.next(); !b.done; b = c.next()) {
|
|
3905
3864
|
var y = b.value;
|
|
3906
3865
|
try {
|
|
3907
|
-
|
|
3866
|
+
Dt(y);
|
|
3908
3867
|
} catch (g) {
|
|
3909
|
-
o = o ?? [], g instanceof
|
|
3868
|
+
o = o ?? [], g instanceof Qe ? o = ne(ne([], tt(o)), tt(g.errors)) : o.push(g);
|
|
3910
3869
|
}
|
|
3911
3870
|
}
|
|
3912
3871
|
} catch (g) {
|
|
@@ -3921,13 +3880,13 @@ var Ve = function() {
|
|
|
3921
3880
|
}
|
|
3922
3881
|
}
|
|
3923
3882
|
if (o)
|
|
3924
|
-
throw new
|
|
3883
|
+
throw new Qe(o);
|
|
3925
3884
|
}
|
|
3926
3885
|
}, e.prototype.add = function(t) {
|
|
3927
3886
|
var r;
|
|
3928
3887
|
if (t && t !== this)
|
|
3929
3888
|
if (this.closed)
|
|
3930
|
-
|
|
3889
|
+
Dt(t);
|
|
3931
3890
|
else {
|
|
3932
3891
|
if (t instanceof e) {
|
|
3933
3892
|
if (t.closed || t._hasParent(this))
|
|
@@ -3944,52 +3903,56 @@ var Ve = function() {
|
|
|
3944
3903
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
3945
3904
|
}, e.prototype._removeParent = function(t) {
|
|
3946
3905
|
var r = this._parentage;
|
|
3947
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
3906
|
+
r === t ? this._parentage = null : Array.isArray(r) && lt(r, t);
|
|
3948
3907
|
}, e.prototype.remove = function(t) {
|
|
3949
3908
|
var r = this._finalizers;
|
|
3950
|
-
r &&
|
|
3909
|
+
r && lt(r, t), t instanceof e && t._removeParent(this);
|
|
3951
3910
|
}, e.EMPTY = function() {
|
|
3952
3911
|
var t = new e();
|
|
3953
3912
|
return t.closed = !0, t;
|
|
3954
3913
|
}(), e;
|
|
3955
|
-
}(),
|
|
3956
|
-
function
|
|
3957
|
-
return e instanceof
|
|
3958
|
-
}
|
|
3959
|
-
function
|
|
3960
|
-
|
|
3961
|
-
}
|
|
3962
|
-
var
|
|
3963
|
-
|
|
3964
|
-
|
|
3914
|
+
}(), Hr = je.EMPTY;
|
|
3915
|
+
function Pr(e) {
|
|
3916
|
+
return e instanceof je || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
3917
|
+
}
|
|
3918
|
+
function Dt(e) {
|
|
3919
|
+
k(e) ? e() : e.unsubscribe();
|
|
3920
|
+
}
|
|
3921
|
+
var Ar = {
|
|
3922
|
+
onUnhandledError: null,
|
|
3923
|
+
onStoppedNotification: null,
|
|
3924
|
+
Promise: void 0,
|
|
3925
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
3926
|
+
useDeprecatedNextContext: !1
|
|
3927
|
+
}, Qi = {
|
|
3965
3928
|
setTimeout: function(e, t) {
|
|
3966
3929
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3967
3930
|
r[n - 2] = arguments[n];
|
|
3968
|
-
return setTimeout.apply(void 0,
|
|
3931
|
+
return setTimeout.apply(void 0, ne([e, t], tt(r)));
|
|
3969
3932
|
},
|
|
3970
3933
|
clearTimeout: function(e) {
|
|
3971
3934
|
return clearTimeout(e);
|
|
3972
3935
|
},
|
|
3973
3936
|
delegate: void 0
|
|
3974
3937
|
};
|
|
3975
|
-
function
|
|
3976
|
-
|
|
3938
|
+
function Yi(e) {
|
|
3939
|
+
Qi.setTimeout(function() {
|
|
3977
3940
|
throw e;
|
|
3978
3941
|
});
|
|
3979
3942
|
}
|
|
3980
|
-
function
|
|
3943
|
+
function Ut() {
|
|
3981
3944
|
}
|
|
3982
3945
|
function Le(e) {
|
|
3983
3946
|
e();
|
|
3984
3947
|
}
|
|
3985
3948
|
var Br = function(e) {
|
|
3986
|
-
|
|
3949
|
+
V(t, e);
|
|
3987
3950
|
function t(r) {
|
|
3988
3951
|
var n = e.call(this) || this;
|
|
3989
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
3952
|
+
return n.isStopped = !1, r ? (n.destination = r, Pr(r) && r.add(n)) : n.destination = eo, n;
|
|
3990
3953
|
}
|
|
3991
3954
|
return t.create = function(r, n, i) {
|
|
3992
|
-
return new
|
|
3955
|
+
return new ht(r, n, i);
|
|
3993
3956
|
}, t.prototype.next = function(r) {
|
|
3994
3957
|
this.isStopped || this._next(r);
|
|
3995
3958
|
}, t.prototype.error = function(r) {
|
|
@@ -4013,7 +3976,11 @@ var Br = function(e) {
|
|
|
4013
3976
|
this.unsubscribe();
|
|
4014
3977
|
}
|
|
4015
3978
|
}, t;
|
|
4016
|
-
}(
|
|
3979
|
+
}(je), Ji = Function.prototype.bind;
|
|
3980
|
+
function Ye(e, t) {
|
|
3981
|
+
return Ji.call(e, t);
|
|
3982
|
+
}
|
|
3983
|
+
var qi = function() {
|
|
4017
3984
|
function e(t) {
|
|
4018
3985
|
this.partialObserver = t;
|
|
4019
3986
|
}
|
|
@@ -4044,43 +4011,55 @@ var Br = function(e) {
|
|
|
4044
4011
|
Ae(r);
|
|
4045
4012
|
}
|
|
4046
4013
|
}, e;
|
|
4047
|
-
}(),
|
|
4048
|
-
|
|
4014
|
+
}(), ht = function(e) {
|
|
4015
|
+
V(t, e);
|
|
4049
4016
|
function t(r, n, i) {
|
|
4050
4017
|
var o = e.call(this) || this, s;
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4018
|
+
if (k(r) || !r)
|
|
4019
|
+
s = {
|
|
4020
|
+
next: r ?? void 0,
|
|
4021
|
+
error: n ?? void 0,
|
|
4022
|
+
complete: i ?? void 0
|
|
4023
|
+
};
|
|
4024
|
+
else {
|
|
4025
|
+
var a;
|
|
4026
|
+
o && Ar.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
4027
|
+
return o.unsubscribe();
|
|
4028
|
+
}, s = {
|
|
4029
|
+
next: r.next && Ye(r.next, a),
|
|
4030
|
+
error: r.error && Ye(r.error, a),
|
|
4031
|
+
complete: r.complete && Ye(r.complete, a)
|
|
4032
|
+
}) : s = r;
|
|
4033
|
+
}
|
|
4034
|
+
return o.destination = new qi(s), o;
|
|
4056
4035
|
}
|
|
4057
4036
|
return t;
|
|
4058
4037
|
}(Br);
|
|
4059
4038
|
function Ae(e) {
|
|
4060
|
-
|
|
4039
|
+
Yi(e);
|
|
4061
4040
|
}
|
|
4062
|
-
function
|
|
4041
|
+
function Ki(e) {
|
|
4063
4042
|
throw e;
|
|
4064
4043
|
}
|
|
4065
|
-
var
|
|
4044
|
+
var eo = {
|
|
4066
4045
|
closed: !0,
|
|
4067
|
-
next:
|
|
4068
|
-
error:
|
|
4069
|
-
complete:
|
|
4070
|
-
},
|
|
4046
|
+
next: Ut,
|
|
4047
|
+
error: Ki,
|
|
4048
|
+
complete: Ut
|
|
4049
|
+
}, to = function() {
|
|
4071
4050
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4072
4051
|
}();
|
|
4073
|
-
function
|
|
4052
|
+
function ro(e) {
|
|
4074
4053
|
return e;
|
|
4075
4054
|
}
|
|
4076
|
-
function
|
|
4077
|
-
return e.length === 0 ?
|
|
4055
|
+
function no(e) {
|
|
4056
|
+
return e.length === 0 ? ro : e.length === 1 ? e[0] : function(r) {
|
|
4078
4057
|
return e.reduce(function(n, i) {
|
|
4079
4058
|
return i(n);
|
|
4080
4059
|
}, r);
|
|
4081
4060
|
};
|
|
4082
4061
|
}
|
|
4083
|
-
var
|
|
4062
|
+
var Gt = function() {
|
|
4084
4063
|
function e(t) {
|
|
4085
4064
|
t && (this._subscribe = t);
|
|
4086
4065
|
}
|
|
@@ -4088,7 +4067,7 @@ var jt = function() {
|
|
|
4088
4067
|
var r = new e();
|
|
4089
4068
|
return r.source = this, r.operator = t, r;
|
|
4090
4069
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4091
|
-
var i = this, o =
|
|
4070
|
+
var i = this, o = oo(t) ? t : new ht(t, r, n);
|
|
4092
4071
|
return Le(function() {
|
|
4093
4072
|
var s = i, a = s.operator, l = s.source;
|
|
4094
4073
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4101,8 +4080,8 @@ var jt = function() {
|
|
|
4101
4080
|
}
|
|
4102
4081
|
}, e.prototype.forEach = function(t, r) {
|
|
4103
4082
|
var n = this;
|
|
4104
|
-
return r =
|
|
4105
|
-
var s = new
|
|
4083
|
+
return r = Ft(r), new r(function(i, o) {
|
|
4084
|
+
var s = new ht({
|
|
4106
4085
|
next: function(a) {
|
|
4107
4086
|
try {
|
|
4108
4087
|
t(a);
|
|
@@ -4118,15 +4097,15 @@ var jt = function() {
|
|
|
4118
4097
|
}, e.prototype._subscribe = function(t) {
|
|
4119
4098
|
var r;
|
|
4120
4099
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4121
|
-
}, e.prototype[
|
|
4100
|
+
}, e.prototype[to] = function() {
|
|
4122
4101
|
return this;
|
|
4123
4102
|
}, e.prototype.pipe = function() {
|
|
4124
4103
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4125
4104
|
t[r] = arguments[r];
|
|
4126
|
-
return
|
|
4105
|
+
return no(t)(this);
|
|
4127
4106
|
}, e.prototype.toPromise = function(t) {
|
|
4128
4107
|
var r = this;
|
|
4129
|
-
return t =
|
|
4108
|
+
return t = Ft(t), new t(function(n, i) {
|
|
4130
4109
|
var o;
|
|
4131
4110
|
r.subscribe(function(s) {
|
|
4132
4111
|
return o = s;
|
|
@@ -4140,32 +4119,32 @@ var jt = function() {
|
|
|
4140
4119
|
return new e(t);
|
|
4141
4120
|
}, e;
|
|
4142
4121
|
}();
|
|
4143
|
-
function
|
|
4122
|
+
function Ft(e) {
|
|
4144
4123
|
var t;
|
|
4145
|
-
return (t = e ??
|
|
4124
|
+
return (t = e ?? Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4146
4125
|
}
|
|
4147
|
-
function
|
|
4148
|
-
return e &&
|
|
4126
|
+
function io(e) {
|
|
4127
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
4149
4128
|
}
|
|
4150
|
-
function
|
|
4151
|
-
return e && e instanceof Br ||
|
|
4129
|
+
function oo(e) {
|
|
4130
|
+
return e && e instanceof Br || io(e) && Pr(e);
|
|
4152
4131
|
}
|
|
4153
|
-
var
|
|
4132
|
+
var so = wr(function(e) {
|
|
4154
4133
|
return function() {
|
|
4155
4134
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4156
4135
|
};
|
|
4157
4136
|
}), Mr = function(e) {
|
|
4158
|
-
|
|
4137
|
+
V(t, e);
|
|
4159
4138
|
function t() {
|
|
4160
4139
|
var r = e.call(this) || this;
|
|
4161
4140
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4162
4141
|
}
|
|
4163
4142
|
return t.prototype.lift = function(r) {
|
|
4164
|
-
var n = new
|
|
4143
|
+
var n = new jt(this, this);
|
|
4165
4144
|
return n.operator = r, n;
|
|
4166
4145
|
}, t.prototype._throwIfClosed = function() {
|
|
4167
4146
|
if (this.closed)
|
|
4168
|
-
throw new
|
|
4147
|
+
throw new so();
|
|
4169
4148
|
}, t.prototype.next = function(r) {
|
|
4170
4149
|
var n = this;
|
|
4171
4150
|
Le(function() {
|
|
@@ -4173,7 +4152,7 @@ var uo = Pr(function(e) {
|
|
|
4173
4152
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4174
4153
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4175
4154
|
try {
|
|
4176
|
-
for (var s =
|
|
4155
|
+
for (var s = et(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4177
4156
|
var l = a.value;
|
|
4178
4157
|
l.next(r);
|
|
4179
4158
|
}
|
|
@@ -4222,20 +4201,20 @@ var uo = Pr(function(e) {
|
|
|
4222
4201
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4223
4202
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4224
4203
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4225
|
-
return o || s ?
|
|
4226
|
-
n.currentObservers = null,
|
|
4204
|
+
return o || s ? Hr : (this.currentObservers = null, a.push(r), new je(function() {
|
|
4205
|
+
n.currentObservers = null, lt(a, r);
|
|
4227
4206
|
}));
|
|
4228
4207
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4229
4208
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
4230
4209
|
i ? r.error(o) : s && r.complete();
|
|
4231
4210
|
}, t.prototype.asObservable = function() {
|
|
4232
|
-
var r = new
|
|
4211
|
+
var r = new Gt();
|
|
4233
4212
|
return r.source = this, r;
|
|
4234
4213
|
}, t.create = function(r, n) {
|
|
4235
|
-
return new
|
|
4214
|
+
return new jt(r, n);
|
|
4236
4215
|
}, t;
|
|
4237
|
-
}(
|
|
4238
|
-
|
|
4216
|
+
}(Gt), jt = function(e) {
|
|
4217
|
+
V(t, e);
|
|
4239
4218
|
function t(r, n) {
|
|
4240
4219
|
var i = e.call(this) || this;
|
|
4241
4220
|
return i.destination = r, i.source = n, i;
|
|
@@ -4251,17 +4230,17 @@ var uo = Pr(function(e) {
|
|
|
4251
4230
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
4252
4231
|
}, t.prototype._subscribe = function(r) {
|
|
4253
4232
|
var n, i;
|
|
4254
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
4233
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Hr;
|
|
4255
4234
|
}, t;
|
|
4256
|
-
}(Mr),
|
|
4235
|
+
}(Mr), Or = {
|
|
4257
4236
|
now: function() {
|
|
4258
|
-
return (
|
|
4237
|
+
return (Or.delegate || Date).now();
|
|
4259
4238
|
},
|
|
4260
4239
|
delegate: void 0
|
|
4261
|
-
},
|
|
4262
|
-
|
|
4240
|
+
}, ao = function(e) {
|
|
4241
|
+
V(t, e);
|
|
4263
4242
|
function t(r, n, i) {
|
|
4264
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
4243
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Or);
|
|
4265
4244
|
var o = e.call(this) || this;
|
|
4266
4245
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
4267
4246
|
}
|
|
@@ -4282,24 +4261,24 @@ var uo = Pr(function(e) {
|
|
|
4282
4261
|
}
|
|
4283
4262
|
}, t;
|
|
4284
4263
|
}(Mr);
|
|
4285
|
-
const
|
|
4286
|
-
if (
|
|
4287
|
-
const r = new
|
|
4288
|
-
|
|
4264
|
+
const kt = [], Vt = {}, uo = (e, t = 0) => {
|
|
4265
|
+
if (kt.indexOf(e) == -1) {
|
|
4266
|
+
const r = new ao(t);
|
|
4267
|
+
Vt[e] = r, kt.push(e);
|
|
4289
4268
|
}
|
|
4290
|
-
return
|
|
4269
|
+
return Vt[e];
|
|
4291
4270
|
};
|
|
4292
|
-
let
|
|
4293
|
-
const
|
|
4294
|
-
|
|
4295
|
-
},
|
|
4296
|
-
if (!
|
|
4297
|
-
return new Intl.NumberFormat(
|
|
4298
|
-
const n = new Intl.NumberFormat(
|
|
4299
|
-
return
|
|
4271
|
+
let ct = "en-UK", ft = "true", de = 2, pt = "";
|
|
4272
|
+
const lo = (e, t, r, n) => {
|
|
4273
|
+
ct = e || "en-UK", ft = t || "true", de = +n || 2, pt = r || "";
|
|
4274
|
+
}, Be = (e, t) => {
|
|
4275
|
+
if (!pt)
|
|
4276
|
+
return new Intl.NumberFormat(ct, { style: "currency", currency: t, currencyDisplay: ft === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).format(e);
|
|
4277
|
+
const n = new Intl.NumberFormat(ct, { style: "currency", currency: t, currencyDisplay: ft === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).formatToParts(e), i = n.find((l) => l.type === "currency"), s = n.filter((l) => l.type !== "currency").map((l) => l.value).join("");
|
|
4278
|
+
return pt === "before" ? `${i.value} ${s}` : `${s} ${i.value}`;
|
|
4300
4279
|
};
|
|
4301
|
-
window.emWidgets = { topic:
|
|
4302
|
-
const
|
|
4280
|
+
window.emWidgets = { topic: uo };
|
|
4281
|
+
const Xt = {
|
|
4303
4282
|
en: {
|
|
4304
4283
|
generalMin: "Min",
|
|
4305
4284
|
generalMax: "Max",
|
|
@@ -4331,18 +4310,18 @@ const zt = {
|
|
|
4331
4310
|
generalMax: "Max"
|
|
4332
4311
|
}
|
|
4333
4312
|
};
|
|
4334
|
-
function
|
|
4335
|
-
|
|
4313
|
+
function ho(e) {
|
|
4314
|
+
Lr(e, "svelte-19lknjo", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.Carousel{display:flex;gap:10px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #F9C405);height:10px;width:10px;opacity:0.5}.VisualDotIndicator .Dot.active{opacity:1;width:30px}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #F9C405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo img{height:36px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #F9C405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
|
|
4336
4315
|
}
|
|
4337
|
-
function
|
|
4316
|
+
function Wt(e, t, r) {
|
|
4338
4317
|
const n = e.slice();
|
|
4339
4318
|
return n[32] = t[r], n[34] = r, n;
|
|
4340
4319
|
}
|
|
4341
|
-
function
|
|
4320
|
+
function zt(e, t, r) {
|
|
4342
4321
|
const n = e.slice();
|
|
4343
4322
|
return n[35] = t[r], n[34] = r, n;
|
|
4344
4323
|
}
|
|
4345
|
-
function
|
|
4324
|
+
function co(e) {
|
|
4346
4325
|
let t, r = (
|
|
4347
4326
|
/*$_*/
|
|
4348
4327
|
e[4]("noPaymentMethods") + ""
|
|
@@ -4352,19 +4331,19 @@ function po(e) {
|
|
|
4352
4331
|
t = P("p"), n = $(r);
|
|
4353
4332
|
},
|
|
4354
4333
|
m(i, o) {
|
|
4355
|
-
G(i, t, o),
|
|
4334
|
+
G(i, t, o), T(t, n);
|
|
4356
4335
|
},
|
|
4357
4336
|
p(i, o) {
|
|
4358
4337
|
o[0] & /*$_*/
|
|
4359
4338
|
16 && r !== (r = /*$_*/
|
|
4360
|
-
i[4]("noPaymentMethods") + "") &&
|
|
4339
|
+
i[4]("noPaymentMethods") + "") && j(n, r);
|
|
4361
4340
|
},
|
|
4362
4341
|
d(i) {
|
|
4363
4342
|
i && R(t);
|
|
4364
4343
|
}
|
|
4365
4344
|
};
|
|
4366
4345
|
}
|
|
4367
|
-
function
|
|
4346
|
+
function fo(e) {
|
|
4368
4347
|
let t, r, n = (
|
|
4369
4348
|
/*$_*/
|
|
4370
4349
|
e[4]("carouselTitle") + ""
|
|
@@ -4374,46 +4353,46 @@ function mo(e) {
|
|
|
4374
4353
|
), l, u, h, p, c, b, y, g = He(
|
|
4375
4354
|
/*promotedPaymentMethods*/
|
|
4376
4355
|
e[2]
|
|
4377
|
-
),
|
|
4356
|
+
), x = [];
|
|
4378
4357
|
for (let f = 0; f < g.length; f += 1)
|
|
4379
|
-
|
|
4358
|
+
x[f] = Zt(zt(e, g, f));
|
|
4380
4359
|
let A = He(Array(
|
|
4381
4360
|
/*promotedPaymentMethods*/
|
|
4382
4361
|
e[2].length
|
|
4383
|
-
)),
|
|
4362
|
+
)), E = [];
|
|
4384
4363
|
for (let f = 0; f < A.length; f += 1)
|
|
4385
|
-
|
|
4364
|
+
E[f] = Qt(Wt(e, A, f));
|
|
4386
4365
|
return {
|
|
4387
4366
|
c() {
|
|
4388
|
-
t = P("div"), r = P("h4"), i = $(n), o =
|
|
4389
|
-
for (let f = 0; f < E.length; f += 1)
|
|
4390
|
-
E[f].c();
|
|
4391
|
-
p = j(), c = P("div");
|
|
4367
|
+
t = P("div"), r = P("h4"), i = $(n), o = F(), s = P("p"), l = $(a), u = F(), h = P("div");
|
|
4392
4368
|
for (let f = 0; f < x.length; f += 1)
|
|
4393
4369
|
x[f].c();
|
|
4394
|
-
|
|
4370
|
+
p = F(), c = P("div");
|
|
4371
|
+
for (let f = 0; f < E.length; f += 1)
|
|
4372
|
+
E[f].c();
|
|
4373
|
+
B(t, "class", "CarouselHeader"), B(h, "class", "Carousel"), B(c, "class", "VisualDotIndicator");
|
|
4395
4374
|
},
|
|
4396
|
-
m(f,
|
|
4397
|
-
G(f, t,
|
|
4398
|
-
for (let d = 0; d < E.length; d += 1)
|
|
4399
|
-
E[d] && E[d].m(h, null);
|
|
4400
|
-
e[19](h), G(f, p, T), G(f, c, T);
|
|
4375
|
+
m(f, w) {
|
|
4376
|
+
G(f, t, w), T(t, r), T(r, i), T(t, o), T(t, s), T(s, l), G(f, u, w), G(f, h, w);
|
|
4401
4377
|
for (let d = 0; d < x.length; d += 1)
|
|
4402
|
-
x[d] && x[d].m(
|
|
4378
|
+
x[d] && x[d].m(h, null);
|
|
4379
|
+
e[19](h), G(f, p, w), G(f, c, w);
|
|
4380
|
+
for (let d = 0; d < E.length; d += 1)
|
|
4381
|
+
E[d] && E[d].m(c, null);
|
|
4403
4382
|
b || (y = [
|
|
4404
|
-
|
|
4383
|
+
Me(
|
|
4405
4384
|
h,
|
|
4406
4385
|
"touchstart",
|
|
4407
4386
|
/*handleTouchStart*/
|
|
4408
4387
|
e[6]
|
|
4409
4388
|
),
|
|
4410
|
-
|
|
4389
|
+
Me(
|
|
4411
4390
|
h,
|
|
4412
4391
|
"touchmove",
|
|
4413
4392
|
/*handleTouchMove*/
|
|
4414
4393
|
e[7]
|
|
4415
4394
|
),
|
|
4416
|
-
|
|
4395
|
+
Me(
|
|
4417
4396
|
h,
|
|
4418
4397
|
"touchend",
|
|
4419
4398
|
/*handleTouchEnd*/
|
|
@@ -4421,12 +4400,12 @@ function mo(e) {
|
|
|
4421
4400
|
)
|
|
4422
4401
|
], b = !0);
|
|
4423
4402
|
},
|
|
4424
|
-
p(f,
|
|
4425
|
-
if (
|
|
4403
|
+
p(f, w) {
|
|
4404
|
+
if (w[0] & /*$_*/
|
|
4426
4405
|
16 && n !== (n = /*$_*/
|
|
4427
|
-
f[4]("carouselTitle") + "") &&
|
|
4406
|
+
f[4]("carouselTitle") + "") && j(i, n), w[0] & /*$_*/
|
|
4428
4407
|
16 && a !== (a = /*$_*/
|
|
4429
|
-
f[4]("carouselSubtitle") + "") &&
|
|
4408
|
+
f[4]("carouselSubtitle") + "") && j(l, a), w[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, $_*/
|
|
4430
4409
|
60) {
|
|
4431
4410
|
g = He(
|
|
4432
4411
|
/*promotedPaymentMethods*/
|
|
@@ -4434,14 +4413,14 @@ function mo(e) {
|
|
|
4434
4413
|
);
|
|
4435
4414
|
let d;
|
|
4436
4415
|
for (d = 0; d < g.length; d += 1) {
|
|
4437
|
-
const
|
|
4438
|
-
|
|
4416
|
+
const M = zt(f, g, d);
|
|
4417
|
+
x[d] ? x[d].p(M, w) : (x[d] = Zt(M), x[d].c(), x[d].m(h, null));
|
|
4439
4418
|
}
|
|
4440
|
-
for (; d <
|
|
4441
|
-
|
|
4442
|
-
|
|
4419
|
+
for (; d < x.length; d += 1)
|
|
4420
|
+
x[d].d(1);
|
|
4421
|
+
x.length = g.length;
|
|
4443
4422
|
}
|
|
4444
|
-
if (
|
|
4423
|
+
if (w[0] & /*activeIndex, promotedPaymentMethods*/
|
|
4445
4424
|
12) {
|
|
4446
4425
|
A = He(Array(
|
|
4447
4426
|
/*promotedPaymentMethods*/
|
|
@@ -4449,20 +4428,20 @@ function mo(e) {
|
|
|
4449
4428
|
));
|
|
4450
4429
|
let d;
|
|
4451
4430
|
for (d = 0; d < A.length; d += 1) {
|
|
4452
|
-
const
|
|
4453
|
-
|
|
4431
|
+
const M = Wt(f, A, d);
|
|
4432
|
+
E[d] ? E[d].p(M, w) : (E[d] = Qt(M), E[d].c(), E[d].m(c, null));
|
|
4454
4433
|
}
|
|
4455
|
-
for (; d <
|
|
4456
|
-
|
|
4457
|
-
|
|
4434
|
+
for (; d < E.length; d += 1)
|
|
4435
|
+
E[d].d(1);
|
|
4436
|
+
E.length = A.length;
|
|
4458
4437
|
}
|
|
4459
4438
|
},
|
|
4460
4439
|
d(f) {
|
|
4461
|
-
f && (R(t), R(u), R(h), R(p), R(c)),
|
|
4440
|
+
f && (R(t), R(u), R(h), R(p), R(c)), xt(x, f), e[19](null), xt(E, f), b = !1, ue(y);
|
|
4462
4441
|
}
|
|
4463
4442
|
};
|
|
4464
4443
|
}
|
|
4465
|
-
function
|
|
4444
|
+
function Zt(e) {
|
|
4466
4445
|
let t, r, n, i, o, s, a, l, u, h = (
|
|
4467
4446
|
/*method*/
|
|
4468
4447
|
(e[35].Label || /*method*/
|
|
@@ -4471,23 +4450,23 @@ function Yt(e) {
|
|
|
4471
4450
|
/*$_*/
|
|
4472
4451
|
e[4](`${/*method*/
|
|
4473
4452
|
e[35].ProcessingTime}`) + ""
|
|
4474
|
-
),
|
|
4453
|
+
), x, A, E, f, w = (
|
|
4475
4454
|
/*$_*/
|
|
4476
4455
|
e[4]("generalMin") + ""
|
|
4477
|
-
), d,
|
|
4456
|
+
), d, M, U = Be(
|
|
4478
4457
|
/*method*/
|
|
4479
4458
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4480
4459
|
/*method*/
|
|
4481
4460
|
e[35].DisplayCurrency.Name
|
|
4482
|
-
) + "", z,
|
|
4461
|
+
) + "", z, Ee, Q = (
|
|
4483
4462
|
/*$_*/
|
|
4484
4463
|
e[4]("generalMax") + ""
|
|
4485
|
-
),
|
|
4464
|
+
), ce, Se, Y = Be(
|
|
4486
4465
|
/*method*/
|
|
4487
4466
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4488
4467
|
/*method*/
|
|
4489
4468
|
e[35].DisplayCurrency.Name
|
|
4490
|
-
) + "",
|
|
4469
|
+
) + "", fe, Te, m, O, L;
|
|
4491
4470
|
function J() {
|
|
4492
4471
|
return (
|
|
4493
4472
|
/*click_handler*/
|
|
@@ -4499,57 +4478,57 @@ function Yt(e) {
|
|
|
4499
4478
|
}
|
|
4500
4479
|
return {
|
|
4501
4480
|
c() {
|
|
4502
|
-
t = P("div"), r = P("div"), n = P("img"), s =
|
|
4503
|
-
e[35].LogoUrl) ||
|
|
4504
|
-
e[35].Label),
|
|
4481
|
+
t = P("div"), r = P("div"), n = P("img"), s = F(), a = P("div"), l = P("div"), u = P("span"), p = $(h), c = F(), b = P("div"), y = P("span"), x = $(g), A = F(), E = P("div"), f = P("span"), d = $(w), M = F(), z = $(U), Ee = $(" / "), ce = $(Q), Se = F(), fe = $(Y), Te = F(), _t(n.src, i = /*method*/
|
|
4482
|
+
e[35].LogoUrl) || B(n, "src", i), B(n, "alt", o = /*method*/
|
|
4483
|
+
e[35].Label), B(r, "class", "MethodLogo"), B(l, "class", "MethodTitle"), B(b, "class", "MethodProcessingTime"), B(f, "class", "Limits"), B(E, "class", "MethodLimits"), B(a, "class", "MethodInfo"), B(t, "class", m = `CarouselCardWrapper ${/*index*/
|
|
4505
4484
|
e[34] === /*activeIndex*/
|
|
4506
4485
|
e[3] ? "active" : ""}`);
|
|
4507
4486
|
},
|
|
4508
4487
|
m(q, I) {
|
|
4509
|
-
G(q, t, I),
|
|
4488
|
+
G(q, t, I), T(t, r), T(r, n), T(t, s), T(t, a), T(a, l), T(l, u), T(u, p), T(a, c), T(a, b), T(b, y), T(y, x), T(a, A), T(a, E), T(E, f), T(f, d), T(f, M), T(f, z), T(f, Ee), T(f, ce), T(f, Se), T(f, fe), T(t, Te), O || (L = Me(t, "click", J), O = !0);
|
|
4510
4489
|
},
|
|
4511
4490
|
p(q, I) {
|
|
4512
4491
|
e = q, I[0] & /*promotedPaymentMethods*/
|
|
4513
|
-
4 && !
|
|
4514
|
-
e[35].LogoUrl) &&
|
|
4492
|
+
4 && !_t(n.src, i = /*method*/
|
|
4493
|
+
e[35].LogoUrl) && B(n, "src", i), I[0] & /*promotedPaymentMethods*/
|
|
4515
4494
|
4 && o !== (o = /*method*/
|
|
4516
|
-
e[35].Label) &&
|
|
4495
|
+
e[35].Label) && B(n, "alt", o), I[0] & /*promotedPaymentMethods*/
|
|
4517
4496
|
4 && h !== (h = /*method*/
|
|
4518
4497
|
(e[35].Label || /*method*/
|
|
4519
|
-
e[35].Name) + "") &&
|
|
4498
|
+
e[35].Name) + "") && j(p, h), I[0] & /*$_, promotedPaymentMethods*/
|
|
4520
4499
|
20 && g !== (g = /*$_*/
|
|
4521
4500
|
e[4](`${/*method*/
|
|
4522
|
-
e[35].ProcessingTime}`) + "") &&
|
|
4523
|
-
16 &&
|
|
4524
|
-
e[4]("generalMin") + "") &&
|
|
4525
|
-
4 && U !== (U =
|
|
4501
|
+
e[35].ProcessingTime}`) + "") && j(x, g), I[0] & /*$_*/
|
|
4502
|
+
16 && w !== (w = /*$_*/
|
|
4503
|
+
e[4]("generalMin") + "") && j(d, w), I[0] & /*promotedPaymentMethods*/
|
|
4504
|
+
4 && U !== (U = Be(
|
|
4526
4505
|
/*method*/
|
|
4527
4506
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4528
4507
|
/*method*/
|
|
4529
4508
|
e[35].DisplayCurrency.Name
|
|
4530
|
-
) + "") &&
|
|
4509
|
+
) + "") && j(z, U), I[0] & /*$_*/
|
|
4531
4510
|
16 && Q !== (Q = /*$_*/
|
|
4532
|
-
e[4]("generalMax") + "") &&
|
|
4533
|
-
4 && Y !== (Y =
|
|
4511
|
+
e[4]("generalMax") + "") && j(ce, Q), I[0] & /*promotedPaymentMethods*/
|
|
4512
|
+
4 && Y !== (Y = Be(
|
|
4534
4513
|
/*method*/
|
|
4535
4514
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4536
4515
|
/*method*/
|
|
4537
4516
|
e[35].DisplayCurrency.Name
|
|
4538
|
-
) + "") &&
|
|
4517
|
+
) + "") && j(fe, Y), I[0] & /*activeIndex*/
|
|
4539
4518
|
8 && m !== (m = `CarouselCardWrapper ${/*index*/
|
|
4540
4519
|
e[34] === /*activeIndex*/
|
|
4541
|
-
e[3] ? "active" : ""}`) &&
|
|
4520
|
+
e[3] ? "active" : ""}`) && B(t, "class", m);
|
|
4542
4521
|
},
|
|
4543
4522
|
d(q) {
|
|
4544
|
-
q && R(t),
|
|
4523
|
+
q && R(t), O = !1, L();
|
|
4545
4524
|
}
|
|
4546
4525
|
};
|
|
4547
4526
|
}
|
|
4548
|
-
function
|
|
4527
|
+
function Qt(e) {
|
|
4549
4528
|
let t, r;
|
|
4550
4529
|
return {
|
|
4551
4530
|
c() {
|
|
4552
|
-
t = P("div"),
|
|
4531
|
+
t = P("div"), B(t, "class", r = `Dot ${/*index*/
|
|
4553
4532
|
e[34] === /*activeIndex*/
|
|
4554
4533
|
e[3] ? "active" : ""}`);
|
|
4555
4534
|
},
|
|
@@ -4560,28 +4539,28 @@ function Jt(e) {
|
|
|
4560
4539
|
i[0] & /*activeIndex*/
|
|
4561
4540
|
8 && r !== (r = `Dot ${/*index*/
|
|
4562
4541
|
n[34] === /*activeIndex*/
|
|
4563
|
-
n[3] ? "active" : ""}`) &&
|
|
4542
|
+
n[3] ? "active" : ""}`) && B(t, "class", r);
|
|
4564
4543
|
},
|
|
4565
4544
|
d(n) {
|
|
4566
4545
|
n && R(t);
|
|
4567
4546
|
}
|
|
4568
4547
|
};
|
|
4569
4548
|
}
|
|
4570
|
-
function
|
|
4549
|
+
function po(e) {
|
|
4571
4550
|
let t, r;
|
|
4572
4551
|
function n(s, a) {
|
|
4573
4552
|
return (
|
|
4574
4553
|
/*promotedPaymentMethods*/
|
|
4575
|
-
s[2].length > 0 ?
|
|
4554
|
+
s[2].length > 0 ? fo : co
|
|
4576
4555
|
);
|
|
4577
4556
|
}
|
|
4578
4557
|
let i = n(e), o = i(e);
|
|
4579
4558
|
return {
|
|
4580
4559
|
c() {
|
|
4581
|
-
t = P("div"), r = P("div"), o.c(),
|
|
4560
|
+
t = P("div"), r = P("div"), o.c(), B(r, "class", "CashierCarouselWarpper");
|
|
4582
4561
|
},
|
|
4583
4562
|
m(s, a) {
|
|
4584
|
-
G(s, t, a),
|
|
4563
|
+
G(s, t, a), T(t, r), o.m(r, null), e[20](t);
|
|
4585
4564
|
},
|
|
4586
4565
|
p(s, a) {
|
|
4587
4566
|
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(r, null)));
|
|
@@ -4593,28 +4572,28 @@ function bo(e) {
|
|
|
4593
4572
|
}
|
|
4594
4573
|
};
|
|
4595
4574
|
}
|
|
4596
|
-
function
|
|
4575
|
+
function mo(e, t, r) {
|
|
4597
4576
|
let n;
|
|
4598
|
-
|
|
4599
|
-
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: p = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0,
|
|
4600
|
-
const
|
|
4577
|
+
Ir(e, Vi, (m) => r(4, n = m));
|
|
4578
|
+
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: p = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0, x = !0, A = 0, E = !1, f;
|
|
4579
|
+
const w = (m) => {
|
|
4601
4580
|
m.data && m.data.type === "PromotedPaymentMethods" && (r(2, y = m.data.promotedPaymentMethods), r(3, g = Math.floor(y.length / 2)));
|
|
4602
4581
|
};
|
|
4603
|
-
Object.keys(
|
|
4604
|
-
|
|
4582
|
+
Object.keys(Xt).forEach((m) => {
|
|
4583
|
+
Rt(m, Xt[m]);
|
|
4605
4584
|
});
|
|
4606
4585
|
const d = () => {
|
|
4607
4586
|
let m = c;
|
|
4608
4587
|
if (m)
|
|
4609
|
-
return fetch(m).then((
|
|
4610
|
-
Object.keys(
|
|
4611
|
-
|
|
4588
|
+
return fetch(m).then((O) => O.json()).then((O) => {
|
|
4589
|
+
Object.keys(O).forEach((L) => {
|
|
4590
|
+
Rt(L, O[L]);
|
|
4612
4591
|
});
|
|
4613
|
-
}).catch((
|
|
4614
|
-
console.log(
|
|
4592
|
+
}).catch((O) => {
|
|
4593
|
+
console.log(O);
|
|
4615
4594
|
});
|
|
4616
|
-
},
|
|
4617
|
-
|
|
4595
|
+
}, M = () => {
|
|
4596
|
+
Xi(i);
|
|
4618
4597
|
}, U = (m) => {
|
|
4619
4598
|
m.Name, window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4620
4599
|
"selectPayMeth",
|
|
@@ -4628,27 +4607,27 @@ function go(e, t, r) {
|
|
|
4628
4607
|
}, z = () => {
|
|
4629
4608
|
let J;
|
|
4630
4609
|
return y.length % 2 === 1 ? J = Math.floor(y.length / 2) : J = y.length / 2 - 0.5, `translateX(${(J - g) * 165}px)`;
|
|
4631
|
-
},
|
|
4632
|
-
A = m.touches[0].clientX,
|
|
4610
|
+
}, Ee = (m) => {
|
|
4611
|
+
A = m.touches[0].clientX, E = !0, f.classList.add("dragging");
|
|
4633
4612
|
}, Q = (m) => {
|
|
4634
|
-
if (!
|
|
4613
|
+
if (!E)
|
|
4635
4614
|
return;
|
|
4636
|
-
const
|
|
4637
|
-
Math.abs(
|
|
4638
|
-
},
|
|
4639
|
-
if (!
|
|
4615
|
+
const O = m.touches[0].clientX;
|
|
4616
|
+
Math.abs(O - A) > 10 && m.preventDefault();
|
|
4617
|
+
}, ce = (m) => {
|
|
4618
|
+
if (!E)
|
|
4640
4619
|
return;
|
|
4641
|
-
|
|
4642
|
-
const
|
|
4620
|
+
E = !1, f.classList.remove("dragging");
|
|
4621
|
+
const O = m.changedTouches[0].clientX, L = A - O;
|
|
4643
4622
|
Math.abs(L) > 50 && (L > 0 && g < y.length - 1 ? r(3, g++, g) : L < 0 && g > 0 && r(3, g--, g), r(1, f.style.transform = z(), f));
|
|
4644
4623
|
}, Se = () => {
|
|
4645
|
-
|
|
4624
|
+
x && (r(1, f.style.transform = z(), f), x = !1);
|
|
4646
4625
|
};
|
|
4647
|
-
|
|
4648
|
-
window.removeEventListener("message",
|
|
4626
|
+
Gr(() => (lo(o, s, a, l), window.addEventListener("message", w), f && z(), () => {
|
|
4627
|
+
window.removeEventListener("message", w);
|
|
4649
4628
|
}));
|
|
4650
4629
|
const Y = (m) => U(m);
|
|
4651
|
-
function
|
|
4630
|
+
function fe(m) {
|
|
4652
4631
|
Ne[m ? "unshift" : "push"](() => {
|
|
4653
4632
|
f = m, r(1, f);
|
|
4654
4633
|
});
|
|
@@ -4662,12 +4641,12 @@ function go(e, t, r) {
|
|
|
4662
4641
|
"lang" in m && r(9, i = m.lang), "local" in m && r(10, o = m.local), "currencysymbol" in m && r(11, s = m.currencysymbol), "currencyposition" in m && r(12, a = m.currencyposition), "currencydecimals" in m && r(13, l = m.currencydecimals), "clientstyling" in m && r(14, u = m.clientstyling), "clientstylingurl" in m && r(15, h = m.clientstylingurl), "mbsource" in m && r(16, p = m.mbsource), "translationurl" in m && r(17, c = m.translationurl);
|
|
4663
4642
|
}, e.$$.update = () => {
|
|
4664
4643
|
e.$$.dirty[0] & /*lang*/
|
|
4665
|
-
512 && i &&
|
|
4644
|
+
512 && i && M(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4666
4645
|
131584 && i && c && d(), e.$$.dirty[0] & /*carouselContainer*/
|
|
4667
4646
|
2 && f && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4668
|
-
16385 && u && b &&
|
|
4669
|
-
32769 && h && b &&
|
|
4670
|
-
65537 && p && b &&
|
|
4647
|
+
16385 && u && b && Wi(b, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4648
|
+
32769 && h && b && zi(b, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4649
|
+
65537 && p && b && Zi(b, `${p}.Style`);
|
|
4671
4650
|
}, [
|
|
4672
4651
|
b,
|
|
4673
4652
|
f,
|
|
@@ -4675,9 +4654,9 @@ function go(e, t, r) {
|
|
|
4675
4654
|
g,
|
|
4676
4655
|
n,
|
|
4677
4656
|
U,
|
|
4678
|
-
|
|
4657
|
+
Ee,
|
|
4679
4658
|
Q,
|
|
4680
|
-
|
|
4659
|
+
ce,
|
|
4681
4660
|
i,
|
|
4682
4661
|
o,
|
|
4683
4662
|
s,
|
|
@@ -4688,18 +4667,18 @@ function go(e, t, r) {
|
|
|
4688
4667
|
p,
|
|
4689
4668
|
c,
|
|
4690
4669
|
Y,
|
|
4691
|
-
|
|
4670
|
+
fe,
|
|
4692
4671
|
Te
|
|
4693
4672
|
];
|
|
4694
4673
|
}
|
|
4695
|
-
class
|
|
4674
|
+
class bo extends qr {
|
|
4696
4675
|
constructor(t) {
|
|
4697
|
-
super(),
|
|
4676
|
+
super(), Yr(
|
|
4698
4677
|
this,
|
|
4699
4678
|
t,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4679
|
+
mo,
|
|
4680
|
+
po,
|
|
4681
|
+
Jt,
|
|
4703
4682
|
{
|
|
4704
4683
|
lang: 9,
|
|
4705
4684
|
local: 10,
|
|
@@ -4711,7 +4690,7 @@ class yo extends Kr {
|
|
|
4711
4690
|
mbsource: 16,
|
|
4712
4691
|
translationurl: 17
|
|
4713
4692
|
},
|
|
4714
|
-
|
|
4693
|
+
ho,
|
|
4715
4694
|
[-1, -1]
|
|
4716
4695
|
);
|
|
4717
4696
|
}
|
|
@@ -4770,7 +4749,7 @@ class yo extends Kr {
|
|
|
4770
4749
|
this.$$set({ translationurl: t }), N();
|
|
4771
4750
|
}
|
|
4772
4751
|
}
|
|
4773
|
-
|
|
4752
|
+
Jr(bo, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4774
4753
|
export {
|
|
4775
|
-
|
|
4754
|
+
bo as C
|
|
4776
4755
|
};
|