@everymatrix/player-panic-button 1.77.26 → 1.77.28
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/PlayerPanicButton-B3N7_pDz.cjs +18 -0
- package/components/{PlayerPanicButton-CERsF5Pr.js → PlayerPanicButton-BRhdV4bT.js} +864 -843
- package/components/{PlayerPanicButton-hR3U-jzg.js → PlayerPanicButton-Z0b_0GW0.js} +744 -723
- package/es2015/player-panic-button.cjs +1 -1
- package/es2015/player-panic-button.js +1 -1
- package/esnext/player-panic-button.js +1 -1
- package/package.json +1 -1
- package/components/PlayerPanicButton-DQ4mYjLE.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, cr = Object.defineProperties;
|
|
2
|
+
var fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Se = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
pr.call(t, r) && Se(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
mr.call(t, r) && Se(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => cr(e, fr(t));
|
|
13
|
+
var w = (e, t, r) => (Se(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -29,25 +29,25 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function At(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function te(e) {
|
|
39
|
+
e.forEach(At);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function It(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function At(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function br(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(It(t, r));
|
|
61
61
|
}
|
|
62
62
|
function ue(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function gr(e, t, r) {
|
|
66
|
+
const n = yr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = J("style");
|
|
69
|
+
i.id = t, i.textContent = r, vr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function yr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,39 +79,39 @@ function gr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function vr(e, t) {
|
|
83
83
|
return ue(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Nt(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Je(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function J(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Er(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
101
|
function C(e, t, r) {
|
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _r(e) {
|
|
105
105
|
return Array.from(e.childNodes);
|
|
106
106
|
}
|
|
107
107
|
function xr(e, t) {
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ot(e, t, r) {
|
|
112
112
|
e.classList.toggle(t, !!r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Sr(e) {
|
|
115
115
|
const t = {};
|
|
116
116
|
return e.childNodes.forEach(
|
|
117
117
|
/** @param {Element} node */
|
|
@@ -120,87 +120,87 @@ function _r(e) {
|
|
|
120
120
|
}
|
|
121
121
|
), t;
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
|
|
123
|
+
let q;
|
|
124
|
+
function Y(e) {
|
|
125
|
+
q = e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (!
|
|
127
|
+
function wr() {
|
|
128
|
+
if (!q)
|
|
129
129
|
throw new Error("Function called outside component initialization");
|
|
130
|
-
return
|
|
130
|
+
return q;
|
|
131
131
|
}
|
|
132
132
|
function Tr(e) {
|
|
133
|
-
|
|
133
|
+
wr().$$.on_mount.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
135
|
+
const G = [], pe = [];
|
|
136
|
+
let F = [];
|
|
137
|
+
const st = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
138
|
+
let Ne = !1;
|
|
139
|
+
function Hr() {
|
|
140
|
+
Ne || (Ne = !0, Br.then(A));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Le(e) {
|
|
143
|
+
F.push(e);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const we = /* @__PURE__ */ new Set();
|
|
146
146
|
let U = 0;
|
|
147
|
-
function
|
|
147
|
+
function A() {
|
|
148
148
|
if (U !== 0)
|
|
149
149
|
return;
|
|
150
|
-
const e =
|
|
150
|
+
const e = q;
|
|
151
151
|
do {
|
|
152
152
|
try {
|
|
153
|
-
for (; U <
|
|
154
|
-
const t =
|
|
155
|
-
U++,
|
|
153
|
+
for (; U < G.length; ) {
|
|
154
|
+
const t = G[U];
|
|
155
|
+
U++, Y(t), Pr(t.$$);
|
|
156
156
|
}
|
|
157
157
|
} catch (t) {
|
|
158
|
-
throw
|
|
158
|
+
throw G.length = 0, U = 0, t;
|
|
159
159
|
}
|
|
160
|
-
for (
|
|
160
|
+
for (Y(null), G.length = 0, U = 0; pe.length; )
|
|
161
161
|
pe.pop()();
|
|
162
|
-
for (let t = 0; t <
|
|
163
|
-
const r =
|
|
164
|
-
|
|
162
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
163
|
+
const r = F[t];
|
|
164
|
+
we.has(r) || (we.add(r), r());
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
} while (
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
F.length = 0;
|
|
167
|
+
} while (G.length);
|
|
168
|
+
for (; st.length; )
|
|
169
|
+
st.pop()();
|
|
170
|
+
Ne = !1, we.clear(), Y(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Pr(e) {
|
|
173
173
|
if (e.fragment !== null) {
|
|
174
|
-
e.update(),
|
|
174
|
+
e.update(), te(e.before_update);
|
|
175
175
|
const t = e.dirty;
|
|
176
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
176
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ar(e) {
|
|
180
180
|
const t = [], r = [];
|
|
181
|
-
|
|
181
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
183
|
+
const Or = /* @__PURE__ */ new Set();
|
|
184
|
+
function Ir(e, t) {
|
|
185
|
+
e && e.i && (Or.delete(e), e.i(t));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Nr(e, t, r) {
|
|
188
188
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
|
-
n && n.m(t, r),
|
|
190
|
-
const o = e.$$.on_mount.map(
|
|
191
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
192
|
-
}), i.forEach(
|
|
189
|
+
n && n.m(t, r), Le(() => {
|
|
190
|
+
const o = e.$$.on_mount.map(At).filter(Qe);
|
|
191
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
192
|
+
}), i.forEach(Le);
|
|
193
193
|
}
|
|
194
194
|
function Lr(e, t) {
|
|
195
195
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
196
|
+
r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (
|
|
198
|
+
function Cr(e, t) {
|
|
199
|
+
e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const u =
|
|
203
|
-
|
|
201
|
+
function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
202
|
+
const u = q;
|
|
203
|
+
Y(e);
|
|
204
204
|
const h = e.$$ = {
|
|
205
205
|
fragment: null,
|
|
206
206
|
ctx: [],
|
|
@@ -208,7 +208,7 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
props: o,
|
|
209
209
|
update: B,
|
|
210
210
|
not_equal: i,
|
|
211
|
-
bound:
|
|
211
|
+
bound: it(),
|
|
212
212
|
// lifecycle
|
|
213
213
|
on_mount: [],
|
|
214
214
|
on_destroy: [],
|
|
@@ -217,7 +217,7 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
after_update: [],
|
|
218
218
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
219
219
|
// everything else
|
|
220
|
-
callbacks:
|
|
220
|
+
callbacks: it(),
|
|
221
221
|
dirty: a,
|
|
222
222
|
skip_bound: !1,
|
|
223
223
|
root: t.target || u.$$.root
|
|
@@ -225,40 +225,40 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
225
225
|
s && s(h.root);
|
|
226
226
|
let l = !1;
|
|
227
227
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
228
|
-
const
|
|
229
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] =
|
|
230
|
-
}) : [], h.update(), l = !0,
|
|
228
|
+
const g = m.length ? m[0] : f;
|
|
229
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Cr(e, c)), f;
|
|
230
|
+
}) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
|
-
const c =
|
|
233
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
232
|
+
const c = _r(t.target);
|
|
233
|
+
h.fragment && h.fragment.l(c), c.forEach(Je);
|
|
234
234
|
} else
|
|
235
235
|
h.fragment && h.fragment.c();
|
|
236
|
-
t.intro &&
|
|
236
|
+
t.intro && Ir(e.$$.fragment), Nr(e, t.target, t.anchor), A();
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
Y(u);
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
240
|
+
let Lt;
|
|
241
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
242
242
|
constructor(t, r, n) {
|
|
243
243
|
super();
|
|
244
244
|
/** The Svelte component constructor */
|
|
245
|
-
|
|
245
|
+
w(this, "$$ctor");
|
|
246
246
|
/** Slots */
|
|
247
|
-
|
|
247
|
+
w(this, "$$s");
|
|
248
248
|
/** The Svelte component instance */
|
|
249
|
-
|
|
249
|
+
w(this, "$$c");
|
|
250
250
|
/** Whether or not the custom element is connected */
|
|
251
|
-
|
|
251
|
+
w(this, "$$cn", !1);
|
|
252
252
|
/** Component props data */
|
|
253
|
-
|
|
253
|
+
w(this, "$$d", {});
|
|
254
254
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
255
|
-
|
|
255
|
+
w(this, "$$r", !1);
|
|
256
256
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
257
|
-
|
|
257
|
+
w(this, "$$p_d", {});
|
|
258
258
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
259
|
-
|
|
259
|
+
w(this, "$$l", {});
|
|
260
260
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
261
|
-
|
|
261
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
262
262
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
263
263
|
}
|
|
264
264
|
addEventListener(t, r, n) {
|
|
@@ -275,31 +275,31 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
connectedCallback() {
|
|
278
|
-
return
|
|
278
|
+
return nt(this, null, function* () {
|
|
279
279
|
if (this.$$cn = !0, !this.$$c) {
|
|
280
280
|
let t = function(o) {
|
|
281
281
|
return () => {
|
|
282
282
|
let s;
|
|
283
283
|
return {
|
|
284
284
|
c: function() {
|
|
285
|
-
s =
|
|
285
|
+
s = J("slot"), o !== "default" && C(s, "name", o);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
288
|
* @param {HTMLElement} target
|
|
289
289
|
* @param {HTMLElement} [anchor]
|
|
290
290
|
*/
|
|
291
291
|
m: function(h, l) {
|
|
292
|
-
|
|
292
|
+
Nt(h, s, l);
|
|
293
293
|
},
|
|
294
294
|
d: function(h) {
|
|
295
|
-
h &&
|
|
295
|
+
h && Je(s);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
};
|
|
300
300
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
301
301
|
return;
|
|
302
|
-
const r = {}, n =
|
|
302
|
+
const r = {}, n = Sr(this);
|
|
303
303
|
for (const o of this.$$s)
|
|
304
304
|
o in n && (r[o] = [t(o)]);
|
|
305
305
|
for (const o of this.attributes) {
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
310
310
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
311
311
|
this.$$c = new this.$$ctor({
|
|
312
312
|
target: this.shadowRoot || this,
|
|
313
|
-
props:
|
|
313
|
+
props: rt(tt({}, this.$$d), {
|
|
314
314
|
$$slots: r,
|
|
315
315
|
$$scope: {
|
|
316
316
|
ctx: []
|
|
@@ -388,8 +388,8 @@ function he(e, t, r, n) {
|
|
|
388
388
|
return t;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
let s = class extends
|
|
391
|
+
function $r(e, t, r, n, i, o) {
|
|
392
|
+
let s = class extends Lt {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, r, i), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -419,7 +419,7 @@ function Mr(e, t, r, n, i, o) {
|
|
|
419
419
|
}), e.element = /** @type {any} */
|
|
420
420
|
s, s;
|
|
421
421
|
}
|
|
422
|
-
class
|
|
422
|
+
class Rr {
|
|
423
423
|
constructor() {
|
|
424
424
|
/**
|
|
425
425
|
* ### PRIVATE API
|
|
@@ -428,7 +428,7 @@ class $r {
|
|
|
428
428
|
*
|
|
429
429
|
* @type {any}
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
w(this, "$$");
|
|
432
432
|
/**
|
|
433
433
|
* ### PRIVATE API
|
|
434
434
|
*
|
|
@@ -436,7 +436,7 @@ class $r {
|
|
|
436
436
|
*
|
|
437
437
|
* @type {any}
|
|
438
438
|
*/
|
|
439
|
-
|
|
439
|
+
w(this, "$$set");
|
|
440
440
|
}
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
@@ -449,7 +449,7 @@ class $r {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!Qe(r))
|
|
453
453
|
return B;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,18 +462,18 @@ class $r {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
470
|
-
function
|
|
468
|
+
const Ur = "4";
|
|
469
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
470
|
+
function Dr(e, t) {
|
|
471
471
|
if (e) {
|
|
472
472
|
const r = document.createElement("style");
|
|
473
473
|
r.innerHTML = t, e.appendChild(r);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Gr(e, t) {
|
|
477
477
|
const r = new URL(t);
|
|
478
478
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
479
479
|
const i = document.createElement("style");
|
|
@@ -504,43 +504,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
504
504
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
505
505
|
PERFORMANCE OF THIS SOFTWARE.
|
|
506
506
|
***************************************************************************** */
|
|
507
|
-
var
|
|
508
|
-
return
|
|
507
|
+
var Ce = function(e, t) {
|
|
508
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
509
509
|
r.__proto__ = n;
|
|
510
510
|
} || function(r, n) {
|
|
511
511
|
for (var i in n)
|
|
512
512
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
513
|
-
},
|
|
513
|
+
}, Ce(e, t);
|
|
514
514
|
};
|
|
515
|
-
function
|
|
515
|
+
function re(e, t) {
|
|
516
516
|
if (typeof t != "function" && t !== null)
|
|
517
517
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
518
|
-
|
|
518
|
+
Ce(e, t);
|
|
519
519
|
function r() {
|
|
520
520
|
this.constructor = e;
|
|
521
521
|
}
|
|
522
522
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
523
523
|
}
|
|
524
|
-
|
|
525
|
-
return b = Object.assign || function(t) {
|
|
526
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
527
|
-
r = arguments[n];
|
|
528
|
-
for (var o in r)
|
|
529
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
530
|
-
}
|
|
531
|
-
return t;
|
|
532
|
-
}, b.apply(this, arguments);
|
|
533
|
-
};
|
|
534
|
-
function Gr(e, t) {
|
|
535
|
-
var r = {};
|
|
536
|
-
for (var n in e)
|
|
537
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
538
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
539
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
540
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
541
|
-
return r;
|
|
542
|
-
}
|
|
543
|
-
function Ne(e) {
|
|
524
|
+
function Me(e) {
|
|
544
525
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
545
526
|
if (r)
|
|
546
527
|
return r.call(e);
|
|
@@ -552,7 +533,7 @@ function Ne(e) {
|
|
|
552
533
|
};
|
|
553
534
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
554
535
|
}
|
|
555
|
-
function
|
|
536
|
+
function $e(e, t) {
|
|
556
537
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
557
538
|
if (!r)
|
|
558
539
|
return e;
|
|
@@ -572,22 +553,22 @@ function Ce(e, t) {
|
|
|
572
553
|
}
|
|
573
554
|
return o;
|
|
574
555
|
}
|
|
575
|
-
function
|
|
576
|
-
if (
|
|
556
|
+
function Re(e, t, r) {
|
|
557
|
+
if (arguments.length === 2)
|
|
577
558
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
578
559
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
579
560
|
return e.concat(o || t);
|
|
580
561
|
}
|
|
581
|
-
function
|
|
562
|
+
function O(e) {
|
|
582
563
|
return typeof e == "function";
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function Ct(e) {
|
|
585
566
|
var t = function(n) {
|
|
586
567
|
Error.call(n), n.stack = new Error().stack;
|
|
587
568
|
}, r = e(t);
|
|
588
569
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
589
570
|
}
|
|
590
|
-
var
|
|
571
|
+
var Te = Ct(function(e) {
|
|
591
572
|
return function(r) {
|
|
592
573
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
593
574
|
` + r.map(function(n, i) {
|
|
@@ -596,13 +577,13 @@ var Se = Lt(function(e) {
|
|
|
596
577
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
597
578
|
};
|
|
598
579
|
});
|
|
599
|
-
function
|
|
580
|
+
function Ue(e, t) {
|
|
600
581
|
if (e) {
|
|
601
582
|
var r = e.indexOf(t);
|
|
602
583
|
0 <= r && e.splice(r, 1);
|
|
603
584
|
}
|
|
604
585
|
}
|
|
605
|
-
var
|
|
586
|
+
var ge = function() {
|
|
606
587
|
function e(t) {
|
|
607
588
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
608
589
|
}
|
|
@@ -614,12 +595,12 @@ var be = function() {
|
|
|
614
595
|
if (s)
|
|
615
596
|
if (this._parentage = null, Array.isArray(s))
|
|
616
597
|
try {
|
|
617
|
-
for (var a =
|
|
598
|
+
for (var a = Me(s), u = a.next(); !u.done; u = a.next()) {
|
|
618
599
|
var h = u.value;
|
|
619
600
|
h.remove(this);
|
|
620
601
|
}
|
|
621
|
-
} catch (
|
|
622
|
-
t = { error:
|
|
602
|
+
} catch (b) {
|
|
603
|
+
t = { error: b };
|
|
623
604
|
} finally {
|
|
624
605
|
try {
|
|
625
606
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -631,26 +612,26 @@ var be = function() {
|
|
|
631
612
|
else
|
|
632
613
|
s.remove(this);
|
|
633
614
|
var l = this.initialTeardown;
|
|
634
|
-
if (
|
|
615
|
+
if (O(l))
|
|
635
616
|
try {
|
|
636
617
|
l();
|
|
637
|
-
} catch (
|
|
638
|
-
o =
|
|
618
|
+
} catch (b) {
|
|
619
|
+
o = b instanceof Te ? b.errors : [b];
|
|
639
620
|
}
|
|
640
621
|
var c = this._finalizers;
|
|
641
622
|
if (c) {
|
|
642
623
|
this._finalizers = null;
|
|
643
624
|
try {
|
|
644
|
-
for (var f =
|
|
645
|
-
var
|
|
625
|
+
for (var f = Me(c), m = f.next(); !m.done; m = f.next()) {
|
|
626
|
+
var g = m.value;
|
|
646
627
|
try {
|
|
647
|
-
|
|
648
|
-
} catch (
|
|
649
|
-
o = o != null ? o : [],
|
|
628
|
+
at(g);
|
|
629
|
+
} catch (b) {
|
|
630
|
+
o = o != null ? o : [], b instanceof Te ? o = Re(Re([], $e(o)), $e(b.errors)) : o.push(b);
|
|
650
631
|
}
|
|
651
632
|
}
|
|
652
|
-
} catch (
|
|
653
|
-
n = { error:
|
|
633
|
+
} catch (b) {
|
|
634
|
+
n = { error: b };
|
|
654
635
|
} finally {
|
|
655
636
|
try {
|
|
656
637
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -661,13 +642,13 @@ var be = function() {
|
|
|
661
642
|
}
|
|
662
643
|
}
|
|
663
644
|
if (o)
|
|
664
|
-
throw new
|
|
645
|
+
throw new Te(o);
|
|
665
646
|
}
|
|
666
647
|
}, e.prototype.add = function(t) {
|
|
667
648
|
var r;
|
|
668
649
|
if (t && t !== this)
|
|
669
650
|
if (this.closed)
|
|
670
|
-
|
|
651
|
+
at(t);
|
|
671
652
|
else {
|
|
672
653
|
if (t instanceof e) {
|
|
673
654
|
if (t.closed || t._hasParent(this))
|
|
@@ -684,56 +665,52 @@ var be = function() {
|
|
|
684
665
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
685
666
|
}, e.prototype._removeParent = function(t) {
|
|
686
667
|
var r = this._parentage;
|
|
687
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
668
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
688
669
|
}, e.prototype.remove = function(t) {
|
|
689
670
|
var r = this._finalizers;
|
|
690
|
-
r &&
|
|
671
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
691
672
|
}, e.EMPTY = function() {
|
|
692
673
|
var t = new e();
|
|
693
674
|
return t.closed = !0, t;
|
|
694
675
|
}(), e;
|
|
695
|
-
}(),
|
|
696
|
-
function
|
|
697
|
-
return e instanceof
|
|
698
|
-
}
|
|
699
|
-
function
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
var
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
Promise: void 0,
|
|
706
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
707
|
-
useDeprecatedNextContext: !1
|
|
708
|
-
}, jr = {
|
|
676
|
+
}(), Mt = ge.EMPTY;
|
|
677
|
+
function $t(e) {
|
|
678
|
+
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
679
|
+
}
|
|
680
|
+
function at(e) {
|
|
681
|
+
O(e) ? e() : e.unsubscribe();
|
|
682
|
+
}
|
|
683
|
+
var jr = {
|
|
684
|
+
Promise: void 0
|
|
685
|
+
}, kr = {
|
|
709
686
|
setTimeout: function(e, t) {
|
|
710
687
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
711
688
|
r[n - 2] = arguments[n];
|
|
712
|
-
return setTimeout.apply(void 0,
|
|
689
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
713
690
|
},
|
|
714
691
|
clearTimeout: function(e) {
|
|
715
692
|
return clearTimeout(e);
|
|
716
693
|
},
|
|
717
694
|
delegate: void 0
|
|
718
695
|
};
|
|
719
|
-
function
|
|
720
|
-
|
|
696
|
+
function Vr(e) {
|
|
697
|
+
kr.setTimeout(function() {
|
|
721
698
|
throw e;
|
|
722
699
|
});
|
|
723
700
|
}
|
|
724
|
-
function
|
|
701
|
+
function ut() {
|
|
725
702
|
}
|
|
726
703
|
function le(e) {
|
|
727
704
|
e();
|
|
728
705
|
}
|
|
729
|
-
var
|
|
730
|
-
|
|
706
|
+
var Rt = function(e) {
|
|
707
|
+
re(t, e);
|
|
731
708
|
function t(r) {
|
|
732
709
|
var n = e.call(this) || this;
|
|
733
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
710
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
|
|
734
711
|
}
|
|
735
712
|
return t.create = function(r, n, i) {
|
|
736
|
-
return new
|
|
713
|
+
return new De(r, n, i);
|
|
737
714
|
}, t.prototype.next = function(r) {
|
|
738
715
|
this.isStopped || this._next(r);
|
|
739
716
|
}, t.prototype.error = function(r) {
|
|
@@ -757,11 +734,7 @@ var $t = function(e) {
|
|
|
757
734
|
this.unsubscribe();
|
|
758
735
|
}
|
|
759
736
|
}, t;
|
|
760
|
-
}(
|
|
761
|
-
function Te(e, t) {
|
|
762
|
-
return Vr.call(e, t);
|
|
763
|
-
}
|
|
764
|
-
var zr = function() {
|
|
737
|
+
}(ge), Xr = function() {
|
|
765
738
|
function e(t) {
|
|
766
739
|
this.partialObserver = t;
|
|
767
740
|
}
|
|
@@ -792,41 +765,29 @@ var zr = function() {
|
|
|
792
765
|
oe(r);
|
|
793
766
|
}
|
|
794
767
|
}, e;
|
|
795
|
-
}(),
|
|
796
|
-
|
|
768
|
+
}(), De = function(e) {
|
|
769
|
+
re(t, e);
|
|
797
770
|
function t(r, n, i) {
|
|
798
771
|
var o = e.call(this) || this, s;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
};
|
|
805
|
-
else {
|
|
806
|
-
var a;
|
|
807
|
-
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
808
|
-
return o.unsubscribe();
|
|
809
|
-
}, s = {
|
|
810
|
-
next: r.next && Te(r.next, a),
|
|
811
|
-
error: r.error && Te(r.error, a),
|
|
812
|
-
complete: r.complete && Te(r.complete, a)
|
|
813
|
-
}) : s = r;
|
|
814
|
-
}
|
|
815
|
-
return o.destination = new zr(s), o;
|
|
772
|
+
return O(r) || !r ? s = {
|
|
773
|
+
next: r != null ? r : void 0,
|
|
774
|
+
error: n != null ? n : void 0,
|
|
775
|
+
complete: i != null ? i : void 0
|
|
776
|
+
} : s = r, o.destination = new Xr(s), o;
|
|
816
777
|
}
|
|
817
778
|
return t;
|
|
818
|
-
}(
|
|
779
|
+
}(Rt);
|
|
819
780
|
function oe(e) {
|
|
820
|
-
|
|
781
|
+
Vr(e);
|
|
821
782
|
}
|
|
822
|
-
function
|
|
783
|
+
function zr(e) {
|
|
823
784
|
throw e;
|
|
824
785
|
}
|
|
825
786
|
var Wr = {
|
|
826
787
|
closed: !0,
|
|
827
|
-
next:
|
|
828
|
-
error:
|
|
829
|
-
complete:
|
|
788
|
+
next: ut,
|
|
789
|
+
error: zr,
|
|
790
|
+
complete: ut
|
|
830
791
|
}, Zr = function() {
|
|
831
792
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
832
793
|
}();
|
|
@@ -840,7 +801,7 @@ function Jr(e) {
|
|
|
840
801
|
}, r);
|
|
841
802
|
};
|
|
842
803
|
}
|
|
843
|
-
var
|
|
804
|
+
var ht = function() {
|
|
844
805
|
function e(t) {
|
|
845
806
|
t && (this._subscribe = t);
|
|
846
807
|
}
|
|
@@ -848,7 +809,7 @@ var at = function() {
|
|
|
848
809
|
var r = new e();
|
|
849
810
|
return r.source = this, r.operator = t, r;
|
|
850
811
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
851
|
-
var i = this, o = qr(t) ? t : new
|
|
812
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
852
813
|
return le(function() {
|
|
853
814
|
var s = i, a = s.operator, u = s.source;
|
|
854
815
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -861,8 +822,8 @@ var at = function() {
|
|
|
861
822
|
}
|
|
862
823
|
}, e.prototype.forEach = function(t, r) {
|
|
863
824
|
var n = this;
|
|
864
|
-
return r =
|
|
865
|
-
var s = new
|
|
825
|
+
return r = lt(r), new r(function(i, o) {
|
|
826
|
+
var s = new De({
|
|
866
827
|
next: function(a) {
|
|
867
828
|
try {
|
|
868
829
|
t(a);
|
|
@@ -886,7 +847,7 @@ var at = function() {
|
|
|
886
847
|
return Jr(t)(this);
|
|
887
848
|
}, e.prototype.toPromise = function(t) {
|
|
888
849
|
var r = this;
|
|
889
|
-
return t =
|
|
850
|
+
return t = lt(t), new t(function(n, i) {
|
|
890
851
|
var o;
|
|
891
852
|
r.subscribe(function(s) {
|
|
892
853
|
return o = s;
|
|
@@ -900,28 +861,28 @@ var at = function() {
|
|
|
900
861
|
return new e(t);
|
|
901
862
|
}, e;
|
|
902
863
|
}();
|
|
903
|
-
function
|
|
864
|
+
function lt(e) {
|
|
904
865
|
var t;
|
|
905
|
-
return (t = e != null ? e :
|
|
866
|
+
return (t = e != null ? e : jr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
906
867
|
}
|
|
907
868
|
function Yr(e) {
|
|
908
|
-
return e &&
|
|
869
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
909
870
|
}
|
|
910
871
|
function qr(e) {
|
|
911
|
-
return e && e instanceof
|
|
872
|
+
return e && e instanceof Rt || Yr(e) && $t(e);
|
|
912
873
|
}
|
|
913
|
-
var Kr =
|
|
874
|
+
var Kr = Ct(function(e) {
|
|
914
875
|
return function() {
|
|
915
876
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
916
877
|
};
|
|
917
|
-
}),
|
|
918
|
-
|
|
878
|
+
}), Ut = function(e) {
|
|
879
|
+
re(t, e);
|
|
919
880
|
function t() {
|
|
920
881
|
var r = e.call(this) || this;
|
|
921
882
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
922
883
|
}
|
|
923
884
|
return t.prototype.lift = function(r) {
|
|
924
|
-
var n = new
|
|
885
|
+
var n = new ct(this, this);
|
|
925
886
|
return n.operator = r, n;
|
|
926
887
|
}, t.prototype._throwIfClosed = function() {
|
|
927
888
|
if (this.closed)
|
|
@@ -933,7 +894,7 @@ var Kr = Lt(function(e) {
|
|
|
933
894
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
934
895
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
935
896
|
try {
|
|
936
|
-
for (var s =
|
|
897
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
937
898
|
var u = a.value;
|
|
938
899
|
u.next(r);
|
|
939
900
|
}
|
|
@@ -982,20 +943,20 @@ var Kr = Lt(function(e) {
|
|
|
982
943
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
983
944
|
}, t.prototype._innerSubscribe = function(r) {
|
|
984
945
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
985
|
-
return o || s ?
|
|
986
|
-
n.currentObservers = null,
|
|
946
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
947
|
+
n.currentObservers = null, Ue(a, r);
|
|
987
948
|
}));
|
|
988
949
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
989
950
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
990
951
|
i ? r.error(o) : s && r.complete();
|
|
991
952
|
}, t.prototype.asObservable = function() {
|
|
992
|
-
var r = new
|
|
953
|
+
var r = new ht();
|
|
993
954
|
return r.source = this, r;
|
|
994
955
|
}, t.create = function(r, n) {
|
|
995
|
-
return new
|
|
956
|
+
return new ct(r, n);
|
|
996
957
|
}, t;
|
|
997
|
-
}(
|
|
998
|
-
|
|
958
|
+
}(ht), ct = function(e) {
|
|
959
|
+
re(t, e);
|
|
999
960
|
function t(r, n) {
|
|
1000
961
|
var i = e.call(this) || this;
|
|
1001
962
|
return i.destination = r, i.source = n, i;
|
|
@@ -1011,17 +972,17 @@ var Kr = Lt(function(e) {
|
|
|
1011
972
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1012
973
|
}, t.prototype._subscribe = function(r) {
|
|
1013
974
|
var n, i;
|
|
1014
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
975
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
1015
976
|
}, t;
|
|
1016
|
-
}(
|
|
977
|
+
}(Ut), Dt = {
|
|
1017
978
|
now: function() {
|
|
1018
|
-
return (
|
|
979
|
+
return (Dt.delegate || Date).now();
|
|
1019
980
|
},
|
|
1020
981
|
delegate: void 0
|
|
1021
982
|
}, en = function(e) {
|
|
1022
|
-
|
|
983
|
+
re(t, e);
|
|
1023
984
|
function t(r, n, i) {
|
|
1024
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
985
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
1025
986
|
var o = e.call(this) || this;
|
|
1026
987
|
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;
|
|
1027
988
|
}
|
|
@@ -1041,24 +1002,24 @@ var Kr = Lt(function(e) {
|
|
|
1041
1002
|
h && o.splice(0, h + 1);
|
|
1042
1003
|
}
|
|
1043
1004
|
}, t;
|
|
1044
|
-
}(
|
|
1045
|
-
const
|
|
1046
|
-
if (
|
|
1005
|
+
}(Ut);
|
|
1006
|
+
const ft = [], pt = {}, tn = (e, t = 0) => {
|
|
1007
|
+
if (ft.indexOf(e) == -1) {
|
|
1047
1008
|
const r = new en(t);
|
|
1048
|
-
|
|
1009
|
+
pt[e] = r, ft.push(e);
|
|
1049
1010
|
}
|
|
1050
|
-
return
|
|
1011
|
+
return pt[e];
|
|
1051
1012
|
}, D = [];
|
|
1052
1013
|
function rn(e, t) {
|
|
1053
1014
|
return {
|
|
1054
|
-
subscribe:
|
|
1015
|
+
subscribe: ye(e, t).subscribe
|
|
1055
1016
|
};
|
|
1056
1017
|
}
|
|
1057
|
-
function
|
|
1018
|
+
function ye(e, t = B) {
|
|
1058
1019
|
let r;
|
|
1059
1020
|
const n = /* @__PURE__ */ new Set();
|
|
1060
1021
|
function i(a) {
|
|
1061
|
-
if (
|
|
1022
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1062
1023
|
const u = !D.length;
|
|
1063
1024
|
for (const h of n)
|
|
1064
1025
|
h[1](), D.push(h, e);
|
|
@@ -1080,7 +1041,7 @@ function ge(e, t = B) {
|
|
|
1080
1041
|
}
|
|
1081
1042
|
return { set: i, update: o, subscribe: s };
|
|
1082
1043
|
}
|
|
1083
|
-
function
|
|
1044
|
+
function z(e, t, r) {
|
|
1084
1045
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1085
1046
|
if (!i.every(Boolean))
|
|
1086
1047
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1093,21 +1054,21 @@ function W(e, t, r) {
|
|
|
1093
1054
|
if (l)
|
|
1094
1055
|
return;
|
|
1095
1056
|
c();
|
|
1096
|
-
const
|
|
1097
|
-
o ? s(
|
|
1057
|
+
const g = t(n ? h[0] : h, s, a);
|
|
1058
|
+
o ? s(g) : c = Qe(g) ? g : B;
|
|
1098
1059
|
}, m = i.map(
|
|
1099
|
-
(
|
|
1100
|
-
|
|
1101
|
-
(
|
|
1102
|
-
h[
|
|
1060
|
+
(g, b) => It(
|
|
1061
|
+
g,
|
|
1062
|
+
(T) => {
|
|
1063
|
+
h[b] = T, l &= ~(1 << b), u && f();
|
|
1103
1064
|
},
|
|
1104
1065
|
() => {
|
|
1105
|
-
l |= 1 <<
|
|
1066
|
+
l |= 1 << b;
|
|
1106
1067
|
}
|
|
1107
1068
|
)
|
|
1108
1069
|
);
|
|
1109
1070
|
return u = !0, f(), function() {
|
|
1110
|
-
|
|
1071
|
+
te(m), c(), u = !1;
|
|
1111
1072
|
};
|
|
1112
1073
|
});
|
|
1113
1074
|
}
|
|
@@ -1131,29 +1092,29 @@ function ln(e) {
|
|
|
1131
1092
|
function cn(e) {
|
|
1132
1093
|
return Array.isArray(e) ? [] : {};
|
|
1133
1094
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1095
|
+
function K(e, t) {
|
|
1096
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(cn(e), e, t) : e;
|
|
1136
1097
|
}
|
|
1137
1098
|
function fn(e, t, r) {
|
|
1138
1099
|
return e.concat(t).map(function(n) {
|
|
1139
|
-
return
|
|
1100
|
+
return K(n, r);
|
|
1140
1101
|
});
|
|
1141
1102
|
}
|
|
1142
1103
|
function pn(e, t) {
|
|
1143
1104
|
if (!t.customMerge)
|
|
1144
|
-
return
|
|
1105
|
+
return j;
|
|
1145
1106
|
var r = t.customMerge(e);
|
|
1146
|
-
return typeof r == "function" ? r :
|
|
1107
|
+
return typeof r == "function" ? r : j;
|
|
1147
1108
|
}
|
|
1148
1109
|
function mn(e) {
|
|
1149
1110
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1150
1111
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1151
1112
|
}) : [];
|
|
1152
1113
|
}
|
|
1153
|
-
function
|
|
1114
|
+
function mt(e) {
|
|
1154
1115
|
return Object.keys(e).concat(mn(e));
|
|
1155
1116
|
}
|
|
1156
|
-
function
|
|
1117
|
+
function Gt(e, t) {
|
|
1157
1118
|
try {
|
|
1158
1119
|
return t in e;
|
|
1159
1120
|
} catch (r) {
|
|
@@ -1161,129 +1122,179 @@ function Dt(e, t) {
|
|
|
1161
1122
|
}
|
|
1162
1123
|
}
|
|
1163
1124
|
function dn(e, t) {
|
|
1164
|
-
return
|
|
1125
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1165
1126
|
}
|
|
1166
1127
|
function bn(e, t, r) {
|
|
1167
1128
|
var n = {};
|
|
1168
|
-
return r.isMergeableObject(e) &&
|
|
1169
|
-
n[i] =
|
|
1170
|
-
}),
|
|
1171
|
-
dn(e, i) || (
|
|
1129
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1130
|
+
n[i] = K(e[i], r);
|
|
1131
|
+
}), mt(t).forEach(function(i) {
|
|
1132
|
+
dn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1172
1133
|
}), n;
|
|
1173
1134
|
}
|
|
1174
|
-
function
|
|
1175
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified =
|
|
1135
|
+
function j(e, t, r) {
|
|
1136
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = K;
|
|
1176
1137
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1177
|
-
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) :
|
|
1138
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : K(t, r);
|
|
1178
1139
|
}
|
|
1179
|
-
|
|
1140
|
+
j.all = function(t, r) {
|
|
1180
1141
|
if (!Array.isArray(t))
|
|
1181
1142
|
throw new Error("first argument should be an array");
|
|
1182
1143
|
return t.reduce(function(n, i) {
|
|
1183
|
-
return
|
|
1144
|
+
return j(n, i, r);
|
|
1184
1145
|
}, {});
|
|
1185
1146
|
};
|
|
1186
|
-
var gn =
|
|
1147
|
+
var gn = j, yn = gn;
|
|
1187
1148
|
const vn = /* @__PURE__ */ nn(yn);
|
|
1188
|
-
function
|
|
1189
|
-
|
|
1149
|
+
var Ge = function(e, t) {
|
|
1150
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1151
|
+
r.__proto__ = n;
|
|
1152
|
+
} || function(r, n) {
|
|
1153
|
+
for (var i in n)
|
|
1154
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1155
|
+
}, Ge(e, t);
|
|
1156
|
+
};
|
|
1157
|
+
function ve(e, t) {
|
|
1158
|
+
if (typeof t != "function" && t !== null)
|
|
1159
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1160
|
+
Ge(e, t);
|
|
1161
|
+
function r() {
|
|
1162
|
+
this.constructor = e;
|
|
1163
|
+
}
|
|
1164
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1165
|
+
}
|
|
1166
|
+
var P = function() {
|
|
1167
|
+
return P = Object.assign || function(t) {
|
|
1168
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1169
|
+
r = arguments[n];
|
|
1170
|
+
for (var o in r)
|
|
1171
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1172
|
+
}
|
|
1173
|
+
return t;
|
|
1174
|
+
}, P.apply(this, arguments);
|
|
1175
|
+
};
|
|
1176
|
+
function En(e, t) {
|
|
1177
|
+
var r = {};
|
|
1178
|
+
for (var n in e)
|
|
1179
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1180
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1181
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1182
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1183
|
+
return r;
|
|
1184
|
+
}
|
|
1185
|
+
function Be(e, t, r) {
|
|
1186
|
+
if (r || arguments.length === 2)
|
|
1187
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1188
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1189
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1190
|
+
}
|
|
1191
|
+
function He(e, t) {
|
|
1192
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1190
1193
|
return i(e, {
|
|
1191
1194
|
cache: r,
|
|
1192
1195
|
serializer: n
|
|
1193
1196
|
});
|
|
1194
1197
|
}
|
|
1195
|
-
function
|
|
1198
|
+
function _n(e) {
|
|
1196
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1197
1200
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var i =
|
|
1201
|
+
function xn(e, t, r, n) {
|
|
1202
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1200
1203
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1201
1204
|
}
|
|
1202
|
-
function
|
|
1205
|
+
function Ft(e, t, r) {
|
|
1203
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1204
1207
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1205
1208
|
}
|
|
1206
|
-
function
|
|
1209
|
+
function jt(e, t, r, n, i) {
|
|
1207
1210
|
return r.bind(t, e, n, i);
|
|
1208
1211
|
}
|
|
1209
|
-
function xn(e, t) {
|
|
1210
|
-
var r = e.length === 1 ? Ft : Gt;
|
|
1211
|
-
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1212
|
-
}
|
|
1213
|
-
function _n(e, t) {
|
|
1214
|
-
return We(e, this, Gt, t.cache.create(), t.serializer);
|
|
1215
|
-
}
|
|
1216
1212
|
function Sn(e, t) {
|
|
1217
|
-
|
|
1213
|
+
var r = e.length === 1 ? xn : Ft;
|
|
1214
|
+
return jt(e, this, r, t.cache.create(), t.serializer);
|
|
1215
|
+
}
|
|
1216
|
+
function wn(e, t) {
|
|
1217
|
+
return jt(e, this, Ft, t.cache.create(), t.serializer);
|
|
1218
1218
|
}
|
|
1219
1219
|
var Tn = function() {
|
|
1220
1220
|
return JSON.stringify(arguments);
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1221
|
+
}, Bn = (
|
|
1222
|
+
/** @class */
|
|
1223
|
+
function() {
|
|
1224
|
+
function e() {
|
|
1225
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1226
|
+
}
|
|
1227
|
+
return e.prototype.get = function(t) {
|
|
1228
|
+
return this.cache[t];
|
|
1229
|
+
}, e.prototype.set = function(t, r) {
|
|
1230
|
+
this.cache[t] = r;
|
|
1231
|
+
}, e;
|
|
1232
|
+
}()
|
|
1233
|
+
), Hn = {
|
|
1232
1234
|
create: function() {
|
|
1233
|
-
return new
|
|
1235
|
+
return new Bn();
|
|
1234
1236
|
}
|
|
1235
|
-
},
|
|
1236
|
-
variadic:
|
|
1237
|
-
|
|
1238
|
-
|
|
1237
|
+
}, Pe = {
|
|
1238
|
+
variadic: wn
|
|
1239
|
+
}, me = function() {
|
|
1240
|
+
return me = Object.assign || function(t) {
|
|
1241
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1242
|
+
r = arguments[n];
|
|
1243
|
+
for (var o in r)
|
|
1244
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1245
|
+
}
|
|
1246
|
+
return t;
|
|
1247
|
+
}, me.apply(this, arguments);
|
|
1248
|
+
};
|
|
1249
|
+
var p;
|
|
1239
1250
|
(function(e) {
|
|
1240
1251
|
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";
|
|
1241
1252
|
})(p || (p = {}));
|
|
1242
|
-
var
|
|
1253
|
+
var v;
|
|
1243
1254
|
(function(e) {
|
|
1244
1255
|
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";
|
|
1245
|
-
})(
|
|
1246
|
-
var
|
|
1256
|
+
})(v || (v = {}));
|
|
1257
|
+
var k;
|
|
1247
1258
|
(function(e) {
|
|
1248
1259
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1249
|
-
})(
|
|
1250
|
-
function
|
|
1251
|
-
return e.type ===
|
|
1252
|
-
}
|
|
1253
|
-
function Bn(e) {
|
|
1254
|
-
return e.type === E.argument;
|
|
1260
|
+
})(k || (k = {}));
|
|
1261
|
+
function dt(e) {
|
|
1262
|
+
return e.type === v.literal;
|
|
1255
1263
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1264
|
+
function Pn(e) {
|
|
1265
|
+
return e.type === v.argument;
|
|
1258
1266
|
}
|
|
1259
1267
|
function kt(e) {
|
|
1260
|
-
return e.type ===
|
|
1268
|
+
return e.type === v.number;
|
|
1261
1269
|
}
|
|
1262
1270
|
function Vt(e) {
|
|
1263
|
-
return e.type ===
|
|
1264
|
-
}
|
|
1265
|
-
function zt(e) {
|
|
1266
|
-
return e.type === E.select;
|
|
1271
|
+
return e.type === v.date;
|
|
1267
1272
|
}
|
|
1268
1273
|
function Xt(e) {
|
|
1269
|
-
return e.type ===
|
|
1274
|
+
return e.type === v.time;
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return e.type ===
|
|
1276
|
+
function zt(e) {
|
|
1277
|
+
return e.type === v.select;
|
|
1273
1278
|
}
|
|
1274
1279
|
function Wt(e) {
|
|
1275
|
-
return e.type ===
|
|
1280
|
+
return e.type === v.plural;
|
|
1281
|
+
}
|
|
1282
|
+
function An(e) {
|
|
1283
|
+
return e.type === v.pound;
|
|
1276
1284
|
}
|
|
1277
1285
|
function Zt(e) {
|
|
1278
|
-
return
|
|
1286
|
+
return e.type === v.tag;
|
|
1279
1287
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1288
|
+
function Qt(e) {
|
|
1289
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1282
1290
|
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1291
|
+
function Fe(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1293
|
+
}
|
|
1294
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
|
1295
|
+
function In(e) {
|
|
1285
1296
|
var t = {};
|
|
1286
|
-
return e.replace(
|
|
1297
|
+
return e.replace(On, function(r) {
|
|
1287
1298
|
var n = r.length;
|
|
1288
1299
|
switch (r[0]) {
|
|
1289
1300
|
case "G":
|
|
@@ -1372,11 +1383,21 @@ function An(e) {
|
|
|
1372
1383
|
return "";
|
|
1373
1384
|
}), t;
|
|
1374
1385
|
}
|
|
1375
|
-
var
|
|
1376
|
-
function
|
|
1386
|
+
var E = function() {
|
|
1387
|
+
return E = Object.assign || function(t) {
|
|
1388
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1389
|
+
r = arguments[n];
|
|
1390
|
+
for (var o in r)
|
|
1391
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1392
|
+
}
|
|
1393
|
+
return t;
|
|
1394
|
+
}, E.apply(this, arguments);
|
|
1395
|
+
};
|
|
1396
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1397
|
+
function Ln(e) {
|
|
1377
1398
|
if (e.length === 0)
|
|
1378
1399
|
throw new Error("Number skeleton cannot be empty");
|
|
1379
|
-
for (var t = e.split(
|
|
1400
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
1380
1401
|
return f.length > 0;
|
|
1381
1402
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1382
1403
|
var o = i[n], s = o.split("/");
|
|
@@ -1391,17 +1412,17 @@ function In(e) {
|
|
|
1391
1412
|
}
|
|
1392
1413
|
return r;
|
|
1393
1414
|
}
|
|
1394
|
-
function
|
|
1415
|
+
function Cn(e) {
|
|
1395
1416
|
return e.replace(/^(.*?)-/, "");
|
|
1396
1417
|
}
|
|
1397
|
-
var
|
|
1398
|
-
function
|
|
1418
|
+
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1419
|
+
function gt(e) {
|
|
1399
1420
|
var t = {};
|
|
1400
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1421
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1401
1422
|
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)), "";
|
|
1402
1423
|
}), t;
|
|
1403
1424
|
}
|
|
1404
|
-
function
|
|
1425
|
+
function Kt(e) {
|
|
1405
1426
|
switch (e) {
|
|
1406
1427
|
case "sign-auto":
|
|
1407
1428
|
return {
|
|
@@ -1441,7 +1462,7 @@ function qt(e) {
|
|
|
1441
1462
|
};
|
|
1442
1463
|
}
|
|
1443
1464
|
}
|
|
1444
|
-
function
|
|
1465
|
+
function $n(e) {
|
|
1445
1466
|
var t;
|
|
1446
1467
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1447
1468
|
notation: "engineering"
|
|
@@ -1449,17 +1470,17 @@ function Cn(e) {
|
|
|
1449
1470
|
notation: "scientific"
|
|
1450
1471
|
}, e = e.slice(1)), t) {
|
|
1451
1472
|
var r = e.slice(0, 2);
|
|
1452
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1473
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1453
1474
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1454
1475
|
t.minimumIntegerDigits = e.length;
|
|
1455
1476
|
}
|
|
1456
1477
|
return t;
|
|
1457
1478
|
}
|
|
1458
|
-
function
|
|
1459
|
-
var t = {}, r =
|
|
1479
|
+
function yt(e) {
|
|
1480
|
+
var t = {}, r = Kt(e);
|
|
1460
1481
|
return r || t;
|
|
1461
1482
|
}
|
|
1462
|
-
function
|
|
1483
|
+
function Rn(e) {
|
|
1463
1484
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1464
1485
|
var i = n[r];
|
|
1465
1486
|
switch (i.stem) {
|
|
@@ -1483,7 +1504,7 @@ function Mn(e) {
|
|
|
1483
1504
|
continue;
|
|
1484
1505
|
case "measure-unit":
|
|
1485
1506
|
case "unit":
|
|
1486
|
-
t.style = "unit", t.unit =
|
|
1507
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1487
1508
|
continue;
|
|
1488
1509
|
case "compact-short":
|
|
1489
1510
|
case "K":
|
|
@@ -1494,13 +1515,13 @@ function Mn(e) {
|
|
|
1494
1515
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1495
1516
|
continue;
|
|
1496
1517
|
case "scientific":
|
|
1497
|
-
t =
|
|
1498
|
-
return
|
|
1518
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1519
|
+
return E(E({}, u), yt(h));
|
|
1499
1520
|
}, {}));
|
|
1500
1521
|
continue;
|
|
1501
1522
|
case "engineering":
|
|
1502
|
-
t =
|
|
1503
|
-
return
|
|
1523
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1524
|
+
return E(E({}, u), yt(h));
|
|
1504
1525
|
}, {}));
|
|
1505
1526
|
continue;
|
|
1506
1527
|
case "notation-simple":
|
|
@@ -1545,7 +1566,7 @@ function Mn(e) {
|
|
|
1545
1566
|
case "integer-width":
|
|
1546
1567
|
if (i.options.length > 1)
|
|
1547
1568
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1548
|
-
i.options[0].replace(
|
|
1569
|
+
i.options[0].replace(Mn, function(u, h, l, c, f, m) {
|
|
1549
1570
|
if (h)
|
|
1550
1571
|
t.minimumIntegerDigits = l.length;
|
|
1551
1572
|
else {
|
|
@@ -1558,28 +1579,28 @@ function Mn(e) {
|
|
|
1558
1579
|
});
|
|
1559
1580
|
continue;
|
|
1560
1581
|
}
|
|
1561
|
-
if (
|
|
1582
|
+
if (qt.test(i.stem)) {
|
|
1562
1583
|
t.minimumIntegerDigits = i.stem.length;
|
|
1563
1584
|
continue;
|
|
1564
1585
|
}
|
|
1565
|
-
if (
|
|
1586
|
+
if (bt.test(i.stem)) {
|
|
1566
1587
|
if (i.options.length > 1)
|
|
1567
1588
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1568
|
-
i.stem.replace(
|
|
1589
|
+
i.stem.replace(bt, function(u, h, l, c, f, m) {
|
|
1569
1590
|
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1570
1591
|
});
|
|
1571
1592
|
var o = i.options[0];
|
|
1572
|
-
o === "w" ? t =
|
|
1593
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), gt(o)));
|
|
1573
1594
|
continue;
|
|
1574
1595
|
}
|
|
1575
|
-
if (
|
|
1576
|
-
t =
|
|
1596
|
+
if (Yt.test(i.stem)) {
|
|
1597
|
+
t = E(E({}, t), gt(i.stem));
|
|
1577
1598
|
continue;
|
|
1578
1599
|
}
|
|
1579
|
-
var s =
|
|
1580
|
-
s && (t =
|
|
1581
|
-
var a =
|
|
1582
|
-
a && (t =
|
|
1600
|
+
var s = Kt(i.stem);
|
|
1601
|
+
s && (t = E(E({}, t), s));
|
|
1602
|
+
var a = $n(i.stem);
|
|
1603
|
+
a && (t = E(E({}, t), a));
|
|
1583
1604
|
}
|
|
1584
1605
|
return t;
|
|
1585
1606
|
}
|
|
@@ -2998,13 +3019,13 @@ var se = {
|
|
|
2998
3019
|
"h"
|
|
2999
3020
|
]
|
|
3000
3021
|
};
|
|
3001
|
-
function
|
|
3022
|
+
function Un(e, t) {
|
|
3002
3023
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3003
3024
|
var i = e.charAt(n);
|
|
3004
3025
|
if (i === "j") {
|
|
3005
3026
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3006
3027
|
o++, n++;
|
|
3007
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
3028
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Dn(t);
|
|
3008
3029
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
3009
3030
|
r += u;
|
|
3010
3031
|
for (; s-- > 0; )
|
|
@@ -3014,7 +3035,7 @@ function $n(e, t) {
|
|
|
3014
3035
|
}
|
|
3015
3036
|
return r;
|
|
3016
3037
|
}
|
|
3017
|
-
function
|
|
3038
|
+
function Dn(e) {
|
|
3018
3039
|
var t = e.hourCycle;
|
|
3019
3040
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3020
3041
|
e.hourCycles && // @ts-ignore
|
|
@@ -3036,20 +3057,20 @@ function Rn(e) {
|
|
|
3036
3057
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3037
3058
|
return i[0];
|
|
3038
3059
|
}
|
|
3039
|
-
var
|
|
3060
|
+
var Ae, Gn = new RegExp("^".concat(Jt.source, "*")), Fn = new RegExp("".concat(Jt.source, "*$"));
|
|
3040
3061
|
function d(e, t) {
|
|
3041
3062
|
return { start: e, end: t };
|
|
3042
3063
|
}
|
|
3043
|
-
var
|
|
3064
|
+
var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, Zn = !!Number.isSafeInteger, Qn = Zn ? Number.isSafeInteger : function(e) {
|
|
3044
3065
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3045
|
-
},
|
|
3066
|
+
}, je = !0;
|
|
3046
3067
|
try {
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3068
|
+
var Jn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3069
|
+
je = ((Ae = Jn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3049
3070
|
} catch (e) {
|
|
3050
|
-
|
|
3071
|
+
je = !1;
|
|
3051
3072
|
}
|
|
3052
|
-
var
|
|
3073
|
+
var vt = jn ? (
|
|
3053
3074
|
// Native
|
|
3054
3075
|
function(t, r, n) {
|
|
3055
3076
|
return t.startsWith(r, n);
|
|
@@ -3059,7 +3080,7 @@ var gt = Fn ? (
|
|
|
3059
3080
|
function(t, r, n) {
|
|
3060
3081
|
return t.slice(n, n + r.length) === r;
|
|
3061
3082
|
}
|
|
3062
|
-
),
|
|
3083
|
+
), ke = kn ? String.fromCodePoint : (
|
|
3063
3084
|
// IE11
|
|
3064
3085
|
function() {
|
|
3065
3086
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3071,9 +3092,9 @@ var gt = Fn ? (
|
|
|
3071
3092
|
}
|
|
3072
3093
|
return n;
|
|
3073
3094
|
}
|
|
3074
|
-
),
|
|
3095
|
+
), Et = (
|
|
3075
3096
|
// native
|
|
3076
|
-
|
|
3097
|
+
Vn ? Object.fromEntries : (
|
|
3077
3098
|
// Ponyfill
|
|
3078
3099
|
function(t) {
|
|
3079
3100
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3083,7 +3104,7 @@ var gt = Fn ? (
|
|
|
3083
3104
|
return r;
|
|
3084
3105
|
}
|
|
3085
3106
|
)
|
|
3086
|
-
),
|
|
3107
|
+
), er = Xn ? (
|
|
3087
3108
|
// Native
|
|
3088
3109
|
function(t, r) {
|
|
3089
3110
|
return t.codePointAt(r);
|
|
@@ -3097,7 +3118,7 @@ var gt = Fn ? (
|
|
|
3097
3118
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3098
3119
|
}
|
|
3099
3120
|
}
|
|
3100
|
-
),
|
|
3121
|
+
), Yn = zn ? (
|
|
3101
3122
|
// Native
|
|
3102
3123
|
function(t) {
|
|
3103
3124
|
return t.trimStart();
|
|
@@ -3105,9 +3126,9 @@ var gt = Fn ? (
|
|
|
3105
3126
|
) : (
|
|
3106
3127
|
// Ponyfill
|
|
3107
3128
|
function(t) {
|
|
3108
|
-
return t.replace(
|
|
3129
|
+
return t.replace(Gn, "");
|
|
3109
3130
|
}
|
|
3110
|
-
),
|
|
3131
|
+
), qn = Wn ? (
|
|
3111
3132
|
// Native
|
|
3112
3133
|
function(t) {
|
|
3113
3134
|
return t.trimEnd();
|
|
@@ -3115,32 +3136,32 @@ var gt = Fn ? (
|
|
|
3115
3136
|
) : (
|
|
3116
3137
|
// Ponyfill
|
|
3117
3138
|
function(t) {
|
|
3118
|
-
return t.replace(
|
|
3139
|
+
return t.replace(Fn, "");
|
|
3119
3140
|
}
|
|
3120
3141
|
);
|
|
3121
|
-
function
|
|
3142
|
+
function tr(e, t) {
|
|
3122
3143
|
return new RegExp(e, t);
|
|
3123
3144
|
}
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3145
|
+
var Ve;
|
|
3146
|
+
if (je) {
|
|
3147
|
+
var _t = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3148
|
+
Ve = function(t, r) {
|
|
3128
3149
|
var n;
|
|
3129
|
-
|
|
3130
|
-
var i =
|
|
3150
|
+
_t.lastIndex = r;
|
|
3151
|
+
var i = _t.exec(t);
|
|
3131
3152
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3132
3153
|
};
|
|
3133
3154
|
} else
|
|
3134
|
-
|
|
3155
|
+
Ve = function(t, r) {
|
|
3135
3156
|
for (var n = []; ; ) {
|
|
3136
|
-
var i =
|
|
3137
|
-
if (i === void 0 ||
|
|
3157
|
+
var i = er(t, r);
|
|
3158
|
+
if (i === void 0 || rr(i) || ri(i))
|
|
3138
3159
|
break;
|
|
3139
3160
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3140
3161
|
}
|
|
3141
|
-
return
|
|
3162
|
+
return ke.apply(void 0, n);
|
|
3142
3163
|
};
|
|
3143
|
-
var
|
|
3164
|
+
var Kn = (
|
|
3144
3165
|
/** @class */
|
|
3145
3166
|
function() {
|
|
3146
3167
|
function e(t, r) {
|
|
@@ -3164,14 +3185,14 @@ var Yn = (
|
|
|
3164
3185
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3165
3186
|
var a = this.clonePosition();
|
|
3166
3187
|
this.bump(), i.push({
|
|
3167
|
-
type:
|
|
3188
|
+
type: v.pound,
|
|
3168
3189
|
location: d(a, this.clonePosition())
|
|
3169
3190
|
});
|
|
3170
3191
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3171
3192
|
if (n)
|
|
3172
3193
|
break;
|
|
3173
3194
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3174
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3195
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3175
3196
|
var s = this.parseTag(t, r);
|
|
3176
3197
|
if (s.err)
|
|
3177
3198
|
return s;
|
|
@@ -3192,7 +3213,7 @@ var Yn = (
|
|
|
3192
3213
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3193
3214
|
return {
|
|
3194
3215
|
val: {
|
|
3195
|
-
type:
|
|
3216
|
+
type: v.literal,
|
|
3196
3217
|
value: "<".concat(i, "/>"),
|
|
3197
3218
|
location: d(n, this.clonePosition())
|
|
3198
3219
|
},
|
|
@@ -3204,12 +3225,12 @@ var Yn = (
|
|
|
3204
3225
|
return o;
|
|
3205
3226
|
var s = o.val, a = this.clonePosition();
|
|
3206
3227
|
if (this.bumpIf("</")) {
|
|
3207
|
-
if (this.isEOF() || !
|
|
3228
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3208
3229
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3209
3230
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3210
3231
|
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3211
3232
|
val: {
|
|
3212
|
-
type:
|
|
3233
|
+
type: v.tag,
|
|
3213
3234
|
value: i,
|
|
3214
3235
|
children: s,
|
|
3215
3236
|
location: d(n, this.clonePosition())
|
|
@@ -3222,7 +3243,7 @@ var Yn = (
|
|
|
3222
3243
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3223
3244
|
}, e.prototype.parseTagName = function() {
|
|
3224
3245
|
var t = this.offset();
|
|
3225
|
-
for (this.bump(); !this.isEOF() &&
|
|
3246
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
3226
3247
|
this.bump();
|
|
3227
3248
|
return this.message.slice(t, this.offset());
|
|
3228
3249
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3246,12 +3267,12 @@ var Yn = (
|
|
|
3246
3267
|
}
|
|
3247
3268
|
var u = d(n, this.clonePosition());
|
|
3248
3269
|
return {
|
|
3249
|
-
val: { type:
|
|
3270
|
+
val: { type: v.literal, value: i, location: u },
|
|
3250
3271
|
err: null
|
|
3251
3272
|
};
|
|
3252
3273
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3253
3274
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3254
|
-
!
|
|
3275
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3255
3276
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3256
3277
|
if (this.isEOF() || this.char() !== 39)
|
|
3257
3278
|
return null;
|
|
@@ -3285,12 +3306,12 @@ var Yn = (
|
|
|
3285
3306
|
r.push(n);
|
|
3286
3307
|
this.bump();
|
|
3287
3308
|
}
|
|
3288
|
-
return
|
|
3309
|
+
return ke.apply(void 0, r);
|
|
3289
3310
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3290
3311
|
if (this.isEOF())
|
|
3291
3312
|
return null;
|
|
3292
3313
|
var n = this.char();
|
|
3293
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3314
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3294
3315
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3295
3316
|
var n = this.clonePosition();
|
|
3296
3317
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3306,7 +3327,7 @@ var Yn = (
|
|
|
3306
3327
|
case 125:
|
|
3307
3328
|
return this.bump(), {
|
|
3308
3329
|
val: {
|
|
3309
|
-
type:
|
|
3330
|
+
type: v.argument,
|
|
3310
3331
|
// value does not include the opening and closing braces.
|
|
3311
3332
|
value: i,
|
|
3312
3333
|
location: d(n, this.clonePosition())
|
|
@@ -3319,7 +3340,7 @@ var Yn = (
|
|
|
3319
3340
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3320
3341
|
}
|
|
3321
3342
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3322
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3343
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3323
3344
|
this.bumpTo(i);
|
|
3324
3345
|
var o = this.clonePosition(), s = d(t, o);
|
|
3325
3346
|
return { value: n, location: s };
|
|
@@ -3338,46 +3359,46 @@ var Yn = (
|
|
|
3338
3359
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3339
3360
|
if (c.err)
|
|
3340
3361
|
return c;
|
|
3341
|
-
var f =
|
|
3362
|
+
var f = qn(c.val);
|
|
3342
3363
|
if (f.length === 0)
|
|
3343
3364
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3344
3365
|
var m = d(l, this.clonePosition());
|
|
3345
3366
|
h = { style: f, styleLocation: m };
|
|
3346
3367
|
}
|
|
3347
|
-
var
|
|
3348
|
-
if (
|
|
3349
|
-
return
|
|
3350
|
-
var
|
|
3351
|
-
if (h &&
|
|
3352
|
-
var
|
|
3368
|
+
var g = this.tryParseArgumentClose(i);
|
|
3369
|
+
if (g.err)
|
|
3370
|
+
return g;
|
|
3371
|
+
var b = d(i, this.clonePosition());
|
|
3372
|
+
if (h && vt(h == null ? void 0 : h.style, "::", 0)) {
|
|
3373
|
+
var T = Yn(h.style.slice(2));
|
|
3353
3374
|
if (a === "number") {
|
|
3354
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3375
|
+
var c = this.parseNumberSkeletonFromString(T, h.styleLocation);
|
|
3355
3376
|
return c.err ? c : {
|
|
3356
|
-
val: { type:
|
|
3377
|
+
val: { type: v.number, value: n, location: b, style: c.val },
|
|
3357
3378
|
err: null
|
|
3358
3379
|
};
|
|
3359
3380
|
} else {
|
|
3360
|
-
if (
|
|
3361
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3362
|
-
var
|
|
3363
|
-
this.locale && (
|
|
3381
|
+
if (T.length === 0)
|
|
3382
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3383
|
+
var L = T;
|
|
3384
|
+
this.locale && (L = Un(T, this.locale));
|
|
3364
3385
|
var f = {
|
|
3365
|
-
type:
|
|
3366
|
-
pattern:
|
|
3386
|
+
type: k.dateTime,
|
|
3387
|
+
pattern: L,
|
|
3367
3388
|
location: h.styleLocation,
|
|
3368
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3369
|
-
}, I = a === "date" ?
|
|
3389
|
+
parsedOptions: this.shouldParseSkeletons ? In(L) : {}
|
|
3390
|
+
}, I = a === "date" ? v.date : v.time;
|
|
3370
3391
|
return {
|
|
3371
|
-
val: { type: I, value: n, location:
|
|
3392
|
+
val: { type: I, value: n, location: b, style: f },
|
|
3372
3393
|
err: null
|
|
3373
3394
|
};
|
|
3374
3395
|
}
|
|
3375
3396
|
}
|
|
3376
3397
|
return {
|
|
3377
3398
|
val: {
|
|
3378
|
-
type: a === "number" ?
|
|
3399
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3379
3400
|
value: n,
|
|
3380
|
-
location:
|
|
3401
|
+
location: b,
|
|
3381
3402
|
style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
|
|
3382
3403
|
},
|
|
3383
3404
|
err: null
|
|
@@ -3386,9 +3407,9 @@ var Yn = (
|
|
|
3386
3407
|
case "plural":
|
|
3387
3408
|
case "selectordinal":
|
|
3388
3409
|
case "select": {
|
|
3389
|
-
var
|
|
3410
|
+
var x = this.clonePosition();
|
|
3390
3411
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3391
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3412
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, me({}, x)));
|
|
3392
3413
|
this.bumpSpace();
|
|
3393
3414
|
var H = this.parseIdentifierIfPossible(), S = 0;
|
|
3394
3415
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3403,23 +3424,23 @@ var Yn = (
|
|
|
3403
3424
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3404
3425
|
if ($.err)
|
|
3405
3426
|
return $;
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3427
|
+
var g = this.tryParseArgumentClose(i);
|
|
3428
|
+
if (g.err)
|
|
3429
|
+
return g;
|
|
3409
3430
|
var ie = d(i, this.clonePosition());
|
|
3410
3431
|
return a === "select" ? {
|
|
3411
3432
|
val: {
|
|
3412
|
-
type:
|
|
3433
|
+
type: v.select,
|
|
3413
3434
|
value: n,
|
|
3414
|
-
options:
|
|
3435
|
+
options: Et($.val),
|
|
3415
3436
|
location: ie
|
|
3416
3437
|
},
|
|
3417
3438
|
err: null
|
|
3418
3439
|
} : {
|
|
3419
3440
|
val: {
|
|
3420
|
-
type:
|
|
3441
|
+
type: v.plural,
|
|
3421
3442
|
value: n,
|
|
3422
|
-
options:
|
|
3443
|
+
options: Et($.val),
|
|
3423
3444
|
offset: S,
|
|
3424
3445
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3425
3446
|
location: ie
|
|
@@ -3470,16 +3491,16 @@ var Yn = (
|
|
|
3470
3491
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3471
3492
|
var n = [];
|
|
3472
3493
|
try {
|
|
3473
|
-
n =
|
|
3494
|
+
n = Ln(t);
|
|
3474
3495
|
} catch (i) {
|
|
3475
3496
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3476
3497
|
}
|
|
3477
3498
|
return {
|
|
3478
3499
|
val: {
|
|
3479
|
-
type:
|
|
3500
|
+
type: k.number,
|
|
3480
3501
|
tokens: n,
|
|
3481
3502
|
location: r,
|
|
3482
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3503
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
|
|
3483
3504
|
},
|
|
3484
3505
|
err: null
|
|
3485
3506
|
};
|
|
@@ -3501,16 +3522,16 @@ var Yn = (
|
|
|
3501
3522
|
var m = this.clonePosition();
|
|
3502
3523
|
if (!this.bumpIf("{"))
|
|
3503
3524
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3504
|
-
var
|
|
3505
|
-
if (y.err)
|
|
3506
|
-
return y;
|
|
3507
|
-
var g = this.tryParseArgumentClose(m);
|
|
3525
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3508
3526
|
if (g.err)
|
|
3509
3527
|
return g;
|
|
3528
|
+
var b = this.tryParseArgumentClose(m);
|
|
3529
|
+
if (b.err)
|
|
3530
|
+
return b;
|
|
3510
3531
|
a.push([
|
|
3511
3532
|
h,
|
|
3512
3533
|
{
|
|
3513
|
-
value:
|
|
3534
|
+
value: g.val,
|
|
3514
3535
|
location: d(m, this.clonePosition())
|
|
3515
3536
|
}
|
|
3516
3537
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
@@ -3527,7 +3548,7 @@ var Yn = (
|
|
|
3527
3548
|
break;
|
|
3528
3549
|
}
|
|
3529
3550
|
var u = d(i, this.clonePosition());
|
|
3530
|
-
return o ? (s *= n,
|
|
3551
|
+
return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3531
3552
|
}, e.prototype.offset = function() {
|
|
3532
3553
|
return this.position.offset;
|
|
3533
3554
|
}, e.prototype.isEOF = function() {
|
|
@@ -3542,7 +3563,7 @@ var Yn = (
|
|
|
3542
3563
|
var t = this.position.offset;
|
|
3543
3564
|
if (t >= this.message.length)
|
|
3544
3565
|
throw Error("out of bound");
|
|
3545
|
-
var r =
|
|
3566
|
+
var r = er(this.message, t);
|
|
3546
3567
|
if (r === void 0)
|
|
3547
3568
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3548
3569
|
return r;
|
|
@@ -3561,7 +3582,7 @@ var Yn = (
|
|
|
3561
3582
|
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);
|
|
3562
3583
|
}
|
|
3563
3584
|
}, e.prototype.bumpIf = function(t) {
|
|
3564
|
-
if (
|
|
3585
|
+
if (vt(this.message, t, this.offset())) {
|
|
3565
3586
|
for (var r = 0; r < t.length; r++)
|
|
3566
3587
|
this.bump();
|
|
3567
3588
|
return !0;
|
|
@@ -3583,7 +3604,7 @@ var Yn = (
|
|
|
3583
3604
|
break;
|
|
3584
3605
|
}
|
|
3585
3606
|
}, e.prototype.bumpSpace = function() {
|
|
3586
|
-
for (; !this.isEOF() &&
|
|
3607
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3587
3608
|
this.bump();
|
|
3588
3609
|
}, e.prototype.peek = function() {
|
|
3589
3610
|
if (this.isEOF())
|
|
@@ -3593,47 +3614,47 @@ var Yn = (
|
|
|
3593
3614
|
}, e;
|
|
3594
3615
|
}()
|
|
3595
3616
|
);
|
|
3596
|
-
function
|
|
3617
|
+
function Xe(e) {
|
|
3597
3618
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3598
3619
|
}
|
|
3599
|
-
function
|
|
3600
|
-
return
|
|
3620
|
+
function ei(e) {
|
|
3621
|
+
return Xe(e) || e === 47;
|
|
3601
3622
|
}
|
|
3602
|
-
function
|
|
3623
|
+
function ti(e) {
|
|
3603
3624
|
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;
|
|
3604
3625
|
}
|
|
3605
|
-
function
|
|
3626
|
+
function rr(e) {
|
|
3606
3627
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3607
3628
|
}
|
|
3608
|
-
function
|
|
3629
|
+
function ri(e) {
|
|
3609
3630
|
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;
|
|
3610
3631
|
}
|
|
3611
|
-
function
|
|
3632
|
+
function ze(e) {
|
|
3612
3633
|
e.forEach(function(t) {
|
|
3613
|
-
if (delete t.location, zt(t) ||
|
|
3634
|
+
if (delete t.location, zt(t) || Wt(t))
|
|
3614
3635
|
for (var r in t.options)
|
|
3615
|
-
delete t.options[r].location,
|
|
3636
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3616
3637
|
else
|
|
3617
|
-
|
|
3638
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && Fe(t.style) ? delete t.style.location : Zt(t) && ze(t.children);
|
|
3618
3639
|
});
|
|
3619
3640
|
}
|
|
3620
|
-
function
|
|
3621
|
-
t === void 0 && (t = {}), t =
|
|
3622
|
-
var r = new
|
|
3641
|
+
function ni(e, t) {
|
|
3642
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3643
|
+
var r = new Kn(e, t).parse();
|
|
3623
3644
|
if (r.err) {
|
|
3624
3645
|
var n = SyntaxError(p[r.err.kind]);
|
|
3625
3646
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3626
3647
|
}
|
|
3627
|
-
return t != null && t.captureLocation ||
|
|
3648
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3628
3649
|
}
|
|
3629
|
-
var
|
|
3650
|
+
var V;
|
|
3630
3651
|
(function(e) {
|
|
3631
3652
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3632
|
-
})(
|
|
3633
|
-
var
|
|
3653
|
+
})(V || (V = {}));
|
|
3654
|
+
var Ee = (
|
|
3634
3655
|
/** @class */
|
|
3635
3656
|
function(e) {
|
|
3636
|
-
|
|
3657
|
+
ve(t, e);
|
|
3637
3658
|
function t(r, n, i) {
|
|
3638
3659
|
var o = e.call(this, r) || this;
|
|
3639
3660
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3642,155 +3663,155 @@ var ye = (
|
|
|
3642
3663
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3643
3664
|
}, t;
|
|
3644
3665
|
}(Error)
|
|
3645
|
-
),
|
|
3666
|
+
), xt = (
|
|
3646
3667
|
/** @class */
|
|
3647
3668
|
function(e) {
|
|
3648
|
-
|
|
3669
|
+
ve(t, e);
|
|
3649
3670
|
function t(r, n, i, o) {
|
|
3650
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3671
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3651
3672
|
}
|
|
3652
3673
|
return t;
|
|
3653
|
-
}(
|
|
3654
|
-
),
|
|
3674
|
+
}(Ee)
|
|
3675
|
+
), ii = (
|
|
3655
3676
|
/** @class */
|
|
3656
3677
|
function(e) {
|
|
3657
|
-
|
|
3678
|
+
ve(t, e);
|
|
3658
3679
|
function t(r, n, i) {
|
|
3659
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3680
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3660
3681
|
}
|
|
3661
3682
|
return t;
|
|
3662
|
-
}(
|
|
3663
|
-
),
|
|
3683
|
+
}(Ee)
|
|
3684
|
+
), oi = (
|
|
3664
3685
|
/** @class */
|
|
3665
3686
|
function(e) {
|
|
3666
|
-
|
|
3687
|
+
ve(t, e);
|
|
3667
3688
|
function t(r, n) {
|
|
3668
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3689
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3669
3690
|
}
|
|
3670
3691
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3692
|
+
}(Ee)
|
|
3693
|
+
), _;
|
|
3673
3694
|
(function(e) {
|
|
3674
3695
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3675
|
-
})(
|
|
3676
|
-
function
|
|
3696
|
+
})(_ || (_ = {}));
|
|
3697
|
+
function si(e) {
|
|
3677
3698
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3678
3699
|
var n = t[t.length - 1];
|
|
3679
|
-
return !n || n.type !==
|
|
3700
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3680
3701
|
}, []);
|
|
3681
3702
|
}
|
|
3682
|
-
function
|
|
3703
|
+
function ai(e) {
|
|
3683
3704
|
return typeof e == "function";
|
|
3684
3705
|
}
|
|
3685
3706
|
function ce(e, t, r, n, i, o, s) {
|
|
3686
|
-
if (e.length === 1 &&
|
|
3707
|
+
if (e.length === 1 && dt(e[0]))
|
|
3687
3708
|
return [
|
|
3688
3709
|
{
|
|
3689
|
-
type:
|
|
3710
|
+
type: _.literal,
|
|
3690
3711
|
value: e[0].value
|
|
3691
3712
|
}
|
|
3692
3713
|
];
|
|
3693
3714
|
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3694
3715
|
var l = h[u];
|
|
3695
|
-
if (
|
|
3716
|
+
if (dt(l)) {
|
|
3696
3717
|
a.push({
|
|
3697
|
-
type:
|
|
3718
|
+
type: _.literal,
|
|
3698
3719
|
value: l.value
|
|
3699
3720
|
});
|
|
3700
3721
|
continue;
|
|
3701
3722
|
}
|
|
3702
|
-
if (
|
|
3723
|
+
if (An(l)) {
|
|
3703
3724
|
typeof o == "number" && a.push({
|
|
3704
|
-
type:
|
|
3725
|
+
type: _.literal,
|
|
3705
3726
|
value: r.getNumberFormat(t).format(o)
|
|
3706
3727
|
});
|
|
3707
3728
|
continue;
|
|
3708
3729
|
}
|
|
3709
3730
|
var c = l.value;
|
|
3710
3731
|
if (!(i && c in i))
|
|
3711
|
-
throw new
|
|
3732
|
+
throw new oi(c, s);
|
|
3712
3733
|
var f = i[c];
|
|
3713
|
-
if (
|
|
3734
|
+
if (Pn(l)) {
|
|
3714
3735
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3715
|
-
type: typeof f == "string" ?
|
|
3736
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3716
3737
|
value: f
|
|
3717
3738
|
});
|
|
3718
3739
|
continue;
|
|
3719
3740
|
}
|
|
3720
|
-
if (
|
|
3721
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3741
|
+
if (Vt(l)) {
|
|
3742
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3722
3743
|
a.push({
|
|
3723
|
-
type:
|
|
3744
|
+
type: _.literal,
|
|
3724
3745
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3725
3746
|
});
|
|
3726
3747
|
continue;
|
|
3727
3748
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3749
|
+
if (Xt(l)) {
|
|
3750
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3730
3751
|
a.push({
|
|
3731
|
-
type:
|
|
3752
|
+
type: _.literal,
|
|
3732
3753
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3733
3754
|
});
|
|
3734
3755
|
continue;
|
|
3735
3756
|
}
|
|
3736
|
-
if (
|
|
3737
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3757
|
+
if (kt(l)) {
|
|
3758
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3738
3759
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3739
|
-
type:
|
|
3760
|
+
type: _.literal,
|
|
3740
3761
|
value: r.getNumberFormat(t, m).format(f)
|
|
3741
3762
|
});
|
|
3742
3763
|
continue;
|
|
3743
3764
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3748
|
-
var
|
|
3765
|
+
if (Zt(l)) {
|
|
3766
|
+
var g = l.children, b = l.value, T = i[b];
|
|
3767
|
+
if (!ai(T))
|
|
3768
|
+
throw new ii(b, "function", s);
|
|
3769
|
+
var L = ce(g, t, r, n, i, o), I = T(L.map(function(S) {
|
|
3749
3770
|
return S.value;
|
|
3750
3771
|
}));
|
|
3751
3772
|
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
|
|
3752
3773
|
return {
|
|
3753
|
-
type: typeof S == "string" ?
|
|
3774
|
+
type: typeof S == "string" ? _.literal : _.object,
|
|
3754
3775
|
value: S
|
|
3755
3776
|
};
|
|
3756
3777
|
}));
|
|
3757
3778
|
}
|
|
3758
3779
|
if (zt(l)) {
|
|
3759
|
-
var
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3762
|
-
a.push.apply(a, ce(
|
|
3780
|
+
var x = l.options[f] || l.options.other;
|
|
3781
|
+
if (!x)
|
|
3782
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3783
|
+
a.push.apply(a, ce(x.value, t, r, n, i));
|
|
3763
3784
|
continue;
|
|
3764
3785
|
}
|
|
3765
|
-
if (
|
|
3766
|
-
var
|
|
3767
|
-
if (!
|
|
3786
|
+
if (Wt(l)) {
|
|
3787
|
+
var x = l.options["=".concat(f)];
|
|
3788
|
+
if (!x) {
|
|
3768
3789
|
if (!Intl.PluralRules)
|
|
3769
|
-
throw new
|
|
3790
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3770
3791
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3771
|
-
`,
|
|
3792
|
+
`, V.MISSING_INTL_API, s);
|
|
3772
3793
|
var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3773
|
-
|
|
3794
|
+
x = l.options[H] || l.options.other;
|
|
3774
3795
|
}
|
|
3775
|
-
if (!
|
|
3776
|
-
throw new
|
|
3777
|
-
a.push.apply(a, ce(
|
|
3796
|
+
if (!x)
|
|
3797
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3798
|
+
a.push.apply(a, ce(x.value, t, r, n, i, f - (l.offset || 0)));
|
|
3778
3799
|
continue;
|
|
3779
3800
|
}
|
|
3780
3801
|
}
|
|
3781
|
-
return
|
|
3802
|
+
return si(a);
|
|
3782
3803
|
}
|
|
3783
|
-
function
|
|
3784
|
-
return t ?
|
|
3785
|
-
return r[n] =
|
|
3804
|
+
function ui(e, t) {
|
|
3805
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3806
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3786
3807
|
}, {})) : e;
|
|
3787
3808
|
}
|
|
3788
|
-
function
|
|
3809
|
+
function hi(e, t) {
|
|
3789
3810
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3790
|
-
return r[n] =
|
|
3791
|
-
},
|
|
3811
|
+
return r[n] = ui(e[n], t[n]), r;
|
|
3812
|
+
}, P({}, e)) : e;
|
|
3792
3813
|
}
|
|
3793
|
-
function
|
|
3814
|
+
function Oe(e) {
|
|
3794
3815
|
return {
|
|
3795
3816
|
create: function() {
|
|
3796
3817
|
return {
|
|
@@ -3804,39 +3825,39 @@ function Pe(e) {
|
|
|
3804
3825
|
}
|
|
3805
3826
|
};
|
|
3806
3827
|
}
|
|
3807
|
-
function
|
|
3828
|
+
function li(e) {
|
|
3808
3829
|
return e === void 0 && (e = {
|
|
3809
3830
|
number: {},
|
|
3810
3831
|
dateTime: {},
|
|
3811
3832
|
pluralRules: {}
|
|
3812
3833
|
}), {
|
|
3813
|
-
getNumberFormat:
|
|
3834
|
+
getNumberFormat: He(function() {
|
|
3814
3835
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3815
3836
|
r[n] = arguments[n];
|
|
3816
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3837
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3817
3838
|
}, {
|
|
3818
|
-
cache:
|
|
3819
|
-
strategy:
|
|
3839
|
+
cache: Oe(e.number),
|
|
3840
|
+
strategy: Pe.variadic
|
|
3820
3841
|
}),
|
|
3821
|
-
getDateTimeFormat:
|
|
3842
|
+
getDateTimeFormat: He(function() {
|
|
3822
3843
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3823
3844
|
r[n] = arguments[n];
|
|
3824
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3845
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3825
3846
|
}, {
|
|
3826
|
-
cache:
|
|
3827
|
-
strategy:
|
|
3847
|
+
cache: Oe(e.dateTime),
|
|
3848
|
+
strategy: Pe.variadic
|
|
3828
3849
|
}),
|
|
3829
|
-
getPluralRules:
|
|
3850
|
+
getPluralRules: He(function() {
|
|
3830
3851
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3831
3852
|
r[n] = arguments[n];
|
|
3832
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3853
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3833
3854
|
}, {
|
|
3834
|
-
cache:
|
|
3835
|
-
strategy:
|
|
3855
|
+
cache: Oe(e.pluralRules),
|
|
3856
|
+
strategy: Pe.variadic
|
|
3836
3857
|
})
|
|
3837
3858
|
};
|
|
3838
3859
|
}
|
|
3839
|
-
var
|
|
3860
|
+
var ci = (
|
|
3840
3861
|
/** @class */
|
|
3841
3862
|
function() {
|
|
3842
3863
|
function e(t, r, n, i) {
|
|
@@ -3851,7 +3872,7 @@ var hi = (
|
|
|
3851
3872
|
if (h.length === 1)
|
|
3852
3873
|
return h[0].value;
|
|
3853
3874
|
var l = h.reduce(function(c, f) {
|
|
3854
|
-
return !c.length || f.type !==
|
|
3875
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3855
3876
|
}, []);
|
|
3856
3877
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3857
3878
|
}, this.formatToParts = function(u) {
|
|
@@ -3868,13 +3889,13 @@ var hi = (
|
|
|
3868
3889
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3869
3890
|
var s = i || {};
|
|
3870
3891
|
s.formatters;
|
|
3871
|
-
var a =
|
|
3872
|
-
this.ast = e.__parse(t,
|
|
3892
|
+
var a = En(s, ["formatters"]);
|
|
3893
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3873
3894
|
} else
|
|
3874
3895
|
this.ast = t;
|
|
3875
3896
|
if (!Array.isArray(this.ast))
|
|
3876
3897
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3877
|
-
this.formats =
|
|
3898
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3878
3899
|
}
|
|
3879
3900
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3880
3901
|
get: function() {
|
|
@@ -3887,7 +3908,7 @@ var hi = (
|
|
|
3887
3908
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3888
3909
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3889
3910
|
}
|
|
3890
|
-
}, e.__parse =
|
|
3911
|
+
}, e.__parse = ni, e.formats = {
|
|
3891
3912
|
number: {
|
|
3892
3913
|
integer: {
|
|
3893
3914
|
maximumFractionDigits: 0
|
|
@@ -3948,7 +3969,7 @@ var hi = (
|
|
|
3948
3969
|
}, e;
|
|
3949
3970
|
}()
|
|
3950
3971
|
);
|
|
3951
|
-
function
|
|
3972
|
+
function fi(e, t) {
|
|
3952
3973
|
if (t == null)
|
|
3953
3974
|
return;
|
|
3954
3975
|
if (t in e)
|
|
@@ -3969,92 +3990,92 @@ function li(e, t) {
|
|
|
3969
3990
|
n = void 0;
|
|
3970
3991
|
return n;
|
|
3971
3992
|
}
|
|
3972
|
-
const
|
|
3993
|
+
const N = {}, pi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), nr = (e, t) => {
|
|
3973
3994
|
if (t == null)
|
|
3974
3995
|
return;
|
|
3975
|
-
if (t in
|
|
3976
|
-
return
|
|
3977
|
-
const r =
|
|
3996
|
+
if (t in N && e in N[t])
|
|
3997
|
+
return N[t][e];
|
|
3998
|
+
const r = _e(t);
|
|
3978
3999
|
for (let n = 0; n < r.length; n++) {
|
|
3979
|
-
const i = r[n], o =
|
|
4000
|
+
const i = r[n], o = di(i, e);
|
|
3980
4001
|
if (o)
|
|
3981
|
-
return
|
|
4002
|
+
return pi(e, t, o);
|
|
3982
4003
|
}
|
|
3983
4004
|
};
|
|
3984
|
-
let
|
|
3985
|
-
const ne =
|
|
3986
|
-
function
|
|
3987
|
-
return
|
|
4005
|
+
let Ye;
|
|
4006
|
+
const ne = ye({});
|
|
4007
|
+
function mi(e) {
|
|
4008
|
+
return Ye[e] || null;
|
|
3988
4009
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return e in
|
|
4010
|
+
function ir(e) {
|
|
4011
|
+
return e in Ye;
|
|
3991
4012
|
}
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
4013
|
+
function di(e, t) {
|
|
4014
|
+
if (!ir(e))
|
|
3994
4015
|
return null;
|
|
3995
|
-
const r =
|
|
3996
|
-
return
|
|
4016
|
+
const r = mi(e);
|
|
4017
|
+
return fi(r, t);
|
|
3997
4018
|
}
|
|
3998
|
-
function
|
|
4019
|
+
function bi(e) {
|
|
3999
4020
|
if (e == null)
|
|
4000
4021
|
return;
|
|
4001
|
-
const t =
|
|
4022
|
+
const t = _e(e);
|
|
4002
4023
|
for (let r = 0; r < t.length; r++) {
|
|
4003
4024
|
const n = t[r];
|
|
4004
|
-
if (
|
|
4025
|
+
if (ir(n))
|
|
4005
4026
|
return n;
|
|
4006
4027
|
}
|
|
4007
4028
|
}
|
|
4008
|
-
function
|
|
4009
|
-
delete
|
|
4029
|
+
function or(e, ...t) {
|
|
4030
|
+
delete N[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
4010
4031
|
}
|
|
4011
|
-
|
|
4032
|
+
z(
|
|
4012
4033
|
[ne],
|
|
4013
4034
|
([e]) => Object.keys(e)
|
|
4014
4035
|
);
|
|
4015
|
-
ne.subscribe((e) =>
|
|
4036
|
+
ne.subscribe((e) => Ye = e);
|
|
4016
4037
|
const fe = {};
|
|
4017
|
-
function
|
|
4038
|
+
function gi(e, t) {
|
|
4018
4039
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4019
4040
|
}
|
|
4020
|
-
function
|
|
4041
|
+
function sr(e) {
|
|
4021
4042
|
return fe[e];
|
|
4022
4043
|
}
|
|
4023
|
-
function
|
|
4024
|
-
return
|
|
4025
|
-
const r =
|
|
4044
|
+
function yi(e) {
|
|
4045
|
+
return _e(e).map((t) => {
|
|
4046
|
+
const r = sr(t);
|
|
4026
4047
|
return [t, r ? [...r] : []];
|
|
4027
4048
|
}).filter(([, t]) => t.length > 0);
|
|
4028
4049
|
}
|
|
4029
|
-
function
|
|
4030
|
-
return e == null ? !1 :
|
|
4050
|
+
function We(e) {
|
|
4051
|
+
return e == null ? !1 : _e(e).some(
|
|
4031
4052
|
(t) => {
|
|
4032
4053
|
var r;
|
|
4033
|
-
return (r =
|
|
4054
|
+
return (r = sr(t)) == null ? void 0 : r.size;
|
|
4034
4055
|
}
|
|
4035
4056
|
);
|
|
4036
4057
|
}
|
|
4037
|
-
function
|
|
4058
|
+
function vi(e, t) {
|
|
4038
4059
|
return Promise.all(
|
|
4039
|
-
t.map((n) => (
|
|
4040
|
-
).then((n) =>
|
|
4041
|
-
}
|
|
4042
|
-
const
|
|
4043
|
-
function
|
|
4044
|
-
if (!
|
|
4045
|
-
return e in
|
|
4046
|
-
const t =
|
|
4047
|
-
return
|
|
4060
|
+
t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
|
|
4061
|
+
).then((n) => or(e, ...n));
|
|
4062
|
+
}
|
|
4063
|
+
const Q = {};
|
|
4064
|
+
function ar(e) {
|
|
4065
|
+
if (!We(e))
|
|
4066
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4067
|
+
const t = yi(e);
|
|
4068
|
+
return Q[e] = Promise.all(
|
|
4048
4069
|
t.map(
|
|
4049
|
-
([r, n]) =>
|
|
4070
|
+
([r, n]) => vi(r, n)
|
|
4050
4071
|
)
|
|
4051
4072
|
).then(() => {
|
|
4052
|
-
if (
|
|
4053
|
-
return
|
|
4054
|
-
delete
|
|
4055
|
-
}),
|
|
4073
|
+
if (We(e))
|
|
4074
|
+
return ar(e);
|
|
4075
|
+
delete Q[e];
|
|
4076
|
+
}), Q[e];
|
|
4056
4077
|
}
|
|
4057
|
-
const
|
|
4078
|
+
const Ei = {
|
|
4058
4079
|
number: {
|
|
4059
4080
|
scientific: { notation: "scientific" },
|
|
4060
4081
|
engineering: { notation: "engineering" },
|
|
@@ -4083,135 +4104,135 @@ const yi = {
|
|
|
4083
4104
|
timeZoneName: "short"
|
|
4084
4105
|
}
|
|
4085
4106
|
}
|
|
4086
|
-
},
|
|
4107
|
+
}, _i = {
|
|
4087
4108
|
fallbackLocale: null,
|
|
4088
4109
|
loadingDelay: 200,
|
|
4089
|
-
formats:
|
|
4110
|
+
formats: Ei,
|
|
4090
4111
|
warnOnMissingMessages: !0,
|
|
4091
4112
|
handleMissingMessage: void 0,
|
|
4092
4113
|
ignoreTag: !0
|
|
4093
|
-
},
|
|
4114
|
+
}, xi = _i;
|
|
4094
4115
|
function X() {
|
|
4095
|
-
return
|
|
4116
|
+
return xi;
|
|
4096
4117
|
}
|
|
4097
|
-
const
|
|
4098
|
-
var
|
|
4118
|
+
const Ie = ye(!1);
|
|
4119
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4099
4120
|
for (var r in t || (t = {}))
|
|
4100
|
-
|
|
4101
|
-
if (
|
|
4102
|
-
for (var r of
|
|
4103
|
-
|
|
4121
|
+
Bi.call(t, r) && wt(e, r, t[r]);
|
|
4122
|
+
if (St)
|
|
4123
|
+
for (var r of St(t))
|
|
4124
|
+
Hi.call(t, r) && wt(e, r, t[r]);
|
|
4104
4125
|
return e;
|
|
4105
|
-
},
|
|
4106
|
-
let
|
|
4107
|
-
const
|
|
4108
|
-
function
|
|
4126
|
+
}, Ai = (e, t) => wi(e, Ti(t));
|
|
4127
|
+
let Ze;
|
|
4128
|
+
const de = ye(null);
|
|
4129
|
+
function Tt(e) {
|
|
4109
4130
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4110
4131
|
}
|
|
4111
|
-
function
|
|
4112
|
-
const r =
|
|
4113
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4132
|
+
function _e(e, t = X().fallbackLocale) {
|
|
4133
|
+
const r = Tt(e);
|
|
4134
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4114
4135
|
}
|
|
4115
4136
|
function M() {
|
|
4116
|
-
return
|
|
4137
|
+
return Ze != null ? Ze : void 0;
|
|
4117
4138
|
}
|
|
4118
|
-
|
|
4119
|
-
|
|
4139
|
+
de.subscribe((e) => {
|
|
4140
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4120
4141
|
});
|
|
4121
|
-
const
|
|
4122
|
-
if (e &&
|
|
4142
|
+
const Oi = (e) => {
|
|
4143
|
+
if (e && bi(e) && We(e)) {
|
|
4123
4144
|
const { loadingDelay: t } = X();
|
|
4124
4145
|
let r;
|
|
4125
4146
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4126
|
-
() =>
|
|
4147
|
+
() => Ie.set(!0),
|
|
4127
4148
|
t
|
|
4128
|
-
) :
|
|
4129
|
-
|
|
4149
|
+
) : Ie.set(!0), ar(e).then(() => {
|
|
4150
|
+
de.set(e);
|
|
4130
4151
|
}).finally(() => {
|
|
4131
|
-
clearTimeout(r),
|
|
4152
|
+
clearTimeout(r), Ie.set(!1);
|
|
4132
4153
|
});
|
|
4133
4154
|
}
|
|
4134
|
-
return
|
|
4135
|
-
},
|
|
4136
|
-
set:
|
|
4137
|
-
}),
|
|
4155
|
+
return de.set(e);
|
|
4156
|
+
}, W = Ai(Pi({}, de), {
|
|
4157
|
+
set: Oi
|
|
4158
|
+
}), xe = (e) => {
|
|
4138
4159
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4139
4160
|
return (n) => {
|
|
4140
4161
|
const i = JSON.stringify(n);
|
|
4141
4162
|
return i in t ? t[i] : t[i] = e(n);
|
|
4142
4163
|
};
|
|
4143
4164
|
};
|
|
4144
|
-
var
|
|
4165
|
+
var Ii = Object.defineProperty, be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4145
4166
|
for (var r in t || (t = {}))
|
|
4146
|
-
|
|
4147
|
-
if (
|
|
4148
|
-
for (var r of
|
|
4149
|
-
|
|
4167
|
+
ur.call(t, r) && Bt(e, r, t[r]);
|
|
4168
|
+
if (be)
|
|
4169
|
+
for (var r of be(t))
|
|
4170
|
+
hr.call(t, r) && Bt(e, r, t[r]);
|
|
4150
4171
|
return e;
|
|
4151
|
-
},
|
|
4172
|
+
}, Z = (e, t) => {
|
|
4152
4173
|
var r = {};
|
|
4153
4174
|
for (var n in e)
|
|
4154
|
-
|
|
4155
|
-
if (e != null &&
|
|
4156
|
-
for (var n of
|
|
4157
|
-
t.indexOf(n) < 0 &&
|
|
4175
|
+
ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4176
|
+
if (e != null && be)
|
|
4177
|
+
for (var n of be(e))
|
|
4178
|
+
t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
|
|
4158
4179
|
return r;
|
|
4159
4180
|
};
|
|
4160
|
-
const
|
|
4181
|
+
const ee = (e, t) => {
|
|
4161
4182
|
const { formats: r } = X();
|
|
4162
4183
|
if (e in r && t in r[e])
|
|
4163
4184
|
return r[e][t];
|
|
4164
4185
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4165
|
-
},
|
|
4186
|
+
}, Ni = xe(
|
|
4166
4187
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4168
4189
|
if (r == null)
|
|
4169
4190
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4170
|
-
return n && (i =
|
|
4191
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4171
4192
|
}
|
|
4172
|
-
),
|
|
4193
|
+
), Li = xe(
|
|
4173
4194
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4195
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4175
4196
|
if (r == null)
|
|
4176
4197
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4177
|
-
return n ? i =
|
|
4198
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4178
4199
|
}
|
|
4179
|
-
),
|
|
4200
|
+
), Ci = xe(
|
|
4180
4201
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4202
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4182
4203
|
if (r == null)
|
|
4183
4204
|
throw new Error(
|
|
4184
4205
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4185
4206
|
);
|
|
4186
|
-
return n ? i =
|
|
4207
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4208
|
}
|
|
4188
|
-
),
|
|
4209
|
+
), Mi = (e = {}) => {
|
|
4189
4210
|
var t = e, {
|
|
4190
4211
|
locale: r = M()
|
|
4191
|
-
} = t, n =
|
|
4212
|
+
} = t, n = Z(t, [
|
|
4192
4213
|
"locale"
|
|
4193
4214
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4215
|
+
return Ni(qe({ locale: r }, n));
|
|
4216
|
+
}, $i = (e = {}) => {
|
|
4196
4217
|
var t = e, {
|
|
4197
4218
|
locale: r = M()
|
|
4198
|
-
} = t, n =
|
|
4219
|
+
} = t, n = Z(t, [
|
|
4199
4220
|
"locale"
|
|
4200
4221
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4222
|
+
return Li(qe({ locale: r }, n));
|
|
4223
|
+
}, Ri = (e = {}) => {
|
|
4203
4224
|
var t = e, {
|
|
4204
4225
|
locale: r = M()
|
|
4205
|
-
} = t, n =
|
|
4226
|
+
} = t, n = Z(t, [
|
|
4206
4227
|
"locale"
|
|
4207
4228
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4229
|
+
return Ci(qe({ locale: r }, n));
|
|
4230
|
+
}, Ui = xe(
|
|
4210
4231
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4211
|
-
(e, t = M()) => new
|
|
4232
|
+
(e, t = M()) => new ci(e, t, X().formats, {
|
|
4212
4233
|
ignoreTag: X().ignoreTag
|
|
4213
4234
|
})
|
|
4214
|
-
),
|
|
4235
|
+
), Di = (e, t = {}) => {
|
|
4215
4236
|
var r, n, i, o;
|
|
4216
4237
|
let s = t;
|
|
4217
4238
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4224,7 +4245,7 @@ const te = (e, t) => {
|
|
|
4224
4245
|
throw new Error(
|
|
4225
4246
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4226
4247
|
);
|
|
4227
|
-
let l =
|
|
4248
|
+
let l = nr(e, u);
|
|
4228
4249
|
if (!l)
|
|
4229
4250
|
l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4230
4251
|
else if (typeof l != "string")
|
|
@@ -4235,7 +4256,7 @@ const te = (e, t) => {
|
|
|
4235
4256
|
return l;
|
|
4236
4257
|
let c = l;
|
|
4237
4258
|
try {
|
|
4238
|
-
c =
|
|
4259
|
+
c = Ui(l, u).format(a);
|
|
4239
4260
|
} catch (f) {
|
|
4240
4261
|
f instanceof Error && console.warn(
|
|
4241
4262
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4243,20 +4264,20 @@ const te = (e, t) => {
|
|
|
4243
4264
|
);
|
|
4244
4265
|
}
|
|
4245
4266
|
return c;
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4267
|
+
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = M()) => nr(e, t), Vi = z([W, ne], () => Di);
|
|
4268
|
+
z([W], () => Gi);
|
|
4269
|
+
z([W], () => Fi);
|
|
4270
|
+
z([W], () => ji);
|
|
4271
|
+
z([W, ne], () => ki);
|
|
4251
4272
|
window.emWidgets = { topic: tn };
|
|
4252
4273
|
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4253
|
-
function
|
|
4254
|
-
|
|
4274
|
+
function Ht(e, t) {
|
|
4275
|
+
or(e, t);
|
|
4255
4276
|
}
|
|
4256
|
-
function
|
|
4257
|
-
|
|
4277
|
+
function Xi(e) {
|
|
4278
|
+
W.set(e);
|
|
4258
4279
|
}
|
|
4259
|
-
const
|
|
4280
|
+
const Pt = {
|
|
4260
4281
|
en: {
|
|
4261
4282
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4262
4283
|
},
|
|
@@ -4297,10 +4318,10 @@ const Bt = {
|
|
|
4297
4318
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4298
4319
|
}
|
|
4299
4320
|
};
|
|
4300
|
-
function Vi(e) {
|
|
4301
|
-
br(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4302
|
-
}
|
|
4303
4321
|
function zi(e) {
|
|
4322
|
+
gr(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4323
|
+
}
|
|
4324
|
+
function Wi(e) {
|
|
4304
4325
|
let t, r, n, i = (
|
|
4305
4326
|
/*customtext*/
|
|
4306
4327
|
(e[0] || /*$_*/
|
|
@@ -4308,13 +4329,13 @@ function zi(e) {
|
|
|
4308
4329
|
), o, s;
|
|
4309
4330
|
return {
|
|
4310
4331
|
c() {
|
|
4311
|
-
t =
|
|
4332
|
+
t = J("div"), r = J("div"), n = J("button"), o = Er(i), C(n, "class", "PanicButton " + (ae(
|
|
4312
4333
|
/*userAgent*/
|
|
4313
4334
|
e[6]
|
|
4314
4335
|
) !== "PC" ? "PanicButtonMobile" : "")), C(n, "part", "PanicButton " + (ae(
|
|
4315
4336
|
/*userAgent*/
|
|
4316
4337
|
e[6]
|
|
4317
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4338
|
+
) !== "PC" ? "PanicButtonMobile" : "")), ot(
|
|
4318
4339
|
n,
|
|
4319
4340
|
"PanicButtonAnimation",
|
|
4320
4341
|
/*panicLoading*/
|
|
@@ -4329,14 +4350,14 @@ function zi(e) {
|
|
|
4329
4350
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4330
4351
|
},
|
|
4331
4352
|
m(a, u) {
|
|
4332
|
-
|
|
4353
|
+
Nt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
|
|
4333
4354
|
},
|
|
4334
4355
|
p(a, [u]) {
|
|
4335
4356
|
u & /*customtext, $_*/
|
|
4336
4357
|
33 && i !== (i = /*customtext*/
|
|
4337
4358
|
(a[0] || /*$_*/
|
|
4338
4359
|
a[5]("panicButtonString")) + "") && xr(o, i), u & /*panicLoading*/
|
|
4339
|
-
16 &&
|
|
4360
|
+
16 && ot(
|
|
4340
4361
|
n,
|
|
4341
4362
|
"PanicButtonAnimation",
|
|
4342
4363
|
/*panicLoading*/
|
|
@@ -4348,63 +4369,63 @@ function zi(e) {
|
|
|
4348
4369
|
i: B,
|
|
4349
4370
|
o: B,
|
|
4350
4371
|
d(a) {
|
|
4351
|
-
a &&
|
|
4372
|
+
a && Je(t), e[12](null), e[13](null);
|
|
4352
4373
|
}
|
|
4353
4374
|
};
|
|
4354
4375
|
}
|
|
4355
|
-
function
|
|
4376
|
+
function Zi(e, t, r) {
|
|
4356
4377
|
let n;
|
|
4357
|
-
|
|
4358
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1,
|
|
4359
|
-
const
|
|
4378
|
+
br(e, Vi, (y) => r(5, n = y));
|
|
4379
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, T = window.navigator.userAgent;
|
|
4380
|
+
const L = () => {
|
|
4360
4381
|
fetch(l).then((R) => R.json()).then((R) => {
|
|
4361
|
-
Object.keys(R).forEach((
|
|
4362
|
-
|
|
4382
|
+
Object.keys(R).forEach((Ke) => {
|
|
4383
|
+
Ht(Ke, R[Ke]);
|
|
4363
4384
|
});
|
|
4364
4385
|
}).catch((R) => {
|
|
4365
4386
|
console.log(R);
|
|
4366
4387
|
});
|
|
4367
4388
|
};
|
|
4368
|
-
Object.keys(
|
|
4369
|
-
|
|
4389
|
+
Object.keys(Pt).forEach((y) => {
|
|
4390
|
+
Ht(y, Pt[y]);
|
|
4370
4391
|
});
|
|
4371
4392
|
const I = () => {
|
|
4372
4393
|
c == null || c.addEventListener("mousedown", H, !1), c == null || c.addEventListener("touchstart", H, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
|
|
4373
|
-
},
|
|
4394
|
+
}, x = () => {
|
|
4374
4395
|
r(4, m = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
|
|
4375
4396
|
}, H = () => {
|
|
4376
|
-
|
|
4397
|
+
g = 0, r(4, m = !0), b = setInterval(
|
|
4377
4398
|
() => {
|
|
4378
|
-
|
|
4399
|
+
g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4379
4400
|
},
|
|
4380
4401
|
1e3
|
|
4381
4402
|
);
|
|
4382
4403
|
}, S = () => {
|
|
4383
|
-
r(4, m = !1), clearInterval(
|
|
4404
|
+
r(4, m = !1), clearInterval(b);
|
|
4384
4405
|
};
|
|
4385
4406
|
Tr(() => () => {
|
|
4386
|
-
|
|
4407
|
+
x();
|
|
4387
4408
|
});
|
|
4388
|
-
function $(
|
|
4389
|
-
pe[
|
|
4390
|
-
c =
|
|
4409
|
+
function $(y) {
|
|
4410
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4411
|
+
c = y, r(2, c);
|
|
4391
4412
|
});
|
|
4392
4413
|
}
|
|
4393
|
-
function ie(
|
|
4394
|
-
pe[
|
|
4395
|
-
f =
|
|
4414
|
+
function ie(y) {
|
|
4415
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4416
|
+
f = y, r(3, f);
|
|
4396
4417
|
});
|
|
4397
4418
|
}
|
|
4398
|
-
return e.$$set = (
|
|
4399
|
-
"lang" in
|
|
4419
|
+
return e.$$set = (y) => {
|
|
4420
|
+
"lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
|
|
4400
4421
|
}, e.$$.update = () => {
|
|
4401
4422
|
e.$$.dirty & /*panicButton*/
|
|
4402
4423
|
4 && c && I(), e.$$.dirty & /*lang*/
|
|
4403
|
-
128 && i &&
|
|
4404
|
-
264 && s && f &&
|
|
4405
|
-
520 && a && f &&
|
|
4424
|
+
128 && i && Xi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4425
|
+
264 && s && f && Dr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4426
|
+
520 && a && f && Gr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4406
4427
|
1032 && u && f && Fr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4407
|
-
2048 && l &&
|
|
4428
|
+
2048 && l && L();
|
|
4408
4429
|
}, [
|
|
4409
4430
|
o,
|
|
4410
4431
|
h,
|
|
@@ -4412,7 +4433,7 @@ function Xi(e, t, r) {
|
|
|
4412
4433
|
f,
|
|
4413
4434
|
m,
|
|
4414
4435
|
n,
|
|
4415
|
-
|
|
4436
|
+
T,
|
|
4416
4437
|
i,
|
|
4417
4438
|
s,
|
|
4418
4439
|
a,
|
|
@@ -4422,14 +4443,14 @@ function Xi(e, t, r) {
|
|
|
4422
4443
|
ie
|
|
4423
4444
|
];
|
|
4424
4445
|
}
|
|
4425
|
-
class
|
|
4446
|
+
class Qi extends Rr {
|
|
4426
4447
|
constructor(t) {
|
|
4427
|
-
super(),
|
|
4448
|
+
super(), Mr(
|
|
4428
4449
|
this,
|
|
4429
4450
|
t,
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4451
|
+
Zi,
|
|
4452
|
+
Wi,
|
|
4453
|
+
Ot,
|
|
4433
4454
|
{
|
|
4434
4455
|
lang: 7,
|
|
4435
4456
|
customtext: 0,
|
|
@@ -4439,53 +4460,53 @@ class Wi extends $r {
|
|
|
4439
4460
|
alternativestyling: 1,
|
|
4440
4461
|
translationurl: 11
|
|
4441
4462
|
},
|
|
4442
|
-
|
|
4463
|
+
zi
|
|
4443
4464
|
);
|
|
4444
4465
|
}
|
|
4445
4466
|
get lang() {
|
|
4446
4467
|
return this.$$.ctx[7];
|
|
4447
4468
|
}
|
|
4448
4469
|
set lang(t) {
|
|
4449
|
-
this.$$set({ lang: t }),
|
|
4470
|
+
this.$$set({ lang: t }), A();
|
|
4450
4471
|
}
|
|
4451
4472
|
get customtext() {
|
|
4452
4473
|
return this.$$.ctx[0];
|
|
4453
4474
|
}
|
|
4454
4475
|
set customtext(t) {
|
|
4455
|
-
this.$$set({ customtext: t }),
|
|
4476
|
+
this.$$set({ customtext: t }), A();
|
|
4456
4477
|
}
|
|
4457
4478
|
get clientstyling() {
|
|
4458
4479
|
return this.$$.ctx[8];
|
|
4459
4480
|
}
|
|
4460
4481
|
set clientstyling(t) {
|
|
4461
|
-
this.$$set({ clientstyling: t }),
|
|
4482
|
+
this.$$set({ clientstyling: t }), A();
|
|
4462
4483
|
}
|
|
4463
4484
|
get clientstylingurl() {
|
|
4464
4485
|
return this.$$.ctx[9];
|
|
4465
4486
|
}
|
|
4466
4487
|
set clientstylingurl(t) {
|
|
4467
|
-
this.$$set({ clientstylingurl: t }),
|
|
4488
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4468
4489
|
}
|
|
4469
4490
|
get mbsource() {
|
|
4470
4491
|
return this.$$.ctx[10];
|
|
4471
4492
|
}
|
|
4472
4493
|
set mbsource(t) {
|
|
4473
|
-
this.$$set({ mbsource: t }),
|
|
4494
|
+
this.$$set({ mbsource: t }), A();
|
|
4474
4495
|
}
|
|
4475
4496
|
get alternativestyling() {
|
|
4476
4497
|
return this.$$.ctx[1];
|
|
4477
4498
|
}
|
|
4478
4499
|
set alternativestyling(t) {
|
|
4479
|
-
this.$$set({ alternativestyling: t }),
|
|
4500
|
+
this.$$set({ alternativestyling: t }), A();
|
|
4480
4501
|
}
|
|
4481
4502
|
get translationurl() {
|
|
4482
4503
|
return this.$$.ctx[11];
|
|
4483
4504
|
}
|
|
4484
4505
|
set translationurl(t) {
|
|
4485
|
-
this.$$set({ translationurl: t }),
|
|
4506
|
+
this.$$set({ translationurl: t }), A();
|
|
4486
4507
|
}
|
|
4487
4508
|
}
|
|
4488
|
-
|
|
4509
|
+
$r(Qi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4489
4510
|
export {
|
|
4490
|
-
|
|
4511
|
+
Qi as default
|
|
4491
4512
|
};
|