@everymatrix/cashier-carousel 1.99.43 → 1.99.45
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-BR2d9I4i.cjs +20 -0
- package/components/{CashierCarousel-Df8YBSCH.js → CashierCarousel-DAaaD4LX.js} +869 -848
- package/components/{CashierCarousel-Cs5ZP7IM.js → CashierCarousel-DFnmeosX.js} +766 -745
- 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-E-76LpiX.cjs +0 -20
|
@@ -2,15 +2,15 @@ var ln = Object.defineProperty, hn = Object.defineProperties;
|
|
|
2
2
|
var cn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Vt = Object.getOwnPropertySymbols;
|
|
4
4
|
var fn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var pt = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
fn.call(t, r) &&
|
|
7
|
+
fn.call(t, r) && pt(e, r, t[r]);
|
|
8
8
|
if (Vt)
|
|
9
9
|
for (var r of Vt(t))
|
|
10
|
-
pn.call(t, r) &&
|
|
10
|
+
pn.call(t, r) && pt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Wt = (e, t) => hn(e, cn(t));
|
|
13
|
-
var D = (e, t, r) => (
|
|
13
|
+
var D = (e, t, r) => (pt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Xt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var Xt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function N() {
|
|
31
31
|
}
|
|
32
32
|
function Cr(e) {
|
|
33
33
|
return e();
|
|
@@ -35,18 +35,18 @@ function Cr(e) {
|
|
|
35
35
|
function zt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function pe(e) {
|
|
39
39
|
e.forEach(Cr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Dt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Hr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
47
|
+
let Ve;
|
|
48
48
|
function Zt(e, t) {
|
|
49
|
-
return e === t ? !0 : (
|
|
49
|
+
return e === t ? !0 : (Ve || (Ve = document.createElement("a")), Ve.href = t, e === Ve.href);
|
|
50
50
|
}
|
|
51
51
|
function dn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
@@ -55,7 +55,7 @@ function Ar(e, ...t) {
|
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return N;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -63,13 +63,13 @@ function Ar(e, ...t) {
|
|
|
63
63
|
function mn(e, t, r) {
|
|
64
64
|
e.$$.on_destroy.push(Ar(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
69
|
function bn(e, t, r) {
|
|
70
70
|
const n = gn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = T("style");
|
|
73
73
|
i.id = t, i.textContent = r, yn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -84,59 +84,59 @@ function gn(e) {
|
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
86
|
function yn(e, t) {
|
|
87
|
-
return
|
|
87
|
+
return v(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function k(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function U(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
99
|
function Qt(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function T(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function G(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function $() {
|
|
110
|
+
return G(" ");
|
|
111
111
|
}
|
|
112
112
|
function J(e, t, r, n) {
|
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function M(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
118
|
function vn(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function X(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
let
|
|
125
|
+
let We;
|
|
126
126
|
function _n() {
|
|
127
|
-
if (
|
|
128
|
-
|
|
127
|
+
if (We === void 0) {
|
|
128
|
+
We = !1;
|
|
129
129
|
try {
|
|
130
130
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
131
131
|
} catch (e) {
|
|
132
|
-
|
|
132
|
+
We = !0;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return We;
|
|
136
136
|
}
|
|
137
137
|
function En(e, t) {
|
|
138
138
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
139
|
-
const n =
|
|
139
|
+
const n = T("iframe");
|
|
140
140
|
n.setAttribute(
|
|
141
141
|
"style",
|
|
142
142
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
@@ -152,8 +152,8 @@ function En(e, t) {
|
|
|
152
152
|
}
|
|
153
153
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
154
154
|
o = J(n.contentWindow, "resize", t), t();
|
|
155
|
-
}),
|
|
156
|
-
(i || o && n.contentWindow) && o(),
|
|
155
|
+
}), v(e, n), () => {
|
|
156
|
+
(i || o && n.contentWindow) && o(), U(n);
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
function xn(e) {
|
|
@@ -177,74 +177,74 @@ function wn() {
|
|
|
177
177
|
function Sn(e) {
|
|
178
178
|
wn().$$.on_mount.push(e);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
let
|
|
180
|
+
const se = [], Se = [];
|
|
181
|
+
let ue = [];
|
|
182
182
|
const Yt = [], Tn = /* @__PURE__ */ Promise.resolve();
|
|
183
|
-
let
|
|
183
|
+
let xt = !1;
|
|
184
184
|
function Cn() {
|
|
185
|
-
|
|
185
|
+
xt || (xt = !0, Tn.then(I));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function rt(e) {
|
|
188
|
+
ue.push(e);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
if (
|
|
190
|
+
const dt = /* @__PURE__ */ new Set();
|
|
191
|
+
let ie = 0;
|
|
192
|
+
function I() {
|
|
193
|
+
if (ie !== 0)
|
|
194
194
|
return;
|
|
195
195
|
const e = Te;
|
|
196
196
|
do {
|
|
197
197
|
try {
|
|
198
|
-
for (;
|
|
199
|
-
const t =
|
|
200
|
-
|
|
198
|
+
for (; ie < se.length; ) {
|
|
199
|
+
const t = se[ie];
|
|
200
|
+
ie++, we(t), Hn(t.$$);
|
|
201
201
|
}
|
|
202
202
|
} catch (t) {
|
|
203
|
-
throw
|
|
203
|
+
throw se.length = 0, ie = 0, t;
|
|
204
204
|
}
|
|
205
|
-
for (we(null),
|
|
205
|
+
for (we(null), se.length = 0, ie = 0; Se.length; )
|
|
206
206
|
Se.pop()();
|
|
207
|
-
for (let t = 0; t <
|
|
208
|
-
const r =
|
|
209
|
-
|
|
207
|
+
for (let t = 0; t < ue.length; t += 1) {
|
|
208
|
+
const r = ue[t];
|
|
209
|
+
dt.has(r) || (dt.add(r), r());
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
} while (
|
|
211
|
+
ue.length = 0;
|
|
212
|
+
} while (se.length);
|
|
213
213
|
for (; Yt.length; )
|
|
214
214
|
Yt.pop()();
|
|
215
|
-
|
|
215
|
+
xt = !1, dt.clear(), we(e);
|
|
216
216
|
}
|
|
217
217
|
function Hn(e) {
|
|
218
218
|
if (e.fragment !== null) {
|
|
219
|
-
e.update(),
|
|
219
|
+
e.update(), pe(e.before_update);
|
|
220
220
|
const t = e.dirty;
|
|
221
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
221
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(rt);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function An(e) {
|
|
225
225
|
const t = [], r = [];
|
|
226
|
-
|
|
226
|
+
ue.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ue = t;
|
|
227
227
|
}
|
|
228
228
|
const Mn = /* @__PURE__ */ new Set();
|
|
229
229
|
function Pn(e, t) {
|
|
230
230
|
e && e.i && (Mn.delete(e), e.i(t));
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Xe(e) {
|
|
233
233
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
234
234
|
}
|
|
235
235
|
function On(e, t, r) {
|
|
236
236
|
const { fragment: n, after_update: i } = e.$$;
|
|
237
|
-
n && n.m(t, r),
|
|
238
|
-
const o = e.$$.on_mount.map(Cr).filter(
|
|
239
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
240
|
-
}), i.forEach(
|
|
237
|
+
n && n.m(t, r), rt(() => {
|
|
238
|
+
const o = e.$$.on_mount.map(Cr).filter(Dt);
|
|
239
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : pe(o), e.$$.on_mount = [];
|
|
240
|
+
}), i.forEach(rt);
|
|
241
241
|
}
|
|
242
242
|
function Bn(e, t) {
|
|
243
243
|
const r = e.$$;
|
|
244
|
-
r.fragment !== null && (An(r.after_update),
|
|
244
|
+
r.fragment !== null && (An(r.after_update), pe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
245
245
|
}
|
|
246
246
|
function Ln(e, t) {
|
|
247
|
-
e.$$.dirty[0] === -1 && (
|
|
247
|
+
e.$$.dirty[0] === -1 && (se.push(e), Cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
248
248
|
}
|
|
249
249
|
function In(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
250
250
|
const l = Te;
|
|
@@ -254,7 +254,7 @@ function In(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
254
254
|
ctx: [],
|
|
255
255
|
// state
|
|
256
256
|
props: o,
|
|
257
|
-
update:
|
|
257
|
+
update: N,
|
|
258
258
|
not_equal: i,
|
|
259
259
|
bound: zt(),
|
|
260
260
|
// lifecycle
|
|
@@ -272,16 +272,16 @@ function In(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
272
272
|
};
|
|
273
273
|
s && s(u.root);
|
|
274
274
|
let h = !1;
|
|
275
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
276
|
-
const
|
|
277
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
278
|
-
}) : [], u.update(), h = !0,
|
|
275
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
276
|
+
const b = y.length ? y[0] : c;
|
|
277
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Ln(e, f)), c;
|
|
278
|
+
}) : [], u.update(), h = !0, pe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
279
279
|
if (t.hydrate) {
|
|
280
280
|
const f = vn(t.target);
|
|
281
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
281
|
+
u.fragment && u.fragment.l(f), f.forEach(U);
|
|
282
282
|
} else
|
|
283
283
|
u.fragment && u.fragment.c();
|
|
284
|
-
t.intro && Pn(e.$$.fragment), On(e, t.target, t.anchor),
|
|
284
|
+
t.intro && Pn(e.$$.fragment), On(e, t.target, t.anchor), I();
|
|
285
285
|
}
|
|
286
286
|
we(l);
|
|
287
287
|
}
|
|
@@ -330,17 +330,17 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
330
330
|
let s;
|
|
331
331
|
return {
|
|
332
332
|
c: function() {
|
|
333
|
-
s =
|
|
333
|
+
s = T("slot"), o !== "default" && M(s, "name", o);
|
|
334
334
|
},
|
|
335
335
|
/**
|
|
336
336
|
* @param {HTMLElement} target
|
|
337
337
|
* @param {HTMLElement} [anchor]
|
|
338
338
|
*/
|
|
339
339
|
m: function(u, h) {
|
|
340
|
-
|
|
340
|
+
k(u, s, h);
|
|
341
341
|
},
|
|
342
342
|
d: function(u) {
|
|
343
|
-
u &&
|
|
343
|
+
u && U(s);
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
};
|
|
@@ -352,13 +352,13 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
352
352
|
o in n && (r[o] = [t(o)]);
|
|
353
353
|
for (const o of this.attributes) {
|
|
354
354
|
const s = this.$$g_p(o.name);
|
|
355
|
-
s in this.$$d || (this.$$d[s] =
|
|
355
|
+
s in this.$$d || (this.$$d[s] = Je(s, o.value, this.$$p_d, "toProp"));
|
|
356
356
|
}
|
|
357
357
|
for (const o in this.$$p_d)
|
|
358
358
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
359
359
|
this.$$c = new this.$$ctor({
|
|
360
360
|
target: this.shadowRoot || this,
|
|
361
|
-
props: Wt(
|
|
361
|
+
props: Wt(ke({}, this.$$d), {
|
|
362
362
|
$$slots: r,
|
|
363
363
|
$$scope: {
|
|
364
364
|
ctx: []
|
|
@@ -369,7 +369,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
369
369
|
this.$$r = !0;
|
|
370
370
|
for (const o in this.$$p_d)
|
|
371
371
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
372
|
-
const s =
|
|
372
|
+
const s = Je(
|
|
373
373
|
o,
|
|
374
374
|
this.$$d[o],
|
|
375
375
|
this.$$p_d,
|
|
@@ -393,7 +393,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
393
393
|
// and setting attributes through setAttribute etc, this is helpful
|
|
394
394
|
attributeChangedCallback(t, r, n) {
|
|
395
395
|
var i;
|
|
396
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
396
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Je(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
397
397
|
}
|
|
398
398
|
disconnectedCallback() {
|
|
399
399
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -406,7 +406,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
406
406
|
) || t;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
|
-
function
|
|
409
|
+
function Je(e, t, r, n) {
|
|
410
410
|
var o;
|
|
411
411
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
412
412
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -454,7 +454,7 @@ function Nn(e, t, r, n, i, o) {
|
|
|
454
454
|
},
|
|
455
455
|
set(l) {
|
|
456
456
|
var u;
|
|
457
|
-
l =
|
|
457
|
+
l = Je(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
}), n.forEach((a) => {
|
|
@@ -488,7 +488,7 @@ class Rn {
|
|
|
488
488
|
}
|
|
489
489
|
/** @returns {void} */
|
|
490
490
|
$destroy() {
|
|
491
|
-
Bn(this, 1), this.$destroy =
|
|
491
|
+
Bn(this, 1), this.$destroy = N;
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -497,8 +497,8 @@ class Rn {
|
|
|
497
497
|
* @returns {() => void}
|
|
498
498
|
*/
|
|
499
499
|
$on(t, r) {
|
|
500
|
-
if (!
|
|
501
|
-
return
|
|
500
|
+
if (!Dt(r))
|
|
501
|
+
return N;
|
|
502
502
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
503
503
|
return n.push(r), () => {
|
|
504
504
|
const i = n.indexOf(r);
|
|
@@ -515,110 +515,120 @@ class Rn {
|
|
|
515
515
|
}
|
|
516
516
|
const Dn = "4";
|
|
517
517
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dn);
|
|
518
|
-
const
|
|
519
|
-
|
|
518
|
+
const $n = (e, t = {}) => {
|
|
519
|
+
const r = new CustomEvent("track-custom-event", {
|
|
520
|
+
detail: {
|
|
521
|
+
type: e,
|
|
522
|
+
data: t
|
|
523
|
+
},
|
|
524
|
+
bubbles: !0,
|
|
525
|
+
composed: !0
|
|
526
|
+
});
|
|
527
|
+
document.dispatchEvent(r);
|
|
528
|
+
}, oe = [];
|
|
529
|
+
function Un(e, t) {
|
|
520
530
|
return {
|
|
521
|
-
subscribe:
|
|
531
|
+
subscribe: at(e, t).subscribe
|
|
522
532
|
};
|
|
523
533
|
}
|
|
524
|
-
function
|
|
534
|
+
function at(e, t = N) {
|
|
525
535
|
let r;
|
|
526
536
|
const n = /* @__PURE__ */ new Set();
|
|
527
537
|
function i(a) {
|
|
528
538
|
if (Hr(e, a) && (e = a, r)) {
|
|
529
|
-
const l = !
|
|
539
|
+
const l = !oe.length;
|
|
530
540
|
for (const u of n)
|
|
531
|
-
u[1](),
|
|
541
|
+
u[1](), oe.push(u, e);
|
|
532
542
|
if (l) {
|
|
533
|
-
for (let u = 0; u <
|
|
534
|
-
|
|
535
|
-
|
|
543
|
+
for (let u = 0; u < oe.length; u += 2)
|
|
544
|
+
oe[u][0](oe[u + 1]);
|
|
545
|
+
oe.length = 0;
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
548
|
}
|
|
539
549
|
function o(a) {
|
|
540
550
|
i(a(e));
|
|
541
551
|
}
|
|
542
|
-
function s(a, l =
|
|
552
|
+
function s(a, l = N) {
|
|
543
553
|
const u = [a, l];
|
|
544
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
554
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
545
555
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
546
556
|
};
|
|
547
557
|
}
|
|
548
558
|
return { set: i, update: o, subscribe: s };
|
|
549
559
|
}
|
|
550
|
-
function
|
|
560
|
+
function de(e, t, r) {
|
|
551
561
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
552
562
|
if (!i.every(Boolean))
|
|
553
563
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
554
564
|
const o = t.length < 2;
|
|
555
|
-
return
|
|
565
|
+
return Un(r, (s, a) => {
|
|
556
566
|
let l = !1;
|
|
557
567
|
const u = [];
|
|
558
|
-
let h = 0, f =
|
|
568
|
+
let h = 0, f = N;
|
|
559
569
|
const c = () => {
|
|
560
570
|
if (h)
|
|
561
571
|
return;
|
|
562
572
|
f();
|
|
563
|
-
const
|
|
564
|
-
o ? s(
|
|
565
|
-
},
|
|
566
|
-
(
|
|
567
|
-
|
|
568
|
-
(
|
|
569
|
-
u[
|
|
573
|
+
const b = t(n ? u[0] : u, s, a);
|
|
574
|
+
o ? s(b) : f = Dt(b) ? b : N;
|
|
575
|
+
}, y = i.map(
|
|
576
|
+
(b, m) => Ar(
|
|
577
|
+
b,
|
|
578
|
+
(S) => {
|
|
579
|
+
u[m] = S, h &= ~(1 << m), l && c();
|
|
570
580
|
},
|
|
571
581
|
() => {
|
|
572
|
-
h |= 1 <<
|
|
582
|
+
h |= 1 << m;
|
|
573
583
|
}
|
|
574
584
|
)
|
|
575
585
|
);
|
|
576
586
|
return l = !0, c(), function() {
|
|
577
|
-
|
|
587
|
+
pe(y), f(), l = !1;
|
|
578
588
|
};
|
|
579
589
|
});
|
|
580
590
|
}
|
|
581
|
-
function
|
|
591
|
+
function Fn(e) {
|
|
582
592
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
583
593
|
}
|
|
584
|
-
var
|
|
585
|
-
return
|
|
594
|
+
var Gn = function(t) {
|
|
595
|
+
return jn(t) && !kn(t);
|
|
586
596
|
};
|
|
587
|
-
function
|
|
597
|
+
function jn(e) {
|
|
588
598
|
return !!e && typeof e == "object";
|
|
589
599
|
}
|
|
590
|
-
function
|
|
600
|
+
function kn(e) {
|
|
591
601
|
var t = Object.prototype.toString.call(e);
|
|
592
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
593
|
-
}
|
|
594
|
-
var kn = typeof Symbol == "function" && Symbol.for, Vn = kn ? Symbol.for("react.element") : 60103;
|
|
595
|
-
function Wn(e) {
|
|
596
|
-
return e.$$typeof === Vn;
|
|
602
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xn(e);
|
|
597
603
|
}
|
|
604
|
+
var Vn = typeof Symbol == "function" && Symbol.for, Wn = Vn ? Symbol.for("react.element") : 60103;
|
|
598
605
|
function Xn(e) {
|
|
606
|
+
return e.$$typeof === Wn;
|
|
607
|
+
}
|
|
608
|
+
function zn(e) {
|
|
599
609
|
return Array.isArray(e) ? [] : {};
|
|
600
610
|
}
|
|
601
611
|
function Ce(e, t) {
|
|
602
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
612
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? le(zn(e), e, t) : e;
|
|
603
613
|
}
|
|
604
|
-
function
|
|
614
|
+
function Zn(e, t, r) {
|
|
605
615
|
return e.concat(t).map(function(n) {
|
|
606
616
|
return Ce(n, r);
|
|
607
617
|
});
|
|
608
618
|
}
|
|
609
|
-
function
|
|
619
|
+
function Qn(e, t) {
|
|
610
620
|
if (!t.customMerge)
|
|
611
|
-
return
|
|
621
|
+
return le;
|
|
612
622
|
var r = t.customMerge(e);
|
|
613
|
-
return typeof r == "function" ? r :
|
|
623
|
+
return typeof r == "function" ? r : le;
|
|
614
624
|
}
|
|
615
|
-
function
|
|
625
|
+
function Yn(e) {
|
|
616
626
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
617
627
|
return Object.propertyIsEnumerable.call(e, t);
|
|
618
628
|
}) : [];
|
|
619
629
|
}
|
|
620
630
|
function Jt(e) {
|
|
621
|
-
return Object.keys(e).concat(
|
|
631
|
+
return Object.keys(e).concat(Yn(e));
|
|
622
632
|
}
|
|
623
633
|
function Pr(e, t) {
|
|
624
634
|
try {
|
|
@@ -627,59 +637,59 @@ function Pr(e, t) {
|
|
|
627
637
|
return !1;
|
|
628
638
|
}
|
|
629
639
|
}
|
|
630
|
-
function
|
|
640
|
+
function Jn(e, t) {
|
|
631
641
|
return Pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
632
642
|
}
|
|
633
|
-
function
|
|
643
|
+
function qn(e, t, r) {
|
|
634
644
|
var n = {};
|
|
635
645
|
return r.isMergeableObject(e) && Jt(e).forEach(function(i) {
|
|
636
646
|
n[i] = Ce(e[i], r);
|
|
637
647
|
}), Jt(t).forEach(function(i) {
|
|
638
|
-
|
|
648
|
+
Jn(e, i) || (Pr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qn(i, r)(e[i], t[i], r) : n[i] = Ce(t[i], r));
|
|
639
649
|
}), n;
|
|
640
650
|
}
|
|
641
|
-
function
|
|
642
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
651
|
+
function le(e, t, r) {
|
|
652
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Zn, r.isMergeableObject = r.isMergeableObject || Gn, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
643
653
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
644
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
654
|
+
return o ? n ? r.arrayMerge(e, t, r) : qn(e, t, r) : Ce(t, r);
|
|
645
655
|
}
|
|
646
|
-
|
|
656
|
+
le.all = function(t, r) {
|
|
647
657
|
if (!Array.isArray(t))
|
|
648
658
|
throw new Error("first argument should be an array");
|
|
649
659
|
return t.reduce(function(n, i) {
|
|
650
|
-
return
|
|
660
|
+
return le(n, i, r);
|
|
651
661
|
}, {});
|
|
652
662
|
};
|
|
653
|
-
var
|
|
654
|
-
const
|
|
655
|
-
var
|
|
656
|
-
return
|
|
663
|
+
var Kn = le, ei = Kn;
|
|
664
|
+
const ti = /* @__PURE__ */ Fn(ei);
|
|
665
|
+
var wt = function(e, t) {
|
|
666
|
+
return wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
657
667
|
r.__proto__ = n;
|
|
658
668
|
} || function(r, n) {
|
|
659
669
|
for (var i in n)
|
|
660
670
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
661
|
-
},
|
|
671
|
+
}, wt(e, t);
|
|
662
672
|
};
|
|
663
|
-
function
|
|
673
|
+
function ut(e, t) {
|
|
664
674
|
if (typeof t != "function" && t !== null)
|
|
665
675
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
666
|
-
|
|
676
|
+
wt(e, t);
|
|
667
677
|
function r() {
|
|
668
678
|
this.constructor = e;
|
|
669
679
|
}
|
|
670
680
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
671
681
|
}
|
|
672
|
-
var
|
|
673
|
-
return
|
|
682
|
+
var j = function() {
|
|
683
|
+
return j = Object.assign || function(t) {
|
|
674
684
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
675
685
|
r = arguments[n];
|
|
676
686
|
for (var o in r)
|
|
677
687
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
678
688
|
}
|
|
679
689
|
return t;
|
|
680
|
-
},
|
|
690
|
+
}, j.apply(this, arguments);
|
|
681
691
|
};
|
|
682
|
-
function
|
|
692
|
+
function ri(e, t) {
|
|
683
693
|
var r = {};
|
|
684
694
|
for (var n in e)
|
|
685
695
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -688,24 +698,24 @@ function ti(e, t) {
|
|
|
688
698
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
689
699
|
return r;
|
|
690
700
|
}
|
|
691
|
-
function
|
|
701
|
+
function mt(e, t, r) {
|
|
692
702
|
if (r || arguments.length === 2)
|
|
693
703
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
694
704
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
695
705
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
696
706
|
}
|
|
697
|
-
function
|
|
698
|
-
var r = t && t.cache ? t.cache :
|
|
707
|
+
function bt(e, t) {
|
|
708
|
+
var r = t && t.cache ? t.cache : li, n = t && t.serializer ? t.serializer : ai, i = t && t.strategy ? t.strategy : oi;
|
|
699
709
|
return i(e, {
|
|
700
710
|
cache: r,
|
|
701
711
|
serializer: n
|
|
702
712
|
});
|
|
703
713
|
}
|
|
704
|
-
function
|
|
714
|
+
function ni(e) {
|
|
705
715
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
706
716
|
}
|
|
707
|
-
function
|
|
708
|
-
var i =
|
|
717
|
+
function ii(e, t, r, n) {
|
|
718
|
+
var i = ni(n) ? n : r(n), o = t.get(i);
|
|
709
719
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
710
720
|
}
|
|
711
721
|
function Or(e, t, r) {
|
|
@@ -715,16 +725,16 @@ function Or(e, t, r) {
|
|
|
715
725
|
function Br(e, t, r, n, i) {
|
|
716
726
|
return r.bind(t, e, n, i);
|
|
717
727
|
}
|
|
718
|
-
function
|
|
719
|
-
var r = e.length === 1 ?
|
|
728
|
+
function oi(e, t) {
|
|
729
|
+
var r = e.length === 1 ? ii : Or;
|
|
720
730
|
return Br(e, this, r, t.cache.create(), t.serializer);
|
|
721
731
|
}
|
|
722
|
-
function
|
|
732
|
+
function si(e, t) {
|
|
723
733
|
return Br(e, this, Or, t.cache.create(), t.serializer);
|
|
724
734
|
}
|
|
725
|
-
var
|
|
735
|
+
var ai = function() {
|
|
726
736
|
return JSON.stringify(arguments);
|
|
727
|
-
},
|
|
737
|
+
}, ui = (
|
|
728
738
|
/** @class */
|
|
729
739
|
function() {
|
|
730
740
|
function e() {
|
|
@@ -736,71 +746,71 @@ var si = function() {
|
|
|
736
746
|
this.cache[t] = r;
|
|
737
747
|
}, e;
|
|
738
748
|
}()
|
|
739
|
-
),
|
|
749
|
+
), li = {
|
|
740
750
|
create: function() {
|
|
741
|
-
return new
|
|
751
|
+
return new ui();
|
|
742
752
|
}
|
|
743
|
-
},
|
|
744
|
-
variadic:
|
|
745
|
-
},
|
|
746
|
-
return
|
|
753
|
+
}, gt = {
|
|
754
|
+
variadic: si
|
|
755
|
+
}, nt = function() {
|
|
756
|
+
return nt = Object.assign || function(t) {
|
|
747
757
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
748
758
|
r = arguments[n];
|
|
749
759
|
for (var o in r)
|
|
750
760
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
751
761
|
}
|
|
752
762
|
return t;
|
|
753
|
-
},
|
|
763
|
+
}, nt.apply(this, arguments);
|
|
754
764
|
};
|
|
755
|
-
var
|
|
765
|
+
var E;
|
|
756
766
|
(function(e) {
|
|
757
767
|
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";
|
|
758
|
-
})(
|
|
759
|
-
var
|
|
768
|
+
})(E || (E = {}));
|
|
769
|
+
var A;
|
|
760
770
|
(function(e) {
|
|
761
771
|
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";
|
|
762
|
-
})(
|
|
763
|
-
var
|
|
772
|
+
})(A || (A = {}));
|
|
773
|
+
var he;
|
|
764
774
|
(function(e) {
|
|
765
775
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
766
|
-
})(
|
|
776
|
+
})(he || (he = {}));
|
|
767
777
|
function qt(e) {
|
|
768
|
-
return e.type ===
|
|
778
|
+
return e.type === A.literal;
|
|
769
779
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.type ===
|
|
780
|
+
function hi(e) {
|
|
781
|
+
return e.type === A.argument;
|
|
772
782
|
}
|
|
773
783
|
function Lr(e) {
|
|
774
|
-
return e.type ===
|
|
784
|
+
return e.type === A.number;
|
|
775
785
|
}
|
|
776
786
|
function Ir(e) {
|
|
777
|
-
return e.type ===
|
|
787
|
+
return e.type === A.date;
|
|
778
788
|
}
|
|
779
789
|
function Nr(e) {
|
|
780
|
-
return e.type ===
|
|
790
|
+
return e.type === A.time;
|
|
781
791
|
}
|
|
782
792
|
function Rr(e) {
|
|
783
|
-
return e.type ===
|
|
793
|
+
return e.type === A.select;
|
|
784
794
|
}
|
|
785
795
|
function Dr(e) {
|
|
786
|
-
return e.type ===
|
|
796
|
+
return e.type === A.plural;
|
|
787
797
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.type ===
|
|
798
|
+
function ci(e) {
|
|
799
|
+
return e.type === A.pound;
|
|
790
800
|
}
|
|
791
801
|
function $r(e) {
|
|
792
|
-
return e.type ===
|
|
802
|
+
return e.type === A.tag;
|
|
793
803
|
}
|
|
794
804
|
function Ur(e) {
|
|
795
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
805
|
+
return !!(e && typeof e == "object" && e.type === he.number);
|
|
796
806
|
}
|
|
797
|
-
function
|
|
798
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
807
|
+
function St(e) {
|
|
808
|
+
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
799
809
|
}
|
|
800
|
-
var Fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
801
|
-
function
|
|
810
|
+
var Fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fi = /(?:[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;
|
|
811
|
+
function pi(e) {
|
|
802
812
|
var t = {};
|
|
803
|
-
return e.replace(
|
|
813
|
+
return e.replace(fi, function(r) {
|
|
804
814
|
var n = r.length;
|
|
805
815
|
switch (r[0]) {
|
|
806
816
|
case "G":
|
|
@@ -899,11 +909,11 @@ var P = function() {
|
|
|
899
909
|
return t;
|
|
900
910
|
}, P.apply(this, arguments);
|
|
901
911
|
};
|
|
902
|
-
var
|
|
903
|
-
function
|
|
912
|
+
var di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
913
|
+
function mi(e) {
|
|
904
914
|
if (e.length === 0)
|
|
905
915
|
throw new Error("Number skeleton cannot be empty");
|
|
906
|
-
for (var t = e.split(
|
|
916
|
+
for (var t = e.split(di).filter(function(c) {
|
|
907
917
|
return c.length > 0;
|
|
908
918
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
909
919
|
var o = i[n], s = o.split("/");
|
|
@@ -918,10 +928,10 @@ function di(e) {
|
|
|
918
928
|
}
|
|
919
929
|
return r;
|
|
920
930
|
}
|
|
921
|
-
function
|
|
931
|
+
function bi(e) {
|
|
922
932
|
return e.replace(/^(.*?)-/, "");
|
|
923
933
|
}
|
|
924
|
-
var Kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
934
|
+
var Kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gr = /^(@+)?(\+|#+)?[rs]?$/g, gi = /(\*)(0+)|(#+)(0+)|(0+)/g, jr = /^(0+)$/;
|
|
925
935
|
function er(e) {
|
|
926
936
|
var t = {};
|
|
927
937
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gr, function(r, n, i) {
|
|
@@ -968,7 +978,7 @@ function kr(e) {
|
|
|
968
978
|
};
|
|
969
979
|
}
|
|
970
980
|
}
|
|
971
|
-
function
|
|
981
|
+
function yi(e) {
|
|
972
982
|
var t;
|
|
973
983
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
974
984
|
notation: "engineering"
|
|
@@ -986,7 +996,7 @@ function tr(e) {
|
|
|
986
996
|
var t = {}, r = kr(e);
|
|
987
997
|
return r || t;
|
|
988
998
|
}
|
|
989
|
-
function
|
|
999
|
+
function vi(e) {
|
|
990
1000
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
991
1001
|
var i = n[r];
|
|
992
1002
|
switch (i.stem) {
|
|
@@ -1010,7 +1020,7 @@ function yi(e) {
|
|
|
1010
1020
|
continue;
|
|
1011
1021
|
case "measure-unit":
|
|
1012
1022
|
case "unit":
|
|
1013
|
-
t.style = "unit", t.unit =
|
|
1023
|
+
t.style = "unit", t.unit = bi(i.options[0]);
|
|
1014
1024
|
continue;
|
|
1015
1025
|
case "compact-short":
|
|
1016
1026
|
case "K":
|
|
@@ -1072,13 +1082,13 @@ function yi(e) {
|
|
|
1072
1082
|
case "integer-width":
|
|
1073
1083
|
if (i.options.length > 1)
|
|
1074
1084
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1075
|
-
i.options[0].replace(
|
|
1085
|
+
i.options[0].replace(gi, function(l, u, h, f, c, y) {
|
|
1076
1086
|
if (u)
|
|
1077
1087
|
t.minimumIntegerDigits = h.length;
|
|
1078
1088
|
else {
|
|
1079
1089
|
if (f && c)
|
|
1080
1090
|
throw new Error("We currently do not support maximum integer digits");
|
|
1081
|
-
if (
|
|
1091
|
+
if (y)
|
|
1082
1092
|
throw new Error("We currently do not support exact integer digits");
|
|
1083
1093
|
}
|
|
1084
1094
|
return "";
|
|
@@ -1092,8 +1102,8 @@ function yi(e) {
|
|
|
1092
1102
|
if (Kt.test(i.stem)) {
|
|
1093
1103
|
if (i.options.length > 1)
|
|
1094
1104
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1095
|
-
i.stem.replace(Kt, function(l, u, h, f, c,
|
|
1096
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1105
|
+
i.stem.replace(Kt, function(l, u, h, f, c, y) {
|
|
1106
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1097
1107
|
});
|
|
1098
1108
|
var o = i.options[0];
|
|
1099
1109
|
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), er(o)));
|
|
@@ -1105,12 +1115,12 @@ function yi(e) {
|
|
|
1105
1115
|
}
|
|
1106
1116
|
var s = kr(i.stem);
|
|
1107
1117
|
s && (t = P(P({}, t), s));
|
|
1108
|
-
var a =
|
|
1118
|
+
var a = yi(i.stem);
|
|
1109
1119
|
a && (t = P(P({}, t), a));
|
|
1110
1120
|
}
|
|
1111
1121
|
return t;
|
|
1112
1122
|
}
|
|
1113
|
-
var
|
|
1123
|
+
var ze = {
|
|
1114
1124
|
"001": [
|
|
1115
1125
|
"H",
|
|
1116
1126
|
"h"
|
|
@@ -2525,13 +2535,13 @@ var We = {
|
|
|
2525
2535
|
"h"
|
|
2526
2536
|
]
|
|
2527
2537
|
};
|
|
2528
|
-
function
|
|
2538
|
+
function _i(e, t) {
|
|
2529
2539
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2530
2540
|
var i = e.charAt(n);
|
|
2531
2541
|
if (i === "j") {
|
|
2532
2542
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2533
2543
|
o++, n++;
|
|
2534
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2544
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ei(t);
|
|
2535
2545
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2536
2546
|
r += l;
|
|
2537
2547
|
for (; s-- > 0; )
|
|
@@ -2541,7 +2551,7 @@ function vi(e, t) {
|
|
|
2541
2551
|
}
|
|
2542
2552
|
return r;
|
|
2543
2553
|
}
|
|
2544
|
-
function
|
|
2554
|
+
function Ei(e) {
|
|
2545
2555
|
var t = e.hourCycle;
|
|
2546
2556
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2547
2557
|
e.hourCycles && // @ts-ignore
|
|
@@ -2560,23 +2570,23 @@ function _i(e) {
|
|
|
2560
2570
|
}
|
|
2561
2571
|
var r = e.language, n;
|
|
2562
2572
|
r !== "root" && (n = e.maximize().region);
|
|
2563
|
-
var i =
|
|
2573
|
+
var i = ze[n || ""] || ze[r || ""] || ze["".concat(r, "-001")] || ze["001"];
|
|
2564
2574
|
return i[0];
|
|
2565
2575
|
}
|
|
2566
|
-
var
|
|
2576
|
+
var yt, xi = new RegExp("^".concat(Fr.source, "*")), wi = new RegExp("".concat(Fr.source, "*$"));
|
|
2567
2577
|
function w(e, t) {
|
|
2568
2578
|
return { start: e, end: t };
|
|
2569
2579
|
}
|
|
2570
|
-
var
|
|
2580
|
+
var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ti = !!String.fromCodePoint, Ci = !!Object.fromEntries, Hi = !!String.prototype.codePointAt, Ai = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Pi = !!Number.isSafeInteger, Oi = Pi ? Number.isSafeInteger : function(e) {
|
|
2571
2581
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2572
|
-
},
|
|
2582
|
+
}, Tt = !0;
|
|
2573
2583
|
try {
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2584
|
+
var Bi = Wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2585
|
+
Tt = ((yt = Bi.exec("a")) === null || yt === void 0 ? void 0 : yt[0]) === "a";
|
|
2576
2586
|
} catch (e) {
|
|
2577
|
-
|
|
2587
|
+
Tt = !1;
|
|
2578
2588
|
}
|
|
2579
|
-
var rr =
|
|
2589
|
+
var rr = Si ? (
|
|
2580
2590
|
// Native
|
|
2581
2591
|
function(t, r, n) {
|
|
2582
2592
|
return t.startsWith(r, n);
|
|
@@ -2586,7 +2596,7 @@ var rr = wi ? (
|
|
|
2586
2596
|
function(t, r, n) {
|
|
2587
2597
|
return t.slice(n, n + r.length) === r;
|
|
2588
2598
|
}
|
|
2589
|
-
),
|
|
2599
|
+
), Ct = Ti ? String.fromCodePoint : (
|
|
2590
2600
|
// IE11
|
|
2591
2601
|
function() {
|
|
2592
2602
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2600,7 +2610,7 @@ var rr = wi ? (
|
|
|
2600
2610
|
}
|
|
2601
2611
|
), nr = (
|
|
2602
2612
|
// native
|
|
2603
|
-
|
|
2613
|
+
Ci ? Object.fromEntries : (
|
|
2604
2614
|
// Ponyfill
|
|
2605
2615
|
function(t) {
|
|
2606
2616
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2610,7 +2620,7 @@ var rr = wi ? (
|
|
|
2610
2620
|
return r;
|
|
2611
2621
|
}
|
|
2612
2622
|
)
|
|
2613
|
-
), Vr =
|
|
2623
|
+
), Vr = Hi ? (
|
|
2614
2624
|
// Native
|
|
2615
2625
|
function(t, r) {
|
|
2616
2626
|
return t.codePointAt(r);
|
|
@@ -2624,7 +2634,7 @@ var rr = wi ? (
|
|
|
2624
2634
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2625
2635
|
}
|
|
2626
2636
|
}
|
|
2627
|
-
),
|
|
2637
|
+
), Li = Ai ? (
|
|
2628
2638
|
// Native
|
|
2629
2639
|
function(t) {
|
|
2630
2640
|
return t.trimStart();
|
|
@@ -2632,9 +2642,9 @@ var rr = wi ? (
|
|
|
2632
2642
|
) : (
|
|
2633
2643
|
// Ponyfill
|
|
2634
2644
|
function(t) {
|
|
2635
|
-
return t.replace(
|
|
2645
|
+
return t.replace(xi, "");
|
|
2636
2646
|
}
|
|
2637
|
-
),
|
|
2647
|
+
), Ii = Mi ? (
|
|
2638
2648
|
// Native
|
|
2639
2649
|
function(t) {
|
|
2640
2650
|
return t.trimEnd();
|
|
@@ -2642,32 +2652,32 @@ var rr = wi ? (
|
|
|
2642
2652
|
) : (
|
|
2643
2653
|
// Ponyfill
|
|
2644
2654
|
function(t) {
|
|
2645
|
-
return t.replace(
|
|
2655
|
+
return t.replace(wi, "");
|
|
2646
2656
|
}
|
|
2647
2657
|
);
|
|
2648
2658
|
function Wr(e, t) {
|
|
2649
2659
|
return new RegExp(e, t);
|
|
2650
2660
|
}
|
|
2651
|
-
var
|
|
2652
|
-
if (
|
|
2661
|
+
var Ht;
|
|
2662
|
+
if (Tt) {
|
|
2653
2663
|
var ir = Wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2654
|
-
|
|
2664
|
+
Ht = function(t, r) {
|
|
2655
2665
|
var n;
|
|
2656
2666
|
ir.lastIndex = r;
|
|
2657
2667
|
var i = ir.exec(t);
|
|
2658
2668
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2659
2669
|
};
|
|
2660
2670
|
} else
|
|
2661
|
-
|
|
2671
|
+
Ht = function(t, r) {
|
|
2662
2672
|
for (var n = []; ; ) {
|
|
2663
2673
|
var i = Vr(t, r);
|
|
2664
|
-
if (i === void 0 || Xr(i) ||
|
|
2674
|
+
if (i === void 0 || Xr(i) || $i(i))
|
|
2665
2675
|
break;
|
|
2666
2676
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2667
2677
|
}
|
|
2668
|
-
return
|
|
2678
|
+
return Ct.apply(void 0, n);
|
|
2669
2679
|
};
|
|
2670
|
-
var
|
|
2680
|
+
var Ni = (
|
|
2671
2681
|
/** @class */
|
|
2672
2682
|
function() {
|
|
2673
2683
|
function e(t, r) {
|
|
@@ -2691,14 +2701,14 @@ var Ii = (
|
|
|
2691
2701
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2692
2702
|
var a = this.clonePosition();
|
|
2693
2703
|
this.bump(), i.push({
|
|
2694
|
-
type:
|
|
2704
|
+
type: A.pound,
|
|
2695
2705
|
location: w(a, this.clonePosition())
|
|
2696
2706
|
});
|
|
2697
2707
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2698
2708
|
if (n)
|
|
2699
2709
|
break;
|
|
2700
|
-
return this.error(
|
|
2701
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2710
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
2711
|
+
} else if (o === 60 && !this.ignoreTag && At(this.peek() || 0)) {
|
|
2702
2712
|
var s = this.parseTag(t, r);
|
|
2703
2713
|
if (s.err)
|
|
2704
2714
|
return s;
|
|
@@ -2719,7 +2729,7 @@ var Ii = (
|
|
|
2719
2729
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2720
2730
|
return {
|
|
2721
2731
|
val: {
|
|
2722
|
-
type:
|
|
2732
|
+
type: A.literal,
|
|
2723
2733
|
value: "<".concat(i, "/>"),
|
|
2724
2734
|
location: w(n, this.clonePosition())
|
|
2725
2735
|
},
|
|
@@ -2731,25 +2741,25 @@ var Ii = (
|
|
|
2731
2741
|
return o;
|
|
2732
2742
|
var s = o.val, a = this.clonePosition();
|
|
2733
2743
|
if (this.bumpIf("</")) {
|
|
2734
|
-
if (this.isEOF() || !
|
|
2735
|
-
return this.error(
|
|
2744
|
+
if (this.isEOF() || !At(this.char()))
|
|
2745
|
+
return this.error(E.INVALID_TAG, w(a, this.clonePosition()));
|
|
2736
2746
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2737
|
-
return i !== u ? this.error(
|
|
2747
|
+
return i !== u ? this.error(E.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2738
2748
|
val: {
|
|
2739
|
-
type:
|
|
2749
|
+
type: A.tag,
|
|
2740
2750
|
value: i,
|
|
2741
2751
|
children: s,
|
|
2742
2752
|
location: w(n, this.clonePosition())
|
|
2743
2753
|
},
|
|
2744
2754
|
err: null
|
|
2745
|
-
} : this.error(
|
|
2755
|
+
} : this.error(E.INVALID_TAG, w(a, this.clonePosition())));
|
|
2746
2756
|
} else
|
|
2747
|
-
return this.error(
|
|
2757
|
+
return this.error(E.UNCLOSED_TAG, w(n, this.clonePosition()));
|
|
2748
2758
|
} else
|
|
2749
|
-
return this.error(
|
|
2759
|
+
return this.error(E.INVALID_TAG, w(n, this.clonePosition()));
|
|
2750
2760
|
}, e.prototype.parseTagName = function() {
|
|
2751
2761
|
var t = this.offset();
|
|
2752
|
-
for (this.bump(); !this.isEOF() &&
|
|
2762
|
+
for (this.bump(); !this.isEOF() && Di(this.char()); )
|
|
2753
2763
|
this.bump();
|
|
2754
2764
|
return this.message.slice(t, this.offset());
|
|
2755
2765
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2773,12 +2783,12 @@ var Ii = (
|
|
|
2773
2783
|
}
|
|
2774
2784
|
var l = w(n, this.clonePosition());
|
|
2775
2785
|
return {
|
|
2776
|
-
val: { type:
|
|
2786
|
+
val: { type: A.literal, value: i, location: l },
|
|
2777
2787
|
err: null
|
|
2778
2788
|
};
|
|
2779
2789
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2780
2790
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2781
|
-
!
|
|
2791
|
+
!Ri(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2782
2792
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2783
2793
|
if (this.isEOF() || this.char() !== 39)
|
|
2784
2794
|
return null;
|
|
@@ -2812,28 +2822,28 @@ var Ii = (
|
|
|
2812
2822
|
r.push(n);
|
|
2813
2823
|
this.bump();
|
|
2814
2824
|
}
|
|
2815
|
-
return
|
|
2825
|
+
return Ct.apply(void 0, r);
|
|
2816
2826
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2817
2827
|
if (this.isEOF())
|
|
2818
2828
|
return null;
|
|
2819
2829
|
var n = this.char();
|
|
2820
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2830
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ct(n));
|
|
2821
2831
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2822
2832
|
var n = this.clonePosition();
|
|
2823
2833
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2824
|
-
return this.error(
|
|
2834
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
2825
2835
|
if (this.char() === 125)
|
|
2826
|
-
return this.bump(), this.error(
|
|
2836
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
|
2827
2837
|
var i = this.parseIdentifierIfPossible().value;
|
|
2828
2838
|
if (!i)
|
|
2829
|
-
return this.error(
|
|
2839
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
2830
2840
|
if (this.bumpSpace(), this.isEOF())
|
|
2831
|
-
return this.error(
|
|
2841
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
2832
2842
|
switch (this.char()) {
|
|
2833
2843
|
case 125:
|
|
2834
2844
|
return this.bump(), {
|
|
2835
2845
|
val: {
|
|
2836
|
-
type:
|
|
2846
|
+
type: A.argument,
|
|
2837
2847
|
// value does not include the opening and closing braces.
|
|
2838
2848
|
value: i,
|
|
2839
2849
|
location: w(n, this.clonePosition())
|
|
@@ -2841,12 +2851,12 @@ var Ii = (
|
|
|
2841
2851
|
err: null
|
|
2842
2852
|
};
|
|
2843
2853
|
case 44:
|
|
2844
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2854
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2845
2855
|
default:
|
|
2846
|
-
return this.error(
|
|
2856
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
2847
2857
|
}
|
|
2848
2858
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2849
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2859
|
+
var t = this.clonePosition(), r = this.offset(), n = Ht(this.message, r), i = r + n.length;
|
|
2850
2860
|
this.bumpTo(i);
|
|
2851
2861
|
var o = this.clonePosition(), s = w(t, o);
|
|
2852
2862
|
return { value: n, location: s };
|
|
@@ -2854,7 +2864,7 @@ var Ii = (
|
|
|
2854
2864
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2855
2865
|
switch (a) {
|
|
2856
2866
|
case "":
|
|
2857
|
-
return this.error(
|
|
2867
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, w(s, l));
|
|
2858
2868
|
case "number":
|
|
2859
2869
|
case "date":
|
|
2860
2870
|
case "time": {
|
|
@@ -2865,46 +2875,46 @@ var Ii = (
|
|
|
2865
2875
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2866
2876
|
if (f.err)
|
|
2867
2877
|
return f;
|
|
2868
|
-
var c =
|
|
2878
|
+
var c = Ii(f.val);
|
|
2869
2879
|
if (c.length === 0)
|
|
2870
|
-
return this.error(
|
|
2871
|
-
var
|
|
2872
|
-
u = { style: c, styleLocation:
|
|
2880
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
2881
|
+
var y = w(h, this.clonePosition());
|
|
2882
|
+
u = { style: c, styleLocation: y };
|
|
2873
2883
|
}
|
|
2874
|
-
var
|
|
2875
|
-
if (
|
|
2876
|
-
return
|
|
2877
|
-
var
|
|
2884
|
+
var b = this.tryParseArgumentClose(i);
|
|
2885
|
+
if (b.err)
|
|
2886
|
+
return b;
|
|
2887
|
+
var m = w(i, this.clonePosition());
|
|
2878
2888
|
if (u && rr(u == null ? void 0 : u.style, "::", 0)) {
|
|
2879
|
-
var
|
|
2889
|
+
var S = Li(u.style.slice(2));
|
|
2880
2890
|
if (a === "number") {
|
|
2881
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2891
|
+
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2882
2892
|
return f.err ? f : {
|
|
2883
|
-
val: { type:
|
|
2893
|
+
val: { type: A.number, value: n, location: m, style: f.val },
|
|
2884
2894
|
err: null
|
|
2885
2895
|
};
|
|
2886
2896
|
} else {
|
|
2887
|
-
if (
|
|
2888
|
-
return this.error(
|
|
2889
|
-
var
|
|
2890
|
-
this.locale && (
|
|
2897
|
+
if (S.length === 0)
|
|
2898
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, m);
|
|
2899
|
+
var x = S;
|
|
2900
|
+
this.locale && (x = _i(S, this.locale));
|
|
2891
2901
|
var c = {
|
|
2892
|
-
type:
|
|
2893
|
-
pattern:
|
|
2902
|
+
type: he.dateTime,
|
|
2903
|
+
pattern: x,
|
|
2894
2904
|
location: u.styleLocation,
|
|
2895
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2896
|
-
},
|
|
2905
|
+
parsedOptions: this.shouldParseSkeletons ? pi(x) : {}
|
|
2906
|
+
}, g = a === "date" ? A.date : A.time;
|
|
2897
2907
|
return {
|
|
2898
|
-
val: { type:
|
|
2908
|
+
val: { type: g, value: n, location: m, style: c },
|
|
2899
2909
|
err: null
|
|
2900
2910
|
};
|
|
2901
2911
|
}
|
|
2902
2912
|
}
|
|
2903
2913
|
return {
|
|
2904
2914
|
val: {
|
|
2905
|
-
type: a === "number" ?
|
|
2915
|
+
type: a === "number" ? A.number : a === "date" ? A.date : A.time,
|
|
2906
2916
|
value: n,
|
|
2907
|
-
location:
|
|
2917
|
+
location: m,
|
|
2908
2918
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2909
2919
|
},
|
|
2910
2920
|
err: null
|
|
@@ -2913,52 +2923,52 @@ var Ii = (
|
|
|
2913
2923
|
case "plural":
|
|
2914
2924
|
case "selectordinal":
|
|
2915
2925
|
case "select": {
|
|
2916
|
-
var
|
|
2926
|
+
var _ = this.clonePosition();
|
|
2917
2927
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2918
|
-
return this.error(
|
|
2928
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, w(_, nt({}, _)));
|
|
2919
2929
|
this.bumpSpace();
|
|
2920
|
-
var
|
|
2921
|
-
if (a !== "select" &&
|
|
2930
|
+
var d = this.parseIdentifierIfPossible(), O = 0;
|
|
2931
|
+
if (a !== "select" && d.value === "offset") {
|
|
2922
2932
|
if (!this.bumpIf(":"))
|
|
2923
|
-
return this.error(
|
|
2933
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
2924
2934
|
this.bumpSpace();
|
|
2925
|
-
var f = this.tryParseDecimalInteger(
|
|
2935
|
+
var f = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2926
2936
|
if (f.err)
|
|
2927
2937
|
return f;
|
|
2928
|
-
this.bumpSpace(),
|
|
2938
|
+
this.bumpSpace(), d = this.parseIdentifierIfPossible(), O = f.val;
|
|
2929
2939
|
}
|
|
2930
|
-
var
|
|
2931
|
-
if (
|
|
2932
|
-
return
|
|
2933
|
-
var
|
|
2934
|
-
if (
|
|
2935
|
-
return
|
|
2936
|
-
var
|
|
2940
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, d);
|
|
2941
|
+
if (R.err)
|
|
2942
|
+
return R;
|
|
2943
|
+
var b = this.tryParseArgumentClose(i);
|
|
2944
|
+
if (b.err)
|
|
2945
|
+
return b;
|
|
2946
|
+
var F = w(i, this.clonePosition());
|
|
2937
2947
|
return a === "select" ? {
|
|
2938
2948
|
val: {
|
|
2939
|
-
type:
|
|
2949
|
+
type: A.select,
|
|
2940
2950
|
value: n,
|
|
2941
|
-
options: nr(
|
|
2942
|
-
location:
|
|
2951
|
+
options: nr(R.val),
|
|
2952
|
+
location: F
|
|
2943
2953
|
},
|
|
2944
2954
|
err: null
|
|
2945
2955
|
} : {
|
|
2946
2956
|
val: {
|
|
2947
|
-
type:
|
|
2957
|
+
type: A.plural,
|
|
2948
2958
|
value: n,
|
|
2949
|
-
options: nr(
|
|
2950
|
-
offset:
|
|
2959
|
+
options: nr(R.val),
|
|
2960
|
+
offset: O,
|
|
2951
2961
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2952
|
-
location:
|
|
2962
|
+
location: F
|
|
2953
2963
|
},
|
|
2954
2964
|
err: null
|
|
2955
2965
|
};
|
|
2956
2966
|
}
|
|
2957
2967
|
default:
|
|
2958
|
-
return this.error(
|
|
2968
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, w(s, l));
|
|
2959
2969
|
}
|
|
2960
2970
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2961
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2971
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2962
2972
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2963
2973
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2964
2974
|
var n = this.char();
|
|
@@ -2967,7 +2977,7 @@ var Ii = (
|
|
|
2967
2977
|
this.bump();
|
|
2968
2978
|
var i = this.clonePosition();
|
|
2969
2979
|
if (!this.bumpUntil("'"))
|
|
2970
|
-
return this.error(
|
|
2980
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
2971
2981
|
this.bump();
|
|
2972
2982
|
break;
|
|
2973
2983
|
}
|
|
@@ -2997,16 +3007,16 @@ var Ii = (
|
|
|
2997
3007
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2998
3008
|
var n = [];
|
|
2999
3009
|
try {
|
|
3000
|
-
n =
|
|
3010
|
+
n = mi(t);
|
|
3001
3011
|
} catch (i) {
|
|
3002
|
-
return this.error(
|
|
3012
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3003
3013
|
}
|
|
3004
3014
|
return {
|
|
3005
3015
|
val: {
|
|
3006
|
-
type:
|
|
3016
|
+
type: he.number,
|
|
3007
3017
|
tokens: n,
|
|
3008
3018
|
location: r,
|
|
3009
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? vi(n) : {}
|
|
3010
3020
|
},
|
|
3011
3021
|
err: null
|
|
3012
3022
|
};
|
|
@@ -3015,7 +3025,7 @@ var Ii = (
|
|
|
3015
3025
|
if (u.length === 0) {
|
|
3016
3026
|
var f = this.clonePosition();
|
|
3017
3027
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3018
|
-
var c = this.tryParseDecimalInteger(
|
|
3028
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3019
3029
|
if (c.err)
|
|
3020
3030
|
return c;
|
|
3021
3031
|
h = w(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3023,26 +3033,26 @@ var Ii = (
|
|
|
3023
3033
|
break;
|
|
3024
3034
|
}
|
|
3025
3035
|
if (l.has(u))
|
|
3026
|
-
return this.error(r === "select" ?
|
|
3036
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3027
3037
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3028
|
-
var
|
|
3038
|
+
var y = this.clonePosition();
|
|
3029
3039
|
if (!this.bumpIf("{"))
|
|
3030
|
-
return this.error(r === "select" ?
|
|
3031
|
-
var
|
|
3040
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3041
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3042
|
+
if (b.err)
|
|
3043
|
+
return b;
|
|
3044
|
+
var m = this.tryParseArgumentClose(y);
|
|
3032
3045
|
if (m.err)
|
|
3033
3046
|
return m;
|
|
3034
|
-
var d = this.tryParseArgumentClose(g);
|
|
3035
|
-
if (d.err)
|
|
3036
|
-
return d;
|
|
3037
3047
|
a.push([
|
|
3038
3048
|
u,
|
|
3039
3049
|
{
|
|
3040
|
-
value:
|
|
3041
|
-
location: w(
|
|
3050
|
+
value: b.val,
|
|
3051
|
+
location: w(y, this.clonePosition())
|
|
3042
3052
|
}
|
|
3043
3053
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3044
3054
|
}
|
|
3045
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3055
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3046
3056
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3047
3057
|
var n = 1, i = this.clonePosition();
|
|
3048
3058
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3054,7 +3064,7 @@ var Ii = (
|
|
|
3054
3064
|
break;
|
|
3055
3065
|
}
|
|
3056
3066
|
var l = w(i, this.clonePosition());
|
|
3057
|
-
return o ? (s *= n,
|
|
3067
|
+
return o ? (s *= n, Oi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3058
3068
|
}, e.prototype.offset = function() {
|
|
3059
3069
|
return this.position.offset;
|
|
3060
3070
|
}, e.prototype.isEOF = function() {
|
|
@@ -3120,47 +3130,47 @@ var Ii = (
|
|
|
3120
3130
|
}, e;
|
|
3121
3131
|
}()
|
|
3122
3132
|
);
|
|
3123
|
-
function
|
|
3133
|
+
function At(e) {
|
|
3124
3134
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3125
3135
|
}
|
|
3126
|
-
function Ni(e) {
|
|
3127
|
-
return Ht(e) || e === 47;
|
|
3128
|
-
}
|
|
3129
3136
|
function Ri(e) {
|
|
3137
|
+
return At(e) || e === 47;
|
|
3138
|
+
}
|
|
3139
|
+
function Di(e) {
|
|
3130
3140
|
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;
|
|
3131
3141
|
}
|
|
3132
3142
|
function Xr(e) {
|
|
3133
3143
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3134
3144
|
}
|
|
3135
|
-
function
|
|
3145
|
+
function $i(e) {
|
|
3136
3146
|
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;
|
|
3137
3147
|
}
|
|
3138
|
-
function
|
|
3148
|
+
function Mt(e) {
|
|
3139
3149
|
e.forEach(function(t) {
|
|
3140
3150
|
if (delete t.location, Rr(t) || Dr(t))
|
|
3141
3151
|
for (var r in t.options)
|
|
3142
|
-
delete t.options[r].location,
|
|
3152
|
+
delete t.options[r].location, Mt(t.options[r].value);
|
|
3143
3153
|
else
|
|
3144
|
-
Lr(t) && Ur(t.style) || (Ir(t) || Nr(t)) &&
|
|
3154
|
+
Lr(t) && Ur(t.style) || (Ir(t) || Nr(t)) && St(t.style) ? delete t.style.location : $r(t) && Mt(t.children);
|
|
3145
3155
|
});
|
|
3146
3156
|
}
|
|
3147
|
-
function
|
|
3148
|
-
t === void 0 && (t = {}), t =
|
|
3149
|
-
var r = new
|
|
3157
|
+
function Ui(e, t) {
|
|
3158
|
+
t === void 0 && (t = {}), t = nt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3159
|
+
var r = new Ni(e, t).parse();
|
|
3150
3160
|
if (r.err) {
|
|
3151
|
-
var n = SyntaxError(
|
|
3161
|
+
var n = SyntaxError(E[r.err.kind]);
|
|
3152
3162
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3153
3163
|
}
|
|
3154
|
-
return t != null && t.captureLocation ||
|
|
3164
|
+
return t != null && t.captureLocation || Mt(r.val), r.val;
|
|
3155
3165
|
}
|
|
3156
|
-
var
|
|
3166
|
+
var ce;
|
|
3157
3167
|
(function(e) {
|
|
3158
3168
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3159
|
-
})(
|
|
3160
|
-
var
|
|
3169
|
+
})(ce || (ce = {}));
|
|
3170
|
+
var lt = (
|
|
3161
3171
|
/** @class */
|
|
3162
3172
|
function(e) {
|
|
3163
|
-
|
|
3173
|
+
ut(t, e);
|
|
3164
3174
|
function t(r, n, i) {
|
|
3165
3175
|
var o = e.call(this, r) || this;
|
|
3166
3176
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3172,48 +3182,48 @@ var at = (
|
|
|
3172
3182
|
), or = (
|
|
3173
3183
|
/** @class */
|
|
3174
3184
|
function(e) {
|
|
3175
|
-
|
|
3185
|
+
ut(t, e);
|
|
3176
3186
|
function t(r, n, i, o) {
|
|
3177
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3187
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ce.INVALID_VALUE, o) || this;
|
|
3178
3188
|
}
|
|
3179
3189
|
return t;
|
|
3180
|
-
}(
|
|
3181
|
-
),
|
|
3190
|
+
}(lt)
|
|
3191
|
+
), Fi = (
|
|
3182
3192
|
/** @class */
|
|
3183
3193
|
function(e) {
|
|
3184
|
-
|
|
3194
|
+
ut(t, e);
|
|
3185
3195
|
function t(r, n, i) {
|
|
3186
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3196
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ce.INVALID_VALUE, i) || this;
|
|
3187
3197
|
}
|
|
3188
3198
|
return t;
|
|
3189
|
-
}(
|
|
3190
|
-
),
|
|
3199
|
+
}(lt)
|
|
3200
|
+
), Gi = (
|
|
3191
3201
|
/** @class */
|
|
3192
3202
|
function(e) {
|
|
3193
|
-
|
|
3203
|
+
ut(t, e);
|
|
3194
3204
|
function t(r, n) {
|
|
3195
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3205
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ce.MISSING_VALUE, n) || this;
|
|
3196
3206
|
}
|
|
3197
3207
|
return t;
|
|
3198
|
-
}(
|
|
3199
|
-
),
|
|
3208
|
+
}(lt)
|
|
3209
|
+
), L;
|
|
3200
3210
|
(function(e) {
|
|
3201
3211
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3202
|
-
})(
|
|
3203
|
-
function
|
|
3212
|
+
})(L || (L = {}));
|
|
3213
|
+
function ji(e) {
|
|
3204
3214
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3205
3215
|
var n = t[t.length - 1];
|
|
3206
|
-
return !n || n.type !==
|
|
3216
|
+
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
|
3207
3217
|
}, []);
|
|
3208
3218
|
}
|
|
3209
|
-
function
|
|
3219
|
+
function ki(e) {
|
|
3210
3220
|
return typeof e == "function";
|
|
3211
3221
|
}
|
|
3212
|
-
function
|
|
3222
|
+
function qe(e, t, r, n, i, o, s) {
|
|
3213
3223
|
if (e.length === 1 && qt(e[0]))
|
|
3214
3224
|
return [
|
|
3215
3225
|
{
|
|
3216
|
-
type:
|
|
3226
|
+
type: L.literal,
|
|
3217
3227
|
value: e[0].value
|
|
3218
3228
|
}
|
|
3219
3229
|
];
|
|
@@ -3221,103 +3231,103 @@ function Ye(e, t, r, n, i, o, s) {
|
|
|
3221
3231
|
var h = u[l];
|
|
3222
3232
|
if (qt(h)) {
|
|
3223
3233
|
a.push({
|
|
3224
|
-
type:
|
|
3234
|
+
type: L.literal,
|
|
3225
3235
|
value: h.value
|
|
3226
3236
|
});
|
|
3227
3237
|
continue;
|
|
3228
3238
|
}
|
|
3229
|
-
if (
|
|
3239
|
+
if (ci(h)) {
|
|
3230
3240
|
typeof o == "number" && a.push({
|
|
3231
|
-
type:
|
|
3241
|
+
type: L.literal,
|
|
3232
3242
|
value: r.getNumberFormat(t).format(o)
|
|
3233
3243
|
});
|
|
3234
3244
|
continue;
|
|
3235
3245
|
}
|
|
3236
3246
|
var f = h.value;
|
|
3237
3247
|
if (!(i && f in i))
|
|
3238
|
-
throw new
|
|
3248
|
+
throw new Gi(f, s);
|
|
3239
3249
|
var c = i[f];
|
|
3240
|
-
if (
|
|
3250
|
+
if (hi(h)) {
|
|
3241
3251
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3242
|
-
type: typeof c == "string" ?
|
|
3252
|
+
type: typeof c == "string" ? L.literal : L.object,
|
|
3243
3253
|
value: c
|
|
3244
3254
|
});
|
|
3245
3255
|
continue;
|
|
3246
3256
|
}
|
|
3247
3257
|
if (Ir(h)) {
|
|
3248
|
-
var
|
|
3258
|
+
var y = typeof h.style == "string" ? n.date[h.style] : St(h.style) ? h.style.parsedOptions : void 0;
|
|
3249
3259
|
a.push({
|
|
3250
|
-
type:
|
|
3251
|
-
value: r.getDateTimeFormat(t,
|
|
3260
|
+
type: L.literal,
|
|
3261
|
+
value: r.getDateTimeFormat(t, y).format(c)
|
|
3252
3262
|
});
|
|
3253
3263
|
continue;
|
|
3254
3264
|
}
|
|
3255
3265
|
if (Nr(h)) {
|
|
3256
|
-
var
|
|
3266
|
+
var y = typeof h.style == "string" ? n.time[h.style] : St(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3257
3267
|
a.push({
|
|
3258
|
-
type:
|
|
3259
|
-
value: r.getDateTimeFormat(t,
|
|
3268
|
+
type: L.literal,
|
|
3269
|
+
value: r.getDateTimeFormat(t, y).format(c)
|
|
3260
3270
|
});
|
|
3261
3271
|
continue;
|
|
3262
3272
|
}
|
|
3263
3273
|
if (Lr(h)) {
|
|
3264
|
-
var
|
|
3265
|
-
|
|
3266
|
-
type:
|
|
3267
|
-
value: r.getNumberFormat(t,
|
|
3274
|
+
var y = typeof h.style == "string" ? n.number[h.style] : Ur(h.style) ? h.style.parsedOptions : void 0;
|
|
3275
|
+
y && y.scale && (c = c * (y.scale || 1)), a.push({
|
|
3276
|
+
type: L.literal,
|
|
3277
|
+
value: r.getNumberFormat(t, y).format(c)
|
|
3268
3278
|
});
|
|
3269
3279
|
continue;
|
|
3270
3280
|
}
|
|
3271
3281
|
if ($r(h)) {
|
|
3272
|
-
var
|
|
3273
|
-
if (!
|
|
3274
|
-
throw new
|
|
3275
|
-
var
|
|
3276
|
-
return
|
|
3282
|
+
var b = h.children, m = h.value, S = i[m];
|
|
3283
|
+
if (!ki(S))
|
|
3284
|
+
throw new Fi(m, "function", s);
|
|
3285
|
+
var x = qe(b, t, r, n, i, o), g = S(x.map(function(O) {
|
|
3286
|
+
return O.value;
|
|
3277
3287
|
}));
|
|
3278
|
-
Array.isArray(
|
|
3288
|
+
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(O) {
|
|
3279
3289
|
return {
|
|
3280
|
-
type: typeof
|
|
3281
|
-
value:
|
|
3290
|
+
type: typeof O == "string" ? L.literal : L.object,
|
|
3291
|
+
value: O
|
|
3282
3292
|
};
|
|
3283
3293
|
}));
|
|
3284
3294
|
}
|
|
3285
3295
|
if (Rr(h)) {
|
|
3286
|
-
var
|
|
3287
|
-
if (!
|
|
3296
|
+
var _ = h.options[c] || h.options.other;
|
|
3297
|
+
if (!_)
|
|
3288
3298
|
throw new or(h.value, c, Object.keys(h.options), s);
|
|
3289
|
-
a.push.apply(a,
|
|
3299
|
+
a.push.apply(a, qe(_.value, t, r, n, i));
|
|
3290
3300
|
continue;
|
|
3291
3301
|
}
|
|
3292
3302
|
if (Dr(h)) {
|
|
3293
|
-
var
|
|
3294
|
-
if (!
|
|
3303
|
+
var _ = h.options["=".concat(c)];
|
|
3304
|
+
if (!_) {
|
|
3295
3305
|
if (!Intl.PluralRules)
|
|
3296
|
-
throw new
|
|
3306
|
+
throw new lt(`Intl.PluralRules is not available in this environment.
|
|
3297
3307
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3298
|
-
`,
|
|
3299
|
-
var
|
|
3300
|
-
|
|
3308
|
+
`, ce.MISSING_INTL_API, s);
|
|
3309
|
+
var d = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3310
|
+
_ = h.options[d] || h.options.other;
|
|
3301
3311
|
}
|
|
3302
|
-
if (!
|
|
3312
|
+
if (!_)
|
|
3303
3313
|
throw new or(h.value, c, Object.keys(h.options), s);
|
|
3304
|
-
a.push.apply(a,
|
|
3314
|
+
a.push.apply(a, qe(_.value, t, r, n, i, c - (h.offset || 0)));
|
|
3305
3315
|
continue;
|
|
3306
3316
|
}
|
|
3307
3317
|
}
|
|
3308
|
-
return
|
|
3318
|
+
return ji(a);
|
|
3309
3319
|
}
|
|
3310
|
-
function
|
|
3311
|
-
return t ?
|
|
3312
|
-
return r[n] =
|
|
3320
|
+
function Vi(e, t) {
|
|
3321
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3322
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3313
3323
|
}, {})) : e;
|
|
3314
3324
|
}
|
|
3315
|
-
function
|
|
3325
|
+
function Wi(e, t) {
|
|
3316
3326
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3317
|
-
return r[n] =
|
|
3318
|
-
},
|
|
3327
|
+
return r[n] = Vi(e[n], t[n]), r;
|
|
3328
|
+
}, j({}, e)) : e;
|
|
3319
3329
|
}
|
|
3320
|
-
function
|
|
3330
|
+
function vt(e) {
|
|
3321
3331
|
return {
|
|
3322
3332
|
create: function() {
|
|
3323
3333
|
return {
|
|
@@ -3331,35 +3341,35 @@ function yt(e) {
|
|
|
3331
3341
|
}
|
|
3332
3342
|
};
|
|
3333
3343
|
}
|
|
3334
|
-
function
|
|
3344
|
+
function Xi(e) {
|
|
3335
3345
|
return e === void 0 && (e = {
|
|
3336
3346
|
number: {},
|
|
3337
3347
|
dateTime: {},
|
|
3338
3348
|
pluralRules: {}
|
|
3339
3349
|
}), {
|
|
3340
|
-
getNumberFormat:
|
|
3350
|
+
getNumberFormat: bt(function() {
|
|
3341
3351
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3342
3352
|
r[n] = arguments[n];
|
|
3343
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3353
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, mt([void 0], r, !1)))();
|
|
3344
3354
|
}, {
|
|
3345
|
-
cache:
|
|
3346
|
-
strategy:
|
|
3355
|
+
cache: vt(e.number),
|
|
3356
|
+
strategy: gt.variadic
|
|
3347
3357
|
}),
|
|
3348
|
-
getDateTimeFormat:
|
|
3358
|
+
getDateTimeFormat: bt(function() {
|
|
3349
3359
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3350
3360
|
r[n] = arguments[n];
|
|
3351
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3361
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, mt([void 0], r, !1)))();
|
|
3352
3362
|
}, {
|
|
3353
|
-
cache:
|
|
3354
|
-
strategy:
|
|
3363
|
+
cache: vt(e.dateTime),
|
|
3364
|
+
strategy: gt.variadic
|
|
3355
3365
|
}),
|
|
3356
|
-
getPluralRules:
|
|
3366
|
+
getPluralRules: bt(function() {
|
|
3357
3367
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3358
3368
|
r[n] = arguments[n];
|
|
3359
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3369
|
+
return new ((t = Intl.PluralRules).bind.apply(t, mt([void 0], r, !1)))();
|
|
3360
3370
|
}, {
|
|
3361
|
-
cache:
|
|
3362
|
-
strategy:
|
|
3371
|
+
cache: vt(e.pluralRules),
|
|
3372
|
+
strategy: gt.variadic
|
|
3363
3373
|
})
|
|
3364
3374
|
};
|
|
3365
3375
|
}
|
|
@@ -3378,11 +3388,11 @@ var zr = (
|
|
|
3378
3388
|
if (u.length === 1)
|
|
3379
3389
|
return u[0].value;
|
|
3380
3390
|
var h = u.reduce(function(f, c) {
|
|
3381
|
-
return !f.length || c.type !==
|
|
3391
|
+
return !f.length || c.type !== L.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3382
3392
|
}, []);
|
|
3383
3393
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3384
3394
|
}, this.formatToParts = function(l) {
|
|
3385
|
-
return
|
|
3395
|
+
return qe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3386
3396
|
}, this.resolvedOptions = function() {
|
|
3387
3397
|
var l;
|
|
3388
3398
|
return {
|
|
@@ -3395,13 +3405,13 @@ var zr = (
|
|
|
3395
3405
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3396
3406
|
var s = i || {};
|
|
3397
3407
|
s.formatters;
|
|
3398
|
-
var a =
|
|
3399
|
-
this.ast = e.__parse(t,
|
|
3408
|
+
var a = ri(s, ["formatters"]);
|
|
3409
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
|
3400
3410
|
} else
|
|
3401
3411
|
this.ast = t;
|
|
3402
3412
|
if (!Array.isArray(this.ast))
|
|
3403
3413
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3404
|
-
this.formats =
|
|
3414
|
+
this.formats = Wi(e.formats, n), this.formatters = i && i.formatters || Xi(this.formatterCache);
|
|
3405
3415
|
}
|
|
3406
3416
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3407
3417
|
get: function() {
|
|
@@ -3414,7 +3424,7 @@ var zr = (
|
|
|
3414
3424
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3415
3425
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3416
3426
|
}
|
|
3417
|
-
}, e.__parse =
|
|
3427
|
+
}, e.__parse = Ui, e.formats = {
|
|
3418
3428
|
number: {
|
|
3419
3429
|
integer: {
|
|
3420
3430
|
maximumFractionDigits: 0
|
|
@@ -3475,7 +3485,7 @@ var zr = (
|
|
|
3475
3485
|
}, e;
|
|
3476
3486
|
}()
|
|
3477
3487
|
);
|
|
3478
|
-
function
|
|
3488
|
+
function zi(e, t) {
|
|
3479
3489
|
if (t == null)
|
|
3480
3490
|
return;
|
|
3481
3491
|
if (t in e)
|
|
@@ -3496,33 +3506,33 @@ function Xi(e, t) {
|
|
|
3496
3506
|
n = void 0;
|
|
3497
3507
|
return n;
|
|
3498
3508
|
}
|
|
3499
|
-
const Y = {},
|
|
3509
|
+
const Y = {}, Zi = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), Zr = (e, t) => {
|
|
3500
3510
|
if (t == null)
|
|
3501
3511
|
return;
|
|
3502
3512
|
if (t in Y && e in Y[t])
|
|
3503
3513
|
return Y[t][e];
|
|
3504
3514
|
const r = Me(t);
|
|
3505
3515
|
for (let n = 0; n < r.length; n++) {
|
|
3506
|
-
const i = r[n], o =
|
|
3516
|
+
const i = r[n], o = Yi(i, e);
|
|
3507
3517
|
if (o)
|
|
3508
|
-
return
|
|
3518
|
+
return Zi(e, t, o);
|
|
3509
3519
|
}
|
|
3510
3520
|
};
|
|
3511
|
-
let
|
|
3512
|
-
const Ae =
|
|
3513
|
-
function
|
|
3514
|
-
return
|
|
3521
|
+
let $t;
|
|
3522
|
+
const Ae = at({});
|
|
3523
|
+
function Qi(e) {
|
|
3524
|
+
return $t[e] || null;
|
|
3515
3525
|
}
|
|
3516
3526
|
function Qr(e) {
|
|
3517
|
-
return e in
|
|
3527
|
+
return e in $t;
|
|
3518
3528
|
}
|
|
3519
|
-
function
|
|
3529
|
+
function Yi(e, t) {
|
|
3520
3530
|
if (!Qr(e))
|
|
3521
3531
|
return null;
|
|
3522
|
-
const r =
|
|
3523
|
-
return
|
|
3532
|
+
const r = Qi(e);
|
|
3533
|
+
return zi(r, t);
|
|
3524
3534
|
}
|
|
3525
|
-
function
|
|
3535
|
+
function Ji(e) {
|
|
3526
3536
|
if (e == null)
|
|
3527
3537
|
return;
|
|
3528
3538
|
const t = Me(e);
|
|
@@ -3533,27 +3543,27 @@ function Yi(e) {
|
|
|
3533
3543
|
}
|
|
3534
3544
|
}
|
|
3535
3545
|
function Yr(e, ...t) {
|
|
3536
|
-
delete Y[e], Ae.update((r) => (r[e] =
|
|
3546
|
+
delete Y[e], Ae.update((r) => (r[e] = ti.all([r[e] || {}, ...t]), r));
|
|
3537
3547
|
}
|
|
3538
|
-
|
|
3548
|
+
de(
|
|
3539
3549
|
[Ae],
|
|
3540
3550
|
([e]) => Object.keys(e)
|
|
3541
3551
|
);
|
|
3542
|
-
Ae.subscribe((e) =>
|
|
3543
|
-
const
|
|
3544
|
-
function
|
|
3545
|
-
|
|
3552
|
+
Ae.subscribe((e) => $t = e);
|
|
3553
|
+
const Ke = {};
|
|
3554
|
+
function qi(e, t) {
|
|
3555
|
+
Ke[e].delete(t), Ke[e].size === 0 && delete Ke[e];
|
|
3546
3556
|
}
|
|
3547
3557
|
function Jr(e) {
|
|
3548
|
-
return
|
|
3558
|
+
return Ke[e];
|
|
3549
3559
|
}
|
|
3550
|
-
function
|
|
3560
|
+
function Ki(e) {
|
|
3551
3561
|
return Me(e).map((t) => {
|
|
3552
3562
|
const r = Jr(t);
|
|
3553
3563
|
return [t, r ? [...r] : []];
|
|
3554
3564
|
}).filter(([, t]) => t.length > 0);
|
|
3555
3565
|
}
|
|
3556
|
-
function
|
|
3566
|
+
function it(e) {
|
|
3557
3567
|
return e == null ? !1 : Me(e).some(
|
|
3558
3568
|
(t) => {
|
|
3559
3569
|
var r;
|
|
@@ -3561,36 +3571,36 @@ function rt(e) {
|
|
|
3561
3571
|
}
|
|
3562
3572
|
);
|
|
3563
3573
|
}
|
|
3564
|
-
function
|
|
3574
|
+
function eo(e, t) {
|
|
3565
3575
|
return Promise.all(
|
|
3566
|
-
t.map((n) => (
|
|
3576
|
+
t.map((n) => (qi(e, n), n().then((i) => i.default || i)))
|
|
3567
3577
|
).then((n) => Yr(e, ...n));
|
|
3568
3578
|
}
|
|
3569
3579
|
const ve = {};
|
|
3570
3580
|
function qr(e) {
|
|
3571
|
-
if (!
|
|
3581
|
+
if (!it(e))
|
|
3572
3582
|
return e in ve ? ve[e] : Promise.resolve();
|
|
3573
|
-
const t =
|
|
3583
|
+
const t = Ki(e);
|
|
3574
3584
|
return ve[e] = Promise.all(
|
|
3575
3585
|
t.map(
|
|
3576
|
-
([r, n]) =>
|
|
3586
|
+
([r, n]) => eo(r, n)
|
|
3577
3587
|
)
|
|
3578
3588
|
).then(() => {
|
|
3579
|
-
if (
|
|
3589
|
+
if (it(e))
|
|
3580
3590
|
return qr(e);
|
|
3581
3591
|
delete ve[e];
|
|
3582
3592
|
}), ve[e];
|
|
3583
3593
|
}
|
|
3584
|
-
var sr = Object.getOwnPropertySymbols,
|
|
3594
|
+
var sr = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, no = (e, t) => {
|
|
3585
3595
|
var r = {};
|
|
3586
3596
|
for (var n in e)
|
|
3587
|
-
|
|
3597
|
+
to.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3588
3598
|
if (e != null && sr)
|
|
3589
3599
|
for (var n of sr(e))
|
|
3590
|
-
t.indexOf(n) < 0 &&
|
|
3600
|
+
t.indexOf(n) < 0 && ro.call(e, n) && (r[n] = e[n]);
|
|
3591
3601
|
return r;
|
|
3592
3602
|
};
|
|
3593
|
-
const
|
|
3603
|
+
const io = {
|
|
3594
3604
|
number: {
|
|
3595
3605
|
scientific: { notation: "scientific" },
|
|
3596
3606
|
engineering: { notation: "engineering" },
|
|
@@ -3620,28 +3630,28 @@ const no = {
|
|
|
3620
3630
|
}
|
|
3621
3631
|
}
|
|
3622
3632
|
};
|
|
3623
|
-
function
|
|
3633
|
+
function oo({ locale: e, id: t }) {
|
|
3624
3634
|
console.warn(
|
|
3625
3635
|
`[svelte-i18n] The message "${t}" was not found in "${Me(
|
|
3626
3636
|
e
|
|
3627
|
-
).join('", "')}".${
|
|
3637
|
+
).join('", "')}".${it(q()) ? `
|
|
3628
3638
|
|
|
3629
3639
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3630
3640
|
);
|
|
3631
3641
|
}
|
|
3632
|
-
const
|
|
3642
|
+
const so = {
|
|
3633
3643
|
fallbackLocale: null,
|
|
3634
3644
|
loadingDelay: 200,
|
|
3635
|
-
formats:
|
|
3645
|
+
formats: io,
|
|
3636
3646
|
warnOnMissingMessages: !0,
|
|
3637
3647
|
handleMissingMessage: void 0,
|
|
3638
3648
|
ignoreTag: !0
|
|
3639
|
-
}, _e =
|
|
3640
|
-
function
|
|
3649
|
+
}, _e = so;
|
|
3650
|
+
function fe() {
|
|
3641
3651
|
return _e;
|
|
3642
3652
|
}
|
|
3643
|
-
function
|
|
3644
|
-
const t = e, { formats: r } = t, n =
|
|
3653
|
+
function ao(e) {
|
|
3654
|
+
const t = e, { formats: r } = t, n = no(t, ["formats"]);
|
|
3645
3655
|
let i = e.fallbackLocale;
|
|
3646
3656
|
if (e.initialLocale)
|
|
3647
3657
|
try {
|
|
@@ -3651,128 +3661,128 @@ function so(e) {
|
|
|
3651
3661
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3652
3662
|
);
|
|
3653
3663
|
}
|
|
3654
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3664
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = oo : console.warn(
|
|
3655
3665
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3656
|
-
)), Object.assign(_e, n, { initialLocale: i }), r && ("number" in r && Object.assign(_e.formats.number, r.number), "date" in r && Object.assign(_e.formats.date, r.date), "time" in r && Object.assign(_e.formats.time, r.time)),
|
|
3666
|
+
)), Object.assign(_e, n, { initialLocale: i }), r && ("number" in r && Object.assign(_e.formats.number, r.number), "date" in r && Object.assign(_e.formats.date, r.date), "time" in r && Object.assign(_e.formats.time, r.time)), re.set(i);
|
|
3657
3667
|
}
|
|
3658
|
-
const
|
|
3659
|
-
var
|
|
3668
|
+
const _t = at(!1);
|
|
3669
|
+
var uo = Object.defineProperty, lo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, ur = (e, t, r) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, po = (e, t) => {
|
|
3660
3670
|
for (var r in t || (t = {}))
|
|
3661
|
-
|
|
3671
|
+
co.call(t, r) && ur(e, r, t[r]);
|
|
3662
3672
|
if (ar)
|
|
3663
3673
|
for (var r of ar(t))
|
|
3664
|
-
|
|
3674
|
+
fo.call(t, r) && ur(e, r, t[r]);
|
|
3665
3675
|
return e;
|
|
3666
|
-
},
|
|
3667
|
-
let
|
|
3668
|
-
const
|
|
3676
|
+
}, mo = (e, t) => lo(e, ho(t));
|
|
3677
|
+
let Pt;
|
|
3678
|
+
const ot = at(null);
|
|
3669
3679
|
function lr(e) {
|
|
3670
3680
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3671
3681
|
}
|
|
3672
|
-
function Me(e, t =
|
|
3682
|
+
function Me(e, t = fe().fallbackLocale) {
|
|
3673
3683
|
const r = lr(e);
|
|
3674
3684
|
return t ? [.../* @__PURE__ */ new Set([...r, ...lr(t)])] : r;
|
|
3675
3685
|
}
|
|
3676
3686
|
function q() {
|
|
3677
|
-
return
|
|
3687
|
+
return Pt != null ? Pt : void 0;
|
|
3678
3688
|
}
|
|
3679
|
-
|
|
3680
|
-
|
|
3689
|
+
ot.subscribe((e) => {
|
|
3690
|
+
Pt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3681
3691
|
});
|
|
3682
|
-
const
|
|
3683
|
-
if (e &&
|
|
3684
|
-
const { loadingDelay: t } =
|
|
3692
|
+
const bo = (e) => {
|
|
3693
|
+
if (e && Ji(e) && it(e)) {
|
|
3694
|
+
const { loadingDelay: t } = fe();
|
|
3685
3695
|
let r;
|
|
3686
3696
|
return typeof window != "undefined" && q() != null && t ? r = window.setTimeout(
|
|
3687
|
-
() =>
|
|
3697
|
+
() => _t.set(!0),
|
|
3688
3698
|
t
|
|
3689
|
-
) :
|
|
3690
|
-
|
|
3699
|
+
) : _t.set(!0), qr(e).then(() => {
|
|
3700
|
+
ot.set(e);
|
|
3691
3701
|
}).finally(() => {
|
|
3692
|
-
clearTimeout(r),
|
|
3702
|
+
clearTimeout(r), _t.set(!1);
|
|
3693
3703
|
});
|
|
3694
3704
|
}
|
|
3695
|
-
return
|
|
3696
|
-
},
|
|
3697
|
-
set:
|
|
3698
|
-
}),
|
|
3705
|
+
return ot.set(e);
|
|
3706
|
+
}, re = mo(po({}, ot), {
|
|
3707
|
+
set: bo
|
|
3708
|
+
}), ht = (e) => {
|
|
3699
3709
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3700
3710
|
return (n) => {
|
|
3701
3711
|
const i = JSON.stringify(n);
|
|
3702
3712
|
return i in t ? t[i] : t[i] = e(n);
|
|
3703
3713
|
};
|
|
3704
3714
|
};
|
|
3705
|
-
var
|
|
3715
|
+
var go = Object.defineProperty, st = Object.getOwnPropertySymbols, Kr = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable, hr = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ut = (e, t) => {
|
|
3706
3716
|
for (var r in t || (t = {}))
|
|
3707
3717
|
Kr.call(t, r) && hr(e, r, t[r]);
|
|
3708
|
-
if (
|
|
3709
|
-
for (var r of
|
|
3718
|
+
if (st)
|
|
3719
|
+
for (var r of st(t))
|
|
3710
3720
|
en.call(t, r) && hr(e, r, t[r]);
|
|
3711
3721
|
return e;
|
|
3712
|
-
},
|
|
3722
|
+
}, me = (e, t) => {
|
|
3713
3723
|
var r = {};
|
|
3714
3724
|
for (var n in e)
|
|
3715
3725
|
Kr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3716
|
-
if (e != null &&
|
|
3717
|
-
for (var n of
|
|
3726
|
+
if (e != null && st)
|
|
3727
|
+
for (var n of st(e))
|
|
3718
3728
|
t.indexOf(n) < 0 && en.call(e, n) && (r[n] = e[n]);
|
|
3719
3729
|
return r;
|
|
3720
3730
|
};
|
|
3721
3731
|
const He = (e, t) => {
|
|
3722
|
-
const { formats: r } =
|
|
3732
|
+
const { formats: r } = fe();
|
|
3723
3733
|
if (e in r && t in r[e])
|
|
3724
3734
|
return r[e][t];
|
|
3725
3735
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3726
|
-
},
|
|
3736
|
+
}, yo = ht(
|
|
3727
3737
|
(e) => {
|
|
3728
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3738
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3729
3739
|
if (r == null)
|
|
3730
3740
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3731
3741
|
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
|
3732
3742
|
}
|
|
3733
|
-
),
|
|
3743
|
+
), vo = ht(
|
|
3734
3744
|
(e) => {
|
|
3735
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3745
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3736
3746
|
if (r == null)
|
|
3737
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3738
3748
|
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3739
3749
|
}
|
|
3740
|
-
),
|
|
3750
|
+
), _o = ht(
|
|
3741
3751
|
(e) => {
|
|
3742
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3752
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3743
3753
|
if (r == null)
|
|
3744
3754
|
throw new Error(
|
|
3745
3755
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3746
3756
|
);
|
|
3747
3757
|
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3748
3758
|
}
|
|
3749
|
-
),
|
|
3759
|
+
), Eo = (e = {}) => {
|
|
3750
3760
|
var t = e, {
|
|
3751
3761
|
locale: r = q()
|
|
3752
|
-
} = t, n =
|
|
3762
|
+
} = t, n = me(t, [
|
|
3753
3763
|
"locale"
|
|
3754
3764
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3765
|
+
return yo(Ut({ locale: r }, n));
|
|
3766
|
+
}, xo = (e = {}) => {
|
|
3757
3767
|
var t = e, {
|
|
3758
3768
|
locale: r = q()
|
|
3759
|
-
} = t, n =
|
|
3769
|
+
} = t, n = me(t, [
|
|
3760
3770
|
"locale"
|
|
3761
3771
|
]);
|
|
3762
|
-
return
|
|
3763
|
-
},
|
|
3772
|
+
return vo(Ut({ locale: r }, n));
|
|
3773
|
+
}, wo = (e = {}) => {
|
|
3764
3774
|
var t = e, {
|
|
3765
3775
|
locale: r = q()
|
|
3766
|
-
} = t, n =
|
|
3776
|
+
} = t, n = me(t, [
|
|
3767
3777
|
"locale"
|
|
3768
3778
|
]);
|
|
3769
|
-
return
|
|
3770
|
-
},
|
|
3779
|
+
return _o(Ut({ locale: r }, n));
|
|
3780
|
+
}, So = ht(
|
|
3771
3781
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3772
|
-
(e, t = q()) => new zr(e, t,
|
|
3773
|
-
ignoreTag:
|
|
3782
|
+
(e, t = q()) => new zr(e, t, fe().formats, {
|
|
3783
|
+
ignoreTag: fe().ignoreTag
|
|
3774
3784
|
})
|
|
3775
|
-
),
|
|
3785
|
+
), To = (e, t = {}) => {
|
|
3776
3786
|
var r, n, i, o;
|
|
3777
3787
|
let s = t;
|
|
3778
3788
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3787,7 +3797,7 @@ const He = (e, t) => {
|
|
|
3787
3797
|
);
|
|
3788
3798
|
let h = Zr(e, l);
|
|
3789
3799
|
if (!h)
|
|
3790
|
-
h = (o = (i = (n = (r =
|
|
3800
|
+
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3791
3801
|
else if (typeof h != "string")
|
|
3792
3802
|
return console.warn(
|
|
3793
3803
|
`[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.`
|
|
@@ -3796,7 +3806,7 @@ const He = (e, t) => {
|
|
|
3796
3806
|
return h;
|
|
3797
3807
|
let f = h;
|
|
3798
3808
|
try {
|
|
3799
|
-
f =
|
|
3809
|
+
f = So(h, l).format(a);
|
|
3800
3810
|
} catch (c) {
|
|
3801
3811
|
c instanceof Error && console.warn(
|
|
3802
3812
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3804,27 +3814,27 @@ const He = (e, t) => {
|
|
|
3804
3814
|
);
|
|
3805
3815
|
}
|
|
3806
3816
|
return f;
|
|
3807
|
-
},
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3817
|
+
}, Co = (e, t) => wo(t).format(e), Ho = (e, t) => xo(t).format(e), Ao = (e, t) => Eo(t).format(e), Mo = (e, t = q()) => Zr(e, t), Po = de([re, Ae], () => To);
|
|
3818
|
+
de([re], () => Co);
|
|
3819
|
+
de([re], () => Ho);
|
|
3820
|
+
de([re], () => Ao);
|
|
3821
|
+
de([re, Ae], () => Mo);
|
|
3812
3822
|
function cr(e, t) {
|
|
3813
3823
|
Yr(e, t);
|
|
3814
3824
|
}
|
|
3815
|
-
function
|
|
3816
|
-
|
|
3825
|
+
function Oo(e) {
|
|
3826
|
+
ao({
|
|
3817
3827
|
fallbackLocale: "en"
|
|
3818
|
-
}),
|
|
3828
|
+
}), re.set(e);
|
|
3819
3829
|
}
|
|
3820
|
-
const
|
|
3821
|
-
function
|
|
3830
|
+
const ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3831
|
+
function Bo(e, t) {
|
|
3822
3832
|
if (e) {
|
|
3823
3833
|
const r = document.createElement("style");
|
|
3824
3834
|
r.innerHTML = t, e.appendChild(r);
|
|
3825
3835
|
}
|
|
3826
3836
|
}
|
|
3827
|
-
function
|
|
3837
|
+
function Lo(e, t) {
|
|
3828
3838
|
if (!e || !t)
|
|
3829
3839
|
return;
|
|
3830
3840
|
const r = new URL(t);
|
|
@@ -3835,32 +3845,32 @@ function Bo(e, t) {
|
|
|
3835
3845
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3836
3846
|
});
|
|
3837
3847
|
}
|
|
3838
|
-
function
|
|
3848
|
+
function Io(e, t, r, n = !1) {
|
|
3839
3849
|
if (!window.emMessageBus)
|
|
3840
3850
|
return;
|
|
3841
3851
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
3842
|
-
return r =
|
|
3843
|
-
window[
|
|
3852
|
+
return r = No(e, t), r;
|
|
3853
|
+
window[ae] || (window[ae] = {}), r = Ro(e, t);
|
|
3844
3854
|
const o = r.unsubscribe.bind(r), s = () => {
|
|
3845
|
-
if (window[
|
|
3846
|
-
const a = window[
|
|
3847
|
-
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[
|
|
3855
|
+
if (window[ae][t]) {
|
|
3856
|
+
const a = window[ae][t];
|
|
3857
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[ae][t];
|
|
3848
3858
|
}
|
|
3849
3859
|
o();
|
|
3850
3860
|
};
|
|
3851
3861
|
return r.unsubscribe = s, r;
|
|
3852
3862
|
}
|
|
3853
|
-
function
|
|
3863
|
+
function No(e, t) {
|
|
3854
3864
|
const r = document.createElement("style");
|
|
3855
3865
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
3856
3866
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
3857
3867
|
});
|
|
3858
3868
|
}
|
|
3859
|
-
function
|
|
3869
|
+
function Ro(e, t) {
|
|
3860
3870
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
3861
3871
|
if (!e)
|
|
3862
3872
|
return;
|
|
3863
|
-
const n = e.getRootNode(), i = window[
|
|
3873
|
+
const n = e.getRootNode(), i = window[ae];
|
|
3864
3874
|
let o = i[t] && i[t].sheet;
|
|
3865
3875
|
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
3866
3876
|
sheet: o,
|
|
@@ -3884,24 +3894,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3884
3894
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3885
3895
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3886
3896
|
***************************************************************************** */
|
|
3887
|
-
var
|
|
3888
|
-
return
|
|
3897
|
+
var Ot = function(e, t) {
|
|
3898
|
+
return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3889
3899
|
r.__proto__ = n;
|
|
3890
3900
|
} || function(r, n) {
|
|
3891
3901
|
for (var i in n)
|
|
3892
3902
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3893
|
-
},
|
|
3903
|
+
}, Ot(e, t);
|
|
3894
3904
|
};
|
|
3895
3905
|
function Pe(e, t) {
|
|
3896
3906
|
if (typeof t != "function" && t !== null)
|
|
3897
3907
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3898
|
-
|
|
3908
|
+
Ot(e, t);
|
|
3899
3909
|
function r() {
|
|
3900
3910
|
this.constructor = e;
|
|
3901
3911
|
}
|
|
3902
3912
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3903
3913
|
}
|
|
3904
|
-
function
|
|
3914
|
+
function Bt(e) {
|
|
3905
3915
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3906
3916
|
if (r)
|
|
3907
3917
|
return r.call(e);
|
|
@@ -3913,7 +3923,7 @@ function Ot(e) {
|
|
|
3913
3923
|
};
|
|
3914
3924
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3915
3925
|
}
|
|
3916
|
-
function
|
|
3926
|
+
function Lt(e, t) {
|
|
3917
3927
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3918
3928
|
if (!r)
|
|
3919
3929
|
return e;
|
|
@@ -3933,13 +3943,13 @@ function Bt(e, t) {
|
|
|
3933
3943
|
}
|
|
3934
3944
|
return o;
|
|
3935
3945
|
}
|
|
3936
|
-
function
|
|
3946
|
+
function It(e, t, r) {
|
|
3937
3947
|
if (arguments.length === 2)
|
|
3938
3948
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
3939
3949
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3940
3950
|
return e.concat(o || t);
|
|
3941
3951
|
}
|
|
3942
|
-
function
|
|
3952
|
+
function z(e) {
|
|
3943
3953
|
return typeof e == "function";
|
|
3944
3954
|
}
|
|
3945
3955
|
function tn(e) {
|
|
@@ -3948,7 +3958,7 @@ function tn(e) {
|
|
|
3948
3958
|
}, r = e(t);
|
|
3949
3959
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3950
3960
|
}
|
|
3951
|
-
var
|
|
3961
|
+
var Et = tn(function(e) {
|
|
3952
3962
|
return function(r) {
|
|
3953
3963
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3954
3964
|
` + r.map(function(n, i) {
|
|
@@ -3957,13 +3967,13 @@ var _t = tn(function(e) {
|
|
|
3957
3967
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
3958
3968
|
};
|
|
3959
3969
|
});
|
|
3960
|
-
function
|
|
3970
|
+
function Nt(e, t) {
|
|
3961
3971
|
if (e) {
|
|
3962
3972
|
var r = e.indexOf(t);
|
|
3963
3973
|
0 <= r && e.splice(r, 1);
|
|
3964
3974
|
}
|
|
3965
3975
|
}
|
|
3966
|
-
var
|
|
3976
|
+
var ct = function() {
|
|
3967
3977
|
function e(t) {
|
|
3968
3978
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3969
3979
|
}
|
|
@@ -3975,12 +3985,12 @@ var lt = function() {
|
|
|
3975
3985
|
if (s)
|
|
3976
3986
|
if (this._parentage = null, Array.isArray(s))
|
|
3977
3987
|
try {
|
|
3978
|
-
for (var a =
|
|
3988
|
+
for (var a = Bt(s), l = a.next(); !l.done; l = a.next()) {
|
|
3979
3989
|
var u = l.value;
|
|
3980
3990
|
u.remove(this);
|
|
3981
3991
|
}
|
|
3982
|
-
} catch (
|
|
3983
|
-
t = { error:
|
|
3992
|
+
} catch (m) {
|
|
3993
|
+
t = { error: m };
|
|
3984
3994
|
} finally {
|
|
3985
3995
|
try {
|
|
3986
3996
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -3992,29 +4002,29 @@ var lt = function() {
|
|
|
3992
4002
|
else
|
|
3993
4003
|
s.remove(this);
|
|
3994
4004
|
var h = this.initialTeardown;
|
|
3995
|
-
if (
|
|
4005
|
+
if (z(h))
|
|
3996
4006
|
try {
|
|
3997
4007
|
h();
|
|
3998
|
-
} catch (
|
|
3999
|
-
o =
|
|
4008
|
+
} catch (m) {
|
|
4009
|
+
o = m instanceof Et ? m.errors : [m];
|
|
4000
4010
|
}
|
|
4001
4011
|
var f = this._finalizers;
|
|
4002
4012
|
if (f) {
|
|
4003
4013
|
this._finalizers = null;
|
|
4004
4014
|
try {
|
|
4005
|
-
for (var c =
|
|
4006
|
-
var
|
|
4015
|
+
for (var c = Bt(f), y = c.next(); !y.done; y = c.next()) {
|
|
4016
|
+
var b = y.value;
|
|
4007
4017
|
try {
|
|
4008
|
-
fr(
|
|
4009
|
-
} catch (
|
|
4010
|
-
o = o != null ? o : [],
|
|
4018
|
+
fr(b);
|
|
4019
|
+
} catch (m) {
|
|
4020
|
+
o = o != null ? o : [], m instanceof Et ? o = It(It([], Lt(o)), Lt(m.errors)) : o.push(m);
|
|
4011
4021
|
}
|
|
4012
4022
|
}
|
|
4013
|
-
} catch (
|
|
4014
|
-
n = { error:
|
|
4023
|
+
} catch (m) {
|
|
4024
|
+
n = { error: m };
|
|
4015
4025
|
} finally {
|
|
4016
4026
|
try {
|
|
4017
|
-
|
|
4027
|
+
y && !y.done && (i = c.return) && i.call(c);
|
|
4018
4028
|
} finally {
|
|
4019
4029
|
if (n)
|
|
4020
4030
|
throw n.error;
|
|
@@ -4022,7 +4032,7 @@ var lt = function() {
|
|
|
4022
4032
|
}
|
|
4023
4033
|
}
|
|
4024
4034
|
if (o)
|
|
4025
|
-
throw new
|
|
4035
|
+
throw new Et(o);
|
|
4026
4036
|
}
|
|
4027
4037
|
}, e.prototype.add = function(t) {
|
|
4028
4038
|
var r;
|
|
@@ -4045,52 +4055,52 @@ var lt = function() {
|
|
|
4045
4055
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
4046
4056
|
}, e.prototype._removeParent = function(t) {
|
|
4047
4057
|
var r = this._parentage;
|
|
4048
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
4058
|
+
r === t ? this._parentage = null : Array.isArray(r) && Nt(r, t);
|
|
4049
4059
|
}, e.prototype.remove = function(t) {
|
|
4050
4060
|
var r = this._finalizers;
|
|
4051
|
-
r &&
|
|
4061
|
+
r && Nt(r, t), t instanceof e && t._removeParent(this);
|
|
4052
4062
|
}, e.EMPTY = function() {
|
|
4053
4063
|
var t = new e();
|
|
4054
4064
|
return t.closed = !0, t;
|
|
4055
4065
|
}(), e;
|
|
4056
|
-
}(), rn =
|
|
4066
|
+
}(), rn = ct.EMPTY;
|
|
4057
4067
|
function nn(e) {
|
|
4058
|
-
return e instanceof
|
|
4068
|
+
return e instanceof ct || e && "closed" in e && z(e.remove) && z(e.add) && z(e.unsubscribe);
|
|
4059
4069
|
}
|
|
4060
4070
|
function fr(e) {
|
|
4061
|
-
|
|
4071
|
+
z(e) ? e() : e.unsubscribe();
|
|
4062
4072
|
}
|
|
4063
|
-
var
|
|
4073
|
+
var Do = {
|
|
4064
4074
|
Promise: void 0
|
|
4065
|
-
},
|
|
4075
|
+
}, $o = {
|
|
4066
4076
|
setTimeout: function(e, t) {
|
|
4067
4077
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
4068
4078
|
r[n - 2] = arguments[n];
|
|
4069
|
-
return setTimeout.apply(void 0,
|
|
4079
|
+
return setTimeout.apply(void 0, It([e, t], Lt(r)));
|
|
4070
4080
|
},
|
|
4071
4081
|
clearTimeout: function(e) {
|
|
4072
4082
|
return clearTimeout(e);
|
|
4073
4083
|
},
|
|
4074
4084
|
delegate: void 0
|
|
4075
4085
|
};
|
|
4076
|
-
function
|
|
4077
|
-
|
|
4086
|
+
function Uo(e) {
|
|
4087
|
+
$o.setTimeout(function() {
|
|
4078
4088
|
throw e;
|
|
4079
4089
|
});
|
|
4080
4090
|
}
|
|
4081
4091
|
function pr() {
|
|
4082
4092
|
}
|
|
4083
|
-
function
|
|
4093
|
+
function et(e) {
|
|
4084
4094
|
e();
|
|
4085
4095
|
}
|
|
4086
4096
|
var on = function(e) {
|
|
4087
4097
|
Pe(t, e);
|
|
4088
4098
|
function t(r) {
|
|
4089
4099
|
var n = e.call(this) || this;
|
|
4090
|
-
return n.isStopped = !1, r ? (n.destination = r, nn(r) && r.add(n)) : n.destination =
|
|
4100
|
+
return n.isStopped = !1, r ? (n.destination = r, nn(r) && r.add(n)) : n.destination = jo, n;
|
|
4091
4101
|
}
|
|
4092
4102
|
return t.create = function(r, n, i) {
|
|
4093
|
-
return new
|
|
4103
|
+
return new Rt(r, n, i);
|
|
4094
4104
|
}, t.prototype.next = function(r) {
|
|
4095
4105
|
this.isStopped || this._next(r);
|
|
4096
4106
|
}, t.prototype.error = function(r) {
|
|
@@ -4114,7 +4124,7 @@ var on = function(e) {
|
|
|
4114
4124
|
this.unsubscribe();
|
|
4115
4125
|
}
|
|
4116
4126
|
}, t;
|
|
4117
|
-
}(
|
|
4127
|
+
}(ct), Fo = function() {
|
|
4118
4128
|
function e(t) {
|
|
4119
4129
|
this.partialObserver = t;
|
|
4120
4130
|
}
|
|
@@ -4124,7 +4134,7 @@ var on = function(e) {
|
|
|
4124
4134
|
try {
|
|
4125
4135
|
r.next(t);
|
|
4126
4136
|
} catch (n) {
|
|
4127
|
-
|
|
4137
|
+
Ze(n);
|
|
4128
4138
|
}
|
|
4129
4139
|
}, e.prototype.error = function(t) {
|
|
4130
4140
|
var r = this.partialObserver;
|
|
@@ -4132,50 +4142,50 @@ var on = function(e) {
|
|
|
4132
4142
|
try {
|
|
4133
4143
|
r.error(t);
|
|
4134
4144
|
} catch (n) {
|
|
4135
|
-
|
|
4145
|
+
Ze(n);
|
|
4136
4146
|
}
|
|
4137
4147
|
else
|
|
4138
|
-
|
|
4148
|
+
Ze(t);
|
|
4139
4149
|
}, e.prototype.complete = function() {
|
|
4140
4150
|
var t = this.partialObserver;
|
|
4141
4151
|
if (t.complete)
|
|
4142
4152
|
try {
|
|
4143
4153
|
t.complete();
|
|
4144
4154
|
} catch (r) {
|
|
4145
|
-
|
|
4155
|
+
Ze(r);
|
|
4146
4156
|
}
|
|
4147
4157
|
}, e;
|
|
4148
|
-
}(),
|
|
4158
|
+
}(), Rt = function(e) {
|
|
4149
4159
|
Pe(t, e);
|
|
4150
4160
|
function t(r, n, i) {
|
|
4151
4161
|
var o = e.call(this) || this, s;
|
|
4152
|
-
return
|
|
4162
|
+
return z(r) || !r ? s = {
|
|
4153
4163
|
next: r != null ? r : void 0,
|
|
4154
4164
|
error: n != null ? n : void 0,
|
|
4155
4165
|
complete: i != null ? i : void 0
|
|
4156
|
-
} : s = r, o.destination = new
|
|
4166
|
+
} : s = r, o.destination = new Fo(s), o;
|
|
4157
4167
|
}
|
|
4158
4168
|
return t;
|
|
4159
4169
|
}(on);
|
|
4160
|
-
function
|
|
4161
|
-
|
|
4170
|
+
function Ze(e) {
|
|
4171
|
+
Uo(e);
|
|
4162
4172
|
}
|
|
4163
|
-
function
|
|
4173
|
+
function Go(e) {
|
|
4164
4174
|
throw e;
|
|
4165
4175
|
}
|
|
4166
|
-
var
|
|
4176
|
+
var jo = {
|
|
4167
4177
|
closed: !0,
|
|
4168
4178
|
next: pr,
|
|
4169
|
-
error:
|
|
4179
|
+
error: Go,
|
|
4170
4180
|
complete: pr
|
|
4171
|
-
},
|
|
4181
|
+
}, ko = function() {
|
|
4172
4182
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4173
4183
|
}();
|
|
4174
|
-
function
|
|
4184
|
+
function Vo(e) {
|
|
4175
4185
|
return e;
|
|
4176
4186
|
}
|
|
4177
|
-
function
|
|
4178
|
-
return e.length === 0 ?
|
|
4187
|
+
function Wo(e) {
|
|
4188
|
+
return e.length === 0 ? Vo : e.length === 1 ? e[0] : function(r) {
|
|
4179
4189
|
return e.reduce(function(n, i) {
|
|
4180
4190
|
return i(n);
|
|
4181
4191
|
}, r);
|
|
@@ -4189,8 +4199,8 @@ var dr = function() {
|
|
|
4189
4199
|
var r = new e();
|
|
4190
4200
|
return r.source = this, r.operator = t, r;
|
|
4191
4201
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4192
|
-
var i = this, o =
|
|
4193
|
-
return
|
|
4202
|
+
var i = this, o = zo(t) ? t : new Rt(t, r, n);
|
|
4203
|
+
return et(function() {
|
|
4194
4204
|
var s = i, a = s.operator, l = s.source;
|
|
4195
4205
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4196
4206
|
}), o;
|
|
@@ -4203,7 +4213,7 @@ var dr = function() {
|
|
|
4203
4213
|
}, e.prototype.forEach = function(t, r) {
|
|
4204
4214
|
var n = this;
|
|
4205
4215
|
return r = mr(r), new r(function(i, o) {
|
|
4206
|
-
var s = new
|
|
4216
|
+
var s = new Rt({
|
|
4207
4217
|
next: function(a) {
|
|
4208
4218
|
try {
|
|
4209
4219
|
t(a);
|
|
@@ -4219,12 +4229,12 @@ var dr = function() {
|
|
|
4219
4229
|
}, e.prototype._subscribe = function(t) {
|
|
4220
4230
|
var r;
|
|
4221
4231
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4222
|
-
}, e.prototype[
|
|
4232
|
+
}, e.prototype[ko] = function() {
|
|
4223
4233
|
return this;
|
|
4224
4234
|
}, e.prototype.pipe = function() {
|
|
4225
4235
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4226
4236
|
t[r] = arguments[r];
|
|
4227
|
-
return
|
|
4237
|
+
return Wo(t)(this);
|
|
4228
4238
|
}, e.prototype.toPromise = function(t) {
|
|
4229
4239
|
var r = this;
|
|
4230
4240
|
return t = mr(t), new t(function(n, i) {
|
|
@@ -4243,15 +4253,15 @@ var dr = function() {
|
|
|
4243
4253
|
}();
|
|
4244
4254
|
function mr(e) {
|
|
4245
4255
|
var t;
|
|
4246
|
-
return (t = e != null ? e :
|
|
4247
|
-
}
|
|
4248
|
-
function Wo(e) {
|
|
4249
|
-
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
4256
|
+
return (t = e != null ? e : Do.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4250
4257
|
}
|
|
4251
4258
|
function Xo(e) {
|
|
4252
|
-
return e && e
|
|
4259
|
+
return e && z(e.next) && z(e.error) && z(e.complete);
|
|
4253
4260
|
}
|
|
4254
|
-
|
|
4261
|
+
function zo(e) {
|
|
4262
|
+
return e && e instanceof on || Xo(e) && nn(e);
|
|
4263
|
+
}
|
|
4264
|
+
var Zo = tn(function(e) {
|
|
4255
4265
|
return function() {
|
|
4256
4266
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4257
4267
|
};
|
|
@@ -4266,15 +4276,15 @@ var zo = tn(function(e) {
|
|
|
4266
4276
|
return n.operator = r, n;
|
|
4267
4277
|
}, t.prototype._throwIfClosed = function() {
|
|
4268
4278
|
if (this.closed)
|
|
4269
|
-
throw new
|
|
4279
|
+
throw new Zo();
|
|
4270
4280
|
}, t.prototype.next = function(r) {
|
|
4271
4281
|
var n = this;
|
|
4272
|
-
|
|
4282
|
+
et(function() {
|
|
4273
4283
|
var i, o;
|
|
4274
4284
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4275
4285
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4276
4286
|
try {
|
|
4277
|
-
for (var s =
|
|
4287
|
+
for (var s = Bt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4278
4288
|
var l = a.value;
|
|
4279
4289
|
l.next(r);
|
|
4280
4290
|
}
|
|
@@ -4292,7 +4302,7 @@ var zo = tn(function(e) {
|
|
|
4292
4302
|
});
|
|
4293
4303
|
}, t.prototype.error = function(r) {
|
|
4294
4304
|
var n = this;
|
|
4295
|
-
|
|
4305
|
+
et(function() {
|
|
4296
4306
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4297
4307
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
4298
4308
|
for (var i = n.observers; i.length; )
|
|
@@ -4301,7 +4311,7 @@ var zo = tn(function(e) {
|
|
|
4301
4311
|
});
|
|
4302
4312
|
}, t.prototype.complete = function() {
|
|
4303
4313
|
var r = this;
|
|
4304
|
-
|
|
4314
|
+
et(function() {
|
|
4305
4315
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4306
4316
|
r.isStopped = !0;
|
|
4307
4317
|
for (var n = r.observers; n.length; )
|
|
@@ -4323,8 +4333,8 @@ var zo = tn(function(e) {
|
|
|
4323
4333
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4324
4334
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4325
4335
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4326
|
-
return o || s ? rn : (this.currentObservers = null, a.push(r), new
|
|
4327
|
-
n.currentObservers = null,
|
|
4336
|
+
return o || s ? rn : (this.currentObservers = null, a.push(r), new ct(function() {
|
|
4337
|
+
n.currentObservers = null, Nt(a, r);
|
|
4328
4338
|
}));
|
|
4329
4339
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4330
4340
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -4359,7 +4369,7 @@ var zo = tn(function(e) {
|
|
|
4359
4369
|
return (an.delegate || Date).now();
|
|
4360
4370
|
},
|
|
4361
4371
|
delegate: void 0
|
|
4362
|
-
},
|
|
4372
|
+
}, Qo = function(e) {
|
|
4363
4373
|
Pe(t, e);
|
|
4364
4374
|
function t(r, n, i) {
|
|
4365
4375
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = an);
|
|
@@ -4383,18 +4393,18 @@ var zo = tn(function(e) {
|
|
|
4383
4393
|
}
|
|
4384
4394
|
}, t;
|
|
4385
4395
|
}(sn);
|
|
4386
|
-
const gr = [], yr = {},
|
|
4396
|
+
const gr = [], yr = {}, Yo = (e, t = 0) => {
|
|
4387
4397
|
if (gr.indexOf(e) == -1) {
|
|
4388
|
-
const r = new
|
|
4398
|
+
const r = new Qo(t);
|
|
4389
4399
|
yr[e] = r, gr.push(e);
|
|
4390
4400
|
}
|
|
4391
4401
|
return yr[e];
|
|
4392
4402
|
};
|
|
4393
|
-
let
|
|
4394
|
-
const
|
|
4395
|
-
|
|
4396
|
-
},
|
|
4397
|
-
const i =
|
|
4403
|
+
let tt = "en-UK", un = "true", Ee = 2, xe = "";
|
|
4404
|
+
const Jo = (e, t, r, n) => {
|
|
4405
|
+
tt = e || "en-UK", un = t || "true", Ee = +n || 0, xe = r || "";
|
|
4406
|
+
}, Qe = (e, t, r = {}, n = !0) => {
|
|
4407
|
+
const i = ke(ke({
|
|
4398
4408
|
maximumFractionDigits: Ee,
|
|
4399
4409
|
minimumFractionDigits: Ee
|
|
4400
4410
|
}, n && {
|
|
@@ -4404,21 +4414,21 @@ const Yo = (e, t, r, n) => {
|
|
|
4404
4414
|
}), r);
|
|
4405
4415
|
try {
|
|
4406
4416
|
if (!xe)
|
|
4407
|
-
return new Intl.NumberFormat(
|
|
4408
|
-
const s = new Intl.NumberFormat(
|
|
4417
|
+
return new Intl.NumberFormat(tt, i).format(e);
|
|
4418
|
+
const s = new Intl.NumberFormat(tt, i).formatToParts(e);
|
|
4409
4419
|
let { currencyPart: a = "", amountPart: l = "" } = s.reduce((h, f) => (f.type === "currency" ? h.currencyPart = f.value : h.amountPart += f.value, h), { currencyPart: "", amountPart: "" });
|
|
4410
4420
|
return l = l.trim(), xe === "before" ? `${a || i.currency || ""} ${l}` : `${l} ${a || i.currency || ""}`;
|
|
4411
4421
|
} catch (o) {
|
|
4412
4422
|
console.info(o);
|
|
4413
|
-
const s = new Intl.NumberFormat(
|
|
4423
|
+
const s = new Intl.NumberFormat(tt, {
|
|
4414
4424
|
maximumFractionDigits: Ee,
|
|
4415
4425
|
minimumFractionDigits: Ee
|
|
4416
4426
|
}).format(e);
|
|
4417
4427
|
return xe ? xe === "before" ? `${i.currency || ""} ${s}` : `${s} ${i.currency || ""}` : `${i.currency || ""} ${s}`;
|
|
4418
4428
|
}
|
|
4419
4429
|
};
|
|
4420
|
-
window.emWidgets = { topic:
|
|
4421
|
-
const
|
|
4430
|
+
window.emWidgets = { topic: Yo };
|
|
4431
|
+
const Ye = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4422
4432
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4423
4433
|
const vr = {
|
|
4424
4434
|
en: {
|
|
@@ -4518,84 +4528,84 @@ const vr = {
|
|
|
4518
4528
|
carouselSubtitle: "Ən populyar ödəniş üsulları"
|
|
4519
4529
|
}
|
|
4520
4530
|
};
|
|
4521
|
-
function
|
|
4531
|
+
function qo(e) {
|
|
4522
4532
|
bn(e, "svelte-1tnzy1r", '*,*::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}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.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}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%;width:inherit}.Carousel{display:flex;gap:var(--emw-cashier-card-gap, 10px);height:220px;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;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.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;z-index:1;padding:5px;height:115px;width:var(--emw-cashier-card-width, 78px);transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:132px;width:var(--emw-cashier-card-width-active, 100px)}.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:20px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:var(--emw--font-size-small, 10px);font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:var(--emw--font-size-x-small, 8px)}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-x-small, 8px);font-weight:var(--emw--font-weight-normal, 300)}');
|
|
4523
4533
|
}
|
|
4524
4534
|
function _r(e, t, r) {
|
|
4525
4535
|
const n = e.slice();
|
|
4526
|
-
return n[
|
|
4536
|
+
return n[43] = t[r], n[45] = r, n;
|
|
4527
4537
|
}
|
|
4528
4538
|
function Er(e, t, r) {
|
|
4529
4539
|
const n = e.slice();
|
|
4530
|
-
return n[
|
|
4540
|
+
return n[46] = t[r], n[45] = r, n;
|
|
4531
4541
|
}
|
|
4532
|
-
function
|
|
4542
|
+
function Ko(e) {
|
|
4533
4543
|
let t, r = (
|
|
4534
4544
|
/*$_*/
|
|
4535
4545
|
e[9]("noFavoritePaymentMethods") + ""
|
|
4536
4546
|
), n;
|
|
4537
4547
|
return {
|
|
4538
4548
|
c() {
|
|
4539
|
-
t =
|
|
4549
|
+
t = T("p"), n = G(r), M(t, "class", "NoFavoritePaymentMethods");
|
|
4540
4550
|
},
|
|
4541
4551
|
m(i, o) {
|
|
4542
|
-
|
|
4552
|
+
k(i, t, o), v(t, n);
|
|
4543
4553
|
},
|
|
4544
4554
|
p(i, o) {
|
|
4545
4555
|
o[0] & /*$_*/
|
|
4546
4556
|
512 && r !== (r = /*$_*/
|
|
4547
|
-
i[9]("noFavoritePaymentMethods") + "") &&
|
|
4557
|
+
i[9]("noFavoritePaymentMethods") + "") && X(n, r);
|
|
4548
4558
|
},
|
|
4549
4559
|
d(i) {
|
|
4550
|
-
i &&
|
|
4560
|
+
i && U(t);
|
|
4551
4561
|
}
|
|
4552
4562
|
};
|
|
4553
4563
|
}
|
|
4554
|
-
function
|
|
4555
|
-
let t, r = !
|
|
4564
|
+
function es(e) {
|
|
4565
|
+
let t, r = !Ye(
|
|
4556
4566
|
/*userAgent*/
|
|
4557
4567
|
e[10]
|
|
4558
4568
|
) && /*promotedPaymentMethods*/
|
|
4559
|
-
e[5].length > 1, n, i, o, s = !
|
|
4569
|
+
e[5].length > 1, n, i, o, s = !Ye(
|
|
4560
4570
|
/*userAgent*/
|
|
4561
4571
|
e[10]
|
|
4562
4572
|
) && /*promotedPaymentMethods*/
|
|
4563
|
-
e[5].length > 1, a, l, u, h, f, c = r && xr(e),
|
|
4573
|
+
e[5].length > 1, a, l, u, h, f, c = r && xr(e), y = Xe(
|
|
4564
4574
|
/*promotedPaymentMethods*/
|
|
4565
4575
|
e[5]
|
|
4566
|
-
),
|
|
4567
|
-
for (let
|
|
4568
|
-
|
|
4569
|
-
let
|
|
4576
|
+
), b = [];
|
|
4577
|
+
for (let g = 0; g < y.length; g += 1)
|
|
4578
|
+
b[g] = wr(Er(e, y, g));
|
|
4579
|
+
let m = s && Sr(e), S = Xe(Array(
|
|
4570
4580
|
/*promotedPaymentMethods*/
|
|
4571
4581
|
e[5].length
|
|
4572
|
-
)),
|
|
4573
|
-
for (let
|
|
4574
|
-
|
|
4582
|
+
)), x = [];
|
|
4583
|
+
for (let g = 0; g < S.length; g += 1)
|
|
4584
|
+
x[g] = Tr(_r(e, S, g));
|
|
4575
4585
|
return {
|
|
4576
4586
|
c() {
|
|
4577
|
-
t =
|
|
4578
|
-
for (let
|
|
4579
|
-
|
|
4580
|
-
o =
|
|
4581
|
-
for (let
|
|
4582
|
-
|
|
4583
|
-
|
|
4587
|
+
t = T("div"), c && c.c(), n = $(), i = T("div");
|
|
4588
|
+
for (let g = 0; g < b.length; g += 1)
|
|
4589
|
+
b[g].c();
|
|
4590
|
+
o = $(), m && m.c(), l = $(), u = T("div");
|
|
4591
|
+
for (let g = 0; g < x.length; g += 1)
|
|
4592
|
+
x[g].c();
|
|
4593
|
+
M(i, "class", "Carousel"), M(t, "class", "CarouselCardsContainer"), rt(() => (
|
|
4584
4594
|
/*div1_elementresize_handler*/
|
|
4585
|
-
e[
|
|
4586
|
-
)),
|
|
4595
|
+
e[31].call(t)
|
|
4596
|
+
)), M(u, "class", "VisualDotIndicator");
|
|
4587
4597
|
},
|
|
4588
|
-
m(
|
|
4589
|
-
|
|
4590
|
-
for (let
|
|
4591
|
-
|
|
4592
|
-
e[
|
|
4598
|
+
m(g, _) {
|
|
4599
|
+
k(g, t, _), c && c.m(t, null), v(t, n), v(t, i);
|
|
4600
|
+
for (let d = 0; d < b.length; d += 1)
|
|
4601
|
+
b[d] && b[d].m(i, null);
|
|
4602
|
+
e[29](i), v(t, o), m && m.m(t, null), a = En(
|
|
4593
4603
|
t,
|
|
4594
4604
|
/*div1_elementresize_handler*/
|
|
4595
|
-
e[
|
|
4596
|
-
),
|
|
4597
|
-
for (let
|
|
4598
|
-
|
|
4605
|
+
e[31].bind(t)
|
|
4606
|
+
), k(g, l, _), k(g, u, _);
|
|
4607
|
+
for (let d = 0; d < x.length; d += 1)
|
|
4608
|
+
x[d] && x[d].m(u, null);
|
|
4599
4609
|
h || (f = [
|
|
4600
4610
|
J(
|
|
4601
4611
|
i,
|
|
@@ -4617,50 +4627,50 @@ function Ko(e) {
|
|
|
4617
4627
|
)
|
|
4618
4628
|
], h = !0);
|
|
4619
4629
|
},
|
|
4620
|
-
p(
|
|
4621
|
-
if (
|
|
4622
|
-
32 && (r = !
|
|
4630
|
+
p(g, _) {
|
|
4631
|
+
if (_[0] & /*promotedPaymentMethods*/
|
|
4632
|
+
32 && (r = !Ye(
|
|
4623
4633
|
/*userAgent*/
|
|
4624
|
-
|
|
4634
|
+
g[10]
|
|
4625
4635
|
) && /*promotedPaymentMethods*/
|
|
4626
|
-
|
|
4636
|
+
g[5].length > 1), r ? c ? c.p(g, _) : (c = xr(g), c.c(), c.m(t, n)) : c && (c.d(1), c = null), _[0] & /*activeIndex, cardEl, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
|
|
4627
4637
|
3057) {
|
|
4628
|
-
|
|
4638
|
+
y = Xe(
|
|
4629
4639
|
/*promotedPaymentMethods*/
|
|
4630
|
-
|
|
4640
|
+
g[5]
|
|
4631
4641
|
);
|
|
4632
|
-
let
|
|
4633
|
-
for (
|
|
4634
|
-
const
|
|
4635
|
-
|
|
4642
|
+
let d;
|
|
4643
|
+
for (d = 0; d < y.length; d += 1) {
|
|
4644
|
+
const O = Er(g, y, d);
|
|
4645
|
+
b[d] ? b[d].p(O, _) : (b[d] = wr(O), b[d].c(), b[d].m(i, null));
|
|
4636
4646
|
}
|
|
4637
|
-
for (;
|
|
4638
|
-
|
|
4639
|
-
|
|
4647
|
+
for (; d < b.length; d += 1)
|
|
4648
|
+
b[d].d(1);
|
|
4649
|
+
b.length = y.length;
|
|
4640
4650
|
}
|
|
4641
|
-
if (
|
|
4642
|
-
32 && (s = !
|
|
4651
|
+
if (_[0] & /*promotedPaymentMethods*/
|
|
4652
|
+
32 && (s = !Ye(
|
|
4643
4653
|
/*userAgent*/
|
|
4644
|
-
|
|
4654
|
+
g[10]
|
|
4645
4655
|
) && /*promotedPaymentMethods*/
|
|
4646
|
-
|
|
4656
|
+
g[5].length > 1), s ? m ? m.p(g, _) : (m = Sr(g), m.c(), m.m(t, null)) : m && (m.d(1), m = null), _[0] & /*activeIndex, promotedPaymentMethods*/
|
|
4647
4657
|
96) {
|
|
4648
|
-
|
|
4658
|
+
S = Xe(Array(
|
|
4649
4659
|
/*promotedPaymentMethods*/
|
|
4650
|
-
|
|
4660
|
+
g[5].length
|
|
4651
4661
|
));
|
|
4652
|
-
let
|
|
4653
|
-
for (
|
|
4654
|
-
const
|
|
4655
|
-
|
|
4662
|
+
let d;
|
|
4663
|
+
for (d = 0; d < S.length; d += 1) {
|
|
4664
|
+
const O = _r(g, S, d);
|
|
4665
|
+
x[d] ? x[d].p(O, _) : (x[d] = Tr(O), x[d].c(), x[d].m(u, null));
|
|
4656
4666
|
}
|
|
4657
|
-
for (;
|
|
4658
|
-
|
|
4659
|
-
|
|
4667
|
+
for (; d < x.length; d += 1)
|
|
4668
|
+
x[d].d(1);
|
|
4669
|
+
x.length = S.length;
|
|
4660
4670
|
}
|
|
4661
4671
|
},
|
|
4662
|
-
d(
|
|
4663
|
-
|
|
4672
|
+
d(g) {
|
|
4673
|
+
g && (U(t), U(l), U(u)), c && c.d(), Qt(b, g), e[29](null), m && m.d(), a(), Qt(x, g), h = !1, pe(f);
|
|
4664
4674
|
}
|
|
4665
4675
|
};
|
|
4666
4676
|
}
|
|
@@ -4668,47 +4678,47 @@ function xr(e) {
|
|
|
4668
4678
|
let t, r, n;
|
|
4669
4679
|
return {
|
|
4670
4680
|
c() {
|
|
4671
|
-
t =
|
|
4681
|
+
t = T("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Left");
|
|
4672
4682
|
},
|
|
4673
4683
|
m(i, o) {
|
|
4674
|
-
|
|
4684
|
+
k(i, t, o), r || (n = J(
|
|
4675
4685
|
t,
|
|
4676
4686
|
"click",
|
|
4677
4687
|
/*click_handler*/
|
|
4678
|
-
e[
|
|
4688
|
+
e[26]
|
|
4679
4689
|
), r = !0);
|
|
4680
4690
|
},
|
|
4681
|
-
p:
|
|
4691
|
+
p: N,
|
|
4682
4692
|
d(i) {
|
|
4683
|
-
i &&
|
|
4693
|
+
i && U(t), r = !1, n();
|
|
4684
4694
|
}
|
|
4685
4695
|
};
|
|
4686
4696
|
}
|
|
4687
4697
|
function wr(e) {
|
|
4688
|
-
var
|
|
4698
|
+
var Ie, Ne, Re, De, $e, Ue, Fe, p;
|
|
4689
4699
|
let t, r, n, i, o, s, a, l, u, h = (
|
|
4690
4700
|
/*method*/
|
|
4691
|
-
(e[
|
|
4692
|
-
e[
|
|
4693
|
-
), f, c,
|
|
4701
|
+
(e[46].Label || /*method*/
|
|
4702
|
+
e[46].Name) + ""
|
|
4703
|
+
), f, c, y, b, m = (
|
|
4694
4704
|
/*$_*/
|
|
4695
4705
|
e[9](`${/*methodtype*/
|
|
4696
4706
|
e[0]}${/*method*/
|
|
4697
|
-
e[
|
|
4698
|
-
),
|
|
4707
|
+
e[46].ProcessingTime}`) + ""
|
|
4708
|
+
), S, x, g, _, d, O = (
|
|
4699
4709
|
/*$_*/
|
|
4700
4710
|
e[9]("generalMin") + ""
|
|
4701
|
-
),
|
|
4711
|
+
), R, F, B = Qe(
|
|
4702
4712
|
/*method*/
|
|
4703
|
-
e[
|
|
4713
|
+
e[46].DisplayCurrency.MinAmountLimit,
|
|
4704
4714
|
/*method*/
|
|
4705
|
-
e[
|
|
4715
|
+
e[46].DisplayCurrency.Name,
|
|
4706
4716
|
{
|
|
4707
4717
|
maximumFractionDigits: (
|
|
4708
4718
|
/*precisionCurrenciesMap*/
|
|
4709
4719
|
e[4][
|
|
4710
4720
|
/*method*/
|
|
4711
|
-
(
|
|
4721
|
+
(Ne = (Ie = e[46]) == null ? void 0 : Ie.DisplayCurrency) == null ? void 0 : Ne.Name
|
|
4712
4722
|
] || /*numericCurrencyDecimals*/
|
|
4713
4723
|
e[8]
|
|
4714
4724
|
),
|
|
@@ -4716,25 +4726,25 @@ function wr(e) {
|
|
|
4716
4726
|
/*precisionCurrenciesMap*/
|
|
4717
4727
|
e[4][
|
|
4718
4728
|
/*method*/
|
|
4719
|
-
(
|
|
4729
|
+
(De = (Re = e[46]) == null ? void 0 : Re.DisplayCurrency) == null ? void 0 : De.Name
|
|
4720
4730
|
] || /*numericCurrencyDecimals*/
|
|
4721
4731
|
e[8]
|
|
4722
4732
|
)
|
|
4723
4733
|
}
|
|
4724
|
-
) + "",
|
|
4734
|
+
) + "", V, Z, K, ee = (
|
|
4725
4735
|
/*$_*/
|
|
4726
4736
|
e[9]("generalMax") + ""
|
|
4727
|
-
),
|
|
4737
|
+
), be, Oe, te = Qe(
|
|
4728
4738
|
/*method*/
|
|
4729
|
-
e[
|
|
4739
|
+
e[46].DisplayCurrency.MaxAmountLimit,
|
|
4730
4740
|
/*method*/
|
|
4731
|
-
e[
|
|
4741
|
+
e[46].DisplayCurrency.Name,
|
|
4732
4742
|
{
|
|
4733
4743
|
maximumFractionDigits: (
|
|
4734
4744
|
/*precisionCurrenciesMap*/
|
|
4735
4745
|
e[4][
|
|
4736
4746
|
/*method*/
|
|
4737
|
-
(
|
|
4747
|
+
(Ue = ($e = e[46]) == null ? void 0 : $e.DisplayCurrency) == null ? void 0 : Ue.Name
|
|
4738
4748
|
] || /*numericCurrencyDecimals*/
|
|
4739
4749
|
e[8]
|
|
4740
4750
|
),
|
|
@@ -4742,61 +4752,61 @@ function wr(e) {
|
|
|
4742
4752
|
/*precisionCurrenciesMap*/
|
|
4743
4753
|
e[4][
|
|
4744
4754
|
/*method*/
|
|
4745
|
-
(
|
|
4755
|
+
(p = (Fe = e[46]) == null ? void 0 : Fe.DisplayCurrency) == null ? void 0 : p.Name
|
|
4746
4756
|
] || /*numericCurrencyDecimals*/
|
|
4747
4757
|
e[8]
|
|
4748
4758
|
)
|
|
4749
4759
|
}
|
|
4750
|
-
) + "",
|
|
4751
|
-
function
|
|
4760
|
+
) + "", W, Be, ne, ge, Le;
|
|
4761
|
+
function ye() {
|
|
4752
4762
|
return (
|
|
4753
4763
|
/*click_handler_1*/
|
|
4754
|
-
e[
|
|
4764
|
+
e[27](
|
|
4755
4765
|
/*method*/
|
|
4756
|
-
e[
|
|
4766
|
+
e[46],
|
|
4757
4767
|
/*index*/
|
|
4758
|
-
e[
|
|
4768
|
+
e[45]
|
|
4759
4769
|
)
|
|
4760
4770
|
);
|
|
4761
4771
|
}
|
|
4762
4772
|
return {
|
|
4763
4773
|
c() {
|
|
4764
|
-
t =
|
|
4765
|
-
e[
|
|
4766
|
-
e[
|
|
4767
|
-
e[
|
|
4774
|
+
t = T("div"), r = T("div"), n = T("img"), s = $(), a = T("div"), l = T("div"), u = T("span"), f = G(h), c = $(), y = T("div"), b = T("span"), S = G(m), x = $(), g = T("div"), _ = T("span"), d = T("span"), R = G(O), F = $(), V = G(B), Z = $(), K = T("span"), be = G(ee), Oe = $(), W = G(te), Be = $(), Zt(n.src, i = /*method*/
|
|
4775
|
+
e[46].LogoUrl) || M(n, "src", i), M(n, "alt", o = /*method*/
|
|
4776
|
+
e[46].Label), M(r, "class", "MethodLogo"), M(l, "class", "MethodTitle"), M(y, "class", "MethodProcessingTime"), M(_, "class", "Limits"), M(g, "class", "MethodLimits"), M(a, "class", "MethodInfo"), M(t, "class", ne = `CarouselCardWrapper ${/*index*/
|
|
4777
|
+
e[45] === /*activeIndex*/
|
|
4768
4778
|
e[6] ? "active" : ""}`);
|
|
4769
4779
|
},
|
|
4770
|
-
m(
|
|
4771
|
-
|
|
4780
|
+
m(C, H) {
|
|
4781
|
+
k(C, t, H), v(t, r), v(r, n), v(t, s), v(t, a), v(a, l), v(l, u), v(u, f), v(a, c), v(a, y), v(y, b), v(b, S), v(a, x), v(a, g), v(g, _), v(_, d), v(d, R), v(d, F), v(d, V), v(_, Z), v(_, K), v(K, be), v(K, Oe), v(K, W), v(t, Be), e[28](t), ge || (Le = J(t, "click", ye), ge = !0);
|
|
4772
4782
|
},
|
|
4773
|
-
p(
|
|
4774
|
-
var
|
|
4775
|
-
e =
|
|
4783
|
+
p(C, H) {
|
|
4784
|
+
var Q, Ge, je, ft, Ft, Gt, jt, kt;
|
|
4785
|
+
e = C, H[0] & /*promotedPaymentMethods*/
|
|
4776
4786
|
32 && !Zt(n.src, i = /*method*/
|
|
4777
|
-
e[
|
|
4787
|
+
e[46].LogoUrl) && M(n, "src", i), H[0] & /*promotedPaymentMethods*/
|
|
4778
4788
|
32 && o !== (o = /*method*/
|
|
4779
|
-
e[
|
|
4789
|
+
e[46].Label) && M(n, "alt", o), H[0] & /*promotedPaymentMethods*/
|
|
4780
4790
|
32 && h !== (h = /*method*/
|
|
4781
|
-
(e[
|
|
4782
|
-
e[
|
|
4783
|
-
545 &&
|
|
4791
|
+
(e[46].Label || /*method*/
|
|
4792
|
+
e[46].Name) + "") && X(f, h), H[0] & /*$_, methodtype, promotedPaymentMethods*/
|
|
4793
|
+
545 && m !== (m = /*$_*/
|
|
4784
4794
|
e[9](`${/*methodtype*/
|
|
4785
4795
|
e[0]}${/*method*/
|
|
4786
|
-
e[
|
|
4787
|
-
512 &&
|
|
4788
|
-
e[9]("generalMin") + "") &&
|
|
4789
|
-
304 &&
|
|
4796
|
+
e[46].ProcessingTime}`) + "") && X(S, m), H[0] & /*$_*/
|
|
4797
|
+
512 && O !== (O = /*$_*/
|
|
4798
|
+
e[9]("generalMin") + "") && X(R, O), H[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
4799
|
+
304 && B !== (B = Qe(
|
|
4790
4800
|
/*method*/
|
|
4791
|
-
e[
|
|
4801
|
+
e[46].DisplayCurrency.MinAmountLimit,
|
|
4792
4802
|
/*method*/
|
|
4793
|
-
e[
|
|
4803
|
+
e[46].DisplayCurrency.Name,
|
|
4794
4804
|
{
|
|
4795
4805
|
maximumFractionDigits: (
|
|
4796
4806
|
/*precisionCurrenciesMap*/
|
|
4797
4807
|
e[4][
|
|
4798
4808
|
/*method*/
|
|
4799
|
-
(
|
|
4809
|
+
(Ge = (Q = e[46]) == null ? void 0 : Q.DisplayCurrency) == null ? void 0 : Ge.Name
|
|
4800
4810
|
] || /*numericCurrencyDecimals*/
|
|
4801
4811
|
e[8]
|
|
4802
4812
|
),
|
|
@@ -4804,25 +4814,25 @@ function wr(e) {
|
|
|
4804
4814
|
/*precisionCurrenciesMap*/
|
|
4805
4815
|
e[4][
|
|
4806
4816
|
/*method*/
|
|
4807
|
-
(
|
|
4817
|
+
(ft = (je = e[46]) == null ? void 0 : je.DisplayCurrency) == null ? void 0 : ft.Name
|
|
4808
4818
|
] || /*numericCurrencyDecimals*/
|
|
4809
4819
|
e[8]
|
|
4810
4820
|
)
|
|
4811
4821
|
}
|
|
4812
|
-
) + "") &&
|
|
4822
|
+
) + "") && X(V, B), H[0] & /*$_*/
|
|
4813
4823
|
512 && ee !== (ee = /*$_*/
|
|
4814
|
-
e[9]("generalMax") + "") &&
|
|
4815
|
-
304 &&
|
|
4824
|
+
e[9]("generalMax") + "") && X(be, ee), H[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
4825
|
+
304 && te !== (te = Qe(
|
|
4816
4826
|
/*method*/
|
|
4817
|
-
e[
|
|
4827
|
+
e[46].DisplayCurrency.MaxAmountLimit,
|
|
4818
4828
|
/*method*/
|
|
4819
|
-
e[
|
|
4829
|
+
e[46].DisplayCurrency.Name,
|
|
4820
4830
|
{
|
|
4821
4831
|
maximumFractionDigits: (
|
|
4822
4832
|
/*precisionCurrenciesMap*/
|
|
4823
4833
|
e[4][
|
|
4824
4834
|
/*method*/
|
|
4825
|
-
(Gt = (Ft = e[
|
|
4835
|
+
(Gt = (Ft = e[46]) == null ? void 0 : Ft.DisplayCurrency) == null ? void 0 : Gt.Name
|
|
4826
4836
|
] || /*numericCurrencyDecimals*/
|
|
4827
4837
|
e[8]
|
|
4828
4838
|
),
|
|
@@ -4830,18 +4840,18 @@ function wr(e) {
|
|
|
4830
4840
|
/*precisionCurrenciesMap*/
|
|
4831
4841
|
e[4][
|
|
4832
4842
|
/*method*/
|
|
4833
|
-
(kt = (jt = e[
|
|
4843
|
+
(kt = (jt = e[46]) == null ? void 0 : jt.DisplayCurrency) == null ? void 0 : kt.Name
|
|
4834
4844
|
] || /*numericCurrencyDecimals*/
|
|
4835
4845
|
e[8]
|
|
4836
4846
|
)
|
|
4837
4847
|
}
|
|
4838
|
-
) + "") &&
|
|
4839
|
-
64 &&
|
|
4840
|
-
e[
|
|
4841
|
-
e[6] ? "active" : ""}`) &&
|
|
4848
|
+
) + "") && X(W, te), H[0] & /*activeIndex*/
|
|
4849
|
+
64 && ne !== (ne = `CarouselCardWrapper ${/*index*/
|
|
4850
|
+
e[45] === /*activeIndex*/
|
|
4851
|
+
e[6] ? "active" : ""}`) && M(t, "class", ne);
|
|
4842
4852
|
},
|
|
4843
|
-
d(
|
|
4844
|
-
|
|
4853
|
+
d(C) {
|
|
4854
|
+
C && U(t), e[28](null), ge = !1, Le();
|
|
4845
4855
|
}
|
|
4846
4856
|
};
|
|
4847
4857
|
}
|
|
@@ -4849,19 +4859,19 @@ function Sr(e) {
|
|
|
4849
4859
|
let t, r, n;
|
|
4850
4860
|
return {
|
|
4851
4861
|
c() {
|
|
4852
|
-
t =
|
|
4862
|
+
t = T("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Right");
|
|
4853
4863
|
},
|
|
4854
4864
|
m(i, o) {
|
|
4855
|
-
|
|
4865
|
+
k(i, t, o), r || (n = J(
|
|
4856
4866
|
t,
|
|
4857
4867
|
"click",
|
|
4858
4868
|
/*click_handler_2*/
|
|
4859
|
-
e[
|
|
4869
|
+
e[30]
|
|
4860
4870
|
), r = !0);
|
|
4861
4871
|
},
|
|
4862
|
-
p:
|
|
4872
|
+
p: N,
|
|
4863
4873
|
d(i) {
|
|
4864
|
-
i &&
|
|
4874
|
+
i && U(t), r = !1, n();
|
|
4865
4875
|
}
|
|
4866
4876
|
};
|
|
4867
4877
|
}
|
|
@@ -4869,25 +4879,25 @@ function Tr(e) {
|
|
|
4869
4879
|
let t, r;
|
|
4870
4880
|
return {
|
|
4871
4881
|
c() {
|
|
4872
|
-
t =
|
|
4873
|
-
e[
|
|
4882
|
+
t = T("div"), M(t, "class", r = `Dot ${/*index*/
|
|
4883
|
+
e[45] === /*activeIndex*/
|
|
4874
4884
|
e[6] ? "active" : ""}`);
|
|
4875
4885
|
},
|
|
4876
4886
|
m(n, i) {
|
|
4877
|
-
|
|
4887
|
+
k(n, t, i);
|
|
4878
4888
|
},
|
|
4879
4889
|
p(n, i) {
|
|
4880
4890
|
i[0] & /*activeIndex*/
|
|
4881
4891
|
64 && r !== (r = `Dot ${/*index*/
|
|
4882
|
-
n[
|
|
4883
|
-
n[6] ? "active" : ""}`) &&
|
|
4892
|
+
n[45] === /*activeIndex*/
|
|
4893
|
+
n[6] ? "active" : ""}`) && M(t, "class", r);
|
|
4884
4894
|
},
|
|
4885
4895
|
d(n) {
|
|
4886
|
-
n &&
|
|
4896
|
+
n && U(t);
|
|
4887
4897
|
}
|
|
4888
4898
|
};
|
|
4889
4899
|
}
|
|
4890
|
-
function
|
|
4900
|
+
function ts(e) {
|
|
4891
4901
|
let t, r, n, i, o = (
|
|
4892
4902
|
/*$_*/
|
|
4893
4903
|
e[9]("carouselTitle") + ""
|
|
@@ -4895,48 +4905,48 @@ function es(e) {
|
|
|
4895
4905
|
/*$_*/
|
|
4896
4906
|
e[9]("carouselSubtitle") + ""
|
|
4897
4907
|
), h, f;
|
|
4898
|
-
function c(
|
|
4908
|
+
function c(m, S) {
|
|
4899
4909
|
return (
|
|
4900
4910
|
/*promotedPaymentMethods*/
|
|
4901
|
-
|
|
4911
|
+
m[5].length > 0 ? es : Ko
|
|
4902
4912
|
);
|
|
4903
4913
|
}
|
|
4904
|
-
let
|
|
4914
|
+
let y = c(e), b = y(e);
|
|
4905
4915
|
return {
|
|
4906
4916
|
c() {
|
|
4907
|
-
t =
|
|
4917
|
+
t = T("div"), r = T("div"), n = T("div"), i = T("h4"), s = G(o), a = $(), l = T("p"), h = G(u), f = $(), b.c(), M(n, "class", "CarouselHeader"), M(r, "class", "CashierCarouselWarpper");
|
|
4908
4918
|
},
|
|
4909
|
-
m(
|
|
4910
|
-
|
|
4919
|
+
m(m, S) {
|
|
4920
|
+
k(m, t, S), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, l), v(l, h), v(r, f), b.m(r, null), e[32](t);
|
|
4911
4921
|
},
|
|
4912
|
-
p(
|
|
4913
|
-
|
|
4922
|
+
p(m, S) {
|
|
4923
|
+
S[0] & /*$_*/
|
|
4914
4924
|
512 && o !== (o = /*$_*/
|
|
4915
|
-
|
|
4925
|
+
m[9]("carouselTitle") + "") && X(s, o), S[0] & /*$_*/
|
|
4916
4926
|
512 && u !== (u = /*$_*/
|
|
4917
|
-
|
|
4927
|
+
m[9]("carouselSubtitle") + "") && X(h, u), y === (y = c(m)) && b ? b.p(m, S) : (b.d(1), b = y(m), b && (b.c(), b.m(r, null)));
|
|
4918
4928
|
},
|
|
4919
|
-
i:
|
|
4920
|
-
o:
|
|
4921
|
-
d(
|
|
4922
|
-
|
|
4929
|
+
i: N,
|
|
4930
|
+
o: N,
|
|
4931
|
+
d(m) {
|
|
4932
|
+
m && U(t), b.d(), e[32](null);
|
|
4923
4933
|
}
|
|
4924
4934
|
};
|
|
4925
4935
|
}
|
|
4926
|
-
function
|
|
4936
|
+
function rs(e, t, r) {
|
|
4927
4937
|
let n, i;
|
|
4928
|
-
mn(e,
|
|
4929
|
-
let { lang: o = "en" } = t, { local: s = "en-US" } = t, { currencysymbol: a = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, {
|
|
4930
|
-
const
|
|
4931
|
-
var
|
|
4932
|
-
const { data: { type:
|
|
4933
|
-
switch (
|
|
4938
|
+
mn(e, Po, (p) => r(9, i = p));
|
|
4939
|
+
let { lang: o = "en" } = t, { local: s = "en-US" } = t, { currencysymbol: a = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, { type: f = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: y = "" } = t, { mbsource: b = "" } = t, { translationurl: m = "" } = t, S = {}, x, g, _ = [], d = 0, O = !0, R = 0, F = !1, B, V, Z, K = window.navigator.userAgent;
|
|
4940
|
+
const ee = (p) => {
|
|
4941
|
+
var H, Q;
|
|
4942
|
+
const { data: { type: C } = {} } = p || {};
|
|
4943
|
+
switch (C) {
|
|
4934
4944
|
case "PromotedPaymentMethods": {
|
|
4935
|
-
r(5,
|
|
4945
|
+
r(5, _ = (H = p == null ? void 0 : p.data) == null ? void 0 : H.promotedPaymentMethods), r(6, d = Math.floor((_.length - 1) / 2));
|
|
4936
4946
|
break;
|
|
4937
4947
|
}
|
|
4938
4948
|
case "PrecisionCurrenciesMap": {
|
|
4939
|
-
r(4,
|
|
4949
|
+
r(4, S = ((Q = p == null ? void 0 : p.data) == null ? void 0 : Q.payload) || {});
|
|
4940
4950
|
break;
|
|
4941
4951
|
}
|
|
4942
4952
|
}
|
|
@@ -4944,20 +4954,23 @@ function ts(e, t, r) {
|
|
|
4944
4954
|
Object.keys(vr).forEach((p) => {
|
|
4945
4955
|
cr(p, vr[p]);
|
|
4946
4956
|
});
|
|
4947
|
-
const
|
|
4957
|
+
const be = () => {
|
|
4948
4958
|
let p = m;
|
|
4949
4959
|
if (p)
|
|
4950
|
-
return fetch(p).then((
|
|
4951
|
-
Object.keys(
|
|
4952
|
-
cr(
|
|
4960
|
+
return fetch(p).then((C) => C.json()).then((C) => {
|
|
4961
|
+
Object.keys(C).forEach((H) => {
|
|
4962
|
+
cr(H, C[H]);
|
|
4953
4963
|
});
|
|
4954
|
-
}).catch((
|
|
4955
|
-
console.log(
|
|
4964
|
+
}).catch((C) => {
|
|
4965
|
+
console.log(C);
|
|
4956
4966
|
});
|
|
4957
|
-
},
|
|
4958
|
-
|
|
4959
|
-
},
|
|
4960
|
-
r(6,
|
|
4967
|
+
}, Oe = () => {
|
|
4968
|
+
Oo(o);
|
|
4969
|
+
}, te = (p, C) => {
|
|
4970
|
+
r(6, d = C), r(2, B.style.transform = W(), B), p.Name, $n("cashier_favorite_click", {
|
|
4971
|
+
transactionType: f,
|
|
4972
|
+
method: p.Name
|
|
4973
|
+
}), window.postMessage({ type: "SelectPayMeth", details: p }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4961
4974
|
"selectPayMeth",
|
|
4962
4975
|
{
|
|
4963
4976
|
detail: p,
|
|
@@ -4966,78 +4979,78 @@ function ts(e, t, r) {
|
|
|
4966
4979
|
composed: !0
|
|
4967
4980
|
}
|
|
4968
4981
|
));
|
|
4969
|
-
},
|
|
4970
|
-
const p = parseFloat(getComputedStyle(
|
|
4971
|
-
return `translateX(${
|
|
4972
|
-
}, ge = (p) => {
|
|
4973
|
-
A = p.touches[0].clientX, N = !0, M.classList.add("dragging");
|
|
4982
|
+
}, W = () => {
|
|
4983
|
+
const p = parseFloat(getComputedStyle(Z).getPropertyValue("--emw-cashier-card-width")) || 78, C = parseFloat(getComputedStyle(B).getPropertyValue("--emw-cashier-card-gap")) || 10, H = parseFloat(getComputedStyle(Z).getPropertyValue("--emw-cashier-card-width-active")) || 100, Q = p + C, Ge = V / 2, je = d * Q + H / 2;
|
|
4984
|
+
return `translateX(${Ge - je}px)`;
|
|
4974
4985
|
}, Be = (p) => {
|
|
4975
|
-
|
|
4986
|
+
R = p.touches[0].clientX, F = !0, B.classList.add("dragging");
|
|
4987
|
+
}, ne = (p) => {
|
|
4988
|
+
if (!F)
|
|
4976
4989
|
return;
|
|
4977
|
-
const
|
|
4978
|
-
Math.abs(
|
|
4979
|
-
},
|
|
4980
|
-
if (!
|
|
4990
|
+
const C = p.touches[0].clientX;
|
|
4991
|
+
Math.abs(C - R) > 10 && p.preventDefault();
|
|
4992
|
+
}, ge = (p) => {
|
|
4993
|
+
if (!F)
|
|
4981
4994
|
return;
|
|
4982
|
-
|
|
4983
|
-
const
|
|
4984
|
-
Math.abs(
|
|
4985
|
-
},
|
|
4986
|
-
|
|
4987
|
-
},
|
|
4988
|
-
p === "next" &&
|
|
4995
|
+
F = !1, B.classList.remove("dragging");
|
|
4996
|
+
const C = p.changedTouches[0].clientX, H = R - C;
|
|
4997
|
+
Math.abs(H) > 50 && (H > 0 && d < _.length - 1 ? r(6, d++, d) : H < 0 && d > 0 && r(6, d--, d), r(2, B.style.transform = W(), B));
|
|
4998
|
+
}, Le = () => {
|
|
4999
|
+
O && (r(2, B.style.transform = W(), B), O = !1);
|
|
5000
|
+
}, ye = (p) => {
|
|
5001
|
+
p === "next" && d < _.length - 1 ? r(6, d++, d) : p === "prev" && d > 0 && r(6, d--, d), r(2, B.style.transform = W(), B);
|
|
4989
5002
|
};
|
|
4990
|
-
Sn(() => (
|
|
4991
|
-
window.removeEventListener("message",
|
|
5003
|
+
Sn(() => (Jo(s, a, l, u), window.addEventListener("message", ee), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), B && W(), () => {
|
|
5004
|
+
window.removeEventListener("message", ee);
|
|
4992
5005
|
}));
|
|
4993
|
-
const
|
|
4994
|
-
function
|
|
5006
|
+
const Ie = () => ye("prev"), Ne = (p, C) => te(p, C);
|
|
5007
|
+
function Re(p) {
|
|
4995
5008
|
Se[p ? "unshift" : "push"](() => {
|
|
4996
|
-
|
|
5009
|
+
Z = p, r(7, Z);
|
|
4997
5010
|
});
|
|
4998
5011
|
}
|
|
4999
|
-
function
|
|
5012
|
+
function De(p) {
|
|
5000
5013
|
Se[p ? "unshift" : "push"](() => {
|
|
5001
|
-
|
|
5014
|
+
B = p, r(2, B);
|
|
5002
5015
|
});
|
|
5003
5016
|
}
|
|
5004
|
-
const
|
|
5005
|
-
function
|
|
5006
|
-
|
|
5017
|
+
const $e = () => ye("next");
|
|
5018
|
+
function Ue() {
|
|
5019
|
+
V = this.clientWidth, r(3, V);
|
|
5007
5020
|
}
|
|
5008
|
-
function
|
|
5021
|
+
function Fe(p) {
|
|
5009
5022
|
Se[p ? "unshift" : "push"](() => {
|
|
5010
|
-
|
|
5023
|
+
x = p, r(1, x);
|
|
5011
5024
|
});
|
|
5012
5025
|
}
|
|
5013
5026
|
return e.$$set = (p) => {
|
|
5014
|
-
"lang" in p && r(16, o = p.lang), "local" in p && r(17, s = p.local), "currencysymbol" in p && r(18, a = p.currencysymbol), "currencyposition" in p && r(19, l = p.currencyposition), "currencydecimals" in p && r(20, u = p.currencydecimals), "methodtype" in p && r(0, h = p.methodtype), "
|
|
5027
|
+
"lang" in p && r(16, o = p.lang), "local" in p && r(17, s = p.local), "currencysymbol" in p && r(18, a = p.currencysymbol), "currencyposition" in p && r(19, l = p.currencyposition), "currencydecimals" in p && r(20, u = p.currencydecimals), "methodtype" in p && r(0, h = p.methodtype), "type" in p && r(21, f = p.type), "clientstyling" in p && r(22, c = p.clientstyling), "clientstylingurl" in p && r(23, y = p.clientstylingurl), "mbsource" in p && r(24, b = p.mbsource), "translationurl" in p && r(25, m = p.translationurl);
|
|
5015
5028
|
}, e.$$.update = () => {
|
|
5016
5029
|
e.$$.dirty[0] & /*lang*/
|
|
5017
|
-
65536 && o &&
|
|
5018
|
-
|
|
5019
|
-
12 &&
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5030
|
+
65536 && o && Oe(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
5031
|
+
33619968 && o && m && be(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
|
|
5032
|
+
12 && B && V && Le(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5033
|
+
4194306 && c && x && Bo(x, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5034
|
+
8388610 && y && x && Lo(x, y), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5035
|
+
16777218 && b && x && Io(x, `${b}.Style`, g), e.$$.dirty[0] & /*currencydecimals*/
|
|
5023
5036
|
1048576 && r(8, n = Number(u));
|
|
5024
5037
|
}, [
|
|
5025
5038
|
h,
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5039
|
+
x,
|
|
5040
|
+
B,
|
|
5041
|
+
V,
|
|
5042
|
+
S,
|
|
5043
|
+
_,
|
|
5029
5044
|
d,
|
|
5030
|
-
|
|
5031
|
-
v,
|
|
5032
|
-
X,
|
|
5045
|
+
Z,
|
|
5033
5046
|
n,
|
|
5034
5047
|
i,
|
|
5035
|
-
|
|
5036
|
-
be,
|
|
5037
|
-
ge,
|
|
5038
|
-
Be,
|
|
5048
|
+
K,
|
|
5039
5049
|
te,
|
|
5040
|
-
|
|
5050
|
+
Be,
|
|
5051
|
+
ne,
|
|
5052
|
+
ge,
|
|
5053
|
+
ye,
|
|
5041
5054
|
o,
|
|
5042
5055
|
s,
|
|
5043
5056
|
a,
|
|
@@ -5045,24 +5058,25 @@ function ts(e, t, r) {
|
|
|
5045
5058
|
u,
|
|
5046
5059
|
f,
|
|
5047
5060
|
c,
|
|
5048
|
-
|
|
5061
|
+
y,
|
|
5062
|
+
b,
|
|
5049
5063
|
m,
|
|
5050
|
-
ht,
|
|
5051
|
-
Le,
|
|
5052
5064
|
Ie,
|
|
5053
5065
|
Ne,
|
|
5054
5066
|
Re,
|
|
5055
5067
|
De,
|
|
5056
|
-
$e
|
|
5068
|
+
$e,
|
|
5069
|
+
Ue,
|
|
5070
|
+
Fe
|
|
5057
5071
|
];
|
|
5058
5072
|
}
|
|
5059
|
-
class
|
|
5073
|
+
class ns extends Rn {
|
|
5060
5074
|
constructor(t) {
|
|
5061
5075
|
super(), In(
|
|
5062
5076
|
this,
|
|
5063
5077
|
t,
|
|
5078
|
+
rs,
|
|
5064
5079
|
ts,
|
|
5065
|
-
es,
|
|
5066
5080
|
Hr,
|
|
5067
5081
|
{
|
|
5068
5082
|
lang: 16,
|
|
@@ -5071,12 +5085,13 @@ class rs extends Rn {
|
|
|
5071
5085
|
currencyposition: 19,
|
|
5072
5086
|
currencydecimals: 20,
|
|
5073
5087
|
methodtype: 0,
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5088
|
+
type: 21,
|
|
5089
|
+
clientstyling: 22,
|
|
5090
|
+
clientstylingurl: 23,
|
|
5091
|
+
mbsource: 24,
|
|
5092
|
+
translationurl: 25
|
|
5078
5093
|
},
|
|
5079
|
-
|
|
5094
|
+
qo,
|
|
5080
5095
|
[-1, -1]
|
|
5081
5096
|
);
|
|
5082
5097
|
}
|
|
@@ -5084,64 +5099,70 @@ class rs extends Rn {
|
|
|
5084
5099
|
return this.$$.ctx[16];
|
|
5085
5100
|
}
|
|
5086
5101
|
set lang(t) {
|
|
5087
|
-
this.$$set({ lang: t }),
|
|
5102
|
+
this.$$set({ lang: t }), I();
|
|
5088
5103
|
}
|
|
5089
5104
|
get local() {
|
|
5090
5105
|
return this.$$.ctx[17];
|
|
5091
5106
|
}
|
|
5092
5107
|
set local(t) {
|
|
5093
|
-
this.$$set({ local: t }),
|
|
5108
|
+
this.$$set({ local: t }), I();
|
|
5094
5109
|
}
|
|
5095
5110
|
get currencysymbol() {
|
|
5096
5111
|
return this.$$.ctx[18];
|
|
5097
5112
|
}
|
|
5098
5113
|
set currencysymbol(t) {
|
|
5099
|
-
this.$$set({ currencysymbol: t }),
|
|
5114
|
+
this.$$set({ currencysymbol: t }), I();
|
|
5100
5115
|
}
|
|
5101
5116
|
get currencyposition() {
|
|
5102
5117
|
return this.$$.ctx[19];
|
|
5103
5118
|
}
|
|
5104
5119
|
set currencyposition(t) {
|
|
5105
|
-
this.$$set({ currencyposition: t }),
|
|
5120
|
+
this.$$set({ currencyposition: t }), I();
|
|
5106
5121
|
}
|
|
5107
5122
|
get currencydecimals() {
|
|
5108
5123
|
return this.$$.ctx[20];
|
|
5109
5124
|
}
|
|
5110
5125
|
set currencydecimals(t) {
|
|
5111
|
-
this.$$set({ currencydecimals: t }),
|
|
5126
|
+
this.$$set({ currencydecimals: t }), I();
|
|
5112
5127
|
}
|
|
5113
5128
|
get methodtype() {
|
|
5114
5129
|
return this.$$.ctx[0];
|
|
5115
5130
|
}
|
|
5116
5131
|
set methodtype(t) {
|
|
5117
|
-
this.$$set({ methodtype: t }),
|
|
5132
|
+
this.$$set({ methodtype: t }), I();
|
|
5118
5133
|
}
|
|
5119
|
-
get
|
|
5134
|
+
get type() {
|
|
5120
5135
|
return this.$$.ctx[21];
|
|
5121
5136
|
}
|
|
5137
|
+
set type(t) {
|
|
5138
|
+
this.$$set({ type: t }), I();
|
|
5139
|
+
}
|
|
5140
|
+
get clientstyling() {
|
|
5141
|
+
return this.$$.ctx[22];
|
|
5142
|
+
}
|
|
5122
5143
|
set clientstyling(t) {
|
|
5123
|
-
this.$$set({ clientstyling: t }),
|
|
5144
|
+
this.$$set({ clientstyling: t }), I();
|
|
5124
5145
|
}
|
|
5125
5146
|
get clientstylingurl() {
|
|
5126
|
-
return this.$$.ctx[
|
|
5147
|
+
return this.$$.ctx[23];
|
|
5127
5148
|
}
|
|
5128
5149
|
set clientstylingurl(t) {
|
|
5129
|
-
this.$$set({ clientstylingurl: t }),
|
|
5150
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
5130
5151
|
}
|
|
5131
5152
|
get mbsource() {
|
|
5132
|
-
return this.$$.ctx[
|
|
5153
|
+
return this.$$.ctx[24];
|
|
5133
5154
|
}
|
|
5134
5155
|
set mbsource(t) {
|
|
5135
|
-
this.$$set({ mbsource: t }),
|
|
5156
|
+
this.$$set({ mbsource: t }), I();
|
|
5136
5157
|
}
|
|
5137
5158
|
get translationurl() {
|
|
5138
|
-
return this.$$.ctx[
|
|
5159
|
+
return this.$$.ctx[25];
|
|
5139
5160
|
}
|
|
5140
5161
|
set translationurl(t) {
|
|
5141
|
-
this.$$set({ translationurl: t }),
|
|
5162
|
+
this.$$set({ translationurl: t }), I();
|
|
5142
5163
|
}
|
|
5143
5164
|
}
|
|
5144
|
-
Nn(
|
|
5165
|
+
Nn(ns, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, type: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5145
5166
|
export {
|
|
5146
|
-
|
|
5167
|
+
ns as default
|
|
5147
5168
|
};
|