@everymatrix/cashier-iframe-redirect 1.61.1 → 1.62.0
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/{CashierHeader-Cvab2tdW.js → CashierHeader-BuDZZ8rP.js} +457 -455
- package/components/CashierHeader-C142j1-7.cjs +18 -0
- package/components/{CashierHeader-BVTI8DE4.js → CashierHeader-EK8KBBon.js} +481 -479
- package/components/{CashierIframeRedirect-B5NM6lSr.js → CashierIframeRedirect-Ardd2Dpu.js} +11 -11
- package/components/{CashierIframeRedirect-B9riTcTa.js → CashierIframeRedirect-BmHmV7tA.js} +13 -13
- package/components/{CashierIframeRedirect-B_i-smF4.cjs → CashierIframeRedirect-Bwp81Q_x.cjs} +1 -1
- package/components/{CashierSpinner-BTqY0zZG.js → CashierSpinner-Bd0C8ypP.js} +7 -7
- package/components/{CashierSpinner-Dcc78ngS.js → CashierSpinner-CWdntBnB.js} +7 -7
- package/components/{CashierSpinner-BFEcImS4.cjs → CashierSpinner-fcS8Yneb.cjs} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-B569Pf5f.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ee = (e, t, r) => t in e ?
|
|
1
|
+
var hr = Object.defineProperty, ur = Object.defineProperties;
|
|
2
|
+
var lr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
cr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, et = (e, t) => ur(e, lr(t));
|
|
13
13
|
var B = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -29,7 +29,7 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function mr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,29 +37,29 @@ function fr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function wt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function rt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function re(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(wt);
|
|
48
48
|
}
|
|
49
49
|
function Xe(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function St(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
let oe;
|
|
56
|
-
function
|
|
56
|
+
function $i(e, t) {
|
|
57
57
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function dr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function At(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
@@ -68,17 +68,17 @@ function wt(e, ...t) {
|
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function pr(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(At(t, r));
|
|
73
73
|
}
|
|
74
74
|
function ve(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Ct(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function Ct(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
83
|
function He(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
@@ -97,7 +97,7 @@ function He(e, t, r, n) {
|
|
|
97
97
|
}
|
|
98
98
|
function Be(e, t, r, n, i, s) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = Ct(t, r, n, s);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -113,14 +113,14 @@ function Te(e) {
|
|
|
113
113
|
function me(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function br(e, t, r) {
|
|
117
|
+
const n = gr(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = W("style");
|
|
120
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function gr(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,7 +130,7 @@ function dr(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function _r(e, t) {
|
|
134
134
|
return me(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
@@ -143,36 +143,36 @@ function M(e, t, r) {
|
|
|
143
143
|
function P(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function W(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ze(e) {
|
|
150
150
|
return document.createTextNode(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function nt() {
|
|
153
|
+
return ze(" ");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function Ot() {
|
|
156
|
+
return ze("");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Pt(e, t, r, n) {
|
|
159
159
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
160
160
|
}
|
|
161
161
|
function Z(e, t, r) {
|
|
162
162
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ri(e, t, r) {
|
|
165
165
|
const n = t.toLowerCase();
|
|
166
166
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Z(e, t, r);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function yr(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function xr(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Er(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
@@ -181,16 +181,16 @@ function yr(e) {
|
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
184
|
+
let We;
|
|
185
185
|
function K(e) {
|
|
186
|
-
|
|
186
|
+
We = e;
|
|
187
187
|
}
|
|
188
188
|
const F = [], Ie = [];
|
|
189
189
|
let j = [];
|
|
190
|
-
const
|
|
190
|
+
const it = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
191
191
|
let Me = !1;
|
|
192
|
-
function
|
|
193
|
-
Me || (Me = !0,
|
|
192
|
+
function Hr() {
|
|
193
|
+
Me || (Me = !0, vr.then(A));
|
|
194
194
|
}
|
|
195
195
|
function $e(e) {
|
|
196
196
|
j.push(e);
|
|
@@ -200,12 +200,12 @@ let D = 0;
|
|
|
200
200
|
function A() {
|
|
201
201
|
if (D !== 0)
|
|
202
202
|
return;
|
|
203
|
-
const e =
|
|
203
|
+
const e = We;
|
|
204
204
|
do {
|
|
205
205
|
try {
|
|
206
206
|
for (; D < F.length; ) {
|
|
207
207
|
const t = F[D];
|
|
208
|
-
D++, K(t),
|
|
208
|
+
D++, K(t), Br(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
211
|
throw F.length = 0, D = 0, t;
|
|
@@ -218,23 +218,23 @@ function A() {
|
|
|
218
218
|
}
|
|
219
219
|
j.length = 0;
|
|
220
220
|
} while (F.length);
|
|
221
|
-
for (;
|
|
222
|
-
|
|
221
|
+
for (; it.length; )
|
|
222
|
+
it.pop()();
|
|
223
223
|
Me = !1, we.clear(), K(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Br(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
227
|
e.update(), re(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Tr(e) {
|
|
233
233
|
const t = [], r = [];
|
|
234
234
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
235
235
|
}
|
|
236
236
|
const he = /* @__PURE__ */ new Set();
|
|
237
|
-
let
|
|
237
|
+
let wr;
|
|
238
238
|
function ue(e, t) {
|
|
239
239
|
e && e.i && (he.delete(e), e.i(t));
|
|
240
240
|
}
|
|
@@ -242,27 +242,27 @@ function Se(e, t, r, n) {
|
|
|
242
242
|
if (e && e.o) {
|
|
243
243
|
if (he.has(e))
|
|
244
244
|
return;
|
|
245
|
-
he.add(e),
|
|
245
|
+
he.add(e), wr.c.push(() => {
|
|
246
246
|
he.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Sr(e, t, r) {
|
|
251
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
252
252
|
n && n.m(t, r), $e(() => {
|
|
253
|
-
const s = e.$$.on_mount.map(
|
|
253
|
+
const s = e.$$.on_mount.map(wt).filter(Xe);
|
|
254
254
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
255
255
|
}), i.forEach($e);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ar(e, t) {
|
|
258
258
|
const r = e.$$;
|
|
259
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
261
|
+
function Cr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (F.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const l =
|
|
264
|
+
function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
|
+
const l = We;
|
|
266
266
|
K(e);
|
|
267
267
|
const h = e.$$ = {
|
|
268
268
|
fragment: null,
|
|
@@ -271,7 +271,7 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
271
271
|
props: s,
|
|
272
272
|
update: T,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: rt(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,28 +280,28 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
283
|
+
callbacks: rt(),
|
|
284
284
|
dirty: o,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
287
287
|
};
|
|
288
288
|
a && a(h.root);
|
|
289
289
|
let u = !1;
|
|
290
|
-
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
291
|
-
const m =
|
|
292
|
-
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u &&
|
|
290
|
+
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
291
|
+
const m = d.length ? d[0] : c;
|
|
292
|
+
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u && Cr(e, f)), c;
|
|
293
293
|
}) : [], h.update(), u = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const f =
|
|
295
|
+
const f = yr(t.target);
|
|
296
296
|
h.fragment && h.fragment.l(f), f.forEach(P);
|
|
297
297
|
} else
|
|
298
298
|
h.fragment && h.fragment.c();
|
|
299
|
-
t.intro && ue(e.$$.fragment),
|
|
299
|
+
t.intro && ue(e.$$.fragment), Sr(e, t.target, t.anchor), A();
|
|
300
300
|
}
|
|
301
301
|
K(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Lt;
|
|
304
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
305
305
|
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
@@ -338,14 +338,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return tt(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
345
|
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
a =
|
|
348
|
+
a = W("slot"), s !== "default" && Z(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = Er(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
367
|
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
@@ -373,7 +373,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props:
|
|
376
|
+
props: et(Ke({}, this.$$d), {
|
|
377
377
|
$$slots: r,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
@@ -451,8 +451,8 @@ function le(e, t, r, n) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let a = class extends
|
|
454
|
+
function Pr(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Lt {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
@@ -482,7 +482,7 @@ function Cr(e, t, r, n, i, s) {
|
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
483
|
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Lr {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -503,7 +503,7 @@ class Or {
|
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
Ar(this, 1), this.$destroy = T;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -525,13 +525,13 @@ class Or {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Nr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
533
533
|
const G = [];
|
|
534
|
-
function
|
|
534
|
+
function Ir(e, t) {
|
|
535
535
|
return {
|
|
536
536
|
subscribe: ge(e, t).subscribe
|
|
537
537
|
};
|
|
@@ -540,7 +540,7 @@ function ge(e, t = T) {
|
|
|
540
540
|
let r;
|
|
541
541
|
const n = /* @__PURE__ */ new Set();
|
|
542
542
|
function i(o) {
|
|
543
|
-
if (
|
|
543
|
+
if (St(e, o) && (e = o, r)) {
|
|
544
544
|
const l = !G.length;
|
|
545
545
|
for (const h of n)
|
|
546
546
|
h[1](), G.push(h, e);
|
|
@@ -567,7 +567,7 @@ function Q(e, t, r) {
|
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Ir(r, (a, o) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const h = [];
|
|
573
573
|
let u = 0, f = T;
|
|
@@ -577,8 +577,8 @@ function Q(e, t, r) {
|
|
|
577
577
|
f();
|
|
578
578
|
const m = t(n ? h[0] : h, a, o);
|
|
579
579
|
s ? a(m) : f = Xe(m) ? m : T;
|
|
580
|
-
},
|
|
581
|
-
(m, g) =>
|
|
580
|
+
}, d = i.map(
|
|
581
|
+
(m, g) => At(
|
|
582
582
|
m,
|
|
583
583
|
(v) => {
|
|
584
584
|
h[g] = v, u &= ~(1 << g), l && c();
|
|
@@ -589,74 +589,74 @@ function Q(e, t, r) {
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
return l = !0, c(), function() {
|
|
592
|
-
re(
|
|
592
|
+
re(d), f(), l = !1;
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Mr(e) {
|
|
597
597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var $r = function(t) {
|
|
600
|
+
return Rr(t) && !Ur(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Rr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ur(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var Dr = typeof Symbol == "function" && Symbol.for, Gr = Dr ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Fr(e) {
|
|
611
|
+
return e.$$typeof === Gr;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function jr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
616
|
function ee(e, t) {
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(jr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function kr(e, t, r) {
|
|
620
620
|
return e.concat(t).map(function(n) {
|
|
621
621
|
return ee(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Vr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
626
|
return k;
|
|
627
627
|
var r = t.customMerge(e);
|
|
628
628
|
return typeof r == "function" ? r : k;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Xr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return Object.keys(e).concat(
|
|
635
|
+
function st(e) {
|
|
636
|
+
return Object.keys(e).concat(Xr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Nt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch (r) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function zr(e, t) {
|
|
646
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Wr(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
|
-
return r.isMergeableObject(e) &&
|
|
650
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
651
651
|
n[i] = ee(e[i], r);
|
|
652
|
-
}),
|
|
653
|
-
|
|
652
|
+
}), st(t).forEach(function(i) {
|
|
653
|
+
zr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
656
|
function k(e, t, r) {
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
|
|
658
658
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
|
|
660
660
|
}
|
|
661
661
|
k.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
@@ -665,8 +665,8 @@ k.all = function(t, r) {
|
|
|
665
665
|
return k(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
668
|
+
var Zr = k, Qr = Zr;
|
|
669
|
+
const qr = /* @__PURE__ */ Mr(Qr);
|
|
670
670
|
/*! *****************************************************************************
|
|
671
671
|
Copyright (c) Microsoft Corporation.
|
|
672
672
|
|
|
@@ -708,7 +708,7 @@ var y = function() {
|
|
|
708
708
|
return t;
|
|
709
709
|
}, y.apply(this, arguments);
|
|
710
710
|
};
|
|
711
|
-
function
|
|
711
|
+
function Jr(e, t) {
|
|
712
712
|
var r = {};
|
|
713
713
|
for (var n in e)
|
|
714
714
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -724,57 +724,59 @@ function Ae(e, t, r) {
|
|
|
724
724
|
return e.concat(s || t);
|
|
725
725
|
}
|
|
726
726
|
function Ce(e, t) {
|
|
727
|
-
var r = t && t.cache ? t.cache :
|
|
727
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : Kr;
|
|
728
728
|
return i(e, {
|
|
729
729
|
cache: r,
|
|
730
730
|
serializer: n
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Yr(e) {
|
|
734
734
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var i =
|
|
736
|
+
function It(e, t, r, n) {
|
|
737
|
+
var i = Yr(n) ? n : r(n), s = t.get(i);
|
|
738
738
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Mt(e, t, r) {
|
|
741
741
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
742
742
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ze(e, t, r, n, i) {
|
|
745
745
|
return r.bind(t, e, n, i);
|
|
746
746
|
}
|
|
747
|
-
function Yr(e, t) {
|
|
748
|
-
var r = e.length === 1 ? Jr : Lt;
|
|
749
|
-
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
750
|
-
}
|
|
751
747
|
function Kr(e, t) {
|
|
752
|
-
|
|
748
|
+
var r = e.length === 1 ? It : Mt;
|
|
749
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
750
|
+
}
|
|
751
|
+
function en(e, t) {
|
|
752
|
+
return Ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
753
|
+
}
|
|
754
|
+
function tn(e, t) {
|
|
755
|
+
return Ze(e, this, It, t.cache.create(), t.serializer);
|
|
753
756
|
}
|
|
754
|
-
var
|
|
757
|
+
var rn = function() {
|
|
755
758
|
return JSON.stringify(arguments);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}()
|
|
768
|
-
), rn = {
|
|
759
|
+
};
|
|
760
|
+
function Qe() {
|
|
761
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
762
|
+
}
|
|
763
|
+
Qe.prototype.get = function(e) {
|
|
764
|
+
return this.cache[e];
|
|
765
|
+
};
|
|
766
|
+
Qe.prototype.set = function(e, t) {
|
|
767
|
+
this.cache[e] = t;
|
|
768
|
+
};
|
|
769
|
+
var nn = {
|
|
769
770
|
create: function() {
|
|
770
|
-
return new
|
|
771
|
+
return new Qe();
|
|
771
772
|
}
|
|
772
773
|
}, Oe = {
|
|
773
|
-
variadic:
|
|
774
|
-
|
|
774
|
+
variadic: en,
|
|
775
|
+
monadic: tn
|
|
776
|
+
}, p;
|
|
775
777
|
(function(e) {
|
|
776
778
|
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";
|
|
777
|
-
})(
|
|
779
|
+
})(p || (p = {}));
|
|
778
780
|
var x;
|
|
779
781
|
(function(e) {
|
|
780
782
|
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";
|
|
@@ -783,43 +785,43 @@ var V;
|
|
|
783
785
|
(function(e) {
|
|
784
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
785
787
|
})(V || (V = {}));
|
|
786
|
-
function
|
|
788
|
+
function ot(e) {
|
|
787
789
|
return e.type === x.literal;
|
|
788
790
|
}
|
|
789
|
-
function
|
|
791
|
+
function sn(e) {
|
|
790
792
|
return e.type === x.argument;
|
|
791
793
|
}
|
|
792
|
-
function
|
|
794
|
+
function $t(e) {
|
|
793
795
|
return e.type === x.number;
|
|
794
796
|
}
|
|
795
|
-
function
|
|
797
|
+
function Rt(e) {
|
|
796
798
|
return e.type === x.date;
|
|
797
799
|
}
|
|
798
|
-
function
|
|
800
|
+
function Ut(e) {
|
|
799
801
|
return e.type === x.time;
|
|
800
802
|
}
|
|
801
|
-
function
|
|
803
|
+
function Dt(e) {
|
|
802
804
|
return e.type === x.select;
|
|
803
805
|
}
|
|
804
|
-
function
|
|
806
|
+
function Gt(e) {
|
|
805
807
|
return e.type === x.plural;
|
|
806
808
|
}
|
|
807
|
-
function
|
|
809
|
+
function on(e) {
|
|
808
810
|
return e.type === x.pound;
|
|
809
811
|
}
|
|
810
|
-
function
|
|
812
|
+
function Ft(e) {
|
|
811
813
|
return e.type === x.tag;
|
|
812
814
|
}
|
|
813
|
-
function
|
|
815
|
+
function jt(e) {
|
|
814
816
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
815
817
|
}
|
|
816
818
|
function Ue(e) {
|
|
817
819
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
818
820
|
}
|
|
819
|
-
var
|
|
820
|
-
function
|
|
821
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
822
|
+
function hn(e) {
|
|
821
823
|
var t = {};
|
|
822
|
-
return e.replace(
|
|
824
|
+
return e.replace(an, function(r) {
|
|
823
825
|
var n = r.length;
|
|
824
826
|
switch (r[0]) {
|
|
825
827
|
case "G":
|
|
@@ -908,11 +910,11 @@ function an(e) {
|
|
|
908
910
|
return "";
|
|
909
911
|
}), t;
|
|
910
912
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
914
|
+
function ln(e) {
|
|
913
915
|
if (e.length === 0)
|
|
914
916
|
throw new Error("Number skeleton cannot be empty");
|
|
915
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(un).filter(function(c) {
|
|
916
918
|
return c.length > 0;
|
|
917
919
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
918
920
|
var s = i[n], a = s.split("/");
|
|
@@ -927,17 +929,17 @@ function un(e) {
|
|
|
927
929
|
}
|
|
928
930
|
return r;
|
|
929
931
|
}
|
|
930
|
-
function
|
|
932
|
+
function fn(e) {
|
|
931
933
|
return e.replace(/^(.*?)-/, "");
|
|
932
934
|
}
|
|
933
|
-
var
|
|
934
|
-
function
|
|
935
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
936
|
+
function ht(e) {
|
|
935
937
|
var t = {};
|
|
936
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
938
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
937
939
|
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)), "";
|
|
938
940
|
}), t;
|
|
939
941
|
}
|
|
940
|
-
function
|
|
942
|
+
function zt(e) {
|
|
941
943
|
switch (e) {
|
|
942
944
|
case "sign-auto":
|
|
943
945
|
return {
|
|
@@ -977,7 +979,7 @@ function Vt(e) {
|
|
|
977
979
|
};
|
|
978
980
|
}
|
|
979
981
|
}
|
|
980
|
-
function
|
|
982
|
+
function mn(e) {
|
|
981
983
|
var t;
|
|
982
984
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
983
985
|
notation: "engineering"
|
|
@@ -985,17 +987,17 @@ function cn(e) {
|
|
|
985
987
|
notation: "scientific"
|
|
986
988
|
}, e = e.slice(1)), t) {
|
|
987
989
|
var r = e.slice(0, 2);
|
|
988
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
990
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
989
991
|
throw new Error("Malformed concise eng/scientific notation");
|
|
990
992
|
t.minimumIntegerDigits = e.length;
|
|
991
993
|
}
|
|
992
994
|
return t;
|
|
993
995
|
}
|
|
994
|
-
function
|
|
995
|
-
var t = {}, r =
|
|
996
|
+
function ut(e) {
|
|
997
|
+
var t = {}, r = zt(e);
|
|
996
998
|
return r || t;
|
|
997
999
|
}
|
|
998
|
-
function
|
|
1000
|
+
function dn(e) {
|
|
999
1001
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1000
1002
|
var i = n[r];
|
|
1001
1003
|
switch (i.stem) {
|
|
@@ -1019,7 +1021,7 @@ function mn(e) {
|
|
|
1019
1021
|
continue;
|
|
1020
1022
|
case "measure-unit":
|
|
1021
1023
|
case "unit":
|
|
1022
|
-
t.style = "unit", t.unit =
|
|
1024
|
+
t.style = "unit", t.unit = fn(i.options[0]);
|
|
1023
1025
|
continue;
|
|
1024
1026
|
case "compact-short":
|
|
1025
1027
|
case "K":
|
|
@@ -1031,12 +1033,12 @@ function mn(e) {
|
|
|
1031
1033
|
continue;
|
|
1032
1034
|
case "scientific":
|
|
1033
1035
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
|
1034
|
-
return y(y({}, l),
|
|
1036
|
+
return y(y({}, l), ut(h));
|
|
1035
1037
|
}, {}));
|
|
1036
1038
|
continue;
|
|
1037
1039
|
case "engineering":
|
|
1038
1040
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
|
1039
|
-
return y(y({}, l),
|
|
1041
|
+
return y(y({}, l), ut(h));
|
|
1040
1042
|
}, {}));
|
|
1041
1043
|
continue;
|
|
1042
1044
|
case "notation-simple":
|
|
@@ -1081,40 +1083,40 @@ function mn(e) {
|
|
|
1081
1083
|
case "integer-width":
|
|
1082
1084
|
if (i.options.length > 1)
|
|
1083
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1084
|
-
i.options[0].replace(
|
|
1086
|
+
i.options[0].replace(cn, function(l, h, u, f, c, d) {
|
|
1085
1087
|
if (h)
|
|
1086
1088
|
t.minimumIntegerDigits = u.length;
|
|
1087
1089
|
else {
|
|
1088
1090
|
if (f && c)
|
|
1089
1091
|
throw new Error("We currently do not support maximum integer digits");
|
|
1090
|
-
if (
|
|
1092
|
+
if (d)
|
|
1091
1093
|
throw new Error("We currently do not support exact integer digits");
|
|
1092
1094
|
}
|
|
1093
1095
|
return "";
|
|
1094
1096
|
});
|
|
1095
1097
|
continue;
|
|
1096
1098
|
}
|
|
1097
|
-
if (
|
|
1099
|
+
if (Xt.test(i.stem)) {
|
|
1098
1100
|
t.minimumIntegerDigits = i.stem.length;
|
|
1099
1101
|
continue;
|
|
1100
1102
|
}
|
|
1101
|
-
if (
|
|
1103
|
+
if (at.test(i.stem)) {
|
|
1102
1104
|
if (i.options.length > 1)
|
|
1103
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1104
|
-
i.stem.replace(
|
|
1105
|
-
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1106
|
+
i.stem.replace(at, function(l, h, u, f, c, d) {
|
|
1107
|
+
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1106
1108
|
});
|
|
1107
1109
|
var s = i.options[0];
|
|
1108
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1110
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ht(s)));
|
|
1109
1111
|
continue;
|
|
1110
1112
|
}
|
|
1111
|
-
if (
|
|
1112
|
-
t = y(y({}, t),
|
|
1113
|
+
if (Vt.test(i.stem)) {
|
|
1114
|
+
t = y(y({}, t), ht(i.stem));
|
|
1113
1115
|
continue;
|
|
1114
1116
|
}
|
|
1115
|
-
var a =
|
|
1117
|
+
var a = zt(i.stem);
|
|
1116
1118
|
a && (t = y(y({}, t), a));
|
|
1117
|
-
var o =
|
|
1119
|
+
var o = mn(i.stem);
|
|
1118
1120
|
o && (t = y(y({}, t), o));
|
|
1119
1121
|
}
|
|
1120
1122
|
return t;
|
|
@@ -2540,7 +2542,7 @@ function pn(e, t) {
|
|
|
2540
2542
|
if (i === "j") {
|
|
2541
2543
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2542
2544
|
s++, n++;
|
|
2543
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
|
2545
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = bn(t);
|
|
2544
2546
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
2545
2547
|
r += l;
|
|
2546
2548
|
for (; a-- > 0; )
|
|
@@ -2550,7 +2552,7 @@ function pn(e, t) {
|
|
|
2550
2552
|
}
|
|
2551
2553
|
return r;
|
|
2552
2554
|
}
|
|
2553
|
-
function
|
|
2555
|
+
function bn(e) {
|
|
2554
2556
|
var t = e.hourCycle;
|
|
2555
2557
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2556
2558
|
e.hourCycles && // @ts-ignore
|
|
@@ -2572,20 +2574,20 @@ function dn(e) {
|
|
|
2572
2574
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2573
2575
|
return i[0];
|
|
2574
2576
|
}
|
|
2575
|
-
var Pe,
|
|
2577
|
+
var Pe, gn = new RegExp("^".concat(kt.source, "*")), _n = new RegExp("".concat(kt.source, "*$"));
|
|
2576
2578
|
function b(e, t) {
|
|
2577
2579
|
return { start: e, end: t };
|
|
2578
2580
|
}
|
|
2579
|
-
var
|
|
2581
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, En = !!Object.fromEntries, vn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, wn = Tn ? Number.isSafeInteger : function(e) {
|
|
2580
2582
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2581
2583
|
}, De = !0;
|
|
2582
2584
|
try {
|
|
2583
|
-
var
|
|
2584
|
-
De = ((Pe =
|
|
2585
|
+
var Sn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2586
|
+
De = ((Pe = Sn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2585
2587
|
} catch (e) {
|
|
2586
2588
|
De = !1;
|
|
2587
2589
|
}
|
|
2588
|
-
var
|
|
2590
|
+
var lt = yn ? (
|
|
2589
2591
|
// Native
|
|
2590
2592
|
function(t, r, n) {
|
|
2591
2593
|
return t.startsWith(r, n);
|
|
@@ -2595,7 +2597,7 @@ var ht = _n ? (
|
|
|
2595
2597
|
function(t, r, n) {
|
|
2596
2598
|
return t.slice(n, n + r.length) === r;
|
|
2597
2599
|
}
|
|
2598
|
-
), Ge =
|
|
2600
|
+
), Ge = xn ? String.fromCodePoint : (
|
|
2599
2601
|
// IE11
|
|
2600
2602
|
function() {
|
|
2601
2603
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2607,9 +2609,9 @@ var ht = _n ? (
|
|
|
2607
2609
|
}
|
|
2608
2610
|
return n;
|
|
2609
2611
|
}
|
|
2610
|
-
),
|
|
2612
|
+
), ft = (
|
|
2611
2613
|
// native
|
|
2612
|
-
|
|
2614
|
+
En ? Object.fromEntries : (
|
|
2613
2615
|
// Ponyfill
|
|
2614
2616
|
function(t) {
|
|
2615
2617
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2619,7 +2621,7 @@ var ht = _n ? (
|
|
|
2619
2621
|
return r;
|
|
2620
2622
|
}
|
|
2621
2623
|
)
|
|
2622
|
-
),
|
|
2624
|
+
), Wt = vn ? (
|
|
2623
2625
|
// Native
|
|
2624
2626
|
function(t, r) {
|
|
2625
2627
|
return t.codePointAt(r);
|
|
@@ -2633,7 +2635,7 @@ var ht = _n ? (
|
|
|
2633
2635
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2634
2636
|
}
|
|
2635
2637
|
}
|
|
2636
|
-
),
|
|
2638
|
+
), An = Hn ? (
|
|
2637
2639
|
// Native
|
|
2638
2640
|
function(t) {
|
|
2639
2641
|
return t.trimStart();
|
|
@@ -2641,9 +2643,9 @@ var ht = _n ? (
|
|
|
2641
2643
|
) : (
|
|
2642
2644
|
// Ponyfill
|
|
2643
2645
|
function(t) {
|
|
2644
|
-
return t.replace(
|
|
2646
|
+
return t.replace(gn, "");
|
|
2645
2647
|
}
|
|
2646
|
-
),
|
|
2648
|
+
), Cn = Bn ? (
|
|
2647
2649
|
// Native
|
|
2648
2650
|
function(t) {
|
|
2649
2651
|
return t.trimEnd();
|
|
@@ -2651,32 +2653,32 @@ var ht = _n ? (
|
|
|
2651
2653
|
) : (
|
|
2652
2654
|
// Ponyfill
|
|
2653
2655
|
function(t) {
|
|
2654
|
-
return t.replace(
|
|
2656
|
+
return t.replace(_n, "");
|
|
2655
2657
|
}
|
|
2656
2658
|
);
|
|
2657
|
-
function
|
|
2659
|
+
function Zt(e, t) {
|
|
2658
2660
|
return new RegExp(e, t);
|
|
2659
2661
|
}
|
|
2660
2662
|
var Fe;
|
|
2661
2663
|
if (De) {
|
|
2662
|
-
var
|
|
2664
|
+
var ct = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2663
2665
|
Fe = function(t, r) {
|
|
2664
2666
|
var n;
|
|
2665
|
-
|
|
2666
|
-
var i =
|
|
2667
|
+
ct.lastIndex = r;
|
|
2668
|
+
var i = ct.exec(t);
|
|
2667
2669
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2668
2670
|
};
|
|
2669
2671
|
} else
|
|
2670
2672
|
Fe = function(t, r) {
|
|
2671
2673
|
for (var n = []; ; ) {
|
|
2672
|
-
var i =
|
|
2673
|
-
if (i === void 0 ||
|
|
2674
|
+
var i = Wt(t, r);
|
|
2675
|
+
if (i === void 0 || Qt(i) || Nn(i))
|
|
2674
2676
|
break;
|
|
2675
2677
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2676
2678
|
}
|
|
2677
2679
|
return Ge.apply(void 0, n);
|
|
2678
2680
|
};
|
|
2679
|
-
var
|
|
2681
|
+
var On = (
|
|
2680
2682
|
/** @class */
|
|
2681
2683
|
function() {
|
|
2682
2684
|
function e(t, r) {
|
|
@@ -2706,7 +2708,7 @@ var Cn = (
|
|
|
2706
2708
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2707
2709
|
if (n)
|
|
2708
2710
|
break;
|
|
2709
|
-
return this.error(
|
|
2711
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2710
2712
|
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2711
2713
|
var a = this.parseTag(t, r);
|
|
2712
2714
|
if (a.err)
|
|
@@ -2741,9 +2743,9 @@ var Cn = (
|
|
|
2741
2743
|
var a = s.val, o = this.clonePosition();
|
|
2742
2744
|
if (this.bumpIf("</")) {
|
|
2743
2745
|
if (this.isEOF() || !je(this.char()))
|
|
2744
|
-
return this.error(
|
|
2746
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2745
2747
|
var l = this.clonePosition(), h = this.parseTagName();
|
|
2746
|
-
return i !== h ? this.error(
|
|
2748
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2747
2749
|
val: {
|
|
2748
2750
|
type: x.tag,
|
|
2749
2751
|
value: i,
|
|
@@ -2751,14 +2753,14 @@ var Cn = (
|
|
|
2751
2753
|
location: b(n, this.clonePosition())
|
|
2752
2754
|
},
|
|
2753
2755
|
err: null
|
|
2754
|
-
} : this.error(
|
|
2756
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2755
2757
|
} else
|
|
2756
|
-
return this.error(
|
|
2758
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2757
2759
|
} else
|
|
2758
|
-
return this.error(
|
|
2760
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2759
2761
|
}, e.prototype.parseTagName = function() {
|
|
2760
2762
|
var t = this.offset();
|
|
2761
|
-
for (this.bump(); !this.isEOF() &&
|
|
2763
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2762
2764
|
this.bump();
|
|
2763
2765
|
return this.message.slice(t, this.offset());
|
|
2764
2766
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2787,7 +2789,7 @@ var Cn = (
|
|
|
2787
2789
|
};
|
|
2788
2790
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2789
2791
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2790
|
-
!
|
|
2792
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2791
2793
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2792
2794
|
if (this.isEOF() || this.char() !== 39)
|
|
2793
2795
|
return null;
|
|
@@ -2830,14 +2832,14 @@ var Cn = (
|
|
|
2830
2832
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2831
2833
|
var n = this.clonePosition();
|
|
2832
2834
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2833
|
-
return this.error(
|
|
2835
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2834
2836
|
if (this.char() === 125)
|
|
2835
|
-
return this.bump(), this.error(
|
|
2837
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2836
2838
|
var i = this.parseIdentifierIfPossible().value;
|
|
2837
2839
|
if (!i)
|
|
2838
|
-
return this.error(
|
|
2840
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2839
2841
|
if (this.bumpSpace(), this.isEOF())
|
|
2840
|
-
return this.error(
|
|
2842
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2841
2843
|
switch (this.char()) {
|
|
2842
2844
|
case 125:
|
|
2843
2845
|
return this.bump(), {
|
|
@@ -2850,9 +2852,9 @@ var Cn = (
|
|
|
2850
2852
|
err: null
|
|
2851
2853
|
};
|
|
2852
2854
|
case 44:
|
|
2853
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2855
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2854
2856
|
default:
|
|
2855
|
-
return this.error(
|
|
2857
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2856
2858
|
}
|
|
2857
2859
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2858
2860
|
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
@@ -2863,7 +2865,7 @@ var Cn = (
|
|
|
2863
2865
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2864
2866
|
switch (o) {
|
|
2865
2867
|
case "":
|
|
2866
|
-
return this.error(
|
|
2868
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2867
2869
|
case "number":
|
|
2868
2870
|
case "date":
|
|
2869
2871
|
case "time": {
|
|
@@ -2874,18 +2876,18 @@ var Cn = (
|
|
|
2874
2876
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2875
2877
|
if (f.err)
|
|
2876
2878
|
return f;
|
|
2877
|
-
var c =
|
|
2879
|
+
var c = Cn(f.val);
|
|
2878
2880
|
if (c.length === 0)
|
|
2879
|
-
return this.error(
|
|
2880
|
-
var
|
|
2881
|
-
h = { style: c, styleLocation:
|
|
2881
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
|
+
var d = b(u, this.clonePosition());
|
|
2883
|
+
h = { style: c, styleLocation: d };
|
|
2882
2884
|
}
|
|
2883
2885
|
var m = this.tryParseArgumentClose(i);
|
|
2884
2886
|
if (m.err)
|
|
2885
2887
|
return m;
|
|
2886
2888
|
var g = b(i, this.clonePosition());
|
|
2887
|
-
if (h &&
|
|
2888
|
-
var v =
|
|
2889
|
+
if (h && lt(h == null ? void 0 : h.style, "::", 0)) {
|
|
2890
|
+
var v = An(h.style.slice(2));
|
|
2889
2891
|
if (o === "number") {
|
|
2890
2892
|
var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
|
|
2891
2893
|
return f.err ? f : {
|
|
@@ -2894,14 +2896,14 @@ var Cn = (
|
|
|
2894
2896
|
};
|
|
2895
2897
|
} else {
|
|
2896
2898
|
if (v.length === 0)
|
|
2897
|
-
return this.error(
|
|
2899
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2898
2900
|
var N = v;
|
|
2899
2901
|
this.locale && (N = pn(v, this.locale));
|
|
2900
2902
|
var c = {
|
|
2901
2903
|
type: V.dateTime,
|
|
2902
2904
|
pattern: N,
|
|
2903
2905
|
location: h.styleLocation,
|
|
2904
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2906
|
+
parsedOptions: this.shouldParseSkeletons ? hn(N) : {}
|
|
2905
2907
|
}, C = o === "date" ? x.date : x.time;
|
|
2906
2908
|
return {
|
|
2907
2909
|
val: { type: C, value: n, location: g, style: c },
|
|
@@ -2924,14 +2926,14 @@ var Cn = (
|
|
|
2924
2926
|
case "select": {
|
|
2925
2927
|
var H = this.clonePosition();
|
|
2926
2928
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2927
|
-
return this.error(
|
|
2929
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2928
2930
|
this.bumpSpace();
|
|
2929
2931
|
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2930
2932
|
if (o !== "select" && I.value === "offset") {
|
|
2931
2933
|
if (!this.bumpIf(":"))
|
|
2932
|
-
return this.error(
|
|
2934
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2933
2935
|
this.bumpSpace();
|
|
2934
|
-
var f = this.tryParseDecimalInteger(
|
|
2936
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2935
2937
|
if (f.err)
|
|
2936
2938
|
return f;
|
|
2937
2939
|
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
@@ -2947,7 +2949,7 @@ var Cn = (
|
|
|
2947
2949
|
val: {
|
|
2948
2950
|
type: x.select,
|
|
2949
2951
|
value: n,
|
|
2950
|
-
options:
|
|
2952
|
+
options: ft(R.val),
|
|
2951
2953
|
location: se
|
|
2952
2954
|
},
|
|
2953
2955
|
err: null
|
|
@@ -2955,7 +2957,7 @@ var Cn = (
|
|
|
2955
2957
|
val: {
|
|
2956
2958
|
type: x.plural,
|
|
2957
2959
|
value: n,
|
|
2958
|
-
options:
|
|
2960
|
+
options: ft(R.val),
|
|
2959
2961
|
offset: w,
|
|
2960
2962
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2961
2963
|
location: se
|
|
@@ -2964,10 +2966,10 @@ var Cn = (
|
|
|
2964
2966
|
};
|
|
2965
2967
|
}
|
|
2966
2968
|
default:
|
|
2967
|
-
return this.error(
|
|
2969
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2968
2970
|
}
|
|
2969
2971
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2970
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2972
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2971
2973
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2972
2974
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2973
2975
|
var n = this.char();
|
|
@@ -2976,7 +2978,7 @@ var Cn = (
|
|
|
2976
2978
|
this.bump();
|
|
2977
2979
|
var i = this.clonePosition();
|
|
2978
2980
|
if (!this.bumpUntil("'"))
|
|
2979
|
-
return this.error(
|
|
2981
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2980
2982
|
this.bump();
|
|
2981
2983
|
break;
|
|
2982
2984
|
}
|
|
@@ -3006,16 +3008,16 @@ var Cn = (
|
|
|
3006
3008
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3007
3009
|
var n = [];
|
|
3008
3010
|
try {
|
|
3009
|
-
n =
|
|
3011
|
+
n = ln(t);
|
|
3010
3012
|
} catch (i) {
|
|
3011
|
-
return this.error(
|
|
3013
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3012
3014
|
}
|
|
3013
3015
|
return {
|
|
3014
3016
|
val: {
|
|
3015
3017
|
type: V.number,
|
|
3016
3018
|
tokens: n,
|
|
3017
3019
|
location: r,
|
|
3018
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3020
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
3019
3021
|
},
|
|
3020
3022
|
err: null
|
|
3021
3023
|
};
|
|
@@ -3024,7 +3026,7 @@ var Cn = (
|
|
|
3024
3026
|
if (h.length === 0) {
|
|
3025
3027
|
var f = this.clonePosition();
|
|
3026
3028
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3027
|
-
var c = this.tryParseDecimalInteger(
|
|
3029
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3028
3030
|
if (c.err)
|
|
3029
3031
|
return c;
|
|
3030
3032
|
u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
@@ -3032,26 +3034,26 @@ var Cn = (
|
|
|
3032
3034
|
break;
|
|
3033
3035
|
}
|
|
3034
3036
|
if (l.has(h))
|
|
3035
|
-
return this.error(r === "select" ?
|
|
3037
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3036
3038
|
h === "other" && (a = !0), this.bumpSpace();
|
|
3037
|
-
var
|
|
3039
|
+
var d = this.clonePosition();
|
|
3038
3040
|
if (!this.bumpIf("{"))
|
|
3039
|
-
return this.error(r === "select" ?
|
|
3041
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3040
3042
|
var m = this.parseMessage(t + 1, r, n);
|
|
3041
3043
|
if (m.err)
|
|
3042
3044
|
return m;
|
|
3043
|
-
var g = this.tryParseArgumentClose(
|
|
3045
|
+
var g = this.tryParseArgumentClose(d);
|
|
3044
3046
|
if (g.err)
|
|
3045
3047
|
return g;
|
|
3046
3048
|
o.push([
|
|
3047
3049
|
h,
|
|
3048
3050
|
{
|
|
3049
3051
|
value: m.val,
|
|
3050
|
-
location: b(
|
|
3052
|
+
location: b(d, this.clonePosition())
|
|
3051
3053
|
}
|
|
3052
3054
|
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
|
3053
3055
|
}
|
|
3054
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3056
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3055
3057
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3056
3058
|
var n = 1, i = this.clonePosition();
|
|
3057
3059
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3063,7 +3065,7 @@ var Cn = (
|
|
|
3063
3065
|
break;
|
|
3064
3066
|
}
|
|
3065
3067
|
var l = b(i, this.clonePosition());
|
|
3066
|
-
return s ? (a *= n,
|
|
3068
|
+
return s ? (a *= n, wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3067
3069
|
}, e.prototype.offset = function() {
|
|
3068
3070
|
return this.position.offset;
|
|
3069
3071
|
}, e.prototype.isEOF = function() {
|
|
@@ -3078,7 +3080,7 @@ var Cn = (
|
|
|
3078
3080
|
var t = this.position.offset;
|
|
3079
3081
|
if (t >= this.message.length)
|
|
3080
3082
|
throw Error("out of bound");
|
|
3081
|
-
var r =
|
|
3083
|
+
var r = Wt(this.message, t);
|
|
3082
3084
|
if (r === void 0)
|
|
3083
3085
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3084
3086
|
return r;
|
|
@@ -3097,7 +3099,7 @@ var Cn = (
|
|
|
3097
3099
|
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);
|
|
3098
3100
|
}
|
|
3099
3101
|
}, e.prototype.bumpIf = function(t) {
|
|
3100
|
-
if (
|
|
3102
|
+
if (lt(this.message, t, this.offset())) {
|
|
3101
3103
|
for (var r = 0; r < t.length; r++)
|
|
3102
3104
|
this.bump();
|
|
3103
3105
|
return !0;
|
|
@@ -3119,7 +3121,7 @@ var Cn = (
|
|
|
3119
3121
|
break;
|
|
3120
3122
|
}
|
|
3121
3123
|
}, e.prototype.bumpSpace = function() {
|
|
3122
|
-
for (; !this.isEOF() &&
|
|
3124
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3123
3125
|
this.bump();
|
|
3124
3126
|
}, e.prototype.peek = function() {
|
|
3125
3127
|
if (this.isEOF())
|
|
@@ -3132,32 +3134,32 @@ var Cn = (
|
|
|
3132
3134
|
function je(e) {
|
|
3133
3135
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3134
3136
|
}
|
|
3135
|
-
function
|
|
3137
|
+
function Pn(e) {
|
|
3136
3138
|
return je(e) || e === 47;
|
|
3137
3139
|
}
|
|
3138
|
-
function
|
|
3140
|
+
function Ln(e) {
|
|
3139
3141
|
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;
|
|
3140
3142
|
}
|
|
3141
|
-
function
|
|
3143
|
+
function Qt(e) {
|
|
3142
3144
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3143
3145
|
}
|
|
3144
|
-
function
|
|
3146
|
+
function Nn(e) {
|
|
3145
3147
|
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;
|
|
3146
3148
|
}
|
|
3147
3149
|
function ke(e) {
|
|
3148
3150
|
e.forEach(function(t) {
|
|
3149
|
-
if (delete t.location,
|
|
3151
|
+
if (delete t.location, Dt(t) || Gt(t))
|
|
3150
3152
|
for (var r in t.options)
|
|
3151
3153
|
delete t.options[r].location, ke(t.options[r].value);
|
|
3152
3154
|
else
|
|
3153
|
-
|
|
3155
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Ue(t.style) ? delete t.style.location : Ft(t) && ke(t.children);
|
|
3154
3156
|
});
|
|
3155
3157
|
}
|
|
3156
|
-
function
|
|
3158
|
+
function In(e, t) {
|
|
3157
3159
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3158
|
-
var r = new
|
|
3160
|
+
var r = new On(e, t).parse();
|
|
3159
3161
|
if (r.err) {
|
|
3160
|
-
var n = SyntaxError(
|
|
3162
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3161
3163
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3162
3164
|
}
|
|
3163
3165
|
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
@@ -3178,7 +3180,7 @@ var ye = (
|
|
|
3178
3180
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3179
3181
|
}, t;
|
|
3180
3182
|
}(Error)
|
|
3181
|
-
),
|
|
3183
|
+
), mt = (
|
|
3182
3184
|
/** @class */
|
|
3183
3185
|
function(e) {
|
|
3184
3186
|
_e(t, e);
|
|
@@ -3187,7 +3189,7 @@ var ye = (
|
|
|
3187
3189
|
}
|
|
3188
3190
|
return t;
|
|
3189
3191
|
}(ye)
|
|
3190
|
-
),
|
|
3192
|
+
), Mn = (
|
|
3191
3193
|
/** @class */
|
|
3192
3194
|
function(e) {
|
|
3193
3195
|
_e(t, e);
|
|
@@ -3196,7 +3198,7 @@ var ye = (
|
|
|
3196
3198
|
}
|
|
3197
3199
|
return t;
|
|
3198
3200
|
}(ye)
|
|
3199
|
-
),
|
|
3201
|
+
), $n = (
|
|
3200
3202
|
/** @class */
|
|
3201
3203
|
function(e) {
|
|
3202
3204
|
_e(t, e);
|
|
@@ -3209,17 +3211,17 @@ var ye = (
|
|
|
3209
3211
|
(function(e) {
|
|
3210
3212
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3211
3213
|
})(E || (E = {}));
|
|
3212
|
-
function
|
|
3214
|
+
function Rn(e) {
|
|
3213
3215
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3214
3216
|
var n = t[t.length - 1];
|
|
3215
3217
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3216
3218
|
}, []);
|
|
3217
3219
|
}
|
|
3218
|
-
function
|
|
3220
|
+
function Un(e) {
|
|
3219
3221
|
return typeof e == "function";
|
|
3220
3222
|
}
|
|
3221
3223
|
function fe(e, t, r, n, i, s, a) {
|
|
3222
|
-
if (e.length === 1 &&
|
|
3224
|
+
if (e.length === 1 && ot(e[0]))
|
|
3223
3225
|
return [
|
|
3224
3226
|
{
|
|
3225
3227
|
type: E.literal,
|
|
@@ -3228,14 +3230,14 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3228
3230
|
];
|
|
3229
3231
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
|
3230
3232
|
var u = h[l];
|
|
3231
|
-
if (
|
|
3233
|
+
if (ot(u)) {
|
|
3232
3234
|
o.push({
|
|
3233
3235
|
type: E.literal,
|
|
3234
3236
|
value: u.value
|
|
3235
3237
|
});
|
|
3236
3238
|
continue;
|
|
3237
3239
|
}
|
|
3238
|
-
if (
|
|
3240
|
+
if (on(u)) {
|
|
3239
3241
|
typeof s == "number" && o.push({
|
|
3240
3242
|
type: E.literal,
|
|
3241
3243
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3244,43 +3246,43 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3244
3246
|
}
|
|
3245
3247
|
var f = u.value;
|
|
3246
3248
|
if (!(i && f in i))
|
|
3247
|
-
throw new
|
|
3249
|
+
throw new $n(f, a);
|
|
3248
3250
|
var c = i[f];
|
|
3249
|
-
if (
|
|
3251
|
+
if (sn(u)) {
|
|
3250
3252
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3251
3253
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3252
3254
|
value: c
|
|
3253
3255
|
});
|
|
3254
3256
|
continue;
|
|
3255
3257
|
}
|
|
3256
|
-
if (
|
|
3257
|
-
var
|
|
3258
|
+
if (Rt(u)) {
|
|
3259
|
+
var d = typeof u.style == "string" ? n.date[u.style] : Ue(u.style) ? u.style.parsedOptions : void 0;
|
|
3258
3260
|
o.push({
|
|
3259
3261
|
type: E.literal,
|
|
3260
|
-
value: r.getDateTimeFormat(t,
|
|
3262
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3261
3263
|
});
|
|
3262
3264
|
continue;
|
|
3263
3265
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var
|
|
3266
|
+
if (Ut(u)) {
|
|
3267
|
+
var d = typeof u.style == "string" ? n.time[u.style] : Ue(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3266
3268
|
o.push({
|
|
3267
3269
|
type: E.literal,
|
|
3268
|
-
value: r.getDateTimeFormat(t,
|
|
3270
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3269
3271
|
});
|
|
3270
3272
|
continue;
|
|
3271
3273
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
|
|
3274
|
+
if ($t(u)) {
|
|
3275
|
+
var d = typeof u.style == "string" ? n.number[u.style] : jt(u.style) ? u.style.parsedOptions : void 0;
|
|
3276
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3275
3277
|
type: E.literal,
|
|
3276
|
-
value: r.getNumberFormat(t,
|
|
3278
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3277
3279
|
});
|
|
3278
3280
|
continue;
|
|
3279
3281
|
}
|
|
3280
|
-
if (
|
|
3282
|
+
if (Ft(u)) {
|
|
3281
3283
|
var m = u.children, g = u.value, v = i[g];
|
|
3282
|
-
if (!
|
|
3283
|
-
throw new
|
|
3284
|
+
if (!Un(v))
|
|
3285
|
+
throw new Mn(g, "function", a);
|
|
3284
3286
|
var N = fe(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
3285
3287
|
return w.value;
|
|
3286
3288
|
}));
|
|
@@ -3291,14 +3293,14 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3291
3293
|
};
|
|
3292
3294
|
}));
|
|
3293
3295
|
}
|
|
3294
|
-
if (
|
|
3296
|
+
if (Dt(u)) {
|
|
3295
3297
|
var H = u.options[c] || u.options.other;
|
|
3296
3298
|
if (!H)
|
|
3297
|
-
throw new
|
|
3299
|
+
throw new mt(u.value, c, Object.keys(u.options), a);
|
|
3298
3300
|
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3299
3301
|
continue;
|
|
3300
3302
|
}
|
|
3301
|
-
if (
|
|
3303
|
+
if (Gt(u)) {
|
|
3302
3304
|
var H = u.options["=".concat(c)];
|
|
3303
3305
|
if (!H) {
|
|
3304
3306
|
if (!Intl.PluralRules)
|
|
@@ -3309,21 +3311,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3309
3311
|
H = u.options[I] || u.options.other;
|
|
3310
3312
|
}
|
|
3311
3313
|
if (!H)
|
|
3312
|
-
throw new
|
|
3314
|
+
throw new mt(u.value, c, Object.keys(u.options), a);
|
|
3313
3315
|
o.push.apply(o, fe(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3314
3316
|
continue;
|
|
3315
3317
|
}
|
|
3316
3318
|
}
|
|
3317
|
-
return
|
|
3319
|
+
return Rn(o);
|
|
3318
3320
|
}
|
|
3319
|
-
function
|
|
3321
|
+
function Dn(e, t) {
|
|
3320
3322
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3321
3323
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3322
3324
|
}, {})) : e;
|
|
3323
3325
|
}
|
|
3324
|
-
function
|
|
3326
|
+
function Gn(e, t) {
|
|
3325
3327
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3326
|
-
return r[n] =
|
|
3328
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3327
3329
|
}, y({}, e)) : e;
|
|
3328
3330
|
}
|
|
3329
3331
|
function Le(e) {
|
|
@@ -3340,7 +3342,7 @@ function Le(e) {
|
|
|
3340
3342
|
}
|
|
3341
3343
|
};
|
|
3342
3344
|
}
|
|
3343
|
-
function
|
|
3345
|
+
function Fn(e) {
|
|
3344
3346
|
return e === void 0 && (e = {
|
|
3345
3347
|
number: {},
|
|
3346
3348
|
dateTime: {},
|
|
@@ -3372,7 +3374,7 @@ function Gn(e) {
|
|
|
3372
3374
|
})
|
|
3373
3375
|
};
|
|
3374
3376
|
}
|
|
3375
|
-
var
|
|
3377
|
+
var qt = (
|
|
3376
3378
|
/** @class */
|
|
3377
3379
|
function() {
|
|
3378
3380
|
function e(t, r, n, i) {
|
|
@@ -3404,13 +3406,13 @@ var Zt = (
|
|
|
3404
3406
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3405
3407
|
var a = i || {};
|
|
3406
3408
|
a.formatters;
|
|
3407
|
-
var o =
|
|
3409
|
+
var o = Jr(a, ["formatters"]);
|
|
3408
3410
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3409
3411
|
} else
|
|
3410
3412
|
this.ast = t;
|
|
3411
3413
|
if (!Array.isArray(this.ast))
|
|
3412
3414
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3413
|
-
this.formats =
|
|
3415
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3414
3416
|
}
|
|
3415
3417
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3416
3418
|
get: function() {
|
|
@@ -3423,7 +3425,7 @@ var Zt = (
|
|
|
3423
3425
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3424
3426
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3425
3427
|
}
|
|
3426
|
-
}, e.__parse =
|
|
3428
|
+
}, e.__parse = In, e.formats = {
|
|
3427
3429
|
number: {
|
|
3428
3430
|
integer: {
|
|
3429
3431
|
maximumFractionDigits: 0
|
|
@@ -3484,7 +3486,7 @@ var Zt = (
|
|
|
3484
3486
|
}, e;
|
|
3485
3487
|
}()
|
|
3486
3488
|
);
|
|
3487
|
-
function
|
|
3489
|
+
function jn(e, t) {
|
|
3488
3490
|
if (t == null)
|
|
3489
3491
|
return;
|
|
3490
3492
|
if (t in e)
|
|
@@ -3505,101 +3507,101 @@ function Fn(e, t) {
|
|
|
3505
3507
|
n = void 0;
|
|
3506
3508
|
return n;
|
|
3507
3509
|
}
|
|
3508
|
-
const O = {},
|
|
3510
|
+
const O = {}, kn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Jt = (e, t) => {
|
|
3509
3511
|
if (t == null)
|
|
3510
3512
|
return;
|
|
3511
3513
|
if (t in O && e in O[t])
|
|
3512
3514
|
return O[t][e];
|
|
3513
3515
|
const r = ie(t);
|
|
3514
3516
|
for (let n = 0; n < r.length; n++) {
|
|
3515
|
-
const i = r[n], s =
|
|
3517
|
+
const i = r[n], s = Xn(i, e);
|
|
3516
3518
|
if (s)
|
|
3517
|
-
return
|
|
3519
|
+
return kn(e, t, s);
|
|
3518
3520
|
}
|
|
3519
3521
|
};
|
|
3520
|
-
let
|
|
3522
|
+
let qe;
|
|
3521
3523
|
const ne = ge({});
|
|
3522
|
-
function
|
|
3523
|
-
return
|
|
3524
|
+
function Vn(e) {
|
|
3525
|
+
return qe[e] || null;
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return e in
|
|
3527
|
+
function Yt(e) {
|
|
3528
|
+
return e in qe;
|
|
3527
3529
|
}
|
|
3528
|
-
function
|
|
3529
|
-
if (!
|
|
3530
|
+
function Xn(e, t) {
|
|
3531
|
+
if (!Yt(e))
|
|
3530
3532
|
return null;
|
|
3531
|
-
const r =
|
|
3532
|
-
return
|
|
3533
|
+
const r = Vn(e);
|
|
3534
|
+
return jn(r, t);
|
|
3533
3535
|
}
|
|
3534
|
-
function
|
|
3536
|
+
function zn(e) {
|
|
3535
3537
|
if (e == null)
|
|
3536
3538
|
return;
|
|
3537
3539
|
const t = ie(e);
|
|
3538
3540
|
for (let r = 0; r < t.length; r++) {
|
|
3539
3541
|
const n = t[r];
|
|
3540
|
-
if (
|
|
3542
|
+
if (Yt(n))
|
|
3541
3543
|
return n;
|
|
3542
3544
|
}
|
|
3543
3545
|
}
|
|
3544
|
-
function
|
|
3545
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
3546
|
+
function Kt(e, ...t) {
|
|
3547
|
+
delete O[e], ne.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3546
3548
|
}
|
|
3547
3549
|
Q(
|
|
3548
3550
|
[ne],
|
|
3549
3551
|
([e]) => Object.keys(e)
|
|
3550
3552
|
);
|
|
3551
|
-
ne.subscribe((e) =>
|
|
3553
|
+
ne.subscribe((e) => qe = e);
|
|
3552
3554
|
const ce = {};
|
|
3553
3555
|
function Wn(e, t) {
|
|
3554
3556
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3555
3557
|
}
|
|
3556
|
-
function
|
|
3558
|
+
function er(e) {
|
|
3557
3559
|
return ce[e];
|
|
3558
3560
|
}
|
|
3559
|
-
function
|
|
3561
|
+
function Zn(e) {
|
|
3560
3562
|
return ie(e).map((t) => {
|
|
3561
|
-
const r =
|
|
3563
|
+
const r = er(t);
|
|
3562
3564
|
return [t, r ? [...r] : []];
|
|
3563
3565
|
}).filter(([, t]) => t.length > 0);
|
|
3564
3566
|
}
|
|
3565
|
-
function
|
|
3567
|
+
function de(e) {
|
|
3566
3568
|
return e == null ? !1 : ie(e).some(
|
|
3567
3569
|
(t) => {
|
|
3568
3570
|
var r;
|
|
3569
|
-
return (r =
|
|
3571
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3570
3572
|
}
|
|
3571
3573
|
);
|
|
3572
3574
|
}
|
|
3573
|
-
function
|
|
3575
|
+
function Qn(e, t) {
|
|
3574
3576
|
return Promise.all(
|
|
3575
3577
|
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3576
|
-
).then((n) =>
|
|
3578
|
+
).then((n) => Kt(e, ...n));
|
|
3577
3579
|
}
|
|
3578
3580
|
const J = {};
|
|
3579
|
-
function
|
|
3580
|
-
if (!
|
|
3581
|
+
function tr(e) {
|
|
3582
|
+
if (!de(e))
|
|
3581
3583
|
return e in J ? J[e] : Promise.resolve();
|
|
3582
|
-
const t =
|
|
3584
|
+
const t = Zn(e);
|
|
3583
3585
|
return J[e] = Promise.all(
|
|
3584
3586
|
t.map(
|
|
3585
|
-
([r, n]) =>
|
|
3587
|
+
([r, n]) => Qn(r, n)
|
|
3586
3588
|
)
|
|
3587
3589
|
).then(() => {
|
|
3588
|
-
if (
|
|
3589
|
-
return
|
|
3590
|
+
if (de(e))
|
|
3591
|
+
return tr(e);
|
|
3590
3592
|
delete J[e];
|
|
3591
3593
|
}), J[e];
|
|
3592
3594
|
}
|
|
3593
|
-
var
|
|
3595
|
+
var dt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3594
3596
|
var r = {};
|
|
3595
3597
|
for (var n in e)
|
|
3596
|
-
|
|
3597
|
-
if (e != null &&
|
|
3598
|
-
for (var n of
|
|
3599
|
-
t.indexOf(n) < 0 &&
|
|
3598
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3599
|
+
if (e != null && dt)
|
|
3600
|
+
for (var n of dt(e))
|
|
3601
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3600
3602
|
return r;
|
|
3601
3603
|
};
|
|
3602
|
-
const
|
|
3604
|
+
const Kn = {
|
|
3603
3605
|
number: {
|
|
3604
3606
|
scientific: { notation: "scientific" },
|
|
3605
3607
|
engineering: { notation: "engineering" },
|
|
@@ -3629,81 +3631,81 @@ const Yn = {
|
|
|
3629
3631
|
}
|
|
3630
3632
|
}
|
|
3631
3633
|
};
|
|
3632
|
-
function
|
|
3634
|
+
function ei({ locale: e, id: t }) {
|
|
3633
3635
|
console.warn(
|
|
3634
3636
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3635
3637
|
e
|
|
3636
|
-
).join('", "')}".${
|
|
3638
|
+
).join('", "')}".${de(L()) ? `
|
|
3637
3639
|
|
|
3638
3640
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3639
3641
|
);
|
|
3640
3642
|
}
|
|
3641
|
-
const
|
|
3643
|
+
const ti = {
|
|
3642
3644
|
fallbackLocale: null,
|
|
3643
3645
|
loadingDelay: 200,
|
|
3644
|
-
formats:
|
|
3646
|
+
formats: Kn,
|
|
3645
3647
|
warnOnMissingMessages: !0,
|
|
3646
3648
|
handleMissingMessage: void 0,
|
|
3647
3649
|
ignoreTag: !0
|
|
3648
|
-
}, Y =
|
|
3649
|
-
function
|
|
3650
|
+
}, Y = ti;
|
|
3651
|
+
function z() {
|
|
3650
3652
|
return Y;
|
|
3651
3653
|
}
|
|
3652
|
-
function
|
|
3653
|
-
const t = e, { formats: r } = t, n =
|
|
3654
|
+
function ri(e) {
|
|
3655
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3654
3656
|
let i = e.fallbackLocale;
|
|
3655
3657
|
if (e.initialLocale)
|
|
3656
3658
|
try {
|
|
3657
|
-
|
|
3659
|
+
qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3658
3660
|
} catch (s) {
|
|
3659
3661
|
console.warn(
|
|
3660
3662
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3661
3663
|
);
|
|
3662
3664
|
}
|
|
3663
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3665
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3664
3666
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3665
3667
|
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), $.set(i);
|
|
3666
3668
|
}
|
|
3667
3669
|
const Ne = ge(!1);
|
|
3668
|
-
var
|
|
3670
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3669
3671
|
for (var r in t || (t = {}))
|
|
3670
|
-
|
|
3671
|
-
if (
|
|
3672
|
-
for (var r of
|
|
3673
|
-
|
|
3672
|
+
oi.call(t, r) && bt(e, r, t[r]);
|
|
3673
|
+
if (pt)
|
|
3674
|
+
for (var r of pt(t))
|
|
3675
|
+
ai.call(t, r) && bt(e, r, t[r]);
|
|
3674
3676
|
return e;
|
|
3675
|
-
},
|
|
3677
|
+
}, ui = (e, t) => ii(e, si(t));
|
|
3676
3678
|
let Ve;
|
|
3677
|
-
const
|
|
3678
|
-
function
|
|
3679
|
+
const pe = ge(null);
|
|
3680
|
+
function gt(e) {
|
|
3679
3681
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3680
3682
|
}
|
|
3681
|
-
function ie(e, t =
|
|
3682
|
-
const r =
|
|
3683
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3683
|
+
function ie(e, t = z().fallbackLocale) {
|
|
3684
|
+
const r = gt(e);
|
|
3685
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
3684
3686
|
}
|
|
3685
3687
|
function L() {
|
|
3686
3688
|
return Ve != null ? Ve : void 0;
|
|
3687
3689
|
}
|
|
3688
|
-
|
|
3690
|
+
pe.subscribe((e) => {
|
|
3689
3691
|
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3690
3692
|
});
|
|
3691
|
-
const
|
|
3692
|
-
if (e &&
|
|
3693
|
-
const { loadingDelay: t } =
|
|
3693
|
+
const li = (e) => {
|
|
3694
|
+
if (e && zn(e) && de(e)) {
|
|
3695
|
+
const { loadingDelay: t } = z();
|
|
3694
3696
|
let r;
|
|
3695
3697
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3696
3698
|
() => Ne.set(!0),
|
|
3697
3699
|
t
|
|
3698
|
-
) : Ne.set(!0),
|
|
3699
|
-
|
|
3700
|
+
) : Ne.set(!0), tr(e).then(() => {
|
|
3701
|
+
pe.set(e);
|
|
3700
3702
|
}).finally(() => {
|
|
3701
3703
|
clearTimeout(r), Ne.set(!1);
|
|
3702
3704
|
});
|
|
3703
3705
|
}
|
|
3704
|
-
return
|
|
3705
|
-
}, $ = hi(
|
|
3706
|
-
set:
|
|
3706
|
+
return pe.set(e);
|
|
3707
|
+
}, $ = ui(hi({}, pe), {
|
|
3708
|
+
set: li
|
|
3707
3709
|
}), xe = (e) => {
|
|
3708
3710
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3709
3711
|
return (n) => {
|
|
@@ -3711,42 +3713,42 @@ const ui = (e) => {
|
|
|
3711
3713
|
return i in t ? t[i] : t[i] = e(n);
|
|
3712
3714
|
};
|
|
3713
3715
|
};
|
|
3714
|
-
var
|
|
3716
|
+
var fi = Object.defineProperty, be = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3715
3717
|
for (var r in t || (t = {}))
|
|
3716
|
-
|
|
3718
|
+
rr.call(t, r) && _t(e, r, t[r]);
|
|
3717
3719
|
if (be)
|
|
3718
3720
|
for (var r of be(t))
|
|
3719
|
-
|
|
3721
|
+
nr.call(t, r) && _t(e, r, t[r]);
|
|
3720
3722
|
return e;
|
|
3721
3723
|
}, q = (e, t) => {
|
|
3722
3724
|
var r = {};
|
|
3723
3725
|
for (var n in e)
|
|
3724
|
-
|
|
3726
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3725
3727
|
if (e != null && be)
|
|
3726
3728
|
for (var n of be(e))
|
|
3727
|
-
t.indexOf(n) < 0 &&
|
|
3729
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
3728
3730
|
return r;
|
|
3729
3731
|
};
|
|
3730
3732
|
const te = (e, t) => {
|
|
3731
|
-
const { formats: r } =
|
|
3733
|
+
const { formats: r } = z();
|
|
3732
3734
|
if (e in r && t in r[e])
|
|
3733
3735
|
return r[e][t];
|
|
3734
3736
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3735
|
-
},
|
|
3737
|
+
}, ci = xe(
|
|
3736
3738
|
(e) => {
|
|
3737
3739
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3738
3740
|
if (r == null)
|
|
3739
3741
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3740
3742
|
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3741
3743
|
}
|
|
3742
|
-
),
|
|
3744
|
+
), mi = xe(
|
|
3743
3745
|
(e) => {
|
|
3744
3746
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3745
3747
|
if (r == null)
|
|
3746
3748
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3747
3749
|
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3748
3750
|
}
|
|
3749
|
-
),
|
|
3751
|
+
), di = xe(
|
|
3750
3752
|
(e) => {
|
|
3751
3753
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3752
3754
|
if (r == null)
|
|
@@ -3761,27 +3763,27 @@ const te = (e, t) => {
|
|
|
3761
3763
|
} = t, n = q(t, [
|
|
3762
3764
|
"locale"
|
|
3763
3765
|
]);
|
|
3764
|
-
return
|
|
3765
|
-
},
|
|
3766
|
+
return ci(Je({ locale: r }, n));
|
|
3767
|
+
}, bi = (e = {}) => {
|
|
3766
3768
|
var t = e, {
|
|
3767
3769
|
locale: r = L()
|
|
3768
3770
|
} = t, n = q(t, [
|
|
3769
3771
|
"locale"
|
|
3770
3772
|
]);
|
|
3771
|
-
return
|
|
3772
|
-
},
|
|
3773
|
+
return mi(Je({ locale: r }, n));
|
|
3774
|
+
}, gi = (e = {}) => {
|
|
3773
3775
|
var t = e, {
|
|
3774
3776
|
locale: r = L()
|
|
3775
3777
|
} = t, n = q(t, [
|
|
3776
3778
|
"locale"
|
|
3777
3779
|
]);
|
|
3778
|
-
return
|
|
3779
|
-
},
|
|
3780
|
+
return di(Je({ locale: r }, n));
|
|
3781
|
+
}, _i = xe(
|
|
3780
3782
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3781
|
-
(e, t = L()) => new
|
|
3782
|
-
ignoreTag:
|
|
3783
|
+
(e, t = L()) => new qt(e, t, z().formats, {
|
|
3784
|
+
ignoreTag: z().ignoreTag
|
|
3783
3785
|
})
|
|
3784
|
-
),
|
|
3786
|
+
), yi = (e, t = {}) => {
|
|
3785
3787
|
var r, n, i, s;
|
|
3786
3788
|
let a = t;
|
|
3787
3789
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3794,9 +3796,9 @@ const te = (e, t) => {
|
|
|
3794
3796
|
throw new Error(
|
|
3795
3797
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3796
3798
|
);
|
|
3797
|
-
let u =
|
|
3799
|
+
let u = Jt(e, l);
|
|
3798
3800
|
if (!u)
|
|
3799
|
-
u = (s = (i = (n = (r =
|
|
3801
|
+
u = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
|
3800
3802
|
else if (typeof u != "string")
|
|
3801
3803
|
return console.warn(
|
|
3802
3804
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3805,7 +3807,7 @@ const te = (e, t) => {
|
|
|
3805
3807
|
return u;
|
|
3806
3808
|
let f = u;
|
|
3807
3809
|
try {
|
|
3808
|
-
f =
|
|
3810
|
+
f = _i(u, l).format(o);
|
|
3809
3811
|
} catch (c) {
|
|
3810
3812
|
c instanceof Error && console.warn(
|
|
3811
3813
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3813,20 +3815,20 @@ const te = (e, t) => {
|
|
|
3813
3815
|
);
|
|
3814
3816
|
}
|
|
3815
3817
|
return f;
|
|
3816
|
-
},
|
|
3817
|
-
Q([$], () => yi);
|
|
3818
|
+
}, xi = (e, t) => gi(t).format(e), Ei = (e, t) => bi(t).format(e), vi = (e, t) => pi(t).format(e), Hi = (e, t = L()) => Jt(e, t), Bi = Q([$, ne], () => yi);
|
|
3818
3819
|
Q([$], () => xi);
|
|
3819
3820
|
Q([$], () => Ei);
|
|
3820
|
-
Q([
|
|
3821
|
-
|
|
3822
|
-
|
|
3821
|
+
Q([$], () => vi);
|
|
3822
|
+
Q([$, ne], () => Hi);
|
|
3823
|
+
function yt(e, t) {
|
|
3824
|
+
Kt(e, t);
|
|
3823
3825
|
}
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3826
|
+
function Ti(e) {
|
|
3827
|
+
ri({
|
|
3826
3828
|
fallbackLocale: "en"
|
|
3827
3829
|
}), $.set(e);
|
|
3828
3830
|
}
|
|
3829
|
-
const
|
|
3831
|
+
const xt = {
|
|
3830
3832
|
en: {
|
|
3831
3833
|
header: {
|
|
3832
3834
|
general: "Cashier",
|
|
@@ -3849,18 +3851,18 @@ const _t = {
|
|
|
3849
3851
|
}
|
|
3850
3852
|
}
|
|
3851
3853
|
};
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
+
function wi(e) {
|
|
3855
|
+
br(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3854
3856
|
}
|
|
3855
|
-
const
|
|
3856
|
-
function
|
|
3857
|
+
const Si = (e) => ({}), Et = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({}), Ci = (e) => ({}), Ht = (e) => ({});
|
|
3858
|
+
function Bt(e) {
|
|
3857
3859
|
let t, r, n;
|
|
3858
3860
|
return {
|
|
3859
3861
|
c() {
|
|
3860
|
-
t =
|
|
3862
|
+
t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderLeftButton");
|
|
3861
3863
|
},
|
|
3862
3864
|
m(i, s) {
|
|
3863
|
-
M(i, t, s), r || (n =
|
|
3865
|
+
M(i, t, s), r || (n = Pt(
|
|
3864
3866
|
t,
|
|
3865
3867
|
"click",
|
|
3866
3868
|
/*back*/
|
|
@@ -3873,28 +3875,28 @@ function vt(e) {
|
|
|
3873
3875
|
}
|
|
3874
3876
|
};
|
|
3875
3877
|
}
|
|
3876
|
-
function
|
|
3878
|
+
function Oi(e) {
|
|
3877
3879
|
let t, r = (
|
|
3878
3880
|
/*backButton*/
|
|
3879
|
-
e[1] &&
|
|
3881
|
+
e[1] && Bt(e)
|
|
3880
3882
|
);
|
|
3881
3883
|
return {
|
|
3882
3884
|
c() {
|
|
3883
|
-
r && r.c(), t =
|
|
3885
|
+
r && r.c(), t = Ot();
|
|
3884
3886
|
},
|
|
3885
3887
|
m(n, i) {
|
|
3886
3888
|
r && r.m(n, i), M(n, t, i);
|
|
3887
3889
|
},
|
|
3888
3890
|
p(n, i) {
|
|
3889
3891
|
/*backButton*/
|
|
3890
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3892
|
+
n[1] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3891
3893
|
},
|
|
3892
3894
|
d(n) {
|
|
3893
3895
|
n && P(t), r && r.d(n);
|
|
3894
3896
|
}
|
|
3895
3897
|
};
|
|
3896
3898
|
}
|
|
3897
|
-
function
|
|
3899
|
+
function Pi(e) {
|
|
3898
3900
|
let t, r = (
|
|
3899
3901
|
/*$_*/
|
|
3900
3902
|
e[4](
|
|
@@ -3904,7 +3906,7 @@ function Oi(e) {
|
|
|
3904
3906
|
), n;
|
|
3905
3907
|
return {
|
|
3906
3908
|
c() {
|
|
3907
|
-
t =
|
|
3909
|
+
t = W("span"), n = ze(r), Z(t, "class", "CashierHeaderTitle");
|
|
3908
3910
|
},
|
|
3909
3911
|
m(i, s) {
|
|
3910
3912
|
M(i, t, s), me(t, n);
|
|
@@ -3915,21 +3917,21 @@ function Oi(e) {
|
|
|
3915
3917
|
i[4](
|
|
3916
3918
|
/*titleText*/
|
|
3917
3919
|
i[2]
|
|
3918
|
-
) + "") &&
|
|
3920
|
+
) + "") && xr(n, r);
|
|
3919
3921
|
},
|
|
3920
3922
|
d(i) {
|
|
3921
3923
|
i && P(t);
|
|
3922
3924
|
}
|
|
3923
3925
|
};
|
|
3924
3926
|
}
|
|
3925
|
-
function
|
|
3927
|
+
function Tt(e) {
|
|
3926
3928
|
let t, r, n;
|
|
3927
3929
|
return {
|
|
3928
3930
|
c() {
|
|
3929
|
-
t =
|
|
3931
|
+
t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderRightButton");
|
|
3930
3932
|
},
|
|
3931
3933
|
m(i, s) {
|
|
3932
|
-
M(i, t, s), r || (n =
|
|
3934
|
+
M(i, t, s), r || (n = Pt(
|
|
3933
3935
|
t,
|
|
3934
3936
|
"click",
|
|
3935
3937
|
/*close*/
|
|
@@ -3942,28 +3944,28 @@ function Ht(e) {
|
|
|
3942
3944
|
}
|
|
3943
3945
|
};
|
|
3944
3946
|
}
|
|
3945
|
-
function
|
|
3947
|
+
function Li(e) {
|
|
3946
3948
|
let t, r = (
|
|
3947
3949
|
/*closeButton*/
|
|
3948
|
-
e[3] &&
|
|
3950
|
+
e[3] && Tt(e)
|
|
3949
3951
|
);
|
|
3950
3952
|
return {
|
|
3951
3953
|
c() {
|
|
3952
|
-
r && r.c(), t =
|
|
3954
|
+
r && r.c(), t = Ot();
|
|
3953
3955
|
},
|
|
3954
3956
|
m(n, i) {
|
|
3955
3957
|
r && r.m(n, i), M(n, t, i);
|
|
3956
3958
|
},
|
|
3957
3959
|
p(n, i) {
|
|
3958
3960
|
/*closeButton*/
|
|
3959
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3961
|
+
n[3] ? r ? r.p(n, i) : (r = Tt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3960
3962
|
},
|
|
3961
3963
|
d(n) {
|
|
3962
3964
|
n && P(t), r && r.d(n);
|
|
3963
3965
|
}
|
|
3964
3966
|
};
|
|
3965
3967
|
}
|
|
3966
|
-
function
|
|
3968
|
+
function Ni(e) {
|
|
3967
3969
|
let t, r, n, i;
|
|
3968
3970
|
const s = (
|
|
3969
3971
|
/*#slots*/
|
|
@@ -3973,8 +3975,8 @@ function Li(e) {
|
|
|
3973
3975
|
e,
|
|
3974
3976
|
/*$$scope*/
|
|
3975
3977
|
e[14],
|
|
3976
|
-
|
|
3977
|
-
), o = a ||
|
|
3978
|
+
Ht
|
|
3979
|
+
), o = a || Oi(e), l = (
|
|
3978
3980
|
/*#slots*/
|
|
3979
3981
|
e[15].title
|
|
3980
3982
|
), h = ve(
|
|
@@ -3982,8 +3984,8 @@ function Li(e) {
|
|
|
3982
3984
|
e,
|
|
3983
3985
|
/*$$scope*/
|
|
3984
3986
|
e[14],
|
|
3985
|
-
|
|
3986
|
-
), u = h ||
|
|
3987
|
+
vt
|
|
3988
|
+
), u = h || Pi(e), f = (
|
|
3987
3989
|
/*#slots*/
|
|
3988
3990
|
e[15].rightButton
|
|
3989
3991
|
), c = ve(
|
|
@@ -3991,14 +3993,14 @@ function Li(e) {
|
|
|
3991
3993
|
e,
|
|
3992
3994
|
/*$$scope*/
|
|
3993
3995
|
e[14],
|
|
3994
|
-
|
|
3995
|
-
),
|
|
3996
|
+
Et
|
|
3997
|
+
), d = c || Li(e);
|
|
3996
3998
|
return {
|
|
3997
3999
|
c() {
|
|
3998
|
-
t =
|
|
4000
|
+
t = W("div"), o && o.c(), r = nt(), u && u.c(), n = nt(), d && d.c(), Z(t, "class", "CashierHeader");
|
|
3999
4001
|
},
|
|
4000
4002
|
m(m, g) {
|
|
4001
|
-
M(m, t, g), o && o.m(t, null), me(t, r), u && u.m(t, null), me(t, n),
|
|
4003
|
+
M(m, t, g), o && o.m(t, null), me(t, r), u && u.m(t, null), me(t, n), d && d.m(t, null), e[16](t), i = !0;
|
|
4002
4004
|
},
|
|
4003
4005
|
p(m, [g]) {
|
|
4004
4006
|
a ? a.p && (!i || g & /*$$scope*/
|
|
@@ -4013,12 +4015,12 @@ function Li(e) {
|
|
|
4013
4015
|
/*$$scope*/
|
|
4014
4016
|
m[14],
|
|
4015
4017
|
g,
|
|
4016
|
-
|
|
4018
|
+
Ci
|
|
4017
4019
|
) : Te(
|
|
4018
4020
|
/*$$scope*/
|
|
4019
4021
|
m[14]
|
|
4020
4022
|
),
|
|
4021
|
-
|
|
4023
|
+
Ht
|
|
4022
4024
|
) : o && o.p && (!i || g & /*backButton*/
|
|
4023
4025
|
2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
|
|
4024
4026
|
16384) && Be(
|
|
@@ -4032,12 +4034,12 @@ function Li(e) {
|
|
|
4032
4034
|
/*$$scope*/
|
|
4033
4035
|
m[14],
|
|
4034
4036
|
g,
|
|
4035
|
-
|
|
4037
|
+
Ai
|
|
4036
4038
|
) : Te(
|
|
4037
4039
|
/*$$scope*/
|
|
4038
4040
|
m[14]
|
|
4039
4041
|
),
|
|
4040
|
-
|
|
4042
|
+
vt
|
|
4041
4043
|
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4042
4044
|
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4043
4045
|
16384) && Be(
|
|
@@ -4051,72 +4053,72 @@ function Li(e) {
|
|
|
4051
4053
|
/*$$scope*/
|
|
4052
4054
|
m[14],
|
|
4053
4055
|
g,
|
|
4054
|
-
|
|
4056
|
+
Si
|
|
4055
4057
|
) : Te(
|
|
4056
4058
|
/*$$scope*/
|
|
4057
4059
|
m[14]
|
|
4058
4060
|
),
|
|
4059
|
-
|
|
4060
|
-
) :
|
|
4061
|
-
8) &&
|
|
4061
|
+
Et
|
|
4062
|
+
) : d && d.p && (!i || g & /*closeButton*/
|
|
4063
|
+
8) && d.p(m, i ? g : -1);
|
|
4062
4064
|
},
|
|
4063
4065
|
i(m) {
|
|
4064
|
-
i || (ue(o, m), ue(u, m), ue(
|
|
4066
|
+
i || (ue(o, m), ue(u, m), ue(d, m), i = !0);
|
|
4065
4067
|
},
|
|
4066
4068
|
o(m) {
|
|
4067
|
-
Se(o, m), Se(u, m), Se(
|
|
4069
|
+
Se(o, m), Se(u, m), Se(d, m), i = !1;
|
|
4068
4070
|
},
|
|
4069
4071
|
d(m) {
|
|
4070
|
-
m && P(t), o && o.d(m), u && u.d(m),
|
|
4072
|
+
m && P(t), o && o.d(m), u && u.d(m), d && d.d(m), e[16](null);
|
|
4071
4073
|
}
|
|
4072
4074
|
};
|
|
4073
4075
|
}
|
|
4074
|
-
function
|
|
4076
|
+
function Ii(e, t, r) {
|
|
4075
4077
|
let n;
|
|
4076
|
-
|
|
4077
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t,
|
|
4078
|
+
pr(e, Bi, (_) => r(4, n = _));
|
|
4079
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4078
4080
|
const N = () => {
|
|
4079
4081
|
let _ = l;
|
|
4080
4082
|
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4081
4083
|
Object.keys(S).forEach((U) => {
|
|
4082
|
-
|
|
4084
|
+
yt(U, S[U]);
|
|
4083
4085
|
});
|
|
4084
4086
|
}).catch((S) => {
|
|
4085
4087
|
console.log(S);
|
|
4086
4088
|
});
|
|
4087
4089
|
};
|
|
4088
|
-
Object.keys(
|
|
4089
|
-
|
|
4090
|
+
Object.keys(xt).forEach((_) => {
|
|
4091
|
+
yt(_, xt[_]);
|
|
4090
4092
|
});
|
|
4091
4093
|
const C = () => {
|
|
4092
4094
|
let _ = document.createElement("style");
|
|
4093
|
-
_.innerHTML = a,
|
|
4095
|
+
_.innerHTML = a, d.appendChild(_);
|
|
4094
4096
|
}, H = () => {
|
|
4095
4097
|
let _ = new URL(o), S = document.createElement("style");
|
|
4096
4098
|
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4097
4099
|
S.innerHTML = U, setTimeout(
|
|
4098
4100
|
() => {
|
|
4099
|
-
|
|
4101
|
+
d.appendChild(S);
|
|
4100
4102
|
},
|
|
4101
4103
|
1
|
|
4102
4104
|
);
|
|
4103
4105
|
});
|
|
4104
4106
|
}, I = () => {
|
|
4105
|
-
|
|
4107
|
+
Ti(f);
|
|
4106
4108
|
}, w = () => {
|
|
4107
4109
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4108
4110
|
}, R = () => {
|
|
4109
4111
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4110
4112
|
}, se = () => {
|
|
4111
4113
|
r(1, m = !!h && h !== "false");
|
|
4112
|
-
},
|
|
4114
|
+
}, sr = () => {
|
|
4113
4115
|
r(3, v = !!c && c !== "false");
|
|
4114
|
-
},
|
|
4116
|
+
}, or = () => {
|
|
4115
4117
|
r(2, g = u || "header.general");
|
|
4116
4118
|
};
|
|
4117
|
-
function
|
|
4119
|
+
function ar(_) {
|
|
4118
4120
|
Ie[_ ? "unshift" : "push"](() => {
|
|
4119
|
-
|
|
4121
|
+
d = _, r(0, d);
|
|
4120
4122
|
});
|
|
4121
4123
|
}
|
|
4122
4124
|
return e.$$set = (_) => {
|
|
@@ -4124,14 +4126,14 @@ function Ni(e, t, r) {
|
|
|
4124
4126
|
}, e.$$.update = () => {
|
|
4125
4127
|
e.$$.dirty & /*lang*/
|
|
4126
4128
|
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4127
|
-
6144 && f && u &&
|
|
4128
|
-
129 && a &&
|
|
4129
|
-
257 && o &&
|
|
4129
|
+
6144 && f && u && or(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4130
|
+
129 && a && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4131
|
+
257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4130
4132
|
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4131
4133
|
1024 && h && se(), e.$$.dirty & /*showclosebutton*/
|
|
4132
|
-
8192 && c &&
|
|
4134
|
+
8192 && c && sr();
|
|
4133
4135
|
}, [
|
|
4134
|
-
|
|
4136
|
+
d,
|
|
4135
4137
|
m,
|
|
4136
4138
|
g,
|
|
4137
4139
|
v,
|
|
@@ -4147,17 +4149,17 @@ function Ni(e, t, r) {
|
|
|
4147
4149
|
c,
|
|
4148
4150
|
s,
|
|
4149
4151
|
i,
|
|
4150
|
-
|
|
4152
|
+
ar
|
|
4151
4153
|
];
|
|
4152
4154
|
}
|
|
4153
|
-
class
|
|
4155
|
+
class ir extends Lr {
|
|
4154
4156
|
constructor(t) {
|
|
4155
|
-
super(),
|
|
4157
|
+
super(), Or(
|
|
4156
4158
|
this,
|
|
4157
4159
|
t,
|
|
4160
|
+
Ii,
|
|
4158
4161
|
Ni,
|
|
4159
|
-
|
|
4160
|
-
Tt,
|
|
4162
|
+
St,
|
|
4161
4163
|
{
|
|
4162
4164
|
clientstyling: 7,
|
|
4163
4165
|
clientstylingurl: 8,
|
|
@@ -4167,7 +4169,7 @@ class rr extends Or {
|
|
|
4167
4169
|
lang: 12,
|
|
4168
4170
|
showclosebutton: 13
|
|
4169
4171
|
},
|
|
4170
|
-
|
|
4172
|
+
wi
|
|
4171
4173
|
);
|
|
4172
4174
|
}
|
|
4173
4175
|
get clientstyling() {
|
|
@@ -4213,31 +4215,31 @@ class rr extends Or {
|
|
|
4213
4215
|
this.$$set({ showclosebutton: t }), A();
|
|
4214
4216
|
}
|
|
4215
4217
|
}
|
|
4216
|
-
|
|
4217
|
-
const
|
|
4218
|
+
Pr(ir, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4219
|
+
const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4218
4220
|
__proto__: null,
|
|
4219
|
-
default:
|
|
4221
|
+
default: ir
|
|
4220
4222
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4221
4223
|
export {
|
|
4222
4224
|
$,
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4225
|
+
Ui as C,
|
|
4226
|
+
Lr as S,
|
|
4227
|
+
Kt as a,
|
|
4228
|
+
Or as b,
|
|
4229
|
+
Pr as c,
|
|
4230
|
+
br as d,
|
|
4231
|
+
W as e,
|
|
4230
4232
|
A as f,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4233
|
+
nt as g,
|
|
4234
|
+
Ri as h,
|
|
4235
|
+
ri as i,
|
|
4236
|
+
$i as j,
|
|
4237
|
+
Z as k,
|
|
4238
|
+
M as l,
|
|
4239
|
+
me as m,
|
|
4240
|
+
Pt as n,
|
|
4241
|
+
T as o,
|
|
4242
|
+
P as p,
|
|
4241
4243
|
Ie as q,
|
|
4242
|
-
|
|
4244
|
+
St as s
|
|
4243
4245
|
};
|