@everymatrix/player-account-notifications 1.65.1 → 1.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountNotifications-DcaTD5Nu.js → PlayerAccountNotifications-CMBUQQP1.js} +761 -796
- package/components/{PlayerAccountNotifications-CToXQjaj.js → PlayerAccountNotifications-CpCjgmWC.js} +683 -718
- package/components/PlayerAccountNotifications-DdDHvb7c.cjs +18 -0
- package/es2015/player-account-notifications.cjs +1 -1
- package/es2015/player-account-notifications.js +1 -1
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CayB6jRX.js +519 -0
- package/stencil/index-b2193545-DrvOqGyq.js +503 -0
- package/stencil/index-b2193545-lC_KoC4p.cjs +1 -0
- package/stencil/{ui-skeleton-1cb75d00-CUSs6C3A.cjs → ui-skeleton-1cb75d00-6KKxtHwu.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-CXHx_pAM.js → ui-skeleton-1cb75d00-BAHBT-wb.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-z2mX3TRi.js → ui-skeleton-1cb75d00-BPfsKHrC.js} +1 -1
- package/stencil/{ui-skeleton-CCXvjIzA.cjs → ui-skeleton-CaX4F6ue.cjs} +1 -1
- package/stencil/{ui-skeleton-4ifa-7wH.js → ui-skeleton-QVfoKja7.js} +2 -2
- package/stencil/{ui-skeleton-Bk5dn5mu.js → ui-skeleton-b2oavT4f.js} +2 -2
- package/components/PlayerAccountNotifications-BH1MdsKz.cjs +0 -18
- package/stencil/index-b2193545-BcYyCldH.js +0 -519
- package/stencil/index-b2193545-CPztmidm.js +0 -503
- package/stencil/index-b2193545-D1Z0k4-D.cjs +0 -1
package/components/{PlayerAccountNotifications-DcaTD5Nu.js → PlayerAccountNotifications-CMBUQQP1.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, r) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
mr.call(t, r) && Te(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
br.call(t, r) && Te(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, et = (e, t) => dr(e, pr(t));
|
|
13
|
+
var P = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,32 +27,32 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
30
|
+
import "../stencil/ui-skeleton-b2oavT4f.js";
|
|
31
31
|
function H() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ot(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function oe(e) {
|
|
40
|
+
e.forEach(Ot);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ze(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function It(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let ue;
|
|
49
|
-
function
|
|
49
|
+
function nt(e, t) {
|
|
50
50
|
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function gr(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function yr(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,17 +61,17 @@ function Er(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function w(e, t) {
|
|
65
65
|
e.appendChild(t);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const n =
|
|
67
|
+
function vr(e, t, r) {
|
|
68
|
+
const n = xr(e);
|
|
69
69
|
if (!n.getElementById(t)) {
|
|
70
70
|
const i = T("style");
|
|
71
|
-
i.id = t, i.textContent = r,
|
|
71
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function xr(e) {
|
|
75
75
|
if (!e)
|
|
76
76
|
return document;
|
|
77
77
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -81,8 +81,8 @@ function Tr(e) {
|
|
|
81
81
|
t
|
|
82
82
|
) : e.ownerDocument;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function _r(e, t) {
|
|
85
|
+
return w(
|
|
86
86
|
/** @type {Document} */
|
|
87
87
|
e.head || e,
|
|
88
88
|
t
|
|
@@ -91,40 +91,40 @@ function Hr(e, t) {
|
|
|
91
91
|
function $(e, t, r) {
|
|
92
92
|
e.insertBefore(t, r || null);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function I(e) {
|
|
95
95
|
e.parentNode && e.parentNode.removeChild(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ct(e, t) {
|
|
98
98
|
for (let r = 0; r < e.length; r += 1)
|
|
99
99
|
e[r] && e[r].d(t);
|
|
100
100
|
}
|
|
101
101
|
function T(e) {
|
|
102
102
|
return document.createElement(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Lt(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
107
|
function ce() {
|
|
108
|
-
return
|
|
108
|
+
return Lt(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
113
|
function X(e, t, r) {
|
|
114
114
|
const n = t.toLowerCase();
|
|
115
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
115
|
+
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);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Er(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Sr(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function it(e, t, r, n) {
|
|
125
125
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -133,90 +133,90 @@ function Pr(e) {
|
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let re;
|
|
137
|
+
function te(e) {
|
|
138
|
+
re = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
if (!
|
|
140
|
+
function Hr() {
|
|
141
|
+
if (!re)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
|
-
return
|
|
143
|
+
return re;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Ar(e) {
|
|
146
|
+
Hr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const V = [],
|
|
148
|
+
const V = [], Ie = [];
|
|
149
149
|
let W = [];
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
150
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Ce = !1;
|
|
152
|
+
function wr() {
|
|
153
|
+
Ce || (Ce = !0, Pr.then(N));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Le(e) {
|
|
156
156
|
W.push(e);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
158
|
+
const He = /* @__PURE__ */ new Set();
|
|
159
|
+
let k = 0;
|
|
160
|
+
function N() {
|
|
161
|
+
if (k !== 0)
|
|
162
162
|
return;
|
|
163
|
-
const e =
|
|
163
|
+
const e = re;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t = V[
|
|
168
|
-
|
|
166
|
+
for (; k < V.length; ) {
|
|
167
|
+
const t = V[k];
|
|
168
|
+
k++, te(t), Br(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw V.length = 0,
|
|
171
|
+
throw V.length = 0, k = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (
|
|
174
|
-
|
|
173
|
+
for (te(null), V.length = 0, k = 0; Ie.length; )
|
|
174
|
+
Ie.pop()();
|
|
175
175
|
for (let t = 0; t < W.length; t += 1) {
|
|
176
176
|
const r = W[t];
|
|
177
|
-
|
|
177
|
+
He.has(r) || (He.add(r), r());
|
|
178
178
|
}
|
|
179
179
|
W.length = 0;
|
|
180
180
|
} while (V.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
for (; ot.length; )
|
|
182
|
+
ot.pop()();
|
|
183
|
+
Ce = !1, He.clear(), te(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Br(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), oe(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Nr(e) {
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Or = /* @__PURE__ */ new Set();
|
|
197
|
+
function Ir(e, t) {
|
|
198
|
+
e && e.i && (Or.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
200
|
function be(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Cr(e, t, r) {
|
|
204
204
|
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
-
n && n.m(t, r),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
208
|
-
}), i.forEach(
|
|
205
|
+
n && n.m(t, r), Le(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Ot).filter(Ze);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
208
|
+
}), i.forEach(Le);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Lr(e, t) {
|
|
211
211
|
const r = e.$$;
|
|
212
|
-
r.fragment !== null && (
|
|
212
|
+
r.fragment !== null && (Nr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
214
|
+
function Mr(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (V.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const h =
|
|
219
|
-
|
|
217
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
|
+
const h = re;
|
|
219
|
+
te(e);
|
|
220
220
|
const u = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
@@ -224,7 +224,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
224
224
|
props: o,
|
|
225
225
|
update: H,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: rt(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,48 +233,48 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: rt(),
|
|
237
237
|
dirty: a,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || h.$$.root
|
|
240
240
|
};
|
|
241
241
|
s && s(u.root);
|
|
242
242
|
let l = !1;
|
|
243
|
-
if (u.ctx = r
|
|
244
|
-
const m =
|
|
245
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l &&
|
|
246
|
-
})
|
|
243
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...p) => {
|
|
244
|
+
const m = p.length ? p[0] : f;
|
|
245
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Mr(e, c)), f;
|
|
246
|
+
}), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const c =
|
|
249
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
248
|
+
const c = Er(t.target);
|
|
249
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro &&
|
|
252
|
+
t.intro && Ir(e.$$.fragment), Cr(e, t.target, t.anchor), N();
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
te(h);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Mt;
|
|
257
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
258
258
|
constructor(t, r, n) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
|
-
|
|
261
|
+
P(this, "$$ctor");
|
|
262
262
|
/** Slots */
|
|
263
|
-
|
|
263
|
+
P(this, "$$s");
|
|
264
264
|
/** The Svelte component instance */
|
|
265
|
-
|
|
265
|
+
P(this, "$$c");
|
|
266
266
|
/** Whether or not the custom element is connected */
|
|
267
|
-
|
|
267
|
+
P(this, "$$cn", !1);
|
|
268
268
|
/** Component props data */
|
|
269
|
-
|
|
269
|
+
P(this, "$$d", {});
|
|
270
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
271
|
-
|
|
271
|
+
P(this, "$$r", !1);
|
|
272
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
273
|
-
|
|
273
|
+
P(this, "$$p_d", {});
|
|
274
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
275
|
-
|
|
275
|
+
P(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
|
-
|
|
277
|
+
P(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
278
278
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
279
279
|
}
|
|
280
280
|
addEventListener(t, r, n) {
|
|
@@ -291,14 +291,14 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return tt(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
298
|
let s;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
s = T("slot"), o !== "default" &&
|
|
301
|
+
s = T("slot"), o !== "default" && _(s, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
@@ -308,14 +308,14 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
308
308
|
$(u, s, l);
|
|
309
309
|
},
|
|
310
310
|
d: function(u) {
|
|
311
|
-
u &&
|
|
311
|
+
u && I(s);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const r = {}, n =
|
|
318
|
+
const r = {}, n = Tr(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in n && (r[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props:
|
|
329
|
+
props: et(Ke({}, this.$$d), {
|
|
330
330
|
$$slots: r,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -404,8 +404,8 @@ function fe(e, t, r, n) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let s = class extends
|
|
407
|
+
function Rr(e, t, r, n, i, o) {
|
|
408
|
+
let s = class extends Mt {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, r, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
@@ -435,7 +435,7 @@ function Fr(e, t, r, n, i, o) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Ur {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -444,7 +444,7 @@ class jr {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
P(this, "$$");
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
450
450
|
*
|
|
@@ -452,11 +452,11 @@ class jr {
|
|
|
452
452
|
*
|
|
453
453
|
* @type {any}
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
P(this, "$$set");
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Lr(this, 1), this.$destroy = H;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,7 +465,7 @@ class jr {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, r) {
|
|
468
|
-
if (!
|
|
468
|
+
if (!Ze(r))
|
|
469
469
|
return H;
|
|
470
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return n.push(r), () => {
|
|
@@ -478,11 +478,11 @@ class jr {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
484
|
+
const Dr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
486
486
|
/*! *****************************************************************************
|
|
487
487
|
Copyright (c) Microsoft Corporation.
|
|
488
488
|
|
|
@@ -497,24 +497,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
497
497
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
498
498
|
PERFORMANCE OF THIS SOFTWARE.
|
|
499
499
|
***************************************************************************** */
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var Me = function(e, t) {
|
|
501
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
502
502
|
r.__proto__ = n;
|
|
503
503
|
} || function(r, n) {
|
|
504
504
|
for (var i in n)
|
|
505
505
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
506
|
-
},
|
|
506
|
+
}, Me(e, t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function C(e, t) {
|
|
509
509
|
if (typeof t != "function" && t !== null)
|
|
510
510
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
511
|
-
|
|
511
|
+
Me(e, t);
|
|
512
512
|
function r() {
|
|
513
513
|
this.constructor = e;
|
|
514
514
|
}
|
|
515
515
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
var v = function() {
|
|
518
|
+
return v = Object.assign || function(t) {
|
|
519
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
520
|
+
r = arguments[n];
|
|
521
|
+
for (var o in r)
|
|
522
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
523
|
+
}
|
|
524
|
+
return t;
|
|
525
|
+
}, v.apply(this, arguments);
|
|
526
|
+
};
|
|
527
|
+
function Gr(e, t) {
|
|
528
|
+
var r = {};
|
|
529
|
+
for (var n in e)
|
|
530
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
531
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
532
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
533
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
534
|
+
return r;
|
|
535
|
+
}
|
|
536
|
+
function $e(e) {
|
|
518
537
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
519
538
|
if (r)
|
|
520
539
|
return r.call(e);
|
|
@@ -526,7 +545,7 @@ function De(e) {
|
|
|
526
545
|
};
|
|
527
546
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
528
547
|
}
|
|
529
|
-
function
|
|
548
|
+
function Re(e, t) {
|
|
530
549
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
531
550
|
if (!r)
|
|
532
551
|
return e;
|
|
@@ -546,22 +565,22 @@ function Ge(e, t) {
|
|
|
546
565
|
}
|
|
547
566
|
return o;
|
|
548
567
|
}
|
|
549
|
-
function
|
|
550
|
-
if (arguments.length === 2)
|
|
568
|
+
function z(e, t, r) {
|
|
569
|
+
if (r || arguments.length === 2)
|
|
551
570
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
552
571
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
553
572
|
return e.concat(o || t);
|
|
554
573
|
}
|
|
555
|
-
function
|
|
574
|
+
function O(e) {
|
|
556
575
|
return typeof e == "function";
|
|
557
576
|
}
|
|
558
|
-
function
|
|
577
|
+
function $t(e) {
|
|
559
578
|
var t = function(n) {
|
|
560
579
|
Error.call(n), n.stack = new Error().stack;
|
|
561
580
|
}, r = e(t);
|
|
562
581
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
563
582
|
}
|
|
564
|
-
var
|
|
583
|
+
var Ae = $t(function(e) {
|
|
565
584
|
return function(r) {
|
|
566
585
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
567
586
|
` + r.map(function(n, i) {
|
|
@@ -570,13 +589,13 @@ var Pe = Gt(function(e) {
|
|
|
570
589
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
571
590
|
};
|
|
572
591
|
});
|
|
573
|
-
function
|
|
592
|
+
function Ue(e, t) {
|
|
574
593
|
if (e) {
|
|
575
594
|
var r = e.indexOf(t);
|
|
576
595
|
0 <= r && e.splice(r, 1);
|
|
577
596
|
}
|
|
578
597
|
}
|
|
579
|
-
var
|
|
598
|
+
var ve = function() {
|
|
580
599
|
function e(t) {
|
|
581
600
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
582
601
|
}
|
|
@@ -588,12 +607,12 @@ var _e = function() {
|
|
|
588
607
|
if (s)
|
|
589
608
|
if (this._parentage = null, Array.isArray(s))
|
|
590
609
|
try {
|
|
591
|
-
for (var a =
|
|
610
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
592
611
|
var u = h.value;
|
|
593
612
|
u.remove(this);
|
|
594
613
|
}
|
|
595
|
-
} catch (
|
|
596
|
-
t = { error:
|
|
614
|
+
} catch (d) {
|
|
615
|
+
t = { error: d };
|
|
597
616
|
} finally {
|
|
598
617
|
try {
|
|
599
618
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -605,29 +624,29 @@ var _e = function() {
|
|
|
605
624
|
else
|
|
606
625
|
s.remove(this);
|
|
607
626
|
var l = this.initialTeardown;
|
|
608
|
-
if (
|
|
627
|
+
if (O(l))
|
|
609
628
|
try {
|
|
610
629
|
l();
|
|
611
|
-
} catch (
|
|
612
|
-
o =
|
|
630
|
+
} catch (d) {
|
|
631
|
+
o = d instanceof Ae ? d.errors : [d];
|
|
613
632
|
}
|
|
614
633
|
var c = this._finalizers;
|
|
615
634
|
if (c) {
|
|
616
635
|
this._finalizers = null;
|
|
617
636
|
try {
|
|
618
|
-
for (var f =
|
|
619
|
-
var m =
|
|
637
|
+
for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
|
|
638
|
+
var m = p.value;
|
|
620
639
|
try {
|
|
621
|
-
|
|
622
|
-
} catch (
|
|
623
|
-
o = o != null ? o : [],
|
|
640
|
+
st(m);
|
|
641
|
+
} catch (d) {
|
|
642
|
+
o = o != null ? o : [], d instanceof Ae ? o = z(z([], Re(o)), Re(d.errors)) : o.push(d);
|
|
624
643
|
}
|
|
625
644
|
}
|
|
626
|
-
} catch (
|
|
627
|
-
n = { error:
|
|
645
|
+
} catch (d) {
|
|
646
|
+
n = { error: d };
|
|
628
647
|
} finally {
|
|
629
648
|
try {
|
|
630
|
-
|
|
649
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
631
650
|
} finally {
|
|
632
651
|
if (n)
|
|
633
652
|
throw n.error;
|
|
@@ -635,13 +654,13 @@ var _e = function() {
|
|
|
635
654
|
}
|
|
636
655
|
}
|
|
637
656
|
if (o)
|
|
638
|
-
throw new
|
|
657
|
+
throw new Ae(o);
|
|
639
658
|
}
|
|
640
659
|
}, e.prototype.add = function(t) {
|
|
641
660
|
var r;
|
|
642
661
|
if (t && t !== this)
|
|
643
662
|
if (this.closed)
|
|
644
|
-
|
|
663
|
+
st(t);
|
|
645
664
|
else {
|
|
646
665
|
if (t instanceof e) {
|
|
647
666
|
if (t.closed || t._hasParent(this))
|
|
@@ -658,52 +677,56 @@ var _e = function() {
|
|
|
658
677
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
659
678
|
}, e.prototype._removeParent = function(t) {
|
|
660
679
|
var r = this._parentage;
|
|
661
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
680
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
662
681
|
}, e.prototype.remove = function(t) {
|
|
663
682
|
var r = this._finalizers;
|
|
664
|
-
r &&
|
|
683
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
665
684
|
}, e.EMPTY = function() {
|
|
666
685
|
var t = new e();
|
|
667
686
|
return t.closed = !0, t;
|
|
668
687
|
}(), e;
|
|
669
|
-
}(),
|
|
670
|
-
function
|
|
671
|
-
return e instanceof
|
|
672
|
-
}
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
|
|
688
|
+
}(), Rt = ve.EMPTY;
|
|
689
|
+
function Ut(e) {
|
|
690
|
+
return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
691
|
+
}
|
|
692
|
+
function st(e) {
|
|
693
|
+
O(e) ? e() : e.unsubscribe();
|
|
694
|
+
}
|
|
695
|
+
var Fr = {
|
|
696
|
+
onUnhandledError: null,
|
|
697
|
+
onStoppedNotification: null,
|
|
698
|
+
Promise: void 0,
|
|
699
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
700
|
+
useDeprecatedNextContext: !1
|
|
701
|
+
}, kr = {
|
|
679
702
|
setTimeout: function(e, t) {
|
|
680
703
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
681
704
|
r[n - 2] = arguments[n];
|
|
682
|
-
return setTimeout.apply(void 0,
|
|
705
|
+
return setTimeout.apply(void 0, z([e, t], Re(r)));
|
|
683
706
|
},
|
|
684
707
|
clearTimeout: function(e) {
|
|
685
708
|
return clearTimeout(e);
|
|
686
709
|
},
|
|
687
710
|
delegate: void 0
|
|
688
711
|
};
|
|
689
|
-
function
|
|
690
|
-
|
|
712
|
+
function jr(e) {
|
|
713
|
+
kr.setTimeout(function() {
|
|
691
714
|
throw e;
|
|
692
715
|
});
|
|
693
716
|
}
|
|
694
|
-
function
|
|
717
|
+
function at() {
|
|
695
718
|
}
|
|
696
|
-
function
|
|
719
|
+
function de(e) {
|
|
697
720
|
e();
|
|
698
721
|
}
|
|
699
|
-
var
|
|
700
|
-
|
|
722
|
+
var Dt = function(e) {
|
|
723
|
+
C(t, e);
|
|
701
724
|
function t(r) {
|
|
702
725
|
var n = e.call(this) || this;
|
|
703
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Wr, n;
|
|
704
727
|
}
|
|
705
728
|
return t.create = function(r, n, i) {
|
|
706
|
-
return new
|
|
729
|
+
return new De(r, n, i);
|
|
707
730
|
}, t.prototype.next = function(r) {
|
|
708
731
|
this.isStopped || this._next(r);
|
|
709
732
|
}, t.prototype.error = function(r) {
|
|
@@ -727,7 +750,7 @@ var kt = function(e) {
|
|
|
727
750
|
this.unsubscribe();
|
|
728
751
|
}
|
|
729
752
|
}, t;
|
|
730
|
-
}(
|
|
753
|
+
}(ve), Vr = function() {
|
|
731
754
|
function e(t) {
|
|
732
755
|
this.partialObserver = t;
|
|
733
756
|
}
|
|
@@ -758,43 +781,43 @@ var kt = function(e) {
|
|
|
758
781
|
he(r);
|
|
759
782
|
}
|
|
760
783
|
}, e;
|
|
761
|
-
}(),
|
|
762
|
-
|
|
784
|
+
}(), De = function(e) {
|
|
785
|
+
C(t, e);
|
|
763
786
|
function t(r, n, i) {
|
|
764
787
|
var o = e.call(this) || this, s;
|
|
765
|
-
return
|
|
788
|
+
return O(r) || !r ? s = {
|
|
766
789
|
next: r != null ? r : void 0,
|
|
767
790
|
error: n != null ? n : void 0,
|
|
768
791
|
complete: i != null ? i : void 0
|
|
769
|
-
} : s = r, o.destination = new
|
|
792
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
770
793
|
}
|
|
771
794
|
return t;
|
|
772
|
-
}(
|
|
795
|
+
}(Dt);
|
|
773
796
|
function he(e) {
|
|
774
|
-
|
|
797
|
+
jr(e);
|
|
775
798
|
}
|
|
776
|
-
function
|
|
799
|
+
function Xr(e) {
|
|
777
800
|
throw e;
|
|
778
801
|
}
|
|
779
|
-
var
|
|
802
|
+
var Wr = {
|
|
780
803
|
closed: !0,
|
|
781
|
-
next:
|
|
782
|
-
error:
|
|
783
|
-
complete:
|
|
784
|
-
},
|
|
804
|
+
next: at,
|
|
805
|
+
error: Xr,
|
|
806
|
+
complete: at
|
|
807
|
+
}, zr = function() {
|
|
785
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
786
809
|
}();
|
|
787
|
-
function
|
|
810
|
+
function Zr(e) {
|
|
788
811
|
return e;
|
|
789
812
|
}
|
|
790
|
-
function
|
|
791
|
-
return e.length === 0 ?
|
|
813
|
+
function Qr(e) {
|
|
814
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
792
815
|
return e.reduce(function(n, i) {
|
|
793
816
|
return i(n);
|
|
794
817
|
}, r);
|
|
795
818
|
};
|
|
796
819
|
}
|
|
797
|
-
var
|
|
820
|
+
var ut = function() {
|
|
798
821
|
function e(t) {
|
|
799
822
|
t && (this._subscribe = t);
|
|
800
823
|
}
|
|
@@ -802,8 +825,8 @@ var ft = function() {
|
|
|
802
825
|
var r = new e();
|
|
803
826
|
return r.source = this, r.operator = t, r;
|
|
804
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
805
|
-
var i = this, o =
|
|
806
|
-
return
|
|
828
|
+
var i = this, o = Jr(t) ? t : new De(t, r, n);
|
|
829
|
+
return de(function() {
|
|
807
830
|
var s = i, a = s.operator, h = s.source;
|
|
808
831
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
809
832
|
}), o;
|
|
@@ -815,8 +838,8 @@ var ft = function() {
|
|
|
815
838
|
}
|
|
816
839
|
}, e.prototype.forEach = function(t, r) {
|
|
817
840
|
var n = this;
|
|
818
|
-
return r =
|
|
819
|
-
var s = new
|
|
841
|
+
return r = ht(r), new r(function(i, o) {
|
|
842
|
+
var s = new De({
|
|
820
843
|
next: function(a) {
|
|
821
844
|
try {
|
|
822
845
|
t(a);
|
|
@@ -832,15 +855,15 @@ var ft = function() {
|
|
|
832
855
|
}, e.prototype._subscribe = function(t) {
|
|
833
856
|
var r;
|
|
834
857
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
835
|
-
}, e.prototype[
|
|
858
|
+
}, e.prototype[zr] = function() {
|
|
836
859
|
return this;
|
|
837
860
|
}, e.prototype.pipe = function() {
|
|
838
861
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
839
862
|
t[r] = arguments[r];
|
|
840
|
-
return
|
|
863
|
+
return Qr(t)(this);
|
|
841
864
|
}, e.prototype.toPromise = function(t) {
|
|
842
865
|
var r = this;
|
|
843
|
-
return t =
|
|
866
|
+
return t = ht(t), new t(function(n, i) {
|
|
844
867
|
var o;
|
|
845
868
|
r.subscribe(function(s) {
|
|
846
869
|
return o = s;
|
|
@@ -854,40 +877,40 @@ var ft = function() {
|
|
|
854
877
|
return new e(t);
|
|
855
878
|
}, e;
|
|
856
879
|
}();
|
|
857
|
-
function
|
|
880
|
+
function ht(e) {
|
|
858
881
|
var t;
|
|
859
|
-
return (t = e != null ? e :
|
|
882
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
860
883
|
}
|
|
861
|
-
function
|
|
862
|
-
return e &&
|
|
884
|
+
function qr(e) {
|
|
885
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
863
886
|
}
|
|
864
|
-
function
|
|
865
|
-
return e && e instanceof
|
|
887
|
+
function Jr(e) {
|
|
888
|
+
return e && e instanceof Dt || qr(e) && Ut(e);
|
|
866
889
|
}
|
|
867
|
-
var
|
|
890
|
+
var Yr = $t(function(e) {
|
|
868
891
|
return function() {
|
|
869
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
870
893
|
};
|
|
871
|
-
}),
|
|
872
|
-
|
|
894
|
+
}), Gt = function(e) {
|
|
895
|
+
C(t, e);
|
|
873
896
|
function t() {
|
|
874
897
|
var r = e.call(this) || this;
|
|
875
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
876
899
|
}
|
|
877
900
|
return t.prototype.lift = function(r) {
|
|
878
|
-
var n = new
|
|
901
|
+
var n = new lt(this, this);
|
|
879
902
|
return n.operator = r, n;
|
|
880
903
|
}, t.prototype._throwIfClosed = function() {
|
|
881
904
|
if (this.closed)
|
|
882
|
-
throw new
|
|
905
|
+
throw new Yr();
|
|
883
906
|
}, t.prototype.next = function(r) {
|
|
884
907
|
var n = this;
|
|
885
|
-
|
|
908
|
+
de(function() {
|
|
886
909
|
var i, o;
|
|
887
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
888
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
889
912
|
try {
|
|
890
|
-
for (var s =
|
|
913
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
891
914
|
var h = a.value;
|
|
892
915
|
h.next(r);
|
|
893
916
|
}
|
|
@@ -905,7 +928,7 @@ var tn = Gt(function(e) {
|
|
|
905
928
|
});
|
|
906
929
|
}, t.prototype.error = function(r) {
|
|
907
930
|
var n = this;
|
|
908
|
-
|
|
931
|
+
de(function() {
|
|
909
932
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
910
933
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
911
934
|
for (var i = n.observers; i.length; )
|
|
@@ -914,7 +937,7 @@ var tn = Gt(function(e) {
|
|
|
914
937
|
});
|
|
915
938
|
}, t.prototype.complete = function() {
|
|
916
939
|
var r = this;
|
|
917
|
-
|
|
940
|
+
de(function() {
|
|
918
941
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
919
942
|
r.isStopped = !0;
|
|
920
943
|
for (var n = r.observers; n.length; )
|
|
@@ -936,20 +959,20 @@ var tn = Gt(function(e) {
|
|
|
936
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
937
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
938
961
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
939
|
-
return o || s ?
|
|
940
|
-
n.currentObservers = null,
|
|
962
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
963
|
+
n.currentObservers = null, Ue(a, r);
|
|
941
964
|
}));
|
|
942
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
943
966
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
944
967
|
i ? r.error(o) : s && r.complete();
|
|
945
968
|
}, t.prototype.asObservable = function() {
|
|
946
|
-
var r = new
|
|
969
|
+
var r = new ut();
|
|
947
970
|
return r.source = this, r;
|
|
948
971
|
}, t.create = function(r, n) {
|
|
949
|
-
return new
|
|
972
|
+
return new lt(r, n);
|
|
950
973
|
}, t;
|
|
951
|
-
}(
|
|
952
|
-
|
|
974
|
+
}(ut), lt = function(e) {
|
|
975
|
+
C(t, e);
|
|
953
976
|
function t(r, n) {
|
|
954
977
|
var i = e.call(this) || this;
|
|
955
978
|
return i.destination = r, i.source = n, i;
|
|
@@ -965,17 +988,17 @@ var tn = Gt(function(e) {
|
|
|
965
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
966
989
|
}, t.prototype._subscribe = function(r) {
|
|
967
990
|
var n, i;
|
|
968
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
|
|
969
992
|
}, t;
|
|
970
|
-
}(
|
|
993
|
+
}(Gt), Ft = {
|
|
971
994
|
now: function() {
|
|
972
|
-
return (
|
|
995
|
+
return (Ft.delegate || Date).now();
|
|
973
996
|
},
|
|
974
997
|
delegate: void 0
|
|
975
|
-
},
|
|
976
|
-
|
|
998
|
+
}, Kr = function(e) {
|
|
999
|
+
C(t, e);
|
|
977
1000
|
function t(r, n, i) {
|
|
978
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
979
1002
|
var o = e.call(this) || this;
|
|
980
1003
|
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;
|
|
981
1004
|
}
|
|
@@ -995,15 +1018,15 @@ var tn = Gt(function(e) {
|
|
|
995
1018
|
u && o.splice(0, u + 1);
|
|
996
1019
|
}
|
|
997
1020
|
}, t;
|
|
998
|
-
}(
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const r = new
|
|
1002
|
-
|
|
1021
|
+
}(Gt);
|
|
1022
|
+
const ct = [], ft = {}, en = (e, t = 0) => {
|
|
1023
|
+
if (ct.indexOf(e) == -1) {
|
|
1024
|
+
const r = new Kr(t);
|
|
1025
|
+
ft[e] = r, ct.push(e);
|
|
1003
1026
|
}
|
|
1004
|
-
return
|
|
1005
|
-
},
|
|
1006
|
-
function
|
|
1027
|
+
return ft[e];
|
|
1028
|
+
}, j = [];
|
|
1029
|
+
function tn(e, t) {
|
|
1007
1030
|
return {
|
|
1008
1031
|
subscribe: xe(e, t).subscribe
|
|
1009
1032
|
};
|
|
@@ -1012,14 +1035,14 @@ function xe(e, t = H) {
|
|
|
1012
1035
|
let r;
|
|
1013
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1014
1037
|
function i(a) {
|
|
1015
|
-
if (
|
|
1016
|
-
const h = !
|
|
1038
|
+
if (It(e, a) && (e = a, r)) {
|
|
1039
|
+
const h = !j.length;
|
|
1017
1040
|
for (const u of n)
|
|
1018
|
-
u[1](),
|
|
1041
|
+
u[1](), j.push(u, e);
|
|
1019
1042
|
if (h) {
|
|
1020
|
-
for (let u = 0; u <
|
|
1021
|
-
|
|
1022
|
-
|
|
1043
|
+
for (let u = 0; u < j.length; u += 2)
|
|
1044
|
+
j[u][0](j[u + 1]);
|
|
1045
|
+
j.length = 0;
|
|
1023
1046
|
}
|
|
1024
1047
|
}
|
|
1025
1048
|
}
|
|
@@ -1034,12 +1057,12 @@ function xe(e, t = H) {
|
|
|
1034
1057
|
}
|
|
1035
1058
|
return { set: i, update: o, subscribe: s };
|
|
1036
1059
|
}
|
|
1037
|
-
function
|
|
1060
|
+
function Y(e, t, r) {
|
|
1038
1061
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1039
1062
|
if (!i.every(Boolean))
|
|
1040
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1041
1064
|
const o = t.length < 2;
|
|
1042
|
-
return
|
|
1065
|
+
return tn(r, (s, a) => {
|
|
1043
1066
|
let h = !1;
|
|
1044
1067
|
const u = [];
|
|
1045
1068
|
let l = 0, c = H;
|
|
@@ -1048,170 +1071,131 @@ function J(e, t, r) {
|
|
|
1048
1071
|
return;
|
|
1049
1072
|
c();
|
|
1050
1073
|
const m = t(n ? u[0] : u, s, a);
|
|
1051
|
-
o ? s(m) : c =
|
|
1052
|
-
},
|
|
1053
|
-
(m,
|
|
1074
|
+
o ? s(m) : c = Ze(m) ? m : H;
|
|
1075
|
+
}, p = i.map(
|
|
1076
|
+
(m, d) => yr(
|
|
1054
1077
|
m,
|
|
1055
1078
|
(S) => {
|
|
1056
|
-
u[
|
|
1079
|
+
u[d] = S, l &= ~(1 << d), h && f();
|
|
1057
1080
|
},
|
|
1058
1081
|
() => {
|
|
1059
|
-
l |= 1 <<
|
|
1082
|
+
l |= 1 << d;
|
|
1060
1083
|
}
|
|
1061
1084
|
)
|
|
1062
1085
|
);
|
|
1063
1086
|
return h = !0, f(), function() {
|
|
1064
|
-
|
|
1087
|
+
oe(p), c(), h = !1;
|
|
1065
1088
|
};
|
|
1066
1089
|
});
|
|
1067
1090
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return e
|
|
1091
|
+
function rn(e) {
|
|
1092
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1070
1093
|
}
|
|
1071
|
-
var
|
|
1072
|
-
return
|
|
1094
|
+
var nn = function(t) {
|
|
1095
|
+
return on(t) && !sn(t);
|
|
1073
1096
|
};
|
|
1074
|
-
function
|
|
1097
|
+
function on(e) {
|
|
1075
1098
|
return !!e && typeof e == "object";
|
|
1076
1099
|
}
|
|
1077
|
-
function
|
|
1100
|
+
function sn(e) {
|
|
1078
1101
|
var t = Object.prototype.toString.call(e);
|
|
1079
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1102
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1080
1103
|
}
|
|
1081
|
-
var
|
|
1082
|
-
function
|
|
1083
|
-
return e.$$typeof ===
|
|
1104
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1105
|
+
function hn(e) {
|
|
1106
|
+
return e.$$typeof === un;
|
|
1084
1107
|
}
|
|
1085
|
-
function
|
|
1108
|
+
function ln(e) {
|
|
1086
1109
|
return Array.isArray(e) ? [] : {};
|
|
1087
1110
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1111
|
+
function ne(e, t) {
|
|
1112
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(ln(e), e, t) : e;
|
|
1090
1113
|
}
|
|
1091
|
-
function
|
|
1114
|
+
function cn(e, t, r) {
|
|
1092
1115
|
return e.concat(t).map(function(n) {
|
|
1093
|
-
return
|
|
1116
|
+
return ne(n, r);
|
|
1094
1117
|
});
|
|
1095
1118
|
}
|
|
1096
|
-
function
|
|
1119
|
+
function fn(e, t) {
|
|
1097
1120
|
if (!t.customMerge)
|
|
1098
|
-
return
|
|
1121
|
+
return Z;
|
|
1099
1122
|
var r = t.customMerge(e);
|
|
1100
|
-
return typeof r == "function" ? r :
|
|
1123
|
+
return typeof r == "function" ? r : Z;
|
|
1101
1124
|
}
|
|
1102
|
-
function
|
|
1125
|
+
function dn(e) {
|
|
1103
1126
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1104
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1105
1128
|
}) : [];
|
|
1106
1129
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return Object.keys(e).concat(
|
|
1130
|
+
function dt(e) {
|
|
1131
|
+
return Object.keys(e).concat(dn(e));
|
|
1109
1132
|
}
|
|
1110
|
-
function
|
|
1133
|
+
function kt(e, t) {
|
|
1111
1134
|
try {
|
|
1112
1135
|
return t in e;
|
|
1113
1136
|
} catch (r) {
|
|
1114
1137
|
return !1;
|
|
1115
1138
|
}
|
|
1116
1139
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1140
|
+
function pn(e, t) {
|
|
1141
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1119
1142
|
}
|
|
1120
|
-
function
|
|
1143
|
+
function mn(e, t, r) {
|
|
1121
1144
|
var n = {};
|
|
1122
|
-
return r.isMergeableObject(e) &&
|
|
1123
|
-
n[i] =
|
|
1124
|
-
}),
|
|
1125
|
-
|
|
1145
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1146
|
+
n[i] = ne(e[i], r);
|
|
1147
|
+
}), dt(t).forEach(function(i) {
|
|
1148
|
+
pn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1126
1149
|
}), n;
|
|
1127
1150
|
}
|
|
1128
|
-
function
|
|
1129
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1151
|
+
function Z(e, t, r) {
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1130
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1131
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ne(t, r);
|
|
1132
1155
|
}
|
|
1133
|
-
|
|
1156
|
+
Z.all = function(t, r) {
|
|
1134
1157
|
if (!Array.isArray(t))
|
|
1135
1158
|
throw new Error("first argument should be an array");
|
|
1136
1159
|
return t.reduce(function(n, i) {
|
|
1137
|
-
return
|
|
1160
|
+
return Z(n, i, r);
|
|
1138
1161
|
}, {});
|
|
1139
1162
|
};
|
|
1140
|
-
var
|
|
1141
|
-
const
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
r.__proto__ = n;
|
|
1145
|
-
} || function(r, n) {
|
|
1146
|
-
for (var i in n)
|
|
1147
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1148
|
-
}, Ve(e, t);
|
|
1149
|
-
};
|
|
1150
|
-
function Ee(e, t) {
|
|
1151
|
-
if (typeof t != "function" && t !== null)
|
|
1152
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1153
|
-
Ve(e, t);
|
|
1154
|
-
function r() {
|
|
1155
|
-
this.constructor = e;
|
|
1156
|
-
}
|
|
1157
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1158
|
-
}
|
|
1159
|
-
var N = function() {
|
|
1160
|
-
return N = Object.assign || function(t) {
|
|
1161
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1162
|
-
r = arguments[n];
|
|
1163
|
-
for (var o in r)
|
|
1164
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1165
|
-
}
|
|
1166
|
-
return t;
|
|
1167
|
-
}, N.apply(this, arguments);
|
|
1168
|
-
};
|
|
1169
|
-
function En(e, t) {
|
|
1170
|
-
var r = {};
|
|
1171
|
-
for (var n in e)
|
|
1172
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1173
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1174
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1175
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1176
|
-
return r;
|
|
1177
|
-
}
|
|
1178
|
-
function Be(e, t, r) {
|
|
1179
|
-
if (r || arguments.length === 2)
|
|
1180
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1181
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1182
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1183
|
-
}
|
|
1184
|
-
function Oe(e, t) {
|
|
1185
|
-
var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Hn;
|
|
1163
|
+
var bn = Z, gn = bn;
|
|
1164
|
+
const yn = /* @__PURE__ */ rn(gn);
|
|
1165
|
+
function Pe(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : xn;
|
|
1186
1167
|
return i(e, {
|
|
1187
1168
|
cache: r,
|
|
1188
1169
|
serializer: n
|
|
1189
1170
|
});
|
|
1190
1171
|
}
|
|
1191
|
-
function
|
|
1172
|
+
function vn(e) {
|
|
1192
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1193
1174
|
}
|
|
1194
|
-
function
|
|
1195
|
-
var i =
|
|
1175
|
+
function jt(e, t, r, n) {
|
|
1176
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1196
1177
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1197
1178
|
}
|
|
1198
|
-
function
|
|
1179
|
+
function Vt(e, t, r) {
|
|
1199
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1200
1181
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1201
1182
|
}
|
|
1202
|
-
function
|
|
1183
|
+
function Qe(e, t, r, n, i) {
|
|
1203
1184
|
return r.bind(t, e, n, i);
|
|
1204
1185
|
}
|
|
1205
|
-
function
|
|
1206
|
-
var r = e.length === 1 ?
|
|
1207
|
-
return
|
|
1186
|
+
function xn(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? jt : Vt;
|
|
1188
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1208
1189
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1190
|
+
function _n(e, t) {
|
|
1191
|
+
return Qe(e, this, Vt, t.cache.create(), t.serializer);
|
|
1211
1192
|
}
|
|
1212
|
-
|
|
1193
|
+
function En(e, t) {
|
|
1194
|
+
return Qe(e, this, jt, t.cache.create(), t.serializer);
|
|
1195
|
+
}
|
|
1196
|
+
var Sn = function() {
|
|
1213
1197
|
return JSON.stringify(arguments);
|
|
1214
|
-
},
|
|
1198
|
+
}, Tn = (
|
|
1215
1199
|
/** @class */
|
|
1216
1200
|
function() {
|
|
1217
1201
|
function e() {
|
|
@@ -1223,71 +1207,62 @@ var An = function() {
|
|
|
1223
1207
|
this.cache[t] = r;
|
|
1224
1208
|
}, e;
|
|
1225
1209
|
}()
|
|
1226
|
-
),
|
|
1210
|
+
), Hn = {
|
|
1227
1211
|
create: function() {
|
|
1228
|
-
return new
|
|
1212
|
+
return new Tn();
|
|
1229
1213
|
}
|
|
1230
|
-
},
|
|
1231
|
-
variadic:
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
-
r = arguments[n];
|
|
1236
|
-
for (var o in r)
|
|
1237
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
-
}
|
|
1239
|
-
return t;
|
|
1240
|
-
}, ge.apply(this, arguments);
|
|
1241
|
-
};
|
|
1242
|
-
var b;
|
|
1214
|
+
}, we = {
|
|
1215
|
+
variadic: _n,
|
|
1216
|
+
monadic: En
|
|
1217
|
+
}, b;
|
|
1243
1218
|
(function(e) {
|
|
1244
1219
|
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";
|
|
1245
1220
|
})(b || (b = {}));
|
|
1246
|
-
var
|
|
1221
|
+
var x;
|
|
1247
1222
|
(function(e) {
|
|
1248
1223
|
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";
|
|
1249
|
-
})(
|
|
1250
|
-
var
|
|
1224
|
+
})(x || (x = {}));
|
|
1225
|
+
var Q;
|
|
1251
1226
|
(function(e) {
|
|
1252
1227
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1253
|
-
})(
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1228
|
+
})(Q || (Q = {}));
|
|
1229
|
+
function pt(e) {
|
|
1230
|
+
return e.type === x.literal;
|
|
1256
1231
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1232
|
+
function An(e) {
|
|
1233
|
+
return e.type === x.argument;
|
|
1259
1234
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1235
|
+
function Xt(e) {
|
|
1236
|
+
return e.type === x.number;
|
|
1262
1237
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1238
|
+
function Wt(e) {
|
|
1239
|
+
return e.type === x.date;
|
|
1265
1240
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.type ===
|
|
1241
|
+
function zt(e) {
|
|
1242
|
+
return e.type === x.time;
|
|
1268
1243
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return e.type ===
|
|
1244
|
+
function Zt(e) {
|
|
1245
|
+
return e.type === x.select;
|
|
1271
1246
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1247
|
+
function Qt(e) {
|
|
1248
|
+
return e.type === x.plural;
|
|
1274
1249
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1250
|
+
function Pn(e) {
|
|
1251
|
+
return e.type === x.pound;
|
|
1277
1252
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return e.type ===
|
|
1253
|
+
function qt(e) {
|
|
1254
|
+
return e.type === x.tag;
|
|
1280
1255
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1256
|
+
function Jt(e) {
|
|
1257
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
1283
1258
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1259
|
+
function Ge(e) {
|
|
1260
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
1286
1261
|
}
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
1262
|
+
var Yt = /[ \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;
|
|
1263
|
+
function Bn(e) {
|
|
1289
1264
|
var t = {};
|
|
1290
|
-
return e.replace(
|
|
1265
|
+
return e.replace(wn, function(r) {
|
|
1291
1266
|
var n = r.length;
|
|
1292
1267
|
switch (r[0]) {
|
|
1293
1268
|
case "G":
|
|
@@ -1376,21 +1351,11 @@ function Cn(e) {
|
|
|
1376
1351
|
return "";
|
|
1377
1352
|
}), t;
|
|
1378
1353
|
}
|
|
1379
|
-
var
|
|
1380
|
-
|
|
1381
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1382
|
-
r = arguments[n];
|
|
1383
|
-
for (var o in r)
|
|
1384
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1385
|
-
}
|
|
1386
|
-
return t;
|
|
1387
|
-
}, _.apply(this, arguments);
|
|
1388
|
-
};
|
|
1389
|
-
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1390
|
-
function Mn(e) {
|
|
1354
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1355
|
+
function On(e) {
|
|
1391
1356
|
if (e.length === 0)
|
|
1392
1357
|
throw new Error("Number skeleton cannot be empty");
|
|
1393
|
-
for (var t = e.split(
|
|
1358
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
1394
1359
|
return f.length > 0;
|
|
1395
1360
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1396
1361
|
var o = i[n], s = o.split("/");
|
|
@@ -1405,17 +1370,17 @@ function Mn(e) {
|
|
|
1405
1370
|
}
|
|
1406
1371
|
return r;
|
|
1407
1372
|
}
|
|
1408
|
-
function
|
|
1373
|
+
function In(e) {
|
|
1409
1374
|
return e.replace(/^(.*?)-/, "");
|
|
1410
1375
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1376
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1377
|
+
function bt(e) {
|
|
1413
1378
|
var t = {};
|
|
1414
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1379
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1415
1380
|
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)), "";
|
|
1416
1381
|
}), t;
|
|
1417
1382
|
}
|
|
1418
|
-
function
|
|
1383
|
+
function tr(e) {
|
|
1419
1384
|
switch (e) {
|
|
1420
1385
|
case "sign-auto":
|
|
1421
1386
|
return {
|
|
@@ -1455,7 +1420,7 @@ function or(e) {
|
|
|
1455
1420
|
};
|
|
1456
1421
|
}
|
|
1457
1422
|
}
|
|
1458
|
-
function
|
|
1423
|
+
function Ln(e) {
|
|
1459
1424
|
var t;
|
|
1460
1425
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1461
1426
|
notation: "engineering"
|
|
@@ -1463,17 +1428,17 @@ function Un(e) {
|
|
|
1463
1428
|
notation: "scientific"
|
|
1464
1429
|
}, e = e.slice(1)), t) {
|
|
1465
1430
|
var r = e.slice(0, 2);
|
|
1466
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1431
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1467
1432
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1468
1433
|
t.minimumIntegerDigits = e.length;
|
|
1469
1434
|
}
|
|
1470
1435
|
return t;
|
|
1471
1436
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var t = {}, r =
|
|
1437
|
+
function gt(e) {
|
|
1438
|
+
var t = {}, r = tr(e);
|
|
1474
1439
|
return r || t;
|
|
1475
1440
|
}
|
|
1476
|
-
function
|
|
1441
|
+
function Mn(e) {
|
|
1477
1442
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1478
1443
|
var i = n[r];
|
|
1479
1444
|
switch (i.stem) {
|
|
@@ -1497,7 +1462,7 @@ function Dn(e) {
|
|
|
1497
1462
|
continue;
|
|
1498
1463
|
case "measure-unit":
|
|
1499
1464
|
case "unit":
|
|
1500
|
-
t.style = "unit", t.unit =
|
|
1465
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1501
1466
|
continue;
|
|
1502
1467
|
case "compact-short":
|
|
1503
1468
|
case "K":
|
|
@@ -1508,13 +1473,13 @@ function Dn(e) {
|
|
|
1508
1473
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1509
1474
|
continue;
|
|
1510
1475
|
case "scientific":
|
|
1511
|
-
t =
|
|
1512
|
-
return
|
|
1476
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1477
|
+
return v(v({}, h), gt(u));
|
|
1513
1478
|
}, {}));
|
|
1514
1479
|
continue;
|
|
1515
1480
|
case "engineering":
|
|
1516
|
-
t =
|
|
1517
|
-
return
|
|
1481
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1482
|
+
return v(v({}, h), gt(u));
|
|
1518
1483
|
}, {}));
|
|
1519
1484
|
continue;
|
|
1520
1485
|
case "notation-simple":
|
|
@@ -1559,41 +1524,41 @@ function Dn(e) {
|
|
|
1559
1524
|
case "integer-width":
|
|
1560
1525
|
if (i.options.length > 1)
|
|
1561
1526
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1562
|
-
i.options[0].replace(
|
|
1527
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1563
1528
|
if (u)
|
|
1564
1529
|
t.minimumIntegerDigits = l.length;
|
|
1565
1530
|
else {
|
|
1566
1531
|
if (c && f)
|
|
1567
1532
|
throw new Error("We currently do not support maximum integer digits");
|
|
1568
|
-
if (
|
|
1533
|
+
if (p)
|
|
1569
1534
|
throw new Error("We currently do not support exact integer digits");
|
|
1570
1535
|
}
|
|
1571
1536
|
return "";
|
|
1572
1537
|
});
|
|
1573
1538
|
continue;
|
|
1574
1539
|
}
|
|
1575
|
-
if (
|
|
1540
|
+
if (er.test(i.stem)) {
|
|
1576
1541
|
t.minimumIntegerDigits = i.stem.length;
|
|
1577
1542
|
continue;
|
|
1578
1543
|
}
|
|
1579
|
-
if (
|
|
1544
|
+
if (mt.test(i.stem)) {
|
|
1580
1545
|
if (i.options.length > 1)
|
|
1581
1546
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1582
|
-
i.stem.replace(
|
|
1583
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1547
|
+
i.stem.replace(mt, function(h, u, l, c, f, p) {
|
|
1548
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1584
1549
|
});
|
|
1585
1550
|
var o = i.options[0];
|
|
1586
|
-
o === "w" ? t =
|
|
1551
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), bt(o)));
|
|
1587
1552
|
continue;
|
|
1588
1553
|
}
|
|
1589
|
-
if (
|
|
1590
|
-
t =
|
|
1554
|
+
if (Kt.test(i.stem)) {
|
|
1555
|
+
t = v(v({}, t), bt(i.stem));
|
|
1591
1556
|
continue;
|
|
1592
1557
|
}
|
|
1593
|
-
var s =
|
|
1594
|
-
s && (t =
|
|
1595
|
-
var a =
|
|
1596
|
-
a && (t =
|
|
1558
|
+
var s = tr(i.stem);
|
|
1559
|
+
s && (t = v(v({}, t), s));
|
|
1560
|
+
var a = Ln(i.stem);
|
|
1561
|
+
a && (t = v(v({}, t), a));
|
|
1597
1562
|
}
|
|
1598
1563
|
return t;
|
|
1599
1564
|
}
|
|
@@ -3012,13 +2977,13 @@ var le = {
|
|
|
3012
2977
|
"h"
|
|
3013
2978
|
]
|
|
3014
2979
|
};
|
|
3015
|
-
function
|
|
2980
|
+
function $n(e, t) {
|
|
3016
2981
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3017
2982
|
var i = e.charAt(n);
|
|
3018
2983
|
if (i === "j") {
|
|
3019
2984
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3020
2985
|
o++, n++;
|
|
3021
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2986
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
|
3022
2987
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3023
2988
|
r += h;
|
|
3024
2989
|
for (; s-- > 0; )
|
|
@@ -3028,7 +2993,7 @@ function Gn(e, t) {
|
|
|
3028
2993
|
}
|
|
3029
2994
|
return r;
|
|
3030
2995
|
}
|
|
3031
|
-
function
|
|
2996
|
+
function Rn(e) {
|
|
3032
2997
|
var t = e.hourCycle;
|
|
3033
2998
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3034
2999
|
e.hourCycles && // @ts-ignore
|
|
@@ -3050,20 +3015,20 @@ function Fn(e) {
|
|
|
3050
3015
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3051
3016
|
return i[0];
|
|
3052
3017
|
}
|
|
3053
|
-
var
|
|
3018
|
+
var Be, Un = new RegExp("^".concat(Yt.source, "*")), Dn = new RegExp("".concat(Yt.source, "*$"));
|
|
3054
3019
|
function g(e, t) {
|
|
3055
3020
|
return { start: e, end: t };
|
|
3056
3021
|
}
|
|
3057
|
-
var
|
|
3022
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, kn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3058
3023
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3059
|
-
},
|
|
3024
|
+
}, Fe = !0;
|
|
3060
3025
|
try {
|
|
3061
|
-
var
|
|
3062
|
-
|
|
3026
|
+
var Zn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3027
|
+
Fe = ((Be = Zn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3063
3028
|
} catch (e) {
|
|
3064
|
-
|
|
3029
|
+
Fe = !1;
|
|
3065
3030
|
}
|
|
3066
|
-
var
|
|
3031
|
+
var yt = Gn ? (
|
|
3067
3032
|
// Native
|
|
3068
3033
|
function(t, r, n) {
|
|
3069
3034
|
return t.startsWith(r, n);
|
|
@@ -3073,7 +3038,7 @@ var Et = Vn ? (
|
|
|
3073
3038
|
function(t, r, n) {
|
|
3074
3039
|
return t.slice(n, n + r.length) === r;
|
|
3075
3040
|
}
|
|
3076
|
-
),
|
|
3041
|
+
), ke = Fn ? String.fromCodePoint : (
|
|
3077
3042
|
// IE11
|
|
3078
3043
|
function() {
|
|
3079
3044
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3085,9 +3050,9 @@ var Et = Vn ? (
|
|
|
3085
3050
|
}
|
|
3086
3051
|
return n;
|
|
3087
3052
|
}
|
|
3088
|
-
),
|
|
3053
|
+
), vt = (
|
|
3089
3054
|
// native
|
|
3090
|
-
|
|
3055
|
+
kn ? Object.fromEntries : (
|
|
3091
3056
|
// Ponyfill
|
|
3092
3057
|
function(t) {
|
|
3093
3058
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3097,7 +3062,7 @@ var Et = Vn ? (
|
|
|
3097
3062
|
return r;
|
|
3098
3063
|
}
|
|
3099
3064
|
)
|
|
3100
|
-
),
|
|
3065
|
+
), rr = jn ? (
|
|
3101
3066
|
// Native
|
|
3102
3067
|
function(t, r) {
|
|
3103
3068
|
return t.codePointAt(r);
|
|
@@ -3111,7 +3076,7 @@ var Et = Vn ? (
|
|
|
3111
3076
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3112
3077
|
}
|
|
3113
3078
|
}
|
|
3114
|
-
),
|
|
3079
|
+
), Qn = Vn ? (
|
|
3115
3080
|
// Native
|
|
3116
3081
|
function(t) {
|
|
3117
3082
|
return t.trimStart();
|
|
@@ -3119,9 +3084,9 @@ var Et = Vn ? (
|
|
|
3119
3084
|
) : (
|
|
3120
3085
|
// Ponyfill
|
|
3121
3086
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3087
|
+
return t.replace(Un, "");
|
|
3123
3088
|
}
|
|
3124
|
-
),
|
|
3089
|
+
), qn = Xn ? (
|
|
3125
3090
|
// Native
|
|
3126
3091
|
function(t) {
|
|
3127
3092
|
return t.trimEnd();
|
|
@@ -3129,32 +3094,32 @@ var Et = Vn ? (
|
|
|
3129
3094
|
) : (
|
|
3130
3095
|
// Ponyfill
|
|
3131
3096
|
function(t) {
|
|
3132
|
-
return t.replace(
|
|
3097
|
+
return t.replace(Dn, "");
|
|
3133
3098
|
}
|
|
3134
3099
|
);
|
|
3135
|
-
function
|
|
3100
|
+
function nr(e, t) {
|
|
3136
3101
|
return new RegExp(e, t);
|
|
3137
3102
|
}
|
|
3138
|
-
var
|
|
3139
|
-
if (
|
|
3140
|
-
var
|
|
3141
|
-
|
|
3103
|
+
var je;
|
|
3104
|
+
if (Fe) {
|
|
3105
|
+
var xt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3106
|
+
je = function(t, r) {
|
|
3142
3107
|
var n;
|
|
3143
|
-
|
|
3144
|
-
var i =
|
|
3108
|
+
xt.lastIndex = r;
|
|
3109
|
+
var i = xt.exec(t);
|
|
3145
3110
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3146
3111
|
};
|
|
3147
3112
|
} else
|
|
3148
|
-
|
|
3113
|
+
je = function(t, r) {
|
|
3149
3114
|
for (var n = []; ; ) {
|
|
3150
|
-
var i =
|
|
3151
|
-
if (i === void 0 ||
|
|
3115
|
+
var i = rr(t, r);
|
|
3116
|
+
if (i === void 0 || ir(i) || ei(i))
|
|
3152
3117
|
break;
|
|
3153
3118
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3154
3119
|
}
|
|
3155
|
-
return
|
|
3120
|
+
return ke.apply(void 0, n);
|
|
3156
3121
|
};
|
|
3157
|
-
var
|
|
3122
|
+
var Jn = (
|
|
3158
3123
|
/** @class */
|
|
3159
3124
|
function() {
|
|
3160
3125
|
function e(t, r) {
|
|
@@ -3178,14 +3143,14 @@ var ti = (
|
|
|
3178
3143
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3179
3144
|
var a = this.clonePosition();
|
|
3180
3145
|
this.bump(), i.push({
|
|
3181
|
-
type:
|
|
3146
|
+
type: x.pound,
|
|
3182
3147
|
location: g(a, this.clonePosition())
|
|
3183
3148
|
});
|
|
3184
3149
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3185
3150
|
if (n)
|
|
3186
3151
|
break;
|
|
3187
3152
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3188
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3153
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3189
3154
|
var s = this.parseTag(t, r);
|
|
3190
3155
|
if (s.err)
|
|
3191
3156
|
return s;
|
|
@@ -3206,7 +3171,7 @@ var ti = (
|
|
|
3206
3171
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3207
3172
|
return {
|
|
3208
3173
|
val: {
|
|
3209
|
-
type:
|
|
3174
|
+
type: x.literal,
|
|
3210
3175
|
value: "<".concat(i, "/>"),
|
|
3211
3176
|
location: g(n, this.clonePosition())
|
|
3212
3177
|
},
|
|
@@ -3218,12 +3183,12 @@ var ti = (
|
|
|
3218
3183
|
return o;
|
|
3219
3184
|
var s = o.val, a = this.clonePosition();
|
|
3220
3185
|
if (this.bumpIf("</")) {
|
|
3221
|
-
if (this.isEOF() || !
|
|
3186
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3222
3187
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3223
3188
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3224
3189
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3225
3190
|
val: {
|
|
3226
|
-
type:
|
|
3191
|
+
type: x.tag,
|
|
3227
3192
|
value: i,
|
|
3228
3193
|
children: s,
|
|
3229
3194
|
location: g(n, this.clonePosition())
|
|
@@ -3236,7 +3201,7 @@ var ti = (
|
|
|
3236
3201
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3237
3202
|
}, e.prototype.parseTagName = function() {
|
|
3238
3203
|
var t = this.offset();
|
|
3239
|
-
for (this.bump(); !this.isEOF() &&
|
|
3204
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3240
3205
|
this.bump();
|
|
3241
3206
|
return this.message.slice(t, this.offset());
|
|
3242
3207
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3260,12 +3225,12 @@ var ti = (
|
|
|
3260
3225
|
}
|
|
3261
3226
|
var h = g(n, this.clonePosition());
|
|
3262
3227
|
return {
|
|
3263
|
-
val: { type:
|
|
3228
|
+
val: { type: x.literal, value: i, location: h },
|
|
3264
3229
|
err: null
|
|
3265
3230
|
};
|
|
3266
3231
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3267
3232
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3268
|
-
!
|
|
3233
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3269
3234
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3270
3235
|
if (this.isEOF() || this.char() !== 39)
|
|
3271
3236
|
return null;
|
|
@@ -3299,12 +3264,12 @@ var ti = (
|
|
|
3299
3264
|
r.push(n);
|
|
3300
3265
|
this.bump();
|
|
3301
3266
|
}
|
|
3302
|
-
return
|
|
3267
|
+
return ke.apply(void 0, r);
|
|
3303
3268
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3304
3269
|
if (this.isEOF())
|
|
3305
3270
|
return null;
|
|
3306
3271
|
var n = this.char();
|
|
3307
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3272
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3308
3273
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3309
3274
|
var n = this.clonePosition();
|
|
3310
3275
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3320,7 +3285,7 @@ var ti = (
|
|
|
3320
3285
|
case 125:
|
|
3321
3286
|
return this.bump(), {
|
|
3322
3287
|
val: {
|
|
3323
|
-
type:
|
|
3288
|
+
type: x.argument,
|
|
3324
3289
|
// value does not include the opening and closing braces.
|
|
3325
3290
|
value: i,
|
|
3326
3291
|
location: g(n, this.clonePosition())
|
|
@@ -3333,7 +3298,7 @@ var ti = (
|
|
|
3333
3298
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3334
3299
|
}
|
|
3335
3300
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3336
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3301
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3337
3302
|
this.bumpTo(i);
|
|
3338
3303
|
var o = this.clonePosition(), s = g(t, o);
|
|
3339
3304
|
return { value: n, location: s };
|
|
@@ -3352,46 +3317,46 @@ var ti = (
|
|
|
3352
3317
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3353
3318
|
if (c.err)
|
|
3354
3319
|
return c;
|
|
3355
|
-
var f =
|
|
3320
|
+
var f = qn(c.val);
|
|
3356
3321
|
if (f.length === 0)
|
|
3357
3322
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3358
|
-
var
|
|
3359
|
-
u = { style: f, styleLocation:
|
|
3323
|
+
var p = g(l, this.clonePosition());
|
|
3324
|
+
u = { style: f, styleLocation: p };
|
|
3360
3325
|
}
|
|
3361
3326
|
var m = this.tryParseArgumentClose(i);
|
|
3362
3327
|
if (m.err)
|
|
3363
3328
|
return m;
|
|
3364
|
-
var
|
|
3365
|
-
if (u &&
|
|
3366
|
-
var S =
|
|
3329
|
+
var d = g(i, this.clonePosition());
|
|
3330
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3331
|
+
var S = Qn(u.style.slice(2));
|
|
3367
3332
|
if (a === "number") {
|
|
3368
3333
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3369
3334
|
return c.err ? c : {
|
|
3370
|
-
val: { type:
|
|
3335
|
+
val: { type: x.number, value: n, location: d, style: c.val },
|
|
3371
3336
|
err: null
|
|
3372
3337
|
};
|
|
3373
3338
|
} else {
|
|
3374
3339
|
if (S.length === 0)
|
|
3375
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3340
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3376
3341
|
var R = S;
|
|
3377
|
-
this.locale && (R =
|
|
3342
|
+
this.locale && (R = $n(S, this.locale));
|
|
3378
3343
|
var f = {
|
|
3379
|
-
type:
|
|
3344
|
+
type: Q.dateTime,
|
|
3380
3345
|
pattern: R,
|
|
3381
3346
|
location: u.styleLocation,
|
|
3382
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3383
|
-
}, L = a === "date" ?
|
|
3347
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(R) : {}
|
|
3348
|
+
}, L = a === "date" ? x.date : x.time;
|
|
3384
3349
|
return {
|
|
3385
|
-
val: { type: L, value: n, location:
|
|
3350
|
+
val: { type: L, value: n, location: d, style: f },
|
|
3386
3351
|
err: null
|
|
3387
3352
|
};
|
|
3388
3353
|
}
|
|
3389
3354
|
}
|
|
3390
3355
|
return {
|
|
3391
3356
|
val: {
|
|
3392
|
-
type: a === "number" ?
|
|
3357
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3393
3358
|
value: n,
|
|
3394
|
-
location:
|
|
3359
|
+
location: d,
|
|
3395
3360
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3396
3361
|
},
|
|
3397
3362
|
err: null
|
|
@@ -3400,9 +3365,9 @@ var ti = (
|
|
|
3400
3365
|
case "plural":
|
|
3401
3366
|
case "selectordinal":
|
|
3402
3367
|
case "select": {
|
|
3403
|
-
var
|
|
3368
|
+
var A = this.clonePosition();
|
|
3404
3369
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3405
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
|
3370
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, v({}, A)));
|
|
3406
3371
|
this.bumpSpace();
|
|
3407
3372
|
var U = this.parseIdentifierIfPossible(), B = 0;
|
|
3408
3373
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3423,17 +3388,17 @@ var ti = (
|
|
|
3423
3388
|
var y = g(i, this.clonePosition());
|
|
3424
3389
|
return a === "select" ? {
|
|
3425
3390
|
val: {
|
|
3426
|
-
type:
|
|
3391
|
+
type: x.select,
|
|
3427
3392
|
value: n,
|
|
3428
|
-
options:
|
|
3393
|
+
options: vt(G.val),
|
|
3429
3394
|
location: y
|
|
3430
3395
|
},
|
|
3431
3396
|
err: null
|
|
3432
3397
|
} : {
|
|
3433
3398
|
val: {
|
|
3434
|
-
type:
|
|
3399
|
+
type: x.plural,
|
|
3435
3400
|
value: n,
|
|
3436
|
-
options:
|
|
3401
|
+
options: vt(G.val),
|
|
3437
3402
|
offset: B,
|
|
3438
3403
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3439
3404
|
location: y
|
|
@@ -3484,16 +3449,16 @@ var ti = (
|
|
|
3484
3449
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3485
3450
|
var n = [];
|
|
3486
3451
|
try {
|
|
3487
|
-
n =
|
|
3452
|
+
n = On(t);
|
|
3488
3453
|
} catch (i) {
|
|
3489
3454
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3490
3455
|
}
|
|
3491
3456
|
return {
|
|
3492
3457
|
val: {
|
|
3493
|
-
type:
|
|
3458
|
+
type: Q.number,
|
|
3494
3459
|
tokens: n,
|
|
3495
3460
|
location: r,
|
|
3496
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3461
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3497
3462
|
},
|
|
3498
3463
|
err: null
|
|
3499
3464
|
};
|
|
@@ -3512,20 +3477,20 @@ var ti = (
|
|
|
3512
3477
|
if (h.has(u))
|
|
3513
3478
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3514
3479
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3515
|
-
var
|
|
3480
|
+
var p = this.clonePosition();
|
|
3516
3481
|
if (!this.bumpIf("{"))
|
|
3517
3482
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3518
3483
|
var m = this.parseMessage(t + 1, r, n);
|
|
3519
3484
|
if (m.err)
|
|
3520
3485
|
return m;
|
|
3521
|
-
var
|
|
3522
|
-
if (
|
|
3523
|
-
return
|
|
3486
|
+
var d = this.tryParseArgumentClose(p);
|
|
3487
|
+
if (d.err)
|
|
3488
|
+
return d;
|
|
3524
3489
|
a.push([
|
|
3525
3490
|
u,
|
|
3526
3491
|
{
|
|
3527
3492
|
value: m.val,
|
|
3528
|
-
location: g(
|
|
3493
|
+
location: g(p, this.clonePosition())
|
|
3529
3494
|
}
|
|
3530
3495
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3531
3496
|
}
|
|
@@ -3541,7 +3506,7 @@ var ti = (
|
|
|
3541
3506
|
break;
|
|
3542
3507
|
}
|
|
3543
3508
|
var h = g(i, this.clonePosition());
|
|
3544
|
-
return o ? (s *= n,
|
|
3509
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3545
3510
|
}, e.prototype.offset = function() {
|
|
3546
3511
|
return this.position.offset;
|
|
3547
3512
|
}, e.prototype.isEOF = function() {
|
|
@@ -3556,7 +3521,7 @@ var ti = (
|
|
|
3556
3521
|
var t = this.position.offset;
|
|
3557
3522
|
if (t >= this.message.length)
|
|
3558
3523
|
throw Error("out of bound");
|
|
3559
|
-
var r =
|
|
3524
|
+
var r = rr(this.message, t);
|
|
3560
3525
|
if (r === void 0)
|
|
3561
3526
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3562
3527
|
return r;
|
|
@@ -3575,7 +3540,7 @@ var ti = (
|
|
|
3575
3540
|
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);
|
|
3576
3541
|
}
|
|
3577
3542
|
}, e.prototype.bumpIf = function(t) {
|
|
3578
|
-
if (
|
|
3543
|
+
if (yt(this.message, t, this.offset())) {
|
|
3579
3544
|
for (var r = 0; r < t.length; r++)
|
|
3580
3545
|
this.bump();
|
|
3581
3546
|
return !0;
|
|
@@ -3597,7 +3562,7 @@ var ti = (
|
|
|
3597
3562
|
break;
|
|
3598
3563
|
}
|
|
3599
3564
|
}, e.prototype.bumpSpace = function() {
|
|
3600
|
-
for (; !this.isEOF() &&
|
|
3565
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3601
3566
|
this.bump();
|
|
3602
3567
|
}, e.prototype.peek = function() {
|
|
3603
3568
|
if (this.isEOF())
|
|
@@ -3607,47 +3572,47 @@ var ti = (
|
|
|
3607
3572
|
}, e;
|
|
3608
3573
|
}()
|
|
3609
3574
|
);
|
|
3610
|
-
function
|
|
3575
|
+
function Ve(e) {
|
|
3611
3576
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3612
3577
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3578
|
+
function Yn(e) {
|
|
3579
|
+
return Ve(e) || e === 47;
|
|
3615
3580
|
}
|
|
3616
|
-
function
|
|
3581
|
+
function Kn(e) {
|
|
3617
3582
|
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;
|
|
3618
3583
|
}
|
|
3619
|
-
function
|
|
3584
|
+
function ir(e) {
|
|
3620
3585
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3621
3586
|
}
|
|
3622
|
-
function
|
|
3587
|
+
function ei(e) {
|
|
3623
3588
|
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;
|
|
3624
3589
|
}
|
|
3625
|
-
function
|
|
3590
|
+
function Xe(e) {
|
|
3626
3591
|
e.forEach(function(t) {
|
|
3627
|
-
if (delete t.location,
|
|
3592
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3628
3593
|
for (var r in t.options)
|
|
3629
|
-
delete t.options[r].location,
|
|
3594
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3630
3595
|
else
|
|
3631
|
-
|
|
3596
|
+
Xt(t) && Jt(t.style) || (Wt(t) || zt(t)) && Ge(t.style) ? delete t.style.location : qt(t) && Xe(t.children);
|
|
3632
3597
|
});
|
|
3633
3598
|
}
|
|
3634
|
-
function
|
|
3635
|
-
t === void 0 && (t = {}), t =
|
|
3636
|
-
var r = new
|
|
3599
|
+
function ti(e, t) {
|
|
3600
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3601
|
+
var r = new Jn(e, t).parse();
|
|
3637
3602
|
if (r.err) {
|
|
3638
3603
|
var n = SyntaxError(b[r.err.kind]);
|
|
3639
3604
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3640
3605
|
}
|
|
3641
|
-
return t != null && t.captureLocation ||
|
|
3606
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3642
3607
|
}
|
|
3643
|
-
var
|
|
3608
|
+
var q;
|
|
3644
3609
|
(function(e) {
|
|
3645
3610
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3646
|
-
})(
|
|
3647
|
-
var
|
|
3611
|
+
})(q || (q = {}));
|
|
3612
|
+
var _e = (
|
|
3648
3613
|
/** @class */
|
|
3649
3614
|
function(e) {
|
|
3650
|
-
|
|
3615
|
+
C(t, e);
|
|
3651
3616
|
function t(r, n, i) {
|
|
3652
3617
|
var o = e.call(this, r) || this;
|
|
3653
3618
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3656,48 +3621,48 @@ var Se = (
|
|
|
3656
3621
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3657
3622
|
}, t;
|
|
3658
3623
|
}(Error)
|
|
3659
|
-
),
|
|
3624
|
+
), _t = (
|
|
3660
3625
|
/** @class */
|
|
3661
3626
|
function(e) {
|
|
3662
|
-
|
|
3627
|
+
C(t, e);
|
|
3663
3628
|
function t(r, n, i, o) {
|
|
3664
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3629
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3665
3630
|
}
|
|
3666
3631
|
return t;
|
|
3667
|
-
}(
|
|
3668
|
-
),
|
|
3632
|
+
}(_e)
|
|
3633
|
+
), ri = (
|
|
3669
3634
|
/** @class */
|
|
3670
3635
|
function(e) {
|
|
3671
|
-
|
|
3636
|
+
C(t, e);
|
|
3672
3637
|
function t(r, n, i) {
|
|
3673
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3638
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3674
3639
|
}
|
|
3675
3640
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3641
|
+
}(_e)
|
|
3642
|
+
), ni = (
|
|
3678
3643
|
/** @class */
|
|
3679
3644
|
function(e) {
|
|
3680
|
-
|
|
3645
|
+
C(t, e);
|
|
3681
3646
|
function t(r, n) {
|
|
3682
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3647
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3683
3648
|
}
|
|
3684
3649
|
return t;
|
|
3685
|
-
}(
|
|
3650
|
+
}(_e)
|
|
3686
3651
|
), E;
|
|
3687
3652
|
(function(e) {
|
|
3688
3653
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3689
3654
|
})(E || (E = {}));
|
|
3690
|
-
function
|
|
3655
|
+
function ii(e) {
|
|
3691
3656
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3692
3657
|
var n = t[t.length - 1];
|
|
3693
3658
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3694
3659
|
}, []);
|
|
3695
3660
|
}
|
|
3696
|
-
function
|
|
3661
|
+
function oi(e) {
|
|
3697
3662
|
return typeof e == "function";
|
|
3698
3663
|
}
|
|
3699
|
-
function
|
|
3700
|
-
if (e.length === 1 &&
|
|
3664
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3665
|
+
if (e.length === 1 && pt(e[0]))
|
|
3701
3666
|
return [
|
|
3702
3667
|
{
|
|
3703
3668
|
type: E.literal,
|
|
@@ -3706,14 +3671,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3706
3671
|
];
|
|
3707
3672
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3708
3673
|
var l = u[h];
|
|
3709
|
-
if (
|
|
3674
|
+
if (pt(l)) {
|
|
3710
3675
|
a.push({
|
|
3711
3676
|
type: E.literal,
|
|
3712
3677
|
value: l.value
|
|
3713
3678
|
});
|
|
3714
3679
|
continue;
|
|
3715
3680
|
}
|
|
3716
|
-
if (
|
|
3681
|
+
if (Pn(l)) {
|
|
3717
3682
|
typeof o == "number" && a.push({
|
|
3718
3683
|
type: E.literal,
|
|
3719
3684
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3722,44 +3687,44 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3722
3687
|
}
|
|
3723
3688
|
var c = l.value;
|
|
3724
3689
|
if (!(i && c in i))
|
|
3725
|
-
throw new
|
|
3690
|
+
throw new ni(c, s);
|
|
3726
3691
|
var f = i[c];
|
|
3727
|
-
if (
|
|
3692
|
+
if (An(l)) {
|
|
3728
3693
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3729
3694
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3730
3695
|
value: f
|
|
3731
3696
|
});
|
|
3732
3697
|
continue;
|
|
3733
3698
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var
|
|
3699
|
+
if (Wt(l)) {
|
|
3700
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3736
3701
|
a.push({
|
|
3737
3702
|
type: E.literal,
|
|
3738
|
-
value: r.getDateTimeFormat(t,
|
|
3703
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3739
3704
|
});
|
|
3740
3705
|
continue;
|
|
3741
3706
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var
|
|
3707
|
+
if (zt(l)) {
|
|
3708
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3744
3709
|
a.push({
|
|
3745
3710
|
type: E.literal,
|
|
3746
|
-
value: r.getDateTimeFormat(t,
|
|
3711
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3747
3712
|
});
|
|
3748
3713
|
continue;
|
|
3749
3714
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var
|
|
3752
|
-
|
|
3715
|
+
if (Xt(l)) {
|
|
3716
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3717
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3753
3718
|
type: E.literal,
|
|
3754
|
-
value: r.getNumberFormat(t,
|
|
3719
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3755
3720
|
});
|
|
3756
3721
|
continue;
|
|
3757
3722
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var m = l.children,
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3762
|
-
var R =
|
|
3723
|
+
if (qt(l)) {
|
|
3724
|
+
var m = l.children, d = l.value, S = i[d];
|
|
3725
|
+
if (!oi(S))
|
|
3726
|
+
throw new ri(d, "function", s);
|
|
3727
|
+
var R = pe(m, t, r, n, i, o), L = S(R.map(function(B) {
|
|
3763
3728
|
return B.value;
|
|
3764
3729
|
}));
|
|
3765
3730
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(B) {
|
|
@@ -3769,42 +3734,42 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3769
3734
|
};
|
|
3770
3735
|
}));
|
|
3771
3736
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3774
|
-
if (!
|
|
3775
|
-
throw new
|
|
3776
|
-
a.push.apply(a,
|
|
3737
|
+
if (Zt(l)) {
|
|
3738
|
+
var A = l.options[f] || l.options.other;
|
|
3739
|
+
if (!A)
|
|
3740
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3741
|
+
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3777
3742
|
continue;
|
|
3778
3743
|
}
|
|
3779
|
-
if (
|
|
3780
|
-
var
|
|
3781
|
-
if (!
|
|
3744
|
+
if (Qt(l)) {
|
|
3745
|
+
var A = l.options["=".concat(f)];
|
|
3746
|
+
if (!A) {
|
|
3782
3747
|
if (!Intl.PluralRules)
|
|
3783
|
-
throw new
|
|
3748
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3784
3749
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3785
|
-
`,
|
|
3750
|
+
`, q.MISSING_INTL_API, s);
|
|
3786
3751
|
var U = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3787
|
-
|
|
3752
|
+
A = l.options[U] || l.options.other;
|
|
3788
3753
|
}
|
|
3789
|
-
if (!
|
|
3790
|
-
throw new
|
|
3791
|
-
a.push.apply(a,
|
|
3754
|
+
if (!A)
|
|
3755
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3756
|
+
a.push.apply(a, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3792
3757
|
continue;
|
|
3793
3758
|
}
|
|
3794
3759
|
}
|
|
3795
|
-
return
|
|
3760
|
+
return ii(a);
|
|
3796
3761
|
}
|
|
3797
|
-
function
|
|
3798
|
-
return t ?
|
|
3799
|
-
return r[n] =
|
|
3762
|
+
function si(e, t) {
|
|
3763
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3764
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3800
3765
|
}, {})) : e;
|
|
3801
3766
|
}
|
|
3802
|
-
function
|
|
3767
|
+
function ai(e, t) {
|
|
3803
3768
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3804
|
-
return r[n] =
|
|
3805
|
-
},
|
|
3769
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3770
|
+
}, v({}, e)) : e;
|
|
3806
3771
|
}
|
|
3807
|
-
function
|
|
3772
|
+
function Ne(e) {
|
|
3808
3773
|
return {
|
|
3809
3774
|
create: function() {
|
|
3810
3775
|
return {
|
|
@@ -3818,39 +3783,39 @@ function Ce(e) {
|
|
|
3818
3783
|
}
|
|
3819
3784
|
};
|
|
3820
3785
|
}
|
|
3821
|
-
function
|
|
3786
|
+
function ui(e) {
|
|
3822
3787
|
return e === void 0 && (e = {
|
|
3823
3788
|
number: {},
|
|
3824
3789
|
dateTime: {},
|
|
3825
3790
|
pluralRules: {}
|
|
3826
3791
|
}), {
|
|
3827
|
-
getNumberFormat:
|
|
3792
|
+
getNumberFormat: Pe(function() {
|
|
3828
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3794
|
r[n] = arguments[n];
|
|
3830
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3831
3796
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3797
|
+
cache: Ne(e.number),
|
|
3798
|
+
strategy: we.variadic
|
|
3834
3799
|
}),
|
|
3835
|
-
getDateTimeFormat:
|
|
3800
|
+
getDateTimeFormat: Pe(function() {
|
|
3836
3801
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3837
3802
|
r[n] = arguments[n];
|
|
3838
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3803
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3839
3804
|
}, {
|
|
3840
|
-
cache:
|
|
3841
|
-
strategy:
|
|
3805
|
+
cache: Ne(e.dateTime),
|
|
3806
|
+
strategy: we.variadic
|
|
3842
3807
|
}),
|
|
3843
|
-
getPluralRules:
|
|
3808
|
+
getPluralRules: Pe(function() {
|
|
3844
3809
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3845
3810
|
r[n] = arguments[n];
|
|
3846
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3811
|
+
return new ((t = Intl.PluralRules).bind.apply(t, z([void 0], r, !1)))();
|
|
3847
3812
|
}, {
|
|
3848
|
-
cache:
|
|
3849
|
-
strategy:
|
|
3813
|
+
cache: Ne(e.pluralRules),
|
|
3814
|
+
strategy: we.variadic
|
|
3850
3815
|
})
|
|
3851
3816
|
};
|
|
3852
3817
|
}
|
|
3853
|
-
var
|
|
3818
|
+
var hi = (
|
|
3854
3819
|
/** @class */
|
|
3855
3820
|
function() {
|
|
3856
3821
|
function e(t, r, n, i) {
|
|
@@ -3869,7 +3834,7 @@ var pi = (
|
|
|
3869
3834
|
}, []);
|
|
3870
3835
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3871
3836
|
}, this.formatToParts = function(h) {
|
|
3872
|
-
return
|
|
3837
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3873
3838
|
}, this.resolvedOptions = function() {
|
|
3874
3839
|
var h;
|
|
3875
3840
|
return {
|
|
@@ -3882,13 +3847,13 @@ var pi = (
|
|
|
3882
3847
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3883
3848
|
var s = i || {};
|
|
3884
3849
|
s.formatters;
|
|
3885
|
-
var a =
|
|
3886
|
-
this.ast = e.__parse(t,
|
|
3850
|
+
var a = Gr(s, ["formatters"]);
|
|
3851
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3887
3852
|
} else
|
|
3888
3853
|
this.ast = t;
|
|
3889
3854
|
if (!Array.isArray(this.ast))
|
|
3890
3855
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3891
|
-
this.formats =
|
|
3856
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3892
3857
|
}
|
|
3893
3858
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3894
3859
|
get: function() {
|
|
@@ -3901,7 +3866,7 @@ var pi = (
|
|
|
3901
3866
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3902
3867
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3903
3868
|
}
|
|
3904
|
-
}, e.__parse =
|
|
3869
|
+
}, e.__parse = ti, e.formats = {
|
|
3905
3870
|
number: {
|
|
3906
3871
|
integer: {
|
|
3907
3872
|
maximumFractionDigits: 0
|
|
@@ -3962,7 +3927,7 @@ var pi = (
|
|
|
3962
3927
|
}, e;
|
|
3963
3928
|
}()
|
|
3964
3929
|
);
|
|
3965
|
-
function
|
|
3930
|
+
function li(e, t) {
|
|
3966
3931
|
if (t == null)
|
|
3967
3932
|
return;
|
|
3968
3933
|
if (t in e)
|
|
@@ -3983,92 +3948,92 @@ function di(e, t) {
|
|
|
3983
3948
|
n = void 0;
|
|
3984
3949
|
return n;
|
|
3985
3950
|
}
|
|
3986
|
-
const M = {},
|
|
3951
|
+
const M = {}, ci = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), or = (e, t) => {
|
|
3987
3952
|
if (t == null)
|
|
3988
3953
|
return;
|
|
3989
3954
|
if (t in M && e in M[t])
|
|
3990
3955
|
return M[t][e];
|
|
3991
|
-
const r =
|
|
3956
|
+
const r = Ee(t);
|
|
3992
3957
|
for (let n = 0; n < r.length; n++) {
|
|
3993
|
-
const i = r[n], o =
|
|
3958
|
+
const i = r[n], o = di(i, e);
|
|
3994
3959
|
if (o)
|
|
3995
|
-
return
|
|
3960
|
+
return ci(e, t, o);
|
|
3996
3961
|
}
|
|
3997
3962
|
};
|
|
3998
|
-
let
|
|
3963
|
+
let qe;
|
|
3999
3964
|
const se = xe({});
|
|
4000
|
-
function
|
|
4001
|
-
return
|
|
3965
|
+
function fi(e) {
|
|
3966
|
+
return qe[e] || null;
|
|
4002
3967
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return e in
|
|
3968
|
+
function sr(e) {
|
|
3969
|
+
return e in qe;
|
|
4005
3970
|
}
|
|
4006
|
-
function
|
|
4007
|
-
if (!
|
|
3971
|
+
function di(e, t) {
|
|
3972
|
+
if (!sr(e))
|
|
4008
3973
|
return null;
|
|
4009
|
-
const r =
|
|
4010
|
-
return
|
|
3974
|
+
const r = fi(e);
|
|
3975
|
+
return li(r, t);
|
|
4011
3976
|
}
|
|
4012
|
-
function
|
|
3977
|
+
function pi(e) {
|
|
4013
3978
|
if (e == null)
|
|
4014
3979
|
return;
|
|
4015
|
-
const t =
|
|
3980
|
+
const t = Ee(e);
|
|
4016
3981
|
for (let r = 0; r < t.length; r++) {
|
|
4017
3982
|
const n = t[r];
|
|
4018
|
-
if (
|
|
3983
|
+
if (sr(n))
|
|
4019
3984
|
return n;
|
|
4020
3985
|
}
|
|
4021
3986
|
}
|
|
4022
|
-
function
|
|
4023
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3987
|
+
function mi(e, ...t) {
|
|
3988
|
+
delete M[e], se.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
4024
3989
|
}
|
|
4025
|
-
|
|
3990
|
+
Y(
|
|
4026
3991
|
[se],
|
|
4027
3992
|
([e]) => Object.keys(e)
|
|
4028
3993
|
);
|
|
4029
|
-
se.subscribe((e) =>
|
|
3994
|
+
se.subscribe((e) => qe = e);
|
|
4030
3995
|
const me = {};
|
|
4031
|
-
function
|
|
3996
|
+
function bi(e, t) {
|
|
4032
3997
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4033
3998
|
}
|
|
4034
|
-
function
|
|
3999
|
+
function ar(e) {
|
|
4035
4000
|
return me[e];
|
|
4036
4001
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
4039
|
-
const r =
|
|
4002
|
+
function gi(e) {
|
|
4003
|
+
return Ee(e).map((t) => {
|
|
4004
|
+
const r = ar(t);
|
|
4040
4005
|
return [t, r ? [...r] : []];
|
|
4041
4006
|
}).filter(([, t]) => t.length > 0);
|
|
4042
4007
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return e == null ? !1 :
|
|
4008
|
+
function We(e) {
|
|
4009
|
+
return e == null ? !1 : Ee(e).some(
|
|
4045
4010
|
(t) => {
|
|
4046
4011
|
var r;
|
|
4047
|
-
return (r =
|
|
4012
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4048
4013
|
}
|
|
4049
4014
|
);
|
|
4050
4015
|
}
|
|
4051
|
-
function
|
|
4016
|
+
function yi(e, t) {
|
|
4052
4017
|
return Promise.all(
|
|
4053
|
-
t.map((n) => (
|
|
4054
|
-
).then((n) =>
|
|
4055
|
-
}
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4058
|
-
if (!
|
|
4059
|
-
return e in
|
|
4060
|
-
const t =
|
|
4061
|
-
return
|
|
4018
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4019
|
+
).then((n) => mi(e, ...n));
|
|
4020
|
+
}
|
|
4021
|
+
const ee = {};
|
|
4022
|
+
function ur(e) {
|
|
4023
|
+
if (!We(e))
|
|
4024
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4025
|
+
const t = gi(e);
|
|
4026
|
+
return ee[e] = Promise.all(
|
|
4062
4027
|
t.map(
|
|
4063
|
-
([r, n]) =>
|
|
4028
|
+
([r, n]) => yi(r, n)
|
|
4064
4029
|
)
|
|
4065
4030
|
).then(() => {
|
|
4066
|
-
if (
|
|
4067
|
-
return
|
|
4068
|
-
delete
|
|
4069
|
-
}),
|
|
4031
|
+
if (We(e))
|
|
4032
|
+
return ur(e);
|
|
4033
|
+
delete ee[e];
|
|
4034
|
+
}), ee[e];
|
|
4070
4035
|
}
|
|
4071
|
-
const
|
|
4036
|
+
const vi = {
|
|
4072
4037
|
number: {
|
|
4073
4038
|
scientific: { notation: "scientific" },
|
|
4074
4039
|
engineering: { notation: "engineering" },
|
|
@@ -4097,135 +4062,135 @@ const Si = {
|
|
|
4097
4062
|
timeZoneName: "short"
|
|
4098
4063
|
}
|
|
4099
4064
|
}
|
|
4100
|
-
},
|
|
4065
|
+
}, xi = {
|
|
4101
4066
|
fallbackLocale: null,
|
|
4102
4067
|
loadingDelay: 200,
|
|
4103
|
-
formats:
|
|
4068
|
+
formats: vi,
|
|
4104
4069
|
warnOnMissingMessages: !0,
|
|
4105
4070
|
handleMissingMessage: void 0,
|
|
4106
4071
|
ignoreTag: !0
|
|
4107
|
-
},
|
|
4108
|
-
function
|
|
4109
|
-
return
|
|
4110
|
-
}
|
|
4111
|
-
const
|
|
4112
|
-
var
|
|
4113
|
-
for (var r in t
|
|
4114
|
-
|
|
4115
|
-
if (
|
|
4116
|
-
for (var r of
|
|
4117
|
-
|
|
4072
|
+
}, _i = xi;
|
|
4073
|
+
function J() {
|
|
4074
|
+
return _i;
|
|
4075
|
+
}
|
|
4076
|
+
const Oe = xe(!1);
|
|
4077
|
+
var Ei = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4078
|
+
for (var r in t)
|
|
4079
|
+
Hi.call(t, r) && St(e, r, t[r]);
|
|
4080
|
+
if (Et)
|
|
4081
|
+
for (var r of Et(t))
|
|
4082
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4118
4083
|
return e;
|
|
4119
|
-
},
|
|
4120
|
-
let
|
|
4121
|
-
const
|
|
4122
|
-
function
|
|
4084
|
+
}, wi = (e, t) => Si(e, Ti(t));
|
|
4085
|
+
let ze;
|
|
4086
|
+
const ge = xe(null);
|
|
4087
|
+
function Tt(e) {
|
|
4123
4088
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4124
4089
|
}
|
|
4125
|
-
function
|
|
4126
|
-
const r =
|
|
4127
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4090
|
+
function Ee(e, t = J().fallbackLocale) {
|
|
4091
|
+
const r = Tt(e);
|
|
4092
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4128
4093
|
}
|
|
4129
4094
|
function D() {
|
|
4130
|
-
return
|
|
4095
|
+
return ze != null ? ze : void 0;
|
|
4131
4096
|
}
|
|
4132
|
-
|
|
4133
|
-
|
|
4097
|
+
ge.subscribe((e) => {
|
|
4098
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4134
4099
|
});
|
|
4135
|
-
const
|
|
4136
|
-
if (e &&
|
|
4137
|
-
const { loadingDelay: t } =
|
|
4100
|
+
const Bi = (e) => {
|
|
4101
|
+
if (e && pi(e) && We(e)) {
|
|
4102
|
+
const { loadingDelay: t } = J();
|
|
4138
4103
|
let r;
|
|
4139
4104
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4140
|
-
() =>
|
|
4105
|
+
() => Oe.set(!0),
|
|
4141
4106
|
t
|
|
4142
|
-
) :
|
|
4143
|
-
|
|
4107
|
+
) : Oe.set(!0), ur(e).then(() => {
|
|
4108
|
+
ge.set(e);
|
|
4144
4109
|
}).finally(() => {
|
|
4145
|
-
clearTimeout(r),
|
|
4110
|
+
clearTimeout(r), Oe.set(!1);
|
|
4146
4111
|
});
|
|
4147
4112
|
}
|
|
4148
|
-
return
|
|
4149
|
-
}, ae =
|
|
4150
|
-
set:
|
|
4151
|
-
}),
|
|
4113
|
+
return ge.set(e);
|
|
4114
|
+
}, ae = wi(Pi({}, ge), {
|
|
4115
|
+
set: Bi
|
|
4116
|
+
}), Se = (e) => {
|
|
4152
4117
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4153
4118
|
return (n) => {
|
|
4154
4119
|
const i = JSON.stringify(n);
|
|
4155
4120
|
return i in t ? t[i] : t[i] = e(n);
|
|
4156
4121
|
};
|
|
4157
4122
|
};
|
|
4158
|
-
var
|
|
4123
|
+
var Ni = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4159
4124
|
for (var r in t || (t = {}))
|
|
4160
|
-
|
|
4161
|
-
if (
|
|
4162
|
-
for (var r of
|
|
4163
|
-
|
|
4125
|
+
hr.call(t, r) && Ht(e, r, t[r]);
|
|
4126
|
+
if (ye)
|
|
4127
|
+
for (var r of ye(t))
|
|
4128
|
+
lr.call(t, r) && Ht(e, r, t[r]);
|
|
4164
4129
|
return e;
|
|
4165
|
-
},
|
|
4130
|
+
}, K = (e, t) => {
|
|
4166
4131
|
var r = {};
|
|
4167
4132
|
for (var n in e)
|
|
4168
|
-
|
|
4169
|
-
if (e != null &&
|
|
4170
|
-
for (var n of
|
|
4171
|
-
t.indexOf(n) < 0 &&
|
|
4133
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4134
|
+
if (e != null && ye)
|
|
4135
|
+
for (var n of ye(e))
|
|
4136
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4172
4137
|
return r;
|
|
4173
4138
|
};
|
|
4174
|
-
const
|
|
4175
|
-
const { formats: r } =
|
|
4139
|
+
const ie = (e, t) => {
|
|
4140
|
+
const { formats: r } = J();
|
|
4176
4141
|
if (e in r && t in r[e])
|
|
4177
4142
|
return r[e][t];
|
|
4178
4143
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4179
|
-
},
|
|
4144
|
+
}, Oi = Se(
|
|
4180
4145
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4146
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4182
4147
|
if (r == null)
|
|
4183
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4184
|
-
return n && (i =
|
|
4149
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4185
4150
|
}
|
|
4186
|
-
),
|
|
4151
|
+
), Ii = Se(
|
|
4187
4152
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4189
4154
|
if (r == null)
|
|
4190
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4191
|
-
return n ? i =
|
|
4156
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4192
4157
|
}
|
|
4193
|
-
),
|
|
4158
|
+
), Ci = Se(
|
|
4194
4159
|
(e) => {
|
|
4195
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4160
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4196
4161
|
if (r == null)
|
|
4197
4162
|
throw new Error(
|
|
4198
4163
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4199
4164
|
);
|
|
4200
|
-
return n ? i =
|
|
4165
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4166
|
}
|
|
4202
|
-
),
|
|
4167
|
+
), Li = (e = {}) => {
|
|
4203
4168
|
var t = e, {
|
|
4204
4169
|
locale: r = D()
|
|
4205
|
-
} = t, n =
|
|
4170
|
+
} = t, n = K(t, [
|
|
4206
4171
|
"locale"
|
|
4207
4172
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4173
|
+
return Oi(Je({ locale: r }, n));
|
|
4174
|
+
}, Mi = (e = {}) => {
|
|
4210
4175
|
var t = e, {
|
|
4211
4176
|
locale: r = D()
|
|
4212
|
-
} = t, n =
|
|
4177
|
+
} = t, n = K(t, [
|
|
4213
4178
|
"locale"
|
|
4214
4179
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4180
|
+
return Ii(Je({ locale: r }, n));
|
|
4181
|
+
}, $i = (e = {}) => {
|
|
4217
4182
|
var t = e, {
|
|
4218
4183
|
locale: r = D()
|
|
4219
|
-
} = t, n =
|
|
4184
|
+
} = t, n = K(t, [
|
|
4220
4185
|
"locale"
|
|
4221
4186
|
]);
|
|
4222
|
-
return
|
|
4223
|
-
},
|
|
4187
|
+
return Ci(Je({ locale: r }, n));
|
|
4188
|
+
}, Ri = Se(
|
|
4224
4189
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4225
|
-
(e, t = D()) => new
|
|
4226
|
-
ignoreTag:
|
|
4190
|
+
(e, t = D()) => new hi(e, t, J().formats, {
|
|
4191
|
+
ignoreTag: J().ignoreTag
|
|
4227
4192
|
})
|
|
4228
|
-
),
|
|
4193
|
+
), Ui = (e, t = {}) => {
|
|
4229
4194
|
var r, n, i, o;
|
|
4230
4195
|
let s = t;
|
|
4231
4196
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4238,9 +4203,9 @@ const ne = (e, t) => {
|
|
|
4238
4203
|
throw new Error(
|
|
4239
4204
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4240
4205
|
);
|
|
4241
|
-
let l =
|
|
4206
|
+
let l = or(e, h);
|
|
4242
4207
|
if (!l)
|
|
4243
|
-
l = (o = (i = (n = (r =
|
|
4208
|
+
l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4244
4209
|
else if (typeof l != "string")
|
|
4245
4210
|
return console.warn(
|
|
4246
4211
|
`[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.`
|
|
@@ -4249,7 +4214,7 @@ const ne = (e, t) => {
|
|
|
4249
4214
|
return l;
|
|
4250
4215
|
let c = l;
|
|
4251
4216
|
try {
|
|
4252
|
-
c =
|
|
4217
|
+
c = Ri(l, h).format(a);
|
|
4253
4218
|
} catch (f) {
|
|
4254
4219
|
f instanceof Error && console.warn(
|
|
4255
4220
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4257,21 +4222,21 @@ const ne = (e, t) => {
|
|
|
4257
4222
|
);
|
|
4258
4223
|
}
|
|
4259
4224
|
return c;
|
|
4260
|
-
},
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
window.emWidgets = { topic:
|
|
4267
|
-
const
|
|
4268
|
-
function
|
|
4225
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), Fi = (e, t) => Li(t).format(e), ki = (e, t = D()) => or(e, t);
|
|
4226
|
+
Y([ae, se], () => Ui);
|
|
4227
|
+
Y([ae], () => Di);
|
|
4228
|
+
Y([ae], () => Gi);
|
|
4229
|
+
Y([ae], () => Fi);
|
|
4230
|
+
Y([ae, se], () => ki);
|
|
4231
|
+
window.emWidgets = { topic: en };
|
|
4232
|
+
const At = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4233
|
+
function ji(e, t) {
|
|
4269
4234
|
if (e) {
|
|
4270
4235
|
const r = document.createElement("style");
|
|
4271
4236
|
r.innerHTML = t, e.appendChild(r);
|
|
4272
4237
|
}
|
|
4273
4238
|
}
|
|
4274
|
-
function
|
|
4239
|
+
function Vi(e, t) {
|
|
4275
4240
|
const r = new URL(t);
|
|
4276
4241
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4277
4242
|
const i = document.createElement("style");
|
|
@@ -4280,7 +4245,7 @@ function Zi(e, t) {
|
|
|
4280
4245
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4281
4246
|
});
|
|
4282
4247
|
}
|
|
4283
|
-
function
|
|
4248
|
+
function Xi(e, t, r) {
|
|
4284
4249
|
if (window.emMessageBus) {
|
|
4285
4250
|
const n = document.createElement("style");
|
|
4286
4251
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4288,31 +4253,31 @@ function Qi(e, t, r) {
|
|
|
4288
4253
|
});
|
|
4289
4254
|
}
|
|
4290
4255
|
}
|
|
4291
|
-
function
|
|
4292
|
-
|
|
4256
|
+
function Wi(e) {
|
|
4257
|
+
vr(e, "svelte-1yq4evv", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4293
4258
|
}
|
|
4294
|
-
function
|
|
4259
|
+
function Pt(e, t, r) {
|
|
4295
4260
|
const n = e.slice();
|
|
4296
4261
|
return n[24] = t[r], n;
|
|
4297
4262
|
}
|
|
4298
|
-
function
|
|
4263
|
+
function wt(e, t, r) {
|
|
4299
4264
|
const n = e.slice();
|
|
4300
4265
|
return n[21] = t[r], n;
|
|
4301
4266
|
}
|
|
4302
|
-
function
|
|
4267
|
+
function zi(e) {
|
|
4303
4268
|
let t, r = be(
|
|
4304
4269
|
/*notificationsData*/
|
|
4305
4270
|
e[1]
|
|
4306
4271
|
), n = [];
|
|
4307
4272
|
for (let i = 0; i < r.length; i += 1)
|
|
4308
|
-
n[i] =
|
|
4273
|
+
n[i] = Bt(Pt(e, r, i));
|
|
4309
4274
|
return {
|
|
4310
4275
|
c() {
|
|
4311
4276
|
t = T("div");
|
|
4312
4277
|
for (let i = 0; i < n.length; i += 1)
|
|
4313
4278
|
n[i].c();
|
|
4314
|
-
|
|
4315
|
-
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")),
|
|
4279
|
+
_(t, "class", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4280
|
+
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")), _(t, "part", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4316
4281
|
(e[3] ? "PlayerAccountNotificationsMobileContainer" : ""));
|
|
4317
4282
|
},
|
|
4318
4283
|
m(i, o) {
|
|
@@ -4329,8 +4294,8 @@ function Ji(e) {
|
|
|
4329
4294
|
);
|
|
4330
4295
|
let s;
|
|
4331
4296
|
for (s = 0; s < r.length; s += 1) {
|
|
4332
|
-
const a =
|
|
4333
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4297
|
+
const a = Pt(i, r, s);
|
|
4298
|
+
n[s] ? n[s].p(a, o) : (n[s] = Bt(a), n[s].c(), n[s].m(t, null));
|
|
4334
4299
|
}
|
|
4335
4300
|
for (; s < n.length; s += 1)
|
|
4336
4301
|
n[s].d(1);
|
|
@@ -4338,23 +4303,23 @@ function Ji(e) {
|
|
|
4338
4303
|
}
|
|
4339
4304
|
},
|
|
4340
4305
|
d(i) {
|
|
4341
|
-
i &&
|
|
4306
|
+
i && I(t), Ct(n, i);
|
|
4342
4307
|
}
|
|
4343
4308
|
};
|
|
4344
4309
|
}
|
|
4345
|
-
function
|
|
4310
|
+
function Zi(e) {
|
|
4346
4311
|
let t, r, n = be({ length: 3 }), i = [];
|
|
4347
4312
|
for (let o = 0; o < n.length; o += 1)
|
|
4348
|
-
i[o] =
|
|
4313
|
+
i[o] = Nt(wt(e, n, o));
|
|
4349
4314
|
return {
|
|
4350
4315
|
c() {
|
|
4351
4316
|
t = T("div"), r = T("div");
|
|
4352
4317
|
for (let o = 0; o < i.length; o += 1)
|
|
4353
4318
|
i[o].c();
|
|
4354
|
-
|
|
4319
|
+
_(r, "class", "skeletonWrapper"), _(t, "class", "skeletonContainer");
|
|
4355
4320
|
},
|
|
4356
4321
|
m(o, s) {
|
|
4357
|
-
$(o, t, s),
|
|
4322
|
+
$(o, t, s), w(t, r);
|
|
4358
4323
|
for (let a = 0; a < i.length; a += 1)
|
|
4359
4324
|
i[a] && i[a].m(r, null);
|
|
4360
4325
|
},
|
|
@@ -4364,8 +4329,8 @@ function Yi(e) {
|
|
|
4364
4329
|
n = be({ length: 3 });
|
|
4365
4330
|
let a;
|
|
4366
4331
|
for (a = 0; a < n.length; a += 1) {
|
|
4367
|
-
const h =
|
|
4368
|
-
i[a] ? i[a].p(h, s) : (i[a] =
|
|
4332
|
+
const h = wt(o, n, a);
|
|
4333
|
+
i[a] ? i[a].p(h, s) : (i[a] = Nt(h), i[a].c(), i[a].m(r, null));
|
|
4369
4334
|
}
|
|
4370
4335
|
for (; a < i.length; a += 1)
|
|
4371
4336
|
i[a].d(1);
|
|
@@ -4373,43 +4338,43 @@ function Yi(e) {
|
|
|
4373
4338
|
}
|
|
4374
4339
|
},
|
|
4375
4340
|
d(o) {
|
|
4376
|
-
o &&
|
|
4341
|
+
o && I(t), Ct(i, o);
|
|
4377
4342
|
}
|
|
4378
4343
|
};
|
|
4379
4344
|
}
|
|
4380
|
-
function
|
|
4345
|
+
function Bt(e) {
|
|
4381
4346
|
let t, r, n, i, o, s, a, h = (
|
|
4382
4347
|
/*notification*/
|
|
4383
4348
|
e[24].title + ""
|
|
4384
4349
|
), u, l, c, f = (
|
|
4385
4350
|
/*notification*/
|
|
4386
4351
|
e[24].description + ""
|
|
4387
|
-
),
|
|
4352
|
+
), p;
|
|
4388
4353
|
return {
|
|
4389
4354
|
c() {
|
|
4390
|
-
t = T("div"), r = T("div"), n = T("img"), s = ce(), a = T("p"), u =
|
|
4391
|
-
e[24].icon) ||
|
|
4392
|
-
e[24].title),
|
|
4355
|
+
t = T("div"), r = T("div"), n = T("img"), s = ce(), a = T("p"), u = Lt(h), l = ce(), c = T("p"), p = ce(), _(n, "class", "PlayerAccountNotificationIcon"), _(n, "width", "24px"), _(n, "height", "24px"), nt(n.src, i = /*notification*/
|
|
4356
|
+
e[24].icon) || _(n, "src", i), _(n, "alt", o = /*notification*/
|
|
4357
|
+
e[24].title), _(a, "class", "PlayerAccountNotificationTitle"), _(r, "class", "PlayerAccountNotificationBoxHeader"), _(c, "class", "PlayerAccountNotificationText"), _(t, "class", "PlayerAccountNotificationBox"), it(
|
|
4393
4358
|
t,
|
|
4394
4359
|
"background",
|
|
4395
4360
|
/*notification*/
|
|
4396
4361
|
e[24].backgroundColor
|
|
4397
4362
|
);
|
|
4398
4363
|
},
|
|
4399
|
-
m(m,
|
|
4400
|
-
$(m, t,
|
|
4364
|
+
m(m, d) {
|
|
4365
|
+
$(m, t, d), w(t, r), w(r, n), w(r, s), w(r, a), w(a, u), w(t, l), w(t, c), c.innerHTML = f, w(t, p);
|
|
4401
4366
|
},
|
|
4402
|
-
p(m,
|
|
4403
|
-
|
|
4404
|
-
2 && !
|
|
4405
|
-
m[24].icon) &&
|
|
4367
|
+
p(m, d) {
|
|
4368
|
+
d & /*notificationsData*/
|
|
4369
|
+
2 && !nt(n.src, i = /*notification*/
|
|
4370
|
+
m[24].icon) && _(n, "src", i), d & /*notificationsData*/
|
|
4406
4371
|
2 && o !== (o = /*notification*/
|
|
4407
|
-
m[24].title) &&
|
|
4372
|
+
m[24].title) && _(n, "alt", o), d & /*notificationsData*/
|
|
4408
4373
|
2 && h !== (h = /*notification*/
|
|
4409
|
-
m[24].title + "") &&
|
|
4374
|
+
m[24].title + "") && Sr(u, h), d & /*notificationsData*/
|
|
4410
4375
|
2 && f !== (f = /*notification*/
|
|
4411
|
-
m[24].description + "") && (c.innerHTML = f),
|
|
4412
|
-
2 &&
|
|
4376
|
+
m[24].description + "") && (c.innerHTML = f), d & /*notificationsData*/
|
|
4377
|
+
2 && it(
|
|
4413
4378
|
t,
|
|
4414
4379
|
"background",
|
|
4415
4380
|
/*notification*/
|
|
@@ -4417,11 +4382,11 @@ function Ct(e) {
|
|
|
4417
4382
|
);
|
|
4418
4383
|
},
|
|
4419
4384
|
d(m) {
|
|
4420
|
-
m &&
|
|
4385
|
+
m && I(t);
|
|
4421
4386
|
}
|
|
4422
4387
|
};
|
|
4423
4388
|
}
|
|
4424
|
-
function
|
|
4389
|
+
function Qi(e) {
|
|
4425
4390
|
let t;
|
|
4426
4391
|
return {
|
|
4427
4392
|
c() {
|
|
@@ -4438,11 +4403,11 @@ function Ki(e) {
|
|
|
4438
4403
|
},
|
|
4439
4404
|
p: H,
|
|
4440
4405
|
d(r) {
|
|
4441
|
-
r &&
|
|
4406
|
+
r && I(t);
|
|
4442
4407
|
}
|
|
4443
4408
|
};
|
|
4444
4409
|
}
|
|
4445
|
-
function
|
|
4410
|
+
function qi(e) {
|
|
4446
4411
|
let t;
|
|
4447
4412
|
return {
|
|
4448
4413
|
c() {
|
|
@@ -4453,35 +4418,35 @@ function eo(e) {
|
|
|
4453
4418
|
},
|
|
4454
4419
|
p: H,
|
|
4455
4420
|
d(r) {
|
|
4456
|
-
r &&
|
|
4421
|
+
r && I(t);
|
|
4457
4422
|
}
|
|
4458
4423
|
};
|
|
4459
4424
|
}
|
|
4460
|
-
function
|
|
4425
|
+
function Nt(e) {
|
|
4461
4426
|
let t, r;
|
|
4462
4427
|
function n(s, a) {
|
|
4463
4428
|
return (
|
|
4464
4429
|
/*isMobile*/
|
|
4465
|
-
s[3] ?
|
|
4430
|
+
s[3] ? Qi : qi
|
|
4466
4431
|
);
|
|
4467
4432
|
}
|
|
4468
4433
|
let o = n(e)(e);
|
|
4469
4434
|
return {
|
|
4470
4435
|
c() {
|
|
4471
|
-
t = T("div"), o.c(), r = ce(),
|
|
4436
|
+
t = T("div"), o.c(), r = ce(), _(t, "class", "skeletonNotification");
|
|
4472
4437
|
},
|
|
4473
4438
|
m(s, a) {
|
|
4474
|
-
$(s, t, a), o.m(t, null),
|
|
4439
|
+
$(s, t, a), o.m(t, null), w(t, r);
|
|
4475
4440
|
},
|
|
4476
4441
|
p(s, a) {
|
|
4477
4442
|
o.p(s, a);
|
|
4478
4443
|
},
|
|
4479
4444
|
d(s) {
|
|
4480
|
-
s &&
|
|
4445
|
+
s && I(t), o.d();
|
|
4481
4446
|
}
|
|
4482
4447
|
};
|
|
4483
4448
|
}
|
|
4484
|
-
function
|
|
4449
|
+
function Ji(e) {
|
|
4485
4450
|
let t;
|
|
4486
4451
|
function r(o, s) {
|
|
4487
4452
|
var a;
|
|
@@ -4489,12 +4454,12 @@ function to(e) {
|
|
|
4489
4454
|
/*skeletonLoading*/
|
|
4490
4455
|
o[2]
|
|
4491
4456
|
)
|
|
4492
|
-
return
|
|
4457
|
+
return Zi;
|
|
4493
4458
|
if (
|
|
4494
4459
|
/*notificationsData*/
|
|
4495
4460
|
(a = o[1]) != null && a.length
|
|
4496
4461
|
)
|
|
4497
|
-
return
|
|
4462
|
+
return zi;
|
|
4498
4463
|
}
|
|
4499
4464
|
let n = r(e), i = n && n(e);
|
|
4500
4465
|
return {
|
|
@@ -4510,23 +4475,23 @@ function to(e) {
|
|
|
4510
4475
|
i: H,
|
|
4511
4476
|
o: H,
|
|
4512
4477
|
d(o) {
|
|
4513
|
-
o &&
|
|
4478
|
+
o && I(t), i && i.d(), e[13](null);
|
|
4514
4479
|
}
|
|
4515
4480
|
};
|
|
4516
4481
|
}
|
|
4517
|
-
function
|
|
4518
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0,
|
|
4482
|
+
function Yi(e, t, r) {
|
|
4483
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, p = window.navigator.userAgent, m = At(p) !== "PC", d = [], S = [], R = A();
|
|
4519
4484
|
const L = window.matchMedia("(min-width: 768px)");
|
|
4520
|
-
function
|
|
4521
|
-
const y =
|
|
4485
|
+
function A() {
|
|
4486
|
+
const y = At(p);
|
|
4522
4487
|
if (y)
|
|
4523
4488
|
return y === "PC" ? "dk" : "mtWeb";
|
|
4524
4489
|
}
|
|
4525
4490
|
const U = () => {
|
|
4526
4491
|
const y = new URL(`${i}/${n}/support-information`);
|
|
4527
4492
|
y.searchParams.append("env", o), y.searchParams.append("userRoles", s), y.searchParams.append("device", R), fetch(y.href).then((F) => F.json()).then((F) => {
|
|
4528
|
-
F.length && (r(1,
|
|
4529
|
-
S.length && (
|
|
4493
|
+
F.length && (r(1, d = F[0].children), d == null || d.forEach((cr) => {
|
|
4494
|
+
S.length && (cr.backgroundColor = S[0], S.shift());
|
|
4530
4495
|
}));
|
|
4531
4496
|
}).catch((F) => {
|
|
4532
4497
|
console.error(F);
|
|
@@ -4541,10 +4506,10 @@ function ro(e, t, r) {
|
|
|
4541
4506
|
}, B = () => {
|
|
4542
4507
|
a.replace(" ", ""), S = a.split(",");
|
|
4543
4508
|
};
|
|
4544
|
-
|
|
4509
|
+
Ar(() => () => {
|
|
4545
4510
|
});
|
|
4546
4511
|
function G(y) {
|
|
4547
|
-
|
|
4512
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4548
4513
|
c = y, r(0, c);
|
|
4549
4514
|
});
|
|
4550
4515
|
}
|
|
@@ -4553,14 +4518,14 @@ function ro(e, t, r) {
|
|
|
4553
4518
|
}, e.$$.update = () => {
|
|
4554
4519
|
e.$$.dirty & /*customnotif*/
|
|
4555
4520
|
512 && a && B(), e.$$.dirty & /*notificationsData*/
|
|
4556
|
-
2 &&
|
|
4521
|
+
2 && d && B(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4557
4522
|
480 && s && i && o && n && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4558
|
-
1025 && h && c &&
|
|
4559
|
-
2049 && u && c &&
|
|
4560
|
-
4097 && l && c &&
|
|
4523
|
+
1025 && h && c && ji(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4524
|
+
2049 && u && c && Vi(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4525
|
+
4097 && l && c && Xi(c, `${l}.Style`);
|
|
4561
4526
|
}, [
|
|
4562
4527
|
c,
|
|
4563
|
-
|
|
4528
|
+
d,
|
|
4564
4529
|
f,
|
|
4565
4530
|
m,
|
|
4566
4531
|
L,
|
|
@@ -4575,14 +4540,14 @@ function ro(e, t, r) {
|
|
|
4575
4540
|
G
|
|
4576
4541
|
];
|
|
4577
4542
|
}
|
|
4578
|
-
class
|
|
4543
|
+
class Ki extends Ur {
|
|
4579
4544
|
constructor(t) {
|
|
4580
|
-
super(),
|
|
4545
|
+
super(), $r(
|
|
4581
4546
|
this,
|
|
4582
4547
|
t,
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4548
|
+
Yi,
|
|
4549
|
+
Ji,
|
|
4550
|
+
It,
|
|
4586
4551
|
{
|
|
4587
4552
|
lang: 5,
|
|
4588
4553
|
cmsendpoint: 6,
|
|
@@ -4593,59 +4558,59 @@ class no extends jr {
|
|
|
4593
4558
|
clientstylingurl: 11,
|
|
4594
4559
|
mbsource: 12
|
|
4595
4560
|
},
|
|
4596
|
-
|
|
4561
|
+
Wi
|
|
4597
4562
|
);
|
|
4598
4563
|
}
|
|
4599
4564
|
get lang() {
|
|
4600
4565
|
return this.$$.ctx[5];
|
|
4601
4566
|
}
|
|
4602
4567
|
set lang(t) {
|
|
4603
|
-
this.$$set({ lang: t }),
|
|
4568
|
+
this.$$set({ lang: t }), N();
|
|
4604
4569
|
}
|
|
4605
4570
|
get cmsendpoint() {
|
|
4606
4571
|
return this.$$.ctx[6];
|
|
4607
4572
|
}
|
|
4608
4573
|
set cmsendpoint(t) {
|
|
4609
|
-
this.$$set({ cmsendpoint: t }),
|
|
4574
|
+
this.$$set({ cmsendpoint: t }), N();
|
|
4610
4575
|
}
|
|
4611
4576
|
get env() {
|
|
4612
4577
|
return this.$$.ctx[7];
|
|
4613
4578
|
}
|
|
4614
4579
|
set env(t) {
|
|
4615
|
-
this.$$set({ env: t }),
|
|
4580
|
+
this.$$set({ env: t }), N();
|
|
4616
4581
|
}
|
|
4617
4582
|
get userroles() {
|
|
4618
4583
|
return this.$$.ctx[8];
|
|
4619
4584
|
}
|
|
4620
4585
|
set userroles(t) {
|
|
4621
|
-
this.$$set({ userroles: t }),
|
|
4586
|
+
this.$$set({ userroles: t }), N();
|
|
4622
4587
|
}
|
|
4623
4588
|
get customnotif() {
|
|
4624
4589
|
return this.$$.ctx[9];
|
|
4625
4590
|
}
|
|
4626
4591
|
set customnotif(t) {
|
|
4627
|
-
this.$$set({ customnotif: t }),
|
|
4592
|
+
this.$$set({ customnotif: t }), N();
|
|
4628
4593
|
}
|
|
4629
4594
|
get clientstyling() {
|
|
4630
4595
|
return this.$$.ctx[10];
|
|
4631
4596
|
}
|
|
4632
4597
|
set clientstyling(t) {
|
|
4633
|
-
this.$$set({ clientstyling: t }),
|
|
4598
|
+
this.$$set({ clientstyling: t }), N();
|
|
4634
4599
|
}
|
|
4635
4600
|
get clientstylingurl() {
|
|
4636
4601
|
return this.$$.ctx[11];
|
|
4637
4602
|
}
|
|
4638
4603
|
set clientstylingurl(t) {
|
|
4639
|
-
this.$$set({ clientstylingurl: t }),
|
|
4604
|
+
this.$$set({ clientstylingurl: t }), N();
|
|
4640
4605
|
}
|
|
4641
4606
|
get mbsource() {
|
|
4642
4607
|
return this.$$.ctx[12];
|
|
4643
4608
|
}
|
|
4644
4609
|
set mbsource(t) {
|
|
4645
|
-
this.$$set({ mbsource: t }),
|
|
4610
|
+
this.$$set({ mbsource: t }), N();
|
|
4646
4611
|
}
|
|
4647
4612
|
}
|
|
4648
|
-
|
|
4613
|
+
Rr(Ki, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4649
4614
|
export {
|
|
4650
|
-
|
|
4615
|
+
Ki as default
|
|
4651
4616
|
};
|