@everymatrix/cashier-video-modal 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierVideoModal-CWTBygnf.js → CashierVideoModal-DnqrFLGx.js} +611 -625
- package/components/CashierVideoModal-EmXZV7CG.cjs +18 -0
- package/components/{CashierVideoModal-CTbCFlFT.js → CashierVideoModal-MVlytJRE.js} +595 -609
- package/es2015/cashier-video-modal.cjs +1 -1
- package/es2015/cashier-video-modal.js +1 -1
- package/esnext/cashier-video-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-bYed8DsJ.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var _e = (e, t, r) => t in e ?
|
|
1
|
+
var ur = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var lr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _e = (e, t, r) => t in e ? ur(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
|
+
fr.call(t, r) && _e(e, r, t[r]);
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var r of Qe(t))
|
|
10
|
+
cr.call(t, r) && _e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, qe = (e, t) => hr(e, lr(t));
|
|
13
13
|
var w = (e, t, r) => (_e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var Ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function S() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function At(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ke() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ee(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(At);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ke(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Pt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let oe;
|
|
48
|
-
function
|
|
48
|
+
function et(e, t) {
|
|
49
49
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function dr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function pr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -63,14 +63,14 @@ function vr(e, ...t) {
|
|
|
63
63
|
function B(e, t) {
|
|
64
64
|
e.appendChild(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
66
|
+
function mr(e, t, r) {
|
|
67
|
+
const n = br(e);
|
|
68
68
|
if (!n.getElementById(t)) {
|
|
69
69
|
const i = N("style");
|
|
70
|
-
i.id = t, i.textContent = r,
|
|
70
|
+
i.id = t, i.textContent = r, gr(n, i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function br(e) {
|
|
74
74
|
if (!e)
|
|
75
75
|
return document;
|
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,7 +80,7 @@ function yr(e) {
|
|
|
80
80
|
t
|
|
81
81
|
) : e.ownerDocument;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function gr(e, t) {
|
|
84
84
|
return B(
|
|
85
85
|
/** @type {Document} */
|
|
86
86
|
e.head || e,
|
|
@@ -99,28 +99,28 @@ function N(e) {
|
|
|
99
99
|
function ce(e) {
|
|
100
100
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ct(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function tt() {
|
|
106
|
+
return Ct(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function yr() {
|
|
109
|
+
return Ct("");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ot(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function E(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function vr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function rt(e, t, r) {
|
|
121
121
|
e.classList.toggle(t, !!r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _r(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -133,22 +133,22 @@ let q;
|
|
|
133
133
|
function J(e) {
|
|
134
134
|
q = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Er() {
|
|
137
137
|
if (!q)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
139
|
return q;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function xr(e) {
|
|
142
|
+
Er().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const U = [],
|
|
144
|
+
const U = [], Ae = [];
|
|
145
145
|
let D = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const nt = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Pe = !1;
|
|
148
|
+
function wr() {
|
|
149
|
+
Pe || (Pe = !0, Sr.then(I));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ce(e) {
|
|
152
152
|
D.push(e);
|
|
153
153
|
}
|
|
154
154
|
const Ee = /* @__PURE__ */ new Set();
|
|
@@ -161,53 +161,53 @@ function I() {
|
|
|
161
161
|
try {
|
|
162
162
|
for (; $ < U.length; ) {
|
|
163
163
|
const t = U[$];
|
|
164
|
-
$++, J(t),
|
|
164
|
+
$++, J(t), Hr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw U.length = 0, $ = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (J(null), U.length = 0, $ = 0;
|
|
170
|
-
|
|
169
|
+
for (J(null), U.length = 0, $ = 0; Ae.length; )
|
|
170
|
+
Ae.pop()();
|
|
171
171
|
for (let t = 0; t < D.length; t += 1) {
|
|
172
172
|
const r = D[t];
|
|
173
173
|
Ee.has(r) || (Ee.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
D.length = 0;
|
|
176
176
|
} while (U.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; nt.length; )
|
|
178
|
+
nt.pop()();
|
|
179
|
+
Pe = !1, Ee.clear(), J(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Hr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
183
|
e.update(), ee(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Tr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const Br = /* @__PURE__ */ new Set();
|
|
193
|
+
function Ar(e, t) {
|
|
194
|
+
e && e.i && (Br.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Pr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
198
|
+
n && n.m(t, r), Ce(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(At).filter(ke);
|
|
200
200
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
|
|
201
|
-
}), i.forEach(
|
|
201
|
+
}), i.forEach(Ce);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Cr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Tr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
|
207
|
+
function Or(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (U.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
211
|
const h = q;
|
|
212
212
|
J(e);
|
|
213
213
|
const u = e.$$ = {
|
|
@@ -217,7 +217,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: S,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: Ke(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,28 +226,28 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: Ke(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
s && s(u.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (u.ctx = r
|
|
237
|
-
const
|
|
238
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
239
|
-
})
|
|
236
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...m) => {
|
|
237
|
+
const y = m.length ? m[0] : c;
|
|
238
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && Or(e, f)), c;
|
|
239
|
+
}), u.update(), l = !0, ee(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const f =
|
|
241
|
+
const f = vr(t.target);
|
|
242
242
|
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Ar(e.$$.fragment), Pr(e, t.target, t.anchor), I();
|
|
246
246
|
}
|
|
247
247
|
J(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Lt;
|
|
250
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return Ye(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = _r(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: qe(Je({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function ue(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function Ir(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Lt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Nr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class Rr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Cr(this, 1), this.$destroy = S;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Rr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!ke(r))
|
|
462
462
|
return S;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,18 +471,18 @@ class Rr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
-
function
|
|
477
|
+
const Mr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
|
|
479
|
+
function $r(e, t) {
|
|
480
480
|
if (e) {
|
|
481
481
|
const r = document.createElement("style");
|
|
482
482
|
r.innerHTML = t, e.appendChild(r);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Rr(e, t) {
|
|
486
486
|
const r = new URL(t);
|
|
487
487
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
488
488
|
const i = document.createElement("style");
|
|
@@ -491,7 +491,7 @@ function Gr(e, t) {
|
|
|
491
491
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Ur(e, t, r) {
|
|
495
495
|
if (window.emMessageBus) {
|
|
496
496
|
const n = document.createElement("style");
|
|
497
497
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -513,18 +513,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
513
513
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
514
514
|
PERFORMANCE OF THIS SOFTWARE.
|
|
515
515
|
***************************************************************************** */
|
|
516
|
-
var
|
|
517
|
-
return
|
|
516
|
+
var Oe = function(e, t) {
|
|
517
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
518
518
|
r.__proto__ = n;
|
|
519
519
|
} || function(r, n) {
|
|
520
520
|
for (var i in n)
|
|
521
521
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
522
|
-
},
|
|
522
|
+
}, Oe(e, t);
|
|
523
523
|
};
|
|
524
524
|
function P(e, t) {
|
|
525
525
|
if (typeof t != "function" && t !== null)
|
|
526
526
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
527
|
-
|
|
527
|
+
Oe(e, t);
|
|
528
528
|
function r() {
|
|
529
529
|
this.constructor = e;
|
|
530
530
|
}
|
|
@@ -540,7 +540,7 @@ var b = function() {
|
|
|
540
540
|
return t;
|
|
541
541
|
}, b.apply(this, arguments);
|
|
542
542
|
};
|
|
543
|
-
function
|
|
543
|
+
function Dr(e, t) {
|
|
544
544
|
var r = {};
|
|
545
545
|
for (var n in e)
|
|
546
546
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -549,7 +549,7 @@ function jr(e, t) {
|
|
|
549
549
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
550
550
|
return r;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Le(e) {
|
|
553
553
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
554
554
|
if (r)
|
|
555
555
|
return r.call(e);
|
|
@@ -561,7 +561,7 @@ function Ie(e) {
|
|
|
561
561
|
};
|
|
562
562
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Ie(e, t) {
|
|
565
565
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
566
566
|
if (!r)
|
|
567
567
|
return e;
|
|
@@ -590,13 +590,13 @@ function G(e, t, r) {
|
|
|
590
590
|
function A(e) {
|
|
591
591
|
return typeof e == "function";
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function It(e) {
|
|
594
594
|
var t = function(n) {
|
|
595
595
|
Error.call(n), n.stack = new Error().stack;
|
|
596
596
|
}, r = e(t);
|
|
597
597
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
598
598
|
}
|
|
599
|
-
var xe =
|
|
599
|
+
var xe = It(function(e) {
|
|
600
600
|
return function(r) {
|
|
601
601
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
602
602
|
` + r.map(function(n, i) {
|
|
@@ -605,7 +605,7 @@ var xe = Mt(function(e) {
|
|
|
605
605
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
606
606
|
};
|
|
607
607
|
});
|
|
608
|
-
function
|
|
608
|
+
function Ne(e, t) {
|
|
609
609
|
if (e) {
|
|
610
610
|
var r = e.indexOf(t);
|
|
611
611
|
0 <= r && e.splice(r, 1);
|
|
@@ -623,12 +623,12 @@ var me = function() {
|
|
|
623
623
|
if (s)
|
|
624
624
|
if (this._parentage = null, Array.isArray(s))
|
|
625
625
|
try {
|
|
626
|
-
for (var a =
|
|
626
|
+
for (var a = Le(s), h = a.next(); !h.done; h = a.next()) {
|
|
627
627
|
var u = h.value;
|
|
628
628
|
u.remove(this);
|
|
629
629
|
}
|
|
630
|
-
} catch (
|
|
631
|
-
t = { error:
|
|
630
|
+
} catch (g) {
|
|
631
|
+
t = { error: g };
|
|
632
632
|
} finally {
|
|
633
633
|
try {
|
|
634
634
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -643,23 +643,23 @@ var me = function() {
|
|
|
643
643
|
if (A(l))
|
|
644
644
|
try {
|
|
645
645
|
l();
|
|
646
|
-
} catch (
|
|
647
|
-
o =
|
|
646
|
+
} catch (g) {
|
|
647
|
+
o = g instanceof xe ? g.errors : [g];
|
|
648
648
|
}
|
|
649
649
|
var f = this._finalizers;
|
|
650
650
|
if (f) {
|
|
651
651
|
this._finalizers = null;
|
|
652
652
|
try {
|
|
653
|
-
for (var c =
|
|
654
|
-
var
|
|
653
|
+
for (var c = Le(f), m = c.next(); !m.done; m = c.next()) {
|
|
654
|
+
var y = m.value;
|
|
655
655
|
try {
|
|
656
|
-
|
|
657
|
-
} catch (
|
|
658
|
-
o = o != null ? o : [],
|
|
656
|
+
it(y);
|
|
657
|
+
} catch (g) {
|
|
658
|
+
o = o != null ? o : [], g instanceof xe ? o = G(G([], Ie(o)), Ie(g.errors)) : o.push(g);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
} catch (
|
|
662
|
-
n = { error:
|
|
661
|
+
} catch (g) {
|
|
662
|
+
n = { error: g };
|
|
663
663
|
} finally {
|
|
664
664
|
try {
|
|
665
665
|
m && !m.done && (i = c.return) && i.call(c);
|
|
@@ -676,7 +676,7 @@ var me = function() {
|
|
|
676
676
|
var r;
|
|
677
677
|
if (t && t !== this)
|
|
678
678
|
if (this.closed)
|
|
679
|
-
|
|
679
|
+
it(t);
|
|
680
680
|
else {
|
|
681
681
|
if (t instanceof e) {
|
|
682
682
|
if (t.closed || t._hasParent(this))
|
|
@@ -693,56 +693,56 @@ var me = function() {
|
|
|
693
693
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
694
694
|
}, e.prototype._removeParent = function(t) {
|
|
695
695
|
var r = this._parentage;
|
|
696
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
696
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
|
|
697
697
|
}, e.prototype.remove = function(t) {
|
|
698
698
|
var r = this._finalizers;
|
|
699
|
-
r &&
|
|
699
|
+
r && Ne(r, t), t instanceof e && t._removeParent(this);
|
|
700
700
|
}, e.EMPTY = function() {
|
|
701
701
|
var t = new e();
|
|
702
702
|
return t.closed = !0, t;
|
|
703
703
|
}(), e;
|
|
704
|
-
}(),
|
|
705
|
-
function
|
|
704
|
+
}(), Nt = me.EMPTY;
|
|
705
|
+
function Mt(e) {
|
|
706
706
|
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function it(e) {
|
|
709
709
|
A(e) ? e() : e.unsubscribe();
|
|
710
710
|
}
|
|
711
|
-
var
|
|
711
|
+
var Gr = {
|
|
712
712
|
onUnhandledError: null,
|
|
713
713
|
onStoppedNotification: null,
|
|
714
714
|
Promise: void 0,
|
|
715
715
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
716
716
|
useDeprecatedNextContext: !1
|
|
717
|
-
},
|
|
717
|
+
}, Fr = {
|
|
718
718
|
setTimeout: function(e, t) {
|
|
719
719
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
720
720
|
r[n - 2] = arguments[n];
|
|
721
|
-
return setTimeout.apply(void 0, G([e, t],
|
|
721
|
+
return setTimeout.apply(void 0, G([e, t], Ie(r)));
|
|
722
722
|
},
|
|
723
723
|
clearTimeout: function(e) {
|
|
724
724
|
return clearTimeout(e);
|
|
725
725
|
},
|
|
726
726
|
delegate: void 0
|
|
727
727
|
};
|
|
728
|
-
function
|
|
729
|
-
|
|
728
|
+
function jr(e) {
|
|
729
|
+
Fr.setTimeout(function() {
|
|
730
730
|
throw e;
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function ot() {
|
|
734
734
|
}
|
|
735
735
|
function he(e) {
|
|
736
736
|
e();
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var $t = function(e) {
|
|
739
739
|
P(t, e);
|
|
740
740
|
function t(r) {
|
|
741
741
|
var n = e.call(this) || this;
|
|
742
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
742
|
+
return n.isStopped = !1, r ? (n.destination = r, Mt(r) && r.add(n)) : n.destination = Xr, n;
|
|
743
743
|
}
|
|
744
744
|
return t.create = function(r, n, i) {
|
|
745
|
-
return new
|
|
745
|
+
return new Me(r, n, i);
|
|
746
746
|
}, t.prototype.next = function(r) {
|
|
747
747
|
this.isStopped || this._next(r);
|
|
748
748
|
}, t.prototype.error = function(r) {
|
|
@@ -766,11 +766,7 @@ var Dt = function(e) {
|
|
|
766
766
|
this.unsubscribe();
|
|
767
767
|
}
|
|
768
768
|
}, t;
|
|
769
|
-
}(me),
|
|
770
|
-
function Se(e, t) {
|
|
771
|
-
return Xr.call(e, t);
|
|
772
|
-
}
|
|
773
|
-
var Wr = function() {
|
|
769
|
+
}(me), Vr = function() {
|
|
774
770
|
function e(t) {
|
|
775
771
|
this.partialObserver = t;
|
|
776
772
|
}
|
|
@@ -801,55 +797,43 @@ var Wr = function() {
|
|
|
801
797
|
se(r);
|
|
802
798
|
}
|
|
803
799
|
}, e;
|
|
804
|
-
}(),
|
|
800
|
+
}(), Me = function(e) {
|
|
805
801
|
P(t, e);
|
|
806
802
|
function t(r, n, i) {
|
|
807
803
|
var o = e.call(this) || this, s;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
};
|
|
814
|
-
else {
|
|
815
|
-
var a;
|
|
816
|
-
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
817
|
-
return o.unsubscribe();
|
|
818
|
-
}, s = {
|
|
819
|
-
next: r.next && Se(r.next, a),
|
|
820
|
-
error: r.error && Se(r.error, a),
|
|
821
|
-
complete: r.complete && Se(r.complete, a)
|
|
822
|
-
}) : s = r;
|
|
823
|
-
}
|
|
824
|
-
return o.destination = new Wr(s), o;
|
|
804
|
+
return A(r) || !r ? s = {
|
|
805
|
+
next: r != null ? r : void 0,
|
|
806
|
+
error: n != null ? n : void 0,
|
|
807
|
+
complete: i != null ? i : void 0
|
|
808
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
825
809
|
}
|
|
826
810
|
return t;
|
|
827
|
-
}(
|
|
811
|
+
}($t);
|
|
828
812
|
function se(e) {
|
|
829
|
-
|
|
813
|
+
jr(e);
|
|
830
814
|
}
|
|
831
|
-
function
|
|
815
|
+
function kr(e) {
|
|
832
816
|
throw e;
|
|
833
817
|
}
|
|
834
|
-
var
|
|
818
|
+
var Xr = {
|
|
835
819
|
closed: !0,
|
|
836
|
-
next:
|
|
837
|
-
error:
|
|
838
|
-
complete:
|
|
839
|
-
},
|
|
820
|
+
next: ot,
|
|
821
|
+
error: kr,
|
|
822
|
+
complete: ot
|
|
823
|
+
}, Wr = function() {
|
|
840
824
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
841
825
|
}();
|
|
842
|
-
function
|
|
826
|
+
function zr(e) {
|
|
843
827
|
return e;
|
|
844
828
|
}
|
|
845
|
-
function
|
|
846
|
-
return e.length === 0 ?
|
|
829
|
+
function Zr(e) {
|
|
830
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
847
831
|
return e.reduce(function(n, i) {
|
|
848
832
|
return i(n);
|
|
849
833
|
}, r);
|
|
850
834
|
};
|
|
851
835
|
}
|
|
852
|
-
var
|
|
836
|
+
var st = function() {
|
|
853
837
|
function e(t) {
|
|
854
838
|
t && (this._subscribe = t);
|
|
855
839
|
}
|
|
@@ -857,7 +841,7 @@ var ut = function() {
|
|
|
857
841
|
var r = new e();
|
|
858
842
|
return r.source = this, r.operator = t, r;
|
|
859
843
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
860
|
-
var i = this, o =
|
|
844
|
+
var i = this, o = Jr(t) ? t : new Me(t, r, n);
|
|
861
845
|
return he(function() {
|
|
862
846
|
var s = i, a = s.operator, h = s.source;
|
|
863
847
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -870,8 +854,8 @@ var ut = function() {
|
|
|
870
854
|
}
|
|
871
855
|
}, e.prototype.forEach = function(t, r) {
|
|
872
856
|
var n = this;
|
|
873
|
-
return r =
|
|
874
|
-
var s = new
|
|
857
|
+
return r = at(r), new r(function(i, o) {
|
|
858
|
+
var s = new Me({
|
|
875
859
|
next: function(a) {
|
|
876
860
|
try {
|
|
877
861
|
t(a);
|
|
@@ -887,15 +871,15 @@ var ut = function() {
|
|
|
887
871
|
}, e.prototype._subscribe = function(t) {
|
|
888
872
|
var r;
|
|
889
873
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
890
|
-
}, e.prototype[
|
|
874
|
+
}, e.prototype[Wr] = function() {
|
|
891
875
|
return this;
|
|
892
876
|
}, e.prototype.pipe = function() {
|
|
893
877
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
894
878
|
t[r] = arguments[r];
|
|
895
|
-
return
|
|
879
|
+
return Zr(t)(this);
|
|
896
880
|
}, e.prototype.toPromise = function(t) {
|
|
897
881
|
var r = this;
|
|
898
|
-
return t =
|
|
882
|
+
return t = at(t), new t(function(n, i) {
|
|
899
883
|
var o;
|
|
900
884
|
r.subscribe(function(s) {
|
|
901
885
|
return o = s;
|
|
@@ -909,32 +893,32 @@ var ut = function() {
|
|
|
909
893
|
return new e(t);
|
|
910
894
|
}, e;
|
|
911
895
|
}();
|
|
912
|
-
function
|
|
896
|
+
function at(e) {
|
|
913
897
|
var t;
|
|
914
|
-
return (t = e != null ? e :
|
|
898
|
+
return (t = e != null ? e : Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
915
899
|
}
|
|
916
|
-
function
|
|
900
|
+
function Qr(e) {
|
|
917
901
|
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
918
902
|
}
|
|
919
|
-
function
|
|
920
|
-
return e && e instanceof
|
|
903
|
+
function Jr(e) {
|
|
904
|
+
return e && e instanceof $t || Qr(e) && Mt(e);
|
|
921
905
|
}
|
|
922
|
-
var
|
|
906
|
+
var qr = It(function(e) {
|
|
923
907
|
return function() {
|
|
924
908
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
925
909
|
};
|
|
926
|
-
}),
|
|
910
|
+
}), Rt = function(e) {
|
|
927
911
|
P(t, e);
|
|
928
912
|
function t() {
|
|
929
913
|
var r = e.call(this) || this;
|
|
930
914
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
931
915
|
}
|
|
932
916
|
return t.prototype.lift = function(r) {
|
|
933
|
-
var n = new
|
|
917
|
+
var n = new ut(this, this);
|
|
934
918
|
return n.operator = r, n;
|
|
935
919
|
}, t.prototype._throwIfClosed = function() {
|
|
936
920
|
if (this.closed)
|
|
937
|
-
throw new
|
|
921
|
+
throw new qr();
|
|
938
922
|
}, t.prototype.next = function(r) {
|
|
939
923
|
var n = this;
|
|
940
924
|
he(function() {
|
|
@@ -942,7 +926,7 @@ var en = Mt(function(e) {
|
|
|
942
926
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
943
927
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
944
928
|
try {
|
|
945
|
-
for (var s =
|
|
929
|
+
for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
946
930
|
var h = a.value;
|
|
947
931
|
h.next(r);
|
|
948
932
|
}
|
|
@@ -991,19 +975,19 @@ var en = Mt(function(e) {
|
|
|
991
975
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
992
976
|
}, t.prototype._innerSubscribe = function(r) {
|
|
993
977
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
994
|
-
return o || s ?
|
|
995
|
-
n.currentObservers = null,
|
|
978
|
+
return o || s ? Nt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
979
|
+
n.currentObservers = null, Ne(a, r);
|
|
996
980
|
}));
|
|
997
981
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
998
982
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
999
983
|
i ? r.error(o) : s && r.complete();
|
|
1000
984
|
}, t.prototype.asObservable = function() {
|
|
1001
|
-
var r = new
|
|
985
|
+
var r = new st();
|
|
1002
986
|
return r.source = this, r;
|
|
1003
987
|
}, t.create = function(r, n) {
|
|
1004
|
-
return new
|
|
988
|
+
return new ut(r, n);
|
|
1005
989
|
}, t;
|
|
1006
|
-
}(
|
|
990
|
+
}(st), ut = function(e) {
|
|
1007
991
|
P(t, e);
|
|
1008
992
|
function t(r, n) {
|
|
1009
993
|
var i = e.call(this) || this;
|
|
@@ -1020,17 +1004,17 @@ var en = Mt(function(e) {
|
|
|
1020
1004
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1021
1005
|
}, t.prototype._subscribe = function(r) {
|
|
1022
1006
|
var n, i;
|
|
1023
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1007
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
1024
1008
|
}, t;
|
|
1025
|
-
}(
|
|
1009
|
+
}(Rt), Ut = {
|
|
1026
1010
|
now: function() {
|
|
1027
|
-
return (
|
|
1011
|
+
return (Ut.delegate || Date).now();
|
|
1028
1012
|
},
|
|
1029
1013
|
delegate: void 0
|
|
1030
|
-
},
|
|
1014
|
+
}, Yr = function(e) {
|
|
1031
1015
|
P(t, e);
|
|
1032
1016
|
function t(r, n, i) {
|
|
1033
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1017
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
1034
1018
|
var o = e.call(this) || this;
|
|
1035
1019
|
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;
|
|
1036
1020
|
}
|
|
@@ -1050,15 +1034,15 @@ var en = Mt(function(e) {
|
|
|
1050
1034
|
u && o.splice(0, u + 1);
|
|
1051
1035
|
}
|
|
1052
1036
|
}, t;
|
|
1053
|
-
}(
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
const r = new
|
|
1057
|
-
|
|
1037
|
+
}(Rt);
|
|
1038
|
+
const ht = [], lt = {}, Kr = (e, t = 0) => {
|
|
1039
|
+
if (ht.indexOf(e) == -1) {
|
|
1040
|
+
const r = new Yr(t);
|
|
1041
|
+
lt[e] = r, ht.push(e);
|
|
1058
1042
|
}
|
|
1059
|
-
return
|
|
1043
|
+
return lt[e];
|
|
1060
1044
|
}, R = [];
|
|
1061
|
-
function
|
|
1045
|
+
function en(e, t) {
|
|
1062
1046
|
return {
|
|
1063
1047
|
subscribe: be(e, t).subscribe
|
|
1064
1048
|
};
|
|
@@ -1067,7 +1051,7 @@ function be(e, t = S) {
|
|
|
1067
1051
|
let r;
|
|
1068
1052
|
const n = /* @__PURE__ */ new Set();
|
|
1069
1053
|
function i(a) {
|
|
1070
|
-
if (
|
|
1054
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1071
1055
|
const h = !R.length;
|
|
1072
1056
|
for (const u of n)
|
|
1073
1057
|
u[1](), R.push(u, e);
|
|
@@ -1094,7 +1078,7 @@ function W(e, t, r) {
|
|
|
1094
1078
|
if (!i.every(Boolean))
|
|
1095
1079
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1096
1080
|
const o = t.length < 2;
|
|
1097
|
-
return
|
|
1081
|
+
return en(r, (s, a) => {
|
|
1098
1082
|
let h = !1;
|
|
1099
1083
|
const u = [];
|
|
1100
1084
|
let l = 0, f = S;
|
|
@@ -1102,16 +1086,16 @@ function W(e, t, r) {
|
|
|
1102
1086
|
if (l)
|
|
1103
1087
|
return;
|
|
1104
1088
|
f();
|
|
1105
|
-
const
|
|
1106
|
-
o ? s(
|
|
1089
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1090
|
+
o ? s(y) : f = ke(y) ? y : S;
|
|
1107
1091
|
}, m = i.map(
|
|
1108
|
-
(
|
|
1109
|
-
|
|
1092
|
+
(y, g) => pr(
|
|
1093
|
+
y,
|
|
1110
1094
|
(H) => {
|
|
1111
|
-
u[
|
|
1095
|
+
u[g] = H, l &= ~(1 << g), h && c();
|
|
1112
1096
|
},
|
|
1113
1097
|
() => {
|
|
1114
|
-
l |= 1 <<
|
|
1098
|
+
l |= 1 << g;
|
|
1115
1099
|
}
|
|
1116
1100
|
)
|
|
1117
1101
|
);
|
|
@@ -1120,70 +1104,70 @@ function W(e, t, r) {
|
|
|
1120
1104
|
};
|
|
1121
1105
|
});
|
|
1122
1106
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return e
|
|
1107
|
+
function tn(e) {
|
|
1108
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1125
1109
|
}
|
|
1126
|
-
var
|
|
1127
|
-
return
|
|
1110
|
+
var rn = function(t) {
|
|
1111
|
+
return nn(t) && !on(t);
|
|
1128
1112
|
};
|
|
1129
|
-
function
|
|
1113
|
+
function nn(e) {
|
|
1130
1114
|
return !!e && typeof e == "object";
|
|
1131
1115
|
}
|
|
1132
|
-
function
|
|
1116
|
+
function on(e) {
|
|
1133
1117
|
var t = Object.prototype.toString.call(e);
|
|
1134
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1118
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
1135
1119
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
return e.$$typeof ===
|
|
1120
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
1121
|
+
function un(e) {
|
|
1122
|
+
return e.$$typeof === an;
|
|
1139
1123
|
}
|
|
1140
|
-
function
|
|
1124
|
+
function hn(e) {
|
|
1141
1125
|
return Array.isArray(e) ? [] : {};
|
|
1142
1126
|
}
|
|
1143
1127
|
function Y(e, t) {
|
|
1144
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
1128
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(hn(e), e, t) : e;
|
|
1145
1129
|
}
|
|
1146
|
-
function
|
|
1130
|
+
function ln(e, t, r) {
|
|
1147
1131
|
return e.concat(t).map(function(n) {
|
|
1148
1132
|
return Y(n, r);
|
|
1149
1133
|
});
|
|
1150
1134
|
}
|
|
1151
|
-
function
|
|
1135
|
+
function fn(e, t) {
|
|
1152
1136
|
if (!t.customMerge)
|
|
1153
1137
|
return F;
|
|
1154
1138
|
var r = t.customMerge(e);
|
|
1155
1139
|
return typeof r == "function" ? r : F;
|
|
1156
1140
|
}
|
|
1157
|
-
function
|
|
1141
|
+
function cn(e) {
|
|
1158
1142
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1159
1143
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1160
1144
|
}) : [];
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return Object.keys(e).concat(
|
|
1146
|
+
function ft(e) {
|
|
1147
|
+
return Object.keys(e).concat(cn(e));
|
|
1164
1148
|
}
|
|
1165
|
-
function
|
|
1149
|
+
function Dt(e, t) {
|
|
1166
1150
|
try {
|
|
1167
1151
|
return t in e;
|
|
1168
1152
|
} catch (r) {
|
|
1169
1153
|
return !1;
|
|
1170
1154
|
}
|
|
1171
1155
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1156
|
+
function dn(e, t) {
|
|
1157
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1174
1158
|
}
|
|
1175
|
-
function
|
|
1159
|
+
function pn(e, t, r) {
|
|
1176
1160
|
var n = {};
|
|
1177
|
-
return r.isMergeableObject(e) &&
|
|
1161
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1178
1162
|
n[i] = Y(e[i], r);
|
|
1179
|
-
}),
|
|
1180
|
-
|
|
1163
|
+
}), ft(t).forEach(function(i) {
|
|
1164
|
+
dn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1181
1165
|
}), n;
|
|
1182
1166
|
}
|
|
1183
1167
|
function F(e, t, r) {
|
|
1184
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1168
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1185
1169
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1186
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1170
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : Y(t, r);
|
|
1187
1171
|
}
|
|
1188
1172
|
F.all = function(t, r) {
|
|
1189
1173
|
if (!Array.isArray(t))
|
|
@@ -1192,107 +1176,109 @@ F.all = function(t, r) {
|
|
|
1192
1176
|
return F(n, i, r);
|
|
1193
1177
|
}, {});
|
|
1194
1178
|
};
|
|
1195
|
-
var
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
var r = t && t.cache ? t.cache :
|
|
1179
|
+
var mn = F, bn = mn;
|
|
1180
|
+
const gn = /* @__PURE__ */ tn(bn);
|
|
1181
|
+
function Se(e, t) {
|
|
1182
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : vn;
|
|
1199
1183
|
return i(e, {
|
|
1200
1184
|
cache: r,
|
|
1201
1185
|
serializer: n
|
|
1202
1186
|
});
|
|
1203
1187
|
}
|
|
1204
|
-
function
|
|
1188
|
+
function yn(e) {
|
|
1205
1189
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1206
1190
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var i =
|
|
1191
|
+
function Gt(e, t, r, n) {
|
|
1192
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1209
1193
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1210
1194
|
}
|
|
1211
|
-
function
|
|
1195
|
+
function Ft(e, t, r) {
|
|
1212
1196
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1213
1197
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1214
1198
|
}
|
|
1215
|
-
function
|
|
1199
|
+
function Xe(e, t, r, n, i) {
|
|
1216
1200
|
return r.bind(t, e, n, i);
|
|
1217
1201
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var r = e.length === 1 ?
|
|
1220
|
-
return
|
|
1202
|
+
function vn(e, t) {
|
|
1203
|
+
var r = e.length === 1 ? Gt : Ft;
|
|
1204
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
1221
1205
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1206
|
+
function _n(e, t) {
|
|
1207
|
+
return Xe(e, this, Ft, t.cache.create(), t.serializer);
|
|
1224
1208
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1209
|
+
function En(e, t) {
|
|
1210
|
+
return Xe(e, this, Gt, t.cache.create(), t.serializer);
|
|
1227
1211
|
}
|
|
1228
|
-
var
|
|
1212
|
+
var xn = function() {
|
|
1229
1213
|
return JSON.stringify(arguments);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1214
|
+
}, Sn = (
|
|
1215
|
+
/** @class */
|
|
1216
|
+
function() {
|
|
1217
|
+
function e() {
|
|
1218
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1219
|
+
}
|
|
1220
|
+
return e.prototype.get = function(t) {
|
|
1221
|
+
return this.cache[t];
|
|
1222
|
+
}, e.prototype.set = function(t, r) {
|
|
1223
|
+
this.cache[t] = r;
|
|
1224
|
+
}, e;
|
|
1225
|
+
}()
|
|
1226
|
+
), wn = {
|
|
1241
1227
|
create: function() {
|
|
1242
|
-
return new
|
|
1228
|
+
return new Sn();
|
|
1243
1229
|
}
|
|
1244
|
-
},
|
|
1245
|
-
variadic:
|
|
1246
|
-
monadic:
|
|
1247
|
-
},
|
|
1230
|
+
}, we = {
|
|
1231
|
+
variadic: _n,
|
|
1232
|
+
monadic: En
|
|
1233
|
+
}, d;
|
|
1248
1234
|
(function(e) {
|
|
1249
1235
|
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";
|
|
1250
|
-
})(
|
|
1251
|
-
var
|
|
1236
|
+
})(d || (d = {}));
|
|
1237
|
+
var v;
|
|
1252
1238
|
(function(e) {
|
|
1253
1239
|
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";
|
|
1254
|
-
})(
|
|
1240
|
+
})(v || (v = {}));
|
|
1255
1241
|
var j;
|
|
1256
1242
|
(function(e) {
|
|
1257
1243
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1258
1244
|
})(j || (j = {}));
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1245
|
+
function ct(e) {
|
|
1246
|
+
return e.type === v.literal;
|
|
1261
1247
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1248
|
+
function Hn(e) {
|
|
1249
|
+
return e.type === v.argument;
|
|
1264
1250
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1251
|
+
function jt(e) {
|
|
1252
|
+
return e.type === v.number;
|
|
1267
1253
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return e.type ===
|
|
1254
|
+
function Vt(e) {
|
|
1255
|
+
return e.type === v.date;
|
|
1270
1256
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return e.type ===
|
|
1257
|
+
function kt(e) {
|
|
1258
|
+
return e.type === v.time;
|
|
1273
1259
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return e.type ===
|
|
1260
|
+
function Xt(e) {
|
|
1261
|
+
return e.type === v.select;
|
|
1276
1262
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return e.type ===
|
|
1263
|
+
function Wt(e) {
|
|
1264
|
+
return e.type === v.plural;
|
|
1279
1265
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return e.type ===
|
|
1266
|
+
function Tn(e) {
|
|
1267
|
+
return e.type === v.pound;
|
|
1282
1268
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return e.type ===
|
|
1269
|
+
function zt(e) {
|
|
1270
|
+
return e.type === v.tag;
|
|
1285
1271
|
}
|
|
1286
|
-
function
|
|
1272
|
+
function Zt(e) {
|
|
1287
1273
|
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1288
1274
|
}
|
|
1289
|
-
function
|
|
1275
|
+
function $e(e) {
|
|
1290
1276
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1291
1277
|
}
|
|
1292
|
-
var
|
|
1293
|
-
function
|
|
1278
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1279
|
+
function An(e) {
|
|
1294
1280
|
var t = {};
|
|
1295
|
-
return e.replace(
|
|
1281
|
+
return e.replace(Bn, function(r) {
|
|
1296
1282
|
var n = r.length;
|
|
1297
1283
|
switch (r[0]) {
|
|
1298
1284
|
case "G":
|
|
@@ -1381,11 +1367,11 @@ function Cn(e) {
|
|
|
1381
1367
|
return "";
|
|
1382
1368
|
}), t;
|
|
1383
1369
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1370
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1371
|
+
function Cn(e) {
|
|
1386
1372
|
if (e.length === 0)
|
|
1387
1373
|
throw new Error("Number skeleton cannot be empty");
|
|
1388
|
-
for (var t = e.split(
|
|
1374
|
+
for (var t = e.split(Pn).filter(function(c) {
|
|
1389
1375
|
return c.length > 0;
|
|
1390
1376
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1391
1377
|
var o = i[n], s = o.split("/");
|
|
@@ -1400,17 +1386,17 @@ function Ln(e) {
|
|
|
1400
1386
|
}
|
|
1401
1387
|
return r;
|
|
1402
1388
|
}
|
|
1403
|
-
function
|
|
1389
|
+
function On(e) {
|
|
1404
1390
|
return e.replace(/^(.*?)-/, "");
|
|
1405
1391
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1392
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1393
|
+
function pt(e) {
|
|
1408
1394
|
var t = {};
|
|
1409
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1395
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1410
1396
|
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)), "";
|
|
1411
1397
|
}), t;
|
|
1412
1398
|
}
|
|
1413
|
-
function
|
|
1399
|
+
function Yt(e) {
|
|
1414
1400
|
switch (e) {
|
|
1415
1401
|
case "sign-auto":
|
|
1416
1402
|
return {
|
|
@@ -1450,7 +1436,7 @@ function tr(e) {
|
|
|
1450
1436
|
};
|
|
1451
1437
|
}
|
|
1452
1438
|
}
|
|
1453
|
-
function
|
|
1439
|
+
function In(e) {
|
|
1454
1440
|
var t;
|
|
1455
1441
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1456
1442
|
notation: "engineering"
|
|
@@ -1458,17 +1444,17 @@ function Mn(e) {
|
|
|
1458
1444
|
notation: "scientific"
|
|
1459
1445
|
}, e = e.slice(1)), t) {
|
|
1460
1446
|
var r = e.slice(0, 2);
|
|
1461
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1447
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1462
1448
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1463
1449
|
t.minimumIntegerDigits = e.length;
|
|
1464
1450
|
}
|
|
1465
1451
|
return t;
|
|
1466
1452
|
}
|
|
1467
|
-
function
|
|
1468
|
-
var t = {}, r =
|
|
1453
|
+
function mt(e) {
|
|
1454
|
+
var t = {}, r = Yt(e);
|
|
1469
1455
|
return r || t;
|
|
1470
1456
|
}
|
|
1471
|
-
function
|
|
1457
|
+
function Nn(e) {
|
|
1472
1458
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1473
1459
|
var i = n[r];
|
|
1474
1460
|
switch (i.stem) {
|
|
@@ -1492,7 +1478,7 @@ function $n(e) {
|
|
|
1492
1478
|
continue;
|
|
1493
1479
|
case "measure-unit":
|
|
1494
1480
|
case "unit":
|
|
1495
|
-
t.style = "unit", t.unit =
|
|
1481
|
+
t.style = "unit", t.unit = On(i.options[0]);
|
|
1496
1482
|
continue;
|
|
1497
1483
|
case "compact-short":
|
|
1498
1484
|
case "K":
|
|
@@ -1504,12 +1490,12 @@ function $n(e) {
|
|
|
1504
1490
|
continue;
|
|
1505
1491
|
case "scientific":
|
|
1506
1492
|
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1507
|
-
return b(b({}, h),
|
|
1493
|
+
return b(b({}, h), mt(u));
|
|
1508
1494
|
}, {}));
|
|
1509
1495
|
continue;
|
|
1510
1496
|
case "engineering":
|
|
1511
1497
|
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1512
|
-
return b(b({}, h),
|
|
1498
|
+
return b(b({}, h), mt(u));
|
|
1513
1499
|
}, {}));
|
|
1514
1500
|
continue;
|
|
1515
1501
|
case "notation-simple":
|
|
@@ -1554,7 +1540,7 @@ function $n(e) {
|
|
|
1554
1540
|
case "integer-width":
|
|
1555
1541
|
if (i.options.length > 1)
|
|
1556
1542
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1557
|
-
i.options[0].replace(
|
|
1543
|
+
i.options[0].replace(Ln, function(h, u, l, f, c, m) {
|
|
1558
1544
|
if (u)
|
|
1559
1545
|
t.minimumIntegerDigits = l.length;
|
|
1560
1546
|
else {
|
|
@@ -1567,27 +1553,27 @@ function $n(e) {
|
|
|
1567
1553
|
});
|
|
1568
1554
|
continue;
|
|
1569
1555
|
}
|
|
1570
|
-
if (
|
|
1556
|
+
if (qt.test(i.stem)) {
|
|
1571
1557
|
t.minimumIntegerDigits = i.stem.length;
|
|
1572
1558
|
continue;
|
|
1573
1559
|
}
|
|
1574
|
-
if (
|
|
1560
|
+
if (dt.test(i.stem)) {
|
|
1575
1561
|
if (i.options.length > 1)
|
|
1576
1562
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1577
|
-
i.stem.replace(
|
|
1563
|
+
i.stem.replace(dt, function(h, u, l, f, c, m) {
|
|
1578
1564
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1579
1565
|
});
|
|
1580
1566
|
var o = i.options[0];
|
|
1581
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1567
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), pt(o)));
|
|
1582
1568
|
continue;
|
|
1583
1569
|
}
|
|
1584
|
-
if (
|
|
1585
|
-
t = b(b({}, t),
|
|
1570
|
+
if (Jt.test(i.stem)) {
|
|
1571
|
+
t = b(b({}, t), pt(i.stem));
|
|
1586
1572
|
continue;
|
|
1587
1573
|
}
|
|
1588
|
-
var s =
|
|
1574
|
+
var s = Yt(i.stem);
|
|
1589
1575
|
s && (t = b(b({}, t), s));
|
|
1590
|
-
var a =
|
|
1576
|
+
var a = In(i.stem);
|
|
1591
1577
|
a && (t = b(b({}, t), a));
|
|
1592
1578
|
}
|
|
1593
1579
|
return t;
|
|
@@ -3007,13 +2993,13 @@ var ae = {
|
|
|
3007
2993
|
"h"
|
|
3008
2994
|
]
|
|
3009
2995
|
};
|
|
3010
|
-
function
|
|
2996
|
+
function Mn(e, t) {
|
|
3011
2997
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3012
2998
|
var i = e.charAt(n);
|
|
3013
2999
|
if (i === "j") {
|
|
3014
3000
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3015
3001
|
o++, n++;
|
|
3016
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3002
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = $n(t);
|
|
3017
3003
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3018
3004
|
r += h;
|
|
3019
3005
|
for (; s-- > 0; )
|
|
@@ -3023,7 +3009,7 @@ function Rn(e, t) {
|
|
|
3023
3009
|
}
|
|
3024
3010
|
return r;
|
|
3025
3011
|
}
|
|
3026
|
-
function
|
|
3012
|
+
function $n(e) {
|
|
3027
3013
|
var t = e.hourCycle;
|
|
3028
3014
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3029
3015
|
e.hourCycles && // @ts-ignore
|
|
@@ -3045,20 +3031,20 @@ function Un(e) {
|
|
|
3045
3031
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3046
3032
|
return i[0];
|
|
3047
3033
|
}
|
|
3048
|
-
var
|
|
3049
|
-
function
|
|
3034
|
+
var He, Rn = new RegExp("^".concat(Qt.source, "*")), Un = new RegExp("".concat(Qt.source, "*$"));
|
|
3035
|
+
function p(e, t) {
|
|
3050
3036
|
return { start: e, end: t };
|
|
3051
3037
|
}
|
|
3052
|
-
var
|
|
3038
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, Wn = Xn ? Number.isSafeInteger : function(e) {
|
|
3053
3039
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3054
|
-
},
|
|
3040
|
+
}, Re = !0;
|
|
3055
3041
|
try {
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3042
|
+
var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3043
|
+
Re = ((He = zn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3058
3044
|
} catch (e) {
|
|
3059
|
-
|
|
3045
|
+
Re = !1;
|
|
3060
3046
|
}
|
|
3061
|
-
var
|
|
3047
|
+
var bt = Dn ? (
|
|
3062
3048
|
// Native
|
|
3063
3049
|
function(t, r, n) {
|
|
3064
3050
|
return t.startsWith(r, n);
|
|
@@ -3068,7 +3054,7 @@ var gt = Fn ? (
|
|
|
3068
3054
|
function(t, r, n) {
|
|
3069
3055
|
return t.slice(n, n + r.length) === r;
|
|
3070
3056
|
}
|
|
3071
|
-
),
|
|
3057
|
+
), Ue = Gn ? String.fromCodePoint : (
|
|
3072
3058
|
// IE11
|
|
3073
3059
|
function() {
|
|
3074
3060
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3080,9 +3066,9 @@ var gt = Fn ? (
|
|
|
3080
3066
|
}
|
|
3081
3067
|
return n;
|
|
3082
3068
|
}
|
|
3083
|
-
),
|
|
3069
|
+
), gt = (
|
|
3084
3070
|
// native
|
|
3085
|
-
|
|
3071
|
+
Fn ? Object.fromEntries : (
|
|
3086
3072
|
// Ponyfill
|
|
3087
3073
|
function(t) {
|
|
3088
3074
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3092,7 +3078,7 @@ var gt = Fn ? (
|
|
|
3092
3078
|
return r;
|
|
3093
3079
|
}
|
|
3094
3080
|
)
|
|
3095
|
-
),
|
|
3081
|
+
), Kt = jn ? (
|
|
3096
3082
|
// Native
|
|
3097
3083
|
function(t, r) {
|
|
3098
3084
|
return t.codePointAt(r);
|
|
@@ -3106,7 +3092,7 @@ var gt = Fn ? (
|
|
|
3106
3092
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3107
3093
|
}
|
|
3108
3094
|
}
|
|
3109
|
-
),
|
|
3095
|
+
), Zn = Vn ? (
|
|
3110
3096
|
// Native
|
|
3111
3097
|
function(t) {
|
|
3112
3098
|
return t.trimStart();
|
|
@@ -3114,9 +3100,9 @@ var gt = Fn ? (
|
|
|
3114
3100
|
) : (
|
|
3115
3101
|
// Ponyfill
|
|
3116
3102
|
function(t) {
|
|
3117
|
-
return t.replace(
|
|
3103
|
+
return t.replace(Rn, "");
|
|
3118
3104
|
}
|
|
3119
|
-
),
|
|
3105
|
+
), Qn = kn ? (
|
|
3120
3106
|
// Native
|
|
3121
3107
|
function(t) {
|
|
3122
3108
|
return t.trimEnd();
|
|
@@ -3124,32 +3110,32 @@ var gt = Fn ? (
|
|
|
3124
3110
|
) : (
|
|
3125
3111
|
// Ponyfill
|
|
3126
3112
|
function(t) {
|
|
3127
|
-
return t.replace(
|
|
3113
|
+
return t.replace(Un, "");
|
|
3128
3114
|
}
|
|
3129
3115
|
);
|
|
3130
|
-
function
|
|
3116
|
+
function er(e, t) {
|
|
3131
3117
|
return new RegExp(e, t);
|
|
3132
3118
|
}
|
|
3133
|
-
var
|
|
3134
|
-
if (
|
|
3135
|
-
var
|
|
3136
|
-
|
|
3119
|
+
var De;
|
|
3120
|
+
if (Re) {
|
|
3121
|
+
var yt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3122
|
+
De = function(t, r) {
|
|
3137
3123
|
var n;
|
|
3138
|
-
|
|
3139
|
-
var i =
|
|
3124
|
+
yt.lastIndex = r;
|
|
3125
|
+
var i = yt.exec(t);
|
|
3140
3126
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3141
3127
|
};
|
|
3142
3128
|
} else
|
|
3143
|
-
|
|
3129
|
+
De = function(t, r) {
|
|
3144
3130
|
for (var n = []; ; ) {
|
|
3145
|
-
var i =
|
|
3146
|
-
if (i === void 0 ||
|
|
3131
|
+
var i = Kt(t, r);
|
|
3132
|
+
if (i === void 0 || tr(i) || Kn(i))
|
|
3147
3133
|
break;
|
|
3148
3134
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3149
3135
|
}
|
|
3150
|
-
return
|
|
3136
|
+
return Ue.apply(void 0, n);
|
|
3151
3137
|
};
|
|
3152
|
-
var
|
|
3138
|
+
var Jn = (
|
|
3153
3139
|
/** @class */
|
|
3154
3140
|
function() {
|
|
3155
3141
|
function e(t, r) {
|
|
@@ -3173,14 +3159,14 @@ var Yn = (
|
|
|
3173
3159
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3174
3160
|
var a = this.clonePosition();
|
|
3175
3161
|
this.bump(), i.push({
|
|
3176
|
-
type:
|
|
3177
|
-
location:
|
|
3162
|
+
type: v.pound,
|
|
3163
|
+
location: p(a, this.clonePosition())
|
|
3178
3164
|
});
|
|
3179
3165
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3180
3166
|
if (n)
|
|
3181
3167
|
break;
|
|
3182
|
-
return this.error(
|
|
3183
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3168
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
3169
|
+
} else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
3184
3170
|
var s = this.parseTag(t, r);
|
|
3185
3171
|
if (s.err)
|
|
3186
3172
|
return s;
|
|
@@ -3201,9 +3187,9 @@ var Yn = (
|
|
|
3201
3187
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3202
3188
|
return {
|
|
3203
3189
|
val: {
|
|
3204
|
-
type:
|
|
3190
|
+
type: v.literal,
|
|
3205
3191
|
value: "<".concat(i, "/>"),
|
|
3206
|
-
location:
|
|
3192
|
+
location: p(n, this.clonePosition())
|
|
3207
3193
|
},
|
|
3208
3194
|
err: null
|
|
3209
3195
|
};
|
|
@@ -3213,25 +3199,25 @@ var Yn = (
|
|
|
3213
3199
|
return o;
|
|
3214
3200
|
var s = o.val, a = this.clonePosition();
|
|
3215
3201
|
if (this.bumpIf("</")) {
|
|
3216
|
-
if (this.isEOF() || !
|
|
3217
|
-
return this.error(
|
|
3202
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
3203
|
+
return this.error(d.INVALID_TAG, p(a, this.clonePosition()));
|
|
3218
3204
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3219
|
-
return i !== u ? this.error(
|
|
3205
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3220
3206
|
val: {
|
|
3221
|
-
type:
|
|
3207
|
+
type: v.tag,
|
|
3222
3208
|
value: i,
|
|
3223
3209
|
children: s,
|
|
3224
|
-
location:
|
|
3210
|
+
location: p(n, this.clonePosition())
|
|
3225
3211
|
},
|
|
3226
3212
|
err: null
|
|
3227
|
-
} : this.error(
|
|
3213
|
+
} : this.error(d.INVALID_TAG, p(a, this.clonePosition())));
|
|
3228
3214
|
} else
|
|
3229
|
-
return this.error(
|
|
3215
|
+
return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
3230
3216
|
} else
|
|
3231
|
-
return this.error(
|
|
3217
|
+
return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
|
|
3232
3218
|
}, e.prototype.parseTagName = function() {
|
|
3233
3219
|
var t = this.offset();
|
|
3234
|
-
for (this.bump(); !this.isEOF() &&
|
|
3220
|
+
for (this.bump(); !this.isEOF() && Yn(this.char()); )
|
|
3235
3221
|
this.bump();
|
|
3236
3222
|
return this.message.slice(t, this.offset());
|
|
3237
3223
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3253,14 +3239,14 @@ var Yn = (
|
|
|
3253
3239
|
}
|
|
3254
3240
|
break;
|
|
3255
3241
|
}
|
|
3256
|
-
var h =
|
|
3242
|
+
var h = p(n, this.clonePosition());
|
|
3257
3243
|
return {
|
|
3258
|
-
val: { type:
|
|
3244
|
+
val: { type: v.literal, value: i, location: h },
|
|
3259
3245
|
err: null
|
|
3260
3246
|
};
|
|
3261
3247
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3262
3248
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3263
|
-
!
|
|
3249
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3264
3250
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3265
3251
|
if (this.isEOF() || this.char() !== 39)
|
|
3266
3252
|
return null;
|
|
@@ -3294,49 +3280,49 @@ var Yn = (
|
|
|
3294
3280
|
r.push(n);
|
|
3295
3281
|
this.bump();
|
|
3296
3282
|
}
|
|
3297
|
-
return
|
|
3283
|
+
return Ue.apply(void 0, r);
|
|
3298
3284
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3299
3285
|
if (this.isEOF())
|
|
3300
3286
|
return null;
|
|
3301
3287
|
var n = this.char();
|
|
3302
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3288
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
3303
3289
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3304
3290
|
var n = this.clonePosition();
|
|
3305
3291
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3306
|
-
return this.error(
|
|
3292
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
3307
3293
|
if (this.char() === 125)
|
|
3308
|
-
return this.bump(), this.error(
|
|
3294
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
3309
3295
|
var i = this.parseIdentifierIfPossible().value;
|
|
3310
3296
|
if (!i)
|
|
3311
|
-
return this.error(
|
|
3297
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
3312
3298
|
if (this.bumpSpace(), this.isEOF())
|
|
3313
|
-
return this.error(
|
|
3299
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
3314
3300
|
switch (this.char()) {
|
|
3315
3301
|
case 125:
|
|
3316
3302
|
return this.bump(), {
|
|
3317
3303
|
val: {
|
|
3318
|
-
type:
|
|
3304
|
+
type: v.argument,
|
|
3319
3305
|
// value does not include the opening and closing braces.
|
|
3320
3306
|
value: i,
|
|
3321
|
-
location:
|
|
3307
|
+
location: p(n, this.clonePosition())
|
|
3322
3308
|
},
|
|
3323
3309
|
err: null
|
|
3324
3310
|
};
|
|
3325
3311
|
case 44:
|
|
3326
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3312
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3327
3313
|
default:
|
|
3328
|
-
return this.error(
|
|
3314
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
3329
3315
|
}
|
|
3330
3316
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3331
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3317
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3332
3318
|
this.bumpTo(i);
|
|
3333
|
-
var o = this.clonePosition(), s =
|
|
3319
|
+
var o = this.clonePosition(), s = p(t, o);
|
|
3334
3320
|
return { value: n, location: s };
|
|
3335
3321
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3336
3322
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3337
3323
|
switch (a) {
|
|
3338
3324
|
case "":
|
|
3339
|
-
return this.error(
|
|
3325
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, p(s, h));
|
|
3340
3326
|
case "number":
|
|
3341
3327
|
case "date":
|
|
3342
3328
|
case "time": {
|
|
@@ -3347,46 +3333,46 @@ var Yn = (
|
|
|
3347
3333
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3348
3334
|
if (f.err)
|
|
3349
3335
|
return f;
|
|
3350
|
-
var c =
|
|
3336
|
+
var c = Qn(f.val);
|
|
3351
3337
|
if (c.length === 0)
|
|
3352
|
-
return this.error(
|
|
3353
|
-
var m =
|
|
3338
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
3339
|
+
var m = p(l, this.clonePosition());
|
|
3354
3340
|
u = { style: c, styleLocation: m };
|
|
3355
3341
|
}
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var
|
|
3360
|
-
if (u &&
|
|
3361
|
-
var H =
|
|
3342
|
+
var y = this.tryParseArgumentClose(i);
|
|
3343
|
+
if (y.err)
|
|
3344
|
+
return y;
|
|
3345
|
+
var g = p(i, this.clonePosition());
|
|
3346
|
+
if (u && bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3347
|
+
var H = Zn(u.style.slice(2));
|
|
3362
3348
|
if (a === "number") {
|
|
3363
3349
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3364
3350
|
return f.err ? f : {
|
|
3365
|
-
val: { type:
|
|
3351
|
+
val: { type: v.number, value: n, location: g, style: f.val },
|
|
3366
3352
|
err: null
|
|
3367
3353
|
};
|
|
3368
3354
|
} else {
|
|
3369
3355
|
if (H.length === 0)
|
|
3370
|
-
return this.error(
|
|
3356
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3371
3357
|
var O = H;
|
|
3372
|
-
this.locale && (O =
|
|
3358
|
+
this.locale && (O = Mn(H, this.locale));
|
|
3373
3359
|
var c = {
|
|
3374
3360
|
type: j.dateTime,
|
|
3375
3361
|
pattern: O,
|
|
3376
3362
|
location: u.styleLocation,
|
|
3377
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3378
|
-
}, _ = a === "date" ?
|
|
3363
|
+
parsedOptions: this.shouldParseSkeletons ? An(O) : {}
|
|
3364
|
+
}, _ = a === "date" ? v.date : v.time;
|
|
3379
3365
|
return {
|
|
3380
|
-
val: { type: _, value: n, location:
|
|
3366
|
+
val: { type: _, value: n, location: g, style: c },
|
|
3381
3367
|
err: null
|
|
3382
3368
|
};
|
|
3383
3369
|
}
|
|
3384
3370
|
}
|
|
3385
3371
|
return {
|
|
3386
3372
|
val: {
|
|
3387
|
-
type: a === "number" ?
|
|
3373
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3388
3374
|
value: n,
|
|
3389
|
-
location:
|
|
3375
|
+
location: g,
|
|
3390
3376
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3391
3377
|
},
|
|
3392
3378
|
err: null
|
|
@@ -3397,14 +3383,14 @@ var Yn = (
|
|
|
3397
3383
|
case "select": {
|
|
3398
3384
|
var T = this.clonePosition();
|
|
3399
3385
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3400
|
-
return this.error(
|
|
3386
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, b({}, T)));
|
|
3401
3387
|
this.bumpSpace();
|
|
3402
3388
|
var Z = this.parseIdentifierIfPossible(), L = 0;
|
|
3403
3389
|
if (a !== "select" && Z.value === "offset") {
|
|
3404
3390
|
if (!this.bumpIf(":"))
|
|
3405
|
-
return this.error(
|
|
3391
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3406
3392
|
this.bumpSpace();
|
|
3407
|
-
var f = this.tryParseDecimalInteger(
|
|
3393
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3408
3394
|
if (f.err)
|
|
3409
3395
|
return f;
|
|
3410
3396
|
this.bumpSpace(), Z = this.parseIdentifierIfPossible(), L = f.val;
|
|
@@ -3412,35 +3398,35 @@ var Yn = (
|
|
|
3412
3398
|
var ie = this.tryParsePluralOrSelectOptions(t, a, r, Z);
|
|
3413
3399
|
if (ie.err)
|
|
3414
3400
|
return ie;
|
|
3415
|
-
var
|
|
3416
|
-
if (
|
|
3417
|
-
return
|
|
3418
|
-
var
|
|
3401
|
+
var y = this.tryParseArgumentClose(i);
|
|
3402
|
+
if (y.err)
|
|
3403
|
+
return y;
|
|
3404
|
+
var Ze = p(i, this.clonePosition());
|
|
3419
3405
|
return a === "select" ? {
|
|
3420
3406
|
val: {
|
|
3421
|
-
type:
|
|
3407
|
+
type: v.select,
|
|
3422
3408
|
value: n,
|
|
3423
|
-
options:
|
|
3424
|
-
location:
|
|
3409
|
+
options: gt(ie.val),
|
|
3410
|
+
location: Ze
|
|
3425
3411
|
},
|
|
3426
3412
|
err: null
|
|
3427
3413
|
} : {
|
|
3428
3414
|
val: {
|
|
3429
|
-
type:
|
|
3415
|
+
type: v.plural,
|
|
3430
3416
|
value: n,
|
|
3431
|
-
options:
|
|
3417
|
+
options: gt(ie.val),
|
|
3432
3418
|
offset: L,
|
|
3433
3419
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3434
|
-
location:
|
|
3420
|
+
location: Ze
|
|
3435
3421
|
},
|
|
3436
3422
|
err: null
|
|
3437
3423
|
};
|
|
3438
3424
|
}
|
|
3439
3425
|
default:
|
|
3440
|
-
return this.error(
|
|
3426
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, p(s, h));
|
|
3441
3427
|
}
|
|
3442
3428
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3443
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3429
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3444
3430
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3445
3431
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3446
3432
|
var n = this.char();
|
|
@@ -3449,7 +3435,7 @@ var Yn = (
|
|
|
3449
3435
|
this.bump();
|
|
3450
3436
|
var i = this.clonePosition();
|
|
3451
3437
|
if (!this.bumpUntil("'"))
|
|
3452
|
-
return this.error(
|
|
3438
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
3453
3439
|
this.bump();
|
|
3454
3440
|
break;
|
|
3455
3441
|
}
|
|
@@ -3479,16 +3465,16 @@ var Yn = (
|
|
|
3479
3465
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3480
3466
|
var n = [];
|
|
3481
3467
|
try {
|
|
3482
|
-
n =
|
|
3468
|
+
n = Cn(t);
|
|
3483
3469
|
} catch (i) {
|
|
3484
|
-
return this.error(
|
|
3470
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3485
3471
|
}
|
|
3486
3472
|
return {
|
|
3487
3473
|
val: {
|
|
3488
3474
|
type: j.number,
|
|
3489
3475
|
tokens: n,
|
|
3490
3476
|
location: r,
|
|
3491
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3477
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3492
3478
|
},
|
|
3493
3479
|
err: null
|
|
3494
3480
|
};
|
|
@@ -3497,34 +3483,34 @@ var Yn = (
|
|
|
3497
3483
|
if (u.length === 0) {
|
|
3498
3484
|
var f = this.clonePosition();
|
|
3499
3485
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3500
|
-
var c = this.tryParseDecimalInteger(
|
|
3486
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3501
3487
|
if (c.err)
|
|
3502
3488
|
return c;
|
|
3503
|
-
l =
|
|
3489
|
+
l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3504
3490
|
} else
|
|
3505
3491
|
break;
|
|
3506
3492
|
}
|
|
3507
3493
|
if (h.has(u))
|
|
3508
|
-
return this.error(r === "select" ?
|
|
3494
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3509
3495
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3510
3496
|
var m = this.clonePosition();
|
|
3511
3497
|
if (!this.bumpIf("{"))
|
|
3512
|
-
return this.error(r === "select" ?
|
|
3513
|
-
var
|
|
3498
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3499
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3500
|
+
if (y.err)
|
|
3501
|
+
return y;
|
|
3502
|
+
var g = this.tryParseArgumentClose(m);
|
|
3514
3503
|
if (g.err)
|
|
3515
3504
|
return g;
|
|
3516
|
-
var v = this.tryParseArgumentClose(m);
|
|
3517
|
-
if (v.err)
|
|
3518
|
-
return v;
|
|
3519
3505
|
a.push([
|
|
3520
3506
|
u,
|
|
3521
3507
|
{
|
|
3522
|
-
value:
|
|
3523
|
-
location:
|
|
3508
|
+
value: y.val,
|
|
3509
|
+
location: p(m, this.clonePosition())
|
|
3524
3510
|
}
|
|
3525
3511
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3526
3512
|
}
|
|
3527
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3513
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3528
3514
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3529
3515
|
var n = 1, i = this.clonePosition();
|
|
3530
3516
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3535,8 +3521,8 @@ var Yn = (
|
|
|
3535
3521
|
else
|
|
3536
3522
|
break;
|
|
3537
3523
|
}
|
|
3538
|
-
var h =
|
|
3539
|
-
return o ? (s *= n,
|
|
3524
|
+
var h = p(i, this.clonePosition());
|
|
3525
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3540
3526
|
}, e.prototype.offset = function() {
|
|
3541
3527
|
return this.position.offset;
|
|
3542
3528
|
}, e.prototype.isEOF = function() {
|
|
@@ -3551,7 +3537,7 @@ var Yn = (
|
|
|
3551
3537
|
var t = this.position.offset;
|
|
3552
3538
|
if (t >= this.message.length)
|
|
3553
3539
|
throw Error("out of bound");
|
|
3554
|
-
var r =
|
|
3540
|
+
var r = Kt(this.message, t);
|
|
3555
3541
|
if (r === void 0)
|
|
3556
3542
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3557
3543
|
return r;
|
|
@@ -3570,7 +3556,7 @@ var Yn = (
|
|
|
3570
3556
|
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);
|
|
3571
3557
|
}
|
|
3572
3558
|
}, e.prototype.bumpIf = function(t) {
|
|
3573
|
-
if (
|
|
3559
|
+
if (bt(this.message, t, this.offset())) {
|
|
3574
3560
|
for (var r = 0; r < t.length; r++)
|
|
3575
3561
|
this.bump();
|
|
3576
3562
|
return !0;
|
|
@@ -3592,7 +3578,7 @@ var Yn = (
|
|
|
3592
3578
|
break;
|
|
3593
3579
|
}
|
|
3594
3580
|
}, e.prototype.bumpSpace = function() {
|
|
3595
|
-
for (; !this.isEOF() &&
|
|
3581
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3596
3582
|
this.bump();
|
|
3597
3583
|
}, e.prototype.peek = function() {
|
|
3598
3584
|
if (this.isEOF())
|
|
@@ -3602,44 +3588,44 @@ var Yn = (
|
|
|
3602
3588
|
}, e;
|
|
3603
3589
|
}()
|
|
3604
3590
|
);
|
|
3605
|
-
function
|
|
3591
|
+
function Ge(e) {
|
|
3606
3592
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3607
3593
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return
|
|
3594
|
+
function qn(e) {
|
|
3595
|
+
return Ge(e) || e === 47;
|
|
3610
3596
|
}
|
|
3611
|
-
function
|
|
3597
|
+
function Yn(e) {
|
|
3612
3598
|
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;
|
|
3613
3599
|
}
|
|
3614
|
-
function
|
|
3600
|
+
function tr(e) {
|
|
3615
3601
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3616
3602
|
}
|
|
3617
|
-
function
|
|
3603
|
+
function Kn(e) {
|
|
3618
3604
|
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;
|
|
3619
3605
|
}
|
|
3620
|
-
function
|
|
3606
|
+
function Fe(e) {
|
|
3621
3607
|
e.forEach(function(t) {
|
|
3622
|
-
if (delete t.location,
|
|
3608
|
+
if (delete t.location, Xt(t) || Wt(t))
|
|
3623
3609
|
for (var r in t.options)
|
|
3624
|
-
delete t.options[r].location,
|
|
3610
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3625
3611
|
else
|
|
3626
|
-
|
|
3612
|
+
jt(t) && Zt(t.style) || (Vt(t) || kt(t)) && $e(t.style) ? delete t.style.location : zt(t) && Fe(t.children);
|
|
3627
3613
|
});
|
|
3628
3614
|
}
|
|
3629
|
-
function
|
|
3615
|
+
function ei(e, t) {
|
|
3630
3616
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3631
|
-
var r = new
|
|
3617
|
+
var r = new Jn(e, t).parse();
|
|
3632
3618
|
if (r.err) {
|
|
3633
|
-
var n = SyntaxError(
|
|
3619
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3634
3620
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3635
3621
|
}
|
|
3636
|
-
return t != null && t.captureLocation ||
|
|
3622
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3637
3623
|
}
|
|
3638
3624
|
var V;
|
|
3639
3625
|
(function(e) {
|
|
3640
3626
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3641
3627
|
})(V || (V = {}));
|
|
3642
|
-
var
|
|
3628
|
+
var ge = (
|
|
3643
3629
|
/** @class */
|
|
3644
3630
|
function(e) {
|
|
3645
3631
|
P(t, e);
|
|
@@ -3651,7 +3637,7 @@ var ve = (
|
|
|
3651
3637
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3652
3638
|
}, t;
|
|
3653
3639
|
}(Error)
|
|
3654
|
-
),
|
|
3640
|
+
), vt = (
|
|
3655
3641
|
/** @class */
|
|
3656
3642
|
function(e) {
|
|
3657
3643
|
P(t, e);
|
|
@@ -3659,8 +3645,8 @@ var ve = (
|
|
|
3659
3645
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3660
3646
|
}
|
|
3661
3647
|
return t;
|
|
3662
|
-
}(
|
|
3663
|
-
),
|
|
3648
|
+
}(ge)
|
|
3649
|
+
), ti = (
|
|
3664
3650
|
/** @class */
|
|
3665
3651
|
function(e) {
|
|
3666
3652
|
P(t, e);
|
|
@@ -3668,8 +3654,8 @@ var ve = (
|
|
|
3668
3654
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3669
3655
|
}
|
|
3670
3656
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3657
|
+
}(ge)
|
|
3658
|
+
), ri = (
|
|
3673
3659
|
/** @class */
|
|
3674
3660
|
function(e) {
|
|
3675
3661
|
P(t, e);
|
|
@@ -3677,22 +3663,22 @@ var ve = (
|
|
|
3677
3663
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3678
3664
|
}
|
|
3679
3665
|
return t;
|
|
3680
|
-
}(
|
|
3666
|
+
}(ge)
|
|
3681
3667
|
), x;
|
|
3682
3668
|
(function(e) {
|
|
3683
3669
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3684
3670
|
})(x || (x = {}));
|
|
3685
|
-
function
|
|
3671
|
+
function ni(e) {
|
|
3686
3672
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3687
3673
|
var n = t[t.length - 1];
|
|
3688
3674
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3689
3675
|
}, []);
|
|
3690
3676
|
}
|
|
3691
|
-
function
|
|
3677
|
+
function ii(e) {
|
|
3692
3678
|
return typeof e == "function";
|
|
3693
3679
|
}
|
|
3694
3680
|
function le(e, t, r, n, i, o, s) {
|
|
3695
|
-
if (e.length === 1 &&
|
|
3681
|
+
if (e.length === 1 && ct(e[0]))
|
|
3696
3682
|
return [
|
|
3697
3683
|
{
|
|
3698
3684
|
type: x.literal,
|
|
@@ -3701,14 +3687,14 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3701
3687
|
];
|
|
3702
3688
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3703
3689
|
var l = u[h];
|
|
3704
|
-
if (
|
|
3690
|
+
if (ct(l)) {
|
|
3705
3691
|
a.push({
|
|
3706
3692
|
type: x.literal,
|
|
3707
3693
|
value: l.value
|
|
3708
3694
|
});
|
|
3709
3695
|
continue;
|
|
3710
3696
|
}
|
|
3711
|
-
if (
|
|
3697
|
+
if (Tn(l)) {
|
|
3712
3698
|
typeof o == "number" && a.push({
|
|
3713
3699
|
type: x.literal,
|
|
3714
3700
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3717,44 +3703,44 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3717
3703
|
}
|
|
3718
3704
|
var f = l.value;
|
|
3719
3705
|
if (!(i && f in i))
|
|
3720
|
-
throw new
|
|
3706
|
+
throw new ri(f, s);
|
|
3721
3707
|
var c = i[f];
|
|
3722
|
-
if (
|
|
3708
|
+
if (Hn(l)) {
|
|
3723
3709
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3724
3710
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3725
3711
|
value: c
|
|
3726
3712
|
});
|
|
3727
3713
|
continue;
|
|
3728
3714
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3715
|
+
if (Vt(l)) {
|
|
3716
|
+
var m = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3731
3717
|
a.push({
|
|
3732
3718
|
type: x.literal,
|
|
3733
3719
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3734
3720
|
});
|
|
3735
3721
|
continue;
|
|
3736
3722
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3723
|
+
if (kt(l)) {
|
|
3724
|
+
var m = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3739
3725
|
a.push({
|
|
3740
3726
|
type: x.literal,
|
|
3741
3727
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3742
3728
|
});
|
|
3743
3729
|
continue;
|
|
3744
3730
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3731
|
+
if (jt(l)) {
|
|
3732
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3747
3733
|
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3748
3734
|
type: x.literal,
|
|
3749
3735
|
value: r.getNumberFormat(t, m).format(c)
|
|
3750
3736
|
});
|
|
3751
3737
|
continue;
|
|
3752
3738
|
}
|
|
3753
|
-
if (
|
|
3754
|
-
var
|
|
3755
|
-
if (!
|
|
3756
|
-
throw new
|
|
3757
|
-
var O = le(
|
|
3739
|
+
if (zt(l)) {
|
|
3740
|
+
var y = l.children, g = l.value, H = i[g];
|
|
3741
|
+
if (!ii(H))
|
|
3742
|
+
throw new ti(g, "function", s);
|
|
3743
|
+
var O = le(y, t, r, n, i, o), _ = H(O.map(function(L) {
|
|
3758
3744
|
return L.value;
|
|
3759
3745
|
}));
|
|
3760
3746
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(L) {
|
|
@@ -3764,42 +3750,42 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3764
3750
|
};
|
|
3765
3751
|
}));
|
|
3766
3752
|
}
|
|
3767
|
-
if (
|
|
3753
|
+
if (Xt(l)) {
|
|
3768
3754
|
var T = l.options[c] || l.options.other;
|
|
3769
3755
|
if (!T)
|
|
3770
|
-
throw new
|
|
3756
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3771
3757
|
a.push.apply(a, le(T.value, t, r, n, i));
|
|
3772
3758
|
continue;
|
|
3773
3759
|
}
|
|
3774
|
-
if (
|
|
3760
|
+
if (Wt(l)) {
|
|
3775
3761
|
var T = l.options["=".concat(c)];
|
|
3776
3762
|
if (!T) {
|
|
3777
3763
|
if (!Intl.PluralRules)
|
|
3778
|
-
throw new
|
|
3764
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3779
3765
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3780
3766
|
`, V.MISSING_INTL_API, s);
|
|
3781
3767
|
var Z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3782
3768
|
T = l.options[Z] || l.options.other;
|
|
3783
3769
|
}
|
|
3784
3770
|
if (!T)
|
|
3785
|
-
throw new
|
|
3771
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3786
3772
|
a.push.apply(a, le(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3787
3773
|
continue;
|
|
3788
3774
|
}
|
|
3789
3775
|
}
|
|
3790
|
-
return
|
|
3776
|
+
return ni(a);
|
|
3791
3777
|
}
|
|
3792
|
-
function
|
|
3778
|
+
function oi(e, t) {
|
|
3793
3779
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3794
3780
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3795
3781
|
}, {})) : e;
|
|
3796
3782
|
}
|
|
3797
|
-
function
|
|
3783
|
+
function si(e, t) {
|
|
3798
3784
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3799
|
-
return r[n] =
|
|
3785
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3800
3786
|
}, b({}, e)) : e;
|
|
3801
3787
|
}
|
|
3802
|
-
function
|
|
3788
|
+
function Te(e) {
|
|
3803
3789
|
return {
|
|
3804
3790
|
create: function() {
|
|
3805
3791
|
return {
|
|
@@ -3813,39 +3799,39 @@ function Be(e) {
|
|
|
3813
3799
|
}
|
|
3814
3800
|
};
|
|
3815
3801
|
}
|
|
3816
|
-
function
|
|
3802
|
+
function ai(e) {
|
|
3817
3803
|
return e === void 0 && (e = {
|
|
3818
3804
|
number: {},
|
|
3819
3805
|
dateTime: {},
|
|
3820
3806
|
pluralRules: {}
|
|
3821
3807
|
}), {
|
|
3822
|
-
getNumberFormat:
|
|
3808
|
+
getNumberFormat: Se(function() {
|
|
3823
3809
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3810
|
r[n] = arguments[n];
|
|
3825
3811
|
return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3826
3812
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3813
|
+
cache: Te(e.number),
|
|
3814
|
+
strategy: we.variadic
|
|
3829
3815
|
}),
|
|
3830
|
-
getDateTimeFormat:
|
|
3816
|
+
getDateTimeFormat: Se(function() {
|
|
3831
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3818
|
r[n] = arguments[n];
|
|
3833
3819
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3834
3820
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3821
|
+
cache: Te(e.dateTime),
|
|
3822
|
+
strategy: we.variadic
|
|
3837
3823
|
}),
|
|
3838
|
-
getPluralRules:
|
|
3824
|
+
getPluralRules: Se(function() {
|
|
3839
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3840
3826
|
r[n] = arguments[n];
|
|
3841
3827
|
return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
|
|
3842
3828
|
}, {
|
|
3843
|
-
cache:
|
|
3844
|
-
strategy:
|
|
3829
|
+
cache: Te(e.pluralRules),
|
|
3830
|
+
strategy: we.variadic
|
|
3845
3831
|
})
|
|
3846
3832
|
};
|
|
3847
3833
|
}
|
|
3848
|
-
var
|
|
3834
|
+
var ui = (
|
|
3849
3835
|
/** @class */
|
|
3850
3836
|
function() {
|
|
3851
3837
|
function e(t, r, n, i) {
|
|
@@ -3877,13 +3863,13 @@ var li = (
|
|
|
3877
3863
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3878
3864
|
var s = i || {};
|
|
3879
3865
|
s.formatters;
|
|
3880
|
-
var a =
|
|
3866
|
+
var a = Dr(s, ["formatters"]);
|
|
3881
3867
|
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
|
3882
3868
|
} else
|
|
3883
3869
|
this.ast = t;
|
|
3884
3870
|
if (!Array.isArray(this.ast))
|
|
3885
3871
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3886
|
-
this.formats =
|
|
3872
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3887
3873
|
}
|
|
3888
3874
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3889
3875
|
get: function() {
|
|
@@ -3896,7 +3882,7 @@ var li = (
|
|
|
3896
3882
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3897
3883
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3898
3884
|
}
|
|
3899
|
-
}, e.__parse =
|
|
3885
|
+
}, e.__parse = ei, e.formats = {
|
|
3900
3886
|
number: {
|
|
3901
3887
|
integer: {
|
|
3902
3888
|
maximumFractionDigits: 0
|
|
@@ -3957,7 +3943,7 @@ var li = (
|
|
|
3957
3943
|
}, e;
|
|
3958
3944
|
}()
|
|
3959
3945
|
);
|
|
3960
|
-
function
|
|
3946
|
+
function hi(e, t) {
|
|
3961
3947
|
if (t == null)
|
|
3962
3948
|
return;
|
|
3963
3949
|
if (t in e)
|
|
@@ -3978,92 +3964,92 @@ function fi(e, t) {
|
|
|
3978
3964
|
n = void 0;
|
|
3979
3965
|
return n;
|
|
3980
3966
|
}
|
|
3981
|
-
const C = {},
|
|
3967
|
+
const C = {}, li = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), rr = (e, t) => {
|
|
3982
3968
|
if (t == null)
|
|
3983
3969
|
return;
|
|
3984
3970
|
if (t in C && e in C[t])
|
|
3985
3971
|
return C[t][e];
|
|
3986
|
-
const r =
|
|
3972
|
+
const r = ye(t);
|
|
3987
3973
|
for (let n = 0; n < r.length; n++) {
|
|
3988
|
-
const i = r[n], o =
|
|
3974
|
+
const i = r[n], o = ci(i, e);
|
|
3989
3975
|
if (o)
|
|
3990
|
-
return
|
|
3976
|
+
return li(e, t, o);
|
|
3991
3977
|
}
|
|
3992
3978
|
};
|
|
3993
|
-
let
|
|
3979
|
+
let We;
|
|
3994
3980
|
const re = be({});
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
3981
|
+
function fi(e) {
|
|
3982
|
+
return We[e] || null;
|
|
3997
3983
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return e in
|
|
3984
|
+
function nr(e) {
|
|
3985
|
+
return e in We;
|
|
4000
3986
|
}
|
|
4001
|
-
function
|
|
4002
|
-
if (!
|
|
3987
|
+
function ci(e, t) {
|
|
3988
|
+
if (!nr(e))
|
|
4003
3989
|
return null;
|
|
4004
|
-
const r =
|
|
4005
|
-
return
|
|
3990
|
+
const r = fi(e);
|
|
3991
|
+
return hi(r, t);
|
|
4006
3992
|
}
|
|
4007
|
-
function
|
|
3993
|
+
function di(e) {
|
|
4008
3994
|
if (e == null)
|
|
4009
3995
|
return;
|
|
4010
|
-
const t =
|
|
3996
|
+
const t = ye(e);
|
|
4011
3997
|
for (let r = 0; r < t.length; r++) {
|
|
4012
3998
|
const n = t[r];
|
|
4013
|
-
if (
|
|
3999
|
+
if (nr(n))
|
|
4014
4000
|
return n;
|
|
4015
4001
|
}
|
|
4016
4002
|
}
|
|
4017
|
-
function
|
|
4018
|
-
delete C[e], re.update((r) => (r[e] =
|
|
4003
|
+
function pi(e, ...t) {
|
|
4004
|
+
delete C[e], re.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
4019
4005
|
}
|
|
4020
4006
|
W(
|
|
4021
4007
|
[re],
|
|
4022
4008
|
([e]) => Object.keys(e)
|
|
4023
4009
|
);
|
|
4024
|
-
re.subscribe((e) =>
|
|
4010
|
+
re.subscribe((e) => We = e);
|
|
4025
4011
|
const fe = {};
|
|
4026
|
-
function
|
|
4012
|
+
function mi(e, t) {
|
|
4027
4013
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4028
4014
|
}
|
|
4029
|
-
function
|
|
4015
|
+
function ir(e) {
|
|
4030
4016
|
return fe[e];
|
|
4031
4017
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return
|
|
4034
|
-
const r =
|
|
4018
|
+
function bi(e) {
|
|
4019
|
+
return ye(e).map((t) => {
|
|
4020
|
+
const r = ir(t);
|
|
4035
4021
|
return [t, r ? [...r] : []];
|
|
4036
4022
|
}).filter(([, t]) => t.length > 0);
|
|
4037
4023
|
}
|
|
4038
|
-
function
|
|
4039
|
-
return e == null ? !1 :
|
|
4024
|
+
function je(e) {
|
|
4025
|
+
return e == null ? !1 : ye(e).some(
|
|
4040
4026
|
(t) => {
|
|
4041
4027
|
var r;
|
|
4042
|
-
return (r =
|
|
4028
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
4043
4029
|
}
|
|
4044
4030
|
);
|
|
4045
4031
|
}
|
|
4046
|
-
function
|
|
4032
|
+
function gi(e, t) {
|
|
4047
4033
|
return Promise.all(
|
|
4048
|
-
t.map((n) => (
|
|
4049
|
-
).then((n) =>
|
|
4034
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4035
|
+
).then((n) => pi(e, ...n));
|
|
4050
4036
|
}
|
|
4051
4037
|
const Q = {};
|
|
4052
|
-
function
|
|
4053
|
-
if (!
|
|
4038
|
+
function or(e) {
|
|
4039
|
+
if (!je(e))
|
|
4054
4040
|
return e in Q ? Q[e] : Promise.resolve();
|
|
4055
|
-
const t =
|
|
4041
|
+
const t = bi(e);
|
|
4056
4042
|
return Q[e] = Promise.all(
|
|
4057
4043
|
t.map(
|
|
4058
|
-
([r, n]) =>
|
|
4044
|
+
([r, n]) => gi(r, n)
|
|
4059
4045
|
)
|
|
4060
4046
|
).then(() => {
|
|
4061
|
-
if (
|
|
4062
|
-
return
|
|
4047
|
+
if (je(e))
|
|
4048
|
+
return or(e);
|
|
4063
4049
|
delete Q[e];
|
|
4064
4050
|
}), Q[e];
|
|
4065
4051
|
}
|
|
4066
|
-
const
|
|
4052
|
+
const yi = {
|
|
4067
4053
|
number: {
|
|
4068
4054
|
scientific: { notation: "scientific" },
|
|
4069
4055
|
engineering: { notation: "engineering" },
|
|
@@ -4092,78 +4078,78 @@ const _i = {
|
|
|
4092
4078
|
timeZoneName: "short"
|
|
4093
4079
|
}
|
|
4094
4080
|
}
|
|
4095
|
-
},
|
|
4081
|
+
}, vi = {
|
|
4096
4082
|
fallbackLocale: null,
|
|
4097
4083
|
loadingDelay: 200,
|
|
4098
|
-
formats:
|
|
4084
|
+
formats: yi,
|
|
4099
4085
|
warnOnMissingMessages: !0,
|
|
4100
4086
|
handleMissingMessage: void 0,
|
|
4101
4087
|
ignoreTag: !0
|
|
4102
|
-
},
|
|
4088
|
+
}, _i = vi;
|
|
4103
4089
|
function k() {
|
|
4104
|
-
return
|
|
4105
|
-
}
|
|
4106
|
-
const
|
|
4107
|
-
var
|
|
4108
|
-
for (var r in t
|
|
4109
|
-
|
|
4110
|
-
if (
|
|
4111
|
-
for (var r of
|
|
4112
|
-
|
|
4090
|
+
return _i;
|
|
4091
|
+
}
|
|
4092
|
+
const Be = be(!1);
|
|
4093
|
+
var Ei = Object.defineProperty, xi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => {
|
|
4094
|
+
for (var r in t)
|
|
4095
|
+
wi.call(t, r) && Et(e, r, t[r]);
|
|
4096
|
+
if (_t)
|
|
4097
|
+
for (var r of _t(t))
|
|
4098
|
+
Hi.call(t, r) && Et(e, r, t[r]);
|
|
4113
4099
|
return e;
|
|
4114
|
-
},
|
|
4115
|
-
let
|
|
4116
|
-
const
|
|
4117
|
-
function
|
|
4100
|
+
}, Bi = (e, t) => xi(e, Si(t));
|
|
4101
|
+
let Ve;
|
|
4102
|
+
const de = be(null);
|
|
4103
|
+
function xt(e) {
|
|
4118
4104
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4119
4105
|
}
|
|
4120
|
-
function
|
|
4121
|
-
const r =
|
|
4122
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4106
|
+
function ye(e, t = k().fallbackLocale) {
|
|
4107
|
+
const r = xt(e);
|
|
4108
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4123
4109
|
}
|
|
4124
4110
|
function M() {
|
|
4125
|
-
return
|
|
4111
|
+
return Ve != null ? Ve : void 0;
|
|
4126
4112
|
}
|
|
4127
|
-
|
|
4128
|
-
|
|
4113
|
+
de.subscribe((e) => {
|
|
4114
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4129
4115
|
});
|
|
4130
|
-
const
|
|
4131
|
-
if (e &&
|
|
4116
|
+
const Ai = (e) => {
|
|
4117
|
+
if (e && di(e) && je(e)) {
|
|
4132
4118
|
const { loadingDelay: t } = k();
|
|
4133
4119
|
let r;
|
|
4134
4120
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4135
|
-
() =>
|
|
4121
|
+
() => Be.set(!0),
|
|
4136
4122
|
t
|
|
4137
|
-
) :
|
|
4138
|
-
|
|
4123
|
+
) : Be.set(!0), or(e).then(() => {
|
|
4124
|
+
de.set(e);
|
|
4139
4125
|
}).finally(() => {
|
|
4140
|
-
clearTimeout(r),
|
|
4126
|
+
clearTimeout(r), Be.set(!1);
|
|
4141
4127
|
});
|
|
4142
4128
|
}
|
|
4143
|
-
return
|
|
4144
|
-
}, ne =
|
|
4145
|
-
set:
|
|
4146
|
-
}),
|
|
4129
|
+
return de.set(e);
|
|
4130
|
+
}, ne = Bi(Ti({}, de), {
|
|
4131
|
+
set: Ai
|
|
4132
|
+
}), ve = (e) => {
|
|
4147
4133
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4148
4134
|
return (n) => {
|
|
4149
4135
|
const i = JSON.stringify(n);
|
|
4150
4136
|
return i in t ? t[i] : t[i] = e(n);
|
|
4151
4137
|
};
|
|
4152
4138
|
};
|
|
4153
|
-
var
|
|
4139
|
+
var Pi = Object.defineProperty, pe = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
4154
4140
|
for (var r in t || (t = {}))
|
|
4155
|
-
|
|
4156
|
-
if (
|
|
4157
|
-
for (var r of
|
|
4158
|
-
|
|
4141
|
+
sr.call(t, r) && St(e, r, t[r]);
|
|
4142
|
+
if (pe)
|
|
4143
|
+
for (var r of pe(t))
|
|
4144
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
4159
4145
|
return e;
|
|
4160
4146
|
}, z = (e, t) => {
|
|
4161
4147
|
var r = {};
|
|
4162
4148
|
for (var n in e)
|
|
4163
|
-
|
|
4164
|
-
if (e != null &&
|
|
4165
|
-
for (var n of
|
|
4166
|
-
t.indexOf(n) < 0 &&
|
|
4149
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4150
|
+
if (e != null && pe)
|
|
4151
|
+
for (var n of pe(e))
|
|
4152
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4167
4153
|
return r;
|
|
4168
4154
|
};
|
|
4169
4155
|
const K = (e, t) => {
|
|
@@ -4171,21 +4157,21 @@ const K = (e, t) => {
|
|
|
4171
4157
|
if (e in r && t in r[e])
|
|
4172
4158
|
return r[e][t];
|
|
4173
4159
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4174
|
-
},
|
|
4160
|
+
}, Ci = ve(
|
|
4175
4161
|
(e) => {
|
|
4176
4162
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4177
4163
|
if (r == null)
|
|
4178
4164
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4179
4165
|
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
4180
4166
|
}
|
|
4181
|
-
),
|
|
4167
|
+
), Oi = ve(
|
|
4182
4168
|
(e) => {
|
|
4183
4169
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4184
4170
|
if (r == null)
|
|
4185
4171
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4186
4172
|
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4173
|
}
|
|
4188
|
-
),
|
|
4174
|
+
), Li = ve(
|
|
4189
4175
|
(e) => {
|
|
4190
4176
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4191
4177
|
if (r == null)
|
|
@@ -4194,33 +4180,33 @@ const K = (e, t) => {
|
|
|
4194
4180
|
);
|
|
4195
4181
|
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4182
|
}
|
|
4197
|
-
),
|
|
4183
|
+
), Ii = (e = {}) => {
|
|
4198
4184
|
var t = e, {
|
|
4199
4185
|
locale: r = M()
|
|
4200
4186
|
} = t, n = z(t, [
|
|
4201
4187
|
"locale"
|
|
4202
4188
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4189
|
+
return Ci(ze({ locale: r }, n));
|
|
4190
|
+
}, Ni = (e = {}) => {
|
|
4205
4191
|
var t = e, {
|
|
4206
4192
|
locale: r = M()
|
|
4207
4193
|
} = t, n = z(t, [
|
|
4208
4194
|
"locale"
|
|
4209
4195
|
]);
|
|
4210
|
-
return
|
|
4211
|
-
},
|
|
4196
|
+
return Oi(ze({ locale: r }, n));
|
|
4197
|
+
}, Mi = (e = {}) => {
|
|
4212
4198
|
var t = e, {
|
|
4213
4199
|
locale: r = M()
|
|
4214
4200
|
} = t, n = z(t, [
|
|
4215
4201
|
"locale"
|
|
4216
4202
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4203
|
+
return Li(ze({ locale: r }, n));
|
|
4204
|
+
}, $i = ve(
|
|
4219
4205
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4220
|
-
(e, t = M()) => new
|
|
4206
|
+
(e, t = M()) => new ui(e, t, k().formats, {
|
|
4221
4207
|
ignoreTag: k().ignoreTag
|
|
4222
4208
|
})
|
|
4223
|
-
),
|
|
4209
|
+
), Ri = (e, t = {}) => {
|
|
4224
4210
|
var r, n, i, o;
|
|
4225
4211
|
let s = t;
|
|
4226
4212
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4233,7 +4219,7 @@ const K = (e, t) => {
|
|
|
4233
4219
|
throw new Error(
|
|
4234
4220
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4235
4221
|
);
|
|
4236
|
-
let l =
|
|
4222
|
+
let l = rr(e, h);
|
|
4237
4223
|
if (!l)
|
|
4238
4224
|
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4239
4225
|
else if (typeof l != "string")
|
|
@@ -4244,7 +4230,7 @@ const K = (e, t) => {
|
|
|
4244
4230
|
return l;
|
|
4245
4231
|
let f = l;
|
|
4246
4232
|
try {
|
|
4247
|
-
f =
|
|
4233
|
+
f = $i(l, h).format(a);
|
|
4248
4234
|
} catch (c) {
|
|
4249
4235
|
c instanceof Error && console.warn(
|
|
4250
4236
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4252,27 +4238,27 @@ const K = (e, t) => {
|
|
|
4252
4238
|
);
|
|
4253
4239
|
}
|
|
4254
4240
|
return f;
|
|
4255
|
-
},
|
|
4256
|
-
W([ne, re], () =>
|
|
4241
|
+
}, Ui = (e, t) => Mi(t).format(e), Di = (e, t) => Ni(t).format(e), Gi = (e, t) => Ii(t).format(e), Fi = (e, t = M()) => rr(e, t);
|
|
4242
|
+
W([ne, re], () => Ri);
|
|
4243
|
+
W([ne], () => Ui);
|
|
4244
|
+
W([ne], () => Di);
|
|
4257
4245
|
W([ne], () => Gi);
|
|
4258
|
-
W([ne], () => Fi);
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
function ki(e) {
|
|
4264
|
-
gr(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4246
|
+
W([ne, re], () => Fi);
|
|
4247
|
+
window.emWidgets = { topic: Kr };
|
|
4248
|
+
const wt = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4249
|
+
function ji(e) {
|
|
4250
|
+
mr(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4265
4251
|
}
|
|
4266
|
-
function
|
|
4252
|
+
function Ht(e) {
|
|
4267
4253
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4268
|
-
e[2] &&
|
|
4254
|
+
e[2] && Tt(e), u = (
|
|
4269
4255
|
/*desktopView*/
|
|
4270
|
-
e[2] &&
|
|
4256
|
+
e[2] && Bt(e)
|
|
4271
4257
|
);
|
|
4272
4258
|
return {
|
|
4273
4259
|
c() {
|
|
4274
|
-
t = N("div"), h && h.c(), r =
|
|
4275
|
-
e[0]) || E(s, "src", a), o.autoplay = !0, o.controls = !0, E(o, "controlslist", "nodownload"), E(o, "disablepictureinpicture", ""), E(n, "class", "CashierVideo"), E(t, "class", "CashierVideoWrapper"),
|
|
4260
|
+
t = N("div"), h && h.c(), r = tt(), n = N("div"), u && u.c(), i = tt(), o = N("video"), s = N("source"), et(s.src, a = /*videosrc*/
|
|
4261
|
+
e[0]) || E(s, "src", a), o.autoplay = !0, o.controls = !0, E(o, "controlslist", "nodownload"), E(o, "disablepictureinpicture", ""), E(n, "class", "CashierVideo"), E(t, "class", "CashierVideoWrapper"), rt(
|
|
4276
4262
|
t,
|
|
4277
4263
|
"CashierVideoWrapperDesktop",
|
|
4278
4264
|
/*desktopView*/
|
|
@@ -4284,11 +4270,11 @@ function Bt(e) {
|
|
|
4284
4270
|
},
|
|
4285
4271
|
p(l, f) {
|
|
4286
4272
|
/*desktopView*/
|
|
4287
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4288
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4289
|
-
1 && !
|
|
4273
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = Tt(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4274
|
+
l[2] ? u ? u.p(l, f) : (u = Bt(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4275
|
+
1 && !et(s.src, a = /*videosrc*/
|
|
4290
4276
|
l[0]) && E(s, "src", a), f & /*desktopView*/
|
|
4291
|
-
4 &&
|
|
4277
|
+
4 && rt(
|
|
4292
4278
|
t,
|
|
4293
4279
|
"CashierVideoWrapperDesktop",
|
|
4294
4280
|
/*desktopView*/
|
|
@@ -4300,14 +4286,14 @@ function Bt(e) {
|
|
|
4300
4286
|
}
|
|
4301
4287
|
};
|
|
4302
4288
|
}
|
|
4303
|
-
function
|
|
4289
|
+
function Tt(e) {
|
|
4304
4290
|
let t, r, n, i, o;
|
|
4305
4291
|
return {
|
|
4306
4292
|
c() {
|
|
4307
4293
|
t = N("div"), r = ce("svg"), n = ce("path"), E(n, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), E(n, "fill", "#111111"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "13"), E(r, "height", "13"), E(r, "viewBox", "0 0 13 13"), E(r, "fill", "none"), E(t, "class", "CashierVideoHeader");
|
|
4308
4294
|
},
|
|
4309
4295
|
m(s, a) {
|
|
4310
|
-
te(s, t, a), B(t, r), B(r, n), i || (o =
|
|
4296
|
+
te(s, t, a), B(t, r), B(r, n), i || (o = Ot(
|
|
4311
4297
|
r,
|
|
4312
4298
|
"click",
|
|
4313
4299
|
/*click_handler*/
|
|
@@ -4320,14 +4306,14 @@ function At(e) {
|
|
|
4320
4306
|
}
|
|
4321
4307
|
};
|
|
4322
4308
|
}
|
|
4323
|
-
function
|
|
4309
|
+
function Bt(e) {
|
|
4324
4310
|
let t, r, n, i;
|
|
4325
4311
|
return {
|
|
4326
4312
|
c() {
|
|
4327
4313
|
t = ce("svg"), r = ce("path"), E(r, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), E(r, "fill", "#111111"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "width", "13"), E(t, "height", "13"), E(t, "viewBox", "0 0 13 13"), E(t, "fill", "none");
|
|
4328
4314
|
},
|
|
4329
4315
|
m(o, s) {
|
|
4330
|
-
te(o, t, s), B(t, r), n || (i =
|
|
4316
|
+
te(o, t, s), B(t, r), n || (i = Ot(
|
|
4331
4317
|
t,
|
|
4332
4318
|
"click",
|
|
4333
4319
|
/*click_handler_1*/
|
|
@@ -4340,21 +4326,21 @@ function Pt(e) {
|
|
|
4340
4326
|
}
|
|
4341
4327
|
};
|
|
4342
4328
|
}
|
|
4343
|
-
function
|
|
4329
|
+
function Vi(e) {
|
|
4344
4330
|
let t, r = (
|
|
4345
4331
|
/*show*/
|
|
4346
|
-
e[3] &&
|
|
4332
|
+
e[3] && Ht(e)
|
|
4347
4333
|
);
|
|
4348
4334
|
return {
|
|
4349
4335
|
c() {
|
|
4350
|
-
r && r.c(), t =
|
|
4336
|
+
r && r.c(), t = yr();
|
|
4351
4337
|
},
|
|
4352
4338
|
m(n, i) {
|
|
4353
4339
|
r && r.m(n, i), te(n, t, i);
|
|
4354
4340
|
},
|
|
4355
4341
|
p(n, [i]) {
|
|
4356
4342
|
/*show*/
|
|
4357
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4343
|
+
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4358
4344
|
},
|
|
4359
4345
|
i: S,
|
|
4360
4346
|
o: S,
|
|
@@ -4363,21 +4349,21 @@ function Xi(e) {
|
|
|
4363
4349
|
}
|
|
4364
4350
|
};
|
|
4365
4351
|
}
|
|
4366
|
-
function
|
|
4352
|
+
function ki(e, t, r) {
|
|
4367
4353
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { ismobileview: o } = t, { videosrc: s } = t, { mbsource: a = "" } = t, h = window.navigator.userAgent, u = !0, l = !1, f;
|
|
4368
4354
|
const c = () => {
|
|
4369
4355
|
r(3, l = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4370
4356
|
}, m = (_) => {
|
|
4371
4357
|
_.data.type == "ShowCashierVideoModal" && (r(3, l = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), _.data.type == "HideCashierVideoModal" && c();
|
|
4372
|
-
},
|
|
4373
|
-
r(2, u = !
|
|
4358
|
+
}, y = () => {
|
|
4359
|
+
r(2, u = !wt(h));
|
|
4374
4360
|
};
|
|
4375
|
-
|
|
4361
|
+
xr(() => (window.addEventListener("message", m, !1), () => {
|
|
4376
4362
|
window.removeEventListener("message", m);
|
|
4377
4363
|
}));
|
|
4378
|
-
const
|
|
4364
|
+
const g = () => c(), H = () => c();
|
|
4379
4365
|
function O(_) {
|
|
4380
|
-
|
|
4366
|
+
Ae[_ ? "unshift" : "push"](() => {
|
|
4381
4367
|
f = _, r(1, f);
|
|
4382
4368
|
});
|
|
4383
4369
|
}
|
|
@@ -4385,10 +4371,10 @@ function Wi(e, t, r) {
|
|
|
4385
4371
|
"clientstyling" in _ && r(5, n = _.clientstyling), "clientstylingurl" in _ && r(6, i = _.clientstylingurl), "ismobileview" in _ && r(7, o = _.ismobileview), "videosrc" in _ && r(0, s = _.videosrc), "mbsource" in _ && r(8, a = _.mbsource);
|
|
4386
4372
|
}, e.$$.update = () => {
|
|
4387
4373
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4388
|
-
34 && n && f &&
|
|
4389
|
-
66 && i && f &&
|
|
4390
|
-
258 && a && f &&
|
|
4391
|
-
},
|
|
4374
|
+
34 && n && f && $r(f, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4375
|
+
66 && i && f && Rr(f, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4376
|
+
258 && a && f && Ur(f, `${a}.Style`);
|
|
4377
|
+
}, wt(h) && y(), [
|
|
4392
4378
|
s,
|
|
4393
4379
|
f,
|
|
4394
4380
|
u,
|
|
@@ -4398,19 +4384,19 @@ function Wi(e, t, r) {
|
|
|
4398
4384
|
i,
|
|
4399
4385
|
o,
|
|
4400
4386
|
a,
|
|
4401
|
-
|
|
4387
|
+
g,
|
|
4402
4388
|
H,
|
|
4403
4389
|
O
|
|
4404
4390
|
];
|
|
4405
4391
|
}
|
|
4406
|
-
class
|
|
4392
|
+
class Xi extends Nr {
|
|
4407
4393
|
constructor(t) {
|
|
4408
|
-
super(),
|
|
4394
|
+
super(), Lr(
|
|
4409
4395
|
this,
|
|
4410
4396
|
t,
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4397
|
+
ki,
|
|
4398
|
+
Vi,
|
|
4399
|
+
Pt,
|
|
4414
4400
|
{
|
|
4415
4401
|
clientstyling: 5,
|
|
4416
4402
|
clientstylingurl: 6,
|
|
@@ -4418,7 +4404,7 @@ class zi extends Rr {
|
|
|
4418
4404
|
videosrc: 0,
|
|
4419
4405
|
mbsource: 8
|
|
4420
4406
|
},
|
|
4421
|
-
|
|
4407
|
+
ji
|
|
4422
4408
|
);
|
|
4423
4409
|
}
|
|
4424
4410
|
get clientstyling() {
|
|
@@ -4452,7 +4438,7 @@ class zi extends Rr {
|
|
|
4452
4438
|
this.$$set({ mbsource: t }), I();
|
|
4453
4439
|
}
|
|
4454
4440
|
}
|
|
4455
|
-
|
|
4441
|
+
Ir(Xi, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4456
4442
|
export {
|
|
4457
|
-
|
|
4443
|
+
Xi as default
|
|
4458
4444
|
};
|