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