@everymatrix/player-transaction-history 1.76.3 → 1.76.4
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/PlayerTransactionHistory-B6yo4R0t.cjs +18 -0
- package/components/{PlayerTransactionHistory-D5hdtz_N.js → PlayerTransactionHistory-CjXe2mkN.js} +874 -839
- package/components/{PlayerTransactionHistory-D4qzBHFZ.js → PlayerTransactionHistory-CrLY5TgC.js} +858 -823
- package/es2015/player-transaction-history.cjs +1 -1
- package/es2015/player-transaction-history.js +1 -1
- package/esnext/player-transaction-history.js +1 -1
- package/package.json +1 -1
- package/components/PlayerTransactionHistory-BdSKOFDT.cjs +0 -18
package/components/{PlayerTransactionHistory-D5hdtz_N.js → PlayerTransactionHistory-CjXe2mkN.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var pr = Object.defineProperty, mr = Object.defineProperties;
|
|
2
|
+
var dr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var it = Object.getOwnPropertySymbols;
|
|
4
|
+
var br = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
br.call(t, r) && we(e, r, t[r]);
|
|
8
|
+
if (it)
|
|
9
|
+
for (var r of it(t))
|
|
10
|
+
yr.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var w = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, st = (e, t) => mr(e, dr(t));
|
|
13
|
+
var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var at = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Lt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ut() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function se(e) {
|
|
39
|
+
e.forEach(Lt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function et(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ct(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let le;
|
|
48
|
-
function
|
|
48
|
+
function ht(e, t) {
|
|
49
49
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function gr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Mt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function It(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function vr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Mt(t, r));
|
|
65
65
|
}
|
|
66
66
|
function x(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function _r(e, t, r) {
|
|
70
|
+
const n = Er(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = L("style");
|
|
73
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Er(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,45 +83,45 @@ function yr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function xr(e, t) {
|
|
87
87
|
return x(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ae(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function q(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function L(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function F(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function re(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Me() {
|
|
109
|
+
return re(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Tr(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function E(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Hr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function tt(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Sr(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -130,87 +130,87 @@ function Er(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let ne;
|
|
134
|
+
function te(e) {
|
|
135
|
+
ne = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
137
|
+
function wr() {
|
|
138
|
+
if (!ne)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
|
-
return
|
|
140
|
+
return ne;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Br(e) {
|
|
143
|
+
wr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const V = [],
|
|
145
|
+
const V = [], $e = [];
|
|
146
146
|
let X = [];
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
function
|
|
150
|
-
|
|
147
|
+
const lt = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
148
|
+
let Re = !1;
|
|
149
|
+
function Pr() {
|
|
150
|
+
Re || (Re = !0, Ar.then(A));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ue(e) {
|
|
153
153
|
X.push(e);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Be = /* @__PURE__ */ new Set();
|
|
156
156
|
let j = 0;
|
|
157
157
|
function A() {
|
|
158
158
|
if (j !== 0)
|
|
159
159
|
return;
|
|
160
|
-
const e =
|
|
160
|
+
const e = ne;
|
|
161
161
|
do {
|
|
162
162
|
try {
|
|
163
163
|
for (; j < V.length; ) {
|
|
164
164
|
const t = V[j];
|
|
165
|
-
j++,
|
|
165
|
+
j++, te(t), Or(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw V.length = 0, j = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (
|
|
171
|
-
|
|
170
|
+
for (te(null), V.length = 0, j = 0; $e.length; )
|
|
171
|
+
$e.pop()();
|
|
172
172
|
for (let t = 0; t < X.length; t += 1) {
|
|
173
173
|
const r = X[t];
|
|
174
|
-
|
|
174
|
+
Be.has(r) || (Be.add(r), r());
|
|
175
175
|
}
|
|
176
176
|
X.length = 0;
|
|
177
177
|
} while (V.length);
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
for (; lt.length; )
|
|
179
|
+
lt.pop()();
|
|
180
|
+
Re = !1, Be.clear(), te(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Or(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), se(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ir(e) {
|
|
190
190
|
const t = [], r = [];
|
|
191
191
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Lr(e, t) {
|
|
195
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Cr(e, t, r) {
|
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
|
199
|
-
n && n.m(t, r),
|
|
200
|
-
const o = e.$$.on_mount.map(
|
|
201
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
202
|
-
}), i.forEach(
|
|
199
|
+
n && n.m(t, r), Ue(() => {
|
|
200
|
+
const o = e.$$.on_mount.map(Lt).filter(et);
|
|
201
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
202
|
+
}), i.forEach(Ue);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Mr(e, t) {
|
|
205
205
|
const r = e.$$;
|
|
206
|
-
r.fragment !== null && (
|
|
206
|
+
r.fragment !== null && (Ir(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
208
|
+
function $r(e, t) {
|
|
209
|
+
e.$$.dirty[0] === -1 && (V.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
const h =
|
|
213
|
-
|
|
211
|
+
function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
212
|
+
const h = ne;
|
|
213
|
+
te(e);
|
|
214
214
|
const u = e.$$ = {
|
|
215
215
|
fragment: null,
|
|
216
216
|
ctx: [],
|
|
@@ -218,7 +218,7 @@ function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
218
218
|
props: o,
|
|
219
219
|
update: B,
|
|
220
220
|
not_equal: i,
|
|
221
|
-
bound:
|
|
221
|
+
bound: ut(),
|
|
222
222
|
// lifecycle
|
|
223
223
|
on_mount: [],
|
|
224
224
|
on_destroy: [],
|
|
@@ -227,28 +227,28 @@ function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
227
227
|
after_update: [],
|
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
229
229
|
// everything else
|
|
230
|
-
callbacks:
|
|
230
|
+
callbacks: ut(),
|
|
231
231
|
dirty: a,
|
|
232
232
|
skip_bound: !1,
|
|
233
233
|
root: t.target || h.$$.root
|
|
234
234
|
};
|
|
235
235
|
s && s(u.root);
|
|
236
236
|
let l = !1;
|
|
237
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
238
|
-
const
|
|
239
|
-
return u.ctx && i(u.ctx[
|
|
240
|
-
}), u.update(), l = !0,
|
|
237
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
238
|
+
const g = p.length ? p[0] : f;
|
|
239
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && $r(e, c)), f;
|
|
240
|
+
}) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const
|
|
243
|
-
u.fragment && u.fragment.l(
|
|
242
|
+
const c = Hr(t.target);
|
|
243
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
244
244
|
} else
|
|
245
245
|
u.fragment && u.fragment.c();
|
|
246
|
-
t.intro &&
|
|
246
|
+
t.intro && Lr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
te(h);
|
|
249
249
|
}
|
|
250
|
-
let
|
|
251
|
-
typeof HTMLElement == "function" && (
|
|
250
|
+
let $t;
|
|
251
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
252
252
|
constructor(t, r, n) {
|
|
253
253
|
super();
|
|
254
254
|
/** The Svelte component constructor */
|
|
@@ -285,42 +285,42 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
connectedCallback() {
|
|
288
|
-
return
|
|
288
|
+
return at(this, null, function* () {
|
|
289
289
|
if (this.$$cn = !0, !this.$$c) {
|
|
290
290
|
let t = function(o) {
|
|
291
291
|
return () => {
|
|
292
292
|
let s;
|
|
293
293
|
return {
|
|
294
294
|
c: function() {
|
|
295
|
-
s =
|
|
295
|
+
s = L("slot"), o !== "default" && E(s, "name", o);
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
298
|
* @param {HTMLElement} target
|
|
299
299
|
* @param {HTMLElement} [anchor]
|
|
300
300
|
*/
|
|
301
301
|
m: function(u, l) {
|
|
302
|
-
|
|
302
|
+
ae(u, s, l);
|
|
303
303
|
},
|
|
304
304
|
d: function(u) {
|
|
305
|
-
u &&
|
|
305
|
+
u && q(s);
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const r = {}, n =
|
|
312
|
+
const r = {}, n = Sr(this);
|
|
313
313
|
for (const o of this.$$s)
|
|
314
314
|
o in n && (r[o] = [t(o)]);
|
|
315
315
|
for (const o of this.attributes) {
|
|
316
316
|
const s = this.$$g_p(o.name);
|
|
317
|
-
s in this.$$d || (this.$$d[s] =
|
|
317
|
+
s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
|
|
318
318
|
}
|
|
319
319
|
for (const o in this.$$p_d)
|
|
320
320
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
321
321
|
this.$$c = new this.$$ctor({
|
|
322
322
|
target: this.shadowRoot || this,
|
|
323
|
-
props:
|
|
323
|
+
props: st(ot({}, this.$$d), {
|
|
324
324
|
$$slots: r,
|
|
325
325
|
$$scope: {
|
|
326
326
|
ctx: []
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
331
331
|
this.$$r = !0;
|
|
332
332
|
for (const o in this.$$p_d)
|
|
333
333
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
334
|
-
const s =
|
|
334
|
+
const s = pe(
|
|
335
335
|
o,
|
|
336
336
|
this.$$d[o],
|
|
337
337
|
this.$$p_d,
|
|
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
355
355
|
// and setting attributes through setAttribute etc, this is helpful
|
|
356
356
|
attributeChangedCallback(t, r, n) {
|
|
357
357
|
var i;
|
|
358
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
358
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
359
359
|
}
|
|
360
360
|
disconnectedCallback() {
|
|
361
361
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -368,7 +368,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
368
368
|
) || t;
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
-
function
|
|
371
|
+
function pe(e, t, r, n) {
|
|
372
372
|
var o;
|
|
373
373
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
374
374
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -398,8 +398,8 @@ function de(e, t, r, n) {
|
|
|
398
398
|
return t;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
let s = class extends
|
|
401
|
+
function Ur(e, t, r, n, i, o) {
|
|
402
|
+
let s = class extends $t {
|
|
403
403
|
constructor() {
|
|
404
404
|
super(e, r, i), this.$$p_d = t;
|
|
405
405
|
}
|
|
@@ -416,7 +416,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
416
416
|
},
|
|
417
417
|
set(h) {
|
|
418
418
|
var u;
|
|
419
|
-
h =
|
|
419
|
+
h = pe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
}), n.forEach((a) => {
|
|
@@ -429,7 +429,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
429
429
|
}), e.element = /** @type {any} */
|
|
430
430
|
s, s;
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Dr {
|
|
433
433
|
constructor() {
|
|
434
434
|
/**
|
|
435
435
|
* ### PRIVATE API
|
|
@@ -450,7 +450,7 @@ class Mr {
|
|
|
450
450
|
}
|
|
451
451
|
/** @returns {void} */
|
|
452
452
|
$destroy() {
|
|
453
|
-
|
|
453
|
+
Mr(this, 1), this.$destroy = B;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -459,7 +459,7 @@ class Mr {
|
|
|
459
459
|
* @returns {() => void}
|
|
460
460
|
*/
|
|
461
461
|
$on(t, r) {
|
|
462
|
-
if (!
|
|
462
|
+
if (!et(r))
|
|
463
463
|
return B;
|
|
464
464
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
465
465
|
return n.push(r), () => {
|
|
@@ -472,11 +472,11 @@ class Mr {
|
|
|
472
472
|
* @returns {void}
|
|
473
473
|
*/
|
|
474
474
|
$set(t) {
|
|
475
|
-
this.$$set && !
|
|
475
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
const
|
|
479
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
478
|
+
const Gr = "4";
|
|
479
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
|
480
480
|
/*! *****************************************************************************
|
|
481
481
|
Copyright (c) Microsoft Corporation.
|
|
482
482
|
|
|
@@ -491,43 +491,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
491
491
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
492
492
|
PERFORMANCE OF THIS SOFTWARE.
|
|
493
493
|
***************************************************************************** */
|
|
494
|
-
var
|
|
495
|
-
return
|
|
494
|
+
var De = function(e, t) {
|
|
495
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
496
496
|
r.__proto__ = n;
|
|
497
497
|
} || function(r, n) {
|
|
498
498
|
for (var i in n)
|
|
499
499
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
500
|
-
},
|
|
500
|
+
}, De(e, t);
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function ue(e, t) {
|
|
503
503
|
if (typeof t != "function" && t !== null)
|
|
504
504
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
505
|
-
|
|
505
|
+
De(e, t);
|
|
506
506
|
function r() {
|
|
507
507
|
this.constructor = e;
|
|
508
508
|
}
|
|
509
509
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
510
510
|
}
|
|
511
|
-
|
|
512
|
-
return y = Object.assign || function(t) {
|
|
513
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
514
|
-
r = arguments[n];
|
|
515
|
-
for (var o in r)
|
|
516
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
517
|
-
}
|
|
518
|
-
return t;
|
|
519
|
-
}, y.apply(this, arguments);
|
|
520
|
-
};
|
|
521
|
-
function Rr(e, t) {
|
|
522
|
-
var r = {};
|
|
523
|
-
for (var n in e)
|
|
524
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
525
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
526
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
527
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
528
|
-
return r;
|
|
529
|
-
}
|
|
530
|
-
function Re(e) {
|
|
511
|
+
function Ge(e) {
|
|
531
512
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
532
513
|
if (r)
|
|
533
514
|
return r.call(e);
|
|
@@ -539,7 +520,7 @@ function Re(e) {
|
|
|
539
520
|
};
|
|
540
521
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
541
522
|
}
|
|
542
|
-
function
|
|
523
|
+
function Fe(e, t) {
|
|
543
524
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
544
525
|
if (!r)
|
|
545
526
|
return e;
|
|
@@ -559,22 +540,22 @@ function Ue(e, t) {
|
|
|
559
540
|
}
|
|
560
541
|
return o;
|
|
561
542
|
}
|
|
562
|
-
function
|
|
563
|
-
if (
|
|
543
|
+
function je(e, t, r) {
|
|
544
|
+
if (arguments.length === 2)
|
|
564
545
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
565
546
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
566
547
|
return e.concat(o || t);
|
|
567
548
|
}
|
|
568
|
-
function
|
|
549
|
+
function N(e) {
|
|
569
550
|
return typeof e == "function";
|
|
570
551
|
}
|
|
571
|
-
function
|
|
552
|
+
function Rt(e) {
|
|
572
553
|
var t = function(n) {
|
|
573
554
|
Error.call(n), n.stack = new Error().stack;
|
|
574
555
|
}, r = e(t);
|
|
575
556
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
576
557
|
}
|
|
577
|
-
var
|
|
558
|
+
var Ae = Rt(function(e) {
|
|
578
559
|
return function(r) {
|
|
579
560
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
580
561
|
` + r.map(function(n, i) {
|
|
@@ -583,13 +564,13 @@ var we = Lt(function(e) {
|
|
|
583
564
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
584
565
|
};
|
|
585
566
|
});
|
|
586
|
-
function
|
|
567
|
+
function ke(e, t) {
|
|
587
568
|
if (e) {
|
|
588
569
|
var r = e.indexOf(t);
|
|
589
570
|
0 <= r && e.splice(r, 1);
|
|
590
571
|
}
|
|
591
572
|
}
|
|
592
|
-
var
|
|
573
|
+
var _e = function() {
|
|
593
574
|
function e(t) {
|
|
594
575
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
595
576
|
}
|
|
@@ -601,12 +582,12 @@ var ve = function() {
|
|
|
601
582
|
if (s)
|
|
602
583
|
if (this._parentage = null, Array.isArray(s))
|
|
603
584
|
try {
|
|
604
|
-
for (var a =
|
|
585
|
+
for (var a = Ge(s), h = a.next(); !h.done; h = a.next()) {
|
|
605
586
|
var u = h.value;
|
|
606
587
|
u.remove(this);
|
|
607
588
|
}
|
|
608
|
-
} catch (
|
|
609
|
-
t = { error:
|
|
589
|
+
} catch (m) {
|
|
590
|
+
t = { error: m };
|
|
610
591
|
} finally {
|
|
611
592
|
try {
|
|
612
593
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -618,29 +599,29 @@ var ve = function() {
|
|
|
618
599
|
else
|
|
619
600
|
s.remove(this);
|
|
620
601
|
var l = this.initialTeardown;
|
|
621
|
-
if (
|
|
602
|
+
if (N(l))
|
|
622
603
|
try {
|
|
623
604
|
l();
|
|
624
|
-
} catch (
|
|
625
|
-
o =
|
|
605
|
+
} catch (m) {
|
|
606
|
+
o = m instanceof Ae ? m.errors : [m];
|
|
626
607
|
}
|
|
627
|
-
var
|
|
628
|
-
if (
|
|
608
|
+
var c = this._finalizers;
|
|
609
|
+
if (c) {
|
|
629
610
|
this._finalizers = null;
|
|
630
611
|
try {
|
|
631
|
-
for (var
|
|
632
|
-
var
|
|
612
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
613
|
+
var g = p.value;
|
|
633
614
|
try {
|
|
634
|
-
|
|
635
|
-
} catch (
|
|
636
|
-
o = o != null ? o : [],
|
|
615
|
+
ct(g);
|
|
616
|
+
} catch (m) {
|
|
617
|
+
o = o != null ? o : [], m instanceof Ae ? o = je(je([], Fe(o)), Fe(m.errors)) : o.push(m);
|
|
637
618
|
}
|
|
638
619
|
}
|
|
639
|
-
} catch (
|
|
640
|
-
n = { error:
|
|
620
|
+
} catch (m) {
|
|
621
|
+
n = { error: m };
|
|
641
622
|
} finally {
|
|
642
623
|
try {
|
|
643
|
-
|
|
624
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
644
625
|
} finally {
|
|
645
626
|
if (n)
|
|
646
627
|
throw n.error;
|
|
@@ -648,13 +629,13 @@ var ve = function() {
|
|
|
648
629
|
}
|
|
649
630
|
}
|
|
650
631
|
if (o)
|
|
651
|
-
throw new
|
|
632
|
+
throw new Ae(o);
|
|
652
633
|
}
|
|
653
634
|
}, e.prototype.add = function(t) {
|
|
654
635
|
var r;
|
|
655
636
|
if (t && t !== this)
|
|
656
637
|
if (this.closed)
|
|
657
|
-
|
|
638
|
+
ct(t);
|
|
658
639
|
else {
|
|
659
640
|
if (t instanceof e) {
|
|
660
641
|
if (t.closed || t._hasParent(this))
|
|
@@ -671,56 +652,52 @@ var ve = function() {
|
|
|
671
652
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
672
653
|
}, e.prototype._removeParent = function(t) {
|
|
673
654
|
var r = this._parentage;
|
|
674
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
655
|
+
r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
|
|
675
656
|
}, e.prototype.remove = function(t) {
|
|
676
657
|
var r = this._finalizers;
|
|
677
|
-
r &&
|
|
658
|
+
r && ke(r, t), t instanceof e && t._removeParent(this);
|
|
678
659
|
}, e.EMPTY = function() {
|
|
679
660
|
var t = new e();
|
|
680
661
|
return t.closed = !0, t;
|
|
681
662
|
}(), e;
|
|
682
|
-
}(),
|
|
683
|
-
function
|
|
684
|
-
return e instanceof
|
|
685
|
-
}
|
|
686
|
-
function
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
Promise: void 0,
|
|
693
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
694
|
-
useDeprecatedNextContext: !1
|
|
695
|
-
}, Dr = {
|
|
663
|
+
}(), Ut = _e.EMPTY;
|
|
664
|
+
function Dt(e) {
|
|
665
|
+
return e instanceof _e || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
666
|
+
}
|
|
667
|
+
function ct(e) {
|
|
668
|
+
N(e) ? e() : e.unsubscribe();
|
|
669
|
+
}
|
|
670
|
+
var Fr = {
|
|
671
|
+
Promise: void 0
|
|
672
|
+
}, jr = {
|
|
696
673
|
setTimeout: function(e, t) {
|
|
697
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
698
675
|
r[n - 2] = arguments[n];
|
|
699
|
-
return setTimeout.apply(void 0,
|
|
676
|
+
return setTimeout.apply(void 0, je([e, t], Fe(r)));
|
|
700
677
|
},
|
|
701
678
|
clearTimeout: function(e) {
|
|
702
679
|
return clearTimeout(e);
|
|
703
680
|
},
|
|
704
681
|
delegate: void 0
|
|
705
682
|
};
|
|
706
|
-
function
|
|
707
|
-
|
|
683
|
+
function kr(e) {
|
|
684
|
+
jr.setTimeout(function() {
|
|
708
685
|
throw e;
|
|
709
686
|
});
|
|
710
687
|
}
|
|
711
|
-
function
|
|
688
|
+
function ft() {
|
|
712
689
|
}
|
|
713
|
-
function
|
|
690
|
+
function me(e) {
|
|
714
691
|
e();
|
|
715
692
|
}
|
|
716
|
-
var
|
|
717
|
-
|
|
693
|
+
var Gt = function(e) {
|
|
694
|
+
ue(t, e);
|
|
718
695
|
function t(r) {
|
|
719
696
|
var n = e.call(this) || this;
|
|
720
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
697
|
+
return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = Wr, n;
|
|
721
698
|
}
|
|
722
699
|
return t.create = function(r, n, i) {
|
|
723
|
-
return new
|
|
700
|
+
return new Ve(r, n, i);
|
|
724
701
|
}, t.prototype.next = function(r) {
|
|
725
702
|
this.isStopped || this._next(r);
|
|
726
703
|
}, t.prototype.error = function(r) {
|
|
@@ -744,7 +721,7 @@ var $t = function(e) {
|
|
|
744
721
|
this.unsubscribe();
|
|
745
722
|
}
|
|
746
723
|
}, t;
|
|
747
|
-
}(
|
|
724
|
+
}(_e), Vr = function() {
|
|
748
725
|
function e(t) {
|
|
749
726
|
this.partialObserver = t;
|
|
750
727
|
}
|
|
@@ -754,7 +731,7 @@ var $t = function(e) {
|
|
|
754
731
|
try {
|
|
755
732
|
r.next(t);
|
|
756
733
|
} catch (n) {
|
|
757
|
-
|
|
734
|
+
ce(n);
|
|
758
735
|
}
|
|
759
736
|
}, e.prototype.error = function(t) {
|
|
760
737
|
var r = this.partialObserver;
|
|
@@ -762,56 +739,56 @@ var $t = function(e) {
|
|
|
762
739
|
try {
|
|
763
740
|
r.error(t);
|
|
764
741
|
} catch (n) {
|
|
765
|
-
|
|
742
|
+
ce(n);
|
|
766
743
|
}
|
|
767
744
|
else
|
|
768
|
-
|
|
745
|
+
ce(t);
|
|
769
746
|
}, e.prototype.complete = function() {
|
|
770
747
|
var t = this.partialObserver;
|
|
771
748
|
if (t.complete)
|
|
772
749
|
try {
|
|
773
750
|
t.complete();
|
|
774
751
|
} catch (r) {
|
|
775
|
-
|
|
752
|
+
ce(r);
|
|
776
753
|
}
|
|
777
754
|
}, e;
|
|
778
|
-
}(),
|
|
779
|
-
|
|
755
|
+
}(), Ve = function(e) {
|
|
756
|
+
ue(t, e);
|
|
780
757
|
function t(r, n, i) {
|
|
781
758
|
var o = e.call(this) || this, s;
|
|
782
|
-
return
|
|
759
|
+
return N(r) || !r ? s = {
|
|
783
760
|
next: r != null ? r : void 0,
|
|
784
761
|
error: n != null ? n : void 0,
|
|
785
762
|
complete: i != null ? i : void 0
|
|
786
|
-
} : s = r, o.destination = new
|
|
763
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
787
764
|
}
|
|
788
765
|
return t;
|
|
789
|
-
}(
|
|
790
|
-
function
|
|
791
|
-
|
|
766
|
+
}(Gt);
|
|
767
|
+
function ce(e) {
|
|
768
|
+
kr(e);
|
|
792
769
|
}
|
|
793
|
-
function
|
|
770
|
+
function Xr(e) {
|
|
794
771
|
throw e;
|
|
795
772
|
}
|
|
796
|
-
var
|
|
773
|
+
var Wr = {
|
|
797
774
|
closed: !0,
|
|
798
|
-
next:
|
|
799
|
-
error:
|
|
800
|
-
complete:
|
|
801
|
-
},
|
|
775
|
+
next: ft,
|
|
776
|
+
error: Xr,
|
|
777
|
+
complete: ft
|
|
778
|
+
}, zr = function() {
|
|
802
779
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
803
780
|
}();
|
|
804
|
-
function
|
|
781
|
+
function Zr(e) {
|
|
805
782
|
return e;
|
|
806
783
|
}
|
|
807
|
-
function
|
|
808
|
-
return e.length === 0 ?
|
|
784
|
+
function Qr(e) {
|
|
785
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
809
786
|
return e.reduce(function(n, i) {
|
|
810
787
|
return i(n);
|
|
811
788
|
}, r);
|
|
812
789
|
};
|
|
813
790
|
}
|
|
814
|
-
var
|
|
791
|
+
var pt = function() {
|
|
815
792
|
function e(t) {
|
|
816
793
|
t && (this._subscribe = t);
|
|
817
794
|
}
|
|
@@ -819,8 +796,8 @@ var ht = function() {
|
|
|
819
796
|
var r = new e();
|
|
820
797
|
return r.source = this, r.operator = t, r;
|
|
821
798
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
822
|
-
var i = this, o =
|
|
823
|
-
return
|
|
799
|
+
var i = this, o = Jr(t) ? t : new Ve(t, r, n);
|
|
800
|
+
return me(function() {
|
|
824
801
|
var s = i, a = s.operator, h = s.source;
|
|
825
802
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
826
803
|
}), o;
|
|
@@ -832,8 +809,8 @@ var ht = function() {
|
|
|
832
809
|
}
|
|
833
810
|
}, e.prototype.forEach = function(t, r) {
|
|
834
811
|
var n = this;
|
|
835
|
-
return r =
|
|
836
|
-
var s = new
|
|
812
|
+
return r = mt(r), new r(function(i, o) {
|
|
813
|
+
var s = new Ve({
|
|
837
814
|
next: function(a) {
|
|
838
815
|
try {
|
|
839
816
|
t(a);
|
|
@@ -849,15 +826,15 @@ var ht = function() {
|
|
|
849
826
|
}, e.prototype._subscribe = function(t) {
|
|
850
827
|
var r;
|
|
851
828
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
852
|
-
}, e.prototype[
|
|
829
|
+
}, e.prototype[zr] = function() {
|
|
853
830
|
return this;
|
|
854
831
|
}, e.prototype.pipe = function() {
|
|
855
832
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
856
833
|
t[r] = arguments[r];
|
|
857
|
-
return
|
|
834
|
+
return Qr(t)(this);
|
|
858
835
|
}, e.prototype.toPromise = function(t) {
|
|
859
836
|
var r = this;
|
|
860
|
-
return t =
|
|
837
|
+
return t = mt(t), new t(function(n, i) {
|
|
861
838
|
var o;
|
|
862
839
|
r.subscribe(function(s) {
|
|
863
840
|
return o = s;
|
|
@@ -871,40 +848,40 @@ var ht = function() {
|
|
|
871
848
|
return new e(t);
|
|
872
849
|
}, e;
|
|
873
850
|
}();
|
|
874
|
-
function
|
|
851
|
+
function mt(e) {
|
|
875
852
|
var t;
|
|
876
|
-
return (t = e != null ? e :
|
|
853
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
877
854
|
}
|
|
878
|
-
function
|
|
879
|
-
return e &&
|
|
855
|
+
function qr(e) {
|
|
856
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
880
857
|
}
|
|
881
|
-
function
|
|
882
|
-
return e && e instanceof
|
|
858
|
+
function Jr(e) {
|
|
859
|
+
return e && e instanceof Gt || qr(e) && Dt(e);
|
|
883
860
|
}
|
|
884
|
-
var
|
|
861
|
+
var Yr = Rt(function(e) {
|
|
885
862
|
return function() {
|
|
886
863
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
887
864
|
};
|
|
888
|
-
}),
|
|
889
|
-
|
|
865
|
+
}), Ft = function(e) {
|
|
866
|
+
ue(t, e);
|
|
890
867
|
function t() {
|
|
891
868
|
var r = e.call(this) || this;
|
|
892
869
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
893
870
|
}
|
|
894
871
|
return t.prototype.lift = function(r) {
|
|
895
|
-
var n = new
|
|
872
|
+
var n = new dt(this, this);
|
|
896
873
|
return n.operator = r, n;
|
|
897
874
|
}, t.prototype._throwIfClosed = function() {
|
|
898
875
|
if (this.closed)
|
|
899
|
-
throw new
|
|
876
|
+
throw new Yr();
|
|
900
877
|
}, t.prototype.next = function(r) {
|
|
901
878
|
var n = this;
|
|
902
|
-
|
|
879
|
+
me(function() {
|
|
903
880
|
var i, o;
|
|
904
881
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
905
882
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
906
883
|
try {
|
|
907
|
-
for (var s =
|
|
884
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
908
885
|
var h = a.value;
|
|
909
886
|
h.next(r);
|
|
910
887
|
}
|
|
@@ -922,7 +899,7 @@ var Qr = Lt(function(e) {
|
|
|
922
899
|
});
|
|
923
900
|
}, t.prototype.error = function(r) {
|
|
924
901
|
var n = this;
|
|
925
|
-
|
|
902
|
+
me(function() {
|
|
926
903
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
927
904
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
928
905
|
for (var i = n.observers; i.length; )
|
|
@@ -931,7 +908,7 @@ var Qr = Lt(function(e) {
|
|
|
931
908
|
});
|
|
932
909
|
}, t.prototype.complete = function() {
|
|
933
910
|
var r = this;
|
|
934
|
-
|
|
911
|
+
me(function() {
|
|
935
912
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
936
913
|
r.isStopped = !0;
|
|
937
914
|
for (var n = r.observers; n.length; )
|
|
@@ -953,20 +930,20 @@ var Qr = Lt(function(e) {
|
|
|
953
930
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
954
931
|
}, t.prototype._innerSubscribe = function(r) {
|
|
955
932
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
956
|
-
return o || s ?
|
|
957
|
-
n.currentObservers = null,
|
|
933
|
+
return o || s ? Ut : (this.currentObservers = null, a.push(r), new _e(function() {
|
|
934
|
+
n.currentObservers = null, ke(a, r);
|
|
958
935
|
}));
|
|
959
936
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
960
937
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
961
938
|
i ? r.error(o) : s && r.complete();
|
|
962
939
|
}, t.prototype.asObservable = function() {
|
|
963
|
-
var r = new
|
|
940
|
+
var r = new pt();
|
|
964
941
|
return r.source = this, r;
|
|
965
942
|
}, t.create = function(r, n) {
|
|
966
|
-
return new
|
|
943
|
+
return new dt(r, n);
|
|
967
944
|
}, t;
|
|
968
|
-
}(
|
|
969
|
-
|
|
945
|
+
}(pt), dt = function(e) {
|
|
946
|
+
ue(t, e);
|
|
970
947
|
function t(r, n) {
|
|
971
948
|
var i = e.call(this) || this;
|
|
972
949
|
return i.destination = r, i.source = n, i;
|
|
@@ -982,17 +959,17 @@ var Qr = Lt(function(e) {
|
|
|
982
959
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
983
960
|
}, t.prototype._subscribe = function(r) {
|
|
984
961
|
var n, i;
|
|
985
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
962
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ut;
|
|
986
963
|
}, t;
|
|
987
|
-
}(
|
|
964
|
+
}(Ft), jt = {
|
|
988
965
|
now: function() {
|
|
989
|
-
return (
|
|
966
|
+
return (jt.delegate || Date).now();
|
|
990
967
|
},
|
|
991
968
|
delegate: void 0
|
|
992
|
-
},
|
|
993
|
-
|
|
969
|
+
}, Kr = function(e) {
|
|
970
|
+
ue(t, e);
|
|
994
971
|
function t(r, n, i) {
|
|
995
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
972
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
996
973
|
var o = e.call(this) || this;
|
|
997
974
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
998
975
|
}
|
|
@@ -1012,24 +989,24 @@ var Qr = Lt(function(e) {
|
|
|
1012
989
|
u && o.splice(0, u + 1);
|
|
1013
990
|
}
|
|
1014
991
|
}, t;
|
|
1015
|
-
}(
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1018
|
-
const r = new
|
|
1019
|
-
|
|
992
|
+
}(Ft);
|
|
993
|
+
const bt = [], yt = {}, en = (e, t = 0) => {
|
|
994
|
+
if (bt.indexOf(e) == -1) {
|
|
995
|
+
const r = new Kr(t);
|
|
996
|
+
yt[e] = r, bt.push(e);
|
|
1020
997
|
}
|
|
1021
|
-
return
|
|
998
|
+
return yt[e];
|
|
1022
999
|
}, k = [];
|
|
1023
|
-
function
|
|
1000
|
+
function tn(e, t) {
|
|
1024
1001
|
return {
|
|
1025
|
-
subscribe:
|
|
1002
|
+
subscribe: Ee(e, t).subscribe
|
|
1026
1003
|
};
|
|
1027
1004
|
}
|
|
1028
|
-
function
|
|
1005
|
+
function Ee(e, t = B) {
|
|
1029
1006
|
let r;
|
|
1030
1007
|
const n = /* @__PURE__ */ new Set();
|
|
1031
1008
|
function i(a) {
|
|
1032
|
-
if (
|
|
1009
|
+
if (Ct(e, a) && (e = a, r)) {
|
|
1033
1010
|
const h = !k.length;
|
|
1034
1011
|
for (const u of n)
|
|
1035
1012
|
u[1](), k.push(u, e);
|
|
@@ -1051,145 +1028,184 @@ function _e(e, t = B) {
|
|
|
1051
1028
|
}
|
|
1052
1029
|
return { set: i, update: o, subscribe: s };
|
|
1053
1030
|
}
|
|
1054
|
-
function
|
|
1031
|
+
function J(e, t, r) {
|
|
1055
1032
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1056
1033
|
if (!i.every(Boolean))
|
|
1057
1034
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1058
1035
|
const o = t.length < 2;
|
|
1059
|
-
return
|
|
1036
|
+
return tn(r, (s, a) => {
|
|
1060
1037
|
let h = !1;
|
|
1061
1038
|
const u = [];
|
|
1062
|
-
let l = 0,
|
|
1063
|
-
const
|
|
1039
|
+
let l = 0, c = B;
|
|
1040
|
+
const f = () => {
|
|
1064
1041
|
if (l)
|
|
1065
1042
|
return;
|
|
1066
|
-
|
|
1067
|
-
const
|
|
1068
|
-
o ? s(
|
|
1069
|
-
},
|
|
1070
|
-
(
|
|
1071
|
-
|
|
1043
|
+
c();
|
|
1044
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1045
|
+
o ? s(g) : c = et(g) ? g : B;
|
|
1046
|
+
}, p = i.map(
|
|
1047
|
+
(g, m) => Mt(
|
|
1048
|
+
g,
|
|
1072
1049
|
(T) => {
|
|
1073
|
-
u[
|
|
1050
|
+
u[m] = T, l &= ~(1 << m), h && f();
|
|
1074
1051
|
},
|
|
1075
1052
|
() => {
|
|
1076
|
-
l |= 1 <<
|
|
1053
|
+
l |= 1 << m;
|
|
1077
1054
|
}
|
|
1078
1055
|
)
|
|
1079
1056
|
);
|
|
1080
|
-
return h = !0,
|
|
1081
|
-
|
|
1057
|
+
return h = !0, f(), function() {
|
|
1058
|
+
se(p), c(), h = !1;
|
|
1082
1059
|
};
|
|
1083
1060
|
});
|
|
1084
1061
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1062
|
+
function rn(e) {
|
|
1063
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1087
1064
|
}
|
|
1088
|
-
var
|
|
1089
|
-
return
|
|
1065
|
+
var nn = function(t) {
|
|
1066
|
+
return on(t) && !sn(t);
|
|
1090
1067
|
};
|
|
1091
|
-
function
|
|
1068
|
+
function on(e) {
|
|
1092
1069
|
return !!e && typeof e == "object";
|
|
1093
1070
|
}
|
|
1094
|
-
function
|
|
1071
|
+
function sn(e) {
|
|
1095
1072
|
var t = Object.prototype.toString.call(e);
|
|
1096
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1073
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1097
1074
|
}
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1100
|
-
return e.$$typeof ===
|
|
1075
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1076
|
+
function hn(e) {
|
|
1077
|
+
return e.$$typeof === un;
|
|
1101
1078
|
}
|
|
1102
|
-
function
|
|
1079
|
+
function ln(e) {
|
|
1103
1080
|
return Array.isArray(e) ? [] : {};
|
|
1104
1081
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1082
|
+
function ie(e, t) {
|
|
1083
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(ln(e), e, t) : e;
|
|
1107
1084
|
}
|
|
1108
|
-
function
|
|
1085
|
+
function cn(e, t, r) {
|
|
1109
1086
|
return e.concat(t).map(function(n) {
|
|
1110
|
-
return
|
|
1087
|
+
return ie(n, r);
|
|
1111
1088
|
});
|
|
1112
1089
|
}
|
|
1113
|
-
function
|
|
1090
|
+
function fn(e, t) {
|
|
1114
1091
|
if (!t.customMerge)
|
|
1115
|
-
return
|
|
1092
|
+
return W;
|
|
1116
1093
|
var r = t.customMerge(e);
|
|
1117
|
-
return typeof r == "function" ? r :
|
|
1094
|
+
return typeof r == "function" ? r : W;
|
|
1118
1095
|
}
|
|
1119
|
-
function
|
|
1096
|
+
function pn(e) {
|
|
1120
1097
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1121
1098
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1122
1099
|
}) : [];
|
|
1123
1100
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return Object.keys(e).concat(
|
|
1101
|
+
function gt(e) {
|
|
1102
|
+
return Object.keys(e).concat(pn(e));
|
|
1126
1103
|
}
|
|
1127
|
-
function
|
|
1104
|
+
function kt(e, t) {
|
|
1128
1105
|
try {
|
|
1129
1106
|
return t in e;
|
|
1130
1107
|
} catch (r) {
|
|
1131
1108
|
return !1;
|
|
1132
1109
|
}
|
|
1133
1110
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return
|
|
1111
|
+
function mn(e, t) {
|
|
1112
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1136
1113
|
}
|
|
1137
|
-
function
|
|
1114
|
+
function dn(e, t, r) {
|
|
1138
1115
|
var n = {};
|
|
1139
|
-
return r.isMergeableObject(e) &&
|
|
1140
|
-
n[i] =
|
|
1141
|
-
}),
|
|
1142
|
-
|
|
1116
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1117
|
+
n[i] = ie(e[i], r);
|
|
1118
|
+
}), gt(t).forEach(function(i) {
|
|
1119
|
+
mn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1143
1120
|
}), n;
|
|
1144
1121
|
}
|
|
1145
|
-
function
|
|
1146
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1122
|
+
function W(e, t, r) {
|
|
1123
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1147
1124
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1148
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1125
|
+
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ie(t, r);
|
|
1149
1126
|
}
|
|
1150
|
-
|
|
1127
|
+
W.all = function(t, r) {
|
|
1151
1128
|
if (!Array.isArray(t))
|
|
1152
1129
|
throw new Error("first argument should be an array");
|
|
1153
1130
|
return t.reduce(function(n, i) {
|
|
1154
|
-
return
|
|
1131
|
+
return W(n, i, r);
|
|
1155
1132
|
}, {});
|
|
1156
1133
|
};
|
|
1157
|
-
var
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1134
|
+
var bn = W, yn = bn;
|
|
1135
|
+
const gn = /* @__PURE__ */ rn(yn);
|
|
1136
|
+
var Xe = function(e, t) {
|
|
1137
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1138
|
+
r.__proto__ = n;
|
|
1139
|
+
} || function(r, n) {
|
|
1140
|
+
for (var i in n)
|
|
1141
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1142
|
+
}, Xe(e, t);
|
|
1143
|
+
};
|
|
1144
|
+
function xe(e, t) {
|
|
1145
|
+
if (typeof t != "function" && t !== null)
|
|
1146
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1147
|
+
Xe(e, t);
|
|
1148
|
+
function r() {
|
|
1149
|
+
this.constructor = e;
|
|
1150
|
+
}
|
|
1151
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1152
|
+
}
|
|
1153
|
+
var P = function() {
|
|
1154
|
+
return P = Object.assign || function(t) {
|
|
1155
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1156
|
+
r = arguments[n];
|
|
1157
|
+
for (var o in r)
|
|
1158
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1159
|
+
}
|
|
1160
|
+
return t;
|
|
1161
|
+
}, P.apply(this, arguments);
|
|
1162
|
+
};
|
|
1163
|
+
function vn(e, t) {
|
|
1164
|
+
var r = {};
|
|
1165
|
+
for (var n in e)
|
|
1166
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1167
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1168
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1169
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1170
|
+
return r;
|
|
1171
|
+
}
|
|
1172
|
+
function Pe(e, t, r) {
|
|
1173
|
+
if (r || arguments.length === 2)
|
|
1174
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1175
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1176
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1177
|
+
}
|
|
1178
|
+
function Oe(e, t) {
|
|
1179
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : xn;
|
|
1161
1180
|
return i(e, {
|
|
1162
1181
|
cache: r,
|
|
1163
1182
|
serializer: n
|
|
1164
1183
|
});
|
|
1165
1184
|
}
|
|
1166
|
-
function
|
|
1185
|
+
function _n(e) {
|
|
1167
1186
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1168
1187
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var i =
|
|
1188
|
+
function En(e, t, r, n) {
|
|
1189
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1171
1190
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1172
1191
|
}
|
|
1173
|
-
function
|
|
1192
|
+
function Vt(e, t, r) {
|
|
1174
1193
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1175
1194
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1176
1195
|
}
|
|
1177
|
-
function
|
|
1196
|
+
function Xt(e, t, r, n, i) {
|
|
1178
1197
|
return r.bind(t, e, n, i);
|
|
1179
1198
|
}
|
|
1180
|
-
function
|
|
1181
|
-
var r = e.length === 1 ?
|
|
1182
|
-
return
|
|
1199
|
+
function xn(e, t) {
|
|
1200
|
+
var r = e.length === 1 ? En : Vt;
|
|
1201
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1183
1202
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1203
|
+
function Tn(e, t) {
|
|
1204
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1186
1205
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return Je(e, this, Gt, t.cache.create(), t.serializer);
|
|
1189
|
-
}
|
|
1190
|
-
var _n = function() {
|
|
1206
|
+
var Hn = function() {
|
|
1191
1207
|
return JSON.stringify(arguments);
|
|
1192
|
-
},
|
|
1208
|
+
}, Sn = (
|
|
1193
1209
|
/** @class */
|
|
1194
1210
|
function() {
|
|
1195
1211
|
function e() {
|
|
@@ -1201,62 +1217,71 @@ var _n = function() {
|
|
|
1201
1217
|
this.cache[t] = r;
|
|
1202
1218
|
}, e;
|
|
1203
1219
|
}()
|
|
1204
|
-
),
|
|
1220
|
+
), wn = {
|
|
1205
1221
|
create: function() {
|
|
1206
|
-
return new
|
|
1222
|
+
return new Sn();
|
|
1207
1223
|
}
|
|
1208
|
-
},
|
|
1209
|
-
variadic:
|
|
1210
|
-
|
|
1211
|
-
|
|
1224
|
+
}, Ie = {
|
|
1225
|
+
variadic: Tn
|
|
1226
|
+
}, ye = function() {
|
|
1227
|
+
return ye = Object.assign || function(t) {
|
|
1228
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1229
|
+
r = arguments[n];
|
|
1230
|
+
for (var o in r)
|
|
1231
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1232
|
+
}
|
|
1233
|
+
return t;
|
|
1234
|
+
}, ye.apply(this, arguments);
|
|
1235
|
+
};
|
|
1236
|
+
var d;
|
|
1212
1237
|
(function(e) {
|
|
1213
1238
|
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";
|
|
1214
|
-
})(
|
|
1215
|
-
var
|
|
1239
|
+
})(d || (d = {}));
|
|
1240
|
+
var v;
|
|
1216
1241
|
(function(e) {
|
|
1217
1242
|
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";
|
|
1218
|
-
})(
|
|
1219
|
-
var
|
|
1243
|
+
})(v || (v = {}));
|
|
1244
|
+
var z;
|
|
1220
1245
|
(function(e) {
|
|
1221
1246
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1222
|
-
})(
|
|
1223
|
-
function
|
|
1224
|
-
return e.type ===
|
|
1247
|
+
})(z || (z = {}));
|
|
1248
|
+
function vt(e) {
|
|
1249
|
+
return e.type === v.literal;
|
|
1225
1250
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return e.type ===
|
|
1251
|
+
function Bn(e) {
|
|
1252
|
+
return e.type === v.argument;
|
|
1228
1253
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return e.type ===
|
|
1254
|
+
function Wt(e) {
|
|
1255
|
+
return e.type === v.number;
|
|
1231
1256
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return e.type ===
|
|
1257
|
+
function zt(e) {
|
|
1258
|
+
return e.type === v.date;
|
|
1234
1259
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1260
|
+
function Zt(e) {
|
|
1261
|
+
return e.type === v.time;
|
|
1237
1262
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1263
|
+
function Qt(e) {
|
|
1264
|
+
return e.type === v.select;
|
|
1240
1265
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1266
|
+
function qt(e) {
|
|
1267
|
+
return e.type === v.plural;
|
|
1243
1268
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1269
|
+
function An(e) {
|
|
1270
|
+
return e.type === v.pound;
|
|
1246
1271
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1272
|
+
function Jt(e) {
|
|
1273
|
+
return e.type === v.tag;
|
|
1249
1274
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1275
|
+
function Yt(e) {
|
|
1276
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1252
1277
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1278
|
+
function We(e) {
|
|
1279
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1255
1280
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1281
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
1282
|
+
function On(e) {
|
|
1258
1283
|
var t = {};
|
|
1259
|
-
return e.replace(
|
|
1284
|
+
return e.replace(Pn, function(r) {
|
|
1260
1285
|
var n = r.length;
|
|
1261
1286
|
switch (r[0]) {
|
|
1262
1287
|
case "G":
|
|
@@ -1345,36 +1370,46 @@ function wn(e) {
|
|
|
1345
1370
|
return "";
|
|
1346
1371
|
}), t;
|
|
1347
1372
|
}
|
|
1348
|
-
var
|
|
1349
|
-
function
|
|
1373
|
+
var _ = function() {
|
|
1374
|
+
return _ = Object.assign || function(t) {
|
|
1375
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1376
|
+
r = arguments[n];
|
|
1377
|
+
for (var o in r)
|
|
1378
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1379
|
+
}
|
|
1380
|
+
return t;
|
|
1381
|
+
}, _.apply(this, arguments);
|
|
1382
|
+
};
|
|
1383
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1384
|
+
function Nn(e) {
|
|
1350
1385
|
if (e.length === 0)
|
|
1351
1386
|
throw new Error("Number skeleton cannot be empty");
|
|
1352
|
-
for (var t = e.split(
|
|
1353
|
-
return
|
|
1387
|
+
for (var t = e.split(In).filter(function(f) {
|
|
1388
|
+
return f.length > 0;
|
|
1354
1389
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1355
1390
|
var o = i[n], s = o.split("/");
|
|
1356
1391
|
if (s.length === 0)
|
|
1357
1392
|
throw new Error("Invalid number skeleton");
|
|
1358
1393
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1359
|
-
var
|
|
1360
|
-
if (
|
|
1394
|
+
var c = l[u];
|
|
1395
|
+
if (c.length === 0)
|
|
1361
1396
|
throw new Error("Invalid number skeleton");
|
|
1362
1397
|
}
|
|
1363
1398
|
r.push({ stem: a, options: h });
|
|
1364
1399
|
}
|
|
1365
1400
|
return r;
|
|
1366
1401
|
}
|
|
1367
|
-
function
|
|
1402
|
+
function Ln(e) {
|
|
1368
1403
|
return e.replace(/^(.*?)-/, "");
|
|
1369
1404
|
}
|
|
1370
|
-
var
|
|
1371
|
-
function
|
|
1405
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1406
|
+
function Et(e) {
|
|
1372
1407
|
var t = {};
|
|
1373
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1408
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1374
1409
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1375
1410
|
}), t;
|
|
1376
1411
|
}
|
|
1377
|
-
function
|
|
1412
|
+
function rr(e) {
|
|
1378
1413
|
switch (e) {
|
|
1379
1414
|
case "sign-auto":
|
|
1380
1415
|
return {
|
|
@@ -1414,7 +1449,7 @@ function Yt(e) {
|
|
|
1414
1449
|
};
|
|
1415
1450
|
}
|
|
1416
1451
|
}
|
|
1417
|
-
function
|
|
1452
|
+
function Mn(e) {
|
|
1418
1453
|
var t;
|
|
1419
1454
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1420
1455
|
notation: "engineering"
|
|
@@ -1422,17 +1457,17 @@ function In(e) {
|
|
|
1422
1457
|
notation: "scientific"
|
|
1423
1458
|
}, e = e.slice(1)), t) {
|
|
1424
1459
|
var r = e.slice(0, 2);
|
|
1425
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1460
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1426
1461
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1427
1462
|
t.minimumIntegerDigits = e.length;
|
|
1428
1463
|
}
|
|
1429
1464
|
return t;
|
|
1430
1465
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var t = {}, r =
|
|
1466
|
+
function xt(e) {
|
|
1467
|
+
var t = {}, r = rr(e);
|
|
1433
1468
|
return r || t;
|
|
1434
1469
|
}
|
|
1435
|
-
function
|
|
1470
|
+
function $n(e) {
|
|
1436
1471
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1437
1472
|
var i = n[r];
|
|
1438
1473
|
switch (i.stem) {
|
|
@@ -1456,7 +1491,7 @@ function Nn(e) {
|
|
|
1456
1491
|
continue;
|
|
1457
1492
|
case "measure-unit":
|
|
1458
1493
|
case "unit":
|
|
1459
|
-
t.style = "unit", t.unit =
|
|
1494
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1460
1495
|
continue;
|
|
1461
1496
|
case "compact-short":
|
|
1462
1497
|
case "K":
|
|
@@ -1467,13 +1502,13 @@ function Nn(e) {
|
|
|
1467
1502
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1468
1503
|
continue;
|
|
1469
1504
|
case "scientific":
|
|
1470
|
-
t =
|
|
1471
|
-
return
|
|
1505
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1506
|
+
return _(_({}, h), xt(u));
|
|
1472
1507
|
}, {}));
|
|
1473
1508
|
continue;
|
|
1474
1509
|
case "engineering":
|
|
1475
|
-
t =
|
|
1476
|
-
return
|
|
1510
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1511
|
+
return _(_({}, h), xt(u));
|
|
1477
1512
|
}, {}));
|
|
1478
1513
|
continue;
|
|
1479
1514
|
case "notation-simple":
|
|
@@ -1518,45 +1553,45 @@ function Nn(e) {
|
|
|
1518
1553
|
case "integer-width":
|
|
1519
1554
|
if (i.options.length > 1)
|
|
1520
1555
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1521
|
-
i.options[0].replace(
|
|
1556
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1522
1557
|
if (u)
|
|
1523
1558
|
t.minimumIntegerDigits = l.length;
|
|
1524
1559
|
else {
|
|
1525
|
-
if (
|
|
1560
|
+
if (c && f)
|
|
1526
1561
|
throw new Error("We currently do not support maximum integer digits");
|
|
1527
|
-
if (
|
|
1562
|
+
if (p)
|
|
1528
1563
|
throw new Error("We currently do not support exact integer digits");
|
|
1529
1564
|
}
|
|
1530
1565
|
return "";
|
|
1531
1566
|
});
|
|
1532
1567
|
continue;
|
|
1533
1568
|
}
|
|
1534
|
-
if (
|
|
1569
|
+
if (tr.test(i.stem)) {
|
|
1535
1570
|
t.minimumIntegerDigits = i.stem.length;
|
|
1536
1571
|
continue;
|
|
1537
1572
|
}
|
|
1538
|
-
if (
|
|
1573
|
+
if (_t.test(i.stem)) {
|
|
1539
1574
|
if (i.options.length > 1)
|
|
1540
1575
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1541
|
-
i.stem.replace(
|
|
1542
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1576
|
+
i.stem.replace(_t, function(h, u, l, c, f, p) {
|
|
1577
|
+
return l === "*" ? 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), "";
|
|
1543
1578
|
});
|
|
1544
1579
|
var o = i.options[0];
|
|
1545
|
-
o === "w" ? t =
|
|
1580
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1546
1581
|
continue;
|
|
1547
1582
|
}
|
|
1548
|
-
if (
|
|
1549
|
-
t =
|
|
1583
|
+
if (er.test(i.stem)) {
|
|
1584
|
+
t = _(_({}, t), Et(i.stem));
|
|
1550
1585
|
continue;
|
|
1551
1586
|
}
|
|
1552
|
-
var s =
|
|
1553
|
-
s && (t =
|
|
1554
|
-
var a =
|
|
1555
|
-
a && (t =
|
|
1587
|
+
var s = rr(i.stem);
|
|
1588
|
+
s && (t = _(_({}, t), s));
|
|
1589
|
+
var a = Mn(i.stem);
|
|
1590
|
+
a && (t = _(_({}, t), a));
|
|
1556
1591
|
}
|
|
1557
1592
|
return t;
|
|
1558
1593
|
}
|
|
1559
|
-
var
|
|
1594
|
+
var fe = {
|
|
1560
1595
|
"001": [
|
|
1561
1596
|
"H",
|
|
1562
1597
|
"h"
|
|
@@ -2971,13 +3006,13 @@ var ce = {
|
|
|
2971
3006
|
"h"
|
|
2972
3007
|
]
|
|
2973
3008
|
};
|
|
2974
|
-
function
|
|
3009
|
+
function Rn(e, t) {
|
|
2975
3010
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2976
3011
|
var i = e.charAt(n);
|
|
2977
3012
|
if (i === "j") {
|
|
2978
3013
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2979
3014
|
o++, n++;
|
|
2980
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3015
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
|
|
2981
3016
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2982
3017
|
r += h;
|
|
2983
3018
|
for (; s-- > 0; )
|
|
@@ -2987,7 +3022,7 @@ function Ln(e, t) {
|
|
|
2987
3022
|
}
|
|
2988
3023
|
return r;
|
|
2989
3024
|
}
|
|
2990
|
-
function
|
|
3025
|
+
function Un(e) {
|
|
2991
3026
|
var t = e.hourCycle;
|
|
2992
3027
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2993
3028
|
e.hourCycles && // @ts-ignore
|
|
@@ -3006,23 +3041,23 @@ function Cn(e) {
|
|
|
3006
3041
|
}
|
|
3007
3042
|
var r = e.language, n;
|
|
3008
3043
|
r !== "root" && (n = e.maximize().region);
|
|
3009
|
-
var i =
|
|
3044
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
3010
3045
|
return i[0];
|
|
3011
3046
|
}
|
|
3012
|
-
var
|
|
3047
|
+
var Ne, Dn = new RegExp("^".concat(Kt.source, "*")), Gn = new RegExp("".concat(Kt.source, "*$"));
|
|
3013
3048
|
function b(e, t) {
|
|
3014
3049
|
return { start: e, end: t };
|
|
3015
3050
|
}
|
|
3016
|
-
var
|
|
3051
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
|
|
3017
3052
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3018
|
-
},
|
|
3053
|
+
}, ze = !0;
|
|
3019
3054
|
try {
|
|
3020
|
-
var
|
|
3021
|
-
|
|
3055
|
+
var Qn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3056
|
+
ze = ((Ne = Qn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
3022
3057
|
} catch (e) {
|
|
3023
|
-
|
|
3058
|
+
ze = !1;
|
|
3024
3059
|
}
|
|
3025
|
-
var
|
|
3060
|
+
var Tt = Fn ? (
|
|
3026
3061
|
// Native
|
|
3027
3062
|
function(t, r, n) {
|
|
3028
3063
|
return t.startsWith(r, n);
|
|
@@ -3032,7 +3067,7 @@ var vt = Rn ? (
|
|
|
3032
3067
|
function(t, r, n) {
|
|
3033
3068
|
return t.slice(n, n + r.length) === r;
|
|
3034
3069
|
}
|
|
3035
|
-
),
|
|
3070
|
+
), Ze = jn ? String.fromCodePoint : (
|
|
3036
3071
|
// IE11
|
|
3037
3072
|
function() {
|
|
3038
3073
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3044,9 +3079,9 @@ var vt = Rn ? (
|
|
|
3044
3079
|
}
|
|
3045
3080
|
return n;
|
|
3046
3081
|
}
|
|
3047
|
-
),
|
|
3082
|
+
), Ht = (
|
|
3048
3083
|
// native
|
|
3049
|
-
|
|
3084
|
+
kn ? Object.fromEntries : (
|
|
3050
3085
|
// Ponyfill
|
|
3051
3086
|
function(t) {
|
|
3052
3087
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3056,7 +3091,7 @@ var vt = Rn ? (
|
|
|
3056
3091
|
return r;
|
|
3057
3092
|
}
|
|
3058
3093
|
)
|
|
3059
|
-
),
|
|
3094
|
+
), nr = Vn ? (
|
|
3060
3095
|
// Native
|
|
3061
3096
|
function(t, r) {
|
|
3062
3097
|
return t.codePointAt(r);
|
|
@@ -3070,7 +3105,7 @@ var vt = Rn ? (
|
|
|
3070
3105
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3071
3106
|
}
|
|
3072
3107
|
}
|
|
3073
|
-
),
|
|
3108
|
+
), qn = Xn ? (
|
|
3074
3109
|
// Native
|
|
3075
3110
|
function(t) {
|
|
3076
3111
|
return t.trimStart();
|
|
@@ -3078,9 +3113,9 @@ var vt = Rn ? (
|
|
|
3078
3113
|
) : (
|
|
3079
3114
|
// Ponyfill
|
|
3080
3115
|
function(t) {
|
|
3081
|
-
return t.replace(
|
|
3116
|
+
return t.replace(Dn, "");
|
|
3082
3117
|
}
|
|
3083
|
-
),
|
|
3118
|
+
), Jn = Wn ? (
|
|
3084
3119
|
// Native
|
|
3085
3120
|
function(t) {
|
|
3086
3121
|
return t.trimEnd();
|
|
@@ -3088,32 +3123,32 @@ var vt = Rn ? (
|
|
|
3088
3123
|
) : (
|
|
3089
3124
|
// Ponyfill
|
|
3090
3125
|
function(t) {
|
|
3091
|
-
return t.replace(
|
|
3126
|
+
return t.replace(Gn, "");
|
|
3092
3127
|
}
|
|
3093
3128
|
);
|
|
3094
|
-
function
|
|
3129
|
+
function ir(e, t) {
|
|
3095
3130
|
return new RegExp(e, t);
|
|
3096
3131
|
}
|
|
3097
|
-
var
|
|
3098
|
-
if (
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3132
|
+
var Qe;
|
|
3133
|
+
if (ze) {
|
|
3134
|
+
var St = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3135
|
+
Qe = function(t, r) {
|
|
3101
3136
|
var n;
|
|
3102
|
-
|
|
3103
|
-
var i =
|
|
3137
|
+
St.lastIndex = r;
|
|
3138
|
+
var i = St.exec(t);
|
|
3104
3139
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3105
3140
|
};
|
|
3106
3141
|
} else
|
|
3107
|
-
|
|
3142
|
+
Qe = function(t, r) {
|
|
3108
3143
|
for (var n = []; ; ) {
|
|
3109
|
-
var i =
|
|
3110
|
-
if (i === void 0 ||
|
|
3144
|
+
var i = nr(t, r);
|
|
3145
|
+
if (i === void 0 || or(i) || ti(i))
|
|
3111
3146
|
break;
|
|
3112
3147
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3113
3148
|
}
|
|
3114
|
-
return
|
|
3149
|
+
return Ze.apply(void 0, n);
|
|
3115
3150
|
};
|
|
3116
|
-
var
|
|
3151
|
+
var Yn = (
|
|
3117
3152
|
/** @class */
|
|
3118
3153
|
function() {
|
|
3119
3154
|
function e(t, r) {
|
|
@@ -3137,14 +3172,14 @@ var Zn = (
|
|
|
3137
3172
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3138
3173
|
var a = this.clonePosition();
|
|
3139
3174
|
this.bump(), i.push({
|
|
3140
|
-
type:
|
|
3175
|
+
type: v.pound,
|
|
3141
3176
|
location: b(a, this.clonePosition())
|
|
3142
3177
|
});
|
|
3143
3178
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3144
3179
|
if (n)
|
|
3145
3180
|
break;
|
|
3146
|
-
return this.error(
|
|
3147
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3181
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3182
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
3148
3183
|
var s = this.parseTag(t, r);
|
|
3149
3184
|
if (s.err)
|
|
3150
3185
|
return s;
|
|
@@ -3165,7 +3200,7 @@ var Zn = (
|
|
|
3165
3200
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3166
3201
|
return {
|
|
3167
3202
|
val: {
|
|
3168
|
-
type:
|
|
3203
|
+
type: v.literal,
|
|
3169
3204
|
value: "<".concat(i, "/>"),
|
|
3170
3205
|
location: b(n, this.clonePosition())
|
|
3171
3206
|
},
|
|
@@ -3177,25 +3212,25 @@ var Zn = (
|
|
|
3177
3212
|
return o;
|
|
3178
3213
|
var s = o.val, a = this.clonePosition();
|
|
3179
3214
|
if (this.bumpIf("</")) {
|
|
3180
|
-
if (this.isEOF() || !
|
|
3181
|
-
return this.error(
|
|
3215
|
+
if (this.isEOF() || !qe(this.char()))
|
|
3216
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3182
3217
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3183
|
-
return i !== u ? this.error(
|
|
3218
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3184
3219
|
val: {
|
|
3185
|
-
type:
|
|
3220
|
+
type: v.tag,
|
|
3186
3221
|
value: i,
|
|
3187
3222
|
children: s,
|
|
3188
3223
|
location: b(n, this.clonePosition())
|
|
3189
3224
|
},
|
|
3190
3225
|
err: null
|
|
3191
|
-
} : this.error(
|
|
3226
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3192
3227
|
} else
|
|
3193
|
-
return this.error(
|
|
3228
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3194
3229
|
} else
|
|
3195
|
-
return this.error(
|
|
3230
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3196
3231
|
}, e.prototype.parseTagName = function() {
|
|
3197
3232
|
var t = this.offset();
|
|
3198
|
-
for (this.bump(); !this.isEOF() &&
|
|
3233
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3199
3234
|
this.bump();
|
|
3200
3235
|
return this.message.slice(t, this.offset());
|
|
3201
3236
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3219,12 +3254,12 @@ var Zn = (
|
|
|
3219
3254
|
}
|
|
3220
3255
|
var h = b(n, this.clonePosition());
|
|
3221
3256
|
return {
|
|
3222
|
-
val: { type:
|
|
3257
|
+
val: { type: v.literal, value: i, location: h },
|
|
3223
3258
|
err: null
|
|
3224
3259
|
};
|
|
3225
3260
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3226
3261
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3227
|
-
!
|
|
3262
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3228
3263
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3229
3264
|
if (this.isEOF() || this.char() !== 39)
|
|
3230
3265
|
return null;
|
|
@@ -3258,28 +3293,28 @@ var Zn = (
|
|
|
3258
3293
|
r.push(n);
|
|
3259
3294
|
this.bump();
|
|
3260
3295
|
}
|
|
3261
|
-
return
|
|
3296
|
+
return Ze.apply(void 0, r);
|
|
3262
3297
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3263
3298
|
if (this.isEOF())
|
|
3264
3299
|
return null;
|
|
3265
3300
|
var n = this.char();
|
|
3266
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3301
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
3267
3302
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3268
3303
|
var n = this.clonePosition();
|
|
3269
3304
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3270
|
-
return this.error(
|
|
3305
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3271
3306
|
if (this.char() === 125)
|
|
3272
|
-
return this.bump(), this.error(
|
|
3307
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3273
3308
|
var i = this.parseIdentifierIfPossible().value;
|
|
3274
3309
|
if (!i)
|
|
3275
|
-
return this.error(
|
|
3310
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3276
3311
|
if (this.bumpSpace(), this.isEOF())
|
|
3277
|
-
return this.error(
|
|
3312
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3278
3313
|
switch (this.char()) {
|
|
3279
3314
|
case 125:
|
|
3280
3315
|
return this.bump(), {
|
|
3281
3316
|
val: {
|
|
3282
|
-
type:
|
|
3317
|
+
type: v.argument,
|
|
3283
3318
|
// value does not include the opening and closing braces.
|
|
3284
3319
|
value: i,
|
|
3285
3320
|
location: b(n, this.clonePosition())
|
|
@@ -3287,12 +3322,12 @@ var Zn = (
|
|
|
3287
3322
|
err: null
|
|
3288
3323
|
};
|
|
3289
3324
|
case 44:
|
|
3290
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3325
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3291
3326
|
default:
|
|
3292
|
-
return this.error(
|
|
3327
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3293
3328
|
}
|
|
3294
3329
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3295
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3330
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3296
3331
|
this.bumpTo(i);
|
|
3297
3332
|
var o = this.clonePosition(), s = b(t, o);
|
|
3298
3333
|
return { value: n, location: s };
|
|
@@ -3300,7 +3335,7 @@ var Zn = (
|
|
|
3300
3335
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3301
3336
|
switch (a) {
|
|
3302
3337
|
case "":
|
|
3303
|
-
return this.error(
|
|
3338
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3304
3339
|
case "number":
|
|
3305
3340
|
case "date":
|
|
3306
3341
|
case "time": {
|
|
@@ -3308,49 +3343,49 @@ var Zn = (
|
|
|
3308
3343
|
var u = null;
|
|
3309
3344
|
if (this.bumpIf(",")) {
|
|
3310
3345
|
this.bumpSpace();
|
|
3311
|
-
var l = this.clonePosition(),
|
|
3312
|
-
if (
|
|
3313
|
-
return
|
|
3314
|
-
var
|
|
3315
|
-
if (
|
|
3316
|
-
return this.error(
|
|
3317
|
-
var
|
|
3318
|
-
u = { style:
|
|
3346
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3347
|
+
if (c.err)
|
|
3348
|
+
return c;
|
|
3349
|
+
var f = Jn(c.val);
|
|
3350
|
+
if (f.length === 0)
|
|
3351
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3352
|
+
var p = b(l, this.clonePosition());
|
|
3353
|
+
u = { style: f, styleLocation: p };
|
|
3319
3354
|
}
|
|
3320
|
-
var
|
|
3321
|
-
if (
|
|
3322
|
-
return
|
|
3323
|
-
var
|
|
3324
|
-
if (u &&
|
|
3325
|
-
var T =
|
|
3355
|
+
var g = this.tryParseArgumentClose(i);
|
|
3356
|
+
if (g.err)
|
|
3357
|
+
return g;
|
|
3358
|
+
var m = b(i, this.clonePosition());
|
|
3359
|
+
if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3360
|
+
var T = qn(u.style.slice(2));
|
|
3326
3361
|
if (a === "number") {
|
|
3327
|
-
var
|
|
3328
|
-
return
|
|
3329
|
-
val: { type:
|
|
3362
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3363
|
+
return c.err ? c : {
|
|
3364
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
|
3330
3365
|
err: null
|
|
3331
3366
|
};
|
|
3332
3367
|
} else {
|
|
3333
3368
|
if (T.length === 0)
|
|
3334
|
-
return this.error(
|
|
3369
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3335
3370
|
var R = T;
|
|
3336
|
-
this.locale && (R =
|
|
3337
|
-
var
|
|
3338
|
-
type:
|
|
3371
|
+
this.locale && (R = Rn(T, this.locale));
|
|
3372
|
+
var f = {
|
|
3373
|
+
type: z.dateTime,
|
|
3339
3374
|
pattern: R,
|
|
3340
3375
|
location: u.styleLocation,
|
|
3341
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3342
|
-
},
|
|
3376
|
+
parsedOptions: this.shouldParseSkeletons ? On(R) : {}
|
|
3377
|
+
}, O = a === "date" ? v.date : v.time;
|
|
3343
3378
|
return {
|
|
3344
|
-
val: { type:
|
|
3379
|
+
val: { type: O, value: n, location: m, style: f },
|
|
3345
3380
|
err: null
|
|
3346
3381
|
};
|
|
3347
3382
|
}
|
|
3348
3383
|
}
|
|
3349
3384
|
return {
|
|
3350
3385
|
val: {
|
|
3351
|
-
type: a === "number" ?
|
|
3386
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3352
3387
|
value: n,
|
|
3353
|
-
location:
|
|
3388
|
+
location: m,
|
|
3354
3389
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3355
3390
|
},
|
|
3356
3391
|
err: null
|
|
@@ -3361,50 +3396,50 @@ var Zn = (
|
|
|
3361
3396
|
case "select": {
|
|
3362
3397
|
var S = this.clonePosition();
|
|
3363
3398
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3364
|
-
return this.error(
|
|
3399
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, ye({}, S)));
|
|
3365
3400
|
this.bumpSpace();
|
|
3366
|
-
var U = this.parseIdentifierIfPossible(),
|
|
3401
|
+
var U = this.parseIdentifierIfPossible(), I = 0;
|
|
3367
3402
|
if (a !== "select" && U.value === "offset") {
|
|
3368
3403
|
if (!this.bumpIf(":"))
|
|
3369
|
-
return this.error(
|
|
3404
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3370
3405
|
this.bumpSpace();
|
|
3371
|
-
var
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(),
|
|
3406
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3407
|
+
if (c.err)
|
|
3408
|
+
return c;
|
|
3409
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), I = c.val;
|
|
3375
3410
|
}
|
|
3376
3411
|
var G = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3377
3412
|
if (G.err)
|
|
3378
3413
|
return G;
|
|
3379
|
-
var
|
|
3380
|
-
if (
|
|
3381
|
-
return
|
|
3382
|
-
var
|
|
3414
|
+
var g = this.tryParseArgumentClose(i);
|
|
3415
|
+
if (g.err)
|
|
3416
|
+
return g;
|
|
3417
|
+
var y = b(i, this.clonePosition());
|
|
3383
3418
|
return a === "select" ? {
|
|
3384
3419
|
val: {
|
|
3385
|
-
type:
|
|
3420
|
+
type: v.select,
|
|
3386
3421
|
value: n,
|
|
3387
|
-
options:
|
|
3388
|
-
location:
|
|
3422
|
+
options: Ht(G.val),
|
|
3423
|
+
location: y
|
|
3389
3424
|
},
|
|
3390
3425
|
err: null
|
|
3391
3426
|
} : {
|
|
3392
3427
|
val: {
|
|
3393
|
-
type:
|
|
3428
|
+
type: v.plural,
|
|
3394
3429
|
value: n,
|
|
3395
|
-
options:
|
|
3396
|
-
offset:
|
|
3430
|
+
options: Ht(G.val),
|
|
3431
|
+
offset: I,
|
|
3397
3432
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3398
|
-
location:
|
|
3433
|
+
location: y
|
|
3399
3434
|
},
|
|
3400
3435
|
err: null
|
|
3401
3436
|
};
|
|
3402
3437
|
}
|
|
3403
3438
|
default:
|
|
3404
|
-
return this.error(
|
|
3439
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3405
3440
|
}
|
|
3406
3441
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3407
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3442
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3408
3443
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3409
3444
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3410
3445
|
var n = this.char();
|
|
@@ -3413,7 +3448,7 @@ var Zn = (
|
|
|
3413
3448
|
this.bump();
|
|
3414
3449
|
var i = this.clonePosition();
|
|
3415
3450
|
if (!this.bumpUntil("'"))
|
|
3416
|
-
return this.error(
|
|
3451
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3417
3452
|
this.bump();
|
|
3418
3453
|
break;
|
|
3419
3454
|
}
|
|
@@ -3443,52 +3478,52 @@ var Zn = (
|
|
|
3443
3478
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3444
3479
|
var n = [];
|
|
3445
3480
|
try {
|
|
3446
|
-
n =
|
|
3481
|
+
n = Nn(t);
|
|
3447
3482
|
} catch (i) {
|
|
3448
|
-
return this.error(
|
|
3483
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3449
3484
|
}
|
|
3450
3485
|
return {
|
|
3451
3486
|
val: {
|
|
3452
|
-
type:
|
|
3487
|
+
type: z.number,
|
|
3453
3488
|
tokens: n,
|
|
3454
3489
|
location: r,
|
|
3455
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3490
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3456
3491
|
},
|
|
3457
3492
|
err: null
|
|
3458
3493
|
};
|
|
3459
3494
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3460
3495
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3461
3496
|
if (u.length === 0) {
|
|
3462
|
-
var
|
|
3497
|
+
var c = this.clonePosition();
|
|
3463
3498
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3464
|
-
var
|
|
3465
|
-
if (
|
|
3466
|
-
return
|
|
3467
|
-
l = b(
|
|
3499
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3500
|
+
if (f.err)
|
|
3501
|
+
return f;
|
|
3502
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3468
3503
|
} else
|
|
3469
3504
|
break;
|
|
3470
3505
|
}
|
|
3471
3506
|
if (h.has(u))
|
|
3472
|
-
return this.error(r === "select" ?
|
|
3507
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3473
3508
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3474
|
-
var
|
|
3509
|
+
var p = this.clonePosition();
|
|
3475
3510
|
if (!this.bumpIf("{"))
|
|
3476
|
-
return this.error(r === "select" ?
|
|
3477
|
-
var
|
|
3478
|
-
if (
|
|
3479
|
-
return
|
|
3480
|
-
var
|
|
3481
|
-
if (
|
|
3482
|
-
return
|
|
3511
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3512
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3513
|
+
if (g.err)
|
|
3514
|
+
return g;
|
|
3515
|
+
var m = this.tryParseArgumentClose(p);
|
|
3516
|
+
if (m.err)
|
|
3517
|
+
return m;
|
|
3483
3518
|
a.push([
|
|
3484
3519
|
u,
|
|
3485
3520
|
{
|
|
3486
|
-
value:
|
|
3487
|
-
location: b(
|
|
3521
|
+
value: g.val,
|
|
3522
|
+
location: b(p, this.clonePosition())
|
|
3488
3523
|
}
|
|
3489
3524
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3490
3525
|
}
|
|
3491
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3526
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3492
3527
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3493
3528
|
var n = 1, i = this.clonePosition();
|
|
3494
3529
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3500,7 +3535,7 @@ var Zn = (
|
|
|
3500
3535
|
break;
|
|
3501
3536
|
}
|
|
3502
3537
|
var h = b(i, this.clonePosition());
|
|
3503
|
-
return o ? (s *= n,
|
|
3538
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3504
3539
|
}, e.prototype.offset = function() {
|
|
3505
3540
|
return this.position.offset;
|
|
3506
3541
|
}, e.prototype.isEOF = function() {
|
|
@@ -3515,7 +3550,7 @@ var Zn = (
|
|
|
3515
3550
|
var t = this.position.offset;
|
|
3516
3551
|
if (t >= this.message.length)
|
|
3517
3552
|
throw Error("out of bound");
|
|
3518
|
-
var r =
|
|
3553
|
+
var r = nr(this.message, t);
|
|
3519
3554
|
if (r === void 0)
|
|
3520
3555
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3521
3556
|
return r;
|
|
@@ -3534,7 +3569,7 @@ var Zn = (
|
|
|
3534
3569
|
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);
|
|
3535
3570
|
}
|
|
3536
3571
|
}, e.prototype.bumpIf = function(t) {
|
|
3537
|
-
if (
|
|
3572
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3538
3573
|
for (var r = 0; r < t.length; r++)
|
|
3539
3574
|
this.bump();
|
|
3540
3575
|
return !0;
|
|
@@ -3556,7 +3591,7 @@ var Zn = (
|
|
|
3556
3591
|
break;
|
|
3557
3592
|
}
|
|
3558
3593
|
}, e.prototype.bumpSpace = function() {
|
|
3559
|
-
for (; !this.isEOF() &&
|
|
3594
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3560
3595
|
this.bump();
|
|
3561
3596
|
}, e.prototype.peek = function() {
|
|
3562
3597
|
if (this.isEOF())
|
|
@@ -3566,47 +3601,47 @@ var Zn = (
|
|
|
3566
3601
|
}, e;
|
|
3567
3602
|
}()
|
|
3568
3603
|
);
|
|
3569
|
-
function
|
|
3604
|
+
function qe(e) {
|
|
3570
3605
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3571
3606
|
}
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3607
|
+
function Kn(e) {
|
|
3608
|
+
return qe(e) || e === 47;
|
|
3574
3609
|
}
|
|
3575
|
-
function
|
|
3610
|
+
function ei(e) {
|
|
3576
3611
|
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;
|
|
3577
3612
|
}
|
|
3578
|
-
function
|
|
3613
|
+
function or(e) {
|
|
3579
3614
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3580
3615
|
}
|
|
3581
|
-
function
|
|
3616
|
+
function ti(e) {
|
|
3582
3617
|
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;
|
|
3583
3618
|
}
|
|
3584
|
-
function
|
|
3619
|
+
function Je(e) {
|
|
3585
3620
|
e.forEach(function(t) {
|
|
3586
|
-
if (delete t.location,
|
|
3621
|
+
if (delete t.location, Qt(t) || qt(t))
|
|
3587
3622
|
for (var r in t.options)
|
|
3588
|
-
delete t.options[r].location,
|
|
3623
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3589
3624
|
else
|
|
3590
|
-
|
|
3625
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && We(t.style) ? delete t.style.location : Jt(t) && Je(t.children);
|
|
3591
3626
|
});
|
|
3592
3627
|
}
|
|
3593
|
-
function
|
|
3594
|
-
t === void 0 && (t = {}), t =
|
|
3595
|
-
var r = new
|
|
3628
|
+
function ri(e, t) {
|
|
3629
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3630
|
+
var r = new Yn(e, t).parse();
|
|
3596
3631
|
if (r.err) {
|
|
3597
|
-
var n = SyntaxError(
|
|
3632
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3598
3633
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3599
3634
|
}
|
|
3600
|
-
return t != null && t.captureLocation ||
|
|
3635
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3601
3636
|
}
|
|
3602
|
-
var
|
|
3637
|
+
var Z;
|
|
3603
3638
|
(function(e) {
|
|
3604
3639
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3605
|
-
})(
|
|
3606
|
-
var
|
|
3640
|
+
})(Z || (Z = {}));
|
|
3641
|
+
var Te = (
|
|
3607
3642
|
/** @class */
|
|
3608
3643
|
function(e) {
|
|
3609
|
-
|
|
3644
|
+
xe(t, e);
|
|
3610
3645
|
function t(r, n, i) {
|
|
3611
3646
|
var o = e.call(this, r) || this;
|
|
3612
3647
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3615,48 +3650,48 @@ var Ee = (
|
|
|
3615
3650
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3616
3651
|
}, t;
|
|
3617
3652
|
}(Error)
|
|
3618
|
-
),
|
|
3653
|
+
), wt = (
|
|
3619
3654
|
/** @class */
|
|
3620
3655
|
function(e) {
|
|
3621
|
-
|
|
3656
|
+
xe(t, e);
|
|
3622
3657
|
function t(r, n, i, o) {
|
|
3623
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3658
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3624
3659
|
}
|
|
3625
3660
|
return t;
|
|
3626
|
-
}(
|
|
3627
|
-
),
|
|
3661
|
+
}(Te)
|
|
3662
|
+
), ni = (
|
|
3628
3663
|
/** @class */
|
|
3629
3664
|
function(e) {
|
|
3630
|
-
|
|
3665
|
+
xe(t, e);
|
|
3631
3666
|
function t(r, n, i) {
|
|
3632
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3667
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3633
3668
|
}
|
|
3634
3669
|
return t;
|
|
3635
|
-
}(
|
|
3636
|
-
),
|
|
3670
|
+
}(Te)
|
|
3671
|
+
), ii = (
|
|
3637
3672
|
/** @class */
|
|
3638
3673
|
function(e) {
|
|
3639
|
-
|
|
3674
|
+
xe(t, e);
|
|
3640
3675
|
function t(r, n) {
|
|
3641
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3676
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3642
3677
|
}
|
|
3643
3678
|
return t;
|
|
3644
|
-
}(
|
|
3679
|
+
}(Te)
|
|
3645
3680
|
), H;
|
|
3646
3681
|
(function(e) {
|
|
3647
3682
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3648
3683
|
})(H || (H = {}));
|
|
3649
|
-
function
|
|
3684
|
+
function oi(e) {
|
|
3650
3685
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3651
3686
|
var n = t[t.length - 1];
|
|
3652
3687
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3653
3688
|
}, []);
|
|
3654
3689
|
}
|
|
3655
|
-
function
|
|
3690
|
+
function si(e) {
|
|
3656
3691
|
return typeof e == "function";
|
|
3657
3692
|
}
|
|
3658
|
-
function
|
|
3659
|
-
if (e.length === 1 &&
|
|
3693
|
+
function de(e, t, r, n, i, o, s) {
|
|
3694
|
+
if (e.length === 1 && vt(e[0]))
|
|
3660
3695
|
return [
|
|
3661
3696
|
{
|
|
3662
3697
|
type: H.literal,
|
|
@@ -3665,105 +3700,105 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3665
3700
|
];
|
|
3666
3701
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3667
3702
|
var l = u[h];
|
|
3668
|
-
if (
|
|
3703
|
+
if (vt(l)) {
|
|
3669
3704
|
a.push({
|
|
3670
3705
|
type: H.literal,
|
|
3671
3706
|
value: l.value
|
|
3672
3707
|
});
|
|
3673
3708
|
continue;
|
|
3674
3709
|
}
|
|
3675
|
-
if (
|
|
3710
|
+
if (An(l)) {
|
|
3676
3711
|
typeof o == "number" && a.push({
|
|
3677
3712
|
type: H.literal,
|
|
3678
3713
|
value: r.getNumberFormat(t).format(o)
|
|
3679
3714
|
});
|
|
3680
3715
|
continue;
|
|
3681
3716
|
}
|
|
3682
|
-
var
|
|
3683
|
-
if (!(i &&
|
|
3684
|
-
throw new
|
|
3685
|
-
var
|
|
3686
|
-
if (
|
|
3687
|
-
(!
|
|
3688
|
-
type: typeof
|
|
3689
|
-
value:
|
|
3717
|
+
var c = l.value;
|
|
3718
|
+
if (!(i && c in i))
|
|
3719
|
+
throw new ii(c, s);
|
|
3720
|
+
var f = i[c];
|
|
3721
|
+
if (Bn(l)) {
|
|
3722
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3723
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3724
|
+
value: f
|
|
3690
3725
|
});
|
|
3691
3726
|
continue;
|
|
3692
3727
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var
|
|
3728
|
+
if (zt(l)) {
|
|
3729
|
+
var p = typeof l.style == "string" ? n.date[l.style] : We(l.style) ? l.style.parsedOptions : void 0;
|
|
3695
3730
|
a.push({
|
|
3696
3731
|
type: H.literal,
|
|
3697
|
-
value: r.getDateTimeFormat(t,
|
|
3732
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3698
3733
|
});
|
|
3699
3734
|
continue;
|
|
3700
3735
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var
|
|
3736
|
+
if (Zt(l)) {
|
|
3737
|
+
var p = typeof l.style == "string" ? n.time[l.style] : We(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3703
3738
|
a.push({
|
|
3704
3739
|
type: H.literal,
|
|
3705
|
-
value: r.getDateTimeFormat(t,
|
|
3740
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3706
3741
|
});
|
|
3707
3742
|
continue;
|
|
3708
3743
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
|
|
3744
|
+
if (Wt(l)) {
|
|
3745
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3746
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3712
3747
|
type: H.literal,
|
|
3713
|
-
value: r.getNumberFormat(t,
|
|
3748
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3714
3749
|
});
|
|
3715
3750
|
continue;
|
|
3716
3751
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var
|
|
3719
|
-
if (!
|
|
3720
|
-
throw new
|
|
3721
|
-
var R =
|
|
3722
|
-
return
|
|
3752
|
+
if (Jt(l)) {
|
|
3753
|
+
var g = l.children, m = l.value, T = i[m];
|
|
3754
|
+
if (!si(T))
|
|
3755
|
+
throw new ni(m, "function", s);
|
|
3756
|
+
var R = de(g, t, r, n, i, o), O = T(R.map(function(I) {
|
|
3757
|
+
return I.value;
|
|
3723
3758
|
}));
|
|
3724
|
-
Array.isArray(
|
|
3759
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(I) {
|
|
3725
3760
|
return {
|
|
3726
|
-
type: typeof
|
|
3727
|
-
value:
|
|
3761
|
+
type: typeof I == "string" ? H.literal : H.object,
|
|
3762
|
+
value: I
|
|
3728
3763
|
};
|
|
3729
3764
|
}));
|
|
3730
3765
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var S = l.options[
|
|
3766
|
+
if (Qt(l)) {
|
|
3767
|
+
var S = l.options[f] || l.options.other;
|
|
3733
3768
|
if (!S)
|
|
3734
|
-
throw new
|
|
3735
|
-
a.push.apply(a,
|
|
3769
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3770
|
+
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3736
3771
|
continue;
|
|
3737
3772
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var S = l.options["=".concat(
|
|
3773
|
+
if (qt(l)) {
|
|
3774
|
+
var S = l.options["=".concat(f)];
|
|
3740
3775
|
if (!S) {
|
|
3741
3776
|
if (!Intl.PluralRules)
|
|
3742
|
-
throw new
|
|
3777
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3743
3778
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3744
|
-
`,
|
|
3745
|
-
var U = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3779
|
+
`, Z.MISSING_INTL_API, s);
|
|
3780
|
+
var U = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3746
3781
|
S = l.options[U] || l.options.other;
|
|
3747
3782
|
}
|
|
3748
3783
|
if (!S)
|
|
3749
|
-
throw new
|
|
3750
|
-
a.push.apply(a,
|
|
3784
|
+
throw new wt(l.value, f, Object.keys(l.options), s);
|
|
3785
|
+
a.push.apply(a, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3751
3786
|
continue;
|
|
3752
3787
|
}
|
|
3753
3788
|
}
|
|
3754
|
-
return
|
|
3789
|
+
return oi(a);
|
|
3755
3790
|
}
|
|
3756
|
-
function
|
|
3757
|
-
return t ?
|
|
3758
|
-
return r[n] =
|
|
3791
|
+
function ai(e, t) {
|
|
3792
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3793
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3759
3794
|
}, {})) : e;
|
|
3760
3795
|
}
|
|
3761
|
-
function
|
|
3796
|
+
function ui(e, t) {
|
|
3762
3797
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3763
|
-
return r[n] =
|
|
3764
|
-
},
|
|
3798
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3799
|
+
}, P({}, e)) : e;
|
|
3765
3800
|
}
|
|
3766
|
-
function
|
|
3801
|
+
function Le(e) {
|
|
3767
3802
|
return {
|
|
3768
3803
|
create: function() {
|
|
3769
3804
|
return {
|
|
@@ -3777,39 +3812,39 @@ function Oe(e) {
|
|
|
3777
3812
|
}
|
|
3778
3813
|
};
|
|
3779
3814
|
}
|
|
3780
|
-
function
|
|
3815
|
+
function hi(e) {
|
|
3781
3816
|
return e === void 0 && (e = {
|
|
3782
3817
|
number: {},
|
|
3783
3818
|
dateTime: {},
|
|
3784
3819
|
pluralRules: {}
|
|
3785
3820
|
}), {
|
|
3786
|
-
getNumberFormat:
|
|
3821
|
+
getNumberFormat: Oe(function() {
|
|
3787
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3788
3823
|
r[n] = arguments[n];
|
|
3789
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3824
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3790
3825
|
}, {
|
|
3791
|
-
cache:
|
|
3792
|
-
strategy:
|
|
3826
|
+
cache: Le(e.number),
|
|
3827
|
+
strategy: Ie.variadic
|
|
3793
3828
|
}),
|
|
3794
|
-
getDateTimeFormat:
|
|
3829
|
+
getDateTimeFormat: Oe(function() {
|
|
3795
3830
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3831
|
r[n] = arguments[n];
|
|
3797
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3832
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3798
3833
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3834
|
+
cache: Le(e.dateTime),
|
|
3835
|
+
strategy: Ie.variadic
|
|
3801
3836
|
}),
|
|
3802
|
-
getPluralRules:
|
|
3837
|
+
getPluralRules: Oe(function() {
|
|
3803
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3839
|
r[n] = arguments[n];
|
|
3805
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3806
3841
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3842
|
+
cache: Le(e.pluralRules),
|
|
3843
|
+
strategy: Ie.variadic
|
|
3809
3844
|
})
|
|
3810
3845
|
};
|
|
3811
3846
|
}
|
|
3812
|
-
var
|
|
3847
|
+
var li = (
|
|
3813
3848
|
/** @class */
|
|
3814
3849
|
function() {
|
|
3815
3850
|
function e(t, r, n, i) {
|
|
@@ -3823,12 +3858,12 @@ var si = (
|
|
|
3823
3858
|
var u = o.formatToParts(h);
|
|
3824
3859
|
if (u.length === 1)
|
|
3825
3860
|
return u[0].value;
|
|
3826
|
-
var l = u.reduce(function(
|
|
3827
|
-
return !
|
|
3861
|
+
var l = u.reduce(function(c, f) {
|
|
3862
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3828
3863
|
}, []);
|
|
3829
3864
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3830
3865
|
}, this.formatToParts = function(h) {
|
|
3831
|
-
return
|
|
3866
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3832
3867
|
}, this.resolvedOptions = function() {
|
|
3833
3868
|
var h;
|
|
3834
3869
|
return {
|
|
@@ -3841,13 +3876,13 @@ var si = (
|
|
|
3841
3876
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3842
3877
|
var s = i || {};
|
|
3843
3878
|
s.formatters;
|
|
3844
|
-
var a =
|
|
3845
|
-
this.ast = e.__parse(t,
|
|
3879
|
+
var a = vn(s, ["formatters"]);
|
|
3880
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3846
3881
|
} else
|
|
3847
3882
|
this.ast = t;
|
|
3848
3883
|
if (!Array.isArray(this.ast))
|
|
3849
3884
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3850
|
-
this.formats =
|
|
3885
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3851
3886
|
}
|
|
3852
3887
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3853
3888
|
get: function() {
|
|
@@ -3860,7 +3895,7 @@ var si = (
|
|
|
3860
3895
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3861
3896
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3862
3897
|
}
|
|
3863
|
-
}, e.__parse =
|
|
3898
|
+
}, e.__parse = ri, e.formats = {
|
|
3864
3899
|
number: {
|
|
3865
3900
|
integer: {
|
|
3866
3901
|
maximumFractionDigits: 0
|
|
@@ -3921,7 +3956,7 @@ var si = (
|
|
|
3921
3956
|
}, e;
|
|
3922
3957
|
}()
|
|
3923
3958
|
);
|
|
3924
|
-
function
|
|
3959
|
+
function ci(e, t) {
|
|
3925
3960
|
if (t == null)
|
|
3926
3961
|
return;
|
|
3927
3962
|
if (t in e)
|
|
@@ -3942,92 +3977,92 @@ function ai(e, t) {
|
|
|
3942
3977
|
n = void 0;
|
|
3943
3978
|
return n;
|
|
3944
3979
|
}
|
|
3945
|
-
const $ = {},
|
|
3980
|
+
const $ = {}, fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
|
|
3946
3981
|
if (t == null)
|
|
3947
3982
|
return;
|
|
3948
3983
|
if (t in $ && e in $[t])
|
|
3949
3984
|
return $[t][e];
|
|
3950
|
-
const r =
|
|
3985
|
+
const r = He(t);
|
|
3951
3986
|
for (let n = 0; n < r.length; n++) {
|
|
3952
|
-
const i = r[n], o =
|
|
3987
|
+
const i = r[n], o = mi(i, e);
|
|
3953
3988
|
if (o)
|
|
3954
|
-
return
|
|
3989
|
+
return fi(e, t, o);
|
|
3955
3990
|
}
|
|
3956
3991
|
};
|
|
3957
|
-
let
|
|
3958
|
-
const he =
|
|
3959
|
-
function
|
|
3960
|
-
return
|
|
3992
|
+
let rt;
|
|
3993
|
+
const he = Ee({});
|
|
3994
|
+
function pi(e) {
|
|
3995
|
+
return rt[e] || null;
|
|
3961
3996
|
}
|
|
3962
|
-
function
|
|
3963
|
-
return e in
|
|
3997
|
+
function ar(e) {
|
|
3998
|
+
return e in rt;
|
|
3964
3999
|
}
|
|
3965
|
-
function
|
|
3966
|
-
if (!
|
|
4000
|
+
function mi(e, t) {
|
|
4001
|
+
if (!ar(e))
|
|
3967
4002
|
return null;
|
|
3968
|
-
const r =
|
|
3969
|
-
return
|
|
4003
|
+
const r = pi(e);
|
|
4004
|
+
return ci(r, t);
|
|
3970
4005
|
}
|
|
3971
|
-
function
|
|
4006
|
+
function di(e) {
|
|
3972
4007
|
if (e == null)
|
|
3973
4008
|
return;
|
|
3974
|
-
const t =
|
|
4009
|
+
const t = He(e);
|
|
3975
4010
|
for (let r = 0; r < t.length; r++) {
|
|
3976
4011
|
const n = t[r];
|
|
3977
|
-
if (
|
|
4012
|
+
if (ar(n))
|
|
3978
4013
|
return n;
|
|
3979
4014
|
}
|
|
3980
4015
|
}
|
|
3981
|
-
function
|
|
3982
|
-
delete $[e], he.update((r) => (r[e] =
|
|
4016
|
+
function ur(e, ...t) {
|
|
4017
|
+
delete $[e], he.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3983
4018
|
}
|
|
3984
|
-
|
|
4019
|
+
J(
|
|
3985
4020
|
[he],
|
|
3986
4021
|
([e]) => Object.keys(e)
|
|
3987
4022
|
);
|
|
3988
|
-
he.subscribe((e) =>
|
|
4023
|
+
he.subscribe((e) => rt = e);
|
|
3989
4024
|
const be = {};
|
|
3990
|
-
function
|
|
4025
|
+
function bi(e, t) {
|
|
3991
4026
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3992
4027
|
}
|
|
3993
|
-
function
|
|
4028
|
+
function hr(e) {
|
|
3994
4029
|
return be[e];
|
|
3995
4030
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return
|
|
3998
|
-
const r =
|
|
4031
|
+
function yi(e) {
|
|
4032
|
+
return He(e).map((t) => {
|
|
4033
|
+
const r = hr(t);
|
|
3999
4034
|
return [t, r ? [...r] : []];
|
|
4000
4035
|
}).filter(([, t]) => t.length > 0);
|
|
4001
4036
|
}
|
|
4002
|
-
function
|
|
4003
|
-
return e == null ? !1 :
|
|
4037
|
+
function Ye(e) {
|
|
4038
|
+
return e == null ? !1 : He(e).some(
|
|
4004
4039
|
(t) => {
|
|
4005
4040
|
var r;
|
|
4006
|
-
return (r =
|
|
4041
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
4007
4042
|
}
|
|
4008
4043
|
);
|
|
4009
4044
|
}
|
|
4010
|
-
function
|
|
4045
|
+
function gi(e, t) {
|
|
4011
4046
|
return Promise.all(
|
|
4012
|
-
t.map((n) => (
|
|
4013
|
-
).then((n) =>
|
|
4014
|
-
}
|
|
4015
|
-
const
|
|
4016
|
-
function
|
|
4017
|
-
if (!
|
|
4018
|
-
return e in
|
|
4019
|
-
const t =
|
|
4020
|
-
return
|
|
4047
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4048
|
+
).then((n) => ur(e, ...n));
|
|
4049
|
+
}
|
|
4050
|
+
const ee = {};
|
|
4051
|
+
function lr(e) {
|
|
4052
|
+
if (!Ye(e))
|
|
4053
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4054
|
+
const t = yi(e);
|
|
4055
|
+
return ee[e] = Promise.all(
|
|
4021
4056
|
t.map(
|
|
4022
|
-
([r, n]) =>
|
|
4057
|
+
([r, n]) => gi(r, n)
|
|
4023
4058
|
)
|
|
4024
4059
|
).then(() => {
|
|
4025
|
-
if (
|
|
4026
|
-
return
|
|
4027
|
-
delete
|
|
4028
|
-
}),
|
|
4060
|
+
if (Ye(e))
|
|
4061
|
+
return lr(e);
|
|
4062
|
+
delete ee[e];
|
|
4063
|
+
}), ee[e];
|
|
4029
4064
|
}
|
|
4030
|
-
const
|
|
4065
|
+
const vi = {
|
|
4031
4066
|
number: {
|
|
4032
4067
|
scientific: { notation: "scientific" },
|
|
4033
4068
|
engineering: { notation: "engineering" },
|
|
@@ -4056,135 +4091,135 @@ const mi = {
|
|
|
4056
4091
|
timeZoneName: "short"
|
|
4057
4092
|
}
|
|
4058
4093
|
}
|
|
4059
|
-
},
|
|
4094
|
+
}, _i = {
|
|
4060
4095
|
fallbackLocale: null,
|
|
4061
4096
|
loadingDelay: 200,
|
|
4062
|
-
formats:
|
|
4097
|
+
formats: vi,
|
|
4063
4098
|
warnOnMissingMessages: !0,
|
|
4064
4099
|
handleMissingMessage: void 0,
|
|
4065
4100
|
ignoreTag: !0
|
|
4066
|
-
},
|
|
4067
|
-
function
|
|
4068
|
-
return
|
|
4069
|
-
}
|
|
4070
|
-
const
|
|
4071
|
-
var
|
|
4072
|
-
for (var r in t)
|
|
4073
|
-
|
|
4074
|
-
if (
|
|
4075
|
-
for (var r of
|
|
4076
|
-
|
|
4101
|
+
}, Ei = _i;
|
|
4102
|
+
function Q() {
|
|
4103
|
+
return Ei;
|
|
4104
|
+
}
|
|
4105
|
+
const Ce = Ee(!1);
|
|
4106
|
+
var xi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4107
|
+
for (var r in t || (t = {}))
|
|
4108
|
+
Si.call(t, r) && At(e, r, t[r]);
|
|
4109
|
+
if (Bt)
|
|
4110
|
+
for (var r of Bt(t))
|
|
4111
|
+
wi.call(t, r) && At(e, r, t[r]);
|
|
4077
4112
|
return e;
|
|
4078
|
-
},
|
|
4079
|
-
let
|
|
4080
|
-
const
|
|
4081
|
-
function
|
|
4113
|
+
}, Ai = (e, t) => Ti(e, Hi(t));
|
|
4114
|
+
let Ke;
|
|
4115
|
+
const ge = Ee(null);
|
|
4116
|
+
function Pt(e) {
|
|
4082
4117
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4083
4118
|
}
|
|
4084
|
-
function
|
|
4085
|
-
const r =
|
|
4086
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4119
|
+
function He(e, t = Q().fallbackLocale) {
|
|
4120
|
+
const r = Pt(e);
|
|
4121
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4087
4122
|
}
|
|
4088
4123
|
function D() {
|
|
4089
|
-
return
|
|
4124
|
+
return Ke != null ? Ke : void 0;
|
|
4090
4125
|
}
|
|
4091
|
-
|
|
4092
|
-
|
|
4126
|
+
ge.subscribe((e) => {
|
|
4127
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4093
4128
|
});
|
|
4094
|
-
const
|
|
4095
|
-
if (e &&
|
|
4096
|
-
const { loadingDelay: t } =
|
|
4129
|
+
const Pi = (e) => {
|
|
4130
|
+
if (e && di(e) && Ye(e)) {
|
|
4131
|
+
const { loadingDelay: t } = Q();
|
|
4097
4132
|
let r;
|
|
4098
4133
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4099
|
-
() =>
|
|
4134
|
+
() => Ce.set(!0),
|
|
4100
4135
|
t
|
|
4101
|
-
) :
|
|
4102
|
-
|
|
4136
|
+
) : Ce.set(!0), lr(e).then(() => {
|
|
4137
|
+
ge.set(e);
|
|
4103
4138
|
}).finally(() => {
|
|
4104
|
-
clearTimeout(r),
|
|
4139
|
+
clearTimeout(r), Ce.set(!1);
|
|
4105
4140
|
});
|
|
4106
4141
|
}
|
|
4107
|
-
return
|
|
4108
|
-
},
|
|
4109
|
-
set:
|
|
4110
|
-
}),
|
|
4142
|
+
return ge.set(e);
|
|
4143
|
+
}, Y = Ai(Bi({}, ge), {
|
|
4144
|
+
set: Pi
|
|
4145
|
+
}), Se = (e) => {
|
|
4111
4146
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4112
4147
|
return (n) => {
|
|
4113
4148
|
const i = JSON.stringify(n);
|
|
4114
4149
|
return i in t ? t[i] : t[i] = e(n);
|
|
4115
4150
|
};
|
|
4116
4151
|
};
|
|
4117
|
-
var
|
|
4152
|
+
var Oi = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
4118
4153
|
for (var r in t || (t = {}))
|
|
4119
|
-
|
|
4120
|
-
if (
|
|
4121
|
-
for (var r of
|
|
4122
|
-
|
|
4154
|
+
cr.call(t, r) && Ot(e, r, t[r]);
|
|
4155
|
+
if (ve)
|
|
4156
|
+
for (var r of ve(t))
|
|
4157
|
+
fr.call(t, r) && Ot(e, r, t[r]);
|
|
4123
4158
|
return e;
|
|
4124
|
-
},
|
|
4159
|
+
}, K = (e, t) => {
|
|
4125
4160
|
var r = {};
|
|
4126
4161
|
for (var n in e)
|
|
4127
|
-
|
|
4128
|
-
if (e != null &&
|
|
4129
|
-
for (var n of
|
|
4130
|
-
t.indexOf(n) < 0 &&
|
|
4162
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4163
|
+
if (e != null && ve)
|
|
4164
|
+
for (var n of ve(e))
|
|
4165
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4131
4166
|
return r;
|
|
4132
4167
|
};
|
|
4133
|
-
const
|
|
4134
|
-
const { formats: r } =
|
|
4168
|
+
const oe = (e, t) => {
|
|
4169
|
+
const { formats: r } = Q();
|
|
4135
4170
|
if (e in r && t in r[e])
|
|
4136
4171
|
return r[e][t];
|
|
4137
4172
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4138
|
-
},
|
|
4173
|
+
}, Ii = Se(
|
|
4139
4174
|
(e) => {
|
|
4140
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4175
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4141
4176
|
if (r == null)
|
|
4142
4177
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4143
|
-
return n && (i =
|
|
4178
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4144
4179
|
}
|
|
4145
|
-
),
|
|
4180
|
+
), Ni = Se(
|
|
4146
4181
|
(e) => {
|
|
4147
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4182
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4148
4183
|
if (r == null)
|
|
4149
4184
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4150
|
-
return n ? i =
|
|
4185
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4151
4186
|
}
|
|
4152
|
-
),
|
|
4187
|
+
), Li = Se(
|
|
4153
4188
|
(e) => {
|
|
4154
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4189
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4155
4190
|
if (r == null)
|
|
4156
4191
|
throw new Error(
|
|
4157
4192
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4158
4193
|
);
|
|
4159
|
-
return n ? i =
|
|
4194
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4160
4195
|
}
|
|
4161
|
-
),
|
|
4196
|
+
), Ci = (e = {}) => {
|
|
4162
4197
|
var t = e, {
|
|
4163
4198
|
locale: r = D()
|
|
4164
|
-
} = t, n =
|
|
4199
|
+
} = t, n = K(t, [
|
|
4165
4200
|
"locale"
|
|
4166
4201
|
]);
|
|
4167
|
-
return
|
|
4168
|
-
},
|
|
4202
|
+
return Ii(nt({ locale: r }, n));
|
|
4203
|
+
}, Mi = (e = {}) => {
|
|
4169
4204
|
var t = e, {
|
|
4170
4205
|
locale: r = D()
|
|
4171
|
-
} = t, n =
|
|
4206
|
+
} = t, n = K(t, [
|
|
4172
4207
|
"locale"
|
|
4173
4208
|
]);
|
|
4174
|
-
return
|
|
4175
|
-
},
|
|
4209
|
+
return Ni(nt({ locale: r }, n));
|
|
4210
|
+
}, $i = (e = {}) => {
|
|
4176
4211
|
var t = e, {
|
|
4177
4212
|
locale: r = D()
|
|
4178
|
-
} = t, n =
|
|
4213
|
+
} = t, n = K(t, [
|
|
4179
4214
|
"locale"
|
|
4180
4215
|
]);
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4216
|
+
return Li(nt({ locale: r }, n));
|
|
4217
|
+
}, Ri = Se(
|
|
4183
4218
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4184
|
-
(e, t = D()) => new
|
|
4185
|
-
ignoreTag:
|
|
4219
|
+
(e, t = D()) => new li(e, t, Q().formats, {
|
|
4220
|
+
ignoreTag: Q().ignoreTag
|
|
4186
4221
|
})
|
|
4187
|
-
),
|
|
4222
|
+
), Ui = (e, t = {}) => {
|
|
4188
4223
|
var r, n, i, o;
|
|
4189
4224
|
let s = t;
|
|
4190
4225
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4197,39 +4232,39 @@ const se = (e, t) => {
|
|
|
4197
4232
|
throw new Error(
|
|
4198
4233
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4199
4234
|
);
|
|
4200
|
-
let l =
|
|
4235
|
+
let l = sr(e, h);
|
|
4201
4236
|
if (!l)
|
|
4202
|
-
l = (o = (i = (n = (r =
|
|
4237
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4203
4238
|
else if (typeof l != "string")
|
|
4204
4239
|
return console.warn(
|
|
4205
4240
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4206
4241
|
), l;
|
|
4207
4242
|
if (!a)
|
|
4208
4243
|
return l;
|
|
4209
|
-
let
|
|
4244
|
+
let c = l;
|
|
4210
4245
|
try {
|
|
4211
|
-
|
|
4212
|
-
} catch (
|
|
4213
|
-
|
|
4246
|
+
c = Ri(l, h).format(a);
|
|
4247
|
+
} catch (f) {
|
|
4248
|
+
f instanceof Error && console.warn(
|
|
4214
4249
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4215
|
-
|
|
4250
|
+
f.message
|
|
4216
4251
|
);
|
|
4217
4252
|
}
|
|
4218
|
-
return
|
|
4219
|
-
},
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
window.emWidgets = { topic:
|
|
4225
|
-
const
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4228
|
-
}
|
|
4229
|
-
function
|
|
4230
|
-
|
|
4231
|
-
}
|
|
4232
|
-
const
|
|
4253
|
+
return c;
|
|
4254
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), Fi = (e, t) => Ci(t).format(e), ji = (e, t = D()) => sr(e, t), ki = J([Y, he], () => Ui);
|
|
4255
|
+
J([Y], () => Di);
|
|
4256
|
+
J([Y], () => Gi);
|
|
4257
|
+
J([Y], () => Fi);
|
|
4258
|
+
J([Y, he], () => ji);
|
|
4259
|
+
window.emWidgets = { topic: en };
|
|
4260
|
+
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4261
|
+
function It(e, t) {
|
|
4262
|
+
ur(e, t);
|
|
4263
|
+
}
|
|
4264
|
+
function Xi(e) {
|
|
4265
|
+
Y.set(e);
|
|
4266
|
+
}
|
|
4267
|
+
const Nt = {
|
|
4233
4268
|
en: {
|
|
4234
4269
|
titleTransactionHistory: "Transaction History",
|
|
4235
4270
|
loading: "Loading, please wait ..."
|
|
@@ -4271,13 +4306,13 @@ const At = {
|
|
|
4271
4306
|
loading: "Loading, please wait ..."
|
|
4272
4307
|
}
|
|
4273
4308
|
};
|
|
4274
|
-
function
|
|
4309
|
+
function Wi(e, t) {
|
|
4275
4310
|
if (e) {
|
|
4276
4311
|
const r = document.createElement("style");
|
|
4277
4312
|
r.innerHTML = t, e.appendChild(r);
|
|
4278
4313
|
}
|
|
4279
4314
|
}
|
|
4280
|
-
function
|
|
4315
|
+
function zi(e, t) {
|
|
4281
4316
|
const r = new URL(t);
|
|
4282
4317
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4283
4318
|
const i = document.createElement("style");
|
|
@@ -4286,7 +4321,7 @@ function ki(e, t) {
|
|
|
4286
4321
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4287
4322
|
});
|
|
4288
4323
|
}
|
|
4289
|
-
function
|
|
4324
|
+
function Zi(e, t, r) {
|
|
4290
4325
|
if (window.emMessageBus) {
|
|
4291
4326
|
const n = document.createElement("style");
|
|
4292
4327
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4294,142 +4329,142 @@ function Vi(e, t, r) {
|
|
|
4294
4329
|
});
|
|
4295
4330
|
}
|
|
4296
4331
|
}
|
|
4297
|
-
function
|
|
4298
|
-
|
|
4332
|
+
function Qi(e) {
|
|
4333
|
+
_r(e, "svelte-1v10tii", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4299
4334
|
}
|
|
4300
|
-
function
|
|
4301
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4335
|
+
function qi(e) {
|
|
4336
|
+
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4302
4337
|
/*$_*/
|
|
4303
4338
|
e[3]("titleTransactionHistory") + ""
|
|
4304
|
-
),
|
|
4339
|
+
), f, p, g;
|
|
4305
4340
|
return {
|
|
4306
4341
|
c() {
|
|
4307
|
-
t =
|
|
4342
|
+
t = L("div"), r = F("svg"), n = F("defs"), i = F("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = F("g"), a = F("g"), h = F("path"), u = Me(), l = L("h2"), f = re(c), E(h, "class", "aaa"), E(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(h, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(l, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4308
4343
|
},
|
|
4309
|
-
m(
|
|
4310
|
-
|
|
4344
|
+
m(m, T) {
|
|
4345
|
+
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, s), x(s, a), x(a, h), x(t, u), x(t, l), x(l, f), p || (g = Tr(
|
|
4311
4346
|
t,
|
|
4312
4347
|
"click",
|
|
4313
4348
|
/*click_handler*/
|
|
4314
4349
|
e[14]
|
|
4315
|
-
),
|
|
4350
|
+
), p = !0);
|
|
4316
4351
|
},
|
|
4317
|
-
p(
|
|
4352
|
+
p(m, T) {
|
|
4318
4353
|
T & /*$_*/
|
|
4319
|
-
8 &&
|
|
4320
|
-
|
|
4354
|
+
8 && c !== (c = /*$_*/
|
|
4355
|
+
m[3]("titleTransactionHistory") + "") && tt(f, c);
|
|
4321
4356
|
},
|
|
4322
|
-
d(
|
|
4323
|
-
|
|
4357
|
+
d(m) {
|
|
4358
|
+
m && q(t), p = !1, g();
|
|
4324
4359
|
}
|
|
4325
4360
|
};
|
|
4326
4361
|
}
|
|
4327
|
-
function
|
|
4362
|
+
function Ji(e) {
|
|
4328
4363
|
let t, r, n;
|
|
4329
4364
|
return {
|
|
4330
4365
|
c() {
|
|
4331
|
-
t =
|
|
4366
|
+
t = L("div"), r = L("iframe"), ht(r.src, n = /*iframeUrl*/
|
|
4332
4367
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4333
4368
|
},
|
|
4334
4369
|
m(i, o) {
|
|
4335
|
-
|
|
4370
|
+
ae(i, t, o), x(t, r);
|
|
4336
4371
|
},
|
|
4337
4372
|
p(i, o) {
|
|
4338
4373
|
o & /*iframeUrl*/
|
|
4339
|
-
4 && !
|
|
4374
|
+
4 && !ht(r.src, n = /*iframeUrl*/
|
|
4340
4375
|
i[2]) && E(r, "src", n);
|
|
4341
4376
|
},
|
|
4342
4377
|
d(i) {
|
|
4343
|
-
i &&
|
|
4378
|
+
i && q(t);
|
|
4344
4379
|
}
|
|
4345
4380
|
};
|
|
4346
4381
|
}
|
|
4347
|
-
function
|
|
4382
|
+
function Yi(e) {
|
|
4348
4383
|
let t, r = (
|
|
4349
4384
|
/*$_*/
|
|
4350
4385
|
e[3]("loading") + ""
|
|
4351
4386
|
), n;
|
|
4352
4387
|
return {
|
|
4353
4388
|
c() {
|
|
4354
|
-
t =
|
|
4389
|
+
t = L("p"), n = re(r);
|
|
4355
4390
|
},
|
|
4356
4391
|
m(i, o) {
|
|
4357
|
-
|
|
4392
|
+
ae(i, t, o), x(t, n);
|
|
4358
4393
|
},
|
|
4359
4394
|
p(i, o) {
|
|
4360
4395
|
o & /*$_*/
|
|
4361
4396
|
8 && r !== (r = /*$_*/
|
|
4362
|
-
i[3]("loading") + "") &&
|
|
4397
|
+
i[3]("loading") + "") && tt(n, r);
|
|
4363
4398
|
},
|
|
4364
4399
|
d(i) {
|
|
4365
|
-
i &&
|
|
4400
|
+
i && q(t);
|
|
4366
4401
|
}
|
|
4367
4402
|
};
|
|
4368
4403
|
}
|
|
4369
|
-
function
|
|
4404
|
+
function Ki(e) {
|
|
4370
4405
|
let t, r, n, i = (
|
|
4371
4406
|
/*$_*/
|
|
4372
4407
|
e[3]("titleTransactionHistory") + ""
|
|
4373
4408
|
), o, s, a = (
|
|
4374
4409
|
/*isMobile*/
|
|
4375
|
-
e[4] &&
|
|
4410
|
+
e[4] && qi(e)
|
|
4376
4411
|
);
|
|
4377
|
-
function h(
|
|
4412
|
+
function h(c, f) {
|
|
4378
4413
|
return (
|
|
4379
4414
|
/*isLoading*/
|
|
4380
|
-
|
|
4415
|
+
c[1] ? Yi : Ji
|
|
4381
4416
|
);
|
|
4382
4417
|
}
|
|
4383
4418
|
let u = h(e), l = u(e);
|
|
4384
4419
|
return {
|
|
4385
4420
|
c() {
|
|
4386
|
-
t =
|
|
4421
|
+
t = L("div"), a && a.c(), r = Me(), n = L("h2"), o = re(i), s = Me(), l.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4387
4422
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4388
4423
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4389
4424
|
},
|
|
4390
|
-
m(
|
|
4391
|
-
|
|
4425
|
+
m(c, f) {
|
|
4426
|
+
ae(c, t, f), a && a.m(t, null), x(t, r), x(t, n), x(n, o), x(t, s), l.m(t, null), e[15](t);
|
|
4392
4427
|
},
|
|
4393
|
-
p(
|
|
4428
|
+
p(c, [f]) {
|
|
4394
4429
|
/*isMobile*/
|
|
4395
|
-
|
|
4430
|
+
c[4] && a.p(c, f), f & /*$_*/
|
|
4396
4431
|
8 && i !== (i = /*$_*/
|
|
4397
|
-
|
|
4432
|
+
c[3]("titleTransactionHistory") + "") && tt(o, i), u === (u = h(c)) && l ? l.p(c, f) : (l.d(1), l = u(c), l && (l.c(), l.m(t, null)));
|
|
4398
4433
|
},
|
|
4399
4434
|
i: B,
|
|
4400
4435
|
o: B,
|
|
4401
|
-
d(
|
|
4402
|
-
|
|
4436
|
+
d(c) {
|
|
4437
|
+
c && q(t), a && a.d(), l.d(), e[15](null);
|
|
4403
4438
|
}
|
|
4404
4439
|
};
|
|
4405
4440
|
}
|
|
4406
|
-
function
|
|
4441
|
+
function eo(e, t, r) {
|
|
4407
4442
|
let n;
|
|
4408
|
-
|
|
4409
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl:
|
|
4443
|
+
vr(e, ki, (y) => r(3, n = y));
|
|
4444
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, g = Vi(p) !== "PC", m = !0, T = "";
|
|
4410
4445
|
const R = () => {
|
|
4411
|
-
fetch(
|
|
4446
|
+
fetch(c).then((C) => C.json()).then((C) => {
|
|
4412
4447
|
Object.keys(C).forEach((M) => {
|
|
4413
|
-
|
|
4448
|
+
It(M, C[M]);
|
|
4414
4449
|
});
|
|
4415
4450
|
}).catch((C) => {
|
|
4416
4451
|
console.log(C);
|
|
4417
4452
|
});
|
|
4418
4453
|
};
|
|
4419
|
-
Object.keys(
|
|
4420
|
-
|
|
4454
|
+
Object.keys(Nt).forEach((y) => {
|
|
4455
|
+
It(y, Nt[y]);
|
|
4421
4456
|
});
|
|
4422
|
-
const
|
|
4457
|
+
const O = () => {
|
|
4423
4458
|
window.postMessage(
|
|
4424
4459
|
{
|
|
4425
4460
|
type: "PlayerAccountMenuActive",
|
|
4426
|
-
isMobile:
|
|
4461
|
+
isMobile: g
|
|
4427
4462
|
},
|
|
4428
4463
|
window.location.href
|
|
4429
4464
|
);
|
|
4430
4465
|
}, S = () => {
|
|
4431
|
-
let
|
|
4432
|
-
|
|
4466
|
+
let y = new URL(`${i}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`);
|
|
4467
|
+
y.searchParams.append("language", a);
|
|
4433
4468
|
let C = {
|
|
4434
4469
|
method: "GET",
|
|
4435
4470
|
headers: {
|
|
@@ -4437,42 +4472,42 @@ function qi(e, t, r) {
|
|
|
4437
4472
|
accept: "application/json"
|
|
4438
4473
|
}
|
|
4439
4474
|
};
|
|
4440
|
-
fetch(
|
|
4475
|
+
fetch(y.href, C).then((M) => M.json()).then(
|
|
4441
4476
|
(M) => {
|
|
4442
|
-
r(1,
|
|
4477
|
+
r(1, m = !1), r(2, T = M.CashierUrl);
|
|
4443
4478
|
},
|
|
4444
4479
|
(M) => {
|
|
4445
4480
|
console.error(M);
|
|
4446
4481
|
}
|
|
4447
4482
|
);
|
|
4448
4483
|
}, U = () => {
|
|
4449
|
-
|
|
4484
|
+
Xi(a);
|
|
4450
4485
|
};
|
|
4451
|
-
|
|
4486
|
+
Br(() => () => {
|
|
4452
4487
|
});
|
|
4453
|
-
const
|
|
4454
|
-
function G(
|
|
4455
|
-
|
|
4456
|
-
|
|
4488
|
+
const I = () => O();
|
|
4489
|
+
function G(y) {
|
|
4490
|
+
$e[y ? "unshift" : "push"](() => {
|
|
4491
|
+
f = y, r(0, f);
|
|
4457
4492
|
});
|
|
4458
4493
|
}
|
|
4459
|
-
return e.$$set = (
|
|
4460
|
-
"endpoint" in
|
|
4494
|
+
return e.$$set = (y) => {
|
|
4495
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, s = y.playerid), "lang" in y && r(9, a = y.lang), "clientstyling" in y && r(10, h = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, l = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
|
|
4461
4496
|
}, e.$$.update = () => {
|
|
4462
4497
|
e.$$.dirty & /*lang*/
|
|
4463
4498
|
512 && a && U(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4464
4499
|
960 && o && s && i && a && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4465
|
-
1025 && h &&
|
|
4466
|
-
2049 && u &&
|
|
4467
|
-
4097 && l &&
|
|
4468
|
-
8192 &&
|
|
4500
|
+
1025 && h && f && Wi(f, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4501
|
+
2049 && u && f && zi(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4502
|
+
4097 && l && f && Zi(f, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4503
|
+
8192 && c && R();
|
|
4469
4504
|
}, [
|
|
4470
|
-
|
|
4471
|
-
|
|
4505
|
+
f,
|
|
4506
|
+
m,
|
|
4472
4507
|
T,
|
|
4473
4508
|
n,
|
|
4474
|
-
|
|
4475
|
-
|
|
4509
|
+
g,
|
|
4510
|
+
O,
|
|
4476
4511
|
i,
|
|
4477
4512
|
o,
|
|
4478
4513
|
s,
|
|
@@ -4480,19 +4515,19 @@ function qi(e, t, r) {
|
|
|
4480
4515
|
h,
|
|
4481
4516
|
u,
|
|
4482
4517
|
l,
|
|
4483
|
-
|
|
4484
|
-
|
|
4518
|
+
c,
|
|
4519
|
+
I,
|
|
4485
4520
|
G
|
|
4486
4521
|
];
|
|
4487
4522
|
}
|
|
4488
|
-
class
|
|
4523
|
+
class to extends Dr {
|
|
4489
4524
|
constructor(t) {
|
|
4490
|
-
super(),
|
|
4525
|
+
super(), Rr(
|
|
4491
4526
|
this,
|
|
4492
4527
|
t,
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4528
|
+
eo,
|
|
4529
|
+
Ki,
|
|
4530
|
+
Ct,
|
|
4496
4531
|
{
|
|
4497
4532
|
endpoint: 6,
|
|
4498
4533
|
session: 7,
|
|
@@ -4503,7 +4538,7 @@ class Ji extends Mr {
|
|
|
4503
4538
|
mbsource: 12,
|
|
4504
4539
|
translationurl: 13
|
|
4505
4540
|
},
|
|
4506
|
-
|
|
4541
|
+
Qi
|
|
4507
4542
|
);
|
|
4508
4543
|
}
|
|
4509
4544
|
get endpoint() {
|
|
@@ -4555,7 +4590,7 @@ class Ji extends Mr {
|
|
|
4555
4590
|
this.$$set({ translationurl: t }), A();
|
|
4556
4591
|
}
|
|
4557
4592
|
}
|
|
4558
|
-
|
|
4593
|
+
Ur(to, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4559
4594
|
export {
|
|
4560
|
-
|
|
4595
|
+
to as default
|
|
4561
4596
|
};
|