@everymatrix/player-account-menu-nd 1.53.12 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/GeneralLogout-DFYYNgUn.cjs +5 -0
- package/components/{GeneralLogout-BYNkUOix.js → GeneralLogout-dOghBBYK.js} +930 -893
- package/components/{PlayerAccountMenuNd-D5LdiSBw.js → PlayerAccountMenuNd-BPYcZtnV.js} +73 -72
- package/components/PlayerAccountMenuNd-CFqNqPW-.cjs +1 -0
- package/es2015/player-account-menu-nd.cjs +1 -0
- package/es2015/player-account-menu-nd.js +16 -0
- package/package.json +11 -12
- package/esnext/player-account-menu-nd.js +0 -14
@@ -1,50 +1,79 @@
|
|
1
|
-
|
1
|
+
var cr = Object.defineProperty, dr = Object.defineProperties;
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
3
|
+
var Ke = Object.getOwnPropertySymbols;
|
4
|
+
var mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
5
|
+
var He = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
6
|
+
for (var r in t || (t = {}))
|
7
|
+
mr.call(t, r) && He(e, r, t[r]);
|
8
|
+
if (Ke)
|
9
|
+
for (var r of Ke(t))
|
10
|
+
br.call(t, r) && He(e, r, t[r]);
|
11
|
+
return e;
|
12
|
+
}, tt = (e, t) => dr(e, pr(t));
|
13
|
+
var H = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
+
var rt = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var o = (h) => {
|
16
|
+
try {
|
17
|
+
a(r.next(h));
|
18
|
+
} catch (u) {
|
19
|
+
i(u);
|
20
|
+
}
|
21
|
+
}, s = (h) => {
|
22
|
+
try {
|
23
|
+
a(r.throw(h));
|
24
|
+
} catch (u) {
|
25
|
+
i(u);
|
26
|
+
}
|
27
|
+
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
28
|
+
a((r = r.apply(e, t)).next());
|
29
|
+
});
|
30
|
+
function w() {
|
2
31
|
}
|
3
|
-
function
|
32
|
+
function At(e) {
|
4
33
|
return e();
|
5
34
|
}
|
6
|
-
function
|
35
|
+
function nt() {
|
7
36
|
return /* @__PURE__ */ Object.create(null);
|
8
37
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
38
|
+
function se(e) {
|
39
|
+
e.forEach(At);
|
11
40
|
}
|
12
|
-
function
|
41
|
+
function Qe(e) {
|
13
42
|
return typeof e == "function";
|
14
43
|
}
|
15
|
-
function
|
44
|
+
function wt(e, t) {
|
16
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
46
|
}
|
18
|
-
let
|
19
|
-
function
|
20
|
-
return e === t ? !0 : (
|
47
|
+
let le;
|
48
|
+
function Yi(e, t) {
|
49
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
21
50
|
}
|
22
|
-
function
|
51
|
+
function gr(e) {
|
23
52
|
return Object.keys(e).length === 0;
|
24
53
|
}
|
25
|
-
function
|
54
|
+
function Pt(e, ...t) {
|
26
55
|
if (e == null) {
|
27
56
|
for (const n of t)
|
28
57
|
n(void 0);
|
29
|
-
return
|
58
|
+
return w;
|
30
59
|
}
|
31
60
|
const r = e.subscribe(...t);
|
32
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
62
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
63
|
+
function yr(e, t, r) {
|
64
|
+
e.$$.on_destroy.push(Pt(t, r));
|
36
65
|
}
|
37
66
|
function S(e, t) {
|
38
67
|
e.appendChild(t);
|
39
68
|
}
|
40
|
-
function
|
41
|
-
const n =
|
69
|
+
function vr(e, t, r) {
|
70
|
+
const n = xr(e);
|
42
71
|
if (!n.getElementById(t)) {
|
43
|
-
const i =
|
44
|
-
i.id = t, i.textContent = r,
|
72
|
+
const i = L("style");
|
73
|
+
i.id = t, i.textContent = r, Er(n, i);
|
45
74
|
}
|
46
75
|
}
|
47
|
-
function
|
76
|
+
function xr(e) {
|
48
77
|
if (!e) return document;
|
49
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
50
79
|
return t && /** @type {ShadowRoot} */
|
@@ -53,56 +82,56 @@ function hr(e) {
|
|
53
82
|
t
|
54
83
|
) : e.ownerDocument;
|
55
84
|
}
|
56
|
-
function
|
85
|
+
function Er(e, t) {
|
57
86
|
return S(
|
58
87
|
/** @type {Document} */
|
59
88
|
e.head || e,
|
60
89
|
t
|
61
90
|
), t.sheet;
|
62
91
|
}
|
63
|
-
function
|
92
|
+
function ae(e, t, r) {
|
64
93
|
e.insertBefore(t, r || null);
|
65
94
|
}
|
66
|
-
function
|
95
|
+
function q(e) {
|
67
96
|
e.parentNode && e.parentNode.removeChild(e);
|
68
97
|
}
|
69
|
-
function
|
98
|
+
function Ki(e, t) {
|
70
99
|
for (let r = 0; r < e.length; r += 1)
|
71
100
|
e[r] && e[r].d(t);
|
72
101
|
}
|
73
|
-
function
|
102
|
+
function L(e) {
|
74
103
|
return document.createElement(e);
|
75
104
|
}
|
76
|
-
function
|
105
|
+
function ee(e) {
|
77
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
78
107
|
}
|
79
|
-
function
|
108
|
+
function ve(e) {
|
80
109
|
return document.createTextNode(e);
|
81
110
|
}
|
82
|
-
function
|
83
|
-
return
|
111
|
+
function _r() {
|
112
|
+
return ve(" ");
|
84
113
|
}
|
85
|
-
function
|
114
|
+
function Ot(e, t, r, n) {
|
86
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
87
116
|
}
|
88
|
-
function
|
117
|
+
function _(e, t, r) {
|
89
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
90
119
|
}
|
91
|
-
function
|
120
|
+
function eo(e, t, r) {
|
92
121
|
const n = t.toLowerCase();
|
93
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
122
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
94
123
|
}
|
95
|
-
function
|
124
|
+
function Sr(e) {
|
96
125
|
return Array.from(e.childNodes);
|
97
126
|
}
|
98
|
-
function
|
127
|
+
function It(e, t) {
|
99
128
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
100
129
|
t);
|
101
130
|
}
|
102
|
-
function
|
131
|
+
function Tr(e, t, r, n) {
|
103
132
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
104
133
|
}
|
105
|
-
function
|
134
|
+
function Hr(e) {
|
106
135
|
const t = {};
|
107
136
|
return e.childNodes.forEach(
|
108
137
|
/** @param {Element} node */
|
@@ -111,96 +140,96 @@ function pr(e) {
|
|
111
140
|
}
|
112
141
|
), t;
|
113
142
|
}
|
114
|
-
let
|
115
|
-
function
|
116
|
-
|
143
|
+
let ne;
|
144
|
+
function re(e) {
|
145
|
+
ne = e;
|
117
146
|
}
|
118
|
-
function
|
119
|
-
if (!
|
120
|
-
return
|
147
|
+
function Br() {
|
148
|
+
if (!ne) throw new Error("Function called outside component initialization");
|
149
|
+
return ne;
|
121
150
|
}
|
122
|
-
function
|
123
|
-
|
151
|
+
function to(e) {
|
152
|
+
Br().$$.on_mount.push(e);
|
124
153
|
}
|
125
|
-
const
|
126
|
-
let
|
127
|
-
const
|
128
|
-
let
|
129
|
-
function
|
130
|
-
|
154
|
+
const k = [], Ne = [];
|
155
|
+
let V = [];
|
156
|
+
const it = [], Ar = /* @__PURE__ */ Promise.resolve();
|
157
|
+
let Me = !1;
|
158
|
+
function wr() {
|
159
|
+
Me || (Me = !0, Ar.then(I));
|
131
160
|
}
|
132
|
-
function
|
133
|
-
|
161
|
+
function Ce(e) {
|
162
|
+
V.push(e);
|
134
163
|
}
|
135
|
-
const
|
136
|
-
let
|
137
|
-
function
|
138
|
-
if (
|
164
|
+
const Be = /* @__PURE__ */ new Set();
|
165
|
+
let F = 0;
|
166
|
+
function I() {
|
167
|
+
if (F !== 0)
|
139
168
|
return;
|
140
|
-
const e =
|
169
|
+
const e = ne;
|
141
170
|
do {
|
142
171
|
try {
|
143
|
-
for (;
|
144
|
-
const t =
|
145
|
-
|
172
|
+
for (; F < k.length; ) {
|
173
|
+
const t = k[F];
|
174
|
+
F++, re(t), Pr(t.$$);
|
146
175
|
}
|
147
176
|
} catch (t) {
|
148
|
-
throw
|
177
|
+
throw k.length = 0, F = 0, t;
|
149
178
|
}
|
150
|
-
for (
|
151
|
-
for (let t = 0; t <
|
152
|
-
const r =
|
153
|
-
|
179
|
+
for (re(null), k.length = 0, F = 0; Ne.length; ) Ne.pop()();
|
180
|
+
for (let t = 0; t < V.length; t += 1) {
|
181
|
+
const r = V[t];
|
182
|
+
Be.has(r) || (Be.add(r), r());
|
154
183
|
}
|
155
|
-
|
156
|
-
} while (
|
157
|
-
for (;
|
158
|
-
|
159
|
-
|
184
|
+
V.length = 0;
|
185
|
+
} while (k.length);
|
186
|
+
for (; it.length; )
|
187
|
+
it.pop()();
|
188
|
+
Me = !1, Be.clear(), re(e);
|
160
189
|
}
|
161
|
-
function
|
190
|
+
function Pr(e) {
|
162
191
|
if (e.fragment !== null) {
|
163
|
-
e.update(),
|
192
|
+
e.update(), se(e.before_update);
|
164
193
|
const t = e.dirty;
|
165
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
194
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
166
195
|
}
|
167
196
|
}
|
168
|
-
function
|
197
|
+
function Or(e) {
|
169
198
|
const t = [], r = [];
|
170
|
-
|
199
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
171
200
|
}
|
172
|
-
const
|
173
|
-
function
|
174
|
-
e && e.i && (
|
201
|
+
const Ir = /* @__PURE__ */ new Set();
|
202
|
+
function Lr(e, t) {
|
203
|
+
e && e.i && (Ir.delete(e), e.i(t));
|
175
204
|
}
|
176
|
-
function
|
177
|
-
return e
|
205
|
+
function ro(e) {
|
206
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
178
207
|
}
|
179
|
-
function
|
208
|
+
function Nr(e, t, r) {
|
180
209
|
const { fragment: n, after_update: i } = e.$$;
|
181
|
-
n && n.m(t, r),
|
182
|
-
const o = e.$$.on_mount.map(
|
183
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
184
|
-
}), i.forEach(
|
210
|
+
n && n.m(t, r), Ce(() => {
|
211
|
+
const o = e.$$.on_mount.map(At).filter(Qe);
|
212
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
213
|
+
}), i.forEach(Ce);
|
185
214
|
}
|
186
|
-
function
|
215
|
+
function Mr(e, t) {
|
187
216
|
const r = e.$$;
|
188
|
-
r.fragment !== null && (
|
217
|
+
r.fragment !== null && (Or(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
189
218
|
}
|
190
|
-
function
|
191
|
-
e.$$.dirty[0] === -1 && (
|
219
|
+
function Cr(e, t) {
|
220
|
+
e.$$.dirty[0] === -1 && (k.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
192
221
|
}
|
193
|
-
function
|
194
|
-
const h =
|
195
|
-
|
222
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
223
|
+
const h = ne;
|
224
|
+
re(e);
|
196
225
|
const u = e.$$ = {
|
197
226
|
fragment: null,
|
198
227
|
ctx: [],
|
199
228
|
// state
|
200
229
|
props: o,
|
201
|
-
update:
|
230
|
+
update: w,
|
202
231
|
not_equal: i,
|
203
|
-
bound:
|
232
|
+
bound: nt(),
|
204
233
|
// lifecycle
|
205
234
|
on_mount: [],
|
206
235
|
on_destroy: [],
|
@@ -209,7 +238,7 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
209
238
|
after_update: [],
|
210
239
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
211
240
|
// everything else
|
212
|
-
callbacks:
|
241
|
+
callbacks: nt(),
|
213
242
|
dirty: a,
|
214
243
|
skip_bound: !1,
|
215
244
|
root: t.target || h.$$.root
|
@@ -218,137 +247,141 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
247
|
let l = !1;
|
219
248
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
220
249
|
const y = d.length ? d[0] : f;
|
221
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l &&
|
222
|
-
}) : [], u.update(), l = !0,
|
250
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Cr(e, c)), f;
|
251
|
+
}) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
223
252
|
if (t.hydrate) {
|
224
|
-
const c =
|
225
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
253
|
+
const c = Sr(t.target);
|
254
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
226
255
|
} else
|
227
256
|
u.fragment && u.fragment.c();
|
228
|
-
t.intro &&
|
257
|
+
t.intro && Lr(e.$$.fragment), Nr(e, t.target, t.anchor), I();
|
229
258
|
}
|
230
|
-
|
231
|
-
}
|
232
|
-
let
|
233
|
-
typeof HTMLElement == "function" && (
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
259
|
+
re(h);
|
260
|
+
}
|
261
|
+
let Lt;
|
262
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
263
|
+
constructor(t, r, n) {
|
264
|
+
super();
|
265
|
+
/** The Svelte component constructor */
|
266
|
+
H(this, "$$ctor");
|
267
|
+
/** Slots */
|
268
|
+
H(this, "$$s");
|
269
|
+
/** The Svelte component instance */
|
270
|
+
H(this, "$$c");
|
271
|
+
/** Whether or not the custom element is connected */
|
272
|
+
H(this, "$$cn", !1);
|
273
|
+
/** Component props data */
|
274
|
+
H(this, "$$d", {});
|
275
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
276
|
+
H(this, "$$r", !1);
|
277
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
278
|
+
H(this, "$$p_d", {});
|
279
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
280
|
+
H(this, "$$l", {});
|
281
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
282
|
+
H(this, "$$l_u", /* @__PURE__ */ new Map());
|
283
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
254
284
|
}
|
255
|
-
addEventListener(
|
256
|
-
if (this.$$l[
|
257
|
-
const
|
258
|
-
this.$$l_u.set(
|
285
|
+
addEventListener(t, r, n) {
|
286
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
287
|
+
const i = this.$$c.$on(t, r);
|
288
|
+
this.$$l_u.set(r, i);
|
259
289
|
}
|
260
|
-
super.addEventListener(
|
290
|
+
super.addEventListener(t, r, n);
|
261
291
|
}
|
262
|
-
removeEventListener(
|
263
|
-
if (super.removeEventListener(
|
264
|
-
const
|
265
|
-
|
292
|
+
removeEventListener(t, r, n) {
|
293
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
294
|
+
const i = this.$$l_u.get(r);
|
295
|
+
i && (i(), this.$$l_u.delete(r));
|
266
296
|
}
|
267
297
|
}
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
298
|
+
connectedCallback() {
|
299
|
+
return rt(this, null, function* () {
|
300
|
+
if (this.$$cn = !0, !this.$$c) {
|
301
|
+
let t = function(o) {
|
302
|
+
return () => {
|
303
|
+
let s;
|
304
|
+
return {
|
305
|
+
c: function() {
|
306
|
+
s = L("slot"), o !== "default" && _(s, "name", o);
|
307
|
+
},
|
308
|
+
/**
|
309
|
+
* @param {HTMLElement} target
|
310
|
+
* @param {HTMLElement} [anchor]
|
311
|
+
*/
|
312
|
+
m: function(u, l) {
|
313
|
+
ae(u, s, l);
|
314
|
+
},
|
315
|
+
d: function(u) {
|
316
|
+
u && q(s);
|
317
|
+
}
|
318
|
+
};
|
287
319
|
};
|
288
320
|
};
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
298
|
-
}
|
299
|
-
for (const i in this.$$p_d)
|
300
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
301
|
-
this.$$c = new this.$$ctor({
|
302
|
-
target: this.shadowRoot || this,
|
303
|
-
props: {
|
304
|
-
...this.$$d,
|
305
|
-
$$slots: t,
|
306
|
-
$$scope: {
|
307
|
-
ctx: []
|
308
|
-
}
|
321
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
322
|
+
return;
|
323
|
+
const r = {}, n = Hr(this);
|
324
|
+
for (const o of this.$$s)
|
325
|
+
o in n && (r[o] = [t(o)]);
|
326
|
+
for (const o of this.attributes) {
|
327
|
+
const s = this.$$g_p(o.name);
|
328
|
+
s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
|
309
329
|
}
|
310
|
-
|
311
|
-
|
312
|
-
this.$$
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
330
|
+
for (const o in this.$$p_d)
|
331
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
332
|
+
this.$$c = new this.$$ctor({
|
333
|
+
target: this.shadowRoot || this,
|
334
|
+
props: tt(et({}, this.$$d), {
|
335
|
+
$$slots: r,
|
336
|
+
$$scope: {
|
337
|
+
ctx: []
|
338
|
+
}
|
339
|
+
})
|
340
|
+
});
|
341
|
+
const i = () => {
|
342
|
+
this.$$r = !0;
|
343
|
+
for (const o in this.$$p_d)
|
344
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
345
|
+
const s = de(
|
346
|
+
o,
|
347
|
+
this.$$d[o],
|
348
|
+
this.$$p_d,
|
349
|
+
"toAttribute"
|
350
|
+
);
|
351
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
352
|
+
}
|
353
|
+
this.$$r = !1;
|
354
|
+
};
|
355
|
+
this.$$c.$$.after_update.push(i), i();
|
356
|
+
for (const o in this.$$l)
|
357
|
+
for (const s of this.$$l[o]) {
|
358
|
+
const a = this.$$c.$on(o, s);
|
359
|
+
this.$$l_u.set(s, a);
|
322
360
|
}
|
323
|
-
this.$$
|
324
|
-
}
|
325
|
-
|
326
|
-
for (const i in this.$$l)
|
327
|
-
for (const o of this.$$l[i]) {
|
328
|
-
const s = this.$$c.$on(i, o);
|
329
|
-
this.$$l_u.set(o, s);
|
330
|
-
}
|
331
|
-
this.$$l = {};
|
332
|
-
}
|
361
|
+
this.$$l = {};
|
362
|
+
}
|
363
|
+
});
|
333
364
|
}
|
334
365
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
335
366
|
// and setting attributes through setAttribute etc, this is helpful
|
336
|
-
attributeChangedCallback(
|
337
|
-
|
367
|
+
attributeChangedCallback(t, r, n) {
|
368
|
+
var i;
|
369
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
338
370
|
}
|
339
371
|
disconnectedCallback() {
|
340
372
|
this.$$cn = !1, Promise.resolve().then(() => {
|
341
373
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
342
374
|
});
|
343
375
|
}
|
344
|
-
$$g_p(
|
376
|
+
$$g_p(t) {
|
345
377
|
return Object.keys(this.$$p_d).find(
|
346
|
-
(
|
347
|
-
) ||
|
378
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
379
|
+
) || t;
|
348
380
|
}
|
349
381
|
});
|
350
|
-
function
|
351
|
-
|
382
|
+
function de(e, t, r, n) {
|
383
|
+
var o;
|
384
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
352
385
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
353
386
|
return t;
|
354
387
|
if (n === "toAttribute")
|
@@ -359,7 +392,7 @@ function ce(e, t, r, n) {
|
|
359
392
|
case "Boolean":
|
360
393
|
return t ? "" : null;
|
361
394
|
case "Number":
|
362
|
-
return t
|
395
|
+
return t == null ? null : t;
|
363
396
|
default:
|
364
397
|
return t;
|
365
398
|
}
|
@@ -376,8 +409,8 @@ function ce(e, t, r, n) {
|
|
376
409
|
return t;
|
377
410
|
}
|
378
411
|
}
|
379
|
-
function
|
380
|
-
let s = class extends
|
412
|
+
function Rr(e, t, r, n, i, o) {
|
413
|
+
let s = class extends Lt {
|
381
414
|
constructor() {
|
382
415
|
super(e, r, i), this.$$p_d = t;
|
383
416
|
}
|
@@ -393,38 +426,42 @@ function Br(e, t, r, n, i, o) {
|
|
393
426
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
394
427
|
},
|
395
428
|
set(h) {
|
396
|
-
|
429
|
+
var u;
|
430
|
+
h = de(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
397
431
|
}
|
398
432
|
});
|
399
433
|
}), n.forEach((a) => {
|
400
434
|
Object.defineProperty(s.prototype, a, {
|
401
435
|
get() {
|
402
|
-
|
436
|
+
var h;
|
437
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
403
438
|
}
|
404
439
|
});
|
405
440
|
}), e.element = /** @type {any} */
|
406
441
|
s, s;
|
407
442
|
}
|
408
|
-
class
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
443
|
+
class Ur {
|
444
|
+
constructor() {
|
445
|
+
/**
|
446
|
+
* ### PRIVATE API
|
447
|
+
*
|
448
|
+
* Do not use, may change at any time
|
449
|
+
*
|
450
|
+
* @type {any}
|
451
|
+
*/
|
452
|
+
H(this, "$$");
|
453
|
+
/**
|
454
|
+
* ### PRIVATE API
|
455
|
+
*
|
456
|
+
* Do not use, may change at any time
|
457
|
+
*
|
458
|
+
* @type {any}
|
459
|
+
*/
|
460
|
+
H(this, "$$set");
|
461
|
+
}
|
425
462
|
/** @returns {void} */
|
426
463
|
$destroy() {
|
427
|
-
|
464
|
+
Mr(this, 1), this.$destroy = w;
|
428
465
|
}
|
429
466
|
/**
|
430
467
|
* @template {Extract<keyof Events, string>} K
|
@@ -433,8 +470,8 @@ class Ar {
|
|
433
470
|
* @returns {() => void}
|
434
471
|
*/
|
435
472
|
$on(t, r) {
|
436
|
-
if (!
|
437
|
-
return
|
473
|
+
if (!Qe(r))
|
474
|
+
return w;
|
438
475
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
439
476
|
return n.push(r), () => {
|
440
477
|
const i = n.indexOf(r);
|
@@ -446,22 +483,22 @@ class Ar {
|
|
446
483
|
* @returns {void}
|
447
484
|
*/
|
448
485
|
$set(t) {
|
449
|
-
this.$$set && !
|
486
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
450
487
|
}
|
451
488
|
}
|
452
|
-
const
|
453
|
-
typeof window
|
454
|
-
var
|
455
|
-
return
|
489
|
+
const Gr = "4";
|
490
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
491
|
+
var $e = function(e, t) {
|
492
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
456
493
|
r.__proto__ = n;
|
457
494
|
} || function(r, n) {
|
458
495
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
459
|
-
},
|
496
|
+
}, $e(e, t);
|
460
497
|
};
|
461
|
-
function
|
498
|
+
function M(e, t) {
|
462
499
|
if (typeof t != "function" && t !== null)
|
463
500
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
464
|
-
|
501
|
+
$e(e, t);
|
465
502
|
function r() {
|
466
503
|
this.constructor = e;
|
467
504
|
}
|
@@ -476,7 +513,7 @@ var g = function() {
|
|
476
513
|
return t;
|
477
514
|
}, g.apply(this, arguments);
|
478
515
|
};
|
479
|
-
function
|
516
|
+
function Dr(e, t) {
|
480
517
|
var r = {};
|
481
518
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
482
519
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -484,7 +521,7 @@ function Pr(e, t) {
|
|
484
521
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
485
522
|
return r;
|
486
523
|
}
|
487
|
-
function
|
524
|
+
function Re(e) {
|
488
525
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
489
526
|
if (r) return r.call(e);
|
490
527
|
if (e && typeof e.length == "number") return {
|
@@ -494,7 +531,7 @@ function Ce(e) {
|
|
494
531
|
};
|
495
532
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
496
533
|
}
|
497
|
-
function
|
534
|
+
function Ue(e, t) {
|
498
535
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
499
536
|
if (!r) return e;
|
500
537
|
var n = r.call(e), i, o = [], s;
|
@@ -511,21 +548,21 @@ function $e(e, t) {
|
|
511
548
|
}
|
512
549
|
return o;
|
513
550
|
}
|
514
|
-
function
|
551
|
+
function X(e, t, r) {
|
515
552
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
516
553
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
517
554
|
return e.concat(o || Array.prototype.slice.call(t));
|
518
555
|
}
|
519
|
-
function
|
556
|
+
function N(e) {
|
520
557
|
return typeof e == "function";
|
521
558
|
}
|
522
|
-
function
|
559
|
+
function Nt(e) {
|
523
560
|
var t = function(n) {
|
524
561
|
Error.call(n), n.stack = new Error().stack;
|
525
562
|
}, r = e(t);
|
526
563
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
527
564
|
}
|
528
|
-
var
|
565
|
+
var Ae = Nt(function(e) {
|
529
566
|
return function(r) {
|
530
567
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
531
568
|
` + r.map(function(n, i) {
|
@@ -534,13 +571,13 @@ var He = At(function(e) {
|
|
534
571
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
535
572
|
};
|
536
573
|
});
|
537
|
-
function
|
574
|
+
function Ge(e, t) {
|
538
575
|
if (e) {
|
539
576
|
var r = e.indexOf(t);
|
540
577
|
0 <= r && e.splice(r, 1);
|
541
578
|
}
|
542
579
|
}
|
543
|
-
var
|
580
|
+
var xe = function() {
|
544
581
|
function e(t) {
|
545
582
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
546
583
|
}
|
@@ -552,7 +589,7 @@ var ve = function() {
|
|
552
589
|
if (s)
|
553
590
|
if (this._parentage = null, Array.isArray(s))
|
554
591
|
try {
|
555
|
-
for (var a =
|
592
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
556
593
|
var u = h.value;
|
557
594
|
u.remove(this);
|
558
595
|
}
|
@@ -568,22 +605,22 @@ var ve = function() {
|
|
568
605
|
else
|
569
606
|
s.remove(this);
|
570
607
|
var l = this.initialTeardown;
|
571
|
-
if (
|
608
|
+
if (N(l))
|
572
609
|
try {
|
573
610
|
l();
|
574
611
|
} catch (v) {
|
575
|
-
o = v instanceof
|
612
|
+
o = v instanceof Ae ? v.errors : [v];
|
576
613
|
}
|
577
614
|
var c = this._finalizers;
|
578
615
|
if (c) {
|
579
616
|
this._finalizers = null;
|
580
617
|
try {
|
581
|
-
for (var f =
|
618
|
+
for (var f = Re(c), d = f.next(); !d.done; d = f.next()) {
|
582
619
|
var y = d.value;
|
583
620
|
try {
|
584
|
-
|
621
|
+
ot(y);
|
585
622
|
} catch (v) {
|
586
|
-
o = o
|
623
|
+
o = o != null ? o : [], v instanceof Ae ? o = X(X([], Ue(o)), Ue(v.errors)) : o.push(v);
|
587
624
|
}
|
588
625
|
}
|
589
626
|
} catch (v) {
|
@@ -597,13 +634,13 @@ var ve = function() {
|
|
597
634
|
}
|
598
635
|
}
|
599
636
|
if (o)
|
600
|
-
throw new
|
637
|
+
throw new Ae(o);
|
601
638
|
}
|
602
639
|
}, e.prototype.add = function(t) {
|
603
640
|
var r;
|
604
641
|
if (t && t !== this)
|
605
642
|
if (this.closed)
|
606
|
-
|
643
|
+
ot(t);
|
607
644
|
else {
|
608
645
|
if (t instanceof e) {
|
609
646
|
if (t.closed || t._hasParent(this))
|
@@ -620,56 +657,56 @@ var ve = function() {
|
|
620
657
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
621
658
|
}, e.prototype._removeParent = function(t) {
|
622
659
|
var r = this._parentage;
|
623
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
660
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
624
661
|
}, e.prototype.remove = function(t) {
|
625
662
|
var r = this._finalizers;
|
626
|
-
r &&
|
663
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
627
664
|
}, e.EMPTY = function() {
|
628
665
|
var t = new e();
|
629
666
|
return t.closed = !0, t;
|
630
667
|
}(), e;
|
631
|
-
}(),
|
632
|
-
function
|
633
|
-
return e instanceof
|
668
|
+
}(), Mt = xe.EMPTY;
|
669
|
+
function Ct(e) {
|
670
|
+
return e instanceof xe || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
634
671
|
}
|
635
|
-
function
|
636
|
-
|
672
|
+
function ot(e) {
|
673
|
+
N(e) ? e() : e.unsubscribe();
|
637
674
|
}
|
638
|
-
var
|
675
|
+
var Fr = {
|
639
676
|
onUnhandledError: null,
|
640
677
|
onStoppedNotification: null,
|
641
678
|
Promise: void 0,
|
642
679
|
useDeprecatedSynchronousErrorHandling: !1,
|
643
680
|
useDeprecatedNextContext: !1
|
644
|
-
},
|
681
|
+
}, jr = {
|
645
682
|
setTimeout: function(e, t) {
|
646
683
|
for (var r = [], n = 2; n < arguments.length; n++)
|
647
684
|
r[n - 2] = arguments[n];
|
648
|
-
return setTimeout.apply(void 0,
|
685
|
+
return setTimeout.apply(void 0, X([e, t], Ue(r)));
|
649
686
|
},
|
650
687
|
clearTimeout: function(e) {
|
651
688
|
return clearTimeout(e);
|
652
689
|
},
|
653
690
|
delegate: void 0
|
654
691
|
};
|
655
|
-
function
|
656
|
-
|
692
|
+
function kr(e) {
|
693
|
+
jr.setTimeout(function() {
|
657
694
|
throw e;
|
658
695
|
});
|
659
696
|
}
|
660
|
-
function
|
697
|
+
function st() {
|
661
698
|
}
|
662
|
-
function
|
699
|
+
function pe(e) {
|
663
700
|
e();
|
664
701
|
}
|
665
|
-
var
|
666
|
-
|
702
|
+
var $t = function(e) {
|
703
|
+
M(t, e);
|
667
704
|
function t(r) {
|
668
705
|
var n = e.call(this) || this;
|
669
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
706
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Wr, n;
|
670
707
|
}
|
671
708
|
return t.create = function(r, n, i) {
|
672
|
-
return new
|
709
|
+
return new De(r, n, i);
|
673
710
|
}, t.prototype.next = function(r) {
|
674
711
|
this.isStopped || this._next(r);
|
675
712
|
}, t.prototype.error = function(r) {
|
@@ -693,7 +730,7 @@ var Ot = function(e) {
|
|
693
730
|
this.unsubscribe();
|
694
731
|
}
|
695
732
|
}, t;
|
696
|
-
}(
|
733
|
+
}(xe), Vr = function() {
|
697
734
|
function e(t) {
|
698
735
|
this.partialObserver = t;
|
699
736
|
}
|
@@ -703,7 +740,7 @@ var Ot = function(e) {
|
|
703
740
|
try {
|
704
741
|
r.next(t);
|
705
742
|
} catch (n) {
|
706
|
-
|
743
|
+
fe(n);
|
707
744
|
}
|
708
745
|
}, e.prototype.error = function(t) {
|
709
746
|
var r = this.partialObserver;
|
@@ -711,56 +748,56 @@ var Ot = function(e) {
|
|
711
748
|
try {
|
712
749
|
r.error(t);
|
713
750
|
} catch (n) {
|
714
|
-
|
751
|
+
fe(n);
|
715
752
|
}
|
716
753
|
else
|
717
|
-
|
754
|
+
fe(t);
|
718
755
|
}, e.prototype.complete = function() {
|
719
756
|
var t = this.partialObserver;
|
720
757
|
if (t.complete)
|
721
758
|
try {
|
722
759
|
t.complete();
|
723
760
|
} catch (r) {
|
724
|
-
|
761
|
+
fe(r);
|
725
762
|
}
|
726
763
|
}, e;
|
727
|
-
}(),
|
728
|
-
|
764
|
+
}(), De = function(e) {
|
765
|
+
M(t, e);
|
729
766
|
function t(r, n, i) {
|
730
767
|
var o = e.call(this) || this, s;
|
731
|
-
return
|
732
|
-
next: r
|
733
|
-
error: n
|
734
|
-
complete: i
|
735
|
-
} : s = r, o.destination = new
|
768
|
+
return N(r) || !r ? s = {
|
769
|
+
next: r != null ? r : void 0,
|
770
|
+
error: n != null ? n : void 0,
|
771
|
+
complete: i != null ? i : void 0
|
772
|
+
} : s = r, o.destination = new Vr(s), o;
|
736
773
|
}
|
737
774
|
return t;
|
738
|
-
}(
|
739
|
-
function
|
740
|
-
|
775
|
+
}($t);
|
776
|
+
function fe(e) {
|
777
|
+
kr(e);
|
741
778
|
}
|
742
|
-
function
|
779
|
+
function Xr(e) {
|
743
780
|
throw e;
|
744
781
|
}
|
745
|
-
var
|
782
|
+
var Wr = {
|
746
783
|
closed: !0,
|
747
|
-
next:
|
748
|
-
error:
|
749
|
-
complete:
|
750
|
-
},
|
784
|
+
next: st,
|
785
|
+
error: Xr,
|
786
|
+
complete: st
|
787
|
+
}, zr = function() {
|
751
788
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
752
789
|
}();
|
753
|
-
function
|
790
|
+
function Zr(e) {
|
754
791
|
return e;
|
755
792
|
}
|
756
|
-
function
|
757
|
-
return e.length === 0 ?
|
793
|
+
function Qr(e) {
|
794
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
758
795
|
return e.reduce(function(n, i) {
|
759
796
|
return i(n);
|
760
797
|
}, r);
|
761
798
|
};
|
762
799
|
}
|
763
|
-
var
|
800
|
+
var at = function() {
|
764
801
|
function e(t) {
|
765
802
|
t && (this._subscribe = t);
|
766
803
|
}
|
@@ -768,8 +805,8 @@ var tt = function() {
|
|
768
805
|
var r = new e();
|
769
806
|
return r.source = this, r.operator = t, r;
|
770
807
|
}, e.prototype.subscribe = function(t, r, n) {
|
771
|
-
var i = this, o =
|
772
|
-
return
|
808
|
+
var i = this, o = Jr(t) ? t : new De(t, r, n);
|
809
|
+
return pe(function() {
|
773
810
|
var s = i, a = s.operator, h = s.source;
|
774
811
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
775
812
|
}), o;
|
@@ -781,8 +818,8 @@ var tt = function() {
|
|
781
818
|
}
|
782
819
|
}, e.prototype.forEach = function(t, r) {
|
783
820
|
var n = this;
|
784
|
-
return r =
|
785
|
-
var s = new
|
821
|
+
return r = ut(r), new r(function(i, o) {
|
822
|
+
var s = new De({
|
786
823
|
next: function(a) {
|
787
824
|
try {
|
788
825
|
t(a);
|
@@ -798,15 +835,15 @@ var tt = function() {
|
|
798
835
|
}, e.prototype._subscribe = function(t) {
|
799
836
|
var r;
|
800
837
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
801
|
-
}, e.prototype[
|
838
|
+
}, e.prototype[zr] = function() {
|
802
839
|
return this;
|
803
840
|
}, e.prototype.pipe = function() {
|
804
841
|
for (var t = [], r = 0; r < arguments.length; r++)
|
805
842
|
t[r] = arguments[r];
|
806
|
-
return
|
843
|
+
return Qr(t)(this);
|
807
844
|
}, e.prototype.toPromise = function(t) {
|
808
845
|
var r = this;
|
809
|
-
return t =
|
846
|
+
return t = ut(t), new t(function(n, i) {
|
810
847
|
var o;
|
811
848
|
r.subscribe(function(s) {
|
812
849
|
return o = s;
|
@@ -820,40 +857,40 @@ var tt = function() {
|
|
820
857
|
return new e(t);
|
821
858
|
}, e;
|
822
859
|
}();
|
823
|
-
function
|
860
|
+
function ut(e) {
|
824
861
|
var t;
|
825
|
-
return (t = e
|
862
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
826
863
|
}
|
827
|
-
function
|
828
|
-
return e &&
|
864
|
+
function qr(e) {
|
865
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
829
866
|
}
|
830
|
-
function
|
831
|
-
return e && e instanceof
|
867
|
+
function Jr(e) {
|
868
|
+
return e && e instanceof $t || qr(e) && Ct(e);
|
832
869
|
}
|
833
|
-
var
|
870
|
+
var Yr = Nt(function(e) {
|
834
871
|
return function() {
|
835
872
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
836
873
|
};
|
837
|
-
}),
|
838
|
-
|
874
|
+
}), Rt = function(e) {
|
875
|
+
M(t, e);
|
839
876
|
function t() {
|
840
877
|
var r = e.call(this) || this;
|
841
878
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
842
879
|
}
|
843
880
|
return t.prototype.lift = function(r) {
|
844
|
-
var n = new
|
881
|
+
var n = new ht(this, this);
|
845
882
|
return n.operator = r, n;
|
846
883
|
}, t.prototype._throwIfClosed = function() {
|
847
884
|
if (this.closed)
|
848
|
-
throw new
|
885
|
+
throw new Yr();
|
849
886
|
}, t.prototype.next = function(r) {
|
850
887
|
var n = this;
|
851
|
-
|
888
|
+
pe(function() {
|
852
889
|
var i, o;
|
853
890
|
if (n._throwIfClosed(), !n.isStopped) {
|
854
891
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
855
892
|
try {
|
856
|
-
for (var s =
|
893
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
857
894
|
var h = a.value;
|
858
895
|
h.next(r);
|
859
896
|
}
|
@@ -870,7 +907,7 @@ var Fr = At(function(e) {
|
|
870
907
|
});
|
871
908
|
}, t.prototype.error = function(r) {
|
872
909
|
var n = this;
|
873
|
-
|
910
|
+
pe(function() {
|
874
911
|
if (n._throwIfClosed(), !n.isStopped) {
|
875
912
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
876
913
|
for (var i = n.observers; i.length; )
|
@@ -879,7 +916,7 @@ var Fr = At(function(e) {
|
|
879
916
|
});
|
880
917
|
}, t.prototype.complete = function() {
|
881
918
|
var r = this;
|
882
|
-
|
919
|
+
pe(function() {
|
883
920
|
if (r._throwIfClosed(), !r.isStopped) {
|
884
921
|
r.isStopped = !0;
|
885
922
|
for (var n = r.observers; n.length; )
|
@@ -901,20 +938,20 @@ var Fr = At(function(e) {
|
|
901
938
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
902
939
|
}, t.prototype._innerSubscribe = function(r) {
|
903
940
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
904
|
-
return o || s ?
|
905
|
-
n.currentObservers = null,
|
941
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new xe(function() {
|
942
|
+
n.currentObservers = null, Ge(a, r);
|
906
943
|
}));
|
907
944
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
908
945
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
909
946
|
i ? r.error(o) : s && r.complete();
|
910
947
|
}, t.prototype.asObservable = function() {
|
911
|
-
var r = new
|
948
|
+
var r = new at();
|
912
949
|
return r.source = this, r;
|
913
950
|
}, t.create = function(r, n) {
|
914
|
-
return new
|
951
|
+
return new ht(r, n);
|
915
952
|
}, t;
|
916
|
-
}(
|
917
|
-
|
953
|
+
}(at), ht = function(e) {
|
954
|
+
M(t, e);
|
918
955
|
function t(r, n) {
|
919
956
|
var i = e.call(this) || this;
|
920
957
|
return i.destination = r, i.source = n, i;
|
@@ -930,17 +967,17 @@ var Fr = At(function(e) {
|
|
930
967
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
931
968
|
}, t.prototype._subscribe = function(r) {
|
932
969
|
var n, i;
|
933
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
970
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
934
971
|
}, t;
|
935
|
-
}(
|
972
|
+
}(Rt), Ut = {
|
936
973
|
now: function() {
|
937
|
-
return (
|
974
|
+
return (Ut.delegate || Date).now();
|
938
975
|
},
|
939
976
|
delegate: void 0
|
940
|
-
},
|
941
|
-
|
977
|
+
}, Kr = function(e) {
|
978
|
+
M(t, e);
|
942
979
|
function t(r, n, i) {
|
943
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
980
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
944
981
|
var o = e.call(this) || this;
|
945
982
|
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;
|
946
983
|
}
|
@@ -960,65 +997,65 @@ var Fr = At(function(e) {
|
|
960
997
|
u && o.splice(0, u + 1);
|
961
998
|
}
|
962
999
|
}, t;
|
963
|
-
}(
|
964
|
-
const
|
965
|
-
if (
|
966
|
-
const r = new
|
967
|
-
|
1000
|
+
}(Rt);
|
1001
|
+
const lt = [], ft = {}, en = (e, t = 0) => {
|
1002
|
+
if (lt.indexOf(e) == -1) {
|
1003
|
+
const r = new Kr(t);
|
1004
|
+
ft[e] = r, lt.push(e);
|
968
1005
|
}
|
969
|
-
return
|
970
|
-
},
|
971
|
-
function
|
1006
|
+
return ft[e];
|
1007
|
+
}, j = [];
|
1008
|
+
function tn(e, t) {
|
972
1009
|
return {
|
973
|
-
subscribe:
|
1010
|
+
subscribe: Ee(e, t).subscribe
|
974
1011
|
};
|
975
1012
|
}
|
976
|
-
function
|
1013
|
+
function Ee(e, t = w) {
|
977
1014
|
let r;
|
978
1015
|
const n = /* @__PURE__ */ new Set();
|
979
1016
|
function i(a) {
|
980
|
-
if (
|
981
|
-
const h = !
|
1017
|
+
if (wt(e, a) && (e = a, r)) {
|
1018
|
+
const h = !j.length;
|
982
1019
|
for (const u of n)
|
983
|
-
u[1](),
|
1020
|
+
u[1](), j.push(u, e);
|
984
1021
|
if (h) {
|
985
|
-
for (let u = 0; u <
|
986
|
-
|
987
|
-
|
1022
|
+
for (let u = 0; u < j.length; u += 2)
|
1023
|
+
j[u][0](j[u + 1]);
|
1024
|
+
j.length = 0;
|
988
1025
|
}
|
989
1026
|
}
|
990
1027
|
}
|
991
1028
|
function o(a) {
|
992
1029
|
i(a(e));
|
993
1030
|
}
|
994
|
-
function s(a, h =
|
1031
|
+
function s(a, h = w) {
|
995
1032
|
const u = [a, h];
|
996
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
1033
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || w), a(e), () => {
|
997
1034
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
998
1035
|
};
|
999
1036
|
}
|
1000
1037
|
return { set: i, update: o, subscribe: s };
|
1001
1038
|
}
|
1002
|
-
function
|
1039
|
+
function J(e, t, r) {
|
1003
1040
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1004
1041
|
if (!i.every(Boolean))
|
1005
1042
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1006
1043
|
const o = t.length < 2;
|
1007
|
-
return
|
1044
|
+
return tn(r, (s, a) => {
|
1008
1045
|
let h = !1;
|
1009
1046
|
const u = [];
|
1010
|
-
let l = 0, c =
|
1047
|
+
let l = 0, c = w;
|
1011
1048
|
const f = () => {
|
1012
1049
|
if (l)
|
1013
1050
|
return;
|
1014
1051
|
c();
|
1015
1052
|
const y = t(n ? u[0] : u, s, a);
|
1016
|
-
o ? s(y) : c =
|
1053
|
+
o ? s(y) : c = Qe(y) ? y : w;
|
1017
1054
|
}, d = i.map(
|
1018
|
-
(y, v) =>
|
1055
|
+
(y, v) => Pt(
|
1019
1056
|
y,
|
1020
|
-
(
|
1021
|
-
u[v] =
|
1057
|
+
(B) => {
|
1058
|
+
u[v] = B, l &= ~(1 << v), h && f();
|
1022
1059
|
},
|
1023
1060
|
() => {
|
1024
1061
|
l |= 1 << v;
|
@@ -1026,118 +1063,118 @@ function q(e, t, r) {
|
|
1026
1063
|
)
|
1027
1064
|
);
|
1028
1065
|
return h = !0, f(), function() {
|
1029
|
-
|
1066
|
+
se(d), c(), h = !1;
|
1030
1067
|
};
|
1031
1068
|
});
|
1032
1069
|
}
|
1033
|
-
function
|
1070
|
+
function rn(e) {
|
1034
1071
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1035
1072
|
}
|
1036
|
-
var
|
1037
|
-
return
|
1073
|
+
var nn = function(t) {
|
1074
|
+
return on(t) && !sn(t);
|
1038
1075
|
};
|
1039
|
-
function
|
1076
|
+
function on(e) {
|
1040
1077
|
return !!e && typeof e == "object";
|
1041
1078
|
}
|
1042
|
-
function
|
1079
|
+
function sn(e) {
|
1043
1080
|
var t = Object.prototype.toString.call(e);
|
1044
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1081
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
1045
1082
|
}
|
1046
|
-
var
|
1047
|
-
function
|
1048
|
-
return e.$$typeof ===
|
1083
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
1084
|
+
function hn(e) {
|
1085
|
+
return e.$$typeof === un;
|
1049
1086
|
}
|
1050
|
-
function
|
1087
|
+
function ln(e) {
|
1051
1088
|
return Array.isArray(e) ? [] : {};
|
1052
1089
|
}
|
1053
|
-
function
|
1054
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1090
|
+
function ie(e, t) {
|
1091
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(ln(e), e, t) : e;
|
1055
1092
|
}
|
1056
|
-
function
|
1093
|
+
function fn(e, t, r) {
|
1057
1094
|
return e.concat(t).map(function(n) {
|
1058
|
-
return
|
1095
|
+
return ie(n, r);
|
1059
1096
|
});
|
1060
1097
|
}
|
1061
|
-
function
|
1098
|
+
function cn(e, t) {
|
1062
1099
|
if (!t.customMerge)
|
1063
|
-
return
|
1100
|
+
return W;
|
1064
1101
|
var r = t.customMerge(e);
|
1065
|
-
return typeof r == "function" ? r :
|
1102
|
+
return typeof r == "function" ? r : W;
|
1066
1103
|
}
|
1067
|
-
function
|
1104
|
+
function dn(e) {
|
1068
1105
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1069
1106
|
return Object.propertyIsEnumerable.call(e, t);
|
1070
1107
|
}) : [];
|
1071
1108
|
}
|
1072
|
-
function
|
1073
|
-
return Object.keys(e).concat(
|
1109
|
+
function ct(e) {
|
1110
|
+
return Object.keys(e).concat(dn(e));
|
1074
1111
|
}
|
1075
|
-
function
|
1112
|
+
function Gt(e, t) {
|
1076
1113
|
try {
|
1077
1114
|
return t in e;
|
1078
|
-
} catch {
|
1115
|
+
} catch (r) {
|
1079
1116
|
return !1;
|
1080
1117
|
}
|
1081
1118
|
}
|
1082
|
-
function
|
1083
|
-
return
|
1119
|
+
function pn(e, t) {
|
1120
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1084
1121
|
}
|
1085
|
-
function
|
1122
|
+
function mn(e, t, r) {
|
1086
1123
|
var n = {};
|
1087
|
-
return r.isMergeableObject(e) &&
|
1088
|
-
n[i] =
|
1089
|
-
}),
|
1090
|
-
|
1124
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
1125
|
+
n[i] = ie(e[i], r);
|
1126
|
+
}), ct(t).forEach(function(i) {
|
1127
|
+
pn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
1091
1128
|
}), n;
|
1092
1129
|
}
|
1093
|
-
function
|
1094
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1130
|
+
function W(e, t, r) {
|
1131
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ie;
|
1095
1132
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1096
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1133
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ie(t, r);
|
1097
1134
|
}
|
1098
|
-
|
1135
|
+
W.all = function(t, r) {
|
1099
1136
|
if (!Array.isArray(t))
|
1100
1137
|
throw new Error("first argument should be an array");
|
1101
1138
|
return t.reduce(function(n, i) {
|
1102
|
-
return
|
1139
|
+
return W(n, i, r);
|
1103
1140
|
}, {});
|
1104
1141
|
};
|
1105
|
-
var
|
1106
|
-
const
|
1107
|
-
function
|
1108
|
-
var r = t && t.cache ? t.cache :
|
1142
|
+
var bn = W, gn = bn;
|
1143
|
+
const yn = /* @__PURE__ */ rn(gn);
|
1144
|
+
function we(e, t) {
|
1145
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : xn;
|
1109
1146
|
return i(e, {
|
1110
1147
|
cache: r,
|
1111
1148
|
serializer: n
|
1112
1149
|
});
|
1113
1150
|
}
|
1114
|
-
function
|
1151
|
+
function vn(e) {
|
1115
1152
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1116
1153
|
}
|
1117
|
-
function
|
1118
|
-
var i =
|
1119
|
-
return typeof o
|
1154
|
+
function Dt(e, t, r, n) {
|
1155
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
1156
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
1120
1157
|
}
|
1121
|
-
function
|
1158
|
+
function Ft(e, t, r) {
|
1122
1159
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1123
|
-
return typeof o
|
1160
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
1124
1161
|
}
|
1125
|
-
function
|
1162
|
+
function qe(e, t, r, n, i) {
|
1126
1163
|
return r.bind(t, e, n, i);
|
1127
1164
|
}
|
1128
|
-
function
|
1129
|
-
var r = e.length === 1 ?
|
1130
|
-
return
|
1165
|
+
function xn(e, t) {
|
1166
|
+
var r = e.length === 1 ? Dt : Ft;
|
1167
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
1131
1168
|
}
|
1132
|
-
function
|
1133
|
-
return
|
1169
|
+
function En(e, t) {
|
1170
|
+
return qe(e, this, Ft, t.cache.create(), t.serializer);
|
1134
1171
|
}
|
1135
|
-
function
|
1136
|
-
return
|
1172
|
+
function _n(e, t) {
|
1173
|
+
return qe(e, this, Dt, t.cache.create(), t.serializer);
|
1137
1174
|
}
|
1138
|
-
var
|
1175
|
+
var Sn = function() {
|
1139
1176
|
return JSON.stringify(arguments);
|
1140
|
-
},
|
1177
|
+
}, Tn = (
|
1141
1178
|
/** @class */
|
1142
1179
|
function() {
|
1143
1180
|
function e() {
|
@@ -1149,62 +1186,62 @@ var cn = function() {
|
|
1149
1186
|
this.cache[t] = r;
|
1150
1187
|
}, e;
|
1151
1188
|
}()
|
1152
|
-
),
|
1189
|
+
), Hn = {
|
1153
1190
|
create: function() {
|
1154
|
-
return new
|
1191
|
+
return new Tn();
|
1155
1192
|
}
|
1156
|
-
},
|
1157
|
-
variadic:
|
1158
|
-
monadic:
|
1193
|
+
}, Pe = {
|
1194
|
+
variadic: En,
|
1195
|
+
monadic: _n
|
1159
1196
|
}, p;
|
1160
1197
|
(function(e) {
|
1161
1198
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
1162
1199
|
})(p || (p = {}));
|
1163
|
-
var
|
1200
|
+
var x;
|
1164
1201
|
(function(e) {
|
1165
1202
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
1166
|
-
})(
|
1167
|
-
var
|
1203
|
+
})(x || (x = {}));
|
1204
|
+
var z;
|
1168
1205
|
(function(e) {
|
1169
1206
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1170
|
-
})(
|
1171
|
-
function
|
1172
|
-
return e.type ===
|
1207
|
+
})(z || (z = {}));
|
1208
|
+
function dt(e) {
|
1209
|
+
return e.type === x.literal;
|
1173
1210
|
}
|
1174
|
-
function
|
1175
|
-
return e.type ===
|
1211
|
+
function Bn(e) {
|
1212
|
+
return e.type === x.argument;
|
1176
1213
|
}
|
1177
|
-
function
|
1178
|
-
return e.type ===
|
1214
|
+
function jt(e) {
|
1215
|
+
return e.type === x.number;
|
1179
1216
|
}
|
1180
|
-
function
|
1181
|
-
return e.type ===
|
1217
|
+
function kt(e) {
|
1218
|
+
return e.type === x.date;
|
1182
1219
|
}
|
1183
|
-
function
|
1184
|
-
return e.type ===
|
1220
|
+
function Vt(e) {
|
1221
|
+
return e.type === x.time;
|
1185
1222
|
}
|
1186
|
-
function
|
1187
|
-
return e.type ===
|
1223
|
+
function Xt(e) {
|
1224
|
+
return e.type === x.select;
|
1188
1225
|
}
|
1189
|
-
function
|
1190
|
-
return e.type ===
|
1226
|
+
function Wt(e) {
|
1227
|
+
return e.type === x.plural;
|
1191
1228
|
}
|
1192
|
-
function
|
1193
|
-
return e.type ===
|
1229
|
+
function An(e) {
|
1230
|
+
return e.type === x.pound;
|
1194
1231
|
}
|
1195
|
-
function
|
1196
|
-
return e.type ===
|
1232
|
+
function zt(e) {
|
1233
|
+
return e.type === x.tag;
|
1197
1234
|
}
|
1198
|
-
function
|
1199
|
-
return !!(e && typeof e == "object" && e.type ===
|
1235
|
+
function Zt(e) {
|
1236
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
1200
1237
|
}
|
1201
|
-
function
|
1202
|
-
return !!(e && typeof e == "object" && e.type ===
|
1238
|
+
function Fe(e) {
|
1239
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
1203
1240
|
}
|
1204
|
-
var
|
1205
|
-
function
|
1241
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
1242
|
+
function Pn(e) {
|
1206
1243
|
var t = {};
|
1207
|
-
return e.replace(
|
1244
|
+
return e.replace(wn, function(r) {
|
1208
1245
|
var n = r.length;
|
1209
1246
|
switch (r[0]) {
|
1210
1247
|
case "G":
|
@@ -1293,11 +1330,11 @@ function yn(e) {
|
|
1293
1330
|
return "";
|
1294
1331
|
}), t;
|
1295
1332
|
}
|
1296
|
-
var
|
1297
|
-
function
|
1333
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1334
|
+
function In(e) {
|
1298
1335
|
if (e.length === 0)
|
1299
1336
|
throw new Error("Number skeleton cannot be empty");
|
1300
|
-
for (var t = e.split(
|
1337
|
+
for (var t = e.split(On).filter(function(f) {
|
1301
1338
|
return f.length > 0;
|
1302
1339
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1303
1340
|
var o = i[n], s = o.split("/");
|
@@ -1312,17 +1349,17 @@ function _n(e) {
|
|
1312
1349
|
}
|
1313
1350
|
return r;
|
1314
1351
|
}
|
1315
|
-
function
|
1352
|
+
function Ln(e) {
|
1316
1353
|
return e.replace(/^(.*?)-/, "");
|
1317
1354
|
}
|
1318
|
-
var
|
1319
|
-
function
|
1355
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
1356
|
+
function mt(e) {
|
1320
1357
|
var t = {};
|
1321
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1358
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
1322
1359
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
1323
1360
|
}), t;
|
1324
1361
|
}
|
1325
|
-
function
|
1362
|
+
function Yt(e) {
|
1326
1363
|
switch (e) {
|
1327
1364
|
case "sign-auto":
|
1328
1365
|
return {
|
@@ -1362,7 +1399,7 @@ function Wt(e) {
|
|
1362
1399
|
};
|
1363
1400
|
}
|
1364
1401
|
}
|
1365
|
-
function
|
1402
|
+
function Mn(e) {
|
1366
1403
|
var t;
|
1367
1404
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1368
1405
|
notation: "engineering"
|
@@ -1370,17 +1407,17 @@ function Sn(e) {
|
|
1370
1407
|
notation: "scientific"
|
1371
1408
|
}, e = e.slice(1)), t) {
|
1372
1409
|
var r = e.slice(0, 2);
|
1373
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1410
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
1374
1411
|
throw new Error("Malformed concise eng/scientific notation");
|
1375
1412
|
t.minimumIntegerDigits = e.length;
|
1376
1413
|
}
|
1377
1414
|
return t;
|
1378
1415
|
}
|
1379
|
-
function
|
1380
|
-
var t = {}, r =
|
1416
|
+
function bt(e) {
|
1417
|
+
var t = {}, r = Yt(e);
|
1381
1418
|
return r || t;
|
1382
1419
|
}
|
1383
|
-
function
|
1420
|
+
function Cn(e) {
|
1384
1421
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1385
1422
|
var i = n[r];
|
1386
1423
|
switch (i.stem) {
|
@@ -1404,7 +1441,7 @@ function Tn(e) {
|
|
1404
1441
|
continue;
|
1405
1442
|
case "measure-unit":
|
1406
1443
|
case "unit":
|
1407
|
-
t.style = "unit", t.unit =
|
1444
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
1408
1445
|
continue;
|
1409
1446
|
case "compact-short":
|
1410
1447
|
case "K":
|
@@ -1416,12 +1453,12 @@ function Tn(e) {
|
|
1416
1453
|
continue;
|
1417
1454
|
case "scientific":
|
1418
1455
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1419
|
-
return g(g({}, h),
|
1456
|
+
return g(g({}, h), bt(u));
|
1420
1457
|
}, {}));
|
1421
1458
|
continue;
|
1422
1459
|
case "engineering":
|
1423
1460
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1424
|
-
return g(g({}, h),
|
1461
|
+
return g(g({}, h), bt(u));
|
1425
1462
|
}, {}));
|
1426
1463
|
continue;
|
1427
1464
|
case "notation-simple":
|
@@ -1466,7 +1503,7 @@ function Tn(e) {
|
|
1466
1503
|
case "integer-width":
|
1467
1504
|
if (i.options.length > 1)
|
1468
1505
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1469
|
-
i.options[0].replace(
|
1506
|
+
i.options[0].replace(Nn, function(h, u, l, c, f, d) {
|
1470
1507
|
if (u)
|
1471
1508
|
t.minimumIntegerDigits = l.length;
|
1472
1509
|
else {
|
@@ -1479,32 +1516,32 @@ function Tn(e) {
|
|
1479
1516
|
});
|
1480
1517
|
continue;
|
1481
1518
|
}
|
1482
|
-
if (
|
1519
|
+
if (Jt.test(i.stem)) {
|
1483
1520
|
t.minimumIntegerDigits = i.stem.length;
|
1484
1521
|
continue;
|
1485
1522
|
}
|
1486
|
-
if (
|
1523
|
+
if (pt.test(i.stem)) {
|
1487
1524
|
if (i.options.length > 1)
|
1488
1525
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1489
|
-
i.stem.replace(
|
1526
|
+
i.stem.replace(pt, function(h, u, l, c, f, d) {
|
1490
1527
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1491
1528
|
});
|
1492
1529
|
var o = i.options[0];
|
1493
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
1530
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), mt(o)));
|
1494
1531
|
continue;
|
1495
1532
|
}
|
1496
|
-
if (
|
1497
|
-
t = g(g({}, t),
|
1533
|
+
if (qt.test(i.stem)) {
|
1534
|
+
t = g(g({}, t), mt(i.stem));
|
1498
1535
|
continue;
|
1499
1536
|
}
|
1500
|
-
var s =
|
1537
|
+
var s = Yt(i.stem);
|
1501
1538
|
s && (t = g(g({}, t), s));
|
1502
|
-
var a =
|
1539
|
+
var a = Mn(i.stem);
|
1503
1540
|
a && (t = g(g({}, t), a));
|
1504
1541
|
}
|
1505
1542
|
return t;
|
1506
1543
|
}
|
1507
|
-
var
|
1544
|
+
var ce = {
|
1508
1545
|
"001": [
|
1509
1546
|
"H",
|
1510
1547
|
"h"
|
@@ -2919,13 +2956,13 @@ var fe = {
|
|
2919
2956
|
"h"
|
2920
2957
|
]
|
2921
2958
|
};
|
2922
|
-
function
|
2959
|
+
function $n(e, t) {
|
2923
2960
|
for (var r = "", n = 0; n < e.length; n++) {
|
2924
2961
|
var i = e.charAt(n);
|
2925
2962
|
if (i === "j") {
|
2926
2963
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2927
2964
|
o++, n++;
|
2928
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
2965
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
2929
2966
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2930
2967
|
r += h;
|
2931
2968
|
for (; s-- > 0; )
|
@@ -2934,7 +2971,7 @@ function Hn(e, t) {
|
|
2934
2971
|
}
|
2935
2972
|
return r;
|
2936
2973
|
}
|
2937
|
-
function
|
2974
|
+
function Rn(e) {
|
2938
2975
|
var t = e.hourCycle;
|
2939
2976
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2940
2977
|
e.hourCycles && // @ts-ignore
|
@@ -2953,23 +2990,23 @@ function Bn(e) {
|
|
2953
2990
|
}
|
2954
2991
|
var r = e.language, n;
|
2955
2992
|
r !== "root" && (n = e.maximize().region);
|
2956
|
-
var i =
|
2993
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
2957
2994
|
return i[0];
|
2958
2995
|
}
|
2959
|
-
var
|
2996
|
+
var Oe, Un = new RegExp("^".concat(Qt.source, "*")), Gn = new RegExp("".concat(Qt.source, "*$"));
|
2960
2997
|
function m(e, t) {
|
2961
2998
|
return { start: e, end: t };
|
2962
2999
|
}
|
2963
|
-
var
|
3000
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
2964
3001
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2965
|
-
},
|
3002
|
+
}, je = !0;
|
2966
3003
|
try {
|
2967
|
-
var
|
2968
|
-
|
2969
|
-
} catch {
|
2970
|
-
|
3004
|
+
var Zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3005
|
+
je = ((Oe = Zn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
3006
|
+
} catch (e) {
|
3007
|
+
je = !1;
|
2971
3008
|
}
|
2972
|
-
var
|
3009
|
+
var gt = Dn ? (
|
2973
3010
|
// Native
|
2974
3011
|
function(t, r, n) {
|
2975
3012
|
return t.startsWith(r, n);
|
@@ -2979,7 +3016,7 @@ var ft = Pn ? (
|
|
2979
3016
|
function(t, r, n) {
|
2980
3017
|
return t.slice(n, n + r.length) === r;
|
2981
3018
|
}
|
2982
|
-
),
|
3019
|
+
), ke = Fn ? String.fromCodePoint : (
|
2983
3020
|
// IE11
|
2984
3021
|
function() {
|
2985
3022
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2991,9 +3028,9 @@ var ft = Pn ? (
|
|
2991
3028
|
}
|
2992
3029
|
return n;
|
2993
3030
|
}
|
2994
|
-
),
|
3031
|
+
), yt = (
|
2995
3032
|
// native
|
2996
|
-
|
3033
|
+
jn ? Object.fromEntries : (
|
2997
3034
|
// Ponyfill
|
2998
3035
|
function(t) {
|
2999
3036
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3003,7 +3040,7 @@ var ft = Pn ? (
|
|
3003
3040
|
return r;
|
3004
3041
|
}
|
3005
3042
|
)
|
3006
|
-
),
|
3043
|
+
), Kt = kn ? (
|
3007
3044
|
// Native
|
3008
3045
|
function(t, r) {
|
3009
3046
|
return t.codePointAt(r);
|
@@ -3017,7 +3054,7 @@ var ft = Pn ? (
|
|
3017
3054
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3018
3055
|
}
|
3019
3056
|
}
|
3020
|
-
),
|
3057
|
+
), Qn = Vn ? (
|
3021
3058
|
// Native
|
3022
3059
|
function(t) {
|
3023
3060
|
return t.trimStart();
|
@@ -3025,9 +3062,9 @@ var ft = Pn ? (
|
|
3025
3062
|
) : (
|
3026
3063
|
// Ponyfill
|
3027
3064
|
function(t) {
|
3028
|
-
return t.replace(
|
3065
|
+
return t.replace(Un, "");
|
3029
3066
|
}
|
3030
|
-
),
|
3067
|
+
), qn = Xn ? (
|
3031
3068
|
// Native
|
3032
3069
|
function(t) {
|
3033
3070
|
return t.trimEnd();
|
@@ -3035,32 +3072,32 @@ var ft = Pn ? (
|
|
3035
3072
|
) : (
|
3036
3073
|
// Ponyfill
|
3037
3074
|
function(t) {
|
3038
|
-
return t.replace(
|
3075
|
+
return t.replace(Gn, "");
|
3039
3076
|
}
|
3040
3077
|
);
|
3041
|
-
function
|
3078
|
+
function er(e, t) {
|
3042
3079
|
return new RegExp(e, t);
|
3043
3080
|
}
|
3044
|
-
var
|
3045
|
-
if (
|
3046
|
-
var
|
3047
|
-
|
3081
|
+
var Ve;
|
3082
|
+
if (je) {
|
3083
|
+
var vt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3084
|
+
Ve = function(t, r) {
|
3048
3085
|
var n;
|
3049
|
-
|
3050
|
-
var i =
|
3086
|
+
vt.lastIndex = r;
|
3087
|
+
var i = vt.exec(t);
|
3051
3088
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3052
3089
|
};
|
3053
3090
|
} else
|
3054
|
-
|
3091
|
+
Ve = function(t, r) {
|
3055
3092
|
for (var n = []; ; ) {
|
3056
|
-
var i =
|
3057
|
-
if (i === void 0 ||
|
3093
|
+
var i = Kt(t, r);
|
3094
|
+
if (i === void 0 || tr(i) || ei(i))
|
3058
3095
|
break;
|
3059
3096
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3060
3097
|
}
|
3061
|
-
return
|
3098
|
+
return ke.apply(void 0, n);
|
3062
3099
|
};
|
3063
|
-
var
|
3100
|
+
var Jn = (
|
3064
3101
|
/** @class */
|
3065
3102
|
function() {
|
3066
3103
|
function e(t, r) {
|
@@ -3084,14 +3121,14 @@ var Dn = (
|
|
3084
3121
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3085
3122
|
var a = this.clonePosition();
|
3086
3123
|
this.bump(), i.push({
|
3087
|
-
type:
|
3124
|
+
type: x.pound,
|
3088
3125
|
location: m(a, this.clonePosition())
|
3089
3126
|
});
|
3090
3127
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3091
3128
|
if (n)
|
3092
3129
|
break;
|
3093
3130
|
return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
3094
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3131
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
3095
3132
|
var s = this.parseTag(t, r);
|
3096
3133
|
if (s.err)
|
3097
3134
|
return s;
|
@@ -3112,7 +3149,7 @@ var Dn = (
|
|
3112
3149
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3113
3150
|
return {
|
3114
3151
|
val: {
|
3115
|
-
type:
|
3152
|
+
type: x.literal,
|
3116
3153
|
value: "<".concat(i, "/>"),
|
3117
3154
|
location: m(n, this.clonePosition())
|
3118
3155
|
},
|
@@ -3124,12 +3161,12 @@ var Dn = (
|
|
3124
3161
|
return o;
|
3125
3162
|
var s = o.val, a = this.clonePosition();
|
3126
3163
|
if (this.bumpIf("</")) {
|
3127
|
-
if (this.isEOF() || !
|
3164
|
+
if (this.isEOF() || !Xe(this.char()))
|
3128
3165
|
return this.error(p.INVALID_TAG, m(a, this.clonePosition()));
|
3129
3166
|
var h = this.clonePosition(), u = this.parseTagName();
|
3130
3167
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3131
3168
|
val: {
|
3132
|
-
type:
|
3169
|
+
type: x.tag,
|
3133
3170
|
value: i,
|
3134
3171
|
children: s,
|
3135
3172
|
location: m(n, this.clonePosition())
|
@@ -3142,7 +3179,7 @@ var Dn = (
|
|
3142
3179
|
return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
|
3143
3180
|
}, e.prototype.parseTagName = function() {
|
3144
3181
|
var t = this.offset();
|
3145
|
-
for (this.bump(); !this.isEOF() &&
|
3182
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
3146
3183
|
this.bump();
|
3147
3184
|
return this.message.slice(t, this.offset());
|
3148
3185
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3166,12 +3203,12 @@ var Dn = (
|
|
3166
3203
|
}
|
3167
3204
|
var h = m(n, this.clonePosition());
|
3168
3205
|
return {
|
3169
|
-
val: { type:
|
3206
|
+
val: { type: x.literal, value: i, location: h },
|
3170
3207
|
err: null
|
3171
3208
|
};
|
3172
3209
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3173
3210
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3174
|
-
!
|
3211
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3175
3212
|
}, e.prototype.tryParseQuote = function(t) {
|
3176
3213
|
if (this.isEOF() || this.char() !== 39)
|
3177
3214
|
return null;
|
@@ -3205,12 +3242,12 @@ var Dn = (
|
|
3205
3242
|
r.push(n);
|
3206
3243
|
this.bump();
|
3207
3244
|
}
|
3208
|
-
return
|
3245
|
+
return ke.apply(void 0, r);
|
3209
3246
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3210
3247
|
if (this.isEOF())
|
3211
3248
|
return null;
|
3212
3249
|
var n = this.char();
|
3213
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3250
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
3214
3251
|
}, e.prototype.parseArgument = function(t, r) {
|
3215
3252
|
var n = this.clonePosition();
|
3216
3253
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3226,7 +3263,7 @@ var Dn = (
|
|
3226
3263
|
case 125:
|
3227
3264
|
return this.bump(), {
|
3228
3265
|
val: {
|
3229
|
-
type:
|
3266
|
+
type: x.argument,
|
3230
3267
|
// value does not include the opening and closing braces.
|
3231
3268
|
value: i,
|
3232
3269
|
location: m(n, this.clonePosition())
|
@@ -3239,7 +3276,7 @@ var Dn = (
|
|
3239
3276
|
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
3240
3277
|
}
|
3241
3278
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3242
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3279
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
3243
3280
|
this.bumpTo(i);
|
3244
3281
|
var o = this.clonePosition(), s = m(t, o);
|
3245
3282
|
return { value: n, location: s };
|
@@ -3258,7 +3295,7 @@ var Dn = (
|
|
3258
3295
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
3259
3296
|
if (c.err)
|
3260
3297
|
return c;
|
3261
|
-
var f =
|
3298
|
+
var f = qn(c.val);
|
3262
3299
|
if (f.length === 0)
|
3263
3300
|
return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
3264
3301
|
var d = m(l, this.clonePosition());
|
@@ -3268,37 +3305,37 @@ var Dn = (
|
|
3268
3305
|
if (y.err)
|
3269
3306
|
return y;
|
3270
3307
|
var v = m(i, this.clonePosition());
|
3271
|
-
if (u &&
|
3272
|
-
var
|
3308
|
+
if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
|
3309
|
+
var B = Qn(u.style.slice(2));
|
3273
3310
|
if (a === "number") {
|
3274
|
-
var c = this.parseNumberSkeletonFromString(
|
3311
|
+
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
3275
3312
|
return c.err ? c : {
|
3276
|
-
val: { type:
|
3313
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
3277
3314
|
err: null
|
3278
3315
|
};
|
3279
3316
|
} else {
|
3280
|
-
if (
|
3317
|
+
if (B.length === 0)
|
3281
3318
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
3282
|
-
var
|
3283
|
-
this.locale && (
|
3319
|
+
var $ = B;
|
3320
|
+
this.locale && ($ = $n(B, this.locale));
|
3284
3321
|
var f = {
|
3285
|
-
type:
|
3286
|
-
pattern:
|
3322
|
+
type: z.dateTime,
|
3323
|
+
pattern: $,
|
3287
3324
|
location: u.styleLocation,
|
3288
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3289
|
-
},
|
3325
|
+
parsedOptions: this.shouldParseSkeletons ? Pn($) : {}
|
3326
|
+
}, P = a === "date" ? x.date : x.time;
|
3290
3327
|
return {
|
3291
|
-
val: { type:
|
3328
|
+
val: { type: P, value: n, location: v, style: f },
|
3292
3329
|
err: null
|
3293
3330
|
};
|
3294
3331
|
}
|
3295
3332
|
}
|
3296
3333
|
return {
|
3297
3334
|
val: {
|
3298
|
-
type: a === "number" ?
|
3335
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
3299
3336
|
value: n,
|
3300
3337
|
location: v,
|
3301
|
-
style: (o = u
|
3338
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
3302
3339
|
},
|
3303
3340
|
err: null
|
3304
3341
|
};
|
@@ -3310,39 +3347,39 @@ var Dn = (
|
|
3310
3347
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3311
3348
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T, g({}, T)));
|
3312
3349
|
this.bumpSpace();
|
3313
|
-
var
|
3314
|
-
if (a !== "select" &&
|
3350
|
+
var R = this.parseIdentifierIfPossible(), O = 0;
|
3351
|
+
if (a !== "select" && R.value === "offset") {
|
3315
3352
|
if (!this.bumpIf(":"))
|
3316
3353
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
3317
3354
|
this.bumpSpace();
|
3318
3355
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3319
3356
|
if (c.err)
|
3320
3357
|
return c;
|
3321
|
-
this.bumpSpace(),
|
3358
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
|
3322
3359
|
}
|
3323
|
-
var
|
3324
|
-
if (
|
3325
|
-
return
|
3360
|
+
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
3361
|
+
if (D.err)
|
3362
|
+
return D;
|
3326
3363
|
var y = this.tryParseArgumentClose(i);
|
3327
3364
|
if (y.err)
|
3328
3365
|
return y;
|
3329
|
-
var
|
3366
|
+
var he = m(i, this.clonePosition());
|
3330
3367
|
return a === "select" ? {
|
3331
3368
|
val: {
|
3332
|
-
type:
|
3369
|
+
type: x.select,
|
3333
3370
|
value: n,
|
3334
|
-
options:
|
3335
|
-
location:
|
3371
|
+
options: yt(D.val),
|
3372
|
+
location: he
|
3336
3373
|
},
|
3337
3374
|
err: null
|
3338
3375
|
} : {
|
3339
3376
|
val: {
|
3340
|
-
type:
|
3377
|
+
type: x.plural,
|
3341
3378
|
value: n,
|
3342
|
-
options:
|
3343
|
-
offset:
|
3379
|
+
options: yt(D.val),
|
3380
|
+
offset: O,
|
3344
3381
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3345
|
-
location:
|
3382
|
+
location: he
|
3346
3383
|
},
|
3347
3384
|
err: null
|
3348
3385
|
};
|
@@ -3390,16 +3427,16 @@ var Dn = (
|
|
3390
3427
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3391
3428
|
var n = [];
|
3392
3429
|
try {
|
3393
|
-
n =
|
3394
|
-
} catch {
|
3430
|
+
n = In(t);
|
3431
|
+
} catch (i) {
|
3395
3432
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3396
3433
|
}
|
3397
3434
|
return {
|
3398
3435
|
val: {
|
3399
|
-
type:
|
3436
|
+
type: z.number,
|
3400
3437
|
tokens: n,
|
3401
3438
|
location: r,
|
3402
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3439
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
3403
3440
|
},
|
3404
3441
|
err: null
|
3405
3442
|
};
|
@@ -3447,7 +3484,7 @@ var Dn = (
|
|
3447
3484
|
break;
|
3448
3485
|
}
|
3449
3486
|
var h = m(i, this.clonePosition());
|
3450
|
-
return o ? (s *= n,
|
3487
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3451
3488
|
}, e.prototype.offset = function() {
|
3452
3489
|
return this.position.offset;
|
3453
3490
|
}, e.prototype.isEOF = function() {
|
@@ -3462,7 +3499,7 @@ var Dn = (
|
|
3462
3499
|
var t = this.position.offset;
|
3463
3500
|
if (t >= this.message.length)
|
3464
3501
|
throw Error("out of bound");
|
3465
|
-
var r =
|
3502
|
+
var r = Kt(this.message, t);
|
3466
3503
|
if (r === void 0)
|
3467
3504
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3468
3505
|
return r;
|
@@ -3481,7 +3518,7 @@ var Dn = (
|
|
3481
3518
|
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);
|
3482
3519
|
}
|
3483
3520
|
}, e.prototype.bumpIf = function(t) {
|
3484
|
-
if (
|
3521
|
+
if (gt(this.message, t, this.offset())) {
|
3485
3522
|
for (var r = 0; r < t.length; r++)
|
3486
3523
|
this.bump();
|
3487
3524
|
return !0;
|
@@ -3503,56 +3540,56 @@ var Dn = (
|
|
3503
3540
|
break;
|
3504
3541
|
}
|
3505
3542
|
}, e.prototype.bumpSpace = function() {
|
3506
|
-
for (; !this.isEOF() &&
|
3543
|
+
for (; !this.isEOF() && tr(this.char()); )
|
3507
3544
|
this.bump();
|
3508
3545
|
}, e.prototype.peek = function() {
|
3509
3546
|
if (this.isEOF())
|
3510
3547
|
return null;
|
3511
3548
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
3512
|
-
return n
|
3549
|
+
return n != null ? n : null;
|
3513
3550
|
}, e;
|
3514
3551
|
}()
|
3515
3552
|
);
|
3516
|
-
function
|
3553
|
+
function Xe(e) {
|
3517
3554
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3518
3555
|
}
|
3519
|
-
function
|
3520
|
-
return
|
3556
|
+
function Yn(e) {
|
3557
|
+
return Xe(e) || e === 47;
|
3521
3558
|
}
|
3522
|
-
function
|
3559
|
+
function Kn(e) {
|
3523
3560
|
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;
|
3524
3561
|
}
|
3525
|
-
function
|
3562
|
+
function tr(e) {
|
3526
3563
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3527
3564
|
}
|
3528
|
-
function
|
3565
|
+
function ei(e) {
|
3529
3566
|
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;
|
3530
3567
|
}
|
3531
|
-
function
|
3568
|
+
function We(e) {
|
3532
3569
|
e.forEach(function(t) {
|
3533
|
-
if (delete t.location,
|
3570
|
+
if (delete t.location, Xt(t) || Wt(t))
|
3534
3571
|
for (var r in t.options)
|
3535
|
-
delete t.options[r].location,
|
3536
|
-
else
|
3572
|
+
delete t.options[r].location, We(t.options[r].value);
|
3573
|
+
else jt(t) && Zt(t.style) || (kt(t) || Vt(t)) && Fe(t.style) ? delete t.style.location : zt(t) && We(t.children);
|
3537
3574
|
});
|
3538
3575
|
}
|
3539
|
-
function
|
3576
|
+
function ti(e, t) {
|
3540
3577
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3541
|
-
var r = new
|
3578
|
+
var r = new Jn(e, t).parse();
|
3542
3579
|
if (r.err) {
|
3543
3580
|
var n = SyntaxError(p[r.err.kind]);
|
3544
3581
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3545
3582
|
}
|
3546
|
-
return t
|
3583
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
3547
3584
|
}
|
3548
|
-
var
|
3585
|
+
var Z;
|
3549
3586
|
(function(e) {
|
3550
3587
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3551
|
-
})(
|
3552
|
-
var
|
3588
|
+
})(Z || (Z = {}));
|
3589
|
+
var _e = (
|
3553
3590
|
/** @class */
|
3554
3591
|
function(e) {
|
3555
|
-
|
3592
|
+
M(t, e);
|
3556
3593
|
function t(r, n, i) {
|
3557
3594
|
var o = e.call(this, r) || this;
|
3558
3595
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3561,155 +3598,155 @@ var xe = (
|
|
3561
3598
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3562
3599
|
}, t;
|
3563
3600
|
}(Error)
|
3564
|
-
),
|
3601
|
+
), xt = (
|
3565
3602
|
/** @class */
|
3566
3603
|
function(e) {
|
3567
|
-
|
3604
|
+
M(t, e);
|
3568
3605
|
function t(r, n, i, o) {
|
3569
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3606
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
3570
3607
|
}
|
3571
3608
|
return t;
|
3572
|
-
}(
|
3573
|
-
),
|
3609
|
+
}(_e)
|
3610
|
+
), ri = (
|
3574
3611
|
/** @class */
|
3575
3612
|
function(e) {
|
3576
|
-
|
3613
|
+
M(t, e);
|
3577
3614
|
function t(r, n, i) {
|
3578
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3615
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
3579
3616
|
}
|
3580
3617
|
return t;
|
3581
|
-
}(
|
3582
|
-
),
|
3618
|
+
}(_e)
|
3619
|
+
), ni = (
|
3583
3620
|
/** @class */
|
3584
3621
|
function(e) {
|
3585
|
-
|
3622
|
+
M(t, e);
|
3586
3623
|
function t(r, n) {
|
3587
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3624
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
3588
3625
|
}
|
3589
3626
|
return t;
|
3590
|
-
}(
|
3591
|
-
),
|
3627
|
+
}(_e)
|
3628
|
+
), E;
|
3592
3629
|
(function(e) {
|
3593
3630
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3594
|
-
})(
|
3595
|
-
function
|
3631
|
+
})(E || (E = {}));
|
3632
|
+
function ii(e) {
|
3596
3633
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3597
3634
|
var n = t[t.length - 1];
|
3598
|
-
return !n || n.type !==
|
3635
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
3599
3636
|
}, []);
|
3600
3637
|
}
|
3601
|
-
function
|
3638
|
+
function oi(e) {
|
3602
3639
|
return typeof e == "function";
|
3603
3640
|
}
|
3604
|
-
function
|
3605
|
-
if (e.length === 1 &&
|
3641
|
+
function me(e, t, r, n, i, o, s) {
|
3642
|
+
if (e.length === 1 && dt(e[0]))
|
3606
3643
|
return [
|
3607
3644
|
{
|
3608
|
-
type:
|
3645
|
+
type: E.literal,
|
3609
3646
|
value: e[0].value
|
3610
3647
|
}
|
3611
3648
|
];
|
3612
3649
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3613
3650
|
var l = u[h];
|
3614
|
-
if (
|
3651
|
+
if (dt(l)) {
|
3615
3652
|
a.push({
|
3616
|
-
type:
|
3653
|
+
type: E.literal,
|
3617
3654
|
value: l.value
|
3618
3655
|
});
|
3619
3656
|
continue;
|
3620
3657
|
}
|
3621
|
-
if (
|
3658
|
+
if (An(l)) {
|
3622
3659
|
typeof o == "number" && a.push({
|
3623
|
-
type:
|
3660
|
+
type: E.literal,
|
3624
3661
|
value: r.getNumberFormat(t).format(o)
|
3625
3662
|
});
|
3626
3663
|
continue;
|
3627
3664
|
}
|
3628
3665
|
var c = l.value;
|
3629
3666
|
if (!(i && c in i))
|
3630
|
-
throw new
|
3667
|
+
throw new ni(c, s);
|
3631
3668
|
var f = i[c];
|
3632
|
-
if (
|
3669
|
+
if (Bn(l)) {
|
3633
3670
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3634
|
-
type: typeof f == "string" ?
|
3671
|
+
type: typeof f == "string" ? E.literal : E.object,
|
3635
3672
|
value: f
|
3636
3673
|
});
|
3637
3674
|
continue;
|
3638
3675
|
}
|
3639
|
-
if (
|
3640
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3676
|
+
if (kt(l)) {
|
3677
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
3641
3678
|
a.push({
|
3642
|
-
type:
|
3679
|
+
type: E.literal,
|
3643
3680
|
value: r.getDateTimeFormat(t, d).format(f)
|
3644
3681
|
});
|
3645
3682
|
continue;
|
3646
3683
|
}
|
3647
|
-
if (
|
3648
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3684
|
+
if (Vt(l)) {
|
3685
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
3649
3686
|
a.push({
|
3650
|
-
type:
|
3687
|
+
type: E.literal,
|
3651
3688
|
value: r.getDateTimeFormat(t, d).format(f)
|
3652
3689
|
});
|
3653
3690
|
continue;
|
3654
3691
|
}
|
3655
|
-
if (
|
3656
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3692
|
+
if (jt(l)) {
|
3693
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
3657
3694
|
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
3658
|
-
type:
|
3695
|
+
type: E.literal,
|
3659
3696
|
value: r.getNumberFormat(t, d).format(f)
|
3660
3697
|
});
|
3661
3698
|
continue;
|
3662
3699
|
}
|
3663
|
-
if (
|
3664
|
-
var y = l.children, v = l.value,
|
3665
|
-
if (!
|
3666
|
-
throw new
|
3667
|
-
var
|
3668
|
-
return
|
3700
|
+
if (zt(l)) {
|
3701
|
+
var y = l.children, v = l.value, B = i[v];
|
3702
|
+
if (!oi(B))
|
3703
|
+
throw new ri(v, "function", s);
|
3704
|
+
var $ = me(y, t, r, n, i, o), P = B($.map(function(O) {
|
3705
|
+
return O.value;
|
3669
3706
|
}));
|
3670
|
-
Array.isArray(
|
3707
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
|
3671
3708
|
return {
|
3672
|
-
type: typeof
|
3673
|
-
value:
|
3709
|
+
type: typeof O == "string" ? E.literal : E.object,
|
3710
|
+
value: O
|
3674
3711
|
};
|
3675
3712
|
}));
|
3676
3713
|
}
|
3677
|
-
if (
|
3714
|
+
if (Xt(l)) {
|
3678
3715
|
var T = l.options[f] || l.options.other;
|
3679
3716
|
if (!T)
|
3680
|
-
throw new
|
3681
|
-
a.push.apply(a,
|
3717
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
3718
|
+
a.push.apply(a, me(T.value, t, r, n, i));
|
3682
3719
|
continue;
|
3683
3720
|
}
|
3684
|
-
if (
|
3721
|
+
if (Wt(l)) {
|
3685
3722
|
var T = l.options["=".concat(f)];
|
3686
3723
|
if (!T) {
|
3687
3724
|
if (!Intl.PluralRules)
|
3688
|
-
throw new
|
3725
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
3689
3726
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3690
|
-
`,
|
3691
|
-
var
|
3692
|
-
T = l.options[
|
3727
|
+
`, Z.MISSING_INTL_API, s);
|
3728
|
+
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3729
|
+
T = l.options[R] || l.options.other;
|
3693
3730
|
}
|
3694
3731
|
if (!T)
|
3695
|
-
throw new
|
3696
|
-
a.push.apply(a,
|
3732
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
3733
|
+
a.push.apply(a, me(T.value, t, r, n, i, f - (l.offset || 0)));
|
3697
3734
|
continue;
|
3698
3735
|
}
|
3699
3736
|
}
|
3700
|
-
return
|
3737
|
+
return ii(a);
|
3701
3738
|
}
|
3702
|
-
function
|
3739
|
+
function si(e, t) {
|
3703
3740
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3704
3741
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
3705
3742
|
}, {})) : e;
|
3706
3743
|
}
|
3707
|
-
function
|
3744
|
+
function ai(e, t) {
|
3708
3745
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3709
|
-
return r[n] =
|
3746
|
+
return r[n] = si(e[n], t[n]), r;
|
3710
3747
|
}, g({}, e)) : e;
|
3711
3748
|
}
|
3712
|
-
function
|
3749
|
+
function Ie(e) {
|
3713
3750
|
return {
|
3714
3751
|
create: function() {
|
3715
3752
|
return {
|
@@ -3723,39 +3760,39 @@ function Pe(e) {
|
|
3723
3760
|
}
|
3724
3761
|
};
|
3725
3762
|
}
|
3726
|
-
function
|
3763
|
+
function ui(e) {
|
3727
3764
|
return e === void 0 && (e = {
|
3728
3765
|
number: {},
|
3729
3766
|
dateTime: {},
|
3730
3767
|
pluralRules: {}
|
3731
3768
|
}), {
|
3732
|
-
getNumberFormat:
|
3769
|
+
getNumberFormat: we(function() {
|
3733
3770
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3734
3771
|
r[n] = arguments[n];
|
3735
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3772
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
3736
3773
|
}, {
|
3737
|
-
cache:
|
3738
|
-
strategy:
|
3774
|
+
cache: Ie(e.number),
|
3775
|
+
strategy: Pe.variadic
|
3739
3776
|
}),
|
3740
|
-
getDateTimeFormat:
|
3777
|
+
getDateTimeFormat: we(function() {
|
3741
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3742
3779
|
r[n] = arguments[n];
|
3743
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3780
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
3744
3781
|
}, {
|
3745
|
-
cache:
|
3746
|
-
strategy:
|
3782
|
+
cache: Ie(e.dateTime),
|
3783
|
+
strategy: Pe.variadic
|
3747
3784
|
}),
|
3748
|
-
getPluralRules:
|
3785
|
+
getPluralRules: we(function() {
|
3749
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3750
3787
|
r[n] = arguments[n];
|
3751
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3788
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
3752
3789
|
}, {
|
3753
|
-
cache:
|
3754
|
-
strategy:
|
3790
|
+
cache: Ie(e.pluralRules),
|
3791
|
+
strategy: Pe.variadic
|
3755
3792
|
})
|
3756
3793
|
};
|
3757
3794
|
}
|
3758
|
-
var
|
3795
|
+
var hi = (
|
3759
3796
|
/** @class */
|
3760
3797
|
function() {
|
3761
3798
|
function e(t, r, n, i) {
|
@@ -3770,11 +3807,11 @@ var Yn = (
|
|
3770
3807
|
if (u.length === 1)
|
3771
3808
|
return u[0].value;
|
3772
3809
|
var l = u.reduce(function(c, f) {
|
3773
|
-
return !c.length || f.type !==
|
3810
|
+
return !c.length || f.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3774
3811
|
}, []);
|
3775
3812
|
return l.length <= 1 ? l[0] || "" : l;
|
3776
3813
|
}, this.formatToParts = function(h) {
|
3777
|
-
return
|
3814
|
+
return me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3778
3815
|
}, this.resolvedOptions = function() {
|
3779
3816
|
var h;
|
3780
3817
|
return {
|
@@ -3787,13 +3824,13 @@ var Yn = (
|
|
3787
3824
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3788
3825
|
var s = i || {};
|
3789
3826
|
s.formatters;
|
3790
|
-
var a =
|
3827
|
+
var a = Dr(s, ["formatters"]);
|
3791
3828
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
3792
3829
|
} else
|
3793
3830
|
this.ast = t;
|
3794
3831
|
if (!Array.isArray(this.ast))
|
3795
3832
|
throw new TypeError("A message must be provided as a String or AST.");
|
3796
|
-
this.formats =
|
3833
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
3797
3834
|
}
|
3798
3835
|
return Object.defineProperty(e, "defaultLocale", {
|
3799
3836
|
get: function() {
|
@@ -3802,11 +3839,11 @@ var Yn = (
|
|
3802
3839
|
enumerable: !1,
|
3803
3840
|
configurable: !0
|
3804
3841
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
3805
|
-
if (
|
3842
|
+
if (typeof Intl.Locale != "undefined") {
|
3806
3843
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3807
3844
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3808
3845
|
}
|
3809
|
-
}, e.__parse =
|
3846
|
+
}, e.__parse = ti, e.formats = {
|
3810
3847
|
number: {
|
3811
3848
|
integer: {
|
3812
3849
|
maximumFractionDigits: 0
|
@@ -3867,7 +3904,7 @@ var Yn = (
|
|
3867
3904
|
}, e;
|
3868
3905
|
}()
|
3869
3906
|
);
|
3870
|
-
function
|
3907
|
+
function li(e, t) {
|
3871
3908
|
if (t == null)
|
3872
3909
|
return;
|
3873
3910
|
if (t in e)
|
@@ -3888,92 +3925,92 @@ function Kn(e, t) {
|
|
3888
3925
|
n = void 0;
|
3889
3926
|
return n;
|
3890
3927
|
}
|
3891
|
-
const
|
3928
|
+
const C = {}, fi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), rr = (e, t) => {
|
3892
3929
|
if (t == null)
|
3893
3930
|
return;
|
3894
|
-
if (t in
|
3895
|
-
return
|
3896
|
-
const r =
|
3931
|
+
if (t in C && e in C[t])
|
3932
|
+
return C[t][e];
|
3933
|
+
const r = Se(t);
|
3897
3934
|
for (let n = 0; n < r.length; n++) {
|
3898
|
-
const i = r[n], o =
|
3935
|
+
const i = r[n], o = di(i, e);
|
3899
3936
|
if (o)
|
3900
|
-
return
|
3937
|
+
return fi(e, t, o);
|
3901
3938
|
}
|
3902
3939
|
};
|
3903
|
-
let
|
3904
|
-
const
|
3905
|
-
function
|
3906
|
-
return
|
3940
|
+
let Je;
|
3941
|
+
const ue = Ee({});
|
3942
|
+
function ci(e) {
|
3943
|
+
return Je[e] || null;
|
3907
3944
|
}
|
3908
|
-
function
|
3909
|
-
return e in
|
3945
|
+
function nr(e) {
|
3946
|
+
return e in Je;
|
3910
3947
|
}
|
3911
|
-
function
|
3912
|
-
if (!
|
3948
|
+
function di(e, t) {
|
3949
|
+
if (!nr(e))
|
3913
3950
|
return null;
|
3914
|
-
const r =
|
3915
|
-
return
|
3951
|
+
const r = ci(e);
|
3952
|
+
return li(r, t);
|
3916
3953
|
}
|
3917
|
-
function
|
3954
|
+
function pi(e) {
|
3918
3955
|
if (e == null)
|
3919
3956
|
return;
|
3920
|
-
const t =
|
3957
|
+
const t = Se(e);
|
3921
3958
|
for (let r = 0; r < t.length; r++) {
|
3922
3959
|
const n = t[r];
|
3923
|
-
if (
|
3960
|
+
if (nr(n))
|
3924
3961
|
return n;
|
3925
3962
|
}
|
3926
3963
|
}
|
3927
|
-
function
|
3928
|
-
delete
|
3964
|
+
function ir(e, ...t) {
|
3965
|
+
delete C[e], ue.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
3929
3966
|
}
|
3930
|
-
|
3931
|
-
[
|
3967
|
+
J(
|
3968
|
+
[ue],
|
3932
3969
|
([e]) => Object.keys(e)
|
3933
3970
|
);
|
3934
|
-
|
3935
|
-
const
|
3936
|
-
function
|
3937
|
-
|
3971
|
+
ue.subscribe((e) => Je = e);
|
3972
|
+
const be = {};
|
3973
|
+
function mi(e, t) {
|
3974
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
3938
3975
|
}
|
3939
|
-
function
|
3940
|
-
return
|
3976
|
+
function or(e) {
|
3977
|
+
return be[e];
|
3941
3978
|
}
|
3942
|
-
function
|
3943
|
-
return
|
3944
|
-
const r =
|
3979
|
+
function bi(e) {
|
3980
|
+
return Se(e).map((t) => {
|
3981
|
+
const r = or(t);
|
3945
3982
|
return [t, r ? [...r] : []];
|
3946
3983
|
}).filter(([, t]) => t.length > 0);
|
3947
3984
|
}
|
3948
|
-
function
|
3949
|
-
return e == null ? !1 :
|
3985
|
+
function ze(e) {
|
3986
|
+
return e == null ? !1 : Se(e).some(
|
3950
3987
|
(t) => {
|
3951
3988
|
var r;
|
3952
|
-
return (r =
|
3989
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
3953
3990
|
}
|
3954
3991
|
);
|
3955
3992
|
}
|
3956
|
-
function
|
3993
|
+
function gi(e, t) {
|
3957
3994
|
return Promise.all(
|
3958
|
-
t.map((n) => (
|
3959
|
-
).then((n) =>
|
3960
|
-
}
|
3961
|
-
const
|
3962
|
-
function
|
3963
|
-
if (!
|
3964
|
-
return e in
|
3965
|
-
const t =
|
3966
|
-
return
|
3995
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
3996
|
+
).then((n) => ir(e, ...n));
|
3997
|
+
}
|
3998
|
+
const te = {};
|
3999
|
+
function sr(e) {
|
4000
|
+
if (!ze(e))
|
4001
|
+
return e in te ? te[e] : Promise.resolve();
|
4002
|
+
const t = bi(e);
|
4003
|
+
return te[e] = Promise.all(
|
3967
4004
|
t.map(
|
3968
|
-
([r, n]) =>
|
4005
|
+
([r, n]) => gi(r, n)
|
3969
4006
|
)
|
3970
4007
|
).then(() => {
|
3971
|
-
if (
|
3972
|
-
return
|
3973
|
-
delete
|
3974
|
-
}),
|
4008
|
+
if (ze(e))
|
4009
|
+
return sr(e);
|
4010
|
+
delete te[e];
|
4011
|
+
}), te[e];
|
3975
4012
|
}
|
3976
|
-
const
|
4013
|
+
const yi = {
|
3977
4014
|
number: {
|
3978
4015
|
scientific: { notation: "scientific" },
|
3979
4016
|
engineering: { notation: "engineering" },
|
@@ -4002,150 +4039,150 @@ const ai = {
|
|
4002
4039
|
timeZoneName: "short"
|
4003
4040
|
}
|
4004
4041
|
}
|
4005
|
-
},
|
4042
|
+
}, vi = {
|
4006
4043
|
fallbackLocale: null,
|
4007
4044
|
loadingDelay: 200,
|
4008
|
-
formats:
|
4045
|
+
formats: yi,
|
4009
4046
|
warnOnMissingMessages: !0,
|
4010
4047
|
handleMissingMessage: void 0,
|
4011
4048
|
ignoreTag: !0
|
4012
|
-
},
|
4013
|
-
function
|
4014
|
-
return
|
4049
|
+
}, xi = vi;
|
4050
|
+
function Q() {
|
4051
|
+
return xi;
|
4015
4052
|
}
|
4016
|
-
const
|
4017
|
-
var
|
4053
|
+
const Le = Ee(!1);
|
4054
|
+
var Ei = Object.defineProperty, _i = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
4018
4055
|
for (var r in t)
|
4019
|
-
|
4020
|
-
if (
|
4021
|
-
for (var r of
|
4022
|
-
|
4056
|
+
Ti.call(t, r) && _t(e, r, t[r]);
|
4057
|
+
if (Et)
|
4058
|
+
for (var r of Et(t))
|
4059
|
+
Hi.call(t, r) && _t(e, r, t[r]);
|
4023
4060
|
return e;
|
4024
|
-
},
|
4025
|
-
let
|
4026
|
-
const
|
4027
|
-
function
|
4061
|
+
}, Ai = (e, t) => _i(e, Si(t));
|
4062
|
+
let Ze;
|
4063
|
+
const ge = Ee(null);
|
4064
|
+
function St(e) {
|
4028
4065
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4029
4066
|
}
|
4030
|
-
function
|
4031
|
-
const r =
|
4032
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4067
|
+
function Se(e, t = Q().fallbackLocale) {
|
4068
|
+
const r = St(e);
|
4069
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
4033
4070
|
}
|
4034
|
-
function
|
4035
|
-
return
|
4071
|
+
function G() {
|
4072
|
+
return Ze != null ? Ze : void 0;
|
4036
4073
|
}
|
4037
|
-
|
4038
|
-
|
4074
|
+
ge.subscribe((e) => {
|
4075
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
4039
4076
|
});
|
4040
|
-
const
|
4041
|
-
if (e &&
|
4042
|
-
const { loadingDelay: t } =
|
4077
|
+
const wi = (e) => {
|
4078
|
+
if (e && pi(e) && ze(e)) {
|
4079
|
+
const { loadingDelay: t } = Q();
|
4043
4080
|
let r;
|
4044
|
-
return typeof window
|
4045
|
-
() =>
|
4081
|
+
return typeof window != "undefined" && G() != null && t ? r = window.setTimeout(
|
4082
|
+
() => Le.set(!0),
|
4046
4083
|
t
|
4047
|
-
) :
|
4048
|
-
|
4084
|
+
) : Le.set(!0), sr(e).then(() => {
|
4085
|
+
ge.set(e);
|
4049
4086
|
}).finally(() => {
|
4050
|
-
clearTimeout(r),
|
4087
|
+
clearTimeout(r), Le.set(!1);
|
4051
4088
|
});
|
4052
4089
|
}
|
4053
|
-
return
|
4054
|
-
},
|
4055
|
-
set:
|
4056
|
-
}),
|
4090
|
+
return ge.set(e);
|
4091
|
+
}, Y = Ai(Bi({}, ge), {
|
4092
|
+
set: wi
|
4093
|
+
}), Te = (e) => {
|
4057
4094
|
const t = /* @__PURE__ */ Object.create(null);
|
4058
4095
|
return (n) => {
|
4059
4096
|
const i = JSON.stringify(n);
|
4060
4097
|
return i in t ? t[i] : t[i] = e(n);
|
4061
4098
|
};
|
4062
4099
|
};
|
4063
|
-
var
|
4100
|
+
var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
4064
4101
|
for (var r in t || (t = {}))
|
4065
|
-
|
4066
|
-
if (
|
4067
|
-
for (var r of
|
4068
|
-
|
4102
|
+
ar.call(t, r) && Tt(e, r, t[r]);
|
4103
|
+
if (ye)
|
4104
|
+
for (var r of ye(t))
|
4105
|
+
ur.call(t, r) && Tt(e, r, t[r]);
|
4069
4106
|
return e;
|
4070
|
-
},
|
4107
|
+
}, K = (e, t) => {
|
4071
4108
|
var r = {};
|
4072
4109
|
for (var n in e)
|
4073
|
-
|
4074
|
-
if (e != null &&
|
4075
|
-
for (var n of
|
4076
|
-
t.indexOf(n) < 0 &&
|
4110
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4111
|
+
if (e != null && ye)
|
4112
|
+
for (var n of ye(e))
|
4113
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
4077
4114
|
return r;
|
4078
4115
|
};
|
4079
|
-
const
|
4080
|
-
const { formats: r } =
|
4116
|
+
const oe = (e, t) => {
|
4117
|
+
const { formats: r } = Q();
|
4081
4118
|
if (e in r && t in r[e])
|
4082
4119
|
return r[e][t];
|
4083
4120
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4084
|
-
},
|
4121
|
+
}, Oi = Te(
|
4085
4122
|
(e) => {
|
4086
|
-
var t = e, { locale: r, format: n } = t, i =
|
4123
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
4087
4124
|
if (r == null)
|
4088
4125
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4089
|
-
return n && (i =
|
4126
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
4090
4127
|
}
|
4091
|
-
),
|
4128
|
+
), Ii = Te(
|
4092
4129
|
(e) => {
|
4093
|
-
var t = e, { locale: r, format: n } = t, i =
|
4130
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
4094
4131
|
if (r == null)
|
4095
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4096
|
-
return n ? i =
|
4133
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
4097
4134
|
}
|
4098
|
-
),
|
4135
|
+
), Li = Te(
|
4099
4136
|
(e) => {
|
4100
|
-
var t = e, { locale: r, format: n } = t, i =
|
4137
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
4101
4138
|
if (r == null)
|
4102
4139
|
throw new Error(
|
4103
4140
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4104
4141
|
);
|
4105
|
-
return n ? i =
|
4142
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
4106
4143
|
}
|
4107
|
-
),
|
4144
|
+
), Ni = (e = {}) => {
|
4108
4145
|
var t = e, {
|
4109
|
-
locale: r =
|
4110
|
-
} = t, n =
|
4146
|
+
locale: r = G()
|
4147
|
+
} = t, n = K(t, [
|
4111
4148
|
"locale"
|
4112
4149
|
]);
|
4113
|
-
return
|
4114
|
-
},
|
4150
|
+
return Oi(Ye({ locale: r }, n));
|
4151
|
+
}, Mi = (e = {}) => {
|
4115
4152
|
var t = e, {
|
4116
|
-
locale: r =
|
4117
|
-
} = t, n =
|
4153
|
+
locale: r = G()
|
4154
|
+
} = t, n = K(t, [
|
4118
4155
|
"locale"
|
4119
4156
|
]);
|
4120
|
-
return
|
4121
|
-
},
|
4157
|
+
return Ii(Ye({ locale: r }, n));
|
4158
|
+
}, Ci = (e = {}) => {
|
4122
4159
|
var t = e, {
|
4123
|
-
locale: r =
|
4124
|
-
} = t, n =
|
4160
|
+
locale: r = G()
|
4161
|
+
} = t, n = K(t, [
|
4125
4162
|
"locale"
|
4126
4163
|
]);
|
4127
|
-
return
|
4128
|
-
},
|
4164
|
+
return Li(Ye({ locale: r }, n));
|
4165
|
+
}, $i = Te(
|
4129
4166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4130
|
-
(e, t =
|
4131
|
-
ignoreTag:
|
4167
|
+
(e, t = G()) => new hi(e, t, Q().formats, {
|
4168
|
+
ignoreTag: Q().ignoreTag
|
4132
4169
|
})
|
4133
|
-
),
|
4170
|
+
), Ri = (e, t = {}) => {
|
4134
4171
|
var r, n, i, o;
|
4135
4172
|
let s = t;
|
4136
4173
|
typeof e == "object" && (s = e, e = s.id);
|
4137
4174
|
const {
|
4138
4175
|
values: a,
|
4139
|
-
locale: h =
|
4176
|
+
locale: h = G(),
|
4140
4177
|
default: u
|
4141
4178
|
} = s;
|
4142
4179
|
if (h == null)
|
4143
4180
|
throw new Error(
|
4144
4181
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4145
4182
|
);
|
4146
|
-
let l =
|
4183
|
+
let l = rr(e, h);
|
4147
4184
|
if (!l)
|
4148
|
-
l = (o = (i = (n = (r =
|
4185
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
4149
4186
|
else if (typeof l != "string")
|
4150
4187
|
return console.warn(
|
4151
4188
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -4154,7 +4191,7 @@ const ie = (e, t) => {
|
|
4154
4191
|
return l;
|
4155
4192
|
let c = l;
|
4156
4193
|
try {
|
4157
|
-
c =
|
4194
|
+
c = $i(l, h).format(a);
|
4158
4195
|
} catch (f) {
|
4159
4196
|
f instanceof Error && console.warn(
|
4160
4197
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4162,20 +4199,20 @@ const ie = (e, t) => {
|
|
4162
4199
|
);
|
4163
4200
|
}
|
4164
4201
|
return c;
|
4165
|
-
},
|
4166
|
-
|
4167
|
-
|
4168
|
-
|
4169
|
-
|
4170
|
-
window.emWidgets = { topic:
|
4171
|
-
const
|
4172
|
-
function
|
4173
|
-
|
4174
|
-
}
|
4175
|
-
function
|
4176
|
-
|
4177
|
-
}
|
4178
|
-
const
|
4202
|
+
}, Ui = (e, t) => Ci(t).format(e), Gi = (e, t) => Mi(t).format(e), Di = (e, t) => Ni(t).format(e), Fi = (e, t = G()) => rr(e, t), ji = J([Y, ue], () => Ri);
|
4203
|
+
J([Y], () => Ui);
|
4204
|
+
J([Y], () => Gi);
|
4205
|
+
J([Y], () => Di);
|
4206
|
+
J([Y, ue], () => Fi);
|
4207
|
+
window.emWidgets = { topic: en };
|
4208
|
+
const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4209
|
+
function Ht(e, t) {
|
4210
|
+
ir(e, t);
|
4211
|
+
}
|
4212
|
+
function Vi(e) {
|
4213
|
+
Y.set(e);
|
4214
|
+
}
|
4215
|
+
const Bt = {
|
4179
4216
|
en: {
|
4180
4217
|
logoutButton: "Logout"
|
4181
4218
|
},
|
@@ -4210,20 +4247,20 @@ const _t = {
|
|
4210
4247
|
logoutButton: "Logout"
|
4211
4248
|
}
|
4212
4249
|
};
|
4213
|
-
function
|
4214
|
-
|
4250
|
+
function Xi(e) {
|
4251
|
+
vr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
4215
4252
|
}
|
4216
|
-
function
|
4253
|
+
function Wi(e) {
|
4217
4254
|
let t, r, n, i = (
|
4218
4255
|
/*$_*/
|
4219
4256
|
e[2]("logoutButton") + ""
|
4220
4257
|
), o, s, a;
|
4221
4258
|
return {
|
4222
4259
|
c() {
|
4223
|
-
t =
|
4260
|
+
t = L("div"), r = L("button"), n = L("span"), o = ve(i), _(t, "class", "GeneralLogout");
|
4224
4261
|
},
|
4225
4262
|
m(h, u) {
|
4226
|
-
|
4263
|
+
ae(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Ot(
|
4227
4264
|
r,
|
4228
4265
|
"click",
|
4229
4266
|
/*click_handler_1*/
|
@@ -4233,29 +4270,29 @@ function Ci(e) {
|
|
4233
4270
|
p(h, u) {
|
4234
4271
|
u & /*$_*/
|
4235
4272
|
4 && i !== (i = /*$_*/
|
4236
|
-
h[2]("logoutButton") + "") &&
|
4273
|
+
h[2]("logoutButton") + "") && It(o, i);
|
4237
4274
|
},
|
4238
4275
|
d(h) {
|
4239
|
-
h &&
|
4276
|
+
h && q(t), s = !1, a();
|
4240
4277
|
}
|
4241
4278
|
};
|
4242
4279
|
}
|
4243
|
-
function
|
4280
|
+
function zi(e) {
|
4244
4281
|
let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
|
4245
|
-
e[3] &&
|
4282
|
+
e[3] && Zi(e);
|
4246
4283
|
return {
|
4247
4284
|
c() {
|
4248
|
-
t =
|
4285
|
+
t = L("p"), r = L("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), s = ve(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = ee("path"), h = ee("path"), u = _r(), f && f.c(), _(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), _(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), _(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), _(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), _(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), _(n, "data-name", "Layer 1"), _(n, "xmlns", "http://www.w3.org/2000/svg"), _(n, "viewBox", "0 0 150 150"), Tr(r, "width", /*isMobile*/
|
4249
4286
|
e[3] ? (
|
4250
4287
|
/*mediaQuery*/
|
4251
4288
|
e[4].matches ? "50px" : "24px"
|
4252
|
-
) : "20px"),
|
4289
|
+
) : "20px"), _(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
|
4253
4290
|
(e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
|
4254
4291
|
(e[4].matches && /*isMobile*/
|
4255
4292
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
4256
4293
|
},
|
4257
4294
|
m(d, y) {
|
4258
|
-
|
4295
|
+
ae(d, t, y), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Ot(
|
4259
4296
|
t,
|
4260
4297
|
"click",
|
4261
4298
|
/*click_handler*/
|
@@ -4267,92 +4304,92 @@ function $i(e) {
|
|
4267
4304
|
d[3] || f.p(d, y);
|
4268
4305
|
},
|
4269
4306
|
d(d) {
|
4270
|
-
d &&
|
4307
|
+
d && q(t), f && f.d(), l = !1, c();
|
4271
4308
|
}
|
4272
4309
|
};
|
4273
4310
|
}
|
4274
|
-
function
|
4311
|
+
function Zi(e) {
|
4275
4312
|
let t, r = (
|
4276
4313
|
/*$_*/
|
4277
4314
|
e[2]("logoutButton") + ""
|
4278
4315
|
), n;
|
4279
4316
|
return {
|
4280
4317
|
c() {
|
4281
|
-
t =
|
4318
|
+
t = L("span"), n = ve(r), _(t, "class", "PlayerLogoutText");
|
4282
4319
|
},
|
4283
4320
|
m(i, o) {
|
4284
|
-
|
4321
|
+
ae(i, t, o), S(t, n);
|
4285
4322
|
},
|
4286
4323
|
p(i, o) {
|
4287
4324
|
o & /*$_*/
|
4288
4325
|
4 && r !== (r = /*$_*/
|
4289
|
-
i[2]("logoutButton") + "") &&
|
4326
|
+
i[2]("logoutButton") + "") && It(n, r);
|
4290
4327
|
},
|
4291
4328
|
d(i) {
|
4292
|
-
i &&
|
4329
|
+
i && q(t);
|
4293
4330
|
}
|
4294
4331
|
};
|
4295
4332
|
}
|
4296
|
-
function
|
4333
|
+
function Qi(e) {
|
4297
4334
|
let t;
|
4298
4335
|
function r(o, s) {
|
4299
4336
|
return (
|
4300
4337
|
/*buttonlocation*/
|
4301
|
-
o[0] === "PlayerAccountMenu" ?
|
4338
|
+
o[0] === "PlayerAccountMenu" ? zi : Wi
|
4302
4339
|
);
|
4303
4340
|
}
|
4304
4341
|
let n = r(e), i = n(e);
|
4305
4342
|
return {
|
4306
4343
|
c() {
|
4307
|
-
t =
|
4344
|
+
t = L("div"), i.c();
|
4308
4345
|
},
|
4309
4346
|
m(o, s) {
|
4310
|
-
|
4347
|
+
ae(o, t, s), i.m(t, null), e[14](t);
|
4311
4348
|
},
|
4312
4349
|
p(o, [s]) {
|
4313
4350
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
4314
4351
|
},
|
4315
|
-
i:
|
4316
|
-
o:
|
4352
|
+
i: w,
|
4353
|
+
o: w,
|
4317
4354
|
d(o) {
|
4318
|
-
o &&
|
4355
|
+
o && q(t), i.d(), e[14](null);
|
4319
4356
|
}
|
4320
4357
|
};
|
4321
4358
|
}
|
4322
|
-
function
|
4359
|
+
function qi(e, t, r) {
|
4323
4360
|
let n;
|
4324
|
-
|
4325
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, c = "", f = !1, d, y = window.navigator.userAgent, v =
|
4326
|
-
const
|
4327
|
-
fetch(l).then((
|
4328
|
-
Object.keys(
|
4329
|
-
|
4361
|
+
yr(e, ji, (b) => r(2, n = b));
|
4362
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, c = "", f = !1, d, y = window.navigator.userAgent, v = ki(y) !== "PC";
|
4363
|
+
const B = window.matchMedia("(min-width: 768px)"), $ = () => {
|
4364
|
+
fetch(l).then((A) => A.json()).then((A) => {
|
4365
|
+
Object.keys(A).forEach((U) => {
|
4366
|
+
Ht(U, A[U]);
|
4330
4367
|
});
|
4331
|
-
}).catch((
|
4332
|
-
console.log(
|
4368
|
+
}).catch((A) => {
|
4369
|
+
console.log(A);
|
4333
4370
|
});
|
4334
4371
|
};
|
4335
|
-
Object.keys(
|
4336
|
-
|
4372
|
+
Object.keys(Bt).forEach((b) => {
|
4373
|
+
Ht(b, Bt[b]);
|
4337
4374
|
});
|
4338
|
-
const
|
4375
|
+
const P = () => {
|
4339
4376
|
let b = new Headers();
|
4340
4377
|
b.append("Content-type", "application/json"), b.append("X-SessionID", o);
|
4341
|
-
let
|
4342
|
-
fetch(`${i}/v1/player/session/player`,
|
4378
|
+
let A = { method: "DELETE", headers: b };
|
4379
|
+
fetch(`${i}/v1/player/session/player`, A).then((U) => {
|
4343
4380
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
4344
4381
|
});
|
4345
|
-
}, T = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f),
|
4346
|
-
|
4347
|
-
},
|
4382
|
+
}, T = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f), R = () => {
|
4383
|
+
Vi(a);
|
4384
|
+
}, O = () => {
|
4348
4385
|
let b = document.createElement("style");
|
4349
4386
|
b.innerHTML = h, d.appendChild(b);
|
4350
|
-
},
|
4351
|
-
let b = new URL(u),
|
4352
|
-
fetch(b.href).then((
|
4353
|
-
|
4387
|
+
}, D = () => {
|
4388
|
+
let b = new URL(u), A = document.createElement("style");
|
4389
|
+
fetch(b.href).then((U) => U.text()).then((U) => {
|
4390
|
+
A.innerHTML = U, setTimeout(
|
4354
4391
|
() => {
|
4355
|
-
d.appendChild(
|
4392
|
+
d.appendChild(A);
|
4356
4393
|
},
|
4357
4394
|
1
|
4358
4395
|
), setTimeout(
|
@@ -4361,9 +4398,9 @@ function Gi(e, t, r) {
|
|
4361
4398
|
500
|
4362
4399
|
);
|
4363
4400
|
});
|
4364
|
-
},
|
4365
|
-
function
|
4366
|
-
|
4401
|
+
}, he = () => P(), lr = () => P();
|
4402
|
+
function fr(b) {
|
4403
|
+
Ne[b ? "unshift" : "push"](() => {
|
4367
4404
|
d = b, r(1, d);
|
4368
4405
|
});
|
4369
4406
|
}
|
@@ -4372,36 +4409,36 @@ function Gi(e, t, r) {
|
|
4372
4409
|
}, e.$$.update = () => {
|
4373
4410
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
4374
4411
|
193 && i && o && s && T(), e.$$.dirty & /*lang*/
|
4375
|
-
256 && a &&
|
4376
|
-
514 && h && d &&
|
4377
|
-
1026 && u && d &&
|
4378
|
-
2048 && l &&
|
4412
|
+
256 && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
4413
|
+
514 && h && d && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
4414
|
+
1026 && u && d && D(), e.$$.dirty & /*translationurl*/
|
4415
|
+
2048 && l && $();
|
4379
4416
|
}, [
|
4380
4417
|
s,
|
4381
4418
|
d,
|
4382
4419
|
n,
|
4383
4420
|
v,
|
4384
|
-
|
4385
|
-
|
4421
|
+
B,
|
4422
|
+
P,
|
4386
4423
|
i,
|
4387
4424
|
o,
|
4388
4425
|
a,
|
4389
4426
|
h,
|
4390
4427
|
u,
|
4391
4428
|
l,
|
4392
|
-
|
4393
|
-
|
4394
|
-
|
4429
|
+
he,
|
4430
|
+
lr,
|
4431
|
+
fr
|
4395
4432
|
];
|
4396
4433
|
}
|
4397
|
-
class
|
4434
|
+
class hr extends Ur {
|
4398
4435
|
constructor(t) {
|
4399
|
-
super(),
|
4436
|
+
super(), $r(
|
4400
4437
|
this,
|
4401
4438
|
t,
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4439
|
+
qi,
|
4440
|
+
Qi,
|
4441
|
+
wt,
|
4405
4442
|
{
|
4406
4443
|
endpoint: 6,
|
4407
4444
|
session: 7,
|
@@ -4411,86 +4448,86 @@ class nr extends Ar {
|
|
4411
4448
|
clientstylingurl: 10,
|
4412
4449
|
translationurl: 11
|
4413
4450
|
},
|
4414
|
-
|
4451
|
+
Xi
|
4415
4452
|
);
|
4416
4453
|
}
|
4417
4454
|
get endpoint() {
|
4418
4455
|
return this.$$.ctx[6];
|
4419
4456
|
}
|
4420
4457
|
set endpoint(t) {
|
4421
|
-
this.$$set({ endpoint: t }),
|
4458
|
+
this.$$set({ endpoint: t }), I();
|
4422
4459
|
}
|
4423
4460
|
get session() {
|
4424
4461
|
return this.$$.ctx[7];
|
4425
4462
|
}
|
4426
4463
|
set session(t) {
|
4427
|
-
this.$$set({ session: t }),
|
4464
|
+
this.$$set({ session: t }), I();
|
4428
4465
|
}
|
4429
4466
|
get buttonlocation() {
|
4430
4467
|
return this.$$.ctx[0];
|
4431
4468
|
}
|
4432
4469
|
set buttonlocation(t) {
|
4433
|
-
this.$$set({ buttonlocation: t }),
|
4470
|
+
this.$$set({ buttonlocation: t }), I();
|
4434
4471
|
}
|
4435
4472
|
get lang() {
|
4436
4473
|
return this.$$.ctx[8];
|
4437
4474
|
}
|
4438
4475
|
set lang(t) {
|
4439
|
-
this.$$set({ lang: t }),
|
4476
|
+
this.$$set({ lang: t }), I();
|
4440
4477
|
}
|
4441
4478
|
get clientstyling() {
|
4442
4479
|
return this.$$.ctx[9];
|
4443
4480
|
}
|
4444
4481
|
set clientstyling(t) {
|
4445
|
-
this.$$set({ clientstyling: t }),
|
4482
|
+
this.$$set({ clientstyling: t }), I();
|
4446
4483
|
}
|
4447
4484
|
get clientstylingurl() {
|
4448
4485
|
return this.$$.ctx[10];
|
4449
4486
|
}
|
4450
4487
|
set clientstylingurl(t) {
|
4451
|
-
this.$$set({ clientstylingurl: t }),
|
4488
|
+
this.$$set({ clientstylingurl: t }), I();
|
4452
4489
|
}
|
4453
4490
|
get translationurl() {
|
4454
4491
|
return this.$$.ctx[11];
|
4455
4492
|
}
|
4456
4493
|
set translationurl(t) {
|
4457
|
-
this.$$set({ translationurl: t }),
|
4494
|
+
this.$$set({ translationurl: t }), I();
|
4458
4495
|
}
|
4459
4496
|
}
|
4460
|
-
|
4461
|
-
const
|
4497
|
+
Rr(hr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
4498
|
+
const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4462
4499
|
__proto__: null,
|
4463
|
-
default:
|
4500
|
+
default: hr
|
4464
4501
|
}, Symbol.toStringTag, { value: "Module" }));
|
4465
4502
|
export {
|
4466
|
-
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
|
4471
|
-
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4503
|
+
Y as $,
|
4504
|
+
Yi as A,
|
4505
|
+
no as G,
|
4506
|
+
Ur as S,
|
4507
|
+
ir as a,
|
4508
|
+
vr as b,
|
4509
|
+
Rr as c,
|
4510
|
+
ae as d,
|
4511
|
+
L as e,
|
4512
|
+
I as f,
|
4513
|
+
q as g,
|
4514
|
+
yr as h,
|
4515
|
+
$r as i,
|
4516
|
+
ki as j,
|
4517
|
+
Ne as k,
|
4518
|
+
ji as l,
|
4519
|
+
ro as m,
|
4520
|
+
w as n,
|
4521
|
+
to as o,
|
4522
|
+
_r as p,
|
4523
|
+
_ as q,
|
4487
4524
|
S as r,
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
|
4495
|
-
|
4525
|
+
wt as s,
|
4526
|
+
ve as t,
|
4527
|
+
It as u,
|
4528
|
+
Ki as v,
|
4529
|
+
ee as w,
|
4530
|
+
Ot as x,
|
4531
|
+
se as y,
|
4532
|
+
eo as z
|
4496
4533
|
};
|