@everymatrix/cashier-header 1.67.3 → 1.69.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-DiPZ6EKD.js → CashierHeader-BKLN40IC.js} +866 -864
- package/components/CashierHeader-D70465F5.cjs +5 -0
- package/components/{CashierHeader-D8Fgipc2.js → CashierHeader-DrPNQb80.js} +747 -745
- 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-DuMLT5dI.cjs +0 -18
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var or = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var ur = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
hr.call(t, r) && ve(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => ar(e, ur(t));
|
|
13
|
+
var B = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,25 +37,25 @@ function lr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Tt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function re(e) {
|
|
47
|
+
e.forEach(Tt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function We(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function wt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function cr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function St(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const n of t)
|
|
61
61
|
n(void 0);
|
|
@@ -64,40 +64,40 @@ function wt(e, ...t) {
|
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function mr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(St(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function He(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = At(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
76
|
+
function At(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Be(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
81
81
|
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
83
83
|
return i;
|
|
84
84
|
if (typeof i == "object") {
|
|
85
|
-
const s = [],
|
|
86
|
-
for (let
|
|
87
|
-
s[
|
|
85
|
+
const s = [], a = Math.max(t.dirty.length, i.length);
|
|
86
|
+
for (let o = 0; o < a; o += 1)
|
|
87
|
+
s[o] = t.dirty[o] | i[o];
|
|
88
88
|
return s;
|
|
89
89
|
}
|
|
90
90
|
return t.dirty | i;
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Te(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const
|
|
97
|
-
e.p(
|
|
96
|
+
const a = At(t, r, n, s);
|
|
97
|
+
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function we(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
@@ -106,14 +106,14 @@ function Be(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function me(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function pr(e, t, r) {
|
|
113
113
|
const n = dr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
|
-
const i =
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
115
|
+
const i = Z("style");
|
|
116
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function dr(e) {
|
|
@@ -126,45 +126,45 @@ function dr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function br(e, t) {
|
|
130
|
+
return me(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function $(e, t, r) {
|
|
137
137
|
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function L(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Z(e) {
|
|
143
143
|
return document.createElement(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ze(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
148
|
+
function rt() {
|
|
149
|
+
return ze(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
151
|
+
function Ot() {
|
|
152
|
+
return ze("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Pt(e, t, r, n) {
|
|
155
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ne(e, t, r) {
|
|
158
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function gr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function _r(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function yr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
@@ -173,89 +173,89 @@ function _r(e) {
|
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
176
|
+
let Ze;
|
|
177
|
+
function K(e) {
|
|
178
|
+
Ze = e;
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
let
|
|
182
|
-
const
|
|
183
|
-
let
|
|
180
|
+
const j = [], Me = [];
|
|
181
|
+
let k = [];
|
|
182
|
+
const nt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
183
|
+
let $e = !1;
|
|
184
184
|
function xr() {
|
|
185
|
-
|
|
185
|
+
$e || ($e = !0, Er.then(O));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function Re(e) {
|
|
188
|
+
k.push(e);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
if (
|
|
190
|
+
const Se = /* @__PURE__ */ new Set();
|
|
191
|
+
let G = 0;
|
|
192
|
+
function O() {
|
|
193
|
+
if (G !== 0)
|
|
194
194
|
return;
|
|
195
|
-
const e =
|
|
195
|
+
const e = Ze;
|
|
196
196
|
do {
|
|
197
197
|
try {
|
|
198
|
-
for (;
|
|
199
|
-
const t =
|
|
200
|
-
|
|
198
|
+
for (; G < j.length; ) {
|
|
199
|
+
const t = j[G];
|
|
200
|
+
G++, K(t), vr(t.$$);
|
|
201
201
|
}
|
|
202
202
|
} catch (t) {
|
|
203
|
-
throw
|
|
203
|
+
throw j.length = 0, G = 0, t;
|
|
204
204
|
}
|
|
205
|
-
for (
|
|
206
|
-
|
|
207
|
-
for (let t = 0; t <
|
|
208
|
-
const r =
|
|
209
|
-
|
|
205
|
+
for (K(null), j.length = 0, G = 0; Me.length; )
|
|
206
|
+
Me.pop()();
|
|
207
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
208
|
+
const r = k[t];
|
|
209
|
+
Se.has(r) || (Se.add(r), r());
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
} while (
|
|
213
|
-
for (;
|
|
214
|
-
|
|
215
|
-
|
|
211
|
+
k.length = 0;
|
|
212
|
+
} while (j.length);
|
|
213
|
+
for (; nt.length; )
|
|
214
|
+
nt.pop()();
|
|
215
|
+
$e = !1, Se.clear(), K(e);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function vr(e) {
|
|
218
218
|
if (e.fragment !== null) {
|
|
219
|
-
e.update(),
|
|
219
|
+
e.update(), re(e.before_update);
|
|
220
220
|
const t = e.dirty;
|
|
221
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
221
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Hr(e) {
|
|
225
225
|
const t = [], r = [];
|
|
226
|
-
|
|
226
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
227
227
|
}
|
|
228
|
-
const
|
|
229
|
-
let
|
|
230
|
-
function
|
|
231
|
-
e && e.i && (
|
|
228
|
+
const ue = /* @__PURE__ */ new Set();
|
|
229
|
+
let Br;
|
|
230
|
+
function he(e, t) {
|
|
231
|
+
e && e.i && (ue.delete(e), e.i(t));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Ae(e, t, r, n) {
|
|
234
234
|
if (e && e.o) {
|
|
235
|
-
if (
|
|
235
|
+
if (ue.has(e))
|
|
236
236
|
return;
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
ue.add(e), Br.c.push(() => {
|
|
238
|
+
ue.delete(e);
|
|
239
239
|
}), e.o(t);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Tr(e, t, r) {
|
|
243
243
|
const { fragment: n, after_update: i } = e.$$;
|
|
244
|
-
n && n.m(t, r),
|
|
245
|
-
const s = e.$$.on_mount.map(
|
|
246
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
247
|
-
}), i.forEach(
|
|
244
|
+
n && n.m(t, r), Re(() => {
|
|
245
|
+
const s = e.$$.on_mount.map(Tt).filter(We);
|
|
246
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
247
|
+
}), i.forEach(Re);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function wr(e, t) {
|
|
250
250
|
const r = e.$$;
|
|
251
|
-
r.fragment !== null && (
|
|
251
|
+
r.fragment !== null && (Hr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
e.$$.dirty[0] === -1 && (
|
|
253
|
+
function Sr(e, t) {
|
|
254
|
+
e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const l =
|
|
258
|
-
|
|
256
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
257
|
+
const l = Ze;
|
|
258
|
+
K(e);
|
|
259
259
|
const u = e.$$ = {
|
|
260
260
|
fragment: null,
|
|
261
261
|
ctx: [],
|
|
@@ -263,7 +263,7 @@ function Sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
263
263
|
props: s,
|
|
264
264
|
update: T,
|
|
265
265
|
not_equal: i,
|
|
266
|
-
bound:
|
|
266
|
+
bound: tt(),
|
|
267
267
|
// lifecycle
|
|
268
268
|
on_mount: [],
|
|
269
269
|
on_destroy: [],
|
|
@@ -272,28 +272,28 @@ function Sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
272
272
|
after_update: [],
|
|
273
273
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
274
274
|
// everything else
|
|
275
|
-
callbacks:
|
|
276
|
-
dirty:
|
|
275
|
+
callbacks: tt(),
|
|
276
|
+
dirty: o,
|
|
277
277
|
skip_bound: !1,
|
|
278
278
|
root: t.target || l.$$.root
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
a && a(u.root);
|
|
281
281
|
let h = !1;
|
|
282
|
-
if (u.ctx = r(e, t.props || {}, (f, c, ...
|
|
283
|
-
const m =
|
|
284
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h &&
|
|
285
|
-
}), u.update(), h = !0,
|
|
282
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
283
|
+
const m = p.length ? p[0] : c;
|
|
284
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Sr(e, f)), c;
|
|
285
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
286
286
|
if (t.hydrate) {
|
|
287
|
-
const f =
|
|
288
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
287
|
+
const f = gr(t.target);
|
|
288
|
+
u.fragment && u.fragment.l(f), f.forEach(L);
|
|
289
289
|
} else
|
|
290
290
|
u.fragment && u.fragment.c();
|
|
291
|
-
t.intro &&
|
|
291
|
+
t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), O();
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
K(l);
|
|
294
294
|
}
|
|
295
|
-
let
|
|
296
|
-
typeof HTMLElement == "function" && (
|
|
295
|
+
let Ct;
|
|
296
|
+
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
297
297
|
constructor(t, r, n) {
|
|
298
298
|
super();
|
|
299
299
|
/** The Svelte component constructor */
|
|
@@ -330,42 +330,42 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
connectedCallback() {
|
|
333
|
-
return
|
|
333
|
+
return et(this, null, function* () {
|
|
334
334
|
if (this.$$cn = !0, !this.$$c) {
|
|
335
335
|
let t = function(s) {
|
|
336
336
|
return () => {
|
|
337
|
-
let
|
|
337
|
+
let a;
|
|
338
338
|
return {
|
|
339
339
|
c: function() {
|
|
340
|
-
|
|
340
|
+
a = Z("slot"), s !== "default" && ne(a, "name", s);
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
343
343
|
* @param {HTMLElement} target
|
|
344
344
|
* @param {HTMLElement} [anchor]
|
|
345
345
|
*/
|
|
346
346
|
m: function(u, h) {
|
|
347
|
-
|
|
347
|
+
$(u, a, h);
|
|
348
348
|
},
|
|
349
349
|
d: function(u) {
|
|
350
|
-
u &&
|
|
350
|
+
u && L(a);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
355
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
356
356
|
return;
|
|
357
|
-
const r = {}, n =
|
|
357
|
+
const r = {}, n = yr(this);
|
|
358
358
|
for (const s of this.$$s)
|
|
359
359
|
s in n && (r[s] = [t(s)]);
|
|
360
360
|
for (const s of this.attributes) {
|
|
361
|
-
const
|
|
362
|
-
|
|
361
|
+
const a = this.$$g_p(s.name);
|
|
362
|
+
a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
|
|
363
363
|
}
|
|
364
364
|
for (const s in this.$$p_d)
|
|
365
365
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
366
366
|
this.$$c = new this.$$ctor({
|
|
367
367
|
target: this.shadowRoot || this,
|
|
368
|
-
props: Ye(
|
|
368
|
+
props: Ke(Ye({}, this.$$d), {
|
|
369
369
|
$$slots: r,
|
|
370
370
|
$$scope: {
|
|
371
371
|
ctx: []
|
|
@@ -376,21 +376,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
376
376
|
this.$$r = !0;
|
|
377
377
|
for (const s in this.$$p_d)
|
|
378
378
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
379
|
-
const
|
|
379
|
+
const a = le(
|
|
380
380
|
s,
|
|
381
381
|
this.$$d[s],
|
|
382
382
|
this.$$p_d,
|
|
383
383
|
"toAttribute"
|
|
384
384
|
);
|
|
385
|
-
|
|
385
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
386
386
|
}
|
|
387
387
|
this.$$r = !1;
|
|
388
388
|
};
|
|
389
389
|
this.$$c.$$.after_update.push(i), i();
|
|
390
390
|
for (const s in this.$$l)
|
|
391
|
-
for (const
|
|
392
|
-
const
|
|
393
|
-
this.$$l_u.set(
|
|
391
|
+
for (const a of this.$$l[s]) {
|
|
392
|
+
const o = this.$$c.$on(s, a);
|
|
393
|
+
this.$$l_u.set(a, o);
|
|
394
394
|
}
|
|
395
395
|
this.$$l = {};
|
|
396
396
|
}
|
|
@@ -400,7 +400,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
400
400
|
// and setting attributes through setAttribute etc, this is helpful
|
|
401
401
|
attributeChangedCallback(t, r, n) {
|
|
402
402
|
var i;
|
|
403
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
403
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
404
404
|
}
|
|
405
405
|
disconnectedCallback() {
|
|
406
406
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -413,7 +413,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
413
413
|
) || t;
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
function
|
|
416
|
+
function le(e, t, r, n) {
|
|
417
417
|
var s;
|
|
418
418
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
419
419
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -443,38 +443,38 @@ function he(e, t, r, n) {
|
|
|
443
443
|
return t;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
let
|
|
446
|
+
function Or(e, t, r, n, i, s) {
|
|
447
|
+
let a = class extends Ct {
|
|
448
448
|
constructor() {
|
|
449
449
|
super(e, r, i), this.$$p_d = t;
|
|
450
450
|
}
|
|
451
451
|
static get observedAttributes() {
|
|
452
452
|
return Object.keys(t).map(
|
|
453
|
-
(
|
|
453
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
454
454
|
);
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
|
-
return Object.keys(t).forEach((
|
|
458
|
-
Object.defineProperty(
|
|
457
|
+
return Object.keys(t).forEach((o) => {
|
|
458
|
+
Object.defineProperty(a.prototype, o, {
|
|
459
459
|
get() {
|
|
460
|
-
return this.$$c &&
|
|
460
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
461
461
|
},
|
|
462
462
|
set(l) {
|
|
463
463
|
var u;
|
|
464
|
-
l =
|
|
464
|
+
l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
|
-
}), n.forEach((
|
|
468
|
-
Object.defineProperty(
|
|
467
|
+
}), n.forEach((o) => {
|
|
468
|
+
Object.defineProperty(a.prototype, o, {
|
|
469
469
|
get() {
|
|
470
470
|
var l;
|
|
471
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
471
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
}), e.element = /** @type {any} */
|
|
475
|
-
|
|
475
|
+
a, a;
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class Pr {
|
|
478
478
|
constructor() {
|
|
479
479
|
/**
|
|
480
480
|
* ### PRIVATE API
|
|
@@ -495,7 +495,7 @@ class Cr {
|
|
|
495
495
|
}
|
|
496
496
|
/** @returns {void} */
|
|
497
497
|
$destroy() {
|
|
498
|
-
|
|
498
|
+
wr(this, 1), this.$destroy = T;
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -504,7 +504,7 @@ class Cr {
|
|
|
504
504
|
* @returns {() => void}
|
|
505
505
|
*/
|
|
506
506
|
$on(t, r) {
|
|
507
|
-
if (!
|
|
507
|
+
if (!We(r))
|
|
508
508
|
return T;
|
|
509
509
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
510
510
|
return n.push(r), () => {
|
|
@@ -517,49 +517,49 @@ class Cr {
|
|
|
517
517
|
* @returns {void}
|
|
518
518
|
*/
|
|
519
519
|
$set(t) {
|
|
520
|
-
this.$$set && !
|
|
520
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
const
|
|
524
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
525
|
-
const
|
|
526
|
-
function
|
|
523
|
+
const Cr = "4";
|
|
524
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
525
|
+
const F = [];
|
|
526
|
+
function Lr(e, t) {
|
|
527
527
|
return {
|
|
528
|
-
subscribe:
|
|
528
|
+
subscribe: _e(e, t).subscribe
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function _e(e, t = T) {
|
|
532
532
|
let r;
|
|
533
533
|
const n = /* @__PURE__ */ new Set();
|
|
534
|
-
function i(
|
|
535
|
-
if (
|
|
536
|
-
const l = !
|
|
534
|
+
function i(o) {
|
|
535
|
+
if (wt(e, o) && (e = o, r)) {
|
|
536
|
+
const l = !F.length;
|
|
537
537
|
for (const u of n)
|
|
538
|
-
u[1](),
|
|
538
|
+
u[1](), F.push(u, e);
|
|
539
539
|
if (l) {
|
|
540
|
-
for (let u = 0; u <
|
|
541
|
-
|
|
542
|
-
|
|
540
|
+
for (let u = 0; u < F.length; u += 2)
|
|
541
|
+
F[u][0](F[u + 1]);
|
|
542
|
+
F.length = 0;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
function s(
|
|
547
|
-
i(
|
|
546
|
+
function s(o) {
|
|
547
|
+
i(o(e));
|
|
548
548
|
}
|
|
549
|
-
function o
|
|
550
|
-
const u = [
|
|
551
|
-
return n.add(u), n.size === 1 && (r = t(i, s) || T),
|
|
549
|
+
function a(o, l = T) {
|
|
550
|
+
const u = [o, l];
|
|
551
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
552
552
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
|
-
return { set: i, update: s, subscribe:
|
|
555
|
+
return { set: i, update: s, subscribe: a };
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Q(e, t, r) {
|
|
558
558
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
559
559
|
if (!i.every(Boolean))
|
|
560
560
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
561
561
|
const s = t.length < 2;
|
|
562
|
-
return
|
|
562
|
+
return Lr(r, (a, o) => {
|
|
563
563
|
let l = !1;
|
|
564
564
|
const u = [];
|
|
565
565
|
let h = 0, f = T;
|
|
@@ -567,10 +567,10 @@ function Z(e, t, r) {
|
|
|
567
567
|
if (h)
|
|
568
568
|
return;
|
|
569
569
|
f();
|
|
570
|
-
const m = t(n ? u[0] : u,
|
|
571
|
-
s ?
|
|
572
|
-
},
|
|
573
|
-
(m, g) =>
|
|
570
|
+
const m = t(n ? u[0] : u, a, o);
|
|
571
|
+
s ? a(m) : f = We(m) ? m : T;
|
|
572
|
+
}, p = i.map(
|
|
573
|
+
(m, g) => St(
|
|
574
574
|
m,
|
|
575
575
|
(v) => {
|
|
576
576
|
u[g] = v, h &= ~(1 << g), l && c();
|
|
@@ -581,126 +581,112 @@ function Z(e, t, r) {
|
|
|
581
581
|
)
|
|
582
582
|
);
|
|
583
583
|
return l = !0, c(), function() {
|
|
584
|
-
|
|
584
|
+
re(p), f(), l = !1;
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
588
|
+
function Nr(e) {
|
|
589
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
return
|
|
591
|
+
var Ir = function(t) {
|
|
592
|
+
return Mr(t) && !$r(t);
|
|
593
593
|
};
|
|
594
|
-
function
|
|
594
|
+
function Mr(e) {
|
|
595
595
|
return !!e && typeof e == "object";
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function $r(e) {
|
|
598
598
|
var t = Object.prototype.toString.call(e);
|
|
599
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
600
|
-
}
|
|
601
|
-
var $r = typeof Symbol == "function" && Symbol.for, Rr = $r ? Symbol.for("react.element") : 60103;
|
|
602
|
-
function Ur(e) {
|
|
603
|
-
return e.$$typeof === Rr;
|
|
599
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
604
600
|
}
|
|
601
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
605
602
|
function Dr(e) {
|
|
603
|
+
return e.$$typeof === Ur;
|
|
604
|
+
}
|
|
605
|
+
function Gr(e) {
|
|
606
606
|
return Array.isArray(e) ? [] : {};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
608
|
+
function ee(e, t) {
|
|
609
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Gr(e), e, t) : e;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Fr(e, t, r) {
|
|
612
612
|
return e.concat(t).map(function(n) {
|
|
613
|
-
return
|
|
613
|
+
return ee(n, r);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function jr(e, t) {
|
|
617
617
|
if (!t.customMerge)
|
|
618
|
-
return
|
|
618
|
+
return V;
|
|
619
619
|
var r = t.customMerge(e);
|
|
620
|
-
return typeof r == "function" ? r :
|
|
620
|
+
return typeof r == "function" ? r : V;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function kr(e) {
|
|
623
623
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
624
624
|
return Object.propertyIsEnumerable.call(e, t);
|
|
625
625
|
}) : [];
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return Object.keys(e).concat(
|
|
627
|
+
function it(e) {
|
|
628
|
+
return Object.keys(e).concat(kr(e));
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Lt(e, t) {
|
|
631
631
|
try {
|
|
632
632
|
return t in e;
|
|
633
633
|
} catch (r) {
|
|
634
634
|
return !1;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function Vr(e, t) {
|
|
638
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Xr(e, t, r) {
|
|
641
641
|
var n = {};
|
|
642
|
-
return r.isMergeableObject(e) &&
|
|
643
|
-
n[i] =
|
|
644
|
-
}),
|
|
645
|
-
|
|
642
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
643
|
+
n[i] = ee(e[i], r);
|
|
644
|
+
}), it(t).forEach(function(i) {
|
|
645
|
+
Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
646
646
|
}), n;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
648
|
+
function V(e, t, r) {
|
|
649
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ee;
|
|
650
650
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
651
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
651
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : ee(t, r);
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
V.all = function(t, r) {
|
|
654
654
|
if (!Array.isArray(t))
|
|
655
655
|
throw new Error("first argument should be an array");
|
|
656
656
|
return t.reduce(function(n, i) {
|
|
657
|
-
return
|
|
657
|
+
return V(n, i, r);
|
|
658
658
|
}, {});
|
|
659
659
|
};
|
|
660
|
-
var
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
666
|
-
purpose with or without fee is hereby granted.
|
|
667
|
-
|
|
668
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
669
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
670
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
671
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
672
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
673
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
674
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
675
|
-
***************************************************************************** */
|
|
676
|
-
var $e = function(e, t) {
|
|
677
|
-
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
660
|
+
var Wr = V, zr = Wr;
|
|
661
|
+
const Zr = /* @__PURE__ */ Nr(zr);
|
|
662
|
+
var Ue = function(e, t) {
|
|
663
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
678
664
|
r.__proto__ = n;
|
|
679
665
|
} || function(r, n) {
|
|
680
666
|
for (var i in n)
|
|
681
667
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
682
|
-
},
|
|
668
|
+
}, Ue(e, t);
|
|
683
669
|
};
|
|
684
|
-
function
|
|
670
|
+
function ye(e, t) {
|
|
685
671
|
if (typeof t != "function" && t !== null)
|
|
686
672
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
687
|
-
|
|
673
|
+
Ue(e, t);
|
|
688
674
|
function r() {
|
|
689
675
|
this.constructor = e;
|
|
690
676
|
}
|
|
691
677
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
692
678
|
}
|
|
693
|
-
var
|
|
694
|
-
return
|
|
679
|
+
var w = function() {
|
|
680
|
+
return w = Object.assign || function(t) {
|
|
695
681
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
696
682
|
r = arguments[n];
|
|
697
683
|
for (var s in r)
|
|
698
684
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
699
685
|
}
|
|
700
686
|
return t;
|
|
701
|
-
},
|
|
687
|
+
}, w.apply(this, arguments);
|
|
702
688
|
};
|
|
703
|
-
function
|
|
689
|
+
function Qr(e, t) {
|
|
704
690
|
var r = {};
|
|
705
691
|
for (var n in e)
|
|
706
692
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -709,46 +695,43 @@ function Zr(e, t) {
|
|
|
709
695
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
710
696
|
return r;
|
|
711
697
|
}
|
|
712
|
-
function
|
|
713
|
-
if (arguments.length === 2)
|
|
698
|
+
function Oe(e, t, r) {
|
|
699
|
+
if (r || arguments.length === 2)
|
|
714
700
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
715
701
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
716
|
-
return e.concat(s || t);
|
|
702
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
717
703
|
}
|
|
718
|
-
function
|
|
719
|
-
var r = t && t.cache ? t.cache :
|
|
704
|
+
function Pe(e, t) {
|
|
705
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
720
706
|
return i(e, {
|
|
721
707
|
cache: r,
|
|
722
708
|
serializer: n
|
|
723
709
|
});
|
|
724
710
|
}
|
|
725
|
-
function
|
|
711
|
+
function Jr(e) {
|
|
726
712
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
727
713
|
}
|
|
728
|
-
function
|
|
729
|
-
var i =
|
|
714
|
+
function qr(e, t, r, n) {
|
|
715
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
730
716
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
731
717
|
}
|
|
732
718
|
function Nt(e, t, r) {
|
|
733
719
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
734
720
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
735
721
|
}
|
|
736
|
-
function
|
|
722
|
+
function It(e, t, r, n, i) {
|
|
737
723
|
return r.bind(t, e, n, i);
|
|
738
724
|
}
|
|
739
|
-
function Jr(e, t) {
|
|
740
|
-
var r = e.length === 1 ? Lt : Nt;
|
|
741
|
-
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
742
|
-
}
|
|
743
|
-
function qr(e, t) {
|
|
744
|
-
return ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
745
|
-
}
|
|
746
725
|
function Yr(e, t) {
|
|
747
|
-
|
|
726
|
+
var r = e.length === 1 ? qr : Nt;
|
|
727
|
+
return It(e, this, r, t.cache.create(), t.serializer);
|
|
728
|
+
}
|
|
729
|
+
function Kr(e, t) {
|
|
730
|
+
return It(e, this, Nt, t.cache.create(), t.serializer);
|
|
748
731
|
}
|
|
749
|
-
var
|
|
732
|
+
var en = function() {
|
|
750
733
|
return JSON.stringify(arguments);
|
|
751
|
-
},
|
|
734
|
+
}, tn = (
|
|
752
735
|
/** @class */
|
|
753
736
|
function() {
|
|
754
737
|
function e() {
|
|
@@ -760,62 +743,71 @@ var Kr = function() {
|
|
|
760
743
|
this.cache[t] = r;
|
|
761
744
|
}, e;
|
|
762
745
|
}()
|
|
763
|
-
),
|
|
746
|
+
), rn = {
|
|
764
747
|
create: function() {
|
|
765
|
-
return new
|
|
748
|
+
return new tn();
|
|
766
749
|
}
|
|
767
750
|
}, Ce = {
|
|
768
|
-
variadic:
|
|
769
|
-
|
|
770
|
-
|
|
751
|
+
variadic: Kr
|
|
752
|
+
}, pe = function() {
|
|
753
|
+
return pe = Object.assign || function(t) {
|
|
754
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
755
|
+
r = arguments[n];
|
|
756
|
+
for (var s in r)
|
|
757
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
758
|
+
}
|
|
759
|
+
return t;
|
|
760
|
+
}, pe.apply(this, arguments);
|
|
761
|
+
};
|
|
762
|
+
var d;
|
|
771
763
|
(function(e) {
|
|
772
764
|
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";
|
|
773
|
-
})(
|
|
774
|
-
var
|
|
765
|
+
})(d || (d = {}));
|
|
766
|
+
var y;
|
|
775
767
|
(function(e) {
|
|
776
768
|
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";
|
|
777
|
-
})(
|
|
778
|
-
var
|
|
769
|
+
})(y || (y = {}));
|
|
770
|
+
var X;
|
|
779
771
|
(function(e) {
|
|
780
772
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
781
|
-
})(
|
|
782
|
-
function
|
|
783
|
-
return e.type ===
|
|
784
|
-
}
|
|
785
|
-
function rn(e) {
|
|
786
|
-
return e.type === x.argument;
|
|
773
|
+
})(X || (X = {}));
|
|
774
|
+
function st(e) {
|
|
775
|
+
return e.type === y.literal;
|
|
787
776
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.type ===
|
|
777
|
+
function nn(e) {
|
|
778
|
+
return e.type === y.argument;
|
|
790
779
|
}
|
|
791
780
|
function Mt(e) {
|
|
792
|
-
return e.type ===
|
|
781
|
+
return e.type === y.number;
|
|
793
782
|
}
|
|
794
783
|
function $t(e) {
|
|
795
|
-
return e.type ===
|
|
784
|
+
return e.type === y.date;
|
|
796
785
|
}
|
|
797
786
|
function Rt(e) {
|
|
798
|
-
return e.type ===
|
|
787
|
+
return e.type === y.time;
|
|
799
788
|
}
|
|
800
789
|
function Ut(e) {
|
|
801
|
-
return e.type ===
|
|
802
|
-
}
|
|
803
|
-
function nn(e) {
|
|
804
|
-
return e.type === x.pound;
|
|
790
|
+
return e.type === y.select;
|
|
805
791
|
}
|
|
806
792
|
function Dt(e) {
|
|
807
|
-
return e.type ===
|
|
793
|
+
return e.type === y.plural;
|
|
794
|
+
}
|
|
795
|
+
function sn(e) {
|
|
796
|
+
return e.type === y.pound;
|
|
808
797
|
}
|
|
809
798
|
function Gt(e) {
|
|
810
|
-
return
|
|
799
|
+
return e.type === y.tag;
|
|
811
800
|
}
|
|
812
|
-
function
|
|
813
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
801
|
+
function Ft(e) {
|
|
802
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
814
803
|
}
|
|
815
|
-
|
|
816
|
-
|
|
804
|
+
function De(e) {
|
|
805
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
806
|
+
}
|
|
807
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
808
|
+
function an(e) {
|
|
817
809
|
var t = {};
|
|
818
|
-
return e.replace(
|
|
810
|
+
return e.replace(on, function(r) {
|
|
819
811
|
var n = r.length;
|
|
820
812
|
switch (r[0]) {
|
|
821
813
|
case "G":
|
|
@@ -904,36 +896,46 @@ function on(e) {
|
|
|
904
896
|
return "";
|
|
905
897
|
}), t;
|
|
906
898
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
899
|
+
var E = function() {
|
|
900
|
+
return E = Object.assign || function(t) {
|
|
901
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
902
|
+
r = arguments[n];
|
|
903
|
+
for (var s in r)
|
|
904
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
905
|
+
}
|
|
906
|
+
return t;
|
|
907
|
+
}, E.apply(this, arguments);
|
|
908
|
+
};
|
|
909
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
910
|
+
function hn(e) {
|
|
909
911
|
if (e.length === 0)
|
|
910
912
|
throw new Error("Number skeleton cannot be empty");
|
|
911
|
-
for (var t = e.split(
|
|
913
|
+
for (var t = e.split(un).filter(function(c) {
|
|
912
914
|
return c.length > 0;
|
|
913
915
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
914
|
-
var s = i[n],
|
|
915
|
-
if (
|
|
916
|
+
var s = i[n], a = s.split("/");
|
|
917
|
+
if (a.length === 0)
|
|
916
918
|
throw new Error("Invalid number skeleton");
|
|
917
|
-
for (var
|
|
919
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
918
920
|
var f = h[u];
|
|
919
921
|
if (f.length === 0)
|
|
920
922
|
throw new Error("Invalid number skeleton");
|
|
921
923
|
}
|
|
922
|
-
r.push({ stem:
|
|
924
|
+
r.push({ stem: o, options: l });
|
|
923
925
|
}
|
|
924
926
|
return r;
|
|
925
927
|
}
|
|
926
|
-
function
|
|
928
|
+
function ln(e) {
|
|
927
929
|
return e.replace(/^(.*?)-/, "");
|
|
928
930
|
}
|
|
929
|
-
var
|
|
930
|
-
function
|
|
931
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
932
|
+
function at(e) {
|
|
931
933
|
var t = {};
|
|
932
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
934
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
933
935
|
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)), "";
|
|
934
936
|
}), t;
|
|
935
937
|
}
|
|
936
|
-
function
|
|
938
|
+
function Xt(e) {
|
|
937
939
|
switch (e) {
|
|
938
940
|
case "sign-auto":
|
|
939
941
|
return {
|
|
@@ -973,7 +975,7 @@ function Vt(e) {
|
|
|
973
975
|
};
|
|
974
976
|
}
|
|
975
977
|
}
|
|
976
|
-
function
|
|
978
|
+
function cn(e) {
|
|
977
979
|
var t;
|
|
978
980
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
979
981
|
notation: "engineering"
|
|
@@ -981,17 +983,17 @@ function fn(e) {
|
|
|
981
983
|
notation: "scientific"
|
|
982
984
|
}, e = e.slice(1)), t) {
|
|
983
985
|
var r = e.slice(0, 2);
|
|
984
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
986
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
985
987
|
throw new Error("Malformed concise eng/scientific notation");
|
|
986
988
|
t.minimumIntegerDigits = e.length;
|
|
987
989
|
}
|
|
988
990
|
return t;
|
|
989
991
|
}
|
|
990
|
-
function
|
|
991
|
-
var t = {}, r =
|
|
992
|
+
function ut(e) {
|
|
993
|
+
var t = {}, r = Xt(e);
|
|
992
994
|
return r || t;
|
|
993
995
|
}
|
|
994
|
-
function
|
|
996
|
+
function mn(e) {
|
|
995
997
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
996
998
|
var i = n[r];
|
|
997
999
|
switch (i.stem) {
|
|
@@ -1015,7 +1017,7 @@ function cn(e) {
|
|
|
1015
1017
|
continue;
|
|
1016
1018
|
case "measure-unit":
|
|
1017
1019
|
case "unit":
|
|
1018
|
-
t.style = "unit", t.unit =
|
|
1020
|
+
t.style = "unit", t.unit = ln(i.options[0]);
|
|
1019
1021
|
continue;
|
|
1020
1022
|
case "compact-short":
|
|
1021
1023
|
case "K":
|
|
@@ -1026,13 +1028,13 @@ function cn(e) {
|
|
|
1026
1028
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1027
1029
|
continue;
|
|
1028
1030
|
case "scientific":
|
|
1029
|
-
t =
|
|
1030
|
-
return
|
|
1031
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1032
|
+
return E(E({}, l), ut(u));
|
|
1031
1033
|
}, {}));
|
|
1032
1034
|
continue;
|
|
1033
1035
|
case "engineering":
|
|
1034
|
-
t =
|
|
1035
|
-
return
|
|
1036
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1037
|
+
return E(E({}, l), ut(u));
|
|
1036
1038
|
}, {}));
|
|
1037
1039
|
continue;
|
|
1038
1040
|
case "notation-simple":
|
|
@@ -1077,45 +1079,45 @@ function cn(e) {
|
|
|
1077
1079
|
case "integer-width":
|
|
1078
1080
|
if (i.options.length > 1)
|
|
1079
1081
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1080
|
-
i.options[0].replace(
|
|
1082
|
+
i.options[0].replace(fn, function(l, u, h, f, c, p) {
|
|
1081
1083
|
if (u)
|
|
1082
1084
|
t.minimumIntegerDigits = h.length;
|
|
1083
1085
|
else {
|
|
1084
1086
|
if (f && c)
|
|
1085
1087
|
throw new Error("We currently do not support maximum integer digits");
|
|
1086
|
-
if (
|
|
1088
|
+
if (p)
|
|
1087
1089
|
throw new Error("We currently do not support exact integer digits");
|
|
1088
1090
|
}
|
|
1089
1091
|
return "";
|
|
1090
1092
|
});
|
|
1091
1093
|
continue;
|
|
1092
1094
|
}
|
|
1093
|
-
if (
|
|
1095
|
+
if (Vt.test(i.stem)) {
|
|
1094
1096
|
t.minimumIntegerDigits = i.stem.length;
|
|
1095
1097
|
continue;
|
|
1096
1098
|
}
|
|
1097
|
-
if (
|
|
1099
|
+
if (ot.test(i.stem)) {
|
|
1098
1100
|
if (i.options.length > 1)
|
|
1099
1101
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1100
|
-
i.stem.replace(
|
|
1101
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1102
|
+
i.stem.replace(ot, function(l, u, h, f, c, p) {
|
|
1103
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1102
1104
|
});
|
|
1103
1105
|
var s = i.options[0];
|
|
1104
|
-
s === "w" ? t =
|
|
1106
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
|
|
1105
1107
|
continue;
|
|
1106
1108
|
}
|
|
1107
|
-
if (
|
|
1108
|
-
t =
|
|
1109
|
+
if (kt.test(i.stem)) {
|
|
1110
|
+
t = E(E({}, t), at(i.stem));
|
|
1109
1111
|
continue;
|
|
1110
1112
|
}
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1113
|
-
var
|
|
1114
|
-
|
|
1113
|
+
var a = Xt(i.stem);
|
|
1114
|
+
a && (t = E(E({}, t), a));
|
|
1115
|
+
var o = cn(i.stem);
|
|
1116
|
+
o && (t = E(E({}, t), o));
|
|
1115
1117
|
}
|
|
1116
1118
|
return t;
|
|
1117
1119
|
}
|
|
1118
|
-
var
|
|
1120
|
+
var ae = {
|
|
1119
1121
|
"001": [
|
|
1120
1122
|
"H",
|
|
1121
1123
|
"h"
|
|
@@ -2530,16 +2532,16 @@ var oe = {
|
|
|
2530
2532
|
"h"
|
|
2531
2533
|
]
|
|
2532
2534
|
};
|
|
2533
|
-
function
|
|
2535
|
+
function pn(e, t) {
|
|
2534
2536
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2535
2537
|
var i = e.charAt(n);
|
|
2536
2538
|
if (i === "j") {
|
|
2537
2539
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2538
2540
|
s++, n++;
|
|
2539
|
-
var
|
|
2540
|
-
for ((u == "H" || u == "k") && (
|
|
2541
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
|
|
2542
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2541
2543
|
r += l;
|
|
2542
|
-
for (;
|
|
2544
|
+
for (; a-- > 0; )
|
|
2543
2545
|
r = u + r;
|
|
2544
2546
|
} else
|
|
2545
2547
|
i === "J" ? r += "H" : r += i;
|
|
@@ -2565,23 +2567,23 @@ function dn(e) {
|
|
|
2565
2567
|
}
|
|
2566
2568
|
var r = e.language, n;
|
|
2567
2569
|
r !== "root" && (n = e.maximize().region);
|
|
2568
|
-
var i =
|
|
2570
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2569
2571
|
return i[0];
|
|
2570
2572
|
}
|
|
2571
|
-
var
|
|
2573
|
+
var Le, bn = new RegExp("^".concat(jt.source, "*")), gn = new RegExp("".concat(jt.source, "*$"));
|
|
2572
2574
|
function b(e, t) {
|
|
2573
2575
|
return { start: e, end: t };
|
|
2574
2576
|
}
|
|
2575
|
-
var
|
|
2577
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
|
|
2576
2578
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2577
|
-
},
|
|
2579
|
+
}, Ge = !0;
|
|
2578
2580
|
try {
|
|
2579
|
-
var
|
|
2580
|
-
|
|
2581
|
+
var wn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2582
|
+
Ge = ((Le = wn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2581
2583
|
} catch (e) {
|
|
2582
|
-
|
|
2584
|
+
Ge = !1;
|
|
2583
2585
|
}
|
|
2584
|
-
var
|
|
2586
|
+
var ht = _n ? (
|
|
2585
2587
|
// Native
|
|
2586
2588
|
function(t, r, n) {
|
|
2587
2589
|
return t.startsWith(r, n);
|
|
@@ -2591,31 +2593,31 @@ var ut = gn ? (
|
|
|
2591
2593
|
function(t, r, n) {
|
|
2592
2594
|
return t.slice(n, n + r.length) === r;
|
|
2593
2595
|
}
|
|
2594
|
-
),
|
|
2596
|
+
), Fe = yn ? String.fromCodePoint : (
|
|
2595
2597
|
// IE11
|
|
2596
2598
|
function() {
|
|
2597
2599
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2598
2600
|
t[r] = arguments[r];
|
|
2599
|
-
for (var n = "", i = t.length, s = 0,
|
|
2600
|
-
if (
|
|
2601
|
-
throw RangeError(
|
|
2602
|
-
n +=
|
|
2601
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2602
|
+
if (a = t[s++], a > 1114111)
|
|
2603
|
+
throw RangeError(a + " is not a valid code point");
|
|
2604
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2603
2605
|
}
|
|
2604
2606
|
return n;
|
|
2605
2607
|
}
|
|
2606
|
-
),
|
|
2608
|
+
), lt = (
|
|
2607
2609
|
// native
|
|
2608
|
-
|
|
2610
|
+
En ? Object.fromEntries : (
|
|
2609
2611
|
// Ponyfill
|
|
2610
2612
|
function(t) {
|
|
2611
2613
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2612
|
-
var s = i[n],
|
|
2613
|
-
r[
|
|
2614
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2615
|
+
r[a] = o;
|
|
2614
2616
|
}
|
|
2615
2617
|
return r;
|
|
2616
2618
|
}
|
|
2617
2619
|
)
|
|
2618
|
-
),
|
|
2620
|
+
), Wt = xn ? (
|
|
2619
2621
|
// Native
|
|
2620
2622
|
function(t, r) {
|
|
2621
2623
|
return t.codePointAt(r);
|
|
@@ -2629,7 +2631,7 @@ var ut = gn ? (
|
|
|
2629
2631
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2630
2632
|
}
|
|
2631
2633
|
}
|
|
2632
|
-
),
|
|
2634
|
+
), Sn = vn ? (
|
|
2633
2635
|
// Native
|
|
2634
2636
|
function(t) {
|
|
2635
2637
|
return t.trimStart();
|
|
@@ -2637,9 +2639,9 @@ var ut = gn ? (
|
|
|
2637
2639
|
) : (
|
|
2638
2640
|
// Ponyfill
|
|
2639
2641
|
function(t) {
|
|
2640
|
-
return t.replace(
|
|
2642
|
+
return t.replace(bn, "");
|
|
2641
2643
|
}
|
|
2642
|
-
),
|
|
2644
|
+
), An = Hn ? (
|
|
2643
2645
|
// Native
|
|
2644
2646
|
function(t) {
|
|
2645
2647
|
return t.trimEnd();
|
|
@@ -2647,32 +2649,32 @@ var ut = gn ? (
|
|
|
2647
2649
|
) : (
|
|
2648
2650
|
// Ponyfill
|
|
2649
2651
|
function(t) {
|
|
2650
|
-
return t.replace(
|
|
2652
|
+
return t.replace(gn, "");
|
|
2651
2653
|
}
|
|
2652
2654
|
);
|
|
2653
|
-
function
|
|
2655
|
+
function zt(e, t) {
|
|
2654
2656
|
return new RegExp(e, t);
|
|
2655
2657
|
}
|
|
2656
|
-
var
|
|
2657
|
-
if (
|
|
2658
|
-
var
|
|
2659
|
-
|
|
2658
|
+
var je;
|
|
2659
|
+
if (Ge) {
|
|
2660
|
+
var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2661
|
+
je = function(t, r) {
|
|
2660
2662
|
var n;
|
|
2661
|
-
|
|
2662
|
-
var i =
|
|
2663
|
+
ft.lastIndex = r;
|
|
2664
|
+
var i = ft.exec(t);
|
|
2663
2665
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2664
2666
|
};
|
|
2665
2667
|
} else
|
|
2666
|
-
|
|
2668
|
+
je = function(t, r) {
|
|
2667
2669
|
for (var n = []; ; ) {
|
|
2668
|
-
var i =
|
|
2669
|
-
if (i === void 0 ||
|
|
2670
|
+
var i = Wt(t, r);
|
|
2671
|
+
if (i === void 0 || Zt(i) || Ln(i))
|
|
2670
2672
|
break;
|
|
2671
2673
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2672
2674
|
}
|
|
2673
|
-
return
|
|
2675
|
+
return Fe.apply(void 0, n);
|
|
2674
2676
|
};
|
|
2675
|
-
var
|
|
2677
|
+
var On = (
|
|
2676
2678
|
/** @class */
|
|
2677
2679
|
function() {
|
|
2678
2680
|
function e(t, r) {
|
|
@@ -2686,33 +2688,33 @@ var An = (
|
|
|
2686
2688
|
for (var i = []; !this.isEOF(); ) {
|
|
2687
2689
|
var s = this.char();
|
|
2688
2690
|
if (s === 123) {
|
|
2689
|
-
var
|
|
2690
|
-
if (
|
|
2691
|
-
return
|
|
2692
|
-
i.push(
|
|
2691
|
+
var a = this.parseArgument(t, n);
|
|
2692
|
+
if (a.err)
|
|
2693
|
+
return a;
|
|
2694
|
+
i.push(a.val);
|
|
2693
2695
|
} else {
|
|
2694
2696
|
if (s === 125 && t > 0)
|
|
2695
2697
|
break;
|
|
2696
2698
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2697
|
-
var
|
|
2699
|
+
var o = this.clonePosition();
|
|
2698
2700
|
this.bump(), i.push({
|
|
2699
|
-
type:
|
|
2700
|
-
location: b(
|
|
2701
|
+
type: y.pound,
|
|
2702
|
+
location: b(o, this.clonePosition())
|
|
2701
2703
|
});
|
|
2702
2704
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2703
2705
|
if (n)
|
|
2704
2706
|
break;
|
|
2705
|
-
return this.error(
|
|
2706
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2707
|
-
var
|
|
2708
|
-
if (
|
|
2709
|
-
return
|
|
2710
|
-
i.push(
|
|
2707
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2708
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2709
|
+
var a = this.parseTag(t, r);
|
|
2710
|
+
if (a.err)
|
|
2711
|
+
return a;
|
|
2712
|
+
i.push(a.val);
|
|
2711
2713
|
} else {
|
|
2712
|
-
var
|
|
2713
|
-
if (
|
|
2714
|
-
return
|
|
2715
|
-
i.push(
|
|
2714
|
+
var a = this.parseLiteral(t, r);
|
|
2715
|
+
if (a.err)
|
|
2716
|
+
return a;
|
|
2717
|
+
i.push(a.val);
|
|
2716
2718
|
}
|
|
2717
2719
|
}
|
|
2718
2720
|
}
|
|
@@ -2724,7 +2726,7 @@ var An = (
|
|
|
2724
2726
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2725
2727
|
return {
|
|
2726
2728
|
val: {
|
|
2727
|
-
type:
|
|
2729
|
+
type: y.literal,
|
|
2728
2730
|
value: "<".concat(i, "/>"),
|
|
2729
2731
|
location: b(n, this.clonePosition())
|
|
2730
2732
|
},
|
|
@@ -2734,27 +2736,27 @@ var An = (
|
|
|
2734
2736
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2735
2737
|
if (s.err)
|
|
2736
2738
|
return s;
|
|
2737
|
-
var
|
|
2739
|
+
var a = s.val, o = this.clonePosition();
|
|
2738
2740
|
if (this.bumpIf("</")) {
|
|
2739
|
-
if (this.isEOF() || !
|
|
2740
|
-
return this.error(
|
|
2741
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2742
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2741
2743
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2742
|
-
return i !== u ? this.error(
|
|
2744
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2743
2745
|
val: {
|
|
2744
|
-
type:
|
|
2746
|
+
type: y.tag,
|
|
2745
2747
|
value: i,
|
|
2746
|
-
children:
|
|
2748
|
+
children: a,
|
|
2747
2749
|
location: b(n, this.clonePosition())
|
|
2748
2750
|
},
|
|
2749
2751
|
err: null
|
|
2750
|
-
} : this.error(
|
|
2752
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2751
2753
|
} else
|
|
2752
|
-
return this.error(
|
|
2754
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2753
2755
|
} else
|
|
2754
|
-
return this.error(
|
|
2756
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2755
2757
|
}, e.prototype.parseTagName = function() {
|
|
2756
2758
|
var t = this.offset();
|
|
2757
|
-
for (this.bump(); !this.isEOF() &&
|
|
2759
|
+
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
2758
2760
|
this.bump();
|
|
2759
2761
|
return this.message.slice(t, this.offset());
|
|
2760
2762
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2764,26 +2766,26 @@ var An = (
|
|
|
2764
2766
|
i += s;
|
|
2765
2767
|
continue;
|
|
2766
2768
|
}
|
|
2767
|
-
var
|
|
2768
|
-
if (o) {
|
|
2769
|
-
i += o;
|
|
2770
|
-
continue;
|
|
2771
|
-
}
|
|
2772
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2769
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2773
2770
|
if (a) {
|
|
2774
2771
|
i += a;
|
|
2775
2772
|
continue;
|
|
2776
2773
|
}
|
|
2774
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2775
|
+
if (o) {
|
|
2776
|
+
i += o;
|
|
2777
|
+
continue;
|
|
2778
|
+
}
|
|
2777
2779
|
break;
|
|
2778
2780
|
}
|
|
2779
2781
|
var l = b(n, this.clonePosition());
|
|
2780
2782
|
return {
|
|
2781
|
-
val: { type:
|
|
2783
|
+
val: { type: y.literal, value: i, location: l },
|
|
2782
2784
|
err: null
|
|
2783
2785
|
};
|
|
2784
2786
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2785
2787
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2786
|
-
!
|
|
2788
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2787
2789
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2788
2790
|
if (this.isEOF() || this.char() !== 39)
|
|
2789
2791
|
return null;
|
|
@@ -2817,28 +2819,28 @@ var An = (
|
|
|
2817
2819
|
r.push(n);
|
|
2818
2820
|
this.bump();
|
|
2819
2821
|
}
|
|
2820
|
-
return
|
|
2822
|
+
return Fe.apply(void 0, r);
|
|
2821
2823
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2822
2824
|
if (this.isEOF())
|
|
2823
2825
|
return null;
|
|
2824
2826
|
var n = this.char();
|
|
2825
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2827
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2826
2828
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2827
2829
|
var n = this.clonePosition();
|
|
2828
2830
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2829
|
-
return this.error(
|
|
2831
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2830
2832
|
if (this.char() === 125)
|
|
2831
|
-
return this.bump(), this.error(
|
|
2833
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2832
2834
|
var i = this.parseIdentifierIfPossible().value;
|
|
2833
2835
|
if (!i)
|
|
2834
|
-
return this.error(
|
|
2836
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2835
2837
|
if (this.bumpSpace(), this.isEOF())
|
|
2836
|
-
return this.error(
|
|
2838
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2837
2839
|
switch (this.char()) {
|
|
2838
2840
|
case 125:
|
|
2839
2841
|
return this.bump(), {
|
|
2840
2842
|
val: {
|
|
2841
|
-
type:
|
|
2843
|
+
type: y.argument,
|
|
2842
2844
|
// value does not include the opening and closing braces.
|
|
2843
2845
|
value: i,
|
|
2844
2846
|
location: b(n, this.clonePosition())
|
|
@@ -2846,20 +2848,20 @@ var An = (
|
|
|
2846
2848
|
err: null
|
|
2847
2849
|
};
|
|
2848
2850
|
case 44:
|
|
2849
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2851
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2850
2852
|
default:
|
|
2851
|
-
return this.error(
|
|
2853
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2852
2854
|
}
|
|
2853
2855
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2854
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2856
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2855
2857
|
this.bumpTo(i);
|
|
2856
|
-
var s = this.clonePosition(),
|
|
2857
|
-
return { value: n, location:
|
|
2858
|
+
var s = this.clonePosition(), a = b(t, s);
|
|
2859
|
+
return { value: n, location: a };
|
|
2858
2860
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2859
|
-
var s,
|
|
2860
|
-
switch (
|
|
2861
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2862
|
+
switch (o) {
|
|
2861
2863
|
case "":
|
|
2862
|
-
return this.error(
|
|
2864
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2863
2865
|
case "number":
|
|
2864
2866
|
case "date":
|
|
2865
2867
|
case "time": {
|
|
@@ -2870,44 +2872,44 @@ var An = (
|
|
|
2870
2872
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2871
2873
|
if (f.err)
|
|
2872
2874
|
return f;
|
|
2873
|
-
var c =
|
|
2875
|
+
var c = An(f.val);
|
|
2874
2876
|
if (c.length === 0)
|
|
2875
|
-
return this.error(
|
|
2876
|
-
var
|
|
2877
|
-
u = { style: c, styleLocation:
|
|
2877
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2878
|
+
var p = b(h, this.clonePosition());
|
|
2879
|
+
u = { style: c, styleLocation: p };
|
|
2878
2880
|
}
|
|
2879
2881
|
var m = this.tryParseArgumentClose(i);
|
|
2880
2882
|
if (m.err)
|
|
2881
2883
|
return m;
|
|
2882
2884
|
var g = b(i, this.clonePosition());
|
|
2883
|
-
if (u &&
|
|
2884
|
-
var v =
|
|
2885
|
-
if (
|
|
2885
|
+
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2886
|
+
var v = Sn(u.style.slice(2));
|
|
2887
|
+
if (o === "number") {
|
|
2886
2888
|
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2887
2889
|
return f.err ? f : {
|
|
2888
|
-
val: { type:
|
|
2890
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
2889
2891
|
err: null
|
|
2890
2892
|
};
|
|
2891
2893
|
} else {
|
|
2892
2894
|
if (v.length === 0)
|
|
2893
|
-
return this.error(
|
|
2894
|
-
var
|
|
2895
|
-
this.locale && (
|
|
2895
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2896
|
+
var I = v;
|
|
2897
|
+
this.locale && (I = pn(v, this.locale));
|
|
2896
2898
|
var c = {
|
|
2897
|
-
type:
|
|
2898
|
-
pattern:
|
|
2899
|
+
type: X.dateTime,
|
|
2900
|
+
pattern: I,
|
|
2899
2901
|
location: u.styleLocation,
|
|
2900
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2901
|
-
},
|
|
2902
|
+
parsedOptions: this.shouldParseSkeletons ? an(I) : {}
|
|
2903
|
+
}, P = o === "date" ? y.date : y.time;
|
|
2902
2904
|
return {
|
|
2903
|
-
val: { type:
|
|
2905
|
+
val: { type: P, value: n, location: g, style: c },
|
|
2904
2906
|
err: null
|
|
2905
2907
|
};
|
|
2906
2908
|
}
|
|
2907
2909
|
}
|
|
2908
2910
|
return {
|
|
2909
2911
|
val: {
|
|
2910
|
-
type:
|
|
2912
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2911
2913
|
value: n,
|
|
2912
2914
|
location: g,
|
|
2913
2915
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2920,50 +2922,50 @@ var An = (
|
|
|
2920
2922
|
case "select": {
|
|
2921
2923
|
var H = this.clonePosition();
|
|
2922
2924
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2923
|
-
return this.error(
|
|
2925
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2924
2926
|
this.bumpSpace();
|
|
2925
|
-
var
|
|
2926
|
-
if (
|
|
2927
|
+
var M = this.parseIdentifierIfPossible(), S = 0;
|
|
2928
|
+
if (o !== "select" && M.value === "offset") {
|
|
2927
2929
|
if (!this.bumpIf(":"))
|
|
2928
|
-
return this.error(
|
|
2930
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2929
2931
|
this.bumpSpace();
|
|
2930
|
-
var f = this.tryParseDecimalInteger(
|
|
2932
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2931
2933
|
if (f.err)
|
|
2932
2934
|
return f;
|
|
2933
|
-
this.bumpSpace(),
|
|
2935
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = f.val;
|
|
2934
2936
|
}
|
|
2935
|
-
var
|
|
2936
|
-
if (
|
|
2937
|
-
return
|
|
2937
|
+
var U = this.tryParsePluralOrSelectOptions(t, o, r, M);
|
|
2938
|
+
if (U.err)
|
|
2939
|
+
return U;
|
|
2938
2940
|
var m = this.tryParseArgumentClose(i);
|
|
2939
2941
|
if (m.err)
|
|
2940
2942
|
return m;
|
|
2941
|
-
var
|
|
2942
|
-
return
|
|
2943
|
+
var oe = b(i, this.clonePosition());
|
|
2944
|
+
return o === "select" ? {
|
|
2943
2945
|
val: {
|
|
2944
|
-
type:
|
|
2946
|
+
type: y.select,
|
|
2945
2947
|
value: n,
|
|
2946
|
-
options:
|
|
2947
|
-
location:
|
|
2948
|
+
options: lt(U.val),
|
|
2949
|
+
location: oe
|
|
2948
2950
|
},
|
|
2949
2951
|
err: null
|
|
2950
2952
|
} : {
|
|
2951
2953
|
val: {
|
|
2952
|
-
type:
|
|
2954
|
+
type: y.plural,
|
|
2953
2955
|
value: n,
|
|
2954
|
-
options:
|
|
2955
|
-
offset:
|
|
2956
|
-
pluralType:
|
|
2957
|
-
location:
|
|
2956
|
+
options: lt(U.val),
|
|
2957
|
+
offset: S,
|
|
2958
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2959
|
+
location: oe
|
|
2958
2960
|
},
|
|
2959
2961
|
err: null
|
|
2960
2962
|
};
|
|
2961
2963
|
}
|
|
2962
2964
|
default:
|
|
2963
|
-
return this.error(
|
|
2965
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2964
2966
|
}
|
|
2965
2967
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2966
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2968
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2967
2969
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2968
2970
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2969
2971
|
var n = this.char();
|
|
@@ -2972,7 +2974,7 @@ var An = (
|
|
|
2972
2974
|
this.bump();
|
|
2973
2975
|
var i = this.clonePosition();
|
|
2974
2976
|
if (!this.bumpUntil("'"))
|
|
2975
|
-
return this.error(
|
|
2977
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2976
2978
|
this.bump();
|
|
2977
2979
|
break;
|
|
2978
2980
|
}
|
|
@@ -3002,25 +3004,25 @@ var An = (
|
|
|
3002
3004
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3003
3005
|
var n = [];
|
|
3004
3006
|
try {
|
|
3005
|
-
n =
|
|
3007
|
+
n = hn(t);
|
|
3006
3008
|
} catch (i) {
|
|
3007
|
-
return this.error(
|
|
3009
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3008
3010
|
}
|
|
3009
3011
|
return {
|
|
3010
3012
|
val: {
|
|
3011
|
-
type:
|
|
3013
|
+
type: X.number,
|
|
3012
3014
|
tokens: n,
|
|
3013
3015
|
location: r,
|
|
3014
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3016
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3015
3017
|
},
|
|
3016
3018
|
err: null
|
|
3017
3019
|
};
|
|
3018
3020
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3019
|
-
for (var s,
|
|
3021
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3020
3022
|
if (u.length === 0) {
|
|
3021
3023
|
var f = this.clonePosition();
|
|
3022
3024
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3023
|
-
var c = this.tryParseDecimalInteger(
|
|
3025
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3024
3026
|
if (c.err)
|
|
3025
3027
|
return c;
|
|
3026
3028
|
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3028,38 +3030,38 @@ var An = (
|
|
|
3028
3030
|
break;
|
|
3029
3031
|
}
|
|
3030
3032
|
if (l.has(u))
|
|
3031
|
-
return this.error(r === "select" ?
|
|
3032
|
-
u === "other" && (
|
|
3033
|
-
var
|
|
3033
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3034
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3035
|
+
var p = this.clonePosition();
|
|
3034
3036
|
if (!this.bumpIf("{"))
|
|
3035
|
-
return this.error(r === "select" ?
|
|
3037
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3036
3038
|
var m = this.parseMessage(t + 1, r, n);
|
|
3037
3039
|
if (m.err)
|
|
3038
3040
|
return m;
|
|
3039
|
-
var g = this.tryParseArgumentClose(
|
|
3041
|
+
var g = this.tryParseArgumentClose(p);
|
|
3040
3042
|
if (g.err)
|
|
3041
3043
|
return g;
|
|
3042
|
-
|
|
3044
|
+
o.push([
|
|
3043
3045
|
u,
|
|
3044
3046
|
{
|
|
3045
3047
|
value: m.val,
|
|
3046
|
-
location: b(
|
|
3048
|
+
location: b(p, this.clonePosition())
|
|
3047
3049
|
}
|
|
3048
3050
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3049
3051
|
}
|
|
3050
|
-
return
|
|
3052
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3051
3053
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3052
3054
|
var n = 1, i = this.clonePosition();
|
|
3053
3055
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3054
|
-
for (var s = !1,
|
|
3055
|
-
var
|
|
3056
|
-
if (
|
|
3057
|
-
s = !0,
|
|
3056
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3057
|
+
var o = this.char();
|
|
3058
|
+
if (o >= 48 && o <= 57)
|
|
3059
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3058
3060
|
else
|
|
3059
3061
|
break;
|
|
3060
3062
|
}
|
|
3061
3063
|
var l = b(i, this.clonePosition());
|
|
3062
|
-
return s ? (
|
|
3064
|
+
return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3063
3065
|
}, e.prototype.offset = function() {
|
|
3064
3066
|
return this.position.offset;
|
|
3065
3067
|
}, e.prototype.isEOF = function() {
|
|
@@ -3074,7 +3076,7 @@ var An = (
|
|
|
3074
3076
|
var t = this.position.offset;
|
|
3075
3077
|
if (t >= this.message.length)
|
|
3076
3078
|
throw Error("out of bound");
|
|
3077
|
-
var r =
|
|
3079
|
+
var r = Wt(this.message, t);
|
|
3078
3080
|
if (r === void 0)
|
|
3079
3081
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3080
3082
|
return r;
|
|
@@ -3093,7 +3095,7 @@ var An = (
|
|
|
3093
3095
|
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);
|
|
3094
3096
|
}
|
|
3095
3097
|
}, e.prototype.bumpIf = function(t) {
|
|
3096
|
-
if (
|
|
3098
|
+
if (ht(this.message, t, this.offset())) {
|
|
3097
3099
|
for (var r = 0; r < t.length; r++)
|
|
3098
3100
|
this.bump();
|
|
3099
3101
|
return !0;
|
|
@@ -3115,7 +3117,7 @@ var An = (
|
|
|
3115
3117
|
break;
|
|
3116
3118
|
}
|
|
3117
3119
|
}, e.prototype.bumpSpace = function() {
|
|
3118
|
-
for (; !this.isEOF() &&
|
|
3120
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3119
3121
|
this.bump();
|
|
3120
3122
|
}, e.prototype.peek = function() {
|
|
3121
3123
|
if (this.isEOF())
|
|
@@ -3125,47 +3127,47 @@ var An = (
|
|
|
3125
3127
|
}, e;
|
|
3126
3128
|
}()
|
|
3127
3129
|
);
|
|
3128
|
-
function
|
|
3130
|
+
function ke(e) {
|
|
3129
3131
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3130
3132
|
}
|
|
3131
|
-
function
|
|
3132
|
-
return
|
|
3133
|
+
function Pn(e) {
|
|
3134
|
+
return ke(e) || e === 47;
|
|
3133
3135
|
}
|
|
3134
|
-
function
|
|
3136
|
+
function Cn(e) {
|
|
3135
3137
|
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;
|
|
3136
3138
|
}
|
|
3137
|
-
function
|
|
3139
|
+
function Zt(e) {
|
|
3138
3140
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3139
3141
|
}
|
|
3140
|
-
function
|
|
3142
|
+
function Ln(e) {
|
|
3141
3143
|
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;
|
|
3142
3144
|
}
|
|
3143
|
-
function
|
|
3145
|
+
function Ve(e) {
|
|
3144
3146
|
e.forEach(function(t) {
|
|
3145
|
-
if (delete t.location,
|
|
3147
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3146
3148
|
for (var r in t.options)
|
|
3147
|
-
delete t.options[r].location,
|
|
3149
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3148
3150
|
else
|
|
3149
|
-
|
|
3151
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
|
|
3150
3152
|
});
|
|
3151
3153
|
}
|
|
3152
|
-
function
|
|
3153
|
-
t === void 0 && (t = {}), t =
|
|
3154
|
-
var r = new
|
|
3154
|
+
function Nn(e, t) {
|
|
3155
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3156
|
+
var r = new On(e, t).parse();
|
|
3155
3157
|
if (r.err) {
|
|
3156
|
-
var n = SyntaxError(
|
|
3158
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3157
3159
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3158
3160
|
}
|
|
3159
|
-
return t != null && t.captureLocation ||
|
|
3161
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3160
3162
|
}
|
|
3161
|
-
var
|
|
3163
|
+
var W;
|
|
3162
3164
|
(function(e) {
|
|
3163
3165
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3164
|
-
})(
|
|
3165
|
-
var
|
|
3166
|
+
})(W || (W = {}));
|
|
3167
|
+
var Ee = (
|
|
3166
3168
|
/** @class */
|
|
3167
3169
|
function(e) {
|
|
3168
|
-
|
|
3170
|
+
ye(t, e);
|
|
3169
3171
|
function t(r, n, i) {
|
|
3170
3172
|
var s = e.call(this, r) || this;
|
|
3171
3173
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3174,155 +3176,155 @@ var _e = (
|
|
|
3174
3176
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3175
3177
|
}, t;
|
|
3176
3178
|
}(Error)
|
|
3177
|
-
),
|
|
3179
|
+
), ct = (
|
|
3178
3180
|
/** @class */
|
|
3179
3181
|
function(e) {
|
|
3180
|
-
|
|
3182
|
+
ye(t, e);
|
|
3181
3183
|
function t(r, n, i, s) {
|
|
3182
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3184
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3183
3185
|
}
|
|
3184
3186
|
return t;
|
|
3185
|
-
}(
|
|
3186
|
-
),
|
|
3187
|
+
}(Ee)
|
|
3188
|
+
), In = (
|
|
3187
3189
|
/** @class */
|
|
3188
3190
|
function(e) {
|
|
3189
|
-
|
|
3191
|
+
ye(t, e);
|
|
3190
3192
|
function t(r, n, i) {
|
|
3191
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3193
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3192
3194
|
}
|
|
3193
3195
|
return t;
|
|
3194
|
-
}(
|
|
3195
|
-
),
|
|
3196
|
+
}(Ee)
|
|
3197
|
+
), Mn = (
|
|
3196
3198
|
/** @class */
|
|
3197
3199
|
function(e) {
|
|
3198
|
-
|
|
3200
|
+
ye(t, e);
|
|
3199
3201
|
function t(r, n) {
|
|
3200
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3202
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3201
3203
|
}
|
|
3202
3204
|
return t;
|
|
3203
|
-
}(
|
|
3204
|
-
),
|
|
3205
|
+
}(Ee)
|
|
3206
|
+
), x;
|
|
3205
3207
|
(function(e) {
|
|
3206
3208
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3207
|
-
})(
|
|
3208
|
-
function
|
|
3209
|
+
})(x || (x = {}));
|
|
3210
|
+
function $n(e) {
|
|
3209
3211
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3210
3212
|
var n = t[t.length - 1];
|
|
3211
|
-
return !n || n.type !==
|
|
3213
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3212
3214
|
}, []);
|
|
3213
3215
|
}
|
|
3214
|
-
function
|
|
3216
|
+
function Rn(e) {
|
|
3215
3217
|
return typeof e == "function";
|
|
3216
3218
|
}
|
|
3217
|
-
function
|
|
3218
|
-
if (e.length === 1 &&
|
|
3219
|
+
function fe(e, t, r, n, i, s, a) {
|
|
3220
|
+
if (e.length === 1 && st(e[0]))
|
|
3219
3221
|
return [
|
|
3220
3222
|
{
|
|
3221
|
-
type:
|
|
3223
|
+
type: x.literal,
|
|
3222
3224
|
value: e[0].value
|
|
3223
3225
|
}
|
|
3224
3226
|
];
|
|
3225
|
-
for (var
|
|
3227
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3226
3228
|
var h = u[l];
|
|
3227
|
-
if (
|
|
3228
|
-
|
|
3229
|
-
type:
|
|
3229
|
+
if (st(h)) {
|
|
3230
|
+
o.push({
|
|
3231
|
+
type: x.literal,
|
|
3230
3232
|
value: h.value
|
|
3231
3233
|
});
|
|
3232
3234
|
continue;
|
|
3233
3235
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
typeof s == "number" &&
|
|
3236
|
-
type:
|
|
3236
|
+
if (sn(h)) {
|
|
3237
|
+
typeof s == "number" && o.push({
|
|
3238
|
+
type: x.literal,
|
|
3237
3239
|
value: r.getNumberFormat(t).format(s)
|
|
3238
3240
|
});
|
|
3239
3241
|
continue;
|
|
3240
3242
|
}
|
|
3241
3243
|
var f = h.value;
|
|
3242
3244
|
if (!(i && f in i))
|
|
3243
|
-
throw new
|
|
3245
|
+
throw new Mn(f, a);
|
|
3244
3246
|
var c = i[f];
|
|
3245
|
-
if (
|
|
3246
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3247
|
-
type: typeof c == "string" ?
|
|
3247
|
+
if (nn(h)) {
|
|
3248
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3249
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3248
3250
|
value: c
|
|
3249
3251
|
});
|
|
3250
3252
|
continue;
|
|
3251
3253
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
var
|
|
3254
|
-
|
|
3255
|
-
type:
|
|
3256
|
-
value: r.getDateTimeFormat(t,
|
|
3254
|
+
if ($t(h)) {
|
|
3255
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3256
|
+
o.push({
|
|
3257
|
+
type: x.literal,
|
|
3258
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3257
3259
|
});
|
|
3258
3260
|
continue;
|
|
3259
3261
|
}
|
|
3260
|
-
if (
|
|
3261
|
-
var
|
|
3262
|
-
|
|
3263
|
-
type:
|
|
3264
|
-
value: r.getDateTimeFormat(t,
|
|
3262
|
+
if (Rt(h)) {
|
|
3263
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3264
|
+
o.push({
|
|
3265
|
+
type: x.literal,
|
|
3266
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3265
3267
|
});
|
|
3266
3268
|
continue;
|
|
3267
3269
|
}
|
|
3268
|
-
if (
|
|
3269
|
-
var
|
|
3270
|
-
|
|
3271
|
-
type:
|
|
3272
|
-
value: r.getNumberFormat(t,
|
|
3270
|
+
if (Mt(h)) {
|
|
3271
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3272
|
+
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3273
|
+
type: x.literal,
|
|
3274
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3273
3275
|
});
|
|
3274
3276
|
continue;
|
|
3275
3277
|
}
|
|
3276
|
-
if (
|
|
3278
|
+
if (Gt(h)) {
|
|
3277
3279
|
var m = h.children, g = h.value, v = i[g];
|
|
3278
|
-
if (
|
|
3279
|
-
throw new
|
|
3280
|
-
var
|
|
3281
|
-
return
|
|
3280
|
+
if (!Rn(v))
|
|
3281
|
+
throw new In(g, "function", a);
|
|
3282
|
+
var I = fe(m, t, r, n, i, s), P = v(I.map(function(S) {
|
|
3283
|
+
return S.value;
|
|
3282
3284
|
}));
|
|
3283
|
-
Array.isArray(
|
|
3285
|
+
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(S) {
|
|
3284
3286
|
return {
|
|
3285
|
-
type: typeof
|
|
3286
|
-
value:
|
|
3287
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3288
|
+
value: S
|
|
3287
3289
|
};
|
|
3288
3290
|
}));
|
|
3289
3291
|
}
|
|
3290
|
-
if (
|
|
3292
|
+
if (Ut(h)) {
|
|
3291
3293
|
var H = h.options[c] || h.options.other;
|
|
3292
3294
|
if (!H)
|
|
3293
|
-
throw new
|
|
3294
|
-
|
|
3295
|
+
throw new ct(h.value, c, Object.keys(h.options), a);
|
|
3296
|
+
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3295
3297
|
continue;
|
|
3296
3298
|
}
|
|
3297
|
-
if (
|
|
3299
|
+
if (Dt(h)) {
|
|
3298
3300
|
var H = h.options["=".concat(c)];
|
|
3299
3301
|
if (!H) {
|
|
3300
3302
|
if (!Intl.PluralRules)
|
|
3301
|
-
throw new
|
|
3303
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3302
3304
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3303
|
-
`,
|
|
3304
|
-
var
|
|
3305
|
-
H = h.options[
|
|
3305
|
+
`, W.MISSING_INTL_API, a);
|
|
3306
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3307
|
+
H = h.options[M] || h.options.other;
|
|
3306
3308
|
}
|
|
3307
3309
|
if (!H)
|
|
3308
|
-
throw new
|
|
3309
|
-
|
|
3310
|
+
throw new ct(h.value, c, Object.keys(h.options), a);
|
|
3311
|
+
o.push.apply(o, fe(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3310
3312
|
continue;
|
|
3311
3313
|
}
|
|
3312
3314
|
}
|
|
3313
|
-
return
|
|
3315
|
+
return $n(o);
|
|
3314
3316
|
}
|
|
3315
|
-
function
|
|
3316
|
-
return t ?
|
|
3317
|
-
return r[n] =
|
|
3317
|
+
function Un(e, t) {
|
|
3318
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3319
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3318
3320
|
}, {})) : e;
|
|
3319
3321
|
}
|
|
3320
|
-
function
|
|
3322
|
+
function Dn(e, t) {
|
|
3321
3323
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3322
|
-
return r[n] =
|
|
3323
|
-
},
|
|
3324
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3325
|
+
}, w({}, e)) : e;
|
|
3324
3326
|
}
|
|
3325
|
-
function
|
|
3327
|
+
function Ne(e) {
|
|
3326
3328
|
return {
|
|
3327
3329
|
create: function() {
|
|
3328
3330
|
return {
|
|
@@ -3336,39 +3338,39 @@ function Pe(e) {
|
|
|
3336
3338
|
}
|
|
3337
3339
|
};
|
|
3338
3340
|
}
|
|
3339
|
-
function
|
|
3341
|
+
function Gn(e) {
|
|
3340
3342
|
return e === void 0 && (e = {
|
|
3341
3343
|
number: {},
|
|
3342
3344
|
dateTime: {},
|
|
3343
3345
|
pluralRules: {}
|
|
3344
3346
|
}), {
|
|
3345
|
-
getNumberFormat:
|
|
3347
|
+
getNumberFormat: Pe(function() {
|
|
3346
3348
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3347
3349
|
r[n] = arguments[n];
|
|
3348
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3350
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3349
3351
|
}, {
|
|
3350
|
-
cache:
|
|
3352
|
+
cache: Ne(e.number),
|
|
3351
3353
|
strategy: Ce.variadic
|
|
3352
3354
|
}),
|
|
3353
|
-
getDateTimeFormat:
|
|
3355
|
+
getDateTimeFormat: Pe(function() {
|
|
3354
3356
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3355
3357
|
r[n] = arguments[n];
|
|
3356
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3358
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3357
3359
|
}, {
|
|
3358
|
-
cache:
|
|
3360
|
+
cache: Ne(e.dateTime),
|
|
3359
3361
|
strategy: Ce.variadic
|
|
3360
3362
|
}),
|
|
3361
|
-
getPluralRules:
|
|
3363
|
+
getPluralRules: Pe(function() {
|
|
3362
3364
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3363
3365
|
r[n] = arguments[n];
|
|
3364
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3366
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3365
3367
|
}, {
|
|
3366
|
-
cache:
|
|
3368
|
+
cache: Ne(e.pluralRules),
|
|
3367
3369
|
strategy: Ce.variadic
|
|
3368
3370
|
})
|
|
3369
3371
|
};
|
|
3370
3372
|
}
|
|
3371
|
-
var
|
|
3373
|
+
var Qt = (
|
|
3372
3374
|
/** @class */
|
|
3373
3375
|
function() {
|
|
3374
3376
|
function e(t, r, n, i) {
|
|
@@ -3383,11 +3385,11 @@ var Zt = (
|
|
|
3383
3385
|
if (u.length === 1)
|
|
3384
3386
|
return u[0].value;
|
|
3385
3387
|
var h = u.reduce(function(f, c) {
|
|
3386
|
-
return !f.length || c.type !==
|
|
3388
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3387
3389
|
}, []);
|
|
3388
3390
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3389
3391
|
}, this.formatToParts = function(l) {
|
|
3390
|
-
return
|
|
3392
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3391
3393
|
}, this.resolvedOptions = function() {
|
|
3392
3394
|
var l;
|
|
3393
3395
|
return {
|
|
@@ -3398,15 +3400,15 @@ var Zt = (
|
|
|
3398
3400
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3399
3401
|
if (this.message = t, !e.__parse)
|
|
3400
3402
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3401
|
-
var
|
|
3402
|
-
|
|
3403
|
-
var
|
|
3404
|
-
this.ast = e.__parse(t,
|
|
3403
|
+
var a = i || {};
|
|
3404
|
+
a.formatters;
|
|
3405
|
+
var o = Qr(a, ["formatters"]);
|
|
3406
|
+
this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
|
|
3405
3407
|
} else
|
|
3406
3408
|
this.ast = t;
|
|
3407
3409
|
if (!Array.isArray(this.ast))
|
|
3408
3410
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3409
|
-
this.formats =
|
|
3411
|
+
this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
|
|
3410
3412
|
}
|
|
3411
3413
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3412
3414
|
get: function() {
|
|
@@ -3419,7 +3421,7 @@ var Zt = (
|
|
|
3419
3421
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3420
3422
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3421
3423
|
}
|
|
3422
|
-
}, e.__parse =
|
|
3424
|
+
}, e.__parse = Nn, e.formats = {
|
|
3423
3425
|
number: {
|
|
3424
3426
|
integer: {
|
|
3425
3427
|
maximumFractionDigits: 0
|
|
@@ -3480,7 +3482,7 @@ var Zt = (
|
|
|
3480
3482
|
}, e;
|
|
3481
3483
|
}()
|
|
3482
3484
|
);
|
|
3483
|
-
function
|
|
3485
|
+
function Fn(e, t) {
|
|
3484
3486
|
if (t == null)
|
|
3485
3487
|
return;
|
|
3486
3488
|
if (t in e)
|
|
@@ -3501,101 +3503,101 @@ function Gn(e, t) {
|
|
|
3501
3503
|
n = void 0;
|
|
3502
3504
|
return n;
|
|
3503
3505
|
}
|
|
3504
|
-
const
|
|
3506
|
+
const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
|
|
3505
3507
|
if (t == null)
|
|
3506
3508
|
return;
|
|
3507
|
-
if (t in
|
|
3508
|
-
return
|
|
3509
|
-
const r =
|
|
3509
|
+
if (t in C && e in C[t])
|
|
3510
|
+
return C[t][e];
|
|
3511
|
+
const r = se(t);
|
|
3510
3512
|
for (let n = 0; n < r.length; n++) {
|
|
3511
|
-
const i = r[n], s =
|
|
3513
|
+
const i = r[n], s = Vn(i, e);
|
|
3512
3514
|
if (s)
|
|
3513
|
-
return
|
|
3515
|
+
return jn(e, t, s);
|
|
3514
3516
|
}
|
|
3515
3517
|
};
|
|
3516
|
-
let
|
|
3517
|
-
const
|
|
3518
|
-
function
|
|
3519
|
-
return
|
|
3518
|
+
let Qe;
|
|
3519
|
+
const ie = _e({});
|
|
3520
|
+
function kn(e) {
|
|
3521
|
+
return Qe[e] || null;
|
|
3520
3522
|
}
|
|
3521
|
-
function
|
|
3522
|
-
return e in
|
|
3523
|
+
function qt(e) {
|
|
3524
|
+
return e in Qe;
|
|
3523
3525
|
}
|
|
3524
|
-
function
|
|
3525
|
-
if (!
|
|
3526
|
+
function Vn(e, t) {
|
|
3527
|
+
if (!qt(e))
|
|
3526
3528
|
return null;
|
|
3527
|
-
const r =
|
|
3528
|
-
return
|
|
3529
|
+
const r = kn(e);
|
|
3530
|
+
return Fn(r, t);
|
|
3529
3531
|
}
|
|
3530
|
-
function
|
|
3532
|
+
function Xn(e) {
|
|
3531
3533
|
if (e == null)
|
|
3532
3534
|
return;
|
|
3533
|
-
const t =
|
|
3535
|
+
const t = se(e);
|
|
3534
3536
|
for (let r = 0; r < t.length; r++) {
|
|
3535
3537
|
const n = t[r];
|
|
3536
|
-
if (
|
|
3538
|
+
if (qt(n))
|
|
3537
3539
|
return n;
|
|
3538
3540
|
}
|
|
3539
3541
|
}
|
|
3540
|
-
function
|
|
3541
|
-
delete
|
|
3542
|
+
function Yt(e, ...t) {
|
|
3543
|
+
delete C[e], ie.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3542
3544
|
}
|
|
3543
|
-
|
|
3544
|
-
[
|
|
3545
|
+
Q(
|
|
3546
|
+
[ie],
|
|
3545
3547
|
([e]) => Object.keys(e)
|
|
3546
3548
|
);
|
|
3547
|
-
|
|
3548
|
-
const
|
|
3549
|
-
function
|
|
3550
|
-
|
|
3549
|
+
ie.subscribe((e) => Qe = e);
|
|
3550
|
+
const ce = {};
|
|
3551
|
+
function Wn(e, t) {
|
|
3552
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3551
3553
|
}
|
|
3552
|
-
function
|
|
3553
|
-
return
|
|
3554
|
+
function Kt(e) {
|
|
3555
|
+
return ce[e];
|
|
3554
3556
|
}
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3557
|
-
const r =
|
|
3557
|
+
function zn(e) {
|
|
3558
|
+
return se(e).map((t) => {
|
|
3559
|
+
const r = Kt(t);
|
|
3558
3560
|
return [t, r ? [...r] : []];
|
|
3559
3561
|
}).filter(([, t]) => t.length > 0);
|
|
3560
3562
|
}
|
|
3561
|
-
function
|
|
3562
|
-
return e == null ? !1 :
|
|
3563
|
+
function de(e) {
|
|
3564
|
+
return e == null ? !1 : se(e).some(
|
|
3563
3565
|
(t) => {
|
|
3564
3566
|
var r;
|
|
3565
|
-
return (r =
|
|
3567
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3566
3568
|
}
|
|
3567
3569
|
);
|
|
3568
3570
|
}
|
|
3569
|
-
function
|
|
3571
|
+
function Zn(e, t) {
|
|
3570
3572
|
return Promise.all(
|
|
3571
|
-
t.map((n) => (
|
|
3572
|
-
).then((n) =>
|
|
3573
|
-
}
|
|
3574
|
-
const
|
|
3575
|
-
function
|
|
3576
|
-
if (!
|
|
3577
|
-
return e in
|
|
3578
|
-
const t =
|
|
3579
|
-
return
|
|
3573
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3574
|
+
).then((n) => Yt(e, ...n));
|
|
3575
|
+
}
|
|
3576
|
+
const q = {};
|
|
3577
|
+
function er(e) {
|
|
3578
|
+
if (!de(e))
|
|
3579
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3580
|
+
const t = zn(e);
|
|
3581
|
+
return q[e] = Promise.all(
|
|
3580
3582
|
t.map(
|
|
3581
|
-
([r, n]) =>
|
|
3583
|
+
([r, n]) => Zn(r, n)
|
|
3582
3584
|
)
|
|
3583
3585
|
).then(() => {
|
|
3584
|
-
if (
|
|
3585
|
-
return
|
|
3586
|
-
delete
|
|
3587
|
-
}),
|
|
3586
|
+
if (de(e))
|
|
3587
|
+
return er(e);
|
|
3588
|
+
delete q[e];
|
|
3589
|
+
}), q[e];
|
|
3588
3590
|
}
|
|
3589
|
-
var
|
|
3591
|
+
var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
|
|
3590
3592
|
var r = {};
|
|
3591
3593
|
for (var n in e)
|
|
3592
|
-
|
|
3593
|
-
if (e != null &&
|
|
3594
|
-
for (var n of
|
|
3595
|
-
t.indexOf(n) < 0 &&
|
|
3594
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3595
|
+
if (e != null && mt)
|
|
3596
|
+
for (var n of mt(e))
|
|
3597
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3596
3598
|
return r;
|
|
3597
3599
|
};
|
|
3598
|
-
const
|
|
3600
|
+
const Yn = {
|
|
3599
3601
|
number: {
|
|
3600
3602
|
scientific: { notation: "scientific" },
|
|
3601
3603
|
engineering: { notation: "engineering" },
|
|
@@ -3625,183 +3627,183 @@ const qn = {
|
|
|
3625
3627
|
}
|
|
3626
3628
|
}
|
|
3627
3629
|
};
|
|
3628
|
-
function
|
|
3630
|
+
function Kn({ locale: e, id: t }) {
|
|
3629
3631
|
console.warn(
|
|
3630
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3632
|
+
`[svelte-i18n] The message "${t}" was not found in "${se(
|
|
3631
3633
|
e
|
|
3632
|
-
).join('", "')}".${
|
|
3634
|
+
).join('", "')}".${de(N()) ? `
|
|
3633
3635
|
|
|
3634
3636
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3635
3637
|
);
|
|
3636
3638
|
}
|
|
3637
|
-
const
|
|
3639
|
+
const ei = {
|
|
3638
3640
|
fallbackLocale: null,
|
|
3639
3641
|
loadingDelay: 200,
|
|
3640
|
-
formats:
|
|
3642
|
+
formats: Yn,
|
|
3641
3643
|
warnOnMissingMessages: !0,
|
|
3642
3644
|
handleMissingMessage: void 0,
|
|
3643
3645
|
ignoreTag: !0
|
|
3644
|
-
},
|
|
3645
|
-
function
|
|
3646
|
-
return
|
|
3646
|
+
}, Y = ei;
|
|
3647
|
+
function z() {
|
|
3648
|
+
return Y;
|
|
3647
3649
|
}
|
|
3648
|
-
function
|
|
3649
|
-
const t = e, { formats: r } = t, n =
|
|
3650
|
+
function ti(e) {
|
|
3651
|
+
const t = e, { formats: r } = t, n = qn(t, ["formats"]);
|
|
3650
3652
|
let i = e.fallbackLocale;
|
|
3651
3653
|
if (e.initialLocale)
|
|
3652
3654
|
try {
|
|
3653
|
-
|
|
3655
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3654
3656
|
} catch (s) {
|
|
3655
3657
|
console.warn(
|
|
3656
3658
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3657
3659
|
);
|
|
3658
3660
|
}
|
|
3659
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3661
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
|
|
3660
3662
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3661
|
-
)), Object.assign(
|
|
3662
|
-
}
|
|
3663
|
-
const
|
|
3664
|
-
var
|
|
3665
|
-
for (var r in t)
|
|
3666
|
-
|
|
3667
|
-
if (
|
|
3668
|
-
for (var r of
|
|
3669
|
-
|
|
3663
|
+
)), 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)), R.set(i);
|
|
3664
|
+
}
|
|
3665
|
+
const Ie = _e(!1);
|
|
3666
|
+
var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
|
|
3667
|
+
for (var r in t || (t = {}))
|
|
3668
|
+
si.call(t, r) && dt(e, r, t[r]);
|
|
3669
|
+
if (pt)
|
|
3670
|
+
for (var r of pt(t))
|
|
3671
|
+
oi.call(t, r) && dt(e, r, t[r]);
|
|
3670
3672
|
return e;
|
|
3671
|
-
},
|
|
3672
|
-
let
|
|
3673
|
-
const
|
|
3674
|
-
function
|
|
3673
|
+
}, ui = (e, t) => ni(e, ii(t));
|
|
3674
|
+
let Xe;
|
|
3675
|
+
const be = _e(null);
|
|
3676
|
+
function bt(e) {
|
|
3675
3677
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3676
3678
|
}
|
|
3677
|
-
function
|
|
3678
|
-
const r =
|
|
3679
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3679
|
+
function se(e, t = z().fallbackLocale) {
|
|
3680
|
+
const r = bt(e);
|
|
3681
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3680
3682
|
}
|
|
3681
|
-
function
|
|
3682
|
-
return
|
|
3683
|
+
function N() {
|
|
3684
|
+
return Xe != null ? Xe : void 0;
|
|
3683
3685
|
}
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
+
be.subscribe((e) => {
|
|
3687
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3686
3688
|
});
|
|
3687
|
-
const
|
|
3688
|
-
if (e &&
|
|
3689
|
-
const { loadingDelay: t } =
|
|
3689
|
+
const hi = (e) => {
|
|
3690
|
+
if (e && Xn(e) && de(e)) {
|
|
3691
|
+
const { loadingDelay: t } = z();
|
|
3690
3692
|
let r;
|
|
3691
|
-
return typeof window != "undefined" &&
|
|
3692
|
-
() =>
|
|
3693
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3694
|
+
() => Ie.set(!0),
|
|
3693
3695
|
t
|
|
3694
|
-
) :
|
|
3695
|
-
|
|
3696
|
+
) : Ie.set(!0), er(e).then(() => {
|
|
3697
|
+
be.set(e);
|
|
3696
3698
|
}).finally(() => {
|
|
3697
|
-
clearTimeout(r),
|
|
3699
|
+
clearTimeout(r), Ie.set(!1);
|
|
3698
3700
|
});
|
|
3699
3701
|
}
|
|
3700
|
-
return
|
|
3701
|
-
},
|
|
3702
|
-
set:
|
|
3703
|
-
}),
|
|
3702
|
+
return be.set(e);
|
|
3703
|
+
}, R = ui(ai({}, be), {
|
|
3704
|
+
set: hi
|
|
3705
|
+
}), xe = (e) => {
|
|
3704
3706
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3705
3707
|
return (n) => {
|
|
3706
3708
|
const i = JSON.stringify(n);
|
|
3707
3709
|
return i in t ? t[i] : t[i] = e(n);
|
|
3708
3710
|
};
|
|
3709
3711
|
};
|
|
3710
|
-
var
|
|
3712
|
+
var li = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3711
3713
|
for (var r in t || (t = {}))
|
|
3712
|
-
|
|
3713
|
-
if (
|
|
3714
|
-
for (var r of
|
|
3715
|
-
|
|
3714
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3715
|
+
if (ge)
|
|
3716
|
+
for (var r of ge(t))
|
|
3717
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3716
3718
|
return e;
|
|
3717
|
-
},
|
|
3719
|
+
}, J = (e, t) => {
|
|
3718
3720
|
var r = {};
|
|
3719
3721
|
for (var n in e)
|
|
3720
|
-
|
|
3721
|
-
if (e != null &&
|
|
3722
|
-
for (var n of
|
|
3723
|
-
t.indexOf(n) < 0 &&
|
|
3722
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3723
|
+
if (e != null && ge)
|
|
3724
|
+
for (var n of ge(e))
|
|
3725
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3724
3726
|
return r;
|
|
3725
3727
|
};
|
|
3726
|
-
const
|
|
3727
|
-
const { formats: r } =
|
|
3728
|
+
const te = (e, t) => {
|
|
3729
|
+
const { formats: r } = z();
|
|
3728
3730
|
if (e in r && t in r[e])
|
|
3729
3731
|
return r[e][t];
|
|
3730
3732
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3731
|
-
},
|
|
3733
|
+
}, fi = xe(
|
|
3732
3734
|
(e) => {
|
|
3733
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3735
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3734
3736
|
if (r == null)
|
|
3735
3737
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3736
|
-
return n && (i =
|
|
3738
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3737
3739
|
}
|
|
3738
|
-
),
|
|
3740
|
+
), ci = xe(
|
|
3739
3741
|
(e) => {
|
|
3740
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3742
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3741
3743
|
if (r == null)
|
|
3742
3744
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3743
|
-
return n ? i =
|
|
3745
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3744
3746
|
}
|
|
3745
|
-
),
|
|
3747
|
+
), mi = xe(
|
|
3746
3748
|
(e) => {
|
|
3747
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3749
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3748
3750
|
if (r == null)
|
|
3749
3751
|
throw new Error(
|
|
3750
3752
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3751
3753
|
);
|
|
3752
|
-
return n ? i =
|
|
3754
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3753
3755
|
}
|
|
3754
|
-
),
|
|
3756
|
+
), pi = (e = {}) => {
|
|
3755
3757
|
var t = e, {
|
|
3756
|
-
locale: r =
|
|
3757
|
-
} = t, n =
|
|
3758
|
+
locale: r = N()
|
|
3759
|
+
} = t, n = J(t, [
|
|
3758
3760
|
"locale"
|
|
3759
3761
|
]);
|
|
3760
|
-
return
|
|
3762
|
+
return fi(Je({ locale: r }, n));
|
|
3761
3763
|
}, di = (e = {}) => {
|
|
3762
3764
|
var t = e, {
|
|
3763
|
-
locale: r =
|
|
3764
|
-
} = t, n =
|
|
3765
|
+
locale: r = N()
|
|
3766
|
+
} = t, n = J(t, [
|
|
3765
3767
|
"locale"
|
|
3766
3768
|
]);
|
|
3767
|
-
return
|
|
3768
|
-
},
|
|
3769
|
+
return ci(Je({ locale: r }, n));
|
|
3770
|
+
}, bi = (e = {}) => {
|
|
3769
3771
|
var t = e, {
|
|
3770
|
-
locale: r =
|
|
3771
|
-
} = t, n =
|
|
3772
|
+
locale: r = N()
|
|
3773
|
+
} = t, n = J(t, [
|
|
3772
3774
|
"locale"
|
|
3773
3775
|
]);
|
|
3774
|
-
return
|
|
3775
|
-
},
|
|
3776
|
+
return mi(Je({ locale: r }, n));
|
|
3777
|
+
}, gi = xe(
|
|
3776
3778
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3777
|
-
(e, t =
|
|
3778
|
-
ignoreTag:
|
|
3779
|
+
(e, t = N()) => new Qt(e, t, z().formats, {
|
|
3780
|
+
ignoreTag: z().ignoreTag
|
|
3779
3781
|
})
|
|
3780
|
-
),
|
|
3782
|
+
), _i = (e, t = {}) => {
|
|
3781
3783
|
var r, n, i, s;
|
|
3782
|
-
let
|
|
3783
|
-
typeof e == "object" && (
|
|
3784
|
+
let a = t;
|
|
3785
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3784
3786
|
const {
|
|
3785
|
-
values:
|
|
3786
|
-
locale: l =
|
|
3787
|
+
values: o,
|
|
3788
|
+
locale: l = N(),
|
|
3787
3789
|
default: u
|
|
3788
|
-
} =
|
|
3790
|
+
} = a;
|
|
3789
3791
|
if (l == null)
|
|
3790
3792
|
throw new Error(
|
|
3791
3793
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3792
3794
|
);
|
|
3793
|
-
let h =
|
|
3795
|
+
let h = Jt(e, l);
|
|
3794
3796
|
if (!h)
|
|
3795
|
-
h = (s = (i = (n = (r =
|
|
3797
|
+
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3796
3798
|
else if (typeof h != "string")
|
|
3797
3799
|
return console.warn(
|
|
3798
3800
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3799
3801
|
), h;
|
|
3800
|
-
if (!
|
|
3802
|
+
if (!o)
|
|
3801
3803
|
return h;
|
|
3802
3804
|
let f = h;
|
|
3803
3805
|
try {
|
|
3804
|
-
f =
|
|
3806
|
+
f = gi(h, l).format(o);
|
|
3805
3807
|
} catch (c) {
|
|
3806
3808
|
c instanceof Error && console.warn(
|
|
3807
3809
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3809,20 +3811,20 @@ const ee = (e, t) => {
|
|
|
3809
3811
|
);
|
|
3810
3812
|
}
|
|
3811
3813
|
return f;
|
|
3812
|
-
},
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
function
|
|
3818
|
-
|
|
3819
|
-
}
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3814
|
+
}, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Jt(e, t), Hi = Q([R, ie], () => _i);
|
|
3815
|
+
Q([R], () => yi);
|
|
3816
|
+
Q([R], () => Ei);
|
|
3817
|
+
Q([R], () => xi);
|
|
3818
|
+
Q([R, ie], () => vi);
|
|
3819
|
+
function _t(e, t) {
|
|
3820
|
+
Yt(e, t);
|
|
3821
|
+
}
|
|
3822
|
+
function Bi(e) {
|
|
3823
|
+
ti({
|
|
3822
3824
|
fallbackLocale: "en"
|
|
3823
|
-
}),
|
|
3825
|
+
}), R.set(e);
|
|
3824
3826
|
}
|
|
3825
|
-
const
|
|
3827
|
+
const yt = {
|
|
3826
3828
|
en: {
|
|
3827
3829
|
header: {
|
|
3828
3830
|
general: "Cashier",
|
|
@@ -3845,18 +3847,18 @@ const _t = {
|
|
|
3845
3847
|
}
|
|
3846
3848
|
}
|
|
3847
3849
|
};
|
|
3848
|
-
function
|
|
3849
|
-
|
|
3850
|
+
function Ti(e) {
|
|
3851
|
+
pr(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}");
|
|
3850
3852
|
}
|
|
3851
|
-
const
|
|
3852
|
-
function
|
|
3853
|
+
const wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), xt = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({});
|
|
3854
|
+
function Ht(e) {
|
|
3853
3855
|
let t, r, n;
|
|
3854
3856
|
return {
|
|
3855
3857
|
c() {
|
|
3856
|
-
t =
|
|
3858
|
+
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>', ne(t, "class", "CashierHeaderLeftButton");
|
|
3857
3859
|
},
|
|
3858
3860
|
m(i, s) {
|
|
3859
|
-
|
|
3861
|
+
$(i, t, s), r || (n = Pt(
|
|
3860
3862
|
t,
|
|
3861
3863
|
"click",
|
|
3862
3864
|
/*back*/
|
|
@@ -3865,32 +3867,32 @@ function vt(e) {
|
|
|
3865
3867
|
},
|
|
3866
3868
|
p: T,
|
|
3867
3869
|
d(i) {
|
|
3868
|
-
i &&
|
|
3870
|
+
i && L(t), r = !1, n();
|
|
3869
3871
|
}
|
|
3870
3872
|
};
|
|
3871
3873
|
}
|
|
3872
|
-
function
|
|
3874
|
+
function Oi(e) {
|
|
3873
3875
|
let t, r = (
|
|
3874
3876
|
/*backButton*/
|
|
3875
|
-
e[1] &&
|
|
3877
|
+
e[1] && Ht(e)
|
|
3876
3878
|
);
|
|
3877
3879
|
return {
|
|
3878
3880
|
c() {
|
|
3879
|
-
r && r.c(), t =
|
|
3881
|
+
r && r.c(), t = Ot();
|
|
3880
3882
|
},
|
|
3881
3883
|
m(n, i) {
|
|
3882
|
-
r && r.m(n, i),
|
|
3884
|
+
r && r.m(n, i), $(n, t, i);
|
|
3883
3885
|
},
|
|
3884
3886
|
p(n, i) {
|
|
3885
3887
|
/*backButton*/
|
|
3886
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3888
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3887
3889
|
},
|
|
3888
3890
|
d(n) {
|
|
3889
|
-
n &&
|
|
3891
|
+
n && L(t), r && r.d(n);
|
|
3890
3892
|
}
|
|
3891
3893
|
};
|
|
3892
3894
|
}
|
|
3893
|
-
function
|
|
3895
|
+
function Pi(e) {
|
|
3894
3896
|
let t, r = (
|
|
3895
3897
|
/*$_*/
|
|
3896
3898
|
e[4](
|
|
@@ -3900,10 +3902,10 @@ function Ci(e) {
|
|
|
3900
3902
|
), n;
|
|
3901
3903
|
return {
|
|
3902
3904
|
c() {
|
|
3903
|
-
t =
|
|
3905
|
+
t = Z("span"), n = ze(r), ne(t, "class", "CashierHeaderTitle");
|
|
3904
3906
|
},
|
|
3905
3907
|
m(i, s) {
|
|
3906
|
-
|
|
3908
|
+
$(i, t, s), me(t, n);
|
|
3907
3909
|
},
|
|
3908
3910
|
p(i, s) {
|
|
3909
3911
|
s & /*$_, titleText*/
|
|
@@ -3911,21 +3913,21 @@ function Ci(e) {
|
|
|
3911
3913
|
i[4](
|
|
3912
3914
|
/*titleText*/
|
|
3913
3915
|
i[2]
|
|
3914
|
-
) + "") &&
|
|
3916
|
+
) + "") && _r(n, r);
|
|
3915
3917
|
},
|
|
3916
3918
|
d(i) {
|
|
3917
|
-
i &&
|
|
3919
|
+
i && L(t);
|
|
3918
3920
|
}
|
|
3919
3921
|
};
|
|
3920
3922
|
}
|
|
3921
|
-
function
|
|
3923
|
+
function Bt(e) {
|
|
3922
3924
|
let t, r, n;
|
|
3923
3925
|
return {
|
|
3924
3926
|
c() {
|
|
3925
|
-
t =
|
|
3927
|
+
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>', ne(t, "class", "CashierHeaderRightButton");
|
|
3926
3928
|
},
|
|
3927
3929
|
m(i, s) {
|
|
3928
|
-
|
|
3930
|
+
$(i, t, s), r || (n = Pt(
|
|
3929
3931
|
t,
|
|
3930
3932
|
"click",
|
|
3931
3933
|
/*close*/
|
|
@@ -3934,208 +3936,208 @@ function Ht(e) {
|
|
|
3934
3936
|
},
|
|
3935
3937
|
p: T,
|
|
3936
3938
|
d(i) {
|
|
3937
|
-
i &&
|
|
3939
|
+
i && L(t), r = !1, n();
|
|
3938
3940
|
}
|
|
3939
3941
|
};
|
|
3940
3942
|
}
|
|
3941
|
-
function
|
|
3943
|
+
function Ci(e) {
|
|
3942
3944
|
let t, r = (
|
|
3943
3945
|
/*closeButton*/
|
|
3944
|
-
e[3] &&
|
|
3946
|
+
e[3] && Bt(e)
|
|
3945
3947
|
);
|
|
3946
3948
|
return {
|
|
3947
3949
|
c() {
|
|
3948
|
-
r && r.c(), t =
|
|
3950
|
+
r && r.c(), t = Ot();
|
|
3949
3951
|
},
|
|
3950
3952
|
m(n, i) {
|
|
3951
|
-
r && r.m(n, i),
|
|
3953
|
+
r && r.m(n, i), $(n, t, i);
|
|
3952
3954
|
},
|
|
3953
3955
|
p(n, i) {
|
|
3954
3956
|
/*closeButton*/
|
|
3955
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3957
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3956
3958
|
},
|
|
3957
3959
|
d(n) {
|
|
3958
|
-
n &&
|
|
3960
|
+
n && L(t), r && r.d(n);
|
|
3959
3961
|
}
|
|
3960
3962
|
};
|
|
3961
3963
|
}
|
|
3962
|
-
function
|
|
3964
|
+
function Li(e) {
|
|
3963
3965
|
let t, r, n, i;
|
|
3964
3966
|
const s = (
|
|
3965
3967
|
/*#slots*/
|
|
3966
3968
|
e[15].leftButton
|
|
3967
|
-
),
|
|
3969
|
+
), a = He(
|
|
3968
3970
|
s,
|
|
3969
3971
|
e,
|
|
3970
3972
|
/*$$scope*/
|
|
3971
3973
|
e[14],
|
|
3972
|
-
|
|
3973
|
-
),
|
|
3974
|
+
vt
|
|
3975
|
+
), o = a || Oi(e), l = (
|
|
3974
3976
|
/*#slots*/
|
|
3975
3977
|
e[15].title
|
|
3976
|
-
), u =
|
|
3978
|
+
), u = He(
|
|
3977
3979
|
l,
|
|
3978
3980
|
e,
|
|
3979
3981
|
/*$$scope*/
|
|
3980
3982
|
e[14],
|
|
3981
3983
|
xt
|
|
3982
|
-
), h = u ||
|
|
3984
|
+
), h = u || Pi(e), f = (
|
|
3983
3985
|
/*#slots*/
|
|
3984
3986
|
e[15].rightButton
|
|
3985
|
-
), c =
|
|
3987
|
+
), c = He(
|
|
3986
3988
|
f,
|
|
3987
3989
|
e,
|
|
3988
3990
|
/*$$scope*/
|
|
3989
3991
|
e[14],
|
|
3990
|
-
|
|
3991
|
-
),
|
|
3992
|
+
Et
|
|
3993
|
+
), p = c || Ci(e);
|
|
3992
3994
|
return {
|
|
3993
3995
|
c() {
|
|
3994
|
-
t =
|
|
3996
|
+
t = Z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), ne(t, "class", "CashierHeader");
|
|
3995
3997
|
},
|
|
3996
3998
|
m(m, g) {
|
|
3997
|
-
|
|
3999
|
+
$(m, t, g), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3998
4000
|
},
|
|
3999
4001
|
p(m, [g]) {
|
|
4000
|
-
|
|
4001
|
-
16384) &&
|
|
4002
|
-
|
|
4002
|
+
a ? a.p && (!i || g & /*$$scope*/
|
|
4003
|
+
16384) && Te(
|
|
4004
|
+
a,
|
|
4003
4005
|
s,
|
|
4004
4006
|
m,
|
|
4005
4007
|
/*$$scope*/
|
|
4006
4008
|
m[14],
|
|
4007
|
-
i ?
|
|
4009
|
+
i ? Be(
|
|
4008
4010
|
s,
|
|
4009
4011
|
/*$$scope*/
|
|
4010
4012
|
m[14],
|
|
4011
4013
|
g,
|
|
4012
|
-
|
|
4013
|
-
) :
|
|
4014
|
+
Ai
|
|
4015
|
+
) : we(
|
|
4014
4016
|
/*$$scope*/
|
|
4015
4017
|
m[14]
|
|
4016
4018
|
),
|
|
4017
|
-
|
|
4018
|
-
) :
|
|
4019
|
-
2) &&
|
|
4020
|
-
16384) &&
|
|
4019
|
+
vt
|
|
4020
|
+
) : o && o.p && (!i || g & /*backButton*/
|
|
4021
|
+
2) && o.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
|
|
4022
|
+
16384) && Te(
|
|
4021
4023
|
u,
|
|
4022
4024
|
l,
|
|
4023
4025
|
m,
|
|
4024
4026
|
/*$$scope*/
|
|
4025
4027
|
m[14],
|
|
4026
|
-
i ?
|
|
4028
|
+
i ? Be(
|
|
4027
4029
|
l,
|
|
4028
4030
|
/*$$scope*/
|
|
4029
4031
|
m[14],
|
|
4030
4032
|
g,
|
|
4031
|
-
|
|
4032
|
-
) :
|
|
4033
|
+
Si
|
|
4034
|
+
) : we(
|
|
4033
4035
|
/*$$scope*/
|
|
4034
4036
|
m[14]
|
|
4035
4037
|
),
|
|
4036
4038
|
xt
|
|
4037
|
-
) : h.p && (!i || g & /*$_, titleText*/
|
|
4039
|
+
) : h && h.p && (!i || g & /*$_, titleText*/
|
|
4038
4040
|
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4039
|
-
16384) &&
|
|
4041
|
+
16384) && Te(
|
|
4040
4042
|
c,
|
|
4041
4043
|
f,
|
|
4042
4044
|
m,
|
|
4043
4045
|
/*$$scope*/
|
|
4044
4046
|
m[14],
|
|
4045
|
-
i ?
|
|
4047
|
+
i ? Be(
|
|
4046
4048
|
f,
|
|
4047
4049
|
/*$$scope*/
|
|
4048
4050
|
m[14],
|
|
4049
4051
|
g,
|
|
4050
|
-
|
|
4051
|
-
) :
|
|
4052
|
+
wi
|
|
4053
|
+
) : we(
|
|
4052
4054
|
/*$$scope*/
|
|
4053
4055
|
m[14]
|
|
4054
4056
|
),
|
|
4055
|
-
|
|
4056
|
-
) :
|
|
4057
|
-
8) &&
|
|
4057
|
+
Et
|
|
4058
|
+
) : p && p.p && (!i || g & /*closeButton*/
|
|
4059
|
+
8) && p.p(m, i ? g : -1);
|
|
4058
4060
|
},
|
|
4059
4061
|
i(m) {
|
|
4060
|
-
i || (
|
|
4062
|
+
i || (he(o, m), he(h, m), he(p, m), i = !0);
|
|
4061
4063
|
},
|
|
4062
4064
|
o(m) {
|
|
4063
|
-
|
|
4065
|
+
Ae(o, m), Ae(h, m), Ae(p, m), i = !1;
|
|
4064
4066
|
},
|
|
4065
4067
|
d(m) {
|
|
4066
|
-
m &&
|
|
4068
|
+
m && L(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
|
|
4067
4069
|
}
|
|
4068
4070
|
};
|
|
4069
4071
|
}
|
|
4070
|
-
function
|
|
4072
|
+
function Ni(e, t, r) {
|
|
4071
4073
|
let n;
|
|
4072
|
-
|
|
4073
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4074
|
-
const
|
|
4074
|
+
mr(e, Hi, (_) => r(4, n = _));
|
|
4075
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4076
|
+
const I = () => {
|
|
4075
4077
|
let _ = l;
|
|
4076
|
-
_ && fetch(_).then((
|
|
4077
|
-
Object.keys(
|
|
4078
|
-
|
|
4078
|
+
_ && fetch(_).then((A) => A.json()).then((A) => {
|
|
4079
|
+
Object.keys(A).forEach((D) => {
|
|
4080
|
+
_t(D, A[D]);
|
|
4079
4081
|
});
|
|
4080
|
-
}).catch((
|
|
4081
|
-
console.log(
|
|
4082
|
+
}).catch((A) => {
|
|
4083
|
+
console.log(A);
|
|
4082
4084
|
});
|
|
4083
4085
|
};
|
|
4084
|
-
Object.keys(
|
|
4085
|
-
|
|
4086
|
+
Object.keys(yt).forEach((_) => {
|
|
4087
|
+
_t(_, yt[_]);
|
|
4086
4088
|
});
|
|
4087
|
-
const
|
|
4089
|
+
const P = () => {
|
|
4088
4090
|
let _ = document.createElement("style");
|
|
4089
|
-
_.innerHTML =
|
|
4091
|
+
_.innerHTML = a, p.appendChild(_);
|
|
4090
4092
|
}, H = () => {
|
|
4091
|
-
let _ = new URL(
|
|
4092
|
-
fetch(_.href).then((
|
|
4093
|
-
|
|
4093
|
+
let _ = new URL(o), A = document.createElement("style");
|
|
4094
|
+
fetch(_.href).then((D) => D.text()).then((D) => {
|
|
4095
|
+
A.innerHTML = D, setTimeout(
|
|
4094
4096
|
() => {
|
|
4095
|
-
|
|
4097
|
+
p.appendChild(A);
|
|
4096
4098
|
},
|
|
4097
4099
|
1
|
|
4098
4100
|
);
|
|
4099
4101
|
});
|
|
4100
|
-
},
|
|
4101
|
-
|
|
4102
|
-
},
|
|
4102
|
+
}, M = () => {
|
|
4103
|
+
Bi(f);
|
|
4104
|
+
}, S = () => {
|
|
4103
4105
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4104
|
-
},
|
|
4106
|
+
}, U = () => {
|
|
4105
4107
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4106
|
-
},
|
|
4108
|
+
}, oe = () => {
|
|
4107
4109
|
r(1, m = !!u && u !== "false");
|
|
4108
|
-
}, rr = () => {
|
|
4109
|
-
r(3, v = !!c && c !== "false");
|
|
4110
4110
|
}, nr = () => {
|
|
4111
|
+
r(3, v = !!c && c !== "false");
|
|
4112
|
+
}, ir = () => {
|
|
4111
4113
|
r(2, g = h || "header.general");
|
|
4112
4114
|
};
|
|
4113
|
-
function
|
|
4114
|
-
|
|
4115
|
-
|
|
4115
|
+
function sr(_) {
|
|
4116
|
+
Me[_ ? "unshift" : "push"](() => {
|
|
4117
|
+
p = _, r(0, p);
|
|
4116
4118
|
});
|
|
4117
4119
|
}
|
|
4118
4120
|
return e.$$set = (_) => {
|
|
4119
|
-
"clientstyling" in _ && r(7,
|
|
4121
|
+
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4120
4122
|
}, e.$$.update = () => {
|
|
4121
4123
|
e.$$.dirty & /*lang*/
|
|
4122
|
-
4096 && f &&
|
|
4123
|
-
6144 && f && h &&
|
|
4124
|
-
129 &&
|
|
4125
|
-
257 &&
|
|
4126
|
-
4608 && f && l &&
|
|
4127
|
-
1024 && u &&
|
|
4128
|
-
8192 && c &&
|
|
4124
|
+
4096 && f && M(), e.$$.dirty & /*lang, title*/
|
|
4125
|
+
6144 && f && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4126
|
+
129 && a && p && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4127
|
+
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4128
|
+
4608 && f && l && I(), e.$$.dirty & /*showbackbutton*/
|
|
4129
|
+
1024 && u && oe(), e.$$.dirty & /*showclosebutton*/
|
|
4130
|
+
8192 && c && nr();
|
|
4129
4131
|
}, [
|
|
4130
|
-
|
|
4132
|
+
p,
|
|
4131
4133
|
m,
|
|
4132
4134
|
g,
|
|
4133
4135
|
v,
|
|
4134
4136
|
n,
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
o,
|
|
4137
|
+
S,
|
|
4138
|
+
U,
|
|
4138
4139
|
a,
|
|
4140
|
+
o,
|
|
4139
4141
|
l,
|
|
4140
4142
|
u,
|
|
4141
4143
|
h,
|
|
@@ -4143,17 +4145,17 @@ function Li(e, t, r) {
|
|
|
4143
4145
|
c,
|
|
4144
4146
|
s,
|
|
4145
4147
|
i,
|
|
4146
|
-
|
|
4148
|
+
sr
|
|
4147
4149
|
];
|
|
4148
4150
|
}
|
|
4149
|
-
class
|
|
4151
|
+
class Ii extends Pr {
|
|
4150
4152
|
constructor(t) {
|
|
4151
|
-
super(),
|
|
4153
|
+
super(), Ar(
|
|
4152
4154
|
this,
|
|
4153
4155
|
t,
|
|
4156
|
+
Ni,
|
|
4154
4157
|
Li,
|
|
4155
|
-
|
|
4156
|
-
Tt,
|
|
4158
|
+
wt,
|
|
4157
4159
|
{
|
|
4158
4160
|
clientstyling: 7,
|
|
4159
4161
|
clientstylingurl: 8,
|
|
@@ -4163,53 +4165,53 @@ class Ni extends Cr {
|
|
|
4163
4165
|
lang: 12,
|
|
4164
4166
|
showclosebutton: 13
|
|
4165
4167
|
},
|
|
4166
|
-
|
|
4168
|
+
Ti
|
|
4167
4169
|
);
|
|
4168
4170
|
}
|
|
4169
4171
|
get clientstyling() {
|
|
4170
4172
|
return this.$$.ctx[7];
|
|
4171
4173
|
}
|
|
4172
4174
|
set clientstyling(t) {
|
|
4173
|
-
this.$$set({ clientstyling: t }),
|
|
4175
|
+
this.$$set({ clientstyling: t }), O();
|
|
4174
4176
|
}
|
|
4175
4177
|
get clientstylingurl() {
|
|
4176
4178
|
return this.$$.ctx[8];
|
|
4177
4179
|
}
|
|
4178
4180
|
set clientstylingurl(t) {
|
|
4179
|
-
this.$$set({ clientstylingurl: t }),
|
|
4181
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4180
4182
|
}
|
|
4181
4183
|
get translationurl() {
|
|
4182
4184
|
return this.$$.ctx[9];
|
|
4183
4185
|
}
|
|
4184
4186
|
set translationurl(t) {
|
|
4185
|
-
this.$$set({ translationurl: t }),
|
|
4187
|
+
this.$$set({ translationurl: t }), O();
|
|
4186
4188
|
}
|
|
4187
4189
|
get showbackbutton() {
|
|
4188
4190
|
return this.$$.ctx[10];
|
|
4189
4191
|
}
|
|
4190
4192
|
set showbackbutton(t) {
|
|
4191
|
-
this.$$set({ showbackbutton: t }),
|
|
4193
|
+
this.$$set({ showbackbutton: t }), O();
|
|
4192
4194
|
}
|
|
4193
4195
|
get title() {
|
|
4194
4196
|
return this.$$.ctx[11];
|
|
4195
4197
|
}
|
|
4196
4198
|
set title(t) {
|
|
4197
|
-
this.$$set({ title: t }),
|
|
4199
|
+
this.$$set({ title: t }), O();
|
|
4198
4200
|
}
|
|
4199
4201
|
get lang() {
|
|
4200
4202
|
return this.$$.ctx[12];
|
|
4201
4203
|
}
|
|
4202
4204
|
set lang(t) {
|
|
4203
|
-
this.$$set({ lang: t }),
|
|
4205
|
+
this.$$set({ lang: t }), O();
|
|
4204
4206
|
}
|
|
4205
4207
|
get showclosebutton() {
|
|
4206
4208
|
return this.$$.ctx[13];
|
|
4207
4209
|
}
|
|
4208
4210
|
set showclosebutton(t) {
|
|
4209
|
-
this.$$set({ showclosebutton: t }),
|
|
4211
|
+
this.$$set({ showclosebutton: t }), O();
|
|
4210
4212
|
}
|
|
4211
4213
|
}
|
|
4212
|
-
|
|
4214
|
+
Or(Ii, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4213
4215
|
export {
|
|
4214
|
-
|
|
4216
|
+
Ii as default
|
|
4215
4217
|
};
|