@everymatrix/casino-404 1.62.0 → 1.62.2
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-CDo-vfq7.js → Casino404-2DsR7WWn.js} +601 -597
- package/components/Casino404-Ctyj_p3L.cjs +3 -0
- package/components/{Casino404-BAwtFpIN.js → Casino404-kcyRkWeA.js} +581 -577
- 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-DilLgg_z.cjs +0 -16
@@ -1,16 +1,16 @@
|
|
1
|
-
var Ut = Object.defineProperty,
|
2
|
-
var
|
1
|
+
var Ut = Object.defineProperty, jt = Object.defineProperties;
|
2
|
+
var kt = Object.getOwnPropertyDescriptors;
|
3
3
|
var Xe = Object.getOwnPropertySymbols;
|
4
4
|
var Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
5
|
-
var
|
5
|
+
var xe = (e, t, r) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
Vt.call(t, r) &&
|
7
|
+
Vt.call(t, r) && xe(e, r, t[r]);
|
8
8
|
if (Xe)
|
9
9
|
for (var r of Xe(t))
|
10
|
-
Xt.call(t, r) &&
|
10
|
+
Xt.call(t, r) && xe(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
}, Ze = (e, t) =>
|
13
|
-
var
|
12
|
+
}, Ze = (e, t) => jt(e, kt(t));
|
13
|
+
var N = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
14
|
var We = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (h) => {
|
16
16
|
try {
|
@@ -27,18 +27,18 @@ var We = (e, t, r) => new Promise((n, i) => {
|
|
27
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
|
-
function
|
32
|
+
function ct(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
35
|
function Qe() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function ne(e) {
|
39
|
+
e.forEach(ct);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function De(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
44
|
function mt(e, t) {
|
@@ -51,7 +51,7 @@ function pt(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;
|
@@ -65,7 +65,7 @@ function _(e, t) {
|
|
65
65
|
function Wt(e, t, r) {
|
66
66
|
const n = Qt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
|
-
const i =
|
68
|
+
const i = $("style");
|
69
69
|
i.id = t, i.textContent = r, qt(n, i);
|
70
70
|
}
|
71
71
|
}
|
@@ -89,31 +89,31 @@ function qt(e, t) {
|
|
89
89
|
function gt(e, t, r) {
|
90
90
|
e.insertBefore(t, r || null);
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function Ue(e) {
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function $(e) {
|
96
96
|
return document.createElement(e);
|
97
97
|
}
|
98
98
|
function M(e) {
|
99
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function ae(e) {
|
102
102
|
return document.createTextNode(e);
|
103
103
|
}
|
104
|
-
function
|
105
|
-
return
|
104
|
+
function ye() {
|
105
|
+
return ae(" ");
|
106
106
|
}
|
107
107
|
function Jt(e, t, r, n) {
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
109
109
|
}
|
110
|
-
function
|
110
|
+
function b(e, t, r) {
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
112
112
|
}
|
113
113
|
function Yt(e) {
|
114
114
|
return Array.from(e.childNodes);
|
115
115
|
}
|
116
|
-
function
|
116
|
+
function Ee(e, t) {
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
118
118
|
t);
|
119
119
|
}
|
@@ -126,60 +126,60 @@ function Kt(e) {
|
|
126
126
|
}
|
127
127
|
), t;
|
128
128
|
}
|
129
|
-
let
|
130
|
-
function
|
131
|
-
|
129
|
+
let ee;
|
130
|
+
function K(e) {
|
131
|
+
ee = e;
|
132
132
|
}
|
133
133
|
function er() {
|
134
|
-
if (!
|
134
|
+
if (!ee)
|
135
135
|
throw new Error("Function called outside component initialization");
|
136
|
-
return
|
136
|
+
return ee;
|
137
137
|
}
|
138
138
|
function tr(e) {
|
139
139
|
er().$$.on_mount.push(e);
|
140
140
|
}
|
141
|
-
const
|
141
|
+
const j = [], Ae = [];
|
142
142
|
let k = [];
|
143
143
|
const qe = [], rr = /* @__PURE__ */ Promise.resolve();
|
144
144
|
let Be = !1;
|
145
145
|
function nr() {
|
146
|
-
Be || (Be = !0, rr.then(
|
146
|
+
Be || (Be = !0, rr.then(R));
|
147
147
|
}
|
148
|
-
function
|
148
|
+
function we(e) {
|
149
149
|
k.push(e);
|
150
150
|
}
|
151
|
-
const
|
152
|
-
let
|
153
|
-
function
|
154
|
-
if (
|
151
|
+
const ve = /* @__PURE__ */ new Set();
|
152
|
+
let D = 0;
|
153
|
+
function R() {
|
154
|
+
if (D !== 0)
|
155
155
|
return;
|
156
|
-
const e =
|
156
|
+
const e = ee;
|
157
157
|
do {
|
158
158
|
try {
|
159
|
-
for (;
|
160
|
-
const t =
|
161
|
-
|
159
|
+
for (; D < j.length; ) {
|
160
|
+
const t = j[D];
|
161
|
+
D++, K(t), ir(t.$$);
|
162
162
|
}
|
163
163
|
} catch (t) {
|
164
|
-
throw
|
164
|
+
throw j.length = 0, D = 0, t;
|
165
165
|
}
|
166
|
-
for (
|
167
|
-
|
166
|
+
for (K(null), j.length = 0, D = 0; Ae.length; )
|
167
|
+
Ae.pop()();
|
168
168
|
for (let t = 0; t < k.length; t += 1) {
|
169
169
|
const r = k[t];
|
170
|
-
|
170
|
+
ve.has(r) || (ve.add(r), r());
|
171
171
|
}
|
172
172
|
k.length = 0;
|
173
|
-
} while (
|
173
|
+
} while (j.length);
|
174
174
|
for (; qe.length; )
|
175
175
|
qe.pop()();
|
176
|
-
Be = !1,
|
176
|
+
Be = !1, ve.clear(), K(e);
|
177
177
|
}
|
178
178
|
function ir(e) {
|
179
179
|
if (e.fragment !== null) {
|
180
|
-
e.update(),
|
180
|
+
e.update(), ne(e.before_update);
|
181
181
|
const t = e.dirty;
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
183
183
|
}
|
184
184
|
}
|
185
185
|
function or(e) {
|
@@ -192,27 +192,27 @@ function sr(e, t) {
|
|
192
192
|
}
|
193
193
|
function ur(e, t, r) {
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
195
|
-
n && n.m(t, r),
|
196
|
-
const o = e.$$.on_mount.map(
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
198
|
-
}), i.forEach(
|
195
|
+
n && n.m(t, r), we(() => {
|
196
|
+
const o = e.$$.on_mount.map(ct).filter(De);
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
198
|
+
}), i.forEach(we);
|
199
199
|
}
|
200
200
|
function hr(e, t) {
|
201
201
|
const r = e.$$;
|
202
|
-
r.fragment !== null && (or(r.after_update),
|
202
|
+
r.fragment !== null && (or(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
203
203
|
}
|
204
204
|
function lr(e, t) {
|
205
|
-
e.$$.dirty[0] === -1 && (
|
205
|
+
e.$$.dirty[0] === -1 && (j.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
206
206
|
}
|
207
|
-
function
|
208
|
-
const h =
|
209
|
-
|
207
|
+
function fr(e, t, r, n, i, o, s = null, u = [-1]) {
|
208
|
+
const h = ee;
|
209
|
+
K(e);
|
210
210
|
const a = e.$$ = {
|
211
211
|
fragment: null,
|
212
212
|
ctx: [],
|
213
213
|
// state
|
214
214
|
props: o,
|
215
|
-
update:
|
215
|
+
update: B,
|
216
216
|
not_equal: i,
|
217
217
|
bound: Qe(),
|
218
218
|
// lifecycle
|
@@ -230,41 +230,41 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
230
230
|
};
|
231
231
|
s && s(a.root);
|
232
232
|
let l = !1;
|
233
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
234
|
-
const
|
235
|
-
return a.ctx && i(a.ctx[
|
236
|
-
}) : [], a.update(), l = !0,
|
233
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
234
|
+
const x = d.length ? d[0] : c;
|
235
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = x) && (!a.skip_bound && a.bound[f] && a.bound[f](x), l && lr(e, f)), c;
|
236
|
+
}) : [], a.update(), l = !0, ne(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
237
237
|
if (t.hydrate) {
|
238
|
-
const
|
239
|
-
a.fragment && a.fragment.l(
|
238
|
+
const f = Yt(t.target);
|
239
|
+
a.fragment && a.fragment.l(f), f.forEach(Ue);
|
240
240
|
} else
|
241
241
|
a.fragment && a.fragment.c();
|
242
|
-
t.intro && sr(e.$$.fragment), ur(e, t.target, t.anchor),
|
242
|
+
t.intro && sr(e.$$.fragment), ur(e, t.target, t.anchor), R();
|
243
243
|
}
|
244
|
-
|
244
|
+
K(h);
|
245
245
|
}
|
246
246
|
let dt;
|
247
247
|
typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
248
248
|
constructor(t, r, n) {
|
249
249
|
super();
|
250
250
|
/** The Svelte component constructor */
|
251
|
-
|
251
|
+
N(this, "$$ctor");
|
252
252
|
/** Slots */
|
253
|
-
|
253
|
+
N(this, "$$s");
|
254
254
|
/** The Svelte component instance */
|
255
|
-
|
255
|
+
N(this, "$$c");
|
256
256
|
/** Whether or not the custom element is connected */
|
257
|
-
|
257
|
+
N(this, "$$cn", !1);
|
258
258
|
/** Component props data */
|
259
|
-
|
259
|
+
N(this, "$$d", {});
|
260
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
261
|
-
|
261
|
+
N(this, "$$r", !1);
|
262
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
263
|
-
|
263
|
+
N(this, "$$p_d", {});
|
264
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
265
|
-
|
265
|
+
N(this, "$$l", {});
|
266
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
267
|
-
|
267
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
268
268
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
269
269
|
}
|
270
270
|
addEventListener(t, r, n) {
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
288
288
|
let s;
|
289
289
|
return {
|
290
290
|
c: function() {
|
291
|
-
s =
|
291
|
+
s = $("slot"), o !== "default" && b(s, "name", o);
|
292
292
|
},
|
293
293
|
/**
|
294
294
|
* @param {HTMLElement} target
|
@@ -298,7 +298,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
298
298
|
gt(a, s, l);
|
299
299
|
},
|
300
300
|
d: function(a) {
|
301
|
-
a &&
|
301
|
+
a && Ue(s);
|
302
302
|
}
|
303
303
|
};
|
304
304
|
};
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
310
310
|
o in n && (r[o] = [t(o)]);
|
311
311
|
for (const o of this.attributes) {
|
312
312
|
const s = this.$$g_p(o.name);
|
313
|
-
s in this.$$d || (this.$$d[s] =
|
313
|
+
s in this.$$d || (this.$$d[s] = se(s, o.value, this.$$p_d, "toProp"));
|
314
314
|
}
|
315
315
|
for (const o in this.$$p_d)
|
316
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
327
327
|
this.$$r = !0;
|
328
328
|
for (const o in this.$$p_d)
|
329
329
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
330
|
-
const s =
|
330
|
+
const s = se(
|
331
331
|
o,
|
332
332
|
this.$$d[o],
|
333
333
|
this.$$p_d,
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
352
352
|
attributeChangedCallback(t, r, n) {
|
353
353
|
var i;
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
355
355
|
}
|
356
356
|
disconnectedCallback() {
|
357
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
364
364
|
) || t;
|
365
365
|
}
|
366
366
|
});
|
367
|
-
function
|
367
|
+
function se(e, t, r, n) {
|
368
368
|
var o;
|
369
369
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -394,7 +394,7 @@ function ae(e, t, r, n) {
|
|
394
394
|
return t;
|
395
395
|
}
|
396
396
|
}
|
397
|
-
function
|
397
|
+
function cr(e, t, r, n, i, o) {
|
398
398
|
let s = class extends dt {
|
399
399
|
constructor() {
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
@@ -412,7 +412,7 @@ function fr(e, t, r, n, i, o) {
|
|
412
412
|
},
|
413
413
|
set(h) {
|
414
414
|
var a;
|
415
|
-
h =
|
415
|
+
h = se(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
416
416
|
}
|
417
417
|
});
|
418
418
|
}), n.forEach((u) => {
|
@@ -434,7 +434,7 @@ class mr {
|
|
434
434
|
*
|
435
435
|
* @type {any}
|
436
436
|
*/
|
437
|
-
|
437
|
+
N(this, "$$");
|
438
438
|
/**
|
439
439
|
* ### PRIVATE API
|
440
440
|
*
|
@@ -442,11 +442,11 @@ class mr {
|
|
442
442
|
*
|
443
443
|
* @type {any}
|
444
444
|
*/
|
445
|
-
|
445
|
+
N(this, "$$set");
|
446
446
|
}
|
447
447
|
/** @returns {void} */
|
448
448
|
$destroy() {
|
449
|
-
hr(this, 1), this.$destroy =
|
449
|
+
hr(this, 1), this.$destroy = B;
|
450
450
|
}
|
451
451
|
/**
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
@@ -455,8 +455,8 @@ class mr {
|
|
455
455
|
* @returns {() => void}
|
456
456
|
*/
|
457
457
|
$on(t, r) {
|
458
|
-
if (!
|
459
|
-
return
|
458
|
+
if (!De(r))
|
459
|
+
return B;
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
461
461
|
return n.push(r), () => {
|
462
462
|
const i = n.indexOf(r);
|
@@ -473,39 +473,39 @@ class mr {
|
|
473
473
|
}
|
474
474
|
const pr = "4";
|
475
475
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
476
|
-
const
|
476
|
+
const U = [];
|
477
477
|
function gr(e, t) {
|
478
478
|
return {
|
479
|
-
subscribe:
|
479
|
+
subscribe: me(e, t).subscribe
|
480
480
|
};
|
481
481
|
}
|
482
|
-
function
|
482
|
+
function me(e, t = B) {
|
483
483
|
let r;
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
485
485
|
function i(u) {
|
486
486
|
if (mt(e, u) && (e = u, r)) {
|
487
|
-
const h = !
|
487
|
+
const h = !U.length;
|
488
488
|
for (const a of n)
|
489
|
-
a[1](),
|
489
|
+
a[1](), U.push(a, e);
|
490
490
|
if (h) {
|
491
|
-
for (let a = 0; a <
|
492
|
-
|
493
|
-
|
491
|
+
for (let a = 0; a < U.length; a += 2)
|
492
|
+
U[a][0](U[a + 1]);
|
493
|
+
U.length = 0;
|
494
494
|
}
|
495
495
|
}
|
496
496
|
}
|
497
497
|
function o(u) {
|
498
498
|
i(u(e));
|
499
499
|
}
|
500
|
-
function s(u, h =
|
500
|
+
function s(u, h = B) {
|
501
501
|
const a = [u, h];
|
502
|
-
return n.add(a), n.size === 1 && (r = t(i, o) ||
|
502
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || B), u(e), () => {
|
503
503
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
504
504
|
};
|
505
505
|
}
|
506
506
|
return { set: i, update: o, subscribe: s };
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function W(e, t, r) {
|
509
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
510
510
|
if (!i.every(Boolean))
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
@@ -513,26 +513,26 @@ function Z(e, t, r) {
|
|
513
513
|
return gr(r, (s, u) => {
|
514
514
|
let h = !1;
|
515
515
|
const a = [];
|
516
|
-
let l = 0,
|
517
|
-
const
|
516
|
+
let l = 0, f = B;
|
517
|
+
const c = () => {
|
518
518
|
if (l)
|
519
519
|
return;
|
520
|
-
|
521
|
-
const
|
522
|
-
o ? s(
|
523
|
-
},
|
524
|
-
(
|
525
|
-
|
526
|
-
(
|
527
|
-
a[m] =
|
520
|
+
f();
|
521
|
+
const x = t(n ? a[0] : a, s, u);
|
522
|
+
o ? s(x) : f = De(x) ? x : B;
|
523
|
+
}, d = i.map(
|
524
|
+
(x, m) => pt(
|
525
|
+
x,
|
526
|
+
(v) => {
|
527
|
+
a[m] = v, l &= ~(1 << m), h && c();
|
528
528
|
},
|
529
529
|
() => {
|
530
530
|
l |= 1 << m;
|
531
531
|
}
|
532
532
|
)
|
533
533
|
);
|
534
|
-
return h = !0,
|
535
|
-
|
534
|
+
return h = !0, c(), function() {
|
535
|
+
ne(d), f(), h = !1;
|
536
536
|
};
|
537
537
|
});
|
538
538
|
}
|
@@ -549,34 +549,34 @@ function yr(e) {
|
|
549
549
|
var t = Object.prototype.toString.call(e);
|
550
550
|
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
551
551
|
}
|
552
|
-
var
|
552
|
+
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
553
553
|
function _r(e) {
|
554
|
-
return e.$$typeof ===
|
554
|
+
return e.$$typeof === vr;
|
555
555
|
}
|
556
556
|
function Hr(e) {
|
557
557
|
return Array.isArray(e) ? [] : {};
|
558
558
|
}
|
559
|
-
function
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
559
|
+
function te(e, t) {
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Hr(e), e, t) : e;
|
561
561
|
}
|
562
562
|
function Tr(e, t, r) {
|
563
563
|
return e.concat(t).map(function(n) {
|
564
|
-
return
|
564
|
+
return te(n, r);
|
565
565
|
});
|
566
566
|
}
|
567
567
|
function Pr(e, t) {
|
568
568
|
if (!t.customMerge)
|
569
|
-
return
|
569
|
+
return V;
|
570
570
|
var r = t.customMerge(e);
|
571
|
-
return typeof r == "function" ? r :
|
571
|
+
return typeof r == "function" ? r : V;
|
572
572
|
}
|
573
|
-
function
|
573
|
+
function Sr(e) {
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
576
576
|
}) : [];
|
577
577
|
}
|
578
578
|
function Je(e) {
|
579
|
-
return Object.keys(e).concat(
|
579
|
+
return Object.keys(e).concat(Sr(e));
|
580
580
|
}
|
581
581
|
function bt(e, t) {
|
582
582
|
try {
|
@@ -585,73 +585,59 @@ function bt(e, t) {
|
|
585
585
|
return !1;
|
586
586
|
}
|
587
587
|
}
|
588
|
-
function
|
588
|
+
function Nr(e, t) {
|
589
589
|
return bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
590
590
|
}
|
591
|
-
function
|
591
|
+
function Ar(e, t, r) {
|
592
592
|
var n = {};
|
593
593
|
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
594
|
-
n[i] =
|
594
|
+
n[i] = te(e[i], r);
|
595
595
|
}), Je(t).forEach(function(i) {
|
596
|
-
|
596
|
+
Nr(e, i) || (bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
597
597
|
}), n;
|
598
598
|
}
|
599
|
-
function
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified =
|
599
|
+
function V(e, t, r) {
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = te;
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
602
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
602
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : te(t, r);
|
603
603
|
}
|
604
|
-
|
604
|
+
V.all = function(t, r) {
|
605
605
|
if (!Array.isArray(t))
|
606
606
|
throw new Error("first argument should be an array");
|
607
607
|
return t.reduce(function(n, i) {
|
608
|
-
return
|
608
|
+
return V(n, i, r);
|
609
609
|
}, {});
|
610
610
|
};
|
611
|
-
var
|
611
|
+
var Br = V, wr = Br;
|
612
612
|
const Or = /* @__PURE__ */ dr(wr);
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
617
|
-
purpose with or without fee is hereby granted.
|
618
|
-
|
619
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
620
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
621
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
622
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
623
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
624
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
625
|
-
PERFORMANCE OF THIS SOFTWARE.
|
626
|
-
***************************************************************************** */
|
627
|
-
var Ae = function(e, t) {
|
628
|
-
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
613
|
+
var Oe = function(e, t) {
|
614
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
629
615
|
r.__proto__ = n;
|
630
616
|
} || function(r, n) {
|
631
617
|
for (var i in n)
|
632
618
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
633
|
-
},
|
619
|
+
}, Oe(e, t);
|
634
620
|
};
|
635
|
-
function
|
621
|
+
function pe(e, t) {
|
636
622
|
if (typeof t != "function" && t !== null)
|
637
623
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
638
|
-
|
624
|
+
Oe(e, t);
|
639
625
|
function r() {
|
640
626
|
this.constructor = e;
|
641
627
|
}
|
642
628
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
643
629
|
}
|
644
|
-
var
|
645
|
-
return
|
630
|
+
var O = function() {
|
631
|
+
return O = Object.assign || function(t) {
|
646
632
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
647
633
|
r = arguments[n];
|
648
634
|
for (var o in r)
|
649
635
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
650
636
|
}
|
651
637
|
return t;
|
652
|
-
},
|
638
|
+
}, O.apply(this, arguments);
|
653
639
|
};
|
654
|
-
function
|
640
|
+
function Ir(e, t) {
|
655
641
|
var r = {};
|
656
642
|
for (var n in e)
|
657
643
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -660,111 +646,119 @@ function Mr(e, t) {
|
|
660
646
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
661
647
|
return r;
|
662
648
|
}
|
663
|
-
function
|
664
|
-
if (arguments.length === 2)
|
649
|
+
function _e(e, t, r) {
|
650
|
+
if (r || arguments.length === 2)
|
665
651
|
for (var n = 0, i = t.length, o; n < i; n++)
|
666
652
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
667
|
-
return e.concat(o || t);
|
653
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
668
654
|
}
|
669
|
-
function
|
670
|
-
var r = t && t.cache ? t.cache :
|
655
|
+
function He(e, t) {
|
656
|
+
var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Cr;
|
671
657
|
return i(e, {
|
672
658
|
cache: r,
|
673
659
|
serializer: n
|
674
660
|
});
|
675
661
|
}
|
676
|
-
function
|
662
|
+
function Mr(e) {
|
677
663
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
678
664
|
}
|
679
|
-
function
|
680
|
-
var i =
|
665
|
+
function Lr(e, t, r, n) {
|
666
|
+
var i = Mr(n) ? n : r(n), o = t.get(i);
|
681
667
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
682
668
|
}
|
683
|
-
function
|
669
|
+
function xt(e, t, r) {
|
684
670
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
685
671
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
686
672
|
}
|
687
|
-
function
|
673
|
+
function yt(e, t, r, n, i) {
|
688
674
|
return r.bind(t, e, n, i);
|
689
675
|
}
|
690
|
-
function Lr(e, t) {
|
691
|
-
var r = e.length === 1 ? xt : yt;
|
692
|
-
return De(e, this, r, t.cache.create(), t.serializer);
|
693
|
-
}
|
694
676
|
function Cr(e, t) {
|
695
|
-
|
677
|
+
var r = e.length === 1 ? Lr : xt;
|
678
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
696
679
|
}
|
697
680
|
function $r(e, t) {
|
698
|
-
return
|
681
|
+
return yt(e, this, xt, t.cache.create(), t.serializer);
|
699
682
|
}
|
700
683
|
var Rr = function() {
|
701
684
|
return JSON.stringify(arguments);
|
702
|
-
}
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
685
|
+
}, Fr = (
|
686
|
+
/** @class */
|
687
|
+
function() {
|
688
|
+
function e() {
|
689
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
690
|
+
}
|
691
|
+
return e.prototype.get = function(t) {
|
692
|
+
return this.cache[t];
|
693
|
+
}, e.prototype.set = function(t, r) {
|
694
|
+
this.cache[t] = r;
|
695
|
+
}, e;
|
696
|
+
}()
|
697
|
+
), Gr = {
|
713
698
|
create: function() {
|
714
|
-
return new
|
699
|
+
return new Fr();
|
715
700
|
}
|
716
|
-
},
|
717
|
-
variadic:
|
718
|
-
|
719
|
-
|
701
|
+
}, Te = {
|
702
|
+
variadic: $r
|
703
|
+
}, le = function() {
|
704
|
+
return le = Object.assign || function(t) {
|
705
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
706
|
+
r = arguments[n];
|
707
|
+
for (var o in r)
|
708
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
709
|
+
}
|
710
|
+
return t;
|
711
|
+
}, le.apply(this, arguments);
|
712
|
+
};
|
713
|
+
var p;
|
720
714
|
(function(e) {
|
721
715
|
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";
|
722
716
|
})(p || (p = {}));
|
723
|
-
var
|
717
|
+
var y;
|
724
718
|
(function(e) {
|
725
719
|
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";
|
726
|
-
})(
|
727
|
-
var
|
720
|
+
})(y || (y = {}));
|
721
|
+
var X;
|
728
722
|
(function(e) {
|
729
723
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
730
|
-
})(
|
724
|
+
})(X || (X = {}));
|
731
725
|
function Ye(e) {
|
732
|
-
return e.type ===
|
733
|
-
}
|
734
|
-
function Gr(e) {
|
735
|
-
return e.type === v.argument;
|
726
|
+
return e.type === y.literal;
|
736
727
|
}
|
737
|
-
function
|
738
|
-
return e.type ===
|
728
|
+
function Dr(e) {
|
729
|
+
return e.type === y.argument;
|
739
730
|
}
|
740
731
|
function Et(e) {
|
741
|
-
return e.type ===
|
732
|
+
return e.type === y.number;
|
733
|
+
}
|
734
|
+
function vt(e) {
|
735
|
+
return e.type === y.date;
|
742
736
|
}
|
743
737
|
function _t(e) {
|
744
|
-
return e.type ===
|
738
|
+
return e.type === y.time;
|
745
739
|
}
|
746
740
|
function Ht(e) {
|
747
|
-
return e.type ===
|
741
|
+
return e.type === y.select;
|
748
742
|
}
|
749
743
|
function Tt(e) {
|
750
|
-
return e.type ===
|
744
|
+
return e.type === y.plural;
|
751
745
|
}
|
752
|
-
function
|
753
|
-
return e.type ===
|
746
|
+
function Ur(e) {
|
747
|
+
return e.type === y.pound;
|
754
748
|
}
|
755
749
|
function Pt(e) {
|
756
|
-
return e.type ===
|
750
|
+
return e.type === y.tag;
|
757
751
|
}
|
758
|
-
function
|
759
|
-
return !!(e && typeof e == "object" && e.type ===
|
752
|
+
function St(e) {
|
753
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
760
754
|
}
|
761
|
-
function
|
762
|
-
return !!(e && typeof e == "object" && e.type ===
|
755
|
+
function Ie(e) {
|
756
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
763
757
|
}
|
764
|
-
var
|
758
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
765
759
|
function kr(e) {
|
766
760
|
var t = {};
|
767
|
-
return e.replace(
|
761
|
+
return e.replace(jr, function(r) {
|
768
762
|
var n = r.length;
|
769
763
|
switch (r[0]) {
|
770
764
|
case "G":
|
@@ -853,32 +847,42 @@ function kr(e) {
|
|
853
847
|
return "";
|
854
848
|
}), t;
|
855
849
|
}
|
856
|
-
var
|
857
|
-
function
|
850
|
+
var E = function() {
|
851
|
+
return E = Object.assign || function(t) {
|
852
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
853
|
+
r = arguments[n];
|
854
|
+
for (var o in r)
|
855
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
856
|
+
}
|
857
|
+
return t;
|
858
|
+
}, E.apply(this, arguments);
|
859
|
+
};
|
860
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
861
|
+
function Xr(e) {
|
858
862
|
if (e.length === 0)
|
859
863
|
throw new Error("Number skeleton cannot be empty");
|
860
|
-
for (var t = e.split(
|
861
|
-
return
|
864
|
+
for (var t = e.split(Vr).filter(function(c) {
|
865
|
+
return c.length > 0;
|
862
866
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
863
867
|
var o = i[n], s = o.split("/");
|
864
868
|
if (s.length === 0)
|
865
869
|
throw new Error("Invalid number skeleton");
|
866
870
|
for (var u = s[0], h = s.slice(1), a = 0, l = h; a < l.length; a++) {
|
867
|
-
var
|
868
|
-
if (
|
871
|
+
var f = l[a];
|
872
|
+
if (f.length === 0)
|
869
873
|
throw new Error("Invalid number skeleton");
|
870
874
|
}
|
871
875
|
r.push({ stem: u, options: h });
|
872
876
|
}
|
873
877
|
return r;
|
874
878
|
}
|
875
|
-
function
|
879
|
+
function zr(e) {
|
876
880
|
return e.replace(/^(.*?)-/, "");
|
877
881
|
}
|
878
|
-
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
882
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, At = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
|
879
883
|
function et(e) {
|
880
884
|
var t = {};
|
881
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
885
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(At, function(r, n, i) {
|
882
886
|
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)), "";
|
883
887
|
}), t;
|
884
888
|
}
|
@@ -922,7 +926,7 @@ function wt(e) {
|
|
922
926
|
};
|
923
927
|
}
|
924
928
|
}
|
925
|
-
function
|
929
|
+
function Wr(e) {
|
926
930
|
var t;
|
927
931
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
928
932
|
notation: "engineering"
|
@@ -930,7 +934,7 @@ function Zr(e) {
|
|
930
934
|
notation: "scientific"
|
931
935
|
}, e = e.slice(1)), t) {
|
932
936
|
var r = e.slice(0, 2);
|
933
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
937
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Bt.test(e))
|
934
938
|
throw new Error("Malformed concise eng/scientific notation");
|
935
939
|
t.minimumIntegerDigits = e.length;
|
936
940
|
}
|
@@ -940,7 +944,7 @@ function tt(e) {
|
|
940
944
|
var t = {}, r = wt(e);
|
941
945
|
return r || t;
|
942
946
|
}
|
943
|
-
function
|
947
|
+
function Qr(e) {
|
944
948
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
945
949
|
var i = n[r];
|
946
950
|
switch (i.stem) {
|
@@ -964,7 +968,7 @@ function Wr(e) {
|
|
964
968
|
continue;
|
965
969
|
case "measure-unit":
|
966
970
|
case "unit":
|
967
|
-
t.style = "unit", t.unit =
|
971
|
+
t.style = "unit", t.unit = zr(i.options[0]);
|
968
972
|
continue;
|
969
973
|
case "compact-short":
|
970
974
|
case "K":
|
@@ -975,13 +979,13 @@ function Wr(e) {
|
|
975
979
|
t.notation = "compact", t.compactDisplay = "long";
|
976
980
|
continue;
|
977
981
|
case "scientific":
|
978
|
-
t =
|
979
|
-
return
|
982
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
983
|
+
return E(E({}, h), tt(a));
|
980
984
|
}, {}));
|
981
985
|
continue;
|
982
986
|
case "engineering":
|
983
|
-
t =
|
984
|
-
return
|
987
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
988
|
+
return E(E({}, h), tt(a));
|
985
989
|
}, {}));
|
986
990
|
continue;
|
987
991
|
case "notation-simple":
|
@@ -1026,45 +1030,45 @@ function Wr(e) {
|
|
1026
1030
|
case "integer-width":
|
1027
1031
|
if (i.options.length > 1)
|
1028
1032
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1029
|
-
i.options[0].replace(
|
1033
|
+
i.options[0].replace(Zr, function(h, a, l, f, c, d) {
|
1030
1034
|
if (a)
|
1031
1035
|
t.minimumIntegerDigits = l.length;
|
1032
1036
|
else {
|
1033
|
-
if (
|
1037
|
+
if (f && c)
|
1034
1038
|
throw new Error("We currently do not support maximum integer digits");
|
1035
|
-
if (
|
1039
|
+
if (d)
|
1036
1040
|
throw new Error("We currently do not support exact integer digits");
|
1037
1041
|
}
|
1038
1042
|
return "";
|
1039
1043
|
});
|
1040
1044
|
continue;
|
1041
1045
|
}
|
1042
|
-
if (
|
1046
|
+
if (Bt.test(i.stem)) {
|
1043
1047
|
t.minimumIntegerDigits = i.stem.length;
|
1044
1048
|
continue;
|
1045
1049
|
}
|
1046
1050
|
if (Ke.test(i.stem)) {
|
1047
1051
|
if (i.options.length > 1)
|
1048
1052
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1049
|
-
i.stem.replace(Ke, function(h, a, l,
|
1050
|
-
return l === "*" ? t.minimumFractionDigits = a.length :
|
1053
|
+
i.stem.replace(Ke, function(h, a, l, f, c, d) {
|
1054
|
+
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
1051
1055
|
});
|
1052
1056
|
var o = i.options[0];
|
1053
|
-
o === "w" ? t =
|
1057
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), et(o)));
|
1054
1058
|
continue;
|
1055
1059
|
}
|
1056
|
-
if (
|
1057
|
-
t =
|
1060
|
+
if (At.test(i.stem)) {
|
1061
|
+
t = E(E({}, t), et(i.stem));
|
1058
1062
|
continue;
|
1059
1063
|
}
|
1060
1064
|
var s = wt(i.stem);
|
1061
|
-
s && (t =
|
1062
|
-
var u =
|
1063
|
-
u && (t =
|
1065
|
+
s && (t = E(E({}, t), s));
|
1066
|
+
var u = Wr(i.stem);
|
1067
|
+
u && (t = E(E({}, t), u));
|
1064
1068
|
}
|
1065
1069
|
return t;
|
1066
1070
|
}
|
1067
|
-
var
|
1071
|
+
var oe = {
|
1068
1072
|
"001": [
|
1069
1073
|
"H",
|
1070
1074
|
"h"
|
@@ -2479,13 +2483,13 @@ var ie = {
|
|
2479
2483
|
"h"
|
2480
2484
|
]
|
2481
2485
|
};
|
2482
|
-
function
|
2486
|
+
function qr(e, t) {
|
2483
2487
|
for (var r = "", n = 0; n < e.length; n++) {
|
2484
2488
|
var i = e.charAt(n);
|
2485
2489
|
if (i === "j") {
|
2486
2490
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2487
2491
|
o++, n++;
|
2488
|
-
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a =
|
2492
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = Jr(t);
|
2489
2493
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
2490
2494
|
r += h;
|
2491
2495
|
for (; s-- > 0; )
|
@@ -2495,7 +2499,7 @@ function Qr(e, t) {
|
|
2495
2499
|
}
|
2496
2500
|
return r;
|
2497
2501
|
}
|
2498
|
-
function
|
2502
|
+
function Jr(e) {
|
2499
2503
|
var t = e.hourCycle;
|
2500
2504
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2501
2505
|
e.hourCycles && // @ts-ignore
|
@@ -2514,23 +2518,23 @@ function qr(e) {
|
|
2514
2518
|
}
|
2515
2519
|
var r = e.language, n;
|
2516
2520
|
r !== "root" && (n = e.maximize().region);
|
2517
|
-
var i =
|
2521
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
2518
2522
|
return i[0];
|
2519
2523
|
}
|
2520
|
-
var
|
2524
|
+
var Pe, Yr = new RegExp("^".concat(Nt.source, "*")), Kr = new RegExp("".concat(Nt.source, "*$"));
|
2521
2525
|
function g(e, t) {
|
2522
2526
|
return { start: e, end: t };
|
2523
2527
|
}
|
2524
|
-
var
|
2528
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, un = sn ? Number.isSafeInteger : function(e) {
|
2525
2529
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2526
|
-
},
|
2530
|
+
}, Me = !0;
|
2527
2531
|
try {
|
2528
|
-
var
|
2529
|
-
|
2532
|
+
var hn = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2533
|
+
Me = ((Pe = hn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
2530
2534
|
} catch (e) {
|
2531
|
-
|
2535
|
+
Me = !1;
|
2532
2536
|
}
|
2533
|
-
var rt =
|
2537
|
+
var rt = en ? (
|
2534
2538
|
// Native
|
2535
2539
|
function(t, r, n) {
|
2536
2540
|
return t.startsWith(r, n);
|
@@ -2540,7 +2544,7 @@ var rt = Kr ? (
|
|
2540
2544
|
function(t, r, n) {
|
2541
2545
|
return t.slice(n, n + r.length) === r;
|
2542
2546
|
}
|
2543
|
-
),
|
2547
|
+
), Le = tn ? String.fromCodePoint : (
|
2544
2548
|
// IE11
|
2545
2549
|
function() {
|
2546
2550
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2554,7 +2558,7 @@ var rt = Kr ? (
|
|
2554
2558
|
}
|
2555
2559
|
), nt = (
|
2556
2560
|
// native
|
2557
|
-
|
2561
|
+
rn ? Object.fromEntries : (
|
2558
2562
|
// Ponyfill
|
2559
2563
|
function(t) {
|
2560
2564
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2564,7 +2568,7 @@ var rt = Kr ? (
|
|
2564
2568
|
return r;
|
2565
2569
|
}
|
2566
2570
|
)
|
2567
|
-
), Ot =
|
2571
|
+
), Ot = nn ? (
|
2568
2572
|
// Native
|
2569
2573
|
function(t, r) {
|
2570
2574
|
return t.codePointAt(r);
|
@@ -2578,7 +2582,7 @@ var rt = Kr ? (
|
|
2578
2582
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2579
2583
|
}
|
2580
2584
|
}
|
2581
|
-
),
|
2585
|
+
), ln = on ? (
|
2582
2586
|
// Native
|
2583
2587
|
function(t) {
|
2584
2588
|
return t.trimStart();
|
@@ -2586,9 +2590,9 @@ var rt = Kr ? (
|
|
2586
2590
|
) : (
|
2587
2591
|
// Ponyfill
|
2588
2592
|
function(t) {
|
2589
|
-
return t.replace(
|
2593
|
+
return t.replace(Yr, "");
|
2590
2594
|
}
|
2591
|
-
),
|
2595
|
+
), fn = an ? (
|
2592
2596
|
// Native
|
2593
2597
|
function(t) {
|
2594
2598
|
return t.trimEnd();
|
@@ -2596,30 +2600,30 @@ var rt = Kr ? (
|
|
2596
2600
|
) : (
|
2597
2601
|
// Ponyfill
|
2598
2602
|
function(t) {
|
2599
|
-
return t.replace(
|
2603
|
+
return t.replace(Kr, "");
|
2600
2604
|
}
|
2601
2605
|
);
|
2602
|
-
function
|
2606
|
+
function It(e, t) {
|
2603
2607
|
return new RegExp(e, t);
|
2604
2608
|
}
|
2605
|
-
var
|
2606
|
-
if (
|
2607
|
-
var it =
|
2608
|
-
|
2609
|
+
var Ce;
|
2610
|
+
if (Me) {
|
2611
|
+
var it = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2612
|
+
Ce = function(t, r) {
|
2609
2613
|
var n;
|
2610
2614
|
it.lastIndex = r;
|
2611
2615
|
var i = it.exec(t);
|
2612
2616
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2613
2617
|
};
|
2614
2618
|
} else
|
2615
|
-
|
2619
|
+
Ce = function(t, r) {
|
2616
2620
|
for (var n = []; ; ) {
|
2617
2621
|
var i = Ot(t, r);
|
2618
|
-
if (i === void 0 ||
|
2622
|
+
if (i === void 0 || Mt(i) || gn(i))
|
2619
2623
|
break;
|
2620
2624
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2621
2625
|
}
|
2622
|
-
return
|
2626
|
+
return Le.apply(void 0, n);
|
2623
2627
|
};
|
2624
2628
|
var cn = (
|
2625
2629
|
/** @class */
|
@@ -2645,14 +2649,14 @@ var cn = (
|
|
2645
2649
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2646
2650
|
var u = this.clonePosition();
|
2647
2651
|
this.bump(), i.push({
|
2648
|
-
type:
|
2652
|
+
type: y.pound,
|
2649
2653
|
location: g(u, this.clonePosition())
|
2650
2654
|
});
|
2651
2655
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2652
2656
|
if (n)
|
2653
2657
|
break;
|
2654
2658
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2655
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2659
|
+
} else if (o === 60 && !this.ignoreTag && $e(this.peek() || 0)) {
|
2656
2660
|
var s = this.parseTag(t, r);
|
2657
2661
|
if (s.err)
|
2658
2662
|
return s;
|
@@ -2673,7 +2677,7 @@ var cn = (
|
|
2673
2677
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2674
2678
|
return {
|
2675
2679
|
val: {
|
2676
|
-
type:
|
2680
|
+
type: y.literal,
|
2677
2681
|
value: "<".concat(i, "/>"),
|
2678
2682
|
location: g(n, this.clonePosition())
|
2679
2683
|
},
|
@@ -2685,12 +2689,12 @@ var cn = (
|
|
2685
2689
|
return o;
|
2686
2690
|
var s = o.val, u = this.clonePosition();
|
2687
2691
|
if (this.bumpIf("</")) {
|
2688
|
-
if (this.isEOF() ||
|
2692
|
+
if (this.isEOF() || !$e(this.char()))
|
2689
2693
|
return this.error(p.INVALID_TAG, g(u, this.clonePosition()));
|
2690
2694
|
var h = this.clonePosition(), a = this.parseTagName();
|
2691
2695
|
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2692
2696
|
val: {
|
2693
|
-
type:
|
2697
|
+
type: y.tag,
|
2694
2698
|
value: i,
|
2695
2699
|
children: s,
|
2696
2700
|
location: g(n, this.clonePosition())
|
@@ -2703,7 +2707,7 @@ var cn = (
|
|
2703
2707
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
2704
2708
|
}, e.prototype.parseTagName = function() {
|
2705
2709
|
var t = this.offset();
|
2706
|
-
for (this.bump(); !this.isEOF() &&
|
2710
|
+
for (this.bump(); !this.isEOF() && pn(this.char()); )
|
2707
2711
|
this.bump();
|
2708
2712
|
return this.message.slice(t, this.offset());
|
2709
2713
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2727,12 +2731,12 @@ var cn = (
|
|
2727
2731
|
}
|
2728
2732
|
var h = g(n, this.clonePosition());
|
2729
2733
|
return {
|
2730
|
-
val: { type:
|
2734
|
+
val: { type: y.literal, value: i, location: h },
|
2731
2735
|
err: null
|
2732
2736
|
};
|
2733
2737
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2734
2738
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2735
|
-
!
|
2739
|
+
!mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2736
2740
|
}, e.prototype.tryParseQuote = function(t) {
|
2737
2741
|
if (this.isEOF() || this.char() !== 39)
|
2738
2742
|
return null;
|
@@ -2766,12 +2770,12 @@ var cn = (
|
|
2766
2770
|
r.push(n);
|
2767
2771
|
this.bump();
|
2768
2772
|
}
|
2769
|
-
return
|
2773
|
+
return Le.apply(void 0, r);
|
2770
2774
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2771
2775
|
if (this.isEOF())
|
2772
2776
|
return null;
|
2773
2777
|
var n = this.char();
|
2774
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2778
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Le(n));
|
2775
2779
|
}, e.prototype.parseArgument = function(t, r) {
|
2776
2780
|
var n = this.clonePosition();
|
2777
2781
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2787,7 +2791,7 @@ var cn = (
|
|
2787
2791
|
case 125:
|
2788
2792
|
return this.bump(), {
|
2789
2793
|
val: {
|
2790
|
-
type:
|
2794
|
+
type: y.argument,
|
2791
2795
|
// value does not include the opening and closing braces.
|
2792
2796
|
value: i,
|
2793
2797
|
location: g(n, this.clonePosition())
|
@@ -2800,7 +2804,7 @@ var cn = (
|
|
2800
2804
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
2801
2805
|
}
|
2802
2806
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2803
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2807
|
+
var t = this.clonePosition(), r = this.offset(), n = Ce(this.message, r), i = r + n.length;
|
2804
2808
|
this.bumpTo(i);
|
2805
2809
|
var o = this.clonePosition(), s = g(t, o);
|
2806
2810
|
return { value: n, location: s };
|
@@ -2816,47 +2820,47 @@ var cn = (
|
|
2816
2820
|
var a = null;
|
2817
2821
|
if (this.bumpIf(",")) {
|
2818
2822
|
this.bumpSpace();
|
2819
|
-
var l = this.clonePosition(),
|
2820
|
-
if (
|
2821
|
-
return
|
2822
|
-
var
|
2823
|
-
if (
|
2823
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2824
|
+
if (f.err)
|
2825
|
+
return f;
|
2826
|
+
var c = fn(f.val);
|
2827
|
+
if (c.length === 0)
|
2824
2828
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
2825
|
-
var
|
2826
|
-
a = { style:
|
2829
|
+
var d = g(l, this.clonePosition());
|
2830
|
+
a = { style: c, styleLocation: d };
|
2827
2831
|
}
|
2828
|
-
var
|
2829
|
-
if (
|
2830
|
-
return
|
2832
|
+
var x = this.tryParseArgumentClose(i);
|
2833
|
+
if (x.err)
|
2834
|
+
return x;
|
2831
2835
|
var m = g(i, this.clonePosition());
|
2832
2836
|
if (a && rt(a == null ? void 0 : a.style, "::", 0)) {
|
2833
|
-
var
|
2837
|
+
var v = ln(a.style.slice(2));
|
2834
2838
|
if (u === "number") {
|
2835
|
-
var
|
2836
|
-
return
|
2837
|
-
val: { type:
|
2839
|
+
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
2840
|
+
return f.err ? f : {
|
2841
|
+
val: { type: y.number, value: n, location: m, style: f.val },
|
2838
2842
|
err: null
|
2839
2843
|
};
|
2840
2844
|
} else {
|
2841
|
-
if (
|
2845
|
+
if (v.length === 0)
|
2842
2846
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
2843
|
-
var T =
|
2844
|
-
this.locale && (T =
|
2845
|
-
var
|
2846
|
-
type:
|
2847
|
+
var T = v;
|
2848
|
+
this.locale && (T = qr(v, this.locale));
|
2849
|
+
var c = {
|
2850
|
+
type: X.dateTime,
|
2847
2851
|
pattern: T,
|
2848
2852
|
location: a.styleLocation,
|
2849
2853
|
parsedOptions: this.shouldParseSkeletons ? kr(T) : {}
|
2850
|
-
}, w = u === "date" ?
|
2854
|
+
}, w = u === "date" ? y.date : y.time;
|
2851
2855
|
return {
|
2852
|
-
val: { type: w, value: n, location: m, style:
|
2856
|
+
val: { type: w, value: n, location: m, style: c },
|
2853
2857
|
err: null
|
2854
2858
|
};
|
2855
2859
|
}
|
2856
2860
|
}
|
2857
2861
|
return {
|
2858
2862
|
val: {
|
2859
|
-
type: u === "number" ?
|
2863
|
+
type: u === "number" ? y.number : u === "date" ? y.date : y.time,
|
2860
2864
|
value: n,
|
2861
2865
|
location: m,
|
2862
2866
|
style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
|
@@ -2869,41 +2873,41 @@ var cn = (
|
|
2869
2873
|
case "select": {
|
2870
2874
|
var P = this.clonePosition();
|
2871
2875
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2872
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P,
|
2876
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P, le({}, P)));
|
2873
2877
|
this.bumpSpace();
|
2874
|
-
var
|
2875
|
-
if (u !== "select" &&
|
2878
|
+
var A = this.parseIdentifierIfPossible(), S = 0;
|
2879
|
+
if (u !== "select" && A.value === "offset") {
|
2876
2880
|
if (!this.bumpIf(":"))
|
2877
2881
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
2878
2882
|
this.bumpSpace();
|
2879
|
-
var
|
2880
|
-
if (
|
2881
|
-
return
|
2882
|
-
this.bumpSpace(),
|
2883
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2884
|
+
if (f.err)
|
2885
|
+
return f;
|
2886
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), S = f.val;
|
2883
2887
|
}
|
2884
|
-
var
|
2885
|
-
if (
|
2886
|
-
return
|
2887
|
-
var
|
2888
|
-
if (
|
2889
|
-
return
|
2890
|
-
var
|
2888
|
+
var I = this.tryParsePluralOrSelectOptions(t, u, r, A);
|
2889
|
+
if (I.err)
|
2890
|
+
return I;
|
2891
|
+
var x = this.tryParseArgumentClose(i);
|
2892
|
+
if (x.err)
|
2893
|
+
return x;
|
2894
|
+
var G = g(i, this.clonePosition());
|
2891
2895
|
return u === "select" ? {
|
2892
2896
|
val: {
|
2893
|
-
type:
|
2897
|
+
type: y.select,
|
2894
2898
|
value: n,
|
2895
|
-
options: nt(
|
2896
|
-
location:
|
2899
|
+
options: nt(I.val),
|
2900
|
+
location: G
|
2897
2901
|
},
|
2898
2902
|
err: null
|
2899
2903
|
} : {
|
2900
2904
|
val: {
|
2901
|
-
type:
|
2905
|
+
type: y.plural,
|
2902
2906
|
value: n,
|
2903
|
-
options: nt(
|
2904
|
-
offset:
|
2907
|
+
options: nt(I.val),
|
2908
|
+
offset: S,
|
2905
2909
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
2906
|
-
location:
|
2910
|
+
location: G
|
2907
2911
|
},
|
2908
2912
|
err: null
|
2909
2913
|
};
|
@@ -2951,48 +2955,48 @@ var cn = (
|
|
2951
2955
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2952
2956
|
var n = [];
|
2953
2957
|
try {
|
2954
|
-
n =
|
2958
|
+
n = Xr(t);
|
2955
2959
|
} catch (i) {
|
2956
2960
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
2957
2961
|
}
|
2958
2962
|
return {
|
2959
2963
|
val: {
|
2960
|
-
type:
|
2964
|
+
type: X.number,
|
2961
2965
|
tokens: n,
|
2962
2966
|
location: r,
|
2963
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2967
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
|
2964
2968
|
},
|
2965
2969
|
err: null
|
2966
2970
|
};
|
2967
2971
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2968
2972
|
for (var o, s = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
2969
2973
|
if (a.length === 0) {
|
2970
|
-
var
|
2974
|
+
var f = this.clonePosition();
|
2971
2975
|
if (r !== "select" && this.bumpIf("=")) {
|
2972
|
-
var
|
2973
|
-
if (
|
2974
|
-
return
|
2975
|
-
l = g(
|
2976
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2977
|
+
if (c.err)
|
2978
|
+
return c;
|
2979
|
+
l = g(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
2976
2980
|
} else
|
2977
2981
|
break;
|
2978
2982
|
}
|
2979
2983
|
if (h.has(a))
|
2980
2984
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2981
2985
|
a === "other" && (s = !0), this.bumpSpace();
|
2982
|
-
var
|
2986
|
+
var d = this.clonePosition();
|
2983
2987
|
if (!this.bumpIf("{"))
|
2984
2988
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
2985
|
-
var
|
2986
|
-
if (
|
2987
|
-
return
|
2988
|
-
var m = this.tryParseArgumentClose(
|
2989
|
+
var x = this.parseMessage(t + 1, r, n);
|
2990
|
+
if (x.err)
|
2991
|
+
return x;
|
2992
|
+
var m = this.tryParseArgumentClose(d);
|
2989
2993
|
if (m.err)
|
2990
2994
|
return m;
|
2991
2995
|
u.push([
|
2992
2996
|
a,
|
2993
2997
|
{
|
2994
|
-
value:
|
2995
|
-
location: g(
|
2998
|
+
value: x.val,
|
2999
|
+
location: g(d, this.clonePosition())
|
2996
3000
|
}
|
2997
3001
|
]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, l = o.location;
|
2998
3002
|
}
|
@@ -3008,7 +3012,7 @@ var cn = (
|
|
3008
3012
|
break;
|
3009
3013
|
}
|
3010
3014
|
var h = g(i, this.clonePosition());
|
3011
|
-
return o ? (s *= n,
|
3015
|
+
return o ? (s *= n, un(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3012
3016
|
}, e.prototype.offset = function() {
|
3013
3017
|
return this.position.offset;
|
3014
3018
|
}, e.prototype.isEOF = function() {
|
@@ -3064,7 +3068,7 @@ var cn = (
|
|
3064
3068
|
break;
|
3065
3069
|
}
|
3066
3070
|
}, e.prototype.bumpSpace = function() {
|
3067
|
-
for (; !this.isEOF() &&
|
3071
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
3068
3072
|
this.bump();
|
3069
3073
|
}, e.prototype.peek = function() {
|
3070
3074
|
if (this.isEOF())
|
@@ -3074,47 +3078,47 @@ var cn = (
|
|
3074
3078
|
}, e;
|
3075
3079
|
}()
|
3076
3080
|
);
|
3077
|
-
function
|
3081
|
+
function $e(e) {
|
3078
3082
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3079
3083
|
}
|
3080
|
-
function fn(e) {
|
3081
|
-
return Le(e) || e === 47;
|
3082
|
-
}
|
3083
3084
|
function mn(e) {
|
3085
|
+
return $e(e) || e === 47;
|
3086
|
+
}
|
3087
|
+
function pn(e) {
|
3084
3088
|
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;
|
3085
3089
|
}
|
3086
|
-
function
|
3090
|
+
function Mt(e) {
|
3087
3091
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3088
3092
|
}
|
3089
|
-
function
|
3093
|
+
function gn(e) {
|
3090
3094
|
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;
|
3091
3095
|
}
|
3092
|
-
function
|
3096
|
+
function Re(e) {
|
3093
3097
|
e.forEach(function(t) {
|
3094
3098
|
if (delete t.location, Ht(t) || Tt(t))
|
3095
3099
|
for (var r in t.options)
|
3096
|
-
delete t.options[r].location,
|
3100
|
+
delete t.options[r].location, Re(t.options[r].value);
|
3097
3101
|
else
|
3098
|
-
|
3102
|
+
Et(t) && St(t.style) || (vt(t) || _t(t)) && Ie(t.style) ? delete t.style.location : Pt(t) && Re(t.children);
|
3099
3103
|
});
|
3100
3104
|
}
|
3101
|
-
function
|
3102
|
-
t === void 0 && (t = {}), t =
|
3105
|
+
function dn(e, t) {
|
3106
|
+
t === void 0 && (t = {}), t = le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3103
3107
|
var r = new cn(e, t).parse();
|
3104
3108
|
if (r.err) {
|
3105
3109
|
var n = SyntaxError(p[r.err.kind]);
|
3106
3110
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3107
3111
|
}
|
3108
|
-
return t != null && t.captureLocation ||
|
3112
|
+
return t != null && t.captureLocation || Re(r.val), r.val;
|
3109
3113
|
}
|
3110
|
-
var
|
3114
|
+
var z;
|
3111
3115
|
(function(e) {
|
3112
3116
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3113
|
-
})(
|
3114
|
-
var
|
3117
|
+
})(z || (z = {}));
|
3118
|
+
var ge = (
|
3115
3119
|
/** @class */
|
3116
3120
|
function(e) {
|
3117
|
-
|
3121
|
+
pe(t, e);
|
3118
3122
|
function t(r, n, i) {
|
3119
3123
|
var o = e.call(this, r) || this;
|
3120
3124
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3126,44 +3130,44 @@ var me = (
|
|
3126
3130
|
), ot = (
|
3127
3131
|
/** @class */
|
3128
3132
|
function(e) {
|
3129
|
-
|
3133
|
+
pe(t, e);
|
3130
3134
|
function t(r, n, i, o) {
|
3131
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3135
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
3132
3136
|
}
|
3133
3137
|
return t;
|
3134
|
-
}(
|
3135
|
-
),
|
3138
|
+
}(ge)
|
3139
|
+
), bn = (
|
3136
3140
|
/** @class */
|
3137
3141
|
function(e) {
|
3138
|
-
|
3142
|
+
pe(t, e);
|
3139
3143
|
function t(r, n, i) {
|
3140
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3144
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
3141
3145
|
}
|
3142
3146
|
return t;
|
3143
|
-
}(
|
3144
|
-
),
|
3147
|
+
}(ge)
|
3148
|
+
), xn = (
|
3145
3149
|
/** @class */
|
3146
3150
|
function(e) {
|
3147
|
-
|
3151
|
+
pe(t, e);
|
3148
3152
|
function t(r, n) {
|
3149
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3153
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
3150
3154
|
}
|
3151
3155
|
return t;
|
3152
|
-
}(
|
3156
|
+
}(ge)
|
3153
3157
|
), H;
|
3154
3158
|
(function(e) {
|
3155
3159
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3156
3160
|
})(H || (H = {}));
|
3157
|
-
function
|
3161
|
+
function yn(e) {
|
3158
3162
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3159
3163
|
var n = t[t.length - 1];
|
3160
3164
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3161
3165
|
}, []);
|
3162
3166
|
}
|
3163
|
-
function
|
3167
|
+
function En(e) {
|
3164
3168
|
return typeof e == "function";
|
3165
3169
|
}
|
3166
|
-
function
|
3170
|
+
function ue(e, t, r, n, i, o, s) {
|
3167
3171
|
if (e.length === 1 && Ye(e[0]))
|
3168
3172
|
return [
|
3169
3173
|
{
|
@@ -3180,98 +3184,98 @@ function se(e, t, r, n, i, o, s) {
|
|
3180
3184
|
});
|
3181
3185
|
continue;
|
3182
3186
|
}
|
3183
|
-
if (
|
3187
|
+
if (Ur(l)) {
|
3184
3188
|
typeof o == "number" && u.push({
|
3185
3189
|
type: H.literal,
|
3186
3190
|
value: r.getNumberFormat(t).format(o)
|
3187
3191
|
});
|
3188
3192
|
continue;
|
3189
3193
|
}
|
3190
|
-
var
|
3191
|
-
if (!(i &&
|
3192
|
-
throw new
|
3193
|
-
var
|
3194
|
-
if (
|
3195
|
-
(!
|
3196
|
-
type: typeof
|
3197
|
-
value:
|
3194
|
+
var f = l.value;
|
3195
|
+
if (!(i && f in i))
|
3196
|
+
throw new xn(f, s);
|
3197
|
+
var c = i[f];
|
3198
|
+
if (Dr(l)) {
|
3199
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
3200
|
+
type: typeof c == "string" ? H.literal : H.object,
|
3201
|
+
value: c
|
3198
3202
|
});
|
3199
3203
|
continue;
|
3200
3204
|
}
|
3201
|
-
if (
|
3202
|
-
var
|
3205
|
+
if (vt(l)) {
|
3206
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ie(l.style) ? l.style.parsedOptions : void 0;
|
3203
3207
|
u.push({
|
3204
3208
|
type: H.literal,
|
3205
|
-
value: r.getDateTimeFormat(t,
|
3209
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
3206
3210
|
});
|
3207
3211
|
continue;
|
3208
3212
|
}
|
3209
3213
|
if (_t(l)) {
|
3210
|
-
var
|
3214
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ie(l.style) ? l.style.parsedOptions : n.time.medium;
|
3211
3215
|
u.push({
|
3212
3216
|
type: H.literal,
|
3213
|
-
value: r.getDateTimeFormat(t,
|
3217
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
3214
3218
|
});
|
3215
3219
|
continue;
|
3216
3220
|
}
|
3217
|
-
if (
|
3218
|
-
var
|
3219
|
-
|
3221
|
+
if (Et(l)) {
|
3222
|
+
var d = typeof l.style == "string" ? n.number[l.style] : St(l.style) ? l.style.parsedOptions : void 0;
|
3223
|
+
d && d.scale && (c = c * (d.scale || 1)), u.push({
|
3220
3224
|
type: H.literal,
|
3221
|
-
value: r.getNumberFormat(t,
|
3225
|
+
value: r.getNumberFormat(t, d).format(c)
|
3222
3226
|
});
|
3223
3227
|
continue;
|
3224
3228
|
}
|
3225
3229
|
if (Pt(l)) {
|
3226
|
-
var
|
3227
|
-
if (!
|
3228
|
-
throw new
|
3229
|
-
var T =
|
3230
|
-
return
|
3230
|
+
var x = l.children, m = l.value, v = i[m];
|
3231
|
+
if (!En(v))
|
3232
|
+
throw new bn(m, "function", s);
|
3233
|
+
var T = ue(x, t, r, n, i, o), w = v(T.map(function(S) {
|
3234
|
+
return S.value;
|
3231
3235
|
}));
|
3232
|
-
Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(
|
3236
|
+
Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(S) {
|
3233
3237
|
return {
|
3234
|
-
type: typeof
|
3235
|
-
value:
|
3238
|
+
type: typeof S == "string" ? H.literal : H.object,
|
3239
|
+
value: S
|
3236
3240
|
};
|
3237
3241
|
}));
|
3238
3242
|
}
|
3239
3243
|
if (Ht(l)) {
|
3240
|
-
var P = l.options[
|
3244
|
+
var P = l.options[c] || l.options.other;
|
3241
3245
|
if (!P)
|
3242
|
-
throw new ot(l.value,
|
3243
|
-
u.push.apply(u,
|
3246
|
+
throw new ot(l.value, c, Object.keys(l.options), s);
|
3247
|
+
u.push.apply(u, ue(P.value, t, r, n, i));
|
3244
3248
|
continue;
|
3245
3249
|
}
|
3246
3250
|
if (Tt(l)) {
|
3247
|
-
var P = l.options["=".concat(
|
3251
|
+
var P = l.options["=".concat(c)];
|
3248
3252
|
if (!P) {
|
3249
3253
|
if (!Intl.PluralRules)
|
3250
|
-
throw new
|
3254
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
3251
3255
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3252
|
-
`,
|
3253
|
-
var
|
3254
|
-
P = l.options[
|
3256
|
+
`, z.MISSING_INTL_API, s);
|
3257
|
+
var A = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3258
|
+
P = l.options[A] || l.options.other;
|
3255
3259
|
}
|
3256
3260
|
if (!P)
|
3257
|
-
throw new ot(l.value,
|
3258
|
-
u.push.apply(u,
|
3261
|
+
throw new ot(l.value, c, Object.keys(l.options), s);
|
3262
|
+
u.push.apply(u, ue(P.value, t, r, n, i, c - (l.offset || 0)));
|
3259
3263
|
continue;
|
3260
3264
|
}
|
3261
3265
|
}
|
3262
|
-
return
|
3266
|
+
return yn(u);
|
3263
3267
|
}
|
3264
3268
|
function vn(e, t) {
|
3265
|
-
return t ?
|
3266
|
-
return r[n] =
|
3269
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3270
|
+
return r[n] = O(O({}, e[n]), t[n] || {}), r;
|
3267
3271
|
}, {})) : e;
|
3268
3272
|
}
|
3269
|
-
function
|
3273
|
+
function _n(e, t) {
|
3270
3274
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3271
3275
|
return r[n] = vn(e[n], t[n]), r;
|
3272
|
-
},
|
3276
|
+
}, O({}, e)) : e;
|
3273
3277
|
}
|
3274
|
-
function
|
3278
|
+
function Se(e) {
|
3275
3279
|
return {
|
3276
3280
|
create: function() {
|
3277
3281
|
return {
|
@@ -3285,39 +3289,39 @@ function Te(e) {
|
|
3285
3289
|
}
|
3286
3290
|
};
|
3287
3291
|
}
|
3288
|
-
function
|
3292
|
+
function Hn(e) {
|
3289
3293
|
return e === void 0 && (e = {
|
3290
3294
|
number: {},
|
3291
3295
|
dateTime: {},
|
3292
3296
|
pluralRules: {}
|
3293
3297
|
}), {
|
3294
|
-
getNumberFormat:
|
3298
|
+
getNumberFormat: He(function() {
|
3295
3299
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3296
3300
|
r[n] = arguments[n];
|
3297
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3301
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, _e([void 0], r, !1)))();
|
3298
3302
|
}, {
|
3299
|
-
cache:
|
3300
|
-
strategy:
|
3303
|
+
cache: Se(e.number),
|
3304
|
+
strategy: Te.variadic
|
3301
3305
|
}),
|
3302
|
-
getDateTimeFormat:
|
3306
|
+
getDateTimeFormat: He(function() {
|
3303
3307
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3304
3308
|
r[n] = arguments[n];
|
3305
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3309
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, _e([void 0], r, !1)))();
|
3306
3310
|
}, {
|
3307
|
-
cache:
|
3308
|
-
strategy:
|
3311
|
+
cache: Se(e.dateTime),
|
3312
|
+
strategy: Te.variadic
|
3309
3313
|
}),
|
3310
|
-
getPluralRules:
|
3314
|
+
getPluralRules: He(function() {
|
3311
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3312
3316
|
r[n] = arguments[n];
|
3313
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3317
|
+
return new ((t = Intl.PluralRules).bind.apply(t, _e([void 0], r, !1)))();
|
3314
3318
|
}, {
|
3315
|
-
cache:
|
3316
|
-
strategy:
|
3319
|
+
cache: Se(e.pluralRules),
|
3320
|
+
strategy: Te.variadic
|
3317
3321
|
})
|
3318
3322
|
};
|
3319
3323
|
}
|
3320
|
-
var
|
3324
|
+
var Tn = (
|
3321
3325
|
/** @class */
|
3322
3326
|
function() {
|
3323
3327
|
function e(t, r, n, i) {
|
@@ -3331,12 +3335,12 @@ var Hn = (
|
|
3331
3335
|
var a = o.formatToParts(h);
|
3332
3336
|
if (a.length === 1)
|
3333
3337
|
return a[0].value;
|
3334
|
-
var l = a.reduce(function(
|
3335
|
-
return !
|
3338
|
+
var l = a.reduce(function(f, c) {
|
3339
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3336
3340
|
}, []);
|
3337
3341
|
return l.length <= 1 ? l[0] || "" : l;
|
3338
3342
|
}, this.formatToParts = function(h) {
|
3339
|
-
return
|
3343
|
+
return ue(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3340
3344
|
}, this.resolvedOptions = function() {
|
3341
3345
|
var h;
|
3342
3346
|
return {
|
@@ -3349,13 +3353,13 @@ var Hn = (
|
|
3349
3353
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3350
3354
|
var s = i || {};
|
3351
3355
|
s.formatters;
|
3352
|
-
var u =
|
3353
|
-
this.ast = e.__parse(t,
|
3356
|
+
var u = Ir(s, ["formatters"]);
|
3357
|
+
this.ast = e.__parse(t, O(O({}, u), { locale: this.resolvedLocale }));
|
3354
3358
|
} else
|
3355
3359
|
this.ast = t;
|
3356
3360
|
if (!Array.isArray(this.ast))
|
3357
3361
|
throw new TypeError("A message must be provided as a String or AST.");
|
3358
|
-
this.formats =
|
3362
|
+
this.formats = _n(e.formats, n), this.formatters = i && i.formatters || Hn(this.formatterCache);
|
3359
3363
|
}
|
3360
3364
|
return Object.defineProperty(e, "defaultLocale", {
|
3361
3365
|
get: function() {
|
@@ -3368,7 +3372,7 @@ var Hn = (
|
|
3368
3372
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3369
3373
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3370
3374
|
}
|
3371
|
-
}, e.__parse =
|
3375
|
+
}, e.__parse = dn, e.formats = {
|
3372
3376
|
number: {
|
3373
3377
|
integer: {
|
3374
3378
|
maximumFractionDigits: 0
|
@@ -3429,7 +3433,7 @@ var Hn = (
|
|
3429
3433
|
}, e;
|
3430
3434
|
}()
|
3431
3435
|
);
|
3432
|
-
function
|
3436
|
+
function Pn(e, t) {
|
3433
3437
|
if (t == null)
|
3434
3438
|
return;
|
3435
3439
|
if (t in e)
|
@@ -3450,36 +3454,36 @@ function Tn(e, t) {
|
|
3450
3454
|
n = void 0;
|
3451
3455
|
return n;
|
3452
3456
|
}
|
3453
|
-
const
|
3457
|
+
const L = {}, Sn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Lt = (e, t) => {
|
3454
3458
|
if (t == null)
|
3455
3459
|
return;
|
3456
|
-
if (t in
|
3457
|
-
return
|
3458
|
-
const r =
|
3460
|
+
if (t in L && e in L[t])
|
3461
|
+
return L[t][e];
|
3462
|
+
const r = de(t);
|
3459
3463
|
for (let n = 0; n < r.length; n++) {
|
3460
|
-
const i = r[n], o =
|
3464
|
+
const i = r[n], o = An(i, e);
|
3461
3465
|
if (o)
|
3462
|
-
return
|
3466
|
+
return Sn(e, t, o);
|
3463
3467
|
}
|
3464
3468
|
};
|
3465
|
-
let
|
3466
|
-
const
|
3469
|
+
let je;
|
3470
|
+
const ie = me({});
|
3467
3471
|
function Nn(e) {
|
3468
|
-
return
|
3472
|
+
return je[e] || null;
|
3469
3473
|
}
|
3470
3474
|
function Ct(e) {
|
3471
|
-
return e in
|
3475
|
+
return e in je;
|
3472
3476
|
}
|
3473
|
-
function
|
3477
|
+
function An(e, t) {
|
3474
3478
|
if (!Ct(e))
|
3475
3479
|
return null;
|
3476
3480
|
const r = Nn(e);
|
3477
|
-
return
|
3481
|
+
return Pn(r, t);
|
3478
3482
|
}
|
3479
|
-
function
|
3483
|
+
function Bn(e) {
|
3480
3484
|
if (e == null)
|
3481
3485
|
return;
|
3482
|
-
const t =
|
3486
|
+
const t = de(e);
|
3483
3487
|
for (let r = 0; r < t.length; r++) {
|
3484
3488
|
const n = t[r];
|
3485
3489
|
if (Ct(n))
|
@@ -3487,53 +3491,53 @@ function Sn(e) {
|
|
3487
3491
|
}
|
3488
3492
|
}
|
3489
3493
|
function $t(e, ...t) {
|
3490
|
-
delete
|
3494
|
+
delete L[e], ie.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
3491
3495
|
}
|
3492
|
-
|
3493
|
-
[
|
3496
|
+
W(
|
3497
|
+
[ie],
|
3494
3498
|
([e]) => Object.keys(e)
|
3495
3499
|
);
|
3496
|
-
|
3497
|
-
const
|
3498
|
-
function
|
3499
|
-
|
3500
|
+
ie.subscribe((e) => je = e);
|
3501
|
+
const he = {};
|
3502
|
+
function wn(e, t) {
|
3503
|
+
he[e].delete(t), he[e].size === 0 && delete he[e];
|
3500
3504
|
}
|
3501
3505
|
function Rt(e) {
|
3502
|
-
return
|
3506
|
+
return he[e];
|
3503
3507
|
}
|
3504
|
-
function
|
3505
|
-
return
|
3508
|
+
function On(e) {
|
3509
|
+
return de(e).map((t) => {
|
3506
3510
|
const r = Rt(t);
|
3507
3511
|
return [t, r ? [...r] : []];
|
3508
3512
|
}).filter(([, t]) => t.length > 0);
|
3509
3513
|
}
|
3510
|
-
function
|
3511
|
-
return e == null ? !1 :
|
3514
|
+
function Fe(e) {
|
3515
|
+
return e == null ? !1 : de(e).some(
|
3512
3516
|
(t) => {
|
3513
3517
|
var r;
|
3514
3518
|
return (r = Rt(t)) == null ? void 0 : r.size;
|
3515
3519
|
}
|
3516
3520
|
);
|
3517
3521
|
}
|
3518
|
-
function
|
3522
|
+
function In(e, t) {
|
3519
3523
|
return Promise.all(
|
3520
|
-
t.map((n) => (
|
3524
|
+
t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
|
3521
3525
|
).then((n) => $t(e, ...n));
|
3522
3526
|
}
|
3523
|
-
const
|
3527
|
+
const Y = {};
|
3524
3528
|
function Ft(e) {
|
3525
|
-
if (
|
3526
|
-
return e in
|
3527
|
-
const t =
|
3528
|
-
return
|
3529
|
+
if (!Fe(e))
|
3530
|
+
return e in Y ? Y[e] : Promise.resolve();
|
3531
|
+
const t = On(e);
|
3532
|
+
return Y[e] = Promise.all(
|
3529
3533
|
t.map(
|
3530
|
-
([r, n]) =>
|
3534
|
+
([r, n]) => In(r, n)
|
3531
3535
|
)
|
3532
3536
|
).then(() => {
|
3533
|
-
if (
|
3537
|
+
if (Fe(e))
|
3534
3538
|
return Ft(e);
|
3535
|
-
delete
|
3536
|
-
}),
|
3539
|
+
delete Y[e];
|
3540
|
+
}), Y[e];
|
3537
3541
|
}
|
3538
3542
|
const Mn = {
|
3539
3543
|
number: {
|
@@ -3564,141 +3568,141 @@ const Mn = {
|
|
3564
3568
|
timeZoneName: "short"
|
3565
3569
|
}
|
3566
3570
|
}
|
3567
|
-
},
|
3571
|
+
}, Ln = {
|
3568
3572
|
fallbackLocale: null,
|
3569
3573
|
loadingDelay: 200,
|
3570
3574
|
formats: Mn,
|
3571
3575
|
warnOnMissingMessages: !0,
|
3572
3576
|
handleMissingMessage: void 0,
|
3573
3577
|
ignoreTag: !0
|
3574
|
-
},
|
3575
|
-
function
|
3576
|
-
return
|
3578
|
+
}, Cn = Ln;
|
3579
|
+
function Z() {
|
3580
|
+
return Cn;
|
3577
3581
|
}
|
3578
|
-
const
|
3579
|
-
var
|
3582
|
+
const Ne = me(!1);
|
3583
|
+
var $n = Object.defineProperty, Rn = Object.defineProperties, Fn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
3580
3584
|
for (var r in t || (t = {}))
|
3581
|
-
|
3585
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
3582
3586
|
if (at)
|
3583
3587
|
for (var r of at(t))
|
3584
|
-
|
3588
|
+
Dn.call(t, r) && st(e, r, t[r]);
|
3585
3589
|
return e;
|
3586
|
-
},
|
3587
|
-
let
|
3588
|
-
const
|
3590
|
+
}, jn = (e, t) => Rn(e, Fn(t));
|
3591
|
+
let Ge;
|
3592
|
+
const fe = me(null);
|
3589
3593
|
function ut(e) {
|
3590
3594
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3591
3595
|
}
|
3592
|
-
function
|
3596
|
+
function de(e, t = Z().fallbackLocale) {
|
3593
3597
|
const r = ut(e);
|
3594
3598
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
|
3595
3599
|
}
|
3596
|
-
function
|
3597
|
-
return
|
3600
|
+
function F() {
|
3601
|
+
return Ge != null ? Ge : void 0;
|
3598
3602
|
}
|
3599
|
-
|
3600
|
-
|
3603
|
+
fe.subscribe((e) => {
|
3604
|
+
Ge = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3601
3605
|
});
|
3602
3606
|
const kn = (e) => {
|
3603
|
-
if (e &&
|
3604
|
-
const { loadingDelay: t } =
|
3607
|
+
if (e && Bn(e) && Fe(e)) {
|
3608
|
+
const { loadingDelay: t } = Z();
|
3605
3609
|
let r;
|
3606
|
-
return typeof window != "undefined" &&
|
3607
|
-
() =>
|
3610
|
+
return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
|
3611
|
+
() => Ne.set(!0),
|
3608
3612
|
t
|
3609
|
-
) :
|
3610
|
-
|
3613
|
+
) : Ne.set(!0), Ft(e).then(() => {
|
3614
|
+
fe.set(e);
|
3611
3615
|
}).finally(() => {
|
3612
|
-
clearTimeout(r),
|
3616
|
+
clearTimeout(r), Ne.set(!1);
|
3613
3617
|
});
|
3614
3618
|
}
|
3615
|
-
return
|
3616
|
-
},
|
3619
|
+
return fe.set(e);
|
3620
|
+
}, Q = jn(Un({}, fe), {
|
3617
3621
|
set: kn
|
3618
|
-
}),
|
3622
|
+
}), be = (e) => {
|
3619
3623
|
const t = /* @__PURE__ */ Object.create(null);
|
3620
3624
|
return (n) => {
|
3621
3625
|
const i = JSON.stringify(n);
|
3622
3626
|
return i in t ? t[i] : t[i] = e(n);
|
3623
3627
|
};
|
3624
3628
|
};
|
3625
|
-
var
|
3629
|
+
var Vn = Object.defineProperty, ce = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
3626
3630
|
for (var r in t || (t = {}))
|
3627
3631
|
Gt.call(t, r) && ht(e, r, t[r]);
|
3628
|
-
if (
|
3629
|
-
for (var r of
|
3632
|
+
if (ce)
|
3633
|
+
for (var r of ce(t))
|
3630
3634
|
Dt.call(t, r) && ht(e, r, t[r]);
|
3631
3635
|
return e;
|
3632
|
-
},
|
3636
|
+
}, q = (e, t) => {
|
3633
3637
|
var r = {};
|
3634
3638
|
for (var n in e)
|
3635
3639
|
Gt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3636
|
-
if (e != null &&
|
3637
|
-
for (var n of
|
3640
|
+
if (e != null && ce)
|
3641
|
+
for (var n of ce(e))
|
3638
3642
|
t.indexOf(n) < 0 && Dt.call(e, n) && (r[n] = e[n]);
|
3639
3643
|
return r;
|
3640
3644
|
};
|
3641
|
-
const
|
3642
|
-
const { formats: r } =
|
3645
|
+
const re = (e, t) => {
|
3646
|
+
const { formats: r } = Z();
|
3643
3647
|
if (e in r && t in r[e])
|
3644
3648
|
return r[e][t];
|
3645
3649
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3646
|
-
},
|
3650
|
+
}, Xn = be(
|
3647
3651
|
(e) => {
|
3648
|
-
var t = e, { locale: r, format: n } = t, i =
|
3652
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
3649
3653
|
if (r == null)
|
3650
3654
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3651
|
-
return n && (i =
|
3655
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
3652
3656
|
}
|
3653
|
-
),
|
3657
|
+
), zn = be(
|
3654
3658
|
(e) => {
|
3655
|
-
var t = e, { locale: r, format: n } = t, i =
|
3659
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
3656
3660
|
if (r == null)
|
3657
3661
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3658
|
-
return n ? i =
|
3662
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
3659
3663
|
}
|
3660
|
-
),
|
3664
|
+
), Zn = be(
|
3661
3665
|
(e) => {
|
3662
|
-
var t = e, { locale: r, format: n } = t, i =
|
3666
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
3663
3667
|
if (r == null)
|
3664
3668
|
throw new Error(
|
3665
3669
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3666
3670
|
);
|
3667
|
-
return n ? i =
|
3671
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
3668
3672
|
}
|
3669
|
-
),
|
3673
|
+
), Wn = (e = {}) => {
|
3670
3674
|
var t = e, {
|
3671
|
-
locale: r =
|
3672
|
-
} = t, n =
|
3675
|
+
locale: r = F()
|
3676
|
+
} = t, n = q(t, [
|
3673
3677
|
"locale"
|
3674
3678
|
]);
|
3675
|
-
return
|
3676
|
-
},
|
3679
|
+
return Xn(ke({ locale: r }, n));
|
3680
|
+
}, Qn = (e = {}) => {
|
3677
3681
|
var t = e, {
|
3678
|
-
locale: r =
|
3679
|
-
} = t, n =
|
3682
|
+
locale: r = F()
|
3683
|
+
} = t, n = q(t, [
|
3680
3684
|
"locale"
|
3681
3685
|
]);
|
3682
|
-
return
|
3683
|
-
},
|
3686
|
+
return zn(ke({ locale: r }, n));
|
3687
|
+
}, qn = (e = {}) => {
|
3684
3688
|
var t = e, {
|
3685
|
-
locale: r =
|
3686
|
-
} = t, n =
|
3689
|
+
locale: r = F()
|
3690
|
+
} = t, n = q(t, [
|
3687
3691
|
"locale"
|
3688
3692
|
]);
|
3689
|
-
return
|
3690
|
-
},
|
3693
|
+
return Zn(ke({ locale: r }, n));
|
3694
|
+
}, Jn = be(
|
3691
3695
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3692
|
-
(e, t =
|
3693
|
-
ignoreTag:
|
3696
|
+
(e, t = F()) => new Tn(e, t, Z().formats, {
|
3697
|
+
ignoreTag: Z().ignoreTag
|
3694
3698
|
})
|
3695
|
-
),
|
3699
|
+
), Yn = (e, t = {}) => {
|
3696
3700
|
var r, n, i, o;
|
3697
3701
|
let s = t;
|
3698
3702
|
typeof e == "object" && (s = e, e = s.id);
|
3699
3703
|
const {
|
3700
3704
|
values: u,
|
3701
|
-
locale: h =
|
3705
|
+
locale: h = F(),
|
3702
3706
|
default: a
|
3703
3707
|
} = s;
|
3704
3708
|
if (h == null)
|
@@ -3707,35 +3711,35 @@ const te = (e, t) => {
|
|
3707
3711
|
);
|
3708
3712
|
let l = Lt(e, h);
|
3709
3713
|
if (!l)
|
3710
|
-
l = (o = (i = (n = (r =
|
3714
|
+
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;
|
3711
3715
|
else if (typeof l != "string")
|
3712
3716
|
return console.warn(
|
3713
3717
|
`[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.`
|
3714
3718
|
), l;
|
3715
3719
|
if (!u)
|
3716
3720
|
return l;
|
3717
|
-
let
|
3721
|
+
let f = l;
|
3718
3722
|
try {
|
3719
|
-
|
3720
|
-
} catch (
|
3721
|
-
|
3723
|
+
f = Jn(l, h).format(u);
|
3724
|
+
} catch (c) {
|
3725
|
+
c instanceof Error && console.warn(
|
3722
3726
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
3723
|
-
|
3727
|
+
c.message
|
3724
3728
|
);
|
3725
3729
|
}
|
3726
|
-
return
|
3727
|
-
},
|
3728
|
-
|
3729
|
-
|
3730
|
-
|
3731
|
-
|
3730
|
+
return f;
|
3731
|
+
}, Kn = (e, t) => qn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Wn(t).format(e), ri = (e, t = F()) => Lt(e, t), ni = W([Q, ie], () => Yn);
|
3732
|
+
W([Q], () => Kn);
|
3733
|
+
W([Q], () => ei);
|
3734
|
+
W([Q], () => ti);
|
3735
|
+
W([Q, ie], () => ri);
|
3732
3736
|
function lt(e, t) {
|
3733
3737
|
$t(e, t);
|
3734
3738
|
}
|
3735
|
-
function
|
3736
|
-
|
3739
|
+
function ii(e) {
|
3740
|
+
Q.set(e);
|
3737
3741
|
}
|
3738
|
-
const
|
3742
|
+
const ft = {
|
3739
3743
|
en: {
|
3740
3744
|
pageNotFound: "Page not found",
|
3741
3745
|
pageNotFoundMessage: "The page you were looking for could not be found. Please go back to our Homepage.",
|
@@ -3827,13 +3831,13 @@ const ct = {
|
|
3827
3831
|
home: "Go to homepage"
|
3828
3832
|
}
|
3829
3833
|
};
|
3830
|
-
function
|
3834
|
+
function oi(e, t) {
|
3831
3835
|
if (e) {
|
3832
3836
|
const r = document.createElement("style");
|
3833
3837
|
r.innerHTML = t, e.appendChild(r);
|
3834
3838
|
}
|
3835
3839
|
}
|
3836
|
-
function
|
3840
|
+
function ai(e, t) {
|
3837
3841
|
const r = new URL(t);
|
3838
3842
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
3839
3843
|
const i = document.createElement("style");
|
@@ -3842,7 +3846,7 @@ function oi(e, t) {
|
|
3842
3846
|
console.error("There was an error while trying to load client styling from URL", n);
|
3843
3847
|
});
|
3844
3848
|
}
|
3845
|
-
function
|
3849
|
+
function si(e, t, r) {
|
3846
3850
|
if (window.emMessageBus) {
|
3847
3851
|
const n = document.createElement("style");
|
3848
3852
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -3850,74 +3854,74 @@ function ai(e, t, r) {
|
|
3850
3854
|
});
|
3851
3855
|
}
|
3852
3856
|
}
|
3853
|
-
function
|
3857
|
+
function ui(e) {
|
3854
3858
|
Wt(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}}");
|
3855
3859
|
}
|
3856
|
-
function
|
3857
|
-
let t, r, n, i, o, s, u, h, a, l,
|
3860
|
+
function hi(e) {
|
3861
|
+
let t, r, n, i, o, s, u, h, a, l, f, c, d = (
|
3858
3862
|
/*$_*/
|
3859
3863
|
e[1]("pageNotFound") + ""
|
3860
|
-
),
|
3864
|
+
), x, m, v, T = (
|
3861
3865
|
/*$_*/
|
3862
3866
|
e[1]("pageNotFoundMessage") + ""
|
3863
|
-
), w, P,
|
3867
|
+
), w, P, A, S = (
|
3864
3868
|
/*$_*/
|
3865
3869
|
e[1]("home") + ""
|
3866
|
-
),
|
3870
|
+
), I, G, Ve;
|
3867
3871
|
return {
|
3868
3872
|
c() {
|
3869
|
-
t =
|
3873
|
+
t = $("div"), r = $("div"), n = M("svg"), i = M("g"), o = M("path"), s = M("path"), u = M("path"), h = M("path"), a = M("path"), l = M("path"), f = ye(), c = $("p"), x = ae(d), m = ye(), v = $("p"), w = ae(T), P = ye(), A = $("button"), I = ae(S), b(o, "class", "a"), b(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"), b(o, "transform", "translate(-658.898 -446.452)"), b(s, "class", "a"), b(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"), b(s, "transform", "translate(-433.716 -446.252)"), b(u, "class", "a"), b(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"), b(u, "transform", "translate(-200.173 -446.452)"), b(h, "class", "a"), b(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"), b(a, "class", "a"), b(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"), b(a, "transform", "translate(-116.772 -116.794)"), b(l, "class", "a"), b(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"), b(l, "transform", "translate(-250.22 -116.794)"), b(i, "transform", "translate(-9.37 -9.34)"), b(n, "class", "svgColor"), b(n, "xmlns", "http://www.w3.org/2000/svg"), b(n, "width", "130.345"), b(n, "height", "130.345"), b(n, "viewBox", "0 0 130.345 130.345"), b(c, "class", "PageTitle"), b(v, "class", "PageContent"), b(A, "class", "ButtonDefaultSmall"), b(r, "class", "NotFoundPage"), b(t, "class", "PageWrapper");
|
3870
3874
|
},
|
3871
|
-
m(
|
3872
|
-
gt(
|
3873
|
-
|
3875
|
+
m(C, J) {
|
3876
|
+
gt(C, t, J), _(t, r), _(r, n), _(n, i), _(i, o), _(i, s), _(i, u), _(i, h), _(i, a), _(i, l), _(r, f), _(r, c), _(c, x), _(r, m), _(r, v), _(v, w), _(r, P), _(r, A), _(A, I), e[9](t), G || (Ve = Jt(
|
3877
|
+
A,
|
3874
3878
|
"click",
|
3875
3879
|
/*click_handler*/
|
3876
3880
|
e[8]
|
3877
|
-
),
|
3881
|
+
), G = !0);
|
3878
3882
|
},
|
3879
|
-
p(
|
3880
|
-
|
3881
|
-
2 &&
|
3882
|
-
|
3883
|
+
p(C, [J]) {
|
3884
|
+
J & /*$_*/
|
3885
|
+
2 && d !== (d = /*$_*/
|
3886
|
+
C[1]("pageNotFound") + "") && Ee(x, d), J & /*$_*/
|
3883
3887
|
2 && T !== (T = /*$_*/
|
3884
|
-
|
3885
|
-
2 &&
|
3886
|
-
|
3888
|
+
C[1]("pageNotFoundMessage") + "") && Ee(w, T), J & /*$_*/
|
3889
|
+
2 && S !== (S = /*$_*/
|
3890
|
+
C[1]("home") + "") && Ee(I, S);
|
3887
3891
|
},
|
3888
|
-
i:
|
3889
|
-
o:
|
3890
|
-
d(
|
3891
|
-
|
3892
|
+
i: B,
|
3893
|
+
o: B,
|
3894
|
+
d(C) {
|
3895
|
+
C && Ue(t), e[9](null), G = !1, Ve();
|
3892
3896
|
}
|
3893
3897
|
};
|
3894
3898
|
}
|
3895
|
-
function
|
3899
|
+
function li(e, t, r) {
|
3896
3900
|
let n;
|
3897
|
-
Zt(e,
|
3901
|
+
Zt(e, ni, (m) => r(1, n = m));
|
3898
3902
|
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, a;
|
3899
3903
|
const l = () => {
|
3900
|
-
fetch(u).then((
|
3901
|
-
Object.keys(
|
3902
|
-
lt(T,
|
3904
|
+
fetch(u).then((v) => v.json()).then((v) => {
|
3905
|
+
Object.keys(v).forEach((T) => {
|
3906
|
+
lt(T, v[T]);
|
3903
3907
|
});
|
3904
|
-
}).catch((
|
3905
|
-
console.log(
|
3908
|
+
}).catch((v) => {
|
3909
|
+
console.log(v);
|
3906
3910
|
});
|
3907
3911
|
};
|
3908
|
-
Object.keys(
|
3909
|
-
lt(m,
|
3912
|
+
Object.keys(ft).forEach((m) => {
|
3913
|
+
lt(m, ft[m]);
|
3910
3914
|
});
|
3911
|
-
const
|
3915
|
+
const f = () => {
|
3912
3916
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
3913
|
-
},
|
3914
|
-
|
3917
|
+
}, c = () => {
|
3918
|
+
ii(i);
|
3915
3919
|
};
|
3916
3920
|
tr(() => () => {
|
3917
3921
|
});
|
3918
|
-
const
|
3919
|
-
function
|
3920
|
-
|
3922
|
+
const d = () => f();
|
3923
|
+
function x(m) {
|
3924
|
+
Ae[m ? "unshift" : "push"](() => {
|
3921
3925
|
a = m, r(0, a);
|
3922
3926
|
});
|
3923
3927
|
}
|
@@ -3925,31 +3929,31 @@ function hi(e, t, r) {
|
|
3925
3929
|
"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);
|
3926
3930
|
}, e.$$.update = () => {
|
3927
3931
|
e.$$.dirty & /*lang*/
|
3928
|
-
8 && i &&
|
3932
|
+
8 && i && c(), e.$$.dirty & /*translationurl*/
|
3929
3933
|
64 && u && l(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3930
|
-
17 && o && a &&
|
3931
|
-
33 && s && a &&
|
3932
|
-
129 && h && a &&
|
3934
|
+
17 && o && a && oi(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3935
|
+
33 && s && a && ai(a, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3936
|
+
129 && h && a && si(a, `${h}.Style`);
|
3933
3937
|
}, [
|
3934
3938
|
a,
|
3935
3939
|
n,
|
3936
|
-
|
3940
|
+
f,
|
3937
3941
|
i,
|
3938
3942
|
o,
|
3939
3943
|
s,
|
3940
3944
|
u,
|
3941
3945
|
h,
|
3942
|
-
|
3943
|
-
|
3946
|
+
d,
|
3947
|
+
x
|
3944
3948
|
];
|
3945
3949
|
}
|
3946
|
-
class
|
3950
|
+
class fi extends mr {
|
3947
3951
|
constructor(t) {
|
3948
|
-
super(),
|
3952
|
+
super(), fr(
|
3949
3953
|
this,
|
3950
3954
|
t,
|
3955
|
+
li,
|
3951
3956
|
hi,
|
3952
|
-
ui,
|
3953
3957
|
mt,
|
3954
3958
|
{
|
3955
3959
|
lang: 3,
|
@@ -3958,41 +3962,41 @@ class li extends mr {
|
|
3958
3962
|
translationurl: 6,
|
3959
3963
|
mbsource: 7
|
3960
3964
|
},
|
3961
|
-
|
3965
|
+
ui
|
3962
3966
|
);
|
3963
3967
|
}
|
3964
3968
|
get lang() {
|
3965
3969
|
return this.$$.ctx[3];
|
3966
3970
|
}
|
3967
3971
|
set lang(t) {
|
3968
|
-
this.$$set({ lang: t }),
|
3972
|
+
this.$$set({ lang: t }), R();
|
3969
3973
|
}
|
3970
3974
|
get clientstyling() {
|
3971
3975
|
return this.$$.ctx[4];
|
3972
3976
|
}
|
3973
3977
|
set clientstyling(t) {
|
3974
|
-
this.$$set({ clientstyling: t }),
|
3978
|
+
this.$$set({ clientstyling: t }), R();
|
3975
3979
|
}
|
3976
3980
|
get clientstylingurl() {
|
3977
3981
|
return this.$$.ctx[5];
|
3978
3982
|
}
|
3979
3983
|
set clientstylingurl(t) {
|
3980
|
-
this.$$set({ clientstylingurl: t }),
|
3984
|
+
this.$$set({ clientstylingurl: t }), R();
|
3981
3985
|
}
|
3982
3986
|
get translationurl() {
|
3983
3987
|
return this.$$.ctx[6];
|
3984
3988
|
}
|
3985
3989
|
set translationurl(t) {
|
3986
|
-
this.$$set({ translationurl: t }),
|
3990
|
+
this.$$set({ translationurl: t }), R();
|
3987
3991
|
}
|
3988
3992
|
get mbsource() {
|
3989
3993
|
return this.$$.ctx[7];
|
3990
3994
|
}
|
3991
3995
|
set mbsource(t) {
|
3992
|
-
this.$$set({ mbsource: t }),
|
3996
|
+
this.$$set({ mbsource: t }), R();
|
3993
3997
|
}
|
3994
3998
|
}
|
3995
|
-
|
3999
|
+
cr(fi, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3996
4000
|
export {
|
3997
|
-
|
4001
|
+
fi as default
|
3998
4002
|
};
|