@everymatrix/cashier-video-modal 1.76.1 → 1.76.4
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-B8Oh8rwr.js → CashierVideoModal-BVyIb_bz.js} +721 -700
- package/components/CashierVideoModal-D0hHtkXg.cjs +18 -0
- package/components/{CashierVideoModal-CAxILc6g.js → CashierVideoModal-DpT89WDt.js} +738 -717
- 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-CoxcU2kH.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var cr = Object.defineProperty, pr = Object.defineProperties;
|
|
2
|
+
var dr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ke = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
mr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Ke)
|
|
9
|
+
for (var r of Ke(t))
|
|
10
|
+
br.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, tt = (e, t) => pr(e, dr(t));
|
|
13
|
+
var w = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function S() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Lt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function nt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function K(e) {
|
|
39
|
+
e.forEach(Lt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function It(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let oe;
|
|
48
|
-
function
|
|
48
|
+
function it(e, t) {
|
|
49
49
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function vr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function gr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,17 +60,17 @@ function vr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function A(e, t) {
|
|
64
64
|
e.appendChild(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
66
|
+
function yr(e, t, r) {
|
|
67
|
+
const n = _r(e);
|
|
68
68
|
if (!n.getElementById(t)) {
|
|
69
69
|
const i = L("style");
|
|
70
|
-
i.id = t, i.textContent = r,
|
|
70
|
+
i.id = t, i.textContent = r, Er(n, i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function _r(e) {
|
|
74
74
|
if (!e)
|
|
75
75
|
return document;
|
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,17 +80,17 @@ function yr(e) {
|
|
|
80
80
|
t
|
|
81
81
|
) : e.ownerDocument;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function Er(e, t) {
|
|
84
|
+
return A(
|
|
85
85
|
/** @type {Document} */
|
|
86
86
|
e.head || e,
|
|
87
87
|
t
|
|
88
88
|
), t.sheet;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ee(e, t, r) {
|
|
91
91
|
e.insertBefore(t, r || null);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function k(e) {
|
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
95
|
}
|
|
96
96
|
function L(e) {
|
|
@@ -99,28 +99,28 @@ function L(e) {
|
|
|
99
99
|
function ce(e) {
|
|
100
100
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Nt(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function ot() {
|
|
106
|
+
return Nt(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function xr() {
|
|
109
|
+
return Nt("");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Mt(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function _(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Sr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function st(e, t, r) {
|
|
121
121
|
e.classList.toggle(t, !!r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function wr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,87 +129,87 @@ function Sr(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let J;
|
|
133
|
+
function Q(e) {
|
|
134
|
+
J = e;
|
|
135
135
|
}
|
|
136
136
|
function Hr() {
|
|
137
|
-
if (!
|
|
137
|
+
if (!J)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return J;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Tr(e) {
|
|
142
142
|
Hr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const R = [],
|
|
144
|
+
const R = [], Ce = [];
|
|
145
145
|
let D = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const at = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Le = !1;
|
|
148
|
+
function Ar() {
|
|
149
|
+
Le || (Le = !0, Br.then(U));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ie(e) {
|
|
152
152
|
D.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Se = /* @__PURE__ */ new Set();
|
|
155
155
|
let M = 0;
|
|
156
156
|
function U() {
|
|
157
157
|
if (M !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = J;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
162
|
for (; M < R.length; ) {
|
|
163
163
|
const t = R[M];
|
|
164
|
-
M++,
|
|
164
|
+
M++, Q(t), Pr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw R.length = 0, M = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
169
|
+
for (Q(null), R.length = 0, M = 0; Ce.length; )
|
|
170
|
+
Ce.pop()();
|
|
171
171
|
for (let t = 0; t < D.length; t += 1) {
|
|
172
172
|
const r = D[t];
|
|
173
|
-
|
|
173
|
+
Se.has(r) || (Se.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
D.length = 0;
|
|
176
176
|
} while (R.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; at.length; )
|
|
178
|
+
at.pop()();
|
|
179
|
+
Le = !1, Se.clear(), Q(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Pr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
|
-
e.update(),
|
|
183
|
+
e.update(), K(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Or(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
191
191
|
}
|
|
192
192
|
const Cr = /* @__PURE__ */ new Set();
|
|
193
|
-
function
|
|
193
|
+
function Lr(e, t) {
|
|
194
194
|
e && e.i && (Cr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ir(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Ie(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Lt).filter(Qe);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Ie);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Nr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Or(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (R.push(e),
|
|
207
|
+
function Mr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (R.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const h =
|
|
212
|
-
|
|
210
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const h = J;
|
|
212
|
+
Q(e);
|
|
213
213
|
const u = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -217,7 +217,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: S,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: nt(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,48 +226,48 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: nt(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
s && s(u.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
237
|
-
const
|
|
238
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
239
|
-
}) : [], u.update(), l = !0,
|
|
236
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
237
|
+
const v = m.length ? m[0] : c;
|
|
238
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && Mr(e, f)), c;
|
|
239
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const f =
|
|
242
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
241
|
+
const f = Sr(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Lr(e.$$.fragment), Ir(e, t.target, t.anchor), U();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
Q(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let $t;
|
|
250
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
|
-
|
|
254
|
+
w(this, "$$ctor");
|
|
255
255
|
/** Slots */
|
|
256
|
-
|
|
256
|
+
w(this, "$$s");
|
|
257
257
|
/** The Svelte component instance */
|
|
258
|
-
|
|
258
|
+
w(this, "$$c");
|
|
259
259
|
/** Whether or not the custom element is connected */
|
|
260
|
-
|
|
260
|
+
w(this, "$$cn", !1);
|
|
261
261
|
/** Component props data */
|
|
262
|
-
|
|
262
|
+
w(this, "$$d", {});
|
|
263
263
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
264
|
-
|
|
264
|
+
w(this, "$$r", !1);
|
|
265
265
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
266
|
-
|
|
266
|
+
w(this, "$$p_d", {});
|
|
267
267
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
268
|
-
|
|
268
|
+
w(this, "$$l", {});
|
|
269
269
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
270
|
-
|
|
270
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
271
271
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
272
272
|
}
|
|
273
273
|
addEventListener(t, r, n) {
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return rt(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
@@ -298,17 +298,17 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
300
|
m: function(u, l) {
|
|
301
|
-
|
|
301
|
+
ee(u, s, l);
|
|
302
302
|
},
|
|
303
303
|
d: function(u) {
|
|
304
|
-
u &&
|
|
304
|
+
u && k(s);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = wr(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: tt(et({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function ue(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function Rr(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends $t {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Ur {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -437,7 +437,7 @@ class Rr {
|
|
|
437
437
|
*
|
|
438
438
|
* @type {any}
|
|
439
439
|
*/
|
|
440
|
-
|
|
440
|
+
w(this, "$$");
|
|
441
441
|
/**
|
|
442
442
|
* ### PRIVATE API
|
|
443
443
|
*
|
|
@@ -445,11 +445,11 @@ class Rr {
|
|
|
445
445
|
*
|
|
446
446
|
* @type {any}
|
|
447
447
|
*/
|
|
448
|
-
|
|
448
|
+
w(this, "$$set");
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Nr(this, 1), this.$destroy = S;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Rr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!Qe(r))
|
|
462
462
|
return S;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,18 +471,18 @@ class Rr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
-
function
|
|
477
|
+
const Dr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
479
|
+
function Gr(e, t) {
|
|
480
480
|
if (e) {
|
|
481
481
|
const r = document.createElement("style");
|
|
482
482
|
r.innerHTML = t, e.appendChild(r);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Fr(e, t) {
|
|
486
486
|
const r = new URL(t);
|
|
487
487
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
488
488
|
const i = document.createElement("style");
|
|
@@ -491,7 +491,7 @@ function Gr(e, t) {
|
|
|
491
491
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function jr(e, t, r) {
|
|
495
495
|
if (window.emMessageBus) {
|
|
496
496
|
const n = document.createElement("style");
|
|
497
497
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -513,43 +513,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
513
513
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
514
514
|
PERFORMANCE OF THIS SOFTWARE.
|
|
515
515
|
***************************************************************************** */
|
|
516
|
-
var
|
|
517
|
-
return
|
|
516
|
+
var Ne = function(e, t) {
|
|
517
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
518
518
|
r.__proto__ = n;
|
|
519
519
|
} || function(r, n) {
|
|
520
520
|
for (var i in n)
|
|
521
521
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
522
|
-
},
|
|
522
|
+
}, Ne(e, t);
|
|
523
523
|
};
|
|
524
|
-
function
|
|
524
|
+
function te(e, t) {
|
|
525
525
|
if (typeof t != "function" && t !== null)
|
|
526
526
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
527
|
-
|
|
527
|
+
Ne(e, t);
|
|
528
528
|
function r() {
|
|
529
529
|
this.constructor = e;
|
|
530
530
|
}
|
|
531
531
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
532
532
|
}
|
|
533
|
-
|
|
534
|
-
return m = Object.assign || function(t) {
|
|
535
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
536
|
-
r = arguments[n];
|
|
537
|
-
for (var o in r)
|
|
538
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
539
|
-
}
|
|
540
|
-
return t;
|
|
541
|
-
}, m.apply(this, arguments);
|
|
542
|
-
};
|
|
543
|
-
function jr(e, t) {
|
|
544
|
-
var r = {};
|
|
545
|
-
for (var n in e)
|
|
546
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
547
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
548
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
549
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
550
|
-
return r;
|
|
551
|
-
}
|
|
552
|
-
function Ie(e) {
|
|
533
|
+
function Me(e) {
|
|
553
534
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
554
535
|
if (r)
|
|
555
536
|
return r.call(e);
|
|
@@ -561,7 +542,7 @@ function Ie(e) {
|
|
|
561
542
|
};
|
|
562
543
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
563
544
|
}
|
|
564
|
-
function
|
|
545
|
+
function $e(e, t) {
|
|
565
546
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
566
547
|
if (!r)
|
|
567
548
|
return e;
|
|
@@ -581,22 +562,22 @@ function Ne(e, t) {
|
|
|
581
562
|
}
|
|
582
563
|
return o;
|
|
583
564
|
}
|
|
584
|
-
function
|
|
585
|
-
if (
|
|
565
|
+
function Re(e, t, r) {
|
|
566
|
+
if (arguments.length === 2)
|
|
586
567
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
587
568
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
588
569
|
return e.concat(o || t);
|
|
589
570
|
}
|
|
590
|
-
function
|
|
571
|
+
function P(e) {
|
|
591
572
|
return typeof e == "function";
|
|
592
573
|
}
|
|
593
|
-
function
|
|
574
|
+
function Rt(e) {
|
|
594
575
|
var t = function(n) {
|
|
595
576
|
Error.call(n), n.stack = new Error().stack;
|
|
596
577
|
}, r = e(t);
|
|
597
578
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
598
579
|
}
|
|
599
|
-
var
|
|
580
|
+
var we = Rt(function(e) {
|
|
600
581
|
return function(r) {
|
|
601
582
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
602
583
|
` + r.map(function(n, i) {
|
|
@@ -605,13 +586,13 @@ var xe = Mt(function(e) {
|
|
|
605
586
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
606
587
|
};
|
|
607
588
|
});
|
|
608
|
-
function
|
|
589
|
+
function Ue(e, t) {
|
|
609
590
|
if (e) {
|
|
610
591
|
var r = e.indexOf(t);
|
|
611
592
|
0 <= r && e.splice(r, 1);
|
|
612
593
|
}
|
|
613
594
|
}
|
|
614
|
-
var
|
|
595
|
+
var be = function() {
|
|
615
596
|
function e(t) {
|
|
616
597
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
617
598
|
}
|
|
@@ -623,12 +604,12 @@ var me = function() {
|
|
|
623
604
|
if (s)
|
|
624
605
|
if (this._parentage = null, Array.isArray(s))
|
|
625
606
|
try {
|
|
626
|
-
for (var a =
|
|
607
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
627
608
|
var u = h.value;
|
|
628
609
|
u.remove(this);
|
|
629
610
|
}
|
|
630
|
-
} catch (
|
|
631
|
-
t = { error:
|
|
611
|
+
} catch (b) {
|
|
612
|
+
t = { error: b };
|
|
632
613
|
} finally {
|
|
633
614
|
try {
|
|
634
615
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -640,29 +621,29 @@ var me = function() {
|
|
|
640
621
|
else
|
|
641
622
|
s.remove(this);
|
|
642
623
|
var l = this.initialTeardown;
|
|
643
|
-
if (
|
|
624
|
+
if (P(l))
|
|
644
625
|
try {
|
|
645
626
|
l();
|
|
646
|
-
} catch (
|
|
647
|
-
o =
|
|
627
|
+
} catch (b) {
|
|
628
|
+
o = b instanceof we ? b.errors : [b];
|
|
648
629
|
}
|
|
649
630
|
var f = this._finalizers;
|
|
650
631
|
if (f) {
|
|
651
632
|
this._finalizers = null;
|
|
652
633
|
try {
|
|
653
|
-
for (var c =
|
|
654
|
-
var
|
|
634
|
+
for (var c = Me(f), m = c.next(); !m.done; m = c.next()) {
|
|
635
|
+
var v = m.value;
|
|
655
636
|
try {
|
|
656
|
-
|
|
657
|
-
} catch (
|
|
658
|
-
o = o != null ? o : [],
|
|
637
|
+
ut(v);
|
|
638
|
+
} catch (b) {
|
|
639
|
+
o = o != null ? o : [], b instanceof we ? o = Re(Re([], $e(o)), $e(b.errors)) : o.push(b);
|
|
659
640
|
}
|
|
660
641
|
}
|
|
661
|
-
} catch (
|
|
662
|
-
n = { error:
|
|
642
|
+
} catch (b) {
|
|
643
|
+
n = { error: b };
|
|
663
644
|
} finally {
|
|
664
645
|
try {
|
|
665
|
-
|
|
646
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
666
647
|
} finally {
|
|
667
648
|
if (n)
|
|
668
649
|
throw n.error;
|
|
@@ -670,13 +651,13 @@ var me = function() {
|
|
|
670
651
|
}
|
|
671
652
|
}
|
|
672
653
|
if (o)
|
|
673
|
-
throw new
|
|
654
|
+
throw new we(o);
|
|
674
655
|
}
|
|
675
656
|
}, e.prototype.add = function(t) {
|
|
676
657
|
var r;
|
|
677
658
|
if (t && t !== this)
|
|
678
659
|
if (this.closed)
|
|
679
|
-
|
|
660
|
+
ut(t);
|
|
680
661
|
else {
|
|
681
662
|
if (t instanceof e) {
|
|
682
663
|
if (t.closed || t._hasParent(this))
|
|
@@ -693,56 +674,52 @@ var me = function() {
|
|
|
693
674
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
694
675
|
}, e.prototype._removeParent = function(t) {
|
|
695
676
|
var r = this._parentage;
|
|
696
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
677
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
697
678
|
}, e.prototype.remove = function(t) {
|
|
698
679
|
var r = this._finalizers;
|
|
699
|
-
r &&
|
|
680
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
700
681
|
}, e.EMPTY = function() {
|
|
701
682
|
var t = new e();
|
|
702
683
|
return t.closed = !0, t;
|
|
703
684
|
}(), e;
|
|
704
|
-
}(),
|
|
705
|
-
function
|
|
706
|
-
return e instanceof
|
|
707
|
-
}
|
|
708
|
-
function
|
|
709
|
-
|
|
710
|
-
}
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
Promise: void 0,
|
|
715
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
716
|
-
useDeprecatedNextContext: !1
|
|
717
|
-
}, Vr = {
|
|
685
|
+
}(), Ut = be.EMPTY;
|
|
686
|
+
function Dt(e) {
|
|
687
|
+
return e instanceof be || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
688
|
+
}
|
|
689
|
+
function ut(e) {
|
|
690
|
+
P(e) ? e() : e.unsubscribe();
|
|
691
|
+
}
|
|
692
|
+
var Vr = {
|
|
693
|
+
Promise: void 0
|
|
694
|
+
}, kr = {
|
|
718
695
|
setTimeout: function(e, t) {
|
|
719
696
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
720
697
|
r[n - 2] = arguments[n];
|
|
721
|
-
return setTimeout.apply(void 0,
|
|
698
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
722
699
|
},
|
|
723
700
|
clearTimeout: function(e) {
|
|
724
701
|
return clearTimeout(e);
|
|
725
702
|
},
|
|
726
703
|
delegate: void 0
|
|
727
704
|
};
|
|
728
|
-
function
|
|
729
|
-
|
|
705
|
+
function Xr(e) {
|
|
706
|
+
kr.setTimeout(function() {
|
|
730
707
|
throw e;
|
|
731
708
|
});
|
|
732
709
|
}
|
|
733
|
-
function
|
|
710
|
+
function ht() {
|
|
734
711
|
}
|
|
735
712
|
function he(e) {
|
|
736
713
|
e();
|
|
737
714
|
}
|
|
738
|
-
var
|
|
739
|
-
|
|
715
|
+
var Gt = function(e) {
|
|
716
|
+
te(t, e);
|
|
740
717
|
function t(r) {
|
|
741
718
|
var n = e.call(this) || this;
|
|
742
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
719
|
+
return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = Zr, n;
|
|
743
720
|
}
|
|
744
721
|
return t.create = function(r, n, i) {
|
|
745
|
-
return new
|
|
722
|
+
return new De(r, n, i);
|
|
746
723
|
}, t.prototype.next = function(r) {
|
|
747
724
|
this.isStopped || this._next(r);
|
|
748
725
|
}, t.prototype.error = function(r) {
|
|
@@ -766,11 +743,7 @@ var Dt = function(e) {
|
|
|
766
743
|
this.unsubscribe();
|
|
767
744
|
}
|
|
768
745
|
}, t;
|
|
769
|
-
}(
|
|
770
|
-
function Se(e, t) {
|
|
771
|
-
return Xr.call(e, t);
|
|
772
|
-
}
|
|
773
|
-
var Wr = function() {
|
|
746
|
+
}(be), Wr = function() {
|
|
774
747
|
function e(t) {
|
|
775
748
|
this.partialObserver = t;
|
|
776
749
|
}
|
|
@@ -801,41 +774,29 @@ var Wr = function() {
|
|
|
801
774
|
se(r);
|
|
802
775
|
}
|
|
803
776
|
}, e;
|
|
804
|
-
}(),
|
|
805
|
-
|
|
777
|
+
}(), De = function(e) {
|
|
778
|
+
te(t, e);
|
|
806
779
|
function t(r, n, i) {
|
|
807
780
|
var o = e.call(this) || this, s;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
};
|
|
814
|
-
else {
|
|
815
|
-
var a;
|
|
816
|
-
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
817
|
-
return o.unsubscribe();
|
|
818
|
-
}, s = {
|
|
819
|
-
next: r.next && Se(r.next, a),
|
|
820
|
-
error: r.error && Se(r.error, a),
|
|
821
|
-
complete: r.complete && Se(r.complete, a)
|
|
822
|
-
}) : s = r;
|
|
823
|
-
}
|
|
824
|
-
return o.destination = new Wr(s), o;
|
|
781
|
+
return P(r) || !r ? s = {
|
|
782
|
+
next: r != null ? r : void 0,
|
|
783
|
+
error: n != null ? n : void 0,
|
|
784
|
+
complete: i != null ? i : void 0
|
|
785
|
+
} : s = r, o.destination = new Wr(s), o;
|
|
825
786
|
}
|
|
826
787
|
return t;
|
|
827
|
-
}(
|
|
788
|
+
}(Gt);
|
|
828
789
|
function se(e) {
|
|
829
|
-
|
|
790
|
+
Xr(e);
|
|
830
791
|
}
|
|
831
792
|
function zr(e) {
|
|
832
793
|
throw e;
|
|
833
794
|
}
|
|
834
795
|
var Zr = {
|
|
835
796
|
closed: !0,
|
|
836
|
-
next:
|
|
797
|
+
next: ht,
|
|
837
798
|
error: zr,
|
|
838
|
-
complete:
|
|
799
|
+
complete: ht
|
|
839
800
|
}, Qr = function() {
|
|
840
801
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
841
802
|
}();
|
|
@@ -849,7 +810,7 @@ function qr(e) {
|
|
|
849
810
|
}, r);
|
|
850
811
|
};
|
|
851
812
|
}
|
|
852
|
-
var
|
|
813
|
+
var lt = function() {
|
|
853
814
|
function e(t) {
|
|
854
815
|
t && (this._subscribe = t);
|
|
855
816
|
}
|
|
@@ -857,7 +818,7 @@ var ut = function() {
|
|
|
857
818
|
var r = new e();
|
|
858
819
|
return r.source = this, r.operator = t, r;
|
|
859
820
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
860
|
-
var i = this, o = Kr(t) ? t : new
|
|
821
|
+
var i = this, o = Kr(t) ? t : new De(t, r, n);
|
|
861
822
|
return he(function() {
|
|
862
823
|
var s = i, a = s.operator, h = s.source;
|
|
863
824
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -870,8 +831,8 @@ var ut = function() {
|
|
|
870
831
|
}
|
|
871
832
|
}, e.prototype.forEach = function(t, r) {
|
|
872
833
|
var n = this;
|
|
873
|
-
return r =
|
|
874
|
-
var s = new
|
|
834
|
+
return r = ft(r), new r(function(i, o) {
|
|
835
|
+
var s = new De({
|
|
875
836
|
next: function(a) {
|
|
876
837
|
try {
|
|
877
838
|
t(a);
|
|
@@ -895,7 +856,7 @@ var ut = function() {
|
|
|
895
856
|
return qr(t)(this);
|
|
896
857
|
}, e.prototype.toPromise = function(t) {
|
|
897
858
|
var r = this;
|
|
898
|
-
return t =
|
|
859
|
+
return t = ft(t), new t(function(n, i) {
|
|
899
860
|
var o;
|
|
900
861
|
r.subscribe(function(s) {
|
|
901
862
|
return o = s;
|
|
@@ -909,28 +870,28 @@ var ut = function() {
|
|
|
909
870
|
return new e(t);
|
|
910
871
|
}, e;
|
|
911
872
|
}();
|
|
912
|
-
function
|
|
873
|
+
function ft(e) {
|
|
913
874
|
var t;
|
|
914
|
-
return (t = e != null ? e :
|
|
875
|
+
return (t = e != null ? e : Vr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
915
876
|
}
|
|
916
877
|
function Yr(e) {
|
|
917
|
-
return e &&
|
|
878
|
+
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
918
879
|
}
|
|
919
880
|
function Kr(e) {
|
|
920
|
-
return e && e instanceof
|
|
881
|
+
return e && e instanceof Gt || Yr(e) && Dt(e);
|
|
921
882
|
}
|
|
922
|
-
var en =
|
|
883
|
+
var en = Rt(function(e) {
|
|
923
884
|
return function() {
|
|
924
885
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
925
886
|
};
|
|
926
|
-
}),
|
|
927
|
-
|
|
887
|
+
}), Ft = function(e) {
|
|
888
|
+
te(t, e);
|
|
928
889
|
function t() {
|
|
929
890
|
var r = e.call(this) || this;
|
|
930
891
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
931
892
|
}
|
|
932
893
|
return t.prototype.lift = function(r) {
|
|
933
|
-
var n = new
|
|
894
|
+
var n = new ct(this, this);
|
|
934
895
|
return n.operator = r, n;
|
|
935
896
|
}, t.prototype._throwIfClosed = function() {
|
|
936
897
|
if (this.closed)
|
|
@@ -942,7 +903,7 @@ var en = Mt(function(e) {
|
|
|
942
903
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
943
904
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
944
905
|
try {
|
|
945
|
-
for (var s =
|
|
906
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
946
907
|
var h = a.value;
|
|
947
908
|
h.next(r);
|
|
948
909
|
}
|
|
@@ -991,20 +952,20 @@ var en = Mt(function(e) {
|
|
|
991
952
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
992
953
|
}, t.prototype._innerSubscribe = function(r) {
|
|
993
954
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
994
|
-
return o || s ?
|
|
995
|
-
n.currentObservers = null,
|
|
955
|
+
return o || s ? Ut : (this.currentObservers = null, a.push(r), new be(function() {
|
|
956
|
+
n.currentObservers = null, Ue(a, r);
|
|
996
957
|
}));
|
|
997
958
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
998
959
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
999
960
|
i ? r.error(o) : s && r.complete();
|
|
1000
961
|
}, t.prototype.asObservable = function() {
|
|
1001
|
-
var r = new
|
|
962
|
+
var r = new lt();
|
|
1002
963
|
return r.source = this, r;
|
|
1003
964
|
}, t.create = function(r, n) {
|
|
1004
|
-
return new
|
|
965
|
+
return new ct(r, n);
|
|
1005
966
|
}, t;
|
|
1006
|
-
}(
|
|
1007
|
-
|
|
967
|
+
}(lt), ct = function(e) {
|
|
968
|
+
te(t, e);
|
|
1008
969
|
function t(r, n) {
|
|
1009
970
|
var i = e.call(this) || this;
|
|
1010
971
|
return i.destination = r, i.source = n, i;
|
|
@@ -1020,17 +981,17 @@ var en = Mt(function(e) {
|
|
|
1020
981
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1021
982
|
}, t.prototype._subscribe = function(r) {
|
|
1022
983
|
var n, i;
|
|
1023
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
984
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ut;
|
|
1024
985
|
}, t;
|
|
1025
|
-
}(
|
|
986
|
+
}(Ft), jt = {
|
|
1026
987
|
now: function() {
|
|
1027
|
-
return (
|
|
988
|
+
return (jt.delegate || Date).now();
|
|
1028
989
|
},
|
|
1029
990
|
delegate: void 0
|
|
1030
991
|
}, tn = function(e) {
|
|
1031
|
-
|
|
992
|
+
te(t, e);
|
|
1032
993
|
function t(r, n, i) {
|
|
1033
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
994
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1034
995
|
var o = e.call(this) || this;
|
|
1035
996
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1036
997
|
}
|
|
@@ -1050,24 +1011,24 @@ var en = Mt(function(e) {
|
|
|
1050
1011
|
u && o.splice(0, u + 1);
|
|
1051
1012
|
}
|
|
1052
1013
|
}, t;
|
|
1053
|
-
}(
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1014
|
+
}(Ft);
|
|
1015
|
+
const pt = [], dt = {}, rn = (e, t = 0) => {
|
|
1016
|
+
if (pt.indexOf(e) == -1) {
|
|
1056
1017
|
const r = new tn(t);
|
|
1057
|
-
|
|
1018
|
+
dt[e] = r, pt.push(e);
|
|
1058
1019
|
}
|
|
1059
|
-
return
|
|
1020
|
+
return dt[e];
|
|
1060
1021
|
}, $ = [];
|
|
1061
1022
|
function nn(e, t) {
|
|
1062
1023
|
return {
|
|
1063
|
-
subscribe:
|
|
1024
|
+
subscribe: ve(e, t).subscribe
|
|
1064
1025
|
};
|
|
1065
1026
|
}
|
|
1066
|
-
function
|
|
1027
|
+
function ve(e, t = S) {
|
|
1067
1028
|
let r;
|
|
1068
1029
|
const n = /* @__PURE__ */ new Set();
|
|
1069
1030
|
function i(a) {
|
|
1070
|
-
if (
|
|
1031
|
+
if (It(e, a) && (e = a, r)) {
|
|
1071
1032
|
const h = !$.length;
|
|
1072
1033
|
for (const u of n)
|
|
1073
1034
|
u[1](), $.push(u, e);
|
|
@@ -1089,7 +1050,7 @@ function be(e, t = S) {
|
|
|
1089
1050
|
}
|
|
1090
1051
|
return { set: i, update: o, subscribe: s };
|
|
1091
1052
|
}
|
|
1092
|
-
function
|
|
1053
|
+
function X(e, t, r) {
|
|
1093
1054
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1094
1055
|
if (!i.every(Boolean))
|
|
1095
1056
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1102,21 +1063,21 @@ function W(e, t, r) {
|
|
|
1102
1063
|
if (l)
|
|
1103
1064
|
return;
|
|
1104
1065
|
f();
|
|
1105
|
-
const
|
|
1106
|
-
o ? s(
|
|
1107
|
-
},
|
|
1108
|
-
(
|
|
1109
|
-
|
|
1110
|
-
(
|
|
1111
|
-
u[
|
|
1066
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1067
|
+
o ? s(v) : f = Qe(v) ? v : S;
|
|
1068
|
+
}, m = i.map(
|
|
1069
|
+
(v, b) => gr(
|
|
1070
|
+
v,
|
|
1071
|
+
(H) => {
|
|
1072
|
+
u[b] = H, l &= ~(1 << b), h && c();
|
|
1112
1073
|
},
|
|
1113
1074
|
() => {
|
|
1114
|
-
l |= 1 <<
|
|
1075
|
+
l |= 1 << b;
|
|
1115
1076
|
}
|
|
1116
1077
|
)
|
|
1117
1078
|
);
|
|
1118
1079
|
return h = !0, c(), function() {
|
|
1119
|
-
|
|
1080
|
+
K(m), f(), h = !1;
|
|
1120
1081
|
};
|
|
1121
1082
|
});
|
|
1122
1083
|
}
|
|
@@ -1140,29 +1101,29 @@ function fn(e) {
|
|
|
1140
1101
|
function cn(e) {
|
|
1141
1102
|
return Array.isArray(e) ? [] : {};
|
|
1142
1103
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1104
|
+
function q(e, t) {
|
|
1105
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(cn(e), e, t) : e;
|
|
1145
1106
|
}
|
|
1146
1107
|
function pn(e, t, r) {
|
|
1147
1108
|
return e.concat(t).map(function(n) {
|
|
1148
|
-
return
|
|
1109
|
+
return q(n, r);
|
|
1149
1110
|
});
|
|
1150
1111
|
}
|
|
1151
1112
|
function dn(e, t) {
|
|
1152
1113
|
if (!t.customMerge)
|
|
1153
|
-
return
|
|
1114
|
+
return G;
|
|
1154
1115
|
var r = t.customMerge(e);
|
|
1155
|
-
return typeof r == "function" ? r :
|
|
1116
|
+
return typeof r == "function" ? r : G;
|
|
1156
1117
|
}
|
|
1157
1118
|
function mn(e) {
|
|
1158
1119
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1159
1120
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1160
1121
|
}) : [];
|
|
1161
1122
|
}
|
|
1162
|
-
function
|
|
1123
|
+
function mt(e) {
|
|
1163
1124
|
return Object.keys(e).concat(mn(e));
|
|
1164
1125
|
}
|
|
1165
|
-
function
|
|
1126
|
+
function Vt(e, t) {
|
|
1166
1127
|
try {
|
|
1167
1128
|
return t in e;
|
|
1168
1129
|
} catch (r) {
|
|
@@ -1170,129 +1131,179 @@ function jt(e, t) {
|
|
|
1170
1131
|
}
|
|
1171
1132
|
}
|
|
1172
1133
|
function bn(e, t) {
|
|
1173
|
-
return
|
|
1134
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1174
1135
|
}
|
|
1175
1136
|
function vn(e, t, r) {
|
|
1176
1137
|
var n = {};
|
|
1177
|
-
return r.isMergeableObject(e) &&
|
|
1178
|
-
n[i] =
|
|
1179
|
-
}),
|
|
1180
|
-
bn(e, i) || (
|
|
1138
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1139
|
+
n[i] = q(e[i], r);
|
|
1140
|
+
}), mt(t).forEach(function(i) {
|
|
1141
|
+
bn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1181
1142
|
}), n;
|
|
1182
1143
|
}
|
|
1183
|
-
function
|
|
1184
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified =
|
|
1144
|
+
function G(e, t, r) {
|
|
1145
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = q;
|
|
1185
1146
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1186
|
-
return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) :
|
|
1147
|
+
return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) : q(t, r);
|
|
1187
1148
|
}
|
|
1188
|
-
|
|
1149
|
+
G.all = function(t, r) {
|
|
1189
1150
|
if (!Array.isArray(t))
|
|
1190
1151
|
throw new Error("first argument should be an array");
|
|
1191
1152
|
return t.reduce(function(n, i) {
|
|
1192
|
-
return
|
|
1153
|
+
return G(n, i, r);
|
|
1193
1154
|
}, {});
|
|
1194
1155
|
};
|
|
1195
|
-
var gn =
|
|
1156
|
+
var gn = G, yn = gn;
|
|
1196
1157
|
const _n = /* @__PURE__ */ on(yn);
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1158
|
+
var Ge = function(e, t) {
|
|
1159
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1160
|
+
r.__proto__ = n;
|
|
1161
|
+
} || function(r, n) {
|
|
1162
|
+
for (var i in n)
|
|
1163
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1164
|
+
}, Ge(e, t);
|
|
1165
|
+
};
|
|
1166
|
+
function ge(e, t) {
|
|
1167
|
+
if (typeof t != "function" && t !== null)
|
|
1168
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1169
|
+
Ge(e, t);
|
|
1170
|
+
function r() {
|
|
1171
|
+
this.constructor = e;
|
|
1172
|
+
}
|
|
1173
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1174
|
+
}
|
|
1175
|
+
var B = function() {
|
|
1176
|
+
return B = Object.assign || function(t) {
|
|
1177
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1178
|
+
r = arguments[n];
|
|
1179
|
+
for (var o in r)
|
|
1180
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1181
|
+
}
|
|
1182
|
+
return t;
|
|
1183
|
+
}, B.apply(this, arguments);
|
|
1184
|
+
};
|
|
1185
|
+
function En(e, t) {
|
|
1186
|
+
var r = {};
|
|
1187
|
+
for (var n in e)
|
|
1188
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1189
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1190
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1191
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1192
|
+
return r;
|
|
1193
|
+
}
|
|
1194
|
+
function He(e, t, r) {
|
|
1195
|
+
if (r || arguments.length === 2)
|
|
1196
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1197
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1198
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1199
|
+
}
|
|
1200
|
+
function Te(e, t) {
|
|
1201
|
+
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : wn;
|
|
1199
1202
|
return i(e, {
|
|
1200
1203
|
cache: r,
|
|
1201
1204
|
serializer: n
|
|
1202
1205
|
});
|
|
1203
1206
|
}
|
|
1204
|
-
function
|
|
1207
|
+
function xn(e) {
|
|
1205
1208
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1206
1209
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var i =
|
|
1210
|
+
function Sn(e, t, r, n) {
|
|
1211
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1209
1212
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1210
1213
|
}
|
|
1211
1214
|
function kt(e, t, r) {
|
|
1212
1215
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1213
1216
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1214
1217
|
}
|
|
1215
|
-
function
|
|
1218
|
+
function Xt(e, t, r, n, i) {
|
|
1216
1219
|
return r.bind(t, e, n, i);
|
|
1217
1220
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var r = e.length === 1 ?
|
|
1220
|
-
return
|
|
1221
|
-
}
|
|
1222
|
-
function Sn(e, t) {
|
|
1223
|
-
return We(e, this, kt, t.cache.create(), t.serializer);
|
|
1221
|
+
function wn(e, t) {
|
|
1222
|
+
var r = e.length === 1 ? Sn : kt;
|
|
1223
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1224
1224
|
}
|
|
1225
1225
|
function Hn(e, t) {
|
|
1226
|
-
return
|
|
1226
|
+
return Xt(e, this, kt, t.cache.create(), t.serializer);
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var Tn = function() {
|
|
1229
1229
|
return JSON.stringify(arguments);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1230
|
+
}, Bn = (
|
|
1231
|
+
/** @class */
|
|
1232
|
+
function() {
|
|
1233
|
+
function e() {
|
|
1234
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1235
|
+
}
|
|
1236
|
+
return e.prototype.get = function(t) {
|
|
1237
|
+
return this.cache[t];
|
|
1238
|
+
}, e.prototype.set = function(t, r) {
|
|
1239
|
+
this.cache[t] = r;
|
|
1240
|
+
}, e;
|
|
1241
|
+
}()
|
|
1242
|
+
), An = {
|
|
1241
1243
|
create: function() {
|
|
1242
|
-
return new
|
|
1244
|
+
return new Bn();
|
|
1243
1245
|
}
|
|
1244
|
-
},
|
|
1245
|
-
variadic:
|
|
1246
|
-
|
|
1247
|
-
|
|
1246
|
+
}, Be = {
|
|
1247
|
+
variadic: Hn
|
|
1248
|
+
}, pe = function() {
|
|
1249
|
+
return pe = Object.assign || function(t) {
|
|
1250
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1251
|
+
r = arguments[n];
|
|
1252
|
+
for (var o in r)
|
|
1253
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1254
|
+
}
|
|
1255
|
+
return t;
|
|
1256
|
+
}, pe.apply(this, arguments);
|
|
1257
|
+
};
|
|
1258
|
+
var p;
|
|
1248
1259
|
(function(e) {
|
|
1249
1260
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1250
1261
|
})(p || (p = {}));
|
|
1251
|
-
var
|
|
1262
|
+
var g;
|
|
1252
1263
|
(function(e) {
|
|
1253
1264
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1254
|
-
})(
|
|
1255
|
-
var
|
|
1265
|
+
})(g || (g = {}));
|
|
1266
|
+
var F;
|
|
1256
1267
|
(function(e) {
|
|
1257
1268
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1258
|
-
})(
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1261
|
-
}
|
|
1262
|
-
function Bn(e) {
|
|
1263
|
-
return e.type === y.argument;
|
|
1269
|
+
})(F || (F = {}));
|
|
1270
|
+
function bt(e) {
|
|
1271
|
+
return e.type === g.literal;
|
|
1264
1272
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1273
|
+
function Pn(e) {
|
|
1274
|
+
return e.type === g.argument;
|
|
1267
1275
|
}
|
|
1268
1276
|
function Wt(e) {
|
|
1269
|
-
return e.type ===
|
|
1277
|
+
return e.type === g.number;
|
|
1270
1278
|
}
|
|
1271
1279
|
function zt(e) {
|
|
1272
|
-
return e.type ===
|
|
1280
|
+
return e.type === g.date;
|
|
1273
1281
|
}
|
|
1274
1282
|
function Zt(e) {
|
|
1275
|
-
return e.type ===
|
|
1283
|
+
return e.type === g.time;
|
|
1276
1284
|
}
|
|
1277
1285
|
function Qt(e) {
|
|
1278
|
-
return e.type ===
|
|
1279
|
-
}
|
|
1280
|
-
function An(e) {
|
|
1281
|
-
return e.type === y.pound;
|
|
1286
|
+
return e.type === g.select;
|
|
1282
1287
|
}
|
|
1283
1288
|
function Jt(e) {
|
|
1284
|
-
return e.type ===
|
|
1289
|
+
return e.type === g.plural;
|
|
1290
|
+
}
|
|
1291
|
+
function On(e) {
|
|
1292
|
+
return e.type === g.pound;
|
|
1285
1293
|
}
|
|
1286
1294
|
function qt(e) {
|
|
1287
|
-
return
|
|
1295
|
+
return e.type === g.tag;
|
|
1288
1296
|
}
|
|
1289
|
-
function
|
|
1290
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1297
|
+
function Yt(e) {
|
|
1298
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
1291
1299
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1300
|
+
function Fe(e) {
|
|
1301
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
1302
|
+
}
|
|
1303
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1304
|
+
function Ln(e) {
|
|
1294
1305
|
var t = {};
|
|
1295
|
-
return e.replace(
|
|
1306
|
+
return e.replace(Cn, function(r) {
|
|
1296
1307
|
var n = r.length;
|
|
1297
1308
|
switch (r[0]) {
|
|
1298
1309
|
case "G":
|
|
@@ -1381,11 +1392,21 @@ function Cn(e) {
|
|
|
1381
1392
|
return "";
|
|
1382
1393
|
}), t;
|
|
1383
1394
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1395
|
+
var y = function() {
|
|
1396
|
+
return y = Object.assign || function(t) {
|
|
1397
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1398
|
+
r = arguments[n];
|
|
1399
|
+
for (var o in r)
|
|
1400
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1401
|
+
}
|
|
1402
|
+
return t;
|
|
1403
|
+
}, y.apply(this, arguments);
|
|
1404
|
+
};
|
|
1405
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1406
|
+
function Nn(e) {
|
|
1386
1407
|
if (e.length === 0)
|
|
1387
1408
|
throw new Error("Number skeleton cannot be empty");
|
|
1388
|
-
for (var t = e.split(
|
|
1409
|
+
for (var t = e.split(In).filter(function(c) {
|
|
1389
1410
|
return c.length > 0;
|
|
1390
1411
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1391
1412
|
var o = i[n], s = o.split("/");
|
|
@@ -1400,17 +1421,17 @@ function Ln(e) {
|
|
|
1400
1421
|
}
|
|
1401
1422
|
return r;
|
|
1402
1423
|
}
|
|
1403
|
-
function
|
|
1424
|
+
function Mn(e) {
|
|
1404
1425
|
return e.replace(/^(.*?)-/, "");
|
|
1405
1426
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1427
|
+
var vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1428
|
+
function gt(e) {
|
|
1408
1429
|
var t = {};
|
|
1409
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1430
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1410
1431
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1411
1432
|
}), t;
|
|
1412
1433
|
}
|
|
1413
|
-
function
|
|
1434
|
+
function rr(e) {
|
|
1414
1435
|
switch (e) {
|
|
1415
1436
|
case "sign-auto":
|
|
1416
1437
|
return {
|
|
@@ -1450,7 +1471,7 @@ function tr(e) {
|
|
|
1450
1471
|
};
|
|
1451
1472
|
}
|
|
1452
1473
|
}
|
|
1453
|
-
function
|
|
1474
|
+
function Rn(e) {
|
|
1454
1475
|
var t;
|
|
1455
1476
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1456
1477
|
notation: "engineering"
|
|
@@ -1458,17 +1479,17 @@ function Mn(e) {
|
|
|
1458
1479
|
notation: "scientific"
|
|
1459
1480
|
}, e = e.slice(1)), t) {
|
|
1460
1481
|
var r = e.slice(0, 2);
|
|
1461
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1482
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1462
1483
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1463
1484
|
t.minimumIntegerDigits = e.length;
|
|
1464
1485
|
}
|
|
1465
1486
|
return t;
|
|
1466
1487
|
}
|
|
1467
|
-
function
|
|
1468
|
-
var t = {}, r =
|
|
1488
|
+
function yt(e) {
|
|
1489
|
+
var t = {}, r = rr(e);
|
|
1469
1490
|
return r || t;
|
|
1470
1491
|
}
|
|
1471
|
-
function
|
|
1492
|
+
function Un(e) {
|
|
1472
1493
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1473
1494
|
var i = n[r];
|
|
1474
1495
|
switch (i.stem) {
|
|
@@ -1492,7 +1513,7 @@ function $n(e) {
|
|
|
1492
1513
|
continue;
|
|
1493
1514
|
case "measure-unit":
|
|
1494
1515
|
case "unit":
|
|
1495
|
-
t.style = "unit", t.unit =
|
|
1516
|
+
t.style = "unit", t.unit = Mn(i.options[0]);
|
|
1496
1517
|
continue;
|
|
1497
1518
|
case "compact-short":
|
|
1498
1519
|
case "K":
|
|
@@ -1503,13 +1524,13 @@ function $n(e) {
|
|
|
1503
1524
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1504
1525
|
continue;
|
|
1505
1526
|
case "scientific":
|
|
1506
|
-
t =
|
|
1507
|
-
return
|
|
1527
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1528
|
+
return y(y({}, h), yt(u));
|
|
1508
1529
|
}, {}));
|
|
1509
1530
|
continue;
|
|
1510
1531
|
case "engineering":
|
|
1511
|
-
t =
|
|
1512
|
-
return
|
|
1532
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1533
|
+
return y(y({}, h), yt(u));
|
|
1513
1534
|
}, {}));
|
|
1514
1535
|
continue;
|
|
1515
1536
|
case "notation-simple":
|
|
@@ -1554,41 +1575,41 @@ function $n(e) {
|
|
|
1554
1575
|
case "integer-width":
|
|
1555
1576
|
if (i.options.length > 1)
|
|
1556
1577
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1557
|
-
i.options[0].replace(
|
|
1578
|
+
i.options[0].replace($n, function(h, u, l, f, c, m) {
|
|
1558
1579
|
if (u)
|
|
1559
1580
|
t.minimumIntegerDigits = l.length;
|
|
1560
1581
|
else {
|
|
1561
1582
|
if (f && c)
|
|
1562
1583
|
throw new Error("We currently do not support maximum integer digits");
|
|
1563
|
-
if (
|
|
1584
|
+
if (m)
|
|
1564
1585
|
throw new Error("We currently do not support exact integer digits");
|
|
1565
1586
|
}
|
|
1566
1587
|
return "";
|
|
1567
1588
|
});
|
|
1568
1589
|
continue;
|
|
1569
1590
|
}
|
|
1570
|
-
if (
|
|
1591
|
+
if (tr.test(i.stem)) {
|
|
1571
1592
|
t.minimumIntegerDigits = i.stem.length;
|
|
1572
1593
|
continue;
|
|
1573
1594
|
}
|
|
1574
|
-
if (
|
|
1595
|
+
if (vt.test(i.stem)) {
|
|
1575
1596
|
if (i.options.length > 1)
|
|
1576
1597
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1577
|
-
i.stem.replace(
|
|
1578
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1598
|
+
i.stem.replace(vt, function(h, u, l, f, c, m) {
|
|
1599
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1579
1600
|
});
|
|
1580
1601
|
var o = i.options[0];
|
|
1581
|
-
o === "w" ? t =
|
|
1602
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), gt(o)));
|
|
1582
1603
|
continue;
|
|
1583
1604
|
}
|
|
1584
|
-
if (
|
|
1585
|
-
t =
|
|
1605
|
+
if (er.test(i.stem)) {
|
|
1606
|
+
t = y(y({}, t), gt(i.stem));
|
|
1586
1607
|
continue;
|
|
1587
1608
|
}
|
|
1588
|
-
var s =
|
|
1589
|
-
s && (t =
|
|
1590
|
-
var a =
|
|
1591
|
-
a && (t =
|
|
1609
|
+
var s = rr(i.stem);
|
|
1610
|
+
s && (t = y(y({}, t), s));
|
|
1611
|
+
var a = Rn(i.stem);
|
|
1612
|
+
a && (t = y(y({}, t), a));
|
|
1592
1613
|
}
|
|
1593
1614
|
return t;
|
|
1594
1615
|
}
|
|
@@ -3007,13 +3028,13 @@ var ae = {
|
|
|
3007
3028
|
"h"
|
|
3008
3029
|
]
|
|
3009
3030
|
};
|
|
3010
|
-
function
|
|
3031
|
+
function Dn(e, t) {
|
|
3011
3032
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3012
3033
|
var i = e.charAt(n);
|
|
3013
3034
|
if (i === "j") {
|
|
3014
3035
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3015
3036
|
o++, n++;
|
|
3016
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3037
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Gn(t);
|
|
3017
3038
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3018
3039
|
r += h;
|
|
3019
3040
|
for (; s-- > 0; )
|
|
@@ -3023,7 +3044,7 @@ function Rn(e, t) {
|
|
|
3023
3044
|
}
|
|
3024
3045
|
return r;
|
|
3025
3046
|
}
|
|
3026
|
-
function
|
|
3047
|
+
function Gn(e) {
|
|
3027
3048
|
var t = e.hourCycle;
|
|
3028
3049
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3029
3050
|
e.hourCycles && // @ts-ignore
|
|
@@ -3045,20 +3066,20 @@ function Un(e) {
|
|
|
3045
3066
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3046
3067
|
return i[0];
|
|
3047
3068
|
}
|
|
3048
|
-
var
|
|
3069
|
+
var Ae, Fn = new RegExp("^".concat(Kt.source, "*")), jn = new RegExp("".concat(Kt.source, "*$"));
|
|
3049
3070
|
function d(e, t) {
|
|
3050
3071
|
return { start: e, end: t };
|
|
3051
3072
|
}
|
|
3052
|
-
var
|
|
3073
|
+
var Vn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Xn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
|
3053
3074
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3054
|
-
},
|
|
3075
|
+
}, je = !0;
|
|
3055
3076
|
try {
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3077
|
+
var qn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3078
|
+
je = ((Ae = qn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3058
3079
|
} catch (e) {
|
|
3059
|
-
|
|
3080
|
+
je = !1;
|
|
3060
3081
|
}
|
|
3061
|
-
var
|
|
3082
|
+
var _t = Vn ? (
|
|
3062
3083
|
// Native
|
|
3063
3084
|
function(t, r, n) {
|
|
3064
3085
|
return t.startsWith(r, n);
|
|
@@ -3068,7 +3089,7 @@ var gt = Fn ? (
|
|
|
3068
3089
|
function(t, r, n) {
|
|
3069
3090
|
return t.slice(n, n + r.length) === r;
|
|
3070
3091
|
}
|
|
3071
|
-
),
|
|
3092
|
+
), Ve = kn ? String.fromCodePoint : (
|
|
3072
3093
|
// IE11
|
|
3073
3094
|
function() {
|
|
3074
3095
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3080,9 +3101,9 @@ var gt = Fn ? (
|
|
|
3080
3101
|
}
|
|
3081
3102
|
return n;
|
|
3082
3103
|
}
|
|
3083
|
-
),
|
|
3104
|
+
), Et = (
|
|
3084
3105
|
// native
|
|
3085
|
-
|
|
3106
|
+
Xn ? Object.fromEntries : (
|
|
3086
3107
|
// Ponyfill
|
|
3087
3108
|
function(t) {
|
|
3088
3109
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3092,7 +3113,7 @@ var gt = Fn ? (
|
|
|
3092
3113
|
return r;
|
|
3093
3114
|
}
|
|
3094
3115
|
)
|
|
3095
|
-
),
|
|
3116
|
+
), nr = Wn ? (
|
|
3096
3117
|
// Native
|
|
3097
3118
|
function(t, r) {
|
|
3098
3119
|
return t.codePointAt(r);
|
|
@@ -3106,7 +3127,7 @@ var gt = Fn ? (
|
|
|
3106
3127
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3107
3128
|
}
|
|
3108
3129
|
}
|
|
3109
|
-
),
|
|
3130
|
+
), Yn = zn ? (
|
|
3110
3131
|
// Native
|
|
3111
3132
|
function(t) {
|
|
3112
3133
|
return t.trimStart();
|
|
@@ -3114,9 +3135,9 @@ var gt = Fn ? (
|
|
|
3114
3135
|
) : (
|
|
3115
3136
|
// Ponyfill
|
|
3116
3137
|
function(t) {
|
|
3117
|
-
return t.replace(
|
|
3138
|
+
return t.replace(Fn, "");
|
|
3118
3139
|
}
|
|
3119
|
-
),
|
|
3140
|
+
), Kn = Zn ? (
|
|
3120
3141
|
// Native
|
|
3121
3142
|
function(t) {
|
|
3122
3143
|
return t.trimEnd();
|
|
@@ -3124,32 +3145,32 @@ var gt = Fn ? (
|
|
|
3124
3145
|
) : (
|
|
3125
3146
|
// Ponyfill
|
|
3126
3147
|
function(t) {
|
|
3127
|
-
return t.replace(
|
|
3148
|
+
return t.replace(jn, "");
|
|
3128
3149
|
}
|
|
3129
3150
|
);
|
|
3130
|
-
function
|
|
3151
|
+
function ir(e, t) {
|
|
3131
3152
|
return new RegExp(e, t);
|
|
3132
3153
|
}
|
|
3133
|
-
var
|
|
3134
|
-
if (
|
|
3135
|
-
var
|
|
3136
|
-
|
|
3154
|
+
var ke;
|
|
3155
|
+
if (je) {
|
|
3156
|
+
var xt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3157
|
+
ke = function(t, r) {
|
|
3137
3158
|
var n;
|
|
3138
|
-
|
|
3139
|
-
var i =
|
|
3159
|
+
xt.lastIndex = r;
|
|
3160
|
+
var i = xt.exec(t);
|
|
3140
3161
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3141
3162
|
};
|
|
3142
3163
|
} else
|
|
3143
|
-
|
|
3164
|
+
ke = function(t, r) {
|
|
3144
3165
|
for (var n = []; ; ) {
|
|
3145
|
-
var i =
|
|
3146
|
-
if (i === void 0 ||
|
|
3166
|
+
var i = nr(t, r);
|
|
3167
|
+
if (i === void 0 || or(i) || ni(i))
|
|
3147
3168
|
break;
|
|
3148
3169
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3149
3170
|
}
|
|
3150
|
-
return
|
|
3171
|
+
return Ve.apply(void 0, n);
|
|
3151
3172
|
};
|
|
3152
|
-
var
|
|
3173
|
+
var ei = (
|
|
3153
3174
|
/** @class */
|
|
3154
3175
|
function() {
|
|
3155
3176
|
function e(t, r) {
|
|
@@ -3173,14 +3194,14 @@ var Yn = (
|
|
|
3173
3194
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3174
3195
|
var a = this.clonePosition();
|
|
3175
3196
|
this.bump(), i.push({
|
|
3176
|
-
type:
|
|
3197
|
+
type: g.pound,
|
|
3177
3198
|
location: d(a, this.clonePosition())
|
|
3178
3199
|
});
|
|
3179
3200
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3180
3201
|
if (n)
|
|
3181
3202
|
break;
|
|
3182
3203
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3183
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3204
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3184
3205
|
var s = this.parseTag(t, r);
|
|
3185
3206
|
if (s.err)
|
|
3186
3207
|
return s;
|
|
@@ -3201,7 +3222,7 @@ var Yn = (
|
|
|
3201
3222
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3202
3223
|
return {
|
|
3203
3224
|
val: {
|
|
3204
|
-
type:
|
|
3225
|
+
type: g.literal,
|
|
3205
3226
|
value: "<".concat(i, "/>"),
|
|
3206
3227
|
location: d(n, this.clonePosition())
|
|
3207
3228
|
},
|
|
@@ -3213,12 +3234,12 @@ var Yn = (
|
|
|
3213
3234
|
return o;
|
|
3214
3235
|
var s = o.val, a = this.clonePosition();
|
|
3215
3236
|
if (this.bumpIf("</")) {
|
|
3216
|
-
if (this.isEOF() || !
|
|
3237
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3217
3238
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3218
3239
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3219
3240
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3220
3241
|
val: {
|
|
3221
|
-
type:
|
|
3242
|
+
type: g.tag,
|
|
3222
3243
|
value: i,
|
|
3223
3244
|
children: s,
|
|
3224
3245
|
location: d(n, this.clonePosition())
|
|
@@ -3231,7 +3252,7 @@ var Yn = (
|
|
|
3231
3252
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3232
3253
|
}, e.prototype.parseTagName = function() {
|
|
3233
3254
|
var t = this.offset();
|
|
3234
|
-
for (this.bump(); !this.isEOF() &&
|
|
3255
|
+
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
|
3235
3256
|
this.bump();
|
|
3236
3257
|
return this.message.slice(t, this.offset());
|
|
3237
3258
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3255,12 +3276,12 @@ var Yn = (
|
|
|
3255
3276
|
}
|
|
3256
3277
|
var h = d(n, this.clonePosition());
|
|
3257
3278
|
return {
|
|
3258
|
-
val: { type:
|
|
3279
|
+
val: { type: g.literal, value: i, location: h },
|
|
3259
3280
|
err: null
|
|
3260
3281
|
};
|
|
3261
3282
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3262
3283
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3263
|
-
!
|
|
3284
|
+
!ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3264
3285
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3265
3286
|
if (this.isEOF() || this.char() !== 39)
|
|
3266
3287
|
return null;
|
|
@@ -3294,12 +3315,12 @@ var Yn = (
|
|
|
3294
3315
|
r.push(n);
|
|
3295
3316
|
this.bump();
|
|
3296
3317
|
}
|
|
3297
|
-
return
|
|
3318
|
+
return Ve.apply(void 0, r);
|
|
3298
3319
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3299
3320
|
if (this.isEOF())
|
|
3300
3321
|
return null;
|
|
3301
3322
|
var n = this.char();
|
|
3302
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3323
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3303
3324
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3304
3325
|
var n = this.clonePosition();
|
|
3305
3326
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3315,7 +3336,7 @@ var Yn = (
|
|
|
3315
3336
|
case 125:
|
|
3316
3337
|
return this.bump(), {
|
|
3317
3338
|
val: {
|
|
3318
|
-
type:
|
|
3339
|
+
type: g.argument,
|
|
3319
3340
|
// value does not include the opening and closing braces.
|
|
3320
3341
|
value: i,
|
|
3321
3342
|
location: d(n, this.clonePosition())
|
|
@@ -3328,7 +3349,7 @@ var Yn = (
|
|
|
3328
3349
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3329
3350
|
}
|
|
3330
3351
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3331
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3352
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3332
3353
|
this.bumpTo(i);
|
|
3333
3354
|
var o = this.clonePosition(), s = d(t, o);
|
|
3334
3355
|
return { value: n, location: s };
|
|
@@ -3347,46 +3368,46 @@ var Yn = (
|
|
|
3347
3368
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3348
3369
|
if (f.err)
|
|
3349
3370
|
return f;
|
|
3350
|
-
var c =
|
|
3371
|
+
var c = Kn(f.val);
|
|
3351
3372
|
if (c.length === 0)
|
|
3352
3373
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3353
|
-
var
|
|
3354
|
-
u = { style: c, styleLocation:
|
|
3374
|
+
var m = d(l, this.clonePosition());
|
|
3375
|
+
u = { style: c, styleLocation: m };
|
|
3355
3376
|
}
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var
|
|
3360
|
-
if (u &&
|
|
3361
|
-
var
|
|
3377
|
+
var v = this.tryParseArgumentClose(i);
|
|
3378
|
+
if (v.err)
|
|
3379
|
+
return v;
|
|
3380
|
+
var b = d(i, this.clonePosition());
|
|
3381
|
+
if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
|
|
3382
|
+
var H = Yn(u.style.slice(2));
|
|
3362
3383
|
if (a === "number") {
|
|
3363
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3384
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3364
3385
|
return f.err ? f : {
|
|
3365
|
-
val: { type:
|
|
3386
|
+
val: { type: g.number, value: n, location: b, style: f.val },
|
|
3366
3387
|
err: null
|
|
3367
3388
|
};
|
|
3368
3389
|
} else {
|
|
3369
|
-
if (
|
|
3370
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3371
|
-
var E =
|
|
3372
|
-
this.locale && (E =
|
|
3390
|
+
if (H.length === 0)
|
|
3391
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3392
|
+
var E = H;
|
|
3393
|
+
this.locale && (E = Dn(H, this.locale));
|
|
3373
3394
|
var c = {
|
|
3374
|
-
type:
|
|
3395
|
+
type: F.dateTime,
|
|
3375
3396
|
pattern: E,
|
|
3376
3397
|
location: u.styleLocation,
|
|
3377
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3378
|
-
}, N = a === "date" ?
|
|
3398
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(E) : {}
|
|
3399
|
+
}, N = a === "date" ? g.date : g.time;
|
|
3379
3400
|
return {
|
|
3380
|
-
val: { type: N, value: n, location:
|
|
3401
|
+
val: { type: N, value: n, location: b, style: c },
|
|
3381
3402
|
err: null
|
|
3382
3403
|
};
|
|
3383
3404
|
}
|
|
3384
3405
|
}
|
|
3385
3406
|
return {
|
|
3386
3407
|
val: {
|
|
3387
|
-
type: a === "number" ?
|
|
3408
|
+
type: a === "number" ? g.number : a === "date" ? g.date : g.time,
|
|
3388
3409
|
value: n,
|
|
3389
|
-
location:
|
|
3410
|
+
location: b,
|
|
3390
3411
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3391
3412
|
},
|
|
3392
3413
|
err: null
|
|
@@ -3397,41 +3418,41 @@ var Yn = (
|
|
|
3397
3418
|
case "select": {
|
|
3398
3419
|
var T = this.clonePosition();
|
|
3399
3420
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3400
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T,
|
|
3421
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T, pe({}, T)));
|
|
3401
3422
|
this.bumpSpace();
|
|
3402
|
-
var
|
|
3403
|
-
if (a !== "select" &&
|
|
3423
|
+
var z = this.parseIdentifierIfPossible(), C = 0;
|
|
3424
|
+
if (a !== "select" && z.value === "offset") {
|
|
3404
3425
|
if (!this.bumpIf(":"))
|
|
3405
3426
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3406
3427
|
this.bumpSpace();
|
|
3407
3428
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3408
3429
|
if (f.err)
|
|
3409
3430
|
return f;
|
|
3410
|
-
this.bumpSpace(),
|
|
3431
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), C = f.val;
|
|
3411
3432
|
}
|
|
3412
|
-
var ie = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3433
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3413
3434
|
if (ie.err)
|
|
3414
3435
|
return ie;
|
|
3415
|
-
var
|
|
3416
|
-
if (
|
|
3417
|
-
return
|
|
3418
|
-
var
|
|
3436
|
+
var v = this.tryParseArgumentClose(i);
|
|
3437
|
+
if (v.err)
|
|
3438
|
+
return v;
|
|
3439
|
+
var Ye = d(i, this.clonePosition());
|
|
3419
3440
|
return a === "select" ? {
|
|
3420
3441
|
val: {
|
|
3421
|
-
type:
|
|
3442
|
+
type: g.select,
|
|
3422
3443
|
value: n,
|
|
3423
|
-
options:
|
|
3424
|
-
location:
|
|
3444
|
+
options: Et(ie.val),
|
|
3445
|
+
location: Ye
|
|
3425
3446
|
},
|
|
3426
3447
|
err: null
|
|
3427
3448
|
} : {
|
|
3428
3449
|
val: {
|
|
3429
|
-
type:
|
|
3450
|
+
type: g.plural,
|
|
3430
3451
|
value: n,
|
|
3431
|
-
options:
|
|
3432
|
-
offset:
|
|
3452
|
+
options: Et(ie.val),
|
|
3453
|
+
offset: C,
|
|
3433
3454
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3434
|
-
location:
|
|
3455
|
+
location: Ye
|
|
3435
3456
|
},
|
|
3436
3457
|
err: null
|
|
3437
3458
|
};
|
|
@@ -3479,16 +3500,16 @@ var Yn = (
|
|
|
3479
3500
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3480
3501
|
var n = [];
|
|
3481
3502
|
try {
|
|
3482
|
-
n =
|
|
3503
|
+
n = Nn(t);
|
|
3483
3504
|
} catch (i) {
|
|
3484
3505
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3485
3506
|
}
|
|
3486
3507
|
return {
|
|
3487
3508
|
val: {
|
|
3488
|
-
type:
|
|
3509
|
+
type: F.number,
|
|
3489
3510
|
tokens: n,
|
|
3490
3511
|
location: r,
|
|
3491
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3512
|
+
parsedOptions: this.shouldParseSkeletons ? Un(n) : {}
|
|
3492
3513
|
},
|
|
3493
3514
|
err: null
|
|
3494
3515
|
};
|
|
@@ -3507,20 +3528,20 @@ var Yn = (
|
|
|
3507
3528
|
if (h.has(u))
|
|
3508
3529
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3509
3530
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3510
|
-
var
|
|
3531
|
+
var m = this.clonePosition();
|
|
3511
3532
|
if (!this.bumpIf("{"))
|
|
3512
3533
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3513
|
-
var
|
|
3514
|
-
if (g.err)
|
|
3515
|
-
return g;
|
|
3516
|
-
var v = this.tryParseArgumentClose(b);
|
|
3534
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3517
3535
|
if (v.err)
|
|
3518
3536
|
return v;
|
|
3537
|
+
var b = this.tryParseArgumentClose(m);
|
|
3538
|
+
if (b.err)
|
|
3539
|
+
return b;
|
|
3519
3540
|
a.push([
|
|
3520
3541
|
u,
|
|
3521
3542
|
{
|
|
3522
|
-
value:
|
|
3523
|
-
location: d(
|
|
3543
|
+
value: v.val,
|
|
3544
|
+
location: d(m, this.clonePosition())
|
|
3524
3545
|
}
|
|
3525
3546
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3526
3547
|
}
|
|
@@ -3536,7 +3557,7 @@ var Yn = (
|
|
|
3536
3557
|
break;
|
|
3537
3558
|
}
|
|
3538
3559
|
var h = d(i, this.clonePosition());
|
|
3539
|
-
return o ? (s *= n,
|
|
3560
|
+
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3540
3561
|
}, e.prototype.offset = function() {
|
|
3541
3562
|
return this.position.offset;
|
|
3542
3563
|
}, e.prototype.isEOF = function() {
|
|
@@ -3551,7 +3572,7 @@ var Yn = (
|
|
|
3551
3572
|
var t = this.position.offset;
|
|
3552
3573
|
if (t >= this.message.length)
|
|
3553
3574
|
throw Error("out of bound");
|
|
3554
|
-
var r =
|
|
3575
|
+
var r = nr(this.message, t);
|
|
3555
3576
|
if (r === void 0)
|
|
3556
3577
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3557
3578
|
return r;
|
|
@@ -3570,7 +3591,7 @@ var Yn = (
|
|
|
3570
3591
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3571
3592
|
}
|
|
3572
3593
|
}, e.prototype.bumpIf = function(t) {
|
|
3573
|
-
if (
|
|
3594
|
+
if (_t(this.message, t, this.offset())) {
|
|
3574
3595
|
for (var r = 0; r < t.length; r++)
|
|
3575
3596
|
this.bump();
|
|
3576
3597
|
return !0;
|
|
@@ -3592,7 +3613,7 @@ var Yn = (
|
|
|
3592
3613
|
break;
|
|
3593
3614
|
}
|
|
3594
3615
|
}, e.prototype.bumpSpace = function() {
|
|
3595
|
-
for (; !this.isEOF() &&
|
|
3616
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3596
3617
|
this.bump();
|
|
3597
3618
|
}, e.prototype.peek = function() {
|
|
3598
3619
|
if (this.isEOF())
|
|
@@ -3602,47 +3623,47 @@ var Yn = (
|
|
|
3602
3623
|
}, e;
|
|
3603
3624
|
}()
|
|
3604
3625
|
);
|
|
3605
|
-
function
|
|
3626
|
+
function Xe(e) {
|
|
3606
3627
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3607
3628
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return
|
|
3629
|
+
function ti(e) {
|
|
3630
|
+
return Xe(e) || e === 47;
|
|
3610
3631
|
}
|
|
3611
|
-
function
|
|
3632
|
+
function ri(e) {
|
|
3612
3633
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3613
3634
|
}
|
|
3614
|
-
function
|
|
3635
|
+
function or(e) {
|
|
3615
3636
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3616
3637
|
}
|
|
3617
|
-
function
|
|
3638
|
+
function ni(e) {
|
|
3618
3639
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3619
3640
|
}
|
|
3620
|
-
function
|
|
3641
|
+
function We(e) {
|
|
3621
3642
|
e.forEach(function(t) {
|
|
3622
|
-
if (delete t.location,
|
|
3643
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3623
3644
|
for (var r in t.options)
|
|
3624
|
-
delete t.options[r].location,
|
|
3645
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3625
3646
|
else
|
|
3626
|
-
|
|
3647
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && Fe(t.style) ? delete t.style.location : qt(t) && We(t.children);
|
|
3627
3648
|
});
|
|
3628
3649
|
}
|
|
3629
|
-
function
|
|
3630
|
-
t === void 0 && (t = {}), t =
|
|
3631
|
-
var r = new
|
|
3650
|
+
function ii(e, t) {
|
|
3651
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3652
|
+
var r = new ei(e, t).parse();
|
|
3632
3653
|
if (r.err) {
|
|
3633
3654
|
var n = SyntaxError(p[r.err.kind]);
|
|
3634
3655
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3635
3656
|
}
|
|
3636
|
-
return t != null && t.captureLocation ||
|
|
3657
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3637
3658
|
}
|
|
3638
|
-
var
|
|
3659
|
+
var j;
|
|
3639
3660
|
(function(e) {
|
|
3640
3661
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3641
|
-
})(
|
|
3642
|
-
var
|
|
3662
|
+
})(j || (j = {}));
|
|
3663
|
+
var ye = (
|
|
3643
3664
|
/** @class */
|
|
3644
3665
|
function(e) {
|
|
3645
|
-
|
|
3666
|
+
ge(t, e);
|
|
3646
3667
|
function t(r, n, i) {
|
|
3647
3668
|
var o = e.call(this, r) || this;
|
|
3648
3669
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3651,48 +3672,48 @@ var ve = (
|
|
|
3651
3672
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3652
3673
|
}, t;
|
|
3653
3674
|
}(Error)
|
|
3654
|
-
),
|
|
3675
|
+
), St = (
|
|
3655
3676
|
/** @class */
|
|
3656
3677
|
function(e) {
|
|
3657
|
-
|
|
3678
|
+
ge(t, e);
|
|
3658
3679
|
function t(r, n, i, o) {
|
|
3659
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3680
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3660
3681
|
}
|
|
3661
3682
|
return t;
|
|
3662
|
-
}(
|
|
3663
|
-
),
|
|
3683
|
+
}(ye)
|
|
3684
|
+
), oi = (
|
|
3664
3685
|
/** @class */
|
|
3665
3686
|
function(e) {
|
|
3666
|
-
|
|
3687
|
+
ge(t, e);
|
|
3667
3688
|
function t(r, n, i) {
|
|
3668
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3689
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3669
3690
|
}
|
|
3670
3691
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3692
|
+
}(ye)
|
|
3693
|
+
), si = (
|
|
3673
3694
|
/** @class */
|
|
3674
3695
|
function(e) {
|
|
3675
|
-
|
|
3696
|
+
ge(t, e);
|
|
3676
3697
|
function t(r, n) {
|
|
3677
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3698
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3678
3699
|
}
|
|
3679
3700
|
return t;
|
|
3680
|
-
}(
|
|
3701
|
+
}(ye)
|
|
3681
3702
|
), x;
|
|
3682
3703
|
(function(e) {
|
|
3683
3704
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3684
3705
|
})(x || (x = {}));
|
|
3685
|
-
function
|
|
3706
|
+
function ai(e) {
|
|
3686
3707
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3687
3708
|
var n = t[t.length - 1];
|
|
3688
3709
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3689
3710
|
}, []);
|
|
3690
3711
|
}
|
|
3691
|
-
function
|
|
3712
|
+
function ui(e) {
|
|
3692
3713
|
return typeof e == "function";
|
|
3693
3714
|
}
|
|
3694
3715
|
function le(e, t, r, n, i, o, s) {
|
|
3695
|
-
if (e.length === 1 &&
|
|
3716
|
+
if (e.length === 1 && bt(e[0]))
|
|
3696
3717
|
return [
|
|
3697
3718
|
{
|
|
3698
3719
|
type: x.literal,
|
|
@@ -3701,14 +3722,14 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3701
3722
|
];
|
|
3702
3723
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3703
3724
|
var l = u[h];
|
|
3704
|
-
if (
|
|
3725
|
+
if (bt(l)) {
|
|
3705
3726
|
a.push({
|
|
3706
3727
|
type: x.literal,
|
|
3707
3728
|
value: l.value
|
|
3708
3729
|
});
|
|
3709
3730
|
continue;
|
|
3710
3731
|
}
|
|
3711
|
-
if (
|
|
3732
|
+
if (On(l)) {
|
|
3712
3733
|
typeof o == "number" && a.push({
|
|
3713
3734
|
type: x.literal,
|
|
3714
3735
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3717,89 +3738,89 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3717
3738
|
}
|
|
3718
3739
|
var f = l.value;
|
|
3719
3740
|
if (!(i && f in i))
|
|
3720
|
-
throw new
|
|
3741
|
+
throw new si(f, s);
|
|
3721
3742
|
var c = i[f];
|
|
3722
|
-
if (
|
|
3743
|
+
if (Pn(l)) {
|
|
3723
3744
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3724
3745
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3725
3746
|
value: c
|
|
3726
3747
|
});
|
|
3727
3748
|
continue;
|
|
3728
3749
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3750
|
+
if (zt(l)) {
|
|
3751
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3731
3752
|
a.push({
|
|
3732
3753
|
type: x.literal,
|
|
3733
|
-
value: r.getDateTimeFormat(t,
|
|
3754
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3734
3755
|
});
|
|
3735
3756
|
continue;
|
|
3736
3757
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var
|
|
3758
|
+
if (Zt(l)) {
|
|
3759
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3739
3760
|
a.push({
|
|
3740
3761
|
type: x.literal,
|
|
3741
|
-
value: r.getDateTimeFormat(t,
|
|
3762
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3742
3763
|
});
|
|
3743
3764
|
continue;
|
|
3744
3765
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var
|
|
3747
|
-
|
|
3766
|
+
if (Wt(l)) {
|
|
3767
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3768
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3748
3769
|
type: x.literal,
|
|
3749
|
-
value: r.getNumberFormat(t,
|
|
3770
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3750
3771
|
});
|
|
3751
3772
|
continue;
|
|
3752
3773
|
}
|
|
3753
|
-
if (
|
|
3754
|
-
var
|
|
3755
|
-
if (!
|
|
3756
|
-
throw new
|
|
3757
|
-
var E = le(
|
|
3758
|
-
return
|
|
3774
|
+
if (qt(l)) {
|
|
3775
|
+
var v = l.children, b = l.value, H = i[b];
|
|
3776
|
+
if (!ui(H))
|
|
3777
|
+
throw new oi(b, "function", s);
|
|
3778
|
+
var E = le(v, t, r, n, i, o), N = H(E.map(function(C) {
|
|
3779
|
+
return C.value;
|
|
3759
3780
|
}));
|
|
3760
|
-
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(
|
|
3781
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(C) {
|
|
3761
3782
|
return {
|
|
3762
|
-
type: typeof
|
|
3763
|
-
value:
|
|
3783
|
+
type: typeof C == "string" ? x.literal : x.object,
|
|
3784
|
+
value: C
|
|
3764
3785
|
};
|
|
3765
3786
|
}));
|
|
3766
3787
|
}
|
|
3767
|
-
if (
|
|
3788
|
+
if (Qt(l)) {
|
|
3768
3789
|
var T = l.options[c] || l.options.other;
|
|
3769
3790
|
if (!T)
|
|
3770
|
-
throw new
|
|
3791
|
+
throw new St(l.value, c, Object.keys(l.options), s);
|
|
3771
3792
|
a.push.apply(a, le(T.value, t, r, n, i));
|
|
3772
3793
|
continue;
|
|
3773
3794
|
}
|
|
3774
|
-
if (
|
|
3795
|
+
if (Jt(l)) {
|
|
3775
3796
|
var T = l.options["=".concat(c)];
|
|
3776
3797
|
if (!T) {
|
|
3777
3798
|
if (!Intl.PluralRules)
|
|
3778
|
-
throw new
|
|
3799
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3779
3800
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3780
|
-
`,
|
|
3781
|
-
var
|
|
3782
|
-
T = l.options[
|
|
3801
|
+
`, j.MISSING_INTL_API, s);
|
|
3802
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3803
|
+
T = l.options[z] || l.options.other;
|
|
3783
3804
|
}
|
|
3784
3805
|
if (!T)
|
|
3785
|
-
throw new
|
|
3806
|
+
throw new St(l.value, c, Object.keys(l.options), s);
|
|
3786
3807
|
a.push.apply(a, le(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3787
3808
|
continue;
|
|
3788
3809
|
}
|
|
3789
3810
|
}
|
|
3790
|
-
return
|
|
3811
|
+
return ai(a);
|
|
3791
3812
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return t ?
|
|
3794
|
-
return r[n] =
|
|
3813
|
+
function hi(e, t) {
|
|
3814
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3815
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3795
3816
|
}, {})) : e;
|
|
3796
3817
|
}
|
|
3797
|
-
function
|
|
3818
|
+
function li(e, t) {
|
|
3798
3819
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3799
|
-
return r[n] =
|
|
3800
|
-
},
|
|
3820
|
+
return r[n] = hi(e[n], t[n]), r;
|
|
3821
|
+
}, B({}, e)) : e;
|
|
3801
3822
|
}
|
|
3802
|
-
function
|
|
3823
|
+
function Pe(e) {
|
|
3803
3824
|
return {
|
|
3804
3825
|
create: function() {
|
|
3805
3826
|
return {
|
|
@@ -3813,39 +3834,39 @@ function Be(e) {
|
|
|
3813
3834
|
}
|
|
3814
3835
|
};
|
|
3815
3836
|
}
|
|
3816
|
-
function
|
|
3837
|
+
function fi(e) {
|
|
3817
3838
|
return e === void 0 && (e = {
|
|
3818
3839
|
number: {},
|
|
3819
3840
|
dateTime: {},
|
|
3820
3841
|
pluralRules: {}
|
|
3821
3842
|
}), {
|
|
3822
|
-
getNumberFormat:
|
|
3843
|
+
getNumberFormat: Te(function() {
|
|
3823
3844
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3845
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3846
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3826
3847
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3848
|
+
cache: Pe(e.number),
|
|
3849
|
+
strategy: Be.variadic
|
|
3829
3850
|
}),
|
|
3830
|
-
getDateTimeFormat:
|
|
3851
|
+
getDateTimeFormat: Te(function() {
|
|
3831
3852
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3853
|
r[n] = arguments[n];
|
|
3833
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3854
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3834
3855
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3856
|
+
cache: Pe(e.dateTime),
|
|
3857
|
+
strategy: Be.variadic
|
|
3837
3858
|
}),
|
|
3838
|
-
getPluralRules:
|
|
3859
|
+
getPluralRules: Te(function() {
|
|
3839
3860
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3840
3861
|
r[n] = arguments[n];
|
|
3841
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3862
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3842
3863
|
}, {
|
|
3843
|
-
cache:
|
|
3844
|
-
strategy:
|
|
3864
|
+
cache: Pe(e.pluralRules),
|
|
3865
|
+
strategy: Be.variadic
|
|
3845
3866
|
})
|
|
3846
3867
|
};
|
|
3847
3868
|
}
|
|
3848
|
-
var
|
|
3869
|
+
var ci = (
|
|
3849
3870
|
/** @class */
|
|
3850
3871
|
function() {
|
|
3851
3872
|
function e(t, r, n, i) {
|
|
@@ -3877,13 +3898,13 @@ var li = (
|
|
|
3877
3898
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3878
3899
|
var s = i || {};
|
|
3879
3900
|
s.formatters;
|
|
3880
|
-
var a =
|
|
3881
|
-
this.ast = e.__parse(t,
|
|
3901
|
+
var a = En(s, ["formatters"]);
|
|
3902
|
+
this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
|
|
3882
3903
|
} else
|
|
3883
3904
|
this.ast = t;
|
|
3884
3905
|
if (!Array.isArray(this.ast))
|
|
3885
3906
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3886
|
-
this.formats =
|
|
3907
|
+
this.formats = li(e.formats, n), this.formatters = i && i.formatters || fi(this.formatterCache);
|
|
3887
3908
|
}
|
|
3888
3909
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3889
3910
|
get: function() {
|
|
@@ -3896,7 +3917,7 @@ var li = (
|
|
|
3896
3917
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3897
3918
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3898
3919
|
}
|
|
3899
|
-
}, e.__parse =
|
|
3920
|
+
}, e.__parse = ii, e.formats = {
|
|
3900
3921
|
number: {
|
|
3901
3922
|
integer: {
|
|
3902
3923
|
maximumFractionDigits: 0
|
|
@@ -3957,7 +3978,7 @@ var li = (
|
|
|
3957
3978
|
}, e;
|
|
3958
3979
|
}()
|
|
3959
3980
|
);
|
|
3960
|
-
function
|
|
3981
|
+
function pi(e, t) {
|
|
3961
3982
|
if (t == null)
|
|
3962
3983
|
return;
|
|
3963
3984
|
if (t in e)
|
|
@@ -3978,92 +3999,92 @@ function fi(e, t) {
|
|
|
3978
3999
|
n = void 0;
|
|
3979
4000
|
return n;
|
|
3980
4001
|
}
|
|
3981
|
-
const
|
|
4002
|
+
const O = {}, di = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), sr = (e, t) => {
|
|
3982
4003
|
if (t == null)
|
|
3983
4004
|
return;
|
|
3984
|
-
if (t in
|
|
3985
|
-
return
|
|
3986
|
-
const r =
|
|
4005
|
+
if (t in O && e in O[t])
|
|
4006
|
+
return O[t][e];
|
|
4007
|
+
const r = _e(t);
|
|
3987
4008
|
for (let n = 0; n < r.length; n++) {
|
|
3988
|
-
const i = r[n], o =
|
|
4009
|
+
const i = r[n], o = bi(i, e);
|
|
3989
4010
|
if (o)
|
|
3990
|
-
return
|
|
4011
|
+
return di(e, t, o);
|
|
3991
4012
|
}
|
|
3992
4013
|
};
|
|
3993
|
-
let
|
|
3994
|
-
const re =
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
4014
|
+
let Je;
|
|
4015
|
+
const re = ve({});
|
|
4016
|
+
function mi(e) {
|
|
4017
|
+
return Je[e] || null;
|
|
3997
4018
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return e in
|
|
4019
|
+
function ar(e) {
|
|
4020
|
+
return e in Je;
|
|
4000
4021
|
}
|
|
4001
|
-
function
|
|
4002
|
-
if (!
|
|
4022
|
+
function bi(e, t) {
|
|
4023
|
+
if (!ar(e))
|
|
4003
4024
|
return null;
|
|
4004
|
-
const r =
|
|
4005
|
-
return
|
|
4025
|
+
const r = mi(e);
|
|
4026
|
+
return pi(r, t);
|
|
4006
4027
|
}
|
|
4007
|
-
function
|
|
4028
|
+
function vi(e) {
|
|
4008
4029
|
if (e == null)
|
|
4009
4030
|
return;
|
|
4010
|
-
const t =
|
|
4031
|
+
const t = _e(e);
|
|
4011
4032
|
for (let r = 0; r < t.length; r++) {
|
|
4012
4033
|
const n = t[r];
|
|
4013
|
-
if (
|
|
4034
|
+
if (ar(n))
|
|
4014
4035
|
return n;
|
|
4015
4036
|
}
|
|
4016
4037
|
}
|
|
4017
|
-
function
|
|
4018
|
-
delete
|
|
4038
|
+
function gi(e, ...t) {
|
|
4039
|
+
delete O[e], re.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
4019
4040
|
}
|
|
4020
|
-
|
|
4041
|
+
X(
|
|
4021
4042
|
[re],
|
|
4022
4043
|
([e]) => Object.keys(e)
|
|
4023
4044
|
);
|
|
4024
|
-
re.subscribe((e) =>
|
|
4045
|
+
re.subscribe((e) => Je = e);
|
|
4025
4046
|
const fe = {};
|
|
4026
|
-
function
|
|
4047
|
+
function yi(e, t) {
|
|
4027
4048
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4028
4049
|
}
|
|
4029
|
-
function
|
|
4050
|
+
function ur(e) {
|
|
4030
4051
|
return fe[e];
|
|
4031
4052
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return
|
|
4034
|
-
const r =
|
|
4053
|
+
function _i(e) {
|
|
4054
|
+
return _e(e).map((t) => {
|
|
4055
|
+
const r = ur(t);
|
|
4035
4056
|
return [t, r ? [...r] : []];
|
|
4036
4057
|
}).filter(([, t]) => t.length > 0);
|
|
4037
4058
|
}
|
|
4038
|
-
function
|
|
4039
|
-
return e == null ? !1 :
|
|
4059
|
+
function ze(e) {
|
|
4060
|
+
return e == null ? !1 : _e(e).some(
|
|
4040
4061
|
(t) => {
|
|
4041
4062
|
var r;
|
|
4042
|
-
return (r =
|
|
4063
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
4043
4064
|
}
|
|
4044
4065
|
);
|
|
4045
4066
|
}
|
|
4046
|
-
function
|
|
4067
|
+
function Ei(e, t) {
|
|
4047
4068
|
return Promise.all(
|
|
4048
|
-
t.map((n) => (
|
|
4049
|
-
).then((n) =>
|
|
4050
|
-
}
|
|
4051
|
-
const
|
|
4052
|
-
function
|
|
4053
|
-
if (!
|
|
4054
|
-
return e in
|
|
4055
|
-
const t =
|
|
4056
|
-
return
|
|
4069
|
+
t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
|
|
4070
|
+
).then((n) => gi(e, ...n));
|
|
4071
|
+
}
|
|
4072
|
+
const Z = {};
|
|
4073
|
+
function hr(e) {
|
|
4074
|
+
if (!ze(e))
|
|
4075
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4076
|
+
const t = _i(e);
|
|
4077
|
+
return Z[e] = Promise.all(
|
|
4057
4078
|
t.map(
|
|
4058
|
-
([r, n]) =>
|
|
4079
|
+
([r, n]) => Ei(r, n)
|
|
4059
4080
|
)
|
|
4060
4081
|
).then(() => {
|
|
4061
|
-
if (
|
|
4062
|
-
return
|
|
4063
|
-
delete
|
|
4064
|
-
}),
|
|
4082
|
+
if (ze(e))
|
|
4083
|
+
return hr(e);
|
|
4084
|
+
delete Z[e];
|
|
4085
|
+
}), Z[e];
|
|
4065
4086
|
}
|
|
4066
|
-
const
|
|
4087
|
+
const xi = {
|
|
4067
4088
|
number: {
|
|
4068
4089
|
scientific: { notation: "scientific" },
|
|
4069
4090
|
engineering: { notation: "engineering" },
|
|
@@ -4092,135 +4113,135 @@ const _i = {
|
|
|
4092
4113
|
timeZoneName: "short"
|
|
4093
4114
|
}
|
|
4094
4115
|
}
|
|
4095
|
-
},
|
|
4116
|
+
}, Si = {
|
|
4096
4117
|
fallbackLocale: null,
|
|
4097
4118
|
loadingDelay: 200,
|
|
4098
|
-
formats:
|
|
4119
|
+
formats: xi,
|
|
4099
4120
|
warnOnMissingMessages: !0,
|
|
4100
4121
|
handleMissingMessage: void 0,
|
|
4101
4122
|
ignoreTag: !0
|
|
4102
|
-
},
|
|
4103
|
-
function
|
|
4104
|
-
return
|
|
4123
|
+
}, wi = Si;
|
|
4124
|
+
function V() {
|
|
4125
|
+
return wi;
|
|
4105
4126
|
}
|
|
4106
|
-
const
|
|
4107
|
-
var
|
|
4127
|
+
const Oe = ve(!1);
|
|
4128
|
+
var Hi = Object.defineProperty, Ti = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oi = (e, t) => {
|
|
4108
4129
|
for (var r in t || (t = {}))
|
|
4109
|
-
|
|
4110
|
-
if (
|
|
4111
|
-
for (var r of
|
|
4112
|
-
|
|
4130
|
+
Ai.call(t, r) && Ht(e, r, t[r]);
|
|
4131
|
+
if (wt)
|
|
4132
|
+
for (var r of wt(t))
|
|
4133
|
+
Pi.call(t, r) && Ht(e, r, t[r]);
|
|
4113
4134
|
return e;
|
|
4114
|
-
},
|
|
4115
|
-
let
|
|
4116
|
-
const
|
|
4117
|
-
function
|
|
4135
|
+
}, Ci = (e, t) => Ti(e, Bi(t));
|
|
4136
|
+
let Ze;
|
|
4137
|
+
const de = ve(null);
|
|
4138
|
+
function Tt(e) {
|
|
4118
4139
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4119
4140
|
}
|
|
4120
|
-
function
|
|
4121
|
-
const r =
|
|
4122
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4141
|
+
function _e(e, t = V().fallbackLocale) {
|
|
4142
|
+
const r = Tt(e);
|
|
4143
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4123
4144
|
}
|
|
4124
4145
|
function I() {
|
|
4125
|
-
return
|
|
4146
|
+
return Ze != null ? Ze : void 0;
|
|
4126
4147
|
}
|
|
4127
|
-
|
|
4128
|
-
|
|
4148
|
+
de.subscribe((e) => {
|
|
4149
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4129
4150
|
});
|
|
4130
|
-
const
|
|
4131
|
-
if (e &&
|
|
4132
|
-
const { loadingDelay: t } =
|
|
4151
|
+
const Li = (e) => {
|
|
4152
|
+
if (e && vi(e) && ze(e)) {
|
|
4153
|
+
const { loadingDelay: t } = V();
|
|
4133
4154
|
let r;
|
|
4134
4155
|
return typeof window != "undefined" && I() != null && t ? r = window.setTimeout(
|
|
4135
|
-
() =>
|
|
4156
|
+
() => Oe.set(!0),
|
|
4136
4157
|
t
|
|
4137
|
-
) :
|
|
4138
|
-
|
|
4158
|
+
) : Oe.set(!0), hr(e).then(() => {
|
|
4159
|
+
de.set(e);
|
|
4139
4160
|
}).finally(() => {
|
|
4140
|
-
clearTimeout(r),
|
|
4161
|
+
clearTimeout(r), Oe.set(!1);
|
|
4141
4162
|
});
|
|
4142
4163
|
}
|
|
4143
|
-
return
|
|
4144
|
-
}, ne =
|
|
4145
|
-
set:
|
|
4146
|
-
}),
|
|
4164
|
+
return de.set(e);
|
|
4165
|
+
}, ne = Ci(Oi({}, de), {
|
|
4166
|
+
set: Li
|
|
4167
|
+
}), Ee = (e) => {
|
|
4147
4168
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4148
4169
|
return (n) => {
|
|
4149
4170
|
const i = JSON.stringify(n);
|
|
4150
4171
|
return i in t ? t[i] : t[i] = e(n);
|
|
4151
4172
|
};
|
|
4152
4173
|
};
|
|
4153
|
-
var
|
|
4174
|
+
var Ii = Object.defineProperty, me = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4154
4175
|
for (var r in t || (t = {}))
|
|
4155
|
-
|
|
4156
|
-
if (
|
|
4157
|
-
for (var r of
|
|
4158
|
-
|
|
4176
|
+
lr.call(t, r) && Bt(e, r, t[r]);
|
|
4177
|
+
if (me)
|
|
4178
|
+
for (var r of me(t))
|
|
4179
|
+
fr.call(t, r) && Bt(e, r, t[r]);
|
|
4159
4180
|
return e;
|
|
4160
|
-
},
|
|
4181
|
+
}, W = (e, t) => {
|
|
4161
4182
|
var r = {};
|
|
4162
4183
|
for (var n in e)
|
|
4163
|
-
|
|
4164
|
-
if (e != null &&
|
|
4165
|
-
for (var n of
|
|
4166
|
-
t.indexOf(n) < 0 &&
|
|
4184
|
+
lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4185
|
+
if (e != null && me)
|
|
4186
|
+
for (var n of me(e))
|
|
4187
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4167
4188
|
return r;
|
|
4168
4189
|
};
|
|
4169
|
-
const
|
|
4170
|
-
const { formats: r } =
|
|
4190
|
+
const Y = (e, t) => {
|
|
4191
|
+
const { formats: r } = V();
|
|
4171
4192
|
if (e in r && t in r[e])
|
|
4172
4193
|
return r[e][t];
|
|
4173
4194
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4174
|
-
},
|
|
4195
|
+
}, Ni = Ee(
|
|
4175
4196
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4197
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4177
4198
|
if (r == null)
|
|
4178
4199
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4179
|
-
return n && (i =
|
|
4200
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
4180
4201
|
}
|
|
4181
|
-
),
|
|
4202
|
+
), Mi = Ee(
|
|
4182
4203
|
(e) => {
|
|
4183
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4204
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4184
4205
|
if (r == null)
|
|
4185
4206
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4186
|
-
return n ? i =
|
|
4207
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4208
|
}
|
|
4188
|
-
),
|
|
4209
|
+
), $i = Ee(
|
|
4189
4210
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4211
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4191
4212
|
if (r == null)
|
|
4192
4213
|
throw new Error(
|
|
4193
4214
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4194
4215
|
);
|
|
4195
|
-
return n ? i =
|
|
4216
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4217
|
}
|
|
4197
|
-
),
|
|
4218
|
+
), Ri = (e = {}) => {
|
|
4198
4219
|
var t = e, {
|
|
4199
4220
|
locale: r = I()
|
|
4200
|
-
} = t, n =
|
|
4221
|
+
} = t, n = W(t, [
|
|
4201
4222
|
"locale"
|
|
4202
4223
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4224
|
+
return Ni(qe({ locale: r }, n));
|
|
4225
|
+
}, Ui = (e = {}) => {
|
|
4205
4226
|
var t = e, {
|
|
4206
4227
|
locale: r = I()
|
|
4207
|
-
} = t, n =
|
|
4228
|
+
} = t, n = W(t, [
|
|
4208
4229
|
"locale"
|
|
4209
4230
|
]);
|
|
4210
|
-
return
|
|
4211
|
-
},
|
|
4231
|
+
return Mi(qe({ locale: r }, n));
|
|
4232
|
+
}, Di = (e = {}) => {
|
|
4212
4233
|
var t = e, {
|
|
4213
4234
|
locale: r = I()
|
|
4214
|
-
} = t, n =
|
|
4235
|
+
} = t, n = W(t, [
|
|
4215
4236
|
"locale"
|
|
4216
4237
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4238
|
+
return $i(qe({ locale: r }, n));
|
|
4239
|
+
}, Gi = Ee(
|
|
4219
4240
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4220
|
-
(e, t = I()) => new
|
|
4221
|
-
ignoreTag:
|
|
4241
|
+
(e, t = I()) => new ci(e, t, V().formats, {
|
|
4242
|
+
ignoreTag: V().ignoreTag
|
|
4222
4243
|
})
|
|
4223
|
-
),
|
|
4244
|
+
), Fi = (e, t = {}) => {
|
|
4224
4245
|
var r, n, i, o;
|
|
4225
4246
|
let s = t;
|
|
4226
4247
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4233,9 +4254,9 @@ const K = (e, t) => {
|
|
|
4233
4254
|
throw new Error(
|
|
4234
4255
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4235
4256
|
);
|
|
4236
|
-
let l =
|
|
4257
|
+
let l = sr(e, h);
|
|
4237
4258
|
if (!l)
|
|
4238
|
-
l = (o = (i = (n = (r =
|
|
4259
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4239
4260
|
else if (typeof l != "string")
|
|
4240
4261
|
return console.warn(
|
|
4241
4262
|
`[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.`
|
|
@@ -4244,7 +4265,7 @@ const K = (e, t) => {
|
|
|
4244
4265
|
return l;
|
|
4245
4266
|
let f = l;
|
|
4246
4267
|
try {
|
|
4247
|
-
f =
|
|
4268
|
+
f = Gi(l, h).format(a);
|
|
4248
4269
|
} catch (c) {
|
|
4249
4270
|
c instanceof Error && console.warn(
|
|
4250
4271
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4252,27 +4273,27 @@ const K = (e, t) => {
|
|
|
4252
4273
|
);
|
|
4253
4274
|
}
|
|
4254
4275
|
return f;
|
|
4255
|
-
},
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4276
|
+
}, ji = (e, t) => Di(t).format(e), Vi = (e, t) => Ui(t).format(e), ki = (e, t) => Ri(t).format(e), Xi = (e, t = I()) => sr(e, t);
|
|
4277
|
+
X([ne, re], () => Fi);
|
|
4278
|
+
X([ne], () => ji);
|
|
4279
|
+
X([ne], () => Vi);
|
|
4280
|
+
X([ne], () => ki);
|
|
4281
|
+
X([ne, re], () => Xi);
|
|
4261
4282
|
window.emWidgets = { topic: rn };
|
|
4262
|
-
const
|
|
4263
|
-
function
|
|
4264
|
-
|
|
4283
|
+
const At = (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));
|
|
4284
|
+
function Wi(e) {
|
|
4285
|
+
yr(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4265
4286
|
}
|
|
4266
|
-
function
|
|
4287
|
+
function Pt(e) {
|
|
4267
4288
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4268
|
-
e[2] &&
|
|
4289
|
+
e[2] && Ot(e), u = (
|
|
4269
4290
|
/*desktopView*/
|
|
4270
|
-
e[2] &&
|
|
4291
|
+
e[2] && Ct(e)
|
|
4271
4292
|
);
|
|
4272
4293
|
return {
|
|
4273
4294
|
c() {
|
|
4274
|
-
t = L("div"), h && h.c(), r =
|
|
4275
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4295
|
+
t = L("div"), h && h.c(), r = ot(), n = L("div"), u && u.c(), i = ot(), o = L("video"), s = L("source"), it(s.src, a = /*videosrc*/
|
|
4296
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), st(
|
|
4276
4297
|
t,
|
|
4277
4298
|
"CashierVideoWrapperDesktop",
|
|
4278
4299
|
/*desktopView*/
|
|
@@ -4280,15 +4301,15 @@ function Bt(e) {
|
|
|
4280
4301
|
);
|
|
4281
4302
|
},
|
|
4282
4303
|
m(l, f) {
|
|
4283
|
-
|
|
4304
|
+
ee(l, t, f), h && h.m(t, null), A(t, r), A(t, n), u && u.m(n, null), A(n, i), A(n, o), A(o, s), e[10](t);
|
|
4284
4305
|
},
|
|
4285
4306
|
p(l, f) {
|
|
4286
4307
|
/*desktopView*/
|
|
4287
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4288
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4289
|
-
1 && !
|
|
4308
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = Ot(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4309
|
+
l[2] ? u ? u.p(l, f) : (u = Ct(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4310
|
+
1 && !it(s.src, a = /*videosrc*/
|
|
4290
4311
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4291
|
-
4 &&
|
|
4312
|
+
4 && st(
|
|
4292
4313
|
t,
|
|
4293
4314
|
"CashierVideoWrapperDesktop",
|
|
4294
4315
|
/*desktopView*/
|
|
@@ -4296,18 +4317,18 @@ function Bt(e) {
|
|
|
4296
4317
|
);
|
|
4297
4318
|
},
|
|
4298
4319
|
d(l) {
|
|
4299
|
-
l &&
|
|
4320
|
+
l && k(t), h && h.d(), u && u.d(), e[10](null);
|
|
4300
4321
|
}
|
|
4301
4322
|
};
|
|
4302
4323
|
}
|
|
4303
|
-
function
|
|
4324
|
+
function Ot(e) {
|
|
4304
4325
|
let t, r, n, i, o;
|
|
4305
4326
|
return {
|
|
4306
4327
|
c() {
|
|
4307
4328
|
t = L("div"), r = ce("svg"), n = ce("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");
|
|
4308
4329
|
},
|
|
4309
4330
|
m(s, a) {
|
|
4310
|
-
|
|
4331
|
+
ee(s, t, a), A(t, r), A(r, n), i || (o = Mt(
|
|
4311
4332
|
r,
|
|
4312
4333
|
"click",
|
|
4313
4334
|
/*click_handler*/
|
|
@@ -4316,18 +4337,18 @@ function At(e) {
|
|
|
4316
4337
|
},
|
|
4317
4338
|
p: S,
|
|
4318
4339
|
d(s) {
|
|
4319
|
-
s &&
|
|
4340
|
+
s && k(t), i = !1, o();
|
|
4320
4341
|
}
|
|
4321
4342
|
};
|
|
4322
4343
|
}
|
|
4323
|
-
function
|
|
4344
|
+
function Ct(e) {
|
|
4324
4345
|
let t, r, n, i;
|
|
4325
4346
|
return {
|
|
4326
4347
|
c() {
|
|
4327
4348
|
t = ce("svg"), r = ce("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");
|
|
4328
4349
|
},
|
|
4329
4350
|
m(o, s) {
|
|
4330
|
-
|
|
4351
|
+
ee(o, t, s), A(t, r), n || (i = Mt(
|
|
4331
4352
|
t,
|
|
4332
4353
|
"click",
|
|
4333
4354
|
/*click_handler_1*/
|
|
@@ -4336,48 +4357,48 @@ function Pt(e) {
|
|
|
4336
4357
|
},
|
|
4337
4358
|
p: S,
|
|
4338
4359
|
d(o) {
|
|
4339
|
-
o &&
|
|
4360
|
+
o && k(t), n = !1, i();
|
|
4340
4361
|
}
|
|
4341
4362
|
};
|
|
4342
4363
|
}
|
|
4343
|
-
function
|
|
4364
|
+
function zi(e) {
|
|
4344
4365
|
let t, r = (
|
|
4345
4366
|
/*show*/
|
|
4346
|
-
e[3] &&
|
|
4367
|
+
e[3] && Pt(e)
|
|
4347
4368
|
);
|
|
4348
4369
|
return {
|
|
4349
4370
|
c() {
|
|
4350
|
-
r && r.c(), t =
|
|
4371
|
+
r && r.c(), t = xr();
|
|
4351
4372
|
},
|
|
4352
4373
|
m(n, i) {
|
|
4353
|
-
r && r.m(n, i),
|
|
4374
|
+
r && r.m(n, i), ee(n, t, i);
|
|
4354
4375
|
},
|
|
4355
4376
|
p(n, [i]) {
|
|
4356
4377
|
/*show*/
|
|
4357
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4378
|
+
n[3] ? r ? r.p(n, i) : (r = Pt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4358
4379
|
},
|
|
4359
4380
|
i: S,
|
|
4360
4381
|
o: S,
|
|
4361
4382
|
d(n) {
|
|
4362
|
-
n &&
|
|
4383
|
+
n && k(t), r && r.d(n);
|
|
4363
4384
|
}
|
|
4364
4385
|
};
|
|
4365
4386
|
}
|
|
4366
|
-
function
|
|
4387
|
+
function Zi(e, t, r) {
|
|
4367
4388
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4368
4389
|
const f = () => {
|
|
4369
4390
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4370
4391
|
}, c = (E) => {
|
|
4371
4392
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4372
|
-
},
|
|
4373
|
-
r(2, h = !
|
|
4393
|
+
}, m = () => {
|
|
4394
|
+
r(2, h = !At(a));
|
|
4374
4395
|
};
|
|
4375
|
-
|
|
4396
|
+
Tr(() => (window.addEventListener("message", c, !1), () => {
|
|
4376
4397
|
window.removeEventListener("message", c);
|
|
4377
4398
|
}));
|
|
4378
|
-
const
|
|
4379
|
-
function
|
|
4380
|
-
|
|
4399
|
+
const v = () => f(), b = () => f();
|
|
4400
|
+
function H(E) {
|
|
4401
|
+
Ce[E ? "unshift" : "push"](() => {
|
|
4381
4402
|
l = E, r(1, l);
|
|
4382
4403
|
});
|
|
4383
4404
|
}
|
|
@@ -4385,10 +4406,10 @@ function Wi(e, t, r) {
|
|
|
4385
4406
|
"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);
|
|
4386
4407
|
}, e.$$.update = () => {
|
|
4387
4408
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4388
|
-
34 && n && l &&
|
|
4389
|
-
66 && i && l &&
|
|
4390
|
-
130 && s && l &&
|
|
4391
|
-
},
|
|
4409
|
+
34 && n && l && Gr(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4410
|
+
66 && i && l && Fr(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4411
|
+
130 && s && l && jr(l, `${s}.Style`);
|
|
4412
|
+
}, At(a) && m(), [
|
|
4392
4413
|
o,
|
|
4393
4414
|
l,
|
|
4394
4415
|
h,
|
|
@@ -4397,26 +4418,26 @@ function Wi(e, t, r) {
|
|
|
4397
4418
|
n,
|
|
4398
4419
|
i,
|
|
4399
4420
|
s,
|
|
4400
|
-
g,
|
|
4401
4421
|
v,
|
|
4402
|
-
|
|
4422
|
+
b,
|
|
4423
|
+
H
|
|
4403
4424
|
];
|
|
4404
4425
|
}
|
|
4405
|
-
class
|
|
4426
|
+
class Qi extends Ur {
|
|
4406
4427
|
constructor(t) {
|
|
4407
|
-
super(),
|
|
4428
|
+
super(), $r(
|
|
4408
4429
|
this,
|
|
4409
4430
|
t,
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4431
|
+
Zi,
|
|
4432
|
+
zi,
|
|
4433
|
+
It,
|
|
4413
4434
|
{
|
|
4414
4435
|
clientstyling: 5,
|
|
4415
4436
|
clientstylingurl: 6,
|
|
4416
4437
|
videosrc: 0,
|
|
4417
4438
|
mbsource: 7
|
|
4418
4439
|
},
|
|
4419
|
-
|
|
4440
|
+
Wi
|
|
4420
4441
|
);
|
|
4421
4442
|
}
|
|
4422
4443
|
get clientstyling() {
|
|
@@ -4444,7 +4465,7 @@ class zi extends Rr {
|
|
|
4444
4465
|
this.$$set({ mbsource: t }), U();
|
|
4445
4466
|
}
|
|
4446
4467
|
}
|
|
4447
|
-
|
|
4468
|
+
Rr(Qi, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4448
4469
|
export {
|
|
4449
|
-
|
|
4470
|
+
Qi as default
|
|
4450
4471
|
};
|