@everymatrix/cashier-error 1.86.4 → 1.86.6
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-BJfLkcP8.js → CashierError-Bupr3kgq.js} +708 -704
- package/components/{CashierError-C3XOQqX2.js → CashierError-DGO7RbEg.js} +727 -723
- package/components/CashierError-l26mpTff.cjs +5 -0
- 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
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CashierError-DS4mHA2B.cjs +0 -18
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
2
|
var ir = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Be = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
or.call(t, r) && Be(e, r, t[r]);
|
|
8
8
|
if (Qe)
|
|
9
9
|
for (var r of Qe(t))
|
|
10
|
-
|
|
10
|
+
sr.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
|
-
var w = (e, t, r) => (
|
|
13
|
+
var w = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
26
|
}
|
|
27
|
-
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
|
+
function A() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ar(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -44,65 +44,65 @@ function wt(e) {
|
|
|
44
44
|
function tt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function re(e) {
|
|
48
48
|
e.forEach(wt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function We(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function St(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let se;
|
|
57
57
|
function rt(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
59
59
|
}
|
|
60
60
|
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Bt(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return A;
|
|
68
68
|
}
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
72
|
function lr(e, t, r) {
|
|
73
|
-
e.$$.on_destroy.push(
|
|
73
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ae(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = At(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function At(e, t, r, n) {
|
|
82
|
-
return e[1] && n ?
|
|
82
|
+
return e[1] && n ? ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ue(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
86
86
|
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
90
|
-
const
|
|
91
|
-
for (let u = 0; u <
|
|
92
|
-
|
|
93
|
-
return
|
|
90
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let u = 0; u < s; u += 1)
|
|
92
|
+
o[u] = t.dirty[u] | i[u];
|
|
93
|
+
return o;
|
|
94
94
|
}
|
|
95
95
|
return t.dirty | i;
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function le(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const s = At(t, r, n, o);
|
|
102
|
+
e.p(s, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function he(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], r = e.ctx.length / 32;
|
|
108
108
|
for (let n = 0; n < r; n++)
|
|
@@ -111,13 +111,13 @@ function le(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function O(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
117
|
function hr(e, t, r) {
|
|
118
118
|
const n = cr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = C("style");
|
|
121
121
|
i.id = t, i.textContent = r, fr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,39 +132,39 @@ function cr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function fr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return O(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function X(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function M(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function C(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function xe(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Ae() {
|
|
154
|
+
return xe(" ");
|
|
155
155
|
}
|
|
156
156
|
function mr() {
|
|
157
|
-
return
|
|
157
|
+
return xe("");
|
|
158
158
|
}
|
|
159
159
|
function dr(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function k(e, t, r) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ce(e, t, r) {
|
|
166
166
|
const n = t.toLowerCase();
|
|
167
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
167
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
168
168
|
}
|
|
169
169
|
function pr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
@@ -182,103 +182,103 @@ function br(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let K;
|
|
186
|
+
function Y(e) {
|
|
187
|
+
K = e;
|
|
188
188
|
}
|
|
189
189
|
function gr() {
|
|
190
|
-
if (!
|
|
190
|
+
if (!K)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return K;
|
|
193
193
|
}
|
|
194
194
|
function yr(e) {
|
|
195
195
|
gr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
197
|
+
const U = [], $e = [];
|
|
198
|
+
let G = [];
|
|
199
199
|
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
200
|
-
let
|
|
200
|
+
let Re = !1;
|
|
201
201
|
function Er() {
|
|
202
|
-
|
|
202
|
+
Re || (Re = !0, _r.then(B));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function De(e) {
|
|
205
|
+
G.push(e);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
207
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
208
|
+
let R = 0;
|
|
209
209
|
function B() {
|
|
210
|
-
if (
|
|
210
|
+
if (R !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = K;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; R < U.length; ) {
|
|
216
|
+
const t = U[R];
|
|
217
|
+
R++, Y(t), vr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw U.length = 0, R = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
226
|
-
|
|
222
|
+
for (Y(null), U.length = 0, R = 0; $e.length; )
|
|
223
|
+
$e.pop()();
|
|
224
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
225
|
+
const r = G[t];
|
|
226
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
228
|
+
G.length = 0;
|
|
229
|
+
} while (U.length);
|
|
230
230
|
for (; nt.length; )
|
|
231
231
|
nt.pop()();
|
|
232
|
-
|
|
232
|
+
Re = !1, Pe.clear(), Y(e);
|
|
233
233
|
}
|
|
234
234
|
function vr(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.update(),
|
|
236
|
+
e.update(), re(e.before_update);
|
|
237
237
|
const t = e.dirty;
|
|
238
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
238
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
function xr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const de = /* @__PURE__ */ new Set();
|
|
246
246
|
let Tr;
|
|
247
|
-
function
|
|
248
|
-
e && e.i && (
|
|
247
|
+
function q(e, t) {
|
|
248
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function fe(e, t, r, n) {
|
|
251
251
|
if (e && e.o) {
|
|
252
|
-
if (
|
|
252
|
+
if (de.has(e))
|
|
253
253
|
return;
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
de.add(e), Tr.c.push(() => {
|
|
255
|
+
de.delete(e);
|
|
256
256
|
}), e.o(t);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
function Hr(e, t, r) {
|
|
260
260
|
const { fragment: n, after_update: i } = e.$$;
|
|
261
|
-
n && n.m(t, r),
|
|
262
|
-
const
|
|
263
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
264
|
-
}), i.forEach(
|
|
261
|
+
n && n.m(t, r), De(() => {
|
|
262
|
+
const o = e.$$.on_mount.map(wt).filter(We);
|
|
263
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
264
|
+
}), i.forEach(De);
|
|
265
265
|
}
|
|
266
266
|
function wr(e, t) {
|
|
267
267
|
const r = e.$$;
|
|
268
|
-
r.fragment !== null && (xr(r.after_update),
|
|
268
|
+
r.fragment !== null && (xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
e.$$.dirty[0] === -1 && (
|
|
270
|
+
function Sr(e, t) {
|
|
271
|
+
e.$$.dirty[0] === -1 && (U.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const l =
|
|
275
|
-
|
|
276
|
-
const
|
|
273
|
+
function Br(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
274
|
+
const l = K;
|
|
275
|
+
Y(e);
|
|
276
|
+
const a = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
279
279
|
// state
|
|
280
|
-
props:
|
|
281
|
-
update:
|
|
280
|
+
props: o,
|
|
281
|
+
update: A,
|
|
282
282
|
not_equal: i,
|
|
283
283
|
bound: tt(),
|
|
284
284
|
// lifecycle
|
|
@@ -294,20 +294,20 @@ function Sr(e, t, r, n, i, a, o = null, u = [-1]) {
|
|
|
294
294
|
skip_bound: !1,
|
|
295
295
|
root: t.target || l.$$.root
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
s && s(a.root);
|
|
298
298
|
let h = !1;
|
|
299
|
-
if (
|
|
299
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
300
300
|
const p = d.length ? d[0] : m;
|
|
301
|
-
return
|
|
302
|
-
}) : [],
|
|
301
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = p) && (!a.skip_bound && a.bound[f] && a.bound[f](p), h && Sr(e, f)), m;
|
|
302
|
+
}) : [], a.update(), h = !0, re(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
304
|
const f = pr(t.target);
|
|
305
|
-
|
|
305
|
+
a.fragment && a.fragment.l(f), f.forEach(M);
|
|
306
306
|
} else
|
|
307
|
-
|
|
308
|
-
t.intro &&
|
|
307
|
+
a.fragment && a.fragment.c();
|
|
308
|
+
t.intro && q(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
Y(l);
|
|
311
311
|
}
|
|
312
312
|
let Ot;
|
|
313
313
|
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
@@ -349,22 +349,22 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
349
349
|
connectedCallback() {
|
|
350
350
|
return et(this, null, function* () {
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
|
-
let t = function(
|
|
352
|
+
let t = function(o) {
|
|
353
353
|
return () => {
|
|
354
|
-
let
|
|
354
|
+
let s;
|
|
355
355
|
return {
|
|
356
356
|
c: function() {
|
|
357
|
-
|
|
357
|
+
s = C("slot"), o !== "default" && k(s, "name", o);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* @param {HTMLElement} target
|
|
361
361
|
* @param {HTMLElement} [anchor]
|
|
362
362
|
*/
|
|
363
|
-
m: function(
|
|
364
|
-
|
|
363
|
+
m: function(a, h) {
|
|
364
|
+
X(a, s, h);
|
|
365
365
|
},
|
|
366
|
-
d: function(
|
|
367
|
-
|
|
366
|
+
d: function(a) {
|
|
367
|
+
a && M(s);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
@@ -372,14 +372,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
372
372
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
373
|
return;
|
|
374
374
|
const r = {}, n = br(this);
|
|
375
|
-
for (const
|
|
376
|
-
|
|
377
|
-
for (const
|
|
378
|
-
const
|
|
379
|
-
|
|
375
|
+
for (const o of this.$$s)
|
|
376
|
+
o in n && (r[o] = [t(o)]);
|
|
377
|
+
for (const o of this.attributes) {
|
|
378
|
+
const s = this.$$g_p(o.name);
|
|
379
|
+
s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
|
-
for (const
|
|
382
|
-
!(
|
|
381
|
+
for (const o in this.$$p_d)
|
|
382
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
383
383
|
this.$$c = new this.$$ctor({
|
|
384
384
|
target: this.shadowRoot || this,
|
|
385
385
|
props: Ke(Ye({}, this.$$d), {
|
|
@@ -391,23 +391,23 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
391
391
|
});
|
|
392
392
|
const i = () => {
|
|
393
393
|
this.$$r = !0;
|
|
394
|
-
for (const
|
|
395
|
-
if (this.$$d[
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
this.$$d[
|
|
394
|
+
for (const o in this.$$p_d)
|
|
395
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
396
|
+
const s = pe(
|
|
397
|
+
o,
|
|
398
|
+
this.$$d[o],
|
|
399
399
|
this.$$p_d,
|
|
400
400
|
"toAttribute"
|
|
401
401
|
);
|
|
402
|
-
|
|
402
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
403
403
|
}
|
|
404
404
|
this.$$r = !1;
|
|
405
405
|
};
|
|
406
406
|
this.$$c.$$.after_update.push(i), i();
|
|
407
|
-
for (const
|
|
408
|
-
for (const
|
|
409
|
-
const u = this.$$c.$on(
|
|
410
|
-
this.$$l_u.set(
|
|
407
|
+
for (const o in this.$$l)
|
|
408
|
+
for (const s of this.$$l[o]) {
|
|
409
|
+
const u = this.$$c.$on(o, s);
|
|
410
|
+
this.$$l_u.set(s, u);
|
|
411
411
|
}
|
|
412
412
|
this.$$l = {};
|
|
413
413
|
}
|
|
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
417
417
|
// and setting attributes through setAttribute etc, this is helpful
|
|
418
418
|
attributeChangedCallback(t, r, n) {
|
|
419
419
|
var i;
|
|
420
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
420
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
423
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,9 +430,9 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
430
430
|
) || t;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
434
|
-
var
|
|
435
|
-
const i = (
|
|
433
|
+
function pe(e, t, r, n) {
|
|
434
|
+
var o;
|
|
435
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
436
436
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
437
437
|
return t;
|
|
438
438
|
if (n === "toAttribute")
|
|
@@ -460,8 +460,8 @@ function de(e, t, r, n) {
|
|
|
460
460
|
return t;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function Ar(e, t, r, n, i,
|
|
464
|
-
let
|
|
463
|
+
function Ar(e, t, r, n, i, o) {
|
|
464
|
+
let s = class extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, r, i), this.$$p_d = t;
|
|
467
467
|
}
|
|
@@ -472,24 +472,24 @@ function Ar(e, t, r, n, i, a) {
|
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
return Object.keys(t).forEach((u) => {
|
|
475
|
-
Object.defineProperty(
|
|
475
|
+
Object.defineProperty(s.prototype, u, {
|
|
476
476
|
get() {
|
|
477
477
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
478
478
|
},
|
|
479
479
|
set(l) {
|
|
480
|
-
var
|
|
481
|
-
l =
|
|
480
|
+
var a;
|
|
481
|
+
l = pe(u, l, t), this.$$d[u] = l, (a = this.$$c) == null || a.$set({ [u]: l });
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), n.forEach((u) => {
|
|
485
|
-
Object.defineProperty(
|
|
485
|
+
Object.defineProperty(s.prototype, u, {
|
|
486
486
|
get() {
|
|
487
487
|
var l;
|
|
488
488
|
return (l = this.$$c) == null ? void 0 : l[u];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}), e.element = /** @type {any} */
|
|
492
|
-
|
|
492
|
+
s, s;
|
|
493
493
|
}
|
|
494
494
|
class Pr {
|
|
495
495
|
constructor() {
|
|
@@ -512,7 +512,7 @@ class Pr {
|
|
|
512
512
|
}
|
|
513
513
|
/** @returns {void} */
|
|
514
514
|
$destroy() {
|
|
515
|
-
wr(this, 1), this.$destroy =
|
|
515
|
+
wr(this, 1), this.$destroy = A;
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
518
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -521,8 +521,8 @@ class Pr {
|
|
|
521
521
|
* @returns {() => void}
|
|
522
522
|
*/
|
|
523
523
|
$on(t, r) {
|
|
524
|
-
if (!
|
|
525
|
-
return
|
|
524
|
+
if (!We(r))
|
|
525
|
+
return A;
|
|
526
526
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
527
|
return n.push(r), () => {
|
|
528
528
|
const i = n.indexOf(r);
|
|
@@ -564,58 +564,58 @@ function Nr(e, t, r) {
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const D = [];
|
|
568
568
|
function Lr(e, t) {
|
|
569
569
|
return {
|
|
570
|
-
subscribe:
|
|
570
|
+
subscribe: Te(e, t).subscribe
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Te(e, t = A) {
|
|
574
574
|
let r;
|
|
575
575
|
const n = /* @__PURE__ */ new Set();
|
|
576
576
|
function i(u) {
|
|
577
|
-
if (
|
|
578
|
-
const l = !
|
|
579
|
-
for (const
|
|
580
|
-
|
|
577
|
+
if (St(e, u) && (e = u, r)) {
|
|
578
|
+
const l = !D.length;
|
|
579
|
+
for (const a of n)
|
|
580
|
+
a[1](), D.push(a, e);
|
|
581
581
|
if (l) {
|
|
582
|
-
for (let
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
for (let a = 0; a < D.length; a += 2)
|
|
583
|
+
D[a][0](D[a + 1]);
|
|
584
|
+
D.length = 0;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function o(u) {
|
|
589
589
|
i(u(e));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
593
|
-
return n.add(
|
|
594
|
-
n.delete(
|
|
591
|
+
function s(u, l = A) {
|
|
592
|
+
const a = [u, l];
|
|
593
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || A), u(e), () => {
|
|
594
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
return { set: i, update:
|
|
597
|
+
return { set: i, update: o, subscribe: s };
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function W(e, t, r) {
|
|
600
600
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
601
601
|
if (!i.every(Boolean))
|
|
602
602
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
603
|
-
const
|
|
604
|
-
return Lr(r, (
|
|
603
|
+
const o = t.length < 2;
|
|
604
|
+
return Lr(r, (s, u) => {
|
|
605
605
|
let l = !1;
|
|
606
|
-
const
|
|
607
|
-
let h = 0, f =
|
|
606
|
+
const a = [];
|
|
607
|
+
let h = 0, f = A;
|
|
608
608
|
const m = () => {
|
|
609
609
|
if (h)
|
|
610
610
|
return;
|
|
611
611
|
f();
|
|
612
|
-
const p = t(n ?
|
|
613
|
-
|
|
612
|
+
const p = t(n ? a[0] : a, s, u);
|
|
613
|
+
o ? s(p) : f = We(p) ? p : A;
|
|
614
614
|
}, d = i.map(
|
|
615
|
-
(p, v) =>
|
|
615
|
+
(p, v) => Bt(
|
|
616
616
|
p,
|
|
617
617
|
(T) => {
|
|
618
|
-
|
|
618
|
+
a[v] = T, h &= ~(1 << v), l && m();
|
|
619
619
|
},
|
|
620
620
|
() => {
|
|
621
621
|
h |= 1 << v;
|
|
@@ -623,7 +623,7 @@ function X(e, t, r) {
|
|
|
623
623
|
)
|
|
624
624
|
);
|
|
625
625
|
return l = !0, m(), function() {
|
|
626
|
-
|
|
626
|
+
re(d), f(), l = !1;
|
|
627
627
|
};
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -647,19 +647,19 @@ function kr(e) {
|
|
|
647
647
|
function Fr(e) {
|
|
648
648
|
return Array.isArray(e) ? [] : {};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
650
|
+
function ee(e, t) {
|
|
651
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Fr(e), e, t) : e;
|
|
652
652
|
}
|
|
653
653
|
function jr(e, t, r) {
|
|
654
654
|
return e.concat(t).map(function(n) {
|
|
655
|
-
return
|
|
655
|
+
return ee(n, r);
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
function zr(e, t) {
|
|
659
659
|
if (!t.customMerge)
|
|
660
|
-
return
|
|
660
|
+
return F;
|
|
661
661
|
var r = t.customMerge(e);
|
|
662
|
-
return typeof r == "function" ? r :
|
|
662
|
+
return typeof r == "function" ? r : F;
|
|
663
663
|
}
|
|
664
664
|
function Vr(e) {
|
|
665
665
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -682,65 +682,51 @@ function Xr(e, t) {
|
|
|
682
682
|
function Wr(e, t, r) {
|
|
683
683
|
var n = {};
|
|
684
684
|
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
685
|
-
n[i] =
|
|
685
|
+
n[i] = ee(e[i], r);
|
|
686
686
|
}), it(t).forEach(function(i) {
|
|
687
|
-
Xr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] =
|
|
687
|
+
Xr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
688
688
|
}), n;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified =
|
|
692
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
693
|
-
return
|
|
690
|
+
function F(e, t, r) {
|
|
691
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
|
|
692
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
693
|
+
return o ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
|
|
694
694
|
}
|
|
695
|
-
|
|
695
|
+
F.all = function(t, r) {
|
|
696
696
|
if (!Array.isArray(t))
|
|
697
697
|
throw new Error("first argument should be an array");
|
|
698
698
|
return t.reduce(function(n, i) {
|
|
699
|
-
return
|
|
699
|
+
return F(n, i, r);
|
|
700
700
|
}, {});
|
|
701
701
|
};
|
|
702
|
-
var Zr =
|
|
702
|
+
var Zr = F, Jr = Zr;
|
|
703
703
|
const qr = /* @__PURE__ */ Mr(Jr);
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
708
|
-
purpose with or without fee is hereby granted.
|
|
709
|
-
|
|
710
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
711
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
712
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
713
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
714
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
715
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
716
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
717
|
-
***************************************************************************** */
|
|
718
|
-
var Re = function(e, t) {
|
|
719
|
-
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
704
|
+
var Ue = function(e, t) {
|
|
705
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
720
706
|
r.__proto__ = n;
|
|
721
707
|
} || function(r, n) {
|
|
722
708
|
for (var i in n)
|
|
723
709
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
724
|
-
},
|
|
710
|
+
}, Ue(e, t);
|
|
725
711
|
};
|
|
726
|
-
function
|
|
712
|
+
function He(e, t) {
|
|
727
713
|
if (typeof t != "function" && t !== null)
|
|
728
714
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
729
|
-
|
|
715
|
+
Ue(e, t);
|
|
730
716
|
function r() {
|
|
731
717
|
this.constructor = e;
|
|
732
718
|
}
|
|
733
719
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
734
720
|
}
|
|
735
|
-
var
|
|
736
|
-
return
|
|
721
|
+
var S = function() {
|
|
722
|
+
return S = Object.assign || function(t) {
|
|
737
723
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
738
724
|
r = arguments[n];
|
|
739
|
-
for (var
|
|
740
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
725
|
+
for (var o in r)
|
|
726
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
741
727
|
}
|
|
742
728
|
return t;
|
|
743
|
-
},
|
|
729
|
+
}, S.apply(this, arguments);
|
|
744
730
|
};
|
|
745
731
|
function Qr(e, t) {
|
|
746
732
|
var r = {};
|
|
@@ -751,14 +737,14 @@ function Qr(e, t) {
|
|
|
751
737
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
752
738
|
return r;
|
|
753
739
|
}
|
|
754
|
-
function
|
|
755
|
-
if (arguments.length === 2)
|
|
756
|
-
for (var n = 0, i = t.length,
|
|
757
|
-
(
|
|
758
|
-
return e.concat(
|
|
740
|
+
function Oe(e, t, r) {
|
|
741
|
+
if (r || arguments.length === 2)
|
|
742
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
743
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
744
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
759
745
|
}
|
|
760
|
-
function
|
|
761
|
-
var r = t && t.cache ? t.cache :
|
|
746
|
+
function Ie(e, t) {
|
|
747
|
+
var r = t && t.cache ? t.cache : on, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : en;
|
|
762
748
|
return i(e, {
|
|
763
749
|
cache: r,
|
|
764
750
|
serializer: n
|
|
@@ -767,95 +753,103 @@ function Pe(e, t) {
|
|
|
767
753
|
function Yr(e) {
|
|
768
754
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
769
755
|
}
|
|
770
|
-
function
|
|
771
|
-
var i = Yr(n) ? n : r(n),
|
|
772
|
-
return typeof
|
|
756
|
+
function Kr(e, t, r, n) {
|
|
757
|
+
var i = Yr(n) ? n : r(n), o = t.get(i);
|
|
758
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
773
759
|
}
|
|
774
|
-
function
|
|
775
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
776
|
-
return typeof
|
|
760
|
+
function Ct(e, t, r) {
|
|
761
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
762
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
777
763
|
}
|
|
778
|
-
function
|
|
764
|
+
function Nt(e, t, r, n, i) {
|
|
779
765
|
return r.bind(t, e, n, i);
|
|
780
766
|
}
|
|
781
|
-
function Kr(e, t) {
|
|
782
|
-
var r = e.length === 1 ? Ct : Nt;
|
|
783
|
-
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
784
|
-
}
|
|
785
767
|
function en(e, t) {
|
|
786
|
-
|
|
768
|
+
var r = e.length === 1 ? Kr : Ct;
|
|
769
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
787
770
|
}
|
|
788
771
|
function tn(e, t) {
|
|
789
|
-
return
|
|
772
|
+
return Nt(e, this, Ct, t.cache.create(), t.serializer);
|
|
790
773
|
}
|
|
791
774
|
var rn = function() {
|
|
792
775
|
return JSON.stringify(arguments);
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
776
|
+
}, nn = (
|
|
777
|
+
/** @class */
|
|
778
|
+
function() {
|
|
779
|
+
function e() {
|
|
780
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
781
|
+
}
|
|
782
|
+
return e.prototype.get = function(t) {
|
|
783
|
+
return this.cache[t];
|
|
784
|
+
}, e.prototype.set = function(t, r) {
|
|
785
|
+
this.cache[t] = r;
|
|
786
|
+
}, e;
|
|
787
|
+
}()
|
|
788
|
+
), on = {
|
|
804
789
|
create: function() {
|
|
805
|
-
return new
|
|
790
|
+
return new nn();
|
|
806
791
|
}
|
|
807
|
-
},
|
|
808
|
-
variadic:
|
|
809
|
-
|
|
810
|
-
|
|
792
|
+
}, Ce = {
|
|
793
|
+
variadic: tn
|
|
794
|
+
}, ye = function() {
|
|
795
|
+
return ye = Object.assign || function(t) {
|
|
796
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
797
|
+
r = arguments[n];
|
|
798
|
+
for (var o in r)
|
|
799
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
800
|
+
}
|
|
801
|
+
return t;
|
|
802
|
+
}, ye.apply(this, arguments);
|
|
803
|
+
};
|
|
804
|
+
var b;
|
|
811
805
|
(function(e) {
|
|
812
806
|
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";
|
|
813
807
|
})(b || (b = {}));
|
|
814
|
-
var
|
|
808
|
+
var _;
|
|
815
809
|
(function(e) {
|
|
816
810
|
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";
|
|
817
|
-
})(
|
|
818
|
-
var
|
|
811
|
+
})(_ || (_ = {}));
|
|
812
|
+
var j;
|
|
819
813
|
(function(e) {
|
|
820
814
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
821
|
-
})(
|
|
822
|
-
function
|
|
823
|
-
return e.type ===
|
|
815
|
+
})(j || (j = {}));
|
|
816
|
+
function ot(e) {
|
|
817
|
+
return e.type === _.literal;
|
|
824
818
|
}
|
|
825
|
-
function
|
|
826
|
-
return e.type ===
|
|
819
|
+
function sn(e) {
|
|
820
|
+
return e.type === _.argument;
|
|
827
821
|
}
|
|
828
822
|
function Lt(e) {
|
|
829
|
-
return e.type ===
|
|
823
|
+
return e.type === _.number;
|
|
830
824
|
}
|
|
831
825
|
function Mt(e) {
|
|
832
|
-
return e.type ===
|
|
826
|
+
return e.type === _.date;
|
|
833
827
|
}
|
|
834
828
|
function $t(e) {
|
|
835
|
-
return e.type ===
|
|
829
|
+
return e.type === _.time;
|
|
836
830
|
}
|
|
837
831
|
function Rt(e) {
|
|
838
|
-
return e.type ===
|
|
832
|
+
return e.type === _.select;
|
|
839
833
|
}
|
|
840
834
|
function Dt(e) {
|
|
841
|
-
return e.type ===
|
|
835
|
+
return e.type === _.plural;
|
|
842
836
|
}
|
|
843
|
-
function
|
|
844
|
-
return e.type ===
|
|
837
|
+
function an(e) {
|
|
838
|
+
return e.type === _.pound;
|
|
845
839
|
}
|
|
846
840
|
function Ut(e) {
|
|
847
|
-
return e.type ===
|
|
841
|
+
return e.type === _.tag;
|
|
848
842
|
}
|
|
849
843
|
function Gt(e) {
|
|
850
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
844
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
851
845
|
}
|
|
852
|
-
function
|
|
853
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
846
|
+
function Ge(e) {
|
|
847
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
854
848
|
}
|
|
855
|
-
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
856
|
-
function
|
|
849
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
850
|
+
function ln(e) {
|
|
857
851
|
var t = {};
|
|
858
|
-
return e.replace(
|
|
852
|
+
return e.replace(un, function(r) {
|
|
859
853
|
var n = r.length;
|
|
860
854
|
switch (r[0]) {
|
|
861
855
|
case "G":
|
|
@@ -944,18 +938,28 @@ function un(e) {
|
|
|
944
938
|
return "";
|
|
945
939
|
}), t;
|
|
946
940
|
}
|
|
947
|
-
var
|
|
948
|
-
function
|
|
941
|
+
var E = function() {
|
|
942
|
+
return E = Object.assign || function(t) {
|
|
943
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
944
|
+
r = arguments[n];
|
|
945
|
+
for (var o in r)
|
|
946
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
947
|
+
}
|
|
948
|
+
return t;
|
|
949
|
+
}, E.apply(this, arguments);
|
|
950
|
+
};
|
|
951
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
952
|
+
function cn(e) {
|
|
949
953
|
if (e.length === 0)
|
|
950
954
|
throw new Error("Number skeleton cannot be empty");
|
|
951
|
-
for (var t = e.split(
|
|
955
|
+
for (var t = e.split(hn).filter(function(m) {
|
|
952
956
|
return m.length > 0;
|
|
953
957
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
954
|
-
var
|
|
955
|
-
if (
|
|
958
|
+
var o = i[n], s = o.split("/");
|
|
959
|
+
if (s.length === 0)
|
|
956
960
|
throw new Error("Invalid number skeleton");
|
|
957
|
-
for (var u =
|
|
958
|
-
var f = h[
|
|
961
|
+
for (var u = s[0], l = s.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
962
|
+
var f = h[a];
|
|
959
963
|
if (f.length === 0)
|
|
960
964
|
throw new Error("Invalid number skeleton");
|
|
961
965
|
}
|
|
@@ -963,11 +967,11 @@ function hn(e) {
|
|
|
963
967
|
}
|
|
964
968
|
return r;
|
|
965
969
|
}
|
|
966
|
-
function
|
|
970
|
+
function fn(e) {
|
|
967
971
|
return e.replace(/^(.*?)-/, "");
|
|
968
972
|
}
|
|
969
|
-
var
|
|
970
|
-
function
|
|
973
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
974
|
+
function at(e) {
|
|
971
975
|
var t = {};
|
|
972
976
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
973
977
|
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)), "";
|
|
@@ -1013,7 +1017,7 @@ function zt(e) {
|
|
|
1013
1017
|
};
|
|
1014
1018
|
}
|
|
1015
1019
|
}
|
|
1016
|
-
function
|
|
1020
|
+
function dn(e) {
|
|
1017
1021
|
var t;
|
|
1018
1022
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1019
1023
|
notation: "engineering"
|
|
@@ -1031,7 +1035,7 @@ function ut(e) {
|
|
|
1031
1035
|
var t = {}, r = zt(e);
|
|
1032
1036
|
return r || t;
|
|
1033
1037
|
}
|
|
1034
|
-
function
|
|
1038
|
+
function pn(e) {
|
|
1035
1039
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1036
1040
|
var i = n[r];
|
|
1037
1041
|
switch (i.stem) {
|
|
@@ -1055,7 +1059,7 @@ function dn(e) {
|
|
|
1055
1059
|
continue;
|
|
1056
1060
|
case "measure-unit":
|
|
1057
1061
|
case "unit":
|
|
1058
|
-
t.style = "unit", t.unit =
|
|
1062
|
+
t.style = "unit", t.unit = fn(i.options[0]);
|
|
1059
1063
|
continue;
|
|
1060
1064
|
case "compact-short":
|
|
1061
1065
|
case "K":
|
|
@@ -1066,13 +1070,13 @@ function dn(e) {
|
|
|
1066
1070
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1067
1071
|
continue;
|
|
1068
1072
|
case "scientific":
|
|
1069
|
-
t =
|
|
1070
|
-
return
|
|
1073
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1074
|
+
return E(E({}, l), ut(a));
|
|
1071
1075
|
}, {}));
|
|
1072
1076
|
continue;
|
|
1073
1077
|
case "engineering":
|
|
1074
|
-
t =
|
|
1075
|
-
return
|
|
1078
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1079
|
+
return E(E({}, l), ut(a));
|
|
1076
1080
|
}, {}));
|
|
1077
1081
|
continue;
|
|
1078
1082
|
case "notation-simple":
|
|
@@ -1117,8 +1121,8 @@ function dn(e) {
|
|
|
1117
1121
|
case "integer-width":
|
|
1118
1122
|
if (i.options.length > 1)
|
|
1119
1123
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1120
|
-
i.options[0].replace(
|
|
1121
|
-
if (
|
|
1124
|
+
i.options[0].replace(mn, function(l, a, h, f, m, d) {
|
|
1125
|
+
if (a)
|
|
1122
1126
|
t.minimumIntegerDigits = h.length;
|
|
1123
1127
|
else {
|
|
1124
1128
|
if (f && m)
|
|
@@ -1134,28 +1138,28 @@ function dn(e) {
|
|
|
1134
1138
|
t.minimumIntegerDigits = i.stem.length;
|
|
1135
1139
|
continue;
|
|
1136
1140
|
}
|
|
1137
|
-
if (
|
|
1141
|
+
if (st.test(i.stem)) {
|
|
1138
1142
|
if (i.options.length > 1)
|
|
1139
1143
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1140
|
-
i.stem.replace(
|
|
1141
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1144
|
+
i.stem.replace(st, function(l, a, h, f, m, d) {
|
|
1145
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1142
1146
|
});
|
|
1143
|
-
var
|
|
1144
|
-
|
|
1147
|
+
var o = i.options[0];
|
|
1148
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), at(o)));
|
|
1145
1149
|
continue;
|
|
1146
1150
|
}
|
|
1147
1151
|
if (Ft.test(i.stem)) {
|
|
1148
|
-
t =
|
|
1152
|
+
t = E(E({}, t), at(i.stem));
|
|
1149
1153
|
continue;
|
|
1150
1154
|
}
|
|
1151
|
-
var
|
|
1152
|
-
|
|
1153
|
-
var u =
|
|
1154
|
-
u && (t =
|
|
1155
|
+
var s = zt(i.stem);
|
|
1156
|
+
s && (t = E(E({}, t), s));
|
|
1157
|
+
var u = dn(i.stem);
|
|
1158
|
+
u && (t = E(E({}, t), u));
|
|
1155
1159
|
}
|
|
1156
1160
|
return t;
|
|
1157
1161
|
}
|
|
1158
|
-
var
|
|
1162
|
+
var me = {
|
|
1159
1163
|
"001": [
|
|
1160
1164
|
"H",
|
|
1161
1165
|
"h"
|
|
@@ -2570,23 +2574,23 @@ var fe = {
|
|
|
2570
2574
|
"h"
|
|
2571
2575
|
]
|
|
2572
2576
|
};
|
|
2573
|
-
function
|
|
2577
|
+
function bn(e, t) {
|
|
2574
2578
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2575
2579
|
var i = e.charAt(n);
|
|
2576
2580
|
if (i === "j") {
|
|
2577
|
-
for (var
|
|
2578
|
-
|
|
2579
|
-
var
|
|
2580
|
-
for ((
|
|
2581
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2582
|
+
o++, n++;
|
|
2583
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = gn(t);
|
|
2584
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2581
2585
|
r += l;
|
|
2582
|
-
for (;
|
|
2583
|
-
r =
|
|
2586
|
+
for (; s-- > 0; )
|
|
2587
|
+
r = a + r;
|
|
2584
2588
|
} else
|
|
2585
2589
|
i === "J" ? r += "H" : r += i;
|
|
2586
2590
|
}
|
|
2587
2591
|
return r;
|
|
2588
2592
|
}
|
|
2589
|
-
function
|
|
2593
|
+
function gn(e) {
|
|
2590
2594
|
var t = e.hourCycle;
|
|
2591
2595
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2592
2596
|
e.hourCycles && // @ts-ignore
|
|
@@ -2605,23 +2609,23 @@ function bn(e) {
|
|
|
2605
2609
|
}
|
|
2606
2610
|
var r = e.language, n;
|
|
2607
2611
|
r !== "root" && (n = e.maximize().region);
|
|
2608
|
-
var i =
|
|
2612
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2609
2613
|
return i[0];
|
|
2610
2614
|
}
|
|
2611
|
-
var
|
|
2615
|
+
var Ne, yn = new RegExp("^".concat(kt.source, "*")), _n = new RegExp("".concat(kt.source, "*$"));
|
|
2612
2616
|
function y(e, t) {
|
|
2613
2617
|
return { start: e, end: t };
|
|
2614
2618
|
}
|
|
2615
|
-
var
|
|
2619
|
+
var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), vn = !!String.fromCodePoint, xn = !!Object.fromEntries, Tn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, Bn = Sn ? Number.isSafeInteger : function(e) {
|
|
2616
2620
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2617
|
-
},
|
|
2621
|
+
}, ke = !0;
|
|
2618
2622
|
try {
|
|
2619
|
-
var
|
|
2620
|
-
|
|
2623
|
+
var An = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
+
ke = ((Ne = An.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2621
2625
|
} catch (e) {
|
|
2622
|
-
|
|
2626
|
+
ke = !1;
|
|
2623
2627
|
}
|
|
2624
|
-
var lt =
|
|
2628
|
+
var lt = En ? (
|
|
2625
2629
|
// Native
|
|
2626
2630
|
function(t, r, n) {
|
|
2627
2631
|
return t.startsWith(r, n);
|
|
@@ -2631,31 +2635,31 @@ var lt = _n ? (
|
|
|
2631
2635
|
function(t, r, n) {
|
|
2632
2636
|
return t.slice(n, n + r.length) === r;
|
|
2633
2637
|
}
|
|
2634
|
-
),
|
|
2638
|
+
), Fe = vn ? String.fromCodePoint : (
|
|
2635
2639
|
// IE11
|
|
2636
2640
|
function() {
|
|
2637
2641
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2638
2642
|
t[r] = arguments[r];
|
|
2639
|
-
for (var n = "", i = t.length,
|
|
2640
|
-
if (
|
|
2641
|
-
throw RangeError(
|
|
2642
|
-
n +=
|
|
2643
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2644
|
+
if (s = t[o++], s > 1114111)
|
|
2645
|
+
throw RangeError(s + " is not a valid code point");
|
|
2646
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2643
2647
|
}
|
|
2644
2648
|
return n;
|
|
2645
2649
|
}
|
|
2646
2650
|
), ht = (
|
|
2647
2651
|
// native
|
|
2648
|
-
|
|
2652
|
+
xn ? Object.fromEntries : (
|
|
2649
2653
|
// Ponyfill
|
|
2650
2654
|
function(t) {
|
|
2651
2655
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2652
|
-
var
|
|
2653
|
-
r[
|
|
2656
|
+
var o = i[n], s = o[0], u = o[1];
|
|
2657
|
+
r[s] = u;
|
|
2654
2658
|
}
|
|
2655
2659
|
return r;
|
|
2656
2660
|
}
|
|
2657
2661
|
)
|
|
2658
|
-
), Vt =
|
|
2662
|
+
), Vt = Tn ? (
|
|
2659
2663
|
// Native
|
|
2660
2664
|
function(t, r) {
|
|
2661
2665
|
return t.codePointAt(r);
|
|
@@ -2665,11 +2669,11 @@ var lt = _n ? (
|
|
|
2665
2669
|
function(t, r) {
|
|
2666
2670
|
var n = t.length;
|
|
2667
2671
|
if (!(r < 0 || r >= n)) {
|
|
2668
|
-
var i = t.charCodeAt(r),
|
|
2669
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2672
|
+
var i = t.charCodeAt(r), o;
|
|
2673
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2670
2674
|
}
|
|
2671
2675
|
}
|
|
2672
|
-
),
|
|
2676
|
+
), Pn = Hn ? (
|
|
2673
2677
|
// Native
|
|
2674
2678
|
function(t) {
|
|
2675
2679
|
return t.trimStart();
|
|
@@ -2677,9 +2681,9 @@ var lt = _n ? (
|
|
|
2677
2681
|
) : (
|
|
2678
2682
|
// Ponyfill
|
|
2679
2683
|
function(t) {
|
|
2680
|
-
return t.replace(
|
|
2684
|
+
return t.replace(yn, "");
|
|
2681
2685
|
}
|
|
2682
|
-
),
|
|
2686
|
+
), On = wn ? (
|
|
2683
2687
|
// Native
|
|
2684
2688
|
function(t) {
|
|
2685
2689
|
return t.trimEnd();
|
|
@@ -2687,32 +2691,32 @@ var lt = _n ? (
|
|
|
2687
2691
|
) : (
|
|
2688
2692
|
// Ponyfill
|
|
2689
2693
|
function(t) {
|
|
2690
|
-
return t.replace(
|
|
2694
|
+
return t.replace(_n, "");
|
|
2691
2695
|
}
|
|
2692
2696
|
);
|
|
2693
2697
|
function Xt(e, t) {
|
|
2694
2698
|
return new RegExp(e, t);
|
|
2695
2699
|
}
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2700
|
+
var je;
|
|
2701
|
+
if (ke) {
|
|
2698
2702
|
var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2699
|
-
|
|
2703
|
+
je = function(t, r) {
|
|
2700
2704
|
var n;
|
|
2701
2705
|
ct.lastIndex = r;
|
|
2702
2706
|
var i = ct.exec(t);
|
|
2703
2707
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2704
2708
|
};
|
|
2705
2709
|
} else
|
|
2706
|
-
|
|
2710
|
+
je = function(t, r) {
|
|
2707
2711
|
for (var n = []; ; ) {
|
|
2708
2712
|
var i = Vt(t, r);
|
|
2709
|
-
if (i === void 0 || Wt(i) ||
|
|
2713
|
+
if (i === void 0 || Wt(i) || Ln(i))
|
|
2710
2714
|
break;
|
|
2711
2715
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2712
2716
|
}
|
|
2713
|
-
return
|
|
2717
|
+
return Fe.apply(void 0, n);
|
|
2714
2718
|
};
|
|
2715
|
-
var
|
|
2719
|
+
var In = (
|
|
2716
2720
|
/** @class */
|
|
2717
2721
|
function() {
|
|
2718
2722
|
function e(t, r) {
|
|
@@ -2724,35 +2728,35 @@ var On = (
|
|
|
2724
2728
|
return this.parseMessage(0, "", !1);
|
|
2725
2729
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2726
2730
|
for (var i = []; !this.isEOF(); ) {
|
|
2727
|
-
var
|
|
2728
|
-
if (
|
|
2729
|
-
var
|
|
2730
|
-
if (
|
|
2731
|
-
return
|
|
2732
|
-
i.push(
|
|
2731
|
+
var o = this.char();
|
|
2732
|
+
if (o === 123) {
|
|
2733
|
+
var s = this.parseArgument(t, n);
|
|
2734
|
+
if (s.err)
|
|
2735
|
+
return s;
|
|
2736
|
+
i.push(s.val);
|
|
2733
2737
|
} else {
|
|
2734
|
-
if (
|
|
2738
|
+
if (o === 125 && t > 0)
|
|
2735
2739
|
break;
|
|
2736
|
-
if (
|
|
2740
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2737
2741
|
var u = this.clonePosition();
|
|
2738
2742
|
this.bump(), i.push({
|
|
2739
|
-
type:
|
|
2743
|
+
type: _.pound,
|
|
2740
2744
|
location: y(u, this.clonePosition())
|
|
2741
2745
|
});
|
|
2742
|
-
} else if (
|
|
2746
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2743
2747
|
if (n)
|
|
2744
2748
|
break;
|
|
2745
2749
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2746
|
-
} else if (
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
return
|
|
2750
|
-
i.push(
|
|
2750
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
2751
|
+
var s = this.parseTag(t, r);
|
|
2752
|
+
if (s.err)
|
|
2753
|
+
return s;
|
|
2754
|
+
i.push(s.val);
|
|
2751
2755
|
} else {
|
|
2752
|
-
var
|
|
2753
|
-
if (
|
|
2754
|
-
return
|
|
2755
|
-
i.push(
|
|
2756
|
+
var s = this.parseLiteral(t, r);
|
|
2757
|
+
if (s.err)
|
|
2758
|
+
return s;
|
|
2759
|
+
i.push(s.val);
|
|
2756
2760
|
}
|
|
2757
2761
|
}
|
|
2758
2762
|
}
|
|
@@ -2764,26 +2768,26 @@ var On = (
|
|
|
2764
2768
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2765
2769
|
return {
|
|
2766
2770
|
val: {
|
|
2767
|
-
type:
|
|
2771
|
+
type: _.literal,
|
|
2768
2772
|
value: "<".concat(i, "/>"),
|
|
2769
2773
|
location: y(n, this.clonePosition())
|
|
2770
2774
|
},
|
|
2771
2775
|
err: null
|
|
2772
2776
|
};
|
|
2773
2777
|
if (this.bumpIf(">")) {
|
|
2774
|
-
var
|
|
2775
|
-
if (
|
|
2776
|
-
return
|
|
2777
|
-
var
|
|
2778
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2779
|
+
if (o.err)
|
|
2780
|
+
return o;
|
|
2781
|
+
var s = o.val, u = this.clonePosition();
|
|
2778
2782
|
if (this.bumpIf("</")) {
|
|
2779
|
-
if (this.isEOF() || !
|
|
2783
|
+
if (this.isEOF() || !ze(this.char()))
|
|
2780
2784
|
return this.error(b.INVALID_TAG, y(u, this.clonePosition()));
|
|
2781
|
-
var l = this.clonePosition(),
|
|
2782
|
-
return i !==
|
|
2785
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2786
|
+
return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2783
2787
|
val: {
|
|
2784
|
-
type:
|
|
2788
|
+
type: _.tag,
|
|
2785
2789
|
value: i,
|
|
2786
|
-
children:
|
|
2790
|
+
children: s,
|
|
2787
2791
|
location: y(n, this.clonePosition())
|
|
2788
2792
|
},
|
|
2789
2793
|
err: null
|
|
@@ -2794,21 +2798,21 @@ var On = (
|
|
|
2794
2798
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2795
2799
|
}, e.prototype.parseTagName = function() {
|
|
2796
2800
|
var t = this.offset();
|
|
2797
|
-
for (this.bump(); !this.isEOF() &&
|
|
2801
|
+
for (this.bump(); !this.isEOF() && Nn(this.char()); )
|
|
2798
2802
|
this.bump();
|
|
2799
2803
|
return this.message.slice(t, this.offset());
|
|
2800
2804
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2801
2805
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2802
|
-
var
|
|
2803
|
-
if (a) {
|
|
2804
|
-
i += a;
|
|
2805
|
-
continue;
|
|
2806
|
-
}
|
|
2807
|
-
var o = this.tryParseUnquoted(t, r);
|
|
2806
|
+
var o = this.tryParseQuote(r);
|
|
2808
2807
|
if (o) {
|
|
2809
2808
|
i += o;
|
|
2810
2809
|
continue;
|
|
2811
2810
|
}
|
|
2811
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2812
|
+
if (s) {
|
|
2813
|
+
i += s;
|
|
2814
|
+
continue;
|
|
2815
|
+
}
|
|
2812
2816
|
var u = this.tryParseLeftAngleBracket();
|
|
2813
2817
|
if (u) {
|
|
2814
2818
|
i += u;
|
|
@@ -2818,12 +2822,12 @@ var On = (
|
|
|
2818
2822
|
}
|
|
2819
2823
|
var l = y(n, this.clonePosition());
|
|
2820
2824
|
return {
|
|
2821
|
-
val: { type:
|
|
2825
|
+
val: { type: _.literal, value: i, location: l },
|
|
2822
2826
|
err: null
|
|
2823
2827
|
};
|
|
2824
2828
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2825
2829
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2826
|
-
!
|
|
2830
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2827
2831
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2828
2832
|
if (this.isEOF() || this.char() !== 39)
|
|
2829
2833
|
return null;
|
|
@@ -2857,12 +2861,12 @@ var On = (
|
|
|
2857
2861
|
r.push(n);
|
|
2858
2862
|
this.bump();
|
|
2859
2863
|
}
|
|
2860
|
-
return
|
|
2864
|
+
return Fe.apply(void 0, r);
|
|
2861
2865
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2862
2866
|
if (this.isEOF())
|
|
2863
2867
|
return null;
|
|
2864
2868
|
var n = this.char();
|
|
2865
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2869
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2866
2870
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2867
2871
|
var n = this.clonePosition();
|
|
2868
2872
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2878,7 +2882,7 @@ var On = (
|
|
|
2878
2882
|
case 125:
|
|
2879
2883
|
return this.bump(), {
|
|
2880
2884
|
val: {
|
|
2881
|
-
type:
|
|
2885
|
+
type: _.argument,
|
|
2882
2886
|
// value does not include the opening and closing braces.
|
|
2883
2887
|
value: i,
|
|
2884
2888
|
location: y(n, this.clonePosition())
|
|
@@ -2891,54 +2895,54 @@ var On = (
|
|
|
2891
2895
|
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2892
2896
|
}
|
|
2893
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2894
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2898
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2895
2899
|
this.bumpTo(i);
|
|
2896
|
-
var
|
|
2897
|
-
return { value: n, location:
|
|
2900
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
2901
|
+
return { value: n, location: s };
|
|
2898
2902
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2899
|
-
var
|
|
2903
|
+
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2900
2904
|
switch (u) {
|
|
2901
2905
|
case "":
|
|
2902
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2906
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
2903
2907
|
case "number":
|
|
2904
2908
|
case "date":
|
|
2905
2909
|
case "time": {
|
|
2906
2910
|
this.bumpSpace();
|
|
2907
|
-
var
|
|
2911
|
+
var a = null;
|
|
2908
2912
|
if (this.bumpIf(",")) {
|
|
2909
2913
|
this.bumpSpace();
|
|
2910
2914
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2911
2915
|
if (f.err)
|
|
2912
2916
|
return f;
|
|
2913
|
-
var m =
|
|
2917
|
+
var m = On(f.val);
|
|
2914
2918
|
if (m.length === 0)
|
|
2915
2919
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2916
2920
|
var d = y(h, this.clonePosition());
|
|
2917
|
-
|
|
2921
|
+
a = { style: m, styleLocation: d };
|
|
2918
2922
|
}
|
|
2919
2923
|
var p = this.tryParseArgumentClose(i);
|
|
2920
2924
|
if (p.err)
|
|
2921
2925
|
return p;
|
|
2922
2926
|
var v = y(i, this.clonePosition());
|
|
2923
|
-
if (
|
|
2924
|
-
var T =
|
|
2927
|
+
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2928
|
+
var T = Pn(a.style.slice(2));
|
|
2925
2929
|
if (u === "number") {
|
|
2926
|
-
var f = this.parseNumberSkeletonFromString(T,
|
|
2930
|
+
var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
|
|
2927
2931
|
return f.err ? f : {
|
|
2928
|
-
val: { type:
|
|
2932
|
+
val: { type: _.number, value: n, location: v, style: f.val },
|
|
2929
2933
|
err: null
|
|
2930
2934
|
};
|
|
2931
2935
|
} else {
|
|
2932
2936
|
if (T.length === 0)
|
|
2933
2937
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
2934
2938
|
var x = T;
|
|
2935
|
-
this.locale && (x =
|
|
2939
|
+
this.locale && (x = bn(T, this.locale));
|
|
2936
2940
|
var m = {
|
|
2937
|
-
type:
|
|
2941
|
+
type: j.dateTime,
|
|
2938
2942
|
pattern: x,
|
|
2939
|
-
location:
|
|
2940
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2941
|
-
}, c = u === "date" ?
|
|
2943
|
+
location: a.styleLocation,
|
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? ln(x) : {}
|
|
2945
|
+
}, c = u === "date" ? _.date : _.time;
|
|
2942
2946
|
return {
|
|
2943
2947
|
val: { type: c, value: n, location: v, style: m },
|
|
2944
2948
|
err: null
|
|
@@ -2947,10 +2951,10 @@ var On = (
|
|
|
2947
2951
|
}
|
|
2948
2952
|
return {
|
|
2949
2953
|
val: {
|
|
2950
|
-
type: u === "number" ?
|
|
2954
|
+
type: u === "number" ? _.number : u === "date" ? _.date : _.time,
|
|
2951
2955
|
value: n,
|
|
2952
2956
|
location: v,
|
|
2953
|
-
style: (
|
|
2957
|
+
style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
|
|
2954
2958
|
},
|
|
2955
2959
|
err: null
|
|
2956
2960
|
};
|
|
@@ -2960,39 +2964,39 @@ var On = (
|
|
|
2960
2964
|
case "select": {
|
|
2961
2965
|
var g = this.clonePosition();
|
|
2962
2966
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2963
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g,
|
|
2967
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ye({}, g)));
|
|
2964
2968
|
this.bumpSpace();
|
|
2965
|
-
var
|
|
2966
|
-
if (u !== "select" &&
|
|
2969
|
+
var P = this.parseIdentifierIfPossible(), L = 0;
|
|
2970
|
+
if (u !== "select" && P.value === "offset") {
|
|
2967
2971
|
if (!this.bumpIf(":"))
|
|
2968
2972
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2969
2973
|
this.bumpSpace();
|
|
2970
2974
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2971
2975
|
if (f.err)
|
|
2972
2976
|
return f;
|
|
2973
|
-
this.bumpSpace(),
|
|
2977
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), L = f.val;
|
|
2974
2978
|
}
|
|
2975
|
-
var
|
|
2976
|
-
if (
|
|
2977
|
-
return
|
|
2979
|
+
var oe = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2980
|
+
if (oe.err)
|
|
2981
|
+
return oe;
|
|
2978
2982
|
var p = this.tryParseArgumentClose(i);
|
|
2979
2983
|
if (p.err)
|
|
2980
2984
|
return p;
|
|
2981
2985
|
var qe = y(i, this.clonePosition());
|
|
2982
2986
|
return u === "select" ? {
|
|
2983
2987
|
val: {
|
|
2984
|
-
type:
|
|
2988
|
+
type: _.select,
|
|
2985
2989
|
value: n,
|
|
2986
|
-
options: ht(
|
|
2990
|
+
options: ht(oe.val),
|
|
2987
2991
|
location: qe
|
|
2988
2992
|
},
|
|
2989
2993
|
err: null
|
|
2990
2994
|
} : {
|
|
2991
2995
|
val: {
|
|
2992
|
-
type:
|
|
2996
|
+
type: _.plural,
|
|
2993
2997
|
value: n,
|
|
2994
|
-
options: ht(
|
|
2995
|
-
offset:
|
|
2998
|
+
options: ht(oe.val),
|
|
2999
|
+
offset: L,
|
|
2996
3000
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2997
3001
|
location: qe
|
|
2998
3002
|
},
|
|
@@ -3000,7 +3004,7 @@ var On = (
|
|
|
3000
3004
|
};
|
|
3001
3005
|
}
|
|
3002
3006
|
default:
|
|
3003
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
3007
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3004
3008
|
}
|
|
3005
3009
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3006
3010
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3042,34 +3046,34 @@ var On = (
|
|
|
3042
3046
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3043
3047
|
var n = [];
|
|
3044
3048
|
try {
|
|
3045
|
-
n =
|
|
3049
|
+
n = cn(t);
|
|
3046
3050
|
} catch (i) {
|
|
3047
3051
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3048
3052
|
}
|
|
3049
3053
|
return {
|
|
3050
3054
|
val: {
|
|
3051
|
-
type:
|
|
3055
|
+
type: j.number,
|
|
3052
3056
|
tokens: n,
|
|
3053
3057
|
location: r,
|
|
3054
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3058
|
+
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
3055
3059
|
},
|
|
3056
3060
|
err: null
|
|
3057
3061
|
};
|
|
3058
3062
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3059
|
-
for (var
|
|
3060
|
-
if (
|
|
3063
|
+
for (var o, s = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3064
|
+
if (a.length === 0) {
|
|
3061
3065
|
var f = this.clonePosition();
|
|
3062
3066
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3063
3067
|
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3064
3068
|
if (m.err)
|
|
3065
3069
|
return m;
|
|
3066
|
-
h = y(f, this.clonePosition()),
|
|
3070
|
+
h = y(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
3067
3071
|
} else
|
|
3068
3072
|
break;
|
|
3069
3073
|
}
|
|
3070
|
-
if (l.has(
|
|
3074
|
+
if (l.has(a))
|
|
3071
3075
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3072
|
-
|
|
3076
|
+
a === "other" && (s = !0), this.bumpSpace();
|
|
3073
3077
|
var d = this.clonePosition();
|
|
3074
3078
|
if (!this.bumpIf("{"))
|
|
3075
3079
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3080,26 +3084,26 @@ var On = (
|
|
|
3080
3084
|
if (v.err)
|
|
3081
3085
|
return v;
|
|
3082
3086
|
u.push([
|
|
3083
|
-
|
|
3087
|
+
a,
|
|
3084
3088
|
{
|
|
3085
3089
|
value: p.val,
|
|
3086
3090
|
location: y(d, this.clonePosition())
|
|
3087
3091
|
}
|
|
3088
|
-
]), l.add(
|
|
3092
|
+
]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
3089
3093
|
}
|
|
3090
|
-
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3094
|
+
return u.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: u, err: null };
|
|
3091
3095
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3092
3096
|
var n = 1, i = this.clonePosition();
|
|
3093
3097
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3094
|
-
for (var
|
|
3098
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3095
3099
|
var u = this.char();
|
|
3096
3100
|
if (u >= 48 && u <= 57)
|
|
3097
|
-
|
|
3101
|
+
o = !0, s = s * 10 + (u - 48), this.bump();
|
|
3098
3102
|
else
|
|
3099
3103
|
break;
|
|
3100
3104
|
}
|
|
3101
3105
|
var l = y(i, this.clonePosition());
|
|
3102
|
-
return
|
|
3106
|
+
return o ? (s *= n, Bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3103
3107
|
}, e.prototype.offset = function() {
|
|
3104
3108
|
return this.position.offset;
|
|
3105
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3165,50 +3169,50 @@ var On = (
|
|
|
3165
3169
|
}, e;
|
|
3166
3170
|
}()
|
|
3167
3171
|
);
|
|
3168
|
-
function
|
|
3172
|
+
function ze(e) {
|
|
3169
3173
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3170
3174
|
}
|
|
3171
|
-
function In(e) {
|
|
3172
|
-
return Fe(e) || e === 47;
|
|
3173
|
-
}
|
|
3174
3175
|
function Cn(e) {
|
|
3176
|
+
return ze(e) || e === 47;
|
|
3177
|
+
}
|
|
3178
|
+
function Nn(e) {
|
|
3175
3179
|
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;
|
|
3176
3180
|
}
|
|
3177
3181
|
function Wt(e) {
|
|
3178
3182
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3179
3183
|
}
|
|
3180
|
-
function
|
|
3184
|
+
function Ln(e) {
|
|
3181
3185
|
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;
|
|
3182
3186
|
}
|
|
3183
|
-
function
|
|
3187
|
+
function Ve(e) {
|
|
3184
3188
|
e.forEach(function(t) {
|
|
3185
3189
|
if (delete t.location, Rt(t) || Dt(t))
|
|
3186
3190
|
for (var r in t.options)
|
|
3187
|
-
delete t.options[r].location,
|
|
3191
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3188
3192
|
else
|
|
3189
|
-
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) &&
|
|
3193
|
+
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ge(t.style) ? delete t.style.location : Ut(t) && Ve(t.children);
|
|
3190
3194
|
});
|
|
3191
3195
|
}
|
|
3192
|
-
function
|
|
3193
|
-
t === void 0 && (t = {}), t =
|
|
3194
|
-
var r = new
|
|
3196
|
+
function Mn(e, t) {
|
|
3197
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3198
|
+
var r = new In(e, t).parse();
|
|
3195
3199
|
if (r.err) {
|
|
3196
3200
|
var n = SyntaxError(b[r.err.kind]);
|
|
3197
3201
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3198
3202
|
}
|
|
3199
|
-
return t != null && t.captureLocation ||
|
|
3203
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3200
3204
|
}
|
|
3201
|
-
var
|
|
3205
|
+
var z;
|
|
3202
3206
|
(function(e) {
|
|
3203
3207
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3204
|
-
})(
|
|
3205
|
-
var
|
|
3208
|
+
})(z || (z = {}));
|
|
3209
|
+
var we = (
|
|
3206
3210
|
/** @class */
|
|
3207
3211
|
function(e) {
|
|
3208
|
-
|
|
3212
|
+
He(t, e);
|
|
3209
3213
|
function t(r, n, i) {
|
|
3210
|
-
var
|
|
3211
|
-
return
|
|
3214
|
+
var o = e.call(this, r) || this;
|
|
3215
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3212
3216
|
}
|
|
3213
3217
|
return t.prototype.toString = function() {
|
|
3214
3218
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3217,72 +3221,72 @@ var Te = (
|
|
|
3217
3221
|
), ft = (
|
|
3218
3222
|
/** @class */
|
|
3219
3223
|
function(e) {
|
|
3220
|
-
|
|
3221
|
-
function t(r, n, i,
|
|
3222
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3224
|
+
He(t, e);
|
|
3225
|
+
function t(r, n, i, o) {
|
|
3226
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3223
3227
|
}
|
|
3224
3228
|
return t;
|
|
3225
|
-
}(
|
|
3226
|
-
),
|
|
3229
|
+
}(we)
|
|
3230
|
+
), $n = (
|
|
3227
3231
|
/** @class */
|
|
3228
3232
|
function(e) {
|
|
3229
|
-
|
|
3233
|
+
He(t, e);
|
|
3230
3234
|
function t(r, n, i) {
|
|
3231
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3235
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3232
3236
|
}
|
|
3233
3237
|
return t;
|
|
3234
|
-
}(
|
|
3235
|
-
),
|
|
3238
|
+
}(we)
|
|
3239
|
+
), Rn = (
|
|
3236
3240
|
/** @class */
|
|
3237
3241
|
function(e) {
|
|
3238
|
-
|
|
3242
|
+
He(t, e);
|
|
3239
3243
|
function t(r, n) {
|
|
3240
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3244
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3241
3245
|
}
|
|
3242
3246
|
return t;
|
|
3243
|
-
}(
|
|
3247
|
+
}(we)
|
|
3244
3248
|
), H;
|
|
3245
3249
|
(function(e) {
|
|
3246
3250
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3247
3251
|
})(H || (H = {}));
|
|
3248
|
-
function
|
|
3252
|
+
function Dn(e) {
|
|
3249
3253
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3250
3254
|
var n = t[t.length - 1];
|
|
3251
3255
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3252
3256
|
}, []);
|
|
3253
3257
|
}
|
|
3254
|
-
function
|
|
3258
|
+
function Un(e) {
|
|
3255
3259
|
return typeof e == "function";
|
|
3256
3260
|
}
|
|
3257
|
-
function
|
|
3258
|
-
if (e.length === 1 &&
|
|
3261
|
+
function be(e, t, r, n, i, o, s) {
|
|
3262
|
+
if (e.length === 1 && ot(e[0]))
|
|
3259
3263
|
return [
|
|
3260
3264
|
{
|
|
3261
3265
|
type: H.literal,
|
|
3262
3266
|
value: e[0].value
|
|
3263
3267
|
}
|
|
3264
3268
|
];
|
|
3265
|
-
for (var u = [], l = 0,
|
|
3266
|
-
var h =
|
|
3267
|
-
if (
|
|
3269
|
+
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3270
|
+
var h = a[l];
|
|
3271
|
+
if (ot(h)) {
|
|
3268
3272
|
u.push({
|
|
3269
3273
|
type: H.literal,
|
|
3270
3274
|
value: h.value
|
|
3271
3275
|
});
|
|
3272
3276
|
continue;
|
|
3273
3277
|
}
|
|
3274
|
-
if (
|
|
3275
|
-
typeof
|
|
3278
|
+
if (an(h)) {
|
|
3279
|
+
typeof o == "number" && u.push({
|
|
3276
3280
|
type: H.literal,
|
|
3277
|
-
value: r.getNumberFormat(t).format(
|
|
3281
|
+
value: r.getNumberFormat(t).format(o)
|
|
3278
3282
|
});
|
|
3279
3283
|
continue;
|
|
3280
3284
|
}
|
|
3281
3285
|
var f = h.value;
|
|
3282
3286
|
if (!(i && f in i))
|
|
3283
|
-
throw new
|
|
3287
|
+
throw new Rn(f, s);
|
|
3284
3288
|
var m = i[f];
|
|
3285
|
-
if (
|
|
3289
|
+
if (sn(h)) {
|
|
3286
3290
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), u.push({
|
|
3287
3291
|
type: typeof m == "string" ? H.literal : H.object,
|
|
3288
3292
|
value: m
|
|
@@ -3290,7 +3294,7 @@ function pe(e, t, r, n, i, a, o) {
|
|
|
3290
3294
|
continue;
|
|
3291
3295
|
}
|
|
3292
3296
|
if (Mt(h)) {
|
|
3293
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3297
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3294
3298
|
u.push({
|
|
3295
3299
|
type: H.literal,
|
|
3296
3300
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
@@ -3298,7 +3302,7 @@ function pe(e, t, r, n, i, a, o) {
|
|
|
3298
3302
|
continue;
|
|
3299
3303
|
}
|
|
3300
3304
|
if ($t(h)) {
|
|
3301
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3305
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3302
3306
|
u.push({
|
|
3303
3307
|
type: H.literal,
|
|
3304
3308
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
@@ -3315,54 +3319,54 @@ function pe(e, t, r, n, i, a, o) {
|
|
|
3315
3319
|
}
|
|
3316
3320
|
if (Ut(h)) {
|
|
3317
3321
|
var p = h.children, v = h.value, T = i[v];
|
|
3318
|
-
if (!
|
|
3319
|
-
throw new
|
|
3320
|
-
var x =
|
|
3321
|
-
return
|
|
3322
|
+
if (!Un(T))
|
|
3323
|
+
throw new $n(v, "function", s);
|
|
3324
|
+
var x = be(p, t, r, n, i, o), c = T(x.map(function(L) {
|
|
3325
|
+
return L.value;
|
|
3322
3326
|
}));
|
|
3323
|
-
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(
|
|
3327
|
+
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(L) {
|
|
3324
3328
|
return {
|
|
3325
|
-
type: typeof
|
|
3326
|
-
value:
|
|
3329
|
+
type: typeof L == "string" ? H.literal : H.object,
|
|
3330
|
+
value: L
|
|
3327
3331
|
};
|
|
3328
3332
|
}));
|
|
3329
3333
|
}
|
|
3330
3334
|
if (Rt(h)) {
|
|
3331
3335
|
var g = h.options[m] || h.options.other;
|
|
3332
3336
|
if (!g)
|
|
3333
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3334
|
-
u.push.apply(u,
|
|
3337
|
+
throw new ft(h.value, m, Object.keys(h.options), s);
|
|
3338
|
+
u.push.apply(u, be(g.value, t, r, n, i));
|
|
3335
3339
|
continue;
|
|
3336
3340
|
}
|
|
3337
3341
|
if (Dt(h)) {
|
|
3338
3342
|
var g = h.options["=".concat(m)];
|
|
3339
3343
|
if (!g) {
|
|
3340
3344
|
if (!Intl.PluralRules)
|
|
3341
|
-
throw new
|
|
3345
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3342
3346
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3343
|
-
`,
|
|
3344
|
-
var
|
|
3345
|
-
g = h.options[
|
|
3347
|
+
`, z.MISSING_INTL_API, s);
|
|
3348
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3349
|
+
g = h.options[P] || h.options.other;
|
|
3346
3350
|
}
|
|
3347
3351
|
if (!g)
|
|
3348
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3349
|
-
u.push.apply(u,
|
|
3352
|
+
throw new ft(h.value, m, Object.keys(h.options), s);
|
|
3353
|
+
u.push.apply(u, be(g.value, t, r, n, i, m - (h.offset || 0)));
|
|
3350
3354
|
continue;
|
|
3351
3355
|
}
|
|
3352
3356
|
}
|
|
3353
|
-
return
|
|
3357
|
+
return Dn(u);
|
|
3354
3358
|
}
|
|
3355
|
-
function
|
|
3356
|
-
return t ?
|
|
3357
|
-
return r[n] =
|
|
3359
|
+
function Gn(e, t) {
|
|
3360
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3361
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3358
3362
|
}, {})) : e;
|
|
3359
3363
|
}
|
|
3360
|
-
function
|
|
3364
|
+
function kn(e, t) {
|
|
3361
3365
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3362
|
-
return r[n] =
|
|
3363
|
-
},
|
|
3366
|
+
return r[n] = Gn(e[n], t[n]), r;
|
|
3367
|
+
}, S({}, e)) : e;
|
|
3364
3368
|
}
|
|
3365
|
-
function
|
|
3369
|
+
function Le(e) {
|
|
3366
3370
|
return {
|
|
3367
3371
|
create: function() {
|
|
3368
3372
|
return {
|
|
@@ -3376,35 +3380,35 @@ function Ce(e) {
|
|
|
3376
3380
|
}
|
|
3377
3381
|
};
|
|
3378
3382
|
}
|
|
3379
|
-
function
|
|
3383
|
+
function Fn(e) {
|
|
3380
3384
|
return e === void 0 && (e = {
|
|
3381
3385
|
number: {},
|
|
3382
3386
|
dateTime: {},
|
|
3383
3387
|
pluralRules: {}
|
|
3384
3388
|
}), {
|
|
3385
|
-
getNumberFormat:
|
|
3389
|
+
getNumberFormat: Ie(function() {
|
|
3386
3390
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3387
3391
|
r[n] = arguments[n];
|
|
3388
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3392
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3389
3393
|
}, {
|
|
3390
|
-
cache:
|
|
3391
|
-
strategy:
|
|
3394
|
+
cache: Le(e.number),
|
|
3395
|
+
strategy: Ce.variadic
|
|
3392
3396
|
}),
|
|
3393
|
-
getDateTimeFormat:
|
|
3397
|
+
getDateTimeFormat: Ie(function() {
|
|
3394
3398
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3395
3399
|
r[n] = arguments[n];
|
|
3396
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3400
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3397
3401
|
}, {
|
|
3398
|
-
cache:
|
|
3399
|
-
strategy:
|
|
3402
|
+
cache: Le(e.dateTime),
|
|
3403
|
+
strategy: Ce.variadic
|
|
3400
3404
|
}),
|
|
3401
|
-
getPluralRules:
|
|
3405
|
+
getPluralRules: Ie(function() {
|
|
3402
3406
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3403
3407
|
r[n] = arguments[n];
|
|
3404
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3408
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3405
3409
|
}, {
|
|
3406
|
-
cache:
|
|
3407
|
-
strategy:
|
|
3410
|
+
cache: Le(e.pluralRules),
|
|
3411
|
+
strategy: Ce.variadic
|
|
3408
3412
|
})
|
|
3409
3413
|
};
|
|
3410
3414
|
}
|
|
@@ -3413,40 +3417,40 @@ var Zt = (
|
|
|
3413
3417
|
function() {
|
|
3414
3418
|
function e(t, r, n, i) {
|
|
3415
3419
|
r === void 0 && (r = e.defaultLocale);
|
|
3416
|
-
var
|
|
3420
|
+
var o = this;
|
|
3417
3421
|
if (this.formatterCache = {
|
|
3418
3422
|
number: {},
|
|
3419
3423
|
dateTime: {},
|
|
3420
3424
|
pluralRules: {}
|
|
3421
3425
|
}, this.format = function(l) {
|
|
3422
|
-
var
|
|
3423
|
-
if (
|
|
3424
|
-
return
|
|
3425
|
-
var h =
|
|
3426
|
+
var a = o.formatToParts(l);
|
|
3427
|
+
if (a.length === 1)
|
|
3428
|
+
return a[0].value;
|
|
3429
|
+
var h = a.reduce(function(f, m) {
|
|
3426
3430
|
return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3427
3431
|
}, []);
|
|
3428
3432
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3429
3433
|
}, this.formatToParts = function(l) {
|
|
3430
|
-
return
|
|
3434
|
+
return be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3431
3435
|
}, this.resolvedOptions = function() {
|
|
3432
3436
|
var l;
|
|
3433
3437
|
return {
|
|
3434
|
-
locale: ((l =
|
|
3438
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3435
3439
|
};
|
|
3436
3440
|
}, this.getAst = function() {
|
|
3437
|
-
return
|
|
3441
|
+
return o.ast;
|
|
3438
3442
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3439
3443
|
if (this.message = t, !e.__parse)
|
|
3440
3444
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3441
|
-
var
|
|
3442
|
-
|
|
3443
|
-
var u = Qr(
|
|
3444
|
-
this.ast = e.__parse(t,
|
|
3445
|
+
var s = i || {};
|
|
3446
|
+
s.formatters;
|
|
3447
|
+
var u = Qr(s, ["formatters"]);
|
|
3448
|
+
this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
|
|
3445
3449
|
} else
|
|
3446
3450
|
this.ast = t;
|
|
3447
3451
|
if (!Array.isArray(this.ast))
|
|
3448
3452
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3449
|
-
this.formats =
|
|
3453
|
+
this.formats = kn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3450
3454
|
}
|
|
3451
3455
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3452
3456
|
get: function() {
|
|
@@ -3459,7 +3463,7 @@ var Zt = (
|
|
|
3459
3463
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3460
3464
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3461
3465
|
}
|
|
3462
|
-
}, e.__parse =
|
|
3466
|
+
}, e.__parse = Mn, e.formats = {
|
|
3463
3467
|
number: {
|
|
3464
3468
|
integer: {
|
|
3465
3469
|
maximumFractionDigits: 0
|
|
@@ -3520,7 +3524,7 @@ var Zt = (
|
|
|
3520
3524
|
}, e;
|
|
3521
3525
|
}()
|
|
3522
3526
|
);
|
|
3523
|
-
function
|
|
3527
|
+
function jn(e, t) {
|
|
3524
3528
|
if (t == null)
|
|
3525
3529
|
return;
|
|
3526
3530
|
if (t in e)
|
|
@@ -3530,9 +3534,9 @@ function Fn(e, t) {
|
|
|
3530
3534
|
for (let i = 0; i < r.length; i++)
|
|
3531
3535
|
if (typeof n == "object") {
|
|
3532
3536
|
if (i > 0) {
|
|
3533
|
-
const
|
|
3534
|
-
if (
|
|
3535
|
-
n = n[
|
|
3537
|
+
const o = r.slice(i, r.length).join(".");
|
|
3538
|
+
if (o in n) {
|
|
3539
|
+
n = n[o];
|
|
3536
3540
|
break;
|
|
3537
3541
|
}
|
|
3538
3542
|
}
|
|
@@ -3541,36 +3545,36 @@ function Fn(e, t) {
|
|
|
3541
3545
|
n = void 0;
|
|
3542
3546
|
return n;
|
|
3543
3547
|
}
|
|
3544
|
-
const
|
|
3548
|
+
const I = {}, zn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
|
|
3545
3549
|
if (t == null)
|
|
3546
3550
|
return;
|
|
3547
|
-
if (t in
|
|
3548
|
-
return
|
|
3549
|
-
const r =
|
|
3551
|
+
if (t in I && e in I[t])
|
|
3552
|
+
return I[t][e];
|
|
3553
|
+
const r = ie(t);
|
|
3550
3554
|
for (let n = 0; n < r.length; n++) {
|
|
3551
|
-
const i = r[n],
|
|
3552
|
-
if (
|
|
3553
|
-
return
|
|
3555
|
+
const i = r[n], o = Xn(i, e);
|
|
3556
|
+
if (o)
|
|
3557
|
+
return zn(e, t, o);
|
|
3554
3558
|
}
|
|
3555
3559
|
};
|
|
3556
3560
|
let Ze;
|
|
3557
|
-
const
|
|
3558
|
-
function
|
|
3561
|
+
const ne = Te({});
|
|
3562
|
+
function Vn(e) {
|
|
3559
3563
|
return Ze[e] || null;
|
|
3560
3564
|
}
|
|
3561
3565
|
function qt(e) {
|
|
3562
3566
|
return e in Ze;
|
|
3563
3567
|
}
|
|
3564
|
-
function
|
|
3568
|
+
function Xn(e, t) {
|
|
3565
3569
|
if (!qt(e))
|
|
3566
3570
|
return null;
|
|
3567
|
-
const r =
|
|
3568
|
-
return
|
|
3571
|
+
const r = Vn(e);
|
|
3572
|
+
return jn(r, t);
|
|
3569
3573
|
}
|
|
3570
|
-
function
|
|
3574
|
+
function Wn(e) {
|
|
3571
3575
|
if (e == null)
|
|
3572
3576
|
return;
|
|
3573
|
-
const t =
|
|
3577
|
+
const t = ie(e);
|
|
3574
3578
|
for (let r = 0; r < t.length; r++) {
|
|
3575
3579
|
const n = t[r];
|
|
3576
3580
|
if (qt(n))
|
|
@@ -3578,64 +3582,64 @@ function Xn(e) {
|
|
|
3578
3582
|
}
|
|
3579
3583
|
}
|
|
3580
3584
|
function Qt(e, ...t) {
|
|
3581
|
-
delete
|
|
3585
|
+
delete I[e], ne.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3582
3586
|
}
|
|
3583
|
-
|
|
3584
|
-
[
|
|
3587
|
+
W(
|
|
3588
|
+
[ne],
|
|
3585
3589
|
([e]) => Object.keys(e)
|
|
3586
3590
|
);
|
|
3587
|
-
|
|
3588
|
-
const
|
|
3589
|
-
function
|
|
3590
|
-
|
|
3591
|
+
ne.subscribe((e) => Ze = e);
|
|
3592
|
+
const ge = {};
|
|
3593
|
+
function Zn(e, t) {
|
|
3594
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3591
3595
|
}
|
|
3592
3596
|
function Yt(e) {
|
|
3593
|
-
return
|
|
3597
|
+
return ge[e];
|
|
3594
3598
|
}
|
|
3595
|
-
function
|
|
3596
|
-
return
|
|
3599
|
+
function Jn(e) {
|
|
3600
|
+
return ie(e).map((t) => {
|
|
3597
3601
|
const r = Yt(t);
|
|
3598
3602
|
return [t, r ? [...r] : []];
|
|
3599
3603
|
}).filter(([, t]) => t.length > 0);
|
|
3600
3604
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return e == null ? !1 :
|
|
3605
|
+
function _e(e) {
|
|
3606
|
+
return e == null ? !1 : ie(e).some(
|
|
3603
3607
|
(t) => {
|
|
3604
3608
|
var r;
|
|
3605
3609
|
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3606
3610
|
}
|
|
3607
3611
|
);
|
|
3608
3612
|
}
|
|
3609
|
-
function
|
|
3613
|
+
function qn(e, t) {
|
|
3610
3614
|
return Promise.all(
|
|
3611
|
-
t.map((n) => (
|
|
3615
|
+
t.map((n) => (Zn(e, n), n().then((i) => i.default || i)))
|
|
3612
3616
|
).then((n) => Qt(e, ...n));
|
|
3613
3617
|
}
|
|
3614
|
-
const
|
|
3618
|
+
const J = {};
|
|
3615
3619
|
function Kt(e) {
|
|
3616
|
-
if (!
|
|
3617
|
-
return e in
|
|
3618
|
-
const t =
|
|
3619
|
-
return
|
|
3620
|
+
if (!_e(e))
|
|
3621
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3622
|
+
const t = Jn(e);
|
|
3623
|
+
return J[e] = Promise.all(
|
|
3620
3624
|
t.map(
|
|
3621
|
-
([r, n]) =>
|
|
3625
|
+
([r, n]) => qn(r, n)
|
|
3622
3626
|
)
|
|
3623
3627
|
).then(() => {
|
|
3624
|
-
if (
|
|
3628
|
+
if (_e(e))
|
|
3625
3629
|
return Kt(e);
|
|
3626
|
-
delete
|
|
3627
|
-
}),
|
|
3630
|
+
delete J[e];
|
|
3631
|
+
}), J[e];
|
|
3628
3632
|
}
|
|
3629
|
-
var mt = Object.getOwnPropertySymbols,
|
|
3633
|
+
var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, Kn = (e, t) => {
|
|
3630
3634
|
var r = {};
|
|
3631
3635
|
for (var n in e)
|
|
3632
|
-
|
|
3636
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3633
3637
|
if (e != null && mt)
|
|
3634
3638
|
for (var n of mt(e))
|
|
3635
|
-
t.indexOf(n) < 0 &&
|
|
3639
|
+
t.indexOf(n) < 0 && Yn.call(e, n) && (r[n] = e[n]);
|
|
3636
3640
|
return r;
|
|
3637
3641
|
};
|
|
3638
|
-
const
|
|
3642
|
+
const ei = {
|
|
3639
3643
|
number: {
|
|
3640
3644
|
scientific: { notation: "scientific" },
|
|
3641
3645
|
engineering: { notation: "engineering" },
|
|
@@ -3665,174 +3669,174 @@ const Kn = {
|
|
|
3665
3669
|
}
|
|
3666
3670
|
}
|
|
3667
3671
|
};
|
|
3668
|
-
function
|
|
3672
|
+
function ti({ locale: e, id: t }) {
|
|
3669
3673
|
console.warn(
|
|
3670
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3674
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3671
3675
|
e
|
|
3672
|
-
).join('", "')}".${
|
|
3676
|
+
).join('", "')}".${_e(N()) ? `
|
|
3673
3677
|
|
|
3674
3678
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3675
3679
|
);
|
|
3676
3680
|
}
|
|
3677
|
-
const
|
|
3681
|
+
const ri = {
|
|
3678
3682
|
fallbackLocale: null,
|
|
3679
3683
|
loadingDelay: 200,
|
|
3680
|
-
formats:
|
|
3684
|
+
formats: ei,
|
|
3681
3685
|
warnOnMissingMessages: !0,
|
|
3682
3686
|
handleMissingMessage: void 0,
|
|
3683
3687
|
ignoreTag: !0
|
|
3684
|
-
},
|
|
3685
|
-
function
|
|
3686
|
-
return
|
|
3688
|
+
}, Q = ri;
|
|
3689
|
+
function V() {
|
|
3690
|
+
return Q;
|
|
3687
3691
|
}
|
|
3688
|
-
function
|
|
3689
|
-
const t = e, { formats: r } = t, n =
|
|
3692
|
+
function ni(e) {
|
|
3693
|
+
const t = e, { formats: r } = t, n = Kn(t, ["formats"]);
|
|
3690
3694
|
let i = e.fallbackLocale;
|
|
3691
3695
|
if (e.initialLocale)
|
|
3692
3696
|
try {
|
|
3693
3697
|
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3694
|
-
} catch (
|
|
3698
|
+
} catch (o) {
|
|
3695
3699
|
console.warn(
|
|
3696
3700
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3697
3701
|
);
|
|
3698
3702
|
}
|
|
3699
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3703
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ti : console.warn(
|
|
3700
3704
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3701
|
-
)), Object.assign(
|
|
3705
|
+
)), 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)), $.set(i);
|
|
3702
3706
|
}
|
|
3703
|
-
const
|
|
3704
|
-
var
|
|
3707
|
+
const Me = Te(!1);
|
|
3708
|
+
var ii = Object.defineProperty, oi = Object.defineProperties, si = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3705
3709
|
for (var r in t || (t = {}))
|
|
3706
|
-
|
|
3710
|
+
ai.call(t, r) && pt(e, r, t[r]);
|
|
3707
3711
|
if (dt)
|
|
3708
3712
|
for (var r of dt(t))
|
|
3709
|
-
|
|
3713
|
+
ui.call(t, r) && pt(e, r, t[r]);
|
|
3710
3714
|
return e;
|
|
3711
|
-
},
|
|
3712
|
-
let
|
|
3713
|
-
const
|
|
3715
|
+
}, hi = (e, t) => oi(e, si(t));
|
|
3716
|
+
let Xe;
|
|
3717
|
+
const Ee = Te(null);
|
|
3714
3718
|
function bt(e) {
|
|
3715
3719
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3716
3720
|
}
|
|
3717
|
-
function
|
|
3721
|
+
function ie(e, t = V().fallbackLocale) {
|
|
3718
3722
|
const r = bt(e);
|
|
3719
3723
|
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3720
3724
|
}
|
|
3721
|
-
function
|
|
3722
|
-
return
|
|
3725
|
+
function N() {
|
|
3726
|
+
return Xe != null ? Xe : void 0;
|
|
3723
3727
|
}
|
|
3724
|
-
|
|
3725
|
-
|
|
3728
|
+
Ee.subscribe((e) => {
|
|
3729
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3726
3730
|
});
|
|
3727
|
-
const
|
|
3728
|
-
if (e &&
|
|
3729
|
-
const { loadingDelay: t } =
|
|
3731
|
+
const ci = (e) => {
|
|
3732
|
+
if (e && Wn(e) && _e(e)) {
|
|
3733
|
+
const { loadingDelay: t } = V();
|
|
3730
3734
|
let r;
|
|
3731
|
-
return typeof window != "undefined" &&
|
|
3732
|
-
() =>
|
|
3735
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3736
|
+
() => Me.set(!0),
|
|
3733
3737
|
t
|
|
3734
|
-
) :
|
|
3735
|
-
|
|
3738
|
+
) : Me.set(!0), Kt(e).then(() => {
|
|
3739
|
+
Ee.set(e);
|
|
3736
3740
|
}).finally(() => {
|
|
3737
|
-
clearTimeout(r),
|
|
3741
|
+
clearTimeout(r), Me.set(!1);
|
|
3738
3742
|
});
|
|
3739
3743
|
}
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3742
|
-
set:
|
|
3743
|
-
}),
|
|
3744
|
+
return Ee.set(e);
|
|
3745
|
+
}, $ = hi(li({}, Ee), {
|
|
3746
|
+
set: ci
|
|
3747
|
+
}), Se = (e) => {
|
|
3744
3748
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3745
3749
|
return (n) => {
|
|
3746
3750
|
const i = JSON.stringify(n);
|
|
3747
3751
|
return i in t ? t[i] : t[i] = e(n);
|
|
3748
3752
|
};
|
|
3749
3753
|
};
|
|
3750
|
-
var
|
|
3754
|
+
var fi = Object.defineProperty, ve = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3751
3755
|
for (var r in t || (t = {}))
|
|
3752
3756
|
er.call(t, r) && gt(e, r, t[r]);
|
|
3753
|
-
if (
|
|
3754
|
-
for (var r of
|
|
3757
|
+
if (ve)
|
|
3758
|
+
for (var r of ve(t))
|
|
3755
3759
|
tr.call(t, r) && gt(e, r, t[r]);
|
|
3756
3760
|
return e;
|
|
3757
|
-
},
|
|
3761
|
+
}, Z = (e, t) => {
|
|
3758
3762
|
var r = {};
|
|
3759
3763
|
for (var n in e)
|
|
3760
3764
|
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3761
|
-
if (e != null &&
|
|
3762
|
-
for (var n of
|
|
3765
|
+
if (e != null && ve)
|
|
3766
|
+
for (var n of ve(e))
|
|
3763
3767
|
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3764
3768
|
return r;
|
|
3765
3769
|
};
|
|
3766
|
-
const
|
|
3767
|
-
const { formats: r } =
|
|
3770
|
+
const te = (e, t) => {
|
|
3771
|
+
const { formats: r } = V();
|
|
3768
3772
|
if (e in r && t in r[e])
|
|
3769
3773
|
return r[e][t];
|
|
3770
3774
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3771
|
-
},
|
|
3775
|
+
}, mi = Se(
|
|
3772
3776
|
(e) => {
|
|
3773
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3777
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3774
3778
|
if (r == null)
|
|
3775
3779
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3776
|
-
return n && (i =
|
|
3780
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3777
3781
|
}
|
|
3778
|
-
),
|
|
3782
|
+
), di = Se(
|
|
3779
3783
|
(e) => {
|
|
3780
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3784
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3781
3785
|
if (r == null)
|
|
3782
3786
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3783
|
-
return n ? i =
|
|
3787
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3784
3788
|
}
|
|
3785
|
-
),
|
|
3789
|
+
), pi = Se(
|
|
3786
3790
|
(e) => {
|
|
3787
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3791
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3788
3792
|
if (r == null)
|
|
3789
3793
|
throw new Error(
|
|
3790
3794
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3791
3795
|
);
|
|
3792
|
-
return n ? i =
|
|
3796
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3793
3797
|
}
|
|
3794
|
-
),
|
|
3795
|
-
var t = e, {
|
|
3796
|
-
locale: r = C()
|
|
3797
|
-
} = t, n = W(t, [
|
|
3798
|
-
"locale"
|
|
3799
|
-
]);
|
|
3800
|
-
return fi(Je({ locale: r }, n));
|
|
3801
|
-
}, bi = (e = {}) => {
|
|
3798
|
+
), bi = (e = {}) => {
|
|
3802
3799
|
var t = e, {
|
|
3803
|
-
locale: r =
|
|
3804
|
-
} = t, n =
|
|
3800
|
+
locale: r = N()
|
|
3801
|
+
} = t, n = Z(t, [
|
|
3805
3802
|
"locale"
|
|
3806
3803
|
]);
|
|
3807
3804
|
return mi(Je({ locale: r }, n));
|
|
3808
3805
|
}, gi = (e = {}) => {
|
|
3809
3806
|
var t = e, {
|
|
3810
|
-
locale: r =
|
|
3811
|
-
} = t, n =
|
|
3807
|
+
locale: r = N()
|
|
3808
|
+
} = t, n = Z(t, [
|
|
3812
3809
|
"locale"
|
|
3813
3810
|
]);
|
|
3814
3811
|
return di(Je({ locale: r }, n));
|
|
3815
|
-
}, yi =
|
|
3812
|
+
}, yi = (e = {}) => {
|
|
3813
|
+
var t = e, {
|
|
3814
|
+
locale: r = N()
|
|
3815
|
+
} = t, n = Z(t, [
|
|
3816
|
+
"locale"
|
|
3817
|
+
]);
|
|
3818
|
+
return pi(Je({ locale: r }, n));
|
|
3819
|
+
}, _i = Se(
|
|
3816
3820
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3817
|
-
(e, t =
|
|
3818
|
-
ignoreTag:
|
|
3821
|
+
(e, t = N()) => new Zt(e, t, V().formats, {
|
|
3822
|
+
ignoreTag: V().ignoreTag
|
|
3819
3823
|
})
|
|
3820
|
-
),
|
|
3821
|
-
var r, n, i,
|
|
3822
|
-
let
|
|
3823
|
-
typeof e == "object" && (
|
|
3824
|
+
), Ei = (e, t = {}) => {
|
|
3825
|
+
var r, n, i, o;
|
|
3826
|
+
let s = t;
|
|
3827
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3824
3828
|
const {
|
|
3825
3829
|
values: u,
|
|
3826
|
-
locale: l =
|
|
3827
|
-
default:
|
|
3828
|
-
} =
|
|
3830
|
+
locale: l = N(),
|
|
3831
|
+
default: a
|
|
3832
|
+
} = s;
|
|
3829
3833
|
if (l == null)
|
|
3830
3834
|
throw new Error(
|
|
3831
3835
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3832
3836
|
);
|
|
3833
3837
|
let h = Jt(e, l);
|
|
3834
3838
|
if (!h)
|
|
3835
|
-
h = (
|
|
3839
|
+
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3836
3840
|
else if (typeof h != "string")
|
|
3837
3841
|
return console.warn(
|
|
3838
3842
|
`[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.`
|
|
@@ -3841,7 +3845,7 @@ const ee = (e, t) => {
|
|
|
3841
3845
|
return h;
|
|
3842
3846
|
let f = h;
|
|
3843
3847
|
try {
|
|
3844
|
-
f =
|
|
3848
|
+
f = _i(h, l).format(u);
|
|
3845
3849
|
} catch (m) {
|
|
3846
3850
|
m instanceof Error && console.warn(
|
|
3847
3851
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3849,18 +3853,18 @@ const ee = (e, t) => {
|
|
|
3849
3853
|
);
|
|
3850
3854
|
}
|
|
3851
3855
|
return f;
|
|
3852
|
-
},
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3856
|
+
}, vi = (e, t) => yi(t).format(e), xi = (e, t) => gi(t).format(e), Ti = (e, t) => bi(t).format(e), Hi = (e, t = N()) => Jt(e, t), wi = W([$, ne], () => Ei);
|
|
3857
|
+
W([$], () => vi);
|
|
3858
|
+
W([$], () => xi);
|
|
3859
|
+
W([$], () => Ti);
|
|
3860
|
+
W([$, ne], () => Hi);
|
|
3857
3861
|
function yt(e, t) {
|
|
3858
3862
|
Qt(e, t);
|
|
3859
3863
|
}
|
|
3860
|
-
function
|
|
3861
|
-
|
|
3864
|
+
function Si(e) {
|
|
3865
|
+
ni({
|
|
3862
3866
|
fallbackLocale: "en"
|
|
3863
|
-
}),
|
|
3867
|
+
}), $.set(e);
|
|
3864
3868
|
}
|
|
3865
3869
|
const _t = {
|
|
3866
3870
|
en: {
|
|
@@ -3919,28 +3923,28 @@ const _t = {
|
|
|
3919
3923
|
function Bi(e) {
|
|
3920
3924
|
hr(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}");
|
|
3921
3925
|
}
|
|
3922
|
-
const
|
|
3926
|
+
const Ai = (e) => ({}), Et = (e) => ({}), Pi = (e) => ({}), vt = (e) => ({}), Oi = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
|
|
3923
3927
|
function Ht(e) {
|
|
3924
3928
|
let t, r;
|
|
3925
3929
|
return {
|
|
3926
3930
|
c() {
|
|
3927
|
-
t =
|
|
3928
|
-
e[0]}/error-general-icon.png`) ||
|
|
3931
|
+
t = C("ui-image"), rt(t.src, r = `${/*assetsurl*/
|
|
3932
|
+
e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
|
|
3929
3933
|
},
|
|
3930
3934
|
m(n, i) {
|
|
3931
|
-
|
|
3935
|
+
X(n, t, i);
|
|
3932
3936
|
},
|
|
3933
3937
|
p(n, i) {
|
|
3934
3938
|
i & /*assetsurl*/
|
|
3935
3939
|
1 && !rt(t.src, r = `${/*assetsurl*/
|
|
3936
|
-
n[0]}/error-general-icon.png`) &&
|
|
3940
|
+
n[0]}/error-general-icon.png`) && ce(t, "src", r);
|
|
3937
3941
|
},
|
|
3938
3942
|
d(n) {
|
|
3939
|
-
n &&
|
|
3943
|
+
n && M(t);
|
|
3940
3944
|
}
|
|
3941
3945
|
};
|
|
3942
3946
|
}
|
|
3943
|
-
function
|
|
3947
|
+
function Ci(e) {
|
|
3944
3948
|
let t, r = (
|
|
3945
3949
|
/*assetsurl*/
|
|
3946
3950
|
e[0] && Ht(e)
|
|
@@ -3950,18 +3954,18 @@ function Ii(e) {
|
|
|
3950
3954
|
r && r.c(), t = mr();
|
|
3951
3955
|
},
|
|
3952
3956
|
m(n, i) {
|
|
3953
|
-
r && r.m(n, i),
|
|
3957
|
+
r && r.m(n, i), X(n, t, i);
|
|
3954
3958
|
},
|
|
3955
3959
|
p(n, i) {
|
|
3956
3960
|
/*assetsurl*/
|
|
3957
3961
|
n[0] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3958
3962
|
},
|
|
3959
3963
|
d(n) {
|
|
3960
|
-
n &&
|
|
3964
|
+
n && M(t), r && r.d(n);
|
|
3961
3965
|
}
|
|
3962
3966
|
};
|
|
3963
3967
|
}
|
|
3964
|
-
function
|
|
3968
|
+
function Ni(e) {
|
|
3965
3969
|
let t, r = (
|
|
3966
3970
|
/*$_*/
|
|
3967
3971
|
e[3](`${/*errorcode*/
|
|
@@ -3969,38 +3973,38 @@ function Ci(e) {
|
|
|
3969
3973
|
), n;
|
|
3970
3974
|
return {
|
|
3971
3975
|
c() {
|
|
3972
|
-
t =
|
|
3976
|
+
t = C("span"), n = xe(r), k(t, "class", "CashierErrorText");
|
|
3973
3977
|
},
|
|
3974
|
-
m(i,
|
|
3975
|
-
|
|
3978
|
+
m(i, o) {
|
|
3979
|
+
X(i, t, o), O(t, n);
|
|
3976
3980
|
},
|
|
3977
|
-
p(i,
|
|
3978
|
-
|
|
3981
|
+
p(i, o) {
|
|
3982
|
+
o & /*$_, errorcode*/
|
|
3979
3983
|
10 && r !== (r = /*$_*/
|
|
3980
3984
|
i[3](`${/*errorcode*/
|
|
3981
3985
|
i[1] || "errorGeneralText"}`) + "") && Pt(n, r);
|
|
3982
3986
|
},
|
|
3983
3987
|
d(i) {
|
|
3984
|
-
i &&
|
|
3988
|
+
i && M(t);
|
|
3985
3989
|
}
|
|
3986
3990
|
};
|
|
3987
3991
|
}
|
|
3988
|
-
function
|
|
3992
|
+
function Li(e) {
|
|
3989
3993
|
let t, r, n = (
|
|
3990
3994
|
/*$_*/
|
|
3991
3995
|
e[3]("errorGeneralButton") + ""
|
|
3992
|
-
), i,
|
|
3996
|
+
), i, o, s;
|
|
3993
3997
|
return {
|
|
3994
3998
|
c() {
|
|
3995
|
-
t =
|
|
3999
|
+
t = C("button"), r = C("span"), i = xe(n), k(t, "class", "CashierErrorButton");
|
|
3996
4000
|
},
|
|
3997
4001
|
m(u, l) {
|
|
3998
|
-
|
|
4002
|
+
X(u, t, l), O(t, r), O(r, i), o || (s = dr(
|
|
3999
4003
|
t,
|
|
4000
4004
|
"click",
|
|
4001
4005
|
/*close*/
|
|
4002
4006
|
e[4]
|
|
4003
|
-
),
|
|
4007
|
+
), o = !0);
|
|
4004
4008
|
},
|
|
4005
4009
|
p(u, l) {
|
|
4006
4010
|
l & /*$_*/
|
|
@@ -4008,25 +4012,25 @@ function Ni(e) {
|
|
|
4008
4012
|
u[3]("errorGeneralButton") + "") && Pt(i, n);
|
|
4009
4013
|
},
|
|
4010
4014
|
d(u) {
|
|
4011
|
-
u &&
|
|
4015
|
+
u && M(t), o = !1, s();
|
|
4012
4016
|
}
|
|
4013
4017
|
};
|
|
4014
4018
|
}
|
|
4015
|
-
function
|
|
4016
|
-
let t, r, n, i,
|
|
4019
|
+
function Mi(e) {
|
|
4020
|
+
let t, r, n, i, o, s;
|
|
4017
4021
|
const u = (
|
|
4018
4022
|
/*#slots*/
|
|
4019
4023
|
e[11].icon
|
|
4020
|
-
), l =
|
|
4024
|
+
), l = ae(
|
|
4021
4025
|
u,
|
|
4022
4026
|
e,
|
|
4023
4027
|
/*$$scope*/
|
|
4024
4028
|
e[10],
|
|
4025
4029
|
Tt
|
|
4026
|
-
),
|
|
4030
|
+
), a = l || Ci(e), h = (
|
|
4027
4031
|
/*#slots*/
|
|
4028
4032
|
e[11].title
|
|
4029
|
-
), f =
|
|
4033
|
+
), f = ae(
|
|
4030
4034
|
h,
|
|
4031
4035
|
e,
|
|
4032
4036
|
/*$$scope*/
|
|
@@ -4035,128 +4039,128 @@ function Li(e) {
|
|
|
4035
4039
|
), m = (
|
|
4036
4040
|
/*#slots*/
|
|
4037
4041
|
e[11].text
|
|
4038
|
-
), d =
|
|
4042
|
+
), d = ae(
|
|
4039
4043
|
m,
|
|
4040
4044
|
e,
|
|
4041
4045
|
/*$$scope*/
|
|
4042
4046
|
e[10],
|
|
4043
4047
|
vt
|
|
4044
|
-
), p = d ||
|
|
4048
|
+
), p = d || Ni(e), v = (
|
|
4045
4049
|
/*#slots*/
|
|
4046
4050
|
e[11].button
|
|
4047
|
-
), T =
|
|
4051
|
+
), T = ae(
|
|
4048
4052
|
v,
|
|
4049
4053
|
e,
|
|
4050
4054
|
/*$$scope*/
|
|
4051
4055
|
e[10],
|
|
4052
4056
|
Et
|
|
4053
|
-
), x = T ||
|
|
4057
|
+
), x = T || Li(e);
|
|
4054
4058
|
return {
|
|
4055
4059
|
c() {
|
|
4056
|
-
t =
|
|
4060
|
+
t = C("div"), r = C("div"), a && a.c(), n = Ae(), f && f.c(), i = Ae(), p && p.c(), o = Ae(), x && x.c(), k(r, "class", "CashierErrorContent"), k(t, "class", "CashierError");
|
|
4057
4061
|
},
|
|
4058
4062
|
m(c, g) {
|
|
4059
|
-
|
|
4063
|
+
X(c, t, g), O(t, r), a && a.m(r, null), O(r, n), f && f.m(r, null), O(r, i), p && p.m(r, null), O(r, o), x && x.m(r, null), e[12](t), s = !0;
|
|
4060
4064
|
},
|
|
4061
4065
|
p(c, [g]) {
|
|
4062
|
-
l ? l.p && (!
|
|
4063
|
-
1024) &&
|
|
4066
|
+
l ? l.p && (!s || g & /*$$scope*/
|
|
4067
|
+
1024) && le(
|
|
4064
4068
|
l,
|
|
4065
4069
|
u,
|
|
4066
4070
|
c,
|
|
4067
4071
|
/*$$scope*/
|
|
4068
4072
|
c[10],
|
|
4069
|
-
|
|
4073
|
+
s ? ue(
|
|
4070
4074
|
u,
|
|
4071
4075
|
/*$$scope*/
|
|
4072
4076
|
c[10],
|
|
4073
4077
|
g,
|
|
4074
|
-
|
|
4075
|
-
) :
|
|
4078
|
+
Ii
|
|
4079
|
+
) : he(
|
|
4076
4080
|
/*$$scope*/
|
|
4077
4081
|
c[10]
|
|
4078
4082
|
),
|
|
4079
4083
|
Tt
|
|
4080
|
-
) :
|
|
4081
|
-
1) &&
|
|
4082
|
-
1024) &&
|
|
4084
|
+
) : a && a.p && (!s || g & /*assetsurl*/
|
|
4085
|
+
1) && a.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
|
|
4086
|
+
1024) && le(
|
|
4083
4087
|
f,
|
|
4084
4088
|
h,
|
|
4085
4089
|
c,
|
|
4086
4090
|
/*$$scope*/
|
|
4087
4091
|
c[10],
|
|
4088
|
-
|
|
4092
|
+
s ? ue(
|
|
4089
4093
|
h,
|
|
4090
4094
|
/*$$scope*/
|
|
4091
4095
|
c[10],
|
|
4092
4096
|
g,
|
|
4093
|
-
|
|
4094
|
-
) :
|
|
4097
|
+
Oi
|
|
4098
|
+
) : he(
|
|
4095
4099
|
/*$$scope*/
|
|
4096
4100
|
c[10]
|
|
4097
4101
|
),
|
|
4098
4102
|
xt
|
|
4099
|
-
), d ? d.p && (!
|
|
4100
|
-
1024) &&
|
|
4103
|
+
), d ? d.p && (!s || g & /*$$scope*/
|
|
4104
|
+
1024) && le(
|
|
4101
4105
|
d,
|
|
4102
4106
|
m,
|
|
4103
4107
|
c,
|
|
4104
4108
|
/*$$scope*/
|
|
4105
4109
|
c[10],
|
|
4106
|
-
|
|
4110
|
+
s ? ue(
|
|
4107
4111
|
m,
|
|
4108
4112
|
/*$$scope*/
|
|
4109
4113
|
c[10],
|
|
4110
4114
|
g,
|
|
4111
|
-
|
|
4112
|
-
) :
|
|
4115
|
+
Pi
|
|
4116
|
+
) : he(
|
|
4113
4117
|
/*$$scope*/
|
|
4114
4118
|
c[10]
|
|
4115
4119
|
),
|
|
4116
4120
|
vt
|
|
4117
|
-
) : p && p.p && (!
|
|
4118
|
-
10) && p.p(c,
|
|
4119
|
-
1024) &&
|
|
4121
|
+
) : p && p.p && (!s || g & /*$_, errorcode*/
|
|
4122
|
+
10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
|
|
4123
|
+
1024) && le(
|
|
4120
4124
|
T,
|
|
4121
4125
|
v,
|
|
4122
4126
|
c,
|
|
4123
4127
|
/*$$scope*/
|
|
4124
4128
|
c[10],
|
|
4125
|
-
|
|
4129
|
+
s ? ue(
|
|
4126
4130
|
v,
|
|
4127
4131
|
/*$$scope*/
|
|
4128
4132
|
c[10],
|
|
4129
4133
|
g,
|
|
4130
|
-
|
|
4131
|
-
) :
|
|
4134
|
+
Ai
|
|
4135
|
+
) : he(
|
|
4132
4136
|
/*$$scope*/
|
|
4133
4137
|
c[10]
|
|
4134
4138
|
),
|
|
4135
4139
|
Et
|
|
4136
|
-
) : x && x.p && (!
|
|
4137
|
-
8) && x.p(c,
|
|
4140
|
+
) : x && x.p && (!s || g & /*$_*/
|
|
4141
|
+
8) && x.p(c, s ? g : -1);
|
|
4138
4142
|
},
|
|
4139
4143
|
i(c) {
|
|
4140
|
-
|
|
4144
|
+
s || (q(a, c), q(f, c), q(p, c), q(x, c), s = !0);
|
|
4141
4145
|
},
|
|
4142
4146
|
o(c) {
|
|
4143
|
-
|
|
4147
|
+
fe(a, c), fe(f, c), fe(p, c), fe(x, c), s = !1;
|
|
4144
4148
|
},
|
|
4145
4149
|
d(c) {
|
|
4146
|
-
c &&
|
|
4150
|
+
c && M(t), a && a.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
4147
4151
|
}
|
|
4148
4152
|
};
|
|
4149
4153
|
}
|
|
4150
|
-
function
|
|
4154
|
+
function $i(e, t, r) {
|
|
4151
4155
|
let n;
|
|
4152
|
-
lr(e,
|
|
4153
|
-
let { $$slots: i = {}, $$scope:
|
|
4156
|
+
lr(e, wi, (c) => r(3, n = c));
|
|
4157
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4154
4158
|
const p = () => {
|
|
4155
|
-
|
|
4159
|
+
Si(u);
|
|
4156
4160
|
}, v = () => {
|
|
4157
4161
|
fetch(f).then((g) => g.json()).then((g) => {
|
|
4158
|
-
Object.keys(g).forEach((
|
|
4159
|
-
yt(
|
|
4162
|
+
Object.keys(g).forEach((P) => {
|
|
4163
|
+
yt(P, g[P]);
|
|
4160
4164
|
});
|
|
4161
4165
|
}).catch((g) => {
|
|
4162
4166
|
console.error(g);
|
|
@@ -4171,43 +4175,43 @@ function Mi(e, t, r) {
|
|
|
4171
4175
|
yr(() => () => {
|
|
4172
4176
|
});
|
|
4173
4177
|
function x(c) {
|
|
4174
|
-
|
|
4178
|
+
$e[c ? "unshift" : "push"](() => {
|
|
4175
4179
|
d = c, r(2, d);
|
|
4176
4180
|
});
|
|
4177
4181
|
}
|
|
4178
4182
|
return e.$$set = (c) => {
|
|
4179
|
-
"assetsurl" in c && r(0,
|
|
4183
|
+
"assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, u = c.lang), "errorcode" in c && r(1, l = c.errorcode), "clientstyling" in c && r(6, a = c.clientstyling), "clientstylingurl" in c && r(7, h = 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);
|
|
4180
4184
|
}, e.$$.update = () => {
|
|
4181
4185
|
e.$$.dirty & /*lang*/
|
|
4182
4186
|
32 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4183
|
-
68 &&
|
|
4187
|
+
68 && a && d && Ir(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4184
4188
|
132 && h && d && Cr(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4185
4189
|
516 && m && d && Nr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4186
4190
|
256 && f && v();
|
|
4187
4191
|
}, [
|
|
4188
|
-
|
|
4192
|
+
s,
|
|
4189
4193
|
l,
|
|
4190
4194
|
d,
|
|
4191
4195
|
n,
|
|
4192
4196
|
T,
|
|
4193
4197
|
u,
|
|
4194
|
-
|
|
4198
|
+
a,
|
|
4195
4199
|
h,
|
|
4196
4200
|
f,
|
|
4197
4201
|
m,
|
|
4198
|
-
|
|
4202
|
+
o,
|
|
4199
4203
|
i,
|
|
4200
4204
|
x
|
|
4201
4205
|
];
|
|
4202
4206
|
}
|
|
4203
|
-
class
|
|
4207
|
+
class Ri extends Pr {
|
|
4204
4208
|
constructor(t) {
|
|
4205
|
-
super(),
|
|
4209
|
+
super(), Br(
|
|
4206
4210
|
this,
|
|
4207
4211
|
t,
|
|
4212
|
+
$i,
|
|
4208
4213
|
Mi,
|
|
4209
|
-
|
|
4210
|
-
Bt,
|
|
4214
|
+
St,
|
|
4211
4215
|
{
|
|
4212
4216
|
assetsurl: 0,
|
|
4213
4217
|
lang: 5,
|
|
@@ -4263,7 +4267,7 @@ class $i extends Pr {
|
|
|
4263
4267
|
this.$$set({ mbsource: t }), B();
|
|
4264
4268
|
}
|
|
4265
4269
|
}
|
|
4266
|
-
Ar(
|
|
4270
|
+
Ar(Ri, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4267
4271
|
export {
|
|
4268
|
-
|
|
4272
|
+
Ri as default
|
|
4269
4273
|
};
|