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