@everymatrix/cashier-header 1.56.0 → 1.56.2
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-Dfb8UZle.js → CashierHeader-1GxxAVE-.js} +447 -421
- package/components/CashierHeader-DhtlbV21.cjs +18 -0
- package/components/{CashierHeader-CuMBjAeN.js → CashierHeader-DxWq7l1Q.js} +612 -586
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader--MbiLV6w.cjs +0 -5
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
for (const r in t)
|
|
3
|
+
function er(e, t) {
|
|
4
|
+
for (const r in t)
|
|
5
|
+
e[r] = t[r];
|
|
5
6
|
return (
|
|
6
7
|
/** @type {T & S} */
|
|
7
8
|
e
|
|
8
9
|
);
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function yt(e) {
|
|
11
12
|
return e();
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function Qe() {
|
|
14
15
|
return /* @__PURE__ */ Object.create(null);
|
|
15
16
|
}
|
|
16
17
|
function ee(e) {
|
|
17
|
-
e.forEach(
|
|
18
|
+
e.forEach(yt);
|
|
18
19
|
}
|
|
19
20
|
function je(e) {
|
|
20
21
|
return typeof e == "function";
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function xt(e, t) {
|
|
23
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function tr(e) {
|
|
26
27
|
return Object.keys(e).length === 0;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function Et(e, ...t) {
|
|
29
30
|
if (e == null) {
|
|
30
31
|
for (const n of t)
|
|
31
32
|
n(void 0);
|
|
@@ -34,19 +35,19 @@ function yt(e, ...t) {
|
|
|
34
35
|
const r = e.subscribe(...t);
|
|
35
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function rr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
39
40
|
}
|
|
40
41
|
function ye(e, t, r, n) {
|
|
41
42
|
if (e) {
|
|
42
|
-
const i =
|
|
43
|
+
const i = vt(e, t, r, n);
|
|
43
44
|
return e[0](i);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return e[1] && n ?
|
|
47
|
+
function vt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function xe(e, t, r, n) {
|
|
50
51
|
if (e[2] && n) {
|
|
51
52
|
const i = e[2](n(r));
|
|
52
53
|
if (t.dirty === void 0)
|
|
@@ -61,9 +62,9 @@ function Ee(e, t, r, n) {
|
|
|
61
62
|
}
|
|
62
63
|
return t.dirty;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function Ee(e, t, r, n, i, s) {
|
|
65
66
|
if (i) {
|
|
66
|
-
const h =
|
|
67
|
+
const h = vt(t, r, n, s);
|
|
67
68
|
e.p(h, i);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -79,15 +80,16 @@ function ve(e) {
|
|
|
79
80
|
function fe(e, t) {
|
|
80
81
|
e.appendChild(t);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
83
|
+
function nr(e, t, r) {
|
|
84
|
+
const n = ir(e);
|
|
84
85
|
if (!n.getElementById(t)) {
|
|
85
|
-
const i =
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = z("style");
|
|
87
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!e)
|
|
90
|
+
function ir(e) {
|
|
91
|
+
if (!e)
|
|
92
|
+
return document;
|
|
91
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
94
|
return t && /** @type {ShadowRoot} */
|
|
93
95
|
t.host ? (
|
|
@@ -95,7 +97,7 @@ function rr(e) {
|
|
|
95
97
|
t
|
|
96
98
|
) : e.ownerDocument;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
100
|
+
function sr(e, t) {
|
|
99
101
|
return fe(
|
|
100
102
|
/** @type {Document} */
|
|
101
103
|
e.head || e,
|
|
@@ -108,32 +110,32 @@ function I(e, t, r) {
|
|
|
108
110
|
function O(e) {
|
|
109
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function z(e) {
|
|
112
114
|
return document.createElement(e);
|
|
113
115
|
}
|
|
114
116
|
function ke(e) {
|
|
115
117
|
return document.createTextNode(e);
|
|
116
118
|
}
|
|
117
|
-
function
|
|
119
|
+
function Je() {
|
|
118
120
|
return ke(" ");
|
|
119
121
|
}
|
|
120
|
-
function
|
|
122
|
+
function Ht() {
|
|
121
123
|
return ke("");
|
|
122
124
|
}
|
|
123
|
-
function
|
|
125
|
+
function Bt(e, t, r, n) {
|
|
124
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
125
127
|
}
|
|
126
128
|
function te(e, t, r) {
|
|
127
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
128
130
|
}
|
|
129
|
-
function
|
|
131
|
+
function or(e) {
|
|
130
132
|
return Array.from(e.childNodes);
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function ar(e, t) {
|
|
133
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
136
|
t);
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function hr(e) {
|
|
137
139
|
const t = {};
|
|
138
140
|
return e.childNodes.forEach(
|
|
139
141
|
/** @param {Element} node */
|
|
@@ -148,10 +150,10 @@ function q(e) {
|
|
|
148
150
|
}
|
|
149
151
|
const G = [], Pe = [];
|
|
150
152
|
let F = [];
|
|
151
|
-
const
|
|
153
|
+
const qe = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
152
154
|
let Le = !1;
|
|
153
|
-
function
|
|
154
|
-
Le || (Le = !0,
|
|
155
|
+
function lr() {
|
|
156
|
+
Le || (Le = !0, ur.then(S));
|
|
155
157
|
}
|
|
156
158
|
function Ne(e) {
|
|
157
159
|
F.push(e);
|
|
@@ -166,61 +168,63 @@ function S() {
|
|
|
166
168
|
try {
|
|
167
169
|
for (; U < G.length; ) {
|
|
168
170
|
const t = G[U];
|
|
169
|
-
U++, q(t),
|
|
171
|
+
U++, q(t), fr(t.$$);
|
|
170
172
|
}
|
|
171
173
|
} catch (t) {
|
|
172
174
|
throw G.length = 0, U = 0, t;
|
|
173
175
|
}
|
|
174
|
-
for (q(null), G.length = 0, U = 0; Pe.length; )
|
|
176
|
+
for (q(null), G.length = 0, U = 0; Pe.length; )
|
|
177
|
+
Pe.pop()();
|
|
175
178
|
for (let t = 0; t < F.length; t += 1) {
|
|
176
179
|
const r = F[t];
|
|
177
180
|
He.has(r) || (He.add(r), r());
|
|
178
181
|
}
|
|
179
182
|
F.length = 0;
|
|
180
183
|
} while (G.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
184
|
+
for (; qe.length; )
|
|
185
|
+
qe.pop()();
|
|
183
186
|
Le = !1, He.clear(), q(e);
|
|
184
187
|
}
|
|
185
|
-
function
|
|
188
|
+
function fr(e) {
|
|
186
189
|
if (e.fragment !== null) {
|
|
187
190
|
e.update(), ee(e.before_update);
|
|
188
191
|
const t = e.dirty;
|
|
189
192
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
190
193
|
}
|
|
191
194
|
}
|
|
192
|
-
function
|
|
195
|
+
function cr(e) {
|
|
193
196
|
const t = [], r = [];
|
|
194
197
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
195
198
|
}
|
|
196
199
|
const oe = /* @__PURE__ */ new Set();
|
|
197
|
-
let
|
|
200
|
+
let mr;
|
|
198
201
|
function ae(e, t) {
|
|
199
202
|
e && e.i && (oe.delete(e), e.i(t));
|
|
200
203
|
}
|
|
201
204
|
function Be(e, t, r, n) {
|
|
202
205
|
if (e && e.o) {
|
|
203
|
-
if (oe.has(e))
|
|
204
|
-
|
|
206
|
+
if (oe.has(e))
|
|
207
|
+
return;
|
|
208
|
+
oe.add(e), mr.c.push(() => {
|
|
205
209
|
oe.delete(e);
|
|
206
210
|
}), e.o(t);
|
|
207
211
|
}
|
|
208
212
|
}
|
|
209
|
-
function
|
|
213
|
+
function pr(e, t, r) {
|
|
210
214
|
const { fragment: n, after_update: i } = e.$$;
|
|
211
215
|
n && n.m(t, r), Ne(() => {
|
|
212
|
-
const s = e.$$.on_mount.map(
|
|
216
|
+
const s = e.$$.on_mount.map(yt).filter(je);
|
|
213
217
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
214
218
|
}), i.forEach(Ne);
|
|
215
219
|
}
|
|
216
|
-
function
|
|
220
|
+
function dr(e, t) {
|
|
217
221
|
const r = e.$$;
|
|
218
|
-
r.fragment !== null && (
|
|
222
|
+
r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
219
223
|
}
|
|
220
|
-
function
|
|
221
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
224
|
+
function br(e, t) {
|
|
225
|
+
e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
222
226
|
}
|
|
223
|
-
function
|
|
227
|
+
function gr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
224
228
|
const l = Ve;
|
|
225
229
|
q(e);
|
|
226
230
|
const a = e.$$ = {
|
|
@@ -230,7 +234,7 @@ function dr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
230
234
|
props: s,
|
|
231
235
|
update: B,
|
|
232
236
|
not_equal: i,
|
|
233
|
-
bound:
|
|
237
|
+
bound: Qe(),
|
|
234
238
|
// lifecycle
|
|
235
239
|
on_mount: [],
|
|
236
240
|
on_destroy: [],
|
|
@@ -239,7 +243,7 @@ function dr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
239
243
|
after_update: [],
|
|
240
244
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
241
245
|
// everything else
|
|
242
|
-
callbacks:
|
|
246
|
+
callbacks: Qe(),
|
|
243
247
|
dirty: o,
|
|
244
248
|
skip_bound: !1,
|
|
245
249
|
root: t.target || l.$$.root
|
|
@@ -248,19 +252,19 @@ function dr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
248
252
|
let u = !1;
|
|
249
253
|
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
250
254
|
const m = p.length ? p[0] : c;
|
|
251
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u &&
|
|
255
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u && br(e, f)), c;
|
|
252
256
|
}) : [], a.update(), u = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
253
257
|
if (t.hydrate) {
|
|
254
|
-
const f =
|
|
258
|
+
const f = or(t.target);
|
|
255
259
|
a.fragment && a.fragment.l(f), f.forEach(O);
|
|
256
260
|
} else
|
|
257
261
|
a.fragment && a.fragment.c();
|
|
258
|
-
t.intro && ae(e.$$.fragment),
|
|
262
|
+
t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), S();
|
|
259
263
|
}
|
|
260
264
|
q(l);
|
|
261
265
|
}
|
|
262
|
-
let
|
|
263
|
-
typeof HTMLElement == "function" && (
|
|
266
|
+
let Tt;
|
|
267
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
264
268
|
/** The Svelte component constructor */
|
|
265
269
|
$$ctor;
|
|
266
270
|
/** Slots */
|
|
@@ -302,7 +306,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
302
306
|
let s;
|
|
303
307
|
return {
|
|
304
308
|
c: function() {
|
|
305
|
-
s =
|
|
309
|
+
s = z("slot"), i !== "default" && te(s, "name", i);
|
|
306
310
|
},
|
|
307
311
|
/**
|
|
308
312
|
* @param {HTMLElement} target
|
|
@@ -319,7 +323,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
319
323
|
};
|
|
320
324
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
325
|
return;
|
|
322
|
-
const t = {}, r =
|
|
326
|
+
const t = {}, r = hr(this);
|
|
323
327
|
for (const i of this.$$s)
|
|
324
328
|
i in r && (t[i] = [e(i)]);
|
|
325
329
|
for (const i of this.attributes) {
|
|
@@ -406,8 +410,8 @@ function he(e, t, r, n) {
|
|
|
406
410
|
return t;
|
|
407
411
|
}
|
|
408
412
|
}
|
|
409
|
-
function
|
|
410
|
-
let h = class extends
|
|
413
|
+
function _r(e, t, r, n, i, s) {
|
|
414
|
+
let h = class extends Tt {
|
|
411
415
|
constructor() {
|
|
412
416
|
super(e, r, i), this.$$p_d = t;
|
|
413
417
|
}
|
|
@@ -435,7 +439,7 @@ function br(e, t, r, n, i, s) {
|
|
|
435
439
|
}), e.element = /** @type {any} */
|
|
436
440
|
h, h;
|
|
437
441
|
}
|
|
438
|
-
class
|
|
442
|
+
class yr {
|
|
439
443
|
/**
|
|
440
444
|
* ### PRIVATE API
|
|
441
445
|
*
|
|
@@ -454,7 +458,7 @@ class gr {
|
|
|
454
458
|
$$set = void 0;
|
|
455
459
|
/** @returns {void} */
|
|
456
460
|
$destroy() {
|
|
457
|
-
|
|
461
|
+
dr(this, 1), this.$destroy = B;
|
|
458
462
|
}
|
|
459
463
|
/**
|
|
460
464
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,13 +480,13 @@ class gr {
|
|
|
476
480
|
* @returns {void}
|
|
477
481
|
*/
|
|
478
482
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
483
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
484
|
}
|
|
481
485
|
}
|
|
482
|
-
const
|
|
483
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
486
|
+
const xr = "4";
|
|
487
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
|
|
484
488
|
const D = [];
|
|
485
|
-
function
|
|
489
|
+
function Er(e, t) {
|
|
486
490
|
return {
|
|
487
491
|
subscribe: de(e, t).subscribe
|
|
488
492
|
};
|
|
@@ -491,7 +495,7 @@ function de(e, t = B) {
|
|
|
491
495
|
let r;
|
|
492
496
|
const n = /* @__PURE__ */ new Set();
|
|
493
497
|
function i(o) {
|
|
494
|
-
if (
|
|
498
|
+
if (xt(e, o) && (e = o, r)) {
|
|
495
499
|
const l = !D.length;
|
|
496
500
|
for (const a of n)
|
|
497
501
|
a[1](), D.push(a, e);
|
|
@@ -513,12 +517,12 @@ function de(e, t = B) {
|
|
|
513
517
|
}
|
|
514
518
|
return { set: i, update: s, subscribe: h };
|
|
515
519
|
}
|
|
516
|
-
function
|
|
520
|
+
function W(e, t, r) {
|
|
517
521
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
518
522
|
if (!i.every(Boolean))
|
|
519
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
520
524
|
const s = t.length < 2;
|
|
521
|
-
return
|
|
525
|
+
return Er(r, (h, o) => {
|
|
522
526
|
let l = !1;
|
|
523
527
|
const a = [];
|
|
524
528
|
let u = 0, f = B;
|
|
@@ -529,7 +533,7 @@ function z(e, t, r) {
|
|
|
529
533
|
const m = t(n ? a[0] : a, h, o);
|
|
530
534
|
s ? h(m) : f = je(m) ? m : B;
|
|
531
535
|
}, p = i.map(
|
|
532
|
-
(m, g) =>
|
|
536
|
+
(m, g) => Et(
|
|
533
537
|
m,
|
|
534
538
|
(v) => {
|
|
535
539
|
a[g] = v, u &= ~(1 << g), l && c();
|
|
@@ -544,70 +548,70 @@ function z(e, t, r) {
|
|
|
544
548
|
};
|
|
545
549
|
});
|
|
546
550
|
}
|
|
547
|
-
function
|
|
551
|
+
function vr(e) {
|
|
548
552
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
553
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
554
|
+
var Hr = function(t) {
|
|
555
|
+
return Br(t) && !Tr(t);
|
|
552
556
|
};
|
|
553
|
-
function
|
|
557
|
+
function Br(e) {
|
|
554
558
|
return !!e && typeof e == "object";
|
|
555
559
|
}
|
|
556
|
-
function
|
|
560
|
+
function Tr(e) {
|
|
557
561
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
562
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
|
|
559
563
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
return e.$$typeof ===
|
|
564
|
+
var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.element") : 60103;
|
|
565
|
+
function Ar(e) {
|
|
566
|
+
return e.$$typeof === Sr;
|
|
563
567
|
}
|
|
564
|
-
function
|
|
568
|
+
function Cr(e) {
|
|
565
569
|
return Array.isArray(e) ? [] : {};
|
|
566
570
|
}
|
|
567
571
|
function Y(e, t) {
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Cr(e), e, t) : e;
|
|
569
573
|
}
|
|
570
|
-
function
|
|
574
|
+
function Or(e, t, r) {
|
|
571
575
|
return e.concat(t).map(function(n) {
|
|
572
576
|
return Y(n, r);
|
|
573
577
|
});
|
|
574
578
|
}
|
|
575
|
-
function
|
|
579
|
+
function Pr(e, t) {
|
|
576
580
|
if (!t.customMerge)
|
|
577
581
|
return j;
|
|
578
582
|
var r = t.customMerge(e);
|
|
579
583
|
return typeof r == "function" ? r : j;
|
|
580
584
|
}
|
|
581
|
-
function
|
|
585
|
+
function Lr(e) {
|
|
582
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
587
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
588
|
}) : [];
|
|
585
589
|
}
|
|
586
|
-
function
|
|
587
|
-
return Object.keys(e).concat(
|
|
590
|
+
function Ye(e) {
|
|
591
|
+
return Object.keys(e).concat(Lr(e));
|
|
588
592
|
}
|
|
589
|
-
function
|
|
593
|
+
function wt(e, t) {
|
|
590
594
|
try {
|
|
591
595
|
return t in e;
|
|
592
596
|
} catch {
|
|
593
597
|
return !1;
|
|
594
598
|
}
|
|
595
599
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
600
|
+
function Nr(e, t) {
|
|
601
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
602
|
}
|
|
599
|
-
function
|
|
603
|
+
function Ir(e, t, r) {
|
|
600
604
|
var n = {};
|
|
601
|
-
return r.isMergeableObject(e) &&
|
|
605
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
602
606
|
n[i] = Y(e[i], r);
|
|
603
|
-
}),
|
|
604
|
-
|
|
607
|
+
}), Ye(t).forEach(function(i) {
|
|
608
|
+
Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
605
609
|
}), n;
|
|
606
610
|
}
|
|
607
611
|
function j(e, t, r) {
|
|
608
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
609
613
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
610
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
614
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : Y(t, r);
|
|
611
615
|
}
|
|
612
616
|
j.all = function(t, r) {
|
|
613
617
|
if (!Array.isArray(t))
|
|
@@ -616,13 +620,28 @@ j.all = function(t, r) {
|
|
|
616
620
|
return j(n, i, r);
|
|
617
621
|
}, {});
|
|
618
622
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
623
|
+
var Mr = j, $r = Mr;
|
|
624
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
625
|
+
/*! *****************************************************************************
|
|
626
|
+
Copyright (c) Microsoft Corporation.
|
|
627
|
+
|
|
628
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
629
|
+
purpose with or without fee is hereby granted.
|
|
630
|
+
|
|
631
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
632
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
633
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
634
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
635
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
636
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
637
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
638
|
+
***************************************************************************** */
|
|
621
639
|
var Ie = function(e, t) {
|
|
622
640
|
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
623
641
|
r.__proto__ = n;
|
|
624
642
|
} || function(r, n) {
|
|
625
|
-
for (var i in n)
|
|
643
|
+
for (var i in n)
|
|
644
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
626
645
|
}, Ie(e, t);
|
|
627
646
|
};
|
|
628
647
|
function be(e, t) {
|
|
@@ -638,119 +657,124 @@ var y = function() {
|
|
|
638
657
|
return y = Object.assign || function(t) {
|
|
639
658
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
640
659
|
r = arguments[n];
|
|
641
|
-
for (var s in r)
|
|
660
|
+
for (var s in r)
|
|
661
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
642
662
|
}
|
|
643
663
|
return t;
|
|
644
664
|
}, y.apply(this, arguments);
|
|
645
665
|
};
|
|
646
|
-
function
|
|
666
|
+
function Ur(e, t) {
|
|
647
667
|
var r = {};
|
|
648
|
-
for (var n in e)
|
|
668
|
+
for (var n in e)
|
|
669
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
649
670
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
650
671
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
651
672
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
652
673
|
return r;
|
|
653
674
|
}
|
|
654
675
|
function Te(e, t, r) {
|
|
655
|
-
if (
|
|
656
|
-
(
|
|
657
|
-
|
|
676
|
+
if (arguments.length === 2)
|
|
677
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
678
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
679
|
+
return e.concat(s || t);
|
|
658
680
|
}
|
|
659
681
|
function we(e, t) {
|
|
660
|
-
var r = t && t.cache ? t.cache :
|
|
682
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Gr;
|
|
661
683
|
return i(e, {
|
|
662
684
|
cache: r,
|
|
663
685
|
serializer: n
|
|
664
686
|
});
|
|
665
687
|
}
|
|
666
|
-
function
|
|
688
|
+
function Dr(e) {
|
|
667
689
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
668
690
|
}
|
|
669
|
-
function
|
|
670
|
-
var i =
|
|
691
|
+
function St(e, t, r, n) {
|
|
692
|
+
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
671
693
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
672
694
|
}
|
|
673
|
-
function
|
|
695
|
+
function At(e, t, r) {
|
|
674
696
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
675
697
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
676
698
|
}
|
|
677
|
-
function
|
|
699
|
+
function Xe(e, t, r, n, i) {
|
|
678
700
|
return r.bind(t, e, n, i);
|
|
679
701
|
}
|
|
680
|
-
function Dr(e, t) {
|
|
681
|
-
var r = e.length === 1 ? Ur : Tt;
|
|
682
|
-
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
683
|
-
}
|
|
684
702
|
function Gr(e, t) {
|
|
685
|
-
|
|
703
|
+
var r = e.length === 1 ? St : At;
|
|
704
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
705
|
+
}
|
|
706
|
+
function Fr(e, t) {
|
|
707
|
+
return Xe(e, this, At, t.cache.create(), t.serializer);
|
|
708
|
+
}
|
|
709
|
+
function jr(e, t) {
|
|
710
|
+
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
686
711
|
}
|
|
687
|
-
var
|
|
712
|
+
var kr = function() {
|
|
688
713
|
return JSON.stringify(arguments);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}()
|
|
701
|
-
), kr = {
|
|
714
|
+
};
|
|
715
|
+
function ze() {
|
|
716
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
717
|
+
}
|
|
718
|
+
ze.prototype.get = function(e) {
|
|
719
|
+
return this.cache[e];
|
|
720
|
+
};
|
|
721
|
+
ze.prototype.set = function(e, t) {
|
|
722
|
+
this.cache[e] = t;
|
|
723
|
+
};
|
|
724
|
+
var Vr = {
|
|
702
725
|
create: function() {
|
|
703
|
-
return new
|
|
726
|
+
return new ze();
|
|
704
727
|
}
|
|
705
728
|
}, Se = {
|
|
706
|
-
variadic:
|
|
729
|
+
variadic: Fr,
|
|
730
|
+
monadic: jr
|
|
707
731
|
}, d;
|
|
708
732
|
(function(e) {
|
|
709
733
|
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";
|
|
710
734
|
})(d || (d = {}));
|
|
711
|
-
var
|
|
735
|
+
var x;
|
|
712
736
|
(function(e) {
|
|
713
737
|
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";
|
|
714
|
-
})(
|
|
738
|
+
})(x || (x = {}));
|
|
715
739
|
var k;
|
|
716
740
|
(function(e) {
|
|
717
741
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
718
742
|
})(k || (k = {}));
|
|
719
|
-
function
|
|
720
|
-
return e.type ===
|
|
721
|
-
}
|
|
722
|
-
function Vr(e) {
|
|
723
|
-
return e.type === E.argument;
|
|
724
|
-
}
|
|
725
|
-
function St(e) {
|
|
726
|
-
return e.type === E.number;
|
|
743
|
+
function Ke(e) {
|
|
744
|
+
return e.type === x.literal;
|
|
727
745
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
746
|
+
function Xr(e) {
|
|
747
|
+
return e.type === x.argument;
|
|
730
748
|
}
|
|
731
749
|
function Ct(e) {
|
|
732
|
-
return e.type ===
|
|
750
|
+
return e.type === x.number;
|
|
733
751
|
}
|
|
734
752
|
function Ot(e) {
|
|
735
|
-
return e.type ===
|
|
753
|
+
return e.type === x.date;
|
|
736
754
|
}
|
|
737
755
|
function Pt(e) {
|
|
738
|
-
return e.type ===
|
|
739
|
-
}
|
|
740
|
-
function Xr(e) {
|
|
741
|
-
return e.type === E.pound;
|
|
756
|
+
return e.type === x.time;
|
|
742
757
|
}
|
|
743
758
|
function Lt(e) {
|
|
744
|
-
return e.type ===
|
|
759
|
+
return e.type === x.select;
|
|
745
760
|
}
|
|
746
761
|
function Nt(e) {
|
|
762
|
+
return e.type === x.plural;
|
|
763
|
+
}
|
|
764
|
+
function zr(e) {
|
|
765
|
+
return e.type === x.pound;
|
|
766
|
+
}
|
|
767
|
+
function It(e) {
|
|
768
|
+
return e.type === x.tag;
|
|
769
|
+
}
|
|
770
|
+
function Mt(e) {
|
|
747
771
|
return !!(e && typeof e == "object" && e.type === k.number);
|
|
748
772
|
}
|
|
749
773
|
function Me(e) {
|
|
750
774
|
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
751
775
|
}
|
|
752
|
-
var
|
|
753
|
-
function
|
|
776
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
777
|
+
function Zr(e) {
|
|
754
778
|
var t = {};
|
|
755
779
|
return e.replace(Wr, function(r) {
|
|
756
780
|
var n = r.length;
|
|
@@ -841,11 +865,11 @@ function zr(e) {
|
|
|
841
865
|
return "";
|
|
842
866
|
}), t;
|
|
843
867
|
}
|
|
844
|
-
var
|
|
845
|
-
function
|
|
868
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
869
|
+
function Jr(e) {
|
|
846
870
|
if (e.length === 0)
|
|
847
871
|
throw new Error("Number skeleton cannot be empty");
|
|
848
|
-
for (var t = e.split(
|
|
872
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
849
873
|
return c.length > 0;
|
|
850
874
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
851
875
|
var s = i[n], h = s.split("/");
|
|
@@ -860,17 +884,17 @@ function Qr(e) {
|
|
|
860
884
|
}
|
|
861
885
|
return r;
|
|
862
886
|
}
|
|
863
|
-
function
|
|
887
|
+
function qr(e) {
|
|
864
888
|
return e.replace(/^(.*?)-/, "");
|
|
865
889
|
}
|
|
866
|
-
var
|
|
867
|
-
function
|
|
890
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
891
|
+
function tt(e) {
|
|
868
892
|
var t = {};
|
|
869
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
893
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
870
894
|
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)), "";
|
|
871
895
|
}), t;
|
|
872
896
|
}
|
|
873
|
-
function
|
|
897
|
+
function Dt(e) {
|
|
874
898
|
switch (e) {
|
|
875
899
|
case "sign-auto":
|
|
876
900
|
return {
|
|
@@ -910,7 +934,7 @@ function Rt(e) {
|
|
|
910
934
|
};
|
|
911
935
|
}
|
|
912
936
|
}
|
|
913
|
-
function
|
|
937
|
+
function Kr(e) {
|
|
914
938
|
var t;
|
|
915
939
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
916
940
|
notation: "engineering"
|
|
@@ -918,17 +942,17 @@ function Yr(e) {
|
|
|
918
942
|
notation: "scientific"
|
|
919
943
|
}, e = e.slice(1)), t) {
|
|
920
944
|
var r = e.slice(0, 2);
|
|
921
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
945
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
922
946
|
throw new Error("Malformed concise eng/scientific notation");
|
|
923
947
|
t.minimumIntegerDigits = e.length;
|
|
924
948
|
}
|
|
925
949
|
return t;
|
|
926
950
|
}
|
|
927
|
-
function
|
|
928
|
-
var t = {}, r =
|
|
951
|
+
function rt(e) {
|
|
952
|
+
var t = {}, r = Dt(e);
|
|
929
953
|
return r || t;
|
|
930
954
|
}
|
|
931
|
-
function
|
|
955
|
+
function en(e) {
|
|
932
956
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
933
957
|
var i = n[r];
|
|
934
958
|
switch (i.stem) {
|
|
@@ -952,7 +976,7 @@ function Kr(e) {
|
|
|
952
976
|
continue;
|
|
953
977
|
case "measure-unit":
|
|
954
978
|
case "unit":
|
|
955
|
-
t.style = "unit", t.unit =
|
|
979
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
956
980
|
continue;
|
|
957
981
|
case "compact-short":
|
|
958
982
|
case "K":
|
|
@@ -964,12 +988,12 @@ function Kr(e) {
|
|
|
964
988
|
continue;
|
|
965
989
|
case "scientific":
|
|
966
990
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
967
|
-
return y(y({}, l),
|
|
991
|
+
return y(y({}, l), rt(a));
|
|
968
992
|
}, {}));
|
|
969
993
|
continue;
|
|
970
994
|
case "engineering":
|
|
971
995
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
972
|
-
return y(y({}, l),
|
|
996
|
+
return y(y({}, l), rt(a));
|
|
973
997
|
}, {}));
|
|
974
998
|
continue;
|
|
975
999
|
case "notation-simple":
|
|
@@ -1014,7 +1038,7 @@ function Kr(e) {
|
|
|
1014
1038
|
case "integer-width":
|
|
1015
1039
|
if (i.options.length > 1)
|
|
1016
1040
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1017
|
-
i.options[0].replace(
|
|
1041
|
+
i.options[0].replace(Yr, function(l, a, u, f, c, p) {
|
|
1018
1042
|
if (a)
|
|
1019
1043
|
t.minimumIntegerDigits = u.length;
|
|
1020
1044
|
else {
|
|
@@ -1027,27 +1051,27 @@ function Kr(e) {
|
|
|
1027
1051
|
});
|
|
1028
1052
|
continue;
|
|
1029
1053
|
}
|
|
1030
|
-
if (
|
|
1054
|
+
if (Ut.test(i.stem)) {
|
|
1031
1055
|
t.minimumIntegerDigits = i.stem.length;
|
|
1032
1056
|
continue;
|
|
1033
1057
|
}
|
|
1034
|
-
if (
|
|
1058
|
+
if (et.test(i.stem)) {
|
|
1035
1059
|
if (i.options.length > 1)
|
|
1036
1060
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1037
|
-
i.stem.replace(
|
|
1061
|
+
i.stem.replace(et, function(l, a, u, f, c, p) {
|
|
1038
1062
|
return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1039
1063
|
});
|
|
1040
1064
|
var s = i.options[0];
|
|
1041
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1065
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), tt(s)));
|
|
1042
1066
|
continue;
|
|
1043
1067
|
}
|
|
1044
|
-
if (
|
|
1045
|
-
t = y(y({}, t),
|
|
1068
|
+
if (Rt.test(i.stem)) {
|
|
1069
|
+
t = y(y({}, t), tt(i.stem));
|
|
1046
1070
|
continue;
|
|
1047
1071
|
}
|
|
1048
|
-
var h =
|
|
1072
|
+
var h = Dt(i.stem);
|
|
1049
1073
|
h && (t = y(y({}, t), h));
|
|
1050
|
-
var o =
|
|
1074
|
+
var o = Kr(i.stem);
|
|
1051
1075
|
o && (t = y(y({}, t), o));
|
|
1052
1076
|
}
|
|
1053
1077
|
return t;
|
|
@@ -2467,22 +2491,23 @@ var se = {
|
|
|
2467
2491
|
"h"
|
|
2468
2492
|
]
|
|
2469
2493
|
};
|
|
2470
|
-
function
|
|
2494
|
+
function tn(e, t) {
|
|
2471
2495
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2472
2496
|
var i = e.charAt(n);
|
|
2473
2497
|
if (i === "j") {
|
|
2474
2498
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2475
2499
|
s++, n++;
|
|
2476
|
-
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2500
|
+
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = rn(t);
|
|
2477
2501
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2478
2502
|
r += l;
|
|
2479
2503
|
for (; h-- > 0; )
|
|
2480
2504
|
r = a + r;
|
|
2481
|
-
} else
|
|
2505
|
+
} else
|
|
2506
|
+
i === "J" ? r += "H" : r += i;
|
|
2482
2507
|
}
|
|
2483
2508
|
return r;
|
|
2484
2509
|
}
|
|
2485
|
-
function
|
|
2510
|
+
function rn(e) {
|
|
2486
2511
|
var t = e.hourCycle;
|
|
2487
2512
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2488
2513
|
e.hourCycles && // @ts-ignore
|
|
@@ -2504,20 +2529,20 @@ function tn(e) {
|
|
|
2504
2529
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2505
2530
|
return i[0];
|
|
2506
2531
|
}
|
|
2507
|
-
var Ae,
|
|
2532
|
+
var Ae, nn = new RegExp("^".concat($t.source, "*")), sn = new RegExp("".concat($t.source, "*$"));
|
|
2508
2533
|
function b(e, t) {
|
|
2509
2534
|
return { start: e, end: t };
|
|
2510
2535
|
}
|
|
2511
|
-
var
|
|
2536
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, hn = !!Object.fromEntries, un = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2512
2537
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2513
2538
|
}, $e = !0;
|
|
2514
2539
|
try {
|
|
2515
|
-
var
|
|
2516
|
-
$e = ((Ae =
|
|
2540
|
+
var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2541
|
+
$e = ((Ae = pn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2517
2542
|
} catch {
|
|
2518
2543
|
$e = !1;
|
|
2519
2544
|
}
|
|
2520
|
-
var
|
|
2545
|
+
var nt = on ? (
|
|
2521
2546
|
// Native
|
|
2522
2547
|
function(t, r, n) {
|
|
2523
2548
|
return t.startsWith(r, n);
|
|
@@ -2527,7 +2552,7 @@ var tt = sn ? (
|
|
|
2527
2552
|
function(t, r, n) {
|
|
2528
2553
|
return t.slice(n, n + r.length) === r;
|
|
2529
2554
|
}
|
|
2530
|
-
), Re =
|
|
2555
|
+
), Re = an ? String.fromCodePoint : (
|
|
2531
2556
|
// IE11
|
|
2532
2557
|
function() {
|
|
2533
2558
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2539,9 +2564,9 @@ var tt = sn ? (
|
|
|
2539
2564
|
}
|
|
2540
2565
|
return n;
|
|
2541
2566
|
}
|
|
2542
|
-
),
|
|
2567
|
+
), it = (
|
|
2543
2568
|
// native
|
|
2544
|
-
|
|
2569
|
+
hn ? Object.fromEntries : (
|
|
2545
2570
|
// Ponyfill
|
|
2546
2571
|
function(t) {
|
|
2547
2572
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2551,7 +2576,7 @@ var tt = sn ? (
|
|
|
2551
2576
|
return r;
|
|
2552
2577
|
}
|
|
2553
2578
|
)
|
|
2554
|
-
),
|
|
2579
|
+
), Gt = un ? (
|
|
2555
2580
|
// Native
|
|
2556
2581
|
function(t, r) {
|
|
2557
2582
|
return t.codePointAt(r);
|
|
@@ -2565,7 +2590,7 @@ var tt = sn ? (
|
|
|
2565
2590
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2566
2591
|
}
|
|
2567
2592
|
}
|
|
2568
|
-
),
|
|
2593
|
+
), dn = ln ? (
|
|
2569
2594
|
// Native
|
|
2570
2595
|
function(t) {
|
|
2571
2596
|
return t.trimStart();
|
|
@@ -2573,9 +2598,9 @@ var tt = sn ? (
|
|
|
2573
2598
|
) : (
|
|
2574
2599
|
// Ponyfill
|
|
2575
2600
|
function(t) {
|
|
2576
|
-
return t.replace(
|
|
2601
|
+
return t.replace(nn, "");
|
|
2577
2602
|
}
|
|
2578
|
-
),
|
|
2603
|
+
), bn = fn ? (
|
|
2579
2604
|
// Native
|
|
2580
2605
|
function(t) {
|
|
2581
2606
|
return t.trimEnd();
|
|
@@ -2583,32 +2608,32 @@ var tt = sn ? (
|
|
|
2583
2608
|
) : (
|
|
2584
2609
|
// Ponyfill
|
|
2585
2610
|
function(t) {
|
|
2586
|
-
return t.replace(
|
|
2611
|
+
return t.replace(sn, "");
|
|
2587
2612
|
}
|
|
2588
2613
|
);
|
|
2589
|
-
function
|
|
2614
|
+
function Ft(e, t) {
|
|
2590
2615
|
return new RegExp(e, t);
|
|
2591
2616
|
}
|
|
2592
2617
|
var Ue;
|
|
2593
2618
|
if ($e) {
|
|
2594
|
-
var
|
|
2619
|
+
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
2620
|
Ue = function(t, r) {
|
|
2596
2621
|
var n;
|
|
2597
|
-
|
|
2598
|
-
var i =
|
|
2622
|
+
st.lastIndex = r;
|
|
2623
|
+
var i = st.exec(t);
|
|
2599
2624
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2600
2625
|
};
|
|
2601
2626
|
} else
|
|
2602
2627
|
Ue = function(t, r) {
|
|
2603
2628
|
for (var n = []; ; ) {
|
|
2604
|
-
var i =
|
|
2605
|
-
if (i === void 0 ||
|
|
2629
|
+
var i = Gt(t, r);
|
|
2630
|
+
if (i === void 0 || jt(i) || xn(i))
|
|
2606
2631
|
break;
|
|
2607
2632
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2608
2633
|
}
|
|
2609
2634
|
return Re.apply(void 0, n);
|
|
2610
2635
|
};
|
|
2611
|
-
var
|
|
2636
|
+
var gn = (
|
|
2612
2637
|
/** @class */
|
|
2613
2638
|
function() {
|
|
2614
2639
|
function e(t, r) {
|
|
@@ -2632,7 +2657,7 @@ var bn = (
|
|
|
2632
2657
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2633
2658
|
var o = this.clonePosition();
|
|
2634
2659
|
this.bump(), i.push({
|
|
2635
|
-
type:
|
|
2660
|
+
type: x.pound,
|
|
2636
2661
|
location: b(o, this.clonePosition())
|
|
2637
2662
|
});
|
|
2638
2663
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2660,7 +2685,7 @@ var bn = (
|
|
|
2660
2685
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2661
2686
|
return {
|
|
2662
2687
|
val: {
|
|
2663
|
-
type:
|
|
2688
|
+
type: x.literal,
|
|
2664
2689
|
value: "<".concat(i, "/>"),
|
|
2665
2690
|
location: b(n, this.clonePosition())
|
|
2666
2691
|
},
|
|
@@ -2677,7 +2702,7 @@ var bn = (
|
|
|
2677
2702
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2678
2703
|
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2679
2704
|
val: {
|
|
2680
|
-
type:
|
|
2705
|
+
type: x.tag,
|
|
2681
2706
|
value: i,
|
|
2682
2707
|
children: h,
|
|
2683
2708
|
location: b(n, this.clonePosition())
|
|
@@ -2690,7 +2715,7 @@ var bn = (
|
|
|
2690
2715
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2691
2716
|
}, e.prototype.parseTagName = function() {
|
|
2692
2717
|
var t = this.offset();
|
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
|
2718
|
+
for (this.bump(); !this.isEOF() && yn(this.char()); )
|
|
2694
2719
|
this.bump();
|
|
2695
2720
|
return this.message.slice(t, this.offset());
|
|
2696
2721
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2714,12 +2739,12 @@ var bn = (
|
|
|
2714
2739
|
}
|
|
2715
2740
|
var l = b(n, this.clonePosition());
|
|
2716
2741
|
return {
|
|
2717
|
-
val: { type:
|
|
2742
|
+
val: { type: x.literal, value: i, location: l },
|
|
2718
2743
|
err: null
|
|
2719
2744
|
};
|
|
2720
2745
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2721
2746
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2722
|
-
!
|
|
2747
|
+
!_n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2723
2748
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2724
2749
|
if (this.isEOF() || this.char() !== 39)
|
|
2725
2750
|
return null;
|
|
@@ -2774,7 +2799,7 @@ var bn = (
|
|
|
2774
2799
|
case 125:
|
|
2775
2800
|
return this.bump(), {
|
|
2776
2801
|
val: {
|
|
2777
|
-
type:
|
|
2802
|
+
type: x.argument,
|
|
2778
2803
|
// value does not include the opening and closing braces.
|
|
2779
2804
|
value: i,
|
|
2780
2805
|
location: b(n, this.clonePosition())
|
|
@@ -2806,7 +2831,7 @@ var bn = (
|
|
|
2806
2831
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2807
2832
|
if (f.err)
|
|
2808
2833
|
return f;
|
|
2809
|
-
var c =
|
|
2834
|
+
var c = bn(f.val);
|
|
2810
2835
|
if (c.length === 0)
|
|
2811
2836
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2812
2837
|
var p = b(u, this.clonePosition());
|
|
@@ -2816,25 +2841,25 @@ var bn = (
|
|
|
2816
2841
|
if (m.err)
|
|
2817
2842
|
return m;
|
|
2818
2843
|
var g = b(i, this.clonePosition());
|
|
2819
|
-
if (a &&
|
|
2820
|
-
var v =
|
|
2844
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2845
|
+
var v = dn(a.style.slice(2));
|
|
2821
2846
|
if (o === "number") {
|
|
2822
2847
|
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2823
2848
|
return f.err ? f : {
|
|
2824
|
-
val: { type:
|
|
2849
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2825
2850
|
err: null
|
|
2826
2851
|
};
|
|
2827
2852
|
} else {
|
|
2828
2853
|
if (v.length === 0)
|
|
2829
2854
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2830
2855
|
var L = v;
|
|
2831
|
-
this.locale && (L =
|
|
2856
|
+
this.locale && (L = tn(v, this.locale));
|
|
2832
2857
|
var c = {
|
|
2833
2858
|
type: k.dateTime,
|
|
2834
2859
|
pattern: L,
|
|
2835
2860
|
location: a.styleLocation,
|
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2837
|
-
}, A = o === "date" ?
|
|
2861
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(L) : {}
|
|
2862
|
+
}, A = o === "date" ? x.date : x.time;
|
|
2838
2863
|
return {
|
|
2839
2864
|
val: { type: A, value: n, location: g, style: c },
|
|
2840
2865
|
err: null
|
|
@@ -2843,7 +2868,7 @@ var bn = (
|
|
|
2843
2868
|
}
|
|
2844
2869
|
return {
|
|
2845
2870
|
val: {
|
|
2846
|
-
type: o === "number" ?
|
|
2871
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2847
2872
|
value: n,
|
|
2848
2873
|
location: g,
|
|
2849
2874
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2877,17 +2902,17 @@ var bn = (
|
|
|
2877
2902
|
var ie = b(i, this.clonePosition());
|
|
2878
2903
|
return o === "select" ? {
|
|
2879
2904
|
val: {
|
|
2880
|
-
type:
|
|
2905
|
+
type: x.select,
|
|
2881
2906
|
value: n,
|
|
2882
|
-
options:
|
|
2907
|
+
options: it($.val),
|
|
2883
2908
|
location: ie
|
|
2884
2909
|
},
|
|
2885
2910
|
err: null
|
|
2886
2911
|
} : {
|
|
2887
2912
|
val: {
|
|
2888
|
-
type:
|
|
2913
|
+
type: x.plural,
|
|
2889
2914
|
value: n,
|
|
2890
|
-
options:
|
|
2915
|
+
options: it($.val),
|
|
2891
2916
|
offset: T,
|
|
2892
2917
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2893
2918
|
location: ie
|
|
@@ -2938,7 +2963,7 @@ var bn = (
|
|
|
2938
2963
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2939
2964
|
var n = [];
|
|
2940
2965
|
try {
|
|
2941
|
-
n =
|
|
2966
|
+
n = Jr(t);
|
|
2942
2967
|
} catch {
|
|
2943
2968
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2944
2969
|
}
|
|
@@ -2947,7 +2972,7 @@ var bn = (
|
|
|
2947
2972
|
type: k.number,
|
|
2948
2973
|
tokens: n,
|
|
2949
2974
|
location: r,
|
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2975
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2951
2976
|
},
|
|
2952
2977
|
err: null
|
|
2953
2978
|
};
|
|
@@ -2995,7 +3020,7 @@ var bn = (
|
|
|
2995
3020
|
break;
|
|
2996
3021
|
}
|
|
2997
3022
|
var l = b(i, this.clonePosition());
|
|
2998
|
-
return s ? (h *= n,
|
|
3023
|
+
return s ? (h *= n, mn(h) ? { val: h, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2999
3024
|
}, e.prototype.offset = function() {
|
|
3000
3025
|
return this.position.offset;
|
|
3001
3026
|
}, e.prototype.isEOF = function() {
|
|
@@ -3010,7 +3035,7 @@ var bn = (
|
|
|
3010
3035
|
var t = this.position.offset;
|
|
3011
3036
|
if (t >= this.message.length)
|
|
3012
3037
|
throw Error("out of bound");
|
|
3013
|
-
var r =
|
|
3038
|
+
var r = Gt(this.message, t);
|
|
3014
3039
|
if (r === void 0)
|
|
3015
3040
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3016
3041
|
return r;
|
|
@@ -3029,7 +3054,7 @@ var bn = (
|
|
|
3029
3054
|
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);
|
|
3030
3055
|
}
|
|
3031
3056
|
}, e.prototype.bumpIf = function(t) {
|
|
3032
|
-
if (
|
|
3057
|
+
if (nt(this.message, t, this.offset())) {
|
|
3033
3058
|
for (var r = 0; r < t.length; r++)
|
|
3034
3059
|
this.bump();
|
|
3035
3060
|
return !0;
|
|
@@ -3051,7 +3076,7 @@ var bn = (
|
|
|
3051
3076
|
break;
|
|
3052
3077
|
}
|
|
3053
3078
|
}, e.prototype.bumpSpace = function() {
|
|
3054
|
-
for (; !this.isEOF() &&
|
|
3079
|
+
for (; !this.isEOF() && jt(this.char()); )
|
|
3055
3080
|
this.bump();
|
|
3056
3081
|
}, e.prototype.peek = function() {
|
|
3057
3082
|
if (this.isEOF())
|
|
@@ -3064,29 +3089,30 @@ var bn = (
|
|
|
3064
3089
|
function De(e) {
|
|
3065
3090
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3066
3091
|
}
|
|
3067
|
-
function
|
|
3092
|
+
function _n(e) {
|
|
3068
3093
|
return De(e) || e === 47;
|
|
3069
3094
|
}
|
|
3070
|
-
function
|
|
3095
|
+
function yn(e) {
|
|
3071
3096
|
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;
|
|
3072
3097
|
}
|
|
3073
|
-
function
|
|
3098
|
+
function jt(e) {
|
|
3074
3099
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3075
3100
|
}
|
|
3076
|
-
function
|
|
3101
|
+
function xn(e) {
|
|
3077
3102
|
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;
|
|
3078
3103
|
}
|
|
3079
3104
|
function Ge(e) {
|
|
3080
3105
|
e.forEach(function(t) {
|
|
3081
|
-
if (delete t.location,
|
|
3106
|
+
if (delete t.location, Lt(t) || Nt(t))
|
|
3082
3107
|
for (var r in t.options)
|
|
3083
3108
|
delete t.options[r].location, Ge(t.options[r].value);
|
|
3084
|
-
else
|
|
3109
|
+
else
|
|
3110
|
+
Ct(t) && Mt(t.style) || (Ot(t) || Pt(t)) && Me(t.style) ? delete t.style.location : It(t) && Ge(t.children);
|
|
3085
3111
|
});
|
|
3086
3112
|
}
|
|
3087
3113
|
function En(e, t) {
|
|
3088
3114
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3089
|
-
var r = new
|
|
3115
|
+
var r = new gn(e, t).parse();
|
|
3090
3116
|
if (r.err) {
|
|
3091
3117
|
var n = SyntaxError(d[r.err.kind]);
|
|
3092
3118
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3109,7 +3135,7 @@ var ge = (
|
|
|
3109
3135
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3110
3136
|
}, t;
|
|
3111
3137
|
}(Error)
|
|
3112
|
-
),
|
|
3138
|
+
), ot = (
|
|
3113
3139
|
/** @class */
|
|
3114
3140
|
function(e) {
|
|
3115
3141
|
be(t, e);
|
|
@@ -3118,7 +3144,7 @@ var ge = (
|
|
|
3118
3144
|
}
|
|
3119
3145
|
return t;
|
|
3120
3146
|
}(ge)
|
|
3121
|
-
),
|
|
3147
|
+
), vn = (
|
|
3122
3148
|
/** @class */
|
|
3123
3149
|
function(e) {
|
|
3124
3150
|
be(t, e);
|
|
@@ -3127,7 +3153,7 @@ var ge = (
|
|
|
3127
3153
|
}
|
|
3128
3154
|
return t;
|
|
3129
3155
|
}(ge)
|
|
3130
|
-
),
|
|
3156
|
+
), Hn = (
|
|
3131
3157
|
/** @class */
|
|
3132
3158
|
function(e) {
|
|
3133
3159
|
be(t, e);
|
|
@@ -3136,100 +3162,100 @@ var ge = (
|
|
|
3136
3162
|
}
|
|
3137
3163
|
return t;
|
|
3138
3164
|
}(ge)
|
|
3139
|
-
),
|
|
3165
|
+
), E;
|
|
3140
3166
|
(function(e) {
|
|
3141
3167
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3142
|
-
})(
|
|
3143
|
-
function
|
|
3168
|
+
})(E || (E = {}));
|
|
3169
|
+
function Bn(e) {
|
|
3144
3170
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3145
3171
|
var n = t[t.length - 1];
|
|
3146
|
-
return !n || n.type !==
|
|
3172
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3147
3173
|
}, []);
|
|
3148
3174
|
}
|
|
3149
|
-
function
|
|
3175
|
+
function Tn(e) {
|
|
3150
3176
|
return typeof e == "function";
|
|
3151
3177
|
}
|
|
3152
3178
|
function ue(e, t, r, n, i, s, h) {
|
|
3153
|
-
if (e.length === 1 &&
|
|
3179
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3154
3180
|
return [
|
|
3155
3181
|
{
|
|
3156
|
-
type:
|
|
3182
|
+
type: E.literal,
|
|
3157
3183
|
value: e[0].value
|
|
3158
3184
|
}
|
|
3159
3185
|
];
|
|
3160
3186
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3161
3187
|
var u = a[l];
|
|
3162
|
-
if (
|
|
3188
|
+
if (Ke(u)) {
|
|
3163
3189
|
o.push({
|
|
3164
|
-
type:
|
|
3190
|
+
type: E.literal,
|
|
3165
3191
|
value: u.value
|
|
3166
3192
|
});
|
|
3167
3193
|
continue;
|
|
3168
3194
|
}
|
|
3169
|
-
if (
|
|
3195
|
+
if (zr(u)) {
|
|
3170
3196
|
typeof s == "number" && o.push({
|
|
3171
|
-
type:
|
|
3197
|
+
type: E.literal,
|
|
3172
3198
|
value: r.getNumberFormat(t).format(s)
|
|
3173
3199
|
});
|
|
3174
3200
|
continue;
|
|
3175
3201
|
}
|
|
3176
3202
|
var f = u.value;
|
|
3177
3203
|
if (!(i && f in i))
|
|
3178
|
-
throw new
|
|
3204
|
+
throw new Hn(f, h);
|
|
3179
3205
|
var c = i[f];
|
|
3180
|
-
if (
|
|
3206
|
+
if (Xr(u)) {
|
|
3181
3207
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3182
|
-
type: typeof c == "string" ?
|
|
3208
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3183
3209
|
value: c
|
|
3184
3210
|
});
|
|
3185
3211
|
continue;
|
|
3186
3212
|
}
|
|
3187
|
-
if (
|
|
3213
|
+
if (Ot(u)) {
|
|
3188
3214
|
var p = typeof u.style == "string" ? n.date[u.style] : Me(u.style) ? u.style.parsedOptions : void 0;
|
|
3189
3215
|
o.push({
|
|
3190
|
-
type:
|
|
3216
|
+
type: E.literal,
|
|
3191
3217
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3192
3218
|
});
|
|
3193
3219
|
continue;
|
|
3194
3220
|
}
|
|
3195
|
-
if (
|
|
3221
|
+
if (Pt(u)) {
|
|
3196
3222
|
var p = typeof u.style == "string" ? n.time[u.style] : Me(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3197
3223
|
o.push({
|
|
3198
|
-
type:
|
|
3224
|
+
type: E.literal,
|
|
3199
3225
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3200
3226
|
});
|
|
3201
3227
|
continue;
|
|
3202
3228
|
}
|
|
3203
|
-
if (
|
|
3204
|
-
var p = typeof u.style == "string" ? n.number[u.style] :
|
|
3229
|
+
if (Ct(u)) {
|
|
3230
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Mt(u.style) ? u.style.parsedOptions : void 0;
|
|
3205
3231
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3206
|
-
type:
|
|
3232
|
+
type: E.literal,
|
|
3207
3233
|
value: r.getNumberFormat(t, p).format(c)
|
|
3208
3234
|
});
|
|
3209
3235
|
continue;
|
|
3210
3236
|
}
|
|
3211
|
-
if (
|
|
3237
|
+
if (It(u)) {
|
|
3212
3238
|
var m = u.children, g = u.value, v = i[g];
|
|
3213
|
-
if (!
|
|
3214
|
-
throw new
|
|
3239
|
+
if (!Tn(v))
|
|
3240
|
+
throw new vn(g, "function", h);
|
|
3215
3241
|
var L = ue(m, t, r, n, i, s), A = v(L.map(function(T) {
|
|
3216
3242
|
return T.value;
|
|
3217
3243
|
}));
|
|
3218
3244
|
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
|
|
3219
3245
|
return {
|
|
3220
|
-
type: typeof T == "string" ?
|
|
3246
|
+
type: typeof T == "string" ? E.literal : E.object,
|
|
3221
3247
|
value: T
|
|
3222
3248
|
};
|
|
3223
3249
|
}));
|
|
3224
3250
|
}
|
|
3225
|
-
if (
|
|
3251
|
+
if (Lt(u)) {
|
|
3226
3252
|
var H = u.options[c] || u.options.other;
|
|
3227
3253
|
if (!H)
|
|
3228
|
-
throw new
|
|
3254
|
+
throw new ot(u.value, c, Object.keys(u.options), h);
|
|
3229
3255
|
o.push.apply(o, ue(H.value, t, r, n, i));
|
|
3230
3256
|
continue;
|
|
3231
3257
|
}
|
|
3232
|
-
if (
|
|
3258
|
+
if (Nt(u)) {
|
|
3233
3259
|
var H = u.options["=".concat(c)];
|
|
3234
3260
|
if (!H) {
|
|
3235
3261
|
if (!Intl.PluralRules)
|
|
@@ -3240,21 +3266,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3240
3266
|
H = u.options[N] || u.options.other;
|
|
3241
3267
|
}
|
|
3242
3268
|
if (!H)
|
|
3243
|
-
throw new
|
|
3269
|
+
throw new ot(u.value, c, Object.keys(u.options), h);
|
|
3244
3270
|
o.push.apply(o, ue(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3245
3271
|
continue;
|
|
3246
3272
|
}
|
|
3247
3273
|
}
|
|
3248
|
-
return
|
|
3274
|
+
return Bn(o);
|
|
3249
3275
|
}
|
|
3250
|
-
function
|
|
3276
|
+
function wn(e, t) {
|
|
3251
3277
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3252
3278
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3253
3279
|
}, {})) : e;
|
|
3254
3280
|
}
|
|
3255
|
-
function
|
|
3281
|
+
function Sn(e, t) {
|
|
3256
3282
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3257
|
-
return r[n] =
|
|
3283
|
+
return r[n] = wn(e[n], t[n]), r;
|
|
3258
3284
|
}, y({}, e)) : e;
|
|
3259
3285
|
}
|
|
3260
3286
|
function Ce(e) {
|
|
@@ -3271,7 +3297,7 @@ function Ce(e) {
|
|
|
3271
3297
|
}
|
|
3272
3298
|
};
|
|
3273
3299
|
}
|
|
3274
|
-
function
|
|
3300
|
+
function An(e) {
|
|
3275
3301
|
return e === void 0 && (e = {
|
|
3276
3302
|
number: {},
|
|
3277
3303
|
dateTime: {},
|
|
@@ -3303,7 +3329,7 @@ function Sn(e) {
|
|
|
3303
3329
|
})
|
|
3304
3330
|
};
|
|
3305
3331
|
}
|
|
3306
|
-
var
|
|
3332
|
+
var kt = (
|
|
3307
3333
|
/** @class */
|
|
3308
3334
|
function() {
|
|
3309
3335
|
function e(t, r, n, i) {
|
|
@@ -3318,7 +3344,7 @@ var Ft = (
|
|
|
3318
3344
|
if (a.length === 1)
|
|
3319
3345
|
return a[0].value;
|
|
3320
3346
|
var u = a.reduce(function(f, c) {
|
|
3321
|
-
return !f.length || c.type !==
|
|
3347
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3322
3348
|
}, []);
|
|
3323
3349
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3324
3350
|
}, this.formatToParts = function(l) {
|
|
@@ -3335,13 +3361,13 @@ var Ft = (
|
|
|
3335
3361
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3336
3362
|
var h = i || {};
|
|
3337
3363
|
h.formatters;
|
|
3338
|
-
var o =
|
|
3364
|
+
var o = Ur(h, ["formatters"]);
|
|
3339
3365
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3340
3366
|
} else
|
|
3341
3367
|
this.ast = t;
|
|
3342
3368
|
if (!Array.isArray(this.ast))
|
|
3343
3369
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3344
|
-
this.formats =
|
|
3370
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
|
|
3345
3371
|
}
|
|
3346
3372
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3347
3373
|
get: function() {
|
|
@@ -3415,7 +3441,7 @@ var Ft = (
|
|
|
3415
3441
|
}, e;
|
|
3416
3442
|
}()
|
|
3417
3443
|
);
|
|
3418
|
-
function
|
|
3444
|
+
function Cn(e, t) {
|
|
3419
3445
|
if (t == null)
|
|
3420
3446
|
return;
|
|
3421
3447
|
if (t in e)
|
|
@@ -3436,60 +3462,60 @@ function An(e, t) {
|
|
|
3436
3462
|
n = void 0;
|
|
3437
3463
|
return n;
|
|
3438
3464
|
}
|
|
3439
|
-
const C = {},
|
|
3465
|
+
const C = {}, On = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3440
3466
|
if (t == null)
|
|
3441
3467
|
return;
|
|
3442
3468
|
if (t in C && e in C[t])
|
|
3443
3469
|
return C[t][e];
|
|
3444
3470
|
const r = ne(t);
|
|
3445
3471
|
for (let n = 0; n < r.length; n++) {
|
|
3446
|
-
const i = r[n], s =
|
|
3472
|
+
const i = r[n], s = Ln(i, e);
|
|
3447
3473
|
if (s)
|
|
3448
|
-
return
|
|
3474
|
+
return On(e, t, s);
|
|
3449
3475
|
}
|
|
3450
3476
|
};
|
|
3451
|
-
let
|
|
3477
|
+
let We;
|
|
3452
3478
|
const re = de({});
|
|
3453
|
-
function
|
|
3454
|
-
return
|
|
3479
|
+
function Pn(e) {
|
|
3480
|
+
return We[e] || null;
|
|
3455
3481
|
}
|
|
3456
|
-
function
|
|
3457
|
-
return e in
|
|
3482
|
+
function Xt(e) {
|
|
3483
|
+
return e in We;
|
|
3458
3484
|
}
|
|
3459
|
-
function
|
|
3460
|
-
if (!
|
|
3485
|
+
function Ln(e, t) {
|
|
3486
|
+
if (!Xt(e))
|
|
3461
3487
|
return null;
|
|
3462
|
-
const r =
|
|
3463
|
-
return
|
|
3488
|
+
const r = Pn(e);
|
|
3489
|
+
return Cn(r, t);
|
|
3464
3490
|
}
|
|
3465
|
-
function
|
|
3491
|
+
function Nn(e) {
|
|
3466
3492
|
if (e == null)
|
|
3467
3493
|
return;
|
|
3468
3494
|
const t = ne(e);
|
|
3469
3495
|
for (let r = 0; r < t.length; r++) {
|
|
3470
3496
|
const n = t[r];
|
|
3471
|
-
if (
|
|
3497
|
+
if (Xt(n))
|
|
3472
3498
|
return n;
|
|
3473
3499
|
}
|
|
3474
3500
|
}
|
|
3475
|
-
function
|
|
3476
|
-
delete C[e], re.update((r) => (r[e] =
|
|
3501
|
+
function zt(e, ...t) {
|
|
3502
|
+
delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3477
3503
|
}
|
|
3478
|
-
|
|
3504
|
+
W(
|
|
3479
3505
|
[re],
|
|
3480
3506
|
([e]) => Object.keys(e)
|
|
3481
3507
|
);
|
|
3482
|
-
re.subscribe((e) =>
|
|
3508
|
+
re.subscribe((e) => We = e);
|
|
3483
3509
|
const le = {};
|
|
3484
|
-
function
|
|
3510
|
+
function In(e, t) {
|
|
3485
3511
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3486
3512
|
}
|
|
3487
|
-
function
|
|
3513
|
+
function Wt(e) {
|
|
3488
3514
|
return le[e];
|
|
3489
3515
|
}
|
|
3490
|
-
function
|
|
3516
|
+
function Mn(e) {
|
|
3491
3517
|
return ne(e).map((t) => {
|
|
3492
|
-
const r =
|
|
3518
|
+
const r = Wt(t);
|
|
3493
3519
|
return [t, r ? [...r] : []];
|
|
3494
3520
|
}).filter(([, t]) => t.length > 0);
|
|
3495
3521
|
}
|
|
@@ -3497,40 +3523,40 @@ function ce(e) {
|
|
|
3497
3523
|
return e == null ? !1 : ne(e).some(
|
|
3498
3524
|
(t) => {
|
|
3499
3525
|
var r;
|
|
3500
|
-
return (r =
|
|
3526
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3501
3527
|
}
|
|
3502
3528
|
);
|
|
3503
3529
|
}
|
|
3504
|
-
function
|
|
3530
|
+
function $n(e, t) {
|
|
3505
3531
|
return Promise.all(
|
|
3506
|
-
t.map((n) => (
|
|
3507
|
-
).then((n) =>
|
|
3532
|
+
t.map((n) => (In(e, n), n().then((i) => i.default || i)))
|
|
3533
|
+
).then((n) => zt(e, ...n));
|
|
3508
3534
|
}
|
|
3509
3535
|
const Q = {};
|
|
3510
|
-
function
|
|
3536
|
+
function Zt(e) {
|
|
3511
3537
|
if (!ce(e))
|
|
3512
3538
|
return e in Q ? Q[e] : Promise.resolve();
|
|
3513
|
-
const t =
|
|
3539
|
+
const t = Mn(e);
|
|
3514
3540
|
return Q[e] = Promise.all(
|
|
3515
3541
|
t.map(
|
|
3516
|
-
([r, n]) =>
|
|
3542
|
+
([r, n]) => $n(r, n)
|
|
3517
3543
|
)
|
|
3518
3544
|
).then(() => {
|
|
3519
3545
|
if (ce(e))
|
|
3520
|
-
return
|
|
3546
|
+
return Zt(e);
|
|
3521
3547
|
delete Q[e];
|
|
3522
3548
|
}), Q[e];
|
|
3523
3549
|
}
|
|
3524
|
-
var
|
|
3550
|
+
var at = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Dn = (e, t) => {
|
|
3525
3551
|
var r = {};
|
|
3526
3552
|
for (var n in e)
|
|
3527
|
-
|
|
3528
|
-
if (e != null &&
|
|
3529
|
-
for (var n of
|
|
3530
|
-
t.indexOf(n) < 0 &&
|
|
3553
|
+
Rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3554
|
+
if (e != null && at)
|
|
3555
|
+
for (var n of at(e))
|
|
3556
|
+
t.indexOf(n) < 0 && Un.call(e, n) && (r[n] = e[n]);
|
|
3531
3557
|
return r;
|
|
3532
3558
|
};
|
|
3533
|
-
const
|
|
3559
|
+
const Gn = {
|
|
3534
3560
|
number: {
|
|
3535
3561
|
scientific: { notation: "scientific" },
|
|
3536
3562
|
engineering: { notation: "engineering" },
|
|
@@ -3560,7 +3586,7 @@ const Dn = {
|
|
|
3560
3586
|
}
|
|
3561
3587
|
}
|
|
3562
3588
|
};
|
|
3563
|
-
function
|
|
3589
|
+
function Fn({ locale: e, id: t }) {
|
|
3564
3590
|
console.warn(
|
|
3565
3591
|
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3566
3592
|
e
|
|
@@ -3569,49 +3595,49 @@ function Gn({ locale: e, id: t }) {
|
|
|
3569
3595
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3570
3596
|
);
|
|
3571
3597
|
}
|
|
3572
|
-
const
|
|
3598
|
+
const jn = {
|
|
3573
3599
|
fallbackLocale: null,
|
|
3574
3600
|
loadingDelay: 200,
|
|
3575
|
-
formats:
|
|
3601
|
+
formats: Gn,
|
|
3576
3602
|
warnOnMissingMessages: !0,
|
|
3577
3603
|
handleMissingMessage: void 0,
|
|
3578
3604
|
ignoreTag: !0
|
|
3579
|
-
}, J =
|
|
3605
|
+
}, J = jn;
|
|
3580
3606
|
function X() {
|
|
3581
3607
|
return J;
|
|
3582
3608
|
}
|
|
3583
|
-
function
|
|
3584
|
-
const t = e, { formats: r } = t, n =
|
|
3609
|
+
function kn(e) {
|
|
3610
|
+
const t = e, { formats: r } = t, n = Dn(t, ["formats"]);
|
|
3585
3611
|
let i = e.fallbackLocale;
|
|
3586
3612
|
if (e.initialLocale)
|
|
3587
3613
|
try {
|
|
3588
|
-
|
|
3614
|
+
kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3589
3615
|
} catch {
|
|
3590
3616
|
console.warn(
|
|
3591
3617
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3592
3618
|
);
|
|
3593
3619
|
}
|
|
3594
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3620
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Fn : console.warn(
|
|
3595
3621
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3596
3622
|
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
|
|
3597
3623
|
}
|
|
3598
3624
|
const Oe = de(!1);
|
|
3599
|
-
var
|
|
3625
|
+
var Vn = Object.defineProperty, Xn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
|
|
3600
3626
|
for (var r in t || (t = {}))
|
|
3601
|
-
Wn.call(t, r) &&
|
|
3602
|
-
if (
|
|
3603
|
-
for (var r of
|
|
3604
|
-
|
|
3627
|
+
Wn.call(t, r) && ut(e, r, t[r]);
|
|
3628
|
+
if (ht)
|
|
3629
|
+
for (var r of ht(t))
|
|
3630
|
+
Zn.call(t, r) && ut(e, r, t[r]);
|
|
3605
3631
|
return e;
|
|
3606
|
-
},
|
|
3632
|
+
}, Jn = (e, t) => Xn(e, zn(t));
|
|
3607
3633
|
let Fe;
|
|
3608
3634
|
const me = de(null);
|
|
3609
|
-
function
|
|
3635
|
+
function lt(e) {
|
|
3610
3636
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3611
3637
|
}
|
|
3612
3638
|
function ne(e, t = X().fallbackLocale) {
|
|
3613
|
-
const r =
|
|
3614
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3639
|
+
const r = lt(e);
|
|
3640
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3615
3641
|
}
|
|
3616
3642
|
function P() {
|
|
3617
3643
|
return Fe ?? void 0;
|
|
@@ -3619,22 +3645,22 @@ function P() {
|
|
|
3619
3645
|
me.subscribe((e) => {
|
|
3620
3646
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3621
3647
|
});
|
|
3622
|
-
const
|
|
3623
|
-
if (e &&
|
|
3648
|
+
const qn = (e) => {
|
|
3649
|
+
if (e && Nn(e) && ce(e)) {
|
|
3624
3650
|
const { loadingDelay: t } = X();
|
|
3625
3651
|
let r;
|
|
3626
3652
|
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3627
3653
|
() => Oe.set(!0),
|
|
3628
3654
|
t
|
|
3629
|
-
) : Oe.set(!0),
|
|
3655
|
+
) : Oe.set(!0), Zt(e).then(() => {
|
|
3630
3656
|
me.set(e);
|
|
3631
3657
|
}).finally(() => {
|
|
3632
3658
|
clearTimeout(r), Oe.set(!1);
|
|
3633
3659
|
});
|
|
3634
3660
|
}
|
|
3635
3661
|
return me.set(e);
|
|
3636
|
-
}, M = Qn(
|
|
3637
|
-
set:
|
|
3662
|
+
}, M = Jn(Qn({}, me), {
|
|
3663
|
+
set: qn
|
|
3638
3664
|
}), _e = (e) => {
|
|
3639
3665
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3640
3666
|
return (n) => {
|
|
@@ -3642,20 +3668,20 @@ const Jn = (e) => {
|
|
|
3642
3668
|
return i in t ? t[i] : t[i] = e(n);
|
|
3643
3669
|
};
|
|
3644
3670
|
};
|
|
3645
|
-
var
|
|
3671
|
+
var Yn = Object.defineProperty, pe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3646
3672
|
for (var r in t || (t = {}))
|
|
3647
|
-
|
|
3673
|
+
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3648
3674
|
if (pe)
|
|
3649
3675
|
for (var r of pe(t))
|
|
3650
|
-
|
|
3676
|
+
Jt.call(t, r) && ft(e, r, t[r]);
|
|
3651
3677
|
return e;
|
|
3652
3678
|
}, Z = (e, t) => {
|
|
3653
3679
|
var r = {};
|
|
3654
3680
|
for (var n in e)
|
|
3655
|
-
|
|
3681
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3656
3682
|
if (e != null && pe)
|
|
3657
3683
|
for (var n of pe(e))
|
|
3658
|
-
t.indexOf(n) < 0 &&
|
|
3684
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3659
3685
|
return r;
|
|
3660
3686
|
};
|
|
3661
3687
|
const K = (e, t) => {
|
|
@@ -3663,21 +3689,21 @@ const K = (e, t) => {
|
|
|
3663
3689
|
if (e in r && t in r[e])
|
|
3664
3690
|
return r[e][t];
|
|
3665
3691
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3666
|
-
},
|
|
3692
|
+
}, Kn = _e(
|
|
3667
3693
|
(e) => {
|
|
3668
3694
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3669
3695
|
if (r == null)
|
|
3670
3696
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3671
3697
|
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3672
3698
|
}
|
|
3673
|
-
),
|
|
3699
|
+
), ei = _e(
|
|
3674
3700
|
(e) => {
|
|
3675
3701
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3676
3702
|
if (r == null)
|
|
3677
3703
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3678
3704
|
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3679
3705
|
}
|
|
3680
|
-
),
|
|
3706
|
+
), ti = _e(
|
|
3681
3707
|
(e) => {
|
|
3682
3708
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3683
3709
|
if (r == null)
|
|
@@ -3686,33 +3712,33 @@ const K = (e, t) => {
|
|
|
3686
3712
|
);
|
|
3687
3713
|
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3688
3714
|
}
|
|
3689
|
-
),
|
|
3715
|
+
), ri = (e = {}) => {
|
|
3690
3716
|
var t = e, {
|
|
3691
3717
|
locale: r = P()
|
|
3692
3718
|
} = t, n = Z(t, [
|
|
3693
3719
|
"locale"
|
|
3694
3720
|
]);
|
|
3695
|
-
return
|
|
3696
|
-
},
|
|
3721
|
+
return Kn(Ze({ locale: r }, n));
|
|
3722
|
+
}, ni = (e = {}) => {
|
|
3697
3723
|
var t = e, {
|
|
3698
3724
|
locale: r = P()
|
|
3699
3725
|
} = t, n = Z(t, [
|
|
3700
3726
|
"locale"
|
|
3701
3727
|
]);
|
|
3702
|
-
return
|
|
3703
|
-
},
|
|
3728
|
+
return ei(Ze({ locale: r }, n));
|
|
3729
|
+
}, ii = (e = {}) => {
|
|
3704
3730
|
var t = e, {
|
|
3705
3731
|
locale: r = P()
|
|
3706
3732
|
} = t, n = Z(t, [
|
|
3707
3733
|
"locale"
|
|
3708
3734
|
]);
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3735
|
+
return ti(Ze({ locale: r }, n));
|
|
3736
|
+
}, si = _e(
|
|
3711
3737
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3712
|
-
(e, t = P()) => new
|
|
3738
|
+
(e, t = P()) => new kt(e, t, X().formats, {
|
|
3713
3739
|
ignoreTag: X().ignoreTag
|
|
3714
3740
|
})
|
|
3715
|
-
),
|
|
3741
|
+
), oi = (e, t = {}) => {
|
|
3716
3742
|
var r, n, i, s;
|
|
3717
3743
|
let h = t;
|
|
3718
3744
|
typeof e == "object" && (h = e, e = h.id);
|
|
@@ -3725,7 +3751,7 @@ const K = (e, t) => {
|
|
|
3725
3751
|
throw new Error(
|
|
3726
3752
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3727
3753
|
);
|
|
3728
|
-
let u =
|
|
3754
|
+
let u = Vt(e, l);
|
|
3729
3755
|
if (!u)
|
|
3730
3756
|
u = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3731
3757
|
else if (typeof u != "string")
|
|
@@ -3736,7 +3762,7 @@ const K = (e, t) => {
|
|
|
3736
3762
|
return u;
|
|
3737
3763
|
let f = u;
|
|
3738
3764
|
try {
|
|
3739
|
-
f =
|
|
3765
|
+
f = si(u, l).format(o);
|
|
3740
3766
|
} catch (c) {
|
|
3741
3767
|
c instanceof Error && console.warn(
|
|
3742
3768
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3744,20 +3770,20 @@ const K = (e, t) => {
|
|
|
3744
3770
|
);
|
|
3745
3771
|
}
|
|
3746
3772
|
return f;
|
|
3747
|
-
},
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3754
|
-
}
|
|
3755
|
-
function
|
|
3756
|
-
|
|
3773
|
+
}, ai = (e, t) => ii(t).format(e), hi = (e, t) => ni(t).format(e), ui = (e, t) => ri(t).format(e), li = (e, t = P()) => Vt(e, t), fi = W([M, re], () => oi);
|
|
3774
|
+
W([M], () => ai);
|
|
3775
|
+
W([M], () => hi);
|
|
3776
|
+
W([M], () => ui);
|
|
3777
|
+
W([M, re], () => li);
|
|
3778
|
+
function ct(e, t) {
|
|
3779
|
+
zt(e, t);
|
|
3780
|
+
}
|
|
3781
|
+
function ci(e) {
|
|
3782
|
+
kn({
|
|
3757
3783
|
fallbackLocale: "en"
|
|
3758
3784
|
}), M.set(e);
|
|
3759
3785
|
}
|
|
3760
|
-
const
|
|
3786
|
+
const mt = {
|
|
3761
3787
|
en: {
|
|
3762
3788
|
header: {
|
|
3763
3789
|
general: "Cashier",
|
|
@@ -3780,18 +3806,18 @@ const ft = {
|
|
|
3780
3806
|
}
|
|
3781
3807
|
}
|
|
3782
3808
|
};
|
|
3783
|
-
function
|
|
3784
|
-
|
|
3809
|
+
function mi(e) {
|
|
3810
|
+
nr(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}");
|
|
3785
3811
|
}
|
|
3786
|
-
const
|
|
3787
|
-
function
|
|
3812
|
+
const pi = (e) => ({}), pt = (e) => ({}), di = (e) => ({}), dt = (e) => ({}), bi = (e) => ({}), bt = (e) => ({});
|
|
3813
|
+
function gt(e) {
|
|
3788
3814
|
let t, r, n;
|
|
3789
3815
|
return {
|
|
3790
3816
|
c() {
|
|
3791
|
-
t =
|
|
3817
|
+
t = z("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>', te(t, "class", "CashierHeaderLeftButton");
|
|
3792
3818
|
},
|
|
3793
3819
|
m(i, s) {
|
|
3794
|
-
I(i, t, s), r || (n =
|
|
3820
|
+
I(i, t, s), r || (n = Bt(
|
|
3795
3821
|
t,
|
|
3796
3822
|
"click",
|
|
3797
3823
|
/*back*/
|
|
@@ -3804,28 +3830,28 @@ function dt(e) {
|
|
|
3804
3830
|
}
|
|
3805
3831
|
};
|
|
3806
3832
|
}
|
|
3807
|
-
function
|
|
3833
|
+
function gi(e) {
|
|
3808
3834
|
let t, r = (
|
|
3809
3835
|
/*backButton*/
|
|
3810
|
-
e[1] &&
|
|
3836
|
+
e[1] && gt(e)
|
|
3811
3837
|
);
|
|
3812
3838
|
return {
|
|
3813
3839
|
c() {
|
|
3814
|
-
r && r.c(), t =
|
|
3840
|
+
r && r.c(), t = Ht();
|
|
3815
3841
|
},
|
|
3816
3842
|
m(n, i) {
|
|
3817
3843
|
r && r.m(n, i), I(n, t, i);
|
|
3818
3844
|
},
|
|
3819
3845
|
p(n, i) {
|
|
3820
3846
|
/*backButton*/
|
|
3821
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3847
|
+
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3822
3848
|
},
|
|
3823
3849
|
d(n) {
|
|
3824
3850
|
n && O(t), r && r.d(n);
|
|
3825
3851
|
}
|
|
3826
3852
|
};
|
|
3827
3853
|
}
|
|
3828
|
-
function
|
|
3854
|
+
function _i(e) {
|
|
3829
3855
|
let t, r = (
|
|
3830
3856
|
/*$_*/
|
|
3831
3857
|
e[4](
|
|
@@ -3835,7 +3861,7 @@ function gi(e) {
|
|
|
3835
3861
|
), n;
|
|
3836
3862
|
return {
|
|
3837
3863
|
c() {
|
|
3838
|
-
t =
|
|
3864
|
+
t = z("span"), n = ke(r), te(t, "class", "CashierHeaderTitle");
|
|
3839
3865
|
},
|
|
3840
3866
|
m(i, s) {
|
|
3841
3867
|
I(i, t, s), fe(t, n);
|
|
@@ -3846,21 +3872,21 @@ function gi(e) {
|
|
|
3846
3872
|
i[4](
|
|
3847
3873
|
/*titleText*/
|
|
3848
3874
|
i[2]
|
|
3849
|
-
) + "") &&
|
|
3875
|
+
) + "") && ar(n, r);
|
|
3850
3876
|
},
|
|
3851
3877
|
d(i) {
|
|
3852
3878
|
i && O(t);
|
|
3853
3879
|
}
|
|
3854
3880
|
};
|
|
3855
3881
|
}
|
|
3856
|
-
function
|
|
3882
|
+
function _t(e) {
|
|
3857
3883
|
let t, r, n;
|
|
3858
3884
|
return {
|
|
3859
3885
|
c() {
|
|
3860
|
-
t =
|
|
3886
|
+
t = z("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>', te(t, "class", "CashierHeaderRightButton");
|
|
3861
3887
|
},
|
|
3862
3888
|
m(i, s) {
|
|
3863
|
-
I(i, t, s), r || (n =
|
|
3889
|
+
I(i, t, s), r || (n = Bt(
|
|
3864
3890
|
t,
|
|
3865
3891
|
"click",
|
|
3866
3892
|
/*close*/
|
|
@@ -3873,28 +3899,28 @@ function bt(e) {
|
|
|
3873
3899
|
}
|
|
3874
3900
|
};
|
|
3875
3901
|
}
|
|
3876
|
-
function
|
|
3902
|
+
function yi(e) {
|
|
3877
3903
|
let t, r = (
|
|
3878
3904
|
/*closeButton*/
|
|
3879
|
-
e[3] &&
|
|
3905
|
+
e[3] && _t(e)
|
|
3880
3906
|
);
|
|
3881
3907
|
return {
|
|
3882
3908
|
c() {
|
|
3883
|
-
r && r.c(), t =
|
|
3909
|
+
r && r.c(), t = Ht();
|
|
3884
3910
|
},
|
|
3885
3911
|
m(n, i) {
|
|
3886
3912
|
r && r.m(n, i), I(n, t, i);
|
|
3887
3913
|
},
|
|
3888
3914
|
p(n, i) {
|
|
3889
3915
|
/*closeButton*/
|
|
3890
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3916
|
+
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3891
3917
|
},
|
|
3892
3918
|
d(n) {
|
|
3893
3919
|
n && O(t), r && r.d(n);
|
|
3894
3920
|
}
|
|
3895
3921
|
};
|
|
3896
3922
|
}
|
|
3897
|
-
function
|
|
3923
|
+
function xi(e) {
|
|
3898
3924
|
let t, r, n, i;
|
|
3899
3925
|
const s = (
|
|
3900
3926
|
/*#slots*/
|
|
@@ -3904,8 +3930,8 @@ function yi(e) {
|
|
|
3904
3930
|
e,
|
|
3905
3931
|
/*$$scope*/
|
|
3906
3932
|
e[14],
|
|
3907
|
-
|
|
3908
|
-
), o = h ||
|
|
3933
|
+
bt
|
|
3934
|
+
), o = h || gi(e), l = (
|
|
3909
3935
|
/*#slots*/
|
|
3910
3936
|
e[15].title
|
|
3911
3937
|
), a = ye(
|
|
@@ -3913,8 +3939,8 @@ function yi(e) {
|
|
|
3913
3939
|
e,
|
|
3914
3940
|
/*$$scope*/
|
|
3915
3941
|
e[14],
|
|
3916
|
-
|
|
3917
|
-
), u = a ||
|
|
3942
|
+
dt
|
|
3943
|
+
), u = a || _i(e), f = (
|
|
3918
3944
|
/*#slots*/
|
|
3919
3945
|
e[15].rightButton
|
|
3920
3946
|
), c = ye(
|
|
@@ -3922,72 +3948,72 @@ function yi(e) {
|
|
|
3922
3948
|
e,
|
|
3923
3949
|
/*$$scope*/
|
|
3924
3950
|
e[14],
|
|
3925
|
-
|
|
3926
|
-
), p = c ||
|
|
3951
|
+
pt
|
|
3952
|
+
), p = c || yi(e);
|
|
3927
3953
|
return {
|
|
3928
3954
|
c() {
|
|
3929
|
-
t =
|
|
3955
|
+
t = z("div"), o && o.c(), r = Je(), u && u.c(), n = Je(), p && p.c(), te(t, "class", "CashierHeader");
|
|
3930
3956
|
},
|
|
3931
3957
|
m(m, g) {
|
|
3932
3958
|
I(m, t, g), o && o.m(t, null), fe(t, r), u && u.m(t, null), fe(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3933
3959
|
},
|
|
3934
3960
|
p(m, [g]) {
|
|
3935
3961
|
h ? h.p && (!i || g & /*$$scope*/
|
|
3936
|
-
16384) &&
|
|
3962
|
+
16384) && Ee(
|
|
3937
3963
|
h,
|
|
3938
3964
|
s,
|
|
3939
3965
|
m,
|
|
3940
3966
|
/*$$scope*/
|
|
3941
3967
|
m[14],
|
|
3942
|
-
i ?
|
|
3968
|
+
i ? xe(
|
|
3943
3969
|
s,
|
|
3944
3970
|
/*$$scope*/
|
|
3945
3971
|
m[14],
|
|
3946
3972
|
g,
|
|
3947
|
-
|
|
3973
|
+
bi
|
|
3948
3974
|
) : ve(
|
|
3949
3975
|
/*$$scope*/
|
|
3950
3976
|
m[14]
|
|
3951
3977
|
),
|
|
3952
|
-
|
|
3978
|
+
bt
|
|
3953
3979
|
) : o && o.p && (!i || g & /*backButton*/
|
|
3954
3980
|
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3955
|
-
16384) &&
|
|
3981
|
+
16384) && Ee(
|
|
3956
3982
|
a,
|
|
3957
3983
|
l,
|
|
3958
3984
|
m,
|
|
3959
3985
|
/*$$scope*/
|
|
3960
3986
|
m[14],
|
|
3961
|
-
i ?
|
|
3987
|
+
i ? xe(
|
|
3962
3988
|
l,
|
|
3963
3989
|
/*$$scope*/
|
|
3964
3990
|
m[14],
|
|
3965
3991
|
g,
|
|
3966
|
-
|
|
3992
|
+
di
|
|
3967
3993
|
) : ve(
|
|
3968
3994
|
/*$$scope*/
|
|
3969
3995
|
m[14]
|
|
3970
3996
|
),
|
|
3971
|
-
|
|
3997
|
+
dt
|
|
3972
3998
|
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
3973
3999
|
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
3974
|
-
16384) &&
|
|
4000
|
+
16384) && Ee(
|
|
3975
4001
|
c,
|
|
3976
4002
|
f,
|
|
3977
4003
|
m,
|
|
3978
4004
|
/*$$scope*/
|
|
3979
4005
|
m[14],
|
|
3980
|
-
i ?
|
|
4006
|
+
i ? xe(
|
|
3981
4007
|
f,
|
|
3982
4008
|
/*$$scope*/
|
|
3983
4009
|
m[14],
|
|
3984
4010
|
g,
|
|
3985
|
-
|
|
4011
|
+
pi
|
|
3986
4012
|
) : ve(
|
|
3987
4013
|
/*$$scope*/
|
|
3988
4014
|
m[14]
|
|
3989
4015
|
),
|
|
3990
|
-
|
|
4016
|
+
pt
|
|
3991
4017
|
) : p && p.p && (!i || g & /*closeButton*/
|
|
3992
4018
|
8) && p.p(m, i ? g : -1);
|
|
3993
4019
|
},
|
|
@@ -4004,20 +4030,20 @@ function yi(e) {
|
|
|
4004
4030
|
}
|
|
4005
4031
|
function Ei(e, t, r) {
|
|
4006
4032
|
let n;
|
|
4007
|
-
|
|
4033
|
+
rr(e, fi, (_) => r(4, n = _));
|
|
4008
4034
|
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4009
4035
|
const L = () => {
|
|
4010
4036
|
let _ = l;
|
|
4011
4037
|
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4012
4038
|
Object.keys(w).forEach((R) => {
|
|
4013
|
-
|
|
4039
|
+
ct(R, w[R]);
|
|
4014
4040
|
});
|
|
4015
4041
|
}).catch((w) => {
|
|
4016
4042
|
console.log(w);
|
|
4017
4043
|
});
|
|
4018
4044
|
};
|
|
4019
|
-
Object.keys(
|
|
4020
|
-
|
|
4045
|
+
Object.keys(mt).forEach((_) => {
|
|
4046
|
+
ct(_, mt[_]);
|
|
4021
4047
|
});
|
|
4022
4048
|
const A = () => {
|
|
4023
4049
|
let _ = document.createElement("style");
|
|
@@ -4033,19 +4059,19 @@ function Ei(e, t, r) {
|
|
|
4033
4059
|
);
|
|
4034
4060
|
});
|
|
4035
4061
|
}, N = () => {
|
|
4036
|
-
|
|
4062
|
+
ci(f);
|
|
4037
4063
|
}, T = () => {
|
|
4038
4064
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4039
4065
|
}, $ = () => {
|
|
4040
4066
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4041
4067
|
}, ie = () => {
|
|
4042
4068
|
r(1, m = !!a && a !== "false");
|
|
4043
|
-
},
|
|
4069
|
+
}, qt = () => {
|
|
4044
4070
|
r(3, v = !!c && c !== "false");
|
|
4045
|
-
},
|
|
4071
|
+
}, Yt = () => {
|
|
4046
4072
|
r(2, g = u || "header.general");
|
|
4047
4073
|
};
|
|
4048
|
-
function
|
|
4074
|
+
function Kt(_) {
|
|
4049
4075
|
Pe[_ ? "unshift" : "push"](() => {
|
|
4050
4076
|
p = _, r(0, p);
|
|
4051
4077
|
});
|
|
@@ -4055,12 +4081,12 @@ function Ei(e, t, r) {
|
|
|
4055
4081
|
}, e.$$.update = () => {
|
|
4056
4082
|
e.$$.dirty & /*lang*/
|
|
4057
4083
|
4096 && f && N(), e.$$.dirty & /*lang, title*/
|
|
4058
|
-
6144 && f && u &&
|
|
4084
|
+
6144 && f && u && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4059
4085
|
129 && h && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4060
4086
|
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4061
4087
|
4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
|
|
4062
4088
|
1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
|
|
4063
|
-
8192 && c &&
|
|
4089
|
+
8192 && c && qt();
|
|
4064
4090
|
}, [
|
|
4065
4091
|
p,
|
|
4066
4092
|
m,
|
|
@@ -4078,17 +4104,17 @@ function Ei(e, t, r) {
|
|
|
4078
4104
|
c,
|
|
4079
4105
|
s,
|
|
4080
4106
|
i,
|
|
4081
|
-
|
|
4107
|
+
Kt
|
|
4082
4108
|
];
|
|
4083
4109
|
}
|
|
4084
|
-
class
|
|
4110
|
+
class vi extends yr {
|
|
4085
4111
|
constructor(t) {
|
|
4086
|
-
super(),
|
|
4112
|
+
super(), gr(
|
|
4087
4113
|
this,
|
|
4088
4114
|
t,
|
|
4089
4115
|
Ei,
|
|
4090
|
-
|
|
4091
|
-
|
|
4116
|
+
xi,
|
|
4117
|
+
xt,
|
|
4092
4118
|
{
|
|
4093
4119
|
clientstyling: 7,
|
|
4094
4120
|
clientstylingurl: 8,
|
|
@@ -4098,7 +4124,7 @@ class xi extends gr {
|
|
|
4098
4124
|
lang: 12,
|
|
4099
4125
|
showclosebutton: 13
|
|
4100
4126
|
},
|
|
4101
|
-
|
|
4127
|
+
mi
|
|
4102
4128
|
);
|
|
4103
4129
|
}
|
|
4104
4130
|
get clientstyling() {
|
|
@@ -4144,7 +4170,7 @@ class xi extends gr {
|
|
|
4144
4170
|
this.$$set({ showclosebutton: t }), S();
|
|
4145
4171
|
}
|
|
4146
4172
|
}
|
|
4147
|
-
|
|
4173
|
+
_r(vi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4148
4174
|
export {
|
|
4149
|
-
|
|
4175
|
+
vi as C
|
|
4150
4176
|
};
|