@everymatrix/player-account-gaming-limits-history-2 1.86.4 → 1.86.6
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/PlayerAccountGamingLimitsHistory2-BX_4Ee1b.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsHistory2-CvVJHUSE.js → PlayerAccountGamingLimitsHistory2-DNiWf7Z8.js} +1013 -992
- package/components/{PlayerAccountGamingLimitsHistory2-Chy2x8gO.js → PlayerAccountGamingLimitsHistory2-kolYKLqb.js} +882 -861
- package/es2015/player-account-gaming-limits-history-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-history-2.js +1 -1
- package/esnext/player-account-gaming-limits-history-2.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsHistory2-JFXvLGIK.cjs +0 -18
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Gr = Object.defineProperty, Fr = Object.defineProperties;
|
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $e = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ge = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
kr.call(t, r) && $e(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
Vr.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, bt = (e, t) => Fr(e, jr(t));
|
|
13
|
+
var N = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var vt = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
n(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
n(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function zt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Et() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ce(e) {
|
|
39
|
+
e.forEach(zt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Zt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Wr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Qt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const i of t)
|
|
53
53
|
i(void 0);
|
|
54
|
-
return
|
|
54
|
+
return I;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Xr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Qt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function _t(e) {
|
|
63
63
|
return e == null ? "" : e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function x(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const i =
|
|
68
|
+
function zr(e, t, r) {
|
|
69
|
+
const i = Zr(e);
|
|
70
70
|
if (!i.getElementById(t)) {
|
|
71
|
-
const n =
|
|
72
|
-
n.id = t, n.textContent = r,
|
|
71
|
+
const n = P("style");
|
|
72
|
+
n.id = t, n.textContent = r, Qr(i, n);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Zr(e) {
|
|
76
76
|
if (!e)
|
|
77
77
|
return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -82,8 +82,8 @@ function zr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function Qr(e, t) {
|
|
86
|
+
return x(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -95,39 +95,39 @@ function X(e, t, r) {
|
|
|
95
95
|
function V(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Yr(e, t) {
|
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
|
100
100
|
e[r] && e[r].d(t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function P(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ue(e) {
|
|
106
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function G(e) {
|
|
109
109
|
return document.createTextNode(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function Qe() {
|
|
112
|
+
return G(" ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Jr(e, t, r, i) {
|
|
115
115
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function _(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function qr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function k(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function be(e, t, r) {
|
|
128
128
|
e.classList.toggle(t, !!r);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Kr(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
@@ -136,98 +136,98 @@ function qr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let ue;
|
|
140
|
+
function ae(e) {
|
|
141
|
+
ue = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function ei() {
|
|
144
|
+
if (!ue)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return ue;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function ti(e) {
|
|
149
|
+
ei().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
151
|
const Y = [], Se = [];
|
|
152
152
|
let J = [];
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
153
|
+
const xt = [], ri = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Ye = !1;
|
|
155
|
+
function ii() {
|
|
156
|
+
Ye || (Ye = !0, ri.then(B));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Je(e) {
|
|
159
159
|
J.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const Ge = /* @__PURE__ */ new Set();
|
|
162
162
|
let Z = 0;
|
|
163
|
-
function
|
|
163
|
+
function B() {
|
|
164
164
|
if (Z !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = ue;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
169
|
for (; Z < Y.length; ) {
|
|
170
170
|
const t = Y[Z];
|
|
171
|
-
Z++,
|
|
171
|
+
Z++, ae(t), ni(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
174
|
throw Y.length = 0, Z = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
176
|
+
for (ae(null), Y.length = 0, Z = 0; Se.length; )
|
|
177
177
|
Se.pop()();
|
|
178
178
|
for (let t = 0; t < J.length; t += 1) {
|
|
179
179
|
const r = J[t];
|
|
180
|
-
|
|
180
|
+
Ge.has(r) || (Ge.add(r), r());
|
|
181
181
|
}
|
|
182
182
|
J.length = 0;
|
|
183
183
|
} while (Y.length);
|
|
184
|
-
for (;
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
for (; xt.length; )
|
|
185
|
+
xt.pop()();
|
|
186
|
+
Ye = !1, Ge.clear(), ae(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ni(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), ce(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function oi(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
197
|
J.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), J = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const si = /* @__PURE__ */ new Set();
|
|
200
|
+
function ai(e, t) {
|
|
201
|
+
e && e.i && (si.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Tt(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ui(e, t, r) {
|
|
207
207
|
const { fragment: i, after_update: n } = e.$$;
|
|
208
|
-
i && i.m(t, r),
|
|
209
|
-
const o = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
211
|
-
}), n.forEach(
|
|
208
|
+
i && i.m(t, r), Je(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(zt).filter(mt);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
211
|
+
}), n.forEach(Je);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function li(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (oi(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
217
|
+
function hi(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (Y.push(e), ii(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const l =
|
|
222
|
-
|
|
220
|
+
function ci(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
221
|
+
const l = ue;
|
|
222
|
+
ae(e);
|
|
223
223
|
const u = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
226
226
|
// state
|
|
227
227
|
props: o,
|
|
228
|
-
update:
|
|
228
|
+
update: I,
|
|
229
229
|
not_equal: n,
|
|
230
|
-
bound:
|
|
230
|
+
bound: Et(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,28 +236,28 @@ function hi(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
240
|
-
dirty:
|
|
239
|
+
callbacks: Et(),
|
|
240
|
+
dirty: a,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || l.$$.root
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
s && s(u.root);
|
|
245
245
|
let h = !1;
|
|
246
246
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const y = p.length ? p[0] : f;
|
|
248
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
249
|
-
}) : [], u.update(), h = !0,
|
|
248
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && hi(e, c)), f;
|
|
249
|
+
}) : [], u.update(), h = !0, ce(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
251
|
+
const c = qr(t.target);
|
|
252
252
|
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
253
253
|
} else
|
|
254
254
|
u.fragment && u.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && ai(e.$$.fragment), ui(e, t.target, t.anchor), B();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
ae(l);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Yt;
|
|
260
|
+
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, i) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return vt(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(o) {
|
|
300
300
|
return () => {
|
|
301
|
-
let
|
|
301
|
+
let s;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
|
|
304
|
+
s = P("slot"), o !== "default" && _(s, "name", o);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(u, h) {
|
|
311
|
-
X(u,
|
|
311
|
+
X(u, s, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(u) {
|
|
314
|
-
u && V(
|
|
314
|
+
u && V(s);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, i =
|
|
321
|
+
const r = {}, i = Kr(this);
|
|
322
322
|
for (const o of this.$$s)
|
|
323
323
|
o in i && (r[o] = [t(o)]);
|
|
324
324
|
for (const o of this.attributes) {
|
|
325
|
-
const
|
|
326
|
-
|
|
325
|
+
const s = this.$$g_p(o.name);
|
|
326
|
+
s in this.$$d || (this.$$d[s] = _e(s, o.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const o in this.$$p_d)
|
|
329
329
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
332
|
+
props: bt(ge({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -340,21 +340,21 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const o in this.$$p_d)
|
|
342
342
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
343
|
-
const
|
|
343
|
+
const s = _e(
|
|
344
344
|
o,
|
|
345
345
|
this.$$d[o],
|
|
346
346
|
this.$$p_d,
|
|
347
347
|
"toAttribute"
|
|
348
348
|
);
|
|
349
|
-
|
|
349
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
350
350
|
}
|
|
351
351
|
this.$$r = !1;
|
|
352
352
|
};
|
|
353
353
|
this.$$c.$$.after_update.push(n), n();
|
|
354
354
|
for (const o in this.$$l)
|
|
355
|
-
for (const
|
|
356
|
-
const
|
|
357
|
-
this.$$l_u.set(
|
|
355
|
+
for (const s of this.$$l[o]) {
|
|
356
|
+
const a = this.$$c.$on(o, s);
|
|
357
|
+
this.$$l_u.set(s, a);
|
|
358
358
|
}
|
|
359
359
|
this.$$l = {};
|
|
360
360
|
}
|
|
@@ -407,38 +407,38 @@ function _e(e, t, r, i) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let
|
|
410
|
+
function fi(e, t, r, i, n, o) {
|
|
411
|
+
let s = class extends Yt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, n), this.$$p_d = t;
|
|
414
414
|
}
|
|
415
415
|
static get observedAttributes() {
|
|
416
416
|
return Object.keys(t).map(
|
|
417
|
-
(
|
|
417
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
return Object.keys(t).forEach((
|
|
422
|
-
Object.defineProperty(
|
|
421
|
+
return Object.keys(t).forEach((a) => {
|
|
422
|
+
Object.defineProperty(s.prototype, a, {
|
|
423
423
|
get() {
|
|
424
|
-
return this.$$c &&
|
|
424
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
425
425
|
},
|
|
426
426
|
set(l) {
|
|
427
427
|
var u;
|
|
428
|
-
l = _e(
|
|
428
|
+
l = _e(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
}), i.forEach((
|
|
432
|
-
Object.defineProperty(
|
|
431
|
+
}), i.forEach((a) => {
|
|
432
|
+
Object.defineProperty(s.prototype, a, {
|
|
433
433
|
get() {
|
|
434
434
|
var l;
|
|
435
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
435
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
|
-
|
|
439
|
+
s, s;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class mi {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class fi {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
li(this, 1), this.$destroy = I;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,8 +468,8 @@ class fi {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
472
|
-
return
|
|
471
|
+
if (!mt(r))
|
|
472
|
+
return I;
|
|
473
473
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return i.push(r), () => {
|
|
475
475
|
const n = i.indexOf(r);
|
|
@@ -481,22 +481,22 @@ class fi {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
487
|
+
const pi = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pi);
|
|
489
489
|
const Q = [];
|
|
490
|
-
function
|
|
490
|
+
function di(e, t) {
|
|
491
491
|
return {
|
|
492
492
|
subscribe: He(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function He(e, t =
|
|
495
|
+
function He(e, t = I) {
|
|
496
496
|
let r;
|
|
497
497
|
const i = /* @__PURE__ */ new Set();
|
|
498
|
-
function n(
|
|
499
|
-
if (
|
|
498
|
+
function n(a) {
|
|
499
|
+
if (Zt(e, a) && (e = a, r)) {
|
|
500
500
|
const l = !Q.length;
|
|
501
501
|
for (const u of i)
|
|
502
502
|
u[1](), Q.push(u, e);
|
|
@@ -507,34 +507,34 @@ function He(e, t = B) {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function o(
|
|
511
|
-
n(
|
|
510
|
+
function o(a) {
|
|
511
|
+
n(a(e));
|
|
512
512
|
}
|
|
513
|
-
function a
|
|
514
|
-
const u = [
|
|
515
|
-
return i.add(u), i.size === 1 && (r = t(n, o) ||
|
|
513
|
+
function s(a, l = I) {
|
|
514
|
+
const u = [a, l];
|
|
515
|
+
return i.add(u), i.size === 1 && (r = t(n, o) || I), a(e), () => {
|
|
516
516
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
return { set: n, update: o, subscribe:
|
|
519
|
+
return { set: n, update: o, subscribe: s };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function re(e, t, r) {
|
|
522
522
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
523
523
|
if (!n.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const o = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return di(r, (s, a) => {
|
|
527
527
|
let l = !1;
|
|
528
528
|
const u = [];
|
|
529
|
-
let h = 0, c =
|
|
529
|
+
let h = 0, c = I;
|
|
530
530
|
const f = () => {
|
|
531
531
|
if (h)
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
|
-
const y = t(i ? u[0] : u,
|
|
535
|
-
o ?
|
|
534
|
+
const y = t(i ? u[0] : u, s, a);
|
|
535
|
+
o ? s(y) : c = mt(y) ? y : I;
|
|
536
536
|
}, p = n.map(
|
|
537
|
-
(y, d) =>
|
|
537
|
+
(y, d) => Qt(
|
|
538
538
|
y,
|
|
539
539
|
(v) => {
|
|
540
540
|
u[d] = v, h &= ~(1 << d), l && f();
|
|
@@ -545,124 +545,110 @@ function ie(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return l = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
ce(p), c(), l = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function yi(e) {
|
|
553
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
return bi(t) && !
|
|
555
|
+
var gi = function(t) {
|
|
556
|
+
return bi(t) && !vi(t);
|
|
557
557
|
};
|
|
558
558
|
function bi(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function vi(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
564
|
-
}
|
|
565
|
-
var vi = typeof Symbol == "function" && Symbol.for, Ei = vi ? Symbol.for("react.element") : 60103;
|
|
566
|
-
function _i(e) {
|
|
567
|
-
return e.$$typeof === Ei;
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || xi(e);
|
|
568
564
|
}
|
|
565
|
+
var Ei = typeof Symbol == "function" && Symbol.for, _i = Ei ? Symbol.for("react.element") : 60103;
|
|
569
566
|
function xi(e) {
|
|
567
|
+
return e.$$typeof === _i;
|
|
568
|
+
}
|
|
569
|
+
function Ti(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function le(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Ti(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Li(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(i) {
|
|
577
|
-
return
|
|
577
|
+
return le(i, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Si(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return q;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : q;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function wi(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function Lt(e) {
|
|
592
|
+
return Object.keys(e).concat(wi(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Jt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function Ai(e, t) {
|
|
602
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Pi(e, t, r) {
|
|
605
605
|
var i = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
i[n] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && Lt(e).forEach(function(n) {
|
|
607
|
+
i[n] = le(e[n], r);
|
|
608
|
+
}), Lt(t).forEach(function(n) {
|
|
609
|
+
Ai(e, n) || (Jt(e, n) && r.isMergeableObject(t[n]) ? i[n] = Si(n, r)(e[n], t[n], r) : i[n] = le(t[n], r));
|
|
610
610
|
}), i;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function q(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Li, r.isMergeableObject = r.isMergeableObject || gi, r.cloneUnlessOtherwiseSpecified = le;
|
|
614
614
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
615
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return o ? i ? r.arrayMerge(e, t, r) : Pi(e, t, r) : le(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
q.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(i, n) {
|
|
621
|
-
return
|
|
621
|
+
return q(i, n, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var Hi =
|
|
625
|
-
const Ii = /* @__PURE__ */
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
-
purpose with or without fee is hereby granted.
|
|
631
|
-
|
|
632
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
-
***************************************************************************** */
|
|
640
|
-
var Ye = function(e, t) {
|
|
641
|
-
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
624
|
+
var Hi = q, Oi = Hi;
|
|
625
|
+
const Ii = /* @__PURE__ */ yi(Oi);
|
|
626
|
+
var qe = function(e, t) {
|
|
627
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
642
628
|
r.__proto__ = i;
|
|
643
629
|
} || function(r, i) {
|
|
644
630
|
for (var n in i)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
646
|
-
},
|
|
632
|
+
}, qe(e, t);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function Oe(e, t) {
|
|
649
635
|
if (typeof t != "function" && t !== null)
|
|
650
636
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
|
-
|
|
637
|
+
qe(e, t);
|
|
652
638
|
function r() {
|
|
653
639
|
this.constructor = e;
|
|
654
640
|
}
|
|
655
641
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
656
642
|
}
|
|
657
|
-
var
|
|
658
|
-
return
|
|
643
|
+
var M = function() {
|
|
644
|
+
return M = Object.assign || function(t) {
|
|
659
645
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
660
646
|
r = arguments[i];
|
|
661
647
|
for (var o in r)
|
|
662
648
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
663
649
|
}
|
|
664
650
|
return t;
|
|
665
|
-
},
|
|
651
|
+
}, M.apply(this, arguments);
|
|
666
652
|
};
|
|
667
653
|
function Bi(e, t) {
|
|
668
654
|
var r = {};
|
|
@@ -673,143 +659,119 @@ function Bi(e, t) {
|
|
|
673
659
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
674
660
|
return r;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
678
|
-
if (r)
|
|
679
|
-
return r.call(e);
|
|
680
|
-
if (e && typeof e.length == "number")
|
|
681
|
-
return {
|
|
682
|
-
next: function() {
|
|
683
|
-
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
687
|
-
}
|
|
688
|
-
function qe(e, t) {
|
|
689
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
690
|
-
if (!r)
|
|
691
|
-
return e;
|
|
692
|
-
var i = r.call(e), n, o = [], a;
|
|
693
|
-
try {
|
|
694
|
-
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
695
|
-
o.push(n.value);
|
|
696
|
-
} catch (s) {
|
|
697
|
-
a = { error: s };
|
|
698
|
-
} finally {
|
|
699
|
-
try {
|
|
700
|
-
n && !n.done && (r = i.return) && r.call(i);
|
|
701
|
-
} finally {
|
|
702
|
-
if (a)
|
|
703
|
-
throw a.error;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
return o;
|
|
707
|
-
}
|
|
708
|
-
function q(e, t, r) {
|
|
662
|
+
function Fe(e, t, r) {
|
|
709
663
|
if (r || arguments.length === 2)
|
|
710
664
|
for (var i = 0, n = t.length, o; i < n; i++)
|
|
711
665
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
712
|
-
return e.concat(o || t);
|
|
666
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
713
667
|
}
|
|
714
|
-
function
|
|
715
|
-
var r = t && t.cache ? t.cache :
|
|
668
|
+
function je(e, t) {
|
|
669
|
+
var r = t && t.cache ? t.cache : Ui, i = t && t.serializer ? t.serializer : Di, n = t && t.strategy ? t.strategy : Ri;
|
|
716
670
|
return n(e, {
|
|
717
671
|
cache: r,
|
|
718
672
|
serializer: i
|
|
719
673
|
});
|
|
720
674
|
}
|
|
721
|
-
function
|
|
675
|
+
function Ci(e) {
|
|
722
676
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
723
677
|
}
|
|
724
|
-
function
|
|
725
|
-
var n =
|
|
678
|
+
function Ni(e, t, r, i) {
|
|
679
|
+
var n = Ci(i) ? i : r(i), o = t.get(n);
|
|
726
680
|
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
727
681
|
}
|
|
728
|
-
function
|
|
682
|
+
function qt(e, t, r) {
|
|
729
683
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
730
684
|
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
731
685
|
}
|
|
732
|
-
function
|
|
686
|
+
function Kt(e, t, r, i, n) {
|
|
733
687
|
return r.bind(t, e, i, n);
|
|
734
688
|
}
|
|
735
|
-
function Ci(e, t) {
|
|
736
|
-
var r = e.length === 1 ? Yt : Jt;
|
|
737
|
-
return ht(e, this, r, t.cache.create(), t.serializer);
|
|
738
|
-
}
|
|
739
|
-
function Ni(e, t) {
|
|
740
|
-
return ht(e, this, Jt, t.cache.create(), t.serializer);
|
|
741
|
-
}
|
|
742
689
|
function Ri(e, t) {
|
|
743
|
-
|
|
690
|
+
var r = e.length === 1 ? Ni : qt;
|
|
691
|
+
return Kt(e, this, r, t.cache.create(), t.serializer);
|
|
744
692
|
}
|
|
745
|
-
|
|
746
|
-
return
|
|
747
|
-
};
|
|
748
|
-
function ct() {
|
|
749
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
693
|
+
function Mi(e, t) {
|
|
694
|
+
return Kt(e, this, qt, t.cache.create(), t.serializer);
|
|
750
695
|
}
|
|
751
|
-
|
|
752
|
-
return
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
696
|
+
var Di = function() {
|
|
697
|
+
return JSON.stringify(arguments);
|
|
698
|
+
}, $i = (
|
|
699
|
+
/** @class */
|
|
700
|
+
function() {
|
|
701
|
+
function e() {
|
|
702
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
703
|
+
}
|
|
704
|
+
return e.prototype.get = function(t) {
|
|
705
|
+
return this.cache[t];
|
|
706
|
+
}, e.prototype.set = function(t, r) {
|
|
707
|
+
this.cache[t] = r;
|
|
708
|
+
}, e;
|
|
709
|
+
}()
|
|
710
|
+
), Ui = {
|
|
758
711
|
create: function() {
|
|
759
|
-
return new
|
|
712
|
+
return new $i();
|
|
760
713
|
}
|
|
761
|
-
},
|
|
762
|
-
variadic:
|
|
763
|
-
|
|
764
|
-
|
|
714
|
+
}, ke = {
|
|
715
|
+
variadic: Mi
|
|
716
|
+
}, we = function() {
|
|
717
|
+
return we = Object.assign || function(t) {
|
|
718
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
719
|
+
r = arguments[i];
|
|
720
|
+
for (var o in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}, we.apply(this, arguments);
|
|
725
|
+
};
|
|
726
|
+
var b;
|
|
765
727
|
(function(e) {
|
|
766
728
|
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";
|
|
767
|
-
})(
|
|
768
|
-
var
|
|
729
|
+
})(b || (b = {}));
|
|
730
|
+
var L;
|
|
769
731
|
(function(e) {
|
|
770
732
|
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";
|
|
771
|
-
})(
|
|
772
|
-
var
|
|
733
|
+
})(L || (L = {}));
|
|
734
|
+
var K;
|
|
773
735
|
(function(e) {
|
|
774
736
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
775
|
-
})(
|
|
776
|
-
function
|
|
777
|
-
return e.type ===
|
|
778
|
-
}
|
|
779
|
-
function $i(e) {
|
|
780
|
-
return e.type === S.argument;
|
|
781
|
-
}
|
|
782
|
-
function qt(e) {
|
|
783
|
-
return e.type === S.number;
|
|
737
|
+
})(K || (K = {}));
|
|
738
|
+
function St(e) {
|
|
739
|
+
return e.type === L.literal;
|
|
784
740
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.type ===
|
|
741
|
+
function Gi(e) {
|
|
742
|
+
return e.type === L.argument;
|
|
787
743
|
}
|
|
788
744
|
function er(e) {
|
|
789
|
-
return e.type ===
|
|
745
|
+
return e.type === L.number;
|
|
790
746
|
}
|
|
791
747
|
function tr(e) {
|
|
792
|
-
return e.type ===
|
|
748
|
+
return e.type === L.date;
|
|
793
749
|
}
|
|
794
750
|
function rr(e) {
|
|
795
|
-
return e.type ===
|
|
796
|
-
}
|
|
797
|
-
function Ui(e) {
|
|
798
|
-
return e.type === S.pound;
|
|
751
|
+
return e.type === L.time;
|
|
799
752
|
}
|
|
800
753
|
function ir(e) {
|
|
801
|
-
return e.type ===
|
|
754
|
+
return e.type === L.select;
|
|
802
755
|
}
|
|
803
756
|
function nr(e) {
|
|
804
|
-
return
|
|
757
|
+
return e.type === L.plural;
|
|
758
|
+
}
|
|
759
|
+
function Fi(e) {
|
|
760
|
+
return e.type === L.pound;
|
|
761
|
+
}
|
|
762
|
+
function or(e) {
|
|
763
|
+
return e.type === L.tag;
|
|
764
|
+
}
|
|
765
|
+
function sr(e) {
|
|
766
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
805
767
|
}
|
|
806
768
|
function Ke(e) {
|
|
807
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
808
770
|
}
|
|
809
|
-
var
|
|
810
|
-
function
|
|
771
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ji = /(?:[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;
|
|
772
|
+
function ki(e) {
|
|
811
773
|
var t = {};
|
|
812
|
-
return e.replace(
|
|
774
|
+
return e.replace(ji, function(r) {
|
|
813
775
|
var i = r.length;
|
|
814
776
|
switch (r[0]) {
|
|
815
777
|
case "G":
|
|
@@ -898,36 +860,46 @@ function Fi(e) {
|
|
|
898
860
|
return "";
|
|
899
861
|
}), t;
|
|
900
862
|
}
|
|
901
|
-
var
|
|
902
|
-
function
|
|
863
|
+
var w = function() {
|
|
864
|
+
return w = Object.assign || function(t) {
|
|
865
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
866
|
+
r = arguments[i];
|
|
867
|
+
for (var o in r)
|
|
868
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
}, w.apply(this, arguments);
|
|
872
|
+
};
|
|
873
|
+
var Vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function Wi(e) {
|
|
903
875
|
if (e.length === 0)
|
|
904
876
|
throw new Error("Number skeleton cannot be empty");
|
|
905
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(Vi).filter(function(f) {
|
|
906
878
|
return f.length > 0;
|
|
907
879
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
908
|
-
var o = n[i],
|
|
909
|
-
if (
|
|
880
|
+
var o = n[i], s = o.split("/");
|
|
881
|
+
if (s.length === 0)
|
|
910
882
|
throw new Error("Invalid number skeleton");
|
|
911
|
-
for (var
|
|
883
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
912
884
|
var c = h[u];
|
|
913
885
|
if (c.length === 0)
|
|
914
886
|
throw new Error("Invalid number skeleton");
|
|
915
887
|
}
|
|
916
|
-
r.push({ stem:
|
|
888
|
+
r.push({ stem: a, options: l });
|
|
917
889
|
}
|
|
918
890
|
return r;
|
|
919
891
|
}
|
|
920
|
-
function
|
|
892
|
+
function Xi(e) {
|
|
921
893
|
return e.replace(/^(.*?)-/, "");
|
|
922
894
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
895
|
+
var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, zi = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
896
|
+
function At(e) {
|
|
925
897
|
var t = {};
|
|
926
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
898
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, i, n) {
|
|
927
899
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
928
900
|
}), t;
|
|
929
901
|
}
|
|
930
|
-
function
|
|
902
|
+
function hr(e) {
|
|
931
903
|
switch (e) {
|
|
932
904
|
case "sign-auto":
|
|
933
905
|
return {
|
|
@@ -967,7 +939,7 @@ function ur(e) {
|
|
|
967
939
|
};
|
|
968
940
|
}
|
|
969
941
|
}
|
|
970
|
-
function
|
|
942
|
+
function Zi(e) {
|
|
971
943
|
var t;
|
|
972
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
973
945
|
notation: "engineering"
|
|
@@ -975,17 +947,17 @@ function Xi(e) {
|
|
|
975
947
|
notation: "scientific"
|
|
976
948
|
}, e = e.slice(1)), t) {
|
|
977
949
|
var r = e.slice(0, 2);
|
|
978
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
950
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
|
979
951
|
throw new Error("Malformed concise eng/scientific notation");
|
|
980
952
|
t.minimumIntegerDigits = e.length;
|
|
981
953
|
}
|
|
982
954
|
return t;
|
|
983
955
|
}
|
|
984
|
-
function
|
|
985
|
-
var t = {}, r =
|
|
956
|
+
function Pt(e) {
|
|
957
|
+
var t = {}, r = hr(e);
|
|
986
958
|
return r || t;
|
|
987
959
|
}
|
|
988
|
-
function
|
|
960
|
+
function Qi(e) {
|
|
989
961
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
990
962
|
var n = i[r];
|
|
991
963
|
switch (n.stem) {
|
|
@@ -1009,7 +981,7 @@ function zi(e) {
|
|
|
1009
981
|
continue;
|
|
1010
982
|
case "measure-unit":
|
|
1011
983
|
case "unit":
|
|
1012
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = Xi(n.options[0]);
|
|
1013
985
|
continue;
|
|
1014
986
|
case "compact-short":
|
|
1015
987
|
case "K":
|
|
@@ -1020,13 +992,13 @@ function zi(e) {
|
|
|
1020
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1021
993
|
continue;
|
|
1022
994
|
case "scientific":
|
|
1023
|
-
t =
|
|
1024
|
-
return
|
|
995
|
+
t = w(w(w({}, t), { notation: "scientific" }), n.options.reduce(function(l, u) {
|
|
996
|
+
return w(w({}, l), Pt(u));
|
|
1025
997
|
}, {}));
|
|
1026
998
|
continue;
|
|
1027
999
|
case "engineering":
|
|
1028
|
-
t =
|
|
1029
|
-
return
|
|
1000
|
+
t = w(w(w({}, t), { notation: "engineering" }), n.options.reduce(function(l, u) {
|
|
1001
|
+
return w(w({}, l), Pt(u));
|
|
1030
1002
|
}, {}));
|
|
1031
1003
|
continue;
|
|
1032
1004
|
case "notation-simple":
|
|
@@ -1071,7 +1043,7 @@ function zi(e) {
|
|
|
1071
1043
|
case "integer-width":
|
|
1072
1044
|
if (n.options.length > 1)
|
|
1073
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1074
|
-
n.options[0].replace(
|
|
1046
|
+
n.options[0].replace(zi, function(l, u, h, c, f, p) {
|
|
1075
1047
|
if (u)
|
|
1076
1048
|
t.minimumIntegerDigits = h.length;
|
|
1077
1049
|
else {
|
|
@@ -1084,28 +1056,28 @@ function zi(e) {
|
|
|
1084
1056
|
});
|
|
1085
1057
|
continue;
|
|
1086
1058
|
}
|
|
1087
|
-
if (
|
|
1059
|
+
if (lr.test(n.stem)) {
|
|
1088
1060
|
t.minimumIntegerDigits = n.stem.length;
|
|
1089
1061
|
continue;
|
|
1090
1062
|
}
|
|
1091
|
-
if (
|
|
1063
|
+
if (wt.test(n.stem)) {
|
|
1092
1064
|
if (n.options.length > 1)
|
|
1093
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1094
|
-
n.stem.replace(
|
|
1066
|
+
n.stem.replace(wt, function(l, u, h, c, f, p) {
|
|
1095
1067
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1096
1068
|
});
|
|
1097
1069
|
var o = n.options[0];
|
|
1098
|
-
o === "w" ? t =
|
|
1070
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), At(o)));
|
|
1099
1071
|
continue;
|
|
1100
1072
|
}
|
|
1101
|
-
if (
|
|
1102
|
-
t =
|
|
1073
|
+
if (ur.test(n.stem)) {
|
|
1074
|
+
t = w(w({}, t), At(n.stem));
|
|
1103
1075
|
continue;
|
|
1104
1076
|
}
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1077
|
+
var s = hr(n.stem);
|
|
1078
|
+
s && (t = w(w({}, t), s));
|
|
1079
|
+
var a = Zi(n.stem);
|
|
1080
|
+
a && (t = w(w({}, t), a));
|
|
1109
1081
|
}
|
|
1110
1082
|
return t;
|
|
1111
1083
|
}
|
|
@@ -2524,23 +2496,23 @@ var ve = {
|
|
|
2524
2496
|
"h"
|
|
2525
2497
|
]
|
|
2526
2498
|
};
|
|
2527
|
-
function
|
|
2499
|
+
function Yi(e, t) {
|
|
2528
2500
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2529
2501
|
var n = e.charAt(i);
|
|
2530
2502
|
if (n === "j") {
|
|
2531
2503
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2532
2504
|
o++, i++;
|
|
2533
|
-
var
|
|
2534
|
-
for ((u == "H" || u == "k") && (
|
|
2505
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ji(t);
|
|
2506
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2535
2507
|
r += l;
|
|
2536
|
-
for (;
|
|
2508
|
+
for (; s-- > 0; )
|
|
2537
2509
|
r = u + r;
|
|
2538
2510
|
} else
|
|
2539
2511
|
n === "J" ? r += "H" : r += n;
|
|
2540
2512
|
}
|
|
2541
2513
|
return r;
|
|
2542
2514
|
}
|
|
2543
|
-
function
|
|
2515
|
+
function Ji(e) {
|
|
2544
2516
|
var t = e.hourCycle;
|
|
2545
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2546
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2562,20 +2534,20 @@ function Qi(e) {
|
|
|
2562
2534
|
var n = ve[i || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2563
2535
|
return n[0];
|
|
2564
2536
|
}
|
|
2565
|
-
var
|
|
2537
|
+
var Ve, qi = new RegExp("^".concat(ar.source, "*")), Ki = new RegExp("".concat(ar.source, "*$"));
|
|
2566
2538
|
function E(e, t) {
|
|
2567
2539
|
return { start: e, end: t };
|
|
2568
2540
|
}
|
|
2569
|
-
var
|
|
2541
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, sn = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
|
|
2570
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2571
2543
|
}, et = !0;
|
|
2572
2544
|
try {
|
|
2573
|
-
var
|
|
2574
|
-
et = ((
|
|
2545
|
+
var ln = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
et = ((Ve = ln.exec("a")) === null || Ve === void 0 ? void 0 : Ve[0]) === "a";
|
|
2575
2547
|
} catch (e) {
|
|
2576
2548
|
et = !1;
|
|
2577
2549
|
}
|
|
2578
|
-
var
|
|
2550
|
+
var Ht = en ? (
|
|
2579
2551
|
// Native
|
|
2580
2552
|
function(t, r, i) {
|
|
2581
2553
|
return t.startsWith(r, i);
|
|
@@ -2585,31 +2557,31 @@ var At = qi ? (
|
|
|
2585
2557
|
function(t, r, i) {
|
|
2586
2558
|
return t.slice(i, i + r.length) === r;
|
|
2587
2559
|
}
|
|
2588
|
-
), tt =
|
|
2560
|
+
), tt = tn ? String.fromCodePoint : (
|
|
2589
2561
|
// IE11
|
|
2590
2562
|
function() {
|
|
2591
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2592
2564
|
t[r] = arguments[r];
|
|
2593
|
-
for (var i = "", n = t.length, o = 0,
|
|
2594
|
-
if (
|
|
2595
|
-
throw RangeError(
|
|
2596
|
-
i +=
|
|
2565
|
+
for (var i = "", n = t.length, o = 0, s; n > o; ) {
|
|
2566
|
+
if (s = t[o++], s > 1114111)
|
|
2567
|
+
throw RangeError(s + " is not a valid code point");
|
|
2568
|
+
i += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2597
2569
|
}
|
|
2598
2570
|
return i;
|
|
2599
2571
|
}
|
|
2600
|
-
),
|
|
2572
|
+
), Ot = (
|
|
2601
2573
|
// native
|
|
2602
|
-
|
|
2574
|
+
rn ? Object.fromEntries : (
|
|
2603
2575
|
// Ponyfill
|
|
2604
2576
|
function(t) {
|
|
2605
2577
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
2606
|
-
var o = n[i],
|
|
2607
|
-
r[
|
|
2578
|
+
var o = n[i], s = o[0], a = o[1];
|
|
2579
|
+
r[s] = a;
|
|
2608
2580
|
}
|
|
2609
2581
|
return r;
|
|
2610
2582
|
}
|
|
2611
2583
|
)
|
|
2612
|
-
),
|
|
2584
|
+
), cr = nn ? (
|
|
2613
2585
|
// Native
|
|
2614
2586
|
function(t, r) {
|
|
2615
2587
|
return t.codePointAt(r);
|
|
@@ -2623,7 +2595,7 @@ var At = qi ? (
|
|
|
2623
2595
|
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2624
2596
|
}
|
|
2625
2597
|
}
|
|
2626
|
-
),
|
|
2598
|
+
), hn = on ? (
|
|
2627
2599
|
// Native
|
|
2628
2600
|
function(t) {
|
|
2629
2601
|
return t.trimStart();
|
|
@@ -2631,9 +2603,9 @@ var At = qi ? (
|
|
|
2631
2603
|
) : (
|
|
2632
2604
|
// Ponyfill
|
|
2633
2605
|
function(t) {
|
|
2634
|
-
return t.replace(
|
|
2606
|
+
return t.replace(qi, "");
|
|
2635
2607
|
}
|
|
2636
|
-
),
|
|
2608
|
+
), cn = sn ? (
|
|
2637
2609
|
// Native
|
|
2638
2610
|
function(t) {
|
|
2639
2611
|
return t.trimEnd();
|
|
@@ -2641,32 +2613,32 @@ var At = qi ? (
|
|
|
2641
2613
|
) : (
|
|
2642
2614
|
// Ponyfill
|
|
2643
2615
|
function(t) {
|
|
2644
|
-
return t.replace(
|
|
2616
|
+
return t.replace(Ki, "");
|
|
2645
2617
|
}
|
|
2646
2618
|
);
|
|
2647
|
-
function
|
|
2619
|
+
function fr(e, t) {
|
|
2648
2620
|
return new RegExp(e, t);
|
|
2649
2621
|
}
|
|
2650
2622
|
var rt;
|
|
2651
2623
|
if (et) {
|
|
2652
|
-
var
|
|
2624
|
+
var It = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2653
2625
|
rt = function(t, r) {
|
|
2654
2626
|
var i;
|
|
2655
|
-
|
|
2656
|
-
var n =
|
|
2627
|
+
It.lastIndex = r;
|
|
2628
|
+
var n = It.exec(t);
|
|
2657
2629
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2658
2630
|
};
|
|
2659
2631
|
} else
|
|
2660
2632
|
rt = function(t, r) {
|
|
2661
2633
|
for (var i = []; ; ) {
|
|
2662
|
-
var n =
|
|
2663
|
-
if (n === void 0 ||
|
|
2634
|
+
var n = cr(t, r);
|
|
2635
|
+
if (n === void 0 || mr(n) || dn(n))
|
|
2664
2636
|
break;
|
|
2665
2637
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2666
2638
|
}
|
|
2667
2639
|
return tt.apply(void 0, i);
|
|
2668
2640
|
};
|
|
2669
|
-
var
|
|
2641
|
+
var fn = (
|
|
2670
2642
|
/** @class */
|
|
2671
2643
|
function() {
|
|
2672
2644
|
function e(t, r) {
|
|
@@ -2680,33 +2652,33 @@ var hn = (
|
|
|
2680
2652
|
for (var n = []; !this.isEOF(); ) {
|
|
2681
2653
|
var o = this.char();
|
|
2682
2654
|
if (o === 123) {
|
|
2683
|
-
var
|
|
2684
|
-
if (
|
|
2685
|
-
return
|
|
2686
|
-
n.push(
|
|
2655
|
+
var s = this.parseArgument(t, i);
|
|
2656
|
+
if (s.err)
|
|
2657
|
+
return s;
|
|
2658
|
+
n.push(s.val);
|
|
2687
2659
|
} else {
|
|
2688
2660
|
if (o === 125 && t > 0)
|
|
2689
2661
|
break;
|
|
2690
2662
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2691
|
-
var
|
|
2663
|
+
var a = this.clonePosition();
|
|
2692
2664
|
this.bump(), n.push({
|
|
2693
|
-
type:
|
|
2694
|
-
location: E(
|
|
2665
|
+
type: L.pound,
|
|
2666
|
+
location: E(a, this.clonePosition())
|
|
2695
2667
|
});
|
|
2696
2668
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2697
2669
|
if (i)
|
|
2698
2670
|
break;
|
|
2699
|
-
return this.error(
|
|
2671
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2700
2672
|
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
2701
|
-
var
|
|
2702
|
-
if (
|
|
2703
|
-
return
|
|
2704
|
-
n.push(
|
|
2673
|
+
var s = this.parseTag(t, r);
|
|
2674
|
+
if (s.err)
|
|
2675
|
+
return s;
|
|
2676
|
+
n.push(s.val);
|
|
2705
2677
|
} else {
|
|
2706
|
-
var
|
|
2707
|
-
if (
|
|
2708
|
-
return
|
|
2709
|
-
n.push(
|
|
2678
|
+
var s = this.parseLiteral(t, r);
|
|
2679
|
+
if (s.err)
|
|
2680
|
+
return s;
|
|
2681
|
+
n.push(s.val);
|
|
2710
2682
|
}
|
|
2711
2683
|
}
|
|
2712
2684
|
}
|
|
@@ -2718,7 +2690,7 @@ var hn = (
|
|
|
2718
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2719
2691
|
return {
|
|
2720
2692
|
val: {
|
|
2721
|
-
type:
|
|
2693
|
+
type: L.literal,
|
|
2722
2694
|
value: "<".concat(n, "/>"),
|
|
2723
2695
|
location: E(i, this.clonePosition())
|
|
2724
2696
|
},
|
|
@@ -2728,27 +2700,27 @@ var hn = (
|
|
|
2728
2700
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2729
2701
|
if (o.err)
|
|
2730
2702
|
return o;
|
|
2731
|
-
var
|
|
2703
|
+
var s = o.val, a = this.clonePosition();
|
|
2732
2704
|
if (this.bumpIf("</")) {
|
|
2733
2705
|
if (this.isEOF() || !it(this.char()))
|
|
2734
|
-
return this.error(
|
|
2706
|
+
return this.error(b.INVALID_TAG, E(a, this.clonePosition()));
|
|
2735
2707
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2736
|
-
return n !== u ? this.error(
|
|
2708
|
+
return n !== u ? this.error(b.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2737
2709
|
val: {
|
|
2738
|
-
type:
|
|
2710
|
+
type: L.tag,
|
|
2739
2711
|
value: n,
|
|
2740
|
-
children:
|
|
2712
|
+
children: s,
|
|
2741
2713
|
location: E(i, this.clonePosition())
|
|
2742
2714
|
},
|
|
2743
2715
|
err: null
|
|
2744
|
-
} : this.error(
|
|
2716
|
+
} : this.error(b.INVALID_TAG, E(a, this.clonePosition())));
|
|
2745
2717
|
} else
|
|
2746
|
-
return this.error(
|
|
2718
|
+
return this.error(b.UNCLOSED_TAG, E(i, this.clonePosition()));
|
|
2747
2719
|
} else
|
|
2748
|
-
return this.error(
|
|
2720
|
+
return this.error(b.INVALID_TAG, E(i, this.clonePosition()));
|
|
2749
2721
|
}, e.prototype.parseTagName = function() {
|
|
2750
2722
|
var t = this.offset();
|
|
2751
|
-
for (this.bump(); !this.isEOF() &&
|
|
2723
|
+
for (this.bump(); !this.isEOF() && pn(this.char()); )
|
|
2752
2724
|
this.bump();
|
|
2753
2725
|
return this.message.slice(t, this.offset());
|
|
2754
2726
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2758,26 +2730,26 @@ var hn = (
|
|
|
2758
2730
|
n += o;
|
|
2759
2731
|
continue;
|
|
2760
2732
|
}
|
|
2761
|
-
var
|
|
2762
|
-
if (a) {
|
|
2763
|
-
n += a;
|
|
2764
|
-
continue;
|
|
2765
|
-
}
|
|
2766
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2733
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2767
2734
|
if (s) {
|
|
2768
2735
|
n += s;
|
|
2769
2736
|
continue;
|
|
2770
2737
|
}
|
|
2738
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2739
|
+
if (a) {
|
|
2740
|
+
n += a;
|
|
2741
|
+
continue;
|
|
2742
|
+
}
|
|
2771
2743
|
break;
|
|
2772
2744
|
}
|
|
2773
2745
|
var l = E(i, this.clonePosition());
|
|
2774
2746
|
return {
|
|
2775
|
-
val: { type:
|
|
2747
|
+
val: { type: L.literal, value: n, location: l },
|
|
2776
2748
|
err: null
|
|
2777
2749
|
};
|
|
2778
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2779
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2780
|
-
!
|
|
2752
|
+
!mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2781
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2782
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2783
2755
|
return null;
|
|
@@ -2820,19 +2792,19 @@ var hn = (
|
|
|
2820
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2821
2793
|
var i = this.clonePosition();
|
|
2822
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2823
|
-
return this.error(
|
|
2795
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition()));
|
|
2824
2796
|
if (this.char() === 125)
|
|
2825
|
-
return this.bump(), this.error(
|
|
2797
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, E(i, this.clonePosition()));
|
|
2826
2798
|
var n = this.parseIdentifierIfPossible().value;
|
|
2827
2799
|
if (!n)
|
|
2828
|
-
return this.error(
|
|
2800
|
+
return this.error(b.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
2829
2801
|
if (this.bumpSpace(), this.isEOF())
|
|
2830
|
-
return this.error(
|
|
2802
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition()));
|
|
2831
2803
|
switch (this.char()) {
|
|
2832
2804
|
case 125:
|
|
2833
2805
|
return this.bump(), {
|
|
2834
2806
|
val: {
|
|
2835
|
-
type:
|
|
2807
|
+
type: L.argument,
|
|
2836
2808
|
// value does not include the opening and closing braces.
|
|
2837
2809
|
value: n,
|
|
2838
2810
|
location: E(i, this.clonePosition())
|
|
@@ -2840,20 +2812,20 @@ var hn = (
|
|
|
2840
2812
|
err: null
|
|
2841
2813
|
};
|
|
2842
2814
|
case 44:
|
|
2843
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2815
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2844
2816
|
default:
|
|
2845
|
-
return this.error(
|
|
2817
|
+
return this.error(b.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
2846
2818
|
}
|
|
2847
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2848
2820
|
var t = this.clonePosition(), r = this.offset(), i = rt(this.message, r), n = r + i.length;
|
|
2849
2821
|
this.bumpTo(n);
|
|
2850
|
-
var o = this.clonePosition(),
|
|
2851
|
-
return { value: i, location:
|
|
2822
|
+
var o = this.clonePosition(), s = E(t, o);
|
|
2823
|
+
return { value: i, location: s };
|
|
2852
2824
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2853
|
-
var o,
|
|
2854
|
-
switch (
|
|
2825
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2826
|
+
switch (a) {
|
|
2855
2827
|
case "":
|
|
2856
|
-
return this.error(
|
|
2828
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, E(s, l));
|
|
2857
2829
|
case "number":
|
|
2858
2830
|
case "date":
|
|
2859
2831
|
case "time": {
|
|
@@ -2864,9 +2836,9 @@ var hn = (
|
|
|
2864
2836
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2865
2837
|
if (c.err)
|
|
2866
2838
|
return c;
|
|
2867
|
-
var f =
|
|
2839
|
+
var f = cn(c.val);
|
|
2868
2840
|
if (f.length === 0)
|
|
2869
|
-
return this.error(
|
|
2841
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2870
2842
|
var p = E(h, this.clonePosition());
|
|
2871
2843
|
u = { style: f, styleLocation: p };
|
|
2872
2844
|
}
|
|
@@ -2874,34 +2846,34 @@ var hn = (
|
|
|
2874
2846
|
if (y.err)
|
|
2875
2847
|
return y;
|
|
2876
2848
|
var d = E(n, this.clonePosition());
|
|
2877
|
-
if (u &&
|
|
2878
|
-
var v =
|
|
2879
|
-
if (
|
|
2849
|
+
if (u && Ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2850
|
+
var v = hn(u.style.slice(2));
|
|
2851
|
+
if (a === "number") {
|
|
2880
2852
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2881
2853
|
return c.err ? c : {
|
|
2882
|
-
val: { type:
|
|
2854
|
+
val: { type: L.number, value: i, location: d, style: c.val },
|
|
2883
2855
|
err: null
|
|
2884
2856
|
};
|
|
2885
2857
|
} else {
|
|
2886
2858
|
if (v.length === 0)
|
|
2887
|
-
return this.error(
|
|
2888
|
-
var
|
|
2889
|
-
this.locale && (
|
|
2859
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
2860
|
+
var H = v;
|
|
2861
|
+
this.locale && (H = Yi(v, this.locale));
|
|
2890
2862
|
var f = {
|
|
2891
|
-
type:
|
|
2892
|
-
pattern:
|
|
2863
|
+
type: K.dateTime,
|
|
2864
|
+
pattern: H,
|
|
2893
2865
|
location: u.styleLocation,
|
|
2894
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2895
|
-
},
|
|
2866
|
+
parsedOptions: this.shouldParseSkeletons ? ki(H) : {}
|
|
2867
|
+
}, g = a === "date" ? L.date : L.time;
|
|
2896
2868
|
return {
|
|
2897
|
-
val: { type:
|
|
2869
|
+
val: { type: g, value: i, location: d, style: f },
|
|
2898
2870
|
err: null
|
|
2899
2871
|
};
|
|
2900
2872
|
}
|
|
2901
2873
|
}
|
|
2902
2874
|
return {
|
|
2903
2875
|
val: {
|
|
2904
|
-
type:
|
|
2876
|
+
type: a === "number" ? L.number : a === "date" ? L.date : L.time,
|
|
2905
2877
|
value: i,
|
|
2906
2878
|
location: d,
|
|
2907
2879
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -2912,52 +2884,52 @@ var hn = (
|
|
|
2912
2884
|
case "plural":
|
|
2913
2885
|
case "selectordinal":
|
|
2914
2886
|
case "select": {
|
|
2915
|
-
var
|
|
2887
|
+
var S = this.clonePosition();
|
|
2916
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2917
|
-
return this.error(
|
|
2889
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, we({}, S)));
|
|
2918
2890
|
this.bumpSpace();
|
|
2919
|
-
var
|
|
2920
|
-
if (
|
|
2891
|
+
var D = this.parseIdentifierIfPossible(), R = 0;
|
|
2892
|
+
if (a !== "select" && D.value === "offset") {
|
|
2921
2893
|
if (!this.bumpIf(":"))
|
|
2922
|
-
return this.error(
|
|
2894
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2923
2895
|
this.bumpSpace();
|
|
2924
|
-
var c = this.tryParseDecimalInteger(
|
|
2896
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2925
2897
|
if (c.err)
|
|
2926
2898
|
return c;
|
|
2927
|
-
this.bumpSpace(),
|
|
2899
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), R = c.val;
|
|
2928
2900
|
}
|
|
2929
|
-
var
|
|
2930
|
-
if (
|
|
2931
|
-
return
|
|
2901
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, D);
|
|
2902
|
+
if ($.err)
|
|
2903
|
+
return $;
|
|
2932
2904
|
var y = this.tryParseArgumentClose(n);
|
|
2933
2905
|
if (y.err)
|
|
2934
2906
|
return y;
|
|
2935
2907
|
var W = E(n, this.clonePosition());
|
|
2936
|
-
return
|
|
2908
|
+
return a === "select" ? {
|
|
2937
2909
|
val: {
|
|
2938
|
-
type:
|
|
2910
|
+
type: L.select,
|
|
2939
2911
|
value: i,
|
|
2940
|
-
options:
|
|
2912
|
+
options: Ot($.val),
|
|
2941
2913
|
location: W
|
|
2942
2914
|
},
|
|
2943
2915
|
err: null
|
|
2944
2916
|
} : {
|
|
2945
2917
|
val: {
|
|
2946
|
-
type:
|
|
2918
|
+
type: L.plural,
|
|
2947
2919
|
value: i,
|
|
2948
|
-
options:
|
|
2920
|
+
options: Ot($.val),
|
|
2949
2921
|
offset: R,
|
|
2950
|
-
pluralType:
|
|
2922
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2951
2923
|
location: W
|
|
2952
2924
|
},
|
|
2953
2925
|
err: null
|
|
2954
2926
|
};
|
|
2955
2927
|
}
|
|
2956
2928
|
default:
|
|
2957
|
-
return this.error(
|
|
2929
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, E(s, l));
|
|
2958
2930
|
}
|
|
2959
2931
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2960
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2932
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2961
2933
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2962
2934
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2963
2935
|
var i = this.char();
|
|
@@ -2966,7 +2938,7 @@ var hn = (
|
|
|
2966
2938
|
this.bump();
|
|
2967
2939
|
var n = this.clonePosition();
|
|
2968
2940
|
if (!this.bumpUntil("'"))
|
|
2969
|
-
return this.error(
|
|
2941
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(n, this.clonePosition()));
|
|
2970
2942
|
this.bump();
|
|
2971
2943
|
break;
|
|
2972
2944
|
}
|
|
@@ -2996,25 +2968,25 @@ var hn = (
|
|
|
2996
2968
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2997
2969
|
var i = [];
|
|
2998
2970
|
try {
|
|
2999
|
-
i =
|
|
2971
|
+
i = Wi(t);
|
|
3000
2972
|
} catch (n) {
|
|
3001
|
-
return this.error(
|
|
2973
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3002
2974
|
}
|
|
3003
2975
|
return {
|
|
3004
2976
|
val: {
|
|
3005
|
-
type:
|
|
2977
|
+
type: K.number,
|
|
3006
2978
|
tokens: i,
|
|
3007
2979
|
location: r,
|
|
3008
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? Qi(i) : {}
|
|
3009
2981
|
},
|
|
3010
2982
|
err: null
|
|
3011
2983
|
};
|
|
3012
2984
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
3013
|
-
for (var o,
|
|
2985
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
3014
2986
|
if (u.length === 0) {
|
|
3015
2987
|
var c = this.clonePosition();
|
|
3016
2988
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3017
|
-
var f = this.tryParseDecimalInteger(
|
|
2989
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3018
2990
|
if (f.err)
|
|
3019
2991
|
return f;
|
|
3020
2992
|
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3022,18 +2994,18 @@ var hn = (
|
|
|
3022
2994
|
break;
|
|
3023
2995
|
}
|
|
3024
2996
|
if (l.has(u))
|
|
3025
|
-
return this.error(r === "select" ?
|
|
3026
|
-
u === "other" && (
|
|
2997
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2998
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3027
2999
|
var p = this.clonePosition();
|
|
3028
3000
|
if (!this.bumpIf("{"))
|
|
3029
|
-
return this.error(r === "select" ?
|
|
3001
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3030
3002
|
var y = this.parseMessage(t + 1, r, i);
|
|
3031
3003
|
if (y.err)
|
|
3032
3004
|
return y;
|
|
3033
3005
|
var d = this.tryParseArgumentClose(p);
|
|
3034
3006
|
if (d.err)
|
|
3035
3007
|
return d;
|
|
3036
|
-
|
|
3008
|
+
a.push([
|
|
3037
3009
|
u,
|
|
3038
3010
|
{
|
|
3039
3011
|
value: y.val,
|
|
@@ -3041,19 +3013,19 @@ var hn = (
|
|
|
3041
3013
|
}
|
|
3042
3014
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3043
3015
|
}
|
|
3044
|
-
return
|
|
3016
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3045
3017
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3046
3018
|
var i = 1, n = this.clonePosition();
|
|
3047
3019
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3048
|
-
for (var o = !1,
|
|
3049
|
-
var
|
|
3050
|
-
if (
|
|
3051
|
-
o = !0,
|
|
3020
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3021
|
+
var a = this.char();
|
|
3022
|
+
if (a >= 48 && a <= 57)
|
|
3023
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3052
3024
|
else
|
|
3053
3025
|
break;
|
|
3054
3026
|
}
|
|
3055
3027
|
var l = E(n, this.clonePosition());
|
|
3056
|
-
return o ? (
|
|
3028
|
+
return o ? (s *= i, un(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3057
3029
|
}, e.prototype.offset = function() {
|
|
3058
3030
|
return this.position.offset;
|
|
3059
3031
|
}, e.prototype.isEOF = function() {
|
|
@@ -3068,7 +3040,7 @@ var hn = (
|
|
|
3068
3040
|
var t = this.position.offset;
|
|
3069
3041
|
if (t >= this.message.length)
|
|
3070
3042
|
throw Error("out of bound");
|
|
3071
|
-
var r =
|
|
3043
|
+
var r = cr(this.message, t);
|
|
3072
3044
|
if (r === void 0)
|
|
3073
3045
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3074
3046
|
return r;
|
|
@@ -3087,7 +3059,7 @@ var hn = (
|
|
|
3087
3059
|
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);
|
|
3088
3060
|
}
|
|
3089
3061
|
}, e.prototype.bumpIf = function(t) {
|
|
3090
|
-
if (
|
|
3062
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3091
3063
|
for (var r = 0; r < t.length; r++)
|
|
3092
3064
|
this.bump();
|
|
3093
3065
|
return !0;
|
|
@@ -3109,7 +3081,7 @@ var hn = (
|
|
|
3109
3081
|
break;
|
|
3110
3082
|
}
|
|
3111
3083
|
}, e.prototype.bumpSpace = function() {
|
|
3112
|
-
for (; !this.isEOF() &&
|
|
3084
|
+
for (; !this.isEOF() && mr(this.char()); )
|
|
3113
3085
|
this.bump();
|
|
3114
3086
|
}, e.prototype.peek = function() {
|
|
3115
3087
|
if (this.isEOF())
|
|
@@ -3122,44 +3094,44 @@ var hn = (
|
|
|
3122
3094
|
function it(e) {
|
|
3123
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3124
3096
|
}
|
|
3125
|
-
function
|
|
3097
|
+
function mn(e) {
|
|
3126
3098
|
return it(e) || e === 47;
|
|
3127
3099
|
}
|
|
3128
|
-
function
|
|
3100
|
+
function pn(e) {
|
|
3129
3101
|
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;
|
|
3130
3102
|
}
|
|
3131
|
-
function
|
|
3103
|
+
function mr(e) {
|
|
3132
3104
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3133
3105
|
}
|
|
3134
|
-
function
|
|
3106
|
+
function dn(e) {
|
|
3135
3107
|
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;
|
|
3136
3108
|
}
|
|
3137
3109
|
function nt(e) {
|
|
3138
3110
|
e.forEach(function(t) {
|
|
3139
|
-
if (delete t.location,
|
|
3111
|
+
if (delete t.location, ir(t) || nr(t))
|
|
3140
3112
|
for (var r in t.options)
|
|
3141
3113
|
delete t.options[r].location, nt(t.options[r].value);
|
|
3142
3114
|
else
|
|
3143
|
-
|
|
3115
|
+
er(t) && sr(t.style) || (tr(t) || rr(t)) && Ke(t.style) ? delete t.style.location : or(t) && nt(t.children);
|
|
3144
3116
|
});
|
|
3145
3117
|
}
|
|
3146
|
-
function
|
|
3147
|
-
t === void 0 && (t = {}), t =
|
|
3148
|
-
var r = new
|
|
3118
|
+
function yn(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
+
var r = new fn(e, t).parse();
|
|
3149
3121
|
if (r.err) {
|
|
3150
|
-
var i = SyntaxError(
|
|
3122
|
+
var i = SyntaxError(b[r.err.kind]);
|
|
3151
3123
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3152
3124
|
}
|
|
3153
3125
|
return t != null && t.captureLocation || nt(r.val), r.val;
|
|
3154
3126
|
}
|
|
3155
|
-
var
|
|
3127
|
+
var ee;
|
|
3156
3128
|
(function(e) {
|
|
3157
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3158
|
-
})(
|
|
3159
|
-
var
|
|
3130
|
+
})(ee || (ee = {}));
|
|
3131
|
+
var Ie = (
|
|
3160
3132
|
/** @class */
|
|
3161
3133
|
function(e) {
|
|
3162
|
-
|
|
3134
|
+
Oe(t, e);
|
|
3163
3135
|
function t(r, i, n) {
|
|
3164
3136
|
var o = e.call(this, r) || this;
|
|
3165
3137
|
return o.code = i, o.originalMessage = n, o;
|
|
@@ -3168,155 +3140,155 @@ var Pe = (
|
|
|
3168
3140
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3169
3141
|
}, t;
|
|
3170
3142
|
}(Error)
|
|
3171
|
-
),
|
|
3143
|
+
), Bt = (
|
|
3172
3144
|
/** @class */
|
|
3173
3145
|
function(e) {
|
|
3174
|
-
|
|
3146
|
+
Oe(t, e);
|
|
3175
3147
|
function t(r, i, n, o) {
|
|
3176
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3177
3149
|
}
|
|
3178
3150
|
return t;
|
|
3179
|
-
}(
|
|
3180
|
-
),
|
|
3151
|
+
}(Ie)
|
|
3152
|
+
), gn = (
|
|
3181
3153
|
/** @class */
|
|
3182
3154
|
function(e) {
|
|
3183
|
-
|
|
3155
|
+
Oe(t, e);
|
|
3184
3156
|
function t(r, i, n) {
|
|
3185
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), ee.INVALID_VALUE, n) || this;
|
|
3186
3158
|
}
|
|
3187
3159
|
return t;
|
|
3188
|
-
}(
|
|
3189
|
-
),
|
|
3160
|
+
}(Ie)
|
|
3161
|
+
), bn = (
|
|
3190
3162
|
/** @class */
|
|
3191
3163
|
function(e) {
|
|
3192
|
-
|
|
3164
|
+
Oe(t, e);
|
|
3193
3165
|
function t(r, i) {
|
|
3194
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), ee.MISSING_VALUE, i) || this;
|
|
3195
3167
|
}
|
|
3196
3168
|
return t;
|
|
3197
|
-
}(
|
|
3198
|
-
),
|
|
3169
|
+
}(Ie)
|
|
3170
|
+
), O;
|
|
3199
3171
|
(function(e) {
|
|
3200
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3201
|
-
})(
|
|
3202
|
-
function
|
|
3173
|
+
})(O || (O = {}));
|
|
3174
|
+
function vn(e) {
|
|
3203
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3204
3176
|
var i = t[t.length - 1];
|
|
3205
|
-
return !i || i.type !==
|
|
3177
|
+
return !i || i.type !== O.literal || r.type !== O.literal ? t.push(r) : i.value += r.value, t;
|
|
3206
3178
|
}, []);
|
|
3207
3179
|
}
|
|
3208
|
-
function
|
|
3180
|
+
function En(e) {
|
|
3209
3181
|
return typeof e == "function";
|
|
3210
3182
|
}
|
|
3211
|
-
function xe(e, t, r, i, n, o,
|
|
3212
|
-
if (e.length === 1 &&
|
|
3183
|
+
function xe(e, t, r, i, n, o, s) {
|
|
3184
|
+
if (e.length === 1 && St(e[0]))
|
|
3213
3185
|
return [
|
|
3214
3186
|
{
|
|
3215
|
-
type:
|
|
3187
|
+
type: O.literal,
|
|
3216
3188
|
value: e[0].value
|
|
3217
3189
|
}
|
|
3218
3190
|
];
|
|
3219
|
-
for (var
|
|
3191
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3220
3192
|
var h = u[l];
|
|
3221
|
-
if (
|
|
3222
|
-
|
|
3223
|
-
type:
|
|
3193
|
+
if (St(h)) {
|
|
3194
|
+
a.push({
|
|
3195
|
+
type: O.literal,
|
|
3224
3196
|
value: h.value
|
|
3225
3197
|
});
|
|
3226
3198
|
continue;
|
|
3227
3199
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
typeof o == "number" &&
|
|
3230
|
-
type:
|
|
3200
|
+
if (Fi(h)) {
|
|
3201
|
+
typeof o == "number" && a.push({
|
|
3202
|
+
type: O.literal,
|
|
3231
3203
|
value: r.getNumberFormat(t).format(o)
|
|
3232
3204
|
});
|
|
3233
3205
|
continue;
|
|
3234
3206
|
}
|
|
3235
3207
|
var c = h.value;
|
|
3236
3208
|
if (!(n && c in n))
|
|
3237
|
-
throw new
|
|
3209
|
+
throw new bn(c, s);
|
|
3238
3210
|
var f = n[c];
|
|
3239
|
-
if (
|
|
3240
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3241
|
-
type: typeof f == "string" ?
|
|
3211
|
+
if (Gi(h)) {
|
|
3212
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3213
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3242
3214
|
value: f
|
|
3243
3215
|
});
|
|
3244
3216
|
continue;
|
|
3245
3217
|
}
|
|
3246
|
-
if (
|
|
3218
|
+
if (tr(h)) {
|
|
3247
3219
|
var p = typeof h.style == "string" ? i.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3248
|
-
|
|
3249
|
-
type:
|
|
3220
|
+
a.push({
|
|
3221
|
+
type: O.literal,
|
|
3250
3222
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3251
3223
|
});
|
|
3252
3224
|
continue;
|
|
3253
3225
|
}
|
|
3254
|
-
if (
|
|
3226
|
+
if (rr(h)) {
|
|
3255
3227
|
var p = typeof h.style == "string" ? i.time[h.style] : Ke(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3256
|
-
|
|
3257
|
-
type:
|
|
3228
|
+
a.push({
|
|
3229
|
+
type: O.literal,
|
|
3258
3230
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3259
3231
|
});
|
|
3260
3232
|
continue;
|
|
3261
3233
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
var p = typeof h.style == "string" ? i.number[h.style] :
|
|
3264
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3265
|
-
type:
|
|
3234
|
+
if (er(h)) {
|
|
3235
|
+
var p = typeof h.style == "string" ? i.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3236
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3237
|
+
type: O.literal,
|
|
3266
3238
|
value: r.getNumberFormat(t, p).format(f)
|
|
3267
3239
|
});
|
|
3268
3240
|
continue;
|
|
3269
3241
|
}
|
|
3270
|
-
if (
|
|
3242
|
+
if (or(h)) {
|
|
3271
3243
|
var y = h.children, d = h.value, v = n[d];
|
|
3272
|
-
if (!
|
|
3273
|
-
throw new
|
|
3274
|
-
var
|
|
3244
|
+
if (!En(v))
|
|
3245
|
+
throw new gn(d, "function", s);
|
|
3246
|
+
var H = xe(y, t, r, i, n, o), g = v(H.map(function(R) {
|
|
3275
3247
|
return R.value;
|
|
3276
3248
|
}));
|
|
3277
|
-
Array.isArray(
|
|
3249
|
+
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(R) {
|
|
3278
3250
|
return {
|
|
3279
|
-
type: typeof R == "string" ?
|
|
3251
|
+
type: typeof R == "string" ? O.literal : O.object,
|
|
3280
3252
|
value: R
|
|
3281
3253
|
};
|
|
3282
3254
|
}));
|
|
3283
3255
|
}
|
|
3284
|
-
if (
|
|
3285
|
-
var
|
|
3286
|
-
if (!
|
|
3287
|
-
throw new
|
|
3288
|
-
|
|
3256
|
+
if (ir(h)) {
|
|
3257
|
+
var S = h.options[f] || h.options.other;
|
|
3258
|
+
if (!S)
|
|
3259
|
+
throw new Bt(h.value, f, Object.keys(h.options), s);
|
|
3260
|
+
a.push.apply(a, xe(S.value, t, r, i, n));
|
|
3289
3261
|
continue;
|
|
3290
3262
|
}
|
|
3291
|
-
if (
|
|
3292
|
-
var
|
|
3293
|
-
if (!
|
|
3263
|
+
if (nr(h)) {
|
|
3264
|
+
var S = h.options["=".concat(f)];
|
|
3265
|
+
if (!S) {
|
|
3294
3266
|
if (!Intl.PluralRules)
|
|
3295
|
-
throw new
|
|
3267
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3296
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3297
|
-
`,
|
|
3298
|
-
var
|
|
3299
|
-
|
|
3269
|
+
`, ee.MISSING_INTL_API, s);
|
|
3270
|
+
var D = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3271
|
+
S = h.options[D] || h.options.other;
|
|
3300
3272
|
}
|
|
3301
|
-
if (!
|
|
3302
|
-
throw new
|
|
3303
|
-
|
|
3273
|
+
if (!S)
|
|
3274
|
+
throw new Bt(h.value, f, Object.keys(h.options), s);
|
|
3275
|
+
a.push.apply(a, xe(S.value, t, r, i, n, f - (h.offset || 0)));
|
|
3304
3276
|
continue;
|
|
3305
3277
|
}
|
|
3306
3278
|
}
|
|
3307
|
-
return
|
|
3279
|
+
return vn(a);
|
|
3308
3280
|
}
|
|
3309
|
-
function
|
|
3310
|
-
return t ?
|
|
3311
|
-
return r[i] =
|
|
3281
|
+
function _n(e, t) {
|
|
3282
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3283
|
+
return r[i] = M(M({}, e[i]), t[i] || {}), r;
|
|
3312
3284
|
}, {})) : e;
|
|
3313
3285
|
}
|
|
3314
|
-
function
|
|
3286
|
+
function xn(e, t) {
|
|
3315
3287
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3316
|
-
return r[i] =
|
|
3317
|
-
},
|
|
3288
|
+
return r[i] = _n(e[i], t[i]), r;
|
|
3289
|
+
}, M({}, e)) : e;
|
|
3318
3290
|
}
|
|
3319
|
-
function
|
|
3291
|
+
function We(e) {
|
|
3320
3292
|
return {
|
|
3321
3293
|
create: function() {
|
|
3322
3294
|
return {
|
|
@@ -3330,39 +3302,39 @@ function je(e) {
|
|
|
3330
3302
|
}
|
|
3331
3303
|
};
|
|
3332
3304
|
}
|
|
3333
|
-
function
|
|
3305
|
+
function Tn(e) {
|
|
3334
3306
|
return e === void 0 && (e = {
|
|
3335
3307
|
number: {},
|
|
3336
3308
|
dateTime: {},
|
|
3337
3309
|
pluralRules: {}
|
|
3338
3310
|
}), {
|
|
3339
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: je(function() {
|
|
3340
3312
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3341
3313
|
r[i] = arguments[i];
|
|
3342
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3343
3315
|
}, {
|
|
3344
|
-
cache:
|
|
3345
|
-
strategy:
|
|
3316
|
+
cache: We(e.number),
|
|
3317
|
+
strategy: ke.variadic
|
|
3346
3318
|
}),
|
|
3347
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: je(function() {
|
|
3348
3320
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3349
3321
|
r[i] = arguments[i];
|
|
3350
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3351
3323
|
}, {
|
|
3352
|
-
cache:
|
|
3353
|
-
strategy:
|
|
3324
|
+
cache: We(e.dateTime),
|
|
3325
|
+
strategy: ke.variadic
|
|
3354
3326
|
}),
|
|
3355
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: je(function() {
|
|
3356
3328
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3357
3329
|
r[i] = arguments[i];
|
|
3358
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3359
3331
|
}, {
|
|
3360
|
-
cache:
|
|
3361
|
-
strategy:
|
|
3332
|
+
cache: We(e.pluralRules),
|
|
3333
|
+
strategy: ke.variadic
|
|
3362
3334
|
})
|
|
3363
3335
|
};
|
|
3364
3336
|
}
|
|
3365
|
-
var
|
|
3337
|
+
var Ln = (
|
|
3366
3338
|
/** @class */
|
|
3367
3339
|
function() {
|
|
3368
3340
|
function e(t, r, i, n) {
|
|
@@ -3377,7 +3349,7 @@ var xn = (
|
|
|
3377
3349
|
if (u.length === 1)
|
|
3378
3350
|
return u[0].value;
|
|
3379
3351
|
var h = u.reduce(function(c, f) {
|
|
3380
|
-
return !c.length || f.type !==
|
|
3352
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3381
3353
|
}, []);
|
|
3382
3354
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3383
3355
|
}, this.formatToParts = function(l) {
|
|
@@ -3392,15 +3364,15 @@ var xn = (
|
|
|
3392
3364
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3393
3365
|
if (this.message = t, !e.__parse)
|
|
3394
3366
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3395
|
-
var
|
|
3396
|
-
|
|
3397
|
-
var
|
|
3398
|
-
this.ast = e.__parse(t,
|
|
3367
|
+
var s = n || {};
|
|
3368
|
+
s.formatters;
|
|
3369
|
+
var a = Bi(s, ["formatters"]);
|
|
3370
|
+
this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
|
|
3399
3371
|
} else
|
|
3400
3372
|
this.ast = t;
|
|
3401
3373
|
if (!Array.isArray(this.ast))
|
|
3402
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3403
|
-
this.formats =
|
|
3375
|
+
this.formats = xn(e.formats, i), this.formatters = n && n.formatters || Tn(this.formatterCache);
|
|
3404
3376
|
}
|
|
3405
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3406
3378
|
get: function() {
|
|
@@ -3413,7 +3385,7 @@ var xn = (
|
|
|
3413
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3414
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3415
3387
|
}
|
|
3416
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = yn, e.formats = {
|
|
3417
3389
|
number: {
|
|
3418
3390
|
integer: {
|
|
3419
3391
|
maximumFractionDigits: 0
|
|
@@ -3474,7 +3446,7 @@ var xn = (
|
|
|
3474
3446
|
}, e;
|
|
3475
3447
|
}()
|
|
3476
3448
|
);
|
|
3477
|
-
function
|
|
3449
|
+
function Sn(e, t) {
|
|
3478
3450
|
if (t == null)
|
|
3479
3451
|
return;
|
|
3480
3452
|
if (t in e)
|
|
@@ -3495,92 +3467,92 @@ function Tn(e, t) {
|
|
|
3495
3467
|
i = void 0;
|
|
3496
3468
|
return i;
|
|
3497
3469
|
}
|
|
3498
|
-
const j = {},
|
|
3470
|
+
const j = {}, wn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), pr = (e, t) => {
|
|
3499
3471
|
if (t == null)
|
|
3500
3472
|
return;
|
|
3501
3473
|
if (t in j && e in j[t])
|
|
3502
3474
|
return j[t][e];
|
|
3503
|
-
const r =
|
|
3475
|
+
const r = Be(t);
|
|
3504
3476
|
for (let i = 0; i < r.length; i++) {
|
|
3505
|
-
const n = r[i], o =
|
|
3477
|
+
const n = r[i], o = Pn(n, e);
|
|
3506
3478
|
if (o)
|
|
3507
|
-
return
|
|
3479
|
+
return wn(e, t, o);
|
|
3508
3480
|
}
|
|
3509
3481
|
};
|
|
3510
|
-
let
|
|
3511
|
-
const
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3482
|
+
let pt;
|
|
3483
|
+
const fe = He({});
|
|
3484
|
+
function An(e) {
|
|
3485
|
+
return pt[e] || null;
|
|
3514
3486
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return e in
|
|
3487
|
+
function dr(e) {
|
|
3488
|
+
return e in pt;
|
|
3517
3489
|
}
|
|
3518
|
-
function
|
|
3519
|
-
if (!
|
|
3490
|
+
function Pn(e, t) {
|
|
3491
|
+
if (!dr(e))
|
|
3520
3492
|
return null;
|
|
3521
|
-
const r =
|
|
3522
|
-
return
|
|
3493
|
+
const r = An(e);
|
|
3494
|
+
return Sn(r, t);
|
|
3523
3495
|
}
|
|
3524
|
-
function
|
|
3496
|
+
function Hn(e) {
|
|
3525
3497
|
if (e == null)
|
|
3526
3498
|
return;
|
|
3527
|
-
const t =
|
|
3499
|
+
const t = Be(e);
|
|
3528
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3529
3501
|
const i = t[r];
|
|
3530
|
-
if (
|
|
3502
|
+
if (dr(i))
|
|
3531
3503
|
return i;
|
|
3532
3504
|
}
|
|
3533
3505
|
}
|
|
3534
|
-
function
|
|
3535
|
-
delete j[e],
|
|
3506
|
+
function yr(e, ...t) {
|
|
3507
|
+
delete j[e], fe.update((r) => (r[e] = Ii.all([r[e] || {}, ...t]), r));
|
|
3536
3508
|
}
|
|
3537
|
-
|
|
3538
|
-
[
|
|
3509
|
+
re(
|
|
3510
|
+
[fe],
|
|
3539
3511
|
([e]) => Object.keys(e)
|
|
3540
3512
|
);
|
|
3541
|
-
|
|
3513
|
+
fe.subscribe((e) => pt = e);
|
|
3542
3514
|
const Te = {};
|
|
3543
|
-
function
|
|
3515
|
+
function On(e, t) {
|
|
3544
3516
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
3545
3517
|
}
|
|
3546
|
-
function
|
|
3518
|
+
function gr(e) {
|
|
3547
3519
|
return Te[e];
|
|
3548
3520
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3551
|
-
const r =
|
|
3521
|
+
function In(e) {
|
|
3522
|
+
return Be(e).map((t) => {
|
|
3523
|
+
const r = gr(t);
|
|
3552
3524
|
return [t, r ? [...r] : []];
|
|
3553
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3554
3526
|
}
|
|
3555
3527
|
function ot(e) {
|
|
3556
|
-
return e == null ? !1 :
|
|
3528
|
+
return e == null ? !1 : Be(e).some(
|
|
3557
3529
|
(t) => {
|
|
3558
3530
|
var r;
|
|
3559
|
-
return (r =
|
|
3531
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
|
3560
3532
|
}
|
|
3561
3533
|
);
|
|
3562
3534
|
}
|
|
3563
|
-
function
|
|
3535
|
+
function Bn(e, t) {
|
|
3564
3536
|
return Promise.all(
|
|
3565
|
-
t.map((i) => (
|
|
3566
|
-
).then((i) =>
|
|
3537
|
+
t.map((i) => (On(e, i), i().then((n) => n.default || n)))
|
|
3538
|
+
).then((i) => yr(e, ...i));
|
|
3567
3539
|
}
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3540
|
+
const se = {};
|
|
3541
|
+
function br(e) {
|
|
3570
3542
|
if (!ot(e))
|
|
3571
|
-
return e in
|
|
3572
|
-
const t =
|
|
3573
|
-
return
|
|
3543
|
+
return e in se ? se[e] : Promise.resolve();
|
|
3544
|
+
const t = In(e);
|
|
3545
|
+
return se[e] = Promise.all(
|
|
3574
3546
|
t.map(
|
|
3575
|
-
([r, i]) =>
|
|
3547
|
+
([r, i]) => Bn(r, i)
|
|
3576
3548
|
)
|
|
3577
3549
|
).then(() => {
|
|
3578
3550
|
if (ot(e))
|
|
3579
|
-
return
|
|
3580
|
-
delete
|
|
3581
|
-
}),
|
|
3551
|
+
return br(e);
|
|
3552
|
+
delete se[e];
|
|
3553
|
+
}), se[e];
|
|
3582
3554
|
}
|
|
3583
|
-
const
|
|
3555
|
+
const Cn = {
|
|
3584
3556
|
number: {
|
|
3585
3557
|
scientific: { notation: "scientific" },
|
|
3586
3558
|
engineering: { notation: "engineering" },
|
|
@@ -3609,159 +3581,159 @@ const Bn = {
|
|
|
3609
3581
|
timeZoneName: "short"
|
|
3610
3582
|
}
|
|
3611
3583
|
}
|
|
3612
|
-
},
|
|
3584
|
+
}, Nn = {
|
|
3613
3585
|
fallbackLocale: null,
|
|
3614
3586
|
loadingDelay: 200,
|
|
3615
|
-
formats:
|
|
3587
|
+
formats: Cn,
|
|
3616
3588
|
warnOnMissingMessages: !0,
|
|
3617
3589
|
handleMissingMessage: void 0,
|
|
3618
3590
|
ignoreTag: !0
|
|
3619
|
-
},
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3591
|
+
}, Rn = Nn;
|
|
3592
|
+
function te() {
|
|
3593
|
+
return Rn;
|
|
3622
3594
|
}
|
|
3623
|
-
const
|
|
3624
|
-
var
|
|
3595
|
+
const Xe = He(!1);
|
|
3596
|
+
var Mn = Object.defineProperty, Dn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3625
3597
|
for (var r in t || (t = {}))
|
|
3626
|
-
|
|
3627
|
-
if (
|
|
3628
|
-
for (var r of
|
|
3629
|
-
|
|
3598
|
+
Un.call(t, r) && Nt(e, r, t[r]);
|
|
3599
|
+
if (Ct)
|
|
3600
|
+
for (var r of Ct(t))
|
|
3601
|
+
Gn.call(t, r) && Nt(e, r, t[r]);
|
|
3630
3602
|
return e;
|
|
3631
|
-
},
|
|
3603
|
+
}, jn = (e, t) => Dn(e, $n(t));
|
|
3632
3604
|
let st;
|
|
3633
|
-
const
|
|
3634
|
-
function
|
|
3605
|
+
const Ae = He(null);
|
|
3606
|
+
function Rt(e) {
|
|
3635
3607
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3636
3608
|
}
|
|
3637
|
-
function
|
|
3638
|
-
const r =
|
|
3639
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3609
|
+
function Be(e, t = te().fallbackLocale) {
|
|
3610
|
+
const r = Rt(e);
|
|
3611
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
3640
3612
|
}
|
|
3641
3613
|
function z() {
|
|
3642
3614
|
return st != null ? st : void 0;
|
|
3643
3615
|
}
|
|
3644
|
-
|
|
3616
|
+
Ae.subscribe((e) => {
|
|
3645
3617
|
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3646
3618
|
});
|
|
3647
|
-
const
|
|
3648
|
-
if (e &&
|
|
3649
|
-
const { loadingDelay: t } =
|
|
3619
|
+
const kn = (e) => {
|
|
3620
|
+
if (e && Hn(e) && ot(e)) {
|
|
3621
|
+
const { loadingDelay: t } = te();
|
|
3650
3622
|
let r;
|
|
3651
3623
|
return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
|
|
3652
|
-
() =>
|
|
3624
|
+
() => Xe.set(!0),
|
|
3653
3625
|
t
|
|
3654
|
-
) :
|
|
3655
|
-
|
|
3626
|
+
) : Xe.set(!0), br(e).then(() => {
|
|
3627
|
+
Ae.set(e);
|
|
3656
3628
|
}).finally(() => {
|
|
3657
|
-
clearTimeout(r),
|
|
3629
|
+
clearTimeout(r), Xe.set(!1);
|
|
3658
3630
|
});
|
|
3659
3631
|
}
|
|
3660
|
-
return
|
|
3661
|
-
},
|
|
3662
|
-
set:
|
|
3663
|
-
}),
|
|
3632
|
+
return Ae.set(e);
|
|
3633
|
+
}, ie = jn(Fn({}, Ae), {
|
|
3634
|
+
set: kn
|
|
3635
|
+
}), Ce = (e) => {
|
|
3664
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3665
3637
|
return (i) => {
|
|
3666
3638
|
const n = JSON.stringify(i);
|
|
3667
3639
|
return n in t ? t[n] : t[n] = e(i);
|
|
3668
3640
|
};
|
|
3669
3641
|
};
|
|
3670
|
-
var
|
|
3642
|
+
var Vn = Object.defineProperty, Pe = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
|
|
3671
3643
|
for (var r in t || (t = {}))
|
|
3672
|
-
|
|
3673
|
-
if (
|
|
3674
|
-
for (var r of
|
|
3675
|
-
|
|
3644
|
+
vr.call(t, r) && Mt(e, r, t[r]);
|
|
3645
|
+
if (Pe)
|
|
3646
|
+
for (var r of Pe(t))
|
|
3647
|
+
Er.call(t, r) && Mt(e, r, t[r]);
|
|
3676
3648
|
return e;
|
|
3677
|
-
},
|
|
3649
|
+
}, ne = (e, t) => {
|
|
3678
3650
|
var r = {};
|
|
3679
3651
|
for (var i in e)
|
|
3680
|
-
|
|
3681
|
-
if (e != null &&
|
|
3682
|
-
for (var i of
|
|
3683
|
-
t.indexOf(i) < 0 &&
|
|
3652
|
+
vr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3653
|
+
if (e != null && Pe)
|
|
3654
|
+
for (var i of Pe(e))
|
|
3655
|
+
t.indexOf(i) < 0 && Er.call(e, i) && (r[i] = e[i]);
|
|
3684
3656
|
return r;
|
|
3685
3657
|
};
|
|
3686
|
-
const
|
|
3687
|
-
const { formats: r } =
|
|
3658
|
+
const he = (e, t) => {
|
|
3659
|
+
const { formats: r } = te();
|
|
3688
3660
|
if (e in r && t in r[e])
|
|
3689
3661
|
return r[e][t];
|
|
3690
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3691
|
-
},
|
|
3663
|
+
}, Wn = Ce(
|
|
3692
3664
|
(e) => {
|
|
3693
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3665
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3694
3666
|
if (r == null)
|
|
3695
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3696
|
-
return i && (n =
|
|
3668
|
+
return i && (n = he("number", i)), new Intl.NumberFormat(r, n);
|
|
3697
3669
|
}
|
|
3698
|
-
),
|
|
3670
|
+
), Xn = Ce(
|
|
3699
3671
|
(e) => {
|
|
3700
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3672
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3701
3673
|
if (r == null)
|
|
3702
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3703
|
-
return i ? n =
|
|
3675
|
+
return i ? n = he("date", i) : Object.keys(n).length === 0 && (n = he("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3704
3676
|
}
|
|
3705
|
-
),
|
|
3677
|
+
), zn = Ce(
|
|
3706
3678
|
(e) => {
|
|
3707
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3679
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3708
3680
|
if (r == null)
|
|
3709
3681
|
throw new Error(
|
|
3710
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3711
3683
|
);
|
|
3712
|
-
return i ? n =
|
|
3684
|
+
return i ? n = he("time", i) : Object.keys(n).length === 0 && (n = he("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3713
3685
|
}
|
|
3714
|
-
),
|
|
3686
|
+
), Zn = (e = {}) => {
|
|
3715
3687
|
var t = e, {
|
|
3716
3688
|
locale: r = z()
|
|
3717
|
-
} = t, i =
|
|
3689
|
+
} = t, i = ne(t, [
|
|
3718
3690
|
"locale"
|
|
3719
3691
|
]);
|
|
3720
|
-
return
|
|
3721
|
-
},
|
|
3692
|
+
return Wn(dt({ locale: r }, i));
|
|
3693
|
+
}, Qn = (e = {}) => {
|
|
3722
3694
|
var t = e, {
|
|
3723
3695
|
locale: r = z()
|
|
3724
|
-
} = t, i =
|
|
3696
|
+
} = t, i = ne(t, [
|
|
3725
3697
|
"locale"
|
|
3726
3698
|
]);
|
|
3727
|
-
return
|
|
3728
|
-
},
|
|
3699
|
+
return Xn(dt({ locale: r }, i));
|
|
3700
|
+
}, Yn = (e = {}) => {
|
|
3729
3701
|
var t = e, {
|
|
3730
3702
|
locale: r = z()
|
|
3731
|
-
} = t, i =
|
|
3703
|
+
} = t, i = ne(t, [
|
|
3732
3704
|
"locale"
|
|
3733
3705
|
]);
|
|
3734
|
-
return
|
|
3735
|
-
},
|
|
3706
|
+
return zn(dt({ locale: r }, i));
|
|
3707
|
+
}, Jn = Ce(
|
|
3736
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3737
|
-
(e, t = z()) => new
|
|
3738
|
-
ignoreTag:
|
|
3709
|
+
(e, t = z()) => new Ln(e, t, te().formats, {
|
|
3710
|
+
ignoreTag: te().ignoreTag
|
|
3739
3711
|
})
|
|
3740
|
-
),
|
|
3712
|
+
), qn = (e, t = {}) => {
|
|
3741
3713
|
var r, i, n, o;
|
|
3742
|
-
let
|
|
3743
|
-
typeof e == "object" && (
|
|
3714
|
+
let s = t;
|
|
3715
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3744
3716
|
const {
|
|
3745
|
-
values:
|
|
3717
|
+
values: a,
|
|
3746
3718
|
locale: l = z(),
|
|
3747
3719
|
default: u
|
|
3748
|
-
} =
|
|
3720
|
+
} = s;
|
|
3749
3721
|
if (l == null)
|
|
3750
3722
|
throw new Error(
|
|
3751
3723
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3752
3724
|
);
|
|
3753
|
-
let h =
|
|
3725
|
+
let h = pr(e, l);
|
|
3754
3726
|
if (!h)
|
|
3755
|
-
h = (o = (n = (i = (r =
|
|
3727
|
+
h = (o = (n = (i = (r = te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: l, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
3756
3728
|
else if (typeof h != "string")
|
|
3757
3729
|
return console.warn(
|
|
3758
3730
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3759
3731
|
), h;
|
|
3760
|
-
if (!
|
|
3732
|
+
if (!a)
|
|
3761
3733
|
return h;
|
|
3762
3734
|
let c = h;
|
|
3763
3735
|
try {
|
|
3764
|
-
c =
|
|
3736
|
+
c = Jn(h, l).format(a);
|
|
3765
3737
|
} catch (f) {
|
|
3766
3738
|
f instanceof Error && console.warn(
|
|
3767
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3769,18 +3741,18 @@ const ce = (e, t) => {
|
|
|
3769
3741
|
);
|
|
3770
3742
|
}
|
|
3771
3743
|
return c;
|
|
3772
|
-
},
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
function
|
|
3778
|
-
|
|
3779
|
-
}
|
|
3780
|
-
function
|
|
3781
|
-
|
|
3782
|
-
}
|
|
3783
|
-
const
|
|
3744
|
+
}, Kn = (e, t) => Yn(t).format(e), eo = (e, t) => Qn(t).format(e), to = (e, t) => Zn(t).format(e), ro = (e, t = z()) => pr(e, t), io = re([ie, fe], () => qn);
|
|
3745
|
+
re([ie], () => Kn);
|
|
3746
|
+
re([ie], () => eo);
|
|
3747
|
+
re([ie], () => to);
|
|
3748
|
+
re([ie, fe], () => ro);
|
|
3749
|
+
function Dt(e, t) {
|
|
3750
|
+
yr(e, t);
|
|
3751
|
+
}
|
|
3752
|
+
function no(e) {
|
|
3753
|
+
ie.set(e);
|
|
3754
|
+
}
|
|
3755
|
+
const ze = {
|
|
3784
3756
|
en: {
|
|
3785
3757
|
expandLimits: "LIMIT HISTORY",
|
|
3786
3758
|
daily: "per day",
|
|
@@ -4031,16 +4003,85 @@ const Ve = {
|
|
|
4031
4003
|
historyLimitTypeLoss: "Loss Limit"
|
|
4032
4004
|
}
|
|
4033
4005
|
};
|
|
4034
|
-
|
|
4006
|
+
/*! *****************************************************************************
|
|
4007
|
+
Copyright (c) Microsoft Corporation.
|
|
4008
|
+
|
|
4009
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4010
|
+
purpose with or without fee is hereby granted.
|
|
4011
|
+
|
|
4012
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4013
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4014
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4015
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4016
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4017
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4018
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
4019
|
+
***************************************************************************** */
|
|
4020
|
+
var at = function(e, t) {
|
|
4021
|
+
return at = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
4022
|
+
r.__proto__ = i;
|
|
4023
|
+
} || function(r, i) {
|
|
4024
|
+
for (var n in i)
|
|
4025
|
+
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
4026
|
+
}, at(e, t);
|
|
4027
|
+
};
|
|
4028
|
+
function me(e, t) {
|
|
4029
|
+
if (typeof t != "function" && t !== null)
|
|
4030
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4031
|
+
at(e, t);
|
|
4032
|
+
function r() {
|
|
4033
|
+
this.constructor = e;
|
|
4034
|
+
}
|
|
4035
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
4036
|
+
}
|
|
4037
|
+
function ut(e) {
|
|
4038
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
4039
|
+
if (r)
|
|
4040
|
+
return r.call(e);
|
|
4041
|
+
if (e && typeof e.length == "number")
|
|
4042
|
+
return {
|
|
4043
|
+
next: function() {
|
|
4044
|
+
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
4045
|
+
}
|
|
4046
|
+
};
|
|
4047
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4048
|
+
}
|
|
4049
|
+
function lt(e, t) {
|
|
4050
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4051
|
+
if (!r)
|
|
4052
|
+
return e;
|
|
4053
|
+
var i = r.call(e), n, o = [], s;
|
|
4054
|
+
try {
|
|
4055
|
+
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
4056
|
+
o.push(n.value);
|
|
4057
|
+
} catch (a) {
|
|
4058
|
+
s = { error: a };
|
|
4059
|
+
} finally {
|
|
4060
|
+
try {
|
|
4061
|
+
n && !n.done && (r = i.return) && r.call(i);
|
|
4062
|
+
} finally {
|
|
4063
|
+
if (s)
|
|
4064
|
+
throw s.error;
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
return o;
|
|
4068
|
+
}
|
|
4069
|
+
function ht(e, t, r) {
|
|
4070
|
+
if (arguments.length === 2)
|
|
4071
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
4072
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
4073
|
+
return e.concat(o || t);
|
|
4074
|
+
}
|
|
4075
|
+
function F(e) {
|
|
4035
4076
|
return typeof e == "function";
|
|
4036
4077
|
}
|
|
4037
|
-
function
|
|
4078
|
+
function _r(e) {
|
|
4038
4079
|
var t = function(i) {
|
|
4039
4080
|
Error.call(i), i.stack = new Error().stack;
|
|
4040
4081
|
}, r = e(t);
|
|
4041
4082
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
4042
4083
|
}
|
|
4043
|
-
var
|
|
4084
|
+
var Ze = _r(function(e) {
|
|
4044
4085
|
return function(r) {
|
|
4045
4086
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
4046
4087
|
` + r.map(function(i, n) {
|
|
@@ -4049,13 +4090,13 @@ var We = vr(function(e) {
|
|
|
4049
4090
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
4050
4091
|
};
|
|
4051
4092
|
});
|
|
4052
|
-
function
|
|
4093
|
+
function ct(e, t) {
|
|
4053
4094
|
if (e) {
|
|
4054
4095
|
var r = e.indexOf(t);
|
|
4055
4096
|
0 <= r && e.splice(r, 1);
|
|
4056
4097
|
}
|
|
4057
4098
|
}
|
|
4058
|
-
var
|
|
4099
|
+
var Ne = function() {
|
|
4059
4100
|
function e(t) {
|
|
4060
4101
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4061
4102
|
}
|
|
@@ -4063,11 +4104,11 @@ var Oe = function() {
|
|
|
4063
4104
|
var t, r, i, n, o;
|
|
4064
4105
|
if (!this.closed) {
|
|
4065
4106
|
this.closed = !0;
|
|
4066
|
-
var
|
|
4067
|
-
if (
|
|
4068
|
-
if (this._parentage = null, Array.isArray(
|
|
4107
|
+
var s = this._parentage;
|
|
4108
|
+
if (s)
|
|
4109
|
+
if (this._parentage = null, Array.isArray(s))
|
|
4069
4110
|
try {
|
|
4070
|
-
for (var
|
|
4111
|
+
for (var a = ut(s), l = a.next(); !l.done; l = a.next()) {
|
|
4071
4112
|
var u = l.value;
|
|
4072
4113
|
u.remove(this);
|
|
4073
4114
|
}
|
|
@@ -4075,31 +4116,31 @@ var Oe = function() {
|
|
|
4075
4116
|
t = { error: d };
|
|
4076
4117
|
} finally {
|
|
4077
4118
|
try {
|
|
4078
|
-
l && !l.done && (r =
|
|
4119
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
4079
4120
|
} finally {
|
|
4080
4121
|
if (t)
|
|
4081
4122
|
throw t.error;
|
|
4082
4123
|
}
|
|
4083
4124
|
}
|
|
4084
4125
|
else
|
|
4085
|
-
|
|
4126
|
+
s.remove(this);
|
|
4086
4127
|
var h = this.initialTeardown;
|
|
4087
|
-
if (
|
|
4128
|
+
if (F(h))
|
|
4088
4129
|
try {
|
|
4089
4130
|
h();
|
|
4090
4131
|
} catch (d) {
|
|
4091
|
-
o = d instanceof
|
|
4132
|
+
o = d instanceof Ze ? d.errors : [d];
|
|
4092
4133
|
}
|
|
4093
4134
|
var c = this._finalizers;
|
|
4094
4135
|
if (c) {
|
|
4095
4136
|
this._finalizers = null;
|
|
4096
4137
|
try {
|
|
4097
|
-
for (var f =
|
|
4138
|
+
for (var f = ut(c), p = f.next(); !p.done; p = f.next()) {
|
|
4098
4139
|
var y = p.value;
|
|
4099
4140
|
try {
|
|
4100
|
-
|
|
4141
|
+
$t(y);
|
|
4101
4142
|
} catch (d) {
|
|
4102
|
-
o = o != null ? o : [], d instanceof
|
|
4143
|
+
o = o != null ? o : [], d instanceof Ze ? o = ht(ht([], lt(o)), lt(d.errors)) : o.push(d);
|
|
4103
4144
|
}
|
|
4104
4145
|
}
|
|
4105
4146
|
} catch (d) {
|
|
@@ -4114,13 +4155,13 @@ var Oe = function() {
|
|
|
4114
4155
|
}
|
|
4115
4156
|
}
|
|
4116
4157
|
if (o)
|
|
4117
|
-
throw new
|
|
4158
|
+
throw new Ze(o);
|
|
4118
4159
|
}
|
|
4119
4160
|
}, e.prototype.add = function(t) {
|
|
4120
4161
|
var r;
|
|
4121
4162
|
if (t && t !== this)
|
|
4122
4163
|
if (this.closed)
|
|
4123
|
-
|
|
4164
|
+
$t(t);
|
|
4124
4165
|
else {
|
|
4125
4166
|
if (t instanceof e) {
|
|
4126
4167
|
if (t.closed || t._hasParent(this))
|
|
@@ -4137,56 +4178,52 @@ var Oe = function() {
|
|
|
4137
4178
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
4138
4179
|
}, e.prototype._removeParent = function(t) {
|
|
4139
4180
|
var r = this._parentage;
|
|
4140
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
4181
|
+
r === t ? this._parentage = null : Array.isArray(r) && ct(r, t);
|
|
4141
4182
|
}, e.prototype.remove = function(t) {
|
|
4142
4183
|
var r = this._finalizers;
|
|
4143
|
-
r &&
|
|
4184
|
+
r && ct(r, t), t instanceof e && t._removeParent(this);
|
|
4144
4185
|
}, e.EMPTY = function() {
|
|
4145
4186
|
var t = new e();
|
|
4146
4187
|
return t.closed = !0, t;
|
|
4147
4188
|
}(), e;
|
|
4148
|
-
}(),
|
|
4149
|
-
function
|
|
4150
|
-
return e instanceof
|
|
4151
|
-
}
|
|
4152
|
-
function
|
|
4153
|
-
|
|
4154
|
-
}
|
|
4155
|
-
var
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
Promise: void 0,
|
|
4159
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
4160
|
-
useDeprecatedNextContext: !1
|
|
4161
|
-
}, io = {
|
|
4189
|
+
}(), xr = Ne.EMPTY;
|
|
4190
|
+
function Tr(e) {
|
|
4191
|
+
return e instanceof Ne || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
4192
|
+
}
|
|
4193
|
+
function $t(e) {
|
|
4194
|
+
F(e) ? e() : e.unsubscribe();
|
|
4195
|
+
}
|
|
4196
|
+
var oo = {
|
|
4197
|
+
Promise: void 0
|
|
4198
|
+
}, so = {
|
|
4162
4199
|
setTimeout: function(e, t) {
|
|
4163
4200
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
4164
4201
|
r[i - 2] = arguments[i];
|
|
4165
|
-
return setTimeout.apply(void 0,
|
|
4202
|
+
return setTimeout.apply(void 0, ht([e, t], lt(r)));
|
|
4166
4203
|
},
|
|
4167
4204
|
clearTimeout: function(e) {
|
|
4168
4205
|
return clearTimeout(e);
|
|
4169
4206
|
},
|
|
4170
4207
|
delegate: void 0
|
|
4171
4208
|
};
|
|
4172
|
-
function
|
|
4173
|
-
|
|
4209
|
+
function ao(e) {
|
|
4210
|
+
so.setTimeout(function() {
|
|
4174
4211
|
throw e;
|
|
4175
4212
|
});
|
|
4176
4213
|
}
|
|
4177
|
-
function
|
|
4214
|
+
function Ut() {
|
|
4178
4215
|
}
|
|
4179
4216
|
function Le(e) {
|
|
4180
4217
|
e();
|
|
4181
4218
|
}
|
|
4182
|
-
var
|
|
4183
|
-
|
|
4219
|
+
var Lr = function(e) {
|
|
4220
|
+
me(t, e);
|
|
4184
4221
|
function t(r) {
|
|
4185
4222
|
var i = e.call(this) || this;
|
|
4186
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
4223
|
+
return i.isStopped = !1, r ? (i.destination = r, Tr(r) && r.add(i)) : i.destination = ho, i;
|
|
4187
4224
|
}
|
|
4188
4225
|
return t.create = function(r, i, n) {
|
|
4189
|
-
return new
|
|
4226
|
+
return new ft(r, i, n);
|
|
4190
4227
|
}, t.prototype.next = function(r) {
|
|
4191
4228
|
this.isStopped || this._next(r);
|
|
4192
4229
|
}, t.prototype.error = function(r) {
|
|
@@ -4210,11 +4247,7 @@ var Tr = function(e) {
|
|
|
4210
4247
|
this.unsubscribe();
|
|
4211
4248
|
}
|
|
4212
4249
|
}, t;
|
|
4213
|
-
}(
|
|
4214
|
-
function Xe(e, t) {
|
|
4215
|
-
return oo.call(e, t);
|
|
4216
|
-
}
|
|
4217
|
-
var so = function() {
|
|
4250
|
+
}(Ne), uo = function() {
|
|
4218
4251
|
function e(t) {
|
|
4219
4252
|
this.partialObserver = t;
|
|
4220
4253
|
}
|
|
@@ -4245,55 +4278,43 @@ var so = function() {
|
|
|
4245
4278
|
Ee(r);
|
|
4246
4279
|
}
|
|
4247
4280
|
}, e;
|
|
4248
|
-
}(),
|
|
4249
|
-
|
|
4281
|
+
}(), ft = function(e) {
|
|
4282
|
+
me(t, e);
|
|
4250
4283
|
function t(r, i, n) {
|
|
4251
|
-
var o = e.call(this) || this,
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
};
|
|
4258
|
-
else {
|
|
4259
|
-
var s;
|
|
4260
|
-
o && xr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
4261
|
-
return o.unsubscribe();
|
|
4262
|
-
}, a = {
|
|
4263
|
-
next: r.next && Xe(r.next, s),
|
|
4264
|
-
error: r.error && Xe(r.error, s),
|
|
4265
|
-
complete: r.complete && Xe(r.complete, s)
|
|
4266
|
-
}) : a = r;
|
|
4267
|
-
}
|
|
4268
|
-
return o.destination = new so(a), o;
|
|
4284
|
+
var o = e.call(this) || this, s;
|
|
4285
|
+
return F(r) || !r ? s = {
|
|
4286
|
+
next: r != null ? r : void 0,
|
|
4287
|
+
error: i != null ? i : void 0,
|
|
4288
|
+
complete: n != null ? n : void 0
|
|
4289
|
+
} : s = r, o.destination = new uo(s), o;
|
|
4269
4290
|
}
|
|
4270
4291
|
return t;
|
|
4271
|
-
}(
|
|
4292
|
+
}(Lr);
|
|
4272
4293
|
function Ee(e) {
|
|
4273
|
-
|
|
4294
|
+
ao(e);
|
|
4274
4295
|
}
|
|
4275
|
-
function
|
|
4296
|
+
function lo(e) {
|
|
4276
4297
|
throw e;
|
|
4277
4298
|
}
|
|
4278
|
-
var
|
|
4299
|
+
var ho = {
|
|
4279
4300
|
closed: !0,
|
|
4280
|
-
next:
|
|
4281
|
-
error:
|
|
4282
|
-
complete:
|
|
4283
|
-
},
|
|
4301
|
+
next: Ut,
|
|
4302
|
+
error: lo,
|
|
4303
|
+
complete: Ut
|
|
4304
|
+
}, co = function() {
|
|
4284
4305
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4285
4306
|
}();
|
|
4286
|
-
function
|
|
4307
|
+
function fo(e) {
|
|
4287
4308
|
return e;
|
|
4288
4309
|
}
|
|
4289
|
-
function
|
|
4290
|
-
return e.length === 0 ?
|
|
4310
|
+
function mo(e) {
|
|
4311
|
+
return e.length === 0 ? fo : e.length === 1 ? e[0] : function(r) {
|
|
4291
4312
|
return e.reduce(function(i, n) {
|
|
4292
4313
|
return n(i);
|
|
4293
4314
|
}, r);
|
|
4294
4315
|
};
|
|
4295
4316
|
}
|
|
4296
|
-
var
|
|
4317
|
+
var Gt = function() {
|
|
4297
4318
|
function e(t) {
|
|
4298
4319
|
t && (this._subscribe = t);
|
|
4299
4320
|
}
|
|
@@ -4301,10 +4322,10 @@ var $t = function() {
|
|
|
4301
4322
|
var r = new e();
|
|
4302
4323
|
return r.source = this, r.operator = t, r;
|
|
4303
4324
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
4304
|
-
var n = this, o =
|
|
4325
|
+
var n = this, o = yo(t) ? t : new ft(t, r, i);
|
|
4305
4326
|
return Le(function() {
|
|
4306
|
-
var
|
|
4307
|
-
o.add(
|
|
4327
|
+
var s = n, a = s.operator, l = s.source;
|
|
4328
|
+
o.add(a ? a.call(o, l) : l ? n._subscribe(o) : n._trySubscribe(o));
|
|
4308
4329
|
}), o;
|
|
4309
4330
|
}, e.prototype._trySubscribe = function(t) {
|
|
4310
4331
|
try {
|
|
@@ -4314,37 +4335,37 @@ var $t = function() {
|
|
|
4314
4335
|
}
|
|
4315
4336
|
}, e.prototype.forEach = function(t, r) {
|
|
4316
4337
|
var i = this;
|
|
4317
|
-
return r =
|
|
4318
|
-
var
|
|
4319
|
-
next: function(
|
|
4338
|
+
return r = Ft(r), new r(function(n, o) {
|
|
4339
|
+
var s = new ft({
|
|
4340
|
+
next: function(a) {
|
|
4320
4341
|
try {
|
|
4321
|
-
t(
|
|
4342
|
+
t(a);
|
|
4322
4343
|
} catch (l) {
|
|
4323
|
-
o(l),
|
|
4344
|
+
o(l), s.unsubscribe();
|
|
4324
4345
|
}
|
|
4325
4346
|
},
|
|
4326
4347
|
error: o,
|
|
4327
4348
|
complete: n
|
|
4328
4349
|
});
|
|
4329
|
-
i.subscribe(
|
|
4350
|
+
i.subscribe(s);
|
|
4330
4351
|
});
|
|
4331
4352
|
}, e.prototype._subscribe = function(t) {
|
|
4332
4353
|
var r;
|
|
4333
4354
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4334
|
-
}, e.prototype[
|
|
4355
|
+
}, e.prototype[co] = function() {
|
|
4335
4356
|
return this;
|
|
4336
4357
|
}, e.prototype.pipe = function() {
|
|
4337
4358
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4338
4359
|
t[r] = arguments[r];
|
|
4339
|
-
return
|
|
4360
|
+
return mo(t)(this);
|
|
4340
4361
|
}, e.prototype.toPromise = function(t) {
|
|
4341
4362
|
var r = this;
|
|
4342
|
-
return t =
|
|
4363
|
+
return t = Ft(t), new t(function(i, n) {
|
|
4343
4364
|
var o;
|
|
4344
|
-
r.subscribe(function(
|
|
4345
|
-
return o =
|
|
4346
|
-
}, function(
|
|
4347
|
-
return n(
|
|
4365
|
+
r.subscribe(function(s) {
|
|
4366
|
+
return o = s;
|
|
4367
|
+
}, function(s) {
|
|
4368
|
+
return n(s);
|
|
4348
4369
|
}, function() {
|
|
4349
4370
|
return i(o);
|
|
4350
4371
|
});
|
|
@@ -4353,32 +4374,32 @@ var $t = function() {
|
|
|
4353
4374
|
return new e(t);
|
|
4354
4375
|
}, e;
|
|
4355
4376
|
}();
|
|
4356
|
-
function
|
|
4377
|
+
function Ft(e) {
|
|
4357
4378
|
var t;
|
|
4358
|
-
return (t = e != null ? e :
|
|
4379
|
+
return (t = e != null ? e : oo.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4359
4380
|
}
|
|
4360
|
-
function
|
|
4361
|
-
return e &&
|
|
4381
|
+
function po(e) {
|
|
4382
|
+
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
4362
4383
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return e && e instanceof
|
|
4384
|
+
function yo(e) {
|
|
4385
|
+
return e && e instanceof Lr || po(e) && Tr(e);
|
|
4365
4386
|
}
|
|
4366
|
-
var
|
|
4387
|
+
var go = _r(function(e) {
|
|
4367
4388
|
return function() {
|
|
4368
4389
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4369
4390
|
};
|
|
4370
|
-
}),
|
|
4371
|
-
|
|
4391
|
+
}), Sr = function(e) {
|
|
4392
|
+
me(t, e);
|
|
4372
4393
|
function t() {
|
|
4373
4394
|
var r = e.call(this) || this;
|
|
4374
4395
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4375
4396
|
}
|
|
4376
4397
|
return t.prototype.lift = function(r) {
|
|
4377
|
-
var i = new
|
|
4398
|
+
var i = new jt(this, this);
|
|
4378
4399
|
return i.operator = r, i;
|
|
4379
4400
|
}, t.prototype._throwIfClosed = function() {
|
|
4380
4401
|
if (this.closed)
|
|
4381
|
-
throw new
|
|
4402
|
+
throw new go();
|
|
4382
4403
|
}, t.prototype.next = function(r) {
|
|
4383
4404
|
var i = this;
|
|
4384
4405
|
Le(function() {
|
|
@@ -4386,15 +4407,15 @@ var po = vr(function(e) {
|
|
|
4386
4407
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4387
4408
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
4388
4409
|
try {
|
|
4389
|
-
for (var
|
|
4390
|
-
var l =
|
|
4410
|
+
for (var s = ut(i.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4411
|
+
var l = a.value;
|
|
4391
4412
|
l.next(r);
|
|
4392
4413
|
}
|
|
4393
4414
|
} catch (u) {
|
|
4394
4415
|
n = { error: u };
|
|
4395
4416
|
} finally {
|
|
4396
4417
|
try {
|
|
4397
|
-
|
|
4418
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
4398
4419
|
} finally {
|
|
4399
4420
|
if (n)
|
|
4400
4421
|
throw n.error;
|
|
@@ -4434,21 +4455,21 @@ var po = vr(function(e) {
|
|
|
4434
4455
|
}, t.prototype._subscribe = function(r) {
|
|
4435
4456
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4436
4457
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4437
|
-
var i = this, n = this, o = n.hasError,
|
|
4438
|
-
return o ||
|
|
4439
|
-
i.currentObservers = null,
|
|
4458
|
+
var i = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
|
|
4459
|
+
return o || s ? xr : (this.currentObservers = null, a.push(r), new Ne(function() {
|
|
4460
|
+
i.currentObservers = null, ct(a, r);
|
|
4440
4461
|
}));
|
|
4441
4462
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4442
|
-
var i = this, n = i.hasError, o = i.thrownError,
|
|
4443
|
-
n ? r.error(o) :
|
|
4463
|
+
var i = this, n = i.hasError, o = i.thrownError, s = i.isStopped;
|
|
4464
|
+
n ? r.error(o) : s && r.complete();
|
|
4444
4465
|
}, t.prototype.asObservable = function() {
|
|
4445
|
-
var r = new
|
|
4466
|
+
var r = new Gt();
|
|
4446
4467
|
return r.source = this, r;
|
|
4447
4468
|
}, t.create = function(r, i) {
|
|
4448
|
-
return new
|
|
4469
|
+
return new jt(r, i);
|
|
4449
4470
|
}, t;
|
|
4450
|
-
}(
|
|
4451
|
-
|
|
4471
|
+
}(Gt), jt = function(e) {
|
|
4472
|
+
me(t, e);
|
|
4452
4473
|
function t(r, i) {
|
|
4453
4474
|
var n = e.call(this) || this;
|
|
4454
4475
|
return n.destination = r, n.source = i, n;
|
|
@@ -4464,54 +4485,54 @@ var po = vr(function(e) {
|
|
|
4464
4485
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
4465
4486
|
}, t.prototype._subscribe = function(r) {
|
|
4466
4487
|
var i, n;
|
|
4467
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
4488
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : xr;
|
|
4468
4489
|
}, t;
|
|
4469
|
-
}(
|
|
4490
|
+
}(Sr), wr = {
|
|
4470
4491
|
now: function() {
|
|
4471
|
-
return (
|
|
4492
|
+
return (wr.delegate || Date).now();
|
|
4472
4493
|
},
|
|
4473
4494
|
delegate: void 0
|
|
4474
|
-
},
|
|
4475
|
-
|
|
4495
|
+
}, bo = function(e) {
|
|
4496
|
+
me(t, e);
|
|
4476
4497
|
function t(r, i, n) {
|
|
4477
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
4498
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = wr);
|
|
4478
4499
|
var o = e.call(this) || this;
|
|
4479
4500
|
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
4480
4501
|
}
|
|
4481
4502
|
return t.prototype.next = function(r) {
|
|
4482
|
-
var i = this, n = i.isStopped, o = i._buffer,
|
|
4483
|
-
n || (o.push(r), !
|
|
4503
|
+
var i = this, n = i.isStopped, o = i._buffer, s = i._infiniteTimeWindow, a = i._timestampProvider, l = i._windowTime;
|
|
4504
|
+
n || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
4484
4505
|
}, t.prototype._subscribe = function(r) {
|
|
4485
4506
|
this._throwIfClosed(), this._trimBuffer();
|
|
4486
|
-
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow,
|
|
4487
|
-
r.next(
|
|
4507
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, s = n._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
4508
|
+
r.next(a[l]);
|
|
4488
4509
|
return this._checkFinalizedStatuses(r), i;
|
|
4489
4510
|
}, t.prototype._trimBuffer = function() {
|
|
4490
|
-
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer,
|
|
4491
|
-
if (i < 1 / 0 &&
|
|
4511
|
+
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * i;
|
|
4512
|
+
if (i < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
4492
4513
|
for (var l = n.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
4493
4514
|
u = h;
|
|
4494
4515
|
u && o.splice(0, u + 1);
|
|
4495
4516
|
}
|
|
4496
4517
|
}, t;
|
|
4497
|
-
}(
|
|
4498
|
-
const
|
|
4499
|
-
if (
|
|
4500
|
-
const r = new
|
|
4501
|
-
|
|
4518
|
+
}(Sr);
|
|
4519
|
+
const kt = [], Vt = {}, vo = (e, t = 0) => {
|
|
4520
|
+
if (kt.indexOf(e) == -1) {
|
|
4521
|
+
const r = new bo(t);
|
|
4522
|
+
Vt[e] = r, kt.push(e);
|
|
4502
4523
|
}
|
|
4503
|
-
return
|
|
4524
|
+
return Vt[e];
|
|
4504
4525
|
};
|
|
4505
|
-
window.emWidgets = { topic:
|
|
4506
|
-
const
|
|
4526
|
+
window.emWidgets = { topic: vo };
|
|
4527
|
+
const Eo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4507
4528
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4508
|
-
function
|
|
4529
|
+
function _o(e, t) {
|
|
4509
4530
|
if (e) {
|
|
4510
4531
|
const r = document.createElement("style");
|
|
4511
4532
|
r.innerHTML = t, e.appendChild(r);
|
|
4512
4533
|
}
|
|
4513
4534
|
}
|
|
4514
|
-
function
|
|
4535
|
+
function xo(e, t) {
|
|
4515
4536
|
if (!e || !t)
|
|
4516
4537
|
return;
|
|
4517
4538
|
const r = new URL(t);
|
|
@@ -4522,7 +4543,7 @@ function Eo(e, t) {
|
|
|
4522
4543
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4523
4544
|
});
|
|
4524
4545
|
}
|
|
4525
|
-
function
|
|
4546
|
+
function To(e, t, r) {
|
|
4526
4547
|
if (window.emMessageBus) {
|
|
4527
4548
|
const i = document.createElement("style");
|
|
4528
4549
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4530,78 +4551,78 @@ function _o(e, t, r) {
|
|
|
4530
4551
|
});
|
|
4531
4552
|
}
|
|
4532
4553
|
}
|
|
4533
|
-
function
|
|
4534
|
-
|
|
4554
|
+
function Lo(e) {
|
|
4555
|
+
zr(e, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
4535
4556
|
}
|
|
4536
|
-
function
|
|
4557
|
+
function Wt(e, t, r) {
|
|
4537
4558
|
const i = e.slice();
|
|
4538
4559
|
return i[37] = t[r], i[38] = t, i[39] = r, i;
|
|
4539
4560
|
}
|
|
4540
|
-
function
|
|
4561
|
+
function So(e) {
|
|
4541
4562
|
let t, r, i, n = (
|
|
4542
4563
|
/*$_*/
|
|
4543
4564
|
e[9]("expandLimits") + ""
|
|
4544
|
-
), o,
|
|
4565
|
+
), o, s, a, l, u, h, c, f, p, y = Tt(
|
|
4545
4566
|
/*lazyShowedHistoryArray*/
|
|
4546
4567
|
e[7]
|
|
4547
4568
|
), d = [];
|
|
4548
4569
|
for (let v = 0; v < y.length; v += 1)
|
|
4549
|
-
d[v] =
|
|
4570
|
+
d[v] = Xt(Wt(e, y, v));
|
|
4550
4571
|
return {
|
|
4551
4572
|
c() {
|
|
4552
|
-
t =
|
|
4573
|
+
t = P("div"), r = P("div"), i = P("button"), o = G(n), s = Qe(), a = Ue("svg"), l = Ue("path"), u = Ue("path"), h = Qe(), c = P("div");
|
|
4553
4574
|
for (let v = 0; v < d.length; v += 1)
|
|
4554
4575
|
d[v].c();
|
|
4555
|
-
|
|
4556
|
-
|
|
4576
|
+
_(l, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), _(l, "class", "svelte-19ml84y"), _(u, "d", "M0 0h36v36h-36z"), _(u, "fill", "none"), _(u, "class", "svelte-19ml84y"), _(a, "class", "ExpandArrow svelte-19ml84y"), _(a, "xmlns", "http://www.w3.org/2000/svg"), _(a, "width", "36"), _(a, "height", "36"), _(a, "viewBox", "0 0 36 36"), _(a, "fill", "#999"), be(
|
|
4577
|
+
a,
|
|
4557
4578
|
"extended",
|
|
4558
4579
|
/*extended*/
|
|
4559
4580
|
e[8]
|
|
4560
|
-
),
|
|
4581
|
+
), _(i, "class", "ExpandButton svelte-19ml84y"), _(c, "class", "HistoryDisplayArea svelte-19ml84y"), be(
|
|
4561
4582
|
c,
|
|
4562
4583
|
"hidden",
|
|
4563
4584
|
/*hidden*/
|
|
4564
4585
|
e[5]
|
|
4565
|
-
),
|
|
4566
|
-
(e[10] ? "Desktop" : "") + " svelte-19ml84y"),
|
|
4586
|
+
), _(r, "class", "HistoryWrapper " + /*isDesktop*/
|
|
4587
|
+
(e[10] ? "Desktop" : "") + " svelte-19ml84y"), _(t, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
|
|
4567
4588
|
},
|
|
4568
|
-
m(v,
|
|
4569
|
-
X(v, t,
|
|
4570
|
-
for (let
|
|
4571
|
-
d[
|
|
4572
|
-
f || (p =
|
|
4589
|
+
m(v, H) {
|
|
4590
|
+
X(v, t, H), x(t, r), x(r, i), x(i, o), x(i, s), x(i, a), x(a, l), x(a, u), x(r, h), x(r, c);
|
|
4591
|
+
for (let g = 0; g < d.length; g += 1)
|
|
4592
|
+
d[g] && d[g].m(c, null);
|
|
4593
|
+
f || (p = Jr(
|
|
4573
4594
|
i,
|
|
4574
4595
|
"click",
|
|
4575
4596
|
/*toggleHistoryDisplayArea*/
|
|
4576
4597
|
e[11]
|
|
4577
4598
|
), f = !0);
|
|
4578
4599
|
},
|
|
4579
|
-
p(v,
|
|
4580
|
-
if (
|
|
4600
|
+
p(v, H) {
|
|
4601
|
+
if (H[0] & /*$_*/
|
|
4581
4602
|
512 && n !== (n = /*$_*/
|
|
4582
|
-
v[9]("expandLimits") + "") && k(o, n),
|
|
4583
|
-
256 &&
|
|
4584
|
-
|
|
4603
|
+
v[9]("expandLimits") + "") && k(o, n), H[0] & /*extended*/
|
|
4604
|
+
256 && be(
|
|
4605
|
+
a,
|
|
4585
4606
|
"extended",
|
|
4586
4607
|
/*extended*/
|
|
4587
4608
|
v[8]
|
|
4588
|
-
),
|
|
4609
|
+
), H[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4589
4610
|
650) {
|
|
4590
|
-
y =
|
|
4611
|
+
y = Tt(
|
|
4591
4612
|
/*lazyShowedHistoryArray*/
|
|
4592
4613
|
v[7]
|
|
4593
4614
|
);
|
|
4594
|
-
let
|
|
4595
|
-
for (
|
|
4596
|
-
const
|
|
4597
|
-
d[
|
|
4615
|
+
let g;
|
|
4616
|
+
for (g = 0; g < y.length; g += 1) {
|
|
4617
|
+
const S = Wt(v, y, g);
|
|
4618
|
+
d[g] ? d[g].p(S, H) : (d[g] = Xt(S), d[g].c(), d[g].m(c, null));
|
|
4598
4619
|
}
|
|
4599
|
-
for (;
|
|
4600
|
-
d[
|
|
4620
|
+
for (; g < d.length; g += 1)
|
|
4621
|
+
d[g].d(1);
|
|
4601
4622
|
d.length = y.length;
|
|
4602
4623
|
}
|
|
4603
|
-
|
|
4604
|
-
32 &&
|
|
4624
|
+
H[0] & /*hidden*/
|
|
4625
|
+
32 && be(
|
|
4605
4626
|
c,
|
|
4606
4627
|
"hidden",
|
|
4607
4628
|
/*hidden*/
|
|
@@ -4609,14 +4630,14 @@ function To(e) {
|
|
|
4609
4630
|
);
|
|
4610
4631
|
},
|
|
4611
4632
|
d(v) {
|
|
4612
|
-
v && V(t),
|
|
4633
|
+
v && V(t), Yr(d, v), f = !1, p();
|
|
4613
4634
|
}
|
|
4614
4635
|
};
|
|
4615
4636
|
}
|
|
4616
|
-
function
|
|
4617
|
-
return { c:
|
|
4637
|
+
function wo(e) {
|
|
4638
|
+
return { c: I, m: I, p: I, d: I };
|
|
4618
4639
|
}
|
|
4619
|
-
function
|
|
4640
|
+
function Ao(e) {
|
|
4620
4641
|
let t, r = (
|
|
4621
4642
|
/*lang*/
|
|
4622
4643
|
(e[0] ? (
|
|
@@ -4626,10 +4647,10 @@ function So(e) {
|
|
|
4626
4647
|
), i;
|
|
4627
4648
|
return {
|
|
4628
4649
|
c() {
|
|
4629
|
-
t =
|
|
4650
|
+
t = P("p"), i = G(r), _(t, "class", "svelte-19ml84y");
|
|
4630
4651
|
},
|
|
4631
4652
|
m(n, o) {
|
|
4632
|
-
X(n, t, o),
|
|
4653
|
+
X(n, t, o), x(t, i);
|
|
4633
4654
|
},
|
|
4634
4655
|
p(n, o) {
|
|
4635
4656
|
o[0] & /*lang, $_*/
|
|
@@ -4644,11 +4665,11 @@ function So(e) {
|
|
|
4644
4665
|
}
|
|
4645
4666
|
};
|
|
4646
4667
|
}
|
|
4647
|
-
function
|
|
4668
|
+
function Po(e) {
|
|
4648
4669
|
let t, r, i, n = (
|
|
4649
4670
|
/*history*/
|
|
4650
4671
|
e[37].type + ""
|
|
4651
|
-
), o,
|
|
4672
|
+
), o, s, a = (
|
|
4652
4673
|
/*history*/
|
|
4653
4674
|
e[37].amount + ""
|
|
4654
4675
|
), l, u, h = (
|
|
@@ -4657,17 +4678,17 @@ function wo(e) {
|
|
|
4657
4678
|
), c;
|
|
4658
4679
|
return {
|
|
4659
4680
|
c() {
|
|
4660
|
-
t =
|
|
4681
|
+
t = P("div"), r = P("span"), i = P("span"), o = G(n), s = P("span"), l = G(a), u = P("span"), c = G(h), _(i, "class", "LimitType svelte-19ml84y"), _(s, "class", "LimitAmountPeriod svelte-19ml84y"), _(r, "class", "GeneralLimitInformation svelte-19ml84y"), _(u, "class", "DateLimitInformation svelte-19ml84y"), _(t, "class", "HistoryRow svelte-19ml84y");
|
|
4661
4682
|
},
|
|
4662
4683
|
m(f, p) {
|
|
4663
|
-
X(f, t, p),
|
|
4684
|
+
X(f, t, p), x(t, r), x(r, i), x(i, o), x(r, s), x(s, l), x(t, u), x(u, c);
|
|
4664
4685
|
},
|
|
4665
4686
|
p(f, p) {
|
|
4666
4687
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4667
4688
|
128 && n !== (n = /*history*/
|
|
4668
4689
|
f[37].type + "") && k(o, n), p[0] & /*lazyShowedHistoryArray*/
|
|
4669
|
-
128 &&
|
|
4670
|
-
f[37].amount + "") && k(l,
|
|
4690
|
+
128 && a !== (a = /*history*/
|
|
4691
|
+
f[37].amount + "") && k(l, a), p[0] & /*lazyShowedHistoryArray*/
|
|
4671
4692
|
128 && h !== (h = /*history*/
|
|
4672
4693
|
f[37].date + "") && k(c, h);
|
|
4673
4694
|
},
|
|
@@ -4676,11 +4697,11 @@ function wo(e) {
|
|
|
4676
4697
|
}
|
|
4677
4698
|
};
|
|
4678
4699
|
}
|
|
4679
|
-
function
|
|
4700
|
+
function Ho(e) {
|
|
4680
4701
|
let t, r, i, n = (
|
|
4681
4702
|
/*history*/
|
|
4682
4703
|
e[37].type + ""
|
|
4683
|
-
), o,
|
|
4704
|
+
), o, s, a = (
|
|
4684
4705
|
/*$_*/
|
|
4685
4706
|
e[9]("limitRemoved") + ""
|
|
4686
4707
|
), l, u, h = (
|
|
@@ -4689,17 +4710,17 @@ function Ao(e) {
|
|
|
4689
4710
|
), c;
|
|
4690
4711
|
return {
|
|
4691
4712
|
c() {
|
|
4692
|
-
t =
|
|
4713
|
+
t = P("div"), r = P("span"), i = P("span"), o = G(n), s = P("span"), l = G(a), u = P("span"), c = G(h), _(i, "class", "LimitType svelte-19ml84y"), _(s, "class", "LimitAmountPeriod svelte-19ml84y"), _(r, "class", "GeneralLimitInformation svelte-19ml84y"), _(u, "class", "DateLimitInformation svelte-19ml84y"), _(t, "class", "HistoryRow svelte-19ml84y");
|
|
4693
4714
|
},
|
|
4694
4715
|
m(f, p) {
|
|
4695
|
-
X(f, t, p),
|
|
4716
|
+
X(f, t, p), x(t, r), x(r, i), x(i, o), x(r, s), x(s, l), x(t, u), x(u, c);
|
|
4696
4717
|
},
|
|
4697
4718
|
p(f, p) {
|
|
4698
4719
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4699
4720
|
128 && n !== (n = /*history*/
|
|
4700
4721
|
f[37].type + "") && k(o, n), p[0] & /*$_*/
|
|
4701
|
-
512 &&
|
|
4702
|
-
f[9]("limitRemoved") + "") && k(l,
|
|
4722
|
+
512 && a !== (a = /*$_*/
|
|
4723
|
+
f[9]("limitRemoved") + "") && k(l, a), p[0] & /*lazyShowedHistoryArray*/
|
|
4703
4724
|
128 && h !== (h = /*history*/
|
|
4704
4725
|
f[37].date + "") && k(c, h);
|
|
4705
4726
|
},
|
|
@@ -4708,7 +4729,7 @@ function Ao(e) {
|
|
|
4708
4729
|
}
|
|
4709
4730
|
};
|
|
4710
4731
|
}
|
|
4711
|
-
function
|
|
4732
|
+
function Xt(e) {
|
|
4712
4733
|
let t, r, i, n = (
|
|
4713
4734
|
/*index*/
|
|
4714
4735
|
e[39]
|
|
@@ -4716,10 +4737,10 @@ function Vt(e) {
|
|
|
4716
4737
|
function o(h, c) {
|
|
4717
4738
|
return (
|
|
4718
4739
|
/*history*/
|
|
4719
|
-
h[37].removed ?
|
|
4740
|
+
h[37].removed ? Ho : Po
|
|
4720
4741
|
);
|
|
4721
4742
|
}
|
|
4722
|
-
let
|
|
4743
|
+
let s = o(e), a = s(e);
|
|
4723
4744
|
const l = () => (
|
|
4724
4745
|
/*div_binding*/
|
|
4725
4746
|
e[22](t, n)
|
|
@@ -4729,98 +4750,98 @@ function Vt(e) {
|
|
|
4729
4750
|
);
|
|
4730
4751
|
return {
|
|
4731
4752
|
c() {
|
|
4732
|
-
t =
|
|
4753
|
+
t = P("div"), a.c(), r = Qe(), _(t, "class", i = _t(
|
|
4733
4754
|
/*index*/
|
|
4734
4755
|
e[39] > +/*numberofentries*/
|
|
4735
4756
|
e[1] ? "LimitContainer" : ""
|
|
4736
4757
|
) + " svelte-19ml84y");
|
|
4737
4758
|
},
|
|
4738
4759
|
m(h, c) {
|
|
4739
|
-
X(h, t, c),
|
|
4760
|
+
X(h, t, c), a.m(t, null), x(t, r), l();
|
|
4740
4761
|
},
|
|
4741
4762
|
p(h, c) {
|
|
4742
|
-
e = h,
|
|
4743
|
-
2 && i !== (i =
|
|
4763
|
+
e = h, s === (s = o(e)) && a ? a.p(e, c) : (a.d(1), a = s(e), a && (a.c(), a.m(t, r))), c[0] & /*numberofentries*/
|
|
4764
|
+
2 && i !== (i = _t(
|
|
4744
4765
|
/*index*/
|
|
4745
4766
|
e[39] > +/*numberofentries*/
|
|
4746
4767
|
e[1] ? "LimitContainer" : ""
|
|
4747
|
-
) + " svelte-19ml84y") &&
|
|
4768
|
+
) + " svelte-19ml84y") && _(t, "class", i), n !== /*index*/
|
|
4748
4769
|
e[39] && (u(), n = /*index*/
|
|
4749
4770
|
e[39], l());
|
|
4750
4771
|
},
|
|
4751
4772
|
d(h) {
|
|
4752
|
-
h && V(t),
|
|
4773
|
+
h && V(t), a.d(), u();
|
|
4753
4774
|
}
|
|
4754
4775
|
};
|
|
4755
4776
|
}
|
|
4756
|
-
function
|
|
4777
|
+
function Oo(e) {
|
|
4757
4778
|
let t;
|
|
4758
|
-
function r(o,
|
|
4779
|
+
function r(o, s) {
|
|
4759
4780
|
return (
|
|
4760
4781
|
/*hasErrors*/
|
|
4761
|
-
o[6] ?
|
|
4782
|
+
o[6] ? Ao : (
|
|
4762
4783
|
/*isLoading*/
|
|
4763
|
-
o[4] ?
|
|
4784
|
+
o[4] ? wo : So
|
|
4764
4785
|
)
|
|
4765
4786
|
);
|
|
4766
4787
|
}
|
|
4767
4788
|
let i = r(e), n = i(e);
|
|
4768
4789
|
return {
|
|
4769
4790
|
c() {
|
|
4770
|
-
t =
|
|
4791
|
+
t = P("div"), n.c(), _(t, "class", "svelte-19ml84y");
|
|
4771
4792
|
},
|
|
4772
|
-
m(o,
|
|
4773
|
-
X(o, t,
|
|
4793
|
+
m(o, s) {
|
|
4794
|
+
X(o, t, s), n.m(t, null), e[23](t);
|
|
4774
4795
|
},
|
|
4775
|
-
p(o,
|
|
4776
|
-
i === (i = r(o)) && n ? n.p(o,
|
|
4796
|
+
p(o, s) {
|
|
4797
|
+
i === (i = r(o)) && n ? n.p(o, s) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
4777
4798
|
},
|
|
4778
|
-
i:
|
|
4779
|
-
o:
|
|
4799
|
+
i: I,
|
|
4800
|
+
o: I,
|
|
4780
4801
|
d(o) {
|
|
4781
4802
|
o && V(t), n.d(), e[23](null);
|
|
4782
4803
|
}
|
|
4783
4804
|
};
|
|
4784
4805
|
}
|
|
4785
|
-
function
|
|
4806
|
+
function Io(e, t, r) {
|
|
4786
4807
|
let i;
|
|
4787
|
-
|
|
4788
|
-
let n = window.navigator.userAgent, o = !
|
|
4789
|
-
const
|
|
4790
|
-
fetch(
|
|
4791
|
-
Object.keys(
|
|
4792
|
-
|
|
4808
|
+
Xr(e, io, (m) => r(9, i = m));
|
|
4809
|
+
let n = window.navigator.userAgent, o = !Eo(n), { lang: s = "" } = t, { userid: a = "" } = t, { session: l = "" } = t, { endpoint: u = "" } = t, { apiversion: h = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: v } = t, { translationurl: H = "" } = t, g, S = new Array(), D = parseInt(c, 10), R = !1, $ = !0, W = [], pe = [], de = !0, Re = !1, oe = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4810
|
+
const Ar = () => {
|
|
4811
|
+
fetch(H).then((T) => T.json()).then((T) => {
|
|
4812
|
+
Object.keys(T).forEach((C) => {
|
|
4813
|
+
Dt(C, T[C]);
|
|
4793
4814
|
});
|
|
4794
|
-
}).catch((
|
|
4795
|
-
console.log(
|
|
4815
|
+
}).catch((T) => {
|
|
4816
|
+
console.log(T);
|
|
4796
4817
|
});
|
|
4797
4818
|
};
|
|
4798
|
-
Object.keys(
|
|
4799
|
-
|
|
4819
|
+
Object.keys(ze).forEach((m) => {
|
|
4820
|
+
Dt(m, ze[m]);
|
|
4800
4821
|
});
|
|
4801
|
-
const
|
|
4802
|
-
let m = h === "gmcore" ? `/v2/player/${
|
|
4803
|
-
|
|
4822
|
+
const Pr = () => {
|
|
4823
|
+
let m = h === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`, T = new URL(m, u);
|
|
4824
|
+
T.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), T.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), T.searchParams.append("limit", "10000");
|
|
4804
4825
|
let C = {
|
|
4805
4826
|
method: "GET",
|
|
4806
4827
|
headers: { "X-SessionID": l }
|
|
4807
4828
|
};
|
|
4808
|
-
fetch(
|
|
4829
|
+
fetch(T.href, C).then((A) => {
|
|
4809
4830
|
if (A.status >= 300)
|
|
4810
|
-
throw r(4,
|
|
4831
|
+
throw r(4, $ = !1), r(6, R = !0), new Error("There was an error fetching the limits");
|
|
4811
4832
|
return A.json();
|
|
4812
4833
|
}).then(
|
|
4813
4834
|
(A) => {
|
|
4814
|
-
A.length && (W = Hr(A), r(7, pe = W.slice(0,
|
|
4835
|
+
A.length && (W = Hr(A), r(7, pe = W.slice(0, D))), r(4, $ = !1);
|
|
4815
4836
|
},
|
|
4816
4837
|
(A) => {
|
|
4817
4838
|
console.error("There was an error", A), r(6, R = !0);
|
|
4818
4839
|
}
|
|
4819
4840
|
);
|
|
4820
4841
|
}, Hr = (m) => {
|
|
4821
|
-
const
|
|
4842
|
+
const T = !!ze[s];
|
|
4822
4843
|
return m.map((A) => {
|
|
4823
|
-
let
|
|
4844
|
+
let U = {
|
|
4824
4845
|
amount: "",
|
|
4825
4846
|
currency: "",
|
|
4826
4847
|
date: "",
|
|
@@ -4828,83 +4849,83 @@ function Po(e, t, r) {
|
|
|
4828
4849
|
type: "",
|
|
4829
4850
|
removed: !1
|
|
4830
4851
|
};
|
|
4831
|
-
return
|
|
4852
|
+
return U.amount = Or(A), U.currency = T ? oe[A.limitCurrencyCode] : A.limitCurrencyCode, U.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(A.limitDate)), U.period = i(`${A.limitPeriod.toLowerCase()}`), U.type = h === "gmcore" ? i(`historyLimitType${A.limitType.split(" ")[0]}`) : i(`historyLimitType${A.limitType.split(" ")[0]}`) + " " + i(`historyProductType${A.limitProductType}`), U.removed = A.limitAmount === -1, U;
|
|
4832
4853
|
});
|
|
4833
|
-
},
|
|
4834
|
-
let
|
|
4854
|
+
}, Or = (m) => {
|
|
4855
|
+
let T = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
4835
4856
|
if (!p) {
|
|
4836
|
-
let
|
|
4837
|
-
return `${
|
|
4857
|
+
let Ur = oe[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
4858
|
+
return `${T}${Ur}`;
|
|
4838
4859
|
}
|
|
4839
4860
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4840
|
-
const C =
|
|
4861
|
+
const C = T.match(/\{(\d+)decimals\}/), A = C ? parseInt(C[1], 10) : 2, U = C ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4841
4862
|
let ye = parseFloat(m.limitAmount).toFixed(A);
|
|
4842
|
-
const [
|
|
4843
|
-
let [
|
|
4844
|
-
return
|
|
4845
|
-
|
|
4846
|
-
ye.split(
|
|
4847
|
-
),
|
|
4863
|
+
const [Dr, Me] = p.includes(".") ? [",", "."] : [".", ","];
|
|
4864
|
+
let [De, $r] = ye.split(".");
|
|
4865
|
+
return De = De.replace(/\B(?=(\d{3})+(?!\d))/g, Dr), ye = `${De}${Me}${$r}`, T = T.replace("{currency}", oe[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", ye.split(Me)[0]).replace(
|
|
4866
|
+
U,
|
|
4867
|
+
ye.split(Me)[1]
|
|
4868
|
+
), T;
|
|
4848
4869
|
}, Ir = () => {
|
|
4849
|
-
r(5, de = !de), r(8,
|
|
4870
|
+
r(5, de = !de), r(8, Re = !Re);
|
|
4850
4871
|
};
|
|
4851
|
-
let
|
|
4852
|
-
m.forEach((
|
|
4853
|
-
|
|
4872
|
+
let yt = new IntersectionObserver((m) => {
|
|
4873
|
+
m.forEach((T) => {
|
|
4874
|
+
T.isIntersecting && (D += parseInt(c, 10) || 10, pe.length < W.length && r(7, pe = W.slice(0, D)));
|
|
4854
4875
|
});
|
|
4855
4876
|
});
|
|
4856
4877
|
const Br = () => {
|
|
4857
|
-
|
|
4858
|
-
},
|
|
4878
|
+
yt.observe(S[S.length - 1]);
|
|
4879
|
+
}, Cr = () => {
|
|
4859
4880
|
if (!f)
|
|
4860
4881
|
return;
|
|
4861
4882
|
let m = {};
|
|
4862
|
-
f.split(",").forEach((
|
|
4863
|
-
let C =
|
|
4883
|
+
f.split(",").forEach((T) => {
|
|
4884
|
+
let C = T.split(":");
|
|
4864
4885
|
m[C[0].trim()] = C[1].trim();
|
|
4865
|
-
}),
|
|
4866
|
-
},
|
|
4867
|
-
|
|
4886
|
+
}), oe = ge(ge({}, oe), m);
|
|
4887
|
+
}, Nr = () => {
|
|
4888
|
+
no(s);
|
|
4868
4889
|
};
|
|
4869
|
-
|
|
4870
|
-
|
|
4890
|
+
ti(() => () => {
|
|
4891
|
+
yt.unobserve(S[S.length - 1]);
|
|
4871
4892
|
});
|
|
4872
|
-
function
|
|
4893
|
+
function Rr(m, T) {
|
|
4873
4894
|
Se[m ? "unshift" : "push"](() => {
|
|
4874
|
-
|
|
4895
|
+
S[T] = m, r(3, S);
|
|
4875
4896
|
});
|
|
4876
4897
|
}
|
|
4877
|
-
function
|
|
4898
|
+
function Mr(m) {
|
|
4878
4899
|
Se[m ? "unshift" : "push"](() => {
|
|
4879
|
-
|
|
4900
|
+
g = m, r(2, g);
|
|
4880
4901
|
});
|
|
4881
4902
|
}
|
|
4882
4903
|
return e.$$set = (m) => {
|
|
4883
|
-
"lang" in m && r(0,
|
|
4904
|
+
"lang" in m && r(0, s = m.lang), "userid" in m && r(12, a = m.userid), "session" in m && r(13, l = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, h = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "mbsource" in m && r(20, v = m.mbsource), "translationurl" in m && r(21, H = m.translationurl);
|
|
4884
4905
|
}, e.$$.update = () => {
|
|
4885
4906
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
4886
|
-
65536 && f &&
|
|
4887
|
-
61440 && u &&
|
|
4888
|
-
56 &&
|
|
4889
|
-
1 &&
|
|
4890
|
-
262148 && y &&
|
|
4891
|
-
524292 && d &&
|
|
4892
|
-
1048580 && v &&
|
|
4893
|
-
2097156 &&
|
|
4907
|
+
65536 && f && Cr(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
4908
|
+
61440 && u && a && l && h && Pr(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
4909
|
+
56 && S[0] && !$ && !de && Br(), e.$$.dirty[0] & /*lang*/
|
|
4910
|
+
1 && s && Nr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4911
|
+
262148 && y && g && _o(g, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4912
|
+
524292 && d && g && xo(g, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4913
|
+
1048580 && v && g && To(g, `${v}.Style`), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
4914
|
+
2097156 && H && g && Ar();
|
|
4894
4915
|
}, [
|
|
4895
|
-
|
|
4916
|
+
s,
|
|
4896
4917
|
c,
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4918
|
+
g,
|
|
4919
|
+
S,
|
|
4920
|
+
$,
|
|
4900
4921
|
de,
|
|
4901
4922
|
R,
|
|
4902
4923
|
pe,
|
|
4903
|
-
|
|
4924
|
+
Re,
|
|
4904
4925
|
i,
|
|
4905
4926
|
o,
|
|
4906
4927
|
Ir,
|
|
4907
|
-
|
|
4928
|
+
a,
|
|
4908
4929
|
l,
|
|
4909
4930
|
u,
|
|
4910
4931
|
h,
|
|
@@ -4913,19 +4934,19 @@ function Po(e, t, r) {
|
|
|
4913
4934
|
y,
|
|
4914
4935
|
d,
|
|
4915
4936
|
v,
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4937
|
+
H,
|
|
4938
|
+
Rr,
|
|
4939
|
+
Mr
|
|
4919
4940
|
];
|
|
4920
4941
|
}
|
|
4921
|
-
class
|
|
4942
|
+
class Bo extends mi {
|
|
4922
4943
|
constructor(t) {
|
|
4923
|
-
super(),
|
|
4944
|
+
super(), ci(
|
|
4924
4945
|
this,
|
|
4925
4946
|
t,
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4947
|
+
Io,
|
|
4948
|
+
Oo,
|
|
4949
|
+
Zt,
|
|
4929
4950
|
{
|
|
4930
4951
|
lang: 0,
|
|
4931
4952
|
userid: 12,
|
|
@@ -4940,7 +4961,7 @@ class Io extends fi {
|
|
|
4940
4961
|
mbsource: 20,
|
|
4941
4962
|
translationurl: 21
|
|
4942
4963
|
},
|
|
4943
|
-
|
|
4964
|
+
Lo,
|
|
4944
4965
|
[-1, -1]
|
|
4945
4966
|
);
|
|
4946
4967
|
}
|
|
@@ -4948,76 +4969,76 @@ class Io extends fi {
|
|
|
4948
4969
|
return this.$$.ctx[0];
|
|
4949
4970
|
}
|
|
4950
4971
|
set lang(t) {
|
|
4951
|
-
this.$$set({ lang: t }),
|
|
4972
|
+
this.$$set({ lang: t }), B();
|
|
4952
4973
|
}
|
|
4953
4974
|
get userid() {
|
|
4954
4975
|
return this.$$.ctx[12];
|
|
4955
4976
|
}
|
|
4956
4977
|
set userid(t) {
|
|
4957
|
-
this.$$set({ userid: t }),
|
|
4978
|
+
this.$$set({ userid: t }), B();
|
|
4958
4979
|
}
|
|
4959
4980
|
get session() {
|
|
4960
4981
|
return this.$$.ctx[13];
|
|
4961
4982
|
}
|
|
4962
4983
|
set session(t) {
|
|
4963
|
-
this.$$set({ session: t }),
|
|
4984
|
+
this.$$set({ session: t }), B();
|
|
4964
4985
|
}
|
|
4965
4986
|
get endpoint() {
|
|
4966
4987
|
return this.$$.ctx[14];
|
|
4967
4988
|
}
|
|
4968
4989
|
set endpoint(t) {
|
|
4969
|
-
this.$$set({ endpoint: t }),
|
|
4990
|
+
this.$$set({ endpoint: t }), B();
|
|
4970
4991
|
}
|
|
4971
4992
|
get apiversion() {
|
|
4972
4993
|
return this.$$.ctx[15];
|
|
4973
4994
|
}
|
|
4974
4995
|
set apiversion(t) {
|
|
4975
|
-
this.$$set({ apiversion: t }),
|
|
4996
|
+
this.$$set({ apiversion: t }), B();
|
|
4976
4997
|
}
|
|
4977
4998
|
get numberofentries() {
|
|
4978
4999
|
return this.$$.ctx[1];
|
|
4979
5000
|
}
|
|
4980
5001
|
set numberofentries(t) {
|
|
4981
|
-
this.$$set({ numberofentries: t }),
|
|
5002
|
+
this.$$set({ numberofentries: t }), B();
|
|
4982
5003
|
}
|
|
4983
5004
|
get customcurrencysymbols() {
|
|
4984
5005
|
return this.$$.ctx[16];
|
|
4985
5006
|
}
|
|
4986
5007
|
set customcurrencysymbols(t) {
|
|
4987
|
-
this.$$set({ customcurrencysymbols: t }),
|
|
5008
|
+
this.$$set({ customcurrencysymbols: t }), B();
|
|
4988
5009
|
}
|
|
4989
5010
|
get limitformat() {
|
|
4990
5011
|
return this.$$.ctx[17];
|
|
4991
5012
|
}
|
|
4992
5013
|
set limitformat(t) {
|
|
4993
|
-
this.$$set({ limitformat: t }),
|
|
5014
|
+
this.$$set({ limitformat: t }), B();
|
|
4994
5015
|
}
|
|
4995
5016
|
get clientstyling() {
|
|
4996
5017
|
return this.$$.ctx[18];
|
|
4997
5018
|
}
|
|
4998
5019
|
set clientstyling(t) {
|
|
4999
|
-
this.$$set({ clientstyling: t }),
|
|
5020
|
+
this.$$set({ clientstyling: t }), B();
|
|
5000
5021
|
}
|
|
5001
5022
|
get clientstylingurl() {
|
|
5002
5023
|
return this.$$.ctx[19];
|
|
5003
5024
|
}
|
|
5004
5025
|
set clientstylingurl(t) {
|
|
5005
|
-
this.$$set({ clientstylingurl: t }),
|
|
5026
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
5006
5027
|
}
|
|
5007
5028
|
get mbsource() {
|
|
5008
5029
|
return this.$$.ctx[20];
|
|
5009
5030
|
}
|
|
5010
5031
|
set mbsource(t) {
|
|
5011
|
-
this.$$set({ mbsource: t }),
|
|
5032
|
+
this.$$set({ mbsource: t }), B();
|
|
5012
5033
|
}
|
|
5013
5034
|
get translationurl() {
|
|
5014
5035
|
return this.$$.ctx[21];
|
|
5015
5036
|
}
|
|
5016
5037
|
set translationurl(t) {
|
|
5017
|
-
this.$$set({ translationurl: t }),
|
|
5038
|
+
this.$$set({ translationurl: t }), B();
|
|
5018
5039
|
}
|
|
5019
5040
|
}
|
|
5020
|
-
|
|
5041
|
+
fi(Bo, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5021
5042
|
export {
|
|
5022
|
-
|
|
5043
|
+
Bo as default
|
|
5023
5044
|
};
|