@everymatrix/player-reality-check 1.45.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerRealityCheck-iUGKMDo6.cjs → PlayerRealityCheck-CSPo0YId.cjs} +3 -3
- package/components/{PlayerRealityCheck-DLbmY7gr.js → PlayerRealityCheck-D-NfG8Af.js} +809 -809
- package/es2015/player-reality-check.cjs +1 -1
- package/es2015/player-reality-check.js +1 -1
- package/package.json +2 -2
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
var Cr = Object.defineProperty, Br = Object.defineProperties;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e, t, r) => t in e ? Cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
2
|
+
var Pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ot = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ar = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? Cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Ar.call(t, r) && Ce(e, r, t[r]);
|
|
8
|
+
if (ot)
|
|
9
|
+
for (var r of ot(t))
|
|
10
|
+
Rr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, at = (e, t) => Br(e,
|
|
13
|
-
var
|
|
12
|
+
}, at = (e, t) => Br(e, Pr(t));
|
|
13
|
+
var O = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
14
|
var Be = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function M() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function $t(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function ut() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ne(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach($t);
|
|
40
40
|
}
|
|
41
41
|
function Ke(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function kt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Or(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ut(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return M;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Mr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
61
61
|
}
|
|
62
62
|
function T(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function Ir(e, t, r) {
|
|
66
|
+
const n = Lr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = B("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, Nr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Lr(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,42 +78,42 @@ function Ir(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Nr(e, t) {
|
|
82
82
|
return T(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
85
85
|
t
|
|
86
86
|
), t.sheet;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function U(e, t, r) {
|
|
89
89
|
e.insertBefore(t, r || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function I(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function $r(e, t) {
|
|
95
95
|
for (let r = 0; r < e.length; r += 1)
|
|
96
96
|
e[r] && e[r].d(t);
|
|
97
97
|
}
|
|
98
98
|
function B(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function W(e) {
|
|
102
102
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function L(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function F() {
|
|
108
|
+
return L(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ve(e, t, r, n) {
|
|
111
111
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function H(e, t, r) {
|
|
114
114
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function kr(e) {
|
|
117
117
|
let t;
|
|
118
118
|
return {
|
|
119
119
|
/* push */
|
|
@@ -126,17 +126,17 @@ function jr(e) {
|
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ur(e) {
|
|
130
130
|
return Array.from(e.childNodes);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function V(e, t) {
|
|
133
133
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
134
|
t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Dr(e, t) {
|
|
137
137
|
e.value = t == null ? "" : t;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Fr(e) {
|
|
140
140
|
const t = {};
|
|
141
141
|
return e.childNodes.forEach(
|
|
142
142
|
/** @param {Element} node */
|
|
@@ -149,83 +149,83 @@ let et;
|
|
|
149
149
|
function le(e) {
|
|
150
150
|
et = e;
|
|
151
151
|
}
|
|
152
|
-
const Q = [],
|
|
152
|
+
const Q = [], $e = [];
|
|
153
153
|
let J = [];
|
|
154
|
-
const lt = [],
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
154
|
+
const lt = [], Gr = /* @__PURE__ */ Promise.resolve();
|
|
155
|
+
let ke = !1;
|
|
156
|
+
function jr() {
|
|
157
|
+
ke || (ke = !0, Gr.then($));
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ue(e) {
|
|
160
160
|
J.push(e);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
162
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
163
|
+
let q = 0;
|
|
164
|
+
function $() {
|
|
165
|
+
if (q !== 0)
|
|
166
166
|
return;
|
|
167
167
|
const e = et;
|
|
168
168
|
do {
|
|
169
169
|
try {
|
|
170
|
-
for (;
|
|
171
|
-
const t = Q[
|
|
172
|
-
|
|
170
|
+
for (; q < Q.length; ) {
|
|
171
|
+
const t = Q[q];
|
|
172
|
+
q++, le(t), Vr(t.$$);
|
|
173
173
|
}
|
|
174
174
|
} catch (t) {
|
|
175
|
-
throw Q.length = 0,
|
|
175
|
+
throw Q.length = 0, q = 0, t;
|
|
176
176
|
}
|
|
177
|
-
for (le(null), Q.length = 0,
|
|
177
|
+
for (le(null), Q.length = 0, q = 0; $e.length; ) $e.pop()();
|
|
178
178
|
for (let t = 0; t < J.length; t += 1) {
|
|
179
179
|
const r = J[t];
|
|
180
|
-
|
|
180
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
181
181
|
}
|
|
182
182
|
J.length = 0;
|
|
183
183
|
} while (Q.length);
|
|
184
184
|
for (; lt.length; )
|
|
185
185
|
lt.pop()();
|
|
186
|
-
|
|
186
|
+
ke = !1, Pe.clear(), le(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Vr(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
190
|
e.update(), ne(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Xr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
197
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const zr = /* @__PURE__ */ new Set();
|
|
200
|
+
function Wr(e, t) {
|
|
201
|
+
e && e.i && (zr.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
203
|
function ht(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function qr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Ue(() => {
|
|
209
|
+
const o = e.$$.on_mount.map($t).filter(Ke);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Ue);
|
|
212
212
|
}
|
|
213
213
|
function Zr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (Xr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
217
|
function Qr(e, t) {
|
|
218
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
218
|
+
e.$$.dirty[0] === -1 && (Q.push(e), jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function Jr(e, t, r, n, i,
|
|
220
|
+
function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
221
221
|
const l = et;
|
|
222
222
|
le(e);
|
|
223
223
|
const u = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
226
226
|
// state
|
|
227
|
-
props:
|
|
228
|
-
update:
|
|
227
|
+
props: o,
|
|
228
|
+
update: M,
|
|
229
229
|
not_equal: i,
|
|
230
230
|
bound: ut(),
|
|
231
231
|
// lifecycle
|
|
@@ -241,43 +241,43 @@ function Jr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || l.$$.root
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
s && s(u.root);
|
|
245
245
|
let h = !1;
|
|
246
246
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const d = p.length ? p[0] : f;
|
|
248
248
|
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Qr(e, c)), f;
|
|
249
249
|
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
252
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
251
|
+
const c = Ur(t.target);
|
|
252
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
253
253
|
} else
|
|
254
254
|
u.fragment && u.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && Wr(e.$$.fragment), qr(e, t.target, t.anchor), $();
|
|
256
256
|
}
|
|
257
257
|
le(l);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Dt;
|
|
260
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
264
|
-
|
|
264
|
+
O(this, "$$ctor");
|
|
265
265
|
/** Slots */
|
|
266
|
-
|
|
266
|
+
O(this, "$$s");
|
|
267
267
|
/** The Svelte component instance */
|
|
268
|
-
|
|
268
|
+
O(this, "$$c");
|
|
269
269
|
/** Whether or not the custom element is connected */
|
|
270
|
-
|
|
270
|
+
O(this, "$$cn", !1);
|
|
271
271
|
/** Component props data */
|
|
272
|
-
|
|
272
|
+
O(this, "$$d", {});
|
|
273
273
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
274
|
-
|
|
274
|
+
O(this, "$$r", !1);
|
|
275
275
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
276
|
-
|
|
276
|
+
O(this, "$$p_d", {});
|
|
277
277
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
278
|
-
|
|
278
|
+
O(this, "$$l", {});
|
|
279
279
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
|
-
|
|
280
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
281
281
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
282
282
|
}
|
|
283
283
|
addEventListener(t, r, n) {
|
|
@@ -296,40 +296,40 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
|
296
296
|
connectedCallback() {
|
|
297
297
|
return Be(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
|
-
let t = function(
|
|
299
|
+
let t = function(o) {
|
|
300
300
|
return () => {
|
|
301
|
-
let
|
|
301
|
+
let s;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
|
|
304
|
+
s = B("slot"), o !== "default" && H(s, "name", o);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(u, h) {
|
|
311
|
-
|
|
311
|
+
U(u, s, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(u) {
|
|
314
|
-
u &&
|
|
314
|
+
u && I(s);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, n =
|
|
322
|
-
for (const
|
|
323
|
-
|
|
324
|
-
for (const
|
|
325
|
-
const
|
|
326
|
-
|
|
321
|
+
const r = {}, n = Fr(this);
|
|
322
|
+
for (const o of this.$$s)
|
|
323
|
+
o in n && (r[o] = [t(o)]);
|
|
324
|
+
for (const o of this.attributes) {
|
|
325
|
+
const s = this.$$g_p(o.name);
|
|
326
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
|
-
for (const
|
|
329
|
-
!(
|
|
328
|
+
for (const o in this.$$p_d)
|
|
329
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props: at(
|
|
332
|
+
props: at(st({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -338,23 +338,23 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
|
338
338
|
});
|
|
339
339
|
const i = () => {
|
|
340
340
|
this.$$r = !0;
|
|
341
|
-
for (const
|
|
342
|
-
if (this.$$d[
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
this.$$d[
|
|
341
|
+
for (const o in this.$$p_d)
|
|
342
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
343
|
+
const s = me(
|
|
344
|
+
o,
|
|
345
|
+
this.$$d[o],
|
|
346
346
|
this.$$p_d,
|
|
347
347
|
"toAttribute"
|
|
348
348
|
);
|
|
349
|
-
|
|
349
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
350
350
|
}
|
|
351
351
|
this.$$r = !1;
|
|
352
352
|
};
|
|
353
353
|
this.$$c.$$.after_update.push(i), i();
|
|
354
|
-
for (const
|
|
355
|
-
for (const
|
|
356
|
-
const a = this.$$c.$on(
|
|
357
|
-
this.$$l_u.set(
|
|
354
|
+
for (const o in this.$$l)
|
|
355
|
+
for (const s of this.$$l[o]) {
|
|
356
|
+
const a = this.$$c.$on(o, s);
|
|
357
|
+
this.$$l_u.set(s, a);
|
|
358
358
|
}
|
|
359
359
|
this.$$l = {};
|
|
360
360
|
}
|
|
@@ -378,8 +378,8 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
function me(e, t, r, n) {
|
|
381
|
-
var
|
|
382
|
-
const i = (
|
|
381
|
+
var o;
|
|
382
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
384
384
|
return t;
|
|
385
385
|
if (n === "toAttribute")
|
|
@@ -407,8 +407,8 @@ function me(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function Yr(e, t, r, n, i,
|
|
411
|
-
let
|
|
410
|
+
function Yr(e, t, r, n, i, o) {
|
|
411
|
+
let s = class extends Dt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -419,7 +419,7 @@ function Yr(e, t, r, n, i, s) {
|
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
421
|
return Object.keys(t).forEach((a) => {
|
|
422
|
-
Object.defineProperty(
|
|
422
|
+
Object.defineProperty(s.prototype, a, {
|
|
423
423
|
get() {
|
|
424
424
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
425
425
|
},
|
|
@@ -429,14 +429,14 @@ function Yr(e, t, r, n, i, s) {
|
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((a) => {
|
|
432
|
-
Object.defineProperty(
|
|
432
|
+
Object.defineProperty(s.prototype, a, {
|
|
433
433
|
get() {
|
|
434
434
|
var l;
|
|
435
435
|
return (l = this.$$c) == null ? void 0 : l[a];
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
|
-
|
|
439
|
+
s, s;
|
|
440
440
|
}
|
|
441
441
|
class Kr {
|
|
442
442
|
constructor() {
|
|
@@ -447,7 +447,7 @@ class Kr {
|
|
|
447
447
|
*
|
|
448
448
|
* @type {any}
|
|
449
449
|
*/
|
|
450
|
-
|
|
450
|
+
O(this, "$$");
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -455,11 +455,11 @@ class Kr {
|
|
|
455
455
|
*
|
|
456
456
|
* @type {any}
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
O(this, "$$set");
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
Zr(this, 1), this.$destroy =
|
|
462
|
+
Zr(this, 1), this.$destroy = M;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,7 +469,7 @@ class Kr {
|
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
471
|
if (!Ke(r))
|
|
472
|
-
return
|
|
472
|
+
return M;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
475
475
|
const i = n.indexOf(r);
|
|
@@ -481,22 +481,22 @@ class Kr {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
const en = "4";
|
|
488
488
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
|
|
489
|
-
var
|
|
490
|
-
return
|
|
489
|
+
var De = function(e, t) {
|
|
490
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
491
491
|
r.__proto__ = n;
|
|
492
492
|
} || function(r, n) {
|
|
493
493
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
494
|
-
},
|
|
494
|
+
}, De(e, t);
|
|
495
495
|
};
|
|
496
|
-
function
|
|
496
|
+
function D(e, t) {
|
|
497
497
|
if (typeof t != "function" && t !== null)
|
|
498
498
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
499
|
-
|
|
499
|
+
De(e, t);
|
|
500
500
|
function r() {
|
|
501
501
|
this.constructor = e;
|
|
502
502
|
}
|
|
@@ -506,7 +506,7 @@ var E = function() {
|
|
|
506
506
|
return E = Object.assign || function(t) {
|
|
507
507
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
508
508
|
r = arguments[n];
|
|
509
|
-
for (var
|
|
509
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
510
510
|
}
|
|
511
511
|
return t;
|
|
512
512
|
}, E.apply(this, arguments);
|
|
@@ -519,7 +519,7 @@ function tn(e, t) {
|
|
|
519
519
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
520
520
|
return r;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Fe(e) {
|
|
523
523
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
524
524
|
if (r) return r.call(e);
|
|
525
525
|
if (e && typeof e.length == "number") return {
|
|
@@ -529,38 +529,38 @@ function De(e) {
|
|
|
529
529
|
};
|
|
530
530
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Ge(e, t) {
|
|
533
533
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
534
534
|
if (!r) return e;
|
|
535
|
-
var n = r.call(e), i,
|
|
535
|
+
var n = r.call(e), i, o = [], s;
|
|
536
536
|
try {
|
|
537
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
537
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
538
538
|
} catch (a) {
|
|
539
|
-
|
|
539
|
+
s = { error: a };
|
|
540
540
|
} finally {
|
|
541
541
|
try {
|
|
542
542
|
i && !i.done && (r = n.return) && r.call(n);
|
|
543
543
|
} finally {
|
|
544
|
-
if (
|
|
544
|
+
if (s) throw s.error;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
return
|
|
547
|
+
return o;
|
|
548
548
|
}
|
|
549
549
|
function Y(e, t, r) {
|
|
550
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length,
|
|
551
|
-
(
|
|
552
|
-
return e.concat(
|
|
550
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
551
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
552
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function k(e) {
|
|
555
555
|
return typeof e == "function";
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ft(e) {
|
|
558
558
|
var t = function(n) {
|
|
559
559
|
Error.call(n), n.stack = new Error().stack;
|
|
560
560
|
}, r = e(t);
|
|
561
561
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
562
562
|
}
|
|
563
|
-
var
|
|
563
|
+
var Ae = Ft(function(e) {
|
|
564
564
|
return function(r) {
|
|
565
565
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
566
566
|
` + r.map(function(n, i) {
|
|
@@ -569,7 +569,7 @@ var Pe = Dt(function(e) {
|
|
|
569
569
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function je(e, t) {
|
|
573
573
|
if (e) {
|
|
574
574
|
var r = e.indexOf(t);
|
|
575
575
|
0 <= r && e.splice(r, 1);
|
|
@@ -580,19 +580,19 @@ var Ee = function() {
|
|
|
580
580
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
581
581
|
}
|
|
582
582
|
return e.prototype.unsubscribe = function() {
|
|
583
|
-
var t, r, n, i,
|
|
583
|
+
var t, r, n, i, o;
|
|
584
584
|
if (!this.closed) {
|
|
585
585
|
this.closed = !0;
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
if (this._parentage = null, Array.isArray(
|
|
586
|
+
var s = this._parentage;
|
|
587
|
+
if (s)
|
|
588
|
+
if (this._parentage = null, Array.isArray(s))
|
|
589
589
|
try {
|
|
590
|
-
for (var a =
|
|
590
|
+
for (var a = Fe(s), l = a.next(); !l.done; l = a.next()) {
|
|
591
591
|
var u = l.value;
|
|
592
592
|
u.remove(this);
|
|
593
593
|
}
|
|
594
|
-
} catch (
|
|
595
|
-
t = { error:
|
|
594
|
+
} catch (b) {
|
|
595
|
+
t = { error: b };
|
|
596
596
|
} finally {
|
|
597
597
|
try {
|
|
598
598
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -601,28 +601,28 @@ var Ee = function() {
|
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
else
|
|
604
|
-
|
|
604
|
+
s.remove(this);
|
|
605
605
|
var h = this.initialTeardown;
|
|
606
|
-
if (
|
|
606
|
+
if (k(h))
|
|
607
607
|
try {
|
|
608
608
|
h();
|
|
609
|
-
} catch (
|
|
610
|
-
|
|
609
|
+
} catch (b) {
|
|
610
|
+
o = b instanceof Ae ? b.errors : [b];
|
|
611
611
|
}
|
|
612
612
|
var c = this._finalizers;
|
|
613
613
|
if (c) {
|
|
614
614
|
this._finalizers = null;
|
|
615
615
|
try {
|
|
616
|
-
for (var f =
|
|
616
|
+
for (var f = Fe(c), p = f.next(); !p.done; p = f.next()) {
|
|
617
617
|
var d = p.value;
|
|
618
618
|
try {
|
|
619
619
|
ct(d);
|
|
620
|
-
} catch (
|
|
621
|
-
|
|
620
|
+
} catch (b) {
|
|
621
|
+
o = o != null ? o : [], b instanceof Ae ? o = Y(Y([], Ge(o)), Ge(b.errors)) : o.push(b);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
} catch (
|
|
625
|
-
n = { error:
|
|
624
|
+
} catch (b) {
|
|
625
|
+
n = { error: b };
|
|
626
626
|
} finally {
|
|
627
627
|
try {
|
|
628
628
|
p && !p.done && (i = f.return) && i.call(f);
|
|
@@ -631,8 +631,8 @@ var Ee = function() {
|
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
if (
|
|
635
|
-
throw new
|
|
634
|
+
if (o)
|
|
635
|
+
throw new Ae(o);
|
|
636
636
|
}
|
|
637
637
|
}, e.prototype.add = function(t) {
|
|
638
638
|
var r;
|
|
@@ -655,57 +655,57 @@ var Ee = function() {
|
|
|
655
655
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
656
656
|
}, e.prototype._removeParent = function(t) {
|
|
657
657
|
var r = this._parentage;
|
|
658
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
658
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
659
659
|
}, e.prototype.remove = function(t) {
|
|
660
660
|
var r = this._finalizers;
|
|
661
|
-
r &&
|
|
661
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
662
662
|
}, e.EMPTY = function() {
|
|
663
663
|
var t = new e();
|
|
664
664
|
return t.closed = !0, t;
|
|
665
665
|
}(), e;
|
|
666
|
-
}(),
|
|
667
|
-
function
|
|
668
|
-
return e instanceof Ee || e && "closed" in e &&
|
|
666
|
+
}(), Gt = Ee.EMPTY;
|
|
667
|
+
function jt(e) {
|
|
668
|
+
return e instanceof Ee || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
669
669
|
}
|
|
670
670
|
function ct(e) {
|
|
671
|
-
|
|
671
|
+
k(e) ? e() : e.unsubscribe();
|
|
672
672
|
}
|
|
673
|
-
var
|
|
673
|
+
var Vt = {
|
|
674
674
|
onUnhandledError: null,
|
|
675
675
|
onStoppedNotification: null,
|
|
676
676
|
Promise: void 0,
|
|
677
677
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
678
678
|
useDeprecatedNextContext: !1
|
|
679
|
-
},
|
|
679
|
+
}, Xt = {
|
|
680
680
|
setTimeout: function(e, t) {
|
|
681
681
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
682
682
|
r[n - 2] = arguments[n];
|
|
683
|
-
return setTimeout.apply(void 0, Y([e, t],
|
|
683
|
+
return setTimeout.apply(void 0, Y([e, t], Ge(r)));
|
|
684
684
|
},
|
|
685
685
|
clearTimeout: function(e) {
|
|
686
|
-
var t =
|
|
686
|
+
var t = Xt.delegate;
|
|
687
687
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
688
688
|
},
|
|
689
689
|
delegate: void 0
|
|
690
690
|
};
|
|
691
691
|
function rn(e) {
|
|
692
|
-
|
|
692
|
+
Xt.setTimeout(function() {
|
|
693
693
|
throw e;
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
696
|
function ft() {
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function be(e) {
|
|
699
699
|
e();
|
|
700
700
|
}
|
|
701
|
-
var
|
|
702
|
-
|
|
701
|
+
var zt = function(e) {
|
|
702
|
+
D(t, e);
|
|
703
703
|
function t(r) {
|
|
704
704
|
var n = e.call(this) || this;
|
|
705
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
705
|
+
return n.isStopped = !1, r ? (n.destination = r, jt(r) && r.add(n)) : n.destination = an, n;
|
|
706
706
|
}
|
|
707
707
|
return t.create = function(r, n, i) {
|
|
708
|
-
return new
|
|
708
|
+
return new Ve(r, n, i);
|
|
709
709
|
}, t.prototype.next = function(r) {
|
|
710
710
|
this.isStopped || this._next(r);
|
|
711
711
|
}, t.prototype.error = function(r) {
|
|
@@ -730,10 +730,10 @@ var Xt = function(e) {
|
|
|
730
730
|
}
|
|
731
731
|
}, t;
|
|
732
732
|
}(Ee), nn = Function.prototype.bind;
|
|
733
|
-
function
|
|
733
|
+
function Re(e, t) {
|
|
734
734
|
return nn.call(e, t);
|
|
735
735
|
}
|
|
736
|
-
var
|
|
736
|
+
var on = function() {
|
|
737
737
|
function e(t) {
|
|
738
738
|
this.partialObserver = t;
|
|
739
739
|
}
|
|
@@ -764,40 +764,40 @@ var sn = function() {
|
|
|
764
764
|
pe(r);
|
|
765
765
|
}
|
|
766
766
|
}, e;
|
|
767
|
-
}(),
|
|
768
|
-
|
|
767
|
+
}(), Ve = function(e) {
|
|
768
|
+
D(t, e);
|
|
769
769
|
function t(r, n, i) {
|
|
770
|
-
var
|
|
771
|
-
if (
|
|
772
|
-
|
|
770
|
+
var o = e.call(this) || this, s;
|
|
771
|
+
if (k(r) || !r)
|
|
772
|
+
s = {
|
|
773
773
|
next: r != null ? r : void 0,
|
|
774
774
|
error: n != null ? n : void 0,
|
|
775
775
|
complete: i != null ? i : void 0
|
|
776
776
|
};
|
|
777
777
|
else {
|
|
778
778
|
var a;
|
|
779
|
-
|
|
780
|
-
return
|
|
781
|
-
},
|
|
782
|
-
next: r.next &&
|
|
783
|
-
error: r.error &&
|
|
784
|
-
complete: r.complete &&
|
|
785
|
-
}) :
|
|
779
|
+
o && Vt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
780
|
+
return o.unsubscribe();
|
|
781
|
+
}, s = {
|
|
782
|
+
next: r.next && Re(r.next, a),
|
|
783
|
+
error: r.error && Re(r.error, a),
|
|
784
|
+
complete: r.complete && Re(r.complete, a)
|
|
785
|
+
}) : s = r;
|
|
786
786
|
}
|
|
787
|
-
return
|
|
787
|
+
return o.destination = new on(s), o;
|
|
788
788
|
}
|
|
789
789
|
return t;
|
|
790
|
-
}(
|
|
790
|
+
}(zt);
|
|
791
791
|
function pe(e) {
|
|
792
792
|
rn(e);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function sn(e) {
|
|
795
795
|
throw e;
|
|
796
796
|
}
|
|
797
797
|
var an = {
|
|
798
798
|
closed: !0,
|
|
799
799
|
next: ft,
|
|
800
|
-
error:
|
|
800
|
+
error: sn,
|
|
801
801
|
complete: ft
|
|
802
802
|
}, un = function() {
|
|
803
803
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
@@ -820,11 +820,11 @@ var pt = function() {
|
|
|
820
820
|
var r = new e();
|
|
821
821
|
return r.source = this, r.operator = t, r;
|
|
822
822
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
823
|
-
var i = this,
|
|
824
|
-
return
|
|
825
|
-
var
|
|
826
|
-
|
|
827
|
-
}),
|
|
823
|
+
var i = this, o = fn(t) ? t : new Ve(t, r, n);
|
|
824
|
+
return be(function() {
|
|
825
|
+
var s = i, a = s.operator, l = s.source;
|
|
826
|
+
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
827
|
+
}), o;
|
|
828
828
|
}, e.prototype._trySubscribe = function(t) {
|
|
829
829
|
try {
|
|
830
830
|
return this._subscribe(t);
|
|
@@ -833,19 +833,19 @@ var pt = function() {
|
|
|
833
833
|
}
|
|
834
834
|
}, e.prototype.forEach = function(t, r) {
|
|
835
835
|
var n = this;
|
|
836
|
-
return r = dt(r), new r(function(i,
|
|
837
|
-
var
|
|
836
|
+
return r = dt(r), new r(function(i, o) {
|
|
837
|
+
var s = new Ve({
|
|
838
838
|
next: function(a) {
|
|
839
839
|
try {
|
|
840
840
|
t(a);
|
|
841
841
|
} catch (l) {
|
|
842
|
-
|
|
842
|
+
o(l), s.unsubscribe();
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
|
-
error:
|
|
845
|
+
error: o,
|
|
846
846
|
complete: i
|
|
847
847
|
});
|
|
848
|
-
n.subscribe(
|
|
848
|
+
n.subscribe(s);
|
|
849
849
|
});
|
|
850
850
|
}, e.prototype._subscribe = function(t) {
|
|
851
851
|
var r;
|
|
@@ -859,13 +859,13 @@ var pt = function() {
|
|
|
859
859
|
}, e.prototype.toPromise = function(t) {
|
|
860
860
|
var r = this;
|
|
861
861
|
return t = dt(t), new t(function(n, i) {
|
|
862
|
-
var
|
|
863
|
-
r.subscribe(function(
|
|
864
|
-
return
|
|
865
|
-
}, function(
|
|
866
|
-
return i(
|
|
862
|
+
var o;
|
|
863
|
+
r.subscribe(function(s) {
|
|
864
|
+
return o = s;
|
|
865
|
+
}, function(s) {
|
|
866
|
+
return i(s);
|
|
867
867
|
}, function() {
|
|
868
|
-
return n(
|
|
868
|
+
return n(o);
|
|
869
869
|
});
|
|
870
870
|
});
|
|
871
871
|
}, e.create = function(t) {
|
|
@@ -874,20 +874,20 @@ var pt = function() {
|
|
|
874
874
|
}();
|
|
875
875
|
function dt(e) {
|
|
876
876
|
var t;
|
|
877
|
-
return (t = e != null ? e :
|
|
877
|
+
return (t = e != null ? e : Vt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
878
878
|
}
|
|
879
879
|
function cn(e) {
|
|
880
|
-
return e &&
|
|
880
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
881
881
|
}
|
|
882
882
|
function fn(e) {
|
|
883
|
-
return e && e instanceof
|
|
883
|
+
return e && e instanceof zt || cn(e) && jt(e);
|
|
884
884
|
}
|
|
885
|
-
var pn =
|
|
885
|
+
var pn = Ft(function(e) {
|
|
886
886
|
return function() {
|
|
887
887
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
888
888
|
};
|
|
889
|
-
}),
|
|
890
|
-
|
|
889
|
+
}), Wt = function(e) {
|
|
890
|
+
D(t, e);
|
|
891
891
|
function t() {
|
|
892
892
|
var r = e.call(this) || this;
|
|
893
893
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -900,12 +900,12 @@ var pn = Dt(function(e) {
|
|
|
900
900
|
throw new pn();
|
|
901
901
|
}, t.prototype.next = function(r) {
|
|
902
902
|
var n = this;
|
|
903
|
-
|
|
904
|
-
var i,
|
|
903
|
+
be(function() {
|
|
904
|
+
var i, o;
|
|
905
905
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
906
906
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
907
907
|
try {
|
|
908
|
-
for (var
|
|
908
|
+
for (var s = Fe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
909
909
|
var l = a.value;
|
|
910
910
|
l.next(r);
|
|
911
911
|
}
|
|
@@ -913,7 +913,7 @@ var pn = Dt(function(e) {
|
|
|
913
913
|
i = { error: u };
|
|
914
914
|
} finally {
|
|
915
915
|
try {
|
|
916
|
-
a && !a.done && (
|
|
916
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
917
917
|
} finally {
|
|
918
918
|
if (i) throw i.error;
|
|
919
919
|
}
|
|
@@ -922,7 +922,7 @@ var pn = Dt(function(e) {
|
|
|
922
922
|
});
|
|
923
923
|
}, t.prototype.error = function(r) {
|
|
924
924
|
var n = this;
|
|
925
|
-
|
|
925
|
+
be(function() {
|
|
926
926
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
927
927
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
928
928
|
for (var i = n.observers; i.length; )
|
|
@@ -931,7 +931,7 @@ var pn = Dt(function(e) {
|
|
|
931
931
|
});
|
|
932
932
|
}, t.prototype.complete = function() {
|
|
933
933
|
var r = this;
|
|
934
|
-
|
|
934
|
+
be(function() {
|
|
935
935
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
936
936
|
r.isStopped = !0;
|
|
937
937
|
for (var n = r.observers; n.length; )
|
|
@@ -952,13 +952,13 @@ var pn = Dt(function(e) {
|
|
|
952
952
|
}, t.prototype._subscribe = function(r) {
|
|
953
953
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
954
954
|
}, t.prototype._innerSubscribe = function(r) {
|
|
955
|
-
var n = this, i = this,
|
|
956
|
-
return
|
|
957
|
-
n.currentObservers = null,
|
|
955
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
956
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new Ee(function() {
|
|
957
|
+
n.currentObservers = null, je(a, r);
|
|
958
958
|
}));
|
|
959
959
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
960
|
-
var n = this, i = n.hasError,
|
|
961
|
-
i ? r.error(
|
|
960
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
961
|
+
i ? r.error(o) : s && r.complete();
|
|
962
962
|
}, t.prototype.asObservable = function() {
|
|
963
963
|
var r = new pt();
|
|
964
964
|
return r.source = this, r;
|
|
@@ -966,7 +966,7 @@ var pn = Dt(function(e) {
|
|
|
966
966
|
return new mt(r, n);
|
|
967
967
|
}, t;
|
|
968
968
|
}(pt), mt = function(e) {
|
|
969
|
-
|
|
969
|
+
D(t, e);
|
|
970
970
|
function t(r, n) {
|
|
971
971
|
var i = e.call(this) || this;
|
|
972
972
|
return i.destination = r, i.source = n, i;
|
|
@@ -982,54 +982,54 @@ var pn = Dt(function(e) {
|
|
|
982
982
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
983
983
|
}, t.prototype._subscribe = function(r) {
|
|
984
984
|
var n, i;
|
|
985
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
985
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
986
986
|
}, t;
|
|
987
|
-
}(
|
|
987
|
+
}(Wt), qt = {
|
|
988
988
|
now: function() {
|
|
989
|
-
return (
|
|
989
|
+
return (qt.delegate || Date).now();
|
|
990
990
|
},
|
|
991
991
|
delegate: void 0
|
|
992
992
|
}, dn = function(e) {
|
|
993
|
-
|
|
993
|
+
D(t, e);
|
|
994
994
|
function t(r, n, i) {
|
|
995
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
996
|
-
var
|
|
997
|
-
return
|
|
995
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = qt);
|
|
996
|
+
var o = e.call(this) || this;
|
|
997
|
+
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
998
|
}
|
|
999
999
|
return t.prototype.next = function(r) {
|
|
1000
|
-
var n = this, i = n.isStopped,
|
|
1001
|
-
i || (
|
|
1000
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1001
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1002
1002
|
}, t.prototype._subscribe = function(r) {
|
|
1003
1003
|
this._throwIfClosed(), this._trimBuffer();
|
|
1004
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
1004
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
1005
1005
|
r.next(a[l]);
|
|
1006
1006
|
return this._checkFinalizedStatuses(r), n;
|
|
1007
1007
|
}, t.prototype._trimBuffer = function() {
|
|
1008
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
1009
|
-
if (n < 1 / 0 && a <
|
|
1010
|
-
for (var l = i.now(), u = 0, h = 1; h <
|
|
1008
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1009
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1010
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1011
1011
|
u = h;
|
|
1012
|
-
u &&
|
|
1012
|
+
u && o.splice(0, u + 1);
|
|
1013
1013
|
}
|
|
1014
1014
|
}, t;
|
|
1015
|
-
}(
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1015
|
+
}(Wt);
|
|
1016
|
+
const bt = [], yt = {}, mn = (e, t = 0) => {
|
|
1017
|
+
if (bt.indexOf(e) == -1) {
|
|
1018
1018
|
const r = new dn(t);
|
|
1019
|
-
|
|
1019
|
+
yt[e] = r, bt.push(e);
|
|
1020
1020
|
}
|
|
1021
|
-
return
|
|
1021
|
+
return yt[e];
|
|
1022
1022
|
}, Z = [];
|
|
1023
|
-
function
|
|
1023
|
+
function bn(e, t) {
|
|
1024
1024
|
return {
|
|
1025
1025
|
subscribe: Se(e, t).subscribe
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
|
-
function Se(e, t =
|
|
1028
|
+
function Se(e, t = M) {
|
|
1029
1029
|
let r;
|
|
1030
1030
|
const n = /* @__PURE__ */ new Set();
|
|
1031
1031
|
function i(a) {
|
|
1032
|
-
if (
|
|
1032
|
+
if (kt(e, a) && (e = a, r)) {
|
|
1033
1033
|
const l = !Z.length;
|
|
1034
1034
|
for (const u of n)
|
|
1035
1035
|
u[1](), Z.push(u, e);
|
|
@@ -1040,40 +1040,40 @@ function Se(e, t = R) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function o(a) {
|
|
1044
1044
|
i(a(e));
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function s(a, l = M) {
|
|
1047
1047
|
const u = [a, l];
|
|
1048
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
1048
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || M), a(e), () => {
|
|
1049
1049
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
return { set: i, update:
|
|
1052
|
+
return { set: i, update: o, subscribe: s };
|
|
1053
1053
|
}
|
|
1054
1054
|
function ie(e, t, r) {
|
|
1055
1055
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1056
1056
|
if (!i.every(Boolean))
|
|
1057
1057
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1058
|
+
const o = t.length < 2;
|
|
1059
|
+
return bn(r, (s, a) => {
|
|
1060
1060
|
let l = !1;
|
|
1061
1061
|
const u = [];
|
|
1062
|
-
let h = 0, c =
|
|
1062
|
+
let h = 0, c = M;
|
|
1063
1063
|
const f = () => {
|
|
1064
1064
|
if (h)
|
|
1065
1065
|
return;
|
|
1066
1066
|
c();
|
|
1067
|
-
const d = t(n ? u[0] : u,
|
|
1068
|
-
|
|
1067
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1068
|
+
o ? s(d) : c = Ke(d) ? d : M;
|
|
1069
1069
|
}, p = i.map(
|
|
1070
|
-
(d,
|
|
1070
|
+
(d, b) => Ut(
|
|
1071
1071
|
d,
|
|
1072
|
-
(
|
|
1073
|
-
u[
|
|
1072
|
+
(y) => {
|
|
1073
|
+
u[b] = y, h &= ~(1 << b), l && f();
|
|
1074
1074
|
},
|
|
1075
1075
|
() => {
|
|
1076
|
-
h |= 1 <<
|
|
1076
|
+
h |= 1 << b;
|
|
1077
1077
|
}
|
|
1078
1078
|
)
|
|
1079
1079
|
);
|
|
@@ -1082,20 +1082,20 @@ function ie(e, t, r) {
|
|
|
1082
1082
|
};
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function yn(e) {
|
|
1086
1086
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1087
1087
|
}
|
|
1088
|
-
var
|
|
1089
|
-
return
|
|
1088
|
+
var gn = function(t) {
|
|
1089
|
+
return vn(t) && !xn(t);
|
|
1090
1090
|
};
|
|
1091
|
-
function
|
|
1091
|
+
function vn(e) {
|
|
1092
1092
|
return !!e && typeof e == "object";
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function xn(e) {
|
|
1095
1095
|
var t = Object.prototype.toString.call(e);
|
|
1096
1096
|
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
|
1097
1097
|
}
|
|
1098
|
-
var
|
|
1098
|
+
var _n = typeof Symbol == "function" && Symbol.for, En = _n ? Symbol.for("react.element") : 60103;
|
|
1099
1099
|
function Sn(e) {
|
|
1100
1100
|
return e.$$typeof === En;
|
|
1101
1101
|
}
|
|
@@ -1121,7 +1121,7 @@ function Cn(e) {
|
|
|
1121
1121
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1122
1122
|
}) : [];
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function gt(e) {
|
|
1125
1125
|
return Object.keys(e).concat(Cn(e));
|
|
1126
1126
|
}
|
|
1127
1127
|
function Zt(e, t) {
|
|
@@ -1134,18 +1134,18 @@ function Zt(e, t) {
|
|
|
1134
1134
|
function Bn(e, t) {
|
|
1135
1135
|
return Zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Pn(e, t, r) {
|
|
1138
1138
|
var n = {};
|
|
1139
|
-
return r.isMergeableObject(e) &&
|
|
1139
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1140
1140
|
n[i] = he(e[i], r);
|
|
1141
|
-
}),
|
|
1141
|
+
}), gt(t).forEach(function(i) {
|
|
1142
1142
|
Bn(e, i) || (Zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
1143
1143
|
}), n;
|
|
1144
1144
|
}
|
|
1145
1145
|
function K(e, t, r) {
|
|
1146
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject ||
|
|
1147
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1148
|
-
return
|
|
1146
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified = he;
|
|
1147
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1148
|
+
return o ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : he(t, r);
|
|
1149
1149
|
}
|
|
1150
1150
|
K.all = function(t, r) {
|
|
1151
1151
|
if (!Array.isArray(t))
|
|
@@ -1154,57 +1154,57 @@ K.all = function(t, r) {
|
|
|
1154
1154
|
return K(n, i, r);
|
|
1155
1155
|
}, {});
|
|
1156
1156
|
};
|
|
1157
|
-
var
|
|
1158
|
-
const
|
|
1159
|
-
var
|
|
1157
|
+
var An = K, Rn = An;
|
|
1158
|
+
const On = /* @__PURE__ */ yn(Rn);
|
|
1159
|
+
var v;
|
|
1160
1160
|
(function(e) {
|
|
1161
1161
|
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";
|
|
1162
|
-
})(
|
|
1163
|
-
var
|
|
1162
|
+
})(v || (v = {}));
|
|
1163
|
+
var w;
|
|
1164
1164
|
(function(e) {
|
|
1165
1165
|
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";
|
|
1166
|
-
})(
|
|
1166
|
+
})(w || (w = {}));
|
|
1167
1167
|
var ee;
|
|
1168
1168
|
(function(e) {
|
|
1169
1169
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1170
1170
|
})(ee || (ee = {}));
|
|
1171
|
-
function
|
|
1172
|
-
return e.type ===
|
|
1171
|
+
function vt(e) {
|
|
1172
|
+
return e.type === w.literal;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return e.type ===
|
|
1174
|
+
function Mn(e) {
|
|
1175
|
+
return e.type === w.argument;
|
|
1176
1176
|
}
|
|
1177
1177
|
function Qt(e) {
|
|
1178
|
-
return e.type ===
|
|
1178
|
+
return e.type === w.number;
|
|
1179
1179
|
}
|
|
1180
1180
|
function Jt(e) {
|
|
1181
|
-
return e.type ===
|
|
1181
|
+
return e.type === w.date;
|
|
1182
1182
|
}
|
|
1183
1183
|
function Yt(e) {
|
|
1184
|
-
return e.type ===
|
|
1184
|
+
return e.type === w.time;
|
|
1185
1185
|
}
|
|
1186
1186
|
function Kt(e) {
|
|
1187
|
-
return e.type ===
|
|
1187
|
+
return e.type === w.select;
|
|
1188
1188
|
}
|
|
1189
1189
|
function er(e) {
|
|
1190
|
-
return e.type ===
|
|
1190
|
+
return e.type === w.plural;
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e.type ===
|
|
1192
|
+
function In(e) {
|
|
1193
|
+
return e.type === w.pound;
|
|
1194
1194
|
}
|
|
1195
1195
|
function tr(e) {
|
|
1196
|
-
return e.type ===
|
|
1196
|
+
return e.type === w.tag;
|
|
1197
1197
|
}
|
|
1198
1198
|
function rr(e) {
|
|
1199
1199
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Xe(e) {
|
|
1202
1202
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1203
1203
|
}
|
|
1204
|
-
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1205
|
-
function
|
|
1204
|
+
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ln = /(?:[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;
|
|
1205
|
+
function Nn(e) {
|
|
1206
1206
|
var t = {};
|
|
1207
|
-
return e.replace(
|
|
1207
|
+
return e.replace(Ln, function(r) {
|
|
1208
1208
|
var n = r.length;
|
|
1209
1209
|
switch (r[0]) {
|
|
1210
1210
|
case "G":
|
|
@@ -1293,17 +1293,17 @@ function Ln(e) {
|
|
|
1293
1293
|
return "";
|
|
1294
1294
|
}), t;
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1296
|
+
var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1297
|
+
function kn(e) {
|
|
1298
1298
|
if (e.length === 0)
|
|
1299
1299
|
throw new Error("Number skeleton cannot be empty");
|
|
1300
|
-
for (var t = e.split(
|
|
1300
|
+
for (var t = e.split($n).filter(function(f) {
|
|
1301
1301
|
return f.length > 0;
|
|
1302
1302
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1303
|
-
var
|
|
1304
|
-
if (
|
|
1303
|
+
var o = i[n], s = o.split("/");
|
|
1304
|
+
if (s.length === 0)
|
|
1305
1305
|
throw new Error("Invalid number skeleton");
|
|
1306
|
-
for (var a =
|
|
1306
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1307
1307
|
var c = h[u];
|
|
1308
1308
|
if (c.length === 0)
|
|
1309
1309
|
throw new Error("Invalid number skeleton");
|
|
@@ -1312,17 +1312,17 @@ function jn(e) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
return r;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Un(e) {
|
|
1316
1316
|
return e.replace(/^(.*?)-/, "");
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1318
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Dn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
|
1319
|
+
function _t(e) {
|
|
1320
1320
|
var t = {};
|
|
1321
1321
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
|
|
1322
1322
|
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)), "";
|
|
1323
1323
|
}), t;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function sr(e) {
|
|
1326
1326
|
switch (e) {
|
|
1327
1327
|
case "sign-auto":
|
|
1328
1328
|
return {
|
|
@@ -1362,7 +1362,7 @@ function or(e) {
|
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Fn(e) {
|
|
1366
1366
|
var t;
|
|
1367
1367
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1368
1368
|
notation: "engineering"
|
|
@@ -1370,17 +1370,17 @@ function Dn(e) {
|
|
|
1370
1370
|
notation: "scientific"
|
|
1371
1371
|
}, e = e.slice(1)), t) {
|
|
1372
1372
|
var r = e.slice(0, 2);
|
|
1373
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1373
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
|
|
1374
1374
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1375
1375
|
t.minimumIntegerDigits = e.length;
|
|
1376
1376
|
}
|
|
1377
1377
|
return t;
|
|
1378
1378
|
}
|
|
1379
1379
|
function Et(e) {
|
|
1380
|
-
var t = {}, r =
|
|
1380
|
+
var t = {}, r = sr(e);
|
|
1381
1381
|
return r || t;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Gn(e) {
|
|
1384
1384
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1385
1385
|
var i = n[r];
|
|
1386
1386
|
switch (i.stem) {
|
|
@@ -1404,7 +1404,7 @@ function Fn(e) {
|
|
|
1404
1404
|
continue;
|
|
1405
1405
|
case "measure-unit":
|
|
1406
1406
|
case "unit":
|
|
1407
|
-
t.style = "unit", t.unit =
|
|
1407
|
+
t.style = "unit", t.unit = Un(i.options[0]);
|
|
1408
1408
|
continue;
|
|
1409
1409
|
case "compact-short":
|
|
1410
1410
|
case "K":
|
|
@@ -1466,7 +1466,7 @@ function Fn(e) {
|
|
|
1466
1466
|
case "integer-width":
|
|
1467
1467
|
if (i.options.length > 1)
|
|
1468
1468
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1469
|
-
i.options[0].replace(
|
|
1469
|
+
i.options[0].replace(Dn, function(l, u, h, c, f, p) {
|
|
1470
1470
|
if (u)
|
|
1471
1471
|
t.minimumIntegerDigits = h.length;
|
|
1472
1472
|
else {
|
|
@@ -1479,27 +1479,27 @@ function Fn(e) {
|
|
|
1479
1479
|
});
|
|
1480
1480
|
continue;
|
|
1481
1481
|
}
|
|
1482
|
-
if (
|
|
1482
|
+
if (or.test(i.stem)) {
|
|
1483
1483
|
t.minimumIntegerDigits = i.stem.length;
|
|
1484
1484
|
continue;
|
|
1485
1485
|
}
|
|
1486
|
-
if (
|
|
1486
|
+
if (xt.test(i.stem)) {
|
|
1487
1487
|
if (i.options.length > 1)
|
|
1488
1488
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1489
|
-
i.stem.replace(
|
|
1489
|
+
i.stem.replace(xt, function(l, u, h, c, f, p) {
|
|
1490
1490
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1491
1491
|
});
|
|
1492
|
-
var
|
|
1493
|
-
|
|
1492
|
+
var o = i.options[0];
|
|
1493
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), _t(o)));
|
|
1494
1494
|
continue;
|
|
1495
1495
|
}
|
|
1496
1496
|
if (ir.test(i.stem)) {
|
|
1497
|
-
t = E(E({}, t),
|
|
1497
|
+
t = E(E({}, t), _t(i.stem));
|
|
1498
1498
|
continue;
|
|
1499
1499
|
}
|
|
1500
|
-
var
|
|
1501
|
-
|
|
1502
|
-
var a =
|
|
1500
|
+
var s = sr(i.stem);
|
|
1501
|
+
s && (t = E(E({}, t), s));
|
|
1502
|
+
var a = Fn(i.stem);
|
|
1503
1503
|
a && (t = E(E({}, t), a));
|
|
1504
1504
|
}
|
|
1505
1505
|
return t;
|
|
@@ -2913,22 +2913,22 @@ var de = {
|
|
|
2913
2913
|
"h"
|
|
2914
2914
|
]
|
|
2915
2915
|
};
|
|
2916
|
-
function
|
|
2916
|
+
function jn(e, t) {
|
|
2917
2917
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2918
2918
|
var i = e.charAt(n);
|
|
2919
2919
|
if (i === "j") {
|
|
2920
|
-
for (var
|
|
2921
|
-
|
|
2922
|
-
var
|
|
2920
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2921
|
+
o++, n++;
|
|
2922
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Vn(t);
|
|
2923
2923
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2924
2924
|
r += l;
|
|
2925
|
-
for (;
|
|
2925
|
+
for (; s-- > 0; )
|
|
2926
2926
|
r = u + r;
|
|
2927
2927
|
} else i === "J" ? r += "H" : r += i;
|
|
2928
2928
|
}
|
|
2929
2929
|
return r;
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Vn(e) {
|
|
2932
2932
|
var t = e.hourCycle;
|
|
2933
2933
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2934
2934
|
e.hourCycles && // @ts-ignore
|
|
@@ -2950,20 +2950,20 @@ function zn(e) {
|
|
|
2950
2950
|
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
|
2951
2951
|
return i[0];
|
|
2952
2952
|
}
|
|
2953
|
-
var
|
|
2954
|
-
function
|
|
2953
|
+
var Oe, Xn = new RegExp("^".concat(nr.source, "*")), zn = new RegExp("".concat(nr.source, "*$"));
|
|
2954
|
+
function x(e, t) {
|
|
2955
2955
|
return { start: e, end: t };
|
|
2956
2956
|
}
|
|
2957
|
-
var
|
|
2957
|
+
var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), qn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, Kn = !!Number.isSafeInteger, ei = Kn ? Number.isSafeInteger : function(e) {
|
|
2958
2958
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2959
|
-
},
|
|
2959
|
+
}, ze = !0;
|
|
2960
2960
|
try {
|
|
2961
2961
|
var ti = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2962
|
-
|
|
2962
|
+
ze = ((Oe = ti.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2963
2963
|
} catch (e) {
|
|
2964
|
-
|
|
2964
|
+
ze = !1;
|
|
2965
2965
|
}
|
|
2966
|
-
var St =
|
|
2966
|
+
var St = Wn ? (
|
|
2967
2967
|
// Native
|
|
2968
2968
|
function(t, r, n) {
|
|
2969
2969
|
return t.startsWith(r, n);
|
|
@@ -2973,15 +2973,15 @@ var St = qn ? (
|
|
|
2973
2973
|
function(t, r, n) {
|
|
2974
2974
|
return t.slice(n, n + r.length) === r;
|
|
2975
2975
|
}
|
|
2976
|
-
),
|
|
2976
|
+
), We = qn ? String.fromCodePoint : (
|
|
2977
2977
|
// IE11
|
|
2978
2978
|
function() {
|
|
2979
2979
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2980
2980
|
t[r] = arguments[r];
|
|
2981
|
-
for (var n = "", i = t.length,
|
|
2982
|
-
if (
|
|
2983
|
-
throw RangeError(
|
|
2984
|
-
n +=
|
|
2981
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2982
|
+
if (s = t[o++], s > 1114111)
|
|
2983
|
+
throw RangeError(s + " is not a valid code point");
|
|
2984
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2985
2985
|
}
|
|
2986
2986
|
return n;
|
|
2987
2987
|
}
|
|
@@ -2991,8 +2991,8 @@ var St = qn ? (
|
|
|
2991
2991
|
// Ponyfill
|
|
2992
2992
|
function(t) {
|
|
2993
2993
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2994
|
-
var
|
|
2995
|
-
r[
|
|
2994
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2995
|
+
r[s] = a;
|
|
2996
2996
|
}
|
|
2997
2997
|
return r;
|
|
2998
2998
|
}
|
|
@@ -3007,8 +3007,8 @@ var St = qn ? (
|
|
|
3007
3007
|
function(t, r) {
|
|
3008
3008
|
var n = t.length;
|
|
3009
3009
|
if (!(r < 0 || r >= n)) {
|
|
3010
|
-
var i = t.charCodeAt(r),
|
|
3011
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
3010
|
+
var i = t.charCodeAt(r), o;
|
|
3011
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
3014
|
), ri = Jn ? (
|
|
@@ -3019,7 +3019,7 @@ var St = qn ? (
|
|
|
3019
3019
|
) : (
|
|
3020
3020
|
// Ponyfill
|
|
3021
3021
|
function(t) {
|
|
3022
|
-
return t.replace(
|
|
3022
|
+
return t.replace(Xn, "");
|
|
3023
3023
|
}
|
|
3024
3024
|
), ni = Yn ? (
|
|
3025
3025
|
// Native
|
|
@@ -3029,30 +3029,30 @@ var St = qn ? (
|
|
|
3029
3029
|
) : (
|
|
3030
3030
|
// Ponyfill
|
|
3031
3031
|
function(t) {
|
|
3032
|
-
return t.replace(
|
|
3032
|
+
return t.replace(zn, "");
|
|
3033
3033
|
}
|
|
3034
3034
|
);
|
|
3035
3035
|
function ur(e, t) {
|
|
3036
3036
|
return new RegExp(e, t);
|
|
3037
3037
|
}
|
|
3038
|
-
var
|
|
3039
|
-
if (
|
|
3038
|
+
var qe;
|
|
3039
|
+
if (ze) {
|
|
3040
3040
|
var wt = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3041
|
-
|
|
3041
|
+
qe = function(t, r) {
|
|
3042
3042
|
var n;
|
|
3043
3043
|
wt.lastIndex = r;
|
|
3044
3044
|
var i = wt.exec(t);
|
|
3045
3045
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3046
3046
|
};
|
|
3047
3047
|
} else
|
|
3048
|
-
|
|
3048
|
+
qe = function(t, r) {
|
|
3049
3049
|
for (var n = []; ; ) {
|
|
3050
3050
|
var i = ar(t, r);
|
|
3051
3051
|
if (i === void 0 || lr(i) || ai(i))
|
|
3052
3052
|
break;
|
|
3053
3053
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3054
3054
|
}
|
|
3055
|
-
return
|
|
3055
|
+
return We.apply(void 0, n);
|
|
3056
3056
|
};
|
|
3057
3057
|
var ii = (
|
|
3058
3058
|
/** @class */
|
|
@@ -3066,35 +3066,35 @@ var ii = (
|
|
|
3066
3066
|
return this.parseMessage(0, "", !1);
|
|
3067
3067
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3068
3068
|
for (var i = []; !this.isEOF(); ) {
|
|
3069
|
-
var
|
|
3070
|
-
if (
|
|
3071
|
-
var
|
|
3072
|
-
if (
|
|
3073
|
-
return
|
|
3074
|
-
i.push(
|
|
3069
|
+
var o = this.char();
|
|
3070
|
+
if (o === 123) {
|
|
3071
|
+
var s = this.parseArgument(t, n);
|
|
3072
|
+
if (s.err)
|
|
3073
|
+
return s;
|
|
3074
|
+
i.push(s.val);
|
|
3075
3075
|
} else {
|
|
3076
|
-
if (
|
|
3076
|
+
if (o === 125 && t > 0)
|
|
3077
3077
|
break;
|
|
3078
|
-
if (
|
|
3078
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3079
3079
|
var a = this.clonePosition();
|
|
3080
3080
|
this.bump(), i.push({
|
|
3081
|
-
type:
|
|
3082
|
-
location:
|
|
3081
|
+
type: w.pound,
|
|
3082
|
+
location: x(a, this.clonePosition())
|
|
3083
3083
|
});
|
|
3084
|
-
} else if (
|
|
3084
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3085
3085
|
if (n)
|
|
3086
3086
|
break;
|
|
3087
|
-
return this.error(
|
|
3088
|
-
} else if (
|
|
3089
|
-
var
|
|
3090
|
-
if (
|
|
3091
|
-
return
|
|
3092
|
-
i.push(
|
|
3087
|
+
return this.error(v.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3088
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3089
|
+
var s = this.parseTag(t, r);
|
|
3090
|
+
if (s.err)
|
|
3091
|
+
return s;
|
|
3092
|
+
i.push(s.val);
|
|
3093
3093
|
} else {
|
|
3094
|
-
var
|
|
3095
|
-
if (
|
|
3096
|
-
return
|
|
3097
|
-
i.push(
|
|
3094
|
+
var s = this.parseLiteral(t, r);
|
|
3095
|
+
if (s.err)
|
|
3096
|
+
return s;
|
|
3097
|
+
i.push(s.val);
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
@@ -3106,51 +3106,51 @@ var ii = (
|
|
|
3106
3106
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3107
3107
|
return {
|
|
3108
3108
|
val: {
|
|
3109
|
-
type:
|
|
3109
|
+
type: w.literal,
|
|
3110
3110
|
value: "<".concat(i, "/>"),
|
|
3111
|
-
location:
|
|
3111
|
+
location: x(n, this.clonePosition())
|
|
3112
3112
|
},
|
|
3113
3113
|
err: null
|
|
3114
3114
|
};
|
|
3115
3115
|
if (this.bumpIf(">")) {
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3119
|
-
var
|
|
3116
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3117
|
+
if (o.err)
|
|
3118
|
+
return o;
|
|
3119
|
+
var s = o.val, a = this.clonePosition();
|
|
3120
3120
|
if (this.bumpIf("</")) {
|
|
3121
3121
|
if (this.isEOF() || !Ze(this.char()))
|
|
3122
|
-
return this.error(
|
|
3122
|
+
return this.error(v.INVALID_TAG, x(a, this.clonePosition()));
|
|
3123
3123
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3124
|
-
return i !== u ? this.error(
|
|
3124
|
+
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3125
3125
|
val: {
|
|
3126
|
-
type:
|
|
3126
|
+
type: w.tag,
|
|
3127
3127
|
value: i,
|
|
3128
|
-
children:
|
|
3129
|
-
location:
|
|
3128
|
+
children: s,
|
|
3129
|
+
location: x(n, this.clonePosition())
|
|
3130
3130
|
},
|
|
3131
3131
|
err: null
|
|
3132
|
-
} : this.error(
|
|
3132
|
+
} : this.error(v.INVALID_TAG, x(a, this.clonePosition())));
|
|
3133
3133
|
} else
|
|
3134
|
-
return this.error(
|
|
3134
|
+
return this.error(v.UNCLOSED_TAG, x(n, this.clonePosition()));
|
|
3135
3135
|
} else
|
|
3136
|
-
return this.error(
|
|
3136
|
+
return this.error(v.INVALID_TAG, x(n, this.clonePosition()));
|
|
3137
3137
|
}, e.prototype.parseTagName = function() {
|
|
3138
3138
|
var t = this.offset();
|
|
3139
|
-
for (this.bump(); !this.isEOF() &&
|
|
3139
|
+
for (this.bump(); !this.isEOF() && si(this.char()); )
|
|
3140
3140
|
this.bump();
|
|
3141
3141
|
return this.message.slice(t, this.offset());
|
|
3142
3142
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3143
3143
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3144
|
-
var
|
|
3145
|
-
if (s) {
|
|
3146
|
-
i += s;
|
|
3147
|
-
continue;
|
|
3148
|
-
}
|
|
3149
|
-
var o = this.tryParseUnquoted(t, r);
|
|
3144
|
+
var o = this.tryParseQuote(r);
|
|
3150
3145
|
if (o) {
|
|
3151
3146
|
i += o;
|
|
3152
3147
|
continue;
|
|
3153
3148
|
}
|
|
3149
|
+
var s = this.tryParseUnquoted(t, r);
|
|
3150
|
+
if (s) {
|
|
3151
|
+
i += s;
|
|
3152
|
+
continue;
|
|
3153
|
+
}
|
|
3154
3154
|
var a = this.tryParseLeftAngleBracket();
|
|
3155
3155
|
if (a) {
|
|
3156
3156
|
i += a;
|
|
@@ -3158,14 +3158,14 @@ var ii = (
|
|
|
3158
3158
|
}
|
|
3159
3159
|
break;
|
|
3160
3160
|
}
|
|
3161
|
-
var l =
|
|
3161
|
+
var l = x(n, this.clonePosition());
|
|
3162
3162
|
return {
|
|
3163
|
-
val: { type:
|
|
3163
|
+
val: { type: w.literal, value: i, location: l },
|
|
3164
3164
|
err: null
|
|
3165
3165
|
};
|
|
3166
3166
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3167
3167
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3168
|
-
!
|
|
3168
|
+
!oi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3169
3169
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3170
3170
|
if (this.isEOF() || this.char() !== 39)
|
|
3171
3171
|
return null;
|
|
@@ -3199,49 +3199,49 @@ var ii = (
|
|
|
3199
3199
|
r.push(n);
|
|
3200
3200
|
this.bump();
|
|
3201
3201
|
}
|
|
3202
|
-
return
|
|
3202
|
+
return We.apply(void 0, r);
|
|
3203
3203
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3204
3204
|
if (this.isEOF())
|
|
3205
3205
|
return null;
|
|
3206
3206
|
var n = this.char();
|
|
3207
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3207
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3208
3208
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3209
3209
|
var n = this.clonePosition();
|
|
3210
3210
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3211
|
-
return this.error(
|
|
3211
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3212
3212
|
if (this.char() === 125)
|
|
3213
|
-
return this.bump(), this.error(
|
|
3213
|
+
return this.bump(), this.error(v.EMPTY_ARGUMENT, x(n, this.clonePosition()));
|
|
3214
3214
|
var i = this.parseIdentifierIfPossible().value;
|
|
3215
3215
|
if (!i)
|
|
3216
|
-
return this.error(
|
|
3216
|
+
return this.error(v.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3217
3217
|
if (this.bumpSpace(), this.isEOF())
|
|
3218
|
-
return this.error(
|
|
3218
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3219
3219
|
switch (this.char()) {
|
|
3220
3220
|
case 125:
|
|
3221
3221
|
return this.bump(), {
|
|
3222
3222
|
val: {
|
|
3223
|
-
type:
|
|
3223
|
+
type: w.argument,
|
|
3224
3224
|
// value does not include the opening and closing braces.
|
|
3225
3225
|
value: i,
|
|
3226
|
-
location:
|
|
3226
|
+
location: x(n, this.clonePosition())
|
|
3227
3227
|
},
|
|
3228
3228
|
err: null
|
|
3229
3229
|
};
|
|
3230
3230
|
case 44:
|
|
3231
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3231
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3232
3232
|
default:
|
|
3233
|
-
return this.error(
|
|
3233
|
+
return this.error(v.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3234
3234
|
}
|
|
3235
3235
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3236
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3236
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
3237
3237
|
this.bumpTo(i);
|
|
3238
|
-
var
|
|
3239
|
-
return { value: n, location:
|
|
3238
|
+
var o = this.clonePosition(), s = x(t, o);
|
|
3239
|
+
return { value: n, location: s };
|
|
3240
3240
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3241
|
-
var
|
|
3241
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3242
3242
|
switch (a) {
|
|
3243
3243
|
case "":
|
|
3244
|
-
return this.error(
|
|
3244
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, x(s, l));
|
|
3245
3245
|
case "number":
|
|
3246
3246
|
case "date":
|
|
3247
3247
|
case "time": {
|
|
@@ -3254,45 +3254,45 @@ var ii = (
|
|
|
3254
3254
|
return c;
|
|
3255
3255
|
var f = ni(c.val);
|
|
3256
3256
|
if (f.length === 0)
|
|
3257
|
-
return this.error(
|
|
3258
|
-
var p =
|
|
3257
|
+
return this.error(v.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3258
|
+
var p = x(h, this.clonePosition());
|
|
3259
3259
|
u = { style: f, styleLocation: p };
|
|
3260
3260
|
}
|
|
3261
3261
|
var d = this.tryParseArgumentClose(i);
|
|
3262
3262
|
if (d.err)
|
|
3263
3263
|
return d;
|
|
3264
|
-
var
|
|
3264
|
+
var b = x(i, this.clonePosition());
|
|
3265
3265
|
if (u && St(u == null ? void 0 : u.style, "::", 0)) {
|
|
3266
|
-
var
|
|
3266
|
+
var y = ri(u.style.slice(2));
|
|
3267
3267
|
if (a === "number") {
|
|
3268
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3268
|
+
var c = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
3269
3269
|
return c.err ? c : {
|
|
3270
|
-
val: { type:
|
|
3270
|
+
val: { type: w.number, value: n, location: b, style: c.val },
|
|
3271
3271
|
err: null
|
|
3272
3272
|
};
|
|
3273
3273
|
} else {
|
|
3274
|
-
if (
|
|
3275
|
-
return this.error(
|
|
3276
|
-
var S =
|
|
3277
|
-
this.locale && (S =
|
|
3274
|
+
if (y.length === 0)
|
|
3275
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3276
|
+
var S = y;
|
|
3277
|
+
this.locale && (S = jn(y, this.locale));
|
|
3278
3278
|
var f = {
|
|
3279
3279
|
type: ee.dateTime,
|
|
3280
3280
|
pattern: S,
|
|
3281
3281
|
location: u.styleLocation,
|
|
3282
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3283
|
-
},
|
|
3282
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(S) : {}
|
|
3283
|
+
}, _ = a === "date" ? w.date : w.time;
|
|
3284
3284
|
return {
|
|
3285
|
-
val: { type:
|
|
3285
|
+
val: { type: _, value: n, location: b, style: f },
|
|
3286
3286
|
err: null
|
|
3287
3287
|
};
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
3290
3290
|
return {
|
|
3291
3291
|
val: {
|
|
3292
|
-
type: a === "number" ?
|
|
3292
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
|
3293
3293
|
value: n,
|
|
3294
|
-
location:
|
|
3295
|
-
style: (
|
|
3294
|
+
location: b,
|
|
3295
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3296
3296
|
},
|
|
3297
3297
|
err: null
|
|
3298
3298
|
};
|
|
@@ -3302,39 +3302,39 @@ var ii = (
|
|
|
3302
3302
|
case "select": {
|
|
3303
3303
|
var C = this.clonePosition();
|
|
3304
3304
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3305
|
-
return this.error(
|
|
3305
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, x(C, E({}, C)));
|
|
3306
3306
|
this.bumpSpace();
|
|
3307
|
-
var
|
|
3308
|
-
if (a !== "select" &&
|
|
3307
|
+
var j = this.parseIdentifierIfPossible(), N = 0;
|
|
3308
|
+
if (a !== "select" && j.value === "offset") {
|
|
3309
3309
|
if (!this.bumpIf(":"))
|
|
3310
|
-
return this.error(
|
|
3310
|
+
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
3311
3311
|
this.bumpSpace();
|
|
3312
|
-
var c = this.tryParseDecimalInteger(
|
|
3312
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3313
3313
|
if (c.err)
|
|
3314
3314
|
return c;
|
|
3315
|
-
this.bumpSpace(),
|
|
3315
|
+
this.bumpSpace(), j = this.parseIdentifierIfPossible(), N = c.val;
|
|
3316
3316
|
}
|
|
3317
|
-
var
|
|
3318
|
-
if (
|
|
3319
|
-
return
|
|
3317
|
+
var z = this.tryParsePluralOrSelectOptions(t, a, r, j);
|
|
3318
|
+
if (z.err)
|
|
3319
|
+
return z;
|
|
3320
3320
|
var d = this.tryParseArgumentClose(i);
|
|
3321
3321
|
if (d.err)
|
|
3322
3322
|
return d;
|
|
3323
|
-
var ae =
|
|
3323
|
+
var ae = x(i, this.clonePosition());
|
|
3324
3324
|
return a === "select" ? {
|
|
3325
3325
|
val: {
|
|
3326
|
-
type:
|
|
3326
|
+
type: w.select,
|
|
3327
3327
|
value: n,
|
|
3328
|
-
options: Tt(
|
|
3328
|
+
options: Tt(z.val),
|
|
3329
3329
|
location: ae
|
|
3330
3330
|
},
|
|
3331
3331
|
err: null
|
|
3332
3332
|
} : {
|
|
3333
3333
|
val: {
|
|
3334
|
-
type:
|
|
3334
|
+
type: w.plural,
|
|
3335
3335
|
value: n,
|
|
3336
|
-
options: Tt(
|
|
3337
|
-
offset:
|
|
3336
|
+
options: Tt(z.val),
|
|
3337
|
+
offset: N,
|
|
3338
3338
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3339
3339
|
location: ae
|
|
3340
3340
|
},
|
|
@@ -3342,10 +3342,10 @@ var ii = (
|
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
3344
|
default:
|
|
3345
|
-
return this.error(
|
|
3345
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, x(s, l));
|
|
3346
3346
|
}
|
|
3347
3347
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3348
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3348
|
+
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3349
3349
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3350
3350
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3351
3351
|
var n = this.char();
|
|
@@ -3354,7 +3354,7 @@ var ii = (
|
|
|
3354
3354
|
this.bump();
|
|
3355
3355
|
var i = this.clonePosition();
|
|
3356
3356
|
if (!this.bumpUntil("'"))
|
|
3357
|
-
return this.error(
|
|
3357
|
+
return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
|
|
3358
3358
|
this.bump();
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
@@ -3384,64 +3384,64 @@ var ii = (
|
|
|
3384
3384
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3385
3385
|
var n = [];
|
|
3386
3386
|
try {
|
|
3387
|
-
n =
|
|
3387
|
+
n = kn(t);
|
|
3388
3388
|
} catch (i) {
|
|
3389
|
-
return this.error(
|
|
3389
|
+
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3390
3390
|
}
|
|
3391
3391
|
return {
|
|
3392
3392
|
val: {
|
|
3393
3393
|
type: ee.number,
|
|
3394
3394
|
tokens: n,
|
|
3395
3395
|
location: r,
|
|
3396
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3396
|
+
parsedOptions: this.shouldParseSkeletons ? Gn(n) : {}
|
|
3397
3397
|
},
|
|
3398
3398
|
err: null
|
|
3399
3399
|
};
|
|
3400
3400
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3401
|
-
for (var
|
|
3401
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3402
3402
|
if (u.length === 0) {
|
|
3403
3403
|
var c = this.clonePosition();
|
|
3404
3404
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3405
|
-
var f = this.tryParseDecimalInteger(
|
|
3405
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3406
3406
|
if (f.err)
|
|
3407
3407
|
return f;
|
|
3408
|
-
h =
|
|
3408
|
+
h = x(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3409
3409
|
} else
|
|
3410
3410
|
break;
|
|
3411
3411
|
}
|
|
3412
3412
|
if (l.has(u))
|
|
3413
|
-
return this.error(r === "select" ?
|
|
3414
|
-
u === "other" && (
|
|
3413
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3414
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3415
3415
|
var p = this.clonePosition();
|
|
3416
3416
|
if (!this.bumpIf("{"))
|
|
3417
|
-
return this.error(r === "select" ?
|
|
3417
|
+
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
3418
3418
|
var d = this.parseMessage(t + 1, r, n);
|
|
3419
3419
|
if (d.err)
|
|
3420
3420
|
return d;
|
|
3421
|
-
var
|
|
3422
|
-
if (
|
|
3423
|
-
return
|
|
3421
|
+
var b = this.tryParseArgumentClose(p);
|
|
3422
|
+
if (b.err)
|
|
3423
|
+
return b;
|
|
3424
3424
|
a.push([
|
|
3425
3425
|
u,
|
|
3426
3426
|
{
|
|
3427
3427
|
value: d.val,
|
|
3428
|
-
location:
|
|
3428
|
+
location: x(p, this.clonePosition())
|
|
3429
3429
|
}
|
|
3430
|
-
]), l.add(u), this.bumpSpace(),
|
|
3430
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3431
3431
|
}
|
|
3432
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3432
|
+
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3433
3433
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3434
3434
|
var n = 1, i = this.clonePosition();
|
|
3435
3435
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3436
|
-
for (var
|
|
3436
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3437
3437
|
var a = this.char();
|
|
3438
3438
|
if (a >= 48 && a <= 57)
|
|
3439
|
-
|
|
3439
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3440
3440
|
else
|
|
3441
3441
|
break;
|
|
3442
3442
|
}
|
|
3443
|
-
var l =
|
|
3444
|
-
return
|
|
3443
|
+
var l = x(i, this.clonePosition());
|
|
3444
|
+
return o ? (s *= n, ei(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3445
3445
|
}, e.prototype.offset = function() {
|
|
3446
3446
|
return this.position.offset;
|
|
3447
3447
|
}, e.prototype.isEOF = function() {
|
|
@@ -3510,10 +3510,10 @@ var ii = (
|
|
|
3510
3510
|
function Ze(e) {
|
|
3511
3511
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function oi(e) {
|
|
3514
3514
|
return Ze(e) || e === 47;
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function si(e) {
|
|
3517
3517
|
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;
|
|
3518
3518
|
}
|
|
3519
3519
|
function lr(e) {
|
|
@@ -3527,19 +3527,19 @@ function Qe(e) {
|
|
|
3527
3527
|
if (delete t.location, Kt(t) || er(t))
|
|
3528
3528
|
for (var r in t.options)
|
|
3529
3529
|
delete t.options[r].location, Qe(t.options[r].value);
|
|
3530
|
-
else Qt(t) && rr(t.style) || (Jt(t) || Yt(t)) &&
|
|
3530
|
+
else Qt(t) && rr(t.style) || (Jt(t) || Yt(t)) && Xe(t.style) ? delete t.style.location : tr(t) && Qe(t.children);
|
|
3531
3531
|
});
|
|
3532
3532
|
}
|
|
3533
3533
|
function ui(e, t) {
|
|
3534
3534
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3535
3535
|
var r = new ii(e, t).parse();
|
|
3536
3536
|
if (r.err) {
|
|
3537
|
-
var n = SyntaxError(
|
|
3537
|
+
var n = SyntaxError(v[r.err.kind]);
|
|
3538
3538
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3539
3539
|
}
|
|
3540
3540
|
return t != null && t.captureLocation || Qe(r.val), r.val;
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function Me(e, t) {
|
|
3543
3543
|
var r = t && t.cache ? t.cache : di, n = t && t.serializer ? t.serializer : pi, i = t && t.strategy ? t.strategy : hi;
|
|
3544
3544
|
return i(e, {
|
|
3545
3545
|
cache: r,
|
|
@@ -3550,12 +3550,12 @@ function li(e) {
|
|
|
3550
3550
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3551
3551
|
}
|
|
3552
3552
|
function hr(e, t, r, n) {
|
|
3553
|
-
var i = li(n) ? n : r(n),
|
|
3554
|
-
return typeof
|
|
3553
|
+
var i = li(n) ? n : r(n), o = t.get(i);
|
|
3554
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
3555
3555
|
}
|
|
3556
3556
|
function cr(e, t, r) {
|
|
3557
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
3558
|
-
return typeof
|
|
3557
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
3558
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
3559
3559
|
}
|
|
3560
3560
|
function tt(e, t, r, n, i) {
|
|
3561
3561
|
return r.bind(t, e, n, i);
|
|
@@ -3586,7 +3586,7 @@ var di = {
|
|
|
3586
3586
|
create: function() {
|
|
3587
3587
|
return new rt();
|
|
3588
3588
|
}
|
|
3589
|
-
},
|
|
3589
|
+
}, Ie = {
|
|
3590
3590
|
variadic: ci,
|
|
3591
3591
|
monadic: fi
|
|
3592
3592
|
}, te;
|
|
@@ -3596,10 +3596,10 @@ var di = {
|
|
|
3596
3596
|
var Te = (
|
|
3597
3597
|
/** @class */
|
|
3598
3598
|
function(e) {
|
|
3599
|
-
|
|
3599
|
+
D(t, e);
|
|
3600
3600
|
function t(r, n, i) {
|
|
3601
|
-
var
|
|
3602
|
-
return
|
|
3601
|
+
var o = e.call(this, r) || this;
|
|
3602
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3603
3603
|
}
|
|
3604
3604
|
return t.prototype.toString = function() {
|
|
3605
3605
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3608,90 +3608,90 @@ var Te = (
|
|
|
3608
3608
|
), Ht = (
|
|
3609
3609
|
/** @class */
|
|
3610
3610
|
function(e) {
|
|
3611
|
-
|
|
3612
|
-
function t(r, n, i,
|
|
3613
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE,
|
|
3611
|
+
D(t, e);
|
|
3612
|
+
function t(r, n, i, o) {
|
|
3613
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3614
3614
|
}
|
|
3615
3615
|
return t;
|
|
3616
3616
|
}(Te)
|
|
3617
3617
|
), mi = (
|
|
3618
3618
|
/** @class */
|
|
3619
3619
|
function(e) {
|
|
3620
|
-
|
|
3620
|
+
D(t, e);
|
|
3621
3621
|
function t(r, n, i) {
|
|
3622
3622
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3623
3623
|
}
|
|
3624
3624
|
return t;
|
|
3625
3625
|
}(Te)
|
|
3626
|
-
),
|
|
3626
|
+
), bi = (
|
|
3627
3627
|
/** @class */
|
|
3628
3628
|
function(e) {
|
|
3629
|
-
|
|
3629
|
+
D(t, e);
|
|
3630
3630
|
function t(r, n) {
|
|
3631
3631
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3632
3632
|
}
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}(Te)
|
|
3635
|
-
),
|
|
3635
|
+
), A;
|
|
3636
3636
|
(function(e) {
|
|
3637
3637
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3638
|
-
})(
|
|
3639
|
-
function
|
|
3638
|
+
})(A || (A = {}));
|
|
3639
|
+
function yi(e) {
|
|
3640
3640
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3641
3641
|
var n = t[t.length - 1];
|
|
3642
|
-
return !n || n.type !==
|
|
3642
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3643
3643
|
}, []);
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3645
|
+
function gi(e) {
|
|
3646
3646
|
return typeof e == "function";
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3649
|
-
if (e.length === 1 &&
|
|
3648
|
+
function ye(e, t, r, n, i, o, s) {
|
|
3649
|
+
if (e.length === 1 && vt(e[0]))
|
|
3650
3650
|
return [
|
|
3651
3651
|
{
|
|
3652
|
-
type:
|
|
3652
|
+
type: A.literal,
|
|
3653
3653
|
value: e[0].value
|
|
3654
3654
|
}
|
|
3655
3655
|
];
|
|
3656
3656
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3657
3657
|
var h = u[l];
|
|
3658
|
-
if (
|
|
3658
|
+
if (vt(h)) {
|
|
3659
3659
|
a.push({
|
|
3660
|
-
type:
|
|
3660
|
+
type: A.literal,
|
|
3661
3661
|
value: h.value
|
|
3662
3662
|
});
|
|
3663
3663
|
continue;
|
|
3664
3664
|
}
|
|
3665
|
-
if (
|
|
3666
|
-
typeof
|
|
3667
|
-
type:
|
|
3668
|
-
value: r.getNumberFormat(t).format(
|
|
3665
|
+
if (In(h)) {
|
|
3666
|
+
typeof o == "number" && a.push({
|
|
3667
|
+
type: A.literal,
|
|
3668
|
+
value: r.getNumberFormat(t).format(o)
|
|
3669
3669
|
});
|
|
3670
3670
|
continue;
|
|
3671
3671
|
}
|
|
3672
3672
|
var c = h.value;
|
|
3673
3673
|
if (!(i && c in i))
|
|
3674
|
-
throw new
|
|
3674
|
+
throw new bi(c, s);
|
|
3675
3675
|
var f = i[c];
|
|
3676
|
-
if (
|
|
3676
|
+
if (Mn(h)) {
|
|
3677
3677
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3678
|
-
type: typeof f == "string" ?
|
|
3678
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3679
3679
|
value: f
|
|
3680
3680
|
});
|
|
3681
3681
|
continue;
|
|
3682
3682
|
}
|
|
3683
3683
|
if (Jt(h)) {
|
|
3684
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3684
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3685
3685
|
a.push({
|
|
3686
|
-
type:
|
|
3686
|
+
type: A.literal,
|
|
3687
3687
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3688
3688
|
});
|
|
3689
3689
|
continue;
|
|
3690
3690
|
}
|
|
3691
3691
|
if (Yt(h)) {
|
|
3692
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3692
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3693
3693
|
a.push({
|
|
3694
|
-
type:
|
|
3694
|
+
type: A.literal,
|
|
3695
3695
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3696
3696
|
});
|
|
3697
3697
|
continue;
|
|
@@ -3699,30 +3699,30 @@ function be(e, t, r, n, i, s, o) {
|
|
|
3699
3699
|
if (Qt(h)) {
|
|
3700
3700
|
var p = typeof h.style == "string" ? n.number[h.style] : rr(h.style) ? h.style.parsedOptions : void 0;
|
|
3701
3701
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3702
|
-
type:
|
|
3702
|
+
type: A.literal,
|
|
3703
3703
|
value: r.getNumberFormat(t, p).format(f)
|
|
3704
3704
|
});
|
|
3705
3705
|
continue;
|
|
3706
3706
|
}
|
|
3707
3707
|
if (tr(h)) {
|
|
3708
|
-
var d = h.children,
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new mi(
|
|
3711
|
-
var S =
|
|
3712
|
-
return
|
|
3708
|
+
var d = h.children, b = h.value, y = i[b];
|
|
3709
|
+
if (!gi(y))
|
|
3710
|
+
throw new mi(b, "function", s);
|
|
3711
|
+
var S = ye(d, t, r, n, i, o), _ = y(S.map(function(N) {
|
|
3712
|
+
return N.value;
|
|
3713
3713
|
}));
|
|
3714
|
-
Array.isArray(
|
|
3714
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(N) {
|
|
3715
3715
|
return {
|
|
3716
|
-
type: typeof
|
|
3717
|
-
value:
|
|
3716
|
+
type: typeof N == "string" ? A.literal : A.object,
|
|
3717
|
+
value: N
|
|
3718
3718
|
};
|
|
3719
3719
|
}));
|
|
3720
3720
|
}
|
|
3721
3721
|
if (Kt(h)) {
|
|
3722
3722
|
var C = h.options[f] || h.options.other;
|
|
3723
3723
|
if (!C)
|
|
3724
|
-
throw new Ht(h.value, f, Object.keys(h.options),
|
|
3725
|
-
a.push.apply(a,
|
|
3724
|
+
throw new Ht(h.value, f, Object.keys(h.options), s);
|
|
3725
|
+
a.push.apply(a, ye(C.value, t, r, n, i));
|
|
3726
3726
|
continue;
|
|
3727
3727
|
}
|
|
3728
3728
|
if (er(h)) {
|
|
@@ -3731,29 +3731,29 @@ function be(e, t, r, n, i, s, o) {
|
|
|
3731
3731
|
if (!Intl.PluralRules)
|
|
3732
3732
|
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3733
3733
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3734
|
-
`, te.MISSING_INTL_API,
|
|
3735
|
-
var
|
|
3736
|
-
C = h.options[
|
|
3734
|
+
`, te.MISSING_INTL_API, s);
|
|
3735
|
+
var j = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3736
|
+
C = h.options[j] || h.options.other;
|
|
3737
3737
|
}
|
|
3738
3738
|
if (!C)
|
|
3739
|
-
throw new Ht(h.value, f, Object.keys(h.options),
|
|
3740
|
-
a.push.apply(a,
|
|
3739
|
+
throw new Ht(h.value, f, Object.keys(h.options), s);
|
|
3740
|
+
a.push.apply(a, ye(C.value, t, r, n, i, f - (h.offset || 0)));
|
|
3741
3741
|
continue;
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
|
-
return
|
|
3744
|
+
return yi(a);
|
|
3745
3745
|
}
|
|
3746
|
-
function
|
|
3746
|
+
function vi(e, t) {
|
|
3747
3747
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3748
3748
|
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3749
3749
|
}, {})) : e;
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3751
|
+
function xi(e, t) {
|
|
3752
3752
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3753
|
-
return r[n] =
|
|
3753
|
+
return r[n] = vi(e[n], t[n]), r;
|
|
3754
3754
|
}, E({}, e)) : e;
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function Le(e) {
|
|
3757
3757
|
return {
|
|
3758
3758
|
create: function() {
|
|
3759
3759
|
return {
|
|
@@ -3767,35 +3767,35 @@ function Ie(e) {
|
|
|
3767
3767
|
}
|
|
3768
3768
|
};
|
|
3769
3769
|
}
|
|
3770
|
-
function
|
|
3770
|
+
function _i(e) {
|
|
3771
3771
|
return e === void 0 && (e = {
|
|
3772
3772
|
number: {},
|
|
3773
3773
|
dateTime: {},
|
|
3774
3774
|
pluralRules: {}
|
|
3775
3775
|
}), {
|
|
3776
|
-
getNumberFormat:
|
|
3776
|
+
getNumberFormat: Me(function() {
|
|
3777
3777
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3778
3778
|
r[n] = arguments[n];
|
|
3779
3779
|
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3780
3780
|
}, {
|
|
3781
|
-
cache:
|
|
3782
|
-
strategy:
|
|
3781
|
+
cache: Le(e.number),
|
|
3782
|
+
strategy: Ie.variadic
|
|
3783
3783
|
}),
|
|
3784
|
-
getDateTimeFormat:
|
|
3784
|
+
getDateTimeFormat: Me(function() {
|
|
3785
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3786
|
r[n] = arguments[n];
|
|
3787
3787
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3788
3788
|
}, {
|
|
3789
|
-
cache:
|
|
3790
|
-
strategy:
|
|
3789
|
+
cache: Le(e.dateTime),
|
|
3790
|
+
strategy: Ie.variadic
|
|
3791
3791
|
}),
|
|
3792
|
-
getPluralRules:
|
|
3792
|
+
getPluralRules: Me(function() {
|
|
3793
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3794
|
r[n] = arguments[n];
|
|
3795
3795
|
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
|
3796
3796
|
}, {
|
|
3797
|
-
cache:
|
|
3798
|
-
strategy:
|
|
3797
|
+
cache: Le(e.pluralRules),
|
|
3798
|
+
strategy: Ie.variadic
|
|
3799
3799
|
})
|
|
3800
3800
|
};
|
|
3801
3801
|
}
|
|
@@ -3803,40 +3803,40 @@ var Ei = (
|
|
|
3803
3803
|
/** @class */
|
|
3804
3804
|
function() {
|
|
3805
3805
|
function e(t, r, n, i) {
|
|
3806
|
-
var
|
|
3806
|
+
var o = this;
|
|
3807
3807
|
if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
|
|
3808
3808
|
number: {},
|
|
3809
3809
|
dateTime: {},
|
|
3810
3810
|
pluralRules: {}
|
|
3811
3811
|
}, this.format = function(l) {
|
|
3812
|
-
var u =
|
|
3812
|
+
var u = o.formatToParts(l);
|
|
3813
3813
|
if (u.length === 1)
|
|
3814
3814
|
return u[0].value;
|
|
3815
3815
|
var h = u.reduce(function(c, f) {
|
|
3816
|
-
return !c.length || f.type !==
|
|
3816
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3817
3817
|
}, []);
|
|
3818
3818
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3819
3819
|
}, this.formatToParts = function(l) {
|
|
3820
|
-
return
|
|
3820
|
+
return ye(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3821
3821
|
}, this.resolvedOptions = function() {
|
|
3822
3822
|
var l;
|
|
3823
3823
|
return {
|
|
3824
|
-
locale: ((l =
|
|
3824
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3825
3825
|
};
|
|
3826
3826
|
}, this.getAst = function() {
|
|
3827
|
-
return
|
|
3827
|
+
return o.ast;
|
|
3828
3828
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3829
3829
|
if (this.message = t, !e.__parse)
|
|
3830
3830
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3831
|
-
var
|
|
3832
|
-
|
|
3833
|
-
var a = tn(
|
|
3831
|
+
var s = i || {};
|
|
3832
|
+
s.formatters;
|
|
3833
|
+
var a = tn(s, ["formatters"]);
|
|
3834
3834
|
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3835
3835
|
} else
|
|
3836
3836
|
this.ast = t;
|
|
3837
3837
|
if (!Array.isArray(this.ast))
|
|
3838
3838
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3839
|
-
this.formats =
|
|
3839
|
+
this.formats = xi(e.formats, n), this.formatters = i && i.formatters || _i(this.formatterCache);
|
|
3840
3840
|
}
|
|
3841
3841
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3842
3842
|
get: function() {
|
|
@@ -3920,9 +3920,9 @@ function Si(e, t) {
|
|
|
3920
3920
|
for (let i = 0; i < r.length; i++)
|
|
3921
3921
|
if (typeof n == "object") {
|
|
3922
3922
|
if (i > 0) {
|
|
3923
|
-
const
|
|
3924
|
-
if (
|
|
3925
|
-
n = n[
|
|
3923
|
+
const o = r.slice(i, r.length).join(".");
|
|
3924
|
+
if (o in n) {
|
|
3925
|
+
n = n[o];
|
|
3926
3926
|
break;
|
|
3927
3927
|
}
|
|
3928
3928
|
}
|
|
@@ -3931,16 +3931,16 @@ function Si(e, t) {
|
|
|
3931
3931
|
n = void 0;
|
|
3932
3932
|
return n;
|
|
3933
3933
|
}
|
|
3934
|
-
const
|
|
3934
|
+
const G = {}, Ti = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), fr = (e, t) => {
|
|
3935
3935
|
if (t == null)
|
|
3936
3936
|
return;
|
|
3937
|
-
if (t in
|
|
3938
|
-
return
|
|
3937
|
+
if (t in G && e in G[t])
|
|
3938
|
+
return G[t][e];
|
|
3939
3939
|
const r = we(t);
|
|
3940
3940
|
for (let n = 0; n < r.length; n++) {
|
|
3941
|
-
const i = r[n],
|
|
3942
|
-
if (
|
|
3943
|
-
return Ti(e, t,
|
|
3941
|
+
const i = r[n], o = Hi(i, e);
|
|
3942
|
+
if (o)
|
|
3943
|
+
return Ti(e, t, o);
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
3946
|
let nt;
|
|
@@ -3968,21 +3968,21 @@ function Ci(e) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
function dr(e, ...t) {
|
|
3971
|
-
delete
|
|
3971
|
+
delete G[e], fe.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
|
3972
3972
|
}
|
|
3973
3973
|
ie(
|
|
3974
3974
|
[fe],
|
|
3975
3975
|
([e]) => Object.keys(e)
|
|
3976
3976
|
);
|
|
3977
3977
|
fe.subscribe((e) => nt = e);
|
|
3978
|
-
const
|
|
3978
|
+
const ge = {};
|
|
3979
3979
|
function Bi(e, t) {
|
|
3980
|
-
|
|
3980
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3981
3981
|
}
|
|
3982
3982
|
function mr(e) {
|
|
3983
|
-
return
|
|
3983
|
+
return ge[e];
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function Pi(e) {
|
|
3986
3986
|
return we(e).map((t) => {
|
|
3987
3987
|
const r = mr(t);
|
|
3988
3988
|
return [t, r ? [...r] : []];
|
|
@@ -3996,27 +3996,27 @@ function Je(e) {
|
|
|
3996
3996
|
}
|
|
3997
3997
|
);
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
3999
|
+
function Ai(e, t) {
|
|
4000
4000
|
return Promise.all(
|
|
4001
4001
|
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
|
4002
4002
|
).then((n) => dr(e, ...n));
|
|
4003
4003
|
}
|
|
4004
4004
|
const ue = {};
|
|
4005
|
-
function
|
|
4005
|
+
function br(e) {
|
|
4006
4006
|
if (!Je(e))
|
|
4007
4007
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4008
|
-
const t =
|
|
4008
|
+
const t = Pi(e);
|
|
4009
4009
|
return ue[e] = Promise.all(
|
|
4010
4010
|
t.map(
|
|
4011
|
-
([r, n]) =>
|
|
4011
|
+
([r, n]) => Ai(r, n)
|
|
4012
4012
|
)
|
|
4013
4013
|
).then(() => {
|
|
4014
4014
|
if (Je(e))
|
|
4015
|
-
return
|
|
4015
|
+
return br(e);
|
|
4016
4016
|
delete ue[e];
|
|
4017
4017
|
}), ue[e];
|
|
4018
4018
|
}
|
|
4019
|
-
const
|
|
4019
|
+
const Ri = {
|
|
4020
4020
|
number: {
|
|
4021
4021
|
scientific: { notation: "scientific" },
|
|
4022
4022
|
engineering: { notation: "engineering" },
|
|
@@ -4045,57 +4045,57 @@ const Oi = {
|
|
|
4045
4045
|
timeZoneName: "short"
|
|
4046
4046
|
}
|
|
4047
4047
|
}
|
|
4048
|
-
},
|
|
4048
|
+
}, Oi = {
|
|
4049
4049
|
fallbackLocale: null,
|
|
4050
4050
|
loadingDelay: 200,
|
|
4051
|
-
formats:
|
|
4051
|
+
formats: Ri,
|
|
4052
4052
|
warnOnMissingMessages: !0,
|
|
4053
4053
|
handleMissingMessage: void 0,
|
|
4054
4054
|
ignoreTag: !0
|
|
4055
|
-
},
|
|
4055
|
+
}, Mi = Oi;
|
|
4056
4056
|
function re() {
|
|
4057
|
-
return
|
|
4057
|
+
return Mi;
|
|
4058
4058
|
}
|
|
4059
|
-
const
|
|
4060
|
-
var
|
|
4059
|
+
const Ne = Se(!1);
|
|
4060
|
+
var Ii = Object.defineProperty, Li = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
|
4061
4061
|
for (var r in t || (t = {}))
|
|
4062
|
-
|
|
4062
|
+
$i.call(t, r) && Bt(e, r, t[r]);
|
|
4063
4063
|
if (Ct)
|
|
4064
4064
|
for (var r of Ct(t))
|
|
4065
|
-
|
|
4065
|
+
ki.call(t, r) && Bt(e, r, t[r]);
|
|
4066
4066
|
return e;
|
|
4067
|
-
},
|
|
4067
|
+
}, Di = (e, t) => Li(e, Ni(t));
|
|
4068
4068
|
let Ye;
|
|
4069
|
-
const
|
|
4070
|
-
function
|
|
4069
|
+
const xe = Se(null);
|
|
4070
|
+
function Pt(e) {
|
|
4071
4071
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4072
4072
|
}
|
|
4073
4073
|
function we(e, t = re().fallbackLocale) {
|
|
4074
|
-
const r =
|
|
4075
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4074
|
+
const r = Pt(e);
|
|
4075
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4076
4076
|
}
|
|
4077
|
-
function
|
|
4077
|
+
function X() {
|
|
4078
4078
|
return Ye != null ? Ye : void 0;
|
|
4079
4079
|
}
|
|
4080
|
-
|
|
4080
|
+
xe.subscribe((e) => {
|
|
4081
4081
|
Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4082
4082
|
});
|
|
4083
|
-
const
|
|
4083
|
+
const Fi = (e) => {
|
|
4084
4084
|
if (e && Ci(e) && Je(e)) {
|
|
4085
4085
|
const { loadingDelay: t } = re();
|
|
4086
4086
|
let r;
|
|
4087
|
-
return typeof window != "undefined" &&
|
|
4088
|
-
() =>
|
|
4087
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
4088
|
+
() => Ne.set(!0),
|
|
4089
4089
|
t
|
|
4090
|
-
) :
|
|
4091
|
-
|
|
4090
|
+
) : Ne.set(!0), br(e).then(() => {
|
|
4091
|
+
xe.set(e);
|
|
4092
4092
|
}).finally(() => {
|
|
4093
|
-
clearTimeout(r),
|
|
4093
|
+
clearTimeout(r), Ne.set(!1);
|
|
4094
4094
|
});
|
|
4095
4095
|
}
|
|
4096
|
-
return
|
|
4097
|
-
},
|
|
4098
|
-
set:
|
|
4096
|
+
return xe.set(e);
|
|
4097
|
+
}, oe = Di(Ui({}, xe), {
|
|
4098
|
+
set: Fi
|
|
4099
4099
|
}), He = (e) => {
|
|
4100
4100
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4101
4101
|
return (n) => {
|
|
@@ -4103,20 +4103,20 @@ const Di = (e) => {
|
|
|
4103
4103
|
return i in t ? t[i] : t[i] = e(n);
|
|
4104
4104
|
};
|
|
4105
4105
|
};
|
|
4106
|
-
var
|
|
4106
|
+
var Gi = Object.defineProperty, _e = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
4107
4107
|
for (var r in t || (t = {}))
|
|
4108
|
-
|
|
4109
|
-
if (
|
|
4110
|
-
for (var r of
|
|
4111
|
-
|
|
4108
|
+
yr.call(t, r) && At(e, r, t[r]);
|
|
4109
|
+
if (_e)
|
|
4110
|
+
for (var r of _e(t))
|
|
4111
|
+
gr.call(t, r) && At(e, r, t[r]);
|
|
4112
4112
|
return e;
|
|
4113
|
-
},
|
|
4113
|
+
}, se = (e, t) => {
|
|
4114
4114
|
var r = {};
|
|
4115
4115
|
for (var n in e)
|
|
4116
|
-
|
|
4117
|
-
if (e != null &&
|
|
4118
|
-
for (var n of
|
|
4119
|
-
t.indexOf(n) < 0 &&
|
|
4116
|
+
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4117
|
+
if (e != null && _e)
|
|
4118
|
+
for (var n of _e(e))
|
|
4119
|
+
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
|
4120
4120
|
return r;
|
|
4121
4121
|
};
|
|
4122
4122
|
const ce = (e, t) => {
|
|
@@ -4124,71 +4124,71 @@ const ce = (e, t) => {
|
|
|
4124
4124
|
if (e in r && t in r[e])
|
|
4125
4125
|
return r[e][t];
|
|
4126
4126
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4127
|
-
},
|
|
4127
|
+
}, ji = He(
|
|
4128
4128
|
(e) => {
|
|
4129
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4129
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4130
4130
|
if (r == null)
|
|
4131
4131
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4132
4132
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4133
4133
|
}
|
|
4134
|
-
),
|
|
4134
|
+
), Vi = He(
|
|
4135
4135
|
(e) => {
|
|
4136
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4136
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4137
4137
|
if (r == null)
|
|
4138
4138
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4139
4139
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4140
4140
|
}
|
|
4141
|
-
),
|
|
4141
|
+
), Xi = He(
|
|
4142
4142
|
(e) => {
|
|
4143
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4143
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4144
4144
|
if (r == null)
|
|
4145
4145
|
throw new Error(
|
|
4146
4146
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4147
4147
|
);
|
|
4148
4148
|
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4149
4149
|
}
|
|
4150
|
-
),
|
|
4150
|
+
), zi = (e = {}) => {
|
|
4151
4151
|
var t = e, {
|
|
4152
|
-
locale: r =
|
|
4153
|
-
} = t, n =
|
|
4152
|
+
locale: r = X()
|
|
4153
|
+
} = t, n = se(t, [
|
|
4154
4154
|
"locale"
|
|
4155
4155
|
]);
|
|
4156
|
-
return
|
|
4157
|
-
},
|
|
4156
|
+
return ji(it({ locale: r }, n));
|
|
4157
|
+
}, Wi = (e = {}) => {
|
|
4158
4158
|
var t = e, {
|
|
4159
|
-
locale: r =
|
|
4160
|
-
} = t, n =
|
|
4159
|
+
locale: r = X()
|
|
4160
|
+
} = t, n = se(t, [
|
|
4161
4161
|
"locale"
|
|
4162
4162
|
]);
|
|
4163
|
-
return
|
|
4164
|
-
},
|
|
4163
|
+
return Vi(it({ locale: r }, n));
|
|
4164
|
+
}, qi = (e = {}) => {
|
|
4165
4165
|
var t = e, {
|
|
4166
|
-
locale: r =
|
|
4167
|
-
} = t, n =
|
|
4166
|
+
locale: r = X()
|
|
4167
|
+
} = t, n = se(t, [
|
|
4168
4168
|
"locale"
|
|
4169
4169
|
]);
|
|
4170
|
-
return
|
|
4170
|
+
return Xi(it({ locale: r }, n));
|
|
4171
4171
|
}, Zi = He(
|
|
4172
4172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4173
|
-
(e, t =
|
|
4173
|
+
(e, t = X()) => new Ei(e, t, re().formats, {
|
|
4174
4174
|
ignoreTag: re().ignoreTag
|
|
4175
4175
|
})
|
|
4176
4176
|
), Qi = (e, t = {}) => {
|
|
4177
|
-
var r, n, i,
|
|
4178
|
-
let
|
|
4179
|
-
typeof e == "object" && (
|
|
4177
|
+
var r, n, i, o;
|
|
4178
|
+
let s = t;
|
|
4179
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
4180
4180
|
const {
|
|
4181
4181
|
values: a,
|
|
4182
|
-
locale: l =
|
|
4182
|
+
locale: l = X(),
|
|
4183
4183
|
default: u
|
|
4184
|
-
} =
|
|
4184
|
+
} = s;
|
|
4185
4185
|
if (l == null)
|
|
4186
4186
|
throw new Error(
|
|
4187
4187
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4188
4188
|
);
|
|
4189
4189
|
let h = fr(e, l);
|
|
4190
4190
|
if (!h)
|
|
4191
|
-
h = (
|
|
4191
|
+
h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4192
4192
|
else if (typeof h != "string")
|
|
4193
4193
|
return console.warn(
|
|
4194
4194
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4205,20 +4205,20 @@ const ce = (e, t) => {
|
|
|
4205
4205
|
);
|
|
4206
4206
|
}
|
|
4207
4207
|
return c;
|
|
4208
|
-
}, Ji = (e, t) =>
|
|
4209
|
-
ie([
|
|
4210
|
-
ie([
|
|
4211
|
-
ie([
|
|
4212
|
-
ie([
|
|
4208
|
+
}, Ji = (e, t) => qi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => zi(t).format(e), eo = (e, t = X()) => fr(e, t), to = ie([oe, fe], () => Qi);
|
|
4209
|
+
ie([oe], () => Ji);
|
|
4210
|
+
ie([oe], () => Yi);
|
|
4211
|
+
ie([oe], () => Ki);
|
|
4212
|
+
ie([oe, fe], () => eo);
|
|
4213
4213
|
window.emWidgets = { topic: mn };
|
|
4214
|
-
const
|
|
4215
|
-
function
|
|
4214
|
+
const ro = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4215
|
+
function Rt(e, t) {
|
|
4216
4216
|
dr(e, t);
|
|
4217
4217
|
}
|
|
4218
|
-
function
|
|
4219
|
-
|
|
4218
|
+
function no(e) {
|
|
4219
|
+
oe.set(e);
|
|
4220
4220
|
}
|
|
4221
|
-
const
|
|
4221
|
+
const Ot = {
|
|
4222
4222
|
en: {
|
|
4223
4223
|
titleRealityCheck: "Reality Check",
|
|
4224
4224
|
never: "Never",
|
|
@@ -4319,115 +4319,115 @@ const kt = {
|
|
|
4319
4319
|
setFrequency: "Fijar frecuencia"
|
|
4320
4320
|
}
|
|
4321
4321
|
};
|
|
4322
|
-
function
|
|
4323
|
-
|
|
4322
|
+
function io(e) {
|
|
4323
|
+
Ir(e, "svelte-1nu1im1", '.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));line-height:24px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);cursor:not-allowed;opacity:0.6}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerDetailsContent{grid-template-columns:1fr}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerRealityCheckWrapperTablet{padding:40px 25% 100% 25%}.PlayerRealityCheckWrapperTablet .PlayerRealityCheckContent{grid-row-gap:40px}.PlayerRealityCheckWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerRealityCheckWrapperTablet .MenuReturnButton span{font-size:20px}');
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function Mt(e, t, r) {
|
|
4326
4326
|
const n = e.slice();
|
|
4327
4327
|
return n[29] = t[r].value, n[30] = t[r].text, n[32] = r, n;
|
|
4328
4328
|
}
|
|
4329
|
-
function
|
|
4330
|
-
let t, r, n, i,
|
|
4329
|
+
function oo(e) {
|
|
4330
|
+
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4331
4331
|
/*$_*/
|
|
4332
4332
|
e[4]("titleRealityCheck") + ""
|
|
4333
|
-
), p, d,
|
|
4333
|
+
), p, d, b, y = (
|
|
4334
4334
|
/*realityCheckSuccess*/
|
|
4335
|
-
e[3] &&
|
|
4335
|
+
e[3] && It(e)
|
|
4336
4336
|
);
|
|
4337
4337
|
return {
|
|
4338
4338
|
c() {
|
|
4339
|
-
|
|
4339
|
+
y && y.c(), t = F(), r = B("div"), n = W("svg"), i = W("defs"), o = W("style"), s = L(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"), a = W("g"), l = W("g"), u = W("path"), h = F(), c = B("h2"), p = L(f), H(u, "class", "aaa"), H(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), H(u, "transform", "translate(15 15) rotate(180)"), H(l, "transform", "translate(20 158)"), H(a, "transform", "translate(-20 -158)"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "width", "15"), H(n, "height", "15"), H(n, "viewBox", "0 0 15 15"), H(c, "class", "RealityCheckTitleMobile"), H(r, "class", "MenuReturnButton");
|
|
4340
4340
|
},
|
|
4341
|
-
m(S,
|
|
4342
|
-
|
|
4343
|
-
|
|
4341
|
+
m(S, _) {
|
|
4342
|
+
y && y.m(S, _), U(S, t, _), U(S, r, _), T(r, n), T(n, i), T(i, o), T(o, s), T(n, a), T(a, l), T(l, u), T(r, h), T(r, c), T(c, p), d || (b = [
|
|
4343
|
+
ve(
|
|
4344
4344
|
r,
|
|
4345
4345
|
"click",
|
|
4346
4346
|
/*click_handler*/
|
|
4347
4347
|
e[16]
|
|
4348
4348
|
),
|
|
4349
|
-
|
|
4349
|
+
ve(r, "keydown", null)
|
|
4350
4350
|
], d = !0);
|
|
4351
4351
|
},
|
|
4352
|
-
p(S,
|
|
4352
|
+
p(S, _) {
|
|
4353
4353
|
/*realityCheckSuccess*/
|
|
4354
|
-
S[3] ?
|
|
4354
|
+
S[3] ? y ? y.p(S, _) : (y = It(S), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), _[0] & /*$_*/
|
|
4355
4355
|
16 && f !== (f = /*$_*/
|
|
4356
|
-
S[4]("titleRealityCheck") + "") &&
|
|
4356
|
+
S[4]("titleRealityCheck") + "") && V(p, f);
|
|
4357
4357
|
},
|
|
4358
4358
|
d(S) {
|
|
4359
|
-
S && (
|
|
4359
|
+
S && (I(t), I(r)), y && y.d(S), d = !1, ne(b);
|
|
4360
4360
|
}
|
|
4361
4361
|
};
|
|
4362
4362
|
}
|
|
4363
|
-
function
|
|
4363
|
+
function It(e) {
|
|
4364
4364
|
let t, r = (
|
|
4365
4365
|
/*$_*/
|
|
4366
4366
|
e[4]("successMessage") + ""
|
|
4367
4367
|
), n;
|
|
4368
4368
|
return {
|
|
4369
4369
|
c() {
|
|
4370
|
-
t = B("div"), n =
|
|
4370
|
+
t = B("div"), n = L(r), H(t, "class", "successMessageMobile");
|
|
4371
4371
|
},
|
|
4372
|
-
m(i,
|
|
4373
|
-
|
|
4372
|
+
m(i, o) {
|
|
4373
|
+
U(i, t, o), T(t, n);
|
|
4374
4374
|
},
|
|
4375
|
-
p(i,
|
|
4376
|
-
|
|
4375
|
+
p(i, o) {
|
|
4376
|
+
o[0] & /*$_*/
|
|
4377
4377
|
16 && r !== (r = /*$_*/
|
|
4378
|
-
i[4]("successMessage") + "") &&
|
|
4378
|
+
i[4]("successMessage") + "") && V(n, r);
|
|
4379
4379
|
},
|
|
4380
4380
|
d(i) {
|
|
4381
|
-
i &&
|
|
4381
|
+
i && I(t);
|
|
4382
4382
|
}
|
|
4383
4383
|
};
|
|
4384
4384
|
}
|
|
4385
|
-
function
|
|
4385
|
+
function Lt(e) {
|
|
4386
4386
|
let t, r = (
|
|
4387
4387
|
/*$_*/
|
|
4388
4388
|
e[4]("successMessage") + ""
|
|
4389
4389
|
), n;
|
|
4390
4390
|
return {
|
|
4391
4391
|
c() {
|
|
4392
|
-
t = B("div"), n =
|
|
4393
|
-
(e[5] ? "successMessageMobile" : "")
|
|
4392
|
+
t = B("div"), n = L(r), H(t, "class", "successMessage " + /*isMobile*/
|
|
4393
|
+
(e[5] ? "successMessageMobile" : ""));
|
|
4394
4394
|
},
|
|
4395
|
-
m(i,
|
|
4396
|
-
|
|
4395
|
+
m(i, o) {
|
|
4396
|
+
U(i, t, o), T(t, n);
|
|
4397
4397
|
},
|
|
4398
|
-
p(i,
|
|
4399
|
-
|
|
4398
|
+
p(i, o) {
|
|
4399
|
+
o[0] & /*$_*/
|
|
4400
4400
|
16 && r !== (r = /*$_*/
|
|
4401
|
-
i[4]("successMessage") + "") &&
|
|
4401
|
+
i[4]("successMessage") + "") && V(n, r);
|
|
4402
4402
|
},
|
|
4403
4403
|
d(i) {
|
|
4404
|
-
i &&
|
|
4404
|
+
i && I(t);
|
|
4405
4405
|
}
|
|
4406
4406
|
};
|
|
4407
4407
|
}
|
|
4408
|
-
function
|
|
4409
|
-
let t, r, n, i,
|
|
4408
|
+
function so(e) {
|
|
4409
|
+
let t, r, n, i, o = (
|
|
4410
4410
|
/*$_*/
|
|
4411
4411
|
e[4]("setFrequency") + ""
|
|
4412
|
-
),
|
|
4412
|
+
), s, a, l, u = ht(
|
|
4413
4413
|
/*realityCheckOptions*/
|
|
4414
4414
|
e[6]
|
|
4415
4415
|
), h = [];
|
|
4416
4416
|
for (let c = 0; c < u.length; c += 1)
|
|
4417
|
-
h[c] =
|
|
4417
|
+
h[c] = Nt(Mt(e, u, c));
|
|
4418
4418
|
return {
|
|
4419
4419
|
c() {
|
|
4420
4420
|
t = B("form");
|
|
4421
4421
|
for (let c = 0; c < h.length; c += 1)
|
|
4422
4422
|
h[c].c();
|
|
4423
|
-
r =
|
|
4424
|
-
(e[5] ? "BottomButtonsAreaMobile" : "")
|
|
4423
|
+
r = F(), n = B("div"), i = B("button"), s = L(o), H(i, "class", "PlayerRealityCheckButton"), H(n, "class", "BottomButtonsArea " + /*isMobile*/
|
|
4424
|
+
(e[5] ? "BottomButtonsAreaMobile" : "")), H(t, "class", "customRadio");
|
|
4425
4425
|
},
|
|
4426
4426
|
m(c, f) {
|
|
4427
|
-
|
|
4427
|
+
U(c, t, f);
|
|
4428
4428
|
for (let p = 0; p < h.length; p += 1)
|
|
4429
4429
|
h[p] && h[p].m(t, null);
|
|
4430
|
-
T(t, r), T(t, n), T(n, i), T(i,
|
|
4430
|
+
T(t, r), T(t, n), T(n, i), T(i, s), a || (l = ve(
|
|
4431
4431
|
i,
|
|
4432
4432
|
"click",
|
|
4433
4433
|
/*submitRealityCheckValue*/
|
|
@@ -4443,70 +4443,70 @@ function os(e) {
|
|
|
4443
4443
|
);
|
|
4444
4444
|
let p;
|
|
4445
4445
|
for (p = 0; p < u.length; p += 1) {
|
|
4446
|
-
const d =
|
|
4447
|
-
h[p] ? h[p].p(d, f) : (h[p] =
|
|
4446
|
+
const d = Mt(c, u, p);
|
|
4447
|
+
h[p] ? h[p].p(d, f) : (h[p] = Nt(d), h[p].c(), h[p].m(t, r));
|
|
4448
4448
|
}
|
|
4449
4449
|
for (; p < h.length; p += 1)
|
|
4450
4450
|
h[p].d(1);
|
|
4451
4451
|
h.length = u.length;
|
|
4452
4452
|
}
|
|
4453
4453
|
f[0] & /*$_*/
|
|
4454
|
-
16 &&
|
|
4455
|
-
c[4]("setFrequency") + "") &&
|
|
4454
|
+
16 && o !== (o = /*$_*/
|
|
4455
|
+
c[4]("setFrequency") + "") && V(s, o);
|
|
4456
4456
|
},
|
|
4457
4457
|
d(c) {
|
|
4458
|
-
c &&
|
|
4458
|
+
c && I(t), $r(h, c), a = !1, l();
|
|
4459
4459
|
}
|
|
4460
4460
|
};
|
|
4461
4461
|
}
|
|
4462
|
-
function
|
|
4462
|
+
function ao(e) {
|
|
4463
4463
|
let t, r = (
|
|
4464
4464
|
/*$_*/
|
|
4465
4465
|
e[4]("realityCheckLoading") + ""
|
|
4466
4466
|
), n;
|
|
4467
4467
|
return {
|
|
4468
4468
|
c() {
|
|
4469
|
-
t = B("p"), n =
|
|
4469
|
+
t = B("p"), n = L(r);
|
|
4470
4470
|
},
|
|
4471
|
-
m(i,
|
|
4472
|
-
|
|
4471
|
+
m(i, o) {
|
|
4472
|
+
U(i, t, o), T(t, n);
|
|
4473
4473
|
},
|
|
4474
|
-
p(i,
|
|
4475
|
-
|
|
4474
|
+
p(i, o) {
|
|
4475
|
+
o[0] & /*$_*/
|
|
4476
4476
|
16 && r !== (r = /*$_*/
|
|
4477
|
-
i[4]("realityCheckLoading") + "") &&
|
|
4477
|
+
i[4]("realityCheckLoading") + "") && V(n, r);
|
|
4478
4478
|
},
|
|
4479
4479
|
d(i) {
|
|
4480
|
-
i &&
|
|
4480
|
+
i && I(t);
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4485
|
-
let t, r, n, i,
|
|
4484
|
+
function Nt(e) {
|
|
4485
|
+
let t, r, n, i, o = (
|
|
4486
4486
|
/*text*/
|
|
4487
4487
|
e[30] + ""
|
|
4488
|
-
),
|
|
4489
|
-
return a =
|
|
4488
|
+
), s, a, l, u;
|
|
4489
|
+
return a = kr(
|
|
4490
4490
|
/*$$binding_groups*/
|
|
4491
4491
|
e[18][0]
|
|
4492
4492
|
), {
|
|
4493
4493
|
c() {
|
|
4494
|
-
t = B("div"), r = B("input"), n =
|
|
4494
|
+
t = B("div"), r = B("input"), n = F(), i = B("label"), s = L(o), H(r, "type", "radio"), H(
|
|
4495
4495
|
r,
|
|
4496
4496
|
"id",
|
|
4497
4497
|
/*value*/
|
|
4498
4498
|
e[29]
|
|
4499
4499
|
), r.__value = /*value*/
|
|
4500
|
-
e[29],
|
|
4500
|
+
e[29], Dr(r, r.__value), H(
|
|
4501
4501
|
i,
|
|
4502
4502
|
"for",
|
|
4503
4503
|
/*value*/
|
|
4504
4504
|
e[29]
|
|
4505
|
-
),
|
|
4505
|
+
), a.p(r);
|
|
4506
4506
|
},
|
|
4507
4507
|
m(h, c) {
|
|
4508
|
-
|
|
4509
|
-
e[2], T(t, n), T(t, i), T(i,
|
|
4508
|
+
U(h, t, c), T(t, r), r.checked = r.__value === /*realityCheckValue*/
|
|
4509
|
+
e[2], T(t, n), T(t, i), T(i, s), l || (u = ve(
|
|
4510
4510
|
r,
|
|
4511
4511
|
"change",
|
|
4512
4512
|
/*input_change_handler*/
|
|
@@ -4519,114 +4519,114 @@ function Lt(e) {
|
|
|
4519
4519
|
h[2]);
|
|
4520
4520
|
},
|
|
4521
4521
|
d(h) {
|
|
4522
|
-
h &&
|
|
4522
|
+
h && I(t), a.r(), l = !1, u();
|
|
4523
4523
|
}
|
|
4524
4524
|
};
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4527
|
-
let t, r, n, i,
|
|
4526
|
+
function uo(e) {
|
|
4527
|
+
let t, r, n, i, o = (
|
|
4528
4528
|
/*$_*/
|
|
4529
4529
|
e[4]("titleRealityCheck") + ""
|
|
4530
|
-
),
|
|
4530
|
+
), s, a, l, u, h = (
|
|
4531
4531
|
/*$_*/
|
|
4532
4532
|
e[4]("realityCheckText") + ""
|
|
4533
4533
|
), c, f, p = (
|
|
4534
4534
|
/*isMobile*/
|
|
4535
|
-
e[5] &&
|
|
4535
|
+
e[5] && oo(e)
|
|
4536
4536
|
), d = (
|
|
4537
4537
|
/*realityCheckSuccess*/
|
|
4538
|
-
e[3] &&
|
|
4538
|
+
e[3] && Lt(e)
|
|
4539
4539
|
);
|
|
4540
|
-
function
|
|
4540
|
+
function b(_, C) {
|
|
4541
4541
|
return (
|
|
4542
4542
|
/*isLoading*/
|
|
4543
|
-
|
|
4543
|
+
_[1] ? ao : so
|
|
4544
4544
|
);
|
|
4545
4545
|
}
|
|
4546
|
-
let
|
|
4546
|
+
let y = b(e), S = y(e);
|
|
4547
4547
|
return {
|
|
4548
4548
|
c() {
|
|
4549
|
-
t = B("div"), p && p.c(), r =
|
|
4550
|
-
(e[5] ? "RealityCheckTitleNone" : "")
|
|
4551
|
-
(e[5] ? "RealityCheckDescriptionMobile" : "")
|
|
4552
|
-
(e[5] ? "PlayerRealityCheckWrapperMobile" : "")
|
|
4549
|
+
t = B("div"), p && p.c(), r = F(), d && d.c(), n = F(), i = B("h2"), s = L(o), a = F(), l = B("div"), u = B("p"), c = L(h), f = F(), S.c(), H(i, "class", "RealityCheckTitle " + /*isMobile*/
|
|
4550
|
+
(e[5] ? "RealityCheckTitleNone" : "")), H(l, "class", "RealityCheckDescription " + /*isMobile*/
|
|
4551
|
+
(e[5] ? "RealityCheckDescriptionMobile" : "")), H(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
|
|
4552
|
+
(e[5] ? "PlayerRealityCheckWrapperMobile" : ""));
|
|
4553
4553
|
},
|
|
4554
|
-
m(
|
|
4555
|
-
|
|
4554
|
+
m(_, C) {
|
|
4555
|
+
U(_, t, C), p && p.m(t, null), T(t, r), d && d.m(t, null), T(t, n), T(t, i), T(i, s), T(t, a), T(t, l), T(l, u), T(u, c), T(l, f), S.m(l, null), e[19](t);
|
|
4556
4556
|
},
|
|
4557
|
-
p(
|
|
4557
|
+
p(_, C) {
|
|
4558
4558
|
/*isMobile*/
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
16 &&
|
|
4562
|
-
|
|
4559
|
+
_[5] && p.p(_, C), /*realityCheckSuccess*/
|
|
4560
|
+
_[3] ? d ? d.p(_, C) : (d = Lt(_), d.c(), d.m(t, n)) : d && (d.d(1), d = null), C[0] & /*$_*/
|
|
4561
|
+
16 && o !== (o = /*$_*/
|
|
4562
|
+
_[4]("titleRealityCheck") + "") && V(s, o), C[0] & /*$_*/
|
|
4563
4563
|
16 && h !== (h = /*$_*/
|
|
4564
|
-
|
|
4564
|
+
_[4]("realityCheckText") + "") && V(c, h), y === (y = b(_)) && S ? S.p(_, C) : (S.d(1), S = y(_), S && (S.c(), S.m(l, null)));
|
|
4565
4565
|
},
|
|
4566
|
-
i:
|
|
4567
|
-
o:
|
|
4568
|
-
d(
|
|
4569
|
-
|
|
4566
|
+
i: M,
|
|
4567
|
+
o: M,
|
|
4568
|
+
d(_) {
|
|
4569
|
+
_ && I(t), p && p.d(), d && d.d(), S.d(), e[19](null);
|
|
4570
4570
|
}
|
|
4571
4571
|
};
|
|
4572
4572
|
}
|
|
4573
|
-
function
|
|
4573
|
+
function lo(e, t, r) {
|
|
4574
4574
|
let n;
|
|
4575
|
-
|
|
4576
|
-
let { endpoint: i = "" } = t, { playerid:
|
|
4575
|
+
Mr(e, to, (m) => r(4, n = m));
|
|
4576
|
+
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, c, f = ro(window.navigator.userAgent) !== "PC", p = !0, d, b = !1, y = [];
|
|
4577
4577
|
const S = () => {
|
|
4578
|
-
const m = new URL(`${i}/v1/player/${
|
|
4579
|
-
|
|
4580
|
-
const
|
|
4581
|
-
fetch(m.href,
|
|
4582
|
-
(
|
|
4583
|
-
r(2, d =
|
|
4578
|
+
const m = new URL(`${i}/v1/player/${o}/realitycheck`), g = new Headers();
|
|
4579
|
+
g.append("X-SessionID", s);
|
|
4580
|
+
const R = { method: "GET", headers: g };
|
|
4581
|
+
fetch(m.href, R).then((P) => P.json()).then(
|
|
4582
|
+
(P) => {
|
|
4583
|
+
r(2, d = P.UserRealityCheckValue);
|
|
4584
4584
|
},
|
|
4585
|
-
(
|
|
4586
|
-
console.error(
|
|
4585
|
+
(P) => {
|
|
4586
|
+
console.error(P);
|
|
4587
4587
|
}
|
|
4588
4588
|
);
|
|
4589
|
-
},
|
|
4590
|
-
const m = new URL(`${i}/v1/player/${
|
|
4591
|
-
|
|
4592
|
-
const
|
|
4593
|
-
fetch(m.href,
|
|
4594
|
-
(
|
|
4595
|
-
C(
|
|
4589
|
+
}, _ = () => {
|
|
4590
|
+
const m = new URL(`${i}/v1/player/${o}/availablerealityvalues`), g = new Headers();
|
|
4591
|
+
g.append("X-SessionID", s), g.append("accept", "application/json");
|
|
4592
|
+
const R = { method: "GET", headers: g };
|
|
4593
|
+
fetch(m.href, R).then((P) => P.json()).then(
|
|
4594
|
+
(P) => {
|
|
4595
|
+
C(P.AvailableRealityCheckValues), r(1, p = !1);
|
|
4596
4596
|
},
|
|
4597
|
-
(
|
|
4598
|
-
console.error(
|
|
4597
|
+
(P) => {
|
|
4598
|
+
console.error(P);
|
|
4599
4599
|
}
|
|
4600
4600
|
);
|
|
4601
4601
|
}, C = (m) => {
|
|
4602
|
-
m.forEach((
|
|
4603
|
-
|
|
4604
|
-
value:
|
|
4602
|
+
m.forEach((g) => {
|
|
4603
|
+
g == 0 ? y.push({
|
|
4604
|
+
value: g.toString(),
|
|
4605
4605
|
text: n("never")
|
|
4606
|
-
}) :
|
|
4607
|
-
value:
|
|
4608
|
-
text:
|
|
4609
|
-
}) :
|
|
4610
|
-
value:
|
|
4606
|
+
}) : g < 60 ? y.push({
|
|
4607
|
+
value: g.toString(),
|
|
4608
|
+
text: g + " " + n("minutes")
|
|
4609
|
+
}) : g == 60 ? y.push({
|
|
4610
|
+
value: g.toString(),
|
|
4611
4611
|
text: n("oneHour")
|
|
4612
|
-
}) :
|
|
4613
|
-
value:
|
|
4614
|
-
text:
|
|
4612
|
+
}) : g > 60 && y.push({
|
|
4613
|
+
value: g.toString(),
|
|
4614
|
+
text: g / 60 + " " + n("hours")
|
|
4615
4615
|
});
|
|
4616
4616
|
});
|
|
4617
|
-
},
|
|
4618
|
-
const m = new URL(`${i}/v1/player/${
|
|
4619
|
-
|
|
4620
|
-
const
|
|
4621
|
-
return yield fetch(m.href,
|
|
4622
|
-
(
|
|
4623
|
-
(
|
|
4617
|
+
}, j = () => Be(this, null, function* () {
|
|
4618
|
+
const m = new URL(`${i}/v1/player/${o}/realitycheck`), g = new Headers();
|
|
4619
|
+
g.append("X-SessionID", s), g.append("Content-Type", "application/json"), g.append("Accept", "application/json"), g.append("realityCheckValue", `${parseInt(d, 10)}`);
|
|
4620
|
+
const R = { method: "POST", headers: g };
|
|
4621
|
+
return yield fetch(m.href, R).then(
|
|
4622
|
+
(P) => P.status == 200,
|
|
4623
|
+
(P) => (console.error(P), !1)
|
|
4624
4624
|
);
|
|
4625
|
-
}),
|
|
4626
|
-
m.preventDefault(),
|
|
4627
|
-
|
|
4625
|
+
}), N = (m) => {
|
|
4626
|
+
m.preventDefault(), j().then((g) => {
|
|
4627
|
+
g && (z(), S());
|
|
4628
4628
|
});
|
|
4629
|
-
},
|
|
4629
|
+
}, z = () => {
|
|
4630
4630
|
window.postMessage(
|
|
4631
4631
|
{
|
|
4632
4632
|
type: "WidgetNotification",
|
|
@@ -4636,7 +4636,7 @@ function ls(e, t, r) {
|
|
|
4636
4636
|
}
|
|
4637
4637
|
},
|
|
4638
4638
|
window.location.href
|
|
4639
|
-
), r(3,
|
|
4639
|
+
), r(3, b = !0), setTimeout(() => r(3, b = !1), 2e3);
|
|
4640
4640
|
}, ae = () => {
|
|
4641
4641
|
window.postMessage(
|
|
4642
4642
|
{
|
|
@@ -4645,29 +4645,29 @@ function ls(e, t, r) {
|
|
|
4645
4645
|
},
|
|
4646
4646
|
window.location.href
|
|
4647
4647
|
);
|
|
4648
|
-
},
|
|
4649
|
-
|
|
4650
|
-
},
|
|
4651
|
-
fetch(h).then((
|
|
4652
|
-
Object.keys(
|
|
4653
|
-
|
|
4648
|
+
}, vr = () => {
|
|
4649
|
+
no(a);
|
|
4650
|
+
}, xr = () => {
|
|
4651
|
+
fetch(h).then((g) => g.json()).then((g) => {
|
|
4652
|
+
Object.keys(g).forEach((R) => {
|
|
4653
|
+
Rt(R, g[R]);
|
|
4654
4654
|
});
|
|
4655
|
-
}).catch((
|
|
4656
|
-
console.log(
|
|
4655
|
+
}).catch((g) => {
|
|
4656
|
+
console.log(g);
|
|
4657
4657
|
});
|
|
4658
4658
|
};
|
|
4659
|
-
Object.keys(
|
|
4660
|
-
|
|
4659
|
+
Object.keys(Ot).forEach((m) => {
|
|
4660
|
+
Rt(m, Ot[m]);
|
|
4661
4661
|
});
|
|
4662
|
-
const
|
|
4662
|
+
const _r = () => {
|
|
4663
4663
|
let m = document.createElement("style");
|
|
4664
4664
|
m.innerHTML = l, c.appendChild(m);
|
|
4665
4665
|
}, Er = () => {
|
|
4666
|
-
let m = new URL(u),
|
|
4667
|
-
fetch(m.href).then((
|
|
4668
|
-
|
|
4666
|
+
let m = new URL(u), g = document.createElement("style");
|
|
4667
|
+
fetch(m.href).then((R) => R.text()).then((R) => {
|
|
4668
|
+
g.innerHTML = R, setTimeout(
|
|
4669
4669
|
() => {
|
|
4670
|
-
c.appendChild(
|
|
4670
|
+
c.appendChild(g);
|
|
4671
4671
|
},
|
|
4672
4672
|
1
|
|
4673
4673
|
);
|
|
@@ -4677,33 +4677,33 @@ function ls(e, t, r) {
|
|
|
4677
4677
|
d = this.__value, r(2, d);
|
|
4678
4678
|
}
|
|
4679
4679
|
function Hr(m) {
|
|
4680
|
-
|
|
4680
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4681
4681
|
c = m, r(0, c);
|
|
4682
4682
|
});
|
|
4683
4683
|
}
|
|
4684
4684
|
return e.$$set = (m) => {
|
|
4685
|
-
"endpoint" in m && r(9, i = m.endpoint), "playerid" in m && r(10,
|
|
4685
|
+
"endpoint" in m && r(9, i = m.endpoint), "playerid" in m && r(10, o = m.playerid), "session" in m && r(11, s = m.session), "lang" in m && r(12, a = m.lang), "clientstyling" in m && r(13, l = m.clientstyling), "clientstylingurl" in m && r(14, u = m.clientstylingurl), "translationurl" in m && r(15, h = m.translationurl);
|
|
4686
4686
|
}, e.$$.update = () => {
|
|
4687
4687
|
e.$$.dirty[0] & /*lang*/
|
|
4688
|
-
4096 && a &&
|
|
4689
|
-
3584 && i &&
|
|
4690
|
-
3584 && i &&
|
|
4688
|
+
4096 && a && vr(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4689
|
+
3584 && i && o && s && S(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4690
|
+
3584 && i && o && s && _(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4691
4691
|
16385 && u && c && Er(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4692
|
-
8193 && l && c &&
|
|
4693
|
-
32768 && h &&
|
|
4692
|
+
8193 && l && c && _r(), e.$$.dirty[0] & /*translationurl*/
|
|
4693
|
+
32768 && h && xr();
|
|
4694
4694
|
}, [
|
|
4695
4695
|
c,
|
|
4696
4696
|
p,
|
|
4697
4697
|
d,
|
|
4698
|
-
|
|
4698
|
+
b,
|
|
4699
4699
|
n,
|
|
4700
4700
|
f,
|
|
4701
|
-
|
|
4702
|
-
|
|
4701
|
+
y,
|
|
4702
|
+
N,
|
|
4703
4703
|
ae,
|
|
4704
4704
|
i,
|
|
4705
|
-
s,
|
|
4706
4705
|
o,
|
|
4706
|
+
s,
|
|
4707
4707
|
a,
|
|
4708
4708
|
l,
|
|
4709
4709
|
u,
|
|
@@ -4714,14 +4714,14 @@ function ls(e, t, r) {
|
|
|
4714
4714
|
Hr
|
|
4715
4715
|
];
|
|
4716
4716
|
}
|
|
4717
|
-
class
|
|
4717
|
+
class ho extends Kr {
|
|
4718
4718
|
constructor(t) {
|
|
4719
4719
|
super(), Jr(
|
|
4720
4720
|
this,
|
|
4721
4721
|
t,
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4722
|
+
lo,
|
|
4723
|
+
uo,
|
|
4724
|
+
kt,
|
|
4725
4725
|
{
|
|
4726
4726
|
endpoint: 9,
|
|
4727
4727
|
playerid: 10,
|
|
@@ -4731,7 +4731,7 @@ class hs extends Kr {
|
|
|
4731
4731
|
clientstylingurl: 14,
|
|
4732
4732
|
translationurl: 15
|
|
4733
4733
|
},
|
|
4734
|
-
|
|
4734
|
+
io,
|
|
4735
4735
|
[-1, -1]
|
|
4736
4736
|
);
|
|
4737
4737
|
}
|
|
@@ -4739,46 +4739,46 @@ class hs extends Kr {
|
|
|
4739
4739
|
return this.$$.ctx[9];
|
|
4740
4740
|
}
|
|
4741
4741
|
set endpoint(t) {
|
|
4742
|
-
this.$$set({ endpoint: t }),
|
|
4742
|
+
this.$$set({ endpoint: t }), $();
|
|
4743
4743
|
}
|
|
4744
4744
|
get playerid() {
|
|
4745
4745
|
return this.$$.ctx[10];
|
|
4746
4746
|
}
|
|
4747
4747
|
set playerid(t) {
|
|
4748
|
-
this.$$set({ playerid: t }),
|
|
4748
|
+
this.$$set({ playerid: t }), $();
|
|
4749
4749
|
}
|
|
4750
4750
|
get session() {
|
|
4751
4751
|
return this.$$.ctx[11];
|
|
4752
4752
|
}
|
|
4753
4753
|
set session(t) {
|
|
4754
|
-
this.$$set({ session: t }),
|
|
4754
|
+
this.$$set({ session: t }), $();
|
|
4755
4755
|
}
|
|
4756
4756
|
get lang() {
|
|
4757
4757
|
return this.$$.ctx[12];
|
|
4758
4758
|
}
|
|
4759
4759
|
set lang(t) {
|
|
4760
|
-
this.$$set({ lang: t }),
|
|
4760
|
+
this.$$set({ lang: t }), $();
|
|
4761
4761
|
}
|
|
4762
4762
|
get clientstyling() {
|
|
4763
4763
|
return this.$$.ctx[13];
|
|
4764
4764
|
}
|
|
4765
4765
|
set clientstyling(t) {
|
|
4766
|
-
this.$$set({ clientstyling: t }),
|
|
4766
|
+
this.$$set({ clientstyling: t }), $();
|
|
4767
4767
|
}
|
|
4768
4768
|
get clientstylingurl() {
|
|
4769
4769
|
return this.$$.ctx[14];
|
|
4770
4770
|
}
|
|
4771
4771
|
set clientstylingurl(t) {
|
|
4772
|
-
this.$$set({ clientstylingurl: t }),
|
|
4772
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
4773
4773
|
}
|
|
4774
4774
|
get translationurl() {
|
|
4775
4775
|
return this.$$.ctx[15];
|
|
4776
4776
|
}
|
|
4777
4777
|
set translationurl(t) {
|
|
4778
|
-
this.$$set({ translationurl: t }),
|
|
4778
|
+
this.$$set({ translationurl: t }), $();
|
|
4779
4779
|
}
|
|
4780
4780
|
}
|
|
4781
|
-
Yr(
|
|
4781
|
+
Yr(ho, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4782
4782
|
export {
|
|
4783
|
-
|
|
4783
|
+
ho as default
|
|
4784
4784
|
};
|