@everymatrix/casino-categories 1.60.2 → 1.61.1
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/{CasinoCategories-DQeBuvRc.js → CasinoCategories-C6gikUfx.js} +705 -700
- package/components/{CasinoCategories-DHQac9qr.js → CasinoCategories-Du3Wk9xO.js} +685 -680
- package/components/CasinoCategories-PxIDHmJF.cjs +16 -0
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b7bbd57e-BBUBsGhp.js +550 -0
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +1 -0
- package/stencil/index-b7bbd57e-wJC_uAuk.js +534 -0
- package/stencil/ui-image-38c3c15f-ByZECnci.js +39 -0
- package/stencil/ui-image-38c3c15f-D_V48h1L.js +39 -0
- package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +1 -0
- package/stencil/ui-image-BNrzgSpe.js +11 -0
- package/stencil/ui-image-CLghOqUz.cjs +1 -0
- package/stencil/ui-image-CPH6BqjQ.js +29 -0
- package/components/CasinoCategories-DPjXR6Uq.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Kt = Object.defineProperty, er = Object.defineProperties;
|
|
2
|
+
var tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
rr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var r of Je(t))
|
|
10
|
+
nr.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ye = (e, t) => er(e, tr(t));
|
|
13
|
+
var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,53 +27,54 @@ var Ye = (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
|
-
|
|
30
|
+
import "../stencil/ui-image-CPH6BqjQ.js";
|
|
31
|
+
function L() {
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function vt(e) {
|
|
33
34
|
return e();
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function et() {
|
|
36
37
|
return /* @__PURE__ */ Object.create(null);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(vt);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function Xe(e) {
|
|
42
43
|
return typeof e == "function";
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function Tt(e, t) {
|
|
45
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
47
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
48
|
+
let fe;
|
|
49
|
+
function be(e, t) {
|
|
50
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function ir(e) {
|
|
52
53
|
return Object.keys(e).length === 0;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function Ct(e, ...t) {
|
|
55
56
|
if (e == null) {
|
|
56
57
|
for (const n of t)
|
|
57
58
|
n(void 0);
|
|
58
|
-
return
|
|
59
|
+
return L;
|
|
59
60
|
}
|
|
60
61
|
const r = e.subscribe(...t);
|
|
61
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function or(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
65
66
|
}
|
|
66
67
|
function v(e, t) {
|
|
67
68
|
e.appendChild(t);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
70
|
+
function sr(e, t, r) {
|
|
71
|
+
const n = ar(e);
|
|
71
72
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = S("style");
|
|
74
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function ar(e) {
|
|
77
78
|
if (!e)
|
|
78
79
|
return document;
|
|
79
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,46 +84,50 @@ function sr(e) {
|
|
|
83
84
|
t
|
|
84
85
|
) : e.ownerDocument;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function ur(e, t) {
|
|
87
88
|
return v(
|
|
88
89
|
/** @type {Document} */
|
|
89
90
|
e.head || e,
|
|
90
91
|
t
|
|
91
92
|
), t.sheet;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function K(e, t, r) {
|
|
94
95
|
e.insertBefore(t, r || null);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function k(e) {
|
|
97
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function tt(e, t) {
|
|
100
101
|
for (let r = 0; r < e.length; r += 1)
|
|
101
102
|
e[r] && e[r].d(t);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function S(e) {
|
|
104
105
|
return document.createElement(e);
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function G(e) {
|
|
107
108
|
return document.createTextNode(e);
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
110
|
+
function U() {
|
|
111
|
+
return G(" ");
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function Ht(e, t, r, n) {
|
|
113
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function I(e, t, r) {
|
|
116
117
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function R(e, t, r) {
|
|
120
|
+
const n = t.toLowerCase();
|
|
121
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
|
|
122
|
+
}
|
|
123
|
+
function hr(e) {
|
|
119
124
|
return Array.from(e.childNodes);
|
|
120
125
|
}
|
|
121
|
-
function
|
|
126
|
+
function F(e, t) {
|
|
122
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
128
|
t);
|
|
124
129
|
}
|
|
125
|
-
function
|
|
130
|
+
function lr(e) {
|
|
126
131
|
const t = {};
|
|
127
132
|
return e.childNodes.forEach(
|
|
128
133
|
/** @param {Element} node */
|
|
@@ -131,98 +136,98 @@ function hr(e) {
|
|
|
131
136
|
}
|
|
132
137
|
), t;
|
|
133
138
|
}
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
139
|
+
let oe;
|
|
140
|
+
function ie(e) {
|
|
141
|
+
oe = e;
|
|
137
142
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
143
|
+
function fr() {
|
|
144
|
+
if (!oe)
|
|
140
145
|
throw new Error("Function called outside component initialization");
|
|
141
|
-
return
|
|
146
|
+
return oe;
|
|
142
147
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
148
|
+
function cr(e) {
|
|
149
|
+
fr().$$.on_mount.push(e);
|
|
145
150
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
151
|
+
const W = [], Le = [];
|
|
152
|
+
let Z = [];
|
|
153
|
+
const rt = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Ie = !1;
|
|
155
|
+
function mr() {
|
|
156
|
+
Ie || (Ie = !0, gr.then(M));
|
|
152
157
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
158
|
+
function Me(e) {
|
|
159
|
+
Z.push(e);
|
|
155
160
|
}
|
|
156
|
-
const
|
|
157
|
-
let
|
|
161
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
162
|
+
let X = 0;
|
|
158
163
|
function M() {
|
|
159
|
-
if (
|
|
164
|
+
if (X !== 0)
|
|
160
165
|
return;
|
|
161
|
-
const e =
|
|
166
|
+
const e = oe;
|
|
162
167
|
do {
|
|
163
168
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const t =
|
|
166
|
-
|
|
169
|
+
for (; X < W.length; ) {
|
|
170
|
+
const t = W[X];
|
|
171
|
+
X++, ie(t), pr(t.$$);
|
|
167
172
|
}
|
|
168
173
|
} catch (t) {
|
|
169
|
-
throw
|
|
174
|
+
throw W.length = 0, X = 0, t;
|
|
170
175
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
173
|
-
for (let t = 0; t <
|
|
174
|
-
const r =
|
|
175
|
-
|
|
176
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
177
|
+
Le.pop()();
|
|
178
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
179
|
+
const r = Z[t];
|
|
180
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
176
181
|
}
|
|
177
|
-
|
|
178
|
-
} while (
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
Z.length = 0;
|
|
183
|
+
} while (W.length);
|
|
184
|
+
for (; rt.length; )
|
|
185
|
+
rt.pop()();
|
|
186
|
+
Ie = !1, Ae.clear(), ie(e);
|
|
182
187
|
}
|
|
183
|
-
function
|
|
188
|
+
function pr(e) {
|
|
184
189
|
if (e.fragment !== null) {
|
|
185
|
-
e.update(),
|
|
190
|
+
e.update(), ue(e.before_update);
|
|
186
191
|
const t = e.dirty;
|
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
188
193
|
}
|
|
189
194
|
}
|
|
190
|
-
function
|
|
195
|
+
function dr(e) {
|
|
191
196
|
const t = [], r = [];
|
|
192
|
-
|
|
197
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
193
198
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
196
|
-
e && e.i && (
|
|
199
|
+
const br = /* @__PURE__ */ new Set();
|
|
200
|
+
function yr(e, t) {
|
|
201
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
197
202
|
}
|
|
198
|
-
function
|
|
203
|
+
function ce(e) {
|
|
199
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
200
205
|
}
|
|
201
|
-
function
|
|
206
|
+
function _r(e, t, r) {
|
|
202
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
203
|
-
n && n.m(t, r),
|
|
204
|
-
const o = e.$$.on_mount.map(
|
|
205
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
206
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Me(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(vt).filter(Xe);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Me);
|
|
207
212
|
}
|
|
208
213
|
function xr(e, t) {
|
|
209
214
|
const r = e.$$;
|
|
210
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (dr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
211
216
|
}
|
|
212
217
|
function Er(e, t) {
|
|
213
|
-
e.$$.dirty[0] === -1 && (
|
|
218
|
+
e.$$.dirty[0] === -1 && (W.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
214
219
|
}
|
|
215
|
-
function
|
|
216
|
-
const h =
|
|
217
|
-
|
|
220
|
+
function vr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
221
|
+
const h = oe;
|
|
222
|
+
ie(e);
|
|
218
223
|
const a = e.$$ = {
|
|
219
224
|
fragment: null,
|
|
220
225
|
ctx: [],
|
|
221
226
|
// state
|
|
222
227
|
props: o,
|
|
223
|
-
update:
|
|
228
|
+
update: L,
|
|
224
229
|
not_equal: i,
|
|
225
|
-
bound:
|
|
230
|
+
bound: et(),
|
|
226
231
|
// lifecycle
|
|
227
232
|
on_mount: [],
|
|
228
233
|
on_destroy: [],
|
|
@@ -231,7 +236,7 @@ function _r(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
231
236
|
after_update: [],
|
|
232
237
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
233
238
|
// everything else
|
|
234
|
-
callbacks:
|
|
239
|
+
callbacks: et(),
|
|
235
240
|
dirty: u,
|
|
236
241
|
skip_bound: !1,
|
|
237
242
|
root: t.target || h.$$.root
|
|
@@ -241,38 +246,38 @@ function _r(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
241
246
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
242
247
|
const d = p.length ? p[0] : f;
|
|
243
248
|
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Er(e, c)), f;
|
|
244
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
245
250
|
if (t.hydrate) {
|
|
246
|
-
const c =
|
|
247
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
251
|
+
const c = hr(t.target);
|
|
252
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
248
253
|
} else
|
|
249
254
|
a.fragment && a.fragment.c();
|
|
250
|
-
t.intro &&
|
|
255
|
+
t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), M();
|
|
251
256
|
}
|
|
252
|
-
|
|
257
|
+
ie(h);
|
|
253
258
|
}
|
|
254
|
-
let
|
|
255
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let At;
|
|
260
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
256
261
|
constructor(t, r, n) {
|
|
257
262
|
super();
|
|
258
263
|
/** The Svelte component constructor */
|
|
259
|
-
|
|
264
|
+
N(this, "$$ctor");
|
|
260
265
|
/** Slots */
|
|
261
|
-
|
|
266
|
+
N(this, "$$s");
|
|
262
267
|
/** The Svelte component instance */
|
|
263
|
-
|
|
268
|
+
N(this, "$$c");
|
|
264
269
|
/** Whether or not the custom element is connected */
|
|
265
|
-
|
|
270
|
+
N(this, "$$cn", !1);
|
|
266
271
|
/** Component props data */
|
|
267
|
-
|
|
272
|
+
N(this, "$$d", {});
|
|
268
273
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
269
|
-
|
|
274
|
+
N(this, "$$r", !1);
|
|
270
275
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
271
|
-
|
|
276
|
+
N(this, "$$p_d", {});
|
|
272
277
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
273
|
-
|
|
278
|
+
N(this, "$$l", {});
|
|
274
279
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
275
|
-
|
|
280
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
276
281
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
277
282
|
}
|
|
278
283
|
addEventListener(t, r, n) {
|
|
@@ -289,42 +294,42 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
289
294
|
}
|
|
290
295
|
}
|
|
291
296
|
connectedCallback() {
|
|
292
|
-
return
|
|
297
|
+
return Ke(this, null, function* () {
|
|
293
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
294
299
|
let t = function(o) {
|
|
295
300
|
return () => {
|
|
296
301
|
let s;
|
|
297
302
|
return {
|
|
298
303
|
c: function() {
|
|
299
|
-
s =
|
|
304
|
+
s = S("slot"), o !== "default" && I(s, "name", o);
|
|
300
305
|
},
|
|
301
306
|
/**
|
|
302
307
|
* @param {HTMLElement} target
|
|
303
308
|
* @param {HTMLElement} [anchor]
|
|
304
309
|
*/
|
|
305
310
|
m: function(a, l) {
|
|
306
|
-
|
|
311
|
+
K(a, s, l);
|
|
307
312
|
},
|
|
308
313
|
d: function(a) {
|
|
309
|
-
a &&
|
|
314
|
+
a && k(s);
|
|
310
315
|
}
|
|
311
316
|
};
|
|
312
317
|
};
|
|
313
318
|
};
|
|
314
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
315
320
|
return;
|
|
316
|
-
const r = {}, n =
|
|
321
|
+
const r = {}, n = lr(this);
|
|
317
322
|
for (const o of this.$$s)
|
|
318
323
|
o in n && (r[o] = [t(o)]);
|
|
319
324
|
for (const o of this.attributes) {
|
|
320
325
|
const s = this.$$g_p(o.name);
|
|
321
|
-
s in this.$$d || (this.$$d[s] =
|
|
326
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
|
322
327
|
}
|
|
323
328
|
for (const o in this.$$p_d)
|
|
324
329
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
325
330
|
this.$$c = new this.$$ctor({
|
|
326
331
|
target: this.shadowRoot || this,
|
|
327
|
-
props: qe(
|
|
332
|
+
props: Ye(qe({}, this.$$d), {
|
|
328
333
|
$$slots: r,
|
|
329
334
|
$$scope: {
|
|
330
335
|
ctx: []
|
|
@@ -335,7 +340,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
335
340
|
this.$$r = !0;
|
|
336
341
|
for (const o in this.$$p_d)
|
|
337
342
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
338
|
-
const s =
|
|
343
|
+
const s = me(
|
|
339
344
|
o,
|
|
340
345
|
this.$$d[o],
|
|
341
346
|
this.$$p_d,
|
|
@@ -359,7 +364,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
359
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
360
365
|
attributeChangedCallback(t, r, n) {
|
|
361
366
|
var i;
|
|
362
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
363
368
|
}
|
|
364
369
|
disconnectedCallback() {
|
|
365
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -372,7 +377,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
372
377
|
) || t;
|
|
373
378
|
}
|
|
374
379
|
});
|
|
375
|
-
function
|
|
380
|
+
function me(e, t, r, n) {
|
|
376
381
|
var o;
|
|
377
382
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
378
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -402,8 +407,8 @@ function ge(e, t, r, n) {
|
|
|
402
407
|
return t;
|
|
403
408
|
}
|
|
404
409
|
}
|
|
405
|
-
function
|
|
406
|
-
let s = class extends
|
|
410
|
+
function Tr(e, t, r, n, i, o) {
|
|
411
|
+
let s = class extends At {
|
|
407
412
|
constructor() {
|
|
408
413
|
super(e, r, i), this.$$p_d = t;
|
|
409
414
|
}
|
|
@@ -420,7 +425,7 @@ function vr(e, t, r, n, i, o) {
|
|
|
420
425
|
},
|
|
421
426
|
set(h) {
|
|
422
427
|
var a;
|
|
423
|
-
h =
|
|
428
|
+
h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
424
429
|
}
|
|
425
430
|
});
|
|
426
431
|
}), n.forEach((u) => {
|
|
@@ -433,7 +438,7 @@ function vr(e, t, r, n, i, o) {
|
|
|
433
438
|
}), e.element = /** @type {any} */
|
|
434
439
|
s, s;
|
|
435
440
|
}
|
|
436
|
-
class
|
|
441
|
+
class Cr {
|
|
437
442
|
constructor() {
|
|
438
443
|
/**
|
|
439
444
|
* ### PRIVATE API
|
|
@@ -442,7 +447,7 @@ class Tr {
|
|
|
442
447
|
*
|
|
443
448
|
* @type {any}
|
|
444
449
|
*/
|
|
445
|
-
|
|
450
|
+
N(this, "$$");
|
|
446
451
|
/**
|
|
447
452
|
* ### PRIVATE API
|
|
448
453
|
*
|
|
@@ -450,11 +455,11 @@ class Tr {
|
|
|
450
455
|
*
|
|
451
456
|
* @type {any}
|
|
452
457
|
*/
|
|
453
|
-
|
|
458
|
+
N(this, "$$set");
|
|
454
459
|
}
|
|
455
460
|
/** @returns {void} */
|
|
456
461
|
$destroy() {
|
|
457
|
-
xr(this, 1), this.$destroy =
|
|
462
|
+
xr(this, 1), this.$destroy = L;
|
|
458
463
|
}
|
|
459
464
|
/**
|
|
460
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -463,8 +468,8 @@ class Tr {
|
|
|
463
468
|
* @returns {() => void}
|
|
464
469
|
*/
|
|
465
470
|
$on(t, r) {
|
|
466
|
-
if (!
|
|
467
|
-
return
|
|
471
|
+
if (!Xe(r))
|
|
472
|
+
return L;
|
|
468
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
469
474
|
return n.push(r), () => {
|
|
470
475
|
const i = n.indexOf(r);
|
|
@@ -476,63 +481,63 @@ class Tr {
|
|
|
476
481
|
* @returns {void}
|
|
477
482
|
*/
|
|
478
483
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
485
|
}
|
|
481
486
|
}
|
|
482
|
-
const
|
|
483
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
484
|
-
const
|
|
485
|
-
function
|
|
487
|
+
const Hr = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
489
|
+
const z = [];
|
|
490
|
+
function Ar(e, t) {
|
|
486
491
|
return {
|
|
487
492
|
subscribe: xe(e, t).subscribe
|
|
488
493
|
};
|
|
489
494
|
}
|
|
490
|
-
function xe(e, t =
|
|
495
|
+
function xe(e, t = L) {
|
|
491
496
|
let r;
|
|
492
497
|
const n = /* @__PURE__ */ new Set();
|
|
493
498
|
function i(u) {
|
|
494
|
-
if (
|
|
495
|
-
const h = !
|
|
499
|
+
if (Tt(e, u) && (e = u, r)) {
|
|
500
|
+
const h = !z.length;
|
|
496
501
|
for (const a of n)
|
|
497
|
-
a[1](),
|
|
502
|
+
a[1](), z.push(a, e);
|
|
498
503
|
if (h) {
|
|
499
|
-
for (let a = 0; a <
|
|
500
|
-
|
|
501
|
-
|
|
504
|
+
for (let a = 0; a < z.length; a += 2)
|
|
505
|
+
z[a][0](z[a + 1]);
|
|
506
|
+
z.length = 0;
|
|
502
507
|
}
|
|
503
508
|
}
|
|
504
509
|
}
|
|
505
510
|
function o(u) {
|
|
506
511
|
i(u(e));
|
|
507
512
|
}
|
|
508
|
-
function s(u, h =
|
|
513
|
+
function s(u, h = L) {
|
|
509
514
|
const a = [u, h];
|
|
510
|
-
return n.add(a), n.size === 1 && (r = t(i, o) ||
|
|
515
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || L), u(e), () => {
|
|
511
516
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
512
517
|
};
|
|
513
518
|
}
|
|
514
519
|
return { set: i, update: o, subscribe: s };
|
|
515
520
|
}
|
|
516
|
-
function
|
|
521
|
+
function ee(e, t, r) {
|
|
517
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
518
523
|
if (!i.every(Boolean))
|
|
519
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
520
525
|
const o = t.length < 2;
|
|
521
|
-
return
|
|
526
|
+
return Ar(r, (s, u) => {
|
|
522
527
|
let h = !1;
|
|
523
528
|
const a = [];
|
|
524
|
-
let l = 0, c =
|
|
529
|
+
let l = 0, c = L;
|
|
525
530
|
const f = () => {
|
|
526
531
|
if (l)
|
|
527
532
|
return;
|
|
528
533
|
c();
|
|
529
534
|
const d = t(n ? a[0] : a, s, u);
|
|
530
|
-
o ? s(d) : c =
|
|
535
|
+
o ? s(d) : c = Xe(d) ? d : L;
|
|
531
536
|
}, p = i.map(
|
|
532
|
-
(d, g) =>
|
|
537
|
+
(d, g) => Ct(
|
|
533
538
|
d,
|
|
534
|
-
(
|
|
535
|
-
a[g] =
|
|
539
|
+
(E) => {
|
|
540
|
+
a[g] = E, l &= ~(1 << g), h && f();
|
|
536
541
|
},
|
|
537
542
|
() => {
|
|
538
543
|
l |= 1 << g;
|
|
@@ -540,84 +545,84 @@ function K(e, t, r) {
|
|
|
540
545
|
)
|
|
541
546
|
);
|
|
542
547
|
return h = !0, f(), function() {
|
|
543
|
-
|
|
548
|
+
ue(p), c(), h = !1;
|
|
544
549
|
};
|
|
545
550
|
});
|
|
546
551
|
}
|
|
547
|
-
function
|
|
552
|
+
function Br(e) {
|
|
548
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
554
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
555
|
+
var Sr = function(t) {
|
|
556
|
+
return wr(t) && !Or(t);
|
|
552
557
|
};
|
|
553
|
-
function
|
|
558
|
+
function wr(e) {
|
|
554
559
|
return !!e && typeof e == "object";
|
|
555
560
|
}
|
|
556
561
|
function Or(e) {
|
|
557
562
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
559
|
-
}
|
|
560
|
-
var wr = typeof Symbol == "function" && Symbol.for, Pr = wr ? Symbol.for("react.element") : 60103;
|
|
561
|
-
function Nr(e) {
|
|
562
|
-
return e.$$typeof === Pr;
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
|
|
563
564
|
}
|
|
565
|
+
var Pr = typeof Symbol == "function" && Symbol.for, Nr = Pr ? Symbol.for("react.element") : 60103;
|
|
564
566
|
function Lr(e) {
|
|
567
|
+
return e.$$typeof === Nr;
|
|
568
|
+
}
|
|
569
|
+
function Ir(e) {
|
|
565
570
|
return Array.isArray(e) ? [] : {};
|
|
566
571
|
}
|
|
567
|
-
function
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function se(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Ir(e), e, t) : e;
|
|
569
574
|
}
|
|
570
|
-
function
|
|
575
|
+
function Mr(e, t, r) {
|
|
571
576
|
return e.concat(t).map(function(n) {
|
|
572
|
-
return
|
|
577
|
+
return se(n, r);
|
|
573
578
|
});
|
|
574
579
|
}
|
|
575
|
-
function
|
|
580
|
+
function $r(e, t) {
|
|
576
581
|
if (!t.customMerge)
|
|
577
|
-
return
|
|
582
|
+
return Q;
|
|
578
583
|
var r = t.customMerge(e);
|
|
579
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : Q;
|
|
580
585
|
}
|
|
581
|
-
function
|
|
586
|
+
function Rr(e) {
|
|
582
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
589
|
}) : [];
|
|
585
590
|
}
|
|
586
|
-
function
|
|
587
|
-
return Object.keys(e).concat(
|
|
591
|
+
function nt(e) {
|
|
592
|
+
return Object.keys(e).concat(Rr(e));
|
|
588
593
|
}
|
|
589
|
-
function
|
|
594
|
+
function Bt(e, t) {
|
|
590
595
|
try {
|
|
591
596
|
return t in e;
|
|
592
597
|
} catch (r) {
|
|
593
598
|
return !1;
|
|
594
599
|
}
|
|
595
600
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
601
|
+
function Ur(e, t) {
|
|
602
|
+
return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
603
|
}
|
|
599
|
-
function
|
|
604
|
+
function Gr(e, t, r) {
|
|
600
605
|
var n = {};
|
|
601
|
-
return r.isMergeableObject(e) &&
|
|
602
|
-
n[i] =
|
|
603
|
-
}),
|
|
604
|
-
|
|
606
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
607
|
+
n[i] = se(e[i], r);
|
|
608
|
+
}), nt(t).forEach(function(i) {
|
|
609
|
+
Ur(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
605
610
|
}), n;
|
|
606
611
|
}
|
|
607
|
-
function
|
|
608
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function Q(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = se;
|
|
609
614
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
610
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : se(t, r);
|
|
611
616
|
}
|
|
612
|
-
|
|
617
|
+
Q.all = function(t, r) {
|
|
613
618
|
if (!Array.isArray(t))
|
|
614
619
|
throw new Error("first argument should be an array");
|
|
615
620
|
return t.reduce(function(n, i) {
|
|
616
|
-
return
|
|
621
|
+
return Q(n, i, r);
|
|
617
622
|
}, {});
|
|
618
623
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
624
|
+
var Dr = Q, Fr = Dr;
|
|
625
|
+
const jr = /* @__PURE__ */ Br(Fr);
|
|
621
626
|
/*! *****************************************************************************
|
|
622
627
|
Copyright (c) Microsoft Corporation.
|
|
623
628
|
|
|
@@ -632,34 +637,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
632
637
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
633
638
|
PERFORMANCE OF THIS SOFTWARE.
|
|
634
639
|
***************************************************************************** */
|
|
635
|
-
var
|
|
636
|
-
return
|
|
640
|
+
var $e = function(e, t) {
|
|
641
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
637
642
|
r.__proto__ = n;
|
|
638
643
|
} || function(r, n) {
|
|
639
644
|
for (var i in n)
|
|
640
645
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
641
|
-
},
|
|
646
|
+
}, $e(e, t);
|
|
642
647
|
};
|
|
643
648
|
function Ee(e, t) {
|
|
644
649
|
if (typeof t != "function" && t !== null)
|
|
645
650
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
651
|
+
$e(e, t);
|
|
647
652
|
function r() {
|
|
648
653
|
this.constructor = e;
|
|
649
654
|
}
|
|
650
655
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
656
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
657
|
+
var x = function() {
|
|
658
|
+
return x = Object.assign || function(t) {
|
|
654
659
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
655
660
|
r = arguments[n];
|
|
656
661
|
for (var o in r)
|
|
657
662
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
658
663
|
}
|
|
659
664
|
return t;
|
|
660
|
-
},
|
|
665
|
+
}, x.apply(this, arguments);
|
|
661
666
|
};
|
|
662
|
-
function
|
|
667
|
+
function kr(e, t) {
|
|
663
668
|
var r = {};
|
|
664
669
|
for (var n in e)
|
|
665
670
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -668,43 +673,43 @@ function jr(e, t) {
|
|
|
668
673
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
669
674
|
return r;
|
|
670
675
|
}
|
|
671
|
-
function
|
|
676
|
+
function Be(e, t, r) {
|
|
672
677
|
if (arguments.length === 2)
|
|
673
678
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
674
679
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
675
680
|
return e.concat(o || t);
|
|
676
681
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
682
|
+
function Se(e, t) {
|
|
683
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
|
|
679
684
|
return i(e, {
|
|
680
685
|
cache: r,
|
|
681
686
|
serializer: n
|
|
682
687
|
});
|
|
683
688
|
}
|
|
684
|
-
function
|
|
689
|
+
function Vr(e) {
|
|
685
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
691
|
}
|
|
687
|
-
function
|
|
688
|
-
var i =
|
|
692
|
+
function Xr(e, t, r, n) {
|
|
693
|
+
var i = Vr(n) ? n : r(n), o = t.get(i);
|
|
689
694
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
690
695
|
}
|
|
691
|
-
function
|
|
696
|
+
function St(e, t, r) {
|
|
692
697
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
693
698
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
694
699
|
}
|
|
695
|
-
function
|
|
700
|
+
function wt(e, t, r, n, i) {
|
|
696
701
|
return r.bind(t, e, n, i);
|
|
697
702
|
}
|
|
698
|
-
function Xr(e, t) {
|
|
699
|
-
var r = e.length === 1 ? Vr : Bt;
|
|
700
|
-
return St(e, this, r, t.cache.create(), t.serializer);
|
|
701
|
-
}
|
|
702
703
|
function zr(e, t) {
|
|
703
|
-
|
|
704
|
+
var r = e.length === 1 ? Xr : St;
|
|
705
|
+
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
704
706
|
}
|
|
705
|
-
|
|
707
|
+
function Wr(e, t) {
|
|
708
|
+
return wt(e, this, St, t.cache.create(), t.serializer);
|
|
709
|
+
}
|
|
710
|
+
var Zr = function() {
|
|
706
711
|
return JSON.stringify(arguments);
|
|
707
|
-
},
|
|
712
|
+
}, Qr = (
|
|
708
713
|
/** @class */
|
|
709
714
|
function() {
|
|
710
715
|
function e() {
|
|
@@ -716,12 +721,12 @@ var Wr = function() {
|
|
|
716
721
|
this.cache[t] = r;
|
|
717
722
|
}, e;
|
|
718
723
|
}()
|
|
719
|
-
),
|
|
724
|
+
), Jr = {
|
|
720
725
|
create: function() {
|
|
721
|
-
return new
|
|
726
|
+
return new Qr();
|
|
722
727
|
}
|
|
723
|
-
},
|
|
724
|
-
variadic:
|
|
728
|
+
}, we = {
|
|
729
|
+
variadic: Wr
|
|
725
730
|
}, y;
|
|
726
731
|
(function(e) {
|
|
727
732
|
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";
|
|
@@ -730,47 +735,47 @@ var T;
|
|
|
730
735
|
(function(e) {
|
|
731
736
|
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";
|
|
732
737
|
})(T || (T = {}));
|
|
733
|
-
var
|
|
738
|
+
var J;
|
|
734
739
|
(function(e) {
|
|
735
740
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
736
|
-
})(
|
|
737
|
-
function
|
|
741
|
+
})(J || (J = {}));
|
|
742
|
+
function it(e) {
|
|
738
743
|
return e.type === T.literal;
|
|
739
744
|
}
|
|
740
|
-
function
|
|
745
|
+
function qr(e) {
|
|
741
746
|
return e.type === T.argument;
|
|
742
747
|
}
|
|
743
748
|
function Ot(e) {
|
|
744
749
|
return e.type === T.number;
|
|
745
750
|
}
|
|
746
|
-
function
|
|
751
|
+
function Pt(e) {
|
|
747
752
|
return e.type === T.date;
|
|
748
753
|
}
|
|
749
|
-
function
|
|
754
|
+
function Nt(e) {
|
|
750
755
|
return e.type === T.time;
|
|
751
756
|
}
|
|
752
|
-
function
|
|
757
|
+
function Lt(e) {
|
|
753
758
|
return e.type === T.select;
|
|
754
759
|
}
|
|
755
|
-
function
|
|
760
|
+
function It(e) {
|
|
756
761
|
return e.type === T.plural;
|
|
757
762
|
}
|
|
758
|
-
function
|
|
763
|
+
function Yr(e) {
|
|
759
764
|
return e.type === T.pound;
|
|
760
765
|
}
|
|
761
|
-
function
|
|
766
|
+
function Mt(e) {
|
|
762
767
|
return e.type === T.tag;
|
|
763
768
|
}
|
|
764
|
-
function
|
|
765
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
769
|
+
function $t(e) {
|
|
770
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
766
771
|
}
|
|
767
|
-
function
|
|
768
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
772
|
+
function Re(e) {
|
|
773
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
769
774
|
}
|
|
770
|
-
var
|
|
771
|
-
function
|
|
775
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
776
|
+
function en(e) {
|
|
772
777
|
var t = {};
|
|
773
|
-
return e.replace(
|
|
778
|
+
return e.replace(Kr, function(r) {
|
|
774
779
|
var n = r.length;
|
|
775
780
|
switch (r[0]) {
|
|
776
781
|
case "G":
|
|
@@ -859,11 +864,11 @@ function Kr(e) {
|
|
|
859
864
|
return "";
|
|
860
865
|
}), t;
|
|
861
866
|
}
|
|
862
|
-
var
|
|
863
|
-
function
|
|
867
|
+
var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
868
|
+
function rn(e) {
|
|
864
869
|
if (e.length === 0)
|
|
865
870
|
throw new Error("Number skeleton cannot be empty");
|
|
866
|
-
for (var t = e.split(
|
|
871
|
+
for (var t = e.split(tn).filter(function(f) {
|
|
867
872
|
return f.length > 0;
|
|
868
873
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
869
874
|
var o = i[n], s = o.split("/");
|
|
@@ -878,17 +883,17 @@ function tn(e) {
|
|
|
878
883
|
}
|
|
879
884
|
return r;
|
|
880
885
|
}
|
|
881
|
-
function
|
|
886
|
+
function nn(e) {
|
|
882
887
|
return e.replace(/^(.*?)-/, "");
|
|
883
888
|
}
|
|
884
|
-
var
|
|
885
|
-
function
|
|
889
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
890
|
+
function st(e) {
|
|
886
891
|
var t = {};
|
|
887
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
892
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
|
|
888
893
|
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)), "";
|
|
889
894
|
}), t;
|
|
890
895
|
}
|
|
891
|
-
function
|
|
896
|
+
function Dt(e) {
|
|
892
897
|
switch (e) {
|
|
893
898
|
case "sign-auto":
|
|
894
899
|
return {
|
|
@@ -928,7 +933,7 @@ function Gt(e) {
|
|
|
928
933
|
};
|
|
929
934
|
}
|
|
930
935
|
}
|
|
931
|
-
function
|
|
936
|
+
function sn(e) {
|
|
932
937
|
var t;
|
|
933
938
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
934
939
|
notation: "engineering"
|
|
@@ -936,17 +941,17 @@ function on(e) {
|
|
|
936
941
|
notation: "scientific"
|
|
937
942
|
}, e = e.slice(1)), t) {
|
|
938
943
|
var r = e.slice(0, 2);
|
|
939
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
944
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
940
945
|
throw new Error("Malformed concise eng/scientific notation");
|
|
941
946
|
t.minimumIntegerDigits = e.length;
|
|
942
947
|
}
|
|
943
948
|
return t;
|
|
944
949
|
}
|
|
945
|
-
function
|
|
946
|
-
var t = {}, r =
|
|
950
|
+
function at(e) {
|
|
951
|
+
var t = {}, r = Dt(e);
|
|
947
952
|
return r || t;
|
|
948
953
|
}
|
|
949
|
-
function
|
|
954
|
+
function an(e) {
|
|
950
955
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
951
956
|
var i = n[r];
|
|
952
957
|
switch (i.stem) {
|
|
@@ -970,7 +975,7 @@ function sn(e) {
|
|
|
970
975
|
continue;
|
|
971
976
|
case "measure-unit":
|
|
972
977
|
case "unit":
|
|
973
|
-
t.style = "unit", t.unit =
|
|
978
|
+
t.style = "unit", t.unit = nn(i.options[0]);
|
|
974
979
|
continue;
|
|
975
980
|
case "compact-short":
|
|
976
981
|
case "K":
|
|
@@ -981,13 +986,13 @@ function sn(e) {
|
|
|
981
986
|
t.notation = "compact", t.compactDisplay = "long";
|
|
982
987
|
continue;
|
|
983
988
|
case "scientific":
|
|
984
|
-
t =
|
|
985
|
-
return
|
|
989
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
990
|
+
return x(x({}, h), at(a));
|
|
986
991
|
}, {}));
|
|
987
992
|
continue;
|
|
988
993
|
case "engineering":
|
|
989
|
-
t =
|
|
990
|
-
return
|
|
994
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
995
|
+
return x(x({}, h), at(a));
|
|
991
996
|
}, {}));
|
|
992
997
|
continue;
|
|
993
998
|
case "notation-simple":
|
|
@@ -1032,7 +1037,7 @@ function sn(e) {
|
|
|
1032
1037
|
case "integer-width":
|
|
1033
1038
|
if (i.options.length > 1)
|
|
1034
1039
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1035
|
-
i.options[0].replace(
|
|
1040
|
+
i.options[0].replace(on, function(h, a, l, c, f, p) {
|
|
1036
1041
|
if (a)
|
|
1037
1042
|
t.minimumIntegerDigits = l.length;
|
|
1038
1043
|
else {
|
|
@@ -1045,32 +1050,32 @@ function sn(e) {
|
|
|
1045
1050
|
});
|
|
1046
1051
|
continue;
|
|
1047
1052
|
}
|
|
1048
|
-
if (
|
|
1053
|
+
if (Gt.test(i.stem)) {
|
|
1049
1054
|
t.minimumIntegerDigits = i.stem.length;
|
|
1050
1055
|
continue;
|
|
1051
1056
|
}
|
|
1052
|
-
if (
|
|
1057
|
+
if (ot.test(i.stem)) {
|
|
1053
1058
|
if (i.options.length > 1)
|
|
1054
1059
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1055
|
-
i.stem.replace(
|
|
1060
|
+
i.stem.replace(ot, function(h, a, l, c, f, p) {
|
|
1056
1061
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1057
1062
|
});
|
|
1058
1063
|
var o = i.options[0];
|
|
1059
|
-
o === "w" ? t =
|
|
1064
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), st(o)));
|
|
1060
1065
|
continue;
|
|
1061
1066
|
}
|
|
1062
|
-
if (
|
|
1063
|
-
t =
|
|
1067
|
+
if (Ut.test(i.stem)) {
|
|
1068
|
+
t = x(x({}, t), st(i.stem));
|
|
1064
1069
|
continue;
|
|
1065
1070
|
}
|
|
1066
|
-
var s =
|
|
1067
|
-
s && (t =
|
|
1068
|
-
var u =
|
|
1069
|
-
u && (t =
|
|
1071
|
+
var s = Dt(i.stem);
|
|
1072
|
+
s && (t = x(x({}, t), s));
|
|
1073
|
+
var u = sn(i.stem);
|
|
1074
|
+
u && (t = x(x({}, t), u));
|
|
1070
1075
|
}
|
|
1071
1076
|
return t;
|
|
1072
1077
|
}
|
|
1073
|
-
var
|
|
1078
|
+
var ge = {
|
|
1074
1079
|
"001": [
|
|
1075
1080
|
"H",
|
|
1076
1081
|
"h"
|
|
@@ -2485,13 +2490,13 @@ var ce = {
|
|
|
2485
2490
|
"h"
|
|
2486
2491
|
]
|
|
2487
2492
|
};
|
|
2488
|
-
function
|
|
2493
|
+
function un(e, t) {
|
|
2489
2494
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2490
2495
|
var i = e.charAt(n);
|
|
2491
2496
|
if (i === "j") {
|
|
2492
2497
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2493
2498
|
o++, n++;
|
|
2494
|
-
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a =
|
|
2499
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = hn(t);
|
|
2495
2500
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2496
2501
|
r += h;
|
|
2497
2502
|
for (; s-- > 0; )
|
|
@@ -2501,7 +2506,7 @@ function an(e, t) {
|
|
|
2501
2506
|
}
|
|
2502
2507
|
return r;
|
|
2503
2508
|
}
|
|
2504
|
-
function
|
|
2509
|
+
function hn(e) {
|
|
2505
2510
|
var t = e.hourCycle;
|
|
2506
2511
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2507
2512
|
e.hourCycles && // @ts-ignore
|
|
@@ -2520,23 +2525,23 @@ function un(e) {
|
|
|
2520
2525
|
}
|
|
2521
2526
|
var r = e.language, n;
|
|
2522
2527
|
r !== "root" && (n = e.maximize().region);
|
|
2523
|
-
var i =
|
|
2528
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2524
2529
|
return i[0];
|
|
2525
2530
|
}
|
|
2526
|
-
var Oe,
|
|
2527
|
-
function
|
|
2531
|
+
var Oe, ln = new RegExp("^".concat(Rt.source, "*")), fn = new RegExp("".concat(Rt.source, "*$"));
|
|
2532
|
+
function _(e, t) {
|
|
2528
2533
|
return { start: e, end: t };
|
|
2529
2534
|
}
|
|
2530
|
-
var
|
|
2535
|
+
var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
|
|
2531
2536
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2532
|
-
},
|
|
2537
|
+
}, Ue = !0;
|
|
2533
2538
|
try {
|
|
2534
|
-
var xn =
|
|
2535
|
-
|
|
2539
|
+
var xn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2540
|
+
Ue = ((Oe = xn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2536
2541
|
} catch (e) {
|
|
2537
|
-
|
|
2542
|
+
Ue = !1;
|
|
2538
2543
|
}
|
|
2539
|
-
var
|
|
2544
|
+
var ut = cn ? (
|
|
2540
2545
|
// Native
|
|
2541
2546
|
function(t, r, n) {
|
|
2542
2547
|
return t.startsWith(r, n);
|
|
@@ -2546,7 +2551,7 @@ var at = fn ? (
|
|
|
2546
2551
|
function(t, r, n) {
|
|
2547
2552
|
return t.slice(n, n + r.length) === r;
|
|
2548
2553
|
}
|
|
2549
|
-
),
|
|
2554
|
+
), Ge = gn ? String.fromCodePoint : (
|
|
2550
2555
|
// IE11
|
|
2551
2556
|
function() {
|
|
2552
2557
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2558,9 +2563,9 @@ var at = fn ? (
|
|
|
2558
2563
|
}
|
|
2559
2564
|
return n;
|
|
2560
2565
|
}
|
|
2561
|
-
),
|
|
2566
|
+
), ht = (
|
|
2562
2567
|
// native
|
|
2563
|
-
|
|
2568
|
+
mn ? Object.fromEntries : (
|
|
2564
2569
|
// Ponyfill
|
|
2565
2570
|
function(t) {
|
|
2566
2571
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2570,7 +2575,7 @@ var at = fn ? (
|
|
|
2570
2575
|
return r;
|
|
2571
2576
|
}
|
|
2572
2577
|
)
|
|
2573
|
-
),
|
|
2578
|
+
), Ft = pn ? (
|
|
2574
2579
|
// Native
|
|
2575
2580
|
function(t, r) {
|
|
2576
2581
|
return t.codePointAt(r);
|
|
@@ -2584,7 +2589,7 @@ var at = fn ? (
|
|
|
2584
2589
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2585
2590
|
}
|
|
2586
2591
|
}
|
|
2587
|
-
), En =
|
|
2592
|
+
), En = dn ? (
|
|
2588
2593
|
// Native
|
|
2589
2594
|
function(t) {
|
|
2590
2595
|
return t.trimStart();
|
|
@@ -2592,9 +2597,9 @@ var at = fn ? (
|
|
|
2592
2597
|
) : (
|
|
2593
2598
|
// Ponyfill
|
|
2594
2599
|
function(t) {
|
|
2595
|
-
return t.replace(
|
|
2600
|
+
return t.replace(ln, "");
|
|
2596
2601
|
}
|
|
2597
|
-
),
|
|
2602
|
+
), vn = bn ? (
|
|
2598
2603
|
// Native
|
|
2599
2604
|
function(t) {
|
|
2600
2605
|
return t.trimEnd();
|
|
@@ -2602,32 +2607,32 @@ var at = fn ? (
|
|
|
2602
2607
|
) : (
|
|
2603
2608
|
// Ponyfill
|
|
2604
2609
|
function(t) {
|
|
2605
|
-
return t.replace(
|
|
2610
|
+
return t.replace(fn, "");
|
|
2606
2611
|
}
|
|
2607
2612
|
);
|
|
2608
|
-
function
|
|
2613
|
+
function jt(e, t) {
|
|
2609
2614
|
return new RegExp(e, t);
|
|
2610
2615
|
}
|
|
2611
|
-
var
|
|
2612
|
-
if (
|
|
2613
|
-
var
|
|
2614
|
-
|
|
2616
|
+
var De;
|
|
2617
|
+
if (Ue) {
|
|
2618
|
+
var lt = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2619
|
+
De = function(t, r) {
|
|
2615
2620
|
var n;
|
|
2616
|
-
|
|
2617
|
-
var i =
|
|
2621
|
+
lt.lastIndex = r;
|
|
2622
|
+
var i = lt.exec(t);
|
|
2618
2623
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2619
2624
|
};
|
|
2620
2625
|
} else
|
|
2621
|
-
|
|
2626
|
+
De = function(t, r) {
|
|
2622
2627
|
for (var n = []; ; ) {
|
|
2623
|
-
var i =
|
|
2624
|
-
if (i === void 0 ||
|
|
2628
|
+
var i = Ft(t, r);
|
|
2629
|
+
if (i === void 0 || kt(i) || An(i))
|
|
2625
2630
|
break;
|
|
2626
2631
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2627
2632
|
}
|
|
2628
|
-
return
|
|
2633
|
+
return Ge.apply(void 0, n);
|
|
2629
2634
|
};
|
|
2630
|
-
var
|
|
2635
|
+
var Tn = (
|
|
2631
2636
|
/** @class */
|
|
2632
2637
|
function() {
|
|
2633
2638
|
function e(t, r) {
|
|
@@ -2652,13 +2657,13 @@ var vn = (
|
|
|
2652
2657
|
var u = this.clonePosition();
|
|
2653
2658
|
this.bump(), i.push({
|
|
2654
2659
|
type: T.pound,
|
|
2655
|
-
location:
|
|
2660
|
+
location: _(u, this.clonePosition())
|
|
2656
2661
|
});
|
|
2657
2662
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2658
2663
|
if (n)
|
|
2659
2664
|
break;
|
|
2660
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
2661
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2665
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2666
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2662
2667
|
var s = this.parseTag(t, r);
|
|
2663
2668
|
if (s.err)
|
|
2664
2669
|
return s;
|
|
@@ -2681,7 +2686,7 @@ var vn = (
|
|
|
2681
2686
|
val: {
|
|
2682
2687
|
type: T.literal,
|
|
2683
2688
|
value: "<".concat(i, "/>"),
|
|
2684
|
-
location:
|
|
2689
|
+
location: _(n, this.clonePosition())
|
|
2685
2690
|
},
|
|
2686
2691
|
err: null
|
|
2687
2692
|
};
|
|
@@ -2691,25 +2696,25 @@ var vn = (
|
|
|
2691
2696
|
return o;
|
|
2692
2697
|
var s = o.val, u = this.clonePosition();
|
|
2693
2698
|
if (this.bumpIf("</")) {
|
|
2694
|
-
if (this.isEOF() || !
|
|
2695
|
-
return this.error(y.INVALID_TAG,
|
|
2699
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2700
|
+
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2696
2701
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2697
|
-
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
2702
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2698
2703
|
val: {
|
|
2699
2704
|
type: T.tag,
|
|
2700
2705
|
value: i,
|
|
2701
2706
|
children: s,
|
|
2702
|
-
location:
|
|
2707
|
+
location: _(n, this.clonePosition())
|
|
2703
2708
|
},
|
|
2704
2709
|
err: null
|
|
2705
|
-
} : this.error(y.INVALID_TAG,
|
|
2710
|
+
} : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
|
|
2706
2711
|
} else
|
|
2707
|
-
return this.error(y.UNCLOSED_TAG,
|
|
2712
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2708
2713
|
} else
|
|
2709
|
-
return this.error(y.INVALID_TAG,
|
|
2714
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2710
2715
|
}, e.prototype.parseTagName = function() {
|
|
2711
2716
|
var t = this.offset();
|
|
2712
|
-
for (this.bump(); !this.isEOF() &&
|
|
2717
|
+
for (this.bump(); !this.isEOF() && Hn(this.char()); )
|
|
2713
2718
|
this.bump();
|
|
2714
2719
|
return this.message.slice(t, this.offset());
|
|
2715
2720
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2731,14 +2736,14 @@ var vn = (
|
|
|
2731
2736
|
}
|
|
2732
2737
|
break;
|
|
2733
2738
|
}
|
|
2734
|
-
var h =
|
|
2739
|
+
var h = _(n, this.clonePosition());
|
|
2735
2740
|
return {
|
|
2736
2741
|
val: { type: T.literal, value: i, location: h },
|
|
2737
2742
|
err: null
|
|
2738
2743
|
};
|
|
2739
2744
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2740
2745
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2741
|
-
!
|
|
2746
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2742
2747
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2743
2748
|
if (this.isEOF() || this.char() !== 39)
|
|
2744
2749
|
return null;
|
|
@@ -2772,23 +2777,23 @@ var vn = (
|
|
|
2772
2777
|
r.push(n);
|
|
2773
2778
|
this.bump();
|
|
2774
2779
|
}
|
|
2775
|
-
return
|
|
2780
|
+
return Ge.apply(void 0, r);
|
|
2776
2781
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2777
2782
|
if (this.isEOF())
|
|
2778
2783
|
return null;
|
|
2779
2784
|
var n = this.char();
|
|
2780
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2785
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2781
2786
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2782
2787
|
var n = this.clonePosition();
|
|
2783
2788
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2784
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2789
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2785
2790
|
if (this.char() === 125)
|
|
2786
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
2791
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
2787
2792
|
var i = this.parseIdentifierIfPossible().value;
|
|
2788
2793
|
if (!i)
|
|
2789
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
2794
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2790
2795
|
if (this.bumpSpace(), this.isEOF())
|
|
2791
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2796
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2792
2797
|
switch (this.char()) {
|
|
2793
2798
|
case 125:
|
|
2794
2799
|
return this.bump(), {
|
|
@@ -2796,25 +2801,25 @@ var vn = (
|
|
|
2796
2801
|
type: T.argument,
|
|
2797
2802
|
// value does not include the opening and closing braces.
|
|
2798
2803
|
value: i,
|
|
2799
|
-
location:
|
|
2804
|
+
location: _(n, this.clonePosition())
|
|
2800
2805
|
},
|
|
2801
2806
|
err: null
|
|
2802
2807
|
};
|
|
2803
2808
|
case 44:
|
|
2804
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2809
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2805
2810
|
default:
|
|
2806
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
2811
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2807
2812
|
}
|
|
2808
2813
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2809
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2814
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2810
2815
|
this.bumpTo(i);
|
|
2811
|
-
var o = this.clonePosition(), s =
|
|
2816
|
+
var o = this.clonePosition(), s = _(t, o);
|
|
2812
2817
|
return { value: n, location: s };
|
|
2813
2818
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2814
2819
|
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2815
2820
|
switch (u) {
|
|
2816
2821
|
case "":
|
|
2817
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
2822
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, h));
|
|
2818
2823
|
case "number":
|
|
2819
2824
|
case "date":
|
|
2820
2825
|
case "time": {
|
|
@@ -2825,34 +2830,34 @@ var vn = (
|
|
|
2825
2830
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2826
2831
|
if (c.err)
|
|
2827
2832
|
return c;
|
|
2828
|
-
var f =
|
|
2833
|
+
var f = vn(c.val);
|
|
2829
2834
|
if (f.length === 0)
|
|
2830
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
2831
|
-
var p =
|
|
2835
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2836
|
+
var p = _(l, this.clonePosition());
|
|
2832
2837
|
a = { style: f, styleLocation: p };
|
|
2833
2838
|
}
|
|
2834
2839
|
var d = this.tryParseArgumentClose(i);
|
|
2835
2840
|
if (d.err)
|
|
2836
2841
|
return d;
|
|
2837
|
-
var g =
|
|
2838
|
-
if (a &&
|
|
2839
|
-
var
|
|
2842
|
+
var g = _(i, this.clonePosition());
|
|
2843
|
+
if (a && ut(a == null ? void 0 : a.style, "::", 0)) {
|
|
2844
|
+
var E = En(a.style.slice(2));
|
|
2840
2845
|
if (u === "number") {
|
|
2841
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2846
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2842
2847
|
return c.err ? c : {
|
|
2843
2848
|
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2844
2849
|
err: null
|
|
2845
2850
|
};
|
|
2846
2851
|
} else {
|
|
2847
|
-
if (
|
|
2852
|
+
if (E.length === 0)
|
|
2848
2853
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2849
|
-
var m =
|
|
2850
|
-
this.locale && (m =
|
|
2854
|
+
var m = E;
|
|
2855
|
+
this.locale && (m = un(E, this.locale));
|
|
2851
2856
|
var f = {
|
|
2852
|
-
type:
|
|
2857
|
+
type: J.dateTime,
|
|
2853
2858
|
pattern: m,
|
|
2854
2859
|
location: a.styleLocation,
|
|
2855
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2860
|
+
parsedOptions: this.shouldParseSkeletons ? en(m) : {}
|
|
2856
2861
|
}, C = u === "date" ? T.date : T.time;
|
|
2857
2862
|
return {
|
|
2858
2863
|
val: { type: C, value: n, location: g, style: f },
|
|
@@ -2873,52 +2878,52 @@ var vn = (
|
|
|
2873
2878
|
case "plural":
|
|
2874
2879
|
case "selectordinal":
|
|
2875
2880
|
case "select": {
|
|
2876
|
-
var
|
|
2881
|
+
var A = this.clonePosition();
|
|
2877
2882
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2878
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2883
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
|
|
2879
2884
|
this.bumpSpace();
|
|
2880
|
-
var
|
|
2881
|
-
if (u !== "select" &&
|
|
2885
|
+
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2886
|
+
if (u !== "select" && O.value === "offset") {
|
|
2882
2887
|
if (!this.bumpIf(":"))
|
|
2883
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2888
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2884
2889
|
this.bumpSpace();
|
|
2885
2890
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2886
2891
|
if (c.err)
|
|
2887
2892
|
return c;
|
|
2888
|
-
this.bumpSpace(),
|
|
2893
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
2889
2894
|
}
|
|
2890
|
-
var H = this.tryParsePluralOrSelectOptions(t, u, r,
|
|
2895
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2891
2896
|
if (H.err)
|
|
2892
2897
|
return H;
|
|
2893
2898
|
var d = this.tryParseArgumentClose(i);
|
|
2894
2899
|
if (d.err)
|
|
2895
2900
|
return d;
|
|
2896
|
-
var
|
|
2901
|
+
var P = _(i, this.clonePosition());
|
|
2897
2902
|
return u === "select" ? {
|
|
2898
2903
|
val: {
|
|
2899
2904
|
type: T.select,
|
|
2900
2905
|
value: n,
|
|
2901
|
-
options:
|
|
2902
|
-
location:
|
|
2906
|
+
options: ht(H.val),
|
|
2907
|
+
location: P
|
|
2903
2908
|
},
|
|
2904
2909
|
err: null
|
|
2905
2910
|
} : {
|
|
2906
2911
|
val: {
|
|
2907
2912
|
type: T.plural,
|
|
2908
2913
|
value: n,
|
|
2909
|
-
options:
|
|
2910
|
-
offset:
|
|
2914
|
+
options: ht(H.val),
|
|
2915
|
+
offset: B,
|
|
2911
2916
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2912
|
-
location:
|
|
2917
|
+
location: P
|
|
2913
2918
|
},
|
|
2914
2919
|
err: null
|
|
2915
2920
|
};
|
|
2916
2921
|
}
|
|
2917
2922
|
default:
|
|
2918
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
2923
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, h));
|
|
2919
2924
|
}
|
|
2920
2925
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2921
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2926
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2922
2927
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2923
2928
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2924
2929
|
var n = this.char();
|
|
@@ -2927,7 +2932,7 @@ var vn = (
|
|
|
2927
2932
|
this.bump();
|
|
2928
2933
|
var i = this.clonePosition();
|
|
2929
2934
|
if (!this.bumpUntil("'"))
|
|
2930
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2935
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
2931
2936
|
this.bump();
|
|
2932
2937
|
break;
|
|
2933
2938
|
}
|
|
@@ -2957,16 +2962,16 @@ var vn = (
|
|
|
2957
2962
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2958
2963
|
var n = [];
|
|
2959
2964
|
try {
|
|
2960
|
-
n =
|
|
2965
|
+
n = rn(t);
|
|
2961
2966
|
} catch (i) {
|
|
2962
2967
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2963
2968
|
}
|
|
2964
2969
|
return {
|
|
2965
2970
|
val: {
|
|
2966
|
-
type:
|
|
2971
|
+
type: J.number,
|
|
2967
2972
|
tokens: n,
|
|
2968
2973
|
location: r,
|
|
2969
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2974
|
+
parsedOptions: this.shouldParseSkeletons ? an(n) : {}
|
|
2970
2975
|
},
|
|
2971
2976
|
err: null
|
|
2972
2977
|
};
|
|
@@ -2978,7 +2983,7 @@ var vn = (
|
|
|
2978
2983
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2979
2984
|
if (f.err)
|
|
2980
2985
|
return f;
|
|
2981
|
-
l =
|
|
2986
|
+
l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2982
2987
|
} else
|
|
2983
2988
|
break;
|
|
2984
2989
|
}
|
|
@@ -2987,7 +2992,7 @@ var vn = (
|
|
|
2987
2992
|
a === "other" && (s = !0), this.bumpSpace();
|
|
2988
2993
|
var p = this.clonePosition();
|
|
2989
2994
|
if (!this.bumpIf("{"))
|
|
2990
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2995
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2991
2996
|
var d = this.parseMessage(t + 1, r, n);
|
|
2992
2997
|
if (d.err)
|
|
2993
2998
|
return d;
|
|
@@ -2998,11 +3003,11 @@ var vn = (
|
|
|
2998
3003
|
a,
|
|
2999
3004
|
{
|
|
3000
3005
|
value: d.val,
|
|
3001
|
-
location:
|
|
3006
|
+
location: _(p, this.clonePosition())
|
|
3002
3007
|
}
|
|
3003
3008
|
]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, l = o.location;
|
|
3004
3009
|
}
|
|
3005
|
-
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3010
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3006
3011
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3007
3012
|
var n = 1, i = this.clonePosition();
|
|
3008
3013
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3013,8 +3018,8 @@ var vn = (
|
|
|
3013
3018
|
else
|
|
3014
3019
|
break;
|
|
3015
3020
|
}
|
|
3016
|
-
var h =
|
|
3017
|
-
return o ? (s *= n,
|
|
3021
|
+
var h = _(i, this.clonePosition());
|
|
3022
|
+
return o ? (s *= n, _n(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3018
3023
|
}, e.prototype.offset = function() {
|
|
3019
3024
|
return this.position.offset;
|
|
3020
3025
|
}, e.prototype.isEOF = function() {
|
|
@@ -3029,7 +3034,7 @@ var vn = (
|
|
|
3029
3034
|
var t = this.position.offset;
|
|
3030
3035
|
if (t >= this.message.length)
|
|
3031
3036
|
throw Error("out of bound");
|
|
3032
|
-
var r =
|
|
3037
|
+
var r = Ft(this.message, t);
|
|
3033
3038
|
if (r === void 0)
|
|
3034
3039
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3035
3040
|
return r;
|
|
@@ -3048,7 +3053,7 @@ var vn = (
|
|
|
3048
3053
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3049
3054
|
}
|
|
3050
3055
|
}, e.prototype.bumpIf = function(t) {
|
|
3051
|
-
if (
|
|
3056
|
+
if (ut(this.message, t, this.offset())) {
|
|
3052
3057
|
for (var r = 0; r < t.length; r++)
|
|
3053
3058
|
this.bump();
|
|
3054
3059
|
return !0;
|
|
@@ -3070,7 +3075,7 @@ var vn = (
|
|
|
3070
3075
|
break;
|
|
3071
3076
|
}
|
|
3072
3077
|
}, e.prototype.bumpSpace = function() {
|
|
3073
|
-
for (; !this.isEOF() &&
|
|
3078
|
+
for (; !this.isEOF() && kt(this.char()); )
|
|
3074
3079
|
this.bump();
|
|
3075
3080
|
}, e.prototype.peek = function() {
|
|
3076
3081
|
if (this.isEOF())
|
|
@@ -3080,44 +3085,44 @@ var vn = (
|
|
|
3080
3085
|
}, e;
|
|
3081
3086
|
}()
|
|
3082
3087
|
);
|
|
3083
|
-
function
|
|
3088
|
+
function Fe(e) {
|
|
3084
3089
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3085
3090
|
}
|
|
3086
|
-
function Tn(e) {
|
|
3087
|
-
return De(e) || e === 47;
|
|
3088
|
-
}
|
|
3089
3091
|
function Cn(e) {
|
|
3092
|
+
return Fe(e) || e === 47;
|
|
3093
|
+
}
|
|
3094
|
+
function Hn(e) {
|
|
3090
3095
|
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;
|
|
3091
3096
|
}
|
|
3092
|
-
function
|
|
3097
|
+
function kt(e) {
|
|
3093
3098
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3094
3099
|
}
|
|
3095
|
-
function
|
|
3100
|
+
function An(e) {
|
|
3096
3101
|
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;
|
|
3097
3102
|
}
|
|
3098
|
-
function
|
|
3103
|
+
function je(e) {
|
|
3099
3104
|
e.forEach(function(t) {
|
|
3100
|
-
if (delete t.location,
|
|
3105
|
+
if (delete t.location, Lt(t) || It(t))
|
|
3101
3106
|
for (var r in t.options)
|
|
3102
|
-
delete t.options[r].location,
|
|
3107
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3103
3108
|
else
|
|
3104
|
-
Ot(t) &&
|
|
3109
|
+
Ot(t) && $t(t.style) || (Pt(t) || Nt(t)) && Re(t.style) ? delete t.style.location : Mt(t) && je(t.children);
|
|
3105
3110
|
});
|
|
3106
3111
|
}
|
|
3107
|
-
function
|
|
3108
|
-
t === void 0 && (t = {}), t =
|
|
3109
|
-
var r = new
|
|
3112
|
+
function Bn(e, t) {
|
|
3113
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3114
|
+
var r = new Tn(e, t).parse();
|
|
3110
3115
|
if (r.err) {
|
|
3111
3116
|
var n = SyntaxError(y[r.err.kind]);
|
|
3112
3117
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3113
3118
|
}
|
|
3114
|
-
return t != null && t.captureLocation ||
|
|
3119
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3115
3120
|
}
|
|
3116
|
-
var
|
|
3121
|
+
var q;
|
|
3117
3122
|
(function(e) {
|
|
3118
3123
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3119
|
-
})(
|
|
3120
|
-
var
|
|
3124
|
+
})(q || (q = {}));
|
|
3125
|
+
var ve = (
|
|
3121
3126
|
/** @class */
|
|
3122
3127
|
function(e) {
|
|
3123
3128
|
Ee(t, e);
|
|
@@ -3129,33 +3134,33 @@ var _e = (
|
|
|
3129
3134
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3130
3135
|
}, t;
|
|
3131
3136
|
}(Error)
|
|
3132
|
-
),
|
|
3137
|
+
), ft = (
|
|
3133
3138
|
/** @class */
|
|
3134
3139
|
function(e) {
|
|
3135
3140
|
Ee(t, e);
|
|
3136
3141
|
function t(r, n, i, o) {
|
|
3137
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3142
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3138
3143
|
}
|
|
3139
3144
|
return t;
|
|
3140
|
-
}(
|
|
3141
|
-
),
|
|
3145
|
+
}(ve)
|
|
3146
|
+
), Sn = (
|
|
3142
3147
|
/** @class */
|
|
3143
3148
|
function(e) {
|
|
3144
3149
|
Ee(t, e);
|
|
3145
3150
|
function t(r, n, i) {
|
|
3146
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3151
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3147
3152
|
}
|
|
3148
3153
|
return t;
|
|
3149
|
-
}(
|
|
3150
|
-
),
|
|
3154
|
+
}(ve)
|
|
3155
|
+
), wn = (
|
|
3151
3156
|
/** @class */
|
|
3152
3157
|
function(e) {
|
|
3153
3158
|
Ee(t, e);
|
|
3154
3159
|
function t(r, n) {
|
|
3155
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3160
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3156
3161
|
}
|
|
3157
3162
|
return t;
|
|
3158
|
-
}(
|
|
3163
|
+
}(ve)
|
|
3159
3164
|
), w;
|
|
3160
3165
|
(function(e) {
|
|
3161
3166
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3166,11 +3171,11 @@ function On(e) {
|
|
|
3166
3171
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3167
3172
|
}, []);
|
|
3168
3173
|
}
|
|
3169
|
-
function
|
|
3174
|
+
function Pn(e) {
|
|
3170
3175
|
return typeof e == "function";
|
|
3171
3176
|
}
|
|
3172
|
-
function
|
|
3173
|
-
if (e.length === 1 &&
|
|
3177
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3178
|
+
if (e.length === 1 && it(e[0]))
|
|
3174
3179
|
return [
|
|
3175
3180
|
{
|
|
3176
3181
|
type: w.literal,
|
|
@@ -3179,14 +3184,14 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3179
3184
|
];
|
|
3180
3185
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3181
3186
|
var l = a[h];
|
|
3182
|
-
if (
|
|
3187
|
+
if (it(l)) {
|
|
3183
3188
|
u.push({
|
|
3184
3189
|
type: w.literal,
|
|
3185
3190
|
value: l.value
|
|
3186
3191
|
});
|
|
3187
3192
|
continue;
|
|
3188
3193
|
}
|
|
3189
|
-
if (
|
|
3194
|
+
if (Yr(l)) {
|
|
3190
3195
|
typeof o == "number" && u.push({
|
|
3191
3196
|
type: w.literal,
|
|
3192
3197
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3195,25 +3200,25 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3195
3200
|
}
|
|
3196
3201
|
var c = l.value;
|
|
3197
3202
|
if (!(i && c in i))
|
|
3198
|
-
throw new
|
|
3203
|
+
throw new wn(c, s);
|
|
3199
3204
|
var f = i[c];
|
|
3200
|
-
if (
|
|
3205
|
+
if (qr(l)) {
|
|
3201
3206
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3202
3207
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3203
3208
|
value: f
|
|
3204
3209
|
});
|
|
3205
3210
|
continue;
|
|
3206
3211
|
}
|
|
3207
|
-
if (
|
|
3208
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3212
|
+
if (Pt(l)) {
|
|
3213
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3209
3214
|
u.push({
|
|
3210
3215
|
type: w.literal,
|
|
3211
3216
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3212
3217
|
});
|
|
3213
3218
|
continue;
|
|
3214
3219
|
}
|
|
3215
|
-
if (
|
|
3216
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3220
|
+
if (Nt(l)) {
|
|
3221
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3217
3222
|
u.push({
|
|
3218
3223
|
type: w.literal,
|
|
3219
3224
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
@@ -3221,63 +3226,63 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3221
3226
|
continue;
|
|
3222
3227
|
}
|
|
3223
3228
|
if (Ot(l)) {
|
|
3224
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3229
|
+
var p = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
|
|
3225
3230
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3226
3231
|
type: w.literal,
|
|
3227
3232
|
value: r.getNumberFormat(t, p).format(f)
|
|
3228
3233
|
});
|
|
3229
3234
|
continue;
|
|
3230
3235
|
}
|
|
3231
|
-
if (
|
|
3232
|
-
var d = l.children, g = l.value,
|
|
3233
|
-
if (!
|
|
3234
|
-
throw new
|
|
3235
|
-
var m =
|
|
3236
|
-
return
|
|
3236
|
+
if (Mt(l)) {
|
|
3237
|
+
var d = l.children, g = l.value, E = i[g];
|
|
3238
|
+
if (!Pn(E))
|
|
3239
|
+
throw new Sn(g, "function", s);
|
|
3240
|
+
var m = pe(d, t, r, n, i, o), C = E(m.map(function(B) {
|
|
3241
|
+
return B.value;
|
|
3237
3242
|
}));
|
|
3238
|
-
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(
|
|
3243
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3239
3244
|
return {
|
|
3240
|
-
type: typeof
|
|
3241
|
-
value:
|
|
3245
|
+
type: typeof B == "string" ? w.literal : w.object,
|
|
3246
|
+
value: B
|
|
3242
3247
|
};
|
|
3243
3248
|
}));
|
|
3244
3249
|
}
|
|
3245
|
-
if (
|
|
3246
|
-
var
|
|
3247
|
-
if (!
|
|
3248
|
-
throw new
|
|
3249
|
-
u.push.apply(u,
|
|
3250
|
+
if (Lt(l)) {
|
|
3251
|
+
var A = l.options[f] || l.options.other;
|
|
3252
|
+
if (!A)
|
|
3253
|
+
throw new ft(l.value, f, Object.keys(l.options), s);
|
|
3254
|
+
u.push.apply(u, pe(A.value, t, r, n, i));
|
|
3250
3255
|
continue;
|
|
3251
3256
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
var
|
|
3254
|
-
if (!
|
|
3257
|
+
if (It(l)) {
|
|
3258
|
+
var A = l.options["=".concat(f)];
|
|
3259
|
+
if (!A) {
|
|
3255
3260
|
if (!Intl.PluralRules)
|
|
3256
|
-
throw new
|
|
3261
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3257
3262
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3258
|
-
`,
|
|
3259
|
-
var
|
|
3260
|
-
|
|
3263
|
+
`, q.MISSING_INTL_API, s);
|
|
3264
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3265
|
+
A = l.options[O] || l.options.other;
|
|
3261
3266
|
}
|
|
3262
|
-
if (!
|
|
3263
|
-
throw new
|
|
3264
|
-
u.push.apply(u,
|
|
3267
|
+
if (!A)
|
|
3268
|
+
throw new ft(l.value, f, Object.keys(l.options), s);
|
|
3269
|
+
u.push.apply(u, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3265
3270
|
continue;
|
|
3266
3271
|
}
|
|
3267
3272
|
}
|
|
3268
3273
|
return On(u);
|
|
3269
3274
|
}
|
|
3270
|
-
function
|
|
3271
|
-
return t ?
|
|
3272
|
-
return r[n] =
|
|
3275
|
+
function Nn(e, t) {
|
|
3276
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3277
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3273
3278
|
}, {})) : e;
|
|
3274
3279
|
}
|
|
3275
|
-
function
|
|
3280
|
+
function Ln(e, t) {
|
|
3276
3281
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3277
|
-
return r[n] =
|
|
3278
|
-
},
|
|
3282
|
+
return r[n] = Nn(e[n], t[n]), r;
|
|
3283
|
+
}, x({}, e)) : e;
|
|
3279
3284
|
}
|
|
3280
|
-
function
|
|
3285
|
+
function Pe(e) {
|
|
3281
3286
|
return {
|
|
3282
3287
|
create: function() {
|
|
3283
3288
|
return {
|
|
@@ -3291,39 +3296,39 @@ function we(e) {
|
|
|
3291
3296
|
}
|
|
3292
3297
|
};
|
|
3293
3298
|
}
|
|
3294
|
-
function
|
|
3299
|
+
function In(e) {
|
|
3295
3300
|
return e === void 0 && (e = {
|
|
3296
3301
|
number: {},
|
|
3297
3302
|
dateTime: {},
|
|
3298
3303
|
pluralRules: {}
|
|
3299
3304
|
}), {
|
|
3300
|
-
getNumberFormat:
|
|
3305
|
+
getNumberFormat: Se(function() {
|
|
3301
3306
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3302
3307
|
r[n] = arguments[n];
|
|
3303
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3308
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3304
3309
|
}, {
|
|
3305
|
-
cache:
|
|
3306
|
-
strategy:
|
|
3310
|
+
cache: Pe(e.number),
|
|
3311
|
+
strategy: we.variadic
|
|
3307
3312
|
}),
|
|
3308
|
-
getDateTimeFormat:
|
|
3313
|
+
getDateTimeFormat: Se(function() {
|
|
3309
3314
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3310
3315
|
r[n] = arguments[n];
|
|
3311
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3316
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3312
3317
|
}, {
|
|
3313
|
-
cache:
|
|
3314
|
-
strategy:
|
|
3318
|
+
cache: Pe(e.dateTime),
|
|
3319
|
+
strategy: we.variadic
|
|
3315
3320
|
}),
|
|
3316
|
-
getPluralRules:
|
|
3321
|
+
getPluralRules: Se(function() {
|
|
3317
3322
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3318
3323
|
r[n] = arguments[n];
|
|
3319
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3324
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3320
3325
|
}, {
|
|
3321
|
-
cache:
|
|
3322
|
-
strategy:
|
|
3326
|
+
cache: Pe(e.pluralRules),
|
|
3327
|
+
strategy: we.variadic
|
|
3323
3328
|
})
|
|
3324
3329
|
};
|
|
3325
3330
|
}
|
|
3326
|
-
var
|
|
3331
|
+
var Mn = (
|
|
3327
3332
|
/** @class */
|
|
3328
3333
|
function() {
|
|
3329
3334
|
function e(t, r, n, i) {
|
|
@@ -3342,7 +3347,7 @@ var In = (
|
|
|
3342
3347
|
}, []);
|
|
3343
3348
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3344
3349
|
}, this.formatToParts = function(h) {
|
|
3345
|
-
return
|
|
3350
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3346
3351
|
}, this.resolvedOptions = function() {
|
|
3347
3352
|
var h;
|
|
3348
3353
|
return {
|
|
@@ -3355,13 +3360,13 @@ var In = (
|
|
|
3355
3360
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3356
3361
|
var s = i || {};
|
|
3357
3362
|
s.formatters;
|
|
3358
|
-
var u =
|
|
3359
|
-
this.ast = e.__parse(t,
|
|
3363
|
+
var u = kr(s, ["formatters"]);
|
|
3364
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3360
3365
|
} else
|
|
3361
3366
|
this.ast = t;
|
|
3362
3367
|
if (!Array.isArray(this.ast))
|
|
3363
3368
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3364
|
-
this.formats =
|
|
3369
|
+
this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3365
3370
|
}
|
|
3366
3371
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3367
3372
|
get: function() {
|
|
@@ -3374,7 +3379,7 @@ var In = (
|
|
|
3374
3379
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3375
3380
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3376
3381
|
}
|
|
3377
|
-
}, e.__parse =
|
|
3382
|
+
}, e.__parse = Bn, e.formats = {
|
|
3378
3383
|
number: {
|
|
3379
3384
|
integer: {
|
|
3380
3385
|
maximumFractionDigits: 0
|
|
@@ -3435,7 +3440,7 @@ var In = (
|
|
|
3435
3440
|
}, e;
|
|
3436
3441
|
}()
|
|
3437
3442
|
);
|
|
3438
|
-
function
|
|
3443
|
+
function $n(e, t) {
|
|
3439
3444
|
if (t == null)
|
|
3440
3445
|
return;
|
|
3441
3446
|
if (t in e)
|
|
@@ -3456,92 +3461,92 @@ function Mn(e, t) {
|
|
|
3456
3461
|
n = void 0;
|
|
3457
3462
|
return n;
|
|
3458
3463
|
}
|
|
3459
|
-
const
|
|
3464
|
+
const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Vt = (e, t) => {
|
|
3460
3465
|
if (t == null)
|
|
3461
3466
|
return;
|
|
3462
|
-
if (t in
|
|
3463
|
-
return
|
|
3464
|
-
const r =
|
|
3467
|
+
if (t in D && e in D[t])
|
|
3468
|
+
return D[t][e];
|
|
3469
|
+
const r = Te(t);
|
|
3465
3470
|
for (let n = 0; n < r.length; n++) {
|
|
3466
|
-
const i = r[n], o =
|
|
3471
|
+
const i = r[n], o = Gn(i, e);
|
|
3467
3472
|
if (o)
|
|
3468
|
-
return
|
|
3473
|
+
return Rn(e, t, o);
|
|
3469
3474
|
}
|
|
3470
3475
|
};
|
|
3471
|
-
let
|
|
3472
|
-
const
|
|
3473
|
-
function
|
|
3474
|
-
return
|
|
3476
|
+
let ze;
|
|
3477
|
+
const he = xe({});
|
|
3478
|
+
function Un(e) {
|
|
3479
|
+
return ze[e] || null;
|
|
3475
3480
|
}
|
|
3476
|
-
function
|
|
3477
|
-
return e in
|
|
3481
|
+
function Xt(e) {
|
|
3482
|
+
return e in ze;
|
|
3478
3483
|
}
|
|
3479
|
-
function
|
|
3480
|
-
if (!
|
|
3484
|
+
function Gn(e, t) {
|
|
3485
|
+
if (!Xt(e))
|
|
3481
3486
|
return null;
|
|
3482
|
-
const r =
|
|
3483
|
-
return
|
|
3487
|
+
const r = Un(e);
|
|
3488
|
+
return $n(r, t);
|
|
3484
3489
|
}
|
|
3485
|
-
function
|
|
3490
|
+
function Dn(e) {
|
|
3486
3491
|
if (e == null)
|
|
3487
3492
|
return;
|
|
3488
|
-
const t =
|
|
3493
|
+
const t = Te(e);
|
|
3489
3494
|
for (let r = 0; r < t.length; r++) {
|
|
3490
3495
|
const n = t[r];
|
|
3491
|
-
if (
|
|
3496
|
+
if (Xt(n))
|
|
3492
3497
|
return n;
|
|
3493
3498
|
}
|
|
3494
3499
|
}
|
|
3495
|
-
function
|
|
3496
|
-
delete
|
|
3500
|
+
function zt(e, ...t) {
|
|
3501
|
+
delete D[e], he.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
|
|
3497
3502
|
}
|
|
3498
|
-
|
|
3499
|
-
[
|
|
3503
|
+
ee(
|
|
3504
|
+
[he],
|
|
3500
3505
|
([e]) => Object.keys(e)
|
|
3501
3506
|
);
|
|
3502
|
-
|
|
3503
|
-
const
|
|
3504
|
-
function
|
|
3505
|
-
|
|
3507
|
+
he.subscribe((e) => ze = e);
|
|
3508
|
+
const de = {};
|
|
3509
|
+
function Fn(e, t) {
|
|
3510
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3506
3511
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return
|
|
3512
|
+
function Wt(e) {
|
|
3513
|
+
return de[e];
|
|
3509
3514
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3512
|
-
const r =
|
|
3515
|
+
function jn(e) {
|
|
3516
|
+
return Te(e).map((t) => {
|
|
3517
|
+
const r = Wt(t);
|
|
3513
3518
|
return [t, r ? [...r] : []];
|
|
3514
3519
|
}).filter(([, t]) => t.length > 0);
|
|
3515
3520
|
}
|
|
3516
|
-
function
|
|
3517
|
-
return e == null ? !1 :
|
|
3521
|
+
function ke(e) {
|
|
3522
|
+
return e == null ? !1 : Te(e).some(
|
|
3518
3523
|
(t) => {
|
|
3519
3524
|
var r;
|
|
3520
|
-
return (r =
|
|
3525
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3521
3526
|
}
|
|
3522
3527
|
);
|
|
3523
3528
|
}
|
|
3524
|
-
function
|
|
3529
|
+
function kn(e, t) {
|
|
3525
3530
|
return Promise.all(
|
|
3526
|
-
t.map((n) => (
|
|
3527
|
-
).then((n) =>
|
|
3528
|
-
}
|
|
3529
|
-
const
|
|
3530
|
-
function
|
|
3531
|
-
if (!
|
|
3532
|
-
return e in
|
|
3533
|
-
const t =
|
|
3534
|
-
return
|
|
3531
|
+
t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
|
|
3532
|
+
).then((n) => zt(e, ...n));
|
|
3533
|
+
}
|
|
3534
|
+
const ne = {};
|
|
3535
|
+
function Zt(e) {
|
|
3536
|
+
if (!ke(e))
|
|
3537
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3538
|
+
const t = jn(e);
|
|
3539
|
+
return ne[e] = Promise.all(
|
|
3535
3540
|
t.map(
|
|
3536
|
-
([r, n]) =>
|
|
3541
|
+
([r, n]) => kn(r, n)
|
|
3537
3542
|
)
|
|
3538
3543
|
).then(() => {
|
|
3539
|
-
if (
|
|
3540
|
-
return
|
|
3541
|
-
delete
|
|
3542
|
-
}),
|
|
3544
|
+
if (ke(e))
|
|
3545
|
+
return Zt(e);
|
|
3546
|
+
delete ne[e];
|
|
3547
|
+
}), ne[e];
|
|
3543
3548
|
}
|
|
3544
|
-
const
|
|
3549
|
+
const Vn = {
|
|
3545
3550
|
number: {
|
|
3546
3551
|
scientific: { notation: "scientific" },
|
|
3547
3552
|
engineering: { notation: "engineering" },
|
|
@@ -3570,150 +3575,150 @@ const kn = {
|
|
|
3570
3575
|
timeZoneName: "short"
|
|
3571
3576
|
}
|
|
3572
3577
|
}
|
|
3573
|
-
},
|
|
3578
|
+
}, Xn = {
|
|
3574
3579
|
fallbackLocale: null,
|
|
3575
3580
|
loadingDelay: 200,
|
|
3576
|
-
formats:
|
|
3581
|
+
formats: Vn,
|
|
3577
3582
|
warnOnMissingMessages: !0,
|
|
3578
3583
|
handleMissingMessage: void 0,
|
|
3579
3584
|
ignoreTag: !0
|
|
3580
|
-
},
|
|
3581
|
-
function
|
|
3582
|
-
return
|
|
3585
|
+
}, zn = Xn;
|
|
3586
|
+
function Y() {
|
|
3587
|
+
return zn;
|
|
3583
3588
|
}
|
|
3584
|
-
const
|
|
3585
|
-
var
|
|
3589
|
+
const Ne = xe(!1);
|
|
3590
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3586
3591
|
for (var r in t || (t = {}))
|
|
3587
|
-
|
|
3588
|
-
if (
|
|
3589
|
-
for (var r of
|
|
3590
|
-
|
|
3592
|
+
Jn.call(t, r) && gt(e, r, t[r]);
|
|
3593
|
+
if (ct)
|
|
3594
|
+
for (var r of ct(t))
|
|
3595
|
+
qn.call(t, r) && gt(e, r, t[r]);
|
|
3591
3596
|
return e;
|
|
3592
|
-
},
|
|
3593
|
-
let
|
|
3594
|
-
const
|
|
3595
|
-
function
|
|
3597
|
+
}, Kn = (e, t) => Zn(e, Qn(t));
|
|
3598
|
+
let Ve;
|
|
3599
|
+
const ye = xe(null);
|
|
3600
|
+
function mt(e) {
|
|
3596
3601
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3597
3602
|
}
|
|
3598
|
-
function
|
|
3599
|
-
const r =
|
|
3600
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3603
|
+
function Te(e, t = Y().fallbackLocale) {
|
|
3604
|
+
const r = mt(e);
|
|
3605
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
3601
3606
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return
|
|
3607
|
+
function V() {
|
|
3608
|
+
return Ve != null ? Ve : void 0;
|
|
3604
3609
|
}
|
|
3605
|
-
|
|
3606
|
-
|
|
3610
|
+
ye.subscribe((e) => {
|
|
3611
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3607
3612
|
});
|
|
3608
|
-
const
|
|
3609
|
-
if (e &&
|
|
3610
|
-
const { loadingDelay: t } =
|
|
3613
|
+
const ei = (e) => {
|
|
3614
|
+
if (e && Dn(e) && ke(e)) {
|
|
3615
|
+
const { loadingDelay: t } = Y();
|
|
3611
3616
|
let r;
|
|
3612
|
-
return typeof window != "undefined" &&
|
|
3613
|
-
() =>
|
|
3617
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3618
|
+
() => Ne.set(!0),
|
|
3614
3619
|
t
|
|
3615
|
-
) :
|
|
3616
|
-
|
|
3620
|
+
) : Ne.set(!0), Zt(e).then(() => {
|
|
3621
|
+
ye.set(e);
|
|
3617
3622
|
}).finally(() => {
|
|
3618
|
-
clearTimeout(r),
|
|
3623
|
+
clearTimeout(r), Ne.set(!1);
|
|
3619
3624
|
});
|
|
3620
3625
|
}
|
|
3621
|
-
return
|
|
3622
|
-
},
|
|
3623
|
-
set:
|
|
3624
|
-
}),
|
|
3626
|
+
return ye.set(e);
|
|
3627
|
+
}, te = Kn(Yn({}, ye), {
|
|
3628
|
+
set: ei
|
|
3629
|
+
}), Ce = (e) => {
|
|
3625
3630
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3626
3631
|
return (n) => {
|
|
3627
3632
|
const i = JSON.stringify(n);
|
|
3628
3633
|
return i in t ? t[i] : t[i] = e(n);
|
|
3629
3634
|
};
|
|
3630
3635
|
};
|
|
3631
|
-
var
|
|
3636
|
+
var ti = Object.defineProperty, _e = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3632
3637
|
for (var r in t || (t = {}))
|
|
3633
|
-
|
|
3634
|
-
if (
|
|
3635
|
-
for (var r of
|
|
3636
|
-
|
|
3638
|
+
Qt.call(t, r) && pt(e, r, t[r]);
|
|
3639
|
+
if (_e)
|
|
3640
|
+
for (var r of _e(t))
|
|
3641
|
+
Jt.call(t, r) && pt(e, r, t[r]);
|
|
3637
3642
|
return e;
|
|
3638
|
-
},
|
|
3643
|
+
}, re = (e, t) => {
|
|
3639
3644
|
var r = {};
|
|
3640
3645
|
for (var n in e)
|
|
3641
|
-
|
|
3642
|
-
if (e != null &&
|
|
3643
|
-
for (var n of
|
|
3644
|
-
t.indexOf(n) < 0 &&
|
|
3646
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3647
|
+
if (e != null && _e)
|
|
3648
|
+
for (var n of _e(e))
|
|
3649
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3645
3650
|
return r;
|
|
3646
3651
|
};
|
|
3647
|
-
const
|
|
3648
|
-
const { formats: r } =
|
|
3652
|
+
const ae = (e, t) => {
|
|
3653
|
+
const { formats: r } = Y();
|
|
3649
3654
|
if (e in r && t in r[e])
|
|
3650
3655
|
return r[e][t];
|
|
3651
3656
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3652
|
-
},
|
|
3657
|
+
}, ri = Ce(
|
|
3653
3658
|
(e) => {
|
|
3654
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3659
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3655
3660
|
if (r == null)
|
|
3656
3661
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3657
|
-
return n && (i =
|
|
3662
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3658
3663
|
}
|
|
3659
|
-
),
|
|
3664
|
+
), ni = Ce(
|
|
3660
3665
|
(e) => {
|
|
3661
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3666
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3662
3667
|
if (r == null)
|
|
3663
3668
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3664
|
-
return n ? i =
|
|
3669
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3665
3670
|
}
|
|
3666
|
-
),
|
|
3671
|
+
), ii = Ce(
|
|
3667
3672
|
(e) => {
|
|
3668
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3673
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3669
3674
|
if (r == null)
|
|
3670
3675
|
throw new Error(
|
|
3671
3676
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3672
3677
|
);
|
|
3673
|
-
return n ? i =
|
|
3678
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3674
3679
|
}
|
|
3675
|
-
),
|
|
3680
|
+
), oi = (e = {}) => {
|
|
3676
3681
|
var t = e, {
|
|
3677
|
-
locale: r =
|
|
3678
|
-
} = t, n =
|
|
3682
|
+
locale: r = V()
|
|
3683
|
+
} = t, n = re(t, [
|
|
3679
3684
|
"locale"
|
|
3680
3685
|
]);
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3686
|
+
return ri(We({ locale: r }, n));
|
|
3687
|
+
}, si = (e = {}) => {
|
|
3683
3688
|
var t = e, {
|
|
3684
|
-
locale: r =
|
|
3685
|
-
} = t, n =
|
|
3689
|
+
locale: r = V()
|
|
3690
|
+
} = t, n = re(t, [
|
|
3686
3691
|
"locale"
|
|
3687
3692
|
]);
|
|
3688
|
-
return
|
|
3689
|
-
},
|
|
3693
|
+
return ni(We({ locale: r }, n));
|
|
3694
|
+
}, ai = (e = {}) => {
|
|
3690
3695
|
var t = e, {
|
|
3691
|
-
locale: r =
|
|
3692
|
-
} = t, n =
|
|
3696
|
+
locale: r = V()
|
|
3697
|
+
} = t, n = re(t, [
|
|
3693
3698
|
"locale"
|
|
3694
3699
|
]);
|
|
3695
|
-
return
|
|
3696
|
-
},
|
|
3700
|
+
return ii(We({ locale: r }, n));
|
|
3701
|
+
}, ui = Ce(
|
|
3697
3702
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3698
|
-
(e, t =
|
|
3699
|
-
ignoreTag:
|
|
3703
|
+
(e, t = V()) => new Mn(e, t, Y().formats, {
|
|
3704
|
+
ignoreTag: Y().ignoreTag
|
|
3700
3705
|
})
|
|
3701
|
-
),
|
|
3706
|
+
), hi = (e, t = {}) => {
|
|
3702
3707
|
var r, n, i, o;
|
|
3703
3708
|
let s = t;
|
|
3704
3709
|
typeof e == "object" && (s = e, e = s.id);
|
|
3705
3710
|
const {
|
|
3706
3711
|
values: u,
|
|
3707
|
-
locale: h =
|
|
3712
|
+
locale: h = V(),
|
|
3708
3713
|
default: a
|
|
3709
3714
|
} = s;
|
|
3710
3715
|
if (h == null)
|
|
3711
3716
|
throw new Error(
|
|
3712
3717
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3713
3718
|
);
|
|
3714
|
-
let l =
|
|
3719
|
+
let l = Vt(e, h);
|
|
3715
3720
|
if (!l)
|
|
3716
|
-
l = (o = (i = (n = (r =
|
|
3721
|
+
l = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3717
3722
|
else if (typeof l != "string")
|
|
3718
3723
|
return console.warn(
|
|
3719
3724
|
`[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.`
|
|
@@ -3722,7 +3727,7 @@ const se = (e, t) => {
|
|
|
3722
3727
|
return l;
|
|
3723
3728
|
let c = l;
|
|
3724
3729
|
try {
|
|
3725
|
-
c =
|
|
3730
|
+
c = ui(l, h).format(u);
|
|
3726
3731
|
} catch (f) {
|
|
3727
3732
|
f instanceof Error && console.warn(
|
|
3728
3733
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3730,18 +3735,18 @@ const se = (e, t) => {
|
|
|
3730
3735
|
);
|
|
3731
3736
|
}
|
|
3732
3737
|
return c;
|
|
3733
|
-
},
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
function
|
|
3739
|
-
|
|
3740
|
-
}
|
|
3741
|
-
function
|
|
3742
|
-
|
|
3743
|
-
}
|
|
3744
|
-
const
|
|
3738
|
+
}, li = (e, t) => ai(t).format(e), fi = (e, t) => si(t).format(e), ci = (e, t) => oi(t).format(e), gi = (e, t = V()) => Vt(e, t), mi = ee([te, he], () => hi);
|
|
3739
|
+
ee([te], () => li);
|
|
3740
|
+
ee([te], () => fi);
|
|
3741
|
+
ee([te], () => ci);
|
|
3742
|
+
ee([te, he], () => gi);
|
|
3743
|
+
function dt(e, t) {
|
|
3744
|
+
zt(e, t);
|
|
3745
|
+
}
|
|
3746
|
+
function pi(e) {
|
|
3747
|
+
te.set(e);
|
|
3748
|
+
}
|
|
3749
|
+
const bt = {
|
|
3745
3750
|
en: {
|
|
3746
3751
|
topCategories: "Top Categories",
|
|
3747
3752
|
otherCategories: "Other Categories",
|
|
@@ -3851,13 +3856,13 @@ const dt = {
|
|
|
3851
3856
|
games: "games"
|
|
3852
3857
|
}
|
|
3853
3858
|
};
|
|
3854
|
-
function
|
|
3859
|
+
function di(e, t) {
|
|
3855
3860
|
if (e) {
|
|
3856
3861
|
const r = document.createElement("style");
|
|
3857
3862
|
r.innerHTML = t, e.appendChild(r);
|
|
3858
3863
|
}
|
|
3859
3864
|
}
|
|
3860
|
-
function
|
|
3865
|
+
function bi(e, t) {
|
|
3861
3866
|
const r = new URL(t);
|
|
3862
3867
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3863
3868
|
const i = document.createElement("style");
|
|
@@ -3866,7 +3871,7 @@ function di(e, t) {
|
|
|
3866
3871
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3867
3872
|
});
|
|
3868
3873
|
}
|
|
3869
|
-
function
|
|
3874
|
+
function yi(e, t, r) {
|
|
3870
3875
|
if (window.emMessageBus) {
|
|
3871
3876
|
const n = document.createElement("style");
|
|
3872
3877
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3874,14 +3879,14 @@ function bi(e, t, r) {
|
|
|
3874
3879
|
});
|
|
3875
3880
|
}
|
|
3876
3881
|
}
|
|
3877
|
-
function
|
|
3878
|
-
|
|
3882
|
+
function _i(e) {
|
|
3883
|
+
sr(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3879
3884
|
}
|
|
3880
|
-
function
|
|
3885
|
+
function yt(e, t, r) {
|
|
3881
3886
|
const n = e.slice();
|
|
3882
3887
|
return n[23] = t[r], n;
|
|
3883
3888
|
}
|
|
3884
|
-
function
|
|
3889
|
+
function _t(e, t, r) {
|
|
3885
3890
|
const n = e.slice();
|
|
3886
3891
|
return n[23] = t[r], n;
|
|
3887
3892
|
}
|
|
@@ -3892,66 +3897,66 @@ function xi(e) {
|
|
|
3892
3897
|
), i, o, s, u, h = (
|
|
3893
3898
|
/*$_*/
|
|
3894
3899
|
e[5]("otherCategories") + ""
|
|
3895
|
-
), a, l, c =
|
|
3900
|
+
), a, l, c = ce(
|
|
3896
3901
|
/*topCategories*/
|
|
3897
3902
|
e[3]
|
|
3898
3903
|
), f = [];
|
|
3899
3904
|
for (let g = 0; g < c.length; g += 1)
|
|
3900
|
-
f[g] = xt(
|
|
3901
|
-
let p =
|
|
3905
|
+
f[g] = xt(_t(e, c, g));
|
|
3906
|
+
let p = ce(
|
|
3902
3907
|
/*otherCategories*/
|
|
3903
3908
|
e[4]
|
|
3904
3909
|
), d = [];
|
|
3905
3910
|
for (let g = 0; g < p.length; g += 1)
|
|
3906
|
-
d[g] = Et(
|
|
3911
|
+
d[g] = Et(yt(e, p, g));
|
|
3907
3912
|
return {
|
|
3908
3913
|
c() {
|
|
3909
|
-
t =
|
|
3914
|
+
t = S("div"), r = S("h4"), i = G(n), o = U();
|
|
3910
3915
|
for (let g = 0; g < f.length; g += 1)
|
|
3911
3916
|
f[g].c();
|
|
3912
|
-
s =
|
|
3917
|
+
s = U(), u = S("h4"), a = G(h), l = U();
|
|
3913
3918
|
for (let g = 0; g < d.length; g += 1)
|
|
3914
3919
|
d[g].c();
|
|
3915
|
-
|
|
3920
|
+
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3916
3921
|
},
|
|
3917
|
-
m(g,
|
|
3918
|
-
|
|
3922
|
+
m(g, E) {
|
|
3923
|
+
K(g, t, E), v(t, r), v(r, i), v(t, o);
|
|
3919
3924
|
for (let m = 0; m < f.length; m += 1)
|
|
3920
3925
|
f[m] && f[m].m(t, null);
|
|
3921
3926
|
v(t, s), v(t, u), v(u, a), v(t, l);
|
|
3922
3927
|
for (let m = 0; m < d.length; m += 1)
|
|
3923
3928
|
d[m] && d[m].m(t, null);
|
|
3924
3929
|
},
|
|
3925
|
-
p(g,
|
|
3926
|
-
if (
|
|
3930
|
+
p(g, E) {
|
|
3931
|
+
if (E & /*$_*/
|
|
3927
3932
|
32 && n !== (n = /*$_*/
|
|
3928
|
-
g[5]("topCategories") + "") &&
|
|
3933
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3929
3934
|
105) {
|
|
3930
|
-
c =
|
|
3935
|
+
c = ce(
|
|
3931
3936
|
/*topCategories*/
|
|
3932
3937
|
g[3]
|
|
3933
3938
|
);
|
|
3934
3939
|
let m;
|
|
3935
3940
|
for (m = 0; m < c.length; m += 1) {
|
|
3936
|
-
const C =
|
|
3937
|
-
f[m] ? f[m].p(C,
|
|
3941
|
+
const C = _t(g, c, m);
|
|
3942
|
+
f[m] ? f[m].p(C, E) : (f[m] = xt(C), f[m].c(), f[m].m(t, s));
|
|
3938
3943
|
}
|
|
3939
3944
|
for (; m < f.length; m += 1)
|
|
3940
3945
|
f[m].d(1);
|
|
3941
3946
|
f.length = c.length;
|
|
3942
3947
|
}
|
|
3943
|
-
if (
|
|
3948
|
+
if (E & /*$_*/
|
|
3944
3949
|
32 && h !== (h = /*$_*/
|
|
3945
|
-
g[5]("otherCategories") + "") &&
|
|
3950
|
+
g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3946
3951
|
113) {
|
|
3947
|
-
p =
|
|
3952
|
+
p = ce(
|
|
3948
3953
|
/*otherCategories*/
|
|
3949
3954
|
g[4]
|
|
3950
3955
|
);
|
|
3951
3956
|
let m;
|
|
3952
3957
|
for (m = 0; m < p.length; m += 1) {
|
|
3953
|
-
const C =
|
|
3954
|
-
d[m] ? d[m].p(C,
|
|
3958
|
+
const C = yt(g, p, m);
|
|
3959
|
+
d[m] ? d[m].p(C, E) : (d[m] = Et(C), d[m].c(), d[m].m(t, null));
|
|
3955
3960
|
}
|
|
3956
3961
|
for (; m < d.length; m += 1)
|
|
3957
3962
|
d[m].d(1);
|
|
@@ -3959,7 +3964,7 @@ function xi(e) {
|
|
|
3959
3964
|
}
|
|
3960
3965
|
},
|
|
3961
3966
|
d(g) {
|
|
3962
|
-
g &&
|
|
3967
|
+
g && k(t), tt(f, g), tt(d, g);
|
|
3963
3968
|
}
|
|
3964
3969
|
};
|
|
3965
3970
|
}
|
|
@@ -3967,14 +3972,14 @@ function Ei(e) {
|
|
|
3967
3972
|
let t;
|
|
3968
3973
|
return {
|
|
3969
3974
|
c() {
|
|
3970
|
-
t =
|
|
3975
|
+
t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3971
3976
|
},
|
|
3972
3977
|
m(r, n) {
|
|
3973
|
-
|
|
3978
|
+
K(r, t, n);
|
|
3974
3979
|
},
|
|
3975
|
-
p:
|
|
3980
|
+
p: L,
|
|
3976
3981
|
d(r) {
|
|
3977
|
-
r &&
|
|
3982
|
+
r && k(t);
|
|
3978
3983
|
}
|
|
3979
3984
|
};
|
|
3980
3985
|
}
|
|
@@ -3988,8 +3993,8 @@ function xt(e) {
|
|
|
3988
3993
|
), p, d, g = (
|
|
3989
3994
|
/*$_*/
|
|
3990
3995
|
e[5]("games") + ""
|
|
3991
|
-
),
|
|
3992
|
-
function
|
|
3996
|
+
), E, m, C, A;
|
|
3997
|
+
function O() {
|
|
3993
3998
|
return (
|
|
3994
3999
|
/*click_handler*/
|
|
3995
4000
|
e[15](
|
|
@@ -4000,33 +4005,33 @@ function xt(e) {
|
|
|
4000
4005
|
}
|
|
4001
4006
|
return {
|
|
4002
4007
|
c() {
|
|
4003
|
-
t =
|
|
4004
|
-
e[23].icon) ||
|
|
4005
|
-
e[23].name),
|
|
4008
|
+
t = S("div"), r = S("ui-image"), o = U(), s = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
4009
|
+
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4010
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4006
4011
|
(e[0] === /*category*/
|
|
4007
4012
|
e[23].id ? "Active" : ""));
|
|
4008
4013
|
},
|
|
4009
|
-
m(
|
|
4010
|
-
|
|
4014
|
+
m(B, H) {
|
|
4015
|
+
K(B, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, l), v(s, c), v(c, p), v(c, d), v(c, E), C || (A = Ht(t, "click", O), C = !0);
|
|
4011
4016
|
},
|
|
4012
|
-
p(
|
|
4013
|
-
e =
|
|
4014
|
-
8 && !
|
|
4015
|
-
e[23].icon) &&
|
|
4017
|
+
p(B, H) {
|
|
4018
|
+
e = B, H & /*topCategories*/
|
|
4019
|
+
8 && !be(r.src, n = /*category*/
|
|
4020
|
+
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4016
4021
|
8 && i !== (i = /*category*/
|
|
4017
|
-
e[23].name) &&
|
|
4022
|
+
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4018
4023
|
8 && h !== (h = /*category*/
|
|
4019
|
-
e[23].name + "") &&
|
|
4024
|
+
e[23].name + "") && F(a, h), H & /*topCategories*/
|
|
4020
4025
|
8 && f !== (f = /*category*/
|
|
4021
|
-
e[23].games.count + "") &&
|
|
4026
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
4022
4027
|
32 && g !== (g = /*$_*/
|
|
4023
|
-
e[5]("games") + "") &&
|
|
4028
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4024
4029
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4025
4030
|
(e[0] === /*category*/
|
|
4026
|
-
e[23].id ? "Active" : "")) &&
|
|
4031
|
+
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4027
4032
|
},
|
|
4028
|
-
d(
|
|
4029
|
-
|
|
4033
|
+
d(B) {
|
|
4034
|
+
B && k(t), C = !1, A();
|
|
4030
4035
|
}
|
|
4031
4036
|
};
|
|
4032
4037
|
}
|
|
@@ -4040,8 +4045,8 @@ function Et(e) {
|
|
|
4040
4045
|
), p, d, g = (
|
|
4041
4046
|
/*$_*/
|
|
4042
4047
|
e[5]("games") + ""
|
|
4043
|
-
),
|
|
4044
|
-
function
|
|
4048
|
+
), E, m, C, A, O;
|
|
4049
|
+
function B() {
|
|
4045
4050
|
return (
|
|
4046
4051
|
/*click_handler_1*/
|
|
4047
4052
|
e[16](
|
|
@@ -4052,37 +4057,37 @@ function Et(e) {
|
|
|
4052
4057
|
}
|
|
4053
4058
|
return {
|
|
4054
4059
|
c() {
|
|
4055
|
-
t =
|
|
4056
|
-
e[23].icon) ||
|
|
4057
|
-
e[23].name),
|
|
4060
|
+
t = S("div"), r = S("ui-image"), o = U(), s = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4061
|
+
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4062
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", C = "Category " + /*activecategory*/
|
|
4058
4063
|
(e[0] === /*category*/
|
|
4059
4064
|
e[23].id ? "Active" : ""));
|
|
4060
4065
|
},
|
|
4061
|
-
m(H,
|
|
4062
|
-
|
|
4066
|
+
m(H, P) {
|
|
4067
|
+
K(H, t, P), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, l), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = Ht(t, "click", B), A = !0);
|
|
4063
4068
|
},
|
|
4064
|
-
p(H,
|
|
4065
|
-
e = H,
|
|
4066
|
-
16 && !
|
|
4067
|
-
e[23].icon) &&
|
|
4069
|
+
p(H, P) {
|
|
4070
|
+
e = H, P & /*otherCategories*/
|
|
4071
|
+
16 && !be(r.src, n = /*category*/
|
|
4072
|
+
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4068
4073
|
16 && i !== (i = /*category*/
|
|
4069
|
-
e[23].name) &&
|
|
4074
|
+
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4070
4075
|
16 && h !== (h = /*category*/
|
|
4071
|
-
e[23].name + "") &&
|
|
4076
|
+
e[23].name + "") && F(a, h), P & /*otherCategories*/
|
|
4072
4077
|
16 && f !== (f = /*category*/
|
|
4073
|
-
e[23].games.count + "") &&
|
|
4078
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4074
4079
|
32 && g !== (g = /*$_*/
|
|
4075
|
-
e[5]("games") + "") &&
|
|
4080
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4076
4081
|
17 && C !== (C = "Category " + /*activecategory*/
|
|
4077
4082
|
(e[0] === /*category*/
|
|
4078
|
-
e[23].id ? "Active" : "")) &&
|
|
4083
|
+
e[23].id ? "Active" : "")) && I(t, "class", C);
|
|
4079
4084
|
},
|
|
4080
4085
|
d(H) {
|
|
4081
|
-
H &&
|
|
4086
|
+
H && k(t), A = !1, O();
|
|
4082
4087
|
}
|
|
4083
4088
|
};
|
|
4084
4089
|
}
|
|
4085
|
-
function
|
|
4090
|
+
function vi(e) {
|
|
4086
4091
|
let t;
|
|
4087
4092
|
function r(o, s) {
|
|
4088
4093
|
return (
|
|
@@ -4093,61 +4098,61 @@ function _i(e) {
|
|
|
4093
4098
|
let n = r(e), i = n(e);
|
|
4094
4099
|
return {
|
|
4095
4100
|
c() {
|
|
4096
|
-
t =
|
|
4101
|
+
t = S("div"), i.c();
|
|
4097
4102
|
},
|
|
4098
4103
|
m(o, s) {
|
|
4099
|
-
|
|
4104
|
+
K(o, t, s), i.m(t, null), e[17](t);
|
|
4100
4105
|
},
|
|
4101
4106
|
p(o, [s]) {
|
|
4102
4107
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4103
4108
|
},
|
|
4104
|
-
i:
|
|
4105
|
-
o:
|
|
4109
|
+
i: L,
|
|
4110
|
+
o: L,
|
|
4106
4111
|
d(o) {
|
|
4107
|
-
o &&
|
|
4112
|
+
o && k(t), i.d(), e[17](null);
|
|
4108
4113
|
}
|
|
4109
4114
|
};
|
|
4110
4115
|
}
|
|
4111
|
-
function
|
|
4116
|
+
function Ti(e, t, r) {
|
|
4112
4117
|
let n;
|
|
4113
|
-
|
|
4118
|
+
or(e, mi, (b) => r(5, n = b));
|
|
4114
4119
|
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4115
4120
|
const g = [];
|
|
4116
|
-
let
|
|
4117
|
-
Object.keys(
|
|
4118
|
-
|
|
4121
|
+
let E = [], m = [];
|
|
4122
|
+
Object.keys(bt).forEach((b) => {
|
|
4123
|
+
dt(b, bt[b]);
|
|
4119
4124
|
});
|
|
4120
4125
|
const C = () => {
|
|
4121
4126
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4122
|
-
Object.keys($).forEach((
|
|
4123
|
-
|
|
4127
|
+
Object.keys($).forEach((le) => {
|
|
4128
|
+
dt(le, $[le]);
|
|
4124
4129
|
});
|
|
4125
4130
|
}).catch(($) => {
|
|
4126
4131
|
console.log($);
|
|
4127
4132
|
});
|
|
4128
|
-
},
|
|
4133
|
+
}, A = () => {
|
|
4129
4134
|
r(2, d = !0);
|
|
4130
4135
|
const b = new URL(`${i}/v1/casino/groups/${o}`);
|
|
4131
4136
|
b.searchParams.append("language", s), fetch(b).then(($) => $.json()).then(($) => {
|
|
4132
4137
|
r(2, d = !1);
|
|
4133
|
-
const
|
|
4138
|
+
const le = h.split(",").map((j) => j.trim());
|
|
4134
4139
|
g.push(...$.items);
|
|
4135
|
-
const
|
|
4136
|
-
var
|
|
4137
|
-
return ((
|
|
4140
|
+
const Ze = g.filter((j) => !le.some((Yt) => {
|
|
4141
|
+
var Qe;
|
|
4142
|
+
return ((Qe = j.flags) == null ? void 0 : Qe.indexOf(Yt)) >= 0;
|
|
4138
4143
|
}));
|
|
4139
|
-
r(3,
|
|
4144
|
+
r(3, E = Ze.filter((j) => j.isTopCategory === !0)), r(4, m = Ze.filter((j) => j.isTopCategory === !1));
|
|
4140
4145
|
});
|
|
4141
|
-
},
|
|
4146
|
+
}, O = (b) => {
|
|
4142
4147
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4143
|
-
},
|
|
4144
|
-
|
|
4148
|
+
}, B = () => {
|
|
4149
|
+
pi(s);
|
|
4145
4150
|
};
|
|
4146
|
-
|
|
4151
|
+
cr(() => () => {
|
|
4147
4152
|
});
|
|
4148
|
-
const H = (b) =>
|
|
4149
|
-
function
|
|
4150
|
-
|
|
4153
|
+
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4154
|
+
function qt(b) {
|
|
4155
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4151
4156
|
p = b, r(1, p);
|
|
4152
4157
|
});
|
|
4153
4158
|
}
|
|
@@ -4155,20 +4160,20 @@ function vi(e, t, r) {
|
|
|
4155
4160
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4156
4161
|
}, e.$$.update = () => {
|
|
4157
4162
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4158
|
-
384 && i && o &&
|
|
4163
|
+
384 && i && o && A(), e.$$.dirty & /*translationurl*/
|
|
4159
4164
|
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4160
|
-
512 && s &&
|
|
4161
|
-
2050 && a && p &&
|
|
4162
|
-
4098 && l && p &&
|
|
4163
|
-
16386 && f && p &&
|
|
4165
|
+
512 && s && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4166
|
+
2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4167
|
+
4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4168
|
+
16386 && f && p && yi(p, `${f}.Style`);
|
|
4164
4169
|
}, [
|
|
4165
4170
|
u,
|
|
4166
4171
|
p,
|
|
4167
4172
|
d,
|
|
4168
|
-
|
|
4173
|
+
E,
|
|
4169
4174
|
m,
|
|
4170
4175
|
n,
|
|
4171
|
-
|
|
4176
|
+
O,
|
|
4172
4177
|
i,
|
|
4173
4178
|
o,
|
|
4174
4179
|
s,
|
|
@@ -4178,18 +4183,18 @@ function vi(e, t, r) {
|
|
|
4178
4183
|
c,
|
|
4179
4184
|
f,
|
|
4180
4185
|
H,
|
|
4181
|
-
|
|
4182
|
-
|
|
4186
|
+
P,
|
|
4187
|
+
qt
|
|
4183
4188
|
];
|
|
4184
4189
|
}
|
|
4185
|
-
class
|
|
4190
|
+
class Ci extends Cr {
|
|
4186
4191
|
constructor(t) {
|
|
4187
|
-
super(),
|
|
4192
|
+
super(), vr(
|
|
4188
4193
|
this,
|
|
4189
4194
|
t,
|
|
4195
|
+
Ti,
|
|
4190
4196
|
vi,
|
|
4191
|
-
|
|
4192
|
-
vt,
|
|
4197
|
+
Tt,
|
|
4193
4198
|
{
|
|
4194
4199
|
endpoint: 7,
|
|
4195
4200
|
datasource: 8,
|
|
@@ -4201,7 +4206,7 @@ class Ti extends Tr {
|
|
|
4201
4206
|
translationurl: 13,
|
|
4202
4207
|
mbsource: 14
|
|
4203
4208
|
},
|
|
4204
|
-
|
|
4209
|
+
_i
|
|
4205
4210
|
);
|
|
4206
4211
|
}
|
|
4207
4212
|
get endpoint() {
|
|
@@ -4259,7 +4264,7 @@ class Ti extends Tr {
|
|
|
4259
4264
|
this.$$set({ mbsource: t }), M();
|
|
4260
4265
|
}
|
|
4261
4266
|
}
|
|
4262
|
-
|
|
4267
|
+
Tr(Ci, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4263
4268
|
export {
|
|
4264
|
-
|
|
4269
|
+
Ci as default
|
|
4265
4270
|
};
|