@everymatrix/player-active-bonuses 1.76.13 → 1.76.14
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/PlayerActiveBonuses-BSurY8HP.cjs +21 -0
- package/components/{PlayerActiveBonuses-CB0TxYjE.js → PlayerActiveBonuses-D-WGq93g.js} +1333 -1354
- package/components/{PlayerActiveBonuses-V5XZNNYd.js → PlayerActiveBonuses-DzU0KFw5.js} +1325 -1346
- package/components/{PlayerBonusCard-B5zFQjEH.js → PlayerBonusCard-BOZ11o5e.js} +133 -131
- package/components/{PlayerBonusCard-BpdMJdLd.js → PlayerBonusCard-DDx1MfSi.js} +131 -129
- package/components/PlayerBonusCard-zR_rPXQG.cjs +1 -0
- package/es2015/player-active-bonuses.cjs +1 -1
- package/es2015/player-active-bonuses.js +1 -1
- package/esnext/player-active-bonuses.js +1 -1
- package/package.json +1 -1
- package/components/PlayerActiveBonuses-BPxju9AP.cjs +0 -21
- package/components/PlayerBonusCard-DVijVOi1.cjs +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
function q() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function en(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function oe(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(en);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function pt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function tn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let Me;
|
|
19
|
+
function Ui(e, t) {
|
|
20
|
+
return e === t ? !0 : (Me || (Me = document.createElement("a")), Me.href = t, e === Me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Yn(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function nn(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
|
-
for (const
|
|
28
|
-
|
|
27
|
+
for (const r of t)
|
|
28
|
+
r(void 0);
|
|
29
29
|
return q;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
31
|
+
const n = e.subscribe(...t);
|
|
32
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Kn(e, t, n) {
|
|
35
|
+
e.$$.on_destroy.push(nn(t, n));
|
|
36
36
|
}
|
|
37
37
|
function v(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
const o =
|
|
44
|
-
o.id = t, o.textContent =
|
|
40
|
+
function er(e, t, n) {
|
|
41
|
+
const r = tr(e);
|
|
42
|
+
if (!r.getElementById(t)) {
|
|
43
|
+
const o = T("style");
|
|
44
|
+
o.id = t, o.textContent = n, nr(r, o);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function tr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,151 +54,151 @@ function tn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function nr(e, t) {
|
|
58
58
|
return v(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function D(e, t,
|
|
65
|
-
e.insertBefore(t,
|
|
64
|
+
function D(e, t, n) {
|
|
65
|
+
e.insertBefore(t, n || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function $(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let
|
|
72
|
-
e[
|
|
70
|
+
function rn(e, t) {
|
|
71
|
+
for (let n = 0; n < e.length; n += 1)
|
|
72
|
+
e[n] && e[n].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function T(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
77
|
function ue(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function F(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
83
|
function j() {
|
|
84
|
-
return
|
|
84
|
+
return F(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function mt() {
|
|
87
|
+
return F("");
|
|
88
88
|
}
|
|
89
|
-
function Q(e, t,
|
|
90
|
-
return e.addEventListener(t,
|
|
89
|
+
function Q(e, t, n, r) {
|
|
90
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
91
91
|
}
|
|
92
|
-
function B(e, t,
|
|
93
|
-
|
|
92
|
+
function B(e, t, n) {
|
|
93
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
94
94
|
}
|
|
95
|
-
function d(e, t,
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
function d(e, t, n) {
|
|
96
|
+
const r = t.toLowerCase();
|
|
97
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function rr(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ee(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function xt(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function or(e) {
|
|
110
110
|
const t = {};
|
|
111
111
|
return e.childNodes.forEach(
|
|
112
112
|
/** @param {Element} node */
|
|
113
|
-
(
|
|
114
|
-
t[
|
|
113
|
+
(n) => {
|
|
114
|
+
t[n.slot || "default"] = !0;
|
|
115
115
|
}
|
|
116
116
|
), t;
|
|
117
117
|
}
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
let xe;
|
|
119
|
+
function Ee(e) {
|
|
120
|
+
xe = e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
if (!
|
|
122
|
+
function ir() {
|
|
123
|
+
if (!xe)
|
|
124
124
|
throw new Error("Function called outside component initialization");
|
|
125
|
-
return
|
|
125
|
+
return xe;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function sr(e) {
|
|
128
|
+
ir().$$.on_mount.push(e);
|
|
129
129
|
}
|
|
130
|
-
const he = [],
|
|
130
|
+
const he = [], Ye = [];
|
|
131
131
|
let fe = [];
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
132
|
+
const wt = [], ar = /* @__PURE__ */ Promise.resolve();
|
|
133
|
+
let Ke = !1;
|
|
134
|
+
function ur() {
|
|
135
|
+
Ke || (Ke = !0, ar.then(X));
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function et(e) {
|
|
138
138
|
fe.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const We = /* @__PURE__ */ new Set();
|
|
141
141
|
let le = 0;
|
|
142
142
|
function X() {
|
|
143
143
|
if (le !== 0)
|
|
144
144
|
return;
|
|
145
|
-
const e =
|
|
145
|
+
const e = xe;
|
|
146
146
|
do {
|
|
147
147
|
try {
|
|
148
148
|
for (; le < he.length; ) {
|
|
149
149
|
const t = he[le];
|
|
150
|
-
le++,
|
|
150
|
+
le++, Ee(t), lr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
153
|
throw he.length = 0, le = 0, t;
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
156
|
-
|
|
155
|
+
for (Ee(null), he.length = 0, le = 0; Ye.length; )
|
|
156
|
+
Ye.pop()();
|
|
157
157
|
for (let t = 0; t < fe.length; t += 1) {
|
|
158
|
-
const
|
|
159
|
-
|
|
158
|
+
const n = fe[t];
|
|
159
|
+
We.has(n) || (We.add(n), n());
|
|
160
160
|
}
|
|
161
161
|
fe.length = 0;
|
|
162
162
|
} while (he.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
for (; wt.length; )
|
|
164
|
+
wt.pop()();
|
|
165
|
+
Ke = !1, We.clear(), Ee(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function lr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
169
|
e.update(), oe(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
const t = [],
|
|
176
|
-
fe.forEach((
|
|
174
|
+
function cr(e) {
|
|
175
|
+
const t = [], n = [];
|
|
176
|
+
fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), fe = t;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
e && e.i && (
|
|
178
|
+
const hr = /* @__PURE__ */ new Set();
|
|
179
|
+
function fr(e, t) {
|
|
180
|
+
e && e.i && (hr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
182
|
function Re(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
const { fragment:
|
|
187
|
-
|
|
188
|
-
const i = e.$$.on_mount.map(
|
|
185
|
+
function dr(e, t, n) {
|
|
186
|
+
const { fragment: r, after_update: o } = e.$$;
|
|
187
|
+
r && r.m(t, n), et(() => {
|
|
188
|
+
const i = e.$$.on_mount.map(en).filter(pt);
|
|
189
189
|
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : oe(i), e.$$.on_mount = [];
|
|
190
|
-
}), o.forEach(
|
|
190
|
+
}), o.forEach(et);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const
|
|
194
|
-
|
|
192
|
+
function pr(e, t) {
|
|
193
|
+
const n = e.$$;
|
|
194
|
+
n.fragment !== null && (cr(n.after_update), oe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
e.$$.dirty[0] === -1 && (he.push(e),
|
|
196
|
+
function mr(e, t) {
|
|
197
|
+
e.$$.dirty[0] === -1 && (he.push(e), ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
const u =
|
|
201
|
-
|
|
199
|
+
function br(e, t, n, r, o, i, s = null, a = [-1]) {
|
|
200
|
+
const u = xe;
|
|
201
|
+
Ee(e);
|
|
202
202
|
const l = e.$$ = {
|
|
203
203
|
fragment: null,
|
|
204
204
|
ctx: [],
|
|
@@ -206,7 +206,7 @@ function gn(e, t, r, n, o, i, s = null, a = [-1]) {
|
|
|
206
206
|
props: i,
|
|
207
207
|
update: q,
|
|
208
208
|
not_equal: o,
|
|
209
|
-
bound:
|
|
209
|
+
bound: Et(),
|
|
210
210
|
// lifecycle
|
|
211
211
|
on_mount: [],
|
|
212
212
|
on_destroy: [],
|
|
@@ -215,28 +215,28 @@ function gn(e, t, r, n, o, i, s = null, a = [-1]) {
|
|
|
215
215
|
after_update: [],
|
|
216
216
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
217
217
|
// everything else
|
|
218
|
-
callbacks:
|
|
218
|
+
callbacks: Et(),
|
|
219
219
|
dirty: a,
|
|
220
220
|
skip_bound: !1,
|
|
221
221
|
root: t.target || u.$$.root
|
|
222
222
|
};
|
|
223
223
|
s && s(l.root);
|
|
224
224
|
let c = !1;
|
|
225
|
-
if (l.ctx =
|
|
225
|
+
if (l.ctx = n ? n(e, t.props || {}, (h, f, ...b) => {
|
|
226
226
|
const m = b.length ? b[0] : f;
|
|
227
|
-
return l.ctx && o(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c &&
|
|
228
|
-
}) : [], l.update(), c = !0, oe(l.before_update), l.fragment =
|
|
227
|
+
return l.ctx && o(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && mr(e, h)), f;
|
|
228
|
+
}) : [], l.update(), c = !0, oe(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
229
229
|
if (t.hydrate) {
|
|
230
|
-
const h =
|
|
231
|
-
l.fragment && l.fragment.l(h), h.forEach(
|
|
230
|
+
const h = rr(t.target);
|
|
231
|
+
l.fragment && l.fragment.l(h), h.forEach($);
|
|
232
232
|
} else
|
|
233
233
|
l.fragment && l.fragment.c();
|
|
234
|
-
t.intro &&
|
|
234
|
+
t.intro && fr(e.$$.fragment), dr(e, t.target, t.anchor), X();
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
Ee(u);
|
|
237
237
|
}
|
|
238
|
-
let
|
|
239
|
-
typeof HTMLElement == "function" && (
|
|
238
|
+
let on;
|
|
239
|
+
typeof HTMLElement == "function" && (on = class extends HTMLElement {
|
|
240
240
|
/** The Svelte component constructor */
|
|
241
241
|
$$ctor;
|
|
242
242
|
/** Slots */
|
|
@@ -255,20 +255,20 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
255
255
|
$$l = {};
|
|
256
256
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
257
257
|
$$l_u = /* @__PURE__ */ new Map();
|
|
258
|
-
constructor(e, t,
|
|
259
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
258
|
+
constructor(e, t, n) {
|
|
259
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
260
260
|
}
|
|
261
|
-
addEventListener(e, t,
|
|
261
|
+
addEventListener(e, t, n) {
|
|
262
262
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
263
|
-
const
|
|
264
|
-
this.$$l_u.set(t,
|
|
263
|
+
const r = this.$$c.$on(e, t);
|
|
264
|
+
this.$$l_u.set(t, r);
|
|
265
265
|
}
|
|
266
|
-
super.addEventListener(e, t,
|
|
266
|
+
super.addEventListener(e, t, n);
|
|
267
267
|
}
|
|
268
|
-
removeEventListener(e, t,
|
|
269
|
-
if (super.removeEventListener(e, t,
|
|
270
|
-
const
|
|
271
|
-
|
|
268
|
+
removeEventListener(e, t, n) {
|
|
269
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
270
|
+
const r = this.$$l_u.get(t);
|
|
271
|
+
r && (r(), this.$$l_u.delete(t));
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
async connectedCallback() {
|
|
@@ -278,7 +278,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
278
278
|
let i;
|
|
279
279
|
return {
|
|
280
280
|
c: function() {
|
|
281
|
-
i =
|
|
281
|
+
i = T("slot"), o !== "default" && B(i, "name", o);
|
|
282
282
|
},
|
|
283
283
|
/**
|
|
284
284
|
* @param {HTMLElement} target
|
|
@@ -288,19 +288,19 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
288
288
|
D(u, i, l);
|
|
289
289
|
},
|
|
290
290
|
d: function(u) {
|
|
291
|
-
u &&
|
|
291
|
+
u && $(i);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
296
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
297
297
|
return;
|
|
298
|
-
const t = {},
|
|
298
|
+
const t = {}, n = or(this);
|
|
299
299
|
for (const o of this.$$s)
|
|
300
|
-
o in
|
|
300
|
+
o in n && (t[o] = [e(o)]);
|
|
301
301
|
for (const o of this.attributes) {
|
|
302
302
|
const i = this.$$g_p(o.name);
|
|
303
|
-
i in this.$$d || (this.$$d[i] =
|
|
303
|
+
i in this.$$d || (this.$$d[i] = Ie(i, o.value, this.$$p_d, "toProp"));
|
|
304
304
|
}
|
|
305
305
|
for (const o in this.$$p_d)
|
|
306
306
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -314,11 +314,11 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
-
const
|
|
317
|
+
const r = () => {
|
|
318
318
|
this.$$r = !0;
|
|
319
319
|
for (const o in this.$$p_d)
|
|
320
320
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
321
|
-
const i =
|
|
321
|
+
const i = Ie(
|
|
322
322
|
o,
|
|
323
323
|
this.$$d[o],
|
|
324
324
|
this.$$p_d,
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
328
328
|
}
|
|
329
329
|
this.$$r = !1;
|
|
330
330
|
};
|
|
331
|
-
this.$$c.$$.after_update.push(
|
|
331
|
+
this.$$c.$$.after_update.push(r), r();
|
|
332
332
|
for (const o in this.$$l)
|
|
333
333
|
for (const i of this.$$l[o]) {
|
|
334
334
|
const s = this.$$c.$on(o, i);
|
|
@@ -339,8 +339,8 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
339
339
|
}
|
|
340
340
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
341
341
|
// and setting attributes through setAttribute etc, this is helpful
|
|
342
|
-
attributeChangedCallback(e, t,
|
|
343
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
342
|
+
attributeChangedCallback(e, t, n) {
|
|
343
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ie(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
344
344
|
}
|
|
345
345
|
disconnectedCallback() {
|
|
346
346
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -353,11 +353,11 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
353
353
|
) || e;
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
function
|
|
357
|
-
const o =
|
|
358
|
-
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
356
|
+
function Ie(e, t, n, r) {
|
|
357
|
+
const o = n[e]?.type;
|
|
358
|
+
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
359
359
|
return t;
|
|
360
|
-
if (
|
|
360
|
+
if (r === "toAttribute")
|
|
361
361
|
switch (o) {
|
|
362
362
|
case "Object":
|
|
363
363
|
case "Array":
|
|
@@ -382,10 +382,10 @@ function Oe(e, t, r, n) {
|
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
let s = class extends
|
|
385
|
+
function gr(e, t, n, r, o, i) {
|
|
386
|
+
let s = class extends on {
|
|
387
387
|
constructor() {
|
|
388
|
-
super(e,
|
|
388
|
+
super(e, n, o), this.$$p_d = t;
|
|
389
389
|
}
|
|
390
390
|
static get observedAttributes() {
|
|
391
391
|
return Object.keys(t).map(
|
|
@@ -399,10 +399,10 @@ function vn(e, t, r, n, o, i) {
|
|
|
399
399
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
400
400
|
},
|
|
401
401
|
set(u) {
|
|
402
|
-
u =
|
|
402
|
+
u = Ie(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
|
-
}),
|
|
405
|
+
}), r.forEach((a) => {
|
|
406
406
|
Object.defineProperty(s.prototype, a, {
|
|
407
407
|
get() {
|
|
408
408
|
return this.$$c?.[a];
|
|
@@ -411,7 +411,7 @@ function vn(e, t, r, n, o, i) {
|
|
|
411
411
|
}), e.element = /** @type {any} */
|
|
412
412
|
s, s;
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class vr {
|
|
415
415
|
/**
|
|
416
416
|
* ### PRIVATE API
|
|
417
417
|
*
|
|
@@ -430,7 +430,7 @@ class yn {
|
|
|
430
430
|
$$set = void 0;
|
|
431
431
|
/** @returns {void} */
|
|
432
432
|
$destroy() {
|
|
433
|
-
|
|
433
|
+
pr(this, 1), this.$destroy = q;
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -438,13 +438,13 @@ class yn {
|
|
|
438
438
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
439
439
|
* @returns {() => void}
|
|
440
440
|
*/
|
|
441
|
-
$on(t,
|
|
442
|
-
if (!
|
|
441
|
+
$on(t, n) {
|
|
442
|
+
if (!pt(n))
|
|
443
443
|
return q;
|
|
444
|
-
const
|
|
445
|
-
return
|
|
446
|
-
const o =
|
|
447
|
-
o !== -1 &&
|
|
444
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
445
|
+
return r.push(n), () => {
|
|
446
|
+
const o = r.indexOf(n);
|
|
447
|
+
o !== -1 && r.splice(o, 1);
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
@@ -452,11 +452,11 @@ class yn {
|
|
|
452
452
|
* @returns {void}
|
|
453
453
|
*/
|
|
454
454
|
$set(t) {
|
|
455
|
-
this.$$set && !
|
|
455
|
+
this.$$set && !Yn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
const
|
|
459
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
458
|
+
const yr = "4";
|
|
459
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yr);
|
|
460
460
|
/*! *****************************************************************************
|
|
461
461
|
Copyright (c) Microsoft Corporation.
|
|
462
462
|
|
|
@@ -471,48 +471,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
471
471
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
472
472
|
PERFORMANCE OF THIS SOFTWARE.
|
|
473
473
|
***************************************************************************** */
|
|
474
|
-
var
|
|
475
|
-
return
|
|
476
|
-
|
|
477
|
-
} || function(
|
|
478
|
-
for (var o in
|
|
479
|
-
Object.prototype.hasOwnProperty.call(
|
|
480
|
-
},
|
|
474
|
+
var tt = function(e, t) {
|
|
475
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
476
|
+
n.__proto__ = r;
|
|
477
|
+
} || function(n, r) {
|
|
478
|
+
for (var o in r)
|
|
479
|
+
Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
480
|
+
}, tt(e, t);
|
|
481
481
|
};
|
|
482
|
-
function
|
|
482
|
+
function ne(e, t) {
|
|
483
483
|
if (typeof t != "function" && t !== null)
|
|
484
484
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
485
|
-
|
|
486
|
-
function
|
|
485
|
+
tt(e, t);
|
|
486
|
+
function n() {
|
|
487
487
|
this.constructor = e;
|
|
488
488
|
}
|
|
489
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
489
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
490
|
+
}
|
|
491
|
+
var A = function() {
|
|
492
|
+
return A = Object.assign || function(t) {
|
|
493
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
494
|
+
n = arguments[r];
|
|
495
|
+
for (var i in n)
|
|
496
|
+
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
497
|
+
}
|
|
498
|
+
return t;
|
|
499
|
+
}, A.apply(this, arguments);
|
|
500
|
+
};
|
|
501
|
+
function _r(e, t) {
|
|
502
|
+
var n = {};
|
|
503
|
+
for (var r in e)
|
|
504
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
505
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
506
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
507
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
508
|
+
return n;
|
|
490
509
|
}
|
|
491
|
-
function
|
|
492
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
493
|
-
if (
|
|
494
|
-
return
|
|
510
|
+
function nt(e) {
|
|
511
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
512
|
+
if (n)
|
|
513
|
+
return n.call(e);
|
|
495
514
|
if (e && typeof e.length == "number")
|
|
496
515
|
return {
|
|
497
516
|
next: function() {
|
|
498
|
-
return e &&
|
|
517
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
499
518
|
}
|
|
500
519
|
};
|
|
501
520
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
502
521
|
}
|
|
503
|
-
function
|
|
504
|
-
var
|
|
505
|
-
if (!
|
|
522
|
+
function rt(e, t) {
|
|
523
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
524
|
+
if (!n)
|
|
506
525
|
return e;
|
|
507
|
-
var
|
|
526
|
+
var r = n.call(e), o, i = [], s;
|
|
508
527
|
try {
|
|
509
|
-
for (; (t === void 0 || t-- > 0) && !(o =
|
|
528
|
+
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; )
|
|
510
529
|
i.push(o.value);
|
|
511
530
|
} catch (a) {
|
|
512
531
|
s = { error: a };
|
|
513
532
|
} finally {
|
|
514
533
|
try {
|
|
515
|
-
o && !o.done && (
|
|
534
|
+
o && !o.done && (n = r.return) && n.call(r);
|
|
516
535
|
} finally {
|
|
517
536
|
if (s)
|
|
518
537
|
throw s.error;
|
|
@@ -520,49 +539,49 @@ function it(e, t) {
|
|
|
520
539
|
}
|
|
521
540
|
return i;
|
|
522
541
|
}
|
|
523
|
-
function
|
|
524
|
-
if (arguments.length === 2)
|
|
525
|
-
for (var
|
|
526
|
-
(i || !(
|
|
542
|
+
function de(e, t, n) {
|
|
543
|
+
if (n || arguments.length === 2)
|
|
544
|
+
for (var r = 0, o = t.length, i; r < o; r++)
|
|
545
|
+
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
527
546
|
return e.concat(i || t);
|
|
528
547
|
}
|
|
529
|
-
function
|
|
548
|
+
function te(e) {
|
|
530
549
|
return typeof e == "function";
|
|
531
550
|
}
|
|
532
|
-
function
|
|
533
|
-
var t = function(
|
|
534
|
-
Error.call(
|
|
535
|
-
},
|
|
536
|
-
return
|
|
537
|
-
}
|
|
538
|
-
var
|
|
539
|
-
return function(
|
|
540
|
-
e(this), this.message =
|
|
541
|
-
` +
|
|
542
|
-
return o + 1 + ") " +
|
|
551
|
+
function sn(e) {
|
|
552
|
+
var t = function(r) {
|
|
553
|
+
Error.call(r), r.stack = new Error().stack;
|
|
554
|
+
}, n = e(t);
|
|
555
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
556
|
+
}
|
|
557
|
+
var Ve = sn(function(e) {
|
|
558
|
+
return function(n) {
|
|
559
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
560
|
+
` + n.map(function(r, o) {
|
|
561
|
+
return o + 1 + ") " + r.toString();
|
|
543
562
|
}).join(`
|
|
544
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
563
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
545
564
|
};
|
|
546
565
|
});
|
|
547
|
-
function
|
|
566
|
+
function ot(e, t) {
|
|
548
567
|
if (e) {
|
|
549
|
-
var
|
|
550
|
-
0 <=
|
|
568
|
+
var n = e.indexOf(t);
|
|
569
|
+
0 <= n && e.splice(n, 1);
|
|
551
570
|
}
|
|
552
571
|
}
|
|
553
|
-
var
|
|
572
|
+
var Ue = function() {
|
|
554
573
|
function e(t) {
|
|
555
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
556
575
|
}
|
|
557
576
|
return e.prototype.unsubscribe = function() {
|
|
558
|
-
var t,
|
|
577
|
+
var t, n, r, o, i;
|
|
559
578
|
if (!this.closed) {
|
|
560
579
|
this.closed = !0;
|
|
561
580
|
var s = this._parentage;
|
|
562
581
|
if (s)
|
|
563
582
|
if (this._parentage = null, Array.isArray(s))
|
|
564
583
|
try {
|
|
565
|
-
for (var a =
|
|
584
|
+
for (var a = nt(s), u = a.next(); !u.done; u = a.next()) {
|
|
566
585
|
var l = u.value;
|
|
567
586
|
l.remove(this);
|
|
568
587
|
}
|
|
@@ -570,7 +589,7 @@ var De = function() {
|
|
|
570
589
|
t = { error: p };
|
|
571
590
|
} finally {
|
|
572
591
|
try {
|
|
573
|
-
u && !u.done && (
|
|
592
|
+
u && !u.done && (n = a.return) && n.call(a);
|
|
574
593
|
} finally {
|
|
575
594
|
if (t)
|
|
576
595
|
throw t.error;
|
|
@@ -579,118 +598,122 @@ var De = function() {
|
|
|
579
598
|
else
|
|
580
599
|
s.remove(this);
|
|
581
600
|
var c = this.initialTeardown;
|
|
582
|
-
if (
|
|
601
|
+
if (te(c))
|
|
583
602
|
try {
|
|
584
603
|
c();
|
|
585
604
|
} catch (p) {
|
|
586
|
-
i = p instanceof
|
|
605
|
+
i = p instanceof Ve ? p.errors : [p];
|
|
587
606
|
}
|
|
588
607
|
var h = this._finalizers;
|
|
589
608
|
if (h) {
|
|
590
609
|
this._finalizers = null;
|
|
591
610
|
try {
|
|
592
|
-
for (var f =
|
|
611
|
+
for (var f = nt(h), b = f.next(); !b.done; b = f.next()) {
|
|
593
612
|
var m = b.value;
|
|
594
613
|
try {
|
|
595
|
-
|
|
614
|
+
Ct(m);
|
|
596
615
|
} catch (p) {
|
|
597
|
-
i = i ?? [], p instanceof
|
|
616
|
+
i = i ?? [], p instanceof Ve ? i = de(de([], rt(i)), rt(p.errors)) : i.push(p);
|
|
598
617
|
}
|
|
599
618
|
}
|
|
600
619
|
} catch (p) {
|
|
601
|
-
|
|
620
|
+
r = { error: p };
|
|
602
621
|
} finally {
|
|
603
622
|
try {
|
|
604
623
|
b && !b.done && (o = f.return) && o.call(f);
|
|
605
624
|
} finally {
|
|
606
|
-
if (
|
|
607
|
-
throw
|
|
625
|
+
if (r)
|
|
626
|
+
throw r.error;
|
|
608
627
|
}
|
|
609
628
|
}
|
|
610
629
|
}
|
|
611
630
|
if (i)
|
|
612
|
-
throw new
|
|
631
|
+
throw new Ve(i);
|
|
613
632
|
}
|
|
614
633
|
}, e.prototype.add = function(t) {
|
|
615
|
-
var
|
|
634
|
+
var n;
|
|
616
635
|
if (t && t !== this)
|
|
617
636
|
if (this.closed)
|
|
618
|
-
|
|
637
|
+
Ct(t);
|
|
619
638
|
else {
|
|
620
639
|
if (t instanceof e) {
|
|
621
640
|
if (t.closed || t._hasParent(this))
|
|
622
641
|
return;
|
|
623
642
|
t._addParent(this);
|
|
624
643
|
}
|
|
625
|
-
(this._finalizers = (
|
|
644
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
626
645
|
}
|
|
627
646
|
}, e.prototype._hasParent = function(t) {
|
|
628
|
-
var
|
|
629
|
-
return
|
|
647
|
+
var n = this._parentage;
|
|
648
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
630
649
|
}, e.prototype._addParent = function(t) {
|
|
631
|
-
var
|
|
632
|
-
this._parentage = Array.isArray(
|
|
650
|
+
var n = this._parentage;
|
|
651
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
633
652
|
}, e.prototype._removeParent = function(t) {
|
|
634
|
-
var
|
|
635
|
-
|
|
653
|
+
var n = this._parentage;
|
|
654
|
+
n === t ? this._parentage = null : Array.isArray(n) && ot(n, t);
|
|
636
655
|
}, e.prototype.remove = function(t) {
|
|
637
|
-
var
|
|
638
|
-
|
|
656
|
+
var n = this._finalizers;
|
|
657
|
+
n && ot(n, t), t instanceof e && t._removeParent(this);
|
|
639
658
|
}, e.EMPTY = function() {
|
|
640
659
|
var t = new e();
|
|
641
660
|
return t.closed = !0, t;
|
|
642
661
|
}(), e;
|
|
643
|
-
}(),
|
|
644
|
-
function
|
|
645
|
-
return e instanceof
|
|
646
|
-
}
|
|
647
|
-
function
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
var
|
|
651
|
-
|
|
652
|
-
|
|
662
|
+
}(), an = Ue.EMPTY;
|
|
663
|
+
function un(e) {
|
|
664
|
+
return e instanceof Ue || e && "closed" in e && te(e.remove) && te(e.add) && te(e.unsubscribe);
|
|
665
|
+
}
|
|
666
|
+
function Ct(e) {
|
|
667
|
+
te(e) ? e() : e.unsubscribe();
|
|
668
|
+
}
|
|
669
|
+
var ln = {
|
|
670
|
+
onUnhandledError: null,
|
|
671
|
+
onStoppedNotification: null,
|
|
672
|
+
Promise: void 0,
|
|
673
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
674
|
+
useDeprecatedNextContext: !1
|
|
675
|
+
}, Br = {
|
|
653
676
|
setTimeout: function(e, t) {
|
|
654
|
-
for (var
|
|
655
|
-
r
|
|
656
|
-
return setTimeout.apply(void 0,
|
|
677
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
678
|
+
n[r - 2] = arguments[r];
|
|
679
|
+
return setTimeout.apply(void 0, de([e, t], rt(n)));
|
|
657
680
|
},
|
|
658
681
|
clearTimeout: function(e) {
|
|
659
682
|
return clearTimeout(e);
|
|
660
683
|
},
|
|
661
684
|
delegate: void 0
|
|
662
685
|
};
|
|
663
|
-
function
|
|
664
|
-
|
|
686
|
+
function Er(e) {
|
|
687
|
+
Br.setTimeout(function() {
|
|
665
688
|
throw e;
|
|
666
689
|
});
|
|
667
690
|
}
|
|
668
|
-
function
|
|
691
|
+
function St() {
|
|
669
692
|
}
|
|
670
|
-
function
|
|
693
|
+
function Oe(e) {
|
|
671
694
|
e();
|
|
672
695
|
}
|
|
673
|
-
var
|
|
674
|
-
|
|
675
|
-
function t(
|
|
676
|
-
var
|
|
677
|
-
return
|
|
696
|
+
var cn = function(e) {
|
|
697
|
+
ne(t, e);
|
|
698
|
+
function t(n) {
|
|
699
|
+
var r = e.call(this) || this;
|
|
700
|
+
return r.isStopped = !1, n ? (r.destination = n, un(n) && n.add(r)) : r.destination = Sr, r;
|
|
678
701
|
}
|
|
679
|
-
return t.create = function(
|
|
680
|
-
return new
|
|
681
|
-
}, t.prototype.next = function(
|
|
682
|
-
this.isStopped || this._next(
|
|
683
|
-
}, t.prototype.error = function(
|
|
684
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
702
|
+
return t.create = function(n, r, o) {
|
|
703
|
+
return new it(n, r, o);
|
|
704
|
+
}, t.prototype.next = function(n) {
|
|
705
|
+
this.isStopped || this._next(n);
|
|
706
|
+
}, t.prototype.error = function(n) {
|
|
707
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
685
708
|
}, t.prototype.complete = function() {
|
|
686
709
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
687
710
|
}, t.prototype.unsubscribe = function() {
|
|
688
711
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
689
|
-
}, t.prototype._next = function(
|
|
690
|
-
this.destination.next(
|
|
691
|
-
}, t.prototype._error = function(
|
|
712
|
+
}, t.prototype._next = function(n) {
|
|
713
|
+
this.destination.next(n);
|
|
714
|
+
}, t.prototype._error = function(n) {
|
|
692
715
|
try {
|
|
693
|
-
this.destination.error(
|
|
716
|
+
this.destination.error(n);
|
|
694
717
|
} finally {
|
|
695
718
|
this.unsubscribe();
|
|
696
719
|
}
|
|
@@ -701,96 +724,112 @@ var cr = function(e) {
|
|
|
701
724
|
this.unsubscribe();
|
|
702
725
|
}
|
|
703
726
|
}, t;
|
|
704
|
-
}(
|
|
727
|
+
}(Ue), xr = Function.prototype.bind;
|
|
728
|
+
function ze(e, t) {
|
|
729
|
+
return xr.call(e, t);
|
|
730
|
+
}
|
|
731
|
+
var wr = function() {
|
|
705
732
|
function e(t) {
|
|
706
733
|
this.partialObserver = t;
|
|
707
734
|
}
|
|
708
735
|
return e.prototype.next = function(t) {
|
|
709
|
-
var
|
|
710
|
-
if (
|
|
736
|
+
var n = this.partialObserver;
|
|
737
|
+
if (n.next)
|
|
711
738
|
try {
|
|
712
|
-
|
|
713
|
-
} catch (
|
|
714
|
-
|
|
739
|
+
n.next(t);
|
|
740
|
+
} catch (r) {
|
|
741
|
+
Pe(r);
|
|
715
742
|
}
|
|
716
743
|
}, e.prototype.error = function(t) {
|
|
717
|
-
var
|
|
718
|
-
if (
|
|
744
|
+
var n = this.partialObserver;
|
|
745
|
+
if (n.error)
|
|
719
746
|
try {
|
|
720
|
-
|
|
721
|
-
} catch (
|
|
722
|
-
|
|
747
|
+
n.error(t);
|
|
748
|
+
} catch (r) {
|
|
749
|
+
Pe(r);
|
|
723
750
|
}
|
|
724
751
|
else
|
|
725
|
-
|
|
752
|
+
Pe(t);
|
|
726
753
|
}, e.prototype.complete = function() {
|
|
727
754
|
var t = this.partialObserver;
|
|
728
755
|
if (t.complete)
|
|
729
756
|
try {
|
|
730
757
|
t.complete();
|
|
731
|
-
} catch (
|
|
732
|
-
|
|
758
|
+
} catch (n) {
|
|
759
|
+
Pe(n);
|
|
733
760
|
}
|
|
734
761
|
}, e;
|
|
735
|
-
}(),
|
|
736
|
-
|
|
737
|
-
function t(
|
|
762
|
+
}(), it = function(e) {
|
|
763
|
+
ne(t, e);
|
|
764
|
+
function t(n, r, o) {
|
|
738
765
|
var i = e.call(this) || this, s;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
766
|
+
if (te(n) || !n)
|
|
767
|
+
s = {
|
|
768
|
+
next: n ?? void 0,
|
|
769
|
+
error: r ?? void 0,
|
|
770
|
+
complete: o ?? void 0
|
|
771
|
+
};
|
|
772
|
+
else {
|
|
773
|
+
var a;
|
|
774
|
+
i && ln.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
775
|
+
return i.unsubscribe();
|
|
776
|
+
}, s = {
|
|
777
|
+
next: n.next && ze(n.next, a),
|
|
778
|
+
error: n.error && ze(n.error, a),
|
|
779
|
+
complete: n.complete && ze(n.complete, a)
|
|
780
|
+
}) : s = n;
|
|
781
|
+
}
|
|
782
|
+
return i.destination = new wr(s), i;
|
|
744
783
|
}
|
|
745
784
|
return t;
|
|
746
|
-
}(
|
|
747
|
-
function
|
|
748
|
-
|
|
785
|
+
}(cn);
|
|
786
|
+
function Pe(e) {
|
|
787
|
+
Er(e);
|
|
749
788
|
}
|
|
750
|
-
function
|
|
789
|
+
function Cr(e) {
|
|
751
790
|
throw e;
|
|
752
791
|
}
|
|
753
|
-
var
|
|
792
|
+
var Sr = {
|
|
754
793
|
closed: !0,
|
|
755
|
-
next:
|
|
756
|
-
error:
|
|
757
|
-
complete:
|
|
758
|
-
},
|
|
794
|
+
next: St,
|
|
795
|
+
error: Cr,
|
|
796
|
+
complete: St
|
|
797
|
+
}, Ar = function() {
|
|
759
798
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
760
799
|
}();
|
|
761
|
-
function
|
|
800
|
+
function Tr(e) {
|
|
762
801
|
return e;
|
|
763
802
|
}
|
|
764
|
-
function
|
|
765
|
-
return e.length === 0 ?
|
|
766
|
-
return e.reduce(function(
|
|
767
|
-
return o(
|
|
768
|
-
},
|
|
803
|
+
function Mr(e) {
|
|
804
|
+
return e.length === 0 ? Tr : e.length === 1 ? e[0] : function(n) {
|
|
805
|
+
return e.reduce(function(r, o) {
|
|
806
|
+
return o(r);
|
|
807
|
+
}, n);
|
|
769
808
|
};
|
|
770
809
|
}
|
|
771
|
-
var
|
|
810
|
+
var At = function() {
|
|
772
811
|
function e(t) {
|
|
773
812
|
t && (this._subscribe = t);
|
|
774
813
|
}
|
|
775
814
|
return e.prototype.lift = function(t) {
|
|
776
|
-
var
|
|
777
|
-
return
|
|
778
|
-
}, e.prototype.subscribe = function(t,
|
|
779
|
-
var o = this, i =
|
|
780
|
-
return
|
|
815
|
+
var n = new e();
|
|
816
|
+
return n.source = this, n.operator = t, n;
|
|
817
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
818
|
+
var o = this, i = Hr(t) ? t : new it(t, n, r);
|
|
819
|
+
return Oe(function() {
|
|
781
820
|
var s = o, a = s.operator, u = s.source;
|
|
782
821
|
i.add(a ? a.call(i, u) : u ? o._subscribe(i) : o._trySubscribe(i));
|
|
783
822
|
}), i;
|
|
784
823
|
}, e.prototype._trySubscribe = function(t) {
|
|
785
824
|
try {
|
|
786
825
|
return this._subscribe(t);
|
|
787
|
-
} catch (
|
|
788
|
-
t.error(
|
|
826
|
+
} catch (n) {
|
|
827
|
+
t.error(n);
|
|
789
828
|
}
|
|
790
|
-
}, e.prototype.forEach = function(t,
|
|
791
|
-
var
|
|
792
|
-
return
|
|
793
|
-
var s = new
|
|
829
|
+
}, e.prototype.forEach = function(t, n) {
|
|
830
|
+
var r = this;
|
|
831
|
+
return n = Tt(n), new n(function(o, i) {
|
|
832
|
+
var s = new it({
|
|
794
833
|
next: function(a) {
|
|
795
834
|
try {
|
|
796
835
|
t(a);
|
|
@@ -801,69 +840,69 @@ var Pt = function() {
|
|
|
801
840
|
error: i,
|
|
802
841
|
complete: o
|
|
803
842
|
});
|
|
804
|
-
|
|
843
|
+
r.subscribe(s);
|
|
805
844
|
});
|
|
806
845
|
}, e.prototype._subscribe = function(t) {
|
|
807
|
-
var
|
|
808
|
-
return (
|
|
809
|
-
}, e.prototype[
|
|
846
|
+
var n;
|
|
847
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
848
|
+
}, e.prototype[Ar] = function() {
|
|
810
849
|
return this;
|
|
811
850
|
}, e.prototype.pipe = function() {
|
|
812
|
-
for (var t = [],
|
|
813
|
-
t[
|
|
814
|
-
return
|
|
851
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
852
|
+
t[n] = arguments[n];
|
|
853
|
+
return Mr(t)(this);
|
|
815
854
|
}, e.prototype.toPromise = function(t) {
|
|
816
|
-
var
|
|
817
|
-
return t =
|
|
855
|
+
var n = this;
|
|
856
|
+
return t = Tt(t), new t(function(r, o) {
|
|
818
857
|
var i;
|
|
819
|
-
|
|
858
|
+
n.subscribe(function(s) {
|
|
820
859
|
return i = s;
|
|
821
860
|
}, function(s) {
|
|
822
861
|
return o(s);
|
|
823
862
|
}, function() {
|
|
824
|
-
return
|
|
863
|
+
return r(i);
|
|
825
864
|
});
|
|
826
865
|
});
|
|
827
866
|
}, e.create = function(t) {
|
|
828
867
|
return new e(t);
|
|
829
868
|
}, e;
|
|
830
869
|
}();
|
|
831
|
-
function
|
|
870
|
+
function Tt(e) {
|
|
832
871
|
var t;
|
|
833
|
-
return (t = e ??
|
|
872
|
+
return (t = e ?? ln.Promise) !== null && t !== void 0 ? t : Promise;
|
|
834
873
|
}
|
|
835
|
-
function
|
|
836
|
-
return e &&
|
|
874
|
+
function Pr(e) {
|
|
875
|
+
return e && te(e.next) && te(e.error) && te(e.complete);
|
|
837
876
|
}
|
|
838
|
-
function
|
|
839
|
-
return e && e instanceof
|
|
877
|
+
function Hr(e) {
|
|
878
|
+
return e && e instanceof cn || Pr(e) && un(e);
|
|
840
879
|
}
|
|
841
|
-
var
|
|
880
|
+
var Ir = sn(function(e) {
|
|
842
881
|
return function() {
|
|
843
882
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
844
883
|
};
|
|
845
|
-
}),
|
|
846
|
-
|
|
884
|
+
}), hn = function(e) {
|
|
885
|
+
ne(t, e);
|
|
847
886
|
function t() {
|
|
848
|
-
var
|
|
849
|
-
return
|
|
887
|
+
var n = e.call(this) || this;
|
|
888
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
850
889
|
}
|
|
851
|
-
return t.prototype.lift = function(
|
|
852
|
-
var
|
|
853
|
-
return
|
|
890
|
+
return t.prototype.lift = function(n) {
|
|
891
|
+
var r = new Mt(this, this);
|
|
892
|
+
return r.operator = n, r;
|
|
854
893
|
}, t.prototype._throwIfClosed = function() {
|
|
855
894
|
if (this.closed)
|
|
856
|
-
throw new
|
|
857
|
-
}, t.prototype.next = function(
|
|
858
|
-
var
|
|
859
|
-
|
|
895
|
+
throw new Ir();
|
|
896
|
+
}, t.prototype.next = function(n) {
|
|
897
|
+
var r = this;
|
|
898
|
+
Oe(function() {
|
|
860
899
|
var o, i;
|
|
861
|
-
if (
|
|
862
|
-
|
|
900
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
901
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
863
902
|
try {
|
|
864
|
-
for (var s =
|
|
903
|
+
for (var s = nt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
865
904
|
var u = a.value;
|
|
866
|
-
u.next(
|
|
905
|
+
u.next(n);
|
|
867
906
|
}
|
|
868
907
|
} catch (l) {
|
|
869
908
|
o = { error: l };
|
|
@@ -877,118 +916,118 @@ var On = ar(function(e) {
|
|
|
877
916
|
}
|
|
878
917
|
}
|
|
879
918
|
});
|
|
880
|
-
}, t.prototype.error = function(
|
|
881
|
-
var
|
|
882
|
-
|
|
883
|
-
if (
|
|
884
|
-
|
|
885
|
-
for (var o =
|
|
886
|
-
o.shift().error(
|
|
919
|
+
}, t.prototype.error = function(n) {
|
|
920
|
+
var r = this;
|
|
921
|
+
Oe(function() {
|
|
922
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
923
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
924
|
+
for (var o = r.observers; o.length; )
|
|
925
|
+
o.shift().error(n);
|
|
887
926
|
}
|
|
888
927
|
});
|
|
889
928
|
}, t.prototype.complete = function() {
|
|
890
|
-
var
|
|
891
|
-
|
|
892
|
-
if (
|
|
893
|
-
|
|
894
|
-
for (var
|
|
895
|
-
|
|
929
|
+
var n = this;
|
|
930
|
+
Oe(function() {
|
|
931
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
932
|
+
n.isStopped = !0;
|
|
933
|
+
for (var r = n.observers; r.length; )
|
|
934
|
+
r.shift().complete();
|
|
896
935
|
}
|
|
897
936
|
});
|
|
898
937
|
}, t.prototype.unsubscribe = function() {
|
|
899
938
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
900
939
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
901
940
|
get: function() {
|
|
902
|
-
var
|
|
903
|
-
return ((
|
|
941
|
+
var n;
|
|
942
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
904
943
|
},
|
|
905
944
|
enumerable: !1,
|
|
906
945
|
configurable: !0
|
|
907
|
-
}), t.prototype._trySubscribe = function(
|
|
908
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
909
|
-
}, t.prototype._subscribe = function(
|
|
910
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
911
|
-
}, t.prototype._innerSubscribe = function(
|
|
912
|
-
var
|
|
913
|
-
return i || s ?
|
|
914
|
-
|
|
946
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
947
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
948
|
+
}, t.prototype._subscribe = function(n) {
|
|
949
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
950
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
951
|
+
var r = this, o = this, i = o.hasError, s = o.isStopped, a = o.observers;
|
|
952
|
+
return i || s ? an : (this.currentObservers = null, a.push(n), new Ue(function() {
|
|
953
|
+
r.currentObservers = null, ot(a, n);
|
|
915
954
|
}));
|
|
916
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
917
|
-
var
|
|
918
|
-
o ?
|
|
955
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
956
|
+
var r = this, o = r.hasError, i = r.thrownError, s = r.isStopped;
|
|
957
|
+
o ? n.error(i) : s && n.complete();
|
|
919
958
|
}, t.prototype.asObservable = function() {
|
|
920
|
-
var
|
|
921
|
-
return
|
|
922
|
-
}, t.create = function(
|
|
923
|
-
return new
|
|
959
|
+
var n = new At();
|
|
960
|
+
return n.source = this, n;
|
|
961
|
+
}, t.create = function(n, r) {
|
|
962
|
+
return new Mt(n, r);
|
|
924
963
|
}, t;
|
|
925
|
-
}(
|
|
926
|
-
|
|
927
|
-
function t(
|
|
964
|
+
}(At), Mt = function(e) {
|
|
965
|
+
ne(t, e);
|
|
966
|
+
function t(n, r) {
|
|
928
967
|
var o = e.call(this) || this;
|
|
929
|
-
return o.destination =
|
|
968
|
+
return o.destination = n, o.source = r, o;
|
|
930
969
|
}
|
|
931
|
-
return t.prototype.next = function(
|
|
932
|
-
var
|
|
933
|
-
(o = (
|
|
934
|
-
}, t.prototype.error = function(
|
|
935
|
-
var
|
|
936
|
-
(o = (
|
|
970
|
+
return t.prototype.next = function(n) {
|
|
971
|
+
var r, o;
|
|
972
|
+
(o = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || o === void 0 || o.call(r, n);
|
|
973
|
+
}, t.prototype.error = function(n) {
|
|
974
|
+
var r, o;
|
|
975
|
+
(o = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || o === void 0 || o.call(r, n);
|
|
937
976
|
}, t.prototype.complete = function() {
|
|
938
|
-
var
|
|
939
|
-
(
|
|
940
|
-
}, t.prototype._subscribe = function(
|
|
941
|
-
var
|
|
942
|
-
return (o = (
|
|
977
|
+
var n, r;
|
|
978
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
979
|
+
}, t.prototype._subscribe = function(n) {
|
|
980
|
+
var r, o;
|
|
981
|
+
return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && o !== void 0 ? o : an;
|
|
943
982
|
}, t;
|
|
944
|
-
}(
|
|
983
|
+
}(hn), fn = {
|
|
945
984
|
now: function() {
|
|
946
|
-
return (
|
|
985
|
+
return (fn.delegate || Date).now();
|
|
947
986
|
},
|
|
948
987
|
delegate: void 0
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
function t(
|
|
952
|
-
|
|
988
|
+
}, Or = function(e) {
|
|
989
|
+
ne(t, e);
|
|
990
|
+
function t(n, r, o) {
|
|
991
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), o === void 0 && (o = fn);
|
|
953
992
|
var i = e.call(this) || this;
|
|
954
|
-
return i._bufferSize =
|
|
993
|
+
return i._bufferSize = n, i._windowTime = r, i._timestampProvider = o, i._buffer = [], i._infiniteTimeWindow = !0, i._infiniteTimeWindow = r === 1 / 0, i._bufferSize = Math.max(1, n), i._windowTime = Math.max(1, r), i;
|
|
955
994
|
}
|
|
956
|
-
return t.prototype.next = function(
|
|
957
|
-
var
|
|
958
|
-
o || (i.push(
|
|
959
|
-
}, t.prototype._subscribe = function(
|
|
995
|
+
return t.prototype.next = function(n) {
|
|
996
|
+
var r = this, o = r.isStopped, i = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, u = r._windowTime;
|
|
997
|
+
o || (i.push(n), !s && i.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
998
|
+
}, t.prototype._subscribe = function(n) {
|
|
960
999
|
this._throwIfClosed(), this._trimBuffer();
|
|
961
|
-
for (var
|
|
962
|
-
|
|
963
|
-
return this._checkFinalizedStatuses(
|
|
1000
|
+
for (var r = this._innerSubscribe(n), o = this, i = o._infiniteTimeWindow, s = o._buffer, a = s.slice(), u = 0; u < a.length && !n.closed; u += i ? 1 : 2)
|
|
1001
|
+
n.next(a[u]);
|
|
1002
|
+
return this._checkFinalizedStatuses(n), r;
|
|
964
1003
|
}, t.prototype._trimBuffer = function() {
|
|
965
|
-
var
|
|
966
|
-
if (
|
|
1004
|
+
var n = this, r = n._bufferSize, o = n._timestampProvider, i = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
1005
|
+
if (r < 1 / 0 && a < i.length && i.splice(0, i.length - a), !s) {
|
|
967
1006
|
for (var u = o.now(), l = 0, c = 1; c < i.length && i[c] <= u; c += 2)
|
|
968
1007
|
l = c;
|
|
969
1008
|
l && i.splice(0, l + 1);
|
|
970
1009
|
}
|
|
971
1010
|
}, t;
|
|
972
|
-
}(
|
|
973
|
-
const
|
|
974
|
-
if (
|
|
975
|
-
const
|
|
976
|
-
|
|
1011
|
+
}(hn);
|
|
1012
|
+
const Pt = [], Ht = {}, Nr = (e, t = 0) => {
|
|
1013
|
+
if (Pt.indexOf(e) == -1) {
|
|
1014
|
+
const n = new Or(t);
|
|
1015
|
+
Ht[e] = n, Pt.push(e);
|
|
977
1016
|
}
|
|
978
|
-
return
|
|
1017
|
+
return Ht[e];
|
|
979
1018
|
}, ce = [];
|
|
980
|
-
function
|
|
1019
|
+
function Lr(e, t) {
|
|
981
1020
|
return {
|
|
982
|
-
subscribe:
|
|
1021
|
+
subscribe: De(e, t).subscribe
|
|
983
1022
|
};
|
|
984
1023
|
}
|
|
985
|
-
function
|
|
986
|
-
let
|
|
987
|
-
const
|
|
1024
|
+
function De(e, t = q) {
|
|
1025
|
+
let n;
|
|
1026
|
+
const r = /* @__PURE__ */ new Set();
|
|
988
1027
|
function o(a) {
|
|
989
|
-
if (
|
|
1028
|
+
if (tn(e, a) && (e = a, n)) {
|
|
990
1029
|
const u = !ce.length;
|
|
991
|
-
for (const l of
|
|
1030
|
+
for (const l of r)
|
|
992
1031
|
l[1](), ce.push(l, e);
|
|
993
1032
|
if (u) {
|
|
994
1033
|
for (let l = 0; l < ce.length; l += 2)
|
|
@@ -1002,18 +1041,18 @@ function Ge(e, t = q) {
|
|
|
1002
1041
|
}
|
|
1003
1042
|
function s(a, u = q) {
|
|
1004
1043
|
const l = [a, u];
|
|
1005
|
-
return
|
|
1006
|
-
|
|
1044
|
+
return r.add(l), r.size === 1 && (n = t(o, i) || q), a(e), () => {
|
|
1045
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
1007
1046
|
};
|
|
1008
1047
|
}
|
|
1009
1048
|
return { set: o, update: i, subscribe: s };
|
|
1010
1049
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const
|
|
1050
|
+
function ve(e, t, n) {
|
|
1051
|
+
const r = !Array.isArray(e), o = r ? [e] : e;
|
|
1013
1052
|
if (!o.every(Boolean))
|
|
1014
1053
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1015
1054
|
const i = t.length < 2;
|
|
1016
|
-
return
|
|
1055
|
+
return Lr(n, (s, a) => {
|
|
1017
1056
|
let u = !1;
|
|
1018
1057
|
const l = [];
|
|
1019
1058
|
let c = 0, h = q;
|
|
@@ -1021,10 +1060,10 @@ function ge(e, t, r) {
|
|
|
1021
1060
|
if (c)
|
|
1022
1061
|
return;
|
|
1023
1062
|
h();
|
|
1024
|
-
const m = t(
|
|
1025
|
-
i ? s(m) : h =
|
|
1063
|
+
const m = t(r ? l[0] : l, s, a);
|
|
1064
|
+
i ? s(m) : h = pt(m) ? m : q;
|
|
1026
1065
|
}, b = o.map(
|
|
1027
|
-
(m, p) =>
|
|
1066
|
+
(m, p) => nn(
|
|
1028
1067
|
m,
|
|
1029
1068
|
(E) => {
|
|
1030
1069
|
l[p] = E, c &= ~(1 << p), u && f();
|
|
@@ -1039,236 +1078,186 @@ function ge(e, t, r) {
|
|
|
1039
1078
|
};
|
|
1040
1079
|
});
|
|
1041
1080
|
}
|
|
1042
|
-
function
|
|
1081
|
+
function Rr(e) {
|
|
1043
1082
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1044
1083
|
}
|
|
1045
|
-
var
|
|
1046
|
-
return
|
|
1084
|
+
var Fr = function(t) {
|
|
1085
|
+
return $r(t) && !Ur(t);
|
|
1047
1086
|
};
|
|
1048
|
-
function
|
|
1087
|
+
function $r(e) {
|
|
1049
1088
|
return !!e && typeof e == "object";
|
|
1050
1089
|
}
|
|
1051
|
-
function
|
|
1090
|
+
function Ur(e) {
|
|
1052
1091
|
var t = Object.prototype.toString.call(e);
|
|
1053
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1092
|
+
return t === "[object RegExp]" || t === "[object Date]" || kr(e);
|
|
1054
1093
|
}
|
|
1055
|
-
var
|
|
1056
|
-
function
|
|
1057
|
-
return e.$$typeof ===
|
|
1094
|
+
var Dr = typeof Symbol == "function" && Symbol.for, Gr = Dr ? Symbol.for("react.element") : 60103;
|
|
1095
|
+
function kr(e) {
|
|
1096
|
+
return e.$$typeof === Gr;
|
|
1058
1097
|
}
|
|
1059
|
-
function
|
|
1098
|
+
function jr(e) {
|
|
1060
1099
|
return Array.isArray(e) ? [] : {};
|
|
1061
1100
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1101
|
+
function we(e, t) {
|
|
1102
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? pe(jr(e), e, t) : e;
|
|
1064
1103
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return e.concat(t).map(function(
|
|
1067
|
-
return
|
|
1104
|
+
function Wr(e, t, n) {
|
|
1105
|
+
return e.concat(t).map(function(r) {
|
|
1106
|
+
return we(r, n);
|
|
1068
1107
|
});
|
|
1069
1108
|
}
|
|
1070
|
-
function
|
|
1109
|
+
function Vr(e, t) {
|
|
1071
1110
|
if (!t.customMerge)
|
|
1072
|
-
return
|
|
1073
|
-
var
|
|
1074
|
-
return typeof
|
|
1111
|
+
return pe;
|
|
1112
|
+
var n = t.customMerge(e);
|
|
1113
|
+
return typeof n == "function" ? n : pe;
|
|
1075
1114
|
}
|
|
1076
|
-
function
|
|
1115
|
+
function zr(e) {
|
|
1077
1116
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1078
1117
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1079
1118
|
}) : [];
|
|
1080
1119
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return Object.keys(e).concat(
|
|
1120
|
+
function It(e) {
|
|
1121
|
+
return Object.keys(e).concat(zr(e));
|
|
1083
1122
|
}
|
|
1084
|
-
function
|
|
1123
|
+
function dn(e, t) {
|
|
1085
1124
|
try {
|
|
1086
1125
|
return t in e;
|
|
1087
1126
|
} catch {
|
|
1088
1127
|
return !1;
|
|
1089
1128
|
}
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return
|
|
1130
|
+
function Xr(e, t) {
|
|
1131
|
+
return dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1093
1132
|
}
|
|
1094
|
-
function
|
|
1095
|
-
var
|
|
1096
|
-
return
|
|
1097
|
-
|
|
1098
|
-
}),
|
|
1099
|
-
|
|
1100
|
-
}),
|
|
1101
|
-
}
|
|
1102
|
-
function
|
|
1103
|
-
|
|
1104
|
-
var
|
|
1105
|
-
return i ?
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1133
|
+
function Zr(e, t, n) {
|
|
1134
|
+
var r = {};
|
|
1135
|
+
return n.isMergeableObject(e) && It(e).forEach(function(o) {
|
|
1136
|
+
r[o] = we(e[o], n);
|
|
1137
|
+
}), It(t).forEach(function(o) {
|
|
1138
|
+
Xr(e, o) || (dn(e, o) && n.isMergeableObject(t[o]) ? r[o] = Vr(o, n)(e[o], t[o], n) : r[o] = we(t[o], n));
|
|
1139
|
+
}), r;
|
|
1140
|
+
}
|
|
1141
|
+
function pe(e, t, n) {
|
|
1142
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Wr, n.isMergeableObject = n.isMergeableObject || Fr, n.cloneUnlessOtherwiseSpecified = we;
|
|
1143
|
+
var r = Array.isArray(t), o = Array.isArray(e), i = r === o;
|
|
1144
|
+
return i ? r ? n.arrayMerge(e, t, n) : Zr(e, t, n) : we(t, n);
|
|
1145
|
+
}
|
|
1146
|
+
pe.all = function(t, n) {
|
|
1108
1147
|
if (!Array.isArray(t))
|
|
1109
1148
|
throw new Error("first argument should be an array");
|
|
1110
|
-
return t.reduce(function(
|
|
1111
|
-
return
|
|
1149
|
+
return t.reduce(function(r, o) {
|
|
1150
|
+
return pe(r, o, n);
|
|
1112
1151
|
}, {});
|
|
1113
1152
|
};
|
|
1114
|
-
var
|
|
1115
|
-
const
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
r.__proto__ = n;
|
|
1119
|
-
} || function(r, n) {
|
|
1120
|
-
for (var o in n)
|
|
1121
|
-
Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
1122
|
-
}, lt(e, t);
|
|
1123
|
-
};
|
|
1124
|
-
function ke(e, t) {
|
|
1125
|
-
if (typeof t != "function" && t !== null)
|
|
1126
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1127
|
-
lt(e, t);
|
|
1128
|
-
function r() {
|
|
1129
|
-
this.constructor = e;
|
|
1130
|
-
}
|
|
1131
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1132
|
-
}
|
|
1133
|
-
var J = function() {
|
|
1134
|
-
return J = Object.assign || function(t) {
|
|
1135
|
-
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
1136
|
-
r = arguments[n];
|
|
1137
|
-
for (var i in r)
|
|
1138
|
-
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1139
|
-
}
|
|
1140
|
-
return t;
|
|
1141
|
-
}, J.apply(this, arguments);
|
|
1142
|
-
};
|
|
1143
|
-
function Yn(e, t) {
|
|
1144
|
-
var r = {};
|
|
1145
|
-
for (var n in e)
|
|
1146
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1147
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1148
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1149
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1150
|
-
return r;
|
|
1151
|
-
}
|
|
1152
|
-
function Ze(e, t, r) {
|
|
1153
|
-
if (r || arguments.length === 2)
|
|
1154
|
-
for (var n = 0, o = t.length, i; n < o; n++)
|
|
1155
|
-
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
1156
|
-
return e.concat(i || Array.prototype.slice.call(t));
|
|
1157
|
-
}
|
|
1158
|
-
function qe(e, t) {
|
|
1159
|
-
var r = t && t.cache ? t.cache : io, n = t && t.serializer ? t.serializer : no, o = t && t.strategy ? t.strategy : to;
|
|
1153
|
+
var qr = pe, Qr = qr;
|
|
1154
|
+
const Jr = /* @__PURE__ */ Rr(Qr);
|
|
1155
|
+
function Xe(e, t) {
|
|
1156
|
+
var n = t && t.cache ? t.cache : ro, r = t && t.serializer ? t.serializer : no, o = t && t.strategy ? t.strategy : Kr;
|
|
1160
1157
|
return o(e, {
|
|
1161
|
-
cache:
|
|
1162
|
-
serializer:
|
|
1158
|
+
cache: n,
|
|
1159
|
+
serializer: r
|
|
1163
1160
|
});
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1162
|
+
function Yr(e) {
|
|
1166
1163
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1167
1164
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var o =
|
|
1170
|
-
return typeof i > "u" && (i = e.call(this,
|
|
1165
|
+
function pn(e, t, n, r) {
|
|
1166
|
+
var o = Yr(r) ? r : n(r), i = t.get(o);
|
|
1167
|
+
return typeof i > "u" && (i = e.call(this, r), t.set(o, i)), i;
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var
|
|
1174
|
-
return typeof i > "u" && (i = e.apply(this,
|
|
1169
|
+
function mn(e, t, n) {
|
|
1170
|
+
var r = Array.prototype.slice.call(arguments, 3), o = n(r), i = t.get(o);
|
|
1171
|
+
return typeof i > "u" && (i = e.apply(this, r), t.set(o, i)), i;
|
|
1175
1172
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1173
|
+
function bt(e, t, n, r, o) {
|
|
1174
|
+
return n.bind(t, e, r, o);
|
|
1178
1175
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var
|
|
1181
|
-
return
|
|
1176
|
+
function Kr(e, t) {
|
|
1177
|
+
var n = e.length === 1 ? pn : mn;
|
|
1178
|
+
return bt(e, this, n, t.cache.create(), t.serializer);
|
|
1182
1179
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return
|
|
1180
|
+
function eo(e, t) {
|
|
1181
|
+
return bt(e, this, mn, t.cache.create(), t.serializer);
|
|
1182
|
+
}
|
|
1183
|
+
function to(e, t) {
|
|
1184
|
+
return bt(e, this, pn, t.cache.create(), t.serializer);
|
|
1185
1185
|
}
|
|
1186
1186
|
var no = function() {
|
|
1187
1187
|
return JSON.stringify(arguments);
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
}()
|
|
1200
|
-
), io = {
|
|
1188
|
+
};
|
|
1189
|
+
function gt() {
|
|
1190
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1191
|
+
}
|
|
1192
|
+
gt.prototype.get = function(e) {
|
|
1193
|
+
return this.cache[e];
|
|
1194
|
+
};
|
|
1195
|
+
gt.prototype.set = function(e, t) {
|
|
1196
|
+
this.cache[e] = t;
|
|
1197
|
+
};
|
|
1198
|
+
var ro = {
|
|
1201
1199
|
create: function() {
|
|
1202
|
-
return new
|
|
1200
|
+
return new gt();
|
|
1203
1201
|
}
|
|
1204
|
-
},
|
|
1205
|
-
variadic:
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
1209
|
-
r = arguments[n];
|
|
1210
|
-
for (var i in r)
|
|
1211
|
-
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1212
|
-
}
|
|
1213
|
-
return t;
|
|
1214
|
-
}, $e.apply(this, arguments);
|
|
1215
|
-
};
|
|
1216
|
-
var x;
|
|
1202
|
+
}, Ze = {
|
|
1203
|
+
variadic: eo,
|
|
1204
|
+
monadic: to
|
|
1205
|
+
}, x;
|
|
1217
1206
|
(function(e) {
|
|
1218
1207
|
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";
|
|
1219
1208
|
})(x || (x = {}));
|
|
1220
|
-
var
|
|
1209
|
+
var I;
|
|
1221
1210
|
(function(e) {
|
|
1222
1211
|
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";
|
|
1223
|
-
})(
|
|
1224
|
-
var
|
|
1212
|
+
})(I || (I = {}));
|
|
1213
|
+
var me;
|
|
1225
1214
|
(function(e) {
|
|
1226
1215
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1227
|
-
})(
|
|
1228
|
-
function
|
|
1229
|
-
return e.type ===
|
|
1216
|
+
})(me || (me = {}));
|
|
1217
|
+
function Ot(e) {
|
|
1218
|
+
return e.type === I.literal;
|
|
1230
1219
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1220
|
+
function oo(e) {
|
|
1221
|
+
return e.type === I.argument;
|
|
1233
1222
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return e.type ===
|
|
1223
|
+
function bn(e) {
|
|
1224
|
+
return e.type === I.number;
|
|
1236
1225
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1226
|
+
function gn(e) {
|
|
1227
|
+
return e.type === I.date;
|
|
1239
1228
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return e.type ===
|
|
1229
|
+
function vn(e) {
|
|
1230
|
+
return e.type === I.time;
|
|
1242
1231
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1232
|
+
function yn(e) {
|
|
1233
|
+
return e.type === I.select;
|
|
1245
1234
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return e.type ===
|
|
1235
|
+
function _n(e) {
|
|
1236
|
+
return e.type === I.plural;
|
|
1248
1237
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return e.type ===
|
|
1238
|
+
function io(e) {
|
|
1239
|
+
return e.type === I.pound;
|
|
1251
1240
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return e.type ===
|
|
1241
|
+
function Bn(e) {
|
|
1242
|
+
return e.type === I.tag;
|
|
1254
1243
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1244
|
+
function En(e) {
|
|
1245
|
+
return !!(e && typeof e == "object" && e.type === me.number);
|
|
1257
1246
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1247
|
+
function st(e) {
|
|
1248
|
+
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
|
1260
1249
|
}
|
|
1261
|
-
var
|
|
1262
|
-
function
|
|
1250
|
+
var xn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, so = /(?:[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;
|
|
1251
|
+
function ao(e) {
|
|
1263
1252
|
var t = {};
|
|
1264
|
-
return e.replace(
|
|
1265
|
-
var
|
|
1266
|
-
switch (
|
|
1253
|
+
return e.replace(so, function(n) {
|
|
1254
|
+
var r = n.length;
|
|
1255
|
+
switch (n[0]) {
|
|
1267
1256
|
case "G":
|
|
1268
|
-
t.era =
|
|
1257
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1269
1258
|
break;
|
|
1270
1259
|
case "y":
|
|
1271
|
-
t.year =
|
|
1260
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1272
1261
|
break;
|
|
1273
1262
|
case "Y":
|
|
1274
1263
|
case "u":
|
|
@@ -1280,30 +1269,30 @@ function lo(e) {
|
|
|
1280
1269
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1281
1270
|
case "M":
|
|
1282
1271
|
case "L":
|
|
1283
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1272
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1284
1273
|
break;
|
|
1285
1274
|
case "w":
|
|
1286
1275
|
case "W":
|
|
1287
1276
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1288
1277
|
case "d":
|
|
1289
|
-
t.day = ["numeric", "2-digit"][
|
|
1278
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1290
1279
|
break;
|
|
1291
1280
|
case "D":
|
|
1292
1281
|
case "F":
|
|
1293
1282
|
case "g":
|
|
1294
1283
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1295
1284
|
case "E":
|
|
1296
|
-
t.weekday =
|
|
1285
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1297
1286
|
break;
|
|
1298
1287
|
case "e":
|
|
1299
|
-
if (
|
|
1288
|
+
if (r < 4)
|
|
1300
1289
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1301
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1290
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1302
1291
|
break;
|
|
1303
1292
|
case "c":
|
|
1304
|
-
if (
|
|
1293
|
+
if (r < 4)
|
|
1305
1294
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1306
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1295
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1307
1296
|
break;
|
|
1308
1297
|
case "a":
|
|
1309
1298
|
t.hour12 = !0;
|
|
@@ -1312,32 +1301,32 @@ function lo(e) {
|
|
|
1312
1301
|
case "B":
|
|
1313
1302
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1314
1303
|
case "h":
|
|
1315
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1304
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1316
1305
|
break;
|
|
1317
1306
|
case "H":
|
|
1318
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1307
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1319
1308
|
break;
|
|
1320
1309
|
case "K":
|
|
1321
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1310
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1322
1311
|
break;
|
|
1323
1312
|
case "k":
|
|
1324
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1313
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1325
1314
|
break;
|
|
1326
1315
|
case "j":
|
|
1327
1316
|
case "J":
|
|
1328
1317
|
case "C":
|
|
1329
1318
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1330
1319
|
case "m":
|
|
1331
|
-
t.minute = ["numeric", "2-digit"][
|
|
1320
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1332
1321
|
break;
|
|
1333
1322
|
case "s":
|
|
1334
|
-
t.second = ["numeric", "2-digit"][
|
|
1323
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1335
1324
|
break;
|
|
1336
1325
|
case "S":
|
|
1337
1326
|
case "A":
|
|
1338
1327
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1339
1328
|
case "z":
|
|
1340
|
-
t.timeZoneName =
|
|
1329
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1341
1330
|
break;
|
|
1342
1331
|
case "Z":
|
|
1343
1332
|
case "O":
|
|
@@ -1350,24 +1339,14 @@ function lo(e) {
|
|
|
1350
1339
|
return "";
|
|
1351
1340
|
}), t;
|
|
1352
1341
|
}
|
|
1353
|
-
var
|
|
1354
|
-
|
|
1355
|
-
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
1356
|
-
r = arguments[n];
|
|
1357
|
-
for (var i in r)
|
|
1358
|
-
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1359
|
-
}
|
|
1360
|
-
return t;
|
|
1361
|
-
}, O.apply(this, arguments);
|
|
1362
|
-
};
|
|
1363
|
-
var co = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1364
|
-
function ho(e) {
|
|
1342
|
+
var uo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1343
|
+
function lo(e) {
|
|
1365
1344
|
if (e.length === 0)
|
|
1366
1345
|
throw new Error("Number skeleton cannot be empty");
|
|
1367
|
-
for (var t = e.split(
|
|
1346
|
+
for (var t = e.split(uo).filter(function(f) {
|
|
1368
1347
|
return f.length > 0;
|
|
1369
|
-
}),
|
|
1370
|
-
var i = o[
|
|
1348
|
+
}), n = [], r = 0, o = t; r < o.length; r++) {
|
|
1349
|
+
var i = o[r], s = i.split("/");
|
|
1371
1350
|
if (s.length === 0)
|
|
1372
1351
|
throw new Error("Invalid number skeleton");
|
|
1373
1352
|
for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
@@ -1375,21 +1354,21 @@ function ho(e) {
|
|
|
1375
1354
|
if (h.length === 0)
|
|
1376
1355
|
throw new Error("Invalid number skeleton");
|
|
1377
1356
|
}
|
|
1378
|
-
|
|
1357
|
+
n.push({ stem: a, options: u });
|
|
1379
1358
|
}
|
|
1380
|
-
return
|
|
1359
|
+
return n;
|
|
1381
1360
|
}
|
|
1382
|
-
function
|
|
1361
|
+
function co(e) {
|
|
1383
1362
|
return e.replace(/^(.*?)-/, "");
|
|
1384
1363
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1364
|
+
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wn = /^(@+)?(\+|#+)?[rs]?$/g, ho = /(\*)(0+)|(#+)(0+)|(0+)/g, Cn = /^(0+)$/;
|
|
1365
|
+
function Lt(e) {
|
|
1387
1366
|
var t = {};
|
|
1388
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1389
|
-
return typeof o != "string" ? (t.minimumSignificantDigits =
|
|
1367
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wn, function(n, r, o) {
|
|
1368
|
+
return typeof o != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : o === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof o == "string" ? o.length : 0)), "";
|
|
1390
1369
|
}), t;
|
|
1391
1370
|
}
|
|
1392
|
-
function
|
|
1371
|
+
function Sn(e) {
|
|
1393
1372
|
switch (e) {
|
|
1394
1373
|
case "sign-auto":
|
|
1395
1374
|
return {
|
|
@@ -1429,27 +1408,27 @@ function Sr(e) {
|
|
|
1429
1408
|
};
|
|
1430
1409
|
}
|
|
1431
1410
|
}
|
|
1432
|
-
function
|
|
1411
|
+
function fo(e) {
|
|
1433
1412
|
var t;
|
|
1434
1413
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1435
1414
|
notation: "engineering"
|
|
1436
1415
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1437
1416
|
notation: "scientific"
|
|
1438
1417
|
}, e = e.slice(1)), t) {
|
|
1439
|
-
var
|
|
1440
|
-
if (
|
|
1418
|
+
var n = e.slice(0, 2);
|
|
1419
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Cn.test(e))
|
|
1441
1420
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1442
1421
|
t.minimumIntegerDigits = e.length;
|
|
1443
1422
|
}
|
|
1444
1423
|
return t;
|
|
1445
1424
|
}
|
|
1446
|
-
function
|
|
1447
|
-
var t = {},
|
|
1448
|
-
return
|
|
1425
|
+
function Rt(e) {
|
|
1426
|
+
var t = {}, n = Sn(e);
|
|
1427
|
+
return n || t;
|
|
1449
1428
|
}
|
|
1450
|
-
function
|
|
1451
|
-
for (var t = {},
|
|
1452
|
-
var o = n
|
|
1429
|
+
function po(e) {
|
|
1430
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1431
|
+
var o = r[n];
|
|
1453
1432
|
switch (o.stem) {
|
|
1454
1433
|
case "percent":
|
|
1455
1434
|
case "%":
|
|
@@ -1471,7 +1450,7 @@ function bo(e) {
|
|
|
1471
1450
|
continue;
|
|
1472
1451
|
case "measure-unit":
|
|
1473
1452
|
case "unit":
|
|
1474
|
-
t.style = "unit", t.unit =
|
|
1453
|
+
t.style = "unit", t.unit = co(o.options[0]);
|
|
1475
1454
|
continue;
|
|
1476
1455
|
case "compact-short":
|
|
1477
1456
|
case "K":
|
|
@@ -1482,13 +1461,13 @@ function bo(e) {
|
|
|
1482
1461
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1483
1462
|
continue;
|
|
1484
1463
|
case "scientific":
|
|
1485
|
-
t =
|
|
1486
|
-
return
|
|
1464
|
+
t = A(A(A({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
|
|
1465
|
+
return A(A({}, u), Rt(l));
|
|
1487
1466
|
}, {}));
|
|
1488
1467
|
continue;
|
|
1489
1468
|
case "engineering":
|
|
1490
|
-
t =
|
|
1491
|
-
return
|
|
1469
|
+
t = A(A(A({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
|
|
1470
|
+
return A(A({}, u), Rt(l));
|
|
1492
1471
|
}, {}));
|
|
1493
1472
|
continue;
|
|
1494
1473
|
case "notation-simple":
|
|
@@ -1533,7 +1512,7 @@ function bo(e) {
|
|
|
1533
1512
|
case "integer-width":
|
|
1534
1513
|
if (o.options.length > 1)
|
|
1535
1514
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1536
|
-
o.options[0].replace(
|
|
1515
|
+
o.options[0].replace(ho, function(u, l, c, h, f, b) {
|
|
1537
1516
|
if (l)
|
|
1538
1517
|
t.minimumIntegerDigits = c.length;
|
|
1539
1518
|
else {
|
|
@@ -1546,28 +1525,28 @@ function bo(e) {
|
|
|
1546
1525
|
});
|
|
1547
1526
|
continue;
|
|
1548
1527
|
}
|
|
1549
|
-
if (
|
|
1528
|
+
if (Cn.test(o.stem)) {
|
|
1550
1529
|
t.minimumIntegerDigits = o.stem.length;
|
|
1551
1530
|
continue;
|
|
1552
1531
|
}
|
|
1553
|
-
if (
|
|
1532
|
+
if (Nt.test(o.stem)) {
|
|
1554
1533
|
if (o.options.length > 1)
|
|
1555
1534
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1556
|
-
o.stem.replace(
|
|
1535
|
+
o.stem.replace(Nt, function(u, l, c, h, f, b) {
|
|
1557
1536
|
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1558
1537
|
});
|
|
1559
1538
|
var i = o.options[0];
|
|
1560
|
-
i === "w" ? t =
|
|
1539
|
+
i === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = A(A({}, t), Lt(i)));
|
|
1561
1540
|
continue;
|
|
1562
1541
|
}
|
|
1563
|
-
if (
|
|
1564
|
-
t =
|
|
1542
|
+
if (wn.test(o.stem)) {
|
|
1543
|
+
t = A(A({}, t), Lt(o.stem));
|
|
1565
1544
|
continue;
|
|
1566
1545
|
}
|
|
1567
|
-
var s =
|
|
1568
|
-
s && (t =
|
|
1569
|
-
var a =
|
|
1570
|
-
a && (t =
|
|
1546
|
+
var s = Sn(o.stem);
|
|
1547
|
+
s && (t = A(A({}, t), s));
|
|
1548
|
+
var a = fo(o.stem);
|
|
1549
|
+
a && (t = A(A({}, t), a));
|
|
1571
1550
|
}
|
|
1572
1551
|
return t;
|
|
1573
1552
|
}
|
|
@@ -2986,23 +2965,23 @@ var He = {
|
|
|
2986
2965
|
"h"
|
|
2987
2966
|
]
|
|
2988
2967
|
};
|
|
2989
|
-
function
|
|
2990
|
-
for (var
|
|
2991
|
-
var o = e.charAt(
|
|
2968
|
+
function mo(e, t) {
|
|
2969
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2970
|
+
var o = e.charAt(r);
|
|
2992
2971
|
if (o === "j") {
|
|
2993
|
-
for (var i = 0;
|
|
2994
|
-
i++,
|
|
2995
|
-
var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l =
|
|
2972
|
+
for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === o; )
|
|
2973
|
+
i++, r++;
|
|
2974
|
+
var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = bo(t);
|
|
2996
2975
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2997
|
-
|
|
2976
|
+
n += u;
|
|
2998
2977
|
for (; s-- > 0; )
|
|
2999
|
-
|
|
2978
|
+
n = l + n;
|
|
3000
2979
|
} else
|
|
3001
|
-
o === "J" ?
|
|
2980
|
+
o === "J" ? n += "H" : n += o;
|
|
3002
2981
|
}
|
|
3003
|
-
return
|
|
2982
|
+
return n;
|
|
3004
2983
|
}
|
|
3005
|
-
function
|
|
2984
|
+
function bo(e) {
|
|
3006
2985
|
var t = e.hourCycle;
|
|
3007
2986
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3008
2987
|
e.hourCycles && // @ts-ignore
|
|
@@ -3019,73 +2998,73 @@ function vo(e) {
|
|
|
3019
2998
|
default:
|
|
3020
2999
|
throw new Error("Invalid hourCycle");
|
|
3021
3000
|
}
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
var o = He[
|
|
3001
|
+
var n = e.language, r;
|
|
3002
|
+
n !== "root" && (r = e.maximize().region);
|
|
3003
|
+
var o = He[r || ""] || He[n || ""] || He["".concat(n, "-001")] || He["001"];
|
|
3025
3004
|
return o[0];
|
|
3026
3005
|
}
|
|
3027
|
-
var
|
|
3006
|
+
var qe, go = new RegExp("^".concat(xn.source, "*")), vo = new RegExp("".concat(xn.source, "*$"));
|
|
3028
3007
|
function C(e, t) {
|
|
3029
3008
|
return { start: e, end: t };
|
|
3030
3009
|
}
|
|
3031
|
-
var
|
|
3010
|
+
var yo = !!String.prototype.startsWith && "_a".startsWith("a", 1), _o = !!String.fromCodePoint, Bo = !!Object.fromEntries, Eo = !!String.prototype.codePointAt, xo = !!String.prototype.trimStart, wo = !!String.prototype.trimEnd, Co = !!Number.isSafeInteger, So = Co ? Number.isSafeInteger : function(e) {
|
|
3032
3011
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3033
|
-
},
|
|
3012
|
+
}, at = !0;
|
|
3034
3013
|
try {
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3014
|
+
var Ao = Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3015
|
+
at = ((qe = Ao.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
|
|
3037
3016
|
} catch {
|
|
3038
|
-
|
|
3017
|
+
at = !1;
|
|
3039
3018
|
}
|
|
3040
|
-
var
|
|
3019
|
+
var Ft = yo ? (
|
|
3041
3020
|
// Native
|
|
3042
|
-
function(t,
|
|
3043
|
-
return t.startsWith(
|
|
3021
|
+
function(t, n, r) {
|
|
3022
|
+
return t.startsWith(n, r);
|
|
3044
3023
|
}
|
|
3045
3024
|
) : (
|
|
3046
3025
|
// For IE11
|
|
3047
|
-
function(t,
|
|
3048
|
-
return t.slice(
|
|
3026
|
+
function(t, n, r) {
|
|
3027
|
+
return t.slice(r, r + n.length) === n;
|
|
3049
3028
|
}
|
|
3050
|
-
),
|
|
3029
|
+
), ut = _o ? String.fromCodePoint : (
|
|
3051
3030
|
// IE11
|
|
3052
3031
|
function() {
|
|
3053
|
-
for (var t = [],
|
|
3054
|
-
t[
|
|
3055
|
-
for (var
|
|
3032
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3033
|
+
t[n] = arguments[n];
|
|
3034
|
+
for (var r = "", o = t.length, i = 0, s; o > i; ) {
|
|
3056
3035
|
if (s = t[i++], s > 1114111)
|
|
3057
3036
|
throw RangeError(s + " is not a valid code point");
|
|
3058
|
-
|
|
3037
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3059
3038
|
}
|
|
3060
|
-
return
|
|
3039
|
+
return r;
|
|
3061
3040
|
}
|
|
3062
|
-
),
|
|
3041
|
+
), $t = (
|
|
3063
3042
|
// native
|
|
3064
|
-
|
|
3043
|
+
Bo ? Object.fromEntries : (
|
|
3065
3044
|
// Ponyfill
|
|
3066
3045
|
function(t) {
|
|
3067
|
-
for (var
|
|
3068
|
-
var i = o[
|
|
3069
|
-
|
|
3046
|
+
for (var n = {}, r = 0, o = t; r < o.length; r++) {
|
|
3047
|
+
var i = o[r], s = i[0], a = i[1];
|
|
3048
|
+
n[s] = a;
|
|
3070
3049
|
}
|
|
3071
|
-
return
|
|
3050
|
+
return n;
|
|
3072
3051
|
}
|
|
3073
3052
|
)
|
|
3074
|
-
),
|
|
3053
|
+
), An = Eo ? (
|
|
3075
3054
|
// Native
|
|
3076
|
-
function(t,
|
|
3077
|
-
return t.codePointAt(
|
|
3055
|
+
function(t, n) {
|
|
3056
|
+
return t.codePointAt(n);
|
|
3078
3057
|
}
|
|
3079
3058
|
) : (
|
|
3080
3059
|
// IE 11
|
|
3081
|
-
function(t,
|
|
3082
|
-
var
|
|
3083
|
-
if (!(
|
|
3084
|
-
var o = t.charCodeAt(
|
|
3085
|
-
return o < 55296 || o > 56319 ||
|
|
3060
|
+
function(t, n) {
|
|
3061
|
+
var r = t.length;
|
|
3062
|
+
if (!(n < 0 || n >= r)) {
|
|
3063
|
+
var o = t.charCodeAt(n), i;
|
|
3064
|
+
return o < 55296 || o > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
|
|
3086
3065
|
}
|
|
3087
3066
|
}
|
|
3088
|
-
),
|
|
3067
|
+
), To = xo ? (
|
|
3089
3068
|
// Native
|
|
3090
3069
|
function(t) {
|
|
3091
3070
|
return t.trimStart();
|
|
@@ -3093,9 +3072,9 @@ var Ut = Bo ? (
|
|
|
3093
3072
|
) : (
|
|
3094
3073
|
// Ponyfill
|
|
3095
3074
|
function(t) {
|
|
3096
|
-
return t.replace(
|
|
3075
|
+
return t.replace(go, "");
|
|
3097
3076
|
}
|
|
3098
|
-
),
|
|
3077
|
+
), Mo = wo ? (
|
|
3099
3078
|
// Native
|
|
3100
3079
|
function(t) {
|
|
3101
3080
|
return t.trimEnd();
|
|
@@ -3103,69 +3082,69 @@ var Ut = Bo ? (
|
|
|
3103
3082
|
) : (
|
|
3104
3083
|
// Ponyfill
|
|
3105
3084
|
function(t) {
|
|
3106
|
-
return t.replace(
|
|
3085
|
+
return t.replace(vo, "");
|
|
3107
3086
|
}
|
|
3108
3087
|
);
|
|
3109
|
-
function
|
|
3088
|
+
function Tn(e, t) {
|
|
3110
3089
|
return new RegExp(e, t);
|
|
3111
3090
|
}
|
|
3112
|
-
var
|
|
3113
|
-
if (
|
|
3114
|
-
var
|
|
3115
|
-
|
|
3116
|
-
var
|
|
3117
|
-
|
|
3118
|
-
var o =
|
|
3119
|
-
return (
|
|
3091
|
+
var lt;
|
|
3092
|
+
if (at) {
|
|
3093
|
+
var Ut = Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3094
|
+
lt = function(t, n) {
|
|
3095
|
+
var r;
|
|
3096
|
+
Ut.lastIndex = n;
|
|
3097
|
+
var o = Ut.exec(t);
|
|
3098
|
+
return (r = o[1]) !== null && r !== void 0 ? r : "";
|
|
3120
3099
|
};
|
|
3121
3100
|
} else
|
|
3122
|
-
|
|
3123
|
-
for (var
|
|
3124
|
-
var o =
|
|
3125
|
-
if (o === void 0 ||
|
|
3101
|
+
lt = function(t, n) {
|
|
3102
|
+
for (var r = []; ; ) {
|
|
3103
|
+
var o = An(t, n);
|
|
3104
|
+
if (o === void 0 || Mn(o) || Oo(o))
|
|
3126
3105
|
break;
|
|
3127
|
-
|
|
3106
|
+
r.push(o), n += o >= 65536 ? 2 : 1;
|
|
3128
3107
|
}
|
|
3129
|
-
return
|
|
3108
|
+
return ut.apply(void 0, r);
|
|
3130
3109
|
};
|
|
3131
|
-
var
|
|
3110
|
+
var Po = (
|
|
3132
3111
|
/** @class */
|
|
3133
3112
|
function() {
|
|
3134
|
-
function e(t,
|
|
3135
|
-
|
|
3113
|
+
function e(t, n) {
|
|
3114
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3136
3115
|
}
|
|
3137
3116
|
return e.prototype.parse = function() {
|
|
3138
3117
|
if (this.offset() !== 0)
|
|
3139
3118
|
throw Error("parser can only be used once");
|
|
3140
3119
|
return this.parseMessage(0, "", !1);
|
|
3141
|
-
}, e.prototype.parseMessage = function(t,
|
|
3120
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3142
3121
|
for (var o = []; !this.isEOF(); ) {
|
|
3143
3122
|
var i = this.char();
|
|
3144
3123
|
if (i === 123) {
|
|
3145
|
-
var s = this.parseArgument(t,
|
|
3124
|
+
var s = this.parseArgument(t, r);
|
|
3146
3125
|
if (s.err)
|
|
3147
3126
|
return s;
|
|
3148
3127
|
o.push(s.val);
|
|
3149
3128
|
} else {
|
|
3150
3129
|
if (i === 125 && t > 0)
|
|
3151
3130
|
break;
|
|
3152
|
-
if (i === 35 && (
|
|
3131
|
+
if (i === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3153
3132
|
var a = this.clonePosition();
|
|
3154
3133
|
this.bump(), o.push({
|
|
3155
|
-
type:
|
|
3134
|
+
type: I.pound,
|
|
3156
3135
|
location: C(a, this.clonePosition())
|
|
3157
3136
|
});
|
|
3158
3137
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3159
|
-
if (
|
|
3138
|
+
if (r)
|
|
3160
3139
|
break;
|
|
3161
3140
|
return this.error(x.UNMATCHED_CLOSING_TAG, C(this.clonePosition(), this.clonePosition()));
|
|
3162
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
3163
|
-
var s = this.parseTag(t,
|
|
3141
|
+
} else if (i === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
|
|
3142
|
+
var s = this.parseTag(t, n);
|
|
3164
3143
|
if (s.err)
|
|
3165
3144
|
return s;
|
|
3166
3145
|
o.push(s.val);
|
|
3167
3146
|
} else {
|
|
3168
|
-
var s = this.parseLiteral(t,
|
|
3147
|
+
var s = this.parseLiteral(t, n);
|
|
3169
3148
|
if (s.err)
|
|
3170
3149
|
return s;
|
|
3171
3150
|
o.push(s.val);
|
|
@@ -3173,54 +3152,54 @@ var Oo = (
|
|
|
3173
3152
|
}
|
|
3174
3153
|
}
|
|
3175
3154
|
return { val: o, err: null };
|
|
3176
|
-
}, e.prototype.parseTag = function(t,
|
|
3177
|
-
var
|
|
3155
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3156
|
+
var r = this.clonePosition();
|
|
3178
3157
|
this.bump();
|
|
3179
3158
|
var o = this.parseTagName();
|
|
3180
3159
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3181
3160
|
return {
|
|
3182
3161
|
val: {
|
|
3183
|
-
type:
|
|
3162
|
+
type: I.literal,
|
|
3184
3163
|
value: "<".concat(o, "/>"),
|
|
3185
|
-
location: C(
|
|
3164
|
+
location: C(r, this.clonePosition())
|
|
3186
3165
|
},
|
|
3187
3166
|
err: null
|
|
3188
3167
|
};
|
|
3189
3168
|
if (this.bumpIf(">")) {
|
|
3190
|
-
var i = this.parseMessage(t + 1,
|
|
3169
|
+
var i = this.parseMessage(t + 1, n, !0);
|
|
3191
3170
|
if (i.err)
|
|
3192
3171
|
return i;
|
|
3193
3172
|
var s = i.val, a = this.clonePosition();
|
|
3194
3173
|
if (this.bumpIf("</")) {
|
|
3195
|
-
if (this.isEOF() || !
|
|
3174
|
+
if (this.isEOF() || !ct(this.char()))
|
|
3196
3175
|
return this.error(x.INVALID_TAG, C(a, this.clonePosition()));
|
|
3197
3176
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3198
3177
|
return o !== l ? this.error(x.UNMATCHED_CLOSING_TAG, C(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3199
3178
|
val: {
|
|
3200
|
-
type:
|
|
3179
|
+
type: I.tag,
|
|
3201
3180
|
value: o,
|
|
3202
3181
|
children: s,
|
|
3203
|
-
location: C(
|
|
3182
|
+
location: C(r, this.clonePosition())
|
|
3204
3183
|
},
|
|
3205
3184
|
err: null
|
|
3206
3185
|
} : this.error(x.INVALID_TAG, C(a, this.clonePosition())));
|
|
3207
3186
|
} else
|
|
3208
|
-
return this.error(x.UNCLOSED_TAG, C(
|
|
3187
|
+
return this.error(x.UNCLOSED_TAG, C(r, this.clonePosition()));
|
|
3209
3188
|
} else
|
|
3210
|
-
return this.error(x.INVALID_TAG, C(
|
|
3189
|
+
return this.error(x.INVALID_TAG, C(r, this.clonePosition()));
|
|
3211
3190
|
}, e.prototype.parseTagName = function() {
|
|
3212
3191
|
var t = this.offset();
|
|
3213
|
-
for (this.bump(); !this.isEOF() &&
|
|
3192
|
+
for (this.bump(); !this.isEOF() && Io(this.char()); )
|
|
3214
3193
|
this.bump();
|
|
3215
3194
|
return this.message.slice(t, this.offset());
|
|
3216
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3217
|
-
for (var
|
|
3218
|
-
var i = this.tryParseQuote(
|
|
3195
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3196
|
+
for (var r = this.clonePosition(), o = ""; ; ) {
|
|
3197
|
+
var i = this.tryParseQuote(n);
|
|
3219
3198
|
if (i) {
|
|
3220
3199
|
o += i;
|
|
3221
3200
|
continue;
|
|
3222
3201
|
}
|
|
3223
|
-
var s = this.tryParseUnquoted(t,
|
|
3202
|
+
var s = this.tryParseUnquoted(t, n);
|
|
3224
3203
|
if (s) {
|
|
3225
3204
|
o += s;
|
|
3226
3205
|
continue;
|
|
@@ -3232,14 +3211,14 @@ var Oo = (
|
|
|
3232
3211
|
}
|
|
3233
3212
|
break;
|
|
3234
3213
|
}
|
|
3235
|
-
var u = C(
|
|
3214
|
+
var u = C(r, this.clonePosition());
|
|
3236
3215
|
return {
|
|
3237
|
-
val: { type:
|
|
3216
|
+
val: { type: I.literal, value: o, location: u },
|
|
3238
3217
|
err: null
|
|
3239
3218
|
};
|
|
3240
3219
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3241
3220
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3242
|
-
!
|
|
3221
|
+
!Ho(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3243
3222
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3244
3223
|
if (this.isEOF() || this.char() !== 39)
|
|
3245
3224
|
return null;
|
|
@@ -3259,59 +3238,59 @@ var Oo = (
|
|
|
3259
3238
|
return null;
|
|
3260
3239
|
}
|
|
3261
3240
|
this.bump();
|
|
3262
|
-
var
|
|
3241
|
+
var n = [this.char()];
|
|
3263
3242
|
for (this.bump(); !this.isEOF(); ) {
|
|
3264
|
-
var
|
|
3265
|
-
if (
|
|
3243
|
+
var r = this.char();
|
|
3244
|
+
if (r === 39)
|
|
3266
3245
|
if (this.peek() === 39)
|
|
3267
|
-
|
|
3246
|
+
n.push(39), this.bump();
|
|
3268
3247
|
else {
|
|
3269
3248
|
this.bump();
|
|
3270
3249
|
break;
|
|
3271
3250
|
}
|
|
3272
3251
|
else
|
|
3273
|
-
|
|
3252
|
+
n.push(r);
|
|
3274
3253
|
this.bump();
|
|
3275
3254
|
}
|
|
3276
|
-
return
|
|
3277
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3255
|
+
return ut.apply(void 0, n);
|
|
3256
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3278
3257
|
if (this.isEOF())
|
|
3279
3258
|
return null;
|
|
3280
|
-
var
|
|
3281
|
-
return
|
|
3282
|
-
}, e.prototype.parseArgument = function(t,
|
|
3283
|
-
var
|
|
3259
|
+
var r = this.char();
|
|
3260
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), ut(r));
|
|
3261
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3262
|
+
var r = this.clonePosition();
|
|
3284
3263
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3285
|
-
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(
|
|
3264
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
|
|
3286
3265
|
if (this.char() === 125)
|
|
3287
|
-
return this.bump(), this.error(x.EMPTY_ARGUMENT, C(
|
|
3266
|
+
return this.bump(), this.error(x.EMPTY_ARGUMENT, C(r, this.clonePosition()));
|
|
3288
3267
|
var o = this.parseIdentifierIfPossible().value;
|
|
3289
3268
|
if (!o)
|
|
3290
|
-
return this.error(x.MALFORMED_ARGUMENT, C(
|
|
3269
|
+
return this.error(x.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
|
|
3291
3270
|
if (this.bumpSpace(), this.isEOF())
|
|
3292
|
-
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(
|
|
3271
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition()));
|
|
3293
3272
|
switch (this.char()) {
|
|
3294
3273
|
case 125:
|
|
3295
3274
|
return this.bump(), {
|
|
3296
3275
|
val: {
|
|
3297
|
-
type:
|
|
3276
|
+
type: I.argument,
|
|
3298
3277
|
// value does not include the opening and closing braces.
|
|
3299
3278
|
value: o,
|
|
3300
|
-
location: C(
|
|
3279
|
+
location: C(r, this.clonePosition())
|
|
3301
3280
|
},
|
|
3302
3281
|
err: null
|
|
3303
3282
|
};
|
|
3304
3283
|
case 44:
|
|
3305
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(
|
|
3284
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(r, this.clonePosition())) : this.parseArgumentOptions(t, n, o, r);
|
|
3306
3285
|
default:
|
|
3307
|
-
return this.error(x.MALFORMED_ARGUMENT, C(
|
|
3286
|
+
return this.error(x.MALFORMED_ARGUMENT, C(r, this.clonePosition()));
|
|
3308
3287
|
}
|
|
3309
3288
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3310
|
-
var t = this.clonePosition(),
|
|
3289
|
+
var t = this.clonePosition(), n = this.offset(), r = lt(this.message, n), o = n + r.length;
|
|
3311
3290
|
this.bumpTo(o);
|
|
3312
3291
|
var i = this.clonePosition(), s = C(t, i);
|
|
3313
|
-
return { value:
|
|
3314
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3292
|
+
return { value: r, location: s };
|
|
3293
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, o) {
|
|
3315
3294
|
var i, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3316
3295
|
switch (a) {
|
|
3317
3296
|
case "":
|
|
@@ -3326,7 +3305,7 @@ var Oo = (
|
|
|
3326
3305
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
3327
3306
|
if (h.err)
|
|
3328
3307
|
return h;
|
|
3329
|
-
var f =
|
|
3308
|
+
var f = Mo(h.val);
|
|
3330
3309
|
if (f.length === 0)
|
|
3331
3310
|
return this.error(x.EXPECT_ARGUMENT_STYLE, C(this.clonePosition(), this.clonePosition()));
|
|
3332
3311
|
var b = C(c, this.clonePosition());
|
|
@@ -3336,35 +3315,35 @@ var Oo = (
|
|
|
3336
3315
|
if (m.err)
|
|
3337
3316
|
return m;
|
|
3338
3317
|
var p = C(o, this.clonePosition());
|
|
3339
|
-
if (l &&
|
|
3340
|
-
var E =
|
|
3318
|
+
if (l && Ft(l?.style, "::", 0)) {
|
|
3319
|
+
var E = To(l.style.slice(2));
|
|
3341
3320
|
if (a === "number") {
|
|
3342
3321
|
var h = this.parseNumberSkeletonFromString(E, l.styleLocation);
|
|
3343
3322
|
return h.err ? h : {
|
|
3344
|
-
val: { type:
|
|
3323
|
+
val: { type: I.number, value: r, location: p, style: h.val },
|
|
3345
3324
|
err: null
|
|
3346
3325
|
};
|
|
3347
3326
|
} else {
|
|
3348
3327
|
if (E.length === 0)
|
|
3349
3328
|
return this.error(x.EXPECT_DATE_TIME_SKELETON, p);
|
|
3350
3329
|
var _ = E;
|
|
3351
|
-
this.locale && (_ =
|
|
3330
|
+
this.locale && (_ = mo(E, this.locale));
|
|
3352
3331
|
var f = {
|
|
3353
|
-
type:
|
|
3332
|
+
type: me.dateTime,
|
|
3354
3333
|
pattern: _,
|
|
3355
3334
|
location: l.styleLocation,
|
|
3356
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3357
|
-
}, y = a === "date" ?
|
|
3335
|
+
parsedOptions: this.shouldParseSkeletons ? ao(_) : {}
|
|
3336
|
+
}, y = a === "date" ? I.date : I.time;
|
|
3358
3337
|
return {
|
|
3359
|
-
val: { type: y, value:
|
|
3338
|
+
val: { type: y, value: r, location: p, style: f },
|
|
3360
3339
|
err: null
|
|
3361
3340
|
};
|
|
3362
3341
|
}
|
|
3363
3342
|
}
|
|
3364
3343
|
return {
|
|
3365
3344
|
val: {
|
|
3366
|
-
type: a === "number" ?
|
|
3367
|
-
value:
|
|
3345
|
+
type: a === "number" ? I.number : a === "date" ? I.date : I.time,
|
|
3346
|
+
value: r,
|
|
3368
3347
|
location: p,
|
|
3369
3348
|
style: (i = l?.style) !== null && i !== void 0 ? i : null
|
|
3370
3349
|
},
|
|
@@ -3374,21 +3353,21 @@ var Oo = (
|
|
|
3374
3353
|
case "plural":
|
|
3375
3354
|
case "selectordinal":
|
|
3376
3355
|
case "select": {
|
|
3377
|
-
var
|
|
3356
|
+
var M = this.clonePosition();
|
|
3378
3357
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3379
|
-
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, C(
|
|
3358
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, C(M, A({}, M)));
|
|
3380
3359
|
this.bumpSpace();
|
|
3381
|
-
var
|
|
3382
|
-
if (a !== "select" &&
|
|
3360
|
+
var O = this.parseIdentifierIfPossible(), S = 0;
|
|
3361
|
+
if (a !== "select" && O.value === "offset") {
|
|
3383
3362
|
if (!this.bumpIf(":"))
|
|
3384
3363
|
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C(this.clonePosition(), this.clonePosition()));
|
|
3385
3364
|
this.bumpSpace();
|
|
3386
3365
|
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3387
3366
|
if (h.err)
|
|
3388
3367
|
return h;
|
|
3389
|
-
this.bumpSpace(),
|
|
3368
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), S = h.val;
|
|
3390
3369
|
}
|
|
3391
|
-
var w = this.tryParsePluralOrSelectOptions(t, a,
|
|
3370
|
+
var w = this.tryParsePluralOrSelectOptions(t, a, n, O);
|
|
3392
3371
|
if (w.err)
|
|
3393
3372
|
return w;
|
|
3394
3373
|
var m = this.tryParseArgumentClose(o);
|
|
@@ -3397,17 +3376,17 @@ var Oo = (
|
|
|
3397
3376
|
var N = C(o, this.clonePosition());
|
|
3398
3377
|
return a === "select" ? {
|
|
3399
3378
|
val: {
|
|
3400
|
-
type:
|
|
3401
|
-
value:
|
|
3402
|
-
options:
|
|
3379
|
+
type: I.select,
|
|
3380
|
+
value: r,
|
|
3381
|
+
options: $t(w.val),
|
|
3403
3382
|
location: N
|
|
3404
3383
|
},
|
|
3405
3384
|
err: null
|
|
3406
3385
|
} : {
|
|
3407
3386
|
val: {
|
|
3408
|
-
type:
|
|
3409
|
-
value:
|
|
3410
|
-
options:
|
|
3387
|
+
type: I.plural,
|
|
3388
|
+
value: r,
|
|
3389
|
+
options: $t(w.val),
|
|
3411
3390
|
offset: S,
|
|
3412
3391
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3413
3392
|
location: N
|
|
@@ -3421,9 +3400,9 @@ var Oo = (
|
|
|
3421
3400
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3422
3401
|
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, C(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3423
3402
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3424
|
-
for (var t = 0,
|
|
3425
|
-
var
|
|
3426
|
-
switch (
|
|
3403
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3404
|
+
var r = this.char();
|
|
3405
|
+
switch (r) {
|
|
3427
3406
|
case 39: {
|
|
3428
3407
|
this.bump();
|
|
3429
3408
|
var o = this.clonePosition();
|
|
@@ -3441,7 +3420,7 @@ var Oo = (
|
|
|
3441
3420
|
t -= 1;
|
|
3442
3421
|
else
|
|
3443
3422
|
return {
|
|
3444
|
-
val: this.message.slice(
|
|
3423
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3445
3424
|
err: null
|
|
3446
3425
|
};
|
|
3447
3426
|
break;
|
|
@@ -3452,30 +3431,30 @@ var Oo = (
|
|
|
3452
3431
|
}
|
|
3453
3432
|
}
|
|
3454
3433
|
return {
|
|
3455
|
-
val: this.message.slice(
|
|
3434
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3456
3435
|
err: null
|
|
3457
3436
|
};
|
|
3458
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3459
|
-
var
|
|
3437
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3438
|
+
var r = [];
|
|
3460
3439
|
try {
|
|
3461
|
-
|
|
3440
|
+
r = lo(t);
|
|
3462
3441
|
} catch {
|
|
3463
|
-
return this.error(x.INVALID_NUMBER_SKELETON,
|
|
3442
|
+
return this.error(x.INVALID_NUMBER_SKELETON, n);
|
|
3464
3443
|
}
|
|
3465
3444
|
return {
|
|
3466
3445
|
val: {
|
|
3467
|
-
type:
|
|
3468
|
-
tokens:
|
|
3469
|
-
location:
|
|
3470
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3446
|
+
type: me.number,
|
|
3447
|
+
tokens: r,
|
|
3448
|
+
location: n,
|
|
3449
|
+
parsedOptions: this.shouldParseSkeletons ? po(r) : {}
|
|
3471
3450
|
},
|
|
3472
3451
|
err: null
|
|
3473
3452
|
};
|
|
3474
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3453
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, o) {
|
|
3475
3454
|
for (var i, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = o.value, c = o.location; ; ) {
|
|
3476
3455
|
if (l.length === 0) {
|
|
3477
3456
|
var h = this.clonePosition();
|
|
3478
|
-
if (
|
|
3457
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3479
3458
|
var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3480
3459
|
if (f.err)
|
|
3481
3460
|
return f;
|
|
@@ -3484,12 +3463,12 @@ var Oo = (
|
|
|
3484
3463
|
break;
|
|
3485
3464
|
}
|
|
3486
3465
|
if (u.has(l))
|
|
3487
|
-
return this.error(
|
|
3466
|
+
return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3488
3467
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3489
3468
|
var b = this.clonePosition();
|
|
3490
3469
|
if (!this.bumpIf("{"))
|
|
3491
|
-
return this.error(
|
|
3492
|
-
var m = this.parseMessage(t + 1,
|
|
3470
|
+
return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, C(this.clonePosition(), this.clonePosition()));
|
|
3471
|
+
var m = this.parseMessage(t + 1, n, r);
|
|
3493
3472
|
if (m.err)
|
|
3494
3473
|
return m;
|
|
3495
3474
|
var p = this.tryParseArgumentClose(b);
|
|
@@ -3503,10 +3482,10 @@ var Oo = (
|
|
|
3503
3482
|
}
|
|
3504
3483
|
]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, c = i.location;
|
|
3505
3484
|
}
|
|
3506
|
-
return a.length === 0 ? this.error(
|
|
3507
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3508
|
-
var
|
|
3509
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3485
|
+
return a.length === 0 ? this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, C(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, C(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3486
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3487
|
+
var r = 1, o = this.clonePosition();
|
|
3488
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3510
3489
|
for (var i = !1, s = 0; !this.isEOF(); ) {
|
|
3511
3490
|
var a = this.char();
|
|
3512
3491
|
if (a >= 48 && a <= 57)
|
|
@@ -3515,7 +3494,7 @@ var Oo = (
|
|
|
3515
3494
|
break;
|
|
3516
3495
|
}
|
|
3517
3496
|
var u = C(o, this.clonePosition());
|
|
3518
|
-
return i ? (s *=
|
|
3497
|
+
return i ? (s *= r, So(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3519
3498
|
}, e.prototype.offset = function() {
|
|
3520
3499
|
return this.position.offset;
|
|
3521
3500
|
}, e.prototype.isEOF = function() {
|
|
@@ -3530,17 +3509,17 @@ var Oo = (
|
|
|
3530
3509
|
var t = this.position.offset;
|
|
3531
3510
|
if (t >= this.message.length)
|
|
3532
3511
|
throw Error("out of bound");
|
|
3533
|
-
var
|
|
3534
|
-
if (
|
|
3512
|
+
var n = An(this.message, t);
|
|
3513
|
+
if (n === void 0)
|
|
3535
3514
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3536
|
-
return
|
|
3537
|
-
}, e.prototype.error = function(t,
|
|
3515
|
+
return n;
|
|
3516
|
+
}, e.prototype.error = function(t, n) {
|
|
3538
3517
|
return {
|
|
3539
3518
|
val: null,
|
|
3540
3519
|
err: {
|
|
3541
3520
|
kind: t,
|
|
3542
3521
|
message: this.message,
|
|
3543
|
-
location:
|
|
3522
|
+
location: n
|
|
3544
3523
|
}
|
|
3545
3524
|
};
|
|
3546
3525
|
}, e.prototype.bump = function() {
|
|
@@ -3549,129 +3528,129 @@ var Oo = (
|
|
|
3549
3528
|
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);
|
|
3550
3529
|
}
|
|
3551
3530
|
}, e.prototype.bumpIf = function(t) {
|
|
3552
|
-
if (
|
|
3553
|
-
for (var
|
|
3531
|
+
if (Ft(this.message, t, this.offset())) {
|
|
3532
|
+
for (var n = 0; n < t.length; n++)
|
|
3554
3533
|
this.bump();
|
|
3555
3534
|
return !0;
|
|
3556
3535
|
}
|
|
3557
3536
|
return !1;
|
|
3558
3537
|
}, e.prototype.bumpUntil = function(t) {
|
|
3559
|
-
var
|
|
3560
|
-
return
|
|
3538
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3539
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3561
3540
|
}, e.prototype.bumpTo = function(t) {
|
|
3562
3541
|
if (this.offset() > t)
|
|
3563
3542
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3564
3543
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3565
|
-
var
|
|
3566
|
-
if (
|
|
3544
|
+
var n = this.offset();
|
|
3545
|
+
if (n === t)
|
|
3567
3546
|
break;
|
|
3568
|
-
if (
|
|
3547
|
+
if (n > t)
|
|
3569
3548
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3570
3549
|
if (this.bump(), this.isEOF())
|
|
3571
3550
|
break;
|
|
3572
3551
|
}
|
|
3573
3552
|
}, e.prototype.bumpSpace = function() {
|
|
3574
|
-
for (; !this.isEOF() &&
|
|
3553
|
+
for (; !this.isEOF() && Mn(this.char()); )
|
|
3575
3554
|
this.bump();
|
|
3576
3555
|
}, e.prototype.peek = function() {
|
|
3577
3556
|
if (this.isEOF())
|
|
3578
3557
|
return null;
|
|
3579
|
-
var t = this.char(),
|
|
3580
|
-
return
|
|
3558
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3559
|
+
return r ?? null;
|
|
3581
3560
|
}, e;
|
|
3582
3561
|
}()
|
|
3583
3562
|
);
|
|
3584
|
-
function
|
|
3563
|
+
function ct(e) {
|
|
3585
3564
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3586
3565
|
}
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3566
|
+
function Ho(e) {
|
|
3567
|
+
return ct(e) || e === 47;
|
|
3589
3568
|
}
|
|
3590
|
-
function
|
|
3569
|
+
function Io(e) {
|
|
3591
3570
|
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;
|
|
3592
3571
|
}
|
|
3593
|
-
function
|
|
3572
|
+
function Mn(e) {
|
|
3594
3573
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3595
3574
|
}
|
|
3596
|
-
function
|
|
3575
|
+
function Oo(e) {
|
|
3597
3576
|
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;
|
|
3598
3577
|
}
|
|
3599
|
-
function
|
|
3578
|
+
function ht(e) {
|
|
3600
3579
|
e.forEach(function(t) {
|
|
3601
|
-
if (delete t.location,
|
|
3602
|
-
for (var
|
|
3603
|
-
delete t.options[
|
|
3580
|
+
if (delete t.location, yn(t) || _n(t))
|
|
3581
|
+
for (var n in t.options)
|
|
3582
|
+
delete t.options[n].location, ht(t.options[n].value);
|
|
3604
3583
|
else
|
|
3605
|
-
|
|
3584
|
+
bn(t) && En(t.style) || (gn(t) || vn(t)) && st(t.style) ? delete t.style.location : Bn(t) && ht(t.children);
|
|
3606
3585
|
});
|
|
3607
3586
|
}
|
|
3608
|
-
function
|
|
3609
|
-
t === void 0 && (t = {}), t =
|
|
3610
|
-
var
|
|
3611
|
-
if (
|
|
3612
|
-
var
|
|
3613
|
-
throw
|
|
3587
|
+
function No(e, t) {
|
|
3588
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3589
|
+
var n = new Po(e, t).parse();
|
|
3590
|
+
if (n.err) {
|
|
3591
|
+
var r = SyntaxError(x[n.err.kind]);
|
|
3592
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3614
3593
|
}
|
|
3615
|
-
return t?.captureLocation ||
|
|
3594
|
+
return t?.captureLocation || ht(n.val), n.val;
|
|
3616
3595
|
}
|
|
3617
|
-
var
|
|
3596
|
+
var be;
|
|
3618
3597
|
(function(e) {
|
|
3619
3598
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3620
|
-
})(
|
|
3621
|
-
var
|
|
3599
|
+
})(be || (be = {}));
|
|
3600
|
+
var Ge = (
|
|
3622
3601
|
/** @class */
|
|
3623
3602
|
function(e) {
|
|
3624
|
-
|
|
3625
|
-
function t(
|
|
3626
|
-
var i = e.call(this,
|
|
3627
|
-
return i.code =
|
|
3603
|
+
ne(t, e);
|
|
3604
|
+
function t(n, r, o) {
|
|
3605
|
+
var i = e.call(this, n) || this;
|
|
3606
|
+
return i.code = r, i.originalMessage = o, i;
|
|
3628
3607
|
}
|
|
3629
3608
|
return t.prototype.toString = function() {
|
|
3630
3609
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3631
3610
|
}, t;
|
|
3632
3611
|
}(Error)
|
|
3633
|
-
),
|
|
3612
|
+
), Dt = (
|
|
3634
3613
|
/** @class */
|
|
3635
3614
|
function(e) {
|
|
3636
|
-
|
|
3637
|
-
function t(
|
|
3638
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3615
|
+
ne(t, e);
|
|
3616
|
+
function t(n, r, o, i) {
|
|
3617
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), be.INVALID_VALUE, i) || this;
|
|
3639
3618
|
}
|
|
3640
3619
|
return t;
|
|
3641
|
-
}(
|
|
3642
|
-
),
|
|
3620
|
+
}(Ge)
|
|
3621
|
+
), Lo = (
|
|
3643
3622
|
/** @class */
|
|
3644
3623
|
function(e) {
|
|
3645
|
-
|
|
3646
|
-
function t(
|
|
3647
|
-
return e.call(this, 'Value for "'.concat(
|
|
3624
|
+
ne(t, e);
|
|
3625
|
+
function t(n, r, o) {
|
|
3626
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), be.INVALID_VALUE, o) || this;
|
|
3648
3627
|
}
|
|
3649
3628
|
return t;
|
|
3650
|
-
}(
|
|
3651
|
-
),
|
|
3629
|
+
}(Ge)
|
|
3630
|
+
), Ro = (
|
|
3652
3631
|
/** @class */
|
|
3653
3632
|
function(e) {
|
|
3654
|
-
|
|
3655
|
-
function t(
|
|
3656
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3633
|
+
ne(t, e);
|
|
3634
|
+
function t(n, r) {
|
|
3635
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), be.MISSING_VALUE, r) || this;
|
|
3657
3636
|
}
|
|
3658
3637
|
return t;
|
|
3659
|
-
}(
|
|
3638
|
+
}(Ge)
|
|
3660
3639
|
), k;
|
|
3661
3640
|
(function(e) {
|
|
3662
3641
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3663
3642
|
})(k || (k = {}));
|
|
3664
|
-
function
|
|
3665
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3666
|
-
var
|
|
3667
|
-
return !
|
|
3643
|
+
function Fo(e) {
|
|
3644
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3645
|
+
var r = t[t.length - 1];
|
|
3646
|
+
return !r || r.type !== k.literal || n.type !== k.literal ? t.push(n) : r.value += n.value, t;
|
|
3668
3647
|
}, []);
|
|
3669
3648
|
}
|
|
3670
|
-
function
|
|
3649
|
+
function $o(e) {
|
|
3671
3650
|
return typeof e == "function";
|
|
3672
3651
|
}
|
|
3673
|
-
function Ne(e, t,
|
|
3674
|
-
if (e.length === 1 &&
|
|
3652
|
+
function Ne(e, t, n, r, o, i, s) {
|
|
3653
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3675
3654
|
return [
|
|
3676
3655
|
{
|
|
3677
3656
|
type: k.literal,
|
|
@@ -3680,60 +3659,60 @@ function Ne(e, t, r, n, o, i, s) {
|
|
|
3680
3659
|
];
|
|
3681
3660
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3682
3661
|
var c = l[u];
|
|
3683
|
-
if (
|
|
3662
|
+
if (Ot(c)) {
|
|
3684
3663
|
a.push({
|
|
3685
3664
|
type: k.literal,
|
|
3686
3665
|
value: c.value
|
|
3687
3666
|
});
|
|
3688
3667
|
continue;
|
|
3689
3668
|
}
|
|
3690
|
-
if (
|
|
3669
|
+
if (io(c)) {
|
|
3691
3670
|
typeof i == "number" && a.push({
|
|
3692
3671
|
type: k.literal,
|
|
3693
|
-
value:
|
|
3672
|
+
value: n.getNumberFormat(t).format(i)
|
|
3694
3673
|
});
|
|
3695
3674
|
continue;
|
|
3696
3675
|
}
|
|
3697
3676
|
var h = c.value;
|
|
3698
3677
|
if (!(o && h in o))
|
|
3699
|
-
throw new
|
|
3678
|
+
throw new Ro(h, s);
|
|
3700
3679
|
var f = o[h];
|
|
3701
|
-
if (
|
|
3680
|
+
if (oo(c)) {
|
|
3702
3681
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3703
3682
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3704
3683
|
value: f
|
|
3705
3684
|
});
|
|
3706
3685
|
continue;
|
|
3707
3686
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var b = typeof c.style == "string" ?
|
|
3687
|
+
if (gn(c)) {
|
|
3688
|
+
var b = typeof c.style == "string" ? r.date[c.style] : st(c.style) ? c.style.parsedOptions : void 0;
|
|
3710
3689
|
a.push({
|
|
3711
3690
|
type: k.literal,
|
|
3712
|
-
value:
|
|
3691
|
+
value: n.getDateTimeFormat(t, b).format(f)
|
|
3713
3692
|
});
|
|
3714
3693
|
continue;
|
|
3715
3694
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var b = typeof c.style == "string" ?
|
|
3695
|
+
if (vn(c)) {
|
|
3696
|
+
var b = typeof c.style == "string" ? r.time[c.style] : st(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3718
3697
|
a.push({
|
|
3719
3698
|
type: k.literal,
|
|
3720
|
-
value:
|
|
3699
|
+
value: n.getDateTimeFormat(t, b).format(f)
|
|
3721
3700
|
});
|
|
3722
3701
|
continue;
|
|
3723
3702
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var b = typeof c.style == "string" ?
|
|
3703
|
+
if (bn(c)) {
|
|
3704
|
+
var b = typeof c.style == "string" ? r.number[c.style] : En(c.style) ? c.style.parsedOptions : void 0;
|
|
3726
3705
|
b && b.scale && (f = f * (b.scale || 1)), a.push({
|
|
3727
3706
|
type: k.literal,
|
|
3728
|
-
value:
|
|
3707
|
+
value: n.getNumberFormat(t, b).format(f)
|
|
3729
3708
|
});
|
|
3730
3709
|
continue;
|
|
3731
3710
|
}
|
|
3732
|
-
if (
|
|
3711
|
+
if (Bn(c)) {
|
|
3733
3712
|
var m = c.children, p = c.value, E = o[p];
|
|
3734
|
-
if (
|
|
3735
|
-
throw new
|
|
3736
|
-
var _ = Ne(m, t,
|
|
3713
|
+
if (!$o(E))
|
|
3714
|
+
throw new Lo(p, "function", s);
|
|
3715
|
+
var _ = Ne(m, t, n, r, o, i), y = E(_.map(function(S) {
|
|
3737
3716
|
return S.value;
|
|
3738
3717
|
}));
|
|
3739
3718
|
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(S) {
|
|
@@ -3743,92 +3722,92 @@ function Ne(e, t, r, n, o, i, s) {
|
|
|
3743
3722
|
};
|
|
3744
3723
|
}));
|
|
3745
3724
|
}
|
|
3746
|
-
if (
|
|
3747
|
-
var
|
|
3748
|
-
if (!
|
|
3749
|
-
throw new
|
|
3750
|
-
a.push.apply(a, Ne(
|
|
3725
|
+
if (yn(c)) {
|
|
3726
|
+
var M = c.options[f] || c.options.other;
|
|
3727
|
+
if (!M)
|
|
3728
|
+
throw new Dt(c.value, f, Object.keys(c.options), s);
|
|
3729
|
+
a.push.apply(a, Ne(M.value, t, n, r, o));
|
|
3751
3730
|
continue;
|
|
3752
3731
|
}
|
|
3753
|
-
if (
|
|
3754
|
-
var
|
|
3755
|
-
if (!
|
|
3732
|
+
if (_n(c)) {
|
|
3733
|
+
var M = c.options["=".concat(f)];
|
|
3734
|
+
if (!M) {
|
|
3756
3735
|
if (!Intl.PluralRules)
|
|
3757
|
-
throw new
|
|
3736
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
|
3758
3737
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3759
|
-
`,
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3738
|
+
`, be.MISSING_INTL_API, s);
|
|
3739
|
+
var O = n.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
|
|
3740
|
+
M = c.options[O] || c.options.other;
|
|
3762
3741
|
}
|
|
3763
|
-
if (!
|
|
3764
|
-
throw new
|
|
3765
|
-
a.push.apply(a, Ne(
|
|
3742
|
+
if (!M)
|
|
3743
|
+
throw new Dt(c.value, f, Object.keys(c.options), s);
|
|
3744
|
+
a.push.apply(a, Ne(M.value, t, n, r, o, f - (c.offset || 0)));
|
|
3766
3745
|
continue;
|
|
3767
3746
|
}
|
|
3768
3747
|
}
|
|
3769
|
-
return
|
|
3748
|
+
return Fo(a);
|
|
3770
3749
|
}
|
|
3771
|
-
function
|
|
3772
|
-
return t ?
|
|
3773
|
-
return r
|
|
3750
|
+
function Uo(e, t) {
|
|
3751
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3752
|
+
return n[r] = A(A({}, e[r]), t[r] || {}), n;
|
|
3774
3753
|
}, {})) : e;
|
|
3775
3754
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return t ? Object.keys(e).reduce(function(
|
|
3778
|
-
return r
|
|
3779
|
-
},
|
|
3755
|
+
function Do(e, t) {
|
|
3756
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3757
|
+
return n[r] = Uo(e[r], t[r]), n;
|
|
3758
|
+
}, A({}, e)) : e;
|
|
3780
3759
|
}
|
|
3781
|
-
function
|
|
3760
|
+
function Qe(e) {
|
|
3782
3761
|
return {
|
|
3783
3762
|
create: function() {
|
|
3784
3763
|
return {
|
|
3785
3764
|
get: function(t) {
|
|
3786
3765
|
return e[t];
|
|
3787
3766
|
},
|
|
3788
|
-
set: function(t,
|
|
3789
|
-
e[t] =
|
|
3767
|
+
set: function(t, n) {
|
|
3768
|
+
e[t] = n;
|
|
3790
3769
|
}
|
|
3791
3770
|
};
|
|
3792
3771
|
}
|
|
3793
3772
|
};
|
|
3794
3773
|
}
|
|
3795
|
-
function
|
|
3774
|
+
function Go(e) {
|
|
3796
3775
|
return e === void 0 && (e = {
|
|
3797
3776
|
number: {},
|
|
3798
3777
|
dateTime: {},
|
|
3799
3778
|
pluralRules: {}
|
|
3800
3779
|
}), {
|
|
3801
|
-
getNumberFormat:
|
|
3802
|
-
for (var t,
|
|
3803
|
-
r
|
|
3804
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3780
|
+
getNumberFormat: Xe(function() {
|
|
3781
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3782
|
+
n[r] = arguments[r];
|
|
3783
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], n, !1)))();
|
|
3805
3784
|
}, {
|
|
3806
|
-
cache:
|
|
3807
|
-
strategy:
|
|
3785
|
+
cache: Qe(e.number),
|
|
3786
|
+
strategy: Ze.variadic
|
|
3808
3787
|
}),
|
|
3809
|
-
getDateTimeFormat:
|
|
3810
|
-
for (var t,
|
|
3811
|
-
r
|
|
3812
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3788
|
+
getDateTimeFormat: Xe(function() {
|
|
3789
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3790
|
+
n[r] = arguments[r];
|
|
3791
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], n, !1)))();
|
|
3813
3792
|
}, {
|
|
3814
|
-
cache:
|
|
3815
|
-
strategy:
|
|
3793
|
+
cache: Qe(e.dateTime),
|
|
3794
|
+
strategy: Ze.variadic
|
|
3816
3795
|
}),
|
|
3817
|
-
getPluralRules:
|
|
3818
|
-
for (var t,
|
|
3819
|
-
r
|
|
3820
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3796
|
+
getPluralRules: Xe(function() {
|
|
3797
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3798
|
+
n[r] = arguments[r];
|
|
3799
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], n, !1)))();
|
|
3821
3800
|
}, {
|
|
3822
|
-
cache:
|
|
3823
|
-
strategy:
|
|
3801
|
+
cache: Qe(e.pluralRules),
|
|
3802
|
+
strategy: Ze.variadic
|
|
3824
3803
|
})
|
|
3825
3804
|
};
|
|
3826
3805
|
}
|
|
3827
|
-
var
|
|
3806
|
+
var ko = (
|
|
3828
3807
|
/** @class */
|
|
3829
3808
|
function() {
|
|
3830
|
-
function e(t,
|
|
3831
|
-
|
|
3809
|
+
function e(t, n, r, o) {
|
|
3810
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3832
3811
|
var i = this;
|
|
3833
3812
|
if (this.formatterCache = {
|
|
3834
3813
|
number: {},
|
|
@@ -3851,18 +3830,18 @@ var Wo = (
|
|
|
3851
3830
|
};
|
|
3852
3831
|
}, this.getAst = function() {
|
|
3853
3832
|
return i.ast;
|
|
3854
|
-
}, this.locales =
|
|
3833
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3855
3834
|
if (this.message = t, !e.__parse)
|
|
3856
3835
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3857
3836
|
var s = o || {};
|
|
3858
3837
|
s.formatters;
|
|
3859
|
-
var a =
|
|
3860
|
-
this.ast = e.__parse(t,
|
|
3838
|
+
var a = _r(s, ["formatters"]);
|
|
3839
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3861
3840
|
} else
|
|
3862
3841
|
this.ast = t;
|
|
3863
3842
|
if (!Array.isArray(this.ast))
|
|
3864
3843
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3865
|
-
this.formats =
|
|
3844
|
+
this.formats = Do(e.formats, r), this.formatters = o && o.formatters || Go(this.formatterCache);
|
|
3866
3845
|
}
|
|
3867
3846
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3868
3847
|
get: function() {
|
|
@@ -3872,10 +3851,10 @@ var Wo = (
|
|
|
3872
3851
|
configurable: !0
|
|
3873
3852
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3874
3853
|
if (!(typeof Intl.Locale > "u")) {
|
|
3875
|
-
var
|
|
3876
|
-
return
|
|
3854
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3855
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3877
3856
|
}
|
|
3878
|
-
}, e.__parse =
|
|
3857
|
+
}, e.__parse = No, e.formats = {
|
|
3879
3858
|
number: {
|
|
3880
3859
|
integer: {
|
|
3881
3860
|
maximumFractionDigits: 0
|
|
@@ -3936,113 +3915,113 @@ var Wo = (
|
|
|
3936
3915
|
}, e;
|
|
3937
3916
|
}()
|
|
3938
3917
|
);
|
|
3939
|
-
function
|
|
3918
|
+
function jo(e, t) {
|
|
3940
3919
|
if (t == null)
|
|
3941
3920
|
return;
|
|
3942
3921
|
if (t in e)
|
|
3943
3922
|
return e[t];
|
|
3944
|
-
const
|
|
3945
|
-
let
|
|
3946
|
-
for (let o = 0; o <
|
|
3947
|
-
if (typeof
|
|
3923
|
+
const n = t.split(".");
|
|
3924
|
+
let r = e;
|
|
3925
|
+
for (let o = 0; o < n.length; o++)
|
|
3926
|
+
if (typeof r == "object") {
|
|
3948
3927
|
if (o > 0) {
|
|
3949
|
-
const i =
|
|
3950
|
-
if (i in
|
|
3951
|
-
|
|
3928
|
+
const i = n.slice(o, n.length).join(".");
|
|
3929
|
+
if (i in r) {
|
|
3930
|
+
r = r[i];
|
|
3952
3931
|
break;
|
|
3953
3932
|
}
|
|
3954
3933
|
}
|
|
3955
|
-
|
|
3934
|
+
r = r[n[o]];
|
|
3956
3935
|
} else
|
|
3957
|
-
|
|
3958
|
-
return
|
|
3936
|
+
r = void 0;
|
|
3937
|
+
return r;
|
|
3959
3938
|
}
|
|
3960
|
-
const
|
|
3939
|
+
const re = {}, Wo = (e, t, n) => n && (t in re || (re[t] = {}), e in re[t] || (re[t][e] = n), n), Pn = (e, t) => {
|
|
3961
3940
|
if (t == null)
|
|
3962
3941
|
return;
|
|
3963
|
-
if (t in
|
|
3964
|
-
return
|
|
3965
|
-
const
|
|
3966
|
-
for (let
|
|
3967
|
-
const o = r
|
|
3942
|
+
if (t in re && e in re[t])
|
|
3943
|
+
return re[t][e];
|
|
3944
|
+
const n = ke(t);
|
|
3945
|
+
for (let r = 0; r < n.length; r++) {
|
|
3946
|
+
const o = n[r], i = zo(o, e);
|
|
3968
3947
|
if (i)
|
|
3969
|
-
return
|
|
3948
|
+
return Wo(e, t, i);
|
|
3970
3949
|
}
|
|
3971
3950
|
};
|
|
3972
|
-
let
|
|
3973
|
-
const Se =
|
|
3974
|
-
function
|
|
3975
|
-
return
|
|
3951
|
+
let vt;
|
|
3952
|
+
const Se = De({});
|
|
3953
|
+
function Vo(e) {
|
|
3954
|
+
return vt[e] || null;
|
|
3976
3955
|
}
|
|
3977
|
-
function
|
|
3978
|
-
return e in
|
|
3956
|
+
function Hn(e) {
|
|
3957
|
+
return e in vt;
|
|
3979
3958
|
}
|
|
3980
|
-
function
|
|
3981
|
-
if (!
|
|
3959
|
+
function zo(e, t) {
|
|
3960
|
+
if (!Hn(e))
|
|
3982
3961
|
return null;
|
|
3983
|
-
const
|
|
3984
|
-
return
|
|
3962
|
+
const n = Vo(e);
|
|
3963
|
+
return jo(n, t);
|
|
3985
3964
|
}
|
|
3986
|
-
function
|
|
3965
|
+
function Xo(e) {
|
|
3987
3966
|
if (e == null)
|
|
3988
3967
|
return;
|
|
3989
|
-
const t =
|
|
3990
|
-
for (let
|
|
3991
|
-
const
|
|
3992
|
-
if (
|
|
3993
|
-
return
|
|
3968
|
+
const t = ke(e);
|
|
3969
|
+
for (let n = 0; n < t.length; n++) {
|
|
3970
|
+
const r = t[n];
|
|
3971
|
+
if (Hn(r))
|
|
3972
|
+
return r;
|
|
3994
3973
|
}
|
|
3995
3974
|
}
|
|
3996
|
-
function
|
|
3997
|
-
delete
|
|
3975
|
+
function In(e, ...t) {
|
|
3976
|
+
delete re[e], Se.update((n) => (n[e] = Jr.all([n[e] || {}, ...t]), n));
|
|
3998
3977
|
}
|
|
3999
|
-
|
|
3978
|
+
ve(
|
|
4000
3979
|
[Se],
|
|
4001
3980
|
([e]) => Object.keys(e)
|
|
4002
3981
|
);
|
|
4003
|
-
Se.subscribe((e) =>
|
|
3982
|
+
Se.subscribe((e) => vt = e);
|
|
4004
3983
|
const Le = {};
|
|
4005
|
-
function
|
|
3984
|
+
function Zo(e, t) {
|
|
4006
3985
|
Le[e].delete(t), Le[e].size === 0 && delete Le[e];
|
|
4007
3986
|
}
|
|
4008
|
-
function
|
|
3987
|
+
function On(e) {
|
|
4009
3988
|
return Le[e];
|
|
4010
3989
|
}
|
|
4011
|
-
function
|
|
4012
|
-
return
|
|
4013
|
-
const
|
|
4014
|
-
return [t,
|
|
3990
|
+
function qo(e) {
|
|
3991
|
+
return ke(e).map((t) => {
|
|
3992
|
+
const n = On(t);
|
|
3993
|
+
return [t, n ? [...n] : []];
|
|
4015
3994
|
}).filter(([, t]) => t.length > 0);
|
|
4016
3995
|
}
|
|
4017
|
-
function
|
|
4018
|
-
return e == null ? !1 :
|
|
3996
|
+
function ft(e) {
|
|
3997
|
+
return e == null ? !1 : ke(e).some(
|
|
4019
3998
|
(t) => {
|
|
4020
|
-
var
|
|
4021
|
-
return (
|
|
3999
|
+
var n;
|
|
4000
|
+
return (n = On(t)) == null ? void 0 : n.size;
|
|
4022
4001
|
}
|
|
4023
4002
|
);
|
|
4024
4003
|
}
|
|
4025
|
-
function
|
|
4004
|
+
function Qo(e, t) {
|
|
4026
4005
|
return Promise.all(
|
|
4027
|
-
t.map((
|
|
4028
|
-
).then((
|
|
4029
|
-
}
|
|
4030
|
-
const
|
|
4031
|
-
function
|
|
4032
|
-
if (!
|
|
4033
|
-
return e in
|
|
4034
|
-
const t =
|
|
4035
|
-
return
|
|
4006
|
+
t.map((r) => (Zo(e, r), r().then((o) => o.default || o)))
|
|
4007
|
+
).then((r) => In(e, ...r));
|
|
4008
|
+
}
|
|
4009
|
+
const Be = {};
|
|
4010
|
+
function Nn(e) {
|
|
4011
|
+
if (!ft(e))
|
|
4012
|
+
return e in Be ? Be[e] : Promise.resolve();
|
|
4013
|
+
const t = qo(e);
|
|
4014
|
+
return Be[e] = Promise.all(
|
|
4036
4015
|
t.map(
|
|
4037
|
-
([
|
|
4016
|
+
([n, r]) => Qo(n, r)
|
|
4038
4017
|
)
|
|
4039
4018
|
).then(() => {
|
|
4040
|
-
if (
|
|
4041
|
-
return
|
|
4042
|
-
delete
|
|
4043
|
-
}),
|
|
4019
|
+
if (ft(e))
|
|
4020
|
+
return Nn(e);
|
|
4021
|
+
delete Be[e];
|
|
4022
|
+
}), Be[e];
|
|
4044
4023
|
}
|
|
4045
|
-
const
|
|
4024
|
+
const Jo = {
|
|
4046
4025
|
number: {
|
|
4047
4026
|
scientific: { notation: "scientific" },
|
|
4048
4027
|
engineering: { notation: "engineering" },
|
|
@@ -4071,136 +4050,136 @@ const Ko = {
|
|
|
4071
4050
|
timeZoneName: "short"
|
|
4072
4051
|
}
|
|
4073
4052
|
}
|
|
4074
|
-
},
|
|
4053
|
+
}, Yo = {
|
|
4075
4054
|
fallbackLocale: null,
|
|
4076
4055
|
loadingDelay: 200,
|
|
4077
|
-
formats:
|
|
4056
|
+
formats: Jo,
|
|
4078
4057
|
warnOnMissingMessages: !0,
|
|
4079
4058
|
handleMissingMessage: void 0,
|
|
4080
4059
|
ignoreTag: !0
|
|
4081
|
-
},
|
|
4082
|
-
function
|
|
4083
|
-
return
|
|
4084
|
-
}
|
|
4085
|
-
const
|
|
4086
|
-
var
|
|
4087
|
-
for (var
|
|
4088
|
-
|
|
4089
|
-
if (
|
|
4090
|
-
for (var
|
|
4091
|
-
|
|
4060
|
+
}, Ko = Yo;
|
|
4061
|
+
function ge() {
|
|
4062
|
+
return Ko;
|
|
4063
|
+
}
|
|
4064
|
+
const Je = De(!1);
|
|
4065
|
+
var ei = Object.defineProperty, ti = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ii = (e, t) => {
|
|
4066
|
+
for (var n in t || (t = {}))
|
|
4067
|
+
ri.call(t, n) && kt(e, n, t[n]);
|
|
4068
|
+
if (Gt)
|
|
4069
|
+
for (var n of Gt(t))
|
|
4070
|
+
oi.call(t, n) && kt(e, n, t[n]);
|
|
4092
4071
|
return e;
|
|
4093
|
-
},
|
|
4094
|
-
let
|
|
4095
|
-
const Fe =
|
|
4096
|
-
function
|
|
4097
|
-
return e.split("-").map((t,
|
|
4072
|
+
}, si = (e, t) => ti(e, ni(t));
|
|
4073
|
+
let dt;
|
|
4074
|
+
const Fe = De(null);
|
|
4075
|
+
function jt(e) {
|
|
4076
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4098
4077
|
}
|
|
4099
|
-
function
|
|
4100
|
-
const
|
|
4101
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4078
|
+
function ke(e, t = ge().fallbackLocale) {
|
|
4079
|
+
const n = jt(e);
|
|
4080
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...jt(t)])] : n;
|
|
4102
4081
|
}
|
|
4103
4082
|
function se() {
|
|
4104
|
-
return
|
|
4083
|
+
return dt ?? void 0;
|
|
4105
4084
|
}
|
|
4106
4085
|
Fe.subscribe((e) => {
|
|
4107
|
-
|
|
4086
|
+
dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4108
4087
|
});
|
|
4109
|
-
const
|
|
4110
|
-
if (e &&
|
|
4111
|
-
const { loadingDelay: t } =
|
|
4112
|
-
let
|
|
4113
|
-
return typeof window < "u" && se() != null && t ?
|
|
4114
|
-
() =>
|
|
4088
|
+
const ai = (e) => {
|
|
4089
|
+
if (e && Xo(e) && ft(e)) {
|
|
4090
|
+
const { loadingDelay: t } = ge();
|
|
4091
|
+
let n;
|
|
4092
|
+
return typeof window < "u" && se() != null && t ? n = window.setTimeout(
|
|
4093
|
+
() => Je.set(!0),
|
|
4115
4094
|
t
|
|
4116
|
-
) :
|
|
4095
|
+
) : Je.set(!0), Nn(e).then(() => {
|
|
4117
4096
|
Fe.set(e);
|
|
4118
4097
|
}).finally(() => {
|
|
4119
|
-
clearTimeout(
|
|
4098
|
+
clearTimeout(n), Je.set(!1);
|
|
4120
4099
|
});
|
|
4121
4100
|
}
|
|
4122
4101
|
return Fe.set(e);
|
|
4123
|
-
},
|
|
4124
|
-
set:
|
|
4125
|
-
}),
|
|
4102
|
+
}, ye = si(ii({}, Fe), {
|
|
4103
|
+
set: ai
|
|
4104
|
+
}), je = (e) => {
|
|
4126
4105
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4127
|
-
return (
|
|
4128
|
-
const o = JSON.stringify(
|
|
4129
|
-
return o in t ? t[o] : t[o] = e(
|
|
4106
|
+
return (r) => {
|
|
4107
|
+
const o = JSON.stringify(r);
|
|
4108
|
+
return o in t ? t[o] : t[o] = e(r);
|
|
4130
4109
|
};
|
|
4131
4110
|
};
|
|
4132
|
-
var
|
|
4133
|
-
for (var
|
|
4134
|
-
|
|
4135
|
-
if (
|
|
4136
|
-
for (var
|
|
4137
|
-
|
|
4111
|
+
var ui = Object.defineProperty, $e = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, Wt = (e, t, n) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yt = (e, t) => {
|
|
4112
|
+
for (var n in t || (t = {}))
|
|
4113
|
+
Ln.call(t, n) && Wt(e, n, t[n]);
|
|
4114
|
+
if ($e)
|
|
4115
|
+
for (var n of $e(t))
|
|
4116
|
+
Rn.call(t, n) && Wt(e, n, t[n]);
|
|
4138
4117
|
return e;
|
|
4139
|
-
},
|
|
4140
|
-
var
|
|
4141
|
-
for (var
|
|
4142
|
-
|
|
4143
|
-
if (e != null &&
|
|
4144
|
-
for (var
|
|
4145
|
-
t.indexOf(
|
|
4146
|
-
return
|
|
4118
|
+
}, _e = (e, t) => {
|
|
4119
|
+
var n = {};
|
|
4120
|
+
for (var r in e)
|
|
4121
|
+
Ln.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4122
|
+
if (e != null && $e)
|
|
4123
|
+
for (var r of $e(e))
|
|
4124
|
+
t.indexOf(r) < 0 && Rn.call(e, r) && (n[r] = e[r]);
|
|
4125
|
+
return n;
|
|
4147
4126
|
};
|
|
4148
|
-
const
|
|
4149
|
-
const { formats:
|
|
4150
|
-
if (e in
|
|
4151
|
-
return
|
|
4127
|
+
const Ce = (e, t) => {
|
|
4128
|
+
const { formats: n } = ge();
|
|
4129
|
+
if (e in n && t in n[e])
|
|
4130
|
+
return n[e][t];
|
|
4152
4131
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4153
|
-
},
|
|
4132
|
+
}, li = je(
|
|
4154
4133
|
(e) => {
|
|
4155
|
-
var t = e, { locale:
|
|
4156
|
-
if (
|
|
4134
|
+
var t = e, { locale: n, format: r } = t, o = _e(t, ["locale", "format"]);
|
|
4135
|
+
if (n == null)
|
|
4157
4136
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4158
|
-
return
|
|
4137
|
+
return r && (o = Ce("number", r)), new Intl.NumberFormat(n, o);
|
|
4159
4138
|
}
|
|
4160
|
-
),
|
|
4139
|
+
), ci = je(
|
|
4161
4140
|
(e) => {
|
|
4162
|
-
var t = e, { locale:
|
|
4163
|
-
if (
|
|
4141
|
+
var t = e, { locale: n, format: r } = t, o = _e(t, ["locale", "format"]);
|
|
4142
|
+
if (n == null)
|
|
4164
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4165
|
-
return
|
|
4144
|
+
return r ? o = Ce("date", r) : Object.keys(o).length === 0 && (o = Ce("date", "short")), new Intl.DateTimeFormat(n, o);
|
|
4166
4145
|
}
|
|
4167
|
-
),
|
|
4146
|
+
), hi = je(
|
|
4168
4147
|
(e) => {
|
|
4169
|
-
var t = e, { locale:
|
|
4170
|
-
if (
|
|
4148
|
+
var t = e, { locale: n, format: r } = t, o = _e(t, ["locale", "format"]);
|
|
4149
|
+
if (n == null)
|
|
4171
4150
|
throw new Error(
|
|
4172
4151
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4173
4152
|
);
|
|
4174
|
-
return
|
|
4153
|
+
return r ? o = Ce("time", r) : Object.keys(o).length === 0 && (o = Ce("time", "short")), new Intl.DateTimeFormat(n, o);
|
|
4175
4154
|
}
|
|
4176
|
-
),
|
|
4155
|
+
), fi = (e = {}) => {
|
|
4177
4156
|
var t = e, {
|
|
4178
|
-
locale:
|
|
4179
|
-
} = t,
|
|
4157
|
+
locale: n = se()
|
|
4158
|
+
} = t, r = _e(t, [
|
|
4180
4159
|
"locale"
|
|
4181
4160
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4161
|
+
return li(yt({ locale: n }, r));
|
|
4162
|
+
}, di = (e = {}) => {
|
|
4184
4163
|
var t = e, {
|
|
4185
|
-
locale:
|
|
4186
|
-
} = t,
|
|
4164
|
+
locale: n = se()
|
|
4165
|
+
} = t, r = _e(t, [
|
|
4187
4166
|
"locale"
|
|
4188
4167
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4168
|
+
return ci(yt({ locale: n }, r));
|
|
4169
|
+
}, pi = (e = {}) => {
|
|
4191
4170
|
var t = e, {
|
|
4192
|
-
locale:
|
|
4193
|
-
} = t,
|
|
4171
|
+
locale: n = se()
|
|
4172
|
+
} = t, r = _e(t, [
|
|
4194
4173
|
"locale"
|
|
4195
4174
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4175
|
+
return hi(yt({ locale: n }, r));
|
|
4176
|
+
}, mi = je(
|
|
4198
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4199
|
-
(e, t = se()) => new
|
|
4200
|
-
ignoreTag:
|
|
4178
|
+
(e, t = se()) => new ko(e, t, ge().formats, {
|
|
4179
|
+
ignoreTag: ge().ignoreTag
|
|
4201
4180
|
})
|
|
4202
|
-
),
|
|
4203
|
-
var
|
|
4181
|
+
), bi = (e, t = {}) => {
|
|
4182
|
+
var n, r, o, i;
|
|
4204
4183
|
let s = t;
|
|
4205
4184
|
typeof e == "object" && (s = e, e = s.id);
|
|
4206
4185
|
const {
|
|
@@ -4212,9 +4191,9 @@ const we = (e, t) => {
|
|
|
4212
4191
|
throw new Error(
|
|
4213
4192
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4214
4193
|
);
|
|
4215
|
-
let c =
|
|
4194
|
+
let c = Pn(e, u);
|
|
4216
4195
|
if (!c)
|
|
4217
|
-
c = (i = (o = (
|
|
4196
|
+
c = (i = (o = (r = (n = ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
|
|
4218
4197
|
else if (typeof c != "string")
|
|
4219
4198
|
return console.warn(
|
|
4220
4199
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4223,7 +4202,7 @@ const we = (e, t) => {
|
|
|
4223
4202
|
return c;
|
|
4224
4203
|
let h = c;
|
|
4225
4204
|
try {
|
|
4226
|
-
h =
|
|
4205
|
+
h = mi(c, u).format(a);
|
|
4227
4206
|
} catch (f) {
|
|
4228
4207
|
f instanceof Error && console.warn(
|
|
4229
4208
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4231,20 +4210,20 @@ const we = (e, t) => {
|
|
|
4231
4210
|
);
|
|
4232
4211
|
}
|
|
4233
4212
|
return h;
|
|
4234
|
-
},
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
window.emWidgets = { topic:
|
|
4240
|
-
const
|
|
4241
|
-
function
|
|
4242
|
-
|
|
4243
|
-
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4246
|
-
}
|
|
4247
|
-
const
|
|
4213
|
+
}, gi = (e, t) => pi(t).format(e), vi = (e, t) => di(t).format(e), yi = (e, t) => fi(t).format(e), _i = (e, t = se()) => Pn(e, t), Bi = ve([ye, Se], () => bi);
|
|
4214
|
+
ve([ye], () => gi);
|
|
4215
|
+
ve([ye], () => vi);
|
|
4216
|
+
ve([ye], () => yi);
|
|
4217
|
+
ve([ye, Se], () => _i);
|
|
4218
|
+
window.emWidgets = { topic: Nr };
|
|
4219
|
+
const Ei = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4220
|
+
function Vt(e, t) {
|
|
4221
|
+
In(e, t);
|
|
4222
|
+
}
|
|
4223
|
+
function xi(e) {
|
|
4224
|
+
ye.set(e);
|
|
4225
|
+
}
|
|
4226
|
+
const zt = {
|
|
4248
4227
|
en: {
|
|
4249
4228
|
titleBonuses: "Active Bonuses",
|
|
4250
4229
|
bonusCode: "Do you have a bonus code?",
|
|
@@ -4378,70 +4357,70 @@ const Zt = {
|
|
|
4378
4357
|
bonusClaimErrorMessage: "Invalid bonus"
|
|
4379
4358
|
}
|
|
4380
4359
|
};
|
|
4381
|
-
function
|
|
4360
|
+
function wi(e, t) {
|
|
4382
4361
|
if (e) {
|
|
4383
|
-
const
|
|
4384
|
-
|
|
4362
|
+
const n = document.createElement("style");
|
|
4363
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4385
4364
|
}
|
|
4386
4365
|
}
|
|
4387
|
-
function
|
|
4388
|
-
const
|
|
4389
|
-
fetch(
|
|
4366
|
+
function Ci(e, t) {
|
|
4367
|
+
const n = new URL(t);
|
|
4368
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4390
4369
|
const o = document.createElement("style");
|
|
4391
|
-
o.innerHTML =
|
|
4392
|
-
}).catch((
|
|
4393
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4370
|
+
o.innerHTML = r, e && e.appendChild(o);
|
|
4371
|
+
}).catch((r) => {
|
|
4372
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4394
4373
|
});
|
|
4395
4374
|
}
|
|
4396
|
-
function
|
|
4375
|
+
function Si(e, t, n) {
|
|
4397
4376
|
if (window.emMessageBus) {
|
|
4398
|
-
const
|
|
4377
|
+
const r = document.createElement("style");
|
|
4399
4378
|
window.emMessageBus.subscribe(t, (o) => {
|
|
4400
|
-
|
|
4379
|
+
r.innerHTML = o, e && e.appendChild(r);
|
|
4401
4380
|
});
|
|
4402
4381
|
}
|
|
4403
4382
|
}
|
|
4404
4383
|
if (typeof window < "u") {
|
|
4405
4384
|
let e = function(t) {
|
|
4406
|
-
return function(...
|
|
4385
|
+
return function(...n) {
|
|
4407
4386
|
try {
|
|
4408
|
-
return t.apply(this,
|
|
4409
|
-
} catch (
|
|
4410
|
-
if (
|
|
4387
|
+
return t.apply(this, n);
|
|
4388
|
+
} catch (r) {
|
|
4389
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
4411
4390
|
return !1;
|
|
4412
|
-
throw
|
|
4391
|
+
throw r;
|
|
4413
4392
|
}
|
|
4414
4393
|
};
|
|
4415
4394
|
};
|
|
4416
|
-
customElements.define = e(customElements.define), import("./PlayerBonusCard-
|
|
4395
|
+
customElements.define = e(customElements.define), import("./PlayerBonusCard-DDx1MfSi.js").then(({ default: t }) => {
|
|
4417
4396
|
!customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
|
|
4418
4397
|
});
|
|
4419
4398
|
}
|
|
4420
|
-
function
|
|
4421
|
-
|
|
4399
|
+
function Ai(e) {
|
|
4400
|
+
er(e, "svelte-44vwrd", '.ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4422
4401
|
}
|
|
4423
|
-
function
|
|
4424
|
-
const
|
|
4425
|
-
return
|
|
4402
|
+
function Xt(e, t, n) {
|
|
4403
|
+
const r = e.slice();
|
|
4404
|
+
return r[50] = t[n], r[52] = n, r;
|
|
4426
4405
|
}
|
|
4427
|
-
function
|
|
4428
|
-
const
|
|
4429
|
-
return
|
|
4406
|
+
function Zt(e, t, n) {
|
|
4407
|
+
const r = e.slice();
|
|
4408
|
+
return r[53] = t[n], r;
|
|
4430
4409
|
}
|
|
4431
|
-
function
|
|
4432
|
-
let t,
|
|
4410
|
+
function Ti(e) {
|
|
4411
|
+
let t, n, r, o, i, s, a, u, l, c, h = (
|
|
4433
4412
|
/*$_*/
|
|
4434
4413
|
e[19]("titleBonuses") + ""
|
|
4435
4414
|
), f, b, m;
|
|
4436
4415
|
return {
|
|
4437
4416
|
c() {
|
|
4438
|
-
t =
|
|
4417
|
+
t = T("div"), n = ue("svg"), r = ue("defs"), o = ue("style"), i = F(`.aaa {
|
|
4439
4418
|
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
|
|
4440
4419
|
}
|
|
4441
|
-
`), s = ue("g"), a = ue("g"), u = ue("path"), l = j(), c =
|
|
4420
|
+
`), s = ue("g"), a = ue("g"), u = ue("path"), l = j(), c = T("h2"), f = F(h), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "width", "15"), B(n, "height", "15"), B(n, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
|
|
4442
4421
|
},
|
|
4443
4422
|
m(p, E) {
|
|
4444
|
-
D(p, t, E), v(t,
|
|
4423
|
+
D(p, t, E), v(t, n), v(n, r), v(r, o), v(o, i), v(n, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, f), b || (m = Q(
|
|
4445
4424
|
t,
|
|
4446
4425
|
"click",
|
|
4447
4426
|
/*click_handler*/
|
|
@@ -4451,147 +4430,147 @@ function Mi(e) {
|
|
|
4451
4430
|
p(p, E) {
|
|
4452
4431
|
E[0] & /*$_*/
|
|
4453
4432
|
524288 && h !== (h = /*$_*/
|
|
4454
|
-
p[19]("titleBonuses") + "") &&
|
|
4433
|
+
p[19]("titleBonuses") + "") && ee(f, h);
|
|
4455
4434
|
},
|
|
4456
4435
|
d(p) {
|
|
4457
|
-
p &&
|
|
4436
|
+
p && $(t), b = !1, m();
|
|
4458
4437
|
}
|
|
4459
4438
|
};
|
|
4460
4439
|
}
|
|
4461
|
-
function
|
|
4462
|
-
let t,
|
|
4440
|
+
function qt(e) {
|
|
4441
|
+
let t, n = (
|
|
4463
4442
|
/*$_*/
|
|
4464
4443
|
e[19]("invalidBonusCode") + ""
|
|
4465
|
-
),
|
|
4444
|
+
), r;
|
|
4466
4445
|
return {
|
|
4467
4446
|
c() {
|
|
4468
|
-
t =
|
|
4447
|
+
t = T("p"), r = F(n), B(t, "class", "InvalidBonusCodeMessage");
|
|
4469
4448
|
},
|
|
4470
4449
|
m(o, i) {
|
|
4471
|
-
D(o, t, i), v(t,
|
|
4450
|
+
D(o, t, i), v(t, r);
|
|
4472
4451
|
},
|
|
4473
4452
|
p(o, i) {
|
|
4474
4453
|
i[0] & /*$_*/
|
|
4475
|
-
524288 &&
|
|
4476
|
-
o[19]("invalidBonusCode") + "") &&
|
|
4454
|
+
524288 && n !== (n = /*$_*/
|
|
4455
|
+
o[19]("invalidBonusCode") + "") && ee(r, n);
|
|
4477
4456
|
},
|
|
4478
4457
|
d(o) {
|
|
4479
|
-
o &&
|
|
4458
|
+
o && $(t);
|
|
4480
4459
|
}
|
|
4481
4460
|
};
|
|
4482
4461
|
}
|
|
4483
|
-
function
|
|
4484
|
-
let t,
|
|
4462
|
+
function Mi(e) {
|
|
4463
|
+
let t, n, r;
|
|
4485
4464
|
function o(u, l) {
|
|
4486
4465
|
return (
|
|
4487
4466
|
/*activeBonusesList*/
|
|
4488
|
-
u[17].length === 0 ?
|
|
4467
|
+
u[17].length === 0 ? Ii : Hi
|
|
4489
4468
|
);
|
|
4490
4469
|
}
|
|
4491
4470
|
let i = o(e), s = i(e), a = (
|
|
4492
4471
|
/*activeBonusesList*/
|
|
4493
|
-
e[17].length !== 0 &&
|
|
4472
|
+
e[17].length !== 0 && Jt(e)
|
|
4494
4473
|
);
|
|
4495
4474
|
return {
|
|
4496
4475
|
c() {
|
|
4497
|
-
t =
|
|
4476
|
+
t = T("div"), s.c(), n = j(), a && a.c(), r = mt(), B(t, "class", "ActiveBonusesGrid " + /*isMobile*/
|
|
4498
4477
|
(e[20] ? "ActiveBonusesGridMobile" : ""));
|
|
4499
4478
|
},
|
|
4500
4479
|
m(u, l) {
|
|
4501
|
-
D(u, t, l), s.m(t, null), D(u,
|
|
4480
|
+
D(u, t, l), s.m(t, null), D(u, n, l), a && a.m(u, l), D(u, r, l);
|
|
4502
4481
|
},
|
|
4503
4482
|
p(u, l) {
|
|
4504
4483
|
i === (i = o(u)) && s ? s.p(u, l) : (s.d(1), s = i(u), s && (s.c(), s.m(t, null))), /*activeBonusesList*/
|
|
4505
|
-
u[17].length !== 0 ? a ? a.p(u, l) : (a =
|
|
4484
|
+
u[17].length !== 0 ? a ? a.p(u, l) : (a = Jt(u), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
|
|
4506
4485
|
},
|
|
4507
4486
|
d(u) {
|
|
4508
|
-
u && (
|
|
4487
|
+
u && ($(t), $(n), $(r)), s.d(), a && a.d(u);
|
|
4509
4488
|
}
|
|
4510
4489
|
};
|
|
4511
4490
|
}
|
|
4512
|
-
function
|
|
4491
|
+
function Pi(e) {
|
|
4513
4492
|
let t;
|
|
4514
4493
|
return {
|
|
4515
4494
|
c() {
|
|
4516
|
-
t =
|
|
4495
|
+
t = T("div"), B(t, "class", "ModalLoader"), B(t, "part", "ModalLoader");
|
|
4517
4496
|
},
|
|
4518
|
-
m(
|
|
4519
|
-
D(
|
|
4497
|
+
m(n, r) {
|
|
4498
|
+
D(n, t, r);
|
|
4520
4499
|
},
|
|
4521
4500
|
p: q,
|
|
4522
|
-
d(
|
|
4523
|
-
|
|
4501
|
+
d(n) {
|
|
4502
|
+
n && $(t);
|
|
4524
4503
|
}
|
|
4525
4504
|
};
|
|
4526
4505
|
}
|
|
4527
|
-
function
|
|
4528
|
-
let t,
|
|
4506
|
+
function Hi(e) {
|
|
4507
|
+
let t, n = Re(
|
|
4529
4508
|
/*activeBonusesList*/
|
|
4530
4509
|
e[17]
|
|
4531
|
-
),
|
|
4532
|
-
for (let o = 0; o <
|
|
4533
|
-
|
|
4510
|
+
), r = [];
|
|
4511
|
+
for (let o = 0; o < n.length; o += 1)
|
|
4512
|
+
r[o] = Qt(Zt(e, n, o));
|
|
4534
4513
|
return {
|
|
4535
4514
|
c() {
|
|
4536
|
-
for (let o = 0; o <
|
|
4537
|
-
|
|
4538
|
-
t =
|
|
4515
|
+
for (let o = 0; o < r.length; o += 1)
|
|
4516
|
+
r[o].c();
|
|
4517
|
+
t = mt();
|
|
4539
4518
|
},
|
|
4540
4519
|
m(o, i) {
|
|
4541
|
-
for (let s = 0; s <
|
|
4542
|
-
|
|
4520
|
+
for (let s = 0; s < r.length; s += 1)
|
|
4521
|
+
r[s] && r[s].m(o, i);
|
|
4543
4522
|
D(o, t, i);
|
|
4544
4523
|
},
|
|
4545
4524
|
p(o, i) {
|
|
4546
4525
|
if (i[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale*/
|
|
4547
4526
|
131199) {
|
|
4548
|
-
|
|
4527
|
+
n = Re(
|
|
4549
4528
|
/*activeBonusesList*/
|
|
4550
4529
|
o[17]
|
|
4551
4530
|
);
|
|
4552
4531
|
let s;
|
|
4553
|
-
for (s = 0; s <
|
|
4554
|
-
const a =
|
|
4555
|
-
|
|
4532
|
+
for (s = 0; s < n.length; s += 1) {
|
|
4533
|
+
const a = Zt(o, n, s);
|
|
4534
|
+
r[s] ? r[s].p(a, i) : (r[s] = Qt(a), r[s].c(), r[s].m(t.parentNode, t));
|
|
4556
4535
|
}
|
|
4557
|
-
for (; s <
|
|
4558
|
-
|
|
4559
|
-
|
|
4536
|
+
for (; s < r.length; s += 1)
|
|
4537
|
+
r[s].d(1);
|
|
4538
|
+
r.length = n.length;
|
|
4560
4539
|
}
|
|
4561
4540
|
},
|
|
4562
4541
|
d(o) {
|
|
4563
|
-
o &&
|
|
4542
|
+
o && $(t), rn(r, o);
|
|
4564
4543
|
}
|
|
4565
4544
|
};
|
|
4566
4545
|
}
|
|
4567
|
-
function
|
|
4568
|
-
let t,
|
|
4546
|
+
function Ii(e) {
|
|
4547
|
+
let t, n = (
|
|
4569
4548
|
/*$_*/
|
|
4570
4549
|
e[19]("noActiveBonuses") + ""
|
|
4571
|
-
),
|
|
4550
|
+
), r;
|
|
4572
4551
|
return {
|
|
4573
4552
|
c() {
|
|
4574
|
-
t =
|
|
4553
|
+
t = T("p"), r = F(n);
|
|
4575
4554
|
},
|
|
4576
4555
|
m(o, i) {
|
|
4577
|
-
D(o, t, i), v(t,
|
|
4556
|
+
D(o, t, i), v(t, r);
|
|
4578
4557
|
},
|
|
4579
4558
|
p(o, i) {
|
|
4580
4559
|
i[0] & /*$_*/
|
|
4581
|
-
524288 &&
|
|
4582
|
-
o[19]("noActiveBonuses") + "") &&
|
|
4560
|
+
524288 && n !== (n = /*$_*/
|
|
4561
|
+
o[19]("noActiveBonuses") + "") && ee(r, n);
|
|
4583
4562
|
},
|
|
4584
4563
|
d(o) {
|
|
4585
|
-
o &&
|
|
4564
|
+
o && $(t);
|
|
4586
4565
|
}
|
|
4587
4566
|
};
|
|
4588
4567
|
}
|
|
4589
|
-
function
|
|
4590
|
-
let t,
|
|
4568
|
+
function Oi(e) {
|
|
4569
|
+
let t, n, r, o, i, s, a, u, l, c, h, f, b, m, p, E;
|
|
4591
4570
|
return {
|
|
4592
4571
|
c() {
|
|
4593
|
-
t =
|
|
4594
|
-
e[53].termsandconditionsdescription), d(t, "termsandconditionsurl",
|
|
4572
|
+
t = T("player-bonus-card"), d(t, "termsandconditionsdescription", n = /*activeBonus*/
|
|
4573
|
+
e[53].termsandconditionsdescription), d(t, "termsandconditionsurl", r = /*activeBonus*/
|
|
4595
4574
|
e[53].termsandconditionsurl), d(t, "termsandconditionsasset", o = /*activeBonus*/
|
|
4596
4575
|
e[53].termsandconditionsasset), d(t, "endpoint", i = /*activeBonus*/
|
|
4597
4576
|
e[53].endpoint), d(t, "playerid", s = /*activeBonus*/
|
|
@@ -4648,10 +4627,10 @@ function Li(e) {
|
|
|
4648
4627
|
},
|
|
4649
4628
|
p(_, y) {
|
|
4650
4629
|
y[0] & /*activeBonusesList*/
|
|
4651
|
-
131072 && r !== (r = /*activeBonus*/
|
|
4652
|
-
_[53].termsandconditionsdescription) && d(t, "termsandconditionsdescription", r), y[0] & /*activeBonusesList*/
|
|
4653
4630
|
131072 && n !== (n = /*activeBonus*/
|
|
4654
|
-
_[53].
|
|
4631
|
+
_[53].termsandconditionsdescription) && d(t, "termsandconditionsdescription", n), y[0] & /*activeBonusesList*/
|
|
4632
|
+
131072 && r !== (r = /*activeBonus*/
|
|
4633
|
+
_[53].termsandconditionsurl) && d(t, "termsandconditionsurl", r), y[0] & /*activeBonusesList*/
|
|
4655
4634
|
131072 && o !== (o = /*activeBonus*/
|
|
4656
4635
|
_[53].termsandconditionsasset) && d(t, "termsandconditionsasset", o), y[0] & /*activeBonusesList*/
|
|
4657
4636
|
131072 && i !== (i = /*activeBonus*/
|
|
@@ -4723,16 +4702,16 @@ function Li(e) {
|
|
|
4723
4702
|
);
|
|
4724
4703
|
},
|
|
4725
4704
|
d(_) {
|
|
4726
|
-
_ &&
|
|
4705
|
+
_ && $(t);
|
|
4727
4706
|
}
|
|
4728
4707
|
};
|
|
4729
4708
|
}
|
|
4730
|
-
function
|
|
4731
|
-
let t,
|
|
4709
|
+
function Ni(e) {
|
|
4710
|
+
let t, n, r, o, i, s, a, u, l, c, h, f, b;
|
|
4732
4711
|
return {
|
|
4733
4712
|
c() {
|
|
4734
|
-
t =
|
|
4735
|
-
e[53].termsandconditionsdescription), d(t, "termsandconditionsurl",
|
|
4713
|
+
t = T("player-bonus-card"), d(t, "termsandconditionsdescription", n = /*activeBonus*/
|
|
4714
|
+
e[53].termsandconditionsdescription), d(t, "termsandconditionsurl", r = /*activeBonus*/
|
|
4736
4715
|
e[53].termsandconditionsurl), d(t, "termsandconditionsasset", o = /*activeBonus*/
|
|
4737
4716
|
e[53].termsandconditionsasset), d(t, "endpoint", i = /*activeBonus*/
|
|
4738
4717
|
e[53].endpoint), d(t, "playerid", s = /*activeBonus*/
|
|
@@ -4785,10 +4764,10 @@ function Ri(e) {
|
|
|
4785
4764
|
},
|
|
4786
4765
|
p(m, p) {
|
|
4787
4766
|
p[0] & /*activeBonusesList*/
|
|
4788
|
-
131072 && r !== (r = /*activeBonus*/
|
|
4789
|
-
m[53].termsandconditionsdescription) && d(t, "termsandconditionsdescription", r), p[0] & /*activeBonusesList*/
|
|
4790
4767
|
131072 && n !== (n = /*activeBonus*/
|
|
4791
|
-
m[53].
|
|
4768
|
+
m[53].termsandconditionsdescription) && d(t, "termsandconditionsdescription", n), p[0] & /*activeBonusesList*/
|
|
4769
|
+
131072 && r !== (r = /*activeBonus*/
|
|
4770
|
+
m[53].termsandconditionsurl) && d(t, "termsandconditionsurl", r), p[0] & /*activeBonusesList*/
|
|
4792
4771
|
131072 && o !== (o = /*activeBonus*/
|
|
4793
4772
|
m[53].termsandconditionsasset) && d(t, "termsandconditionsasset", o), p[0] & /*activeBonusesList*/
|
|
4794
4773
|
131072 && i !== (i = /*activeBonus*/
|
|
@@ -4853,47 +4832,47 @@ function Ri(e) {
|
|
|
4853
4832
|
);
|
|
4854
4833
|
},
|
|
4855
4834
|
d(m) {
|
|
4856
|
-
m &&
|
|
4835
|
+
m && $(t);
|
|
4857
4836
|
}
|
|
4858
4837
|
};
|
|
4859
4838
|
}
|
|
4860
|
-
function
|
|
4839
|
+
function Qt(e) {
|
|
4861
4840
|
let t;
|
|
4862
|
-
function
|
|
4841
|
+
function n(i, s) {
|
|
4863
4842
|
return (
|
|
4864
4843
|
/*activeBonus*/
|
|
4865
|
-
i[53].type === "freeRound" ?
|
|
4844
|
+
i[53].type === "freeRound" ? Ni : Oi
|
|
4866
4845
|
);
|
|
4867
4846
|
}
|
|
4868
|
-
let
|
|
4847
|
+
let r = n(e), o = r(e);
|
|
4869
4848
|
return {
|
|
4870
4849
|
c() {
|
|
4871
|
-
o.c(), t =
|
|
4850
|
+
o.c(), t = mt();
|
|
4872
4851
|
},
|
|
4873
4852
|
m(i, s) {
|
|
4874
4853
|
o.m(i, s), D(i, t, s);
|
|
4875
4854
|
},
|
|
4876
4855
|
p(i, s) {
|
|
4877
|
-
|
|
4856
|
+
r === (r = n(i)) && o ? o.p(i, s) : (o.d(1), o = r(i), o && (o.c(), o.m(t.parentNode, t)));
|
|
4878
4857
|
},
|
|
4879
4858
|
d(i) {
|
|
4880
|
-
i &&
|
|
4859
|
+
i && $(t), o.d(i);
|
|
4881
4860
|
}
|
|
4882
4861
|
};
|
|
4883
4862
|
}
|
|
4884
|
-
function
|
|
4885
|
-
let t,
|
|
4863
|
+
function Jt(e) {
|
|
4864
|
+
let t, n, r, o, i, s, a, u, l, c, h, f, b, m, p, E, _, y, M, O = Re(Array(
|
|
4886
4865
|
/*numberOfPages*/
|
|
4887
4866
|
e[15]
|
|
4888
4867
|
)), S = [];
|
|
4889
|
-
for (let w = 0; w <
|
|
4890
|
-
S[w] =
|
|
4868
|
+
for (let w = 0; w < O.length; w += 1)
|
|
4869
|
+
S[w] = Yt(Xt(e, O, w));
|
|
4891
4870
|
return {
|
|
4892
4871
|
c() {
|
|
4893
|
-
t =
|
|
4872
|
+
t = T("div"), n = T("span"), r = F("|<"), i = j(), s = T("span"), a = F("<"), l = j();
|
|
4894
4873
|
for (let w = 0; w < S.length; w += 1)
|
|
4895
4874
|
S[w].c();
|
|
4896
|
-
c = j(), h =
|
|
4875
|
+
c = j(), h = T("span"), f = F(">"), m = j(), p = T("span"), E = F(">|"), B(n, "class", o = "BonusesFirst " + /*currentPage*/
|
|
4897
4876
|
(e[16] === 0 ? "Inactive" : "")), B(s, "class", u = "BonusesPrev " + /*currentPage*/
|
|
4898
4877
|
(e[16] === 0 ? "Inactive" : "")), B(h, "class", b = "BonusesNext " + /*currentPage*/
|
|
4899
4878
|
(e[16] === /*numberOfPages*/
|
|
@@ -4903,12 +4882,12 @@ function Kt(e) {
|
|
|
4903
4882
|
(e[20] ? "BonusesPaginationWrapperMobile" : ""));
|
|
4904
4883
|
},
|
|
4905
4884
|
m(w, N) {
|
|
4906
|
-
D(w, t, N), v(t,
|
|
4907
|
-
for (let
|
|
4908
|
-
S[
|
|
4909
|
-
v(t, c), v(t, h), v(h, f), v(t, m), v(t, p), v(p, E), y || (
|
|
4885
|
+
D(w, t, N), v(t, n), v(n, r), v(t, i), v(t, s), v(s, a), v(t, l);
|
|
4886
|
+
for (let H = 0; H < S.length; H += 1)
|
|
4887
|
+
S[H] && S[H].m(t, null);
|
|
4888
|
+
v(t, c), v(t, h), v(h, f), v(t, m), v(t, p), v(p, E), y || (M = [
|
|
4910
4889
|
Q(
|
|
4911
|
-
|
|
4890
|
+
n,
|
|
4912
4891
|
"click",
|
|
4913
4892
|
/*click_handler_1*/
|
|
4914
4893
|
e[34]
|
|
@@ -4936,22 +4915,22 @@ function Kt(e) {
|
|
|
4936
4915
|
p(w, N) {
|
|
4937
4916
|
if (N[0] & /*currentPage*/
|
|
4938
4917
|
65536 && o !== (o = "BonusesFirst " + /*currentPage*/
|
|
4939
|
-
(w[16] === 0 ? "Inactive" : "")) && B(
|
|
4918
|
+
(w[16] === 0 ? "Inactive" : "")) && B(n, "class", o), N[0] & /*currentPage*/
|
|
4940
4919
|
65536 && u !== (u = "BonusesPrev " + /*currentPage*/
|
|
4941
4920
|
(w[16] === 0 ? "Inactive" : "")) && B(s, "class", u), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
|
|
4942
4921
|
8486912) {
|
|
4943
|
-
|
|
4922
|
+
O = Re(Array(
|
|
4944
4923
|
/*numberOfPages*/
|
|
4945
4924
|
w[15]
|
|
4946
4925
|
));
|
|
4947
|
-
let
|
|
4948
|
-
for (
|
|
4949
|
-
const W =
|
|
4950
|
-
S[
|
|
4926
|
+
let H;
|
|
4927
|
+
for (H = 0; H < O.length; H += 1) {
|
|
4928
|
+
const W = Xt(w, O, H);
|
|
4929
|
+
S[H] ? S[H].p(W, N) : (S[H] = Yt(W), S[H].c(), S[H].m(t, c));
|
|
4951
4930
|
}
|
|
4952
|
-
for (;
|
|
4953
|
-
S[
|
|
4954
|
-
S.length =
|
|
4931
|
+
for (; H < S.length; H += 1)
|
|
4932
|
+
S[H].d(1);
|
|
4933
|
+
S.length = O.length;
|
|
4955
4934
|
}
|
|
4956
4935
|
N[0] & /*currentPage, numberOfPages*/
|
|
4957
4936
|
98304 && b !== (b = "BonusesNext " + /*currentPage*/
|
|
@@ -4962,15 +4941,15 @@ function Kt(e) {
|
|
|
4962
4941
|
w[15] - 1 ? "Inactive" : "")) && B(p, "class", _);
|
|
4963
4942
|
},
|
|
4964
4943
|
d(w) {
|
|
4965
|
-
w &&
|
|
4944
|
+
w && $(t), rn(S, w), y = !1, oe(M);
|
|
4966
4945
|
}
|
|
4967
4946
|
};
|
|
4968
4947
|
}
|
|
4969
|
-
function
|
|
4970
|
-
let t,
|
|
4948
|
+
function Yt(e) {
|
|
4949
|
+
let t, n = (
|
|
4971
4950
|
/*i*/
|
|
4972
4951
|
e[52] + 1 + ""
|
|
4973
|
-
),
|
|
4952
|
+
), r, o, i, s;
|
|
4974
4953
|
function a() {
|
|
4975
4954
|
return (
|
|
4976
4955
|
/*click_handler_3*/
|
|
@@ -4982,12 +4961,12 @@ function er(e) {
|
|
|
4982
4961
|
}
|
|
4983
4962
|
return {
|
|
4984
4963
|
c() {
|
|
4985
|
-
t =
|
|
4964
|
+
t = T("span"), r = F(n), B(t, "class", o = "BonusesPage " + /*i*/
|
|
4986
4965
|
(e[52] === /*currentPage*/
|
|
4987
4966
|
e[16] ? "BonusPageActive" : ""));
|
|
4988
4967
|
},
|
|
4989
4968
|
m(u, l) {
|
|
4990
|
-
D(u, t, l), v(t,
|
|
4969
|
+
D(u, t, l), v(t, r), i || (s = Q(t, "click", a), i = !0);
|
|
4991
4970
|
},
|
|
4992
4971
|
p(u, l) {
|
|
4993
4972
|
e = u, l[0] & /*currentPage*/
|
|
@@ -4996,12 +4975,12 @@ function er(e) {
|
|
|
4996
4975
|
e[16] ? "BonusPageActive" : "")) && B(t, "class", o);
|
|
4997
4976
|
},
|
|
4998
4977
|
d(u) {
|
|
4999
|
-
u &&
|
|
4978
|
+
u && $(t), i = !1, s();
|
|
5000
4979
|
}
|
|
5001
4980
|
};
|
|
5002
4981
|
}
|
|
5003
|
-
function
|
|
5004
|
-
let t,
|
|
4982
|
+
function Kt(e) {
|
|
4983
|
+
let t, n, r, o, i = (
|
|
5005
4984
|
/*$_*/
|
|
5006
4985
|
e[19]("forfeitBonus") + ""
|
|
5007
4986
|
), s, a, u, l, c = (
|
|
@@ -5013,11 +4992,11 @@ function tr(e) {
|
|
|
5013
4992
|
), p, E, _;
|
|
5014
4993
|
return {
|
|
5015
4994
|
c() {
|
|
5016
|
-
t =
|
|
4995
|
+
t = T("div"), n = T("div"), r = T("div"), o = T("p"), s = F(i), a = j(), u = T("div"), l = T("button"), h = F(c), f = j(), b = T("button"), p = F(m), B(o, "class", "ModalText"), B(l, "class", "ModalCancel"), B(b, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(r, "class", "ModalBody"), B(n, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
|
|
5017
4996
|
(e[20] ? "ModalWrapperMobile" : ""));
|
|
5018
4997
|
},
|
|
5019
|
-
m(y,
|
|
5020
|
-
D(y, t,
|
|
4998
|
+
m(y, M) {
|
|
4999
|
+
D(y, t, M), v(t, n), v(n, r), v(r, o), v(o, s), v(r, a), v(r, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, p), E || (_ = [
|
|
5021
5000
|
Q(
|
|
5022
5001
|
l,
|
|
5023
5002
|
"click",
|
|
@@ -5035,22 +5014,22 @@ function tr(e) {
|
|
|
5035
5014
|
)
|
|
5036
5015
|
], E = !0);
|
|
5037
5016
|
},
|
|
5038
|
-
p(y,
|
|
5039
|
-
|
|
5017
|
+
p(y, M) {
|
|
5018
|
+
M[0] & /*$_*/
|
|
5040
5019
|
524288 && i !== (i = /*$_*/
|
|
5041
|
-
y[19]("forfeitBonus") + "") &&
|
|
5020
|
+
y[19]("forfeitBonus") + "") && ee(s, i), M[0] & /*$_*/
|
|
5042
5021
|
524288 && c !== (c = /*$_*/
|
|
5043
|
-
y[19]("forfeitBonusCancel") + "") &&
|
|
5022
|
+
y[19]("forfeitBonusCancel") + "") && ee(h, c), M[0] & /*$_*/
|
|
5044
5023
|
524288 && m !== (m = /*$_*/
|
|
5045
|
-
y[19]("forfeitBonusConfirm") + "") &&
|
|
5024
|
+
y[19]("forfeitBonusConfirm") + "") && ee(p, m);
|
|
5046
5025
|
},
|
|
5047
5026
|
d(y) {
|
|
5048
|
-
y &&
|
|
5027
|
+
y && $(t), E = !1, oe(_);
|
|
5049
5028
|
}
|
|
5050
5029
|
};
|
|
5051
5030
|
}
|
|
5052
|
-
function
|
|
5053
|
-
let t,
|
|
5031
|
+
function Li(e) {
|
|
5032
|
+
let t, n, r, o, i = (
|
|
5054
5033
|
/*$_*/
|
|
5055
5034
|
e[19]("titleBonuses") + ""
|
|
5056
5035
|
), s, a, u, l, c = (
|
|
@@ -5059,41 +5038,41 @@ function $i(e) {
|
|
|
5059
5038
|
), h, f, b, m, p, E, _ = (
|
|
5060
5039
|
/*$_*/
|
|
5061
5040
|
e[19]("getBonus") + ""
|
|
5062
|
-
), y,
|
|
5041
|
+
), y, M, O, S, w, N, H, W = (
|
|
5063
5042
|
/*isMobile*/
|
|
5064
|
-
e[20] &&
|
|
5043
|
+
e[20] && Ti(e)
|
|
5065
5044
|
), R = (
|
|
5066
5045
|
/*invalidBonusCode*/
|
|
5067
|
-
e[10] &&
|
|
5046
|
+
e[10] && qt(e)
|
|
5068
5047
|
);
|
|
5069
5048
|
function ae(P, G) {
|
|
5070
5049
|
return (
|
|
5071
5050
|
/*isLoading*/
|
|
5072
|
-
P[8] ?
|
|
5051
|
+
P[8] ? Pi : Mi
|
|
5073
5052
|
);
|
|
5074
5053
|
}
|
|
5075
5054
|
let ie = ae(e), V = ie(e), L = (
|
|
5076
5055
|
/*bonusModal*/
|
|
5077
|
-
e[18] &&
|
|
5056
|
+
e[18] && Kt(e)
|
|
5078
5057
|
);
|
|
5079
5058
|
return {
|
|
5080
5059
|
c() {
|
|
5081
|
-
t =
|
|
5060
|
+
t = T("div"), n = T("div"), W && W.c(), r = j(), o = T("h2"), s = F(i), a = j(), u = T("div"), l = T("label"), h = F(c), f = j(), b = T("div"), m = T("input"), p = j(), E = T("button"), y = F(_), O = j(), R && R.c(), S = j(), V.c(), w = j(), L && L.c(), B(o, "class", "ActiveBonusesTitle " + /*isMobile*/
|
|
5082
5061
|
(e[20] ? "ActiveBonusesTitleNone" : "")), B(l, "for", "BonusCode"), B(m, "class", "BonusCodeInput " + /*isMobile*/
|
|
5083
5062
|
(e[20] ? "BonusCodeInputMobile" : "")), B(m, "type", "text"), B(m, "id", "BonusCode"), B(E, "class", "SubmitBonusCode " + /*isMobile*/
|
|
5084
|
-
(e[20] ? "SubmitBonusCodeMobile" : "")), E.disabled =
|
|
5063
|
+
(e[20] ? "SubmitBonusCodeMobile" : "")), E.disabled = M = /*invalidBonusField*/
|
|
5085
5064
|
e[9] || /*isLoading*/
|
|
5086
5065
|
e[8], B(b, "class", "BonusCodeWrapper " + /*isMobile*/
|
|
5087
5066
|
(e[20] ? "BonusCodeWrapperMobile" : "")), B(u, "class", "BonusCodeContainer " + /*isMobile*/
|
|
5088
|
-
(e[20] ? "BonusCodeContainerMobile" : "")), B(
|
|
5067
|
+
(e[20] ? "BonusCodeContainerMobile" : "")), B(n, "class", "ActiveBonusesWrapper " + /*isMobile*/
|
|
5089
5068
|
(e[20] ? "ActiveBonusesWrapperMobile" : ""));
|
|
5090
5069
|
},
|
|
5091
5070
|
m(P, G) {
|
|
5092
|
-
D(P, t, G), v(t,
|
|
5071
|
+
D(P, t, G), v(t, n), W && W.m(n, null), v(n, r), v(n, o), v(o, s), v(n, a), v(n, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, m), xt(
|
|
5093
5072
|
m,
|
|
5094
5073
|
/*bonusCode*/
|
|
5095
5074
|
e[11]
|
|
5096
|
-
), v(b, p), v(b, E), v(E, y), v(u,
|
|
5075
|
+
), v(b, p), v(b, E), v(E, y), v(u, O), R && R.m(u, null), v(n, S), V.m(n, null), v(t, w), L && L.m(t, null), e[39](t), N || (H = [
|
|
5097
5076
|
Q(
|
|
5098
5077
|
m,
|
|
5099
5078
|
"input",
|
|
@@ -5118,56 +5097,56 @@ function $i(e) {
|
|
|
5118
5097
|
/*isMobile*/
|
|
5119
5098
|
P[20] && W.p(P, G), G[0] & /*$_*/
|
|
5120
5099
|
524288 && i !== (i = /*$_*/
|
|
5121
|
-
P[19]("titleBonuses") + "") &&
|
|
5100
|
+
P[19]("titleBonuses") + "") && ee(s, i), G[0] & /*$_*/
|
|
5122
5101
|
524288 && c !== (c = /*$_*/
|
|
5123
|
-
P[19]("bonusCode") + "") &&
|
|
5102
|
+
P[19]("bonusCode") + "") && ee(h, c), G[0] & /*bonusCode*/
|
|
5124
5103
|
2048 && m.value !== /*bonusCode*/
|
|
5125
|
-
P[11] &&
|
|
5104
|
+
P[11] && xt(
|
|
5126
5105
|
m,
|
|
5127
5106
|
/*bonusCode*/
|
|
5128
5107
|
P[11]
|
|
5129
5108
|
), G[0] & /*$_*/
|
|
5130
5109
|
524288 && _ !== (_ = /*$_*/
|
|
5131
|
-
P[19]("getBonus") + "") &&
|
|
5132
|
-
768 &&
|
|
5110
|
+
P[19]("getBonus") + "") && ee(y, _), G[0] & /*invalidBonusField, isLoading*/
|
|
5111
|
+
768 && M !== (M = /*invalidBonusField*/
|
|
5133
5112
|
P[9] || /*isLoading*/
|
|
5134
|
-
P[8]) && (E.disabled =
|
|
5135
|
-
P[10] ? R ? R.p(P, G) : (R =
|
|
5136
|
-
P[18] ? L ? L.p(P, G) : (L =
|
|
5113
|
+
P[8]) && (E.disabled = M), /*invalidBonusCode*/
|
|
5114
|
+
P[10] ? R ? R.p(P, G) : (R = qt(P), R.c(), R.m(u, null)) : R && (R.d(1), R = null), ie === (ie = ae(P)) && V ? V.p(P, G) : (V.d(1), V = ie(P), V && (V.c(), V.m(n, null))), /*bonusModal*/
|
|
5115
|
+
P[18] ? L ? L.p(P, G) : (L = Kt(P), L.c(), L.m(t, null)) : L && (L.d(1), L = null);
|
|
5137
5116
|
},
|
|
5138
5117
|
i: q,
|
|
5139
5118
|
o: q,
|
|
5140
5119
|
d(P) {
|
|
5141
|
-
P &&
|
|
5120
|
+
P && $(t), W && W.d(), R && R.d(), V.d(), L && L.d(), e[39](null), N = !1, oe(H);
|
|
5142
5121
|
}
|
|
5143
5122
|
};
|
|
5144
5123
|
}
|
|
5145
|
-
let
|
|
5146
|
-
function
|
|
5147
|
-
let
|
|
5148
|
-
|
|
5149
|
-
let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, { currencylocale: b = "" } = t, { dateformat: m = "" } = t, p = !1, E, _ = window.navigator.userAgent, y =
|
|
5124
|
+
let Ri = "status=active", K = 6;
|
|
5125
|
+
function Fi(e, t, n) {
|
|
5126
|
+
let r;
|
|
5127
|
+
Kn(e, Bi, (g) => n(19, r = g));
|
|
5128
|
+
let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, { currencylocale: b = "" } = t, { dateformat: m = "" } = t, p = !1, E, _ = window.navigator.userAgent, y = Ei(_) !== "PC", M = !0, O = !1, S = "", w = 0, N = 0, H = 0, W = 0, R = 0, ae = [], ie, V = "", L = !1;
|
|
5150
5129
|
const P = () => {
|
|
5151
5130
|
fetch(f).then((U) => U.json()).then((U) => {
|
|
5152
5131
|
Object.keys(U).forEach((Z) => {
|
|
5153
|
-
|
|
5132
|
+
Vt(Z, U[Z]);
|
|
5154
5133
|
});
|
|
5155
5134
|
}).catch((U) => {
|
|
5156
5135
|
console.log(U);
|
|
5157
5136
|
});
|
|
5158
5137
|
};
|
|
5159
|
-
Object.keys(
|
|
5160
|
-
|
|
5138
|
+
Object.keys(zt).forEach((g) => {
|
|
5139
|
+
Vt(g, zt[g]);
|
|
5161
5140
|
});
|
|
5162
5141
|
const G = (g) => {
|
|
5163
5142
|
if (g.data)
|
|
5164
5143
|
switch (g.data.type) {
|
|
5165
5144
|
case "DeleteActiveBonus":
|
|
5166
|
-
V = g.data.bonuswalletid,
|
|
5145
|
+
V = g.data.bonuswalletid, n(18, L = !0);
|
|
5167
5146
|
break;
|
|
5168
5147
|
}
|
|
5169
5148
|
};
|
|
5170
|
-
function
|
|
5149
|
+
function Fn(g, U) {
|
|
5171
5150
|
return (...Z) => {
|
|
5172
5151
|
clearTimeout(ie), ie = setTimeout(
|
|
5173
5152
|
() => {
|
|
@@ -5177,7 +5156,7 @@ function Ui(e, t, r) {
|
|
|
5177
5156
|
);
|
|
5178
5157
|
};
|
|
5179
5158
|
}
|
|
5180
|
-
const
|
|
5159
|
+
const _t = () => {
|
|
5181
5160
|
window.postMessage(
|
|
5182
5161
|
{
|
|
5183
5162
|
type: "PlayerAccountMenuActive",
|
|
@@ -5185,31 +5164,31 @@ function Ui(e, t, r) {
|
|
|
5185
5164
|
},
|
|
5186
5165
|
window.location.href
|
|
5187
5166
|
);
|
|
5188
|
-
},
|
|
5189
|
-
|
|
5190
|
-
},
|
|
5191
|
-
|
|
5167
|
+
}, $n = () => !!S, Un = () => {
|
|
5168
|
+
n(9, M = !$n());
|
|
5169
|
+
}, J = (g) => {
|
|
5170
|
+
n(8, p = !0);
|
|
5192
5171
|
let U = {
|
|
5193
5172
|
method: "GET",
|
|
5194
5173
|
headers: { "X-SessionId": i }
|
|
5195
5174
|
}, Z = new URL(`${o}/v1/player/${s}/bonusWallet`);
|
|
5196
|
-
Z.searchParams.append("filter",
|
|
5197
|
-
(
|
|
5198
|
-
Array.isArray(
|
|
5175
|
+
Z.searchParams.append("filter", Ri), Z.searchParams.append("pagination", `offset=${g},limit=${K}`), fetch(Z, U).then((Y) => Y.json()).then(
|
|
5176
|
+
(Y) => {
|
|
5177
|
+
Array.isArray(Y.items) && Y.items.forEach((z) => {
|
|
5199
5178
|
const Te = z?.extension?.bonus?.presentation;
|
|
5200
5179
|
Te && (z.termsandconditionsurl = Te.url, z.termsandconditionsdescription = Te.description, z.termsandconditionsasset = Te.assets);
|
|
5201
|
-
}),
|
|
5180
|
+
}), n(15, W = Math.ceil(Y.total / K)), g - K >= 0 && n(12, w = g - K), g + K < Y.total && n(13, N = g + K), n(14, H = (W - 1) * K), n(16, R = g / K), n(17, ae = Y?.items || []), b && ae.forEach((z) => {
|
|
5202
5181
|
z.fulfilledWR = Ae(z.fulfilledWR), z.originalWageringRequirement = Ae(z.originalWageringRequirement), z.currentAmount = Ae(z.currentAmount), z.extension.grantedPlayerCurrencyAmount = Ae(z.extension.grantedPlayerCurrencyAmount);
|
|
5203
5182
|
}), window.scrollTo({ top: 0, behavior: "smooth" });
|
|
5204
5183
|
},
|
|
5205
|
-
(
|
|
5206
|
-
console.error(
|
|
5184
|
+
(Y) => {
|
|
5185
|
+
console.error(Y);
|
|
5207
5186
|
}
|
|
5208
5187
|
).finally(() => {
|
|
5209
|
-
|
|
5188
|
+
n(8, p = !1);
|
|
5210
5189
|
});
|
|
5211
|
-
}, Ae = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""),
|
|
5212
|
-
|
|
5190
|
+
}, Ae = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Dn = () => {
|
|
5191
|
+
n(8, p = !0);
|
|
5213
5192
|
let g = new URL(`${o}/v1/player/${s}/claimbonus`), U = {
|
|
5214
5193
|
method: "POST",
|
|
5215
5194
|
headers: {
|
|
@@ -5218,12 +5197,12 @@ function Ui(e, t, r) {
|
|
|
5218
5197
|
}
|
|
5219
5198
|
};
|
|
5220
5199
|
g.searchParams.append("currency", u), g.searchParams.append("bonusCode", S), fetch(g.href, U).then((Z) => {
|
|
5221
|
-
Z.status == 200 ? (
|
|
5200
|
+
Z.status == 200 ? (n(10, O = !1), J(0), window.postMessage(
|
|
5222
5201
|
{
|
|
5223
5202
|
type: "WidgetNotification",
|
|
5224
5203
|
data: {
|
|
5225
5204
|
type: "success",
|
|
5226
|
-
message:
|
|
5205
|
+
message: r("bonusClaimSuccessMessage")
|
|
5227
5206
|
}
|
|
5228
5207
|
},
|
|
5229
5208
|
window.location.href
|
|
@@ -5231,22 +5210,22 @@ function Ui(e, t, r) {
|
|
|
5231
5210
|
context: "PlayerActiveBonuses",
|
|
5232
5211
|
userId: `${s || "Not logged in"}`,
|
|
5233
5212
|
bonusCode: `${S}`
|
|
5234
|
-
})) : (
|
|
5213
|
+
})) : (n(10, O = !0), window.postMessage(
|
|
5235
5214
|
{
|
|
5236
5215
|
type: "WidgetNotification",
|
|
5237
5216
|
data: {
|
|
5238
5217
|
type: "error",
|
|
5239
|
-
message:
|
|
5218
|
+
message: r("bonusClaimErrorMessage")
|
|
5240
5219
|
}
|
|
5241
5220
|
},
|
|
5242
5221
|
window.location.href
|
|
5243
5222
|
));
|
|
5244
5223
|
}).finally(() => {
|
|
5245
|
-
|
|
5224
|
+
n(8, p = !1);
|
|
5246
5225
|
});
|
|
5247
|
-
},
|
|
5248
|
-
window.postMessage({ type: "EnableScroll" }, window.location.href),
|
|
5249
|
-
},
|
|
5226
|
+
}, Bt = () => {
|
|
5227
|
+
window.postMessage({ type: "EnableScroll" }, window.location.href), n(18, L = !1);
|
|
5228
|
+
}, Gn = () => {
|
|
5250
5229
|
let g = {
|
|
5251
5230
|
method: "DELETE",
|
|
5252
5231
|
headers: {
|
|
@@ -5256,36 +5235,36 @@ function Ui(e, t, r) {
|
|
|
5256
5235
|
}
|
|
5257
5236
|
}, U = new URL(`${o}/v1/player/${s}/bonusWallet`);
|
|
5258
5237
|
U.searchParams.append("bonusWalletID", V), fetch(U, g).then((Z) => {
|
|
5259
|
-
Z.status == 200 && (
|
|
5238
|
+
Z.status == 200 && (J(0), Bt());
|
|
5260
5239
|
});
|
|
5261
|
-
},
|
|
5262
|
-
|
|
5240
|
+
}, kn = () => {
|
|
5241
|
+
xi(a);
|
|
5263
5242
|
};
|
|
5264
|
-
function
|
|
5265
|
-
return
|
|
5243
|
+
function jn(g) {
|
|
5244
|
+
return Fn(g, 1e3);
|
|
5266
5245
|
}
|
|
5267
|
-
|
|
5246
|
+
sr(() => (window.addEventListener("message", G, !1), () => {
|
|
5268
5247
|
window.removeEventListener("message", G);
|
|
5269
5248
|
}));
|
|
5270
|
-
const
|
|
5271
|
-
function
|
|
5272
|
-
S = this.value,
|
|
5249
|
+
const Wn = () => _t();
|
|
5250
|
+
function Vn() {
|
|
5251
|
+
S = this.value, n(11, S);
|
|
5273
5252
|
}
|
|
5274
|
-
const
|
|
5275
|
-
function
|
|
5276
|
-
|
|
5277
|
-
E = g,
|
|
5253
|
+
const zn = () => J(0), Xn = () => J(w), Zn = (g) => J(g * K), qn = () => J(N), Qn = () => J(H);
|
|
5254
|
+
function Jn(g) {
|
|
5255
|
+
Ye[g ? "unshift" : "push"](() => {
|
|
5256
|
+
E = g, n(7, E);
|
|
5278
5257
|
});
|
|
5279
5258
|
}
|
|
5280
5259
|
return e.$$set = (g) => {
|
|
5281
|
-
"endpoint" in g &&
|
|
5260
|
+
"endpoint" in g && n(28, o = g.endpoint), "session" in g && n(29, i = g.session), "playerid" in g && n(30, s = g.playerid), "lang" in g && n(0, a = g.lang), "currency" in g && n(31, u = g.currency), "clientstyling" in g && n(1, l = g.clientstyling), "clientstylingurl" in g && n(2, c = g.clientstylingurl), "mbsource" in g && n(3, h = g.mbsource), "translationurl" in g && n(4, f = g.translationurl), "currencylocale" in g && n(5, b = g.currencylocale), "dateformat" in g && n(6, m = g.dateformat);
|
|
5282
5261
|
}, e.$$.update = () => {
|
|
5283
5262
|
e.$$.dirty[0] & /*lang*/
|
|
5284
|
-
1 && a &&
|
|
5285
|
-
1879048192 && i && s && o &&
|
|
5286
|
-
130 && l && E &&
|
|
5287
|
-
132 && c && E &&
|
|
5288
|
-
136 && h && E &&
|
|
5263
|
+
1 && a && kn(), e.$$.dirty[0] & /*session, playerid, endpoint*/
|
|
5264
|
+
1879048192 && i && s && o && J(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5265
|
+
130 && l && E && wi(E, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5266
|
+
132 && c && E && Ci(E, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5267
|
+
136 && h && E && Si(E, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5289
5268
|
16 && f && P();
|
|
5290
5269
|
}, [
|
|
5291
5270
|
a,
|
|
@@ -5297,47 +5276,47 @@ function Ui(e, t, r) {
|
|
|
5297
5276
|
m,
|
|
5298
5277
|
E,
|
|
5299
5278
|
p,
|
|
5300
|
-
|
|
5301
|
-
|
|
5279
|
+
M,
|
|
5280
|
+
O,
|
|
5302
5281
|
S,
|
|
5303
5282
|
w,
|
|
5304
5283
|
N,
|
|
5305
|
-
|
|
5284
|
+
H,
|
|
5306
5285
|
W,
|
|
5307
5286
|
R,
|
|
5308
5287
|
ae,
|
|
5309
5288
|
L,
|
|
5310
|
-
|
|
5289
|
+
r,
|
|
5311
5290
|
y,
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5291
|
+
_t,
|
|
5292
|
+
Un,
|
|
5293
|
+
J,
|
|
5294
|
+
Dn,
|
|
5295
|
+
Bt,
|
|
5296
|
+
Gn,
|
|
5297
|
+
jn,
|
|
5319
5298
|
o,
|
|
5320
5299
|
i,
|
|
5321
5300
|
s,
|
|
5322
5301
|
u,
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5302
|
+
Wn,
|
|
5303
|
+
Vn,
|
|
5304
|
+
zn,
|
|
5305
|
+
Xn,
|
|
5306
|
+
Zn,
|
|
5307
|
+
qn,
|
|
5308
|
+
Qn,
|
|
5309
|
+
Jn
|
|
5331
5310
|
];
|
|
5332
5311
|
}
|
|
5333
|
-
class
|
|
5312
|
+
class $i extends vr {
|
|
5334
5313
|
constructor(t) {
|
|
5335
|
-
super(),
|
|
5314
|
+
super(), br(
|
|
5336
5315
|
this,
|
|
5337
5316
|
t,
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5317
|
+
Fi,
|
|
5318
|
+
Li,
|
|
5319
|
+
tn,
|
|
5341
5320
|
{
|
|
5342
5321
|
endpoint: 28,
|
|
5343
5322
|
session: 29,
|
|
@@ -5351,7 +5330,7 @@ class Di extends yn {
|
|
|
5351
5330
|
currencylocale: 5,
|
|
5352
5331
|
dateformat: 6
|
|
5353
5332
|
},
|
|
5354
|
-
|
|
5333
|
+
Ai,
|
|
5355
5334
|
[-1, -1]
|
|
5356
5335
|
);
|
|
5357
5336
|
}
|
|
@@ -5422,34 +5401,34 @@ class Di extends yn {
|
|
|
5422
5401
|
this.$$set({ dateformat: t }), X();
|
|
5423
5402
|
}
|
|
5424
5403
|
}
|
|
5425
|
-
|
|
5404
|
+
gr($i, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
|
|
5426
5405
|
export {
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5406
|
+
ye as $,
|
|
5407
|
+
$i as P,
|
|
5408
|
+
vr as S,
|
|
5409
|
+
In as a,
|
|
5410
|
+
er as b,
|
|
5411
|
+
gr as c,
|
|
5412
|
+
j as d,
|
|
5413
|
+
T as e,
|
|
5435
5414
|
X as f,
|
|
5436
5415
|
B as g,
|
|
5437
5416
|
D as h,
|
|
5438
|
-
|
|
5417
|
+
br as i,
|
|
5439
5418
|
v as j,
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5419
|
+
ee as k,
|
|
5420
|
+
$ as l,
|
|
5421
|
+
Kn as m,
|
|
5443
5422
|
q as n,
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5423
|
+
Ei as o,
|
|
5424
|
+
sr as p,
|
|
5425
|
+
Ci as q,
|
|
5426
|
+
Si as r,
|
|
5427
|
+
tn as s,
|
|
5428
|
+
F as t,
|
|
5429
|
+
Ui as u,
|
|
5430
|
+
Q as v,
|
|
5431
|
+
Ye as w,
|
|
5432
|
+
wi as x,
|
|
5433
|
+
Bi as y
|
|
5455
5434
|
};
|