@everymatrix/cashier-video-modal 1.86.3 → 1.86.5
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-FmlerUse.js → CashierVideoModal-0LfI1rtL.js} +738 -717
- package/components/CashierVideoModal-D7q0MqRa.cjs +18 -0
- package/components/{CashierVideoModal-Xx56q-gw.js → CashierVideoModal-R5-60Ibb.js} +723 -702
- 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-Bpq3MB7x.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 sr(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 ur(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 cr(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
181
|
function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
-
const h =
|
|
183
|
-
|
|
182
|
+
const h = Q;
|
|
183
|
+
Z(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function Hr(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 Hr(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" && (At = 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 wr(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 Tr {
|
|
|
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 Tr {
|
|
|
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 Tr {
|
|
|
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
|
if (!e || !t)
|
|
450
450
|
return;
|
|
451
451
|
const r = new URL(t);
|
|
@@ -478,43 +478,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
478
478
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
479
479
|
PERFORMANCE OF THIS SOFTWARE.
|
|
480
480
|
***************************************************************************** */
|
|
481
|
-
var
|
|
482
|
-
return
|
|
481
|
+
var Le = function(e, t) {
|
|
482
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
483
483
|
r.__proto__ = n;
|
|
484
484
|
} || function(r, n) {
|
|
485
485
|
for (var i in n)
|
|
486
486
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
487
|
-
},
|
|
487
|
+
}, Le(e, t);
|
|
488
488
|
};
|
|
489
|
-
function
|
|
489
|
+
function ee(e, t) {
|
|
490
490
|
if (typeof t != "function" && t !== null)
|
|
491
491
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
492
|
-
|
|
492
|
+
Le(e, t);
|
|
493
493
|
function r() {
|
|
494
494
|
this.constructor = e;
|
|
495
495
|
}
|
|
496
496
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
497
497
|
}
|
|
498
|
-
|
|
499
|
-
return m = Object.assign || function(t) {
|
|
500
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
501
|
-
r = arguments[n];
|
|
502
|
-
for (var o in r)
|
|
503
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
504
|
-
}
|
|
505
|
-
return t;
|
|
506
|
-
}, m.apply(this, arguments);
|
|
507
|
-
};
|
|
508
|
-
function Or(e, t) {
|
|
509
|
-
var r = {};
|
|
510
|
-
for (var n in e)
|
|
511
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
513
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
514
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
515
|
-
return r;
|
|
516
|
-
}
|
|
517
|
-
function Oe(e) {
|
|
498
|
+
function Ie(e) {
|
|
518
499
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
519
500
|
if (r)
|
|
520
501
|
return r.call(e);
|
|
@@ -526,7 +507,7 @@ function Oe(e) {
|
|
|
526
507
|
};
|
|
527
508
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
528
509
|
}
|
|
529
|
-
function
|
|
510
|
+
function Ne(e, t) {
|
|
530
511
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
531
512
|
if (!r)
|
|
532
513
|
return e;
|
|
@@ -546,22 +527,22 @@ function Le(e, t) {
|
|
|
546
527
|
}
|
|
547
528
|
return o;
|
|
548
529
|
}
|
|
549
|
-
function
|
|
550
|
-
if (
|
|
530
|
+
function Me(e, t, r) {
|
|
531
|
+
if (arguments.length === 2)
|
|
551
532
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
552
533
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
553
534
|
return e.concat(o || t);
|
|
554
535
|
}
|
|
555
|
-
function
|
|
536
|
+
function A(e) {
|
|
556
537
|
return typeof e == "function";
|
|
557
538
|
}
|
|
558
|
-
function
|
|
539
|
+
function Ct(e) {
|
|
559
540
|
var t = function(n) {
|
|
560
541
|
Error.call(n), n.stack = new Error().stack;
|
|
561
542
|
}, r = e(t);
|
|
562
543
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
563
544
|
}
|
|
564
|
-
var
|
|
545
|
+
var xe = Ct(function(e) {
|
|
565
546
|
return function(r) {
|
|
566
547
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
567
548
|
` + r.map(function(n, i) {
|
|
@@ -570,13 +551,13 @@ var _e = Pt(function(e) {
|
|
|
570
551
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
571
552
|
};
|
|
572
553
|
});
|
|
573
|
-
function
|
|
554
|
+
function $e(e, t) {
|
|
574
555
|
if (e) {
|
|
575
556
|
var r = e.indexOf(t);
|
|
576
557
|
0 <= r && e.splice(r, 1);
|
|
577
558
|
}
|
|
578
559
|
}
|
|
579
|
-
var
|
|
560
|
+
var me = function() {
|
|
580
561
|
function e(t) {
|
|
581
562
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
582
563
|
}
|
|
@@ -588,12 +569,12 @@ var de = function() {
|
|
|
588
569
|
if (s)
|
|
589
570
|
if (this._parentage = null, Array.isArray(s))
|
|
590
571
|
try {
|
|
591
|
-
for (var a =
|
|
572
|
+
for (var a = Ie(s), h = a.next(); !h.done; h = a.next()) {
|
|
592
573
|
var u = h.value;
|
|
593
574
|
u.remove(this);
|
|
594
575
|
}
|
|
595
|
-
} catch (
|
|
596
|
-
t = { error:
|
|
576
|
+
} catch (b) {
|
|
577
|
+
t = { error: b };
|
|
597
578
|
} finally {
|
|
598
579
|
try {
|
|
599
580
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -605,29 +586,29 @@ var de = function() {
|
|
|
605
586
|
else
|
|
606
587
|
s.remove(this);
|
|
607
588
|
var l = this.initialTeardown;
|
|
608
|
-
if (
|
|
589
|
+
if (A(l))
|
|
609
590
|
try {
|
|
610
591
|
l();
|
|
611
|
-
} catch (
|
|
612
|
-
o =
|
|
592
|
+
} catch (b) {
|
|
593
|
+
o = b instanceof xe ? b.errors : [b];
|
|
613
594
|
}
|
|
614
595
|
var f = this._finalizers;
|
|
615
596
|
if (f) {
|
|
616
597
|
this._finalizers = null;
|
|
617
598
|
try {
|
|
618
|
-
for (var c =
|
|
619
|
-
var
|
|
599
|
+
for (var c = Ie(f), m = c.next(); !m.done; m = c.next()) {
|
|
600
|
+
var v = m.value;
|
|
620
601
|
try {
|
|
621
|
-
|
|
622
|
-
} catch (
|
|
623
|
-
o = o ?? [],
|
|
602
|
+
rt(v);
|
|
603
|
+
} catch (b) {
|
|
604
|
+
o = o ?? [], b instanceof xe ? o = Me(Me([], Ne(o)), Ne(b.errors)) : o.push(b);
|
|
624
605
|
}
|
|
625
606
|
}
|
|
626
|
-
} catch (
|
|
627
|
-
n = { error:
|
|
607
|
+
} catch (b) {
|
|
608
|
+
n = { error: b };
|
|
628
609
|
} finally {
|
|
629
610
|
try {
|
|
630
|
-
|
|
611
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
631
612
|
} finally {
|
|
632
613
|
if (n)
|
|
633
614
|
throw n.error;
|
|
@@ -635,13 +616,13 @@ var de = function() {
|
|
|
635
616
|
}
|
|
636
617
|
}
|
|
637
618
|
if (o)
|
|
638
|
-
throw new
|
|
619
|
+
throw new xe(o);
|
|
639
620
|
}
|
|
640
621
|
}, e.prototype.add = function(t) {
|
|
641
622
|
var r;
|
|
642
623
|
if (t && t !== this)
|
|
643
624
|
if (this.closed)
|
|
644
|
-
|
|
625
|
+
rt(t);
|
|
645
626
|
else {
|
|
646
627
|
if (t instanceof e) {
|
|
647
628
|
if (t.closed || t._hasParent(this))
|
|
@@ -658,56 +639,52 @@ var de = function() {
|
|
|
658
639
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
659
640
|
}, e.prototype._removeParent = function(t) {
|
|
660
641
|
var r = this._parentage;
|
|
661
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
642
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
662
643
|
}, e.prototype.remove = function(t) {
|
|
663
644
|
var r = this._finalizers;
|
|
664
|
-
r &&
|
|
645
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
665
646
|
}, e.EMPTY = function() {
|
|
666
647
|
var t = new e();
|
|
667
648
|
return t.closed = !0, t;
|
|
668
649
|
}(), e;
|
|
669
|
-
}(),
|
|
670
|
-
function
|
|
671
|
-
return e instanceof
|
|
672
|
-
}
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
Promise: void 0,
|
|
680
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
681
|
-
useDeprecatedNextContext: !1
|
|
682
|
-
}, Lr = {
|
|
650
|
+
}(), Lt = me.EMPTY;
|
|
651
|
+
function It(e) {
|
|
652
|
+
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
653
|
+
}
|
|
654
|
+
function rt(e) {
|
|
655
|
+
A(e) ? e() : e.unsubscribe();
|
|
656
|
+
}
|
|
657
|
+
var Lr = {
|
|
658
|
+
Promise: void 0
|
|
659
|
+
}, Ir = {
|
|
683
660
|
setTimeout: function(e, t) {
|
|
684
661
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
685
662
|
r[n - 2] = arguments[n];
|
|
686
|
-
return setTimeout.apply(void 0,
|
|
663
|
+
return setTimeout.apply(void 0, Me([e, t], Ne(r)));
|
|
687
664
|
},
|
|
688
665
|
clearTimeout: function(e) {
|
|
689
666
|
return clearTimeout(e);
|
|
690
667
|
},
|
|
691
668
|
delegate: void 0
|
|
692
669
|
};
|
|
693
|
-
function
|
|
694
|
-
|
|
670
|
+
function Nr(e) {
|
|
671
|
+
Ir.setTimeout(function() {
|
|
695
672
|
throw e;
|
|
696
673
|
});
|
|
697
674
|
}
|
|
698
|
-
function
|
|
675
|
+
function nt() {
|
|
699
676
|
}
|
|
700
677
|
function ue(e) {
|
|
701
678
|
e();
|
|
702
679
|
}
|
|
703
|
-
var
|
|
704
|
-
|
|
680
|
+
var Nt = function(e) {
|
|
681
|
+
ee(t, e);
|
|
705
682
|
function t(r) {
|
|
706
683
|
var n = e.call(this) || this;
|
|
707
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
684
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Rr, n;
|
|
708
685
|
}
|
|
709
686
|
return t.create = function(r, n, i) {
|
|
710
|
-
return new
|
|
687
|
+
return new Re(r, n, i);
|
|
711
688
|
}, t.prototype.next = function(r) {
|
|
712
689
|
this.isStopped || this._next(r);
|
|
713
690
|
}, t.prototype.error = function(r) {
|
|
@@ -731,11 +708,7 @@ var It = function(e) {
|
|
|
731
708
|
this.unsubscribe();
|
|
732
709
|
}
|
|
733
710
|
}, t;
|
|
734
|
-
}(
|
|
735
|
-
function Ee(e, t) {
|
|
736
|
-
return Nr.call(e, t);
|
|
737
|
-
}
|
|
738
|
-
var Mr = function() {
|
|
711
|
+
}(me), Mr = function() {
|
|
739
712
|
function e(t) {
|
|
740
713
|
this.partialObserver = t;
|
|
741
714
|
}
|
|
@@ -766,41 +739,29 @@ var Mr = function() {
|
|
|
766
739
|
oe(r);
|
|
767
740
|
}
|
|
768
741
|
}, e;
|
|
769
|
-
}(),
|
|
770
|
-
|
|
742
|
+
}(), Re = function(e) {
|
|
743
|
+
ee(t, e);
|
|
771
744
|
function t(r, n, i) {
|
|
772
745
|
var o = e.call(this) || this, s;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
};
|
|
779
|
-
else {
|
|
780
|
-
var a;
|
|
781
|
-
o && Lt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
782
|
-
return o.unsubscribe();
|
|
783
|
-
}, s = {
|
|
784
|
-
next: r.next && Ee(r.next, a),
|
|
785
|
-
error: r.error && Ee(r.error, a),
|
|
786
|
-
complete: r.complete && Ee(r.complete, a)
|
|
787
|
-
}) : s = r;
|
|
788
|
-
}
|
|
789
|
-
return o.destination = new Mr(s), o;
|
|
746
|
+
return A(r) || !r ? s = {
|
|
747
|
+
next: r ?? void 0,
|
|
748
|
+
error: n ?? void 0,
|
|
749
|
+
complete: i ?? void 0
|
|
750
|
+
} : s = r, o.destination = new Mr(s), o;
|
|
790
751
|
}
|
|
791
752
|
return t;
|
|
792
|
-
}(
|
|
753
|
+
}(Nt);
|
|
793
754
|
function oe(e) {
|
|
794
|
-
|
|
755
|
+
Nr(e);
|
|
795
756
|
}
|
|
796
757
|
function $r(e) {
|
|
797
758
|
throw e;
|
|
798
759
|
}
|
|
799
760
|
var Rr = {
|
|
800
761
|
closed: !0,
|
|
801
|
-
next:
|
|
762
|
+
next: nt,
|
|
802
763
|
error: $r,
|
|
803
|
-
complete:
|
|
764
|
+
complete: nt
|
|
804
765
|
}, Ur = function() {
|
|
805
766
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
806
767
|
}();
|
|
@@ -814,7 +775,7 @@ function Gr(e) {
|
|
|
814
775
|
}, r);
|
|
815
776
|
};
|
|
816
777
|
}
|
|
817
|
-
var
|
|
778
|
+
var it = function() {
|
|
818
779
|
function e(t) {
|
|
819
780
|
t && (this._subscribe = t);
|
|
820
781
|
}
|
|
@@ -822,7 +783,7 @@ var rt = function() {
|
|
|
822
783
|
var r = new e();
|
|
823
784
|
return r.source = this, r.operator = t, r;
|
|
824
785
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
825
|
-
var i = this, o = jr(t) ? t : new
|
|
786
|
+
var i = this, o = jr(t) ? t : new Re(t, r, n);
|
|
826
787
|
return ue(function() {
|
|
827
788
|
var s = i, a = s.operator, h = s.source;
|
|
828
789
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -835,8 +796,8 @@ var rt = function() {
|
|
|
835
796
|
}
|
|
836
797
|
}, e.prototype.forEach = function(t, r) {
|
|
837
798
|
var n = this;
|
|
838
|
-
return r =
|
|
839
|
-
var s = new
|
|
799
|
+
return r = ot(r), new r(function(i, o) {
|
|
800
|
+
var s = new Re({
|
|
840
801
|
next: function(a) {
|
|
841
802
|
try {
|
|
842
803
|
t(a);
|
|
@@ -860,7 +821,7 @@ var rt = function() {
|
|
|
860
821
|
return Gr(t)(this);
|
|
861
822
|
}, e.prototype.toPromise = function(t) {
|
|
862
823
|
var r = this;
|
|
863
|
-
return t =
|
|
824
|
+
return t = ot(t), new t(function(n, i) {
|
|
864
825
|
var o;
|
|
865
826
|
r.subscribe(function(s) {
|
|
866
827
|
return o = s;
|
|
@@ -874,28 +835,28 @@ var rt = function() {
|
|
|
874
835
|
return new e(t);
|
|
875
836
|
}, e;
|
|
876
837
|
}();
|
|
877
|
-
function
|
|
838
|
+
function ot(e) {
|
|
878
839
|
var t;
|
|
879
|
-
return (t = e ??
|
|
840
|
+
return (t = e ?? Lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
880
841
|
}
|
|
881
842
|
function Fr(e) {
|
|
882
|
-
return e &&
|
|
843
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
883
844
|
}
|
|
884
845
|
function jr(e) {
|
|
885
|
-
return e && e instanceof
|
|
846
|
+
return e && e instanceof Nt || Fr(e) && It(e);
|
|
886
847
|
}
|
|
887
|
-
var Vr =
|
|
848
|
+
var Vr = Ct(function(e) {
|
|
888
849
|
return function() {
|
|
889
850
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
890
851
|
};
|
|
891
|
-
}),
|
|
892
|
-
|
|
852
|
+
}), Mt = function(e) {
|
|
853
|
+
ee(t, e);
|
|
893
854
|
function t() {
|
|
894
855
|
var r = e.call(this) || this;
|
|
895
856
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
896
857
|
}
|
|
897
858
|
return t.prototype.lift = function(r) {
|
|
898
|
-
var n = new
|
|
859
|
+
var n = new st(this, this);
|
|
899
860
|
return n.operator = r, n;
|
|
900
861
|
}, t.prototype._throwIfClosed = function() {
|
|
901
862
|
if (this.closed)
|
|
@@ -907,7 +868,7 @@ var Vr = Pt(function(e) {
|
|
|
907
868
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
908
869
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
909
870
|
try {
|
|
910
|
-
for (var s =
|
|
871
|
+
for (var s = Ie(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
911
872
|
var h = a.value;
|
|
912
873
|
h.next(r);
|
|
913
874
|
}
|
|
@@ -956,20 +917,20 @@ var Vr = Pt(function(e) {
|
|
|
956
917
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
957
918
|
}, t.prototype._innerSubscribe = function(r) {
|
|
958
919
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
959
|
-
return o || s ?
|
|
960
|
-
n.currentObservers = null,
|
|
920
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
921
|
+
n.currentObservers = null, $e(a, r);
|
|
961
922
|
}));
|
|
962
923
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
963
924
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
964
925
|
i ? r.error(o) : s && r.complete();
|
|
965
926
|
}, t.prototype.asObservable = function() {
|
|
966
|
-
var r = new
|
|
927
|
+
var r = new it();
|
|
967
928
|
return r.source = this, r;
|
|
968
929
|
}, t.create = function(r, n) {
|
|
969
|
-
return new
|
|
930
|
+
return new st(r, n);
|
|
970
931
|
}, t;
|
|
971
|
-
}(
|
|
972
|
-
|
|
932
|
+
}(it), st = function(e) {
|
|
933
|
+
ee(t, e);
|
|
973
934
|
function t(r, n) {
|
|
974
935
|
var i = e.call(this) || this;
|
|
975
936
|
return i.destination = r, i.source = n, i;
|
|
@@ -985,17 +946,17 @@ var Vr = Pt(function(e) {
|
|
|
985
946
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
986
947
|
}, t.prototype._subscribe = function(r) {
|
|
987
948
|
var n, i;
|
|
988
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
949
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
|
|
989
950
|
}, t;
|
|
990
|
-
}(
|
|
951
|
+
}(Mt), $t = {
|
|
991
952
|
now: function() {
|
|
992
|
-
return (
|
|
953
|
+
return ($t.delegate || Date).now();
|
|
993
954
|
},
|
|
994
955
|
delegate: void 0
|
|
995
956
|
}, kr = function(e) {
|
|
996
|
-
|
|
957
|
+
ee(t, e);
|
|
997
958
|
function t(r, n, i) {
|
|
998
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
959
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
999
960
|
var o = e.call(this) || this;
|
|
1000
961
|
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;
|
|
1001
962
|
}
|
|
@@ -1015,24 +976,24 @@ var Vr = Pt(function(e) {
|
|
|
1015
976
|
u && o.splice(0, u + 1);
|
|
1016
977
|
}
|
|
1017
978
|
}, t;
|
|
1018
|
-
}(
|
|
1019
|
-
const
|
|
1020
|
-
if (
|
|
979
|
+
}(Mt);
|
|
980
|
+
const at = [], ut = {}, Xr = (e, t = 0) => {
|
|
981
|
+
if (at.indexOf(e) == -1) {
|
|
1021
982
|
const r = new kr(t);
|
|
1022
|
-
|
|
983
|
+
ut[e] = r, at.push(e);
|
|
1023
984
|
}
|
|
1024
|
-
return
|
|
985
|
+
return ut[e];
|
|
1025
986
|
}, M = [];
|
|
1026
987
|
function Wr(e, t) {
|
|
1027
988
|
return {
|
|
1028
|
-
subscribe:
|
|
989
|
+
subscribe: be(e, t).subscribe
|
|
1029
990
|
};
|
|
1030
991
|
}
|
|
1031
|
-
function
|
|
992
|
+
function be(e, t = S) {
|
|
1032
993
|
let r;
|
|
1033
994
|
const n = /* @__PURE__ */ new Set();
|
|
1034
995
|
function i(a) {
|
|
1035
|
-
if (
|
|
996
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1036
997
|
const h = !M.length;
|
|
1037
998
|
for (const u of n)
|
|
1038
999
|
u[1](), M.push(u, e);
|
|
@@ -1054,7 +1015,7 @@ function me(e, t = S) {
|
|
|
1054
1015
|
}
|
|
1055
1016
|
return { set: i, update: o, subscribe: s };
|
|
1056
1017
|
}
|
|
1057
|
-
function
|
|
1018
|
+
function k(e, t, r) {
|
|
1058
1019
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1059
1020
|
if (!i.every(Boolean))
|
|
1060
1021
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1067,21 +1028,21 @@ function X(e, t, r) {
|
|
|
1067
1028
|
if (l)
|
|
1068
1029
|
return;
|
|
1069
1030
|
f();
|
|
1070
|
-
const
|
|
1071
|
-
o ? s(
|
|
1072
|
-
},
|
|
1073
|
-
(
|
|
1074
|
-
|
|
1075
|
-
(
|
|
1076
|
-
u[
|
|
1031
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1032
|
+
o ? s(v) : f = ze(v) ? v : S;
|
|
1033
|
+
}, m = i.map(
|
|
1034
|
+
(v, b) => ar(
|
|
1035
|
+
v,
|
|
1036
|
+
(w) => {
|
|
1037
|
+
u[b] = w, l &= ~(1 << b), h && c();
|
|
1077
1038
|
},
|
|
1078
1039
|
() => {
|
|
1079
|
-
l |= 1 <<
|
|
1040
|
+
l |= 1 << b;
|
|
1080
1041
|
}
|
|
1081
1042
|
)
|
|
1082
1043
|
);
|
|
1083
1044
|
return h = !0, c(), function() {
|
|
1084
|
-
|
|
1045
|
+
Y(m), f(), h = !1;
|
|
1085
1046
|
};
|
|
1086
1047
|
});
|
|
1087
1048
|
}
|
|
@@ -1105,29 +1066,29 @@ function Kr(e) {
|
|
|
1105
1066
|
function en(e) {
|
|
1106
1067
|
return Array.isArray(e) ? [] : {};
|
|
1107
1068
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1069
|
+
function J(e, t) {
|
|
1070
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(en(e), e, t) : e;
|
|
1110
1071
|
}
|
|
1111
1072
|
function tn(e, t, r) {
|
|
1112
1073
|
return e.concat(t).map(function(n) {
|
|
1113
|
-
return
|
|
1074
|
+
return J(n, r);
|
|
1114
1075
|
});
|
|
1115
1076
|
}
|
|
1116
1077
|
function rn(e, t) {
|
|
1117
1078
|
if (!t.customMerge)
|
|
1118
|
-
return
|
|
1079
|
+
return D;
|
|
1119
1080
|
var r = t.customMerge(e);
|
|
1120
|
-
return typeof r == "function" ? r :
|
|
1081
|
+
return typeof r == "function" ? r : D;
|
|
1121
1082
|
}
|
|
1122
1083
|
function nn(e) {
|
|
1123
1084
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1124
1085
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1125
1086
|
}) : [];
|
|
1126
1087
|
}
|
|
1127
|
-
function
|
|
1088
|
+
function ht(e) {
|
|
1128
1089
|
return Object.keys(e).concat(nn(e));
|
|
1129
1090
|
}
|
|
1130
|
-
function
|
|
1091
|
+
function Rt(e, t) {
|
|
1131
1092
|
try {
|
|
1132
1093
|
return t in e;
|
|
1133
1094
|
} catch {
|
|
@@ -1135,129 +1096,179 @@ function $t(e, t) {
|
|
|
1135
1096
|
}
|
|
1136
1097
|
}
|
|
1137
1098
|
function on(e, t) {
|
|
1138
|
-
return
|
|
1099
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1139
1100
|
}
|
|
1140
1101
|
function sn(e, t, r) {
|
|
1141
1102
|
var n = {};
|
|
1142
|
-
return r.isMergeableObject(e) &&
|
|
1143
|
-
n[i] =
|
|
1144
|
-
}),
|
|
1145
|
-
on(e, i) || (
|
|
1103
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1104
|
+
n[i] = J(e[i], r);
|
|
1105
|
+
}), ht(t).forEach(function(i) {
|
|
1106
|
+
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));
|
|
1146
1107
|
}), n;
|
|
1147
1108
|
}
|
|
1148
|
-
function
|
|
1149
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified =
|
|
1109
|
+
function D(e, t, r) {
|
|
1110
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = J;
|
|
1150
1111
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1151
|
-
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) :
|
|
1112
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : J(t, r);
|
|
1152
1113
|
}
|
|
1153
|
-
|
|
1114
|
+
D.all = function(t, r) {
|
|
1154
1115
|
if (!Array.isArray(t))
|
|
1155
1116
|
throw new Error("first argument should be an array");
|
|
1156
1117
|
return t.reduce(function(n, i) {
|
|
1157
|
-
return
|
|
1118
|
+
return D(n, i, r);
|
|
1158
1119
|
}, {});
|
|
1159
1120
|
};
|
|
1160
|
-
var an =
|
|
1121
|
+
var an = D, un = an;
|
|
1161
1122
|
const hn = /* @__PURE__ */ zr(un);
|
|
1162
|
-
function
|
|
1163
|
-
|
|
1123
|
+
var Ue = function(e, t) {
|
|
1124
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1125
|
+
r.__proto__ = n;
|
|
1126
|
+
} || function(r, n) {
|
|
1127
|
+
for (var i in n)
|
|
1128
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1129
|
+
}, Ue(e, t);
|
|
1130
|
+
};
|
|
1131
|
+
function ve(e, t) {
|
|
1132
|
+
if (typeof t != "function" && t !== null)
|
|
1133
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1134
|
+
Ue(e, t);
|
|
1135
|
+
function r() {
|
|
1136
|
+
this.constructor = e;
|
|
1137
|
+
}
|
|
1138
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1139
|
+
}
|
|
1140
|
+
var T = function() {
|
|
1141
|
+
return T = Object.assign || function(t) {
|
|
1142
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1143
|
+
r = arguments[n];
|
|
1144
|
+
for (var o in r)
|
|
1145
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1146
|
+
}
|
|
1147
|
+
return t;
|
|
1148
|
+
}, T.apply(this, arguments);
|
|
1149
|
+
};
|
|
1150
|
+
function ln(e, t) {
|
|
1151
|
+
var r = {};
|
|
1152
|
+
for (var n in e)
|
|
1153
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1154
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1155
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1156
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1157
|
+
return r;
|
|
1158
|
+
}
|
|
1159
|
+
function Se(e, t, r) {
|
|
1160
|
+
if (r || arguments.length === 2)
|
|
1161
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1162
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1163
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1164
|
+
}
|
|
1165
|
+
function we(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1164
1167
|
return i(e, {
|
|
1165
1168
|
cache: r,
|
|
1166
1169
|
serializer: n
|
|
1167
1170
|
});
|
|
1168
1171
|
}
|
|
1169
|
-
function
|
|
1172
|
+
function fn(e) {
|
|
1170
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1171
1174
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var i =
|
|
1175
|
+
function cn(e, t, r, n) {
|
|
1176
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
1174
1177
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1175
1178
|
}
|
|
1176
1179
|
function Ut(e, t, r) {
|
|
1177
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1178
1181
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1179
1182
|
}
|
|
1180
|
-
function
|
|
1183
|
+
function Dt(e, t, r, n, i) {
|
|
1181
1184
|
return r.bind(t, e, n, i);
|
|
1182
1185
|
}
|
|
1183
|
-
function fn(e, t) {
|
|
1184
|
-
var r = e.length === 1 ? Rt : Ut;
|
|
1185
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1186
|
-
}
|
|
1187
|
-
function cn(e, t) {
|
|
1188
|
-
return ke(e, this, Ut, t.cache.create(), t.serializer);
|
|
1189
|
-
}
|
|
1190
1186
|
function pn(e, t) {
|
|
1191
|
-
|
|
1187
|
+
var r = e.length === 1 ? cn : Ut;
|
|
1188
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1192
1189
|
}
|
|
1193
|
-
|
|
1194
|
-
return
|
|
1195
|
-
};
|
|
1196
|
-
function Xe() {
|
|
1197
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1190
|
+
function dn(e, t) {
|
|
1191
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1198
1192
|
}
|
|
1199
|
-
|
|
1200
|
-
return
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1193
|
+
var mn = function() {
|
|
1194
|
+
return JSON.stringify(arguments);
|
|
1195
|
+
}, bn = (
|
|
1196
|
+
/** @class */
|
|
1197
|
+
function() {
|
|
1198
|
+
function e() {
|
|
1199
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1200
|
+
}
|
|
1201
|
+
return e.prototype.get = function(t) {
|
|
1202
|
+
return this.cache[t];
|
|
1203
|
+
}, e.prototype.set = function(t, r) {
|
|
1204
|
+
this.cache[t] = r;
|
|
1205
|
+
}, e;
|
|
1206
|
+
}()
|
|
1207
|
+
), vn = {
|
|
1206
1208
|
create: function() {
|
|
1207
|
-
return new
|
|
1209
|
+
return new bn();
|
|
1208
1210
|
}
|
|
1209
|
-
},
|
|
1210
|
-
variadic:
|
|
1211
|
-
|
|
1212
|
-
|
|
1211
|
+
}, He = {
|
|
1212
|
+
variadic: dn
|
|
1213
|
+
}, ce = function() {
|
|
1214
|
+
return ce = Object.assign || function(t) {
|
|
1215
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1216
|
+
r = arguments[n];
|
|
1217
|
+
for (var o in r)
|
|
1218
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1219
|
+
}
|
|
1220
|
+
return t;
|
|
1221
|
+
}, ce.apply(this, arguments);
|
|
1222
|
+
};
|
|
1223
|
+
var p;
|
|
1213
1224
|
(function(e) {
|
|
1214
1225
|
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";
|
|
1215
1226
|
})(p || (p = {}));
|
|
1216
|
-
var
|
|
1227
|
+
var g;
|
|
1217
1228
|
(function(e) {
|
|
1218
1229
|
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";
|
|
1219
|
-
})(
|
|
1220
|
-
var
|
|
1230
|
+
})(g || (g = {}));
|
|
1231
|
+
var G;
|
|
1221
1232
|
(function(e) {
|
|
1222
1233
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1223
|
-
})(
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1226
|
-
}
|
|
1227
|
-
function bn(e) {
|
|
1228
|
-
return e.type === y.argument;
|
|
1234
|
+
})(G || (G = {}));
|
|
1235
|
+
function lt(e) {
|
|
1236
|
+
return e.type === g.literal;
|
|
1229
1237
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1238
|
+
function gn(e) {
|
|
1239
|
+
return e.type === g.argument;
|
|
1232
1240
|
}
|
|
1233
1241
|
function Gt(e) {
|
|
1234
|
-
return e.type ===
|
|
1242
|
+
return e.type === g.number;
|
|
1235
1243
|
}
|
|
1236
1244
|
function Ft(e) {
|
|
1237
|
-
return e.type ===
|
|
1245
|
+
return e.type === g.date;
|
|
1238
1246
|
}
|
|
1239
1247
|
function jt(e) {
|
|
1240
|
-
return e.type ===
|
|
1248
|
+
return e.type === g.time;
|
|
1241
1249
|
}
|
|
1242
1250
|
function Vt(e) {
|
|
1243
|
-
return e.type ===
|
|
1244
|
-
}
|
|
1245
|
-
function vn(e) {
|
|
1246
|
-
return e.type === y.pound;
|
|
1251
|
+
return e.type === g.select;
|
|
1247
1252
|
}
|
|
1248
1253
|
function kt(e) {
|
|
1249
|
-
return e.type ===
|
|
1254
|
+
return e.type === g.plural;
|
|
1255
|
+
}
|
|
1256
|
+
function yn(e) {
|
|
1257
|
+
return e.type === g.pound;
|
|
1250
1258
|
}
|
|
1251
1259
|
function Xt(e) {
|
|
1252
|
-
return
|
|
1260
|
+
return e.type === g.tag;
|
|
1253
1261
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1262
|
+
function Wt(e) {
|
|
1263
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1256
1264
|
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1265
|
+
function De(e) {
|
|
1266
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1267
|
+
}
|
|
1268
|
+
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;
|
|
1269
|
+
function En(e) {
|
|
1259
1270
|
var t = {};
|
|
1260
|
-
return e.replace(
|
|
1271
|
+
return e.replace(_n, function(r) {
|
|
1261
1272
|
var n = r.length;
|
|
1262
1273
|
switch (r[0]) {
|
|
1263
1274
|
case "G":
|
|
@@ -1346,11 +1357,21 @@ function yn(e) {
|
|
|
1346
1357
|
return "";
|
|
1347
1358
|
}), t;
|
|
1348
1359
|
}
|
|
1349
|
-
var
|
|
1350
|
-
function
|
|
1360
|
+
var y = function() {
|
|
1361
|
+
return y = Object.assign || function(t) {
|
|
1362
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1363
|
+
r = arguments[n];
|
|
1364
|
+
for (var o in r)
|
|
1365
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1366
|
+
}
|
|
1367
|
+
return t;
|
|
1368
|
+
}, y.apply(this, arguments);
|
|
1369
|
+
};
|
|
1370
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1371
|
+
function Sn(e) {
|
|
1351
1372
|
if (e.length === 0)
|
|
1352
1373
|
throw new Error("Number skeleton cannot be empty");
|
|
1353
|
-
for (var t = e.split(
|
|
1374
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1354
1375
|
return c.length > 0;
|
|
1355
1376
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1356
1377
|
var o = i[n], s = o.split("/");
|
|
@@ -1365,17 +1386,17 @@ function En(e) {
|
|
|
1365
1386
|
}
|
|
1366
1387
|
return r;
|
|
1367
1388
|
}
|
|
1368
|
-
function
|
|
1389
|
+
function wn(e) {
|
|
1369
1390
|
return e.replace(/^(.*?)-/, "");
|
|
1370
1391
|
}
|
|
1371
|
-
var
|
|
1372
|
-
function
|
|
1392
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1393
|
+
function ct(e) {
|
|
1373
1394
|
var t = {};
|
|
1374
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1395
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1375
1396
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1376
1397
|
}), t;
|
|
1377
1398
|
}
|
|
1378
|
-
function
|
|
1399
|
+
function Jt(e) {
|
|
1379
1400
|
switch (e) {
|
|
1380
1401
|
case "sign-auto":
|
|
1381
1402
|
return {
|
|
@@ -1415,7 +1436,7 @@ function Qt(e) {
|
|
|
1415
1436
|
};
|
|
1416
1437
|
}
|
|
1417
1438
|
}
|
|
1418
|
-
function
|
|
1439
|
+
function Tn(e) {
|
|
1419
1440
|
var t;
|
|
1420
1441
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1421
1442
|
notation: "engineering"
|
|
@@ -1423,17 +1444,17 @@ function Hn(e) {
|
|
|
1423
1444
|
notation: "scientific"
|
|
1424
1445
|
}, e = e.slice(1)), t) {
|
|
1425
1446
|
var r = e.slice(0, 2);
|
|
1426
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1447
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1427
1448
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1428
1449
|
t.minimumIntegerDigits = e.length;
|
|
1429
1450
|
}
|
|
1430
1451
|
return t;
|
|
1431
1452
|
}
|
|
1432
|
-
function
|
|
1433
|
-
var t = {}, r =
|
|
1453
|
+
function pt(e) {
|
|
1454
|
+
var t = {}, r = Jt(e);
|
|
1434
1455
|
return r || t;
|
|
1435
1456
|
}
|
|
1436
|
-
function
|
|
1457
|
+
function Bn(e) {
|
|
1437
1458
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1438
1459
|
var i = n[r];
|
|
1439
1460
|
switch (i.stem) {
|
|
@@ -1457,7 +1478,7 @@ function wn(e) {
|
|
|
1457
1478
|
continue;
|
|
1458
1479
|
case "measure-unit":
|
|
1459
1480
|
case "unit":
|
|
1460
|
-
t.style = "unit", t.unit =
|
|
1481
|
+
t.style = "unit", t.unit = wn(i.options[0]);
|
|
1461
1482
|
continue;
|
|
1462
1483
|
case "compact-short":
|
|
1463
1484
|
case "K":
|
|
@@ -1468,13 +1489,13 @@ function wn(e) {
|
|
|
1468
1489
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1469
1490
|
continue;
|
|
1470
1491
|
case "scientific":
|
|
1471
|
-
t =
|
|
1472
|
-
return
|
|
1492
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1493
|
+
return y(y({}, h), pt(u));
|
|
1473
1494
|
}, {}));
|
|
1474
1495
|
continue;
|
|
1475
1496
|
case "engineering":
|
|
1476
|
-
t =
|
|
1477
|
-
return
|
|
1497
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1498
|
+
return y(y({}, h), pt(u));
|
|
1478
1499
|
}, {}));
|
|
1479
1500
|
continue;
|
|
1480
1501
|
case "notation-simple":
|
|
@@ -1519,41 +1540,41 @@ function wn(e) {
|
|
|
1519
1540
|
case "integer-width":
|
|
1520
1541
|
if (i.options.length > 1)
|
|
1521
1542
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1522
|
-
i.options[0].replace(
|
|
1543
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, m) {
|
|
1523
1544
|
if (u)
|
|
1524
1545
|
t.minimumIntegerDigits = l.length;
|
|
1525
1546
|
else {
|
|
1526
1547
|
if (f && c)
|
|
1527
1548
|
throw new Error("We currently do not support maximum integer digits");
|
|
1528
|
-
if (
|
|
1549
|
+
if (m)
|
|
1529
1550
|
throw new Error("We currently do not support exact integer digits");
|
|
1530
1551
|
}
|
|
1531
1552
|
return "";
|
|
1532
1553
|
});
|
|
1533
1554
|
continue;
|
|
1534
1555
|
}
|
|
1535
|
-
if (
|
|
1556
|
+
if (Qt.test(i.stem)) {
|
|
1536
1557
|
t.minimumIntegerDigits = i.stem.length;
|
|
1537
1558
|
continue;
|
|
1538
1559
|
}
|
|
1539
|
-
if (
|
|
1560
|
+
if (ft.test(i.stem)) {
|
|
1540
1561
|
if (i.options.length > 1)
|
|
1541
1562
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1542
|
-
i.stem.replace(
|
|
1543
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1563
|
+
i.stem.replace(ft, function(h, u, l, f, c, m) {
|
|
1564
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1544
1565
|
});
|
|
1545
1566
|
var o = i.options[0];
|
|
1546
|
-
o === "w" ? t =
|
|
1567
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1547
1568
|
continue;
|
|
1548
1569
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
t =
|
|
1570
|
+
if (Zt.test(i.stem)) {
|
|
1571
|
+
t = y(y({}, t), ct(i.stem));
|
|
1551
1572
|
continue;
|
|
1552
1573
|
}
|
|
1553
|
-
var s =
|
|
1554
|
-
s && (t =
|
|
1555
|
-
var a =
|
|
1556
|
-
a && (t =
|
|
1574
|
+
var s = Jt(i.stem);
|
|
1575
|
+
s && (t = y(y({}, t), s));
|
|
1576
|
+
var a = Tn(i.stem);
|
|
1577
|
+
a && (t = y(y({}, t), a));
|
|
1557
1578
|
}
|
|
1558
1579
|
return t;
|
|
1559
1580
|
}
|
|
@@ -2972,13 +2993,13 @@ var se = {
|
|
|
2972
2993
|
"h"
|
|
2973
2994
|
]
|
|
2974
2995
|
};
|
|
2975
|
-
function
|
|
2996
|
+
function An(e, t) {
|
|
2976
2997
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2977
2998
|
var i = e.charAt(n);
|
|
2978
2999
|
if (i === "j") {
|
|
2979
3000
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2980
3001
|
o++, n++;
|
|
2981
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3002
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2982
3003
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2983
3004
|
r += h;
|
|
2984
3005
|
for (; s-- > 0; )
|
|
@@ -2988,7 +3009,7 @@ function Tn(e, t) {
|
|
|
2988
3009
|
}
|
|
2989
3010
|
return r;
|
|
2990
3011
|
}
|
|
2991
|
-
function
|
|
3012
|
+
function Pn(e) {
|
|
2992
3013
|
var t = e.hourCycle;
|
|
2993
3014
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2994
3015
|
e.hourCycles && // @ts-ignore
|
|
@@ -3010,20 +3031,20 @@ function Bn(e) {
|
|
|
3010
3031
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3011
3032
|
return i[0];
|
|
3012
3033
|
}
|
|
3013
|
-
var
|
|
3034
|
+
var Te, On = new RegExp("^".concat(zt.source, "*")), Cn = new RegExp("".concat(zt.source, "*$"));
|
|
3014
3035
|
function d(e, t) {
|
|
3015
3036
|
return { start: e, end: t };
|
|
3016
3037
|
}
|
|
3017
|
-
var
|
|
3038
|
+
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) {
|
|
3018
3039
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3019
|
-
},
|
|
3040
|
+
}, Ge = !0;
|
|
3020
3041
|
try {
|
|
3021
|
-
var
|
|
3022
|
-
|
|
3042
|
+
var Gn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3043
|
+
Ge = ((Te = Gn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
3023
3044
|
} catch {
|
|
3024
|
-
|
|
3045
|
+
Ge = !1;
|
|
3025
3046
|
}
|
|
3026
|
-
var
|
|
3047
|
+
var dt = Ln ? (
|
|
3027
3048
|
// Native
|
|
3028
3049
|
function(t, r, n) {
|
|
3029
3050
|
return t.startsWith(r, n);
|
|
@@ -3033,7 +3054,7 @@ var ct = Cn ? (
|
|
|
3033
3054
|
function(t, r, n) {
|
|
3034
3055
|
return t.slice(n, n + r.length) === r;
|
|
3035
3056
|
}
|
|
3036
|
-
),
|
|
3057
|
+
), Fe = In ? String.fromCodePoint : (
|
|
3037
3058
|
// IE11
|
|
3038
3059
|
function() {
|
|
3039
3060
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3045,9 +3066,9 @@ var ct = Cn ? (
|
|
|
3045
3066
|
}
|
|
3046
3067
|
return n;
|
|
3047
3068
|
}
|
|
3048
|
-
),
|
|
3069
|
+
), mt = (
|
|
3049
3070
|
// native
|
|
3050
|
-
|
|
3071
|
+
Nn ? Object.fromEntries : (
|
|
3051
3072
|
// Ponyfill
|
|
3052
3073
|
function(t) {
|
|
3053
3074
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3057,7 +3078,7 @@ var ct = Cn ? (
|
|
|
3057
3078
|
return r;
|
|
3058
3079
|
}
|
|
3059
3080
|
)
|
|
3060
|
-
),
|
|
3081
|
+
), qt = Mn ? (
|
|
3061
3082
|
// Native
|
|
3062
3083
|
function(t, r) {
|
|
3063
3084
|
return t.codePointAt(r);
|
|
@@ -3071,7 +3092,7 @@ var ct = Cn ? (
|
|
|
3071
3092
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3072
3093
|
}
|
|
3073
3094
|
}
|
|
3074
|
-
),
|
|
3095
|
+
), Fn = $n ? (
|
|
3075
3096
|
// Native
|
|
3076
3097
|
function(t) {
|
|
3077
3098
|
return t.trimStart();
|
|
@@ -3079,9 +3100,9 @@ var ct = Cn ? (
|
|
|
3079
3100
|
) : (
|
|
3080
3101
|
// Ponyfill
|
|
3081
3102
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3103
|
+
return t.replace(On, "");
|
|
3083
3104
|
}
|
|
3084
|
-
),
|
|
3105
|
+
), jn = Rn ? (
|
|
3085
3106
|
// Native
|
|
3086
3107
|
function(t) {
|
|
3087
3108
|
return t.trimEnd();
|
|
@@ -3089,32 +3110,32 @@ var ct = Cn ? (
|
|
|
3089
3110
|
) : (
|
|
3090
3111
|
// Ponyfill
|
|
3091
3112
|
function(t) {
|
|
3092
|
-
return t.replace(
|
|
3113
|
+
return t.replace(Cn, "");
|
|
3093
3114
|
}
|
|
3094
3115
|
);
|
|
3095
|
-
function
|
|
3116
|
+
function Yt(e, t) {
|
|
3096
3117
|
return new RegExp(e, t);
|
|
3097
3118
|
}
|
|
3098
|
-
var
|
|
3099
|
-
if (
|
|
3100
|
-
var
|
|
3101
|
-
|
|
3119
|
+
var je;
|
|
3120
|
+
if (Ge) {
|
|
3121
|
+
var bt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3122
|
+
je = function(t, r) {
|
|
3102
3123
|
var n;
|
|
3103
|
-
|
|
3104
|
-
var i =
|
|
3124
|
+
bt.lastIndex = r;
|
|
3125
|
+
var i = bt.exec(t);
|
|
3105
3126
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3106
3127
|
};
|
|
3107
3128
|
} else
|
|
3108
|
-
|
|
3129
|
+
je = function(t, r) {
|
|
3109
3130
|
for (var n = []; ; ) {
|
|
3110
|
-
var i =
|
|
3111
|
-
if (i === void 0 ||
|
|
3131
|
+
var i = qt(t, r);
|
|
3132
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3112
3133
|
break;
|
|
3113
3134
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3114
3135
|
}
|
|
3115
|
-
return
|
|
3136
|
+
return Fe.apply(void 0, n);
|
|
3116
3137
|
};
|
|
3117
|
-
var
|
|
3138
|
+
var Vn = (
|
|
3118
3139
|
/** @class */
|
|
3119
3140
|
function() {
|
|
3120
3141
|
function e(t, r) {
|
|
@@ -3138,14 +3159,14 @@ var Fn = (
|
|
|
3138
3159
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3139
3160
|
var a = this.clonePosition();
|
|
3140
3161
|
this.bump(), i.push({
|
|
3141
|
-
type:
|
|
3162
|
+
type: g.pound,
|
|
3142
3163
|
location: d(a, this.clonePosition())
|
|
3143
3164
|
});
|
|
3144
3165
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3145
3166
|
if (n)
|
|
3146
3167
|
break;
|
|
3147
3168
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3148
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3169
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3149
3170
|
var s = this.parseTag(t, r);
|
|
3150
3171
|
if (s.err)
|
|
3151
3172
|
return s;
|
|
@@ -3166,7 +3187,7 @@ var Fn = (
|
|
|
3166
3187
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3167
3188
|
return {
|
|
3168
3189
|
val: {
|
|
3169
|
-
type:
|
|
3190
|
+
type: g.literal,
|
|
3170
3191
|
value: "<".concat(i, "/>"),
|
|
3171
3192
|
location: d(n, this.clonePosition())
|
|
3172
3193
|
},
|
|
@@ -3178,12 +3199,12 @@ var Fn = (
|
|
|
3178
3199
|
return o;
|
|
3179
3200
|
var s = o.val, a = this.clonePosition();
|
|
3180
3201
|
if (this.bumpIf("</")) {
|
|
3181
|
-
if (this.isEOF() || !
|
|
3202
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3182
3203
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3183
3204
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3184
3205
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3185
3206
|
val: {
|
|
3186
|
-
type:
|
|
3207
|
+
type: g.tag,
|
|
3187
3208
|
value: i,
|
|
3188
3209
|
children: s,
|
|
3189
3210
|
location: d(n, this.clonePosition())
|
|
@@ -3196,7 +3217,7 @@ var Fn = (
|
|
|
3196
3217
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3197
3218
|
}, e.prototype.parseTagName = function() {
|
|
3198
3219
|
var t = this.offset();
|
|
3199
|
-
for (this.bump(); !this.isEOF() &&
|
|
3220
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3200
3221
|
this.bump();
|
|
3201
3222
|
return this.message.slice(t, this.offset());
|
|
3202
3223
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3220,12 +3241,12 @@ var Fn = (
|
|
|
3220
3241
|
}
|
|
3221
3242
|
var h = d(n, this.clonePosition());
|
|
3222
3243
|
return {
|
|
3223
|
-
val: { type:
|
|
3244
|
+
val: { type: g.literal, value: i, location: h },
|
|
3224
3245
|
err: null
|
|
3225
3246
|
};
|
|
3226
3247
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3227
3248
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3228
|
-
!
|
|
3249
|
+
!kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3229
3250
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3230
3251
|
if (this.isEOF() || this.char() !== 39)
|
|
3231
3252
|
return null;
|
|
@@ -3259,12 +3280,12 @@ var Fn = (
|
|
|
3259
3280
|
r.push(n);
|
|
3260
3281
|
this.bump();
|
|
3261
3282
|
}
|
|
3262
|
-
return
|
|
3283
|
+
return Fe.apply(void 0, r);
|
|
3263
3284
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3264
3285
|
if (this.isEOF())
|
|
3265
3286
|
return null;
|
|
3266
3287
|
var n = this.char();
|
|
3267
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3288
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3268
3289
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3269
3290
|
var n = this.clonePosition();
|
|
3270
3291
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3280,7 +3301,7 @@ var Fn = (
|
|
|
3280
3301
|
case 125:
|
|
3281
3302
|
return this.bump(), {
|
|
3282
3303
|
val: {
|
|
3283
|
-
type:
|
|
3304
|
+
type: g.argument,
|
|
3284
3305
|
// value does not include the opening and closing braces.
|
|
3285
3306
|
value: i,
|
|
3286
3307
|
location: d(n, this.clonePosition())
|
|
@@ -3293,7 +3314,7 @@ var Fn = (
|
|
|
3293
3314
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3294
3315
|
}
|
|
3295
3316
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3296
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3317
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3297
3318
|
this.bumpTo(i);
|
|
3298
3319
|
var o = this.clonePosition(), s = d(t, o);
|
|
3299
3320
|
return { value: n, location: s };
|
|
@@ -3312,46 +3333,46 @@ var Fn = (
|
|
|
3312
3333
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3313
3334
|
if (f.err)
|
|
3314
3335
|
return f;
|
|
3315
|
-
var c =
|
|
3336
|
+
var c = jn(f.val);
|
|
3316
3337
|
if (c.length === 0)
|
|
3317
3338
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3318
|
-
var
|
|
3319
|
-
u = { style: c, styleLocation:
|
|
3339
|
+
var m = d(l, this.clonePosition());
|
|
3340
|
+
u = { style: c, styleLocation: m };
|
|
3320
3341
|
}
|
|
3321
|
-
var
|
|
3322
|
-
if (
|
|
3323
|
-
return
|
|
3324
|
-
var
|
|
3325
|
-
if (u &&
|
|
3326
|
-
var
|
|
3342
|
+
var v = this.tryParseArgumentClose(i);
|
|
3343
|
+
if (v.err)
|
|
3344
|
+
return v;
|
|
3345
|
+
var b = d(i, this.clonePosition());
|
|
3346
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3347
|
+
var w = Fn(u.style.slice(2));
|
|
3327
3348
|
if (a === "number") {
|
|
3328
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3349
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3329
3350
|
return f.err ? f : {
|
|
3330
|
-
val: { type:
|
|
3351
|
+
val: { type: g.number, value: n, location: b, style: f.val },
|
|
3331
3352
|
err: null
|
|
3332
3353
|
};
|
|
3333
3354
|
} else {
|
|
3334
|
-
if (
|
|
3335
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3336
|
-
var E =
|
|
3337
|
-
this.locale && (E =
|
|
3355
|
+
if (w.length === 0)
|
|
3356
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3357
|
+
var E = w;
|
|
3358
|
+
this.locale && (E = An(w, this.locale));
|
|
3338
3359
|
var c = {
|
|
3339
|
-
type:
|
|
3360
|
+
type: G.dateTime,
|
|
3340
3361
|
pattern: E,
|
|
3341
3362
|
location: u.styleLocation,
|
|
3342
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3343
|
-
}, I = a === "date" ?
|
|
3363
|
+
parsedOptions: this.shouldParseSkeletons ? En(E) : {}
|
|
3364
|
+
}, I = a === "date" ? g.date : g.time;
|
|
3344
3365
|
return {
|
|
3345
|
-
val: { type: I, value: n, location:
|
|
3366
|
+
val: { type: I, value: n, location: b, style: c },
|
|
3346
3367
|
err: null
|
|
3347
3368
|
};
|
|
3348
3369
|
}
|
|
3349
3370
|
}
|
|
3350
3371
|
return {
|
|
3351
3372
|
val: {
|
|
3352
|
-
type: a === "number" ?
|
|
3373
|
+
type: a === "number" ? g.number : a === "date" ? g.date : g.time,
|
|
3353
3374
|
value: n,
|
|
3354
|
-
location:
|
|
3375
|
+
location: b,
|
|
3355
3376
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3356
3377
|
},
|
|
3357
3378
|
err: null
|
|
@@ -3360,43 +3381,43 @@ var Fn = (
|
|
|
3360
3381
|
case "plural":
|
|
3361
3382
|
case "selectordinal":
|
|
3362
3383
|
case "select": {
|
|
3363
|
-
var
|
|
3384
|
+
var H = this.clonePosition();
|
|
3364
3385
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3365
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3386
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(H, ce({}, H)));
|
|
3366
3387
|
this.bumpSpace();
|
|
3367
|
-
var
|
|
3368
|
-
if (a !== "select" &&
|
|
3388
|
+
var W = this.parseIdentifierIfPossible(), O = 0;
|
|
3389
|
+
if (a !== "select" && W.value === "offset") {
|
|
3369
3390
|
if (!this.bumpIf(":"))
|
|
3370
3391
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3371
3392
|
this.bumpSpace();
|
|
3372
3393
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3373
3394
|
if (f.err)
|
|
3374
3395
|
return f;
|
|
3375
|
-
this.bumpSpace(),
|
|
3396
|
+
this.bumpSpace(), W = this.parseIdentifierIfPossible(), O = f.val;
|
|
3376
3397
|
}
|
|
3377
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3398
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, W);
|
|
3378
3399
|
if (ne.err)
|
|
3379
3400
|
return ne;
|
|
3380
|
-
var
|
|
3381
|
-
if (
|
|
3382
|
-
return
|
|
3383
|
-
var
|
|
3401
|
+
var v = this.tryParseArgumentClose(i);
|
|
3402
|
+
if (v.err)
|
|
3403
|
+
return v;
|
|
3404
|
+
var Je = d(i, this.clonePosition());
|
|
3384
3405
|
return a === "select" ? {
|
|
3385
3406
|
val: {
|
|
3386
|
-
type:
|
|
3407
|
+
type: g.select,
|
|
3387
3408
|
value: n,
|
|
3388
|
-
options:
|
|
3389
|
-
location:
|
|
3409
|
+
options: mt(ne.val),
|
|
3410
|
+
location: Je
|
|
3390
3411
|
},
|
|
3391
3412
|
err: null
|
|
3392
3413
|
} : {
|
|
3393
3414
|
val: {
|
|
3394
|
-
type:
|
|
3415
|
+
type: g.plural,
|
|
3395
3416
|
value: n,
|
|
3396
|
-
options:
|
|
3397
|
-
offset:
|
|
3417
|
+
options: mt(ne.val),
|
|
3418
|
+
offset: O,
|
|
3398
3419
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3399
|
-
location:
|
|
3420
|
+
location: Je
|
|
3400
3421
|
},
|
|
3401
3422
|
err: null
|
|
3402
3423
|
};
|
|
@@ -3444,16 +3465,16 @@ var Fn = (
|
|
|
3444
3465
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3445
3466
|
var n = [];
|
|
3446
3467
|
try {
|
|
3447
|
-
n =
|
|
3468
|
+
n = Sn(t);
|
|
3448
3469
|
} catch {
|
|
3449
3470
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3450
3471
|
}
|
|
3451
3472
|
return {
|
|
3452
3473
|
val: {
|
|
3453
|
-
type:
|
|
3474
|
+
type: G.number,
|
|
3454
3475
|
tokens: n,
|
|
3455
3476
|
location: r,
|
|
3456
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3477
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3457
3478
|
},
|
|
3458
3479
|
err: null
|
|
3459
3480
|
};
|
|
@@ -3472,20 +3493,20 @@ var Fn = (
|
|
|
3472
3493
|
if (h.has(u))
|
|
3473
3494
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3474
3495
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3475
|
-
var
|
|
3496
|
+
var m = this.clonePosition();
|
|
3476
3497
|
if (!this.bumpIf("{"))
|
|
3477
3498
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3478
|
-
var
|
|
3479
|
-
if (g.err)
|
|
3480
|
-
return g;
|
|
3481
|
-
var v = this.tryParseArgumentClose(b);
|
|
3499
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3482
3500
|
if (v.err)
|
|
3483
3501
|
return v;
|
|
3502
|
+
var b = this.tryParseArgumentClose(m);
|
|
3503
|
+
if (b.err)
|
|
3504
|
+
return b;
|
|
3484
3505
|
a.push([
|
|
3485
3506
|
u,
|
|
3486
3507
|
{
|
|
3487
|
-
value:
|
|
3488
|
-
location: d(
|
|
3508
|
+
value: v.val,
|
|
3509
|
+
location: d(m, this.clonePosition())
|
|
3489
3510
|
}
|
|
3490
3511
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3491
3512
|
}
|
|
@@ -3501,7 +3522,7 @@ var Fn = (
|
|
|
3501
3522
|
break;
|
|
3502
3523
|
}
|
|
3503
3524
|
var h = d(i, this.clonePosition());
|
|
3504
|
-
return o ? (s *= n,
|
|
3525
|
+
return o ? (s *= n, Dn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3505
3526
|
}, e.prototype.offset = function() {
|
|
3506
3527
|
return this.position.offset;
|
|
3507
3528
|
}, e.prototype.isEOF = function() {
|
|
@@ -3516,7 +3537,7 @@ var Fn = (
|
|
|
3516
3537
|
var t = this.position.offset;
|
|
3517
3538
|
if (t >= this.message.length)
|
|
3518
3539
|
throw Error("out of bound");
|
|
3519
|
-
var r =
|
|
3540
|
+
var r = qt(this.message, t);
|
|
3520
3541
|
if (r === void 0)
|
|
3521
3542
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3522
3543
|
return r;
|
|
@@ -3535,7 +3556,7 @@ var Fn = (
|
|
|
3535
3556
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3536
3557
|
}
|
|
3537
3558
|
}, e.prototype.bumpIf = function(t) {
|
|
3538
|
-
if (
|
|
3559
|
+
if (dt(this.message, t, this.offset())) {
|
|
3539
3560
|
for (var r = 0; r < t.length; r++)
|
|
3540
3561
|
this.bump();
|
|
3541
3562
|
return !0;
|
|
@@ -3557,7 +3578,7 @@ var Fn = (
|
|
|
3557
3578
|
break;
|
|
3558
3579
|
}
|
|
3559
3580
|
}, e.prototype.bumpSpace = function() {
|
|
3560
|
-
for (; !this.isEOF() &&
|
|
3581
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3561
3582
|
this.bump();
|
|
3562
3583
|
}, e.prototype.peek = function() {
|
|
3563
3584
|
if (this.isEOF())
|
|
@@ -3567,47 +3588,47 @@ var Fn = (
|
|
|
3567
3588
|
}, e;
|
|
3568
3589
|
}()
|
|
3569
3590
|
);
|
|
3570
|
-
function
|
|
3591
|
+
function Ve(e) {
|
|
3571
3592
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3572
3593
|
}
|
|
3573
|
-
function
|
|
3574
|
-
return
|
|
3594
|
+
function kn(e) {
|
|
3595
|
+
return Ve(e) || e === 47;
|
|
3575
3596
|
}
|
|
3576
|
-
function
|
|
3597
|
+
function Xn(e) {
|
|
3577
3598
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3578
3599
|
}
|
|
3579
|
-
function
|
|
3600
|
+
function Kt(e) {
|
|
3580
3601
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3581
3602
|
}
|
|
3582
|
-
function
|
|
3603
|
+
function Wn(e) {
|
|
3583
3604
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3584
3605
|
}
|
|
3585
|
-
function
|
|
3606
|
+
function ke(e) {
|
|
3586
3607
|
e.forEach(function(t) {
|
|
3587
|
-
if (delete t.location,
|
|
3608
|
+
if (delete t.location, Vt(t) || kt(t))
|
|
3588
3609
|
for (var r in t.options)
|
|
3589
|
-
delete t.options[r].location,
|
|
3610
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3590
3611
|
else
|
|
3591
|
-
|
|
3612
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && De(t.style) ? delete t.style.location : Xt(t) && ke(t.children);
|
|
3592
3613
|
});
|
|
3593
3614
|
}
|
|
3594
|
-
function
|
|
3595
|
-
t === void 0 && (t = {}), t =
|
|
3596
|
-
var r = new
|
|
3615
|
+
function zn(e, t) {
|
|
3616
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3617
|
+
var r = new Vn(e, t).parse();
|
|
3597
3618
|
if (r.err) {
|
|
3598
3619
|
var n = SyntaxError(p[r.err.kind]);
|
|
3599
3620
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3600
3621
|
}
|
|
3601
|
-
return t?.captureLocation ||
|
|
3622
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3602
3623
|
}
|
|
3603
|
-
var
|
|
3624
|
+
var F;
|
|
3604
3625
|
(function(e) {
|
|
3605
3626
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3606
|
-
})(
|
|
3607
|
-
var
|
|
3627
|
+
})(F || (F = {}));
|
|
3628
|
+
var ge = (
|
|
3608
3629
|
/** @class */
|
|
3609
3630
|
function(e) {
|
|
3610
|
-
|
|
3631
|
+
ve(t, e);
|
|
3611
3632
|
function t(r, n, i) {
|
|
3612
3633
|
var o = e.call(this, r) || this;
|
|
3613
3634
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3616,48 +3637,48 @@ var be = (
|
|
|
3616
3637
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3617
3638
|
}, t;
|
|
3618
3639
|
}(Error)
|
|
3619
|
-
),
|
|
3640
|
+
), vt = (
|
|
3620
3641
|
/** @class */
|
|
3621
3642
|
function(e) {
|
|
3622
|
-
|
|
3643
|
+
ve(t, e);
|
|
3623
3644
|
function t(r, n, i, o) {
|
|
3624
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3645
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, o) || this;
|
|
3625
3646
|
}
|
|
3626
3647
|
return t;
|
|
3627
|
-
}(
|
|
3628
|
-
),
|
|
3648
|
+
}(ge)
|
|
3649
|
+
), Zn = (
|
|
3629
3650
|
/** @class */
|
|
3630
3651
|
function(e) {
|
|
3631
|
-
|
|
3652
|
+
ve(t, e);
|
|
3632
3653
|
function t(r, n, i) {
|
|
3633
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3654
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3634
3655
|
}
|
|
3635
3656
|
return t;
|
|
3636
|
-
}(
|
|
3637
|
-
),
|
|
3657
|
+
}(ge)
|
|
3658
|
+
), Qn = (
|
|
3638
3659
|
/** @class */
|
|
3639
3660
|
function(e) {
|
|
3640
|
-
|
|
3661
|
+
ve(t, e);
|
|
3641
3662
|
function t(r, n) {
|
|
3642
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3663
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3643
3664
|
}
|
|
3644
3665
|
return t;
|
|
3645
|
-
}(
|
|
3666
|
+
}(ge)
|
|
3646
3667
|
), x;
|
|
3647
3668
|
(function(e) {
|
|
3648
3669
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3649
3670
|
})(x || (x = {}));
|
|
3650
|
-
function
|
|
3671
|
+
function Jn(e) {
|
|
3651
3672
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3652
3673
|
var n = t[t.length - 1];
|
|
3653
3674
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3654
3675
|
}, []);
|
|
3655
3676
|
}
|
|
3656
|
-
function
|
|
3677
|
+
function qn(e) {
|
|
3657
3678
|
return typeof e == "function";
|
|
3658
3679
|
}
|
|
3659
3680
|
function he(e, t, r, n, i, o, s) {
|
|
3660
|
-
if (e.length === 1 &&
|
|
3681
|
+
if (e.length === 1 && lt(e[0]))
|
|
3661
3682
|
return [
|
|
3662
3683
|
{
|
|
3663
3684
|
type: x.literal,
|
|
@@ -3666,14 +3687,14 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3666
3687
|
];
|
|
3667
3688
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3668
3689
|
var l = u[h];
|
|
3669
|
-
if (
|
|
3690
|
+
if (lt(l)) {
|
|
3670
3691
|
a.push({
|
|
3671
3692
|
type: x.literal,
|
|
3672
3693
|
value: l.value
|
|
3673
3694
|
});
|
|
3674
3695
|
continue;
|
|
3675
3696
|
}
|
|
3676
|
-
if (
|
|
3697
|
+
if (yn(l)) {
|
|
3677
3698
|
typeof o == "number" && a.push({
|
|
3678
3699
|
type: x.literal,
|
|
3679
3700
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3682,89 +3703,89 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3682
3703
|
}
|
|
3683
3704
|
var f = l.value;
|
|
3684
3705
|
if (!(i && f in i))
|
|
3685
|
-
throw new
|
|
3706
|
+
throw new Qn(f, s);
|
|
3686
3707
|
var c = i[f];
|
|
3687
|
-
if (
|
|
3708
|
+
if (gn(l)) {
|
|
3688
3709
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3689
3710
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3690
3711
|
value: c
|
|
3691
3712
|
});
|
|
3692
3713
|
continue;
|
|
3693
3714
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3715
|
+
if (Ft(l)) {
|
|
3716
|
+
var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3696
3717
|
a.push({
|
|
3697
3718
|
type: x.literal,
|
|
3698
|
-
value: r.getDateTimeFormat(t,
|
|
3719
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3699
3720
|
});
|
|
3700
3721
|
continue;
|
|
3701
3722
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var
|
|
3723
|
+
if (jt(l)) {
|
|
3724
|
+
var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3704
3725
|
a.push({
|
|
3705
3726
|
type: x.literal,
|
|
3706
|
-
value: r.getDateTimeFormat(t,
|
|
3727
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3707
3728
|
});
|
|
3708
3729
|
continue;
|
|
3709
3730
|
}
|
|
3710
|
-
if (
|
|
3711
|
-
var
|
|
3712
|
-
|
|
3731
|
+
if (Gt(l)) {
|
|
3732
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3733
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3713
3734
|
type: x.literal,
|
|
3714
|
-
value: r.getNumberFormat(t,
|
|
3735
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3715
3736
|
});
|
|
3716
3737
|
continue;
|
|
3717
3738
|
}
|
|
3718
|
-
if (
|
|
3719
|
-
var
|
|
3720
|
-
if (!
|
|
3721
|
-
throw new
|
|
3722
|
-
var E = he(
|
|
3723
|
-
return
|
|
3739
|
+
if (Xt(l)) {
|
|
3740
|
+
var v = l.children, b = l.value, w = i[b];
|
|
3741
|
+
if (!qn(w))
|
|
3742
|
+
throw new Zn(b, "function", s);
|
|
3743
|
+
var E = he(v, t, r, n, i, o), I = w(E.map(function(O) {
|
|
3744
|
+
return O.value;
|
|
3724
3745
|
}));
|
|
3725
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3746
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(O) {
|
|
3726
3747
|
return {
|
|
3727
|
-
type: typeof
|
|
3728
|
-
value:
|
|
3748
|
+
type: typeof O == "string" ? x.literal : x.object,
|
|
3749
|
+
value: O
|
|
3729
3750
|
};
|
|
3730
3751
|
}));
|
|
3731
3752
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3735
|
-
throw new
|
|
3736
|
-
a.push.apply(a, he(
|
|
3753
|
+
if (Vt(l)) {
|
|
3754
|
+
var H = l.options[c] || l.options.other;
|
|
3755
|
+
if (!H)
|
|
3756
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3757
|
+
a.push.apply(a, he(H.value, t, r, n, i));
|
|
3737
3758
|
continue;
|
|
3738
3759
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var
|
|
3741
|
-
if (!
|
|
3760
|
+
if (kt(l)) {
|
|
3761
|
+
var H = l.options["=".concat(c)];
|
|
3762
|
+
if (!H) {
|
|
3742
3763
|
if (!Intl.PluralRules)
|
|
3743
|
-
throw new
|
|
3764
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3744
3765
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3745
|
-
`,
|
|
3746
|
-
var
|
|
3747
|
-
|
|
3766
|
+
`, F.MISSING_INTL_API, s);
|
|
3767
|
+
var W = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3768
|
+
H = l.options[W] || l.options.other;
|
|
3748
3769
|
}
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3751
|
-
a.push.apply(a, he(
|
|
3770
|
+
if (!H)
|
|
3771
|
+
throw new vt(l.value, c, Object.keys(l.options), s);
|
|
3772
|
+
a.push.apply(a, he(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3752
3773
|
continue;
|
|
3753
3774
|
}
|
|
3754
3775
|
}
|
|
3755
|
-
return
|
|
3776
|
+
return Jn(a);
|
|
3756
3777
|
}
|
|
3757
|
-
function
|
|
3758
|
-
return t ?
|
|
3759
|
-
return r[n] =
|
|
3778
|
+
function Yn(e, t) {
|
|
3779
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3780
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3760
3781
|
}, {})) : e;
|
|
3761
3782
|
}
|
|
3762
|
-
function
|
|
3783
|
+
function Kn(e, t) {
|
|
3763
3784
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3764
|
-
return r[n] =
|
|
3765
|
-
},
|
|
3785
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3786
|
+
}, T({}, e)) : e;
|
|
3766
3787
|
}
|
|
3767
|
-
function
|
|
3788
|
+
function Be(e) {
|
|
3768
3789
|
return {
|
|
3769
3790
|
create: function() {
|
|
3770
3791
|
return {
|
|
@@ -3778,39 +3799,39 @@ function we(e) {
|
|
|
3778
3799
|
}
|
|
3779
3800
|
};
|
|
3780
3801
|
}
|
|
3781
|
-
function
|
|
3802
|
+
function ei(e) {
|
|
3782
3803
|
return e === void 0 && (e = {
|
|
3783
3804
|
number: {},
|
|
3784
3805
|
dateTime: {},
|
|
3785
3806
|
pluralRules: {}
|
|
3786
3807
|
}), {
|
|
3787
|
-
getNumberFormat:
|
|
3808
|
+
getNumberFormat: we(function() {
|
|
3788
3809
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3810
|
r[n] = arguments[n];
|
|
3790
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3811
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3791
3812
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3813
|
+
cache: Be(e.number),
|
|
3814
|
+
strategy: He.variadic
|
|
3794
3815
|
}),
|
|
3795
|
-
getDateTimeFormat:
|
|
3816
|
+
getDateTimeFormat: we(function() {
|
|
3796
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3797
3818
|
r[n] = arguments[n];
|
|
3798
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3819
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3799
3820
|
}, {
|
|
3800
|
-
cache:
|
|
3801
|
-
strategy:
|
|
3821
|
+
cache: Be(e.dateTime),
|
|
3822
|
+
strategy: He.variadic
|
|
3802
3823
|
}),
|
|
3803
|
-
getPluralRules:
|
|
3824
|
+
getPluralRules: we(function() {
|
|
3804
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3805
3826
|
r[n] = arguments[n];
|
|
3806
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3827
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3807
3828
|
}, {
|
|
3808
|
-
cache:
|
|
3809
|
-
strategy:
|
|
3829
|
+
cache: Be(e.pluralRules),
|
|
3830
|
+
strategy: He.variadic
|
|
3810
3831
|
})
|
|
3811
3832
|
};
|
|
3812
3833
|
}
|
|
3813
|
-
var
|
|
3834
|
+
var ti = (
|
|
3814
3835
|
/** @class */
|
|
3815
3836
|
function() {
|
|
3816
3837
|
function e(t, r, n, i) {
|
|
@@ -3842,13 +3863,13 @@ var Kn = (
|
|
|
3842
3863
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3843
3864
|
var s = i || {};
|
|
3844
3865
|
s.formatters;
|
|
3845
|
-
var a =
|
|
3846
|
-
this.ast = e.__parse(t,
|
|
3866
|
+
var a = ln(s, ["formatters"]);
|
|
3867
|
+
this.ast = e.__parse(t, T(T({}, a), { locale: this.resolvedLocale }));
|
|
3847
3868
|
} else
|
|
3848
3869
|
this.ast = t;
|
|
3849
3870
|
if (!Array.isArray(this.ast))
|
|
3850
3871
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3851
|
-
this.formats =
|
|
3872
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3852
3873
|
}
|
|
3853
3874
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3854
3875
|
get: function() {
|
|
@@ -3861,7 +3882,7 @@ var Kn = (
|
|
|
3861
3882
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3862
3883
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3863
3884
|
}
|
|
3864
|
-
}, e.__parse =
|
|
3885
|
+
}, e.__parse = zn, e.formats = {
|
|
3865
3886
|
number: {
|
|
3866
3887
|
integer: {
|
|
3867
3888
|
maximumFractionDigits: 0
|
|
@@ -3922,7 +3943,7 @@ var Kn = (
|
|
|
3922
3943
|
}, e;
|
|
3923
3944
|
}()
|
|
3924
3945
|
);
|
|
3925
|
-
function
|
|
3946
|
+
function ri(e, t) {
|
|
3926
3947
|
if (t == null)
|
|
3927
3948
|
return;
|
|
3928
3949
|
if (t in e)
|
|
@@ -3943,92 +3964,92 @@ function ei(e, t) {
|
|
|
3943
3964
|
n = void 0;
|
|
3944
3965
|
return n;
|
|
3945
3966
|
}
|
|
3946
|
-
const P = {},
|
|
3967
|
+
const P = {}, ni = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), er = (e, t) => {
|
|
3947
3968
|
if (t == null)
|
|
3948
3969
|
return;
|
|
3949
3970
|
if (t in P && e in P[t])
|
|
3950
3971
|
return P[t][e];
|
|
3951
|
-
const r =
|
|
3972
|
+
const r = ye(t);
|
|
3952
3973
|
for (let n = 0; n < r.length; n++) {
|
|
3953
|
-
const i = r[n], o =
|
|
3974
|
+
const i = r[n], o = oi(i, e);
|
|
3954
3975
|
if (o)
|
|
3955
|
-
return
|
|
3976
|
+
return ni(e, t, o);
|
|
3956
3977
|
}
|
|
3957
3978
|
};
|
|
3958
|
-
let
|
|
3959
|
-
const te =
|
|
3960
|
-
function
|
|
3961
|
-
return
|
|
3979
|
+
let Ze;
|
|
3980
|
+
const te = be({});
|
|
3981
|
+
function ii(e) {
|
|
3982
|
+
return Ze[e] || null;
|
|
3962
3983
|
}
|
|
3963
|
-
function
|
|
3964
|
-
return e in
|
|
3984
|
+
function tr(e) {
|
|
3985
|
+
return e in Ze;
|
|
3965
3986
|
}
|
|
3966
|
-
function
|
|
3967
|
-
if (!
|
|
3987
|
+
function oi(e, t) {
|
|
3988
|
+
if (!tr(e))
|
|
3968
3989
|
return null;
|
|
3969
|
-
const r =
|
|
3970
|
-
return
|
|
3990
|
+
const r = ii(e);
|
|
3991
|
+
return ri(r, t);
|
|
3971
3992
|
}
|
|
3972
|
-
function
|
|
3993
|
+
function si(e) {
|
|
3973
3994
|
if (e == null)
|
|
3974
3995
|
return;
|
|
3975
|
-
const t =
|
|
3996
|
+
const t = ye(e);
|
|
3976
3997
|
for (let r = 0; r < t.length; r++) {
|
|
3977
3998
|
const n = t[r];
|
|
3978
|
-
if (
|
|
3999
|
+
if (tr(n))
|
|
3979
4000
|
return n;
|
|
3980
4001
|
}
|
|
3981
4002
|
}
|
|
3982
|
-
function
|
|
4003
|
+
function ai(e, ...t) {
|
|
3983
4004
|
delete P[e], te.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
3984
4005
|
}
|
|
3985
|
-
|
|
4006
|
+
k(
|
|
3986
4007
|
[te],
|
|
3987
4008
|
([e]) => Object.keys(e)
|
|
3988
4009
|
);
|
|
3989
|
-
te.subscribe((e) =>
|
|
4010
|
+
te.subscribe((e) => Ze = e);
|
|
3990
4011
|
const le = {};
|
|
3991
|
-
function
|
|
4012
|
+
function ui(e, t) {
|
|
3992
4013
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3993
4014
|
}
|
|
3994
|
-
function
|
|
4015
|
+
function rr(e) {
|
|
3995
4016
|
return le[e];
|
|
3996
4017
|
}
|
|
3997
|
-
function
|
|
3998
|
-
return
|
|
3999
|
-
const r =
|
|
4018
|
+
function hi(e) {
|
|
4019
|
+
return ye(e).map((t) => {
|
|
4020
|
+
const r = rr(t);
|
|
4000
4021
|
return [t, r ? [...r] : []];
|
|
4001
4022
|
}).filter(([, t]) => t.length > 0);
|
|
4002
4023
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return e == null ? !1 :
|
|
4024
|
+
function Xe(e) {
|
|
4025
|
+
return e == null ? !1 : ye(e).some(
|
|
4005
4026
|
(t) => {
|
|
4006
4027
|
var r;
|
|
4007
|
-
return (r =
|
|
4028
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
4008
4029
|
}
|
|
4009
4030
|
);
|
|
4010
4031
|
}
|
|
4011
|
-
function
|
|
4032
|
+
function li(e, t) {
|
|
4012
4033
|
return Promise.all(
|
|
4013
|
-
t.map((n) => (
|
|
4014
|
-
).then((n) =>
|
|
4015
|
-
}
|
|
4016
|
-
const
|
|
4017
|
-
function
|
|
4018
|
-
if (!
|
|
4019
|
-
return e in
|
|
4020
|
-
const t =
|
|
4021
|
-
return
|
|
4034
|
+
t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
|
|
4035
|
+
).then((n) => ai(e, ...n));
|
|
4036
|
+
}
|
|
4037
|
+
const z = {};
|
|
4038
|
+
function nr(e) {
|
|
4039
|
+
if (!Xe(e))
|
|
4040
|
+
return e in z ? z[e] : Promise.resolve();
|
|
4041
|
+
const t = hi(e);
|
|
4042
|
+
return z[e] = Promise.all(
|
|
4022
4043
|
t.map(
|
|
4023
|
-
([r, n]) =>
|
|
4044
|
+
([r, n]) => li(r, n)
|
|
4024
4045
|
)
|
|
4025
4046
|
).then(() => {
|
|
4026
|
-
if (
|
|
4027
|
-
return
|
|
4028
|
-
delete
|
|
4029
|
-
}),
|
|
4047
|
+
if (Xe(e))
|
|
4048
|
+
return nr(e);
|
|
4049
|
+
delete z[e];
|
|
4050
|
+
}), z[e];
|
|
4030
4051
|
}
|
|
4031
|
-
const
|
|
4052
|
+
const fi = {
|
|
4032
4053
|
number: {
|
|
4033
4054
|
scientific: { notation: "scientific" },
|
|
4034
4055
|
engineering: { notation: "engineering" },
|
|
@@ -4057,135 +4078,135 @@ const hi = {
|
|
|
4057
4078
|
timeZoneName: "short"
|
|
4058
4079
|
}
|
|
4059
4080
|
}
|
|
4060
|
-
},
|
|
4081
|
+
}, ci = {
|
|
4061
4082
|
fallbackLocale: null,
|
|
4062
4083
|
loadingDelay: 200,
|
|
4063
|
-
formats:
|
|
4084
|
+
formats: fi,
|
|
4064
4085
|
warnOnMissingMessages: !0,
|
|
4065
4086
|
handleMissingMessage: void 0,
|
|
4066
4087
|
ignoreTag: !0
|
|
4067
|
-
},
|
|
4068
|
-
function
|
|
4069
|
-
return
|
|
4088
|
+
}, pi = ci;
|
|
4089
|
+
function j() {
|
|
4090
|
+
return pi;
|
|
4070
4091
|
}
|
|
4071
|
-
const
|
|
4072
|
-
var
|
|
4092
|
+
const Ae = be(!1);
|
|
4093
|
+
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) => {
|
|
4073
4094
|
for (var r in t || (t = {}))
|
|
4074
|
-
|
|
4075
|
-
if (
|
|
4076
|
-
for (var r of
|
|
4077
|
-
|
|
4095
|
+
vi.call(t, r) && yt(e, r, t[r]);
|
|
4096
|
+
if (gt)
|
|
4097
|
+
for (var r of gt(t))
|
|
4098
|
+
gi.call(t, r) && yt(e, r, t[r]);
|
|
4078
4099
|
return e;
|
|
4079
|
-
},
|
|
4080
|
-
let
|
|
4081
|
-
const
|
|
4082
|
-
function
|
|
4100
|
+
}, _i = (e, t) => mi(e, bi(t));
|
|
4101
|
+
let We;
|
|
4102
|
+
const pe = be(null);
|
|
4103
|
+
function _t(e) {
|
|
4083
4104
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4084
4105
|
}
|
|
4085
|
-
function
|
|
4086
|
-
const r =
|
|
4087
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4106
|
+
function ye(e, t = j().fallbackLocale) {
|
|
4107
|
+
const r = _t(e);
|
|
4108
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4088
4109
|
}
|
|
4089
4110
|
function L() {
|
|
4090
|
-
return
|
|
4111
|
+
return We ?? void 0;
|
|
4091
4112
|
}
|
|
4092
|
-
|
|
4093
|
-
|
|
4113
|
+
pe.subscribe((e) => {
|
|
4114
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4094
4115
|
});
|
|
4095
|
-
const
|
|
4096
|
-
if (e &&
|
|
4097
|
-
const { loadingDelay: t } =
|
|
4116
|
+
const Ei = (e) => {
|
|
4117
|
+
if (e && si(e) && Xe(e)) {
|
|
4118
|
+
const { loadingDelay: t } = j();
|
|
4098
4119
|
let r;
|
|
4099
4120
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4100
|
-
() =>
|
|
4121
|
+
() => Ae.set(!0),
|
|
4101
4122
|
t
|
|
4102
|
-
) :
|
|
4103
|
-
|
|
4123
|
+
) : Ae.set(!0), nr(e).then(() => {
|
|
4124
|
+
pe.set(e);
|
|
4104
4125
|
}).finally(() => {
|
|
4105
|
-
clearTimeout(r),
|
|
4126
|
+
clearTimeout(r), Ae.set(!1);
|
|
4106
4127
|
});
|
|
4107
4128
|
}
|
|
4108
|
-
return
|
|
4109
|
-
}, re =
|
|
4110
|
-
set:
|
|
4111
|
-
}),
|
|
4129
|
+
return pe.set(e);
|
|
4130
|
+
}, re = _i(yi({}, pe), {
|
|
4131
|
+
set: Ei
|
|
4132
|
+
}), _e = (e) => {
|
|
4112
4133
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4113
4134
|
return (n) => {
|
|
4114
4135
|
const i = JSON.stringify(n);
|
|
4115
4136
|
return i in t ? t[i] : t[i] = e(n);
|
|
4116
4137
|
};
|
|
4117
4138
|
};
|
|
4118
|
-
var
|
|
4139
|
+
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) => {
|
|
4119
4140
|
for (var r in t || (t = {}))
|
|
4120
|
-
|
|
4121
|
-
if (
|
|
4122
|
-
for (var r of
|
|
4123
|
-
|
|
4141
|
+
ir.call(t, r) && Et(e, r, t[r]);
|
|
4142
|
+
if (de)
|
|
4143
|
+
for (var r of de(t))
|
|
4144
|
+
or.call(t, r) && Et(e, r, t[r]);
|
|
4124
4145
|
return e;
|
|
4125
|
-
},
|
|
4146
|
+
}, X = (e, t) => {
|
|
4126
4147
|
var r = {};
|
|
4127
4148
|
for (var n in e)
|
|
4128
|
-
|
|
4129
|
-
if (e != null &&
|
|
4130
|
-
for (var n of
|
|
4131
|
-
t.indexOf(n) < 0 &&
|
|
4149
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4150
|
+
if (e != null && de)
|
|
4151
|
+
for (var n of de(e))
|
|
4152
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4132
4153
|
return r;
|
|
4133
4154
|
};
|
|
4134
|
-
const
|
|
4135
|
-
const { formats: r } =
|
|
4155
|
+
const q = (e, t) => {
|
|
4156
|
+
const { formats: r } = j();
|
|
4136
4157
|
if (e in r && t in r[e])
|
|
4137
4158
|
return r[e][t];
|
|
4138
4159
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4139
|
-
},
|
|
4160
|
+
}, Si = _e(
|
|
4140
4161
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4142
4163
|
if (r == null)
|
|
4143
4164
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4144
|
-
return n && (i =
|
|
4165
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4145
4166
|
}
|
|
4146
|
-
),
|
|
4167
|
+
), wi = _e(
|
|
4147
4168
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4169
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4149
4170
|
if (r == null)
|
|
4150
4171
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4151
|
-
return n ? i =
|
|
4172
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4152
4173
|
}
|
|
4153
|
-
),
|
|
4174
|
+
), Hi = _e(
|
|
4154
4175
|
(e) => {
|
|
4155
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4156
4177
|
if (r == null)
|
|
4157
4178
|
throw new Error(
|
|
4158
4179
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4159
4180
|
);
|
|
4160
|
-
return n ? i =
|
|
4181
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4161
4182
|
}
|
|
4162
|
-
),
|
|
4183
|
+
), Ti = (e = {}) => {
|
|
4163
4184
|
var t = e, {
|
|
4164
4185
|
locale: r = L()
|
|
4165
|
-
} = t, n =
|
|
4186
|
+
} = t, n = X(t, [
|
|
4166
4187
|
"locale"
|
|
4167
4188
|
]);
|
|
4168
|
-
return
|
|
4169
|
-
},
|
|
4189
|
+
return Si(Qe({ locale: r }, n));
|
|
4190
|
+
}, Bi = (e = {}) => {
|
|
4170
4191
|
var t = e, {
|
|
4171
4192
|
locale: r = L()
|
|
4172
|
-
} = t, n =
|
|
4193
|
+
} = t, n = X(t, [
|
|
4173
4194
|
"locale"
|
|
4174
4195
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4196
|
+
return wi(Qe({ locale: r }, n));
|
|
4197
|
+
}, Ai = (e = {}) => {
|
|
4177
4198
|
var t = e, {
|
|
4178
4199
|
locale: r = L()
|
|
4179
|
-
} = t, n =
|
|
4200
|
+
} = t, n = X(t, [
|
|
4180
4201
|
"locale"
|
|
4181
4202
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4203
|
+
return Hi(Qe({ locale: r }, n));
|
|
4204
|
+
}, Pi = _e(
|
|
4184
4205
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4185
|
-
(e, t = L()) => new
|
|
4186
|
-
ignoreTag:
|
|
4206
|
+
(e, t = L()) => new ti(e, t, j().formats, {
|
|
4207
|
+
ignoreTag: j().ignoreTag
|
|
4187
4208
|
})
|
|
4188
|
-
),
|
|
4209
|
+
), Oi = (e, t = {}) => {
|
|
4189
4210
|
var r, n, i, o;
|
|
4190
4211
|
let s = t;
|
|
4191
4212
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4198,9 +4219,9 @@ const Y = (e, t) => {
|
|
|
4198
4219
|
throw new Error(
|
|
4199
4220
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4200
4221
|
);
|
|
4201
|
-
let l =
|
|
4222
|
+
let l = er(e, h);
|
|
4202
4223
|
if (!l)
|
|
4203
|
-
l = (o = (i = (n = (r =
|
|
4224
|
+
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;
|
|
4204
4225
|
else if (typeof l != "string")
|
|
4205
4226
|
return console.warn(
|
|
4206
4227
|
`[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.`
|
|
@@ -4209,7 +4230,7 @@ const Y = (e, t) => {
|
|
|
4209
4230
|
return l;
|
|
4210
4231
|
let f = l;
|
|
4211
4232
|
try {
|
|
4212
|
-
f =
|
|
4233
|
+
f = Pi(l, h).format(a);
|
|
4213
4234
|
} catch (c) {
|
|
4214
4235
|
c instanceof Error && console.warn(
|
|
4215
4236
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4217,28 +4238,28 @@ const Y = (e, t) => {
|
|
|
4217
4238
|
);
|
|
4218
4239
|
}
|
|
4219
4240
|
return f;
|
|
4220
|
-
},
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4241
|
+
}, 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);
|
|
4242
|
+
k([re, te], () => Oi);
|
|
4243
|
+
k([re], () => Ci);
|
|
4244
|
+
k([re], () => Li);
|
|
4245
|
+
k([re], () => Ii);
|
|
4246
|
+
k([re, te], () => Ni);
|
|
4226
4247
|
window.emWidgets = { topic: Xr };
|
|
4227
|
-
const
|
|
4248
|
+
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));
|
|
4228
4249
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4229
|
-
function
|
|
4230
|
-
|
|
4250
|
+
function Mi(e) {
|
|
4251
|
+
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}");
|
|
4231
4252
|
}
|
|
4232
|
-
function
|
|
4253
|
+
function St(e) {
|
|
4233
4254
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4234
|
-
e[2] &&
|
|
4255
|
+
e[2] && wt(e), u = (
|
|
4235
4256
|
/*desktopView*/
|
|
4236
|
-
e[2] &&
|
|
4257
|
+
e[2] && Ht(e)
|
|
4237
4258
|
);
|
|
4238
4259
|
return {
|
|
4239
4260
|
c() {
|
|
4240
|
-
t =
|
|
4241
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4261
|
+
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*/
|
|
4262
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), et(
|
|
4242
4263
|
t,
|
|
4243
4264
|
"CashierVideoWrapperDesktop",
|
|
4244
4265
|
/*desktopView*/
|
|
@@ -4246,15 +4267,15 @@ function Et(e) {
|
|
|
4246
4267
|
);
|
|
4247
4268
|
},
|
|
4248
4269
|
m(l, f) {
|
|
4249
|
-
|
|
4270
|
+
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);
|
|
4250
4271
|
},
|
|
4251
4272
|
p(l, f) {
|
|
4252
4273
|
/*desktopView*/
|
|
4253
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4254
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4255
|
-
1 && !
|
|
4274
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = wt(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4275
|
+
l[2] ? u ? u.p(l, f) : (u = Ht(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4276
|
+
1 && !Ye(s.src, a = /*videosrc*/
|
|
4256
4277
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4257
|
-
4 &&
|
|
4278
|
+
4 && et(
|
|
4258
4279
|
t,
|
|
4259
4280
|
"CashierVideoWrapperDesktop",
|
|
4260
4281
|
/*desktopView*/
|
|
@@ -4262,18 +4283,18 @@ function Et(e) {
|
|
|
4262
4283
|
);
|
|
4263
4284
|
},
|
|
4264
4285
|
d(l) {
|
|
4265
|
-
l &&
|
|
4286
|
+
l && V(t), h && h.d(), u && u.d(), e[10](null);
|
|
4266
4287
|
}
|
|
4267
4288
|
};
|
|
4268
4289
|
}
|
|
4269
|
-
function
|
|
4290
|
+
function wt(e) {
|
|
4270
4291
|
let t, r, n, i, o;
|
|
4271
4292
|
return {
|
|
4272
4293
|
c() {
|
|
4273
|
-
t =
|
|
4294
|
+
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");
|
|
4274
4295
|
},
|
|
4275
4296
|
m(s, a) {
|
|
4276
|
-
|
|
4297
|
+
K(s, t, a), B(t, r), B(r, n), i || (o = Pt(
|
|
4277
4298
|
r,
|
|
4278
4299
|
"click",
|
|
4279
4300
|
/*click_handler*/
|
|
@@ -4282,18 +4303,18 @@ function xt(e) {
|
|
|
4282
4303
|
},
|
|
4283
4304
|
p: S,
|
|
4284
4305
|
d(s) {
|
|
4285
|
-
s &&
|
|
4306
|
+
s && V(t), i = !1, o();
|
|
4286
4307
|
}
|
|
4287
4308
|
};
|
|
4288
4309
|
}
|
|
4289
|
-
function
|
|
4310
|
+
function Ht(e) {
|
|
4290
4311
|
let t, r, n, i;
|
|
4291
4312
|
return {
|
|
4292
4313
|
c() {
|
|
4293
4314
|
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");
|
|
4294
4315
|
},
|
|
4295
4316
|
m(o, s) {
|
|
4296
|
-
|
|
4317
|
+
K(o, t, s), B(t, r), n || (i = Pt(
|
|
4297
4318
|
t,
|
|
4298
4319
|
"click",
|
|
4299
4320
|
/*click_handler_1*/
|
|
@@ -4302,48 +4323,48 @@ function St(e) {
|
|
|
4302
4323
|
},
|
|
4303
4324
|
p: S,
|
|
4304
4325
|
d(o) {
|
|
4305
|
-
o &&
|
|
4326
|
+
o && V(t), n = !1, i();
|
|
4306
4327
|
}
|
|
4307
4328
|
};
|
|
4308
4329
|
}
|
|
4309
|
-
function
|
|
4330
|
+
function $i(e) {
|
|
4310
4331
|
let t, r = (
|
|
4311
4332
|
/*show*/
|
|
4312
|
-
e[3] &&
|
|
4333
|
+
e[3] && St(e)
|
|
4313
4334
|
);
|
|
4314
4335
|
return {
|
|
4315
4336
|
c() {
|
|
4316
|
-
r && r.c(), t =
|
|
4337
|
+
r && r.c(), t = fr();
|
|
4317
4338
|
},
|
|
4318
4339
|
m(n, i) {
|
|
4319
|
-
r && r.m(n, i),
|
|
4340
|
+
r && r.m(n, i), K(n, t, i);
|
|
4320
4341
|
},
|
|
4321
4342
|
p(n, [i]) {
|
|
4322
4343
|
/*show*/
|
|
4323
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4344
|
+
n[3] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4324
4345
|
},
|
|
4325
4346
|
i: S,
|
|
4326
4347
|
o: S,
|
|
4327
4348
|
d(n) {
|
|
4328
|
-
n &&
|
|
4349
|
+
n && V(t), r && r.d(n);
|
|
4329
4350
|
}
|
|
4330
4351
|
};
|
|
4331
4352
|
}
|
|
4332
|
-
function
|
|
4353
|
+
function Ri(e, t, r) {
|
|
4333
4354
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4334
4355
|
const f = () => {
|
|
4335
4356
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4336
4357
|
}, c = (E) => {
|
|
4337
4358
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4338
|
-
},
|
|
4339
|
-
r(2, h = !
|
|
4359
|
+
}, m = () => {
|
|
4360
|
+
r(2, h = !xt(a));
|
|
4340
4361
|
};
|
|
4341
|
-
|
|
4362
|
+
mr(() => (window.addEventListener("message", c, !1), () => {
|
|
4342
4363
|
window.removeEventListener("message", c);
|
|
4343
4364
|
}));
|
|
4344
|
-
const
|
|
4345
|
-
function
|
|
4346
|
-
|
|
4365
|
+
const v = () => f(), b = () => f();
|
|
4366
|
+
function w(E) {
|
|
4367
|
+
Pe[E ? "unshift" : "push"](() => {
|
|
4347
4368
|
l = E, r(1, l);
|
|
4348
4369
|
});
|
|
4349
4370
|
}
|
|
@@ -4351,10 +4372,10 @@ function Mi(e, t, r) {
|
|
|
4351
4372
|
"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);
|
|
4352
4373
|
}, e.$$.update = () => {
|
|
4353
4374
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4354
|
-
34 && n && l &&
|
|
4355
|
-
66 && i && l &&
|
|
4375
|
+
34 && n && l && Pr(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4376
|
+
66 && i && l && Or(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4356
4377
|
130 && s && l && Cr(l, `${s}.Style`);
|
|
4357
|
-
},
|
|
4378
|
+
}, xt(a) && m(), [
|
|
4358
4379
|
o,
|
|
4359
4380
|
l,
|
|
4360
4381
|
h,
|
|
@@ -4363,26 +4384,26 @@ function Mi(e, t, r) {
|
|
|
4363
4384
|
n,
|
|
4364
4385
|
i,
|
|
4365
4386
|
s,
|
|
4366
|
-
g,
|
|
4367
4387
|
v,
|
|
4368
|
-
|
|
4388
|
+
b,
|
|
4389
|
+
w
|
|
4369
4390
|
];
|
|
4370
4391
|
}
|
|
4371
|
-
class
|
|
4392
|
+
class Ui extends Br {
|
|
4372
4393
|
constructor(t) {
|
|
4373
4394
|
super(), Hr(
|
|
4374
4395
|
this,
|
|
4375
4396
|
t,
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4397
|
+
Ri,
|
|
4398
|
+
$i,
|
|
4399
|
+
Bt,
|
|
4379
4400
|
{
|
|
4380
4401
|
clientstyling: 5,
|
|
4381
4402
|
clientstylingurl: 6,
|
|
4382
4403
|
videosrc: 0,
|
|
4383
4404
|
mbsource: 7
|
|
4384
4405
|
},
|
|
4385
|
-
|
|
4406
|
+
Mi
|
|
4386
4407
|
);
|
|
4387
4408
|
}
|
|
4388
4409
|
get clientstyling() {
|
|
@@ -4410,7 +4431,7 @@ class $i extends Tr {
|
|
|
4410
4431
|
this.$$set({ mbsource: t }), R();
|
|
4411
4432
|
}
|
|
4412
4433
|
}
|
|
4413
|
-
|
|
4434
|
+
Tr(Ui, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4414
4435
|
export {
|
|
4415
|
-
|
|
4436
|
+
Ui as C
|
|
4416
4437
|
};
|