@everymatrix/player-panic-button 1.87.26 → 1.87.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerPanicButton-DNDWY2ao.js → PlayerPanicButton-CcRWqzit.js} +758 -730
- package/components/PlayerPanicButton-D84uQH3i.cjs +18 -0
- package/components/{PlayerPanicButton-Dp119ZFH.js → PlayerPanicButton-DgGAFxFx.js} +782 -753
- 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-BxpbhLJE.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fr = Object.defineProperty, pr = Object.defineProperties;
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var tt = Object.getOwnPropertySymbols;
|
|
4
|
+
var dr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
dr.call(t, r) && we(e, r, t[r]);
|
|
8
|
+
if (tt)
|
|
9
|
+
for (var r of tt(t))
|
|
10
|
+
br.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, nt = (e, t) => pr(e, mr(t));
|
|
13
|
+
var T = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var it = (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 Ot(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ot() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Ot);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Je(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function It(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function gr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nt(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 yr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Nt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function he(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function vr(e, t, r) {
|
|
66
|
+
const n = Er(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, _r(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Er(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
|
|
83
|
-
return
|
|
82
|
+
function _r(e, t) {
|
|
83
|
+
return he(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Lt(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ye(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 xr(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function M(e, t, r) {
|
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Sr(e) {
|
|
105
105
|
return Array.from(e.childNodes);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function wr(e, t) {
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function st(e, t, r) {
|
|
112
112
|
e.classList.toggle(t, !!r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Tr(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 Br() {
|
|
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 Hr(e) {
|
|
133
|
+
Br().$$.on_mount.push(e);
|
|
134
134
|
}
|
|
135
|
-
const G = [],
|
|
136
|
-
let
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
135
|
+
const G = [], me = [];
|
|
136
|
+
let j = [];
|
|
137
|
+
const at = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
138
|
+
let Le = !1;
|
|
139
|
+
function Ar() {
|
|
140
|
+
Le || (Le = !0, Pr.then(A));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Ce(e) {
|
|
143
|
+
j.push(e);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Te = /* @__PURE__ */ new Set();
|
|
146
146
|
let U = 0;
|
|
147
147
|
function A() {
|
|
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), Or(t.$$);
|
|
156
156
|
}
|
|
157
157
|
} catch (t) {
|
|
158
158
|
throw G.length = 0, U = 0, t;
|
|
159
159
|
}
|
|
160
|
-
for (
|
|
161
|
-
|
|
162
|
-
for (let t = 0; t <
|
|
163
|
-
const r =
|
|
164
|
-
|
|
160
|
+
for (q(null), G.length = 0, U = 0; me.length; )
|
|
161
|
+
me.pop()();
|
|
162
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
163
|
+
const r = j[t];
|
|
164
|
+
Te.has(r) || (Te.add(r), r());
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
j.length = 0;
|
|
167
167
|
} while (G.length);
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
for (; at.length; )
|
|
169
|
+
at.pop()();
|
|
170
|
+
Le = !1, Te.clear(), q(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Or(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(Ce);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ir(e) {
|
|
180
180
|
const t = [], r = [];
|
|
181
|
-
|
|
181
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
183
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
184
|
+
function Lr(e, t) {
|
|
185
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Cr(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), Ce(() => {
|
|
190
|
+
const o = e.$$.on_mount.map(Ot).filter(Je);
|
|
191
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
192
|
+
}), i.forEach(Ce);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Mr(e, t) {
|
|
195
195
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
196
|
+
r.fragment !== null && (Ir(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 $r(e, t) {
|
|
199
|
+
e.$$.dirty[0] === -1 && (G.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const u =
|
|
203
|
-
|
|
201
|
+
function Rr(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: ot(),
|
|
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: ot(),
|
|
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 ? r(e, t.props || {}, (c, f, ...
|
|
228
|
-
const g =
|
|
229
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l &&
|
|
230
|
-
}) : [], h.update(), l = !0,
|
|
227
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
228
|
+
const g = d.length ? d[0] : f;
|
|
229
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && $r(e, c)), f;
|
|
230
|
+
}) : [], h.update(), l = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
|
-
const c =
|
|
233
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
232
|
+
const c = Sr(t.target);
|
|
233
|
+
h.fragment && h.fragment.l(c), c.forEach(Ye);
|
|
234
234
|
} else
|
|
235
235
|
h.fragment && h.fragment.c();
|
|
236
|
-
t.intro &&
|
|
236
|
+
t.intro && Lr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
q(u);
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
240
|
+
let Ct;
|
|
241
|
+
typeof HTMLElement == "function" && (Ct = 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,42 +275,42 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
connectedCallback() {
|
|
278
|
-
return
|
|
278
|
+
return it(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" && M(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
|
+
Lt(h, s, l);
|
|
293
293
|
},
|
|
294
294
|
d: function(h) {
|
|
295
|
-
h &&
|
|
295
|
+
h && Ye(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 = Tr(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) {
|
|
306
306
|
const s = this.$$g_p(o.name);
|
|
307
|
-
s in this.$$d || (this.$$d[s] =
|
|
307
|
+
s in this.$$d || (this.$$d[s] = le(s, o.value, this.$$p_d, "toProp"));
|
|
308
308
|
}
|
|
309
309
|
for (const o in this.$$p_d)
|
|
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: rt(
|
|
313
|
+
props: nt(rt({}, this.$$d), {
|
|
314
314
|
$$slots: r,
|
|
315
315
|
$$scope: {
|
|
316
316
|
ctx: []
|
|
@@ -321,7 +321,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
321
321
|
this.$$r = !0;
|
|
322
322
|
for (const o in this.$$p_d)
|
|
323
323
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
324
|
-
const s =
|
|
324
|
+
const s = le(
|
|
325
325
|
o,
|
|
326
326
|
this.$$d[o],
|
|
327
327
|
this.$$p_d,
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
345
345
|
// and setting attributes through setAttribute etc, this is helpful
|
|
346
346
|
attributeChangedCallback(t, r, n) {
|
|
347
347
|
var i;
|
|
348
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
348
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
349
349
|
}
|
|
350
350
|
disconnectedCallback() {
|
|
351
351
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
358
358
|
) || t;
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
|
-
function
|
|
361
|
+
function le(e, t, r, n) {
|
|
362
362
|
var o;
|
|
363
363
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
364
364
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -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 Ur(e, t, r, n, i, o) {
|
|
392
|
+
let s = class extends Ct {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, r, i), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -406,7 +406,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
406
406
|
},
|
|
407
407
|
set(u) {
|
|
408
408
|
var h;
|
|
409
|
-
u =
|
|
409
|
+
u = le(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}), n.forEach((a) => {
|
|
@@ -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 Dr {
|
|
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
|
+
Mr(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 (!Je(r))
|
|
453
453
|
return B;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,18 +462,19 @@ class Rr {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !gr(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
|
-
|
|
468
|
+
const Gr = "4";
|
|
469
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
|
470
|
+
const F = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
471
|
+
function Fr(e, t) {
|
|
471
472
|
if (e) {
|
|
472
473
|
const r = document.createElement("style");
|
|
473
474
|
r.innerHTML = t, e.appendChild(r);
|
|
474
475
|
}
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function jr(e, t) {
|
|
477
478
|
if (!e || !t)
|
|
478
479
|
return;
|
|
479
480
|
const r = new URL(t);
|
|
@@ -484,13 +485,41 @@ function Gr(e, t) {
|
|
|
484
485
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
485
486
|
});
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
-
if (window.emMessageBus)
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
488
|
+
function kr(e, t, r, n = !1) {
|
|
489
|
+
if (!window.emMessageBus)
|
|
490
|
+
return;
|
|
491
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
492
|
+
return r = Vr(e, t), r;
|
|
493
|
+
window[F] || (window[F] = {}), r = Xr(e, t);
|
|
494
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
495
|
+
if (window[F][t]) {
|
|
496
|
+
const a = window[F][t];
|
|
497
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[F][t];
|
|
498
|
+
}
|
|
499
|
+
o();
|
|
500
|
+
};
|
|
501
|
+
return r.unsubscribe = s, r;
|
|
502
|
+
}
|
|
503
|
+
function Vr(e, t) {
|
|
504
|
+
const r = document.createElement("style");
|
|
505
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
506
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function Xr(e, t) {
|
|
510
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
511
|
+
var a;
|
|
512
|
+
if (!e)
|
|
513
|
+
return;
|
|
514
|
+
const n = e.getRootNode(), i = window[F];
|
|
515
|
+
let o = (a = i[t]) == null ? void 0 : a.sheet;
|
|
516
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
517
|
+
sheet: o,
|
|
518
|
+
refCount: 1
|
|
492
519
|
});
|
|
493
|
-
|
|
520
|
+
const s = n.adoptedStyleSheets || [];
|
|
521
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
522
|
+
});
|
|
494
523
|
}
|
|
495
524
|
/*! *****************************************************************************
|
|
496
525
|
Copyright (c) Microsoft Corporation.
|
|
@@ -506,24 +535,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
506
535
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
507
536
|
PERFORMANCE OF THIS SOFTWARE.
|
|
508
537
|
***************************************************************************** */
|
|
509
|
-
var
|
|
510
|
-
return
|
|
538
|
+
var Me = function(e, t) {
|
|
539
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
511
540
|
r.__proto__ = n;
|
|
512
541
|
} || function(r, n) {
|
|
513
542
|
for (var i in n)
|
|
514
543
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
515
|
-
},
|
|
544
|
+
}, Me(e, t);
|
|
516
545
|
};
|
|
517
|
-
function
|
|
546
|
+
function ne(e, t) {
|
|
518
547
|
if (typeof t != "function" && t !== null)
|
|
519
548
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
520
|
-
|
|
549
|
+
Me(e, t);
|
|
521
550
|
function r() {
|
|
522
551
|
this.constructor = e;
|
|
523
552
|
}
|
|
524
553
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
525
554
|
}
|
|
526
|
-
function
|
|
555
|
+
function $e(e) {
|
|
527
556
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
528
557
|
if (r)
|
|
529
558
|
return r.call(e);
|
|
@@ -535,7 +564,7 @@ function Me(e) {
|
|
|
535
564
|
};
|
|
536
565
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
537
566
|
}
|
|
538
|
-
function
|
|
567
|
+
function Re(e, t) {
|
|
539
568
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
540
569
|
if (!r)
|
|
541
570
|
return e;
|
|
@@ -555,7 +584,7 @@ function $e(e, t) {
|
|
|
555
584
|
}
|
|
556
585
|
return o;
|
|
557
586
|
}
|
|
558
|
-
function
|
|
587
|
+
function Ue(e, t, r) {
|
|
559
588
|
if (arguments.length === 2)
|
|
560
589
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
561
590
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -564,13 +593,13 @@ function Re(e, t, r) {
|
|
|
564
593
|
function O(e) {
|
|
565
594
|
return typeof e == "function";
|
|
566
595
|
}
|
|
567
|
-
function
|
|
596
|
+
function Mt(e) {
|
|
568
597
|
var t = function(n) {
|
|
569
598
|
Error.call(n), n.stack = new Error().stack;
|
|
570
599
|
}, r = e(t);
|
|
571
600
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
572
601
|
}
|
|
573
|
-
var
|
|
602
|
+
var Be = Mt(function(e) {
|
|
574
603
|
return function(r) {
|
|
575
604
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
576
605
|
` + r.map(function(n, i) {
|
|
@@ -579,13 +608,13 @@ var Te = Ct(function(e) {
|
|
|
579
608
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
580
609
|
};
|
|
581
610
|
});
|
|
582
|
-
function
|
|
611
|
+
function De(e, t) {
|
|
583
612
|
if (e) {
|
|
584
613
|
var r = e.indexOf(t);
|
|
585
614
|
0 <= r && e.splice(r, 1);
|
|
586
615
|
}
|
|
587
616
|
}
|
|
588
|
-
var
|
|
617
|
+
var ye = function() {
|
|
589
618
|
function e(t) {
|
|
590
619
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
591
620
|
}
|
|
@@ -597,7 +626,7 @@ var ge = function() {
|
|
|
597
626
|
if (s)
|
|
598
627
|
if (this._parentage = null, Array.isArray(s))
|
|
599
628
|
try {
|
|
600
|
-
for (var a =
|
|
629
|
+
for (var a = $e(s), u = a.next(); !u.done; u = a.next()) {
|
|
601
630
|
var h = u.value;
|
|
602
631
|
h.remove(this);
|
|
603
632
|
}
|
|
@@ -618,25 +647,25 @@ var ge = function() {
|
|
|
618
647
|
try {
|
|
619
648
|
l();
|
|
620
649
|
} catch (b) {
|
|
621
|
-
o = b instanceof
|
|
650
|
+
o = b instanceof Be ? b.errors : [b];
|
|
622
651
|
}
|
|
623
652
|
var c = this._finalizers;
|
|
624
653
|
if (c) {
|
|
625
654
|
this._finalizers = null;
|
|
626
655
|
try {
|
|
627
|
-
for (var f =
|
|
628
|
-
var g =
|
|
656
|
+
for (var f = $e(c), d = f.next(); !d.done; d = f.next()) {
|
|
657
|
+
var g = d.value;
|
|
629
658
|
try {
|
|
630
|
-
|
|
659
|
+
ut(g);
|
|
631
660
|
} catch (b) {
|
|
632
|
-
o = o != null ? o : [], b instanceof
|
|
661
|
+
o = o != null ? o : [], b instanceof Be ? o = Ue(Ue([], Re(o)), Re(b.errors)) : o.push(b);
|
|
633
662
|
}
|
|
634
663
|
}
|
|
635
664
|
} catch (b) {
|
|
636
665
|
n = { error: b };
|
|
637
666
|
} finally {
|
|
638
667
|
try {
|
|
639
|
-
|
|
668
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
640
669
|
} finally {
|
|
641
670
|
if (n)
|
|
642
671
|
throw n.error;
|
|
@@ -644,13 +673,13 @@ var ge = function() {
|
|
|
644
673
|
}
|
|
645
674
|
}
|
|
646
675
|
if (o)
|
|
647
|
-
throw new
|
|
676
|
+
throw new Be(o);
|
|
648
677
|
}
|
|
649
678
|
}, e.prototype.add = function(t) {
|
|
650
679
|
var r;
|
|
651
680
|
if (t && t !== this)
|
|
652
681
|
if (this.closed)
|
|
653
|
-
|
|
682
|
+
ut(t);
|
|
654
683
|
else {
|
|
655
684
|
if (t instanceof e) {
|
|
656
685
|
if (t.closed || t._hasParent(this))
|
|
@@ -667,52 +696,52 @@ var ge = function() {
|
|
|
667
696
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
668
697
|
}, e.prototype._removeParent = function(t) {
|
|
669
698
|
var r = this._parentage;
|
|
670
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
699
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
671
700
|
}, e.prototype.remove = function(t) {
|
|
672
701
|
var r = this._finalizers;
|
|
673
|
-
r &&
|
|
702
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
674
703
|
}, e.EMPTY = function() {
|
|
675
704
|
var t = new e();
|
|
676
705
|
return t.closed = !0, t;
|
|
677
706
|
}(), e;
|
|
678
|
-
}(),
|
|
679
|
-
function
|
|
680
|
-
return e instanceof
|
|
707
|
+
}(), $t = ye.EMPTY;
|
|
708
|
+
function Rt(e) {
|
|
709
|
+
return e instanceof ye || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
681
710
|
}
|
|
682
|
-
function
|
|
711
|
+
function ut(e) {
|
|
683
712
|
O(e) ? e() : e.unsubscribe();
|
|
684
713
|
}
|
|
685
|
-
var
|
|
714
|
+
var zr = {
|
|
686
715
|
Promise: void 0
|
|
687
|
-
},
|
|
716
|
+
}, Wr = {
|
|
688
717
|
setTimeout: function(e, t) {
|
|
689
718
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
690
719
|
r[n - 2] = arguments[n];
|
|
691
|
-
return setTimeout.apply(void 0,
|
|
720
|
+
return setTimeout.apply(void 0, Ue([e, t], Re(r)));
|
|
692
721
|
},
|
|
693
722
|
clearTimeout: function(e) {
|
|
694
723
|
return clearTimeout(e);
|
|
695
724
|
},
|
|
696
725
|
delegate: void 0
|
|
697
726
|
};
|
|
698
|
-
function
|
|
699
|
-
|
|
727
|
+
function Zr(e) {
|
|
728
|
+
Wr.setTimeout(function() {
|
|
700
729
|
throw e;
|
|
701
730
|
});
|
|
702
731
|
}
|
|
703
|
-
function
|
|
732
|
+
function ht() {
|
|
704
733
|
}
|
|
705
|
-
function
|
|
734
|
+
function ce(e) {
|
|
706
735
|
e();
|
|
707
736
|
}
|
|
708
|
-
var
|
|
709
|
-
|
|
737
|
+
var Ut = function(e) {
|
|
738
|
+
ne(t, e);
|
|
710
739
|
function t(r) {
|
|
711
740
|
var n = e.call(this) || this;
|
|
712
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
741
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Yr, n;
|
|
713
742
|
}
|
|
714
743
|
return t.create = function(r, n, i) {
|
|
715
|
-
return new
|
|
744
|
+
return new Ge(r, n, i);
|
|
716
745
|
}, t.prototype.next = function(r) {
|
|
717
746
|
this.isStopped || this._next(r);
|
|
718
747
|
}, t.prototype.error = function(r) {
|
|
@@ -736,7 +765,7 @@ var Rt = function(e) {
|
|
|
736
765
|
this.unsubscribe();
|
|
737
766
|
}
|
|
738
767
|
}, t;
|
|
739
|
-
}(
|
|
768
|
+
}(ye), Qr = function() {
|
|
740
769
|
function e(t) {
|
|
741
770
|
this.partialObserver = t;
|
|
742
771
|
}
|
|
@@ -746,7 +775,7 @@ var Rt = function(e) {
|
|
|
746
775
|
try {
|
|
747
776
|
r.next(t);
|
|
748
777
|
} catch (n) {
|
|
749
|
-
|
|
778
|
+
se(n);
|
|
750
779
|
}
|
|
751
780
|
}, e.prototype.error = function(t) {
|
|
752
781
|
var r = this.partialObserver;
|
|
@@ -754,56 +783,56 @@ var Rt = function(e) {
|
|
|
754
783
|
try {
|
|
755
784
|
r.error(t);
|
|
756
785
|
} catch (n) {
|
|
757
|
-
|
|
786
|
+
se(n);
|
|
758
787
|
}
|
|
759
788
|
else
|
|
760
|
-
|
|
789
|
+
se(t);
|
|
761
790
|
}, e.prototype.complete = function() {
|
|
762
791
|
var t = this.partialObserver;
|
|
763
792
|
if (t.complete)
|
|
764
793
|
try {
|
|
765
794
|
t.complete();
|
|
766
795
|
} catch (r) {
|
|
767
|
-
|
|
796
|
+
se(r);
|
|
768
797
|
}
|
|
769
798
|
}, e;
|
|
770
|
-
}(),
|
|
771
|
-
|
|
799
|
+
}(), Ge = function(e) {
|
|
800
|
+
ne(t, e);
|
|
772
801
|
function t(r, n, i) {
|
|
773
802
|
var o = e.call(this) || this, s;
|
|
774
803
|
return O(r) || !r ? s = {
|
|
775
804
|
next: r != null ? r : void 0,
|
|
776
805
|
error: n != null ? n : void 0,
|
|
777
806
|
complete: i != null ? i : void 0
|
|
778
|
-
} : s = r, o.destination = new
|
|
807
|
+
} : s = r, o.destination = new Qr(s), o;
|
|
779
808
|
}
|
|
780
809
|
return t;
|
|
781
|
-
}(
|
|
782
|
-
function
|
|
783
|
-
|
|
810
|
+
}(Ut);
|
|
811
|
+
function se(e) {
|
|
812
|
+
Zr(e);
|
|
784
813
|
}
|
|
785
|
-
function
|
|
814
|
+
function Jr(e) {
|
|
786
815
|
throw e;
|
|
787
816
|
}
|
|
788
|
-
var
|
|
817
|
+
var Yr = {
|
|
789
818
|
closed: !0,
|
|
790
|
-
next:
|
|
791
|
-
error:
|
|
792
|
-
complete:
|
|
793
|
-
},
|
|
819
|
+
next: ht,
|
|
820
|
+
error: Jr,
|
|
821
|
+
complete: ht
|
|
822
|
+
}, qr = function() {
|
|
794
823
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
795
824
|
}();
|
|
796
|
-
function
|
|
825
|
+
function Kr(e) {
|
|
797
826
|
return e;
|
|
798
827
|
}
|
|
799
|
-
function
|
|
800
|
-
return e.length === 0 ?
|
|
828
|
+
function en(e) {
|
|
829
|
+
return e.length === 0 ? Kr : e.length === 1 ? e[0] : function(r) {
|
|
801
830
|
return e.reduce(function(n, i) {
|
|
802
831
|
return i(n);
|
|
803
832
|
}, r);
|
|
804
833
|
};
|
|
805
834
|
}
|
|
806
|
-
var
|
|
835
|
+
var lt = function() {
|
|
807
836
|
function e(t) {
|
|
808
837
|
t && (this._subscribe = t);
|
|
809
838
|
}
|
|
@@ -811,8 +840,8 @@ var ht = function() {
|
|
|
811
840
|
var r = new e();
|
|
812
841
|
return r.source = this, r.operator = t, r;
|
|
813
842
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
814
|
-
var i = this, o =
|
|
815
|
-
return
|
|
843
|
+
var i = this, o = rn(t) ? t : new Ge(t, r, n);
|
|
844
|
+
return ce(function() {
|
|
816
845
|
var s = i, a = s.operator, u = s.source;
|
|
817
846
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
818
847
|
}), o;
|
|
@@ -824,8 +853,8 @@ var ht = function() {
|
|
|
824
853
|
}
|
|
825
854
|
}, e.prototype.forEach = function(t, r) {
|
|
826
855
|
var n = this;
|
|
827
|
-
return r =
|
|
828
|
-
var s = new
|
|
856
|
+
return r = ct(r), new r(function(i, o) {
|
|
857
|
+
var s = new Ge({
|
|
829
858
|
next: function(a) {
|
|
830
859
|
try {
|
|
831
860
|
t(a);
|
|
@@ -841,15 +870,15 @@ var ht = function() {
|
|
|
841
870
|
}, e.prototype._subscribe = function(t) {
|
|
842
871
|
var r;
|
|
843
872
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
844
|
-
}, e.prototype[
|
|
873
|
+
}, e.prototype[qr] = function() {
|
|
845
874
|
return this;
|
|
846
875
|
}, e.prototype.pipe = function() {
|
|
847
876
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
848
877
|
t[r] = arguments[r];
|
|
849
|
-
return
|
|
878
|
+
return en(t)(this);
|
|
850
879
|
}, e.prototype.toPromise = function(t) {
|
|
851
880
|
var r = this;
|
|
852
|
-
return t =
|
|
881
|
+
return t = ct(t), new t(function(n, i) {
|
|
853
882
|
var o;
|
|
854
883
|
r.subscribe(function(s) {
|
|
855
884
|
return o = s;
|
|
@@ -863,40 +892,40 @@ var ht = function() {
|
|
|
863
892
|
return new e(t);
|
|
864
893
|
}, e;
|
|
865
894
|
}();
|
|
866
|
-
function
|
|
895
|
+
function ct(e) {
|
|
867
896
|
var t;
|
|
868
|
-
return (t = e != null ? e :
|
|
897
|
+
return (t = e != null ? e : zr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
869
898
|
}
|
|
870
|
-
function
|
|
899
|
+
function tn(e) {
|
|
871
900
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
872
901
|
}
|
|
873
|
-
function
|
|
874
|
-
return e && e instanceof
|
|
902
|
+
function rn(e) {
|
|
903
|
+
return e && e instanceof Ut || tn(e) && Rt(e);
|
|
875
904
|
}
|
|
876
|
-
var
|
|
905
|
+
var nn = Mt(function(e) {
|
|
877
906
|
return function() {
|
|
878
907
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
879
908
|
};
|
|
880
|
-
}),
|
|
881
|
-
|
|
909
|
+
}), Dt = function(e) {
|
|
910
|
+
ne(t, e);
|
|
882
911
|
function t() {
|
|
883
912
|
var r = e.call(this) || this;
|
|
884
913
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
885
914
|
}
|
|
886
915
|
return t.prototype.lift = function(r) {
|
|
887
|
-
var n = new
|
|
916
|
+
var n = new ft(this, this);
|
|
888
917
|
return n.operator = r, n;
|
|
889
918
|
}, t.prototype._throwIfClosed = function() {
|
|
890
919
|
if (this.closed)
|
|
891
|
-
throw new
|
|
920
|
+
throw new nn();
|
|
892
921
|
}, t.prototype.next = function(r) {
|
|
893
922
|
var n = this;
|
|
894
|
-
|
|
923
|
+
ce(function() {
|
|
895
924
|
var i, o;
|
|
896
925
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
897
926
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
898
927
|
try {
|
|
899
|
-
for (var s =
|
|
928
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
900
929
|
var u = a.value;
|
|
901
930
|
u.next(r);
|
|
902
931
|
}
|
|
@@ -914,7 +943,7 @@ var Kr = Ct(function(e) {
|
|
|
914
943
|
});
|
|
915
944
|
}, t.prototype.error = function(r) {
|
|
916
945
|
var n = this;
|
|
917
|
-
|
|
946
|
+
ce(function() {
|
|
918
947
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
919
948
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
920
949
|
for (var i = n.observers; i.length; )
|
|
@@ -923,7 +952,7 @@ var Kr = Ct(function(e) {
|
|
|
923
952
|
});
|
|
924
953
|
}, t.prototype.complete = function() {
|
|
925
954
|
var r = this;
|
|
926
|
-
|
|
955
|
+
ce(function() {
|
|
927
956
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
928
957
|
r.isStopped = !0;
|
|
929
958
|
for (var n = r.observers; n.length; )
|
|
@@ -945,20 +974,20 @@ var Kr = Ct(function(e) {
|
|
|
945
974
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
946
975
|
}, t.prototype._innerSubscribe = function(r) {
|
|
947
976
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
948
|
-
return o || s ?
|
|
949
|
-
n.currentObservers = null,
|
|
977
|
+
return o || s ? $t : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
978
|
+
n.currentObservers = null, De(a, r);
|
|
950
979
|
}));
|
|
951
980
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
952
981
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
953
982
|
i ? r.error(o) : s && r.complete();
|
|
954
983
|
}, t.prototype.asObservable = function() {
|
|
955
|
-
var r = new
|
|
984
|
+
var r = new lt();
|
|
956
985
|
return r.source = this, r;
|
|
957
986
|
}, t.create = function(r, n) {
|
|
958
|
-
return new
|
|
987
|
+
return new ft(r, n);
|
|
959
988
|
}, t;
|
|
960
|
-
}(
|
|
961
|
-
|
|
989
|
+
}(lt), ft = function(e) {
|
|
990
|
+
ne(t, e);
|
|
962
991
|
function t(r, n) {
|
|
963
992
|
var i = e.call(this) || this;
|
|
964
993
|
return i.destination = r, i.source = n, i;
|
|
@@ -974,17 +1003,17 @@ var Kr = Ct(function(e) {
|
|
|
974
1003
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
975
1004
|
}, t.prototype._subscribe = function(r) {
|
|
976
1005
|
var n, i;
|
|
977
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1006
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
|
|
978
1007
|
}, t;
|
|
979
|
-
}(
|
|
1008
|
+
}(Dt), Gt = {
|
|
980
1009
|
now: function() {
|
|
981
|
-
return (
|
|
1010
|
+
return (Gt.delegate || Date).now();
|
|
982
1011
|
},
|
|
983
1012
|
delegate: void 0
|
|
984
|
-
},
|
|
985
|
-
|
|
1013
|
+
}, on = function(e) {
|
|
1014
|
+
ne(t, e);
|
|
986
1015
|
function t(r, n, i) {
|
|
987
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1016
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Gt);
|
|
988
1017
|
var o = e.call(this) || this;
|
|
989
1018
|
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;
|
|
990
1019
|
}
|
|
@@ -1004,24 +1033,24 @@ var Kr = Ct(function(e) {
|
|
|
1004
1033
|
h && o.splice(0, h + 1);
|
|
1005
1034
|
}
|
|
1006
1035
|
}, t;
|
|
1007
|
-
}(
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
const r = new
|
|
1011
|
-
|
|
1036
|
+
}(Dt);
|
|
1037
|
+
const pt = [], mt = {}, sn = (e, t = 0) => {
|
|
1038
|
+
if (pt.indexOf(e) == -1) {
|
|
1039
|
+
const r = new on(t);
|
|
1040
|
+
mt[e] = r, pt.push(e);
|
|
1012
1041
|
}
|
|
1013
|
-
return
|
|
1042
|
+
return mt[e];
|
|
1014
1043
|
}, D = [];
|
|
1015
|
-
function
|
|
1044
|
+
function an(e, t) {
|
|
1016
1045
|
return {
|
|
1017
|
-
subscribe:
|
|
1046
|
+
subscribe: ve(e, t).subscribe
|
|
1018
1047
|
};
|
|
1019
1048
|
}
|
|
1020
|
-
function
|
|
1049
|
+
function ve(e, t = B) {
|
|
1021
1050
|
let r;
|
|
1022
1051
|
const n = /* @__PURE__ */ new Set();
|
|
1023
1052
|
function i(a) {
|
|
1024
|
-
if (
|
|
1053
|
+
if (It(e, a) && (e = a, r)) {
|
|
1025
1054
|
const u = !D.length;
|
|
1026
1055
|
for (const h of n)
|
|
1027
1056
|
h[1](), D.push(h, e);
|
|
@@ -1043,12 +1072,12 @@ function ye(e, t = B) {
|
|
|
1043
1072
|
}
|
|
1044
1073
|
return { set: i, update: o, subscribe: s };
|
|
1045
1074
|
}
|
|
1046
|
-
function
|
|
1075
|
+
function W(e, t, r) {
|
|
1047
1076
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1048
1077
|
if (!i.every(Boolean))
|
|
1049
1078
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1050
1079
|
const o = t.length < 2;
|
|
1051
|
-
return
|
|
1080
|
+
return an(r, (s, a) => {
|
|
1052
1081
|
let u = !1;
|
|
1053
1082
|
const h = [];
|
|
1054
1083
|
let l = 0, c = B;
|
|
@@ -1057,12 +1086,12 @@ function z(e, t, r) {
|
|
|
1057
1086
|
return;
|
|
1058
1087
|
c();
|
|
1059
1088
|
const g = t(n ? h[0] : h, s, a);
|
|
1060
|
-
o ? s(g) : c =
|
|
1061
|
-
},
|
|
1062
|
-
(g, b) =>
|
|
1089
|
+
o ? s(g) : c = Je(g) ? g : B;
|
|
1090
|
+
}, d = i.map(
|
|
1091
|
+
(g, b) => Nt(
|
|
1063
1092
|
g,
|
|
1064
|
-
(
|
|
1065
|
-
h[b] =
|
|
1093
|
+
(x) => {
|
|
1094
|
+
h[b] = x, l &= ~(1 << b), u && f();
|
|
1066
1095
|
},
|
|
1067
1096
|
() => {
|
|
1068
1097
|
l |= 1 << b;
|
|
@@ -1070,112 +1099,112 @@ function z(e, t, r) {
|
|
|
1070
1099
|
)
|
|
1071
1100
|
);
|
|
1072
1101
|
return u = !0, f(), function() {
|
|
1073
|
-
|
|
1102
|
+
re(d), c(), u = !1;
|
|
1074
1103
|
};
|
|
1075
1104
|
});
|
|
1076
1105
|
}
|
|
1077
|
-
function
|
|
1106
|
+
function un(e) {
|
|
1078
1107
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1079
1108
|
}
|
|
1080
|
-
var
|
|
1081
|
-
return
|
|
1109
|
+
var hn = function(t) {
|
|
1110
|
+
return ln(t) && !cn(t);
|
|
1082
1111
|
};
|
|
1083
|
-
function
|
|
1112
|
+
function ln(e) {
|
|
1084
1113
|
return !!e && typeof e == "object";
|
|
1085
1114
|
}
|
|
1086
|
-
function
|
|
1115
|
+
function cn(e) {
|
|
1087
1116
|
var t = Object.prototype.toString.call(e);
|
|
1088
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1117
|
+
return t === "[object RegExp]" || t === "[object Date]" || mn(e);
|
|
1089
1118
|
}
|
|
1090
|
-
var
|
|
1091
|
-
function
|
|
1092
|
-
return e.$$typeof ===
|
|
1119
|
+
var fn = typeof Symbol == "function" && Symbol.for, pn = fn ? Symbol.for("react.element") : 60103;
|
|
1120
|
+
function mn(e) {
|
|
1121
|
+
return e.$$typeof === pn;
|
|
1093
1122
|
}
|
|
1094
|
-
function
|
|
1123
|
+
function dn(e) {
|
|
1095
1124
|
return Array.isArray(e) ? [] : {};
|
|
1096
1125
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1126
|
+
function ee(e, t) {
|
|
1127
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(dn(e), e, t) : e;
|
|
1099
1128
|
}
|
|
1100
|
-
function
|
|
1129
|
+
function bn(e, t, r) {
|
|
1101
1130
|
return e.concat(t).map(function(n) {
|
|
1102
|
-
return
|
|
1131
|
+
return ee(n, r);
|
|
1103
1132
|
});
|
|
1104
1133
|
}
|
|
1105
|
-
function
|
|
1134
|
+
function gn(e, t) {
|
|
1106
1135
|
if (!t.customMerge)
|
|
1107
|
-
return
|
|
1136
|
+
return k;
|
|
1108
1137
|
var r = t.customMerge(e);
|
|
1109
|
-
return typeof r == "function" ? r :
|
|
1138
|
+
return typeof r == "function" ? r : k;
|
|
1110
1139
|
}
|
|
1111
|
-
function
|
|
1140
|
+
function yn(e) {
|
|
1112
1141
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1113
1142
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1114
1143
|
}) : [];
|
|
1115
1144
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return Object.keys(e).concat(
|
|
1145
|
+
function dt(e) {
|
|
1146
|
+
return Object.keys(e).concat(yn(e));
|
|
1118
1147
|
}
|
|
1119
|
-
function
|
|
1148
|
+
function Ft(e, t) {
|
|
1120
1149
|
try {
|
|
1121
1150
|
return t in e;
|
|
1122
1151
|
} catch (r) {
|
|
1123
1152
|
return !1;
|
|
1124
1153
|
}
|
|
1125
1154
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return
|
|
1155
|
+
function vn(e, t) {
|
|
1156
|
+
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1128
1157
|
}
|
|
1129
|
-
function
|
|
1158
|
+
function En(e, t, r) {
|
|
1130
1159
|
var n = {};
|
|
1131
|
-
return r.isMergeableObject(e) &&
|
|
1132
|
-
n[i] =
|
|
1133
|
-
}),
|
|
1134
|
-
|
|
1160
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1161
|
+
n[i] = ee(e[i], r);
|
|
1162
|
+
}), dt(t).forEach(function(i) {
|
|
1163
|
+
vn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1135
1164
|
}), n;
|
|
1136
1165
|
}
|
|
1137
|
-
function
|
|
1138
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1166
|
+
function k(e, t, r) {
|
|
1167
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject || hn, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1139
1168
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1140
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1169
|
+
return o ? n ? r.arrayMerge(e, t, r) : En(e, t, r) : ee(t, r);
|
|
1141
1170
|
}
|
|
1142
|
-
|
|
1171
|
+
k.all = function(t, r) {
|
|
1143
1172
|
if (!Array.isArray(t))
|
|
1144
1173
|
throw new Error("first argument should be an array");
|
|
1145
1174
|
return t.reduce(function(n, i) {
|
|
1146
|
-
return
|
|
1175
|
+
return k(n, i, r);
|
|
1147
1176
|
}, {});
|
|
1148
1177
|
};
|
|
1149
|
-
var
|
|
1150
|
-
const
|
|
1151
|
-
var
|
|
1152
|
-
return
|
|
1178
|
+
var _n = k, xn = _n;
|
|
1179
|
+
const Sn = /* @__PURE__ */ un(xn);
|
|
1180
|
+
var Fe = function(e, t) {
|
|
1181
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1153
1182
|
r.__proto__ = n;
|
|
1154
1183
|
} || function(r, n) {
|
|
1155
1184
|
for (var i in n)
|
|
1156
1185
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1157
|
-
},
|
|
1186
|
+
}, Fe(e, t);
|
|
1158
1187
|
};
|
|
1159
|
-
function
|
|
1188
|
+
function Ee(e, t) {
|
|
1160
1189
|
if (typeof t != "function" && t !== null)
|
|
1161
1190
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1162
|
-
|
|
1191
|
+
Fe(e, t);
|
|
1163
1192
|
function r() {
|
|
1164
1193
|
this.constructor = e;
|
|
1165
1194
|
}
|
|
1166
1195
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1167
1196
|
}
|
|
1168
|
-
var
|
|
1169
|
-
return
|
|
1197
|
+
var H = function() {
|
|
1198
|
+
return H = Object.assign || function(t) {
|
|
1170
1199
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1171
1200
|
r = arguments[n];
|
|
1172
1201
|
for (var o in r)
|
|
1173
1202
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1174
1203
|
}
|
|
1175
1204
|
return t;
|
|
1176
|
-
},
|
|
1205
|
+
}, H.apply(this, arguments);
|
|
1177
1206
|
};
|
|
1178
|
-
function
|
|
1207
|
+
function wn(e, t) {
|
|
1179
1208
|
var r = {};
|
|
1180
1209
|
for (var n in e)
|
|
1181
1210
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1184,43 +1213,43 @@ function En(e, t) {
|
|
|
1184
1213
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1185
1214
|
return r;
|
|
1186
1215
|
}
|
|
1187
|
-
function
|
|
1216
|
+
function He(e, t, r) {
|
|
1188
1217
|
if (r || arguments.length === 2)
|
|
1189
1218
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1190
1219
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1191
1220
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1192
1221
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var r = t && t.cache ? t.cache :
|
|
1222
|
+
function Pe(e, t) {
|
|
1223
|
+
var r = t && t.cache ? t.cache : In, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Hn;
|
|
1195
1224
|
return i(e, {
|
|
1196
1225
|
cache: r,
|
|
1197
1226
|
serializer: n
|
|
1198
1227
|
});
|
|
1199
1228
|
}
|
|
1200
|
-
function
|
|
1229
|
+
function Tn(e) {
|
|
1201
1230
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1202
1231
|
}
|
|
1203
|
-
function
|
|
1204
|
-
var i =
|
|
1232
|
+
function Bn(e, t, r, n) {
|
|
1233
|
+
var i = Tn(n) ? n : r(n), o = t.get(i);
|
|
1205
1234
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1206
1235
|
}
|
|
1207
|
-
function
|
|
1236
|
+
function jt(e, t, r) {
|
|
1208
1237
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1209
1238
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1210
1239
|
}
|
|
1211
|
-
function
|
|
1240
|
+
function kt(e, t, r, n, i) {
|
|
1212
1241
|
return r.bind(t, e, n, i);
|
|
1213
1242
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var r = e.length === 1 ?
|
|
1216
|
-
return
|
|
1243
|
+
function Hn(e, t) {
|
|
1244
|
+
var r = e.length === 1 ? Bn : jt;
|
|
1245
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
1217
1246
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1247
|
+
function Pn(e, t) {
|
|
1248
|
+
return kt(e, this, jt, t.cache.create(), t.serializer);
|
|
1220
1249
|
}
|
|
1221
|
-
var
|
|
1250
|
+
var An = function() {
|
|
1222
1251
|
return JSON.stringify(arguments);
|
|
1223
|
-
},
|
|
1252
|
+
}, On = (
|
|
1224
1253
|
/** @class */
|
|
1225
1254
|
function() {
|
|
1226
1255
|
function e() {
|
|
@@ -1232,21 +1261,21 @@ var Tn = function() {
|
|
|
1232
1261
|
this.cache[t] = r;
|
|
1233
1262
|
}, e;
|
|
1234
1263
|
}()
|
|
1235
|
-
),
|
|
1264
|
+
), In = {
|
|
1236
1265
|
create: function() {
|
|
1237
|
-
return new
|
|
1266
|
+
return new On();
|
|
1238
1267
|
}
|
|
1239
|
-
},
|
|
1240
|
-
variadic:
|
|
1241
|
-
},
|
|
1242
|
-
return
|
|
1268
|
+
}, Ae = {
|
|
1269
|
+
variadic: Pn
|
|
1270
|
+
}, de = function() {
|
|
1271
|
+
return de = Object.assign || function(t) {
|
|
1243
1272
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1244
1273
|
r = arguments[n];
|
|
1245
1274
|
for (var o in r)
|
|
1246
1275
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1247
1276
|
}
|
|
1248
1277
|
return t;
|
|
1249
|
-
},
|
|
1278
|
+
}, de.apply(this, arguments);
|
|
1250
1279
|
};
|
|
1251
1280
|
var p;
|
|
1252
1281
|
(function(e) {
|
|
@@ -1256,47 +1285,47 @@ var v;
|
|
|
1256
1285
|
(function(e) {
|
|
1257
1286
|
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";
|
|
1258
1287
|
})(v || (v = {}));
|
|
1259
|
-
var
|
|
1288
|
+
var V;
|
|
1260
1289
|
(function(e) {
|
|
1261
1290
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1262
|
-
})(
|
|
1263
|
-
function
|
|
1291
|
+
})(V || (V = {}));
|
|
1292
|
+
function bt(e) {
|
|
1264
1293
|
return e.type === v.literal;
|
|
1265
1294
|
}
|
|
1266
|
-
function
|
|
1295
|
+
function Nn(e) {
|
|
1267
1296
|
return e.type === v.argument;
|
|
1268
1297
|
}
|
|
1269
|
-
function
|
|
1298
|
+
function Vt(e) {
|
|
1270
1299
|
return e.type === v.number;
|
|
1271
1300
|
}
|
|
1272
|
-
function
|
|
1301
|
+
function Xt(e) {
|
|
1273
1302
|
return e.type === v.date;
|
|
1274
1303
|
}
|
|
1275
|
-
function
|
|
1304
|
+
function zt(e) {
|
|
1276
1305
|
return e.type === v.time;
|
|
1277
1306
|
}
|
|
1278
|
-
function
|
|
1307
|
+
function Wt(e) {
|
|
1279
1308
|
return e.type === v.select;
|
|
1280
1309
|
}
|
|
1281
|
-
function
|
|
1310
|
+
function Zt(e) {
|
|
1282
1311
|
return e.type === v.plural;
|
|
1283
1312
|
}
|
|
1284
|
-
function
|
|
1313
|
+
function Ln(e) {
|
|
1285
1314
|
return e.type === v.pound;
|
|
1286
1315
|
}
|
|
1287
|
-
function
|
|
1316
|
+
function Qt(e) {
|
|
1288
1317
|
return e.type === v.tag;
|
|
1289
1318
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1319
|
+
function Jt(e) {
|
|
1320
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1292
1321
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1322
|
+
function je(e) {
|
|
1323
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1295
1324
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1325
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1326
|
+
function Mn(e) {
|
|
1298
1327
|
var t = {};
|
|
1299
|
-
return e.replace(
|
|
1328
|
+
return e.replace(Cn, function(r) {
|
|
1300
1329
|
var n = r.length;
|
|
1301
1330
|
switch (r[0]) {
|
|
1302
1331
|
case "G":
|
|
@@ -1395,11 +1424,11 @@ var E = function() {
|
|
|
1395
1424
|
return t;
|
|
1396
1425
|
}, E.apply(this, arguments);
|
|
1397
1426
|
};
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1427
|
+
var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1428
|
+
function Rn(e) {
|
|
1400
1429
|
if (e.length === 0)
|
|
1401
1430
|
throw new Error("Number skeleton cannot be empty");
|
|
1402
|
-
for (var t = e.split(
|
|
1431
|
+
for (var t = e.split($n).filter(function(f) {
|
|
1403
1432
|
return f.length > 0;
|
|
1404
1433
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1405
1434
|
var o = i[n], s = o.split("/");
|
|
@@ -1414,17 +1443,17 @@ function Ln(e) {
|
|
|
1414
1443
|
}
|
|
1415
1444
|
return r;
|
|
1416
1445
|
}
|
|
1417
|
-
function
|
|
1446
|
+
function Un(e) {
|
|
1418
1447
|
return e.replace(/^(.*?)-/, "");
|
|
1419
1448
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1449
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, Dn = /(\*)(0+)|(#+)(0+)|(0+)/g, Kt = /^(0+)$/;
|
|
1450
|
+
function yt(e) {
|
|
1422
1451
|
var t = {};
|
|
1423
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1452
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1424
1453
|
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)), "";
|
|
1425
1454
|
}), t;
|
|
1426
1455
|
}
|
|
1427
|
-
function
|
|
1456
|
+
function er(e) {
|
|
1428
1457
|
switch (e) {
|
|
1429
1458
|
case "sign-auto":
|
|
1430
1459
|
return {
|
|
@@ -1464,7 +1493,7 @@ function Kt(e) {
|
|
|
1464
1493
|
};
|
|
1465
1494
|
}
|
|
1466
1495
|
}
|
|
1467
|
-
function
|
|
1496
|
+
function Gn(e) {
|
|
1468
1497
|
var t;
|
|
1469
1498
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1470
1499
|
notation: "engineering"
|
|
@@ -1472,17 +1501,17 @@ function $n(e) {
|
|
|
1472
1501
|
notation: "scientific"
|
|
1473
1502
|
}, e = e.slice(1)), t) {
|
|
1474
1503
|
var r = e.slice(0, 2);
|
|
1475
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1504
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kt.test(e))
|
|
1476
1505
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1477
1506
|
t.minimumIntegerDigits = e.length;
|
|
1478
1507
|
}
|
|
1479
1508
|
return t;
|
|
1480
1509
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = {}, r =
|
|
1510
|
+
function vt(e) {
|
|
1511
|
+
var t = {}, r = er(e);
|
|
1483
1512
|
return r || t;
|
|
1484
1513
|
}
|
|
1485
|
-
function
|
|
1514
|
+
function Fn(e) {
|
|
1486
1515
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1487
1516
|
var i = n[r];
|
|
1488
1517
|
switch (i.stem) {
|
|
@@ -1506,7 +1535,7 @@ function Rn(e) {
|
|
|
1506
1535
|
continue;
|
|
1507
1536
|
case "measure-unit":
|
|
1508
1537
|
case "unit":
|
|
1509
|
-
t.style = "unit", t.unit =
|
|
1538
|
+
t.style = "unit", t.unit = Un(i.options[0]);
|
|
1510
1539
|
continue;
|
|
1511
1540
|
case "compact-short":
|
|
1512
1541
|
case "K":
|
|
@@ -1518,12 +1547,12 @@ function Rn(e) {
|
|
|
1518
1547
|
continue;
|
|
1519
1548
|
case "scientific":
|
|
1520
1549
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1521
|
-
return E(E({}, u),
|
|
1550
|
+
return E(E({}, u), vt(h));
|
|
1522
1551
|
}, {}));
|
|
1523
1552
|
continue;
|
|
1524
1553
|
case "engineering":
|
|
1525
1554
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1526
|
-
return E(E({}, u),
|
|
1555
|
+
return E(E({}, u), vt(h));
|
|
1527
1556
|
}, {}));
|
|
1528
1557
|
continue;
|
|
1529
1558
|
case "notation-simple":
|
|
@@ -1568,45 +1597,45 @@ function Rn(e) {
|
|
|
1568
1597
|
case "integer-width":
|
|
1569
1598
|
if (i.options.length > 1)
|
|
1570
1599
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1571
|
-
i.options[0].replace(
|
|
1600
|
+
i.options[0].replace(Dn, function(u, h, l, c, f, d) {
|
|
1572
1601
|
if (h)
|
|
1573
1602
|
t.minimumIntegerDigits = l.length;
|
|
1574
1603
|
else {
|
|
1575
1604
|
if (c && f)
|
|
1576
1605
|
throw new Error("We currently do not support maximum integer digits");
|
|
1577
|
-
if (
|
|
1606
|
+
if (d)
|
|
1578
1607
|
throw new Error("We currently do not support exact integer digits");
|
|
1579
1608
|
}
|
|
1580
1609
|
return "";
|
|
1581
1610
|
});
|
|
1582
1611
|
continue;
|
|
1583
1612
|
}
|
|
1584
|
-
if (
|
|
1613
|
+
if (Kt.test(i.stem)) {
|
|
1585
1614
|
t.minimumIntegerDigits = i.stem.length;
|
|
1586
1615
|
continue;
|
|
1587
1616
|
}
|
|
1588
|
-
if (
|
|
1617
|
+
if (gt.test(i.stem)) {
|
|
1589
1618
|
if (i.options.length > 1)
|
|
1590
1619
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1591
|
-
i.stem.replace(
|
|
1592
|
-
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1620
|
+
i.stem.replace(gt, function(u, h, l, c, f, d) {
|
|
1621
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1593
1622
|
});
|
|
1594
1623
|
var o = i.options[0];
|
|
1595
|
-
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t),
|
|
1624
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), yt(o)));
|
|
1596
1625
|
continue;
|
|
1597
1626
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
t = E(E({}, t),
|
|
1627
|
+
if (qt.test(i.stem)) {
|
|
1628
|
+
t = E(E({}, t), yt(i.stem));
|
|
1600
1629
|
continue;
|
|
1601
1630
|
}
|
|
1602
|
-
var s =
|
|
1631
|
+
var s = er(i.stem);
|
|
1603
1632
|
s && (t = E(E({}, t), s));
|
|
1604
|
-
var a =
|
|
1633
|
+
var a = Gn(i.stem);
|
|
1605
1634
|
a && (t = E(E({}, t), a));
|
|
1606
1635
|
}
|
|
1607
1636
|
return t;
|
|
1608
1637
|
}
|
|
1609
|
-
var
|
|
1638
|
+
var ae = {
|
|
1610
1639
|
"001": [
|
|
1611
1640
|
"H",
|
|
1612
1641
|
"h"
|
|
@@ -3021,13 +3050,13 @@ var se = {
|
|
|
3021
3050
|
"h"
|
|
3022
3051
|
]
|
|
3023
3052
|
};
|
|
3024
|
-
function
|
|
3053
|
+
function jn(e, t) {
|
|
3025
3054
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3026
3055
|
var i = e.charAt(n);
|
|
3027
3056
|
if (i === "j") {
|
|
3028
3057
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3029
3058
|
o++, n++;
|
|
3030
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
3059
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = kn(t);
|
|
3031
3060
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
3032
3061
|
r += u;
|
|
3033
3062
|
for (; s-- > 0; )
|
|
@@ -3037,7 +3066,7 @@ function Un(e, t) {
|
|
|
3037
3066
|
}
|
|
3038
3067
|
return r;
|
|
3039
3068
|
}
|
|
3040
|
-
function
|
|
3069
|
+
function kn(e) {
|
|
3041
3070
|
var t = e.hourCycle;
|
|
3042
3071
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3043
3072
|
e.hourCycles && // @ts-ignore
|
|
@@ -3056,23 +3085,23 @@ function Dn(e) {
|
|
|
3056
3085
|
}
|
|
3057
3086
|
var r = e.language, n;
|
|
3058
3087
|
r !== "root" && (n = e.maximize().region);
|
|
3059
|
-
var i =
|
|
3088
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3060
3089
|
return i[0];
|
|
3061
3090
|
}
|
|
3062
|
-
var
|
|
3063
|
-
function
|
|
3091
|
+
var Oe, Vn = new RegExp("^".concat(Yt.source, "*")), Xn = new RegExp("".concat(Yt.source, "*$"));
|
|
3092
|
+
function m(e, t) {
|
|
3064
3093
|
return { start: e, end: t };
|
|
3065
3094
|
}
|
|
3066
|
-
var
|
|
3095
|
+
var zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, qn = !!Number.isSafeInteger, Kn = qn ? Number.isSafeInteger : function(e) {
|
|
3067
3096
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3068
|
-
},
|
|
3097
|
+
}, ke = !0;
|
|
3069
3098
|
try {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3099
|
+
var ei = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3100
|
+
ke = ((Oe = ei.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3072
3101
|
} catch (e) {
|
|
3073
|
-
|
|
3102
|
+
ke = !1;
|
|
3074
3103
|
}
|
|
3075
|
-
var
|
|
3104
|
+
var Et = zn ? (
|
|
3076
3105
|
// Native
|
|
3077
3106
|
function(t, r, n) {
|
|
3078
3107
|
return t.startsWith(r, n);
|
|
@@ -3082,7 +3111,7 @@ var vt = jn ? (
|
|
|
3082
3111
|
function(t, r, n) {
|
|
3083
3112
|
return t.slice(n, n + r.length) === r;
|
|
3084
3113
|
}
|
|
3085
|
-
),
|
|
3114
|
+
), Ve = Wn ? String.fromCodePoint : (
|
|
3086
3115
|
// IE11
|
|
3087
3116
|
function() {
|
|
3088
3117
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3094,9 +3123,9 @@ var vt = jn ? (
|
|
|
3094
3123
|
}
|
|
3095
3124
|
return n;
|
|
3096
3125
|
}
|
|
3097
|
-
),
|
|
3126
|
+
), _t = (
|
|
3098
3127
|
// native
|
|
3099
|
-
|
|
3128
|
+
Zn ? Object.fromEntries : (
|
|
3100
3129
|
// Ponyfill
|
|
3101
3130
|
function(t) {
|
|
3102
3131
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3106,7 +3135,7 @@ var vt = jn ? (
|
|
|
3106
3135
|
return r;
|
|
3107
3136
|
}
|
|
3108
3137
|
)
|
|
3109
|
-
),
|
|
3138
|
+
), tr = Qn ? (
|
|
3110
3139
|
// Native
|
|
3111
3140
|
function(t, r) {
|
|
3112
3141
|
return t.codePointAt(r);
|
|
@@ -3120,7 +3149,7 @@ var vt = jn ? (
|
|
|
3120
3149
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3121
3150
|
}
|
|
3122
3151
|
}
|
|
3123
|
-
),
|
|
3152
|
+
), ti = Jn ? (
|
|
3124
3153
|
// Native
|
|
3125
3154
|
function(t) {
|
|
3126
3155
|
return t.trimStart();
|
|
@@ -3128,9 +3157,9 @@ var vt = jn ? (
|
|
|
3128
3157
|
) : (
|
|
3129
3158
|
// Ponyfill
|
|
3130
3159
|
function(t) {
|
|
3131
|
-
return t.replace(
|
|
3160
|
+
return t.replace(Vn, "");
|
|
3132
3161
|
}
|
|
3133
|
-
),
|
|
3162
|
+
), ri = Yn ? (
|
|
3134
3163
|
// Native
|
|
3135
3164
|
function(t) {
|
|
3136
3165
|
return t.trimEnd();
|
|
@@ -3138,32 +3167,32 @@ var vt = jn ? (
|
|
|
3138
3167
|
) : (
|
|
3139
3168
|
// Ponyfill
|
|
3140
3169
|
function(t) {
|
|
3141
|
-
return t.replace(
|
|
3170
|
+
return t.replace(Xn, "");
|
|
3142
3171
|
}
|
|
3143
3172
|
);
|
|
3144
|
-
function
|
|
3173
|
+
function rr(e, t) {
|
|
3145
3174
|
return new RegExp(e, t);
|
|
3146
3175
|
}
|
|
3147
|
-
var
|
|
3148
|
-
if (
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3176
|
+
var Xe;
|
|
3177
|
+
if (ke) {
|
|
3178
|
+
var xt = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3179
|
+
Xe = function(t, r) {
|
|
3151
3180
|
var n;
|
|
3152
|
-
|
|
3153
|
-
var i =
|
|
3181
|
+
xt.lastIndex = r;
|
|
3182
|
+
var i = xt.exec(t);
|
|
3154
3183
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3155
3184
|
};
|
|
3156
3185
|
} else
|
|
3157
|
-
|
|
3186
|
+
Xe = function(t, r) {
|
|
3158
3187
|
for (var n = []; ; ) {
|
|
3159
|
-
var i =
|
|
3160
|
-
if (i === void 0 ||
|
|
3188
|
+
var i = tr(t, r);
|
|
3189
|
+
if (i === void 0 || nr(i) || si(i))
|
|
3161
3190
|
break;
|
|
3162
3191
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3163
3192
|
}
|
|
3164
|
-
return
|
|
3193
|
+
return Ve.apply(void 0, n);
|
|
3165
3194
|
};
|
|
3166
|
-
var
|
|
3195
|
+
var ni = (
|
|
3167
3196
|
/** @class */
|
|
3168
3197
|
function() {
|
|
3169
3198
|
function e(t, r) {
|
|
@@ -3188,13 +3217,13 @@ var Kn = (
|
|
|
3188
3217
|
var a = this.clonePosition();
|
|
3189
3218
|
this.bump(), i.push({
|
|
3190
3219
|
type: v.pound,
|
|
3191
|
-
location:
|
|
3220
|
+
location: m(a, this.clonePosition())
|
|
3192
3221
|
});
|
|
3193
3222
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3194
3223
|
if (n)
|
|
3195
3224
|
break;
|
|
3196
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3197
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3225
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3226
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3198
3227
|
var s = this.parseTag(t, r);
|
|
3199
3228
|
if (s.err)
|
|
3200
3229
|
return s;
|
|
@@ -3217,7 +3246,7 @@ var Kn = (
|
|
|
3217
3246
|
val: {
|
|
3218
3247
|
type: v.literal,
|
|
3219
3248
|
value: "<".concat(i, "/>"),
|
|
3220
|
-
location:
|
|
3249
|
+
location: m(n, this.clonePosition())
|
|
3221
3250
|
},
|
|
3222
3251
|
err: null
|
|
3223
3252
|
};
|
|
@@ -3227,25 +3256,25 @@ var Kn = (
|
|
|
3227
3256
|
return o;
|
|
3228
3257
|
var s = o.val, a = this.clonePosition();
|
|
3229
3258
|
if (this.bumpIf("</")) {
|
|
3230
|
-
if (this.isEOF() || !
|
|
3231
|
-
return this.error(p.INVALID_TAG,
|
|
3259
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3260
|
+
return this.error(p.INVALID_TAG, m(a, this.clonePosition()));
|
|
3232
3261
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3233
|
-
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3262
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, m(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3234
3263
|
val: {
|
|
3235
3264
|
type: v.tag,
|
|
3236
3265
|
value: i,
|
|
3237
3266
|
children: s,
|
|
3238
|
-
location:
|
|
3267
|
+
location: m(n, this.clonePosition())
|
|
3239
3268
|
},
|
|
3240
3269
|
err: null
|
|
3241
|
-
} : this.error(p.INVALID_TAG,
|
|
3270
|
+
} : this.error(p.INVALID_TAG, m(a, this.clonePosition())));
|
|
3242
3271
|
} else
|
|
3243
|
-
return this.error(p.UNCLOSED_TAG,
|
|
3272
|
+
return this.error(p.UNCLOSED_TAG, m(n, this.clonePosition()));
|
|
3244
3273
|
} else
|
|
3245
|
-
return this.error(p.INVALID_TAG,
|
|
3274
|
+
return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
|
|
3246
3275
|
}, e.prototype.parseTagName = function() {
|
|
3247
3276
|
var t = this.offset();
|
|
3248
|
-
for (this.bump(); !this.isEOF() &&
|
|
3277
|
+
for (this.bump(); !this.isEOF() && oi(this.char()); )
|
|
3249
3278
|
this.bump();
|
|
3250
3279
|
return this.message.slice(t, this.offset());
|
|
3251
3280
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3267,14 +3296,14 @@ var Kn = (
|
|
|
3267
3296
|
}
|
|
3268
3297
|
break;
|
|
3269
3298
|
}
|
|
3270
|
-
var u =
|
|
3299
|
+
var u = m(n, this.clonePosition());
|
|
3271
3300
|
return {
|
|
3272
3301
|
val: { type: v.literal, value: i, location: u },
|
|
3273
3302
|
err: null
|
|
3274
3303
|
};
|
|
3275
3304
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3276
3305
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3277
|
-
!
|
|
3306
|
+
!ii(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3278
3307
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3279
3308
|
if (this.isEOF() || this.char() !== 39)
|
|
3280
3309
|
return null;
|
|
@@ -3308,23 +3337,23 @@ var Kn = (
|
|
|
3308
3337
|
r.push(n);
|
|
3309
3338
|
this.bump();
|
|
3310
3339
|
}
|
|
3311
|
-
return
|
|
3340
|
+
return Ve.apply(void 0, r);
|
|
3312
3341
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3313
3342
|
if (this.isEOF())
|
|
3314
3343
|
return null;
|
|
3315
3344
|
var n = this.char();
|
|
3316
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3345
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3317
3346
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3318
3347
|
var n = this.clonePosition();
|
|
3319
3348
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3320
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3349
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3321
3350
|
if (this.char() === 125)
|
|
3322
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
3351
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, m(n, this.clonePosition()));
|
|
3323
3352
|
var i = this.parseIdentifierIfPossible().value;
|
|
3324
3353
|
if (!i)
|
|
3325
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3354
|
+
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3326
3355
|
if (this.bumpSpace(), this.isEOF())
|
|
3327
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3356
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
|
|
3328
3357
|
switch (this.char()) {
|
|
3329
3358
|
case 125:
|
|
3330
3359
|
return this.bump(), {
|
|
@@ -3332,25 +3361,25 @@ var Kn = (
|
|
|
3332
3361
|
type: v.argument,
|
|
3333
3362
|
// value does not include the opening and closing braces.
|
|
3334
3363
|
value: i,
|
|
3335
|
-
location:
|
|
3364
|
+
location: m(n, this.clonePosition())
|
|
3336
3365
|
},
|
|
3337
3366
|
err: null
|
|
3338
3367
|
};
|
|
3339
3368
|
case 44:
|
|
3340
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3369
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3341
3370
|
default:
|
|
3342
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3371
|
+
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3343
3372
|
}
|
|
3344
3373
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3345
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3374
|
+
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
3346
3375
|
this.bumpTo(i);
|
|
3347
|
-
var o = this.clonePosition(), s =
|
|
3376
|
+
var o = this.clonePosition(), s = m(t, o);
|
|
3348
3377
|
return { value: n, location: s };
|
|
3349
3378
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3350
3379
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3351
3380
|
switch (a) {
|
|
3352
3381
|
case "":
|
|
3353
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
3382
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, m(s, u));
|
|
3354
3383
|
case "number":
|
|
3355
3384
|
case "date":
|
|
3356
3385
|
case "time": {
|
|
@@ -3361,34 +3390,34 @@ var Kn = (
|
|
|
3361
3390
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3362
3391
|
if (c.err)
|
|
3363
3392
|
return c;
|
|
3364
|
-
var f =
|
|
3393
|
+
var f = ri(c.val);
|
|
3365
3394
|
if (f.length === 0)
|
|
3366
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
3367
|
-
var
|
|
3368
|
-
h = { style: f, styleLocation:
|
|
3395
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3396
|
+
var d = m(l, this.clonePosition());
|
|
3397
|
+
h = { style: f, styleLocation: d };
|
|
3369
3398
|
}
|
|
3370
3399
|
var g = this.tryParseArgumentClose(i);
|
|
3371
3400
|
if (g.err)
|
|
3372
3401
|
return g;
|
|
3373
|
-
var b =
|
|
3374
|
-
if (h &&
|
|
3375
|
-
var
|
|
3402
|
+
var b = m(i, this.clonePosition());
|
|
3403
|
+
if (h && Et(h == null ? void 0 : h.style, "::", 0)) {
|
|
3404
|
+
var x = ti(h.style.slice(2));
|
|
3376
3405
|
if (a === "number") {
|
|
3377
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3406
|
+
var c = this.parseNumberSkeletonFromString(x, h.styleLocation);
|
|
3378
3407
|
return c.err ? c : {
|
|
3379
3408
|
val: { type: v.number, value: n, location: b, style: c.val },
|
|
3380
3409
|
err: null
|
|
3381
3410
|
};
|
|
3382
3411
|
} else {
|
|
3383
|
-
if (
|
|
3412
|
+
if (x.length === 0)
|
|
3384
3413
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3385
|
-
var L =
|
|
3386
|
-
this.locale && (L =
|
|
3414
|
+
var L = x;
|
|
3415
|
+
this.locale && (L = jn(x, this.locale));
|
|
3387
3416
|
var f = {
|
|
3388
|
-
type:
|
|
3417
|
+
type: V.dateTime,
|
|
3389
3418
|
pattern: L,
|
|
3390
3419
|
location: h.styleLocation,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3420
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(L) : {}
|
|
3392
3421
|
}, I = a === "date" ? v.date : v.time;
|
|
3393
3422
|
return {
|
|
3394
3423
|
val: { type: I, value: n, location: b, style: f },
|
|
@@ -3409,52 +3438,52 @@ var Kn = (
|
|
|
3409
3438
|
case "plural":
|
|
3410
3439
|
case "selectordinal":
|
|
3411
3440
|
case "select": {
|
|
3412
|
-
var
|
|
3441
|
+
var S = this.clonePosition();
|
|
3413
3442
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3414
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3443
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(S, de({}, S)));
|
|
3415
3444
|
this.bumpSpace();
|
|
3416
|
-
var
|
|
3417
|
-
if (a !== "select" &&
|
|
3445
|
+
var C = this.parseIdentifierIfPossible(), w = 0;
|
|
3446
|
+
if (a !== "select" && C.value === "offset") {
|
|
3418
3447
|
if (!this.bumpIf(":"))
|
|
3419
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3448
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3420
3449
|
this.bumpSpace();
|
|
3421
3450
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3422
3451
|
if (c.err)
|
|
3423
3452
|
return c;
|
|
3424
|
-
this.bumpSpace(),
|
|
3453
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = c.val;
|
|
3425
3454
|
}
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3455
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3456
|
+
if (P.err)
|
|
3457
|
+
return P;
|
|
3429
3458
|
var g = this.tryParseArgumentClose(i);
|
|
3430
3459
|
if (g.err)
|
|
3431
3460
|
return g;
|
|
3432
|
-
var
|
|
3461
|
+
var oe = m(i, this.clonePosition());
|
|
3433
3462
|
return a === "select" ? {
|
|
3434
3463
|
val: {
|
|
3435
3464
|
type: v.select,
|
|
3436
3465
|
value: n,
|
|
3437
|
-
options:
|
|
3438
|
-
location:
|
|
3466
|
+
options: _t(P.val),
|
|
3467
|
+
location: oe
|
|
3439
3468
|
},
|
|
3440
3469
|
err: null
|
|
3441
3470
|
} : {
|
|
3442
3471
|
val: {
|
|
3443
3472
|
type: v.plural,
|
|
3444
3473
|
value: n,
|
|
3445
|
-
options:
|
|
3446
|
-
offset:
|
|
3474
|
+
options: _t(P.val),
|
|
3475
|
+
offset: w,
|
|
3447
3476
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3448
|
-
location:
|
|
3477
|
+
location: oe
|
|
3449
3478
|
},
|
|
3450
3479
|
err: null
|
|
3451
3480
|
};
|
|
3452
3481
|
}
|
|
3453
3482
|
default:
|
|
3454
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3483
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, m(s, u));
|
|
3455
3484
|
}
|
|
3456
3485
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3457
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3486
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3458
3487
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3459
3488
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3460
3489
|
var n = this.char();
|
|
@@ -3463,7 +3492,7 @@ var Kn = (
|
|
|
3463
3492
|
this.bump();
|
|
3464
3493
|
var i = this.clonePosition();
|
|
3465
3494
|
if (!this.bumpUntil("'"))
|
|
3466
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3495
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, m(i, this.clonePosition()));
|
|
3467
3496
|
this.bump();
|
|
3468
3497
|
break;
|
|
3469
3498
|
}
|
|
@@ -3493,16 +3522,16 @@ var Kn = (
|
|
|
3493
3522
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3494
3523
|
var n = [];
|
|
3495
3524
|
try {
|
|
3496
|
-
n =
|
|
3525
|
+
n = Rn(t);
|
|
3497
3526
|
} catch (i) {
|
|
3498
3527
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3499
3528
|
}
|
|
3500
3529
|
return {
|
|
3501
3530
|
val: {
|
|
3502
|
-
type:
|
|
3531
|
+
type: V.number,
|
|
3503
3532
|
tokens: n,
|
|
3504
3533
|
location: r,
|
|
3505
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3534
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(n) : {}
|
|
3506
3535
|
},
|
|
3507
3536
|
err: null
|
|
3508
3537
|
};
|
|
@@ -3514,31 +3543,31 @@ var Kn = (
|
|
|
3514
3543
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3515
3544
|
if (f.err)
|
|
3516
3545
|
return f;
|
|
3517
|
-
l =
|
|
3546
|
+
l = m(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
|
3518
3547
|
} else
|
|
3519
3548
|
break;
|
|
3520
3549
|
}
|
|
3521
3550
|
if (u.has(h))
|
|
3522
3551
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3523
3552
|
h === "other" && (s = !0), this.bumpSpace();
|
|
3524
|
-
var
|
|
3553
|
+
var d = this.clonePosition();
|
|
3525
3554
|
if (!this.bumpIf("{"))
|
|
3526
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3555
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3527
3556
|
var g = this.parseMessage(t + 1, r, n);
|
|
3528
3557
|
if (g.err)
|
|
3529
3558
|
return g;
|
|
3530
|
-
var b = this.tryParseArgumentClose(
|
|
3559
|
+
var b = this.tryParseArgumentClose(d);
|
|
3531
3560
|
if (b.err)
|
|
3532
3561
|
return b;
|
|
3533
3562
|
a.push([
|
|
3534
3563
|
h,
|
|
3535
3564
|
{
|
|
3536
3565
|
value: g.val,
|
|
3537
|
-
location: d
|
|
3566
|
+
location: m(d, this.clonePosition())
|
|
3538
3567
|
}
|
|
3539
3568
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3540
3569
|
}
|
|
3541
|
-
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3570
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3542
3571
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3543
3572
|
var n = 1, i = this.clonePosition();
|
|
3544
3573
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3549,8 +3578,8 @@ var Kn = (
|
|
|
3549
3578
|
else
|
|
3550
3579
|
break;
|
|
3551
3580
|
}
|
|
3552
|
-
var u =
|
|
3553
|
-
return o ? (s *= n,
|
|
3581
|
+
var u = m(i, this.clonePosition());
|
|
3582
|
+
return o ? (s *= n, Kn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3554
3583
|
}, e.prototype.offset = function() {
|
|
3555
3584
|
return this.position.offset;
|
|
3556
3585
|
}, e.prototype.isEOF = function() {
|
|
@@ -3565,7 +3594,7 @@ var Kn = (
|
|
|
3565
3594
|
var t = this.position.offset;
|
|
3566
3595
|
if (t >= this.message.length)
|
|
3567
3596
|
throw Error("out of bound");
|
|
3568
|
-
var r =
|
|
3597
|
+
var r = tr(this.message, t);
|
|
3569
3598
|
if (r === void 0)
|
|
3570
3599
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3571
3600
|
return r;
|
|
@@ -3584,7 +3613,7 @@ var Kn = (
|
|
|
3584
3613
|
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);
|
|
3585
3614
|
}
|
|
3586
3615
|
}, e.prototype.bumpIf = function(t) {
|
|
3587
|
-
if (
|
|
3616
|
+
if (Et(this.message, t, this.offset())) {
|
|
3588
3617
|
for (var r = 0; r < t.length; r++)
|
|
3589
3618
|
this.bump();
|
|
3590
3619
|
return !0;
|
|
@@ -3606,7 +3635,7 @@ var Kn = (
|
|
|
3606
3635
|
break;
|
|
3607
3636
|
}
|
|
3608
3637
|
}, e.prototype.bumpSpace = function() {
|
|
3609
|
-
for (; !this.isEOF() &&
|
|
3638
|
+
for (; !this.isEOF() && nr(this.char()); )
|
|
3610
3639
|
this.bump();
|
|
3611
3640
|
}, e.prototype.peek = function() {
|
|
3612
3641
|
if (this.isEOF())
|
|
@@ -3616,47 +3645,47 @@ var Kn = (
|
|
|
3616
3645
|
}, e;
|
|
3617
3646
|
}()
|
|
3618
3647
|
);
|
|
3619
|
-
function
|
|
3648
|
+
function ze(e) {
|
|
3620
3649
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3621
3650
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3651
|
+
function ii(e) {
|
|
3652
|
+
return ze(e) || e === 47;
|
|
3624
3653
|
}
|
|
3625
|
-
function
|
|
3654
|
+
function oi(e) {
|
|
3626
3655
|
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;
|
|
3627
3656
|
}
|
|
3628
|
-
function
|
|
3657
|
+
function nr(e) {
|
|
3629
3658
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3630
3659
|
}
|
|
3631
|
-
function
|
|
3660
|
+
function si(e) {
|
|
3632
3661
|
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;
|
|
3633
3662
|
}
|
|
3634
|
-
function
|
|
3663
|
+
function We(e) {
|
|
3635
3664
|
e.forEach(function(t) {
|
|
3636
|
-
if (delete t.location,
|
|
3665
|
+
if (delete t.location, Wt(t) || Zt(t))
|
|
3637
3666
|
for (var r in t.options)
|
|
3638
|
-
delete t.options[r].location,
|
|
3667
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3639
3668
|
else
|
|
3640
|
-
|
|
3669
|
+
Vt(t) && Jt(t.style) || (Xt(t) || zt(t)) && je(t.style) ? delete t.style.location : Qt(t) && We(t.children);
|
|
3641
3670
|
});
|
|
3642
3671
|
}
|
|
3643
|
-
function
|
|
3644
|
-
t === void 0 && (t = {}), t =
|
|
3645
|
-
var r = new
|
|
3672
|
+
function ai(e, t) {
|
|
3673
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3674
|
+
var r = new ni(e, t).parse();
|
|
3646
3675
|
if (r.err) {
|
|
3647
3676
|
var n = SyntaxError(p[r.err.kind]);
|
|
3648
3677
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3649
3678
|
}
|
|
3650
|
-
return t != null && t.captureLocation ||
|
|
3679
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3651
3680
|
}
|
|
3652
|
-
var
|
|
3681
|
+
var X;
|
|
3653
3682
|
(function(e) {
|
|
3654
3683
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3655
|
-
})(
|
|
3656
|
-
var
|
|
3684
|
+
})(X || (X = {}));
|
|
3685
|
+
var _e = (
|
|
3657
3686
|
/** @class */
|
|
3658
3687
|
function(e) {
|
|
3659
|
-
|
|
3688
|
+
Ee(t, e);
|
|
3660
3689
|
function t(r, n, i) {
|
|
3661
3690
|
var o = e.call(this, r) || this;
|
|
3662
3691
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3665,48 +3694,48 @@ var Ee = (
|
|
|
3665
3694
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3695
|
}, t;
|
|
3667
3696
|
}(Error)
|
|
3668
|
-
),
|
|
3697
|
+
), St = (
|
|
3669
3698
|
/** @class */
|
|
3670
3699
|
function(e) {
|
|
3671
|
-
|
|
3700
|
+
Ee(t, e);
|
|
3672
3701
|
function t(r, n, i, o) {
|
|
3673
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3702
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3674
3703
|
}
|
|
3675
3704
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3705
|
+
}(_e)
|
|
3706
|
+
), ui = (
|
|
3678
3707
|
/** @class */
|
|
3679
3708
|
function(e) {
|
|
3680
|
-
|
|
3709
|
+
Ee(t, e);
|
|
3681
3710
|
function t(r, n, i) {
|
|
3682
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3711
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3683
3712
|
}
|
|
3684
3713
|
return t;
|
|
3685
|
-
}(
|
|
3686
|
-
),
|
|
3714
|
+
}(_e)
|
|
3715
|
+
), hi = (
|
|
3687
3716
|
/** @class */
|
|
3688
3717
|
function(e) {
|
|
3689
|
-
|
|
3718
|
+
Ee(t, e);
|
|
3690
3719
|
function t(r, n) {
|
|
3691
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3720
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3692
3721
|
}
|
|
3693
3722
|
return t;
|
|
3694
|
-
}(
|
|
3723
|
+
}(_e)
|
|
3695
3724
|
), _;
|
|
3696
3725
|
(function(e) {
|
|
3697
3726
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
3727
|
})(_ || (_ = {}));
|
|
3699
|
-
function
|
|
3728
|
+
function li(e) {
|
|
3700
3729
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3730
|
var n = t[t.length - 1];
|
|
3702
3731
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3732
|
}, []);
|
|
3704
3733
|
}
|
|
3705
|
-
function
|
|
3734
|
+
function ci(e) {
|
|
3706
3735
|
return typeof e == "function";
|
|
3707
3736
|
}
|
|
3708
|
-
function
|
|
3709
|
-
if (e.length === 1 &&
|
|
3737
|
+
function fe(e, t, r, n, i, o, s) {
|
|
3738
|
+
if (e.length === 1 && bt(e[0]))
|
|
3710
3739
|
return [
|
|
3711
3740
|
{
|
|
3712
3741
|
type: _.literal,
|
|
@@ -3715,14 +3744,14 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3715
3744
|
];
|
|
3716
3745
|
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3717
3746
|
var l = h[u];
|
|
3718
|
-
if (
|
|
3747
|
+
if (bt(l)) {
|
|
3719
3748
|
a.push({
|
|
3720
3749
|
type: _.literal,
|
|
3721
3750
|
value: l.value
|
|
3722
3751
|
});
|
|
3723
3752
|
continue;
|
|
3724
3753
|
}
|
|
3725
|
-
if (
|
|
3754
|
+
if (Ln(l)) {
|
|
3726
3755
|
typeof o == "number" && a.push({
|
|
3727
3756
|
type: _.literal,
|
|
3728
3757
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3731,89 +3760,89 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3731
3760
|
}
|
|
3732
3761
|
var c = l.value;
|
|
3733
3762
|
if (!(i && c in i))
|
|
3734
|
-
throw new
|
|
3763
|
+
throw new hi(c, s);
|
|
3735
3764
|
var f = i[c];
|
|
3736
|
-
if (
|
|
3765
|
+
if (Nn(l)) {
|
|
3737
3766
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3738
3767
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3739
3768
|
value: f
|
|
3740
3769
|
});
|
|
3741
3770
|
continue;
|
|
3742
3771
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3772
|
+
if (Xt(l)) {
|
|
3773
|
+
var d = typeof l.style == "string" ? n.date[l.style] : je(l.style) ? l.style.parsedOptions : void 0;
|
|
3745
3774
|
a.push({
|
|
3746
3775
|
type: _.literal,
|
|
3747
|
-
value: r.getDateTimeFormat(t,
|
|
3776
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3748
3777
|
});
|
|
3749
3778
|
continue;
|
|
3750
3779
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3780
|
+
if (zt(l)) {
|
|
3781
|
+
var d = typeof l.style == "string" ? n.time[l.style] : je(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3753
3782
|
a.push({
|
|
3754
3783
|
type: _.literal,
|
|
3755
|
-
value: r.getDateTimeFormat(t,
|
|
3784
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3756
3785
|
});
|
|
3757
3786
|
continue;
|
|
3758
3787
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3788
|
+
if (Vt(l)) {
|
|
3789
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3790
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3762
3791
|
type: _.literal,
|
|
3763
|
-
value: r.getNumberFormat(t,
|
|
3792
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3764
3793
|
});
|
|
3765
3794
|
continue;
|
|
3766
3795
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var g = l.children, b = l.value,
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var L =
|
|
3772
|
-
return
|
|
3796
|
+
if (Qt(l)) {
|
|
3797
|
+
var g = l.children, b = l.value, x = i[b];
|
|
3798
|
+
if (!ci(x))
|
|
3799
|
+
throw new ui(b, "function", s);
|
|
3800
|
+
var L = fe(g, t, r, n, i, o), I = x(L.map(function(w) {
|
|
3801
|
+
return w.value;
|
|
3773
3802
|
}));
|
|
3774
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3803
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(w) {
|
|
3775
3804
|
return {
|
|
3776
|
-
type: typeof
|
|
3777
|
-
value:
|
|
3805
|
+
type: typeof w == "string" ? _.literal : _.object,
|
|
3806
|
+
value: w
|
|
3778
3807
|
};
|
|
3779
3808
|
}));
|
|
3780
3809
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3783
|
-
if (!
|
|
3784
|
-
throw new
|
|
3785
|
-
a.push.apply(a,
|
|
3810
|
+
if (Wt(l)) {
|
|
3811
|
+
var S = l.options[f] || l.options.other;
|
|
3812
|
+
if (!S)
|
|
3813
|
+
throw new St(l.value, f, Object.keys(l.options), s);
|
|
3814
|
+
a.push.apply(a, fe(S.value, t, r, n, i));
|
|
3786
3815
|
continue;
|
|
3787
3816
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3817
|
+
if (Zt(l)) {
|
|
3818
|
+
var S = l.options["=".concat(f)];
|
|
3819
|
+
if (!S) {
|
|
3791
3820
|
if (!Intl.PluralRules)
|
|
3792
|
-
throw new
|
|
3821
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3793
3822
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
|
-
`,
|
|
3795
|
-
var
|
|
3796
|
-
|
|
3823
|
+
`, X.MISSING_INTL_API, s);
|
|
3824
|
+
var C = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3825
|
+
S = l.options[C] || l.options.other;
|
|
3797
3826
|
}
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a,
|
|
3827
|
+
if (!S)
|
|
3828
|
+
throw new St(l.value, f, Object.keys(l.options), s);
|
|
3829
|
+
a.push.apply(a, fe(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3801
3830
|
continue;
|
|
3802
3831
|
}
|
|
3803
3832
|
}
|
|
3804
|
-
return
|
|
3833
|
+
return li(a);
|
|
3805
3834
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3835
|
+
function fi(e, t) {
|
|
3836
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3837
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
3809
3838
|
}, {})) : e;
|
|
3810
3839
|
}
|
|
3811
|
-
function
|
|
3840
|
+
function pi(e, t) {
|
|
3812
3841
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3842
|
+
return r[n] = fi(e[n], t[n]), r;
|
|
3843
|
+
}, H({}, e)) : e;
|
|
3815
3844
|
}
|
|
3816
|
-
function
|
|
3845
|
+
function Ie(e) {
|
|
3817
3846
|
return {
|
|
3818
3847
|
create: function() {
|
|
3819
3848
|
return {
|
|
@@ -3827,39 +3856,39 @@ function Oe(e) {
|
|
|
3827
3856
|
}
|
|
3828
3857
|
};
|
|
3829
3858
|
}
|
|
3830
|
-
function
|
|
3859
|
+
function mi(e) {
|
|
3831
3860
|
return e === void 0 && (e = {
|
|
3832
3861
|
number: {},
|
|
3833
3862
|
dateTime: {},
|
|
3834
3863
|
pluralRules: {}
|
|
3835
3864
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3865
|
+
getNumberFormat: Pe(function() {
|
|
3837
3866
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3867
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3868
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3840
3869
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3870
|
+
cache: Ie(e.number),
|
|
3871
|
+
strategy: Ae.variadic
|
|
3843
3872
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3873
|
+
getDateTimeFormat: Pe(function() {
|
|
3845
3874
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3875
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3876
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3848
3877
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3878
|
+
cache: Ie(e.dateTime),
|
|
3879
|
+
strategy: Ae.variadic
|
|
3851
3880
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3881
|
+
getPluralRules: Pe(function() {
|
|
3853
3882
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3883
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3884
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3856
3885
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3886
|
+
cache: Ie(e.pluralRules),
|
|
3887
|
+
strategy: Ae.variadic
|
|
3859
3888
|
})
|
|
3860
3889
|
};
|
|
3861
3890
|
}
|
|
3862
|
-
var
|
|
3891
|
+
var di = (
|
|
3863
3892
|
/** @class */
|
|
3864
3893
|
function() {
|
|
3865
3894
|
function e(t, r, n, i) {
|
|
@@ -3878,7 +3907,7 @@ var ci = (
|
|
|
3878
3907
|
}, []);
|
|
3879
3908
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3880
3909
|
}, this.formatToParts = function(u) {
|
|
3881
|
-
return
|
|
3910
|
+
return fe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3882
3911
|
}, this.resolvedOptions = function() {
|
|
3883
3912
|
var u;
|
|
3884
3913
|
return {
|
|
@@ -3891,13 +3920,13 @@ var ci = (
|
|
|
3891
3920
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3892
3921
|
var s = i || {};
|
|
3893
3922
|
s.formatters;
|
|
3894
|
-
var a =
|
|
3895
|
-
this.ast = e.__parse(t,
|
|
3923
|
+
var a = wn(s, ["formatters"]);
|
|
3924
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
|
3896
3925
|
} else
|
|
3897
3926
|
this.ast = t;
|
|
3898
3927
|
if (!Array.isArray(this.ast))
|
|
3899
3928
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3900
|
-
this.formats =
|
|
3929
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || mi(this.formatterCache);
|
|
3901
3930
|
}
|
|
3902
3931
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3903
3932
|
get: function() {
|
|
@@ -3910,7 +3939,7 @@ var ci = (
|
|
|
3910
3939
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3911
3940
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3912
3941
|
}
|
|
3913
|
-
}, e.__parse =
|
|
3942
|
+
}, e.__parse = ai, e.formats = {
|
|
3914
3943
|
number: {
|
|
3915
3944
|
integer: {
|
|
3916
3945
|
maximumFractionDigits: 0
|
|
@@ -3971,7 +4000,7 @@ var ci = (
|
|
|
3971
4000
|
}, e;
|
|
3972
4001
|
}()
|
|
3973
4002
|
);
|
|
3974
|
-
function
|
|
4003
|
+
function bi(e, t) {
|
|
3975
4004
|
if (t == null)
|
|
3976
4005
|
return;
|
|
3977
4006
|
if (t in e)
|
|
@@ -3992,92 +4021,92 @@ function fi(e, t) {
|
|
|
3992
4021
|
n = void 0;
|
|
3993
4022
|
return n;
|
|
3994
4023
|
}
|
|
3995
|
-
const N = {},
|
|
4024
|
+
const N = {}, gi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), ir = (e, t) => {
|
|
3996
4025
|
if (t == null)
|
|
3997
4026
|
return;
|
|
3998
4027
|
if (t in N && e in N[t])
|
|
3999
4028
|
return N[t][e];
|
|
4000
|
-
const r =
|
|
4029
|
+
const r = xe(t);
|
|
4001
4030
|
for (let n = 0; n < r.length; n++) {
|
|
4002
|
-
const i = r[n], o =
|
|
4031
|
+
const i = r[n], o = vi(i, e);
|
|
4003
4032
|
if (o)
|
|
4004
|
-
return
|
|
4033
|
+
return gi(e, t, o);
|
|
4005
4034
|
}
|
|
4006
4035
|
};
|
|
4007
|
-
let
|
|
4008
|
-
const
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4036
|
+
let qe;
|
|
4037
|
+
const ie = ve({});
|
|
4038
|
+
function yi(e) {
|
|
4039
|
+
return qe[e] || null;
|
|
4011
4040
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e in
|
|
4041
|
+
function or(e) {
|
|
4042
|
+
return e in qe;
|
|
4014
4043
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
4044
|
+
function vi(e, t) {
|
|
4045
|
+
if (!or(e))
|
|
4017
4046
|
return null;
|
|
4018
|
-
const r =
|
|
4019
|
-
return
|
|
4047
|
+
const r = yi(e);
|
|
4048
|
+
return bi(r, t);
|
|
4020
4049
|
}
|
|
4021
|
-
function
|
|
4050
|
+
function Ei(e) {
|
|
4022
4051
|
if (e == null)
|
|
4023
4052
|
return;
|
|
4024
|
-
const t =
|
|
4053
|
+
const t = xe(e);
|
|
4025
4054
|
for (let r = 0; r < t.length; r++) {
|
|
4026
4055
|
const n = t[r];
|
|
4027
|
-
if (
|
|
4056
|
+
if (or(n))
|
|
4028
4057
|
return n;
|
|
4029
4058
|
}
|
|
4030
4059
|
}
|
|
4031
|
-
function
|
|
4032
|
-
delete N[e],
|
|
4060
|
+
function sr(e, ...t) {
|
|
4061
|
+
delete N[e], ie.update((r) => (r[e] = Sn.all([r[e] || {}, ...t]), r));
|
|
4033
4062
|
}
|
|
4034
|
-
|
|
4035
|
-
[
|
|
4063
|
+
W(
|
|
4064
|
+
[ie],
|
|
4036
4065
|
([e]) => Object.keys(e)
|
|
4037
4066
|
);
|
|
4038
|
-
|
|
4039
|
-
const
|
|
4040
|
-
function
|
|
4041
|
-
|
|
4067
|
+
ie.subscribe((e) => qe = e);
|
|
4068
|
+
const pe = {};
|
|
4069
|
+
function _i(e, t) {
|
|
4070
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4042
4071
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4072
|
+
function ar(e) {
|
|
4073
|
+
return pe[e];
|
|
4045
4074
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4048
|
-
const r =
|
|
4075
|
+
function xi(e) {
|
|
4076
|
+
return xe(e).map((t) => {
|
|
4077
|
+
const r = ar(t);
|
|
4049
4078
|
return [t, r ? [...r] : []];
|
|
4050
4079
|
}).filter(([, t]) => t.length > 0);
|
|
4051
4080
|
}
|
|
4052
|
-
function
|
|
4053
|
-
return e == null ? !1 :
|
|
4081
|
+
function Ze(e) {
|
|
4082
|
+
return e == null ? !1 : xe(e).some(
|
|
4054
4083
|
(t) => {
|
|
4055
4084
|
var r;
|
|
4056
|
-
return (r =
|
|
4085
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4057
4086
|
}
|
|
4058
4087
|
);
|
|
4059
4088
|
}
|
|
4060
|
-
function
|
|
4089
|
+
function Si(e, t) {
|
|
4061
4090
|
return Promise.all(
|
|
4062
|
-
t.map((n) => (
|
|
4063
|
-
).then((n) =>
|
|
4064
|
-
}
|
|
4065
|
-
const
|
|
4066
|
-
function
|
|
4067
|
-
if (!
|
|
4068
|
-
return e in
|
|
4069
|
-
const t =
|
|
4070
|
-
return
|
|
4091
|
+
t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
|
|
4092
|
+
).then((n) => sr(e, ...n));
|
|
4093
|
+
}
|
|
4094
|
+
const J = {};
|
|
4095
|
+
function ur(e) {
|
|
4096
|
+
if (!Ze(e))
|
|
4097
|
+
return e in J ? J[e] : Promise.resolve();
|
|
4098
|
+
const t = xi(e);
|
|
4099
|
+
return J[e] = Promise.all(
|
|
4071
4100
|
t.map(
|
|
4072
|
-
([r, n]) =>
|
|
4101
|
+
([r, n]) => Si(r, n)
|
|
4073
4102
|
)
|
|
4074
4103
|
).then(() => {
|
|
4075
|
-
if (
|
|
4076
|
-
return
|
|
4077
|
-
delete
|
|
4078
|
-
}),
|
|
4104
|
+
if (Ze(e))
|
|
4105
|
+
return ur(e);
|
|
4106
|
+
delete J[e];
|
|
4107
|
+
}), J[e];
|
|
4079
4108
|
}
|
|
4080
|
-
const
|
|
4109
|
+
const wi = {
|
|
4081
4110
|
number: {
|
|
4082
4111
|
scientific: { notation: "scientific" },
|
|
4083
4112
|
engineering: { notation: "engineering" },
|
|
@@ -4106,150 +4135,150 @@ const Ei = {
|
|
|
4106
4135
|
timeZoneName: "short"
|
|
4107
4136
|
}
|
|
4108
4137
|
}
|
|
4109
|
-
},
|
|
4138
|
+
}, Ti = {
|
|
4110
4139
|
fallbackLocale: null,
|
|
4111
4140
|
loadingDelay: 200,
|
|
4112
|
-
formats:
|
|
4141
|
+
formats: wi,
|
|
4113
4142
|
warnOnMissingMessages: !0,
|
|
4114
4143
|
handleMissingMessage: void 0,
|
|
4115
4144
|
ignoreTag: !0
|
|
4116
|
-
},
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4145
|
+
}, Bi = Ti;
|
|
4146
|
+
function z() {
|
|
4147
|
+
return Bi;
|
|
4119
4148
|
}
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4149
|
+
const Ne = ve(!1);
|
|
4150
|
+
var Hi = Object.defineProperty, Pi = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
|
|
4122
4151
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4152
|
+
Oi.call(t, r) && Tt(e, r, t[r]);
|
|
4153
|
+
if (wt)
|
|
4154
|
+
for (var r of wt(t))
|
|
4155
|
+
Ii.call(t, r) && Tt(e, r, t[r]);
|
|
4127
4156
|
return e;
|
|
4128
|
-
},
|
|
4129
|
-
let
|
|
4130
|
-
const
|
|
4131
|
-
function
|
|
4157
|
+
}, Li = (e, t) => Pi(e, Ai(t));
|
|
4158
|
+
let Qe;
|
|
4159
|
+
const be = ve(null);
|
|
4160
|
+
function Bt(e) {
|
|
4132
4161
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4133
4162
|
}
|
|
4134
|
-
function
|
|
4135
|
-
const r =
|
|
4136
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4163
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4164
|
+
const r = Bt(e);
|
|
4165
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4137
4166
|
}
|
|
4138
|
-
function
|
|
4139
|
-
return
|
|
4167
|
+
function $() {
|
|
4168
|
+
return Qe != null ? Qe : void 0;
|
|
4140
4169
|
}
|
|
4141
|
-
|
|
4142
|
-
|
|
4170
|
+
be.subscribe((e) => {
|
|
4171
|
+
Qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4143
4172
|
});
|
|
4144
|
-
const
|
|
4145
|
-
if (e &&
|
|
4146
|
-
const { loadingDelay: t } =
|
|
4173
|
+
const Ci = (e) => {
|
|
4174
|
+
if (e && Ei(e) && Ze(e)) {
|
|
4175
|
+
const { loadingDelay: t } = z();
|
|
4147
4176
|
let r;
|
|
4148
|
-
return typeof window != "undefined" &&
|
|
4149
|
-
() =>
|
|
4177
|
+
return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
|
|
4178
|
+
() => Ne.set(!0),
|
|
4150
4179
|
t
|
|
4151
|
-
) :
|
|
4152
|
-
|
|
4180
|
+
) : Ne.set(!0), ur(e).then(() => {
|
|
4181
|
+
be.set(e);
|
|
4153
4182
|
}).finally(() => {
|
|
4154
|
-
clearTimeout(r),
|
|
4183
|
+
clearTimeout(r), Ne.set(!1);
|
|
4155
4184
|
});
|
|
4156
4185
|
}
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4159
|
-
set:
|
|
4160
|
-
}),
|
|
4186
|
+
return be.set(e);
|
|
4187
|
+
}, Z = Li(Ni({}, be), {
|
|
4188
|
+
set: Ci
|
|
4189
|
+
}), Se = (e) => {
|
|
4161
4190
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4162
4191
|
return (n) => {
|
|
4163
4192
|
const i = JSON.stringify(n);
|
|
4164
4193
|
return i in t ? t[i] : t[i] = e(n);
|
|
4165
4194
|
};
|
|
4166
4195
|
};
|
|
4167
|
-
var
|
|
4196
|
+
var Mi = Object.defineProperty, ge = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4168
4197
|
for (var r in t || (t = {}))
|
|
4169
|
-
|
|
4170
|
-
if (
|
|
4171
|
-
for (var r of
|
|
4172
|
-
|
|
4198
|
+
hr.call(t, r) && Ht(e, r, t[r]);
|
|
4199
|
+
if (ge)
|
|
4200
|
+
for (var r of ge(t))
|
|
4201
|
+
lr.call(t, r) && Ht(e, r, t[r]);
|
|
4173
4202
|
return e;
|
|
4174
|
-
},
|
|
4203
|
+
}, Q = (e, t) => {
|
|
4175
4204
|
var r = {};
|
|
4176
4205
|
for (var n in e)
|
|
4177
|
-
|
|
4178
|
-
if (e != null &&
|
|
4179
|
-
for (var n of
|
|
4180
|
-
t.indexOf(n) < 0 &&
|
|
4206
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4207
|
+
if (e != null && ge)
|
|
4208
|
+
for (var n of ge(e))
|
|
4209
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4181
4210
|
return r;
|
|
4182
4211
|
};
|
|
4183
|
-
const
|
|
4184
|
-
const { formats: r } =
|
|
4212
|
+
const te = (e, t) => {
|
|
4213
|
+
const { formats: r } = z();
|
|
4185
4214
|
if (e in r && t in r[e])
|
|
4186
4215
|
return r[e][t];
|
|
4187
4216
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4188
|
-
},
|
|
4217
|
+
}, $i = Se(
|
|
4189
4218
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4219
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4191
4220
|
if (r == null)
|
|
4192
4221
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4193
|
-
return n && (i =
|
|
4222
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4194
4223
|
}
|
|
4195
|
-
),
|
|
4224
|
+
), Ri = Se(
|
|
4196
4225
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4226
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4198
4227
|
if (r == null)
|
|
4199
4228
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4200
|
-
return n ? i =
|
|
4229
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4230
|
}
|
|
4202
|
-
),
|
|
4231
|
+
), Ui = Se(
|
|
4203
4232
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4233
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4205
4234
|
if (r == null)
|
|
4206
4235
|
throw new Error(
|
|
4207
4236
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4208
4237
|
);
|
|
4209
|
-
return n ? i =
|
|
4238
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4239
|
}
|
|
4211
|
-
),
|
|
4240
|
+
), Di = (e = {}) => {
|
|
4212
4241
|
var t = e, {
|
|
4213
|
-
locale: r =
|
|
4214
|
-
} = t, n =
|
|
4242
|
+
locale: r = $()
|
|
4243
|
+
} = t, n = Q(t, [
|
|
4215
4244
|
"locale"
|
|
4216
4245
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4246
|
+
return $i(Ke({ locale: r }, n));
|
|
4247
|
+
}, Gi = (e = {}) => {
|
|
4219
4248
|
var t = e, {
|
|
4220
|
-
locale: r =
|
|
4221
|
-
} = t, n =
|
|
4249
|
+
locale: r = $()
|
|
4250
|
+
} = t, n = Q(t, [
|
|
4222
4251
|
"locale"
|
|
4223
4252
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4253
|
+
return Ri(Ke({ locale: r }, n));
|
|
4254
|
+
}, Fi = (e = {}) => {
|
|
4226
4255
|
var t = e, {
|
|
4227
|
-
locale: r =
|
|
4228
|
-
} = t, n =
|
|
4256
|
+
locale: r = $()
|
|
4257
|
+
} = t, n = Q(t, [
|
|
4229
4258
|
"locale"
|
|
4230
4259
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4260
|
+
return Ui(Ke({ locale: r }, n));
|
|
4261
|
+
}, ji = Se(
|
|
4233
4262
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4234
|
-
(e, t =
|
|
4235
|
-
ignoreTag:
|
|
4263
|
+
(e, t = $()) => new di(e, t, z().formats, {
|
|
4264
|
+
ignoreTag: z().ignoreTag
|
|
4236
4265
|
})
|
|
4237
|
-
),
|
|
4266
|
+
), ki = (e, t = {}) => {
|
|
4238
4267
|
var r, n, i, o;
|
|
4239
4268
|
let s = t;
|
|
4240
4269
|
typeof e == "object" && (s = e, e = s.id);
|
|
4241
4270
|
const {
|
|
4242
4271
|
values: a,
|
|
4243
|
-
locale: u =
|
|
4272
|
+
locale: u = $(),
|
|
4244
4273
|
default: h
|
|
4245
4274
|
} = s;
|
|
4246
4275
|
if (u == null)
|
|
4247
4276
|
throw new Error(
|
|
4248
4277
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4249
4278
|
);
|
|
4250
|
-
let l =
|
|
4279
|
+
let l = ir(e, u);
|
|
4251
4280
|
if (!l)
|
|
4252
|
-
l = (o = (i = (n = (r =
|
|
4281
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4253
4282
|
else if (typeof l != "string")
|
|
4254
4283
|
return console.warn(
|
|
4255
4284
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4258,7 +4287,7 @@ const ee = (e, t) => {
|
|
|
4258
4287
|
return l;
|
|
4259
4288
|
let c = l;
|
|
4260
4289
|
try {
|
|
4261
|
-
c =
|
|
4290
|
+
c = ji(l, u).format(a);
|
|
4262
4291
|
} catch (f) {
|
|
4263
4292
|
f instanceof Error && console.warn(
|
|
4264
4293
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4266,21 +4295,21 @@ const ee = (e, t) => {
|
|
|
4266
4295
|
);
|
|
4267
4296
|
}
|
|
4268
4297
|
return c;
|
|
4269
|
-
},
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
window.emWidgets = { topic:
|
|
4275
|
-
const
|
|
4298
|
+
}, Vi = (e, t) => Fi(t).format(e), Xi = (e, t) => Gi(t).format(e), zi = (e, t) => Di(t).format(e), Wi = (e, t = $()) => ir(e, t), Zi = W([Z, ie], () => ki);
|
|
4299
|
+
W([Z], () => Vi);
|
|
4300
|
+
W([Z], () => Xi);
|
|
4301
|
+
W([Z], () => zi);
|
|
4302
|
+
W([Z, ie], () => Wi);
|
|
4303
|
+
window.emWidgets = { topic: sn };
|
|
4304
|
+
const ue = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4276
4305
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4306
|
+
function Pt(e, t) {
|
|
4307
|
+
sr(e, t);
|
|
4279
4308
|
}
|
|
4280
|
-
function
|
|
4281
|
-
|
|
4309
|
+
function Qi(e) {
|
|
4310
|
+
Z.set(e);
|
|
4282
4311
|
}
|
|
4283
|
-
const
|
|
4312
|
+
const At = {
|
|
4284
4313
|
en: {
|
|
4285
4314
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4286
4315
|
},
|
|
@@ -4321,10 +4350,10 @@ const Pt = {
|
|
|
4321
4350
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4322
4351
|
}
|
|
4323
4352
|
};
|
|
4324
|
-
function
|
|
4325
|
-
|
|
4353
|
+
function Ji(e) {
|
|
4354
|
+
vr(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}}");
|
|
4326
4355
|
}
|
|
4327
|
-
function
|
|
4356
|
+
function Yi(e) {
|
|
4328
4357
|
let t, r, n, i = (
|
|
4329
4358
|
/*customtext*/
|
|
4330
4359
|
(e[0] || /*$_*/
|
|
@@ -4332,90 +4361,90 @@ function Wi(e) {
|
|
|
4332
4361
|
), o, s;
|
|
4333
4362
|
return {
|
|
4334
4363
|
c() {
|
|
4335
|
-
t =
|
|
4364
|
+
t = Y("div"), r = Y("div"), n = Y("button"), o = xr(i), M(n, "class", "PanicButton " + (ue(
|
|
4336
4365
|
/*userAgent*/
|
|
4337
4366
|
e[6]
|
|
4338
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4367
|
+
) !== "PC" ? "PanicButtonMobile" : "")), M(n, "part", "PanicButton " + (ue(
|
|
4339
4368
|
/*userAgent*/
|
|
4340
4369
|
e[6]
|
|
4341
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4370
|
+
) !== "PC" ? "PanicButtonMobile" : "")), st(
|
|
4342
4371
|
n,
|
|
4343
4372
|
"PanicButtonAnimation",
|
|
4344
4373
|
/*panicLoading*/
|
|
4345
4374
|
e[4]
|
|
4346
|
-
),
|
|
4375
|
+
), M(r, "class", "PanicSection " + (ue(
|
|
4347
4376
|
/*userAgent*/
|
|
4348
4377
|
e[6]
|
|
4349
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4378
|
+
) !== "PC" ? "PanicSectionMobile" : "")), M(r, "part", "PanicSection " + (ue(
|
|
4350
4379
|
/*userAgent*/
|
|
4351
4380
|
e[6]
|
|
4352
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4381
|
+
) !== "PC" ? "PanicSectionMobile" : "")), M(t, "class", s = /*alternativestyling*/
|
|
4353
4382
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4354
4383
|
},
|
|
4355
4384
|
m(a, u) {
|
|
4356
|
-
|
|
4385
|
+
Lt(a, t, u), he(t, r), he(r, n), he(n, o), e[12](n), e[13](t);
|
|
4357
4386
|
},
|
|
4358
4387
|
p(a, [u]) {
|
|
4359
4388
|
u & /*customtext, $_*/
|
|
4360
4389
|
33 && i !== (i = /*customtext*/
|
|
4361
4390
|
(a[0] || /*$_*/
|
|
4362
|
-
a[5]("panicButtonString")) + "") &&
|
|
4363
|
-
16 &&
|
|
4391
|
+
a[5]("panicButtonString")) + "") && wr(o, i), u & /*panicLoading*/
|
|
4392
|
+
16 && st(
|
|
4364
4393
|
n,
|
|
4365
4394
|
"PanicButtonAnimation",
|
|
4366
4395
|
/*panicLoading*/
|
|
4367
4396
|
a[4]
|
|
4368
4397
|
), u & /*alternativestyling*/
|
|
4369
4398
|
2 && s !== (s = /*alternativestyling*/
|
|
4370
|
-
a[1] == "true" ? "PanicButtonV2" : "") &&
|
|
4399
|
+
a[1] == "true" ? "PanicButtonV2" : "") && M(t, "class", s);
|
|
4371
4400
|
},
|
|
4372
4401
|
i: B,
|
|
4373
4402
|
o: B,
|
|
4374
4403
|
d(a) {
|
|
4375
|
-
a &&
|
|
4404
|
+
a && Ye(t), e[12](null), e[13](null);
|
|
4376
4405
|
}
|
|
4377
4406
|
};
|
|
4378
4407
|
}
|
|
4379
|
-
function
|
|
4408
|
+
function qi(e, t, r) {
|
|
4380
4409
|
let n;
|
|
4381
|
-
|
|
4382
|
-
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,
|
|
4383
|
-
const
|
|
4410
|
+
yr(e, Zi, (y) => r(5, n = y));
|
|
4411
|
+
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, d, g = !1, b = 0, x, L = window.navigator.userAgent;
|
|
4412
|
+
const I = () => {
|
|
4384
4413
|
fetch(l).then((R) => R.json()).then((R) => {
|
|
4385
|
-
Object.keys(R).forEach((
|
|
4386
|
-
|
|
4414
|
+
Object.keys(R).forEach((et) => {
|
|
4415
|
+
Pt(et, R[et]);
|
|
4387
4416
|
});
|
|
4388
4417
|
}).catch((R) => {
|
|
4389
4418
|
console.log(R);
|
|
4390
4419
|
});
|
|
4391
4420
|
};
|
|
4392
|
-
Object.keys(
|
|
4393
|
-
|
|
4421
|
+
Object.keys(At).forEach((y) => {
|
|
4422
|
+
Pt(y, At[y]);
|
|
4394
4423
|
});
|
|
4395
|
-
const
|
|
4396
|
-
c == null || c.addEventListener("mousedown",
|
|
4397
|
-
},
|
|
4398
|
-
r(4,
|
|
4399
|
-
},
|
|
4400
|
-
|
|
4424
|
+
const S = () => {
|
|
4425
|
+
c == null || c.addEventListener("mousedown", w, !1), c == null || c.addEventListener("touchstart", w, !1), c == null || c.addEventListener("mouseup", P, !1), c == null || c.addEventListener("touchend", P, !1);
|
|
4426
|
+
}, C = () => {
|
|
4427
|
+
r(4, g = !1), c == null || c.removeEventListener("mousedown", w), c == null || c.removeEventListener("touchstart", w), c == null || c.removeEventListener("mouseup", P), c == null || c.removeEventListener("touchend", P);
|
|
4428
|
+
}, w = () => {
|
|
4429
|
+
b = 0, r(4, g = !0), x = setInterval(
|
|
4401
4430
|
() => {
|
|
4402
|
-
|
|
4431
|
+
b++, b >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(x), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4403
4432
|
},
|
|
4404
4433
|
1e3
|
|
4405
4434
|
);
|
|
4406
|
-
},
|
|
4407
|
-
r(4,
|
|
4435
|
+
}, P = () => {
|
|
4436
|
+
r(4, g = !1), clearInterval(x);
|
|
4408
4437
|
};
|
|
4409
|
-
|
|
4410
|
-
|
|
4438
|
+
Hr(() => () => {
|
|
4439
|
+
C();
|
|
4411
4440
|
});
|
|
4412
|
-
function
|
|
4413
|
-
|
|
4441
|
+
function oe(y) {
|
|
4442
|
+
me[y ? "unshift" : "push"](() => {
|
|
4414
4443
|
c = y, r(2, c);
|
|
4415
4444
|
});
|
|
4416
4445
|
}
|
|
4417
|
-
function
|
|
4418
|
-
|
|
4446
|
+
function cr(y) {
|
|
4447
|
+
me[y ? "unshift" : "push"](() => {
|
|
4419
4448
|
f = y, r(3, f);
|
|
4420
4449
|
});
|
|
4421
4450
|
}
|
|
@@ -4423,37 +4452,37 @@ function Zi(e, t, r) {
|
|
|
4423
4452
|
"lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
|
|
4424
4453
|
}, e.$$.update = () => {
|
|
4425
4454
|
e.$$.dirty & /*panicButton*/
|
|
4426
|
-
4 && c &&
|
|
4427
|
-
128 && i &&
|
|
4428
|
-
264 && s && f &&
|
|
4429
|
-
520 && a && f &&
|
|
4430
|
-
1032 && u && f &&
|
|
4431
|
-
2048 && l &&
|
|
4455
|
+
4 && c && S(), e.$$.dirty & /*lang*/
|
|
4456
|
+
128 && i && Qi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4457
|
+
264 && s && f && Fr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4458
|
+
520 && a && f && jr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4459
|
+
1032 && u && f && kr(f, `${u}.Style`, d), e.$$.dirty & /*translationurl*/
|
|
4460
|
+
2048 && l && I();
|
|
4432
4461
|
}, [
|
|
4433
4462
|
o,
|
|
4434
4463
|
h,
|
|
4435
4464
|
c,
|
|
4436
4465
|
f,
|
|
4437
|
-
|
|
4466
|
+
g,
|
|
4438
4467
|
n,
|
|
4439
|
-
|
|
4468
|
+
L,
|
|
4440
4469
|
i,
|
|
4441
4470
|
s,
|
|
4442
4471
|
a,
|
|
4443
4472
|
u,
|
|
4444
4473
|
l,
|
|
4445
|
-
|
|
4446
|
-
|
|
4474
|
+
oe,
|
|
4475
|
+
cr
|
|
4447
4476
|
];
|
|
4448
4477
|
}
|
|
4449
|
-
class
|
|
4478
|
+
class Ki extends Dr {
|
|
4450
4479
|
constructor(t) {
|
|
4451
|
-
super(),
|
|
4480
|
+
super(), Rr(
|
|
4452
4481
|
this,
|
|
4453
4482
|
t,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4483
|
+
qi,
|
|
4484
|
+
Yi,
|
|
4485
|
+
It,
|
|
4457
4486
|
{
|
|
4458
4487
|
lang: 7,
|
|
4459
4488
|
customtext: 0,
|
|
@@ -4463,7 +4492,7 @@ class Qi extends Rr {
|
|
|
4463
4492
|
alternativestyling: 1,
|
|
4464
4493
|
translationurl: 11
|
|
4465
4494
|
},
|
|
4466
|
-
|
|
4495
|
+
Ji
|
|
4467
4496
|
);
|
|
4468
4497
|
}
|
|
4469
4498
|
get lang() {
|
|
@@ -4509,7 +4538,7 @@ class Qi extends Rr {
|
|
|
4509
4538
|
this.$$set({ translationurl: t }), A();
|
|
4510
4539
|
}
|
|
4511
4540
|
}
|
|
4512
|
-
|
|
4541
|
+
Ur(Ki, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4513
4542
|
export {
|
|
4514
|
-
|
|
4543
|
+
Ki as default
|
|
4515
4544
|
};
|