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