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