@everymatrix/player-account-gaming-limits-popup 1.54.12 → 1.56.0
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/{PlayerAccountGamingLimitsPopup-DOUc4vrQ.js → PlayerAccountGamingLimitsPopup-3ekOkbBb.js} +798 -779
- package/components/{PlayerAccountGamingLimitsPopup-DpJ3pgkN.cjs → PlayerAccountGamingLimitsPopup-CHfpMJfx.cjs} +3 -3
- package/components/{PlayerAccountGamingLimitsPopup-DeitwP5-.js → PlayerAccountGamingLimitsPopup-D7Oo_rhm.js} +757 -738
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var ir = Object.defineProperty, or = Object.defineProperties;
|
|
2
|
+
var ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ze = Object.getOwnPropertySymbols;
|
|
4
|
+
var sr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
sr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Ze)
|
|
9
|
+
for (var r of Ze(t))
|
|
10
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Qe = (e, t) => or(e, ar(t));
|
|
13
|
+
var I = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -29,25 +29,25 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function St(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ke() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ne(e) {
|
|
39
|
+
e.forEach(St);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ze(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function wt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
|
|
|
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 hr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function cr(e, t, r) {
|
|
66
|
+
const n = fr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = A("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function fr(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,50 +78,50 @@ function pr(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function pr(e, t) {
|
|
82
|
+
return P(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
85
85
|
t
|
|
86
86
|
), t.sheet;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ie(e, t, r) {
|
|
89
89
|
e.insertBefore(t, r || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function X(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
94
|
function A(e) {
|
|
95
95
|
return document.createElement(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function oe(e) {
|
|
98
98
|
return document.createTextNode(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function _e() {
|
|
101
|
+
return oe(" ");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
103
|
+
function dr() {
|
|
104
|
+
return oe("");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function mr(e, t, r, n) {
|
|
107
107
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function br(e) {
|
|
110
110
|
return function(t) {
|
|
111
111
|
return t.preventDefault(), e.call(this, t);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function C(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function vr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function We(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function yr(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -130,85 +130,85 @@ function gr(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let ee;
|
|
134
|
+
function K(e) {
|
|
135
|
+
ee = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
137
|
+
function gr() {
|
|
138
|
+
if (!ee) throw new Error("Function called outside component initialization");
|
|
139
|
+
return ee;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function xr(e) {
|
|
142
|
+
gr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
144
|
+
const D = [], Be = [];
|
|
145
|
+
let F = [];
|
|
146
|
+
const et = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ce = !1;
|
|
148
|
+
function Er() {
|
|
149
|
+
Ce || (Ce = !0, _r.then(L));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function Ae(e) {
|
|
152
|
+
F.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
154
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
155
|
+
let U = 0;
|
|
156
|
+
function L() {
|
|
157
|
+
if (U !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = ee;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t =
|
|
164
|
-
|
|
162
|
+
for (; U < D.length; ) {
|
|
163
|
+
const t = D[U];
|
|
164
|
+
U++, K(t), Tr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
|
-
throw
|
|
167
|
+
throw D.length = 0, U = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
for (let t = 0; t <
|
|
171
|
-
const r =
|
|
172
|
-
|
|
169
|
+
for (K(null), D.length = 0, U = 0; Be.length; ) Be.pop()();
|
|
170
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
171
|
+
const r = F[t];
|
|
172
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
176
|
-
for (;
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
F.length = 0;
|
|
175
|
+
} while (D.length);
|
|
176
|
+
for (; et.length; )
|
|
177
|
+
et.pop()();
|
|
178
|
+
Ce = !1, Ee.clear(), K(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Tr(e) {
|
|
181
181
|
if (e.fragment !== null) {
|
|
182
|
-
e.update(),
|
|
182
|
+
e.update(), ne(e.before_update);
|
|
183
183
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
184
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Sr(e) {
|
|
188
188
|
const t = [], r = [];
|
|
189
|
-
|
|
189
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
190
190
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
191
|
+
const wr = /* @__PURE__ */ new Set();
|
|
192
|
+
function Pr(e, t) {
|
|
193
|
+
e && e.i && (wr.delete(e), e.i(t));
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Hr(e, t, r) {
|
|
196
196
|
const { fragment: n, after_update: i } = e.$$;
|
|
197
|
-
n && n.m(t, r),
|
|
198
|
-
const o = e.$$.on_mount.map(
|
|
199
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
200
|
-
}), i.forEach(
|
|
197
|
+
n && n.m(t, r), Ae(() => {
|
|
198
|
+
const o = e.$$.on_mount.map(St).filter(ze);
|
|
199
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
200
|
+
}), i.forEach(Ae);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Ir(e, t) {
|
|
203
203
|
const r = e.$$;
|
|
204
|
-
r.fragment !== null && (
|
|
204
|
+
r.fragment !== null && (Sr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
205
205
|
}
|
|
206
206
|
function Br(e, t) {
|
|
207
|
-
e.$$.dirty[0] === -1 && (
|
|
207
|
+
e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const l =
|
|
211
|
-
|
|
209
|
+
function Cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
210
|
+
const l = ee;
|
|
211
|
+
K(e);
|
|
212
212
|
const u = e.$$ = {
|
|
213
213
|
fragment: null,
|
|
214
214
|
ctx: [],
|
|
@@ -216,7 +216,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
216
216
|
props: o,
|
|
217
217
|
update: O,
|
|
218
218
|
not_equal: i,
|
|
219
|
-
bound:
|
|
219
|
+
bound: Ke(),
|
|
220
220
|
// lifecycle
|
|
221
221
|
on_mount: [],
|
|
222
222
|
on_destroy: [],
|
|
@@ -225,7 +225,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
225
225
|
after_update: [],
|
|
226
226
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
227
227
|
// everything else
|
|
228
|
-
callbacks:
|
|
228
|
+
callbacks: Ke(),
|
|
229
229
|
dirty: s,
|
|
230
230
|
skip_bound: !1,
|
|
231
231
|
root: t.target || l.$$.root
|
|
@@ -233,40 +233,40 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
233
233
|
a && a(u.root);
|
|
234
234
|
let h = !1;
|
|
235
235
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
236
|
-
const
|
|
237
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
238
|
-
}) : [], u.update(), h = !0,
|
|
236
|
+
const d = p.length ? p[0] : c;
|
|
237
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Br(e, f)), c;
|
|
238
|
+
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
239
239
|
if (t.hydrate) {
|
|
240
|
-
const f =
|
|
241
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
240
|
+
const f = vr(t.target);
|
|
241
|
+
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
242
242
|
} else
|
|
243
243
|
u.fragment && u.fragment.c();
|
|
244
|
-
t.intro &&
|
|
244
|
+
t.intro && Pr(e.$$.fragment), Hr(e, t.target, t.anchor), L();
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
K(l);
|
|
247
247
|
}
|
|
248
|
-
let
|
|
249
|
-
typeof HTMLElement == "function" && (
|
|
248
|
+
let Ht;
|
|
249
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
250
250
|
constructor(t, r, n) {
|
|
251
251
|
super();
|
|
252
252
|
/** The Svelte component constructor */
|
|
253
|
-
|
|
253
|
+
I(this, "$$ctor");
|
|
254
254
|
/** Slots */
|
|
255
|
-
|
|
255
|
+
I(this, "$$s");
|
|
256
256
|
/** The Svelte component instance */
|
|
257
|
-
|
|
257
|
+
I(this, "$$c");
|
|
258
258
|
/** Whether or not the custom element is connected */
|
|
259
|
-
|
|
259
|
+
I(this, "$$cn", !1);
|
|
260
260
|
/** Component props data */
|
|
261
|
-
|
|
261
|
+
I(this, "$$d", {});
|
|
262
262
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
263
|
-
|
|
263
|
+
I(this, "$$r", !1);
|
|
264
264
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
265
|
-
|
|
265
|
+
I(this, "$$p_d", {});
|
|
266
266
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
267
|
-
|
|
267
|
+
I(this, "$$l", {});
|
|
268
268
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
269
|
-
|
|
269
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
270
270
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
271
271
|
}
|
|
272
272
|
addEventListener(t, r, n) {
|
|
@@ -283,42 +283,42 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
connectedCallback() {
|
|
286
|
-
return
|
|
286
|
+
return Je(this, null, function* () {
|
|
287
287
|
if (this.$$cn = !0, !this.$$c) {
|
|
288
288
|
let t = function(o) {
|
|
289
289
|
return () => {
|
|
290
290
|
let a;
|
|
291
291
|
return {
|
|
292
292
|
c: function() {
|
|
293
|
-
a = A("slot"), o !== "default" &&
|
|
293
|
+
a = A("slot"), o !== "default" && C(a, "name", o);
|
|
294
294
|
},
|
|
295
295
|
/**
|
|
296
296
|
* @param {HTMLElement} target
|
|
297
297
|
* @param {HTMLElement} [anchor]
|
|
298
298
|
*/
|
|
299
299
|
m: function(u, h) {
|
|
300
|
-
|
|
300
|
+
ie(u, a, h);
|
|
301
301
|
},
|
|
302
302
|
d: function(u) {
|
|
303
|
-
u &&
|
|
303
|
+
u && X(a);
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
309
309
|
return;
|
|
310
|
-
const r = {}, n =
|
|
310
|
+
const r = {}, n = yr(this);
|
|
311
311
|
for (const o of this.$$s)
|
|
312
312
|
o in n && (r[o] = [t(o)]);
|
|
313
313
|
for (const o of this.attributes) {
|
|
314
314
|
const a = this.$$g_p(o.name);
|
|
315
|
-
a in this.$$d || (this.$$d[a] =
|
|
315
|
+
a in this.$$d || (this.$$d[a] = le(a, o.value, this.$$p_d, "toProp"));
|
|
316
316
|
}
|
|
317
317
|
for (const o in this.$$p_d)
|
|
318
318
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
319
319
|
this.$$c = new this.$$ctor({
|
|
320
320
|
target: this.shadowRoot || this,
|
|
321
|
-
props:
|
|
321
|
+
props: Qe(Ye({}, this.$$d), {
|
|
322
322
|
$$slots: r,
|
|
323
323
|
$$scope: {
|
|
324
324
|
ctx: []
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
329
329
|
this.$$r = !0;
|
|
330
330
|
for (const o in this.$$p_d)
|
|
331
331
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
332
|
-
const a =
|
|
332
|
+
const a = le(
|
|
333
333
|
o,
|
|
334
334
|
this.$$d[o],
|
|
335
335
|
this.$$p_d,
|
|
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
353
353
|
// and setting attributes through setAttribute etc, this is helpful
|
|
354
354
|
attributeChangedCallback(t, r, n) {
|
|
355
355
|
var i;
|
|
356
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
356
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
357
357
|
}
|
|
358
358
|
disconnectedCallback() {
|
|
359
359
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
366
366
|
) || t;
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
|
-
function
|
|
369
|
+
function le(e, t, r, n) {
|
|
370
370
|
var o;
|
|
371
371
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
372
372
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -396,8 +396,8 @@ function he(e, t, r, n) {
|
|
|
396
396
|
return t;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
let a = class extends
|
|
399
|
+
function Ar(e, t, r, n, i, o) {
|
|
400
|
+
let a = class extends Ht {
|
|
401
401
|
constructor() {
|
|
402
402
|
super(e, r, i), this.$$p_d = t;
|
|
403
403
|
}
|
|
@@ -414,7 +414,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
414
414
|
},
|
|
415
415
|
set(l) {
|
|
416
416
|
var u;
|
|
417
|
-
l =
|
|
417
|
+
l = le(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
420
|
}), n.forEach((s) => {
|
|
@@ -427,7 +427,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
427
427
|
}), e.element = /** @type {any} */
|
|
428
428
|
a, a;
|
|
429
429
|
}
|
|
430
|
-
class
|
|
430
|
+
class Or {
|
|
431
431
|
constructor() {
|
|
432
432
|
/**
|
|
433
433
|
* ### PRIVATE API
|
|
@@ -436,7 +436,7 @@ class Lr {
|
|
|
436
436
|
*
|
|
437
437
|
* @type {any}
|
|
438
438
|
*/
|
|
439
|
-
|
|
439
|
+
I(this, "$$");
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
442
442
|
*
|
|
@@ -444,11 +444,11 @@ class Lr {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
I(this, "$$set");
|
|
448
448
|
}
|
|
449
449
|
/** @returns {void} */
|
|
450
450
|
$destroy() {
|
|
451
|
-
|
|
451
|
+
Ir(this, 1), this.$destroy = O;
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
454
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -457,7 +457,7 @@ class Lr {
|
|
|
457
457
|
* @returns {() => void}
|
|
458
458
|
*/
|
|
459
459
|
$on(t, r) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!ze(r))
|
|
461
461
|
return O;
|
|
462
462
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
463
463
|
return n.push(r), () => {
|
|
@@ -470,35 +470,35 @@ class Lr {
|
|
|
470
470
|
* @returns {void}
|
|
471
471
|
*/
|
|
472
472
|
$set(t) {
|
|
473
|
-
this.$$set && !
|
|
473
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
const
|
|
477
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
478
|
-
var
|
|
479
|
-
return
|
|
476
|
+
const Lr = "4";
|
|
477
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
478
|
+
var Oe = function(e, t) {
|
|
479
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
480
480
|
r.__proto__ = n;
|
|
481
481
|
} || function(r, n) {
|
|
482
482
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
483
|
-
},
|
|
483
|
+
}, Oe(e, t);
|
|
484
484
|
};
|
|
485
|
-
function
|
|
485
|
+
function N(e, t) {
|
|
486
486
|
if (typeof t != "function" && t !== null)
|
|
487
487
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
488
|
-
|
|
488
|
+
Oe(e, t);
|
|
489
489
|
function r() {
|
|
490
490
|
this.constructor = e;
|
|
491
491
|
}
|
|
492
492
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
return
|
|
494
|
+
var y = function() {
|
|
495
|
+
return y = Object.assign || function(t) {
|
|
496
496
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
497
497
|
r = arguments[n];
|
|
498
498
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
499
499
|
}
|
|
500
500
|
return t;
|
|
501
|
-
},
|
|
501
|
+
}, y.apply(this, arguments);
|
|
502
502
|
};
|
|
503
503
|
function Mr(e, t) {
|
|
504
504
|
var r = {};
|
|
@@ -508,7 +508,7 @@ function Mr(e, t) {
|
|
|
508
508
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
509
509
|
return r;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Le(e) {
|
|
512
512
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
513
513
|
if (r) return r.call(e);
|
|
514
514
|
if (e && typeof e.length == "number") return {
|
|
@@ -535,7 +535,7 @@ function Me(e, t) {
|
|
|
535
535
|
}
|
|
536
536
|
return o;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function j(e, t, r) {
|
|
539
539
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
540
540
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
541
541
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -543,13 +543,13 @@ function V(e, t, r) {
|
|
|
543
543
|
function M(e) {
|
|
544
544
|
return typeof e == "function";
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function It(e) {
|
|
547
547
|
var t = function(n) {
|
|
548
548
|
Error.call(n), n.stack = new Error().stack;
|
|
549
549
|
}, r = e(t);
|
|
550
550
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Te = It(function(e) {
|
|
553
553
|
return function(r) {
|
|
554
554
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
555
555
|
` + r.map(function(n, i) {
|
|
@@ -558,13 +558,13 @@ var Se = Ct(function(e) {
|
|
|
558
558
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
559
559
|
};
|
|
560
560
|
});
|
|
561
|
-
function
|
|
561
|
+
function Ne(e, t) {
|
|
562
562
|
if (e) {
|
|
563
563
|
var r = e.indexOf(t);
|
|
564
564
|
0 <= r && e.splice(r, 1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
var
|
|
567
|
+
var me = function() {
|
|
568
568
|
function e(t) {
|
|
569
569
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
570
570
|
}
|
|
@@ -576,12 +576,12 @@ var be = function() {
|
|
|
576
576
|
if (a)
|
|
577
577
|
if (this._parentage = null, Array.isArray(a))
|
|
578
578
|
try {
|
|
579
|
-
for (var s =
|
|
579
|
+
for (var s = Le(a), l = s.next(); !l.done; l = s.next()) {
|
|
580
580
|
var u = l.value;
|
|
581
581
|
u.remove(this);
|
|
582
582
|
}
|
|
583
|
-
} catch (
|
|
584
|
-
t = { error:
|
|
583
|
+
} catch (g) {
|
|
584
|
+
t = { error: g };
|
|
585
585
|
} finally {
|
|
586
586
|
try {
|
|
587
587
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -595,23 +595,23 @@ var be = function() {
|
|
|
595
595
|
if (M(h))
|
|
596
596
|
try {
|
|
597
597
|
h();
|
|
598
|
-
} catch (
|
|
599
|
-
o =
|
|
598
|
+
} catch (g) {
|
|
599
|
+
o = g instanceof Te ? g.errors : [g];
|
|
600
600
|
}
|
|
601
601
|
var f = this._finalizers;
|
|
602
602
|
if (f) {
|
|
603
603
|
this._finalizers = null;
|
|
604
604
|
try {
|
|
605
|
-
for (var c =
|
|
606
|
-
var
|
|
605
|
+
for (var c = Le(f), p = c.next(); !p.done; p = c.next()) {
|
|
606
|
+
var d = p.value;
|
|
607
607
|
try {
|
|
608
|
-
|
|
609
|
-
} catch (
|
|
610
|
-
o = o != null ? o : [],
|
|
608
|
+
tt(d);
|
|
609
|
+
} catch (g) {
|
|
610
|
+
o = o != null ? o : [], g instanceof Te ? o = j(j([], Me(o)), Me(g.errors)) : o.push(g);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
} catch (
|
|
614
|
-
n = { error:
|
|
613
|
+
} catch (g) {
|
|
614
|
+
n = { error: g };
|
|
615
615
|
} finally {
|
|
616
616
|
try {
|
|
617
617
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -621,13 +621,13 @@ var be = function() {
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
if (o)
|
|
624
|
-
throw new
|
|
624
|
+
throw new Te(o);
|
|
625
625
|
}
|
|
626
626
|
}, e.prototype.add = function(t) {
|
|
627
627
|
var r;
|
|
628
628
|
if (t && t !== this)
|
|
629
629
|
if (this.closed)
|
|
630
|
-
|
|
630
|
+
tt(t);
|
|
631
631
|
else {
|
|
632
632
|
if (t instanceof e) {
|
|
633
633
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,49 +644,49 @@ var be = function() {
|
|
|
644
644
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
645
645
|
}, e.prototype._removeParent = function(t) {
|
|
646
646
|
var r = this._parentage;
|
|
647
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
647
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
|
|
648
648
|
}, e.prototype.remove = function(t) {
|
|
649
649
|
var r = this._finalizers;
|
|
650
|
-
r &&
|
|
650
|
+
r && Ne(r, t), t instanceof e && t._removeParent(this);
|
|
651
651
|
}, e.EMPTY = function() {
|
|
652
652
|
var t = new e();
|
|
653
653
|
return t.closed = !0, t;
|
|
654
654
|
}(), e;
|
|
655
|
-
}(), Bt =
|
|
656
|
-
function
|
|
657
|
-
return e instanceof
|
|
655
|
+
}(), Bt = me.EMPTY;
|
|
656
|
+
function Ct(e) {
|
|
657
|
+
return e instanceof me || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function tt(e) {
|
|
660
660
|
M(e) ? e() : e.unsubscribe();
|
|
661
661
|
}
|
|
662
|
-
var
|
|
662
|
+
var Nr = {
|
|
663
663
|
Promise: void 0
|
|
664
664
|
}, Rr = {
|
|
665
665
|
setTimeout: function(e, t) {
|
|
666
666
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
667
667
|
r[n - 2] = arguments[n];
|
|
668
|
-
return setTimeout.apply(void 0,
|
|
668
|
+
return setTimeout.apply(void 0, j([e, t], Me(r)));
|
|
669
669
|
},
|
|
670
670
|
clearTimeout: function(e) {
|
|
671
671
|
return clearTimeout(e);
|
|
672
672
|
},
|
|
673
673
|
delegate: void 0
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function $r(e) {
|
|
676
676
|
Rr.setTimeout(function() {
|
|
677
677
|
throw e;
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function rt() {
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function he(e) {
|
|
683
683
|
e();
|
|
684
684
|
}
|
|
685
|
-
var
|
|
686
|
-
|
|
685
|
+
var At = function(e) {
|
|
686
|
+
N(t, e);
|
|
687
687
|
function t(r) {
|
|
688
688
|
var n = e.call(this) || this;
|
|
689
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
689
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Dr, n;
|
|
690
690
|
}
|
|
691
691
|
return t.create = function(r, n, i) {
|
|
692
692
|
return new Re(r, n, i);
|
|
@@ -713,7 +713,7 @@ var Ot = function(e) {
|
|
|
713
713
|
this.unsubscribe();
|
|
714
714
|
}
|
|
715
715
|
}, t;
|
|
716
|
-
}(
|
|
716
|
+
}(me), Ur = function() {
|
|
717
717
|
function e(t) {
|
|
718
718
|
this.partialObserver = t;
|
|
719
719
|
}
|
|
@@ -723,7 +723,7 @@ var Ot = function(e) {
|
|
|
723
723
|
try {
|
|
724
724
|
r.next(t);
|
|
725
725
|
} catch (n) {
|
|
726
|
-
|
|
726
|
+
se(n);
|
|
727
727
|
}
|
|
728
728
|
}, e.prototype.error = function(t) {
|
|
729
729
|
var r = this.partialObserver;
|
|
@@ -731,56 +731,56 @@ var Ot = function(e) {
|
|
|
731
731
|
try {
|
|
732
732
|
r.error(t);
|
|
733
733
|
} catch (n) {
|
|
734
|
-
|
|
734
|
+
se(n);
|
|
735
735
|
}
|
|
736
736
|
else
|
|
737
|
-
|
|
737
|
+
se(t);
|
|
738
738
|
}, e.prototype.complete = function() {
|
|
739
739
|
var t = this.partialObserver;
|
|
740
740
|
if (t.complete)
|
|
741
741
|
try {
|
|
742
742
|
t.complete();
|
|
743
743
|
} catch (r) {
|
|
744
|
-
|
|
744
|
+
se(r);
|
|
745
745
|
}
|
|
746
746
|
}, e;
|
|
747
747
|
}(), Re = function(e) {
|
|
748
|
-
|
|
748
|
+
N(t, e);
|
|
749
749
|
function t(r, n, i) {
|
|
750
750
|
var o = e.call(this) || this, a;
|
|
751
751
|
return M(r) || !r ? a = {
|
|
752
752
|
next: r != null ? r : void 0,
|
|
753
753
|
error: n != null ? n : void 0,
|
|
754
754
|
complete: i != null ? i : void 0
|
|
755
|
-
} : a = r, o.destination = new
|
|
755
|
+
} : a = r, o.destination = new Ur(a), o;
|
|
756
756
|
}
|
|
757
757
|
return t;
|
|
758
|
-
}(
|
|
759
|
-
function
|
|
760
|
-
|
|
758
|
+
}(At);
|
|
759
|
+
function se(e) {
|
|
760
|
+
$r(e);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Gr(e) {
|
|
763
763
|
throw e;
|
|
764
764
|
}
|
|
765
|
-
var
|
|
765
|
+
var Dr = {
|
|
766
766
|
closed: !0,
|
|
767
|
-
next:
|
|
768
|
-
error:
|
|
769
|
-
complete:
|
|
770
|
-
},
|
|
767
|
+
next: rt,
|
|
768
|
+
error: Gr,
|
|
769
|
+
complete: rt
|
|
770
|
+
}, Fr = function() {
|
|
771
771
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
772
772
|
}();
|
|
773
|
-
function
|
|
773
|
+
function jr(e) {
|
|
774
774
|
return e;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.length === 0 ?
|
|
776
|
+
function kr(e) {
|
|
777
|
+
return e.length === 0 ? jr : e.length === 1 ? e[0] : function(r) {
|
|
778
778
|
return e.reduce(function(n, i) {
|
|
779
779
|
return i(n);
|
|
780
780
|
}, r);
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
var
|
|
783
|
+
var nt = function() {
|
|
784
784
|
function e(t) {
|
|
785
785
|
t && (this._subscribe = t);
|
|
786
786
|
}
|
|
@@ -788,8 +788,8 @@ var it = function() {
|
|
|
788
788
|
var r = new e();
|
|
789
789
|
return r.source = this, r.operator = t, r;
|
|
790
790
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
791
|
-
var i = this, o =
|
|
792
|
-
return
|
|
791
|
+
var i = this, o = zr(t) ? t : new Re(t, r, n);
|
|
792
|
+
return he(function() {
|
|
793
793
|
var a = i, s = a.operator, l = a.source;
|
|
794
794
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
795
795
|
}), o;
|
|
@@ -801,7 +801,7 @@ var it = function() {
|
|
|
801
801
|
}
|
|
802
802
|
}, e.prototype.forEach = function(t, r) {
|
|
803
803
|
var n = this;
|
|
804
|
-
return r =
|
|
804
|
+
return r = it(r), new r(function(i, o) {
|
|
805
805
|
var a = new Re({
|
|
806
806
|
next: function(s) {
|
|
807
807
|
try {
|
|
@@ -818,15 +818,15 @@ var it = function() {
|
|
|
818
818
|
}, e.prototype._subscribe = function(t) {
|
|
819
819
|
var r;
|
|
820
820
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
821
|
-
}, e.prototype[
|
|
821
|
+
}, e.prototype[Fr] = function() {
|
|
822
822
|
return this;
|
|
823
823
|
}, e.prototype.pipe = function() {
|
|
824
824
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
825
825
|
t[r] = arguments[r];
|
|
826
|
-
return
|
|
826
|
+
return kr(t)(this);
|
|
827
827
|
}, e.prototype.toPromise = function(t) {
|
|
828
828
|
var r = this;
|
|
829
|
-
return t =
|
|
829
|
+
return t = it(t), new t(function(n, i) {
|
|
830
830
|
var o;
|
|
831
831
|
r.subscribe(function(a) {
|
|
832
832
|
return o = a;
|
|
@@ -840,40 +840,40 @@ var it = function() {
|
|
|
840
840
|
return new e(t);
|
|
841
841
|
}, e;
|
|
842
842
|
}();
|
|
843
|
-
function
|
|
843
|
+
function it(e) {
|
|
844
844
|
var t;
|
|
845
|
-
return (t = e != null ? e :
|
|
845
|
+
return (t = e != null ? e : Nr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Vr(e) {
|
|
848
848
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
return e && e instanceof
|
|
850
|
+
function zr(e) {
|
|
851
|
+
return e && e instanceof At || Vr(e) && Ct(e);
|
|
852
852
|
}
|
|
853
|
-
var
|
|
853
|
+
var Wr = It(function(e) {
|
|
854
854
|
return function() {
|
|
855
855
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
856
856
|
};
|
|
857
|
-
}),
|
|
858
|
-
|
|
857
|
+
}), Ot = function(e) {
|
|
858
|
+
N(t, e);
|
|
859
859
|
function t() {
|
|
860
860
|
var r = e.call(this) || this;
|
|
861
861
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
862
862
|
}
|
|
863
863
|
return t.prototype.lift = function(r) {
|
|
864
|
-
var n = new
|
|
864
|
+
var n = new ot(this, this);
|
|
865
865
|
return n.operator = r, n;
|
|
866
866
|
}, t.prototype._throwIfClosed = function() {
|
|
867
867
|
if (this.closed)
|
|
868
|
-
throw new
|
|
868
|
+
throw new Wr();
|
|
869
869
|
}, t.prototype.next = function(r) {
|
|
870
870
|
var n = this;
|
|
871
|
-
|
|
871
|
+
he(function() {
|
|
872
872
|
var i, o;
|
|
873
873
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
874
874
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
875
875
|
try {
|
|
876
|
-
for (var a =
|
|
876
|
+
for (var a = Le(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
877
877
|
var l = s.value;
|
|
878
878
|
l.next(r);
|
|
879
879
|
}
|
|
@@ -890,7 +890,7 @@ var Xr = Ct(function(e) {
|
|
|
890
890
|
});
|
|
891
891
|
}, t.prototype.error = function(r) {
|
|
892
892
|
var n = this;
|
|
893
|
-
|
|
893
|
+
he(function() {
|
|
894
894
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
895
895
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
896
896
|
for (var i = n.observers; i.length; )
|
|
@@ -899,7 +899,7 @@ var Xr = Ct(function(e) {
|
|
|
899
899
|
});
|
|
900
900
|
}, t.prototype.complete = function() {
|
|
901
901
|
var r = this;
|
|
902
|
-
|
|
902
|
+
he(function() {
|
|
903
903
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
904
904
|
r.isStopped = !0;
|
|
905
905
|
for (var n = r.observers; n.length; )
|
|
@@ -921,20 +921,20 @@ var Xr = Ct(function(e) {
|
|
|
921
921
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
922
922
|
}, t.prototype._innerSubscribe = function(r) {
|
|
923
923
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
924
|
-
return o || a ? Bt : (this.currentObservers = null, s.push(r), new
|
|
925
|
-
n.currentObservers = null,
|
|
924
|
+
return o || a ? Bt : (this.currentObservers = null, s.push(r), new me(function() {
|
|
925
|
+
n.currentObservers = null, Ne(s, r);
|
|
926
926
|
}));
|
|
927
927
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
928
928
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
929
929
|
i ? r.error(o) : a && r.complete();
|
|
930
930
|
}, t.prototype.asObservable = function() {
|
|
931
|
-
var r = new
|
|
931
|
+
var r = new nt();
|
|
932
932
|
return r.source = this, r;
|
|
933
933
|
}, t.create = function(r, n) {
|
|
934
|
-
return new
|
|
934
|
+
return new ot(r, n);
|
|
935
935
|
}, t;
|
|
936
|
-
}(
|
|
937
|
-
|
|
936
|
+
}(nt), ot = function(e) {
|
|
937
|
+
N(t, e);
|
|
938
938
|
function t(r, n) {
|
|
939
939
|
var i = e.call(this) || this;
|
|
940
940
|
return i.destination = r, i.source = n, i;
|
|
@@ -952,15 +952,15 @@ var Xr = Ct(function(e) {
|
|
|
952
952
|
var n, i;
|
|
953
953
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Bt;
|
|
954
954
|
}, t;
|
|
955
|
-
}(
|
|
955
|
+
}(Ot), Lt = {
|
|
956
956
|
now: function() {
|
|
957
|
-
return (
|
|
957
|
+
return (Lt.delegate || Date).now();
|
|
958
958
|
},
|
|
959
959
|
delegate: void 0
|
|
960
|
-
},
|
|
961
|
-
|
|
960
|
+
}, Xr = function(e) {
|
|
961
|
+
N(t, e);
|
|
962
962
|
function t(r, n, i) {
|
|
963
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
963
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
964
964
|
var o = e.call(this) || this;
|
|
965
965
|
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;
|
|
966
966
|
}
|
|
@@ -980,31 +980,31 @@ var Xr = Ct(function(e) {
|
|
|
980
980
|
u && o.splice(0, u + 1);
|
|
981
981
|
}
|
|
982
982
|
}, t;
|
|
983
|
-
}(
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
const r = new
|
|
987
|
-
|
|
983
|
+
}(Ot);
|
|
984
|
+
const at = [], st = {}, qr = (e, t = 0) => {
|
|
985
|
+
if (at.indexOf(e) == -1) {
|
|
986
|
+
const r = new Xr(t);
|
|
987
|
+
st[e] = r, at.push(e);
|
|
988
988
|
}
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
function
|
|
989
|
+
return st[e];
|
|
990
|
+
}, G = [];
|
|
991
|
+
function Zr(e, t) {
|
|
992
992
|
return {
|
|
993
|
-
subscribe:
|
|
993
|
+
subscribe: be(e, t).subscribe
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function be(e, t = O) {
|
|
997
997
|
let r;
|
|
998
998
|
const n = /* @__PURE__ */ new Set();
|
|
999
999
|
function i(s) {
|
|
1000
|
-
if (
|
|
1001
|
-
const l = !
|
|
1000
|
+
if (wt(e, s) && (e = s, r)) {
|
|
1001
|
+
const l = !G.length;
|
|
1002
1002
|
for (const u of n)
|
|
1003
|
-
u[1](),
|
|
1003
|
+
u[1](), G.push(u, e);
|
|
1004
1004
|
if (l) {
|
|
1005
|
-
for (let u = 0; u <
|
|
1006
|
-
|
|
1007
|
-
|
|
1005
|
+
for (let u = 0; u < G.length; u += 2)
|
|
1006
|
+
G[u][0](G[u + 1]);
|
|
1007
|
+
G.length = 0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1019,12 +1019,12 @@ function ve(e, t = O) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
return { set: i, update: o, subscribe: a };
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function q(e, t, r) {
|
|
1023
1023
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1024
1024
|
if (!i.every(Boolean))
|
|
1025
1025
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1026
1026
|
const o = t.length < 2;
|
|
1027
|
-
return
|
|
1027
|
+
return Zr(r, (a, s) => {
|
|
1028
1028
|
let l = !1;
|
|
1029
1029
|
const u = [];
|
|
1030
1030
|
let h = 0, f = O;
|
|
@@ -1032,65 +1032,65 @@ function Y(e, t, r) {
|
|
|
1032
1032
|
if (h)
|
|
1033
1033
|
return;
|
|
1034
1034
|
f();
|
|
1035
|
-
const
|
|
1036
|
-
o ? a(
|
|
1035
|
+
const d = t(n ? u[0] : u, a, s);
|
|
1036
|
+
o ? a(d) : f = ze(d) ? d : O;
|
|
1037
1037
|
}, p = i.map(
|
|
1038
|
-
(
|
|
1039
|
-
|
|
1038
|
+
(d, g) => Pt(
|
|
1039
|
+
d,
|
|
1040
1040
|
(S) => {
|
|
1041
|
-
u[
|
|
1041
|
+
u[g] = S, h &= ~(1 << g), l && c();
|
|
1042
1042
|
},
|
|
1043
1043
|
() => {
|
|
1044
|
-
h |= 1 <<
|
|
1044
|
+
h |= 1 << g;
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
1047
1047
|
);
|
|
1048
1048
|
return l = !0, c(), function() {
|
|
1049
|
-
|
|
1049
|
+
ne(p), f(), l = !1;
|
|
1050
1050
|
};
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Yr(e) {
|
|
1054
1054
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1057
|
-
return
|
|
1056
|
+
var Qr = function(t) {
|
|
1057
|
+
return Jr(t) && !Kr(t);
|
|
1058
1058
|
};
|
|
1059
|
-
function
|
|
1059
|
+
function Jr(e) {
|
|
1060
1060
|
return !!e && typeof e == "object";
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Kr(e) {
|
|
1063
1063
|
var t = Object.prototype.toString.call(e);
|
|
1064
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1064
|
+
return t === "[object RegExp]" || t === "[object Date]" || rn(e);
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1067
|
-
function
|
|
1068
|
-
return e.$$typeof ===
|
|
1066
|
+
var en = typeof Symbol == "function" && Symbol.for, tn = en ? Symbol.for("react.element") : 60103;
|
|
1067
|
+
function rn(e) {
|
|
1068
|
+
return e.$$typeof === tn;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function nn(e) {
|
|
1071
1071
|
return Array.isArray(e) ? [] : {};
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1073
|
+
function te(e, t) {
|
|
1074
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(nn(e), e, t) : e;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function on(e, t, r) {
|
|
1077
1077
|
return e.concat(t).map(function(n) {
|
|
1078
|
-
return
|
|
1078
|
+
return te(n, r);
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function an(e, t) {
|
|
1082
1082
|
if (!t.customMerge)
|
|
1083
|
-
return
|
|
1083
|
+
return k;
|
|
1084
1084
|
var r = t.customMerge(e);
|
|
1085
|
-
return typeof r == "function" ? r :
|
|
1085
|
+
return typeof r == "function" ? r : k;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function sn(e) {
|
|
1088
1088
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1089
1089
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1090
1090
|
}) : [];
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return Object.keys(e).concat(
|
|
1092
|
+
function ut(e) {
|
|
1093
|
+
return Object.keys(e).concat(sn(e));
|
|
1094
1094
|
}
|
|
1095
1095
|
function Mt(e, t) {
|
|
1096
1096
|
try {
|
|
@@ -1099,62 +1099,62 @@ function Mt(e, t) {
|
|
|
1099
1099
|
return !1;
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function un(e, t) {
|
|
1103
1103
|
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function ln(e, t, r) {
|
|
1106
1106
|
var n = {};
|
|
1107
|
-
return r.isMergeableObject(e) &&
|
|
1108
|
-
n[i] =
|
|
1109
|
-
}),
|
|
1110
|
-
|
|
1107
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1108
|
+
n[i] = te(e[i], r);
|
|
1109
|
+
}), ut(t).forEach(function(i) {
|
|
1110
|
+
un(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1111
1111
|
}), n;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1113
|
+
function k(e, t, r) {
|
|
1114
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || on, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1115
1115
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1116
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1116
|
+
return o ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : te(t, r);
|
|
1117
1117
|
}
|
|
1118
|
-
|
|
1118
|
+
k.all = function(t, r) {
|
|
1119
1119
|
if (!Array.isArray(t))
|
|
1120
1120
|
throw new Error("first argument should be an array");
|
|
1121
1121
|
return t.reduce(function(n, i) {
|
|
1122
|
-
return
|
|
1122
|
+
return k(n, i, r);
|
|
1123
1123
|
}, {});
|
|
1124
1124
|
};
|
|
1125
|
-
var
|
|
1126
|
-
const
|
|
1127
|
-
function
|
|
1128
|
-
var r = t && t.cache ? t.cache :
|
|
1125
|
+
var hn = k, cn = hn;
|
|
1126
|
+
const fn = /* @__PURE__ */ Yr(cn);
|
|
1127
|
+
function Se(e, t) {
|
|
1128
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : mn;
|
|
1129
1129
|
return i(e, {
|
|
1130
1130
|
cache: r,
|
|
1131
1131
|
serializer: n
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function pn(e) {
|
|
1135
1135
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
var i =
|
|
1137
|
+
function dn(e, t, r, n) {
|
|
1138
|
+
var i = pn(n) ? n : r(n), o = t.get(i);
|
|
1139
1139
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Nt(e, t, r) {
|
|
1142
1142
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1143
1143
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1144
1144
|
}
|
|
1145
1145
|
function Rt(e, t, r, n, i) {
|
|
1146
1146
|
return r.bind(t, e, n, i);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
var r = e.length === 1 ?
|
|
1148
|
+
function mn(e, t) {
|
|
1149
|
+
var r = e.length === 1 ? dn : Nt;
|
|
1150
1150
|
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return Rt(e, this,
|
|
1152
|
+
function bn(e, t) {
|
|
1153
|
+
return Rt(e, this, Nt, t.cache.create(), t.serializer);
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1155
|
+
var vn = function() {
|
|
1156
1156
|
return JSON.stringify(arguments);
|
|
1157
|
-
},
|
|
1157
|
+
}, yn = (
|
|
1158
1158
|
/** @class */
|
|
1159
1159
|
function() {
|
|
1160
1160
|
function e() {
|
|
@@ -1166,61 +1166,61 @@ var yn = function() {
|
|
|
1166
1166
|
this.cache[t] = r;
|
|
1167
1167
|
}, e;
|
|
1168
1168
|
}()
|
|
1169
|
-
),
|
|
1169
|
+
), gn = {
|
|
1170
1170
|
create: function() {
|
|
1171
|
-
return new
|
|
1171
|
+
return new yn();
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1174
|
-
variadic:
|
|
1175
|
-
},
|
|
1173
|
+
}, we = {
|
|
1174
|
+
variadic: bn
|
|
1175
|
+
}, b;
|
|
1176
1176
|
(function(e) {
|
|
1177
1177
|
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";
|
|
1178
|
-
})(
|
|
1178
|
+
})(b || (b = {}));
|
|
1179
1179
|
var _;
|
|
1180
1180
|
(function(e) {
|
|
1181
1181
|
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";
|
|
1182
1182
|
})(_ || (_ = {}));
|
|
1183
|
-
var
|
|
1183
|
+
var V;
|
|
1184
1184
|
(function(e) {
|
|
1185
1185
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1186
|
-
})(
|
|
1187
|
-
function
|
|
1186
|
+
})(V || (V = {}));
|
|
1187
|
+
function lt(e) {
|
|
1188
1188
|
return e.type === _.literal;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function xn(e) {
|
|
1191
1191
|
return e.type === _.argument;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function $t(e) {
|
|
1194
1194
|
return e.type === _.number;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Ut(e) {
|
|
1197
1197
|
return e.type === _.date;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Gt(e) {
|
|
1200
1200
|
return e.type === _.time;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Dt(e) {
|
|
1203
1203
|
return e.type === _.select;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Ft(e) {
|
|
1206
1206
|
return e.type === _.plural;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function _n(e) {
|
|
1209
1209
|
return e.type === _.pound;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function jt(e) {
|
|
1212
1212
|
return e.type === _.tag;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1214
|
+
function kt(e) {
|
|
1215
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1217
|
+
function $e(e) {
|
|
1218
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1221
|
-
function
|
|
1220
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
|
|
1221
|
+
function Tn(e) {
|
|
1222
1222
|
var t = {};
|
|
1223
|
-
return e.replace(
|
|
1223
|
+
return e.replace(En, function(r) {
|
|
1224
1224
|
var n = r.length;
|
|
1225
1225
|
switch (r[0]) {
|
|
1226
1226
|
case "G":
|
|
@@ -1309,11 +1309,11 @@ function Sn(e) {
|
|
|
1309
1309
|
return "";
|
|
1310
1310
|
}), t;
|
|
1311
1311
|
}
|
|
1312
|
-
var
|
|
1313
|
-
function
|
|
1312
|
+
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1313
|
+
function wn(e) {
|
|
1314
1314
|
if (e.length === 0)
|
|
1315
1315
|
throw new Error("Number skeleton cannot be empty");
|
|
1316
|
-
for (var t = e.split(
|
|
1316
|
+
for (var t = e.split(Sn).filter(function(c) {
|
|
1317
1317
|
return c.length > 0;
|
|
1318
1318
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1319
1319
|
var o = i[n], a = o.split("/");
|
|
@@ -1328,17 +1328,17 @@ function Pn(e) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return r;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Pn(e) {
|
|
1332
1332
|
return e.replace(/^(.*?)-/, "");
|
|
1333
1333
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1334
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1335
|
+
function ct(e) {
|
|
1336
1336
|
var t = {};
|
|
1337
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1337
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1338
1338
|
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)), "";
|
|
1339
1339
|
}), t;
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Xt(e) {
|
|
1342
1342
|
switch (e) {
|
|
1343
1343
|
case "sign-auto":
|
|
1344
1344
|
return {
|
|
@@ -1378,7 +1378,7 @@ function qt(e) {
|
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function In(e) {
|
|
1382
1382
|
var t;
|
|
1383
1383
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1384
1384
|
notation: "engineering"
|
|
@@ -1386,14 +1386,14 @@ function Cn(e) {
|
|
|
1386
1386
|
notation: "scientific"
|
|
1387
1387
|
}, e = e.slice(1)), t) {
|
|
1388
1388
|
var r = e.slice(0, 2);
|
|
1389
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1389
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1390
1390
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1391
1391
|
t.minimumIntegerDigits = e.length;
|
|
1392
1392
|
}
|
|
1393
1393
|
return t;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1396
|
-
var t = {}, r =
|
|
1395
|
+
function ft(e) {
|
|
1396
|
+
var t = {}, r = Xt(e);
|
|
1397
1397
|
return r || t;
|
|
1398
1398
|
}
|
|
1399
1399
|
function Bn(e) {
|
|
@@ -1420,7 +1420,7 @@ function Bn(e) {
|
|
|
1420
1420
|
continue;
|
|
1421
1421
|
case "measure-unit":
|
|
1422
1422
|
case "unit":
|
|
1423
|
-
t.style = "unit", t.unit =
|
|
1423
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1424
1424
|
continue;
|
|
1425
1425
|
case "compact-short":
|
|
1426
1426
|
case "K":
|
|
@@ -1431,13 +1431,13 @@ function Bn(e) {
|
|
|
1431
1431
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1432
1432
|
continue;
|
|
1433
1433
|
case "scientific":
|
|
1434
|
-
t =
|
|
1435
|
-
return
|
|
1434
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1435
|
+
return y(y({}, l), ft(u));
|
|
1436
1436
|
}, {}));
|
|
1437
1437
|
continue;
|
|
1438
1438
|
case "engineering":
|
|
1439
|
-
t =
|
|
1440
|
-
return
|
|
1439
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1440
|
+
return y(y({}, l), ft(u));
|
|
1441
1441
|
}, {}));
|
|
1442
1442
|
continue;
|
|
1443
1443
|
case "notation-simple":
|
|
@@ -1482,7 +1482,7 @@ function Bn(e) {
|
|
|
1482
1482
|
case "integer-width":
|
|
1483
1483
|
if (i.options.length > 1)
|
|
1484
1484
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1485
|
-
i.options[0].replace(
|
|
1485
|
+
i.options[0].replace(Hn, function(l, u, h, f, c, p) {
|
|
1486
1486
|
if (u)
|
|
1487
1487
|
t.minimumIntegerDigits = h.length;
|
|
1488
1488
|
else {
|
|
@@ -1495,32 +1495,32 @@ function Bn(e) {
|
|
|
1495
1495
|
});
|
|
1496
1496
|
continue;
|
|
1497
1497
|
}
|
|
1498
|
-
if (
|
|
1498
|
+
if (Wt.test(i.stem)) {
|
|
1499
1499
|
t.minimumIntegerDigits = i.stem.length;
|
|
1500
1500
|
continue;
|
|
1501
1501
|
}
|
|
1502
|
-
if (
|
|
1502
|
+
if (ht.test(i.stem)) {
|
|
1503
1503
|
if (i.options.length > 1)
|
|
1504
1504
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1505
|
-
i.stem.replace(
|
|
1505
|
+
i.stem.replace(ht, function(l, u, h, f, c, p) {
|
|
1506
1506
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1507
1507
|
});
|
|
1508
1508
|
var o = i.options[0];
|
|
1509
|
-
o === "w" ? t =
|
|
1509
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1510
1510
|
continue;
|
|
1511
1511
|
}
|
|
1512
|
-
if (
|
|
1513
|
-
t =
|
|
1512
|
+
if (zt.test(i.stem)) {
|
|
1513
|
+
t = y(y({}, t), ct(i.stem));
|
|
1514
1514
|
continue;
|
|
1515
1515
|
}
|
|
1516
|
-
var a =
|
|
1517
|
-
a && (t =
|
|
1518
|
-
var s =
|
|
1519
|
-
s && (t =
|
|
1516
|
+
var a = Xt(i.stem);
|
|
1517
|
+
a && (t = y(y({}, t), a));
|
|
1518
|
+
var s = In(i.stem);
|
|
1519
|
+
s && (t = y(y({}, t), s));
|
|
1520
1520
|
}
|
|
1521
1521
|
return t;
|
|
1522
1522
|
}
|
|
1523
|
-
var
|
|
1523
|
+
var ue = {
|
|
1524
1524
|
"001": [
|
|
1525
1525
|
"H",
|
|
1526
1526
|
"h"
|
|
@@ -2935,13 +2935,13 @@ var le = {
|
|
|
2935
2935
|
"h"
|
|
2936
2936
|
]
|
|
2937
2937
|
};
|
|
2938
|
-
function
|
|
2938
|
+
function Cn(e, t) {
|
|
2939
2939
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2940
2940
|
var i = e.charAt(n);
|
|
2941
2941
|
if (i === "j") {
|
|
2942
2942
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2943
2943
|
o++, n++;
|
|
2944
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2944
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = An(t);
|
|
2945
2945
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2946
2946
|
r += l;
|
|
2947
2947
|
for (; a-- > 0; )
|
|
@@ -2950,7 +2950,7 @@ function An(e, t) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
return r;
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function An(e) {
|
|
2954
2954
|
var t = e.hourCycle;
|
|
2955
2955
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2956
2956
|
e.hourCycles && // @ts-ignore
|
|
@@ -2969,23 +2969,23 @@ function On(e) {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
var r = e.language, n;
|
|
2971
2971
|
r !== "root" && (n = e.maximize().region);
|
|
2972
|
-
var i =
|
|
2972
|
+
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
2973
2973
|
return i[0];
|
|
2974
2974
|
}
|
|
2975
|
-
var
|
|
2976
|
-
function
|
|
2975
|
+
var Pe, On = new RegExp("^".concat(Vt.source, "*")), Ln = new RegExp("".concat(Vt.source, "*$"));
|
|
2976
|
+
function v(e, t) {
|
|
2977
2977
|
return { start: e, end: t };
|
|
2978
2978
|
}
|
|
2979
|
-
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1),
|
|
2979
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Rn = !!Object.fromEntries, $n = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Fn = Dn ? Number.isSafeInteger : function(e) {
|
|
2980
2980
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2981
|
-
},
|
|
2981
|
+
}, Ue = !0;
|
|
2982
2982
|
try {
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2983
|
+
var jn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2984
|
+
Ue = ((Pe = jn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2985
2985
|
} catch (e) {
|
|
2986
|
-
|
|
2986
|
+
Ue = !1;
|
|
2987
2987
|
}
|
|
2988
|
-
var
|
|
2988
|
+
var pt = Mn ? (
|
|
2989
2989
|
// Native
|
|
2990
2990
|
function(t, r, n) {
|
|
2991
2991
|
return t.startsWith(r, n);
|
|
@@ -2995,7 +2995,7 @@ var dt = Mn ? (
|
|
|
2995
2995
|
function(t, r, n) {
|
|
2996
2996
|
return t.slice(n, n + r.length) === r;
|
|
2997
2997
|
}
|
|
2998
|
-
),
|
|
2998
|
+
), Ge = Nn ? String.fromCodePoint : (
|
|
2999
2999
|
// IE11
|
|
3000
3000
|
function() {
|
|
3001
3001
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3007,7 +3007,7 @@ var dt = Mn ? (
|
|
|
3007
3007
|
}
|
|
3008
3008
|
return n;
|
|
3009
3009
|
}
|
|
3010
|
-
),
|
|
3010
|
+
), dt = (
|
|
3011
3011
|
// native
|
|
3012
3012
|
Rn ? Object.fromEntries : (
|
|
3013
3013
|
// Ponyfill
|
|
@@ -3019,7 +3019,7 @@ var dt = Mn ? (
|
|
|
3019
3019
|
return r;
|
|
3020
3020
|
}
|
|
3021
3021
|
)
|
|
3022
|
-
),
|
|
3022
|
+
), qt = $n ? (
|
|
3023
3023
|
// Native
|
|
3024
3024
|
function(t, r) {
|
|
3025
3025
|
return t.codePointAt(r);
|
|
@@ -3033,7 +3033,7 @@ var dt = Mn ? (
|
|
|
3033
3033
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
|
-
),
|
|
3036
|
+
), kn = Un ? (
|
|
3037
3037
|
// Native
|
|
3038
3038
|
function(t) {
|
|
3039
3039
|
return t.trimStart();
|
|
@@ -3041,9 +3041,9 @@ var dt = Mn ? (
|
|
|
3041
3041
|
) : (
|
|
3042
3042
|
// Ponyfill
|
|
3043
3043
|
function(t) {
|
|
3044
|
-
return t.replace(
|
|
3044
|
+
return t.replace(On, "");
|
|
3045
3045
|
}
|
|
3046
|
-
),
|
|
3046
|
+
), Vn = Gn ? (
|
|
3047
3047
|
// Native
|
|
3048
3048
|
function(t) {
|
|
3049
3049
|
return t.trimEnd();
|
|
@@ -3051,32 +3051,32 @@ var dt = Mn ? (
|
|
|
3051
3051
|
) : (
|
|
3052
3052
|
// Ponyfill
|
|
3053
3053
|
function(t) {
|
|
3054
|
-
return t.replace(
|
|
3054
|
+
return t.replace(Ln, "");
|
|
3055
3055
|
}
|
|
3056
3056
|
);
|
|
3057
|
-
function
|
|
3057
|
+
function Zt(e, t) {
|
|
3058
3058
|
return new RegExp(e, t);
|
|
3059
3059
|
}
|
|
3060
|
-
var
|
|
3061
|
-
if (
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3060
|
+
var De;
|
|
3061
|
+
if (Ue) {
|
|
3062
|
+
var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3063
|
+
De = function(t, r) {
|
|
3064
3064
|
var n;
|
|
3065
|
-
|
|
3066
|
-
var i =
|
|
3065
|
+
mt.lastIndex = r;
|
|
3066
|
+
var i = mt.exec(t);
|
|
3067
3067
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3068
3068
|
};
|
|
3069
3069
|
} else
|
|
3070
|
-
|
|
3070
|
+
De = function(t, r) {
|
|
3071
3071
|
for (var n = []; ; ) {
|
|
3072
|
-
var i =
|
|
3073
|
-
if (i === void 0 ||
|
|
3072
|
+
var i = qt(t, r);
|
|
3073
|
+
if (i === void 0 || Yt(i) || qn(i))
|
|
3074
3074
|
break;
|
|
3075
3075
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3076
3076
|
}
|
|
3077
|
-
return
|
|
3077
|
+
return Ge.apply(void 0, n);
|
|
3078
3078
|
};
|
|
3079
|
-
var
|
|
3079
|
+
var zn = (
|
|
3080
3080
|
/** @class */
|
|
3081
3081
|
function() {
|
|
3082
3082
|
function e(t, r) {
|
|
@@ -3101,13 +3101,13 @@ var Wn = (
|
|
|
3101
3101
|
var s = this.clonePosition();
|
|
3102
3102
|
this.bump(), i.push({
|
|
3103
3103
|
type: _.pound,
|
|
3104
|
-
location:
|
|
3104
|
+
location: v(s, this.clonePosition())
|
|
3105
3105
|
});
|
|
3106
3106
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3107
3107
|
if (n)
|
|
3108
3108
|
break;
|
|
3109
|
-
return this.error(
|
|
3110
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3109
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3110
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3111
3111
|
var a = this.parseTag(t, r);
|
|
3112
3112
|
if (a.err)
|
|
3113
3113
|
return a;
|
|
@@ -3130,7 +3130,7 @@ var Wn = (
|
|
|
3130
3130
|
val: {
|
|
3131
3131
|
type: _.literal,
|
|
3132
3132
|
value: "<".concat(i, "/>"),
|
|
3133
|
-
location:
|
|
3133
|
+
location: v(n, this.clonePosition())
|
|
3134
3134
|
},
|
|
3135
3135
|
err: null
|
|
3136
3136
|
};
|
|
@@ -3140,25 +3140,25 @@ var Wn = (
|
|
|
3140
3140
|
return o;
|
|
3141
3141
|
var a = o.val, s = this.clonePosition();
|
|
3142
3142
|
if (this.bumpIf("</")) {
|
|
3143
|
-
if (this.isEOF() || !
|
|
3144
|
-
return this.error(
|
|
3143
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3144
|
+
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3145
3145
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3146
|
-
return i !== u ? this.error(
|
|
3146
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3147
3147
|
val: {
|
|
3148
3148
|
type: _.tag,
|
|
3149
3149
|
value: i,
|
|
3150
3150
|
children: a,
|
|
3151
|
-
location:
|
|
3151
|
+
location: v(n, this.clonePosition())
|
|
3152
3152
|
},
|
|
3153
3153
|
err: null
|
|
3154
|
-
} : this.error(
|
|
3154
|
+
} : this.error(b.INVALID_TAG, v(s, this.clonePosition())));
|
|
3155
3155
|
} else
|
|
3156
|
-
return this.error(
|
|
3156
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3157
3157
|
} else
|
|
3158
|
-
return this.error(
|
|
3158
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3159
3159
|
}, e.prototype.parseTagName = function() {
|
|
3160
3160
|
var t = this.offset();
|
|
3161
|
-
for (this.bump(); !this.isEOF() &&
|
|
3161
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3162
3162
|
this.bump();
|
|
3163
3163
|
return this.message.slice(t, this.offset());
|
|
3164
3164
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3180,14 +3180,14 @@ var Wn = (
|
|
|
3180
3180
|
}
|
|
3181
3181
|
break;
|
|
3182
3182
|
}
|
|
3183
|
-
var l =
|
|
3183
|
+
var l = v(n, this.clonePosition());
|
|
3184
3184
|
return {
|
|
3185
3185
|
val: { type: _.literal, value: i, location: l },
|
|
3186
3186
|
err: null
|
|
3187
3187
|
};
|
|
3188
3188
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3189
3189
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3190
|
-
!
|
|
3190
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3191
3191
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3192
3192
|
if (this.isEOF() || this.char() !== 39)
|
|
3193
3193
|
return null;
|
|
@@ -3221,23 +3221,23 @@ var Wn = (
|
|
|
3221
3221
|
r.push(n);
|
|
3222
3222
|
this.bump();
|
|
3223
3223
|
}
|
|
3224
|
-
return
|
|
3224
|
+
return Ge.apply(void 0, r);
|
|
3225
3225
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3226
3226
|
if (this.isEOF())
|
|
3227
3227
|
return null;
|
|
3228
3228
|
var n = this.char();
|
|
3229
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3229
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3230
3230
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3231
3231
|
var n = this.clonePosition();
|
|
3232
3232
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3233
|
-
return this.error(
|
|
3233
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3234
3234
|
if (this.char() === 125)
|
|
3235
|
-
return this.bump(), this.error(
|
|
3235
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3236
3236
|
var i = this.parseIdentifierIfPossible().value;
|
|
3237
3237
|
if (!i)
|
|
3238
|
-
return this.error(
|
|
3238
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3239
3239
|
if (this.bumpSpace(), this.isEOF())
|
|
3240
|
-
return this.error(
|
|
3240
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3241
3241
|
switch (this.char()) {
|
|
3242
3242
|
case 125:
|
|
3243
3243
|
return this.bump(), {
|
|
@@ -3245,25 +3245,25 @@ var Wn = (
|
|
|
3245
3245
|
type: _.argument,
|
|
3246
3246
|
// value does not include the opening and closing braces.
|
|
3247
3247
|
value: i,
|
|
3248
|
-
location:
|
|
3248
|
+
location: v(n, this.clonePosition())
|
|
3249
3249
|
},
|
|
3250
3250
|
err: null
|
|
3251
3251
|
};
|
|
3252
3252
|
case 44:
|
|
3253
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3253
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3254
3254
|
default:
|
|
3255
|
-
return this.error(
|
|
3255
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3256
3256
|
}
|
|
3257
3257
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3258
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3258
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3259
3259
|
this.bumpTo(i);
|
|
3260
|
-
var o = this.clonePosition(), a =
|
|
3260
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3261
3261
|
return { value: n, location: a };
|
|
3262
3262
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3263
3263
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3264
3264
|
switch (s) {
|
|
3265
3265
|
case "":
|
|
3266
|
-
return this.error(
|
|
3266
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
3267
3267
|
case "number":
|
|
3268
3268
|
case "date":
|
|
3269
3269
|
case "time": {
|
|
@@ -3274,37 +3274,37 @@ var Wn = (
|
|
|
3274
3274
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3275
3275
|
if (f.err)
|
|
3276
3276
|
return f;
|
|
3277
|
-
var c =
|
|
3277
|
+
var c = Vn(f.val);
|
|
3278
3278
|
if (c.length === 0)
|
|
3279
|
-
return this.error(
|
|
3280
|
-
var p =
|
|
3279
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3280
|
+
var p = v(h, this.clonePosition());
|
|
3281
3281
|
u = { style: c, styleLocation: p };
|
|
3282
3282
|
}
|
|
3283
|
-
var
|
|
3284
|
-
if (
|
|
3285
|
-
return
|
|
3286
|
-
var
|
|
3287
|
-
if (u &&
|
|
3288
|
-
var S =
|
|
3283
|
+
var d = this.tryParseArgumentClose(i);
|
|
3284
|
+
if (d.err)
|
|
3285
|
+
return d;
|
|
3286
|
+
var g = v(i, this.clonePosition());
|
|
3287
|
+
if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3288
|
+
var S = kn(u.style.slice(2));
|
|
3289
3289
|
if (s === "number") {
|
|
3290
3290
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3291
3291
|
return f.err ? f : {
|
|
3292
|
-
val: { type: _.number, value: n, location:
|
|
3292
|
+
val: { type: _.number, value: n, location: g, style: f.val },
|
|
3293
3293
|
err: null
|
|
3294
3294
|
};
|
|
3295
3295
|
} else {
|
|
3296
3296
|
if (S.length === 0)
|
|
3297
|
-
return this.error(
|
|
3298
|
-
var
|
|
3299
|
-
this.locale && (
|
|
3297
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
|
|
3298
|
+
var H = S;
|
|
3299
|
+
this.locale && (H = Cn(S, this.locale));
|
|
3300
3300
|
var c = {
|
|
3301
|
-
type:
|
|
3302
|
-
pattern:
|
|
3301
|
+
type: V.dateTime,
|
|
3302
|
+
pattern: H,
|
|
3303
3303
|
location: u.styleLocation,
|
|
3304
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3304
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(H) : {}
|
|
3305
3305
|
}, E = s === "date" ? _.date : _.time;
|
|
3306
3306
|
return {
|
|
3307
|
-
val: { type: E, value: n, location:
|
|
3307
|
+
val: { type: E, value: n, location: g, style: c },
|
|
3308
3308
|
err: null
|
|
3309
3309
|
};
|
|
3310
3310
|
}
|
|
@@ -3313,7 +3313,7 @@ var Wn = (
|
|
|
3313
3313
|
val: {
|
|
3314
3314
|
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3315
3315
|
value: n,
|
|
3316
|
-
location:
|
|
3316
|
+
location: g,
|
|
3317
3317
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3318
3318
|
},
|
|
3319
3319
|
err: null
|
|
@@ -3324,50 +3324,50 @@ var Wn = (
|
|
|
3324
3324
|
case "select": {
|
|
3325
3325
|
var x = this.clonePosition();
|
|
3326
3326
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3327
|
-
return this.error(
|
|
3327
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(x, y({}, x)));
|
|
3328
3328
|
this.bumpSpace();
|
|
3329
|
-
var w = this.parseIdentifierIfPossible(),
|
|
3329
|
+
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3330
3330
|
if (s !== "select" && w.value === "offset") {
|
|
3331
3331
|
if (!this.bumpIf(":"))
|
|
3332
|
-
return this.error(
|
|
3332
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3333
3333
|
this.bumpSpace();
|
|
3334
|
-
var f = this.tryParseDecimalInteger(
|
|
3334
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3335
3335
|
if (f.err)
|
|
3336
3336
|
return f;
|
|
3337
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
3337
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), m = f.val;
|
|
3338
3338
|
}
|
|
3339
|
-
var
|
|
3339
|
+
var B = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3340
|
+
if (B.err)
|
|
3341
|
+
return B;
|
|
3342
|
+
var d = this.tryParseArgumentClose(i);
|
|
3340
3343
|
if (d.err)
|
|
3341
3344
|
return d;
|
|
3342
|
-
var
|
|
3343
|
-
if (g.err)
|
|
3344
|
-
return g;
|
|
3345
|
-
var I = b(i, this.clonePosition());
|
|
3345
|
+
var Q = v(i, this.clonePosition());
|
|
3346
3346
|
return s === "select" ? {
|
|
3347
3347
|
val: {
|
|
3348
3348
|
type: _.select,
|
|
3349
3349
|
value: n,
|
|
3350
|
-
options:
|
|
3351
|
-
location:
|
|
3350
|
+
options: dt(B.val),
|
|
3351
|
+
location: Q
|
|
3352
3352
|
},
|
|
3353
3353
|
err: null
|
|
3354
3354
|
} : {
|
|
3355
3355
|
val: {
|
|
3356
3356
|
type: _.plural,
|
|
3357
3357
|
value: n,
|
|
3358
|
-
options:
|
|
3359
|
-
offset:
|
|
3358
|
+
options: dt(B.val),
|
|
3359
|
+
offset: m,
|
|
3360
3360
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3361
|
-
location:
|
|
3361
|
+
location: Q
|
|
3362
3362
|
},
|
|
3363
3363
|
err: null
|
|
3364
3364
|
};
|
|
3365
3365
|
}
|
|
3366
3366
|
default:
|
|
3367
|
-
return this.error(
|
|
3367
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3368
3368
|
}
|
|
3369
3369
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3370
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3370
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3371
3371
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3372
3372
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3373
3373
|
var n = this.char();
|
|
@@ -3376,7 +3376,7 @@ var Wn = (
|
|
|
3376
3376
|
this.bump();
|
|
3377
3377
|
var i = this.clonePosition();
|
|
3378
3378
|
if (!this.bumpUntil("'"))
|
|
3379
|
-
return this.error(
|
|
3379
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3380
3380
|
this.bump();
|
|
3381
3381
|
break;
|
|
3382
3382
|
}
|
|
@@ -3406,13 +3406,13 @@ var Wn = (
|
|
|
3406
3406
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3407
3407
|
var n = [];
|
|
3408
3408
|
try {
|
|
3409
|
-
n =
|
|
3409
|
+
n = wn(t);
|
|
3410
3410
|
} catch (i) {
|
|
3411
|
-
return this.error(
|
|
3411
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3412
3412
|
}
|
|
3413
3413
|
return {
|
|
3414
3414
|
val: {
|
|
3415
|
-
type:
|
|
3415
|
+
type: V.number,
|
|
3416
3416
|
tokens: n,
|
|
3417
3417
|
location: r,
|
|
3418
3418
|
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
@@ -3424,34 +3424,34 @@ var Wn = (
|
|
|
3424
3424
|
if (u.length === 0) {
|
|
3425
3425
|
var f = this.clonePosition();
|
|
3426
3426
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3427
|
-
var c = this.tryParseDecimalInteger(
|
|
3427
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3428
3428
|
if (c.err)
|
|
3429
3429
|
return c;
|
|
3430
|
-
h =
|
|
3430
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3431
3431
|
} else
|
|
3432
3432
|
break;
|
|
3433
3433
|
}
|
|
3434
3434
|
if (l.has(u))
|
|
3435
|
-
return this.error(r === "select" ?
|
|
3435
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3436
3436
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3437
3437
|
var p = this.clonePosition();
|
|
3438
3438
|
if (!this.bumpIf("{"))
|
|
3439
|
-
return this.error(r === "select" ?
|
|
3440
|
-
var
|
|
3439
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3440
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3441
|
+
if (d.err)
|
|
3442
|
+
return d;
|
|
3443
|
+
var g = this.tryParseArgumentClose(p);
|
|
3441
3444
|
if (g.err)
|
|
3442
3445
|
return g;
|
|
3443
|
-
var y = this.tryParseArgumentClose(p);
|
|
3444
|
-
if (y.err)
|
|
3445
|
-
return y;
|
|
3446
3446
|
s.push([
|
|
3447
3447
|
u,
|
|
3448
3448
|
{
|
|
3449
|
-
value:
|
|
3450
|
-
location:
|
|
3449
|
+
value: d.val,
|
|
3450
|
+
location: v(p, this.clonePosition())
|
|
3451
3451
|
}
|
|
3452
3452
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3453
3453
|
}
|
|
3454
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3454
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3455
3455
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3456
3456
|
var n = 1, i = this.clonePosition();
|
|
3457
3457
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3462,8 +3462,8 @@ var Wn = (
|
|
|
3462
3462
|
else
|
|
3463
3463
|
break;
|
|
3464
3464
|
}
|
|
3465
|
-
var l =
|
|
3466
|
-
return o ? (a *= n,
|
|
3465
|
+
var l = v(i, this.clonePosition());
|
|
3466
|
+
return o ? (a *= n, Fn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3467
3467
|
}, e.prototype.offset = function() {
|
|
3468
3468
|
return this.position.offset;
|
|
3469
3469
|
}, e.prototype.isEOF = function() {
|
|
@@ -3478,7 +3478,7 @@ var Wn = (
|
|
|
3478
3478
|
var t = this.position.offset;
|
|
3479
3479
|
if (t >= this.message.length)
|
|
3480
3480
|
throw Error("out of bound");
|
|
3481
|
-
var r =
|
|
3481
|
+
var r = qt(this.message, t);
|
|
3482
3482
|
if (r === void 0)
|
|
3483
3483
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3484
3484
|
return r;
|
|
@@ -3497,7 +3497,7 @@ var Wn = (
|
|
|
3497
3497
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3498
3498
|
}
|
|
3499
3499
|
}, e.prototype.bumpIf = function(t) {
|
|
3500
|
-
if (
|
|
3500
|
+
if (pt(this.message, t, this.offset())) {
|
|
3501
3501
|
for (var r = 0; r < t.length; r++)
|
|
3502
3502
|
this.bump();
|
|
3503
3503
|
return !0;
|
|
@@ -3519,7 +3519,7 @@ var Wn = (
|
|
|
3519
3519
|
break;
|
|
3520
3520
|
}
|
|
3521
3521
|
}, e.prototype.bumpSpace = function() {
|
|
3522
|
-
for (; !this.isEOF() &&
|
|
3522
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3523
3523
|
this.bump();
|
|
3524
3524
|
}, e.prototype.peek = function() {
|
|
3525
3525
|
if (this.isEOF())
|
|
@@ -3529,46 +3529,46 @@ var Wn = (
|
|
|
3529
3529
|
}, e;
|
|
3530
3530
|
}()
|
|
3531
3531
|
);
|
|
3532
|
-
function
|
|
3532
|
+
function Fe(e) {
|
|
3533
3533
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3535
|
+
function Wn(e) {
|
|
3536
|
+
return Fe(e) || e === 47;
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3538
|
+
function Xn(e) {
|
|
3539
3539
|
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;
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function Yt(e) {
|
|
3542
3542
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function qn(e) {
|
|
3545
3545
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3546
3546
|
}
|
|
3547
|
-
function
|
|
3547
|
+
function je(e) {
|
|
3548
3548
|
e.forEach(function(t) {
|
|
3549
|
-
if (delete t.location,
|
|
3549
|
+
if (delete t.location, Dt(t) || Ft(t))
|
|
3550
3550
|
for (var r in t.options)
|
|
3551
|
-
delete t.options[r].location,
|
|
3552
|
-
else
|
|
3551
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3552
|
+
else $t(t) && kt(t.style) || (Ut(t) || Gt(t)) && $e(t.style) ? delete t.style.location : jt(t) && je(t.children);
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3556
|
-
t === void 0 && (t = {}), t =
|
|
3557
|
-
var r = new
|
|
3555
|
+
function Zn(e, t) {
|
|
3556
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3557
|
+
var r = new zn(e, t).parse();
|
|
3558
3558
|
if (r.err) {
|
|
3559
|
-
var n = SyntaxError(
|
|
3559
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3560
3560
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3561
3561
|
}
|
|
3562
|
-
return t != null && t.captureLocation ||
|
|
3562
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3563
3563
|
}
|
|
3564
|
-
var
|
|
3564
|
+
var z;
|
|
3565
3565
|
(function(e) {
|
|
3566
3566
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3567
|
-
})(
|
|
3568
|
-
var
|
|
3567
|
+
})(z || (z = {}));
|
|
3568
|
+
var ve = (
|
|
3569
3569
|
/** @class */
|
|
3570
3570
|
function(e) {
|
|
3571
|
-
|
|
3571
|
+
N(t, e);
|
|
3572
3572
|
function t(r, n, i) {
|
|
3573
3573
|
var o = e.call(this, r) || this;
|
|
3574
3574
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3577,48 +3577,48 @@ var ye = (
|
|
|
3577
3577
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3578
3578
|
}, t;
|
|
3579
3579
|
}(Error)
|
|
3580
|
-
),
|
|
3580
|
+
), bt = (
|
|
3581
3581
|
/** @class */
|
|
3582
3582
|
function(e) {
|
|
3583
|
-
|
|
3583
|
+
N(t, e);
|
|
3584
3584
|
function t(r, n, i, o) {
|
|
3585
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3585
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3586
3586
|
}
|
|
3587
3587
|
return t;
|
|
3588
|
-
}(
|
|
3589
|
-
),
|
|
3588
|
+
}(ve)
|
|
3589
|
+
), Yn = (
|
|
3590
3590
|
/** @class */
|
|
3591
3591
|
function(e) {
|
|
3592
|
-
|
|
3592
|
+
N(t, e);
|
|
3593
3593
|
function t(r, n, i) {
|
|
3594
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3594
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3595
3595
|
}
|
|
3596
3596
|
return t;
|
|
3597
|
-
}(
|
|
3598
|
-
),
|
|
3597
|
+
}(ve)
|
|
3598
|
+
), Qn = (
|
|
3599
3599
|
/** @class */
|
|
3600
3600
|
function(e) {
|
|
3601
|
-
|
|
3601
|
+
N(t, e);
|
|
3602
3602
|
function t(r, n) {
|
|
3603
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3603
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3604
3604
|
}
|
|
3605
3605
|
return t;
|
|
3606
|
-
}(
|
|
3606
|
+
}(ve)
|
|
3607
3607
|
), T;
|
|
3608
3608
|
(function(e) {
|
|
3609
3609
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3610
3610
|
})(T || (T = {}));
|
|
3611
|
-
function
|
|
3611
|
+
function Jn(e) {
|
|
3612
3612
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3613
3613
|
var n = t[t.length - 1];
|
|
3614
3614
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3615
3615
|
}, []);
|
|
3616
3616
|
}
|
|
3617
|
-
function
|
|
3617
|
+
function Kn(e) {
|
|
3618
3618
|
return typeof e == "function";
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3621
|
-
if (e.length === 1 &&
|
|
3620
|
+
function ce(e, t, r, n, i, o, a) {
|
|
3621
|
+
if (e.length === 1 && lt(e[0]))
|
|
3622
3622
|
return [
|
|
3623
3623
|
{
|
|
3624
3624
|
type: T.literal,
|
|
@@ -3627,14 +3627,14 @@ function fe(e, t, r, n, i, o, a) {
|
|
|
3627
3627
|
];
|
|
3628
3628
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3629
3629
|
var h = u[l];
|
|
3630
|
-
if (
|
|
3630
|
+
if (lt(h)) {
|
|
3631
3631
|
s.push({
|
|
3632
3632
|
type: T.literal,
|
|
3633
3633
|
value: h.value
|
|
3634
3634
|
});
|
|
3635
3635
|
continue;
|
|
3636
3636
|
}
|
|
3637
|
-
if (
|
|
3637
|
+
if (_n(h)) {
|
|
3638
3638
|
typeof o == "number" && s.push({
|
|
3639
3639
|
type: T.literal,
|
|
3640
3640
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3643,89 +3643,89 @@ function fe(e, t, r, n, i, o, a) {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
var f = h.value;
|
|
3645
3645
|
if (!(i && f in i))
|
|
3646
|
-
throw new
|
|
3646
|
+
throw new Qn(f, a);
|
|
3647
3647
|
var c = i[f];
|
|
3648
|
-
if (
|
|
3648
|
+
if (xn(h)) {
|
|
3649
3649
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3650
3650
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3651
3651
|
value: c
|
|
3652
3652
|
});
|
|
3653
3653
|
continue;
|
|
3654
3654
|
}
|
|
3655
|
-
if (
|
|
3656
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3655
|
+
if (Ut(h)) {
|
|
3656
|
+
var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3657
3657
|
s.push({
|
|
3658
3658
|
type: T.literal,
|
|
3659
3659
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3660
3660
|
});
|
|
3661
3661
|
continue;
|
|
3662
3662
|
}
|
|
3663
|
-
if (
|
|
3664
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3663
|
+
if (Gt(h)) {
|
|
3664
|
+
var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3665
3665
|
s.push({
|
|
3666
3666
|
type: T.literal,
|
|
3667
3667
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3668
3668
|
});
|
|
3669
3669
|
continue;
|
|
3670
3670
|
}
|
|
3671
|
-
if (
|
|
3672
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3671
|
+
if ($t(h)) {
|
|
3672
|
+
var p = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3673
3673
|
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3674
3674
|
type: T.literal,
|
|
3675
3675
|
value: r.getNumberFormat(t, p).format(c)
|
|
3676
3676
|
});
|
|
3677
3677
|
continue;
|
|
3678
3678
|
}
|
|
3679
|
-
if (
|
|
3680
|
-
var
|
|
3681
|
-
if (!
|
|
3682
|
-
throw new
|
|
3683
|
-
var
|
|
3684
|
-
return
|
|
3679
|
+
if (jt(h)) {
|
|
3680
|
+
var d = h.children, g = h.value, S = i[g];
|
|
3681
|
+
if (!Kn(S))
|
|
3682
|
+
throw new Yn(g, "function", a);
|
|
3683
|
+
var H = ce(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3684
|
+
return m.value;
|
|
3685
3685
|
}));
|
|
3686
|
-
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(
|
|
3686
|
+
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(m) {
|
|
3687
3687
|
return {
|
|
3688
|
-
type: typeof
|
|
3689
|
-
value:
|
|
3688
|
+
type: typeof m == "string" ? T.literal : T.object,
|
|
3689
|
+
value: m
|
|
3690
3690
|
};
|
|
3691
3691
|
}));
|
|
3692
3692
|
}
|
|
3693
|
-
if (
|
|
3693
|
+
if (Dt(h)) {
|
|
3694
3694
|
var x = h.options[c] || h.options.other;
|
|
3695
3695
|
if (!x)
|
|
3696
|
-
throw new
|
|
3697
|
-
s.push.apply(s,
|
|
3696
|
+
throw new bt(h.value, c, Object.keys(h.options), a);
|
|
3697
|
+
s.push.apply(s, ce(x.value, t, r, n, i));
|
|
3698
3698
|
continue;
|
|
3699
3699
|
}
|
|
3700
|
-
if (
|
|
3700
|
+
if (Ft(h)) {
|
|
3701
3701
|
var x = h.options["=".concat(c)];
|
|
3702
3702
|
if (!x) {
|
|
3703
3703
|
if (!Intl.PluralRules)
|
|
3704
|
-
throw new
|
|
3704
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3705
3705
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3706
|
-
`,
|
|
3706
|
+
`, z.MISSING_INTL_API, a);
|
|
3707
3707
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3708
3708
|
x = h.options[w] || h.options.other;
|
|
3709
3709
|
}
|
|
3710
3710
|
if (!x)
|
|
3711
|
-
throw new
|
|
3712
|
-
s.push.apply(s,
|
|
3711
|
+
throw new bt(h.value, c, Object.keys(h.options), a);
|
|
3712
|
+
s.push.apply(s, ce(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
3713
3713
|
continue;
|
|
3714
3714
|
}
|
|
3715
3715
|
}
|
|
3716
|
-
return
|
|
3716
|
+
return Jn(s);
|
|
3717
3717
|
}
|
|
3718
|
-
function
|
|
3719
|
-
return t ?
|
|
3720
|
-
return r[n] =
|
|
3718
|
+
function ei(e, t) {
|
|
3719
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3720
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3721
3721
|
}, {})) : e;
|
|
3722
3722
|
}
|
|
3723
|
-
function
|
|
3723
|
+
function ti(e, t) {
|
|
3724
3724
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3725
|
-
return r[n] =
|
|
3726
|
-
},
|
|
3725
|
+
return r[n] = ei(e[n], t[n]), r;
|
|
3726
|
+
}, y({}, e)) : e;
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function He(e) {
|
|
3729
3729
|
return {
|
|
3730
3730
|
create: function() {
|
|
3731
3731
|
return {
|
|
@@ -3739,39 +3739,39 @@ function Ie(e) {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
};
|
|
3741
3741
|
}
|
|
3742
|
-
function
|
|
3742
|
+
function ri(e) {
|
|
3743
3743
|
return e === void 0 && (e = {
|
|
3744
3744
|
number: {},
|
|
3745
3745
|
dateTime: {},
|
|
3746
3746
|
pluralRules: {}
|
|
3747
3747
|
}), {
|
|
3748
|
-
getNumberFormat:
|
|
3748
|
+
getNumberFormat: Se(function() {
|
|
3749
3749
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3750
3750
|
r[n] = arguments[n];
|
|
3751
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3751
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3752
3752
|
}, {
|
|
3753
|
-
cache:
|
|
3754
|
-
strategy:
|
|
3753
|
+
cache: He(e.number),
|
|
3754
|
+
strategy: we.variadic
|
|
3755
3755
|
}),
|
|
3756
|
-
getDateTimeFormat:
|
|
3756
|
+
getDateTimeFormat: Se(function() {
|
|
3757
3757
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3758
3758
|
r[n] = arguments[n];
|
|
3759
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3759
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3760
3760
|
}, {
|
|
3761
|
-
cache:
|
|
3762
|
-
strategy:
|
|
3761
|
+
cache: He(e.dateTime),
|
|
3762
|
+
strategy: we.variadic
|
|
3763
3763
|
}),
|
|
3764
|
-
getPluralRules:
|
|
3764
|
+
getPluralRules: Se(function() {
|
|
3765
3765
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3766
3766
|
r[n] = arguments[n];
|
|
3767
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3767
|
+
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3768
3768
|
}, {
|
|
3769
|
-
cache:
|
|
3770
|
-
strategy:
|
|
3769
|
+
cache: He(e.pluralRules),
|
|
3770
|
+
strategy: we.variadic
|
|
3771
3771
|
})
|
|
3772
3772
|
};
|
|
3773
3773
|
}
|
|
3774
|
-
var
|
|
3774
|
+
var ni = (
|
|
3775
3775
|
/** @class */
|
|
3776
3776
|
function() {
|
|
3777
3777
|
function e(t, r, n, i) {
|
|
@@ -3790,7 +3790,7 @@ var ii = (
|
|
|
3790
3790
|
}, []);
|
|
3791
3791
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3792
3792
|
}, this.formatToParts = function(l) {
|
|
3793
|
-
return
|
|
3793
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3794
3794
|
}, this.resolvedOptions = function() {
|
|
3795
3795
|
var l;
|
|
3796
3796
|
return {
|
|
@@ -3804,12 +3804,12 @@ var ii = (
|
|
|
3804
3804
|
var a = i || {};
|
|
3805
3805
|
a.formatters;
|
|
3806
3806
|
var s = Mr(a, ["formatters"]);
|
|
3807
|
-
this.ast = e.__parse(t,
|
|
3807
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3808
3808
|
} else
|
|
3809
3809
|
this.ast = t;
|
|
3810
3810
|
if (!Array.isArray(this.ast))
|
|
3811
3811
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3812
|
-
this.formats =
|
|
3812
|
+
this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
|
|
3813
3813
|
}
|
|
3814
3814
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3815
3815
|
get: function() {
|
|
@@ -3822,7 +3822,7 @@ var ii = (
|
|
|
3822
3822
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3823
3823
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3824
3824
|
}
|
|
3825
|
-
}, e.__parse =
|
|
3825
|
+
}, e.__parse = Zn, e.formats = {
|
|
3826
3826
|
number: {
|
|
3827
3827
|
integer: {
|
|
3828
3828
|
maximumFractionDigits: 0
|
|
@@ -3883,7 +3883,7 @@ var ii = (
|
|
|
3883
3883
|
}, e;
|
|
3884
3884
|
}()
|
|
3885
3885
|
);
|
|
3886
|
-
function
|
|
3886
|
+
function ii(e, t) {
|
|
3887
3887
|
if (t == null)
|
|
3888
3888
|
return;
|
|
3889
3889
|
if (t in e)
|
|
@@ -3904,92 +3904,92 @@ function oi(e, t) {
|
|
|
3904
3904
|
n = void 0;
|
|
3905
3905
|
return n;
|
|
3906
3906
|
}
|
|
3907
|
-
const R = {},
|
|
3907
|
+
const R = {}, oi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Qt = (e, t) => {
|
|
3908
3908
|
if (t == null)
|
|
3909
3909
|
return;
|
|
3910
3910
|
if (t in R && e in R[t])
|
|
3911
3911
|
return R[t][e];
|
|
3912
|
-
const r =
|
|
3912
|
+
const r = ye(t);
|
|
3913
3913
|
for (let n = 0; n < r.length; n++) {
|
|
3914
|
-
const i = r[n], o =
|
|
3914
|
+
const i = r[n], o = si(i, e);
|
|
3915
3915
|
if (o)
|
|
3916
|
-
return
|
|
3916
|
+
return oi(e, t, o);
|
|
3917
3917
|
}
|
|
3918
3918
|
};
|
|
3919
|
-
let
|
|
3920
|
-
const
|
|
3921
|
-
function
|
|
3922
|
-
return
|
|
3919
|
+
let Xe;
|
|
3920
|
+
const ae = be({});
|
|
3921
|
+
function ai(e) {
|
|
3922
|
+
return Xe[e] || null;
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3925
|
-
return e in
|
|
3924
|
+
function Jt(e) {
|
|
3925
|
+
return e in Xe;
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
3928
|
-
if (!
|
|
3927
|
+
function si(e, t) {
|
|
3928
|
+
if (!Jt(e))
|
|
3929
3929
|
return null;
|
|
3930
|
-
const r =
|
|
3931
|
-
return
|
|
3930
|
+
const r = ai(e);
|
|
3931
|
+
return ii(r, t);
|
|
3932
3932
|
}
|
|
3933
|
-
function
|
|
3933
|
+
function ui(e) {
|
|
3934
3934
|
if (e == null)
|
|
3935
3935
|
return;
|
|
3936
|
-
const t =
|
|
3936
|
+
const t = ye(e);
|
|
3937
3937
|
for (let r = 0; r < t.length; r++) {
|
|
3938
3938
|
const n = t[r];
|
|
3939
|
-
if (
|
|
3939
|
+
if (Jt(n))
|
|
3940
3940
|
return n;
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3944
|
-
delete R[e],
|
|
3943
|
+
function Kt(e, ...t) {
|
|
3944
|
+
delete R[e], ae.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
|
|
3945
3945
|
}
|
|
3946
|
-
|
|
3947
|
-
[
|
|
3946
|
+
q(
|
|
3947
|
+
[ae],
|
|
3948
3948
|
([e]) => Object.keys(e)
|
|
3949
3949
|
);
|
|
3950
|
-
|
|
3951
|
-
const
|
|
3952
|
-
function
|
|
3953
|
-
|
|
3950
|
+
ae.subscribe((e) => Xe = e);
|
|
3951
|
+
const fe = {};
|
|
3952
|
+
function li(e, t) {
|
|
3953
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3954
3954
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
3955
|
+
function er(e) {
|
|
3956
|
+
return fe[e];
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return
|
|
3960
|
-
const r =
|
|
3958
|
+
function hi(e) {
|
|
3959
|
+
return ye(e).map((t) => {
|
|
3960
|
+
const r = er(t);
|
|
3961
3961
|
return [t, r ? [...r] : []];
|
|
3962
3962
|
}).filter(([, t]) => t.length > 0);
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3965
|
-
return e == null ? !1 :
|
|
3964
|
+
function ke(e) {
|
|
3965
|
+
return e == null ? !1 : ye(e).some(
|
|
3966
3966
|
(t) => {
|
|
3967
3967
|
var r;
|
|
3968
|
-
return (r =
|
|
3968
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3969
3969
|
}
|
|
3970
3970
|
);
|
|
3971
3971
|
}
|
|
3972
|
-
function
|
|
3972
|
+
function ci(e, t) {
|
|
3973
3973
|
return Promise.all(
|
|
3974
|
-
t.map((n) => (
|
|
3975
|
-
).then((n) =>
|
|
3976
|
-
}
|
|
3977
|
-
const
|
|
3978
|
-
function
|
|
3979
|
-
if (!
|
|
3980
|
-
return e in
|
|
3981
|
-
const t =
|
|
3982
|
-
return
|
|
3974
|
+
t.map((n) => (li(e, n), n().then((i) => i.default || i)))
|
|
3975
|
+
).then((n) => Kt(e, ...n));
|
|
3976
|
+
}
|
|
3977
|
+
const J = {};
|
|
3978
|
+
function tr(e) {
|
|
3979
|
+
if (!ke(e))
|
|
3980
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3981
|
+
const t = hi(e);
|
|
3982
|
+
return J[e] = Promise.all(
|
|
3983
3983
|
t.map(
|
|
3984
|
-
([r, n]) =>
|
|
3984
|
+
([r, n]) => ci(r, n)
|
|
3985
3985
|
)
|
|
3986
3986
|
).then(() => {
|
|
3987
|
-
if (
|
|
3988
|
-
return
|
|
3989
|
-
delete
|
|
3990
|
-
}),
|
|
3987
|
+
if (ke(e))
|
|
3988
|
+
return tr(e);
|
|
3989
|
+
delete J[e];
|
|
3990
|
+
}), J[e];
|
|
3991
3991
|
}
|
|
3992
|
-
const
|
|
3992
|
+
const fi = {
|
|
3993
3993
|
number: {
|
|
3994
3994
|
scientific: { notation: "scientific" },
|
|
3995
3995
|
engineering: { notation: "engineering" },
|
|
@@ -4018,150 +4018,150 @@ const pi = {
|
|
|
4018
4018
|
timeZoneName: "short"
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
},
|
|
4021
|
+
}, pi = {
|
|
4022
4022
|
fallbackLocale: null,
|
|
4023
4023
|
loadingDelay: 200,
|
|
4024
|
-
formats:
|
|
4024
|
+
formats: fi,
|
|
4025
4025
|
warnOnMissingMessages: !0,
|
|
4026
4026
|
handleMissingMessage: void 0,
|
|
4027
4027
|
ignoreTag: !0
|
|
4028
|
-
},
|
|
4029
|
-
function
|
|
4030
|
-
return
|
|
4028
|
+
}, di = pi;
|
|
4029
|
+
function W() {
|
|
4030
|
+
return di;
|
|
4031
4031
|
}
|
|
4032
|
-
const
|
|
4033
|
-
var
|
|
4032
|
+
const Ie = be(!1);
|
|
4033
|
+
var mi = Object.defineProperty, bi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
|
|
4034
4034
|
for (var r in t || (t = {}))
|
|
4035
|
-
|
|
4036
|
-
if (
|
|
4037
|
-
for (var r of
|
|
4038
|
-
|
|
4035
|
+
yi.call(t, r) && yt(e, r, t[r]);
|
|
4036
|
+
if (vt)
|
|
4037
|
+
for (var r of vt(t))
|
|
4038
|
+
gi.call(t, r) && yt(e, r, t[r]);
|
|
4039
4039
|
return e;
|
|
4040
|
-
},
|
|
4041
|
-
let
|
|
4042
|
-
const
|
|
4043
|
-
function
|
|
4040
|
+
}, _i = (e, t) => bi(e, vi(t));
|
|
4041
|
+
let Ve;
|
|
4042
|
+
const pe = be(null);
|
|
4043
|
+
function gt(e) {
|
|
4044
4044
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4047
|
-
const r =
|
|
4048
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4046
|
+
function ye(e, t = W().fallbackLocale) {
|
|
4047
|
+
const r = gt(e);
|
|
4048
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4049
4049
|
}
|
|
4050
|
-
function
|
|
4051
|
-
return
|
|
4050
|
+
function $() {
|
|
4051
|
+
return Ve != null ? Ve : void 0;
|
|
4052
4052
|
}
|
|
4053
|
-
|
|
4054
|
-
|
|
4053
|
+
pe.subscribe((e) => {
|
|
4054
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4055
4055
|
});
|
|
4056
|
-
const
|
|
4057
|
-
if (e &&
|
|
4058
|
-
const { loadingDelay: t } =
|
|
4056
|
+
const Ei = (e) => {
|
|
4057
|
+
if (e && ui(e) && ke(e)) {
|
|
4058
|
+
const { loadingDelay: t } = W();
|
|
4059
4059
|
let r;
|
|
4060
|
-
return typeof window != "undefined" &&
|
|
4061
|
-
() =>
|
|
4060
|
+
return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
|
|
4061
|
+
() => Ie.set(!0),
|
|
4062
4062
|
t
|
|
4063
|
-
) :
|
|
4064
|
-
|
|
4063
|
+
) : Ie.set(!0), tr(e).then(() => {
|
|
4064
|
+
pe.set(e);
|
|
4065
4065
|
}).finally(() => {
|
|
4066
|
-
clearTimeout(r),
|
|
4066
|
+
clearTimeout(r), Ie.set(!1);
|
|
4067
4067
|
});
|
|
4068
4068
|
}
|
|
4069
|
-
return
|
|
4070
|
-
},
|
|
4071
|
-
set:
|
|
4072
|
-
}),
|
|
4069
|
+
return pe.set(e);
|
|
4070
|
+
}, Z = _i(xi({}, pe), {
|
|
4071
|
+
set: Ei
|
|
4072
|
+
}), ge = (e) => {
|
|
4073
4073
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4074
4074
|
return (n) => {
|
|
4075
4075
|
const i = JSON.stringify(n);
|
|
4076
4076
|
return i in t ? t[i] : t[i] = e(n);
|
|
4077
4077
|
};
|
|
4078
4078
|
};
|
|
4079
|
-
var
|
|
4079
|
+
var Ti = Object.defineProperty, de = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4080
4080
|
for (var r in t || (t = {}))
|
|
4081
|
-
|
|
4082
|
-
if (
|
|
4083
|
-
for (var r of
|
|
4084
|
-
|
|
4081
|
+
rr.call(t, r) && xt(e, r, t[r]);
|
|
4082
|
+
if (de)
|
|
4083
|
+
for (var r of de(t))
|
|
4084
|
+
nr.call(t, r) && xt(e, r, t[r]);
|
|
4085
4085
|
return e;
|
|
4086
|
-
},
|
|
4086
|
+
}, Y = (e, t) => {
|
|
4087
4087
|
var r = {};
|
|
4088
4088
|
for (var n in e)
|
|
4089
|
-
|
|
4090
|
-
if (e != null &&
|
|
4091
|
-
for (var n of
|
|
4092
|
-
t.indexOf(n) < 0 &&
|
|
4089
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4090
|
+
if (e != null && de)
|
|
4091
|
+
for (var n of de(e))
|
|
4092
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4093
4093
|
return r;
|
|
4094
4094
|
};
|
|
4095
|
-
const
|
|
4096
|
-
const { formats: r } =
|
|
4095
|
+
const re = (e, t) => {
|
|
4096
|
+
const { formats: r } = W();
|
|
4097
4097
|
if (e in r && t in r[e])
|
|
4098
4098
|
return r[e][t];
|
|
4099
4099
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4100
|
-
},
|
|
4100
|
+
}, Si = ge(
|
|
4101
4101
|
(e) => {
|
|
4102
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4102
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4103
4103
|
if (r == null)
|
|
4104
4104
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4105
|
-
return n && (i =
|
|
4105
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4106
4106
|
}
|
|
4107
|
-
),
|
|
4107
|
+
), wi = ge(
|
|
4108
4108
|
(e) => {
|
|
4109
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4109
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4110
4110
|
if (r == null)
|
|
4111
4111
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4112
|
-
return n ? i =
|
|
4112
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4113
4113
|
}
|
|
4114
|
-
),
|
|
4114
|
+
), Pi = ge(
|
|
4115
4115
|
(e) => {
|
|
4116
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4116
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4117
4117
|
if (r == null)
|
|
4118
4118
|
throw new Error(
|
|
4119
4119
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4120
4120
|
);
|
|
4121
|
-
return n ? i =
|
|
4121
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4122
4122
|
}
|
|
4123
|
-
),
|
|
4123
|
+
), Hi = (e = {}) => {
|
|
4124
4124
|
var t = e, {
|
|
4125
|
-
locale: r =
|
|
4126
|
-
} = t, n =
|
|
4125
|
+
locale: r = $()
|
|
4126
|
+
} = t, n = Y(t, [
|
|
4127
4127
|
"locale"
|
|
4128
4128
|
]);
|
|
4129
|
-
return
|
|
4130
|
-
},
|
|
4129
|
+
return Si(qe({ locale: r }, n));
|
|
4130
|
+
}, Ii = (e = {}) => {
|
|
4131
4131
|
var t = e, {
|
|
4132
|
-
locale: r =
|
|
4133
|
-
} = t, n =
|
|
4132
|
+
locale: r = $()
|
|
4133
|
+
} = t, n = Y(t, [
|
|
4134
4134
|
"locale"
|
|
4135
4135
|
]);
|
|
4136
|
-
return
|
|
4136
|
+
return wi(qe({ locale: r }, n));
|
|
4137
4137
|
}, Bi = (e = {}) => {
|
|
4138
4138
|
var t = e, {
|
|
4139
|
-
locale: r =
|
|
4140
|
-
} = t, n =
|
|
4139
|
+
locale: r = $()
|
|
4140
|
+
} = t, n = Y(t, [
|
|
4141
4141
|
"locale"
|
|
4142
4142
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4143
|
+
return Pi(qe({ locale: r }, n));
|
|
4144
|
+
}, Ci = ge(
|
|
4145
4145
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4146
|
-
(e, t =
|
|
4147
|
-
ignoreTag:
|
|
4146
|
+
(e, t = $()) => new ni(e, t, W().formats, {
|
|
4147
|
+
ignoreTag: W().ignoreTag
|
|
4148
4148
|
})
|
|
4149
|
-
),
|
|
4149
|
+
), Ai = (e, t = {}) => {
|
|
4150
4150
|
var r, n, i, o;
|
|
4151
4151
|
let a = t;
|
|
4152
4152
|
typeof e == "object" && (a = e, e = a.id);
|
|
4153
4153
|
const {
|
|
4154
4154
|
values: s,
|
|
4155
|
-
locale: l =
|
|
4155
|
+
locale: l = $(),
|
|
4156
4156
|
default: u
|
|
4157
4157
|
} = a;
|
|
4158
4158
|
if (l == null)
|
|
4159
4159
|
throw new Error(
|
|
4160
4160
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4161
4161
|
);
|
|
4162
|
-
let h =
|
|
4162
|
+
let h = Qt(e, l);
|
|
4163
4163
|
if (!h)
|
|
4164
|
-
h = (o = (i = (n = (r =
|
|
4164
|
+
h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4165
4165
|
else if (typeof h != "string")
|
|
4166
4166
|
return console.warn(
|
|
4167
4167
|
`[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.`
|
|
@@ -4170,7 +4170,7 @@ const ne = (e, t) => {
|
|
|
4170
4170
|
return h;
|
|
4171
4171
|
let f = h;
|
|
4172
4172
|
try {
|
|
4173
|
-
f =
|
|
4173
|
+
f = Ci(h, l).format(s);
|
|
4174
4174
|
} catch (c) {
|
|
4175
4175
|
c instanceof Error && console.warn(
|
|
4176
4176
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4178,20 +4178,20 @@ const ne = (e, t) => {
|
|
|
4178
4178
|
);
|
|
4179
4179
|
}
|
|
4180
4180
|
return f;
|
|
4181
|
-
},
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
window.emWidgets = { topic:
|
|
4187
|
-
const
|
|
4188
|
-
function
|
|
4189
|
-
|
|
4190
|
-
}
|
|
4191
|
-
function
|
|
4192
|
-
|
|
4193
|
-
}
|
|
4194
|
-
const
|
|
4181
|
+
}, Oi = (e, t) => Bi(t).format(e), Li = (e, t) => Ii(t).format(e), Mi = (e, t) => Hi(t).format(e), Ni = (e, t = $()) => Qt(e, t), Ri = q([Z, ae], () => Ai);
|
|
4182
|
+
q([Z], () => Oi);
|
|
4183
|
+
q([Z], () => Li);
|
|
4184
|
+
q([Z], () => Mi);
|
|
4185
|
+
q([Z, ae], () => Ni);
|
|
4186
|
+
window.emWidgets = { topic: qr };
|
|
4187
|
+
const $i = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4188
|
+
function _t(e, t) {
|
|
4189
|
+
Kt(e, t);
|
|
4190
|
+
}
|
|
4191
|
+
function Ui(e) {
|
|
4192
|
+
Z.set(e);
|
|
4193
|
+
}
|
|
4194
|
+
const Et = {
|
|
4195
4195
|
en: {
|
|
4196
4196
|
name: "Info",
|
|
4197
4197
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4253,26 +4253,49 @@ const Tt = {
|
|
|
4253
4253
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4254
4254
|
}
|
|
4255
4255
|
};
|
|
4256
|
-
function
|
|
4257
|
-
|
|
4256
|
+
function Gi(e, t) {
|
|
4257
|
+
if (e) {
|
|
4258
|
+
const r = document.createElement("style");
|
|
4259
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4260
|
+
}
|
|
4258
4261
|
}
|
|
4259
|
-
function
|
|
4262
|
+
function Di(e, t) {
|
|
4263
|
+
const r = new URL(t);
|
|
4264
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4265
|
+
const i = document.createElement("style");
|
|
4266
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4267
|
+
}).catch((n) => {
|
|
4268
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4269
|
+
});
|
|
4270
|
+
}
|
|
4271
|
+
function Fi(e, t, r) {
|
|
4272
|
+
if (window.emMessageBus) {
|
|
4273
|
+
const n = document.createElement("style");
|
|
4274
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4275
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4276
|
+
});
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
function ji(e) {
|
|
4280
|
+
cr(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4281
|
+
}
|
|
4282
|
+
function Tt(e) {
|
|
4260
4283
|
let t, r, n, i, o, a, s = (
|
|
4261
4284
|
/*$_*/
|
|
4262
4285
|
e[4]("name") + ""
|
|
4263
|
-
), l, u, h, f, c, p,
|
|
4286
|
+
), l, u, h, f, c, p, d, g;
|
|
4264
4287
|
function S(x, w) {
|
|
4265
4288
|
return (
|
|
4266
4289
|
/*iteminfoamount*/
|
|
4267
|
-
x[0] ?
|
|
4290
|
+
x[0] ? Vi : ki
|
|
4268
4291
|
);
|
|
4269
4292
|
}
|
|
4270
|
-
let
|
|
4293
|
+
let H = S(e), E = H(e);
|
|
4271
4294
|
return {
|
|
4272
4295
|
c() {
|
|
4273
|
-
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o =
|
|
4296
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = _e(), a = A("div"), l = oe(s), u = _e(), h = A("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = _e(), c = A("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(c, "class", "InfoCardPopupContentArea"), C(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4274
4297
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4275
|
-
(e[0] ? "InfoCardPopupLimitChanged" : "")),
|
|
4298
|
+
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4276
4299
|
t,
|
|
4277
4300
|
"class",
|
|
4278
4301
|
/*isMobile*/
|
|
@@ -4280,47 +4303,47 @@ function St(e) {
|
|
|
4280
4303
|
);
|
|
4281
4304
|
},
|
|
4282
4305
|
m(x, w) {
|
|
4283
|
-
|
|
4306
|
+
ie(x, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (g = mr(h, "click", br(
|
|
4284
4307
|
/*closeInfoPopup*/
|
|
4285
4308
|
e[6]
|
|
4286
|
-
)),
|
|
4309
|
+
)), d = !0);
|
|
4287
4310
|
},
|
|
4288
4311
|
p(x, w) {
|
|
4289
4312
|
w & /*$_*/
|
|
4290
4313
|
16 && s !== (s = /*$_*/
|
|
4291
|
-
x[4]("name") + "") &&
|
|
4314
|
+
x[4]("name") + "") && We(l, s), H === (H = S(x)) && E ? E.p(x, w) : (E.d(1), E = H(x), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4292
4315
|
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4293
4316
|
(x[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4294
|
-
(x[0] ? "InfoCardPopupLimitChanged" : "")) &&
|
|
4317
|
+
(x[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", p);
|
|
4295
4318
|
},
|
|
4296
4319
|
d(x) {
|
|
4297
|
-
x &&
|
|
4320
|
+
x && X(t), E.d(), e[13](null), d = !1, g();
|
|
4298
4321
|
}
|
|
4299
4322
|
};
|
|
4300
4323
|
}
|
|
4301
|
-
function
|
|
4324
|
+
function ki(e) {
|
|
4302
4325
|
let t, r = (
|
|
4303
4326
|
/*$_*/
|
|
4304
4327
|
e[4]("defaultText") + ""
|
|
4305
4328
|
), n;
|
|
4306
4329
|
return {
|
|
4307
4330
|
c() {
|
|
4308
|
-
t = A("p"), n =
|
|
4331
|
+
t = A("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4309
4332
|
},
|
|
4310
4333
|
m(i, o) {
|
|
4311
|
-
|
|
4334
|
+
ie(i, t, o), P(t, n);
|
|
4312
4335
|
},
|
|
4313
4336
|
p(i, o) {
|
|
4314
4337
|
o & /*$_*/
|
|
4315
4338
|
16 && r !== (r = /*$_*/
|
|
4316
|
-
i[4]("defaultText") + "") &&
|
|
4339
|
+
i[4]("defaultText") + "") && We(n, r);
|
|
4317
4340
|
},
|
|
4318
4341
|
d(i) {
|
|
4319
|
-
i &&
|
|
4342
|
+
i && X(t);
|
|
4320
4343
|
}
|
|
4321
4344
|
};
|
|
4322
4345
|
}
|
|
4323
|
-
function
|
|
4346
|
+
function Vi(e) {
|
|
4324
4347
|
let t, r = (
|
|
4325
4348
|
/*$_*/
|
|
4326
4349
|
e[4]("amountChanged", {
|
|
@@ -4338,10 +4361,10 @@ function ji(e) {
|
|
|
4338
4361
|
), n;
|
|
4339
4362
|
return {
|
|
4340
4363
|
c() {
|
|
4341
|
-
t = A("p"), n =
|
|
4364
|
+
t = A("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4342
4365
|
},
|
|
4343
4366
|
m(i, o) {
|
|
4344
|
-
|
|
4367
|
+
ie(i, t, o), P(t, n);
|
|
4345
4368
|
},
|
|
4346
4369
|
p(i, o) {
|
|
4347
4370
|
o & /*$_, iteminfoamount, playercurrency*/
|
|
@@ -4357,118 +4380,107 @@ function ji(e) {
|
|
|
4357
4380
|
i[1]
|
|
4358
4381
|
)
|
|
4359
4382
|
}
|
|
4360
|
-
}) + "") &&
|
|
4383
|
+
}) + "") && We(n, r);
|
|
4361
4384
|
},
|
|
4362
4385
|
d(i) {
|
|
4363
|
-
i &&
|
|
4386
|
+
i && X(t);
|
|
4364
4387
|
}
|
|
4365
4388
|
};
|
|
4366
4389
|
}
|
|
4367
|
-
function
|
|
4390
|
+
function zi(e) {
|
|
4368
4391
|
let t, r = (
|
|
4369
4392
|
/*showPopup*/
|
|
4370
|
-
e[3] &&
|
|
4393
|
+
e[3] && Tt(e)
|
|
4371
4394
|
);
|
|
4372
4395
|
return {
|
|
4373
4396
|
c() {
|
|
4374
|
-
r && r.c(), t =
|
|
4397
|
+
r && r.c(), t = dr();
|
|
4375
4398
|
},
|
|
4376
4399
|
m(n, i) {
|
|
4377
|
-
r && r.m(n, i),
|
|
4400
|
+
r && r.m(n, i), ie(n, t, i);
|
|
4378
4401
|
},
|
|
4379
4402
|
p(n, [i]) {
|
|
4380
4403
|
/*showPopup*/
|
|
4381
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4404
|
+
n[3] ? r ? r.p(n, i) : (r = Tt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4382
4405
|
},
|
|
4383
4406
|
i: O,
|
|
4384
4407
|
o: O,
|
|
4385
4408
|
d(n) {
|
|
4386
|
-
n &&
|
|
4409
|
+
n && X(t), r && r.d(n);
|
|
4387
4410
|
}
|
|
4388
4411
|
};
|
|
4389
4412
|
}
|
|
4390
|
-
function
|
|
4413
|
+
function Wi(e, t, r) {
|
|
4391
4414
|
let n;
|
|
4392
|
-
|
|
4393
|
-
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { playercurrency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t;
|
|
4394
|
-
const
|
|
4395
|
-
fetch(h).then((
|
|
4396
|
-
Object.keys(
|
|
4397
|
-
|
|
4415
|
+
hr(e, Ri, (m) => r(4, n = m));
|
|
4416
|
+
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { playercurrency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource: f } = t;
|
|
4417
|
+
const c = () => {
|
|
4418
|
+
fetch(h).then((B) => B.json()).then((B) => {
|
|
4419
|
+
Object.keys(B).forEach((Q) => {
|
|
4420
|
+
_t(Q, B[Q]);
|
|
4398
4421
|
});
|
|
4399
|
-
}).catch((
|
|
4400
|
-
console.log(
|
|
4422
|
+
}).catch((B) => {
|
|
4423
|
+
console.log(B);
|
|
4401
4424
|
});
|
|
4402
4425
|
};
|
|
4403
|
-
Object.keys(
|
|
4404
|
-
|
|
4426
|
+
Object.keys(Et).forEach((m) => {
|
|
4427
|
+
_t(m, Et[m]);
|
|
4405
4428
|
});
|
|
4406
|
-
let
|
|
4407
|
-
const
|
|
4408
|
-
r(3,
|
|
4429
|
+
let p = !1, d, g = window.navigator.userAgent, S = $i(g) !== "PC";
|
|
4430
|
+
const H = () => {
|
|
4431
|
+
r(3, p = !1), window.postMessage(
|
|
4409
4432
|
{
|
|
4410
4433
|
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4411
4434
|
},
|
|
4412
4435
|
window.location.href
|
|
4413
4436
|
);
|
|
4414
|
-
},
|
|
4415
|
-
|
|
4416
|
-
}, E = () => {
|
|
4417
|
-
Gi(a), o < 0 && r(0, o = "0"), r(3, c = i);
|
|
4437
|
+
}, E = (m) => {
|
|
4438
|
+
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4418
4439
|
}, x = () => {
|
|
4419
|
-
|
|
4420
|
-
d.innerHTML = l, p.appendChild(d);
|
|
4421
|
-
}, w = () => {
|
|
4422
|
-
let d = new URL(u), I = document.createElement("style");
|
|
4423
|
-
fetch(d.href).then((G) => G.text()).then((G) => {
|
|
4424
|
-
I.innerHTML = G, setTimeout(
|
|
4425
|
-
() => {
|
|
4426
|
-
p.appendChild(I);
|
|
4427
|
-
},
|
|
4428
|
-
1
|
|
4429
|
-
);
|
|
4430
|
-
});
|
|
4440
|
+
Ui(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4431
4441
|
};
|
|
4432
|
-
|
|
4433
|
-
window.removeEventListener("message",
|
|
4442
|
+
xr(() => (window.addEventListener("message", E, !1), () => {
|
|
4443
|
+
window.removeEventListener("message", E);
|
|
4434
4444
|
}));
|
|
4435
|
-
function
|
|
4436
|
-
Be[
|
|
4437
|
-
|
|
4445
|
+
function w(m) {
|
|
4446
|
+
Be[m ? "unshift" : "push"](() => {
|
|
4447
|
+
d = m, r(2, d);
|
|
4438
4448
|
});
|
|
4439
4449
|
}
|
|
4440
|
-
return e.$$set = (
|
|
4441
|
-
"showpopup" in
|
|
4450
|
+
return e.$$set = (m) => {
|
|
4451
|
+
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "playercurrency" in m && r(1, s = m.playercurrency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4442
4452
|
}, e.$$.update = () => {
|
|
4443
4453
|
e.$$.dirty & /*showpopup, lang*/
|
|
4444
|
-
384 && i && a &&
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4454
|
+
384 && i && a && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4455
|
+
516 && l && d && Gi(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4456
|
+
1028 && u && d && Di(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4457
|
+
4100 && f && d && Fi(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4458
|
+
2048 && h && c();
|
|
4448
4459
|
}, [
|
|
4449
4460
|
o,
|
|
4450
4461
|
s,
|
|
4462
|
+
d,
|
|
4451
4463
|
p,
|
|
4452
|
-
c,
|
|
4453
4464
|
n,
|
|
4454
|
-
y,
|
|
4455
4465
|
S,
|
|
4466
|
+
H,
|
|
4456
4467
|
i,
|
|
4457
4468
|
a,
|
|
4458
4469
|
l,
|
|
4459
4470
|
u,
|
|
4460
4471
|
h,
|
|
4461
|
-
|
|
4472
|
+
f,
|
|
4473
|
+
w
|
|
4462
4474
|
];
|
|
4463
4475
|
}
|
|
4464
|
-
class
|
|
4476
|
+
class Xi extends Or {
|
|
4465
4477
|
constructor(t) {
|
|
4466
|
-
super(),
|
|
4478
|
+
super(), Cr(
|
|
4467
4479
|
this,
|
|
4468
4480
|
t,
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4481
|
+
Wi,
|
|
4482
|
+
zi,
|
|
4483
|
+
wt,
|
|
4472
4484
|
{
|
|
4473
4485
|
showpopup: 7,
|
|
4474
4486
|
iteminfoamount: 0,
|
|
@@ -4476,55 +4488,62 @@ class zi extends Lr {
|
|
|
4476
4488
|
playercurrency: 1,
|
|
4477
4489
|
clientstyling: 9,
|
|
4478
4490
|
clientstylingurl: 10,
|
|
4479
|
-
translationurl: 11
|
|
4491
|
+
translationurl: 11,
|
|
4492
|
+
mbsource: 12
|
|
4480
4493
|
},
|
|
4481
|
-
|
|
4494
|
+
ji
|
|
4482
4495
|
);
|
|
4483
4496
|
}
|
|
4484
4497
|
get showpopup() {
|
|
4485
4498
|
return this.$$.ctx[7];
|
|
4486
4499
|
}
|
|
4487
4500
|
set showpopup(t) {
|
|
4488
|
-
this.$$set({ showpopup: t }),
|
|
4501
|
+
this.$$set({ showpopup: t }), L();
|
|
4489
4502
|
}
|
|
4490
4503
|
get iteminfoamount() {
|
|
4491
4504
|
return this.$$.ctx[0];
|
|
4492
4505
|
}
|
|
4493
4506
|
set iteminfoamount(t) {
|
|
4494
|
-
this.$$set({ iteminfoamount: t }),
|
|
4507
|
+
this.$$set({ iteminfoamount: t }), L();
|
|
4495
4508
|
}
|
|
4496
4509
|
get lang() {
|
|
4497
4510
|
return this.$$.ctx[8];
|
|
4498
4511
|
}
|
|
4499
4512
|
set lang(t) {
|
|
4500
|
-
this.$$set({ lang: t }),
|
|
4513
|
+
this.$$set({ lang: t }), L();
|
|
4501
4514
|
}
|
|
4502
4515
|
get playercurrency() {
|
|
4503
4516
|
return this.$$.ctx[1];
|
|
4504
4517
|
}
|
|
4505
4518
|
set playercurrency(t) {
|
|
4506
|
-
this.$$set({ playercurrency: t }),
|
|
4519
|
+
this.$$set({ playercurrency: t }), L();
|
|
4507
4520
|
}
|
|
4508
4521
|
get clientstyling() {
|
|
4509
4522
|
return this.$$.ctx[9];
|
|
4510
4523
|
}
|
|
4511
4524
|
set clientstyling(t) {
|
|
4512
|
-
this.$$set({ clientstyling: t }),
|
|
4525
|
+
this.$$set({ clientstyling: t }), L();
|
|
4513
4526
|
}
|
|
4514
4527
|
get clientstylingurl() {
|
|
4515
4528
|
return this.$$.ctx[10];
|
|
4516
4529
|
}
|
|
4517
4530
|
set clientstylingurl(t) {
|
|
4518
|
-
this.$$set({ clientstylingurl: t }),
|
|
4531
|
+
this.$$set({ clientstylingurl: t }), L();
|
|
4519
4532
|
}
|
|
4520
4533
|
get translationurl() {
|
|
4521
4534
|
return this.$$.ctx[11];
|
|
4522
4535
|
}
|
|
4523
4536
|
set translationurl(t) {
|
|
4524
|
-
this.$$set({ translationurl: t }),
|
|
4537
|
+
this.$$set({ translationurl: t }), L();
|
|
4538
|
+
}
|
|
4539
|
+
get mbsource() {
|
|
4540
|
+
return this.$$.ctx[12];
|
|
4541
|
+
}
|
|
4542
|
+
set mbsource(t) {
|
|
4543
|
+
this.$$set({ mbsource: t }), L();
|
|
4525
4544
|
}
|
|
4526
4545
|
}
|
|
4527
|
-
|
|
4546
|
+
Ar(Xi, { showpopup: {}, iteminfoamount: {}, lang: {}, playercurrency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4528
4547
|
export {
|
|
4529
|
-
|
|
4548
|
+
Xi as default
|
|
4530
4549
|
};
|