@everymatrix/player-panic-button 1.55.0 → 1.56.0
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-BF-dgO92.cjs +5 -0
- package/components/{PlayerPanicButton-BTFfd1GX.js → PlayerPanicButton-CX8hzfH6.js} +966 -969
- package/components/{PlayerPanicButton-DoCQAhyl.js → PlayerPanicButton-CprVufCa.js} +891 -894
- 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-DK21h8Bu.cjs +0 -5
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var or = Object.defineProperty, sr = Object.defineProperties;
|
|
2
|
+
var ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ur.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var r of Qe(t))
|
|
10
|
+
hr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var o = (
|
|
12
|
+
}, Ye = (e, t) => sr(e, ar(t));
|
|
13
|
+
var T = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var qe = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
a(r.next(
|
|
17
|
+
a(r.next(u));
|
|
18
18
|
} catch (h) {
|
|
19
19
|
i(h);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
a(r.throw(
|
|
23
|
+
a(r.throw(u));
|
|
24
24
|
} catch (h) {
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function H() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ke() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Tt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function wt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ht(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function At(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function cr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ue(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function fr(e, t, r) {
|
|
66
|
+
const n = pr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = Y("style");
|
|
69
|
+
i.id = t, i.textContent = r, mr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function pr(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,39 +78,39 @@ function yr(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function mr(e, t) {
|
|
82
|
+
return ue(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
85
85
|
t
|
|
86
86
|
), t.sheet;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Pt(e, t, r) {
|
|
89
89
|
e.insertBefore(t, r || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Xe(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Y(e) {
|
|
95
95
|
return document.createElement(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function dr(e) {
|
|
98
98
|
return document.createTextNode(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function L(e, t, r) {
|
|
101
101
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function br(e) {
|
|
104
104
|
return Array.from(e.childNodes);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function gr(e, t) {
|
|
107
107
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
108
|
t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function et(e, t, r) {
|
|
111
111
|
e.classList.toggle(t, !!r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function vr(e) {
|
|
114
114
|
const t = {};
|
|
115
115
|
return e.childNodes.forEach(
|
|
116
116
|
/** @param {Element} node */
|
|
@@ -119,85 +119,85 @@ function Sr(e) {
|
|
|
119
119
|
}
|
|
120
120
|
), t;
|
|
121
121
|
}
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
function Tr() {
|
|
127
|
-
if (!ee) throw new Error("Function called outside component initialization");
|
|
128
|
-
return ee;
|
|
129
|
-
}
|
|
130
|
-
function Hr(e) {
|
|
131
|
-
Tr().$$.on_mount.push(e);
|
|
122
|
+
let K;
|
|
123
|
+
function q(e) {
|
|
124
|
+
K = e;
|
|
132
125
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
let Ie = !1;
|
|
137
|
-
function Pr() {
|
|
138
|
-
Ie || (Ie = !0, wr.then(C));
|
|
126
|
+
function yr() {
|
|
127
|
+
if (!K) throw new Error("Function called outside component initialization");
|
|
128
|
+
return K;
|
|
139
129
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
-
|
|
130
|
+
function xr(e) {
|
|
131
|
+
yr().$$.on_mount.push(e);
|
|
132
|
+
}
|
|
133
|
+
const G = [], pe = [];
|
|
134
|
+
let F = [];
|
|
135
|
+
const tt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
136
|
+
let Ae = !1;
|
|
137
|
+
function _r() {
|
|
138
|
+
Ae || (Ae = !0, Er.then(B));
|
|
139
|
+
}
|
|
140
|
+
function Oe(e) {
|
|
141
|
+
F.push(e);
|
|
142
|
+
}
|
|
143
|
+
const _e = /* @__PURE__ */ new Set();
|
|
144
|
+
let D = 0;
|
|
145
|
+
function B() {
|
|
146
|
+
if (D !== 0)
|
|
147
147
|
return;
|
|
148
|
-
const e =
|
|
148
|
+
const e = K;
|
|
149
149
|
do {
|
|
150
150
|
try {
|
|
151
|
-
for (;
|
|
152
|
-
const t = G[
|
|
153
|
-
|
|
151
|
+
for (; D < G.length; ) {
|
|
152
|
+
const t = G[D];
|
|
153
|
+
D++, q(t), Sr(t.$$);
|
|
154
154
|
}
|
|
155
155
|
} catch (t) {
|
|
156
|
-
throw G.length = 0,
|
|
156
|
+
throw G.length = 0, D = 0, t;
|
|
157
157
|
}
|
|
158
|
-
for (
|
|
159
|
-
for (let t = 0; t <
|
|
160
|
-
const r =
|
|
161
|
-
|
|
158
|
+
for (q(null), G.length = 0, D = 0; pe.length; ) pe.pop()();
|
|
159
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
160
|
+
const r = F[t];
|
|
161
|
+
_e.has(r) || (_e.add(r), r());
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
F.length = 0;
|
|
164
164
|
} while (G.length);
|
|
165
|
-
for (;
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
for (; tt.length; )
|
|
166
|
+
tt.pop()();
|
|
167
|
+
Ae = !1, _e.clear(), q(e);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Sr(e) {
|
|
170
170
|
if (e.fragment !== null) {
|
|
171
|
-
e.update(),
|
|
171
|
+
e.update(), re(e.before_update);
|
|
172
172
|
const t = e.dirty;
|
|
173
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
173
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Tr(e) {
|
|
177
177
|
const t = [], r = [];
|
|
178
|
-
|
|
178
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
182
|
-
e && e.i && (
|
|
180
|
+
const wr = /* @__PURE__ */ new Set();
|
|
181
|
+
function Hr(e, t) {
|
|
182
|
+
e && e.i && (wr.delete(e), e.i(t));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Pr(e, t, r) {
|
|
185
185
|
const { fragment: n, after_update: i } = e.$$;
|
|
186
|
-
n && n.m(t, r),
|
|
187
|
-
const o = e.$$.on_mount.map(
|
|
188
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
189
|
-
}), i.forEach(
|
|
186
|
+
n && n.m(t, r), Oe(() => {
|
|
187
|
+
const o = e.$$.on_mount.map(Tt).filter(Ve);
|
|
188
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
189
|
+
}), i.forEach(Oe);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Br(e, t) {
|
|
192
192
|
const r = e.$$;
|
|
193
|
-
r.fragment !== null && (
|
|
193
|
+
r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
195
|
+
function Ar(e, t) {
|
|
196
|
+
e.$$.dirty[0] === -1 && (G.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
|
|
198
|
+
function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
199
|
+
const u = K;
|
|
200
|
+
q(e);
|
|
201
201
|
const h = e.$$ = {
|
|
202
202
|
fragment: null,
|
|
203
203
|
ctx: [],
|
|
@@ -205,57 +205,57 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
205
205
|
props: o,
|
|
206
206
|
update: H,
|
|
207
207
|
not_equal: i,
|
|
208
|
-
bound:
|
|
208
|
+
bound: Ke(),
|
|
209
209
|
// lifecycle
|
|
210
210
|
on_mount: [],
|
|
211
211
|
on_destroy: [],
|
|
212
212
|
on_disconnect: [],
|
|
213
213
|
before_update: [],
|
|
214
214
|
after_update: [],
|
|
215
|
-
context: new Map(t.context || (
|
|
215
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
216
216
|
// everything else
|
|
217
|
-
callbacks:
|
|
217
|
+
callbacks: Ke(),
|
|
218
218
|
dirty: a,
|
|
219
219
|
skip_bound: !1,
|
|
220
|
-
root: t.target ||
|
|
220
|
+
root: t.target || u.$$.root
|
|
221
221
|
};
|
|
222
222
|
s && s(h.root);
|
|
223
|
-
let
|
|
224
|
-
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
225
|
-
const v =
|
|
226
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = v) && (!h.skip_bound && h.bound[c] && h.bound[c](v),
|
|
227
|
-
}) : [], h.update(),
|
|
223
|
+
let l = !1;
|
|
224
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
225
|
+
const v = m.length ? m[0] : f;
|
|
226
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = v) && (!h.skip_bound && h.bound[c] && h.bound[c](v), l && Ar(e, c)), f;
|
|
227
|
+
}) : [], h.update(), l = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
228
228
|
if (t.hydrate) {
|
|
229
|
-
const c =
|
|
230
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
229
|
+
const c = br(t.target);
|
|
230
|
+
h.fragment && h.fragment.l(c), c.forEach(Xe);
|
|
231
231
|
} else
|
|
232
232
|
h.fragment && h.fragment.c();
|
|
233
|
-
t.intro &&
|
|
233
|
+
t.intro && Hr(e.$$.fragment), Pr(e, t.target, t.anchor), B();
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
q(u);
|
|
236
236
|
}
|
|
237
|
-
let
|
|
238
|
-
typeof HTMLElement == "function" && (
|
|
237
|
+
let Bt;
|
|
238
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
239
239
|
constructor(t, r, n) {
|
|
240
240
|
super();
|
|
241
241
|
/** The Svelte component constructor */
|
|
242
|
-
|
|
242
|
+
T(this, "$$ctor");
|
|
243
243
|
/** Slots */
|
|
244
|
-
|
|
244
|
+
T(this, "$$s");
|
|
245
245
|
/** The Svelte component instance */
|
|
246
|
-
|
|
246
|
+
T(this, "$$c");
|
|
247
247
|
/** Whether or not the custom element is connected */
|
|
248
|
-
|
|
248
|
+
T(this, "$$cn", !1);
|
|
249
249
|
/** Component props data */
|
|
250
|
-
|
|
250
|
+
T(this, "$$d", {});
|
|
251
251
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
252
|
-
|
|
252
|
+
T(this, "$$r", !1);
|
|
253
253
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
254
|
-
|
|
254
|
+
T(this, "$$p_d", {});
|
|
255
255
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
256
|
-
|
|
256
|
+
T(this, "$$l", {});
|
|
257
257
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
258
|
-
|
|
258
|
+
T(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
259
259
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
260
260
|
}
|
|
261
261
|
addEventListener(t, r, n) {
|
|
@@ -272,42 +272,42 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
connectedCallback() {
|
|
275
|
-
return
|
|
275
|
+
return qe(this, null, function* () {
|
|
276
276
|
if (this.$$cn = !0, !this.$$c) {
|
|
277
277
|
let t = function(o) {
|
|
278
278
|
return () => {
|
|
279
279
|
let s;
|
|
280
280
|
return {
|
|
281
281
|
c: function() {
|
|
282
|
-
s =
|
|
282
|
+
s = Y("slot"), o !== "default" && L(s, "name", o);
|
|
283
283
|
},
|
|
284
284
|
/**
|
|
285
285
|
* @param {HTMLElement} target
|
|
286
286
|
* @param {HTMLElement} [anchor]
|
|
287
287
|
*/
|
|
288
|
-
m: function(h,
|
|
289
|
-
|
|
288
|
+
m: function(h, l) {
|
|
289
|
+
Pt(h, s, l);
|
|
290
290
|
},
|
|
291
291
|
d: function(h) {
|
|
292
|
-
h &&
|
|
292
|
+
h && Xe(s);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
298
298
|
return;
|
|
299
|
-
const r = {}, n =
|
|
299
|
+
const r = {}, n = vr(this);
|
|
300
300
|
for (const o of this.$$s)
|
|
301
301
|
o in n && (r[o] = [t(o)]);
|
|
302
302
|
for (const o of this.attributes) {
|
|
303
303
|
const s = this.$$g_p(o.name);
|
|
304
|
-
s in this.$$d || (this.$$d[s] =
|
|
304
|
+
s in this.$$d || (this.$$d[s] = he(s, o.value, this.$$p_d, "toProp"));
|
|
305
305
|
}
|
|
306
306
|
for (const o in this.$$p_d)
|
|
307
307
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
308
308
|
this.$$c = new this.$$ctor({
|
|
309
309
|
target: this.shadowRoot || this,
|
|
310
|
-
props:
|
|
310
|
+
props: Ye(Je({}, this.$$d), {
|
|
311
311
|
$$slots: r,
|
|
312
312
|
$$scope: {
|
|
313
313
|
ctx: []
|
|
@@ -318,7 +318,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
318
318
|
this.$$r = !0;
|
|
319
319
|
for (const o in this.$$p_d)
|
|
320
320
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
321
|
-
const s =
|
|
321
|
+
const s = he(
|
|
322
322
|
o,
|
|
323
323
|
this.$$d[o],
|
|
324
324
|
this.$$p_d,
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
342
342
|
// and setting attributes through setAttribute etc, this is helpful
|
|
343
343
|
attributeChangedCallback(t, r, n) {
|
|
344
344
|
var i;
|
|
345
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
345
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
346
346
|
}
|
|
347
347
|
disconnectedCallback() {
|
|
348
348
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
355
355
|
) || t;
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
function
|
|
358
|
+
function he(e, t, r, n) {
|
|
359
359
|
var o;
|
|
360
360
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
361
361
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -385,8 +385,8 @@ function le(e, t, r, n) {
|
|
|
385
385
|
return t;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
let s = class extends
|
|
388
|
+
function Ir(e, t, r, n, i, o) {
|
|
389
|
+
let s = class extends Bt {
|
|
390
390
|
constructor() {
|
|
391
391
|
super(e, r, i), this.$$p_d = t;
|
|
392
392
|
}
|
|
@@ -401,22 +401,22 @@ function $r(e, t, r, n, i, o) {
|
|
|
401
401
|
get() {
|
|
402
402
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
403
403
|
},
|
|
404
|
-
set(
|
|
404
|
+
set(u) {
|
|
405
405
|
var h;
|
|
406
|
-
|
|
406
|
+
u = he(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
}), n.forEach((a) => {
|
|
410
410
|
Object.defineProperty(s.prototype, a, {
|
|
411
411
|
get() {
|
|
412
|
-
var
|
|
413
|
-
return (
|
|
412
|
+
var u;
|
|
413
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
}), e.element = /** @type {any} */
|
|
417
417
|
s, s;
|
|
418
418
|
}
|
|
419
|
-
class
|
|
419
|
+
class Cr {
|
|
420
420
|
constructor() {
|
|
421
421
|
/**
|
|
422
422
|
* ### PRIVATE API
|
|
@@ -425,7 +425,7 @@ class Rr {
|
|
|
425
425
|
*
|
|
426
426
|
* @type {any}
|
|
427
427
|
*/
|
|
428
|
-
|
|
428
|
+
T(this, "$$");
|
|
429
429
|
/**
|
|
430
430
|
* ### PRIVATE API
|
|
431
431
|
*
|
|
@@ -433,11 +433,11 @@ class Rr {
|
|
|
433
433
|
*
|
|
434
434
|
* @type {any}
|
|
435
435
|
*/
|
|
436
|
-
|
|
436
|
+
T(this, "$$set");
|
|
437
437
|
}
|
|
438
438
|
/** @returns {void} */
|
|
439
439
|
$destroy() {
|
|
440
|
-
|
|
440
|
+
Br(this, 1), this.$destroy = H;
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -446,7 +446,7 @@ class Rr {
|
|
|
446
446
|
* @returns {() => void}
|
|
447
447
|
*/
|
|
448
448
|
$on(t, r) {
|
|
449
|
-
if (!
|
|
449
|
+
if (!Ve(r))
|
|
450
450
|
return H;
|
|
451
451
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
452
|
return n.push(r), () => {
|
|
@@ -459,22 +459,45 @@ class Rr {
|
|
|
459
459
|
* @returns {void}
|
|
460
460
|
*/
|
|
461
461
|
$set(t) {
|
|
462
|
-
this.$$set && !
|
|
462
|
+
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
const Nr = "4";
|
|
466
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
467
|
+
function Lr(e, t) {
|
|
468
|
+
if (e) {
|
|
469
|
+
const r = document.createElement("style");
|
|
470
|
+
r.innerHTML = t, e.appendChild(r);
|
|
463
471
|
}
|
|
464
472
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
473
|
+
function Mr(e, t) {
|
|
474
|
+
const r = new URL(t);
|
|
475
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
476
|
+
const i = document.createElement("style");
|
|
477
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
478
|
+
}).catch((n) => {
|
|
479
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
function $r(e, t, r) {
|
|
483
|
+
if (window.emMessageBus) {
|
|
484
|
+
const n = document.createElement("style");
|
|
485
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
486
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
var Ie = function(e, t) {
|
|
491
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
492
|
r.__proto__ = n;
|
|
470
493
|
} || function(r, n) {
|
|
471
494
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
472
|
-
},
|
|
495
|
+
}, Ie(e, t);
|
|
473
496
|
};
|
|
474
497
|
function O(e, t) {
|
|
475
498
|
if (typeof t != "function" && t !== null)
|
|
476
499
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
477
|
-
|
|
500
|
+
Ie(e, t);
|
|
478
501
|
function r() {
|
|
479
502
|
this.constructor = e;
|
|
480
503
|
}
|
|
@@ -489,7 +512,7 @@ var b = function() {
|
|
|
489
512
|
return t;
|
|
490
513
|
}, b.apply(this, arguments);
|
|
491
514
|
};
|
|
492
|
-
function
|
|
515
|
+
function Rr(e, t) {
|
|
493
516
|
var r = {};
|
|
494
517
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
495
518
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -497,7 +520,7 @@ function Ur(e, t) {
|
|
|
497
520
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
498
521
|
return r;
|
|
499
522
|
}
|
|
500
|
-
function
|
|
523
|
+
function Ce(e) {
|
|
501
524
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
502
525
|
if (r) return r.call(e);
|
|
503
526
|
if (e && typeof e.length == "number") return {
|
|
@@ -507,7 +530,7 @@ function Ne(e) {
|
|
|
507
530
|
};
|
|
508
531
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
509
532
|
}
|
|
510
|
-
function
|
|
533
|
+
function Ne(e, t) {
|
|
511
534
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
512
535
|
if (!r) return e;
|
|
513
536
|
var n = r.call(e), i, o = [], s;
|
|
@@ -524,7 +547,7 @@ function Me(e, t) {
|
|
|
524
547
|
}
|
|
525
548
|
return o;
|
|
526
549
|
}
|
|
527
|
-
function
|
|
550
|
+
function j(e, t, r) {
|
|
528
551
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
529
552
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
530
553
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -532,13 +555,13 @@ function k(e, t, r) {
|
|
|
532
555
|
function A(e) {
|
|
533
556
|
return typeof e == "function";
|
|
534
557
|
}
|
|
535
|
-
function
|
|
558
|
+
function At(e) {
|
|
536
559
|
var t = function(n) {
|
|
537
560
|
Error.call(n), n.stack = new Error().stack;
|
|
538
561
|
}, r = e(t);
|
|
539
562
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
540
563
|
}
|
|
541
|
-
var
|
|
564
|
+
var Se = At(function(e) {
|
|
542
565
|
return function(r) {
|
|
543
566
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
544
567
|
` + r.map(function(n, i) {
|
|
@@ -547,13 +570,13 @@ var Te = Ct(function(e) {
|
|
|
547
570
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
548
571
|
};
|
|
549
572
|
});
|
|
550
|
-
function
|
|
573
|
+
function Le(e, t) {
|
|
551
574
|
if (e) {
|
|
552
575
|
var r = e.indexOf(t);
|
|
553
576
|
0 <= r && e.splice(r, 1);
|
|
554
577
|
}
|
|
555
578
|
}
|
|
556
|
-
var
|
|
579
|
+
var be = function() {
|
|
557
580
|
function e(t) {
|
|
558
581
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
559
582
|
}
|
|
@@ -565,58 +588,58 @@ var ge = function() {
|
|
|
565
588
|
if (s)
|
|
566
589
|
if (this._parentage = null, Array.isArray(s))
|
|
567
590
|
try {
|
|
568
|
-
for (var a =
|
|
569
|
-
var h =
|
|
591
|
+
for (var a = Ce(s), u = a.next(); !u.done; u = a.next()) {
|
|
592
|
+
var h = u.value;
|
|
570
593
|
h.remove(this);
|
|
571
594
|
}
|
|
572
|
-
} catch (
|
|
573
|
-
t = { error:
|
|
595
|
+
} catch (g) {
|
|
596
|
+
t = { error: g };
|
|
574
597
|
} finally {
|
|
575
598
|
try {
|
|
576
|
-
|
|
599
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
577
600
|
} finally {
|
|
578
601
|
if (t) throw t.error;
|
|
579
602
|
}
|
|
580
603
|
}
|
|
581
604
|
else
|
|
582
605
|
s.remove(this);
|
|
583
|
-
var
|
|
584
|
-
if (A(
|
|
606
|
+
var l = this.initialTeardown;
|
|
607
|
+
if (A(l))
|
|
585
608
|
try {
|
|
586
|
-
|
|
587
|
-
} catch (
|
|
588
|
-
o =
|
|
609
|
+
l();
|
|
610
|
+
} catch (g) {
|
|
611
|
+
o = g instanceof Se ? g.errors : [g];
|
|
589
612
|
}
|
|
590
613
|
var c = this._finalizers;
|
|
591
614
|
if (c) {
|
|
592
615
|
this._finalizers = null;
|
|
593
616
|
try {
|
|
594
|
-
for (var f =
|
|
595
|
-
var v =
|
|
617
|
+
for (var f = Ce(c), m = f.next(); !m.done; m = f.next()) {
|
|
618
|
+
var v = m.value;
|
|
596
619
|
try {
|
|
597
|
-
|
|
598
|
-
} catch (
|
|
599
|
-
o = o != null ? o : [],
|
|
620
|
+
rt(v);
|
|
621
|
+
} catch (g) {
|
|
622
|
+
o = o != null ? o : [], g instanceof Se ? o = j(j([], Ne(o)), Ne(g.errors)) : o.push(g);
|
|
600
623
|
}
|
|
601
624
|
}
|
|
602
|
-
} catch (
|
|
603
|
-
n = { error:
|
|
625
|
+
} catch (g) {
|
|
626
|
+
n = { error: g };
|
|
604
627
|
} finally {
|
|
605
628
|
try {
|
|
606
|
-
|
|
629
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
607
630
|
} finally {
|
|
608
631
|
if (n) throw n.error;
|
|
609
632
|
}
|
|
610
633
|
}
|
|
611
634
|
}
|
|
612
635
|
if (o)
|
|
613
|
-
throw new
|
|
636
|
+
throw new Se(o);
|
|
614
637
|
}
|
|
615
638
|
}, e.prototype.add = function(t) {
|
|
616
639
|
var r;
|
|
617
640
|
if (t && t !== this)
|
|
618
641
|
if (this.closed)
|
|
619
|
-
|
|
642
|
+
rt(t);
|
|
620
643
|
else {
|
|
621
644
|
if (t instanceof e) {
|
|
622
645
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,32 +656,28 @@ var ge = function() {
|
|
|
633
656
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
634
657
|
}, e.prototype._removeParent = function(t) {
|
|
635
658
|
var r = this._parentage;
|
|
636
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
659
|
+
r === t ? this._parentage = null : Array.isArray(r) && Le(r, t);
|
|
637
660
|
}, e.prototype.remove = function(t) {
|
|
638
661
|
var r = this._finalizers;
|
|
639
|
-
r &&
|
|
662
|
+
r && Le(r, t), t instanceof e && t._removeParent(this);
|
|
640
663
|
}, e.EMPTY = function() {
|
|
641
664
|
var t = new e();
|
|
642
665
|
return t.closed = !0, t;
|
|
643
666
|
}(), e;
|
|
644
|
-
}(),
|
|
645
|
-
function
|
|
646
|
-
return e instanceof
|
|
667
|
+
}(), Ot = be.EMPTY;
|
|
668
|
+
function It(e) {
|
|
669
|
+
return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
647
670
|
}
|
|
648
|
-
function
|
|
671
|
+
function rt(e) {
|
|
649
672
|
A(e) ? e() : e.unsubscribe();
|
|
650
673
|
}
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
Promise: void 0,
|
|
655
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
|
-
useDeprecatedNextContext: !1
|
|
657
|
-
}, Fr = {
|
|
674
|
+
var Dr = {
|
|
675
|
+
Promise: void 0
|
|
676
|
+
}, Ur = {
|
|
658
677
|
setTimeout: function(e, t) {
|
|
659
678
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
679
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0,
|
|
680
|
+
return setTimeout.apply(void 0, j([e, t], Ne(r)));
|
|
662
681
|
},
|
|
663
682
|
clearTimeout: function(e) {
|
|
664
683
|
return clearTimeout(e);
|
|
@@ -666,23 +685,23 @@ var Mt = {
|
|
|
666
685
|
delegate: void 0
|
|
667
686
|
};
|
|
668
687
|
function Gr(e) {
|
|
669
|
-
|
|
688
|
+
Ur.setTimeout(function() {
|
|
670
689
|
throw e;
|
|
671
690
|
});
|
|
672
691
|
}
|
|
673
|
-
function
|
|
692
|
+
function nt() {
|
|
674
693
|
}
|
|
675
|
-
function
|
|
694
|
+
function le(e) {
|
|
676
695
|
e();
|
|
677
696
|
}
|
|
678
|
-
var
|
|
697
|
+
var Ct = function(e) {
|
|
679
698
|
O(t, e);
|
|
680
699
|
function t(r) {
|
|
681
700
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
701
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = kr, n;
|
|
683
702
|
}
|
|
684
703
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
704
|
+
return new Me(r, n, i);
|
|
686
705
|
}, t.prototype.next = function(r) {
|
|
687
706
|
this.isStopped || this._next(r);
|
|
688
707
|
}, t.prototype.error = function(r) {
|
|
@@ -706,11 +725,7 @@ var $t = function(e) {
|
|
|
706
725
|
this.unsubscribe();
|
|
707
726
|
}
|
|
708
727
|
}, t;
|
|
709
|
-
}(
|
|
710
|
-
function He(e, t) {
|
|
711
|
-
return jr.call(e, t);
|
|
712
|
-
}
|
|
713
|
-
var kr = function() {
|
|
728
|
+
}(be), Fr = function() {
|
|
714
729
|
function e(t) {
|
|
715
730
|
this.partialObserver = t;
|
|
716
731
|
}
|
|
@@ -720,7 +735,7 @@ var kr = function() {
|
|
|
720
735
|
try {
|
|
721
736
|
r.next(t);
|
|
722
737
|
} catch (n) {
|
|
723
|
-
|
|
738
|
+
oe(n);
|
|
724
739
|
}
|
|
725
740
|
}, e.prototype.error = function(t) {
|
|
726
741
|
var r = this.partialObserver;
|
|
@@ -728,68 +743,56 @@ var kr = function() {
|
|
|
728
743
|
try {
|
|
729
744
|
r.error(t);
|
|
730
745
|
} catch (n) {
|
|
731
|
-
|
|
746
|
+
oe(n);
|
|
732
747
|
}
|
|
733
748
|
else
|
|
734
|
-
|
|
749
|
+
oe(t);
|
|
735
750
|
}, e.prototype.complete = function() {
|
|
736
751
|
var t = this.partialObserver;
|
|
737
752
|
if (t.complete)
|
|
738
753
|
try {
|
|
739
754
|
t.complete();
|
|
740
755
|
} catch (r) {
|
|
741
|
-
|
|
756
|
+
oe(r);
|
|
742
757
|
}
|
|
743
758
|
}, e;
|
|
744
|
-
}(),
|
|
759
|
+
}(), Me = function(e) {
|
|
745
760
|
O(t, e);
|
|
746
761
|
function t(r, n, i) {
|
|
747
762
|
var o = e.call(this) || this, s;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
};
|
|
754
|
-
else {
|
|
755
|
-
var a;
|
|
756
|
-
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
757
|
-
return o.unsubscribe();
|
|
758
|
-
}, s = {
|
|
759
|
-
next: r.next && He(r.next, a),
|
|
760
|
-
error: r.error && He(r.error, a),
|
|
761
|
-
complete: r.complete && He(r.complete, a)
|
|
762
|
-
}) : s = r;
|
|
763
|
-
}
|
|
764
|
-
return o.destination = new kr(s), o;
|
|
763
|
+
return A(r) || !r ? s = {
|
|
764
|
+
next: r != null ? r : void 0,
|
|
765
|
+
error: n != null ? n : void 0,
|
|
766
|
+
complete: i != null ? i : void 0
|
|
767
|
+
} : s = r, o.destination = new Fr(s), o;
|
|
765
768
|
}
|
|
766
769
|
return t;
|
|
767
|
-
}(
|
|
768
|
-
function
|
|
770
|
+
}(Ct);
|
|
771
|
+
function oe(e) {
|
|
769
772
|
Gr(e);
|
|
770
773
|
}
|
|
771
|
-
function
|
|
774
|
+
function jr(e) {
|
|
772
775
|
throw e;
|
|
773
776
|
}
|
|
774
|
-
var
|
|
777
|
+
var kr = {
|
|
775
778
|
closed: !0,
|
|
776
|
-
next:
|
|
777
|
-
error:
|
|
778
|
-
complete:
|
|
779
|
-
},
|
|
779
|
+
next: nt,
|
|
780
|
+
error: jr,
|
|
781
|
+
complete: nt
|
|
782
|
+
}, Vr = function() {
|
|
780
783
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
781
784
|
}();
|
|
782
|
-
function
|
|
785
|
+
function Xr(e) {
|
|
783
786
|
return e;
|
|
784
787
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.length === 0 ?
|
|
788
|
+
function zr(e) {
|
|
789
|
+
return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
|
|
787
790
|
return e.reduce(function(n, i) {
|
|
788
791
|
return i(n);
|
|
789
792
|
}, r);
|
|
790
793
|
};
|
|
791
794
|
}
|
|
792
|
-
var
|
|
795
|
+
var it = function() {
|
|
793
796
|
function e(t) {
|
|
794
797
|
t && (this._subscribe = t);
|
|
795
798
|
}
|
|
@@ -797,10 +800,10 @@ var at = function() {
|
|
|
797
800
|
var r = new e();
|
|
798
801
|
return r.source = this, r.operator = t, r;
|
|
799
802
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
800
|
-
var i = this, o =
|
|
801
|
-
return
|
|
802
|
-
var s = i, a = s.operator,
|
|
803
|
-
o.add(a ? a.call(o,
|
|
803
|
+
var i = this, o = Zr(t) ? t : new Me(t, r, n);
|
|
804
|
+
return le(function() {
|
|
805
|
+
var s = i, a = s.operator, u = s.source;
|
|
806
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
804
807
|
}), o;
|
|
805
808
|
}, e.prototype._trySubscribe = function(t) {
|
|
806
809
|
try {
|
|
@@ -810,13 +813,13 @@ var at = function() {
|
|
|
810
813
|
}
|
|
811
814
|
}, e.prototype.forEach = function(t, r) {
|
|
812
815
|
var n = this;
|
|
813
|
-
return r =
|
|
814
|
-
var s = new
|
|
816
|
+
return r = ot(r), new r(function(i, o) {
|
|
817
|
+
var s = new Me({
|
|
815
818
|
next: function(a) {
|
|
816
819
|
try {
|
|
817
820
|
t(a);
|
|
818
|
-
} catch (
|
|
819
|
-
o(
|
|
821
|
+
} catch (u) {
|
|
822
|
+
o(u), s.unsubscribe();
|
|
820
823
|
}
|
|
821
824
|
},
|
|
822
825
|
error: o,
|
|
@@ -827,15 +830,15 @@ var at = function() {
|
|
|
827
830
|
}, e.prototype._subscribe = function(t) {
|
|
828
831
|
var r;
|
|
829
832
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
830
|
-
}, e.prototype[
|
|
833
|
+
}, e.prototype[Vr] = function() {
|
|
831
834
|
return this;
|
|
832
835
|
}, e.prototype.pipe = function() {
|
|
833
836
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
834
837
|
t[r] = arguments[r];
|
|
835
|
-
return
|
|
838
|
+
return zr(t)(this);
|
|
836
839
|
}, e.prototype.toPromise = function(t) {
|
|
837
840
|
var r = this;
|
|
838
|
-
return t =
|
|
841
|
+
return t = ot(t), new t(function(n, i) {
|
|
839
842
|
var o;
|
|
840
843
|
r.subscribe(function(s) {
|
|
841
844
|
return o = s;
|
|
@@ -849,42 +852,42 @@ var at = function() {
|
|
|
849
852
|
return new e(t);
|
|
850
853
|
}, e;
|
|
851
854
|
}();
|
|
852
|
-
function
|
|
855
|
+
function ot(e) {
|
|
853
856
|
var t;
|
|
854
|
-
return (t = e != null ? e :
|
|
857
|
+
return (t = e != null ? e : Dr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
855
858
|
}
|
|
856
|
-
function
|
|
859
|
+
function Wr(e) {
|
|
857
860
|
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
858
861
|
}
|
|
859
|
-
function
|
|
860
|
-
return e && e instanceof
|
|
862
|
+
function Zr(e) {
|
|
863
|
+
return e && e instanceof Ct || Wr(e) && It(e);
|
|
861
864
|
}
|
|
862
|
-
var
|
|
865
|
+
var Qr = At(function(e) {
|
|
863
866
|
return function() {
|
|
864
867
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
865
868
|
};
|
|
866
|
-
}),
|
|
869
|
+
}), Nt = function(e) {
|
|
867
870
|
O(t, e);
|
|
868
871
|
function t() {
|
|
869
872
|
var r = e.call(this) || this;
|
|
870
873
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
871
874
|
}
|
|
872
875
|
return t.prototype.lift = function(r) {
|
|
873
|
-
var n = new
|
|
876
|
+
var n = new st(this, this);
|
|
874
877
|
return n.operator = r, n;
|
|
875
878
|
}, t.prototype._throwIfClosed = function() {
|
|
876
879
|
if (this.closed)
|
|
877
|
-
throw new
|
|
880
|
+
throw new Qr();
|
|
878
881
|
}, t.prototype.next = function(r) {
|
|
879
882
|
var n = this;
|
|
880
|
-
|
|
883
|
+
le(function() {
|
|
881
884
|
var i, o;
|
|
882
885
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
883
886
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
884
887
|
try {
|
|
885
|
-
for (var s =
|
|
886
|
-
var
|
|
887
|
-
|
|
888
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
889
|
+
var u = a.value;
|
|
890
|
+
u.next(r);
|
|
888
891
|
}
|
|
889
892
|
} catch (h) {
|
|
890
893
|
i = { error: h };
|
|
@@ -899,7 +902,7 @@ var Yr = Ct(function(e) {
|
|
|
899
902
|
});
|
|
900
903
|
}, t.prototype.error = function(r) {
|
|
901
904
|
var n = this;
|
|
902
|
-
|
|
905
|
+
le(function() {
|
|
903
906
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
904
907
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
905
908
|
for (var i = n.observers; i.length; )
|
|
@@ -908,7 +911,7 @@ var Yr = Ct(function(e) {
|
|
|
908
911
|
});
|
|
909
912
|
}, t.prototype.complete = function() {
|
|
910
913
|
var r = this;
|
|
911
|
-
|
|
914
|
+
le(function() {
|
|
912
915
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
913
916
|
r.isStopped = !0;
|
|
914
917
|
for (var n = r.observers; n.length; )
|
|
@@ -930,19 +933,19 @@ var Yr = Ct(function(e) {
|
|
|
930
933
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
931
934
|
}, t.prototype._innerSubscribe = function(r) {
|
|
932
935
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
933
|
-
return o || s ?
|
|
934
|
-
n.currentObservers = null,
|
|
936
|
+
return o || s ? Ot : (this.currentObservers = null, a.push(r), new be(function() {
|
|
937
|
+
n.currentObservers = null, Le(a, r);
|
|
935
938
|
}));
|
|
936
939
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
937
940
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
938
941
|
i ? r.error(o) : s && r.complete();
|
|
939
942
|
}, t.prototype.asObservable = function() {
|
|
940
|
-
var r = new
|
|
943
|
+
var r = new it();
|
|
941
944
|
return r.source = this, r;
|
|
942
945
|
}, t.create = function(r, n) {
|
|
943
|
-
return new
|
|
946
|
+
return new st(r, n);
|
|
944
947
|
}, t;
|
|
945
|
-
}(
|
|
948
|
+
}(it), st = function(e) {
|
|
946
949
|
O(t, e);
|
|
947
950
|
function t(r, n) {
|
|
948
951
|
var i = e.call(this) || this;
|
|
@@ -959,277 +962,275 @@ var Yr = Ct(function(e) {
|
|
|
959
962
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
960
963
|
}, t.prototype._subscribe = function(r) {
|
|
961
964
|
var n, i;
|
|
962
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
965
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
963
966
|
}, t;
|
|
964
|
-
}(
|
|
967
|
+
}(Nt), Lt = {
|
|
965
968
|
now: function() {
|
|
966
|
-
return (
|
|
969
|
+
return (Lt.delegate || Date).now();
|
|
967
970
|
},
|
|
968
971
|
delegate: void 0
|
|
969
|
-
},
|
|
972
|
+
}, Jr = function(e) {
|
|
970
973
|
O(t, e);
|
|
971
974
|
function t(r, n, i) {
|
|
972
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
975
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
973
976
|
var o = e.call(this) || this;
|
|
974
977
|
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;
|
|
975
978
|
}
|
|
976
979
|
return t.prototype.next = function(r) {
|
|
977
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
978
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
980
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
981
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
979
982
|
}, t.prototype._subscribe = function(r) {
|
|
980
983
|
this._throwIfClosed(), this._trimBuffer();
|
|
981
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
982
|
-
r.next(a[
|
|
984
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
|
985
|
+
r.next(a[u]);
|
|
983
986
|
return this._checkFinalizedStatuses(r), n;
|
|
984
987
|
}, t.prototype._trimBuffer = function() {
|
|
985
988
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
986
989
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
987
|
-
for (var
|
|
988
|
-
h =
|
|
990
|
+
for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
|
|
991
|
+
h = l;
|
|
989
992
|
h && o.splice(0, h + 1);
|
|
990
993
|
}
|
|
991
994
|
}, t;
|
|
992
|
-
}(
|
|
993
|
-
const
|
|
994
|
-
if (
|
|
995
|
-
const r = new
|
|
996
|
-
|
|
995
|
+
}(Nt);
|
|
996
|
+
const at = [], ut = {}, Yr = (e, t = 0) => {
|
|
997
|
+
if (at.indexOf(e) == -1) {
|
|
998
|
+
const r = new Jr(t);
|
|
999
|
+
ut[e] = r, at.push(e);
|
|
997
1000
|
}
|
|
998
|
-
return
|
|
999
|
-
},
|
|
1000
|
-
function
|
|
1001
|
+
return ut[e];
|
|
1002
|
+
}, U = [];
|
|
1003
|
+
function qr(e, t) {
|
|
1001
1004
|
return {
|
|
1002
|
-
subscribe:
|
|
1005
|
+
subscribe: ge(e, t).subscribe
|
|
1003
1006
|
};
|
|
1004
1007
|
}
|
|
1005
|
-
function
|
|
1008
|
+
function ge(e, t = H) {
|
|
1006
1009
|
let r;
|
|
1007
1010
|
const n = /* @__PURE__ */ new Set();
|
|
1008
1011
|
function i(a) {
|
|
1009
|
-
if (
|
|
1010
|
-
const
|
|
1012
|
+
if (wt(e, a) && (e = a, r)) {
|
|
1013
|
+
const u = !U.length;
|
|
1011
1014
|
for (const h of n)
|
|
1012
|
-
h[1](),
|
|
1013
|
-
if (
|
|
1014
|
-
for (let h = 0; h <
|
|
1015
|
-
|
|
1016
|
-
|
|
1015
|
+
h[1](), U.push(h, e);
|
|
1016
|
+
if (u) {
|
|
1017
|
+
for (let h = 0; h < U.length; h += 2)
|
|
1018
|
+
U[h][0](U[h + 1]);
|
|
1019
|
+
U.length = 0;
|
|
1017
1020
|
}
|
|
1018
1021
|
}
|
|
1019
1022
|
}
|
|
1020
1023
|
function o(a) {
|
|
1021
1024
|
i(a(e));
|
|
1022
1025
|
}
|
|
1023
|
-
function s(a,
|
|
1024
|
-
const h = [a,
|
|
1026
|
+
function s(a, u = H) {
|
|
1027
|
+
const h = [a, u];
|
|
1025
1028
|
return n.add(h), n.size === 1 && (r = t(i, o) || H), a(e), () => {
|
|
1026
1029
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
1027
1030
|
};
|
|
1028
1031
|
}
|
|
1029
1032
|
return { set: i, update: o, subscribe: s };
|
|
1030
1033
|
}
|
|
1031
|
-
function
|
|
1034
|
+
function W(e, t, r) {
|
|
1032
1035
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1033
1036
|
if (!i.every(Boolean))
|
|
1034
1037
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1035
1038
|
const o = t.length < 2;
|
|
1036
|
-
return
|
|
1037
|
-
let
|
|
1039
|
+
return qr(r, (s, a) => {
|
|
1040
|
+
let u = !1;
|
|
1038
1041
|
const h = [];
|
|
1039
|
-
let
|
|
1042
|
+
let l = 0, c = H;
|
|
1040
1043
|
const f = () => {
|
|
1041
|
-
if (
|
|
1044
|
+
if (l)
|
|
1042
1045
|
return;
|
|
1043
1046
|
c();
|
|
1044
1047
|
const v = t(n ? h[0] : h, s, a);
|
|
1045
|
-
o ? s(v) : c =
|
|
1046
|
-
},
|
|
1047
|
-
(v,
|
|
1048
|
+
o ? s(v) : c = Ve(v) ? v : H;
|
|
1049
|
+
}, m = i.map(
|
|
1050
|
+
(v, g) => Ht(
|
|
1048
1051
|
v,
|
|
1049
|
-
(
|
|
1050
|
-
h[
|
|
1052
|
+
(w) => {
|
|
1053
|
+
h[g] = w, l &= ~(1 << g), u && f();
|
|
1051
1054
|
},
|
|
1052
1055
|
() => {
|
|
1053
|
-
|
|
1056
|
+
l |= 1 << g;
|
|
1054
1057
|
}
|
|
1055
1058
|
)
|
|
1056
1059
|
);
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1060
|
+
return u = !0, f(), function() {
|
|
1061
|
+
re(m), c(), u = !1;
|
|
1059
1062
|
};
|
|
1060
1063
|
});
|
|
1061
1064
|
}
|
|
1062
|
-
function
|
|
1065
|
+
function Kr(e) {
|
|
1063
1066
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1064
1067
|
}
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
1068
|
+
var en = function(t) {
|
|
1069
|
+
return tn(t) && !rn(t);
|
|
1067
1070
|
};
|
|
1068
|
-
function
|
|
1071
|
+
function tn(e) {
|
|
1069
1072
|
return !!e && typeof e == "object";
|
|
1070
1073
|
}
|
|
1071
|
-
function
|
|
1074
|
+
function rn(e) {
|
|
1072
1075
|
var t = Object.prototype.toString.call(e);
|
|
1073
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1076
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1074
1077
|
}
|
|
1075
|
-
var
|
|
1076
|
-
function
|
|
1077
|
-
return e.$$typeof ===
|
|
1078
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
|
1079
|
+
function sn(e) {
|
|
1080
|
+
return e.$$typeof === on;
|
|
1078
1081
|
}
|
|
1079
|
-
function
|
|
1082
|
+
function an(e) {
|
|
1080
1083
|
return Array.isArray(e) ? [] : {};
|
|
1081
1084
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1085
|
+
function ee(e, t) {
|
|
1086
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(an(e), e, t) : e;
|
|
1084
1087
|
}
|
|
1085
|
-
function
|
|
1088
|
+
function un(e, t, r) {
|
|
1086
1089
|
return e.concat(t).map(function(n) {
|
|
1087
|
-
return
|
|
1090
|
+
return ee(n, r);
|
|
1088
1091
|
});
|
|
1089
1092
|
}
|
|
1090
|
-
function
|
|
1093
|
+
function hn(e, t) {
|
|
1091
1094
|
if (!t.customMerge)
|
|
1092
|
-
return
|
|
1095
|
+
return k;
|
|
1093
1096
|
var r = t.customMerge(e);
|
|
1094
|
-
return typeof r == "function" ? r :
|
|
1097
|
+
return typeof r == "function" ? r : k;
|
|
1095
1098
|
}
|
|
1096
|
-
function
|
|
1099
|
+
function ln(e) {
|
|
1097
1100
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1098
1101
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1099
1102
|
}) : [];
|
|
1100
1103
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return Object.keys(e).concat(
|
|
1104
|
+
function ht(e) {
|
|
1105
|
+
return Object.keys(e).concat(ln(e));
|
|
1103
1106
|
}
|
|
1104
|
-
function
|
|
1107
|
+
function Mt(e, t) {
|
|
1105
1108
|
try {
|
|
1106
1109
|
return t in e;
|
|
1107
1110
|
} catch (r) {
|
|
1108
1111
|
return !1;
|
|
1109
1112
|
}
|
|
1110
1113
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1114
|
+
function cn(e, t) {
|
|
1115
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1113
1116
|
}
|
|
1114
|
-
function
|
|
1117
|
+
function fn(e, t, r) {
|
|
1115
1118
|
var n = {};
|
|
1116
|
-
return r.isMergeableObject(e) &&
|
|
1117
|
-
n[i] =
|
|
1118
|
-
}),
|
|
1119
|
-
|
|
1119
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1120
|
+
n[i] = ee(e[i], r);
|
|
1121
|
+
}), ht(t).forEach(function(i) {
|
|
1122
|
+
cn(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1120
1123
|
}), n;
|
|
1121
1124
|
}
|
|
1122
|
-
function
|
|
1123
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1125
|
+
function k(e, t, r) {
|
|
1126
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1124
1127
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1125
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1128
|
+
return o ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : ee(t, r);
|
|
1126
1129
|
}
|
|
1127
|
-
|
|
1130
|
+
k.all = function(t, r) {
|
|
1128
1131
|
if (!Array.isArray(t))
|
|
1129
1132
|
throw new Error("first argument should be an array");
|
|
1130
1133
|
return t.reduce(function(n, i) {
|
|
1131
|
-
return
|
|
1134
|
+
return k(n, i, r);
|
|
1132
1135
|
}, {});
|
|
1133
1136
|
};
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
function
|
|
1137
|
-
var r = t && t.cache ? t.cache :
|
|
1137
|
+
var pn = k, mn = pn;
|
|
1138
|
+
const dn = /* @__PURE__ */ Kr(mn);
|
|
1139
|
+
function Te(e, t) {
|
|
1140
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : vn;
|
|
1138
1141
|
return i(e, {
|
|
1139
1142
|
cache: r,
|
|
1140
1143
|
serializer: n
|
|
1141
1144
|
});
|
|
1142
1145
|
}
|
|
1143
|
-
function
|
|
1146
|
+
function bn(e) {
|
|
1144
1147
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1145
1148
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var i =
|
|
1149
|
+
function gn(e, t, r, n) {
|
|
1150
|
+
var i = bn(n) ? n : r(n), o = t.get(i);
|
|
1148
1151
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1149
1152
|
}
|
|
1150
|
-
function
|
|
1153
|
+
function $t(e, t, r) {
|
|
1151
1154
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1152
1155
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1153
1156
|
}
|
|
1154
|
-
function
|
|
1157
|
+
function Rt(e, t, r, n, i) {
|
|
1155
1158
|
return r.bind(t, e, n, i);
|
|
1156
1159
|
}
|
|
1157
1160
|
function vn(e, t) {
|
|
1158
|
-
var r = e.length === 1 ?
|
|
1159
|
-
return
|
|
1161
|
+
var r = e.length === 1 ? gn : $t;
|
|
1162
|
+
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1160
1163
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1164
|
+
function yn(e, t) {
|
|
1165
|
+
return Rt(e, this, $t, t.cache.create(), t.serializer);
|
|
1163
1166
|
}
|
|
1164
|
-
|
|
1165
|
-
return Ze(e, this, Ft, t.cache.create(), t.serializer);
|
|
1166
|
-
}
|
|
1167
|
-
var _n = function() {
|
|
1167
|
+
var xn = function() {
|
|
1168
1168
|
return JSON.stringify(arguments);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1169
|
+
}, En = (
|
|
1170
|
+
/** @class */
|
|
1171
|
+
function() {
|
|
1172
|
+
function e() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
return e.prototype.get = function(t) {
|
|
1176
|
+
return this.cache[t];
|
|
1177
|
+
}, e.prototype.set = function(t, r) {
|
|
1178
|
+
this.cache[t] = r;
|
|
1179
|
+
}, e;
|
|
1180
|
+
}()
|
|
1181
|
+
), _n = {
|
|
1180
1182
|
create: function() {
|
|
1181
|
-
return new
|
|
1183
|
+
return new En();
|
|
1182
1184
|
}
|
|
1183
|
-
},
|
|
1184
|
-
variadic:
|
|
1185
|
-
monadic: xn
|
|
1185
|
+
}, we = {
|
|
1186
|
+
variadic: yn
|
|
1186
1187
|
}, p;
|
|
1187
1188
|
(function(e) {
|
|
1188
1189
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1189
1190
|
})(p || (p = {}));
|
|
1190
|
-
var
|
|
1191
|
+
var x;
|
|
1191
1192
|
(function(e) {
|
|
1192
1193
|
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";
|
|
1193
|
-
})(
|
|
1194
|
-
var
|
|
1194
|
+
})(x || (x = {}));
|
|
1195
|
+
var V;
|
|
1195
1196
|
(function(e) {
|
|
1196
1197
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1197
|
-
})(
|
|
1198
|
-
function
|
|
1199
|
-
return e.type ===
|
|
1198
|
+
})(V || (V = {}));
|
|
1199
|
+
function lt(e) {
|
|
1200
|
+
return e.type === x.literal;
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return e.type ===
|
|
1202
|
+
function Sn(e) {
|
|
1203
|
+
return e.type === x.argument;
|
|
1203
1204
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return e.type ===
|
|
1205
|
+
function Dt(e) {
|
|
1206
|
+
return e.type === x.number;
|
|
1206
1207
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return e.type ===
|
|
1208
|
+
function Ut(e) {
|
|
1209
|
+
return e.type === x.date;
|
|
1209
1210
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return e.type ===
|
|
1211
|
+
function Gt(e) {
|
|
1212
|
+
return e.type === x.time;
|
|
1212
1213
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return e.type ===
|
|
1214
|
+
function Ft(e) {
|
|
1215
|
+
return e.type === x.select;
|
|
1215
1216
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return e.type ===
|
|
1217
|
+
function jt(e) {
|
|
1218
|
+
return e.type === x.plural;
|
|
1218
1219
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return e.type ===
|
|
1220
|
+
function Tn(e) {
|
|
1221
|
+
return e.type === x.pound;
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return e.type ===
|
|
1223
|
+
function kt(e) {
|
|
1224
|
+
return e.type === x.tag;
|
|
1224
1225
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1226
|
+
function Vt(e) {
|
|
1227
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1229
|
+
function $e(e) {
|
|
1230
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1230
1231
|
}
|
|
1231
|
-
var
|
|
1232
|
-
function
|
|
1232
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1233
|
+
function Hn(e) {
|
|
1233
1234
|
var t = {};
|
|
1234
1235
|
return e.replace(wn, function(r) {
|
|
1235
1236
|
var n = r.length;
|
|
@@ -1320,36 +1321,36 @@ function Pn(e) {
|
|
|
1320
1321
|
return "";
|
|
1321
1322
|
}), t;
|
|
1322
1323
|
}
|
|
1323
|
-
var
|
|
1324
|
-
function
|
|
1324
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1325
|
+
function Bn(e) {
|
|
1325
1326
|
if (e.length === 0)
|
|
1326
1327
|
throw new Error("Number skeleton cannot be empty");
|
|
1327
|
-
for (var t = e.split(
|
|
1328
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1328
1329
|
return f.length > 0;
|
|
1329
1330
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1330
1331
|
var o = i[n], s = o.split("/");
|
|
1331
1332
|
if (s.length === 0)
|
|
1332
1333
|
throw new Error("Invalid number skeleton");
|
|
1333
|
-
for (var a = s[0],
|
|
1334
|
-
var c =
|
|
1334
|
+
for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
|
|
1335
|
+
var c = l[h];
|
|
1335
1336
|
if (c.length === 0)
|
|
1336
1337
|
throw new Error("Invalid number skeleton");
|
|
1337
1338
|
}
|
|
1338
|
-
r.push({ stem: a, options:
|
|
1339
|
+
r.push({ stem: a, options: u });
|
|
1339
1340
|
}
|
|
1340
1341
|
return r;
|
|
1341
1342
|
}
|
|
1342
|
-
function
|
|
1343
|
+
function An(e) {
|
|
1343
1344
|
return e.replace(/^(.*?)-/, "");
|
|
1344
1345
|
}
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
1346
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1347
|
+
function ft(e) {
|
|
1347
1348
|
var t = {};
|
|
1348
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1349
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1349
1350
|
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)), "";
|
|
1350
1351
|
}), t;
|
|
1351
1352
|
}
|
|
1352
|
-
function
|
|
1353
|
+
function Zt(e) {
|
|
1353
1354
|
switch (e) {
|
|
1354
1355
|
case "sign-auto":
|
|
1355
1356
|
return {
|
|
@@ -1389,7 +1390,7 @@ function qt(e) {
|
|
|
1389
1390
|
};
|
|
1390
1391
|
}
|
|
1391
1392
|
}
|
|
1392
|
-
function
|
|
1393
|
+
function In(e) {
|
|
1393
1394
|
var t;
|
|
1394
1395
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1395
1396
|
notation: "engineering"
|
|
@@ -1397,17 +1398,17 @@ function Cn(e) {
|
|
|
1397
1398
|
notation: "scientific"
|
|
1398
1399
|
}, e = e.slice(1)), t) {
|
|
1399
1400
|
var r = e.slice(0, 2);
|
|
1400
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1401
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1401
1402
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1402
1403
|
t.minimumIntegerDigits = e.length;
|
|
1403
1404
|
}
|
|
1404
1405
|
return t;
|
|
1405
1406
|
}
|
|
1406
|
-
function
|
|
1407
|
-
var t = {}, r =
|
|
1407
|
+
function pt(e) {
|
|
1408
|
+
var t = {}, r = Zt(e);
|
|
1408
1409
|
return r || t;
|
|
1409
1410
|
}
|
|
1410
|
-
function
|
|
1411
|
+
function Cn(e) {
|
|
1411
1412
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1412
1413
|
var i = n[r];
|
|
1413
1414
|
switch (i.stem) {
|
|
@@ -1431,7 +1432,7 @@ function Ln(e) {
|
|
|
1431
1432
|
continue;
|
|
1432
1433
|
case "measure-unit":
|
|
1433
1434
|
case "unit":
|
|
1434
|
-
t.style = "unit", t.unit =
|
|
1435
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1435
1436
|
continue;
|
|
1436
1437
|
case "compact-short":
|
|
1437
1438
|
case "K":
|
|
@@ -1442,13 +1443,13 @@ function Ln(e) {
|
|
|
1442
1443
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1443
1444
|
continue;
|
|
1444
1445
|
case "scientific":
|
|
1445
|
-
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1446
|
-
return b(b({},
|
|
1446
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1447
|
+
return b(b({}, u), pt(h));
|
|
1447
1448
|
}, {}));
|
|
1448
1449
|
continue;
|
|
1449
1450
|
case "engineering":
|
|
1450
|
-
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1451
|
-
return b(b({},
|
|
1451
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1452
|
+
return b(b({}, u), pt(h));
|
|
1452
1453
|
}, {}));
|
|
1453
1454
|
continue;
|
|
1454
1455
|
case "notation-simple":
|
|
@@ -1493,45 +1494,45 @@ function Ln(e) {
|
|
|
1493
1494
|
case "integer-width":
|
|
1494
1495
|
if (i.options.length > 1)
|
|
1495
1496
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1496
|
-
i.options[0].replace(
|
|
1497
|
+
i.options[0].replace(On, function(u, h, l, c, f, m) {
|
|
1497
1498
|
if (h)
|
|
1498
|
-
t.minimumIntegerDigits =
|
|
1499
|
+
t.minimumIntegerDigits = l.length;
|
|
1499
1500
|
else {
|
|
1500
1501
|
if (c && f)
|
|
1501
1502
|
throw new Error("We currently do not support maximum integer digits");
|
|
1502
|
-
if (
|
|
1503
|
+
if (m)
|
|
1503
1504
|
throw new Error("We currently do not support exact integer digits");
|
|
1504
1505
|
}
|
|
1505
1506
|
return "";
|
|
1506
1507
|
});
|
|
1507
1508
|
continue;
|
|
1508
1509
|
}
|
|
1509
|
-
if (
|
|
1510
|
+
if (Wt.test(i.stem)) {
|
|
1510
1511
|
t.minimumIntegerDigits = i.stem.length;
|
|
1511
1512
|
continue;
|
|
1512
1513
|
}
|
|
1513
|
-
if (
|
|
1514
|
+
if (ct.test(i.stem)) {
|
|
1514
1515
|
if (i.options.length > 1)
|
|
1515
1516
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1516
|
-
i.stem.replace(
|
|
1517
|
-
return
|
|
1517
|
+
i.stem.replace(ct, function(u, h, l, c, f, m) {
|
|
1518
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1518
1519
|
});
|
|
1519
1520
|
var o = i.options[0];
|
|
1520
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1521
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ft(o)));
|
|
1521
1522
|
continue;
|
|
1522
1523
|
}
|
|
1523
|
-
if (
|
|
1524
|
-
t = b(b({}, t),
|
|
1524
|
+
if (zt.test(i.stem)) {
|
|
1525
|
+
t = b(b({}, t), ft(i.stem));
|
|
1525
1526
|
continue;
|
|
1526
1527
|
}
|
|
1527
|
-
var s =
|
|
1528
|
+
var s = Zt(i.stem);
|
|
1528
1529
|
s && (t = b(b({}, t), s));
|
|
1529
|
-
var a =
|
|
1530
|
+
var a = In(i.stem);
|
|
1530
1531
|
a && (t = b(b({}, t), a));
|
|
1531
1532
|
}
|
|
1532
1533
|
return t;
|
|
1533
1534
|
}
|
|
1534
|
-
var
|
|
1535
|
+
var se = {
|
|
1535
1536
|
"001": [
|
|
1536
1537
|
"H",
|
|
1537
1538
|
"h"
|
|
@@ -2952,16 +2953,16 @@ function Nn(e, t) {
|
|
|
2952
2953
|
if (i === "j") {
|
|
2953
2954
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2954
2955
|
o++, n++;
|
|
2955
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2956
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Ln(t);
|
|
2956
2957
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
2957
|
-
r +=
|
|
2958
|
+
r += u;
|
|
2958
2959
|
for (; s-- > 0; )
|
|
2959
2960
|
r = h + r;
|
|
2960
2961
|
} else i === "J" ? r += "H" : r += i;
|
|
2961
2962
|
}
|
|
2962
2963
|
return r;
|
|
2963
2964
|
}
|
|
2964
|
-
function
|
|
2965
|
+
function Ln(e) {
|
|
2965
2966
|
var t = e.hourCycle;
|
|
2966
2967
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2967
2968
|
e.hourCycles && // @ts-ignore
|
|
@@ -2980,23 +2981,23 @@ function Mn(e) {
|
|
|
2980
2981
|
}
|
|
2981
2982
|
var r = e.language, n;
|
|
2982
2983
|
r !== "root" && (n = e.maximize().region);
|
|
2983
|
-
var i =
|
|
2984
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2984
2985
|
return i[0];
|
|
2985
2986
|
}
|
|
2986
|
-
var
|
|
2987
|
-
function
|
|
2987
|
+
var He, Mn = new RegExp("^".concat(Xt.source, "*")), $n = new RegExp("".concat(Xt.source, "*$"));
|
|
2988
|
+
function d(e, t) {
|
|
2988
2989
|
return { start: e, end: t };
|
|
2989
2990
|
}
|
|
2990
|
-
var
|
|
2991
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Un = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
|
|
2991
2992
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2992
|
-
},
|
|
2993
|
+
}, Re = !0;
|
|
2993
2994
|
try {
|
|
2994
|
-
var Xn =
|
|
2995
|
-
|
|
2995
|
+
var Xn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2996
|
+
Re = ((He = Xn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2996
2997
|
} catch (e) {
|
|
2997
|
-
|
|
2998
|
+
Re = !1;
|
|
2998
2999
|
}
|
|
2999
|
-
var
|
|
3000
|
+
var mt = Rn ? (
|
|
3000
3001
|
// Native
|
|
3001
3002
|
function(t, r, n) {
|
|
3002
3003
|
return t.startsWith(r, n);
|
|
@@ -3006,7 +3007,7 @@ var gt = Dn ? (
|
|
|
3006
3007
|
function(t, r, n) {
|
|
3007
3008
|
return t.slice(n, n + r.length) === r;
|
|
3008
3009
|
}
|
|
3009
|
-
),
|
|
3010
|
+
), De = Dn ? String.fromCodePoint : (
|
|
3010
3011
|
// IE11
|
|
3011
3012
|
function() {
|
|
3012
3013
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3018,9 +3019,9 @@ var gt = Dn ? (
|
|
|
3018
3019
|
}
|
|
3019
3020
|
return n;
|
|
3020
3021
|
}
|
|
3021
|
-
),
|
|
3022
|
+
), dt = (
|
|
3022
3023
|
// native
|
|
3023
|
-
|
|
3024
|
+
Un ? Object.fromEntries : (
|
|
3024
3025
|
// Ponyfill
|
|
3025
3026
|
function(t) {
|
|
3026
3027
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3030,7 +3031,7 @@ var gt = Dn ? (
|
|
|
3030
3031
|
return r;
|
|
3031
3032
|
}
|
|
3032
3033
|
)
|
|
3033
|
-
),
|
|
3034
|
+
), Qt = Gn ? (
|
|
3034
3035
|
// Native
|
|
3035
3036
|
function(t, r) {
|
|
3036
3037
|
return t.codePointAt(r);
|
|
@@ -3044,7 +3045,7 @@ var gt = Dn ? (
|
|
|
3044
3045
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3045
3046
|
}
|
|
3046
3047
|
}
|
|
3047
|
-
),
|
|
3048
|
+
), zn = Fn ? (
|
|
3048
3049
|
// Native
|
|
3049
3050
|
function(t) {
|
|
3050
3051
|
return t.trimStart();
|
|
@@ -3052,9 +3053,9 @@ var gt = Dn ? (
|
|
|
3052
3053
|
) : (
|
|
3053
3054
|
// Ponyfill
|
|
3054
3055
|
function(t) {
|
|
3055
|
-
return t.replace(
|
|
3056
|
+
return t.replace(Mn, "");
|
|
3056
3057
|
}
|
|
3057
|
-
),
|
|
3058
|
+
), Wn = jn ? (
|
|
3058
3059
|
// Native
|
|
3059
3060
|
function(t) {
|
|
3060
3061
|
return t.trimEnd();
|
|
@@ -3062,32 +3063,32 @@ var gt = Dn ? (
|
|
|
3062
3063
|
) : (
|
|
3063
3064
|
// Ponyfill
|
|
3064
3065
|
function(t) {
|
|
3065
|
-
return t.replace(
|
|
3066
|
+
return t.replace($n, "");
|
|
3066
3067
|
}
|
|
3067
3068
|
);
|
|
3068
|
-
function
|
|
3069
|
+
function Jt(e, t) {
|
|
3069
3070
|
return new RegExp(e, t);
|
|
3070
3071
|
}
|
|
3071
|
-
var
|
|
3072
|
-
if (
|
|
3073
|
-
var
|
|
3074
|
-
|
|
3072
|
+
var Ue;
|
|
3073
|
+
if (Re) {
|
|
3074
|
+
var bt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3075
|
+
Ue = function(t, r) {
|
|
3075
3076
|
var n;
|
|
3076
|
-
|
|
3077
|
-
var i =
|
|
3077
|
+
bt.lastIndex = r;
|
|
3078
|
+
var i = bt.exec(t);
|
|
3078
3079
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3079
3080
|
};
|
|
3080
3081
|
} else
|
|
3081
|
-
|
|
3082
|
+
Ue = function(t, r) {
|
|
3082
3083
|
for (var n = []; ; ) {
|
|
3083
|
-
var i =
|
|
3084
|
-
if (i === void 0 ||
|
|
3084
|
+
var i = Qt(t, r);
|
|
3085
|
+
if (i === void 0 || Yt(i) || Yn(i))
|
|
3085
3086
|
break;
|
|
3086
3087
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3087
3088
|
}
|
|
3088
|
-
return
|
|
3089
|
+
return De.apply(void 0, n);
|
|
3089
3090
|
};
|
|
3090
|
-
var
|
|
3091
|
+
var Zn = (
|
|
3091
3092
|
/** @class */
|
|
3092
3093
|
function() {
|
|
3093
3094
|
function e(t, r) {
|
|
@@ -3111,14 +3112,14 @@ var Qn = (
|
|
|
3111
3112
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3112
3113
|
var a = this.clonePosition();
|
|
3113
3114
|
this.bump(), i.push({
|
|
3114
|
-
type:
|
|
3115
|
-
location:
|
|
3115
|
+
type: x.pound,
|
|
3116
|
+
location: d(a, this.clonePosition())
|
|
3116
3117
|
});
|
|
3117
3118
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3118
3119
|
if (n)
|
|
3119
3120
|
break;
|
|
3120
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3121
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3121
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3122
|
+
} else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
3122
3123
|
var s = this.parseTag(t, r);
|
|
3123
3124
|
if (s.err)
|
|
3124
3125
|
return s;
|
|
@@ -3139,9 +3140,9 @@ var Qn = (
|
|
|
3139
3140
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3140
3141
|
return {
|
|
3141
3142
|
val: {
|
|
3142
|
-
type:
|
|
3143
|
+
type: x.literal,
|
|
3143
3144
|
value: "<".concat(i, "/>"),
|
|
3144
|
-
location:
|
|
3145
|
+
location: d(n, this.clonePosition())
|
|
3145
3146
|
},
|
|
3146
3147
|
err: null
|
|
3147
3148
|
};
|
|
@@ -3151,25 +3152,25 @@ var Qn = (
|
|
|
3151
3152
|
return o;
|
|
3152
3153
|
var s = o.val, a = this.clonePosition();
|
|
3153
3154
|
if (this.bumpIf("</")) {
|
|
3154
|
-
if (this.isEOF() || !
|
|
3155
|
-
return this.error(p.INVALID_TAG,
|
|
3156
|
-
var
|
|
3157
|
-
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3155
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
3156
|
+
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3157
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
|
3158
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3158
3159
|
val: {
|
|
3159
|
-
type:
|
|
3160
|
+
type: x.tag,
|
|
3160
3161
|
value: i,
|
|
3161
3162
|
children: s,
|
|
3162
|
-
location:
|
|
3163
|
+
location: d(n, this.clonePosition())
|
|
3163
3164
|
},
|
|
3164
3165
|
err: null
|
|
3165
|
-
} : this.error(p.INVALID_TAG,
|
|
3166
|
+
} : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
|
|
3166
3167
|
} else
|
|
3167
|
-
return this.error(p.UNCLOSED_TAG,
|
|
3168
|
+
return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3168
3169
|
} else
|
|
3169
|
-
return this.error(p.INVALID_TAG,
|
|
3170
|
+
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3170
3171
|
}, e.prototype.parseTagName = function() {
|
|
3171
3172
|
var t = this.offset();
|
|
3172
|
-
for (this.bump(); !this.isEOF() &&
|
|
3173
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3173
3174
|
this.bump();
|
|
3174
3175
|
return this.message.slice(t, this.offset());
|
|
3175
3176
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3191,14 +3192,14 @@ var Qn = (
|
|
|
3191
3192
|
}
|
|
3192
3193
|
break;
|
|
3193
3194
|
}
|
|
3194
|
-
var
|
|
3195
|
+
var u = d(n, this.clonePosition());
|
|
3195
3196
|
return {
|
|
3196
|
-
val: { type:
|
|
3197
|
+
val: { type: x.literal, value: i, location: u },
|
|
3197
3198
|
err: null
|
|
3198
3199
|
};
|
|
3199
3200
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3200
3201
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3201
|
-
!
|
|
3202
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3202
3203
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3203
3204
|
if (this.isEOF() || this.char() !== 39)
|
|
3204
3205
|
return null;
|
|
@@ -3232,49 +3233,49 @@ var Qn = (
|
|
|
3232
3233
|
r.push(n);
|
|
3233
3234
|
this.bump();
|
|
3234
3235
|
}
|
|
3235
|
-
return
|
|
3236
|
+
return De.apply(void 0, r);
|
|
3236
3237
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3237
3238
|
if (this.isEOF())
|
|
3238
3239
|
return null;
|
|
3239
3240
|
var n = this.char();
|
|
3240
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3241
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3241
3242
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3242
3243
|
var n = this.clonePosition();
|
|
3243
3244
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3244
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3245
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3245
3246
|
if (this.char() === 125)
|
|
3246
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
3247
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3247
3248
|
var i = this.parseIdentifierIfPossible().value;
|
|
3248
3249
|
if (!i)
|
|
3249
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3250
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3250
3251
|
if (this.bumpSpace(), this.isEOF())
|
|
3251
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3252
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3252
3253
|
switch (this.char()) {
|
|
3253
3254
|
case 125:
|
|
3254
3255
|
return this.bump(), {
|
|
3255
3256
|
val: {
|
|
3256
|
-
type:
|
|
3257
|
+
type: x.argument,
|
|
3257
3258
|
// value does not include the opening and closing braces.
|
|
3258
3259
|
value: i,
|
|
3259
|
-
location:
|
|
3260
|
+
location: d(n, this.clonePosition())
|
|
3260
3261
|
},
|
|
3261
3262
|
err: null
|
|
3262
3263
|
};
|
|
3263
3264
|
case 44:
|
|
3264
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3265
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3265
3266
|
default:
|
|
3266
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3267
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3267
3268
|
}
|
|
3268
3269
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3269
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3270
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
3270
3271
|
this.bumpTo(i);
|
|
3271
|
-
var o = this.clonePosition(), s =
|
|
3272
|
+
var o = this.clonePosition(), s = d(t, o);
|
|
3272
3273
|
return { value: n, location: s };
|
|
3273
3274
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3274
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3275
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3275
3276
|
switch (a) {
|
|
3276
3277
|
case "":
|
|
3277
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
3278
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
|
|
3278
3279
|
case "number":
|
|
3279
3280
|
case "date":
|
|
3280
3281
|
case "time": {
|
|
@@ -3282,49 +3283,49 @@ var Qn = (
|
|
|
3282
3283
|
var h = null;
|
|
3283
3284
|
if (this.bumpIf(",")) {
|
|
3284
3285
|
this.bumpSpace();
|
|
3285
|
-
var
|
|
3286
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3286
3287
|
if (c.err)
|
|
3287
3288
|
return c;
|
|
3288
|
-
var f =
|
|
3289
|
+
var f = Wn(c.val);
|
|
3289
3290
|
if (f.length === 0)
|
|
3290
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
3291
|
-
var
|
|
3292
|
-
h = { style: f, styleLocation:
|
|
3291
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3292
|
+
var m = d(l, this.clonePosition());
|
|
3293
|
+
h = { style: f, styleLocation: m };
|
|
3293
3294
|
}
|
|
3294
3295
|
var v = this.tryParseArgumentClose(i);
|
|
3295
3296
|
if (v.err)
|
|
3296
3297
|
return v;
|
|
3297
|
-
var
|
|
3298
|
-
if (h &&
|
|
3299
|
-
var
|
|
3298
|
+
var g = d(i, this.clonePosition());
|
|
3299
|
+
if (h && mt(h == null ? void 0 : h.style, "::", 0)) {
|
|
3300
|
+
var w = zn(h.style.slice(2));
|
|
3300
3301
|
if (a === "number") {
|
|
3301
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3302
|
+
var c = this.parseNumberSkeletonFromString(w, h.styleLocation);
|
|
3302
3303
|
return c.err ? c : {
|
|
3303
|
-
val: { type:
|
|
3304
|
+
val: { type: x.number, value: n, location: g, style: c.val },
|
|
3304
3305
|
err: null
|
|
3305
3306
|
};
|
|
3306
3307
|
} else {
|
|
3307
|
-
if (
|
|
3308
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3309
|
-
var N =
|
|
3310
|
-
this.locale && (N = Nn(
|
|
3308
|
+
if (w.length === 0)
|
|
3309
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3310
|
+
var N = w;
|
|
3311
|
+
this.locale && (N = Nn(w, this.locale));
|
|
3311
3312
|
var f = {
|
|
3312
|
-
type:
|
|
3313
|
+
type: V.dateTime,
|
|
3313
3314
|
pattern: N,
|
|
3314
3315
|
location: h.styleLocation,
|
|
3315
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3316
|
-
}, I = a === "date" ?
|
|
3316
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(N) : {}
|
|
3317
|
+
}, I = a === "date" ? x.date : x.time;
|
|
3317
3318
|
return {
|
|
3318
|
-
val: { type: I, value: n, location:
|
|
3319
|
+
val: { type: I, value: n, location: g, style: f },
|
|
3319
3320
|
err: null
|
|
3320
3321
|
};
|
|
3321
3322
|
}
|
|
3322
3323
|
}
|
|
3323
3324
|
return {
|
|
3324
3325
|
val: {
|
|
3325
|
-
type: a === "number" ?
|
|
3326
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3326
3327
|
value: n,
|
|
3327
|
-
location:
|
|
3328
|
+
location: g,
|
|
3328
3329
|
style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
|
|
3329
3330
|
},
|
|
3330
3331
|
err: null
|
|
@@ -3333,52 +3334,52 @@ var Qn = (
|
|
|
3333
3334
|
case "plural":
|
|
3334
3335
|
case "selectordinal":
|
|
3335
3336
|
case "select": {
|
|
3336
|
-
var
|
|
3337
|
+
var _ = this.clonePosition();
|
|
3337
3338
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3338
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3339
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
|
|
3339
3340
|
this.bumpSpace();
|
|
3340
|
-
var
|
|
3341
|
-
if (a !== "select" &&
|
|
3341
|
+
var P = this.parseIdentifierIfPossible(), S = 0;
|
|
3342
|
+
if (a !== "select" && P.value === "offset") {
|
|
3342
3343
|
if (!this.bumpIf(":"))
|
|
3343
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3344
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3344
3345
|
this.bumpSpace();
|
|
3345
3346
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3346
3347
|
if (c.err)
|
|
3347
3348
|
return c;
|
|
3348
|
-
this.bumpSpace(),
|
|
3349
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = c.val;
|
|
3349
3350
|
}
|
|
3350
|
-
var
|
|
3351
|
-
if (
|
|
3352
|
-
return
|
|
3351
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, P);
|
|
3352
|
+
if ($.err)
|
|
3353
|
+
return $;
|
|
3353
3354
|
var v = this.tryParseArgumentClose(i);
|
|
3354
3355
|
if (v.err)
|
|
3355
3356
|
return v;
|
|
3356
|
-
var
|
|
3357
|
+
var ie = d(i, this.clonePosition());
|
|
3357
3358
|
return a === "select" ? {
|
|
3358
3359
|
val: {
|
|
3359
|
-
type:
|
|
3360
|
+
type: x.select,
|
|
3360
3361
|
value: n,
|
|
3361
|
-
options:
|
|
3362
|
-
location:
|
|
3362
|
+
options: dt($.val),
|
|
3363
|
+
location: ie
|
|
3363
3364
|
},
|
|
3364
3365
|
err: null
|
|
3365
3366
|
} : {
|
|
3366
3367
|
val: {
|
|
3367
|
-
type:
|
|
3368
|
+
type: x.plural,
|
|
3368
3369
|
value: n,
|
|
3369
|
-
options:
|
|
3370
|
-
offset:
|
|
3370
|
+
options: dt($.val),
|
|
3371
|
+
offset: S,
|
|
3371
3372
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3372
|
-
location:
|
|
3373
|
+
location: ie
|
|
3373
3374
|
},
|
|
3374
3375
|
err: null
|
|
3375
3376
|
};
|
|
3376
3377
|
}
|
|
3377
3378
|
default:
|
|
3378
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3379
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
|
|
3379
3380
|
}
|
|
3380
3381
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3381
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3382
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3382
3383
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3383
3384
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3384
3385
|
var n = this.char();
|
|
@@ -3387,7 +3388,7 @@ var Qn = (
|
|
|
3387
3388
|
this.bump();
|
|
3388
3389
|
var i = this.clonePosition();
|
|
3389
3390
|
if (!this.bumpUntil("'"))
|
|
3390
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3391
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3391
3392
|
this.bump();
|
|
3392
3393
|
break;
|
|
3393
3394
|
}
|
|
@@ -3417,52 +3418,52 @@ var Qn = (
|
|
|
3417
3418
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3418
3419
|
var n = [];
|
|
3419
3420
|
try {
|
|
3420
|
-
n =
|
|
3421
|
+
n = Bn(t);
|
|
3421
3422
|
} catch (i) {
|
|
3422
3423
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3423
3424
|
}
|
|
3424
3425
|
return {
|
|
3425
3426
|
val: {
|
|
3426
|
-
type:
|
|
3427
|
+
type: V.number,
|
|
3427
3428
|
tokens: n,
|
|
3428
3429
|
location: r,
|
|
3429
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3430
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
|
3430
3431
|
},
|
|
3431
3432
|
err: null
|
|
3432
3433
|
};
|
|
3433
3434
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3434
|
-
for (var o, s = !1, a = [],
|
|
3435
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
|
3435
3436
|
if (h.length === 0) {
|
|
3436
3437
|
var c = this.clonePosition();
|
|
3437
3438
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3438
3439
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3439
3440
|
if (f.err)
|
|
3440
3441
|
return f;
|
|
3441
|
-
|
|
3442
|
+
l = d(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
|
3442
3443
|
} else
|
|
3443
3444
|
break;
|
|
3444
3445
|
}
|
|
3445
|
-
if (
|
|
3446
|
-
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3446
|
+
if (u.has(h))
|
|
3447
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3447
3448
|
h === "other" && (s = !0), this.bumpSpace();
|
|
3448
|
-
var
|
|
3449
|
+
var m = this.clonePosition();
|
|
3449
3450
|
if (!this.bumpIf("{"))
|
|
3450
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3451
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3451
3452
|
var v = this.parseMessage(t + 1, r, n);
|
|
3452
3453
|
if (v.err)
|
|
3453
3454
|
return v;
|
|
3454
|
-
var
|
|
3455
|
-
if (
|
|
3456
|
-
return
|
|
3455
|
+
var g = this.tryParseArgumentClose(m);
|
|
3456
|
+
if (g.err)
|
|
3457
|
+
return g;
|
|
3457
3458
|
a.push([
|
|
3458
3459
|
h,
|
|
3459
3460
|
{
|
|
3460
3461
|
value: v.val,
|
|
3461
|
-
location: m
|
|
3462
|
+
location: d(m, this.clonePosition())
|
|
3462
3463
|
}
|
|
3463
|
-
]),
|
|
3464
|
+
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3464
3465
|
}
|
|
3465
|
-
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3466
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3466
3467
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3467
3468
|
var n = 1, i = this.clonePosition();
|
|
3468
3469
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3473,8 +3474,8 @@ var Qn = (
|
|
|
3473
3474
|
else
|
|
3474
3475
|
break;
|
|
3475
3476
|
}
|
|
3476
|
-
var
|
|
3477
|
-
return o ? (s *= n,
|
|
3477
|
+
var u = d(i, this.clonePosition());
|
|
3478
|
+
return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3478
3479
|
}, e.prototype.offset = function() {
|
|
3479
3480
|
return this.position.offset;
|
|
3480
3481
|
}, e.prototype.isEOF = function() {
|
|
@@ -3489,7 +3490,7 @@ var Qn = (
|
|
|
3489
3490
|
var t = this.position.offset;
|
|
3490
3491
|
if (t >= this.message.length)
|
|
3491
3492
|
throw Error("out of bound");
|
|
3492
|
-
var r =
|
|
3493
|
+
var r = Qt(this.message, t);
|
|
3493
3494
|
if (r === void 0)
|
|
3494
3495
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3495
3496
|
return r;
|
|
@@ -3508,7 +3509,7 @@ var Qn = (
|
|
|
3508
3509
|
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);
|
|
3509
3510
|
}
|
|
3510
3511
|
}, e.prototype.bumpIf = function(t) {
|
|
3511
|
-
if (
|
|
3512
|
+
if (mt(this.message, t, this.offset())) {
|
|
3512
3513
|
for (var r = 0; r < t.length; r++)
|
|
3513
3514
|
this.bump();
|
|
3514
3515
|
return !0;
|
|
@@ -3530,7 +3531,7 @@ var Qn = (
|
|
|
3530
3531
|
break;
|
|
3531
3532
|
}
|
|
3532
3533
|
}, e.prototype.bumpSpace = function() {
|
|
3533
|
-
for (; !this.isEOF() &&
|
|
3534
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3534
3535
|
this.bump();
|
|
3535
3536
|
}, e.prototype.peek = function() {
|
|
3536
3537
|
if (this.isEOF())
|
|
@@ -3540,37 +3541,37 @@ var Qn = (
|
|
|
3540
3541
|
}, e;
|
|
3541
3542
|
}()
|
|
3542
3543
|
);
|
|
3543
|
-
function
|
|
3544
|
+
function Ge(e) {
|
|
3544
3545
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3545
3546
|
}
|
|
3546
|
-
function
|
|
3547
|
-
return
|
|
3547
|
+
function Qn(e) {
|
|
3548
|
+
return Ge(e) || e === 47;
|
|
3548
3549
|
}
|
|
3549
|
-
function
|
|
3550
|
+
function Jn(e) {
|
|
3550
3551
|
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;
|
|
3551
3552
|
}
|
|
3552
|
-
function
|
|
3553
|
+
function Yt(e) {
|
|
3553
3554
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3554
3555
|
}
|
|
3555
|
-
function
|
|
3556
|
+
function Yn(e) {
|
|
3556
3557
|
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;
|
|
3557
3558
|
}
|
|
3558
|
-
function
|
|
3559
|
+
function Fe(e) {
|
|
3559
3560
|
e.forEach(function(t) {
|
|
3560
|
-
if (delete t.location,
|
|
3561
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3561
3562
|
for (var r in t.options)
|
|
3562
|
-
delete t.options[r].location,
|
|
3563
|
-
else
|
|
3563
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3564
|
+
else Dt(t) && Vt(t.style) || (Ut(t) || Gt(t)) && $e(t.style) ? delete t.style.location : kt(t) && Fe(t.children);
|
|
3564
3565
|
});
|
|
3565
3566
|
}
|
|
3566
|
-
function
|
|
3567
|
+
function qn(e, t) {
|
|
3567
3568
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3568
|
-
var r = new
|
|
3569
|
+
var r = new Zn(e, t).parse();
|
|
3569
3570
|
if (r.err) {
|
|
3570
3571
|
var n = SyntaxError(p[r.err.kind]);
|
|
3571
3572
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3572
3573
|
}
|
|
3573
|
-
return t != null && t.captureLocation ||
|
|
3574
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3574
3575
|
}
|
|
3575
3576
|
var X;
|
|
3576
3577
|
(function(e) {
|
|
@@ -3588,7 +3589,7 @@ var ve = (
|
|
|
3588
3589
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3589
3590
|
}, t;
|
|
3590
3591
|
}(Error)
|
|
3591
|
-
),
|
|
3592
|
+
), gt = (
|
|
3592
3593
|
/** @class */
|
|
3593
3594
|
function(e) {
|
|
3594
3595
|
O(t, e);
|
|
@@ -3597,7 +3598,7 @@ var ve = (
|
|
|
3597
3598
|
}
|
|
3598
3599
|
return t;
|
|
3599
3600
|
}(ve)
|
|
3600
|
-
),
|
|
3601
|
+
), Kn = (
|
|
3601
3602
|
/** @class */
|
|
3602
3603
|
function(e) {
|
|
3603
3604
|
O(t, e);
|
|
@@ -3606,7 +3607,7 @@ var ve = (
|
|
|
3606
3607
|
}
|
|
3607
3608
|
return t;
|
|
3608
3609
|
}(ve)
|
|
3609
|
-
),
|
|
3610
|
+
), ei = (
|
|
3610
3611
|
/** @class */
|
|
3611
3612
|
function(e) {
|
|
3612
3613
|
O(t, e);
|
|
@@ -3615,128 +3616,128 @@ var ve = (
|
|
|
3615
3616
|
}
|
|
3616
3617
|
return t;
|
|
3617
3618
|
}(ve)
|
|
3618
|
-
),
|
|
3619
|
+
), E;
|
|
3619
3620
|
(function(e) {
|
|
3620
3621
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3621
|
-
})(
|
|
3622
|
-
function
|
|
3622
|
+
})(E || (E = {}));
|
|
3623
|
+
function ti(e) {
|
|
3623
3624
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3624
3625
|
var n = t[t.length - 1];
|
|
3625
|
-
return !n || n.type !==
|
|
3626
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3626
3627
|
}, []);
|
|
3627
3628
|
}
|
|
3628
|
-
function
|
|
3629
|
+
function ri(e) {
|
|
3629
3630
|
return typeof e == "function";
|
|
3630
3631
|
}
|
|
3631
|
-
function
|
|
3632
|
-
if (e.length === 1 &&
|
|
3632
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3633
|
+
if (e.length === 1 && lt(e[0]))
|
|
3633
3634
|
return [
|
|
3634
3635
|
{
|
|
3635
|
-
type:
|
|
3636
|
+
type: E.literal,
|
|
3636
3637
|
value: e[0].value
|
|
3637
3638
|
}
|
|
3638
3639
|
];
|
|
3639
|
-
for (var a = [],
|
|
3640
|
-
var
|
|
3641
|
-
if (
|
|
3640
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3641
|
+
var l = h[u];
|
|
3642
|
+
if (lt(l)) {
|
|
3642
3643
|
a.push({
|
|
3643
|
-
type:
|
|
3644
|
-
value:
|
|
3644
|
+
type: E.literal,
|
|
3645
|
+
value: l.value
|
|
3645
3646
|
});
|
|
3646
3647
|
continue;
|
|
3647
3648
|
}
|
|
3648
|
-
if (
|
|
3649
|
+
if (Tn(l)) {
|
|
3649
3650
|
typeof o == "number" && a.push({
|
|
3650
|
-
type:
|
|
3651
|
+
type: E.literal,
|
|
3651
3652
|
value: r.getNumberFormat(t).format(o)
|
|
3652
3653
|
});
|
|
3653
3654
|
continue;
|
|
3654
3655
|
}
|
|
3655
|
-
var c =
|
|
3656
|
+
var c = l.value;
|
|
3656
3657
|
if (!(i && c in i))
|
|
3657
|
-
throw new
|
|
3658
|
+
throw new ei(c, s);
|
|
3658
3659
|
var f = i[c];
|
|
3659
|
-
if (
|
|
3660
|
+
if (Sn(l)) {
|
|
3660
3661
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3661
|
-
type: typeof f == "string" ?
|
|
3662
|
+
type: typeof f == "string" ? E.literal : E.object,
|
|
3662
3663
|
value: f
|
|
3663
3664
|
});
|
|
3664
3665
|
continue;
|
|
3665
3666
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
var
|
|
3667
|
+
if (Ut(l)) {
|
|
3668
|
+
var m = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3668
3669
|
a.push({
|
|
3669
|
-
type:
|
|
3670
|
-
value: r.getDateTimeFormat(t,
|
|
3670
|
+
type: E.literal,
|
|
3671
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3671
3672
|
});
|
|
3672
3673
|
continue;
|
|
3673
3674
|
}
|
|
3674
|
-
if (
|
|
3675
|
-
var
|
|
3675
|
+
if (Gt(l)) {
|
|
3676
|
+
var m = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3676
3677
|
a.push({
|
|
3677
|
-
type:
|
|
3678
|
-
value: r.getDateTimeFormat(t,
|
|
3678
|
+
type: E.literal,
|
|
3679
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3679
3680
|
});
|
|
3680
3681
|
continue;
|
|
3681
3682
|
}
|
|
3682
|
-
if (
|
|
3683
|
-
var
|
|
3684
|
-
|
|
3685
|
-
type:
|
|
3686
|
-
value: r.getNumberFormat(t,
|
|
3683
|
+
if (Dt(l)) {
|
|
3684
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3685
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3686
|
+
type: E.literal,
|
|
3687
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3687
3688
|
});
|
|
3688
3689
|
continue;
|
|
3689
3690
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var v =
|
|
3692
|
-
if (!
|
|
3693
|
-
throw new
|
|
3694
|
-
var N =
|
|
3695
|
-
return
|
|
3691
|
+
if (kt(l)) {
|
|
3692
|
+
var v = l.children, g = l.value, w = i[g];
|
|
3693
|
+
if (!ri(w))
|
|
3694
|
+
throw new Kn(g, "function", s);
|
|
3695
|
+
var N = ce(v, t, r, n, i, o), I = w(N.map(function(S) {
|
|
3696
|
+
return S.value;
|
|
3696
3697
|
}));
|
|
3697
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3698
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
|
|
3698
3699
|
return {
|
|
3699
|
-
type: typeof
|
|
3700
|
-
value:
|
|
3700
|
+
type: typeof S == "string" ? E.literal : E.object,
|
|
3701
|
+
value: S
|
|
3701
3702
|
};
|
|
3702
3703
|
}));
|
|
3703
3704
|
}
|
|
3704
|
-
if (
|
|
3705
|
-
var
|
|
3706
|
-
if (!
|
|
3707
|
-
throw new
|
|
3708
|
-
a.push.apply(a,
|
|
3705
|
+
if (Ft(l)) {
|
|
3706
|
+
var _ = l.options[f] || l.options.other;
|
|
3707
|
+
if (!_)
|
|
3708
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3709
|
+
a.push.apply(a, ce(_.value, t, r, n, i));
|
|
3709
3710
|
continue;
|
|
3710
3711
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var
|
|
3713
|
-
if (!
|
|
3712
|
+
if (jt(l)) {
|
|
3713
|
+
var _ = l.options["=".concat(f)];
|
|
3714
|
+
if (!_) {
|
|
3714
3715
|
if (!Intl.PluralRules)
|
|
3715
3716
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3716
3717
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3717
3718
|
`, X.MISSING_INTL_API, s);
|
|
3718
|
-
var
|
|
3719
|
-
|
|
3719
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3720
|
+
_ = l.options[P] || l.options.other;
|
|
3720
3721
|
}
|
|
3721
|
-
if (!
|
|
3722
|
-
throw new
|
|
3723
|
-
a.push.apply(a,
|
|
3722
|
+
if (!_)
|
|
3723
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3724
|
+
a.push.apply(a, ce(_.value, t, r, n, i, f - (l.offset || 0)));
|
|
3724
3725
|
continue;
|
|
3725
3726
|
}
|
|
3726
3727
|
}
|
|
3727
|
-
return
|
|
3728
|
+
return ti(a);
|
|
3728
3729
|
}
|
|
3729
|
-
function
|
|
3730
|
+
function ni(e, t) {
|
|
3730
3731
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3731
3732
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3732
3733
|
}, {})) : e;
|
|
3733
3734
|
}
|
|
3734
|
-
function
|
|
3735
|
+
function ii(e, t) {
|
|
3735
3736
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3736
|
-
return r[n] =
|
|
3737
|
+
return r[n] = ni(e[n], t[n]), r;
|
|
3737
3738
|
}, b({}, e)) : e;
|
|
3738
3739
|
}
|
|
3739
|
-
function
|
|
3740
|
+
function Pe(e) {
|
|
3740
3741
|
return {
|
|
3741
3742
|
create: function() {
|
|
3742
3743
|
return {
|
|
@@ -3750,39 +3751,39 @@ function Ae(e) {
|
|
|
3750
3751
|
}
|
|
3751
3752
|
};
|
|
3752
3753
|
}
|
|
3753
|
-
function
|
|
3754
|
+
function oi(e) {
|
|
3754
3755
|
return e === void 0 && (e = {
|
|
3755
3756
|
number: {},
|
|
3756
3757
|
dateTime: {},
|
|
3757
3758
|
pluralRules: {}
|
|
3758
3759
|
}), {
|
|
3759
|
-
getNumberFormat:
|
|
3760
|
+
getNumberFormat: Te(function() {
|
|
3760
3761
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3761
3762
|
r[n] = arguments[n];
|
|
3762
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3763
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3763
3764
|
}, {
|
|
3764
|
-
cache:
|
|
3765
|
-
strategy:
|
|
3765
|
+
cache: Pe(e.number),
|
|
3766
|
+
strategy: we.variadic
|
|
3766
3767
|
}),
|
|
3767
|
-
getDateTimeFormat:
|
|
3768
|
+
getDateTimeFormat: Te(function() {
|
|
3768
3769
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3769
3770
|
r[n] = arguments[n];
|
|
3770
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3771
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3771
3772
|
}, {
|
|
3772
|
-
cache:
|
|
3773
|
-
strategy:
|
|
3773
|
+
cache: Pe(e.dateTime),
|
|
3774
|
+
strategy: we.variadic
|
|
3774
3775
|
}),
|
|
3775
|
-
getPluralRules:
|
|
3776
|
+
getPluralRules: Te(function() {
|
|
3776
3777
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3777
3778
|
r[n] = arguments[n];
|
|
3778
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3779
|
+
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3779
3780
|
}, {
|
|
3780
|
-
cache:
|
|
3781
|
-
strategy:
|
|
3781
|
+
cache: Pe(e.pluralRules),
|
|
3782
|
+
strategy: we.variadic
|
|
3782
3783
|
})
|
|
3783
3784
|
};
|
|
3784
3785
|
}
|
|
3785
|
-
var
|
|
3786
|
+
var si = (
|
|
3786
3787
|
/** @class */
|
|
3787
3788
|
function() {
|
|
3788
3789
|
function e(t, r, n, i) {
|
|
@@ -3792,20 +3793,20 @@ var ai = (
|
|
|
3792
3793
|
number: {},
|
|
3793
3794
|
dateTime: {},
|
|
3794
3795
|
pluralRules: {}
|
|
3795
|
-
}, this.format = function(
|
|
3796
|
-
var h = o.formatToParts(
|
|
3796
|
+
}, this.format = function(u) {
|
|
3797
|
+
var h = o.formatToParts(u);
|
|
3797
3798
|
if (h.length === 1)
|
|
3798
3799
|
return h[0].value;
|
|
3799
|
-
var
|
|
3800
|
-
return !c.length || f.type !==
|
|
3800
|
+
var l = h.reduce(function(c, f) {
|
|
3801
|
+
return !c.length || f.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3801
3802
|
}, []);
|
|
3802
|
-
return
|
|
3803
|
-
}, this.formatToParts = function(
|
|
3804
|
-
return
|
|
3803
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3804
|
+
}, this.formatToParts = function(u) {
|
|
3805
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3805
3806
|
}, this.resolvedOptions = function() {
|
|
3806
|
-
var
|
|
3807
|
+
var u;
|
|
3807
3808
|
return {
|
|
3808
|
-
locale: ((
|
|
3809
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3809
3810
|
};
|
|
3810
3811
|
}, this.getAst = function() {
|
|
3811
3812
|
return o.ast;
|
|
@@ -3814,13 +3815,13 @@ var ai = (
|
|
|
3814
3815
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3815
3816
|
var s = i || {};
|
|
3816
3817
|
s.formatters;
|
|
3817
|
-
var a =
|
|
3818
|
+
var a = Rr(s, ["formatters"]);
|
|
3818
3819
|
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
|
3819
3820
|
} else
|
|
3820
3821
|
this.ast = t;
|
|
3821
3822
|
if (!Array.isArray(this.ast))
|
|
3822
3823
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3823
|
-
this.formats =
|
|
3824
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3824
3825
|
}
|
|
3825
3826
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3826
3827
|
get: function() {
|
|
@@ -3833,7 +3834,7 @@ var ai = (
|
|
|
3833
3834
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3834
3835
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3835
3836
|
}
|
|
3836
|
-
}, e.__parse =
|
|
3837
|
+
}, e.__parse = qn, e.formats = {
|
|
3837
3838
|
number: {
|
|
3838
3839
|
integer: {
|
|
3839
3840
|
maximumFractionDigits: 0
|
|
@@ -3894,7 +3895,7 @@ var ai = (
|
|
|
3894
3895
|
}, e;
|
|
3895
3896
|
}()
|
|
3896
3897
|
);
|
|
3897
|
-
function
|
|
3898
|
+
function ai(e, t) {
|
|
3898
3899
|
if (t == null)
|
|
3899
3900
|
return;
|
|
3900
3901
|
if (t in e)
|
|
@@ -3915,92 +3916,92 @@ function ui(e, t) {
|
|
|
3915
3916
|
n = void 0;
|
|
3916
3917
|
return n;
|
|
3917
3918
|
}
|
|
3918
|
-
const
|
|
3919
|
+
const C = {}, ui = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), qt = (e, t) => {
|
|
3919
3920
|
if (t == null)
|
|
3920
3921
|
return;
|
|
3921
|
-
if (t in
|
|
3922
|
-
return
|
|
3923
|
-
const r =
|
|
3922
|
+
if (t in C && e in C[t])
|
|
3923
|
+
return C[t][e];
|
|
3924
|
+
const r = ye(t);
|
|
3924
3925
|
for (let n = 0; n < r.length; n++) {
|
|
3925
|
-
const i = r[n], o =
|
|
3926
|
+
const i = r[n], o = li(i, e);
|
|
3926
3927
|
if (o)
|
|
3927
|
-
return
|
|
3928
|
+
return ui(e, t, o);
|
|
3928
3929
|
}
|
|
3929
3930
|
};
|
|
3930
|
-
let
|
|
3931
|
-
const
|
|
3932
|
-
function
|
|
3933
|
-
return
|
|
3931
|
+
let ze;
|
|
3932
|
+
const ne = ge({});
|
|
3933
|
+
function hi(e) {
|
|
3934
|
+
return ze[e] || null;
|
|
3934
3935
|
}
|
|
3935
|
-
function
|
|
3936
|
-
return e in
|
|
3936
|
+
function Kt(e) {
|
|
3937
|
+
return e in ze;
|
|
3937
3938
|
}
|
|
3938
|
-
function
|
|
3939
|
-
if (!
|
|
3939
|
+
function li(e, t) {
|
|
3940
|
+
if (!Kt(e))
|
|
3940
3941
|
return null;
|
|
3941
|
-
const r =
|
|
3942
|
-
return
|
|
3942
|
+
const r = hi(e);
|
|
3943
|
+
return ai(r, t);
|
|
3943
3944
|
}
|
|
3944
|
-
function
|
|
3945
|
+
function ci(e) {
|
|
3945
3946
|
if (e == null)
|
|
3946
3947
|
return;
|
|
3947
|
-
const t =
|
|
3948
|
+
const t = ye(e);
|
|
3948
3949
|
for (let r = 0; r < t.length; r++) {
|
|
3949
3950
|
const n = t[r];
|
|
3950
|
-
if (
|
|
3951
|
+
if (Kt(n))
|
|
3951
3952
|
return n;
|
|
3952
3953
|
}
|
|
3953
3954
|
}
|
|
3954
|
-
function
|
|
3955
|
-
delete
|
|
3955
|
+
function er(e, ...t) {
|
|
3956
|
+
delete C[e], ne.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
|
|
3956
3957
|
}
|
|
3957
|
-
|
|
3958
|
-
[
|
|
3958
|
+
W(
|
|
3959
|
+
[ne],
|
|
3959
3960
|
([e]) => Object.keys(e)
|
|
3960
3961
|
);
|
|
3961
|
-
|
|
3962
|
-
const
|
|
3963
|
-
function
|
|
3964
|
-
|
|
3962
|
+
ne.subscribe((e) => ze = e);
|
|
3963
|
+
const fe = {};
|
|
3964
|
+
function fi(e, t) {
|
|
3965
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3965
3966
|
}
|
|
3966
|
-
function
|
|
3967
|
-
return
|
|
3967
|
+
function tr(e) {
|
|
3968
|
+
return fe[e];
|
|
3968
3969
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3971
|
-
const r =
|
|
3970
|
+
function pi(e) {
|
|
3971
|
+
return ye(e).map((t) => {
|
|
3972
|
+
const r = tr(t);
|
|
3972
3973
|
return [t, r ? [...r] : []];
|
|
3973
3974
|
}).filter(([, t]) => t.length > 0);
|
|
3974
3975
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e == null ? !1 :
|
|
3976
|
+
function je(e) {
|
|
3977
|
+
return e == null ? !1 : ye(e).some(
|
|
3977
3978
|
(t) => {
|
|
3978
3979
|
var r;
|
|
3979
|
-
return (r =
|
|
3980
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3980
3981
|
}
|
|
3981
3982
|
);
|
|
3982
3983
|
}
|
|
3983
|
-
function
|
|
3984
|
+
function mi(e, t) {
|
|
3984
3985
|
return Promise.all(
|
|
3985
|
-
t.map((n) => (
|
|
3986
|
-
).then((n) =>
|
|
3987
|
-
}
|
|
3988
|
-
const
|
|
3989
|
-
function
|
|
3990
|
-
if (!
|
|
3991
|
-
return e in
|
|
3992
|
-
const t =
|
|
3993
|
-
return
|
|
3986
|
+
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
|
3987
|
+
).then((n) => er(e, ...n));
|
|
3988
|
+
}
|
|
3989
|
+
const J = {};
|
|
3990
|
+
function rr(e) {
|
|
3991
|
+
if (!je(e))
|
|
3992
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3993
|
+
const t = pi(e);
|
|
3994
|
+
return J[e] = Promise.all(
|
|
3994
3995
|
t.map(
|
|
3995
|
-
([r, n]) =>
|
|
3996
|
+
([r, n]) => mi(r, n)
|
|
3996
3997
|
)
|
|
3997
3998
|
).then(() => {
|
|
3998
|
-
if (
|
|
3999
|
-
return
|
|
4000
|
-
delete
|
|
4001
|
-
}),
|
|
3999
|
+
if (je(e))
|
|
4000
|
+
return rr(e);
|
|
4001
|
+
delete J[e];
|
|
4002
|
+
}), J[e];
|
|
4002
4003
|
}
|
|
4003
|
-
const
|
|
4004
|
+
const di = {
|
|
4004
4005
|
number: {
|
|
4005
4006
|
scientific: { notation: "scientific" },
|
|
4006
4007
|
engineering: { notation: "engineering" },
|
|
@@ -4029,56 +4030,56 @@ const bi = {
|
|
|
4029
4030
|
timeZoneName: "short"
|
|
4030
4031
|
}
|
|
4031
4032
|
}
|
|
4032
|
-
},
|
|
4033
|
+
}, bi = {
|
|
4033
4034
|
fallbackLocale: null,
|
|
4034
4035
|
loadingDelay: 200,
|
|
4035
|
-
formats:
|
|
4036
|
+
formats: di,
|
|
4036
4037
|
warnOnMissingMessages: !0,
|
|
4037
4038
|
handleMissingMessage: void 0,
|
|
4038
4039
|
ignoreTag: !0
|
|
4039
|
-
},
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
4040
|
+
}, gi = bi;
|
|
4041
|
+
function z() {
|
|
4042
|
+
return gi;
|
|
4042
4043
|
}
|
|
4043
|
-
const
|
|
4044
|
-
var vi = Object.defineProperty,
|
|
4044
|
+
const Be = ge(!1);
|
|
4045
|
+
var vi = Object.defineProperty, yi = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
|
|
4045
4046
|
for (var r in t || (t = {}))
|
|
4046
|
-
|
|
4047
|
-
if (
|
|
4048
|
-
for (var r of
|
|
4049
|
-
|
|
4047
|
+
Ei.call(t, r) && yt(e, r, t[r]);
|
|
4048
|
+
if (vt)
|
|
4049
|
+
for (var r of vt(t))
|
|
4050
|
+
_i.call(t, r) && yt(e, r, t[r]);
|
|
4050
4051
|
return e;
|
|
4051
|
-
},
|
|
4052
|
-
let
|
|
4053
|
-
const
|
|
4054
|
-
function
|
|
4052
|
+
}, Ti = (e, t) => yi(e, xi(t));
|
|
4053
|
+
let ke;
|
|
4054
|
+
const me = ge(null);
|
|
4055
|
+
function xt(e) {
|
|
4055
4056
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4056
4057
|
}
|
|
4057
|
-
function
|
|
4058
|
-
const r =
|
|
4059
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4058
|
+
function ye(e, t = z().fallbackLocale) {
|
|
4059
|
+
const r = xt(e);
|
|
4060
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4060
4061
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
4062
|
+
function M() {
|
|
4063
|
+
return ke != null ? ke : void 0;
|
|
4063
4064
|
}
|
|
4064
|
-
|
|
4065
|
-
|
|
4065
|
+
me.subscribe((e) => {
|
|
4066
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4066
4067
|
});
|
|
4067
4068
|
const wi = (e) => {
|
|
4068
|
-
if (e &&
|
|
4069
|
-
const { loadingDelay: t } =
|
|
4069
|
+
if (e && ci(e) && je(e)) {
|
|
4070
|
+
const { loadingDelay: t } = z();
|
|
4070
4071
|
let r;
|
|
4071
|
-
return typeof window != "undefined" &&
|
|
4072
|
-
() =>
|
|
4072
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4073
|
+
() => Be.set(!0),
|
|
4073
4074
|
t
|
|
4074
|
-
) :
|
|
4075
|
-
|
|
4075
|
+
) : Be.set(!0), rr(e).then(() => {
|
|
4076
|
+
me.set(e);
|
|
4076
4077
|
}).finally(() => {
|
|
4077
|
-
clearTimeout(r),
|
|
4078
|
+
clearTimeout(r), Be.set(!1);
|
|
4078
4079
|
});
|
|
4079
4080
|
}
|
|
4080
|
-
return
|
|
4081
|
-
},
|
|
4081
|
+
return me.set(e);
|
|
4082
|
+
}, Z = Ti(Si({}, me), {
|
|
4082
4083
|
set: wi
|
|
4083
4084
|
}), xe = (e) => {
|
|
4084
4085
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -4087,101 +4088,101 @@ const wi = (e) => {
|
|
|
4087
4088
|
return i in t ? t[i] : t[i] = e(n);
|
|
4088
4089
|
};
|
|
4089
4090
|
};
|
|
4090
|
-
var
|
|
4091
|
+
var Hi = Object.defineProperty, de = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
4091
4092
|
for (var r in t || (t = {}))
|
|
4092
|
-
|
|
4093
|
-
if (
|
|
4094
|
-
for (var r of
|
|
4095
|
-
|
|
4093
|
+
nr.call(t, r) && Et(e, r, t[r]);
|
|
4094
|
+
if (de)
|
|
4095
|
+
for (var r of de(t))
|
|
4096
|
+
ir.call(t, r) && Et(e, r, t[r]);
|
|
4096
4097
|
return e;
|
|
4097
|
-
},
|
|
4098
|
+
}, Q = (e, t) => {
|
|
4098
4099
|
var r = {};
|
|
4099
4100
|
for (var n in e)
|
|
4100
|
-
|
|
4101
|
-
if (e != null &&
|
|
4102
|
-
for (var n of
|
|
4103
|
-
t.indexOf(n) < 0 &&
|
|
4101
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4102
|
+
if (e != null && de)
|
|
4103
|
+
for (var n of de(e))
|
|
4104
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4104
4105
|
return r;
|
|
4105
4106
|
};
|
|
4106
|
-
const
|
|
4107
|
-
const { formats: r } =
|
|
4107
|
+
const te = (e, t) => {
|
|
4108
|
+
const { formats: r } = z();
|
|
4108
4109
|
if (e in r && t in r[e])
|
|
4109
4110
|
return r[e][t];
|
|
4110
4111
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4111
|
-
},
|
|
4112
|
+
}, Pi = xe(
|
|
4112
4113
|
(e) => {
|
|
4113
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4114
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4114
4115
|
if (r == null)
|
|
4115
4116
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4116
|
-
return n && (i =
|
|
4117
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4117
4118
|
}
|
|
4118
|
-
),
|
|
4119
|
+
), Bi = xe(
|
|
4119
4120
|
(e) => {
|
|
4120
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4121
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4121
4122
|
if (r == null)
|
|
4122
4123
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4123
|
-
return n ? i =
|
|
4124
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4124
4125
|
}
|
|
4125
|
-
),
|
|
4126
|
+
), Ai = xe(
|
|
4126
4127
|
(e) => {
|
|
4127
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4128
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4128
4129
|
if (r == null)
|
|
4129
4130
|
throw new Error(
|
|
4130
4131
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4131
4132
|
);
|
|
4132
|
-
return n ? i =
|
|
4133
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4133
4134
|
}
|
|
4134
|
-
),
|
|
4135
|
+
), Oi = (e = {}) => {
|
|
4135
4136
|
var t = e, {
|
|
4136
|
-
locale: r =
|
|
4137
|
-
} = t, n =
|
|
4137
|
+
locale: r = M()
|
|
4138
|
+
} = t, n = Q(t, [
|
|
4138
4139
|
"locale"
|
|
4139
4140
|
]);
|
|
4140
|
-
return
|
|
4141
|
-
},
|
|
4141
|
+
return Pi(We({ locale: r }, n));
|
|
4142
|
+
}, Ii = (e = {}) => {
|
|
4142
4143
|
var t = e, {
|
|
4143
|
-
locale: r =
|
|
4144
|
-
} = t, n =
|
|
4144
|
+
locale: r = M()
|
|
4145
|
+
} = t, n = Q(t, [
|
|
4145
4146
|
"locale"
|
|
4146
4147
|
]);
|
|
4147
|
-
return
|
|
4148
|
-
},
|
|
4148
|
+
return Bi(We({ locale: r }, n));
|
|
4149
|
+
}, Ci = (e = {}) => {
|
|
4149
4150
|
var t = e, {
|
|
4150
|
-
locale: r =
|
|
4151
|
-
} = t, n =
|
|
4151
|
+
locale: r = M()
|
|
4152
|
+
} = t, n = Q(t, [
|
|
4152
4153
|
"locale"
|
|
4153
4154
|
]);
|
|
4154
|
-
return
|
|
4155
|
+
return Ai(We({ locale: r }, n));
|
|
4155
4156
|
}, Ni = xe(
|
|
4156
4157
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4157
|
-
(e, t =
|
|
4158
|
-
ignoreTag:
|
|
4158
|
+
(e, t = M()) => new si(e, t, z().formats, {
|
|
4159
|
+
ignoreTag: z().ignoreTag
|
|
4159
4160
|
})
|
|
4160
|
-
),
|
|
4161
|
+
), Li = (e, t = {}) => {
|
|
4161
4162
|
var r, n, i, o;
|
|
4162
4163
|
let s = t;
|
|
4163
4164
|
typeof e == "object" && (s = e, e = s.id);
|
|
4164
4165
|
const {
|
|
4165
4166
|
values: a,
|
|
4166
|
-
locale:
|
|
4167
|
+
locale: u = M(),
|
|
4167
4168
|
default: h
|
|
4168
4169
|
} = s;
|
|
4169
|
-
if (
|
|
4170
|
+
if (u == null)
|
|
4170
4171
|
throw new Error(
|
|
4171
4172
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4172
4173
|
);
|
|
4173
|
-
let
|
|
4174
|
-
if (!
|
|
4175
|
-
|
|
4176
|
-
else if (typeof
|
|
4174
|
+
let l = qt(e, u);
|
|
4175
|
+
if (!l)
|
|
4176
|
+
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;
|
|
4177
|
+
else if (typeof l != "string")
|
|
4177
4178
|
return console.warn(
|
|
4178
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4179
|
-
),
|
|
4179
|
+
`[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.`
|
|
4180
|
+
), l;
|
|
4180
4181
|
if (!a)
|
|
4181
|
-
return
|
|
4182
|
-
let c =
|
|
4182
|
+
return l;
|
|
4183
|
+
let c = l;
|
|
4183
4184
|
try {
|
|
4184
|
-
c = Ni(
|
|
4185
|
+
c = Ni(l, u).format(a);
|
|
4185
4186
|
} catch (f) {
|
|
4186
4187
|
f instanceof Error && console.warn(
|
|
4187
4188
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4189,20 +4190,20 @@ const re = (e, t) => {
|
|
|
4189
4190
|
);
|
|
4190
4191
|
}
|
|
4191
4192
|
return c;
|
|
4192
|
-
},
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
window.emWidgets = { topic:
|
|
4198
|
-
const
|
|
4199
|
-
function
|
|
4200
|
-
|
|
4193
|
+
}, Mi = (e, t) => Ci(t).format(e), $i = (e, t) => Ii(t).format(e), Ri = (e, t) => Oi(t).format(e), Di = (e, t = M()) => qt(e, t), Ui = W([Z, ne], () => Li);
|
|
4194
|
+
W([Z], () => Mi);
|
|
4195
|
+
W([Z], () => $i);
|
|
4196
|
+
W([Z], () => Ri);
|
|
4197
|
+
W([Z, ne], () => Di);
|
|
4198
|
+
window.emWidgets = { topic: Yr };
|
|
4199
|
+
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4200
|
+
function _t(e, t) {
|
|
4201
|
+
er(e, t);
|
|
4201
4202
|
}
|
|
4202
4203
|
function Gi(e) {
|
|
4203
|
-
|
|
4204
|
+
Z.set(e);
|
|
4204
4205
|
}
|
|
4205
|
-
const
|
|
4206
|
+
const St = {
|
|
4206
4207
|
en: {
|
|
4207
4208
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4208
4209
|
},
|
|
@@ -4243,10 +4244,10 @@ const wt = {
|
|
|
4243
4244
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4244
4245
|
}
|
|
4245
4246
|
};
|
|
4246
|
-
function
|
|
4247
|
-
|
|
4247
|
+
function Fi(e) {
|
|
4248
|
+
fr(e, "svelte-1v7b25v", "*,*::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, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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, #D0046C));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, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4248
4249
|
}
|
|
4249
|
-
function
|
|
4250
|
+
function ji(e) {
|
|
4250
4251
|
let t, r, n, i = (
|
|
4251
4252
|
/*customtext*/
|
|
4252
4253
|
(e[0] || /*$_*/
|
|
@@ -4254,188 +4255,184 @@ function ki(e) {
|
|
|
4254
4255
|
), o, s;
|
|
4255
4256
|
return {
|
|
4256
4257
|
c() {
|
|
4257
|
-
t =
|
|
4258
|
+
t = Y("div"), r = Y("div"), n = Y("button"), o = dr(i), L(n, "class", "PanicButton " + (ae(
|
|
4258
4259
|
/*userAgent*/
|
|
4259
4260
|
e[6]
|
|
4260
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4261
|
+
) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (ae(
|
|
4261
4262
|
/*userAgent*/
|
|
4262
4263
|
e[6]
|
|
4263
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4264
|
+
) !== "PC" ? "PanicButtonMobile" : "")), et(
|
|
4264
4265
|
n,
|
|
4265
4266
|
"PanicButtonAnimation",
|
|
4266
4267
|
/*panicLoading*/
|
|
4267
4268
|
e[4]
|
|
4268
|
-
),
|
|
4269
|
+
), L(r, "class", "PanicSection " + (ae(
|
|
4269
4270
|
/*userAgent*/
|
|
4270
4271
|
e[6]
|
|
4271
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4272
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (ae(
|
|
4272
4273
|
/*userAgent*/
|
|
4273
4274
|
e[6]
|
|
4274
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4275
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", s = /*alternativestyling*/
|
|
4275
4276
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4276
4277
|
},
|
|
4277
|
-
m(a,
|
|
4278
|
-
|
|
4278
|
+
m(a, u) {
|
|
4279
|
+
Pt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
|
|
4279
4280
|
},
|
|
4280
|
-
p(a, [
|
|
4281
|
-
|
|
4281
|
+
p(a, [u]) {
|
|
4282
|
+
u & /*customtext, $_*/
|
|
4282
4283
|
33 && i !== (i = /*customtext*/
|
|
4283
4284
|
(a[0] || /*$_*/
|
|
4284
|
-
a[5]("panicButtonString")) + "") &&
|
|
4285
|
-
16 &&
|
|
4285
|
+
a[5]("panicButtonString")) + "") && gr(o, i), u & /*panicLoading*/
|
|
4286
|
+
16 && et(
|
|
4286
4287
|
n,
|
|
4287
4288
|
"PanicButtonAnimation",
|
|
4288
4289
|
/*panicLoading*/
|
|
4289
4290
|
a[4]
|
|
4290
|
-
),
|
|
4291
|
+
), u & /*alternativestyling*/
|
|
4291
4292
|
2 && s !== (s = /*alternativestyling*/
|
|
4292
|
-
a[1] == "true" ? "PanicButtonV2" : "") &&
|
|
4293
|
+
a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
|
|
4293
4294
|
},
|
|
4294
4295
|
i: H,
|
|
4295
4296
|
o: H,
|
|
4296
4297
|
d(a) {
|
|
4297
|
-
a &&
|
|
4298
|
+
a && Xe(t), e[12](null), e[13](null);
|
|
4298
4299
|
}
|
|
4299
4300
|
};
|
|
4300
4301
|
}
|
|
4301
|
-
function
|
|
4302
|
+
function ki(e, t, r) {
|
|
4302
4303
|
let n;
|
|
4303
|
-
|
|
4304
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling:
|
|
4305
|
-
const
|
|
4306
|
-
fetch(
|
|
4307
|
-
Object.keys(
|
|
4308
|
-
|
|
4304
|
+
cr(e, Ui, (y) => r(5, n = y));
|
|
4305
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, v = 0, g, w = window.navigator.userAgent;
|
|
4306
|
+
const N = () => {
|
|
4307
|
+
fetch(l).then((R) => R.json()).then((R) => {
|
|
4308
|
+
Object.keys(R).forEach((Ze) => {
|
|
4309
|
+
_t(Ze, R[Ze]);
|
|
4309
4310
|
});
|
|
4310
|
-
}).catch((
|
|
4311
|
-
console.log(
|
|
4311
|
+
}).catch((R) => {
|
|
4312
|
+
console.log(R);
|
|
4312
4313
|
});
|
|
4313
4314
|
};
|
|
4314
|
-
Object.keys(
|
|
4315
|
-
|
|
4315
|
+
Object.keys(St).forEach((y) => {
|
|
4316
|
+
_t(y, St[y]);
|
|
4316
4317
|
});
|
|
4317
|
-
const
|
|
4318
|
-
|
|
4319
|
-
},
|
|
4320
|
-
r(4,
|
|
4321
|
-
},
|
|
4322
|
-
|
|
4318
|
+
const I = () => {
|
|
4319
|
+
c == null || c.addEventListener("mousedown", P, !1), c == null || c.addEventListener("touchstart", P, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
|
|
4320
|
+
}, _ = () => {
|
|
4321
|
+
r(4, m = !1), c == null || c.removeEventListener("mousedown", P), c == null || c.removeEventListener("touchstart", P), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
|
|
4322
|
+
}, P = () => {
|
|
4323
|
+
v = 0, r(4, m = !0), g = setInterval(
|
|
4323
4324
|
() => {
|
|
4324
|
-
|
|
4325
|
+
v++, v >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4325
4326
|
},
|
|
4326
4327
|
1e3
|
|
4327
4328
|
);
|
|
4328
|
-
},
|
|
4329
|
-
r(4,
|
|
4330
|
-
}, P = () => {
|
|
4331
|
-
let g = document.createElement("style");
|
|
4332
|
-
g.innerHTML = s, c.appendChild(g);
|
|
4333
|
-
}, R = () => {
|
|
4334
|
-
let g = new URL(a), B = document.createElement("style");
|
|
4335
|
-
fetch(g.href).then((D) => D.text()).then((D) => {
|
|
4336
|
-
B.innerHTML = D, setTimeout(
|
|
4337
|
-
() => {
|
|
4338
|
-
c.appendChild(B);
|
|
4339
|
-
},
|
|
4340
|
-
1
|
|
4341
|
-
);
|
|
4342
|
-
});
|
|
4329
|
+
}, S = () => {
|
|
4330
|
+
r(4, m = !1), clearInterval(g);
|
|
4343
4331
|
};
|
|
4344
|
-
|
|
4345
|
-
|
|
4332
|
+
xr(() => () => {
|
|
4333
|
+
_();
|
|
4346
4334
|
});
|
|
4347
|
-
function
|
|
4348
|
-
|
|
4349
|
-
|
|
4335
|
+
function $(y) {
|
|
4336
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4337
|
+
c = y, r(2, c);
|
|
4350
4338
|
});
|
|
4351
4339
|
}
|
|
4352
|
-
function
|
|
4353
|
-
|
|
4354
|
-
|
|
4340
|
+
function ie(y) {
|
|
4341
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4342
|
+
f = y, r(3, f);
|
|
4355
4343
|
});
|
|
4356
4344
|
}
|
|
4357
|
-
return e.$$set = (
|
|
4358
|
-
"lang" in
|
|
4345
|
+
return e.$$set = (y) => {
|
|
4346
|
+
"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);
|
|
4359
4347
|
}, e.$$.update = () => {
|
|
4360
4348
|
e.$$.dirty & /*panicButton*/
|
|
4361
|
-
4 &&
|
|
4349
|
+
4 && c && I(), e.$$.dirty & /*lang*/
|
|
4362
4350
|
128 && i && Gi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4363
|
-
264 && s &&
|
|
4364
|
-
520 && a &&
|
|
4365
|
-
|
|
4351
|
+
264 && s && f && Lr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4352
|
+
520 && a && f && Mr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4353
|
+
1032 && u && f && $r(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4354
|
+
2048 && l && N();
|
|
4366
4355
|
}, [
|
|
4367
4356
|
o,
|
|
4368
|
-
|
|
4369
|
-
u,
|
|
4357
|
+
h,
|
|
4370
4358
|
c,
|
|
4371
4359
|
f,
|
|
4360
|
+
m,
|
|
4372
4361
|
n,
|
|
4373
|
-
|
|
4362
|
+
w,
|
|
4374
4363
|
i,
|
|
4375
4364
|
s,
|
|
4376
4365
|
a,
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4366
|
+
u,
|
|
4367
|
+
l,
|
|
4368
|
+
$,
|
|
4369
|
+
ie
|
|
4380
4370
|
];
|
|
4381
4371
|
}
|
|
4382
|
-
class
|
|
4372
|
+
class Vi extends Cr {
|
|
4383
4373
|
constructor(t) {
|
|
4384
|
-
super(),
|
|
4374
|
+
super(), Or(
|
|
4385
4375
|
this,
|
|
4386
4376
|
t,
|
|
4387
|
-
Vi,
|
|
4388
4377
|
ki,
|
|
4389
|
-
|
|
4378
|
+
ji,
|
|
4379
|
+
wt,
|
|
4390
4380
|
{
|
|
4391
4381
|
lang: 7,
|
|
4392
4382
|
customtext: 0,
|
|
4393
4383
|
clientstyling: 8,
|
|
4394
4384
|
clientstylingurl: 9,
|
|
4385
|
+
mbsource: 10,
|
|
4395
4386
|
alternativestyling: 1,
|
|
4396
|
-
translationurl:
|
|
4387
|
+
translationurl: 11
|
|
4397
4388
|
},
|
|
4398
|
-
|
|
4389
|
+
Fi
|
|
4399
4390
|
);
|
|
4400
4391
|
}
|
|
4401
4392
|
get lang() {
|
|
4402
4393
|
return this.$$.ctx[7];
|
|
4403
4394
|
}
|
|
4404
4395
|
set lang(t) {
|
|
4405
|
-
this.$$set({ lang: t }),
|
|
4396
|
+
this.$$set({ lang: t }), B();
|
|
4406
4397
|
}
|
|
4407
4398
|
get customtext() {
|
|
4408
4399
|
return this.$$.ctx[0];
|
|
4409
4400
|
}
|
|
4410
4401
|
set customtext(t) {
|
|
4411
|
-
this.$$set({ customtext: t }),
|
|
4402
|
+
this.$$set({ customtext: t }), B();
|
|
4412
4403
|
}
|
|
4413
4404
|
get clientstyling() {
|
|
4414
4405
|
return this.$$.ctx[8];
|
|
4415
4406
|
}
|
|
4416
4407
|
set clientstyling(t) {
|
|
4417
|
-
this.$$set({ clientstyling: t }),
|
|
4408
|
+
this.$$set({ clientstyling: t }), B();
|
|
4418
4409
|
}
|
|
4419
4410
|
get clientstylingurl() {
|
|
4420
4411
|
return this.$$.ctx[9];
|
|
4421
4412
|
}
|
|
4422
4413
|
set clientstylingurl(t) {
|
|
4423
|
-
this.$$set({ clientstylingurl: t }),
|
|
4414
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4415
|
+
}
|
|
4416
|
+
get mbsource() {
|
|
4417
|
+
return this.$$.ctx[10];
|
|
4418
|
+
}
|
|
4419
|
+
set mbsource(t) {
|
|
4420
|
+
this.$$set({ mbsource: t }), B();
|
|
4424
4421
|
}
|
|
4425
4422
|
get alternativestyling() {
|
|
4426
4423
|
return this.$$.ctx[1];
|
|
4427
4424
|
}
|
|
4428
4425
|
set alternativestyling(t) {
|
|
4429
|
-
this.$$set({ alternativestyling: t }),
|
|
4426
|
+
this.$$set({ alternativestyling: t }), B();
|
|
4430
4427
|
}
|
|
4431
4428
|
get translationurl() {
|
|
4432
|
-
return this.$$.ctx[
|
|
4429
|
+
return this.$$.ctx[11];
|
|
4433
4430
|
}
|
|
4434
4431
|
set translationurl(t) {
|
|
4435
|
-
this.$$set({ translationurl: t }),
|
|
4432
|
+
this.$$set({ translationurl: t }), B();
|
|
4436
4433
|
}
|
|
4437
4434
|
}
|
|
4438
|
-
|
|
4435
|
+
Ir(Vi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4439
4436
|
export {
|
|
4440
|
-
|
|
4437
|
+
Vi as default
|
|
4441
4438
|
};
|