@everymatrix/cashier-receipt-page 1.76.13 → 1.76.14
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-BdTMuziH.cjs +18 -0
- package/components/{CashierError-BEf5oypu.js → CashierError-Bo3vS6cl.js} +844 -812
- package/components/{CashierError-DyEqnvZV.js → CashierError-DCJyzcqe.js} +861 -829
- package/components/{CashierReceiptPage-BBNh7Nia.js → CashierReceiptPage-A_pDp0Fb.js} +436 -485
- package/components/{CashierReceiptPage-DyKOEqtS.js → CashierReceiptPage-Bzut1oTm.js} +409 -458
- package/components/CashierReceiptPage-LU4dA5bB.cjs +3 -0
- package/components/{CashierSpinner-B-eLNQId.js → CashierSpinner-7i665NmW.js} +14 -14
- package/components/{CashierSpinner-C7r-qfs7.js → CashierSpinner-Dr1JxKNO.js} +14 -14
- package/components/{CashierSpinner-BzVJk0KY.cjs → CashierSpinner-VZeNa68z.cjs} +1 -1
- package/es2015/cashier-receipt-page.cjs +1 -1
- package/es2015/cashier-receipt-page.js +1 -1
- package/esnext/cashier-receipt-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierError-B9_ylQEa.cjs +0 -5
- package/components/CashierReceiptPage-DfDga2bZ.cjs +0 -16
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
2
|
-
function
|
|
1
|
+
import "../stencil/ui-image-CVwHW7a_.js";
|
|
2
|
+
function A() {
|
|
3
3
|
}
|
|
4
4
|
function Yt(e, t) {
|
|
5
5
|
for (const r in t)
|
|
@@ -15,18 +15,18 @@ function vt(e) {
|
|
|
15
15
|
function Qe() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Z(e) {
|
|
19
19
|
e.forEach(vt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ze(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function xt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let se;
|
|
28
28
|
function Ye(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
30
30
|
}
|
|
31
31
|
function Kt(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -35,7 +35,7 @@ function Tt(e, ...t) {
|
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return A;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -43,7 +43,7 @@ function Tt(e, ...t) {
|
|
|
43
43
|
function er(e, t, r) {
|
|
44
44
|
e.$$.on_destroy.push(Tt(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function he(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Ht(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,28 +52,28 @@ function ce(e, t, r, n) {
|
|
|
52
52
|
function Ht(e, t, r, n) {
|
|
53
53
|
return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ce(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const
|
|
62
|
-
for (let
|
|
63
|
-
s
|
|
64
|
-
return
|
|
61
|
+
const a = [], o = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let s = 0; s < o; s += 1)
|
|
63
|
+
a[s] = t.dirty[s] | i[s];
|
|
64
|
+
return a;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function fe(e, t, r, n, i, a) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const o = Ht(t, r, n,
|
|
72
|
+
const o = Ht(t, r, n, a);
|
|
73
73
|
e.p(o, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function me(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -82,13 +82,13 @@ function de(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
88
|
function tr(e, t, r) {
|
|
89
89
|
const n = rr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
91
|
+
const i = P("style");
|
|
92
92
|
i.id = t, i.textContent = r, nr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -103,52 +103,52 @@ function rr(e) {
|
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
105
|
function nr(e, t) {
|
|
106
|
-
return
|
|
106
|
+
return O(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function M(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function I(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ci(e, t) {
|
|
119
119
|
for (let r = 0; r < e.length; r += 1)
|
|
120
120
|
e[r] && e[r].d(t);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function P(e) {
|
|
123
123
|
return document.createElement(e);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ne(e) {
|
|
126
126
|
return document.createTextNode(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function we() {
|
|
129
|
+
return ne(" ");
|
|
130
130
|
}
|
|
131
131
|
function ir() {
|
|
132
|
-
return
|
|
132
|
+
return ne("");
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ar(e, t, r, n) {
|
|
135
135
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function L(e, t, r) {
|
|
138
138
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function ue(e, t, r) {
|
|
141
141
|
const n = t.toLowerCase();
|
|
142
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
142
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
143
143
|
}
|
|
144
144
|
function or(e) {
|
|
145
145
|
return Array.from(e.childNodes);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ve(e, t) {
|
|
148
148
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
149
149
|
t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function sr(e) {
|
|
152
152
|
const t = {};
|
|
153
153
|
return e.childNodes.forEach(
|
|
154
154
|
/** @param {Element} node */
|
|
@@ -157,118 +157,118 @@ function ar(e) {
|
|
|
157
157
|
}
|
|
158
158
|
), t;
|
|
159
159
|
}
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
160
|
+
let ee;
|
|
161
|
+
function K(e) {
|
|
162
|
+
ee = e;
|
|
163
163
|
}
|
|
164
164
|
function ur() {
|
|
165
|
-
if (!
|
|
165
|
+
if (!ee)
|
|
166
166
|
throw new Error("Function called outside component initialization");
|
|
167
|
-
return
|
|
167
|
+
return ee;
|
|
168
168
|
}
|
|
169
169
|
function lr(e) {
|
|
170
170
|
ur().$$.on_mount.push(e);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
172
|
+
const k = [], Ne = [];
|
|
173
|
+
let j = [];
|
|
174
174
|
const Ke = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
175
|
-
let
|
|
175
|
+
let Le = !1;
|
|
176
176
|
function cr() {
|
|
177
|
-
|
|
177
|
+
Le || (Le = !0, hr.then(S));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
179
|
+
function Me(e) {
|
|
180
|
+
j.push(e);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
function
|
|
185
|
-
if (
|
|
182
|
+
const Be = /* @__PURE__ */ new Set();
|
|
183
|
+
let U = 0;
|
|
184
|
+
function S() {
|
|
185
|
+
if (U !== 0)
|
|
186
186
|
return;
|
|
187
|
-
const e =
|
|
187
|
+
const e = ee;
|
|
188
188
|
do {
|
|
189
189
|
try {
|
|
190
|
-
for (;
|
|
191
|
-
const t =
|
|
192
|
-
|
|
190
|
+
for (; U < k.length; ) {
|
|
191
|
+
const t = k[U];
|
|
192
|
+
U++, K(t), fr(t.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (t) {
|
|
195
|
-
throw
|
|
195
|
+
throw k.length = 0, U = 0, t;
|
|
196
196
|
}
|
|
197
|
-
for (
|
|
198
|
-
|
|
199
|
-
for (let t = 0; t <
|
|
200
|
-
const r =
|
|
201
|
-
|
|
197
|
+
for (K(null), k.length = 0, U = 0; Ne.length; )
|
|
198
|
+
Ne.pop()();
|
|
199
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
200
|
+
const r = j[t];
|
|
201
|
+
Be.has(r) || (Be.add(r), r());
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
} while (
|
|
203
|
+
j.length = 0;
|
|
204
|
+
} while (k.length);
|
|
205
205
|
for (; Ke.length; )
|
|
206
206
|
Ke.pop()();
|
|
207
|
-
|
|
207
|
+
Le = !1, Be.clear(), K(e);
|
|
208
208
|
}
|
|
209
209
|
function fr(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
|
-
e.update(),
|
|
211
|
+
e.update(), Z(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
213
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function mr(e) {
|
|
217
217
|
const t = [], r = [];
|
|
218
|
-
|
|
218
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
let
|
|
220
|
+
const de = /* @__PURE__ */ new Set();
|
|
221
|
+
let R;
|
|
222
222
|
function dr() {
|
|
223
|
-
|
|
223
|
+
R = {
|
|
224
224
|
r: 0,
|
|
225
225
|
c: [],
|
|
226
|
-
p:
|
|
226
|
+
p: R
|
|
227
227
|
// parent group
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function br() {
|
|
231
|
+
R.r || Z(R.c), R = R.p;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
e && e.i && (
|
|
233
|
+
function C(e, t) {
|
|
234
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function F(e, t, r, n) {
|
|
237
237
|
if (e && e.o) {
|
|
238
|
-
if (
|
|
238
|
+
if (de.has(e))
|
|
239
239
|
return;
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
de.add(e), R.c.push(() => {
|
|
241
|
+
de.delete(e), n && (r && e.d(1), n());
|
|
242
242
|
}), e.o(t);
|
|
243
243
|
} else
|
|
244
244
|
n && n();
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ni(e) {
|
|
247
247
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function pr(e, t, r) {
|
|
250
250
|
const { fragment: n, after_update: i } = e.$$;
|
|
251
|
-
n && n.m(t, r),
|
|
252
|
-
const
|
|
253
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
254
|
-
}), i.forEach(
|
|
251
|
+
n && n.m(t, r), Me(() => {
|
|
252
|
+
const a = e.$$.on_mount.map(vt).filter(ze);
|
|
253
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Z(a), e.$$.on_mount = [];
|
|
254
|
+
}), i.forEach(Me);
|
|
255
255
|
}
|
|
256
256
|
function gr(e, t) {
|
|
257
257
|
const r = e.$$;
|
|
258
|
-
r.fragment !== null && (mr(r.after_update),
|
|
258
|
+
r.fragment !== null && (mr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
259
259
|
}
|
|
260
260
|
function yr(e, t) {
|
|
261
|
-
e.$$.dirty[0] === -1 && (
|
|
261
|
+
e.$$.dirty[0] === -1 && (k.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
262
262
|
}
|
|
263
|
-
function _r(e, t, r, n, i,
|
|
264
|
-
const h =
|
|
265
|
-
|
|
263
|
+
function _r(e, t, r, n, i, a, o = null, s = [-1]) {
|
|
264
|
+
const h = ee;
|
|
265
|
+
K(e);
|
|
266
266
|
const u = e.$$ = {
|
|
267
267
|
fragment: null,
|
|
268
268
|
ctx: [],
|
|
269
269
|
// state
|
|
270
|
-
props:
|
|
271
|
-
update:
|
|
270
|
+
props: a,
|
|
271
|
+
update: A,
|
|
272
272
|
not_equal: i,
|
|
273
273
|
bound: Qe(),
|
|
274
274
|
// lifecycle
|
|
@@ -280,27 +280,27 @@ function _r(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
280
280
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
281
281
|
// everything else
|
|
282
282
|
callbacks: Qe(),
|
|
283
|
-
dirty:
|
|
283
|
+
dirty: s,
|
|
284
284
|
skip_bound: !1,
|
|
285
285
|
root: t.target || h.$$.root
|
|
286
286
|
};
|
|
287
287
|
o && o(u.root);
|
|
288
288
|
let l = !1;
|
|
289
289
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
290
|
-
const
|
|
291
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
292
|
-
}) : [], u.update(), l = !0,
|
|
290
|
+
const b = y.length ? y[0] : c;
|
|
291
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && yr(e, f)), c;
|
|
292
|
+
}) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
293
293
|
if (t.hydrate) {
|
|
294
294
|
const f = or(t.target);
|
|
295
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
295
|
+
u.fragment && u.fragment.l(f), f.forEach(I);
|
|
296
296
|
} else
|
|
297
297
|
u.fragment && u.fragment.c();
|
|
298
|
-
t.intro &&
|
|
298
|
+
t.intro && C(e.$$.fragment), pr(e, t.target, t.anchor), S();
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
K(h);
|
|
301
301
|
}
|
|
302
|
-
let
|
|
303
|
-
typeof HTMLElement == "function" && (
|
|
302
|
+
let wt;
|
|
303
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
304
304
|
/** The Svelte component constructor */
|
|
305
305
|
$$ctor;
|
|
306
306
|
/** Slots */
|
|
@@ -339,32 +339,32 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
339
339
|
if (this.$$cn = !0, !this.$$c) {
|
|
340
340
|
let e = function(i) {
|
|
341
341
|
return () => {
|
|
342
|
-
let
|
|
342
|
+
let a;
|
|
343
343
|
return {
|
|
344
344
|
c: function() {
|
|
345
|
-
|
|
345
|
+
a = P("slot"), i !== "default" && L(a, "name", i);
|
|
346
346
|
},
|
|
347
347
|
/**
|
|
348
348
|
* @param {HTMLElement} target
|
|
349
349
|
* @param {HTMLElement} [anchor]
|
|
350
350
|
*/
|
|
351
351
|
m: function(h, u) {
|
|
352
|
-
|
|
352
|
+
M(h, a, u);
|
|
353
353
|
},
|
|
354
354
|
d: function(h) {
|
|
355
|
-
h &&
|
|
355
|
+
h && I(a);
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
};
|
|
359
359
|
};
|
|
360
360
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
361
361
|
return;
|
|
362
|
-
const t = {}, r =
|
|
362
|
+
const t = {}, r = sr(this);
|
|
363
363
|
for (const i of this.$$s)
|
|
364
364
|
i in r && (t[i] = [e(i)]);
|
|
365
365
|
for (const i of this.attributes) {
|
|
366
|
-
const
|
|
367
|
-
|
|
366
|
+
const a = this.$$g_p(i.name);
|
|
367
|
+
a in this.$$d || (this.$$d[a] = be(a, i.value, this.$$p_d, "toProp"));
|
|
368
368
|
}
|
|
369
369
|
for (const i in this.$$p_d)
|
|
370
370
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -382,21 +382,21 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
382
382
|
this.$$r = !0;
|
|
383
383
|
for (const i in this.$$p_d)
|
|
384
384
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
385
|
-
const
|
|
385
|
+
const a = be(
|
|
386
386
|
i,
|
|
387
387
|
this.$$d[i],
|
|
388
388
|
this.$$p_d,
|
|
389
389
|
"toAttribute"
|
|
390
390
|
);
|
|
391
|
-
|
|
391
|
+
a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
|
|
392
392
|
}
|
|
393
393
|
this.$$r = !1;
|
|
394
394
|
};
|
|
395
395
|
this.$$c.$$.after_update.push(n), n();
|
|
396
396
|
for (const i in this.$$l)
|
|
397
|
-
for (const
|
|
398
|
-
const o = this.$$c.$on(i,
|
|
399
|
-
this.$$l_u.set(
|
|
397
|
+
for (const a of this.$$l[i]) {
|
|
398
|
+
const o = this.$$c.$on(i, a);
|
|
399
|
+
this.$$l_u.set(a, o);
|
|
400
400
|
}
|
|
401
401
|
this.$$l = {};
|
|
402
402
|
}
|
|
@@ -446,30 +446,30 @@ function be(e, t, r, n) {
|
|
|
446
446
|
return t;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function Er(e, t, r, n, i,
|
|
450
|
-
let o = class extends
|
|
449
|
+
function Er(e, t, r, n, i, a) {
|
|
450
|
+
let o = class extends wt {
|
|
451
451
|
constructor() {
|
|
452
452
|
super(e, r, i), this.$$p_d = t;
|
|
453
453
|
}
|
|
454
454
|
static get observedAttributes() {
|
|
455
455
|
return Object.keys(t).map(
|
|
456
|
-
(
|
|
456
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
457
457
|
);
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
return Object.keys(t).forEach((
|
|
461
|
-
Object.defineProperty(o.prototype,
|
|
460
|
+
return Object.keys(t).forEach((s) => {
|
|
461
|
+
Object.defineProperty(o.prototype, s, {
|
|
462
462
|
get() {
|
|
463
|
-
return this.$$c &&
|
|
463
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
464
464
|
},
|
|
465
465
|
set(h) {
|
|
466
|
-
h = be(
|
|
466
|
+
h = be(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
|
-
}), n.forEach((
|
|
470
|
-
Object.defineProperty(o.prototype,
|
|
469
|
+
}), n.forEach((s) => {
|
|
470
|
+
Object.defineProperty(o.prototype, s, {
|
|
471
471
|
get() {
|
|
472
|
-
return this.$$c?.[
|
|
472
|
+
return this.$$c?.[s];
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}), e.element = /** @type {any} */
|
|
@@ -494,7 +494,7 @@ class vr {
|
|
|
494
494
|
$$set = void 0;
|
|
495
495
|
/** @returns {void} */
|
|
496
496
|
$destroy() {
|
|
497
|
-
gr(this, 1), this.$destroy =
|
|
497
|
+
gr(this, 1), this.$destroy = A;
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -503,8 +503,8 @@ class vr {
|
|
|
503
503
|
* @returns {() => void}
|
|
504
504
|
*/
|
|
505
505
|
$on(t, r) {
|
|
506
|
-
if (!
|
|
507
|
-
return
|
|
506
|
+
if (!ze(r))
|
|
507
|
+
return A;
|
|
508
508
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
509
509
|
return n.push(r), () => {
|
|
510
510
|
const i = n.indexOf(r);
|
|
@@ -521,80 +521,80 @@ class vr {
|
|
|
521
521
|
}
|
|
522
522
|
const xr = "4";
|
|
523
523
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
|
|
524
|
-
const
|
|
524
|
+
const G = [];
|
|
525
525
|
function Tr(e, t) {
|
|
526
526
|
return {
|
|
527
|
-
subscribe:
|
|
527
|
+
subscribe: ve(e, t).subscribe
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ve(e, t = A) {
|
|
531
531
|
let r;
|
|
532
532
|
const n = /* @__PURE__ */ new Set();
|
|
533
|
-
function i(
|
|
534
|
-
if (xt(e,
|
|
535
|
-
const h = !
|
|
533
|
+
function i(s) {
|
|
534
|
+
if (xt(e, s) && (e = s, r)) {
|
|
535
|
+
const h = !G.length;
|
|
536
536
|
for (const u of n)
|
|
537
|
-
u[1](),
|
|
537
|
+
u[1](), G.push(u, e);
|
|
538
538
|
if (h) {
|
|
539
|
-
for (let u = 0; u <
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
for (let u = 0; u < G.length; u += 2)
|
|
540
|
+
G[u][0](G[u + 1]);
|
|
541
|
+
G.length = 0;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
function s
|
|
546
|
-
i(
|
|
545
|
+
function a(s) {
|
|
546
|
+
i(s(e));
|
|
547
547
|
}
|
|
548
|
-
function o(
|
|
549
|
-
const u = [
|
|
550
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
548
|
+
function o(s, h = A) {
|
|
549
|
+
const u = [s, h];
|
|
550
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || A), s(e), () => {
|
|
551
551
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
return { set: i, update:
|
|
554
|
+
return { set: i, update: a, subscribe: o };
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function J(e, t, r) {
|
|
557
557
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
558
558
|
if (!i.every(Boolean))
|
|
559
559
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
560
|
-
const
|
|
561
|
-
return Tr(r, (o,
|
|
560
|
+
const a = t.length < 2;
|
|
561
|
+
return Tr(r, (o, s) => {
|
|
562
562
|
let h = !1;
|
|
563
563
|
const u = [];
|
|
564
|
-
let l = 0, f =
|
|
564
|
+
let l = 0, f = A;
|
|
565
565
|
const c = () => {
|
|
566
566
|
if (l)
|
|
567
567
|
return;
|
|
568
568
|
f();
|
|
569
|
-
const
|
|
570
|
-
|
|
569
|
+
const b = t(n ? u[0] : u, o, s);
|
|
570
|
+
a ? o(b) : f = ze(b) ? b : A;
|
|
571
571
|
}, y = i.map(
|
|
572
|
-
(
|
|
573
|
-
|
|
574
|
-
(
|
|
575
|
-
u[
|
|
572
|
+
(b, v) => Tt(
|
|
573
|
+
b,
|
|
574
|
+
(E) => {
|
|
575
|
+
u[v] = E, l &= ~(1 << v), h && c();
|
|
576
576
|
},
|
|
577
577
|
() => {
|
|
578
|
-
l |= 1 <<
|
|
578
|
+
l |= 1 << v;
|
|
579
579
|
}
|
|
580
580
|
)
|
|
581
581
|
);
|
|
582
582
|
return h = !0, c(), function() {
|
|
583
|
-
|
|
583
|
+
Z(y), f(), h = !1;
|
|
584
584
|
};
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
var
|
|
587
|
+
var Li = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
588
588
|
function Hr(e) {
|
|
589
589
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
return
|
|
591
|
+
var wr = function(t) {
|
|
592
|
+
return Br(t) && !Sr(t);
|
|
593
593
|
};
|
|
594
|
-
function
|
|
594
|
+
function Br(e) {
|
|
595
595
|
return !!e && typeof e == "object";
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Sr(e) {
|
|
598
598
|
var t = Object.prototype.toString.call(e);
|
|
599
599
|
return t === "[object RegExp]" || t === "[object Date]" || Or(e);
|
|
600
600
|
}
|
|
@@ -605,19 +605,19 @@ function Or(e) {
|
|
|
605
605
|
function Ir(e) {
|
|
606
606
|
return Array.isArray(e) ? [] : {};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
608
|
+
function te(e, t) {
|
|
609
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Ir(e), e, t) : e;
|
|
610
610
|
}
|
|
611
611
|
function Cr(e, t, r) {
|
|
612
612
|
return e.concat(t).map(function(n) {
|
|
613
|
-
return
|
|
613
|
+
return te(n, r);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
function Nr(e, t) {
|
|
617
617
|
if (!t.customMerge)
|
|
618
|
-
return
|
|
618
|
+
return z;
|
|
619
619
|
var r = t.customMerge(e);
|
|
620
|
-
return typeof r == "function" ? r :
|
|
620
|
+
return typeof r == "function" ? r : z;
|
|
621
621
|
}
|
|
622
622
|
function Lr(e) {
|
|
623
623
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -627,7 +627,7 @@ function Lr(e) {
|
|
|
627
627
|
function et(e) {
|
|
628
628
|
return Object.keys(e).concat(Lr(e));
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Bt(e, t) {
|
|
631
631
|
try {
|
|
632
632
|
return t in e;
|
|
633
633
|
} catch {
|
|
@@ -635,56 +635,70 @@ function wt(e, t) {
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
function Mr(e, t) {
|
|
638
|
-
return
|
|
638
|
+
return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
639
639
|
}
|
|
640
640
|
function $r(e, t, r) {
|
|
641
641
|
var n = {};
|
|
642
642
|
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
643
|
-
n[i] =
|
|
643
|
+
n[i] = te(e[i], r);
|
|
644
644
|
}), et(t).forEach(function(i) {
|
|
645
|
-
Mr(e, i) || (
|
|
645
|
+
Mr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
646
646
|
}), n;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject ||
|
|
650
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
651
|
-
return
|
|
648
|
+
function z(e, t, r) {
|
|
649
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = te;
|
|
650
|
+
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
651
|
+
return a ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : te(t, r);
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
z.all = function(t, r) {
|
|
654
654
|
if (!Array.isArray(t))
|
|
655
655
|
throw new Error("first argument should be an array");
|
|
656
656
|
return t.reduce(function(n, i) {
|
|
657
|
-
return
|
|
657
|
+
return z(n, i, r);
|
|
658
658
|
}, {});
|
|
659
659
|
};
|
|
660
|
-
var Rr =
|
|
660
|
+
var Rr = z, Dr = Rr;
|
|
661
661
|
const Ur = /* @__PURE__ */ Hr(Dr);
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
/*! *****************************************************************************
|
|
663
|
+
Copyright (c) Microsoft Corporation.
|
|
664
|
+
|
|
665
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
666
|
+
purpose with or without fee is hereby granted.
|
|
667
|
+
|
|
668
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
669
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
670
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
671
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
672
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
673
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
674
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
675
|
+
***************************************************************************** */
|
|
676
|
+
var $e = function(e, t) {
|
|
677
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
664
678
|
r.__proto__ = n;
|
|
665
679
|
} || function(r, n) {
|
|
666
680
|
for (var i in n)
|
|
667
681
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
668
|
-
},
|
|
682
|
+
}, $e(e, t);
|
|
669
683
|
};
|
|
670
|
-
function
|
|
684
|
+
function xe(e, t) {
|
|
671
685
|
if (typeof t != "function" && t !== null)
|
|
672
686
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
673
|
-
|
|
687
|
+
$e(e, t);
|
|
674
688
|
function r() {
|
|
675
689
|
this.constructor = e;
|
|
676
690
|
}
|
|
677
691
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
678
692
|
}
|
|
679
|
-
var
|
|
680
|
-
return
|
|
693
|
+
var _ = function() {
|
|
694
|
+
return _ = Object.assign || function(t) {
|
|
681
695
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
682
696
|
r = arguments[n];
|
|
683
|
-
for (var
|
|
684
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
697
|
+
for (var a in r)
|
|
698
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
685
699
|
}
|
|
686
700
|
return t;
|
|
687
|
-
},
|
|
701
|
+
}, _.apply(this, arguments);
|
|
688
702
|
};
|
|
689
703
|
function Gr(e, t) {
|
|
690
704
|
var r = {};
|
|
@@ -695,14 +709,46 @@ function Gr(e, t) {
|
|
|
695
709
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
696
710
|
return r;
|
|
697
711
|
}
|
|
698
|
-
function
|
|
712
|
+
function Mi(e) {
|
|
713
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
714
|
+
if (r)
|
|
715
|
+
return r.call(e);
|
|
716
|
+
if (e && typeof e.length == "number")
|
|
717
|
+
return {
|
|
718
|
+
next: function() {
|
|
719
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
723
|
+
}
|
|
724
|
+
function $i(e, t) {
|
|
725
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
726
|
+
if (!r)
|
|
727
|
+
return e;
|
|
728
|
+
var n = r.call(e), i, a = [], o;
|
|
729
|
+
try {
|
|
730
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
731
|
+
a.push(i.value);
|
|
732
|
+
} catch (s) {
|
|
733
|
+
o = { error: s };
|
|
734
|
+
} finally {
|
|
735
|
+
try {
|
|
736
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
737
|
+
} finally {
|
|
738
|
+
if (o)
|
|
739
|
+
throw o.error;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
return a;
|
|
743
|
+
}
|
|
744
|
+
function Se(e, t, r) {
|
|
699
745
|
if (r || arguments.length === 2)
|
|
700
|
-
for (var n = 0, i = t.length,
|
|
701
|
-
(
|
|
702
|
-
return e.concat(
|
|
746
|
+
for (var n = 0, i = t.length, a; n < i; n++)
|
|
747
|
+
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
748
|
+
return e.concat(a || t);
|
|
703
749
|
}
|
|
704
|
-
function
|
|
705
|
-
var r = t && t.cache ? t.cache :
|
|
750
|
+
function Ae(e, t) {
|
|
751
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : Fr;
|
|
706
752
|
return i(e, {
|
|
707
753
|
cache: r,
|
|
708
754
|
serializer: n
|
|
@@ -711,103 +757,95 @@ function Oe(e, t) {
|
|
|
711
757
|
function kr(e) {
|
|
712
758
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
713
759
|
}
|
|
714
|
-
function
|
|
715
|
-
var i = kr(n) ? n : r(n),
|
|
716
|
-
return typeof
|
|
760
|
+
function St(e, t, r, n) {
|
|
761
|
+
var i = kr(n) ? n : r(n), a = t.get(i);
|
|
762
|
+
return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
|
|
717
763
|
}
|
|
718
|
-
function
|
|
719
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
720
|
-
return typeof
|
|
764
|
+
function At(e, t, r) {
|
|
765
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
766
|
+
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
721
767
|
}
|
|
722
|
-
function
|
|
768
|
+
function Xe(e, t, r, n, i) {
|
|
723
769
|
return r.bind(t, e, n, i);
|
|
724
770
|
}
|
|
771
|
+
function Fr(e, t) {
|
|
772
|
+
var r = e.length === 1 ? St : At;
|
|
773
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
774
|
+
}
|
|
725
775
|
function jr(e, t) {
|
|
726
|
-
|
|
727
|
-
return At(e, this, r, t.cache.create(), t.serializer);
|
|
776
|
+
return Xe(e, this, At, t.cache.create(), t.serializer);
|
|
728
777
|
}
|
|
729
778
|
function zr(e, t) {
|
|
730
|
-
return
|
|
779
|
+
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
731
780
|
}
|
|
732
781
|
var Vr = function() {
|
|
733
782
|
return JSON.stringify(arguments);
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}()
|
|
746
|
-
), Wr = {
|
|
783
|
+
};
|
|
784
|
+
function We() {
|
|
785
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
786
|
+
}
|
|
787
|
+
We.prototype.get = function(e) {
|
|
788
|
+
return this.cache[e];
|
|
789
|
+
};
|
|
790
|
+
We.prototype.set = function(e, t) {
|
|
791
|
+
this.cache[e] = t;
|
|
792
|
+
};
|
|
793
|
+
var Xr = {
|
|
747
794
|
create: function() {
|
|
748
|
-
return new
|
|
795
|
+
return new We();
|
|
749
796
|
}
|
|
750
|
-
},
|
|
751
|
-
variadic:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
755
|
-
r = arguments[n];
|
|
756
|
-
for (var s in r)
|
|
757
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
758
|
-
}
|
|
759
|
-
return t;
|
|
760
|
-
}, _e.apply(this, arguments);
|
|
761
|
-
};
|
|
762
|
-
var b;
|
|
797
|
+
}, Pe = {
|
|
798
|
+
variadic: jr,
|
|
799
|
+
monadic: zr
|
|
800
|
+
}, p;
|
|
763
801
|
(function(e) {
|
|
764
802
|
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";
|
|
765
|
-
})(
|
|
766
|
-
var
|
|
803
|
+
})(p || (p = {}));
|
|
804
|
+
var T;
|
|
767
805
|
(function(e) {
|
|
768
806
|
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";
|
|
769
|
-
})(
|
|
770
|
-
var
|
|
807
|
+
})(T || (T = {}));
|
|
808
|
+
var V;
|
|
771
809
|
(function(e) {
|
|
772
810
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
773
|
-
})(
|
|
811
|
+
})(V || (V = {}));
|
|
774
812
|
function tt(e) {
|
|
775
|
-
return e.type ===
|
|
813
|
+
return e.type === T.literal;
|
|
776
814
|
}
|
|
777
|
-
function
|
|
778
|
-
return e.type ===
|
|
815
|
+
function Wr(e) {
|
|
816
|
+
return e.type === T.argument;
|
|
779
817
|
}
|
|
780
818
|
function Pt(e) {
|
|
781
|
-
return e.type ===
|
|
819
|
+
return e.type === T.number;
|
|
782
820
|
}
|
|
783
821
|
function Ot(e) {
|
|
784
|
-
return e.type ===
|
|
822
|
+
return e.type === T.date;
|
|
785
823
|
}
|
|
786
824
|
function It(e) {
|
|
787
|
-
return e.type ===
|
|
825
|
+
return e.type === T.time;
|
|
788
826
|
}
|
|
789
827
|
function Ct(e) {
|
|
790
|
-
return e.type ===
|
|
828
|
+
return e.type === T.select;
|
|
791
829
|
}
|
|
792
830
|
function Nt(e) {
|
|
793
|
-
return e.type ===
|
|
831
|
+
return e.type === T.plural;
|
|
794
832
|
}
|
|
795
|
-
function
|
|
796
|
-
return e.type ===
|
|
833
|
+
function Zr(e) {
|
|
834
|
+
return e.type === T.pound;
|
|
797
835
|
}
|
|
798
836
|
function Lt(e) {
|
|
799
|
-
return e.type ===
|
|
837
|
+
return e.type === T.tag;
|
|
800
838
|
}
|
|
801
839
|
function Mt(e) {
|
|
802
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
840
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
803
841
|
}
|
|
804
|
-
function
|
|
805
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
842
|
+
function Re(e) {
|
|
843
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
806
844
|
}
|
|
807
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
808
|
-
function
|
|
845
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jr = /(?:[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;
|
|
846
|
+
function qr(e) {
|
|
809
847
|
var t = {};
|
|
810
|
-
return e.replace(
|
|
848
|
+
return e.replace(Jr, function(r) {
|
|
811
849
|
var n = r.length;
|
|
812
850
|
switch (r[0]) {
|
|
813
851
|
case "G":
|
|
@@ -896,39 +934,29 @@ function Qr(e) {
|
|
|
896
934
|
return "";
|
|
897
935
|
}), t;
|
|
898
936
|
}
|
|
899
|
-
var
|
|
900
|
-
|
|
901
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
902
|
-
r = arguments[n];
|
|
903
|
-
for (var s in r)
|
|
904
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
905
|
-
}
|
|
906
|
-
return t;
|
|
907
|
-
}, T.apply(this, arguments);
|
|
908
|
-
};
|
|
909
|
-
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
910
|
-
function Kr(e) {
|
|
937
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
938
|
+
function Yr(e) {
|
|
911
939
|
if (e.length === 0)
|
|
912
940
|
throw new Error("Number skeleton cannot be empty");
|
|
913
|
-
for (var t = e.split(
|
|
941
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
914
942
|
return c.length > 0;
|
|
915
943
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
916
|
-
var
|
|
944
|
+
var a = i[n], o = a.split("/");
|
|
917
945
|
if (o.length === 0)
|
|
918
946
|
throw new Error("Invalid number skeleton");
|
|
919
|
-
for (var
|
|
947
|
+
for (var s = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
920
948
|
var f = l[u];
|
|
921
949
|
if (f.length === 0)
|
|
922
950
|
throw new Error("Invalid number skeleton");
|
|
923
951
|
}
|
|
924
|
-
r.push({ stem:
|
|
952
|
+
r.push({ stem: s, options: h });
|
|
925
953
|
}
|
|
926
954
|
return r;
|
|
927
955
|
}
|
|
928
|
-
function
|
|
956
|
+
function Kr(e) {
|
|
929
957
|
return e.replace(/^(.*?)-/, "");
|
|
930
958
|
}
|
|
931
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
959
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
932
960
|
function nt(e) {
|
|
933
961
|
var t = {};
|
|
934
962
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -975,7 +1003,7 @@ function Ut(e) {
|
|
|
975
1003
|
};
|
|
976
1004
|
}
|
|
977
1005
|
}
|
|
978
|
-
function
|
|
1006
|
+
function tn(e) {
|
|
979
1007
|
var t;
|
|
980
1008
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
981
1009
|
notation: "engineering"
|
|
@@ -993,7 +1021,7 @@ function it(e) {
|
|
|
993
1021
|
var t = {}, r = Ut(e);
|
|
994
1022
|
return r || t;
|
|
995
1023
|
}
|
|
996
|
-
function
|
|
1024
|
+
function rn(e) {
|
|
997
1025
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
998
1026
|
var i = n[r];
|
|
999
1027
|
switch (i.stem) {
|
|
@@ -1017,7 +1045,7 @@ function nn(e) {
|
|
|
1017
1045
|
continue;
|
|
1018
1046
|
case "measure-unit":
|
|
1019
1047
|
case "unit":
|
|
1020
|
-
t.style = "unit", t.unit =
|
|
1048
|
+
t.style = "unit", t.unit = Kr(i.options[0]);
|
|
1021
1049
|
continue;
|
|
1022
1050
|
case "compact-short":
|
|
1023
1051
|
case "K":
|
|
@@ -1028,13 +1056,13 @@ function nn(e) {
|
|
|
1028
1056
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1029
1057
|
continue;
|
|
1030
1058
|
case "scientific":
|
|
1031
|
-
t =
|
|
1032
|
-
return
|
|
1059
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1060
|
+
return _(_({}, h), it(u));
|
|
1033
1061
|
}, {}));
|
|
1034
1062
|
continue;
|
|
1035
1063
|
case "engineering":
|
|
1036
|
-
t =
|
|
1037
|
-
return
|
|
1064
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1065
|
+
return _(_({}, h), it(u));
|
|
1038
1066
|
}, {}));
|
|
1039
1067
|
continue;
|
|
1040
1068
|
case "notation-simple":
|
|
@@ -1079,7 +1107,7 @@ function nn(e) {
|
|
|
1079
1107
|
case "integer-width":
|
|
1080
1108
|
if (i.options.length > 1)
|
|
1081
1109
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1082
|
-
i.options[0].replace(
|
|
1110
|
+
i.options[0].replace(en, function(h, u, l, f, c, y) {
|
|
1083
1111
|
if (u)
|
|
1084
1112
|
t.minimumIntegerDigits = l.length;
|
|
1085
1113
|
else {
|
|
@@ -1102,22 +1130,22 @@ function nn(e) {
|
|
|
1102
1130
|
i.stem.replace(rt, function(h, u, l, f, c, y) {
|
|
1103
1131
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1104
1132
|
});
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1133
|
+
var a = i.options[0];
|
|
1134
|
+
a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), nt(a)));
|
|
1107
1135
|
continue;
|
|
1108
1136
|
}
|
|
1109
1137
|
if (Rt.test(i.stem)) {
|
|
1110
|
-
t =
|
|
1138
|
+
t = _(_({}, t), nt(i.stem));
|
|
1111
1139
|
continue;
|
|
1112
1140
|
}
|
|
1113
1141
|
var o = Ut(i.stem);
|
|
1114
|
-
o && (t =
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1142
|
+
o && (t = _(_({}, t), o));
|
|
1143
|
+
var s = tn(i.stem);
|
|
1144
|
+
s && (t = _(_({}, t), s));
|
|
1117
1145
|
}
|
|
1118
1146
|
return t;
|
|
1119
1147
|
}
|
|
1120
|
-
var
|
|
1148
|
+
var le = {
|
|
1121
1149
|
"001": [
|
|
1122
1150
|
"H",
|
|
1123
1151
|
"h"
|
|
@@ -2532,14 +2560,14 @@ var he = {
|
|
|
2532
2560
|
"h"
|
|
2533
2561
|
]
|
|
2534
2562
|
};
|
|
2535
|
-
function
|
|
2563
|
+
function nn(e, t) {
|
|
2536
2564
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2537
2565
|
var i = e.charAt(n);
|
|
2538
2566
|
if (i === "j") {
|
|
2539
|
-
for (var
|
|
2540
|
-
|
|
2541
|
-
var o = 1 + (
|
|
2542
|
-
for ((u == "H" || u == "k") && (
|
|
2567
|
+
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2568
|
+
a++, n++;
|
|
2569
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = an(t);
|
|
2570
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2543
2571
|
r += h;
|
|
2544
2572
|
for (; o-- > 0; )
|
|
2545
2573
|
r = u + r;
|
|
@@ -2548,7 +2576,7 @@ function sn(e, t) {
|
|
|
2548
2576
|
}
|
|
2549
2577
|
return r;
|
|
2550
2578
|
}
|
|
2551
|
-
function
|
|
2579
|
+
function an(e) {
|
|
2552
2580
|
var t = e.hourCycle;
|
|
2553
2581
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2554
2582
|
e.hourCycles && // @ts-ignore
|
|
@@ -2567,23 +2595,23 @@ function on(e) {
|
|
|
2567
2595
|
}
|
|
2568
2596
|
var r = e.language, n;
|
|
2569
2597
|
r !== "root" && (n = e.maximize().region);
|
|
2570
|
-
var i =
|
|
2598
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2571
2599
|
return i[0];
|
|
2572
2600
|
}
|
|
2573
|
-
var
|
|
2601
|
+
var Oe, on = new RegExp("^".concat($t.source, "*")), sn = new RegExp("".concat($t.source, "*$"));
|
|
2574
2602
|
function g(e, t) {
|
|
2575
2603
|
return { start: e, end: t };
|
|
2576
2604
|
}
|
|
2577
|
-
var
|
|
2605
|
+
var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), ln = !!String.fromCodePoint, hn = !!Object.fromEntries, cn = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, bn = dn ? Number.isSafeInteger : function(e) {
|
|
2578
2606
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2579
|
-
},
|
|
2607
|
+
}, De = !0;
|
|
2580
2608
|
try {
|
|
2581
|
-
var
|
|
2582
|
-
|
|
2609
|
+
var pn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2610
|
+
De = ((Oe = pn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2583
2611
|
} catch {
|
|
2584
|
-
|
|
2612
|
+
De = !1;
|
|
2585
2613
|
}
|
|
2586
|
-
var
|
|
2614
|
+
var at = un ? (
|
|
2587
2615
|
// Native
|
|
2588
2616
|
function(t, r, n) {
|
|
2589
2617
|
return t.startsWith(r, n);
|
|
@@ -2593,13 +2621,13 @@ var st = ln ? (
|
|
|
2593
2621
|
function(t, r, n) {
|
|
2594
2622
|
return t.slice(n, n + r.length) === r;
|
|
2595
2623
|
}
|
|
2596
|
-
),
|
|
2624
|
+
), Ue = ln ? String.fromCodePoint : (
|
|
2597
2625
|
// IE11
|
|
2598
2626
|
function() {
|
|
2599
2627
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2600
2628
|
t[r] = arguments[r];
|
|
2601
|
-
for (var n = "", i = t.length,
|
|
2602
|
-
if (o = t[
|
|
2629
|
+
for (var n = "", i = t.length, a = 0, o; i > a; ) {
|
|
2630
|
+
if (o = t[a++], o > 1114111)
|
|
2603
2631
|
throw RangeError(o + " is not a valid code point");
|
|
2604
2632
|
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2605
2633
|
}
|
|
@@ -2607,17 +2635,17 @@ var st = ln ? (
|
|
|
2607
2635
|
}
|
|
2608
2636
|
), ot = (
|
|
2609
2637
|
// native
|
|
2610
|
-
|
|
2638
|
+
hn ? Object.fromEntries : (
|
|
2611
2639
|
// Ponyfill
|
|
2612
2640
|
function(t) {
|
|
2613
2641
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2614
|
-
var
|
|
2615
|
-
r[o] =
|
|
2642
|
+
var a = i[n], o = a[0], s = a[1];
|
|
2643
|
+
r[o] = s;
|
|
2616
2644
|
}
|
|
2617
2645
|
return r;
|
|
2618
2646
|
}
|
|
2619
2647
|
)
|
|
2620
|
-
), Gt =
|
|
2648
|
+
), Gt = cn ? (
|
|
2621
2649
|
// Native
|
|
2622
2650
|
function(t, r) {
|
|
2623
2651
|
return t.codePointAt(r);
|
|
@@ -2627,11 +2655,11 @@ var st = ln ? (
|
|
|
2627
2655
|
function(t, r) {
|
|
2628
2656
|
var n = t.length;
|
|
2629
2657
|
if (!(r < 0 || r >= n)) {
|
|
2630
|
-
var i = t.charCodeAt(r),
|
|
2631
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2658
|
+
var i = t.charCodeAt(r), a;
|
|
2659
|
+
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2632
2660
|
}
|
|
2633
2661
|
}
|
|
2634
|
-
),
|
|
2662
|
+
), gn = fn ? (
|
|
2635
2663
|
// Native
|
|
2636
2664
|
function(t) {
|
|
2637
2665
|
return t.trimStart();
|
|
@@ -2639,9 +2667,9 @@ var st = ln ? (
|
|
|
2639
2667
|
) : (
|
|
2640
2668
|
// Ponyfill
|
|
2641
2669
|
function(t) {
|
|
2642
|
-
return t.replace(
|
|
2670
|
+
return t.replace(on, "");
|
|
2643
2671
|
}
|
|
2644
|
-
),
|
|
2672
|
+
), yn = mn ? (
|
|
2645
2673
|
// Native
|
|
2646
2674
|
function(t) {
|
|
2647
2675
|
return t.trimEnd();
|
|
@@ -2649,32 +2677,32 @@ var st = ln ? (
|
|
|
2649
2677
|
) : (
|
|
2650
2678
|
// Ponyfill
|
|
2651
2679
|
function(t) {
|
|
2652
|
-
return t.replace(
|
|
2680
|
+
return t.replace(sn, "");
|
|
2653
2681
|
}
|
|
2654
2682
|
);
|
|
2655
2683
|
function kt(e, t) {
|
|
2656
2684
|
return new RegExp(e, t);
|
|
2657
2685
|
}
|
|
2658
|
-
var
|
|
2659
|
-
if (
|
|
2660
|
-
var
|
|
2661
|
-
|
|
2686
|
+
var Ge;
|
|
2687
|
+
if (De) {
|
|
2688
|
+
var st = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2689
|
+
Ge = function(t, r) {
|
|
2662
2690
|
var n;
|
|
2663
|
-
|
|
2664
|
-
var i =
|
|
2691
|
+
st.lastIndex = r;
|
|
2692
|
+
var i = st.exec(t);
|
|
2665
2693
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2666
2694
|
};
|
|
2667
2695
|
} else
|
|
2668
|
-
|
|
2696
|
+
Ge = function(t, r) {
|
|
2669
2697
|
for (var n = []; ; ) {
|
|
2670
2698
|
var i = Gt(t, r);
|
|
2671
|
-
if (i === void 0 || Ft(i) ||
|
|
2699
|
+
if (i === void 0 || Ft(i) || xn(i))
|
|
2672
2700
|
break;
|
|
2673
2701
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2674
2702
|
}
|
|
2675
|
-
return
|
|
2703
|
+
return Ue.apply(void 0, n);
|
|
2676
2704
|
};
|
|
2677
|
-
var
|
|
2705
|
+
var _n = (
|
|
2678
2706
|
/** @class */
|
|
2679
2707
|
function() {
|
|
2680
2708
|
function e(t, r) {
|
|
@@ -2686,26 +2714,26 @@ var En = (
|
|
|
2686
2714
|
return this.parseMessage(0, "", !1);
|
|
2687
2715
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2688
2716
|
for (var i = []; !this.isEOF(); ) {
|
|
2689
|
-
var
|
|
2690
|
-
if (
|
|
2717
|
+
var a = this.char();
|
|
2718
|
+
if (a === 123) {
|
|
2691
2719
|
var o = this.parseArgument(t, n);
|
|
2692
2720
|
if (o.err)
|
|
2693
2721
|
return o;
|
|
2694
2722
|
i.push(o.val);
|
|
2695
2723
|
} else {
|
|
2696
|
-
if (
|
|
2724
|
+
if (a === 125 && t > 0)
|
|
2697
2725
|
break;
|
|
2698
|
-
if (
|
|
2699
|
-
var
|
|
2726
|
+
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2727
|
+
var s = this.clonePosition();
|
|
2700
2728
|
this.bump(), i.push({
|
|
2701
|
-
type:
|
|
2702
|
-
location: g(
|
|
2729
|
+
type: T.pound,
|
|
2730
|
+
location: g(s, this.clonePosition())
|
|
2703
2731
|
});
|
|
2704
|
-
} else if (
|
|
2732
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2705
2733
|
if (n)
|
|
2706
2734
|
break;
|
|
2707
|
-
return this.error(
|
|
2708
|
-
} else if (
|
|
2735
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2736
|
+
} else if (a === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2709
2737
|
var o = this.parseTag(t, r);
|
|
2710
2738
|
if (o.err)
|
|
2711
2739
|
return o;
|
|
@@ -2726,44 +2754,44 @@ var En = (
|
|
|
2726
2754
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2727
2755
|
return {
|
|
2728
2756
|
val: {
|
|
2729
|
-
type:
|
|
2757
|
+
type: T.literal,
|
|
2730
2758
|
value: "<".concat(i, "/>"),
|
|
2731
2759
|
location: g(n, this.clonePosition())
|
|
2732
2760
|
},
|
|
2733
2761
|
err: null
|
|
2734
2762
|
};
|
|
2735
2763
|
if (this.bumpIf(">")) {
|
|
2736
|
-
var
|
|
2737
|
-
if (
|
|
2738
|
-
return
|
|
2739
|
-
var o =
|
|
2764
|
+
var a = this.parseMessage(t + 1, r, !0);
|
|
2765
|
+
if (a.err)
|
|
2766
|
+
return a;
|
|
2767
|
+
var o = a.val, s = this.clonePosition();
|
|
2740
2768
|
if (this.bumpIf("</")) {
|
|
2741
|
-
if (this.isEOF() || !
|
|
2742
|
-
return this.error(
|
|
2769
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2770
|
+
return this.error(p.INVALID_TAG, g(s, this.clonePosition()));
|
|
2743
2771
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2744
|
-
return i !== u ? this.error(
|
|
2772
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2745
2773
|
val: {
|
|
2746
|
-
type:
|
|
2774
|
+
type: T.tag,
|
|
2747
2775
|
value: i,
|
|
2748
2776
|
children: o,
|
|
2749
2777
|
location: g(n, this.clonePosition())
|
|
2750
2778
|
},
|
|
2751
2779
|
err: null
|
|
2752
|
-
} : this.error(
|
|
2780
|
+
} : this.error(p.INVALID_TAG, g(s, this.clonePosition())));
|
|
2753
2781
|
} else
|
|
2754
|
-
return this.error(
|
|
2782
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2755
2783
|
} else
|
|
2756
|
-
return this.error(
|
|
2784
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2757
2785
|
}, e.prototype.parseTagName = function() {
|
|
2758
2786
|
var t = this.offset();
|
|
2759
|
-
for (this.bump(); !this.isEOF() &&
|
|
2787
|
+
for (this.bump(); !this.isEOF() && vn(this.char()); )
|
|
2760
2788
|
this.bump();
|
|
2761
2789
|
return this.message.slice(t, this.offset());
|
|
2762
2790
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2763
2791
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2764
|
-
var
|
|
2765
|
-
if (
|
|
2766
|
-
i +=
|
|
2792
|
+
var a = this.tryParseQuote(r);
|
|
2793
|
+
if (a) {
|
|
2794
|
+
i += a;
|
|
2767
2795
|
continue;
|
|
2768
2796
|
}
|
|
2769
2797
|
var o = this.tryParseUnquoted(t, r);
|
|
@@ -2771,21 +2799,21 @@ var En = (
|
|
|
2771
2799
|
i += o;
|
|
2772
2800
|
continue;
|
|
2773
2801
|
}
|
|
2774
|
-
var
|
|
2775
|
-
if (
|
|
2776
|
-
i +=
|
|
2802
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2803
|
+
if (s) {
|
|
2804
|
+
i += s;
|
|
2777
2805
|
continue;
|
|
2778
2806
|
}
|
|
2779
2807
|
break;
|
|
2780
2808
|
}
|
|
2781
2809
|
var h = g(n, this.clonePosition());
|
|
2782
2810
|
return {
|
|
2783
|
-
val: { type:
|
|
2811
|
+
val: { type: T.literal, value: i, location: h },
|
|
2784
2812
|
err: null
|
|
2785
2813
|
};
|
|
2786
2814
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2787
2815
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2788
|
-
!
|
|
2816
|
+
!En(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2789
2817
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2790
2818
|
if (this.isEOF() || this.char() !== 39)
|
|
2791
2819
|
return null;
|
|
@@ -2819,28 +2847,28 @@ var En = (
|
|
|
2819
2847
|
r.push(n);
|
|
2820
2848
|
this.bump();
|
|
2821
2849
|
}
|
|
2822
|
-
return
|
|
2850
|
+
return Ue.apply(void 0, r);
|
|
2823
2851
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2824
2852
|
if (this.isEOF())
|
|
2825
2853
|
return null;
|
|
2826
2854
|
var n = this.char();
|
|
2827
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2855
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2828
2856
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2829
2857
|
var n = this.clonePosition();
|
|
2830
2858
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2831
|
-
return this.error(
|
|
2859
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2832
2860
|
if (this.char() === 125)
|
|
2833
|
-
return this.bump(), this.error(
|
|
2861
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2834
2862
|
var i = this.parseIdentifierIfPossible().value;
|
|
2835
2863
|
if (!i)
|
|
2836
|
-
return this.error(
|
|
2864
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2837
2865
|
if (this.bumpSpace(), this.isEOF())
|
|
2838
|
-
return this.error(
|
|
2866
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2839
2867
|
switch (this.char()) {
|
|
2840
2868
|
case 125:
|
|
2841
2869
|
return this.bump(), {
|
|
2842
2870
|
val: {
|
|
2843
|
-
type:
|
|
2871
|
+
type: T.argument,
|
|
2844
2872
|
// value does not include the opening and closing braces.
|
|
2845
2873
|
value: i,
|
|
2846
2874
|
location: g(n, this.clonePosition())
|
|
@@ -2848,20 +2876,20 @@ var En = (
|
|
|
2848
2876
|
err: null
|
|
2849
2877
|
};
|
|
2850
2878
|
case 44:
|
|
2851
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2879
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2852
2880
|
default:
|
|
2853
|
-
return this.error(
|
|
2881
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2854
2882
|
}
|
|
2855
2883
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2856
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2884
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2857
2885
|
this.bumpTo(i);
|
|
2858
|
-
var
|
|
2886
|
+
var a = this.clonePosition(), o = g(t, a);
|
|
2859
2887
|
return { value: n, location: o };
|
|
2860
2888
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2861
|
-
var
|
|
2862
|
-
switch (
|
|
2889
|
+
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2890
|
+
switch (s) {
|
|
2863
2891
|
case "":
|
|
2864
|
-
return this.error(
|
|
2892
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(o, h));
|
|
2865
2893
|
case "number":
|
|
2866
2894
|
case "date":
|
|
2867
2895
|
case "time": {
|
|
@@ -2872,47 +2900,47 @@ var En = (
|
|
|
2872
2900
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2873
2901
|
if (f.err)
|
|
2874
2902
|
return f;
|
|
2875
|
-
var c =
|
|
2903
|
+
var c = yn(f.val);
|
|
2876
2904
|
if (c.length === 0)
|
|
2877
|
-
return this.error(
|
|
2905
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2878
2906
|
var y = g(l, this.clonePosition());
|
|
2879
2907
|
u = { style: c, styleLocation: y };
|
|
2880
2908
|
}
|
|
2881
|
-
var
|
|
2882
|
-
if (
|
|
2883
|
-
return
|
|
2884
|
-
var
|
|
2885
|
-
if (u &&
|
|
2886
|
-
var
|
|
2887
|
-
if (
|
|
2888
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2909
|
+
var b = this.tryParseArgumentClose(i);
|
|
2910
|
+
if (b.err)
|
|
2911
|
+
return b;
|
|
2912
|
+
var v = g(i, this.clonePosition());
|
|
2913
|
+
if (u && at(u?.style, "::", 0)) {
|
|
2914
|
+
var E = gn(u.style.slice(2));
|
|
2915
|
+
if (s === "number") {
|
|
2916
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2889
2917
|
return f.err ? f : {
|
|
2890
|
-
val: { type:
|
|
2918
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2891
2919
|
err: null
|
|
2892
2920
|
};
|
|
2893
2921
|
} else {
|
|
2894
|
-
if (
|
|
2895
|
-
return this.error(
|
|
2896
|
-
var m =
|
|
2897
|
-
this.locale && (m =
|
|
2922
|
+
if (E.length === 0)
|
|
2923
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2924
|
+
var m = E;
|
|
2925
|
+
this.locale && (m = nn(E, this.locale));
|
|
2898
2926
|
var c = {
|
|
2899
|
-
type:
|
|
2927
|
+
type: V.dateTime,
|
|
2900
2928
|
pattern: m,
|
|
2901
2929
|
location: u.styleLocation,
|
|
2902
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2903
|
-
},
|
|
2930
|
+
parsedOptions: this.shouldParseSkeletons ? qr(m) : {}
|
|
2931
|
+
}, x = s === "date" ? T.date : T.time;
|
|
2904
2932
|
return {
|
|
2905
|
-
val: { type:
|
|
2933
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2906
2934
|
err: null
|
|
2907
2935
|
};
|
|
2908
2936
|
}
|
|
2909
2937
|
}
|
|
2910
2938
|
return {
|
|
2911
2939
|
val: {
|
|
2912
|
-
type:
|
|
2940
|
+
type: s === "number" ? T.number : s === "date" ? T.date : T.time,
|
|
2913
2941
|
value: n,
|
|
2914
|
-
location:
|
|
2915
|
-
style: (
|
|
2942
|
+
location: v,
|
|
2943
|
+
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
2916
2944
|
},
|
|
2917
2945
|
err: null
|
|
2918
2946
|
};
|
|
@@ -2922,50 +2950,50 @@ var En = (
|
|
|
2922
2950
|
case "select": {
|
|
2923
2951
|
var d = this.clonePosition();
|
|
2924
2952
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2925
|
-
return this.error(
|
|
2953
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2926
2954
|
this.bumpSpace();
|
|
2927
|
-
var
|
|
2928
|
-
if (
|
|
2955
|
+
var w = this.parseIdentifierIfPossible(), B = 0;
|
|
2956
|
+
if (s !== "select" && w.value === "offset") {
|
|
2929
2957
|
if (!this.bumpIf(":"))
|
|
2930
|
-
return this.error(
|
|
2958
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2931
2959
|
this.bumpSpace();
|
|
2932
|
-
var f = this.tryParseDecimalInteger(
|
|
2960
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2933
2961
|
if (f.err)
|
|
2934
2962
|
return f;
|
|
2935
|
-
this.bumpSpace(),
|
|
2963
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = f.val;
|
|
2936
2964
|
}
|
|
2937
|
-
var
|
|
2938
|
-
if (
|
|
2939
|
-
return
|
|
2940
|
-
var
|
|
2941
|
-
if (
|
|
2942
|
-
return
|
|
2965
|
+
var oe = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
2966
|
+
if (oe.err)
|
|
2967
|
+
return oe;
|
|
2968
|
+
var b = this.tryParseArgumentClose(i);
|
|
2969
|
+
if (b.err)
|
|
2970
|
+
return b;
|
|
2943
2971
|
var qe = g(i, this.clonePosition());
|
|
2944
|
-
return
|
|
2972
|
+
return s === "select" ? {
|
|
2945
2973
|
val: {
|
|
2946
|
-
type:
|
|
2974
|
+
type: T.select,
|
|
2947
2975
|
value: n,
|
|
2948
|
-
options: ot(
|
|
2976
|
+
options: ot(oe.val),
|
|
2949
2977
|
location: qe
|
|
2950
2978
|
},
|
|
2951
2979
|
err: null
|
|
2952
2980
|
} : {
|
|
2953
2981
|
val: {
|
|
2954
|
-
type:
|
|
2982
|
+
type: T.plural,
|
|
2955
2983
|
value: n,
|
|
2956
|
-
options: ot(
|
|
2957
|
-
offset:
|
|
2958
|
-
pluralType:
|
|
2984
|
+
options: ot(oe.val),
|
|
2985
|
+
offset: B,
|
|
2986
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2959
2987
|
location: qe
|
|
2960
2988
|
},
|
|
2961
2989
|
err: null
|
|
2962
2990
|
};
|
|
2963
2991
|
}
|
|
2964
2992
|
default:
|
|
2965
|
-
return this.error(
|
|
2993
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(o, h));
|
|
2966
2994
|
}
|
|
2967
2995
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2968
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2996
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2969
2997
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2970
2998
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2971
2999
|
var n = this.char();
|
|
@@ -2974,7 +3002,7 @@ var En = (
|
|
|
2974
3002
|
this.bump();
|
|
2975
3003
|
var i = this.clonePosition();
|
|
2976
3004
|
if (!this.bumpUntil("'"))
|
|
2977
|
-
return this.error(
|
|
3005
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
2978
3006
|
this.bump();
|
|
2979
3007
|
break;
|
|
2980
3008
|
}
|
|
@@ -3004,25 +3032,25 @@ var En = (
|
|
|
3004
3032
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3005
3033
|
var n = [];
|
|
3006
3034
|
try {
|
|
3007
|
-
n =
|
|
3035
|
+
n = Yr(t);
|
|
3008
3036
|
} catch {
|
|
3009
|
-
return this.error(
|
|
3037
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3010
3038
|
}
|
|
3011
3039
|
return {
|
|
3012
3040
|
val: {
|
|
3013
|
-
type:
|
|
3041
|
+
type: V.number,
|
|
3014
3042
|
tokens: n,
|
|
3015
3043
|
location: r,
|
|
3016
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3044
|
+
parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
|
|
3017
3045
|
},
|
|
3018
3046
|
err: null
|
|
3019
3047
|
};
|
|
3020
3048
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3021
|
-
for (var
|
|
3049
|
+
for (var a, o = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3022
3050
|
if (u.length === 0) {
|
|
3023
3051
|
var f = this.clonePosition();
|
|
3024
3052
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3025
|
-
var c = this.tryParseDecimalInteger(
|
|
3053
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3026
3054
|
if (c.err)
|
|
3027
3055
|
return c;
|
|
3028
3056
|
l = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3030,38 +3058,38 @@ var En = (
|
|
|
3030
3058
|
break;
|
|
3031
3059
|
}
|
|
3032
3060
|
if (h.has(u))
|
|
3033
|
-
return this.error(r === "select" ?
|
|
3061
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3034
3062
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3035
3063
|
var y = this.clonePosition();
|
|
3036
3064
|
if (!this.bumpIf("{"))
|
|
3037
|
-
return this.error(r === "select" ?
|
|
3038
|
-
var
|
|
3039
|
-
if (
|
|
3040
|
-
return
|
|
3041
|
-
var
|
|
3042
|
-
if (
|
|
3043
|
-
return
|
|
3044
|
-
|
|
3065
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3066
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3067
|
+
if (b.err)
|
|
3068
|
+
return b;
|
|
3069
|
+
var v = this.tryParseArgumentClose(y);
|
|
3070
|
+
if (v.err)
|
|
3071
|
+
return v;
|
|
3072
|
+
s.push([
|
|
3045
3073
|
u,
|
|
3046
3074
|
{
|
|
3047
|
-
value:
|
|
3075
|
+
value: b.val,
|
|
3048
3076
|
location: g(y, this.clonePosition())
|
|
3049
3077
|
}
|
|
3050
|
-
]), h.add(u), this.bumpSpace(),
|
|
3078
|
+
]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
|
|
3051
3079
|
}
|
|
3052
|
-
return
|
|
3080
|
+
return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3053
3081
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3054
3082
|
var n = 1, i = this.clonePosition();
|
|
3055
3083
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3056
|
-
for (var
|
|
3057
|
-
var
|
|
3058
|
-
if (
|
|
3059
|
-
|
|
3084
|
+
for (var a = !1, o = 0; !this.isEOF(); ) {
|
|
3085
|
+
var s = this.char();
|
|
3086
|
+
if (s >= 48 && s <= 57)
|
|
3087
|
+
a = !0, o = o * 10 + (s - 48), this.bump();
|
|
3060
3088
|
else
|
|
3061
3089
|
break;
|
|
3062
3090
|
}
|
|
3063
3091
|
var h = g(i, this.clonePosition());
|
|
3064
|
-
return
|
|
3092
|
+
return a ? (o *= n, bn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3065
3093
|
}, e.prototype.offset = function() {
|
|
3066
3094
|
return this.position.offset;
|
|
3067
3095
|
}, e.prototype.isEOF = function() {
|
|
@@ -3095,7 +3123,7 @@ var En = (
|
|
|
3095
3123
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3096
3124
|
}
|
|
3097
3125
|
}, e.prototype.bumpIf = function(t) {
|
|
3098
|
-
if (
|
|
3126
|
+
if (at(this.message, t, this.offset())) {
|
|
3099
3127
|
for (var r = 0; r < t.length; r++)
|
|
3100
3128
|
this.bump();
|
|
3101
3129
|
return !0;
|
|
@@ -3127,50 +3155,50 @@ var En = (
|
|
|
3127
3155
|
}, e;
|
|
3128
3156
|
}()
|
|
3129
3157
|
);
|
|
3130
|
-
function
|
|
3158
|
+
function ke(e) {
|
|
3131
3159
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3132
3160
|
}
|
|
3133
|
-
function
|
|
3134
|
-
return
|
|
3161
|
+
function En(e) {
|
|
3162
|
+
return ke(e) || e === 47;
|
|
3135
3163
|
}
|
|
3136
|
-
function
|
|
3164
|
+
function vn(e) {
|
|
3137
3165
|
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;
|
|
3138
3166
|
}
|
|
3139
3167
|
function Ft(e) {
|
|
3140
3168
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3141
3169
|
}
|
|
3142
|
-
function
|
|
3170
|
+
function xn(e) {
|
|
3143
3171
|
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;
|
|
3144
3172
|
}
|
|
3145
|
-
function
|
|
3173
|
+
function Fe(e) {
|
|
3146
3174
|
e.forEach(function(t) {
|
|
3147
3175
|
if (delete t.location, Ct(t) || Nt(t))
|
|
3148
3176
|
for (var r in t.options)
|
|
3149
|
-
delete t.options[r].location,
|
|
3177
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3150
3178
|
else
|
|
3151
|
-
Pt(t) && Mt(t.style) || (Ot(t) || It(t)) &&
|
|
3179
|
+
Pt(t) && Mt(t.style) || (Ot(t) || It(t)) && Re(t.style) ? delete t.style.location : Lt(t) && Fe(t.children);
|
|
3152
3180
|
});
|
|
3153
3181
|
}
|
|
3154
|
-
function
|
|
3155
|
-
t === void 0 && (t = {}), t =
|
|
3156
|
-
var r = new
|
|
3182
|
+
function Tn(e, t) {
|
|
3183
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3184
|
+
var r = new _n(e, t).parse();
|
|
3157
3185
|
if (r.err) {
|
|
3158
|
-
var n = SyntaxError(
|
|
3186
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3159
3187
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3160
3188
|
}
|
|
3161
|
-
return t?.captureLocation ||
|
|
3189
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3162
3190
|
}
|
|
3163
|
-
var
|
|
3191
|
+
var X;
|
|
3164
3192
|
(function(e) {
|
|
3165
3193
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3166
|
-
})(
|
|
3167
|
-
var
|
|
3194
|
+
})(X || (X = {}));
|
|
3195
|
+
var Te = (
|
|
3168
3196
|
/** @class */
|
|
3169
3197
|
function(e) {
|
|
3170
|
-
|
|
3198
|
+
xe(t, e);
|
|
3171
3199
|
function t(r, n, i) {
|
|
3172
|
-
var
|
|
3173
|
-
return
|
|
3200
|
+
var a = e.call(this, r) || this;
|
|
3201
|
+
return a.code = n, a.originalMessage = i, a;
|
|
3174
3202
|
}
|
|
3175
3203
|
return t.prototype.toString = function() {
|
|
3176
3204
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3179,30 +3207,30 @@ var Se = (
|
|
|
3179
3207
|
), ut = (
|
|
3180
3208
|
/** @class */
|
|
3181
3209
|
function(e) {
|
|
3182
|
-
|
|
3183
|
-
function t(r, n, i,
|
|
3184
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3210
|
+
xe(t, e);
|
|
3211
|
+
function t(r, n, i, a) {
|
|
3212
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, a) || this;
|
|
3185
3213
|
}
|
|
3186
3214
|
return t;
|
|
3187
|
-
}(
|
|
3188
|
-
),
|
|
3215
|
+
}(Te)
|
|
3216
|
+
), Hn = (
|
|
3189
3217
|
/** @class */
|
|
3190
3218
|
function(e) {
|
|
3191
|
-
|
|
3219
|
+
xe(t, e);
|
|
3192
3220
|
function t(r, n, i) {
|
|
3193
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3221
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3194
3222
|
}
|
|
3195
3223
|
return t;
|
|
3196
|
-
}(
|
|
3224
|
+
}(Te)
|
|
3197
3225
|
), wn = (
|
|
3198
3226
|
/** @class */
|
|
3199
3227
|
function(e) {
|
|
3200
|
-
|
|
3228
|
+
xe(t, e);
|
|
3201
3229
|
function t(r, n) {
|
|
3202
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3230
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3203
3231
|
}
|
|
3204
3232
|
return t;
|
|
3205
|
-
}(
|
|
3233
|
+
}(Te)
|
|
3206
3234
|
), H;
|
|
3207
3235
|
(function(e) {
|
|
3208
3236
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3213,10 +3241,10 @@ function Bn(e) {
|
|
|
3213
3241
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3214
3242
|
}, []);
|
|
3215
3243
|
}
|
|
3216
|
-
function
|
|
3244
|
+
function Sn(e) {
|
|
3217
3245
|
return typeof e == "function";
|
|
3218
3246
|
}
|
|
3219
|
-
function
|
|
3247
|
+
function pe(e, t, r, n, i, a, o) {
|
|
3220
3248
|
if (e.length === 1 && tt(e[0]))
|
|
3221
3249
|
return [
|
|
3222
3250
|
{
|
|
@@ -3224,19 +3252,19 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3224
3252
|
value: e[0].value
|
|
3225
3253
|
}
|
|
3226
3254
|
];
|
|
3227
|
-
for (var
|
|
3255
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3228
3256
|
var l = u[h];
|
|
3229
3257
|
if (tt(l)) {
|
|
3230
|
-
|
|
3258
|
+
s.push({
|
|
3231
3259
|
type: H.literal,
|
|
3232
3260
|
value: l.value
|
|
3233
3261
|
});
|
|
3234
3262
|
continue;
|
|
3235
3263
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
typeof
|
|
3264
|
+
if (Zr(l)) {
|
|
3265
|
+
typeof a == "number" && s.push({
|
|
3238
3266
|
type: H.literal,
|
|
3239
|
-
value: r.getNumberFormat(t).format(
|
|
3267
|
+
value: r.getNumberFormat(t).format(a)
|
|
3240
3268
|
});
|
|
3241
3269
|
continue;
|
|
3242
3270
|
}
|
|
@@ -3244,24 +3272,24 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3244
3272
|
if (!(i && f in i))
|
|
3245
3273
|
throw new wn(f, o);
|
|
3246
3274
|
var c = i[f];
|
|
3247
|
-
if (
|
|
3248
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3275
|
+
if (Wr(l)) {
|
|
3276
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3249
3277
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3250
3278
|
value: c
|
|
3251
3279
|
});
|
|
3252
3280
|
continue;
|
|
3253
3281
|
}
|
|
3254
3282
|
if (Ot(l)) {
|
|
3255
|
-
var y = typeof l.style == "string" ? n.date[l.style] :
|
|
3256
|
-
|
|
3283
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3284
|
+
s.push({
|
|
3257
3285
|
type: H.literal,
|
|
3258
3286
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3259
3287
|
});
|
|
3260
3288
|
continue;
|
|
3261
3289
|
}
|
|
3262
3290
|
if (It(l)) {
|
|
3263
|
-
var y = typeof l.style == "string" ? n.time[l.style] :
|
|
3264
|
-
|
|
3291
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3292
|
+
s.push({
|
|
3265
3293
|
type: H.literal,
|
|
3266
3294
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3267
3295
|
});
|
|
@@ -3269,23 +3297,23 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3269
3297
|
}
|
|
3270
3298
|
if (Pt(l)) {
|
|
3271
3299
|
var y = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
|
|
3272
|
-
y && y.scale && (c = c * (y.scale || 1)),
|
|
3300
|
+
y && y.scale && (c = c * (y.scale || 1)), s.push({
|
|
3273
3301
|
type: H.literal,
|
|
3274
3302
|
value: r.getNumberFormat(t, y).format(c)
|
|
3275
3303
|
});
|
|
3276
3304
|
continue;
|
|
3277
3305
|
}
|
|
3278
3306
|
if (Lt(l)) {
|
|
3279
|
-
var
|
|
3280
|
-
if (!
|
|
3281
|
-
throw new
|
|
3282
|
-
var m =
|
|
3283
|
-
return
|
|
3307
|
+
var b = l.children, v = l.value, E = i[v];
|
|
3308
|
+
if (!Sn(E))
|
|
3309
|
+
throw new Hn(v, "function", o);
|
|
3310
|
+
var m = pe(b, t, r, n, i, a), x = E(m.map(function(B) {
|
|
3311
|
+
return B.value;
|
|
3284
3312
|
}));
|
|
3285
|
-
Array.isArray(
|
|
3313
|
+
Array.isArray(x) || (x = [x]), s.push.apply(s, x.map(function(B) {
|
|
3286
3314
|
return {
|
|
3287
|
-
type: typeof
|
|
3288
|
-
value:
|
|
3315
|
+
type: typeof B == "string" ? H.literal : H.object,
|
|
3316
|
+
value: B
|
|
3289
3317
|
};
|
|
3290
3318
|
}));
|
|
3291
3319
|
}
|
|
@@ -3293,38 +3321,38 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3293
3321
|
var d = l.options[c] || l.options.other;
|
|
3294
3322
|
if (!d)
|
|
3295
3323
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3296
|
-
|
|
3324
|
+
s.push.apply(s, pe(d.value, t, r, n, i));
|
|
3297
3325
|
continue;
|
|
3298
3326
|
}
|
|
3299
3327
|
if (Nt(l)) {
|
|
3300
3328
|
var d = l.options["=".concat(c)];
|
|
3301
3329
|
if (!d) {
|
|
3302
3330
|
if (!Intl.PluralRules)
|
|
3303
|
-
throw new
|
|
3331
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3304
3332
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3305
|
-
`,
|
|
3306
|
-
var
|
|
3307
|
-
d = l.options[
|
|
3333
|
+
`, X.MISSING_INTL_API, o);
|
|
3334
|
+
var w = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3335
|
+
d = l.options[w] || l.options.other;
|
|
3308
3336
|
}
|
|
3309
3337
|
if (!d)
|
|
3310
3338
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3311
|
-
|
|
3339
|
+
s.push.apply(s, pe(d.value, t, r, n, i, c - (l.offset || 0)));
|
|
3312
3340
|
continue;
|
|
3313
3341
|
}
|
|
3314
3342
|
}
|
|
3315
|
-
return Bn(
|
|
3343
|
+
return Bn(s);
|
|
3316
3344
|
}
|
|
3317
|
-
function
|
|
3318
|
-
return t ?
|
|
3319
|
-
return r[n] =
|
|
3345
|
+
function An(e, t) {
|
|
3346
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3347
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3320
3348
|
}, {})) : e;
|
|
3321
3349
|
}
|
|
3322
|
-
function
|
|
3350
|
+
function Pn(e, t) {
|
|
3323
3351
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3324
|
-
return r[n] =
|
|
3325
|
-
},
|
|
3352
|
+
return r[n] = An(e[n], t[n]), r;
|
|
3353
|
+
}, _({}, e)) : e;
|
|
3326
3354
|
}
|
|
3327
|
-
function
|
|
3355
|
+
function Ie(e) {
|
|
3328
3356
|
return {
|
|
3329
3357
|
create: function() {
|
|
3330
3358
|
return {
|
|
@@ -3338,35 +3366,35 @@ function Ne(e) {
|
|
|
3338
3366
|
}
|
|
3339
3367
|
};
|
|
3340
3368
|
}
|
|
3341
|
-
function
|
|
3369
|
+
function On(e) {
|
|
3342
3370
|
return e === void 0 && (e = {
|
|
3343
3371
|
number: {},
|
|
3344
3372
|
dateTime: {},
|
|
3345
3373
|
pluralRules: {}
|
|
3346
3374
|
}), {
|
|
3347
|
-
getNumberFormat:
|
|
3375
|
+
getNumberFormat: Ae(function() {
|
|
3348
3376
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3349
3377
|
r[n] = arguments[n];
|
|
3350
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3378
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3351
3379
|
}, {
|
|
3352
|
-
cache:
|
|
3353
|
-
strategy:
|
|
3380
|
+
cache: Ie(e.number),
|
|
3381
|
+
strategy: Pe.variadic
|
|
3354
3382
|
}),
|
|
3355
|
-
getDateTimeFormat:
|
|
3383
|
+
getDateTimeFormat: Ae(function() {
|
|
3356
3384
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3357
3385
|
r[n] = arguments[n];
|
|
3358
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3386
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3359
3387
|
}, {
|
|
3360
|
-
cache:
|
|
3361
|
-
strategy:
|
|
3388
|
+
cache: Ie(e.dateTime),
|
|
3389
|
+
strategy: Pe.variadic
|
|
3362
3390
|
}),
|
|
3363
|
-
getPluralRules:
|
|
3391
|
+
getPluralRules: Ae(function() {
|
|
3364
3392
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
3393
|
r[n] = arguments[n];
|
|
3366
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3394
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3367
3395
|
}, {
|
|
3368
|
-
cache:
|
|
3369
|
-
strategy:
|
|
3396
|
+
cache: Ie(e.pluralRules),
|
|
3397
|
+
strategy: Pe.variadic
|
|
3370
3398
|
})
|
|
3371
3399
|
};
|
|
3372
3400
|
}
|
|
@@ -3375,13 +3403,13 @@ var jt = (
|
|
|
3375
3403
|
function() {
|
|
3376
3404
|
function e(t, r, n, i) {
|
|
3377
3405
|
r === void 0 && (r = e.defaultLocale);
|
|
3378
|
-
var
|
|
3406
|
+
var a = this;
|
|
3379
3407
|
if (this.formatterCache = {
|
|
3380
3408
|
number: {},
|
|
3381
3409
|
dateTime: {},
|
|
3382
3410
|
pluralRules: {}
|
|
3383
3411
|
}, this.format = function(h) {
|
|
3384
|
-
var u =
|
|
3412
|
+
var u = a.formatToParts(h);
|
|
3385
3413
|
if (u.length === 1)
|
|
3386
3414
|
return u[0].value;
|
|
3387
3415
|
var l = u.reduce(function(f, c) {
|
|
@@ -3389,26 +3417,26 @@ var jt = (
|
|
|
3389
3417
|
}, []);
|
|
3390
3418
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3391
3419
|
}, this.formatToParts = function(h) {
|
|
3392
|
-
return
|
|
3420
|
+
return pe(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
|
|
3393
3421
|
}, this.resolvedOptions = function() {
|
|
3394
3422
|
var h;
|
|
3395
3423
|
return {
|
|
3396
|
-
locale: ((h =
|
|
3424
|
+
locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3397
3425
|
};
|
|
3398
3426
|
}, this.getAst = function() {
|
|
3399
|
-
return
|
|
3427
|
+
return a.ast;
|
|
3400
3428
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3401
3429
|
if (this.message = t, !e.__parse)
|
|
3402
3430
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3403
3431
|
var o = i || {};
|
|
3404
3432
|
o.formatters;
|
|
3405
|
-
var
|
|
3406
|
-
this.ast = e.__parse(t,
|
|
3433
|
+
var s = Gr(o, ["formatters"]);
|
|
3434
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
3407
3435
|
} else
|
|
3408
3436
|
this.ast = t;
|
|
3409
3437
|
if (!Array.isArray(this.ast))
|
|
3410
3438
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3411
|
-
this.formats =
|
|
3439
|
+
this.formats = Pn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3412
3440
|
}
|
|
3413
3441
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3414
3442
|
get: function() {
|
|
@@ -3421,7 +3449,7 @@ var jt = (
|
|
|
3421
3449
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3422
3450
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3423
3451
|
}
|
|
3424
|
-
}, e.__parse =
|
|
3452
|
+
}, e.__parse = Tn, e.formats = {
|
|
3425
3453
|
number: {
|
|
3426
3454
|
integer: {
|
|
3427
3455
|
maximumFractionDigits: 0
|
|
@@ -3482,7 +3510,7 @@ var jt = (
|
|
|
3482
3510
|
}, e;
|
|
3483
3511
|
}()
|
|
3484
3512
|
);
|
|
3485
|
-
function
|
|
3513
|
+
function In(e, t) {
|
|
3486
3514
|
if (t == null)
|
|
3487
3515
|
return;
|
|
3488
3516
|
if (t in e)
|
|
@@ -3492,9 +3520,9 @@ function Cn(e, t) {
|
|
|
3492
3520
|
for (let i = 0; i < r.length; i++)
|
|
3493
3521
|
if (typeof n == "object") {
|
|
3494
3522
|
if (i > 0) {
|
|
3495
|
-
const
|
|
3496
|
-
if (
|
|
3497
|
-
n = n[
|
|
3523
|
+
const a = r.slice(i, r.length).join(".");
|
|
3524
|
+
if (a in n) {
|
|
3525
|
+
n = n[a];
|
|
3498
3526
|
break;
|
|
3499
3527
|
}
|
|
3500
3528
|
}
|
|
@@ -3503,36 +3531,36 @@ function Cn(e, t) {
|
|
|
3503
3531
|
n = void 0;
|
|
3504
3532
|
return n;
|
|
3505
3533
|
}
|
|
3506
|
-
const
|
|
3534
|
+
const N = {}, Cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), zt = (e, t) => {
|
|
3507
3535
|
if (t == null)
|
|
3508
3536
|
return;
|
|
3509
|
-
if (t in
|
|
3510
|
-
return
|
|
3511
|
-
const r =
|
|
3537
|
+
if (t in N && e in N[t])
|
|
3538
|
+
return N[t][e];
|
|
3539
|
+
const r = ae(t);
|
|
3512
3540
|
for (let n = 0; n < r.length; n++) {
|
|
3513
|
-
const i = r[n],
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3541
|
+
const i = r[n], a = Ln(i, e);
|
|
3542
|
+
if (a)
|
|
3543
|
+
return Cn(e, t, a);
|
|
3516
3544
|
}
|
|
3517
3545
|
};
|
|
3518
3546
|
let Ze;
|
|
3519
|
-
const
|
|
3520
|
-
function
|
|
3547
|
+
const ie = ve({});
|
|
3548
|
+
function Nn(e) {
|
|
3521
3549
|
return Ze[e] || null;
|
|
3522
3550
|
}
|
|
3523
3551
|
function Vt(e) {
|
|
3524
3552
|
return e in Ze;
|
|
3525
3553
|
}
|
|
3526
|
-
function
|
|
3554
|
+
function Ln(e, t) {
|
|
3527
3555
|
if (!Vt(e))
|
|
3528
3556
|
return null;
|
|
3529
|
-
const r =
|
|
3530
|
-
return
|
|
3557
|
+
const r = Nn(e);
|
|
3558
|
+
return In(r, t);
|
|
3531
3559
|
}
|
|
3532
|
-
function
|
|
3560
|
+
function Mn(e) {
|
|
3533
3561
|
if (e == null)
|
|
3534
3562
|
return;
|
|
3535
|
-
const t =
|
|
3563
|
+
const t = ae(e);
|
|
3536
3564
|
for (let r = 0; r < t.length; r++) {
|
|
3537
3565
|
const n = t[r];
|
|
3538
3566
|
if (Vt(n))
|
|
@@ -3540,64 +3568,64 @@ function $n(e) {
|
|
|
3540
3568
|
}
|
|
3541
3569
|
}
|
|
3542
3570
|
function Xt(e, ...t) {
|
|
3543
|
-
delete
|
|
3571
|
+
delete N[e], ie.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
|
|
3544
3572
|
}
|
|
3545
|
-
|
|
3546
|
-
[
|
|
3573
|
+
J(
|
|
3574
|
+
[ie],
|
|
3547
3575
|
([e]) => Object.keys(e)
|
|
3548
3576
|
);
|
|
3549
|
-
|
|
3550
|
-
const
|
|
3551
|
-
function
|
|
3552
|
-
|
|
3577
|
+
ie.subscribe((e) => Ze = e);
|
|
3578
|
+
const ge = {};
|
|
3579
|
+
function $n(e, t) {
|
|
3580
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3553
3581
|
}
|
|
3554
3582
|
function Wt(e) {
|
|
3555
|
-
return
|
|
3583
|
+
return ge[e];
|
|
3556
3584
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3585
|
+
function Rn(e) {
|
|
3586
|
+
return ae(e).map((t) => {
|
|
3559
3587
|
const r = Wt(t);
|
|
3560
3588
|
return [t, r ? [...r] : []];
|
|
3561
3589
|
}).filter(([, t]) => t.length > 0);
|
|
3562
3590
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return e == null ? !1 :
|
|
3591
|
+
function ye(e) {
|
|
3592
|
+
return e == null ? !1 : ae(e).some(
|
|
3565
3593
|
(t) => {
|
|
3566
3594
|
var r;
|
|
3567
3595
|
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3568
3596
|
}
|
|
3569
3597
|
);
|
|
3570
3598
|
}
|
|
3571
|
-
function
|
|
3599
|
+
function Dn(e, t) {
|
|
3572
3600
|
return Promise.all(
|
|
3573
|
-
t.map((n) => (
|
|
3601
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3574
3602
|
).then((n) => Xt(e, ...n));
|
|
3575
3603
|
}
|
|
3576
|
-
const
|
|
3604
|
+
const Q = {};
|
|
3577
3605
|
function Zt(e) {
|
|
3578
|
-
if (!
|
|
3579
|
-
return e in
|
|
3580
|
-
const t =
|
|
3581
|
-
return
|
|
3606
|
+
if (!ye(e))
|
|
3607
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3608
|
+
const t = Rn(e);
|
|
3609
|
+
return Q[e] = Promise.all(
|
|
3582
3610
|
t.map(
|
|
3583
|
-
([r, n]) =>
|
|
3611
|
+
([r, n]) => Dn(r, n)
|
|
3584
3612
|
)
|
|
3585
3613
|
).then(() => {
|
|
3586
|
-
if (
|
|
3614
|
+
if (ye(e))
|
|
3587
3615
|
return Zt(e);
|
|
3588
|
-
delete
|
|
3589
|
-
}),
|
|
3616
|
+
delete Q[e];
|
|
3617
|
+
}), Q[e];
|
|
3590
3618
|
}
|
|
3591
|
-
var lt = Object.getOwnPropertySymbols,
|
|
3619
|
+
var lt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, kn = (e, t) => {
|
|
3592
3620
|
var r = {};
|
|
3593
3621
|
for (var n in e)
|
|
3594
|
-
|
|
3622
|
+
Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3595
3623
|
if (e != null && lt)
|
|
3596
3624
|
for (var n of lt(e))
|
|
3597
|
-
t.indexOf(n) < 0 &&
|
|
3625
|
+
t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
|
|
3598
3626
|
return r;
|
|
3599
3627
|
};
|
|
3600
|
-
const
|
|
3628
|
+
const Fn = {
|
|
3601
3629
|
number: {
|
|
3602
3630
|
scientific: { notation: "scientific" },
|
|
3603
3631
|
engineering: { notation: "engineering" },
|
|
@@ -3627,28 +3655,28 @@ const jn = {
|
|
|
3627
3655
|
}
|
|
3628
3656
|
}
|
|
3629
3657
|
};
|
|
3630
|
-
function
|
|
3658
|
+
function jn({ locale: e, id: t }) {
|
|
3631
3659
|
console.warn(
|
|
3632
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3660
|
+
`[svelte-i18n] The message "${t}" was not found in "${ae(
|
|
3633
3661
|
e
|
|
3634
|
-
).join('", "')}".${
|
|
3662
|
+
).join('", "')}".${ye($()) ? `
|
|
3635
3663
|
|
|
3636
3664
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3637
3665
|
);
|
|
3638
3666
|
}
|
|
3639
|
-
const
|
|
3667
|
+
const zn = {
|
|
3640
3668
|
fallbackLocale: null,
|
|
3641
3669
|
loadingDelay: 200,
|
|
3642
|
-
formats:
|
|
3670
|
+
formats: Fn,
|
|
3643
3671
|
warnOnMissingMessages: !0,
|
|
3644
3672
|
handleMissingMessage: void 0,
|
|
3645
3673
|
ignoreTag: !0
|
|
3646
|
-
},
|
|
3647
|
-
function
|
|
3648
|
-
return
|
|
3674
|
+
}, Y = zn;
|
|
3675
|
+
function W() {
|
|
3676
|
+
return Y;
|
|
3649
3677
|
}
|
|
3650
|
-
function
|
|
3651
|
-
const t = e, { formats: r } = t, n =
|
|
3678
|
+
function Vn(e) {
|
|
3679
|
+
const t = e, { formats: r } = t, n = kn(t, ["formats"]);
|
|
3652
3680
|
let i = e.fallbackLocale;
|
|
3653
3681
|
if (e.initialLocale)
|
|
3654
3682
|
try {
|
|
@@ -3658,134 +3686,134 @@ function Xn(e) {
|
|
|
3658
3686
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3659
3687
|
);
|
|
3660
3688
|
}
|
|
3661
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3689
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
|
|
3662
3690
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3663
|
-
)), Object.assign(
|
|
3691
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), D.set(i);
|
|
3664
3692
|
}
|
|
3665
|
-
const
|
|
3666
|
-
var
|
|
3693
|
+
const Ce = ve(!1);
|
|
3694
|
+
var Xn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
|
|
3667
3695
|
for (var r in t || (t = {}))
|
|
3668
|
-
|
|
3696
|
+
Jn.call(t, r) && ct(e, r, t[r]);
|
|
3669
3697
|
if (ht)
|
|
3670
3698
|
for (var r of ht(t))
|
|
3671
|
-
|
|
3699
|
+
qn.call(t, r) && ct(e, r, t[r]);
|
|
3672
3700
|
return e;
|
|
3673
|
-
},
|
|
3674
|
-
let
|
|
3675
|
-
const
|
|
3701
|
+
}, Yn = (e, t) => Wn(e, Zn(t));
|
|
3702
|
+
let je;
|
|
3703
|
+
const _e = ve(null);
|
|
3676
3704
|
function ft(e) {
|
|
3677
3705
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3678
3706
|
}
|
|
3679
|
-
function
|
|
3707
|
+
function ae(e, t = W().fallbackLocale) {
|
|
3680
3708
|
const r = ft(e);
|
|
3681
3709
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3682
3710
|
}
|
|
3683
|
-
function
|
|
3684
|
-
return
|
|
3711
|
+
function $() {
|
|
3712
|
+
return je ?? void 0;
|
|
3685
3713
|
}
|
|
3686
|
-
|
|
3687
|
-
|
|
3714
|
+
_e.subscribe((e) => {
|
|
3715
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3688
3716
|
});
|
|
3689
|
-
const
|
|
3690
|
-
if (e &&
|
|
3691
|
-
const { loadingDelay: t } =
|
|
3717
|
+
const Kn = (e) => {
|
|
3718
|
+
if (e && Mn(e) && ye(e)) {
|
|
3719
|
+
const { loadingDelay: t } = W();
|
|
3692
3720
|
let r;
|
|
3693
|
-
return typeof window < "u" &&
|
|
3694
|
-
() =>
|
|
3721
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
3722
|
+
() => Ce.set(!0),
|
|
3695
3723
|
t
|
|
3696
|
-
) :
|
|
3697
|
-
|
|
3724
|
+
) : Ce.set(!0), Zt(e).then(() => {
|
|
3725
|
+
_e.set(e);
|
|
3698
3726
|
}).finally(() => {
|
|
3699
|
-
clearTimeout(r),
|
|
3727
|
+
clearTimeout(r), Ce.set(!1);
|
|
3700
3728
|
});
|
|
3701
3729
|
}
|
|
3702
|
-
return
|
|
3703
|
-
},
|
|
3704
|
-
set:
|
|
3705
|
-
}),
|
|
3730
|
+
return _e.set(e);
|
|
3731
|
+
}, D = Yn(Qn({}, _e), {
|
|
3732
|
+
set: Kn
|
|
3733
|
+
}), He = (e) => {
|
|
3706
3734
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3707
3735
|
return (n) => {
|
|
3708
3736
|
const i = JSON.stringify(n);
|
|
3709
3737
|
return i in t ? t[i] : t[i] = e(n);
|
|
3710
3738
|
};
|
|
3711
3739
|
};
|
|
3712
|
-
var
|
|
3740
|
+
var ei = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3713
3741
|
for (var r in t || (t = {}))
|
|
3714
3742
|
Jt.call(t, r) && mt(e, r, t[r]);
|
|
3715
|
-
if (
|
|
3716
|
-
for (var r of
|
|
3743
|
+
if (Ee)
|
|
3744
|
+
for (var r of Ee(t))
|
|
3717
3745
|
qt.call(t, r) && mt(e, r, t[r]);
|
|
3718
3746
|
return e;
|
|
3719
|
-
},
|
|
3747
|
+
}, q = (e, t) => {
|
|
3720
3748
|
var r = {};
|
|
3721
3749
|
for (var n in e)
|
|
3722
3750
|
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3723
|
-
if (e != null &&
|
|
3724
|
-
for (var n of
|
|
3751
|
+
if (e != null && Ee)
|
|
3752
|
+
for (var n of Ee(e))
|
|
3725
3753
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3726
3754
|
return r;
|
|
3727
3755
|
};
|
|
3728
|
-
const
|
|
3729
|
-
const { formats: r } =
|
|
3756
|
+
const re = (e, t) => {
|
|
3757
|
+
const { formats: r } = W();
|
|
3730
3758
|
if (e in r && t in r[e])
|
|
3731
3759
|
return r[e][t];
|
|
3732
3760
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3733
|
-
},
|
|
3761
|
+
}, ti = He(
|
|
3734
3762
|
(e) => {
|
|
3735
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3763
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3736
3764
|
if (r == null)
|
|
3737
3765
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3738
|
-
return n && (i =
|
|
3766
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
3739
3767
|
}
|
|
3740
|
-
),
|
|
3768
|
+
), ri = He(
|
|
3741
3769
|
(e) => {
|
|
3742
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3770
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3743
3771
|
if (r == null)
|
|
3744
3772
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3745
|
-
return n ? i =
|
|
3773
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3746
3774
|
}
|
|
3747
|
-
),
|
|
3775
|
+
), ni = He(
|
|
3748
3776
|
(e) => {
|
|
3749
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3777
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3750
3778
|
if (r == null)
|
|
3751
3779
|
throw new Error(
|
|
3752
3780
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3753
3781
|
);
|
|
3754
|
-
return n ? i =
|
|
3782
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3755
3783
|
}
|
|
3756
|
-
),
|
|
3784
|
+
), ii = (e = {}) => {
|
|
3757
3785
|
var t = e, {
|
|
3758
|
-
locale: r =
|
|
3759
|
-
} = t, n =
|
|
3786
|
+
locale: r = $()
|
|
3787
|
+
} = t, n = q(t, [
|
|
3760
3788
|
"locale"
|
|
3761
3789
|
]);
|
|
3762
|
-
return
|
|
3763
|
-
},
|
|
3790
|
+
return ti(Je({ locale: r }, n));
|
|
3791
|
+
}, ai = (e = {}) => {
|
|
3764
3792
|
var t = e, {
|
|
3765
|
-
locale: r =
|
|
3766
|
-
} = t, n =
|
|
3793
|
+
locale: r = $()
|
|
3794
|
+
} = t, n = q(t, [
|
|
3767
3795
|
"locale"
|
|
3768
3796
|
]);
|
|
3769
|
-
return
|
|
3770
|
-
},
|
|
3797
|
+
return ri(Je({ locale: r }, n));
|
|
3798
|
+
}, oi = (e = {}) => {
|
|
3771
3799
|
var t = e, {
|
|
3772
|
-
locale: r =
|
|
3773
|
-
} = t, n =
|
|
3800
|
+
locale: r = $()
|
|
3801
|
+
} = t, n = q(t, [
|
|
3774
3802
|
"locale"
|
|
3775
3803
|
]);
|
|
3776
|
-
return
|
|
3777
|
-
},
|
|
3804
|
+
return ni(Je({ locale: r }, n));
|
|
3805
|
+
}, si = He(
|
|
3778
3806
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3779
|
-
(e, t =
|
|
3780
|
-
ignoreTag:
|
|
3807
|
+
(e, t = $()) => new jt(e, t, W().formats, {
|
|
3808
|
+
ignoreTag: W().ignoreTag
|
|
3781
3809
|
})
|
|
3782
|
-
),
|
|
3783
|
-
var r, n, i,
|
|
3810
|
+
), ui = (e, t = {}) => {
|
|
3811
|
+
var r, n, i, a;
|
|
3784
3812
|
let o = t;
|
|
3785
3813
|
typeof e == "object" && (o = e, e = o.id);
|
|
3786
3814
|
const {
|
|
3787
|
-
values:
|
|
3788
|
-
locale: h =
|
|
3815
|
+
values: s,
|
|
3816
|
+
locale: h = $(),
|
|
3789
3817
|
default: u
|
|
3790
3818
|
} = o;
|
|
3791
3819
|
if (h == null)
|
|
@@ -3794,16 +3822,16 @@ const ne = (e, t) => {
|
|
|
3794
3822
|
);
|
|
3795
3823
|
let l = zt(e, h);
|
|
3796
3824
|
if (!l)
|
|
3797
|
-
l = (
|
|
3825
|
+
l = (a = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3798
3826
|
else if (typeof l != "string")
|
|
3799
3827
|
return console.warn(
|
|
3800
3828
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3801
3829
|
), l;
|
|
3802
|
-
if (!
|
|
3830
|
+
if (!s)
|
|
3803
3831
|
return l;
|
|
3804
3832
|
let f = l;
|
|
3805
3833
|
try {
|
|
3806
|
-
f =
|
|
3834
|
+
f = si(l, h).format(s);
|
|
3807
3835
|
} catch (c) {
|
|
3808
3836
|
c instanceof Error && console.warn(
|
|
3809
3837
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3811,12 +3839,12 @@ const ne = (e, t) => {
|
|
|
3811
3839
|
);
|
|
3812
3840
|
}
|
|
3813
3841
|
return f;
|
|
3814
|
-
},
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
function
|
|
3842
|
+
}, li = (e, t) => oi(t).format(e), hi = (e, t) => ai(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = $()) => zt(e, t), mi = J([D, ie], () => ui);
|
|
3843
|
+
J([D], () => li);
|
|
3844
|
+
J([D], () => hi);
|
|
3845
|
+
J([D], () => ci);
|
|
3846
|
+
J([D, ie], () => fi);
|
|
3847
|
+
function di(e, t) {
|
|
3820
3848
|
if (e) {
|
|
3821
3849
|
const r = document.createElement("style");
|
|
3822
3850
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -3831,7 +3859,7 @@ function bi(e, t) {
|
|
|
3831
3859
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3832
3860
|
});
|
|
3833
3861
|
}
|
|
3834
|
-
function
|
|
3862
|
+
function pi(e, t, r) {
|
|
3835
3863
|
if (window.emMessageBus) {
|
|
3836
3864
|
const n = document.createElement("style");
|
|
3837
3865
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3842,12 +3870,12 @@ function gi(e, t, r) {
|
|
|
3842
3870
|
function dt(e, t) {
|
|
3843
3871
|
Xt(e, t);
|
|
3844
3872
|
}
|
|
3845
|
-
function
|
|
3846
|
-
|
|
3873
|
+
function gi(e) {
|
|
3874
|
+
Vn({
|
|
3847
3875
|
fallbackLocale: "en"
|
|
3848
|
-
}),
|
|
3876
|
+
}), D.set(e);
|
|
3849
3877
|
}
|
|
3850
|
-
const
|
|
3878
|
+
const bt = {
|
|
3851
3879
|
en: {
|
|
3852
3880
|
errorGeneralTitle: "Error Occurred",
|
|
3853
3881
|
errorGeneralText: "Something went wrong",
|
|
@@ -3901,51 +3929,51 @@ const pt = {
|
|
|
3901
3929
|
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
|
|
3902
3930
|
}
|
|
3903
3931
|
};
|
|
3904
|
-
function
|
|
3932
|
+
function yi(e) {
|
|
3905
3933
|
tr(e, "svelte-s6qloq", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto}.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-black, #000);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-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.ImagePlaceholder{margin-top:20px;height:200px;width:100%;background:#E6E6E6}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:120%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierErrorContent ui-image img{width:300px}");
|
|
3906
3934
|
}
|
|
3907
|
-
const
|
|
3908
|
-
function
|
|
3935
|
+
const _i = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({}), vi = (e) => ({}), yt = (e) => ({}), xi = (e) => ({}), _t = (e) => ({ class: "CashierErrorIcon" });
|
|
3936
|
+
function Ti(e) {
|
|
3909
3937
|
let t;
|
|
3910
3938
|
return {
|
|
3911
3939
|
c() {
|
|
3912
|
-
t =
|
|
3940
|
+
t = P("div"), L(t, "class", "ImagePlaceholder Error");
|
|
3913
3941
|
},
|
|
3914
3942
|
m(r, n) {
|
|
3915
|
-
|
|
3943
|
+
M(r, t, n);
|
|
3916
3944
|
},
|
|
3917
|
-
p:
|
|
3945
|
+
p: A,
|
|
3918
3946
|
d(r) {
|
|
3919
|
-
r &&
|
|
3947
|
+
r && I(t);
|
|
3920
3948
|
}
|
|
3921
3949
|
};
|
|
3922
3950
|
}
|
|
3923
|
-
function
|
|
3951
|
+
function Hi(e) {
|
|
3924
3952
|
let t, r;
|
|
3925
3953
|
return {
|
|
3926
3954
|
c() {
|
|
3927
|
-
t =
|
|
3928
|
-
e[0]}/error-general-icon.png`) ||
|
|
3955
|
+
t = P("ui-image"), Ye(t.src, r = `${/*assetsurl*/
|
|
3956
|
+
e[0]}/error-general-icon.png`) || ue(t, "src", r), ue(t, "width", "300px"), ue(t, "alt", "error");
|
|
3929
3957
|
},
|
|
3930
3958
|
m(n, i) {
|
|
3931
|
-
|
|
3959
|
+
M(n, t, i);
|
|
3932
3960
|
},
|
|
3933
3961
|
p(n, i) {
|
|
3934
3962
|
i & /*assetsurl*/
|
|
3935
3963
|
1 && !Ye(t.src, r = `${/*assetsurl*/
|
|
3936
|
-
n[0]}/error-general-icon.png`) &&
|
|
3964
|
+
n[0]}/error-general-icon.png`) && ue(t, "src", r);
|
|
3937
3965
|
},
|
|
3938
3966
|
d(n) {
|
|
3939
|
-
n &&
|
|
3967
|
+
n && I(t);
|
|
3940
3968
|
}
|
|
3941
3969
|
};
|
|
3942
3970
|
}
|
|
3943
3971
|
function wi(e) {
|
|
3944
3972
|
let t;
|
|
3945
|
-
function r(
|
|
3973
|
+
function r(a, o) {
|
|
3946
3974
|
return (
|
|
3947
3975
|
/*assetsurl*/
|
|
3948
|
-
|
|
3976
|
+
a[0] ? Hi : Ti
|
|
3949
3977
|
);
|
|
3950
3978
|
}
|
|
3951
3979
|
let n = r(e), i = n(e);
|
|
@@ -3953,14 +3981,14 @@ function wi(e) {
|
|
|
3953
3981
|
c() {
|
|
3954
3982
|
i.c(), t = ir();
|
|
3955
3983
|
},
|
|
3956
|
-
m(
|
|
3957
|
-
i.m(
|
|
3984
|
+
m(a, o) {
|
|
3985
|
+
i.m(a, o), M(a, t, o);
|
|
3958
3986
|
},
|
|
3959
|
-
p(
|
|
3960
|
-
n === (n = r(
|
|
3987
|
+
p(a, o) {
|
|
3988
|
+
n === (n = r(a)) && i ? i.p(a, o) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
3961
3989
|
},
|
|
3962
|
-
d(
|
|
3963
|
-
|
|
3990
|
+
d(a) {
|
|
3991
|
+
a && I(t), i.d(a);
|
|
3964
3992
|
}
|
|
3965
3993
|
};
|
|
3966
3994
|
}
|
|
@@ -3971,22 +3999,22 @@ function Bi(e) {
|
|
|
3971
3999
|
), n;
|
|
3972
4000
|
return {
|
|
3973
4001
|
c() {
|
|
3974
|
-
t =
|
|
4002
|
+
t = P("span"), n = ne(r), L(t, "class", "CashierErrorTitle");
|
|
3975
4003
|
},
|
|
3976
|
-
m(i,
|
|
3977
|
-
|
|
4004
|
+
m(i, a) {
|
|
4005
|
+
M(i, t, a), O(t, n);
|
|
3978
4006
|
},
|
|
3979
|
-
p(i,
|
|
3980
|
-
|
|
4007
|
+
p(i, a) {
|
|
4008
|
+
a & /*$_*/
|
|
3981
4009
|
16 && r !== (r = /*$_*/
|
|
3982
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
4010
|
+
i[4]("errorGeneralTitle") + "") && Ve(n, r);
|
|
3983
4011
|
},
|
|
3984
4012
|
d(i) {
|
|
3985
|
-
i &&
|
|
4013
|
+
i && I(t);
|
|
3986
4014
|
}
|
|
3987
4015
|
};
|
|
3988
4016
|
}
|
|
3989
|
-
function
|
|
4017
|
+
function Si(e) {
|
|
3990
4018
|
let t, r = (
|
|
3991
4019
|
/*$_*/
|
|
3992
4020
|
e[4](`${/*errorcode*/
|
|
@@ -3994,19 +4022,19 @@ function Ai(e) {
|
|
|
3994
4022
|
), n;
|
|
3995
4023
|
return {
|
|
3996
4024
|
c() {
|
|
3997
|
-
t =
|
|
4025
|
+
t = P("span"), n = ne(r), L(t, "class", "CashierErrorText");
|
|
3998
4026
|
},
|
|
3999
|
-
m(i,
|
|
4000
|
-
|
|
4027
|
+
m(i, a) {
|
|
4028
|
+
M(i, t, a), O(t, n);
|
|
4001
4029
|
},
|
|
4002
|
-
p(i,
|
|
4003
|
-
|
|
4030
|
+
p(i, a) {
|
|
4031
|
+
a & /*$_, errorcode*/
|
|
4004
4032
|
20 && r !== (r = /*$_*/
|
|
4005
4033
|
i[4](`${/*errorcode*/
|
|
4006
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4034
|
+
i[2] || "errorGeneralText"}`) + "") && Ve(n, r);
|
|
4007
4035
|
},
|
|
4008
4036
|
d(i) {
|
|
4009
|
-
i &&
|
|
4037
|
+
i && I(t);
|
|
4010
4038
|
}
|
|
4011
4039
|
};
|
|
4012
4040
|
}
|
|
@@ -4015,87 +4043,87 @@ function Et(e) {
|
|
|
4015
4043
|
const r = (
|
|
4016
4044
|
/*#slots*/
|
|
4017
4045
|
e[12].button
|
|
4018
|
-
), n =
|
|
4046
|
+
), n = he(
|
|
4019
4047
|
r,
|
|
4020
4048
|
e,
|
|
4021
4049
|
/*$$scope*/
|
|
4022
4050
|
e[11],
|
|
4023
|
-
|
|
4024
|
-
), i = n ||
|
|
4051
|
+
pt
|
|
4052
|
+
), i = n || Ai(e);
|
|
4025
4053
|
return {
|
|
4026
4054
|
c() {
|
|
4027
4055
|
i && i.c();
|
|
4028
4056
|
},
|
|
4029
|
-
m(
|
|
4030
|
-
i && i.m(
|
|
4057
|
+
m(a, o) {
|
|
4058
|
+
i && i.m(a, o), t = !0;
|
|
4031
4059
|
},
|
|
4032
|
-
p(
|
|
4060
|
+
p(a, o) {
|
|
4033
4061
|
n ? n.p && (!t || o & /*$$scope*/
|
|
4034
|
-
2048) &&
|
|
4062
|
+
2048) && fe(
|
|
4035
4063
|
n,
|
|
4036
4064
|
r,
|
|
4037
|
-
|
|
4065
|
+
a,
|
|
4038
4066
|
/*$$scope*/
|
|
4039
|
-
|
|
4040
|
-
t ?
|
|
4067
|
+
a[11],
|
|
4068
|
+
t ? ce(
|
|
4041
4069
|
r,
|
|
4042
4070
|
/*$$scope*/
|
|
4043
|
-
|
|
4071
|
+
a[11],
|
|
4044
4072
|
o,
|
|
4045
|
-
|
|
4046
|
-
) :
|
|
4073
|
+
_i
|
|
4074
|
+
) : me(
|
|
4047
4075
|
/*$$scope*/
|
|
4048
|
-
|
|
4076
|
+
a[11]
|
|
4049
4077
|
),
|
|
4050
|
-
|
|
4078
|
+
pt
|
|
4051
4079
|
) : i && i.p && (!t || o & /*$_*/
|
|
4052
|
-
16) && i.p(
|
|
4080
|
+
16) && i.p(a, t ? o : -1);
|
|
4053
4081
|
},
|
|
4054
|
-
i(
|
|
4055
|
-
t || (
|
|
4082
|
+
i(a) {
|
|
4083
|
+
t || (C(i, a), t = !0);
|
|
4056
4084
|
},
|
|
4057
|
-
o(
|
|
4058
|
-
|
|
4085
|
+
o(a) {
|
|
4086
|
+
F(i, a), t = !1;
|
|
4059
4087
|
},
|
|
4060
|
-
d(
|
|
4061
|
-
i && i.d(
|
|
4088
|
+
d(a) {
|
|
4089
|
+
i && i.d(a);
|
|
4062
4090
|
}
|
|
4063
4091
|
};
|
|
4064
4092
|
}
|
|
4065
|
-
function
|
|
4093
|
+
function Ai(e) {
|
|
4066
4094
|
let t, r, n = (
|
|
4067
4095
|
/*$_*/
|
|
4068
4096
|
e[4]("errorGeneralButton") + ""
|
|
4069
|
-
), i,
|
|
4097
|
+
), i, a, o;
|
|
4070
4098
|
return {
|
|
4071
4099
|
c() {
|
|
4072
|
-
t =
|
|
4100
|
+
t = P("button"), r = P("span"), i = ne(n), L(t, "class", "CashierErrorButton");
|
|
4073
4101
|
},
|
|
4074
|
-
m(
|
|
4075
|
-
|
|
4102
|
+
m(s, h) {
|
|
4103
|
+
M(s, t, h), O(t, r), O(r, i), a || (o = ar(
|
|
4076
4104
|
t,
|
|
4077
4105
|
"click",
|
|
4078
4106
|
/*close*/
|
|
4079
4107
|
e[5]
|
|
4080
|
-
),
|
|
4108
|
+
), a = !0);
|
|
4081
4109
|
},
|
|
4082
|
-
p(
|
|
4110
|
+
p(s, h) {
|
|
4083
4111
|
h & /*$_*/
|
|
4084
4112
|
16 && n !== (n = /*$_*/
|
|
4085
|
-
|
|
4113
|
+
s[4]("errorGeneralButton") + "") && Ve(i, n);
|
|
4086
4114
|
},
|
|
4087
|
-
d(
|
|
4088
|
-
|
|
4115
|
+
d(s) {
|
|
4116
|
+
s && I(t), a = !1, o();
|
|
4089
4117
|
}
|
|
4090
4118
|
};
|
|
4091
4119
|
}
|
|
4092
|
-
function
|
|
4093
|
-
let t, r, n, i,
|
|
4094
|
-
const
|
|
4120
|
+
function Pi(e) {
|
|
4121
|
+
let t, r, n, i, a, o;
|
|
4122
|
+
const s = (
|
|
4095
4123
|
/*#slots*/
|
|
4096
4124
|
e[12].icon
|
|
4097
|
-
), h =
|
|
4098
|
-
|
|
4125
|
+
), h = he(
|
|
4126
|
+
s,
|
|
4099
4127
|
e,
|
|
4100
4128
|
/*$$scope*/
|
|
4101
4129
|
e[11],
|
|
@@ -4103,7 +4131,7 @@ function Oi(e) {
|
|
|
4103
4131
|
), u = h || wi(e), l = (
|
|
4104
4132
|
/*#slots*/
|
|
4105
4133
|
e[12].title
|
|
4106
|
-
), f =
|
|
4134
|
+
), f = he(
|
|
4107
4135
|
l,
|
|
4108
4136
|
e,
|
|
4109
4137
|
/*$$scope*/
|
|
@@ -4112,151 +4140,151 @@ function Oi(e) {
|
|
|
4112
4140
|
), c = f || Bi(e), y = (
|
|
4113
4141
|
/*#slots*/
|
|
4114
4142
|
e[12].text
|
|
4115
|
-
),
|
|
4143
|
+
), b = he(
|
|
4116
4144
|
y,
|
|
4117
4145
|
e,
|
|
4118
4146
|
/*$$scope*/
|
|
4119
4147
|
e[11],
|
|
4120
4148
|
gt
|
|
4121
|
-
),
|
|
4122
|
-
let
|
|
4149
|
+
), v = b || Si(e);
|
|
4150
|
+
let E = (!/*hidebuttons*/
|
|
4123
4151
|
e[1] || /*hidebuttons*/
|
|
4124
4152
|
e[1] === "false") && Et(e);
|
|
4125
4153
|
return {
|
|
4126
4154
|
c() {
|
|
4127
|
-
t =
|
|
4155
|
+
t = P("div"), r = P("div"), u && u.c(), n = we(), c && c.c(), i = we(), v && v.c(), a = we(), E && E.c(), L(r, "class", "CashierErrorContent"), L(t, "class", "CashierError");
|
|
4128
4156
|
},
|
|
4129
|
-
m(m,
|
|
4130
|
-
|
|
4157
|
+
m(m, x) {
|
|
4158
|
+
M(m, t, x), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), v && v.m(r, null), O(r, a), E && E.m(r, null), e[13](t), o = !0;
|
|
4131
4159
|
},
|
|
4132
|
-
p(m, [
|
|
4133
|
-
h ? h.p && (!o ||
|
|
4134
|
-
2048) &&
|
|
4160
|
+
p(m, [x]) {
|
|
4161
|
+
h ? h.p && (!o || x & /*$$scope*/
|
|
4162
|
+
2048) && fe(
|
|
4135
4163
|
h,
|
|
4136
|
-
|
|
4164
|
+
s,
|
|
4137
4165
|
m,
|
|
4138
4166
|
/*$$scope*/
|
|
4139
4167
|
m[11],
|
|
4140
|
-
o ?
|
|
4141
|
-
|
|
4168
|
+
o ? ce(
|
|
4169
|
+
s,
|
|
4142
4170
|
/*$$scope*/
|
|
4143
4171
|
m[11],
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
) :
|
|
4172
|
+
x,
|
|
4173
|
+
xi
|
|
4174
|
+
) : me(
|
|
4147
4175
|
/*$$scope*/
|
|
4148
4176
|
m[11]
|
|
4149
4177
|
),
|
|
4150
4178
|
_t
|
|
4151
|
-
) : u && u.p && (!o ||
|
|
4152
|
-
1) && u.p(m, o ?
|
|
4153
|
-
2048) &&
|
|
4179
|
+
) : u && u.p && (!o || x & /*assetsurl*/
|
|
4180
|
+
1) && u.p(m, o ? x : -1), f ? f.p && (!o || x & /*$$scope*/
|
|
4181
|
+
2048) && fe(
|
|
4154
4182
|
f,
|
|
4155
4183
|
l,
|
|
4156
4184
|
m,
|
|
4157
4185
|
/*$$scope*/
|
|
4158
4186
|
m[11],
|
|
4159
|
-
o ?
|
|
4187
|
+
o ? ce(
|
|
4160
4188
|
l,
|
|
4161
4189
|
/*$$scope*/
|
|
4162
4190
|
m[11],
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
) :
|
|
4191
|
+
x,
|
|
4192
|
+
vi
|
|
4193
|
+
) : me(
|
|
4166
4194
|
/*$$scope*/
|
|
4167
4195
|
m[11]
|
|
4168
4196
|
),
|
|
4169
4197
|
yt
|
|
4170
|
-
) : c && c.p && (!o ||
|
|
4171
|
-
16) && c.p(m, o ?
|
|
4172
|
-
2048) &&
|
|
4173
|
-
|
|
4198
|
+
) : c && c.p && (!o || x & /*$_*/
|
|
4199
|
+
16) && c.p(m, o ? x : -1), b ? b.p && (!o || x & /*$$scope*/
|
|
4200
|
+
2048) && fe(
|
|
4201
|
+
b,
|
|
4174
4202
|
y,
|
|
4175
4203
|
m,
|
|
4176
4204
|
/*$$scope*/
|
|
4177
4205
|
m[11],
|
|
4178
|
-
o ?
|
|
4206
|
+
o ? ce(
|
|
4179
4207
|
y,
|
|
4180
4208
|
/*$$scope*/
|
|
4181
4209
|
m[11],
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
) :
|
|
4210
|
+
x,
|
|
4211
|
+
Ei
|
|
4212
|
+
) : me(
|
|
4185
4213
|
/*$$scope*/
|
|
4186
4214
|
m[11]
|
|
4187
4215
|
),
|
|
4188
4216
|
gt
|
|
4189
|
-
) :
|
|
4190
|
-
20) &&
|
|
4217
|
+
) : v && v.p && (!o || x & /*$_, errorcode*/
|
|
4218
|
+
20) && v.p(m, o ? x : -1), !/*hidebuttons*/
|
|
4191
4219
|
m[1] || /*hidebuttons*/
|
|
4192
|
-
m[1] === "false" ?
|
|
4193
|
-
2 &&
|
|
4194
|
-
|
|
4195
|
-
}),
|
|
4220
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4221
|
+
2 && C(E, 1)) : (E = Et(m), E.c(), C(E, 1), E.m(r, null)) : E && (dr(), F(E, 1, 1, () => {
|
|
4222
|
+
E = null;
|
|
4223
|
+
}), br());
|
|
4196
4224
|
},
|
|
4197
4225
|
i(m) {
|
|
4198
|
-
o || (
|
|
4226
|
+
o || (C(u, m), C(c, m), C(v, m), C(E), o = !0);
|
|
4199
4227
|
},
|
|
4200
4228
|
o(m) {
|
|
4201
|
-
|
|
4229
|
+
F(u, m), F(c, m), F(v, m), F(E), o = !1;
|
|
4202
4230
|
},
|
|
4203
4231
|
d(m) {
|
|
4204
|
-
m &&
|
|
4232
|
+
m && I(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4205
4233
|
}
|
|
4206
4234
|
};
|
|
4207
4235
|
}
|
|
4208
|
-
function
|
|
4236
|
+
function Oi(e, t, r) {
|
|
4209
4237
|
let n;
|
|
4210
|
-
er(e,
|
|
4211
|
-
let { $$slots: i = {}, $$scope:
|
|
4212
|
-
const
|
|
4213
|
-
|
|
4214
|
-
},
|
|
4215
|
-
fetch(c).then((
|
|
4216
|
-
Object.keys(
|
|
4217
|
-
dt(
|
|
4238
|
+
er(e, mi, (d) => r(4, n = d));
|
|
4239
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
|
|
4240
|
+
const v = () => {
|
|
4241
|
+
gi(s);
|
|
4242
|
+
}, E = () => {
|
|
4243
|
+
fetch(c).then((w) => w.json()).then((w) => {
|
|
4244
|
+
Object.keys(w).forEach((B) => {
|
|
4245
|
+
dt(B, w[B]);
|
|
4218
4246
|
});
|
|
4219
|
-
}).catch((
|
|
4220
|
-
console.error(
|
|
4247
|
+
}).catch((w) => {
|
|
4248
|
+
console.error(w);
|
|
4221
4249
|
});
|
|
4222
4250
|
};
|
|
4223
|
-
Object.keys(
|
|
4224
|
-
dt(d,
|
|
4251
|
+
Object.keys(bt).forEach((d) => {
|
|
4252
|
+
dt(d, bt[d]);
|
|
4225
4253
|
});
|
|
4226
4254
|
const m = () => {
|
|
4227
4255
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4228
4256
|
};
|
|
4229
4257
|
lr(() => () => {
|
|
4230
4258
|
});
|
|
4231
|
-
function
|
|
4232
|
-
|
|
4233
|
-
|
|
4259
|
+
function x(d) {
|
|
4260
|
+
Ne[d ? "unshift" : "push"](() => {
|
|
4261
|
+
b = d, r(3, b);
|
|
4234
4262
|
});
|
|
4235
4263
|
}
|
|
4236
4264
|
return e.$$set = (d) => {
|
|
4237
|
-
"assetsurl" in d && r(0, o = d.assetsurl), "lang" in d && r(6,
|
|
4265
|
+
"assetsurl" in d && r(0, o = d.assetsurl), "lang" in d && r(6, s = d.lang), "hidebuttons" in d && r(1, h = d.hidebuttons), "errorcode" in d && r(2, u = d.errorcode), "clientstyling" in d && r(7, l = d.clientstyling), "clientstylingurl" in d && r(8, f = d.clientstylingurl), "translationurl" in d && r(9, c = d.translationurl), "mbsource" in d && r(10, y = d.mbsource), "$$scope" in d && r(11, a = d.$$scope);
|
|
4238
4266
|
}, e.$$.update = () => {
|
|
4239
4267
|
e.$$.dirty & /*lang*/
|
|
4240
|
-
64 &&
|
|
4241
|
-
136 && l &&
|
|
4242
|
-
264 && f &&
|
|
4243
|
-
1032 && y &&
|
|
4244
|
-
512 && c &&
|
|
4268
|
+
64 && s && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4269
|
+
136 && l && b && di(b, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4270
|
+
264 && f && b && bi(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4271
|
+
1032 && y && b && pi(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4272
|
+
512 && c && E();
|
|
4245
4273
|
}, [
|
|
4246
4274
|
o,
|
|
4247
4275
|
h,
|
|
4248
4276
|
u,
|
|
4249
|
-
|
|
4277
|
+
b,
|
|
4250
4278
|
n,
|
|
4251
4279
|
m,
|
|
4252
|
-
|
|
4280
|
+
s,
|
|
4253
4281
|
l,
|
|
4254
4282
|
f,
|
|
4255
4283
|
c,
|
|
4256
4284
|
y,
|
|
4257
|
-
|
|
4285
|
+
a,
|
|
4258
4286
|
i,
|
|
4259
|
-
|
|
4287
|
+
x
|
|
4260
4288
|
];
|
|
4261
4289
|
}
|
|
4262
4290
|
class Qt extends vr {
|
|
@@ -4264,8 +4292,8 @@ class Qt extends vr {
|
|
|
4264
4292
|
super(), _r(
|
|
4265
4293
|
this,
|
|
4266
4294
|
t,
|
|
4267
|
-
Ii,
|
|
4268
4295
|
Oi,
|
|
4296
|
+
Pi,
|
|
4269
4297
|
xt,
|
|
4270
4298
|
{
|
|
4271
4299
|
assetsurl: 0,
|
|
@@ -4277,96 +4305,100 @@ class Qt extends vr {
|
|
|
4277
4305
|
translationurl: 9,
|
|
4278
4306
|
mbsource: 10
|
|
4279
4307
|
},
|
|
4280
|
-
|
|
4308
|
+
yi
|
|
4281
4309
|
);
|
|
4282
4310
|
}
|
|
4283
4311
|
get assetsurl() {
|
|
4284
4312
|
return this.$$.ctx[0];
|
|
4285
4313
|
}
|
|
4286
4314
|
set assetsurl(t) {
|
|
4287
|
-
this.$$set({ assetsurl: t }),
|
|
4315
|
+
this.$$set({ assetsurl: t }), S();
|
|
4288
4316
|
}
|
|
4289
4317
|
get lang() {
|
|
4290
4318
|
return this.$$.ctx[6];
|
|
4291
4319
|
}
|
|
4292
4320
|
set lang(t) {
|
|
4293
|
-
this.$$set({ lang: t }),
|
|
4321
|
+
this.$$set({ lang: t }), S();
|
|
4294
4322
|
}
|
|
4295
4323
|
get hidebuttons() {
|
|
4296
4324
|
return this.$$.ctx[1];
|
|
4297
4325
|
}
|
|
4298
4326
|
set hidebuttons(t) {
|
|
4299
|
-
this.$$set({ hidebuttons: t }),
|
|
4327
|
+
this.$$set({ hidebuttons: t }), S();
|
|
4300
4328
|
}
|
|
4301
4329
|
get errorcode() {
|
|
4302
4330
|
return this.$$.ctx[2];
|
|
4303
4331
|
}
|
|
4304
4332
|
set errorcode(t) {
|
|
4305
|
-
this.$$set({ errorcode: t }),
|
|
4333
|
+
this.$$set({ errorcode: t }), S();
|
|
4306
4334
|
}
|
|
4307
4335
|
get clientstyling() {
|
|
4308
4336
|
return this.$$.ctx[7];
|
|
4309
4337
|
}
|
|
4310
4338
|
set clientstyling(t) {
|
|
4311
|
-
this.$$set({ clientstyling: t }),
|
|
4339
|
+
this.$$set({ clientstyling: t }), S();
|
|
4312
4340
|
}
|
|
4313
4341
|
get clientstylingurl() {
|
|
4314
4342
|
return this.$$.ctx[8];
|
|
4315
4343
|
}
|
|
4316
4344
|
set clientstylingurl(t) {
|
|
4317
|
-
this.$$set({ clientstylingurl: t }),
|
|
4345
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4318
4346
|
}
|
|
4319
4347
|
get translationurl() {
|
|
4320
4348
|
return this.$$.ctx[9];
|
|
4321
4349
|
}
|
|
4322
4350
|
set translationurl(t) {
|
|
4323
|
-
this.$$set({ translationurl: t }),
|
|
4351
|
+
this.$$set({ translationurl: t }), S();
|
|
4324
4352
|
}
|
|
4325
4353
|
get mbsource() {
|
|
4326
4354
|
return this.$$.ctx[10];
|
|
4327
4355
|
}
|
|
4328
4356
|
set mbsource(t) {
|
|
4329
|
-
this.$$set({ mbsource: t }),
|
|
4357
|
+
this.$$set({ mbsource: t }), S();
|
|
4330
4358
|
}
|
|
4331
4359
|
}
|
|
4332
4360
|
Er(Qt, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4333
|
-
const
|
|
4361
|
+
const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4334
4362
|
__proto__: null,
|
|
4335
4363
|
default: Qt
|
|
4336
4364
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4337
4365
|
export {
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4366
|
+
D as $,
|
|
4367
|
+
ne as A,
|
|
4368
|
+
ir as B,
|
|
4369
|
+
O as C,
|
|
4370
|
+
Ve as D,
|
|
4371
|
+
ar as E,
|
|
4372
|
+
Ni as F,
|
|
4373
|
+
Ci as G,
|
|
4374
|
+
Ye as H,
|
|
4375
|
+
Ri as I,
|
|
4345
4376
|
vr as S,
|
|
4377
|
+
Mi as _,
|
|
4346
4378
|
Xt as a,
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4379
|
+
Se as b,
|
|
4380
|
+
Li as c,
|
|
4381
|
+
$i as d,
|
|
4382
|
+
xe as e,
|
|
4383
|
+
Er as f,
|
|
4352
4384
|
Hr as g,
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4385
|
+
_r as h,
|
|
4386
|
+
Vn as i,
|
|
4387
|
+
S as j,
|
|
4388
|
+
tr as k,
|
|
4389
|
+
P as l,
|
|
4390
|
+
L as m,
|
|
4391
|
+
M as n,
|
|
4392
|
+
A as o,
|
|
4393
|
+
I as p,
|
|
4394
|
+
er as q,
|
|
4395
|
+
lr as r,
|
|
4364
4396
|
xt as s,
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4397
|
+
bi as t,
|
|
4398
|
+
pi as u,
|
|
4399
|
+
Ne as v,
|
|
4400
|
+
di as w,
|
|
4401
|
+
ue as x,
|
|
4402
|
+
mi as y,
|
|
4403
|
+
we as z
|
|
4372
4404
|
};
|