@everymatrix/cashier-video-modal 1.77.20 → 1.77.21
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-C2264P-G.js → CashierVideoModal-BVyIb_bz.js} +751 -708
- package/components/CashierVideoModal-D0hHtkXg.cjs +18 -0
- package/components/{CashierVideoModal-DWm2kDz2.js → CashierVideoModal-DpT89WDt.js} +766 -723
- 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-Cdoz-vOp.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function qe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Y(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ie;
|
|
19
|
-
function
|
|
19
|
+
function Ye(e, t) {
|
|
20
20
|
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ar(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,17 +31,17 @@ function rr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function B(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function ur(e, t, r) {
|
|
38
|
+
const n = hr(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
|
-
const i =
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
const i = C("style");
|
|
41
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function hr(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,47 +51,47 @@ function ir(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function lr(e, t) {
|
|
55
|
+
return B(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
58
58
|
t
|
|
59
59
|
), t.sheet;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function K(e, t, r) {
|
|
62
62
|
e.insertBefore(t, r || null);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function V(e) {
|
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function C(e) {
|
|
68
68
|
return document.createElement(e);
|
|
69
69
|
}
|
|
70
70
|
function fe(e) {
|
|
71
71
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function At(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Ke() {
|
|
77
|
+
return At(" ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function fr() {
|
|
80
|
+
return At("");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Pt(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function _(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function cr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function et(e, t, r) {
|
|
92
92
|
e.classList.toggle(t, !!r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function pr(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,87 +100,87 @@ function ur(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let Q;
|
|
104
|
+
function Z(e) {
|
|
105
|
+
Q = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function dr() {
|
|
108
|
+
if (!Q)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return Q;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function mr(e) {
|
|
113
|
+
dr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const $ = [],
|
|
115
|
+
const $ = [], Pe = [];
|
|
116
116
|
let U = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const tt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Oe = !1;
|
|
119
|
+
function vr() {
|
|
120
|
+
Oe || (Oe = !0, br.then(R));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ce(e) {
|
|
123
123
|
U.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
126
126
|
let N = 0;
|
|
127
127
|
function R() {
|
|
128
128
|
if (N !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = Q;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
133
|
for (; N < $.length; ) {
|
|
134
134
|
const t = $[N];
|
|
135
|
-
N++,
|
|
135
|
+
N++, Z(t), gr(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw $.length = 0, N = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
140
|
+
for (Z(null), $.length = 0, N = 0; Pe.length; )
|
|
141
|
+
Pe.pop()();
|
|
142
142
|
for (let t = 0; t < U.length; t += 1) {
|
|
143
143
|
const r = U[t];
|
|
144
|
-
|
|
144
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
U.length = 0;
|
|
147
147
|
} while ($.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; tt.length; )
|
|
149
|
+
tt.pop()();
|
|
150
|
+
Oe = !1, Ee.clear(), Z(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function gr(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), Y(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function yr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const _r = /* @__PURE__ */ new Set();
|
|
164
|
+
function Er(e, t) {
|
|
165
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function xr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Ce(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Tt).filter(ze);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Ce);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Sr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (yr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && ($.push(e),
|
|
178
|
+
function wr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && ($.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const h =
|
|
183
|
-
|
|
181
|
+
function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
+
const h = Q;
|
|
183
|
+
Z(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: S,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: qe(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: qe(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
204
204
|
};
|
|
205
205
|
s && s(u.root);
|
|
206
206
|
let l = !1;
|
|
207
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
207
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
208
|
+
const v = m.length ? m[0] : c;
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && wr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, Y(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = cr(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(V);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), R();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
Z(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let Ot;
|
|
221
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,24 +260,24 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = C("slot"), i !== "default" && _(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
K(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && V(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = pr(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function ae(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Tr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends Ot {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function Er(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Br {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class xr {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
Sr(this, 1), this.$destroy = S;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class xr {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!ze(r))
|
|
425
425
|
return S;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,18 +434,18 @@ class xr {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
function
|
|
440
|
+
const Ar = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
442
|
+
function Pr(e, t) {
|
|
443
443
|
if (e) {
|
|
444
444
|
const r = document.createElement("style");
|
|
445
445
|
r.innerHTML = t, e.appendChild(r);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Or(e, t) {
|
|
449
449
|
const r = new URL(t);
|
|
450
450
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
451
451
|
const i = document.createElement("style");
|
|
@@ -454,7 +454,7 @@ function wr(e, t) {
|
|
|
454
454
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Cr(e, t, r) {
|
|
458
458
|
if (window.emMessageBus) {
|
|
459
459
|
const n = document.createElement("style");
|
|
460
460
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -476,43 +476,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
476
476
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
477
477
|
PERFORMANCE OF THIS SOFTWARE.
|
|
478
478
|
***************************************************************************** */
|
|
479
|
-
var
|
|
480
|
-
return
|
|
479
|
+
var Le = function(e, t) {
|
|
480
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
481
481
|
r.__proto__ = n;
|
|
482
482
|
} || function(r, n) {
|
|
483
483
|
for (var i in n)
|
|
484
484
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
485
|
-
},
|
|
485
|
+
}, Le(e, t);
|
|
486
486
|
};
|
|
487
|
-
function
|
|
487
|
+
function ee(e, t) {
|
|
488
488
|
if (typeof t != "function" && t !== null)
|
|
489
489
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
490
|
-
|
|
490
|
+
Le(e, t);
|
|
491
491
|
function r() {
|
|
492
492
|
this.constructor = e;
|
|
493
493
|
}
|
|
494
494
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
495
495
|
}
|
|
496
|
-
|
|
497
|
-
return m = Object.assign || function(t) {
|
|
498
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
499
|
-
r = arguments[n];
|
|
500
|
-
for (var o in r)
|
|
501
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
502
|
-
}
|
|
503
|
-
return t;
|
|
504
|
-
}, m.apply(this, arguments);
|
|
505
|
-
};
|
|
506
|
-
function Br(e, t) {
|
|
507
|
-
var r = {};
|
|
508
|
-
for (var n in e)
|
|
509
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
510
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
511
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
512
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
513
|
-
return r;
|
|
514
|
-
}
|
|
515
|
-
function Ce(e) {
|
|
496
|
+
function Ie(e) {
|
|
516
497
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
517
498
|
if (r)
|
|
518
499
|
return r.call(e);
|
|
@@ -524,7 +505,7 @@ function Ce(e) {
|
|
|
524
505
|
};
|
|
525
506
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
526
507
|
}
|
|
527
|
-
function
|
|
508
|
+
function Ne(e, t) {
|
|
528
509
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
529
510
|
if (!r)
|
|
530
511
|
return e;
|
|
@@ -544,22 +525,22 @@ function Oe(e, t) {
|
|
|
544
525
|
}
|
|
545
526
|
return o;
|
|
546
527
|
}
|
|
547
|
-
function
|
|
548
|
-
if (
|
|
528
|
+
function Me(e, t, r) {
|
|
529
|
+
if (arguments.length === 2)
|
|
549
530
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
550
531
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
551
532
|
return e.concat(o || t);
|
|
552
533
|
}
|
|
553
|
-
function
|
|
534
|
+
function A(e) {
|
|
554
535
|
return typeof e == "function";
|
|
555
536
|
}
|
|
556
|
-
function
|
|
537
|
+
function Ct(e) {
|
|
557
538
|
var t = function(n) {
|
|
558
539
|
Error.call(n), n.stack = new Error().stack;
|
|
559
540
|
}, r = e(t);
|
|
560
541
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
561
542
|
}
|
|
562
|
-
var
|
|
543
|
+
var xe = Ct(function(e) {
|
|
563
544
|
return function(r) {
|
|
564
545
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
565
546
|
` + r.map(function(n, i) {
|
|
@@ -568,13 +549,13 @@ var _e = Tt(function(e) {
|
|
|
568
549
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
569
550
|
};
|
|
570
551
|
});
|
|
571
|
-
function
|
|
552
|
+
function $e(e, t) {
|
|
572
553
|
if (e) {
|
|
573
554
|
var r = e.indexOf(t);
|
|
574
555
|
0 <= r && e.splice(r, 1);
|
|
575
556
|
}
|
|
576
557
|
}
|
|
577
|
-
var
|
|
558
|
+
var me = function() {
|
|
578
559
|
function e(t) {
|
|
579
560
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
580
561
|
}
|
|
@@ -586,12 +567,12 @@ var de = function() {
|
|
|
586
567
|
if (s)
|
|
587
568
|
if (this._parentage = null, Array.isArray(s))
|
|
588
569
|
try {
|
|
589
|
-
for (var a =
|
|
570
|
+
for (var a = Ie(s), h = a.next(); !h.done; h = a.next()) {
|
|
590
571
|
var u = h.value;
|
|
591
572
|
u.remove(this);
|
|
592
573
|
}
|
|
593
|
-
} catch (
|
|
594
|
-
t = { error:
|
|
574
|
+
} catch (b) {
|
|
575
|
+
t = { error: b };
|
|
595
576
|
} finally {
|
|
596
577
|
try {
|
|
597
578
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -603,29 +584,29 @@ var de = function() {
|
|
|
603
584
|
else
|
|
604
585
|
s.remove(this);
|
|
605
586
|
var l = this.initialTeardown;
|
|
606
|
-
if (
|
|
587
|
+
if (A(l))
|
|
607
588
|
try {
|
|
608
589
|
l();
|
|
609
|
-
} catch (
|
|
610
|
-
o =
|
|
590
|
+
} catch (b) {
|
|
591
|
+
o = b instanceof xe ? b.errors : [b];
|
|
611
592
|
}
|
|
612
593
|
var f = this._finalizers;
|
|
613
594
|
if (f) {
|
|
614
595
|
this._finalizers = null;
|
|
615
596
|
try {
|
|
616
|
-
for (var c =
|
|
617
|
-
var
|
|
597
|
+
for (var c = Ie(f), m = c.next(); !m.done; m = c.next()) {
|
|
598
|
+
var v = m.value;
|
|
618
599
|
try {
|
|
619
|
-
|
|
620
|
-
} catch (
|
|
621
|
-
o = o ?? [],
|
|
600
|
+
rt(v);
|
|
601
|
+
} catch (b) {
|
|
602
|
+
o = o ?? [], b instanceof xe ? o = Me(Me([], Ne(o)), Ne(b.errors)) : o.push(b);
|
|
622
603
|
}
|
|
623
604
|
}
|
|
624
|
-
} catch (
|
|
625
|
-
n = { error:
|
|
605
|
+
} catch (b) {
|
|
606
|
+
n = { error: b };
|
|
626
607
|
} finally {
|
|
627
608
|
try {
|
|
628
|
-
|
|
609
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
629
610
|
} finally {
|
|
630
611
|
if (n)
|
|
631
612
|
throw n.error;
|
|
@@ -633,13 +614,13 @@ var de = function() {
|
|
|
633
614
|
}
|
|
634
615
|
}
|
|
635
616
|
if (o)
|
|
636
|
-
throw new
|
|
617
|
+
throw new xe(o);
|
|
637
618
|
}
|
|
638
619
|
}, e.prototype.add = function(t) {
|
|
639
620
|
var r;
|
|
640
621
|
if (t && t !== this)
|
|
641
622
|
if (this.closed)
|
|
642
|
-
|
|
623
|
+
rt(t);
|
|
643
624
|
else {
|
|
644
625
|
if (t instanceof e) {
|
|
645
626
|
if (t.closed || t._hasParent(this))
|
|
@@ -656,52 +637,52 @@ var de = function() {
|
|
|
656
637
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
657
638
|
}, e.prototype._removeParent = function(t) {
|
|
658
639
|
var r = this._parentage;
|
|
659
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
640
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
660
641
|
}, e.prototype.remove = function(t) {
|
|
661
642
|
var r = this._finalizers;
|
|
662
|
-
r &&
|
|
643
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
663
644
|
}, e.EMPTY = function() {
|
|
664
645
|
var t = new e();
|
|
665
646
|
return t.closed = !0, t;
|
|
666
647
|
}(), e;
|
|
667
|
-
}(),
|
|
668
|
-
function
|
|
669
|
-
return e instanceof
|
|
648
|
+
}(), Lt = me.EMPTY;
|
|
649
|
+
function It(e) {
|
|
650
|
+
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
670
651
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
652
|
+
function rt(e) {
|
|
653
|
+
A(e) ? e() : e.unsubscribe();
|
|
673
654
|
}
|
|
674
|
-
var
|
|
655
|
+
var Lr = {
|
|
675
656
|
Promise: void 0
|
|
676
|
-
},
|
|
657
|
+
}, Ir = {
|
|
677
658
|
setTimeout: function(e, t) {
|
|
678
659
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
679
660
|
r[n - 2] = arguments[n];
|
|
680
|
-
return setTimeout.apply(void 0,
|
|
661
|
+
return setTimeout.apply(void 0, Me([e, t], Ne(r)));
|
|
681
662
|
},
|
|
682
663
|
clearTimeout: function(e) {
|
|
683
664
|
return clearTimeout(e);
|
|
684
665
|
},
|
|
685
666
|
delegate: void 0
|
|
686
667
|
};
|
|
687
|
-
function
|
|
688
|
-
|
|
668
|
+
function Nr(e) {
|
|
669
|
+
Ir.setTimeout(function() {
|
|
689
670
|
throw e;
|
|
690
671
|
});
|
|
691
672
|
}
|
|
692
|
-
function
|
|
673
|
+
function nt() {
|
|
693
674
|
}
|
|
694
675
|
function ue(e) {
|
|
695
676
|
e();
|
|
696
677
|
}
|
|
697
|
-
var
|
|
698
|
-
|
|
678
|
+
var Nt = function(e) {
|
|
679
|
+
ee(t, e);
|
|
699
680
|
function t(r) {
|
|
700
681
|
var n = e.call(this) || this;
|
|
701
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
682
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Rr, n;
|
|
702
683
|
}
|
|
703
684
|
return t.create = function(r, n, i) {
|
|
704
|
-
return new
|
|
685
|
+
return new Re(r, n, i);
|
|
705
686
|
}, t.prototype.next = function(r) {
|
|
706
687
|
this.isStopped || this._next(r);
|
|
707
688
|
}, t.prototype.error = function(r) {
|
|
@@ -725,7 +706,7 @@ var Pt = function(e) {
|
|
|
725
706
|
this.unsubscribe();
|
|
726
707
|
}
|
|
727
708
|
}, t;
|
|
728
|
-
}(
|
|
709
|
+
}(me), Mr = function() {
|
|
729
710
|
function e(t) {
|
|
730
711
|
this.partialObserver = t;
|
|
731
712
|
}
|
|
@@ -756,43 +737,43 @@ var Pt = function(e) {
|
|
|
756
737
|
oe(r);
|
|
757
738
|
}
|
|
758
739
|
}, e;
|
|
759
|
-
}(),
|
|
760
|
-
|
|
740
|
+
}(), Re = function(e) {
|
|
741
|
+
ee(t, e);
|
|
761
742
|
function t(r, n, i) {
|
|
762
743
|
var o = e.call(this) || this, s;
|
|
763
|
-
return
|
|
744
|
+
return A(r) || !r ? s = {
|
|
764
745
|
next: r ?? void 0,
|
|
765
746
|
error: n ?? void 0,
|
|
766
747
|
complete: i ?? void 0
|
|
767
|
-
} : s = r, o.destination = new
|
|
748
|
+
} : s = r, o.destination = new Mr(s), o;
|
|
768
749
|
}
|
|
769
750
|
return t;
|
|
770
|
-
}(
|
|
751
|
+
}(Nt);
|
|
771
752
|
function oe(e) {
|
|
772
|
-
|
|
753
|
+
Nr(e);
|
|
773
754
|
}
|
|
774
|
-
function
|
|
755
|
+
function $r(e) {
|
|
775
756
|
throw e;
|
|
776
757
|
}
|
|
777
|
-
var
|
|
758
|
+
var Rr = {
|
|
778
759
|
closed: !0,
|
|
779
|
-
next:
|
|
780
|
-
error:
|
|
781
|
-
complete:
|
|
782
|
-
},
|
|
760
|
+
next: nt,
|
|
761
|
+
error: $r,
|
|
762
|
+
complete: nt
|
|
763
|
+
}, Ur = function() {
|
|
783
764
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
784
765
|
}();
|
|
785
|
-
function
|
|
766
|
+
function Dr(e) {
|
|
786
767
|
return e;
|
|
787
768
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.length === 0 ?
|
|
769
|
+
function Gr(e) {
|
|
770
|
+
return e.length === 0 ? Dr : e.length === 1 ? e[0] : function(r) {
|
|
790
771
|
return e.reduce(function(n, i) {
|
|
791
772
|
return i(n);
|
|
792
773
|
}, r);
|
|
793
774
|
};
|
|
794
775
|
}
|
|
795
|
-
var
|
|
776
|
+
var it = function() {
|
|
796
777
|
function e(t) {
|
|
797
778
|
t && (this._subscribe = t);
|
|
798
779
|
}
|
|
@@ -800,7 +781,7 @@ var Ke = function() {
|
|
|
800
781
|
var r = new e();
|
|
801
782
|
return r.source = this, r.operator = t, r;
|
|
802
783
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
803
|
-
var i = this, o =
|
|
784
|
+
var i = this, o = jr(t) ? t : new Re(t, r, n);
|
|
804
785
|
return ue(function() {
|
|
805
786
|
var s = i, a = s.operator, h = s.source;
|
|
806
787
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -813,8 +794,8 @@ var Ke = function() {
|
|
|
813
794
|
}
|
|
814
795
|
}, e.prototype.forEach = function(t, r) {
|
|
815
796
|
var n = this;
|
|
816
|
-
return r =
|
|
817
|
-
var s = new
|
|
797
|
+
return r = ot(r), new r(function(i, o) {
|
|
798
|
+
var s = new Re({
|
|
818
799
|
next: function(a) {
|
|
819
800
|
try {
|
|
820
801
|
t(a);
|
|
@@ -830,15 +811,15 @@ var Ke = function() {
|
|
|
830
811
|
}, e.prototype._subscribe = function(t) {
|
|
831
812
|
var r;
|
|
832
813
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
833
|
-
}, e.prototype[
|
|
814
|
+
}, e.prototype[Ur] = function() {
|
|
834
815
|
return this;
|
|
835
816
|
}, e.prototype.pipe = function() {
|
|
836
817
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
837
818
|
t[r] = arguments[r];
|
|
838
|
-
return
|
|
819
|
+
return Gr(t)(this);
|
|
839
820
|
}, e.prototype.toPromise = function(t) {
|
|
840
821
|
var r = this;
|
|
841
|
-
return t =
|
|
822
|
+
return t = ot(t), new t(function(n, i) {
|
|
842
823
|
var o;
|
|
843
824
|
r.subscribe(function(s) {
|
|
844
825
|
return o = s;
|
|
@@ -852,32 +833,32 @@ var Ke = function() {
|
|
|
852
833
|
return new e(t);
|
|
853
834
|
}, e;
|
|
854
835
|
}();
|
|
855
|
-
function
|
|
836
|
+
function ot(e) {
|
|
856
837
|
var t;
|
|
857
|
-
return (t = e ??
|
|
838
|
+
return (t = e ?? Lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
858
839
|
}
|
|
859
|
-
function
|
|
860
|
-
return e &&
|
|
840
|
+
function Fr(e) {
|
|
841
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
861
842
|
}
|
|
862
|
-
function
|
|
863
|
-
return e && e instanceof
|
|
843
|
+
function jr(e) {
|
|
844
|
+
return e && e instanceof Nt || Fr(e) && It(e);
|
|
864
845
|
}
|
|
865
|
-
var
|
|
846
|
+
var Vr = Ct(function(e) {
|
|
866
847
|
return function() {
|
|
867
848
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
868
849
|
};
|
|
869
|
-
}),
|
|
870
|
-
|
|
850
|
+
}), Mt = function(e) {
|
|
851
|
+
ee(t, e);
|
|
871
852
|
function t() {
|
|
872
853
|
var r = e.call(this) || this;
|
|
873
854
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
874
855
|
}
|
|
875
856
|
return t.prototype.lift = function(r) {
|
|
876
|
-
var n = new
|
|
857
|
+
var n = new st(this, this);
|
|
877
858
|
return n.operator = r, n;
|
|
878
859
|
}, t.prototype._throwIfClosed = function() {
|
|
879
860
|
if (this.closed)
|
|
880
|
-
throw new
|
|
861
|
+
throw new Vr();
|
|
881
862
|
}, t.prototype.next = function(r) {
|
|
882
863
|
var n = this;
|
|
883
864
|
ue(function() {
|
|
@@ -885,7 +866,7 @@ var Dr = Tt(function(e) {
|
|
|
885
866
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
886
867
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
887
868
|
try {
|
|
888
|
-
for (var s =
|
|
869
|
+
for (var s = Ie(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
889
870
|
var h = a.value;
|
|
890
871
|
h.next(r);
|
|
891
872
|
}
|
|
@@ -934,20 +915,20 @@ var Dr = Tt(function(e) {
|
|
|
934
915
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
935
916
|
}, t.prototype._innerSubscribe = function(r) {
|
|
936
917
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
937
|
-
return o || s ?
|
|
938
|
-
n.currentObservers = null,
|
|
918
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
919
|
+
n.currentObservers = null, $e(a, r);
|
|
939
920
|
}));
|
|
940
921
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
941
922
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
942
923
|
i ? r.error(o) : s && r.complete();
|
|
943
924
|
}, t.prototype.asObservable = function() {
|
|
944
|
-
var r = new
|
|
925
|
+
var r = new it();
|
|
945
926
|
return r.source = this, r;
|
|
946
927
|
}, t.create = function(r, n) {
|
|
947
|
-
return new
|
|
928
|
+
return new st(r, n);
|
|
948
929
|
}, t;
|
|
949
|
-
}(
|
|
950
|
-
|
|
930
|
+
}(it), st = function(e) {
|
|
931
|
+
ee(t, e);
|
|
951
932
|
function t(r, n) {
|
|
952
933
|
var i = e.call(this) || this;
|
|
953
934
|
return i.destination = r, i.source = n, i;
|
|
@@ -963,17 +944,17 @@ var Dr = Tt(function(e) {
|
|
|
963
944
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
964
945
|
}, t.prototype._subscribe = function(r) {
|
|
965
946
|
var n, i;
|
|
966
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
947
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
|
|
967
948
|
}, t;
|
|
968
|
-
}(
|
|
949
|
+
}(Mt), $t = {
|
|
969
950
|
now: function() {
|
|
970
|
-
return (
|
|
951
|
+
return ($t.delegate || Date).now();
|
|
971
952
|
},
|
|
972
953
|
delegate: void 0
|
|
973
|
-
},
|
|
974
|
-
|
|
954
|
+
}, kr = function(e) {
|
|
955
|
+
ee(t, e);
|
|
975
956
|
function t(r, n, i) {
|
|
976
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
957
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
977
958
|
var o = e.call(this) || this;
|
|
978
959
|
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;
|
|
979
960
|
}
|
|
@@ -993,24 +974,24 @@ var Dr = Tt(function(e) {
|
|
|
993
974
|
u && o.splice(0, u + 1);
|
|
994
975
|
}
|
|
995
976
|
}, t;
|
|
996
|
-
}(
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
const r = new
|
|
1000
|
-
|
|
977
|
+
}(Mt);
|
|
978
|
+
const at = [], ut = {}, Xr = (e, t = 0) => {
|
|
979
|
+
if (at.indexOf(e) == -1) {
|
|
980
|
+
const r = new kr(t);
|
|
981
|
+
ut[e] = r, at.push(e);
|
|
1001
982
|
}
|
|
1002
|
-
return
|
|
983
|
+
return ut[e];
|
|
1003
984
|
}, M = [];
|
|
1004
|
-
function
|
|
985
|
+
function Wr(e, t) {
|
|
1005
986
|
return {
|
|
1006
|
-
subscribe:
|
|
987
|
+
subscribe: be(e, t).subscribe
|
|
1007
988
|
};
|
|
1008
989
|
}
|
|
1009
|
-
function
|
|
990
|
+
function be(e, t = S) {
|
|
1010
991
|
let r;
|
|
1011
992
|
const n = /* @__PURE__ */ new Set();
|
|
1012
993
|
function i(a) {
|
|
1013
|
-
if (
|
|
994
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1014
995
|
const h = !M.length;
|
|
1015
996
|
for (const u of n)
|
|
1016
997
|
u[1](), M.push(u, e);
|
|
@@ -1032,12 +1013,12 @@ function me(e, t = S) {
|
|
|
1032
1013
|
}
|
|
1033
1014
|
return { set: i, update: o, subscribe: s };
|
|
1034
1015
|
}
|
|
1035
|
-
function
|
|
1016
|
+
function k(e, t, r) {
|
|
1036
1017
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1037
1018
|
if (!i.every(Boolean))
|
|
1038
1019
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1039
1020
|
const o = t.length < 2;
|
|
1040
|
-
return
|
|
1021
|
+
return Wr(r, (s, a) => {
|
|
1041
1022
|
let h = !1;
|
|
1042
1023
|
const u = [];
|
|
1043
1024
|
let l = 0, f = S;
|
|
@@ -1045,129 +1026,171 @@ function X(e, t, r) {
|
|
|
1045
1026
|
if (l)
|
|
1046
1027
|
return;
|
|
1047
1028
|
f();
|
|
1048
|
-
const
|
|
1049
|
-
o ? s(
|
|
1050
|
-
},
|
|
1051
|
-
(
|
|
1052
|
-
|
|
1053
|
-
(
|
|
1054
|
-
u[
|
|
1029
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1030
|
+
o ? s(v) : f = ze(v) ? v : S;
|
|
1031
|
+
}, m = i.map(
|
|
1032
|
+
(v, b) => ar(
|
|
1033
|
+
v,
|
|
1034
|
+
(w) => {
|
|
1035
|
+
u[b] = w, l &= ~(1 << b), h && c();
|
|
1055
1036
|
},
|
|
1056
1037
|
() => {
|
|
1057
|
-
l |= 1 <<
|
|
1038
|
+
l |= 1 << b;
|
|
1058
1039
|
}
|
|
1059
1040
|
)
|
|
1060
1041
|
);
|
|
1061
1042
|
return h = !0, c(), function() {
|
|
1062
|
-
|
|
1043
|
+
Y(m), f(), h = !1;
|
|
1063
1044
|
};
|
|
1064
1045
|
});
|
|
1065
1046
|
}
|
|
1066
|
-
function
|
|
1047
|
+
function zr(e) {
|
|
1067
1048
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1068
1049
|
}
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1050
|
+
var Zr = function(t) {
|
|
1051
|
+
return Qr(t) && !Jr(t);
|
|
1071
1052
|
};
|
|
1072
|
-
function
|
|
1053
|
+
function Qr(e) {
|
|
1073
1054
|
return !!e && typeof e == "object";
|
|
1074
1055
|
}
|
|
1075
|
-
function
|
|
1056
|
+
function Jr(e) {
|
|
1076
1057
|
var t = Object.prototype.toString.call(e);
|
|
1077
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1058
|
+
return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
|
|
1078
1059
|
}
|
|
1079
|
-
var
|
|
1080
|
-
function
|
|
1081
|
-
return e.$$typeof ===
|
|
1060
|
+
var qr = typeof Symbol == "function" && Symbol.for, Yr = qr ? Symbol.for("react.element") : 60103;
|
|
1061
|
+
function Kr(e) {
|
|
1062
|
+
return e.$$typeof === Yr;
|
|
1082
1063
|
}
|
|
1083
|
-
function
|
|
1064
|
+
function en(e) {
|
|
1084
1065
|
return Array.isArray(e) ? [] : {};
|
|
1085
1066
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1067
|
+
function J(e, t) {
|
|
1068
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(en(e), e, t) : e;
|
|
1088
1069
|
}
|
|
1089
|
-
function
|
|
1070
|
+
function tn(e, t, r) {
|
|
1090
1071
|
return e.concat(t).map(function(n) {
|
|
1091
|
-
return
|
|
1072
|
+
return J(n, r);
|
|
1092
1073
|
});
|
|
1093
1074
|
}
|
|
1094
|
-
function
|
|
1075
|
+
function rn(e, t) {
|
|
1095
1076
|
if (!t.customMerge)
|
|
1096
|
-
return
|
|
1077
|
+
return D;
|
|
1097
1078
|
var r = t.customMerge(e);
|
|
1098
|
-
return typeof r == "function" ? r :
|
|
1079
|
+
return typeof r == "function" ? r : D;
|
|
1099
1080
|
}
|
|
1100
|
-
function
|
|
1081
|
+
function nn(e) {
|
|
1101
1082
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1102
1083
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1103
1084
|
}) : [];
|
|
1104
1085
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return Object.keys(e).concat(
|
|
1086
|
+
function ht(e) {
|
|
1087
|
+
return Object.keys(e).concat(nn(e));
|
|
1107
1088
|
}
|
|
1108
|
-
function
|
|
1089
|
+
function Rt(e, t) {
|
|
1109
1090
|
try {
|
|
1110
1091
|
return t in e;
|
|
1111
1092
|
} catch {
|
|
1112
1093
|
return !1;
|
|
1113
1094
|
}
|
|
1114
1095
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1096
|
+
function on(e, t) {
|
|
1097
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1117
1098
|
}
|
|
1118
|
-
function
|
|
1099
|
+
function sn(e, t, r) {
|
|
1119
1100
|
var n = {};
|
|
1120
|
-
return r.isMergeableObject(e) &&
|
|
1121
|
-
n[i] =
|
|
1122
|
-
}),
|
|
1123
|
-
|
|
1101
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1102
|
+
n[i] = J(e[i], r);
|
|
1103
|
+
}), ht(t).forEach(function(i) {
|
|
1104
|
+
on(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = J(t[i], r));
|
|
1124
1105
|
}), n;
|
|
1125
1106
|
}
|
|
1126
|
-
function
|
|
1127
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1107
|
+
function D(e, t, r) {
|
|
1108
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = J;
|
|
1128
1109
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1129
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1110
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : J(t, r);
|
|
1130
1111
|
}
|
|
1131
|
-
|
|
1112
|
+
D.all = function(t, r) {
|
|
1132
1113
|
if (!Array.isArray(t))
|
|
1133
1114
|
throw new Error("first argument should be an array");
|
|
1134
1115
|
return t.reduce(function(n, i) {
|
|
1135
|
-
return
|
|
1116
|
+
return D(n, i, r);
|
|
1136
1117
|
}, {});
|
|
1137
1118
|
};
|
|
1138
|
-
var
|
|
1139
|
-
const
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1119
|
+
var an = D, un = an;
|
|
1120
|
+
const hn = /* @__PURE__ */ zr(un);
|
|
1121
|
+
var Ue = function(e, t) {
|
|
1122
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1123
|
+
r.__proto__ = n;
|
|
1124
|
+
} || function(r, n) {
|
|
1125
|
+
for (var i in n)
|
|
1126
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1127
|
+
}, Ue(e, t);
|
|
1128
|
+
};
|
|
1129
|
+
function ve(e, t) {
|
|
1130
|
+
if (typeof t != "function" && t !== null)
|
|
1131
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1132
|
+
Ue(e, t);
|
|
1133
|
+
function r() {
|
|
1134
|
+
this.constructor = e;
|
|
1135
|
+
}
|
|
1136
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1137
|
+
}
|
|
1138
|
+
var T = function() {
|
|
1139
|
+
return T = Object.assign || function(t) {
|
|
1140
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1141
|
+
r = arguments[n];
|
|
1142
|
+
for (var o in r)
|
|
1143
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1144
|
+
}
|
|
1145
|
+
return t;
|
|
1146
|
+
}, T.apply(this, arguments);
|
|
1147
|
+
};
|
|
1148
|
+
function ln(e, t) {
|
|
1149
|
+
var r = {};
|
|
1150
|
+
for (var n in e)
|
|
1151
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1152
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1153
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1154
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1155
|
+
return r;
|
|
1156
|
+
}
|
|
1157
|
+
function Se(e, t, r) {
|
|
1158
|
+
if (r || arguments.length === 2)
|
|
1159
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1160
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1161
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1162
|
+
}
|
|
1163
|
+
function we(e, t) {
|
|
1164
|
+
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1142
1165
|
return i(e, {
|
|
1143
1166
|
cache: r,
|
|
1144
1167
|
serializer: n
|
|
1145
1168
|
});
|
|
1146
1169
|
}
|
|
1147
|
-
function
|
|
1170
|
+
function fn(e) {
|
|
1148
1171
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1149
1172
|
}
|
|
1150
|
-
function
|
|
1151
|
-
var i =
|
|
1173
|
+
function cn(e, t, r, n) {
|
|
1174
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
1152
1175
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1153
1176
|
}
|
|
1154
|
-
function
|
|
1177
|
+
function Ut(e, t, r) {
|
|
1155
1178
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1156
1179
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1157
1180
|
}
|
|
1158
|
-
function
|
|
1181
|
+
function Dt(e, t, r, n, i) {
|
|
1159
1182
|
return r.bind(t, e, n, i);
|
|
1160
1183
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var r = e.length === 1 ?
|
|
1163
|
-
return
|
|
1184
|
+
function pn(e, t) {
|
|
1185
|
+
var r = e.length === 1 ? cn : Ut;
|
|
1186
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1164
1187
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1188
|
+
function dn(e, t) {
|
|
1189
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1167
1190
|
}
|
|
1168
|
-
var
|
|
1191
|
+
var mn = function() {
|
|
1169
1192
|
return JSON.stringify(arguments);
|
|
1170
|
-
},
|
|
1193
|
+
}, bn = (
|
|
1171
1194
|
/** @class */
|
|
1172
1195
|
function() {
|
|
1173
1196
|
function e() {
|
|
@@ -1179,61 +1202,71 @@ var ln = function() {
|
|
|
1179
1202
|
this.cache[t] = r;
|
|
1180
1203
|
}, e;
|
|
1181
1204
|
}()
|
|
1182
|
-
),
|
|
1205
|
+
), vn = {
|
|
1183
1206
|
create: function() {
|
|
1184
|
-
return new
|
|
1207
|
+
return new bn();
|
|
1185
1208
|
}
|
|
1186
|
-
},
|
|
1187
|
-
variadic:
|
|
1188
|
-
},
|
|
1209
|
+
}, He = {
|
|
1210
|
+
variadic: dn
|
|
1211
|
+
}, ce = function() {
|
|
1212
|
+
return ce = Object.assign || function(t) {
|
|
1213
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1214
|
+
r = arguments[n];
|
|
1215
|
+
for (var o in r)
|
|
1216
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1217
|
+
}
|
|
1218
|
+
return t;
|
|
1219
|
+
}, ce.apply(this, arguments);
|
|
1220
|
+
};
|
|
1221
|
+
var p;
|
|
1189
1222
|
(function(e) {
|
|
1190
1223
|
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";
|
|
1191
1224
|
})(p || (p = {}));
|
|
1192
|
-
var
|
|
1225
|
+
var g;
|
|
1193
1226
|
(function(e) {
|
|
1194
1227
|
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";
|
|
1195
|
-
})(
|
|
1196
|
-
var
|
|
1228
|
+
})(g || (g = {}));
|
|
1229
|
+
var G;
|
|
1197
1230
|
(function(e) {
|
|
1198
1231
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1199
|
-
})(
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1232
|
+
})(G || (G = {}));
|
|
1233
|
+
function lt(e) {
|
|
1234
|
+
return e.type === g.literal;
|
|
1202
1235
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1236
|
+
function gn(e) {
|
|
1237
|
+
return e.type === g.argument;
|
|
1205
1238
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1239
|
+
function Gt(e) {
|
|
1240
|
+
return e.type === g.number;
|
|
1208
1241
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1242
|
+
function Ft(e) {
|
|
1243
|
+
return e.type === g.date;
|
|
1211
1244
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return e.type ===
|
|
1245
|
+
function jt(e) {
|
|
1246
|
+
return e.type === g.time;
|
|
1214
1247
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1248
|
+
function Vt(e) {
|
|
1249
|
+
return e.type === g.select;
|
|
1217
1250
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e.type ===
|
|
1251
|
+
function kt(e) {
|
|
1252
|
+
return e.type === g.plural;
|
|
1220
1253
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1254
|
+
function yn(e) {
|
|
1255
|
+
return e.type === g.pound;
|
|
1223
1256
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1257
|
+
function Xt(e) {
|
|
1258
|
+
return e.type === g.tag;
|
|
1226
1259
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1260
|
+
function Wt(e) {
|
|
1261
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1229
1262
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1263
|
+
function De(e) {
|
|
1264
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1232
1265
|
}
|
|
1233
|
-
var
|
|
1234
|
-
function
|
|
1266
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1267
|
+
function En(e) {
|
|
1235
1268
|
var t = {};
|
|
1236
|
-
return e.replace(
|
|
1269
|
+
return e.replace(_n, function(r) {
|
|
1237
1270
|
var n = r.length;
|
|
1238
1271
|
switch (r[0]) {
|
|
1239
1272
|
case "G":
|
|
@@ -1322,11 +1355,21 @@ function bn(e) {
|
|
|
1322
1355
|
return "";
|
|
1323
1356
|
}), t;
|
|
1324
1357
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1358
|
+
var y = function() {
|
|
1359
|
+
return y = Object.assign || function(t) {
|
|
1360
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1361
|
+
r = arguments[n];
|
|
1362
|
+
for (var o in r)
|
|
1363
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1364
|
+
}
|
|
1365
|
+
return t;
|
|
1366
|
+
}, y.apply(this, arguments);
|
|
1367
|
+
};
|
|
1368
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1369
|
+
function Sn(e) {
|
|
1327
1370
|
if (e.length === 0)
|
|
1328
1371
|
throw new Error("Number skeleton cannot be empty");
|
|
1329
|
-
for (var t = e.split(
|
|
1372
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1330
1373
|
return c.length > 0;
|
|
1331
1374
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1332
1375
|
var o = i[n], s = o.split("/");
|
|
@@ -1341,17 +1384,17 @@ function gn(e) {
|
|
|
1341
1384
|
}
|
|
1342
1385
|
return r;
|
|
1343
1386
|
}
|
|
1344
|
-
function
|
|
1387
|
+
function wn(e) {
|
|
1345
1388
|
return e.replace(/^(.*?)-/, "");
|
|
1346
1389
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1390
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1391
|
+
function ct(e) {
|
|
1349
1392
|
var t = {};
|
|
1350
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1393
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1351
1394
|
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)), "";
|
|
1352
1395
|
}), t;
|
|
1353
1396
|
}
|
|
1354
|
-
function
|
|
1397
|
+
function Jt(e) {
|
|
1355
1398
|
switch (e) {
|
|
1356
1399
|
case "sign-auto":
|
|
1357
1400
|
return {
|
|
@@ -1391,7 +1434,7 @@ function Xt(e) {
|
|
|
1391
1434
|
};
|
|
1392
1435
|
}
|
|
1393
1436
|
}
|
|
1394
|
-
function
|
|
1437
|
+
function Tn(e) {
|
|
1395
1438
|
var t;
|
|
1396
1439
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1397
1440
|
notation: "engineering"
|
|
@@ -1399,17 +1442,17 @@ function En(e) {
|
|
|
1399
1442
|
notation: "scientific"
|
|
1400
1443
|
}, e = e.slice(1)), t) {
|
|
1401
1444
|
var r = e.slice(0, 2);
|
|
1402
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1445
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1403
1446
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1404
1447
|
t.minimumIntegerDigits = e.length;
|
|
1405
1448
|
}
|
|
1406
1449
|
return t;
|
|
1407
1450
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var t = {}, r =
|
|
1451
|
+
function pt(e) {
|
|
1452
|
+
var t = {}, r = Jt(e);
|
|
1410
1453
|
return r || t;
|
|
1411
1454
|
}
|
|
1412
|
-
function
|
|
1455
|
+
function Bn(e) {
|
|
1413
1456
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1414
1457
|
var i = n[r];
|
|
1415
1458
|
switch (i.stem) {
|
|
@@ -1433,7 +1476,7 @@ function xn(e) {
|
|
|
1433
1476
|
continue;
|
|
1434
1477
|
case "measure-unit":
|
|
1435
1478
|
case "unit":
|
|
1436
|
-
t.style = "unit", t.unit =
|
|
1479
|
+
t.style = "unit", t.unit = wn(i.options[0]);
|
|
1437
1480
|
continue;
|
|
1438
1481
|
case "compact-short":
|
|
1439
1482
|
case "K":
|
|
@@ -1444,13 +1487,13 @@ function xn(e) {
|
|
|
1444
1487
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1445
1488
|
continue;
|
|
1446
1489
|
case "scientific":
|
|
1447
|
-
t =
|
|
1448
|
-
return
|
|
1490
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1491
|
+
return y(y({}, h), pt(u));
|
|
1449
1492
|
}, {}));
|
|
1450
1493
|
continue;
|
|
1451
1494
|
case "engineering":
|
|
1452
|
-
t =
|
|
1453
|
-
return
|
|
1495
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1496
|
+
return y(y({}, h), pt(u));
|
|
1454
1497
|
}, {}));
|
|
1455
1498
|
continue;
|
|
1456
1499
|
case "notation-simple":
|
|
@@ -1495,41 +1538,41 @@ function xn(e) {
|
|
|
1495
1538
|
case "integer-width":
|
|
1496
1539
|
if (i.options.length > 1)
|
|
1497
1540
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1498
|
-
i.options[0].replace(
|
|
1541
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, m) {
|
|
1499
1542
|
if (u)
|
|
1500
1543
|
t.minimumIntegerDigits = l.length;
|
|
1501
1544
|
else {
|
|
1502
1545
|
if (f && c)
|
|
1503
1546
|
throw new Error("We currently do not support maximum integer digits");
|
|
1504
|
-
if (
|
|
1547
|
+
if (m)
|
|
1505
1548
|
throw new Error("We currently do not support exact integer digits");
|
|
1506
1549
|
}
|
|
1507
1550
|
return "";
|
|
1508
1551
|
});
|
|
1509
1552
|
continue;
|
|
1510
1553
|
}
|
|
1511
|
-
if (
|
|
1554
|
+
if (Qt.test(i.stem)) {
|
|
1512
1555
|
t.minimumIntegerDigits = i.stem.length;
|
|
1513
1556
|
continue;
|
|
1514
1557
|
}
|
|
1515
|
-
if (
|
|
1558
|
+
if (ft.test(i.stem)) {
|
|
1516
1559
|
if (i.options.length > 1)
|
|
1517
1560
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1518
|
-
i.stem.replace(
|
|
1519
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1561
|
+
i.stem.replace(ft, function(h, u, l, f, c, m) {
|
|
1562
|
+
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), "";
|
|
1520
1563
|
});
|
|
1521
1564
|
var o = i.options[0];
|
|
1522
|
-
o === "w" ? t =
|
|
1565
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1523
1566
|
continue;
|
|
1524
1567
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
t =
|
|
1568
|
+
if (Zt.test(i.stem)) {
|
|
1569
|
+
t = y(y({}, t), ct(i.stem));
|
|
1527
1570
|
continue;
|
|
1528
1571
|
}
|
|
1529
|
-
var s =
|
|
1530
|
-
s && (t =
|
|
1531
|
-
var a =
|
|
1532
|
-
a && (t =
|
|
1572
|
+
var s = Jt(i.stem);
|
|
1573
|
+
s && (t = y(y({}, t), s));
|
|
1574
|
+
var a = Tn(i.stem);
|
|
1575
|
+
a && (t = y(y({}, t), a));
|
|
1533
1576
|
}
|
|
1534
1577
|
return t;
|
|
1535
1578
|
}
|
|
@@ -2948,13 +2991,13 @@ var se = {
|
|
|
2948
2991
|
"h"
|
|
2949
2992
|
]
|
|
2950
2993
|
};
|
|
2951
|
-
function
|
|
2994
|
+
function An(e, t) {
|
|
2952
2995
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2953
2996
|
var i = e.charAt(n);
|
|
2954
2997
|
if (i === "j") {
|
|
2955
2998
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2956
2999
|
o++, n++;
|
|
2957
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3000
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2958
3001
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2959
3002
|
r += h;
|
|
2960
3003
|
for (; s-- > 0; )
|
|
@@ -2964,7 +3007,7 @@ function Sn(e, t) {
|
|
|
2964
3007
|
}
|
|
2965
3008
|
return r;
|
|
2966
3009
|
}
|
|
2967
|
-
function
|
|
3010
|
+
function Pn(e) {
|
|
2968
3011
|
var t = e.hourCycle;
|
|
2969
3012
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2970
3013
|
e.hourCycles && // @ts-ignore
|
|
@@ -2986,20 +3029,20 @@ function Hn(e) {
|
|
|
2986
3029
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2987
3030
|
return i[0];
|
|
2988
3031
|
}
|
|
2989
|
-
var
|
|
3032
|
+
var Te, On = new RegExp("^".concat(zt.source, "*")), Cn = new RegExp("".concat(zt.source, "*$"));
|
|
2990
3033
|
function d(e, t) {
|
|
2991
3034
|
return { start: e, end: t };
|
|
2992
3035
|
}
|
|
2993
|
-
var
|
|
3036
|
+
var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Nn = !!Object.fromEntries, Mn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Dn = Un ? Number.isSafeInteger : function(e) {
|
|
2994
3037
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2995
|
-
},
|
|
3038
|
+
}, Ge = !0;
|
|
2996
3039
|
try {
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3040
|
+
var Gn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3041
|
+
Ge = ((Te = Gn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2999
3042
|
} catch {
|
|
3000
|
-
|
|
3043
|
+
Ge = !1;
|
|
3001
3044
|
}
|
|
3002
|
-
var
|
|
3045
|
+
var dt = Ln ? (
|
|
3003
3046
|
// Native
|
|
3004
3047
|
function(t, r, n) {
|
|
3005
3048
|
return t.startsWith(r, n);
|
|
@@ -3009,7 +3052,7 @@ var ht = Bn ? (
|
|
|
3009
3052
|
function(t, r, n) {
|
|
3010
3053
|
return t.slice(n, n + r.length) === r;
|
|
3011
3054
|
}
|
|
3012
|
-
),
|
|
3055
|
+
), Fe = In ? String.fromCodePoint : (
|
|
3013
3056
|
// IE11
|
|
3014
3057
|
function() {
|
|
3015
3058
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3021,9 +3064,9 @@ var ht = Bn ? (
|
|
|
3021
3064
|
}
|
|
3022
3065
|
return n;
|
|
3023
3066
|
}
|
|
3024
|
-
),
|
|
3067
|
+
), mt = (
|
|
3025
3068
|
// native
|
|
3026
|
-
|
|
3069
|
+
Nn ? Object.fromEntries : (
|
|
3027
3070
|
// Ponyfill
|
|
3028
3071
|
function(t) {
|
|
3029
3072
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3033,7 +3076,7 @@ var ht = Bn ? (
|
|
|
3033
3076
|
return r;
|
|
3034
3077
|
}
|
|
3035
3078
|
)
|
|
3036
|
-
),
|
|
3079
|
+
), qt = Mn ? (
|
|
3037
3080
|
// Native
|
|
3038
3081
|
function(t, r) {
|
|
3039
3082
|
return t.codePointAt(r);
|
|
@@ -3047,7 +3090,7 @@ var ht = Bn ? (
|
|
|
3047
3090
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3048
3091
|
}
|
|
3049
3092
|
}
|
|
3050
|
-
),
|
|
3093
|
+
), Fn = $n ? (
|
|
3051
3094
|
// Native
|
|
3052
3095
|
function(t) {
|
|
3053
3096
|
return t.trimStart();
|
|
@@ -3055,9 +3098,9 @@ var ht = Bn ? (
|
|
|
3055
3098
|
) : (
|
|
3056
3099
|
// Ponyfill
|
|
3057
3100
|
function(t) {
|
|
3058
|
-
return t.replace(
|
|
3101
|
+
return t.replace(On, "");
|
|
3059
3102
|
}
|
|
3060
|
-
),
|
|
3103
|
+
), jn = Rn ? (
|
|
3061
3104
|
// Native
|
|
3062
3105
|
function(t) {
|
|
3063
3106
|
return t.trimEnd();
|
|
@@ -3065,32 +3108,32 @@ var ht = Bn ? (
|
|
|
3065
3108
|
) : (
|
|
3066
3109
|
// Ponyfill
|
|
3067
3110
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Cn, "");
|
|
3069
3112
|
}
|
|
3070
3113
|
);
|
|
3071
|
-
function
|
|
3114
|
+
function Yt(e, t) {
|
|
3072
3115
|
return new RegExp(e, t);
|
|
3073
3116
|
}
|
|
3074
|
-
var
|
|
3075
|
-
if (
|
|
3076
|
-
var
|
|
3077
|
-
|
|
3117
|
+
var je;
|
|
3118
|
+
if (Ge) {
|
|
3119
|
+
var bt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3120
|
+
je = function(t, r) {
|
|
3078
3121
|
var n;
|
|
3079
|
-
|
|
3080
|
-
var i =
|
|
3122
|
+
bt.lastIndex = r;
|
|
3123
|
+
var i = bt.exec(t);
|
|
3081
3124
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3082
3125
|
};
|
|
3083
3126
|
} else
|
|
3084
|
-
|
|
3127
|
+
je = function(t, r) {
|
|
3085
3128
|
for (var n = []; ; ) {
|
|
3086
|
-
var i =
|
|
3087
|
-
if (i === void 0 ||
|
|
3129
|
+
var i = qt(t, r);
|
|
3130
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3088
3131
|
break;
|
|
3089
3132
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3090
3133
|
}
|
|
3091
|
-
return
|
|
3134
|
+
return Fe.apply(void 0, n);
|
|
3092
3135
|
};
|
|
3093
|
-
var
|
|
3136
|
+
var Vn = (
|
|
3094
3137
|
/** @class */
|
|
3095
3138
|
function() {
|
|
3096
3139
|
function e(t, r) {
|
|
@@ -3114,14 +3157,14 @@ var Un = (
|
|
|
3114
3157
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3115
3158
|
var a = this.clonePosition();
|
|
3116
3159
|
this.bump(), i.push({
|
|
3117
|
-
type:
|
|
3160
|
+
type: g.pound,
|
|
3118
3161
|
location: d(a, this.clonePosition())
|
|
3119
3162
|
});
|
|
3120
3163
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3121
3164
|
if (n)
|
|
3122
3165
|
break;
|
|
3123
3166
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3124
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3167
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3125
3168
|
var s = this.parseTag(t, r);
|
|
3126
3169
|
if (s.err)
|
|
3127
3170
|
return s;
|
|
@@ -3142,7 +3185,7 @@ var Un = (
|
|
|
3142
3185
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3143
3186
|
return {
|
|
3144
3187
|
val: {
|
|
3145
|
-
type:
|
|
3188
|
+
type: g.literal,
|
|
3146
3189
|
value: "<".concat(i, "/>"),
|
|
3147
3190
|
location: d(n, this.clonePosition())
|
|
3148
3191
|
},
|
|
@@ -3154,12 +3197,12 @@ var Un = (
|
|
|
3154
3197
|
return o;
|
|
3155
3198
|
var s = o.val, a = this.clonePosition();
|
|
3156
3199
|
if (this.bumpIf("</")) {
|
|
3157
|
-
if (this.isEOF() || !
|
|
3200
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3158
3201
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3159
3202
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3160
3203
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3161
3204
|
val: {
|
|
3162
|
-
type:
|
|
3205
|
+
type: g.tag,
|
|
3163
3206
|
value: i,
|
|
3164
3207
|
children: s,
|
|
3165
3208
|
location: d(n, this.clonePosition())
|
|
@@ -3172,7 +3215,7 @@ var Un = (
|
|
|
3172
3215
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3173
3216
|
}, e.prototype.parseTagName = function() {
|
|
3174
3217
|
var t = this.offset();
|
|
3175
|
-
for (this.bump(); !this.isEOF() &&
|
|
3218
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3176
3219
|
this.bump();
|
|
3177
3220
|
return this.message.slice(t, this.offset());
|
|
3178
3221
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3196,12 +3239,12 @@ var Un = (
|
|
|
3196
3239
|
}
|
|
3197
3240
|
var h = d(n, this.clonePosition());
|
|
3198
3241
|
return {
|
|
3199
|
-
val: { type:
|
|
3242
|
+
val: { type: g.literal, value: i, location: h },
|
|
3200
3243
|
err: null
|
|
3201
3244
|
};
|
|
3202
3245
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3203
3246
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3204
|
-
!
|
|
3247
|
+
!kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3205
3248
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3206
3249
|
if (this.isEOF() || this.char() !== 39)
|
|
3207
3250
|
return null;
|
|
@@ -3235,12 +3278,12 @@ var Un = (
|
|
|
3235
3278
|
r.push(n);
|
|
3236
3279
|
this.bump();
|
|
3237
3280
|
}
|
|
3238
|
-
return
|
|
3281
|
+
return Fe.apply(void 0, r);
|
|
3239
3282
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3240
3283
|
if (this.isEOF())
|
|
3241
3284
|
return null;
|
|
3242
3285
|
var n = this.char();
|
|
3243
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3286
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3244
3287
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3245
3288
|
var n = this.clonePosition();
|
|
3246
3289
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3256,7 +3299,7 @@ var Un = (
|
|
|
3256
3299
|
case 125:
|
|
3257
3300
|
return this.bump(), {
|
|
3258
3301
|
val: {
|
|
3259
|
-
type:
|
|
3302
|
+
type: g.argument,
|
|
3260
3303
|
// value does not include the opening and closing braces.
|
|
3261
3304
|
value: i,
|
|
3262
3305
|
location: d(n, this.clonePosition())
|
|
@@ -3269,7 +3312,7 @@ var Un = (
|
|
|
3269
3312
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3270
3313
|
}
|
|
3271
3314
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3272
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3315
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3273
3316
|
this.bumpTo(i);
|
|
3274
3317
|
var o = this.clonePosition(), s = d(t, o);
|
|
3275
3318
|
return { value: n, location: s };
|
|
@@ -3288,46 +3331,46 @@ var Un = (
|
|
|
3288
3331
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3289
3332
|
if (f.err)
|
|
3290
3333
|
return f;
|
|
3291
|
-
var c =
|
|
3334
|
+
var c = jn(f.val);
|
|
3292
3335
|
if (c.length === 0)
|
|
3293
3336
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3294
|
-
var
|
|
3295
|
-
u = { style: c, styleLocation:
|
|
3337
|
+
var m = d(l, this.clonePosition());
|
|
3338
|
+
u = { style: c, styleLocation: m };
|
|
3296
3339
|
}
|
|
3297
|
-
var
|
|
3298
|
-
if (
|
|
3299
|
-
return
|
|
3300
|
-
var
|
|
3301
|
-
if (u &&
|
|
3302
|
-
var
|
|
3340
|
+
var v = this.tryParseArgumentClose(i);
|
|
3341
|
+
if (v.err)
|
|
3342
|
+
return v;
|
|
3343
|
+
var b = d(i, this.clonePosition());
|
|
3344
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3345
|
+
var w = Fn(u.style.slice(2));
|
|
3303
3346
|
if (a === "number") {
|
|
3304
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3347
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3305
3348
|
return f.err ? f : {
|
|
3306
|
-
val: { type:
|
|
3349
|
+
val: { type: g.number, value: n, location: b, style: f.val },
|
|
3307
3350
|
err: null
|
|
3308
3351
|
};
|
|
3309
3352
|
} else {
|
|
3310
|
-
if (
|
|
3311
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3312
|
-
var E =
|
|
3313
|
-
this.locale && (E =
|
|
3353
|
+
if (w.length === 0)
|
|
3354
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3355
|
+
var E = w;
|
|
3356
|
+
this.locale && (E = An(w, this.locale));
|
|
3314
3357
|
var c = {
|
|
3315
|
-
type:
|
|
3358
|
+
type: G.dateTime,
|
|
3316
3359
|
pattern: E,
|
|
3317
3360
|
location: u.styleLocation,
|
|
3318
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3319
|
-
}, I = a === "date" ?
|
|
3361
|
+
parsedOptions: this.shouldParseSkeletons ? En(E) : {}
|
|
3362
|
+
}, I = a === "date" ? g.date : g.time;
|
|
3320
3363
|
return {
|
|
3321
|
-
val: { type: I, value: n, location:
|
|
3364
|
+
val: { type: I, value: n, location: b, style: c },
|
|
3322
3365
|
err: null
|
|
3323
3366
|
};
|
|
3324
3367
|
}
|
|
3325
3368
|
}
|
|
3326
3369
|
return {
|
|
3327
3370
|
val: {
|
|
3328
|
-
type: a === "number" ?
|
|
3371
|
+
type: a === "number" ? g.number : a === "date" ? g.date : g.time,
|
|
3329
3372
|
value: n,
|
|
3330
|
-
location:
|
|
3373
|
+
location: b,
|
|
3331
3374
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3332
3375
|
},
|
|
3333
3376
|
err: null
|
|
@@ -3336,43 +3379,43 @@ var Un = (
|
|
|
3336
3379
|
case "plural":
|
|
3337
3380
|
case "selectordinal":
|
|
3338
3381
|
case "select": {
|
|
3339
|
-
var
|
|
3382
|
+
var H = this.clonePosition();
|
|
3340
3383
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3341
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3384
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(H, ce({}, H)));
|
|
3342
3385
|
this.bumpSpace();
|
|
3343
|
-
var
|
|
3344
|
-
if (a !== "select" &&
|
|
3386
|
+
var W = this.parseIdentifierIfPossible(), O = 0;
|
|
3387
|
+
if (a !== "select" && W.value === "offset") {
|
|
3345
3388
|
if (!this.bumpIf(":"))
|
|
3346
3389
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3347
3390
|
this.bumpSpace();
|
|
3348
3391
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3349
3392
|
if (f.err)
|
|
3350
3393
|
return f;
|
|
3351
|
-
this.bumpSpace(),
|
|
3394
|
+
this.bumpSpace(), W = this.parseIdentifierIfPossible(), O = f.val;
|
|
3352
3395
|
}
|
|
3353
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3396
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, W);
|
|
3354
3397
|
if (ne.err)
|
|
3355
3398
|
return ne;
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var
|
|
3399
|
+
var v = this.tryParseArgumentClose(i);
|
|
3400
|
+
if (v.err)
|
|
3401
|
+
return v;
|
|
3402
|
+
var Je = d(i, this.clonePosition());
|
|
3360
3403
|
return a === "select" ? {
|
|
3361
3404
|
val: {
|
|
3362
|
-
type:
|
|
3405
|
+
type: g.select,
|
|
3363
3406
|
value: n,
|
|
3364
|
-
options:
|
|
3365
|
-
location:
|
|
3407
|
+
options: mt(ne.val),
|
|
3408
|
+
location: Je
|
|
3366
3409
|
},
|
|
3367
3410
|
err: null
|
|
3368
3411
|
} : {
|
|
3369
3412
|
val: {
|
|
3370
|
-
type:
|
|
3413
|
+
type: g.plural,
|
|
3371
3414
|
value: n,
|
|
3372
|
-
options:
|
|
3373
|
-
offset:
|
|
3415
|
+
options: mt(ne.val),
|
|
3416
|
+
offset: O,
|
|
3374
3417
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3375
|
-
location:
|
|
3418
|
+
location: Je
|
|
3376
3419
|
},
|
|
3377
3420
|
err: null
|
|
3378
3421
|
};
|
|
@@ -3420,16 +3463,16 @@ var Un = (
|
|
|
3420
3463
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3421
3464
|
var n = [];
|
|
3422
3465
|
try {
|
|
3423
|
-
n =
|
|
3466
|
+
n = Sn(t);
|
|
3424
3467
|
} catch {
|
|
3425
3468
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3426
3469
|
}
|
|
3427
3470
|
return {
|
|
3428
3471
|
val: {
|
|
3429
|
-
type:
|
|
3472
|
+
type: G.number,
|
|
3430
3473
|
tokens: n,
|
|
3431
3474
|
location: r,
|
|
3432
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3475
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3433
3476
|
},
|
|
3434
3477
|
err: null
|
|
3435
3478
|
};
|
|
@@ -3448,20 +3491,20 @@ var Un = (
|
|
|
3448
3491
|
if (h.has(u))
|
|
3449
3492
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3450
3493
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3451
|
-
var
|
|
3494
|
+
var m = this.clonePosition();
|
|
3452
3495
|
if (!this.bumpIf("{"))
|
|
3453
3496
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3454
|
-
var
|
|
3455
|
-
if (g.err)
|
|
3456
|
-
return g;
|
|
3457
|
-
var v = this.tryParseArgumentClose(b);
|
|
3497
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3458
3498
|
if (v.err)
|
|
3459
3499
|
return v;
|
|
3500
|
+
var b = this.tryParseArgumentClose(m);
|
|
3501
|
+
if (b.err)
|
|
3502
|
+
return b;
|
|
3460
3503
|
a.push([
|
|
3461
3504
|
u,
|
|
3462
3505
|
{
|
|
3463
|
-
value:
|
|
3464
|
-
location: d(
|
|
3506
|
+
value: v.val,
|
|
3507
|
+
location: d(m, this.clonePosition())
|
|
3465
3508
|
}
|
|
3466
3509
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3467
3510
|
}
|
|
@@ -3477,7 +3520,7 @@ var Un = (
|
|
|
3477
3520
|
break;
|
|
3478
3521
|
}
|
|
3479
3522
|
var h = d(i, this.clonePosition());
|
|
3480
|
-
return o ? (s *= n,
|
|
3523
|
+
return o ? (s *= n, Dn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3481
3524
|
}, e.prototype.offset = function() {
|
|
3482
3525
|
return this.position.offset;
|
|
3483
3526
|
}, e.prototype.isEOF = function() {
|
|
@@ -3492,7 +3535,7 @@ var Un = (
|
|
|
3492
3535
|
var t = this.position.offset;
|
|
3493
3536
|
if (t >= this.message.length)
|
|
3494
3537
|
throw Error("out of bound");
|
|
3495
|
-
var r =
|
|
3538
|
+
var r = qt(this.message, t);
|
|
3496
3539
|
if (r === void 0)
|
|
3497
3540
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3498
3541
|
return r;
|
|
@@ -3511,7 +3554,7 @@ var Un = (
|
|
|
3511
3554
|
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);
|
|
3512
3555
|
}
|
|
3513
3556
|
}, e.prototype.bumpIf = function(t) {
|
|
3514
|
-
if (
|
|
3557
|
+
if (dt(this.message, t, this.offset())) {
|
|
3515
3558
|
for (var r = 0; r < t.length; r++)
|
|
3516
3559
|
this.bump();
|
|
3517
3560
|
return !0;
|
|
@@ -3533,7 +3576,7 @@ var Un = (
|
|
|
3533
3576
|
break;
|
|
3534
3577
|
}
|
|
3535
3578
|
}, e.prototype.bumpSpace = function() {
|
|
3536
|
-
for (; !this.isEOF() &&
|
|
3579
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3537
3580
|
this.bump();
|
|
3538
3581
|
}, e.prototype.peek = function() {
|
|
3539
3582
|
if (this.isEOF())
|
|
@@ -3543,47 +3586,47 @@ var Un = (
|
|
|
3543
3586
|
}, e;
|
|
3544
3587
|
}()
|
|
3545
3588
|
);
|
|
3546
|
-
function
|
|
3589
|
+
function Ve(e) {
|
|
3547
3590
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3548
3591
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3592
|
+
function kn(e) {
|
|
3593
|
+
return Ve(e) || e === 47;
|
|
3551
3594
|
}
|
|
3552
|
-
function
|
|
3595
|
+
function Xn(e) {
|
|
3553
3596
|
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;
|
|
3554
3597
|
}
|
|
3555
|
-
function
|
|
3598
|
+
function Kt(e) {
|
|
3556
3599
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3557
3600
|
}
|
|
3558
|
-
function
|
|
3601
|
+
function Wn(e) {
|
|
3559
3602
|
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;
|
|
3560
3603
|
}
|
|
3561
|
-
function
|
|
3604
|
+
function ke(e) {
|
|
3562
3605
|
e.forEach(function(t) {
|
|
3563
|
-
if (delete t.location,
|
|
3606
|
+
if (delete t.location, Vt(t) || kt(t))
|
|
3564
3607
|
for (var r in t.options)
|
|
3565
|
-
delete t.options[r].location,
|
|
3608
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3566
3609
|
else
|
|
3567
|
-
|
|
3610
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && De(t.style) ? delete t.style.location : Xt(t) && ke(t.children);
|
|
3568
3611
|
});
|
|
3569
3612
|
}
|
|
3570
|
-
function
|
|
3571
|
-
t === void 0 && (t = {}), t =
|
|
3572
|
-
var r = new
|
|
3613
|
+
function zn(e, t) {
|
|
3614
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3615
|
+
var r = new Vn(e, t).parse();
|
|
3573
3616
|
if (r.err) {
|
|
3574
3617
|
var n = SyntaxError(p[r.err.kind]);
|
|
3575
3618
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3576
3619
|
}
|
|
3577
|
-
return t?.captureLocation ||
|
|
3620
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3578
3621
|
}
|
|
3579
|
-
var
|
|
3622
|
+
var F;
|
|
3580
3623
|
(function(e) {
|
|
3581
3624
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3582
|
-
})(
|
|
3583
|
-
var
|
|
3625
|
+
})(F || (F = {}));
|
|
3626
|
+
var ge = (
|
|
3584
3627
|
/** @class */
|
|
3585
3628
|
function(e) {
|
|
3586
|
-
|
|
3629
|
+
ve(t, e);
|
|
3587
3630
|
function t(r, n, i) {
|
|
3588
3631
|
var o = e.call(this, r) || this;
|
|
3589
3632
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3592,48 +3635,48 @@ var be = (
|
|
|
3592
3635
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3593
3636
|
}, t;
|
|
3594
3637
|
}(Error)
|
|
3595
|
-
),
|
|
3638
|
+
), vt = (
|
|
3596
3639
|
/** @class */
|
|
3597
3640
|
function(e) {
|
|
3598
|
-
|
|
3641
|
+
ve(t, e);
|
|
3599
3642
|
function t(r, n, i, o) {
|
|
3600
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3643
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, o) || this;
|
|
3601
3644
|
}
|
|
3602
3645
|
return t;
|
|
3603
|
-
}(
|
|
3604
|
-
),
|
|
3646
|
+
}(ge)
|
|
3647
|
+
), Zn = (
|
|
3605
3648
|
/** @class */
|
|
3606
3649
|
function(e) {
|
|
3607
|
-
|
|
3650
|
+
ve(t, e);
|
|
3608
3651
|
function t(r, n, i) {
|
|
3609
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3652
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3610
3653
|
}
|
|
3611
3654
|
return t;
|
|
3612
|
-
}(
|
|
3613
|
-
),
|
|
3655
|
+
}(ge)
|
|
3656
|
+
), Qn = (
|
|
3614
3657
|
/** @class */
|
|
3615
3658
|
function(e) {
|
|
3616
|
-
|
|
3659
|
+
ve(t, e);
|
|
3617
3660
|
function t(r, n) {
|
|
3618
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3661
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3619
3662
|
}
|
|
3620
3663
|
return t;
|
|
3621
|
-
}(
|
|
3664
|
+
}(ge)
|
|
3622
3665
|
), x;
|
|
3623
3666
|
(function(e) {
|
|
3624
3667
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3625
3668
|
})(x || (x = {}));
|
|
3626
|
-
function
|
|
3669
|
+
function Jn(e) {
|
|
3627
3670
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3628
3671
|
var n = t[t.length - 1];
|
|
3629
3672
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3630
3673
|
}, []);
|
|
3631
3674
|
}
|
|
3632
|
-
function
|
|
3675
|
+
function qn(e) {
|
|
3633
3676
|
return typeof e == "function";
|
|
3634
3677
|
}
|
|
3635
3678
|
function he(e, t, r, n, i, o, s) {
|
|
3636
|
-
if (e.length === 1 &&
|
|
3679
|
+
if (e.length === 1 && lt(e[0]))
|
|
3637
3680
|
return [
|
|
3638
3681
|
{
|
|
3639
3682
|
type: x.literal,
|
|
@@ -3642,14 +3685,14 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3642
3685
|
];
|
|
3643
3686
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3644
3687
|
var l = u[h];
|
|
3645
|
-
if (
|
|
3688
|
+
if (lt(l)) {
|
|
3646
3689
|
a.push({
|
|
3647
3690
|
type: x.literal,
|
|
3648
3691
|
value: l.value
|
|
3649
3692
|
});
|
|
3650
3693
|
continue;
|
|
3651
3694
|
}
|
|
3652
|
-
if (
|
|
3695
|
+
if (yn(l)) {
|
|
3653
3696
|
typeof o == "number" && a.push({
|
|
3654
3697
|
type: x.literal,
|
|
3655
3698
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3658,89 +3701,89 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3658
3701
|
}
|
|
3659
3702
|
var f = l.value;
|
|
3660
3703
|
if (!(i && f in i))
|
|
3661
|
-
throw new
|
|
3704
|
+
throw new Qn(f, s);
|
|
3662
3705
|
var c = i[f];
|
|
3663
|
-
if (
|
|
3706
|
+
if (gn(l)) {
|
|
3664
3707
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3665
3708
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3666
3709
|
value: c
|
|
3667
3710
|
});
|
|
3668
3711
|
continue;
|
|
3669
3712
|
}
|
|
3670
|
-
if (
|
|
3671
|
-
var
|
|
3713
|
+
if (Ft(l)) {
|
|
3714
|
+
var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3672
3715
|
a.push({
|
|
3673
3716
|
type: x.literal,
|
|
3674
|
-
value: r.getDateTimeFormat(t,
|
|
3717
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3675
3718
|
});
|
|
3676
3719
|
continue;
|
|
3677
3720
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
var
|
|
3721
|
+
if (jt(l)) {
|
|
3722
|
+
var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3680
3723
|
a.push({
|
|
3681
3724
|
type: x.literal,
|
|
3682
|
-
value: r.getDateTimeFormat(t,
|
|
3725
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3683
3726
|
});
|
|
3684
3727
|
continue;
|
|
3685
3728
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var
|
|
3688
|
-
|
|
3729
|
+
if (Gt(l)) {
|
|
3730
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3731
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3689
3732
|
type: x.literal,
|
|
3690
|
-
value: r.getNumberFormat(t,
|
|
3733
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3691
3734
|
});
|
|
3692
3735
|
continue;
|
|
3693
3736
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3696
|
-
if (!
|
|
3697
|
-
throw new
|
|
3698
|
-
var E = he(
|
|
3699
|
-
return
|
|
3737
|
+
if (Xt(l)) {
|
|
3738
|
+
var v = l.children, b = l.value, w = i[b];
|
|
3739
|
+
if (!qn(w))
|
|
3740
|
+
throw new Zn(b, "function", s);
|
|
3741
|
+
var E = he(v, t, r, n, i, o), I = w(E.map(function(O) {
|
|
3742
|
+
return O.value;
|
|
3700
3743
|
}));
|
|
3701
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3744
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(O) {
|
|
3702
3745
|
return {
|
|
3703
|
-
type: typeof
|
|
3704
|
-
value:
|
|
3746
|
+
type: typeof O == "string" ? x.literal : x.object,
|
|
3747
|
+
value: O
|
|
3705
3748
|
};
|
|
3706
3749
|
}));
|
|
3707
3750
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var
|
|
3710
|
-
if (!
|
|
3711
|
-
throw new
|
|
3712
|
-
a.push.apply(a, he(
|
|
3751
|
+
if (Vt(l)) {
|
|
3752
|
+
var H = l.options[c] || l.options.other;
|
|
3753
|
+
if (!H)
|
|
3754
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3755
|
+
a.push.apply(a, he(H.value, t, r, n, i));
|
|
3713
3756
|
continue;
|
|
3714
3757
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3717
|
-
if (!
|
|
3758
|
+
if (kt(l)) {
|
|
3759
|
+
var H = l.options["=".concat(c)];
|
|
3760
|
+
if (!H) {
|
|
3718
3761
|
if (!Intl.PluralRules)
|
|
3719
|
-
throw new
|
|
3762
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3720
3763
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3721
|
-
`,
|
|
3722
|
-
var
|
|
3723
|
-
|
|
3764
|
+
`, F.MISSING_INTL_API, s);
|
|
3765
|
+
var W = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3766
|
+
H = l.options[W] || l.options.other;
|
|
3724
3767
|
}
|
|
3725
|
-
if (!
|
|
3726
|
-
throw new
|
|
3727
|
-
a.push.apply(a, he(
|
|
3768
|
+
if (!H)
|
|
3769
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3770
|
+
a.push.apply(a, he(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3728
3771
|
continue;
|
|
3729
3772
|
}
|
|
3730
3773
|
}
|
|
3731
|
-
return
|
|
3774
|
+
return Jn(a);
|
|
3732
3775
|
}
|
|
3733
|
-
function
|
|
3734
|
-
return t ?
|
|
3735
|
-
return r[n] =
|
|
3776
|
+
function Yn(e, t) {
|
|
3777
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3778
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3736
3779
|
}, {})) : e;
|
|
3737
3780
|
}
|
|
3738
|
-
function
|
|
3781
|
+
function Kn(e, t) {
|
|
3739
3782
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3740
|
-
return r[n] =
|
|
3741
|
-
},
|
|
3783
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3784
|
+
}, T({}, e)) : e;
|
|
3742
3785
|
}
|
|
3743
|
-
function
|
|
3786
|
+
function Be(e) {
|
|
3744
3787
|
return {
|
|
3745
3788
|
create: function() {
|
|
3746
3789
|
return {
|
|
@@ -3754,39 +3797,39 @@ function He(e) {
|
|
|
3754
3797
|
}
|
|
3755
3798
|
};
|
|
3756
3799
|
}
|
|
3757
|
-
function
|
|
3800
|
+
function ei(e) {
|
|
3758
3801
|
return e === void 0 && (e = {
|
|
3759
3802
|
number: {},
|
|
3760
3803
|
dateTime: {},
|
|
3761
3804
|
pluralRules: {}
|
|
3762
3805
|
}), {
|
|
3763
|
-
getNumberFormat:
|
|
3806
|
+
getNumberFormat: we(function() {
|
|
3764
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3765
3808
|
r[n] = arguments[n];
|
|
3766
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3767
3810
|
}, {
|
|
3768
|
-
cache:
|
|
3769
|
-
strategy:
|
|
3811
|
+
cache: Be(e.number),
|
|
3812
|
+
strategy: He.variadic
|
|
3770
3813
|
}),
|
|
3771
|
-
getDateTimeFormat:
|
|
3814
|
+
getDateTimeFormat: we(function() {
|
|
3772
3815
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3773
3816
|
r[n] = arguments[n];
|
|
3774
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3817
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3775
3818
|
}, {
|
|
3776
|
-
cache:
|
|
3777
|
-
strategy:
|
|
3819
|
+
cache: Be(e.dateTime),
|
|
3820
|
+
strategy: He.variadic
|
|
3778
3821
|
}),
|
|
3779
|
-
getPluralRules:
|
|
3822
|
+
getPluralRules: we(function() {
|
|
3780
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3824
|
r[n] = arguments[n];
|
|
3782
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3783
3826
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3827
|
+
cache: Be(e.pluralRules),
|
|
3828
|
+
strategy: He.variadic
|
|
3786
3829
|
})
|
|
3787
3830
|
};
|
|
3788
3831
|
}
|
|
3789
|
-
var
|
|
3832
|
+
var ti = (
|
|
3790
3833
|
/** @class */
|
|
3791
3834
|
function() {
|
|
3792
3835
|
function e(t, r, n, i) {
|
|
@@ -3818,13 +3861,13 @@ var Jn = (
|
|
|
3818
3861
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3819
3862
|
var s = i || {};
|
|
3820
3863
|
s.formatters;
|
|
3821
|
-
var a =
|
|
3822
|
-
this.ast = e.__parse(t,
|
|
3864
|
+
var a = ln(s, ["formatters"]);
|
|
3865
|
+
this.ast = e.__parse(t, T(T({}, a), { locale: this.resolvedLocale }));
|
|
3823
3866
|
} else
|
|
3824
3867
|
this.ast = t;
|
|
3825
3868
|
if (!Array.isArray(this.ast))
|
|
3826
3869
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3827
|
-
this.formats =
|
|
3870
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3828
3871
|
}
|
|
3829
3872
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3830
3873
|
get: function() {
|
|
@@ -3837,7 +3880,7 @@ var Jn = (
|
|
|
3837
3880
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3838
3881
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3839
3882
|
}
|
|
3840
|
-
}, e.__parse =
|
|
3883
|
+
}, e.__parse = zn, e.formats = {
|
|
3841
3884
|
number: {
|
|
3842
3885
|
integer: {
|
|
3843
3886
|
maximumFractionDigits: 0
|
|
@@ -3898,7 +3941,7 @@ var Jn = (
|
|
|
3898
3941
|
}, e;
|
|
3899
3942
|
}()
|
|
3900
3943
|
);
|
|
3901
|
-
function
|
|
3944
|
+
function ri(e, t) {
|
|
3902
3945
|
if (t == null)
|
|
3903
3946
|
return;
|
|
3904
3947
|
if (t in e)
|
|
@@ -3919,92 +3962,92 @@ function qn(e, t) {
|
|
|
3919
3962
|
n = void 0;
|
|
3920
3963
|
return n;
|
|
3921
3964
|
}
|
|
3922
|
-
const P = {},
|
|
3965
|
+
const P = {}, ni = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), er = (e, t) => {
|
|
3923
3966
|
if (t == null)
|
|
3924
3967
|
return;
|
|
3925
3968
|
if (t in P && e in P[t])
|
|
3926
3969
|
return P[t][e];
|
|
3927
|
-
const r =
|
|
3970
|
+
const r = ye(t);
|
|
3928
3971
|
for (let n = 0; n < r.length; n++) {
|
|
3929
|
-
const i = r[n], o =
|
|
3972
|
+
const i = r[n], o = oi(i, e);
|
|
3930
3973
|
if (o)
|
|
3931
|
-
return
|
|
3974
|
+
return ni(e, t, o);
|
|
3932
3975
|
}
|
|
3933
3976
|
};
|
|
3934
|
-
let
|
|
3935
|
-
const te =
|
|
3936
|
-
function
|
|
3937
|
-
return
|
|
3977
|
+
let Ze;
|
|
3978
|
+
const te = be({});
|
|
3979
|
+
function ii(e) {
|
|
3980
|
+
return Ze[e] || null;
|
|
3938
3981
|
}
|
|
3939
|
-
function
|
|
3940
|
-
return e in
|
|
3982
|
+
function tr(e) {
|
|
3983
|
+
return e in Ze;
|
|
3941
3984
|
}
|
|
3942
|
-
function
|
|
3943
|
-
if (!
|
|
3985
|
+
function oi(e, t) {
|
|
3986
|
+
if (!tr(e))
|
|
3944
3987
|
return null;
|
|
3945
|
-
const r =
|
|
3946
|
-
return
|
|
3988
|
+
const r = ii(e);
|
|
3989
|
+
return ri(r, t);
|
|
3947
3990
|
}
|
|
3948
|
-
function
|
|
3991
|
+
function si(e) {
|
|
3949
3992
|
if (e == null)
|
|
3950
3993
|
return;
|
|
3951
|
-
const t =
|
|
3994
|
+
const t = ye(e);
|
|
3952
3995
|
for (let r = 0; r < t.length; r++) {
|
|
3953
3996
|
const n = t[r];
|
|
3954
|
-
if (
|
|
3997
|
+
if (tr(n))
|
|
3955
3998
|
return n;
|
|
3956
3999
|
}
|
|
3957
4000
|
}
|
|
3958
|
-
function
|
|
3959
|
-
delete P[e], te.update((r) => (r[e] =
|
|
4001
|
+
function ai(e, ...t) {
|
|
4002
|
+
delete P[e], te.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
3960
4003
|
}
|
|
3961
|
-
|
|
4004
|
+
k(
|
|
3962
4005
|
[te],
|
|
3963
4006
|
([e]) => Object.keys(e)
|
|
3964
4007
|
);
|
|
3965
|
-
te.subscribe((e) =>
|
|
4008
|
+
te.subscribe((e) => Ze = e);
|
|
3966
4009
|
const le = {};
|
|
3967
|
-
function
|
|
4010
|
+
function ui(e, t) {
|
|
3968
4011
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3969
4012
|
}
|
|
3970
|
-
function
|
|
4013
|
+
function rr(e) {
|
|
3971
4014
|
return le[e];
|
|
3972
4015
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return
|
|
3975
|
-
const r =
|
|
4016
|
+
function hi(e) {
|
|
4017
|
+
return ye(e).map((t) => {
|
|
4018
|
+
const r = rr(t);
|
|
3976
4019
|
return [t, r ? [...r] : []];
|
|
3977
4020
|
}).filter(([, t]) => t.length > 0);
|
|
3978
4021
|
}
|
|
3979
|
-
function
|
|
3980
|
-
return e == null ? !1 :
|
|
4022
|
+
function Xe(e) {
|
|
4023
|
+
return e == null ? !1 : ye(e).some(
|
|
3981
4024
|
(t) => {
|
|
3982
4025
|
var r;
|
|
3983
|
-
return (r =
|
|
4026
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3984
4027
|
}
|
|
3985
4028
|
);
|
|
3986
4029
|
}
|
|
3987
|
-
function
|
|
4030
|
+
function li(e, t) {
|
|
3988
4031
|
return Promise.all(
|
|
3989
|
-
t.map((n) => (
|
|
3990
|
-
).then((n) =>
|
|
3991
|
-
}
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3995
|
-
return e in
|
|
3996
|
-
const t =
|
|
3997
|
-
return
|
|
4032
|
+
t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
|
|
4033
|
+
).then((n) => ai(e, ...n));
|
|
4034
|
+
}
|
|
4035
|
+
const z = {};
|
|
4036
|
+
function nr(e) {
|
|
4037
|
+
if (!Xe(e))
|
|
4038
|
+
return e in z ? z[e] : Promise.resolve();
|
|
4039
|
+
const t = hi(e);
|
|
4040
|
+
return z[e] = Promise.all(
|
|
3998
4041
|
t.map(
|
|
3999
|
-
([r, n]) =>
|
|
4042
|
+
([r, n]) => li(r, n)
|
|
4000
4043
|
)
|
|
4001
4044
|
).then(() => {
|
|
4002
|
-
if (
|
|
4003
|
-
return
|
|
4004
|
-
delete
|
|
4005
|
-
}),
|
|
4045
|
+
if (Xe(e))
|
|
4046
|
+
return nr(e);
|
|
4047
|
+
delete z[e];
|
|
4048
|
+
}), z[e];
|
|
4006
4049
|
}
|
|
4007
|
-
const
|
|
4050
|
+
const fi = {
|
|
4008
4051
|
number: {
|
|
4009
4052
|
scientific: { notation: "scientific" },
|
|
4010
4053
|
engineering: { notation: "engineering" },
|
|
@@ -4033,135 +4076,135 @@ const si = {
|
|
|
4033
4076
|
timeZoneName: "short"
|
|
4034
4077
|
}
|
|
4035
4078
|
}
|
|
4036
|
-
},
|
|
4079
|
+
}, ci = {
|
|
4037
4080
|
fallbackLocale: null,
|
|
4038
4081
|
loadingDelay: 200,
|
|
4039
|
-
formats:
|
|
4082
|
+
formats: fi,
|
|
4040
4083
|
warnOnMissingMessages: !0,
|
|
4041
4084
|
handleMissingMessage: void 0,
|
|
4042
4085
|
ignoreTag: !0
|
|
4043
|
-
},
|
|
4044
|
-
function
|
|
4045
|
-
return
|
|
4086
|
+
}, pi = ci;
|
|
4087
|
+
function j() {
|
|
4088
|
+
return pi;
|
|
4046
4089
|
}
|
|
4047
|
-
const
|
|
4048
|
-
var
|
|
4090
|
+
const Ae = be(!1);
|
|
4091
|
+
var di = Object.defineProperty, mi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4049
4092
|
for (var r in t || (t = {}))
|
|
4050
|
-
|
|
4051
|
-
if (
|
|
4052
|
-
for (var r of
|
|
4053
|
-
|
|
4093
|
+
vi.call(t, r) && yt(e, r, t[r]);
|
|
4094
|
+
if (gt)
|
|
4095
|
+
for (var r of gt(t))
|
|
4096
|
+
gi.call(t, r) && yt(e, r, t[r]);
|
|
4054
4097
|
return e;
|
|
4055
|
-
},
|
|
4056
|
-
let
|
|
4057
|
-
const
|
|
4058
|
-
function
|
|
4098
|
+
}, _i = (e, t) => mi(e, bi(t));
|
|
4099
|
+
let We;
|
|
4100
|
+
const pe = be(null);
|
|
4101
|
+
function _t(e) {
|
|
4059
4102
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4060
4103
|
}
|
|
4061
|
-
function
|
|
4062
|
-
const r =
|
|
4063
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4104
|
+
function ye(e, t = j().fallbackLocale) {
|
|
4105
|
+
const r = _t(e);
|
|
4106
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4064
4107
|
}
|
|
4065
4108
|
function L() {
|
|
4066
|
-
return
|
|
4109
|
+
return We ?? void 0;
|
|
4067
4110
|
}
|
|
4068
|
-
|
|
4069
|
-
|
|
4111
|
+
pe.subscribe((e) => {
|
|
4112
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4070
4113
|
});
|
|
4071
|
-
const
|
|
4072
|
-
if (e &&
|
|
4073
|
-
const { loadingDelay: t } =
|
|
4114
|
+
const Ei = (e) => {
|
|
4115
|
+
if (e && si(e) && Xe(e)) {
|
|
4116
|
+
const { loadingDelay: t } = j();
|
|
4074
4117
|
let r;
|
|
4075
4118
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4076
|
-
() =>
|
|
4119
|
+
() => Ae.set(!0),
|
|
4077
4120
|
t
|
|
4078
|
-
) :
|
|
4079
|
-
|
|
4121
|
+
) : Ae.set(!0), nr(e).then(() => {
|
|
4122
|
+
pe.set(e);
|
|
4080
4123
|
}).finally(() => {
|
|
4081
|
-
clearTimeout(r),
|
|
4124
|
+
clearTimeout(r), Ae.set(!1);
|
|
4082
4125
|
});
|
|
4083
4126
|
}
|
|
4084
|
-
return
|
|
4085
|
-
}, re =
|
|
4086
|
-
set:
|
|
4087
|
-
}),
|
|
4127
|
+
return pe.set(e);
|
|
4128
|
+
}, re = _i(yi({}, pe), {
|
|
4129
|
+
set: Ei
|
|
4130
|
+
}), _e = (e) => {
|
|
4088
4131
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4089
4132
|
return (n) => {
|
|
4090
4133
|
const i = JSON.stringify(n);
|
|
4091
4134
|
return i in t ? t[i] : t[i] = e(n);
|
|
4092
4135
|
};
|
|
4093
4136
|
};
|
|
4094
|
-
var
|
|
4137
|
+
var xi = Object.defineProperty, de = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4095
4138
|
for (var r in t || (t = {}))
|
|
4096
|
-
|
|
4097
|
-
if (
|
|
4098
|
-
for (var r of
|
|
4099
|
-
|
|
4139
|
+
ir.call(t, r) && Et(e, r, t[r]);
|
|
4140
|
+
if (de)
|
|
4141
|
+
for (var r of de(t))
|
|
4142
|
+
or.call(t, r) && Et(e, r, t[r]);
|
|
4100
4143
|
return e;
|
|
4101
|
-
},
|
|
4144
|
+
}, X = (e, t) => {
|
|
4102
4145
|
var r = {};
|
|
4103
4146
|
for (var n in e)
|
|
4104
|
-
|
|
4105
|
-
if (e != null &&
|
|
4106
|
-
for (var n of
|
|
4107
|
-
t.indexOf(n) < 0 &&
|
|
4147
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4148
|
+
if (e != null && de)
|
|
4149
|
+
for (var n of de(e))
|
|
4150
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4108
4151
|
return r;
|
|
4109
4152
|
};
|
|
4110
|
-
const
|
|
4111
|
-
const { formats: r } =
|
|
4153
|
+
const q = (e, t) => {
|
|
4154
|
+
const { formats: r } = j();
|
|
4112
4155
|
if (e in r && t in r[e])
|
|
4113
4156
|
return r[e][t];
|
|
4114
4157
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4115
|
-
},
|
|
4158
|
+
}, Si = _e(
|
|
4116
4159
|
(e) => {
|
|
4117
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4160
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4118
4161
|
if (r == null)
|
|
4119
4162
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4120
|
-
return n && (i =
|
|
4163
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4121
4164
|
}
|
|
4122
|
-
),
|
|
4165
|
+
), wi = _e(
|
|
4123
4166
|
(e) => {
|
|
4124
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4167
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4125
4168
|
if (r == null)
|
|
4126
4169
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4127
|
-
return n ? i =
|
|
4170
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4128
4171
|
}
|
|
4129
|
-
),
|
|
4172
|
+
), Hi = _e(
|
|
4130
4173
|
(e) => {
|
|
4131
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4132
4175
|
if (r == null)
|
|
4133
4176
|
throw new Error(
|
|
4134
4177
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4135
4178
|
);
|
|
4136
|
-
return n ? i =
|
|
4179
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4137
4180
|
}
|
|
4138
|
-
),
|
|
4181
|
+
), Ti = (e = {}) => {
|
|
4139
4182
|
var t = e, {
|
|
4140
4183
|
locale: r = L()
|
|
4141
|
-
} = t, n =
|
|
4184
|
+
} = t, n = X(t, [
|
|
4142
4185
|
"locale"
|
|
4143
4186
|
]);
|
|
4144
|
-
return
|
|
4145
|
-
},
|
|
4187
|
+
return Si(Qe({ locale: r }, n));
|
|
4188
|
+
}, Bi = (e = {}) => {
|
|
4146
4189
|
var t = e, {
|
|
4147
4190
|
locale: r = L()
|
|
4148
|
-
} = t, n =
|
|
4191
|
+
} = t, n = X(t, [
|
|
4149
4192
|
"locale"
|
|
4150
4193
|
]);
|
|
4151
|
-
return
|
|
4152
|
-
},
|
|
4194
|
+
return wi(Qe({ locale: r }, n));
|
|
4195
|
+
}, Ai = (e = {}) => {
|
|
4153
4196
|
var t = e, {
|
|
4154
4197
|
locale: r = L()
|
|
4155
|
-
} = t, n =
|
|
4198
|
+
} = t, n = X(t, [
|
|
4156
4199
|
"locale"
|
|
4157
4200
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4201
|
+
return Hi(Qe({ locale: r }, n));
|
|
4202
|
+
}, Pi = _e(
|
|
4160
4203
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4161
|
-
(e, t = L()) => new
|
|
4162
|
-
ignoreTag:
|
|
4204
|
+
(e, t = L()) => new ti(e, t, j().formats, {
|
|
4205
|
+
ignoreTag: j().ignoreTag
|
|
4163
4206
|
})
|
|
4164
|
-
),
|
|
4207
|
+
), Oi = (e, t = {}) => {
|
|
4165
4208
|
var r, n, i, o;
|
|
4166
4209
|
let s = t;
|
|
4167
4210
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4174,9 +4217,9 @@ const Y = (e, t) => {
|
|
|
4174
4217
|
throw new Error(
|
|
4175
4218
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4176
4219
|
);
|
|
4177
|
-
let l =
|
|
4220
|
+
let l = er(e, h);
|
|
4178
4221
|
if (!l)
|
|
4179
|
-
l = (o = (i = (n = (r =
|
|
4222
|
+
l = (o = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4180
4223
|
else if (typeof l != "string")
|
|
4181
4224
|
return console.warn(
|
|
4182
4225
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4185,7 +4228,7 @@ const Y = (e, t) => {
|
|
|
4185
4228
|
return l;
|
|
4186
4229
|
let f = l;
|
|
4187
4230
|
try {
|
|
4188
|
-
f =
|
|
4231
|
+
f = Pi(l, h).format(a);
|
|
4189
4232
|
} catch (c) {
|
|
4190
4233
|
c instanceof Error && console.warn(
|
|
4191
4234
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4193,27 +4236,27 @@ const Y = (e, t) => {
|
|
|
4193
4236
|
);
|
|
4194
4237
|
}
|
|
4195
4238
|
return f;
|
|
4196
|
-
},
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
window.emWidgets = { topic:
|
|
4203
|
-
const
|
|
4204
|
-
function
|
|
4205
|
-
|
|
4206
|
-
}
|
|
4207
|
-
function
|
|
4239
|
+
}, Ci = (e, t) => Ai(t).format(e), Li = (e, t) => Bi(t).format(e), Ii = (e, t) => Ti(t).format(e), Ni = (e, t = L()) => er(e, t);
|
|
4240
|
+
k([re, te], () => Oi);
|
|
4241
|
+
k([re], () => Ci);
|
|
4242
|
+
k([re], () => Li);
|
|
4243
|
+
k([re], () => Ii);
|
|
4244
|
+
k([re, te], () => Ni);
|
|
4245
|
+
window.emWidgets = { topic: Xr };
|
|
4246
|
+
const xt = (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));
|
|
4247
|
+
function Mi(e) {
|
|
4248
|
+
ur(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}");
|
|
4249
|
+
}
|
|
4250
|
+
function St(e) {
|
|
4208
4251
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4209
|
-
e[2] &&
|
|
4252
|
+
e[2] && wt(e), u = (
|
|
4210
4253
|
/*desktopView*/
|
|
4211
|
-
e[2] &&
|
|
4254
|
+
e[2] && Ht(e)
|
|
4212
4255
|
);
|
|
4213
4256
|
return {
|
|
4214
4257
|
c() {
|
|
4215
|
-
t =
|
|
4216
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4258
|
+
t = C("div"), h && h.c(), r = Ke(), n = C("div"), u && u.c(), i = Ke(), o = C("video"), s = C("source"), Ye(s.src, a = /*videosrc*/
|
|
4259
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), et(
|
|
4217
4260
|
t,
|
|
4218
4261
|
"CashierVideoWrapperDesktop",
|
|
4219
4262
|
/*desktopView*/
|
|
@@ -4221,15 +4264,15 @@ function gt(e) {
|
|
|
4221
4264
|
);
|
|
4222
4265
|
},
|
|
4223
4266
|
m(l, f) {
|
|
4224
|
-
|
|
4267
|
+
K(l, t, f), h && h.m(t, null), B(t, r), B(t, n), u && u.m(n, null), B(n, i), B(n, o), B(o, s), e[10](t);
|
|
4225
4268
|
},
|
|
4226
4269
|
p(l, f) {
|
|
4227
4270
|
/*desktopView*/
|
|
4228
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4229
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4230
|
-
1 && !
|
|
4271
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = wt(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4272
|
+
l[2] ? u ? u.p(l, f) : (u = Ht(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4273
|
+
1 && !Ye(s.src, a = /*videosrc*/
|
|
4231
4274
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4232
|
-
4 &&
|
|
4275
|
+
4 && et(
|
|
4233
4276
|
t,
|
|
4234
4277
|
"CashierVideoWrapperDesktop",
|
|
4235
4278
|
/*desktopView*/
|
|
@@ -4237,18 +4280,18 @@ function gt(e) {
|
|
|
4237
4280
|
);
|
|
4238
4281
|
},
|
|
4239
4282
|
d(l) {
|
|
4240
|
-
l &&
|
|
4283
|
+
l && V(t), h && h.d(), u && u.d(), e[10](null);
|
|
4241
4284
|
}
|
|
4242
4285
|
};
|
|
4243
4286
|
}
|
|
4244
|
-
function
|
|
4287
|
+
function wt(e) {
|
|
4245
4288
|
let t, r, n, i, o;
|
|
4246
4289
|
return {
|
|
4247
4290
|
c() {
|
|
4248
|
-
t =
|
|
4291
|
+
t = C("div"), r = fe("svg"), n = fe("path"), _(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"), _(n, "fill", "#111111"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "13"), _(r, "height", "13"), _(r, "viewBox", "0 0 13 13"), _(r, "fill", "none"), _(t, "class", "CashierVideoHeader");
|
|
4249
4292
|
},
|
|
4250
4293
|
m(s, a) {
|
|
4251
|
-
|
|
4294
|
+
K(s, t, a), B(t, r), B(r, n), i || (o = Pt(
|
|
4252
4295
|
r,
|
|
4253
4296
|
"click",
|
|
4254
4297
|
/*click_handler*/
|
|
@@ -4257,18 +4300,18 @@ function yt(e) {
|
|
|
4257
4300
|
},
|
|
4258
4301
|
p: S,
|
|
4259
4302
|
d(s) {
|
|
4260
|
-
s &&
|
|
4303
|
+
s && V(t), i = !1, o();
|
|
4261
4304
|
}
|
|
4262
4305
|
};
|
|
4263
4306
|
}
|
|
4264
|
-
function
|
|
4307
|
+
function Ht(e) {
|
|
4265
4308
|
let t, r, n, i;
|
|
4266
4309
|
return {
|
|
4267
4310
|
c() {
|
|
4268
4311
|
t = fe("svg"), r = fe("path"), _(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"), _(r, "fill", "#111111"), _(t, "xmlns", "http://www.w3.org/2000/svg"), _(t, "width", "13"), _(t, "height", "13"), _(t, "viewBox", "0 0 13 13"), _(t, "fill", "none");
|
|
4269
4312
|
},
|
|
4270
4313
|
m(o, s) {
|
|
4271
|
-
|
|
4314
|
+
K(o, t, s), B(t, r), n || (i = Pt(
|
|
4272
4315
|
t,
|
|
4273
4316
|
"click",
|
|
4274
4317
|
/*click_handler_1*/
|
|
@@ -4277,48 +4320,48 @@ function _t(e) {
|
|
|
4277
4320
|
},
|
|
4278
4321
|
p: S,
|
|
4279
4322
|
d(o) {
|
|
4280
|
-
o &&
|
|
4323
|
+
o && V(t), n = !1, i();
|
|
4281
4324
|
}
|
|
4282
4325
|
};
|
|
4283
4326
|
}
|
|
4284
|
-
function
|
|
4327
|
+
function $i(e) {
|
|
4285
4328
|
let t, r = (
|
|
4286
4329
|
/*show*/
|
|
4287
|
-
e[3] &&
|
|
4330
|
+
e[3] && St(e)
|
|
4288
4331
|
);
|
|
4289
4332
|
return {
|
|
4290
4333
|
c() {
|
|
4291
|
-
r && r.c(), t =
|
|
4334
|
+
r && r.c(), t = fr();
|
|
4292
4335
|
},
|
|
4293
4336
|
m(n, i) {
|
|
4294
|
-
r && r.m(n, i),
|
|
4337
|
+
r && r.m(n, i), K(n, t, i);
|
|
4295
4338
|
},
|
|
4296
4339
|
p(n, [i]) {
|
|
4297
4340
|
/*show*/
|
|
4298
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4341
|
+
n[3] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4299
4342
|
},
|
|
4300
4343
|
i: S,
|
|
4301
4344
|
o: S,
|
|
4302
4345
|
d(n) {
|
|
4303
|
-
n &&
|
|
4346
|
+
n && V(t), r && r.d(n);
|
|
4304
4347
|
}
|
|
4305
4348
|
};
|
|
4306
4349
|
}
|
|
4307
|
-
function
|
|
4350
|
+
function Ri(e, t, r) {
|
|
4308
4351
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4309
4352
|
const f = () => {
|
|
4310
4353
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4311
4354
|
}, c = (E) => {
|
|
4312
4355
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4313
|
-
},
|
|
4314
|
-
r(2, h = !
|
|
4356
|
+
}, m = () => {
|
|
4357
|
+
r(2, h = !xt(a));
|
|
4315
4358
|
};
|
|
4316
|
-
|
|
4359
|
+
mr(() => (window.addEventListener("message", c, !1), () => {
|
|
4317
4360
|
window.removeEventListener("message", c);
|
|
4318
4361
|
}));
|
|
4319
|
-
const
|
|
4320
|
-
function
|
|
4321
|
-
|
|
4362
|
+
const v = () => f(), b = () => f();
|
|
4363
|
+
function w(E) {
|
|
4364
|
+
Pe[E ? "unshift" : "push"](() => {
|
|
4322
4365
|
l = E, r(1, l);
|
|
4323
4366
|
});
|
|
4324
4367
|
}
|
|
@@ -4326,10 +4369,10 @@ function Li(e, t, r) {
|
|
|
4326
4369
|
"clientstyling" in E && r(5, n = E.clientstyling), "clientstylingurl" in E && r(6, i = E.clientstylingurl), "videosrc" in E && r(0, o = E.videosrc), "mbsource" in E && r(7, s = E.mbsource);
|
|
4327
4370
|
}, e.$$.update = () => {
|
|
4328
4371
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4329
|
-
34 && n && l &&
|
|
4330
|
-
66 && i && l &&
|
|
4331
|
-
130 && s && l &&
|
|
4332
|
-
},
|
|
4372
|
+
34 && n && l && Pr(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4373
|
+
66 && i && l && Or(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4374
|
+
130 && s && l && Cr(l, `${s}.Style`);
|
|
4375
|
+
}, xt(a) && m(), [
|
|
4333
4376
|
o,
|
|
4334
4377
|
l,
|
|
4335
4378
|
h,
|
|
@@ -4338,26 +4381,26 @@ function Li(e, t, r) {
|
|
|
4338
4381
|
n,
|
|
4339
4382
|
i,
|
|
4340
4383
|
s,
|
|
4341
|
-
g,
|
|
4342
4384
|
v,
|
|
4343
|
-
|
|
4385
|
+
b,
|
|
4386
|
+
w
|
|
4344
4387
|
];
|
|
4345
4388
|
}
|
|
4346
|
-
class
|
|
4389
|
+
class Ui extends Br {
|
|
4347
4390
|
constructor(t) {
|
|
4348
|
-
super(),
|
|
4391
|
+
super(), Hr(
|
|
4349
4392
|
this,
|
|
4350
4393
|
t,
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4394
|
+
Ri,
|
|
4395
|
+
$i,
|
|
4396
|
+
Bt,
|
|
4354
4397
|
{
|
|
4355
4398
|
clientstyling: 5,
|
|
4356
4399
|
clientstylingurl: 6,
|
|
4357
4400
|
videosrc: 0,
|
|
4358
4401
|
mbsource: 7
|
|
4359
4402
|
},
|
|
4360
|
-
|
|
4403
|
+
Mi
|
|
4361
4404
|
);
|
|
4362
4405
|
}
|
|
4363
4406
|
get clientstyling() {
|
|
@@ -4385,7 +4428,7 @@ class Ii extends xr {
|
|
|
4385
4428
|
this.$$set({ mbsource: t }), R();
|
|
4386
4429
|
}
|
|
4387
4430
|
}
|
|
4388
|
-
|
|
4431
|
+
Tr(Ui, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4389
4432
|
export {
|
|
4390
|
-
|
|
4433
|
+
Ui as C
|
|
4391
4434
|
};
|