@everymatrix/casino-404 1.54.12 → 1.56.0
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/Casino404--29qn4df.cjs +3 -0
- package/components/{Casino404-mo8xLHU-.js → Casino404-BQEvSon_.js} +625 -596
- package/components/{Casino404-CKoe8-UY.js → Casino404-Z4fpzFV2.js} +659 -630
- package/es2015/casino-404.cjs +1 -1
- package/es2015/casino-404.js +1 -1
- package/esnext/casino-404.js +1 -1
- package/package.json +1 -1
- package/components/Casino404-DLlvUdb9.cjs +0 -3
@@ -2,32 +2,32 @@ var Gt = Object.defineProperty, Dt = Object.defineProperties;
|
|
2
2
|
var Ut = Object.getOwnPropertyDescriptors;
|
3
3
|
var ke = Object.getOwnPropertySymbols;
|
4
4
|
var jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
|
5
|
-
var
|
5
|
+
var de = (e, t, r) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
jt.call(t, r) &&
|
7
|
+
jt.call(t, r) && de(e, r, t[r]);
|
8
8
|
if (ke)
|
9
9
|
for (var r of ke(t))
|
10
|
-
kt.call(t, r) &&
|
10
|
+
kt.call(t, r) && de(e, r, t[r]);
|
11
11
|
return e;
|
12
12
|
}, Xe = (e, t) => Dt(e, Ut(t));
|
13
|
-
var
|
13
|
+
var N = (e, t, r) => de(e, typeof t != "symbol" ? t + "" : t, r);
|
14
14
|
var ze = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (h) => {
|
16
16
|
try {
|
17
17
|
u(r.next(h));
|
18
|
-
} catch (
|
19
|
-
i(
|
18
|
+
} catch (a) {
|
19
|
+
i(a);
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, s = (h) => {
|
22
22
|
try {
|
23
23
|
u(r.throw(h));
|
24
|
-
} catch (
|
25
|
-
i(
|
24
|
+
} catch (a) {
|
25
|
+
i(a);
|
26
26
|
}
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o,
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
28
28
|
u((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
function
|
30
|
+
function B() {
|
31
31
|
}
|
32
32
|
function lt(e) {
|
33
33
|
return e();
|
@@ -35,10 +35,10 @@ function lt(e) {
|
|
35
35
|
function Ze() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function re(e) {
|
39
39
|
e.forEach(lt);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function Fe(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
44
|
function ft(e, t) {
|
@@ -51,7 +51,7 @@ function ct(e, ...t) {
|
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
54
|
-
return
|
54
|
+
return B;
|
55
55
|
}
|
56
56
|
const r = e.subscribe(...t);
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
@@ -59,7 +59,7 @@ function ct(e, ...t) {
|
|
59
59
|
function Xt(e, t, r) {
|
60
60
|
e.$$.on_destroy.push(ct(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function _(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
65
|
function zt(e, t, r) {
|
@@ -79,7 +79,7 @@ function Zt(e) {
|
|
79
79
|
) : e.ownerDocument;
|
80
80
|
}
|
81
81
|
function Wt(e, t) {
|
82
|
-
return
|
82
|
+
return _(
|
83
83
|
/** @type {Document} */
|
84
84
|
e.head || e,
|
85
85
|
t
|
@@ -88,7 +88,7 @@ function Wt(e, t) {
|
|
88
88
|
function mt(e, t, r) {
|
89
89
|
e.insertBefore(t, r || null);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function Ge(e) {
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
93
93
|
}
|
94
94
|
function C(e) {
|
@@ -97,11 +97,11 @@ function C(e) {
|
|
97
97
|
function I(e) {
|
98
98
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function oe(e) {
|
101
101
|
return document.createTextNode(e);
|
102
102
|
}
|
103
|
-
function
|
104
|
-
return
|
103
|
+
function be() {
|
104
|
+
return oe(" ");
|
105
105
|
}
|
106
106
|
function Qt(e, t, r, n) {
|
107
107
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
@@ -112,7 +112,7 @@ function x(e, t, r) {
|
|
112
112
|
function qt(e) {
|
113
113
|
return Array.from(e.childNodes);
|
114
114
|
}
|
115
|
-
function
|
115
|
+
function xe(e, t) {
|
116
116
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
117
117
|
t);
|
118
118
|
}
|
@@ -125,84 +125,91 @@ function Jt(e) {
|
|
125
125
|
}
|
126
126
|
), t;
|
127
127
|
}
|
128
|
-
let
|
128
|
+
let K;
|
129
129
|
function Y(e) {
|
130
|
-
|
130
|
+
K = e;
|
131
|
+
}
|
132
|
+
function Yt() {
|
133
|
+
if (!K) throw new Error("Function called outside component initialization");
|
134
|
+
return K;
|
131
135
|
}
|
132
|
-
|
136
|
+
function Kt(e) {
|
137
|
+
Yt().$$.on_mount.push(e);
|
138
|
+
}
|
139
|
+
const U = [], Se = [];
|
133
140
|
let j = [];
|
134
|
-
const We = [],
|
141
|
+
const We = [], er = /* @__PURE__ */ Promise.resolve();
|
135
142
|
let Ne = !1;
|
136
|
-
function
|
137
|
-
Ne || (Ne = !0,
|
143
|
+
function tr() {
|
144
|
+
Ne || (Ne = !0, er.then($));
|
138
145
|
}
|
139
146
|
function Ae(e) {
|
140
147
|
j.push(e);
|
141
148
|
}
|
142
|
-
const
|
143
|
-
let
|
144
|
-
function
|
145
|
-
if (
|
149
|
+
const ye = /* @__PURE__ */ new Set();
|
150
|
+
let G = 0;
|
151
|
+
function $() {
|
152
|
+
if (G !== 0)
|
146
153
|
return;
|
147
|
-
const e =
|
154
|
+
const e = K;
|
148
155
|
do {
|
149
156
|
try {
|
150
|
-
for (;
|
151
|
-
const t =
|
152
|
-
|
157
|
+
for (; G < U.length; ) {
|
158
|
+
const t = U[G];
|
159
|
+
G++, Y(t), rr(t.$$);
|
153
160
|
}
|
154
161
|
} catch (t) {
|
155
|
-
throw
|
162
|
+
throw U.length = 0, G = 0, t;
|
156
163
|
}
|
157
|
-
for (Y(null),
|
164
|
+
for (Y(null), U.length = 0, G = 0; Se.length; ) Se.pop()();
|
158
165
|
for (let t = 0; t < j.length; t += 1) {
|
159
166
|
const r = j[t];
|
160
|
-
|
167
|
+
ye.has(r) || (ye.add(r), r());
|
161
168
|
}
|
162
169
|
j.length = 0;
|
163
|
-
} while (
|
170
|
+
} while (U.length);
|
164
171
|
for (; We.length; )
|
165
172
|
We.pop()();
|
166
|
-
Ne = !1,
|
173
|
+
Ne = !1, ye.clear(), Y(e);
|
167
174
|
}
|
168
|
-
function
|
175
|
+
function rr(e) {
|
169
176
|
if (e.fragment !== null) {
|
170
|
-
e.update(),
|
177
|
+
e.update(), re(e.before_update);
|
171
178
|
const t = e.dirty;
|
172
179
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
173
180
|
}
|
174
181
|
}
|
175
|
-
function
|
182
|
+
function nr(e) {
|
176
183
|
const t = [], r = [];
|
177
184
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
178
185
|
}
|
179
|
-
const
|
180
|
-
function
|
181
|
-
e && e.i && (
|
186
|
+
const ir = /* @__PURE__ */ new Set();
|
187
|
+
function or(e, t) {
|
188
|
+
e && e.i && (ir.delete(e), e.i(t));
|
182
189
|
}
|
183
|
-
function
|
190
|
+
function ar(e, t, r) {
|
184
191
|
const { fragment: n, after_update: i } = e.$$;
|
185
192
|
n && n.m(t, r), Ae(() => {
|
186
|
-
const o = e.$$.on_mount.map(lt).filter(
|
187
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
193
|
+
const o = e.$$.on_mount.map(lt).filter(Fe);
|
194
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
188
195
|
}), i.forEach(Ae);
|
189
196
|
}
|
190
|
-
function
|
197
|
+
function sr(e, t) {
|
191
198
|
const r = e.$$;
|
192
|
-
r.fragment !== null && (
|
199
|
+
r.fragment !== null && (nr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
193
200
|
}
|
194
|
-
function
|
195
|
-
e.$$.dirty[0] === -1 && (
|
201
|
+
function ur(e, t) {
|
202
|
+
e.$$.dirty[0] === -1 && (U.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
196
203
|
}
|
197
|
-
function
|
198
|
-
const h =
|
204
|
+
function hr(e, t, r, n, i, o, s = null, u = [-1]) {
|
205
|
+
const h = K;
|
199
206
|
Y(e);
|
200
|
-
const
|
207
|
+
const a = e.$$ = {
|
201
208
|
fragment: null,
|
202
209
|
ctx: [],
|
203
210
|
// state
|
204
211
|
props: o,
|
205
|
-
update:
|
212
|
+
update: B,
|
206
213
|
not_equal: i,
|
207
214
|
bound: Ze(),
|
208
215
|
// lifecycle
|
@@ -218,18 +225,18 @@ function sr(e, t, r, n, i, o, a = null, u = [-1]) {
|
|
218
225
|
skip_bound: !1,
|
219
226
|
root: t.target || h.$$.root
|
220
227
|
};
|
221
|
-
|
228
|
+
s && s(a.root);
|
222
229
|
let l = !1;
|
223
|
-
if (
|
224
|
-
const y = b.length ? b[0] :
|
225
|
-
return
|
226
|
-
}) : [],
|
230
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
231
|
+
const y = b.length ? b[0] : c;
|
232
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = y) && (!a.skip_bound && a.bound[f] && a.bound[f](y), l && ur(e, f)), c;
|
233
|
+
}) : [], a.update(), l = !0, re(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
227
234
|
if (t.hydrate) {
|
228
|
-
const
|
229
|
-
|
235
|
+
const f = qt(t.target);
|
236
|
+
a.fragment && a.fragment.l(f), f.forEach(Ge);
|
230
237
|
} else
|
231
|
-
|
232
|
-
t.intro &&
|
238
|
+
a.fragment && a.fragment.c();
|
239
|
+
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), $();
|
233
240
|
}
|
234
241
|
Y(h);
|
235
242
|
}
|
@@ -238,23 +245,23 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
238
245
|
constructor(t, r, n) {
|
239
246
|
super();
|
240
247
|
/** The Svelte component constructor */
|
241
|
-
|
248
|
+
N(this, "$$ctor");
|
242
249
|
/** Slots */
|
243
|
-
|
250
|
+
N(this, "$$s");
|
244
251
|
/** The Svelte component instance */
|
245
|
-
|
252
|
+
N(this, "$$c");
|
246
253
|
/** Whether or not the custom element is connected */
|
247
|
-
|
254
|
+
N(this, "$$cn", !1);
|
248
255
|
/** Component props data */
|
249
|
-
|
256
|
+
N(this, "$$d", {});
|
250
257
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
251
|
-
|
258
|
+
N(this, "$$r", !1);
|
252
259
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
253
|
-
|
260
|
+
N(this, "$$p_d", {});
|
254
261
|
/** @type {Record<string, Function[]>} Event listeners */
|
255
|
-
|
262
|
+
N(this, "$$l", {});
|
256
263
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
257
|
-
|
264
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
258
265
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
259
266
|
}
|
260
267
|
addEventListener(t, r, n) {
|
@@ -275,20 +282,20 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
275
282
|
if (this.$$cn = !0, !this.$$c) {
|
276
283
|
let t = function(o) {
|
277
284
|
return () => {
|
278
|
-
let
|
285
|
+
let s;
|
279
286
|
return {
|
280
287
|
c: function() {
|
281
|
-
|
288
|
+
s = C("slot"), o !== "default" && x(s, "name", o);
|
282
289
|
},
|
283
290
|
/**
|
284
291
|
* @param {HTMLElement} target
|
285
292
|
* @param {HTMLElement} [anchor]
|
286
293
|
*/
|
287
|
-
m: function(
|
288
|
-
mt(
|
294
|
+
m: function(a, l) {
|
295
|
+
mt(a, s, l);
|
289
296
|
},
|
290
|
-
d: function(
|
291
|
-
|
297
|
+
d: function(a) {
|
298
|
+
a && Ge(s);
|
292
299
|
}
|
293
300
|
};
|
294
301
|
};
|
@@ -299,8 +306,8 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
299
306
|
for (const o of this.$$s)
|
300
307
|
o in n && (r[o] = [t(o)]);
|
301
308
|
for (const o of this.attributes) {
|
302
|
-
const
|
303
|
-
|
309
|
+
const s = this.$$g_p(o.name);
|
310
|
+
s in this.$$d || (this.$$d[s] = ae(s, o.value, this.$$p_d, "toProp"));
|
304
311
|
}
|
305
312
|
for (const o in this.$$p_d)
|
306
313
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
@@ -317,21 +324,21 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
317
324
|
this.$$r = !0;
|
318
325
|
for (const o in this.$$p_d)
|
319
326
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
320
|
-
const
|
327
|
+
const s = ae(
|
321
328
|
o,
|
322
329
|
this.$$d[o],
|
323
330
|
this.$$p_d,
|
324
331
|
"toAttribute"
|
325
332
|
);
|
326
|
-
|
333
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
327
334
|
}
|
328
335
|
this.$$r = !1;
|
329
336
|
};
|
330
337
|
this.$$c.$$.after_update.push(i), i();
|
331
338
|
for (const o in this.$$l)
|
332
|
-
for (const
|
333
|
-
const u = this.$$c.$on(o,
|
334
|
-
this.$$l_u.set(
|
339
|
+
for (const s of this.$$l[o]) {
|
340
|
+
const u = this.$$c.$on(o, s);
|
341
|
+
this.$$l_u.set(s, u);
|
335
342
|
}
|
336
343
|
this.$$l = {};
|
337
344
|
}
|
@@ -341,7 +348,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
341
348
|
// and setting attributes through setAttribute etc, this is helpful
|
342
349
|
attributeChangedCallback(t, r, n) {
|
343
350
|
var i;
|
344
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
351
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ae(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
345
352
|
}
|
346
353
|
disconnectedCallback() {
|
347
354
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -354,7 +361,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
354
361
|
) || t;
|
355
362
|
}
|
356
363
|
});
|
357
|
-
function
|
364
|
+
function ae(e, t, r, n) {
|
358
365
|
var o;
|
359
366
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
360
367
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -384,8 +391,8 @@ function oe(e, t, r, n) {
|
|
384
391
|
return t;
|
385
392
|
}
|
386
393
|
}
|
387
|
-
function
|
388
|
-
let
|
394
|
+
function lr(e, t, r, n, i, o) {
|
395
|
+
let s = class extends pt {
|
389
396
|
constructor() {
|
390
397
|
super(e, r, i), this.$$p_d = t;
|
391
398
|
}
|
@@ -396,26 +403,26 @@ function ur(e, t, r, n, i, o) {
|
|
396
403
|
}
|
397
404
|
};
|
398
405
|
return Object.keys(t).forEach((u) => {
|
399
|
-
Object.defineProperty(
|
406
|
+
Object.defineProperty(s.prototype, u, {
|
400
407
|
get() {
|
401
408
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
402
409
|
},
|
403
410
|
set(h) {
|
404
|
-
var
|
405
|
-
h =
|
411
|
+
var a;
|
412
|
+
h = ae(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
406
413
|
}
|
407
414
|
});
|
408
415
|
}), n.forEach((u) => {
|
409
|
-
Object.defineProperty(
|
416
|
+
Object.defineProperty(s.prototype, u, {
|
410
417
|
get() {
|
411
418
|
var h;
|
412
419
|
return (h = this.$$c) == null ? void 0 : h[u];
|
413
420
|
}
|
414
421
|
});
|
415
422
|
}), e.element = /** @type {any} */
|
416
|
-
|
423
|
+
s, s;
|
417
424
|
}
|
418
|
-
class
|
425
|
+
class fr {
|
419
426
|
constructor() {
|
420
427
|
/**
|
421
428
|
* ### PRIVATE API
|
@@ -424,7 +431,7 @@ class hr {
|
|
424
431
|
*
|
425
432
|
* @type {any}
|
426
433
|
*/
|
427
|
-
|
434
|
+
N(this, "$$");
|
428
435
|
/**
|
429
436
|
* ### PRIVATE API
|
430
437
|
*
|
@@ -432,11 +439,11 @@ class hr {
|
|
432
439
|
*
|
433
440
|
* @type {any}
|
434
441
|
*/
|
435
|
-
|
442
|
+
N(this, "$$set");
|
436
443
|
}
|
437
444
|
/** @returns {void} */
|
438
445
|
$destroy() {
|
439
|
-
|
446
|
+
sr(this, 1), this.$destroy = B;
|
440
447
|
}
|
441
448
|
/**
|
442
449
|
* @template {Extract<keyof Events, string>} K
|
@@ -445,8 +452,8 @@ class hr {
|
|
445
452
|
* @returns {() => void}
|
446
453
|
*/
|
447
454
|
$on(t, r) {
|
448
|
-
if (!
|
449
|
-
return
|
455
|
+
if (!Fe(r))
|
456
|
+
return B;
|
450
457
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
451
458
|
return n.push(r), () => {
|
452
459
|
const i = n.indexOf(r);
|
@@ -461,112 +468,112 @@ class hr {
|
|
461
468
|
this.$$set && !Vt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
462
469
|
}
|
463
470
|
}
|
464
|
-
const
|
465
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
466
|
-
const
|
467
|
-
function
|
471
|
+
const cr = "4";
|
472
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
473
|
+
const D = [];
|
474
|
+
function mr(e, t) {
|
468
475
|
return {
|
469
|
-
subscribe:
|
476
|
+
subscribe: fe(e, t).subscribe
|
470
477
|
};
|
471
478
|
}
|
472
|
-
function
|
479
|
+
function fe(e, t = B) {
|
473
480
|
let r;
|
474
481
|
const n = /* @__PURE__ */ new Set();
|
475
482
|
function i(u) {
|
476
483
|
if (ft(e, u) && (e = u, r)) {
|
477
|
-
const h = !
|
478
|
-
for (const
|
479
|
-
|
484
|
+
const h = !D.length;
|
485
|
+
for (const a of n)
|
486
|
+
a[1](), D.push(a, e);
|
480
487
|
if (h) {
|
481
|
-
for (let
|
482
|
-
|
483
|
-
|
488
|
+
for (let a = 0; a < D.length; a += 2)
|
489
|
+
D[a][0](D[a + 1]);
|
490
|
+
D.length = 0;
|
484
491
|
}
|
485
492
|
}
|
486
493
|
}
|
487
494
|
function o(u) {
|
488
495
|
i(u(e));
|
489
496
|
}
|
490
|
-
function
|
491
|
-
const
|
492
|
-
return n.add(
|
493
|
-
n.delete(
|
497
|
+
function s(u, h = B) {
|
498
|
+
const a = [u, h];
|
499
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || B), u(e), () => {
|
500
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
494
501
|
};
|
495
502
|
}
|
496
|
-
return { set: i, update: o, subscribe:
|
503
|
+
return { set: i, update: o, subscribe: s };
|
497
504
|
}
|
498
505
|
function Z(e, t, r) {
|
499
506
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
500
507
|
if (!i.every(Boolean))
|
501
508
|
throw new Error("derived() expects stores as input, got a falsy value");
|
502
509
|
const o = t.length < 2;
|
503
|
-
return
|
510
|
+
return mr(r, (s, u) => {
|
504
511
|
let h = !1;
|
505
|
-
const
|
506
|
-
let l = 0,
|
507
|
-
const
|
512
|
+
const a = [];
|
513
|
+
let l = 0, f = B;
|
514
|
+
const c = () => {
|
508
515
|
if (l)
|
509
516
|
return;
|
510
|
-
|
511
|
-
const y = t(n ?
|
512
|
-
o ?
|
517
|
+
f();
|
518
|
+
const y = t(n ? a[0] : a, s, u);
|
519
|
+
o ? s(y) : f = Fe(y) ? y : B;
|
513
520
|
}, b = i.map(
|
514
|
-
(y,
|
521
|
+
(y, m) => ct(
|
515
522
|
y,
|
516
|
-
(
|
517
|
-
|
523
|
+
(v) => {
|
524
|
+
a[m] = v, l &= ~(1 << m), h && c();
|
518
525
|
},
|
519
526
|
() => {
|
520
|
-
l |= 1 <<
|
527
|
+
l |= 1 << m;
|
521
528
|
}
|
522
529
|
)
|
523
530
|
);
|
524
|
-
return h = !0,
|
525
|
-
|
531
|
+
return h = !0, c(), function() {
|
532
|
+
re(b), f(), h = !1;
|
526
533
|
};
|
527
534
|
});
|
528
535
|
}
|
529
|
-
function
|
536
|
+
function pr(e) {
|
530
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
531
538
|
}
|
532
|
-
var
|
533
|
-
return
|
539
|
+
var gr = function(t) {
|
540
|
+
return dr(t) && !br(t);
|
534
541
|
};
|
535
|
-
function
|
542
|
+
function dr(e) {
|
536
543
|
return !!e && typeof e == "object";
|
537
544
|
}
|
538
|
-
function
|
545
|
+
function br(e) {
|
539
546
|
var t = Object.prototype.toString.call(e);
|
540
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
541
548
|
}
|
542
|
-
var
|
543
|
-
function
|
544
|
-
return e.$$typeof ===
|
549
|
+
var xr = typeof Symbol == "function" && Symbol.for, yr = xr ? Symbol.for("react.element") : 60103;
|
550
|
+
function Er(e) {
|
551
|
+
return e.$$typeof === yr;
|
545
552
|
}
|
546
|
-
function
|
553
|
+
function vr(e) {
|
547
554
|
return Array.isArray(e) ? [] : {};
|
548
555
|
}
|
549
|
-
function
|
550
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
556
|
+
function ee(e, t) {
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(vr(e), e, t) : e;
|
551
558
|
}
|
552
|
-
function
|
559
|
+
function _r(e, t, r) {
|
553
560
|
return e.concat(t).map(function(n) {
|
554
|
-
return
|
561
|
+
return ee(n, r);
|
555
562
|
});
|
556
563
|
}
|
557
|
-
function
|
564
|
+
function Hr(e, t) {
|
558
565
|
if (!t.customMerge)
|
559
566
|
return k;
|
560
567
|
var r = t.customMerge(e);
|
561
568
|
return typeof r == "function" ? r : k;
|
562
569
|
}
|
563
|
-
function
|
570
|
+
function Tr(e) {
|
564
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
565
572
|
return Object.propertyIsEnumerable.call(e, t);
|
566
573
|
}) : [];
|
567
574
|
}
|
568
575
|
function Qe(e) {
|
569
|
-
return Object.keys(e).concat(
|
576
|
+
return Object.keys(e).concat(Tr(e));
|
570
577
|
}
|
571
578
|
function gt(e, t) {
|
572
579
|
try {
|
@@ -575,21 +582,21 @@ function gt(e, t) {
|
|
575
582
|
return !1;
|
576
583
|
}
|
577
584
|
}
|
578
|
-
function
|
585
|
+
function Pr(e, t) {
|
579
586
|
return gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
580
587
|
}
|
581
|
-
function
|
588
|
+
function Sr(e, t, r) {
|
582
589
|
var n = {};
|
583
590
|
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
584
|
-
n[i] =
|
591
|
+
n[i] = ee(e[i], r);
|
585
592
|
}), Qe(t).forEach(function(i) {
|
586
|
-
|
593
|
+
Pr(e, i) || (gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
587
594
|
}), n;
|
588
595
|
}
|
589
596
|
function k(e, t, r) {
|
590
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
597
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || gr, r.cloneUnlessOtherwiseSpecified = ee;
|
591
598
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
592
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
599
|
+
return o ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : ee(t, r);
|
593
600
|
}
|
594
601
|
k.all = function(t, r) {
|
595
602
|
if (!Array.isArray(t))
|
@@ -598,19 +605,19 @@ k.all = function(t, r) {
|
|
598
605
|
return k(n, i, r);
|
599
606
|
}, {});
|
600
607
|
};
|
601
|
-
var
|
602
|
-
const
|
603
|
-
var
|
604
|
-
return
|
608
|
+
var Nr = k, Ar = Nr;
|
609
|
+
const Br = /* @__PURE__ */ pr(Ar);
|
610
|
+
var Be = function(e, t) {
|
611
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
605
612
|
r.__proto__ = n;
|
606
613
|
} || function(r, n) {
|
607
614
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
608
|
-
},
|
615
|
+
}, Be(e, t);
|
609
616
|
};
|
610
|
-
function
|
617
|
+
function ce(e, t) {
|
611
618
|
if (typeof t != "function" && t !== null)
|
612
619
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
613
|
-
|
620
|
+
Be(e, t);
|
614
621
|
function r() {
|
615
622
|
this.constructor = e;
|
616
623
|
}
|
@@ -625,7 +632,7 @@ var d = function() {
|
|
625
632
|
return t;
|
626
633
|
}, d.apply(this, arguments);
|
627
634
|
};
|
628
|
-
function
|
635
|
+
function wr(e, t) {
|
629
636
|
var r = {};
|
630
637
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
631
638
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -633,23 +640,23 @@ function Sr(e, t) {
|
|
633
640
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
634
641
|
return r;
|
635
642
|
}
|
636
|
-
function
|
643
|
+
function Ee(e, t, r) {
|
637
644
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
638
645
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
639
646
|
return e.concat(o || Array.prototype.slice.call(t));
|
640
647
|
}
|
641
648
|
function ve(e, t) {
|
642
|
-
var r = t && t.cache ? t.cache :
|
649
|
+
var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Cr, i = t && t.strategy ? t.strategy : Mr;
|
643
650
|
return i(e, {
|
644
651
|
cache: r,
|
645
652
|
serializer: n
|
646
653
|
});
|
647
654
|
}
|
648
|
-
function
|
655
|
+
function Or(e) {
|
649
656
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
650
657
|
}
|
651
|
-
function
|
652
|
-
var i =
|
658
|
+
function Ir(e, t, r, n) {
|
659
|
+
var i = Or(n) ? n : r(n), o = t.get(i);
|
653
660
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
654
661
|
}
|
655
662
|
function dt(e, t, r) {
|
@@ -659,16 +666,16 @@ function dt(e, t, r) {
|
|
659
666
|
function bt(e, t, r, n, i) {
|
660
667
|
return r.bind(t, e, n, i);
|
661
668
|
}
|
662
|
-
function
|
663
|
-
var r = e.length === 1 ?
|
669
|
+
function Mr(e, t) {
|
670
|
+
var r = e.length === 1 ? Ir : dt;
|
664
671
|
return bt(e, this, r, t.cache.create(), t.serializer);
|
665
672
|
}
|
666
|
-
function
|
673
|
+
function Lr(e, t) {
|
667
674
|
return bt(e, this, dt, t.cache.create(), t.serializer);
|
668
675
|
}
|
669
|
-
var
|
676
|
+
var Cr = function() {
|
670
677
|
return JSON.stringify(arguments);
|
671
|
-
},
|
678
|
+
}, $r = (
|
672
679
|
/** @class */
|
673
680
|
function() {
|
674
681
|
function e() {
|
@@ -680,61 +687,61 @@ var Mr = function() {
|
|
680
687
|
this.cache[t] = r;
|
681
688
|
}, e;
|
682
689
|
}()
|
683
|
-
),
|
690
|
+
), Rr = {
|
684
691
|
create: function() {
|
685
|
-
return new
|
692
|
+
return new $r();
|
686
693
|
}
|
687
|
-
},
|
688
|
-
variadic:
|
694
|
+
}, _e = {
|
695
|
+
variadic: Lr
|
689
696
|
}, p;
|
690
697
|
(function(e) {
|
691
698
|
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";
|
692
699
|
})(p || (p = {}));
|
693
|
-
var
|
700
|
+
var E;
|
694
701
|
(function(e) {
|
695
702
|
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";
|
696
|
-
})(
|
703
|
+
})(E || (E = {}));
|
697
704
|
var V;
|
698
705
|
(function(e) {
|
699
706
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
700
707
|
})(V || (V = {}));
|
701
708
|
function qe(e) {
|
702
|
-
return e.type ===
|
709
|
+
return e.type === E.literal;
|
703
710
|
}
|
704
|
-
function
|
705
|
-
return e.type ===
|
711
|
+
function Fr(e) {
|
712
|
+
return e.type === E.argument;
|
706
713
|
}
|
707
714
|
function xt(e) {
|
708
|
-
return e.type ===
|
715
|
+
return e.type === E.number;
|
709
716
|
}
|
710
717
|
function yt(e) {
|
711
|
-
return e.type ===
|
712
|
-
}
|
713
|
-
function vt(e) {
|
714
|
-
return e.type === v.time;
|
718
|
+
return e.type === E.date;
|
715
719
|
}
|
716
720
|
function Et(e) {
|
717
|
-
return e.type ===
|
721
|
+
return e.type === E.time;
|
722
|
+
}
|
723
|
+
function vt(e) {
|
724
|
+
return e.type === E.select;
|
718
725
|
}
|
719
726
|
function _t(e) {
|
720
|
-
return e.type ===
|
727
|
+
return e.type === E.plural;
|
721
728
|
}
|
722
|
-
function
|
723
|
-
return e.type ===
|
729
|
+
function Gr(e) {
|
730
|
+
return e.type === E.pound;
|
724
731
|
}
|
725
732
|
function Ht(e) {
|
726
|
-
return e.type ===
|
733
|
+
return e.type === E.tag;
|
727
734
|
}
|
728
735
|
function Tt(e) {
|
729
736
|
return !!(e && typeof e == "object" && e.type === V.number);
|
730
737
|
}
|
731
|
-
function
|
738
|
+
function we(e) {
|
732
739
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
733
740
|
}
|
734
|
-
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
735
|
-
function
|
741
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
742
|
+
function Ur(e) {
|
736
743
|
var t = {};
|
737
|
-
return e.replace(
|
744
|
+
return e.replace(Dr, function(r) {
|
738
745
|
var n = r.length;
|
739
746
|
switch (r[0]) {
|
740
747
|
case "G":
|
@@ -823,36 +830,36 @@ function Gr(e) {
|
|
823
830
|
return "";
|
824
831
|
}), t;
|
825
832
|
}
|
826
|
-
var
|
827
|
-
function
|
833
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
834
|
+
function kr(e) {
|
828
835
|
if (e.length === 0)
|
829
836
|
throw new Error("Number skeleton cannot be empty");
|
830
|
-
for (var t = e.split(
|
831
|
-
return
|
837
|
+
for (var t = e.split(jr).filter(function(c) {
|
838
|
+
return c.length > 0;
|
832
839
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
833
|
-
var o = i[n],
|
834
|
-
if (
|
840
|
+
var o = i[n], s = o.split("/");
|
841
|
+
if (s.length === 0)
|
835
842
|
throw new Error("Invalid number skeleton");
|
836
|
-
for (var u =
|
837
|
-
var
|
838
|
-
if (
|
843
|
+
for (var u = s[0], h = s.slice(1), a = 0, l = h; a < l.length; a++) {
|
844
|
+
var f = l[a];
|
845
|
+
if (f.length === 0)
|
839
846
|
throw new Error("Invalid number skeleton");
|
840
847
|
}
|
841
848
|
r.push({ stem: u, options: h });
|
842
849
|
}
|
843
850
|
return r;
|
844
851
|
}
|
845
|
-
function
|
852
|
+
function Vr(e) {
|
846
853
|
return e.replace(/^(.*?)-/, "");
|
847
854
|
}
|
848
|
-
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
855
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
849
856
|
function Ye(e) {
|
850
857
|
var t = {};
|
851
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
858
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(St, function(r, n, i) {
|
852
859
|
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)), "";
|
853
860
|
}), t;
|
854
861
|
}
|
855
|
-
function
|
862
|
+
function At(e) {
|
856
863
|
switch (e) {
|
857
864
|
case "sign-auto":
|
858
865
|
return {
|
@@ -892,7 +899,7 @@ function St(e) {
|
|
892
899
|
};
|
893
900
|
}
|
894
901
|
}
|
895
|
-
function
|
902
|
+
function zr(e) {
|
896
903
|
var t;
|
897
904
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
898
905
|
notation: "engineering"
|
@@ -900,17 +907,17 @@ function Vr(e) {
|
|
900
907
|
notation: "scientific"
|
901
908
|
}, e = e.slice(1)), t) {
|
902
909
|
var r = e.slice(0, 2);
|
903
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
910
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
904
911
|
throw new Error("Malformed concise eng/scientific notation");
|
905
912
|
t.minimumIntegerDigits = e.length;
|
906
913
|
}
|
907
914
|
return t;
|
908
915
|
}
|
909
916
|
function Ke(e) {
|
910
|
-
var t = {}, r =
|
917
|
+
var t = {}, r = At(e);
|
911
918
|
return r || t;
|
912
919
|
}
|
913
|
-
function
|
920
|
+
function Zr(e) {
|
914
921
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
915
922
|
var i = n[r];
|
916
923
|
switch (i.stem) {
|
@@ -934,7 +941,7 @@ function Xr(e) {
|
|
934
941
|
continue;
|
935
942
|
case "measure-unit":
|
936
943
|
case "unit":
|
937
|
-
t.style = "unit", t.unit =
|
944
|
+
t.style = "unit", t.unit = Vr(i.options[0]);
|
938
945
|
continue;
|
939
946
|
case "compact-short":
|
940
947
|
case "K":
|
@@ -945,13 +952,13 @@ function Xr(e) {
|
|
945
952
|
t.notation = "compact", t.compactDisplay = "long";
|
946
953
|
continue;
|
947
954
|
case "scientific":
|
948
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h,
|
949
|
-
return d(d({}, h), Ke(
|
955
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
956
|
+
return d(d({}, h), Ke(a));
|
950
957
|
}, {}));
|
951
958
|
continue;
|
952
959
|
case "engineering":
|
953
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h,
|
954
|
-
return d(d({}, h), Ke(
|
960
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
961
|
+
return d(d({}, h), Ke(a));
|
955
962
|
}, {}));
|
956
963
|
continue;
|
957
964
|
case "notation-simple":
|
@@ -996,11 +1003,11 @@ function Xr(e) {
|
|
996
1003
|
case "integer-width":
|
997
1004
|
if (i.options.length > 1)
|
998
1005
|
throw new RangeError("integer-width stems only accept a single optional option");
|
999
|
-
i.options[0].replace(
|
1000
|
-
if (
|
1006
|
+
i.options[0].replace(Xr, function(h, a, l, f, c, b) {
|
1007
|
+
if (a)
|
1001
1008
|
t.minimumIntegerDigits = l.length;
|
1002
1009
|
else {
|
1003
|
-
if (
|
1010
|
+
if (f && c)
|
1004
1011
|
throw new Error("We currently do not support maximum integer digits");
|
1005
1012
|
if (b)
|
1006
1013
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1009,32 +1016,32 @@ function Xr(e) {
|
|
1009
1016
|
});
|
1010
1017
|
continue;
|
1011
1018
|
}
|
1012
|
-
if (
|
1019
|
+
if (Nt.test(i.stem)) {
|
1013
1020
|
t.minimumIntegerDigits = i.stem.length;
|
1014
1021
|
continue;
|
1015
1022
|
}
|
1016
1023
|
if (Je.test(i.stem)) {
|
1017
1024
|
if (i.options.length > 1)
|
1018
1025
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1019
|
-
i.stem.replace(Je, function(h,
|
1020
|
-
return l === "*" ? t.minimumFractionDigits =
|
1026
|
+
i.stem.replace(Je, function(h, a, l, f, c, b) {
|
1027
|
+
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
1021
1028
|
});
|
1022
1029
|
var o = i.options[0];
|
1023
1030
|
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t), Ye(o)));
|
1024
1031
|
continue;
|
1025
1032
|
}
|
1026
|
-
if (
|
1033
|
+
if (St.test(i.stem)) {
|
1027
1034
|
t = d(d({}, t), Ye(i.stem));
|
1028
1035
|
continue;
|
1029
1036
|
}
|
1030
|
-
var
|
1031
|
-
|
1032
|
-
var u =
|
1037
|
+
var s = At(i.stem);
|
1038
|
+
s && (t = d(d({}, t), s));
|
1039
|
+
var u = zr(i.stem);
|
1033
1040
|
u && (t = d(d({}, t), u));
|
1034
1041
|
}
|
1035
1042
|
return t;
|
1036
1043
|
}
|
1037
|
-
var
|
1044
|
+
var ie = {
|
1038
1045
|
"001": [
|
1039
1046
|
"H",
|
1040
1047
|
"h"
|
@@ -2449,22 +2456,22 @@ var ne = {
|
|
2449
2456
|
"h"
|
2450
2457
|
]
|
2451
2458
|
};
|
2452
|
-
function
|
2459
|
+
function Wr(e, t) {
|
2453
2460
|
for (var r = "", n = 0; n < e.length; n++) {
|
2454
2461
|
var i = e.charAt(n);
|
2455
2462
|
if (i === "j") {
|
2456
2463
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2457
2464
|
o++, n++;
|
2458
|
-
var
|
2459
|
-
for ((
|
2465
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = Qr(t);
|
2466
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
2460
2467
|
r += h;
|
2461
|
-
for (;
|
2462
|
-
r =
|
2468
|
+
for (; s-- > 0; )
|
2469
|
+
r = a + r;
|
2463
2470
|
} else i === "J" ? r += "H" : r += i;
|
2464
2471
|
}
|
2465
2472
|
return r;
|
2466
2473
|
}
|
2467
|
-
function
|
2474
|
+
function Qr(e) {
|
2468
2475
|
var t = e.hourCycle;
|
2469
2476
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2470
2477
|
e.hourCycles && // @ts-ignore
|
@@ -2483,23 +2490,23 @@ function Zr(e) {
|
|
2483
2490
|
}
|
2484
2491
|
var r = e.language, n;
|
2485
2492
|
r !== "root" && (n = e.maximize().region);
|
2486
|
-
var i =
|
2493
|
+
var i = ie[n || ""] || ie[r || ""] || ie["".concat(r, "-001")] || ie["001"];
|
2487
2494
|
return i[0];
|
2488
2495
|
}
|
2489
|
-
var
|
2496
|
+
var He, qr = new RegExp("^".concat(Pt.source, "*")), Jr = new RegExp("".concat(Pt.source, "*$"));
|
2490
2497
|
function g(e, t) {
|
2491
2498
|
return { start: e, end: t };
|
2492
2499
|
}
|
2493
|
-
var
|
2500
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, an = on ? Number.isSafeInteger : function(e) {
|
2494
2501
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2495
|
-
},
|
2502
|
+
}, Oe = !0;
|
2496
2503
|
try {
|
2497
|
-
var
|
2498
|
-
|
2504
|
+
var sn = wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2505
|
+
Oe = ((He = sn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
2499
2506
|
} catch (e) {
|
2500
|
-
|
2507
|
+
Oe = !1;
|
2501
2508
|
}
|
2502
|
-
var et =
|
2509
|
+
var et = Yr ? (
|
2503
2510
|
// Native
|
2504
2511
|
function(t, r, n) {
|
2505
2512
|
return t.startsWith(r, n);
|
@@ -2509,31 +2516,31 @@ var et = qr ? (
|
|
2509
2516
|
function(t, r, n) {
|
2510
2517
|
return t.slice(n, n + r.length) === r;
|
2511
2518
|
}
|
2512
|
-
),
|
2519
|
+
), Ie = Kr ? String.fromCodePoint : (
|
2513
2520
|
// IE11
|
2514
2521
|
function() {
|
2515
2522
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2516
2523
|
t[r] = arguments[r];
|
2517
|
-
for (var n = "", i = t.length, o = 0,
|
2518
|
-
if (
|
2519
|
-
throw RangeError(
|
2520
|
-
n +=
|
2524
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
2525
|
+
if (s = t[o++], s > 1114111)
|
2526
|
+
throw RangeError(s + " is not a valid code point");
|
2527
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
2521
2528
|
}
|
2522
2529
|
return n;
|
2523
2530
|
}
|
2524
2531
|
), tt = (
|
2525
2532
|
// native
|
2526
|
-
|
2533
|
+
en ? Object.fromEntries : (
|
2527
2534
|
// Ponyfill
|
2528
2535
|
function(t) {
|
2529
2536
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2530
|
-
var o = i[n],
|
2531
|
-
r[
|
2537
|
+
var o = i[n], s = o[0], u = o[1];
|
2538
|
+
r[s] = u;
|
2532
2539
|
}
|
2533
2540
|
return r;
|
2534
2541
|
}
|
2535
2542
|
)
|
2536
|
-
), Bt =
|
2543
|
+
), Bt = tn ? (
|
2537
2544
|
// Native
|
2538
2545
|
function(t, r) {
|
2539
2546
|
return t.codePointAt(r);
|
@@ -2547,7 +2554,7 @@ var et = qr ? (
|
|
2547
2554
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2548
2555
|
}
|
2549
2556
|
}
|
2550
|
-
),
|
2557
|
+
), un = rn ? (
|
2551
2558
|
// Native
|
2552
2559
|
function(t) {
|
2553
2560
|
return t.trimStart();
|
@@ -2555,9 +2562,9 @@ var et = qr ? (
|
|
2555
2562
|
) : (
|
2556
2563
|
// Ponyfill
|
2557
2564
|
function(t) {
|
2558
|
-
return t.replace(
|
2565
|
+
return t.replace(qr, "");
|
2559
2566
|
}
|
2560
|
-
),
|
2567
|
+
), hn = nn ? (
|
2561
2568
|
// Native
|
2562
2569
|
function(t) {
|
2563
2570
|
return t.trimEnd();
|
@@ -2565,32 +2572,32 @@ var et = qr ? (
|
|
2565
2572
|
) : (
|
2566
2573
|
// Ponyfill
|
2567
2574
|
function(t) {
|
2568
|
-
return t.replace(
|
2575
|
+
return t.replace(Jr, "");
|
2569
2576
|
}
|
2570
2577
|
);
|
2571
2578
|
function wt(e, t) {
|
2572
2579
|
return new RegExp(e, t);
|
2573
2580
|
}
|
2574
|
-
var
|
2575
|
-
if (
|
2581
|
+
var Me;
|
2582
|
+
if (Oe) {
|
2576
2583
|
var rt = wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2577
|
-
|
2584
|
+
Me = function(t, r) {
|
2578
2585
|
var n;
|
2579
2586
|
rt.lastIndex = r;
|
2580
2587
|
var i = rt.exec(t);
|
2581
2588
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2582
2589
|
};
|
2583
2590
|
} else
|
2584
|
-
|
2591
|
+
Me = function(t, r) {
|
2585
2592
|
for (var n = []; ; ) {
|
2586
2593
|
var i = Bt(t, r);
|
2587
|
-
if (i === void 0 || Ot(i) ||
|
2594
|
+
if (i === void 0 || Ot(i) || mn(i))
|
2588
2595
|
break;
|
2589
2596
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2590
2597
|
}
|
2591
|
-
return
|
2598
|
+
return Ie.apply(void 0, n);
|
2592
2599
|
};
|
2593
|
-
var
|
2600
|
+
var ln = (
|
2594
2601
|
/** @class */
|
2595
2602
|
function() {
|
2596
2603
|
function e(t, r) {
|
@@ -2604,33 +2611,33 @@ var un = (
|
|
2604
2611
|
for (var i = []; !this.isEOF(); ) {
|
2605
2612
|
var o = this.char();
|
2606
2613
|
if (o === 123) {
|
2607
|
-
var
|
2608
|
-
if (
|
2609
|
-
return
|
2610
|
-
i.push(
|
2614
|
+
var s = this.parseArgument(t, n);
|
2615
|
+
if (s.err)
|
2616
|
+
return s;
|
2617
|
+
i.push(s.val);
|
2611
2618
|
} else {
|
2612
2619
|
if (o === 125 && t > 0)
|
2613
2620
|
break;
|
2614
2621
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2615
2622
|
var u = this.clonePosition();
|
2616
2623
|
this.bump(), i.push({
|
2617
|
-
type:
|
2624
|
+
type: E.pound,
|
2618
2625
|
location: g(u, this.clonePosition())
|
2619
2626
|
});
|
2620
2627
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2621
2628
|
if (n)
|
2622
2629
|
break;
|
2623
2630
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2624
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2625
|
-
var
|
2626
|
-
if (
|
2627
|
-
return
|
2628
|
-
i.push(
|
2631
|
+
} else if (o === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
|
2632
|
+
var s = this.parseTag(t, r);
|
2633
|
+
if (s.err)
|
2634
|
+
return s;
|
2635
|
+
i.push(s.val);
|
2629
2636
|
} else {
|
2630
|
-
var
|
2631
|
-
if (
|
2632
|
-
return
|
2633
|
-
i.push(
|
2637
|
+
var s = this.parseLiteral(t, r);
|
2638
|
+
if (s.err)
|
2639
|
+
return s;
|
2640
|
+
i.push(s.val);
|
2634
2641
|
}
|
2635
2642
|
}
|
2636
2643
|
}
|
@@ -2642,7 +2649,7 @@ var un = (
|
|
2642
2649
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2643
2650
|
return {
|
2644
2651
|
val: {
|
2645
|
-
type:
|
2652
|
+
type: E.literal,
|
2646
2653
|
value: "<".concat(i, "/>"),
|
2647
2654
|
location: g(n, this.clonePosition())
|
2648
2655
|
},
|
@@ -2652,16 +2659,16 @@ var un = (
|
|
2652
2659
|
var o = this.parseMessage(t + 1, r, !0);
|
2653
2660
|
if (o.err)
|
2654
2661
|
return o;
|
2655
|
-
var
|
2662
|
+
var s = o.val, u = this.clonePosition();
|
2656
2663
|
if (this.bumpIf("</")) {
|
2657
|
-
if (this.isEOF() || !
|
2664
|
+
if (this.isEOF() || !Le(this.char()))
|
2658
2665
|
return this.error(p.INVALID_TAG, g(u, this.clonePosition()));
|
2659
|
-
var h = this.clonePosition(),
|
2660
|
-
return i !==
|
2666
|
+
var h = this.clonePosition(), a = this.parseTagName();
|
2667
|
+
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2661
2668
|
val: {
|
2662
|
-
type:
|
2669
|
+
type: E.tag,
|
2663
2670
|
value: i,
|
2664
|
-
children:
|
2671
|
+
children: s,
|
2665
2672
|
location: g(n, this.clonePosition())
|
2666
2673
|
},
|
2667
2674
|
err: null
|
@@ -2672,7 +2679,7 @@ var un = (
|
|
2672
2679
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
2673
2680
|
}, e.prototype.parseTagName = function() {
|
2674
2681
|
var t = this.offset();
|
2675
|
-
for (this.bump(); !this.isEOF() &&
|
2682
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2676
2683
|
this.bump();
|
2677
2684
|
return this.message.slice(t, this.offset());
|
2678
2685
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2682,9 +2689,9 @@ var un = (
|
|
2682
2689
|
i += o;
|
2683
2690
|
continue;
|
2684
2691
|
}
|
2685
|
-
var
|
2686
|
-
if (
|
2687
|
-
i +=
|
2692
|
+
var s = this.tryParseUnquoted(t, r);
|
2693
|
+
if (s) {
|
2694
|
+
i += s;
|
2688
2695
|
continue;
|
2689
2696
|
}
|
2690
2697
|
var u = this.tryParseLeftAngleBracket();
|
@@ -2696,12 +2703,12 @@ var un = (
|
|
2696
2703
|
}
|
2697
2704
|
var h = g(n, this.clonePosition());
|
2698
2705
|
return {
|
2699
|
-
val: { type:
|
2706
|
+
val: { type: E.literal, value: i, location: h },
|
2700
2707
|
err: null
|
2701
2708
|
};
|
2702
2709
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2703
2710
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2704
|
-
!
|
2711
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2705
2712
|
}, e.prototype.tryParseQuote = function(t) {
|
2706
2713
|
if (this.isEOF() || this.char() !== 39)
|
2707
2714
|
return null;
|
@@ -2735,12 +2742,12 @@ var un = (
|
|
2735
2742
|
r.push(n);
|
2736
2743
|
this.bump();
|
2737
2744
|
}
|
2738
|
-
return
|
2745
|
+
return Ie.apply(void 0, r);
|
2739
2746
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2740
2747
|
if (this.isEOF())
|
2741
2748
|
return null;
|
2742
2749
|
var n = this.char();
|
2743
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2750
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ie(n));
|
2744
2751
|
}, e.prototype.parseArgument = function(t, r) {
|
2745
2752
|
var n = this.clonePosition();
|
2746
2753
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2756,7 +2763,7 @@ var un = (
|
|
2756
2763
|
case 125:
|
2757
2764
|
return this.bump(), {
|
2758
2765
|
val: {
|
2759
|
-
type:
|
2766
|
+
type: E.argument,
|
2760
2767
|
// value does not include the opening and closing braces.
|
2761
2768
|
value: i,
|
2762
2769
|
location: g(n, this.clonePosition())
|
@@ -2769,66 +2776,66 @@ var un = (
|
|
2769
2776
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
2770
2777
|
}
|
2771
2778
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2772
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2779
|
+
var t = this.clonePosition(), r = this.offset(), n = Me(this.message, r), i = r + n.length;
|
2773
2780
|
this.bumpTo(i);
|
2774
|
-
var o = this.clonePosition(),
|
2775
|
-
return { value: n, location:
|
2781
|
+
var o = this.clonePosition(), s = g(t, o);
|
2782
|
+
return { value: n, location: s };
|
2776
2783
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2777
|
-
var o,
|
2784
|
+
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2778
2785
|
switch (u) {
|
2779
2786
|
case "":
|
2780
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, g(
|
2787
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, h));
|
2781
2788
|
case "number":
|
2782
2789
|
case "date":
|
2783
2790
|
case "time": {
|
2784
2791
|
this.bumpSpace();
|
2785
|
-
var
|
2792
|
+
var a = null;
|
2786
2793
|
if (this.bumpIf(",")) {
|
2787
2794
|
this.bumpSpace();
|
2788
|
-
var l = this.clonePosition(),
|
2789
|
-
if (
|
2790
|
-
return
|
2791
|
-
var
|
2792
|
-
if (
|
2795
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2796
|
+
if (f.err)
|
2797
|
+
return f;
|
2798
|
+
var c = hn(f.val);
|
2799
|
+
if (c.length === 0)
|
2793
2800
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
2794
2801
|
var b = g(l, this.clonePosition());
|
2795
|
-
|
2802
|
+
a = { style: c, styleLocation: b };
|
2796
2803
|
}
|
2797
2804
|
var y = this.tryParseArgumentClose(i);
|
2798
2805
|
if (y.err)
|
2799
2806
|
return y;
|
2800
|
-
var
|
2801
|
-
if (
|
2802
|
-
var
|
2807
|
+
var m = g(i, this.clonePosition());
|
2808
|
+
if (a && et(a == null ? void 0 : a.style, "::", 0)) {
|
2809
|
+
var v = un(a.style.slice(2));
|
2803
2810
|
if (u === "number") {
|
2804
|
-
var
|
2805
|
-
return
|
2806
|
-
val: { type:
|
2811
|
+
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
2812
|
+
return f.err ? f : {
|
2813
|
+
val: { type: E.number, value: n, location: m, style: f.val },
|
2807
2814
|
err: null
|
2808
2815
|
};
|
2809
2816
|
} else {
|
2810
|
-
if (
|
2811
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
2812
|
-
var
|
2813
|
-
this.locale && (
|
2814
|
-
var
|
2817
|
+
if (v.length === 0)
|
2818
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
2819
|
+
var T = v;
|
2820
|
+
this.locale && (T = Wr(v, this.locale));
|
2821
|
+
var c = {
|
2815
2822
|
type: V.dateTime,
|
2816
|
-
pattern:
|
2817
|
-
location:
|
2818
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2819
|
-
},
|
2823
|
+
pattern: T,
|
2824
|
+
location: a.styleLocation,
|
2825
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(T) : {}
|
2826
|
+
}, w = u === "date" ? E.date : E.time;
|
2820
2827
|
return {
|
2821
|
-
val: { type:
|
2828
|
+
val: { type: w, value: n, location: m, style: c },
|
2822
2829
|
err: null
|
2823
2830
|
};
|
2824
2831
|
}
|
2825
2832
|
}
|
2826
2833
|
return {
|
2827
2834
|
val: {
|
2828
|
-
type: u === "number" ?
|
2835
|
+
type: u === "number" ? E.number : u === "date" ? E.date : E.time,
|
2829
2836
|
value: n,
|
2830
|
-
location:
|
2831
|
-
style: (o =
|
2837
|
+
location: m,
|
2838
|
+
style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
|
2832
2839
|
},
|
2833
2840
|
err: null
|
2834
2841
|
};
|
@@ -2836,49 +2843,49 @@ var un = (
|
|
2836
2843
|
case "plural":
|
2837
2844
|
case "selectordinal":
|
2838
2845
|
case "select": {
|
2839
|
-
var
|
2846
|
+
var P = this.clonePosition();
|
2840
2847
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2841
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
2848
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P, d({}, P)));
|
2842
2849
|
this.bumpSpace();
|
2843
|
-
var
|
2844
|
-
if (u !== "select" &&
|
2850
|
+
var A = this.parseIdentifierIfPossible(), S = 0;
|
2851
|
+
if (u !== "select" && A.value === "offset") {
|
2845
2852
|
if (!this.bumpIf(":"))
|
2846
2853
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
2847
2854
|
this.bumpSpace();
|
2848
|
-
var
|
2849
|
-
if (
|
2850
|
-
return
|
2851
|
-
this.bumpSpace(),
|
2855
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2856
|
+
if (f.err)
|
2857
|
+
return f;
|
2858
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), S = f.val;
|
2852
2859
|
}
|
2853
|
-
var O = this.tryParsePluralOrSelectOptions(t, u, r,
|
2860
|
+
var O = this.tryParsePluralOrSelectOptions(t, u, r, A);
|
2854
2861
|
if (O.err)
|
2855
2862
|
return O;
|
2856
2863
|
var y = this.tryParseArgumentClose(i);
|
2857
2864
|
if (y.err)
|
2858
2865
|
return y;
|
2859
|
-
var
|
2866
|
+
var F = g(i, this.clonePosition());
|
2860
2867
|
return u === "select" ? {
|
2861
2868
|
val: {
|
2862
|
-
type:
|
2869
|
+
type: E.select,
|
2863
2870
|
value: n,
|
2864
2871
|
options: tt(O.val),
|
2865
|
-
location:
|
2872
|
+
location: F
|
2866
2873
|
},
|
2867
2874
|
err: null
|
2868
2875
|
} : {
|
2869
2876
|
val: {
|
2870
|
-
type:
|
2877
|
+
type: E.plural,
|
2871
2878
|
value: n,
|
2872
2879
|
options: tt(O.val),
|
2873
|
-
offset:
|
2880
|
+
offset: S,
|
2874
2881
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
2875
|
-
location:
|
2882
|
+
location: F
|
2876
2883
|
},
|
2877
2884
|
err: null
|
2878
2885
|
};
|
2879
2886
|
}
|
2880
2887
|
default:
|
2881
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, g(
|
2888
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, h));
|
2882
2889
|
}
|
2883
2890
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2884
2891
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2920,7 +2927,7 @@ var un = (
|
|
2920
2927
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2921
2928
|
var n = [];
|
2922
2929
|
try {
|
2923
|
-
n =
|
2930
|
+
n = kr(t);
|
2924
2931
|
} catch (i) {
|
2925
2932
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
2926
2933
|
}
|
@@ -2929,55 +2936,55 @@ var un = (
|
|
2929
2936
|
type: V.number,
|
2930
2937
|
tokens: n,
|
2931
2938
|
location: r,
|
2932
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
|
2933
2940
|
},
|
2934
2941
|
err: null
|
2935
2942
|
};
|
2936
2943
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2937
|
-
for (var o,
|
2938
|
-
if (
|
2939
|
-
var
|
2944
|
+
for (var o, s = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
2945
|
+
if (a.length === 0) {
|
2946
|
+
var f = this.clonePosition();
|
2940
2947
|
if (r !== "select" && this.bumpIf("=")) {
|
2941
|
-
var
|
2942
|
-
if (
|
2943
|
-
return
|
2944
|
-
l = g(
|
2948
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2949
|
+
if (c.err)
|
2950
|
+
return c;
|
2951
|
+
l = g(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
2945
2952
|
} else
|
2946
2953
|
break;
|
2947
2954
|
}
|
2948
|
-
if (h.has(
|
2955
|
+
if (h.has(a))
|
2949
2956
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2950
|
-
|
2957
|
+
a === "other" && (s = !0), this.bumpSpace();
|
2951
2958
|
var b = this.clonePosition();
|
2952
2959
|
if (!this.bumpIf("{"))
|
2953
2960
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
2954
2961
|
var y = this.parseMessage(t + 1, r, n);
|
2955
2962
|
if (y.err)
|
2956
2963
|
return y;
|
2957
|
-
var
|
2958
|
-
if (
|
2959
|
-
return
|
2964
|
+
var m = this.tryParseArgumentClose(b);
|
2965
|
+
if (m.err)
|
2966
|
+
return m;
|
2960
2967
|
u.push([
|
2961
|
-
|
2968
|
+
a,
|
2962
2969
|
{
|
2963
2970
|
value: y.val,
|
2964
2971
|
location: g(b, this.clonePosition())
|
2965
2972
|
}
|
2966
|
-
]), h.add(
|
2973
|
+
]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, l = o.location;
|
2967
2974
|
}
|
2968
|
-
return u.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
2975
|
+
return u.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
2969
2976
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2970
2977
|
var n = 1, i = this.clonePosition();
|
2971
2978
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
2972
|
-
for (var o = !1,
|
2979
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
2973
2980
|
var u = this.char();
|
2974
2981
|
if (u >= 48 && u <= 57)
|
2975
|
-
o = !0,
|
2982
|
+
o = !0, s = s * 10 + (u - 48), this.bump();
|
2976
2983
|
else
|
2977
2984
|
break;
|
2978
2985
|
}
|
2979
2986
|
var h = g(i, this.clonePosition());
|
2980
|
-
return o ? (
|
2987
|
+
return o ? (s *= n, an(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
2981
2988
|
}, e.prototype.offset = function() {
|
2982
2989
|
return this.position.offset;
|
2983
2990
|
}, e.prototype.isEOF = function() {
|
@@ -3043,46 +3050,46 @@ var un = (
|
|
3043
3050
|
}, e;
|
3044
3051
|
}()
|
3045
3052
|
);
|
3046
|
-
function
|
3053
|
+
function Le(e) {
|
3047
3054
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3048
3055
|
}
|
3049
|
-
function
|
3050
|
-
return
|
3056
|
+
function fn(e) {
|
3057
|
+
return Le(e) || e === 47;
|
3051
3058
|
}
|
3052
|
-
function
|
3059
|
+
function cn(e) {
|
3053
3060
|
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;
|
3054
3061
|
}
|
3055
3062
|
function Ot(e) {
|
3056
3063
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3057
3064
|
}
|
3058
|
-
function
|
3065
|
+
function mn(e) {
|
3059
3066
|
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;
|
3060
3067
|
}
|
3061
|
-
function
|
3068
|
+
function Ce(e) {
|
3062
3069
|
e.forEach(function(t) {
|
3063
|
-
if (delete t.location,
|
3070
|
+
if (delete t.location, vt(t) || _t(t))
|
3064
3071
|
for (var r in t.options)
|
3065
|
-
delete t.options[r].location,
|
3066
|
-
else xt(t) && Tt(t.style) || (yt(t) ||
|
3072
|
+
delete t.options[r].location, Ce(t.options[r].value);
|
3073
|
+
else xt(t) && Tt(t.style) || (yt(t) || Et(t)) && we(t.style) ? delete t.style.location : Ht(t) && Ce(t.children);
|
3067
3074
|
});
|
3068
3075
|
}
|
3069
|
-
function
|
3076
|
+
function pn(e, t) {
|
3070
3077
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3071
|
-
var r = new
|
3078
|
+
var r = new ln(e, t).parse();
|
3072
3079
|
if (r.err) {
|
3073
3080
|
var n = SyntaxError(p[r.err.kind]);
|
3074
3081
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3075
3082
|
}
|
3076
|
-
return t != null && t.captureLocation ||
|
3083
|
+
return t != null && t.captureLocation || Ce(r.val), r.val;
|
3077
3084
|
}
|
3078
3085
|
var X;
|
3079
3086
|
(function(e) {
|
3080
3087
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3081
3088
|
})(X || (X = {}));
|
3082
|
-
var
|
3089
|
+
var me = (
|
3083
3090
|
/** @class */
|
3084
3091
|
function(e) {
|
3085
|
-
|
3092
|
+
ce(t, e);
|
3086
3093
|
function t(r, n, i) {
|
3087
3094
|
var o = e.call(this, r) || this;
|
3088
3095
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3094,152 +3101,152 @@ var ce = (
|
|
3094
3101
|
), nt = (
|
3095
3102
|
/** @class */
|
3096
3103
|
function(e) {
|
3097
|
-
|
3104
|
+
ce(t, e);
|
3098
3105
|
function t(r, n, i, o) {
|
3099
3106
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
3100
3107
|
}
|
3101
3108
|
return t;
|
3102
|
-
}(
|
3103
|
-
),
|
3109
|
+
}(me)
|
3110
|
+
), gn = (
|
3104
3111
|
/** @class */
|
3105
3112
|
function(e) {
|
3106
|
-
|
3113
|
+
ce(t, e);
|
3107
3114
|
function t(r, n, i) {
|
3108
3115
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
3109
3116
|
}
|
3110
3117
|
return t;
|
3111
|
-
}(
|
3112
|
-
),
|
3118
|
+
}(me)
|
3119
|
+
), dn = (
|
3113
3120
|
/** @class */
|
3114
3121
|
function(e) {
|
3115
|
-
|
3122
|
+
ce(t, e);
|
3116
3123
|
function t(r, n) {
|
3117
3124
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
3118
3125
|
}
|
3119
3126
|
return t;
|
3120
|
-
}(
|
3121
|
-
),
|
3127
|
+
}(me)
|
3128
|
+
), H;
|
3122
3129
|
(function(e) {
|
3123
3130
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3124
|
-
})(
|
3125
|
-
function
|
3131
|
+
})(H || (H = {}));
|
3132
|
+
function bn(e) {
|
3126
3133
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3127
3134
|
var n = t[t.length - 1];
|
3128
|
-
return !n || n.type !==
|
3135
|
+
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3129
3136
|
}, []);
|
3130
3137
|
}
|
3131
|
-
function
|
3138
|
+
function xn(e) {
|
3132
3139
|
return typeof e == "function";
|
3133
3140
|
}
|
3134
|
-
function
|
3141
|
+
function se(e, t, r, n, i, o, s) {
|
3135
3142
|
if (e.length === 1 && qe(e[0]))
|
3136
3143
|
return [
|
3137
3144
|
{
|
3138
|
-
type:
|
3145
|
+
type: H.literal,
|
3139
3146
|
value: e[0].value
|
3140
3147
|
}
|
3141
3148
|
];
|
3142
|
-
for (var u = [], h = 0,
|
3143
|
-
var l =
|
3149
|
+
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
3150
|
+
var l = a[h];
|
3144
3151
|
if (qe(l)) {
|
3145
3152
|
u.push({
|
3146
|
-
type:
|
3153
|
+
type: H.literal,
|
3147
3154
|
value: l.value
|
3148
3155
|
});
|
3149
3156
|
continue;
|
3150
3157
|
}
|
3151
|
-
if (
|
3158
|
+
if (Gr(l)) {
|
3152
3159
|
typeof o == "number" && u.push({
|
3153
|
-
type:
|
3160
|
+
type: H.literal,
|
3154
3161
|
value: r.getNumberFormat(t).format(o)
|
3155
3162
|
});
|
3156
3163
|
continue;
|
3157
3164
|
}
|
3158
|
-
var
|
3159
|
-
if (!(i &&
|
3160
|
-
throw new
|
3161
|
-
var
|
3162
|
-
if (
|
3163
|
-
(!
|
3164
|
-
type: typeof
|
3165
|
-
value:
|
3165
|
+
var f = l.value;
|
3166
|
+
if (!(i && f in i))
|
3167
|
+
throw new dn(f, s);
|
3168
|
+
var c = i[f];
|
3169
|
+
if (Fr(l)) {
|
3170
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
3171
|
+
type: typeof c == "string" ? H.literal : H.object,
|
3172
|
+
value: c
|
3166
3173
|
});
|
3167
3174
|
continue;
|
3168
3175
|
}
|
3169
3176
|
if (yt(l)) {
|
3170
|
-
var b = typeof l.style == "string" ? n.date[l.style] :
|
3177
|
+
var b = typeof l.style == "string" ? n.date[l.style] : we(l.style) ? l.style.parsedOptions : void 0;
|
3171
3178
|
u.push({
|
3172
|
-
type:
|
3173
|
-
value: r.getDateTimeFormat(t, b).format(
|
3179
|
+
type: H.literal,
|
3180
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
3174
3181
|
});
|
3175
3182
|
continue;
|
3176
3183
|
}
|
3177
|
-
if (
|
3178
|
-
var b = typeof l.style == "string" ? n.time[l.style] :
|
3184
|
+
if (Et(l)) {
|
3185
|
+
var b = typeof l.style == "string" ? n.time[l.style] : we(l.style) ? l.style.parsedOptions : n.time.medium;
|
3179
3186
|
u.push({
|
3180
|
-
type:
|
3181
|
-
value: r.getDateTimeFormat(t, b).format(
|
3187
|
+
type: H.literal,
|
3188
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
3182
3189
|
});
|
3183
3190
|
continue;
|
3184
3191
|
}
|
3185
3192
|
if (xt(l)) {
|
3186
3193
|
var b = typeof l.style == "string" ? n.number[l.style] : Tt(l.style) ? l.style.parsedOptions : void 0;
|
3187
|
-
b && b.scale && (
|
3188
|
-
type:
|
3189
|
-
value: r.getNumberFormat(t, b).format(
|
3194
|
+
b && b.scale && (c = c * (b.scale || 1)), u.push({
|
3195
|
+
type: H.literal,
|
3196
|
+
value: r.getNumberFormat(t, b).format(c)
|
3190
3197
|
});
|
3191
3198
|
continue;
|
3192
3199
|
}
|
3193
3200
|
if (Ht(l)) {
|
3194
|
-
var y = l.children,
|
3195
|
-
if (!
|
3196
|
-
throw new
|
3197
|
-
var
|
3198
|
-
return
|
3201
|
+
var y = l.children, m = l.value, v = i[m];
|
3202
|
+
if (!xn(v))
|
3203
|
+
throw new gn(m, "function", s);
|
3204
|
+
var T = se(y, t, r, n, i, o), w = v(T.map(function(S) {
|
3205
|
+
return S.value;
|
3199
3206
|
}));
|
3200
|
-
Array.isArray(
|
3207
|
+
Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(S) {
|
3201
3208
|
return {
|
3202
|
-
type: typeof
|
3203
|
-
value:
|
3209
|
+
type: typeof S == "string" ? H.literal : H.object,
|
3210
|
+
value: S
|
3204
3211
|
};
|
3205
3212
|
}));
|
3206
3213
|
}
|
3207
|
-
if (
|
3208
|
-
var
|
3209
|
-
if (!
|
3210
|
-
throw new nt(l.value,
|
3211
|
-
u.push.apply(u,
|
3214
|
+
if (vt(l)) {
|
3215
|
+
var P = l.options[c] || l.options.other;
|
3216
|
+
if (!P)
|
3217
|
+
throw new nt(l.value, c, Object.keys(l.options), s);
|
3218
|
+
u.push.apply(u, se(P.value, t, r, n, i));
|
3212
3219
|
continue;
|
3213
3220
|
}
|
3214
3221
|
if (_t(l)) {
|
3215
|
-
var
|
3216
|
-
if (!
|
3222
|
+
var P = l.options["=".concat(c)];
|
3223
|
+
if (!P) {
|
3217
3224
|
if (!Intl.PluralRules)
|
3218
|
-
throw new
|
3225
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
3219
3226
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3220
|
-
`, X.MISSING_INTL_API,
|
3221
|
-
var
|
3222
|
-
|
3227
|
+
`, X.MISSING_INTL_API, s);
|
3228
|
+
var A = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3229
|
+
P = l.options[A] || l.options.other;
|
3223
3230
|
}
|
3224
|
-
if (!
|
3225
|
-
throw new nt(l.value,
|
3226
|
-
u.push.apply(u,
|
3231
|
+
if (!P)
|
3232
|
+
throw new nt(l.value, c, Object.keys(l.options), s);
|
3233
|
+
u.push.apply(u, se(P.value, t, r, n, i, c - (l.offset || 0)));
|
3227
3234
|
continue;
|
3228
3235
|
}
|
3229
3236
|
}
|
3230
|
-
return
|
3237
|
+
return bn(u);
|
3231
3238
|
}
|
3232
|
-
function
|
3239
|
+
function yn(e, t) {
|
3233
3240
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3234
3241
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3235
3242
|
}, {})) : e;
|
3236
3243
|
}
|
3237
|
-
function
|
3244
|
+
function En(e, t) {
|
3238
3245
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3239
|
-
return r[n] =
|
3246
|
+
return r[n] = yn(e[n], t[n]), r;
|
3240
3247
|
}, d({}, e)) : e;
|
3241
3248
|
}
|
3242
|
-
function
|
3249
|
+
function Te(e) {
|
3243
3250
|
return {
|
3244
3251
|
create: function() {
|
3245
3252
|
return {
|
@@ -3253,7 +3260,7 @@ function He(e) {
|
|
3253
3260
|
}
|
3254
3261
|
};
|
3255
3262
|
}
|
3256
|
-
function
|
3263
|
+
function vn(e) {
|
3257
3264
|
return e === void 0 && (e = {
|
3258
3265
|
number: {},
|
3259
3266
|
dateTime: {},
|
@@ -3262,30 +3269,30 @@ function yn(e) {
|
|
3262
3269
|
getNumberFormat: ve(function() {
|
3263
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3264
3271
|
r[n] = arguments[n];
|
3265
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3272
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
3266
3273
|
}, {
|
3267
|
-
cache:
|
3268
|
-
strategy:
|
3274
|
+
cache: Te(e.number),
|
3275
|
+
strategy: _e.variadic
|
3269
3276
|
}),
|
3270
3277
|
getDateTimeFormat: ve(function() {
|
3271
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3272
3279
|
r[n] = arguments[n];
|
3273
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3280
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
3274
3281
|
}, {
|
3275
|
-
cache:
|
3276
|
-
strategy:
|
3282
|
+
cache: Te(e.dateTime),
|
3283
|
+
strategy: _e.variadic
|
3277
3284
|
}),
|
3278
3285
|
getPluralRules: ve(function() {
|
3279
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3280
3287
|
r[n] = arguments[n];
|
3281
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3288
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
3282
3289
|
}, {
|
3283
|
-
cache:
|
3284
|
-
strategy:
|
3290
|
+
cache: Te(e.pluralRules),
|
3291
|
+
strategy: _e.variadic
|
3285
3292
|
})
|
3286
3293
|
};
|
3287
3294
|
}
|
3288
|
-
var
|
3295
|
+
var _n = (
|
3289
3296
|
/** @class */
|
3290
3297
|
function() {
|
3291
3298
|
function e(t, r, n, i) {
|
@@ -3296,15 +3303,15 @@ var vn = (
|
|
3296
3303
|
dateTime: {},
|
3297
3304
|
pluralRules: {}
|
3298
3305
|
}, this.format = function(h) {
|
3299
|
-
var
|
3300
|
-
if (
|
3301
|
-
return
|
3302
|
-
var l =
|
3303
|
-
return !
|
3306
|
+
var a = o.formatToParts(h);
|
3307
|
+
if (a.length === 1)
|
3308
|
+
return a[0].value;
|
3309
|
+
var l = a.reduce(function(f, c) {
|
3310
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3304
3311
|
}, []);
|
3305
3312
|
return l.length <= 1 ? l[0] || "" : l;
|
3306
3313
|
}, this.formatToParts = function(h) {
|
3307
|
-
return
|
3314
|
+
return se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3308
3315
|
}, this.resolvedOptions = function() {
|
3309
3316
|
var h;
|
3310
3317
|
return {
|
@@ -3315,15 +3322,15 @@ var vn = (
|
|
3315
3322
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3316
3323
|
if (this.message = t, !e.__parse)
|
3317
3324
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3318
|
-
var
|
3319
|
-
|
3320
|
-
var u =
|
3325
|
+
var s = i || {};
|
3326
|
+
s.formatters;
|
3327
|
+
var u = wr(s, ["formatters"]);
|
3321
3328
|
this.ast = e.__parse(t, d(d({}, u), { locale: this.resolvedLocale }));
|
3322
3329
|
} else
|
3323
3330
|
this.ast = t;
|
3324
3331
|
if (!Array.isArray(this.ast))
|
3325
3332
|
throw new TypeError("A message must be provided as a String or AST.");
|
3326
|
-
this.formats =
|
3333
|
+
this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
3327
3334
|
}
|
3328
3335
|
return Object.defineProperty(e, "defaultLocale", {
|
3329
3336
|
get: function() {
|
@@ -3336,7 +3343,7 @@ var vn = (
|
|
3336
3343
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3337
3344
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3338
3345
|
}
|
3339
|
-
}, e.__parse =
|
3346
|
+
}, e.__parse = pn, e.formats = {
|
3340
3347
|
number: {
|
3341
3348
|
integer: {
|
3342
3349
|
maximumFractionDigits: 0
|
@@ -3397,7 +3404,7 @@ var vn = (
|
|
3397
3404
|
}, e;
|
3398
3405
|
}()
|
3399
3406
|
);
|
3400
|
-
function
|
3407
|
+
function Hn(e, t) {
|
3401
3408
|
if (t == null)
|
3402
3409
|
return;
|
3403
3410
|
if (t in e)
|
@@ -3418,36 +3425,36 @@ function En(e, t) {
|
|
3418
3425
|
n = void 0;
|
3419
3426
|
return n;
|
3420
3427
|
}
|
3421
|
-
const M = {},
|
3428
|
+
const M = {}, Tn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), It = (e, t) => {
|
3422
3429
|
if (t == null)
|
3423
3430
|
return;
|
3424
3431
|
if (t in M && e in M[t])
|
3425
3432
|
return M[t][e];
|
3426
|
-
const r =
|
3433
|
+
const r = pe(t);
|
3427
3434
|
for (let n = 0; n < r.length; n++) {
|
3428
|
-
const i = r[n], o =
|
3435
|
+
const i = r[n], o = Sn(i, e);
|
3429
3436
|
if (o)
|
3430
|
-
return
|
3437
|
+
return Tn(e, t, o);
|
3431
3438
|
}
|
3432
3439
|
};
|
3433
3440
|
let De;
|
3434
|
-
const
|
3435
|
-
function
|
3441
|
+
const ne = fe({});
|
3442
|
+
function Pn(e) {
|
3436
3443
|
return De[e] || null;
|
3437
3444
|
}
|
3438
3445
|
function Mt(e) {
|
3439
3446
|
return e in De;
|
3440
3447
|
}
|
3441
|
-
function
|
3448
|
+
function Sn(e, t) {
|
3442
3449
|
if (!Mt(e))
|
3443
3450
|
return null;
|
3444
|
-
const r =
|
3445
|
-
return
|
3451
|
+
const r = Pn(e);
|
3452
|
+
return Hn(r, t);
|
3446
3453
|
}
|
3447
|
-
function
|
3454
|
+
function Nn(e) {
|
3448
3455
|
if (e == null)
|
3449
3456
|
return;
|
3450
|
-
const t =
|
3457
|
+
const t = pe(e);
|
3451
3458
|
for (let r = 0; r < t.length; r++) {
|
3452
3459
|
const n = t[r];
|
3453
3460
|
if (Mt(n))
|
@@ -3455,55 +3462,55 @@ function Pn(e) {
|
|
3455
3462
|
}
|
3456
3463
|
}
|
3457
3464
|
function Lt(e, ...t) {
|
3458
|
-
delete M[e],
|
3465
|
+
delete M[e], ne.update((r) => (r[e] = Br.all([r[e] || {}, ...t]), r));
|
3459
3466
|
}
|
3460
3467
|
Z(
|
3461
|
-
[
|
3468
|
+
[ne],
|
3462
3469
|
([e]) => Object.keys(e)
|
3463
3470
|
);
|
3464
|
-
|
3465
|
-
const
|
3466
|
-
function
|
3467
|
-
|
3471
|
+
ne.subscribe((e) => De = e);
|
3472
|
+
const ue = {};
|
3473
|
+
function An(e, t) {
|
3474
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
3468
3475
|
}
|
3469
3476
|
function Ct(e) {
|
3470
|
-
return
|
3477
|
+
return ue[e];
|
3471
3478
|
}
|
3472
|
-
function
|
3473
|
-
return
|
3479
|
+
function Bn(e) {
|
3480
|
+
return pe(e).map((t) => {
|
3474
3481
|
const r = Ct(t);
|
3475
3482
|
return [t, r ? [...r] : []];
|
3476
3483
|
}).filter(([, t]) => t.length > 0);
|
3477
3484
|
}
|
3478
|
-
function
|
3479
|
-
return e == null ? !1 :
|
3485
|
+
function $e(e) {
|
3486
|
+
return e == null ? !1 : pe(e).some(
|
3480
3487
|
(t) => {
|
3481
3488
|
var r;
|
3482
3489
|
return (r = Ct(t)) == null ? void 0 : r.size;
|
3483
3490
|
}
|
3484
3491
|
);
|
3485
3492
|
}
|
3486
|
-
function
|
3493
|
+
function wn(e, t) {
|
3487
3494
|
return Promise.all(
|
3488
|
-
t.map((n) => (
|
3495
|
+
t.map((n) => (An(e, n), n().then((i) => i.default || i)))
|
3489
3496
|
).then((n) => Lt(e, ...n));
|
3490
3497
|
}
|
3491
3498
|
const J = {};
|
3492
3499
|
function $t(e) {
|
3493
|
-
if (
|
3500
|
+
if (!$e(e))
|
3494
3501
|
return e in J ? J[e] : Promise.resolve();
|
3495
|
-
const t =
|
3502
|
+
const t = Bn(e);
|
3496
3503
|
return J[e] = Promise.all(
|
3497
3504
|
t.map(
|
3498
|
-
([r, n]) =>
|
3505
|
+
([r, n]) => wn(r, n)
|
3499
3506
|
)
|
3500
3507
|
).then(() => {
|
3501
|
-
if (
|
3508
|
+
if ($e(e))
|
3502
3509
|
return $t(e);
|
3503
3510
|
delete J[e];
|
3504
3511
|
}), J[e];
|
3505
3512
|
}
|
3506
|
-
const
|
3513
|
+
const On = {
|
3507
3514
|
number: {
|
3508
3515
|
scientific: { notation: "scientific" },
|
3509
3516
|
engineering: { notation: "engineering" },
|
@@ -3532,175 +3539,175 @@ const Bn = {
|
|
3532
3539
|
timeZoneName: "short"
|
3533
3540
|
}
|
3534
3541
|
}
|
3535
|
-
},
|
3542
|
+
}, In = {
|
3536
3543
|
fallbackLocale: null,
|
3537
3544
|
loadingDelay: 200,
|
3538
|
-
formats:
|
3545
|
+
formats: On,
|
3539
3546
|
warnOnMissingMessages: !0,
|
3540
3547
|
handleMissingMessage: void 0,
|
3541
3548
|
ignoreTag: !0
|
3542
|
-
},
|
3549
|
+
}, Mn = In;
|
3543
3550
|
function z() {
|
3544
|
-
return
|
3551
|
+
return Mn;
|
3545
3552
|
}
|
3546
|
-
const
|
3547
|
-
var
|
3553
|
+
const Pe = fe(!1);
|
3554
|
+
var Ln = Object.defineProperty, Cn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3548
3555
|
for (var r in t || (t = {}))
|
3549
|
-
|
3556
|
+
Rn.call(t, r) && ot(e, r, t[r]);
|
3550
3557
|
if (it)
|
3551
3558
|
for (var r of it(t))
|
3552
|
-
|
3559
|
+
Fn.call(t, r) && ot(e, r, t[r]);
|
3553
3560
|
return e;
|
3554
|
-
},
|
3555
|
-
let
|
3556
|
-
const
|
3561
|
+
}, Dn = (e, t) => Cn(e, $n(t));
|
3562
|
+
let Re;
|
3563
|
+
const he = fe(null);
|
3557
3564
|
function at(e) {
|
3558
3565
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3559
3566
|
}
|
3560
|
-
function
|
3567
|
+
function pe(e, t = z().fallbackLocale) {
|
3561
3568
|
const r = at(e);
|
3562
3569
|
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
3563
3570
|
}
|
3564
|
-
function
|
3565
|
-
return
|
3571
|
+
function R() {
|
3572
|
+
return Re != null ? Re : void 0;
|
3566
3573
|
}
|
3567
|
-
|
3568
|
-
|
3574
|
+
he.subscribe((e) => {
|
3575
|
+
Re = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3569
3576
|
});
|
3570
|
-
const
|
3571
|
-
if (e &&
|
3577
|
+
const Un = (e) => {
|
3578
|
+
if (e && Nn(e) && $e(e)) {
|
3572
3579
|
const { loadingDelay: t } = z();
|
3573
3580
|
let r;
|
3574
|
-
return typeof window != "undefined" &&
|
3575
|
-
() =>
|
3581
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
3582
|
+
() => Pe.set(!0),
|
3576
3583
|
t
|
3577
|
-
) :
|
3578
|
-
|
3584
|
+
) : Pe.set(!0), $t(e).then(() => {
|
3585
|
+
he.set(e);
|
3579
3586
|
}).finally(() => {
|
3580
|
-
clearTimeout(r),
|
3587
|
+
clearTimeout(r), Pe.set(!1);
|
3581
3588
|
});
|
3582
3589
|
}
|
3583
|
-
return
|
3584
|
-
}, W =
|
3585
|
-
set:
|
3586
|
-
}),
|
3590
|
+
return he.set(e);
|
3591
|
+
}, W = Dn(Gn({}, he), {
|
3592
|
+
set: Un
|
3593
|
+
}), ge = (e) => {
|
3587
3594
|
const t = /* @__PURE__ */ Object.create(null);
|
3588
3595
|
return (n) => {
|
3589
3596
|
const i = JSON.stringify(n);
|
3590
3597
|
return i in t ? t[i] : t[i] = e(n);
|
3591
3598
|
};
|
3592
3599
|
};
|
3593
|
-
var
|
3600
|
+
var jn = Object.defineProperty, le = Object.getOwnPropertySymbols, Rt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
3594
3601
|
for (var r in t || (t = {}))
|
3595
3602
|
Rt.call(t, r) && st(e, r, t[r]);
|
3596
|
-
if (
|
3597
|
-
for (var r of
|
3603
|
+
if (le)
|
3604
|
+
for (var r of le(t))
|
3598
3605
|
Ft.call(t, r) && st(e, r, t[r]);
|
3599
3606
|
return e;
|
3600
3607
|
}, Q = (e, t) => {
|
3601
3608
|
var r = {};
|
3602
3609
|
for (var n in e)
|
3603
3610
|
Rt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3604
|
-
if (e != null &&
|
3605
|
-
for (var n of
|
3611
|
+
if (e != null && le)
|
3612
|
+
for (var n of le(e))
|
3606
3613
|
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
3607
3614
|
return r;
|
3608
3615
|
};
|
3609
|
-
const
|
3616
|
+
const te = (e, t) => {
|
3610
3617
|
const { formats: r } = z();
|
3611
3618
|
if (e in r && t in r[e])
|
3612
3619
|
return r[e][t];
|
3613
3620
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3614
|
-
},
|
3621
|
+
}, kn = ge(
|
3615
3622
|
(e) => {
|
3616
3623
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
3617
3624
|
if (r == null)
|
3618
3625
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3619
|
-
return n && (i =
|
3626
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
3620
3627
|
}
|
3621
|
-
),
|
3628
|
+
), Vn = ge(
|
3622
3629
|
(e) => {
|
3623
3630
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
3624
3631
|
if (r == null)
|
3625
3632
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3626
|
-
return n ? i =
|
3633
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
3627
3634
|
}
|
3628
|
-
),
|
3635
|
+
), Xn = ge(
|
3629
3636
|
(e) => {
|
3630
3637
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
3631
3638
|
if (r == null)
|
3632
3639
|
throw new Error(
|
3633
3640
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3634
3641
|
);
|
3635
|
-
return n ? i =
|
3642
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
3636
3643
|
}
|
3637
|
-
),
|
3644
|
+
), zn = (e = {}) => {
|
3638
3645
|
var t = e, {
|
3639
|
-
locale: r =
|
3646
|
+
locale: r = R()
|
3640
3647
|
} = t, n = Q(t, [
|
3641
3648
|
"locale"
|
3642
3649
|
]);
|
3643
|
-
return
|
3644
|
-
},
|
3650
|
+
return kn(Ue({ locale: r }, n));
|
3651
|
+
}, Zn = (e = {}) => {
|
3645
3652
|
var t = e, {
|
3646
|
-
locale: r =
|
3653
|
+
locale: r = R()
|
3647
3654
|
} = t, n = Q(t, [
|
3648
3655
|
"locale"
|
3649
3656
|
]);
|
3650
|
-
return
|
3651
|
-
},
|
3657
|
+
return Vn(Ue({ locale: r }, n));
|
3658
|
+
}, Wn = (e = {}) => {
|
3652
3659
|
var t = e, {
|
3653
|
-
locale: r =
|
3660
|
+
locale: r = R()
|
3654
3661
|
} = t, n = Q(t, [
|
3655
3662
|
"locale"
|
3656
3663
|
]);
|
3657
|
-
return
|
3658
|
-
},
|
3664
|
+
return Xn(Ue({ locale: r }, n));
|
3665
|
+
}, Qn = ge(
|
3659
3666
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3660
|
-
(e, t =
|
3667
|
+
(e, t = R()) => new _n(e, t, z().formats, {
|
3661
3668
|
ignoreTag: z().ignoreTag
|
3662
3669
|
})
|
3663
|
-
),
|
3670
|
+
), qn = (e, t = {}) => {
|
3664
3671
|
var r, n, i, o;
|
3665
|
-
let
|
3666
|
-
typeof e == "object" && (
|
3672
|
+
let s = t;
|
3673
|
+
typeof e == "object" && (s = e, e = s.id);
|
3667
3674
|
const {
|
3668
3675
|
values: u,
|
3669
|
-
locale: h =
|
3670
|
-
default:
|
3671
|
-
} =
|
3676
|
+
locale: h = R(),
|
3677
|
+
default: a
|
3678
|
+
} = s;
|
3672
3679
|
if (h == null)
|
3673
3680
|
throw new Error(
|
3674
3681
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3675
3682
|
);
|
3676
3683
|
let l = It(e, h);
|
3677
3684
|
if (!l)
|
3678
|
-
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue:
|
3685
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
3679
3686
|
else if (typeof l != "string")
|
3680
3687
|
return console.warn(
|
3681
3688
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3682
3689
|
), l;
|
3683
3690
|
if (!u)
|
3684
3691
|
return l;
|
3685
|
-
let
|
3692
|
+
let f = l;
|
3686
3693
|
try {
|
3687
|
-
|
3688
|
-
} catch (
|
3689
|
-
|
3694
|
+
f = Qn(l, h).format(u);
|
3695
|
+
} catch (c) {
|
3696
|
+
c instanceof Error && console.warn(
|
3690
3697
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
3691
|
-
|
3698
|
+
c.message
|
3692
3699
|
);
|
3693
3700
|
}
|
3694
|
-
return
|
3695
|
-
},
|
3696
|
-
Z([W], () => Qn);
|
3697
|
-
Z([W], () => qn);
|
3701
|
+
return f;
|
3702
|
+
}, Jn = (e, t) => Wn(t).format(e), Yn = (e, t) => Zn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = R()) => It(e, t), ti = Z([W, ne], () => qn);
|
3698
3703
|
Z([W], () => Jn);
|
3699
|
-
Z([W
|
3704
|
+
Z([W], () => Yn);
|
3705
|
+
Z([W], () => Kn);
|
3706
|
+
Z([W, ne], () => ei);
|
3700
3707
|
function ut(e, t) {
|
3701
3708
|
Lt(e, t);
|
3702
3709
|
}
|
3703
|
-
function
|
3710
|
+
function ri(e) {
|
3704
3711
|
W.set(e);
|
3705
3712
|
}
|
3706
3713
|
const ht = {
|
@@ -3795,150 +3802,172 @@ const ht = {
|
|
3795
3802
|
home: "Go to homepage"
|
3796
3803
|
}
|
3797
3804
|
};
|
3798
|
-
function
|
3799
|
-
|
3805
|
+
function ni(e, t) {
|
3806
|
+
if (e) {
|
3807
|
+
const r = document.createElement("style");
|
3808
|
+
r.innerHTML = t, e.appendChild(r);
|
3809
|
+
}
|
3800
3810
|
}
|
3801
|
-
function
|
3802
|
-
|
3811
|
+
function ii(e, t) {
|
3812
|
+
const r = new URL(t);
|
3813
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
3814
|
+
const i = document.createElement("style");
|
3815
|
+
i.innerHTML = n, e && e.appendChild(i);
|
3816
|
+
}).catch((n) => {
|
3817
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
3818
|
+
});
|
3819
|
+
}
|
3820
|
+
function oi(e, t, r) {
|
3821
|
+
if (window.emMessageBus) {
|
3822
|
+
const n = document.createElement("style");
|
3823
|
+
window.emMessageBus.subscribe(t, (i) => {
|
3824
|
+
n.innerHTML = i, e && e.appendChild(n);
|
3825
|
+
});
|
3826
|
+
}
|
3827
|
+
}
|
3828
|
+
function ai(e) {
|
3829
|
+
zt(e, "svelte-fokx9n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
|
3830
|
+
}
|
3831
|
+
function si(e) {
|
3832
|
+
let t, r, n, i, o, s, u, h, a, l, f, c, b = (
|
3803
3833
|
/*$_*/
|
3804
3834
|
e[1]("pageNotFound") + ""
|
3805
|
-
), y,
|
3835
|
+
), y, m, v, T = (
|
3806
3836
|
/*$_*/
|
3807
3837
|
e[1]("pageNotFoundMessage") + ""
|
3808
|
-
),
|
3838
|
+
), w, P, A, S = (
|
3809
3839
|
/*$_*/
|
3810
3840
|
e[1]("home") + ""
|
3811
|
-
), O,
|
3841
|
+
), O, F, je;
|
3812
3842
|
return {
|
3813
3843
|
c() {
|
3814
|
-
t = C("div"), r = C("div"), n = I("svg"), i = I("g"), o = I("path"),
|
3844
|
+
t = C("div"), r = C("div"), n = I("svg"), i = I("g"), o = I("path"), s = I("path"), u = I("path"), h = I("path"), a = I("path"), l = I("path"), f = be(), c = C("p"), y = oe(b), m = be(), v = C("p"), w = oe(T), P = be(), A = C("button"), O = oe(S), x(o, "class", "a"), x(o, "d", "M753.094,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,0,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.262,3.262,0,0,0-3.517,1.552l-14.483,26.9a3.305,3.305,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62H756.2Z"), x(o, "transform", "translate(-658.898 -446.452)"), x(s, "class", "a"), x(s, "d", "M508.259,555.422a11.346,11.346,0,0,0,11.379-11.379V522.319a11.379,11.379,0,1,0-22.757,0v21.725A11.346,11.346,0,0,0,508.259,555.422Zm-5.172-33.1a5.172,5.172,0,1,1,10.345,0v21.725a5.172,5.172,0,0,1-10.345,0Z"), x(s, "transform", "translate(-433.716 -446.252)"), x(u, "class", "a"), x(u, "d", "M237.474,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,1,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.2,3.2,0,0,0-3.517,1.552l-14.483,26.9a3.3,3.3,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62h-8.276Z"), x(u, "transform", "translate(-200.173 -446.452)"), x(h, "class", "a"), x(h, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), x(a, "class", "a"), x(a, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(a, "transform", "translate(-116.772 -116.794)"), x(l, "class", "a"), x(l, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(l, "transform", "translate(-250.22 -116.794)"), x(i, "transform", "translate(-9.37 -9.34)"), x(n, "class", "svgColor"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "130.345"), x(n, "height", "130.345"), x(n, "viewBox", "0 0 130.345 130.345"), x(c, "class", "PageTitle"), x(v, "class", "PageContent"), x(A, "class", "ButtonDefaultSmall"), x(r, "class", "NotFoundPage"), x(t, "class", "PageWrapper");
|
3815
3845
|
},
|
3816
3846
|
m(L, q) {
|
3817
|
-
mt(L, t, q),
|
3818
|
-
|
3847
|
+
mt(L, t, q), _(t, r), _(r, n), _(n, i), _(i, o), _(i, s), _(i, u), _(i, h), _(i, a), _(i, l), _(r, f), _(r, c), _(c, y), _(r, m), _(r, v), _(v, w), _(r, P), _(r, A), _(A, O), e[9](t), F || (je = Qt(
|
3848
|
+
A,
|
3819
3849
|
"click",
|
3820
3850
|
/*click_handler*/
|
3821
|
-
e[
|
3822
|
-
),
|
3851
|
+
e[8]
|
3852
|
+
), F = !0);
|
3823
3853
|
},
|
3824
3854
|
p(L, [q]) {
|
3825
3855
|
q & /*$_*/
|
3826
3856
|
2 && b !== (b = /*$_*/
|
3827
|
-
L[1]("pageNotFound") + "") &&
|
3828
|
-
2 &&
|
3829
|
-
L[1]("pageNotFoundMessage") + "") &&
|
3830
|
-
2 &&
|
3831
|
-
L[1]("home") + "") &&
|
3857
|
+
L[1]("pageNotFound") + "") && xe(y, b), q & /*$_*/
|
3858
|
+
2 && T !== (T = /*$_*/
|
3859
|
+
L[1]("pageNotFoundMessage") + "") && xe(w, T), q & /*$_*/
|
3860
|
+
2 && S !== (S = /*$_*/
|
3861
|
+
L[1]("home") + "") && xe(O, S);
|
3832
3862
|
},
|
3833
|
-
i:
|
3834
|
-
o:
|
3863
|
+
i: B,
|
3864
|
+
o: B,
|
3835
3865
|
d(L) {
|
3836
|
-
L &&
|
3866
|
+
L && Ge(t), e[9](null), F = !1, je();
|
3837
3867
|
}
|
3838
3868
|
};
|
3839
3869
|
}
|
3840
|
-
function
|
3870
|
+
function ui(e, t, r) {
|
3841
3871
|
let n;
|
3842
|
-
Xt(e,
|
3843
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl:
|
3844
|
-
const
|
3845
|
-
fetch(u).then((
|
3846
|
-
Object.keys(
|
3847
|
-
ut(T,
|
3872
|
+
Xt(e, ti, (m) => r(1, n = m));
|
3873
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, a;
|
3874
|
+
const l = () => {
|
3875
|
+
fetch(u).then((v) => v.json()).then((v) => {
|
3876
|
+
Object.keys(v).forEach((T) => {
|
3877
|
+
ut(T, v[T]);
|
3848
3878
|
});
|
3849
|
-
}).catch((
|
3850
|
-
console.log(
|
3879
|
+
}).catch((v) => {
|
3880
|
+
console.log(v);
|
3851
3881
|
});
|
3852
3882
|
};
|
3853
3883
|
Object.keys(ht).forEach((m) => {
|
3854
3884
|
ut(m, ht[m]);
|
3855
3885
|
});
|
3856
|
-
const
|
3886
|
+
const f = () => {
|
3857
3887
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
3858
3888
|
}, c = () => {
|
3859
|
-
|
3860
|
-
}
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
() => {
|
3868
|
-
h.appendChild(E);
|
3869
|
-
},
|
3870
|
-
1
|
3871
|
-
);
|
3872
|
-
});
|
3873
|
-
}, y = () => l();
|
3874
|
-
function _(m) {
|
3875
|
-
Pe[m ? "unshift" : "push"](() => {
|
3876
|
-
h = m, r(0, h);
|
3889
|
+
ri(i);
|
3890
|
+
};
|
3891
|
+
Kt(() => () => {
|
3892
|
+
});
|
3893
|
+
const b = () => f();
|
3894
|
+
function y(m) {
|
3895
|
+
Se[m ? "unshift" : "push"](() => {
|
3896
|
+
a = m, r(0, a);
|
3877
3897
|
});
|
3878
3898
|
}
|
3879
3899
|
return e.$$set = (m) => {
|
3880
|
-
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5,
|
3900
|
+
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5, s = m.clientstylingurl), "translationurl" in m && r(6, u = m.translationurl), "mbsource" in m && r(7, h = m.mbsource);
|
3881
3901
|
}, e.$$.update = () => {
|
3882
3902
|
e.$$.dirty & /*lang*/
|
3883
|
-
8 && i && c(), e.$$.dirty & /*
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3903
|
+
8 && i && c(), e.$$.dirty & /*translationurl*/
|
3904
|
+
64 && u && l(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3905
|
+
17 && o && a && ni(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3906
|
+
33 && s && a && ii(a, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3907
|
+
129 && h && a && oi(a, `${h}.Style`);
|
3887
3908
|
}, [
|
3888
|
-
|
3909
|
+
a,
|
3889
3910
|
n,
|
3890
|
-
|
3911
|
+
f,
|
3891
3912
|
i,
|
3892
3913
|
o,
|
3893
|
-
|
3914
|
+
s,
|
3894
3915
|
u,
|
3895
|
-
|
3896
|
-
|
3916
|
+
h,
|
3917
|
+
b,
|
3918
|
+
y
|
3897
3919
|
];
|
3898
3920
|
}
|
3899
|
-
class
|
3921
|
+
class hi extends fr {
|
3900
3922
|
constructor(t) {
|
3901
|
-
super(),
|
3923
|
+
super(), hr(
|
3902
3924
|
this,
|
3903
3925
|
t,
|
3904
|
-
|
3905
|
-
|
3926
|
+
ui,
|
3927
|
+
si,
|
3906
3928
|
ft,
|
3907
3929
|
{
|
3908
3930
|
lang: 3,
|
3909
3931
|
clientstyling: 4,
|
3910
3932
|
clientstylingurl: 5,
|
3911
|
-
translationurl: 6
|
3933
|
+
translationurl: 6,
|
3934
|
+
mbsource: 7
|
3912
3935
|
},
|
3913
|
-
|
3936
|
+
ai
|
3914
3937
|
);
|
3915
3938
|
}
|
3916
3939
|
get lang() {
|
3917
3940
|
return this.$$.ctx[3];
|
3918
3941
|
}
|
3919
3942
|
set lang(t) {
|
3920
|
-
this.$$set({ lang: t }),
|
3943
|
+
this.$$set({ lang: t }), $();
|
3921
3944
|
}
|
3922
3945
|
get clientstyling() {
|
3923
3946
|
return this.$$.ctx[4];
|
3924
3947
|
}
|
3925
3948
|
set clientstyling(t) {
|
3926
|
-
this.$$set({ clientstyling: t }),
|
3949
|
+
this.$$set({ clientstyling: t }), $();
|
3927
3950
|
}
|
3928
3951
|
get clientstylingurl() {
|
3929
3952
|
return this.$$.ctx[5];
|
3930
3953
|
}
|
3931
3954
|
set clientstylingurl(t) {
|
3932
|
-
this.$$set({ clientstylingurl: t }),
|
3955
|
+
this.$$set({ clientstylingurl: t }), $();
|
3933
3956
|
}
|
3934
3957
|
get translationurl() {
|
3935
3958
|
return this.$$.ctx[6];
|
3936
3959
|
}
|
3937
3960
|
set translationurl(t) {
|
3938
|
-
this.$$set({ translationurl: t }),
|
3961
|
+
this.$$set({ translationurl: t }), $();
|
3962
|
+
}
|
3963
|
+
get mbsource() {
|
3964
|
+
return this.$$.ctx[7];
|
3965
|
+
}
|
3966
|
+
set mbsource(t) {
|
3967
|
+
this.$$set({ mbsource: t }), $();
|
3939
3968
|
}
|
3940
3969
|
}
|
3941
|
-
|
3970
|
+
lr(hi, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3942
3971
|
export {
|
3943
|
-
|
3972
|
+
hi as default
|
3944
3973
|
};
|