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