@everymatrix/cashier-error 1.86.0 → 1.86.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierError-C7AbW279.js → CashierError-Bupr3kgq.js} +605 -628
- package/components/{CashierError-CmjnBzFO.js → CashierError-DGO7RbEg.js} +624 -647
- package/components/{CashierError-DrQTtfgS.cjs → CashierError-l26mpTff.cjs} +3 -3
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
|
-
function
|
|
2
|
+
function B() {
|
|
3
3
|
}
|
|
4
4
|
function qt(e, t) {
|
|
5
5
|
for (const r in t)
|
|
@@ -9,71 +9,71 @@ function qt(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _t(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Je() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function te(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach(_t);
|
|
20
20
|
}
|
|
21
21
|
function Ve(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Et(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let oe;
|
|
28
|
+
function qe(e, t) {
|
|
29
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
30
30
|
}
|
|
31
31
|
function Qt(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function vt(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return B;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
43
|
function Yt(e, t, r) {
|
|
44
|
-
e.$$.on_destroy.push(
|
|
44
|
+
e.$$.on_destroy.push(vt(t, r));
|
|
45
45
|
}
|
|
46
46
|
function se(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = xt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function xt(e, t, r, n) {
|
|
53
53
|
return e[1] && n ? qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ae(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const o = [],
|
|
62
|
-
for (let
|
|
63
|
-
o[
|
|
61
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let a = 0; a < s; a += 1)
|
|
63
|
+
o[a] = t.dirty[a] | i[a];
|
|
64
64
|
return o;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ue(e, t, r, n, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const s = xt(t, r, n, o);
|
|
73
|
+
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function le(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -82,13 +82,13 @@ function he(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function P(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
88
|
function Kt(e, t, r) {
|
|
89
89
|
const n = er(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
91
|
+
const i = I("style");
|
|
92
92
|
i.id = t, i.textContent = r, tr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -103,44 +103,44 @@ function er(e) {
|
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
105
|
function tr(e, t) {
|
|
106
|
-
return
|
|
106
|
+
return P(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function V(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function L(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function I(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ve(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
124
|
function Se() {
|
|
125
|
-
return
|
|
125
|
+
return ve(" ");
|
|
126
126
|
}
|
|
127
127
|
function rr() {
|
|
128
|
-
return
|
|
128
|
+
return ve("");
|
|
129
129
|
}
|
|
130
130
|
function nr(e, t, r, n) {
|
|
131
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function G(e, t, r) {
|
|
134
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function he(e, t, r) {
|
|
137
137
|
const n = t.toLowerCase();
|
|
138
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
138
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
|
|
139
139
|
}
|
|
140
140
|
function ir(e) {
|
|
141
141
|
return Array.from(e.childNodes);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Tt(e, t) {
|
|
144
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
145
145
|
t);
|
|
146
146
|
}
|
|
@@ -157,49 +157,49 @@ let Y;
|
|
|
157
157
|
function Q(e) {
|
|
158
158
|
Y = e;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function sr() {
|
|
161
161
|
if (!Y)
|
|
162
162
|
throw new Error("Function called outside component initialization");
|
|
163
163
|
return Y;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
165
|
+
function ar(e) {
|
|
166
|
+
sr().$$.on_mount.push(e);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
const
|
|
168
|
+
const D = [], Le = [];
|
|
169
|
+
let U = [];
|
|
170
|
+
const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
171
171
|
let Me = !1;
|
|
172
172
|
function lr() {
|
|
173
|
-
Me || (Me = !0, ur.then(
|
|
173
|
+
Me || (Me = !0, ur.then(S));
|
|
174
174
|
}
|
|
175
175
|
function $e(e) {
|
|
176
|
-
|
|
176
|
+
U.push(e);
|
|
177
177
|
}
|
|
178
178
|
const Be = /* @__PURE__ */ new Set();
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
179
|
+
let $ = 0;
|
|
180
|
+
function S() {
|
|
181
|
+
if ($ !== 0)
|
|
182
182
|
return;
|
|
183
183
|
const e = Y;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const t =
|
|
188
|
-
|
|
186
|
+
for (; $ < D.length; ) {
|
|
187
|
+
const t = D[$];
|
|
188
|
+
$++, Q(t), hr(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
|
-
throw
|
|
191
|
+
throw D.length = 0, $ = 0, t;
|
|
192
192
|
}
|
|
193
|
-
for (Q(null),
|
|
193
|
+
for (Q(null), D.length = 0, $ = 0; Le.length; )
|
|
194
194
|
Le.pop()();
|
|
195
|
-
for (let t = 0; t <
|
|
196
|
-
const r =
|
|
195
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
196
|
+
const r = U[t];
|
|
197
197
|
Be.has(r) || (Be.add(r), r());
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
} while (
|
|
201
|
-
for (;
|
|
202
|
-
|
|
199
|
+
U.length = 0;
|
|
200
|
+
} while (D.length);
|
|
201
|
+
for (; Qe.length; )
|
|
202
|
+
Qe.pop()();
|
|
203
203
|
Me = !1, Be.clear(), Q(e);
|
|
204
204
|
}
|
|
205
205
|
function hr(e) {
|
|
@@ -211,26 +211,26 @@ function hr(e) {
|
|
|
211
211
|
}
|
|
212
212
|
function cr(e) {
|
|
213
213
|
const t = [], r = [];
|
|
214
|
-
|
|
214
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const me = /* @__PURE__ */ new Set();
|
|
217
217
|
let fr;
|
|
218
218
|
function J(e, t) {
|
|
219
|
-
e && e.i && (
|
|
219
|
+
e && e.i && (me.delete(e), e.i(t));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ce(e, t, r, n) {
|
|
222
222
|
if (e && e.o) {
|
|
223
|
-
if (
|
|
223
|
+
if (me.has(e))
|
|
224
224
|
return;
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
me.add(e), fr.c.push(() => {
|
|
226
|
+
me.delete(e);
|
|
227
227
|
}), e.o(t);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
function mr(e, t, r) {
|
|
231
231
|
const { fragment: n, after_update: i } = e.$$;
|
|
232
232
|
n && n.m(t, r), $e(() => {
|
|
233
|
-
const o = e.$$.on_mount.map(
|
|
233
|
+
const o = e.$$.on_mount.map(_t).filter(Ve);
|
|
234
234
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
235
235
|
}), i.forEach($e);
|
|
236
236
|
}
|
|
@@ -239,9 +239,9 @@ function dr(e, t) {
|
|
|
239
239
|
r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
240
240
|
}
|
|
241
241
|
function pr(e, t) {
|
|
242
|
-
e.$$.dirty[0] === -1 && (
|
|
242
|
+
e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
243
243
|
}
|
|
244
|
-
function br(e, t, r, n, i, o,
|
|
244
|
+
function br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
245
245
|
const h = Y;
|
|
246
246
|
Q(e);
|
|
247
247
|
const u = e.$$ = {
|
|
@@ -249,9 +249,9 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
249
249
|
ctx: [],
|
|
250
250
|
// state
|
|
251
251
|
props: o,
|
|
252
|
-
update:
|
|
252
|
+
update: B,
|
|
253
253
|
not_equal: i,
|
|
254
|
-
bound:
|
|
254
|
+
bound: Je(),
|
|
255
255
|
// lifecycle
|
|
256
256
|
on_mount: [],
|
|
257
257
|
on_destroy: [],
|
|
@@ -260,23 +260,23 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
260
260
|
after_update: [],
|
|
261
261
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
262
262
|
// everything else
|
|
263
|
-
callbacks:
|
|
264
|
-
dirty:
|
|
263
|
+
callbacks: Je(),
|
|
264
|
+
dirty: a,
|
|
265
265
|
skip_bound: !1,
|
|
266
266
|
root: t.target || h.$$.root
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
s && s(u.root);
|
|
269
269
|
let l = !1;
|
|
270
|
-
if (u.ctx = r ? r(e, t.props || {}, (f,
|
|
271
|
-
const
|
|
272
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
270
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
271
|
+
const p = d.length ? d[0] : m;
|
|
272
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && pr(e, f)), m;
|
|
273
273
|
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
274
274
|
if (t.hydrate) {
|
|
275
275
|
const f = ir(t.target);
|
|
276
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
276
|
+
u.fragment && u.fragment.l(f), f.forEach(L);
|
|
277
277
|
} else
|
|
278
278
|
u.fragment && u.fragment.c();
|
|
279
|
-
t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor),
|
|
279
|
+
t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), S();
|
|
280
280
|
}
|
|
281
281
|
Q(h);
|
|
282
282
|
}
|
|
@@ -323,17 +323,17 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
323
323
|
let o;
|
|
324
324
|
return {
|
|
325
325
|
c: function() {
|
|
326
|
-
o =
|
|
326
|
+
o = I("slot"), i !== "default" && G(o, "name", i);
|
|
327
327
|
},
|
|
328
328
|
/**
|
|
329
329
|
* @param {HTMLElement} target
|
|
330
330
|
* @param {HTMLElement} [anchor]
|
|
331
331
|
*/
|
|
332
332
|
m: function(h, u) {
|
|
333
|
-
|
|
333
|
+
V(h, o, u);
|
|
334
334
|
},
|
|
335
335
|
d: function(h) {
|
|
336
|
-
h &&
|
|
336
|
+
h && L(o);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
};
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
345
345
|
i in r && (t[i] = [e(i)]);
|
|
346
346
|
for (const i of this.attributes) {
|
|
347
347
|
const o = this.$$g_p(i.name);
|
|
348
|
-
o in this.$$d || (this.$$d[o] =
|
|
348
|
+
o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
|
|
349
349
|
}
|
|
350
350
|
for (const i in this.$$p_d)
|
|
351
351
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
363
363
|
this.$$r = !0;
|
|
364
364
|
for (const i in this.$$p_d)
|
|
365
365
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
366
|
-
const o =
|
|
366
|
+
const o = de(
|
|
367
367
|
i,
|
|
368
368
|
this.$$d[i],
|
|
369
369
|
this.$$p_d,
|
|
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
376
376
|
this.$$c.$$.after_update.push(n), n();
|
|
377
377
|
for (const i in this.$$l)
|
|
378
378
|
for (const o of this.$$l[i]) {
|
|
379
|
-
const
|
|
380
|
-
this.$$l_u.set(o,
|
|
379
|
+
const s = this.$$c.$on(i, o);
|
|
380
|
+
this.$$l_u.set(o, s);
|
|
381
381
|
}
|
|
382
382
|
this.$$l = {};
|
|
383
383
|
}
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
385
385
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
386
386
|
// and setting attributes through setAttribute etc, this is helpful
|
|
387
387
|
attributeChangedCallback(e, t, r) {
|
|
388
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
388
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
389
389
|
}
|
|
390
390
|
disconnectedCallback() {
|
|
391
391
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
398
398
|
) || e;
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
function
|
|
401
|
+
function de(e, t, r, n) {
|
|
402
402
|
const i = r[e]?.type;
|
|
403
403
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
404
404
|
return t;
|
|
@@ -428,33 +428,33 @@ function pe(e, t, r, n) {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function gr(e, t, r, n, i, o) {
|
|
431
|
-
let
|
|
431
|
+
let s = class extends Ht {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(e, r, i), this.$$p_d = t;
|
|
434
434
|
}
|
|
435
435
|
static get observedAttributes() {
|
|
436
436
|
return Object.keys(t).map(
|
|
437
|
-
(
|
|
437
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
438
438
|
);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
return Object.keys(t).forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
return Object.keys(t).forEach((a) => {
|
|
442
|
+
Object.defineProperty(s.prototype, a, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c &&
|
|
444
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
445
445
|
},
|
|
446
446
|
set(h) {
|
|
447
|
-
h =
|
|
447
|
+
h = de(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
}), n.forEach((
|
|
451
|
-
Object.defineProperty(
|
|
450
|
+
}), n.forEach((a) => {
|
|
451
|
+
Object.defineProperty(s.prototype, a, {
|
|
452
452
|
get() {
|
|
453
|
-
return this.$$c?.[
|
|
453
|
+
return this.$$c?.[a];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
|
-
|
|
457
|
+
s, s;
|
|
458
458
|
}
|
|
459
459
|
class yr {
|
|
460
460
|
/**
|
|
@@ -475,7 +475,7 @@ class yr {
|
|
|
475
475
|
$$set = void 0;
|
|
476
476
|
/** @returns {void} */
|
|
477
477
|
$destroy() {
|
|
478
|
-
dr(this, 1), this.$destroy =
|
|
478
|
+
dr(this, 1), this.$destroy = B;
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
481
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -485,7 +485,7 @@ class yr {
|
|
|
485
485
|
*/
|
|
486
486
|
$on(t, r) {
|
|
487
487
|
if (!Ve(r))
|
|
488
|
-
return
|
|
488
|
+
return B;
|
|
489
489
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
490
490
|
return n.push(r), () => {
|
|
491
491
|
const i = n.indexOf(r);
|
|
@@ -527,66 +527,66 @@ function xr(e, t, r) {
|
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const R = [];
|
|
531
531
|
function Tr(e, t) {
|
|
532
532
|
return {
|
|
533
533
|
subscribe: xe(e, t).subscribe
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
|
-
function xe(e, t =
|
|
536
|
+
function xe(e, t = B) {
|
|
537
537
|
let r;
|
|
538
538
|
const n = /* @__PURE__ */ new Set();
|
|
539
|
-
function i(
|
|
540
|
-
if (
|
|
541
|
-
const h = !
|
|
539
|
+
function i(a) {
|
|
540
|
+
if (Et(e, a) && (e = a, r)) {
|
|
541
|
+
const h = !R.length;
|
|
542
542
|
for (const u of n)
|
|
543
|
-
u[1](),
|
|
543
|
+
u[1](), R.push(u, e);
|
|
544
544
|
if (h) {
|
|
545
|
-
for (let u = 0; u <
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
for (let u = 0; u < R.length; u += 2)
|
|
546
|
+
R[u][0](R[u + 1]);
|
|
547
|
+
R.length = 0;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function o(
|
|
552
|
-
i(
|
|
551
|
+
function o(a) {
|
|
552
|
+
i(a(e));
|
|
553
553
|
}
|
|
554
|
-
function a
|
|
555
|
-
const u = [
|
|
556
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
554
|
+
function s(a, h = B) {
|
|
555
|
+
const u = [a, h];
|
|
556
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
|
|
557
557
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
return { set: i, update: o, subscribe:
|
|
560
|
+
return { set: i, update: o, subscribe: s };
|
|
561
561
|
}
|
|
562
562
|
function X(e, t, r) {
|
|
563
563
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
564
564
|
if (!i.every(Boolean))
|
|
565
565
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
566
566
|
const o = t.length < 2;
|
|
567
|
-
return Tr(r, (
|
|
567
|
+
return Tr(r, (s, a) => {
|
|
568
568
|
let h = !1;
|
|
569
569
|
const u = [];
|
|
570
|
-
let l = 0, f =
|
|
571
|
-
const
|
|
570
|
+
let l = 0, f = B;
|
|
571
|
+
const m = () => {
|
|
572
572
|
if (l)
|
|
573
573
|
return;
|
|
574
574
|
f();
|
|
575
|
-
const
|
|
576
|
-
o ?
|
|
577
|
-
},
|
|
578
|
-
(
|
|
579
|
-
|
|
575
|
+
const p = t(n ? u[0] : u, s, a);
|
|
576
|
+
o ? s(p) : f = Ve(p) ? p : B;
|
|
577
|
+
}, d = i.map(
|
|
578
|
+
(p, v) => vt(
|
|
579
|
+
p,
|
|
580
580
|
(T) => {
|
|
581
|
-
u[
|
|
581
|
+
u[v] = T, l &= ~(1 << v), h && m();
|
|
582
582
|
},
|
|
583
583
|
() => {
|
|
584
|
-
l |= 1 <<
|
|
584
|
+
l |= 1 << v;
|
|
585
585
|
}
|
|
586
586
|
)
|
|
587
587
|
);
|
|
588
|
-
return h = !0,
|
|
589
|
-
te(
|
|
588
|
+
return h = !0, m(), function() {
|
|
589
|
+
te(d), f(), h = !1;
|
|
590
590
|
};
|
|
591
591
|
});
|
|
592
592
|
}
|
|
@@ -611,7 +611,7 @@ function Ir(e) {
|
|
|
611
611
|
return Array.isArray(e) ? [] : {};
|
|
612
612
|
}
|
|
613
613
|
function K(e, t) {
|
|
614
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
614
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Ir(e), e, t) : e;
|
|
615
615
|
}
|
|
616
616
|
function Cr(e, t, r) {
|
|
617
617
|
return e.concat(t).map(function(n) {
|
|
@@ -620,16 +620,16 @@ function Cr(e, t, r) {
|
|
|
620
620
|
}
|
|
621
621
|
function Nr(e, t) {
|
|
622
622
|
if (!t.customMerge)
|
|
623
|
-
return
|
|
623
|
+
return k;
|
|
624
624
|
var r = t.customMerge(e);
|
|
625
|
-
return typeof r == "function" ? r :
|
|
625
|
+
return typeof r == "function" ? r : k;
|
|
626
626
|
}
|
|
627
627
|
function Lr(e) {
|
|
628
628
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
629
629
|
return Object.propertyIsEnumerable.call(e, t);
|
|
630
630
|
}) : [];
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Ye(e) {
|
|
633
633
|
return Object.keys(e).concat(Lr(e));
|
|
634
634
|
}
|
|
635
635
|
function wt(e, t) {
|
|
@@ -644,25 +644,25 @@ function Mr(e, t) {
|
|
|
644
644
|
}
|
|
645
645
|
function $r(e, t, r) {
|
|
646
646
|
var n = {};
|
|
647
|
-
return r.isMergeableObject(e) &&
|
|
647
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
648
648
|
n[i] = K(e[i], r);
|
|
649
|
-
}),
|
|
649
|
+
}), Ye(t).forEach(function(i) {
|
|
650
650
|
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
651
651
|
}), n;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function k(e, t, r) {
|
|
654
654
|
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = K;
|
|
655
655
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
656
656
|
return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
k.all = function(t, r) {
|
|
659
659
|
if (!Array.isArray(t))
|
|
660
660
|
throw new Error("first argument should be an array");
|
|
661
661
|
return t.reduce(function(n, i) {
|
|
662
|
-
return
|
|
662
|
+
return k(n, i, r);
|
|
663
663
|
}, {});
|
|
664
664
|
};
|
|
665
|
-
var Rr =
|
|
665
|
+
var Rr = k, Dr = Rr;
|
|
666
666
|
const Ur = /* @__PURE__ */ Hr(Dr);
|
|
667
667
|
var Re = function(e, t) {
|
|
668
668
|
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
@@ -681,15 +681,15 @@ function Te(e, t) {
|
|
|
681
681
|
}
|
|
682
682
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
683
683
|
}
|
|
684
|
-
var
|
|
685
|
-
return
|
|
684
|
+
var w = function() {
|
|
685
|
+
return w = Object.assign || function(t) {
|
|
686
686
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
687
687
|
r = arguments[n];
|
|
688
688
|
for (var o in r)
|
|
689
689
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
690
690
|
}
|
|
691
691
|
return t;
|
|
692
|
-
},
|
|
692
|
+
}, w.apply(this, arguments);
|
|
693
693
|
};
|
|
694
694
|
function Gr(e, t) {
|
|
695
695
|
var r = {};
|
|
@@ -754,60 +754,60 @@ var Vr = function() {
|
|
|
754
754
|
}
|
|
755
755
|
}, Oe = {
|
|
756
756
|
variadic: zr
|
|
757
|
-
},
|
|
758
|
-
return
|
|
757
|
+
}, ge = function() {
|
|
758
|
+
return ge = Object.assign || function(t) {
|
|
759
759
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
760
760
|
r = arguments[n];
|
|
761
761
|
for (var o in r)
|
|
762
762
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
763
763
|
}
|
|
764
764
|
return t;
|
|
765
|
-
},
|
|
765
|
+
}, ge.apply(this, arguments);
|
|
766
766
|
};
|
|
767
767
|
var b;
|
|
768
768
|
(function(e) {
|
|
769
769
|
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";
|
|
770
770
|
})(b || (b = {}));
|
|
771
|
-
var
|
|
771
|
+
var _;
|
|
772
772
|
(function(e) {
|
|
773
773
|
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";
|
|
774
|
-
})(
|
|
775
|
-
var
|
|
774
|
+
})(_ || (_ = {}));
|
|
775
|
+
var F;
|
|
776
776
|
(function(e) {
|
|
777
777
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
778
|
-
})(
|
|
779
|
-
function
|
|
780
|
-
return e.type ===
|
|
778
|
+
})(F || (F = {}));
|
|
779
|
+
function Ke(e) {
|
|
780
|
+
return e.type === _.literal;
|
|
781
781
|
}
|
|
782
782
|
function Zr(e) {
|
|
783
|
-
return e.type ===
|
|
783
|
+
return e.type === _.argument;
|
|
784
784
|
}
|
|
785
785
|
function At(e) {
|
|
786
|
-
return e.type ===
|
|
786
|
+
return e.type === _.number;
|
|
787
787
|
}
|
|
788
788
|
function Pt(e) {
|
|
789
|
-
return e.type ===
|
|
789
|
+
return e.type === _.date;
|
|
790
790
|
}
|
|
791
791
|
function Ot(e) {
|
|
792
|
-
return e.type ===
|
|
792
|
+
return e.type === _.time;
|
|
793
793
|
}
|
|
794
794
|
function It(e) {
|
|
795
|
-
return e.type ===
|
|
795
|
+
return e.type === _.select;
|
|
796
796
|
}
|
|
797
797
|
function Ct(e) {
|
|
798
|
-
return e.type ===
|
|
798
|
+
return e.type === _.plural;
|
|
799
799
|
}
|
|
800
800
|
function Jr(e) {
|
|
801
|
-
return e.type ===
|
|
801
|
+
return e.type === _.pound;
|
|
802
802
|
}
|
|
803
803
|
function Nt(e) {
|
|
804
|
-
return e.type ===
|
|
804
|
+
return e.type === _.tag;
|
|
805
805
|
}
|
|
806
806
|
function Lt(e) {
|
|
807
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
807
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
808
808
|
}
|
|
809
809
|
function De(e) {
|
|
810
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
810
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
811
811
|
}
|
|
812
812
|
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
|
|
813
813
|
function Qr(e) {
|
|
@@ -901,40 +901,40 @@ function Qr(e) {
|
|
|
901
901
|
return "";
|
|
902
902
|
}), t;
|
|
903
903
|
}
|
|
904
|
-
var
|
|
905
|
-
return
|
|
904
|
+
var E = function() {
|
|
905
|
+
return E = Object.assign || function(t) {
|
|
906
906
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
907
907
|
r = arguments[n];
|
|
908
908
|
for (var o in r)
|
|
909
909
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
910
910
|
}
|
|
911
911
|
return t;
|
|
912
|
-
},
|
|
912
|
+
}, E.apply(this, arguments);
|
|
913
913
|
};
|
|
914
914
|
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
915
915
|
function Kr(e) {
|
|
916
916
|
if (e.length === 0)
|
|
917
917
|
throw new Error("Number skeleton cannot be empty");
|
|
918
|
-
for (var t = e.split(Yr).filter(function(
|
|
919
|
-
return
|
|
918
|
+
for (var t = e.split(Yr).filter(function(m) {
|
|
919
|
+
return m.length > 0;
|
|
920
920
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
921
|
-
var o = i[n],
|
|
922
|
-
if (
|
|
921
|
+
var o = i[n], s = o.split("/");
|
|
922
|
+
if (s.length === 0)
|
|
923
923
|
throw new Error("Invalid number skeleton");
|
|
924
|
-
for (var
|
|
924
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
925
925
|
var f = l[u];
|
|
926
926
|
if (f.length === 0)
|
|
927
927
|
throw new Error("Invalid number skeleton");
|
|
928
928
|
}
|
|
929
|
-
r.push({ stem:
|
|
929
|
+
r.push({ stem: a, options: h });
|
|
930
930
|
}
|
|
931
931
|
return r;
|
|
932
932
|
}
|
|
933
933
|
function en(e) {
|
|
934
934
|
return e.replace(/^(.*?)-/, "");
|
|
935
935
|
}
|
|
936
|
-
var
|
|
937
|
-
function
|
|
936
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
937
|
+
function tt(e) {
|
|
938
938
|
var t = {};
|
|
939
939
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
940
940
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -994,7 +994,7 @@ function rn(e) {
|
|
|
994
994
|
}
|
|
995
995
|
return t;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function rt(e) {
|
|
998
998
|
var t = {}, r = Dt(e);
|
|
999
999
|
return r || t;
|
|
1000
1000
|
}
|
|
@@ -1033,13 +1033,13 @@ function nn(e) {
|
|
|
1033
1033
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1034
1034
|
continue;
|
|
1035
1035
|
case "scientific":
|
|
1036
|
-
t =
|
|
1037
|
-
return
|
|
1036
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1037
|
+
return E(E({}, h), rt(u));
|
|
1038
1038
|
}, {}));
|
|
1039
1039
|
continue;
|
|
1040
1040
|
case "engineering":
|
|
1041
|
-
t =
|
|
1042
|
-
return
|
|
1041
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1042
|
+
return E(E({}, h), rt(u));
|
|
1043
1043
|
}, {}));
|
|
1044
1044
|
continue;
|
|
1045
1045
|
case "notation-simple":
|
|
@@ -1084,13 +1084,13 @@ function nn(e) {
|
|
|
1084
1084
|
case "integer-width":
|
|
1085
1085
|
if (i.options.length > 1)
|
|
1086
1086
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1087
|
-
i.options[0].replace(tn, function(h, u, l, f,
|
|
1087
|
+
i.options[0].replace(tn, function(h, u, l, f, m, d) {
|
|
1088
1088
|
if (u)
|
|
1089
1089
|
t.minimumIntegerDigits = l.length;
|
|
1090
1090
|
else {
|
|
1091
|
-
if (f &&
|
|
1091
|
+
if (f && m)
|
|
1092
1092
|
throw new Error("We currently do not support maximum integer digits");
|
|
1093
|
-
if (
|
|
1093
|
+
if (d)
|
|
1094
1094
|
throw new Error("We currently do not support exact integer digits");
|
|
1095
1095
|
}
|
|
1096
1096
|
return "";
|
|
@@ -1101,28 +1101,28 @@ function nn(e) {
|
|
|
1101
1101
|
t.minimumIntegerDigits = i.stem.length;
|
|
1102
1102
|
continue;
|
|
1103
1103
|
}
|
|
1104
|
-
if (
|
|
1104
|
+
if (et.test(i.stem)) {
|
|
1105
1105
|
if (i.options.length > 1)
|
|
1106
1106
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1107
|
-
i.stem.replace(
|
|
1108
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length :
|
|
1107
|
+
i.stem.replace(et, function(h, u, l, f, m, d) {
|
|
1108
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1109
1109
|
});
|
|
1110
1110
|
var o = i.options[0];
|
|
1111
|
-
o === "w" ? t =
|
|
1111
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), tt(o)));
|
|
1112
1112
|
continue;
|
|
1113
1113
|
}
|
|
1114
1114
|
if ($t.test(i.stem)) {
|
|
1115
|
-
t =
|
|
1115
|
+
t = E(E({}, t), tt(i.stem));
|
|
1116
1116
|
continue;
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1118
|
+
var s = Dt(i.stem);
|
|
1119
|
+
s && (t = E(E({}, t), s));
|
|
1120
|
+
var a = rn(i.stem);
|
|
1121
|
+
a && (t = E(E({}, t), a));
|
|
1122
1122
|
}
|
|
1123
1123
|
return t;
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var fe = {
|
|
1126
1126
|
"001": [
|
|
1127
1127
|
"H",
|
|
1128
1128
|
"h"
|
|
@@ -2543,17 +2543,17 @@ function on(e, t) {
|
|
|
2543
2543
|
if (i === "j") {
|
|
2544
2544
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2545
2545
|
o++, n++;
|
|
2546
|
-
var
|
|
2547
|
-
for ((u == "H" || u == "k") && (
|
|
2546
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = sn(t);
|
|
2547
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2548
2548
|
r += h;
|
|
2549
|
-
for (;
|
|
2549
|
+
for (; s-- > 0; )
|
|
2550
2550
|
r = u + r;
|
|
2551
2551
|
} else
|
|
2552
2552
|
i === "J" ? r += "H" : r += i;
|
|
2553
2553
|
}
|
|
2554
2554
|
return r;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function sn(e) {
|
|
2557
2557
|
var t = e.hourCycle;
|
|
2558
2558
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2559
2559
|
e.hourCycles && // @ts-ignore
|
|
@@ -2572,11 +2572,11 @@ function an(e) {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
var r = e.language, n;
|
|
2574
2574
|
r !== "root" && (n = e.maximize().region);
|
|
2575
|
-
var i =
|
|
2575
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2576
2576
|
return i[0];
|
|
2577
2577
|
}
|
|
2578
|
-
var Ie,
|
|
2579
|
-
function
|
|
2578
|
+
var Ie, an = new RegExp("^".concat(Mt.source, "*")), un = new RegExp("".concat(Mt.source, "*$"));
|
|
2579
|
+
function y(e, t) {
|
|
2580
2580
|
return { start: e, end: t };
|
|
2581
2581
|
}
|
|
2582
2582
|
var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
|
|
@@ -2588,7 +2588,7 @@ try {
|
|
|
2588
2588
|
} catch {
|
|
2589
2589
|
Ue = !1;
|
|
2590
2590
|
}
|
|
2591
|
-
var
|
|
2591
|
+
var nt = ln ? (
|
|
2592
2592
|
// Native
|
|
2593
2593
|
function(t, r, n) {
|
|
2594
2594
|
return t.startsWith(r, n);
|
|
@@ -2603,21 +2603,21 @@ var it = ln ? (
|
|
|
2603
2603
|
function() {
|
|
2604
2604
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2605
2605
|
t[r] = arguments[r];
|
|
2606
|
-
for (var n = "", i = t.length, o = 0,
|
|
2607
|
-
if (
|
|
2608
|
-
throw RangeError(
|
|
2609
|
-
n +=
|
|
2606
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2607
|
+
if (s = t[o++], s > 1114111)
|
|
2608
|
+
throw RangeError(s + " is not a valid code point");
|
|
2609
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2610
2610
|
}
|
|
2611
2611
|
return n;
|
|
2612
2612
|
}
|
|
2613
|
-
),
|
|
2613
|
+
), it = (
|
|
2614
2614
|
// native
|
|
2615
2615
|
cn ? Object.fromEntries : (
|
|
2616
2616
|
// Ponyfill
|
|
2617
2617
|
function(t) {
|
|
2618
2618
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2619
|
-
var o = i[n],
|
|
2620
|
-
r[
|
|
2619
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2620
|
+
r[s] = a;
|
|
2621
2621
|
}
|
|
2622
2622
|
return r;
|
|
2623
2623
|
}
|
|
@@ -2644,7 +2644,7 @@ var it = ln ? (
|
|
|
2644
2644
|
) : (
|
|
2645
2645
|
// Ponyfill
|
|
2646
2646
|
function(t) {
|
|
2647
|
-
return t.replace(
|
|
2647
|
+
return t.replace(an, "");
|
|
2648
2648
|
}
|
|
2649
2649
|
), _n = dn ? (
|
|
2650
2650
|
// Native
|
|
@@ -2662,11 +2662,11 @@ function Gt(e, t) {
|
|
|
2662
2662
|
}
|
|
2663
2663
|
var ke;
|
|
2664
2664
|
if (Ue) {
|
|
2665
|
-
var
|
|
2665
|
+
var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2666
2666
|
ke = function(t, r) {
|
|
2667
2667
|
var n;
|
|
2668
|
-
|
|
2669
|
-
var i =
|
|
2668
|
+
ot.lastIndex = r;
|
|
2669
|
+
var i = ot.exec(t);
|
|
2670
2670
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2671
2671
|
};
|
|
2672
2672
|
} else
|
|
@@ -2693,33 +2693,33 @@ var En = (
|
|
|
2693
2693
|
for (var i = []; !this.isEOF(); ) {
|
|
2694
2694
|
var o = this.char();
|
|
2695
2695
|
if (o === 123) {
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2698
|
-
return
|
|
2699
|
-
i.push(
|
|
2696
|
+
var s = this.parseArgument(t, n);
|
|
2697
|
+
if (s.err)
|
|
2698
|
+
return s;
|
|
2699
|
+
i.push(s.val);
|
|
2700
2700
|
} else {
|
|
2701
2701
|
if (o === 125 && t > 0)
|
|
2702
2702
|
break;
|
|
2703
2703
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2704
|
-
var
|
|
2704
|
+
var a = this.clonePosition();
|
|
2705
2705
|
this.bump(), i.push({
|
|
2706
|
-
type:
|
|
2707
|
-
location:
|
|
2706
|
+
type: _.pound,
|
|
2707
|
+
location: y(a, this.clonePosition())
|
|
2708
2708
|
});
|
|
2709
2709
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2710
2710
|
if (n)
|
|
2711
2711
|
break;
|
|
2712
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
2712
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2713
2713
|
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2714
|
-
var
|
|
2715
|
-
if (
|
|
2716
|
-
return
|
|
2717
|
-
i.push(
|
|
2714
|
+
var s = this.parseTag(t, r);
|
|
2715
|
+
if (s.err)
|
|
2716
|
+
return s;
|
|
2717
|
+
i.push(s.val);
|
|
2718
2718
|
} else {
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
return
|
|
2722
|
-
i.push(
|
|
2719
|
+
var s = this.parseLiteral(t, r);
|
|
2720
|
+
if (s.err)
|
|
2721
|
+
return s;
|
|
2722
|
+
i.push(s.val);
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
@@ -2731,9 +2731,9 @@ var En = (
|
|
|
2731
2731
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2732
2732
|
return {
|
|
2733
2733
|
val: {
|
|
2734
|
-
type:
|
|
2734
|
+
type: _.literal,
|
|
2735
2735
|
value: "<".concat(i, "/>"),
|
|
2736
|
-
location:
|
|
2736
|
+
location: y(n, this.clonePosition())
|
|
2737
2737
|
},
|
|
2738
2738
|
err: null
|
|
2739
2739
|
};
|
|
@@ -2741,24 +2741,24 @@ var En = (
|
|
|
2741
2741
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2742
2742
|
if (o.err)
|
|
2743
2743
|
return o;
|
|
2744
|
-
var
|
|
2744
|
+
var s = o.val, a = this.clonePosition();
|
|
2745
2745
|
if (this.bumpIf("</")) {
|
|
2746
2746
|
if (this.isEOF() || !Fe(this.char()))
|
|
2747
|
-
return this.error(b.INVALID_TAG,
|
|
2747
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
2748
2748
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2749
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
2749
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2750
2750
|
val: {
|
|
2751
|
-
type:
|
|
2751
|
+
type: _.tag,
|
|
2752
2752
|
value: i,
|
|
2753
|
-
children:
|
|
2754
|
-
location:
|
|
2753
|
+
children: s,
|
|
2754
|
+
location: y(n, this.clonePosition())
|
|
2755
2755
|
},
|
|
2756
2756
|
err: null
|
|
2757
|
-
} : this.error(b.INVALID_TAG,
|
|
2757
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
2758
2758
|
} else
|
|
2759
|
-
return this.error(b.UNCLOSED_TAG,
|
|
2759
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2760
2760
|
} else
|
|
2761
|
-
return this.error(b.INVALID_TAG,
|
|
2761
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2762
2762
|
}, e.prototype.parseTagName = function() {
|
|
2763
2763
|
var t = this.offset();
|
|
2764
2764
|
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
@@ -2771,21 +2771,21 @@ var En = (
|
|
|
2771
2771
|
i += o;
|
|
2772
2772
|
continue;
|
|
2773
2773
|
}
|
|
2774
|
-
var
|
|
2775
|
-
if (a) {
|
|
2776
|
-
i += a;
|
|
2777
|
-
continue;
|
|
2778
|
-
}
|
|
2779
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2774
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2780
2775
|
if (s) {
|
|
2781
2776
|
i += s;
|
|
2782
2777
|
continue;
|
|
2783
2778
|
}
|
|
2779
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2780
|
+
if (a) {
|
|
2781
|
+
i += a;
|
|
2782
|
+
continue;
|
|
2783
|
+
}
|
|
2784
2784
|
break;
|
|
2785
2785
|
}
|
|
2786
|
-
var h =
|
|
2786
|
+
var h = y(n, this.clonePosition());
|
|
2787
2787
|
return {
|
|
2788
|
-
val: { type:
|
|
2788
|
+
val: { type: _.literal, value: i, location: h },
|
|
2789
2789
|
err: null
|
|
2790
2790
|
};
|
|
2791
2791
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2833,40 +2833,40 @@ var En = (
|
|
|
2833
2833
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2834
2834
|
var n = this.clonePosition();
|
|
2835
2835
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2836
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2836
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2837
2837
|
if (this.char() === 125)
|
|
2838
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
2838
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2839
2839
|
var i = this.parseIdentifierIfPossible().value;
|
|
2840
2840
|
if (!i)
|
|
2841
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
2841
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2842
2842
|
if (this.bumpSpace(), this.isEOF())
|
|
2843
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2843
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2844
2844
|
switch (this.char()) {
|
|
2845
2845
|
case 125:
|
|
2846
2846
|
return this.bump(), {
|
|
2847
2847
|
val: {
|
|
2848
|
-
type:
|
|
2848
|
+
type: _.argument,
|
|
2849
2849
|
// value does not include the opening and closing braces.
|
|
2850
2850
|
value: i,
|
|
2851
|
-
location:
|
|
2851
|
+
location: y(n, this.clonePosition())
|
|
2852
2852
|
},
|
|
2853
2853
|
err: null
|
|
2854
2854
|
};
|
|
2855
2855
|
case 44:
|
|
2856
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2856
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2857
2857
|
default:
|
|
2858
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
2858
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2859
2859
|
}
|
|
2860
2860
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2861
2861
|
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
2862
2862
|
this.bumpTo(i);
|
|
2863
|
-
var o = this.clonePosition(),
|
|
2864
|
-
return { value: n, location:
|
|
2863
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
2864
|
+
return { value: n, location: s };
|
|
2865
2865
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2866
|
-
var o,
|
|
2867
|
-
switch (
|
|
2866
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2867
|
+
switch (a) {
|
|
2868
2868
|
case "":
|
|
2869
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
2869
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
|
|
2870
2870
|
case "number":
|
|
2871
2871
|
case "date":
|
|
2872
2872
|
case "time": {
|
|
@@ -2877,46 +2877,46 @@ var En = (
|
|
|
2877
2877
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2878
2878
|
if (f.err)
|
|
2879
2879
|
return f;
|
|
2880
|
-
var
|
|
2881
|
-
if (
|
|
2882
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
2883
|
-
var
|
|
2884
|
-
u = { style:
|
|
2880
|
+
var m = _n(f.val);
|
|
2881
|
+
if (m.length === 0)
|
|
2882
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2883
|
+
var d = y(l, this.clonePosition());
|
|
2884
|
+
u = { style: m, styleLocation: d };
|
|
2885
2885
|
}
|
|
2886
|
-
var
|
|
2887
|
-
if (
|
|
2888
|
-
return
|
|
2889
|
-
var
|
|
2890
|
-
if (u &&
|
|
2886
|
+
var p = this.tryParseArgumentClose(i);
|
|
2887
|
+
if (p.err)
|
|
2888
|
+
return p;
|
|
2889
|
+
var v = y(i, this.clonePosition());
|
|
2890
|
+
if (u && nt(u?.style, "::", 0)) {
|
|
2891
2891
|
var T = yn(u.style.slice(2));
|
|
2892
|
-
if (
|
|
2892
|
+
if (a === "number") {
|
|
2893
2893
|
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2894
2894
|
return f.err ? f : {
|
|
2895
|
-
val: { type:
|
|
2895
|
+
val: { type: _.number, value: n, location: v, style: f.val },
|
|
2896
2896
|
err: null
|
|
2897
2897
|
};
|
|
2898
2898
|
} else {
|
|
2899
2899
|
if (T.length === 0)
|
|
2900
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
2901
|
-
var
|
|
2902
|
-
this.locale && (
|
|
2903
|
-
var
|
|
2904
|
-
type:
|
|
2905
|
-
pattern:
|
|
2900
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
2901
|
+
var x = T;
|
|
2902
|
+
this.locale && (x = on(T, this.locale));
|
|
2903
|
+
var m = {
|
|
2904
|
+
type: F.dateTime,
|
|
2905
|
+
pattern: x,
|
|
2906
2906
|
location: u.styleLocation,
|
|
2907
|
-
parsedOptions: this.shouldParseSkeletons ? Qr(
|
|
2908
|
-
},
|
|
2907
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(x) : {}
|
|
2908
|
+
}, c = a === "date" ? _.date : _.time;
|
|
2909
2909
|
return {
|
|
2910
|
-
val: { type:
|
|
2910
|
+
val: { type: c, value: n, location: v, style: m },
|
|
2911
2911
|
err: null
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
return {
|
|
2916
2916
|
val: {
|
|
2917
|
-
type:
|
|
2917
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
2918
2918
|
value: n,
|
|
2919
|
-
location:
|
|
2919
|
+
location: v,
|
|
2920
2920
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2921
2921
|
},
|
|
2922
2922
|
err: null
|
|
@@ -2925,52 +2925,52 @@ var En = (
|
|
|
2925
2925
|
case "plural":
|
|
2926
2926
|
case "selectordinal":
|
|
2927
2927
|
case "select": {
|
|
2928
|
-
var
|
|
2928
|
+
var g = this.clonePosition();
|
|
2929
2929
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2930
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g
|
|
2930
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ge({}, g)));
|
|
2931
2931
|
this.bumpSpace();
|
|
2932
|
-
var
|
|
2933
|
-
if (
|
|
2932
|
+
var A = this.parseIdentifierIfPossible(), N = 0;
|
|
2933
|
+
if (a !== "select" && A.value === "offset") {
|
|
2934
2934
|
if (!this.bumpIf(":"))
|
|
2935
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2935
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2936
2936
|
this.bumpSpace();
|
|
2937
2937
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2938
2938
|
if (f.err)
|
|
2939
2939
|
return f;
|
|
2940
|
-
this.bumpSpace(),
|
|
2940
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), N = f.val;
|
|
2941
2941
|
}
|
|
2942
|
-
var
|
|
2943
|
-
if (
|
|
2944
|
-
return
|
|
2945
|
-
var
|
|
2946
|
-
if (
|
|
2947
|
-
return
|
|
2948
|
-
var
|
|
2949
|
-
return
|
|
2942
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, A);
|
|
2943
|
+
if (ie.err)
|
|
2944
|
+
return ie;
|
|
2945
|
+
var p = this.tryParseArgumentClose(i);
|
|
2946
|
+
if (p.err)
|
|
2947
|
+
return p;
|
|
2948
|
+
var Ze = y(i, this.clonePosition());
|
|
2949
|
+
return a === "select" ? {
|
|
2950
2950
|
val: {
|
|
2951
|
-
type:
|
|
2951
|
+
type: _.select,
|
|
2952
2952
|
value: n,
|
|
2953
|
-
options:
|
|
2954
|
-
location:
|
|
2953
|
+
options: it(ie.val),
|
|
2954
|
+
location: Ze
|
|
2955
2955
|
},
|
|
2956
2956
|
err: null
|
|
2957
2957
|
} : {
|
|
2958
2958
|
val: {
|
|
2959
|
-
type:
|
|
2959
|
+
type: _.plural,
|
|
2960
2960
|
value: n,
|
|
2961
|
-
options:
|
|
2962
|
-
offset:
|
|
2963
|
-
pluralType:
|
|
2964
|
-
location:
|
|
2961
|
+
options: it(ie.val),
|
|
2962
|
+
offset: N,
|
|
2963
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2964
|
+
location: Ze
|
|
2965
2965
|
},
|
|
2966
2966
|
err: null
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
2969
|
default:
|
|
2970
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
2970
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
|
|
2971
2971
|
}
|
|
2972
2972
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2973
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2973
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2974
2974
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2975
2975
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2976
2976
|
var n = this.char();
|
|
@@ -2979,7 +2979,7 @@ var En = (
|
|
|
2979
2979
|
this.bump();
|
|
2980
2980
|
var i = this.clonePosition();
|
|
2981
2981
|
if (!this.bumpUntil("'"))
|
|
2982
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2982
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2983
2983
|
this.bump();
|
|
2984
2984
|
break;
|
|
2985
2985
|
}
|
|
@@ -3015,7 +3015,7 @@ var En = (
|
|
|
3015
3015
|
}
|
|
3016
3016
|
return {
|
|
3017
3017
|
val: {
|
|
3018
|
-
type:
|
|
3018
|
+
type: F.number,
|
|
3019
3019
|
tokens: n,
|
|
3020
3020
|
location: r,
|
|
3021
3021
|
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
@@ -3023,50 +3023,50 @@ var En = (
|
|
|
3023
3023
|
err: null
|
|
3024
3024
|
};
|
|
3025
3025
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3026
|
-
for (var o,
|
|
3026
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3027
3027
|
if (u.length === 0) {
|
|
3028
3028
|
var f = this.clonePosition();
|
|
3029
3029
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3030
|
-
var
|
|
3031
|
-
if (
|
|
3032
|
-
return
|
|
3033
|
-
l =
|
|
3030
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3031
|
+
if (m.err)
|
|
3032
|
+
return m;
|
|
3033
|
+
l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3034
3034
|
} else
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
3037
|
if (h.has(u))
|
|
3038
3038
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3039
|
-
u === "other" && (
|
|
3040
|
-
var
|
|
3039
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3040
|
+
var d = this.clonePosition();
|
|
3041
3041
|
if (!this.bumpIf("{"))
|
|
3042
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3043
|
-
var
|
|
3044
|
-
if (
|
|
3045
|
-
return
|
|
3046
|
-
var
|
|
3047
|
-
if (
|
|
3048
|
-
return
|
|
3049
|
-
|
|
3042
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3043
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3044
|
+
if (p.err)
|
|
3045
|
+
return p;
|
|
3046
|
+
var v = this.tryParseArgumentClose(d);
|
|
3047
|
+
if (v.err)
|
|
3048
|
+
return v;
|
|
3049
|
+
a.push([
|
|
3050
3050
|
u,
|
|
3051
3051
|
{
|
|
3052
|
-
value:
|
|
3053
|
-
location:
|
|
3052
|
+
value: p.val,
|
|
3053
|
+
location: y(d, this.clonePosition())
|
|
3054
3054
|
}
|
|
3055
3055
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3056
3056
|
}
|
|
3057
|
-
return
|
|
3057
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3058
3058
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3059
3059
|
var n = 1, i = this.clonePosition();
|
|
3060
3060
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3061
|
-
for (var o = !1,
|
|
3062
|
-
var
|
|
3063
|
-
if (
|
|
3064
|
-
o = !0,
|
|
3061
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3062
|
+
var a = this.char();
|
|
3063
|
+
if (a >= 48 && a <= 57)
|
|
3064
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3065
3065
|
else
|
|
3066
3066
|
break;
|
|
3067
3067
|
}
|
|
3068
|
-
var h =
|
|
3069
|
-
return o ? (
|
|
3068
|
+
var h = y(i, this.clonePosition());
|
|
3069
|
+
return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3070
3070
|
}, e.prototype.offset = function() {
|
|
3071
3071
|
return this.position.offset;
|
|
3072
3072
|
}, e.prototype.isEOF = function() {
|
|
@@ -3100,7 +3100,7 @@ var En = (
|
|
|
3100
3100
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3101
3101
|
}
|
|
3102
3102
|
}, e.prototype.bumpIf = function(t) {
|
|
3103
|
-
if (
|
|
3103
|
+
if (nt(this.message, t, this.offset())) {
|
|
3104
3104
|
for (var r = 0; r < t.length; r++)
|
|
3105
3105
|
this.bump();
|
|
3106
3106
|
return !0;
|
|
@@ -3157,7 +3157,7 @@ function je(e) {
|
|
|
3157
3157
|
});
|
|
3158
3158
|
}
|
|
3159
3159
|
function Hn(e, t) {
|
|
3160
|
-
t === void 0 && (t = {}), t =
|
|
3160
|
+
t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3161
3161
|
var r = new En(e, t).parse();
|
|
3162
3162
|
if (r.err) {
|
|
3163
3163
|
var n = SyntaxError(b[r.err.kind]);
|
|
@@ -3165,10 +3165,10 @@ function Hn(e, t) {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
return t?.captureLocation || je(r.val), r.val;
|
|
3167
3167
|
}
|
|
3168
|
-
var
|
|
3168
|
+
var j;
|
|
3169
3169
|
(function(e) {
|
|
3170
3170
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3171
|
-
})(
|
|
3171
|
+
})(j || (j = {}));
|
|
3172
3172
|
var He = (
|
|
3173
3173
|
/** @class */
|
|
3174
3174
|
function(e) {
|
|
@@ -3186,7 +3186,7 @@ var He = (
|
|
|
3186
3186
|
function(e) {
|
|
3187
3187
|
Te(t, e);
|
|
3188
3188
|
function t(r, n, i, o) {
|
|
3189
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3189
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3190
3190
|
}
|
|
3191
3191
|
return t;
|
|
3192
3192
|
}(He)
|
|
@@ -3195,7 +3195,7 @@ var He = (
|
|
|
3195
3195
|
function(e) {
|
|
3196
3196
|
Te(t, e);
|
|
3197
3197
|
function t(r, n, i) {
|
|
3198
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3198
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3199
3199
|
}
|
|
3200
3200
|
return t;
|
|
3201
3201
|
}(He)
|
|
@@ -3204,7 +3204,7 @@ var He = (
|
|
|
3204
3204
|
function(e) {
|
|
3205
3205
|
Te(t, e);
|
|
3206
3206
|
function t(r, n) {
|
|
3207
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3207
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3208
3208
|
}
|
|
3209
3209
|
return t;
|
|
3210
3210
|
}(He)
|
|
@@ -3221,25 +3221,25 @@ function Bn(e) {
|
|
|
3221
3221
|
function An(e) {
|
|
3222
3222
|
return typeof e == "function";
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3225
|
-
if (e.length === 1 &&
|
|
3224
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3225
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3226
3226
|
return [
|
|
3227
3227
|
{
|
|
3228
3228
|
type: H.literal,
|
|
3229
3229
|
value: e[0].value
|
|
3230
3230
|
}
|
|
3231
3231
|
];
|
|
3232
|
-
for (var
|
|
3232
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3233
3233
|
var l = u[h];
|
|
3234
|
-
if (
|
|
3235
|
-
|
|
3234
|
+
if (Ke(l)) {
|
|
3235
|
+
a.push({
|
|
3236
3236
|
type: H.literal,
|
|
3237
3237
|
value: l.value
|
|
3238
3238
|
});
|
|
3239
3239
|
continue;
|
|
3240
3240
|
}
|
|
3241
3241
|
if (Jr(l)) {
|
|
3242
|
-
typeof o == "number" &&
|
|
3242
|
+
typeof o == "number" && a.push({
|
|
3243
3243
|
type: H.literal,
|
|
3244
3244
|
value: r.getNumberFormat(t).format(o)
|
|
3245
3245
|
});
|
|
@@ -3247,87 +3247,87 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3247
3247
|
}
|
|
3248
3248
|
var f = l.value;
|
|
3249
3249
|
if (!(i && f in i))
|
|
3250
|
-
throw new Sn(f,
|
|
3251
|
-
var
|
|
3250
|
+
throw new Sn(f, s);
|
|
3251
|
+
var m = i[f];
|
|
3252
3252
|
if (Zr(l)) {
|
|
3253
|
-
(!
|
|
3254
|
-
type: typeof
|
|
3255
|
-
value:
|
|
3253
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3254
|
+
type: typeof m == "string" ? H.literal : H.object,
|
|
3255
|
+
value: m
|
|
3256
3256
|
});
|
|
3257
3257
|
continue;
|
|
3258
3258
|
}
|
|
3259
3259
|
if (Pt(l)) {
|
|
3260
|
-
var
|
|
3261
|
-
|
|
3260
|
+
var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3261
|
+
a.push({
|
|
3262
3262
|
type: H.literal,
|
|
3263
|
-
value: r.getDateTimeFormat(t,
|
|
3263
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3264
3264
|
});
|
|
3265
3265
|
continue;
|
|
3266
3266
|
}
|
|
3267
3267
|
if (Ot(l)) {
|
|
3268
|
-
var
|
|
3269
|
-
|
|
3268
|
+
var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3269
|
+
a.push({
|
|
3270
3270
|
type: H.literal,
|
|
3271
|
-
value: r.getDateTimeFormat(t,
|
|
3271
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3272
3272
|
});
|
|
3273
3273
|
continue;
|
|
3274
3274
|
}
|
|
3275
3275
|
if (At(l)) {
|
|
3276
|
-
var
|
|
3277
|
-
|
|
3276
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
|
|
3277
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3278
3278
|
type: H.literal,
|
|
3279
|
-
value: r.getNumberFormat(t,
|
|
3279
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3280
3280
|
});
|
|
3281
3281
|
continue;
|
|
3282
3282
|
}
|
|
3283
3283
|
if (Nt(l)) {
|
|
3284
|
-
var
|
|
3284
|
+
var p = l.children, v = l.value, T = i[v];
|
|
3285
3285
|
if (!An(T))
|
|
3286
|
-
throw new wn(
|
|
3287
|
-
var
|
|
3288
|
-
return
|
|
3286
|
+
throw new wn(v, "function", s);
|
|
3287
|
+
var x = pe(p, t, r, n, i, o), c = T(x.map(function(N) {
|
|
3288
|
+
return N.value;
|
|
3289
3289
|
}));
|
|
3290
|
-
Array.isArray(
|
|
3290
|
+
Array.isArray(c) || (c = [c]), a.push.apply(a, c.map(function(N) {
|
|
3291
3291
|
return {
|
|
3292
|
-
type: typeof
|
|
3293
|
-
value:
|
|
3292
|
+
type: typeof N == "string" ? H.literal : H.object,
|
|
3293
|
+
value: N
|
|
3294
3294
|
};
|
|
3295
3295
|
}));
|
|
3296
3296
|
}
|
|
3297
3297
|
if (It(l)) {
|
|
3298
|
-
var
|
|
3299
|
-
if (!
|
|
3300
|
-
throw new st(l.value,
|
|
3301
|
-
|
|
3298
|
+
var g = l.options[m] || l.options.other;
|
|
3299
|
+
if (!g)
|
|
3300
|
+
throw new st(l.value, m, Object.keys(l.options), s);
|
|
3301
|
+
a.push.apply(a, pe(g.value, t, r, n, i));
|
|
3302
3302
|
continue;
|
|
3303
3303
|
}
|
|
3304
3304
|
if (Ct(l)) {
|
|
3305
|
-
var
|
|
3306
|
-
if (!
|
|
3305
|
+
var g = l.options["=".concat(m)];
|
|
3306
|
+
if (!g) {
|
|
3307
3307
|
if (!Intl.PluralRules)
|
|
3308
3308
|
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3309
3309
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3310
|
-
`,
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3310
|
+
`, j.MISSING_INTL_API, s);
|
|
3311
|
+
var A = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
3312
|
+
g = l.options[A] || l.options.other;
|
|
3313
3313
|
}
|
|
3314
|
-
if (!
|
|
3315
|
-
throw new st(l.value,
|
|
3316
|
-
|
|
3314
|
+
if (!g)
|
|
3315
|
+
throw new st(l.value, m, Object.keys(l.options), s);
|
|
3316
|
+
a.push.apply(a, pe(g.value, t, r, n, i, m - (l.offset || 0)));
|
|
3317
3317
|
continue;
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
|
-
return Bn(
|
|
3320
|
+
return Bn(a);
|
|
3321
3321
|
}
|
|
3322
3322
|
function Pn(e, t) {
|
|
3323
|
-
return t ?
|
|
3324
|
-
return r[n] =
|
|
3323
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3324
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3325
3325
|
}, {})) : e;
|
|
3326
3326
|
}
|
|
3327
3327
|
function On(e, t) {
|
|
3328
3328
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3329
3329
|
return r[n] = Pn(e[n], t[n]), r;
|
|
3330
|
-
},
|
|
3330
|
+
}, w({}, e)) : e;
|
|
3331
3331
|
}
|
|
3332
3332
|
function Ce(e) {
|
|
3333
3333
|
return {
|
|
@@ -3389,12 +3389,12 @@ var Ft = (
|
|
|
3389
3389
|
var u = o.formatToParts(h);
|
|
3390
3390
|
if (u.length === 1)
|
|
3391
3391
|
return u[0].value;
|
|
3392
|
-
var l = u.reduce(function(f,
|
|
3393
|
-
return !f.length ||
|
|
3392
|
+
var l = u.reduce(function(f, m) {
|
|
3393
|
+
return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3394
3394
|
}, []);
|
|
3395
3395
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3396
3396
|
}, this.formatToParts = function(h) {
|
|
3397
|
-
return
|
|
3397
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3398
3398
|
}, this.resolvedOptions = function() {
|
|
3399
3399
|
var h;
|
|
3400
3400
|
return {
|
|
@@ -3405,10 +3405,10 @@ var Ft = (
|
|
|
3405
3405
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3406
3406
|
if (this.message = t, !e.__parse)
|
|
3407
3407
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3410
|
-
var
|
|
3411
|
-
this.ast = e.__parse(t,
|
|
3408
|
+
var s = i || {};
|
|
3409
|
+
s.formatters;
|
|
3410
|
+
var a = Gr(s, ["formatters"]);
|
|
3411
|
+
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3412
3412
|
} else
|
|
3413
3413
|
this.ast = t;
|
|
3414
3414
|
if (!Array.isArray(this.ast))
|
|
@@ -3508,25 +3508,25 @@ function Cn(e, t) {
|
|
|
3508
3508
|
n = void 0;
|
|
3509
3509
|
return n;
|
|
3510
3510
|
}
|
|
3511
|
-
const
|
|
3511
|
+
const O = {}, Nn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), jt = (e, t) => {
|
|
3512
3512
|
if (t == null)
|
|
3513
3513
|
return;
|
|
3514
|
-
if (t in
|
|
3515
|
-
return
|
|
3516
|
-
const r =
|
|
3514
|
+
if (t in O && e in O[t])
|
|
3515
|
+
return O[t][e];
|
|
3516
|
+
const r = ne(t);
|
|
3517
3517
|
for (let n = 0; n < r.length; n++) {
|
|
3518
3518
|
const i = r[n], o = Mn(i, e);
|
|
3519
3519
|
if (o)
|
|
3520
3520
|
return Nn(e, t, o);
|
|
3521
3521
|
}
|
|
3522
3522
|
};
|
|
3523
|
-
let
|
|
3524
|
-
const
|
|
3523
|
+
let Xe;
|
|
3524
|
+
const re = xe({});
|
|
3525
3525
|
function Ln(e) {
|
|
3526
|
-
return
|
|
3526
|
+
return Xe[e] || null;
|
|
3527
3527
|
}
|
|
3528
3528
|
function zt(e) {
|
|
3529
|
-
return e in
|
|
3529
|
+
return e in Xe;
|
|
3530
3530
|
}
|
|
3531
3531
|
function Mn(e, t) {
|
|
3532
3532
|
if (!zt(e))
|
|
@@ -3537,7 +3537,7 @@ function Mn(e, t) {
|
|
|
3537
3537
|
function $n(e) {
|
|
3538
3538
|
if (e == null)
|
|
3539
3539
|
return;
|
|
3540
|
-
const t =
|
|
3540
|
+
const t = ne(e);
|
|
3541
3541
|
for (let r = 0; r < t.length; r++) {
|
|
3542
3542
|
const n = t[r];
|
|
3543
3543
|
if (zt(n))
|
|
@@ -3545,28 +3545,28 @@ function $n(e) {
|
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
3547
|
function Vt(e, ...t) {
|
|
3548
|
-
delete
|
|
3548
|
+
delete O[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
|
|
3549
3549
|
}
|
|
3550
3550
|
X(
|
|
3551
|
-
[
|
|
3551
|
+
[re],
|
|
3552
3552
|
([e]) => Object.keys(e)
|
|
3553
3553
|
);
|
|
3554
|
-
|
|
3555
|
-
const
|
|
3554
|
+
re.subscribe((e) => Xe = e);
|
|
3555
|
+
const be = {};
|
|
3556
3556
|
function Rn(e, t) {
|
|
3557
|
-
|
|
3557
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3558
3558
|
}
|
|
3559
3559
|
function Xt(e) {
|
|
3560
|
-
return
|
|
3560
|
+
return be[e];
|
|
3561
3561
|
}
|
|
3562
3562
|
function Dn(e) {
|
|
3563
|
-
return
|
|
3563
|
+
return ne(e).map((t) => {
|
|
3564
3564
|
const r = Xt(t);
|
|
3565
3565
|
return [t, r ? [...r] : []];
|
|
3566
3566
|
}).filter(([, t]) => t.length > 0);
|
|
3567
3567
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return e == null ? !1 :
|
|
3568
|
+
function ye(e) {
|
|
3569
|
+
return e == null ? !1 : ne(e).some(
|
|
3570
3570
|
(t) => {
|
|
3571
3571
|
var r;
|
|
3572
3572
|
return (r = Xt(t)) == null ? void 0 : r.size;
|
|
@@ -3580,7 +3580,7 @@ function Un(e, t) {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
const Z = {};
|
|
3582
3582
|
function Wt(e) {
|
|
3583
|
-
if (!
|
|
3583
|
+
if (!ye(e))
|
|
3584
3584
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3585
3585
|
const t = Dn(e);
|
|
3586
3586
|
return Z[e] = Promise.all(
|
|
@@ -3588,17 +3588,17 @@ function Wt(e) {
|
|
|
3588
3588
|
([r, n]) => Un(r, n)
|
|
3589
3589
|
)
|
|
3590
3590
|
).then(() => {
|
|
3591
|
-
if (
|
|
3591
|
+
if (ye(e))
|
|
3592
3592
|
return Wt(e);
|
|
3593
3593
|
delete Z[e];
|
|
3594
3594
|
}), Z[e];
|
|
3595
3595
|
}
|
|
3596
|
-
var
|
|
3596
|
+
var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
|
|
3597
3597
|
var r = {};
|
|
3598
3598
|
for (var n in e)
|
|
3599
3599
|
Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3600
|
-
if (e != null &&
|
|
3601
|
-
for (var n of
|
|
3600
|
+
if (e != null && at)
|
|
3601
|
+
for (var n of at(e))
|
|
3602
3602
|
t.indexOf(n) < 0 && kn.call(e, n) && (r[n] = e[n]);
|
|
3603
3603
|
return r;
|
|
3604
3604
|
};
|
|
@@ -3634,9 +3634,9 @@ const jn = {
|
|
|
3634
3634
|
};
|
|
3635
3635
|
function zn({ locale: e, id: t }) {
|
|
3636
3636
|
console.warn(
|
|
3637
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3637
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3638
3638
|
e
|
|
3639
|
-
).join('", "')}".${
|
|
3639
|
+
).join('", "')}".${ye(C()) ? `
|
|
3640
3640
|
|
|
3641
3641
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3642
3642
|
);
|
|
@@ -3649,7 +3649,7 @@ const Vn = {
|
|
|
3649
3649
|
handleMissingMessage: void 0,
|
|
3650
3650
|
ignoreTag: !0
|
|
3651
3651
|
}, q = Vn;
|
|
3652
|
-
function
|
|
3652
|
+
function z() {
|
|
3653
3653
|
return q;
|
|
3654
3654
|
}
|
|
3655
3655
|
function Xn(e) {
|
|
@@ -3665,47 +3665,47 @@ function Xn(e) {
|
|
|
3665
3665
|
}
|
|
3666
3666
|
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = zn : console.warn(
|
|
3667
3667
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3668
|
-
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)),
|
|
3668
|
+
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
|
|
3669
3669
|
}
|
|
3670
3670
|
const Ne = xe(!1);
|
|
3671
|
-
var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors,
|
|
3671
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3672
3672
|
for (var r in t || (t = {}))
|
|
3673
|
-
qn.call(t, r) &&
|
|
3674
|
-
if (
|
|
3675
|
-
for (var r of
|
|
3676
|
-
Qn.call(t, r) &&
|
|
3673
|
+
qn.call(t, r) && lt(e, r, t[r]);
|
|
3674
|
+
if (ut)
|
|
3675
|
+
for (var r of ut(t))
|
|
3676
|
+
Qn.call(t, r) && lt(e, r, t[r]);
|
|
3677
3677
|
return e;
|
|
3678
3678
|
}, Kn = (e, t) => Zn(e, Jn(t));
|
|
3679
3679
|
let ze;
|
|
3680
|
-
const
|
|
3681
|
-
function
|
|
3680
|
+
const _e = xe(null);
|
|
3681
|
+
function ht(e) {
|
|
3682
3682
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3683
3683
|
}
|
|
3684
|
-
function
|
|
3685
|
-
const r =
|
|
3686
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3684
|
+
function ne(e, t = z().fallbackLocale) {
|
|
3685
|
+
const r = ht(e);
|
|
3686
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3687
3687
|
}
|
|
3688
|
-
function
|
|
3688
|
+
function C() {
|
|
3689
3689
|
return ze ?? void 0;
|
|
3690
3690
|
}
|
|
3691
|
-
|
|
3691
|
+
_e.subscribe((e) => {
|
|
3692
3692
|
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3693
3693
|
});
|
|
3694
3694
|
const ei = (e) => {
|
|
3695
|
-
if (e && $n(e) &&
|
|
3696
|
-
const { loadingDelay: t } =
|
|
3695
|
+
if (e && $n(e) && ye(e)) {
|
|
3696
|
+
const { loadingDelay: t } = z();
|
|
3697
3697
|
let r;
|
|
3698
|
-
return typeof window < "u" &&
|
|
3698
|
+
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
3699
3699
|
() => Ne.set(!0),
|
|
3700
3700
|
t
|
|
3701
3701
|
) : Ne.set(!0), Wt(e).then(() => {
|
|
3702
|
-
|
|
3702
|
+
_e.set(e);
|
|
3703
3703
|
}).finally(() => {
|
|
3704
3704
|
clearTimeout(r), Ne.set(!1);
|
|
3705
3705
|
});
|
|
3706
3706
|
}
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3707
|
+
return _e.set(e);
|
|
3708
|
+
}, M = Kn(Yn({}, _e), {
|
|
3709
3709
|
set: ei
|
|
3710
3710
|
}), we = (e) => {
|
|
3711
3711
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3714,24 +3714,24 @@ const ei = (e) => {
|
|
|
3714
3714
|
return i in t ? t[i] : t[i] = e(n);
|
|
3715
3715
|
};
|
|
3716
3716
|
};
|
|
3717
|
-
var ti = Object.defineProperty,
|
|
3717
|
+
var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3718
3718
|
for (var r in t || (t = {}))
|
|
3719
|
-
Zt.call(t, r) &&
|
|
3720
|
-
if (
|
|
3721
|
-
for (var r of
|
|
3722
|
-
Jt.call(t, r) &&
|
|
3719
|
+
Zt.call(t, r) && ct(e, r, t[r]);
|
|
3720
|
+
if (Ee)
|
|
3721
|
+
for (var r of Ee(t))
|
|
3722
|
+
Jt.call(t, r) && ct(e, r, t[r]);
|
|
3723
3723
|
return e;
|
|
3724
3724
|
}, W = (e, t) => {
|
|
3725
3725
|
var r = {};
|
|
3726
3726
|
for (var n in e)
|
|
3727
3727
|
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3728
|
-
if (e != null &&
|
|
3729
|
-
for (var n of
|
|
3728
|
+
if (e != null && Ee)
|
|
3729
|
+
for (var n of Ee(e))
|
|
3730
3730
|
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3731
3731
|
return r;
|
|
3732
3732
|
};
|
|
3733
3733
|
const ee = (e, t) => {
|
|
3734
|
-
const { formats: r } =
|
|
3734
|
+
const { formats: r } = z();
|
|
3735
3735
|
if (e in r && t in r[e])
|
|
3736
3736
|
return r[e][t];
|
|
3737
3737
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
@@ -3760,76 +3760,76 @@ const ee = (e, t) => {
|
|
|
3760
3760
|
}
|
|
3761
3761
|
), oi = (e = {}) => {
|
|
3762
3762
|
var t = e, {
|
|
3763
|
-
locale: r =
|
|
3763
|
+
locale: r = C()
|
|
3764
3764
|
} = t, n = W(t, [
|
|
3765
3765
|
"locale"
|
|
3766
3766
|
]);
|
|
3767
|
-
return ri(
|
|
3768
|
-
},
|
|
3767
|
+
return ri(We({ locale: r }, n));
|
|
3768
|
+
}, si = (e = {}) => {
|
|
3769
3769
|
var t = e, {
|
|
3770
|
-
locale: r =
|
|
3770
|
+
locale: r = C()
|
|
3771
3771
|
} = t, n = W(t, [
|
|
3772
3772
|
"locale"
|
|
3773
3773
|
]);
|
|
3774
|
-
return ni(
|
|
3775
|
-
},
|
|
3774
|
+
return ni(We({ locale: r }, n));
|
|
3775
|
+
}, ai = (e = {}) => {
|
|
3776
3776
|
var t = e, {
|
|
3777
|
-
locale: r =
|
|
3777
|
+
locale: r = C()
|
|
3778
3778
|
} = t, n = W(t, [
|
|
3779
3779
|
"locale"
|
|
3780
3780
|
]);
|
|
3781
|
-
return ii(
|
|
3781
|
+
return ii(We({ locale: r }, n));
|
|
3782
3782
|
}, ui = we(
|
|
3783
3783
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3784
|
-
(e, t =
|
|
3785
|
-
ignoreTag:
|
|
3784
|
+
(e, t = C()) => new Ft(e, t, z().formats, {
|
|
3785
|
+
ignoreTag: z().ignoreTag
|
|
3786
3786
|
})
|
|
3787
3787
|
), li = (e, t = {}) => {
|
|
3788
3788
|
var r, n, i, o;
|
|
3789
|
-
let
|
|
3790
|
-
typeof e == "object" && (
|
|
3789
|
+
let s = t;
|
|
3790
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3791
3791
|
const {
|
|
3792
|
-
values:
|
|
3793
|
-
locale: h =
|
|
3792
|
+
values: a,
|
|
3793
|
+
locale: h = C(),
|
|
3794
3794
|
default: u
|
|
3795
|
-
} =
|
|
3795
|
+
} = s;
|
|
3796
3796
|
if (h == null)
|
|
3797
3797
|
throw new Error(
|
|
3798
3798
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3799
3799
|
);
|
|
3800
3800
|
let l = jt(e, h);
|
|
3801
3801
|
if (!l)
|
|
3802
|
-
l = (o = (i = (n = (r =
|
|
3802
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3803
3803
|
else if (typeof l != "string")
|
|
3804
3804
|
return console.warn(
|
|
3805
3805
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3806
3806
|
), l;
|
|
3807
|
-
if (!
|
|
3807
|
+
if (!a)
|
|
3808
3808
|
return l;
|
|
3809
3809
|
let f = l;
|
|
3810
3810
|
try {
|
|
3811
|
-
f = ui(l, h).format(
|
|
3812
|
-
} catch (
|
|
3813
|
-
|
|
3811
|
+
f = ui(l, h).format(a);
|
|
3812
|
+
} catch (m) {
|
|
3813
|
+
m instanceof Error && console.warn(
|
|
3814
3814
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3815
|
-
|
|
3815
|
+
m.message
|
|
3816
3816
|
);
|
|
3817
3817
|
}
|
|
3818
3818
|
return f;
|
|
3819
|
-
}, hi = (e, t) =>
|
|
3820
|
-
X([
|
|
3821
|
-
X([
|
|
3822
|
-
X([
|
|
3823
|
-
X([
|
|
3824
|
-
function
|
|
3819
|
+
}, hi = (e, t) => ai(t).format(e), ci = (e, t) => si(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = C()) => jt(e, t), di = X([M, re], () => li);
|
|
3820
|
+
X([M], () => hi);
|
|
3821
|
+
X([M], () => ci);
|
|
3822
|
+
X([M], () => fi);
|
|
3823
|
+
X([M, re], () => mi);
|
|
3824
|
+
function ft(e, t) {
|
|
3825
3825
|
Vt(e, t);
|
|
3826
3826
|
}
|
|
3827
3827
|
function pi(e) {
|
|
3828
3828
|
Xn({
|
|
3829
3829
|
fallbackLocale: "en"
|
|
3830
|
-
}),
|
|
3830
|
+
}), M.set(e);
|
|
3831
3831
|
}
|
|
3832
|
-
const
|
|
3832
|
+
const mt = {
|
|
3833
3833
|
en: {
|
|
3834
3834
|
errorGeneralTitle: "Error Occurred",
|
|
3835
3835
|
errorGeneralText: "Something went wrong",
|
|
@@ -3886,71 +3886,49 @@ const dt = {
|
|
|
3886
3886
|
function bi(e) {
|
|
3887
3887
|
Kt(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
|
|
3888
3888
|
}
|
|
3889
|
-
const gi = (e) => ({}),
|
|
3890
|
-
function
|
|
3889
|
+
const gi = (e) => ({}), dt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
|
|
3890
|
+
function yt(e) {
|
|
3891
3891
|
let t, r;
|
|
3892
3892
|
return {
|
|
3893
3893
|
c() {
|
|
3894
|
-
t =
|
|
3895
|
-
e[0]}/error-general-icon.png`) ||
|
|
3894
|
+
t = I("ui-image"), qe(t.src, r = `${/*assetsurl*/
|
|
3895
|
+
e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
|
|
3896
3896
|
},
|
|
3897
3897
|
m(n, i) {
|
|
3898
|
-
|
|
3898
|
+
V(n, t, i);
|
|
3899
3899
|
},
|
|
3900
3900
|
p(n, i) {
|
|
3901
3901
|
i & /*assetsurl*/
|
|
3902
|
-
1 && !
|
|
3903
|
-
n[0]}/error-general-icon.png`) &&
|
|
3902
|
+
1 && !qe(t.src, r = `${/*assetsurl*/
|
|
3903
|
+
n[0]}/error-general-icon.png`) && he(t, "src", r);
|
|
3904
3904
|
},
|
|
3905
3905
|
d(n) {
|
|
3906
|
-
n &&
|
|
3906
|
+
n && L(t);
|
|
3907
3907
|
}
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
3910
|
function vi(e) {
|
|
3911
3911
|
let t, r = (
|
|
3912
3912
|
/*assetsurl*/
|
|
3913
|
-
e[0] &&
|
|
3913
|
+
e[0] && yt(e)
|
|
3914
3914
|
);
|
|
3915
3915
|
return {
|
|
3916
3916
|
c() {
|
|
3917
3917
|
r && r.c(), t = rr();
|
|
3918
3918
|
},
|
|
3919
3919
|
m(n, i) {
|
|
3920
|
-
r && r.m(n, i),
|
|
3920
|
+
r && r.m(n, i), V(n, t, i);
|
|
3921
3921
|
},
|
|
3922
3922
|
p(n, i) {
|
|
3923
3923
|
/*assetsurl*/
|
|
3924
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3924
|
+
n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3925
3925
|
},
|
|
3926
3926
|
d(n) {
|
|
3927
|
-
n &&
|
|
3927
|
+
n && L(t), r && r.d(n);
|
|
3928
3928
|
}
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
3931
3931
|
function xi(e) {
|
|
3932
|
-
let t, r = (
|
|
3933
|
-
/*$_*/
|
|
3934
|
-
e[3]("errorGeneralTitle") + ""
|
|
3935
|
-
), n;
|
|
3936
|
-
return {
|
|
3937
|
-
c() {
|
|
3938
|
-
t = O("span"), n = re(r), M(t, "class", "CashierErrorTitle");
|
|
3939
|
-
},
|
|
3940
|
-
m(i, o) {
|
|
3941
|
-
$(i, t, o), A(t, n);
|
|
3942
|
-
},
|
|
3943
|
-
p(i, o) {
|
|
3944
|
-
o & /*$_*/
|
|
3945
|
-
8 && r !== (r = /*$_*/
|
|
3946
|
-
i[3]("errorGeneralTitle") + "") && Xe(n, r);
|
|
3947
|
-
},
|
|
3948
|
-
d(i) {
|
|
3949
|
-
i && C(t);
|
|
3950
|
-
}
|
|
3951
|
-
};
|
|
3952
|
-
}
|
|
3953
|
-
function Ti(e) {
|
|
3954
3932
|
let t, r = (
|
|
3955
3933
|
/*$_*/
|
|
3956
3934
|
e[3](`${/*errorcode*/
|
|
@@ -3958,60 +3936,60 @@ function Ti(e) {
|
|
|
3958
3936
|
), n;
|
|
3959
3937
|
return {
|
|
3960
3938
|
c() {
|
|
3961
|
-
t =
|
|
3939
|
+
t = I("span"), n = ve(r), G(t, "class", "CashierErrorText");
|
|
3962
3940
|
},
|
|
3963
3941
|
m(i, o) {
|
|
3964
|
-
|
|
3942
|
+
V(i, t, o), P(t, n);
|
|
3965
3943
|
},
|
|
3966
3944
|
p(i, o) {
|
|
3967
3945
|
o & /*$_, errorcode*/
|
|
3968
3946
|
10 && r !== (r = /*$_*/
|
|
3969
3947
|
i[3](`${/*errorcode*/
|
|
3970
|
-
i[1] || "errorGeneralText"}`) + "") &&
|
|
3948
|
+
i[1] || "errorGeneralText"}`) + "") && Tt(n, r);
|
|
3971
3949
|
},
|
|
3972
3950
|
d(i) {
|
|
3973
|
-
i &&
|
|
3951
|
+
i && L(t);
|
|
3974
3952
|
}
|
|
3975
3953
|
};
|
|
3976
3954
|
}
|
|
3977
|
-
function
|
|
3955
|
+
function Ti(e) {
|
|
3978
3956
|
let t, r, n = (
|
|
3979
3957
|
/*$_*/
|
|
3980
3958
|
e[3]("errorGeneralButton") + ""
|
|
3981
|
-
), i, o,
|
|
3959
|
+
), i, o, s;
|
|
3982
3960
|
return {
|
|
3983
3961
|
c() {
|
|
3984
|
-
t =
|
|
3962
|
+
t = I("button"), r = I("span"), i = ve(n), G(t, "class", "CashierErrorButton");
|
|
3985
3963
|
},
|
|
3986
|
-
m(
|
|
3987
|
-
|
|
3964
|
+
m(a, h) {
|
|
3965
|
+
V(a, t, h), P(t, r), P(r, i), o || (s = nr(
|
|
3988
3966
|
t,
|
|
3989
3967
|
"click",
|
|
3990
3968
|
/*close*/
|
|
3991
3969
|
e[4]
|
|
3992
3970
|
), o = !0);
|
|
3993
3971
|
},
|
|
3994
|
-
p(
|
|
3972
|
+
p(a, h) {
|
|
3995
3973
|
h & /*$_*/
|
|
3996
3974
|
8 && n !== (n = /*$_*/
|
|
3997
|
-
|
|
3975
|
+
a[3]("errorGeneralButton") + "") && Tt(i, n);
|
|
3998
3976
|
},
|
|
3999
|
-
d(
|
|
4000
|
-
|
|
3977
|
+
d(a) {
|
|
3978
|
+
a && L(t), o = !1, s();
|
|
4001
3979
|
}
|
|
4002
3980
|
};
|
|
4003
3981
|
}
|
|
4004
|
-
function
|
|
4005
|
-
let t, r, n, i, o,
|
|
4006
|
-
const
|
|
3982
|
+
function Hi(e) {
|
|
3983
|
+
let t, r, n, i, o, s;
|
|
3984
|
+
const a = (
|
|
4007
3985
|
/*#slots*/
|
|
4008
3986
|
e[11].icon
|
|
4009
3987
|
), h = se(
|
|
4010
|
-
|
|
3988
|
+
a,
|
|
4011
3989
|
e,
|
|
4012
3990
|
/*$$scope*/
|
|
4013
3991
|
e[10],
|
|
4014
|
-
|
|
3992
|
+
gt
|
|
4015
3993
|
), u = h || vi(e), l = (
|
|
4016
3994
|
/*#slots*/
|
|
4017
3995
|
e[11].title
|
|
@@ -4020,184 +3998,183 @@ function wi(e) {
|
|
|
4020
3998
|
e,
|
|
4021
3999
|
/*$$scope*/
|
|
4022
4000
|
e[10],
|
|
4023
|
-
|
|
4024
|
-
),
|
|
4001
|
+
bt
|
|
4002
|
+
), m = (
|
|
4025
4003
|
/*#slots*/
|
|
4026
4004
|
e[11].text
|
|
4027
|
-
),
|
|
4028
|
-
|
|
4005
|
+
), d = se(
|
|
4006
|
+
m,
|
|
4029
4007
|
e,
|
|
4030
4008
|
/*$$scope*/
|
|
4031
4009
|
e[10],
|
|
4032
|
-
|
|
4033
|
-
),
|
|
4010
|
+
pt
|
|
4011
|
+
), p = d || xi(e), v = (
|
|
4034
4012
|
/*#slots*/
|
|
4035
4013
|
e[11].button
|
|
4036
|
-
),
|
|
4037
|
-
|
|
4014
|
+
), T = se(
|
|
4015
|
+
v,
|
|
4038
4016
|
e,
|
|
4039
4017
|
/*$$scope*/
|
|
4040
4018
|
e[10],
|
|
4041
|
-
|
|
4042
|
-
),
|
|
4019
|
+
dt
|
|
4020
|
+
), x = T || Ti(e);
|
|
4043
4021
|
return {
|
|
4044
4022
|
c() {
|
|
4045
|
-
t =
|
|
4023
|
+
t = I("div"), r = I("div"), u && u.c(), n = Se(), f && f.c(), i = Se(), p && p.c(), o = Se(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
|
|
4046
4024
|
},
|
|
4047
|
-
m(
|
|
4048
|
-
|
|
4025
|
+
m(c, g) {
|
|
4026
|
+
V(c, t, g), P(t, r), u && u.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, o), x && x.m(r, null), e[12](t), s = !0;
|
|
4049
4027
|
},
|
|
4050
|
-
p(
|
|
4051
|
-
h ? h.p && (!
|
|
4052
|
-
1024) &&
|
|
4028
|
+
p(c, [g]) {
|
|
4029
|
+
h ? h.p && (!s || g & /*$$scope*/
|
|
4030
|
+
1024) && ue(
|
|
4053
4031
|
h,
|
|
4054
|
-
|
|
4055
|
-
|
|
4032
|
+
a,
|
|
4033
|
+
c,
|
|
4056
4034
|
/*$$scope*/
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4035
|
+
c[10],
|
|
4036
|
+
s ? ae(
|
|
4037
|
+
a,
|
|
4060
4038
|
/*$$scope*/
|
|
4061
|
-
|
|
4062
|
-
|
|
4039
|
+
c[10],
|
|
4040
|
+
g,
|
|
4063
4041
|
Ei
|
|
4064
|
-
) :
|
|
4042
|
+
) : le(
|
|
4065
4043
|
/*$$scope*/
|
|
4066
|
-
|
|
4044
|
+
c[10]
|
|
4067
4045
|
),
|
|
4068
|
-
|
|
4069
|
-
) : u && u.p && (!
|
|
4070
|
-
1) && u.p(
|
|
4071
|
-
1024) &&
|
|
4046
|
+
gt
|
|
4047
|
+
) : u && u.p && (!s || g & /*assetsurl*/
|
|
4048
|
+
1) && u.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
|
|
4049
|
+
1024) && ue(
|
|
4072
4050
|
f,
|
|
4073
4051
|
l,
|
|
4074
|
-
|
|
4052
|
+
c,
|
|
4075
4053
|
/*$$scope*/
|
|
4076
|
-
|
|
4077
|
-
|
|
4054
|
+
c[10],
|
|
4055
|
+
s ? ae(
|
|
4078
4056
|
l,
|
|
4079
4057
|
/*$$scope*/
|
|
4080
|
-
|
|
4081
|
-
|
|
4058
|
+
c[10],
|
|
4059
|
+
g,
|
|
4082
4060
|
_i
|
|
4083
|
-
) :
|
|
4061
|
+
) : le(
|
|
4084
4062
|
/*$$scope*/
|
|
4085
|
-
|
|
4063
|
+
c[10]
|
|
4086
4064
|
),
|
|
4087
|
-
|
|
4088
|
-
)
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
y,
|
|
4092
|
-
p,
|
|
4065
|
+
bt
|
|
4066
|
+
), d ? d.p && (!s || g & /*$$scope*/
|
|
4067
|
+
1024) && ue(
|
|
4068
|
+
d,
|
|
4093
4069
|
m,
|
|
4070
|
+
c,
|
|
4094
4071
|
/*$$scope*/
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4072
|
+
c[10],
|
|
4073
|
+
s ? ae(
|
|
4074
|
+
m,
|
|
4098
4075
|
/*$$scope*/
|
|
4099
|
-
|
|
4100
|
-
|
|
4076
|
+
c[10],
|
|
4077
|
+
g,
|
|
4101
4078
|
yi
|
|
4102
|
-
) :
|
|
4079
|
+
) : le(
|
|
4103
4080
|
/*$$scope*/
|
|
4104
|
-
|
|
4081
|
+
c[10]
|
|
4105
4082
|
),
|
|
4106
|
-
|
|
4107
|
-
) :
|
|
4108
|
-
10) &&
|
|
4109
|
-
1024) &&
|
|
4110
|
-
w,
|
|
4083
|
+
pt
|
|
4084
|
+
) : p && p.p && (!s || g & /*$_, errorcode*/
|
|
4085
|
+
10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
|
|
4086
|
+
1024) && ue(
|
|
4111
4087
|
T,
|
|
4112
|
-
|
|
4088
|
+
v,
|
|
4089
|
+
c,
|
|
4113
4090
|
/*$$scope*/
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4091
|
+
c[10],
|
|
4092
|
+
s ? ae(
|
|
4093
|
+
v,
|
|
4117
4094
|
/*$$scope*/
|
|
4118
|
-
|
|
4119
|
-
|
|
4095
|
+
c[10],
|
|
4096
|
+
g,
|
|
4120
4097
|
gi
|
|
4121
|
-
) :
|
|
4098
|
+
) : le(
|
|
4122
4099
|
/*$$scope*/
|
|
4123
|
-
|
|
4100
|
+
c[10]
|
|
4124
4101
|
),
|
|
4125
|
-
|
|
4126
|
-
) :
|
|
4127
|
-
8) &&
|
|
4102
|
+
dt
|
|
4103
|
+
) : x && x.p && (!s || g & /*$_*/
|
|
4104
|
+
8) && x.p(c, s ? g : -1);
|
|
4128
4105
|
},
|
|
4129
|
-
i(
|
|
4130
|
-
|
|
4106
|
+
i(c) {
|
|
4107
|
+
s || (J(u, c), J(f, c), J(p, c), J(x, c), s = !0);
|
|
4131
4108
|
},
|
|
4132
|
-
o(
|
|
4133
|
-
|
|
4109
|
+
o(c) {
|
|
4110
|
+
ce(u, c), ce(f, c), ce(p, c), ce(x, c), s = !1;
|
|
4134
4111
|
},
|
|
4135
|
-
d(
|
|
4136
|
-
|
|
4112
|
+
d(c) {
|
|
4113
|
+
c && L(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
4137
4114
|
}
|
|
4138
4115
|
};
|
|
4139
4116
|
}
|
|
4140
|
-
function
|
|
4117
|
+
function wi(e, t, r) {
|
|
4141
4118
|
let n;
|
|
4142
|
-
Yt(e, di, (
|
|
4143
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl:
|
|
4144
|
-
const
|
|
4145
|
-
pi(
|
|
4146
|
-
},
|
|
4147
|
-
fetch(f).then((
|
|
4148
|
-
Object.keys(
|
|
4149
|
-
|
|
4119
|
+
Yt(e, di, (c) => r(3, n = c));
|
|
4120
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4121
|
+
const p = () => {
|
|
4122
|
+
pi(a);
|
|
4123
|
+
}, v = () => {
|
|
4124
|
+
fetch(f).then((g) => g.json()).then((g) => {
|
|
4125
|
+
Object.keys(g).forEach((A) => {
|
|
4126
|
+
ft(A, g[A]);
|
|
4150
4127
|
});
|
|
4151
|
-
}).catch((
|
|
4152
|
-
console.error(
|
|
4128
|
+
}).catch((g) => {
|
|
4129
|
+
console.error(g);
|
|
4153
4130
|
});
|
|
4154
4131
|
};
|
|
4155
|
-
Object.keys(
|
|
4156
|
-
|
|
4132
|
+
Object.keys(mt).forEach((c) => {
|
|
4133
|
+
ft(c, mt[c]);
|
|
4157
4134
|
});
|
|
4158
4135
|
const T = () => {
|
|
4159
4136
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4160
4137
|
};
|
|
4161
|
-
|
|
4138
|
+
ar(() => () => {
|
|
4162
4139
|
});
|
|
4163
|
-
function
|
|
4164
|
-
Le[
|
|
4165
|
-
|
|
4140
|
+
function x(c) {
|
|
4141
|
+
Le[c ? "unshift" : "push"](() => {
|
|
4142
|
+
d = c, r(2, d);
|
|
4166
4143
|
});
|
|
4167
4144
|
}
|
|
4168
|
-
return e.$$set = (
|
|
4169
|
-
"assetsurl" in
|
|
4145
|
+
return e.$$set = (c) => {
|
|
4146
|
+
"assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, a = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
|
|
4170
4147
|
}, e.$$.update = () => {
|
|
4171
4148
|
e.$$.dirty & /*lang*/
|
|
4172
|
-
32 &&
|
|
4173
|
-
68 && u &&
|
|
4174
|
-
132 && l &&
|
|
4175
|
-
516 &&
|
|
4176
|
-
256 && f &&
|
|
4149
|
+
32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4150
|
+
68 && u && d && Er(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4151
|
+
132 && l && d && vr(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4152
|
+
516 && m && d && xr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4153
|
+
256 && f && v();
|
|
4177
4154
|
}, [
|
|
4178
|
-
|
|
4155
|
+
s,
|
|
4179
4156
|
h,
|
|
4180
|
-
|
|
4157
|
+
d,
|
|
4181
4158
|
n,
|
|
4182
4159
|
T,
|
|
4183
|
-
|
|
4160
|
+
a,
|
|
4184
4161
|
u,
|
|
4185
4162
|
l,
|
|
4186
4163
|
f,
|
|
4187
|
-
|
|
4164
|
+
m,
|
|
4188
4165
|
o,
|
|
4189
4166
|
i,
|
|
4190
|
-
|
|
4167
|
+
x
|
|
4191
4168
|
];
|
|
4192
4169
|
}
|
|
4193
|
-
class
|
|
4170
|
+
class Si extends yr {
|
|
4194
4171
|
constructor(t) {
|
|
4195
4172
|
super(), br(
|
|
4196
4173
|
this,
|
|
4197
4174
|
t,
|
|
4198
|
-
Si,
|
|
4199
4175
|
wi,
|
|
4200
|
-
|
|
4176
|
+
Hi,
|
|
4177
|
+
Et,
|
|
4201
4178
|
{
|
|
4202
4179
|
assetsurl: 0,
|
|
4203
4180
|
lang: 5,
|
|
@@ -4214,46 +4191,46 @@ class Bi extends yr {
|
|
|
4214
4191
|
return this.$$.ctx[0];
|
|
4215
4192
|
}
|
|
4216
4193
|
set assetsurl(t) {
|
|
4217
|
-
this.$$set({ assetsurl: t }),
|
|
4194
|
+
this.$$set({ assetsurl: t }), S();
|
|
4218
4195
|
}
|
|
4219
4196
|
get lang() {
|
|
4220
4197
|
return this.$$.ctx[5];
|
|
4221
4198
|
}
|
|
4222
4199
|
set lang(t) {
|
|
4223
|
-
this.$$set({ lang: t }),
|
|
4200
|
+
this.$$set({ lang: t }), S();
|
|
4224
4201
|
}
|
|
4225
4202
|
get errorcode() {
|
|
4226
4203
|
return this.$$.ctx[1];
|
|
4227
4204
|
}
|
|
4228
4205
|
set errorcode(t) {
|
|
4229
|
-
this.$$set({ errorcode: t }),
|
|
4206
|
+
this.$$set({ errorcode: t }), S();
|
|
4230
4207
|
}
|
|
4231
4208
|
get clientstyling() {
|
|
4232
4209
|
return this.$$.ctx[6];
|
|
4233
4210
|
}
|
|
4234
4211
|
set clientstyling(t) {
|
|
4235
|
-
this.$$set({ clientstyling: t }),
|
|
4212
|
+
this.$$set({ clientstyling: t }), S();
|
|
4236
4213
|
}
|
|
4237
4214
|
get clientstylingurl() {
|
|
4238
4215
|
return this.$$.ctx[7];
|
|
4239
4216
|
}
|
|
4240
4217
|
set clientstylingurl(t) {
|
|
4241
|
-
this.$$set({ clientstylingurl: t }),
|
|
4218
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4242
4219
|
}
|
|
4243
4220
|
get translationurl() {
|
|
4244
4221
|
return this.$$.ctx[8];
|
|
4245
4222
|
}
|
|
4246
4223
|
set translationurl(t) {
|
|
4247
|
-
this.$$set({ translationurl: t }),
|
|
4224
|
+
this.$$set({ translationurl: t }), S();
|
|
4248
4225
|
}
|
|
4249
4226
|
get mbsource() {
|
|
4250
4227
|
return this.$$.ctx[9];
|
|
4251
4228
|
}
|
|
4252
4229
|
set mbsource(t) {
|
|
4253
|
-
this.$$set({ mbsource: t }),
|
|
4230
|
+
this.$$set({ mbsource: t }), S();
|
|
4254
4231
|
}
|
|
4255
4232
|
}
|
|
4256
|
-
gr(
|
|
4233
|
+
gr(Si, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4257
4234
|
export {
|
|
4258
|
-
|
|
4235
|
+
Si as C
|
|
4259
4236
|
};
|